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A33M,WADCC,SAAO+kM,KACR2S,oCAkCA33M,WADCC,OAAOilM,KACRyS,4CAgBA33M,WADCC,OAAOglM,KACR0S,wCAKA33M,WADCC,OAAOklM,KACRwS,uCAMA33M,WADCC,OAAOmlM,KACRuS,wCAUA33M,WADCC,OAAOolM,KACRsS,uCASA33M,WADCC,OAAOqlM,KACRqS,sCA+BA33M,WADCC,OAAOslM,KACRoS,6CAgBA33M,WADCC,OAAO0lM,KACRgS,kDAcA33M,WADCC,OAAO4lM,KACR8R,uDAQA33M,WADCC,SAAO6lM,KACR6R,sDAQA33M,WADCC,SAAOylM,KACRiS,0CAQA33M,WADCC,SAAO8lM,KACR4R,0CAQA33M,WADCC,SAAO+lM,KACR2R,iDAQA33M,WADCC,SAAOimM,KACRyR,gDAQA33M,WADCC,SAAOkmM,KACRwR,qCASA33M,WADCC,SAAOmmM,KACRuR,4CAmBA33M,WADCC,SAAOomM,KACRsR,mDAQA33M,WADCC,SAAOsmM,KACRoR,oDAQA33M,WADCC,OAAOgnM,KACR0Q,6CAKA33M,WADCC,OAAOumM,KACRmR,kCAWA33M,WADCC,OAAOwmM,KACRkR,yCAQA33M,WADCC,OAAOymM,KACRiR,wCAQA33M,WADCC,OAAO0mM,KACRgR,4CAaA33M,WADCC,SAAO8mM,KACR4Q,gDAQA33M,WADCC,SAAO4mM,KACR8Q,mDA3bA33M,WADCI,YACDu3M,8BAKA33M,WADCI,YACDu3M,yBAKA33M,WADCI,YACDu3M,gCAKA33M,WADCI,UACDu3M,gCAKA33M,WADCI,UACDu3M,sCAKA33M,SADCI,YACDu3M,+BAKA33M,WADCI,YACDu3M,uBAKA33M,WADCI,YACDu3M,6BAKA33M,WADCI,UACDu3M,uCAKA33M,SADCI,YACDu3M,8BAKA33M,WADCI,YACDu3M,gCAKA33M,SADCI,YACDu3M,2BApEWhE,MAASzkK,WARrB5uC,OAAsB,CACrBC,KAAM,QACNC,SAAU,CACRylM,MAAO,GACPyI,UAAU,MAIDiF,ICpFN,IAAK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29G,GAClBulQ,GAAWA,EAAU7sW,IACrB+sW,GAAWA,EAAU/sW,IACrBkgY,GAAWA,EAAUlgY,IACP1iC,EAAI,KAAK,MAC3Bw7X,GAAU,EACVh1B,GAAQ9gU,KAQX,MAGM+9X,GAA+B,EAE/B2C,GAAa,gBAEbnC,GAAmB,GAGzB,aAAoBvoC,EAAQxxB,EAASyxB,GACpC,IAAI0qC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAxkE,EACAykE,GACAC,EACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,EACAC,GACAC,GACAC,GACAC,GACAC,GACA3+B,GACAkC,GACA08B,GACAvmT,GACAwmT,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAnsC,GACAosC,GACAtkP,GACAqwG,GACAk0I,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAhf,GACAif,GACAC,GACAC,GACAC,GACAC,GACAroC,GACAsoC,GACAC,GACAC,GAEAC,GAIAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACA7S,GACAC,GACA6S,GACA3S,GACA4S,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACA5/B,GACA6/B,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GAEAC,GAIAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACA3V,G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C,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAyD,GACAC,GACAC,GACAkB,GACArB,GACAyB,GACAE,GACAz9N,GACAgzI,GACAmrF,GACAC,GACAE,GACAG,GACAl6E,GACAm6E,GACAl+D,EACAjC,EACAogE,EACA/pE,GACAsqE,GACAC,GACAj6D,GACAw6D,GACAC,GACAC,GACAC,GACAC,GACAC,GACAhgE,GACA/lF,GACAwnF,GACAC,GACAF,GACAxvB,GACA2vB,GACAq+C,GACAC,GACAsgB,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACA5wV,GACA+wU,GACA+f,GACAC,GACAC,GACAC,GACAC,GACAC,GACArgB,GACAugB,GACAE,GACA9+C,GACAg/C,GACAC,GACAC,GACAC,GACAvgB,GACA0gB,GACAC,GACAC,GACAS,GACAI,GACA9hB,GACAiiB,GACAhiB,GACAE,GACAT,GACA4iB,GACApiB,GACAsiB,GACAG,GACAljB,GACA4kB,GACAgB,EACAC,EACAE,EACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAM,GACA7jD,GACA8jD,GACAtxP,GACA6oK,GACAorF,GACA9C,GACAwD,GACAG,GACAxnD,GACAuoD,GACAC,GACAvoD,GA7iE2B,EAAG55X,SAAQkzG,oBAClClzG,IAAWqc,KAAU,qBAAsB21B,KAAKkhE,KAChD4yT,IAA0Bsc,MA6iE9BC,GACA5B,GACAmC,GACAE,GACAC,GACAC,GACAC,GACAC,GA/9DmB1ra,IAEnB,MAAM+9W,MAAUstD,KAAeA,GAAYhkB,eAAiBl1B,GAG5Ds5C,GAAYv9a,IAAI8R,EAAE+8M,OAAO7jJ,MAAO,CAAE6kT,UAGlC2tD,GAAax9a,IAAIksC,KAAKsf,MAAwB,IAAjB15C,EAAE+8M,OAAO7jJ,OAAc,CAAE6kT,WAy9DtDguD,GACAC,GAp7DqBhsa,IACrB,MAA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AhK,GACAG,GACAyzU,GACAI,GACAC,GACAE,GACAC,GACA9yX,GACAyyX,GACAD,GACAY,GACAmE,GACAuF,GACAqF,GACAC,GACAQ,GACAS,GACAE,GACAhc,GACAD,GACAjF,EACA2B,GACAoD,GACAvC,GACAG,GACAnB,GACAD,GACAqD,GACAxC,GACAuC,GACAF,GACAD,GACAJ,GACAF,GACAC,GACAF,GACAH,GACAL,GACAE,GACAI,GACAC,GACAH,GACAD,GACAU,GACAD,GACAb,GACAF,GACAD,GACAnB,GACAQ,GACAD,GACArsC,GACAksC,GACAD,GACAE,GACAO,GACAE,GACAD,GACAF,GACAD,GACAT,GACAF,GACA/jP,GACAglP,GACAD,GACAxB,GACAC,EACAL,GACAJ,GACAG,GACAD,GACAD,GACAF,GACAF,GACAC,GACAP,EACAK,GACAF,GACAC,EACAV,EACAI,EACAL,EACAI,EACAN,EACAuF,GACAG,GACAC,GACAC,GACAC,GACA3S,GACAE,GACA8S,GACAC,GACAC,GACAC,GACAC,GACAI,GACAE,GACAC,GACAC,GACAC,GACAE,GACAC,GACAC,GACAC,GACAC,GACAE,GACAE,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAG,GACAC,GACAC,GACAE,GACAC,GACAC,GACAG,GACAC,GACAE,GACAC,GACA3V,GACAP,GACAD,GACA4W,GACAC,GACAI,GACAE,GACAC,GACAC,GACAG,GACAC,GACAC,GACAC,GACAC,GACAC,GAlwDD,WACCp1C,EAAa,GAAI8mD,GAAcphB,GAAWjsV,YAC1CumT,EAAa,GAAI+mD,GAAerhB,GAAWhsV,cAGpBn6D,GAAKqzX,GAAgBysC,GAAU9J,GAAYh2Z,EAAE+8M,OAAQi5M,IACtD,EAAGj5M,YAAa0jK,EAAa,GAAIwsC,GAAelwM,GAC1D,CAAC35C,EAAOo0P,KAASA,GAAK7la,KAAOyxK,EAE1C,SAAqC1wK,EAAO0wK,IACvCo9M,EAAOj4B,GAAG6F,UAAUmsE,GAAgBn3P,IAAQ1wK,KA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AAK4wM,cAAiB,IAAM5wM,KAAK4wM,cAAiB,KAChD0/V,EAAUtwiB,KAAKqwiB,iBAAoB,IAAMrwiB,KAAKqwiB,gBAAmB,KAC/DC,EAAUtwiB,KAAKuwiB,mBAAsB,IAAMvwiB,KAAKuwiB,kBAAqB,MAKzFlsD,QAnGG,kBAAe,OAAfp9P,cANb,qBCAD,OACA,YACA,eACA,WACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,cACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,cACA,iBACA,eACA,kBACA,cACA,iBACA,eACA,kBACA,eACA,kBACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,aACA,gBACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,qBACA,kBACA,qBACA,YACA,eACA,YACA,eACA,WACA,cACA,WACA,cACA,YACA,eACA,eACA,kBACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,UACA,aACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,eACA,kBACA,cACA,YACA,eACA,eACA,kBACA,cACA,iBACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA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gzC,EAAMplD,QACTolD,EAAMh4C,KAANg4C,KAGD,SAAU/oC,GACb+oC,EAAM1gD,KAAK2X,MAjCf,CACIld,QAASK,GACT4P,SAAU5P,GACVS,KAAM,CAAC,CAAC,IAAIkmC,GAAY/mC,MAE5B,CAAED,QAAS+mC,GAAU92B,SAAU82B,GAAUjmC,KAAM,IAC/C4rlB,GACA,CAAE1slB,QAASw6lB,GAAiBt6lB,WAtDhC,WACI,OAAO+6lB,IAqD0Dn6lB,KAAM,IACvE,CAAEd,QAAS07L,GAAiBx7L,WApDhC,WACI,OAAOg7lB,IAmD0Dp6lB,KAAM,IACvE,CACId,QAAS0sH,GACTxsH,WApDR,SAAwBgtH,GACpB,OAAOA,GA0B0B,oBAAdkue,WAA6BA,UAAUlue,QAAWkwd,IA0BjEt8kB,KAAM,CAAC,CAAC,IAAI4mC,GAAOglF,IAAY,IAAI1lF,GAAY,IAAIM,MAEvD,CAAEtnC,QAAS6slB,GAAuBr9kB,SA/lTZ,YA+nTpBwB,SAAN,QAEI1X,YAAY4nlB,KAEhBlwkB,SAAkBnO,UAAO,SAAmCP,GAAK,OAAO,IAAKA,GAAK0O,GAAmBw5hB,GAASlhgB,MAC9Gt4B,EAAkBJ,UAAqByqlB,GAAiB,CAAE9zlB,KAAMyJ,IAChEA,EAAkBH,UAAqByqlB,GAAiB,CAAE3qlB,UAAWwqlB,KAN/DnqlB","names":["constructor","title","url","showUrl","urlLabel","goBack","queryParams","this","LoadConfig","LoadConfigSuccess","config","LoadConfigFail","SetTitleInfo","ConfigService","http","loadConfig","get","i0","factory","ConfigState","configService","model","headingInfo","loadConfigAction","ctx","pipe","map","result","dispatch","catchError","x","loadConfigSuccessAction","patchState","loadConfigFailAction","setTitle","action","newheading","HeadingInfo","__decorate","Action","Ge","cancelUncompleted","Selector","D","State","name","defaults","X","ɵDomAdapter","super","arguments","supportsDOMEvents","GenericBrowserDomAdapter","static","ɵsetRootDomAdapter","BrowserDomAdapter","onAndCancel","el","evt","listener","addEventListener","removeEventListener","dispatchEvent","remove","node","parentNode","removeChild","createElement","tagName","doc","getDefaultDocument","createHtmlDocument","document","implementation","createHTMLDocument","isElementNode","nodeType","Node","ELEMENT_NODE","isShadowRoot","DocumentFragment","getGlobalEventTarget","target","window","body","getBaseHref","href","baseElement","querySelector","getAttribute","urlParsingNode","setAttribute","pathName","pathname","charAt","relativePath","resetBaseElement","getUserAgent","navigator","userAgent","getCookie","ɵparseCookieValue","cookie","TRANSITION_ID","InjectionToken","SERVER_TRANSITION_PROVIDERS","provide","APP_INITIALIZER","useFactory","transitionId","injector","ApplicationInitStatus","donePromise","then","dom","ɵgetDOM","styles","querySelectorAll","i","length","deps","DOCUMENT","Injector","multi","setTestabilityGetter","BrowserGetTestability","addToWindow","registry","ɵglobal","elem","findInAncestors","testability","findTestabilityInTree","Error","getAllTestabilities","getAllRootElements","callback","testabilities","count","didWork","decrement","didWork_","forEach","whenStable","t","getTestability","host","parentElement","BrowserXhr","build","XMLHttpRequest","ɵfac","ɵprov","EVENT_MANAGER_PLUGINS","EventManager","plugins","_zone","_eventNameToPlugin","Map","p","manager","_plugins","slice","reverse","element","eventName","handler","plugin","_findPluginFor","addGlobalEventListener","getZone","supports","set","_doc","SharedStylesHost","_stylesSet","Set","addStyles","additions","style","has","add","onStylesAdded","getAllStyles","Array","from","DomSharedStylesHost","_hostNodes","head","_addStylesToHost","styleNodes","styleEl","textContent","push","appendChild","addHost","hostNode","removeHost","removeStyle","delete","ngOnDestroy","styleNode","NAMESPACE_URIS","svg","xhtml","xlink","xml","xmlns","COMPONENT_REGEX","compId","isArray","flattenStyles","replace","eventHandler","event","preventDefault","returnValue","DomRendererFactory2","eventManager","sharedStylesHost","appId","rendererByCompId","defaultRenderer","DefaultDomRenderer2","createRenderer","type","encapsulation","ViewEncapsulation","renderer","id","EmulatedEncapsulationDomRenderer2","applyToHost","ShadowDomRenderer","begin","end","APP_ID","data","Object","create","destroyNode","destroy","namespace","createElementNS","createComment","value","createText","createTextNode","parent","newChild","insertBefore","refChild","oldChild","selectRootElement","selectorOrNode","preserveContent","nextSibling","namespaceUri","setAttributeNS","removeAttribute","removeAttributeNS","addClass","classList","removeClass","setStyle","flags","RendererStyleFlags2","setProperty","removeProperty","setValue","nodeValue","listen","decoratePreventDefault","component","contentAttr","hostAttr","componentShortId","shimHostAttribute","hostEl","shadowRoot","attachShadow","mode","nodeOrShadowRoot","DomEventsPlugin","EventManagerPlugin","MODIFIER_KEYS","_keyMap","Del","Esc","Left","Right","Up","Down","Menu","Scroll","Win","_chromeNumKeyPadMap","A","B","C","E","F","G","H","I","J","K","M","N","O","MODIFIER_KEY_GETTERS","alt","altKey","control","ctrlKey","meta","metaKey","shift","shiftKey","KeyEventsPlugin","parseEventName","parsedEvent","outsideHandler","eventCallback","fullKey","runOutsideAngular","domEventName","parts","toLowerCase","split","key","_normalizeKey","pop","modifierName","index","indexOf","splice","keyIdentifier","startsWith","String","fromCharCode","parseInt","substring","location","hasOwnProperty","getEventKey","modifierGetter","zone","getEventFullKey","runGuarded","keyName","platformBrowser","createPlatformFactory","platformCore","PLATFORM_ID","useValue","ɵPLATFORM_BROWSER_ID","PLATFORM_INITIALIZER","makeCurrent","init","ɵsetDocument","BROWSER_MODULE_PROVIDERS","ɵINJECTOR_SCOPE","ErrorHandler","useClass","NgZone","RendererFactory2","useExisting","Testability","XhrFactory","BrowserModule","parentModule","params","ngModule","providers","ɵmod","ɵinj","imports","CommonModule","ApplicationModule","DomSanitizer","DomSanitizerImpl","sanitize","SecurityContext","ɵallowSanitizationBypassAndThrow","ɵunwrapSafeValue","ɵ_sanitizeHtml","toString","ɵgetSanitizationBypassType","ɵ_sanitizeUrl","bypassSecurityTrustHtml","ɵbypassSanitizationTrustHtml","bypassSecurityTrustStyle","ɵbypassSanitizationTrustStyle","bypassSecurityTrustScript","ɵbypassSanitizationTrustScript","bypassSecurityTrustUrl","ɵbypassSanitizationTrustUrl","bypassSecurityTrustResourceUrl","ɵbypassSanitizationTrustResourceUrl","domSanitizerImplFactory","project","resultSelector","source","switchMap","a","b","ii","lift","SwitchMapOperator","call","subscriber","subscribe","SwitchMapSubscriber","SimpleOuterSubscriber","destination","_next","error","_innerSub","innerSubscription","unsubscribe","innerSubscriber","SimpleInnerSubscriber","innerSubscribe","_complete","closed","_unsubscribe","undefined","notifyComplete","isStopped","notifyNext","innerValue","next","array","scheduler","isScheduler","concat","accumulator","seed","hasSeed","ScanOperator","ScanSubscriber","Subscriber","_seed","_tryNext","err","empty","TakeLastOperator","total","ArgumentOutOfRangeError","TakeLastSubscriber","ring","idx","complete","errorFactory","defaultErrorFactory","ThrowIfEmptyOperator","ThrowIfEmptySubscriber","hasValue","e","EmptyError","predicate","defaultValue","hasDefaultValue","filter","v","identity","take","defaultIfEmpty","throwIfEmpty","FinallyOperator","FinallySubscriber","Subscription","RouterEvent","navigationTrigger","restoredState","urlAfterRedirects","reason","state","shouldActivate","route","path","snapshot","routeConfig","routerEvent","position","anchor","PRIMARY_OUTLET","prototype","getAll","keys","ParamsAsMap","NAVIGATION_CANCELING_ERROR","message","segments","segmentGroup","pathMatch","hasChildren","posParams","part","segment","consumed","k1","k2","equalArraysOrString","aSorted","sort","bSorted","every","val","arr","apply","prop","ɵisObservable","ɵisPromise","Promise","resolve","of","pathCompareMap","exact","container","containee","matrixParams","equalPath","matrixParamsMatch","numberOfChildren","c","children","equalSegmentGroups","subset","containsSegmentGroup","paramCompareMap","shallowEqual","ignored","options","paths","root","fragment","containsSegmentGroupHelper","containeePaths","current","containerPaths","containeeSegment","parameters","queryParamMap","_queryParamMap","convertToParamMap","DEFAULT_SERIALIZER","serialize","k","serializePaths","parameterMap","_parameterMap","serializePath","as","bs","parse","UrlParser","UrlTree","parseRootSegment","parseQueryParams","parseFragment","tree","serializeSegment","query","strParams","encodeUriQuery","join","s","serializeQueryParams","encodeURI","DefaultUrlSerializer","primary","fn","res","child","childOutlet","mapChildrenIntoArray","encodeURIComponent","encodeUriString","decodeURIComponent","decode","encodeUriSegment","serializeMatrixParams","SEGMENT_RE","str","match","QUERY_PARAM_RE","QUERY_PARAM_VALUE_RE","remaining","consumeOptional","peekStartsWith","UrlSegmentGroup","parseChildren","parseQueryParam","parseSegment","capture","parseParens","matchSegments","UrlSegment","parseMatrixParams","parseParam","valueMatch","matchQueryParams","matchUrlQueryParamValue","decodedKey","decodeQuery","decodedVal","currentVal","allowPrimary","outletName","substr","_root","pathFromRoot","n","findNode","firstChild","siblings","findPath","cc","unshift","outlet","Tree","setRouterState","urlTree","rootComponent","activated","ActivatedRouteSnapshot","RouterStateSnapshot","TreeNode","createEmptyStateSnapshot","emptyUrl","BehaviorSubject","emptyParams","emptyData","emptyQueryParams","ActivatedRoute","RouterState","futureSnapshot","_futureSnapshot","_routerState","paramMap","_paramMap","paramsInheritanceStrategy","inheritingStartingFrom","reduce","curr","assign","_resolvedData","flattenInherited","urlSegment","lastPathIndex","_urlSegment","_lastPathIndex","_resolve","serializeNode","currentSnapshot","nextSnapshot","shallowEqualArrays","equalUrlParams","equalSegments","equalParamsAndUrlSegments","routeReuseStrategy","prevState","shouldReuseRoute","createNode","createOrReuseChildren","shouldAttach","detachedRouteHandle","retrieve","createActivatedRoute","command","outlets","segmentPath","oldSegmentGroup","newSegmentGroup","qp","replaceSegment","oldSegment","newSegment","isAbsolute","numberOfDoubleDots","commands","isMatrixParams","cmdWithOutlet","find","isCommandWithOutlets","last","toRoot","processChildren","startIndex","updateSegmentGroupChildren","m","currentCommandIndex","currentPathIndex","noMatch","pathIndex","commandIndex","compare","prefixedWith","slicedCommands","g","createNewSegmentGroup","getOutlets","updateSegmentGroup","createNewSegmentChildren","stringify","futureState","currState","forwardEvent","activate","parentContexts","futureRoot","currRoot","deactivateChildRoutes","advanceActivatedRoute","activateChildRoutes","futureNode","currNode","contexts","nodeChildrenAsMap","futureChild","childOutletName","deactivateRoutes","childName","deactivateRouteAndItsChildren","parentContext","future","context","getContext","shouldDetach","detachAndStoreRouteSubtree","deactivateRouteAndOutlet","componentRef","detach","onOutletDeactivated","store","deactivate","attachRef","resolver","activateRoutes","ActivationEnd","ChildActivationEnd","getOrCreateContext","stored","onOutletReAttached","attach","_loadedConfig","parentLoadedConfig","cmpFactoryResolver","module","componentFactoryResolver","activateWith","routes","INITIAL_VALUE","Symbol","obs","combineLatest","o","startWith","scan","acc","list","isPending","innerAcc","isUrlTree","item","ChildrenOutletContexts","onChildOutletCreated","onChildOutletDestroyed","OutletContext","RouterOutlet","changeDetector","_activatedRoute","activateEvents","EventEmitter","deactivateEvents","attachEvents","detachEvents","ngOnInit","isActivated","instance","activatedRoute","activatedRouteData","cmp","emit","ref","insert","hostView","resolveComponentFactory","childContexts","OutletInjector","createComponent","markForCheck","ɵdir","selectors","token","notFoundValue","ɵEmptyOutletComponent","ɵcmp","directives","parentPath","validateNode","getFullPath","fullPath","validateConfig","currentRoute","r","standardizeConfig","loadChildren","sortedConfig","getOutlet","noMatch$1","matched","consumedSegments","lastChild","positionalParamSegments","_a","matcher","defaultUrlMatcher","slicedSegments","relativeLinkResolution","some","emptyPathMatch","containsEmptyPathMatchesWithNamedOutlets","primarySegment","_sourceSegment","_segmentIndexShift","createChildrenForEmptyPaths","containsEmptyPathMatches","addEmptyPathsToChildrenIfNeeded","rawSegment","Observable","NoMatch$1","newTree","AbsoluteRedirect","redirectTo","moduleInjector","configLoader","urlSerializer","allowRedirects","NgModuleRef","splitGroup","rootSegmentGroup","expandSegmentGroup","createUrlTree","squashSegmentGroup","noMatchError","rootCandidate","expandChildren","expandSegment","childOutlets","concatMap","sortedRoutes","sortByMatchingOutlets","expandedChild","takeLast","last$1","expanded$","expandSegmentAgainstRoute","first","_","noLeftoversInUrl","isImmediateMatch","matchSegmentAgainstRoute","expandSegmentAgainstRouteUsingRedirect","expandWildCardWithParamsAgainstRouteUsingRedirect","expandRegularSegmentAgainstRouteUsingRedirect","applyRedirectCommands","absoluteRedirect","lineralizeSegments","mergeMap","newSegments","group","rawSegmentGroup","load","cfg","rawSlicedSegments","getChildConfig","routerConfig","childModule","childConfig","splitSegmentGroup","matchedOnOutlet","cs","LoadedRouterConfig","runCanLoadGuards","shouldLoadResult","navigationCancelingError","canLoad","canLoadObservables","injectionToken","guard","guardVal","isFunction","wrapIntoObservable","prioritizedGuardValue","tap","namedOutletsRedirect","applyRedirectCreatreUrlTree","newRoot","createSegmentGroup","createQueryParams","redirectToParams","actualParams","sourceName","updatedSegments","createSegments","redirectToSegments","actualSegments","findPosParam","findOrReturn","redirectToUrlSegment","pos","newChildren","childCandidate","mergeTrivialChildren","getChildRouteGuards","getClosestLoadedConfig","futurePath","checks","canDeactivateChecks","canActivateChecks","prevChildren","shouldRun","shouldRunGuardsAndResolvers","runGuardsAndResolvers","CanActivate","CanDeactivate","getRouteGuards","rootComponentType","recognize","processSegmentGroup","freeze","rootNode","routeState","inheritParamsAndData","routeNode","inheritedParamsDataResolve","processSegment","outletChildren","mergedChildren","mergeEmptyPathMatches","sortActivatedRouteSnapshots","localeCompare","processSegmentAgainstRoute","getData","getSourceSegmentGroup","getPathIndexShift","getResolve","nodes","mergedNodes","hasEmptyPathConfig","duplicateEmptyPathNode","resultNode","mergedNode","nextResult","detachedTree","ROUTES","compiler","onLoadStartListener","onLoadEndListener","parentInjector","_loader$","loadRunner","loadModuleFactory","flatten","InjectFlags","ConnectableObservable","Subject","refCount","NgModuleFactory","compileModuleAsync","shouldProcessUrl","extract","merge","newUrlPart","wholeUrl","runExtras","exactMatchOptions","subsetMatchOptions","Router","rootContexts","lastSuccessfulNavigation","currentNavigation","disposed","navigationId","currentPageId","isNgZoneEnabled","events","errorHandler","defaultErrorHandler","malformedUriErrorHandler","defaultMalformedUriErrorHandler","navigated","lastSuccessfulId","hooks","beforePreactivation","defaultRouterHook","afterPreactivation","urlHandlingStrategy","DefaultUrlHandlingStrategy","DefaultRouteReuseStrategy","onSameUrlNavigation","urlUpdateStrategy","canceledNavigationResolution","console","ɵConsole","ngZone","resetConfig","currentUrlTree","rawUrlTree","browserUrlTree","RouterConfigLoader","triggerEvent","RouteConfigLoadStart","RouteConfigLoadEnd","routerState","createEmptyState","transitions","targetPageId","currentRawUrl","extractedUrl","rawUrl","extras","reject","promise","targetSnapshot","currentRouterState","targetRouterState","guards","guardsResult","navigations","setupNavigations","processNavigations","browserPageId","getState","ɵrouterPageId","eventsSubject","completed","errored","initialUrl","trigger","previousNavigation","urlTransition","isBrowserTriggeredNavigation","transition","getValue","NavigationStart","serializeUrl","EMPTY","ApplyRedirects","applyRedirects$1","applyRedirects","finalUrl","serializer","Recognizer","newObservableError","NoMatch","recognize$1","skipLocationChange","setBrowserUrl","routesRecognized","RoutesRecognized","navStart","replaceUrl","switchTap","appliedUrlTree","guardsStart","GuardsCheckStart","getAllRouteGuards","futureRSS","currRSS","check","currARS","canDeactivate","canDeactivateObservables","getToken","observable","isCanDeactivate","runCanDeactivate","runCanDeactivateChecks","isBoolean","ChildActivationStart","fireChildActivationStart","ActivationStart","fireActivationStart","futureARS","canActivateChildGuardsMapped","canActivateChild","getCanActivateChild","d","defer","guardsMapped","isCanActivateChild","runCanActivateChild","canActivate","canActivateObservables","isCanActivate","runCanActivate","runCanActivateChecks","checkGuards","guardsEnd","GuardsCheckEnd","restoreHistory","cancelNavigationTransition","resolveStart","ResolveStart","dataResolved","canActivateChecksResolved","getResolver","resolveNode","resolvedData","runResolve","resolveData","resolveEnd","ResolveEnd","createRouterState","ActivateRoutes","finalize","isNavigationCancelingError","redirecting","navCancel","NavigationCancel","setTimeout","mergedTree","scheduleNavigation","navError","NavigationError","ee","resetRootComponentType","setTransition","initialNavigation","setUpLocationChangeListener","navigateByUrl","locationSubscription","stateCopy","parseUrl","getCurrentNavigation","dispose","navigationExtras","relativeTo","queryParamsHandling","preserveFragment","f","q","removeEmptyProps","nav","Navigation","cmd","cmdIdx","urlPart","partIndex","computeNavigation","startingPosition","Position","modifier","ci","dd","createPositionApplyingDoubleDots","findStartingPosition","navigate","validateCommands","isActive","matchOptions","containsTree","NavigationEnd","warn","priorPromise","_b","_c","lastNavigation","browserNavPrecededByRouterNav","navToSameUrl","lastNavigationInProgress","rej","catch","generateNgRouterState","isCurrentPathEqualTo","replaceState","go","restoringFromCaughtError","targetPagePosition","resetState","resetUrlToCurrentUrlTree","historyGo","routerPageId","RouterLink","router","tabIndexAttribute","onChanges","setTabIndexIfNotOnNativeEl","newTabIndex","nativeElement","ngOnChanges","changes","routerLink","onClick","attrBoolValue","inputs","RouterLinkWithHref","locationStrategy","subscription","updateTargetUrlAndHref","button","prepareExternalUrl","i3","preload","RouterPreloader","preloadingStrategy","loader","setUpPreloading","processRoutes","preloadConfig","mergeAll","PreloadingStrategy","RouterScroller","viewportScroller","lastId","lastSource","restoredId","scrollPositionRestoration","anchorScrolling","setHistoryScrollRestoration","routerEventsSubscription","createScrollEvents","scrollEventsSubscription","consumeScrollEvents","getScrollPosition","scheduleScrollEvent","scrollToPosition","scrollToAnchor","ROUTER_CONFIGURATION","ROUTER_FORROOT_GUARD","ROUTER_PROVIDERS","Location","UrlSerializer","opts","assignExtraOptionsToRouter","enableTracing","log","groupEnd","Compiler","Optional","NoPreloading","NgProbeToken","RouterModule","provideRoutes","provideForRootGuard","SkipSelf","LocationStrategy","provideLocationStrategy","PlatformLocation","Inject","APP_BASE_HREF","createRouterScroller","ViewportScroller","routerNgProbeToken","RouterInitializer","getAppInitializer","ROUTER_INITIALIZER","getBootstrapListener","APP_BOOTSTRAP_LISTENER","provideRouterInitializer","scrollOffset","setOffset","platformLocationStrategy","baseHref","useHash","HashLocationStrategy","PathLocationStrategy","ANALYZE_FOR_ENTRY_COMPONENTS","initNavigation","destroyed","resultOfPreactivationDone","appInitializer","LOCATION_INITIALIZED","bootstrapListener","bootstrappedComponentRef","preloader","routerScroller","ApplicationRef","components","componentTypes","bind","PairwiseSubscriber","hasPrev","pair","prev","HistoryBackService","previousUrl$","subs","PairwiseOperator","SendOkMessage","styleClass","SendErrorMessage","SendWarningMessage","AppMessageState","lastOkMessage","lastErrorMessage","lastWarningMessage","timestamp","Date","now","hu","rt","setTimeoutFunc","Boolean","TypeError","_state","_handled","_value","_deferreds","doResolve","self","deferred","_immediateFn","cb","onFulfilled","onRejected","ret","newValue","finale","thisArg","_unhandledRejectionFn","len","handle","done","ex","prom","noop","Handler","finally","all","args","allSettled","status","race","setImmediate","local","isBrowser","PERF","performance","byteToHex","Uint8Array","buffer","hexOctets","_i","bytesToHex","crypto","getRandomValues","msCrypto","setRequestHeader","headers","append","isSame","checkSameOrigin","obj","skey","removeInvalidChars","valueType","dst","objs","deep","isObject","j","jj","src","baseExtend","time","start","isUndefined","getEntriesByType","PerformanceObserver","supportedEntryTypes","RULES","NaN","PROTOCOL_REGEX","Url","_this$extractProtocol","extractProtocol","protocol","address","slashes","relative","getLocation","instructions","instruction","instLength","newIndex","lastIndexOf","Math","max","hostname","port","test","isDefaultPort","origin","_proto","auth","REDACTED","userpass","hash","globalVar","exec","SCHEDULE","INVOKE","ADD_EVENT_LISTENER_STR","REMOVE_EVENT_LISTENER_STR","RESOURCE_INITIATOR_TYPES","MAX_SPAN_DURATION","PAGE_LOAD","USER_INTERACTION","HTTP_REQUEST_TYPE","TEMPORARY_TYPE","NAME_UNKNOWN","TRANSACTION_TYPE_ORDER","TRANSACTION_END","CONFIG_CHANGE","XMLHTTPREQUEST","FETCH","HISTORY","EVENT_TARGET","LOCAL_CONFIG_KEY","LONG_TASK","LARGEST_CONTENTFUL_PAINT","FIRST_INPUT","LAYOUT_SHIFT","ERRORS","TRANSACTIONS","CONFIG_SERVICE","LOGGING_SERVICE","APM_SERVER","TRUNCATED_TYPE","KEYWORD_LIMIT","EXTERNAL","RESOURCE","HARD_NAVIGATION","perfTimingEntry","respContext","transfer_size","transferSize","encoded_body_size","encodedBodySize","decoded_body_size","decodedBodySize","serverTimingStr","serverTimingEntries","serverTimingInfo","_i2","_serverTimingEntries$","duration","description","timingValue","valueSeparator","getServerTimingInfo","serverTiming","parsedUrl","portNumber","getPortNumber","ipv6Hostname","charCodeAt","service","resource","Number","page","referer","referrer","METADATA_MODEL","version","agent","environment","labels","RESPONSE_MODEL","CONTEXT_MODEL","user","email","username","tags","response","SPAN_MODEL","trace_id","parent_id","transaction_id","subtype","TRANSACTION_MODEL","span_count","started","ERROR_MODEL","culprit","exception","transaction","currModel","limit","required","placeholder","isEmpty","truncate","childTarget","emptyArr","_loop","currKey","replaceValue","truncateModel","IGNORE_KEYS","ErrorLogging","apmServer","transactionService","_apmServer","_configService","_transactionService","createErrorDataModel","errorEvent","filteredFrames","frames","_ref","filename","lineno","filterInvalidFrames","colno","stackTraces","stackParser","fileName","lineNumber","columnNumber","normalizedStackTraces","stackFrames","frame","functionName","fnName","normalizeFunctionName","normalizeStackFrames","stack","_stack$functionName","filePath","cleanFilePath","cleanedFileName","fileUrl","filePathToFileName","isFileInline","abs_path","function","createStackTraces","lastFrame","errorMessage","errorType","errorContext","customProperties","propertyFound","properties","toISOString","getErrorProperties","custom","currentTransaction","getCurrentTransaction","transactionContext","configContext","excluded","sourceKeys","_objectWithoutPropertiesLoose","getPageContext","errorObject","generateRandomId","stacktrace","extend","traceId","sampled","logErrorEvent","addError","registerListeners","_this","promiseRejectionEvent","logPromiseEvent","prefix","logError","messageOrError","Queue","onFlush","items","queueLimit","flushInterval","timeoutId","_setTimer","flush","_clear","clearTimeout","NDJSON","object","JSON","globalState","fetchInProgress","patchFn","proto","getPrototypeOf","delegate","delegateName","apmSymbol","propertyDesc","writable","isPropertyWritable","getOwnPropertyDescriptor","patchDelegate","patched","original","attachOriginToPatched","XHR_IGNORE","XHR_SYNC","XHR_URL","XHR_METHOD","SpanBase","sampleRate","_start","getTime","startTime","_end","ended","outcome","onEnd","ensureContext","addLabels","setLabel","addContext","_len","_key","endTime","callOnEnd","getDuration","Span","_SpanBase","parentId","fields","sync","subClass","superClass","__proto__","_inheritsLoose","span","statusCode","method","getDestination","status_code","getExternalContext","entry","getResponseContext","getResourceContext","getNavigationContext","addSpanContext","bootstrapTime","lastHiddenStart","MIN_SAFE_INTEGER","eventPairs","trStart","trEnd","baseTime","resourceTimingEntry","initiatorType","responseEnd","kind","spanName","stripQueryStringFromUrl","resourceStartTime","requestPatchTime","NAVIGATION_TIMING_MARKS","COMPRESSED_NAV_TIMING_MARKS","captureTimings","marks","customMarks","timings","spans","shouldCreateSpan","pageResponse","createNavigationTimingSpans","fetchStart","pageLoadSpanId","addMarks","timing","responseStart","navigationStart","timingKey","getNavigationTimingMarks","navigationTiming","timeToFirstByte","domInteractive","domComplete","getPageLoadMarks","isPerfTimelineSupported","_trStart","entries","_entries$i","isIntakeAPIEndpoint","isCapturedByPatching","createResourceTimingSpan","createResourceTimingSpans","userTimingSpans","_entries$i2","createUserTimingSpans","ap","li","co","ts","ebs","dbs","compressed","rf","h","mt","sc","compressResponse","compressHTTP","dt","se","rc","ad","po","u","un","em","cu","nt","mark","fb","rs","di","dc","fp","firstContentfulPaint","lp","largestContentfulPaint","breakdowns","samples","y","sa","ysc","yss","xdc","xds","xbc","ApmServer","loggingService","_loggingService","queue","throttleEvents","sendEvents","_constructError","onThrottle","interval","counter","throttle","_postJson","endPoint","payload","_this2","isCompressionStreamSupported","CompressionStream","compressedStream","Blob","stream","pipeThrough","Response","blob","compressPayload","_makeHttpRequest","responseText","_temp","_ref2","_ref2$timeout","timeout","xhr","open","header","onreadystatechange","readyState","onerror","send","fetchConfig","serviceName","_this3","configEndpoint","localConfig","getLocalConfig","etag","remoteConfig","getResponseHeader","setLocalConfig","createMetaData","metadata","language","_this$throttleEvents","addTransaction","_this$throttleEvents2","ndjsonErrors","errors","compress","_NDJSON$stringify","cl","mg","st","compressStackFrames","compressContext","tid","pid","xid","sm","compressError","ndjsonMetricsets","metricsets","metricset","ndjsonTransactions","transactions","_this4","tr","_NDJSON$stringify2","breakdown","spanData","sr","sample_rate","sy","su","ac","compressMarks","me","compressMetricsets","yc","sd","experience","_transaction$experien","exp","cls","fid","tbt","lt","longtask","compressTransaction","_payload","_NDJSON$stringify3","filteredPayload","applyFilters","apiVersion","ndjson","ve","la","en","l","compressMetadata","ndjsonPayload","EventHandler","observers","observe","sendOnly","Config","serviceVersion","serverUrl","active","instrument","disableInstrumentations","logLevel","breakdownMetrics","ignoreTransactions","eventsLimit","distributedTracing","distributedTracingOrigins","distributedTracingHeaderName","pageLoadTraceId","pageLoadSampled","pageLoadTransactionName","propagateTracestate","transactionSampleRate","centralConfig","monitorLongtasks","filters","scriptData","dataAttrs","dataRegex","attrs","attributes","attr","nodeName","toUpperCase","getDataAttributesFromNode","currentScript","scripts","getElementsByTagName","getElasticScript","getCurrentScript","getConfigFromScript","setConfig","setVersion","addFilter","objKey","setUserContext","userContext","setCustomContext","customContext","round","validate","requiredKeys","missing","invalid","allowed","isNaN","sessionStorage","getItem","setItem","LoggingService","spec","levels","level","resetLogMethods","shouldLog","setLevel","normalizedLevel","realMethod","_serviceCreators","serviceCreators","_factory$getService","getService","ServiceFactory","instances","initialized","_this$getService","eventTypes","eventTypeSymbols","et","eventType","listenerFn","Element","patchEventHandler","alreadyPatched","XMLHttpRequestPrototype","READY_STATE_CHANGE","LOAD","ERROR","openNative","patchMethod","sendNative","task","scheduleTask","addListener","invokeTask","patchXMLHttpRequest","fetch","Request","nativeFetch","input","request","fetchSelf","aborted","scheduleMicroTask","patchFetch","history","nativePushState","pushState","patchHistory","EventTarget","nativeAddEventListener","nativeRemoveEventListener","optionsOrCapture","shouldInstrumentEvent","wrappingListenerFn","createListenerWrapper","wrappingFn","getWrappingFn","existingTasks","eventSymbol","isCapture","taskIndex","findTaskIndex","patchEventTarget","PerformanceMonitoring","_logginService","createTransactionPayload","getHistorySub","getXHRSub","getFetchSub","getEventTargetSub","additionalInfo","startTransaction","managed","canReuse","reuseThreshold","classes","processAPICalls","requestUrl","startSpan","blocking","isDtEnabled","dtOrigins","currentUrl","isSameOrigin","injectDtHeader","injectTSHeader","_data","_span","endSpan","headerName","headerValue","dtVersion","getDtHeaderValue","isHeaderValid","isDtHeaderValid","getTSHeaderValue","extractDtHeader","parsed","parseDtHeaderValue","filterTransaction","isManaged","createTransactionDataModel","transactionStart","transactionData","breakdownTimings","adjustedTransaction","filterdSpans","similarSpans","originalSpans","transDuration","threshold","spanA","spanB","lastCount","lastSpan","isContinuouslySimilar","isLastSpan","groupSmallContinuouslySimilarSpans","resetFields","adjustTransaction","pageLoadBreakdowns","transactionDetails","_ref$count","details","Transaction","_activeSpans","_activeTasks","blocked","random","markTime","redefine","trc","_onSpanEnd","addTask","isFinished","size","detectFinish","sid","captureBreakdown","trDuration","getSpanBreakdown","spanMap","transactionSelfTime","span1","span2","spanEnd","spanStart","lastContinuousEnd","selfTime","calculateSelfTime","app","groupSpans","_key$split","_spanMap$key","_captureBreakdown","block","flag","taskId","removeTask","metrics","fcp","Infinity","PerfEntryRecorder","disconnect","buffered","stop","TransactionService","logger","_config","_logger","respIntervalId","recorder","_tr$spans","capturePaint","_captureObserverEntri","longtaskEntries","longTaskSpans","longtasks","agg","_longtasks$i","attribution","_attribution$","containerName","containerId","containerType","createLongTaskSpans","lcpEntries","lastLcpEntry","lcp","unloadDiff","fcpEntry","getEntriesByName","fidSpan","fidEntries","firstInput","processingStart","createFirstInputDelaySpan","calculateCumulativeLayoutShift","min","blockingTime","calculateTotalBlockingTime","clsEntries","hadRecentInput","captureObserverEntries","createCurrentTransaction","createOptions","perfOptions","startManagedTransaction","isRedefined","redefineType","currentTypeOrder","redefineTypeOrder","fireOnstartHook","handleTransactionEnd","shouldIgnoreTransaction","tbtObject","tbtSpan","createTotalBlockingTimeSpan","isPerfTypeSupported","sum","urlStr","depth","pathParts","redactString","specialCharsRegex","digitsRegex","lowerCaseRegex","upperCaseRegex","redactedParts","redactedBefore","_index","numberOfDigits","numberofUpperCase","lowerCaseRate","upperCaseRate","slugifyUrl","captureNavigation","adjustTransactionTime","pageContext","responseContext","addTransactionContext","earliestSpan","_i4","getEarliestSpan","latestSpan","_i3","getLatestNonXHRSpan","transactionEnd","transactionName","ignoreList","enabled","patchAll","visibilityState","ApmBase","serviceFactory","disable","_disable","_initialized","isEnabled","_this$serviceFactory$","disabledInstrumentations","_flags","getInstrumentationFlags","sendPageLoad","_sendPageLoadMetrics","fetchCentralConfig","_this$serviceFactory$2","transaction_sample_rate","_config2","_invalid$","sendPageLoadMetrics","_configService$valida2","separator","setInitialPageLoadName","captureError","apmBase","elasticApm","bootstrap","_serviceFactory$getSe","_serviceFactory$getSe2","getApmBase","ApmService","apmInstance","apm","currentPath","cancelAnimationFrame","raf","requestAnimationFrame","afterFrame","ApmErrorHandler","handleError","originalError","TranslateFakeLoader","TranslateLoader","getTranslation","lang","ɵTranslateFakeLoader_BaseFactory","ɵngcc0","FakeMissingTranslationHandler","TranslateFakeCompiler","TranslateCompiler","compile","compileTranslations","translations","ɵTranslateFakeCompiler_BaseFactory","o1","o2","keySet","t1","equals","output","mergeDeep","TranslateDefaultParser","TranslateParser","templateMatcher","interpolate","expr","interpolateString","interpolateFunction","isDefined","ɵTranslateDefaultParser_BaseFactory","currentLang","defaultLang","langs","onTranslationChange","onLangChange","onDefaultLangChange","USE_STORE","USE_DEFAULT_LANG","TranslateService","currentLoader","parser","missingTranslationHandler","useDefaultLang","isolate","pending","_onTranslationChange","_onLangChange","_onDefaultLangChange","_langs","_translations","_translationRequests","_defaultLang","_currentLang","setDefaultLang","retrieveTranslations","changeDefaultLang","getDefaultLang","use","changeLang","loadingTranslations","share","updateLangs","setTranslation","shouldMerge","getLangs","addLangs","getParsedResult","interpolateParams","observables","mergedObs","toArrayReducer","translateService","observer","onComplete","onError","instant","reloadLang","resetLang","getBrowserLang","browserLang","languages","browserLanguage","userLanguage","getBrowserCultureLang","browserCultureLang","TranslateStore","MissingTranslationHandler","TranslatePipe","translate","updateValue","onTranslation","lastKey","transform","lastParams","validArgs","SyntaxError","_dispose","ɵpipe","pure","TranslateModule","fallbackValue","parseFloat","_isNumberValue","elementOrRef","ElementRef","durationSelector","AuditSubscriber","throttled","clearThrottle","async","AuditOperator","audit","timer","hasV8BreakIterator","Intl","v8BreakIterator","supportedInputTypes","Platform","_platformId","isPlatformBrowser","EDGE","TRIDENT","BLINK","chrome","CSS","WEBKIT","IOS","FIREFOX","ANDROID","SAFARI","PlatformModule","candidateInputTypes","featureTestInput","supportsPassiveEvents","scrollBehaviorSupported","shadowDomIsSupported","defineProperty","supportsPassiveEventListeners","documentElement","scrollToFunction","scrollTo","createShadowRoot","_supportsShadowDom","getRootNode","ShadowRoot","activeElement","newActiveElement","composedPath","__karma__","jasmine","jest","Mocha","DIR_DOCUMENT","providedIn","inject","RTL_LOCALE_PATTERN","Directionality","_document","change","htmlDir","dir","rawValue","_resolveDirectionality","BidiModule","ScrollDispatcher","_ngZone","_platform","_scrolled","_globalSubscription","_scrolledCount","scrollContainers","register","scrollable","elementScrolled","deregister","scrollableReference","scrolled","auditTimeInMs","_addGlobalListener","auditTime","_removeGlobalListener","ancestorScrolled","elementOrElementRef","ancestors","getAncestorScrollContainers","scrollingContainers","_subscription","_scrollableContainsElement","_getWindow","defaultView","coerceElement","scrollableElement","getElementRef","fromEvent","i1","ViewportRuler","_change","_changeListener","_viewportSize","getViewportSize","_updateViewportSize","width","height","getViewportRect","scrollPosition","getViewportScrollPosition","top","left","bottom","right","documentRect","getBoundingClientRect","scrollTop","scrollY","scrollLeft","scrollX","throttleTime","innerWidth","innerHeight","CdkScrollableModule","ScrollingModule","_attachedHost","isAttached","setAttachedHost","Portal","viewContainerRef","template","templateRef","elementRef","_isDisposed","attachDomPortal","hasAttached","_attachedPortal","portal","ComponentPortal","attachComponentPortal","TemplatePortal","attachTemplatePortal","DomPortal","_invokeDisposeFn","setDisposeFn","_disposeFn","BasePortalOutlet","outletElement","_componentFactoryResolver","_appRef","_defaultInjector","anchorNode","replaceChild","componentFactory","attachView","detachView","_getComponentRootNode","viewContainer","viewRef","createEmbeddedView","rootNodes","detectChanges","CdkPortalOutlet","_viewContainerRef","_isInitialized","attached","_getRootNode","attachedRef","_attachedRef","clear","PortalHostDirective","PortalModule","inclusive","TakeWhileSubscriber","nextOrComplete","predicateResult","modifiers","supportsScrollBehavior","_viewportRuler","_previousHTMLStyles","_isEnabled","enable","_canBeEnabled","_previousScrollPosition","coerceCssPixelValue","html","htmlStyle","bodyStyle","previousHtmlScrollBehavior","scrollBehavior","previousBodyScrollBehavior","scroll","contains","viewport","scrollHeight","scrollWidth","_scrollDispatcher","_scrollSubscription","_detach","_overlayRef","run","overlayRef","_initialScrollPosition","abs","updatePosition","containerBounds","scrollContainerRect","scrollThrottle","autoClose","overlayRect","overlayElement","isElementScrolledOutsideView","ScrollStrategyOptions","NoopScrollStrategy","close","CloseScrollStrategy","BlockScrollStrategy","reposition","RepositionScrollStrategy","scrollStrategy","panelClass","hasBackdrop","backdropClass","disposeOnNavigation","configKeys","connectionPair","scrollableViewProperties","_portalOutlet","_host","_pane","_keyboardDispatcher","_location","_outsideClickDispatcher","_backdropElement","_backdropClick","_attachments","_detachments","_locationChanges","_backdropClickHandler","_keydownEvents","_outsidePointerEvents","_scrollStrategy","_positionStrategy","positionStrategy","backdropElement","hostElement","attachResult","_previousHostParent","_updateStackingOrder","_updateElementSize","_updateElementDirection","onStable","_togglePointerEvents","_attachBackdrop","_toggleClasses","detachBackdrop","detachmentResult","_detachContentWhenStable","_disposeScrollStrategy","_disposeBackdrop","backdropClick","attachments","detachments","keydownEvents","outsidePointerEvents","getConfig","updatePositionStrategy","strategy","updateSize","sizeConfig","setDirection","direction","addPanelClass","removePanelClass","getDirection","updateScrollStrategy","minWidth","minHeight","maxWidth","maxHeight","enablePointer","pointerEvents","showingClass","backdropToDetach","finishDetach","cssClasses","isAdd","coerceArray","takeUntil","backdrop","OverlayContainer","_containerElement","getContainerElement","_createContainer","containerClass","_isTestEnvironment","oppositePlatformContainers","OD","i1$1","boundingBoxClass","cssUnitPattern","connectedTo","_overlayContainer","_lastBoundingBoxSize","_isPushed","_canPush","_growAfterOpen","_hasFlexibleDimensions","_positionLocked","_viewportMargin","_scrollables","_preferredPositions","_positionChanges","_resizeSubscription","_offsetX","_offsetY","_appliedPanelClasses","positionChanges","setOrigin","positions","_validatePositions","_boundingBox","_isInitialRender","_lastPosition","reapplyLastPosition","_clearPanelClasses","_resetOverlayElementStyles","_resetBoundingBoxStyles","_viewportRect","_getNarrowedViewportRect","_originRect","_getOriginRect","_overlayRect","originRect","viewportRect","flexibleFits","fallback","originPoint","_getOriginPoint","overlayPoint","_getOverlayPoint","overlayFit","_getOverlayFit","isCompletelyWithinViewport","_applyPosition","_canFitWithFlexibleDimensions","boundingBoxRect","_calculateBoundingBoxRect","visibleArea","bestFit","bestScore","fit","score","weight","_previousPushAmount","extendStyles","alignItems","justifyContent","lastPosition","withScrollableContainers","scrollables","withPositions","withViewportMargin","margin","withFlexibleDimensions","flexibleDimensions","withGrowAfterOpen","growAfterOpen","withPush","canPush","withLockedPosition","isLocked","_origin","withDefaultOffsetX","offset","withDefaultOffsetY","withTransformOriginOn","selector","_transformOriginSelector","originX","startX","_isRtl","endX","originY","overlayStartX","overlayStartY","overlayX","overlayY","point","rawOverlayRect","overlay","getRoundedBoundingClientRect","offsetX","_getOffset","offsetY","topOverflow","bottomOverflow","visibleWidth","_subtractOverflows","visibleHeight","fitsInViewportVertically","fitsInViewportHorizontally","availableHeight","availableWidth","getPixelValue","horizontalFit","_pushOverlayOnScreen","overflowRight","overflowBottom","overflowTop","overflowLeft","pushX","pushY","_setTransformOrigin","_setOverlayElementStyles","_setBoundingBoxStyles","_addPanelClasses","_getScrollVisibility","changeEvent","ConnectedOverlayPositionChange","elements","xOrigin","yOrigin","transformOrigin","isRtl","smallestDistanceToViewportEdge","previousHeight","previousWidth","_hasExactPosition","hasExactPosition","hasFlexibleDimensions","_getExactOverlayY","_getExactOverlayX","transformString","trim","virtualKeyboardOffset","clientHeight","horizontalStyleProperty","clientWidth","originBounds","overlayBounds","scrollContainerBounds","isOriginClipped","isElementClippedByScrolling","isOriginOutsideView","isOverlayClipped","isOverlayOutsideView","overflows","currentValue","currentOverflow","axis","cssClass","units","clientRect","floor","wrapperClass","_cssPosition","_topOffset","_bottomOffset","_leftOffset","_rightOffset","_alignItems","_justifyContent","_width","_height","centerHorizontally","centerVertically","parentStyles","shouldBeFlushHorizontally","shouldBeFlushVertically","marginLeft","marginTop","marginBottom","marginRight","OverlayPositionBuilder","global","GlobalPositionStrategy","flexibleConnectedTo","FlexibleConnectedPositionStrategy","BaseOverlayDispatcher","_attachedOverlays","OverlayKeyboardDispatcher","_keydownListener","overlays","_isAttached","OverlayOutsideClickDispatcher","_cursorStyleIsSet","_pointerDownListener","_pointerDownEventTarget","_getEventTarget","_clickListener","_cursorOriginalValue","cursor","nextUniqueId","Overlay","scrollStrategies","_positionBuilder","_injector","_directionality","_createHostElement","pane","_createPaneElement","portalOutlet","_createPortalOutlet","overlayConfig","OverlayConfig","OverlayRef","DomPortalOutlet","i5","i6","defaultPositionList","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY","CdkOverlayOrigin","CdkConnectedOverlay","_overlay","scrollStrategyFactory","_dir","_hasBackdrop","_lockPosition","_flexibleDimensions","_push","_backdropSubscription","_attachSubscription","_detachSubscription","_positionSubscription","viewportMargin","disableClose","positionChange","overlayKeydown","overlayOutsideClick","_templatePortal","_scrollStrategyFactory","_position","_updatePositionStrategy","coerceBooleanProperty","lockPosition","_attachOverlay","_detachOverlay","_createOverlay","_buildConfig","keyCode","hasModifierKey","_createPositionStrategy","currentPosition","_getFlexibleConnectedPositionStrategyOrigin","transformOriginSelector","TakeWhileOperator","takeWhile","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER","OverlayModule","dueTime","DebounceTimeOperator","DebounceTimeSubscriber","debouncedSubscription","lastValue","clearDebounce","schedule","dispatchNext","debouncedNext","SkipOperator","SkipSubscriber","MutationObserverFactory","MutationObserver","ContentObserver","_mutationObserverFactory","_observedElements","_cleanupObserver","_observeElement","_unobserveElement","mutations","characterData","childList","subtree","CdkObserveContent","_contentObserver","_elementRef","_disabled","_currentSubscription","disabled","_subscribe","debounce","_debounce","coerceNumberProperty","ngAfterContentInit","debounceTime","ObserversModule","_items","_activeItemIndex","_activeItem","_wrap","_letterKeyStream","_typeaheadSubscription","_vertical","_allowedModifierKeys","_homeAndEnd","_skipPredicateFn","_pressedLetters","tabOut","QueryList","newItems","itemArray","toArray","skipPredicate","withWrap","shouldWrap","withVerticalOrientation","withHorizontalOrientation","_horizontal","withAllowedModifierKeys","withTypeAhead","debounceInterval","letter","inputString","_getItemsArray","getLabel","setActiveItem","withHomeAndEnd","previousActiveItem","updateActiveItem","onKeydown","isModifierAllowed","setNextItemActive","setPreviousItemActive","setFirstItemActive","setLastItemActive","toLocaleUpperCase","activeItemIndex","activeItem","isTyping","_setActiveItemByIndex","_setActiveItemByDelta","delta","_setActiveInWrapMode","_setActiveInDefaultMode","fallbackDelta","ListKeyManager","setInactiveStyles","setActiveStyles","setFocusOrigin","focus","InteractivityChecker","isDisabled","hasAttribute","isVisible","offsetWidth","offsetHeight","getClientRects","hasGeometry","getComputedStyle","visibility","isTabbable","frameElement","getFrameElement","ownerDocument","getWindow","getTabIndexValue","tabIndexValue","inputType","isPotentiallyTabbableIOS","tabIndex","isFocusable","isInputElement","isHiddenInput","isNativeFormElement","isAnchorElement","isAnchorWithHref","hasValidTabIndex","isPotentiallyFocusable","ignoreVisibility","_element","_checker","deferAnchors","_hasAttached","startAnchorListener","focusLastTabbableElement","endAnchorListener","focusFirstTabbableElement","_enabled","attachAnchors","_startAnchor","_endAnchor","_toggleAnchorTabIndex","startAnchor","endAnchor","_createAnchor","focusInitialElementWhenReady","_executeOnStable","focusInitialElement","focusFirstTabbableElementWhenReady","focusLastTabbableElementWhenReady","_getRegionBoundary","bound","markers","_getFirstTabbableElement","_getLastTabbableElement","redirectToElement","focusableChild","tabbableChild","toggleAnchors","isStable","FocusTrapFactory","deferCaptureElements","FocusTrap","CdkTrapFocus","_focusTrapFactory","_previouslyFocusedElement","focusTrap","autoCapture","_autoCapture","_captureFocus","ngDoCheck","autoCaptureChange","firstChange","_getFocusedElementPierceShadowDom","touch","touches","changedTouches","identifier","radiusX","radiusY","INPUT_MODALITY_DETECTOR_OPTIONS","INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS","ignoreKeys","modalityEventListenerOptions","normalizePassiveListenerOptions","passive","InputModalityDetector","_mostRecentTarget","_modality","_lastTouchMs","_onKeydown","_options","_onMousedown","isFakeMousedownFromScreenReader","_onTouchstart","isFakeTouchstartFromScreenReader","modalityDetected","skip","modalityChanged","distinctUntilChanged","mostRecentModality","LIVE_ANNOUNCER_ELEMENT_TOKEN","LIVE_ANNOUNCER_DEFAULT_OPTIONS","LiveAnnouncer","elementToken","_defaultOptions","_liveElement","_createLiveElement","announce","defaultOptions","politeness","_previousTimeout","elementClass","previousElements","getElementsByClassName","liveEl","CdkAriaLive","_liveAnnouncer","_politeness","elementText","_previousAnnouncedText","FOCUS_MONITOR_DEFAULT_OPTIONS","captureEventListenerOptions","FocusMonitor","_inputModalityDetector","_windowFocused","_originFromTouchInteraction","_elementInfo","_monitoredElementCount","_rootNodeFocusListenerCount","_windowFocusListener","_windowFocusTimeoutId","_stopInputModalityDetector","_rootNodeFocusAndBlurListener","_onFocus","_onBlur","_detectionMode","detectionMode","monitor","checkChildren","_getShadowRoot","_getDocument","cachedInfo","subject","info","_registerGlobalListeners","stopMonitoring","elementInfo","_setClasses","_removeGlobalListeners","focusVia","_getClosestElementsInfo","currentElement","_originChanged","_setOrigin","_info","_getFocusOrigin","focusEventTarget","_shouldBeAttributedToTouch","_lastFocusOrigin","toggle","isFromInteraction","_originTimeoutId","relatedTarget","_emitOrigin","rootNodeFocusListeners","modality","results","CdkMonitorFocus","_focusMonitor","cdkFocusChange","ngAfterViewInit","_monitorSubscription","BLACK_ON_WHITE_CSS_CLASS","WHITE_ON_BLACK_CSS_CLASS","HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS","HighContrastModeDetector","getHighContrastMode","testElement","backgroundColor","documentWindow","computedStyle","computedColor","_applyBodyHighContrastModeCssClasses","_hasCheckedHighContrastMode","bodyClasses","A11yModule","highContrastModeDetector","AUTO_STYLE","definitions","steps","tokens","stateChangeExpr","animation","delay","_onDoneFns","_onStartFns","_onDestroyFns","_started","_destroyed","_finished","parentPlayer","totalTime","_onFinish","onStart","onDone","onDestroy","hasStarted","play","_onStart","triggerMicrotask","pause","restart","finish","reset","setPosition","getPosition","triggerCallback","phaseName","methods","_players","players","doneCount","destroyCount","startCount","player","_onDestroy","timeAtPosition","longestPlayer","longestSoFar","newPlayerIsLongest","beforeDestroy","process","NoopAnimationPlayer","ɵAnimationGroupPlayer","driver","normalizer","keyframes","preStyles","postStyles","normalizedKeyframes","previousOffset","previousKeyframe","kf","isSameOffset","normalizedKeyframe","normalizedProp","normalizedValue","normalizePropertyName","normalizeStyleValue","LINE_START","copyAnimationEvent","makeAnimationEvent","triggerName","fromState","toState","separatorPos","_contains","elm1","elm2","_query","isNode","elems","elm","_CACHED_BODY","_IS_WEBKIT","containsVendorPrefix","containsElement","invokeQuery","newObj","newProp","NoopAnimationDriver","validateStyleProperty","matchesElement","_selector","computeStyle","animate","easing","previousPlayers","scrubberAccessRequested","AnimationDriver","NOOP","ENTER_CLASSNAME","LEAVE_CLASSNAME","NG_TRIGGER_CLASSNAME","NG_TRIGGER_SELECTOR","NG_ANIMATING_CLASSNAME","NG_ANIMATING_SELECTOR","matches","_convertTimeValueToMS","unit","allowNegativeValues","delayMatch","easingVal","containsErrors","parseTimeExpression","readPrototype","copyObj","styleAttrValue","getStyleAttributeString","getPropertyValue","camelCaseToDashCase","formerStyles","camelProp","dashCaseToCamelCase","writeStyleAttribute","sequence","PARAM_REGEX","RegExp","lastIndex","varName","localVal","iterator","DASH_CASE_REGEXP","previousStyles","previousStyleProps","startingKeyframe","missingStyleProps","visitor","visitTrigger","visitState","visitTransition","visitSequence","visitGroup","visitAnimate","visitKeyframes","visitStyle","visitReference","visitAnimateChild","visitAnimateRef","visitQuery","visitStagger","transitionValue","expressions","eventStr","alias","parseAnimationAlias","makeLambdaFromStates","parseInnerTransitionStr","TRUE_BOOLEAN_VALUES","FALSE_BOOLEAN_VALUES","lhs","rhs","LHS_MATCH_BOOLEAN","RHS_MATCH_BOOLEAN","lhsMatch","rhsMatch","SELF_TOKEN_REGEX","AnimationAstBuilderVisitor","_driver","AnimationAstBuilderContext","_resetContextStyleTimingState","visitDslNode","normalizeAnimationEntry","currentQuerySelector","collectedStyles","currentTime","queryCount","depCount","states","def","stateDef","styleAst","astParams","containsDynamicStyles","missingSubs","stylesObj","extractStyleParams","sub","missingSubsArr","iteratorToArray","values","matchers","parseTransitionExpr","normalizeAnimationOptions","furthestTime","step","innerAst","timingAst","makeTimingAst","resolveTiming","strValue","ast","dynamic","constructTimingAst","currentAnimateTimings","styleMetadata","newStyleData","_styleAst","isEmptyStep","_makeStyleAst","_validateStyleAst","styleTuple","collectedEasing","styleData","styleMap","tuple","collectedEntry","updateCollectedStyle","validateStyleParams","totalKeyframesWithOffsets","offsets","offsetsOutOfOrder","keyframesOutOfRange","offsetVal","consumeOffset","generatedOffset","animateDuration","durationUpToThisFrame","parentSelector","currentQuery","includeSelf","hasAmpersand","normalizeSelector","getOrSetAsInMap","optional","originalSelector","currentTransition","normalizeParams","preStyleProps","postStyleProps","subTimeline","_map","existingInstructions","ENTER_TOKEN_REGEX","LEAVE_TOKEN_REGEX","rootElement","enterClassName","leaveClassName","startingStyles","finalStyles","subInstructions","AnimationTimelineBuilderVisitor","buildKeyframes","ElementInstructionMap","AnimationTimelineContext","currentTimeline","setStyles","timelines","timeline","containsAnimation","tl","allowOnlyTimelineStyles","createTimelineInstruction","elementInstructions","innerContext","createSubContext","_visitSubInstructions","transformIntoNewTimeline","previousNode","resolveTimingValue","instructionTimings","appendInstructionToTimeline","updateOptions","subContextCount","snapshotCurrentStyles","DEFAULT_NOOP_PREVIOUS_NODE","delayNextStep","applyStylesToKeyframe","innerTimelines","mergeTimelineCollectedStyles","_visitTiming","incrementTime","getCurrentStyleProperties","forwardFrame","applyEmptyStep","innerTimeline","forwardTime","elms","currentQueryTotal","sameElementTimeline","currentQueryIndex","maxTime","currentStaggerTime","startingTime","_enterClassName","_leaveClassName","initialTimeline","TimelineBuilder","skipIfExists","newOptions","optionsToUpdate","newParams","paramsToUpdate","_copyOptions","oldParams","newTime","fork","updatedTimings","builder","SubTimelineBuilder","stretchStartingKeyframe","_elementTimelineStylesLookup","_previousKeyframe","_currentKeyframe","_keyframes","_styleSummary","_pendingStyles","_backFill","_currentEmptyStepKeyframe","_localTimelineStyles","_globalTimelineStyles","_loadKeyframe","hasPreStyleStep","_updateStyle","allStyles","allProperties","copyStyles","props","getFinalKeyframe","details0","details1","finalKeyframes","keyframe","finalKeyframe","preProps","postProps","kf0","kf1","_stretchStartingKeyframe","newKeyframes","startingGap","newFirstKeyframe","oldFirstKeyframe","roundOffset","decimalPoints","mult","pow","AnimationStyleNormalizer","propertyName","userProvidedProperty","normalizedProperty","strVal","DIMENSIONAL_PROP_MAP","valAndSuffixMatch","makeBooleanMap","isRemovalTransition","fromStyles","toStyles","queriedElements","EMPTY_OBJECT","_triggerName","_stateStyles","currentState","nextState","matchFns","oneOrMoreTransitionsMatch","buildStyles","stateName","backupStateStyler","stateStyler","backupStyles","currentOptions","nextOptions","skipAstBuild","transitionAnimationParams","currentStateStyles","nextAnimationParams","nextStateStyles","preStyleMap","postStyleMap","isRemoval","animationOptions","buildAnimationTimelines","createTransitionInstruction","queriedElementsList","defaultParams","combinedParams","styleObj","_normalizer","transitionFactories","AnimationStateStyles","balanceProperties","AnimationTransitionFactory","fallbackTransition","createFallbackTransition","containsQueries","matchTransition","matchStyles","key1","key2","EMPTY_INSTRUCTION_MAP","bodyNode","_animations","_playersById","buildAnimationAst","_buildPlayer","normalizeKeyframes","autoStylesMap","inst","optimizeGroupPlayer","_getPlayer","baseEvent","listenOnPlayer","QUEUED_CLASSNAME","DISABLED_CLASSNAME","EMPTY_PLAYER_ARRAY","NULL_REMOVAL_STATE","namespaceId","setForRemoval","setForMove","hasAnimation","removedBeforeQueried","NULL_REMOVED_QUERIED_STATE","REMOVAL_FLAG","isObj","absorbOptions","VOID_VALUE","DEFAULT_STATE_VALUE","StateValue","_engine","_triggers","_queue","_elementListeners","_hostClassName","phase","listeners","triggersWithStates","statesByElement","afterFlush","_getTrigger","defaultToFallback","TransitionAnimationPlayer","objEquals","reportError","eraseStyles","playersOnElement","playersByElement","queued","isFallbackTransition","totalQueuedPlayers","stateMap","clearElementCache","elementPlayers","_signalRemovalForInnerTriggers","namespaces","fetchNamespacesByElement","ns","triggerLeaveAnimation","afterFlushAnimationsDone","destroyAfterComplete","triggerStates","markElementAsRemoved","processLeaveNode","prepareLeaveAnimationListeners","elementStates","visitedTriggers","removeNode","engine","childElementCount","containsPotentialParentTransition","totalAnimations","currentPlayers","playersByQueriedElement","removalFlag","destroyInnerAnimations","_onRemovalComplete","insertNode","drainQueuedTransitions","microtaskId","markedForDestroy","d0","d1","elementContainsData","containsData","newHostElements","disabledNodes","_namespaceLookup","_namespaceList","_flushFns","_whenQuietFns","namespacesByHostElement","collectedEnterElements","collectedLeaveElements","onRemovalComplete","queuedPlayers","createNamespace","AnimationTransitionNamespace","_balanceNamespaceList","collectEnterElement","found","registerTrigger","_fetchNamespace","nsId","markElementAsDisabled","isHostElement","hostNS","_buildInstruction","subTimelines","skipBuildAst","containerElement","destroyActiveAnimationsForElement","finishActiveQueriedAnimationOnElement","whenRenderingDone","cleanupFns","_flushAnimations","quietFns","skippedPlayers","skippedPlayersMap","queuedInstructions","allPreStyleElements","allPostStyleElements","disabledElementsSet","nodesThatAreDisabled","allTriggerElements","enterNodeMap","buildRootMap","enterNodeMapIds","className","allLeaveNodes","mergedLeaveNodes","leaveNodesWithoutAnimations","Qe","leaveNodeMapIds","leaveNodeMap","allPlayers","erroneousTransitions","nodeIsOrphaned","stringMap","setVal","allPreviousPlayersMap","animationElementMap","_beforeAnimationBuild","_getPreviousPlayers","prevPlayer","replaceNodes","replacePostStylesAsPre","postStylesMap","cloakAndComputeStyles","preStylesMap","post","pre","rootPlayers","subPlayers","NO_PARENT_ANIMATION_ELEMENT_DETECTED","overrideTotalTime","parentWithAnimation","parentsToAdd","detectedParent","innerPlayer","_buildAnimation","setRealPlayer","parentPlayers","playersForElement","syncPlayerEvents","queriedPlayerResults","queriedInnerElements","queriedPlayers","activePlayers","removeNodesAfterAnimationDone","isQueriedElement","toStateValue","queriedElementPlayers","isRemovalAnimation","targetNameSpaceId","targetTriggerName","timelineInstruction","realPlayer","getRealPlayer","allQueriedPlayers","allConsumedElements","allSubElements","allNewPlayers","finalPlayers","_flattenGroupPlayersRecur","flattenGroupPlayers","wrappedPlayer","currentValues","deleteOrUnsetInMap","_player","_containsRealPlayer","_queuedCallbacks","_queueEvent","oldValue","display","valuesMap","elementPropsMap","defaultStyle","cloakVals","cloakElement","failedElements","roots","rootMap","nodeSet","localRootMap","getRoot","postEntry","preEntry","_triggerCache","_transitionEngine","TransitionAnimationEngine","_timelineEngine","TimelineAnimationEngine","componentId","cacheKey","AnimationTrigger","buildTrigger","onInsert","onRemove","disableAnimations","property","parseTimelineCommand","eventPhase","startStyles","endStyles","filterNonAnimatableStyles","SpecialCasedStyles","_startStyles","_endStyles","initialStyles","initialStylesByElement","_initialStyles","WeakMap","isNonAnimatableStyle","ANIMATION_PROP","ANIMATIONEND_EVENT","_name","_duration","_delay","_easing","_fillMode","_onDoneFn","_startTime","_eventFn","_handleCallback","anim","getAnimationStyle","char","countChars","setAnimationStyle","applyKeyframeAnimation","addRemoveAnimationEvent","playPauseAnimation","resume","findIndexForAnimation","_ngTestManualTimestamp","elapsedTime","toFixed","animationName","findMatchingTokenIndex","removeKeyframeAnimation","searchToken","doRemove","_finalStyles","_specialStyles","_buildStyler","_styler","_flushStartFns","_flushDoneFns","ElementAnimationStyleHandler","finished","_startingStyles","__initialized","_styles","hypenatePropsObject","_count","buildKeyframeElement","keyframeStr","tab","kfElm","previousCssKeyframePlayers","CssKeyframesPlayer","allowPreviousPlayerStylesMerge","flatKeyframes","flattenKeyframesIntoStyles","balancePreviousStylesIntoKeyframes","DirectStylePlayer","findNodeToAppendKeyframeElement","specialStyles","packageNonAnimatableStyles","_preparePlayerBeforeStart","domPlayer","_triggerWebAnimation","_finalKeyframe","_resetDomPlayerState","cancel","_isNativeImpl","getElementAnimateFn","_cssKeyframesDriver","CssKeyframesDriver","overrideWebAnimationsSupport","supported","playerOptions","fill","previousWebAnimationPlayers","WebAnimationsPlayer","BrowserAnimationBuilder","AnimationBuilder","rootRenderer","_nextAnimationId","_renderer","issueAnimationCommand","BrowserAnimationFactory","_id","RendererAnimationPlayer","_command","_listen","DISABLE_ANIMATIONS_FLAG","AnimationRendererFactory","_currentId","_microtaskId","_animationCallbacksBuffer","_rendererCache","_cdRecurDepth","BaseAnimationRenderer","animationTriggers","AnimationRenderer","_scheduleCountTask","scheduleListenerCallback","isMove","resolveElementFromTarget","dotIndex","parseTriggerCallbackName","InjectableAnimationEngine","ɵAnimationEngine","ANIMATION_MODULE_TYPE","SHARED_ANIMATION_PROVIDERS","ɵAnimationStyleNormalizer","ɵWebAnimationsStyleNormalizer","ɵDomRendererFactory2","BROWSER_ANIMATIONS_PROVIDERS","ɵWebAnimationsDriver","ɵCssKeyframesDriver","BROWSER_NOOP_ANIMATIONS_PROVIDERS","ɵNoopAnimationDriver","BrowserAnimationsModule","AnimationCurves","STANDARD_CURVE","DECELERATION_CURVE","ACCELERATION_CURVE","SHARP_CURVE","AnimationDurations","COMPLEX","ENTERING","EXITING","MATERIAL_SANITY_CHECKS","MatCommonModule","_sanityChecks","_hasDoneGlobalChecks","_checkIsEnabled","base","defaultColor","color","_color","colorPalette","_disableRipple","disableRipple","defaultTabIndex","_tabIndex","stateChanges","errorState","updateErrorState","oldState","newState","errorStateMatcher","_defaultErrorStateMatcher","isErrorState","ngControl","_parentFormGroup","_parentForm","MAT_DATE_LOCALE","LOCALE_ID","_localeChanges","localeChanges","getValidDateOrNull","isDateInstance","isValid","deserialize","setLocale","locale","compareDate","second","getYear","getMonth","getDate","sameDate","firstValid","secondValid","clampDate","date","MAT_DATE_FORMATS","ISO_8601_REGEX","valueFunction","valuesArray","NativeDateAdapter","DateAdapter","matDateLocale","useUtcForDisplay","getFullYear","getDayOfWeek","getDay","getMonthNames","dtf","DateTimeFormat","month","timeZone","range","_format","getDateNames","day","getDayOfWeekNames","weekday","getYearName","year","getFirstDayOfWeek","getNumDaysInMonth","_createDateWithOverflow","clone","createDate","today","format","displayFormat","addCalendarYears","years","addCalendarMonths","months","newDate","addCalendarDays","days","toIso8601","getUTCFullYear","_2digit","getUTCMonth","getUTCDate","setFullYear","setHours","setUTCFullYear","setUTCHours","getHours","getMinutes","getSeconds","getMilliseconds","MAT_NATIVE_DATE_FORMATS","dateInput","monthYearLabel","dateA11yLabel","monthYearA11yLabel","NativeDateModule","MatNativeDateModule","ErrorStateMatcher","form","touched","submitted","MatLineModule","fadeOut","fadeOutRipple","defaultRippleAnimationConfig","enterDuration","exitDuration","passiveEventOptions","pointerDownEvents","pointerUpEvents","_target","platform","_isPointerDown","_activeRipples","_pointerUpEventsRegistered","fadeInRipple","containerRect","_containerRect","animationConfig","centered","radius","rect","distX","distY","sqrt","distanceToFurthestCorner","ripple","transitionDuration","rippleRef","RippleRef","persistent","_mostRecentTransientRipple","_runTimeoutOutsideZone","isMostRecentTransientRipple","wasActive","rippleEl","opacity","fadeOutAll","fadeOutAllNonPersistent","setupTriggerEvents","_triggerElement","_removeTriggerEvents","_registerEvents","handleEvent","_onTouchStart","_onPointerUp","isFakeMousedown","isSyntheticEvent","_lastTouchStartEvent","rippleDisabled","clientX","clientY","rippleConfig","terminateOnPointerUp","MAT_RIPPLE_GLOBAL_OPTIONS","MatRipple","globalOptions","_animationMode","_globalOptions","_rippleRenderer","RippleRenderer","_setupTriggerEventsIfEnabled","_trigger","launch","configOrX","MatRippleModule","MatPseudoCheckbox","MatPseudoCheckboxModule","MAT_OPTION_PARENT_COMPONENT","_MatOptgroupMixinBase","mixinDisabled","_uniqueOptgroupIdCounter","_MatOptgroupBase","_labelId","_inert","inertGroups","MAT_OPTGROUP","MatOptgroup","ngContentSelectors","jm","_uniqueIdCounter","isUserInput","_MatOptionBase","_changeDetectorRef","_parent","_selected","_active","_mostRecentViewValue","onSelectionChange","_stateChanges","multiple","selected","viewValue","_getHostElement","select","_emitSelectionChangeEvent","deselect","_handleKeydown","_selectViaInteraction","_getAriaSelected","_getTabIndex","ngAfterViewChecked","MatOptionSelectionChange","MatOption","changeDetectorRef","optionIndex","optionGroups","optionsArray","groups","groupCounter","MatOptionModule","BUTTON_HOST_ATTRIBUTES","_MatButtonBase","mixinColor","mixinDisableRipple","MatButton","isRoundButton","_hasHostAttributes","isIconButton","_isRippleDisabled","attribute","i2","MatAnchor","focusMonitor","animationMode","_haltDisabledEvents","stopImmediatePropagation","MatButtonModule","mediaQueriesForWebkitCompatibility","mediaQueryStyleNode","MediaMatcher","_matchMedia","matchMedia","noopMatchMedia","sheet","insertRule","createEmptyStyleRule","media","removeListener","BreakpointObserver","_mediaMatcher","_queries","_destroySubject","isMatched","splitQueries","mediaQuery","_registerQuery","mql","stateObservable","breakpointStates","breakpoints","queries","a1","a2","MAT_SNACK_BAR_DATA","announcementMessage","horizontalPosition","verticalPosition","MAX_TIMEOUT","containerInstance","_afterDismissed","_afterOpened","_onAction","_dismissedByAction","onAction","dismiss","_onExit","_finishDismiss","exit","_durationTimeoutId","dismissWithAction","closeWithAction","_dismissAfter","_open","dismissedByAction","afterDismissed","afterOpened","_onEnter","SimpleSnackBar","snackBarRef","hasAction","MatSnackBarRef","matSnackBarAnimations","snackBarState","MatSnackBarContainer","snackBarConfig","_announceDelay","_onAnnounce","_animationState","_assertNotAttached","_applySnackBarClasses","_live","_role","onAnimationEnd","_completeExit","onEnter","enter","_screenReaderAnnounce","_announceTimeoutId","onMicrotaskEmpty","panelClasses","inertElement","liveElement","focusedElement","HTMLElement","MatSnackBarConfig","decls","i3$1","MatSnackBarModule","MAT_SNACK_BAR_DEFAULT_OPTIONS","MatSnackBar","_breakpointObserver","_parentSnackBar","_defaultConfig","_snackBarRefAtThisLevel","simpleSnackBarComponent","snackBarContainerComponent","handsetCssClass","_openedSnackBarRef","openFromComponent","_attach","openFromTemplate","_attachSnackBarContainer","containerPortal","containerRef","content","userConfig","TemplateRef","$implicit","_createInjector","contentRef","_animateSnackBar","isLeft","isRight","i2$1","i3$2","policy","ttWindow","trustedTypes","createPolicy","createHTML","getPolicy","iconName","literal","svgText","MatIconRegistry","_httpClient","_sanitizer","_errorHandler","_svgIconConfigs","_iconSetConfigs","_cachedIconsByUrl","_inProgressUrlFetches","_fontCssClassesByAlias","_resolvers","_defaultFontSetClass","addSvgIcon","addSvgIconInNamespace","addSvgIconLiteral","addSvgIconLiteralInNamespace","_addSvgIconConfig","SvgIconConfig","addSvgIconResolver","cleanLiteral","getMatIconFailedToSanitizeLiteralError","trustedLiteral","trustedHTMLFromString","addSvgIconSet","addSvgIconSetInNamespace","addSvgIconSetLiteral","addSvgIconSetLiteralInNamespace","_addSvgIconSetConfig","registerFontClassAlias","classNameForFontAlias","setDefaultFontSetClass","getDefaultFontSetClass","getSvgIconFromUrl","safeUrl","getMatIconFailedToSanitizeUrlError","cachedIcon","cloneSvg","_loadSvgIconFromConfig","getNamedSvgIcon","iconKey","_getSvgFromConfig","_getIconConfigFromResolvers","iconSetConfigs","_getSvgFromIconSetConfigs","throwError","getMatIconNameNotFoundError","_svgElementFromConfig","namedIcon","_extractIconWithNameFromAnySet","iconSetFetchRequests","iconSetConfig","_loadSvgIconSetFromConfig","forkJoin","foundIcon","_extractSvgIconFromSet","_fetchIcon","iconSet","iconSource","iconElement","cloneNode","_setSvgAttributes","_toSvgElement","_svgElementFromString","div","innerHTML","childNodes","viewBox","iconConfig","withCredentials","inProgressFetch","req","responseType","configNamespace","svgElement","isSafeUrlWithOptions","_MatIconBase","MAT_ICON_LOCATION","getPathname","search","funcIriAttributes","funcIriAttributeSelector","funcIriPattern","MatIcon","_iconRegistry","ariaHidden","_inline","_currentIconFetch","inline","svgIcon","_svgIcon","_updateSvgIcon","_clearSvgElement","fontSet","_fontSet","_cleanupFontValue","_updateFontIconClasses","fontIcon","_fontIcon","_splitIconName","cachedElements","_elementsWithExternalReferences","newPath","_previousPath","_prependPathToReferences","_usingFontIcon","_setSvgElement","styleTags","_cacheChildrenWithExternalReferences","layoutElement","childCount","fontSetClass","_previousFontSetClass","_previousFontIconClass","elementsWithFuncIri","elementWithReference","rawName","_svgNamespace","_svgName","MatIconModule","SnackbarComponent","AppMessageService","snackBar","showMessage","text","showOkMessage","showErrorMessage","showWarningMessage","ThemeService","Theme","asObservable","setTheme","newTheme","messageService","themeService","historyService","apmService","_initTranslate","selectSnapshot","apmServiceName","apmServerUrl","URLSearchParams","newTheme$","okMessage$","mwt","errorMessage$","warningMessage$","AppComponent","Select","lE","BaseControlValueAccessor","onChange","onTouched","registerOnTouched","registerOnChange","setDisabledState","BuiltInControlValueAccessor","features","NG_VALUE_ACCESSOR","DEFAULT_VALUE_ACCESSOR","forwardRef","DefaultValueAccessor","COMPOSITION_BUFFER_MODE","_compositionMode","_composing","_isAndroid","writeValue","_handleInput","_compositionStart","_compositionEnd","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","isEmptyInputValue","actual","minValidator","maxValidator","requiredValidator","requiredTrueValidator","emailValidator","minLength","hasValidLength","minlength","requiredLength","actualLength","minLengthValidator","maxLength","maxlength","maxLengthValidator","pattern","nullValidator","regex","regexStr","requiredPattern","actualValue","patternValidator","validators","compose","composeAsync","arrayOfErrors","validator","isValidatorFn","presentValidators","isPresent","mergeErrors","executeValidators","normalizeValidators","toObservable","controlValidators","dirValidator","_rawValidators","_rawAsyncValidators","includes","currentValidators","makeValidatorsArray","validatorsToAdd","hasValidator","_onDestroyCallbacks","valid","pristine","dirty","untouched","statusChanges","valueChanges","_setValidators","_composedValidatorFn","composeValidators","_setAsyncValidators","_composedAsyncValidatorFn","composeAsyncValidators","asyncValidator","_registerOnDestroy","_invokeOnDestroyCallbacks","hasError","errorCode","getError","AbstractControlDirective","valueAccessor","formDirective","cd","_cd","is","NgControlStatus","AbstractControlStatus","NgControl","NgControlStatusGroup","ControlContainer","setUpValidators","_pendingValue","_pendingChange","_pendingDirty","updateOn","updateControl","setUpViewChangePipeline","emitModelEvent","viewToModelUpdate","_unregisterOnChange","setUpModelChangePipeline","_pendingTouched","markAsTouched","setUpBlurPipeline","onDisabledChange","registerOnDisabledChange","_unregisterOnDisabledChange","setUpDisabledChangeHandler","validateControlPresenceOnChange","cleanUpValidators","_registerOnCollectionChange","registerOnValidatorChange","getControlValidators","setValidators","mergeValidators","asyncValidators","getControlAsyncValidators","setAsyncValidators","onValidatorChange","updateValueAndValidity","isControlUpdated","updatedValidators","updatedAsyncValidators","markAsDirty","emitModelToViewChange","viewModel","isFirstChange","_syncPendingControls","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","Ui","VALID","INVALID","PENDING","DISABLED","validatorOrOpts","isOptionsObj","_hasOwnPendingAsyncValidator","_onCollectionChange","_onDisabledChange","coerceToValidator","coerceToAsyncValidator","validatorFn","asyncValidatorFn","_updateOn","addValidators","addAsyncValidators","removeValidators","removeAsyncValidators","hasAsyncValidator","clearValidators","clearAsyncValidators","onlySelf","markAllAsTouched","_forEachChild","markAsUntouched","_updateTouched","markAsPristine","_updatePristine","markAsPending","emitEvent","skipPristineCheck","_parentMarkedDirty","_updateValue","_updateAncestors","changeFn","setParent","_setInitialStatus","_cancelExistingSubscription","_runValidator","_calculateStatus","_runAsyncValidator","_updateTreeValidity","ctrl","_allControlsDisabled","_asyncValidationSubscription","setErrors","_updateControlsErrors","delimiter","controlToFind","FormGroup","controls","FormArray","at","_find","_initObservables","_anyControlsHaveStatus","_anyControls","_anyControlsDirty","_anyControlsTouched","_isBoxedValue","formState","_setUpdateStrategy","AbstractControl","pickValidators","pickAsyncValidators","_onChange","_applyFormState","emitViewToModelChange","patchValue","condition","removeListItem","_setUpControls","registerControl","addControl","removeControl","setControl","controlName","_checkAllValuesPresent","_throwIfControlMissing","getRawValue","_reduceChildren","FormControl","subtreeUpdated","updated","_reduceValue","initValue","_registerControl","removeAt","formDirectiveProvider$1","NgForm","resolvedPromise$1","_directives","ngSubmit","_findContainer","setUpControl","getControl","addFormGroup","setUpFormContainer","removeFormGroup","getFormGroup","updateModel","onSubmit","$event","syncPendingControls","onReset","resetForm","formControlBinding$1","NgModel","resolvedPromise","_registered","update","selectValueAccessor","_checkForErrors","_setUpControl","_updateDisabled","isPropertyUpdated","controlPath","_isStandalone","_setUpStandalone","standalone","_checkParentType","_checkName","disabledValue","ɵNgNoValidate","NUMBER_VALUE_ACCESSOR","NumberValueAccessor","RadioControlRegistryModule","NG_MODEL_WITH_FORM_CONTROL_WARNING","formControlBinding","FormControlDirective","_ngModelWarningConfig","_ngModelWarningSent","_isControlChanged","previousForm","previousValue","cleanUpControl","_ngModelWarningSentOnce","formDirectiveProvider","FormGroupDirective","_updateDomValue","_checkFormPresent","_updateValidators","_updateRegistrations","_oldForm","_setUpFormContainer","_cleanUpFormContainer","addFormArray","removeFormArray","getFormArray","oldCtrl","newCtrl","cleanUpFormContainer","REQUIRED_VALIDATOR","RequiredValidator","CHECKBOX_REQUIRED_VALIDATOR","CheckboxRequiredValidator","_required","ɵInternalFormsSharedModule","FormsModule","ReactiveFormsModule","warnOnNgModelWithFormControl","_multiple","initiallySelectedValues","_emitChanges","_selection","_deselectedToEmit","_selectedToEmit","changed","_markSelected","_verifyValueAssignment","_emitChangeEvent","_unmarkSelected","isSelected","_unmarkAll","isMultipleSelection","added","removed","UniqueSelectionDispatcher","_listeners","notify","registered","MAT_RADIO_DEFAULT_OPTIONS","MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR","MatRadioGroup","MAT_RADIO_GROUP","_MatRadioGroupBase","_changeDetector","_labelPosition","_controlValueAccessorChangeFn","_updateRadioButtonNames","labelPosition","_markRadiosForCheck","_updateSelectedRadioFromValue","_checkSelectedRadioButton","checked","_touch","_radios","radio","_markForCheck","MatRadioChange","MatRadioButton","_MatRadioButtonMixinBase","mixinTabIndex","MatRadioButtonBase","_MatRadioButtonBase","radioGroup","_radioDispatcher","_providerOverride","_uniqueId","_checked","_removeUniqueSelectionListener","_noopAnimations","newCheckedState","_setDisabled","inputId","_inputElement","focusOrigin","_onInputClick","stopPropagation","_onInputInteraction","groupValueChanged","viewQuery","XJ","radioDispatcher","providerOverride","MatRadioModule","MatCardTitle","MatCardSubtitle","MatCardFooter","MatCardImage","MatCard","lX","MatCardModule","MAT_CHECKBOX_DEFAULT_OPTIONS","MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY","clickAction","MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR","MatCheckbox","_MatCheckboxBase","ariaLabel","ariaLabelledby","indeterminateChange","_onTouched","_currentAnimationClass","_currentCheckState","_indeterminate","_syncIndeterminate","indeterminate","_transitionCheckState","_onLabelTextChange","_getAriaChecked","_getAnimationClassForCheckStateTransition","animationClass","MatCheckboxChange","_onInteractionEvent","animSuffix","nativeCheckbox","mX","MAT_CHECKBOX_REQUIRED_VALIDATOR","MatCheckboxRequiredValidator","_MatCheckboxRequiredValidatorModule","MatCheckboxModule","updateOutlineGap","nextUniqueId$2","MAT_ERROR","MatError","ariaLive","matFormFieldAnimations","transitionMessages","MatFormFieldControl","nextUniqueId$1","_MAT_HINT","MatHint","align","MatLabel","MatPlaceholder","MAT_PREFIX","MatPrefix","MAT_SUFFIX","MatSuffix","_MatFormFieldBase","MAT_FORM_FIELD_DEFAULT_OPTIONS","MAT_FORM_FIELD","MatFormField","_defaults","_outlineGapCalculationNeededImmediately","_outlineGapCalculationNeededOnStable","_showAlwaysAnimate","_subscriptAnimationState","_hintLabel","_hintLabelId","floatLabel","_getDefaultFloatLabelState","_animationsEnabled","appearance","_hideRequiredMarker","hideRequiredMarker","_appearance","_shouldAlwaysFloat","_canLabelFloat","hintLabel","_processHints","_floatLabel","_control","_explicitFormFieldControl","_controlNonStatic","_controlStatic","getLabelId","_hasFloatingLabel","getConnectedOverlayOrigin","_connectionContainerRef","_validateControlChild","controlType","_validatePlaceholders","_syncDescribedByIds","_prefixChildren","_suffixChildren","_hintChildren","_errorChildren","ngAfterContentChecked","_shouldForward","_hasPlaceholder","_placeholderChild","_hasLabel","_labelChildNonStatic","_labelChildStatic","_shouldLabelFloat","shouldLabelFloat","_hideControlPlaceholder","_getDisplayedMessages","_animateAndLockLabel","_label","_validateHints","ids","userAriaDescribedBy","startHint","hint","endHint","setDescribedByIds","labelEl","_isAttachedToDOM","startWidth","gapWidth","startEls","gapEls","containerStart","_getStartEnd","labelChildren","labelStart","labelWidth","outlineGapPadding","wX","MX","DX","BX","i4","changeDetection","MatFormFieldModule","MAT_CHIPS_DEFAULT_OPTIONS","MatChipsModule","separatorKeyCodes","listenerOptions","AutofillMonitor","_monitoredElements","isAutofilled","unlisten","CdkTextareaAutosize","_previousMinRows","_isViewInited","_handleFocusEvent","_hasFocus","_textareaElement","minRows","_minRows","_setMinHeight","maxRows","_maxRows","_setMaxHeight","resizeToFitContent","_cachedPlaceholderHeight","_cacheTextareaPlaceholderHeight","_cachedLineHeight","_initialHeight","_cacheTextareaLineHeight","textareaClone","rows","border","padding","overflow","_measureScrollHeight","previousMargin","isFirefox","needsMarginFiller","measuringClass","force","textarea","_previousValue","_scrollToCaretPosition","_noopInputHandler","selectionStart","selectionEnd","setSelectionRange","TextFieldModule","MAT_INPUT_VALUE_ACCESSOR","MAT_INPUT_INVALID_TYPES","_MatInputBase","mixinErrorState","MatInput","inputValueAccessor","_autofillMonitor","_formField","_uid","focused","autofilled","_type","_readonly","_neverEmptyInputTypes","getSupportedInputTypes","_inputValueAccessor","_previousNativeValue","_isServer","_isNativeSelect","_isTextarea","_isInFormField","_d","Validators","_validateType","readonly","_dirtyCheckNativeValue","_dirtyCheckPlaceholder","_focusChanged","isFocused","_onInput","_previousPlaceholder","_isNeverEmpty","_isBadInput","validity","badInput","selectElement","firstOption","selectedIndex","label","onContainerClick","_isInlineSelect","MatInputModule","_cellClicked","activeDate","_dateSelected","_monthSelectedInYearView","_goToDateInView","_yearSelectedInMultiYearView","displayValue","compareValue","MatCalendarBody","numCols","activeCell","isRange","cellAspectRatio","previewStart","previewEnd","selectedValueChange","previewChange","_enterHandler","_skipNextFocus","cell","_getCellFromElement","_leaveHandler","isTableCell","_isSelected","startValue","endValue","columnChanges","_firstRowOffset","_cellPadding","_cellWidth","_isActiveCell","rowIndex","colIndex","cellNumber","_focusActiveCell","movePreview","_isRangeStart","isStart","_isRangeEnd","isEnd","_isInRange","isInRange","_isComparisonStart","comparisonStart","comparisonEnd","_isComparisonBridgeStart","previousCell","previousRow","_isComparisonBridgeEnd","_isComparisonEnd","nextCell","nextRow","_isInComparisonRange","_isComparisonIdentical","_isPreviewStart","_isPreviewEnd","_isInPreview","row","col","rangeEnabled","MatDateSelectionModel","selection","_adapter","_selectionChanged","selectionChanged","updateSelection","_isValidDateInstance","MatSingleDateSelectionModel","adapter","isComplete","MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER","MAT_DATE_RANGE_SELECTION_STRATEGY","MatMonthView","_dateFormats","_dateAdapter","_rangeStrategy","_rerenderSubscription","selectedChange","_userSelection","activeDateChange","_activeDate","oldActiveDate","validDate","minDate","maxDate","_hasSameMonthAndYear","_init","DateRange","_setRanges","_minDate","_maxDate","comparisonChange","selectedYear","selectedMonth","selectedDate","rangeStartDate","rangeEndDate","_getDateInCurrentMonth","_previewStart","_previewEnd","_handleCalendarBodyKeydown","ENTER","_selectionKeyPressed","_canSelect","_handleCalendarBodyKeyup","_todayDate","_getCellCompareValue","_monthLabel","monthLabel","firstOfMonth","_firstWeekOffset","_initWeekdays","_createWeekCells","_matCalendarBody","_previewChanged","previewRange","createPreview","firstDayOfWeek","narrowWeekdays","weekdays","long","narrow","_weekdays","daysInMonth","dateNames","_weeks","_shouldEnableDate","cellClasses","dateClass","MatCalendarCell","dateFilter","d2","selectedValue","_rangeStart","_rangeEnd","_isRange","_comparisonRangeStart","_comparisonRangeEnd","MatMultiYearView","yearSelected","isSameMultiYearView","_setSelectedYear","_todayYear","minYearOfPage","activeYear","getActiveOffset","_years","_createCellForYear","_yearSelected","yearsPerPage","_getActiveCell","yearName","_shouldEnableYear","_selectedYear","dateAdapter","date1","date2","year1","year2","startingYear","getStartingYear","euclideanModulo","MatYearView","monthSelected","_setSelectedMonth","_monthSelected","normalizedDate","_todayMonth","_getMonthInCurrentYear","_yearLabel","monthNames","_months","_createCellForMonth","monthName","_shouldEnableMonth","_isYearAndMonthAfterMaxDate","_isYearAndMonthBeforeMinDate","maxYear","maxMonth","minYear","minMonth","_selectedMonth","MatDatepickerIntl","calendarLabel","openCalendarLabel","closeCalendarLabel","prevMonthLabel","nextMonthLabel","prevYearLabel","nextYearLabel","prevMultiYearLabel","nextMultiYearLabel","switchToMonthViewLabel","switchToMultiYearViewLabel","formatYearRange","uniqueId","MatCalendarHeader","_intl","calendar","_buttonDescriptionId","periodButtonText","currentView","maxYearOfPage","minYearName","maxYearName","periodButtonLabel","prevButtonLabel","nextButtonLabel","currentPeriodClicked","previousClicked","nextClicked","previousEnabled","_isSameView","nextEnabled","MatCalendar","_moveFocusOnNextTick","startView","viewChanged","_intlChanges","startAt","_startAt","_clampedActiveDate","_currentView","viewChangedResult","_calendarHeaderPortal","headerComponent","focusActiveCell","view","_getCurrentViewComponent","updateTodaysDate","normalizedYear","normalizedMonth","monthView","yearView","multiYearView","i8","matDatepickerAnimations","transformPanel","fadeInCalendar","datepickerUid","MAT_DATEPICKER_SCROLL_STRATEGY","MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER","_MatDatepickerContentBase","MatDatepickerContent","_globalModel","_rangeSelectionStrategy","intl","_subscriptions","_animationDone","_actionsPortal","_closeButtonText","_model","datepicker","touchUi","_calendar","_handleUserSelection","newSelection","selectionFinished","_startExitAnimation","_getSelected","_applyPendingSelection","MatDatepickerBase","_inputStateChanges","_touchUi","xPosition","yPosition","_restoreFocus","openedStream","closedStream","_opened","_focusedElementBeforeOpen","_backdropHarnessClass","datepickerInput","getStartValue","getThemePalette","restoreFocus","_panelClass","sourceValues","sourceValue","trimmedString","coerceStringArray","opened","_getMinDate","_getMaxDate","_getDateFilter","_setConnectedPositions","_destroyOverlay","_selectYear","_selectMonth","_viewChanged","registerInput","registerActions","removeActions","_openOverlay","_componentRef","completeClose","_forwardContentValues","isDialog","labelId","getOverlayLabelId","_getDialogStrategy","_getDropdownStrategy","_getCloseStream","primaryX","secondaryX","primaryY","secondaryY","i9","MatDatepicker","targetElement","MatDatepickerInputBase","dateChange","_validatorOnChange","_cvaOnChange","_valueChangesSubscription","_localeSubscription","_parseValidator","_lastValueValid","matDatepickerParse","_filterValidator","controlValue","_matchesFilter","matDatepickerFilter","_minValidator","matDatepickerMin","_maxValidator","matDatepickerMax","_assignValueProgrammatically","_getValueFromModel","_parentDisabled","blur","_getValidators","_registerModel","_assignValue","_shouldHandleChangeEvent","_isValidValue","_formatValue","MatDatepickerInputEvent","dateInputsHaveChanged","_validator","isAltDownArrow","readOnly","_openPopup","lastValueWasValid","_assignValueToModel","MAT_DATEPICKER_VALUE_ACCESSOR","MatDatepickerInput","MAT_DATEPICKER_VALIDATORS","dateFormats","_closedSubscription","matDatepicker","_datepicker","_min","validValue","_max","_dateFilter","wasMatchingValue","modelValue","MatDatepickerToggleIcon","MatDatepickerToggle","parsedTabIndex","_watchStateChanges","datepickerStateChanged","inputStateChanged","datepickerToggled","D$","A$","MatDatepickerModule","role","ariaDescribedBy","ariaLabelledBy","autoFocus","closeOnNavigation","matDialogAnimations","dialogContainer","_MatDialogContainerBase","_interactivityChecker","_animationStateChanged","_elementFocusedBeforeDialogWasOpened","_closeInteractionType","_ariaLabelledBy","_initializeWithAttachedContent","_setupFocusTrap","_capturePreviouslyFocusedElement","_recaptureFocus","_containsFocus","_trapFocus","_forceFocus","_focusByCssSelector","elementToFocus","_focusTrap","focusedSuccessfully","_focusDialogContainer","previousElement","MatDialogConfig","MatDialogContainer","_onAnimationDone","_onAnimationStart","_containerInstance","_afterClosed","_beforeClosed","_closeFallbackTimeout","_finishDialogClose","_result","componentInstance","_closeDialogVia","dialogResult","afterClosed","beforeClosed","_getPositionStrategy","interactionType","MAT_DIALOG_DATA","MAT_DIALOG_DEFAULT_OPTIONS","MAT_DIALOG_SCROLL_STRATEGY","MAT_DIALOG_SCROLL_STRATEGY_PROVIDER","_MatDialogBase","_parentDialog","_dialogRefConstructor","_dialogContainerType","_dialogDataToken","_openDialogsAtThisLevel","_afterAllClosedAtThisLevel","_afterOpenedAtThisLevel","_ariaHiddenElements","_dialogAnimatingOpen","afterAllClosed","openDialogs","_getAfterAllClosed","componentOrTemplateRef","_applyConfigDefaults","getDialogById","_lastDialogRef","_attachDialogContainer","animationStateSubscription","dialogAnimationEvent","_animationStateSubscriptions","dialogRef","_attachDialogContent","_hideNonDialogContentFromAssistiveTechnology","_removeOpenDialog","closeAll","_closeDialogs","dialog","_getOverlayConfig","dialogConfig","userInjector","overlayContainer","sibling","dialogs","MatDialog","parentDialog","MatDialogRef","dialogElementUid","MatDialogClose","_dialog","getClosestDialog","proxiedChange","_matDialogClose","_matDialogCloseResult","_onButtonClick","screenX","screenY","MatDialogTitle","_dialogRef","MatDialogModule","MatGridListModule","delayFor","absoluteDelay","DelayOperator","DelaySubscriber","notification","_schedule","scheduleNotification","DelayMessage","Notification","_error","matMenuAnimations","transformMenu","fadeInItems","MAT_MENU_CONTENT","MAT_MENU_PANEL","_MatMenuItemBase","MatMenuItem","_parentMenu","_hovered","_focused","_highlighted","_triggersSubmenu","addItem","removeItem","_checkDisabled","_handleMouseEnter","icons","_setHighlighted","isHighlighted","MAT_MENU_DEFAULT_OPTIONS","overlapTrigger","menuPanelUid","_MatMenuBase","_xPosition","_yPosition","_directDescendantItems","_tabSubscription","_classList","_panelAnimationState","overlayPanelClass","_overlapTrigger","panelId","setPositionClasses","previousPanelClass","_previousPanelClass","_updateDirectDescendants","_keyManager","FocusKeyManager","focusedItem","itemChanges","_item","parentMenu","focusFirstItem","lazyContent","_focusFirstItem","resetActiveItem","setElevation","elevation","_baseElevation","newElevation","_elevationPrefix","customElevation","_previousElevation","posX","posY","_startAnimation","_resetAnimation","_isAnimating","_allItems","notifyOnChanges","contentQueries","MatMenu","MAT_MENU_SCROLL_STRATEGY","MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER","passiveEventListenerOptions","_MatMenuTriggerBase","_menuItemInstance","_menuOpen","_closingActionsSubscription","_hoverSubscription","_menuCloseSubscription","_handleTouchStart","_openedBy","menuOpened","onMenuOpen","menuClosed","onMenuClose","_parentMaterialMenu","triggersSubmenu","_deprecatedMatMenuTriggerFor","menu","_menu","_destroyMenu","_checkMenu","_handleHover","menuOpen","toggleMenu","closeMenu","openMenu","_setPosition","_getPortal","menuData","_menuClosingActions","_initMenu","_attached","_setIsMenuOpen","_setMenuElevation","isOpen","_subscribeToPositions","originFallbackX","overlayFallbackY","originFallbackY","overlayFallbackX","parentClose","hover","_handleMousedown","_handleClick","asapScheduler","_portal","hostAttrs","hostVars","MatMenuTrigger","MatMenuModule","_MatProgressSpinnerBase","MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS","diameter","_diameter","trackedDiameters","MatProgressSpinner","_diameters","_spinnerAnimationLabel","_getSpinnerAnimationLabel","_forceAnimations","strokeWidth","_styleRoot","_attachStyleNode","_strokeWidth","_getCircleRadius","_getViewBox","_getStrokeCircumference","PI","_getStrokeDashOffset","_getCircleStrokeWidth","styleRoot","currentDiameter","diameters","diametersForElement","styleTag","_getAnimationText","strokeCircumference","MatSpinner","MatProgressSpinnerModule","_panelDoneAnimatingStream","matSelectAnimations","transformPanelWrap","animateChild","MAT_SELECT_SCROLL_STRATEGY","MAT_SELECT_CONFIG","MAT_SELECT_SCROLL_STRATEGY_PROVIDER","_MatSelectMixinBase","MAT_SELECT_TRIGGER","_MatSelectBase","_parentFormField","_panelOpen","_compareWith","_triggerAriaLabelledBy","_destroy","_valueId","_overlayPanelClass","_disableOptionCentering","disableOptionCentering","optionSelectionChanges","option","openedChange","_openedStream","_closedStream","selectionChange","valueChange","typeaheadDebounceInterval","_typeaheadDebounceInterval","_placeholder","compareWith","_selectionModel","_initializeSelection","_setSelectionByValue","SelectionModel","_panelDoneAnimating","panelOpen","_initKeyManager","_resetOptions","newAriaLabelledby","_getTriggerAriaLabelledby","_canOpen","_highlightCorrectOption","triggerValue","selectedOptions","_handleOpenKeydown","_handleClosedKeydown","isArrowKey","isOpenKey","previouslySelectedOption","selectedOption","hasDeselectedOptions","opt","previouslyFocusedIndex","_onAttached","_overlayDir","_positioningSettled","_getPanelTheme","_selectValue","_sortValues","correspondingOption","ActiveDescendantKeyManager","panel","_scrollOptionIntoView","changedOrDestroyed","_onSelect","wasSelected","_propagateChanges","sortComparator","valueToEmit","_getChangeEvent","_getPanelAriaLabelledby","_getAriaActiveDescendant","_ariaDescribedby","Pee","Lee","MatSelect","_scrollTop","_triggerFontSize","_transformOrigin","_positions","_calculateOverlayScroll","scrollBuffer","maxScroll","itemHeight","_getItemHeight","_triggerRect","fontSize","_calculateOverlayPosition","labelCount","_countGroupLabelsBeforeOption","optionOffset","optionHeight","currentScrollPosition","panelHeight","_getOptionScrollPosition","_calculateOverlayOffsetX","MatSelectChange","viewportSize","paddingWidth","SELECT_MULTIPLE_PANEL_PADDING_X","SELECT_PANEL_PADDING_X","leftOverflow","rightOverflow","_calculateOverlayOffsetY","optionHeightAdjustment","maxOptionsDisplayed","optionOffsetFromPanelTop","_getItemCount","_checkOverlayWithinViewport","topSpaceAvailable","bottomSpaceAvailable","panelHeightTop","panelHeightBottom","_adjustPanelUp","_adjustPanelDown","_getOriginBasedOnOption","distanceBelowViewport","distanceAboveViewport","selectedOptionOffset","Uee","i7","MatSelectModule","_MatSlideToggleRequiredValidatorModule","MatSlideToggleModule","CdkStepHeader","CdkStepLabel","nextId","STEPPER_GLOBAL_OPTIONS","CdkStep","_stepper","stepperOptions","interacted","interactedStream","_editable","_optional","_completedOverride","_customError","_stepperOptions","_displayDefaultIndicatorType","displayDefaultIndicatorType","editable","_getDefaultCompleted","stepControl","_getDefaultError","_stateChanged","_markAsInteracted","_showError","showError","CdkStepper","_sortedHeaders","_linear","_selectedIndex","_orientation","_groupId","linear","_steps","_isValidIndex","_anyControlsInvalidOrPending","_updateSelectedItemIndex","orientation","_stepHeader","documentPosition","compareDocumentPosition","DOCUMENT_POSITION_FOLLOWING","_layoutDirection","previous","_getStepLabelId","_getStepContentId","_getAnimationDirection","_getIndicatorType","isCurrentStep","_isCurrentStep","_getDefaultIndicatorLogic","_getGuidelineLogic","_getFocusIndex","stepsArray","previouslySelectedIndex","selectedStep","previouslySelectedStep","hasModifier","stepperElement","CdkStepperNext","CdkStepperPrevious","CdkStepperModule","MatStepLabel","MatStepperIntl","optionalLabel","completedLabel","editableLabel","MAT_STEPPER_INTL_PROVIDER","parentIntl","_MatStepHeaderBase","MatStepHeader","_intlSubscription","_stringLabel","_templateLabel","_getIconContext","_getDefaultTextForState","matStepperAnimations","horizontalStepTransition","verticalStepTransition","MatStepperIcon","MatStepContent","_template","MatStep","stepper","_errorStateMatcher","_lazyContent","MatStepper","_MatProxyStepperBase","MatHorizontalStepper","MatVerticalStepper","animationDone","_iconOverrides","_icons","_stepIsNavigable","MatStepperNext","MatStepperPrevious","MatStepperModule","MatTabsModule","MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER","MatTooltipModule","MatPaginatorIntl","itemsPerPageLabel","nextPageLabel","previousPageLabel","firstPageLabel","lastPageLabel","getRangeLabel","pageSize","MAT_PAGINATOR_INTL_PROVIDER","MatPaginatorModule","MatPaginatorIntlCro","ceil","MaterialModule","RouterState_1","storeState","serializeRoute","_store","_router","_serializer","_urlSerializer","_locationStrategy","_storeState","_lastRoutesRecognized","setUpStoreListener","setUpRouterEventsListener","checkInitialNavigationOnce","angularRouterAction","setState","navigateIfNeeded","dispatchRouterDataResolved","dispatchRouterCancel","dispatchRouterError","navigationEnd","shouldDispatchRouterNavigation","dispatchRouterNavigation","nextRouterState","dispatchRouterAction","RouterNavigation","RouterCancel","RouterError","RouterDataResolved","isAngularInTestMode","normalize","ɵngcc1","ɵngcc2","RouterStateSerializer","ɵngcc3","ctorParameters","Store","Navigate","__metadata","Function","NgxsRouterPluginModule","DefaultRouterStateSerializer","NgxsModule","NgxsFormPlugin","getActionTypeFromInstance","UpdateForm","ResetForm","payloadValue","joinPathWithPropertyPath","propertyPath","NgxsFormPluginModule","NGXS_PLUGINS","NGXS_DEVTOOLS_OPTIONS","NgxsReduxDevtoolsPlugin","devtoolsExtension","windowObj","globalDevtools","__REDUX_DEVTOOLS_EXTENSION__","devToolsExtension","connect","dispatched","sendToDevTools","actionsById","computedStates","currentStateIndex","nextLiftedState","actionId","actionPayload","USER_OPTIONS","NgxsReduxDevtoolsPluginModule","devtoolsOptionsFactory","MapToOperator","MapToSubscriber","elMatches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","scrollingClassTimeout","isAlive","settings","scrollingThreshold","EventElement","handlers","prototypeAccessors","configurable","unbind","this$1","unbindAll","defineProperties","eventElements","CustomEvent","createEvent","initCustomEvent","diff","useScrollingClass","forceFireReachEvent","contentHeight","containerHeight","up","down","reach","addScrollingClass","removeScrollingClass","setScrollingClassInstantly","processScrollDiff$1","eventElement","once","onceHandler","env","isWebKit","supportsTouch","maxTouchPoints","DocumentTouch","supportsIePointer","msMaxTouchPoints","isChrome","roundedScrollTop","containerWidth","contentWidth","scrollbarXRail","queryChildren","scrollbarYRail","suppressScrollX","scrollXMarginOffset","scrollbarXActive","railXWidth","railXMarginWidth","railXRatio","scrollbarXWidth","getThumbSize","toInt","scrollbarXLeft","negativeScrollAdjustment","suppressScrollY","scrollYMarginOffset","scrollbarYActive","railYHeight","railYMarginHeight","railYRatio","scrollbarYHeight","scrollbarYTop","xRailOffset","isScrollbarXUsingBottom","scrollbarXBottom","scrollbarXTop","yRailOffset","isScrollbarYUsingRight","scrollbarYRight","scrollbarYOuterWidth","scrollbarYLeft","scrollbarX","railBorderXWidth","scrollbarY","railBorderYWidth","updateCss","thumbSize","minScrollbarLength","maxScrollbarLength","pageY","startingScrollTop","startingMousePageY","scrollBy","updateGeometry","mouseMoveHandler","touchMode","oe","mouseUpHandler","bindMoves","positionTop","pageYOffset","positionLeft","pageX","pageXOffset","bindMouseScrollHandler","keyboard","isDefaultPrevented","defaultPrevented","contentDocument","isEditable","deltaX","deltaY","which","wheelPropagation","shouldPreventDefault","wheel","wheelDeltaX","wheelDeltaY","deltaMode","wheelDelta","getDeltaFromEvent","overflowY","maxScrollTop","overflowX","maxScrollLeft","shouldBeConsumedByChild","shouldPrevent","useBothWheelAxes","wheelSpeed","isTop","isBottom","onwheel","mousewheelHandler","onmousewheel","startOffset","speed","easingLoop","touchStart","touchMove","touchEnd","PointerEvent","MSPointerEvent","differenceX","differenceY","targetTouches","pointerType","buttons","MSPOINTER_TYPE_MOUSE","shouldHandle","getTouch","clearInterval","currentOffset","applyTouchMove","timeGap","magnitudeX","magnitudeY","swipeEasing","setInterval","isInitialized","PerfectScrollbar","userSettings","originalScrollLeft","isNegativeScroll","railXStyle","borderLeftWidth","borderRightWidth","railYStyle","paddingLeft","paddingRight","outerWidth","borderTopWidth","borderBottomWidth","handlerName","lastScrollTop","lastScrollLeft","onScroll","processScrollDiff","removePsClasses","MapShim","__entries__","class_1","enumerable","getIndex","global$1","requestAnimationFrame$1","transitionKeys","mutationObserverSupported","ResizeObserverController","connected_","mutationEventsAdded_","mutationsObserver_","observers_","onTransitionEnd_","refresh","leadingCall","trailingCall","lastCallTime","proxy","resolvePending","timeStamp","timeoutCallback","addObserver","connect_","removeObserver","disconnect_","updateObservers_","activeObservers","gatherActive","hasActive","broadcastActive","getInstance","instance_","defineConfigurable","getWindowOf","emptyRect","createRectInit","toFloat","isSVGGraphicsElement","SVGGraphicsElement","SVGElement","getBBox","bbox","getSVGContentRect","paddings","positions_1","getPaddings","horizPad","vertPad","boxSizing","getBordersSize","isDocumentElement","vertScrollbar","horizScrollbar","getHTMLElementContentRect","ResizeObservation","broadcastWidth","broadcastHeight","contentRect_","getContentRect","broadcastRect","ResizeObserverEntry","rectInit","contentRect","Constr","DOMRectReadOnly","createReadOnlyRect","ResizeObserverSPI","controller","callbackCtx","activeObservations_","observations_","callback_","controller_","callbackCtx_","observations","unobserve","clearActive","observation","ResizeObserver","ctx_r0","indicatorY","interaction","indicatorX","_c0","PERFECT_SCROLLBAR_CONFIG","Geometry","w","PerfectScrollbarEvents","PerfectScrollbarConfig","PerfectScrollbarDirective","differs","platformId","ro","configDiff","ngDestroy","psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart","config_1","ps","geometry","absolute","animateScrolling","scrollToX","scrollToY","scrollToTop","scrollToLeft","scrollToRight","scrollToBottom","scrollToElement","qs","elementPos","scrollerPos","newValue_1","scrollCount_1","oldTimestamp_1","oldValue_1","cosParameter_1","step_1","newTimestamp","cos","KeyValueDiffers","decorators","propDecorators","Input","Output","outputs","exportAs","PerfectScrollbarComponent","cdRef","scrollPositionX","scrollPositionY","scrollDirectionX","scrollDirectionY","usePropagationX","usePropagationY","allowPropagationX","allowPropagationY","stateTimeout","stateUpdate","usePSClass","autoPropagation","scrollIndicators","directiveRef","checkPropagation","mapTo","ChangeDetectorRef","HostBinding","ViewChild","_t","hostBindings","vars","consts","PerfectScrollbarComponent_div_3_Template","PerfectScrollbarModule","LoadUserAction","LoadUserSuccessAction","LoadUserFailAction","LoginUserAction","LoginUserSuccessAction","LoginUserFailAction","LogoutUserAction","LogoutUserSuccessAction","LogoutUserFailAction","RenewToken","RenewTokenSuccess","RenewTokenFail","AuthenticationService","showLogin","IdpManager","showRegister","loadUser","apiUrl","login","httpOptions","HttpHeaders","originalUser","logout","isAuthenticated","renewToken","UserState","authService","loadUserAction","loadUserSuccessAction","loadUserFailAction","loginUserAction","id_token","loginUserSuccessAction","loginUserFailAction","logoutUser","logoutUserSuccessAction","logoutUserFailAction","endsWith","resp","renewTokenSuccess","renewTokenFail","hd","LoadFormTemplateForFo","LoadFormTemplateForFoSuccess","formModel","LoadFormTemplateForFoFailed","SendAnswers","answersMap","TryAutoSave","AutoSaveSuccess","AutoSaveChangeLabel","AutoSaveFailed","FormSaveSuccess","FormSaveFailed","LoadSavedForm","LoadSavedFormSuccess","isCompleted","hasAccreditations","LoadSavedFormFailed","IsFrontOfficeDeadlineOpen","eventId","IsFrontOfficeDeadlineOpenSuccess","IsFrontOfficeDeadlineOpenFailed","LoadFormListForUser","LoadFormListForUserSuccess","forms","LoadFormListForUserFailed","ResetFormModel","GetTermsAndConditionsFo","GetTermsAndConditionsSuccessFo","terms","GetTermsAndConditionsFailedFo","PrintForm","PrintFormSuccess","PrintFormFailed","LoadDataFromOtherForm","formId","LoadDataFromOtherFormSuccess","answers","LoadDataFromOtherFormFail","LoadAutoFillModelForFoSuccess","FetchLegalConditions","SetLegalConditions","rotateVideoInput","imageAsDataUrl","mimeType","imageData","_mimeType","_imageAsBase64","_imageAsDataUrl","_imageData","dataUrl","imageAsBase64","WebcamImage","getDataFromDataUrl","mediaDevices","enumerateDevices","devices","device","WebcamComponent","videoOptions","DEFAULT_VIDEO_OPTIONS","allowCameraSwitch","captureImageData","imageType","DEFAULT_IMAGE_TYPE","imageQuality","DEFAULT_IMAGE_QUALITY","imageCapture","initError","imageClick","cameraSwitched","availableVideoInputs","videoInitialized","activeVideoInputIndex","mediaStream","activeVideoSettings","triggerSubscription","takeSnapshot","switchCamera","switchCameraSubscription","switchToVideoInput","deviceId","baseMediaTrackConstraints","mediaStreamTrack","getSettings","getConstraints","deviceIdObj","getValueFromConstrainDOMString","facingMode","facingModeConstraint","getFacingModeFromMediaStreamTrack","constrainDOMString","ideal","detectAvailableDevices","stopMediaTracks","unsubscribeFromSubscriptions","_video","nativeVideoElement","dimensions","videoWidth","videoHeight","_canvas","canvas","context2d","drawImage","toDataURL","getImageData","forward","initWebcam","videoResize","videoRatio","getVideoAspectRatio","videoStyleClasses","isMirrorImage","video","videoElement","userVideoTrackConstraints","getUserMedia","videoTrackConstraints","getMediaConstraintsForDevice","srcObject","getVideoTracks","activeDeviceId","getDeviceIdFromMediaStreamTrack","findIndex","mediaDeviceInfo","mediaStreamError","getActiveVideoTrack","mirror","mirrorImage","isUserFacing","getTracks","track","WebcamUtil","getAvailableVideoInputs","aie","sie","WebcamModule","firstName","lastName","GetAvailableVideoInputs","StoreImageTaken","image","UploadImage","UploadFailed","RemoveImageTakenLocally","GeoInfoService","getCountries","getNationalities","LocalStorageService","localStorageValue","localStorageIsSupported","localStorage","FormService","getFormTemplate","submit","patch","autoSave","getSavedForm","activateForm","invitationId","isFoOpen","getAvailableForms","printForm","getFileName","fileContent","contentDispositionHeader","FormChangesService","answersInMemory","initAnswers","setNewValue","getChangedAnswers","objectToReturn","stringValue","getStringValue","currentProp","plucker","PostCodeValidationService","setCountryId","countryId","validatePostCode","postCode","timeOut","code","toPromise","FormConfigToFormlyService","postCodeValidation","getFormForFormly","countries","nationalities","newFields","field","changeFieldsAndFieldGroups","createRegexFromPattern","templateOptions","translateLabels","emailPattern","fieldGroup","forceEnableForExpiryDates","formModels","formField","expressionProperties","forceDisableForExpiryDates","addUniqueFieldClass","addFunctionsToExpressionProperties","setTemplateOptionsIndeterminate","setOptionsForCountries","setOptionsForNationalities","listenToNeverExpires","manageDateRangesValidation","setOptionsForGermanFederalStates","managePostCodeValidation","takeUntilObs$","onInit","pluck","country","formControl","postcode","expression","listenToNeverExpiresToEmptyExpiryDate","fieldKey","valueProp","labelProp","germanFederalStates","validation","messages","fg","beyondMaxRule","moment","beyondMinRule","epRequiredOptions","evalFunction","hideExpression","epKey","fnMarker","fnStr","argsStr","bodyStr","FrontOfficeErrorService","redirectToErrorPage","LegalConditionsService","getLegalConditions","FormState","geoInfoService","formService","formChangesService","formConfigToFormlyService","foErrorService","legalConditionsService","autoFillModel","theme","autosaveMessage","previousModel","saveStatus","availableForms","isPreviousModelCompleted","formAllowChanges","invitationSiteIds","isFormCompleted","loadFormTemplate","loadFormSuccess","sections","loadAutoFillForm","loadFormFailed","sendAnswers","userState","idscanning","profilePicture","FormAnswerModel","picture","autoSaveChangeLabel","autoSaveSuccess","autoSaveFailed","formSaveSuccess","formSaveFailed","loadSavedForm","hasValidAccreditations","canUserChangesAccreditationData","sites","formStatus","loadSavedFormSuccess","setUpAnswersForModelAndAutosave","isFrontOfficeDeadlineOpen","isFrontOfficeDeadlineOpenSuccess","loadSavedFormFailed","loadFormListForUser","loadFormListForUserSuccess","loadFormListForUserFailed","resetFormModel","getTermsAndConditions","getTermsAndConditionsSuccess","getTermsAndConditionsFailed","fetchLegalConditions","userLang","saveAs","loadDataFromOtherForm","loadDataFromOtherFormFail","loadDataFromOtherFormSuccess","legalconditions","availableFieldsInEvent","flatMap","answersWithOnlyAvailableFields","isToInitForm","answersMapCopy","base64img","jsonParsed","oa","ImageType","signature","requiredBufferLength","SupportedImageType","signatures","ImageSignature","subArr","fileExtensions","defaultExtension","JPEG","sig","PNG","supportedImageTypes","ProfilePictureState","oneMbSize","availableCameras","imageUrl","storeImageTaken","uploadImage","imageFile","errMessage","checkImageFileForRequirements","storeUploadedImage","uploadFailed","removeImageTakenLocally","isSupported","isSupportedImageType","fileSizeLimit","bufferLenght","getBufferLength","readBuffer","uint8Array","file","reader","FileReader","onload","readAsArrayBuffer","readerUrl","readAsDataURL","Mp","LegalConditionsState","termsAndConditions","setLegalConditions","Kv","StartAnalyzeDocument","documentScanning","isMobile","StartAnalyzeDocumentSuccess","StartAnalyzeDocumentError","LoadFormTemplateForBo","LoadFormTemplateForBoSuccess","LoadFormTemplateForBoFailed","GetInvitation","SetSelectedInvitation","CreatePerson","CreatePersonSuccess","CreatePersonFailed","UpdatePerson","UpdatePersonSuccess","UpdatePersonFailed","UpdateInvitationSites","isFormValid","UpdateInvitationSitesSuccess","UpdateInvitationSitesFailed","RefreshAccreditations","accreditationRequestId","LoadAutoFillModelForBoSuccess","ScanningStatus","ConfigResolverService","moduleName","getModuleName","boConfig","foConfig","rootRoute","isFrontOfficeModule","DeviceDetectorService","detectIsMobileDevice","toMatch","toMatchItem","DocumentScanningService","configResolver","deviceDetector","analyzeDocument","DocumentScanningState","documentScanningService","configResolverService","scanningStatus","startAnalyzeDocument","formResult","startAnalyzeDocumentSuccess","startAnalyzeDocumentError","X_","appStates","ExpiredLinkPageComponent","FoClosedComponent","ActivateInvitationResolver","ctx_r2","ImportOptionComponent","optionClicked","selectRadio","isAnonymised","matRadio","ctx_r5","oxw","ctx_r7","actions$","destroy$","ofActionDispatched","loading","forms$","approved","completedForms","eventStartDate","selectedFormId","confirmImport","ImportDataComponent","Sk","notifier","SkipUntilSubscriber","FormAppereanceService","disableAllNotPdsControls","disableAllFields","enableAllFields","enableAllControls","IdScanningSkipEventService","shouldSkip","navigateToMainForm","navigateToForm","resetNavigateToForm","field_r2","_c1","_c2","_c3","_keyPath","FORMLY_VALIDATORS","getKeyPath","autoClear","assignModelValue","dest","srcArg","isNullOrUndefined","isBlankString","objAndSameType","reverseDeepMerge","obj1","obj2","isObservable","changingThisBreaksApplicationSecurity","_isAMomentObject","setPrototypeOf","newVal","propDesc","setFn","_observers","defineHiddenProp","fns","updateValidity","updateValidityArgs","FORMLY_CONFIG","types","wrappers","templateManipulators","preWrapper","postWrapper","checkExpressionOn","parentForm","show","extensions","addConfig","setType","setValidator","wrapper","setWrapper","manipulators","manipulator","setManipulator","validationMessages","addValidatorMessage","extension","setTypeWrapper","getType","mergeExtendedType","getMergedField","extendDefaults","extends","optionsTypes","resolveFieldTypeRef","_resolver","getWrapper","getValidator","getValidatorMessage","class","extendedType","FormlyConfig","ngInjectableDef","defineInjectable","formlyConfig","buildForm","core","_setOptions","reduceFormUpdateValidityCalls","_buildForm","_checkField","getExtensions","prePopulate","onPopulate","postPopulate","fieldChanges","_hiddenFieldsForCheck","_componentRefs","FormlyFormBuilder","ComponentFactoryResolver","INJECTOR","FormlyForm","formlyBuilder","immutable","parentFormGroup","modelChange","_modelChangeValue","modelChangeSubs","modelChange$","modelChangeSub","checkExpressionChange","_fields","setOptions","updateInitialValue","clearModelSubscriptions","trackModelChanges","changeModel","assignFieldValue","resetModel","_initialModel","wrapProperty","emitModelChange","rootKey","modelOptions","default","parsers","parserFn","FormlyForm_formly_field_0_Template","FormlyField","hideDeprecation","warnDeprecation","hostObservers","componentRefs","hooksObservers","triggerHook","resetRefs","renderField","wps","attachComponentRef","lifecycle","renderHostBinding","ViewContainerRef","FormlyField_ng_template_0_Template","FormlyAttributes","uiAttributesCache","uiAttributes","uiEvents","to","fieldAttrElements","_elementRefs","detachElementRef","attachElementRef","toggleFocus","onFocus","___$focus","onBlur","FieldType","___$disabled","_formlyControls","getFieldValue","_hide","__patchForEachChild","FieldWrapper","ɵFieldWrapper_BaseFactory","fieldComponent","FormlyGroup","ɵFormlyGroup_BaseFactory","fieldGroupClassName","FormlyGroup_formly_field_0_Template","FormlyValidationMessage","fieldForm","errorPath","pipes","FormlyTemplateType","sanitizer","innerHtml","safeHtml","argVal","ignoreCache","checkField","_expressionProperties","expressionProperty","_evalExpression","setExprValue","hide","parentExpression","argNames","evalStringExpression","toggleFormControl","checkFieldExpressionChange","checkFieldVisibilityChange","expressionValue","evalExpression","hideExpressionResult","hidden","unregisterControl","initFieldValidation","getPredefinedFieldValidation","validatorName","wrapNgValidatorFn","VALIDATORS","validatorOption","__rest","handleResult","controlErrors","addFormControl","findControl","controlOptions","componentType","createControl","updateValidity$$1","getFieldComponentInstance","fieldTransforms","fieldTransform","initFieldOptions","getFieldId","initFieldWrappers","fieldTemplateManipulators","CoreExtension","FieldValidationExtension","FieldFormExtension","FieldExpressionExtension","FormlyModule","configs","defaultFormlyConfig","ctx_r11","ctx_r14","ctx_r16","ctx_r19","ctx_r23","ctx_r25","fcToFormly","formAppearenceService","idScanningSkipEventService","subscribeToSetUser","subscribeToLoadFormTemplate","subscribeToStartToManageTheme","subscribeToStartAutoSave","manageDisplayOfAutoSaveMessage","subscribeToManageModelData","subscribeToDisableForm","loadTranslations","subscribeToAutoFillForm","nextStep","activedStep","getElementById","scrollIntoView","behavior","personalDetailsStepIndex","navigateToStep","isFormCompleted$","isPdfAvailable","isImportUnavailable","ofActionSuccessful","isPrevModelCompleted$","formArray","invitationSiteIds$","prevModel$","formAllowsChanges$","sitesIds","prevModel","formAllowsChanges","agree","termsAndConditionsAccepted","op","mainModel","showLoading","user$","actualUsefulFormTemplate$","form$","onDestroySubject","personalDetailsStep","addContactDetailsTitle","addPersonalDetailsTitle","autoFillForm$","onModelChange","section","formtheme$","abbr","modelChangeSubject","SkipUntilOperator","displaySavingSubject","handleStepperSelectionChange","submitedForm","getPdf","prevStep","importData","FormRenderComponent","e0","LandingComponent","NgLetDirective","vcr","NgLetContext","ngLet","NgLetModule","InvitationCardComponent","idClicked","imageSrc","invitationInput","eventNameAbbreviation","logoSrc","ctx_r10","ctx_r15","HomeComponent","Dk","base64","base64Url","jsonPayload","atob","ConnectionService","connection$","offline","online","shareReplay","ctx_r30","connectionService","uid","isConnected","idToken","fullToken","JwtUtils","LayoutDefaultComponent","x2","AuthenticationGuard","PageNotFoundComponent","goHome","RedirectToHomeGuard","routerStateSnapshot","userFromState","DeadlineGuard","ServerErrorPageComponent","locationUrl","debug","urlToGo","eventDesc","isFailure","EventID","Locale","EventDescription","IsFailure","formID","imageResults","textResult","textResults","TranslateApiService","HttpTransportType","None","WebSockets","ServerSentEvents","LongPolling","TransferFormat","Text","Binary","DEFAULT_RETRY_DELAYS_IN_MILLISECONDS","retryDelays","_retryDelays","nextRetryDelayInMilliseconds","retryContext","previousRetryCount","Ej","HeaderNames","Authorization","Cookie","statusText","Gi","getCookieString","HttpClient","innerClient","accessTokenFactory","_innerClient","_accessTokenFactory","allowRetry","_accessToken","_setAuthorizationHeader","no","trueProto","transport","innerErrors","LogLevel","Trace","Debug","Information","Warning","Critical","_logLevel","_message","NullLogger","isWebWorker","isReactNative","release","includeContent","detail","isArrayBuffer","byteLength","num","formatArrayBuffer","ArrayBuffer","transportName","httpClient","getUserAgentHeader","getDataDetail","logMessageContent","ht","_subject","_observer","cancelCallback","minimumLogLevel","_minLevel","out","msg","userAgentHeaderName","constructUserAgent","getOsName","getRuntimeVersion","os","runtime","runtimeVersion","majorAndMinor","versions","fetchObj","_fetchType","_jar","require","globalThis","getGlobalThis","_abortControllerType","AbortController","abortObj","configureAbortController","abortSignal","AbortError","abortController","onabort","abort","TimeoutError","cache","credentials","redirect","signal","ok","deserializeContent","HttpError","HttpResponse","cookies","getCookies","arrayBuffer","ontimeout","FetchHttpClient","XhrHttpClient","_isAborted","pollAborted","_pollAbort","_running","onreceive","onclose","transferFormat","Arg","_url","pollOptions","pollUrl","_closeError","_receiving","_poll","_raiseOnClose","sendMessage","deleteOptions","logMessage","accessToken","eventSource","EventSource","onmessage","_close","onopen","_eventSource","webSocketConstructor","_logMessageContent","_webSocketConstructor","_headers","webSocket","binaryType","_event","_webSocket","ErrorEvent","OPEN","_isCloseEvent","wasClean","_stopPromiseResolver","_negotiateVersion","ConsoleLogger","baseUrl","_resolveUrl","webSocketModule","eventSourceModule","WebSocket","AccessTokenHttpClient","DefaultHttpClient","_connectionState","_connectionStarted","_startInternalPromise","_startInternal","_stopPromise","_sendQueue","TransportSendQueue","_stopInternal","_stopError","_stopConnection","skipNegotiation","_constructTransport","_startTransport","negotiateResponse","redirects","_getNegotiationResponse","ProtocolVersion","_createTransport","LongPollingTransport","inherentKeepAlive","negotiateUrl","_resolveNegotiateUrl","negotiateVersion","connectionToken","connectionId","useStatefulReconnect","_useStatefulReconnect","FailedToNegotiateWithServerError","_createConnectUrl","requestedTransport","requestedTransferFormat","connectUrl","_isITransport","transportExceptions","transports","availableTransports","negotiate","endpoint","transportOrError","_resolveTransportOrError","FailedToStartTransportError","AggregateErrors","WebSocketTransport","ServerSentEventsTransport","reconnect","callStop","disconnected","resend","actualTransport","transportMatches","DisabledTransportError","transferFormats","UnsupportedTransportError","aTag","URL","searchParams","_transport","_buffer","_executing","_sendBufferedData","PromiseSource","_transportResult","_sendLoopPromise","_sendLoop","_bufferData","transportResult","_concatBuffers","arrayBuffers","totalLength","_rejecter","TextMessageFormat","RecordSeparator","RecordSeparatorCode","writeHandshakeRequest","handshakeRequest","parseHandshakeResponse","messageData","remainingData","binaryData","separatorIndex","responseLength","textData","MessageType","Invocation","StreamItem","Completion","StreamInvocation","CancelInvocation","Ping","Close","Ack","Sequence","SubjectSubscription","connection","bufferSize","_bufferSize","_messages","_totalMessageCount","_waitForSequenceMessage","_nextReceivingSequenceId","_latestReceivedSequenceId","_bufferedByteCount","_reconnectInProgress","_protocol","_connection","_send","serializedMessage","writeMessage","backpressurePromise","_isInvocationMessage","backpressurePromiseResolver","backpressurePromiseRejector","BufferedItem","_disconnected","_ack","ackMessage","newestAckedMessage","sequenceId","I2","_shouldProcessMessage","currentId","_ackTimer","_resetSequence","_resend","_rejector","_ackTimerHandle","rejector","HubConnectionState","Disconnected","Connecting","Connected","Disconnecting","Reconnecting","reconnectPolicy","serverTimeoutInMilliseconds","keepAliveIntervalInMilliseconds","statefulReconnectBufferSize","HubConnection","_nextKeepAlive","_freezeEventListener","_statefulReconnectBufferSize","_reconnectPolicy","_handshakeProtocol","HandshakeProtocol","_processIncomingData","_connectionClosed","_callbacks","_methods","_closedCallbacks","_reconnectingCallbacks","_reconnectedCallbacks","_invocationId","_receivedHandshakeResponse","_cachedPingMessage","_startPromise","_startWithStateTransitions","_stopDuringStartError","handshakePromise","_handshakeResolver","_handshakeRejecter","_sendMessage","_cleanupTimeout","_resetTimeoutPeriod","_resetKeepAliveInterval","_messageBuffer","MessageBuffer","_cleanupPingTimer","startPromise","_reconnectDelayHandle","_completeClose","_sendCloseMessage","_sendWithProtocol","_createCloseMessage","methodName","streams","streamIds","_replaceStreamingParams","invocationDescriptor","_createStreamInvocation","promiseQueue","cancelInvocation","_createCancelInvocation","invocationId","invocationEvent","_launchStreams","sendPromise","_createInvocation","invoke","on","newMethod","off","removeIdx","onreconnecting","onreconnected","_processHandshakeResponse","parseMessages","_invokeClientMethod","getErrorString","allowReconnect","responseMessage","_timeoutHandle","serverTimeout","_pingServerHandle","nextPing","invocationMessage","_createCompletionMessage","methodsCopy","expectsResponse","completionMessage","prevRes","_cancelCallbacksWithError","_reconnect","reconnectStartTime","previousReconnectAttempts","retryError","nextRetryDelay","_getNextRetryDelay","elapsedMilliseconds","retryReason","callbacks","nonblocking","streamId","_createStreamItemMessage","argument","_isObservable","arg","hubMessages","parsedMessage","_isStreamItemMessage","_isCompletionMessage","_isAckMessage","_isSequenceMessage","_assertNotEmptyString","LogLevelNameMapping","trace","information","warning","critical","none","configureLogging","logging","mapping","parseLogLevel","withUrl","transportTypeOrOptions","httpConnectionOptions","withHubProtocol","withAutomaticReconnect","retryDelaysOrReconnectPolicy","DefaultReconnectPolicy","withServerTimeout","milliseconds","_serverTimeoutInMilliseconds","withKeepAliveInterval","_keepAliveIntervalInMilliseconds","withStatefulReconnect","HttpConnection","JsonHubProtocol","DocReaderSignalRService","initializeSignalr","createConnection","startConnection","isBackOffice","hubConnection","HubConnectionBuilder","wsUrl","connectionEstablished","attemptReconnect","connectionIsEstablished","stopConnection","registerOnScanningUpdate","onScanningUpdate","registerOnScanResults","onScanningResults","sendScanningProcessUpdate","registerOnRefreshQr","onQrRefresh","IdScanningLogsService","logEvent","idScanningLog","logEnabled","isBO","idScanningLogUrlApi","checkLogsExist","regulaTextObject","fieldName","fieldType","validityStatus","createRegulaTextObject","regulaImageObject","imageBase64","createRegulaImageObject","P","Ka","da","Wa","$a","S","return","throw","R","Ea","ba","L","bb","T","U","getOwnPropertyNames","propertyIsEnumerable","toStringTag","fromCodePoint","codePointAt","V","initEvent","z","Event","cancelable","Y","W","bubbles","MouseEvent","Z","initMouseEvent","Q","$","te","getAttributeNames","ne","re","ae","Document","ie","le","ue","ce","de","fe","pe","_e","he","Ee","Ce","Se","ge","ye","Ie","Oe","CharacterData","Re","Ne","Ae","Te","be","De","Le","we","Pe","ke","Me","Fe","Ue","xe","He","je","Be","Ve","ze","Ye","We","WebComponents","Ke","Ze","qe","noOpts","Xe","Je","$e","shadydom","ShadyDOM","noPatch","tt","__shady","customElements","forcePolyfill","DOCUMENT_NODE","DOCUMENT_FRAGMENT_NODE","HTMLTemplateElement","createDocumentFragment","localName","importNode","DOMParser","parseFromString","firstElementChild","namespaceURI","thead","th","td","TEXT_NODE","COMMENT_NODE","toJSON","ot","Ya","it","msElementsFromPoint","Xr","ya","fa","preferPerformance","Aa","Na","ft","matchesSelector","oMatchesSelector","pt","Et","__shady_native_contains","__shady_parentNode","namedItem","__shady_native_firstChild","__shady_native_nextSibling","__shady_firstChild","__shady_nextSibling","yt","At","bt","Dt","wt","addedNodes","removedNodes","Pt","takeRecords","kt","Mt","xt","Ut","Ht","Ft","jt","Bt","Gt","__shady_native_querySelector","__shady_native_querySelectorAll","Vt","It","zt","Kt","createTreeWalker","NodeFilter","SHOW_ALL","Zt","SHOW_ELEMENT","qt","__shady_native_removeChild","Jt","Qt","$t","Rt","__shady_childNodes","__shady_lastChild","__shady_childElementCount","__shady_children","__shady_firstElementChild","lastElementChild","__shady_lastElementChild","__shady_shadowRoot","__shady_textContent","__shady_innerHTML","tn","__shady_parentElement","previousSibling","__shady_previousSibling","nextElementSibling","__shady_nextElementSibling","previousElementSibling","__shady_previousElementSibling","__shady_className","nn","rn","an","Pa","Ot","Oa","polyfillWrapFlushCallback","ln","sn","La","Ja","dn","focusin","focusout","click","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","beforeinput","keydown","keyup","compositionstart","compositionupdate","compositionend","touchstart","touchend","touchmove","touchcancel","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","gotpointercapture","lostpointercapture","dragstart","drag","dragenter","dragleave","dragover","drop","dragend","DOMActivate","DOMFocusIn","DOMFocusOut","keypress","DOMAttrModified","DOMAttributeNameChanged","DOMCharacterDataModified","DOMElementNameChanged","DOMNodeInserted","DOMNodeInsertedIntoDocument","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMSubtreeModified","__shady_getRootNode","pn","__shady_assignedSlot","ut","_n","__composed","composed","En","__target","__relatedTarget","__handlers","Cn","__immediatePropagationStopped","mn","CAPTURING_PHASE","AT_TARGET","vn","ra","BUBBLING_PHASE","Nn","Sn","__shady_native_dispatchEvent","cn","__shady_native_addEventListener","gn","__shady_removeEventListener","__previousCurrentTarget","currentTarget","Window","pb","bubble","__shady_native_removeEventListener","Rn","isTrusted","__composedPath","__relatedTargetComposedPath","__shady_sourceProto","__shady_patchedProto","An","hn","Tn","bn","Dn","Ln","__shady_addEventListener","ga","na","Mn","Pn","Fn","yn","In","On","Un","ShadyCSS","ScopingShim","xn","setElementClass","unscopeNode","Bn","currentScopeForNode","Vn","zn","Yn","Wn","Kn","__shady_removeChild","qa","qn","aa","Xn","ea","Qn","__shady_native_parentNode","__shady_native_lastChild","__shady_native_previousSibling","__shady_native_childNodes","__shady_native_parentElement","__shady_native_textContent","Zn","__shady_insertBefore","__shady_native_insertBefore","Jn","Gn","__noInsertionPoint","jn","scopeNode","Wr","Br","Dr","Lr","ct","__shady_native_appendChild","adoptNode","Kr","Ct","ia","assignedNodes","__shady_native_cloneNode","ATTRIBUTE_NODE","__shady_cloneNode","__shady_appendChild","$n","assignedSlot","Gr","nr","__shady_native_firstElementChild","__shady_native_lastElementChild","vt","gt","__shady_native_children","rr","Tt","prepend","replaceChildren","ar","er","or","Nt","ir","after","before","replaceWith","lr","Qa","Zr","qr","ur","__shady_native_previousElementSibling","__shady_native_nextElementSibling","slot","__shady_setAttribute","__shady_native_setAttribute","Hn","__shady_native_removeAttribute","wn","cr","shadyUpgradeFragment","jr","wr","Hr","Fr","__CE_shadowRoot","gb","dr","fr","__shady_native_innerHTML","pr","__shady_blur","__shady_native_blur","_r","mr","Er","Cr","__shady_native_activeElement","elementsFromPoint","hr","elementFromPoint","__shady_elementsFromPoint","vr","Sr","__shady_native_importNode","__shady_importNode","gr","yr","Ir","Comment","CDATASection","ProcessingInstruction","HTMLSlotElement","Or","Rr","__shady_protoIsPatched","Tr","br","Ar","Pr","Mr","Ur","deferConnectionCallbacks","Lt","_renderSelf","ua","__shady_slot","xa","zr","Yr","xr","Ga","Vr","St","kn","Fa","kr","define","Jr","__shadydom_connectedCallback","__shadydom_disconnectedCallback","Qr","$r","connectedCallback","disconnectedCallback","CustomElementRegistry","ta","__shady_replaceChild","__shady_contains","__shady_dispatchEvent","__shady_native_getAttribute","__shady_native_hasAttribute","__shady_removeAttribute","__shady_attachShadow","__shady_native_focus","__shady_getElementById","__shady_elementFromPoint","__shady_querySelector","__shady_querySelectorAll","__shady_assignedNodes","__shady_append","__shady_prepend","__shady_after","__shady_before","__shady_remove","__shady_replaceWith","__shady_activeElement","_activeElement","__shady_isConnected","inUse","isShadyRoot","enqueue","flushInitial","filterMutations","observeChildren","Ra","Sa","unobserveChildren","handlesDynamicScoping","wrap","wrapIfNeeded","Wrapper","patchOnDemand","nativeMethods","nativeTree","patchElementProto","Wt","Yt","currentNode","SHOW_TEXT","nextNode","Xt","Nr","ca","pa","ma","ha","Ca","va","Ia","getAttributeNS","Ta","insertAdjacentElement","insertAdjacentHTML","Da","wa","ka","Ma","Ua","Ha","ja","__CE_isImportDocument","import","mo","noDocumentConstructionObserver","shadyDomFastWalk","nb","Za","Xa","__CE_patched","__CE_state","eo","ob","upgrade","__CE_registry","__CE_documentLoadHandled","constructionStack","constructorFunction","__CE_definition","attributeChangedCallback","hasAttributes","observedAttributes","Va","HTMLUnknownElement","sourceURL","line","initErrorEvent","column","ao","Ba","adoptedCallback","so","oo","io","eb","lo","uo","whenDefined","polyfillDefineLazy","_o","fo","za","rules","cssText","parsedCssText","atRule","parsedSelector","keyframesName","Ao","To","Eo","vo","ko","Ro","Po","Oo","No","Io","So","bo","Do","Lo","wo","ho","__CE_installPolyfill","yo","Mo","shimcssproperties","cssBuild","Uo","disableRuntime","nativeCss","Fo","xo","Ho","jo","Bo","Go","Vo","zo","Yo","Co","qo","__cssRules","$o","Jo","DOCUMENT_POSITION_PRECEDING","ei","ti","ri","__cssBuild","_content","ui","ni","Ai","Wo","ai","mi","oi","Zo","vi","si","hi","Ni","yi","Si","Ii","gi","Ei","Oi","Ri","__styleInfo","Ti","_getStyleRules","wi","Pi","Fi","xi","Vi","Ko","ki","zi","Yi","Wi","Qo","Ki","styleElement","qi","Xi","fi","Ji","$i","Qi","HTMLImports","whenReady","Zi","nl","rl","_applyShimCurrentVersion","_applyShimValidatingVersion","_applyShimNextVersion","il","ll","Di","ApplyShim","invalidCallback","al","CustomStyleInterface","transformCallback","validateCallback","enqueued","flushCustomStyles","_style","ol","transformRules","pi","_validating","bi","ul","fl","pl","Mi","Li","ab","qb","hb","Hi","sl","lb","prepareTemplate","prepareTemplateDom","prepareTemplateStyles","_prepared","Xo","_domPrepared","processStyles","getStyleForCustomStyle","styleDocument","dl","Bi","ji","_useCount","styleSubtree","Ci","transformRule","getComputedStyleValue","kb","jb","mb","ib","_styleInfoForNode","transformCustomStyleForDocument","getStyleAst","styleAstToString","scopeForNode","prepareAdoptedCssText","nativeShadow","_l","ml","hl","ftp","gopher","https","ws","wss","createObjectURL","revokeObjectURL","El","Cl","vl","ready","Sl","exports","createContext","useContext","LocalizationConsumer","Consumer","LocalizationContext","LocalizationProvider","disableCache","useEffect","Provider","Message","defaultMessage","descriptor","useLocalize","getBrowser","getCPU","getDevice","getEngine","getOS","getUA","ClientUAInstance","browser","cpu","setUa","setUA","parseUserAgent","UA","setUserAgent","MSStream","major","vendor","KC","x_","nI","tq","BF","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","sanitizeURL","removeEmptyString","xlinkHref","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","for","prepareStackTrace","Reflect","construct","displayName","tag","render","$$typeof","_context","_valueTracker","stopTracking","defaultChecked","_wrapperState","initialChecked","initialValue","controlled","defaultSelected","dangerouslySetInnerHTML","valueOf","MSApp","execUnsafeLocalFunction","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","menuitem","area","embed","img","keygen","link","param","wbr","srcElement","correspondingUseElement","stateNode","alternate","memoizedState","dehydrated","unstable_scheduleCallback","unstable_cancelCallback","unstable_shouldYield","unstable_requestPaint","unstable_now","unstable_getCurrentPriorityLevel","unstable_ImmediatePriority","unstable_UserBlockingPriority","unstable_NormalPriority","unstable_LowPriority","unstable_IdlePriority","clz32","LN2","pendingLanes","suspendedLanes","pingedLanes","entangledLanes","entanglements","eventTimes","pointerId","nativeEvent","blockedOn","eventSystemFlags","targetContainers","priority","isDehydrated","containerInfo","ReactCurrentBatchConfig","charCode","_reactName","_targetInst","isPropagationStopped","cancelBubble","persist","isPersistent","getModifierState","fromElement","toElement","movementX","movementY","dataTransfer","pseudoElement","clipboardData","Spacebar","Apps","MozPrintableKey","Alt","Control","Meta","Shift","repeat","pressure","tangentialPressure","tiltX","tiltY","twist","isPrimary","deltaZ","documentMode","datetime","number","password","tel","week","oninput","detachEvent","attachEvent","HTMLIFrameElement","contentWindow","contentEditable","focusedElem","selectionRange","getSelection","rangeCount","anchorOffset","focusNode","focusOffset","createRange","setStart","removeAllRanges","addRange","setEnd","animationend","animationiteration","animationstart","transitionend","parentWindow","__html","queueMicrotask","contextTypes","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","childContextTypes","getChildContext","__reactInternalMemoizedMergedChildContext","Pu","elementType","deletions","pendingProps","treeContext","retryLane","memoizedProps","defaultProps","_currentValue","childLanes","dependencies","firstContext","lanes","yl","memoizedValue","interleaved","updateQueue","baseState","firstBaseUpdate","lastBaseUpdate","shared","effects","eventTime","lane","Ds","xs","Component","refs","isMounted","_reactInternals","enqueueSetState","nu","ru","au","enqueueReplaceState","enqueueForceUpdate","shouldComponentUpdate","isPureReactComponent","contextType","updater","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","getDerivedStateFromProps","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","_owner","_stringRef","Mu","Hu","Fu","ju","Uu","revealOrder","_workInProgressVersionPrimary","ReactCurrentDispatcher","baseQueue","lastRenderedReducer","hasEagerState","eagerState","lastRenderedState","getSnapshot","lastEffect","stores","readContext","useCallback","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","Ls","identifierPrefix","digest","Ws","Ks","getDerivedStateFromError","componentDidCatch","Zs","componentStack","pingCache","Au","gl","ReactCurrentOwner","Il","Wl","ku","Nl","bl","baseLanes","cachePool","Ms","ks","Yl","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","Ll","Tl","pendingContext","kl","Ml","Fl","Ul","xu","xl","jl","Bl","dataset","dgst","Eu","bu","_reactRetry","subtreeFlags","isBackwards","rendering","renderingStartTime","tail","tailMode","Gl","Vl","Zl","wasMultiple","suppressHydrationWarning","onclick","Fs","Kl","zs","pu","Jl","Ql","$l","WeakSet","es","Nu","ls","ss","_reactRootContainer","ds","fs","ms","onCommitFiberUnmount","_s","componentWillUnmount","Du","Cs","Es","vs","isHidden","Vs","hs","Is","us","gs","Os","ys","__reactInternalSnapshotBeforeUpdate","Rs","Ns","As","Ts","Ps","Us","Hs","js","Bs","Gs","Ys","Xs","Js","Qs","$s","eu","tu","uu","ou","callbackNode","expirationTimes","expiredLanes","callbackPriority","Lu","iu","Ou","Cu","_u","Su","mu","lu","finishedWork","finishedLanes","Iu","timeoutHandle","yu","vu","gu","ql","Xl","mutableReadLanes","Ss","onCommitFiberRoot","onRecoverableError","onPostCommitFiberRoot","Ru","Tu","wu","isReactComponent","pendingChildren","mutableSourceEagerHydrationData","Bu","pendingSuspenseBoundaries","Gu","zu","Zu","wl","Hl","zl","Al","Dl","Ol","Rl","Pl","Xu","_internalRoot","Ku","Wu","Yu","tc","fu","Qu","Ju","unmount","unstable_scheduleHydration","qu","du","usingClientEntryPoint","Events","findFiberByHostInstance","bundleType","rendererPackageName","oc","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setErrorHandler","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","reconcilerVersion","__REACT_DEVTOOLS_GLOBAL_HOOK__","ic","supportsFiber","createPortal","$u","Vu","createRoot","unstable_strictMode","findDOMNode","flushSync","hydrate","ec","nc","hydrateRoot","hydratedSources","_getVersion","_source","unmountComponentAtNode","unstable_batchedUpdates","unstable_renderSubtreeIntoContainer","checkDCE","forceUpdate","__self","__source","_status","Children","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","cloneElement","_currentValue2","_threadCount","_defaultValue","_globalName","createFactory","createRef","isValidElement","lazy","memo","startTransition","unstable_act","sortIndex","expirationTime","priorityLevel","scheduling","isInputPending","MessageChannel","port2","port1","postMessage","unstable_Profiling","unstable_continueExecution","unstable_forceFrameRate","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_runWithPriority","unstable_wrapCallback","nmd","ME","XP","Vista","RT","getResult","architecture","VERSION","BROWSER","CPU","DEVICE","ENGINE","OS","UAParser","amdD","amdO","jQuery","Zepto","locals","mask","ellipse","man","photo","card","spinner","spin","full","footer","ads","processing","layout","icon","subtitle","contain","cover","mirroring","loaded","__esModule","ly","Empty","FitFaceIntoOval","LookStraight","MoveCloser","MoveAway","HoldStill","ShowOnlyOneFace","Far","Near","Normal","Alarm","Finished","InProcess","Timeout","Failed","UINT","BASE64","UINT_AND_BASE64","ELEMENT_VISIBLE","PRESS_START_BUTTON","PRESS_RETRY_BUTTON","CLOSE","PROCESS_FINISHED","SERVICE_INITIALIZED","PRESS_CAMERA_BUTTON","PRESS_FILE_BUTTON","PRESS_SKIP_BUTTON","FINDING","PROCESSING","SUCCESS","FAILED","RESOLUTION","GLARE","FOCUS","HOLD","START_DETECTION","START_NEXT_PAGE","SNAPSHOT","TIMEOUT","IMAGE_GLARES","IMAGE_FOCUS","IMAGE_RESOLUTION","IMAGE_COLORNESS","PERSPECTIVE","BOUNDS","SCREEN_CAPTURE","PORTRAIT","HANDWRITTEN","OK","WAS_NOT_DONE","PREPARING","REQUESTING","READY","PLAY","UNKNOWN_ERROR","PERMISSION_DENIED","NO_CAMERA","INCORRECT_CAMERA_ID","INSTRUCTION","CAPTURING","PROCESSING_REQUEST","WASM_DEFAULT_ERROR","NOT_SUPPORTED_ERROR","WASM_LICENSE_ERROR","NO_CAMERA_ERROR","PERMISSION_DENIED_ERROR","INCORRECT_CAMERA_ID_ERROR","CHOOSE_INPUT_SOURCE","CAMERA_PROCESSING","FILE_PROCESSING","API_PROCESSING","FILE_SIZE_ERROR","INCORRECT_FILE_ERROR","NOT_FINISHED","FINISHED","PROCESS","PROCESS_IMAGE","START_NEW_DOCUMENT","START_NEW_PAGE","MrzAndLocate","MrzOrLocate","Mrz","Locate","WASM_ERROR","WASM_LICENSE","FILE_SIZE","INCORRECT_FILE","NOT_SUPPORTED","CAMERA_UNKNOWN_ERROR","CAMERA_PERMISSION_DENIED","CONNECTION_ERROR","LANDSCAPE_MODE_RESTRICTED","NOT_PREPARED","NOT_INITIALIZED","IN_PROCESS","ALREADY_PREPARED","ALREADY_INITIALIZED","onRuntimeInitialized","processImage","startNewPage","startNewDocument","initializeService","stderr","HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA","stdout","prepare","initialize","OFF","LOG","INFO","WARN","Rtl","Ltr","VGA","HD","FULL_HD","SQUARE","iOS","Chrome","Firefox","Opera","Safari","Edge","Chromium","IE","Android","desktop","scenario","caption","desc","frameKWHDoublePageSpreadLandscape","frameKWHDoublePageSpreadPortrait","frameKWHLandscape","frameKWHPortrait","frameOrientation","multiPageOff","seriesProcessMode","barcodeExt","faceExt","manualCrop","UVTorch","processParam","returnUncroppedImage","multipageProcessing","timeoutFromFirstDetect","timeoutFromFirstDocType","imageQa","expectedPass","dpiThreshold","glaresCheck","glaresCheckParams","imgMarginPart","maxGlaringPart","facing","groupId","logLvl","getOwnPropertySymbols","getOwnPropertyDescriptors","asyncIterator","_invoke","__await","sent","_sent","dispatchException","abrupt","resultName","nextLoc","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","completion","isGeneratorFunction","awrap","AsyncIterator","rval","delegateYield","willReadFrequently","Image","videoParams","videoDevices","isCameraAllowed","isDevicesChecked","selectedCamera","frontCameras","backCameras","audio","camera","frameRate","raw","glareCheck","resolutionCheck","focusCheck","isDocumentAvailable","rawResponse","ContainerList","List","ImageQualityCheckList","page_idx","DocumentPosition","morePagesAvailable","ProcessingFinished","onVideoStatusChange","objectFit","onVideoSizeChange","onFailStatus","onPlay","resolution","cameraId","videoContainerParams","videoStatus","autoPlay","playsInline","fullscreen","verified","cx","cy","rx","ry","stroke","strokeLinecap","strokeLinejoin","fillRule","clipRule","cross","square","preserveAspectRatio","clipPath","isServiceInitialized","onChangeMirroring","onChangeCamera","videoStatusParams","onCameraSnapshot","onSkip","frameParams","videoElementParams","showChangeCameraButton","userFrame","frameTop","frameLeft","frameWidth","frameHeight","borderSize","borderRadius","shadowSize","borderColor","boxShadow","onResponse","onFail","onStatusChange","internalScenario","license","changeCamera","manual","frameBottom","frameRight","serviceFrame","light","resolutionType","prepareListener","isPrepared","recognizerProcessParam","imageInputParam","onClose","completionStatus","copyright","onFileImageSet","accept","files","images","prepared","imageProcessParam","zh","sk","uk","sv","ReferenceError","sham","Proxy","supportedBrowserVersions","portrait","landscape","RegulaDocumentSDK","startScreen","isPortrait","isLandscape","_mounted","onCapture","UV_LUMINESCENCE","IR_B900","IMAGE_PATTERN","AXIAL_PROTECTION","UV_FIBERS","IR_VISIBILITY","OCR_SECURITY_TEXT","IPI","PHOTO_EMBED_TYPE","HOLOGRAMS","PHOTO_AREA","PORTRAIT_COMPARISON","BARCODE_FORMAT_CHECK","KINEGRAM","LETTER_SCREEN","UNKNOWN","PASS","INVALID_INPUT_DATA","INTERNAL_ERROR","EXCEPTION_IN_MODULE","UNCERTAIN_VERIFICATION","NECESSARY_IMAGE_NOT_FOUND","PHOTO_SIDES_NOT_FOUND","INVALID_CHECKSUM","SYNTAX_ERROR","LOGIC_ERROR","SOURCES_COMPARISON_ERROR","FIELDS_COMPARISON_LOGIC_ERROR","INVALID_FIELD_FORMAT","TRUE_LUMINESCENCE_ERROR","FALSE_LUMINESCENCE_ERROR","FIXED_PATTERN_ERROR","LOW_CONTRAST_IN_IR_LIGHT","INCORRECT_BACKGROUND_LIGHT","BACKGROUND_COMPARISON_ERROR","INCORRECT_TEXT_COLOR","PHOTO_FALSE_LUMINESCENCE","TOO_MUCH_SHIFT","FIBERS_NOT_FOUND","TOO_MANY_OBJECTS","SPECKS_IN_UV","TOO_LOW_RESOLUTION","INVISIBLE_ELEMENT_PRESENT","VISIBLE_ELEMENT_ABSENT","ELEMENT_SHOULD_BE_COLORED","ELEMENT_SHOULD_BE_GRAYSCALE","PHOTO_WHITE_IR_DONT_MATCH","UV_DULL_PAPER_MRZ","FALSE_LUMINESCENCE_IN_MRZ","UV_DULL_PAPER_PHOTO","UV_DULL_PAPER_BLANK","UV_DULL_PAPER_ERROR","FALSE_LUMINESCENCE_IN_BLANK","BAD_AREA_IN_AXIAL","FALSE_IP_PARAMETERS","FIELD_POS_CORRECTOR_HIGHLIGHT_IR","OVI_IR_INVISIBLE","OVI_INSUFFICIENT_AREA","OVI_COLOR_INVARIABLE","OVI_BAD_COLOR_FRONT","OVI_BAD_COLOR_SIDE","OVI_WIDE_COLOR_SPREAD","OVI_BAD_COLOR_PERCENT","HOLOGRAM_ELEMENT_ABSENT","HOLOGRAM_SIDE_TOP_IMAGES_ABSENT","HOLOGRAM_ELEMENT_PRESENT","PHOTO_PATTERN_INTERRUPTED","PHOTO_PATTERN_SHIFTED","PHOTO_PATTERN_DIFFERENT_COLORS","PHOTO_PATTERN_IR_VISIBLE","PHOTO_PATTERN_NOT_INTERSECT","PHOTO_SIZE_IS_WRONG","PHOTO_PATTERN_INVALID_COLOR","PHOTO_PATTERN_SHIFTED_VERT","PHOTO_PATTERN_PATTERN_NOT_FOUND","PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS","PHOTO_IS_NOT_RECTANGLE","PHOTO_CORNERS_IS_WRONG","TEXT_COLOR_SHOULD_BE_BLUE","TEXT_COLOR_SHOULD_BE_GREEN","TEXT_COLOR_SHOULD_BE_RED","TEXT_SHOULD_BE_BLACK","BARCODE_WAS_READ_WITH_ERRORS","BARCODE_DATA_FORMAT_ERROR","BARCODE_SIZE_PARAMS_ERROR","NOT_ALL_BARCODES_READ","PORTRAIT_COMPARISON_PORTRAITS_DIFFER","PORTRAIT_COMPARISON_NO_SERVICE_REPLY","PORTRAIT_COMPARISON_SERVICE_ERROR","PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES","PORTRAIT_COMPARISON_NO_LIVE_PHOTO","PORTRAIT_COMPARISON_NO_SERVICE_LICENSE","PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED","LAST_DIAGNOSE_VALUE","FIELD_POS_CORRECTOR_PHOTO_REPLACED","NOT_CRITICAL","CRITICAL","ID1","ID2","ID3","NON","A4","ID3_X2","ID1_90","ID1_180","ID1_270","ID2_180","ID3_180","CUSTOM","FLEXIBLE","NOT_DEFINED","PASSPORT","IDENTITY_CARD","DIPLOMATIC_PASSPORT","SERVICE_PASSPORT","SEAMANS_IDENTITY_DOCUMENT","IDENTITY_CARD_FOR_RESIDENCE","TRAVEL_DOCUMENT","OTHER","VISA_ID2","VISA_ID3","NATIONAL_IDENTITY_CARD","SOCIAL_IDENTITY_CARD","ALIENS_IDENTITY_CARD","PRIVILEGED_IDENTITY_CARD","RESIDENCE_PERMIT_IDENTITY_CARD","ORIGIN_CARD","EMERGENCY_PASSPORT","ALIENS_PASSPORT","ALTERNATIVE_IDENTITY_CARD","AUTHORIZATION_CARD","BEGINNER_PERMIT","BORDER_CROSSING_CARD","CHAUFFEUR_LICENSE","CHAUFFEUR_LICENSE_UNDER_18","CHAUFFEUR_LICENSE_UNDER_21","COMMERCIAL_DRIVING_LICENSE","COMMERCIAL_DRIVING_LICENSE_INSTRUCTIONAL_PERMIT","COMMERCIAL_DRIVING_LICENSE_UNDER_18","COMMERCIAL_DRIVING_LICENSE_UNDER_21","COMMERCIAL_INSTRUCTION_PERMIT","COMMERCIAL_NEW_PERMIT","CONCEALED_CARRY_LICENSE","CONCEALED_FIREARM_PERMIT","CONDITIONAL_DRIVING_LICENSE","DEPARTMENT_OF_VETERANS_AFFAIRS_IDENTITY_CARD","DIPLOMATIC_DRIVING_LICENSE","DRIVING_LICENSE","DRIVING_LICENSE_INSTRUCTIONAL_PERMIT","DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_18","DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_21","DRIVING_LICENSE_LEARNERS_PERMIT","DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_18","DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_21","DRIVING_LICENSE_NOVICE","DRIVING_LICENSE_NOVICE_UNDER_18","DRIVING_LICENSE_NOVICE_UNDER_21","DRIVING_LICENSE_REGISTERED_OFFENDER","DRIVING_LICENSE_RESTRICTED_UNDER_18","DRIVING_LICENSE_RESTRICTED_UNDER_21","DRIVING_LICENSE_TEMPORARY_VISITOR","DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_18","DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_21","DRIVING_LICENSE_UNDER_18","DRIVING_LICENSE_UNDER_21","EMPLOYMENT_DRIVING_PERMIT","ENHANCED_CHAUFFEUR_LICENSE","ENHANCED_CHAUFFEUR_LICENSE_UNDER_18","ENHANCED_CHAUFFEUR_LICENSE_UNDER_21","ENHANCED_COMMERCIAL_DRIVING_LICENSE","ENHANCED_DRIVING_LICENSE","ENHANCED_DRIVING_LICENSE_UNDER_18","ENHANCED_DRIVING_LICENSE_UNDER_21","ENHANCED_IDENTITY_CARD","ENHANCED_IDENTITY_CARD_UNDER_18","ENHANCED_IDENTITY_CARD_UNDER_21","ENHANCED_OPERATORS_LICENSE","FIREARMS_PERMIT","FULL_PROVISIONAL_LICENSE","FULL_PROVISIONAL_LICENSE_UNDER_18","FULL_PROVISIONAL_LICENSE_UNDER_21","GENEVA_CONVENTIONS_IDENTITY_CARD","GRADUATED_DRIVING_LICENSE_UNDER_18","GRADUATED_DRIVING_LICENSE_UNDER_21","GRADUATED_INSTRUCTION_PERMIT_UNDER_18","GRADUATED_INSTRUCTION_PERMIT_UNDER_21","GRADUATED_LICENSE_UNDER_18","GRADUATED_LICENSE_UNDER_21","HANDGUN_CARRY_PERMIT","IDENTITY_AND_PRIVILEGE_CARD","IDENTITY_CARD_MOBILITY_IMPAIRED","IDENTITY_CARD_REGISTERED_OFFENDER","IDENTITY_CARD_TEMPORARY_VISITOR","IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_18","IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_21","IDENTITY_CARD_UNDER_18","IDENTITY_CARD_UNDER_21","IGNITION_INTERLOCK_PERMIT","IMMIGRANT_VISA","INSTRUCTION_PERMIT","INSTRUCTION_PERMIT_UNDER_18","INSTRUCTION_PERMIT_UNDER_21","INTERIM_DRIVING_LICENSE","INTERIM_IDENTITY_CARD","INTERMEDIATE_DRIVING_LICENSE","INTERMEDIATE_DRIVING_LICENSE_UNDER_18","INTERMEDIATE_DRIVING_LICENSE_UNDER_21","JUNIOR_DRIVING_LICENSE","LEARNER_INSTRUCTIONAL_PERMIT","LEARNER_LICENSE","LEARNER_LICENSE_UNDER_18","LEARNER_LICENSE_UNDER_21","LEARNER_PERMIT","LEARNER_PERMIT_UNDER_18","LEARNER_PERMIT_UNDER_21","LIMITED_LICENSE","LIMITED_PERMIT","LIMITED_TERM_DRIVING_LICENSE","LIMITED_TERM_IDENTITY_CARD","LIQUOR_IDENTITY_CARD","NEW_PERMIT","NEW_PERMIT_UNDER_18","NEW_PERMIT_UNDER_21","NON_US_CITIZEN_DRIVING_LICENSE","OCCUPATIONAL_DRIVING_LICENSE","ONEIDA_TRIBE_OF_INDIANS_IDENTITY_CARD","OPERATOR_LICENSE","OPERATOR_LICENSE_UNDER_18","OPERATOR_LICENSE_UNDER_21","PERMANENT_DRIVING_LICENSE","PERMIT_TO_REENTER","PROBATIONARY_AUTO_LICENSE","PROBATIONARY_DRIVING_LICENSE_UNDER_18","PROBATIONARY_DRIVING_LICENSE_UNDER_21","PROBATIONARY_VEHICLE_SALES_PERSON_LICENSE","PROVISIONAL_DRIVING_LICENSE","PROVISIONAL_DRIVING_LICENSE_UNDER_18","PROVISIONAL_DRIVING_LICENSE_UNDER_21","PROVISIONAL_LICENSE","PROVISIONAL_LICENSE_UNDER_18","PROVISIONAL_LICENSE_UNDER_21","PUBLIC_PASSENGER_CHAUFFEUR_LICENSE","RACING_AND_GAMING_COMISSION_CARD","REFUGEE_TRAVEL_DOCUMENT","RENEWAL_PERMIT","RESTRICTED_COMMERCIAL_DRIVER_LICENSE","RESTRICTED_DRIVER_LICENSE","RESTRICTED_PERMIT","SEASONAL_PERMIT","SEASONAL_RESIDENT_IDENTITY_CARD","SEASONAL_CITIZEN_IDENTITY_CARD","SEX_OFFENDER","SOCIAL_SECURITY_CARD","TEMPORARY_DRIVING_LICENSE","TEMPORARY_DRIVING_LICENSE_UNDER_18","TEMPORARY_DRIVING_LICENSE_UNDER_21","TEMPORARY_IDENTITY_CARD","TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD","TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_18","TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_21","TEMPORARY_VISITOR_DRIVING_LICENSE","TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_18","TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_21","UNIFORMED_SERVICES_IDENTITY_CARD","VEHICLE_SALES_PERSON_LICENSE","WORKER_IDENTIFICATION_CREDENTIAL","COMMERCIAL_DRIVING_LICENSE_NOVICE","COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_18","COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_21","PASSPORT_CARD","PASSPORT_RESIDENT_CARD","PERSONAL_IDENTIFICATION_VERIFICATION","TEMPORARY_OPERATOR_LICENSE","DRIVING_LICENSE_UNDER_19","IDENTITY_CARD_UNDER_19","VISA","TEMPORARY_PASSPORT","VOTING_CARD","HEALTH_CARD","CERTIFICATE_OF_CITIZENSHIP","ADDRESS_CARD","AIRPORT_IMMIGRATION_CARD","ALIEN_REGISTRATION_CARD","APEH_CARD","COUPON_TO_DRIVING_LICENSE","CREW_MEMBER_CERTIFICATE","DOCUMENT_FOR_RETURN","E_CARD","EMPLOYMENT_CARD","HKSAR_IMMIGRATION_FORM","IMMIGRANT_CARD","LABOUR_CARD","LAISSEZ_PASSER","LAWYER_IDENTITY_CERTIFICATE","LICENSE_CARD","PASSPORT_STATELESS","PASSPORT_CHILD","PASSPORT_CONSULAR","PASSPORT_DIPLOMATIC_SERVICE","PASSPORT_OFFICIAL","PASSPORT_PROVISIONAL","PASSPORT_SPECIAL","PERMISSION_TO_THE_LOCAL_BORDER_TRAFFIC","REGISTRATION_CERTIFICATE","SEDESOL_CARD","SOCIAL_CARD","TB_CARD","VEHICLE_PASSPORT","W_DOCUMENT","DIPLOMATIC_IDENTITY_CARD","CONSULAR_IDENTITY_CARD","INCOME_TAX_CARD","RESIDENCE_PERMIT","DOCUMENT_OF_IDENTITY","BORDER_CROSSING_PERMIT","PASSPORT_LIMITED_VALIDITY","SIM_CARD","TAX_CARD","COMPANY_CARD","DOMESTIC_PASSPORT","IDENTITY_CERTIFICATE","RESIDENT_ID_CARD","ARMED_FORCES_IDENTITY_CARD","PROFESSIONAL_CARD","REGISTRATION_STAMP","DRIVER_CARD","DRIVER_TRAINING_CERTIFICATE","QUALIFICATION_DRIVING_LICENSE","MEMBERSHIP_CARD","PUBLIC_VEHICLE_DRIVER_AUTHORITY_CARD","MARINE_LICENSE","TEMPORARY_LEARNER_LICENSE","TEMPORARY_COMMERCIAL_DRIVING_LICENSE","INTERIM_INSTRUCTIONAL_PERMIT","CERTIFICATE_OF_COMPETENCY","CERTIFICATE_OF_PROFICIENCY","TRADE_LICENSE","PASSPORT_PAGE","NEED_MORE_IMAGES","FINGERPRINT","EYE","SIGNATURE","BAR_CODE","PROOF_OF_CITIZENSHIP","DOCUMENT_FRONT","DOCUMENT_REAR","COLOR_DYNAMIC","GHOST_PORTRAIT","STAMP","FINGER_LEFT_THUMB","FINGER_LEFT_INDEX","FINGER_LEFT_MIDDLE","FINGER_LEFT_RING","FINGER_LEFT_LITTLE","FINGER_RIGHT_THUMB","FINGER_RIGHT_INDEX","FINGER_RIGHT_MIDDLE","FINGER_RIGHT_RING","FINGER_RIGHT_LITTLE","FINGER_RIGHT_FOUR_FINGERS","FINGER_LEFT_FOUR_FINGERS","FINGER_TWO_THUMBS","ImageGlares","ImageFocus","ImageResolution","ImageColorness","Perspective","Bounds","ScreenCapture","Portrait","LATIN","AFRIKAANS","ALBANIAN","ARABIC_ALGERIA","ARABIC_BAHRAIN","ARABIC_EGYPT","ARABIC_IRAQ","ARABIC_JORDAN","ARABIC_KUWAIT","ARABIC_LEBANON","ARABIC_LIBYA","ARABIC_MOROCCO","ARABIC_OMAN","ARABIC_QATAR","ARABIC_SAUDI_ARABIA","ARABIC_SYRIA","ARABIC_TUNISIA","ARABIC_UAE","ARABIC_YEMEN","ARABIC_ARMENIAN","AZERI_CYRILIC","AZERI_LATIN","BASQUE","BELARUSIAN","BULGARIAN","CATALAN","CHINESE_HONGKONG_SAR","CHINESE_MACAO_SAR","CHINESE","CHINESE_SINGAPORE","CHINESE_TAIWAN","CROATIAN","CZECH","DANISH","DIVEHI","DUTCH_BELGIUM","DUTCH_NETHERLANDS","ENGLISH_AUSTRALIA","ENGLISH_BELIZE","ENGLISH_CANADA","ENGLISH_CARRIBEAN","ENGLISH_IRELAND","ENGLISH_JAMAICA","ENGLISH_NEW_ZEALAND","ENGLISH_PHILIPPINES","ENGLISH_SOUTH_AFRICA","ENGLISH_TRINIDAD","ENGLISH_UK","ENGLISH_US","ENGLISH_ZIMBABWE","ESTONIAN","FAEROESE","FARSI","FINNISH","FRENCH_BELGIUM","FRENCH_CANADA","FRENCH_FRANCE","FRENCH_LUXEMBOURG","FRENCH_MONACO","FRENCH_SWITZERLAND","FYRO_MACEDONIAN","GALICIAN","GEORGIAN","GERMAN_AUSTRIA","GERMAN_GERMANY","GERMAN_LIECHTENSTEIN","GERMAN_LUXEMBOURG","GERMAN_SWITZERLAND","GREEK","GUJARATI","HEBREW","HINDI_INDIA","HUNGARIAN","ICELANDIC","INDONESIAN","ITALIAN_ITALY","ITALIAN_SWITZERLAND","JAPANESE","KANNADA","KAZAKH","KONKANI","KOREAN","KYRGYZ_CYRILICK","LATVIAN","LITHUANIAN","MALAY_MALAYSIA","MALAY_BRUNEI_DARUSSALAM","MARATHI","MONGOLIAN_CYRILIC","NORWEGIAN_BOKMAL","NORWEGIAN_NYORSK","POLISH","PORTUGUESE_BRAZIL","PORTUGUESE_PORTUGAL","PUNJABI","RHAETO_ROMANIC","ROMANIAN","RUSSIAN","SANSKRIT","SERBIAN_CYRILIC","SERBIAN_LATIN","SLOVAK","SLOVENIAN","SPANISH_ARGENTINA","SPANISH_BOLIVIA","SPANISH_CHILE","SPANICH_COLOMBIA","SPANISH_COSTA_RICA","SPANISH_DOMINICAN_REPUBLIC","SPANISH_ECUADOR","SPANISH_EL_SALVADOR","SPANISH_GUATEMALA","SPANISH_HONDURAS","SPANISH_MEXICO","SPANISH_NICARAGUA","SPANISH_PANAMA","SPANISH_PARAGUAY","SPANISH_PERU","SPANISH_PUERTO_RICO","SPANISH_TRADITIONAL_SORT","SPANISH_INTERNATIONAL_SORT","SPANISH_URUGUAY","SPANISH_VENEZUELA","SWAHILI","SWEDISH","SWEDISH_FINLAND","SYRIAC","TAMIL","TATAR","TELUGU","THAI_THAILAND","TURKISH","TAJIK_CYRILLIC","TURKMEN","UKRAINIAN","URDU","UZBEK_CYRILIC","UZBEK_LATIN","VIETNAMESE","CTC_SIMPLIFIED","CTC_TRADITIONAL","WHITE","IR","UV","FATAL_ERROR","WARNING","DEBUG","IDL","CAN","ID1_2_30","METRIC","IMPERIAL","DOCUMENT_IMAGE","IMAGE_QUALITY","STATUS","TEXT","IMAGES","MRZ_TEXT","VISUAL_TEXT","BARCODE_TEXT","RFID_TEXT","LEXICAL_ANALYSIS","VISUAL_GRAPHICS","BARCODE_GRAPHICS","RFID_GRAPHICS","DOCUMENT_TYPE_CANDIDATES","DOCUMENT_TYPE","AUTHENTICITY","DOCUMENT_POSITION","BARCODES","LICENSE","ENCRYPTED_RCL","NONE","MAIN_PAGE","BACK_PAGE","MRZ","BARCODE","LOCATE","OCR","DOCTYPE","MRZ_OR_BARCODE","MRZ_OR_LOCATE","MRZ_AND_LOCATE","MRZ_OR_OCR","MRZ_OR_BARCODE_OR_OCR","LOCATE_VISUAL_AND_MRZ_OR_OCR","FULL_PROCESS","FULL_AUTH","ID3RUS","RUS_STAMP","OCR_FREE","CREDIT_CARD","CAPTURE","BLANK","FILL","PHOTO","FALSE_LUMINESCENCE","HOLO_SIMPLE","HOLO_VERIFY_STATIC","HOLO_VERIFY_MULTI_STATIC","HOLO_VERIFY_DYNAMIC","PATTERN_NOT_INTERRUPTED","PATTERN_NOT_SHIFTED","PATTERN_SAME_COLORS","PATTERN_IR_INVISIBLE","PHOTO_SIZE_CHECK","PORTRAIT_COMPARISON_VS_GHOST","PORTRAIT_COMPARISON_VS_RFID","PORTRAIT_COMPARISON_VS_VISUAL","PATTERN_DIFFERENT_LINES_THICKNESS","PORTRAIT_COMPARISON_VS_CAMERA","PORTRAIT_COMPARISON_RFID_VS_CAMERA","GHOST_PHOTO","CLEAR_GHOST_PHOTO","INVISIBLE_OBJECT","LOW_CONTRAST_OBJECT","PHOTO_COLOR","PHOTO_SHAPE","PHOTO_CORNERS","PORTRAIT_COMPARISON_EXT_VS_VISUAL","PORTRAIT_COMPARISON_EXT_VS_RFID","PORTRAIT_COMPARISON_EXT_VS_CAMERA","VISUAL","RFID","MAGNETIC","DOCUMENT_CLASS_CODE","ISSUING_STATE_CODE","DOCUMENT_NUMBER","DATE_OF_EXPIRY","DATE_OF_ISSUE","DATE_OF_BIRTH","PLACE_OF_BIRTH","PERSONAL_NUMBER","SURNAME","GIVEN_NAME","MOTHERS_NAME","NATIONALITY","SEX","HEIGHT","WEIGHT","EYES_COLOR","HAIR_COLOR","ADDRESS","DONOR","SOCIAL_SECURITY_NUMBER","DL_CLASS","DL_ENDORSED","DL_RESTRICTION_CODE","DL_UNDER_21_DATE","AUTHORITY","SURNAME_AND_GIVEN_NAMES","NATIONALITY_CODE","PASSPORT_NUMBER","INVITATION_NUMBER","VISA_ID","VISA_CLASS","VISA_SUBCLASS","MRZ_TYPE","OPTIONAL_DATA","DOCUMENT_CLASS_NAME","ISSUING_STATE_NAME","PLACE_OF_ISSUE","DOCUMENT_NUMBER_CHECKSUM","DATE_OF_BIRTH_CHECKSUM","DATE_OF_EXPIRY_CHECKSUM","PERSONAL_NUMBER_CHECKSUM","FINAL_CHECKSUM","PASSPORT_NUMBER_CHECKSUM","INVITATION_NUMBER_CHECKSUM","VISA_ID_CHECKSUM","SURNAME_AND_GIVEN_NAME_CHECKSUM","VISA_VALID_UNTIL_CHECKSUM","MRZ_STRINGS","NAME_SUFFIX","NAME_PREFIX","DATE_OF_ISSUE_CHECKSUM","DATE_OF_ISSUE_CHECK_DIGIT","DOCUMENT_SERIES","REG_CERT_REG_NUMBER","REG_CERT_CAR_MODEL","REG_CERT_CAR_COLOR","REG_CERT_BODY_NUMBER","REG_CERT_CAR_TYPE","REG_CERT_MAX_WEIGHT","REG_CERT_WEIGHT","ADDRESS_AREA","ADDRESS_STATE","ADDRESS_BUILDING","ADDRESS_HOUSE","ADDRESS_FLAT","PLACE_OF_REGISTRATION","DATE_OF_REGISTRATION","RESIDENT_FROM","RESIDENT_UNTIL","AUTHORITY_CODE","PLACE_OF_BIRTH_AREA","PLACE_OF_BIRTH_STATE_CODE","ADDRESS_STREET","ADDRESS_CITY","ADDRESS_JURISDICTION_CODE","ADDRESS_POSTAL_CODE","DOCUMENT_NUMBER_CHECK_DIGIT","DATE_OF_BIRTH_CHECK_DIGIT","DATE_OF_EXPIRY_CHECK_DIGIT","PERSONAL_NUMBER_CHECK_DIGIT","FINAL_CHECK_DIGIT","PASSPORT_NUMBER_CHECK_DIGIT","INVITATION_NUMBER_CHECK_DIGIT","VISA_ID_CHECK_DIGIT","SURNAME_AND_GIVEN_NAMES_CHECK_DIGIT","VISA_VALID_UNTIL_CHECK_DIGIT","PERMIT_DL_CLASS","PERMIT_DATE_OF_EXPIRY","PERMIT_IDENTIFIER","PERMIT_DATE_OF_ISSUE","PERMIT_RESTRICTION_CODE","PERMIT_ENDORSED","ISSUE_TIMESTAMP","NUMBER_OF_DUPLICATES","MEDICAL_INDICATOR_CODES","NON_RESIDENT_INDICATOR","VISA_TYPE","VISA_VALID_FROM","VISA_VALID_UNTIL","DURATION_OF_STAY","NUMBER_OF_ENTRIES","DAY","MONTH","YEAR","UNIQUE_CUSTOMER_IDENTIFIER","COMMERCIAL_VEHICLE_CODES","AKA_DATE_OF_BIRTH","AKA_SOCIAL_SECURITY_NUMBER","AKA_SURNAME","AKA_GIVEN_NAMES","AKA_NAME_SUFFIX","AKA_NAME_PREFIX","MAILING_ADDRESS_STREET","MAILING_ADDRESS_CITY","MAILING_ADDRESS_JURISDICTION_CODE","MAILING_ADDRESS_POSTAL_CODE","AUDIT_INFORMATION","INVENTORY_NUMBER","RACE_ETHNICITY","JURISDICTION_VEHICLE_CLASS","JURISDICTION_ENDORSEMENT_CODE","JURISDICTION_RESTRICTION_CODE","FAMILY_NAME","GIVEN_NAMES_RUS","VISA_ID_RUS","FATHERS_NAME","FATHERS_NAME_RUS","SURNAME_AND_GIVEN_NAME_RUS","PLACE_OF_BIRTH_RUS","AUTHORITY_RUS","ISSUING_STATE_CODE_NUMERIC","NATIONALITY_CODE_NUMERIC","ENGINE_POWER","ENGINE_VOLUME","CHASSIS_NUMBER","ENGINE_NUMBER","ENGINE_MODEL","VEHICLE_CATEGORY","IDENTITY_CARD_NUMBER","CONTROL_NUMBER","PARENTS_GIVEN_NAMES","SECOND_SURNAME","MIDDLE_NAME","REG_CERT_VIN","REG_CERT_VIN_CHECK_DIGIT","REG_CERT_VIN_CHECKSUM","LINE_1_CHECK_DIGIT","LINE_2_CHECK_DIGIT","LINE_3_CHECK_DIGIT","LINE_1_CHECKSUM","LINE_2_CHECKSUM","LINE_3_CHECKSUM","REG_CERT_REG_NUMBER_CHECK_DIGIT","REG_CERT_REG_NUMBER_CHECKSUM","REG_CERT_VEHICLE_ITS_CODE","CARD_ACCESS_NUMBER","MARITAL_STATUS","COMPANY_NAME","SPECIAL_NOTES","SURNAME_OF_SPOUSE","TRACKING_NUMBER","BOOKLET_NUMBER","CHILDREN","COPY_NUMBER","SERIAL_NUMBER","DOSSIER_NUMBER","AKA_SURNAME_AND_GIVEN_NAMES","TERRITORIAL_VALIDITY","MRZ_STRINGS_WITH_CORRECT_CHECK_SUMS","DL_CDL_RESTRICTION_CODE","DL_UNDER_18_DATE","DL_RECORD_CREATED","DL_DUPLICATE_DATE","DL_ISSUE_TYPE","MILITARY_BOOK_NUMBER","DESTINATION","BLOOD_GROUP","SEQUENCE_NUMBER","REG_CERT_BODY_TYPE","REG_CERT_CAR_MARK","TRANSACTION_NUMBER","AGE","FOLIO_NUMBER","VOTER_KEY","ADDRESS_MUNICIPALITY","ADDRESS_LOCATION","SECTION","OCR_NUMBER","FEDERAL_ELECTIONS","REFERENCE_NUMBER","OPTIONAL_DATA_CHECKSUM","OPTIONAL_DATA_CHECK_DIGIT","VISA_NUMBER","VISA_NUMBER_CHECKSUM","VISA_NUMBER_CHECK_DIGIT","VOTER","PREVIOUS_TYPE","FIELD_FROM_MRZ","CURRENT_DATE","STATUS_DATE_OF_EXPIRY","BANK_NOTE_NUMBER","CSC_CODE","ARTISTIC_NAME","ACADEMIC_TITLE","ADDRESS_COUNTRY","ADDRESS_ZIP_CODE","E_ID_RESIDENCE_PERMIT_1","E_ID_RESIDENCE_PERMIT_2","E_ID_PLACE_OF_BIRTH_STREET","E_ID_PLACE_OF_BIRTH_CITY","E_ID_PLACE_OF_BIRTH_STATE","E_ID_PLACE_OF_BIRTH_COUNTRY","E_ID_PLACE_OF_BIRTH_ZIP_CODE","CDL_CLASS","DL_UNDER_19_DATE","WEIGHT_POUNDS","LIMITED_DURATION_DOCUMENT_INDICATOR","ENDORSEMENT_EXPIRATION_DATE","REVISION_DATE","COMPLIANCE_TYPE","FAMILY_NAME_TRUNCATION","FIRST_NAME_TRUNCATION","MIDDLE_NAME_TRUNCATION","EXAM_DATE","ORGANIZATION","DEPARTMENT","PAY_GRADE","RANK","BENEFITS_NUMBER","SPONSOR_SERVICE","SPONSOR_STATUS","SPONSOR","RELATIONSHIP","USCIS","CATEGORY","CONDITIONS","IDENTIFIER","CONFIGURATION","DISCRETIONARY_DATA","LINE_1_OPTIONAL_DATA","LINE_2_OPTIONAL_DATA","LINE_3_OPTIONAL_DATA","EQV_CODE","ALT_CODE","BINARY_CODE","PSEUDO_CODE","FEE","STAMP_NUMBER","SBH_SECURITY_OPTIONS","SBH_INTEGRITY_OPTIONS","DATE_OF_CREATION","VALIDITY_PERIOD","PATRON_HEADER_VERSION","BDB_TYPE","BIOMETRIC_TYPE","BIOMETRIC_SUBTYPE","BIOMETRIC_PRODUCT_ID","BIOMETRIC_FORMAT_OWNER","BIOMETRIC_FORMAT_TYPE","PHONE","PROFESSION","TITLE","PERSONAL_SUMMARY","OTHER_VALID_ID","CUSTODY_INFO","OTHER_NAME","OBSERVATIONS","TAX","DATE_OF_PERSONALIZATION","PERSONALIZATION_SN","DATE_OF_RECORD","PERSON_TO_NOTIFY_DATE_OF_RECORD","PERSON_TO_NOTIFY_NAME","PERSON_TO_NOTIFY_PHONE","PERSON_TO_NOTIFY_ADDRESS","DS_CERTIFICATE_ISSUER","DS_CERTIFICATE_SUBJECT","DS_CERTIFICATE_VALID_FROM","DS_CERTIFICATE_VALID_TO","VRC_DATA_OBJECT_ENTRY","TYPE_APPROVAL_NUMBER","ADMINISTRATIVE_NUMBER","DOCUMENT_DISCRIMINATOR","DATA_DISCRIMINATOR","ISO_ISSUER_ID_NUMBER","GNIB_NUMBER","DEPT_NUMBER","TELEX_CODE","ALLERGIES","SP_CODE","COURT_CODE","CTY","SPONSOR_SSN","DOD_NUMBER","MC_NOVICE_DATE","DUF_NUMBER","AGY","PNR_CODE","FROM_AIRPORT_CODE","TO_AIRPORT_CODE","FLIGHT_NUMBER","DATE_OF_FLIGHT","SEAT_NUMBER","DATE_OF_ISSUE_BOARDING_PASS","CCW_UNTIL","REFERENCE_NUMBER_CHECKSUM","REFERENCE_NUMBER_CHECK_DIGIT","ROOM_NUMBER","RELIGION","REMAINDER_TERM","ELECTRONIC_TICKET_INDICATOR","COMPARTMENT_CODE","CHECK_IN_SEQUENCE_NUMBER","AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER","AIRLINE_NUMERIC_CODE","TICKET_NUMBER","FREQUENT_FLYER_AIRLINE_DESIGNATOR","FREQUENT_FLYER_NUMBER","FREE_BAGGAGE_ALLOWANCE","PDF_417_CODEC","IDENTITY_CARD_NUMBER_CHECKSUM","IDENTITY_CARD_NUMBER_CHECK_DIGIT","VETERAN","DL_CLASS_CODE_A1_FROM","DL_CLASS_CODE_A1_TO","DL_CLASS_CODE_A1_NOTES","DL_CLASS_CODE_A_FROM","DL_CLASS_CODE_A_TO","DL_CLASS_CODE_A_NOTES","DL_CLASS_CODE_B_FROM","DL_CLASS_CODE_B_TO","DL_CLASS_CODE_B_NOTES","DL_CLASS_CODE_C1_FROM","DL_CLASS_CODE_C1_TO","DL_CLASS_CODE_C1_NOTES","DL_CLASS_CODE_C_FROM","DL_CLASS_CODE_C_TO","DL_CLASS_CODE_C_NOTES","DL_CLASS_CODE_D1_FROM","DL_CLASS_CODE_D1_TO","DL_CLASS_CODE_D1_NOTES","DL_CLASS_CODE_D_FROM","DL_CLASS_CODE_D_TO","DL_CLASS_CODE_D_NOTES","DL_CLASS_CODE_BE_FROM","DL_CLASS_CODE_BE_TO","DL_CLASS_CODE_BE_NOTES","DL_CLASS_CODE_C1E_FROM","DL_CLASS_CODE_C1E_TO","DL_CLASS_CODE_C1E_NOTES","DL_CLASS_CODE_CE_FROM","DL_CLASS_CODE_CE_TO","DL_CLASS_CODE_CE_NOTES","DL_CLASS_CODE_D1E_FROM","DL_CLASS_CODE_D1E_TO","DL_CLASS_CODE_D1E_NOTES","DL_CLASS_CODE_DE_FROM","DL_CLASS_CODE_DE_TO","DL_CLASS_CODE_DE_NOTES","DL_CLASS_CODE_M_FROM","DL_CLASS_CODE_M_TO","DL_CLASS_CODE_M_NOTES","DL_CLASS_CODE_L_FROM","DL_CLASS_CODE_L_TO","DL_CLASS_CODE_L_NOTES","DL_CLASS_CODE_T_FROM","DL_CLASS_CODE_T_TO","DL_CLASS_CODE_T_NOTES","DL_CLASS_CODE_AM_FROM","DL_CLASS_CODE_AM_TO","DL_CLASS_CODE_AM_NOTES","DL_CLASS_CODE_A2_FROM","DL_CLASS_CODE_A2_TO","DL_CLASS_CODE_A2_NOTES","DL_CLASS_CODE_B1_FROM","DL_CLASS_CODE_B1_TO","DL_CLASS_CODE_B1_NOTES","SURNAME_AT_BIRTH","CIVIL_STATUS","NUMBER_OF_SEATS","NUMBER_OF_STANDING_PLACES","MAX_SPEED","FUEL_TYPE","EC_ENVIRONMENTAL_TYPE","POWER_WEIGHT_RATIO","MAX_MASS_OF_TRAILER_BRAKED","MAX_MASS_OF_TRAILER_UNBRAKED","TRANSMISSION_TYPE","TRAILER_HITCH","ACCOMPANIED_BY","POLICE_DISTRICT","FIRST_ISSUE_DATE","PAYLOAD_CAPACITY","NUMBER_OF_AXLES","PERMISSIBLE_AXLE_LOAD","PRECINCT","INVITED_BY","PURPOSE_OF_ENTRY","SKIN_COLOR","COMPLEXION","AIRPORT_FROM","AIRPORT_TO","AIRLINE_NAME","AIRLINE_NAME_FREQUENT_FLYER","LICENSE_NUMBER","IN_TANKS","EXCEPT_IN_TANKS","FAST_TRACK","OWNER","MRZ_STRINGS_ICAO_RFID","NUMBER_OF_CARD_ISSUANCE","NUMBER_OF_CARD_ISSUANCE_CHECKSUM","NUMBER_OF_CARD_ISSUANCE_CHECK_DIGIT","CENTURY_DATE_OF_BIRTH","DL_CLASS_CODE_A3_FROM","DL_CLASS_CODE_A3_TO","DL_CLASS_CODE_A3_NOTES","DL_CLASS_CODE_C2_FROM","DL_CLASS_CODE_C2_TO","DL_CLASS_CODE_C2_NOTES","DL_CLASS_CODE_B2_FROM","DL_CLASS_CODE_B2_TO","DL_CLASS_CODE_B2_NOTES","DL_CLASS_CODE_D2_FROM","DL_CLASS_CODE_D2_TO","DL_CLASS_CODE_D2_NOTES","DL_CLASS_CODE_B2E_FROM","DL_CLASS_CODE_B2E_TO","DL_CLASS_CODE_B2E_NOTES","DL_CLASS_CODE_G_FROM","DL_CLASS_CODE_G_TO","DL_CLASS_CODE_G_NOTES","DL_CLASS_CODE_J_FROM","DL_CLASS_CODE_J_TO","DL_CLASS_CODE_J_NOTES","DL_CLASS_CODE_LC_FROM","DL_CLASS_CODE_LC_TO","DL_CLASS_CODE_LC_NOTES","BANK_CARD_NUMBER","BANK_CARD_VALID_THRU","TAX_NUMBER","HEALTH_NUMBER","GRANDFATHER_NAME","SELECTEE_INDICATOR","MOTHER_SURNAME","MOTHER_GIVEN_NAME","FATHER_SURNAME","FATHER_GIVEN_NAME","MOTHER_DATE_OF_BIRTH","FATHER_DATE_OF_BIRTH","MOTHER_PERSONAL_NUMBER","FATHER_PERSONAL_NUMBER","MOTHER_PLACE_OF_BIRTH","FATHER_PLACE_OF_BIRTH","MOTHER_COUNTRY_OF_BIRTH","FATHER_COUNTRY_OF_BIRTH","DATE_FIRST_RENEWAL","DATE_SECOND_RENEWAL","PLACE_OF_EXAMINATION","APPLICATION_NUMBER","VOUCHER_NUMBER","AUTHORIZATION_NUMBER","FACULTY","FORM_OF_EDUCATION","DNI_NUMBER","RETIREMENT_NUMBER","PROFESSIONAL_ID_NUMBER","AGE_AT_ISSUE","YEARS_SINCE_ISSUE","DL_CLASS_CODE_BTP_FROM","DL_CLASS_CODE_BTP_NOTES","DL_CLASS_CODE_BTP_TO","DL_CLASS_CODE_C3_FROM","DL_CLASS_CODE_C3_NOTES","DL_CLASS_CODE_C3_TO","DL_CLASS_CODE_E_FROM","DL_CLASS_CODE_E_NOTES","DL_CLASS_CODE_E_TO","DL_CLASS_CODE_F_FROM","DL_CLASS_CODE_F_NOTES","DL_CLASS_CODE_F_TO","DL_CLASS_CODE_FA_FROM","DL_CLASS_CODE_FA_NOTES","DL_CLASS_CODE_FA_TO","DL_CLASS_CODE_FA1_FROM","DL_CLASS_CODE_FA1_NOTES","DL_CLASS_CODE_FA1_TO","DL_CLASS_CODE_FB_FROM","DL_CLASS_CODE_FB_NOTES","DL_CLASS_CODE_FB_TO","DL_CLASS_CODE_G1_FROM","DL_CLASS_CODE_G1_NOTES","DL_CLASS_CODE_G1_TO","DL_CLASS_CODE_H_FROM","DL_CLASS_CODE_H_NOTES","DL_CLASS_CODE_H_TO","DL_CLASS_CODE_I_FROM","DL_CLASS_CODE_I_NOTES","DL_CLASS_CODE_I_TO","DL_CLASS_CODE_K_FROM","DL_CLASS_CODE_K_NOTES","DL_CLASS_CODE_K_TO","DL_CLASS_CODE_LK_FROM","DL_CLASS_CODE_LK_NOTES","DL_CLASS_CODE_LK_TO","DL_CLASS_CODE_N_FROM","DL_CLASS_CODE_N_NOTES","DL_CLASS_CODE_N_TO","DL_CLASS_CODE_S_FROM","DL_CLASS_CODE_S_NOTES","DL_CLASS_CODE_S_TO","DL_CLASS_CODE_TB_FROM","DL_CLASS_CODE_TB_NOTES","DL_CLASS_CODE_TB_TO","DL_CLASS_CODE_TM_FROM","DL_CLASS_CODE_TM_NOTES","DL_CLASS_CODE_TM_TO","DL_CLASS_CODE_TR_FROM","DL_CLASS_CODE_TR_NOTES","DL_CLASS_CODE_TR_TO","DL_CLASS_CODE_TV_FROM","DL_CLASS_CODE_TV_NOTES","DL_CLASS_CODE_TV_TO","DL_CLASS_CODE_V_FROM","DL_CLASS_CODE_V_NOTES","DL_CLASS_CODE_V_TO","DL_CLASS_CODE_W_FROM","DL_CLASS_CODE_W_NOTES","DL_CLASS_CODE_W_TO","CALIBER","MODEL","MAKE","NUMBER_OF_CYLINDERS","SURNAME_OF_HUSBAND_AFTER_REGISTRATION","SURNAME_OF_WIFE_AFTER_REGISTRATION","DATE_OF_BIRTH_OF_WIFE","DATE_OF_BIRTH_OF_HUSBAND","CITIZENSHIP_OF_FIRST_PERSON","CITIZENSHIP_OF_SECOND_PERSON","CVV","DATE_OF_INSURANCE_EXPIRY","MORTGAGE_BY","OLD_DOCUMENT_NUMBER","OLD_DATE_OF_ISSUE","OLD_PLACE_OF_ISSUE","DL_CLASS_CODE_LR_FROM","DL_CLASS_CODE_LR_TO","DL_CLASS_CODE_LR_NOTES","DL_CLASS_CODE_MR_FROM","DL_CLASS_CODE_MR_TO","DL_CLASS_CODE_MR_NOTES","DL_CLASS_CODE_HR_FROM","DL_CLASS_CODE_HR_TO","DL_CLASS_CODE_HR_NOTES","DL_CLASS_CODE_HC_FROM","DL_CLASS_CODE_HC_TO","DL_CLASS_CODE_HC_NOTES","DL_CLASS_CODE_MC_FROM","DL_CLASS_CODE_MC_TO","DL_CLASS_CODE_MC_NOTES","DL_CLASS_CODE_RE_FROM","DL_CLASS_CODE_RE_TO","DL_CLASS_CODE_RE_NOTES","DL_CLASS_CODE_R_FROM","DL_CLASS_CODE_R_TO","DL_CLASS_CODE_R_NOTES","DL_CLASS_CODE_CA_FROM","DL_CLASS_CODE_CA_TO","DL_CLASS_CODE_CA_NOTES","CITIZENSHIP_STATUS","MILITARY_SERVICE_FROM","MILITARY_SERVICE_TO","DL_CLASS_CODE_NT_FROM","DL_CLASS_CODE_NT_TO","DL_CLASS_CODE_NT_NOTES","DL_CLASS_CODE_TN_FROM","DL_CLASS_CODE_TN_TO","DL_CLASS_CODE_TN_NOTES","DL_CLASS_CODE_D3_FROM","DL_CLASS_CODE_D3_TO","DL_CLASS_CODE_D3_NOTES","ALT_DATE_OF_EXPIRE","DL_CLASS_CODE_CD_FROM","DL_CLASS_CODE_CD_TO","DL_CLASS_CODE_CD_NOTES","ISSUER_IDENTIFICATION_NUMBER","FT_SECOND_NAME","FT_THIRD_NAME","FT_FOURTH_NAME","FT_LAST_NAME","NO_CHANGE","UPPERCASE","LOWERCASE","CAPITAL","VERIFIED","NOT_VERIFIED","COMPARE_MATCH","COMPARE_NOT_MATCH","INVISIBLE","VISIBLE","COLORED","GRAYSCALE","WHITE_IR_MATCHING","lcid","comparisonStatus","valueList","validityList","comparisonList","getValueBySource","originalValue","sourceLeft","sourceRight","availableSourceList","fieldList","getField","getFieldByName","Result","Type","ElementType","securityFeatureOrUndefined","identOrUndefined","fiberOrUndefined","ocrSecurityTextOrUndefined","imageIdentOrUndefined","resultByType","lowLvlResponse","statusResult","Status","imagesResult","Images","resultByTypeAndPage","AuthenticityCheckList","resultsByType","TransactionInfo","ChipPage","passBackObject","result_type","_worker","_isPrepared","_isProcessing","_prepareListener","_currentPromise","_recognizerProcessParam","_imageProcessParam","callPrepareListener","userData","preMain","pageIdx","imagesList","print","printErr","finishPromise","rejectPromise","Worker","t0","onWorkerMessage","currentScriptUrl","createPromise","postCustomMessage","hostOrigin","createProcessImageRequest","imageDataArray","commandCode","terminate","_videoElement","_stream","_documentReaderService","_videoEventListener","_recognizerListener","_pageIdx","_streamParam","cameraMode","preferredCameraId","startNextPage","finishRecognition","startStream","detect","shutdown","RegulaService","translateApiService","prepareRegulaDocumentReader","docReaderRef","translation","DocumentReaderService","defineComponents","__awaiter","getLicense","RegulaLicense","restartScan","outerHTML","prepareRegulaProcessor","RegulaProcessor","DocumentReaderProcessor","processImages","fileList","fromCamera","idScanning","fromGallery","scanIDInBrowser","useYourDeviceCamera","regulaLicense","RegulaDocReaderComponent","regulaSrv","RegulaDocumentReader","regulaDocReaderErrorEvent","regulaTextFields","textField","RegulaTextResult","showTextFields","regulaImageResults","docImage","uncroppedImages","docImg","regulaImageResult","RegulaImageResult","regulaDocReaderSuccessEvent","ImageResults","TextResults","regulaDocReaderEvent","applyCustomStyles","handleDocumentReaderEvents","croppedImages","shadowOpen","ctx_r9","ctx_r17","docReaderSignalR","idScanningLogSrv","analyzeDocumentURL","connected","signalREventsRegistered","scanningUpdateSubscription","docReaderSuccess","DocumentScanningModel","docReaderError","docReaderEvent","IdScanningLogModel","tryAgain","onPageClose","IdScanningMobileComponent","LinkExpiredComponent","AppRoutingModule","FormlyWrapperFormField_mat_label_3_span_2_Template","ctx_r1","ctx_r4","FieldType$1","FormlyErrorStateMatcher","_errorState","formFieldControl","matPrefix","matSuffix","ɵdefineHiddenProp","shouldPlaceholderFloat","__formField__","ɵFieldType$1_BaseFactory","FormlyWrapperFormField","initialGapCalculated","formlyField","hideFieldUnderline","underlineElement","FormlyWrapperFormField_mat_label_3_Template","FormlyWrapperFormField_ng_container_5_Template","FormlyWrapperFormField_ng_container_7_Template","FormlyWrapperFormField_mat_hint_10_Template","hideLabel","_matprefix","suffix","_matsuffix","ɵngcc4","FormlyMatFormFieldModule","tabindex","FormlyFieldInput","ɵFormlyFieldInput_BaseFactory","FormlyFieldInput_input_0_Template","FormlyFieldInput_ng_template_1_Template","_r1","FormlyMatInputModule","FormlyFieldTextArea","cols","ɵFormlyFieldTextArea_BaseFactory","autosize","autosizeMinRows","autosizeMaxRows","FormlyMatTextAreaModule","FormlySelectOptionsPipe","toOptions","gOptions","_flatOptions","getGroupProp","toOption","getLabelProp","getValueProp","getDisabledProp","shouldUseLegacyOption","disabledProp","groupProp","FormlySelectModule","option_r1","i_r2","FormlyFieldRadio","focusObserver","ɵwrapProperty","ɵFormlyFieldRadio_BaseFactory","FormlyFieldRadio_mat_radio_button_1_Template","ɵngcc5","FormlyMatRadioModule","FormlyFieldCheckbox","checkbox","ɵFormlyFieldCheckbox_BaseFactory","FormlyFieldCheckbox_span_2_Template","FormlyMatCheckboxModule","_r4","ctx_r3","isChecked","FormlyFieldMultiCheckbox","checkboxes","ɵFormlyFieldMultiCheckbox_BaseFactory","FormlyFieldMultiCheckbox_ng_container_0_Template","FormlyMatMultiCheckboxModule","_r5","selectOptions_r3","selectOptions","toggleSelectAll","getSelectAllState","selectAllOption","a0","selectOptions_r6","ngIf","_r0","child_r14","FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_mat_option_1_Template","item_r10","FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_Template","FormlyFieldSelect_ng_container_3_ng_container_2_mat_option_2_Template","FormlyFieldSelect_ng_container_3_ng_container_1_Template","FormlyFieldSelect_ng_container_3_ng_container_2_Template","FormlyFieldSelect","getSelectAllValue","selectAllValue","_getAriaLabelledby","flatOptions","ɵFormlyFieldSelect_BaseFactory","FormlyFieldSelect_ng_template_0_Template","FormlyFieldSelect_ng_container_3_Template","ɵngcc6","FormlyMatSelectModule","FormlyMaterialModule","_r2","FormlyDatepickerTypeComponent","datepickerOptions","datepickerTogglePosition","datepickerToggle","ɵFormlyDatepickerTypeComponent_BaseFactory","FormlyDatepickerTypeComponent_ng_template_1_Template","FormlyMatDatepickerModule","DateFormatterDirective","checkDateValidity","startCursor","endCursor","lastChar","formatDate","autoDate","getAutoCompleteDate","maxAutoDate","isBefore","isAfter","blockFutureDate","onInputChange","onFocusOut","ngModelChange","focusOut","dateSplit","DateInputComponent","DateFutureInputComponent","_r6","onEnterClick","onCapsClick","onAltClick","onShiftClick","onKeyClick","key_r3","getModifiedKey","getKeyIcon","inputInstance","MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template","MatKeyboardComponent_div_4_ng_container_1_Template","row_r1","onExit","KeyboardClassKey","AltGr","AltLk","Bksp","Caps","Enter","Space","Tab","KEYBOARD_ICONS","KeyboardModifier","ShiftAlt","KeyboardAnimationState","Void","Visible","Hidden","KeyboardAnimationTransition","Hide","Show","SHOW_ANIMATION","HIDE_ANIMATION","MatKeyboardContainerComponent","attrRole","onMousedown","MatKeyboardContainerComponent_ng_template_0_Template","MAT_KEYBOARD_LAYOUTS","keyboardLayouts","Bosanski","Dansk","Deutsch","Dingbats","Dvorak","Eesti","Gaeilge","Italiano","Magyar","Malti","Nederlands","Norsk","Polski","Schweizerdeutsch","Shqip","Suomi","Svenska","Hrvatski","Srpski","darkTheme","isDebug","customIcons","MatKeyboardService","_defaultLocale","_layouts","_parentKeyboard","_keyboardRefAtThisLevel","_availableLocales","layouts","_applyAvailableLayouts","_openedKeyboardRef","availableLocales","isOpened","layoutOrLocale","keyboardRef","_attachKeyboardContent","getLayoutForLocale","MatKeyboardConfig","mapLocale","_attachKeyboardContainer","keyboardConfig","MatKeyboardComponent","MatKeyboardRef","MAT_KEYBOARD_DEADKEYS","keyboardDeadkeys","MatKeyboardKeyComponent","_deadkeys","_deadkeyKeys","_repeatState","active$","pressed$","genericClick","enterClick","bkspClick","capsClick","altClick","shiftClick","spaceClick","tabClick","keyClick","pressed","lowerKey","isClassKey","isDeadKey","deadKey","hasIcon","inputValue","cancelRepeat","caret","_getCursorPosition","deleteSelectedText","replaceSelectedText","_setCursorPosition","onPointerDown","_repeatTimeoutHandler","keyFn","_repeatIntervalHandler","selectionLength","_getSelectionLength","headPart","endPart","sel","selLen","moveStart","createTextRange","move","MatKeyboardKeyComponent_mat_icon_3_Template","MatKeyboardKeyComponent_ng_template_4_Template","_locale","_keyboardService","_darkTheme","_isDebug","_inputInstance$","_modifier","_capsLocked","darkTheme$","isDebug$","setInputInstance","attachControl","modifiedKey","_invertShiftModifier","onKeyDown","_keys","onKeyUp","targetState","_invertAltModifier","MatKeyboardComponent_div_4_Template","MatKeyboardDirective","hideKeyboard","showKeyboard","_keyboardRef","matKeyboard","ɵngcc7","ɵ0","ɵ1","MatKeyboardModule","RussianKeyboardComponent","Markers","subvalue","dataViewGetApplicationMarkers","getUint16","marker","getUint8","markerDescription","arrayBufferImageExif","DataView","exif","getUint32","byteAlignment","storedAsLittleEndian","getTagOffsets","tagOffset","read","tagOffsets","write","setUint16","dataViewGetExifTags","backup","getNativeAPIRef","API","noop$1","FileReaderDataFormat","blobReadSection","onprogress","dataFormat","readFile","result$c","result$b","canOrientImages","testSrc","testImage","naturalWidth","canvasToImageData","descriptors","MATRICES","releaseCanvas","clearRect","isImageData","isUserAgent","result$a","isAndroid","canvasClone","imageDataToCanvas","canOrient","inMemoryCanvas","putImageData","getImageOrientationMatrix","HTMLCanvasElement","orientImageData","copy","deepCopy","isString","blobToCanvas","imageBlob","imageElement","canvasMemoryLimit","contextOptions","canvasWidth","canvasHeight","naturalHeight","requiredCanvasMemory","canvasScalar","imageToCanvas","imageToCanvasSafe","canCreateImageBitmap","isSVGFile","getUniqueId","workerPool","thread","transferList","workerKey","pooledWorker","workerFn","wrapFunction","functionToBlob","worker","terminationTimeout","messageId","result$9","blobToImageData","mainThreadBlobToImageData","createImageBitmap","bitmap","OffscreenCanvas","canvasToBlob","quality","toBlob","imageDataToBlob","mimeTypes","matroska","getExtensionFromMimeType","ext","ImageExtensionsRegex","getMimeTypeFromFilename","getMimeTypeFromExtension","getExtensionFromFilename","blobToFile","mimetype","lastModified","blobHasMimeType","blobMimeType","fileMimeType","targetMimeTypeExtension","getFilenameWithoutExtension","matchFilenameToMimeType","getAspectRatio","passthrough","HALF_PI","QUART_PI","isRotatedSideways","rotationLimited","Direction","Top","Bottom","TopLeft","TopRight","BottomRight","BottomLeft","DirectionCoordinateTable","fixPrecision","precision","scale","scalar","pivot","vectorCreateEmpty","vectorCreate","vectorCreateFromPointerEvent","vectorClone","vectorInvert","vectorRotate","radians","sin","tx","ty","vectorLength","vectorNormalize","vectorAngle","atan2","vectorEqual","vectorApply","vectorAdd","vectorSubtract","vectorDivide","vectorMultiply","vectorCross","vectorDistanceSquared","vectorDistance","vectorCenter","vectorsFlip","points","flipX","flipY","vectorsRotate","angle","toSize","sizeClone","sizeCreateFromAny","sizeCreateFromRect","sizeCreateFromElement","sizeCreateFromImageNaturalSize","sizeCreate","sizeEqual","sizeScale","sizeCenter","sizeRotate","sizeContains","sizeApply","lineCreate","lineClone","lineExtend","amount","CornerSigns","toRect","rectClone$1","rectCreateEmpty","rectCreateFromSize","rectCreateFromAny","rectCreateFromPoints","xMin","xMax","yMin","yMax","rectCreateWithCenter","center","rectCreate","rectCenter","rectTranslate$1","rectScale$1","rectClamp","sizeMin","sizeMax","rectGetCornerByTarget","xf","yf","rectMultiply","factor","rectEqual","rectAspectRatio","rectUpdate","rectUpdateWithRect","rectRotate","rectGetCorners","vertex","rectCenterRect","rectContainsPoint","rectCoverRect","inputAspectRatio","rectContainRect","rectToBounds","rectApply","rectApplyPerspective","perspective","corner","sign","rectNormalizeOffset","convexPolyCentroid","vertices","fx","fy","twiceArea","lineLineIntersection","getLineLineIntersectionPoint","denominator","uA","uB","linePointsIntersection","ignoreIdenticalLines","breakOnIntersection","intersections","intersection","quadLines","quadToLines","ellipseToPolygon","rotation","isElement","isFile","File","canvasToFile","getFilenameFromURL","fn$1","supportsReplaceChildren","appendForMeasuring","result$8","isSafari","getImageElementSize","shouldAutoRemove","measure","intervalId","getVideoElementSize","onloadedmetadata","isImage","getAsVideoOrImageElement","elementSrc","createImage","isVideoElement","getImageSize","mediaElement","imageToFile","awaitComplete","createProgressEvent","lengthComputable","dataURIToFile","dataURI","getAllResponseHeaders","getFilenameFromContentDisposition","decodeURI","configureXHR","isBlob","isImageBitmap","srcToFile","isDataURI","EditorError","willRequest","resourceType","requestInit","fetchFile","urlToFile","result$7","isMac","result$6","isIOS","orientImageSize","isJPEG","isPlainObject","ctxRotate","rotate","ctxScale","cropImageData","crop","imageSize","shouldFlip","shouldRotate","cropDefined","cropCoversImage","shouldCrop","imageDataOut","restore","outputSize","ctxTranslate","resizeTransform","inputWidth","inputHeight","outputWidth","outputHeight","inputData","outputData","Uint8ClampedArray","scaleX","scaleY","scaleXHalf","scaleYHalf","weights","weightsAlpha","centerY","yy","dy","centerX","w0","xx","dx","imageDataObjectToImageData","ImageData","createImageData","resizeImageData","upscale","targetWidth","targetHeight","scalarWidth","scalarHeight","colorEffect","matrix","m11","m12","m13","m14","m15","m21","m22","m23","m24","m25","m31","m32","m33","m34","m35","m41","m42","m43","m44","m45","og","convolutionEffect","kernelWeight","side","sideHalf","scy","scx","srcOff","vignetteEffect","strength","dist","bg","dm","alpha","noiseEffect","monochrome","rand","pixel","average","gammaEffect","filterImageData","colorMatrix","convolutionMatrix","gamma","gammaLevel","noise","noiseLevel","vignette","vignetteStrength","clarity","isIdentityMatrix","chain","transforms","filterChain","filterInstructions","isNumber","hasProp","isBinary","colorArrayToRGBA","objectUID","whenSVGSafeForDrawing","Uint32Array","isContextBlank","safariDrawCache","blobToDataURL","pubsub","pub","TextPadding","textGetStyles","fontFamily","fontVariant","fontStyle","textAlign","letterSpacing","textGetContentEditableStyles","disableNewline","isAutoWidth","allowNewline","textGetLineCount","widthValue","heightValue","wordBreak","whiteSpace","paddingTop","textGetInitialLineOffset","TextMeasureCache","toParts","childNode","textToLines","MeasureStyles","textLength","selectNodeContents","lines","lineIndex","clientRects","TextSizeCache","textToSize","fontScalar","contenteditable","spellcheck","StyleSheetLoaders","getRulesRemote","styleSheetContent","txt","createStyleSheetLoader","loadStylesheet","tempStyleSheet","styleSheets","styleSheet","ownerNode","cssRules","RemoteStyleSheetRulesCache","getFontFaceRulesSafe","importRule","rule","CSSImportRule","filterImportRules","remoteRules","CSSFontFaceRule","filterFontFaceRules","getCSSPropertyValue","isMatchingFontRule","family","getDocumentStylesheetFontFaceRules","ruleSets","ruleSet","getFontSources","matchingRules","fontRule","getMatchingFontRule","parentStyleSheet","styleSheetPath","getPathFromURL","fontSrcFirst","fontSources","fontProps","FontLocal","FontCache","getFontFormatByMimeType","getFontFaceEmbed","fontStyles","fontFaces","fontSource","dataType","dataURL","textToImage","imageWidth","imageHeight","paddingBottom","pixelRatio","outline","fontScalarStyles","computedScalar","fontEmbed","textFinal","textEncoded","paddingStyles","fontColor","outlineStyles","blurStyles","safariCacheKey","svgToImage","shapeDeepCopy","shape","shapeShallowCopy","shapeLineGetStartPoint","x1","y1","shapeLineGetEndPoint","y2","shapeIsText","shapeIsTextBlock","shapeHasRelativeSize","shapeIsRect","shapeHasComputedSize","shapeIsEllipse","shapeIsLine","shapeIsPath","shapeIsVisible","shapeHasSize","shapeDeleteRelativeProps","shapeDeleteTransformProps","shapeFormatStroke","strokeColor","shapeFormatFill","backgroundImage","shapeFormatHTMLText","shapeFormatTextBlock","shapeFormatTextBox","shapeFormat","disableErase","shapeFormatDefaults","textShadow","textShadowX","textShadowY","textShadowBlur","textShadowColor","textOutline","textOutlineWidth","textOutlineColor","shapeFormatPlainText","shapeFormatText","cornerRadius","shapeFormatRect","_h","disableResize","disableMove","shapeFormatPath","lineStart","lineEnd","shapeFormatLine","shapeFormatEllipse","xRegExp","yRegExp","compute","computeProps","PROPS_RELATIVE_TO_FONT_SIZE","percentage","computeRelativeToValue","shapeComputeDisplay","shapeComputeRect","shapesBounds","shapes","parentRect","bounds","shapeBounds","shapesFromCompositShape","shapeCopy","shapeScale","shapeHasNumericStroke","_scale","shapeGetCenter","shapeIsTextBox","isCanvas","getImage","onMetadata","onLoad","imageLoadState","bus","onSize","sizeCalculated","reportSize","isRemoteURL","crossOrigin","loadImage","drawCanvas","srcRect","destRect","ctxDrawImage","draw","save","clip","getDrawImageParams","backgroundSize","backgroundCorners","backgroundPosition","relativeRect","defineRectShape","beginPath","moveTo","arcTo","closePath","ctxRoundRect","fillRectShape","strokeRectShape","drawRect","lineWidth","strokeStyle","fillStyle","globalAlpha","backgroundRepeat","patternCanvas","patternCtx","desynchronized","createPattern","feather","drawEllipse","drawText","plaintTextShape","drawTextImage","shapeExtendedProps","drawLine","lineStartPosition","lineEndPosition","lineTo","drawPath","lineCap","strokeCap","lineJoin","strokeJoin","setLineDash","strokeDash","pathClose","ctxFlip","drawShape","globalCompositeOperation","drawMode","gh","Kh","subShapes","drawShapes","drawnShapes","drawImageData","contextBounds","computeShape","preprocessShape","computedShapes","flat","fillImageData","hasBackgroundColor","fillRect","getColorMatrixFromColorMatrices","colorMatrices","dotColorMatrix","getImageRedactionScaleFactor","redactionShapes","imageRes","maxShapeSize","roundFraction","tar","thing","unsub","$$","on_destroy","definition","$$scope","slot_ctx","get_slot_context","lets","merged","slot_definition","slot_changes","get_slot_context_fn","slot_context","rest","action_result","is_function","is_client","tasks","run_tasks","fulfill","style_element","append_stylesheet","get_root_for_style","data_map","set_custom_element_data","wholeText","is_svg","svg_element","managed_styles","current_component","ease","stylesheet","append_empty_stylesheet","create_style_information","get_current_component","on_mount","custom_event","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","update_scheduled","schedule_update","seen_callbacks","flushidx","saved_component","set_current_component","run_all","before_update","after_update","add_render_callback","outroing","outros","null_transition","intro","running_program","pending_program","animation_name","deleted","delete_rule","program","tick","css","clear_animation","create_rule","loop","globals","lookup","transition_out","old_blocks","get_key","create_each_block","get_context","old_indexes","new_blocks","new_lookup","deltas","child_ctx","will_move","did_move","transition_in","new_block","old_block","new_key","old_key","updates","to_null_out","accounted_for","spread_props","customElement","new_on_destroy","detaching","create_fragment","not_equal","append_styles","parent_component","blank_object","on_disconnect","skip_bound","make_dirty","mount_component","$destroy","destroy_component","$on","$set","$$props","$$set","subscriber_queue","subscribers","new_value","safe_not_equal","run_queue","invalidate","initial_value","single","stores_array","auto","readable","inited","cleanup","unsubscribers","UPDATE_VALUE","DEFAULT_VALUE","CUSTOM_STORE","DERIVED_STORE","derived","UNIQUE_DERIVED_STORE","selectedStores","isEqual","isFirst","storeValues","MAP_STORE","valueMapper","observedStores","sorter","storedItems","$observedStores","mapValue","mappedItems","createStores","accessors","objects","mergeObjects","storeInstance","onUpdate","ignoreFirstCallback","updateStoreValue","nextValue","createStore$1","get_store_value","_set","defineMethods","api","pointInPoly","aX","aY","bX","bY","edgeX","edgeY","offsetRectToFitPolygon","poly","polyLines","ray","lineExtended","rectOffset","limitCropRectToImage","rectVertexes","rectCenterPosition","rectVertex","lineMultiply","intersectionFound","tlbr","trbl","rectLimitedToPolygon","getImagePolygon","imageRotation","imagePerspective","imageRect","imageCenter","imagePoly","imageVertex","imagePolyBounds","getMaxSizeInRect","innerAngle","rotationSigned","rotationSignedMod","rotationSignedModHalf","hyp","getBaseCropRect","transformedCropRect","imageTransformedVertices","imageRotatedBoundsCenter","cropCenterInTransformedImage","deRotatedCropCenter","cropFromCenterOfTransformedImage","originalCropCenterOffset","clamp","ORDERED_STATE_PROPS","filterShapeState","simpleEqual","arrayEqual","itemEqual","isCropCentered","cropCenter","imageRotatedVertices","imageBoundsCenter","formatShape","_isFormatted","_isDraft","formatSelectionShape","disableSelect","disableRotate","ImageStorePropDescriptors","$size","perspectiveX","perspectiveY","rotationNext","rotationPrevious","loadState","rotationRange","cropMinSize","cropMaxSize","cropLimitToImage","cropOrigin","beforeComplete","cropWasAtMaxSize","cropRect","maxSize","isCropMaxSize","cropWasCentered","imageRotationPrevious","imageRotationRange","cropLimitToImageBounds","cropRectOrigin","minSize","didAttemptDoubleTurn","cropRectBase","imageTransformedCorners","perspectiveOffset","rotateCropOffset","imageBoundsRect","imageCentroid","cropOffset","cropRectOut","minScalar","maxScalar","imageTurns","imageRotationClamped","applyRotationAction","$rotation","prevValue","cropNext","cropPrevious","cropAspectRatio","cropRectPrevious","cropRectNext","previousCropRectCenter","nextCropRectCenter","cw","ch","imagePolygon","maxSizeInRect","wasLimited","intendedAspectRatio","intendedCenter","containedRect","limitRectToImage","applyCropRectAction","cropOut","aspectRatioNext","aspectRatioPrevious","toNumericAspectRatio","aspectRatioDist","sizeTurn","cropSize","limitToImageNext","limitToImagePrevious","$crop","$cropSize","cropRectAspectRatio","$cropRectAspectRatio","$cropMinSize","$cropMaxSize","$cropLimitToImage","updateCropRange","prevRange","nextRange","$isRotatedSideways","imageIsRotatedSideways","requiredSpace","sizeHypotenuse","acos","rangeHorizontal","rangeVertical","asin","updateRotationRange","padColorArray","frameShapeNext","frameStyle","disableStyle","isAssigningState","forceState","manipulation","redaction","annotation","decoration","chainTasks","chainOptions","processOptions","ontaskstart","ontaskprogress","ontaskend","cancelled","taskCancelToken","editorEventsToBubble","imagePrivateProps","imagePublicProps","getImagePropGroupedName","capitalizeFirstLetter","isImageState","createImageEditor","getImageObjSafe","initialImageProps","initialImagePropsBackup","unsubSrc","imageReader","loadSrc","unsubReader","imageLoadAbort","minImageSize","imageCropLimitToImage","imageCropLmitedToImage","imageCropMinSize","minVideoDuration","minDuration","imageMinDuration","removeImage","createProcessingHandler","stateProp","eventKey","getStore","setStore","taskProgress","taskLengthComputable","ontaskerror","readerOptions","imageReadToken","imageReadCancelled","imageReadHandler","readerState","writer","processState","imageWriteHandler","writerState","imageState","imageWriteToken","imageWriteCancelled","writerOptions","createImageCore","fin","unsubs","imageCrop","imageRotatedSize","imageCropAspectRatio","imageTrim","imageMaxDuration","propKeys","filteredOptions","filtered","applyImageOptionsOrState","imageWriter","imageProcessAbort","abortLoadImage","editImage","unsubReject","unsubResolve","isImageSource","redactionRenderStyle","imageRedactionRendering","shapePreprocessor","imageScrambler","willRequestResource","abortProcessImage","getCanvasMemoryLimit","filterObjectProperties","videoFixDuration","ontimeupdate","MAX_SAFE_INTEGER","createCanvasImageDrawer","imageDataResizer","createDefaultImageReader$1","createDefaultImageWriter$1","targetSize","featherCanvas","featherCtx","opacityStep","strokeRect","destCtx","getter","setter","progressUpdated","AnyToFile","srcProp","destProp","BlobGuardMimeType","mediaType","propertyBag","BlobReadImageSize","getMediaDuration","getVideoElementDuration","BlobReadMediaDuration","ImageSizeMatchOrientation","srcSize","srcOrientation","destSize","BlobReadImageHead","ImageHeadReadExifOrientationTag","ImageHeadClearExifOrientationTag","CalculateCanvasScalar","srcImageSize","srcCanvasSize","srcImageState","destImageSize","destScalar","naturalSize","canvasSize","BlobToImageData","ImageDataMatchOrientation","srcImageData","ImageDataFill","ImageDataCrop","hasTargetSize","ImageDataResize","destImageScaledSize","ImageDataFilter","destImageData","ImageDataRedact","imageBackgroundColor","scrambledCanvas","dataSizeScalar","Path2D","corners","addPath","imageSmoothingEnabled","ImageDataAnnotate","srcShapes","imageSizeScalar","imageTargetSize","imageSizeScaled","scaledSize","imageScaledSize","rotatedRect","getImageTransformedRect","isPreview","ImageDataDecorate","ImageDataFrame","contaxtScalar","ImageDataToBlob","srcFile","destBlob","ImageDataToCanvas","destCanvas","writeImageHead","headEnd","blobWriteSection","BlobWriteImageHead","srcBlob","srcHead","BlobToFile","renameFile","destFile","defaultFilename","destStore","beforeSend","upload","FormData","formData","PropFilter","allowlist","orientImage","outputProps","preprocessImageFile","createStore","genericOptions","copyImageHead","preprocessImageSource","preprocessImageState","postprocessImageData","postprocessImageBlob","result$5","supportsWebGL2","isPowerOf2","stringReplace","postfix","SHADER_VERT_SNIPPETS","SHADER_FRAG_SNIPPETS","colorize","maskapply","maskfeatherapply","rectaa","cornerradius","fragcolor","compileShader","shader","createShader","transpiledSrc","VERTEX_SHADER","FRAGMENT_SHADER","transpileShader","shaderSource","getShaderParameter","COMPILE_STATUS","getShaderInfoLog","vertexShaderCode","fragmentShaderCode","attribs","uniforms","vertexShader","fragmentShader","createProgram","attachShader","linkProgram","locations","getAttribLocation","getUniformLocation","detachShader","deleteShader","deleteProgram","canMipMap","applyOpacity","mat4Create","mat","Float32Array","mat4Ortho","near","far","nf","mat4Translate","mat4Scale","mat4RotateX","rad","a10","a11","a12","a13","a20","a21","a22","a23","mat4RotateY","a00","a01","a02","a03","mat4RotateZ","getWebGLContext","isPointInTriangle","bc","bp","cp","c1","c2","c3","createPathSegment","tangent","miter","normal","miterLength","vectorDot","rectPointsToVertices","createRectPoints","pushRectCornerPoints","getWebGLTextureSizeLimit","getParameter","MAX_TEXTURE_SIZE","RECT_UV","RECT_UV_ROTATED","SHOULD_APPLY_ROTATED_UV_TO_VIDEO_TEXTURES","CLARITY_IDENTITY","COLOR_MATRIX_IDENTITY$1","COLOR_TRANSPARENT","NO_CORNERS","calculateBackgroundUVMap","viewPixelDensity","createWebGLCanvas","viewSize","viewSizeVisual","textureSizeLimit","viewAspectRatio","pathSharpness","overlayMatrixCanvas","imageFrameBuffer","overlayMatrix","maskTop","maskRight","maskBottom","maskLeft","maskOpacity","maskBounds","IMAGE_MASK_FEATHER","RECT_MASK_FEATHER","CANVAS_COLOR_R","CANVAS_COLOR_G","CANVAS_COLOR_B","CANVAS_COLOR_A","indexTextureMap","disablePreviewStencil","stencilOp","KEEP","stencilFunc","ALWAYS","stencilMask","FOV","FOV_TAN_HALF","tan","antialias","premultipliedAlpha","stencil","getExtension","DEPTH_TEST","STENCIL_TEST","BLEND","blendFunc","ONE","ONE_MINUS_SRC_ALPHA","pixelStorei","UNPACK_PREMULTIPLY_ALPHA_WEBGL","transparentTexture","createTexture","bindTexture","TEXTURE_2D","texImage2D","RGBA","UNSIGNED_BYTE","imageOverlayTexture","overlayFramebuffer","createFramebuffer","imageBlendTexture","blendFramebuffer","imageShader","imagePositionsBuffer","createBuffer","texturePositionsBuffer","bindBuffer","ARRAY_BUFFER","bufferData","STATIC_DRAW","texturePositionsRotatedBuffer","pathShader","pathBuffer","DYNAMIC_DRAW","strokePath","useProgram","enableVertexAttribArray","aPosition","aNormal","aMiter","createPathVertices","stride","BYTES_PER_ELEMENT","normalOffset","miterOffset","uniform1f","uWidth","uSharpness","uniform4fv","uColor","uniformMatrix4fv","uMatrix","uniform4f","uCanvasColor","uniform1fv","uMaskBounds","uMaskOpacity","vertexAttribPointer","FLOAT","drawArrays","TRIANGLE_STRIP","disableVertexAttribArray","triangleShader","trianglesBuffer","rectShader","rectBuffer","rectTextureBuffer","rectCornerBuffer","ellipseShader","ellipseBuffer","ellipseTextureBuffer","glTextures","imageFramebufferSize","drawToImageFramebuffer","pixelDensity","textureScalar","textureWidth","textureHeight","bindFramebuffer","FRAMEBUFFER","texParameteri","TEXTURE_MIN_FILTER","LINEAR","TEXTURE_WRAP_S","CLAMP_TO_EDGE","TEXTURE_WRAP_T","framebufferTexture2D","COLOR_ATTACHMENT0","mat4ScaleX","mat4ScaleY","colorMask","clearColor","COLOR_BUFFER_BIT","textureDelete","texture","forceRelease","retain","deleteTexture","strokeClose","computedPoints","computedStrokeWidth","triangles","isIntersectingSelf","vb","getPolygonArea","totalVertices","indexList","vc","vaToVb","vaToVc","isEar","safe","triangulate","TRIANGLES","fillTriangles","backgroundUVMap","maskFeather","inverted","rectOut","cornerRadiusOut","limitCornerRadius","rectFill","fillRepeat","colorFilter","uv","aTexCoord","aRectCoord","uniform2fv","uSize","uPosition","uRepeat","uniform1i","uInverted","uCornerRadius","uMaskFeather","uEdgeFeather","uTexture","uTextureColor","uTextureOpacity","activeTexture","TEXTURE0","createRectOutline","uRadius","fillEllipse","createEllipseOutline","textureSize","translateX","translateY","rotateX","rotateY","rotateZ","maskCornerRadius","imageOverlayColor","enableOverlay","enableBlend","enableAntialiasing","imagePositions","viewZ","fovy","aspect","mat4Perspective","uniform2f","uTextureSize","blendTextureIndex","blendTexture","uTextureBlend","overlayTextureIndex","overlayTexture","uTextureOverlay","rotateUV","isRotatedVideo","textureIsRotatedVideo","clarityWeight","uOverlayColor","uClarityKernel","uClarityKernelWeight","uColorGamma","uColorVignette","uAntialias","uColorOffset","uColorMatrix","uOpacity","uMaskCornerRadius","textureFilterNearest","NEAREST","textureFilterLinear","textureClamp","textureRepeat","REPEAT","textureCreate","textureUpdate","LINEAR_MIPMAP_LINEAR","TEXTURE_MAG_FILTER","filterParam","wrapParam","generateMipmap","applyTextureProperties","updateTexture","textureGetSize","enablePreviewStencil","REPLACE","applyPreviewStencil","EQUAL","setCanvasColor","resetCanvasMatrix","updateCanvasMatrix","imageOrigin","imageVisualCenter","imageAbsoluteCenter","vectorScale","drawToCanvas","drawingBufferWidth","drawingBufferHeight","drawToImageBlendBuffer","drawToImageOverlayBuffer","enableMask","maskY","disableMask","resize","get_interpolator","is_date","interpolators","target_value","previous_task","elapsed","last_value","current_value","velocity","stiffness","damping","inv_mass","settled","tick_spring","next_value","last_time","current_token","inv_mass_recovery_rate","cancel_task","hard","spring","soft","fulfil","prefersReducedMotion","hasResizeObserver","rectNext","updateNodeRect","measureViewRect","measureOffset","offsetLeft","offsetTop","rootObserver","rootRects","observedRoots","observedNodes","measurable","observePosition","observeViewRect","isMeasureRoot","someVisible","focusvisible","isKeyboardInteraction","focusVisible","getResourceFromItem","getAsFile","getAsString","dropable","handleDragOver","handleDrop","resources","getResourcesFromEvent","result$4","isSoftwareRendering","failIfMajorPerformanceCaveat","isTexture","WebGLTexture","backgroundCornersToUVMap","canvas_1","mounted","action_destroyer","$$self","$$invalidate","canDraw","drawUpdate","$maskFrameOpacityStore","$imageOverlayColor","$maskOpacityStore","$mask","$background","Vec4Empty","EmptyVector","TransparencyGrid","sizeHalf","createTransparencyGrid","createEventDispatcher","isAnimated","isTransparent","maskRect","maskFrameOpacity","maskMarkupOpacity","clipAnnotationsToImage","textPixelRatio","willRender","didRender","loadImageData","enableGrid","gridColors","gridSize","gridOpacity","interfaceImages","selectionColor","canvasGL","updateSpring","SPRING_PROPS_FRACTION","backgroundColorAnimationDuration","background","tweened","component_subscribe","maskOpacityStore","maskFrameOpacityStore","selectionCache","redrawRequest","requestRedraw","redrawForce","throttledLastDrawTime","Textures","PlaceholderTextures","getTextureParams","imageRendering","textureWrapping","getImageTexture","textureParams","isTextureResourceLoaded","paused","isVideoPlaying","redraw","canvasCache","getShapeTexture","backgroundImageRendering","shapeId","textSize","measurement","elementRect","textMeasure","textUID","textureSizeScalar","getTextTexture","canvasState","previousHash","resetTransform","getBitmapTexture","overlayColor","enableManipulation","sharpenOffsetX","sharpenOffsetY","atActualSize","EPSILON","calculateTextShapeProps","currentShapeRect","computedTextureSize","usedTextures","shapeTexture","isLoadingBackgroundImage","isBackgroundLoadError","_translate","isRect","isText","isPath","isEllipse","drawErrorIndicator","drawLoadingIndicator","shapeRect","fillColor","shapeBackgroundColor","shapeStrokeColor","shapeCornerRadius","textureAspectRatio","textShapeRect","pixelTextureSize","_prerender","textShapeProps","textShadowBlurHalf","shadowTexture","shadowTextureSize","shapeRectCenter","shadowRectUnrotatedCenter","shadowRectCenter","shadowRect","textOutlineWidthHalf","outlineTexture","outlineTextureSize","spinnerRotation","errorPointsTLBR","errorPointsTRBL","spinnerPoints","drawTransparencyGridLayer","isFirstDraw","wasFlipping","usedManipulationTextures","usedAnnotationTextures","imagesTop","manipulationShapes","manipulationShapesDirty","annotationShapes","annotationShapesDirty","interfaceShapes","decorationShapes","frameShapes","selectionShapes","selectionRect","canvasBackgroundColor","imagesMask","imagesMaskOpacity","imagesOverlayColor","xFlipProgress","yFlipProgress","isFlipping","imagesSize","imagesBackgroundColor","imagesBackgroundImage","hasManipulationShapes","hasAnnotations","hasImageBackgroundColor","hasPreviewStencil","backG","backB","frontA","frontG","frontB","fA","shouldDrawAnnotations","colorEven","colorOdd","posA","posB","drawTransparencyGrid","shapesInside","expandsCanvas","shapesOutside","selectionRectShapes","actions","selectionGroup","cachedSelection","selectionCanvas","previousActions","currentActions","previousLast","currentLast","shouldRedrawSelection","didDraw","shouldSubtract","ctxDrawSelection","mapSelectionToShape","backgroundRect","registeredTexture","usedTexture","releaseUnusedTextures","throttledFinalRedrawTimeout","redrawThrottled","afterUpdate","onMount","propertyValue","durationToMilliseconds","$$value","SvelteComponent","instance$U","create_fragment$T","arrayJoin","get_default_slot_changes$1","get_default_slot_context$1","ul_class_value","each_blocks","each_1_lookup","each_value","get_each_context$8","create_each_block$8","group_outros","update_keyed_each","outro_and_destroy_block","check_outros","key_1","button_disabled_value","li_aria_controls_value","li_id_value","li_aria_selected_value","default_slot_template","default_slot","create_slot","space","tabId","keydown_handler","click_handler","new_ctx","update_slot_base","get_slot_changes","get_all_dirty_from_scope","if_block_anchor","if_block","create_if_block$l","tabNodes","shouldRender","$$slots","slots","klass","tabs","focusTab","handleClickTab","handleKeyTab","instance$T","create_fragment$S","get_default_slot_changes_1","get_default_slot_context_1","panelIsActive","shouldDraw","labelledBy","visible","get_default_slot_changes","get_default_slot_context","div1","div0","div0_class_value","div_class_value","get_each_context$7","create_each_block$7","div_hidden_value","div_id_value","div_tabindex_value","div_aria_labelledby_value","div_data_inert_value","create_if_block_1$f","current_block_type_index","if_block_creators","create_if_block$k","create_else_block$8","if_blocks","select_block_type","previous_block_index","panelNodes","panels","drawCache","instance$S","create_fragment$R","getComponentExportedProps","switch_instance","updating_name","switch_instance_anchor","switch_instance_spread_levels","switch_value","switch_instance_props","construct_svelte_component","switch_props","switch_instance_name_binding","create_component","switch_instance_changes","get_spread_update","get_spread_object","add_flush_callback","old_component","create_if_block$j","componentProps","isLocal","$isActivePrivateStore","$opacityClamped","$isAnimated","opacityClamped","$opacity","isActivePrivateStore","stateProps","tick$1","isActiveFraction","ComponentView","componentExportedProps","componentComputedProps","computedProps","componentComputedStateProps","computedStateProps","panelName","handleMeasure","hasBeenMounted","setContext","contextMap","set_store_value","instance$R","create_fragment$Q","svg_viewBox_value","instance$Q","create_fragment$P","isEventTarget","toTitle","shortcut","toKeyboardShortcut","icon_1","Icon","create_default_slot$h","icon_1_changes","button_title_value","default_slot_or_fallback","if_block0","create_if_block_1$e","if_block1","create_if_block$i","fallback_block$2","handleDown","handleUp","elButtonInnerClass","elButtonClass","elLabelClass","holdTimer","labelClass","innerClass","onkeydown","onhold","holdThreshold","holdSpeedUpFactor","holdSpeedMin","hold","holdStep","instance$P","create_fragment$O","getElement","INERTIA_DURATION_MULTIPLIER","interactable","inertia","inertiaDurationMultiplier","shouldStartInteraction","pinch","multiTouch","getEventPosition","observeKeys","inertiaTweenUnsubscribe","pointers","getPointerTimestamp","getPointersCenter","flattenPointerOrigin","pointer","getPointer","getPointerIndex","isSingleTouching","isMultiTouching","getInteractionState","distance","distanceTotal","getDistance","inertiaTween","inertiaOrigin","inertiaTranslation","pinchOffsetDistance","currentTranslation","currentScale","isGesture","lastTapPosition","lastTapTimeStamp","handlePointerdown","RelevantKeys","onPointerUpdated","lastPointerUpdate","pressedKeys","pinchCurrentDistance","isContextMenuAction","resetInertia","timeStampInitial","velocityHistory","velocityAverage","interactionState","addPointer","handleKeys","handlePointermove","handlePointerup","handleVisibilityChange","removePointers","eventPosition","interactionDuration","updatePointer","centerBetweenPointers","removedPointer","arrayRemove","removePointer","isTap","isDoubleTap","interactionEnd","inertiaPrevented","preventInertia","handleEnd","circOut","handleInertiaUpdate","tapState","nudgeable","shiftMultiplier","stopKeydownPropagation","isHorizontalDirection","isVerticalDirection","handleKeydown","isShift","isVerticalAction","isHorizontalAction","multiplier","log10","elastifyRects","elastify","getWheelDelta","div1_class_value","nudgeable_action","containerStyle","containerFeatherSize","containerState","childStyle","$scrollOffset","scrollOrigin","scrollRect","scrollReleased","scrollState","scrollBlockInteractionDist","scrollStep","scrollFocusMargin","scrollDirection","scrollAutoCancel","elasticity","onscroll","maskFeatherSize","maskFeatherStartOpacity","maskFeatherEndOpacity","overflowStyle","scrollAtRest","scrollOffsetUnsub","limitOffsetToContainer","scrollFirstMove","scrollCancelled","scrollTranslationPrev","setScrollOffset","elastic","preventScrollState","offsetLimited","offsetVisual","snapToPosition","unitToPixels","endOffset","isHorizontalTranslation","isHoldingShift","currentScrollOffset","instance$O","create_fragment$N","span_transition","create_bidirectional_transition","fade$1","onmeasure","instance$N","create_fragment$M","circle0","circle1","span0","span1_style_value","set_data","formattedValue","circleValue","circleOpacity","$animatedOpacity","$animatedProgressClamped","$componentOpacity","progress","labelBusy","componentOpacity","animatedValue","animatedOpacity","animatedProgressClamped","$animatedValue","animatedProgressClampedUnsub","instance$M","create_fragment$L","span_class_value","instance$L","create_fragment$K","document_1$1","ongrab","ondrag","ondrop","isOverButton","downPosition","handleMove","upPosition","isImageTarget","instance$K","create_fragment$J","imagebutton","didMountAction_action","ImageButton","func","func_1","func_2","func_3","thumb","imagebutton_changes","get_each_context$6","create_each_block$6","onclickitem","ongrabitem","ondragitem","ondropitem","mount","instance$J","create_fragment$I","getDevicePixelRatio","devicePixelRatio","snapToPixel","preventScroll","isTextInput","isTextField","isTextarea","isContentEditable","get_details_slot_changes","get_details_slot_context","get_label_slot_changes","get_label_slot_context","button_spread_levels","button_props","create_default_slot$g","Button","button_changes","label_slot_template","label_slot","details_slot_template","details_slot","t2","if_block2_anchor","create_if_block_2$a","create_else_block$7","create_if_block_1$d","buttonElement","offsetProgress","isAnimating","tipScale","tipOpacity","tipStyle","buttonProps","$portal","$position","$portalRootRect","$offset","buttonClass","buttonLabel","buttonLabelClass","buttonHideLabel","buttonIcon","buttonTitle","onshow","onhide","portalRootRect","panelSize","buttonComponent","buttonRect","syncButtonRect","showPanelTip","isTargetSelf","detailPanel","downOutsidePanel","handleClick","handleButtonKeydown","detailPanelRef","parentLeft","parentTop","parentRight","parentBottom","panelLeft","panelRight","panelBottom","panelMargin","instance$I","create_fragment$H","ArrowKeys","label_1","li_class_value","stop_propagation","$keysPressedStored","ArrowKeyCodes","keysPressedStored","instance$H","create_fragment$G","flattenOptions","mapOption","optionMapper","mappedOption","localize","localizeOptions","localizeOptions$1","isDeepEqual","get_option_slot_changes_1","get_option_slot_context_1","get_option_slot_changes","get_option_slot_context","get_group_slot_changes","get_group_slot_context","fieldset","fieldset_class_value","create_if_block_7$2","get_each_context$5","create_each_block$5","legend","legend_class_value","radioitem","RadioItem","create_default_slot_2$5","radioitem_changes","group_slot_template","group_slot","group_slot_or_fallback","t_value","fallback_block_1","each_value_1","get_each_context_1","create_each_block_1","create_default_slot_3$3","icon_changes","raw_value","option_slot_template","option_slot","option_slot_or_fallback","create_if_block_6$3","create_if_block_5$5","fallback_block_2","create_default_slot_1$7","create_if_block_4$7","create_if_block_3$8","fallback_block$1","create_default_slot$f","create_if_block_2$9","create_else_block$6","if_block1_anchor","create_if_block_1$c","localizedOptions","mappedOptions","flattenedOptions","onchange","optionFilter","optionLabelClass","optionClass","optionGroupClass","getOptionIndex","flattenedOption","changeSelection","opop","mapOptions","isConfirmKey","instance$G","create_fragment$F","button0","button0_aria_label_value","button1","button1_aria_label_value","input_1","input_1_value_value","create_if_block$h","isClamped","maxCharCount","isShiftPressed","inputmode","stepMultiplier","enableSpinButtons","getFormattedValue","handleIncrease","handleDecrease","instance$F","create_fragment$E","get_controls_slot_changes","get_controls_slot_context","create_if_block_4$6","input_changes","create_default_slot_1$6","span_title_value","create_if_block_3$7","create_else_block$5","create_default_slot$e","html_tag","span_style_value","sublabel","create_if_block_1$b","HtmlTag","create_if_block_2$8","create_if_block$g","radiogroup","controls_slot_template","controls_slot","RadioGroup","create_option_slot$5","create_group_slot$1","radiogroup_changes","updating_isActive","panel_props","create_details_slot$3","create_label_slot$2","Panel","panel_isActive_binding","panel_changes","selectedLabel","dropdownVisible","optionIconStyle","optionLabelStyle","ondestroy","enableInput","optionValue","optionLabel","getUndefinedOptionLabel","instance$E","create_fragment$D","create_details_slot$2","hasChildNodes","instance$D","create_fragment$C","toFraction","get_knob_slot_changes","get_knob_slot_context","icon0","icon1","create_default_slot_1$5","create_default_slot$d","icon0_changes","icon1_changes","div4","div3","input_1_style_value","div2","div3_style_value","div4_class_value","knob_slot_template","knob","knob_slot","create_if_block$f","numberValue","fraction","dimension","offsetSizeProp","pageAxisProp","knobControllerStyle","inputSize","inputOffset","pageOffset","valuePrev","valuePrevIntended","valueMin","valueMax","trackStyle","trackClass","knobStyle","knobClass","onrelease","onexceed","enableForceUseKnob","enableStopPropagation","enablePointerdownListener","maxInteractionDistance","formatValue","numberRoundTo","setValueByOffset","grabbed","released","intendedValue","minValue","maxValue","nudgeTimer","handlePointerMove","handlePointerUp","updateDir","updateTimer","didUpdate","handleUpdaterUp","instance$C","create_fragment$B","eventDistanceToKnob","handlePointerDown","create_default_slot$c","span0_class_value","span1_title_value","span1_class_value","create_if_block_1$a","create_if_block$e","slider","slider_spread_levels","slider_props","Slider","slider_changes","create_details_slot$1","create_label_slot$1","omit_props_names","$$restProps","compute_rest_props","labelPrefix","currentLabel","syncLabel","$$new_props","exclude_internal_props","instance$B","create_fragment$A","dynamiccomponenttree","create_if_block$d","DynamicComponentTree_1","dynamiccomponenttree_changes","hideTitle","instance$A","create_fragment$z","HSVToRGB","div_style_value","colorValue","instance$z","create_fragment$y","colorStringToColorArray","hexToRGB","colorpreview","ColorPreview","create_if_block_5$4","colorpreview_changes","div0_style_value","div1_style_value","div2_style_value","create_if_block_4$5","create_if_block_3$6","labelColorPalette","create_option_slot$4","create_group_slot","create_if_block_1$9","create_if_block_2$7","create_if_block$c","create_details_slot","create_label_slot","sx","isPossibleShortHand","valueAsHex","hue","saturation","brightness","valueAsRGB","valueAsRGBA","valueAsRGBAFullyTransparent","valueAsRGBAFullyOpaque","valueAsRGBAFullySaturated","hidePresetLabel","enableOpacity","enablePresets","enablePicker","updateProps","syncControls","valueAsHSV","RGBToHSV","rgba","updateColorArray","updateSaturationAndBrightness","inputPageOffset","currentInput","opacityEnabled","isShorthand","padStart","colorArrayToHex","vectorCreateFromPointerEventOffset","instance$y","create_fragment$x","subcontrolProps","subcontrolLinked","filteredProps","instance$x","create_fragment$w","svelte_element_anchor","previous_tag","svelte_element","create_dynamic_element","html_anchor","discardEmptyItems","create_if_block_1$8","create_if_block_2$6","create_if_block_3$5","select_block_type_1","svelte_element_levels","svelte_element_data","set_custom_element_data_map","set_attributes","key_2","show_if","create_if_block$b","create_else_block$4","each_1_anchor","get_each_context$4","create_each_block$4","treeUniqueKey","ComponentMap","ImageButtonList","Dropdown","DynamicPanel","ProgressIndicator","ShapeStyle","ToggleSlider","ColorPicker","ShorthandControl","isComponent","shouldRenderItem","instance$w","create_fragment$v","result$3","create_if_block_1$7","create_if_block$a","panelForcedPosition","shouldStickToKeyboard","panelRevealTimeout","onconfirm","oncancel","autoPositionCursor","buttonConfirm","buttonCancel","justify","parentMargin","panelOffset","panelVisible","panelPositionStyle","panelOpacityStyle","unsubSoftKeyboardListener","lastScreenY","currentScreenY","preventTextAreaScrollingOnIOS","focusDateTime","heightNormal","visualViewport","testState","createSoftKeyboardObserver","keyboardState","stick","getForcedPosition","cursorMoveToEnd","focusDuration","instance$v","create_fragment$u","ImagePropsDerived","ImageStoreProps","createPing","toKebabCase","mediaQueryStore","mm","matchMedia$1","imageBitmapToImageData","imageBitmap","isVideoFile","blobToImageBitmap","ImageOrienter","onseeked","drawFrame","onloadeddata","videoToImageData","toImageData","imageDataContain","result$2","supportsWebGL","COLOR_MATRIX_IDENTITY","SPRING_PROPS","isDarkColor","getRangeCenter","toPercentageNumber","getEventPositionInViewport","getEventPositionInStage","viewOffset","stageOffset","positionInViewport","canZoom","canPan","imageFitsOnStage","zoomLevels","zoomMin","zoomMax","zoomLevelSelectedIndex","zoomLevelCurrent","zoomLevelLabel","$imageSelectionZoom","$imageSelectionPan","$imageSelectionStageFitScalar","$imagePreviewUpscale","$stageRect","$rootRect","$imageSelectionRect","$isInteracting","$stageScalar","$imageSelectionStoredState","allowPan","allowZoom","enablePan","enableZoom","enableZoomControls","enableZoomInput","enablePanInput","enablePanLimit","panLimitGutterScalar","zoomOptions","zoomAdjustStep","zoomAdjustFactor","zoomAdjustWheelFactor","imageSelectionRectCentered","imageSelectionRectScalar","zoomLevel","zoomControls","zoomMultiTouching","isInteracting","rootRect","stageRect","stageScalar","imageSelectionPan","imageSelectionZoom","imageSelectionStageFitScalar","imageSelectionRect","imageSelectionStoredState","imagePreviewUpscale","panOrigin","zoomOrigin","isPanningToCenter","currentDistanceToCenter","isPanning","main","storePanAndZoom","pan","isImageSelectionPanCentered","resetPanAndZoom","zoomAdjust","snapToCenter","updateZoomAdjust","setZoomAdjust","getPanLimitedTranslation","safeRect","gutterScalar","nextRect","nextRectLimited","manipulatePan","nextPan","nextPanLimited","elastifyVectors","didPan","lastDragInteraction","handleDragStart","handleDrag","nextZoom","nextDistanceToCenter","handleDragRelease","handleDragEnd","wheelSnapZoomTimer","lastWheelEventTimestamp","wheelFastZoomCounter","wheelFastZoomShouldHandle","didSnap","handleWheel","wheelInterval","isZoomingFast","stageWheelPosition","updateZoom","stagePosition","currentZoom","newTranslation","zoomCenter","nextZoomDistanceToCenter","isZoomingOut","isZoomingToCenter","isZoomingFlick","originSelectionRect","originSelectionRectCenter","zoomedSelectionRect","zoomedSelectionRectCenter","rectTranslation","vectorUpdate","getListenerFunction","gestureZoomOffset","gesturePanOffset","gestureStagePosition","gestureSelectionRect","handleGestureStart","handleGesture","handleGestureEnd","toggleZoomInput","togglePanInput","interactableInstance","currentScalar","labelZoomFit","labelZoomActual","av","bv","labelZoomOut","iconZoomOut","labelZoomIn","iconZoomIn","instance$u","getVideoFileRotationMetadata","blobToArrayBuffer","getRotationMetadataInDataView","MVHD_ATOM","getAtoms","atoms","bodyOffset","bodySize","inTrack","getRotationMetadataInMP4","moov","atom","moovChildAtoms","neededAtoms","relevantAtoms","getInt32","getRotationMetadataInMOV","window_1$1","create_if_block_7$1","create_if_block_3$4","create_if_block_8$1","create_if_block_9$1","statusmessage","StatusMessage","aside","create_if_block_10$1","statusmessage_changes","statusaside","StatusAside","create_default_slot_5$1","statusaside_changes","create_default_slot_7","progressindicator","progressIndicator","progressindicator_changes","closeButton","create_if_block_12","create_if_block_11$1","iconSupportError","create_default_slot_6","if_block2","t3","t4","canvaspanandzoom","updating_zoomLevel","updating_zoomControls","updating_zoomMultiTouching","create_if_block_6$2","create_if_block_5$3","create_if_block_4$4","create_else_block$3","Canvas","canvaspanandzoom_props","imageSelectionRectElasticity","CanvasPanAndZoom","canvaspanandzoom_zoomLevel_binding","canvaspanandzoom_zoomControls_binding","canvaspanandzoom_zoomMultiTouching_binding","canvas_changes","canvaspanandzoom_changes","Scrollable","scrollElasticity","create_default_slot_2$4","scrollable_changes","t1_value","create_default_slot_4$2","tablist","tablist_spread_levels","tablist_props","create_default_slot_3$2","TabList","tablist_changes","utilpanel","updating_component","utilpanel_props","UtilPanel","utilpanel_component_binding_1","utilpanel_changes","tabpanels","tabpanels_spread_levels","tabpanels_props","create_default_slot_1$4","TabPanels","tabpanels_changes","utilpanel_component_binding","inputform","inputform_spread_levels","inputform_props","create_default_slot$b","InputForm","inputform_changes","input_value_value","input_placeholder_value","create_if_block_2$5","create_if_block_1$6","create_if_block$9","OVERLAY_ID","isTrimPluginLoaded","isVideoSupported","videoFrameOffsetFixed","videoTrim","videoTrimFirst","videoTrimLast","videoTrimFixed","videoTrimCurrentIndex","videoTrimNextIndex","isOverlayModeEnabled","showUtils","maxImageDataSize","supportsAnimations","canAnimate","acceptsAnimations","OVERLAY_OPACITY_MAX","overlayMin","overlayOverlap","overlayLeft","overlayTop","overlayRight","overlayBottom","gradientOverlays","imageTransformsSnapPixels","canUndo","canRedo","utilsFiltered","utilsAvailable","utilsDefined","utilsMerged","utilSelected","utilsVisibleFraction","tabsConfig","shouldRenderTabs","horizontalSpace","hasLimitedSpace","verticalSpace","isModal","isCenteredHorizontally","isCenteredVertically","isCentered","isNarrow","isCompact","hasSwipeNavigation","activeUtilTools","navigationHorizontalPreference","navigationVerticalPreference","toolbarVerticalPreference","controlGroupsVerticalPreference","controlTabsVerticalpreference","rootRectDefined","rootElementComputedStyle","envStr","imageCanvasState","hasProps","missingFeatures","isSupportsError","isStartLoadingImageSource","isImageLoadError","isWaitingForImage","imageLoadProgress","isLoadingImageData","isCreatingImagePreview","isProcessingImage","imageLoadShowProgressIndicator","imageLoadStatusLabel","imageProcessStatusLabel","imageProcessProgress","imageProcessShowProgressIndicator","isImageProcessingError","isCustomStatus","isStatusActive","isStatusVisible","hasAside","statusIndent","statusTransform","needsInteractionLock","preventTouchHandler","handleTouchMove","toolbarItems","hasClientRect","canRender","hasImageRedaction","imageRedactionScalar","routePing","isReady","$utilRect","$imagePreview","$imageFrame","$imageDecoration","$imageSize","$imageFlipY","$imageFlipX","$imageRotation","$imageAnnotation","$isInteractingFraction","$rootLineColor","$rootForegroundColor","$imageManipulation","$imageRedaction","$imageRedactionRendering","$imageBackgroundColor","$imageScrambler","$pressedKeysStore","$allowPlayPause","$clientRect","$env","$redrawTrigger","$imageProcessingPreparing","$statusOffset","$asideWidth","$statusWidth","$statusOpacity","$wasProcessingImage","$imageVisualLoadComplete","$imageProcessState","$imageLoadState","$imagePreviewSource","$activeImages","$imageProps","$shouldAnimate","$imagePreviewModifiers","$imageTransforms","$pointerHoverable","$pointerAccuracy","$utilTools","$imageFile","$previewShouldUpscale","$history","$imageState","$tabRect","$imageOverlayMarkup","$overlayBottomRect","$overlayOpacity","$rootBackgroundColor","$overlayRightRect","$overlayTopRect","$overlayLeftRect","$pixelRatio","$imageSelectionRectPresentation","$stagePadding","$stagePadded","$imageSelectionRectStaticScalar","$imageCropRect","$imageStaticBounds","$imageCropRectIntent","$imageSelectionRectSnapshot","$imageIsStatic","$imageCropRectSnapshot","$presentationScalar","$imageSelectionScalar","$imageSelectionRectIntent","$imageSelectionRectOffset","$prefersReducedMotion","$rootInsetTop","$imageCropAspectRatio","$enablePanInputStore","$enablePanInputProp","$allowZoomControls","$imageSelection","$shapePreprocessor","$images","$mediaTrim","$willRequest","$elasticityMultiplierStore","$mediaVolume","$isMuted","$videoFramePeekOffset","$videoFrameOffset","$mediaDuration","$mediaMaxDuration","$asideOffset","$asideOpacity","$toolRect","$imageCropLimitToImage","$interfaceImages","$gridSize","$gridColorEven","$gridColorOdd","$gridOpacity","$rootColorPrimary","$willRequestResource","$imageOverlay","$allowPan","$enablePanInputStatus","$allowZoom","$enableZoomInputStore","$enableZoomControlsProp","$imageSelectionRectCentered","$imageSelectionRectScalar","$disabledTransition","$$unsubscribe_imagePreview","$$unsubscribe_history","eventProxy","userTextInput","userTextInputField","layoutMode","util","utils","animations","previewUpscale","previewPad","previewMaskOpacity","previewImageDataMaxSize","previewImageTextPixelRatio","markupMaskOpacity","zoomMaskOpacity","elasticityMultiplier","willRevert","willProcessImage","willRenderCanvas","willRenderToolbar","willSetHistoryInitialState","enableButtonExport","enableButtonRevert","enableNavigateHistory","enableToolbar","enableUtils","enableButtonClose","enableDropImage","enablePasteImage","enableBrowseImage","enableTransparencyGrid","layoutDirectionPreference","layoutHorizontalUtilsPreference","layoutVerticalUtilsPreference","layoutVerticalToolbarPreference","layoutVerticalControlGroupsPreference","layoutVerticalControlTabsPreference","textDirection","markupEditorZoomLevel","markupEditorZoomLevels","markupEditorZoomAdjustStep","markupEditorZoomAdjustFactor","markupEditorZoomAdjustWheelFactor","markupEditorInteractionMode","muteAudio","willSetMediaInitialTimeOffset","enableCanvasAlpha","zoomPresetOptions","imagePreviewSrc","imageOrienter","pluginComponents","pluginOptions","pluginInterface","redrawPreview","redrawTrigger","allowPlayPause","videoFramePeekOffset","videoFrameOffset","videoCurrentTime","videoIsPlaying","updatePlayState","prevTime","prevUpdateFrameRequestTimestamp","videoAnimationFrame","videoPlayStartClipIndex","videoDidEnterClip","isPaused","frameDist","setCurrentTime","getCurrentTime","togglePlayPause","mute","muted","unmute","toggleMute","isMuted","frameOffset","framePeekOffset","isPlaying","elasticityMultiplierStore","registeredPluginsComponents","disabledTransition","glMaxTextureSize","maxTextureSize","fetchSrc","imageSourceToImageData","imageProxy","proxyStores","publish","newImage","createImageProxy","mediaDuration","mediaTrim","volume","mediaVolume","mediaMinDuration","maxDuration","mediaMaxDuration","imageProcessState","imageCropRect","imageCropMaxSize","cropRange","imageCropRange","imageCropRectOrigin","imageCropRectAspectRatio","imageOutputSize","imageFlipX","imageFlipY","imageBackgroundImageSrc","imageColorMatrix","imageConvolutionMatrix","imageGamma","imageVignette","imageNoise","imageDecoration","imageAnnotation","imageManipulation","imageRedaction","imageFrame","imageSelection","createImageSrcLoader","backgroundImageDataCancelToken","imageBackgroundImageData","$backgroundImageSrc","imageStateUnsub","utilSelectedStore","allowZoomControls","enablePanInputStore","enableZoomInputStore","enableZoomControlsProp","enablePanInputProp","enablePanInputStatus","rootBackgroundColor","rootForegroundColor","rootLineColor","rootColorPrimary","rootColorSecondary","tabRect","rootInsetTop","toolRect","utilRect","pointerAccuracy","pointerHoverable","isTransformingImage","isInteractingFraction","animator","shouldAnimate","canRenderDelayed","previewShouldUpscale","imageIsStatic","imageCropRectSnapshot","imageCropRectIntent","imageCropRectPresentation","elasticRect","imageSelectionRectSnapshot","imageSelectionRectIntent","imageSelectionRectOffset","getFrameOutset","presentationRect","stageRecenter","stageRectBase","$stageRecenter","utilOffsetY","prevStagePadding","shouldPadPreview","stagePadding","$shouldPadPreview","$stageRectBase","newStagePadding","stagePadded","utilRectPadded","imageStaticCorners","imageStaticBounds","$imageStaticCorners","rectRotated","rectScaled","rectCentered","imageSelectionScalar","imageSelectionStoredStateReset","imageSelectionRectPresentation","snapPixels","instantUpdate","imageSelectionRectStaticScalar","centerImageStaticBounds","childRect","rectOffsetInRect","getImageSelectionRectCentered","imageCropRectFitsStage","stageRectPrev","stageScalePrev","calculateImageSelectionRect","stageRectCurrent","centeredImageSelectionRect","hasSetInitialStageScalar","stageScalarUnsub","stageRectUnsub","imageIsStaticUnsub","isStatic","presentationScalarSnapshot","imageSelectionRectSnapshotUnsub","cropRectClone","imageSelectionRectUnsub","rectSubtract","rectDivide","rectAdd","imageCropRectUnsub","imageSelectionRectAspectRatio","imageScalar","presentationScalar","$imageScalar","prevFrameOutset","frameOutset","newFrameOutset","frameHasOutset","$frameOutset","imageOutlineOpacity","imageOutline","$colorOpacity","$rect","$rectScalar","$frameHasOutset","shadeColor","isDarkOutline","frameColor","imageOverlayMarkup","imageOverlay","$imageOutline","overlayOpacity","overlayLeftRect","overlayTopRect","overlayRightRect","overlayBottomRect","imageVisualLoadComplete","imagePreviewSource","imagePreviewLoaderCancelToken","imagePreview","minPreviewLoaderDuration","activeImages","imagePreviewCurrent","imagePreviewModifiers","imageTransforms","$imageCropRectPresentation","$isTransformingImage","imageSelectionRectTranslation","imageScale","viewRect","viewCenter","stageCenter","cropRectBaseCenter","imageTranslation","imageOffset","imageSelectionCenter","imageSelectionOffset","calculateImageTransforms","imageEffects","$colorMatrix","$convolutionMatrix","$gamma","$vignette","$noise","windowWidth","windowHeight","shouldPreventSwipe","minor","canPreventNavSwipe","initialPixelRatio","handleResolutionChange","resolutionObserver","updateSubs","isInteger","undo","redo","revert","lastState","newStateEntries","historyCreate","setInitialHistoryState","baseRect","baseCropRect","baseEditorState","editorInitialHistoryState","imageLoadStateUnsub","shouldReset","imageProcessingPreparing","handleExport","shouldProcess","statusOpacity","imageProcessStateUnsub","triggerUpdate","addStore","storeDidUpdate","storeList","imageTransformsInterpolated","utilTools","imageSelectionMultiTouching","imageSelectionZoomCurrent","utilStores","imageBackgroundImage","rangeInputElasticity","utilsUniqueId","previousUtilsAvailable","getAvailableUtilById","utilId","utilsVisible","syncValue","parseValue","syncColor","enableAlpha","colorArray","colorString","getColorPropertyValue","gridColorEven","gridColorOdd","syncCSSProps","imageProps","$imageEffects","backgroundImageData","updateImagePreviews","currentImageProps","lastImagePreview","loadTimer","wasProcessingImage","statusState","asideOffset","asideOpacity","asideWidth","statusWidth","statusOffset","asideWidthUpdateTimer","handleCloseImageLoadError","handleCloseImageProcessError","touchScroll","handleTouchStart","pressedKeysStore","handleUserFile","isBitmap","handleSelectFile","scrambledPreviewImage","rootPortal","computedRedactionShapes","rootPortalStore","getStageState","foregroundColor","lineColor","utilVisibility","imageManipulationShapesDirty","imageAnnotationShapesDirty","decorationShapesDirty","imageDecorationShapesDirty","frameShapesDirty","imageFrameShapesDirty","positionDecorationShape","transformDecorationShape","vectorCreateFromAny","flattenShapes","flattenedShapes","flattenShape","shapeIsTextEmpty","canvasComputedScale","canvasComputedAnnotationBaseShapes","canvasComputedAnnotationShapes","canvasComputedManipulationShapes","canvasComputedDecorationShapes","canvasComputedFrameShapes","canvasComputedSelectionRect","createCanvasState","manipulationShapesToDraw","annotationShapesToDraw","decorationShapesToDraw","interfaceShapesToDraw","frameShapesToDraw","canvasScaleChanged","canvasDirty","alwaysOnTop","imageAnnotationRequiresPreprocessing","canvasComputedInterfaceShapes","getAvailableUtils","tabIcon","tabLabel","updateFrameRequestTimestamp","fastSeek","didUpdateFrame","currentClip","prevClip","setVolume","currentAspectRatio","nextAspectRatio","syncRootAspectRatio","markup","layoutPreference","hasToolbar","hasNavigation","browserVersion","resizeInitial","opacityInitial","setHard","newColor","storeEntries","storeArray","storeSetters","stateCache","calculatedState","addImagePreview","imagesToRemove","labelSupportError","minLoaderDuration","statusLabelLoadImage","statusLabelProcessImage","showProgress","isError","errorCallback","statusLabelButtonClose","statusIconButtonClose","springProps","runSafe","labelClose","iconButtonClose","labelButtonRevert","iconButtonRevert","labelButtonUndo","iconButtonUndo","labelButtonRedo","iconButtonRedo","labelButtonExport","iconButtonExport","imagePreviewData","scrambleOptions","updateScrambledPreview","createPingRouter","pressedKey","fileInput","handleFileChange","browse","xPercentage","yPercentage","confirm","drawState","instance$t","create_fragment$t","hideTextInput","showTextInput","utilPrivateProps","viewPrivateProps","mergeProps","editorProps","pluginProps","propPluginRef","editorEvents","finetuneLabelBrightness","finetuneLabelContrast","finetuneLabelSaturation","finetuneLabelExposure","finetuneLabelTemperature","finetuneLabelGamma","finetuneLabelClarity","finetuneLabelVignette","upperCaseFirstLetter","canCheckFontAvailability","fonts","toLocaleFn","localePrefix","mapToSizeOption","createLocaleMapper","maybeAutoFormatNumberItems","autoFormatNumberItems","toolColorDefault","toolStrokeWidthDefault","toolStrokeColorDefault","toolShapeDefaults","eraser","eraseRadius","cursorStyle","cursorSize","rectangle","createToolStyle","inputMode","isSelection","createToolbarItem","tool","createStrokeScaleOptions","scales","createControlOptions","defaultKey","someFontsAvailableInStack","createSliderControl","FontTestClass","createColorPickerControl","createStrokeWidthControl","optionHideLabel","optionIcon","formattedItems","itemsAsNumbers","itemsMaxValue","itemsMinValue","itemsRange","shapeTitleStrokeWidth","itemOptions","itemValue","itemFraction","createLineControl","titleKey","createShorthandControl","createSizeControl","DefaultShapeOptionFactories","colorOptions","createColorOptions","colors","transparent","white","silver","gray","black","navy","blue","aqua","teal","olive","green","yellow","orange","red","maroon","fuchsia","purple","lineEndStyleOptions","fontFamilyOptions","createFontFamilyOptions","fontStyleOptions","textAlignOptions","strokeWidthOptions","extraSmall","small","mediumSmall","medium","mediumLarge","large","extraLarge","brushSizeOptions","fontSizeOptions","createFontScaleOptions","lineHeightOptions","createLineHeightScaleOptions","sliderNumberFormatter","NumberFormat","minimumFractionDigits","maximumFractionDigits","setSliderOptionalPercentageValue","getSliderOptionalPercentageLabel","TextShadowSliderOptions","TextShadowControl","shapeTitleTextShadowBlur","DefaultShapeControls","labelColor","defaultNumber","defaultPercentage","shapeTitleBackgroundColor","shapeTitleStrokeColor","defaultStrokeWidth","brushSize","shapeTitleBrushSize","createOptionControl","shapeTitleSelectionMode","shapeTitleTextColor","fontFamilies","shapeTitleFontFamily","testId","tester","fontFamilyOption","fontStyle_fontWeight","shapeTitleFontStyle","shapeTitleFontSize","shapeTitleLineHeight","shapeTitleTextAlign","textShadowX_textShadowY_textShadowBlur_textShadowColor","textOutlineWidth_textOutlineColor","shapeTitleTextOutlineWidth","shapeTitleCornerRadius","frameSize","labelSize","frameInset","labelOffset","frameRadius","labelRadius","frameAmount","labelAmount","childWidth","childMaxWidth","parentWidth","testOverflow","instance$s","create_fragment$s","didMount","instance$r","create_fragment$r","get_footer_slot_changes","get_footer_slot_context","get_main_slot_changes","get_main_slot_context","get_header_slot_changes","get_header_slot_context","header_slot_template","header_slot","footer_slot_template","footer_slot","create_if_block_2$4","main_slot_template","main_slot","main_slot_or_fallback","Measure","fallback_block","create_if_block_1$5","hasHeader","hasFooter","instance$q","create_fragment$q","interactable_action","create_if_block$8","valueMinLimited","valueMaxLimited","barSize","baseFraction","isLimited","rangeMask","labelReset","valueLabel","oninputstart","oninputmove","oninputend","nudgeMultiplier","increment","svgSize","svgPadding","createPathCircle","interactionOrigin","interactionRange","interactionReleased","interactionOptions","snap","translatePosition","targetLimited","targetElastic","targetVisual","targetValid","positionToValue","valueToPosition","positionUnsub","positionTarget","svgWidth","indicatorCenter","svgHeight","centerShape","limitedMin","limitedMax","getMask","valueAtPosition","vectorCreateFromSize","instance$p","create_fragment$p","DirectionRectMap","div_aria_label_value","div_data_direction_value","div_data_shape_value","get_each_context$3","create_each_block$3","destroy_block","mappedDirections","$selectionOpacity","$selectionScale","selectionScale","selectionOpacity","currentDirection","isCorner","instance$o","create_fragment$o","gesturable","handleGestureChange","clean","DirectionInversionTable","getTranslationInfo","translateHorizontally","translateVertically","limitRectDirectionTranslation","anchorDirectionCoordinates","anchorPosition","targetDirectionCoordinates","targetPosition","translateToRight","translateToLeft","translateToTop","translateToBottom","translateAxis","inner","innerBounds","outer","outerBounds","getInteractionBounds","pointerLength","pointerLengthMin","pointerLengthMax","pointerLengthLimited","pointerAspectRatio","pointerScaled","limitedBounds","maxSizeLimitedToBounds","rectCreateFromDimensions","minSizeLimited","maxSizeLimited","radToDeg","rangeinput","RangeInput","rangeinput_changes","turns","rotationMin","rotationMax","instance$n","create_fragment$n","instance$m","create_fragment$m","dropdown","create_controls_slot","dropdown_changes","selectedFilterIndex","filterOptions","onfilterchange","getIcon","getCheckmark","mapGroupedOptions","instance$l","create_fragment$l","fixVectorPrecision","rectFixPrecision","floatEquals","getRectLimitedToQuad","rectOrigin","rectTarget","quad","quadFixPrecision","anchorFixed","rectTargetCorner","quadEdges","cornersOrigin","cornersTarget","anchorIndex","getLineIntersectionWithQuad","quadEdge","rayOrigin","cornerDist","intersectionDist","isManipulatingEdge","isRotated","cornerOrigin","cornerTarget","isDiagonal","pX","pY","rectCreateFromBounds","toolbar","Toolbar","create_default_slot_2$3","toolbar_changes","cropLabelButtonRecenter","cropIconButtonRecenter","rectmanipulator","RectManipulator","rectmanipulator_changes","imageinfo","ImageInfo","imageinfo_changes","create_if_block_5$2","create_if_block_4$3","create_if_block_3$3","interactable_function$1","create_default_slot_1$3","create_default_slot$a","imageZoomLevelBase","imageZoomLevelMax","imagerotator","ImageRotator","imagerotator_changes","create_if_block_1$4","create_if_block_2$3","create_if_block$7","updating_root","util_props","create_footer_slot$6","create_main_slot$1","create_header_slot$1","Util","util_root_binding","util_changes","hasCropSelectPresetOptions","cropTools","imageZoomLevelMin","imageSelectionCenteredRect","isImageSelectionDisplayed","isImageSelectionCentered","isResizingSelection","isMaxSelectionRect","isOverlayMode","canZoomToCenter","canCenter","shouldRenderInfoIndicator","shouldRenderImageSelection","shouldRenderImageSelectionRecenterButton","hasPlentyVerticalSpace","shouldRenderPresetSelect","shouldRenderToolbar","couldRenderZoomInput","shouldRenderZoomInput","shouldRenderFooter","footerStyle","$footerOffset","$isActive","$imageSelectionGuides","$utilRectPadded","$imageCropRangeAspectRatio","$imageCropMinSize","$imageCropRange","$imageCropRectOrigin","$imageCropMaxSize","$imageStaticVisualCorners","$imageOutputSize","$selectedPresetIndex","$formattedCropPresetOptions","$elasticityMultiplier","$imageRotationRange","$imageZoomLevelRange","$imageZoomLevel","$recenterOpacity","$recenterOffset","$$unsubscribe_isActive","$$subscribe_isActive","cropImageSelectionCornerStyle","cropWillRenderImageSelectionGuides","interactionFraction","isRotating","cropAutoCenterImageSelectionTimeout","cropEnableZoomMatchImageAspectRatio","cropEnableRotateMatchImageAspectRatio","cropEnableRotationInput","cropEnableZoom","cropEnableZoomInput","cropEnableZoomAutoHide","cropEnableImageSelection","cropEnableInfoIndicator","cropEnableZoomTowardsWheelPosition","cropEnableLimitWheelInputToCropSelection","cropEnableCenterImageSelection","cropEnableButtonRotateLeft","cropEnableButtonRotateRight","cropEnableButtonFlipHorizontal","cropEnableButtonFlipVertical","cropSelectPresetOptions","cropEnableSelectPreset","cropEnableFilterMatchAspectRatio","cropSelectPresetFilter","cropEnableButtonToggleCropLimit","cropWillRenderTools","cropActiveTransformTool","cropMinimizeToolbar","cropInteractionFocus","cropRotationRange","cropMaskOpacity","imageStaticVisualCorners","formattedCropPresetOptions","isCustomCrop","turnAspectRatio","applyCropPresetFilter","hasValidRotatedCropAspectRatio","rotatedImageCropAspectRatio","applyRotation","imageSizeRotated","imageSelectionTranslator","translateStaticSelection","directionTranslation","imageSelectionRectMinSize","imageSelectionRectMaxSize","rectIntended","rectLimitInRect","boundsLimited","boundsIntent","rectLimited","translateImageSelection","applyRectDirectionTranslation","interactionCropRect","interactionCropRectForce","manipulateImage","imageSelectionRectZoomFactor","scaledTranslation","cropIntent","forceTranslation","imageCropRangeAspectRatio","imageZoomLevelRange","rangeMinSize","minZoom","maxZoom","calculateZoomLevel","imageZoomLevel","rangeMaxSize","currentCropWidth","currentCropHeight","currentCropAspectRatio","imageCropMaxRect","resizeImage","gestureOriginCropRect","handleScaleGesture","zoomHistoryTimeoutId","handleRecenterAction","cropAutoCenterImageSelectionTimeoutId","recenterOpacity","recenterOffset","selectedPresetIndex","$cropAspectRatio","matchedOptionValue","outputSizeMatches","aspectRatioMatches","getAspectRatioBySelectedIndex","imageSelectionGuides","cropUniqueId","stageRef","transformToolInitial","transformSelected","footerOffset","cropLabelButtonRotateLeft","cropIconButtonRotateLeft","cropLabelButtonRotateRight","cropIconButtonRotateRight","cropLabelButtonFlipHorizontal","cropIconButtonFlipHorizontal","cropLabelButtonFlipVertical","cropIconButtonFlipVertical","CropPresetList","cropIconSelectPreset","cropLabelSelectPreset","sizeCreateFromArray","optionAspectRatio","maxCropSize","aspectRatioDefined","getSelectionPresetOptionIcon","cropIconCropBoundary","cropLabelCropBoundary","cropLabelCropBoundaryEdge","cropLabelCropBoundaryNone","overlayMarkup","cropLabelTabRotation","cropLabelTabZoom","currentCropRect","isMinSize","isAtMaxCropSize","newCropRect","shouldZoomTowardsWheelPosition","selectionOffset","imageSelectionScale","expandedImageSelection","_plugin_crop","instance$k","create_fragment$k","tagOpen","tagClose","placeholderOpen","placeholderClose","IconCross","CharacterA","_locale_en_gb","labelDefault","labelAuto","labelNone","labelEdit","labelInset","labelSizeExtraSmall","labelSizeSmall","labelSizeMediumSmall","labelSizeMedium","labelSizeMediumLarge","labelSizeLarge","labelSizeExtraLarge","labelButtonCancel","MarkupEditor","shapeLabelButtonSelectSticker","shapeIconButtonSelectSticker","shapeIconButtonFlipHorizontal","shapeIconButtonFlipVertical","shapeIconButtonRemove","shapeIconButtonDuplicate","shapeIconButtonMoveToFront","shapeIconButtonTextLayoutAutoWidth","shapeIconButtonTextLayoutAutoHeight","shapeIconButtonTextLayoutFixedSize","shapeTitleButtonTextLayoutAutoWidth","shapeTitleButtonTextLayoutAutoHeight","shapeTitleButtonTextLayoutFixedSize","shapeTitleButtonFlipHorizontal","shapeTitleButtonFlipVertical","shapeTitleButtonRemove","shapeTitleButtonDuplicate","shapeTitleButtonMoveToFront","shapeLabelInputText","shapeIconInputCancel","shapeIconInputConfirm","shapeLabelInputCancel","shapeLabelInputConfirm","shapeLabelStrokeNone","shapeLabelFontStyleNormal","shapeLabelFontStyleBold","shapeLabelFontStyleItalic","shapeLabelFontStyleItalicBold","shapeTitleLineStart","shapeTitleLineEnd","shapeTitleLineDecorationBar","shapeTitleLineDecorationCircle","shapeTitleLineDecorationSquare","shapeTitleLineDecorationArrow","shapeTitleLineDecorationCircleSolid","shapeTitleLineDecorationSquareSolid","shapeTitleLineDecorationArrowSolid","shapeIconLineDecorationBar","shapeIconLineDecorationCircle","shapeIconLineDecorationSquare","shapeIconLineDecorationArrow","shapeIconLineDecorationCircleSolid","shapeIconLineDecorationSquareSolid","shapeIconLineDecorationArrowSolid","shapeTitleColorTransparent","shapeTitleColorWhite","shapeTitleColorSilver","shapeTitleColorGray","shapeTitleColorBlack","shapeTitleColorNavy","shapeTitleColorBlue","shapeTitleColorAqua","shapeTitleColorTeal","shapeTitleColorOlive","shapeTitleColorGreen","shapeTitleColorYellow","shapeTitleColorOrange","shapeTitleColorRed","shapeTitleColorMaroon","shapeTitleColorFuchsia","shapeTitleColorPurple","shapeTitleTextOutline","shapeTitleTextShadow","shapeTitleTextAlignLeft","shapeTitleTextAlignCenter","shapeTitleTextAlignRight","shapeIconTextAlignLeft","shapeIconTextAlignCenter","shapeIconTextAlignRight","shapeLabelToolMove","shapeLabelToolView","shapeLabelToolSharpie","shapeLabelToolEraser","shapeLabelToolPath","shapeLabelToolRectangle","shapeLabelToolEllipse","shapeLabelToolArrow","shapeLabelToolLine","shapeLabelToolText","shapeLabelToolPreset","shapeIconToolView","shapeIconToolMove","shapeIconToolSharpie","shapeIconToolEraser","shapeIconToolPath","shapeIconToolRectangle","shapeIconToolEllipse","shapeIconToolArrow","shapeIconToolLine","shapeIconToolText","shapeIconToolPreset","shapeLabelSelectionModeNew","shapeLabelSelectionModeAdd","shapeLabelSelectionModeSubtract","shapeLabelToolSelectionBrush","shapeLabelToolSelectionLassoo","shapeLabelToolSelectionRectangle","shapeLabelToolSelectionEllipse","shapeIconSelectionModeNew","shapeIconSelectionModeAdd","shapeIconSelectionModeSubtract","shapeIconToolSelectionBrush","shapeIconToolSelectionLassoo","shapeIconToolSelectionRectangle","shapeIconToolSelectionEllipse","linkAccessors","CSS_CLASS_NAME","getLineEndParams","isSolid","scaledSizeHalf","solid","lineEndStyleArrow","anchorRef","tipOffset","inset","arrowOffset","vectorPerpendicular","tipLeft","tipRight","lineEndStyleCircle","lineEndStyleBar","lineEndStyleSquare","safeFactor","toValue","toPixelValue","frameStyleSolid","frameRound","frameStyleNine","contextWidth","contextHeight","frameImage","frameSlices","contextSize","outset","outsetDouble","shapeCoordinates","x0","y0","x3","y3","ew","eh","overlap","overlapDouble","cornerGeneric","frameStyleLine","frameSizeValue","frameInsetValue","frameOffsetValue","frameStyleEdge","frameStyleHook","frameLength","frameLengthValue","frameStylePolaroid","borderWidth","chinHeight","borderWidthHalf","createDefaultImageReader","createDefaultImageWriter","setPlugins","tools","createToolbar","sharpie","arrow","defaultItems","factoryItems","factoryFn","createShapeStyleControls","plugin_crop","locale_en_gb","markup_editor_locale_en_gb","plugin_crop_locale_en_gb","cropLabel","cropIcon","isBoundToImage","appendEditor","doctype","editor","isDestroyed","updateImagePreview","getCollapsed","attachEditorView","returned","unsubInit","unsubCore","unsubView","handleEventUnsubs","updateImage","storedHistory","storedHistoryIndex","storedState","initEditorView","createDefaultShapePreprocessor","customProcessors","processors","processShape","subshape","createShapePreprocessor$1","shapeReadyToParse","createFrameStyleProcessor","hook","edge","polaroid","nine","createLineEndProcessor","circle","bar","PinturaEditorAbstractComponent","loadstart","loadabort","loaderror","loadprogress","processstart","processabort","processerror","processprogress","writehistory","loadpreview","addshape","selectshape","updateshape","removeshape","markuptap","markupzoom","markuppan","selectstyle","selectutil","selectcontrol","routeEvent","emitter","_initialChanges","imageAspectRatio","imageCropSize","closeEditor","initEditor","dispatchElementEvent","dispatchEditorEvents","PinturaEditorComponent","AngularPinturaModule","ctx_r8","ctx_r13","CameraComponent","onloadend","multipleWebcamsAvailable","numberOfCameras","triggerSnapshot","toggleWebcam","showWebcam","handleInitError","showNextWebcam","directionOrDeviceId","nextWebcam","accessDenied","handleImage","webcamImage","cameraWasSwitched","triggerObservable","nextWebcamObservable","handleModalProcess","fileToDataURL","GetSites","GetSitesSuccess","GetSitesFailed","AddSiteToSelectedSites","site","RemoveSite","SetSelectedSite","SelectAllSites","DeselectAllSites","SitesForInvitationService","getSites","httpUrl","BackOfficeErrorService","SiteState","siteService","boErrorService","selectedSites","getSitesSuccessAction","getSitesFailAction","addSiteToSelectedSites","removeSelectedSites","setSelectedSite","selectAllSites","deselectAllSites","cm","ResetAccreditations","GetAccreditations","GetAccreditationsSuccess","getAccreditationModel","GetAccreditationsFailed","GetAccreditationsByInvitationId","GetAccreditationsByInvitationIdSuccess","GetAccreditationsByInvitationIdFailed","SetSelectedPersonForAccreditation","GetCompletedPersonInvitationWithoutSelected","AddMorePersonsToAccreditationRequest","GetCategories","appFunctionName","GetCategoriesSuccess","categories","GetCategoriesFailed","GetSubCategoriesOfCategory","categoryId","GetSubCategoriesOfCategorySuccess","subcategories","GetSubCategoriesOfCategoryFailed","GetTermsAndConditions","GetTermsAndConditionsSuccess","tac","GetTermsAndConditionsFailed","GetAccreditationTypes","subcategoryId","GetAccreditationTypesSuccess","GetAccreditationTypesFailed","CreateAccreditationRequests","CreateAccreditationRequestsSuccess","CreateAccreditationRequestsFailed","RemoveAccreditationRequests","RemoveAccreditationRequestsSuccess","RemoveAccreditationRequestsFailed","AddAccreditationRequestForDelete","accreditation","ResetFilters","SetPage","pageEvent","GetAccreditationTypesByEvent","GetAccreditationTypesByEventSuccess","GetAccreditationTypesByEventFailed","RetryAccreditationRequestById","RetryAccreditationRequestWentOnError","RetryAccreditationRequestByIdSuccess","RetryAccreditationRequestByIdFailed","ResetAccreditationsFilters","ApplyAccreditationsFilters","accreditationTypes","accreditationStatuses","organizationId","matchDay","SetAccreditationsFiltersApplied","ResetSelectedPersons","AccrReqChangePage","AccrReqByInvitationChangePage","SetLastNameOption","SetFirstNameOption","SetAccreditationIdOption","accrId","SetAccrSort","SetAccrByInvitationSort","ClearAccrByInvitationState","SetInvitationSearchText","ClearMatchDay","ClearMatch","SetMatchDay","SetMatch","SetOrganizationFilter","GetAccrColumnsToDisplay","GetAccrColumnsToDisplaySuccess","configuration","GetAccrColumnsToDisplayFailed","ExportFilteredAccreditations","ExportFilteredAccreditationsFailed","ExportFilteredAccreditationsSuccess","ExportFilteredAccreditationsCompleted","exportReportId","AccreditationService","getAccreditations","paginationToken","searchAfter","accreditationId","getAccreditationsByInvitationId","getPersonCategories","appFunctionId","getPersonSubCategories","getAccreditationTypes","subCategoryId","subEventId","createAccreditation","deleteAccreditations","getAccreditationTypesByEvent","retryAccreditationRequestById","evId","requestId","retryAllAccreditationsRequestInError","RequestAccreditationByInvitationState","accreditationService","accreditationsByInvitation","byInvTotal","totalForEvent","byInvPage","byInvLoading","getAccreditationsListByInvitationId","pageIndex","byInvSort","getAccreditationsByInvitationIdSuccess","accreditations","getAccreditationsByInvitationIdFail","accrReqByInvitationChangePage","setAccrByInvitationSort","clearAccrByInvitationState","$f","GetInvitations","getInvitations","invitationOption","profileOption","accRequestOption","sitesOption","getInvitation","updatePerson","put","updateInvitationSites","createPerson","deleteInvitations","sendRemindersForInvitations","RequestAccreditationAddInvitationState","completedWithoutSelected","completedWithoutSelectedTotal","getCompletedPersonInvitationWithoutSelected","selectedPersons","invitationPage","filterKeyword","invitations","setPage","resetSelectedPersons","createAccreditationRequestsSuccess","addMorePersonsToAccreditationRequest","selectedClone","setSelectedPersonForAccreditation","setInvitationSearchText","um","AuthorizationService","getAppFunctionId","appFunctionMapping","checkUserAuthorizations","isUserBlockedByDeadline","TableCustomizationService","getTablesConfiguration","getTablesDefaultConfiguration","saveTablesConfiguration","ExportInvitationsService","exportFilteredPersons","organisationOption","paramsFilter","exportFilteredAccreditationRequests","exportIdScanningLogs","RequestAccreditationState","authorizationService","tableCustomizationService","exportInvitationsService","datePipe","availableCategories","availableSubCategories","availableAccreditationTypes","availableAccreditationTypesByEvent","selectedForDeletion","downloading","accrFilter","accrReqPage","columnsToDisplay","resetAccreditations","newData","getCategories","appFuncId","getCategoriesSuccess","getCategoriesFailed","getSubCategoriesOfCategory","getSubCategoriesOfCategorySuccess","getSubCategoriesOfCategoryFailed","getAccreditationTypesSuccess","getAccreditationTypesFailed","createAccreditationRequests","numberOfPersons","createAccreditationRequestsFailed","getAccreditationsList","previousPageIndex","accrFirstName","accrLastName","accrSort","statuses","getAccreditationsSuccessAction","getAccreditationsFailAction","removeAccreditations","removeAccreditationsSuccessAction","removeAccreditationsFailAction","addPersonForDelete","changeStatusOfAccreditationRequestTo","accrReqId","accreditationStatus","getAccreditationTypesByEventSuccess","getAccreditationTypesByEventFailed","retryAllAccreditationRequestOnError","retryAccreditationRequestByIdFailed","resetAccreditationsFilters","isApplied","applyAccreditationsFilters","setAccreditationsFiltersApplied","accrReqChangePage","setFirstNameOption","setLastNameOption","setAccreditationIdOption","setAccrSort","setMatchday","setMatch","setOrganizationFilter","getColumnsToDisplay","getColumnsToDisplaySuccess","accreditationsVisibleColumns","getColumnsToDisplayFailed","exportFilteredAccreditations","exportFilteredAccreditationsSuccess","success","downloadingId","exportFilteredAccreditationsFailed","exportFilteredAccreditationsCompleted","LoadOrganizations","SetOrganization","RemoveOrganization","ResetOrganizations","OrganizationService","getOrganisations","OrganizationsState","orgService","organizations","selectedOrganization","GetOrganisations","HttpErrorResponse","available","appendNoDuplicatesOrgs","noTargetOrgAssociated","SetSelectedOrganization","removeSelectedOrganization","currentOrgs","orgsToAppend","newCurrentOrgs","Qm","selectedInvitationNavSide","selectedInvitationDetails","isCreatingPerson","loadForm","loadFormTemplateForBoFailed","setSelectedInvitation","allSites","answersStringified","organization","org","urlEventId","createPersonFailed","createPersonSuccess","updatePersonSuccess","updatePersonFailed","refreshAccreditations","accreditationByInvId","getTitle","firstname","lastname","sidebarClosed","FileValueAccessorDirective","ctx_r12","_r7","matDialog","cameras$","cams","imageUrl$","isHorizontally","dialogCssThemeClass","resetFileInput","openWebCamDialog","removePhoto","emptyImg","checkForEmptyPhoto","emptyPhoto","onFileChange","ProfilePictureComponent","OC","terms$","termsAndConditions$","LegalConditionComponent","K2","_textarea","successful","currentFocus","execCommand","Clipboard","pendingCopy","beginCopy","PendingCopy","UrlShortenerService","getShortenedURL","fullUrl","shortenUrlApi","OriginalUrl","PreviewService","setAsPreview","QRCodeComponent","allowEmptyString","colorDark","colorLight","errorCorrectionLevel","qrdata","qrCodeURL","createQRCode","isValidQrCodeText","qrCodeConfig","QRCode","toCanvas","toSVG","renderElement","qrcElement","dark","centerImageSrc","centerImageHeight","centerImageWidth","canvasElement","centerImage","emitQRCodeURL","svgParentElement","svgString","imgElement","SVGSVGElement","urlSvg","urlSanitized","urlImage","HTMLImageElement","urlResponse","Jve","QRCodeModule","ctx_r18","ctx_r29","ctx_r31","ctx_r33","ctx_r35","ctx_r39","_r37","ctx_r42","ctx_r43","ctx_r44","clipboard","urlShortenerService","previewService","currentLanguage","isMobileDevice","deviceType","qrCodeValue","eventIdParam","getShortUrl","scanningStatusEnum","Closed","scanningResultsSubscription","refreshQrSubscription","scanningStatus$","shortUrl","fileUploadError","fileReaderPromises","currentFile","fileToBase64","imgs","imgbase64","scanningInProgress","fileReader","base64result","isSuccessful","cancelScanning","copyToClipboard","IdScanningDeviceDetectorComponent","Q2","OptionalLabelWrapperComponent","NumberFieldDirective","NumberInputComponent","AzeriKeyboardComponent","ContactDetailsTitleComponent","PersonalDetailsTitleComponent","PictureRequirementsComponent","Http401Interceptor","intercept","AppInitService","apiKey","gigyaApiKey","eventEmitter","getEventEmitter","emmitEvent","emmiter","CustomRouterStateSerializer","CustomTranslateService","urlStore","MatBottomSheetModule","MatDividerModule","MatListModule","MatProgressBarModule","MatSidenavModule","MatSortHeaderIntl","MAT_SORT_HEADER_INTL_PROVIDER","MatSortModule","CdkTableModule","MatTableModule","CdkAccordionModule","MatExpansionModule","NGX_MAT_DATE_FORMATS","isSameTime","getHour","getMinute","getSecond","copyTime","toDate","fromDate","setHour","setMinute","setSecond","compareDateWithTime","showSeconds","setTimeByDefaultValues","defaultTime","NGX_MAT_DATE_RANGE_SELECTION_STRATEGY","DefaultNgxMatCalendarRangeStrategy","currentRange","NgxMatDateAdapter","provider","NgxMatDatetimeInput","SUPPORTS_INTL_API","_valueChange","_datepickerSubscription","matDatetimePickerParse","_getValidDateOrNull","matDatetimePickerMin","matDatetimePickerMax","matDatetimePickerFilter","createMissingDateImplError","ngxMatDatetimePicker","_registerInput","_selectedChanged","MatDatetimePickerInputEvent","ngxMatDatetimePickerFilter","oldDate","getPopupConnectionElementRef","_getThemePalette","i2$2","NgxMatTimepickerModule","NgxMatDatetimePickerModule","DEFAULT_MONTH_NAMES","short","DEFAULT_DATE_NAMES","DEFAULT_DAY_OF_WEEK_NAMES","NgxMatNativeDateAdapter","_clampDate","_stripDirectionalityCharacters","toDateString","setMinutes","setSeconds","i1$2","DEFAULT_DATE_INPUT","hour12","hour","minute","NGX_MAT_NATIVE_DATE_FORMATS","NgxNativeDateModule","NgxMatNativeDateModule","_rollupMoment__default","_rollupMoment","NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS","useUtc","NgxMatMomentAdapter","dateLocale","momentLocaleData","localeData","_localeData","longMonths","shortMonths","monthsShort","dates","longDaysOfWeek","shortDaysOfWeek","weekdaysShort","narrowDaysOfWeek","weekdaysMin","_createMoment","parseFormat","ISO_8601","isMoment","hours","minutes","seconds","strict","utc","NGX_MAT_MOMENT_FORMATS","NgxMomentDateModule","NgxMatMomentModule","CdkTreeModule","MatTreeModule","CUSTOM_DATE_FORMATS","AppMessageModule","NoCacheInterceptor","HttpAddCredentialsInterceptor","setHeaders","HttpSetLastCallInterceptor","DEFAULT_PERFECT_SCROLLBAR_CONFIG","AppModule","appInitService","HTTP_INTERCEPTORS","developmentMode","HttpClientModule","enableProdMode","cookieEnabled","__NgCli_bootstrap_1","bootstrapModule","canPromise","CanvasRenderer","SvgRenderer","renderFunc","argsNum","isLastArgCb","renderCanvas","renderToDataURL","getSymbolSize","posCount","intervals","coords","getRowColCoords","posLength","Mode","ALPHA_NUM_CHARS","ALPHANUMERIC","AlphanumericData","getBitsLength","getLength","bitBuffer","BitBuffer","bufIndex","putBit","getLengthInBits","bit","reservedBit","BitMatrix","reserved","xor","isReserved","encodeUtf8","BYTE","ByteData","ECLevel","EC_BLOCKS_TABLE","EC_CODEWORDS_TABLE","string","fromString","Utils","G15_BCH","getBCHDigit","EXP_TABLE","LOG_TABLE","KANJI","KanjiData","toSJIS","PATTERN000","PATTERN001","PATTERN010","PATTERN011","PATTERN100","PATTERN101","PATTERN110","PATTERN111","maskPattern","Patterns","sameCountCol","sameCountRow","lastCol","lastRow","bitsCol","bitsRow","darkCount","modulesCount","getMaskAt","setupFormatFunc","numPatterns","bestPattern","lowerPenalty","applyMask","penalty","getPenaltyN1","getPenaltyN2","getPenaltyN3","getPenaltyN4","VersionCheck","Regex","ccBits","dataStr","testNumeric","NUMERIC","testAlphanumeric","testKanji","NumericData","remainingNum","GF","p1","p2","coeff","mul","divident","divisor","degree","AlignmentPattern","FinderPattern","MaskPattern","ECCode","ReedSolomonEncoder","Version","FormatInfo","Segments","bits","getEncodedBits","mod","fromArray","estimatedVersion","rawSegments","rawSplit","getBestVersionForData","bestVersion","dataBits","getCharCountIndicator","dataTotalCodewordsBits","getSymbolTotalCodewords","getTotalCodewordsCount","remainingByte","totalCodewords","dataTotalCodewords","ecTotalBlocks","getBlocksCount","blocksInGroup1","totalCodewordsInGroup1","dataCodewordsInGroup1","dataCodewordsInGroup2","ecCount","dcData","ecData","maxDataSize","dataSize","encode","createCodewords","createData","moduleCount","modules","setupFinderPattern","getPositions","setupTimingPattern","setupAlignmentPattern","setupFormatInfo","setupVersionInfo","inc","bitIndex","byteIndex","setupData","getBestMask","toSJISFunc","setToSJISFunction","createSymbol","Polynomial","genPoly","generateECPolynomial","paddedData","remainder","buff","numeric","kanji","byte","TEST_KANJI","TEST_NUMERIC","TEST_ALPHANUMERIC","dijkstra","unescape","numSegs","getSegments","alphaNumSegs","byteSegs","kanjiSegs","isKanjiModeEnabled","BYTE_KANJI","s1","s2","modesHint","bestMode","getBestModeForData","seg","buildSingleSegment","segs","getStringByteLength","buildNodes","getSegmentsFromString","graph","table","prevNodeIds","nodeGroup","currentNodeIds","prevNodeId","getSegmentBitsLength","buildGraph","find_path","optimizedSegs","prevSeg","toSJISFunction","CODEWORDS_COUNT","digit","G18_BCH","totalBits","reservedBits","MIXED","usableBits","getReservedBitsCount","ecl","currentVersion","getTotalBitsFromDataArray","getCapacity","getBestVersionForMixedData","getBestVersionForDataLength","qrData","canvasEl","getCanvasElement","getOptions","getImageWidth","qrToImageData","clearCanvas","rendererOpts","attrib","hex","qrcodesize","getColorAttrib","moveBy","newRow","lineLength","svgCmd","qrToPath","svgTag","hexCode","hexValue","hex2rgba","qrSize","getScale","imgData","symbolSize","scaledMargin","palette","posDst","pxColor","equalityCheck","defaultEqualityCheck","lastArgs","lastResult","areArgumentsShallowlyEqual","memoized","memoize","platformRef","getPlatform","compilerOptions","COMPILER_OPTIONS","NgxsBootstrapper","bootstrap$","ReplaySubject","appBootstrapped$","INITIAL_STATE_TOKEN","InitialState","NGXS_STATE_CONTEXT_FACTORY","NGXS_STATE_FACTORY","exhaustMap","ExhaustMapOperator","ExhaustMapSubscriber","hasSubscription","hasCompleted","tryNext","notifyError","CONFIG_MESSAGES","newName","oldName","DispatchOutsideZoneNgxsExecutionStrategy","verifyZoneIsNotNooped","isPlatformServer","runInsideAngular","leave","ZONE_WARNING","ROOT_STATE_TOKEN","FEATURE_STATE_TOKEN","NG_TEST_MODE","NG_DEV_MODE","META_KEY","META_OPTIONS_KEY","SELECTOR_META_KEY","NgxsConfig","defaultsState","selectorOptions","injectContainerState","suppressErrors","compatibility","strictContentSecurityPolicy","executionStrategy","NGXS_EXECUTION_STRATEGY","sources","defaultMetadata","makeRootSelector","getStateGetter","getStoreMetadata","copyOfPaths","compliantPropGetter","fastPropGetter","mappedStore","currentAppState","newAppState","NgxsSimpleChange","isInitialised","allowedTypes","ofActionOperator","mapOperator","mapAction","allowedMap","filterMap","createAllowedActionTypesMap","allowedStatusMap","createAllowedStatusesMap","allowedStatuses","actionType","filterStatus","ngxsExecutionStrategy","sink","InternalNgxsExecutionStrategy","_executionStrategy","_itemQueue","_busyPushingNext","InternalActions","OrderedSubject","ɵInternalActions_BaseFactory","Actions","internalActions$","internalExecutionStrategy","childSubscription","leaveNgxs","funcs","nextArgs","StateStream","PluginManager","_parentManager","_pluginHandlers","registerHandlers","rootPlugins","pluginHandlers","getPluginHandlers","InternalDispatchedActionResults","ɵInternalDispatchedActionResults_BaseFactory","InternalDispatcher","_actions","_actionResults","_pluginManager","_stateStream","_ngxsExecutionStrategy","actionOrActions","dispatchByEvents","dispatchSingle","nextAction","actionResult$","getActionResultStream","createDispatchObservable","deepFreeze","oIsFunction","hasOwnProp","isFrozen","HostEnvironment","isDevMode","isTestMode","ConfigValidator","isIncorrectProduction","isIncorrectDevelopment","verifyDevMode","INCORRECT_PRODUCTION","INCORRECT_DEVELOPMENT","InternalStateOperations","_dispatcher","configValidator","getRootStateOperations","rootStateOperations","ensureStateAndActionsAreImmutable","frozenValue","setStateToTheCurrentWithNew","stateOperations","StateContextFactory","_internalStateOperations","createStateContext","ngxsOnChanges","getStateDiffChanges","stateOperator","setStateValue","patchOperator","existingState","PATCHING_ARRAY","PATCHING_PRIMITIVE","simplePatch","setStateFromOperator","isStateOperator","STATE_NAME","STATE_NAME_PROPERTY","stateNameRegex","stateNameErrorMessage","statesByName","getValidStateMeta","STATE_UNIQUE","STATE_DECORATOR","StoreValidators","StateFactory","_parentFactory","_stateContextFactory","_initialState","_actionsSubscription","_states","_statesByName","_statePaths","getRuntimeSelectorContext","stateFactory","statePaths","propGetter","resolveGetter","getSelectorOptions","localOptions","isObject$1","stateClasses","checkStatesAreValid","newStates","addToStatesMap","stateGraph","findName","stateClass","sortedStates","sorted","visited","visit","dep","topologicalSort","keyToFind","findFullParentPath","nameGraph","nameToState","bootstrappedStores","addRuntimeInfoToMeta","cloneDefaults","hasBeenMountedAndBootstrapped","addAndReturnDefaults","mappedStores","connectActionHandlers","invokeActions","actionMetas","actionMeta","stateContext","statesMap","checkStateNameIsUnique","valueIsBootstrappedInInitialState","LifecycleStateManager","internalStateOperations","stateContextFactory","bootstrapper","ngxsBootstrap","invokeInit","appBootstrapped","invokeBootstrap","firstDiffChange","ngxsOnInit","getStateContext","ngxsAfterBootstrap","selectorOptionsMetaAccessor","SELECTOR_OPTIONS_META_KEY","originalFn","creationMetadata","memoizedFn","selectorMetaData","selectorName","getSelectorMetadata","ensureSelectorMetadata","getExplicitSelectorOptions","selectorMetaDataClone","explicitOptions","getLocalSelectorOptions","setupSelectorMetadata","argumentSelectorFunctions","localSelectorOptions","selectorsToApply","getSelectorsToApply","getRootSelectorFactory","getRuntimeSelectorInfo","rootState","argFn","_internalExecutionStrategy","_stateFactory","initialStateValue","initStateStream","selectorFn","getStoreBoundSelectorFn","selectOnce","makeSelectorFn","defaultStateNotEmpty","SelectFactory","addedStates","ivyEnabledInDevMode$","NgxsRootModule","_select","lifecycleStateManager","ng","_ivyEnabledInDevMode","probe","coreTokens","setIvyEnabledInDevMode","InitState","NgxsFeatureModule","flattenedStates","flattenStates","UpdateState","ngxsTokenProviders","ROOT_OPTIONS","ngxsConfigFactory","appBootstrapListenerFactory","getInitialState","ACTION_DECORATOR","ensureStoreMetadata","UNDECORATED_STATE_IN_IVY","ensureStateClassIsInjectable","inheritedStateClass","optionsWithInheritance","getStateOptions","getName","checkCorrectStateName","mutateMetaData","rawSelector","selectorId","lastCharIndex","removeDollarAtTheEnd","createSelectorFn","SELECT_FACTORY_NOT_CONNECTED","createSelectObservable","SELECTOR_DECORATOR","createSelector","newDescriptor","single_source_shortest_paths","predecessors","costs","closest","cost_of_s_to_u","adjacent_nodes","cost_of_s_to_u_plus_cost_of_e","PriorityQueue","make","cost","extract_shortest_path_from_predecessor_list","default_sorter","StackFrame","FIREFOX_SAFARI_STACK_REGEXP","CHROME_IE_STACK_REGEXP","SAFARI_NATIVE_CODE_REGEXP","parseOpera","parseV8OrIE","parseFFOrSafari","extractLocation","urlLike","_filter","locationParts","_indexOf","parseOpera9","parseOpera11","parseOpera10","lineRE","argsRaw","functionCall","HTMLAnchorElement","webkitURL","download","rel","msSaveOrOpenBlob","autoBom","innerText","safari","FUNC_ERROR_TEXT","HASH_UNDEFINED","PLACEHOLDER","INFINITY","MAX_ARRAY_LENGTH","wrapFlags","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","genTag","mapTag","numberTag","objectTag","promiseTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","reEmptyStringLeading","reEmptyStringMiddle","reEmptyStringTrailing","reEscapedHtml","reUnescapedHtml","reHasEscapedHtml","reHasUnescapedHtml","reEscape","reEvaluate","reInterpolate","reIsDeepProp","reIsPlainProp","rePropName","reRegExpChar","reHasRegExpChar","reTrim","reTrimStart","reTrimEnd","reWrapComment","reWrapDetails","reSplitDetails","reAsciiWord","reEscapeChar","reEsTemplate","reFlags","reIsBadHex","reIsBinary","reIsHostCtor","reIsOctal","reIsUint","reLatin","reNoMatch","reUnescapedString","rsAstralRange","rsComboRange","rsComboMarksRange","rsDingbatRange","rsLowerRange","rsUpperRange","rsVarRange","rsBreakRange","rsMathOpRange","rsAstral","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsMiscLower","rsMiscUpper","rsOptContrLower","rsOptContrUpper","reOptMod","rsModifier","rsOptVar","rsSeq","rsEmoji","rsSymbol","reApos","reComboMark","reUnicode","reUnicodeWord","reHasUnicode","reHasUnicodeWord","contextProps","templateCounter","typedArrayTags","cloneableTags","stringEscapes","freeParseFloat","freeParseInt","freeGlobal","freeSelf","freeExports","freeModule","moduleExports","freeProcess","nodeUtil","binding","nodeIsArrayBuffer","nodeIsDate","isDate","nodeIsMap","isMap","nodeIsRegExp","isRegExp","nodeIsSet","isSet","nodeIsTypedArray","isTypedArray","iteratee","resIndex","baseIndexOf","comparator","initAccum","asciiSize","baseProperty","collection","eachFunc","fromIndex","fromRight","strictIndexOf","baseFindIndex","baseIsNaN","baseSum","arrayMap","strSymbols","chrSymbols","deburrLetter","basePropertyOf","escapeHtmlChar","chr","hasUnicode","unicodeSize","unicodeToArray","asciiToArray","unescapeHtmlChar","pick","arrayProto","objectProto","coreJsData","funcToString","idCounter","maskSrcKey","IE_PROTO","nativeObjectToString","objectCtorString","oldDash","reIsNative","Buffer","allocUnsafe","getPrototype","overArg","objectCreate","spreadableSymbol","isConcatSpreadable","symIterator","symToStringTag","getNative","ctxClearTimeout","ctxNow","ctxSetTimeout","nativeCeil","nativeFloor","nativeGetSymbols","nativeIsBuffer","isBuffer","nativeIsFinite","isFinite","nativeJoin","nativeKeys","nativeMax","nativeMin","nativeNow","nativeParseInt","nativeRandom","nativeReverse","nativeCreate","metaMap","realNames","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","symbolToString","isObjectLike","LazyWrapper","LodashWrapper","wrapperClone","baseCreate","chainAll","__wrapped__","__actions__","__chain__","__index__","__values__","__dir__","__filtered__","__iteratees__","__takeCount__","__views__","__data__","MapCache","ListCache","inherited","isArr","isArg","isArguments","isBuff","isType","skipIndexes","baseTimes","isIndex","baseRandom","shuffleSelf","copyArray","baseClamp","eq","baseAssignValue","objValue","baseEach","copyObject","lower","upper","bitmask","customizer","isDeep","isFlat","isFull","initCloneArray","getTag","isFunc","cloneBuffer","initCloneObject","getSymbolsIn","copySymbolsIn","keysIn","baseAssignIn","getSymbols","copySymbols","baseAssign","Ctor","cloneArrayBuffer","dataView","byteOffset","cloneDataView","cloneTypedArray","regexp","cloneRegExp","symbol","cloneSymbol","initCloneByTag","Stack","stacked","PS","subValue","baseClone","getAllKeysIn","getAllKeys","arrayEach","assignValue","wait","arrayIncludes","isCommon","valuesLength","baseUnary","arrayIncludesWith","cacheHas","SetCache","computed","valuesIndex","lodash","templateSettings","escape","evaluate","variable","baseLodash","Hash","assocIndexOf","getMapData","pairs","LARGE_ARRAY_SIZE","createBaseEach","baseForOwn","baseEachRight","baseForOwnRight","isSymbol","isStrict","isFlattenable","baseFlatten","arrayPush","baseFor","createBaseFor","baseForRight","arrayFilter","castPath","toKey","keysFunc","symbolsFunc","isOwn","unmasked","getRawTag","objectToString","other","arrays","othLength","othIndex","caches","seen","baseGetTag","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","convert","mapToArray","setToArray","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","isPartial","objProps","objLength","skipCtor","othValue","compared","objCtor","othCtor","equalObjects","baseIsEqualDeep","baseIsEqual","matchData","noCustomizer","srcValue","COMPARE_PARTIAL_FLAG","isMasked","baseMatchesProperty","baseMatches","isPrototype","isArrayLike","getMatchData","matchesStrictComparable","baseIsMatch","isKey","isStrictComparable","hasIn","srcIndex","mergeFunc","safeGet","assignMergeValue","isTyped","isArrayLikeObject","X0","toPlainObject","baseMergeDeep","baseMerge","iteratees","orders","getIteratee","comparer","objCriteria","criteria","othCriteria","ordersLength","compareAscending","compareMultiple","baseSortBy","baseMap","baseGet","baseSet","baseIndexOfWith","indexes","baseUnset","setToString","overRest","arraySample","nested","baseSetData","iv","baseSetToString","Vy","constant","retHighest","low","high","mid","baseSortedIndexBy","valIsNaN","valIsNull","valIsSymbol","valIsUndefined","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","setLow","baseToString","createSet","seenIndex","isDrop","baseSlice","arrayReduce","baseUniq","baseDifference","assignFunc","valsLength","stringToPath","castRest","baseRest","typedArray","valIsDefined","valIsReflexive","partials","holders","isCurried","argsIndex","argsLength","holdersLength","leftIndex","leftLength","rangeLength","isUncurried","holdersIndex","rightIndex","rightLength","isNew","initializer","arrayAggregator","baseAggregator","assigner","isIterateeCall","iterable","stringToArray","trailing","castSlice","words","deburr","thisBinding","findIndexFunc","flatRest","prereq","thru","getFuncName","funcName","isLaziable","WRAP_ARY_FLAG","plant","partialsRight","holdersRight","argPos","ary","arity","isAry","isBind","isBindKey","WRAP_CURRY_FLAG","isFlip","createCtor","getHolder","holdersCount","countHolders","composeArgs","composeArgsRight","newHolders","replaceHolders","createRecurry","createHybrid","reorder","toIteratee","baseInverter","operator","baseToNumber","arrayFunc","chars","charsLength","baseRepeat","stringSize","toFinite","baseRange","toNumber","wrapFunc","isCurry","setData","setWrapToString","toInteger","setToPairs","baseToPairs","srcBitmask","newBitmask","WRAP_BIND_FLAG","mergeData","createCurry","createPartial","createBind","customDefaultsMerge","arrLength","arrValue","arraySome","baseGetAllKeys","otherFunc","baseIteratee","isKeyable","baseIsNative","stubArray","hasFunc","isLength","ctorString","isMaskable","stubFalse","otherArgs","oldArray","shortOut","reference","insertWrapDetails","updateWrapDetails","getWrapDetails","lastCalled","stamp","quote","subString","difference","differenceBy","differenceWith","mapped","castArrayLikeObject","baseIntersection","intersectionBy","intersectionWith","pull","pullAll","basePullAll","pullAt","baseAt","basePullAt","union","unionBy","unionWith","unzip","without","baseXor","xorBy","xorWith","zip","zipWith","unzipWith","interceptor","wrapperAt","countBy","createAggregator","createFind","findLast","findLastIndex","arrayEachRight","groupBy","invokeMap","baseInvoke","keyBy","partition","sortBy","baseOrderBy","createWrap","bindKey","lastThis","maxWait","timerId","lastInvokeTime","leading","maxing","timerExpired","invokeFunc","timeSinceLastCall","shouldInvoke","trailingEdge","timeWaiting","remainingWait","isInvoking","leadingEdge","debounced","baseDelay","Cache","overArgs","funcsLength","partial","partialRight","rearg","createRelationalOperation","baseGt","gte","baseIsArguments","baseLt","lte","createAssigner","assignIn","assignInWith","assignWith","propsIndex","propsLength","defaultsDeep","mergeWith","hasPath","baseHasIn","invert","createInverter","invertBy","arrayLikeKeys","baseKeys","nativeKeysIn","isProto","baseKeysIn","omit","CLONE_DEEP_FLAG","customOmitClone","basePickBy","basePick","toPairs","createToPairs","toPairsIn","baseValues","camelCase","createCompounder","word","capitalize","upperFirst","kebabCase","lowerCase","lowerFirst","createCaseFirst","snakeCase","startCase","upperCase","hasUnicodeWord","unicodeWords","asciiWords","attempt","bindAll","methodNames","flow","createFlow","flowRight","methodOf","baseFunctions","over","createOver","overEvery","arrayEvery","overSome","basePropertyDeep","rangeRight","createMathOperation","augend","addend","createRound","divide","dividend","multiply","multiplicand","subtract","minuend","subtrahend","castArray","chunk","compact","cond","conforms","baseConformsTo","baseConforms","curry","curryRight","dropRight","dropRightWhile","baseWhile","dropWhile","toLength","baseFill","baseFilter","flatMapDeep","flatMapDepth","flattenDeep","flattenDepth","flip","fromPairs","functions","functionsIn","initial","mapKeys","mapValues","matchesProperty","mixin","negate","nthArg","baseNth","omitBy","pickBy","orderBy","propertyOf","pullAllBy","pullAllWith","sampleSize","arraySampleSize","baseSampleSize","setWith","shuffle","arrayShuffle","baseShuffle","sortedUniq","baseSortedUniq","sortedUniqBy","spread","takeRight","takeRightWhile","toPath","isArrLike","unary","uniq","uniqBy","uniqWith","unset","baseUpdate","castFunction","updateWith","valuesIn","zipObject","baseZipObject","zipObjectDeep","entriesIn","extendWith","cloneDeep","cloneDeepWith","cloneWith","conformsTo","defaultTo","escapeRegExp","baseEvery","findKey","baseFindKey","findLastKey","forEachRight","forIn","forInRight","forOwn","forOwnRight","baseHas","inRange","baseInRange","isEqualWith","isMatch","isMatchWith","isNative","isNil","isNull","isSafeInteger","isWeakMap","isWeakSet","strictLastIndexOf","baseExtremum","maxBy","mean","baseMean","meanBy","minBy","stubObject","stubString","stubTrue","nth","noConflict","pad","strLength","createPadding","padEnd","radix","floating","temp","baseReduce","reduceRight","arrayReduceRight","runInContext","sample","baseSample","baseSome","sortedIndex","baseSortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sumBy","customDefaultsAssignIn","isEscaping","isEvaluating","importsKeys","importsValues","reDelimiters","escapeValue","interpolateValue","esTemplateValue","evaluateValue","escapeStringChar","times","toLower","toSafeInteger","toUpper","charsStartIndex","charsEndIndex","trimEnd","trimStart","omission","newEnd","each","eachRight","isFilter","takeName","dropName","checkIteratee","isTaker","lodashFunc","retUnwrapped","isLazy","useLazy","isHybrid","isUnwrapped","onlyLazy","chainName","getView","iterLength","takeCount","baseWrapperValue","iterIndex","commit","wrapped","defineLocale","meridiemParse","isPM","meridiem","isLower","longDateFormat","LT","LTS","LL","LLL","LLLL","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","relativeTime","past","hh","MM","dayOfMonthOrdinalParse","ordinal","dow","doy","pluralForm","plurals","pluralize","withoutSuffix","isFuture","weekdaysParseExact","postformat","symbolMap","preparse","numberMap","suffixes","plural","isFormat","relativeTimeWithPlural","period","lastDigit","last2Digits","meridiemHour","monthsShortRegex","monthsParseExact","mutationTable","softMutation","mutation","lastNumber","monthsParse","monthsRegex","minWeekdaysParse","weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","monthsStrictRegex","monthsShortStrictRegex","longMonthsParse","shortMonthsParse","relativeTimeWithMutation","lll","llll","processRelativeTime","ww","monthsNominativeEl","monthsGenitiveEl","momentToFormat","_monthsGenitiveEl","_monthsNominativeEl","calendarEl","mom","_calendarEl","monthsShortDot","invalidDate","numbersPast","numbersFuture","verbalNumber","monthsShortWithDots","monthsShortWithoutDots","weekEndings","eras","since","until","eraYearOrdinalRegex","eraYearOrdinalParse","$0","$1","$2","isUpper","eifelerRegelAppliesToNumber","translateSingular","special","relativeTimeWithSingular","translator","correctGrammaticalCase","wordKey","relativeTimeMr","monthsNominative","monthsSubjective","numbersNouns","numberNoun","hundred","ten","one","numberAsNoun","hm","nominative","accusative","genitive","processHoursFunction","hookCallback","createLocalOrUTC","_pf","unusedTokens","unusedInput","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","rfc2822","weekdayMismatch","_isValid","getParsingFlags","parsedParts","isNowValid","invalidWeekday","_strict","bigHour","createUTC","fun","momentProperties","updateInProgress","_f","_tzm","_isUTC","_offset","copyConfig","updateOffset","Moment","suppressDeprecationWarnings","firstTime","deprecationHandler","deprecations","parentConfig","targetLength","forceSign","absNumber","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","padded","zeroFill","expandFormat","removeFormattingTokens","makeFormatFunction","replaceLongDateFormatTokens","aliases","shorthand","inputObject","normalizedInput","normalizeUnits","priorities","argumentForCoercion","coercedNumber","absFloor","keepTime","set$1","isLeapYear","regexes","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchWord","strictRegex","regexEscape","p3","p4","unescapeFormat","addParseToken","_w","modMonth","addFormatToken","addUnitAlias","addUnitPriority","addRegexToken","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","dayOfMonth","setMonth","shortPieces","longPieces","mixedPieces","cmpLenRev","_monthsRegex","_monthsShortRegex","_monthsStrictRegex","_monthsShortStrictRegex","parseTwoDigitYear","getSetYear","makeGetSet","UTC","fwd","createUTCDate","getUTCDay","resYear","resDayOfYear","dayOfYear","firstWeekOffset","daysInYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","addWeekParseToken","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","minp","shortp","longp","minPieces","_weekdaysRegex","_weekdaysShortRegex","_weekdaysMinRegex","_weekdaysStrictRegex","_weekdaysShortStrictRegex","_weekdaysMinStrictRegex","lowercase","_meridiemParse","hFormat","matchMeridiem","kInput","_isPm","_meridiem","pos1","pos2","getSetHour","globalLocale","baseConfig","locales","localeFamilies","arr1","arr2","minl","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","getLocale","deprecateSimple","parentLocale","loadLocale","mergeConfigs","names","normalizeLocale","commonPrefix","chooseLocale","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","allowTime","dateFormat","timeFormat","tzFormat","configFromStringAndFormat","yearStr","parsedArray","preprocessRFC2822","monthStr","dayStr","hourStr","minuteStr","secondStr","untruncateYear","extractFromRFC2822Strings","weekdayStr","parsedInput","checkWeekday","obsOffset","militaryOffset","numOffset","calculateOffset","setUTCMinutes","getUTCMinutes","currentDate","expectedWeekday","yearToUse","nowValue","_useUTC","currentDateArray","weekYear","weekdayOverflow","curWeek","GG","weekOfYear","createLocal","_week","gg","dayOfYearFromWeeks","_dayOfYear","dayOfYearFromWeekInfo","_nextDay","RFC_2822","skipped","stringLength","totalParsedInputLength","getParseRegexForToken","addTimeToArrayFromToken","isPm","meridiemFixWrap","erasConvertYear","configFromArray","checkOverflow","configFromRFC2822","configFromISO","createInvalid","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configFromStringAndArray","createFromInputFallback","configFromString","normalizeObjectUnits","millisecond","configFromObject","configFromInput","isUTC","isObjectEmpty","prepareConfig","createFromConfig","deprecate","prototypeMin","prototypeMax","moments","ordering","quarters","quarter","weeks","isoWeek","unitHasDecimal","isDurationValid","_milliseconds","_days","_bubble","Duration","utcOffset","offsetFromString","chunkOffset","setTime","getTimezoneOffset","aspNetRegex","isoRegex","diffRes","isDuration","absRound","parseIso","cloneWithOffset","positiveMomentsDifference","momentsDifference","inp","tmp","addSubtract","createDuration","isAdding","createAdder","arrayTest","dataTypeTest","isNumberOrStringArray","objectTest","propertyTest","isMomentInputObject","monthDiff","wholeMonthDiff","newLocaleData","defaultFormat","defaultFormatUtc","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","erasAbbrRegex","abbrPieces","namePieces","narrowPieces","_erasRegex","_erasNameRegex","_erasAbbrRegex","_erasNarrowRegex","weeksTarget","setWeekAll","dayOfYearData","matchEraAbbr","erasNameRegex","erasNarrowRegex","erasParse","_eraYearOrdinalRegex","isoWeekYear","addWeekYearFormatToken","_dayOfMonthOrdinalParse","_ordinalParse","_dayOfMonthOrdinalParseLenient","getSetDayOfMonth","getSetMinute","getSetMillisecond","getSetSecond","parseMs","formats","isMomentInput","isCalendarSpec","sod","startOf","calendarFormat","asFloat","that","zoneDelta","endOf","startOfDate","utcStartOfDate","localStartOfDate","isoWeekday","mod$1","isUtc","formatMoment","humanize","fromNow","toNow","invalidAt","localInput","isBetween","inclusivity","localFrom","localTo","inputMs","isSameOrAfter","isSameOrBefore","parsingFlags","prioritized","unitsObj","getPrioritizedUnits","toObject","keepOffset","inspect","unix","creationData","eraName","eraNarrow","eraAbbr","eraYear","getSetWeekYearHelper","getSetMonth","isoWeeks","weekInfo","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","parseWeekday","parseIsoWeekday","keepLocalTime","keepMinutes","localAdjust","getDateOffset","_changeInProgress","parseZone","tZone","hasAlignedHourOffset","isDST","isUtcOffset","zoneAbbr","zoneName","isDSTShifted","_isDSTShifted","array1","array2","dontConvert","lengthDiff","diffs","compareArrays","proto$1","get$1","localeSorted","_longDateFormat","formatUpper","tok","_invalidDate","_ordinal","preParsePostFormat","_relativeTime","pastFuture","_eras","computeErasParse","_monthsShort","_monthsParseExact","handleStrictParse","computeMonthsParse","firstDayOfYear","shiftWeekdays","_weekdaysMin","_weekdaysShort","_weekdaysParseExact","handleStrictParse$1","_fullWeekdaysParse","computeWeekdaysParse","langData","mathAbs","asMilliseconds","makeAs","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","makeGetter","thresholds","abs$1","totalSign","ymSign","daysSign","hmsSign","proto$2","addSubtract$1","daysToMonths","monthsToDays","monthsFromDays","absCeil","argWithSuffix","argThresholds","withSuffix","posNegDuration","substituteTimeAgo","relativeTime$1","toISOString$1","toIsoString","listMonthsImpl","listWeekdaysImpl","updateLocale","tmpLocale","relativeTimeRounding","roundingFunction","relativeTimeThreshold","myMoment","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","DATE","TIME","TIME_SECONDS","TIME_MS","WEEK","rxjs_1","__export","groupSubject","refCountSubscription","InnerRefCountSubscription","attemptedToUnsubscribe","hasNext","thrownError","VirtualTimeScheduler","AsyncScheduler","SchedulerAction","VirtualAction","maxFrames","POSITIVE_INFINITY","execute","frameTimeFactor","AsyncAction","work","requestAsyncId","sortActions","recycleAsyncId","_execute","TimeoutErrorImpl","callbackFunc","bindCallback","AsyncSubject","innerArgs","canReportError","bindNodeCallback","dispatchError","addHandler","removeHandler","fromEventPattern","retValue","initialStateOrOptions","iterate","resultSelectorOrObservable","initialState","conditionResult","needIterate","trueResult","falseResult","isNumeric","NEVER","onErrorResumeNext","subNext","pred","notPred","subscribeTo","not","RaceOperator","RaceSubscriber","OuterSubscriber","hasFirst","subscriptions","subscribeToResult","_outerValue","outerIndex","resourceFactory","observableFactory","ZipOperator","ZipSubscriber","iterators","StaticArrayIterator","Symbol_iterator","StaticIterator","ZipBufferIterator","stillUnsubscribed","notifyInactive","checkIterators","shouldComplete","_tryresultSelector","ObjectUnsubscribedError","NotificationKind","NEXT","COMPLETE","do","nextOrObserver","undefinedValueNotification","completeNotification","_isScalar","observerOrNext","rxSubscriberSymbol","emptyObserver","toSubscriber","syncErrorThrowable","_trySubscribe","syncErrorThrown","syncErrorValue","promiseCtor","getPromiseCtor","Symbol_observable","operations","pipeFromArray","hostReportError","outerValue","innerIndex","innerSub","scheduleMessage","ObserveOnSubscriber","ObserveOnMessage","windowTime","_events","_infiniteTimeWindow","_windowTime","nextInfiniteTimeWindow","nextTimeWindow","ReplayEvent","_getNow","_trimBufferThenGetEvents","eventsCount","spliceCount","Scheduler","SubjectSubscriber","AnonymousSubject","subscriberIndex","destinationOrNext","SafeSubscriber","_unsubscribeAndRecycle","_parentOrParents","_parentSubscriber","__tryOrSetError","__tryOrUnsub","useDeprecatedSynchronousErrorHandling","wrappedComplete","_ctorUnsubscribe","UnsubscriptionError","flattenUnsubscriptionErrors","teardown","subscriptionIndex","errs","_enable_super_gross_mode_that_will_cause_bad_things","subjectFactory","_refCount","_isComplete","getSubject","ConnectableSubscriber","higherOrderRefCount","connectableObservableDescriptor","connectableProto","connectable","CombineLatestOperator","CombineLatestSubscriber","toRespond","unused","_tryResultSelector","concatAll","emptyScheduled","forkJoinInternal","emitted","scheduled","scheduleArray","subscribeToArray","setupSubscription","sourceObj","isJQueryStyleEventEmitter","isNodeStyleEventEmitter","concurrent","periodOrScheduler","due","CatchOperator","caught","CatchSubscriber","err2","DefaultIfEmptyOperator","DefaultIfEmptySubscriber","keySelector","DistinctUntilChangedOperator","DistinctUntilChangedSubscriber","hasKey","FilterOperator","FilterSubscriber","MapOperator","MapSubscriber","MergeMapOperator","MergeMapSubscriber","ish","RefCountOperator","refCounter","RefCountSubscriber","sharedConnection","subjectOrSubjectFactory","multicast","shareSubjectFactory","configOrBufferSize","useRefCount","shareReplayOperator","TakeOperator","TakeSubscriber","TakeUntilOperator","takeUntilSubscriber","TakeUntilSubscriber","notifierSubscription","seenValue","DoOperator","TapSubscriber","_tapNext","_tapError","_tapComplete","isInteropObservable","scheduleObservable","isPromise","schedulePromise","isIterable","scheduleIterable","errorValue","animationFrameScheduler","animationFrame","nextHandle","RESOLVED","activeHandles","Immediate","findAndClearHandle","clearImmediate","asap","asyncScheduler","queueScheduler","rxSubscriber","ArgumentOutOfRangeErrorImpl","EmptyErrorImpl","ObjectUnsubscribedErrorImpl","UnsubscriptionErrorImpl","subscribeToObservable","subscribeToPromise","subscribeToIterable","outerSubscriber","InnerSubscriber","setFunctionName","setArgs","setFileName","setLineNumber","setColumnNumber","setSource","getFunctionName","getArgs","getLineNumber","_isNumber","getColumnNumber","getSource","_DOM","relativePosition","ɵɵinject","BrowserPlatformLocation","_history","getBaseHrefFromDOM","getDOM","onPopState","onHashChange","supportsState","back","pathEndIdx","platformLocation","_platformLocation","_removeListenerFns","_baseHref","internal","joinWithSlash","includeHash","normalizeQueryParams","externalUrl","platformStrategy","_urlChangeListeners","_platformStrategy","browserBaseHref","stripTrailingSlash","_stripIndexHtml","ev","_stripBaseHref","_notifyUrlChangeListeners","onUrlChange","_urlChangeSubscription","onNext","onThrow","onReturn","Plural","Zero","One","Two","Few","Many","Other","FormStyle","Format","Standalone","TranslationWidth","Narrow","Abbreviated","Wide","Short","FormatWidth","Medium","Long","Full","NumberSymbol","Decimal","Group","PercentSign","PlusSign","MinusSign","Exponential","SuperscriptingExponent","PerMille","TimeSeparator","CurrencyDecimal","CurrencyGroup","getLastDefinedValue","ɵfindLocaleData","ɵLocaleDataIndex","getLocalePluralCase","ɵgetLocalePluralCase","ISO8601_DATE_REGEX","NAMED_FORMATS","DATE_FORMATS_SPLIT","ZoneWidth","ShortGMT","Extended","DateType","FullYear","Month","Hours","Minutes","Seconds","FractionalSeconds","Day","TranslationType","DayPeriods","Days","Months","Eras","timezone","parsedNb","tzHour","tzMin","dateSetter","timeSetter","isoStringToDate","getNamedFormat","dateTimezoneOffset","timezoneToOffset","addDateMinutes","convertTimezoneToLocal","dateFormatter","DATE_FORMATS","formatter","dateStrGetter","dateGetter","weekNumberingYearGetter","weekGetter","timeZoneGetter","getDateFormatter","localeId","getLocaleId","getLocaleDateFormat","getLocaleTimeFormat","shortTime","shortDate","formatDateTime","getLocaleDateTimeFormat","mediumTime","mediumDate","longTime","longDate","fullTime","fullDate","opt_values","digits","minusSign","negWrap","neg","strNum","getDatePart","strMs","formatFractionalSeconds","localeMinus","getLocaleNumberSymbol","padNumber","extended","formStyle","getLocaleMonthNames","getLocaleDayNames","currentHours","currentMinutes","checkFullData","extractTime","getLocaleExtraDayPeriodRules","dayPeriods","getLocaleExtraDayPeriods","afterFrom","beforeTo","amPm","getLocaleDayPeriods","getLocaleEraNames","getDateTranslation","monthBased","nbDaysBefore1stDayOfMonth","thisThurs","getThursdayThisWeek","firstThurs","THURSDAY","getFirstThursdayOfYear","requestedTimezoneOffset","NgLocaleLocalization","NgLocalization","getPluralCategory","cookieStr","eqIndex","cookieName","cookieValue","NgClass","_iterableDiffers","_keyValueDiffers","_ngEl","_iterableDiffer","_keyValueDiffer","_initialClasses","_rawClass","_removeClasses","_applyClasses","ngClass","ɵisListLikeIterable","iterableChanges","_applyIterableChanges","keyValueChanges","_applyKeyValueChanges","forEachAddedItem","record","_toggleClass","forEachChangedItem","forEachRemovedItem","ɵstringify","rawClassVal","ngForOf","even","odd","NgForOf","_viewContainer","_differs","_ngForOf","_ngForOfDirty","_differ","ngForTrackBy","_trackByFn","ngForTemplate","_applyChanges","forEachOperation","adjustedPreviousIndex","currentIndex","previousIndex","NgForOfContext","applyViewChange","ilen","forEachIdentityChange","NgIf","NgIfContext","_thenTemplateRef","_elseTemplateRef","_thenViewRef","_elseViewRef","_updateView","ngIfThen","assertTemplate","ngIfElse","_templateRef","_created","enforceState","created","NgSwitch","_defaultUsed","_caseCount","_lastCaseCheckIndex","_lastCasesMatched","ngSwitch","_ngSwitch","_updateDefaultCases","_addCase","_addDefault","_defaultViews","_matchCase","useDefault","NgSwitchCase","_view","SwitchView","ngSwitchCase","NgSwitchDefault","NgTemplateOutlet","_viewRef","ngTemplateOutletContext","ngTemplateOutlet","createSubscription","updateLatestValue","_promiseStrategy","PromiseStrategy","_subscribableStrategy","SubscribableStrategy","AsyncPipe","_latestValue","_obj","_strategy","_selectStrategy","_updateLatestValue","ɵisSubscribable","invalidPipeArgumentError","UpperCasePipe","DATE_PIPE_DEFAULT_TIMEZONE","DatePipe","defaultTimezone","JsonPipe","PLATFORM_BROWSER_ID","ɵɵdefineInjectable","BrowserViewportScroller","supportsScrolling","elSelected","documentResult","getElementsByName","treeWalker","findAnchorFromDocument","attemptFocus","scrollRestoration","supportScrollRestoration","focusTarget","scrollRestorationDescriptor","getScrollRestorationProperty","normalizedNames","lazyUpdate","lazyInit","maybeSetNormalizedName","lcName","copyFrom","applyUpdate","toDelete","existing","encodeKey","standardEncoding","encodeValue","decodeKey","decodeValue","STANDARD_ENCODING_REGEX","STANDARD_ENCODING_REPLACEMENTS","cloneFrom","encoder","HttpUrlEncodingCodec","fromObject","rawParams","codec","eqIdx","paramParser","appendAll","eKey","HttpParams","valueToString","third","fourth","reportProgress","HttpContext","urlWithParams","qIdx","serializeBody","isFormData","detectContentTypeHeader","setParams","HttpRequest","HttpEventType","Sent","UploadProgress","ResponseHeader","DownloadProgress","User","defaultStatus","defaultStatusText","HttpResponseBase","HttpHeaderResponse","events$","res$","jsonp","callbackParam","addBody","HttpHandler","NoopInterceptor","XSSI_PREFIX","HttpXhrBackend","xhrFactory","detectedType","reqBody","headerResponse","partialFromXhr","responseURL","getResponseUrl","originalBody","sentHeaders","onDownProgress","progressEvent","partialText","onUpProgress","DONE","XSRF_COOKIE_NAME","XSRF_HEADER_NAME","HttpXsrfCookieExtractor","lastCookieString","lastToken","parseCount","cookieString","HttpXsrfInterceptor","tokenService","lcUrl","HttpXsrfTokenExtractor","HttpInterceptingHandler","backend","interceptors","HttpInterceptorHandler","HttpBackend","HttpClientXsrfModule","withOptions","objWithPropertyToExtract","getClosureSafeProperty","overriddenName","newLineIndex","__forward_ref__","forwardRefFn","isForwardRef","formatRuntimeError","renderStringify","injectorName","injectorDetails","RuntimeError","stringifyForError","expected","comparison","getOwnDefinition","NG_PROV_DEF","NG_INJECTABLE_DEF","NG_INJ_DEF","NG_INJECTOR_DEF","ngInjectorDef","Default","Host","Self","_injectImplementation","impl","injectableDef","getInjectableDef","throwProviderNotFoundError","ChangeDetectionStrategy","OnPush","ViewEncapsulation$1","Emulated","ShadowDom","__globalThis","__window","WorkerGlobalScope","_global","EMPTY_OBJ","EMPTY_ARRAY","NG_COMP_DEF","NG_DIR_DEF","NG_PIPE_DEF","NG_MOD_DEF","NG_FACTORY_DEF","NG_ELEMENT_ID","__NG_ELEMENT_ID__","_renderCompCount","componentDefinition","noSideEffects","declaredInputs","providersResolver","onPush","directiveDefs","pipeDefs","setInput","schemas","tView","directiveTypes","feature","pipeTypes","invertObject","extractDirectiveDef","extractPipeDef","getComponentDef","getDirectiveDef","getPipeDef$1","autoRegisterModuleById","declarations","transitiveCompileScopes","scope","ngModuleDef","getNgModuleDef","secondary","newLookup","minifiedKey","publicName","declaredName","ɵɵdefineDirective","ɵɵdefineComponent","pipeDef","throwNotFound","tNode","NgOnChangesFeatureImpl","ngOnChangesSetInput","rememberChangeHistoryAndInvokeOnChangesHook","simpleChangesStore","getSimpleChangesStore","privateName","SIMPLE_CHANGES_STORE","setSimpleChangesStore","previousChange","SimpleChange","ɵɵNgOnChangesFeature","ngInherit","SVG_NAMESPACE","domRendererFactory3","rendererType","getDocument","lView","unwrapRNode","nodeIndex","slotValue","isLView","lContainer","viewOrContainer","instructionState","lFrame","createLFrame","bindingsEnabled","isInCheckNoChangesMode","viewToRestore","contextLView","currentTNode","getCurrentTNodePlaceholderOk","isParent","bindingRootIndex","bindingStartIndex","bindingIndex","currentDirectiveIndex","setCurrentDirectiveIndex","tData","declTNode","parentTNode","parentLView","getDeclarationTNode","allocLFrame","newView","newLFrame","inI18n","currentLFrame","childLFrame","elementDepthCount","currentNamespace","oldLFrame","leaveDI","leaveViewLight","getTNode","directiveStart","directiveEnd","lifecycleHooks","directiveDef","contentHooks","contentCheckHooks","viewHooks","viewCheckHooks","destroyHooks","callHooks","initPhase","currentNodeIndex","nodeIndexLimit","lastNodeIndexFound","callHook","isInitHook","directive","isViewProvider","injectImplementation","resolving","canSeeViewProviders","injectImpl","native","isProc","isProceduralRenderer","attrName","attrVal","isAnimationProp","srcMarker","mergeHostAttribute","markerInsertPosition","dstValue","parentLocation","getParentInjectorViewOffset","parentView","includeViewProviders","nextNgElementId","existingInjectorIndex","getInjectorIndex","firstCreatePass","injectorIndex","insertBloom","blueprint","parentLoc","getParentInjectorLocation","hasParentInjector","parentIndex","getParentInjectorIndex","getParentInjectorView","parentData","declarationViewOffset","lViewCursor","tViewType","bloomHash","bloomAdd","previousInjectImplementation","setInjectImplementation","injectRootLimpMode","notFoundValueOrThrow","tokenId","createNodeInjector","bloomHashBitOrFactory","enterDI","lookupTokenUsingModuleInjector","previousTView","hostTElementNode","shouldSearchParent","bloomHasToken","searchTokensOnInjector","NOT_FOUND","NodeInjector","getCurrentTNode","getLView","currentTView","injectableIdx","locateDirectiveOrProvider","isComponentHost","getNodeInjectable","canAccessViewProviders","isHostSpecialCase","nodeProviderIndexes","providerIndexes","tInjectables","injectablesStart","directivesStart","cptViewProvidersCount","endIndex","providerTokenOrDef","dirDef","isComponentDef","NodeInjectorFactory","isFactory","throwCyclicDependencyError","previousIncludeViewProviders","setIncludeViewProviders","directiveIndex","wrappedOnChanges","preOrderHooks","preOrderCheckHooks","registerPreOrderHooks","injectorView","isFirstHostTNode","_tNode","_lView","getOrCreateInjectable","ownConstructor","ownFactory","getFactoryOf","objectPrototype","resolveForwardRef","getFactoryDef","attrNameToInject","attrsLength","isNameOnlyAttributeMarker","injectAttributeImpl","PARAMETERS","PROP_METADATA","propName","parentClass","metaCtor","makeMetadataCtor","ParamDecoratorFactory","annotationInstance","ParamDecorator","unusedKey","ngMetadataName","annotationCls","additionalProcessing","PropDecoratorFactory","decoratorInstance","_desc","makePropDecorator","isViewQuery","descendants","Query","deepForEach","keyValueArray","keyValueArrayIndexOf","value1","value2","arrayInsert2","middle","_arrayIndexOfSorted","THROW_IF_NOT_FOUND","DI_DECORATOR_FLAG","NG_TEMP_TOKEN_PATH","NEW_LINE","SOURCE","USE_VALUE$1","_currentInjector","former","injectInjectorOnly","getInjectFlag","decorator","attachInjectFlag","makeParamDecorator","policy$1","createScript","createScriptURL","getPolicy$1","SafeValueImpl","getTypeName","actualType","getSanitizationBypassType","trustedHtml","SafeHtmlImpl","trustedStyle","SafeStyleImpl","trustedScript","SafeScriptImpl","trustedUrl","SafeUrlImpl","trustedResourceUrl","SafeResourceUrlImpl","inertDocumentHelper","getInertBodyElement","defaultDoc","inertDocument","inertHtml","inertBodyElement","templateEl","inertBody","stripCustomNsAttrs","elAttrs","SAFE_URL_PATTERN","DATA_URL_PATTERN","sets","VOID_ELEMENTS","tagSet","OPTIONAL_END_TAG_BLOCK_ELEMENTS","OPTIONAL_END_TAG_INLINE_ELEMENTS","VALID_ELEMENTS","URI_ATTRS","SRCSET_ATTRS","VALID_ATTRS","SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS","sanitizedSomething","buf","sanitizeChildren","traverseContent","startElement","endElement","checkClobberedElement","elAttr","_sanitizeUrl","srcset","encodeEntities","DOCUMENT_POSITION_CONTAINED_BY","SURROGATE_PAIR_REGEXP","NON_ALPHANUMERIC_REGEXP","inertBodyHelper","unsafeHtmlInput","InertDocumentHelper","isDOMParserAvailable","DOMParserHelper","getInertBodyHelper","unsafeHtml","mXSSAttempts","parsedHtml","SanitizingHtmlSerializer","getTemplateContent","isTemplateElement","HTML","STYLE","SCRIPT","RESOURCE_URL","getSanitizer","trustedHTMLFromStringBypass","allowSanitizationBypassAndThrow","unwrapSafeValue","_sanitizeHtml","unsafeUrl","MONKEY_PATCH_KEY_NAME","readPatchedData","ERROR_ORIGINAL_ERROR","_console","_findOriginalError","errorLogger","ERROR_LOGGER","defaultErrorLogger","getOriginalError","defaultScheduler","Important","DashCase","tIcuContainerNode","_icuContainerIterate","isLContainer","getNearestLContainer","lNodeToHandle","beforeNode","rNode","nativeAppendChild","nativeInsertBefore","nativeParent","nativeParentNode","nativeRemoveChild","nativeRemoveNode","parentRElement","applyToElementOrContainer","applyView","applyContainer","declarationContainer","movedViews","declarationViewIndex","insertionLContainer","updateTransplantedViewCount","removeIndex","indexInContainer","viewToDetach","declarationLContainer","detachMovedView","removedLView","removeFromArray","removeViewFromContainer","lQueries","rootView","lViewOrLContainer","cleanUpView","firstView","destroyViewTree","toCall","callContext","executeOnDestroys","tCleanup","lCleanup","lastLCleanupIndex","idxOrTargetGetter","useCaptureOrSubIdx","processCleanups","getNativeByTNode","getClosestRElement","_getInsertInFrontOfRNodeWithI18n","childRNode","childTNode","parentRNode","getParentRElement","getInsertInFrontOfRNode","nativeAppendOrInsertBefore","tNodeType","getBeforeNodeForView","elIcuContainerChild","getFirstNativeNode","rNodeOrLContainer","nextRNode","projectionNodes","getProjectionNodes","getLViewParent","componentView","projection","viewIndexInContainer","nextViewIndex","firstTNodeOfView","isProjection","rawSlotValue","attachPatchData","applyNodes","icuContainerIterate","applyProjectionRecursive","projectionNext","tProjectionNode","componentLView","nodeToProjectOrRNodes","componentNode","classToSearch","startingIndex","foundIndex","NG_TEMPLATE_SELECTOR","cssClassToMatch","isProjectionMode","classIndexOf","currentSelector","nodeAttrs","nameOnlyMarkerIdx","getNameOnlyMarkerIndex","skipToNextSelector","hasTagAndTypeMatch","isPositive","selectorAttrValue","isCssClassMatching","attrIndexInNode","findAttrIndexInNode","isInlineTemplate","nodeAttrValue","compareAgainstClassName","bindingsMode","maybeAttrName","matchTemplateAttribute","isNodeMatchingSelector","selectorListLoop","currentSelectorInList","isNegativeMode","currentChunk","valueOrMarker","attrValue","maybeWrapInNotSelector","selectIndexInternal","getTView","getSelectedIndex","checkNoChangesMode","executeCheckHooks","executeInitAndCheckHooks","setSelectedIndex","tStylingRange","queryStartIdx","directiveDefIdx","setCurrentQueryIndex","tHostNode","rendererFactory","resetPreOrderHookFlags","isCurrentTNodeParent","tParent","insertBeforeIndex","directiveStylingLast","propertyBindings","mergedAttrs","localNames","initialInputs","tViews","stylesWithoutHost","residualStyles","classesWithoutHost","residualClasses","classBindings","styleBindings","createTNode","createTNodeAtIndex","getCurrentParentTNode","setCurrentTNode","numSlotsToAlloc","allocIdx","enterView","executeViewQueryFn","templateFn","executeTemplate","staticContentQueries","refreshContentQueries","staticViewQueries","hostLView","renderComponent$1","renderChildComponents","incompleteFirstPass","leaveView","isInCheckNoChangesPass","setBindingIndex","hooksInitPhaseCompleted","incrementInitPhaseFlags","getFirstLContainer","getNextLContainer","movedLView","markTransplantedViewsForRefresh","embeddedLView","embeddedTView","viewAttachedToChangeDetector","refreshView","refreshEmbeddedViews","hostBindingOpCodes","opCode","directiveIdx","bindingRootIndx","hostBindingFn","setBindingRootForHostBindings","processHostBindingOpCodes","refreshComponent","refreshChildComponents","firstUpdatePass","normalExecutionPath","creationModeIsActive","isCreationMode","renderView","prevSelectedIndex","isUpdatePhase","isContentQueryHost","getBindingsEnabled","getOrCreateNodeInjectorForNode","addComponentLogic","setInputsFromAttrs","getComponentLViewByIndex","instantiateAllDirectives","elementIndex","dirIndex","invokeHostBindingsInCreationMode","invokeDirectivesHostBindings","viewData","localRefExtractor","localIndex","createTView","constsOrFactory","initialViewLength","createViewBlueprint","expandoStartIndex","directiveRegistry","pipeRegistry","cleanupFn","getOrCreateLViewCleanup","getOrCreateTViewCleanup","inputAliasMap","propStore","internalName","nativeOnly","dataValue","setInputsForProperty","viewIndex","childComponentLView","markDirtyIfOnPush","mapPropName","localRefs","hasDirectives","isNodeMatchingSelectorList","diPublicInInjector","markAsComponentHost","findDirectiveDefMatches","exportsMap","initTNodeFlags","preOrderHooksFound","preOrderCheckHooksFound","allocExpando","mergeHostAttrs","configureViewWithDirective","saveNameToExportMap","lifeCycleHooks","tViewData","tNodeAttrs","inputsFromAttrs","inputsStore","outputsStore","directiveInputs","generateInitialInputs","generatePropertyAliases","initializeInputAndOutputAliases","cacheMatchingLocalNames","directiveVarsIdx","elementIndx","lastSelectedElementIdx","hostTNode","numberOfDirectives","directiveFactory","nodeInjectorFactory","registerHostBindingOpCodes","getOrCreateTComponentView","addToViewTree","createLView","setElementAttribute","initialInputData","inputsToStore","hostNative","componentHostIdx","refreshContainsDirtyView","componentTView","syncViewWithBlueprint","isRootView","rootContext","readPatchedLView","renderComponentOrTemplate","tickRootContext","viewQueryFn","CLEAN_PROMISE","currentDef","unwrapLView","getNativeByIndex","updateTextNode","writeToHost","concatStringsWithSpace","INJECTOR_SCOPE","NOT_YET","CIRCULAR","NULL_INJECTOR$1","NullInjector","defType","additionalProviders","createInjectorWithoutInjectorInstances","_resolveInjectorDefTypes","R3Injector","getNullInjector","records","injectorDefTypes","dedupStack","processProvider","injectorDef","processInjectorType","makeRecord","assertNotDestroyed","previousInjector","setCurrentInjector","injectableDefInScope","injectableDefOrInjectorDefFactory","injectorErrorName","tokenPath","formatError","NG_TOKEN_PATH","catchInjectorError","defOrWrappedDef","parents","getInjectorDef","isDuplicate","importTypesWithProviders","imported","defProviders","injectorType","ngModuleType","isTypeProvider","isValueProvider","providerToFactory","multiRecord","injectArgs","paramLength","newArray","inheritedInjectableDef","typeName","getInheritedInjectableDef","getUndecoratedInjectableFactory","unwrappedProvider","isFactoryProvider","isExistingProvider","classRef","hasDeps","createInjector","NULL","registerPostOrderHooks","superType","getSuperType","shouldInheritFields","inheritanceChain","superDef","writeableDef","maybeUnwrapEmpty","superHostBindings","inheritHostBindings","superViewQuery","superContentQueries","inheritViewQuery","inheritContentQueries","fillProperties","defData","ɵɵInheritDefinitionFeature","mergeHostAttrsAcrossInheritance","prevViewQuery","prevContentQueries","prevHostBindings","_symbolIterator","isJsObject","getSymbolIterator","exp1","exp2","different","bindingUpdated","nextBindingIndex","elementAttributeInternal","getSelectedTNode","ɵɵattribute","v0","v1","bindingUpdated2","incrementBindingIndex","attrsIndex","localRefsIndex","adjustedIndex","tViewConsts","getOrCreateTNode","getConstant","resolveDirectives","templateFirstCreatePass","comment","createLContainer","isDirectiveHost","createDirectivesInstances","saveResolvedLocalsInData","elementPropertyInternal","ɵɵproperty","isClassBased","createElementNode","computeStaticStyling","elementStart","elementStartFirstCreatePass","setUpAttributes","writeDirectClass","writeDirectStyle","executeContentQueries","setCurrentTNodeAsNotParent","elementEnd","hasClassInput","setDirectiveInputsWhichShadowsStyling","hasStyleInput","ɵɵelementStart","ɵɵelementEnd","elementContainerStartFirstCreatePass","ɵɵelementContainerStart","ɵɵelementContainerEnd","isSubscribable","useCapture","eventTargetResolver","listenerInternal","ɵɵlistener","loadComponentRenderer","getCurrentDirectiveDef","ɵɵsyntheticHostListener","isTNodeDirectiveHost","processOutputs","lCleanupIndex","existingListener","tNodeIdx","cleanupEventName","listenerIdxInLCleanup","findExistingListener","__ngLastListenerFn__","__ngNextListenerFn__","wrapListener","directiveInstance","profiler","wrapWithPreventDefault","markViewDirty","executeListenerWithErrorHandling","nextListenerFn","wrapListenerIn_markDirtyAndPreventDefault","nestingLevel","walkUpViews","nextContextImpl","projectionSlots","wildcardNgContentIndex","ngProjectAsAttrVal","ngProjectAsAttrIdx","getProjectAsAttrValue","isSelectorInSelectorList","projectionHeads","tails","componentChild","slotIndex","matchingProjectionSlotIndex","selectorIndex","applyProjection","ɵɵpropertyInterpolate1","ɵɵpropertyInterpolate","interpolatedValue","interpolation1","tStylingKey","isPrevDir","isClassBinding","tStylingAtIndex","getTStylingRangePrev","getTStylingRangeNext","foundDuplicate","tStyleRangeAtCursor","isStylingMatch","setTStylingRangeNextDuplicate","setTStylingRangePrevDuplicate","tStylingKeyCursor","parserState","textEnd","keyEnd","valueEnd","consumeClassToken","consumeWhitespace","checkStylingProperty","ɵɵstyleProp","ɵɵclassProp","checkStylingMap","keyValueArraySet","classStringParser","resetParserState","parseClassNameNext","parseClassName","getLastParsedKey","stylingFirstUpdatePass","updateStyling","normalizeSuffix","stringParser","hasStylingInputShadow","isInHostBindings","staticPrefix","oldKeyValueArray","newKeyValueArray","oldIndex","oldKey","newKey","setKey","updateStylingMap","styleKeyValueArray","unwrappedValue","toStylingKeyValueArray","isHostBindings","stylingKey","hostDirectiveDef","residual","collectStylingFromTAttrs","collectStylingFromDirectives","templateStylingKey","bindings","getTemplateHeadTStylingKey","setTemplateHeadTStylingKey","collectResidual","wrapInStaticStylingKey","tStylingKeyWithStatic","isHostBinding","tBindings","tmplHead","tmplTail","isKeyDuplicateOfStatic","staticKeyValueArray","toTStylingRange","setTStylingRangeNext","setTStylingRangePrev","markDuplicates","markDuplicateOfResidualStyling","insertTStylingBinding","currentDirective","desiredMarker","currentMarker","tRange","isStylingValuePresent","getTStylingRangeNextDuplicate","findStylingValue","getTStylingRangePrevDuplicate","isProcedural","isImportant","applyStyling","isPrevDirection","rawKey","containsStatics","isStylingMap","valueAtLViewIndex","keyValueArrayGet","textNative","ɵɵtextInterpolate1","ɵɵtextInterpolate","interpolated","textBindingInternal","interpolation2","ɵɵtextInterpolate2","ɵɵhostProperty","ɵɵsyntheticHostProperty","localeEn","LOCALE_DATA","normalizedLocale","getLocaleData","findLocaleData","LocaleDataIndex","PluralCase","common","LocaleId","DayPeriodsFormat","DayPeriodsStandalone","DaysFormat","DaysStandalone","MonthsFormat","MonthsStandalone","FirstDayOfWeek","WeekendRange","DateFormat","TimeFormat","NumberSymbols","NumberFormats","CurrencyCode","CurrencySymbol","CurrencyName","Currencies","ExtraData","DEFAULT_LOCALE_ID","LOCALE_ID$1","lInjectablesBlueprint","resolveProvider","providerFactory","beginIndex","ɵɵdirectiveInject","existingFactoryIndex","registerDestroyHooksIfSupported","existingProvidersFactoryIndex","existingViewProvidersFactoryIndex","doesProvidersFactoryExist","doesViewProvidersFactoryExist","componentProviders","multiFactoryAdd","multiFactory","multiViewProvidersFactoryResolver","multiProvidersFactoryResolver","contextIndex","indexInFactory","providerIsTypeProvider","providerIsClassProvider","isClassProvider","existingCallbacksIndex","isComponentProvider","lData","multiResolve","factories","componentCount","multiProviders","viewProviders","processProvidersFn","ERROR_COMPONENT","noComponentFactoryError","ComponentFactoryResolver$1","_NullComponentFactoryResolver","createElementRef","injectElementRef","Renderer2","nodeAtIndex","getOrCreateRenderer2","injectRenderer2","Sanitizer","NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR","lNode","lViewInAContainer","lViewFirstChildTNode","collectNativeNodes","nodesInSlot","_cdRefInjectingView","_attachedToViewContainer","viewRefs","destroyLView","storeCleanupWithContext","reattach","detectChangesInternal","checkNoChanges","setIsInCheckNoChangesMode","checkNoChangesInternal","attachToViewContainerRef","detachFromAppRef","attachToAppRef","appRef","ViewRef$1","detectChangesInRootView","checkNoChangesInRootView","componentDef","ComponentFactory","nonMinified","templateName","SCHEDULER","ComponentFactory$1","stringifyCSSSelector","isBoundToModule","toRefArray","projectableNodes","rootSelectorOrNode","rootViewInjector","createChainedInjector","hostRenderer","elementName","hostRNode","elementOrSelector","rElement","locateHostElement","getNamespace","rootFlags","playerHandler","createRootContext","rootTView","rootLView","tElementNode","viewRenderer","createRootComponentView","extractAttrsAndClassesFromSelector","nodesforSlot","hostFeatures","rootTNode","instantiateRootComponent","createRootComponent","LifecycleHooksFeature","ComponentRef","_rootLView","RootViewRef","NgModuleRef$1","_bootstrapComponents","destroyCbs","maybeUnwrapFn","_r3Injector","injectFlags","NgModuleFactory$1","moduleType","incoming","assertSameOrNotExisting","recurse","registerNgModuleType","slotOffset","pureFn","pureFunction1Internal","getBindingRoot","pureFunction2Internal","exp3","bindingRoot","bindingUpdated3","updateBinding","getPureFunctionReturnValue","pureFunction3Internal","returnValueIndex","lastReturnValue","pipeName","getPipeDef","pipeFactory","pipeInstance","isPure","v2","isAsync","__isAsync","nextFn","errorFn","completeFn","_wrapInTimeout","_results","_emitDistinctChangesOnly","_changesDetected","_changes","symbolIterator","resultsTree","identityAccessor","newResultFlat","valueA","valueB","arrayEquals","setDirty","injectTemplateRef","ViewEngineTemplateRef","R3TemplateRef","_declarationLView","_declarationTContainer","declarationViewLQueries","createTemplateRef","injectViewContainerRef","createContainerRef","VE_ViewContainerRef","R3ViewContainerRef","_lContainer","_hostTNode","_hostLView","getViewRefs","componentFactoryOrType","indexOrOptions","ngModuleRef","isComponentFactory","contextInjector","prevIdx","prevLContainer","prevVCRef","adjustedIdx","_adjustIndex","containerLength","addToArray","declaredComponentLView","insertedLContainer","trackMovedView","insertView","parentNativeNode","addViewToContainer","getOrCreateViewRefs","viewRefsArr","detachedView","commentNode","nativeNextSibling","queryList","LQuery_","tQueries","noOfInheritedQueries","viewLQueries","tQuery","getByIndex","indexInDeclarationView","LQueries_","dirtyQueriesWithMatches","getTQuery","queriesForTemplateRef","childQueryIndex","tqueryClone","TQueries_","tquery","crossesNgTemplate","_appliesToNextNode","_declarationNodeIndex","isApplyingToNode","matchTNode","addMatch","TQuery_","declarationNodeIdx","matchTNodeWithReadOption","getIdxOfMatchingSelector","nodeMatchIdx","directiveOrProviderIdx","matchIdx","matchingIdx","createResultByTNodeType","createSpecialToken","queryIndex","lQuery","tQueryMatches","matchedNodeIdx","createResultForNode","lViewResults","materializeViewResults","collectQueryResults","embeddedLViews","getCurrentQueryIndex","unwrapElementRef","createTQuery","TQueryMetadata_","createLQuery","tViewContentQueries","saveContentQueryAndDirectiveIndex","bindingPropertyName","hostPropertyName","appInits","runInitializers","asyncInitPromises","initResult","observableAsPromise","APP_ID_RANDOM_PROVIDER","_randomChar","Console","DEFAULT_CURRENCY_CODE","ngModuleFactory","componentFactories","compileModuleSync","compileModuleAndAllComponentsSync","declaration","ModuleWithComponentFactories","compileModuleAndAllComponentsAsync","clearCache","clearCacheFor","getModuleId","Zone","enableLongStackTrace","shouldCoalesceEventChangeDetection","shouldCoalesceRunChangeDetection","hasPendingMacrotasks","hasPendingMicrotasks","onUnstable","assertZonePatched","_nesting","_outer","_inner","TaskTrackingZoneSpec","longStackTraceZoneSpec","lastRequestAnimationFrameId","nativeRequestAnimationFrame","nativeCancelAnimationFrame","unpatchedRequestAnimationFrame","__symbol__","unpatchedCancelAnimationFrame","getNativeRequestAnimationFrame","delayChangeDetectionForEventsDelegate","isCheckStableRunning","fakeTopEventTask","scheduleEventTask","updateMicroTaskStatus","checkStable","delayChangeDetectionForEvents","isAngularZone","onInvokeTask","applyThis","applyArgs","onLeave","onInvoke","onHasTask","hasTaskState","hasTask","_hasPendingMicrotasks","microTask","macroTask","onHandleError","forkInnerZoneWithAngularBehavior","isInAngularZone","runTask","EMPTY_PAYLOAD","cancelTask","_pendingCount","_isZoneStable","_didWork","taskTrackingZone","_watchAngularEvents","assertNotInAngularZone","_runCallbacksIfReady","increasePendingRequestCount","decreasePendingRequestCount","doneCb","getPendingTasks","updateCb","macroTasks","creationLocation","addCallback","getPendingRequestCount","findProviders","using","exactMatch","TestabilityRegistry","_applications","_testabilityGetter","registerApplication","unregisterApplication","unregisterAllApplications","_NoopGetTestability","ALLOW_MULTIPLE_PLATFORMS","parentPlatformFactory","extraProviders","injectedProviders","PlatformRef","inits","createPlatform","requiredToken","assertPlatform","_modules","_destroyListeners","bootstrapModuleFactory","moduleFactory","ngZoneOption","extra","NoopNgZone","ngZoneEventCoalescing","ngZoneRunCoalescing","getNgZone","ngZoneInjector","moduleRef","exceptionHandler","_callAndReportToErrorHandler","initStatus","assertDefined","setLocaleId","_moduleDoBootstrap","optionsReducer","compileNgModuleFactory","ngDoBootstrap","_exceptionHandler","_initStatus","_bootstrapListeners","_views","_runningTick","_stable","_onMicrotaskEmptySubscription","isCurrentlyStable","stableSub","unstableSub","assertInAngularZone","merge$1","componentOrFactory","cf","compRef","testabilityRegistry","_loadComponent","viewCount","_devMode","_runModeLocked","injectChangeDetectorRef","isPipe","createViewRef","isListLikeIterable","trackByFn","DefaultIterableDiffer","trackByIdentity","_linkedRecords","_unlinkedRecords","_previousItHead","_itHead","_itTail","_additionsHead","_additionsTail","_movesHead","_movesTail","_removalsHead","_removalsTail","_identityChangesHead","_identityChangesTail","forEachItem","nextIt","nextRemove","addRemoveOffset","moveOffsets","getPreviousIndex","adjPreviousIndex","_nextRemoved","localMovePreviousIndex","localCurrentIndex","forEachPreviousItem","_nextPrevious","_nextAdded","forEachMovedItem","_nextMoved","_nextIdentityChange","_reset","itemTrackBy","mayBeDirty","trackById","_verifyReinsertion","_addIdentityChange","_mismatch","iterateListLike","_truncate","isDirty","previousRecord","_prev","_remove","_reinsertAfter","_moveAfter","_addAfter","IterableChangeRecord_","reinsertRecord","_addToMoves","nextRecord","_addToRemovals","_unlink","prevRecord","_prevRemoved","_insertAfter","_DuplicateMap","toIndex","_prevDup","_nextDup","_head","_tail","atOrAfterIndex","duplicates","_DuplicateItemRecordList","recordList","moveOffset","DefaultKeyValueDiffer","_records","_mapHead","_appendAfter","_previousMapHead","_changesHead","_changesTail","_nextChanged","_forEach","_maybeAddToChanges","_getOrCreateRecordForKey","_insertBeforeOrAppend","KeyValueChangeRecord_","_addToAdditions","_addToChanges","IterableDiffers","DefaultIterableDifferFactory","copied","defaultIterableDiffersFactory","getTypeNameForDebugging","DefaultKeyValueDifferFactory","defaultKeyValueDiffersFactory","kv","keyValDiff","defaultIterableDiffers","defaultKeyValueDiffers","APPLICATION_MODULE_PROVIDERS","$localize","ɵɵdefineNgModule","ɵɵdefineInjector"],"sources":["./projects/app-bo/src/app/models/heading-info.model.ts","./projects/app-bo/src/app/store/actions/config.actions.ts","./projects/app-bo/src/app/services/config.service.ts","./projects/app-bo/src/app/store/states/config.state.ts","./projects/app-fo/src/app/services/config.service.ts","./projects/app-fo/src/app/store/actions/config.actions.ts","./projects/app-fo/src/app/store/states/config.state.ts","./node_modules/@angular/platform-browser/fesm2015/platform-browser.mjs","./node_modules/rxjs/_esm2015/internal/operators/switchMap.js","./node_modules/rxjs/_esm2015/internal/operators/startWith.js","./node_modules/rxjs/_esm2015/internal/operators/scan.js","./node_modules/rxjs/_esm2015/internal/operators/takeLast.js","./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js","./node_modules/rxjs/_esm2015/internal/operators/first.js","./node_modules/rxjs/_esm2015/internal/operators/finalize.js","./node_modules/@angular/router/fesm2015/router.mjs","./node_modules/rxjs/_esm2015/internal/operators/last.js","./node_modules/rxjs/_esm2015/internal/operators/pairwise.js","./projects/shared/services/history-back.service.ts","./projects/shared/app-message/app-message.actions.ts","./projects/shared/app-message/app-message.state.ts","./node_modules/promise-polyfill/src/index.js","./node_modules/promise-polyfill/src/finally.js","./node_modules/promise-polyfill/src/allSettled.js","./node_modules/@elastic/apm-rum-core/dist/es/common/polyfills.js","./node_modules/@elastic/apm-rum-core/dist/es/common/utils.js","./node_modules/@elastic/apm-rum-core/dist/es/common/url.js","./node_modules/@elastic/apm-rum-core/dist/es/common/constants.js","./node_modules/@elastic/apm-rum-core/dist/es/common/context.js","./node_modules/@elastic/apm-rum-core/dist/es/common/truncate.js","./node_modules/@elastic/apm-rum-core/dist/es/error-logging/error-logging.js","./node_modules/@elastic/apm-rum-core/dist/es/error-logging/stack-trace.js","./node_modules/@elastic/apm-rum-core/dist/es/common/queue.js","./node_modules/@elastic/apm-rum-core/dist/es/common/ndjson.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/patch-utils.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/span-base.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/span.js","./node_modules/@elastic/apm-rum-core/dist/es/state.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/capture-navigation.js","./node_modules/@elastic/apm-rum-core/dist/es/common/compress.js","./node_modules/@elastic/apm-rum-core/dist/es/common/apm-server.js","./node_modules/@elastic/apm-rum-core/dist/es/common/throttle.js","./node_modules/@elastic/apm-rum-core/dist/es/common/event-handler.js","./node_modules/@elastic/apm-rum-core/dist/es/common/config-service.js","./node_modules/@elastic/apm-rum-core/dist/es/common/logging-service.js","./node_modules/@elastic/apm-rum-core/dist/es/common/service-factory.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/event-target-patch.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/index.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/xhr-patch.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/fetch-patch.js","./node_modules/@elastic/apm-rum-core/dist/es/common/patching/history-patch.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/performance-monitoring.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/breakdown.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/transaction.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/metrics.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/transaction-service.js","./node_modules/@elastic/apm-rum-core/dist/es/bootstrap.js","./node_modules/@elastic/apm-rum/dist/es/apm-base.js","./node_modules/@elastic/apm-rum-core/dist/es/common/instrument.js","./node_modules/@elastic/apm-rum/dist/es/index.js","./node_modules/@elastic/apm-rum-core/dist/es/performance-monitoring/index.js","./node_modules/@elastic/apm-rum-core/dist/es/error-logging/index.js","./node_modules/@elastic/apm-rum-core/dist/es/index.js","./projects/shared/services/apm-rum/apm-service.ts","./node_modules/@elastic/apm-rum-core/dist/es/common/after-frame.js","./projects/shared/services/apm-rum/error-handler.ts","./projects/shared/services/apm-rum/index.ts","./node_modules/rxjs/_esm2015/internal/operators/toArray.js","./node_modules/@ngx-translate/core/fesm2015/ngx-translate-core.js","./node_modules/rxjs/_esm2015/internal/operators/reduce.js","./node_modules/@angular/cdk/fesm2015/coercion.mjs","./node_modules/rxjs/_esm2015/internal/operators/audit.js","./node_modules/rxjs/_esm2015/internal/operators/auditTime.js","./node_modules/@angular/cdk/fesm2015/platform.mjs","./node_modules/@angular/cdk/fesm2015/bidi.mjs","./node_modules/@angular/cdk/fesm2015/scrolling.mjs","./node_modules/@angular/cdk/fesm2015/portal.mjs","./node_modules/rxjs/_esm2015/internal/operators/takeWhile.js","./node_modules/@angular/cdk/fesm2015/keycodes.mjs","./node_modules/@angular/cdk/fesm2015/overlay.mjs","./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js","./node_modules/rxjs/_esm2015/internal/operators/skip.js","./node_modules/@angular/cdk/fesm2015/observers.mjs","./node_modules/@angular/cdk/fesm2015/a11y.mjs","./node_modules/@angular/animations/fesm2015/animations.mjs","./node_modules/@angular/animations/fesm2015/browser.mjs","./node_modules/@angular/platform-browser/fesm2015/animations.mjs","./node_modules/@angular/material/fesm2015/core.mjs","./node_modules/@angular/material/fesm2015/button.mjs","./node_modules/@angular/cdk/fesm2015/layout.mjs","./node_modules/@angular/material/fesm2015/snack-bar.mjs","./node_modules/@angular/material/fesm2015/icon.mjs","./projects/shared/app-message/snackbar/snackbar.component.html","./projects/shared/app-message/snackbar/snackbar.component.ts","./projects/shared/app-message/app-message.service.ts","./projects/app-fo/src/app/services/theme.service.ts","./projects/app-fo/src/app/app.component.ts","./projects/app-fo/src/app/app.component.html","./node_modules/@angular/forms/fesm2015/forms.mjs","./node_modules/@angular/cdk/fesm2015/collections.mjs","./node_modules/@angular/material/fesm2015/radio.mjs","./node_modules/@angular/material/fesm2015/card.mjs","./node_modules/@angular/material/fesm2015/checkbox.mjs","./node_modules/@angular/material/fesm2015/form-field.mjs","./node_modules/@angular/material/fesm2015/chips.mjs","./node_modules/@angular/cdk/fesm2015/text-field.mjs","./node_modules/@angular/material/fesm2015/input.mjs","./node_modules/@angular/material/fesm2015/datepicker.mjs","./node_modules/@angular/material/fesm2015/dialog.mjs","./node_modules/@angular/material/fesm2015/grid-list.mjs","./node_modules/rxjs/_esm2015/internal/operators/delay.js","./node_modules/rxjs/_esm2015/internal/util/isDate.js","./node_modules/@angular/material/fesm2015/menu.mjs","./node_modules/@angular/material/fesm2015/progress-spinner.mjs","./node_modules/@angular/material/fesm2015/select.mjs","./node_modules/@angular/material/fesm2015/slide-toggle.mjs","./node_modules/@angular/cdk/fesm2015/stepper.mjs","./node_modules/@angular/material/fesm2015/stepper.mjs","./node_modules/@angular/material/fesm2015/tabs.mjs","./node_modules/@angular/material/fesm2015/tooltip.mjs","./node_modules/@angular/material/fesm2015/paginator.mjs","./projects/shared/modules/paginator-label-overrides.ts","./projects/app-fo/src/app/material.module.ts","tslib","./node_modules/@ngxs/router-plugin/fesm2015/ngxs-router-plugin.js","./node_modules/@ngxs/form-plugin/fesm2015/ngxs-form-plugin.js","./node_modules/@ngxs/devtools-plugin/fesm2015/ngxs-devtools-plugin.js","./node_modules/rxjs/_esm2015/internal/operators/mapTo.js","./node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js","./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","./node_modules/ngx-perfect-scrollbar/dist/ngx-perfect-scrollbar.es5.js","./projects/app-fo/src/app/store/actions/user.actions.ts","./projects/app-fo/src/app/services/authentication.service.ts","./projects/app-fo/src/app/store/states/user.state.ts","./projects/app-fo/src/app/store/actions/form.actions.ts","./projects/shared/store/actions/legal-conditions.actions.ts","./node_modules/ngx-webcam/fesm2015/ngx-webcam.mjs","./projects/shared/models/form.model.ts","./projects/shared/store/actions/profile-picture.actions.ts","./projects/shared/services/geo-info.service.ts","./projects/app-fo/src/app/services/local-storage.service.ts","./projects/app-fo/src/app/services/form.service.ts","./projects/app-fo/src/app/services/form-changes.service.ts","./node_modules/rxjs/_esm2015/internal/operators/pluck.js","./projects/shared/services/post-code-validation.service.ts","./projects/shared/services/form-config-to-formly.service.ts","./projects/app-fo/src/app/services/fo-error.service.ts","./projects/app-fo/src/app/services/legal-conditions.service.ts","./projects/app-fo/src/app/store/states/form.state.ts","./projects/shared/models/image-type.model.ts","./projects/shared/store/states/profile-picture.state.ts","./projects/shared/store/states/legal-conditions.state.ts","./projects/shared/store/actions/document-scanning.actions.ts","./projects/app-bo/src/app/store/actions/form.actions.ts","./projects/shared/models/scanning-status.model.ts","./projects/shared/services/config-resolver.service.ts","./projects/shared/services/device-detector.service.ts","./projects/shared/services/document-scanning.service.ts","./projects/shared/store/states/document-scanning.state.ts","./projects/app-fo/src/app/store/app.states.ts","./projects/app-fo/src/app/components/expired-link-page/expired-link-page.component.ts","./projects/app-fo/src/app/components/expired-link-page/expired-link-page.component.html","./projects/app-fo/src/app/components/fo-closed/fo-closed.component.ts","./projects/app-fo/src/app/components/fo-closed/fo-closed.component.html","./projects/app-fo/src/app/shared/resolvers/activate-invitation.resolver.ts","./projects/app-fo/src/app/components/import-option/import-option.component.html","./projects/app-fo/src/app/components/import-option/import-option.component.ts","./projects/app-fo/src/app/components/import-data/import-data.component.html","./projects/app-fo/src/app/components/import-data/import-data.component.ts","./node_modules/rxjs/_esm2015/internal/operators/skipUntil.js","./projects/shared/services/form-appearance.service.ts","./projects/shared/services/id-scanning-skip-event.service.ts","./node_modules/@ngx-formly/core/node_modules/tslib/tslib.es6.js","./node_modules/@ngx-formly/core/fesm2015/ngx-formly-core.js","./projects/app-fo/src/app/components/form-render/form-render.component.html","./projects/app-fo/src/app/components/form-render/form-render.component.ts","./projects/app-fo/src/app/components/landing/landing.component.ts","./projects/app-fo/src/app/components/landing/landing.component.html","./projects/shared/ng-let.directive.ts","./projects/app-fo/src/app/components/invitation-card/invitation-card.component.html","./projects/app-fo/src/app/components/invitation-card/invitation-card.component.ts","./projects/app-fo/src/app/components/home/home.component.html","./projects/app-fo/src/app/components/home/home.component.ts","./projects/shared/utils/jwt.utils.ts","./projects/shared/services/connection.service.ts","./projects/app-fo/src/app/layouts/layout-default/layout-default.component.html","./projects/app-fo/src/app/layouts/layout-default/layout-default.component.ts","./projects/app-fo/src/app/security/authentication.guard.ts","./projects/app-fo/src/app/components/page-not-found/page-not-found.component.ts","./projects/app-fo/src/app/components/page-not-found/page-not-found.component.html","./projects/app-fo/src/app/shared/guards/redirect-to-home.guard.ts","./projects/app-fo/src/app/security/deadline.guard.ts","./projects/app-fo/src/app/components/server-error-page/server-error-page.component.ts","./projects/app-fo/src/app/components/server-error-page/server-error-page.component.html","./projects/shared/models/id-scanning-log.model.ts","./projects/shared/models/document-scanning.model.ts","./projects/shared/services/translate.service.ts","./node_modules/@microsoft/signalr/dist/esm/ITransport.js","./node_modules/@microsoft/signalr/dist/esm/DefaultReconnectPolicy.js","./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","./node_modules/@microsoft/signalr/dist/esm/HeaderNames.js","./node_modules/@microsoft/signalr/dist/esm/HttpClient.js","./node_modules/@microsoft/signalr/dist/esm/AccessTokenHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/Errors.js","./node_modules/@microsoft/signalr/dist/esm/ILogger.js","./node_modules/@microsoft/signalr/dist/esm/Loggers.js","./node_modules/@microsoft/signalr/dist/esm/Utils.js","./node_modules/@microsoft/signalr/dist/esm/FetchHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/DynamicImports.js","./node_modules/@microsoft/signalr/dist/esm/XhrHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/DefaultHttpClient.js","./node_modules/@microsoft/signalr/dist/esm/AbortController.js","./node_modules/@microsoft/signalr/dist/esm/LongPollingTransport.js","./node_modules/@microsoft/signalr/dist/esm/ServerSentEventsTransport.js","./node_modules/@microsoft/signalr/dist/esm/WebSocketTransport.js","./node_modules/@microsoft/signalr/dist/esm/HttpConnection.js","./node_modules/@microsoft/signalr/dist/esm/TextMessageFormat.js","./node_modules/@microsoft/signalr/dist/esm/HandshakeProtocol.js","./node_modules/@microsoft/signalr/dist/esm/IHubProtocol.js","./node_modules/@microsoft/signalr/dist/esm/Subject.js","./node_modules/@microsoft/signalr/dist/esm/MessageBuffer.js","./node_modules/@microsoft/signalr/dist/esm/HubConnection.js","./node_modules/@microsoft/signalr/dist/esm/JsonHubProtocol.js","./node_modules/@microsoft/signalr/dist/esm/HubConnectionBuilder.js","./projects/shared/services/doc-reader-signalr.service.ts","./projects/shared/services/id-scanning-logs.service.ts","./projects/shared/models/regula-text-result.model.ts","./projects/shared/models/regula-image-result.model.ts","./node_modules/@regulaforensics/vp-frontend-document-components-beta/esm/main.js","./projects/shared/services/regula.service.ts","./projects/shared/components/formly-custom-fields/regula-doc-reader/regula-doc-reader.component.html","./projects/shared/components/formly-custom-fields/regula-doc-reader/regula-doc-reader.component.ts","./projects/shared/components/id-scanning-mobile/id-scanning-mobile.component.html","./projects/app-fo/src/app/app-routing.module.ts","./projects/shared/components/id-scanning-mobile/id-scanning-mobile.component.ts","./projects/shared/components/link-expired/link-expired.component.ts","./projects/shared/components/link-expired/link-expired.component.html","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-form-field.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-input.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-textarea.js","./node_modules/@ngx-formly/core/fesm2015/ngx-formly-core-select.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-radio.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-checkbox.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-multicheckbox.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-select.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material.js","./node_modules/@ngx-formly/material/fesm2015/ngx-formly-material-datepicker.js","./projects/shared/directives/date-formatter.directive.ts","./projects/shared/components/formly-custom-fields/date-input/date-input.component.ts","./projects/shared/components/formly-custom-fields/date-input/date-input.component.html","./projects/shared/components/formly-custom-fields/date-future-input/date-future-input.component.ts","./projects/shared/components/formly-custom-fields/date-future-input/date-future-input.component.html","./node_modules/angular-onscreen-material-keyboard/fesm2015/angular-onscreen-material-keyboard.js","./projects/shared/components/formly-custom-fields/russian-keyboard/russian-keyboard.component.ts","./projects/shared/components/formly-custom-fields/russian-keyboard/russian-keyboard.component.html","./node_modules/@pqina/pintura/pintura.js","./node_modules/@pqina/angular-pintura/fesm2015/pqina-angular-pintura.mjs","./projects/shared/components/formly-custom-fields/camera/camera.component.html","./projects/shared/components/formly-custom-fields/camera/camera.component.ts","./projects/app-bo/src/app/store/actions/sites-for-invitation.actions.ts","./projects/app-bo/src/app/services/sites-for-invitation.service.ts","./projects/app-bo/src/app/services/bo-error.service.ts","./projects/app-bo/src/app/store/states/sites-for-invitation.state.ts","./projects/app-bo/src/app/store/actions/request-accreditation.actions.ts","./projects/app-bo/src/app/services/accreditation.service.ts","./projects/app-bo/src/app/store/states/request-accreditation-by-invitation.state.ts","./projects/app-bo/src/app/store/actions/invitation.actions.ts","./projects/app-bo/src/app/services/form.service.ts","./projects/app-bo/src/app/store/states/request-accreditation-add-invitation.state.ts","./projects/app-bo/src/app/services/authorization.service.ts","./projects/app-bo/src/app/services/table-customization.service.ts","./projects/app-bo/src/app/services/export-invitations.service.ts","./projects/app-bo/src/app/store/states/request-accreditation.state.ts","./projects/app-bo/src/app/store/actions/organizations.actions.ts","./projects/app-bo/src/app/services/organization.service.ts","./projects/app-bo/src/app/store/states/organizations.state.ts","./projects/app-bo/src/app/store/states/form.state.ts","./projects/shared/directives/file-value-accessor.directive.ts","./projects/shared/components/formly-custom-fields/profile-picture/profile-picture.component.html","./projects/shared/components/formly-custom-fields/profile-picture/profile-picture.component.ts","./projects/shared/components/formly-custom-fields/legal-condition/legal-condition.component.html","./projects/shared/components/formly-custom-fields/legal-condition/legal-condition.component.ts","./node_modules/@angular/cdk/fesm2015/clipboard.mjs","./projects/shared/services/url-shortener.service.ts","./projects/shared/services/preview.service.ts","./node_modules/angularx-qrcode/fesm2015/angularx-qrcode.mjs","./projects/shared/components/formly-custom-fields/id-scanning/id-scanning-device-detector.component.html","./projects/shared/components/formly-custom-fields/id-scanning/id-scanning-device-detector.component.ts","./projects/shared/components/formly-custom-wrappers/optional-label-wrapper/optional-label-wrapper.component.html","./projects/shared/components/formly-custom-wrappers/optional-label-wrapper/optional-label-wrapper.component.ts","./projects/shared/directives/number-fields.directive.ts","./projects/shared/components/formly-custom-fields/number-input/number-input.component.ts","./projects/shared/components/formly-custom-fields/number-input/number-input.component.html","./projects/shared/components/formly-custom-fields/azeri-keyboard/azeri-keyboard.component.ts","./projects/shared/components/formly-custom-fields/azeri-keyboard/azeri-keyboard.component.html","./projects/shared/components/formly-custom-fields/contact-details-title/contact-details-title.component.ts","./projects/shared/components/formly-custom-fields/contact-details-title/contact-details-title.component.html","./projects/shared/components/formly-custom-fields/personal-details-title/personal-details-title.component.ts","./projects/shared/components/formly-custom-fields/personal-details-title/personal-details-title.component.html","./projects/shared/components/formly-custom-fields/picture-requirements/picture-requirements.component.ts","./projects/shared/components/formly-custom-fields/picture-requirements/picture-requirements.component.html","./projects/app-fo/src/app/formly/formly-core.config.ts","./projects/app-fo/src/app/security/http401.interceptor.ts","./projects/app-fo/src/app/app-init.service.ts","./projects/shared/store/states/router-state.serializer.ts","./projects/app-fo/src/app/services/translation.service.ts","./node_modules/@angular/material/fesm2015/bottom-sheet.mjs","./node_modules/@angular/material/fesm2015/divider.mjs","./node_modules/@angular/material/fesm2015/list.mjs","./node_modules/@angular/material/fesm2015/progress-bar.mjs","./node_modules/@angular/material/fesm2015/sidenav.mjs","./node_modules/@angular/material/fesm2015/sort.mjs","./node_modules/@angular/cdk/fesm2015/table.mjs","./node_modules/@angular/material/fesm2015/table.mjs","./node_modules/@angular/cdk/fesm2015/accordion.mjs","./node_modules/@angular/material/fesm2015/expansion.mjs","./node_modules/@angular-material-components/datetime-picker/fesm2015/angular-material-components-datetime-picker.mjs","./node_modules/@angular-material-components/moment-adapter/fesm2015/angular-material-components-moment-adapter.mjs","./node_modules/@angular/cdk/fesm2015/tree.mjs","./node_modules/@angular/material/fesm2015/tree.mjs","./projects/app-bo/src/app/material.module.ts","./projects/shared/app-message/app-message.module.ts","./projects/shared/interceptors/no-cache.interceptor.ts","./projects/app-fo/src/app/security/http-add-credentials.interceptor.ts","./projects/app-fo/src/app/security/http-set-last-call.interceptor.ts","./projects/app-fo/src/app/app.module.ts","./projects/app-fo/src/main.ts","./node_modules/@cordobo/qrcode/lib/browser.js","./node_modules/@cordobo/qrcode/lib/can-promise.js","./node_modules/@cordobo/qrcode/lib/core/alignment-pattern.js","./node_modules/@cordobo/qrcode/lib/core/alphanumeric-data.js","./node_modules/@cordobo/qrcode/lib/core/bit-buffer.js","./node_modules/@cordobo/qrcode/lib/core/bit-matrix.js","./node_modules/@cordobo/qrcode/lib/core/byte-data.js","./node_modules/@cordobo/qrcode/lib/core/error-correction-code.js","./node_modules/@cordobo/qrcode/lib/core/error-correction-level.js","./node_modules/@cordobo/qrcode/lib/core/finder-pattern.js","./node_modules/@cordobo/qrcode/lib/core/format-info.js","./node_modules/@cordobo/qrcode/lib/core/galois-field.js","./node_modules/@cordobo/qrcode/lib/core/kanji-data.js","./node_modules/@cordobo/qrcode/lib/core/mask-pattern.js","./node_modules/@cordobo/qrcode/lib/core/mode.js","./node_modules/@cordobo/qrcode/lib/core/numeric-data.js","./node_modules/@cordobo/qrcode/lib/core/polynomial.js","./node_modules/@cordobo/qrcode/lib/core/qrcode.js","./node_modules/@cordobo/qrcode/lib/core/reed-solomon-encoder.js","./node_modules/@cordobo/qrcode/lib/core/regex.js","./node_modules/@cordobo/qrcode/lib/core/segments.js","./node_modules/@cordobo/qrcode/lib/core/utils.js","./node_modules/@cordobo/qrcode/lib/core/version-check.js","./node_modules/@cordobo/qrcode/lib/core/version.js","./node_modules/@cordobo/qrcode/lib/renderer/canvas.js","./node_modules/@cordobo/qrcode/lib/renderer/svg-tag.js","./node_modules/@cordobo/qrcode/lib/renderer/utils.js","./node_modules/@ngxs/store/fesm2015/ngxs-store-internals.js","./node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js","./node_modules/@ngxs/store/fesm2015/ngxs-store.js","./node_modules/dijkstrajs/dijkstra.js","./node_modules/encode-utf8/index.js","./node_modules/error-stack-parser/error-stack-parser.js","./node_modules/file-saver/dist/FileSaver.min.js","./node_modules/lodash/lodash.js","./node_modules/moment/locale/af.js","./node_modules/moment/locale/ar-dz.js","./node_modules/moment/locale/ar-kw.js","./node_modules/moment/locale/ar-ly.js","./node_modules/moment/locale/ar-ma.js","./node_modules/moment/locale/ar-sa.js","./node_modules/moment/locale/ar-tn.js","./node_modules/moment/locale/ar.js","./node_modules/moment/locale/az.js","./node_modules/moment/locale/be.js","./node_modules/moment/locale/bg.js","./node_modules/moment/locale/bm.js","./node_modules/moment/locale/bn.js","./node_modules/moment/locale/bo.js","./node_modules/moment/locale/br.js","./node_modules/moment/locale/bs.js","./node_modules/moment/locale/ca.js","./node_modules/moment/locale/cs.js","./node_modules/moment/locale/cv.js","./node_modules/moment/locale/cy.js","./node_modules/moment/locale/da.js","./node_modules/moment/locale/de-at.js","./node_modules/moment/locale/de-ch.js","./node_modules/moment/locale/de.js","./node_modules/moment/locale/dv.js","./node_modules/moment/locale/el.js","./node_modules/moment/locale/en-au.js","./node_modules/moment/locale/en-ca.js","./node_modules/moment/locale/en-gb.js","./node_modules/moment/locale/en-ie.js","./node_modules/moment/locale/en-il.js","./node_modules/moment/locale/en-in.js","./node_modules/moment/locale/en-nz.js","./node_modules/moment/locale/en-sg.js","./node_modules/moment/locale/eo.js","./node_modules/moment/locale/es-do.js","./node_modules/moment/locale/es-us.js","./node_modules/moment/locale/es.js","./node_modules/moment/locale/et.js","./node_modules/moment/locale/eu.js","./node_modules/moment/locale/fa.js","./node_modules/moment/locale/fi.js","./node_modules/moment/locale/fil.js","./node_modules/moment/locale/fo.js","./node_modules/moment/locale/fr-ca.js","./node_modules/moment/locale/fr-ch.js","./node_modules/moment/locale/fr.js","./node_modules/moment/locale/fy.js","./node_modules/moment/locale/ga.js","./node_modules/moment/locale/gd.js","./node_modules/moment/locale/gl.js","./node_modules/moment/locale/gom-deva.js","./node_modules/moment/locale/gom-latn.js","./node_modules/moment/locale/gu.js","./node_modules/moment/locale/he.js","./node_modules/moment/locale/hi.js","./node_modules/moment/locale/hr.js","./node_modules/moment/locale/hu.js","./node_modules/moment/locale/hy-am.js","./node_modules/moment/locale/id.js","./node_modules/moment/locale/is.js","./node_modules/moment/locale/it-ch.js","./node_modules/moment/locale/it.js","./node_modules/moment/locale/ja.js","./node_modules/moment/locale/jv.js","./node_modules/moment/locale/ka.js","./node_modules/moment/locale/kk.js","./node_modules/moment/locale/km.js","./node_modules/moment/locale/kn.js","./node_modules/moment/locale/ko.js","./node_modules/moment/locale/ku.js","./node_modules/moment/locale/ky.js","./node_modules/moment/locale/lb.js","./node_modules/moment/locale/lo.js","./node_modules/moment/locale/lt.js","./node_modules/moment/locale/lv.js","./node_modules/moment/locale/me.js","./node_modules/moment/locale/mi.js","./node_modules/moment/locale/mk.js","./node_modules/moment/locale/ml.js","./node_modules/moment/locale/mn.js","./node_modules/moment/locale/mr.js","./node_modules/moment/locale/ms-my.js","./node_modules/moment/locale/ms.js","./node_modules/moment/locale/mt.js","./node_modules/moment/locale/my.js","./node_modules/moment/locale/nb.js","./node_modules/moment/locale/ne.js","./node_modules/moment/locale/nl-be.js","./node_modules/moment/locale/nl.js","./node_modules/moment/locale/nn.js","./node_modules/moment/locale/oc-lnc.js","./node_modules/moment/locale/pa-in.js","./node_modules/moment/locale/pl.js","./node_modules/moment/locale/pt-br.js","./node_modules/moment/locale/pt.js","./node_modules/moment/locale/ro.js","./node_modules/moment/locale/ru.js","./node_modules/moment/locale/sd.js","./node_modules/moment/locale/se.js","./node_modules/moment/locale/si.js","./node_modules/moment/locale/sk.js","./node_modules/moment/locale/sl.js","./node_modules/moment/locale/sq.js","./node_modules/moment/locale/sr-cyrl.js","./node_modules/moment/locale/sr.js","./node_modules/moment/locale/ss.js","./node_modules/moment/locale/sv.js","./node_modules/moment/locale/sw.js","./node_modules/moment/locale/ta.js","./node_modules/moment/locale/te.js","./node_modules/moment/locale/tet.js","./node_modules/moment/locale/tg.js","./node_modules/moment/locale/th.js","./node_modules/moment/locale/tk.js","./node_modules/moment/locale/tl-ph.js","./node_modules/moment/locale/tlh.js","./node_modules/moment/locale/tr.js","./node_modules/moment/locale/tzl.js","./node_modules/moment/locale/tzm-latn.js","./node_modules/moment/locale/tzm.js","./node_modules/moment/locale/ug-cn.js","./node_modules/moment/locale/uk.js","./node_modules/moment/locale/ur.js","./node_modules/moment/locale/uz-latn.js","./node_modules/moment/locale/uz.js","./node_modules/moment/locale/vi.js","./node_modules/moment/locale/x-pseudo.js","./node_modules/moment/locale/yo.js","./node_modules/moment/locale/zh-cn.js","./node_modules/moment/locale/zh-hk.js","./node_modules/moment/locale/zh-mo.js","./node_modules/moment/locale/zh-tw.js","./node_modules/moment/moment.js","./node_modules/rxjs-compat/Subscription.js","./node_modules/rxjs/Subscription.js","./node_modules/rxjs/_esm2015/internal/operators/groupBy.js","./node_modules/rxjs/_esm2015/internal/AsyncSubject.js","./node_modules/rxjs/_esm2015/internal/scheduler/VirtualTimeScheduler.js","./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js","./node_modules/rxjs/_esm2015/internal/observable/bindCallback.js","./node_modules/rxjs/_esm2015/internal/observable/bindNodeCallback.js","./node_modules/rxjs/_esm2015/internal/observable/fromEventPattern.js","./node_modules/rxjs/_esm2015/internal/observable/generate.js","./node_modules/rxjs/_esm2015/internal/observable/iif.js","./node_modules/rxjs/_esm2015/internal/observable/interval.js","./node_modules/rxjs/_esm2015/internal/observable/never.js","./node_modules/rxjs/_esm2015/internal/observable/onErrorResumeNext.js","./node_modules/rxjs/_esm2015/internal/observable/pairs.js","./node_modules/rxjs/_esm2015/internal/util/not.js","./node_modules/rxjs/_esm2015/internal/observable/partition.js","./node_modules/rxjs/_esm2015/internal/observable/race.js","./node_modules/rxjs/_esm2015/internal/observable/range.js","./node_modules/rxjs/_esm2015/internal/observable/using.js","./node_modules/rxjs/_esm2015/internal/observable/zip.js","./node_modules/rxjs/_esm2015/internal/BehaviorSubject.js","./node_modules/rxjs/_esm2015/internal/Notification.js","./node_modules/rxjs/_esm2015/internal/Observable.js","./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js","./node_modules/rxjs/_esm2015/internal/Observer.js","./node_modules/rxjs/_esm2015/internal/OuterSubscriber.js","./node_modules/rxjs/_esm2015/internal/operators/observeOn.js","./node_modules/rxjs/_esm2015/internal/ReplaySubject.js","./node_modules/rxjs/_esm2015/internal/Scheduler.js","./node_modules/rxjs/_esm2015/internal/Subject.js","./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js","./node_modules/rxjs/_esm2015/internal/Subscriber.js","./node_modules/rxjs/_esm2015/internal/Subscription.js","./node_modules/rxjs/_esm2015/internal/config.js","./node_modules/rxjs/_esm2015/internal/innerSubscribe.js","./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js","./node_modules/rxjs/_esm2015/internal/observable/combineLatest.js","./node_modules/rxjs/_esm2015/internal/observable/concat.js","./node_modules/rxjs/_esm2015/internal/operators/concatAll.js","./node_modules/rxjs/_esm2015/internal/observable/defer.js","./node_modules/rxjs/_esm2015/internal/observable/empty.js","./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js","./node_modules/rxjs/_esm2015/internal/observable/from.js","./node_modules/rxjs/_esm2015/internal/observable/fromArray.js","./node_modules/rxjs/_esm2015/internal/observable/fromEvent.js","./node_modules/rxjs/_esm2015/internal/observable/merge.js","./node_modules/rxjs/_esm2015/internal/observable/of.js","./node_modules/rxjs/_esm2015/internal/observable/throwError.js","./node_modules/rxjs/_esm2015/internal/observable/timer.js","./node_modules/rxjs/_esm2015/internal/operators/catchError.js","./node_modules/rxjs/_esm2015/internal/operators/concatMap.js","./node_modules/rxjs/_esm2015/internal/operators/defaultIfEmpty.js","./node_modules/rxjs/_esm2015/internal/operators/distinctUntilChanged.js","./node_modules/rxjs/_esm2015/internal/operators/filter.js","./node_modules/rxjs/_esm2015/internal/operators/map.js","./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js","./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js","./node_modules/rxjs/_esm2015/internal/operators/refCount.js","./node_modules/rxjs/_esm2015/internal/operators/share.js","./node_modules/rxjs/_esm2015/internal/operators/multicast.js","./node_modules/rxjs/_esm2015/internal/operators/shareReplay.js","./node_modules/rxjs/_esm2015/internal/operators/take.js","./node_modules/rxjs/_esm2015/internal/operators/takeUntil.js","./node_modules/rxjs/_esm2015/internal/operators/tap.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleArray.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js","./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js","./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js","./node_modules/rxjs/_esm2015/internal/util/isIterable.js","./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js","./node_modules/rxjs/_esm2015/internal/scheduler/Action.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/animationFrame.js","./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameAction.js","./node_modules/rxjs/_esm2015/internal/util/Immediate.js","./node_modules/rxjs/_esm2015/internal/scheduler/asap.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/AsapAction.js","./node_modules/rxjs/_esm2015/internal/scheduler/async.js","./node_modules/rxjs/_esm2015/internal/scheduler/queue.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js","./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js","./node_modules/rxjs/_esm2015/internal/symbol/iterator.js","./node_modules/rxjs/_esm2015/internal/symbol/observable.js","./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/ArgumentOutOfRangeError.js","./node_modules/rxjs/_esm2015/internal/util/EmptyError.js","./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js","./node_modules/rxjs/_esm2015/internal/util/UnsubscriptionError.js","./node_modules/rxjs/_esm2015/internal/util/canReportError.js","./node_modules/rxjs/_esm2015/internal/util/hostReportError.js","./node_modules/rxjs/_esm2015/internal/util/identity.js","./node_modules/rxjs/_esm2015/internal/util/isArray.js","./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js","./node_modules/rxjs/_esm2015/internal/util/isFunction.js","./node_modules/rxjs/_esm2015/internal/util/isNumeric.js","./node_modules/rxjs/_esm2015/internal/util/isObject.js","./node_modules/rxjs/_esm2015/internal/util/isObservable.js","./node_modules/rxjs/_esm2015/internal/util/isPromise.js","./node_modules/rxjs/_esm2015/internal/util/isScheduler.js","./node_modules/rxjs/_esm2015/internal/util/noop.js","./node_modules/rxjs/_esm2015/internal/util/pipe.js","./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToArray.js","./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js","./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js","./node_modules/stackframe/stackframe.js","/app/node_modules/moment/locale|sync|/^//.*$/","./node_modules/tslib/tslib.es6.js","./node_modules/@angular/common/fesm2015/common.mjs","./node_modules/@angular/common/fesm2015/http.mjs","./node_modules/@angular/core/fesm2015/core.mjs"],"sourcesContent":["import { Params } from '@angular/router';\n\nexport class HeadingInfo {\n constructor(\n public title: string,\n public url: string,\n public showUrl: boolean,\n public urlLabel: string,\n public goBack: boolean,\n public queryParams?: Params\n ) { }\n}\n","import { ConfigModel } from '@back-office/models/config.model';\nimport { Params } from '@angular/router';\n\nexport class LoadConfig {\n static readonly type = '[Config] Load config Action';\n constructor() {}\n}\n\nexport class LoadConfigSuccess {\n static readonly type = '[Config] Load config Success';\n constructor(public config: ConfigModel) {}\n}\n\nexport class LoadConfigFail {\n static readonly type = '[Config] Load config Fail';\n constructor() {}\n}\n\nexport class SetTitleInfo {\n static readonly type = '[Config] Set title';\n constructor(\n public title: string,\n public showUrl: boolean = false,\n public url: string = '',\n public urlLabel: string = '',\n public goBack: boolean = false,\n public queryParams?: Params\n ) {}\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { ConfigModel } from '@back-office/models/config.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigService {\n constructor(public http: HttpClient) {}\n\n loadConfig(): Observable {\n return this.http.get('./assets/config.json');\n }\n}\n","import { HeadingInfo } from '@back-office/models/heading-info.model';\nimport { SetTitleInfo } from '@back-office/store/actions/config.actions';\nimport { Selector, StateContext, Action, State } from '@ngxs/store';\nimport { map, catchError } from 'rxjs/operators';\nimport { ConfigModel } from '@back-office/models/config.model';\nimport {\n LoadConfig,\n LoadConfigSuccess,\n LoadConfigFail,\n} from '../actions/config.actions';\nimport { ConfigService } from '@back-office/services/config.service';\nimport { Injectable } from '@angular/core';\n\nexport interface ConfigStateModel {\n config: ConfigModel;\n headingInfo?: HeadingInfo;\n}\n\n@State({\n name: 'configuration',\n defaults: {\n config: null,\n },\n})\n@Injectable()\nexport class ConfigState {\n constructor(private configService: ConfigService) {}\n\n @Selector()\n static getConfig(model: ConfigStateModel) {\n return model.config;\n }\n\n @Selector()\n static headingInfo(model: ConfigStateModel) {\n return model.headingInfo;\n }\n\n @Action(LoadConfig)\n loadConfigAction(ctx: StateContext) {\n return this.configService.loadConfig().pipe(\n // success state\n map((result) => ctx.dispatch(new LoadConfigSuccess(result))),\n // error state\n catchError((x) => ctx.dispatch(new LoadConfigFail()))\n );\n }\n\n @Action(LoadConfigSuccess, { cancelUncompleted: true })\n loadConfigSuccessAction(\n ctx: StateContext,\n { config }: LoadConfigSuccess\n ) {\n ctx.patchState({ config });\n }\n\n @Action(LoadConfigFail, { cancelUncompleted: true })\n loadConfigFailAction(ctx: StateContext) {}\n\n @Action(SetTitleInfo, { cancelUncompleted: true })\n setTitle(ctx: StateContext, action: SetTitleInfo) {\n const newheading = new HeadingInfo(\n action.title,\n action.url,\n action.showUrl,\n action.urlLabel,\n action.goBack\n );\n ctx.patchState({\n headingInfo: newheading,\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { ConfigModel } from '@front-office/models/config.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigService {\n constructor(public http: HttpClient) {}\n\n loadConfig(): Observable {\n return this.http.get('./assets/config.json');\n }\n}\n","import { ConfigModel } from '@front-office/models/config.model';\n\nexport class LoadConfig {\n static readonly type = '[Config] Load config Action';\n constructor() {}\n}\n\nexport class LoadConfigSuccess {\n static readonly type = '[Config] Load config Success';\n constructor(public config: ConfigModel) {}\n}\n\nexport class LoadConfigFail {\n static readonly type = '[Config] Load config Fail';\n constructor() {}\n}\n","import { Selector, StateContext, Action, State } from '@ngxs/store';\nimport { map, catchError } from 'rxjs/operators';\nimport { ConfigModel } from '@front-office/models/config.model';\nimport {\n LoadConfig,\n LoadConfigSuccess,\n LoadConfigFail,\n} from '@front-office/store/actions/config.actions';\nimport { ConfigService } from '@front-office/services/config.service';\nimport { Injectable } from '@angular/core';\n\nexport interface ConfigStateModel {\n config: ConfigModel;\n}\n\n@State({\n name: 'configuration',\n defaults: {\n config: null,\n },\n})\n@Injectable()\nexport class ConfigState {\n constructor(private configService: ConfigService) {}\n\n @Selector()\n static getConfig(model: ConfigStateModel) {\n return model.config;\n }\n\n @Action(LoadConfig)\n loadConfigAction(ctx: StateContext) {\n return this.configService.loadConfig().pipe(\n // success state\n map((result) => ctx.dispatch(new LoadConfigSuccess(result))),\n // error state\n catchError((x) => ctx.dispatch(new LoadConfigFail()))\n );\n }\n\n @Action(LoadConfigSuccess, { cancelUncompleted: true })\n loadConfigSuccessAction(\n ctx: StateContext,\n { config }: LoadConfigSuccess\n ) {\n ctx.patchState({ config });\n }\n\n @Action(LoadConfigFail, { cancelUncompleted: true })\n loadConfigFailAction(ctx: StateContext) {}\n}\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵDomAdapter, ɵsetRootDomAdapter, ɵparseCookieValue, ɵgetDOM, DOCUMENT, ɵPLATFORM_BROWSER_ID, XhrFactory, CommonModule } from '@angular/common';\nexport { ɵgetDOM } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, ɵglobal, Injectable, Inject, ViewEncapsulation, APP_ID, RendererStyleFlags2, ErrorHandler, ɵsetDocument, PLATFORM_ID, PLATFORM_INITIALIZER, createPlatformFactory, platformCore, ɵINJECTOR_SCOPE, NgZone, RendererFactory2, Testability, ApplicationModule, NgModule, Optional, SkipSelf, ɵɵinject, ApplicationRef, ɵConsole, forwardRef, SecurityContext, ɵallowSanitizationBypassAndThrow, ɵunwrapSafeValue, ɵgetSanitizationBypassType, ɵ_sanitizeUrl, ɵ_sanitizeHtml, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl, Version } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Provides DOM operations in any browser environment.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass GenericBrowserDomAdapter extends ɵDomAdapter {\n constructor() {\n super(...arguments);\n this.supportsDOMEvents = true;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n/* tslint:disable:requireParameterType no-console */\nclass BrowserDomAdapter extends GenericBrowserDomAdapter {\n static makeCurrent() {\n ɵsetRootDomAdapter(new BrowserDomAdapter());\n }\n onAndCancel(el, evt, listener) {\n el.addEventListener(evt, listener, false);\n // Needed to follow Dart's subscription semantic, until fix of\n // https://code.google.com/p/dart/issues/detail?id=17406\n return () => {\n el.removeEventListener(evt, listener, false);\n };\n }\n dispatchEvent(el, evt) {\n el.dispatchEvent(evt);\n }\n remove(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n }\n createElement(tagName, doc) {\n doc = doc || this.getDefaultDocument();\n return doc.createElement(tagName);\n }\n createHtmlDocument() {\n return document.implementation.createHTMLDocument('fakeTitle');\n }\n getDefaultDocument() {\n return document;\n }\n isElementNode(node) {\n return node.nodeType === Node.ELEMENT_NODE;\n }\n isShadowRoot(node) {\n return node instanceof DocumentFragment;\n }\n /** @deprecated No longer being used in Ivy code. To be removed in version 14. */\n getGlobalEventTarget(doc, target) {\n if (target === 'window') {\n return window;\n }\n if (target === 'document') {\n return doc;\n }\n if (target === 'body') {\n return doc.body;\n }\n return null;\n }\n getBaseHref(doc) {\n const href = getBaseElementHref();\n return href == null ? null : relativePath(href);\n }\n resetBaseElement() {\n baseElement = null;\n }\n getUserAgent() {\n return window.navigator.userAgent;\n }\n getCookie(name) {\n return ɵparseCookieValue(document.cookie, name);\n }\n}\nlet baseElement = null;\nfunction getBaseElementHref() {\n baseElement = baseElement || document.querySelector('base');\n return baseElement ? baseElement.getAttribute('href') : null;\n}\n// based on urlUtils.js in AngularJS 1\nlet urlParsingNode;\nfunction relativePath(url) {\n urlParsingNode = urlParsingNode || document.createElement('a');\n urlParsingNode.setAttribute('href', url);\n const pathName = urlParsingNode.pathname;\n return pathName.charAt(0) === '/' ? pathName : `/${pathName}`;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An id that identifies a particular application being bootstrapped, that should\n * match across the client/server boundary.\n */\nconst TRANSITION_ID = new InjectionToken('TRANSITION_ID');\nfunction appInitializerFactory(transitionId, document, injector) {\n return () => {\n // Wait for all application initializers to be completed before removing the styles set by\n // the server.\n injector.get(ApplicationInitStatus).donePromise.then(() => {\n const dom = ɵgetDOM();\n const styles = document.querySelectorAll(`style[ng-transition=\"${transitionId}\"]`);\n for (let i = 0; i < styles.length; i++) {\n dom.remove(styles[i]);\n }\n });\n };\n}\nconst SERVER_TRANSITION_PROVIDERS = [\n {\n provide: APP_INITIALIZER,\n useFactory: appInitializerFactory,\n deps: [TRANSITION_ID, DOCUMENT, Injector],\n multi: true\n },\n];\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass BrowserGetTestability {\n static init() {\n setTestabilityGetter(new BrowserGetTestability());\n }\n addToWindow(registry) {\n ɵglobal['getAngularTestability'] = (elem, findInAncestors = true) => {\n const testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new Error('Could not find testability for element.');\n }\n return testability;\n };\n ɵglobal['getAllAngularTestabilities'] = () => registry.getAllTestabilities();\n ɵglobal['getAllAngularRootElements'] = () => registry.getAllRootElements();\n const whenAllStable = (callback /** TODO #9100 */) => {\n const testabilities = ɵglobal['getAllAngularTestabilities']();\n let count = testabilities.length;\n let didWork = false;\n const decrement = function (didWork_ /** TODO #9100 */) {\n didWork = didWork || didWork_;\n count--;\n if (count == 0) {\n callback(didWork);\n }\n };\n testabilities.forEach(function (testability /** TODO #9100 */) {\n testability.whenStable(decrement);\n });\n };\n if (!ɵglobal['frameworkStabilizers']) {\n ɵglobal['frameworkStabilizers'] = [];\n }\n ɵglobal['frameworkStabilizers'].push(whenAllStable);\n }\n findTestabilityInTree(registry, elem, findInAncestors) {\n if (elem == null) {\n return null;\n }\n const t = registry.getTestability(elem);\n if (t != null) {\n return t;\n }\n else if (!findInAncestors) {\n return null;\n }\n if (ɵgetDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, elem.host, true);\n }\n return this.findTestabilityInTree(registry, elem.parentElement, true);\n }\n}\n\n/**\n * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.\n */\nclass BrowserXhr {\n build() {\n return new XMLHttpRequest();\n }\n}\nBrowserXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserXhr });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserXhr, decorators: [{\n type: Injectable\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The injection token for the event-manager plug-in service.\n *\n * @publicApi\n */\nconst EVENT_MANAGER_PLUGINS = new InjectionToken('EventManagerPlugins');\n/**\n * An injectable service that provides event management for Angular\n * through a browser plug-in.\n *\n * @publicApi\n */\nclass EventManager {\n /**\n * Initializes an instance of the event-manager service.\n */\n constructor(plugins, _zone) {\n this._zone = _zone;\n this._eventNameToPlugin = new Map();\n plugins.forEach(p => p.manager = this);\n this._plugins = plugins.slice().reverse();\n }\n /**\n * Registers a handler for a specific element and event.\n *\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns A callback function that can be used to remove the handler.\n */\n addEventListener(element, eventName, handler) {\n const plugin = this._findPluginFor(eventName);\n return plugin.addEventListener(element, eventName, handler);\n }\n /**\n * Registers a global handler for an event in a target view.\n *\n * @param target A target for global event notifications. One of \"window\", \"document\", or \"body\".\n * @param eventName The name of the event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns A callback function that can be used to remove the handler.\n * @deprecated No longer being used in Ivy code. To be removed in version 14.\n */\n addGlobalEventListener(target, eventName, handler) {\n const plugin = this._findPluginFor(eventName);\n return plugin.addGlobalEventListener(target, eventName, handler);\n }\n /**\n * Retrieves the compilation zone in which event listeners are registered.\n */\n getZone() {\n return this._zone;\n }\n /** @internal */\n _findPluginFor(eventName) {\n const plugin = this._eventNameToPlugin.get(eventName);\n if (plugin) {\n return plugin;\n }\n const plugins = this._plugins;\n for (let i = 0; i < plugins.length; i++) {\n const plugin = plugins[i];\n if (plugin.supports(eventName)) {\n this._eventNameToPlugin.set(eventName, plugin);\n return plugin;\n }\n }\n throw new Error(`No event manager plugin found for event ${eventName}`);\n }\n}\nEventManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nEventManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: EventManager });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: EventManager, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [EVENT_MANAGER_PLUGINS]\n }] }, { type: i0.NgZone }];\n } });\nclass EventManagerPlugin {\n constructor(_doc) {\n this._doc = _doc;\n }\n addGlobalEventListener(element, eventName, handler) {\n const target = ɵgetDOM().getGlobalEventTarget(this._doc, element);\n if (!target) {\n throw new Error(`Unsupported event target ${target} for event ${eventName}`);\n }\n return this.addEventListener(target, eventName, handler);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass SharedStylesHost {\n constructor() {\n /** @internal */\n this._stylesSet = new Set();\n }\n addStyles(styles) {\n const additions = new Set();\n styles.forEach(style => {\n if (!this._stylesSet.has(style)) {\n this._stylesSet.add(style);\n additions.add(style);\n }\n });\n this.onStylesAdded(additions);\n }\n onStylesAdded(additions) { }\n getAllStyles() {\n return Array.from(this._stylesSet);\n }\n}\nSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SharedStylesHost });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SharedStylesHost, decorators: [{\n type: Injectable\n }] });\nclass DomSharedStylesHost extends SharedStylesHost {\n constructor(_doc) {\n super();\n this._doc = _doc;\n // Maps all registered host nodes to a list of style nodes that have been added to the host node.\n this._hostNodes = new Map();\n this._hostNodes.set(_doc.head, []);\n }\n _addStylesToHost(styles, host, styleNodes) {\n styles.forEach((style) => {\n const styleEl = this._doc.createElement('style');\n styleEl.textContent = style;\n styleNodes.push(host.appendChild(styleEl));\n });\n }\n addHost(hostNode) {\n const styleNodes = [];\n this._addStylesToHost(this._stylesSet, hostNode, styleNodes);\n this._hostNodes.set(hostNode, styleNodes);\n }\n removeHost(hostNode) {\n const styleNodes = this._hostNodes.get(hostNode);\n if (styleNodes) {\n styleNodes.forEach(removeStyle);\n }\n this._hostNodes.delete(hostNode);\n }\n onStylesAdded(additions) {\n this._hostNodes.forEach((styleNodes, hostNode) => {\n this._addStylesToHost(additions, hostNode, styleNodes);\n });\n }\n ngOnDestroy() {\n this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));\n }\n}\nDomSharedStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomSharedStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSharedStylesHost });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSharedStylesHost, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\nfunction removeStyle(styleNode) {\n ɵgetDOM().remove(styleNode);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst NAMESPACE_URIS = {\n 'svg': 'http://www.w3.org/2000/svg',\n 'xhtml': 'http://www.w3.org/1999/xhtml',\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'xml': 'http://www.w3.org/XML/1998/namespace',\n 'xmlns': 'http://www.w3.org/2000/xmlns/',\n};\nconst COMPONENT_REGEX = /%COMP%/g;\nconst NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;\nconst COMPONENT_VARIABLE = '%COMP%';\nconst HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;\nconst CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;\nfunction shimContentAttribute(componentShortId) {\n return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction shimHostAttribute(componentShortId) {\n return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\n}\nfunction flattenStyles(compId, styles, target) {\n for (let i = 0; i < styles.length; i++) {\n let style = styles[i];\n if (Array.isArray(style)) {\n flattenStyles(compId, style, target);\n }\n else {\n style = style.replace(COMPONENT_REGEX, compId);\n target.push(style);\n }\n }\n return target;\n}\nfunction decoratePreventDefault(eventHandler) {\n // `DebugNode.triggerEventHandler` needs to know if the listener was created with\n // decoratePreventDefault or is a listener added outside the Angular context so it can handle the\n // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap\n // the listener (see below).\n return (event) => {\n // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The debug_node\n // can inspect the listener toString contents for the existence of this special token. Because\n // the token is a string literal, it is ensured to not be modified by compiled code.\n if (event === '__ngUnwrap__') {\n return eventHandler;\n }\n const allowDefaultBehavior = eventHandler(event);\n if (allowDefaultBehavior === false) {\n // TODO(tbosch): move preventDefault into event plugins...\n event.preventDefault();\n event.returnValue = false;\n }\n return undefined;\n };\n}\nlet hasLoggedNativeEncapsulationWarning = false;\nclass DomRendererFactory2 {\n constructor(eventManager, sharedStylesHost, appId) {\n this.eventManager = eventManager;\n this.sharedStylesHost = sharedStylesHost;\n this.appId = appId;\n this.rendererByCompId = new Map();\n this.defaultRenderer = new DefaultDomRenderer2(eventManager);\n }\n createRenderer(element, type) {\n if (!element || !type) {\n return this.defaultRenderer;\n }\n switch (type.encapsulation) {\n case ViewEncapsulation.Emulated: {\n let renderer = this.rendererByCompId.get(type.id);\n if (!renderer) {\n renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);\n this.rendererByCompId.set(type.id, renderer);\n }\n renderer.applyToHost(element);\n return renderer;\n }\n // @ts-ignore TODO: Remove as part of FW-2290. TS complains about us dealing with an enum\n // value that is not known (but previously was the value for ViewEncapsulation.Native)\n case 1:\n case ViewEncapsulation.ShadowDom:\n // TODO(FW-2290): remove the `case 1:` fallback logic and the warning in v12.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n // @ts-ignore TODO: Remove as part of FW-2290. TS complains about us dealing with an\n // enum value that is not known (but previously was the value for\n // ViewEncapsulation.Native)\n !hasLoggedNativeEncapsulationWarning && type.encapsulation === 1) {\n hasLoggedNativeEncapsulationWarning = true;\n console.warn('ViewEncapsulation.Native is no longer supported. Falling back to ViewEncapsulation.ShadowDom. The fallback will be removed in v12.');\n }\n return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);\n default: {\n if (!this.rendererByCompId.has(type.id)) {\n const styles = flattenStyles(type.id, type.styles, []);\n this.sharedStylesHost.addStyles(styles);\n this.rendererByCompId.set(type.id, this.defaultRenderer);\n }\n return this.defaultRenderer;\n }\n }\n }\n begin() { }\n end() { }\n}\nDomRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: DomSharedStylesHost }, { token: APP_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nDomRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomRendererFactory2 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomRendererFactory2, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: undefined, decorators: [{\n type: Inject,\n args: [APP_ID]\n }] }];\n } });\nclass DefaultDomRenderer2 {\n constructor(eventManager) {\n this.eventManager = eventManager;\n this.data = Object.create(null);\n this.destroyNode = null;\n }\n destroy() { }\n createElement(name, namespace) {\n if (namespace) {\n // In cases where Ivy (not ViewEngine) is giving us the actual namespace, the look up by key\n // will result in undefined, so we just return the namespace here.\n return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);\n }\n return document.createElement(name);\n }\n createComment(value) {\n return document.createComment(value);\n }\n createText(value) {\n return document.createTextNode(value);\n }\n appendChild(parent, newChild) {\n parent.appendChild(newChild);\n }\n insertBefore(parent, newChild, refChild) {\n if (parent) {\n parent.insertBefore(newChild, refChild);\n }\n }\n removeChild(parent, oldChild) {\n if (parent) {\n parent.removeChild(oldChild);\n }\n }\n selectRootElement(selectorOrNode, preserveContent) {\n let el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :\n selectorOrNode;\n if (!el) {\n throw new Error(`The selector \"${selectorOrNode}\" did not match any elements`);\n }\n if (!preserveContent) {\n el.textContent = '';\n }\n return el;\n }\n parentNode(node) {\n return node.parentNode;\n }\n nextSibling(node) {\n return node.nextSibling;\n }\n setAttribute(el, name, value, namespace) {\n if (namespace) {\n name = namespace + ':' + name;\n // TODO(FW-811): Ivy may cause issues here because it's passing around\n // full URIs for namespaces, therefore this lookup will fail.\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.setAttributeNS(namespaceUri, name, value);\n }\n else {\n el.setAttribute(name, value);\n }\n }\n else {\n el.setAttribute(name, value);\n }\n }\n removeAttribute(el, name, namespace) {\n if (namespace) {\n // TODO(FW-811): Ivy may cause issues here because it's passing around\n // full URIs for namespaces, therefore this lookup will fail.\n const namespaceUri = NAMESPACE_URIS[namespace];\n if (namespaceUri) {\n el.removeAttributeNS(namespaceUri, name);\n }\n else {\n // TODO(FW-811): Since ivy is passing around full URIs for namespaces\n // this could result in properties like `http://www.w3.org/2000/svg:cx=\"123\"`,\n // which is wrong.\n el.removeAttribute(`${namespace}:${name}`);\n }\n }\n else {\n el.removeAttribute(name);\n }\n }\n addClass(el, name) {\n el.classList.add(name);\n }\n removeClass(el, name) {\n el.classList.remove(name);\n }\n setStyle(el, style, value, flags) {\n if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {\n el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');\n }\n else {\n el.style[style] = value;\n }\n }\n removeStyle(el, style, flags) {\n if (flags & RendererStyleFlags2.DashCase) {\n el.style.removeProperty(style);\n }\n else {\n // IE requires '' instead of null\n // see https://github.com/angular/angular/issues/7916\n el.style[style] = '';\n }\n }\n setProperty(el, name, value) {\n NG_DEV_MODE && checkNoSyntheticProp(name, 'property');\n el[name] = value;\n }\n setValue(node, value) {\n node.nodeValue = value;\n }\n listen(target, event, callback) {\n NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');\n if (typeof target === 'string') {\n return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));\n }\n return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));\n }\n}\nconst AT_CHARCODE = (() => '@'.charCodeAt(0))();\nfunction checkNoSyntheticProp(name, nameKind) {\n if (name.charCodeAt(0) === AT_CHARCODE) {\n throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:\n - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.\n - There is corresponding configuration for the animation named \\`${name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);\n }\n}\nclass EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {\n constructor(eventManager, sharedStylesHost, component, appId) {\n super(eventManager);\n this.component = component;\n const styles = flattenStyles(appId + '-' + component.id, component.styles, []);\n sharedStylesHost.addStyles(styles);\n this.contentAttr = shimContentAttribute(appId + '-' + component.id);\n this.hostAttr = shimHostAttribute(appId + '-' + component.id);\n }\n applyToHost(element) {\n super.setAttribute(element, this.hostAttr, '');\n }\n createElement(parent, name) {\n const el = super.createElement(parent, name);\n super.setAttribute(el, this.contentAttr, '');\n return el;\n }\n}\nclass ShadowDomRenderer extends DefaultDomRenderer2 {\n constructor(eventManager, sharedStylesHost, hostEl, component) {\n super(eventManager);\n this.sharedStylesHost = sharedStylesHost;\n this.hostEl = hostEl;\n this.shadowRoot = hostEl.attachShadow({ mode: 'open' });\n this.sharedStylesHost.addHost(this.shadowRoot);\n const styles = flattenStyles(component.id, component.styles, []);\n for (let i = 0; i < styles.length; i++) {\n const styleEl = document.createElement('style');\n styleEl.textContent = styles[i];\n this.shadowRoot.appendChild(styleEl);\n }\n }\n nodeOrShadowRoot(node) {\n return node === this.hostEl ? this.shadowRoot : node;\n }\n destroy() {\n this.sharedStylesHost.removeHost(this.shadowRoot);\n }\n appendChild(parent, newChild) {\n return super.appendChild(this.nodeOrShadowRoot(parent), newChild);\n }\n insertBefore(parent, newChild, refChild) {\n return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);\n }\n removeChild(parent, oldChild) {\n return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);\n }\n parentNode(node) {\n return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass DomEventsPlugin extends EventManagerPlugin {\n constructor(doc) {\n super(doc);\n }\n // This plugin should come last in the list of plugins, because it accepts all\n // events.\n supports(eventName) {\n return true;\n }\n addEventListener(element, eventName, handler) {\n element.addEventListener(eventName, handler, false);\n return () => this.removeEventListener(element, eventName, handler);\n }\n removeEventListener(target, eventName, callback) {\n return target.removeEventListener(eventName, callback);\n }\n}\nDomEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomEventsPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Defines supported modifiers for key events.\n */\nconst MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];\nconst DOM_KEY_LOCATION_NUMPAD = 3;\n// Map to convert some key or keyIdentifier values to what will be returned by getEventKey\nconst _keyMap = {\n // The following values are here for cross-browser compatibility and to match the W3C standard\n // cf https://www.w3.org/TR/DOM-Level-3-Events-key/\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS'\n};\n// There is a bug in Chrome for numeric keypad keys:\n// https://code.google.com/p/chromium/issues/detail?id=155654\n// 1, 2, 3 ... are reported as A, B, C ...\nconst _chromeNumKeyPadMap = {\n 'A': '1',\n 'B': '2',\n 'C': '3',\n 'D': '4',\n 'E': '5',\n 'F': '6',\n 'G': '7',\n 'H': '8',\n 'I': '9',\n 'J': '*',\n 'K': '+',\n 'M': '-',\n 'N': '.',\n 'O': '/',\n '\\x60': '0',\n '\\x90': 'NumLock'\n};\n/**\n * Retrieves modifiers from key-event objects.\n */\nconst MODIFIER_KEY_GETTERS = {\n 'alt': (event) => event.altKey,\n 'control': (event) => event.ctrlKey,\n 'meta': (event) => event.metaKey,\n 'shift': (event) => event.shiftKey\n};\n/**\n * @publicApi\n * A browser plug-in that provides support for handling of key events in Angular.\n */\nclass KeyEventsPlugin extends EventManagerPlugin {\n /**\n * Initializes an instance of the browser plug-in.\n * @param doc The document in which key events will be detected.\n */\n constructor(doc) {\n super(doc);\n }\n /**\n * Reports whether a named key event is supported.\n * @param eventName The event name to query.\n * @return True if the named key event is supported.\n */\n supports(eventName) {\n return KeyEventsPlugin.parseEventName(eventName) != null;\n }\n /**\n * Registers a handler for a specific element and key event.\n * @param element The HTML element to receive event notifications.\n * @param eventName The name of the key event to listen for.\n * @param handler A function to call when the notification occurs. Receives the\n * event object as an argument.\n * @returns The key event that was registered.\n */\n addEventListener(element, eventName, handler) {\n const parsedEvent = KeyEventsPlugin.parseEventName(eventName);\n const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());\n return this.manager.getZone().runOutsideAngular(() => {\n return ɵgetDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);\n });\n }\n static parseEventName(eventName) {\n const parts = eventName.toLowerCase().split('.');\n const domEventName = parts.shift();\n if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {\n return null;\n }\n const key = KeyEventsPlugin._normalizeKey(parts.pop());\n let fullKey = '';\n MODIFIER_KEYS.forEach(modifierName => {\n const index = parts.indexOf(modifierName);\n if (index > -1) {\n parts.splice(index, 1);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.\n // The code must remain in the `result['domEventName']` form.\n // return {domEventName, fullKey};\n const result = {};\n result['domEventName'] = domEventName;\n result['fullKey'] = fullKey;\n return result;\n }\n static getEventFullKey(event) {\n let fullKey = '';\n let key = getEventKey(event);\n key = key.toLowerCase();\n if (key === ' ') {\n key = 'space'; // for readability\n }\n else if (key === '.') {\n key = 'dot'; // because '.' is used as a separator in event names\n }\n MODIFIER_KEYS.forEach(modifierName => {\n if (modifierName != key) {\n const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];\n if (modifierGetter(event)) {\n fullKey += modifierName + '.';\n }\n }\n });\n fullKey += key;\n return fullKey;\n }\n /**\n * Configures a handler callback for a key event.\n * @param fullKey The event name that combines all simultaneous keystrokes.\n * @param handler The function that responds to the key event.\n * @param zone The zone in which the event occurred.\n * @returns A callback function.\n */\n static eventCallback(fullKey, handler, zone) {\n return (event /** TODO #9100 */) => {\n if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {\n zone.runGuarded(() => handler(event));\n }\n };\n }\n /** @internal */\n static _normalizeKey(keyName) {\n // TODO: switch to a Map if the mapping grows too much\n switch (keyName) {\n case 'esc':\n return 'escape';\n default:\n return keyName;\n }\n }\n}\nKeyEventsPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nKeyEventsPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyEventsPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyEventsPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\nfunction getEventKey(event) {\n let key = event.key;\n if (key == null) {\n key = event.keyIdentifier;\n // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and\n // Safari cf\n // https://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces\n if (key == null) {\n return 'Unidentified';\n }\n if (key.startsWith('U+')) {\n key = String.fromCharCode(parseInt(key.substring(2), 16));\n if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {\n // There is a bug in Chrome for numeric keypad keys:\n // https://code.google.com/p/chromium/issues/detail?id=155654\n // 1, 2, 3 ... are reported as A, B, C ...\n key = _chromeNumKeyPadMap[key];\n }\n }\n }\n return _keyMap[key] || key;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n BrowserGetTestability.init();\n}\nfunction errorHandler() {\n return new ErrorHandler();\n}\nfunction _document() {\n // Tell ivy about the global document\n ɵsetDocument(document);\n return document;\n}\nconst INTERNAL_BROWSER_PLATFORM_PROVIDERS = [\n { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },\n { provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },\n { provide: DOCUMENT, useFactory: _document, deps: [] },\n];\n/**\n * A factory function that returns a `PlatformRef` instance associated with browser service\n * providers.\n *\n * @publicApi\n */\nconst platformBrowser = createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\nconst BROWSER_MODULE_PROVIDERS = [\n { provide: ɵINJECTOR_SCOPE, useValue: 'root' },\n { provide: ErrorHandler, useFactory: errorHandler, deps: [] },\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: DomEventsPlugin,\n multi: true,\n deps: [DOCUMENT, NgZone, PLATFORM_ID]\n },\n { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT] },\n {\n provide: DomRendererFactory2,\n useClass: DomRendererFactory2,\n deps: [EventManager, DomSharedStylesHost, APP_ID]\n },\n { provide: RendererFactory2, useExisting: DomRendererFactory2 },\n { provide: SharedStylesHost, useExisting: DomSharedStylesHost },\n { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT] },\n { provide: Testability, useClass: Testability, deps: [NgZone] },\n { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone] },\n { provide: XhrFactory, useClass: BrowserXhr, deps: [] },\n];\n/**\n * Exports required infrastructure for all Angular apps.\n * Included by default in all Angular apps created with the CLI\n * `new` command.\n * Re-exports `CommonModule` and `ApplicationModule`, making their\n * exports and providers available to all apps.\n *\n * @publicApi\n */\nclass BrowserModule {\n constructor(parentModule) {\n if (parentModule) {\n throw new Error(`BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.`);\n }\n }\n /**\n * Configures a browser-based app to transition from a server-rendered app, if\n * one is present on the page.\n *\n * @param params An object containing an identifier for the app to transition.\n * The ID must match between the client and server versions of the app.\n * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.\n */\n static withServerTransition(params) {\n return {\n ngModule: BrowserModule,\n providers: [\n { provide: APP_ID, useValue: params.appId },\n { provide: TRANSITION_ID, useExisting: APP_ID },\n SERVER_TRANSITION_PROVIDERS,\n ],\n };\n }\n}\nBrowserModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserModule, deps: [{ token: BrowserModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] });\nBrowserModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserModule, providers: BROWSER_MODULE_PROVIDERS, imports: [CommonModule, ApplicationModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserModule, decorators: [{\n type: NgModule,\n args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [CommonModule, ApplicationModule] }]\n }], ctorParameters: function () {\n return [{ type: BrowserModule, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }, {\n type: Inject,\n args: [BrowserModule]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Factory to create a `Meta` service instance for the current DOM document.\n */\nfunction createMeta() {\n return new Meta(ɵɵinject(DOCUMENT));\n}\n/**\n * A service for managing HTML `` tags.\n *\n * Properties of the `MetaDefinition` object match the attributes of the\n * HTML `` tag. These tags define document metadata that is important for\n * things like configuring a Content Security Policy, defining browser compatibility\n * and security settings, setting HTTP Headers, defining rich content for social sharing,\n * and Search Engine Optimization (SEO).\n *\n * To identify specific `` tags in a document, use an attribute selection\n * string in the format `\"tag_attribute='value string'\"`.\n * For example, an `attrSelector` value of `\"name='description'\"` matches a tag\n * whose `name` attribute has the value `\"description\"`.\n * Selectors are used with the `querySelector()` Document method,\n * in the format `meta[{attrSelector}]`.\n *\n * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)\n * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)\n *\n *\n * @publicApi\n */\nclass Meta {\n constructor(_doc) {\n this._doc = _doc;\n this._dom = ɵgetDOM();\n }\n /**\n * Retrieves or creates a specific `` tag element in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * If an existing element is found, it is returned and is not modified in any way.\n * @param tag The definition of a `` element to match or create.\n * @param forceCreation True to create a new element without checking whether one already exists.\n * @returns The existing element with the same attributes and values if found,\n * the new element if no match is found, or `null` if the tag parameter is not defined.\n */\n addTag(tag, forceCreation = false) {\n if (!tag)\n return null;\n return this._getOrCreateElement(tag, forceCreation);\n }\n /**\n * Retrieves or creates a set of `` tag elements in the current HTML document.\n * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute\n * values in the provided tag definition, and verifies that all other attribute values are equal.\n * @param tags An array of tag definitions to match or create.\n * @param forceCreation True to create new elements without checking whether they already exist.\n * @returns The matching elements if found, or the new elements.\n */\n addTags(tags, forceCreation = false) {\n if (!tags)\n return [];\n return tags.reduce((result, tag) => {\n if (tag) {\n result.push(this._getOrCreateElement(tag, forceCreation));\n }\n return result;\n }, []);\n }\n /**\n * Retrieves a `` tag element in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching element, if any.\n */\n getTag(attrSelector) {\n if (!attrSelector)\n return null;\n return this._doc.querySelector(`meta[${attrSelector}]`) || null;\n }\n /**\n * Retrieves a set of `` tag elements in the current HTML document.\n * @param attrSelector The tag attribute and value to match against, in the format\n * `\"tag_attribute='value string'\"`.\n * @returns The matching elements, if any.\n */\n getTags(attrSelector) {\n if (!attrSelector)\n return [];\n const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);\n return list ? [].slice.call(list) : [];\n }\n /**\n * Modifies an existing `` tag element in the current HTML document.\n * @param tag The tag description with which to replace the existing tag content.\n * @param selector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n * If not supplied, matches a tag with the same `name` or `property` attribute value as the\n * replacement tag.\n * @return The modified element.\n */\n updateTag(tag, selector) {\n if (!tag)\n return null;\n selector = selector || this._parseSelector(tag);\n const meta = this.getTag(selector);\n if (meta) {\n return this._setMetaElementAttributes(tag, meta);\n }\n return this._getOrCreateElement(tag, true);\n }\n /**\n * Removes an existing `` tag element from the current HTML document.\n * @param attrSelector A tag attribute and value to match against, to identify\n * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.\n */\n removeTag(attrSelector) {\n this.removeTagElement(this.getTag(attrSelector));\n }\n /**\n * Removes an existing `` tag element from the current HTML document.\n * @param meta The tag definition to match against to identify an existing tag.\n */\n removeTagElement(meta) {\n if (meta) {\n this._dom.remove(meta);\n }\n }\n _getOrCreateElement(meta, forceCreation = false) {\n if (!forceCreation) {\n const selector = this._parseSelector(meta);\n // It's allowed to have multiple elements with the same name so it's not enough to\n // just check that element with the same name already present on the page. We also need to\n // check if element has tag attributes\n const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];\n if (elem !== undefined)\n return elem;\n }\n const element = this._dom.createElement('meta');\n this._setMetaElementAttributes(meta, element);\n const head = this._doc.getElementsByTagName('head')[0];\n head.appendChild(element);\n return element;\n }\n _setMetaElementAttributes(tag, el) {\n Object.keys(tag).forEach((prop) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));\n return el;\n }\n _parseSelector(tag) {\n const attr = tag.name ? 'name' : 'property';\n return `${attr}=\"${tag[attr]}\"`;\n }\n _containsAttributes(tag, elem) {\n return Object.keys(tag).every((key) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);\n }\n _getMetaKeyMap(prop) {\n return META_KEYS_MAP[prop] || prop;\n }\n}\nMeta.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nMeta.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Meta, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/**\n * Mapping for MetaDefinition properties with their correct meta attribute names\n */\nconst META_KEYS_MAP = {\n httpEquiv: 'http-equiv'\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Factory to create Title service.\n */\nfunction createTitle() {\n return new Title(ɵɵinject(DOCUMENT));\n}\n/**\n * A service that can be used to get and set the title of a current HTML document.\n *\n * Since an Angular application can't be bootstrapped on the entire HTML document (`` tag)\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\n * (representing the `` tag). Instead, this service can be used to set and get the current\n * title value.\n *\n * @publicApi\n */\nclass Title {\n constructor(_doc) {\n this._doc = _doc;\n }\n /**\n * Get the title of the current HTML document.\n */\n getTitle() {\n return this._doc.title;\n }\n /**\n * Set the title of the current HTML document.\n * @param newTitle\n */\n setTitle(newTitle) {\n this._doc.title = newTitle || '';\n }\n}\nTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nTitle.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Title, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nconst DASH_CASE_REGEXP = /-([a-z])/g;\nfunction camelCaseToDashCase(input) {\n return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction dashCaseToCamelCase(input) {\n return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\n}\n/**\n * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if\n * `name` is `'probe'`.\n * @param name Name under which it will be exported. Keep in mind this will be a property of the\n * global `ng` object.\n * @param value The value to export.\n */\nfunction exportNgVar(name, value) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for angularJS (via `goog.provide('ng....')`).\n const ng = ɵglobal['ng'] = ɵglobal['ng'] || {};\n ng[name] = value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst win = typeof window !== 'undefined' && window || {};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass ChangeDetectionPerfRecord {\n constructor(msPerTick, numTicks) {\n this.msPerTick = msPerTick;\n this.numTicks = numTicks;\n }\n}\n/**\n * Entry point for all Angular profiling-related debug tools. This object\n * corresponds to the `ng.profiler` in the dev console.\n */\nclass AngularProfiler {\n constructor(ref) {\n this.appRef = ref.injector.get(ApplicationRef);\n }\n // tslint:disable:no-console\n /**\n * Exercises change detection in a loop and then prints the average amount of\n * time in milliseconds how long a single round of change detection takes for\n * the current state of the UI. It runs a minimum of 5 rounds for a minimum\n * of 500 milliseconds.\n *\n * Optionally, a user may pass a `config` parameter containing a map of\n * options. Supported options are:\n *\n * `record` (boolean) - causes the profiler to record a CPU profile while\n * it exercises the change detector. Example:\n *\n * ```\n * ng.profiler.timeChangeDetection({record: true})\n * ```\n */\n timeChangeDetection(config) {\n const record = config && config['record'];\n const profileName = 'Change Detection';\n // Profiler is not available in Android browsers without dev tools opened\n const isProfilerAvailable = win.console.profile != null;\n if (record && isProfilerAvailable) {\n win.console.profile(profileName);\n }\n const start = performanceNow();\n let numTicks = 0;\n while (numTicks < 5 || (performanceNow() - start) < 500) {\n this.appRef.tick();\n numTicks++;\n }\n const end = performanceNow();\n if (record && isProfilerAvailable) {\n win.console.profileEnd(profileName);\n }\n const msPerTick = (end - start) / numTicks;\n win.console.log(`ran ${numTicks} change detection cycles`);\n win.console.log(`${msPerTick.toFixed(2)} ms per check`);\n return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n }\n}\nfunction performanceNow() {\n return win.performance && win.performance.now ? win.performance.now() :\n new Date().getTime();\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst PROFILER_GLOBAL_NAME = 'profiler';\n/**\n * Enabled Angular debug tools that are accessible via your browser's\n * developer console.\n *\n * Usage:\n *\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\n * then hit Enter.\n *\n * @publicApi\n */\nfunction enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}\n/**\n * Disables Angular tools.\n *\n * @publicApi\n */\nfunction disableDebugTools() {\n exportNgVar(PROFILER_GLOBAL_NAME, null);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction escapeHtml(text) {\n const escapedText = {\n '&': '&a;',\n '\"': '&q;',\n '\\'': '&s;',\n '<': '&l;',\n '>': '&g;',\n };\n return text.replace(/[&\"'<>]/g, s => escapedText[s]);\n}\nfunction unescapeHtml(text) {\n const unescapedText = {\n '&a;': '&',\n '&q;': '\"',\n '&s;': '\\'',\n '&l;': '<',\n '&g;': '>',\n };\n return text.replace(/&[^;]+;/g, s => unescapedText[s]);\n}\n/**\n * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey<number>('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n */\nfunction makeStateKey(key) {\n return key;\n}\n/**\n * A key value store that is transferred from the application on the server side to the application\n * on the client side.\n *\n * `TransferState` will be available as an injectable token. To use it import\n * `ServerTransferStateModule` on the server and `BrowserTransferStateModule` on the client.\n *\n * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only\n * boolean, number, string, null and non-class objects will be serialized and deserialized in a\n * non-lossy manner.\n *\n * @publicApi\n */\nclass TransferState {\n constructor() {\n this.store = {};\n this.onSerializeCallbacks = {};\n }\n /** @internal */\n static init(initState) {\n const transferState = new TransferState();\n transferState.store = initState;\n return transferState;\n }\n /**\n * Get the value corresponding to a key. Return `defaultValue` if key is not found.\n */\n get(key, defaultValue) {\n return this.store[key] !== undefined ? this.store[key] : defaultValue;\n }\n /**\n * Set the value corresponding to a key.\n */\n set(key, value) {\n this.store[key] = value;\n }\n /**\n * Remove a key from the store.\n */\n remove(key) {\n delete this.store[key];\n }\n /**\n * Test whether a key exists in the store.\n */\n hasKey(key) {\n return this.store.hasOwnProperty(key);\n }\n /**\n * Register a callback to provide the value for a key when `toJson` is called.\n */\n onSerialize(key, callback) {\n this.onSerializeCallbacks[key] = callback;\n }\n /**\n * Serialize the current state of the store to JSON.\n */\n toJson() {\n // Call the onSerialize callbacks and put those values into the store.\n for (const key in this.onSerializeCallbacks) {\n if (this.onSerializeCallbacks.hasOwnProperty(key)) {\n try {\n this.store[key] = this.onSerializeCallbacks[key]();\n }\n catch (e) {\n console.warn('Exception in onSerialize callback: ', e);\n }\n }\n }\n return JSON.stringify(this.store);\n }\n}\nTransferState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TransferState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nTransferState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TransferState });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TransferState, decorators: [{\n type: Injectable\n }] });\nfunction initTransferState(doc, appId) {\n // Locate the script tag with the JSON data transferred from the server.\n // The id of the script tag is set to the Angular appId + 'state'.\n const script = doc.getElementById(appId + '-state');\n let initialState = {};\n if (script && script.textContent) {\n try {\n // Avoid using any here as it triggers lint errors in google3 (any is not allowed).\n initialState = JSON.parse(unescapeHtml(script.textContent));\n }\n catch (e) {\n console.warn('Exception while restoring TransferState for app ' + appId, e);\n }\n }\n return TransferState.init(initialState);\n}\n/**\n * NgModule to install on the client side while using the `TransferState` to transfer state from\n * server to client.\n *\n * @publicApi\n */\nclass BrowserTransferStateModule {\n}\nBrowserTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserTransferStateModule });\nBrowserTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserTransferStateModule, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserTransferStateModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Predicates for use with {@link DebugElement}'s query functions.\n *\n * @publicApi\n */\nclass By {\n /**\n * Match all nodes.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\n */\n static all() {\n return () => true;\n }\n /**\n * Match elements by the given CSS selector.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\n */\n static css(selector) {\n return (debugElement) => {\n return debugElement.nativeElement != null ?\n elementMatches(debugElement.nativeElement, selector) :\n false;\n };\n }\n /**\n * Match nodes that have the given directive present.\n *\n * @usageNotes\n * ### Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\n */\n static directive(type) {\n return (debugNode) => debugNode.providerTokens.indexOf(type) !== -1;\n }\n}\nfunction elementMatches(n, selector) {\n if (ɵgetDOM().isElementNode(n)) {\n return n.matches && n.matches(selector) ||\n n.msMatchesSelector && n.msMatchesSelector(selector) ||\n n.webkitMatchesSelector && n.webkitMatchesSelector(selector);\n }\n return false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Supported HammerJS recognizer event names.\n */\nconst EVENT_NAMES = {\n // pan\n 'pan': true,\n 'panstart': true,\n 'panmove': true,\n 'panend': true,\n 'pancancel': true,\n 'panleft': true,\n 'panright': true,\n 'panup': true,\n 'pandown': true,\n // pinch\n 'pinch': true,\n 'pinchstart': true,\n 'pinchmove': true,\n 'pinchend': true,\n 'pinchcancel': true,\n 'pinchin': true,\n 'pinchout': true,\n // press\n 'press': true,\n 'pressup': true,\n // rotate\n 'rotate': true,\n 'rotatestart': true,\n 'rotatemove': true,\n 'rotateend': true,\n 'rotatecancel': true,\n // swipe\n 'swipe': true,\n 'swipeleft': true,\n 'swiperight': true,\n 'swipeup': true,\n 'swipedown': true,\n // tap\n 'tap': true,\n 'doubletap': true\n};\n/**\n * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.\n * @see `HammerGestureConfig`\n *\n * @ngModule HammerModule\n * @publicApi\n */\nconst HAMMER_GESTURE_CONFIG = new InjectionToken('HammerGestureConfig');\n/**\n * Injection token used to provide a {@link HammerLoader} to Angular.\n *\n * @publicApi\n */\nconst HAMMER_LOADER = new InjectionToken('HammerLoader');\n/**\n * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * for gesture recognition. Configures specific event recognition.\n * @publicApi\n */\nclass HammerGestureConfig {\n constructor() {\n /**\n * A set of supported event names for gestures to be used in Angular.\n * Angular supports all built-in recognizers, as listed in\n * [HammerJS documentation](https://hammerjs.github.io/).\n */\n this.events = [];\n /**\n * Maps gesture event names to a set of configuration options\n * that specify overrides to the default values for specific properties.\n *\n * The key is a supported event name to be configured,\n * and the options object contains a set of properties, with override values\n * to be applied to the named recognizer event.\n * For example, to disable recognition of the rotate event, specify\n * `{\"rotate\": {\"enable\": false}}`.\n *\n * Properties that are not present take the HammerJS default values.\n * For information about which properties are supported for which events,\n * and their allowed and default values, see\n * [HammerJS documentation](https://hammerjs.github.io/).\n *\n */\n this.overrides = {};\n }\n /**\n * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)\n * and attaches it to a given HTML element.\n * @param element The element that will recognize gestures.\n * @returns A HammerJS event-manager object.\n */\n buildHammer(element) {\n const mc = new Hammer(element, this.options);\n mc.get('pinch').set({ enable: true });\n mc.get('rotate').set({ enable: true });\n for (const eventName in this.overrides) {\n mc.get(eventName).set(this.overrides[eventName]);\n }\n return mc;\n }\n}\nHammerGestureConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nHammerGestureConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGestureConfig });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGestureConfig, decorators: [{\n type: Injectable\n }] });\n/**\n * Event plugin that adds Hammer support to an application.\n *\n * @ngModule HammerModule\n */\nclass HammerGesturesPlugin extends EventManagerPlugin {\n constructor(doc, _config, console, loader) {\n super(doc);\n this._config = _config;\n this.console = console;\n this.loader = loader;\n this._loaderPromise = null;\n }\n supports(eventName) {\n if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {\n return false;\n }\n if (!window.Hammer && !this.loader) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The \"${eventName}\" event cannot be bound because Hammer.JS is not ` +\n `loaded and no custom loader has been specified.`);\n }\n return false;\n }\n return true;\n }\n addEventListener(element, eventName, handler) {\n const zone = this.manager.getZone();\n eventName = eventName.toLowerCase();\n // If Hammer is not present but a loader is specified, we defer adding the event listener\n // until Hammer is loaded.\n if (!window.Hammer && this.loader) {\n this._loaderPromise = this._loaderPromise || this.loader();\n // This `addEventListener` method returns a function to remove the added listener.\n // Until Hammer is loaded, the returned function needs to *cancel* the registration rather\n // than remove anything.\n let cancelRegistration = false;\n let deregister = () => {\n cancelRegistration = true;\n };\n this._loaderPromise\n .then(() => {\n // If Hammer isn't actually loaded when the custom loader resolves, give up.\n if (!window.Hammer) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);\n }\n deregister = () => { };\n return;\n }\n if (!cancelRegistration) {\n // Now that Hammer is loaded and the listener is being loaded for real,\n // the deregistration function changes from canceling registration to removal.\n deregister = this.addEventListener(element, eventName, handler);\n }\n })\n .catch(() => {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n this.console.warn(`The \"${eventName}\" event cannot be bound because the custom ` +\n `Hammer.JS loader failed.`);\n }\n deregister = () => { };\n });\n // Return a function that *executes* `deregister` (and not `deregister` itself) so that we\n // can change the behavior of `deregister` once the listener is added. Using a closure in\n // this way allows us to avoid any additional data structures to track listener removal.\n return () => {\n deregister();\n };\n }\n return zone.runOutsideAngular(() => {\n // Creating the manager bind events, must be done outside of angular\n const mc = this._config.buildHammer(element);\n const callback = function (eventObj) {\n zone.runGuarded(function () {\n handler(eventObj);\n });\n };\n mc.on(eventName, callback);\n return () => {\n mc.off(eventName, callback);\n // destroy mc to prevent memory leak\n if (typeof mc.destroy === 'function') {\n mc.destroy();\n }\n };\n });\n }\n isCustomEvent(eventName) {\n return this._config.events.indexOf(eventName) > -1;\n }\n}\nHammerGesturesPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nHammerGesturesPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGesturesPlugin });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerGesturesPlugin, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: HammerGestureConfig, decorators: [{\n type: Inject,\n args: [HAMMER_GESTURE_CONFIG]\n }] }, { type: i0.ɵConsole }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [HAMMER_LOADER]\n }] }];\n } });\n/**\n * Adds support for HammerJS.\n *\n * Import this module at the root of your application so that Angular can work with\n * HammerJS to detect gesture events.\n *\n * Note that applications still need to include the HammerJS script itself. This module\n * simply sets up the coordination layer between HammerJS and Angular's EventManager.\n *\n * @publicApi\n */\nclass HammerModule {\n}\nHammerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHammerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerModule });\nHammerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerModule, providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HammerModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n {\n provide: EVENT_MANAGER_PLUGINS,\n useClass: HammerGesturesPlugin,\n multi: true,\n deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, ɵConsole, [new Optional(), HAMMER_LOADER]]\n },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },\n ]\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\n * values to be safe to use in the different DOM contexts.\n *\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\n * the website.\n *\n * In specific situations, it might be necessary to disable sanitization, for example if the\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\n * methods, and then binding to that value from the template.\n *\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\n * Cross Site Scripting (XSS) security bug!\n *\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\n * close as possible to the source of the value, to make it easy to verify no security bug is\n * created by its use.\n *\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\n * code. The sanitizer leaves safe values intact.\n *\n * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\n * into this call. Make sure any user data is appropriately escaped for this security context.\n * For more detail, see the [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\nclass DomSanitizer {\n}\nDomSanitizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nDomSanitizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]\n }] });\nfunction domSanitizerImplFactory(injector) {\n return new DomSanitizerImpl(injector.get(DOCUMENT));\n}\nclass DomSanitizerImpl extends DomSanitizer {\n constructor(_doc) {\n super();\n this._doc = _doc;\n }\n sanitize(ctx, value) {\n if (value == null)\n return null;\n switch (ctx) {\n case SecurityContext.NONE:\n return value;\n case SecurityContext.HTML:\n if (ɵallowSanitizationBypassAndThrow(value, \"HTML\" /* Html */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeHtml(this._doc, String(value)).toString();\n case SecurityContext.STYLE:\n if (ɵallowSanitizationBypassAndThrow(value, \"Style\" /* Style */)) {\n return ɵunwrapSafeValue(value);\n }\n return value;\n case SecurityContext.SCRIPT:\n if (ɵallowSanitizationBypassAndThrow(value, \"Script\" /* Script */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new Error('unsafe value used in a script context');\n case SecurityContext.URL:\n const type = ɵgetSanitizationBypassType(value);\n if (ɵallowSanitizationBypassAndThrow(value, \"URL\" /* Url */)) {\n return ɵunwrapSafeValue(value);\n }\n return ɵ_sanitizeUrl(String(value));\n case SecurityContext.RESOURCE_URL:\n if (ɵallowSanitizationBypassAndThrow(value, \"ResourceURL\" /* ResourceUrl */)) {\n return ɵunwrapSafeValue(value);\n }\n throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');\n default:\n throw new Error(`Unexpected SecurityContext ${ctx} (see https://g.co/ng/security#xss)`);\n }\n }\n bypassSecurityTrustHtml(value) {\n return ɵbypassSanitizationTrustHtml(value);\n }\n bypassSecurityTrustStyle(value) {\n return ɵbypassSanitizationTrustStyle(value);\n }\n bypassSecurityTrustScript(value) {\n return ɵbypassSanitizationTrustScript(value);\n }\n bypassSecurityTrustUrl(value) {\n return ɵbypassSanitizationTrustUrl(value);\n }\n bypassSecurityTrustResourceUrl(value) {\n return ɵbypassSanitizationTrustResourceUrl(value);\n }\n}\nDomSanitizerImpl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nDomSanitizerImpl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DomSanitizerImpl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, DomSanitizerImpl as ɵDomSanitizerImpl, DomSharedStylesHost as ɵDomSharedStylesHost, HammerGesturesPlugin as ɵHammerGesturesPlugin, INTERNAL_BROWSER_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, KeyEventsPlugin as ɵKeyEventsPlugin, NAMESPACE_URIS as ɵNAMESPACE_URIS, SharedStylesHost as ɵSharedStylesHost, TRANSITION_ID as ɵTRANSITION_ID, escapeHtml as ɵescapeHtml, flattenStyles as ɵflattenStyles, initDomAdapter as ɵinitDomAdapter, shimContentAttribute as ɵshimContentAttribute, shimHostAttribute as ɵshimHostAttribute };\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return (source) => source.pipe(switchMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return (source) => source.lift(new SwitchMapOperator(project));\n}\nclass SwitchMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n }\n}\nclass SwitchMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.index = 0;\n }\n _next(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n }\n _complete() {\n const { innerSubscription } = this;\n if (!innerSubscription || innerSubscription.closed) {\n super._complete();\n }\n this.unsubscribe();\n }\n _unsubscribe() {\n this.innerSubscription = undefined;\n }\n notifyComplete() {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n super._complete();\n }\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n}\n","import { concat } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nexport function startWith(...array) {\n const scheduler = array[array.length - 1];\n if (isScheduler(scheduler)) {\n array.pop();\n return (source) => concat(array, source, scheduler);\n }\n else {\n return (source) => concat(array, source);\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function scan(accumulator, seed) {\n let hasSeed = false;\n if (arguments.length >= 2) {\n hasSeed = true;\n }\n return function scanOperatorFunction(source) {\n return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n };\n}\nclass ScanOperator {\n constructor(accumulator, seed, hasSeed = false) {\n this.accumulator = accumulator;\n this.seed = seed;\n this.hasSeed = hasSeed;\n }\n call(subscriber, source) {\n return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n }\n}\nclass ScanSubscriber extends Subscriber {\n constructor(destination, accumulator, _seed, hasSeed) {\n super(destination);\n this.accumulator = accumulator;\n this._seed = _seed;\n this.hasSeed = hasSeed;\n this.index = 0;\n }\n get seed() {\n return this._seed;\n }\n set seed(value) {\n this.hasSeed = true;\n this._seed = value;\n }\n _next(value) {\n if (!this.hasSeed) {\n this.seed = value;\n this.destination.next(value);\n }\n else {\n return this._tryNext(value);\n }\n }\n _tryNext(value) {\n const index = this.index++;\n let result;\n try {\n result = this.accumulator(this.seed, value, index);\n }\n catch (err) {\n this.destination.error(err);\n }\n this.seed = result;\n this.destination.next(result);\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function takeLast(count) {\n return function takeLastOperatorFunction(source) {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeLastOperator(count));\n }\n };\n}\nclass TakeLastOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n }\n}\nclass TakeLastSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.ring = new Array();\n this.count = 0;\n }\n _next(value) {\n const ring = this.ring;\n const total = this.total;\n const count = this.count++;\n if (ring.length < total) {\n ring.push(value);\n }\n else {\n const index = count % total;\n ring[index] = value;\n }\n }\n _complete() {\n const destination = this.destination;\n let count = this.count;\n if (count > 0) {\n const total = this.count >= this.total ? this.total : this.count;\n const ring = this.ring;\n for (let i = 0; i < total; i++) {\n const idx = (count++) % total;\n destination.next(ring[idx]);\n }\n }\n destination.complete();\n }\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return (source) => {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nclass ThrowIfEmptyOperator {\n constructor(errorFactory) {\n this.errorFactory = errorFactory;\n }\n call(subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n }\n}\nclass ThrowIfEmptySubscriber extends Subscriber {\n constructor(destination, errorFactory) {\n super(destination);\n this.errorFactory = errorFactory;\n this.hasValue = false;\n }\n _next(value) {\n this.hasValue = true;\n this.destination.next(value);\n }\n _complete() {\n if (!this.hasValue) {\n let err;\n try {\n err = this.errorFactory();\n }\n catch (e) {\n err = e;\n }\n this.destination.error(err);\n }\n else {\n return this.destination.complete();\n }\n }\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nexport function finalize(callback) {\n return (source) => source.lift(new FinallyOperator(callback));\n}\nclass FinallyOperator {\n constructor(callback) {\n this.callback = callback;\n }\n call(subscriber, source) {\n return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n }\n}\nclass FinallySubscriber extends Subscriber {\n constructor(destination, callback) {\n super(destination);\n this.add(new Subscription(callback));\n }\n}\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ɵisObservable, ɵisPromise, EventEmitter, Directive, Attribute, Output, Component, NgModuleRef, InjectionToken, InjectFlags, NgModuleFactory, ɵConsole, NgZone, Injectable, Input, HostListener, HostBinding, Optional, ContentChildren, Injector, Compiler, NgProbeToken, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, Inject, APP_INITIALIZER, APP_BOOTSTRAP_LISTENER, NgModule, ApplicationRef, Version } from '@angular/core';\nimport { from, of, BehaviorSubject, combineLatest, Observable, EmptyError, concat, defer, EMPTY, ConnectableObservable, Subject } from 'rxjs';\nimport { map, switchMap, take, startWith, scan, filter, catchError, concatMap, last as last$1, first, mergeMap, tap, takeLast, refCount, finalize, mergeAll } from 'rxjs/operators';\nimport * as i3 from '@angular/common';\nimport { Location, LocationStrategy, PlatformLocation, APP_BASE_HREF, ViewportScroller, HashLocationStrategy, PathLocationStrategy, LOCATION_INITIALIZED } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base for events the router goes through, as opposed to events tied to a specific\n * route. Fired one time for any given navigation.\n *\n * The following code shows how a class subscribes to router events.\n *\n * ```ts\n * import {Event, RouterEvent, Router} from '@angular/router';\n *\n * class MyService {\n * constructor(public router: Router) {\n * router.events.pipe(\n * filter((e: Event): e is RouterEvent => e instanceof RouterEvent)\n * ).subscribe((e: RouterEvent) => {\n * // Do something\n * });\n * }\n * }\n * ```\n *\n * @see `Event`\n * @see [Router events summary](guide/router-reference#router-events)\n * @publicApi\n */\nclass RouterEvent {\n constructor(\n /** A unique ID that the router assigns to every router navigation. */\n id, \n /** The URL that is the destination for this navigation. */\n url) {\n this.id = id;\n this.url = url;\n }\n}\n/**\n * An event triggered when a navigation starts.\n *\n * @publicApi\n */\nclass NavigationStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n navigationTrigger = 'imperative', \n /** @docsNotRequired */\n restoredState = null) {\n super(id, url);\n this.navigationTrigger = navigationTrigger;\n this.restoredState = restoredState;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationStart(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation ends successfully.\n *\n * @see `NavigationStart`\n * @see `NavigationCancel`\n * @see `NavigationError`\n *\n * @publicApi\n */\nclass NavigationEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;\n }\n}\n/**\n * An event triggered when a navigation is canceled, directly or indirectly.\n * This can happen for several reasons including when a route guard\n * returns `false` or initiates a redirect by returning a `UrlTree`.\n *\n * @see `NavigationStart`\n * @see `NavigationEnd`\n * @see `NavigationError`\n *\n * @publicApi\n */\nclass NavigationCancel extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n reason) {\n super(id, url);\n this.reason = reason;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;\n }\n}\n/**\n * An event triggered when a navigation fails due to an unexpected error.\n *\n * @see `NavigationStart`\n * @see `NavigationEnd`\n * @see `NavigationCancel`\n *\n * @publicApi\n */\nclass NavigationError extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n error) {\n super(id, url);\n this.error = error;\n }\n /** @docsNotRequired */\n toString() {\n return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;\n }\n}\n/**\n * An event triggered when routes are recognized.\n *\n * @publicApi\n */\nclass RoutesRecognized extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n /** @docsNotRequired */\n toString() {\n return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the start of the Guard phase of routing.\n *\n * @see `GuardsCheckEnd`\n *\n * @publicApi\n */\nclass GuardsCheckStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Guard phase of routing.\n *\n * @see `GuardsCheckStart`\n *\n * @publicApi\n */\nclass GuardsCheckEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state, \n /** @docsNotRequired */\n shouldActivate) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n this.shouldActivate = shouldActivate;\n }\n toString() {\n return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;\n }\n}\n/**\n * An event triggered at the start of the Resolve phase of routing.\n *\n * Runs in the \"resolve\" phase whether or not there is anything to resolve.\n * In future, may change to only run when there are things to be resolved.\n *\n * @see `ResolveEnd`\n *\n * @publicApi\n */\nclass ResolveStart extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered at the end of the Resolve phase of routing.\n * @see `ResolveStart`.\n *\n * @publicApi\n */\nclass ResolveEnd extends RouterEvent {\n constructor(\n /** @docsNotRequired */\n id, \n /** @docsNotRequired */\n url, \n /** @docsNotRequired */\n urlAfterRedirects, \n /** @docsNotRequired */\n state) {\n super(id, url);\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n toString() {\n return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;\n }\n}\n/**\n * An event triggered before lazy loading a route configuration.\n *\n * @see `RouteConfigLoadEnd`\n *\n * @publicApi\n */\nclass RouteConfigLoadStart {\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n }\n toString() {\n return `RouteConfigLoadStart(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered when a route has been lazy loaded.\n *\n * @see `RouteConfigLoadStart`\n *\n * @publicApi\n */\nclass RouteConfigLoadEnd {\n constructor(\n /** @docsNotRequired */\n route) {\n this.route = route;\n }\n toString() {\n return `RouteConfigLoadEnd(path: ${this.route.path})`;\n }\n}\n/**\n * An event triggered at the start of the child-activation\n * part of the Resolve phase of routing.\n * @see `ChildActivationEnd`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ChildActivationStart {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n return `ChildActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the child-activation part\n * of the Resolve phase of routing.\n * @see `ChildActivationStart`\n * @see `ResolveStart`\n * @publicApi\n */\nclass ChildActivationEnd {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n return `ChildActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the start of the activation part\n * of the Resolve phase of routing.\n * @see `ActivationEnd`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ActivationStart {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n return `ActivationStart(path: '${path}')`;\n }\n}\n/**\n * An event triggered at the end of the activation part\n * of the Resolve phase of routing.\n * @see `ActivationStart`\n * @see `ResolveStart`\n *\n * @publicApi\n */\nclass ActivationEnd {\n constructor(\n /** @docsNotRequired */\n snapshot) {\n this.snapshot = snapshot;\n }\n toString() {\n const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';\n return `ActivationEnd(path: '${path}')`;\n }\n}\n/**\n * An event triggered by scrolling.\n *\n * @publicApi\n */\nclass Scroll {\n constructor(\n /** @docsNotRequired */\n routerEvent, \n /** @docsNotRequired */\n position, \n /** @docsNotRequired */\n anchor) {\n this.routerEvent = routerEvent;\n this.position = position;\n this.anchor = anchor;\n }\n toString() {\n const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;\n return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The primary routing outlet.\n *\n * @publicApi\n */\nconst PRIMARY_OUTLET = 'primary';\nclass ParamsAsMap {\n constructor(params) {\n this.params = params || {};\n }\n has(name) {\n return Object.prototype.hasOwnProperty.call(this.params, name);\n }\n get(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v[0] : v;\n }\n return null;\n }\n getAll(name) {\n if (this.has(name)) {\n const v = this.params[name];\n return Array.isArray(v) ? v : [v];\n }\n return [];\n }\n get keys() {\n return Object.keys(this.params);\n }\n}\n/**\n * Converts a `Params` instance to a `ParamMap`.\n * @param params The instance to convert.\n * @returns The new map instance.\n *\n * @publicApi\n */\nfunction convertToParamMap(params) {\n return new ParamsAsMap(params);\n}\nconst NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';\nfunction navigationCancelingError(message) {\n const error = Error('NavigationCancelingError: ' + message);\n error[NAVIGATION_CANCELING_ERROR] = true;\n return error;\n}\nfunction isNavigationCancelingError(error) {\n return error && error[NAVIGATION_CANCELING_ERROR];\n}\n// Matches the route configuration (`route`) against the actual URL (`segments`).\nfunction defaultUrlMatcher(segments, segmentGroup, route) {\n const parts = route.path.split('/');\n if (parts.length > segments.length) {\n // The actual URL is shorter than the config, no match\n return null;\n }\n if (route.pathMatch === 'full' &&\n (segmentGroup.hasChildren() || parts.length < segments.length)) {\n // The config is longer than the actual URL but we are looking for a full match, return null\n return null;\n }\n const posParams = {};\n // Check each config part against the actual URL\n for (let index = 0; index < parts.length; index++) {\n const part = parts[index];\n const segment = segments[index];\n const isParameter = part.startsWith(':');\n if (isParameter) {\n posParams[part.substring(1)] = segment;\n }\n else if (part !== segment.path) {\n // The actual URL part does not match the config, no match\n return null;\n }\n }\n return { consumed: segments.slice(0, parts.length), posParams };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction shallowEqualArrays(a, b) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; ++i) {\n if (!shallowEqual(a[i], b[i]))\n return false;\n }\n return true;\n}\nfunction shallowEqual(a, b) {\n // While `undefined` should never be possible, it would sometimes be the case in IE 11\n // and pre-chromium Edge. The check below accounts for this edge case.\n const k1 = a ? Object.keys(a) : undefined;\n const k2 = b ? Object.keys(b) : undefined;\n if (!k1 || !k2 || k1.length != k2.length) {\n return false;\n }\n let key;\n for (let i = 0; i < k1.length; i++) {\n key = k1[i];\n if (!equalArraysOrString(a[key], b[key])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Test equality for arrays of strings or a string.\n */\nfunction equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}\n/**\n * Flattens single-level nested arrays.\n */\nfunction flatten(arr) {\n return Array.prototype.concat.apply([], arr);\n}\n/**\n * Return the last element of an array.\n */\nfunction last(a) {\n return a.length > 0 ? a[a.length - 1] : null;\n}\n/**\n * Verifys all booleans in an array are `true`.\n */\nfunction and(bools) {\n return !bools.some(v => !v);\n}\nfunction forEach(map, callback) {\n for (const prop in map) {\n if (map.hasOwnProperty(prop)) {\n callback(map[prop], prop);\n }\n }\n}\nfunction wrapIntoObservable(value) {\n if (ɵisObservable(value)) {\n return value;\n }\n if (ɵisPromise(value)) {\n // Use `Promise.resolve()` to wrap promise-like instances.\n // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the\n // change detection.\n return from(Promise.resolve(value));\n }\n return of(value);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction createEmptyUrlTree() {\n return new UrlTree(new UrlSegmentGroup([], {}), {}, null);\n}\nconst pathCompareMap = {\n 'exact': equalSegmentGroups,\n 'subset': containsSegmentGroup,\n};\nconst paramCompareMap = {\n 'exact': equalParams,\n 'subset': containsParams,\n 'ignored': () => true,\n};\nfunction containsTree(container, containee, options) {\n return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) &&\n paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) &&\n !(options.fragment === 'exact' && container.fragment !== containee.fragment);\n}\nfunction equalParams(container, containee) {\n // TODO: This does not handle array params correctly.\n return shallowEqual(container, containee);\n}\nfunction equalSegmentGroups(container, containee, matrixParams) {\n if (!equalPath(container.segments, containee.segments))\n return false;\n if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {\n return false;\n }\n if (container.numberOfChildren !== containee.numberOfChildren)\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams))\n return false;\n }\n return true;\n}\nfunction containsParams(container, containee) {\n return Object.keys(containee).length <= Object.keys(container).length &&\n Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key]));\n}\nfunction containsSegmentGroup(container, containee, matrixParams) {\n return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams);\n}\nfunction containsSegmentGroupHelper(container, containee, containeePaths, matrixParams) {\n if (container.segments.length > containeePaths.length) {\n const current = container.segments.slice(0, containeePaths.length);\n if (!equalPath(current, containeePaths))\n return false;\n if (containee.hasChildren())\n return false;\n if (!matrixParamsMatch(current, containeePaths, matrixParams))\n return false;\n return true;\n }\n else if (container.segments.length === containeePaths.length) {\n if (!equalPath(container.segments, containeePaths))\n return false;\n if (!matrixParamsMatch(container.segments, containeePaths, matrixParams))\n return false;\n for (const c in containee.children) {\n if (!container.children[c])\n return false;\n if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {\n return false;\n }\n }\n return true;\n }\n else {\n const current = containeePaths.slice(0, container.segments.length);\n const next = containeePaths.slice(container.segments.length);\n if (!equalPath(container.segments, current))\n return false;\n if (!matrixParamsMatch(container.segments, current, matrixParams))\n return false;\n if (!container.children[PRIMARY_OUTLET])\n return false;\n return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next, matrixParams);\n }\n}\nfunction matrixParamsMatch(containerPaths, containeePaths, options) {\n return containeePaths.every((containeeSegment, i) => {\n return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);\n });\n}\n/**\n * @description\n *\n * Represents the parsed URL.\n *\n * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\n * serialized tree.\n * UrlTree is a data structure that provides a lot of affordances in dealing with URLs\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree =\n * router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');\n * const f = tree.fragment; // return 'fragment'\n * const q = tree.queryParams; // returns {debug: 'true'}\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'\n * g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'\n * g.children['support'].segments; // return 1 segment 'help'\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlTree {\n /** @internal */\n constructor(\n /** The root segment group of the URL tree */\n root, \n /** The query params of the URL */\n queryParams, \n /** The fragment of the URL */\n fragment) {\n this.root = root;\n this.queryParams = queryParams;\n this.fragment = fragment;\n }\n get queryParamMap() {\n if (!this._queryParamMap) {\n this._queryParamMap = convertToParamMap(this.queryParams);\n }\n return this._queryParamMap;\n }\n /** @docsNotRequired */\n toString() {\n return DEFAULT_SERIALIZER.serialize(this);\n }\n}\n/**\n * @description\n *\n * Represents the parsed URL segment group.\n *\n * See `UrlTree` for more information.\n *\n * @publicApi\n */\nclass UrlSegmentGroup {\n constructor(\n /** The URL segments of this group. See `UrlSegment` for more information */\n segments, \n /** The list of children of this group */\n children) {\n this.segments = segments;\n this.children = children;\n /** The parent node in the url tree */\n this.parent = null;\n forEach(children, (v, k) => v.parent = this);\n }\n /** Whether the segment has child segments */\n hasChildren() {\n return this.numberOfChildren > 0;\n }\n /** Number of child segments */\n get numberOfChildren() {\n return Object.keys(this.children).length;\n }\n /** @docsNotRequired */\n toString() {\n return serializePaths(this);\n }\n}\n/**\n * @description\n *\n * Represents a single URL segment.\n *\n * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix\n * parameters associated with the segment.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const tree: UrlTree = router.parseUrl('/team;id=33');\n * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];\n * const s: UrlSegment[] = g.segments;\n * s[0].path; // returns 'team'\n * s[0].parameters; // returns {id: 33}\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass UrlSegment {\n constructor(\n /** The path part of a URL segment */\n path, \n /** The matrix parameters associated with a segment */\n parameters) {\n this.path = path;\n this.parameters = parameters;\n }\n get parameterMap() {\n if (!this._parameterMap) {\n this._parameterMap = convertToParamMap(this.parameters);\n }\n return this._parameterMap;\n }\n /** @docsNotRequired */\n toString() {\n return serializePath(this);\n }\n}\nfunction equalSegments(as, bs) {\n return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));\n}\nfunction equalPath(as, bs) {\n if (as.length !== bs.length)\n return false;\n return as.every((a, i) => a.path === bs[i].path);\n}\nfunction mapChildrenIntoArray(segment, fn) {\n let res = [];\n forEach(segment.children, (child, childOutlet) => {\n if (childOutlet === PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n forEach(segment.children, (child, childOutlet) => {\n if (childOutlet !== PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n return res;\n}\n/**\n * @description\n *\n * Serializes and deserializes a URL string into a URL tree.\n *\n * The url serialization strategy is customizable. You can\n * make all URLs case insensitive by providing a custom UrlSerializer.\n *\n * See `DefaultUrlSerializer` for an example of a URL serializer.\n *\n * @publicApi\n */\nclass UrlSerializer {\n}\n/**\n * @description\n *\n * A default implementation of the `UrlSerializer`.\n *\n * Example URLs:\n *\n * ```\n * /inbox/33(popup:compose)\n * /inbox/33;open=true/messages/44\n * ```\n *\n * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the\n * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to\n * specify route specific parameters.\n *\n * @publicApi\n */\nclass DefaultUrlSerializer {\n /** Parses a url into a `UrlTree` */\n parse(url) {\n const p = new UrlParser(url);\n return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\n }\n /** Converts a `UrlTree` into a url */\n serialize(tree) {\n const segment = `/${serializeSegment(tree.root, true)}`;\n const query = serializeQueryParams(tree.queryParams);\n const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';\n return `${segment}${query}${fragment}`;\n }\n}\nconst DEFAULT_SERIALIZER = new DefaultUrlSerializer();\nfunction serializePaths(segment) {\n return segment.segments.map(p => serializePath(p)).join('/');\n}\nfunction serializeSegment(segment, root) {\n if (!segment.hasChildren()) {\n return serializePaths(segment);\n }\n if (root) {\n const primary = segment.children[PRIMARY_OUTLET] ?\n serializeSegment(segment.children[PRIMARY_OUTLET], false) :\n '';\n const children = [];\n forEach(segment.children, (v, k) => {\n if (k !== PRIMARY_OUTLET) {\n children.push(`${k}:${serializeSegment(v, false)}`);\n }\n });\n return children.length > 0 ? `${primary}(${children.join('//')})` : primary;\n }\n else {\n const children = mapChildrenIntoArray(segment, (v, k) => {\n if (k === PRIMARY_OUTLET) {\n return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\n }\n return [`${k}:${serializeSegment(v, false)}`];\n });\n // use no parenthesis if the only child is a primary outlet route\n if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {\n return `${serializePaths(segment)}/${children[0]}`;\n }\n return `${serializePaths(segment)}/(${children.join('//')})`;\n }\n}\n/**\n * Encodes a URI string with the default encoding. This function will only ever be called from\n * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need\n * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't\n * have to be encoded per https://url.spec.whatwg.org.\n */\nfunction encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}\n/**\n * This function should be used to encode both keys and values in a query string key/value. In\n * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriQuery(s) {\n return encodeUriString(s).replace(/%3B/gi, ';');\n}\n/**\n * This function should be used to encode a URL fragment. In the following URL, you need to call\n * encodeUriFragment on \"f\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriFragment(s) {\n return encodeURI(s);\n}\n/**\n * This function should be run on any URI segment as well as the key and value in a key/value\n * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",\n * \"mk\", and \"mv\":\n *\n * http://www.site.org/html;mk=mv?k=v#f\n */\nfunction encodeUriSegment(s) {\n return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&');\n}\nfunction decode(s) {\n return decodeURIComponent(s);\n}\n// Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \".\n// decodeURIComponent function will not decode \"+\" as a space.\nfunction decodeQuery(s) {\n return decode(s.replace(/\\+/g, '%20'));\n}\nfunction serializePath(path) {\n return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;\n}\nfunction serializeMatrixParams(params) {\n return Object.keys(params)\n .map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`)\n .join('');\n}\nfunction serializeQueryParams(params) {\n const strParams = Object.keys(params)\n .map((name) => {\n const value = params[name];\n return Array.isArray(value) ?\n value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') :\n `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;\n })\n .filter(s => !!s);\n return strParams.length ? `?${strParams.join('&')}` : '';\n}\nconst SEGMENT_RE = /^[^\\/()?;=#]+/;\nfunction matchSegments(str) {\n const match = str.match(SEGMENT_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_RE = /^[^=?&#]+/;\n// Return the name of the query param at the start of the string or an empty string\nfunction matchQueryParams(str) {\n const match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}\nconst QUERY_PARAM_VALUE_RE = /^[^&#]+/;\n// Return the value of the query param at the start of the string or an empty string\nfunction matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}\nclass UrlParser {\n constructor(url) {\n this.url = url;\n this.remaining = url;\n }\n parseRootSegment() {\n this.consumeOptional('/');\n if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {\n return new UrlSegmentGroup([], {});\n }\n // The root segment group never has segments\n return new UrlSegmentGroup([], this.parseChildren());\n }\n parseQueryParams() {\n const params = {};\n if (this.consumeOptional('?')) {\n do {\n this.parseQueryParam(params);\n } while (this.consumeOptional('&'));\n }\n return params;\n }\n parseFragment() {\n return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;\n }\n parseChildren() {\n if (this.remaining === '') {\n return {};\n }\n this.consumeOptional('/');\n const segments = [];\n if (!this.peekStartsWith('(')) {\n segments.push(this.parseSegment());\n }\n while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\n this.capture('/');\n segments.push(this.parseSegment());\n }\n let children = {};\n if (this.peekStartsWith('/(')) {\n this.capture('/');\n children = this.parseParens(true);\n }\n let res = {};\n if (this.peekStartsWith('(')) {\n res = this.parseParens(false);\n }\n if (segments.length > 0 || Object.keys(children).length > 0) {\n res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);\n }\n return res;\n }\n // parse a segment with its matrix parameters\n // ie `name;k1=v1;k2`\n parseSegment() {\n const path = matchSegments(this.remaining);\n if (path === '' && this.peekStartsWith(';')) {\n throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);\n }\n this.capture(path);\n return new UrlSegment(decode(path), this.parseMatrixParams());\n }\n parseMatrixParams() {\n const params = {};\n while (this.consumeOptional(';')) {\n this.parseParam(params);\n }\n return params;\n }\n parseParam(params) {\n const key = matchSegments(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchSegments(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n params[decode(key)] = decode(value);\n }\n // Parse a single query parameter `name[=value]`\n parseQueryParam(params) {\n const key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n let value = '';\n if (this.consumeOptional('=')) {\n const valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n const decodedKey = decodeQuery(key);\n const decodedVal = decodeQuery(value);\n if (params.hasOwnProperty(decodedKey)) {\n // Append to existing values\n let currentVal = params[decodedKey];\n if (!Array.isArray(currentVal)) {\n currentVal = [currentVal];\n params[decodedKey] = currentVal;\n }\n currentVal.push(decodedVal);\n }\n else {\n // Create a new value\n params[decodedKey] = decodedVal;\n }\n }\n // parse `(a/b//outlet_name:c/d)`\n parseParens(allowPrimary) {\n const segments = {};\n this.capture('(');\n while (!this.consumeOptional(')') && this.remaining.length > 0) {\n const path = matchSegments(this.remaining);\n const next = this.remaining[path.length];\n // if is is not one of these characters, then the segment was unescaped\n // or the group was not closed\n if (next !== '/' && next !== ')' && next !== ';') {\n throw new Error(`Cannot parse url '${this.url}'`);\n }\n let outletName = undefined;\n if (path.indexOf(':') > -1) {\n outletName = path.substr(0, path.indexOf(':'));\n this.capture(outletName);\n this.capture(':');\n }\n else if (allowPrimary) {\n outletName = PRIMARY_OUTLET;\n }\n const children = this.parseChildren();\n segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :\n new UrlSegmentGroup([], children);\n this.consumeOptional('//');\n }\n return segments;\n }\n peekStartsWith(str) {\n return this.remaining.startsWith(str);\n }\n // Consumes the prefix when it is present and returns whether it has been consumed\n consumeOptional(str) {\n if (this.peekStartsWith(str)) {\n this.remaining = this.remaining.substring(str.length);\n return true;\n }\n return false;\n }\n capture(str) {\n if (!this.consumeOptional(str)) {\n throw new Error(`Expected \"${str}\".`);\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass Tree {\n constructor(root) {\n this._root = root;\n }\n get root() {\n return this._root.value;\n }\n /**\n * @internal\n */\n parent(t) {\n const p = this.pathFromRoot(t);\n return p.length > 1 ? p[p.length - 2] : null;\n }\n /**\n * @internal\n */\n children(t) {\n const n = findNode(t, this._root);\n return n ? n.children.map(t => t.value) : [];\n }\n /**\n * @internal\n */\n firstChild(t) {\n const n = findNode(t, this._root);\n return n && n.children.length > 0 ? n.children[0].value : null;\n }\n /**\n * @internal\n */\n siblings(t) {\n const p = findPath(t, this._root);\n if (p.length < 2)\n return [];\n const c = p[p.length - 2].children.map(c => c.value);\n return c.filter(cc => cc !== t);\n }\n /**\n * @internal\n */\n pathFromRoot(t) {\n return findPath(t, this._root).map(s => s.value);\n }\n}\n// DFS for the node matching the value\nfunction findNode(value, node) {\n if (value === node.value)\n return node;\n for (const child of node.children) {\n const node = findNode(value, child);\n if (node)\n return node;\n }\n return null;\n}\n// Return the path to the node with the given value using DFS\nfunction findPath(value, node) {\n if (value === node.value)\n return [node];\n for (const child of node.children) {\n const path = findPath(value, child);\n if (path.length) {\n path.unshift(node);\n return path;\n }\n }\n return [];\n}\nclass TreeNode {\n constructor(value, children) {\n this.value = value;\n this.children = children;\n }\n toString() {\n return `TreeNode(${this.value})`;\n }\n}\n// Return the list of T indexed by outlet name\nfunction nodeChildrenAsMap(node) {\n const map = {};\n if (node) {\n node.children.forEach(child => map[child.value.outlet] = child);\n }\n return map;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents the state of the router as a tree of activated routes.\n *\n * @usageNotes\n *\n * Every node in the route tree is an `ActivatedRoute` instance\n * that knows about the \"consumed\" URL segments, the extracted parameters,\n * and the resolved data.\n * Use the `ActivatedRoute` properties to traverse the tree from any node.\n *\n * The following fragment shows how a component gets the root node\n * of the current state to establish its own route tree:\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const root: ActivatedRoute = state.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @see `ActivatedRoute`\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass RouterState extends Tree {\n /** @internal */\n constructor(root, \n /** The current snapshot of the router state */\n snapshot) {\n super(root);\n this.snapshot = snapshot;\n setRouterState(this, root);\n }\n toString() {\n return this.snapshot.toString();\n }\n}\nfunction createEmptyState(urlTree, rootComponent) {\n const snapshot = createEmptyStateSnapshot(urlTree, rootComponent);\n const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);\n const emptyParams = new BehaviorSubject({});\n const emptyData = new BehaviorSubject({});\n const emptyQueryParams = new BehaviorSubject({});\n const fragment = new BehaviorSubject('');\n const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\n activated.snapshot = snapshot.root;\n return new RouterState(new TreeNode(activated, []), snapshot);\n}\nfunction createEmptyStateSnapshot(urlTree, rootComponent) {\n const emptyParams = {};\n const emptyData = {};\n const emptyQueryParams = {};\n const fragment = '';\n const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, urlTree.root, -1, {});\n return new RouterStateSnapshot('', new TreeNode(activated, []));\n}\n/**\n * Provides access to information about a route associated with a component\n * that is loaded in an outlet.\n * Use to traverse the `RouterState` tree and extract information from nodes.\n *\n * The following example shows how to construct a component using information from a\n * currently activated route.\n *\n * Note: the observables in this class only emit when the current and previous values differ based\n * on shallow equality. For example, changing deeply nested properties in resolved `data` will not\n * cause the `ActivatedRoute.data` `Observable` to emit a new value.\n *\n * {@example router/activated-route/module.ts region=\"activated-route\"\n * header=\"activated-route.component.ts\"}\n *\n * @see [Getting route information](guide/router#getting-route-information)\n *\n * @publicApi\n */\nclass ActivatedRoute {\n /** @internal */\n constructor(\n /** An observable of the URL segments matched by this route. */\n url, \n /** An observable of the matrix parameters scoped to this route. */\n params, \n /** An observable of the query parameters shared by all the routes. */\n queryParams, \n /** An observable of the URL fragment shared by all the routes. */\n fragment, \n /** An observable of the static and resolved data of this route. */\n data, \n /** The outlet name of the route, a constant. */\n outlet, \n /** The component of the route, a constant. */\n // TODO(vsavkin): remove |string\n component, futureSnapshot) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this._futureSnapshot = futureSnapshot;\n }\n /** The configuration used to match this route. */\n get routeConfig() {\n return this._futureSnapshot.routeConfig;\n }\n /** The root of the router state. */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree. */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree. */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree. */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route. */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n /**\n * An Observable that contains a map of the required and optional parameters\n * specific to the route.\n * The map supports retrieving single and multiple values from the same parameter.\n */\n get paramMap() {\n if (!this._paramMap) {\n this._paramMap = this.params.pipe(map((p) => convertToParamMap(p)));\n }\n return this._paramMap;\n }\n /**\n * An Observable that contains a map of the query parameters available to all routes.\n * The map supports retrieving single and multiple values from the query parameter.\n */\n get queryParamMap() {\n if (!this._queryParamMap) {\n this._queryParamMap =\n this.queryParams.pipe(map((p) => convertToParamMap(p)));\n }\n return this._queryParamMap;\n }\n toString() {\n return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;\n }\n}\n/**\n * Returns the inherited params, data, and resolve for a given route.\n * By default, this only inherits values up to the nearest path-less or component-less route.\n * @internal\n */\nfunction inheritedParamsDataResolve(route, paramsInheritanceStrategy = 'emptyOnly') {\n const pathFromRoot = route.pathFromRoot;\n let inheritingStartingFrom = 0;\n if (paramsInheritanceStrategy !== 'always') {\n inheritingStartingFrom = pathFromRoot.length - 1;\n while (inheritingStartingFrom >= 1) {\n const current = pathFromRoot[inheritingStartingFrom];\n const parent = pathFromRoot[inheritingStartingFrom - 1];\n // current route is an empty path => inherits its parent's params and data\n if (current.routeConfig && current.routeConfig.path === '') {\n inheritingStartingFrom--;\n // parent is componentless => current route should inherit its params and data\n }\n else if (!parent.component) {\n inheritingStartingFrom--;\n }\n else {\n break;\n }\n }\n }\n return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));\n}\n/** @internal */\nfunction flattenInherited(pathFromRoot) {\n return pathFromRoot.reduce((res, curr) => {\n const params = Object.assign(Object.assign({}, res.params), curr.params);\n const data = Object.assign(Object.assign({}, res.data), curr.data);\n const resolve = Object.assign(Object.assign({}, res.resolve), curr._resolvedData);\n return { params, data, resolve };\n }, { params: {}, data: {}, resolve: {} });\n}\n/**\n * @description\n *\n * Contains the information about a route associated with a component loaded in an\n * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to\n * traverse the router state tree.\n *\n * The following example initializes a component with route information extracted\n * from the snapshot of the root node at the time of creation.\n *\n * ```\n * @Component({templateUrl:'./my-component.html'})\n * class MyComponent {\n * constructor(route: ActivatedRoute) {\n * const id: string = route.snapshot.params.id;\n * const url: string = route.snapshot.url.join('');\n * const user = route.snapshot.data.user;\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass ActivatedRouteSnapshot {\n /** @internal */\n constructor(\n /** The URL segments matched by this route */\n url, \n /**\n * The matrix parameters scoped to this route.\n *\n * You can compute all params (or data) in the router state or to get params outside\n * of an activated component by traversing the `RouterState` tree as in the following\n * example:\n * ```\n * collectRouteParams(router: Router) {\n * let params = {};\n * let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];\n * while (stack.length > 0) {\n * const route = stack.pop()!;\n * params = {...params, ...route.params};\n * stack.push(...route.children);\n * }\n * return params;\n * }\n * ```\n */\n params, \n /** The query parameters shared by all the routes */\n queryParams, \n /** The URL fragment shared by all the routes */\n fragment, \n /** The static and resolved data of this route */\n data, \n /** The outlet name of the route */\n outlet, \n /** The component of the route */\n component, routeConfig, urlSegment, lastPathIndex, resolve) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this.routeConfig = routeConfig;\n this._urlSegment = urlSegment;\n this._lastPathIndex = lastPathIndex;\n this._resolve = resolve;\n }\n /** The root of the router state */\n get root() {\n return this._routerState.root;\n }\n /** The parent of this route in the router state tree */\n get parent() {\n return this._routerState.parent(this);\n }\n /** The first child of this route in the router state tree */\n get firstChild() {\n return this._routerState.firstChild(this);\n }\n /** The children of this route in the router state tree */\n get children() {\n return this._routerState.children(this);\n }\n /** The path from the root of the router state tree to this route */\n get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }\n get paramMap() {\n if (!this._paramMap) {\n this._paramMap = convertToParamMap(this.params);\n }\n return this._paramMap;\n }\n get queryParamMap() {\n if (!this._queryParamMap) {\n this._queryParamMap = convertToParamMap(this.queryParams);\n }\n return this._queryParamMap;\n }\n toString() {\n const url = this.url.map(segment => segment.toString()).join('/');\n const matched = this.routeConfig ? this.routeConfig.path : '';\n return `Route(url:'${url}', path:'${matched}')`;\n }\n}\n/**\n * @description\n *\n * Represents the state of the router at a moment in time.\n *\n * This is a tree of activated route snapshots. Every node in this tree knows about\n * the \"consumed\" URL segments, the extracted parameters, and the resolved data.\n *\n * The following example shows how a component is initialized with information\n * from the snapshot of the root node's state at the time of creation.\n *\n * ```\n * @Component({templateUrl:'template.html'})\n * class MyComponent {\n * constructor(router: Router) {\n * const state: RouterState = router.routerState;\n * const snapshot: RouterStateSnapshot = state.snapshot;\n * const root: ActivatedRouteSnapshot = snapshot.root;\n * const child = root.firstChild;\n * const id: Observable<string> = child.params.map(p => p.id);\n * //...\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass RouterStateSnapshot extends Tree {\n /** @internal */\n constructor(\n /** The url from which this snapshot was created */\n url, root) {\n super(root);\n this.url = url;\n setRouterState(this, root);\n }\n toString() {\n return serializeNode(this._root);\n }\n}\nfunction setRouterState(state, node) {\n node.value._routerState = state;\n node.children.forEach(c => setRouterState(state, c));\n}\nfunction serializeNode(node) {\n const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';\n return `${node.value}${c}`;\n}\n/**\n * The expectation is that the activate route is created with the right set of parameters.\n * So we push new values into the observables only when they are not the initial values.\n * And we detect that by checking if the snapshot field is set.\n */\nfunction advanceActivatedRoute(route) {\n if (route.snapshot) {\n const currentSnapshot = route.snapshot;\n const nextSnapshot = route._futureSnapshot;\n route.snapshot = nextSnapshot;\n if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {\n route.queryParams.next(nextSnapshot.queryParams);\n }\n if (currentSnapshot.fragment !== nextSnapshot.fragment) {\n route.fragment.next(nextSnapshot.fragment);\n }\n if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {\n route.params.next(nextSnapshot.params);\n }\n if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {\n route.url.next(nextSnapshot.url);\n }\n if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {\n route.data.next(nextSnapshot.data);\n }\n }\n else {\n route.snapshot = route._futureSnapshot;\n // this is for resolved data\n route.data.next(route._futureSnapshot.data);\n }\n}\nfunction equalParamsAndUrlSegments(a, b) {\n const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);\n const parentsMismatch = !a.parent !== !b.parent;\n return equalUrlParams && !parentsMismatch &&\n (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction createRouterState(routeReuseStrategy, curr, prevState) {\n const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);\n return new RouterState(root, curr);\n}\nfunction createNode(routeReuseStrategy, curr, prevState) {\n // reuse an activated route that is currently displayed on the screen\n if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {\n const value = prevState.value;\n value._futureSnapshot = curr.value;\n const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);\n return new TreeNode(value, children);\n }\n else {\n if (routeReuseStrategy.shouldAttach(curr.value)) {\n // retrieve an activated route that is used to be displayed, but is not currently displayed\n const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);\n if (detachedRouteHandle !== null) {\n const tree = detachedRouteHandle.route;\n tree.value._futureSnapshot = curr.value;\n tree.children = curr.children.map(c => createNode(routeReuseStrategy, c));\n return tree;\n }\n }\n const value = createActivatedRoute(curr.value);\n const children = curr.children.map(c => createNode(routeReuseStrategy, c));\n return new TreeNode(value, children);\n }\n}\nfunction createOrReuseChildren(routeReuseStrategy, curr, prevState) {\n return curr.children.map(child => {\n for (const p of prevState.children) {\n if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {\n return createNode(routeReuseStrategy, child, p);\n }\n }\n return createNode(routeReuseStrategy, child);\n });\n}\nfunction createActivatedRoute(c) {\n return new ActivatedRoute(new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams), new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction createUrlTree(route, urlTree, commands, queryParams, fragment) {\n if (commands.length === 0) {\n return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);\n }\n const nav = computeNavigation(commands);\n if (nav.toRoot()) {\n return tree(urlTree.root, new UrlSegmentGroup([], {}), urlTree, queryParams, fragment);\n }\n const startingPosition = findStartingPosition(nav, urlTree, route);\n const segmentGroup = startingPosition.processChildren ?\n updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) :\n updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);\n return tree(startingPosition.segmentGroup, segmentGroup, urlTree, queryParams, fragment);\n}\nfunction isMatrixParams(command) {\n return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;\n}\n/**\n * Determines if a given command has an `outlets` map. When we encounter a command\n * with an outlets k/v map, we need to apply each outlet individually to the existing segment.\n */\nfunction isCommandWithOutlets(command) {\n return typeof command === 'object' && command != null && command.outlets;\n}\nfunction tree(oldSegmentGroup, newSegmentGroup, urlTree, queryParams, fragment) {\n let qp = {};\n if (queryParams) {\n forEach(queryParams, (value, name) => {\n qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;\n });\n }\n if (urlTree.root === oldSegmentGroup) {\n return new UrlTree(newSegmentGroup, qp, fragment);\n }\n return new UrlTree(replaceSegment(urlTree.root, oldSegmentGroup, newSegmentGroup), qp, fragment);\n}\nfunction replaceSegment(current, oldSegment, newSegment) {\n const children = {};\n forEach(current.children, (c, outletName) => {\n if (c === oldSegment) {\n children[outletName] = newSegment;\n }\n else {\n children[outletName] = replaceSegment(c, oldSegment, newSegment);\n }\n });\n return new UrlSegmentGroup(current.segments, children);\n}\nclass Navigation {\n constructor(isAbsolute, numberOfDoubleDots, commands) {\n this.isAbsolute = isAbsolute;\n this.numberOfDoubleDots = numberOfDoubleDots;\n this.commands = commands;\n if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {\n throw new Error('Root segment cannot have matrix parameters');\n }\n const cmdWithOutlet = commands.find(isCommandWithOutlets);\n if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {\n throw new Error('{outlets:{}} has to be the last command');\n }\n }\n toRoot() {\n return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';\n }\n}\n/** Transforms commands to a normalized `Navigation` */\nfunction computeNavigation(commands) {\n if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] === '/') {\n return new Navigation(true, 0, commands);\n }\n let numberOfDoubleDots = 0;\n let isAbsolute = false;\n const res = commands.reduce((res, cmd, cmdIdx) => {\n if (typeof cmd === 'object' && cmd != null) {\n if (cmd.outlets) {\n const outlets = {};\n forEach(cmd.outlets, (commands, name) => {\n outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\n });\n return [...res, { outlets }];\n }\n if (cmd.segmentPath) {\n return [...res, cmd.segmentPath];\n }\n }\n if (!(typeof cmd === 'string')) {\n return [...res, cmd];\n }\n if (cmdIdx === 0) {\n cmd.split('/').forEach((urlPart, partIndex) => {\n if (partIndex == 0 && urlPart === '.') {\n // skip './a'\n }\n else if (partIndex == 0 && urlPart === '') { // '/a'\n isAbsolute = true;\n }\n else if (urlPart === '..') { // '../a'\n numberOfDoubleDots++;\n }\n else if (urlPart != '') {\n res.push(urlPart);\n }\n });\n return res;\n }\n return [...res, cmd];\n }, []);\n return new Navigation(isAbsolute, numberOfDoubleDots, res);\n}\nclass Position {\n constructor(segmentGroup, processChildren, index) {\n this.segmentGroup = segmentGroup;\n this.processChildren = processChildren;\n this.index = index;\n }\n}\nfunction findStartingPosition(nav, tree, route) {\n if (nav.isAbsolute) {\n return new Position(tree.root, true, 0);\n }\n if (route.snapshot._lastPathIndex === -1) {\n const segmentGroup = route.snapshot._urlSegment;\n // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children\n // see issue #26224, #13011, #35687\n // However, if the ActivatedRoute is the root we should process children like above.\n const processChildren = segmentGroup === tree.root;\n return new Position(segmentGroup, processChildren, 0);\n }\n const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;\n const index = route.snapshot._lastPathIndex + modifier;\n return createPositionApplyingDoubleDots(route.snapshot._urlSegment, index, nav.numberOfDoubleDots);\n}\nfunction createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\n let g = group;\n let ci = index;\n let dd = numberOfDoubleDots;\n while (dd > ci) {\n dd -= ci;\n g = g.parent;\n if (!g) {\n throw new Error('Invalid number of \\'../\\'');\n }\n ci = g.segments.length;\n }\n return new Position(g, false, ci - dd);\n}\nfunction getOutlets(commands) {\n if (isCommandWithOutlets(commands[0])) {\n return commands[0].outlets;\n }\n return { [PRIMARY_OUTLET]: commands };\n}\nfunction updateSegmentGroup(segmentGroup, startIndex, commands) {\n if (!segmentGroup) {\n segmentGroup = new UrlSegmentGroup([], {});\n }\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\n }\n const m = prefixedWith(segmentGroup, startIndex, commands);\n const slicedCommands = commands.slice(m.commandIndex);\n if (m.match && m.pathIndex < segmentGroup.segments.length) {\n const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});\n g.children[PRIMARY_OUTLET] =\n new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);\n return updateSegmentGroupChildren(g, 0, slicedCommands);\n }\n else if (m.match && slicedCommands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else if (m.match && !segmentGroup.hasChildren()) {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n else if (m.match) {\n return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\n }\n else {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n}\nfunction updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\n if (commands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else {\n const outlets = getOutlets(commands);\n const children = {};\n forEach(outlets, (commands, outlet) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\n }\n });\n forEach(segmentGroup.children, (child, childOutlet) => {\n if (outlets[childOutlet] === undefined) {\n children[childOutlet] = child;\n }\n });\n return new UrlSegmentGroup(segmentGroup.segments, children);\n }\n}\nfunction prefixedWith(segmentGroup, startIndex, commands) {\n let currentCommandIndex = 0;\n let currentPathIndex = startIndex;\n const noMatch = { match: false, pathIndex: 0, commandIndex: 0 };\n while (currentPathIndex < segmentGroup.segments.length) {\n if (currentCommandIndex >= commands.length)\n return noMatch;\n const path = segmentGroup.segments[currentPathIndex];\n const command = commands[currentCommandIndex];\n // Do not try to consume command as part of the prefixing if it has outlets because it can\n // contain outlets other than the one being processed. Consuming the outlets command would\n // result in other outlets being ignored.\n if (isCommandWithOutlets(command)) {\n break;\n }\n const curr = `${command}`;\n const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\n if (currentPathIndex > 0 && curr === undefined)\n break;\n if (curr && next && (typeof next === 'object') && next.outlets === undefined) {\n if (!compare(curr, next, path))\n return noMatch;\n currentCommandIndex += 2;\n }\n else {\n if (!compare(curr, {}, path))\n return noMatch;\n currentCommandIndex++;\n }\n currentPathIndex++;\n }\n return { match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex };\n}\nfunction createNewSegmentGroup(segmentGroup, startIndex, commands) {\n const paths = segmentGroup.segments.slice(0, startIndex);\n let i = 0;\n while (i < commands.length) {\n const command = commands[i];\n if (isCommandWithOutlets(command)) {\n const children = createNewSegmentChildren(command.outlets);\n return new UrlSegmentGroup(paths, children);\n }\n // if we start with an object literal, we need to reuse the path part from the segment\n if (i === 0 && isMatrixParams(commands[0])) {\n const p = segmentGroup.segments[startIndex];\n paths.push(new UrlSegment(p.path, stringify(commands[0])));\n i++;\n continue;\n }\n const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;\n const next = (i < commands.length - 1) ? commands[i + 1] : null;\n if (curr && next && isMatrixParams(next)) {\n paths.push(new UrlSegment(curr, stringify(next)));\n i += 2;\n }\n else {\n paths.push(new UrlSegment(curr, {}));\n i++;\n }\n }\n return new UrlSegmentGroup(paths, {});\n}\nfunction createNewSegmentChildren(outlets) {\n const children = {};\n forEach(outlets, (commands, outlet) => {\n if (typeof commands === 'string') {\n commands = [commands];\n }\n if (commands !== null) {\n children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\n }\n });\n return children;\n}\nfunction stringify(params) {\n const res = {};\n forEach(params, (v, k) => res[k] = `${v}`);\n return res;\n}\nfunction compare(path, params, segment) {\n return path == segment.path && shallowEqual(params, segment.parameters);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent) => map(t => {\n new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent)\n .activate(rootContexts);\n return t;\n});\nclass ActivateRoutes {\n constructor(routeReuseStrategy, futureState, currState, forwardEvent) {\n this.routeReuseStrategy = routeReuseStrategy;\n this.futureState = futureState;\n this.currState = currState;\n this.forwardEvent = forwardEvent;\n }\n activate(parentContexts) {\n const futureRoot = this.futureState._root;\n const currRoot = this.currState ? this.currState._root : null;\n this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);\n advanceActivatedRoute(this.futureState.root);\n this.activateChildRoutes(futureRoot, currRoot, parentContexts);\n }\n // De-activate the child route that are not re-used for the future state\n deactivateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n // Recurse on the routes active in the future state to de-activate deeper children\n futureNode.children.forEach(futureChild => {\n const childOutletName = futureChild.value.outlet;\n this.deactivateRoutes(futureChild, children[childOutletName], contexts);\n delete children[childOutletName];\n });\n // De-activate the routes that will not be re-used\n forEach(children, (v, childName) => {\n this.deactivateRouteAndItsChildren(v, contexts);\n });\n }\n deactivateRoutes(futureNode, currNode, parentContext) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n if (future === curr) {\n // Reusing the node, check to see if the children need to be de-activated\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContext.getContext(future.outlet);\n if (context) {\n this.deactivateChildRoutes(futureNode, currNode, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.deactivateChildRoutes(futureNode, currNode, parentContext);\n }\n }\n else {\n if (curr) {\n // Deactivate the current route which will not be re-used\n this.deactivateRouteAndItsChildren(currNode, parentContext);\n }\n }\n }\n deactivateRouteAndItsChildren(route, parentContexts) {\n // If there is no component, the Route is never attached to an outlet (because there is no\n // component to attach).\n if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {\n this.detachAndStoreRouteSubtree(route, parentContexts);\n }\n else {\n this.deactivateRouteAndOutlet(route, parentContexts);\n }\n }\n detachAndStoreRouteSubtree(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const childOutlet of Object.keys(children)) {\n this.deactivateRouteAndItsChildren(children[childOutlet], contexts);\n }\n if (context && context.outlet) {\n const componentRef = context.outlet.detach();\n const contexts = context.children.onOutletDeactivated();\n this.routeReuseStrategy.store(route.value.snapshot, { componentRef, route, contexts });\n }\n }\n deactivateRouteAndOutlet(route, parentContexts) {\n const context = parentContexts.getContext(route.value.outlet);\n // The context could be `null` if we are on a componentless route but there may still be\n // children that need deactivating.\n const contexts = context && route.value.component ? context.children : parentContexts;\n const children = nodeChildrenAsMap(route);\n for (const childOutlet of Object.keys(children)) {\n this.deactivateRouteAndItsChildren(children[childOutlet], contexts);\n }\n if (context && context.outlet) {\n // Destroy the component\n context.outlet.deactivate();\n // Destroy the contexts for all the outlets that were in the component\n context.children.onOutletDeactivated();\n // Clear the information about the attached component on the context but keep the reference to\n // the outlet.\n context.attachRef = null;\n context.resolver = null;\n context.route = null;\n }\n }\n activateChildRoutes(futureNode, currNode, contexts) {\n const children = nodeChildrenAsMap(currNode);\n futureNode.children.forEach(c => {\n this.activateRoutes(c, children[c.value.outlet], contexts);\n this.forwardEvent(new ActivationEnd(c.value.snapshot));\n });\n if (futureNode.children.length) {\n this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));\n }\n }\n activateRoutes(futureNode, currNode, parentContexts) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n advanceActivatedRoute(future);\n // reusing the node\n if (future === curr) {\n if (future.component) {\n // If we have a normal route, we need to go through an outlet.\n const context = parentContexts.getOrCreateContext(future.outlet);\n this.activateChildRoutes(futureNode, currNode, context.children);\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, currNode, parentContexts);\n }\n }\n else {\n if (future.component) {\n // if we have a normal route, we need to place the component into the outlet and recurse.\n const context = parentContexts.getOrCreateContext(future.outlet);\n if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {\n const stored = this.routeReuseStrategy.retrieve(future.snapshot);\n this.routeReuseStrategy.store(future.snapshot, null);\n context.children.onOutletReAttached(stored.contexts);\n context.attachRef = stored.componentRef;\n context.route = stored.route.value;\n if (context.outlet) {\n // Attach right away when the outlet has already been instantiated\n // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated\n context.outlet.attach(stored.componentRef, stored.route.value);\n }\n advanceActivatedRoute(stored.route.value);\n this.activateChildRoutes(futureNode, null, context.children);\n }\n else {\n const config = parentLoadedConfig(future.snapshot);\n const cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;\n context.attachRef = null;\n context.route = future;\n context.resolver = cmpFactoryResolver;\n if (context.outlet) {\n // Activate the outlet when it has already been instantiated\n // Otherwise it will get activated from its `ngOnInit` when instantiated\n context.outlet.activateWith(future, cmpFactoryResolver);\n }\n this.activateChildRoutes(futureNode, null, context.children);\n }\n }\n else {\n // if we have a componentless route, we recurse but keep the same outlet map.\n this.activateChildRoutes(futureNode, null, parentContexts);\n }\n }\n }\n}\nfunction parentLoadedConfig(snapshot) {\n for (let s = snapshot.parent; s; s = s.parent) {\n const route = s.routeConfig;\n if (route && route._loadedConfig)\n return route._loadedConfig;\n if (route && route.component)\n return null;\n }\n return null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass LoadedRouterConfig {\n constructor(routes, module) {\n this.routes = routes;\n this.module = module;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Simple function check, but generic so type inference will flow. Example:\n *\n * function product(a: number, b: number) {\n * return a * b;\n * }\n *\n * if (isFunction<product>(fn)) {\n * return fn(1, 2);\n * } else {\n * throw \"Must provide the `product` function\";\n * }\n */\nfunction isFunction(v) {\n return typeof v === 'function';\n}\nfunction isBoolean(v) {\n return typeof v === 'boolean';\n}\nfunction isUrlTree(v) {\n return v instanceof UrlTree;\n}\nfunction isCanLoad(guard) {\n return guard && isFunction(guard.canLoad);\n}\nfunction isCanActivate(guard) {\n return guard && isFunction(guard.canActivate);\n}\nfunction isCanActivateChild(guard) {\n return guard && isFunction(guard.canActivateChild);\n}\nfunction isCanDeactivate(guard) {\n return guard && isFunction(guard.canDeactivate);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst INITIAL_VALUE = Symbol('INITIAL_VALUE');\nfunction prioritizedGuardValue() {\n return switchMap(obs => {\n return combineLatest(obs.map(o => o.pipe(take(1), startWith(INITIAL_VALUE))))\n .pipe(scan((acc, list) => {\n let isPending = false;\n return list.reduce((innerAcc, val, i) => {\n if (innerAcc !== INITIAL_VALUE)\n return innerAcc;\n // Toggle pending flag if any values haven't been set yet\n if (val === INITIAL_VALUE)\n isPending = true;\n // Any other return values are only valid if we haven't yet hit a pending\n // call. This guarantees that in the case of a guard at the bottom of the\n // tree that returns a redirect, we will wait for the higher priority\n // guard at the top to finish before performing the redirect.\n if (!isPending) {\n // Early return when we hit a `false` value as that should always\n // cancel navigation\n if (val === false)\n return val;\n if (i === list.length - 1 || isUrlTree(val)) {\n return val;\n }\n }\n return innerAcc;\n }, acc);\n }, INITIAL_VALUE), filter(item => item !== INITIAL_VALUE), map(item => isUrlTree(item) ? item : item === true), //\n take(1));\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Store contextual information about a `RouterOutlet`\n *\n * @publicApi\n */\nclass OutletContext {\n constructor() {\n this.outlet = null;\n this.route = null;\n this.resolver = null;\n this.children = new ChildrenOutletContexts();\n this.attachRef = null;\n }\n}\n/**\n * Store contextual information about the children (= nested) `RouterOutlet`\n *\n * @publicApi\n */\nclass ChildrenOutletContexts {\n constructor() {\n // contexts for child outlets, by name.\n this.contexts = new Map();\n }\n /** Called when a `RouterOutlet` directive is instantiated */\n onChildOutletCreated(childName, outlet) {\n const context = this.getOrCreateContext(childName);\n context.outlet = outlet;\n this.contexts.set(childName, context);\n }\n /**\n * Called when a `RouterOutlet` directive is destroyed.\n * We need to keep the context as the outlet could be destroyed inside a NgIf and might be\n * re-created later.\n */\n onChildOutletDestroyed(childName) {\n const context = this.getContext(childName);\n if (context) {\n context.outlet = null;\n context.attachRef = null;\n }\n }\n /**\n * Called when the corresponding route is deactivated during navigation.\n * Because the component get destroyed, all children outlet are destroyed.\n */\n onOutletDeactivated() {\n const contexts = this.contexts;\n this.contexts = new Map();\n return contexts;\n }\n onOutletReAttached(contexts) {\n this.contexts = contexts;\n }\n getOrCreateContext(childName) {\n let context = this.getContext(childName);\n if (!context) {\n context = new OutletContext();\n this.contexts.set(childName, context);\n }\n return context;\n }\n getContext(childName) {\n return this.contexts.get(childName) || null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Acts as a placeholder that Angular dynamically fills based on the current router state.\n *\n * Each outlet can have a unique name, determined by the optional `name` attribute.\n * The name cannot be set or changed dynamically. If not set, default value is \"primary\".\n *\n * ```\n * <router-outlet></router-outlet>\n * <router-outlet name='left'></router-outlet>\n * <router-outlet name='right'></router-outlet>\n * ```\n *\n * Named outlets can be the targets of secondary routes.\n * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:\n *\n * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`\n *\n * Using named outlets and secondary routes, you can target multiple outlets in\n * the same `RouterLink` directive.\n *\n * The router keeps track of separate branches in a navigation tree for each named outlet and\n * generates a representation of that tree in the URL.\n * The URL for a secondary route uses the following syntax to specify both the primary and secondary\n * routes at the same time:\n *\n * `http://base-path/primary-route-path(outlet-name:route-path)`\n *\n * A router outlet emits an activate event when a new component is instantiated,\n * deactivate event when a component is destroyed.\n * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the\n * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to\n * detach the subtree.\n *\n * ```\n * <router-outlet\n * (activate)='onActivate($event)'\n * (deactivate)='onDeactivate($event)'\n * (attach)='onAttach($event)'\n * (detach)='onDetach($event)'></router-outlet>\n * ```\n *\n * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named\n * outlet and secondary route configuration\").\n * @see `RouterLink`\n * @see `Route`\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterOutlet {\n constructor(parentContexts, location, resolver, name, changeDetector) {\n this.parentContexts = parentContexts;\n this.location = location;\n this.resolver = resolver;\n this.changeDetector = changeDetector;\n this.activated = null;\n this._activatedRoute = null;\n this.activateEvents = new EventEmitter();\n this.deactivateEvents = new EventEmitter();\n /**\n * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a\n * previously detached subtree.\n **/\n this.attachEvents = new EventEmitter();\n /**\n * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the\n * subtree.\n */\n this.detachEvents = new EventEmitter();\n this.name = name || PRIMARY_OUTLET;\n parentContexts.onChildOutletCreated(this.name, this);\n }\n /** @nodoc */\n ngOnDestroy() {\n this.parentContexts.onChildOutletDestroyed(this.name);\n }\n /** @nodoc */\n ngOnInit() {\n if (!this.activated) {\n // If the outlet was not instantiated at the time the route got activated we need to populate\n // the outlet when it is initialized (ie inside a NgIf)\n const context = this.parentContexts.getContext(this.name);\n if (context && context.route) {\n if (context.attachRef) {\n // `attachRef` is populated when there is an existing component to mount\n this.attach(context.attachRef, context.route);\n }\n else {\n // otherwise the component defined in the configuration is created\n this.activateWith(context.route, context.resolver || null);\n }\n }\n }\n }\n get isActivated() {\n return !!this.activated;\n }\n /**\n * @returns The currently activated component instance.\n * @throws An error if the outlet is not activated.\n */\n get component() {\n if (!this.activated)\n throw new Error('Outlet is not activated');\n return this.activated.instance;\n }\n get activatedRoute() {\n if (!this.activated)\n throw new Error('Outlet is not activated');\n return this._activatedRoute;\n }\n get activatedRouteData() {\n if (this._activatedRoute) {\n return this._activatedRoute.snapshot.data;\n }\n return {};\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to detach the subtree\n */\n detach() {\n if (!this.activated)\n throw new Error('Outlet is not activated');\n this.location.detach();\n const cmp = this.activated;\n this.activated = null;\n this._activatedRoute = null;\n this.detachEvents.emit(cmp.instance);\n return cmp;\n }\n /**\n * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree\n */\n attach(ref, activatedRoute) {\n this.activated = ref;\n this._activatedRoute = activatedRoute;\n this.location.insert(ref.hostView);\n this.attachEvents.emit(ref.instance);\n }\n deactivate() {\n if (this.activated) {\n const c = this.component;\n this.activated.destroy();\n this.activated = null;\n this._activatedRoute = null;\n this.deactivateEvents.emit(c);\n }\n }\n activateWith(activatedRoute, resolver) {\n if (this.isActivated) {\n throw new Error('Cannot activate an already activated outlet');\n }\n this._activatedRoute = activatedRoute;\n const snapshot = activatedRoute._futureSnapshot;\n const component = snapshot.routeConfig.component;\n resolver = resolver || this.resolver;\n const factory = resolver.resolveComponentFactory(component);\n const childContexts = this.parentContexts.getOrCreateContext(this.name).children;\n const injector = new OutletInjector(activatedRoute, childContexts, this.location.injector);\n this.activated = this.location.createComponent(factory, this.location.length, injector);\n // Calling `markForCheck` to make sure we will run the change detection when the\n // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.\n this.changeDetector.markForCheck();\n this.activateEvents.emit(this.activated.instance);\n }\n}\nRouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterOutlet, deps: [{ token: ChildrenOutletContexts }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: 'name', attribute: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\nRouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RouterOutlet, selector: \"router-outlet\", outputs: { activateEvents: \"activate\", deactivateEvents: \"deactivate\", attachEvents: \"attach\", detachEvents: \"detach\" }, exportAs: [\"outlet\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterOutlet, decorators: [{\n type: Directive,\n args: [{ selector: 'router-outlet', exportAs: 'outlet' }]\n }], ctorParameters: function () {\n return [{ type: ChildrenOutletContexts }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['name']\n }] }, { type: i0.ChangeDetectorRef }];\n }, propDecorators: { activateEvents: [{\n type: Output,\n args: ['activate']\n }], deactivateEvents: [{\n type: Output,\n args: ['deactivate']\n }], attachEvents: [{\n type: Output,\n args: ['attach']\n }], detachEvents: [{\n type: Output,\n args: ['detach']\n }] } });\nclass OutletInjector {\n constructor(route, childContexts, parent) {\n this.route = route;\n this.childContexts = childContexts;\n this.parent = parent;\n }\n get(token, notFoundValue) {\n if (token === ActivatedRoute) {\n return this.route;\n }\n if (token === ChildrenOutletContexts) {\n return this.childContexts;\n }\n return this.parent.get(token, notFoundValue);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This component is used internally within the router to be a placeholder when an empty\n * router-outlet is needed. For example, with a config such as:\n *\n * `{path: 'parent', outlet: 'nav', children: [...]}`\n *\n * In order to render, there needs to be a component on this config, which will default\n * to this `EmptyOutletComponent`.\n */\nclass ɵEmptyOutletComponent {\n}\nɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\nɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.1\", type: ɵEmptyOutletComponent, selector: \"ng-component\", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, directives: [{ type: RouterOutlet, selector: \"router-outlet\", outputs: [\"activate\", \"deactivate\", \"attach\", \"detach\"], exportAs: [\"outlet\"] }] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{\n type: Component,\n args: [{ template: `<router-outlet></router-outlet>` }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction validateConfig(config, parentPath = '') {\n // forEach doesn't iterate undefined values\n for (let i = 0; i < config.length; i++) {\n const route = config[i];\n const fullPath = getFullPath(parentPath, route);\n validateNode(route, fullPath);\n }\n}\nfunction validateNode(route, fullPath) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!route) {\n throw new Error(`\n Invalid configuration of route '${fullPath}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);\n }\n if (Array.isArray(route)) {\n throw new Error(`Invalid configuration of route '${fullPath}': Array cannot be specified`);\n }\n if (!route.component && !route.children && !route.loadChildren &&\n (route.outlet && route.outlet !== PRIMARY_OUTLET)) {\n throw new Error(`Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);\n }\n if (route.redirectTo && route.children) {\n throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);\n }\n if (route.redirectTo && route.loadChildren) {\n throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);\n }\n if (route.children && route.loadChildren) {\n throw new Error(`Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);\n }\n if (route.redirectTo && route.component) {\n throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and component cannot be used together`);\n }\n if (route.redirectTo && route.canActivate) {\n throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` +\n `so canActivate will never be executed.`);\n }\n if (route.path && route.matcher) {\n throw new Error(`Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);\n }\n if (route.redirectTo === void 0 && !route.component && !route.children && !route.loadChildren) {\n throw new Error(`Invalid configuration of route '${fullPath}'. One of the following must be provided: component, redirectTo, children or loadChildren`);\n }\n if (route.path === void 0 && route.matcher === void 0) {\n throw new Error(`Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);\n }\n if (typeof route.path === 'string' && route.path.charAt(0) === '/') {\n throw new Error(`Invalid configuration of route '${fullPath}': path cannot start with a slash`);\n }\n if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {\n const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;\n throw new Error(`Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);\n }\n if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {\n throw new Error(`Invalid configuration of route '${fullPath}': pathMatch can only be set to 'prefix' or 'full'`);\n }\n }\n if (route.children) {\n validateConfig(route.children, fullPath);\n }\n}\nfunction getFullPath(parentPath, currentRoute) {\n if (!currentRoute) {\n return parentPath;\n }\n if (!parentPath && !currentRoute.path) {\n return '';\n }\n else if (parentPath && !currentRoute.path) {\n return `${parentPath}/`;\n }\n else if (!parentPath && currentRoute.path) {\n return currentRoute.path;\n }\n else {\n return `${parentPath}/${currentRoute.path}`;\n }\n}\n/**\n * Makes a copy of the config and adds any default required properties.\n */\nfunction standardizeConfig(r) {\n const children = r.children && r.children.map(standardizeConfig);\n const c = children ? Object.assign(Object.assign({}, r), { children }) : Object.assign({}, r);\n if (!c.component && (children || c.loadChildren) && (c.outlet && c.outlet !== PRIMARY_OUTLET)) {\n c.component = ɵEmptyOutletComponent;\n }\n return c;\n}\n/** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */\nfunction getOutlet(route) {\n return route.outlet || PRIMARY_OUTLET;\n}\n/**\n * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.\n * The order of the configs is otherwise preserved.\n */\nfunction sortByMatchingOutlets(routes, outletName) {\n const sortedConfig = routes.filter(r => getOutlet(r) === outletName);\n sortedConfig.push(...routes.filter(r => getOutlet(r) !== outletName));\n return sortedConfig;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst noMatch$1 = {\n matched: false,\n consumedSegments: [],\n lastChild: 0,\n parameters: {},\n positionalParamSegments: {}\n};\nfunction match(segmentGroup, route, segments) {\n var _a;\n if (route.path === '') {\n if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n return Object.assign({}, noMatch$1);\n }\n return {\n matched: true,\n consumedSegments: [],\n lastChild: 0,\n parameters: {},\n positionalParamSegments: {}\n };\n }\n const matcher = route.matcher || defaultUrlMatcher;\n const res = matcher(segments, segmentGroup, route);\n if (!res)\n return Object.assign({}, noMatch$1);\n const posParams = {};\n forEach(res.posParams, (v, k) => {\n posParams[k] = v.path;\n });\n const parameters = res.consumed.length > 0 ? Object.assign(Object.assign({}, posParams), res.consumed[res.consumed.length - 1].parameters) :\n posParams;\n return {\n matched: true,\n consumedSegments: res.consumed,\n lastChild: res.consumed.length,\n // TODO(atscott): investigate combining parameters and positionalParamSegments\n parameters,\n positionalParamSegments: (_a = res.posParams) !== null && _a !== void 0 ? _a : {}\n };\n}\nfunction split(segmentGroup, consumedSegments, slicedSegments, config, relativeLinkResolution = 'corrected') {\n if (slicedSegments.length > 0 &&\n containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments: [] };\n }\n if (slicedSegments.length === 0 &&\n containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\n const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children, relativeLinkResolution));\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments };\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments };\n}\nfunction addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, routes, children, relativeLinkResolution) {\n const res = {};\n for (const r of routes) {\n if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {\n const s = new UrlSegmentGroup([], {});\n s._sourceSegment = segmentGroup;\n if (relativeLinkResolution === 'legacy') {\n s._segmentIndexShift = segmentGroup.segments.length;\n }\n else {\n s._segmentIndexShift = consumedSegments.length;\n }\n res[getOutlet(r)] = s;\n }\n }\n return Object.assign(Object.assign({}, children), res);\n}\nfunction createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {\n const res = {};\n res[PRIMARY_OUTLET] = primarySegment;\n primarySegment._sourceSegment = segmentGroup;\n primarySegment._segmentIndexShift = consumedSegments.length;\n for (const r of routes) {\n if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {\n const s = new UrlSegmentGroup([], {});\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n res[getOutlet(r)] = s;\n }\n }\n return res;\n}\nfunction containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);\n}\nfunction containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\n return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));\n}\nfunction emptyPathMatch(segmentGroup, slicedSegments, r) {\n if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {\n return false;\n }\n return r.path === '';\n}\n/**\n * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without\n * verifying that its children are a full match for the remainder of the `rawSegment` children as\n * well.\n */\nfunction isImmediateMatch(route, rawSegment, segments, outlet) {\n // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to\n // a config like\n // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`\n // or even\n // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`\n //\n // The exception here is when the segment outlet is for the primary outlet. This would\n // result in a match inside the named outlet because all children there are written as primary\n // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like\n // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`\n // This should only match if the url is `/(x:b)`.\n if (getOutlet(route) !== outlet &&\n (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {\n return false;\n }\n if (route.path === '**') {\n return true;\n }\n return match(rawSegment, route, segments).matched;\n}\nfunction noLeftoversInUrl(segmentGroup, segments, outlet) {\n return segments.length === 0 && !segmentGroup.children[outlet];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass NoMatch$1 {\n constructor(segmentGroup) {\n this.segmentGroup = segmentGroup || null;\n }\n}\nclass AbsoluteRedirect {\n constructor(urlTree) {\n this.urlTree = urlTree;\n }\n}\nfunction noMatch(segmentGroup) {\n return new Observable((obs) => obs.error(new NoMatch$1(segmentGroup)));\n}\nfunction absoluteRedirect(newTree) {\n return new Observable((obs) => obs.error(new AbsoluteRedirect(newTree)));\n}\nfunction namedOutletsRedirect(redirectTo) {\n return new Observable((obs) => obs.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`)));\n}\nfunction canLoadFails(route) {\n return new Observable((obs) => obs.error(navigationCancelingError(`Cannot load children because the guard of the route \"path: '${route.path}'\" returned false`)));\n}\n/**\n * Returns the `UrlTree` with the redirection applied.\n *\n * Lazy modules are loaded along the way.\n */\nfunction applyRedirects$1(moduleInjector, configLoader, urlSerializer, urlTree, config) {\n return new ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config).apply();\n}\nclass ApplyRedirects {\n constructor(moduleInjector, configLoader, urlSerializer, urlTree, config) {\n this.configLoader = configLoader;\n this.urlSerializer = urlSerializer;\n this.urlTree = urlTree;\n this.config = config;\n this.allowRedirects = true;\n this.ngModule = moduleInjector.get(NgModuleRef);\n }\n apply() {\n const splitGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;\n // TODO(atscott): creating a new segment removes the _sourceSegment _segmentIndexShift, which is\n // only necessary to prevent failures in tests which assert exact object matches. The `split` is\n // now shared between `applyRedirects` and `recognize` but only the `recognize` step needs these\n // properties. Before the implementations were merged, the `applyRedirects` would not assign\n // them. We should be able to remove this logic as a \"breaking change\" but should do some more\n // investigation into the failures first.\n const rootSegmentGroup = new UrlSegmentGroup(splitGroup.segments, splitGroup.children);\n const expanded$ = this.expandSegmentGroup(this.ngModule, this.config, rootSegmentGroup, PRIMARY_OUTLET);\n const urlTrees$ = expanded$.pipe(map((rootSegmentGroup) => {\n return this.createUrlTree(squashSegmentGroup(rootSegmentGroup), this.urlTree.queryParams, this.urlTree.fragment);\n }));\n return urlTrees$.pipe(catchError((e) => {\n if (e instanceof AbsoluteRedirect) {\n // After an absolute redirect we do not apply any more redirects!\n // If this implementation changes, update the documentation note in `redirectTo`.\n this.allowRedirects = false;\n // we need to run matching, so we can fetch all lazy-loaded modules\n return this.match(e.urlTree);\n }\n if (e instanceof NoMatch$1) {\n throw this.noMatchError(e);\n }\n throw e;\n }));\n }\n match(tree) {\n const expanded$ = this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET);\n const mapped$ = expanded$.pipe(map((rootSegmentGroup) => {\n return this.createUrlTree(squashSegmentGroup(rootSegmentGroup), tree.queryParams, tree.fragment);\n }));\n return mapped$.pipe(catchError((e) => {\n if (e instanceof NoMatch$1) {\n throw this.noMatchError(e);\n }\n throw e;\n }));\n }\n noMatchError(e) {\n return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`);\n }\n createUrlTree(rootCandidate, queryParams, fragment) {\n const root = rootCandidate.segments.length > 0 ?\n new UrlSegmentGroup([], { [PRIMARY_OUTLET]: rootCandidate }) :\n rootCandidate;\n return new UrlTree(root, queryParams, fragment);\n }\n expandSegmentGroup(ngModule, routes, segmentGroup, outlet) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return this.expandChildren(ngModule, routes, segmentGroup)\n .pipe(map((children) => new UrlSegmentGroup([], children)));\n }\n return this.expandSegment(ngModule, segmentGroup, routes, segmentGroup.segments, outlet, true);\n }\n // Recursively expand segment groups for all the child outlets\n expandChildren(ngModule, routes, segmentGroup) {\n // Expand outlets one at a time, starting with the primary outlet. We need to do it this way\n // because an absolute redirect from the primary outlet takes precedence.\n const childOutlets = [];\n for (const child of Object.keys(segmentGroup.children)) {\n if (child === 'primary') {\n childOutlets.unshift(child);\n }\n else {\n childOutlets.push(child);\n }\n }\n return from(childOutlets)\n .pipe(concatMap(childOutlet => {\n const child = segmentGroup.children[childOutlet];\n // Sort the routes so routes with outlets that match the segment appear\n // first, followed by routes for other outlets, which might match if they have an\n // empty path.\n const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);\n return this.expandSegmentGroup(ngModule, sortedRoutes, child, childOutlet)\n .pipe(map(s => ({ segment: s, outlet: childOutlet })));\n }), scan((children, expandedChild) => {\n children[expandedChild.outlet] = expandedChild.segment;\n return children;\n }, {}), last$1());\n }\n expandSegment(ngModule, segmentGroup, routes, segments, outlet, allowRedirects) {\n return from(routes).pipe(concatMap((r) => {\n const expanded$ = this.expandSegmentAgainstRoute(ngModule, segmentGroup, routes, r, segments, outlet, allowRedirects);\n return expanded$.pipe(catchError((e) => {\n if (e instanceof NoMatch$1) {\n return of(null);\n }\n throw e;\n }));\n }), first((s) => !!s), catchError((e, _) => {\n if (e instanceof EmptyError || e.name === 'EmptyError') {\n if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n return of(new UrlSegmentGroup([], {}));\n }\n throw new NoMatch$1(segmentGroup);\n }\n throw e;\n }));\n }\n expandSegmentAgainstRoute(ngModule, segmentGroup, routes, route, paths, outlet, allowRedirects) {\n if (!isImmediateMatch(route, segmentGroup, paths, outlet)) {\n return noMatch(segmentGroup);\n }\n if (route.redirectTo === undefined) {\n return this.matchSegmentAgainstRoute(ngModule, segmentGroup, route, paths, outlet);\n }\n if (allowRedirects && this.allowRedirects) {\n return this.expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, paths, outlet);\n }\n return noMatch(segmentGroup);\n }\n expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {\n if (route.path === '**') {\n return this.expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet);\n }\n return this.expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet);\n }\n expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet) {\n const newTree = this.applyRedirectCommands([], route.redirectTo, {});\n if (route.redirectTo.startsWith('/')) {\n return absoluteRedirect(newTree);\n }\n return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n const group = new UrlSegmentGroup(newSegments, {});\n return this.expandSegment(ngModule, group, routes, newSegments, outlet, false);\n }));\n }\n expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {\n const { matched, consumedSegments, lastChild, positionalParamSegments } = match(segmentGroup, route, segments);\n if (!matched)\n return noMatch(segmentGroup);\n const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);\n if (route.redirectTo.startsWith('/')) {\n return absoluteRedirect(newTree);\n }\n return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments) => {\n return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(segments.slice(lastChild)), outlet, false);\n }));\n }\n matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments, outlet) {\n if (route.path === '**') {\n if (route.loadChildren) {\n const loaded$ = route._loadedConfig ? of(route._loadedConfig) :\n this.configLoader.load(ngModule.injector, route);\n return loaded$.pipe(map((cfg) => {\n route._loadedConfig = cfg;\n return new UrlSegmentGroup(segments, {});\n }));\n }\n return of(new UrlSegmentGroup(segments, {}));\n }\n const { matched, consumedSegments, lastChild } = match(rawSegmentGroup, route, segments);\n if (!matched)\n return noMatch(rawSegmentGroup);\n const rawSlicedSegments = segments.slice(lastChild);\n const childConfig$ = this.getChildConfig(ngModule, route, segments);\n return childConfig$.pipe(mergeMap((routerConfig) => {\n const childModule = routerConfig.module;\n const childConfig = routerConfig.routes;\n const { segmentGroup: splitSegmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, rawSlicedSegments, childConfig);\n // See comment on the other call to `split` about why this is necessary.\n const segmentGroup = new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n const expanded$ = this.expandChildren(childModule, childConfig, segmentGroup);\n return expanded$.pipe(map((children) => new UrlSegmentGroup(consumedSegments, children)));\n }\n if (childConfig.length === 0 && slicedSegments.length === 0) {\n return of(new UrlSegmentGroup(consumedSegments, {}));\n }\n const matchedOnOutlet = getOutlet(route) === outlet;\n const expanded$ = this.expandSegment(childModule, segmentGroup, childConfig, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet, true);\n return expanded$.pipe(map((cs) => new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children)));\n }));\n }\n getChildConfig(ngModule, route, segments) {\n if (route.children) {\n // The children belong to the same module\n return of(new LoadedRouterConfig(route.children, ngModule));\n }\n if (route.loadChildren) {\n // lazy children belong to the loaded module\n if (route._loadedConfig !== undefined) {\n return of(route._loadedConfig);\n }\n return this.runCanLoadGuards(ngModule.injector, route, segments)\n .pipe(mergeMap((shouldLoadResult) => {\n if (shouldLoadResult) {\n return this.configLoader.load(ngModule.injector, route)\n .pipe(map((cfg) => {\n route._loadedConfig = cfg;\n return cfg;\n }));\n }\n return canLoadFails(route);\n }));\n }\n return of(new LoadedRouterConfig([], ngModule));\n }\n runCanLoadGuards(moduleInjector, route, segments) {\n const canLoad = route.canLoad;\n if (!canLoad || canLoad.length === 0)\n return of(true);\n const canLoadObservables = canLoad.map((injectionToken) => {\n const guard = moduleInjector.get(injectionToken);\n let guardVal;\n if (isCanLoad(guard)) {\n guardVal = guard.canLoad(route, segments);\n }\n else if (isFunction(guard)) {\n guardVal = guard(route, segments);\n }\n else {\n throw new Error('Invalid CanLoad guard');\n }\n return wrapIntoObservable(guardVal);\n });\n return of(canLoadObservables)\n .pipe(prioritizedGuardValue(), tap((result) => {\n if (!isUrlTree(result))\n return;\n const error = navigationCancelingError(`Redirecting to \"${this.urlSerializer.serialize(result)}\"`);\n error.url = result;\n throw error;\n }), map(result => result === true));\n }\n lineralizeSegments(route, urlTree) {\n let res = [];\n let c = urlTree.root;\n while (true) {\n res = res.concat(c.segments);\n if (c.numberOfChildren === 0) {\n return of(res);\n }\n if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {\n return namedOutletsRedirect(route.redirectTo);\n }\n c = c.children[PRIMARY_OUTLET];\n }\n }\n applyRedirectCommands(segments, redirectTo, posParams) {\n return this.applyRedirectCreatreUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);\n }\n applyRedirectCreatreUrlTree(redirectTo, urlTree, segments, posParams) {\n const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);\n return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);\n }\n createQueryParams(redirectToParams, actualParams) {\n const res = {};\n forEach(redirectToParams, (v, k) => {\n const copySourceValue = typeof v === 'string' && v.startsWith(':');\n if (copySourceValue) {\n const sourceName = v.substring(1);\n res[k] = actualParams[sourceName];\n }\n else {\n res[k] = v;\n }\n });\n return res;\n }\n createSegmentGroup(redirectTo, group, segments, posParams) {\n const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);\n let children = {};\n forEach(group.children, (child, name) => {\n children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);\n });\n return new UrlSegmentGroup(updatedSegments, children);\n }\n createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {\n return redirectToSegments.map(s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) :\n this.findOrReturn(s, actualSegments));\n }\n findPosParam(redirectTo, redirectToUrlSegment, posParams) {\n const pos = posParams[redirectToUrlSegment.path.substring(1)];\n if (!pos)\n throw new Error(`Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);\n return pos;\n }\n findOrReturn(redirectToUrlSegment, actualSegments) {\n let idx = 0;\n for (const s of actualSegments) {\n if (s.path === redirectToUrlSegment.path) {\n actualSegments.splice(idx);\n return s;\n }\n idx++;\n }\n return redirectToUrlSegment;\n }\n}\n/**\n * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.\n *\n * When a segment group has only one child which is a primary outlet, merges that child into the\n * parent. That is, the child segment group's segments are merged into the `s` and the child's\n * children become the children of `s`. Think of this like a 'squash', merging the child segment\n * group into the parent.\n */\nfunction mergeTrivialChildren(s) {\n if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\n const c = s.children[PRIMARY_OUTLET];\n return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\n }\n return s;\n}\n/**\n * Recursively merges primary segment children into their parents and also drops empty children\n * (those which have no segments and no children themselves). The latter prevents serializing a\n * group into something like `/a(aux:)`, where `aux` is an empty child segment.\n */\nfunction squashSegmentGroup(segmentGroup) {\n const newChildren = {};\n for (const childOutlet of Object.keys(segmentGroup.children)) {\n const child = segmentGroup.children[childOutlet];\n const childCandidate = squashSegmentGroup(child);\n // don't add empty children\n if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {\n newChildren[childOutlet] = childCandidate;\n }\n }\n const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);\n return mergeTrivialChildren(s);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction applyRedirects(moduleInjector, configLoader, urlSerializer, config) {\n return switchMap(t => applyRedirects$1(moduleInjector, configLoader, urlSerializer, t.extractedUrl, config)\n .pipe(map(urlAfterRedirects => (Object.assign(Object.assign({}, t), { urlAfterRedirects })))));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CanActivate {\n constructor(path) {\n this.path = path;\n this.route = this.path[this.path.length - 1];\n }\n}\nclass CanDeactivate {\n constructor(component, route) {\n this.component = component;\n this.route = route;\n }\n}\nfunction getAllRouteGuards(future, curr, parentContexts) {\n const futureRoot = future._root;\n const currRoot = curr ? curr._root : null;\n return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);\n}\nfunction getCanActivateChild(p) {\n const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;\n if (!canActivateChild || canActivateChild.length === 0)\n return null;\n return { node: p, guards: canActivateChild };\n}\nfunction getToken(token, snapshot, moduleInjector) {\n const config = getClosestLoadedConfig(snapshot);\n const injector = config ? config.module.injector : moduleInjector;\n return injector.get(token);\n}\nfunction getClosestLoadedConfig(snapshot) {\n if (!snapshot)\n return null;\n for (let s = snapshot.parent; s; s = s.parent) {\n const route = s.routeConfig;\n if (route && route._loadedConfig)\n return route._loadedConfig;\n }\n return null;\n}\nfunction getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: []\n}) {\n const prevChildren = nodeChildrenAsMap(currNode);\n // Process the children of the future route\n futureNode.children.forEach(c => {\n getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);\n delete prevChildren[c.value.outlet];\n });\n // Process any children left from the current route (not active for the future route)\n forEach(prevChildren, (v, k) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));\n return checks;\n}\nfunction getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {\n canDeactivateChecks: [],\n canActivateChecks: []\n}) {\n const future = futureNode.value;\n const curr = currNode ? currNode.value : null;\n const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;\n // reusing the node\n if (curr && future.routeConfig === curr.routeConfig) {\n const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);\n if (shouldRun) {\n checks.canActivateChecks.push(new CanActivate(futurePath));\n }\n else {\n // we need to set the data\n future.data = curr.data;\n future._resolvedData = curr._resolvedData;\n }\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);\n }\n if (shouldRun && context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));\n }\n }\n else {\n if (curr) {\n deactivateRouteAndItsChildren(currNode, context, checks);\n }\n checks.canActivateChecks.push(new CanActivate(futurePath));\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);\n // if we have a componentless route, we recurse but keep the same outlet map.\n }\n else {\n getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);\n }\n }\n return checks;\n}\nfunction shouldRunGuardsAndResolvers(curr, future, mode) {\n if (typeof mode === 'function') {\n return mode(curr, future);\n }\n switch (mode) {\n case 'pathParamsChange':\n return !equalPath(curr.url, future.url);\n case 'pathParamsOrQueryParamsChange':\n return !equalPath(curr.url, future.url) ||\n !shallowEqual(curr.queryParams, future.queryParams);\n case 'always':\n return true;\n case 'paramsOrQueryParamsChange':\n return !equalParamsAndUrlSegments(curr, future) ||\n !shallowEqual(curr.queryParams, future.queryParams);\n case 'paramsChange':\n default:\n return !equalParamsAndUrlSegments(curr, future);\n }\n}\nfunction deactivateRouteAndItsChildren(route, context, checks) {\n const children = nodeChildrenAsMap(route);\n const r = route.value;\n forEach(children, (node, childName) => {\n if (!r.component) {\n deactivateRouteAndItsChildren(node, context, checks);\n }\n else if (context) {\n deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);\n }\n else {\n deactivateRouteAndItsChildren(node, null, checks);\n }\n });\n if (!r.component) {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n else if (context && context.outlet && context.outlet.isActivated) {\n checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));\n }\n else {\n checks.canDeactivateChecks.push(new CanDeactivate(null, r));\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction checkGuards(moduleInjector, forwardEvent) {\n return mergeMap(t => {\n const { targetSnapshot, currentSnapshot, guards: { canActivateChecks, canDeactivateChecks } } = t;\n if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {\n return of(Object.assign(Object.assign({}, t), { guardsResult: true }));\n }\n return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, moduleInjector)\n .pipe(mergeMap(canDeactivate => {\n return canDeactivate && isBoolean(canDeactivate) ?\n runCanActivateChecks(targetSnapshot, canActivateChecks, moduleInjector, forwardEvent) :\n of(canDeactivate);\n }), map(guardsResult => (Object.assign(Object.assign({}, t), { guardsResult }))));\n });\n}\nfunction runCanDeactivateChecks(checks, futureRSS, currRSS, moduleInjector) {\n return from(checks).pipe(mergeMap(check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector)), first(result => {\n return result !== true;\n }, true));\n}\nfunction runCanActivateChecks(futureSnapshot, checks, moduleInjector, forwardEvent) {\n return from(checks).pipe(concatMap((check) => {\n return concat(fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, moduleInjector), runCanActivate(futureSnapshot, check.route, moduleInjector));\n }), first(result => {\n return result !== true;\n }, true));\n}\n/**\n * This should fire off `ActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ActivationStart(snapshot));\n }\n return of(true);\n}\n/**\n * This should fire off `ChildActivationStart` events for each route being activated at this\n * level.\n * In other words, if you're activating `a` and `b` below, `path` will contain the\n * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always\n * return\n * `true` so checks continue to run.\n */\nfunction fireChildActivationStart(snapshot, forwardEvent) {\n if (snapshot !== null && forwardEvent) {\n forwardEvent(new ChildActivationStart(snapshot));\n }\n return of(true);\n}\nfunction runCanActivate(futureRSS, futureARS, moduleInjector) {\n const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;\n if (!canActivate || canActivate.length === 0)\n return of(true);\n const canActivateObservables = canActivate.map((c) => {\n return defer(() => {\n const guard = getToken(c, futureARS, moduleInjector);\n let observable;\n if (isCanActivate(guard)) {\n observable = wrapIntoObservable(guard.canActivate(futureARS, futureRSS));\n }\n else if (isFunction(guard)) {\n observable = wrapIntoObservable(guard(futureARS, futureRSS));\n }\n else {\n throw new Error('Invalid CanActivate guard');\n }\n return observable.pipe(first());\n });\n });\n return of(canActivateObservables).pipe(prioritizedGuardValue());\n}\nfunction runCanActivateChild(futureRSS, path, moduleInjector) {\n const futureARS = path[path.length - 1];\n const canActivateChildGuards = path.slice(0, path.length - 1)\n .reverse()\n .map(p => getCanActivateChild(p))\n .filter(_ => _ !== null);\n const canActivateChildGuardsMapped = canActivateChildGuards.map((d) => {\n return defer(() => {\n const guardsMapped = d.guards.map((c) => {\n const guard = getToken(c, d.node, moduleInjector);\n let observable;\n if (isCanActivateChild(guard)) {\n observable = wrapIntoObservable(guard.canActivateChild(futureARS, futureRSS));\n }\n else if (isFunction(guard)) {\n observable = wrapIntoObservable(guard(futureARS, futureRSS));\n }\n else {\n throw new Error('Invalid CanActivateChild guard');\n }\n return observable.pipe(first());\n });\n return of(guardsMapped).pipe(prioritizedGuardValue());\n });\n });\n return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());\n}\nfunction runCanDeactivate(component, currARS, currRSS, futureRSS, moduleInjector) {\n const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;\n if (!canDeactivate || canDeactivate.length === 0)\n return of(true);\n const canDeactivateObservables = canDeactivate.map((c) => {\n const guard = getToken(c, currARS, moduleInjector);\n let observable;\n if (isCanDeactivate(guard)) {\n observable = wrapIntoObservable(guard.canDeactivate(component, currARS, currRSS, futureRSS));\n }\n else if (isFunction(guard)) {\n observable = wrapIntoObservable(guard(component, currARS, currRSS, futureRSS));\n }\n else {\n throw new Error('Invalid CanDeactivate guard');\n }\n return observable.pipe(first());\n });\n return of(canDeactivateObservables).pipe(prioritizedGuardValue());\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass NoMatch {\n}\nfunction newObservableError(e) {\n // TODO(atscott): This pattern is used throughout the router code and can be `throwError` instead.\n return new Observable((obs) => obs.error(e));\n}\nfunction recognize$1(rootComponentType, config, urlTree, url, paramsInheritanceStrategy = 'emptyOnly', relativeLinkResolution = 'legacy') {\n try {\n const result = new Recognizer(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution)\n .recognize();\n if (result === null) {\n return newObservableError(new NoMatch());\n }\n else {\n return of(result);\n }\n }\n catch (e) {\n // Catch the potential error from recognize due to duplicate outlet matches and return as an\n // `Observable` error instead.\n return newObservableError(e);\n }\n}\nclass Recognizer {\n constructor(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution) {\n this.rootComponentType = rootComponentType;\n this.config = config;\n this.urlTree = urlTree;\n this.url = url;\n this.paramsInheritanceStrategy = paramsInheritanceStrategy;\n this.relativeLinkResolution = relativeLinkResolution;\n }\n recognize() {\n const rootSegmentGroup = split(this.urlTree.root, [], [], this.config.filter(c => c.redirectTo === undefined), this.relativeLinkResolution)\n .segmentGroup;\n const children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);\n if (children === null) {\n return null;\n }\n // Use Object.freeze to prevent readers of the Router state from modifying it outside of a\n // navigation, resulting in the router being out of sync with the browser.\n const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});\n const rootNode = new TreeNode(root, children);\n const routeState = new RouterStateSnapshot(this.url, rootNode);\n this.inheritParamsAndData(routeState._root);\n return routeState;\n }\n inheritParamsAndData(routeNode) {\n const route = routeNode.value;\n const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);\n route.params = Object.freeze(i.params);\n route.data = Object.freeze(i.data);\n routeNode.children.forEach(n => this.inheritParamsAndData(n));\n }\n processSegmentGroup(config, segmentGroup, outlet) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(config, segmentGroup);\n }\n return this.processSegment(config, segmentGroup, segmentGroup.segments, outlet);\n }\n /**\n * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if\n * we cannot find a match for _any_ of the children.\n *\n * @param config - The `Routes` to match against\n * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the\n * config.\n */\n processChildren(config, segmentGroup) {\n const children = [];\n for (const childOutlet of Object.keys(segmentGroup.children)) {\n const child = segmentGroup.children[childOutlet];\n // Sort the config so that routes with outlets that match the one being activated appear\n // first, followed by routes for other outlets, which might match if they have an empty path.\n const sortedConfig = sortByMatchingOutlets(config, childOutlet);\n const outletChildren = this.processSegmentGroup(sortedConfig, child, childOutlet);\n if (outletChildren === null) {\n // Configs must match all segment children so because we did not find a match for this\n // outlet, return `null`.\n return null;\n }\n children.push(...outletChildren);\n }\n // Because we may have matched two outlets to the same empty path segment, we can have multiple\n // activated results for the same outlet. We should merge the children of these results so the\n // final return value is only one `TreeNode` per outlet.\n const mergedChildren = mergeEmptyPathMatches(children);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // This should really never happen - we are only taking the first match for each outlet and\n // merge the empty path matches.\n checkOutletNameUniqueness(mergedChildren);\n }\n sortActivatedRouteSnapshots(mergedChildren);\n return mergedChildren;\n }\n processSegment(config, segmentGroup, segments, outlet) {\n for (const r of config) {\n const children = this.processSegmentAgainstRoute(r, segmentGroup, segments, outlet);\n if (children !== null) {\n return children;\n }\n }\n if (noLeftoversInUrl(segmentGroup, segments, outlet)) {\n return [];\n }\n return null;\n }\n processSegmentAgainstRoute(route, rawSegment, segments, outlet) {\n if (route.redirectTo || !isImmediateMatch(route, rawSegment, segments, outlet))\n return null;\n let snapshot;\n let consumedSegments = [];\n let rawSlicedSegments = [];\n if (route.path === '**') {\n const params = segments.length > 0 ? last(segments).parameters : {};\n snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));\n }\n else {\n const result = match(rawSegment, route, segments);\n if (!result.matched) {\n return null;\n }\n consumedSegments = result.consumedSegments;\n rawSlicedSegments = segments.slice(result.lastChild);\n snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), getOutlet(route), route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));\n }\n const childConfig = getChildConfig(route);\n const { segmentGroup, slicedSegments } = split(rawSegment, consumedSegments, rawSlicedSegments, \n // Filter out routes with redirectTo because we are trying to create activated route\n // snapshots and don't handle redirects here. That should have been done in\n // `applyRedirects`.\n childConfig.filter(c => c.redirectTo === undefined), this.relativeLinkResolution);\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n const children = this.processChildren(childConfig, segmentGroup);\n if (children === null) {\n return null;\n }\n return [new TreeNode(snapshot, children)];\n }\n if (childConfig.length === 0 && slicedSegments.length === 0) {\n return [new TreeNode(snapshot, [])];\n }\n const matchedOnOutlet = getOutlet(route) === outlet;\n // If we matched a config due to empty path match on a different outlet, we need to continue\n // passing the current outlet for the segment rather than switch to PRIMARY.\n // Note that we switch to primary when we have a match because outlet configs look like this:\n // {path: 'a', outlet: 'a', children: [\n // {path: 'b', component: B},\n // {path: 'c', component: C},\n // ]}\n // Notice that the children of the named outlet are configured with the primary outlet\n const children = this.processSegment(childConfig, segmentGroup, slicedSegments, matchedOnOutlet ? PRIMARY_OUTLET : outlet);\n if (children === null) {\n return null;\n }\n return [new TreeNode(snapshot, children)];\n }\n}\nfunction sortActivatedRouteSnapshots(nodes) {\n nodes.sort((a, b) => {\n if (a.value.outlet === PRIMARY_OUTLET)\n return -1;\n if (b.value.outlet === PRIMARY_OUTLET)\n return 1;\n return a.value.outlet.localeCompare(b.value.outlet);\n });\n}\nfunction getChildConfig(route) {\n if (route.children) {\n return route.children;\n }\n if (route.loadChildren) {\n return route._loadedConfig.routes;\n }\n return [];\n}\nfunction hasEmptyPathConfig(node) {\n const config = node.value.routeConfig;\n return config && config.path === '' && config.redirectTo === undefined;\n}\n/**\n * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with the\n * children from each duplicate. This is necessary because different outlets can match a single\n * empty path route config and the results need to then be merged.\n */\nfunction mergeEmptyPathMatches(nodes) {\n const result = [];\n // The set of nodes which contain children that were merged from two duplicate empty path nodes.\n const mergedNodes = new Set();\n for (const node of nodes) {\n if (!hasEmptyPathConfig(node)) {\n result.push(node);\n continue;\n }\n const duplicateEmptyPathNode = result.find(resultNode => node.value.routeConfig === resultNode.value.routeConfig);\n if (duplicateEmptyPathNode !== undefined) {\n duplicateEmptyPathNode.children.push(...node.children);\n mergedNodes.add(duplicateEmptyPathNode);\n }\n else {\n result.push(node);\n }\n }\n // For each node which has children from multiple sources, we need to recompute a new `TreeNode`\n // by also merging those children. This is necessary when there are multiple empty path configs in\n // a row. Put another way: whenever we combine children of two nodes, we need to also check if any\n // of those children can be combined into a single node as well.\n for (const mergedNode of mergedNodes) {\n const mergedChildren = mergeEmptyPathMatches(mergedNode.children);\n result.push(new TreeNode(mergedNode.value, mergedChildren));\n }\n return result.filter(n => !mergedNodes.has(n));\n}\nfunction checkOutletNameUniqueness(nodes) {\n const names = {};\n nodes.forEach(n => {\n const routeWithSameOutletName = names[n.value.outlet];\n if (routeWithSameOutletName) {\n const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');\n const c = n.value.url.map(s => s.toString()).join('/');\n throw new Error(`Two segments cannot have the same outlet name: '${p}' and '${c}'.`);\n }\n names[n.value.outlet] = n.value;\n });\n}\nfunction getSourceSegmentGroup(segmentGroup) {\n let s = segmentGroup;\n while (s._sourceSegment) {\n s = s._sourceSegment;\n }\n return s;\n}\nfunction getPathIndexShift(segmentGroup) {\n let s = segmentGroup;\n let res = (s._segmentIndexShift ? s._segmentIndexShift : 0);\n while (s._sourceSegment) {\n s = s._sourceSegment;\n res += (s._segmentIndexShift ? s._segmentIndexShift : 0);\n }\n return res - 1;\n}\nfunction getData(route) {\n return route.data || {};\n}\nfunction getResolve(route) {\n return route.resolve || {};\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction recognize(rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {\n return mergeMap(t => recognize$1(rootComponentType, config, t.urlAfterRedirects, serializer(t.urlAfterRedirects), paramsInheritanceStrategy, relativeLinkResolution)\n .pipe(map(targetSnapshot => (Object.assign(Object.assign({}, t), { targetSnapshot })))));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction resolveData(paramsInheritanceStrategy, moduleInjector) {\n return mergeMap(t => {\n const { targetSnapshot, guards: { canActivateChecks } } = t;\n if (!canActivateChecks.length) {\n return of(t);\n }\n let canActivateChecksResolved = 0;\n return from(canActivateChecks)\n .pipe(concatMap(check => runResolve(check.route, targetSnapshot, paramsInheritanceStrategy, moduleInjector)), tap(() => canActivateChecksResolved++), takeLast(1), mergeMap(_ => canActivateChecksResolved === canActivateChecks.length ? of(t) : EMPTY));\n });\n}\nfunction runResolve(futureARS, futureRSS, paramsInheritanceStrategy, moduleInjector) {\n const resolve = futureARS._resolve;\n return resolveNode(resolve, futureARS, futureRSS, moduleInjector)\n .pipe(map((resolvedData) => {\n futureARS._resolvedData = resolvedData;\n futureARS.data = Object.assign(Object.assign({}, futureARS.data), inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve);\n return null;\n }));\n}\nfunction resolveNode(resolve, futureARS, futureRSS, moduleInjector) {\n const keys = Object.keys(resolve);\n if (keys.length === 0) {\n return of({});\n }\n const data = {};\n return from(keys).pipe(mergeMap((key) => getResolver(resolve[key], futureARS, futureRSS, moduleInjector)\n .pipe(tap((value) => {\n data[key] = value;\n }))), takeLast(1), mergeMap(() => {\n // Ensure all resolvers returned values, otherwise don't emit any \"next\" and just complete\n // the chain which will cancel navigation\n if (Object.keys(data).length === keys.length) {\n return of(data);\n }\n return EMPTY;\n }));\n}\nfunction getResolver(injectionToken, futureARS, futureRSS, moduleInjector) {\n const resolver = getToken(injectionToken, futureARS, moduleInjector);\n return resolver.resolve ? wrapIntoObservable(resolver.resolve(futureARS, futureRSS)) :\n wrapIntoObservable(resolver(futureARS, futureRSS));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Perform a side effect through a switchMap for every emission on the source Observable,\n * but return an Observable that is identical to the source. It's essentially the same as\n * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,\n * it will wait before continuing with the original value.\n */\nfunction switchTap(next) {\n return switchMap(v => {\n const nextResult = next(v);\n if (nextResult) {\n return from(nextResult).pipe(map(() => v));\n }\n return of(v);\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Provides a way to customize when activated routes get reused.\n *\n * @publicApi\n */\nclass RouteReuseStrategy {\n}\n/**\n * @description\n *\n * This base route reuse strategy only reuses routes when the matched router configs are\n * identical. This prevents components from being destroyed and recreated\n * when just the fragment or query parameters change\n * (that is, the existing component is _reused_).\n *\n * This strategy does not store any routes for later reuse.\n *\n * Angular uses this strategy by default.\n *\n *\n * It can be used as a base class for custom route reuse strategies, i.e. you can create your own\n * class that extends the `BaseRouteReuseStrategy` one.\n * @publicApi\n */\nclass BaseRouteReuseStrategy {\n /**\n * Whether the given route should detach for later reuse.\n * Always returns false for `BaseRouteReuseStrategy`.\n * */\n shouldDetach(route) {\n return false;\n }\n /**\n * A no-op; the route is never stored since this strategy never detaches routes for later re-use.\n */\n store(route, detachedTree) { }\n /** Returns `false`, meaning the route (and its subtree) is never reattached */\n shouldAttach(route) {\n return false;\n }\n /** Returns `null` because this strategy does not store routes for later re-use. */\n retrieve(route) {\n return null;\n }\n /**\n * Determines if a route should be reused.\n * This strategy returns `true` when the future route config and current route config are\n * identical.\n */\n shouldReuseRoute(future, curr) {\n return future.routeConfig === curr.routeConfig;\n }\n}\nclass DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The [DI token](guide/glossary/#di-token) for a router configuration.\n *\n * `ROUTES` is a low level API for router configuration via dependency injection.\n *\n * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,\n * `RouterModule.forChild()`, `provideRoutes`, or `Router.resetConfig()`.\n *\n * @publicApi\n */\nconst ROUTES = new InjectionToken('ROUTES');\nclass RouterConfigLoader {\n constructor(injector, compiler, onLoadStartListener, onLoadEndListener) {\n this.injector = injector;\n this.compiler = compiler;\n this.onLoadStartListener = onLoadStartListener;\n this.onLoadEndListener = onLoadEndListener;\n }\n load(parentInjector, route) {\n if (route._loader$) {\n return route._loader$;\n }\n if (this.onLoadStartListener) {\n this.onLoadStartListener(route);\n }\n const moduleFactory$ = this.loadModuleFactory(route.loadChildren);\n const loadRunner = moduleFactory$.pipe(map((factory) => {\n if (this.onLoadEndListener) {\n this.onLoadEndListener(route);\n }\n const module = factory.create(parentInjector);\n // When loading a module that doesn't provide `RouterModule.forChild()` preloader\n // will get stuck in an infinite loop. The child module's Injector will look to\n // its parent `Injector` when it doesn't find any ROUTES so it will return routes\n // for it's parent module instead.\n return new LoadedRouterConfig(flatten(module.injector.get(ROUTES, undefined, InjectFlags.Self | InjectFlags.Optional))\n .map(standardizeConfig), module);\n }), catchError((err) => {\n route._loader$ = undefined;\n throw err;\n }));\n // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much\n route._loader$ = new ConnectableObservable(loadRunner, () => new Subject())\n .pipe(refCount());\n return route._loader$;\n }\n loadModuleFactory(loadChildren) {\n return wrapIntoObservable(loadChildren()).pipe(mergeMap((t) => {\n if (t instanceof NgModuleFactory) {\n return of(t);\n }\n else {\n return from(this.compiler.compileModuleAsync(t));\n }\n }));\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Provides a way to migrate AngularJS applications to Angular.\n *\n * @publicApi\n */\nclass UrlHandlingStrategy {\n}\n/**\n * @publicApi\n */\nclass DefaultUrlHandlingStrategy {\n shouldProcessUrl(url) {\n return true;\n }\n extract(url) {\n return url;\n }\n merge(newUrlPart, wholeUrl) {\n return newUrlPart;\n }\n}\n\nfunction defaultErrorHandler(error) {\n throw error;\n}\nfunction defaultMalformedUriErrorHandler(error, urlSerializer, url) {\n return urlSerializer.parse('/');\n}\n/**\n * @internal\n */\nfunction defaultRouterHook(snapshot, runExtras) {\n return of(null);\n}\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`\n * (exact = true).\n */\nconst exactMatchOptions = {\n paths: 'exact',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'exact'\n};\n/**\n * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`\n * (exact = false).\n */\nconst subsetMatchOptions = {\n paths: 'subset',\n fragment: 'ignored',\n matrixParams: 'ignored',\n queryParams: 'subset'\n};\n/**\n * @description\n *\n * A service that provides navigation among views and URL manipulation capabilities.\n *\n * @see `Route`.\n * @see [Routing and Navigation Guide](guide/router).\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass Router {\n /**\n * Creates the router service.\n */\n // TODO: vsavkin make internal after the final is out.\n constructor(rootComponentType, urlSerializer, rootContexts, location, injector, compiler, config) {\n this.rootComponentType = rootComponentType;\n this.urlSerializer = urlSerializer;\n this.rootContexts = rootContexts;\n this.location = location;\n this.config = config;\n this.lastSuccessfulNavigation = null;\n this.currentNavigation = null;\n this.disposed = false;\n this.navigationId = 0;\n /**\n * The id of the currently active page in the router.\n * Updated to the transition's target id on a successful navigation.\n *\n * This is used to track what page the router last activated. When an attempted navigation fails,\n * the router can then use this to compute how to restore the state back to the previously active\n * page.\n */\n this.currentPageId = 0;\n this.isNgZoneEnabled = false;\n /**\n * An event stream for routing events in this NgModule.\n */\n this.events = new Subject();\n /**\n * A handler for navigation errors in this NgModule.\n */\n this.errorHandler = defaultErrorHandler;\n /**\n * A handler for errors thrown by `Router.parseUrl(url)`\n * when `url` contains an invalid character.\n * The most common case is a `%` sign\n * that's not encoded and is not part of a percent encoded sequence.\n */\n this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;\n /**\n * True if at least one navigation event has occurred,\n * false otherwise.\n */\n this.navigated = false;\n this.lastSuccessfulId = -1;\n /**\n * Hooks that enable you to pause navigation,\n * either before or after the preactivation phase.\n * Used by `RouterModule`.\n *\n * @internal\n */\n this.hooks = { beforePreactivation: defaultRouterHook, afterPreactivation: defaultRouterHook };\n /**\n * A strategy for extracting and merging URLs.\n * Used for AngularJS to Angular migrations.\n */\n this.urlHandlingStrategy = new DefaultUrlHandlingStrategy();\n /**\n * A strategy for re-using routes.\n */\n this.routeReuseStrategy = new DefaultRouteReuseStrategy();\n /**\n * How to handle a navigation request to the current URL. One of:\n *\n * - `'ignore'` : The router ignores the request.\n * - `'reload'` : The router reloads the URL. Use to implement a \"refresh\" feature.\n *\n * Note that this only configures whether the Route reprocesses the URL and triggers related\n * action and events like redirects, guards, and resolvers. By default, the router re-uses a\n * component instance when it re-navigates to the same component type without visiting a different\n * component first. This behavior is configured by the `RouteReuseStrategy`. In order to reload\n * routed components on same url navigation, you need to set `onSameUrlNavigation` to `'reload'`\n * _and_ provide a `RouteReuseStrategy` which returns `false` for `shouldReuseRoute`.\n */\n this.onSameUrlNavigation = 'ignore';\n /**\n * How to merge parameters, data, and resolved data from parent to child\n * routes. One of:\n *\n * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data\n * for path-less or component-less routes.\n * - `'always'` : Inherit parent parameters, data, and resolved data\n * for all child routes.\n */\n this.paramsInheritanceStrategy = 'emptyOnly';\n /**\n * Determines when the router updates the browser URL.\n * By default (`\"deferred\"`), updates the browser URL after navigation has finished.\n * Set to `'eager'` to update the browser URL at the beginning of navigation.\n * You can choose to update early so that, if navigation fails,\n * you can show an error message with the URL that failed.\n */\n this.urlUpdateStrategy = 'deferred';\n /**\n * Enables a bug fix that corrects relative link resolution in components with empty paths.\n * @see `RouterModule`\n */\n this.relativeLinkResolution = 'corrected';\n /**\n * Configures how the Router attempts to restore state when a navigation is cancelled.\n *\n * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the\n * router before the navigation started. This means that if the URL of the browser is updated\n * _before_ the navigation is canceled, the Router will simply replace the item in history rather\n * than trying to restore to the previous location in the session history. This happens most\n * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward\n * buttons.\n *\n * 'computed' - Will attempt to return to the same index in the session history that corresponds\n * to the Angular route when the navigation gets cancelled. For example, if the browser back\n * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation\n * and vice versa.\n *\n * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only\n * handles a portion of the URL because the history restoration navigates to the previous place in\n * the browser history rather than simply resetting a portion of the URL.\n *\n * The default value is `replace`.\n *\n */\n this.canceledNavigationResolution = 'replace';\n const onLoadStart = (r) => this.triggerEvent(new RouteConfigLoadStart(r));\n const onLoadEnd = (r) => this.triggerEvent(new RouteConfigLoadEnd(r));\n this.ngModule = injector.get(NgModuleRef);\n this.console = injector.get(ɵConsole);\n const ngZone = injector.get(NgZone);\n this.isNgZoneEnabled = ngZone instanceof NgZone && NgZone.isInAngularZone();\n this.resetConfig(config);\n this.currentUrlTree = createEmptyUrlTree();\n this.rawUrlTree = this.currentUrlTree;\n this.browserUrlTree = this.currentUrlTree;\n this.configLoader = new RouterConfigLoader(injector, compiler, onLoadStart, onLoadEnd);\n this.routerState = createEmptyState(this.currentUrlTree, this.rootComponentType);\n this.transitions = new BehaviorSubject({\n id: 0,\n targetPageId: 0,\n currentUrlTree: this.currentUrlTree,\n currentRawUrl: this.currentUrlTree,\n extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree),\n urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree),\n rawUrl: this.currentUrlTree,\n extras: {},\n resolve: null,\n reject: null,\n promise: Promise.resolve(true),\n source: 'imperative',\n restoredState: null,\n currentSnapshot: this.routerState.snapshot,\n targetSnapshot: null,\n currentRouterState: this.routerState,\n targetRouterState: null,\n guards: { canActivateChecks: [], canDeactivateChecks: [] },\n guardsResult: null,\n });\n this.navigations = this.setupNavigations(this.transitions);\n this.processNavigations();\n }\n /**\n * The ɵrouterPageId of whatever page is currently active in the browser history. This is\n * important for computing the target page id for new navigations because we need to ensure each\n * page id in the browser history is 1 more than the previous entry.\n */\n get browserPageId() {\n var _a;\n return (_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a.ɵrouterPageId;\n }\n setupNavigations(transitions) {\n const eventsSubject = this.events;\n return transitions.pipe(filter(t => t.id !== 0), \n // Extract URL\n map(t => (Object.assign(Object.assign({}, t), { extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl) }))), \n // Using switchMap so we cancel executing navigations when a new one comes in\n switchMap(t => {\n let completed = false;\n let errored = false;\n return of(t).pipe(\n // Store the Navigation object\n tap(t => {\n this.currentNavigation = {\n id: t.id,\n initialUrl: t.currentRawUrl,\n extractedUrl: t.extractedUrl,\n trigger: t.source,\n extras: t.extras,\n previousNavigation: this.lastSuccessfulNavigation ? Object.assign(Object.assign({}, this.lastSuccessfulNavigation), { previousNavigation: null }) :\n null\n };\n }), switchMap(t => {\n const browserUrlTree = this.browserUrlTree.toString();\n const urlTransition = !this.navigated ||\n t.extractedUrl.toString() !== browserUrlTree ||\n // Navigations which succeed or ones which fail and are cleaned up\n // correctly should result in `browserUrlTree` and `currentUrlTree`\n // matching. If this is not the case, assume something went wrong and try\n // processing the URL again.\n browserUrlTree !== this.currentUrlTree.toString();\n const processCurrentUrl = (this.onSameUrlNavigation === 'reload' ? true : urlTransition) &&\n this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);\n if (processCurrentUrl) {\n // If the source of the navigation is from a browser event, the URL is\n // already updated. We already need to sync the internal state.\n if (isBrowserTriggeredNavigation(t.source)) {\n this.browserUrlTree = t.extractedUrl;\n }\n return of(t).pipe(\n // Fire NavigationStart event\n switchMap(t => {\n const transition = this.transitions.getValue();\n eventsSubject.next(new NavigationStart(t.id, this.serializeUrl(t.extractedUrl), t.source, t.restoredState));\n if (transition !== this.transitions.getValue()) {\n return EMPTY;\n }\n // This delay is required to match old behavior that forced\n // navigation to always be async\n return Promise.resolve(t);\n }), \n // ApplyRedirects\n applyRedirects(this.ngModule.injector, this.configLoader, this.urlSerializer, this.config), \n // Update the currentNavigation\n // `urlAfterRedirects` is guaranteed to be set after this point\n tap(t => {\n this.currentNavigation = Object.assign(Object.assign({}, this.currentNavigation), { finalUrl: t.urlAfterRedirects });\n }), \n // Recognize\n recognize(this.rootComponentType, this.config, (url) => this.serializeUrl(url), this.paramsInheritanceStrategy, this.relativeLinkResolution), \n // Update URL if in `eager` update mode\n tap(t => {\n if (this.urlUpdateStrategy === 'eager') {\n if (!t.extras.skipLocationChange) {\n const rawUrl = this.urlHandlingStrategy.merge(t.urlAfterRedirects, t.rawUrl);\n this.setBrowserUrl(rawUrl, t);\n }\n this.browserUrlTree = t.urlAfterRedirects;\n }\n // Fire RoutesRecognized\n const routesRecognized = new RoutesRecognized(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n eventsSubject.next(routesRecognized);\n }));\n }\n else {\n const processPreviousUrl = urlTransition && this.rawUrlTree &&\n this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree);\n /* When the current URL shouldn't be processed, but the previous one was,\n * we handle this \"error condition\" by navigating to the previously\n * successful URL, but leaving the URL intact.*/\n if (processPreviousUrl) {\n const { id, extractedUrl, source, restoredState, extras } = t;\n const navStart = new NavigationStart(id, this.serializeUrl(extractedUrl), source, restoredState);\n eventsSubject.next(navStart);\n const targetSnapshot = createEmptyState(extractedUrl, this.rootComponentType).snapshot;\n return of(Object.assign(Object.assign({}, t), { targetSnapshot, urlAfterRedirects: extractedUrl, extras: Object.assign(Object.assign({}, extras), { skipLocationChange: false, replaceUrl: false }) }));\n }\n else {\n /* When neither the current or previous URL can be processed, do nothing\n * other than update router's internal reference to the current \"settled\"\n * URL. This way the next navigation will be coming from the current URL\n * in the browser.\n */\n this.rawUrlTree = t.rawUrl;\n t.resolve(null);\n return EMPTY;\n }\n }\n }), \n // Before Preactivation\n switchTap(t => {\n const { targetSnapshot, id: navigationId, extractedUrl: appliedUrlTree, rawUrl: rawUrlTree, extras: { skipLocationChange, replaceUrl } } = t;\n return this.hooks.beforePreactivation(targetSnapshot, {\n navigationId,\n appliedUrlTree,\n rawUrlTree,\n skipLocationChange: !!skipLocationChange,\n replaceUrl: !!replaceUrl,\n });\n }), \n // --- GUARDS ---\n tap(t => {\n const guardsStart = new GuardsCheckStart(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n this.triggerEvent(guardsStart);\n }), map(t => (Object.assign(Object.assign({}, t), { guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts) }))), checkGuards(this.ngModule.injector, (evt) => this.triggerEvent(evt)), tap(t => {\n if (isUrlTree(t.guardsResult)) {\n const error = navigationCancelingError(`Redirecting to \"${this.serializeUrl(t.guardsResult)}\"`);\n error.url = t.guardsResult;\n throw error;\n }\n const guardsEnd = new GuardsCheckEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);\n this.triggerEvent(guardsEnd);\n }), filter(t => {\n if (!t.guardsResult) {\n this.restoreHistory(t);\n this.cancelNavigationTransition(t, '');\n return false;\n }\n return true;\n }), \n // --- RESOLVE ---\n switchTap(t => {\n if (t.guards.canActivateChecks.length) {\n return of(t).pipe(tap(t => {\n const resolveStart = new ResolveStart(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n this.triggerEvent(resolveStart);\n }), switchMap(t => {\n let dataResolved = false;\n return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.ngModule.injector), tap({\n next: () => dataResolved = true,\n complete: () => {\n if (!dataResolved) {\n this.restoreHistory(t);\n this.cancelNavigationTransition(t, `At least one route resolver didn't emit any value.`);\n }\n }\n }));\n }), tap(t => {\n const resolveEnd = new ResolveEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);\n this.triggerEvent(resolveEnd);\n }));\n }\n return undefined;\n }), \n // --- AFTER PREACTIVATION ---\n switchTap((t) => {\n const { targetSnapshot, id: navigationId, extractedUrl: appliedUrlTree, rawUrl: rawUrlTree, extras: { skipLocationChange, replaceUrl } } = t;\n return this.hooks.afterPreactivation(targetSnapshot, {\n navigationId,\n appliedUrlTree,\n rawUrlTree,\n skipLocationChange: !!skipLocationChange,\n replaceUrl: !!replaceUrl,\n });\n }), map((t) => {\n const targetRouterState = createRouterState(this.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);\n return (Object.assign(Object.assign({}, t), { targetRouterState }));\n }), \n /* Once here, we are about to activate syncronously. The assumption is this\n will succeed, and user code may read from the Router service. Therefore\n before activation, we need to update router properties storing the current\n URL and the RouterState, as well as updated the browser URL. All this should\n happen *before* activating. */\n tap((t) => {\n this.currentUrlTree = t.urlAfterRedirects;\n this.rawUrlTree =\n this.urlHandlingStrategy.merge(t.urlAfterRedirects, t.rawUrl);\n this.routerState = t.targetRouterState;\n if (this.urlUpdateStrategy === 'deferred') {\n if (!t.extras.skipLocationChange) {\n this.setBrowserUrl(this.rawUrlTree, t);\n }\n this.browserUrlTree = t.urlAfterRedirects;\n }\n }), activateRoutes(this.rootContexts, this.routeReuseStrategy, (evt) => this.triggerEvent(evt)), tap({\n next() {\n completed = true;\n },\n complete() {\n completed = true;\n }\n }), finalize(() => {\n var _a;\n /* When the navigation stream finishes either through error or success, we\n * set the `completed` or `errored` flag. However, there are some situations\n * where we could get here without either of those being set. For instance, a\n * redirect during NavigationStart. Therefore, this is a catch-all to make\n * sure the NavigationCancel\n * event is fired when a navigation gets cancelled but not caught by other\n * means. */\n if (!completed && !errored) {\n const cancelationReason = `Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;\n this.cancelNavigationTransition(t, cancelationReason);\n }\n // Only clear current navigation if it is still set to the one that\n // finalized.\n if (((_a = this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id) === t.id) {\n this.currentNavigation = null;\n }\n }), catchError((e) => {\n // TODO(atscott): The NavigationTransition `t` used here does not accurately\n // reflect the current state of the whole transition because some operations\n // return a new object rather than modifying the one in the outermost\n // `switchMap`.\n // The fix can likely be to:\n // 1. Rename the outer `t` variable so it's not shadowed all the time and\n // confusing\n // 2. Keep reassigning to the outer variable after each stage to ensure it\n // gets updated. Or change the implementations to not return a copy.\n // Not changed yet because it affects existing code and would need to be\n // tested more thoroughly.\n errored = true;\n /* This error type is issued during Redirect, and is handled as a\n * cancellation rather than an error. */\n if (isNavigationCancelingError(e)) {\n const redirecting = isUrlTree(e.url);\n if (!redirecting) {\n // Set property only if we're not redirecting. If we landed on a page and\n // redirect to `/` route, the new navigation is going to see the `/`\n // isn't a change from the default currentUrlTree and won't navigate.\n // This is only applicable with initial navigation, so setting\n // `navigated` only when not redirecting resolves this scenario.\n this.navigated = true;\n this.restoreHistory(t, true);\n }\n const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), e.message);\n eventsSubject.next(navCancel);\n // When redirecting, we need to delay resolving the navigation\n // promise and push it to the redirect navigation\n if (!redirecting) {\n t.resolve(false);\n }\n else {\n // setTimeout is required so this navigation finishes with\n // the return EMPTY below. If it isn't allowed to finish\n // processing, there can be multiple navigations to the same\n // URL.\n setTimeout(() => {\n const mergedTree = this.urlHandlingStrategy.merge(e.url, this.rawUrlTree);\n const extras = {\n skipLocationChange: t.extras.skipLocationChange,\n // The URL is already updated at this point if we have 'eager' URL\n // updates or if the navigation was triggered by the browser (back\n // button, URL bar, etc). We want to replace that item in history if\n // the navigation is rejected.\n replaceUrl: this.urlUpdateStrategy === 'eager' ||\n isBrowserTriggeredNavigation(t.source)\n };\n this.scheduleNavigation(mergedTree, 'imperative', null, extras, { resolve: t.resolve, reject: t.reject, promise: t.promise });\n }, 0);\n }\n /* All other errors should reset to the router's internal URL reference to\n * the pre-error state. */\n }\n else {\n this.restoreHistory(t, true);\n const navError = new NavigationError(t.id, this.serializeUrl(t.extractedUrl), e);\n eventsSubject.next(navError);\n try {\n t.resolve(this.errorHandler(e));\n }\n catch (ee) {\n t.reject(ee);\n }\n }\n return EMPTY;\n }));\n // TODO(jasonaden): remove cast once g3 is on updated TypeScript\n }));\n }\n /**\n * @internal\n * TODO: this should be removed once the constructor of the router made internal\n */\n resetRootComponentType(rootComponentType) {\n this.rootComponentType = rootComponentType;\n // TODO: vsavkin router 4.0 should make the root component set to null\n // this will simplify the lifecycle of the router.\n this.routerState.root.component = this.rootComponentType;\n }\n setTransition(t) {\n this.transitions.next(Object.assign(Object.assign({}, this.transitions.value), t));\n }\n /**\n * Sets up the location change listener and performs the initial navigation.\n */\n initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }\n /**\n * Sets up the location change listener. This listener detects navigations triggered from outside\n * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router\n * navigation so that the correct events, guards, etc. are triggered.\n */\n setUpLocationChangeListener() {\n // Don't need to use Zone.wrap any more, because zone.js\n // already patch onPopState, so location change callback will\n // run into ngZone\n if (!this.locationSubscription) {\n this.locationSubscription = this.location.subscribe(event => {\n const source = event['type'] === 'popstate' ? 'popstate' : 'hashchange';\n if (source === 'popstate') {\n // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS\n // hybrid apps.\n setTimeout(() => {\n var _a;\n const extras = { replaceUrl: true };\n // Navigations coming from Angular router have a navigationId state\n // property. When this exists, restore the state.\n const state = ((_a = event.state) === null || _a === void 0 ? void 0 : _a.navigationId) ? event.state : null;\n if (state) {\n const stateCopy = Object.assign({}, state);\n delete stateCopy.navigationId;\n delete stateCopy.ɵrouterPageId;\n if (Object.keys(stateCopy).length !== 0) {\n extras.state = stateCopy;\n }\n }\n const urlTree = this.parseUrl(event['url']);\n this.scheduleNavigation(urlTree, source, state, extras);\n }, 0);\n }\n });\n }\n }\n /** The current URL. */\n get url() {\n return this.serializeUrl(this.currentUrlTree);\n }\n /**\n * Returns the current `Navigation` object when the router is navigating,\n * and `null` when idle.\n */\n getCurrentNavigation() {\n return this.currentNavigation;\n }\n /** @internal */\n triggerEvent(event) {\n this.events.next(event);\n }\n /**\n * Resets the route configuration used for navigation and generating links.\n *\n * @param config The route array for the new configuration.\n *\n * @usageNotes\n *\n * ```\n * router.resetConfig([\n * { path: 'team/:id', component: TeamCmp, children: [\n * { path: 'simple', component: SimpleCmp },\n * { path: 'user/:name', component: UserCmp }\n * ]}\n * ]);\n * ```\n */\n resetConfig(config) {\n validateConfig(config);\n this.config = config.map(standardizeConfig);\n this.navigated = false;\n this.lastSuccessfulId = -1;\n }\n /** @nodoc */\n ngOnDestroy() {\n this.dispose();\n }\n /** Disposes of the router. */\n dispose() {\n this.transitions.complete();\n if (this.locationSubscription) {\n this.locationSubscription.unsubscribe();\n this.locationSubscription = undefined;\n }\n this.disposed = true;\n }\n /**\n * Appends URL segments to the current URL tree to create a new URL tree.\n *\n * @param commands An array of URL fragments with which to construct the new URL tree.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL tree or the one provided in the `relativeTo`\n * property of the options object, if supplied.\n * @param navigationExtras Options that control the navigation strategy.\n * @returns The new URL tree.\n *\n * @usageNotes\n *\n * ```\n * // create /team/33/user/11\n * router.createUrlTree(['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * router.createUrlTree(['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it,\n * // you can do the following:\n * router.createUrlTree([{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\n *\n * // remove the right secondary node\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\n *\n * // navigate to /team/33/user/11/details\n * router.createUrlTree(['details'], {relativeTo: route});\n *\n * // navigate to /team/33/user/22\n * router.createUrlTree(['../22'], {relativeTo: route});\n *\n * // navigate to /team/44/user/22\n * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\n *\n * Note that a value of `null` or `undefined` for `relativeTo` indicates that the\n * tree should be created relative to the root.\n * ```\n */\n createUrlTree(commands, navigationExtras = {}) {\n const { relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment } = navigationExtras;\n const a = relativeTo || this.routerState.root;\n const f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n let q = null;\n switch (queryParamsHandling) {\n case 'merge':\n q = Object.assign(Object.assign({}, this.currentUrlTree.queryParams), queryParams);\n break;\n case 'preserve':\n q = this.currentUrlTree.queryParams;\n break;\n default:\n q = queryParams || null;\n }\n if (q !== null) {\n q = this.removeEmptyProps(q);\n }\n return createUrlTree(a, this.currentUrlTree, commands, q, f !== null && f !== void 0 ? f : null);\n }\n /**\n * Navigates to a view using an absolute route path.\n *\n * @param url An absolute path for a defined route. The function does not apply any delta to the\n * current URL.\n * @param extras An object containing properties that modify the navigation strategy.\n *\n * @returns A Promise that resolves to 'true' when navigation succeeds,\n * to 'false' when navigation fails, or is rejected on error.\n *\n * @usageNotes\n *\n * The following calls request navigation to an absolute path.\n *\n * ```\n * router.navigateByUrl(\"/team/33/user/11\");\n *\n * // Navigate without updating the URL\n * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\n * ```\n *\n * @see [Routing and Navigation guide](guide/router)\n *\n */\n navigateByUrl(url, extras = {\n skipLocationChange: false\n }) {\n if (typeof ngDevMode === 'undefined' ||\n ngDevMode && this.isNgZoneEnabled && !NgZone.isInAngularZone()) {\n this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);\n }\n const urlTree = isUrlTree(url) ? url : this.parseUrl(url);\n const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);\n return this.scheduleNavigation(mergedTree, 'imperative', null, extras);\n }\n /**\n * Navigate based on the provided array of commands and a starting point.\n * If no starting route is provided, the navigation is absolute.\n *\n * @param commands An array of URL fragments with which to construct the target URL.\n * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path\n * segments, followed by the parameters for each segment.\n * The fragments are applied to the current URL or the one provided in the `relativeTo` property\n * of the options object, if supplied.\n * @param extras An options object that determines how the URL should be constructed or\n * interpreted.\n *\n * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation\n * fails,\n * or is rejected on error.\n *\n * @usageNotes\n *\n * The following calls request navigation to a dynamic route path relative to the current URL.\n *\n * ```\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route});\n *\n * // Navigate without updating the URL, overriding the default behavior\n * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});\n * ```\n *\n * @see [Routing and Navigation guide](guide/router)\n *\n */\n navigate(commands, extras = { skipLocationChange: false }) {\n validateCommands(commands);\n return this.navigateByUrl(this.createUrlTree(commands, extras), extras);\n }\n /** Serializes a `UrlTree` into a string */\n serializeUrl(url) {\n return this.urlSerializer.serialize(url);\n }\n /** Parses a string into a `UrlTree` */\n parseUrl(url) {\n let urlTree;\n try {\n urlTree = this.urlSerializer.parse(url);\n }\n catch (e) {\n urlTree = this.malformedUriErrorHandler(e, this.urlSerializer, url);\n }\n return urlTree;\n }\n isActive(url, matchOptions) {\n let options;\n if (matchOptions === true) {\n options = Object.assign({}, exactMatchOptions);\n }\n else if (matchOptions === false) {\n options = Object.assign({}, subsetMatchOptions);\n }\n else {\n options = matchOptions;\n }\n if (isUrlTree(url)) {\n return containsTree(this.currentUrlTree, url, options);\n }\n const urlTree = this.parseUrl(url);\n return containsTree(this.currentUrlTree, urlTree, options);\n }\n removeEmptyProps(params) {\n return Object.keys(params).reduce((result, key) => {\n const value = params[key];\n if (value !== null && value !== undefined) {\n result[key] = value;\n }\n return result;\n }, {});\n }\n processNavigations() {\n this.navigations.subscribe(t => {\n this.navigated = true;\n this.lastSuccessfulId = t.id;\n this.currentPageId = t.targetPageId;\n this.events\n .next(new NavigationEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(this.currentUrlTree)));\n this.lastSuccessfulNavigation = this.currentNavigation;\n t.resolve(true);\n }, e => {\n this.console.warn(`Unhandled Navigation Error: ${e}`);\n });\n }\n scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {\n var _a, _b, _c;\n if (this.disposed) {\n return Promise.resolve(false);\n }\n // Duplicate navigations may be triggered by attempts to sync AngularJS and\n // Angular router states. We have the setTimeout in the location listener to\n // ensure the imperative nav is scheduled before the browser nav.\n const lastNavigation = this.transitions.value;\n const browserNavPrecededByRouterNav = isBrowserTriggeredNavigation(source) && lastNavigation &&\n !isBrowserTriggeredNavigation(lastNavigation.source);\n const navToSameUrl = lastNavigation.rawUrl.toString() === rawUrl.toString();\n const lastNavigationInProgress = lastNavigation.id === ((_a = this.currentNavigation) === null || _a === void 0 ? void 0 : _a.id);\n // We consider duplicates as ones that goes to the same URL while the first\n // is still processing.\n const isDuplicateNav = navToSameUrl && lastNavigationInProgress;\n if (browserNavPrecededByRouterNav && isDuplicateNav) {\n return Promise.resolve(true); // return value is not used\n }\n let resolve;\n let reject;\n let promise;\n if (priorPromise) {\n resolve = priorPromise.resolve;\n reject = priorPromise.reject;\n promise = priorPromise.promise;\n }\n else {\n promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n }\n const id = ++this.navigationId;\n let targetPageId;\n if (this.canceledNavigationResolution === 'computed') {\n const isInitialPage = this.currentPageId === 0;\n if (isInitialPage) {\n restoredState = this.location.getState();\n }\n // If the `ɵrouterPageId` exist in the state then `targetpageId` should have the value of\n // `ɵrouterPageId`. This is the case for something like a page refresh where we assign the\n // target id to the previously set value for that page.\n if (restoredState && restoredState.ɵrouterPageId) {\n targetPageId = restoredState.ɵrouterPageId;\n }\n else {\n // If we're replacing the URL or doing a silent navigation, we do not want to increment the\n // page id because we aren't pushing a new entry to history.\n if (extras.replaceUrl || extras.skipLocationChange) {\n targetPageId = (_b = this.browserPageId) !== null && _b !== void 0 ? _b : 0;\n }\n else {\n targetPageId = ((_c = this.browserPageId) !== null && _c !== void 0 ? _c : 0) + 1;\n }\n }\n }\n else {\n // This is unused when `canceledNavigationResolution` is not computed.\n targetPageId = 0;\n }\n this.setTransition({\n id,\n targetPageId,\n source,\n restoredState,\n currentUrlTree: this.currentUrlTree,\n currentRawUrl: this.rawUrlTree,\n rawUrl,\n extras,\n resolve,\n reject,\n promise,\n currentSnapshot: this.routerState.snapshot,\n currentRouterState: this.routerState\n });\n // Make sure that the error is propagated even though `processNavigations` catch\n // handler does not rethrow\n return promise.catch((e) => {\n return Promise.reject(e);\n });\n }\n setBrowserUrl(url, t) {\n const path = this.urlSerializer.serialize(url);\n const state = Object.assign(Object.assign({}, t.extras.state), this.generateNgRouterState(t.id, t.targetPageId));\n if (this.location.isCurrentPathEqualTo(path) || !!t.extras.replaceUrl) {\n this.location.replaceState(path, '', state);\n }\n else {\n this.location.go(path, '', state);\n }\n }\n /**\n * Performs the necessary rollback action to restore the browser URL to the\n * state before the transition.\n */\n restoreHistory(t, restoringFromCaughtError = false) {\n var _a, _b;\n if (this.canceledNavigationResolution === 'computed') {\n const targetPagePosition = this.currentPageId - t.targetPageId;\n // The navigator change the location before triggered the browser event,\n // so we need to go back to the current url if the navigation is canceled.\n // Also, when navigation gets cancelled while using url update strategy eager, then we need to\n // go back. Because, when `urlUpdateSrategy` is `eager`; `setBrowserUrl` method is called\n // before any verification.\n const browserUrlUpdateOccurred = (t.source === 'popstate' || this.urlUpdateStrategy === 'eager' ||\n this.currentUrlTree === ((_a = this.currentNavigation) === null || _a === void 0 ? void 0 : _a.finalUrl));\n if (browserUrlUpdateOccurred && targetPagePosition !== 0) {\n this.location.historyGo(targetPagePosition);\n }\n else if (this.currentUrlTree === ((_b = this.currentNavigation) === null || _b === void 0 ? void 0 : _b.finalUrl) && targetPagePosition === 0) {\n // We got to the activation stage (where currentUrlTree is set to the navigation's\n // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).\n // We still need to reset the router state back to what it was when the navigation started.\n this.resetState(t);\n // TODO(atscott): resetting the `browserUrlTree` should really be done in `resetState`.\n // Investigate if this can be done by running TGP.\n this.browserUrlTree = t.currentUrlTree;\n this.resetUrlToCurrentUrlTree();\n }\n else {\n // The browser URL and router state was not updated before the navigation cancelled so\n // there's no restoration needed.\n }\n }\n else if (this.canceledNavigationResolution === 'replace') {\n // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op\n // for `deferred` navigations that haven't change the internal state yet because guards\n // reject. For 'eager' navigations, it seems like we also really should reset the state\n // because the navigation was cancelled. Investigate if this can be done by running TGP.\n if (restoringFromCaughtError) {\n this.resetState(t);\n }\n this.resetUrlToCurrentUrlTree();\n }\n }\n resetState(t) {\n this.routerState = t.currentRouterState;\n this.currentUrlTree = t.currentUrlTree;\n // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be\n // configured to handle only part of the navigation URL. This means we would only want to reset\n // the part of the navigation handled by the Angular router rather than the whole URL. In\n // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL\n // when merging, such as the query params so they are not lost on a refresh.\n this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);\n }\n resetUrlToCurrentUrlTree() {\n this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));\n }\n cancelNavigationTransition(t, reason) {\n const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), reason);\n this.triggerEvent(navCancel);\n t.resolve(false);\n }\n generateNgRouterState(navigationId, routerPageId) {\n if (this.canceledNavigationResolution === 'computed') {\n return { navigationId, ɵrouterPageId: routerPageId };\n }\n return { navigationId };\n }\n}\nRouter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Router, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\nRouter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Router });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Router, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });\nfunction validateCommands(commands) {\n for (let i = 0; i < commands.length; i++) {\n const cmd = commands[i];\n if (cmd == null) {\n throw new Error(`The requested path contains ${cmd} segment at index ${i}`);\n }\n }\n}\nfunction isBrowserTriggeredNavigation(source) {\n return source !== 'imperative';\n}\n\n/**\n * @description\n *\n * When applied to an element in a template, makes that element a link\n * that initiates navigation to a route. Navigation opens one or more routed components\n * in one or more `<router-outlet>` locations on the page.\n *\n * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,\n * the following creates a static link to the route:\n * `<a routerLink=\"/user/bob\">link to user component</a>`\n *\n * You can use dynamic values to generate the link.\n * For a dynamic link, pass an array of path segments,\n * followed by the params for each segment.\n * For example, `['/team', teamId, 'user', userName, {details: true}]`\n * generates a link to `/team/11/user/bob;details=true`.\n *\n * Multiple static segments can be merged into one term and combined with dynamic segements.\n * For example, `['/team/11/user', userName, {details: true}]`\n *\n * The input that you provide to the link is treated as a delta to the current URL.\n * For instance, suppose the current URL is `/user/(box//aux:team)`.\n * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL\n * `/user/(jim//aux:team)`.\n * See {@link Router#createUrlTree createUrlTree} for more information.\n *\n * @usageNotes\n *\n * You can use absolute or relative paths in a link, set query parameters,\n * control how parameters are handled, and keep a history of navigation states.\n *\n * ### Relative link paths\n *\n * The first segment name can be prepended with `/`, `./`, or `../`.\n * * If the first segment begins with `/`, the router looks up the route from the root of the\n * app.\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router\n * looks in the children of the current activated route.\n * * If the first segment begins with `../`, the router goes up one level in the route tree.\n *\n * ### Setting and handling query params and fragments\n *\n * The following link adds a query parameter and a fragment to the generated URL:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">\n * link to user component\n * </a>\n * ```\n * By default, the directive constructs the new URL using the given query parameters.\n * The example generates the link: `/user/bob?debug=true#education`.\n *\n * You can instruct the directive to handle query parameters differently\n * by specifying the `queryParamsHandling` option in the link.\n * Allowed values are:\n *\n * - `'merge'`: Merge the given `queryParams` into the current query params.\n * - `'preserve'`: Preserve the current query params.\n *\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">\n * link to user component\n * </a>\n * ```\n *\n * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.\n *\n * ### Preserving navigation history\n *\n * You can provide a `state` value to be persisted to the browser's\n * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).\n * For example:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">\n * link to user component\n * </a>\n * ```\n *\n * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved\n * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`\n * event:\n *\n * ```\n * // Get NavigationStart events\n * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {\n * const navigation = router.getCurrentNavigation();\n * tracingService.trace({id: navigation.extras.state.tracingId});\n * });\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLink {\n constructor(router, route, tabIndexAttribute, renderer, el) {\n this.router = router;\n this.route = route;\n this.tabIndexAttribute = tabIndexAttribute;\n this.renderer = renderer;\n this.el = el;\n this.commands = null;\n /** @internal */\n this.onChanges = new Subject();\n this.setTabIndexIfNotOnNativeEl('0');\n }\n /**\n * Modifies the tab index if there was not a tabindex attribute on the element during\n * instantiation.\n */\n setTabIndexIfNotOnNativeEl(newTabIndex) {\n if (this.tabIndexAttribute != null /* both `null` and `undefined` */) {\n return;\n }\n const renderer = this.renderer;\n const nativeElement = this.el.nativeElement;\n if (newTabIndex !== null) {\n renderer.setAttribute(nativeElement, 'tabindex', newTabIndex);\n }\n else {\n renderer.removeAttribute(nativeElement, 'tabindex');\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes\n // to the RouterLinks it's tracking.\n this.onChanges.next(this);\n }\n /**\n * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n * - **null|undefined**: effectively disables the `routerLink`\n * @see {@link Router#createUrlTree Router#createUrlTree}\n */\n set routerLink(commands) {\n if (commands != null) {\n this.commands = Array.isArray(commands) ? commands : [commands];\n this.setTabIndexIfNotOnNativeEl('0');\n }\n else {\n this.commands = null;\n this.setTabIndexIfNotOnNativeEl(null);\n }\n }\n /** @nodoc */\n onClick() {\n if (this.urlTree === null) {\n return true;\n }\n const extras = {\n skipLocationChange: attrBoolValue(this.skipLocationChange),\n replaceUrl: attrBoolValue(this.replaceUrl),\n state: this.state,\n };\n this.router.navigateByUrl(this.urlTree, extras);\n return true;\n }\n get urlTree() {\n if (this.commands === null) {\n return null;\n }\n return this.router.createUrlTree(this.commands, {\n // If the `relativeTo` input is not defined, we want to use `this.route` by default.\n // Otherwise, we should use the value provided by the user in the input.\n relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n queryParamsHandling: this.queryParamsHandling,\n preserveFragment: attrBoolValue(this.preserveFragment),\n });\n }\n}\nRouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RouterLink, selector: \":not(a):not(area)[routerLink]\", inputs: { queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", preserveFragment: \"preserveFragment\", skipLocationChange: \"skipLocationChange\", replaceUrl: \"replaceUrl\", state: \"state\", relativeTo: \"relativeTo\", routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick()\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLink, decorators: [{\n type: Directive,\n args: [{ selector: ':not(a):not(area)[routerLink]' }]\n }], ctorParameters: function () {\n return [{ type: Router }, { type: ActivatedRoute }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }];\n }, propDecorators: { queryParams: [{\n type: Input\n }], fragment: [{\n type: Input\n }], queryParamsHandling: [{\n type: Input\n }], preserveFragment: [{\n type: Input\n }], skipLocationChange: [{\n type: Input\n }], replaceUrl: [{\n type: Input\n }], state: [{\n type: Input\n }], relativeTo: [{\n type: Input\n }], routerLink: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['click']\n }] } });\n/**\n * @description\n *\n * Lets you link to specific routes in your app.\n *\n * See `RouterLink` for more information.\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkWithHref {\n constructor(router, route, locationStrategy) {\n this.router = router;\n this.route = route;\n this.locationStrategy = locationStrategy;\n this.commands = null;\n // the url displayed on the anchor element.\n // @HostBinding('attr.href') is used rather than @HostBinding() because it removes the\n // href attribute when it becomes `null`.\n this.href = null;\n /** @internal */\n this.onChanges = new Subject();\n this.subscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.updateTargetUrlAndHref();\n }\n });\n }\n /**\n * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.\n * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`\n * - **null|undefined**: Disables the link by removing the `href`\n * @see {@link Router#createUrlTree Router#createUrlTree}\n */\n set routerLink(commands) {\n if (commands != null) {\n this.commands = Array.isArray(commands) ? commands : [commands];\n }\n else {\n this.commands = null;\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this.updateTargetUrlAndHref();\n this.onChanges.next(this);\n }\n /** @nodoc */\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n /** @nodoc */\n onClick(button, ctrlKey, shiftKey, altKey, metaKey) {\n if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {\n return true;\n }\n if (typeof this.target === 'string' && this.target != '_self' || this.urlTree === null) {\n return true;\n }\n const extras = {\n skipLocationChange: attrBoolValue(this.skipLocationChange),\n replaceUrl: attrBoolValue(this.replaceUrl),\n state: this.state\n };\n this.router.navigateByUrl(this.urlTree, extras);\n return false;\n }\n updateTargetUrlAndHref() {\n this.href = this.urlTree !== null ?\n this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)) :\n null;\n }\n get urlTree() {\n if (this.commands === null) {\n return null;\n }\n return this.router.createUrlTree(this.commands, {\n // If the `relativeTo` input is not defined, we want to use `this.route` by default.\n // Otherwise, we should use the value provided by the user in the input.\n relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n queryParamsHandling: this.queryParamsHandling,\n preserveFragment: attrBoolValue(this.preserveFragment),\n });\n }\n}\nRouterLinkWithHref.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLinkWithHref, deps: [{ token: Router }, { token: ActivatedRoute }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLinkWithHref.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RouterLinkWithHref, selector: \"a[routerLink],area[routerLink]\", inputs: { target: \"target\", queryParams: \"queryParams\", fragment: \"fragment\", queryParamsHandling: \"queryParamsHandling\", preserveFragment: \"preserveFragment\", skipLocationChange: \"skipLocationChange\", replaceUrl: \"replaceUrl\", state: \"state\", relativeTo: \"relativeTo\", routerLink: \"routerLink\" }, host: { listeners: { \"click\": \"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)\" }, properties: { \"attr.target\": \"this.target\", \"attr.href\": \"this.href\" } }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLinkWithHref, decorators: [{\n type: Directive,\n args: [{ selector: 'a[routerLink],area[routerLink]' }]\n }], ctorParameters: function () { return [{ type: Router }, { type: ActivatedRoute }, { type: i3.LocationStrategy }]; }, propDecorators: { target: [{\n type: HostBinding,\n args: ['attr.target']\n }, {\n type: Input\n }], queryParams: [{\n type: Input\n }], fragment: [{\n type: Input\n }], queryParamsHandling: [{\n type: Input\n }], preserveFragment: [{\n type: Input\n }], skipLocationChange: [{\n type: Input\n }], replaceUrl: [{\n type: Input\n }], state: [{\n type: Input\n }], relativeTo: [{\n type: Input\n }], href: [{\n type: HostBinding,\n args: ['attr.href']\n }], routerLink: [{\n type: Input\n }], onClick: [{\n type: HostListener,\n args: ['click',\n ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]\n }] } });\nfunction attrBoolValue(s) {\n return s === '' || !!s;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n *\n * @description\n *\n * Tracks whether the linked route of an element is currently active, and allows you\n * to specify one or more CSS classes to add to the element when the linked route\n * is active.\n *\n * Use this directive to create a visual distinction for elements associated with an active route.\n * For example, the following code highlights the word \"Bob\" when the router\n * activates the associated route:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\n * ```\n *\n * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is\n * added to the anchor tag. If the URL changes, the class is removed.\n *\n * You can set more than one class using a space-separated string or an array.\n * For example:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\n * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>\n * ```\n *\n * To add the classes only when the URL matches the link exactly, add the option `exact: true`:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\n * true}\">Bob</a>\n * ```\n *\n * To directly check the `isActive` status of the link, assign the `RouterLinkActive`\n * instance to a template variable.\n * For example, the following checks the status without assigning any CSS classes:\n *\n * ```\n * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">\n * Bob {{ rla.isActive ? '(already open)' : ''}}\n * </a>\n * ```\n *\n * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.\n * For example, the following sets the active-link class on the `<div>` parent tag\n * when the URL is either '/user/jim' or '/user/bob'.\n *\n * ```\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\n * <a routerLink=\"/user/jim\">Jim</a>\n * <a routerLink=\"/user/bob\">Bob</a>\n * </div>\n * ```\n *\n * @ngModule RouterModule\n *\n * @publicApi\n */\nclass RouterLinkActive {\n constructor(router, element, renderer, cdr, link, linkWithHref) {\n this.router = router;\n this.element = element;\n this.renderer = renderer;\n this.cdr = cdr;\n this.link = link;\n this.linkWithHref = linkWithHref;\n this.classes = [];\n this.isActive = false;\n /**\n * Options to configure how to determine if the router link is active.\n *\n * These options are passed to the `Router.isActive()` function.\n *\n * @see Router.isActive\n */\n this.routerLinkActiveOptions = { exact: false };\n /**\n *\n * You can use the output `isActiveChange` to get notified each time the link becomes\n * active or inactive.\n *\n * Emits:\n * true -> Route is active\n * false -> Route is inactive\n *\n * ```\n * <a\n * routerLink=\"/user/bob\"\n * routerLinkActive=\"active-link\"\n * (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>\n * ```\n */\n this.isActiveChange = new EventEmitter();\n this.routerEventsSubscription = router.events.subscribe((s) => {\n if (s instanceof NavigationEnd) {\n this.update();\n }\n });\n }\n /** @nodoc */\n ngAfterContentInit() {\n // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).\n of(this.links.changes, this.linksWithHrefs.changes, of(null)).pipe(mergeAll()).subscribe(_ => {\n this.update();\n this.subscribeToEachLinkOnChanges();\n });\n }\n subscribeToEachLinkOnChanges() {\n var _a;\n (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n const allLinkChanges = [...this.links.toArray(), ...this.linksWithHrefs.toArray(), this.link, this.linkWithHref]\n .filter((link) => !!link)\n .map(link => link.onChanges);\n this.linkInputChangesSubscription = from(allLinkChanges).pipe(mergeAll()).subscribe(link => {\n if (this.isActive !== this.isLinkActive(this.router)(link)) {\n this.update();\n }\n });\n }\n set routerLinkActive(data) {\n const classes = Array.isArray(data) ? data : data.split(' ');\n this.classes = classes.filter(c => !!c);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this.update();\n }\n /** @nodoc */\n ngOnDestroy() {\n var _a;\n this.routerEventsSubscription.unsubscribe();\n (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n }\n update() {\n if (!this.links || !this.linksWithHrefs || !this.router.navigated)\n return;\n Promise.resolve().then(() => {\n const hasActiveLinks = this.hasActiveLinks();\n if (this.isActive !== hasActiveLinks) {\n this.isActive = hasActiveLinks;\n this.cdr.markForCheck();\n this.classes.forEach((c) => {\n if (hasActiveLinks) {\n this.renderer.addClass(this.element.nativeElement, c);\n }\n else {\n this.renderer.removeClass(this.element.nativeElement, c);\n }\n });\n // Emit on isActiveChange after classes are updated\n this.isActiveChange.emit(hasActiveLinks);\n }\n });\n }\n isLinkActive(router) {\n const options = isActiveMatchOptions(this.routerLinkActiveOptions) ?\n this.routerLinkActiveOptions :\n // While the types should disallow `undefined` here, it's possible without strict inputs\n (this.routerLinkActiveOptions.exact || false);\n return (link) => link.urlTree ? router.isActive(link.urlTree, options) : false;\n }\n hasActiveLinks() {\n const isActiveCheckFn = this.isLinkActive(this.router);\n return this.link && isActiveCheckFn(this.link) ||\n this.linkWithHref && isActiveCheckFn(this.linkWithHref) ||\n this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);\n }\n}\nRouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }, { token: RouterLinkWithHref, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nRouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RouterLinkActive, selector: \"[routerLinkActive]\", inputs: { routerLinkActiveOptions: \"routerLinkActiveOptions\", routerLinkActive: \"routerLinkActive\" }, outputs: { isActiveChange: \"isActiveChange\" }, queries: [{ propertyName: \"links\", predicate: RouterLink, descendants: true }, { propertyName: \"linksWithHrefs\", predicate: RouterLinkWithHref, descendants: true }], exportAs: [\"routerLinkActive\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterLinkActive, decorators: [{\n type: Directive,\n args: [{\n selector: '[routerLinkActive]',\n exportAs: 'routerLinkActive',\n }]\n }], ctorParameters: function () {\n return [{ type: Router }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: RouterLink, decorators: [{\n type: Optional\n }] }, { type: RouterLinkWithHref, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { links: [{\n type: ContentChildren,\n args: [RouterLink, { descendants: true }]\n }], linksWithHrefs: [{\n type: ContentChildren,\n args: [RouterLinkWithHref, { descendants: true }]\n }], routerLinkActiveOptions: [{\n type: Input\n }], isActiveChange: [{\n type: Output\n }], routerLinkActive: [{\n type: Input\n }] } });\n/**\n * Use instead of `'paths' in options` to be compatible with property renaming\n */\nfunction isActiveMatchOptions(options) {\n return !!options.paths;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Provides a preloading strategy.\n *\n * @publicApi\n */\nclass PreloadingStrategy {\n}\n/**\n * @description\n *\n * Provides a preloading strategy that preloads all modules as quickly as possible.\n *\n * ```\n * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})\n * ```\n *\n * @publicApi\n */\nclass PreloadAllModules {\n preload(route, fn) {\n return fn().pipe(catchError(() => of(null)));\n }\n}\n/**\n * @description\n *\n * Provides a preloading strategy that does not preload any modules.\n *\n * This strategy is enabled by default.\n *\n * @publicApi\n */\nclass NoPreloading {\n preload(route, fn) {\n return of(null);\n }\n}\n/**\n * The preloader optimistically loads all router configurations to\n * make navigations into lazily-loaded sections of the application faster.\n *\n * The preloader runs in the background. When the router bootstraps, the preloader\n * starts listening to all navigation events. After every such event, the preloader\n * will check if any configurations can be loaded lazily.\n *\n * If a route is protected by `canLoad` guards, the preloaded will not load it.\n *\n * @publicApi\n */\nclass RouterPreloader {\n constructor(router, compiler, injector, preloadingStrategy) {\n this.router = router;\n this.injector = injector;\n this.preloadingStrategy = preloadingStrategy;\n const onStartLoad = (r) => router.triggerEvent(new RouteConfigLoadStart(r));\n const onEndLoad = (r) => router.triggerEvent(new RouteConfigLoadEnd(r));\n this.loader = new RouterConfigLoader(injector, compiler, onStartLoad, onEndLoad);\n }\n setUpPreloading() {\n this.subscription =\n this.router.events\n .pipe(filter((e) => e instanceof NavigationEnd), concatMap(() => this.preload()))\n .subscribe(() => { });\n }\n preload() {\n const ngModule = this.injector.get(NgModuleRef);\n return this.processRoutes(ngModule, this.router.config);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n processRoutes(ngModule, routes) {\n const res = [];\n for (const route of routes) {\n // we already have the config loaded, just recurse\n if (route.loadChildren && !route.canLoad && route._loadedConfig) {\n const childConfig = route._loadedConfig;\n res.push(this.processRoutes(childConfig.module, childConfig.routes));\n // no config loaded, fetch the config\n }\n else if (route.loadChildren && !route.canLoad) {\n res.push(this.preloadConfig(ngModule, route));\n // recurse into children\n }\n else if (route.children) {\n res.push(this.processRoutes(ngModule, route.children));\n }\n }\n return from(res).pipe(mergeAll(), map((_) => void 0));\n }\n preloadConfig(ngModule, route) {\n return this.preloadingStrategy.preload(route, () => {\n const loaded$ = route._loadedConfig ? of(route._loadedConfig) :\n this.loader.load(ngModule.injector, route);\n return loaded$.pipe(mergeMap((config) => {\n route._loadedConfig = config;\n return this.processRoutes(config.module, config.routes);\n }));\n });\n }\n}\nRouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.Injector }, { token: PreloadingStrategy }], target: i0.ɵɵFactoryTarget.Injectable });\nRouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterPreloader });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterPreloader, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.Injector }, { type: PreloadingStrategy }]; } });\n\nclass RouterScroller {\n constructor(router, \n /** @docsNotRequired */ viewportScroller, options = {}) {\n this.router = router;\n this.viewportScroller = viewportScroller;\n this.options = options;\n this.lastId = 0;\n this.lastSource = 'imperative';\n this.restoredId = 0;\n this.store = {};\n // Default both options to 'disabled'\n options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';\n options.anchorScrolling = options.anchorScrolling || 'disabled';\n }\n init() {\n // we want to disable the automatic scrolling because having two places\n // responsible for scrolling results race conditions, especially given\n // that browser don't implement this behavior consistently\n if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.setHistoryScrollRestoration('manual');\n }\n this.routerEventsSubscription = this.createScrollEvents();\n this.scrollEventsSubscription = this.consumeScrollEvents();\n }\n createScrollEvents() {\n return this.router.events.subscribe(e => {\n if (e instanceof NavigationStart) {\n // store the scroll position of the current stable navigations.\n this.store[this.lastId] = this.viewportScroller.getScrollPosition();\n this.lastSource = e.navigationTrigger;\n this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;\n }\n else if (e instanceof NavigationEnd) {\n this.lastId = e.id;\n this.scheduleScrollEvent(e, this.router.parseUrl(e.urlAfterRedirects).fragment);\n }\n });\n }\n consumeScrollEvents() {\n return this.router.events.subscribe(e => {\n if (!(e instanceof Scroll))\n return;\n // a popstate event. The pop state event will always ignore anchor scrolling.\n if (e.position) {\n if (this.options.scrollPositionRestoration === 'top') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n else if (this.options.scrollPositionRestoration === 'enabled') {\n this.viewportScroller.scrollToPosition(e.position);\n }\n // imperative navigation \"forward\"\n }\n else {\n if (e.anchor && this.options.anchorScrolling === 'enabled') {\n this.viewportScroller.scrollToAnchor(e.anchor);\n }\n else if (this.options.scrollPositionRestoration !== 'disabled') {\n this.viewportScroller.scrollToPosition([0, 0]);\n }\n }\n });\n }\n scheduleScrollEvent(routerEvent, anchor) {\n this.router.triggerEvent(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.routerEventsSubscription) {\n this.routerEventsSubscription.unsubscribe();\n }\n if (this.scrollEventsSubscription) {\n this.scrollEventsSubscription.unsubscribe();\n }\n }\n}\nRouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterScroller, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\nRouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterScroller });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterScroller, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: Router }, { type: i3.ViewportScroller }, { type: undefined }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The directives defined in the `RouterModule`.\n */\nconst ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent];\n/**\n * A [DI token](guide/glossary/#di-token) for the router service.\n *\n * @publicApi\n */\nconst ROUTER_CONFIGURATION = new InjectionToken('ROUTER_CONFIGURATION');\n/**\n * @docsNotRequired\n */\nconst ROUTER_FORROOT_GUARD = new InjectionToken('ROUTER_FORROOT_GUARD');\nconst ROUTER_PROVIDERS = [\n Location,\n { provide: UrlSerializer, useClass: DefaultUrlSerializer },\n {\n provide: Router,\n useFactory: setupRouter,\n deps: [\n UrlSerializer, ChildrenOutletContexts, Location, Injector, Compiler, ROUTES,\n ROUTER_CONFIGURATION, [UrlHandlingStrategy, new Optional()],\n [RouteReuseStrategy, new Optional()]\n ]\n },\n ChildrenOutletContexts,\n { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n RouterPreloader,\n NoPreloading,\n PreloadAllModules,\n { provide: ROUTER_CONFIGURATION, useValue: { enableTracing: false } },\n];\nfunction routerNgProbeToken() {\n return new NgProbeToken('Router', Router);\n}\n/**\n * @description\n *\n * Adds directives and providers for in-app navigation among views defined in an application.\n * Use the Angular `Router` service to declaratively specify application states and manage state\n * transitions.\n *\n * You can import this NgModule multiple times, once for each lazy-loaded bundle.\n * However, only one `Router` service can be active.\n * To ensure this, there are two ways to register routes when importing this module:\n *\n * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given\n * routes, and the `Router` service itself.\n * * The `forChild()` method creates an `NgModule` that contains all the directives and the given\n * routes, but does not include the `Router` service.\n *\n * @see [Routing and Navigation guide](guide/router) for an\n * overview of how the `Router` service should be used.\n *\n * @publicApi\n */\nclass RouterModule {\n // Note: We are injecting the Router so it gets created eagerly...\n constructor(guard, router) { }\n /**\n * Creates and configures a module with all the router providers and directives.\n * Optionally sets up an application listener to perform an initial navigation.\n *\n * When registering the NgModule at the root, import as follows:\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forRoot(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the application.\n * @param config An `ExtraOptions` configuration object that controls how navigation is performed.\n * @return The new `NgModule`.\n *\n */\n static forRoot(routes, config) {\n return {\n ngModule: RouterModule,\n providers: [\n ROUTER_PROVIDERS,\n provideRoutes(routes),\n {\n provide: ROUTER_FORROOT_GUARD,\n useFactory: provideForRootGuard,\n deps: [[Router, new Optional(), new SkipSelf()]]\n },\n { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },\n {\n provide: LocationStrategy,\n useFactory: provideLocationStrategy,\n deps: [PlatformLocation, [new Inject(APP_BASE_HREF), new Optional()], ROUTER_CONFIGURATION]\n },\n {\n provide: RouterScroller,\n useFactory: createRouterScroller,\n deps: [Router, ViewportScroller, ROUTER_CONFIGURATION]\n },\n {\n provide: PreloadingStrategy,\n useExisting: config && config.preloadingStrategy ? config.preloadingStrategy :\n NoPreloading\n },\n { provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken },\n provideRouterInitializer(),\n ],\n };\n }\n /**\n * Creates a module with all the router directives and a provider registering routes,\n * without creating a new Router service.\n * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forChild(ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @param routes An array of `Route` objects that define the navigation paths for the submodule.\n * @return The new NgModule.\n *\n */\n static forChild(routes) {\n return { ngModule: RouterModule, providers: [provideRoutes(routes)] };\n }\n}\nRouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });\nRouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterModule, declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] });\nRouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: ROUTER_DIRECTIVES,\n exports: ROUTER_DIRECTIVES,\n entryComponents: [ɵEmptyOutletComponent]\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ROUTER_FORROOT_GUARD]\n }] }, { type: Router, decorators: [{\n type: Optional\n }] }];\n } });\nfunction createRouterScroller(router, viewportScroller, config) {\n if (config.scrollOffset) {\n viewportScroller.setOffset(config.scrollOffset);\n }\n return new RouterScroller(router, viewportScroller, config);\n}\nfunction provideLocationStrategy(platformLocationStrategy, baseHref, options = {}) {\n return options.useHash ? new HashLocationStrategy(platformLocationStrategy, baseHref) :\n new PathLocationStrategy(platformLocationStrategy, baseHref);\n}\nfunction provideForRootGuard(router) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {\n throw new Error(`RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.`);\n }\n return 'guarded';\n}\n/**\n * Registers a [DI provider](guide/glossary#provider) for a set of routes.\n * @param routes The route configuration to provide.\n *\n * @usageNotes\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forChild(ROUTES)],\n * providers: [provideRoutes(EXTRA_ROUTES)]\n * })\n * class MyNgModule {}\n * ```\n *\n * @publicApi\n */\nfunction provideRoutes(routes) {\n return [\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, multi: true, useValue: routes },\n { provide: ROUTES, multi: true, useValue: routes },\n ];\n}\nfunction setupRouter(urlSerializer, contexts, location, injector, compiler, config, opts = {}, urlHandlingStrategy, routeReuseStrategy) {\n const router = new Router(null, urlSerializer, contexts, location, injector, compiler, flatten(config));\n if (urlHandlingStrategy) {\n router.urlHandlingStrategy = urlHandlingStrategy;\n }\n if (routeReuseStrategy) {\n router.routeReuseStrategy = routeReuseStrategy;\n }\n assignExtraOptionsToRouter(opts, router);\n if (opts.enableTracing) {\n router.events.subscribe((e) => {\n var _a, _b;\n // tslint:disable:no-console\n (_a = console.group) === null || _a === void 0 ? void 0 : _a.call(console, `Router Event: ${e.constructor.name}`);\n console.log(e.toString());\n console.log(e);\n (_b = console.groupEnd) === null || _b === void 0 ? void 0 : _b.call(console);\n // tslint:enable:no-console\n });\n }\n return router;\n}\nfunction assignExtraOptionsToRouter(opts, router) {\n if (opts.errorHandler) {\n router.errorHandler = opts.errorHandler;\n }\n if (opts.malformedUriErrorHandler) {\n router.malformedUriErrorHandler = opts.malformedUriErrorHandler;\n }\n if (opts.onSameUrlNavigation) {\n router.onSameUrlNavigation = opts.onSameUrlNavigation;\n }\n if (opts.paramsInheritanceStrategy) {\n router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;\n }\n if (opts.relativeLinkResolution) {\n router.relativeLinkResolution = opts.relativeLinkResolution;\n }\n if (opts.urlUpdateStrategy) {\n router.urlUpdateStrategy = opts.urlUpdateStrategy;\n }\n if (opts.canceledNavigationResolution) {\n router.canceledNavigationResolution = opts.canceledNavigationResolution;\n }\n}\nfunction rootRoute(router) {\n return router.routerState.root;\n}\n/**\n * Router initialization requires two steps:\n *\n * First, we start the navigation in a `APP_INITIALIZER` to block the bootstrap if\n * a resolver or a guard executes asynchronously.\n *\n * Next, we actually run activation in a `BOOTSTRAP_LISTENER`, using the\n * `afterPreactivation` hook provided by the router.\n * The router navigation starts, reaches the point when preactivation is done, and then\n * pauses. It waits for the hook to be resolved. We then resolve it only in a bootstrap listener.\n */\nclass RouterInitializer {\n constructor(injector) {\n this.injector = injector;\n this.initNavigation = false;\n this.destroyed = false;\n this.resultOfPreactivationDone = new Subject();\n }\n appInitializer() {\n const p = this.injector.get(LOCATION_INITIALIZED, Promise.resolve(null));\n return p.then(() => {\n // If the injector was destroyed, the DI lookups below will fail.\n if (this.destroyed) {\n return Promise.resolve(true);\n }\n let resolve = null;\n const res = new Promise(r => resolve = r);\n const router = this.injector.get(Router);\n const opts = this.injector.get(ROUTER_CONFIGURATION);\n if (opts.initialNavigation === 'disabled') {\n router.setUpLocationChangeListener();\n resolve(true);\n }\n else if (\n // TODO: enabled is deprecated as of v11, can be removed in v13\n opts.initialNavigation === 'enabled' || opts.initialNavigation === 'enabledBlocking') {\n router.hooks.afterPreactivation = () => {\n // only the initial navigation should be delayed\n if (!this.initNavigation) {\n this.initNavigation = true;\n resolve(true);\n return this.resultOfPreactivationDone;\n // subsequent navigations should not be delayed\n }\n else {\n return of(null);\n }\n };\n router.initialNavigation();\n }\n else {\n resolve(true);\n }\n return res;\n });\n }\n bootstrapListener(bootstrappedComponentRef) {\n const opts = this.injector.get(ROUTER_CONFIGURATION);\n const preloader = this.injector.get(RouterPreloader);\n const routerScroller = this.injector.get(RouterScroller);\n const router = this.injector.get(Router);\n const ref = this.injector.get(ApplicationRef);\n if (bootstrappedComponentRef !== ref.components[0]) {\n return;\n }\n // Default case\n if (opts.initialNavigation === 'enabledNonBlocking' || opts.initialNavigation === undefined) {\n router.initialNavigation();\n }\n preloader.setUpPreloading();\n routerScroller.init();\n router.resetRootComponentType(ref.componentTypes[0]);\n this.resultOfPreactivationDone.next(null);\n this.resultOfPreactivationDone.complete();\n }\n ngOnDestroy() {\n this.destroyed = true;\n }\n}\nRouterInitializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterInitializer, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });\nRouterInitializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterInitializer });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RouterInitializer, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i0.Injector }]; } });\nfunction getAppInitializer(r) {\n return r.appInitializer.bind(r);\n}\nfunction getBootstrapListener(r) {\n return r.bootstrapListener.bind(r);\n}\n/**\n * A [DI token](guide/glossary/#di-token) for the router initializer that\n * is called after the app is bootstrapped.\n *\n * @publicApi\n */\nconst ROUTER_INITIALIZER = new InjectionToken('Router Initializer');\nfunction provideRouterInitializer() {\n return [\n RouterInitializer,\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: getAppInitializer,\n deps: [RouterInitializer]\n },\n { provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener, deps: [RouterInitializer] },\n { provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER },\n ];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, provideRoutes, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, assignExtraOptionsToRouter as ɵassignExtraOptionsToRouter, flatten as ɵflatten };\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return (source) => source.lift(new PairwiseOperator());\n}\nclass PairwiseOperator {\n call(subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n }\n}\nclass PairwiseSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.hasPrev = false;\n }\n _next(value) {\n let pair;\n if (this.hasPrev) {\n pair = [this.prev, value];\n }\n else {\n this.hasPrev = true;\n }\n this.prev = value;\n if (pair) {\n this.destination.next(pair);\n }\n }\n}\n","import { Injectable, OnInit, OnDestroy } from '@angular/core';\nimport { Router, NavigationEnd } from '@angular/router';\nimport { filter, pairwise } from 'rxjs/operators';\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class HistoryBackService implements OnDestroy {\n public previousUrl$: BehaviorSubject<string>;\n private subs: Subscription;\n\n constructor(private router: Router) {\n this.previousUrl$ = new BehaviorSubject(null);\n }\n\n init(): void {\n this.subs = this.router.events\n .pipe(\n filter(event => event instanceof NavigationEnd),\n pairwise()\n )\n .subscribe((nav: [NavigationEnd, NavigationEnd]) => {\n this.previousUrl$.next(nav[0].url);\n });\n }\n\n ngOnDestroy(): void {\n this.subs.unsubscribe();\n }\n}\n","export class SendOkMessage {\n static readonly type = '[AppMessage] Sent OK Message';\n constructor(public message: string, public styleClass?: string[]) {}\n}\n\nexport class SendErrorMessage {\n static readonly type = '[AppMessage] Sent error Message';\n constructor(public message: string, public styleClass?: string[]) {}\n}\n\nexport class SendWarningMessage {\n static readonly type = '[AppMessage] Sent warning Message';\n constructor(public message: string, public styleClass?: string[]) {}\n}\n","import { State, Selector, StateContext, Action } from '@ngxs/store';\nimport {\n SendOkMessage,\n SendErrorMessage,\n SendWarningMessage\n} from './app-message.actions';\nimport { Injectable } from '@angular/core';\n\nexport interface MessageWithTime {\n message: string;\n timestamp: number;\n styleClass?: string[];\n}\n\nexport interface AppMessageStateModel {\n lastOkMessage?: MessageWithTime;\n lastErrorMessage?: MessageWithTime;\n lastWarningMessage?: MessageWithTime;\n}\n\n@State<AppMessageStateModel>({\n name: 'messages',\n defaults: {}\n})\n@Injectable()\nexport class AppMessageState {\n constructor() {}\n\n @Selector()\n static okMessage(state: AppMessageStateModel) {\n return state.lastOkMessage;\n }\n\n @Selector()\n static errorMessage(state: AppMessageStateModel) {\n return state.lastErrorMessage;\n }\n\n @Selector()\n static warningMessage(state: AppMessageStateModel) {\n return state.lastWarningMessage;\n }\n\n @Action(SendOkMessage)\n SendOkMessage(\n ctx: StateContext<AppMessageStateModel>,\n action: SendOkMessage\n ) {\n const lastOkMessage: MessageWithTime = {\n message: action.message,\n timestamp: Date.now(),\n styleClass: action.styleClass\n };\n ctx.patchState({ lastOkMessage });\n }\n\n @Action(SendErrorMessage)\n SendErrorMessage(\n ctx: StateContext<AppMessageStateModel>,\n action: SendErrorMessage\n ) {\n const lastErrorMessage: MessageWithTime = {\n message: action.message,\n timestamp: Date.now(),\n styleClass: action.styleClass\n };\n ctx.patchState({ lastErrorMessage });\n }\n\n @Action(SendWarningMessage)\n SendWarningMessage(\n ctx: StateContext<AppMessageStateModel>,\n action: SendWarningMessage\n ) {\n const lastWarningMessage: MessageWithTime = {\n message: action.message,\n timestamp: Date.now(),\n styleClass: action.styleClass\n };\n ctx.patchState({ lastWarningMessage });\n }\n}\n","import promiseFinally from './finally';\nimport allSettled from './allSettled';\n\n// Store setTimeout reference so promise-polyfill will be unaffected by\n// other code modifying setTimeout (like sinon.useFakeTimers())\nvar setTimeoutFunc = setTimeout;\n\nfunction isArray(x) {\n return Boolean(x && typeof x.length !== 'undefined');\n}\n\nfunction noop() {}\n\n// Polyfill for Function.prototype.bind\nfunction bind(fn, thisArg) {\n return function() {\n fn.apply(thisArg, arguments);\n };\n}\n\n/**\n * @constructor\n * @param {Function} fn\n */\nfunction Promise(fn) {\n if (!(this instanceof Promise))\n throw new TypeError('Promises must be constructed via new');\n if (typeof fn !== 'function') throw new TypeError('not a function');\n /** @type {!number} */\n this._state = 0;\n /** @type {!boolean} */\n this._handled = false;\n /** @type {Promise|undefined} */\n this._value = undefined;\n /** @type {!Array<!Function>} */\n this._deferreds = [];\n\n doResolve(fn, this);\n}\n\nfunction handle(self, deferred) {\n while (self._state === 3) {\n self = self._value;\n }\n if (self._state === 0) {\n self._deferreds.push(deferred);\n return;\n }\n self._handled = true;\n Promise._immediateFn(function() {\n var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;\n if (cb === null) {\n (self._state === 1 ? resolve : reject)(deferred.promise, self._value);\n return;\n }\n var ret;\n try {\n ret = cb(self._value);\n } catch (e) {\n reject(deferred.promise, e);\n return;\n }\n resolve(deferred.promise, ret);\n });\n}\n\nfunction resolve(self, newValue) {\n try {\n // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure\n if (newValue === self)\n throw new TypeError('A promise cannot be resolved with itself.');\n if (\n newValue &&\n (typeof newValue === 'object' || typeof newValue === 'function')\n ) {\n var then = newValue.then;\n if (newValue instanceof Promise) {\n self._state = 3;\n self._value = newValue;\n finale(self);\n return;\n } else if (typeof then === 'function') {\n doResolve(bind(then, newValue), self);\n return;\n }\n }\n self._state = 1;\n self._value = newValue;\n finale(self);\n } catch (e) {\n reject(self, e);\n }\n}\n\nfunction reject(self, newValue) {\n self._state = 2;\n self._value = newValue;\n finale(self);\n}\n\nfunction finale(self) {\n if (self._state === 2 && self._deferreds.length === 0) {\n Promise._immediateFn(function() {\n if (!self._handled) {\n Promise._unhandledRejectionFn(self._value);\n }\n });\n }\n\n for (var i = 0, len = self._deferreds.length; i < len; i++) {\n handle(self, self._deferreds[i]);\n }\n self._deferreds = null;\n}\n\n/**\n * @constructor\n */\nfunction Handler(onFulfilled, onRejected, promise) {\n this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;\n this.onRejected = typeof onRejected === 'function' ? onRejected : null;\n this.promise = promise;\n}\n\n/**\n * Take a potentially misbehaving resolver function and make sure\n * onFulfilled and onRejected are only called once.\n *\n * Makes no guarantees about asynchrony.\n */\nfunction doResolve(fn, self) {\n var done = false;\n try {\n fn(\n function(value) {\n if (done) return;\n done = true;\n resolve(self, value);\n },\n function(reason) {\n if (done) return;\n done = true;\n reject(self, reason);\n }\n );\n } catch (ex) {\n if (done) return;\n done = true;\n reject(self, ex);\n }\n}\n\nPromise.prototype['catch'] = function(onRejected) {\n return this.then(null, onRejected);\n};\n\nPromise.prototype.then = function(onFulfilled, onRejected) {\n // @ts-ignore\n var prom = new this.constructor(noop);\n\n handle(this, new Handler(onFulfilled, onRejected, prom));\n return prom;\n};\n\nPromise.prototype['finally'] = promiseFinally;\n\nPromise.all = function(arr) {\n return new Promise(function(resolve, reject) {\n if (!isArray(arr)) {\n return reject(new TypeError('Promise.all accepts an array'));\n }\n\n var args = Array.prototype.slice.call(arr);\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n\n function res(i, val) {\n try {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n var then = val.then;\n if (typeof then === 'function') {\n then.call(\n val,\n function(val) {\n res(i, val);\n },\n reject\n );\n return;\n }\n }\n args[i] = val;\n if (--remaining === 0) {\n resolve(args);\n }\n } catch (ex) {\n reject(ex);\n }\n }\n\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n};\n\nPromise.allSettled = allSettled;\n\nPromise.resolve = function(value) {\n if (value && typeof value === 'object' && value.constructor === Promise) {\n return value;\n }\n\n return new Promise(function(resolve) {\n resolve(value);\n });\n};\n\nPromise.reject = function(value) {\n return new Promise(function(resolve, reject) {\n reject(value);\n });\n};\n\nPromise.race = function(arr) {\n return new Promise(function(resolve, reject) {\n if (!isArray(arr)) {\n return reject(new TypeError('Promise.race accepts an array'));\n }\n\n for (var i = 0, len = arr.length; i < len; i++) {\n Promise.resolve(arr[i]).then(resolve, reject);\n }\n });\n};\n\n// Use polyfill for setImmediate for performance gains\nPromise._immediateFn =\n // @ts-ignore\n (typeof setImmediate === 'function' &&\n function(fn) {\n // @ts-ignore\n setImmediate(fn);\n }) ||\n function(fn) {\n setTimeoutFunc(fn, 0);\n };\n\nPromise._unhandledRejectionFn = function _unhandledRejectionFn(err) {\n if (typeof console !== 'undefined' && console) {\n console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console\n }\n};\n\nexport default Promise;\n","/**\n * @this {Promise}\n */\nfunction finallyConstructor(callback) {\n var constructor = this.constructor;\n return this.then(\n function(value) {\n // @ts-ignore\n return constructor.resolve(callback()).then(function() {\n return value;\n });\n },\n function(reason) {\n // @ts-ignore\n return constructor.resolve(callback()).then(function() {\n // @ts-ignore\n return constructor.reject(reason);\n });\n }\n );\n}\n\nexport default finallyConstructor;\n","function allSettled(arr) {\n var P = this;\n return new P(function(resolve, reject) {\n if (!(arr && typeof arr.length !== 'undefined')) {\n return reject(\n new TypeError(\n typeof arr +\n ' ' +\n arr +\n ' is not iterable(cannot read property Symbol(Symbol.iterator))'\n )\n );\n }\n var args = Array.prototype.slice.call(arr);\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n\n function res(i, val) {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n var then = val.then;\n if (typeof then === 'function') {\n then.call(\n val,\n function(val) {\n res(i, val);\n },\n function(e) {\n args[i] = { status: 'rejected', reason: e };\n if (--remaining === 0) {\n resolve(args);\n }\n }\n );\n return;\n }\n }\n args[i] = { status: 'fulfilled', value: val };\n if (--remaining === 0) {\n resolve(args);\n }\n }\n\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n}\n\nexport default allSettled;\n","import PromisePollyfill from 'promise-polyfill';\nimport { isBrowser } from './utils';\nvar local = {};\n\nif (isBrowser) {\n local = window;\n} else if (typeof self !== 'undefined') {\n local = self;\n}\n\nvar Promise = 'Promise' in local ? local.Promise : PromisePollyfill;\nexport { Promise };","import { Promise } from './polyfills';\nvar slice = [].slice;\nvar isBrowser = typeof window !== 'undefined';\nvar PERF = isBrowser && typeof performance !== 'undefined' ? performance : {};\n\nfunction isCORSSupported() {\n var xhr = new window.XMLHttpRequest();\n return 'withCredentials' in xhr;\n}\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToHex(buffer) {\n var hexOctets = [];\n\n for (var _i = 0; _i < buffer.length; _i++) {\n hexOctets.push(byteToHex[buffer[_i]]);\n }\n\n return hexOctets.join('');\n}\n\nvar destination = new Uint8Array(16);\n\nfunction rng() {\n if (typeof crypto != 'undefined' && typeof crypto.getRandomValues == 'function') {\n return crypto.getRandomValues(destination);\n } else if (typeof msCrypto != 'undefined' && typeof msCrypto.getRandomValues == 'function') {\n return msCrypto.getRandomValues(destination);\n }\n\n return destination;\n}\n\nfunction generateRandomId(length) {\n var id = bytesToHex(rng());\n return id.substr(0, length);\n}\n\nfunction getDtHeaderValue(span) {\n var dtVersion = '00';\n var dtUnSampledFlags = '00';\n var dtSampledFlags = '01';\n\n if (span && span.traceId && span.id && span.parentId) {\n var flags = span.sampled ? dtSampledFlags : dtUnSampledFlags;\n var id = span.sampled ? span.id : span.parentId;\n return dtVersion + '-' + span.traceId + '-' + id + '-' + flags;\n }\n}\n\nfunction parseDtHeaderValue(value) {\n var parsed = /^([\\da-f]{2})-([\\da-f]{32})-([\\da-f]{16})-([\\da-f]{2})$/.exec(value);\n\n if (parsed) {\n var flags = parsed[4];\n var sampled = flags !== '00';\n return {\n traceId: parsed[2],\n id: parsed[3],\n sampled: sampled\n };\n }\n}\n\nfunction isDtHeaderValid(header) {\n return /^[\\da-f]{2}-[\\da-f]{32}-[\\da-f]{16}-[\\da-f]{2}$/.test(header) && header.slice(3, 35) !== '00000000000000000000000000000000' && header.slice(36, 52) !== '0000000000000000';\n}\n\nfunction getTSHeaderValue(_ref) {\n var sampleRate = _ref.sampleRate;\n\n if (typeof sampleRate !== 'number' || String(sampleRate).length > 256) {\n return;\n }\n\n var NAMESPACE = 'es';\n var SEPARATOR = '=';\n return \"\" + NAMESPACE + SEPARATOR + \"s:\" + sampleRate;\n}\n\nfunction setRequestHeader(target, name, value) {\n if (typeof target.setRequestHeader === 'function') {\n target.setRequestHeader(name, value);\n } else if (target.headers && typeof target.headers.append === 'function') {\n target.headers.append(name, value);\n } else {\n target[name] = value;\n }\n}\n\nfunction checkSameOrigin(source, target) {\n var isSame = false;\n\n if (typeof target === 'string') {\n isSame = source === target;\n } else if (Array.isArray(target)) {\n target.forEach(function (t) {\n if (!isSame) {\n isSame = checkSameOrigin(source, t);\n }\n });\n }\n\n return isSame;\n}\n\nfunction isPlatformSupported() {\n return isBrowser && typeof Set === 'function' && typeof JSON.stringify === 'function' && PERF && typeof PERF.now === 'function' && isCORSSupported();\n}\n\nfunction setLabel(key, value, obj) {\n if (!obj || !key) return;\n var skey = removeInvalidChars(key);\n var valueType = typeof value;\n\n if (value != undefined && valueType !== 'boolean' && valueType !== 'number') {\n value = String(value);\n }\n\n obj[skey] = value;\n return obj;\n}\n\nfunction getServerTimingInfo(serverTimingEntries) {\n if (serverTimingEntries === void 0) {\n serverTimingEntries = [];\n }\n\n var serverTimingInfo = [];\n var entrySeparator = ', ';\n var valueSeparator = ';';\n\n for (var _i2 = 0; _i2 < serverTimingEntries.length; _i2++) {\n var _serverTimingEntries$ = serverTimingEntries[_i2],\n name = _serverTimingEntries$.name,\n duration = _serverTimingEntries$.duration,\n description = _serverTimingEntries$.description;\n var timingValue = name;\n\n if (description) {\n timingValue += valueSeparator + 'desc=' + description;\n }\n\n if (duration) {\n timingValue += valueSeparator + 'dur=' + duration;\n }\n\n serverTimingInfo.push(timingValue);\n }\n\n return serverTimingInfo.join(entrySeparator);\n}\n\nfunction getTimeOrigin() {\n return PERF.timing.fetchStart;\n}\n\nfunction stripQueryStringFromUrl(url) {\n return url && url.split('?')[0];\n}\n\nfunction isObject(value) {\n return value !== null && typeof value === 'object';\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction baseExtend(dst, objs, deep) {\n for (var i = 0, ii = objs.length; i < ii; ++i) {\n var obj = objs[i];\n if (!isObject(obj) && !isFunction(obj)) continue;\n var keys = Object.keys(obj);\n\n for (var j = 0, jj = keys.length; j < jj; j++) {\n var key = keys[j];\n var src = obj[key];\n\n if (deep && isObject(src)) {\n if (!isObject(dst[key])) dst[key] = Array.isArray(src) ? [] : {};\n baseExtend(dst[key], [src], false);\n } else {\n dst[key] = src;\n }\n }\n }\n\n return dst;\n}\n\nfunction getElasticScript() {\n if (typeof document !== 'undefined') {\n var scripts = document.getElementsByTagName('script');\n\n for (var i = 0, l = scripts.length; i < l; i++) {\n var sc = scripts[i];\n\n if (sc.src.indexOf('elastic') > 0) {\n return sc;\n }\n }\n }\n}\n\nfunction getCurrentScript() {\n if (typeof document !== 'undefined') {\n var currentScript = document.currentScript;\n\n if (!currentScript) {\n return getElasticScript();\n }\n\n return currentScript;\n }\n}\n\nfunction extend(dst) {\n return baseExtend(dst, slice.call(arguments, 1), false);\n}\n\nfunction merge(dst) {\n return baseExtend(dst, slice.call(arguments, 1), true);\n}\n\nfunction isUndefined(obj) {\n return typeof obj === 'undefined';\n}\n\nfunction noop() {}\n\nfunction find(array, predicate, thisArg) {\n if (array == null) {\n throw new TypeError('array is null or not defined');\n }\n\n var o = Object(array);\n var len = o.length >>> 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate must be a function');\n }\n\n var k = 0;\n\n while (k < len) {\n var kValue = o[k];\n\n if (predicate.call(thisArg, kValue, k, o)) {\n return kValue;\n }\n\n k++;\n }\n\n return undefined;\n}\n\nfunction removeInvalidChars(key) {\n return key.replace(/[.*\"]/g, '_');\n}\n\nfunction getLatestNonXHRSpan(spans) {\n var latestSpan = null;\n\n for (var _i3 = 0; _i3 < spans.length; _i3++) {\n var span = spans[_i3];\n\n if (String(span.type).indexOf('external') === -1 && (!latestSpan || latestSpan._end < span._end)) {\n latestSpan = span;\n }\n }\n\n return latestSpan;\n}\n\nfunction getEarliestSpan(spans) {\n var earliestSpan = spans[0];\n\n for (var _i4 = 1; _i4 < spans.length; _i4++) {\n var span = spans[_i4];\n\n if (earliestSpan._start > span._start) {\n earliestSpan = span;\n }\n }\n\n return earliestSpan;\n}\n\nfunction now() {\n return PERF.now();\n}\n\nfunction getTime(time) {\n return typeof time === 'number' && time >= 0 ? time : now();\n}\n\nfunction getDuration(start, end) {\n if (isUndefined(end) || isUndefined(start)) {\n return null;\n }\n\n return parseInt(end - start);\n}\n\nfunction scheduleMacroTask(callback) {\n setTimeout(callback, 0);\n}\n\nfunction scheduleMicroTask(callback) {\n Promise.resolve().then(callback);\n}\n\nfunction isPerfTimelineSupported() {\n return typeof PERF.getEntriesByType === 'function';\n}\n\nfunction isPerfTypeSupported(type) {\n return typeof PerformanceObserver !== 'undefined' && PerformanceObserver.supportedEntryTypes && PerformanceObserver.supportedEntryTypes.indexOf(type) >= 0;\n}\n\nexport { extend, merge, isUndefined, noop, baseExtend, bytesToHex, isCORSSupported, isObject, isFunction, isPlatformSupported, isDtHeaderValid, parseDtHeaderValue, getServerTimingInfo, getDtHeaderValue, getTSHeaderValue, getCurrentScript, getElasticScript, getTimeOrigin, generateRandomId, getEarliestSpan, getLatestNonXHRSpan, getDuration, getTime, now, rng, checkSameOrigin, scheduleMacroTask, scheduleMicroTask, setLabel, setRequestHeader, stripQueryStringFromUrl, find, removeInvalidChars, PERF, isPerfTimelineSupported, isBrowser, isPerfTypeSupported };","import { isBrowser } from './utils';\n\nfunction isDefaultPort(port, protocol) {\n switch (protocol) {\n case 'http:':\n return port === '80';\n\n case 'https:':\n return port === '443';\n }\n\n return true;\n}\n\nvar RULES = [['#', 'hash'], ['?', 'query'], ['/', 'path'], ['@', 'auth', 1], [NaN, 'host', undefined, 1]];\nvar PROTOCOL_REGEX = /^([a-z][a-z0-9.+-]*:)?(\\/\\/)?([\\S\\s]*)/i;\nexport var Url = function () {\n function Url(url) {\n var _this$extractProtocol = this.extractProtocol(url || ''),\n protocol = _this$extractProtocol.protocol,\n address = _this$extractProtocol.address,\n slashes = _this$extractProtocol.slashes;\n\n var relative = !protocol && !slashes;\n var location = this.getLocation();\n var instructions = RULES.slice();\n address = address.replace('\\\\', '/');\n\n if (!slashes) {\n instructions[2] = [NaN, 'path'];\n }\n\n var index;\n\n for (var i = 0; i < instructions.length; i++) {\n var instruction = instructions[i];\n var parse = instruction[0];\n var key = instruction[1];\n\n if (typeof parse === 'string') {\n index = address.indexOf(parse);\n\n if (~index) {\n var instLength = instruction[2];\n\n if (instLength) {\n var newIndex = address.lastIndexOf(parse);\n index = Math.max(index, newIndex);\n this[key] = address.slice(0, index);\n address = address.slice(index + instLength);\n } else {\n this[key] = address.slice(index);\n address = address.slice(0, index);\n }\n }\n } else {\n this[key] = address;\n address = '';\n }\n\n this[key] = this[key] || (relative && instruction[3] ? location[key] || '' : '');\n if (instruction[3]) this[key] = this[key].toLowerCase();\n }\n\n if (relative && this.path.charAt(0) !== '/') {\n this.path = '/' + this.path;\n }\n\n this.relative = relative;\n this.protocol = protocol || location.protocol;\n this.hostname = this.host;\n this.port = '';\n\n if (/:\\d+$/.test(this.host)) {\n var value = this.host.split(':');\n var port = value.pop();\n var hostname = value.join(':');\n\n if (isDefaultPort(port, this.protocol)) {\n this.host = hostname;\n } else {\n this.port = port;\n }\n\n this.hostname = hostname;\n }\n\n this.origin = this.protocol && this.host && this.protocol !== 'file:' ? this.protocol + '//' + this.host : 'null';\n this.href = this.toString();\n }\n\n var _proto = Url.prototype;\n\n _proto.toString = function toString() {\n var result = this.protocol;\n result += '//';\n\n if (this.auth) {\n var REDACTED = '[REDACTED]';\n var userpass = this.auth.split(':');\n var username = userpass[0] ? REDACTED : '';\n var password = userpass[1] ? ':' + REDACTED : '';\n result += username + password + '@';\n }\n\n result += this.host;\n result += this.path;\n result += this.query;\n result += this.hash;\n return result;\n };\n\n _proto.getLocation = function getLocation() {\n var globalVar = {};\n\n if (isBrowser) {\n globalVar = window;\n }\n\n return globalVar.location;\n };\n\n _proto.extractProtocol = function extractProtocol(url) {\n var match = PROTOCOL_REGEX.exec(url);\n return {\n protocol: match[1] ? match[1].toLowerCase() : '',\n slashes: !!match[2],\n address: match[3]\n };\n };\n\n return Url;\n}();\nexport function slugifyUrl(urlStr, depth) {\n if (depth === void 0) {\n depth = 2;\n }\n\n var parsedUrl = new Url(urlStr);\n var query = parsedUrl.query,\n path = parsedUrl.path;\n var pathParts = path.substring(1).split('/');\n var redactString = ':id';\n var wildcard = '*';\n var specialCharsRegex = /\\W|_/g;\n var digitsRegex = /[0-9]/g;\n var lowerCaseRegex = /[a-z]/g;\n var upperCaseRegex = /[A-Z]/g;\n var redactedParts = [];\n var redactedBefore = false;\n\n for (var _index = 0; _index < pathParts.length; _index++) {\n var part = pathParts[_index];\n\n if (redactedBefore || _index > depth - 1) {\n if (part) {\n redactedParts.push(wildcard);\n }\n\n break;\n }\n\n var numberOfSpecialChars = (part.match(specialCharsRegex) || []).length;\n\n if (numberOfSpecialChars >= 2) {\n redactedParts.push(redactString);\n redactedBefore = true;\n continue;\n }\n\n var numberOfDigits = (part.match(digitsRegex) || []).length;\n\n if (numberOfDigits > 3 || part.length > 3 && numberOfDigits / part.length >= 0.3) {\n redactedParts.push(redactString);\n redactedBefore = true;\n continue;\n }\n\n var numberofUpperCase = (part.match(upperCaseRegex) || []).length;\n var numberofLowerCase = (part.match(lowerCaseRegex) || []).length;\n var lowerCaseRate = numberofLowerCase / part.length;\n var upperCaseRate = numberofUpperCase / part.length;\n\n if (part.length > 5 && (upperCaseRate > 0.3 && upperCaseRate < 0.6 || lowerCaseRate > 0.3 && lowerCaseRate < 0.6)) {\n redactedParts.push(redactString);\n redactedBefore = true;\n continue;\n }\n\n part && redactedParts.push(part);\n }\n\n var redacted = '/' + (redactedParts.length >= 2 ? redactedParts.join('/') : redactedParts.join('')) + (query ? '?{query}' : '');\n return redacted;\n}","var SCHEDULE = 'schedule';\nvar INVOKE = 'invoke';\nvar ADD_EVENT_LISTENER_STR = 'addEventListener';\nvar REMOVE_EVENT_LISTENER_STR = 'removeEventListener';\nvar RESOURCE_INITIATOR_TYPES = ['link', 'css', 'script', 'img', 'xmlhttprequest', 'fetch', 'beacon', 'iframe'];\nvar REUSABILITY_THRESHOLD = 5000;\nvar MAX_SPAN_DURATION = 5 * 60 * 1000;\nvar PAGE_LOAD = 'page-load';\nvar ROUTE_CHANGE = 'route-change';\nvar TYPE_CUSTOM = 'custom';\nvar USER_INTERACTION = 'user-interaction';\nvar HTTP_REQUEST_TYPE = 'http-request';\nvar TEMPORARY_TYPE = 'temporary';\nvar NAME_UNKNOWN = 'Unknown';\nvar TRANSACTION_TYPE_ORDER = [PAGE_LOAD, ROUTE_CHANGE, USER_INTERACTION, HTTP_REQUEST_TYPE, TYPE_CUSTOM, TEMPORARY_TYPE];\nvar OUTCOME_SUCCESS = 'success';\nvar OUTCOME_FAILURE = 'failure';\nvar USER_TIMING_THRESHOLD = 60;\nvar TRANSACTION_START = 'transaction:start';\nvar TRANSACTION_END = 'transaction:end';\nvar CONFIG_CHANGE = 'config:change';\nvar XMLHTTPREQUEST = 'xmlhttprequest';\nvar FETCH = 'fetch';\nvar HISTORY = 'history';\nvar EVENT_TARGET = 'eventtarget';\nvar ERROR = 'error';\nvar BEFORE_EVENT = ':before';\nvar AFTER_EVENT = ':after';\nvar LOCAL_CONFIG_KEY = 'elastic_apm_config';\nvar LONG_TASK = 'longtask';\nvar PAINT = 'paint';\nvar MEASURE = 'measure';\nvar NAVIGATION = 'navigation';\nvar RESOURCE = 'resource';\nvar FIRST_CONTENTFUL_PAINT = 'first-contentful-paint';\nvar LARGEST_CONTENTFUL_PAINT = 'largest-contentful-paint';\nvar FIRST_INPUT = 'first-input';\nvar LAYOUT_SHIFT = 'layout-shift';\nvar ERRORS = 'errors';\nvar TRANSACTIONS = 'transactions';\nvar CONFIG_SERVICE = 'ConfigService';\nvar LOGGING_SERVICE = 'LoggingService';\nvar APM_SERVER = 'ApmServer';\nvar TRUNCATED_TYPE = '.truncated';\nvar KEYWORD_LIMIT = 1024;\nexport { SCHEDULE, INVOKE, ADD_EVENT_LISTENER_STR, REMOVE_EVENT_LISTENER_STR, RESOURCE_INITIATOR_TYPES, REUSABILITY_THRESHOLD, MAX_SPAN_DURATION, PAGE_LOAD, ROUTE_CHANGE, NAME_UNKNOWN, TYPE_CUSTOM, USER_TIMING_THRESHOLD, TRANSACTION_START, TRANSACTION_END, CONFIG_CHANGE, XMLHTTPREQUEST, FETCH, HISTORY, EVENT_TARGET, ERROR, BEFORE_EVENT, AFTER_EVENT, LOCAL_CONFIG_KEY, HTTP_REQUEST_TYPE, LONG_TASK, PAINT, MEASURE, NAVIGATION, RESOURCE, FIRST_CONTENTFUL_PAINT, LARGEST_CONTENTFUL_PAINT, KEYWORD_LIMIT, TEMPORARY_TYPE, USER_INTERACTION, TRANSACTION_TYPE_ORDER, ERRORS, TRANSACTIONS, CONFIG_SERVICE, LOGGING_SERVICE, APM_SERVER, TRUNCATED_TYPE, FIRST_INPUT, LAYOUT_SHIFT, OUTCOME_SUCCESS, OUTCOME_FAILURE };","function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { Url } from './url';\nimport { PAGE_LOAD, NAVIGATION } from './constants';\nimport { getServerTimingInfo, PERF, isPerfTimelineSupported } from './utils';\nvar LEFT_SQUARE_BRACKET = 91;\nvar RIGHT_SQUARE_BRACKET = 93;\nvar EXTERNAL = 'external';\nvar RESOURCE = 'resource';\nvar HARD_NAVIGATION = 'hard-navigation';\n\nfunction getPortNumber(port, protocol) {\n if (port === '') {\n port = protocol === 'http:' ? '80' : protocol === 'https:' ? '443' : '';\n }\n\n return port;\n}\n\nfunction getResponseContext(perfTimingEntry) {\n var transferSize = perfTimingEntry.transferSize,\n encodedBodySize = perfTimingEntry.encodedBodySize,\n decodedBodySize = perfTimingEntry.decodedBodySize,\n serverTiming = perfTimingEntry.serverTiming;\n var respContext = {\n transfer_size: transferSize,\n encoded_body_size: encodedBodySize,\n decoded_body_size: decodedBodySize\n };\n var serverTimingStr = getServerTimingInfo(serverTiming);\n\n if (serverTimingStr) {\n respContext.headers = {\n 'server-timing': serverTimingStr\n };\n }\n\n return respContext;\n}\n\nfunction getDestination(parsedUrl, type) {\n var port = parsedUrl.port,\n protocol = parsedUrl.protocol,\n hostname = parsedUrl.hostname,\n host = parsedUrl.host;\n var portNumber = getPortNumber(port, protocol);\n var ipv6Hostname = hostname.charCodeAt(0) === LEFT_SQUARE_BRACKET && hostname.charCodeAt(hostname.length - 1) === RIGHT_SQUARE_BRACKET;\n var address = hostname;\n\n if (ipv6Hostname) {\n address = hostname.slice(1, -1);\n }\n\n return {\n service: {\n name: protocol + '//' + host,\n resource: hostname + ':' + portNumber,\n type: type\n },\n address: address,\n port: Number(portNumber)\n };\n}\n\nfunction getResourceContext(data) {\n var entry = data.entry,\n url = data.url;\n var parsedUrl = new Url(url);\n var destination = getDestination(parsedUrl, RESOURCE);\n return {\n http: {\n url: url,\n response: getResponseContext(entry)\n },\n destination: destination\n };\n}\n\nfunction getExternalContext(data) {\n var url = data.url,\n method = data.method,\n target = data.target,\n response = data.response;\n var parsedUrl = new Url(url);\n var destination = getDestination(parsedUrl, EXTERNAL);\n var context = {\n http: {\n method: method,\n url: parsedUrl.href\n },\n destination: destination\n };\n var statusCode;\n\n if (target && typeof target.status !== 'undefined') {\n statusCode = target.status;\n } else if (response) {\n statusCode = response.status;\n }\n\n context.http.status_code = statusCode;\n return context;\n}\n\nfunction getNavigationContext(data) {\n var url = data.url;\n var parsedUrl = new Url(url);\n var destination = getDestination(parsedUrl, HARD_NAVIGATION);\n return {\n destination: destination\n };\n}\n\nexport function getPageContext() {\n return {\n page: {\n referer: document.referrer,\n url: location.href\n }\n };\n}\nexport function addSpanContext(span, data) {\n if (!data) {\n return;\n }\n\n var type = span.type;\n var context;\n\n switch (type) {\n case EXTERNAL:\n context = getExternalContext(data);\n break;\n\n case RESOURCE:\n context = getResourceContext(data);\n break;\n\n case HARD_NAVIGATION:\n context = getNavigationContext(data);\n break;\n }\n\n span.addContext(context);\n}\nexport function addTransactionContext(transaction, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n tags = _ref.tags,\n configContext = _objectWithoutPropertiesLoose(_ref, [\"tags\"]);\n\n var pageContext = getPageContext();\n var responseContext = {};\n\n if (transaction.type === PAGE_LOAD && isPerfTimelineSupported()) {\n var entries = PERF.getEntriesByType(NAVIGATION);\n\n if (entries && entries.length > 0) {\n responseContext = {\n response: getResponseContext(entries[0])\n };\n }\n }\n\n transaction.addContext(pageContext, responseContext, configContext);\n}","import { KEYWORD_LIMIT } from './constants';\nvar METADATA_MODEL = {\n service: {\n name: [KEYWORD_LIMIT, true],\n version: true,\n agent: {\n version: [KEYWORD_LIMIT, true]\n },\n environment: true\n },\n labels: {\n '*': true\n }\n};\nvar RESPONSE_MODEL = {\n '*': true,\n headers: {\n '*': true\n }\n};\nvar DESTINATION_MODEL = {\n address: [KEYWORD_LIMIT],\n service: {\n '*': [KEYWORD_LIMIT, true]\n }\n};\nvar CONTEXT_MODEL = {\n user: {\n id: true,\n email: true,\n username: true\n },\n tags: {\n '*': true\n },\n http: {\n response: RESPONSE_MODEL\n },\n destination: DESTINATION_MODEL,\n response: RESPONSE_MODEL\n};\nvar SPAN_MODEL = {\n name: [KEYWORD_LIMIT, true],\n type: [KEYWORD_LIMIT, true],\n id: [KEYWORD_LIMIT, true],\n trace_id: [KEYWORD_LIMIT, true],\n parent_id: [KEYWORD_LIMIT, true],\n transaction_id: [KEYWORD_LIMIT, true],\n subtype: true,\n action: true,\n context: CONTEXT_MODEL\n};\nvar TRANSACTION_MODEL = {\n name: true,\n parent_id: true,\n type: [KEYWORD_LIMIT, true],\n id: [KEYWORD_LIMIT, true],\n trace_id: [KEYWORD_LIMIT, true],\n span_count: {\n started: [KEYWORD_LIMIT, true]\n },\n context: CONTEXT_MODEL\n};\nvar ERROR_MODEL = {\n id: [KEYWORD_LIMIT, true],\n trace_id: true,\n transaction_id: true,\n parent_id: true,\n culprit: true,\n exception: {\n type: true\n },\n transaction: {\n type: true\n },\n context: CONTEXT_MODEL\n};\n\nfunction truncate(value, limit, required, placeholder) {\n if (limit === void 0) {\n limit = KEYWORD_LIMIT;\n }\n\n if (required === void 0) {\n required = false;\n }\n\n if (placeholder === void 0) {\n placeholder = 'N/A';\n }\n\n if (required && isEmpty(value)) {\n value = placeholder;\n }\n\n if (typeof value === 'string') {\n return value.substring(0, limit);\n }\n\n return value;\n}\n\nfunction isEmpty(value) {\n return value == null || value === '' || typeof value === 'undefined';\n}\n\nfunction replaceValue(target, key, currModel) {\n var value = truncate(target[key], currModel[0], currModel[1]);\n\n if (isEmpty(value)) {\n delete target[key];\n return;\n }\n\n target[key] = value;\n}\n\nfunction truncateModel(model, target, childTarget) {\n if (model === void 0) {\n model = {};\n }\n\n if (childTarget === void 0) {\n childTarget = target;\n }\n\n var keys = Object.keys(model);\n var emptyArr = [];\n\n var _loop = function _loop(i) {\n var currKey = keys[i];\n var currModel = model[currKey] === true ? emptyArr : model[currKey];\n\n if (!Array.isArray(currModel)) {\n truncateModel(currModel, target, childTarget[currKey]);\n } else {\n if (currKey === '*') {\n Object.keys(childTarget).forEach(function (key) {\n return replaceValue(childTarget, key, currModel);\n });\n } else {\n replaceValue(childTarget, currKey, currModel);\n }\n }\n };\n\n for (var i = 0; i < keys.length; i++) {\n _loop(i);\n }\n\n return target;\n}\n\nexport { truncate, truncateModel, SPAN_MODEL, TRANSACTION_MODEL, ERROR_MODEL, METADATA_MODEL, RESPONSE_MODEL };","function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { createStackTraces, filterInvalidFrames } from './stack-trace';\nimport { generateRandomId, merge, extend } from '../common/utils';\nimport { getPageContext } from '../common/context';\nimport { truncateModel, ERROR_MODEL } from '../common/truncate';\nvar IGNORE_KEYS = ['stack', 'message'];\n\nfunction getErrorProperties(error) {\n var propertyFound = false;\n var properties = {};\n Object.keys(error).forEach(function (key) {\n if (IGNORE_KEYS.indexOf(key) >= 0) {\n return;\n }\n\n var val = error[key];\n\n if (val == null || typeof val === 'function') {\n return;\n }\n\n if (typeof val === 'object') {\n if (typeof val.toISOString !== 'function') return;\n val = val.toISOString();\n }\n\n properties[key] = val;\n propertyFound = true;\n });\n\n if (propertyFound) {\n return properties;\n }\n}\n\nvar ErrorLogging = function () {\n function ErrorLogging(apmServer, configService, transactionService) {\n this._apmServer = apmServer;\n this._configService = configService;\n this._transactionService = transactionService;\n }\n\n var _proto = ErrorLogging.prototype;\n\n _proto.createErrorDataModel = function createErrorDataModel(errorEvent) {\n var frames = createStackTraces(errorEvent);\n var filteredFrames = filterInvalidFrames(frames);\n var culprit = '(inline script)';\n var lastFrame = filteredFrames[filteredFrames.length - 1];\n\n if (lastFrame && lastFrame.filename) {\n culprit = lastFrame.filename;\n }\n\n var message = errorEvent.message,\n error = errorEvent.error;\n var errorMessage = message;\n var errorType = '';\n var errorContext = {};\n\n if (error && typeof error === 'object') {\n errorMessage = errorMessage || error.message;\n errorType = error.name;\n var customProperties = getErrorProperties(error);\n\n if (customProperties) {\n errorContext.custom = customProperties;\n }\n }\n\n if (!errorType) {\n if (errorMessage && errorMessage.indexOf(':') > -1) {\n errorType = errorMessage.split(':')[0];\n }\n }\n\n var currentTransaction = this._transactionService.getCurrentTransaction();\n\n var transactionContext = currentTransaction ? currentTransaction.context : {};\n\n var _this$_configService$ = this._configService.get('context'),\n tags = _this$_configService$.tags,\n configContext = _objectWithoutPropertiesLoose(_this$_configService$, [\"tags\"]);\n\n var pageContext = getPageContext();\n var context = merge({}, pageContext, transactionContext, configContext, errorContext);\n var errorObject = {\n id: generateRandomId(),\n culprit: culprit,\n exception: {\n message: errorMessage,\n stacktrace: filteredFrames,\n type: errorType\n },\n context: context\n };\n\n if (currentTransaction) {\n errorObject = extend(errorObject, {\n trace_id: currentTransaction.traceId,\n parent_id: currentTransaction.id,\n transaction_id: currentTransaction.id,\n transaction: {\n type: currentTransaction.type,\n sampled: currentTransaction.sampled\n }\n });\n }\n\n return truncateModel(ERROR_MODEL, errorObject);\n };\n\n _proto.logErrorEvent = function logErrorEvent(errorEvent) {\n if (typeof errorEvent === 'undefined') {\n return;\n }\n\n var errorObject = this.createErrorDataModel(errorEvent);\n\n if (typeof errorObject.exception.message === 'undefined') {\n return;\n }\n\n this._apmServer.addError(errorObject);\n };\n\n _proto.registerListeners = function registerListeners() {\n var _this = this;\n\n window.addEventListener('error', function (errorEvent) {\n return _this.logErrorEvent(errorEvent);\n });\n window.addEventListener('unhandledrejection', function (promiseRejectionEvent) {\n return _this.logPromiseEvent(promiseRejectionEvent);\n });\n };\n\n _proto.logPromiseEvent = function logPromiseEvent(promiseRejectionEvent) {\n var prefix = 'Unhandled promise rejection: ';\n var reason = promiseRejectionEvent.reason;\n\n if (reason == null) {\n reason = '<no reason specified>';\n }\n\n var errorEvent;\n\n if (typeof reason.message === 'string') {\n var name = reason.name ? reason.name + ': ' : '';\n errorEvent = {\n error: reason,\n message: prefix + name + reason.message\n };\n } else {\n reason = typeof reason === 'object' ? '<object>' : typeof reason === 'function' ? '<function>' : reason;\n errorEvent = {\n message: prefix + reason\n };\n }\n\n this.logErrorEvent(errorEvent);\n };\n\n _proto.logError = function logError(messageOrError) {\n var errorEvent = {};\n\n if (typeof messageOrError === 'string') {\n errorEvent.message = messageOrError;\n } else {\n errorEvent.error = messageOrError;\n }\n\n return this.logErrorEvent(errorEvent);\n };\n\n return ErrorLogging;\n}();\n\nexport default ErrorLogging;","import stackParser from 'error-stack-parser';\n\nfunction filePathToFileName(fileUrl) {\n var origin = window.location.origin || window.location.protocol + '//' + window.location.hostname + (window.location.port ? ':' + window.location.port : '');\n\n if (fileUrl.indexOf(origin) > -1) {\n fileUrl = fileUrl.replace(origin + '/', '');\n }\n\n return fileUrl;\n}\n\nfunction cleanFilePath(filePath) {\n if (filePath === void 0) {\n filePath = '';\n }\n\n if (filePath === '<anonymous>') {\n filePath = '';\n }\n\n return filePath;\n}\n\nfunction isFileInline(fileUrl) {\n if (fileUrl) {\n return window.location.href.indexOf(fileUrl) === 0;\n }\n\n return false;\n}\n\nfunction normalizeStackFrames(stackFrames) {\n return stackFrames.map(function (frame) {\n if (frame.functionName) {\n frame.functionName = normalizeFunctionName(frame.functionName);\n }\n\n return frame;\n });\n}\n\nfunction normalizeFunctionName(fnName) {\n var parts = fnName.split('/');\n\n if (parts.length > 1) {\n fnName = ['Object', parts[parts.length - 1]].join('.');\n } else {\n fnName = parts[0];\n }\n\n fnName = fnName.replace(/.<$/gi, '.<anonymous>');\n fnName = fnName.replace(/^Anonymous function$/, '<anonymous>');\n parts = fnName.split('.');\n\n if (parts.length > 1) {\n fnName = parts[parts.length - 1];\n } else {\n fnName = parts[0];\n }\n\n return fnName;\n}\n\nexport function createStackTraces(errorEvent) {\n var error = errorEvent.error,\n filename = errorEvent.filename,\n lineno = errorEvent.lineno,\n colno = errorEvent.colno;\n var stackTraces = [];\n\n if (error) {\n try {\n stackTraces = stackParser.parse(error);\n } catch (e) {}\n }\n\n if (stackTraces.length === 0) {\n stackTraces = [{\n fileName: filename,\n lineNumber: lineno,\n columnNumber: colno\n }];\n }\n\n var normalizedStackTraces = normalizeStackFrames(stackTraces);\n return normalizedStackTraces.map(function (stack) {\n var fileName = stack.fileName,\n lineNumber = stack.lineNumber,\n columnNumber = stack.columnNumber,\n _stack$functionName = stack.functionName,\n functionName = _stack$functionName === void 0 ? '<anonymous>' : _stack$functionName;\n\n if (!fileName && !lineNumber) {\n return {};\n }\n\n if (!columnNumber && !lineNumber) {\n return {};\n }\n\n var filePath = cleanFilePath(fileName);\n var cleanedFileName = filePathToFileName(filePath);\n\n if (isFileInline(filePath)) {\n cleanedFileName = '(inline script)';\n }\n\n return {\n abs_path: fileName,\n filename: cleanedFileName,\n function: functionName,\n lineno: lineNumber,\n colno: columnNumber\n };\n });\n}\nexport function filterInvalidFrames(frames) {\n return frames.filter(function (_ref) {\n var filename = _ref.filename,\n lineno = _ref.lineno;\n return typeof filename !== 'undefined' && typeof lineno !== 'undefined';\n });\n}","var Queue = function () {\n function Queue(onFlush, opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n this.onFlush = onFlush;\n this.items = [];\n this.queueLimit = opts.queueLimit || -1;\n this.flushInterval = opts.flushInterval || 0;\n this.timeoutId = undefined;\n }\n\n var _proto = Queue.prototype;\n\n _proto._setTimer = function _setTimer() {\n var _this = this;\n\n this.timeoutId = setTimeout(function () {\n return _this.flush();\n }, this.flushInterval);\n };\n\n _proto._clear = function _clear() {\n if (typeof this.timeoutId !== 'undefined') {\n clearTimeout(this.timeoutId);\n this.timeoutId = undefined;\n }\n\n this.items = [];\n };\n\n _proto.flush = function flush() {\n this.onFlush(this.items);\n\n this._clear();\n };\n\n _proto.add = function add(item) {\n this.items.push(item);\n\n if (this.queueLimit !== -1 && this.items.length >= this.queueLimit) {\n this.flush();\n } else {\n if (typeof this.timeoutId === 'undefined') {\n this._setTimer();\n }\n }\n };\n\n return Queue;\n}();\n\nexport default Queue;","var NDJSON = function () {\n function NDJSON() {}\n\n NDJSON.stringify = function stringify(object) {\n return JSON.stringify(object) + '\\n';\n };\n\n return NDJSON;\n}();\n\nexport default NDJSON;","export var globalState = {\n fetchInProgress: false\n};\nexport function apmSymbol(name) {\n return '__apm_symbol__' + name;\n}\n\nfunction isPropertyWritable(propertyDesc) {\n if (!propertyDesc) {\n return true;\n }\n\n if (propertyDesc.writable === false) {\n return false;\n }\n\n return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');\n}\n\nfunction attachOriginToPatched(patched, original) {\n patched[apmSymbol('OriginalDelegate')] = original;\n}\n\nexport function patchMethod(target, name, patchFn) {\n var proto = target;\n\n while (proto && !proto.hasOwnProperty(name)) {\n proto = Object.getPrototypeOf(proto);\n }\n\n if (!proto && target[name]) {\n proto = target;\n }\n\n var delegateName = apmSymbol(name);\n var delegate;\n\n if (proto && !(delegate = proto[delegateName])) {\n delegate = proto[delegateName] = proto[name];\n var desc = proto && Object.getOwnPropertyDescriptor(proto, name);\n\n if (isPropertyWritable(desc)) {\n var patchDelegate = patchFn(delegate, delegateName, name);\n\n proto[name] = function () {\n return patchDelegate(this, arguments);\n };\n\n attachOriginToPatched(proto[name], delegate);\n }\n }\n\n return delegate;\n}\nexport var XHR_IGNORE = apmSymbol('xhrIgnore');\nexport var XHR_SYNC = apmSymbol('xhrSync');\nexport var XHR_URL = apmSymbol('xhrURL');\nexport var XHR_METHOD = apmSymbol('xhrMethod');","import { generateRandomId, setLabel, merge, getDuration, getTime } from '../common/utils';\nimport { NAME_UNKNOWN, TYPE_CUSTOM } from '../common/constants';\n\nvar SpanBase = function () {\n function SpanBase(name, type, options) {\n if (options === void 0) {\n options = {};\n }\n\n if (!name) {\n name = NAME_UNKNOWN;\n }\n\n if (!type) {\n type = TYPE_CUSTOM;\n }\n\n this.name = name;\n this.type = type;\n this.options = options;\n this.id = options.id || generateRandomId(16);\n this.traceId = options.traceId;\n this.sampled = options.sampled;\n this.sampleRate = options.sampleRate;\n this.timestamp = options.timestamp;\n this._start = getTime(options.startTime);\n this._end = undefined;\n this.ended = false;\n this.outcome = undefined;\n this.onEnd = options.onEnd;\n }\n\n var _proto = SpanBase.prototype;\n\n _proto.ensureContext = function ensureContext() {\n if (!this.context) {\n this.context = {};\n }\n };\n\n _proto.addLabels = function addLabels(tags) {\n this.ensureContext();\n var ctx = this.context;\n\n if (!ctx.tags) {\n ctx.tags = {};\n }\n\n var keys = Object.keys(tags);\n keys.forEach(function (k) {\n return setLabel(k, tags[k], ctx.tags);\n });\n };\n\n _proto.addContext = function addContext() {\n for (var _len = arguments.length, context = new Array(_len), _key = 0; _key < _len; _key++) {\n context[_key] = arguments[_key];\n }\n\n if (context.length === 0) return;\n this.ensureContext();\n merge.apply(void 0, [this.context].concat(context));\n };\n\n _proto.end = function end(endTime) {\n if (this.ended) {\n return;\n }\n\n this.ended = true;\n this._end = getTime(endTime);\n this.callOnEnd();\n };\n\n _proto.callOnEnd = function callOnEnd() {\n if (typeof this.onEnd === 'function') {\n this.onEnd(this);\n }\n };\n\n _proto.duration = function duration() {\n return getDuration(this._start, this._end);\n };\n\n return SpanBase;\n}();\n\nexport default SpanBase;","function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport SpanBase from './span-base';\nimport { addSpanContext } from '../common/context';\n\nvar Span = function (_SpanBase) {\n _inheritsLoose(Span, _SpanBase);\n\n function Span(name, type, options) {\n var _this;\n\n _this = _SpanBase.call(this, name, type, options) || this;\n _this.parentId = _this.options.parentId;\n _this.subtype = undefined;\n _this.action = undefined;\n\n if (_this.type.indexOf('.') !== -1) {\n var fields = _this.type.split('.', 3);\n\n _this.type = fields[0];\n _this.subtype = fields[1];\n _this.action = fields[2];\n }\n\n _this.sync = _this.options.sync;\n return _this;\n }\n\n var _proto = Span.prototype;\n\n _proto.end = function end(endTime, data) {\n _SpanBase.prototype.end.call(this, endTime);\n\n addSpanContext(this, data);\n };\n\n return Span;\n}(SpanBase);\n\nexport default Span;","var __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar state = {\n bootstrapTime: null,\n lastHiddenStart: Number.MIN_SAFE_INTEGER\n};\nexport { __DEV__, state };","import Span from './span';\nimport { RESOURCE_INITIATOR_TYPES, MAX_SPAN_DURATION, USER_TIMING_THRESHOLD, PAGE_LOAD, RESOURCE, MEASURE } from '../common/constants';\nimport { stripQueryStringFromUrl, PERF, isPerfTimelineSupported } from '../common/utils';\nimport { state } from '../state';\nvar eventPairs = [['domainLookupStart', 'domainLookupEnd', 'Domain lookup'], ['connectStart', 'connectEnd', 'Making a connection to the server'], ['requestStart', 'responseEnd', 'Requesting and receiving the document'], ['domLoading', 'domInteractive', 'Parsing the document, executing sync. scripts'], ['domContentLoadedEventStart', 'domContentLoadedEventEnd', 'Fire \"DOMContentLoaded\" event'], ['loadEventStart', 'loadEventEnd', 'Fire \"load\" event']];\n\nfunction shouldCreateSpan(start, end, trStart, trEnd, baseTime) {\n if (baseTime === void 0) {\n baseTime = 0;\n }\n\n return typeof start === 'number' && typeof end === 'number' && start >= baseTime && end > start && start - baseTime >= trStart && end - baseTime <= trEnd && end - start < MAX_SPAN_DURATION && start - baseTime < MAX_SPAN_DURATION && end - baseTime < MAX_SPAN_DURATION;\n}\n\nfunction createNavigationTimingSpans(timings, baseTime, trStart, trEnd) {\n var spans = [];\n\n for (var i = 0; i < eventPairs.length; i++) {\n var start = timings[eventPairs[i][0]];\n var end = timings[eventPairs[i][1]];\n\n if (!shouldCreateSpan(start, end, trStart, trEnd, baseTime)) {\n continue;\n }\n\n var span = new Span(eventPairs[i][2], 'hard-navigation.browser-timing');\n var data = null;\n\n if (eventPairs[i][0] === 'requestStart') {\n span.pageResponse = true;\n data = {\n url: location.origin\n };\n }\n\n span._start = start - baseTime;\n span.end(end - baseTime, data);\n spans.push(span);\n }\n\n return spans;\n}\n\nfunction createResourceTimingSpan(resourceTimingEntry) {\n var name = resourceTimingEntry.name,\n initiatorType = resourceTimingEntry.initiatorType,\n startTime = resourceTimingEntry.startTime,\n responseEnd = resourceTimingEntry.responseEnd;\n var kind = 'resource';\n\n if (initiatorType) {\n kind += '.' + initiatorType;\n }\n\n var spanName = stripQueryStringFromUrl(name);\n var span = new Span(spanName, kind);\n span._start = startTime;\n span.end(responseEnd, {\n url: name,\n entry: resourceTimingEntry\n });\n return span;\n}\n\nfunction isCapturedByPatching(resourceStartTime, requestPatchTime) {\n return requestPatchTime != null && resourceStartTime > requestPatchTime;\n}\n\nfunction isIntakeAPIEndpoint(url) {\n return /intake\\/v\\d+\\/rum\\/events/.test(url);\n}\n\nfunction createResourceTimingSpans(entries, requestPatchTime, trStart, trEnd) {\n var spans = [];\n\n for (var i = 0; i < entries.length; i++) {\n var _entries$i = entries[i],\n initiatorType = _entries$i.initiatorType,\n name = _entries$i.name,\n startTime = _entries$i.startTime,\n responseEnd = _entries$i.responseEnd;\n\n if (RESOURCE_INITIATOR_TYPES.indexOf(initiatorType) === -1 || name == null) {\n continue;\n }\n\n if ((initiatorType === 'xmlhttprequest' || initiatorType === 'fetch') && (isIntakeAPIEndpoint(name) || isCapturedByPatching(startTime, requestPatchTime))) {\n continue;\n }\n\n if (shouldCreateSpan(startTime, responseEnd, trStart, trEnd)) {\n spans.push(createResourceTimingSpan(entries[i]));\n }\n }\n\n return spans;\n}\n\nfunction createUserTimingSpans(entries, trStart, trEnd) {\n var userTimingSpans = [];\n\n for (var i = 0; i < entries.length; i++) {\n var _entries$i2 = entries[i],\n name = _entries$i2.name,\n startTime = _entries$i2.startTime,\n duration = _entries$i2.duration;\n var end = startTime + duration;\n\n if (duration <= USER_TIMING_THRESHOLD || !shouldCreateSpan(startTime, end, trStart, trEnd)) {\n continue;\n }\n\n var kind = 'app';\n var span = new Span(name, kind);\n span._start = startTime;\n span.end(end);\n userTimingSpans.push(span);\n }\n\n return userTimingSpans;\n}\n\nvar NAVIGATION_TIMING_MARKS = ['fetchStart', 'domainLookupStart', 'domainLookupEnd', 'connectStart', 'connectEnd', 'requestStart', 'responseStart', 'responseEnd', 'domLoading', 'domInteractive', 'domContentLoadedEventStart', 'domContentLoadedEventEnd', 'domComplete', 'loadEventStart', 'loadEventEnd'];\nvar COMPRESSED_NAV_TIMING_MARKS = ['fs', 'ls', 'le', 'cs', 'ce', 'qs', 'rs', 're', 'dl', 'di', 'ds', 'de', 'dc', 'es', 'ee'];\n\nfunction getNavigationTimingMarks(timing) {\n var fetchStart = timing.fetchStart,\n navigationStart = timing.navigationStart,\n responseStart = timing.responseStart,\n responseEnd = timing.responseEnd;\n\n if (fetchStart >= navigationStart && responseStart >= fetchStart && responseEnd >= responseStart) {\n var marks = {};\n NAVIGATION_TIMING_MARKS.forEach(function (timingKey) {\n var m = timing[timingKey];\n\n if (m && m >= fetchStart) {\n marks[timingKey] = parseInt(m - fetchStart);\n }\n });\n return marks;\n }\n\n return null;\n}\n\nfunction getPageLoadMarks(timing) {\n var marks = getNavigationTimingMarks(timing);\n\n if (marks == null) {\n return null;\n }\n\n return {\n navigationTiming: marks,\n agent: {\n timeToFirstByte: marks.responseStart,\n domInteractive: marks.domInteractive,\n domComplete: marks.domComplete\n }\n };\n}\n\nfunction captureNavigation(transaction) {\n if (!transaction.captureTimings) {\n return;\n }\n\n var trEnd = transaction._end;\n\n if (transaction.type === PAGE_LOAD) {\n if (transaction.marks && transaction.marks.custom) {\n var customMarks = transaction.marks.custom;\n Object.keys(customMarks).forEach(function (key) {\n customMarks[key] += transaction._start;\n });\n }\n\n var trStart = 0;\n transaction._start = trStart;\n var timings = PERF.timing;\n createNavigationTimingSpans(timings, timings.fetchStart, trStart, trEnd).forEach(function (span) {\n span.traceId = transaction.traceId;\n span.sampled = transaction.sampled;\n\n if (span.pageResponse && transaction.options.pageLoadSpanId) {\n span.id = transaction.options.pageLoadSpanId;\n }\n\n transaction.spans.push(span);\n });\n transaction.addMarks(getPageLoadMarks(timings));\n }\n\n if (isPerfTimelineSupported()) {\n var _trStart = transaction._start;\n var resourceEntries = PERF.getEntriesByType(RESOURCE);\n createResourceTimingSpans(resourceEntries, state.bootstrapTime, _trStart, trEnd).forEach(function (span) {\n return transaction.spans.push(span);\n });\n var userEntries = PERF.getEntriesByType(MEASURE);\n createUserTimingSpans(userEntries, _trStart, trEnd).forEach(function (span) {\n return transaction.spans.push(span);\n });\n }\n}\n\nexport { getPageLoadMarks, captureNavigation, createNavigationTimingSpans, createResourceTimingSpans, createUserTimingSpans, NAVIGATION_TIMING_MARKS, COMPRESSED_NAV_TIMING_MARKS };","import { Promise } from './polyfills';\nimport { NAVIGATION_TIMING_MARKS, COMPRESSED_NAV_TIMING_MARKS } from '../performance-monitoring/capture-navigation';\n\nfunction compressStackFrames(frames) {\n return frames.map(function (frame) {\n return {\n ap: frame.abs_path,\n f: frame.filename,\n fn: frame.function,\n li: frame.lineno,\n co: frame.colno\n };\n });\n}\n\nfunction compressResponse(response) {\n return {\n ts: response.transfer_size,\n ebs: response.encoded_body_size,\n dbs: response.decoded_body_size\n };\n}\n\nfunction compressHTTP(http) {\n var compressed = {};\n var method = http.method,\n status_code = http.status_code,\n url = http.url,\n response = http.response;\n compressed.url = url;\n\n if (method) {\n compressed.mt = method;\n }\n\n if (status_code) {\n compressed.sc = status_code;\n }\n\n if (response) {\n compressed.r = compressResponse(response);\n }\n\n return compressed;\n}\n\nfunction compressContext(context) {\n if (!context) {\n return null;\n }\n\n var compressed = {};\n var page = context.page,\n http = context.http,\n response = context.response,\n destination = context.destination,\n user = context.user,\n custom = context.custom;\n\n if (page) {\n compressed.p = {\n rf: page.referer,\n url: page.url\n };\n }\n\n if (http) {\n compressed.h = compressHTTP(http);\n }\n\n if (response) {\n compressed.r = compressResponse(response);\n }\n\n if (destination) {\n var service = destination.service;\n compressed.dt = {\n se: {\n n: service.name,\n t: service.type,\n rc: service.resource\n },\n ad: destination.address,\n po: destination.port\n };\n }\n\n if (user) {\n compressed.u = {\n id: user.id,\n un: user.username,\n em: user.email\n };\n }\n\n if (custom) {\n compressed.cu = custom;\n }\n\n return compressed;\n}\n\nfunction compressMarks(marks) {\n if (!marks) {\n return null;\n }\n\n var navigationTiming = marks.navigationTiming,\n agent = marks.agent;\n var compressed = {\n nt: {}\n };\n COMPRESSED_NAV_TIMING_MARKS.forEach(function (mark, index) {\n var mapping = NAVIGATION_TIMING_MARKS[index];\n compressed.nt[mark] = navigationTiming[mapping];\n });\n compressed.a = {\n fb: compressed.nt.rs,\n di: compressed.nt.di,\n dc: compressed.nt.dc\n };\n var fp = agent.firstContentfulPaint;\n var lp = agent.largestContentfulPaint;\n\n if (fp) {\n compressed.a.fp = fp;\n }\n\n if (lp) {\n compressed.a.lp = lp;\n }\n\n return compressed;\n}\n\nexport function compressMetadata(metadata) {\n var service = metadata.service,\n labels = metadata.labels;\n var agent = service.agent,\n language = service.language;\n return {\n se: {\n n: service.name,\n ve: service.version,\n a: {\n n: agent.name,\n ve: agent.version\n },\n la: {\n n: language.name\n },\n en: service.environment\n },\n l: labels\n };\n}\nexport function compressTransaction(transaction) {\n var spans = transaction.spans.map(function (span) {\n var spanData = {\n id: span.id,\n n: span.name,\n t: span.type,\n s: span.start,\n d: span.duration,\n c: compressContext(span.context),\n o: span.outcome,\n sr: span.sample_rate\n };\n\n if (span.parent_id !== transaction.id) {\n spanData.pid = span.parent_id;\n }\n\n if (span.sync === true) {\n spanData.sy = true;\n }\n\n if (span.subtype) {\n spanData.su = span.subtype;\n }\n\n if (span.action) {\n spanData.ac = span.action;\n }\n\n return spanData;\n });\n var tr = {\n id: transaction.id,\n tid: transaction.trace_id,\n n: transaction.name,\n t: transaction.type,\n d: transaction.duration,\n c: compressContext(transaction.context),\n m: compressMarks(transaction.marks),\n me: compressMetricsets(transaction.breakdown),\n y: spans,\n yc: {\n sd: spans.length\n },\n sm: transaction.sampled,\n sr: transaction.sample_rate,\n o: transaction.outcome\n };\n\n if (transaction.experience) {\n var _transaction$experien = transaction.experience,\n cls = _transaction$experien.cls,\n fid = _transaction$experien.fid,\n tbt = _transaction$experien.tbt,\n longtask = _transaction$experien.longtask;\n tr.exp = {\n cls: cls,\n fid: fid,\n tbt: tbt,\n lt: longtask\n };\n }\n\n return tr;\n}\nexport function compressError(error) {\n var exception = error.exception;\n var compressed = {\n id: error.id,\n cl: error.culprit,\n ex: {\n mg: exception.message,\n st: compressStackFrames(exception.stacktrace),\n t: error.type\n },\n c: compressContext(error.context)\n };\n var transaction = error.transaction;\n\n if (transaction) {\n compressed.tid = error.trace_id;\n compressed.pid = error.parent_id;\n compressed.xid = error.transaction_id;\n compressed.x = {\n t: transaction.type,\n sm: transaction.sampled\n };\n }\n\n return compressed;\n}\nexport function compressMetricsets(breakdowns) {\n return breakdowns.map(function (_ref) {\n var span = _ref.span,\n samples = _ref.samples;\n var isSpan = span != null;\n\n if (isSpan) {\n return {\n y: {\n t: span.type\n },\n sa: {\n ysc: {\n v: samples['span.self_time.count'].value\n },\n yss: {\n v: samples['span.self_time.sum.us'].value\n }\n }\n };\n }\n\n return {\n sa: {\n xdc: {\n v: samples['transaction.duration.count'].value\n },\n xds: {\n v: samples['transaction.duration.sum.us'].value\n },\n xbc: {\n v: samples['transaction.breakdown.count'].value\n }\n }\n };\n });\n}\nexport function compressPayload(payload, headers, type) {\n if (type === void 0) {\n type = 'gzip';\n }\n\n var isCompressionStreamSupported = typeof CompressionStream === 'function';\n return new Promise(function (resolve) {\n if (!isCompressionStreamSupported) {\n return resolve({\n payload: payload,\n headers: headers\n });\n }\n\n var payloadStream = new Blob([payload]).stream();\n var compressedStream = payloadStream.pipeThrough(new CompressionStream(type));\n return new Response(compressedStream).blob().then(function (payload) {\n headers['Content-Encoding'] = type;\n return resolve({\n payload: payload,\n headers: headers\n });\n });\n });\n}","import Queue from './queue';\nimport throttle from './throttle';\nimport NDJSON from './ndjson';\nimport { XHR_IGNORE } from './patching/patch-utils';\nimport { truncateModel, METADATA_MODEL } from './truncate';\nimport { ERRORS, TRANSACTIONS } from './constants';\nimport { noop } from './utils';\nimport { Promise } from './polyfills';\nimport { compressMetadata, compressTransaction, compressError, compressPayload } from './compress';\nimport { __DEV__ } from '../state';\nvar THROTTLE_INTERVAL = 60000;\n\nvar ApmServer = function () {\n function ApmServer(configService, loggingService) {\n this._configService = configService;\n this._loggingService = loggingService;\n this.queue = undefined;\n this.throttleEvents = noop;\n }\n\n var _proto = ApmServer.prototype;\n\n _proto.init = function init() {\n var _this = this;\n\n var queueLimit = this._configService.get('queueLimit');\n\n var flushInterval = this._configService.get('flushInterval');\n\n var limit = this._configService.get('eventsLimit');\n\n var onFlush = function onFlush(events) {\n var promise = _this.sendEvents(events);\n\n if (promise) {\n promise.catch(function (reason) {\n _this._loggingService.warn('Failed sending events!', _this._constructError(reason));\n });\n }\n };\n\n this.queue = new Queue(onFlush, {\n queueLimit: queueLimit,\n flushInterval: flushInterval\n });\n this.throttleEvents = throttle(this.queue.add.bind(this.queue), function () {\n return _this._loggingService.warn('Dropped events due to throttling!');\n }, {\n limit: limit,\n interval: THROTTLE_INTERVAL\n });\n };\n\n _proto._postJson = function _postJson(endPoint, payload) {\n var _this2 = this;\n\n var headers = {\n 'Content-Type': 'application/x-ndjson'\n };\n return compressPayload(payload, headers).catch(function (error) {\n if (__DEV__) {\n _this2._loggingService.debug('Compressing the payload using CompressionStream API failed', error.message);\n }\n\n return {\n payload: payload,\n headers: headers\n };\n }).then(function (result) {\n return _this2._makeHttpRequest('POST', endPoint, result);\n }).then(function (_ref) {\n var responseText = _ref.responseText;\n return responseText;\n });\n };\n\n _proto._constructError = function _constructError(reason) {\n var url = reason.url,\n status = reason.status,\n responseText = reason.responseText;\n\n if (typeof status == 'undefined') {\n return reason;\n }\n\n var message = url + ' HTTP status: ' + status;\n\n if (__DEV__ && responseText) {\n try {\n var serverErrors = [];\n var response = JSON.parse(responseText);\n\n if (response.errors && response.errors.length > 0) {\n response.errors.forEach(function (err) {\n return serverErrors.push(err.message);\n });\n message += ' ' + serverErrors.join(',');\n }\n } catch (e) {\n this._loggingService.debug('Error parsing response from APM server', e);\n }\n }\n\n return new Error(message);\n };\n\n _proto._makeHttpRequest = function _makeHttpRequest(method, url, _temp) {\n var _ref2 = _temp === void 0 ? {} : _temp,\n _ref2$timeout = _ref2.timeout,\n timeout = _ref2$timeout === void 0 ? 10000 : _ref2$timeout,\n payload = _ref2.payload,\n headers = _ref2.headers;\n\n return new Promise(function (resolve, reject) {\n var xhr = new window.XMLHttpRequest();\n xhr[XHR_IGNORE] = true;\n xhr.open(method, url, true);\n xhr.timeout = timeout;\n\n if (headers) {\n for (var header in headers) {\n if (headers.hasOwnProperty(header)) {\n xhr.setRequestHeader(header, headers[header]);\n }\n }\n }\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === 4) {\n var status = xhr.status,\n responseText = xhr.responseText;\n\n if (status === 0 || status > 399 && status < 600) {\n reject({\n url: url,\n status: status,\n responseText: responseText\n });\n } else {\n resolve(xhr);\n }\n }\n };\n\n xhr.onerror = function () {\n var status = xhr.status,\n responseText = xhr.responseText;\n reject({\n url: url,\n status: status,\n responseText: responseText\n });\n };\n\n xhr.send(payload);\n });\n };\n\n _proto.fetchConfig = function fetchConfig(serviceName, environment) {\n var _this3 = this;\n\n var serverUrl = this._configService.get('serverUrl');\n\n var configEndpoint = serverUrl + \"/config/v1/rum/agents\";\n\n if (!serviceName) {\n return Promise.reject('serviceName is required for fetching central config.');\n }\n\n configEndpoint += \"?service.name=\" + serviceName;\n\n if (environment) {\n configEndpoint += \"&service.environment=\" + environment;\n }\n\n var localConfig = this._configService.getLocalConfig();\n\n if (localConfig) {\n configEndpoint += \"&ifnonematch=\" + localConfig.etag;\n }\n\n return this._makeHttpRequest('GET', configEndpoint, {\n timeout: 5000\n }).then(function (xhr) {\n var status = xhr.status,\n responseText = xhr.responseText;\n\n if (status === 304) {\n return localConfig;\n } else {\n var remoteConfig = JSON.parse(responseText);\n var etag = xhr.getResponseHeader('etag');\n\n if (etag) {\n remoteConfig.etag = etag.replace(/[\"]/g, '');\n\n _this3._configService.setLocalConfig(remoteConfig);\n }\n\n return remoteConfig;\n }\n }).catch(function (reason) {\n var error = _this3._constructError(reason);\n\n return Promise.reject(error);\n });\n };\n\n _proto.createMetaData = function createMetaData() {\n var cfg = this._configService;\n var metadata = {\n service: {\n name: cfg.get('serviceName'),\n version: cfg.get('serviceVersion'),\n agent: {\n name: 'rum-js',\n version: cfg.version\n },\n language: {\n name: 'javascript'\n },\n environment: cfg.get('environment')\n },\n labels: cfg.get('context.tags')\n };\n return truncateModel(METADATA_MODEL, metadata);\n };\n\n _proto.addError = function addError(error) {\n var _this$throttleEvents;\n\n this.throttleEvents((_this$throttleEvents = {}, _this$throttleEvents[ERRORS] = error, _this$throttleEvents));\n };\n\n _proto.addTransaction = function addTransaction(transaction) {\n var _this$throttleEvents2;\n\n this.throttleEvents((_this$throttleEvents2 = {}, _this$throttleEvents2[TRANSACTIONS] = transaction, _this$throttleEvents2));\n };\n\n _proto.ndjsonErrors = function ndjsonErrors(errors, compress) {\n var key = compress ? 'e' : 'error';\n return errors.map(function (error) {\n var _NDJSON$stringify;\n\n return NDJSON.stringify((_NDJSON$stringify = {}, _NDJSON$stringify[key] = compress ? compressError(error) : error, _NDJSON$stringify));\n });\n };\n\n _proto.ndjsonMetricsets = function ndjsonMetricsets(metricsets) {\n return metricsets.map(function (metricset) {\n return NDJSON.stringify({\n metricset: metricset\n });\n }).join('');\n };\n\n _proto.ndjsonTransactions = function ndjsonTransactions(transactions, compress) {\n var _this4 = this;\n\n var key = compress ? 'x' : 'transaction';\n return transactions.map(function (tr) {\n var _NDJSON$stringify2;\n\n var spans = '',\n breakdowns = '';\n\n if (!compress) {\n if (tr.spans) {\n spans = tr.spans.map(function (span) {\n return NDJSON.stringify({\n span: span\n });\n }).join('');\n delete tr.spans;\n }\n\n if (tr.breakdown) {\n breakdowns = _this4.ndjsonMetricsets(tr.breakdown);\n delete tr.breakdown;\n }\n }\n\n return NDJSON.stringify((_NDJSON$stringify2 = {}, _NDJSON$stringify2[key] = compress ? compressTransaction(tr) : tr, _NDJSON$stringify2)) + spans + breakdowns;\n });\n };\n\n _proto.sendEvents = function sendEvents(events) {\n var _payload, _NDJSON$stringify3;\n\n if (events.length === 0) {\n return;\n }\n\n var transactions = [];\n var errors = [];\n\n for (var i = 0; i < events.length; i++) {\n var event = events[i];\n\n if (event[TRANSACTIONS]) {\n transactions.push(event[TRANSACTIONS]);\n }\n\n if (event[ERRORS]) {\n errors.push(event[ERRORS]);\n }\n }\n\n if (transactions.length === 0 && errors.length === 0) {\n return;\n }\n\n var cfg = this._configService;\n var payload = (_payload = {}, _payload[TRANSACTIONS] = transactions, _payload[ERRORS] = errors, _payload);\n var filteredPayload = cfg.applyFilters(payload);\n\n if (!filteredPayload) {\n this._loggingService.warn('Dropped payload due to filtering!');\n\n return;\n }\n\n var apiVersion = cfg.get('apiVersion');\n var compress = apiVersion > 2;\n var ndjson = [];\n var metadata = this.createMetaData();\n var metadataKey = compress ? 'm' : 'metadata';\n ndjson.push(NDJSON.stringify((_NDJSON$stringify3 = {}, _NDJSON$stringify3[metadataKey] = compress ? compressMetadata(metadata) : metadata, _NDJSON$stringify3)));\n ndjson = ndjson.concat(this.ndjsonErrors(filteredPayload[ERRORS], compress), this.ndjsonTransactions(filteredPayload[TRANSACTIONS], compress));\n var ndjsonPayload = ndjson.join('');\n var endPoint = cfg.get('serverUrl') + (\"/intake/v\" + apiVersion + \"/rum/events\");\n return this._postJson(endPoint, ndjsonPayload);\n };\n\n return ApmServer;\n}();\n\nexport default ApmServer;","export default function throttle(fn, onThrottle, opts) {\n var context = this;\n var limit = opts.limit;\n var interval = opts.interval;\n var counter = 0;\n var timeoutId;\n return function () {\n counter++;\n\n if (typeof timeoutId === 'undefined') {\n timeoutId = setTimeout(function () {\n counter = 0;\n timeoutId = undefined;\n }, interval);\n }\n\n if (counter > limit && typeof onThrottle === 'function') {\n return onThrottle.apply(context, arguments);\n } else {\n return fn.apply(context, arguments);\n }\n };\n}","import { BEFORE_EVENT, AFTER_EVENT } from './constants';\n\nvar EventHandler = function () {\n function EventHandler() {\n this.observers = {};\n }\n\n var _proto = EventHandler.prototype;\n\n _proto.observe = function observe(name, fn) {\n var _this = this;\n\n if (typeof fn === 'function') {\n if (!this.observers[name]) {\n this.observers[name] = [];\n }\n\n this.observers[name].push(fn);\n return function () {\n var index = _this.observers[name].indexOf(fn);\n\n if (index > -1) {\n _this.observers[name].splice(index, 1);\n }\n };\n }\n };\n\n _proto.sendOnly = function sendOnly(name, args) {\n var obs = this.observers[name];\n\n if (obs) {\n obs.forEach(function (fn) {\n try {\n fn.apply(undefined, args);\n } catch (error) {\n console.log(error, error.stack);\n }\n });\n }\n };\n\n _proto.send = function send(name, args) {\n this.sendOnly(name + BEFORE_EVENT, args);\n this.sendOnly(name, args);\n this.sendOnly(name + AFTER_EVENT, args);\n };\n\n return EventHandler;\n}();\n\nexport default EventHandler;","import { getCurrentScript, setLabel, merge, extend, isUndefined } from './utils';\nimport EventHandler from './event-handler';\nimport { CONFIG_CHANGE, LOCAL_CONFIG_KEY } from './constants';\n\nfunction getConfigFromScript() {\n var script = getCurrentScript();\n var config = getDataAttributesFromNode(script);\n return config;\n}\n\nfunction getDataAttributesFromNode(node) {\n if (!node) {\n return {};\n }\n\n var dataAttrs = {};\n var dataRegex = /^data-([\\w-]+)$/;\n var attrs = node.attributes;\n\n for (var i = 0; i < attrs.length; i++) {\n var attr = attrs[i];\n\n if (dataRegex.test(attr.nodeName)) {\n var key = attr.nodeName.match(dataRegex)[1];\n var camelCasedkey = key.split('-').map(function (value, index) {\n return index > 0 ? value.charAt(0).toUpperCase() + value.substring(1) : value;\n }).join('');\n dataAttrs[camelCasedkey] = attr.value || attr.nodeValue;\n }\n }\n\n return dataAttrs;\n}\n\nvar Config = function () {\n function Config() {\n this.config = {\n serviceName: '',\n serviceVersion: '',\n environment: '',\n serverUrl: 'http://localhost:8200',\n active: true,\n instrument: true,\n disableInstrumentations: [],\n logLevel: 'warn',\n breakdownMetrics: false,\n ignoreTransactions: [],\n eventsLimit: 80,\n queueLimit: -1,\n flushInterval: 500,\n distributedTracing: true,\n distributedTracingOrigins: [],\n distributedTracingHeaderName: 'traceparent',\n pageLoadTraceId: '',\n pageLoadSpanId: '',\n pageLoadSampled: false,\n pageLoadTransactionName: '',\n propagateTracestate: false,\n transactionSampleRate: 1.0,\n centralConfig: false,\n monitorLongtasks: true,\n apiVersion: 2,\n context: {}\n };\n this.events = new EventHandler();\n this.filters = [];\n this.version = '';\n }\n\n var _proto = Config.prototype;\n\n _proto.init = function init() {\n var scriptData = getConfigFromScript();\n this.setConfig(scriptData);\n };\n\n _proto.setVersion = function setVersion(version) {\n this.version = version;\n };\n\n _proto.addFilter = function addFilter(cb) {\n if (typeof cb !== 'function') {\n throw new Error('Argument to must be function');\n }\n\n this.filters.push(cb);\n };\n\n _proto.applyFilters = function applyFilters(data) {\n for (var i = 0; i < this.filters.length; i++) {\n data = this.filters[i](data);\n\n if (!data) {\n return;\n }\n }\n\n return data;\n };\n\n _proto.get = function get(key) {\n return key.split('.').reduce(function (obj, objKey) {\n return obj && obj[objKey];\n }, this.config);\n };\n\n _proto.setUserContext = function setUserContext(userContext) {\n if (userContext === void 0) {\n userContext = {};\n }\n\n var context = {};\n var _userContext = userContext,\n id = _userContext.id,\n username = _userContext.username,\n email = _userContext.email;\n\n if (typeof id === 'number' || typeof id === 'string') {\n context.id = id;\n }\n\n if (typeof username === 'string') {\n context.username = username;\n }\n\n if (typeof email === 'string') {\n context.email = email;\n }\n\n this.config.context.user = extend(this.config.context.user || {}, context);\n };\n\n _proto.setCustomContext = function setCustomContext(customContext) {\n if (customContext === void 0) {\n customContext = {};\n }\n\n this.config.context.custom = extend(this.config.context.custom || {}, customContext);\n };\n\n _proto.addLabels = function addLabels(tags) {\n var _this = this;\n\n if (!this.config.context.tags) {\n this.config.context.tags = {};\n }\n\n var keys = Object.keys(tags);\n keys.forEach(function (k) {\n return setLabel(k, tags[k], _this.config.context.tags);\n });\n };\n\n _proto.setConfig = function setConfig(properties) {\n if (properties === void 0) {\n properties = {};\n }\n\n var _properties = properties,\n transactionSampleRate = _properties.transactionSampleRate,\n serverUrl = _properties.serverUrl;\n\n if (serverUrl) {\n properties.serverUrl = serverUrl.replace(/\\/+$/, '');\n }\n\n if (!isUndefined(transactionSampleRate)) {\n if (transactionSampleRate < 0.0001 && transactionSampleRate > 0) {\n transactionSampleRate = 0.0001;\n }\n\n properties.transactionSampleRate = Math.round(transactionSampleRate * 10000) / 10000;\n }\n\n merge(this.config, properties);\n this.events.send(CONFIG_CHANGE, [this.config]);\n };\n\n _proto.validate = function validate(properties) {\n if (properties === void 0) {\n properties = {};\n }\n\n var requiredKeys = ['serviceName', 'serverUrl'];\n var errors = {\n missing: [],\n invalid: []\n };\n Object.keys(properties).forEach(function (key) {\n if (requiredKeys.indexOf(key) !== -1 && !properties[key]) {\n errors.missing.push(key);\n }\n });\n\n if (properties.serviceName && !/^[a-zA-Z0-9 _-]+$/.test(properties.serviceName)) {\n errors.invalid.push({\n key: 'serviceName',\n value: properties.serviceName,\n allowed: 'a-z, A-Z, 0-9, _, -, <space>'\n });\n }\n\n var sampleRate = properties.transactionSampleRate;\n\n if (typeof sampleRate !== 'undefined' && (typeof sampleRate !== 'number' || isNaN(sampleRate) || sampleRate < 0 || sampleRate > 1)) {\n errors.invalid.push({\n key: 'transactionSampleRate',\n value: sampleRate,\n allowed: 'Number between 0 and 1'\n });\n }\n\n return errors;\n };\n\n _proto.getLocalConfig = function getLocalConfig() {\n var config = sessionStorage.getItem(LOCAL_CONFIG_KEY);\n\n if (config) {\n return JSON.parse(config);\n }\n };\n\n _proto.setLocalConfig = function setLocalConfig(config) {\n if (config) {\n sessionStorage.setItem(LOCAL_CONFIG_KEY, JSON.stringify(config));\n }\n };\n\n return Config;\n}();\n\nexport default Config;","import { noop } from './utils';\n\nvar LoggingService = function () {\n function LoggingService(spec) {\n if (spec === void 0) {\n spec = {};\n }\n\n this.levels = ['trace', 'debug', 'info', 'warn', 'error'];\n this.level = spec.level || 'warn';\n this.prefix = spec.prefix || '';\n this.resetLogMethods();\n }\n\n var _proto = LoggingService.prototype;\n\n _proto.shouldLog = function shouldLog(level) {\n return this.levels.indexOf(level) >= this.levels.indexOf(this.level);\n };\n\n _proto.setLevel = function setLevel(level) {\n if (level === this.level) {\n return;\n }\n\n this.level = level;\n this.resetLogMethods();\n };\n\n _proto.resetLogMethods = function resetLogMethods() {\n var _this = this;\n\n this.levels.forEach(function (level) {\n _this[level] = _this.shouldLog(level) ? log : noop;\n\n function log() {\n var normalizedLevel = level;\n\n if (level === 'trace' || level === 'debug') {\n normalizedLevel = 'info';\n }\n\n var args = arguments;\n args[0] = this.prefix + args[0];\n\n if (console) {\n var realMethod = console[normalizedLevel] || console.log;\n\n if (typeof realMethod === 'function') {\n realMethod.apply(console, args);\n }\n }\n }\n });\n };\n\n return LoggingService;\n}();\n\nexport default LoggingService;","var _serviceCreators;\n\nimport ApmServer from './apm-server';\nimport ConfigService from './config-service';\nimport LoggingService from './logging-service';\nimport { CONFIG_CHANGE, CONFIG_SERVICE, LOGGING_SERVICE, APM_SERVER } from './constants';\nimport { __DEV__ } from '../state';\nvar serviceCreators = (_serviceCreators = {}, _serviceCreators[CONFIG_SERVICE] = function () {\n return new ConfigService();\n}, _serviceCreators[LOGGING_SERVICE] = function () {\n return new LoggingService({\n prefix: '[Elastic APM] '\n });\n}, _serviceCreators[APM_SERVER] = function (factory) {\n var _factory$getService = factory.getService([CONFIG_SERVICE, LOGGING_SERVICE]),\n configService = _factory$getService[0],\n loggingService = _factory$getService[1];\n\n return new ApmServer(configService, loggingService);\n}, _serviceCreators);\n\nvar ServiceFactory = function () {\n function ServiceFactory() {\n this.instances = {};\n this.initialized = false;\n }\n\n var _proto = ServiceFactory.prototype;\n\n _proto.init = function init() {\n if (this.initialized) {\n return;\n }\n\n this.initialized = true;\n var configService = this.getService(CONFIG_SERVICE);\n configService.init();\n\n var _this$getService = this.getService([LOGGING_SERVICE, APM_SERVER]),\n loggingService = _this$getService[0],\n apmServer = _this$getService[1];\n\n configService.events.observe(CONFIG_CHANGE, function () {\n var logLevel = configService.get('logLevel');\n loggingService.setLevel(logLevel);\n });\n apmServer.init();\n };\n\n _proto.getService = function getService(name) {\n var _this = this;\n\n if (typeof name === 'string') {\n if (!this.instances[name]) {\n if (typeof serviceCreators[name] === 'function') {\n this.instances[name] = serviceCreators[name](this);\n } else if (__DEV__) {\n console.log('Cannot get service, No creator for: ' + name);\n }\n }\n\n return this.instances[name];\n } else if (Array.isArray(name)) {\n return name.map(function (n) {\n return _this.getService(n);\n });\n }\n };\n\n return ServiceFactory;\n}();\n\nexport { serviceCreators, ServiceFactory };","import { SCHEDULE, INVOKE, ADD_EVENT_LISTENER_STR, REMOVE_EVENT_LISTENER_STR, EVENT_TARGET } from '../constants';\nimport { apmSymbol } from './patch-utils';\nvar eventTypes = ['click'];\nvar eventTypeSymbols = {};\n\nfor (var i = 0; i < eventTypes.length; i++) {\n var et = eventTypes[i];\n eventTypeSymbols[et] = apmSymbol(et);\n}\n\nfunction shouldInstrumentEvent(target, eventType, listenerFn) {\n return target instanceof Element && eventTypes.indexOf(eventType) >= 0 && typeof listenerFn === 'function';\n}\n\nexport function patchEventTarget(callback) {\n if (!window.EventTarget) {\n return;\n }\n\n var proto = window.EventTarget.prototype;\n var nativeAddEventListener = proto[ADD_EVENT_LISTENER_STR];\n var nativeRemoveEventListener = proto[REMOVE_EVENT_LISTENER_STR];\n\n function findTaskIndex(existingTasks, eventType, listenerFn, capture) {\n for (var _i = 0; _i < existingTasks.length; _i++) {\n var task = existingTasks[_i];\n\n if (task.eventType === eventType && task.listenerFn === listenerFn && task.capture === capture) {\n return _i;\n }\n }\n\n return -1;\n }\n\n function isCapture(options) {\n var capture;\n\n if (typeof options === 'boolean') {\n capture = options;\n } else {\n capture = options ? !!options.capture : false;\n }\n\n return capture;\n }\n\n function createListenerWrapper(target, eventType, listenerFn, options) {\n var eventSymbol = eventTypeSymbols[eventType];\n if (!eventSymbol) return listenerFn;\n var existingTasks = target[eventSymbol];\n var capture = isCapture(options);\n\n if (existingTasks) {\n var taskIndex = findTaskIndex(existingTasks, eventType, listenerFn, capture);\n\n if (taskIndex !== -1) {\n var _task = existingTasks[taskIndex];\n return _task.wrappingFn;\n }\n } else {\n existingTasks = target[eventSymbol] = [];\n }\n\n var task = {\n source: EVENT_TARGET,\n target: target,\n eventType: eventType,\n listenerFn: listenerFn,\n capture: capture,\n wrappingFn: wrappingFn\n };\n existingTasks.push(task);\n\n function wrappingFn() {\n callback(SCHEDULE, task);\n var result;\n\n try {\n result = listenerFn.apply(this, arguments);\n } finally {\n callback(INVOKE, task);\n }\n\n return result;\n }\n\n return wrappingFn;\n }\n\n function getWrappingFn(target, eventType, listenerFn, options) {\n var eventSymbol = eventTypeSymbols[eventType];\n var existingTasks = target[eventSymbol];\n\n if (existingTasks) {\n var capture = isCapture(options);\n var taskIndex = findTaskIndex(existingTasks, eventType, listenerFn, capture);\n\n if (taskIndex !== -1) {\n var task = existingTasks[taskIndex];\n existingTasks.splice(taskIndex, 1);\n\n if (existingTasks.length === 0) {\n target[eventSymbol] = undefined;\n }\n\n return task.wrappingFn;\n }\n }\n\n return listenerFn;\n }\n\n proto[ADD_EVENT_LISTENER_STR] = function (eventType, listenerFn, optionsOrCapture) {\n var target = this;\n\n if (!shouldInstrumentEvent(target, eventType, listenerFn)) {\n return nativeAddEventListener.apply(target, arguments);\n }\n\n var wrappingListenerFn = createListenerWrapper(target, eventType, listenerFn, optionsOrCapture);\n var args = Array.prototype.slice.call(arguments);\n args[1] = wrappingListenerFn;\n return nativeAddEventListener.apply(target, args);\n };\n\n proto[REMOVE_EVENT_LISTENER_STR] = function (eventType, listenerFn, optionsOrCapture) {\n var target = this;\n\n if (!shouldInstrumentEvent(target, eventType, listenerFn)) {\n return nativeRemoveEventListener.apply(target, arguments);\n }\n\n var wrappingFn = getWrappingFn(target, eventType, listenerFn, optionsOrCapture);\n var args = Array.prototype.slice.call(arguments);\n args[1] = wrappingFn;\n return nativeRemoveEventListener.apply(target, args);\n };\n}","import { patchXMLHttpRequest } from './xhr-patch';\nimport { patchFetch } from './fetch-patch';\nimport { patchHistory } from './history-patch';\nimport { patchEventTarget } from './event-target-patch';\nimport EventHandler from '../event-handler';\nimport { HISTORY, FETCH, XMLHTTPREQUEST, EVENT_TARGET } from '../constants';\nvar patchEventHandler = new EventHandler();\nvar alreadyPatched = false;\n\nfunction patchAll() {\n if (!alreadyPatched) {\n alreadyPatched = true;\n patchXMLHttpRequest(function (event, task) {\n patchEventHandler.send(XMLHTTPREQUEST, [event, task]);\n });\n patchFetch(function (event, task) {\n patchEventHandler.send(FETCH, [event, task]);\n });\n patchHistory(function (event, task) {\n patchEventHandler.send(HISTORY, [event, task]);\n });\n patchEventTarget(function (event, task) {\n patchEventHandler.send(EVENT_TARGET, [event, task]);\n });\n }\n\n return patchEventHandler;\n}\n\nexport { patchAll, patchEventHandler };","import { patchMethod, XHR_SYNC, XHR_URL, XHR_METHOD, XHR_IGNORE } from './patch-utils';\nimport { SCHEDULE, INVOKE, XMLHTTPREQUEST, ADD_EVENT_LISTENER_STR } from '../constants';\nexport function patchXMLHttpRequest(callback) {\n var XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n\n if (!XMLHttpRequestPrototype || !XMLHttpRequestPrototype[ADD_EVENT_LISTENER_STR]) {\n return;\n }\n\n var READY_STATE_CHANGE = 'readystatechange';\n var LOAD = 'load';\n var ERROR = 'error';\n var TIMEOUT = 'timeout';\n var ABORT = 'abort';\n\n function invokeTask(task, status) {\n if (task.state !== INVOKE) {\n task.state = INVOKE;\n task.data.status = status;\n callback(INVOKE, task);\n }\n }\n\n function scheduleTask(task) {\n if (task.state === SCHEDULE) {\n return;\n }\n\n task.state = SCHEDULE;\n callback(SCHEDULE, task);\n var target = task.data.target;\n\n function addListener(name) {\n target[ADD_EVENT_LISTENER_STR](name, function (_ref) {\n var type = _ref.type;\n\n if (type === READY_STATE_CHANGE) {\n if (target.readyState === 4 && target.status !== 0) {\n invokeTask(task, 'success');\n }\n } else {\n var status = type === LOAD ? 'success' : type;\n invokeTask(task, status);\n }\n });\n }\n\n addListener(READY_STATE_CHANGE);\n addListener(LOAD);\n addListener(TIMEOUT);\n addListener(ERROR);\n addListener(ABORT);\n }\n\n var openNative = patchMethod(XMLHttpRequestPrototype, 'open', function () {\n return function (self, args) {\n if (!self[XHR_IGNORE]) {\n self[XHR_METHOD] = args[0];\n self[XHR_URL] = args[1];\n self[XHR_SYNC] = args[2] === false;\n }\n\n return openNative.apply(self, args);\n };\n });\n var sendNative = patchMethod(XMLHttpRequestPrototype, 'send', function () {\n return function (self, args) {\n if (self[XHR_IGNORE]) {\n return sendNative.apply(self, args);\n }\n\n var task = {\n source: XMLHTTPREQUEST,\n state: '',\n type: 'macroTask',\n data: {\n target: self,\n method: self[XHR_METHOD],\n sync: self[XHR_SYNC],\n url: self[XHR_URL],\n status: ''\n }\n };\n\n try {\n scheduleTask(task);\n return sendNative.apply(self, args);\n } catch (e) {\n invokeTask(task, ERROR);\n throw e;\n }\n };\n });\n}","import { Promise } from '../polyfills';\nimport { globalState } from './patch-utils';\nimport { SCHEDULE, INVOKE, FETCH } from '../constants';\nimport { scheduleMicroTask } from '../utils';\nexport function patchFetch(callback) {\n if (!window.fetch || !window.Request) {\n return;\n }\n\n function scheduleTask(task) {\n task.state = SCHEDULE;\n callback(SCHEDULE, task);\n }\n\n function invokeTask(task) {\n task.state = INVOKE;\n callback(INVOKE, task);\n }\n\n var nativeFetch = window.fetch;\n\n window.fetch = function (input, init) {\n var fetchSelf = this;\n var args = arguments;\n var request, url;\n\n if (typeof input === 'string') {\n request = new Request(input, init);\n url = input;\n } else if (input) {\n request = input;\n url = request.url;\n } else {\n return nativeFetch.apply(fetchSelf, args);\n }\n\n var task = {\n source: FETCH,\n state: '',\n type: 'macroTask',\n data: {\n target: request,\n method: request.method,\n url: url,\n aborted: false\n }\n };\n return new Promise(function (resolve, reject) {\n globalState.fetchInProgress = true;\n scheduleTask(task);\n var promise;\n\n try {\n promise = nativeFetch.apply(fetchSelf, [request]);\n } catch (error) {\n reject(error);\n task.data.error = error;\n invokeTask(task);\n globalState.fetchInProgress = false;\n return;\n }\n\n promise.then(function (response) {\n resolve(response);\n scheduleMicroTask(function () {\n task.data.response = response;\n invokeTask(task);\n });\n }, function (error) {\n reject(error);\n scheduleMicroTask(function () {\n task.data.error = error;\n invokeTask(task);\n });\n });\n globalState.fetchInProgress = false;\n });\n };\n}","import { INVOKE, HISTORY } from '../constants';\nexport function patchHistory(callback) {\n if (!window.history) {\n return;\n }\n\n var nativePushState = history.pushState;\n\n if (typeof nativePushState === 'function') {\n history.pushState = function (state, title, url) {\n var task = {\n source: HISTORY,\n data: {\n state: state,\n title: title,\n url: url\n }\n };\n callback(INVOKE, task);\n nativePushState.apply(this, arguments);\n };\n }\n}","import { checkSameOrigin, isDtHeaderValid, parseDtHeaderValue, getDtHeaderValue, getTSHeaderValue, stripQueryStringFromUrl, setRequestHeader } from '../common/utils';\nimport { Url } from '../common/url';\nimport { patchEventHandler } from '../common/patching';\nimport { globalState } from '../common/patching/patch-utils';\nimport { SCHEDULE, INVOKE, TRANSACTION_END, AFTER_EVENT, FETCH, HISTORY, XMLHTTPREQUEST, EVENT_TARGET, HTTP_REQUEST_TYPE, USER_INTERACTION, OUTCOME_FAILURE, OUTCOME_SUCCESS } from '../common/constants';\nimport { truncateModel, SPAN_MODEL, TRANSACTION_MODEL } from '../common/truncate';\nimport { __DEV__ } from '../state';\nvar SIMILAR_SPAN_TO_TRANSACTION_RATIO = 0.05;\nvar TRANSACTION_DURATION_THRESHOLD = 60000;\nexport function groupSmallContinuouslySimilarSpans(originalSpans, transDuration, threshold) {\n originalSpans.sort(function (spanA, spanB) {\n return spanA._start - spanB._start;\n });\n var spans = [];\n var lastCount = 1;\n originalSpans.forEach(function (span, index) {\n if (spans.length === 0) {\n spans.push(span);\n } else {\n var lastSpan = spans[spans.length - 1];\n var isContinuouslySimilar = lastSpan.type === span.type && lastSpan.subtype === span.subtype && lastSpan.action === span.action && lastSpan.name === span.name && span.duration() / transDuration < threshold && (span._start - lastSpan._end) / transDuration < threshold;\n var isLastSpan = originalSpans.length === index + 1;\n\n if (isContinuouslySimilar) {\n lastCount++;\n lastSpan._end = span._end;\n }\n\n if (lastCount > 1 && (!isContinuouslySimilar || isLastSpan)) {\n lastSpan.name = lastCount + 'x ' + lastSpan.name;\n lastCount = 1;\n }\n\n if (!isContinuouslySimilar) {\n spans.push(span);\n }\n }\n });\n return spans;\n}\nexport function adjustTransaction(transaction) {\n if (transaction.sampled) {\n var filterdSpans = transaction.spans.filter(function (span) {\n return span.duration() > 0 && span._start >= transaction._start && span._end <= transaction._end;\n });\n\n if (transaction.isManaged()) {\n var duration = transaction.duration();\n var similarSpans = groupSmallContinuouslySimilarSpans(filterdSpans, duration, SIMILAR_SPAN_TO_TRANSACTION_RATIO);\n transaction.spans = similarSpans;\n } else {\n transaction.spans = filterdSpans;\n }\n } else {\n transaction.resetFields();\n }\n\n return transaction;\n}\n\nvar PerformanceMonitoring = function () {\n function PerformanceMonitoring(apmServer, configService, loggingService, transactionService) {\n this._apmServer = apmServer;\n this._configService = configService;\n this._logginService = loggingService;\n this._transactionService = transactionService;\n }\n\n var _proto = PerformanceMonitoring.prototype;\n\n _proto.init = function init(flags) {\n var _this = this;\n\n if (flags === void 0) {\n flags = {};\n }\n\n this._configService.events.observe(TRANSACTION_END + AFTER_EVENT, function (tr) {\n var payload = _this.createTransactionPayload(tr);\n\n if (payload) {\n _this._apmServer.addTransaction(payload);\n }\n });\n\n if (flags[HISTORY]) {\n patchEventHandler.observe(HISTORY, this.getHistorySub());\n }\n\n if (flags[XMLHTTPREQUEST]) {\n patchEventHandler.observe(XMLHTTPREQUEST, this.getXHRSub());\n }\n\n if (flags[FETCH]) {\n patchEventHandler.observe(FETCH, this.getFetchSub());\n }\n\n if (flags[EVENT_TARGET]) {\n patchEventHandler.observe(EVENT_TARGET, this.getEventTargetSub());\n }\n };\n\n _proto.getEventTargetSub = function getEventTargetSub() {\n var transactionService = this._transactionService;\n return function (event, task) {\n if (event === SCHEDULE && task.source === EVENT_TARGET && task.eventType === 'click') {\n var target = task.target;\n var name = target.getAttribute('name');\n var additionalInfo = '';\n\n if (name) {\n additionalInfo = \"[\\\"\" + name + \"\\\"]\";\n }\n\n var tagName = target.tagName.toLowerCase();\n var tr = transactionService.startTransaction(\"Click - \" + tagName + additionalInfo, USER_INTERACTION, {\n managed: true,\n canReuse: true,\n reuseThreshold: 100\n });\n\n if (tr) {\n var classes = target.getAttribute('class');\n\n if (classes) {\n tr.addContext({\n custom: {\n classes: classes\n }\n });\n }\n }\n }\n };\n };\n\n _proto.getHistorySub = function getHistorySub() {\n var transactionService = this._transactionService;\n return function (event, task) {\n if (task.source === HISTORY && event === INVOKE) {\n transactionService.startTransaction(task.data.title, 'route-change', {\n managed: true,\n canReuse: true\n });\n }\n };\n };\n\n _proto.getXHRSub = function getXHRSub() {\n var _this2 = this;\n\n return function (event, task) {\n if (task.source === XMLHTTPREQUEST && !globalState.fetchInProgress) {\n _this2.processAPICalls(event, task);\n }\n };\n };\n\n _proto.getFetchSub = function getFetchSub() {\n var _this3 = this;\n\n return function (event, task) {\n if (task.source === FETCH) {\n _this3.processAPICalls(event, task);\n }\n };\n };\n\n _proto.processAPICalls = function processAPICalls(event, task) {\n var configService = this._configService;\n var transactionService = this._transactionService;\n\n if (event === SCHEDULE && task.data) {\n var data = task.data;\n var requestUrl = new Url(data.url);\n var spanName = data.method + ' ' + (requestUrl.relative ? requestUrl.path : stripQueryStringFromUrl(requestUrl.href));\n\n if (!transactionService.getCurrentTransaction()) {\n transactionService.startTransaction(spanName, HTTP_REQUEST_TYPE, {\n managed: true\n });\n }\n\n var span = transactionService.startSpan(spanName, 'external.http', {\n blocking: true\n });\n\n if (!span) {\n return;\n }\n\n var isDtEnabled = configService.get('distributedTracing');\n var dtOrigins = configService.get('distributedTracingOrigins');\n var currentUrl = new Url(window.location.href);\n var isSameOrigin = checkSameOrigin(requestUrl.origin, currentUrl.origin) || checkSameOrigin(requestUrl.origin, dtOrigins);\n var target = data.target;\n\n if (isDtEnabled && isSameOrigin && target) {\n this.injectDtHeader(span, target);\n var propagateTracestate = configService.get('propagateTracestate');\n\n if (propagateTracestate) {\n this.injectTSHeader(span, target);\n }\n } else if (__DEV__) {\n this._logginService.debug(\"Could not inject distributed tracing header to the request origin ('\" + requestUrl.origin + \"') from the current origin ('\" + currentUrl.origin + \"')\");\n }\n\n if (data.sync) {\n span.sync = data.sync;\n }\n\n data.span = span;\n } else if (event === INVOKE) {\n var _data = task.data;\n\n if (_data && _data.span) {\n var _span = _data.span,\n response = _data.response,\n _target = _data.target;\n var status;\n\n if (response) {\n status = response.status;\n } else {\n status = _target.status;\n }\n\n var outcome;\n\n if (_data.status != 'abort') {\n if (status >= 400 || status == 0) {\n outcome = OUTCOME_FAILURE;\n } else {\n outcome = OUTCOME_SUCCESS;\n }\n }\n\n _span.outcome = outcome;\n var tr = transactionService.getCurrentTransaction();\n\n if (tr && tr.type === HTTP_REQUEST_TYPE) {\n tr.outcome = outcome;\n }\n\n transactionService.endSpan(_span, _data);\n }\n }\n };\n\n _proto.injectDtHeader = function injectDtHeader(span, target) {\n var headerName = this._configService.get('distributedTracingHeaderName');\n\n var headerValue = getDtHeaderValue(span);\n var isHeaderValid = isDtHeaderValid(headerValue);\n\n if (isHeaderValid && headerValue && headerName) {\n setRequestHeader(target, headerName, headerValue);\n }\n };\n\n _proto.injectTSHeader = function injectTSHeader(span, target) {\n var headerValue = getTSHeaderValue(span);\n\n if (headerValue) {\n setRequestHeader(target, 'tracestate', headerValue);\n }\n };\n\n _proto.extractDtHeader = function extractDtHeader(target) {\n var configService = this._configService;\n var headerName = configService.get('distributedTracingHeaderName');\n\n if (target) {\n return parseDtHeaderValue(target[headerName]);\n }\n };\n\n _proto.filterTransaction = function filterTransaction(tr) {\n var duration = tr.duration();\n\n if (!duration) {\n if (__DEV__) {\n var message = \"transaction(\" + tr.id + \", \" + tr.name + \") was discarded! \";\n\n if (duration === 0) {\n message += \"Transaction duration is 0\";\n } else {\n message += \"Transaction wasn't ended\";\n }\n\n this._logginService.debug(message);\n }\n\n return false;\n }\n\n if (tr.isManaged()) {\n if (duration > TRANSACTION_DURATION_THRESHOLD) {\n if (__DEV__) {\n this._logginService.debug(\"transaction(\" + tr.id + \", \" + tr.name + \") was discarded! Transaction duration (\" + duration + \") is greater than managed transaction threshold (\" + TRANSACTION_DURATION_THRESHOLD + \")\");\n }\n\n return false;\n }\n\n if (tr.sampled && tr.spans.length === 0) {\n if (__DEV__) {\n this._logginService.debug(\"transaction(\" + tr.id + \", \" + tr.name + \") was discarded! Transaction does not have any spans\");\n }\n\n return false;\n }\n }\n\n return true;\n };\n\n _proto.createTransactionDataModel = function createTransactionDataModel(transaction) {\n var transactionStart = transaction._start;\n var spans = transaction.spans.map(function (span) {\n var spanData = {\n id: span.id,\n transaction_id: transaction.id,\n parent_id: span.parentId || transaction.id,\n trace_id: transaction.traceId,\n name: span.name,\n type: span.type,\n subtype: span.subtype,\n action: span.action,\n sync: span.sync,\n start: parseInt(span._start - transactionStart),\n duration: span.duration(),\n context: span.context,\n outcome: span.outcome,\n sample_rate: span.sampleRate\n };\n return truncateModel(SPAN_MODEL, spanData);\n });\n var transactionData = {\n id: transaction.id,\n trace_id: transaction.traceId,\n name: transaction.name,\n type: transaction.type,\n duration: transaction.duration(),\n spans: spans,\n context: transaction.context,\n marks: transaction.marks,\n breakdown: transaction.breakdownTimings,\n span_count: {\n started: spans.length\n },\n sampled: transaction.sampled,\n sample_rate: transaction.sampleRate,\n experience: transaction.experience,\n outcome: transaction.outcome\n };\n return truncateModel(TRANSACTION_MODEL, transactionData);\n };\n\n _proto.createTransactionPayload = function createTransactionPayload(transaction) {\n var adjustedTransaction = adjustTransaction(transaction);\n var filtered = this.filterTransaction(adjustedTransaction);\n\n if (filtered) {\n return this.createTransactionDataModel(transaction);\n }\n };\n\n return PerformanceMonitoring;\n}();\n\nexport { PerformanceMonitoring as default };","import { getDuration, PERF } from '../common/utils';\nimport { PAGE_LOAD, TRUNCATED_TYPE } from '../common/constants';\nvar pageLoadBreakdowns = [['domainLookupStart', 'domainLookupEnd', 'DNS'], ['connectStart', 'connectEnd', 'TCP'], ['requestStart', 'responseStart', 'Request'], ['responseStart', 'responseEnd', 'Response'], ['domLoading', 'domComplete', 'Processing'], ['loadEventStart', 'loadEventEnd', 'Load']];\n\nfunction getValue(value) {\n return {\n value: value\n };\n}\n\nfunction calculateSelfTime(transaction) {\n var spans = transaction.spans,\n _start = transaction._start,\n _end = transaction._end;\n\n if (spans.length === 0) {\n return transaction.duration();\n }\n\n spans.sort(function (span1, span2) {\n return span1._start - span2._start;\n });\n var span = spans[0];\n var spanEnd = span._end;\n var spanStart = span._start;\n var lastContinuousEnd = spanEnd;\n var selfTime = spanStart - _start;\n\n for (var i = 1; i < spans.length; i++) {\n span = spans[i];\n spanStart = span._start;\n spanEnd = span._end;\n\n if (spanStart > lastContinuousEnd) {\n selfTime += spanStart - lastContinuousEnd;\n lastContinuousEnd = spanEnd;\n } else if (spanEnd > lastContinuousEnd) {\n lastContinuousEnd = spanEnd;\n }\n }\n\n if (lastContinuousEnd < _end) {\n selfTime += _end - lastContinuousEnd;\n }\n\n return selfTime;\n}\n\nfunction groupSpans(transaction) {\n var spanMap = {};\n var transactionSelfTime = calculateSelfTime(transaction);\n spanMap['app'] = {\n count: 1,\n duration: transactionSelfTime\n };\n var spans = transaction.spans;\n\n for (var i = 0; i < spans.length; i++) {\n var span = spans[i];\n var duration = span.duration();\n\n if (duration === 0 || duration == null) {\n continue;\n }\n\n var type = span.type,\n subtype = span.subtype;\n var key = type.replace(TRUNCATED_TYPE, '');\n\n if (subtype) {\n key += '.' + subtype;\n }\n\n if (!spanMap[key]) {\n spanMap[key] = {\n duration: 0,\n count: 0\n };\n }\n\n spanMap[key].count++;\n spanMap[key].duration += duration;\n }\n\n return spanMap;\n}\n\nfunction getSpanBreakdown(transactionDetails, _ref) {\n var details = _ref.details,\n _ref$count = _ref.count,\n count = _ref$count === void 0 ? 1 : _ref$count,\n duration = _ref.duration;\n return {\n transaction: transactionDetails,\n span: details,\n samples: {\n 'span.self_time.count': getValue(count),\n 'span.self_time.sum.us': getValue(duration)\n }\n };\n}\n\nexport function captureBreakdown(transaction, timings) {\n if (timings === void 0) {\n timings = PERF.timing;\n }\n\n var breakdowns = [];\n var trDuration = transaction.duration();\n var name = transaction.name,\n type = transaction.type,\n sampled = transaction.sampled;\n var transactionDetails = {\n name: name,\n type: type\n };\n breakdowns.push({\n transaction: transactionDetails,\n samples: {\n 'transaction.duration.count': getValue(1),\n 'transaction.duration.sum.us': getValue(trDuration),\n 'transaction.breakdown.count': getValue(sampled ? 1 : 0)\n }\n });\n\n if (!sampled) {\n return breakdowns;\n }\n\n if (type === PAGE_LOAD && timings) {\n for (var i = 0; i < pageLoadBreakdowns.length; i++) {\n var current = pageLoadBreakdowns[i];\n var start = timings[current[0]];\n var end = timings[current[1]];\n var duration = getDuration(start, end);\n\n if (duration === 0 || duration == null) {\n continue;\n }\n\n breakdowns.push(getSpanBreakdown(transactionDetails, {\n details: {\n type: current[2]\n },\n duration: duration\n }));\n }\n } else {\n var spanMap = groupSpans(transaction);\n Object.keys(spanMap).forEach(function (key) {\n var _key$split = key.split('.'),\n type = _key$split[0],\n subtype = _key$split[1];\n\n var _spanMap$key = spanMap[key],\n duration = _spanMap$key.duration,\n count = _spanMap$key.count;\n breakdowns.push(getSpanBreakdown(transactionDetails, {\n details: {\n type: type,\n subtype: subtype\n },\n duration: duration,\n count: count\n }));\n });\n }\n\n return breakdowns;\n}","function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport Span from './span';\nimport SpanBase from './span-base';\nimport { generateRandomId, merge, now, getTime, extend, removeInvalidChars } from '../common/utils';\nimport { REUSABILITY_THRESHOLD, TRUNCATED_TYPE } from '../common/constants';\nimport { captureBreakdown as _captureBreakdown } from './breakdown';\n\nvar Transaction = function (_SpanBase) {\n _inheritsLoose(Transaction, _SpanBase);\n\n function Transaction(name, type, options) {\n var _this;\n\n _this = _SpanBase.call(this, name, type, options) || this;\n _this.traceId = generateRandomId();\n _this.marks = undefined;\n _this.spans = [];\n _this._activeSpans = {};\n _this._activeTasks = new Set();\n _this.blocked = false;\n _this.captureTimings = false;\n _this.breakdownTimings = [];\n _this.sampleRate = _this.options.transactionSampleRate;\n _this.sampled = Math.random() <= _this.sampleRate;\n return _this;\n }\n\n var _proto = Transaction.prototype;\n\n _proto.addMarks = function addMarks(obj) {\n this.marks = merge(this.marks || {}, obj);\n };\n\n _proto.mark = function mark(key) {\n var skey = removeInvalidChars(key);\n\n var markTime = now() - this._start;\n\n var custom = {};\n custom[skey] = markTime;\n this.addMarks({\n custom: custom\n });\n };\n\n _proto.canReuse = function canReuse() {\n var threshold = this.options.reuseThreshold || REUSABILITY_THRESHOLD;\n return !!this.options.canReuse && !this.ended && now() - this._start < threshold;\n };\n\n _proto.redefine = function redefine(name, type, options) {\n if (name) {\n this.name = name;\n }\n\n if (type) {\n this.type = type;\n }\n\n if (options) {\n extend(this.options, options);\n }\n };\n\n _proto.startSpan = function startSpan(name, type, options) {\n var _this2 = this;\n\n if (this.ended) {\n return;\n }\n\n var opts = extend({}, options);\n\n opts.onEnd = function (trc) {\n _this2._onSpanEnd(trc);\n };\n\n opts.traceId = this.traceId;\n opts.sampled = this.sampled;\n opts.sampleRate = this.sampleRate;\n\n if (!opts.parentId) {\n opts.parentId = this.id;\n }\n\n var span = new Span(name, type, opts);\n this._activeSpans[span.id] = span;\n\n if (opts.blocking) {\n this.addTask(span.id);\n }\n\n return span;\n };\n\n _proto.isFinished = function isFinished() {\n return !this.blocked && this._activeTasks.size === 0;\n };\n\n _proto.detectFinish = function detectFinish() {\n if (this.isFinished()) this.end();\n };\n\n _proto.end = function end(endTime) {\n if (this.ended) {\n return;\n }\n\n this.ended = true;\n this._end = getTime(endTime);\n\n for (var sid in this._activeSpans) {\n var span = this._activeSpans[sid];\n span.type = span.type + TRUNCATED_TYPE;\n span.end(endTime);\n }\n\n this.callOnEnd();\n };\n\n _proto.captureBreakdown = function captureBreakdown() {\n this.breakdownTimings = _captureBreakdown(this);\n };\n\n _proto.block = function block(flag) {\n this.blocked = flag;\n\n if (!this.blocked) {\n this.detectFinish();\n }\n };\n\n _proto.addTask = function addTask(taskId) {\n if (!taskId) {\n taskId = 'task-' + generateRandomId(16);\n }\n\n this._activeTasks.add(taskId);\n\n return taskId;\n };\n\n _proto.removeTask = function removeTask(taskId) {\n var deleted = this._activeTasks.delete(taskId);\n\n deleted && this.detectFinish();\n };\n\n _proto.resetFields = function resetFields() {\n this.spans = [];\n this.sampleRate = 0;\n };\n\n _proto._onSpanEnd = function _onSpanEnd(span) {\n this.spans.push(span);\n delete this._activeSpans[span.id];\n this.removeTask(span.id);\n };\n\n _proto.isManaged = function isManaged() {\n return !!this.options.managed;\n };\n\n return Transaction;\n}(SpanBase);\n\nexport default Transaction;","import { LONG_TASK, LARGEST_CONTENTFUL_PAINT, FIRST_CONTENTFUL_PAINT, FIRST_INPUT, LAYOUT_SHIFT } from '../common/constants';\nimport { noop, PERF } from '../common/utils';\nimport Span from './span';\nexport var metrics = {\n fid: 0,\n fcp: 0,\n tbt: {\n start: Infinity,\n duration: 0\n },\n cls: 0,\n longtask: {\n count: 0,\n duration: 0,\n max: 0\n }\n};\nvar LONG_TASK_THRESHOLD = 50;\nexport function createLongTaskSpans(longtasks, agg) {\n var spans = [];\n\n for (var i = 0; i < longtasks.length; i++) {\n var _longtasks$i = longtasks[i],\n name = _longtasks$i.name,\n startTime = _longtasks$i.startTime,\n duration = _longtasks$i.duration,\n attribution = _longtasks$i.attribution;\n var end = startTime + duration;\n var span = new Span(\"Longtask(\" + name + \")\", LONG_TASK, {\n startTime: startTime\n });\n agg.count++;\n agg.duration += duration;\n\n if (duration > agg.max) {\n agg.max = duration;\n }\n\n if (attribution.length > 0) {\n var _attribution$ = attribution[0],\n _name = _attribution$.name,\n containerType = _attribution$.containerType,\n containerName = _attribution$.containerName,\n containerId = _attribution$.containerId;\n var customContext = {\n attribution: _name,\n type: containerType\n };\n\n if (containerName) {\n customContext.name = containerName;\n }\n\n if (containerId) {\n customContext.id = containerId;\n }\n\n span.addContext({\n custom: customContext\n });\n }\n\n span.end(end);\n spans.push(span);\n }\n\n return spans;\n}\nexport function createFirstInputDelaySpan(fidEntries) {\n var firstInput = fidEntries[0];\n\n if (firstInput) {\n var startTime = firstInput.startTime,\n processingStart = firstInput.processingStart;\n var span = new Span('First Input Delay', FIRST_INPUT, {\n startTime: startTime\n });\n span.end(processingStart);\n return span;\n }\n}\nexport function createTotalBlockingTimeSpan(tbtObject) {\n var start = tbtObject.start,\n duration = tbtObject.duration;\n var tbtSpan = new Span('Total Blocking Time', LONG_TASK, {\n startTime: start\n });\n tbtSpan.end(start + duration);\n return tbtSpan;\n}\nexport function calculateTotalBlockingTime(longtaskEntries) {\n longtaskEntries.forEach(function (entry) {\n var name = entry.name,\n startTime = entry.startTime,\n duration = entry.duration;\n\n if (startTime < metrics.fcp) {\n return;\n }\n\n if (name !== 'self' && name.indexOf('same-origin') === -1) {\n return;\n }\n\n metrics.tbt.start = Math.min(metrics.tbt.start, startTime);\n var blockingTime = duration - LONG_TASK_THRESHOLD;\n\n if (blockingTime > 0) {\n metrics.tbt.duration += blockingTime;\n }\n });\n}\nexport function calculateCumulativeLayoutShift(clsEntries) {\n clsEntries.forEach(function (entry) {\n if (!entry.hadRecentInput) {\n metrics.cls += entry.value;\n }\n });\n}\nexport function captureObserverEntries(list, _ref) {\n var capturePaint = _ref.capturePaint;\n var longtaskEntries = list.getEntriesByType(LONG_TASK);\n var longTaskSpans = createLongTaskSpans(longtaskEntries, metrics.longtask);\n var result = {\n spans: longTaskSpans,\n marks: {}\n };\n\n if (!capturePaint) {\n return result;\n }\n\n var lcpEntries = list.getEntriesByType(LARGEST_CONTENTFUL_PAINT);\n var lastLcpEntry = lcpEntries[lcpEntries.length - 1];\n\n if (lastLcpEntry) {\n var lcp = parseInt(lastLcpEntry.startTime);\n metrics.lcp = lcp;\n result.marks.largestContentfulPaint = lcp;\n }\n\n var timing = PERF.timing;\n var unloadDiff = timing.fetchStart - timing.navigationStart;\n var fcpEntry = list.getEntriesByName(FIRST_CONTENTFUL_PAINT)[0];\n\n if (fcpEntry) {\n var fcp = parseInt(unloadDiff >= 0 ? fcpEntry.startTime - unloadDiff : fcpEntry.startTime);\n metrics.fcp = fcp;\n result.marks.firstContentfulPaint = fcp;\n }\n\n var fidEntries = list.getEntriesByType(FIRST_INPUT);\n var fidSpan = createFirstInputDelaySpan(fidEntries);\n\n if (fidSpan) {\n metrics.fid = fidSpan.duration();\n result.spans.push(fidSpan);\n }\n\n calculateTotalBlockingTime(longtaskEntries);\n var clsEntries = list.getEntriesByType(LAYOUT_SHIFT);\n calculateCumulativeLayoutShift(clsEntries);\n return result;\n}\nexport var PerfEntryRecorder = function () {\n function PerfEntryRecorder(callback) {\n this.po = {\n observe: noop,\n disconnect: noop\n };\n\n if (window.PerformanceObserver) {\n this.po = new PerformanceObserver(callback);\n }\n }\n\n var _proto = PerfEntryRecorder.prototype;\n\n _proto.start = function start(type) {\n try {\n var buffered = true;\n\n if (type === LONG_TASK) {\n buffered = false;\n }\n\n this.po.observe({\n type: type,\n buffered: buffered\n });\n } catch (_) {}\n };\n\n _proto.stop = function stop() {\n this.po.disconnect();\n };\n\n return PerfEntryRecorder;\n}();","import { Promise } from '../common/polyfills';\nimport Transaction from './transaction';\nimport { PerfEntryRecorder, captureObserverEntries, metrics, createTotalBlockingTimeSpan } from './metrics';\nimport { extend, getEarliestSpan, getLatestNonXHRSpan, isPerfTypeSupported } from '../common/utils';\nimport { captureNavigation } from './capture-navigation';\nimport { PAGE_LOAD, NAME_UNKNOWN, TRANSACTION_START, TRANSACTION_END, TEMPORARY_TYPE, TRANSACTION_TYPE_ORDER, LARGEST_CONTENTFUL_PAINT, LONG_TASK, PAINT, TRUNCATED_TYPE, FIRST_INPUT, LAYOUT_SHIFT } from '../common/constants';\nimport { addTransactionContext } from '../common/context';\nimport { __DEV__, state } from '../state';\nimport { slugifyUrl } from '../common/url';\n\nvar TransactionService = function () {\n function TransactionService(logger, config) {\n var _this = this;\n\n this._config = config;\n this._logger = logger;\n this.currentTransaction = undefined;\n this.respIntervalId = undefined;\n this.recorder = new PerfEntryRecorder(function (list) {\n var tr = _this.getCurrentTransaction();\n\n if (tr && tr.captureTimings) {\n var _tr$spans;\n\n var capturePaint = false;\n\n if (tr.type === PAGE_LOAD) {\n capturePaint = true;\n }\n\n var _captureObserverEntri = captureObserverEntries(list, {\n capturePaint: capturePaint\n }),\n spans = _captureObserverEntri.spans,\n marks = _captureObserverEntri.marks;\n\n (_tr$spans = tr.spans).push.apply(_tr$spans, spans);\n\n tr.addMarks({\n agent: marks\n });\n }\n });\n }\n\n var _proto = TransactionService.prototype;\n\n _proto.createCurrentTransaction = function createCurrentTransaction(name, type, options) {\n var tr = new Transaction(name, type, options);\n this.currentTransaction = tr;\n return tr;\n };\n\n _proto.getCurrentTransaction = function getCurrentTransaction() {\n if (this.currentTransaction && !this.currentTransaction.ended) {\n return this.currentTransaction;\n }\n };\n\n _proto.createOptions = function createOptions(options) {\n var config = this._config.config;\n var presetOptions = {\n transactionSampleRate: config.transactionSampleRate\n };\n var perfOptions = extend(presetOptions, options);\n\n if (perfOptions.managed) {\n perfOptions = extend({\n pageLoadTraceId: config.pageLoadTraceId,\n pageLoadSampled: config.pageLoadSampled,\n pageLoadSpanId: config.pageLoadSpanId,\n pageLoadTransactionName: config.pageLoadTransactionName\n }, perfOptions);\n }\n\n return perfOptions;\n };\n\n _proto.startManagedTransaction = function startManagedTransaction(name, type, perfOptions) {\n var tr = this.getCurrentTransaction();\n var isRedefined = false;\n\n if (!tr) {\n tr = this.createCurrentTransaction(name, type, perfOptions);\n } else if (tr.canReuse() && perfOptions.canReuse) {\n var redefineType = tr.type;\n var currentTypeOrder = TRANSACTION_TYPE_ORDER.indexOf(tr.type);\n var redefineTypeOrder = TRANSACTION_TYPE_ORDER.indexOf(type);\n\n if (currentTypeOrder >= 0 && redefineTypeOrder < currentTypeOrder) {\n redefineType = type;\n }\n\n if (__DEV__) {\n this._logger.debug(\"redefining transaction(\" + tr.id + \", \" + tr.name + \", \" + tr.type + \")\", 'to', \"(\" + (name || tr.name) + \", \" + redefineType + \")\", tr);\n }\n\n tr.redefine(name, redefineType, perfOptions);\n isRedefined = true;\n } else {\n if (__DEV__) {\n this._logger.debug(\"ending previous transaction(\" + tr.id + \", \" + tr.name + \")\", tr);\n }\n\n tr.end();\n tr = this.createCurrentTransaction(name, type, perfOptions);\n }\n\n if (tr.type === PAGE_LOAD) {\n if (!isRedefined) {\n this.recorder.start(LARGEST_CONTENTFUL_PAINT);\n this.recorder.start(PAINT);\n this.recorder.start(FIRST_INPUT);\n this.recorder.start(LAYOUT_SHIFT);\n }\n\n if (perfOptions.pageLoadTraceId) {\n tr.traceId = perfOptions.pageLoadTraceId;\n }\n\n if (perfOptions.pageLoadSampled) {\n tr.sampled = perfOptions.pageLoadSampled;\n }\n\n if (tr.name === NAME_UNKNOWN && perfOptions.pageLoadTransactionName) {\n tr.name = perfOptions.pageLoadTransactionName;\n }\n }\n\n if (!isRedefined && this._config.get('monitorLongtasks')) {\n this.recorder.start(LONG_TASK);\n }\n\n if (tr.sampled) {\n tr.captureTimings = true;\n }\n\n return tr;\n };\n\n _proto.startTransaction = function startTransaction(name, type, options) {\n var _this2 = this;\n\n var perfOptions = this.createOptions(options);\n var tr;\n var fireOnstartHook = true;\n\n if (perfOptions.managed) {\n var current = this.currentTransaction;\n tr = this.startManagedTransaction(name, type, perfOptions);\n\n if (current === tr) {\n fireOnstartHook = false;\n }\n } else {\n tr = new Transaction(name, type, perfOptions);\n }\n\n tr.onEnd = function () {\n return _this2.handleTransactionEnd(tr);\n };\n\n if (fireOnstartHook) {\n if (__DEV__) {\n this._logger.debug(\"startTransaction(\" + tr.id + \", \" + tr.name + \", \" + tr.type + \")\");\n }\n\n this._config.events.send(TRANSACTION_START, [tr]);\n }\n\n return tr;\n };\n\n _proto.handleTransactionEnd = function handleTransactionEnd(tr) {\n var _this3 = this;\n\n this.recorder.stop();\n var currentUrl = window.location.href;\n return Promise.resolve().then(function () {\n var name = tr.name,\n type = tr.type;\n var lastHiddenStart = state.lastHiddenStart;\n\n if (lastHiddenStart >= tr._start) {\n if (__DEV__) {\n _this3._logger.debug(\"transaction(\" + tr.id + \", \" + name + \", \" + type + \") was discarded! The page was hidden during the transaction!\");\n }\n\n return;\n }\n\n if (_this3.shouldIgnoreTransaction(name) || type === TEMPORARY_TYPE) {\n if (__DEV__) {\n _this3._logger.debug(\"transaction(\" + tr.id + \", \" + name + \", \" + type + \") is ignored\");\n }\n\n return;\n }\n\n if (type === PAGE_LOAD) {\n var pageLoadTransactionName = _this3._config.get('pageLoadTransactionName');\n\n if (name === NAME_UNKNOWN && pageLoadTransactionName) {\n tr.name = pageLoadTransactionName;\n }\n\n if (tr.captureTimings) {\n var cls = metrics.cls,\n fid = metrics.fid,\n tbt = metrics.tbt,\n longtask = metrics.longtask;\n\n if (tbt.duration > 0) {\n tr.spans.push(createTotalBlockingTimeSpan(tbt));\n }\n\n tr.experience = {};\n\n if (isPerfTypeSupported(LONG_TASK)) {\n tr.experience.tbt = tbt.duration;\n }\n\n if (isPerfTypeSupported(LAYOUT_SHIFT)) {\n tr.experience.cls = cls;\n }\n\n if (fid > 0) {\n tr.experience.fid = fid;\n }\n\n if (longtask.count > 0) {\n tr.experience.longtask = {\n count: longtask.count,\n sum: longtask.duration,\n max: longtask.max\n };\n }\n }\n }\n\n if (tr.name === NAME_UNKNOWN) {\n tr.name = slugifyUrl(currentUrl);\n }\n\n captureNavigation(tr);\n\n _this3.adjustTransactionTime(tr);\n\n var breakdownMetrics = _this3._config.get('breakdownMetrics');\n\n if (breakdownMetrics) {\n tr.captureBreakdown();\n }\n\n var configContext = _this3._config.get('context');\n\n addTransactionContext(tr, configContext);\n\n _this3._config.events.send(TRANSACTION_END, [tr]);\n\n if (__DEV__) {\n _this3._logger.debug(\"end transaction(\" + tr.id + \", \" + tr.name + \", \" + tr.type + \")\", tr);\n }\n }, function (err) {\n if (__DEV__) {\n _this3._logger.debug(\"error ending transaction(\" + tr.id + \", \" + tr.name + \")\", err);\n }\n });\n };\n\n _proto.adjustTransactionTime = function adjustTransactionTime(transaction) {\n var spans = transaction.spans;\n var earliestSpan = getEarliestSpan(spans);\n\n if (earliestSpan && earliestSpan._start < transaction._start) {\n transaction._start = earliestSpan._start;\n }\n\n var latestSpan = getLatestNonXHRSpan(spans);\n\n if (latestSpan && latestSpan._end > transaction._end) {\n transaction._end = latestSpan._end;\n }\n\n var transactionEnd = transaction._end;\n\n for (var i = 0; i < spans.length; i++) {\n var span = spans[i];\n\n if (span._end > transactionEnd) {\n span._end = transactionEnd;\n span.type += TRUNCATED_TYPE;\n }\n\n if (span._start > transactionEnd) {\n span._start = transactionEnd;\n }\n }\n };\n\n _proto.shouldIgnoreTransaction = function shouldIgnoreTransaction(transactionName) {\n var ignoreList = this._config.get('ignoreTransactions');\n\n if (ignoreList && ignoreList.length) {\n for (var i = 0; i < ignoreList.length; i++) {\n var element = ignoreList[i];\n\n if (typeof element.test === 'function') {\n if (element.test(transactionName)) {\n return true;\n }\n } else if (element === transactionName) {\n return true;\n }\n }\n }\n\n return false;\n };\n\n _proto.startSpan = function startSpan(name, type, options) {\n var tr = this.getCurrentTransaction();\n\n if (!tr) {\n tr = this.createCurrentTransaction(undefined, TEMPORARY_TYPE, this.createOptions({\n canReuse: true,\n managed: true\n }));\n }\n\n var span = tr.startSpan(name, type, options);\n\n if (__DEV__) {\n this._logger.debug(\"startSpan(\" + name + \", \" + span.type + \")\", \"on transaction(\" + tr.id + \", \" + tr.name + \")\");\n }\n\n return span;\n };\n\n _proto.endSpan = function endSpan(span, context) {\n if (!span) {\n return;\n }\n\n if (__DEV__) {\n var tr = this.getCurrentTransaction();\n tr && this._logger.debug(\"endSpan(\" + span.name + \", \" + span.type + \")\", \"on transaction(\" + tr.id + \", \" + tr.name + \")\");\n }\n\n span.end(null, context);\n };\n\n return TransactionService;\n}();\n\nexport default TransactionService;","import { isPlatformSupported, isBrowser, now } from './common/utils';\nimport { patchAll } from './common/patching';\nimport { state } from './state';\nvar enabled = false;\nexport function bootstrap() {\n if (isPlatformSupported()) {\n patchAll();\n bootstrapPerf();\n state.bootstrapTime = now();\n enabled = true;\n } else if (isBrowser) {\n console.log('[Elastic APM] platform is not supported!');\n }\n\n return enabled;\n}\nexport function bootstrapPerf() {\n if (document.visibilityState === 'hidden') {\n state.lastHiddenStart = 0;\n }\n\n window.addEventListener('visibilitychange', function () {\n if (document.visibilityState === 'hidden') {\n state.lastHiddenStart = performance.now();\n }\n }, {\n capture: true\n });\n}","import { getInstrumentationFlags, PAGE_LOAD, ERROR, CONFIG_SERVICE, LOGGING_SERVICE, APM_SERVER } from '@elastic/apm-rum-core';\n\nvar ApmBase = function () {\n function ApmBase(serviceFactory, disable) {\n this._disable = disable;\n this.serviceFactory = serviceFactory;\n this._initialized = false;\n }\n\n var _proto = ApmBase.prototype;\n\n _proto.isEnabled = function isEnabled() {\n return !this._disable;\n };\n\n _proto.isActive = function isActive() {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n return this.isEnabled() && this._initialized && configService.get('active');\n };\n\n _proto.init = function init(config) {\n var _this = this;\n\n if (this.isEnabled() && !this._initialized) {\n this._initialized = true;\n\n var _this$serviceFactory$ = this.serviceFactory.getService([CONFIG_SERVICE, LOGGING_SERVICE]),\n configService = _this$serviceFactory$[0],\n loggingService = _this$serviceFactory$[1];\n\n configService.setVersion('5.6.3');\n this.config(config);\n var logLevel = configService.get('logLevel');\n loggingService.setLevel(logLevel);\n var isConfigActive = configService.get('active');\n\n if (isConfigActive) {\n this.serviceFactory.init();\n var flags = getInstrumentationFlags(configService.get('instrument'), configService.get('disableInstrumentations'));\n var performanceMonitoring = this.serviceFactory.getService('PerformanceMonitoring');\n performanceMonitoring.init(flags);\n\n if (flags[ERROR]) {\n var errorLogging = this.serviceFactory.getService('ErrorLogging');\n errorLogging.registerListeners();\n }\n\n var sendPageLoad = function sendPageLoad() {\n return flags[PAGE_LOAD] && _this._sendPageLoadMetrics();\n };\n\n if (configService.get('centralConfig')) {\n this.fetchCentralConfig().then(sendPageLoad);\n } else {\n sendPageLoad();\n }\n } else {\n this._disable = true;\n loggingService.warn('RUM agent is inactive');\n }\n }\n\n return this;\n };\n\n _proto.fetchCentralConfig = function fetchCentralConfig() {\n var _this$serviceFactory$2 = this.serviceFactory.getService([APM_SERVER, LOGGING_SERVICE, CONFIG_SERVICE]),\n apmServer = _this$serviceFactory$2[0],\n loggingService = _this$serviceFactory$2[1],\n configService = _this$serviceFactory$2[2];\n\n return apmServer.fetchConfig(configService.get('serviceName'), configService.get('environment')).then(function (config) {\n var transactionSampleRate = config['transaction_sample_rate'];\n\n if (transactionSampleRate) {\n transactionSampleRate = Number(transactionSampleRate);\n var _config2 = {\n transactionSampleRate: transactionSampleRate\n };\n\n var _configService$valida = configService.validate(_config2),\n invalid = _configService$valida.invalid;\n\n if (invalid.length === 0) {\n configService.setConfig(_config2);\n } else {\n var _invalid$ = invalid[0],\n key = _invalid$.key,\n value = _invalid$.value,\n allowed = _invalid$.allowed;\n loggingService.warn(\"invalid value \\\"\" + value + \"\\\" for \" + key + \". Allowed: \" + allowed + \".\");\n }\n }\n\n return config;\n }).catch(function (error) {\n loggingService.warn('failed fetching config:', error);\n });\n };\n\n _proto._sendPageLoadMetrics = function _sendPageLoadMetrics() {\n var tr = this.startTransaction(undefined, PAGE_LOAD, {\n managed: true,\n canReuse: true\n });\n\n if (!tr) {\n return;\n }\n\n tr.addTask(PAGE_LOAD);\n\n var sendPageLoadMetrics = function sendPageLoadMetrics() {\n setTimeout(function () {\n return tr.removeTask(PAGE_LOAD);\n });\n };\n\n if (document.readyState === 'complete') {\n sendPageLoadMetrics();\n } else {\n window.addEventListener('load', sendPageLoadMetrics);\n }\n };\n\n _proto.observe = function observe(name, fn) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.events.observe(name, fn);\n };\n\n _proto.config = function config(_config) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n\n var _configService$valida2 = configService.validate(_config),\n missing = _configService$valida2.missing,\n invalid = _configService$valida2.invalid;\n\n if (missing.length === 0 && invalid.length === 0) {\n configService.setConfig(_config);\n } else {\n var loggingService = this.serviceFactory.getService(LOGGING_SERVICE);\n var separator = ', ';\n var message = \"RUM agent isn't correctly configured. \";\n\n if (missing.length > 0) {\n message += missing.join(separator) + ' is missing';\n\n if (invalid.length > 0) {\n message += separator;\n }\n }\n\n invalid.forEach(function (_ref, index) {\n var key = _ref.key,\n value = _ref.value,\n allowed = _ref.allowed;\n message += key + \" \\\"\" + value + \"\\\" contains invalid characters! (allowed: \" + allowed + \")\" + (index !== invalid.length - 1 ? separator : '');\n });\n loggingService.error(message);\n configService.setConfig({\n active: false\n });\n }\n };\n\n _proto.setUserContext = function setUserContext(userContext) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.setUserContext(userContext);\n };\n\n _proto.setCustomContext = function setCustomContext(customContext) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.setCustomContext(customContext);\n };\n\n _proto.addLabels = function addLabels(labels) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.addLabels(labels);\n };\n\n _proto.setInitialPageLoadName = function setInitialPageLoadName(name) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.setConfig({\n pageLoadTransactionName: name\n });\n };\n\n _proto.startTransaction = function startTransaction(name, type, options) {\n if (this.isEnabled()) {\n var transactionService = this.serviceFactory.getService('TransactionService');\n return transactionService.startTransaction(name, type, options);\n }\n };\n\n _proto.startSpan = function startSpan(name, type, options) {\n if (this.isEnabled()) {\n var transactionService = this.serviceFactory.getService('TransactionService');\n return transactionService.startSpan(name, type, options);\n }\n };\n\n _proto.getCurrentTransaction = function getCurrentTransaction() {\n if (this.isEnabled()) {\n var transactionService = this.serviceFactory.getService('TransactionService');\n return transactionService.getCurrentTransaction();\n }\n };\n\n _proto.captureError = function captureError(error) {\n if (this.isEnabled()) {\n var errorLogging = this.serviceFactory.getService('ErrorLogging');\n return errorLogging.logError(error);\n }\n };\n\n _proto.addFilter = function addFilter(fn) {\n var configService = this.serviceFactory.getService(CONFIG_SERVICE);\n configService.addFilter(fn);\n };\n\n return ApmBase;\n}();\n\nexport { ApmBase as default };","import { XMLHTTPREQUEST, FETCH, HISTORY, PAGE_LOAD, ERROR, EVENT_TARGET } from './constants';\nexport function getInstrumentationFlags(instrument, disabledInstrumentations) {\n var _flags;\n\n var flags = (_flags = {}, _flags[XMLHTTPREQUEST] = false, _flags[FETCH] = false, _flags[HISTORY] = false, _flags[PAGE_LOAD] = false, _flags[ERROR] = false, _flags[EVENT_TARGET] = false, _flags);\n\n if (!instrument) {\n return flags;\n }\n\n Object.keys(flags).forEach(function (key) {\n if (disabledInstrumentations.indexOf(key) === -1) {\n flags[key] = true;\n }\n });\n return flags;\n}","import { createServiceFactory, bootstrap, isBrowser } from '@elastic/apm-rum-core';\nimport ApmBase from './apm-base';\n\nfunction getApmBase() {\n if (isBrowser && window.elasticApm) {\n return window.elasticApm;\n }\n\n var enabled = bootstrap();\n var serviceFactory = createServiceFactory();\n var apmBase = new ApmBase(serviceFactory, !enabled);\n\n if (isBrowser) {\n window.elasticApm = apmBase;\n }\n\n return apmBase;\n}\n\nvar apmBase = getApmBase();\nvar init = apmBase.init.bind(apmBase);\nexport default init;\nexport { init, apmBase, ApmBase, apmBase as apm };","import PerformanceMonitoring from './performance-monitoring';\nimport TransactionService from './transaction-service';\nimport { APM_SERVER, CONFIG_SERVICE, LOGGING_SERVICE } from '../common/constants';\nimport { serviceCreators } from '../common/service-factory';\n\nfunction registerServices() {\n serviceCreators['TransactionService'] = function (serviceFactory) {\n var _serviceFactory$getSe = serviceFactory.getService([LOGGING_SERVICE, CONFIG_SERVICE]),\n loggingService = _serviceFactory$getSe[0],\n configService = _serviceFactory$getSe[1];\n\n return new TransactionService(loggingService, configService);\n };\n\n serviceCreators['PerformanceMonitoring'] = function (serviceFactory) {\n var _serviceFactory$getSe2 = serviceFactory.getService([APM_SERVER, CONFIG_SERVICE, LOGGING_SERVICE, 'TransactionService']),\n apmServer = _serviceFactory$getSe2[0],\n configService = _serviceFactory$getSe2[1],\n loggingService = _serviceFactory$getSe2[2],\n transactionService = _serviceFactory$getSe2[3];\n\n return new PerformanceMonitoring(apmServer, configService, loggingService, transactionService);\n };\n}\n\nexport { registerServices };","import ErrorLogging from './error-logging';\nimport { CONFIG_SERVICE, APM_SERVER } from '../common/constants';\nimport { serviceCreators } from '../common/service-factory';\n\nfunction registerServices() {\n serviceCreators['ErrorLogging'] = function (serviceFactory) {\n var _serviceFactory$getSe = serviceFactory.getService([APM_SERVER, CONFIG_SERVICE, 'TransactionService']),\n apmServer = _serviceFactory$getSe[0],\n configService = _serviceFactory$getSe[1],\n transactionService = _serviceFactory$getSe[2];\n\n return new ErrorLogging(apmServer, configService, transactionService);\n };\n}\n\nexport { registerServices };","import { registerServices as registerErrorServices } from './error-logging';\nimport { registerServices as registerPerfServices } from './performance-monitoring';\nimport { ServiceFactory } from './common/service-factory';\nimport { isPlatformSupported, scheduleMicroTask, scheduleMacroTask, isBrowser } from './common/utils';\nimport { patchAll, patchEventHandler } from './common/patching';\nimport { PAGE_LOAD, ERROR, CONFIG_SERVICE, LOGGING_SERVICE, APM_SERVER } from './common/constants';\nimport { getInstrumentationFlags } from './common/instrument';\nimport afterFrame from './common/after-frame';\nimport { bootstrap } from './bootstrap';\nimport { createTracer } from './opentracing';\n\nfunction createServiceFactory() {\n registerPerfServices();\n registerErrorServices();\n var serviceFactory = new ServiceFactory();\n return serviceFactory;\n}\n\nexport { createServiceFactory, ServiceFactory, patchAll, patchEventHandler, isPlatformSupported, isBrowser, getInstrumentationFlags, createTracer, scheduleMicroTask, scheduleMacroTask, afterFrame, ERROR, PAGE_LOAD, CONFIG_SERVICE, LOGGING_SERVICE, APM_SERVER, bootstrap };","/**\n * MIT License\n *\n * Copyright (c) 2017-present, Elasticsearch BV\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n */\n\nimport { Router, NavigationStart } from '@angular/router';\nimport { Injectable } from '@angular/core';\nimport { afterFrame } from '@elastic/apm-rum-core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ApmService {\n static apm: any;\n\n constructor(public router: Router) {}\n\n init(config) {\n const apmInstance = ApmService.apm.init(config);\n\n if (!apmInstance.isActive()) {\n return apmInstance;\n }\n\n /**\n * Start listening to route change once we\n * intiailize to set the correct transaction names\n */\n this.observe();\n return apmInstance;\n }\n\n observe() {\n let transaction;\n this.router.events.subscribe(event => {\n const eventName = event.toString();\n if (eventName.indexOf('NavigationStart') >= 0) {\n const name = (event as NavigationStart).url;\n transaction = ApmService.apm.startTransaction(name, 'route-change', {\n managed: true,\n canReuse: true\n });\n } else if (eventName.indexOf('NavigationError') >= 0) {\n if (!transaction) {\n return;\n }\n transaction.detectFinish();\n } else if (eventName.indexOf('NavigationEnd') >= 0) {\n if (!transaction) {\n return;\n }\n\n /**\n * The below logic must be placed in NavigationEnd since\n * the we depend on the current route state to get the path\n *\n * Even If there are any redirects, the router state path\n * will be matched with the correct url on navigation end\n *\n * Traverse the activated route tree to figure out the nested\n * route path\n */\n const route = this.router.routerState.root.firstChild;\n\n if (route) {\n let child = route;\n let path = '/' + child.routeConfig.path;\n while (child) {\n child = child.firstChild;\n if (child && child.routeConfig) {\n const currentPath = child.routeConfig.path;\n /**\n * Ignore empty path's in the route config\n */\n if (currentPath) {\n path += '/' + currentPath;\n }\n }\n }\n transaction.name = path;\n }\n\n afterFrame(() => transaction.detectFinish());\n }\n });\n }\n}\n","var RAF_TIMEOUT = 100;\nexport default function afterFrame(callback) {\n var handler = function handler() {\n clearTimeout(timeout);\n cancelAnimationFrame(raf);\n setTimeout(callback);\n };\n\n var timeout = setTimeout(handler, RAF_TIMEOUT);\n var raf = requestAnimationFrame(handler);\n}","/**\n * MIT License\n *\n * Copyright (c) 2017-present, Elasticsearch BV\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n */\n\nimport { ErrorHandler, Injectable } from '@angular/core';\n\n@Injectable()\nexport class ApmErrorHandler extends ErrorHandler {\n static apm: any;\n\n handleError(error) {\n ApmErrorHandler.apm.captureError(error.originalError || error);\n super.handleError(error);\n }\n}\n","/**\n * MIT License\n *\n * Copyright (c) 2017-present, Elasticsearch BV\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n */\n\nimport { apm } from '@elastic/apm-rum';\nimport { ApmService } from './apm-service';\nimport { ApmErrorHandler } from './error-handler';\n\nApmService.apm = apm;\nApmErrorHandler.apm = apm;\n\nexport { ApmService, ApmErrorHandler };\n","import { reduce } from './reduce';\nfunction toArrayReducer(arr, item, index) {\n if (index === 0) {\n return [item];\n }\n arr.push(item);\n return arr;\n}\nexport function toArray() {\n return reduce(toArrayReducer, []);\n}\n","import { Injectable, EventEmitter, Inject, InjectionToken, ChangeDetectorRef, Directive, ElementRef, Input, Pipe, NgModule } from '@angular/core';\nimport { of, concat, merge, Observable } from 'rxjs';\nimport { map, share, switchMap, take, toArray } from 'rxjs/operators';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/**\n * @abstract\n */\nimport * as ɵngcc0 from '@angular/core';\nclass TranslateLoader {\n}\n/**\n * This loader is just a placeholder that does nothing, in case you don't need a loader at all\n */\nclass TranslateFakeLoader extends TranslateLoader {\n /**\n * @param {?} lang\n * @return {?}\n */\n getTranslation(lang) {\n return of({});\n }\n}\nTranslateFakeLoader.ɵfac = /*@__PURE__*/ function () { let ɵTranslateFakeLoader_BaseFactory; return function TranslateFakeLoader_Factory(t) { return (ɵTranslateFakeLoader_BaseFactory || (ɵTranslateFakeLoader_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(TranslateFakeLoader)))(t || TranslateFakeLoader); }; }();\nTranslateFakeLoader.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: TranslateFakeLoader, factory: TranslateFakeLoader.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateFakeLoader, [{\n type: Injectable\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/**\n * @abstract\n */\nclass MissingTranslationHandler {\n}\n/**\n * This handler is just a placeholder that does nothing, in case you don't need a missing translation handler at all\n */\nclass FakeMissingTranslationHandler {\n /**\n * @param {?} params\n * @return {?}\n */\n handle(params) {\n return params.key;\n }\n}\nFakeMissingTranslationHandler.ɵfac = function FakeMissingTranslationHandler_Factory(t) { return new (t || FakeMissingTranslationHandler)(); };\nFakeMissingTranslationHandler.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: FakeMissingTranslationHandler, factory: FakeMissingTranslationHandler.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FakeMissingTranslationHandler, [{\n type: Injectable\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/**\n * @abstract\n */\nclass TranslateCompiler {\n}\n/**\n * This compiler is just a placeholder that does nothing, in case you don't need a compiler at all\n */\nclass TranslateFakeCompiler extends TranslateCompiler {\n /**\n * @param {?} value\n * @param {?} lang\n * @return {?}\n */\n compile(value, lang) {\n return value;\n }\n /**\n * @param {?} translations\n * @param {?} lang\n * @return {?}\n */\n compileTranslations(translations, lang) {\n return translations;\n }\n}\nTranslateFakeCompiler.ɵfac = /*@__PURE__*/ function () { let ɵTranslateFakeCompiler_BaseFactory; return function TranslateFakeCompiler_Factory(t) { return (ɵTranslateFakeCompiler_BaseFactory || (ɵTranslateFakeCompiler_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(TranslateFakeCompiler)))(t || TranslateFakeCompiler); }; }();\nTranslateFakeCompiler.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: TranslateFakeCompiler, factory: TranslateFakeCompiler.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateFakeCompiler, [{\n type: Injectable\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/* tslint:disable */\n/**\n * Determines if two objects or two values are equivalent.\n *\n * Two objects or values are considered equivalent if at least one of the following is true:\n *\n * * Both objects or values pass `===` comparison.\n * * Both objects or values are of the same type and all of their properties are equal by\n * comparing them with `equals`.\n *\n * @param {?} o1 Object or value to compare.\n * @param {?} o2 Object or value to compare.\n * @return {?} true if arguments are equal.\n */\nfunction equals(o1, o2) {\n if (o1 === o2)\n return true;\n if (o1 === null || o2 === null)\n return false;\n if (o1 !== o1 && o2 !== o2)\n return true; // NaN === NaN\n // NaN === NaN\n /** @type {?} */\n let t1 = typeof o1;\n /** @type {?} */\n let t2 = typeof o2;\n /** @type {?} */\n let length;\n /** @type {?} */\n let key;\n /** @type {?} */\n let keySet;\n if (t1 == t2 && t1 == 'object') {\n if (Array.isArray(o1)) {\n if (!Array.isArray(o2))\n return false;\n if ((length = o1.length) == o2.length) {\n for (key = 0; key < length; key++) {\n if (!equals(o1[key], o2[key]))\n return false;\n }\n return true;\n }\n }\n else {\n if (Array.isArray(o2)) {\n return false;\n }\n keySet = Object.create(null);\n for (key in o1) {\n if (!equals(o1[key], o2[key])) {\n return false;\n }\n keySet[key] = true;\n }\n for (key in o2) {\n if (!(key in keySet) && typeof o2[key] !== 'undefined') {\n return false;\n }\n }\n return true;\n }\n }\n return false;\n}\n/* tslint:enable */\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isDefined(value) {\n return typeof value !== 'undefined' && value !== null;\n}\n/**\n * @param {?} item\n * @return {?}\n */\nfunction isObject(item) {\n return (item && typeof item === 'object' && !Array.isArray(item));\n}\n/**\n * @param {?} target\n * @param {?} source\n * @return {?}\n */\nfunction mergeDeep(target, source) {\n /** @type {?} */\n let output = Object.assign({}, target);\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach((key) => {\n if (isObject(source[key])) {\n if (!(key in target)) {\n Object.assign(output, { [key]: source[key] });\n }\n else {\n output[key] = mergeDeep(target[key], source[key]);\n }\n }\n else {\n Object.assign(output, { [key]: source[key] });\n }\n });\n }\n return output;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/**\n * @abstract\n */\nclass TranslateParser {\n}\nclass TranslateDefaultParser extends TranslateParser {\n constructor() {\n super(...arguments);\n this.templateMatcher = /{{\\s?([^{}\\s]*)\\s?}}/g;\n }\n /**\n * @param {?} expr\n * @param {?=} params\n * @return {?}\n */\n interpolate(expr, params) {\n /** @type {?} */\n let result;\n if (typeof expr === 'string') {\n result = this.interpolateString(expr, params);\n }\n else if (typeof expr === 'function') {\n result = this.interpolateFunction(expr, params);\n }\n else {\n // this should not happen, but an unrelated TranslateService test depends on it\n result = (/** @type {?} */ (expr));\n }\n return result;\n }\n /**\n * @param {?} target\n * @param {?} key\n * @return {?}\n */\n getValue(target, key) {\n /** @type {?} */\n let keys = key.split('.');\n key = '';\n do {\n key += keys.shift();\n if (isDefined(target) && isDefined(target[key]) && (typeof target[key] === 'object' || !keys.length)) {\n target = target[key];\n key = '';\n }\n else if (!keys.length) {\n target = undefined;\n }\n else {\n key += '.';\n }\n } while (keys.length);\n return target;\n }\n /**\n * @param {?} fn\n * @param {?=} params\n * @return {?}\n */\n interpolateFunction(fn, params) {\n return fn(params);\n }\n /**\n * @param {?} expr\n * @param {?=} params\n * @return {?}\n */\n interpolateString(expr, params) {\n if (!params) {\n return expr;\n }\n return expr.replace(this.templateMatcher, (substring, b) => {\n /** @type {?} */\n let r = this.getValue(params, b);\n return isDefined(r) ? r : substring;\n });\n }\n}\nTranslateDefaultParser.ɵfac = /*@__PURE__*/ function () { let ɵTranslateDefaultParser_BaseFactory; return function TranslateDefaultParser_Factory(t) { return (ɵTranslateDefaultParser_BaseFactory || (ɵTranslateDefaultParser_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(TranslateDefaultParser)))(t || TranslateDefaultParser); }; }();\nTranslateDefaultParser.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: TranslateDefaultParser, factory: TranslateDefaultParser.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateDefaultParser, [{\n type: Injectable\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\nclass TranslateStore {\n constructor() {\n /**\n * The lang currently used\n */\n this.currentLang = this.defaultLang;\n /**\n * a list of translations per lang\n */\n this.translations = {};\n /**\n * an array of langs\n */\n this.langs = [];\n /**\n * An EventEmitter to listen to translation change events\n * onTranslationChange.subscribe((params: TranslationChangeEvent) => {\n * // do something\n * });\n */\n this.onTranslationChange = new EventEmitter();\n /**\n * An EventEmitter to listen to lang change events\n * onLangChange.subscribe((params: LangChangeEvent) => {\n * // do something\n * });\n */\n this.onLangChange = new EventEmitter();\n /**\n * An EventEmitter to listen to default lang change events\n * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {\n * // do something\n * });\n */\n this.onDefaultLangChange = new EventEmitter();\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n/** @type {?} */\nconst USE_STORE = new InjectionToken('USE_STORE');\n/** @type {?} */\nconst USE_DEFAULT_LANG = new InjectionToken('USE_DEFAULT_LANG');\nclass TranslateService {\n /**\n *\n * @param {?} store an instance of the store (that is supposed to be unique)\n * @param {?} currentLoader An instance of the loader currently used\n * @param {?} compiler An instance of the compiler currently used\n * @param {?} parser An instance of the parser currently used\n * @param {?} missingTranslationHandler A handler for missing translations.\n * @param {?=} useDefaultLang whether we should use default language translation when current language translation is missing.\n * @param {?=} isolate whether this service should use the store or not\n */\n constructor(store, currentLoader, compiler, parser, missingTranslationHandler, useDefaultLang = true, isolate = false) {\n this.store = store;\n this.currentLoader = currentLoader;\n this.compiler = compiler;\n this.parser = parser;\n this.missingTranslationHandler = missingTranslationHandler;\n this.useDefaultLang = useDefaultLang;\n this.isolate = isolate;\n this.pending = false;\n this._onTranslationChange = new EventEmitter();\n this._onLangChange = new EventEmitter();\n this._onDefaultLangChange = new EventEmitter();\n this._langs = [];\n this._translations = {};\n this._translationRequests = {};\n }\n /**\n * An EventEmitter to listen to translation change events\n * onTranslationChange.subscribe((params: TranslationChangeEvent) => {\n * // do something\n * });\n * @return {?}\n */\n get onTranslationChange() {\n return this.isolate ? this._onTranslationChange : this.store.onTranslationChange;\n }\n /**\n * An EventEmitter to listen to lang change events\n * onLangChange.subscribe((params: LangChangeEvent) => {\n * // do something\n * });\n * @return {?}\n */\n get onLangChange() {\n return this.isolate ? this._onLangChange : this.store.onLangChange;\n }\n /**\n * An EventEmitter to listen to default lang change events\n * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {\n * // do something\n * });\n * @return {?}\n */\n get onDefaultLangChange() {\n return this.isolate ? this._onDefaultLangChange : this.store.onDefaultLangChange;\n }\n /**\n * The default lang to fallback when translations are missing on the current lang\n * @return {?}\n */\n get defaultLang() {\n return this.isolate ? this._defaultLang : this.store.defaultLang;\n }\n /**\n * @param {?} defaultLang\n * @return {?}\n */\n set defaultLang(defaultLang) {\n if (this.isolate) {\n this._defaultLang = defaultLang;\n }\n else {\n this.store.defaultLang = defaultLang;\n }\n }\n /**\n * The lang currently used\n * @return {?}\n */\n get currentLang() {\n return this.isolate ? this._currentLang : this.store.currentLang;\n }\n /**\n * @param {?} currentLang\n * @return {?}\n */\n set currentLang(currentLang) {\n if (this.isolate) {\n this._currentLang = currentLang;\n }\n else {\n this.store.currentLang = currentLang;\n }\n }\n /**\n * an array of langs\n * @return {?}\n */\n get langs() {\n return this.isolate ? this._langs : this.store.langs;\n }\n /**\n * @param {?} langs\n * @return {?}\n */\n set langs(langs) {\n if (this.isolate) {\n this._langs = langs;\n }\n else {\n this.store.langs = langs;\n }\n }\n /**\n * a list of translations per lang\n * @return {?}\n */\n get translations() {\n return this.isolate ? this._translations : this.store.translations;\n }\n /**\n * @param {?} translations\n * @return {?}\n */\n set translations(translations) {\n if (this.isolate) {\n this._translations = translations;\n }\n else {\n this.store.translations = translations;\n }\n }\n /**\n * Sets the default language to use as a fallback\n * @param {?} lang\n * @return {?}\n */\n setDefaultLang(lang) {\n if (lang === this.defaultLang) {\n return;\n }\n /** @type {?} */\n let pending = this.retrieveTranslations(lang);\n if (typeof pending !== \"undefined\") {\n // on init set the defaultLang immediately\n if (!this.defaultLang) {\n this.defaultLang = lang;\n }\n pending.pipe(take(1))\n .subscribe((res) => {\n this.changeDefaultLang(lang);\n });\n }\n else { // we already have this language\n this.changeDefaultLang(lang);\n }\n }\n /**\n * Gets the default language used\n * @return {?}\n */\n getDefaultLang() {\n return this.defaultLang;\n }\n /**\n * Changes the lang currently used\n * @param {?} lang\n * @return {?}\n */\n use(lang) {\n // don't change the language if the language given is already selected\n if (lang === this.currentLang) {\n return of(this.translations[lang]);\n }\n /** @type {?} */\n let pending = this.retrieveTranslations(lang);\n if (typeof pending !== \"undefined\") {\n // on init set the currentLang immediately\n if (!this.currentLang) {\n this.currentLang = lang;\n }\n pending.pipe(take(1))\n .subscribe((res) => {\n this.changeLang(lang);\n });\n return pending;\n }\n else { // we have this language, return an Observable\n this.changeLang(lang);\n return of(this.translations[lang]);\n }\n }\n /**\n * Retrieves the given translations\n * @param {?} lang\n * @return {?}\n */\n retrieveTranslations(lang) {\n /** @type {?} */\n let pending;\n // if this language is unavailable, ask for it\n if (typeof this.translations[lang] === \"undefined\") {\n this._translationRequests[lang] = this._translationRequests[lang] || this.getTranslation(lang);\n pending = this._translationRequests[lang];\n }\n return pending;\n }\n /**\n * Gets an object of translations for a given language with the current loader\n * and passes it through the compiler\n * @param {?} lang\n * @return {?}\n */\n getTranslation(lang) {\n this.pending = true;\n /** @type {?} */\n const loadingTranslations = this.currentLoader.getTranslation(lang).pipe(share());\n this.loadingTranslations = loadingTranslations.pipe(take(1), map((res) => this.compiler.compileTranslations(res, lang)), share());\n this.loadingTranslations\n .subscribe((res) => {\n this.translations[lang] = res;\n this.updateLangs();\n this.pending = false;\n }, (err) => {\n this.pending = false;\n });\n return loadingTranslations;\n }\n /**\n * Manually sets an object of translations for a given language\n * after passing it through the compiler\n * @param {?} lang\n * @param {?} translations\n * @param {?=} shouldMerge\n * @return {?}\n */\n setTranslation(lang, translations, shouldMerge = false) {\n translations = this.compiler.compileTranslations(translations, lang);\n if (shouldMerge && this.translations[lang]) {\n this.translations[lang] = mergeDeep(this.translations[lang], translations);\n }\n else {\n this.translations[lang] = translations;\n }\n this.updateLangs();\n this.onTranslationChange.emit({ lang: lang, translations: this.translations[lang] });\n }\n /**\n * Returns an array of currently available langs\n * @return {?}\n */\n getLangs() {\n return this.langs;\n }\n /**\n * Add available langs\n * @param {?} langs\n * @return {?}\n */\n addLangs(langs) {\n langs.forEach((lang) => {\n if (this.langs.indexOf(lang) === -1) {\n this.langs.push(lang);\n }\n });\n }\n /**\n * Update the list of available langs\n * @return {?}\n */\n updateLangs() {\n this.addLangs(Object.keys(this.translations));\n }\n /**\n * Returns the parsed result of the translations\n * @param {?} translations\n * @param {?} key\n * @param {?=} interpolateParams\n * @return {?}\n */\n getParsedResult(translations, key, interpolateParams) {\n /** @type {?} */\n let res;\n if (key instanceof Array) {\n /** @type {?} */\n let result = {};\n /** @type {?} */\n let observables = false;\n for (let k of key) {\n result[k] = this.getParsedResult(translations, k, interpolateParams);\n if (typeof result[k].subscribe === \"function\") {\n observables = true;\n }\n }\n if (observables) {\n /** @type {?} */\n let mergedObs;\n for (let k of key) {\n /** @type {?} */\n let obs = typeof result[k].subscribe === \"function\" ? result[k] : of((/** @type {?} */ (result[k])));\n if (typeof mergedObs === \"undefined\") {\n mergedObs = obs;\n }\n else {\n mergedObs = merge(mergedObs, obs);\n }\n }\n return mergedObs.pipe(toArray(), map((arr) => {\n /** @type {?} */\n let obj = {};\n arr.forEach((value, index) => {\n obj[key[index]] = value;\n });\n return obj;\n }));\n }\n return result;\n }\n if (translations) {\n res = this.parser.interpolate(this.parser.getValue(translations, key), interpolateParams);\n }\n if (typeof res === \"undefined\" && this.defaultLang && this.defaultLang !== this.currentLang && this.useDefaultLang) {\n res = this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang], key), interpolateParams);\n }\n if (typeof res === \"undefined\") {\n /** @type {?} */\n let params = { key, translateService: this };\n if (typeof interpolateParams !== 'undefined') {\n params.interpolateParams = interpolateParams;\n }\n res = this.missingTranslationHandler.handle(params);\n }\n return typeof res !== \"undefined\" ? res : key;\n }\n /**\n * Gets the translated value of a key (or an array of keys)\n * @param {?} key\n * @param {?=} interpolateParams\n * @return {?} the translated key, or an object of translated keys\n */\n get(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n // check if we are loading a new translation to use\n if (this.pending) {\n return Observable.create((observer) => {\n /** @type {?} */\n let onComplete = (res) => {\n observer.next(res);\n observer.complete();\n };\n /** @type {?} */\n let onError = (err) => {\n observer.error(err);\n };\n this.loadingTranslations.subscribe((res) => {\n res = this.getParsedResult(res, key, interpolateParams);\n if (typeof res.subscribe === \"function\") {\n res.subscribe(onComplete, onError);\n }\n else {\n onComplete(res);\n }\n }, onError);\n });\n }\n else {\n /** @type {?} */\n let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);\n if (typeof res.subscribe === \"function\") {\n return res;\n }\n else {\n return of(res);\n }\n }\n }\n /**\n * Returns a stream of translated values of a key (or an array of keys) which updates\n * whenever the language changes.\n * @param {?} key\n * @param {?=} interpolateParams\n * @return {?} A stream of the translated key, or an object of translated keys\n */\n stream(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n return concat(this.get(key, interpolateParams), this.onLangChange.pipe(switchMap((event) => {\n /** @type {?} */\n const res = this.getParsedResult(event.translations, key, interpolateParams);\n if (typeof res.subscribe === \"function\") {\n return res;\n }\n else {\n return of(res);\n }\n })));\n }\n /**\n * Returns a translation instantly from the internal state of loaded translation.\n * All rules regarding the current language, the preferred language of even fallback languages will be used except any promise handling.\n * @param {?} key\n * @param {?=} interpolateParams\n * @return {?}\n */\n instant(key, interpolateParams) {\n if (!isDefined(key) || !key.length) {\n throw new Error(`Parameter \"key\" required`);\n }\n /** @type {?} */\n let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);\n if (typeof res.subscribe !== \"undefined\") {\n if (key instanceof Array) {\n /** @type {?} */\n let obj = {};\n key.forEach((value, index) => {\n obj[key[index]] = key[index];\n });\n return obj;\n }\n return key;\n }\n else {\n return res;\n }\n }\n /**\n * Sets the translated value of a key, after compiling it\n * @param {?} key\n * @param {?} value\n * @param {?=} lang\n * @return {?}\n */\n set(key, value, lang = this.currentLang) {\n this.translations[lang][key] = this.compiler.compile(value, lang);\n this.updateLangs();\n this.onTranslationChange.emit({ lang: lang, translations: this.translations[lang] });\n }\n /**\n * Changes the current lang\n * @param {?} lang\n * @return {?}\n */\n changeLang(lang) {\n this.currentLang = lang;\n this.onLangChange.emit({ lang: lang, translations: this.translations[lang] });\n // if there is no default lang, use the one that we just set\n if (!this.defaultLang) {\n this.changeDefaultLang(lang);\n }\n }\n /**\n * Changes the default lang\n * @param {?} lang\n * @return {?}\n */\n changeDefaultLang(lang) {\n this.defaultLang = lang;\n this.onDefaultLangChange.emit({ lang: lang, translations: this.translations[lang] });\n }\n /**\n * Allows to reload the lang file from the file\n * @param {?} lang\n * @return {?}\n */\n reloadLang(lang) {\n this.resetLang(lang);\n return this.getTranslation(lang);\n }\n /**\n * Deletes inner translation\n * @param {?} lang\n * @return {?}\n */\n resetLang(lang) {\n this._translationRequests[lang] = undefined;\n this.translations[lang] = undefined;\n }\n /**\n * Returns the language code name from the browser, e.g. \"de\"\n * @return {?}\n */\n getBrowserLang() {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined;\n }\n /** @type {?} */\n let browserLang = window.navigator.languages ? window.navigator.languages[0] : null;\n browserLang = browserLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;\n if (browserLang.indexOf('-') !== -1) {\n browserLang = browserLang.split('-')[0];\n }\n if (browserLang.indexOf('_') !== -1) {\n browserLang = browserLang.split('_')[0];\n }\n return browserLang;\n }\n /**\n * Returns the culture language code name from the browser, e.g. \"de-DE\"\n * @return {?}\n */\n getBrowserCultureLang() {\n if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {\n return undefined;\n }\n /** @type {?} */\n let browserCultureLang = window.navigator.languages ? window.navigator.languages[0] : null;\n browserCultureLang = browserCultureLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;\n return browserCultureLang;\n }\n}\nTranslateService.ɵfac = function TranslateService_Factory(t) { return new (t || TranslateService)(ɵngcc0.ɵɵinject(TranslateStore), ɵngcc0.ɵɵinject(TranslateLoader), ɵngcc0.ɵɵinject(TranslateCompiler), ɵngcc0.ɵɵinject(TranslateParser), ɵngcc0.ɵɵinject(MissingTranslationHandler), ɵngcc0.ɵɵinject(USE_DEFAULT_LANG), ɵngcc0.ɵɵinject(USE_STORE)); };\nTranslateService.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: TranslateService, factory: TranslateService.ɵfac });\n/** @nocollapse */\nTranslateService.ctorParameters = () => [\n { type: TranslateStore },\n { type: TranslateLoader },\n { type: TranslateCompiler },\n { type: TranslateParser },\n { type: MissingTranslationHandler },\n { type: Boolean, decorators: [{ type: Inject, args: [USE_DEFAULT_LANG,] }] },\n { type: Boolean, decorators: [{ type: Inject, args: [USE_STORE,] }] }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateService, [{\n type: Injectable\n }], function () { return [{ type: TranslateStore }, { type: TranslateLoader }, { type: TranslateCompiler }, { type: TranslateParser }, { type: MissingTranslationHandler }, { type: Boolean, decorators: [{\n type: Inject,\n args: [USE_DEFAULT_LANG]\n }] }, { type: Boolean, decorators: [{\n type: Inject,\n args: [USE_STORE]\n }] }]; }, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\nclass TranslateDirective {\n /**\n * @param {?} translateService\n * @param {?} element\n * @param {?} _ref\n */\n constructor(translateService, element, _ref) {\n this.translateService = translateService;\n this.element = element;\n this._ref = _ref;\n // subscribe to onTranslationChange event, in case the translations of the current lang change\n if (!this.onTranslationChangeSub) {\n this.onTranslationChangeSub = this.translateService.onTranslationChange.subscribe((event) => {\n if (event.lang === this.translateService.currentLang) {\n this.checkNodes(true, event.translations);\n }\n });\n }\n // subscribe to onLangChange event, in case the language changes\n if (!this.onLangChangeSub) {\n this.onLangChangeSub = this.translateService.onLangChange.subscribe((event) => {\n this.checkNodes(true, event.translations);\n });\n }\n // subscribe to onDefaultLangChange event, in case the default language changes\n if (!this.onDefaultLangChangeSub) {\n this.onDefaultLangChangeSub = this.translateService.onDefaultLangChange.subscribe((event) => {\n this.checkNodes(true);\n });\n }\n }\n /**\n * @param {?} key\n * @return {?}\n */\n set translate(key) {\n if (key) {\n this.key = key;\n this.checkNodes();\n }\n }\n /**\n * @param {?} params\n * @return {?}\n */\n set translateParams(params) {\n if (!equals(this.currentParams, params)) {\n this.currentParams = params;\n this.checkNodes(true);\n }\n }\n /**\n * @return {?}\n */\n ngAfterViewChecked() {\n this.checkNodes();\n }\n /**\n * @param {?=} forceUpdate\n * @param {?=} translations\n * @return {?}\n */\n checkNodes(forceUpdate = false, translations) {\n /** @type {?} */\n let nodes = this.element.nativeElement.childNodes;\n // if the element is empty\n if (!nodes.length) {\n // we add the key as content\n this.setContent(this.element.nativeElement, this.key);\n nodes = this.element.nativeElement.childNodes;\n }\n for (let i = 0; i < nodes.length; ++i) {\n /** @type {?} */\n let node = nodes[i];\n if (node.nodeType === 3) { // node type 3 is a text node\n // node type 3 is a text node\n /** @type {?} */\n let key;\n if (this.key) {\n key = this.key;\n if (forceUpdate) {\n node.lastKey = null;\n }\n }\n else {\n /** @type {?} */\n let content = this.getContent(node);\n /** @type {?} */\n let trimmedContent = content.trim();\n if (trimmedContent.length) {\n // we want to use the content as a key, not the translation value\n if (content !== node.currentValue) {\n key = trimmedContent;\n // the content was changed from the user, we'll use it as a reference if needed\n node.originalContent = this.getContent(node);\n }\n else if (node.originalContent && forceUpdate) { // the content seems ok, but the lang has changed\n node.lastKey = null;\n // the current content is the translation, not the key, use the last real content as key\n key = node.originalContent.trim();\n }\n }\n }\n this.updateValue(key, node, translations);\n }\n }\n }\n /**\n * @param {?} key\n * @param {?} node\n * @param {?} translations\n * @return {?}\n */\n updateValue(key, node, translations) {\n if (key) {\n if (node.lastKey === key && this.lastParams === this.currentParams) {\n return;\n }\n this.lastParams = this.currentParams;\n /** @type {?} */\n let onTranslation = (res) => {\n if (res !== key) {\n node.lastKey = key;\n }\n if (!node.originalContent) {\n node.originalContent = this.getContent(node);\n }\n node.currentValue = isDefined(res) ? res : (node.originalContent || key);\n // we replace in the original content to preserve spaces that we might have trimmed\n this.setContent(node, this.key ? node.currentValue : node.originalContent.replace(key, node.currentValue));\n this._ref.markForCheck();\n };\n if (isDefined(translations)) {\n /** @type {?} */\n let res = this.translateService.getParsedResult(translations, key, this.currentParams);\n if (typeof res.subscribe === \"function\") {\n res.subscribe(onTranslation);\n }\n else {\n onTranslation(res);\n }\n }\n else {\n this.translateService.get(key, this.currentParams).subscribe(onTranslation);\n }\n }\n }\n /**\n * @param {?} node\n * @return {?}\n */\n getContent(node) {\n return isDefined(node.textContent) ? node.textContent : node.data;\n }\n /**\n * @param {?} node\n * @param {?} content\n * @return {?}\n */\n setContent(node, content) {\n if (isDefined(node.textContent)) {\n node.textContent = content;\n }\n else {\n node.data = content;\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n if (this.onLangChangeSub) {\n this.onLangChangeSub.unsubscribe();\n }\n if (this.onDefaultLangChangeSub) {\n this.onDefaultLangChangeSub.unsubscribe();\n }\n if (this.onTranslationChangeSub) {\n this.onTranslationChangeSub.unsubscribe();\n }\n }\n}\nTranslateDirective.ɵfac = function TranslateDirective_Factory(t) { return new (t || TranslateDirective)(ɵngcc0.ɵɵdirectiveInject(TranslateService), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef)); };\nTranslateDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: TranslateDirective, selectors: [[\"\", \"translate\", \"\"], [\"\", \"ngx-translate\", \"\"]], inputs: { translate: \"translate\", translateParams: \"translateParams\" } });\n/** @nocollapse */\nTranslateDirective.ctorParameters = () => [\n { type: TranslateService },\n { type: ElementRef },\n { type: ChangeDetectorRef }\n];\nTranslateDirective.propDecorators = {\n translate: [{ type: Input }],\n translateParams: [{ type: Input }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateDirective, [{\n type: Directive,\n args: [{\n selector: '[translate],[ngx-translate]'\n }]\n }], function () { return [{ type: TranslateService }, { type: ɵngcc0.ElementRef }, { type: ɵngcc0.ChangeDetectorRef }]; }, { translate: [{\n type: Input\n }], translateParams: [{\n type: Input\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\nclass TranslatePipe {\n /**\n * @param {?} translate\n * @param {?} _ref\n */\n constructor(translate, _ref) {\n this.translate = translate;\n this._ref = _ref;\n this.value = '';\n }\n /**\n * @param {?} key\n * @param {?=} interpolateParams\n * @param {?=} translations\n * @return {?}\n */\n updateValue(key, interpolateParams, translations) {\n /** @type {?} */\n let onTranslation = (res) => {\n this.value = res !== undefined ? res : key;\n this.lastKey = key;\n this._ref.markForCheck();\n };\n if (translations) {\n /** @type {?} */\n let res = this.translate.getParsedResult(translations, key, interpolateParams);\n if (typeof res.subscribe === 'function') {\n res.subscribe(onTranslation);\n }\n else {\n onTranslation(res);\n }\n }\n this.translate.get(key, interpolateParams).subscribe(onTranslation);\n }\n /**\n * @param {?} query\n * @param {...?} args\n * @return {?}\n */\n transform(query, ...args) {\n if (!query || query.length === 0) {\n return query;\n }\n // if we ask another time for the same key, return the last value\n if (equals(query, this.lastKey) && equals(args, this.lastParams)) {\n return this.value;\n }\n /** @type {?} */\n let interpolateParams;\n if (isDefined(args[0]) && args.length) {\n if (typeof args[0] === 'string' && args[0].length) {\n // we accept objects written in the template such as {n:1}, {'n':1}, {n:'v'}\n // which is why we might need to change it to real JSON objects such as {\"n\":1} or {\"n\":\"v\"}\n /** @type {?} */\n let validArgs = args[0]\n .replace(/(\\')?([a-zA-Z0-9_]+)(\\')?(\\s)?:/g, '\"$2\":')\n .replace(/:(\\s)?(\\')(.*?)(\\')/g, ':\"$3\"');\n try {\n interpolateParams = JSON.parse(validArgs);\n }\n catch (e) {\n throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${args[0]}`);\n }\n }\n else if (typeof args[0] === 'object' && !Array.isArray(args[0])) {\n interpolateParams = args[0];\n }\n }\n // store the query, in case it changes\n this.lastKey = query;\n // store the params, in case they change\n this.lastParams = args;\n // set the value\n this.updateValue(query, interpolateParams);\n // if there is a subscription to onLangChange, clean it\n this._dispose();\n // subscribe to onTranslationChange event, in case the translations change\n if (!this.onTranslationChange) {\n this.onTranslationChange = this.translate.onTranslationChange.subscribe((event) => {\n if (this.lastKey && event.lang === this.translate.currentLang) {\n this.lastKey = null;\n this.updateValue(query, interpolateParams, event.translations);\n }\n });\n }\n // subscribe to onLangChange event, in case the language changes\n if (!this.onLangChange) {\n this.onLangChange = this.translate.onLangChange.subscribe((event) => {\n if (this.lastKey) {\n this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated\n this.updateValue(query, interpolateParams, event.translations);\n }\n });\n }\n // subscribe to onDefaultLangChange event, in case the default language changes\n if (!this.onDefaultLangChange) {\n this.onDefaultLangChange = this.translate.onDefaultLangChange.subscribe(() => {\n if (this.lastKey) {\n this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated\n this.updateValue(query, interpolateParams);\n }\n });\n }\n return this.value;\n }\n /**\n * Clean any existing subscription to change events\n * @return {?}\n */\n _dispose() {\n if (typeof this.onTranslationChange !== 'undefined') {\n this.onTranslationChange.unsubscribe();\n this.onTranslationChange = undefined;\n }\n if (typeof this.onLangChange !== 'undefined') {\n this.onLangChange.unsubscribe();\n this.onLangChange = undefined;\n }\n if (typeof this.onDefaultLangChange !== 'undefined') {\n this.onDefaultLangChange.unsubscribe();\n this.onDefaultLangChange = undefined;\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this._dispose();\n }\n}\nTranslatePipe.ɵfac = function TranslatePipe_Factory(t) { return new (t || TranslatePipe)(ɵngcc0.ɵɵdirectiveInject(TranslateService, 16), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef, 16)); };\nTranslatePipe.ɵpipe = /*@__PURE__*/ ɵngcc0.ɵɵdefinePipe({ name: \"translate\", type: TranslatePipe, pure: false });\nTranslatePipe.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: TranslatePipe, factory: TranslatePipe.ɵfac });\n/** @nocollapse */\nTranslatePipe.ctorParameters = () => [\n { type: TranslateService },\n { type: ChangeDetectorRef }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslatePipe, [{\n type: Injectable\n }, {\n type: Pipe,\n args: [{\n name: 'translate',\n pure: false // required to update the value when the promise is resolved\n }]\n }], function () { return [{ type: TranslateService }, { type: ɵngcc0.ChangeDetectorRef }]; }, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\nclass TranslateModule {\n /**\n * Use this method in your root module to provide the TranslateService\n * @param {?=} config\n * @return {?}\n */\n static forRoot(config = {}) {\n return {\n ngModule: TranslateModule,\n providers: [\n config.loader || { provide: TranslateLoader, useClass: TranslateFakeLoader },\n config.compiler || { provide: TranslateCompiler, useClass: TranslateFakeCompiler },\n config.parser || { provide: TranslateParser, useClass: TranslateDefaultParser },\n config.missingTranslationHandler || { provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler },\n TranslateStore,\n { provide: USE_STORE, useValue: config.isolate },\n { provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang },\n TranslateService\n ]\n };\n }\n /**\n * Use this method in your other (non root) modules to import the directive/pipe\n * @param {?=} config\n * @return {?}\n */\n static forChild(config = {}) {\n return {\n ngModule: TranslateModule,\n providers: [\n config.loader || { provide: TranslateLoader, useClass: TranslateFakeLoader },\n config.compiler || { provide: TranslateCompiler, useClass: TranslateFakeCompiler },\n config.parser || { provide: TranslateParser, useClass: TranslateDefaultParser },\n config.missingTranslationHandler || { provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler },\n { provide: USE_STORE, useValue: config.isolate },\n { provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang },\n TranslateService\n ]\n };\n }\n}\nTranslateModule.ɵfac = function TranslateModule_Factory(t) { return new (t || TranslateModule)(); };\nTranslateModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: TranslateModule });\nTranslateModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TranslateModule, [{\n type: NgModule,\n args: [{\n declarations: [\n TranslatePipe,\n TranslateDirective\n ],\n exports: [\n TranslatePipe,\n TranslateDirective\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(TranslateModule, { declarations: [TranslatePipe, TranslateDirective], exports: [TranslatePipe, TranslateDirective] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc\n */\n\nexport { TranslateModule, TranslateLoader, TranslateFakeLoader, USE_STORE, USE_DEFAULT_LANG, TranslateService, MissingTranslationHandler, FakeMissingTranslationHandler, TranslateParser, TranslateDefaultParser, TranslateCompiler, TranslateFakeCompiler, TranslateDirective, TranslatePipe, TranslateStore };\n\n","import { scan } from './scan';\nimport { takeLast } from './takeLast';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { pipe } from '../util/pipe';\nexport function reduce(accumulator, seed) {\n if (arguments.length >= 2) {\n return function reduceOperatorFunctionWithSeed(source) {\n return pipe(scan(accumulator, seed), takeLast(1), defaultIfEmpty(seed))(source);\n };\n }\n return function reduceOperatorFunction(source) {\n return pipe(scan((acc, value, index) => accumulator(acc, value, index + 1)), takeLast(1))(source);\n };\n}\n","import { ElementRef } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Coerces a data-bound value (typically a string) to a boolean. */\nfunction coerceBooleanProperty(value) {\n return value != null && `${value}` !== 'false';\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction coerceNumberProperty(value, fallbackValue = 0) {\n return _isNumberValue(value) ? Number(value) : fallbackValue;\n}\n/**\n * Whether the provided value is considered a number.\n * @docs-private\n */\nfunction _isNumberValue(value) {\n // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,\n // and other non-number values as NaN, where Number just uses 0) but it considers the string\n // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.\n return !isNaN(parseFloat(value)) && !isNaN(Number(value));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction coerceArray(value) {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Coerces a value to a CSS pixel value. */\nfunction coerceCssPixelValue(value) {\n if (value == null) {\n return '';\n }\n return typeof value === 'string' ? value : `${value}px`;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Coerces an ElementRef or an Element into an element.\n * Useful for APIs that can accept either a ref or the native element itself.\n */\nfunction coerceElement(elementOrRef) {\n return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Coerces a value to an array of trimmed non-empty strings.\n * Any input that is not an array, `null` or `undefined` will be turned into a string\n * via `toString()` and subsequently split with the given separator.\n * `null` and `undefined` will result in an empty array.\n * This results in the following outcomes:\n * - `null` -> `[]`\n * - `[null]` -> `[\"null\"]`\n * - `[\"a\", \"b \", \" \"]` -> `[\"a\", \"b\"]`\n * - `[1, [2, 3]]` -> `[\"1\", \"2,3\"]`\n * - `[{ a: 0 }]` -> `[\"[object Object]\"]`\n * - `{ a: 0 }` -> `[\"[object\", \"Object]\"]`\n *\n * Useful for defining CSS classes or table columns.\n * @param value the value to coerce into an array of strings\n * @param separator split-separator if value isn't an array\n */\nfunction coerceStringArray(value, separator = /\\s+/) {\n const result = [];\n if (value != null) {\n const sourceValues = Array.isArray(value) ? value : `${value}`.split(separator);\n for (const sourceValue of sourceValues) {\n const trimmedString = `${sourceValue}`.trim();\n if (trimmedString) {\n result.push(trimmedString);\n }\n }\n }\n return result;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport { _isNumberValue, coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceNumberProperty, coerceStringArray };\n","import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';\nexport function audit(durationSelector) {\n return function auditOperatorFunction(source) {\n return source.lift(new AuditOperator(durationSelector));\n };\n}\nclass AuditOperator {\n constructor(durationSelector) {\n this.durationSelector = durationSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));\n }\n}\nclass AuditSubscriber extends SimpleOuterSubscriber {\n constructor(destination, durationSelector) {\n super(destination);\n this.durationSelector = durationSelector;\n this.hasValue = false;\n }\n _next(value) {\n this.value = value;\n this.hasValue = true;\n if (!this.throttled) {\n let duration;\n try {\n const { durationSelector } = this;\n duration = durationSelector(value);\n }\n catch (err) {\n return this.destination.error(err);\n }\n const innerSubscription = innerSubscribe(duration, new SimpleInnerSubscriber(this));\n if (!innerSubscription || innerSubscription.closed) {\n this.clearThrottle();\n }\n else {\n this.add(this.throttled = innerSubscription);\n }\n }\n }\n clearThrottle() {\n const { value, hasValue, throttled } = this;\n if (throttled) {\n this.remove(throttled);\n this.throttled = undefined;\n throttled.unsubscribe();\n }\n if (hasValue) {\n this.value = undefined;\n this.hasValue = false;\n this.destination.next(value);\n }\n }\n notifyNext() {\n this.clearThrottle();\n }\n notifyComplete() {\n this.clearThrottle();\n }\n}\n","import { async } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nexport function auditTime(duration, scheduler = async) {\n return audit(() => timer(duration, scheduler));\n}\n","import * as i0 from '@angular/core';\nimport { PLATFORM_ID, Injectable, Inject, NgModule } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Whether the current platform supports the V8 Break Iterator. The V8 check\n// is necessary to detect all Blink based browsers.\nlet hasV8BreakIterator;\n// We need a try/catch around the reference to `Intl`, because accessing it in some cases can\n// cause IE to throw. These cases are tied to particular versions of Windows and can happen if\n// the consumer is providing a polyfilled `Map`. See:\n// https://github.com/Microsoft/ChakraCore/issues/3189\n// https://github.com/angular/components/issues/15687\ntry {\n hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;\n}\ncatch (_a) {\n hasV8BreakIterator = false;\n}\n/**\n * Service to detect the current platform by comparing the userAgent strings and\n * checking browser-specific global properties.\n */\nclass Platform {\n constructor(_platformId) {\n this._platformId = _platformId;\n // We want to use the Angular platform check because if the Document is shimmed\n // without the navigator, the following checks will fail. This is preferred because\n // sometimes the Document may be shimmed without the user's knowledge or intention\n /** Whether the Angular application is being rendered in the browser. */\n this.isBrowser = this._platformId\n ? isPlatformBrowser(this._platformId)\n : typeof document === 'object' && !!document;\n /** Whether the current browser is Microsoft Edge. */\n this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);\n /** Whether the current rendering engine is Microsoft Trident. */\n this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);\n // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.\n /** Whether the current rendering engine is Blink. */\n this.BLINK = this.isBrowser &&\n !!(window.chrome || hasV8BreakIterator) &&\n typeof CSS !== 'undefined' &&\n !this.EDGE &&\n !this.TRIDENT;\n // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to\n // ensure that Webkit runs standalone and is not used as another engine's base.\n /** Whether the current rendering engine is WebKit. */\n this.WEBKIT = this.isBrowser &&\n /AppleWebKit/i.test(navigator.userAgent) &&\n !this.BLINK &&\n !this.EDGE &&\n !this.TRIDENT;\n /** Whether the current platform is Apple iOS. */\n this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !('MSStream' in window);\n // It's difficult to detect the plain Gecko engine, because most of the browsers identify\n // them self as Gecko-like browsers and modify the userAgent's according to that.\n // Since we only cover one explicit Firefox case, we can simply check for Firefox\n // instead of having an unstable check for Gecko.\n /** Whether the current browser is Firefox. */\n this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);\n /** Whether the current platform is Android. */\n // Trident on mobile adds the android platform to the userAgent to trick detections.\n this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;\n // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake\n // this and just place the Safari keyword in the userAgent. To be more safe about Safari every\n // Safari browser should also use Webkit as its layout engine.\n /** Whether the current browser is Safari. */\n this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;\n }\n}\nPlatform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Platform, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nPlatform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Platform, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Platform, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass PlatformModule {\n}\nPlatformModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PlatformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nPlatformModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PlatformModule });\nPlatformModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PlatformModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PlatformModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Cached result Set of input types support by the current browser. */\nlet supportedInputTypes;\n/** Types of `<input>` that *might* be supported. */\nconst candidateInputTypes = [\n // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after\n // first changing it to something else:\n // The specified value \"\" does not conform to the required format.\n // The format is \"#rrggbb\" where rr, gg, bb are two-digit hexadecimal numbers.\n 'color',\n 'button',\n 'checkbox',\n 'date',\n 'datetime-local',\n 'email',\n 'file',\n 'hidden',\n 'image',\n 'month',\n 'number',\n 'password',\n 'radio',\n 'range',\n 'reset',\n 'search',\n 'submit',\n 'tel',\n 'text',\n 'time',\n 'url',\n 'week',\n];\n/** @returns The input types supported by this browser. */\nfunction getSupportedInputTypes() {\n // Result is cached.\n if (supportedInputTypes) {\n return supportedInputTypes;\n }\n // We can't check if an input type is not supported until we're on the browser, so say that\n // everything is supported when not on the browser. We don't use `Platform` here since it's\n // just a helper function and can't inject it.\n if (typeof document !== 'object' || !document) {\n supportedInputTypes = new Set(candidateInputTypes);\n return supportedInputTypes;\n }\n let featureTestInput = document.createElement('input');\n supportedInputTypes = new Set(candidateInputTypes.filter(value => {\n featureTestInput.setAttribute('type', value);\n return featureTestInput.type === value;\n }));\n return supportedInputTypes;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Cached result of whether the user's browser supports passive event listeners. */\nlet supportsPassiveEvents;\n/**\n * Checks whether the user's browser supports passive event listeners.\n * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n */\nfunction supportsPassiveEventListeners() {\n if (supportsPassiveEvents == null && typeof window !== 'undefined') {\n try {\n window.addEventListener('test', null, Object.defineProperty({}, 'passive', {\n get: () => (supportsPassiveEvents = true),\n }));\n }\n finally {\n supportsPassiveEvents = supportsPassiveEvents || false;\n }\n }\n return supportsPassiveEvents;\n}\n/**\n * Normalizes an `AddEventListener` object to something that can be passed\n * to `addEventListener` on any browser, no matter whether it supports the\n * `options` parameter.\n * @param options Object to be normalized.\n */\nfunction normalizePassiveListenerOptions(options) {\n return supportsPassiveEventListeners() ? options : !!options.capture;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Cached result of the way the browser handles the horizontal scroll axis in RTL mode. */\nlet rtlScrollAxisType;\n/** Cached result of the check that indicates whether the browser supports scroll behaviors. */\nlet scrollBehaviorSupported;\n/** Check whether the browser supports scroll behaviors. */\nfunction supportsScrollBehavior() {\n if (scrollBehaviorSupported == null) {\n // If we're not in the browser, it can't be supported. Also check for `Element`, because\n // some projects stub out the global `document` during SSR which can throw us off.\n if (typeof document !== 'object' || !document || typeof Element !== 'function' || !Element) {\n scrollBehaviorSupported = false;\n return scrollBehaviorSupported;\n }\n // If the element can have a `scrollBehavior` style, we can be sure that it's supported.\n if ('scrollBehavior' in document.documentElement.style) {\n scrollBehaviorSupported = true;\n }\n else {\n // At this point we have 3 possibilities: `scrollTo` isn't supported at all, it's\n // supported but it doesn't handle scroll behavior, or it has been polyfilled.\n const scrollToFunction = Element.prototype.scrollTo;\n if (scrollToFunction) {\n // We can detect if the function has been polyfilled by calling `toString` on it. Native\n // functions are obfuscated using `[native code]`, whereas if it was overwritten we'd get\n // the actual function source. Via https://davidwalsh.name/detect-native-function. Consider\n // polyfilled functions as supporting scroll behavior.\n scrollBehaviorSupported = !/\\{\\s*\\[native code\\]\\s*\\}/.test(scrollToFunction.toString());\n }\n else {\n scrollBehaviorSupported = false;\n }\n }\n }\n return scrollBehaviorSupported;\n}\n/**\n * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,\n * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.\n */\nfunction getRtlScrollAxisType() {\n // We can't check unless we're on the browser. Just assume 'normal' if we're not.\n if (typeof document !== 'object' || !document) {\n return 0 /* NORMAL */;\n }\n if (rtlScrollAxisType == null) {\n // Create a 1px wide scrolling container and a 2px wide content element.\n const scrollContainer = document.createElement('div');\n const containerStyle = scrollContainer.style;\n scrollContainer.dir = 'rtl';\n containerStyle.width = '1px';\n containerStyle.overflow = 'auto';\n containerStyle.visibility = 'hidden';\n containerStyle.pointerEvents = 'none';\n containerStyle.position = 'absolute';\n const content = document.createElement('div');\n const contentStyle = content.style;\n contentStyle.width = '2px';\n contentStyle.height = '1px';\n scrollContainer.appendChild(content);\n document.body.appendChild(scrollContainer);\n rtlScrollAxisType = 0 /* NORMAL */;\n // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL\n // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're\n // dealing with one of the other two types of browsers.\n if (scrollContainer.scrollLeft === 0) {\n // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an\n // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by\n // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will\n // return 0 when we read it again.\n scrollContainer.scrollLeft = 1;\n rtlScrollAxisType =\n scrollContainer.scrollLeft === 0 ? 1 /* NEGATED */ : 2 /* INVERTED */;\n }\n scrollContainer.remove();\n }\n return rtlScrollAxisType;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet shadowDomIsSupported;\n/** Checks whether the user's browser support Shadow DOM. */\nfunction _supportsShadowDom() {\n if (shadowDomIsSupported == null) {\n const head = typeof document !== 'undefined' ? document.head : null;\n shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow));\n }\n return shadowDomIsSupported;\n}\n/** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */\nfunction _getShadowRoot(element) {\n if (_supportsShadowDom()) {\n const rootNode = element.getRootNode ? element.getRootNode() : null;\n // Note that this should be caught by `_supportsShadowDom`, but some\n // teams have been able to hit this code path on unsupported browsers.\n if (typeof ShadowRoot !== 'undefined' && ShadowRoot && rootNode instanceof ShadowRoot) {\n return rootNode;\n }\n }\n return null;\n}\n/**\n * Gets the currently-focused element on the page while\n * also piercing through Shadow DOM boundaries.\n */\nfunction _getFocusedElementPierceShadowDom() {\n let activeElement = typeof document !== 'undefined' && document\n ? document.activeElement\n : null;\n while (activeElement && activeElement.shadowRoot) {\n const newActiveElement = activeElement.shadowRoot.activeElement;\n if (newActiveElement === activeElement) {\n break;\n }\n else {\n activeElement = newActiveElement;\n }\n }\n return activeElement;\n}\n/** Gets the target of an event while accounting for Shadow DOM. */\nfunction _getEventTarget(event) {\n // If an event is bound outside the Shadow DOM, the `event.target` will\n // point to the shadow root so we have to use `composedPath` instead.\n return (event.composedPath ? event.composedPath()[0] : event.target);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Gets whether the code is currently running in a test environment. */\nfunction _isTestEnvironment() {\n // We can't use `declare const` because it causes conflicts inside Google with the real typings\n // for these symbols and we can't read them off the global object, because they don't appear to\n // be attached there for some runners like Jest.\n // (see: https://github.com/angular/components/issues/23365#issuecomment-938146643)\n return (\n // @ts-ignore\n (typeof __karma__ !== 'undefined' && !!__karma__) ||\n // @ts-ignore\n (typeof jasmine !== 'undefined' && !!jasmine) ||\n // @ts-ignore\n (typeof jest !== 'undefined' && !!jest) ||\n // @ts-ignore\n (typeof Mocha !== 'undefined' && !!Mocha));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Platform, PlatformModule, _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _isTestEnvironment, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, inject, EventEmitter, Injectable, Optional, Inject, Directive, Output, Input, NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token used to inject the document into Directionality.\n * This is used so that the value can be faked in tests.\n *\n * We can't use the real document in tests because changing the real `dir` causes geometry-based\n * tests in Safari to fail.\n *\n * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests\n * themselves use things like `querySelector` in test code.\n *\n * This token is defined in a separate file from Directionality as a workaround for\n * https://github.com/angular/angular/issues/22559\n *\n * @docs-private\n */\nconst DIR_DOCUMENT = new InjectionToken('cdk-dir-doc', {\n providedIn: 'root',\n factory: DIR_DOCUMENT_FACTORY,\n});\n/** @docs-private */\nfunction DIR_DOCUMENT_FACTORY() {\n return inject(DOCUMENT);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Regex that matches locales with an RTL script. Taken from `goog.i18n.bidi.isRtlLanguage`. */\nconst RTL_LOCALE_PATTERN = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;\n/** Resolves a string value to a specific direction. */\nfunction _resolveDirectionality(rawValue) {\n const value = (rawValue === null || rawValue === void 0 ? void 0 : rawValue.toLowerCase()) || '';\n if (value === 'auto' && typeof navigator !== 'undefined' && (navigator === null || navigator === void 0 ? void 0 : navigator.language)) {\n return RTL_LOCALE_PATTERN.test(navigator.language) ? 'rtl' : 'ltr';\n }\n return value === 'rtl' ? 'rtl' : 'ltr';\n}\n/**\n * The directionality (LTR / RTL) context for the application (or a subtree of it).\n * Exposes the current direction and a stream of direction changes.\n */\nclass Directionality {\n constructor(_document) {\n /** The current 'ltr' or 'rtl' value. */\n this.value = 'ltr';\n /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */\n this.change = new EventEmitter();\n if (_document) {\n const bodyDir = _document.body ? _document.body.dir : null;\n const htmlDir = _document.documentElement ? _document.documentElement.dir : null;\n this.value = _resolveDirectionality(bodyDir || htmlDir || 'ltr');\n }\n }\n ngOnDestroy() {\n this.change.complete();\n }\n}\nDirectionality.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Directionality, deps: [{ token: DIR_DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nDirectionality.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Directionality, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Directionality, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DIR_DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Directive to listen for changes of direction of part of the DOM.\n *\n * Provides itself as Directionality such that descendant directives only need to ever inject\n * Directionality to get the closest direction.\n */\nclass Dir {\n constructor() {\n /** Normalized direction that accounts for invalid/unsupported values. */\n this._dir = 'ltr';\n /** Whether the `value` has been set to its initial value. */\n this._isInitialized = false;\n /** Event emitted when the direction changes. */\n this.change = new EventEmitter();\n }\n /** @docs-private */\n get dir() {\n return this._dir;\n }\n set dir(value) {\n const previousValue = this._dir;\n // Note: `_resolveDirectionality` resolves the language based on the browser's language,\n // whereas the browser does it based on the content of the element. Since doing so based\n // on the content can be expensive, for now we're doing the simpler matching.\n this._dir = _resolveDirectionality(value);\n this._rawDir = value;\n if (previousValue !== this._dir && this._isInitialized) {\n this.change.emit(this._dir);\n }\n }\n /** Current layout direction of the element. */\n get value() {\n return this.dir;\n }\n /** Initialize once default value has been set. */\n ngAfterContentInit() {\n this._isInitialized = true;\n }\n ngOnDestroy() {\n this.change.complete();\n }\n}\nDir.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Dir, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: Dir, selector: \"[dir]\", inputs: { dir: \"dir\" }, outputs: { change: \"dirChange\" }, host: { properties: { \"attr.dir\": \"_rawDir\" } }, providers: [{ provide: Directionality, useExisting: Dir }], exportAs: [\"dir\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Dir, decorators: [{\n type: Directive,\n args: [{\n selector: '[dir]',\n providers: [{ provide: Directionality, useExisting: Dir }],\n host: { '[attr.dir]': '_rawDir' },\n exportAs: 'dir',\n }]\n }], propDecorators: { change: [{\n type: Output,\n args: ['dirChange']\n }], dir: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass BidiModule {\n}\nBidiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BidiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBidiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BidiModule, declarations: [Dir], exports: [Dir] });\nBidiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BidiModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BidiModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [Dir],\n declarations: [Dir],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BidiModule, DIR_DOCUMENT, Dir, Directionality };\n","import { coerceNumberProperty, coerceElement, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, Directive, Input, Injectable, Optional, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChild, SkipSelf, NgModule } from '@angular/core';\nimport { Subject, of, Observable, fromEvent, animationFrameScheduler, asapScheduler, Subscription, isObservable } from 'rxjs';\nimport { distinctUntilChanged, auditTime, filter, takeUntil, startWith, pairwise, switchMap, shareReplay } from 'rxjs/operators';\nimport { DOCUMENT } from '@angular/common';\nimport * as i1 from '@angular/cdk/platform';\nimport { getRtlScrollAxisType, supportsScrollBehavior, PlatformModule } from '@angular/cdk/platform';\nimport * as i2 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport * as i2$1 from '@angular/cdk/collections';\nimport { isDataSource, ArrayDataSource, _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy } from '@angular/cdk/collections';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The injection token used to specify the virtual scrolling strategy. */\nconst VIRTUAL_SCROLL_STRATEGY = new InjectionToken('VIRTUAL_SCROLL_STRATEGY');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Virtual scrolling strategy for lists with items of known fixed size. */\nclass FixedSizeVirtualScrollStrategy {\n /**\n * @param itemSize The size of the items in the virtually scrolling list.\n * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more\n * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.\n */\n constructor(itemSize, minBufferPx, maxBufferPx) {\n this._scrolledIndexChange = new Subject();\n /** @docs-private Implemented as part of VirtualScrollStrategy. */\n this.scrolledIndexChange = this._scrolledIndexChange.pipe(distinctUntilChanged());\n /** The attached viewport. */\n this._viewport = null;\n this._itemSize = itemSize;\n this._minBufferPx = minBufferPx;\n this._maxBufferPx = maxBufferPx;\n }\n /**\n * Attaches this scroll strategy to a viewport.\n * @param viewport The viewport to attach this strategy to.\n */\n attach(viewport) {\n this._viewport = viewport;\n this._updateTotalContentSize();\n this._updateRenderedRange();\n }\n /** Detaches this scroll strategy from the currently attached viewport. */\n detach() {\n this._scrolledIndexChange.complete();\n this._viewport = null;\n }\n /**\n * Update the item size and buffer size.\n * @param itemSize The size of the items in the virtually scrolling list.\n * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more\n * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.\n */\n updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) {\n if (maxBufferPx < minBufferPx && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');\n }\n this._itemSize = itemSize;\n this._minBufferPx = minBufferPx;\n this._maxBufferPx = maxBufferPx;\n this._updateTotalContentSize();\n this._updateRenderedRange();\n }\n /** @docs-private Implemented as part of VirtualScrollStrategy. */\n onContentScrolled() {\n this._updateRenderedRange();\n }\n /** @docs-private Implemented as part of VirtualScrollStrategy. */\n onDataLengthChanged() {\n this._updateTotalContentSize();\n this._updateRenderedRange();\n }\n /** @docs-private Implemented as part of VirtualScrollStrategy. */\n onContentRendered() {\n /* no-op */\n }\n /** @docs-private Implemented as part of VirtualScrollStrategy. */\n onRenderedOffsetChanged() {\n /* no-op */\n }\n /**\n * Scroll to the offset for the given index.\n * @param index The index of the element to scroll to.\n * @param behavior The ScrollBehavior to use when scrolling.\n */\n scrollToIndex(index, behavior) {\n if (this._viewport) {\n this._viewport.scrollToOffset(index * this._itemSize, behavior);\n }\n }\n /** Update the viewport's total content size. */\n _updateTotalContentSize() {\n if (!this._viewport) {\n return;\n }\n this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);\n }\n /** Update the viewport's rendered range. */\n _updateRenderedRange() {\n if (!this._viewport) {\n return;\n }\n const renderedRange = this._viewport.getRenderedRange();\n const newRange = { start: renderedRange.start, end: renderedRange.end };\n const viewportSize = this._viewport.getViewportSize();\n const dataLength = this._viewport.getDataLength();\n let scrollOffset = this._viewport.measureScrollOffset();\n // Prevent NaN as result when dividing by zero.\n let firstVisibleIndex = this._itemSize > 0 ? scrollOffset / this._itemSize : 0;\n // If user scrolls to the bottom of the list and data changes to a smaller list\n if (newRange.end > dataLength) {\n // We have to recalculate the first visible index based on new data length and viewport size.\n const maxVisibleItems = Math.ceil(viewportSize / this._itemSize);\n const newVisibleIndex = Math.max(0, Math.min(firstVisibleIndex, dataLength - maxVisibleItems));\n // If first visible index changed we must update scroll offset to handle start/end buffers\n // Current range must also be adjusted to cover the new position (bottom of new list).\n if (firstVisibleIndex != newVisibleIndex) {\n firstVisibleIndex = newVisibleIndex;\n scrollOffset = newVisibleIndex * this._itemSize;\n newRange.start = Math.floor(firstVisibleIndex);\n }\n newRange.end = Math.max(0, Math.min(dataLength, newRange.start + maxVisibleItems));\n }\n const startBuffer = scrollOffset - newRange.start * this._itemSize;\n if (startBuffer < this._minBufferPx && newRange.start != 0) {\n const expandStart = Math.ceil((this._maxBufferPx - startBuffer) / this._itemSize);\n newRange.start = Math.max(0, newRange.start - expandStart);\n newRange.end = Math.min(dataLength, Math.ceil(firstVisibleIndex + (viewportSize + this._minBufferPx) / this._itemSize));\n }\n else {\n const endBuffer = newRange.end * this._itemSize - (scrollOffset + viewportSize);\n if (endBuffer < this._minBufferPx && newRange.end != dataLength) {\n const expandEnd = Math.ceil((this._maxBufferPx - endBuffer) / this._itemSize);\n if (expandEnd > 0) {\n newRange.end = Math.min(dataLength, newRange.end + expandEnd);\n newRange.start = Math.max(0, Math.floor(firstVisibleIndex - this._minBufferPx / this._itemSize));\n }\n }\n }\n this._viewport.setRenderedRange(newRange);\n this._viewport.setRenderedContentOffset(this._itemSize * newRange.start);\n this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));\n }\n}\n/**\n * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created\n * `FixedSizeVirtualScrollStrategy` from the given directive.\n * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the\n * `FixedSizeVirtualScrollStrategy` from.\n */\nfunction _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {\n return fixedSizeDir._scrollStrategy;\n}\n/** A virtual scroll strategy that supports fixed-size items. */\nclass CdkFixedSizeVirtualScroll {\n constructor() {\n this._itemSize = 20;\n this._minBufferPx = 100;\n this._maxBufferPx = 200;\n /** The scroll strategy used by this directive. */\n this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);\n }\n /** The size of the items in the list (in pixels). */\n get itemSize() {\n return this._itemSize;\n }\n set itemSize(value) {\n this._itemSize = coerceNumberProperty(value);\n }\n /**\n * The minimum amount of buffer rendered beyond the viewport (in pixels).\n * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.\n */\n get minBufferPx() {\n return this._minBufferPx;\n }\n set minBufferPx(value) {\n this._minBufferPx = coerceNumberProperty(value);\n }\n /**\n * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.\n */\n get maxBufferPx() {\n return this._maxBufferPx;\n }\n set maxBufferPx(value) {\n this._maxBufferPx = coerceNumberProperty(value);\n }\n ngOnChanges() {\n this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);\n }\n}\nCdkFixedSizeVirtualScroll.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFixedSizeVirtualScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkFixedSizeVirtualScroll.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkFixedSizeVirtualScroll, selector: \"cdk-virtual-scroll-viewport[itemSize]\", inputs: { itemSize: \"itemSize\", minBufferPx: \"minBufferPx\", maxBufferPx: \"maxBufferPx\" }, providers: [\n {\n provide: VIRTUAL_SCROLL_STRATEGY,\n useFactory: _fixedSizeVirtualScrollStrategyFactory,\n deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],\n },\n ], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFixedSizeVirtualScroll, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-virtual-scroll-viewport[itemSize]',\n providers: [\n {\n provide: VIRTUAL_SCROLL_STRATEGY,\n useFactory: _fixedSizeVirtualScrollStrategyFactory,\n deps: [forwardRef(() => CdkFixedSizeVirtualScroll)],\n },\n ],\n }]\n }], propDecorators: { itemSize: [{\n type: Input\n }], minBufferPx: [{\n type: Input\n }], maxBufferPx: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Time in ms to throttle the scrolling events by default. */\nconst DEFAULT_SCROLL_TIME = 20;\n/**\n * Service contained all registered Scrollable references and emits an event when any one of the\n * Scrollable references emit a scrolled event.\n */\nclass ScrollDispatcher {\n constructor(_ngZone, _platform, document) {\n this._ngZone = _ngZone;\n this._platform = _platform;\n /** Subject for notifying that a registered scrollable reference element has been scrolled. */\n this._scrolled = new Subject();\n /** Keeps track of the global `scroll` and `resize` subscriptions. */\n this._globalSubscription = null;\n /** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */\n this._scrolledCount = 0;\n /**\n * Map of all the scrollable references that are registered with the service and their\n * scroll event subscriptions.\n */\n this.scrollContainers = new Map();\n this._document = document;\n }\n /**\n * Registers a scrollable instance with the service and listens for its scrolled events. When the\n * scrollable is scrolled, the service emits the event to its scrolled observable.\n * @param scrollable Scrollable instance to be registered.\n */\n register(scrollable) {\n if (!this.scrollContainers.has(scrollable)) {\n this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(() => this._scrolled.next(scrollable)));\n }\n }\n /**\n * Deregisters a Scrollable reference and unsubscribes from its scroll event observable.\n * @param scrollable Scrollable instance to be deregistered.\n */\n deregister(scrollable) {\n const scrollableReference = this.scrollContainers.get(scrollable);\n if (scrollableReference) {\n scrollableReference.unsubscribe();\n this.scrollContainers.delete(scrollable);\n }\n }\n /**\n * Returns an observable that emits an event whenever any of the registered Scrollable\n * references (or window, document, or body) fire a scrolled event. Can provide a time in ms\n * to override the default \"throttle\" time.\n *\n * **Note:** in order to avoid hitting change detection for every scroll event,\n * all of the events emitted from this stream will be run outside the Angular zone.\n * If you need to update any data bindings as a result of a scroll event, you have\n * to run the callback using `NgZone.run`.\n */\n scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) {\n if (!this._platform.isBrowser) {\n return of();\n }\n return new Observable((observer) => {\n if (!this._globalSubscription) {\n this._addGlobalListener();\n }\n // In the case of a 0ms delay, use an observable without auditTime\n // since it does add a perceptible delay in processing overhead.\n const subscription = auditTimeInMs > 0\n ? this._scrolled.pipe(auditTime(auditTimeInMs)).subscribe(observer)\n : this._scrolled.subscribe(observer);\n this._scrolledCount++;\n return () => {\n subscription.unsubscribe();\n this._scrolledCount--;\n if (!this._scrolledCount) {\n this._removeGlobalListener();\n }\n };\n });\n }\n ngOnDestroy() {\n this._removeGlobalListener();\n this.scrollContainers.forEach((_, container) => this.deregister(container));\n this._scrolled.complete();\n }\n /**\n * Returns an observable that emits whenever any of the\n * scrollable ancestors of an element are scrolled.\n * @param elementOrElementRef Element whose ancestors to listen for.\n * @param auditTimeInMs Time to throttle the scroll events.\n */\n ancestorScrolled(elementOrElementRef, auditTimeInMs) {\n const ancestors = this.getAncestorScrollContainers(elementOrElementRef);\n return this.scrolled(auditTimeInMs).pipe(filter(target => {\n return !target || ancestors.indexOf(target) > -1;\n }));\n }\n /** Returns all registered Scrollables that contain the provided element. */\n getAncestorScrollContainers(elementOrElementRef) {\n const scrollingContainers = [];\n this.scrollContainers.forEach((_subscription, scrollable) => {\n if (this._scrollableContainsElement(scrollable, elementOrElementRef)) {\n scrollingContainers.push(scrollable);\n }\n });\n return scrollingContainers;\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n _getWindow() {\n return this._document.defaultView || window;\n }\n /** Returns true if the element is contained within the provided Scrollable. */\n _scrollableContainsElement(scrollable, elementOrElementRef) {\n let element = coerceElement(elementOrElementRef);\n let scrollableElement = scrollable.getElementRef().nativeElement;\n // Traverse through the element parents until we reach null, checking if any of the elements\n // are the scrollable's element.\n do {\n if (element == scrollableElement) {\n return true;\n }\n } while ((element = element.parentElement));\n return false;\n }\n /** Sets up the global scroll listeners. */\n _addGlobalListener() {\n this._globalSubscription = this._ngZone.runOutsideAngular(() => {\n const window = this._getWindow();\n return fromEvent(window.document, 'scroll').subscribe(() => this._scrolled.next());\n });\n }\n /** Cleans up the global scroll listener. */\n _removeGlobalListener() {\n if (this._globalSubscription) {\n this._globalSubscription.unsubscribe();\n this._globalSubscription = null;\n }\n }\n}\nScrollDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollDispatcher, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nScrollDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollDispatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * Sends an event when the directive's element is scrolled. Registers itself with the\n * ScrollDispatcher service to include itself as part of its collection of scrolling events that it\n * can be listened to through the service.\n */\nclass CdkScrollable {\n constructor(elementRef, scrollDispatcher, ngZone, dir) {\n this.elementRef = elementRef;\n this.scrollDispatcher = scrollDispatcher;\n this.ngZone = ngZone;\n this.dir = dir;\n this._destroyed = new Subject();\n this._elementScrolled = new Observable((observer) => this.ngZone.runOutsideAngular(() => fromEvent(this.elementRef.nativeElement, 'scroll')\n .pipe(takeUntil(this._destroyed))\n .subscribe(observer)));\n }\n ngOnInit() {\n this.scrollDispatcher.register(this);\n }\n ngOnDestroy() {\n this.scrollDispatcher.deregister(this);\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Returns observable that emits when a scroll event is fired on the host element. */\n elementScrolled() {\n return this._elementScrolled;\n }\n /** Gets the ElementRef for the viewport. */\n getElementRef() {\n return this.elementRef;\n }\n /**\n * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo\n * method, since browsers are not consistent about what scrollLeft means in RTL. For this method\n * left and right always refer to the left and right side of the scrolling container irrespective\n * of the layout direction. start and end refer to left and right in an LTR context and vice-versa\n * in an RTL context.\n * @param options specified the offsets to scroll to.\n */\n scrollTo(options) {\n const el = this.elementRef.nativeElement;\n const isRtl = this.dir && this.dir.value == 'rtl';\n // Rewrite start & end offsets as right or left offsets.\n if (options.left == null) {\n options.left = isRtl ? options.end : options.start;\n }\n if (options.right == null) {\n options.right = isRtl ? options.start : options.end;\n }\n // Rewrite the bottom offset as a top offset.\n if (options.bottom != null) {\n options.top =\n el.scrollHeight - el.clientHeight - options.bottom;\n }\n // Rewrite the right offset as a left offset.\n if (isRtl && getRtlScrollAxisType() != 0 /* NORMAL */) {\n if (options.left != null) {\n options.right =\n el.scrollWidth - el.clientWidth - options.left;\n }\n if (getRtlScrollAxisType() == 2 /* INVERTED */) {\n options.left = options.right;\n }\n else if (getRtlScrollAxisType() == 1 /* NEGATED */) {\n options.left = options.right ? -options.right : options.right;\n }\n }\n else {\n if (options.right != null) {\n options.left =\n el.scrollWidth - el.clientWidth - options.right;\n }\n }\n this._applyScrollToOptions(options);\n }\n _applyScrollToOptions(options) {\n const el = this.elementRef.nativeElement;\n if (supportsScrollBehavior()) {\n el.scrollTo(options);\n }\n else {\n if (options.top != null) {\n el.scrollTop = options.top;\n }\n if (options.left != null) {\n el.scrollLeft = options.left;\n }\n }\n }\n /**\n * Measures the scroll offset relative to the specified edge of the viewport. This method can be\n * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent\n * about what scrollLeft means in RTL. The values returned by this method are normalized such that\n * left and right always refer to the left and right side of the scrolling container irrespective\n * of the layout direction. start and end refer to left and right in an LTR context and vice-versa\n * in an RTL context.\n * @param from The edge to measure from.\n */\n measureScrollOffset(from) {\n const LEFT = 'left';\n const RIGHT = 'right';\n const el = this.elementRef.nativeElement;\n if (from == 'top') {\n return el.scrollTop;\n }\n if (from == 'bottom') {\n return el.scrollHeight - el.clientHeight - el.scrollTop;\n }\n // Rewrite start & end as left or right offsets.\n const isRtl = this.dir && this.dir.value == 'rtl';\n if (from == 'start') {\n from = isRtl ? RIGHT : LEFT;\n }\n else if (from == 'end') {\n from = isRtl ? LEFT : RIGHT;\n }\n if (isRtl && getRtlScrollAxisType() == 2 /* INVERTED */) {\n // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and\n // 0 when scrolled all the way right.\n if (from == LEFT) {\n return el.scrollWidth - el.clientWidth - el.scrollLeft;\n }\n else {\n return el.scrollLeft;\n }\n }\n else if (isRtl && getRtlScrollAxisType() == 1 /* NEGATED */) {\n // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and\n // 0 when scrolled all the way right.\n if (from == LEFT) {\n return el.scrollLeft + el.scrollWidth - el.clientWidth;\n }\n else {\n return -el.scrollLeft;\n }\n }\n else {\n // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and\n // (scrollWidth - clientWidth) when scrolled all the way right.\n if (from == LEFT) {\n return el.scrollLeft;\n }\n else {\n return el.scrollWidth - el.clientWidth - el.scrollLeft;\n }\n }\n }\n}\nCdkScrollable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollable, deps: [{ token: i0.ElementRef }, { token: ScrollDispatcher }, { token: i0.NgZone }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkScrollable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollable, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdk-scrollable], [cdkScrollable]',\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: ScrollDispatcher }, { type: i0.NgZone }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }];\n } });\n\n/** Time in ms to throttle the resize events by default. */\nconst DEFAULT_RESIZE_TIME = 20;\n/**\n * Simple utility for getting the bounds of the browser viewport.\n * @docs-private\n */\nclass ViewportRuler {\n constructor(_platform, ngZone, document) {\n this._platform = _platform;\n /** Stream of viewport change events. */\n this._change = new Subject();\n /** Event listener that will be used to handle the viewport change events. */\n this._changeListener = (event) => {\n this._change.next(event);\n };\n this._document = document;\n ngZone.runOutsideAngular(() => {\n if (_platform.isBrowser) {\n const window = this._getWindow();\n // Note that bind the events ourselves, rather than going through something like RxJS's\n // `fromEvent` so that we can ensure that they're bound outside of the NgZone.\n window.addEventListener('resize', this._changeListener);\n window.addEventListener('orientationchange', this._changeListener);\n }\n // Clear the cached position so that the viewport is re-measured next time it is required.\n // We don't need to keep track of the subscription, because it is completed on destroy.\n this.change().subscribe(() => (this._viewportSize = null));\n });\n }\n ngOnDestroy() {\n if (this._platform.isBrowser) {\n const window = this._getWindow();\n window.removeEventListener('resize', this._changeListener);\n window.removeEventListener('orientationchange', this._changeListener);\n }\n this._change.complete();\n }\n /** Returns the viewport's width and height. */\n getViewportSize() {\n if (!this._viewportSize) {\n this._updateViewportSize();\n }\n const output = { width: this._viewportSize.width, height: this._viewportSize.height };\n // If we're not on a browser, don't cache the size since it'll be mocked out anyway.\n if (!this._platform.isBrowser) {\n this._viewportSize = null;\n }\n return output;\n }\n /** Gets a ClientRect for the viewport's bounds. */\n getViewportRect() {\n // Use the document element's bounding rect rather than the window scroll properties\n // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll\n // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different\n // conceptual viewports. Under most circumstances these viewports are equivalent, but they\n // can disagree when the page is pinch-zoomed (on devices that support touch).\n // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4\n // We use the documentElement instead of the body because, by default (without a css reset)\n // browsers typically give the document body an 8px margin, which is not included in\n // getBoundingClientRect().\n const scrollPosition = this.getViewportScrollPosition();\n const { width, height } = this.getViewportSize();\n return {\n top: scrollPosition.top,\n left: scrollPosition.left,\n bottom: scrollPosition.top + height,\n right: scrollPosition.left + width,\n height,\n width,\n };\n }\n /** Gets the (top, left) scroll position of the viewport. */\n getViewportScrollPosition() {\n // While we can get a reference to the fake document\n // during SSR, it doesn't have getBoundingClientRect.\n if (!this._platform.isBrowser) {\n return { top: 0, left: 0 };\n }\n // The top-left-corner of the viewport is determined by the scroll position of the document\n // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about\n // whether `document.body` or `document.documentElement` is the scrolled element, so reading\n // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of\n // `document.documentElement` works consistently, where the `top` and `left` values will\n // equal negative the scroll position.\n const document = this._document;\n const window = this._getWindow();\n const documentElement = document.documentElement;\n const documentRect = documentElement.getBoundingClientRect();\n const top = -documentRect.top ||\n document.body.scrollTop ||\n window.scrollY ||\n documentElement.scrollTop ||\n 0;\n const left = -documentRect.left ||\n document.body.scrollLeft ||\n window.scrollX ||\n documentElement.scrollLeft ||\n 0;\n return { top, left };\n }\n /**\n * Returns a stream that emits whenever the size of the viewport changes.\n * This stream emits outside of the Angular zone.\n * @param throttleTime Time in milliseconds to throttle the stream.\n */\n change(throttleTime = DEFAULT_RESIZE_TIME) {\n return throttleTime > 0 ? this._change.pipe(auditTime(throttleTime)) : this._change;\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n _getWindow() {\n return this._document.defaultView || window;\n }\n /** Updates the cached viewport size. */\n _updateViewportSize() {\n const window = this._getWindow();\n this._viewportSize = this._platform.isBrowser\n ? { width: window.innerWidth, height: window.innerHeight }\n : { width: 0, height: 0 };\n }\n}\nViewportRuler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ViewportRuler, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nViewportRuler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ViewportRuler, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ViewportRuler, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/** Checks if the given ranges are equal. */\nfunction rangesEqual(r1, r2) {\n return r1.start == r2.start && r1.end == r2.end;\n}\n/**\n * Scheduler to be used for scroll events. Needs to fall back to\n * something that doesn't rely on requestAnimationFrame on environments\n * that don't support it (e.g. server-side rendering).\n */\nconst SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? animationFrameScheduler : asapScheduler;\n/** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */\nclass CdkVirtualScrollViewport extends CdkScrollable {\n constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler) {\n super(elementRef, scrollDispatcher, ngZone, dir);\n this.elementRef = elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._scrollStrategy = _scrollStrategy;\n /** Emits when the viewport is detached from a CdkVirtualForOf. */\n this._detachedSubject = new Subject();\n /** Emits when the rendered range changes. */\n this._renderedRangeSubject = new Subject();\n this._orientation = 'vertical';\n this._appendOnly = false;\n // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll\n // strategy lazily (i.e. only if the user is actually listening to the events). We do this because\n // depending on how the strategy calculates the scrolled index, it may come at a cost to\n // performance.\n /** Emits when the index of the first element visible in the viewport changes. */\n this.scrolledIndexChange = new Observable((observer) => this._scrollStrategy.scrolledIndexChange.subscribe(index => Promise.resolve().then(() => this.ngZone.run(() => observer.next(index)))));\n /** A stream that emits whenever the rendered range changes. */\n this.renderedRangeStream = this._renderedRangeSubject;\n /**\n * The total size of all content (in pixels), including content that is not currently rendered.\n */\n this._totalContentSize = 0;\n /** A string representing the `style.width` property value to be used for the spacer element. */\n this._totalContentWidth = '';\n /** A string representing the `style.height` property value to be used for the spacer element. */\n this._totalContentHeight = '';\n /** The currently rendered range of indices. */\n this._renderedRange = { start: 0, end: 0 };\n /** The length of the data bound to this viewport (in number of items). */\n this._dataLength = 0;\n /** The size of the viewport (in pixels). */\n this._viewportSize = 0;\n /** The last rendered content offset that was set. */\n this._renderedContentOffset = 0;\n /**\n * Whether the last rendered content offset was to the end of the content (and therefore needs to\n * be rewritten as an offset to the start of the content).\n */\n this._renderedContentOffsetNeedsRewrite = false;\n /** Whether there is a pending change detection cycle. */\n this._isChangeDetectionPending = false;\n /** A list of functions to run after the next change detection cycle. */\n this._runAfterChangeDetection = [];\n /** Subscription to changes in the viewport size. */\n this._viewportChanges = Subscription.EMPTY;\n if (!_scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Error: cdk-virtual-scroll-viewport requires the \"itemSize\" property to be set.');\n }\n this._viewportChanges = viewportRuler.change().subscribe(() => {\n this.checkViewportSize();\n });\n }\n /** The direction the viewport scrolls. */\n get orientation() {\n return this._orientation;\n }\n set orientation(orientation) {\n if (this._orientation !== orientation) {\n this._orientation = orientation;\n this._calculateSpacerSize();\n }\n }\n /**\n * Whether rendered items should persist in the DOM after scrolling out of view. By default, items\n * will be removed.\n */\n get appendOnly() {\n return this._appendOnly;\n }\n set appendOnly(value) {\n this._appendOnly = coerceBooleanProperty(value);\n }\n ngOnInit() {\n super.ngOnInit();\n // It's still too early to measure the viewport at this point. Deferring with a promise allows\n // the Viewport to be rendered with the correct size before we measure. We run this outside the\n // zone to avoid causing more change detection cycles. We handle the change detection loop\n // ourselves instead.\n this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {\n this._measureViewportSize();\n this._scrollStrategy.attach(this);\n this.elementScrolled()\n .pipe(\n // Start off with a fake scroll event so we properly detect our initial position.\n startWith(null), \n // Collect multiple events into one until the next animation frame. This way if\n // there are multiple scroll events in the same frame we only need to recheck\n // our layout once.\n auditTime(0, SCROLL_SCHEDULER))\n .subscribe(() => this._scrollStrategy.onContentScrolled());\n this._markChangeDetectionNeeded();\n }));\n }\n ngOnDestroy() {\n this.detach();\n this._scrollStrategy.detach();\n // Complete all subjects\n this._renderedRangeSubject.complete();\n this._detachedSubject.complete();\n this._viewportChanges.unsubscribe();\n super.ngOnDestroy();\n }\n /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */\n attach(forOf) {\n if (this._forOf && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('CdkVirtualScrollViewport is already attached.');\n }\n // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length\n // changes. Run outside the zone to avoid triggering change detection, since we're managing the\n // change detection loop ourselves.\n this.ngZone.runOutsideAngular(() => {\n this._forOf = forOf;\n this._forOf.dataStream.pipe(takeUntil(this._detachedSubject)).subscribe(data => {\n const newLength = data.length;\n if (newLength !== this._dataLength) {\n this._dataLength = newLength;\n this._scrollStrategy.onDataLengthChanged();\n }\n this._doChangeDetection();\n });\n });\n }\n /** Detaches the current `CdkVirtualForOf`. */\n detach() {\n this._forOf = null;\n this._detachedSubject.next();\n }\n /** Gets the length of the data bound to this viewport (in number of items). */\n getDataLength() {\n return this._dataLength;\n }\n /** Gets the size of the viewport (in pixels). */\n getViewportSize() {\n return this._viewportSize;\n }\n // TODO(mmalerba): This is technically out of sync with what's really rendered until a render\n // cycle happens. I'm being careful to only call it after the render cycle is complete and before\n // setting it to something else, but its error prone and should probably be split into\n // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.\n /** Get the current rendered range of items. */\n getRenderedRange() {\n return this._renderedRange;\n }\n /**\n * Sets the total size of all content (in pixels), including content that is not currently\n * rendered.\n */\n setTotalContentSize(size) {\n if (this._totalContentSize !== size) {\n this._totalContentSize = size;\n this._calculateSpacerSize();\n this._markChangeDetectionNeeded();\n }\n }\n /** Sets the currently rendered range of indices. */\n setRenderedRange(range) {\n if (!rangesEqual(this._renderedRange, range)) {\n if (this.appendOnly) {\n range = { start: 0, end: Math.max(this._renderedRange.end, range.end) };\n }\n this._renderedRangeSubject.next((this._renderedRange = range));\n this._markChangeDetectionNeeded(() => this._scrollStrategy.onContentRendered());\n }\n }\n /**\n * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).\n */\n getOffsetToRenderedContentStart() {\n return this._renderedContentOffsetNeedsRewrite ? null : this._renderedContentOffset;\n }\n /**\n * Sets the offset from the start of the viewport to either the start or end of the rendered data\n * (in pixels).\n */\n setRenderedContentOffset(offset, to = 'to-start') {\n // For a horizontal viewport in a right-to-left language we need to translate along the x-axis\n // in the negative direction.\n const isRtl = this.dir && this.dir.value == 'rtl';\n const isHorizontal = this.orientation == 'horizontal';\n const axis = isHorizontal ? 'X' : 'Y';\n const axisDirection = isHorizontal && isRtl ? -1 : 1;\n let transform = `translate${axis}(${Number(axisDirection * offset)}px)`;\n this._renderedContentOffset = offset;\n if (to === 'to-end') {\n transform += ` translate${axis}(-100%)`;\n // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise\n // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would\n // expand upward).\n this._renderedContentOffsetNeedsRewrite = true;\n }\n if (this._renderedContentTransform != transform) {\n // We know this value is safe because we parse `offset` with `Number()` before passing it\n // into the string.\n this._renderedContentTransform = transform;\n this._markChangeDetectionNeeded(() => {\n if (this._renderedContentOffsetNeedsRewrite) {\n this._renderedContentOffset -= this.measureRenderedContentSize();\n this._renderedContentOffsetNeedsRewrite = false;\n this.setRenderedContentOffset(this._renderedContentOffset);\n }\n else {\n this._scrollStrategy.onRenderedOffsetChanged();\n }\n });\n }\n }\n /**\n * Scrolls to the given offset from the start of the viewport. Please note that this is not always\n * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left\n * direction, this would be the equivalent of setting a fictional `scrollRight` property.\n * @param offset The offset to scroll to.\n * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.\n */\n scrollToOffset(offset, behavior = 'auto') {\n const options = { behavior };\n if (this.orientation === 'horizontal') {\n options.start = offset;\n }\n else {\n options.top = offset;\n }\n this.scrollTo(options);\n }\n /**\n * Scrolls to the offset for the given index.\n * @param index The index of the element to scroll to.\n * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.\n */\n scrollToIndex(index, behavior = 'auto') {\n this._scrollStrategy.scrollToIndex(index, behavior);\n }\n /**\n * Gets the current scroll offset from the start of the viewport (in pixels).\n * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'\n * in horizontal mode.\n */\n measureScrollOffset(from) {\n return from\n ? super.measureScrollOffset(from)\n : super.measureScrollOffset(this.orientation === 'horizontal' ? 'start' : 'top');\n }\n /** Measure the combined size of all of the rendered items. */\n measureRenderedContentSize() {\n const contentEl = this._contentWrapper.nativeElement;\n return this.orientation === 'horizontal' ? contentEl.offsetWidth : contentEl.offsetHeight;\n }\n /**\n * Measure the total combined size of the given range. Throws if the range includes items that are\n * not rendered.\n */\n measureRangeSize(range) {\n if (!this._forOf) {\n return 0;\n }\n return this._forOf.measureRangeSize(range, this.orientation);\n }\n /** Update the viewport dimensions and re-render. */\n checkViewportSize() {\n // TODO: Cleanup later when add logic for handling content resize\n this._measureViewportSize();\n this._scrollStrategy.onDataLengthChanged();\n }\n /** Measure the viewport size. */\n _measureViewportSize() {\n const viewportEl = this.elementRef.nativeElement;\n this._viewportSize =\n this.orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;\n }\n /** Queue up change detection to run. */\n _markChangeDetectionNeeded(runAfter) {\n if (runAfter) {\n this._runAfterChangeDetection.push(runAfter);\n }\n // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of\n // properties sequentially we only have to run `_doChangeDetection` once at the end.\n if (!this._isChangeDetectionPending) {\n this._isChangeDetectionPending = true;\n this.ngZone.runOutsideAngular(() => Promise.resolve().then(() => {\n this._doChangeDetection();\n }));\n }\n }\n /** Run change detection. */\n _doChangeDetection() {\n this._isChangeDetectionPending = false;\n // Apply the content transform. The transform can't be set via an Angular binding because\n // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of\n // string literals, a variable that can only be 'X' or 'Y', and user input that is run through\n // the `Number` function first to coerce it to a numeric value.\n this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;\n // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection\n // from the root, since the repeated items are content projected in. Calling `detectChanges`\n // instead does not properly check the projected content.\n this.ngZone.run(() => this._changeDetectorRef.markForCheck());\n const runAfterChangeDetection = this._runAfterChangeDetection;\n this._runAfterChangeDetection = [];\n for (const fn of runAfterChangeDetection) {\n fn();\n }\n }\n /** Calculates the `style.width` and `style.height` for the spacer element. */\n _calculateSpacerSize() {\n this._totalContentHeight =\n this.orientation === 'horizontal' ? '' : `${this._totalContentSize}px`;\n this._totalContentWidth =\n this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';\n }\n}\nCdkVirtualScrollViewport.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkVirtualScrollViewport, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: VIRTUAL_SCROLL_STRATEGY, optional: true }, { token: i2.Directionality, optional: true }, { token: ScrollDispatcher }, { token: ViewportRuler }], target: i0.ɵɵFactoryTarget.Component });\nCdkVirtualScrollViewport.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkVirtualScrollViewport, selector: \"cdk-virtual-scroll-viewport\", inputs: { orientation: \"orientation\", appendOnly: \"appendOnly\" }, outputs: { scrolledIndexChange: \"scrolledIndexChange\" }, host: { properties: { \"class.cdk-virtual-scroll-orientation-horizontal\": \"orientation === \\\"horizontal\\\"\", \"class.cdk-virtual-scroll-orientation-vertical\": \"orientation !== \\\"horizontal\\\"\" }, classAttribute: \"cdk-virtual-scroll-viewport\" }, providers: [\n {\n provide: CdkScrollable,\n useExisting: CdkVirtualScrollViewport,\n },\n ], viewQueries: [{ propertyName: \"_contentWrapper\", first: true, predicate: [\"contentWrapper\"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: \"<!--\\n Wrap the rendered content in an element that will be used to offset it based on the scroll\\n position.\\n-->\\n<div #contentWrapper class=\\\"cdk-virtual-scroll-content-wrapper\\\">\\n <ng-content></ng-content>\\n</div>\\n<!--\\n Spacer used to force the scrolling container to the correct size for the *total* number of items\\n so that the scrollbar captures the size of the entire data set.\\n-->\\n<div class=\\\"cdk-virtual-scroll-spacer\\\"\\n [style.width]=\\\"_totalContentWidth\\\" [style.height]=\\\"_totalContentHeight\\\"></div>\\n\", styles: [\"cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkVirtualScrollViewport, decorators: [{\n type: Component,\n args: [{ selector: 'cdk-virtual-scroll-viewport', host: {\n 'class': 'cdk-virtual-scroll-viewport',\n '[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === \"horizontal\"',\n '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== \"horizontal\"',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [\n {\n provide: CdkScrollable,\n useExisting: CdkVirtualScrollViewport,\n },\n ], template: \"<!--\\n Wrap the rendered content in an element that will be used to offset it based on the scroll\\n position.\\n-->\\n<div #contentWrapper class=\\\"cdk-virtual-scroll-content-wrapper\\\">\\n <ng-content></ng-content>\\n</div>\\n<!--\\n Spacer used to force the scrolling container to the correct size for the *total* number of items\\n so that the scrollbar captures the size of the entire data set.\\n-->\\n<div class=\\\"cdk-virtual-scroll-spacer\\\"\\n [style.width]=\\\"_totalContentWidth\\\" [style.height]=\\\"_totalContentHeight\\\"></div>\\n\", styles: [\"cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [VIRTUAL_SCROLL_STRATEGY]\n }] }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }, { type: ScrollDispatcher }, { type: ViewportRuler }];\n }, propDecorators: { orientation: [{\n type: Input\n }], appendOnly: [{\n type: Input\n }], scrolledIndexChange: [{\n type: Output\n }], _contentWrapper: [{\n type: ViewChild,\n args: ['contentWrapper', { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Helper to extract the offset of a DOM Node in a certain direction. */\nfunction getOffset(orientation, direction, node) {\n const el = node;\n if (!el.getBoundingClientRect) {\n return 0;\n }\n const rect = el.getBoundingClientRect();\n if (orientation === 'horizontal') {\n return direction === 'start' ? rect.left : rect.right;\n }\n return direction === 'start' ? rect.top : rect.bottom;\n}\n/**\n * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling\n * container.\n */\nclass CdkVirtualForOf {\n constructor(\n /** The view container to add items to. */\n _viewContainerRef, \n /** The template to use when stamping out new items. */\n _template, \n /** The set of available differs. */\n _differs, \n /** The strategy used to render items in the virtual scroll viewport. */\n _viewRepeater, \n /** The virtual scrolling viewport that these items are being rendered in. */\n _viewport, ngZone) {\n this._viewContainerRef = _viewContainerRef;\n this._template = _template;\n this._differs = _differs;\n this._viewRepeater = _viewRepeater;\n this._viewport = _viewport;\n /** Emits when the rendered view of the data changes. */\n this.viewChange = new Subject();\n /** Subject that emits when a new DataSource instance is given. */\n this._dataSourceChanges = new Subject();\n /** Emits whenever the data in the current DataSource changes. */\n this.dataStream = this._dataSourceChanges.pipe(\n // Start off with null `DataSource`.\n startWith(null), \n // Bundle up the previous and current data sources so we can work with both.\n pairwise(), \n // Use `_changeDataSource` to disconnect from the previous data source and connect to the\n // new one, passing back a stream of data changes which we run through `switchMap` to give\n // us a data stream that emits the latest data from whatever the current `DataSource` is.\n switchMap(([prev, cur]) => this._changeDataSource(prev, cur)), \n // Replay the last emitted data when someone subscribes.\n shareReplay(1));\n /** The differ used to calculate changes to the data. */\n this._differ = null;\n /** Whether the rendered data should be updated during the next ngDoCheck cycle. */\n this._needsUpdate = false;\n this._destroyed = new Subject();\n this.dataStream.subscribe(data => {\n this._data = data;\n this._onRenderedDataChange();\n });\n this._viewport.renderedRangeStream.pipe(takeUntil(this._destroyed)).subscribe(range => {\n this._renderedRange = range;\n ngZone.run(() => this.viewChange.next(this._renderedRange));\n this._onRenderedDataChange();\n });\n this._viewport.attach(this);\n }\n /** The DataSource to display. */\n get cdkVirtualForOf() {\n return this._cdkVirtualForOf;\n }\n set cdkVirtualForOf(value) {\n this._cdkVirtualForOf = value;\n if (isDataSource(value)) {\n this._dataSourceChanges.next(value);\n }\n else {\n // If value is an an NgIterable, convert it to an array.\n this._dataSourceChanges.next(new ArrayDataSource(isObservable(value) ? value : Array.from(value || [])));\n }\n }\n /**\n * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and\n * the item and produces a value to be used as the item's identity when tracking changes.\n */\n get cdkVirtualForTrackBy() {\n return this._cdkVirtualForTrackBy;\n }\n set cdkVirtualForTrackBy(fn) {\n this._needsUpdate = true;\n this._cdkVirtualForTrackBy = fn\n ? (index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item)\n : undefined;\n }\n /** The template used to stamp out new elements. */\n set cdkVirtualForTemplate(value) {\n if (value) {\n this._needsUpdate = true;\n this._template = value;\n }\n }\n /**\n * The size of the cache used to store templates that are not being used for re-use later.\n * Setting the cache size to `0` will disable caching. Defaults to 20 templates.\n */\n get cdkVirtualForTemplateCacheSize() {\n return this._viewRepeater.viewCacheSize;\n }\n set cdkVirtualForTemplateCacheSize(size) {\n this._viewRepeater.viewCacheSize = coerceNumberProperty(size);\n }\n /**\n * Measures the combined size (width for horizontal orientation, height for vertical) of all items\n * in the specified range. Throws an error if the range includes items that are not currently\n * rendered.\n */\n measureRangeSize(range, orientation) {\n if (range.start >= range.end) {\n return 0;\n }\n if ((range.start < this._renderedRange.start || range.end > this._renderedRange.end) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Error: attempted to measure an item that isn't rendered.`);\n }\n // The index into the list of rendered views for the first item in the range.\n const renderedStartIndex = range.start - this._renderedRange.start;\n // The length of the range we're measuring.\n const rangeLen = range.end - range.start;\n // Loop over all the views, find the first and land node and compute the size by subtracting\n // the top of the first node from the bottom of the last one.\n let firstNode;\n let lastNode;\n // Find the first node by starting from the beginning and going forwards.\n for (let i = 0; i < rangeLen; i++) {\n const view = this._viewContainerRef.get(i + renderedStartIndex);\n if (view && view.rootNodes.length) {\n firstNode = lastNode = view.rootNodes[0];\n break;\n }\n }\n // Find the last node by starting from the end and going backwards.\n for (let i = rangeLen - 1; i > -1; i--) {\n const view = this._viewContainerRef.get(i + renderedStartIndex);\n if (view && view.rootNodes.length) {\n lastNode = view.rootNodes[view.rootNodes.length - 1];\n break;\n }\n }\n return firstNode && lastNode\n ? getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode)\n : 0;\n }\n ngDoCheck() {\n if (this._differ && this._needsUpdate) {\n // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of\n // this list being rendered (can use simpler algorithm) vs needs update due to data actually\n // changing (need to do this diff).\n const changes = this._differ.diff(this._renderedItems);\n if (!changes) {\n this._updateContext();\n }\n else {\n this._applyChanges(changes);\n }\n this._needsUpdate = false;\n }\n }\n ngOnDestroy() {\n this._viewport.detach();\n this._dataSourceChanges.next(undefined);\n this._dataSourceChanges.complete();\n this.viewChange.complete();\n this._destroyed.next();\n this._destroyed.complete();\n this._viewRepeater.detach();\n }\n /** React to scroll state changes in the viewport. */\n _onRenderedDataChange() {\n if (!this._renderedRange) {\n return;\n }\n this._renderedItems = this._data.slice(this._renderedRange.start, this._renderedRange.end);\n if (!this._differ) {\n // Use a wrapper function for the `trackBy` so any new values are\n // picked up automatically without having to recreate the differ.\n this._differ = this._differs.find(this._renderedItems).create((index, item) => {\n return this.cdkVirtualForTrackBy ? this.cdkVirtualForTrackBy(index, item) : item;\n });\n }\n this._needsUpdate = true;\n }\n /** Swap out one `DataSource` for another. */\n _changeDataSource(oldDs, newDs) {\n if (oldDs) {\n oldDs.disconnect(this);\n }\n this._needsUpdate = true;\n return newDs ? newDs.connect(this) : of();\n }\n /** Update the `CdkVirtualForOfContext` for all views. */\n _updateContext() {\n const count = this._data.length;\n let i = this._viewContainerRef.length;\n while (i--) {\n const view = this._viewContainerRef.get(i);\n view.context.index = this._renderedRange.start + i;\n view.context.count = count;\n this._updateComputedContextProperties(view.context);\n view.detectChanges();\n }\n }\n /** Apply changes to the DOM. */\n _applyChanges(changes) {\n this._viewRepeater.applyChanges(changes, this._viewContainerRef, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record, currentIndex), record => record.item);\n // Update $implicit for any items that had an identity change.\n changes.forEachIdentityChange((record) => {\n const view = this._viewContainerRef.get(record.currentIndex);\n view.context.$implicit = record.item;\n });\n // Update the context variables on all items.\n const count = this._data.length;\n let i = this._viewContainerRef.length;\n while (i--) {\n const view = this._viewContainerRef.get(i);\n view.context.index = this._renderedRange.start + i;\n view.context.count = count;\n this._updateComputedContextProperties(view.context);\n }\n }\n /** Update the computed properties on the `CdkVirtualForOfContext`. */\n _updateComputedContextProperties(context) {\n context.first = context.index === 0;\n context.last = context.index === context.count - 1;\n context.even = context.index % 2 === 0;\n context.odd = !context.even;\n }\n _getEmbeddedViewArgs(record, index) {\n // Note that it's important that we insert the item directly at the proper index,\n // rather than inserting it and the moving it in place, because if there's a directive\n // on the same node that injects the `ViewContainerRef`, Angular will insert another\n // comment node which can throw off the move when it's being repeated for all items.\n return {\n templateRef: this._template,\n context: {\n $implicit: record.item,\n // It's guaranteed that the iterable is not \"undefined\" or \"null\" because we only\n // generate views for elements if the \"cdkVirtualForOf\" iterable has elements.\n cdkVirtualForOf: this._cdkVirtualForOf,\n index: -1,\n count: -1,\n first: false,\n last: false,\n odd: false,\n even: false,\n },\n index,\n };\n }\n}\nCdkVirtualForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkVirtualForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: _VIEW_REPEATER_STRATEGY }, { token: CdkVirtualScrollViewport, skipSelf: true }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkVirtualForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkVirtualForOf, selector: \"[cdkVirtualFor][cdkVirtualForOf]\", inputs: { cdkVirtualForOf: \"cdkVirtualForOf\", cdkVirtualForTrackBy: \"cdkVirtualForTrackBy\", cdkVirtualForTemplate: \"cdkVirtualForTemplate\", cdkVirtualForTemplateCacheSize: \"cdkVirtualForTemplateCacheSize\" }, providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkVirtualForOf, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkVirtualFor][cdkVirtualForOf]',\n providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: i2$1._RecycleViewRepeaterStrategy, decorators: [{\n type: Inject,\n args: [_VIEW_REPEATER_STRATEGY]\n }] }, { type: CdkVirtualScrollViewport, decorators: [{\n type: SkipSelf\n }] }, { type: i0.NgZone }];\n }, propDecorators: { cdkVirtualForOf: [{\n type: Input\n }], cdkVirtualForTrackBy: [{\n type: Input\n }], cdkVirtualForTemplate: [{\n type: Input\n }], cdkVirtualForTemplateCacheSize: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CdkScrollableModule {\n}\nCdkScrollableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkScrollableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollableModule, declarations: [CdkScrollable], exports: [CdkScrollable] });\nCdkScrollableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollableModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkScrollableModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [CdkScrollable],\n declarations: [CdkScrollable],\n }]\n }] });\n/**\n * @docs-primary-export\n */\nclass ScrollingModule {\n}\nScrollingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nScrollingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollingModule, declarations: [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport], imports: [BidiModule, PlatformModule, CdkScrollableModule], exports: [BidiModule, CdkScrollableModule, CdkFixedSizeVirtualScroll,\n CdkVirtualForOf,\n CdkVirtualScrollViewport] });\nScrollingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollingModule, imports: [[BidiModule, PlatformModule, CdkScrollableModule], BidiModule, CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollingModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [BidiModule, PlatformModule, CdkScrollableModule],\n exports: [\n BidiModule,\n CdkScrollableModule,\n CdkFixedSizeVirtualScroll,\n CdkVirtualForOf,\n CdkVirtualScrollViewport,\n ],\n declarations: [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualScrollViewport, DEFAULT_RESIZE_TIME, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLL_STRATEGY, ViewportRuler, _fixedSizeVirtualScrollStrategyFactory };\n","import * as i0 from '@angular/core';\nimport { ElementRef, Directive, EventEmitter, Inject, Output, NgModule } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Throws an exception when attempting to attach a null portal to a host.\n * @docs-private\n */\nfunction throwNullPortalError() {\n throw Error('Must provide a portal to attach');\n}\n/**\n * Throws an exception when attempting to attach a portal to a host that is already attached.\n * @docs-private\n */\nfunction throwPortalAlreadyAttachedError() {\n throw Error('Host already has a portal attached');\n}\n/**\n * Throws an exception when attempting to attach a portal to an already-disposed host.\n * @docs-private\n */\nfunction throwPortalOutletAlreadyDisposedError() {\n throw Error('This PortalOutlet has already been disposed');\n}\n/**\n * Throws an exception when attempting to attach an unknown portal type.\n * @docs-private\n */\nfunction throwUnknownPortalTypeError() {\n throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' +\n 'a ComponentPortal or a TemplatePortal.');\n}\n/**\n * Throws an exception when attempting to attach a portal to a null host.\n * @docs-private\n */\nfunction throwNullPortalOutletError() {\n throw Error('Attempting to attach a portal to a null PortalOutlet');\n}\n/**\n * Throws an exception when attempting to detach a portal that is not attached.\n * @docs-private\n */\nfunction throwNoPortalAttachedError() {\n throw Error('Attempting to detach a portal that is not attached to a host');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A `Portal` is something that you want to render somewhere else.\n * It can be attach to / detached from a `PortalOutlet`.\n */\nclass Portal {\n /** Attach this portal to a host. */\n attach(host) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (host == null) {\n throwNullPortalOutletError();\n }\n if (host.hasAttached()) {\n throwPortalAlreadyAttachedError();\n }\n }\n this._attachedHost = host;\n return host.attach(this);\n }\n /** Detach this portal from its host */\n detach() {\n let host = this._attachedHost;\n if (host != null) {\n this._attachedHost = null;\n host.detach();\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throwNoPortalAttachedError();\n }\n }\n /** Whether this portal is attached to a host. */\n get isAttached() {\n return this._attachedHost != null;\n }\n /**\n * Sets the PortalOutlet reference without performing `attach()`. This is used directly by\n * the PortalOutlet when it is performing an `attach()` or `detach()`.\n */\n setAttachedHost(host) {\n this._attachedHost = host;\n }\n}\n/**\n * A `ComponentPortal` is a portal that instantiates some Component upon attachment.\n */\nclass ComponentPortal extends Portal {\n constructor(component, viewContainerRef, injector, componentFactoryResolver) {\n super();\n this.component = component;\n this.viewContainerRef = viewContainerRef;\n this.injector = injector;\n this.componentFactoryResolver = componentFactoryResolver;\n }\n}\n/**\n * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).\n */\nclass TemplatePortal extends Portal {\n constructor(template, viewContainerRef, context) {\n super();\n this.templateRef = template;\n this.viewContainerRef = viewContainerRef;\n this.context = context;\n }\n get origin() {\n return this.templateRef.elementRef;\n }\n /**\n * Attach the portal to the provided `PortalOutlet`.\n * When a context is provided it will override the `context` property of the `TemplatePortal`\n * instance.\n */\n attach(host, context = this.context) {\n this.context = context;\n return super.attach(host);\n }\n detach() {\n this.context = undefined;\n return super.detach();\n }\n}\n/**\n * A `DomPortal` is a portal whose DOM element will be taken from its current position\n * in the DOM and moved into a portal outlet, when it is attached. On detach, the content\n * will be restored to its original position.\n */\nclass DomPortal extends Portal {\n constructor(element) {\n super();\n this.element = element instanceof ElementRef ? element.nativeElement : element;\n }\n}\n/**\n * Partial implementation of PortalOutlet that handles attaching\n * ComponentPortal and TemplatePortal.\n */\nclass BasePortalOutlet {\n constructor() {\n /** Whether this host has already been permanently disposed. */\n this._isDisposed = false;\n // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method.\n this.attachDomPortal = null;\n }\n /** Whether this host has an attached portal. */\n hasAttached() {\n return !!this._attachedPortal;\n }\n /** Attaches a portal. */\n attach(portal) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!portal) {\n throwNullPortalError();\n }\n if (this.hasAttached()) {\n throwPortalAlreadyAttachedError();\n }\n if (this._isDisposed) {\n throwPortalOutletAlreadyDisposedError();\n }\n }\n if (portal instanceof ComponentPortal) {\n this._attachedPortal = portal;\n return this.attachComponentPortal(portal);\n }\n else if (portal instanceof TemplatePortal) {\n this._attachedPortal = portal;\n return this.attachTemplatePortal(portal);\n // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`.\n }\n else if (this.attachDomPortal && portal instanceof DomPortal) {\n this._attachedPortal = portal;\n return this.attachDomPortal(portal);\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throwUnknownPortalTypeError();\n }\n }\n /** Detaches a previously attached portal. */\n detach() {\n if (this._attachedPortal) {\n this._attachedPortal.setAttachedHost(null);\n this._attachedPortal = null;\n }\n this._invokeDisposeFn();\n }\n /** Permanently dispose of this portal host. */\n dispose() {\n if (this.hasAttached()) {\n this.detach();\n }\n this._invokeDisposeFn();\n this._isDisposed = true;\n }\n /** @docs-private */\n setDisposeFn(fn) {\n this._disposeFn = fn;\n }\n _invokeDisposeFn() {\n if (this._disposeFn) {\n this._disposeFn();\n this._disposeFn = null;\n }\n }\n}\n/**\n * @deprecated Use `BasePortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass BasePortalHost extends BasePortalOutlet {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular\n * application context.\n */\nclass DomPortalOutlet extends BasePortalOutlet {\n constructor(\n /** Element into which the content is projected. */\n outletElement, _componentFactoryResolver, _appRef, _defaultInjector, \n /**\n * @deprecated `_document` Parameter to be made required.\n * @breaking-change 10.0.0\n */\n _document) {\n super();\n this.outletElement = outletElement;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._appRef = _appRef;\n this._defaultInjector = _defaultInjector;\n /**\n * Attaches a DOM portal by transferring its content into the outlet.\n * @param portal Portal to be attached.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = (portal) => {\n // @breaking-change 10.0.0 Remove check and error once the\n // `_document` constructor parameter is required.\n if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Cannot attach DOM portal without _document constructor parameter');\n }\n const element = portal.element;\n if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('DOM portal content must be attached to a parent node.');\n }\n // Anchor used to save the element's previous position so\n // that we can restore it when the portal is detached.\n const anchorNode = this._document.createComment('dom-portal');\n element.parentNode.insertBefore(anchorNode, element);\n this.outletElement.appendChild(element);\n this._attachedPortal = portal;\n super.setDisposeFn(() => {\n // We can't use `replaceWith` here because IE doesn't support it.\n if (anchorNode.parentNode) {\n anchorNode.parentNode.replaceChild(element, anchorNode);\n }\n });\n };\n this._document = _document;\n }\n /**\n * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.\n * @param portal Portal to be attached\n * @returns Reference to the created component.\n */\n attachComponentPortal(portal) {\n const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;\n const componentFactory = resolver.resolveComponentFactory(portal.component);\n let componentRef;\n // If the portal specifies a ViewContainerRef, we will use that as the attachment point\n // for the component (in terms of Angular's component tree, not rendering).\n // When the ViewContainerRef is missing, we use the factory to create the component directly\n // and then manually attach the view to the application.\n if (portal.viewContainerRef) {\n componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.injector);\n this.setDisposeFn(() => componentRef.destroy());\n }\n else {\n componentRef = componentFactory.create(portal.injector || this._defaultInjector);\n this._appRef.attachView(componentRef.hostView);\n this.setDisposeFn(() => {\n this._appRef.detachView(componentRef.hostView);\n componentRef.destroy();\n });\n }\n // At this point the component has been instantiated, so we move it to the location in the DOM\n // where we want it to be rendered.\n this.outletElement.appendChild(this._getComponentRootNode(componentRef));\n this._attachedPortal = portal;\n return componentRef;\n }\n /**\n * Attaches a template portal to the DOM as an embedded view.\n * @param portal Portal to be attached.\n * @returns Reference to the created embedded view.\n */\n attachTemplatePortal(portal) {\n let viewContainer = portal.viewContainerRef;\n let viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context);\n // The method `createEmbeddedView` will add the view as a child of the viewContainer.\n // But for the DomPortalOutlet the view can be added everywhere in the DOM\n // (e.g Overlay Container) To move the view to the specified host element. We just\n // re-append the existing root nodes.\n viewRef.rootNodes.forEach(rootNode => this.outletElement.appendChild(rootNode));\n // Note that we want to detect changes after the nodes have been moved so that\n // any directives inside the portal that are looking at the DOM inside a lifecycle\n // hook won't be invoked too early.\n viewRef.detectChanges();\n this.setDisposeFn(() => {\n let index = viewContainer.indexOf(viewRef);\n if (index !== -1) {\n viewContainer.remove(index);\n }\n });\n this._attachedPortal = portal;\n // TODO(jelbourn): Return locals from view.\n return viewRef;\n }\n /**\n * Clears out a portal from the DOM.\n */\n dispose() {\n super.dispose();\n this.outletElement.remove();\n }\n /** Gets the root HTMLElement for an instantiated component. */\n _getComponentRootNode(componentRef) {\n return componentRef.hostView.rootNodes[0];\n }\n}\n/**\n * @deprecated Use `DomPortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass DomPortalHost extends DomPortalOutlet {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,\n * the directive instance itself can be attached to a host, enabling declarative use of portals.\n */\nclass CdkPortal extends TemplatePortal {\n constructor(templateRef, viewContainerRef) {\n super(templateRef, viewContainerRef);\n }\n}\nCdkPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkPortal, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkPortal, selector: \"[cdkPortal]\", exportAs: [\"cdkPortal\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkPortal, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkPortal]',\n exportAs: 'cdkPortal',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; } });\n/**\n * @deprecated Use `CdkPortal` instead.\n * @breaking-change 9.0.0\n */\nclass TemplatePortalDirective extends CdkPortal {\n}\nTemplatePortalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TemplatePortalDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nTemplatePortalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: TemplatePortalDirective, selector: \"[cdk-portal], [portal]\", providers: [\n {\n provide: CdkPortal,\n useExisting: TemplatePortalDirective,\n },\n ], exportAs: [\"cdkPortal\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TemplatePortalDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdk-portal], [portal]',\n exportAs: 'cdkPortal',\n providers: [\n {\n provide: CdkPortal,\n useExisting: TemplatePortalDirective,\n },\n ],\n }]\n }] });\n/**\n * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be\n * directly attached to it, enabling declarative use.\n *\n * Usage:\n * `<ng-template [cdkPortalOutlet]=\"greeting\"></ng-template>`\n */\nclass CdkPortalOutlet extends BasePortalOutlet {\n constructor(_componentFactoryResolver, _viewContainerRef, \n /**\n * @deprecated `_document` parameter to be made required.\n * @breaking-change 9.0.0\n */\n _document) {\n super();\n this._componentFactoryResolver = _componentFactoryResolver;\n this._viewContainerRef = _viewContainerRef;\n /** Whether the portal component is initialized. */\n this._isInitialized = false;\n /** Emits when a portal is attached to the outlet. */\n this.attached = new EventEmitter();\n /**\n * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.\n * @param portal Portal to be attached.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = (portal) => {\n // @breaking-change 9.0.0 Remove check and error once the\n // `_document` constructor parameter is required.\n if (!this._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Cannot attach DOM portal without _document constructor parameter');\n }\n const element = portal.element;\n if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('DOM portal content must be attached to a parent node.');\n }\n // Anchor used to save the element's previous position so\n // that we can restore it when the portal is detached.\n const anchorNode = this._document.createComment('dom-portal');\n portal.setAttachedHost(this);\n element.parentNode.insertBefore(anchorNode, element);\n this._getRootNode().appendChild(element);\n this._attachedPortal = portal;\n super.setDisposeFn(() => {\n if (anchorNode.parentNode) {\n anchorNode.parentNode.replaceChild(element, anchorNode);\n }\n });\n };\n this._document = _document;\n }\n /** Portal associated with the Portal outlet. */\n get portal() {\n return this._attachedPortal;\n }\n set portal(portal) {\n // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have\n // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`\n // and attach a portal programmatically in the parent component. When Angular does the first CD\n // round, it will fire the setter with empty string, causing the user's content to be cleared.\n if (this.hasAttached() && !portal && !this._isInitialized) {\n return;\n }\n if (this.hasAttached()) {\n super.detach();\n }\n if (portal) {\n super.attach(portal);\n }\n this._attachedPortal = portal || null;\n }\n /** Component or view reference that is attached to the portal. */\n get attachedRef() {\n return this._attachedRef;\n }\n ngOnInit() {\n this._isInitialized = true;\n }\n ngOnDestroy() {\n super.dispose();\n this._attachedPortal = null;\n this._attachedRef = null;\n }\n /**\n * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.\n *\n * @param portal Portal to be attached to the portal outlet.\n * @returns Reference to the created component.\n */\n attachComponentPortal(portal) {\n portal.setAttachedHost(this);\n // If the portal specifies an origin, use that as the logical location of the component\n // in the application tree. Otherwise use the location of this PortalOutlet.\n const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;\n const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;\n const componentFactory = resolver.resolveComponentFactory(portal.component);\n const ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector);\n // If we're using a view container that's different from the injected one (e.g. when the portal\n // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered\n // inside of the alternate view container.\n if (viewContainerRef !== this._viewContainerRef) {\n this._getRootNode().appendChild(ref.hostView.rootNodes[0]);\n }\n super.setDisposeFn(() => ref.destroy());\n this._attachedPortal = portal;\n this._attachedRef = ref;\n this.attached.emit(ref);\n return ref;\n }\n /**\n * Attach the given TemplatePortal to this PortalHost as an embedded View.\n * @param portal Portal to be attached.\n * @returns Reference to the created embedded view.\n */\n attachTemplatePortal(portal) {\n portal.setAttachedHost(this);\n const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context);\n super.setDisposeFn(() => this._viewContainerRef.clear());\n this._attachedPortal = portal;\n this._attachedRef = viewRef;\n this.attached.emit(viewRef);\n return viewRef;\n }\n /** Gets the root node of the portal outlet. */\n _getRootNode() {\n const nativeElement = this._viewContainerRef.element.nativeElement;\n // The directive could be set on a template which will result in a comment\n // node being the root. Use the comment's parent node if that is the case.\n return (nativeElement.nodeType === nativeElement.ELEMENT_NODE\n ? nativeElement\n : nativeElement.parentNode);\n }\n}\nCdkPortalOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkPortalOutlet, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCdkPortalOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: { portal: [\"cdkPortalOutlet\", \"portal\"] }, outputs: { attached: \"attached\" }, exportAs: [\"cdkPortalOutlet\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkPortalOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkPortalOutlet]',\n exportAs: 'cdkPortalOutlet',\n inputs: ['portal: cdkPortalOutlet'],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { attached: [{\n type: Output\n }] } });\n/**\n * @deprecated Use `CdkPortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nclass PortalHostDirective extends CdkPortalOutlet {\n}\nPortalHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalHostDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nPortalHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: PortalHostDirective, selector: \"[cdkPortalHost], [portalHost]\", inputs: { portal: [\"cdkPortalHost\", \"portal\"] }, providers: [\n {\n provide: CdkPortalOutlet,\n useExisting: PortalHostDirective,\n },\n ], exportAs: [\"cdkPortalHost\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalHostDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkPortalHost], [portalHost]',\n exportAs: 'cdkPortalHost',\n inputs: ['portal: cdkPortalHost'],\n providers: [\n {\n provide: CdkPortalOutlet,\n useExisting: PortalHostDirective,\n },\n ],\n }]\n }] });\nclass PortalModule {\n}\nPortalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nPortalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalModule, declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective], exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective] });\nPortalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: PortalModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],\n declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Custom injector to be used when providing custom\n * injection tokens to components inside a portal.\n * @docs-private\n * @deprecated Use `Injector.create` instead.\n * @breaking-change 11.0.0\n */\nclass PortalInjector {\n constructor(_parentInjector, _customTokens) {\n this._parentInjector = _parentInjector;\n this._customTokens = _customTokens;\n }\n get(token, notFoundValue) {\n const value = this._customTokens.get(token);\n if (typeof value !== 'undefined') {\n return value;\n }\n return this._parentInjector.get(token, notFoundValue);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, DomPortalHost, DomPortalOutlet, Portal, PortalHostDirective, PortalInjector, PortalModule, TemplatePortal, TemplatePortalDirective };\n","import { Subscriber } from '../Subscriber';\nexport function takeWhile(predicate, inclusive = false) {\n return (source) => source.lift(new TakeWhileOperator(predicate, inclusive));\n}\nclass TakeWhileOperator {\n constructor(predicate, inclusive) {\n this.predicate = predicate;\n this.inclusive = inclusive;\n }\n call(subscriber, source) {\n return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));\n }\n}\nclass TakeWhileSubscriber extends Subscriber {\n constructor(destination, predicate, inclusive) {\n super(destination);\n this.predicate = predicate;\n this.inclusive = inclusive;\n this.index = 0;\n }\n _next(value) {\n const destination = this.destination;\n let result;\n try {\n result = this.predicate(value, this.index++);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n this.nextOrComplete(value, result);\n }\n nextOrComplete(value, predicateResult) {\n const destination = this.destination;\n if (Boolean(predicateResult)) {\n destination.next(value);\n }\n else {\n if (this.inclusive) {\n destination.next(value);\n }\n destination.complete();\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAC_ENTER = 3;\nconst BACKSPACE = 8;\nconst TAB = 9;\nconst NUM_CENTER = 12;\nconst ENTER = 13;\nconst SHIFT = 16;\nconst CONTROL = 17;\nconst ALT = 18;\nconst PAUSE = 19;\nconst CAPS_LOCK = 20;\nconst ESCAPE = 27;\nconst SPACE = 32;\nconst PAGE_UP = 33;\nconst PAGE_DOWN = 34;\nconst END = 35;\nconst HOME = 36;\nconst LEFT_ARROW = 37;\nconst UP_ARROW = 38;\nconst RIGHT_ARROW = 39;\nconst DOWN_ARROW = 40;\nconst PLUS_SIGN = 43;\nconst PRINT_SCREEN = 44;\nconst INSERT = 45;\nconst DELETE = 46;\nconst ZERO = 48;\nconst ONE = 49;\nconst TWO = 50;\nconst THREE = 51;\nconst FOUR = 52;\nconst FIVE = 53;\nconst SIX = 54;\nconst SEVEN = 55;\nconst EIGHT = 56;\nconst NINE = 57;\nconst FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186\nconst FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187\nconst QUESTION_MARK = 63;\nconst AT_SIGN = 64;\nconst A = 65;\nconst B = 66;\nconst C = 67;\nconst D = 68;\nconst E = 69;\nconst F = 70;\nconst G = 71;\nconst H = 72;\nconst I = 73;\nconst J = 74;\nconst K = 75;\nconst L = 76;\nconst M = 77;\nconst N = 78;\nconst O = 79;\nconst P = 80;\nconst Q = 81;\nconst R = 82;\nconst S = 83;\nconst T = 84;\nconst U = 85;\nconst V = 86;\nconst W = 87;\nconst X = 88;\nconst Y = 89;\nconst Z = 90;\nconst META = 91; // WIN_KEY_LEFT\nconst MAC_WK_CMD_LEFT = 91;\nconst MAC_WK_CMD_RIGHT = 93;\nconst CONTEXT_MENU = 93;\nconst NUMPAD_ZERO = 96;\nconst NUMPAD_ONE = 97;\nconst NUMPAD_TWO = 98;\nconst NUMPAD_THREE = 99;\nconst NUMPAD_FOUR = 100;\nconst NUMPAD_FIVE = 101;\nconst NUMPAD_SIX = 102;\nconst NUMPAD_SEVEN = 103;\nconst NUMPAD_EIGHT = 104;\nconst NUMPAD_NINE = 105;\nconst NUMPAD_MULTIPLY = 106;\nconst NUMPAD_PLUS = 107;\nconst NUMPAD_MINUS = 109;\nconst NUMPAD_PERIOD = 110;\nconst NUMPAD_DIVIDE = 111;\nconst F1 = 112;\nconst F2 = 113;\nconst F3 = 114;\nconst F4 = 115;\nconst F5 = 116;\nconst F6 = 117;\nconst F7 = 118;\nconst F8 = 119;\nconst F9 = 120;\nconst F10 = 121;\nconst F11 = 122;\nconst F12 = 123;\nconst NUM_LOCK = 144;\nconst SCROLL_LOCK = 145;\nconst FIRST_MEDIA = 166;\nconst FF_MINUS = 173;\nconst MUTE = 173; // Firefox (Gecko) fires 181 for MUTE\nconst VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN\nconst VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP\nconst FF_MUTE = 181;\nconst FF_VOLUME_DOWN = 182;\nconst LAST_MEDIA = 183;\nconst FF_VOLUME_UP = 183;\nconst SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON\nconst EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS\nconst COMMA = 188;\nconst DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS\nconst PERIOD = 190;\nconst SLASH = 191;\nconst APOSTROPHE = 192;\nconst TILDE = 192;\nconst OPEN_SQUARE_BRACKET = 219;\nconst BACKSLASH = 220;\nconst CLOSE_SQUARE_BRACKET = 221;\nconst SINGLE_QUOTE = 222;\nconst MAC_META = 224;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nfunction hasModifierKey(event, ...modifiers) {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey };\n","import * as i1 from '@angular/cdk/scrolling';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\nexport { CdkScrollable, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';\nimport * as i6 from '@angular/common';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Inject, ElementRef, ApplicationRef, InjectionToken, Directive, EventEmitter, Optional, Input, Output, NgModule } from '@angular/core';\nimport { coerceCssPixelValue, coerceArray, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/platform';\nimport { supportsScrollBehavior, _isTestEnvironment, _getEventTarget } from '@angular/cdk/platform';\nimport * as i5 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport { Subject, Subscription, merge } from 'rxjs';\nimport { take, takeUntil, takeWhile } from 'rxjs/operators';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst scrollBehaviorSupported = supportsScrollBehavior();\n/**\n * Strategy that will prevent the user from scrolling while the overlay is visible.\n */\nclass BlockScrollStrategy {\n constructor(_viewportRuler, document) {\n this._viewportRuler = _viewportRuler;\n this._previousHTMLStyles = { top: '', left: '' };\n this._isEnabled = false;\n this._document = document;\n }\n /** Attaches this scroll strategy to an overlay. */\n attach() { }\n /** Blocks page-level scroll while the attached overlay is open. */\n enable() {\n if (this._canBeEnabled()) {\n const root = this._document.documentElement;\n this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition();\n // Cache the previous inline styles in case the user had set them.\n this._previousHTMLStyles.left = root.style.left || '';\n this._previousHTMLStyles.top = root.style.top || '';\n // Note: we're using the `html` node, instead of the `body`, because the `body` may\n // have the user agent margin, whereas the `html` is guaranteed not to have one.\n root.style.left = coerceCssPixelValue(-this._previousScrollPosition.left);\n root.style.top = coerceCssPixelValue(-this._previousScrollPosition.top);\n root.classList.add('cdk-global-scrollblock');\n this._isEnabled = true;\n }\n }\n /** Unblocks page-level scroll while the attached overlay is open. */\n disable() {\n if (this._isEnabled) {\n const html = this._document.documentElement;\n const body = this._document.body;\n const htmlStyle = html.style;\n const bodyStyle = body.style;\n const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';\n const previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';\n this._isEnabled = false;\n htmlStyle.left = this._previousHTMLStyles.left;\n htmlStyle.top = this._previousHTMLStyles.top;\n html.classList.remove('cdk-global-scrollblock');\n // Disable user-defined smooth scrolling temporarily while we restore the scroll position.\n // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`,\n // because it can throw off feature detections in `supportsScrollBehavior` which\n // checks for `'scrollBehavior' in documentElement.style`.\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';\n }\n window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = previousHtmlScrollBehavior;\n bodyStyle.scrollBehavior = previousBodyScrollBehavior;\n }\n }\n }\n _canBeEnabled() {\n // Since the scroll strategies can't be singletons, we have to use a global CSS class\n // (`cdk-global-scrollblock`) to make sure that we don't try to disable global\n // scrolling multiple times.\n const html = this._document.documentElement;\n if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {\n return false;\n }\n const body = this._document.body;\n const viewport = this._viewportRuler.getViewportSize();\n return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.\n */\nfunction getMatScrollStrategyAlreadyAttachedError() {\n return Error(`Scroll strategy has already been attached.`);\n}\n\n/**\n * Strategy that will close the overlay as soon as the user starts scrolling.\n */\nclass CloseScrollStrategy {\n constructor(_scrollDispatcher, _ngZone, _viewportRuler, _config) {\n this._scrollDispatcher = _scrollDispatcher;\n this._ngZone = _ngZone;\n this._viewportRuler = _viewportRuler;\n this._config = _config;\n this._scrollSubscription = null;\n /** Detaches the overlay ref and disables the scroll strategy. */\n this._detach = () => {\n this.disable();\n if (this._overlayRef.hasAttached()) {\n this._ngZone.run(() => this._overlayRef.detach());\n }\n };\n }\n /** Attaches this scroll strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n }\n /** Enables the closing of the attached overlay on scroll. */\n enable() {\n if (this._scrollSubscription) {\n return;\n }\n const stream = this._scrollDispatcher.scrolled(0);\n if (this._config && this._config.threshold && this._config.threshold > 1) {\n this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n this._scrollSubscription = stream.subscribe(() => {\n const scrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n if (Math.abs(scrollPosition - this._initialScrollPosition) > this._config.threshold) {\n this._detach();\n }\n else {\n this._overlayRef.updatePosition();\n }\n });\n }\n else {\n this._scrollSubscription = stream.subscribe(this._detach);\n }\n }\n /** Disables the closing the attached overlay on scroll. */\n disable() {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n }\n detach() {\n this.disable();\n this._overlayRef = null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Scroll strategy that doesn't do anything. */\nclass NoopScrollStrategy {\n /** Does nothing, as this scroll strategy is a no-op. */\n enable() { }\n /** Does nothing, as this scroll strategy is a no-op. */\n disable() { }\n /** Does nothing, as this scroll strategy is a no-op. */\n attach() { }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is scrolled out of view\n * @docs-private\n */\nfunction isElementScrolledOutsideView(element, scrollContainers) {\n return scrollContainers.some(containerBounds => {\n const outsideAbove = element.bottom < containerBounds.top;\n const outsideBelow = element.top > containerBounds.bottom;\n const outsideLeft = element.right < containerBounds.left;\n const outsideRight = element.left > containerBounds.right;\n return outsideAbove || outsideBelow || outsideLeft || outsideRight;\n });\n}\n/**\n * Gets whether an element is clipped by any of its scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is clipped\n * @docs-private\n */\nfunction isElementClippedByScrolling(element, scrollContainers) {\n return scrollContainers.some(scrollContainerRect => {\n const clippedAbove = element.top < scrollContainerRect.top;\n const clippedBelow = element.bottom > scrollContainerRect.bottom;\n const clippedLeft = element.left < scrollContainerRect.left;\n const clippedRight = element.right > scrollContainerRect.right;\n return clippedAbove || clippedBelow || clippedLeft || clippedRight;\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Strategy that will update the element position as the user is scrolling.\n */\nclass RepositionScrollStrategy {\n constructor(_scrollDispatcher, _viewportRuler, _ngZone, _config) {\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n this._config = _config;\n this._scrollSubscription = null;\n }\n /** Attaches this scroll strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n }\n /** Enables repositioning of the attached overlay on scroll. */\n enable() {\n if (!this._scrollSubscription) {\n const throttle = this._config ? this._config.scrollThrottle : 0;\n this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(() => {\n this._overlayRef.updatePosition();\n // TODO(crisbeto): make `close` on by default once all components can handle it.\n if (this._config && this._config.autoClose) {\n const overlayRect = this._overlayRef.overlayElement.getBoundingClientRect();\n const { width, height } = this._viewportRuler.getViewportSize();\n // TODO(crisbeto): include all ancestor scroll containers here once\n // we have a way of exposing the trigger element to the scroll strategy.\n const parentRects = [{ width, height, bottom: height, right: width, top: 0, left: 0 }];\n if (isElementScrolledOutsideView(overlayRect, parentRects)) {\n this.disable();\n this._ngZone.run(() => this._overlayRef.detach());\n }\n }\n });\n }\n }\n /** Disables repositioning of the attached overlay on scroll. */\n disable() {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n }\n detach() {\n this.disable();\n this._overlayRef = null;\n }\n}\n\n/**\n * Options for how an overlay will handle scrolling.\n *\n * Users can provide a custom value for `ScrollStrategyOptions` to replace the default\n * behaviors. This class primarily acts as a factory for ScrollStrategy instances.\n */\nclass ScrollStrategyOptions {\n constructor(_scrollDispatcher, _viewportRuler, _ngZone, document) {\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n /** Do nothing on scroll. */\n this.noop = () => new NoopScrollStrategy();\n /**\n * Close the overlay as soon as the user scrolls.\n * @param config Configuration to be used inside the scroll strategy.\n */\n this.close = (config) => new CloseScrollStrategy(this._scrollDispatcher, this._ngZone, this._viewportRuler, config);\n /** Block scrolling. */\n this.block = () => new BlockScrollStrategy(this._viewportRuler, this._document);\n /**\n * Update the overlay's position on scroll.\n * @param config Configuration to be used inside the scroll strategy.\n * Allows debouncing the reposition calls.\n */\n this.reposition = (config) => new RepositionScrollStrategy(this._scrollDispatcher, this._viewportRuler, this._ngZone, config);\n this._document = document;\n }\n}\nScrollStrategyOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollStrategyOptions, deps: [{ token: i1.ScrollDispatcher }, { token: i1.ViewportRuler }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nScrollStrategyOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollStrategyOptions, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ScrollStrategyOptions, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.ScrollDispatcher }, { type: i1.ViewportRuler }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Initial configuration used when creating an overlay. */\nclass OverlayConfig {\n constructor(config) {\n /** Strategy to be used when handling scroll events while the overlay is open. */\n this.scrollStrategy = new NoopScrollStrategy();\n /** Custom class to add to the overlay pane. */\n this.panelClass = '';\n /** Whether the overlay has a backdrop. */\n this.hasBackdrop = false;\n /** Custom class to add to the backdrop */\n this.backdropClass = 'cdk-overlay-dark-backdrop';\n /**\n * Whether the overlay should be disposed of when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.disposeOnNavigation = false;\n if (config) {\n // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n const configKeys = Object.keys(config);\n for (const key of configKeys) {\n if (config[key] !== undefined) {\n // TypeScript, as of version 3.5, sees the left-hand-side of this expression\n // as \"I don't know *which* key this is, so the only valid value is the intersection\n // of all the posible values.\" In this case, that happens to be `undefined`. TypeScript\n // is not smart enough to see that the right-hand-side is actually an access of the same\n // exact type with the same exact key, meaning that the value type must be identical.\n // So we use `any` to work around this.\n this[key] = config[key];\n }\n }\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The points of the origin element and the overlay element to connect. */\nclass ConnectionPositionPair {\n constructor(origin, overlay, \n /** Offset along the X axis. */\n offsetX, \n /** Offset along the Y axis. */\n offsetY, \n /** Class(es) to be applied to the panel while this position is active. */\n panelClass) {\n this.offsetX = offsetX;\n this.offsetY = offsetY;\n this.panelClass = panelClass;\n this.originX = origin.originX;\n this.originY = origin.originY;\n this.overlayX = overlay.overlayX;\n this.overlayY = overlay.overlayY;\n }\n}\n/**\n * Set of properties regarding the position of the origin and overlay relative to the viewport\n * with respect to the containing Scrollable elements.\n *\n * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the\n * bounds of any one of the strategy's Scrollable's bounding client rectangle.\n *\n * The overlay and origin are outside view if there is no overlap between their bounding client\n * rectangle and any one of the strategy's Scrollable's bounding client rectangle.\n *\n * ----------- -----------\n * | outside | | clipped |\n * | view | --------------------------\n * | | | | | |\n * ---------- | ----------- |\n * -------------------------- | |\n * | | | Scrollable |\n * | | | |\n * | | --------------------------\n * | Scrollable |\n * | |\n * --------------------------\n *\n * @docs-private\n */\nclass ScrollingVisibility {\n}\n/** The change event emitted by the strategy when a fallback position is used. */\nclass ConnectedOverlayPositionChange {\n constructor(\n /** The position used as a result of this change. */\n connectionPair, \n /** @docs-private */\n scrollableViewProperties) {\n this.connectionPair = connectionPair;\n this.scrollableViewProperties = scrollableViewProperties;\n }\n}\n/**\n * Validates whether a vertical position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateVerticalPosition(property, value) {\n if (value !== 'top' && value !== 'bottom' && value !== 'center') {\n throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` +\n `Expected \"top\", \"bottom\" or \"center\".`);\n }\n}\n/**\n * Validates whether a horizontal position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateHorizontalPosition(property, value) {\n if (value !== 'start' && value !== 'end' && value !== 'center') {\n throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` +\n `Expected \"start\", \"end\" or \"center\".`);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\nclass OverlayRef {\n constructor(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher) {\n this._portalOutlet = _portalOutlet;\n this._host = _host;\n this._pane = _pane;\n this._config = _config;\n this._ngZone = _ngZone;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._document = _document;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n this._backdropElement = null;\n this._backdropClick = new Subject();\n this._attachments = new Subject();\n this._detachments = new Subject();\n this._locationChanges = Subscription.EMPTY;\n this._backdropClickHandler = (event) => this._backdropClick.next(event);\n /** Stream of keydown events dispatched to this overlay. */\n this._keydownEvents = new Subject();\n /** Stream of mouse outside events dispatched to this overlay. */\n this._outsidePointerEvents = new Subject();\n if (_config.scrollStrategy) {\n this._scrollStrategy = _config.scrollStrategy;\n this._scrollStrategy.attach(this);\n }\n this._positionStrategy = _config.positionStrategy;\n }\n /** The overlay's HTML element */\n get overlayElement() {\n return this._pane;\n }\n /** The overlay's backdrop HTML element. */\n get backdropElement() {\n return this._backdropElement;\n }\n /**\n * Wrapper around the panel element. Can be used for advanced\n * positioning where a wrapper with specific styling is\n * required around the overlay pane.\n */\n get hostElement() {\n return this._host;\n }\n /**\n * Attaches content, given via a Portal, to the overlay.\n * If the overlay is configured to have a backdrop, it will be created.\n *\n * @param portal Portal instance to which to attach the overlay.\n * @returns The portal attachment result.\n */\n attach(portal) {\n let attachResult = this._portalOutlet.attach(portal);\n // Update the pane element with the given configuration.\n if (!this._host.parentElement && this._previousHostParent) {\n this._previousHostParent.appendChild(this._host);\n }\n if (this._positionStrategy) {\n this._positionStrategy.attach(this);\n }\n this._updateStackingOrder();\n this._updateElementSize();\n this._updateElementDirection();\n if (this._scrollStrategy) {\n this._scrollStrategy.enable();\n }\n // Update the position once the zone is stable so that the overlay will be fully rendered\n // before attempting to position it, as the position may depend on the size of the rendered\n // content.\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n // The overlay could've been detached before the zone has stabilized.\n if (this.hasAttached()) {\n this.updatePosition();\n }\n });\n // Enable pointer events for the overlay pane element.\n this._togglePointerEvents(true);\n if (this._config.hasBackdrop) {\n this._attachBackdrop();\n }\n if (this._config.panelClass) {\n this._toggleClasses(this._pane, this._config.panelClass, true);\n }\n // Only emit the `attachments` event once all other setup is done.\n this._attachments.next();\n // Track this overlay by the keyboard dispatcher\n this._keyboardDispatcher.add(this);\n if (this._config.disposeOnNavigation) {\n this._locationChanges = this._location.subscribe(() => this.dispose());\n }\n this._outsideClickDispatcher.add(this);\n return attachResult;\n }\n /**\n * Detaches an overlay from a portal.\n * @returns The portal detachment result.\n */\n detach() {\n if (!this.hasAttached()) {\n return;\n }\n this.detachBackdrop();\n // When the overlay is detached, the pane element should disable pointer events.\n // This is necessary because otherwise the pane element will cover the page and disable\n // pointer events therefore. Depends on the position strategy and the applied pane boundaries.\n this._togglePointerEvents(false);\n if (this._positionStrategy && this._positionStrategy.detach) {\n this._positionStrategy.detach();\n }\n if (this._scrollStrategy) {\n this._scrollStrategy.disable();\n }\n const detachmentResult = this._portalOutlet.detach();\n // Only emit after everything is detached.\n this._detachments.next();\n // Remove this overlay from keyboard dispatcher tracking.\n this._keyboardDispatcher.remove(this);\n // Keeping the host element in the DOM can cause scroll jank, because it still gets\n // rendered, even though it's transparent and unclickable which is why we remove it.\n this._detachContentWhenStable();\n this._locationChanges.unsubscribe();\n this._outsideClickDispatcher.remove(this);\n return detachmentResult;\n }\n /** Cleans up the overlay from the DOM. */\n dispose() {\n var _a;\n const isAttached = this.hasAttached();\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._disposeScrollStrategy();\n this._disposeBackdrop(this._backdropElement);\n this._locationChanges.unsubscribe();\n this._keyboardDispatcher.remove(this);\n this._portalOutlet.dispose();\n this._attachments.complete();\n this._backdropClick.complete();\n this._keydownEvents.complete();\n this._outsidePointerEvents.complete();\n this._outsideClickDispatcher.remove(this);\n (_a = this._host) === null || _a === void 0 ? void 0 : _a.remove();\n this._previousHostParent = this._pane = this._host = null;\n if (isAttached) {\n this._detachments.next();\n }\n this._detachments.complete();\n }\n /** Whether the overlay has attached content. */\n hasAttached() {\n return this._portalOutlet.hasAttached();\n }\n /** Gets an observable that emits when the backdrop has been clicked. */\n backdropClick() {\n return this._backdropClick;\n }\n /** Gets an observable that emits when the overlay has been attached. */\n attachments() {\n return this._attachments;\n }\n /** Gets an observable that emits when the overlay has been detached. */\n detachments() {\n return this._detachments;\n }\n /** Gets an observable of keydown events targeted to this overlay. */\n keydownEvents() {\n return this._keydownEvents;\n }\n /** Gets an observable of pointer events targeted outside this overlay. */\n outsidePointerEvents() {\n return this._outsidePointerEvents;\n }\n /** Gets the current overlay configuration, which is immutable. */\n getConfig() {\n return this._config;\n }\n /** Updates the position of the overlay based on the position strategy. */\n updatePosition() {\n if (this._positionStrategy) {\n this._positionStrategy.apply();\n }\n }\n /** Switches to a new position strategy and updates the overlay position. */\n updatePositionStrategy(strategy) {\n if (strategy === this._positionStrategy) {\n return;\n }\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._positionStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n this.updatePosition();\n }\n }\n /** Update the size properties of the overlay. */\n updateSize(sizeConfig) {\n this._config = Object.assign(Object.assign({}, this._config), sizeConfig);\n this._updateElementSize();\n }\n /** Sets the LTR/RTL direction for the overlay. */\n setDirection(dir) {\n this._config = Object.assign(Object.assign({}, this._config), { direction: dir });\n this._updateElementDirection();\n }\n /** Add a CSS class or an array of classes to the overlay pane. */\n addPanelClass(classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, true);\n }\n }\n /** Remove a CSS class or an array of classes from the overlay pane. */\n removePanelClass(classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, false);\n }\n }\n /**\n * Returns the layout direction of the overlay panel.\n */\n getDirection() {\n const direction = this._config.direction;\n if (!direction) {\n return 'ltr';\n }\n return typeof direction === 'string' ? direction : direction.value;\n }\n /** Switches to a new scroll strategy. */\n updateScrollStrategy(strategy) {\n if (strategy === this._scrollStrategy) {\n return;\n }\n this._disposeScrollStrategy();\n this._scrollStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n strategy.enable();\n }\n }\n /** Updates the text direction of the overlay panel. */\n _updateElementDirection() {\n this._host.setAttribute('dir', this.getDirection());\n }\n /** Updates the size of the overlay element based on the overlay config. */\n _updateElementSize() {\n if (!this._pane) {\n return;\n }\n const style = this._pane.style;\n style.width = coerceCssPixelValue(this._config.width);\n style.height = coerceCssPixelValue(this._config.height);\n style.minWidth = coerceCssPixelValue(this._config.minWidth);\n style.minHeight = coerceCssPixelValue(this._config.minHeight);\n style.maxWidth = coerceCssPixelValue(this._config.maxWidth);\n style.maxHeight = coerceCssPixelValue(this._config.maxHeight);\n }\n /** Toggles the pointer events for the overlay pane element. */\n _togglePointerEvents(enablePointer) {\n this._pane.style.pointerEvents = enablePointer ? '' : 'none';\n }\n /** Attaches a backdrop for this overlay. */\n _attachBackdrop() {\n const showingClass = 'cdk-overlay-backdrop-showing';\n this._backdropElement = this._document.createElement('div');\n this._backdropElement.classList.add('cdk-overlay-backdrop');\n if (this._config.backdropClass) {\n this._toggleClasses(this._backdropElement, this._config.backdropClass, true);\n }\n // Insert the backdrop before the pane in the DOM order,\n // in order to handle stacked overlays properly.\n this._host.parentElement.insertBefore(this._backdropElement, this._host);\n // Forward backdrop clicks such that the consumer of the overlay can perform whatever\n // action desired when such a click occurs (usually closing the overlay).\n this._backdropElement.addEventListener('click', this._backdropClickHandler);\n // Add class to fade-in the backdrop after one frame.\n if (typeof requestAnimationFrame !== 'undefined') {\n this._ngZone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n if (this._backdropElement) {\n this._backdropElement.classList.add(showingClass);\n }\n });\n });\n }\n else {\n this._backdropElement.classList.add(showingClass);\n }\n }\n /**\n * Updates the stacking order of the element, moving it to the top if necessary.\n * This is required in cases where one overlay was detached, while another one,\n * that should be behind it, was destroyed. The next time both of them are opened,\n * the stacking will be wrong, because the detached element's pane will still be\n * in its original DOM position.\n */\n _updateStackingOrder() {\n if (this._host.nextSibling) {\n this._host.parentNode.appendChild(this._host);\n }\n }\n /** Detaches the backdrop (if any) associated with the overlay. */\n detachBackdrop() {\n const backdropToDetach = this._backdropElement;\n if (!backdropToDetach) {\n return;\n }\n let timeoutId;\n const finishDetach = () => {\n // It may not be attached to anything in certain cases (e.g. unit tests).\n if (backdropToDetach) {\n backdropToDetach.removeEventListener('click', this._backdropClickHandler);\n backdropToDetach.removeEventListener('transitionend', finishDetach);\n this._disposeBackdrop(backdropToDetach);\n }\n if (this._config.backdropClass) {\n this._toggleClasses(backdropToDetach, this._config.backdropClass, false);\n }\n clearTimeout(timeoutId);\n };\n backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');\n this._ngZone.runOutsideAngular(() => {\n backdropToDetach.addEventListener('transitionend', finishDetach);\n });\n // If the backdrop doesn't have a transition, the `transitionend` event won't fire.\n // In this case we make it unclickable and we try to remove it after a delay.\n backdropToDetach.style.pointerEvents = 'none';\n // Run this outside the Angular zone because there's nothing that Angular cares about.\n // If it were to run inside the Angular zone, every test that used Overlay would have to be\n // either async or fakeAsync.\n timeoutId = this._ngZone.runOutsideAngular(() => setTimeout(finishDetach, 500));\n }\n /** Toggles a single CSS class or an array of classes on an element. */\n _toggleClasses(element, cssClasses, isAdd) {\n const classes = coerceArray(cssClasses || []).filter(c => !!c);\n if (classes.length) {\n isAdd ? element.classList.add(...classes) : element.classList.remove(...classes);\n }\n }\n /** Detaches the overlay content next time the zone stabilizes. */\n _detachContentWhenStable() {\n // Normally we wouldn't have to explicitly run this outside the `NgZone`, however\n // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will\n // be patched to run inside the zone, which will throw us into an infinite loop.\n this._ngZone.runOutsideAngular(() => {\n // We can't remove the host here immediately, because the overlay pane's content\n // might still be animating. This stream helps us avoid interrupting the animation\n // by waiting for the pane to become empty.\n const subscription = this._ngZone.onStable\n .pipe(takeUntil(merge(this._attachments, this._detachments)))\n .subscribe(() => {\n // Needs a couple of checks for the pane and host, because\n // they may have been removed by the time the zone stabilizes.\n if (!this._pane || !this._host || this._pane.children.length === 0) {\n if (this._pane && this._config.panelClass) {\n this._toggleClasses(this._pane, this._config.panelClass, false);\n }\n if (this._host && this._host.parentElement) {\n this._previousHostParent = this._host.parentElement;\n this._host.remove();\n }\n subscription.unsubscribe();\n }\n });\n });\n }\n /** Disposes of a scroll strategy. */\n _disposeScrollStrategy() {\n const scrollStrategy = this._scrollStrategy;\n if (scrollStrategy) {\n scrollStrategy.disable();\n if (scrollStrategy.detach) {\n scrollStrategy.detach();\n }\n }\n }\n /** Removes a backdrop element from the DOM. */\n _disposeBackdrop(backdrop) {\n if (backdrop) {\n backdrop.remove();\n // It is possible that a new portal has been attached to this overlay since we started\n // removing the backdrop. If that is the case, only clear the backdrop reference if it\n // is still the same instance that we started to remove.\n if (this._backdropElement === backdrop) {\n this._backdropElement = null;\n }\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Container inside which all overlays will render. */\nclass OverlayContainer {\n constructor(document, _platform) {\n this._platform = _platform;\n this._document = document;\n }\n ngOnDestroy() {\n var _a;\n (_a = this._containerElement) === null || _a === void 0 ? void 0 : _a.remove();\n }\n /**\n * This method returns the overlay container element. It will lazily\n * create the element the first time it is called to facilitate using\n * the container in non-browser environments.\n * @returns the container element\n */\n getContainerElement() {\n if (!this._containerElement) {\n this._createContainer();\n }\n return this._containerElement;\n }\n /**\n * Create the overlay container element, which is simply a div\n * with the 'cdk-overlay-container' class on the document body.\n */\n _createContainer() {\n const containerClass = 'cdk-overlay-container';\n // TODO(crisbeto): remove the testing check once we have an overlay testing\n // module or Angular starts tearing down the testing `NgModule`. See:\n // https://github.com/angular/angular/issues/18831\n if (this._platform.isBrowser || _isTestEnvironment()) {\n const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform=\"server\"], ` + `.${containerClass}[platform=\"test\"]`);\n // Remove any old containers from the opposite platform.\n // This can happen when transitioning from the server to the client.\n for (let i = 0; i < oppositePlatformContainers.length; i++) {\n oppositePlatformContainers[i].remove();\n }\n }\n const container = this._document.createElement('div');\n container.classList.add(containerClass);\n // A long time ago we kept adding new overlay containers whenever a new app was instantiated,\n // but at some point we added logic which clears the duplicate ones in order to avoid leaks.\n // The new logic was a little too aggressive since it was breaking some legitimate use cases.\n // To mitigate the problem we made it so that only containers from a different platform are\n // cleared, but the side-effect was that people started depending on the overly-aggressive\n // logic to clean up their tests for them. Until we can introduce an overlay-specific testing\n // module which does the cleanup, we try to detect that we're in a test environment and we\n // always clear the container. See #17006.\n // TODO(crisbeto): remove the test environment check once we have an overlay testing module.\n if (_isTestEnvironment()) {\n container.setAttribute('platform', 'test');\n }\n else if (!this._platform.isBrowser) {\n container.setAttribute('platform', 'server');\n }\n this._document.body.appendChild(container);\n this._containerElement = container;\n }\n}\nOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayContainer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayContainer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1$1.Platform }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO: refactor clipping detection into a separate thing (part of scrolling module)\n// TODO: doesn't handle both flexible width and height when it has to scroll along both axis.\n/** Class to be added to the overlay bounding box. */\nconst boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';\n/** Regex used to split a string on its CSS units. */\nconst cssUnitPattern = /([A-Za-z%]+)$/;\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n */\nclass FlexibleConnectedPositionStrategy {\n constructor(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */\n this._lastBoundingBoxSize = { width: 0, height: 0 };\n /** Whether the overlay was pushed in a previous positioning. */\n this._isPushed = false;\n /** Whether the overlay can be pushed on-screen on the initial open. */\n this._canPush = true;\n /** Whether the overlay can grow via flexible width/height after the initial open. */\n this._growAfterOpen = false;\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n this._hasFlexibleDimensions = true;\n /** Whether the overlay position is locked. */\n this._positionLocked = false;\n /** Amount of space that must be maintained between the overlay and the edge of the viewport. */\n this._viewportMargin = 0;\n /** The Scrollable containers used to check scrollable view properties on position change. */\n this._scrollables = [];\n /** Ordered list of preferred positions, from most to least desirable. */\n this._preferredPositions = [];\n /** Subject that emits whenever the position changes. */\n this._positionChanges = new Subject();\n /** Subscription to viewport size changes. */\n this._resizeSubscription = Subscription.EMPTY;\n /** Default offset for the overlay along the x axis. */\n this._offsetX = 0;\n /** Default offset for the overlay along the y axis. */\n this._offsetY = 0;\n /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */\n this._appliedPanelClasses = [];\n /** Observable sequence of position changes. */\n this.positionChanges = this._positionChanges;\n this.setOrigin(connectedTo);\n }\n /** Ordered list of preferred positions, from most to least desirable. */\n get positions() {\n return this._preferredPositions;\n }\n /** Attaches this position strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef &&\n overlayRef !== this._overlayRef &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('This position strategy is already attached to an overlay');\n }\n this._validatePositions();\n overlayRef.hostElement.classList.add(boundingBoxClass);\n this._overlayRef = overlayRef;\n this._boundingBox = overlayRef.hostElement;\n this._pane = overlayRef.overlayElement;\n this._isDisposed = false;\n this._isInitialRender = true;\n this._lastPosition = null;\n this._resizeSubscription.unsubscribe();\n this._resizeSubscription = this._viewportRuler.change().subscribe(() => {\n // When the window is resized, we want to trigger the next reposition as if it\n // was an initial render, in order for the strategy to pick a new optimal position,\n // otherwise position locking will cause it to stay at the old one.\n this._isInitialRender = true;\n this.apply();\n });\n }\n /**\n * Updates the position of the overlay element, using whichever preferred position relative\n * to the origin best fits on-screen.\n *\n * The selection of a position goes as follows:\n * - If any positions fit completely within the viewport as-is,\n * choose the first position that does so.\n * - If flexible dimensions are enabled and at least one satifies the given minimum width/height,\n * choose the position with the greatest available size modified by the positions' weight.\n * - If pushing is enabled, take the position that went off-screen the least and push it\n * on-screen.\n * - If none of the previous criteria were met, use the position that goes off-screen the least.\n * @docs-private\n */\n apply() {\n // We shouldn't do anything if the strategy was disposed or we're on the server.\n if (this._isDisposed || !this._platform.isBrowser) {\n return;\n }\n // If the position has been applied already (e.g. when the overlay was opened) and the\n // consumer opted into locking in the position, re-use the old position, in order to\n // prevent the overlay from jumping around.\n if (!this._isInitialRender && this._positionLocked && this._lastPosition) {\n this.reapplyLastPosition();\n return;\n }\n this._clearPanelClasses();\n this._resetOverlayElementStyles();\n this._resetBoundingBoxStyles();\n // We need the bounding rects for the origin and the overlay to determine how to position\n // the overlay relative to the origin.\n // We use the viewport rect to determine whether a position would go off-screen.\n this._viewportRect = this._getNarrowedViewportRect();\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n const originRect = this._originRect;\n const overlayRect = this._overlayRect;\n const viewportRect = this._viewportRect;\n // Positions where the overlay will fit with flexible dimensions.\n const flexibleFits = [];\n // Fallback if none of the preferred positions fit within the viewport.\n let fallback;\n // Go through each of the preferred positions looking for a good fit.\n // If a good fit is found, it will be applied immediately.\n for (let pos of this._preferredPositions) {\n // Get the exact (x, y) coordinate for the point-of-origin on the origin element.\n let originPoint = this._getOriginPoint(originRect, pos);\n // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the\n // overlay in this position. We use the top-left corner for calculations and later translate\n // this into an appropriate (top, left, bottom, right) style.\n let overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos);\n // Calculate how well the overlay would fit into the viewport with this point.\n let overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos);\n // If the overlay, without any further work, fits into the viewport, use this position.\n if (overlayFit.isCompletelyWithinViewport) {\n this._isPushed = false;\n this._applyPosition(pos, originPoint);\n return;\n }\n // If the overlay has flexible dimensions, we can use this position\n // so long as there's enough space for the minimum dimensions.\n if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {\n // Save positions where the overlay will fit with flexible dimensions. We will use these\n // if none of the positions fit *without* flexible dimensions.\n flexibleFits.push({\n position: pos,\n origin: originPoint,\n overlayRect,\n boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos),\n });\n continue;\n }\n // If the current preferred position does not fit on the screen, remember the position\n // if it has more visible area on-screen than we've seen and move onto the next preferred\n // position.\n if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {\n fallback = { overlayFit, overlayPoint, originPoint, position: pos, overlayRect };\n }\n }\n // If there are any positions where the overlay would fit with flexible dimensions, choose the\n // one that has the greatest area available modified by the position's weight\n if (flexibleFits.length) {\n let bestFit = null;\n let bestScore = -1;\n for (const fit of flexibleFits) {\n const score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);\n if (score > bestScore) {\n bestScore = score;\n bestFit = fit;\n }\n }\n this._isPushed = false;\n this._applyPosition(bestFit.position, bestFit.origin);\n return;\n }\n // When none of the preferred positions fit within the viewport, take the position\n // that went off-screen the least and attempt to push it on-screen.\n if (this._canPush) {\n // TODO(jelbourn): after pushing, the opening \"direction\" of the overlay might not make sense.\n this._isPushed = true;\n this._applyPosition(fallback.position, fallback.originPoint);\n return;\n }\n // All options for getting the overlay within the viewport have been exhausted, so go with the\n // position that went off-screen the least.\n this._applyPosition(fallback.position, fallback.originPoint);\n }\n detach() {\n this._clearPanelClasses();\n this._lastPosition = null;\n this._previousPushAmount = null;\n this._resizeSubscription.unsubscribe();\n }\n /** Cleanup after the element gets destroyed. */\n dispose() {\n if (this._isDisposed) {\n return;\n }\n // We can't use `_resetBoundingBoxStyles` here, because it resets\n // some properties to zero, rather than removing them.\n if (this._boundingBox) {\n extendStyles(this._boundingBox.style, {\n top: '',\n left: '',\n right: '',\n bottom: '',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: '',\n });\n }\n if (this._pane) {\n this._resetOverlayElementStyles();\n }\n if (this._overlayRef) {\n this._overlayRef.hostElement.classList.remove(boundingBoxClass);\n }\n this.detach();\n this._positionChanges.complete();\n this._overlayRef = this._boundingBox = null;\n this._isDisposed = true;\n }\n /**\n * This re-aligns the overlay element with the trigger in its last calculated position,\n * even if a position higher in the \"preferred positions\" list would now fit. This\n * allows one to re-align the panel without changing the orientation of the panel.\n */\n reapplyLastPosition() {\n if (!this._isDisposed && (!this._platform || this._platform.isBrowser)) {\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n this._viewportRect = this._getNarrowedViewportRect();\n const lastPosition = this._lastPosition || this._preferredPositions[0];\n const originPoint = this._getOriginPoint(this._originRect, lastPosition);\n this._applyPosition(lastPosition, originPoint);\n }\n }\n /**\n * Sets the list of Scrollable containers that host the origin element so that\n * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n * Scrollable must be an ancestor element of the strategy's origin element.\n */\n withScrollableContainers(scrollables) {\n this._scrollables = scrollables;\n return this;\n }\n /**\n * Adds new preferred positions.\n * @param positions List of positions options for this overlay.\n */\n withPositions(positions) {\n this._preferredPositions = positions;\n // If the last calculated position object isn't part of the positions anymore, clear\n // it in order to avoid it being picked up if the consumer tries to re-apply.\n if (positions.indexOf(this._lastPosition) === -1) {\n this._lastPosition = null;\n }\n this._validatePositions();\n return this;\n }\n /**\n * Sets a minimum distance the overlay may be positioned to the edge of the viewport.\n * @param margin Required margin between the overlay and the viewport edge in pixels.\n */\n withViewportMargin(margin) {\n this._viewportMargin = margin;\n return this;\n }\n /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */\n withFlexibleDimensions(flexibleDimensions = true) {\n this._hasFlexibleDimensions = flexibleDimensions;\n return this;\n }\n /** Sets whether the overlay can grow after the initial open via flexible width/height. */\n withGrowAfterOpen(growAfterOpen = true) {\n this._growAfterOpen = growAfterOpen;\n return this;\n }\n /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */\n withPush(canPush = true) {\n this._canPush = canPush;\n return this;\n }\n /**\n * Sets whether the overlay's position should be locked in after it is positioned\n * initially. When an overlay is locked in, it won't attempt to reposition itself\n * when the position is re-applied (e.g. when the user scrolls away).\n * @param isLocked Whether the overlay should locked in.\n */\n withLockedPosition(isLocked = true) {\n this._positionLocked = isLocked;\n return this;\n }\n /**\n * Sets the origin, relative to which to position the overlay.\n * Using an element origin is useful for building components that need to be positioned\n * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be\n * used for cases like contextual menus which open relative to the user's pointer.\n * @param origin Reference to the new origin.\n */\n setOrigin(origin) {\n this._origin = origin;\n return this;\n }\n /**\n * Sets the default offset for the overlay's connection point on the x-axis.\n * @param offset New offset in the X axis.\n */\n withDefaultOffsetX(offset) {\n this._offsetX = offset;\n return this;\n }\n /**\n * Sets the default offset for the overlay's connection point on the y-axis.\n * @param offset New offset in the Y axis.\n */\n withDefaultOffsetY(offset) {\n this._offsetY = offset;\n return this;\n }\n /**\n * Configures that the position strategy should set a `transform-origin` on some elements\n * inside the overlay, depending on the current position that is being applied. This is\n * useful for the cases where the origin of an animation can change depending on the\n * alignment of the overlay.\n * @param selector CSS selector that will be used to find the target\n * elements onto which to set the transform origin.\n */\n withTransformOriginOn(selector) {\n this._transformOriginSelector = selector;\n return this;\n }\n /**\n * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.\n */\n _getOriginPoint(originRect, pos) {\n let x;\n if (pos.originX == 'center') {\n // Note: when centering we should always use the `left`\n // offset, otherwise the position will be wrong in RTL.\n x = originRect.left + originRect.width / 2;\n }\n else {\n const startX = this._isRtl() ? originRect.right : originRect.left;\n const endX = this._isRtl() ? originRect.left : originRect.right;\n x = pos.originX == 'start' ? startX : endX;\n }\n let y;\n if (pos.originY == 'center') {\n y = originRect.top + originRect.height / 2;\n }\n else {\n y = pos.originY == 'top' ? originRect.top : originRect.bottom;\n }\n return { x, y };\n }\n /**\n * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and\n * origin point to which the overlay should be connected.\n */\n _getOverlayPoint(originPoint, overlayRect, pos) {\n // Calculate the (overlayStartX, overlayStartY), the start of the\n // potential overlay position relative to the origin point.\n let overlayStartX;\n if (pos.overlayX == 'center') {\n overlayStartX = -overlayRect.width / 2;\n }\n else if (pos.overlayX === 'start') {\n overlayStartX = this._isRtl() ? -overlayRect.width : 0;\n }\n else {\n overlayStartX = this._isRtl() ? 0 : -overlayRect.width;\n }\n let overlayStartY;\n if (pos.overlayY == 'center') {\n overlayStartY = -overlayRect.height / 2;\n }\n else {\n overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;\n }\n // The (x, y) coordinates of the overlay.\n return {\n x: originPoint.x + overlayStartX,\n y: originPoint.y + overlayStartY,\n };\n }\n /** Gets how well an overlay at the given point will fit within the viewport. */\n _getOverlayFit(point, rawOverlayRect, viewport, position) {\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n let { x, y } = point;\n let offsetX = this._getOffset(position, 'x');\n let offsetY = this._getOffset(position, 'y');\n // Account for the offsets since they could push the overlay out of the viewport.\n if (offsetX) {\n x += offsetX;\n }\n if (offsetY) {\n y += offsetY;\n }\n // How much the overlay would overflow at this position, on each side.\n let leftOverflow = 0 - x;\n let rightOverflow = x + overlay.width - viewport.width;\n let topOverflow = 0 - y;\n let bottomOverflow = y + overlay.height - viewport.height;\n // Visible parts of the element on each axis.\n let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);\n let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);\n let visibleArea = visibleWidth * visibleHeight;\n return {\n visibleArea,\n isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,\n fitsInViewportVertically: visibleHeight === overlay.height,\n fitsInViewportHorizontally: visibleWidth == overlay.width,\n };\n }\n /**\n * Whether the overlay can fit within the viewport when it may resize either its width or height.\n * @param fit How well the overlay fits in the viewport at some position.\n * @param point The (x, y) coordinates of the overlat at some position.\n * @param viewport The geometry of the viewport.\n */\n _canFitWithFlexibleDimensions(fit, point, viewport) {\n if (this._hasFlexibleDimensions) {\n const availableHeight = viewport.bottom - point.y;\n const availableWidth = viewport.right - point.x;\n const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);\n const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);\n const verticalFit = fit.fitsInViewportVertically || (minHeight != null && minHeight <= availableHeight);\n const horizontalFit = fit.fitsInViewportHorizontally || (minWidth != null && minWidth <= availableWidth);\n return verticalFit && horizontalFit;\n }\n return false;\n }\n /**\n * Gets the point at which the overlay can be \"pushed\" on-screen. If the overlay is larger than\n * the viewport, the top-left corner will be pushed on-screen (with overflow occuring on the\n * right and bottom).\n *\n * @param start Starting point from which the overlay is pushed.\n * @param overlay Dimensions of the overlay.\n * @param scrollPosition Current viewport scroll position.\n * @returns The point at which to position the overlay after pushing. This is effectively a new\n * originPoint.\n */\n _pushOverlayOnScreen(start, rawOverlayRect, scrollPosition) {\n // If the position is locked and we've pushed the overlay already, reuse the previous push\n // amount, rather than pushing it again. If we were to continue pushing, the element would\n // remain in the viewport, which goes against the expectations when position locking is enabled.\n if (this._previousPushAmount && this._positionLocked) {\n return {\n x: start.x + this._previousPushAmount.x,\n y: start.y + this._previousPushAmount.y,\n };\n }\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n const viewport = this._viewportRect;\n // Determine how much the overlay goes outside the viewport on each\n // side, which we'll use to decide which direction to push it.\n const overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);\n const overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);\n const overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);\n const overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0);\n // Amount by which to push the overlay in each axis such that it remains on-screen.\n let pushX = 0;\n let pushY = 0;\n // If the overlay fits completely within the bounds of the viewport, push it from whichever\n // direction is goes off-screen. Otherwise, push the top-left corner such that its in the\n // viewport and allow for the trailing end of the overlay to go out of bounds.\n if (overlay.width <= viewport.width) {\n pushX = overflowLeft || -overflowRight;\n }\n else {\n pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;\n }\n if (overlay.height <= viewport.height) {\n pushY = overflowTop || -overflowBottom;\n }\n else {\n pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;\n }\n this._previousPushAmount = { x: pushX, y: pushY };\n return {\n x: start.x + pushX,\n y: start.y + pushY,\n };\n }\n /**\n * Applies a computed position to the overlay and emits a position change.\n * @param position The position preference\n * @param originPoint The point on the origin element where the overlay is connected.\n */\n _applyPosition(position, originPoint) {\n this._setTransformOrigin(position);\n this._setOverlayElementStyles(originPoint, position);\n this._setBoundingBoxStyles(originPoint, position);\n if (position.panelClass) {\n this._addPanelClasses(position.panelClass);\n }\n // Save the last connected position in case the position needs to be re-calculated.\n this._lastPosition = position;\n // Notify that the position has been changed along with its change properties.\n // We only emit if we've got any subscriptions, because the scroll visibility\n // calculcations can be somewhat expensive.\n if (this._positionChanges.observers.length) {\n const scrollableViewProperties = this._getScrollVisibility();\n const changeEvent = new ConnectedOverlayPositionChange(position, scrollableViewProperties);\n this._positionChanges.next(changeEvent);\n }\n this._isInitialRender = false;\n }\n /** Sets the transform origin based on the configured selector and the passed-in position. */\n _setTransformOrigin(position) {\n if (!this._transformOriginSelector) {\n return;\n }\n const elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);\n let xOrigin;\n let yOrigin = position.overlayY;\n if (position.overlayX === 'center') {\n xOrigin = 'center';\n }\n else if (this._isRtl()) {\n xOrigin = position.overlayX === 'start' ? 'right' : 'left';\n }\n else {\n xOrigin = position.overlayX === 'start' ? 'left' : 'right';\n }\n for (let i = 0; i < elements.length; i++) {\n elements[i].style.transformOrigin = `${xOrigin} ${yOrigin}`;\n }\n }\n /**\n * Gets the position and size of the overlay's sizing container.\n *\n * This method does no measuring and applies no styles so that we can cheaply compute the\n * bounds for all positions and choose the best fit based on these results.\n */\n _calculateBoundingBoxRect(origin, position) {\n const viewport = this._viewportRect;\n const isRtl = this._isRtl();\n let height, top, bottom;\n if (position.overlayY === 'top') {\n // Overlay is opening \"downward\" and thus is bound by the bottom viewport edge.\n top = origin.y;\n height = viewport.height - top + this._viewportMargin;\n }\n else if (position.overlayY === 'bottom') {\n // Overlay is opening \"upward\" and thus is bound by the top viewport edge. We need to add\n // the viewport margin back in, because the viewport rect is narrowed down to remove the\n // margin, whereas the `origin` position is calculated based on its `ClientRect`.\n bottom = viewport.height - origin.y + this._viewportMargin * 2;\n height = viewport.height - bottom + this._viewportMargin;\n }\n else {\n // If neither top nor bottom, it means that the overlay is vertically centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.bottom - origin.y` and\n // `origin.y - viewport.top`.\n const smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);\n const previousHeight = this._lastBoundingBoxSize.height;\n height = smallestDistanceToViewportEdge * 2;\n top = origin.y - smallestDistanceToViewportEdge;\n if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {\n top = origin.y - previousHeight / 2;\n }\n }\n // The overlay is opening 'right-ward' (the content flows to the right).\n const isBoundedByRightViewportEdge = (position.overlayX === 'start' && !isRtl) || (position.overlayX === 'end' && isRtl);\n // The overlay is opening 'left-ward' (the content flows to the left).\n const isBoundedByLeftViewportEdge = (position.overlayX === 'end' && !isRtl) || (position.overlayX === 'start' && isRtl);\n let width, left, right;\n if (isBoundedByLeftViewportEdge) {\n right = viewport.width - origin.x + this._viewportMargin;\n width = origin.x - this._viewportMargin;\n }\n else if (isBoundedByRightViewportEdge) {\n left = origin.x;\n width = viewport.right - origin.x;\n }\n else {\n // If neither start nor end, it means that the overlay is horizontally centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.right - origin.x` and\n // `origin.x - viewport.left`.\n const smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);\n const previousWidth = this._lastBoundingBoxSize.width;\n width = smallestDistanceToViewportEdge * 2;\n left = origin.x - smallestDistanceToViewportEdge;\n if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {\n left = origin.x - previousWidth / 2;\n }\n }\n return { top: top, left: left, bottom: bottom, right: right, width, height };\n }\n /**\n * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the\n * origin's connection point and stetches to the bounds of the viewport.\n *\n * @param origin The point on the origin element where the overlay is connected.\n * @param position The position preference\n */\n _setBoundingBoxStyles(origin, position) {\n const boundingBoxRect = this._calculateBoundingBoxRect(origin, position);\n // It's weird if the overlay *grows* while scrolling, so we take the last size into account\n // when applying a new size.\n if (!this._isInitialRender && !this._growAfterOpen) {\n boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);\n boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);\n }\n const styles = {};\n if (this._hasExactPosition()) {\n styles.top = styles.left = '0';\n styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';\n styles.width = styles.height = '100%';\n }\n else {\n const maxHeight = this._overlayRef.getConfig().maxHeight;\n const maxWidth = this._overlayRef.getConfig().maxWidth;\n styles.height = coerceCssPixelValue(boundingBoxRect.height);\n styles.top = coerceCssPixelValue(boundingBoxRect.top);\n styles.bottom = coerceCssPixelValue(boundingBoxRect.bottom);\n styles.width = coerceCssPixelValue(boundingBoxRect.width);\n styles.left = coerceCssPixelValue(boundingBoxRect.left);\n styles.right = coerceCssPixelValue(boundingBoxRect.right);\n // Push the pane content towards the proper direction.\n if (position.overlayX === 'center') {\n styles.alignItems = 'center';\n }\n else {\n styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';\n }\n if (position.overlayY === 'center') {\n styles.justifyContent = 'center';\n }\n else {\n styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';\n }\n if (maxHeight) {\n styles.maxHeight = coerceCssPixelValue(maxHeight);\n }\n if (maxWidth) {\n styles.maxWidth = coerceCssPixelValue(maxWidth);\n }\n }\n this._lastBoundingBoxSize = boundingBoxRect;\n extendStyles(this._boundingBox.style, styles);\n }\n /** Resets the styles for the bounding box so that a new positioning can be computed. */\n _resetBoundingBoxStyles() {\n extendStyles(this._boundingBox.style, {\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: '',\n });\n }\n /** Resets the styles for the overlay pane so that a new positioning can be computed. */\n _resetOverlayElementStyles() {\n extendStyles(this._pane.style, {\n top: '',\n left: '',\n bottom: '',\n right: '',\n position: '',\n transform: '',\n });\n }\n /** Sets positioning styles to the overlay element. */\n _setOverlayElementStyles(originPoint, position) {\n const styles = {};\n const hasExactPosition = this._hasExactPosition();\n const hasFlexibleDimensions = this._hasFlexibleDimensions;\n const config = this._overlayRef.getConfig();\n if (hasExactPosition) {\n const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));\n extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));\n }\n else {\n styles.position = 'static';\n }\n // Use a transform to apply the offsets. We do this because the `center` positions rely on\n // being in the normal flex flow and setting a `top` / `left` at all will completely throw\n // off the position. We also can't use margins, because they won't have an effect in some\n // cases where the element doesn't have anything to \"push off of\". Finally, this works\n // better both with flexible and non-flexible positioning.\n let transformString = '';\n let offsetX = this._getOffset(position, 'x');\n let offsetY = this._getOffset(position, 'y');\n if (offsetX) {\n transformString += `translateX(${offsetX}px) `;\n }\n if (offsetY) {\n transformString += `translateY(${offsetY}px)`;\n }\n styles.transform = transformString.trim();\n // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because\n // we need these values to both be set to \"100%\" for the automatic flexible sizing to work.\n // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.\n // Note that this doesn't apply when we have an exact position, in which case we do want to\n // apply them because they'll be cleared from the bounding box.\n if (config.maxHeight) {\n if (hasExactPosition) {\n styles.maxHeight = coerceCssPixelValue(config.maxHeight);\n }\n else if (hasFlexibleDimensions) {\n styles.maxHeight = '';\n }\n }\n if (config.maxWidth) {\n if (hasExactPosition) {\n styles.maxWidth = coerceCssPixelValue(config.maxWidth);\n }\n else if (hasFlexibleDimensions) {\n styles.maxWidth = '';\n }\n }\n extendStyles(this._pane.style, styles);\n }\n /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */\n _getExactOverlayY(position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the\n // preferred position has changed since the last `apply`.\n let styles = { top: '', bottom: '' };\n let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n let virtualKeyboardOffset = this._overlayContainer\n .getContainerElement()\n .getBoundingClientRect().top;\n // Normally this would be zero, however when the overlay is attached to an input (e.g. in an\n // autocomplete), mobile browsers will shift everything in order to put the input in the middle\n // of the screen and to make space for the virtual keyboard. We need to account for this offset,\n // otherwise our positioning will be thrown off.\n overlayPoint.y -= virtualKeyboardOffset;\n // We want to set either `top` or `bottom` based on whether the overlay wants to appear\n // above or below the origin and the direction in which the element will expand.\n if (position.overlayY === 'bottom') {\n // When using `bottom`, we adjust the y position such that it is the distance\n // from the bottom of the viewport rather than the top.\n const documentHeight = this._document.documentElement.clientHeight;\n styles.bottom = `${documentHeight - (overlayPoint.y + this._overlayRect.height)}px`;\n }\n else {\n styles.top = coerceCssPixelValue(overlayPoint.y);\n }\n return styles;\n }\n /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */\n _getExactOverlayX(position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the preferred position has\n // changed since the last `apply`.\n let styles = { left: '', right: '' };\n let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n // We want to set either `left` or `right` based on whether the overlay wants to appear \"before\"\n // or \"after\" the origin, which determines the direction in which the element will expand.\n // For the horizontal axis, the meaning of \"before\" and \"after\" change based on whether the\n // page is in RTL or LTR.\n let horizontalStyleProperty;\n if (this._isRtl()) {\n horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';\n }\n else {\n horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';\n }\n // When we're setting `right`, we adjust the x position such that it is the distance\n // from the right edge of the viewport rather than the left edge.\n if (horizontalStyleProperty === 'right') {\n const documentWidth = this._document.documentElement.clientWidth;\n styles.right = `${documentWidth - (overlayPoint.x + this._overlayRect.width)}px`;\n }\n else {\n styles.left = coerceCssPixelValue(overlayPoint.x);\n }\n return styles;\n }\n /**\n * Gets the view properties of the trigger and overlay, including whether they are clipped\n * or completely outside the view of any of the strategy's scrollables.\n */\n _getScrollVisibility() {\n // Note: needs fresh rects since the position could've changed.\n const originBounds = this._getOriginRect();\n const overlayBounds = this._pane.getBoundingClientRect();\n // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers\n // every time, we should be able to use the scrollTop of the containers if the size of those\n // containers hasn't changed.\n const scrollContainerBounds = this._scrollables.map(scrollable => {\n return scrollable.getElementRef().nativeElement.getBoundingClientRect();\n });\n return {\n isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),\n isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),\n isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),\n isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds),\n };\n }\n /** Subtracts the amount that an element is overflowing on an axis from its length. */\n _subtractOverflows(length, ...overflows) {\n return overflows.reduce((currentValue, currentOverflow) => {\n return currentValue - Math.max(currentOverflow, 0);\n }, length);\n }\n /** Narrows the given viewport rect by the current _viewportMargin. */\n _getNarrowedViewportRect() {\n // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,\n // because we want to use the `clientWidth` and `clientHeight` as the base. The difference\n // being that the client properties don't include the scrollbar, as opposed to `innerWidth`\n // and `innerHeight` that do. This is necessary, because the overlay container uses\n // 100% `width` and `height` which don't include the scrollbar either.\n const width = this._document.documentElement.clientWidth;\n const height = this._document.documentElement.clientHeight;\n const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n return {\n top: scrollPosition.top + this._viewportMargin,\n left: scrollPosition.left + this._viewportMargin,\n right: scrollPosition.left + width - this._viewportMargin,\n bottom: scrollPosition.top + height - this._viewportMargin,\n width: width - 2 * this._viewportMargin,\n height: height - 2 * this._viewportMargin,\n };\n }\n /** Whether the we're dealing with an RTL context */\n _isRtl() {\n return this._overlayRef.getDirection() === 'rtl';\n }\n /** Determines whether the overlay uses exact or flexible positioning. */\n _hasExactPosition() {\n return !this._hasFlexibleDimensions || this._isPushed;\n }\n /** Retrieves the offset of a position along the x or y axis. */\n _getOffset(position, axis) {\n if (axis === 'x') {\n // We don't do something like `position['offset' + axis]` in\n // order to avoid breking minifiers that rename properties.\n return position.offsetX == null ? this._offsetX : position.offsetX;\n }\n return position.offsetY == null ? this._offsetY : position.offsetY;\n }\n /** Validates that the current position match the expected values. */\n _validatePositions() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._preferredPositions.length) {\n throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');\n }\n // TODO(crisbeto): remove these once Angular's template type\n // checking is advanced enough to catch these cases.\n this._preferredPositions.forEach(pair => {\n validateHorizontalPosition('originX', pair.originX);\n validateVerticalPosition('originY', pair.originY);\n validateHorizontalPosition('overlayX', pair.overlayX);\n validateVerticalPosition('overlayY', pair.overlayY);\n });\n }\n }\n /** Adds a single CSS class or an array of classes on the overlay panel. */\n _addPanelClasses(cssClasses) {\n if (this._pane) {\n coerceArray(cssClasses).forEach(cssClass => {\n if (cssClass !== '' && this._appliedPanelClasses.indexOf(cssClass) === -1) {\n this._appliedPanelClasses.push(cssClass);\n this._pane.classList.add(cssClass);\n }\n });\n }\n }\n /** Clears the classes that the position strategy has applied from the overlay panel. */\n _clearPanelClasses() {\n if (this._pane) {\n this._appliedPanelClasses.forEach(cssClass => {\n this._pane.classList.remove(cssClass);\n });\n this._appliedPanelClasses = [];\n }\n }\n /** Returns the ClientRect of the current origin. */\n _getOriginRect() {\n const origin = this._origin;\n if (origin instanceof ElementRef) {\n return origin.nativeElement.getBoundingClientRect();\n }\n // Check for Element so SVG elements are also supported.\n if (origin instanceof Element) {\n return origin.getBoundingClientRect();\n }\n const width = origin.width || 0;\n const height = origin.height || 0;\n // If the origin is a point, return a client rect as if it was a 0x0 element at the point.\n return {\n top: origin.y,\n bottom: origin.y + height,\n left: origin.x,\n right: origin.x + width,\n height,\n width,\n };\n }\n}\n/** Shallow-extends a stylesheet object with another stylesheet object. */\nfunction extendStyles(destination, source) {\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n destination[key] = source[key];\n }\n }\n return destination;\n}\n/**\n * Extracts the pixel value as a number from a value, if it's a number\n * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.\n */\nfunction getPixelValue(input) {\n if (typeof input !== 'number' && input != null) {\n const [value, units] = input.split(cssUnitPattern);\n return !units || units === 'px' ? parseFloat(value) : null;\n }\n return input || null;\n}\n/**\n * Gets a version of an element's bounding `ClientRect` where all the values are rounded down to\n * the nearest pixel. This allows us to account for the cases where there may be sub-pixel\n * deviations in the `ClientRect` returned by the browser (e.g. when zoomed in with a percentage\n * size, see #21350).\n */\nfunction getRoundedBoundingClientRect(clientRect) {\n return {\n top: Math.floor(clientRect.top),\n right: Math.floor(clientRect.right),\n bottom: Math.floor(clientRect.bottom),\n left: Math.floor(clientRect.left),\n width: Math.floor(clientRect.width),\n height: Math.floor(clientRect.height),\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Class to be added to the overlay pane wrapper. */\nconst wrapperClass = 'cdk-global-overlay-wrapper';\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * explicit position relative to the browser's viewport. We use flexbox, instead of\n * transforms, in order to avoid issues with subpixel rendering which can cause the\n * element to become blurry.\n */\nclass GlobalPositionStrategy {\n constructor() {\n this._cssPosition = 'static';\n this._topOffset = '';\n this._bottomOffset = '';\n this._leftOffset = '';\n this._rightOffset = '';\n this._alignItems = '';\n this._justifyContent = '';\n this._width = '';\n this._height = '';\n }\n attach(overlayRef) {\n const config = overlayRef.getConfig();\n this._overlayRef = overlayRef;\n if (this._width && !config.width) {\n overlayRef.updateSize({ width: this._width });\n }\n if (this._height && !config.height) {\n overlayRef.updateSize({ height: this._height });\n }\n overlayRef.hostElement.classList.add(wrapperClass);\n this._isDisposed = false;\n }\n /**\n * Sets the top position of the overlay. Clears any previously set vertical position.\n * @param value New top offset.\n */\n top(value = '') {\n this._bottomOffset = '';\n this._topOffset = value;\n this._alignItems = 'flex-start';\n return this;\n }\n /**\n * Sets the left position of the overlay. Clears any previously set horizontal position.\n * @param value New left offset.\n */\n left(value = '') {\n this._rightOffset = '';\n this._leftOffset = value;\n this._justifyContent = 'flex-start';\n return this;\n }\n /**\n * Sets the bottom position of the overlay. Clears any previously set vertical position.\n * @param value New bottom offset.\n */\n bottom(value = '') {\n this._topOffset = '';\n this._bottomOffset = value;\n this._alignItems = 'flex-end';\n return this;\n }\n /**\n * Sets the right position of the overlay. Clears any previously set horizontal position.\n * @param value New right offset.\n */\n right(value = '') {\n this._leftOffset = '';\n this._rightOffset = value;\n this._justifyContent = 'flex-end';\n return this;\n }\n /**\n * Sets the overlay width and clears any previously set width.\n * @param value New width for the overlay\n * @deprecated Pass the `width` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n width(value = '') {\n if (this._overlayRef) {\n this._overlayRef.updateSize({ width: value });\n }\n else {\n this._width = value;\n }\n return this;\n }\n /**\n * Sets the overlay height and clears any previously set height.\n * @param value New height for the overlay\n * @deprecated Pass the `height` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n height(value = '') {\n if (this._overlayRef) {\n this._overlayRef.updateSize({ height: value });\n }\n else {\n this._height = value;\n }\n return this;\n }\n /**\n * Centers the overlay horizontally with an optional offset.\n * Clears any previously set horizontal position.\n *\n * @param offset Overlay offset from the horizontal center.\n */\n centerHorizontally(offset = '') {\n this.left(offset);\n this._justifyContent = 'center';\n return this;\n }\n /**\n * Centers the overlay vertically with an optional offset.\n * Clears any previously set vertical position.\n *\n * @param offset Overlay offset from the vertical center.\n */\n centerVertically(offset = '') {\n this.top(offset);\n this._alignItems = 'center';\n return this;\n }\n /**\n * Apply the position to the element.\n * @docs-private\n */\n apply() {\n // Since the overlay ref applies the strategy asynchronously, it could\n // have been disposed before it ends up being applied. If that is the\n // case, we shouldn't do anything.\n if (!this._overlayRef || !this._overlayRef.hasAttached()) {\n return;\n }\n const styles = this._overlayRef.overlayElement.style;\n const parentStyles = this._overlayRef.hostElement.style;\n const config = this._overlayRef.getConfig();\n const { width, height, maxWidth, maxHeight } = config;\n const shouldBeFlushHorizontally = (width === '100%' || width === '100vw') &&\n (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');\n const shouldBeFlushVertically = (height === '100%' || height === '100vh') &&\n (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');\n styles.position = this._cssPosition;\n styles.marginLeft = shouldBeFlushHorizontally ? '0' : this._leftOffset;\n styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;\n styles.marginBottom = this._bottomOffset;\n styles.marginRight = this._rightOffset;\n if (shouldBeFlushHorizontally) {\n parentStyles.justifyContent = 'flex-start';\n }\n else if (this._justifyContent === 'center') {\n parentStyles.justifyContent = 'center';\n }\n else if (this._overlayRef.getConfig().direction === 'rtl') {\n // In RTL the browser will invert `flex-start` and `flex-end` automatically, but we\n // don't want that because our positioning is explicitly `left` and `right`, hence\n // why we do another inversion to ensure that the overlay stays in the same position.\n // TODO: reconsider this if we add `start` and `end` methods.\n if (this._justifyContent === 'flex-start') {\n parentStyles.justifyContent = 'flex-end';\n }\n else if (this._justifyContent === 'flex-end') {\n parentStyles.justifyContent = 'flex-start';\n }\n }\n else {\n parentStyles.justifyContent = this._justifyContent;\n }\n parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;\n }\n /**\n * Cleans up the DOM changes from the position strategy.\n * @docs-private\n */\n dispose() {\n if (this._isDisposed || !this._overlayRef) {\n return;\n }\n const styles = this._overlayRef.overlayElement.style;\n const parent = this._overlayRef.hostElement;\n const parentStyles = parent.style;\n parent.classList.remove(wrapperClass);\n parentStyles.justifyContent =\n parentStyles.alignItems =\n styles.marginTop =\n styles.marginBottom =\n styles.marginLeft =\n styles.marginRight =\n styles.position =\n '';\n this._overlayRef = null;\n this._isDisposed = true;\n }\n}\n\n/** Builder for overlay position strategy. */\nclass OverlayPositionBuilder {\n constructor(_viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n }\n /**\n * Creates a global position strategy.\n */\n global() {\n return new GlobalPositionStrategy();\n }\n /**\n * Creates a flexible position strategy.\n * @param origin Origin relative to which to position the overlay.\n */\n flexibleConnectedTo(origin) {\n return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);\n }\n}\nOverlayPositionBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayPositionBuilder, deps: [{ token: i1.ViewportRuler }, { token: DOCUMENT }, { token: i1$1.Platform }, { token: OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayPositionBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayPositionBuilder, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayPositionBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.ViewportRuler }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1$1.Platform }, { type: OverlayContainer }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Service for dispatching events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass BaseOverlayDispatcher {\n constructor(document) {\n /** Currently attached overlays in the order they were attached. */\n this._attachedOverlays = [];\n this._document = document;\n }\n ngOnDestroy() {\n this.detach();\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n // Ensure that we don't get the same overlay multiple times.\n this.remove(overlayRef);\n this._attachedOverlays.push(overlayRef);\n }\n /** Remove an overlay from the list of attached overlay refs. */\n remove(overlayRef) {\n const index = this._attachedOverlays.indexOf(overlayRef);\n if (index > -1) {\n this._attachedOverlays.splice(index, 1);\n }\n // Remove the global listener once there are no more overlays.\n if (this._attachedOverlays.length === 0) {\n this.detach();\n }\n }\n}\nBaseOverlayDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BaseOverlayDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBaseOverlayDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BaseOverlayDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BaseOverlayDispatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Service for dispatching keyboard events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass OverlayKeyboardDispatcher extends BaseOverlayDispatcher {\n constructor(document) {\n super(document);\n /** Keyboard event listener that will be attached to the body. */\n this._keydownListener = (event) => {\n const overlays = this._attachedOverlays;\n for (let i = overlays.length - 1; i > -1; i--) {\n // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.\n // We want to target the most recent overlay, rather than trying to match where the event came\n // from, because some components might open an overlay, but keep focus on a trigger element\n // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,\n // because we don't want overlays that don't handle keyboard events to block the ones below\n // them that do.\n if (overlays[i]._keydownEvents.observers.length > 0) {\n overlays[i]._keydownEvents.next(event);\n break;\n }\n }\n };\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n super.add(overlayRef);\n // Lazily start dispatcher once first overlay is added\n if (!this._isAttached) {\n this._document.body.addEventListener('keydown', this._keydownListener);\n this._isAttached = true;\n }\n }\n /** Detaches the global keyboard event listener. */\n detach() {\n if (this._isAttached) {\n this._document.body.removeEventListener('keydown', this._keydownListener);\n this._isAttached = false;\n }\n }\n}\nOverlayKeyboardDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayKeyboardDispatcher, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayKeyboardDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayKeyboardDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayKeyboardDispatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Service for dispatching mouse click events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nclass OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {\n constructor(document, _platform) {\n super(document);\n this._platform = _platform;\n this._cursorStyleIsSet = false;\n /** Store pointerdown event target to track origin of click. */\n this._pointerDownListener = (event) => {\n this._pointerDownEventTarget = _getEventTarget(event);\n };\n /** Click event listener that will be attached to the body propagate phase. */\n this._clickListener = (event) => {\n const target = _getEventTarget(event);\n // In case of a click event, we want to check the origin of the click\n // (e.g. in case where a user starts a click inside the overlay and\n // releases the click outside of it).\n // This is done by using the event target of the preceding pointerdown event.\n // Every click event caused by a pointer device has a preceding pointerdown\n // event, unless the click was programmatically triggered (e.g. in a unit test).\n const origin = event.type === 'click' && this._pointerDownEventTarget\n ? this._pointerDownEventTarget\n : target;\n // Reset the stored pointerdown event target, to avoid having it interfere\n // in subsequent events.\n this._pointerDownEventTarget = null;\n // We copy the array because the original may be modified asynchronously if the\n // outsidePointerEvents listener decides to detach overlays resulting in index errors inside\n // the for loop.\n const overlays = this._attachedOverlays.slice();\n // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.\n // We want to target all overlays for which the click could be considered as outside click.\n // As soon as we reach an overlay for which the click is not outside click we break off\n // the loop.\n for (let i = overlays.length - 1; i > -1; i--) {\n const overlayRef = overlays[i];\n if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {\n continue;\n }\n // If it's a click inside the overlay, just break - we should do nothing\n // If it's an outside click (both origin and target of the click) dispatch the mouse event,\n // and proceed with the next overlay\n if (overlayRef.overlayElement.contains(target) ||\n overlayRef.overlayElement.contains(origin)) {\n break;\n }\n overlayRef._outsidePointerEvents.next(event);\n }\n };\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n super.add(overlayRef);\n // Safari on iOS does not generate click events for non-interactive\n // elements. However, we want to receive a click for any element outside\n // the overlay. We can force a \"clickable\" state by setting\n // `cursor: pointer` on the document body. See:\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile\n // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n if (!this._isAttached) {\n const body = this._document.body;\n body.addEventListener('pointerdown', this._pointerDownListener, true);\n body.addEventListener('click', this._clickListener, true);\n body.addEventListener('auxclick', this._clickListener, true);\n body.addEventListener('contextmenu', this._clickListener, true);\n // click event is not fired on iOS. To make element \"clickable\" we are\n // setting the cursor to pointer\n if (this._platform.IOS && !this._cursorStyleIsSet) {\n this._cursorOriginalValue = body.style.cursor;\n body.style.cursor = 'pointer';\n this._cursorStyleIsSet = true;\n }\n this._isAttached = true;\n }\n }\n /** Detaches the global keyboard event listener. */\n detach() {\n if (this._isAttached) {\n const body = this._document.body;\n body.removeEventListener('pointerdown', this._pointerDownListener, true);\n body.removeEventListener('click', this._clickListener, true);\n body.removeEventListener('auxclick', this._clickListener, true);\n body.removeEventListener('contextmenu', this._clickListener, true);\n if (this._platform.IOS && this._cursorStyleIsSet) {\n body.style.cursor = this._cursorOriginalValue;\n this._cursorStyleIsSet = false;\n }\n this._isAttached = false;\n }\n }\n}\nOverlayOutsideClickDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlayOutsideClickDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayOutsideClickDispatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1$1.Platform }];\n } });\n\n/** Next overlay unique ID. */\nlet nextUniqueId = 0;\n// Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver\n// which needs to be different depending on where OverlayModule is imported.\n/**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.\n */\nclass Overlay {\n constructor(\n /** Scrolling strategies that can be used when creating an overlay. */\n scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher) {\n this.scrollStrategies = scrollStrategies;\n this._overlayContainer = _overlayContainer;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._positionBuilder = _positionBuilder;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._injector = _injector;\n this._ngZone = _ngZone;\n this._document = _document;\n this._directionality = _directionality;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n }\n /**\n * Creates an overlay.\n * @param config Configuration applied to the overlay.\n * @returns Reference to the created overlay.\n */\n create(config) {\n const host = this._createHostElement();\n const pane = this._createPaneElement(host);\n const portalOutlet = this._createPortalOutlet(pane);\n const overlayConfig = new OverlayConfig(config);\n overlayConfig.direction = overlayConfig.direction || this._directionality.value;\n return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher);\n }\n /**\n * Gets a position builder that can be used, via fluent API,\n * to construct and configure a position strategy.\n * @returns An overlay position builder.\n */\n position() {\n return this._positionBuilder;\n }\n /**\n * Creates the DOM element for an overlay and appends it to the overlay container.\n * @returns Newly-created pane element\n */\n _createPaneElement(host) {\n const pane = this._document.createElement('div');\n pane.id = `cdk-overlay-${nextUniqueId++}`;\n pane.classList.add('cdk-overlay-pane');\n host.appendChild(pane);\n return pane;\n }\n /**\n * Creates the host element that wraps around an overlay\n * and can be used for advanced positioning.\n * @returns Newly-create host element.\n */\n _createHostElement() {\n const host = this._document.createElement('div');\n this._overlayContainer.getContainerElement().appendChild(host);\n return host;\n }\n /**\n * Create a DomPortalOutlet into which the overlay content can be loaded.\n * @param pane The DOM element to turn into a portal outlet.\n * @returns A portal outlet for the given DOM element.\n */\n _createPortalOutlet(pane) {\n // We have to resolve the ApplicationRef later in order to allow people\n // to use overlay-based providers during app initialization.\n if (!this._appRef) {\n this._appRef = this._injector.get(ApplicationRef);\n }\n return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);\n }\n}\nOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Overlay, deps: [{ token: ScrollStrategyOptions }, { token: OverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: OverlayPositionBuilder }, { token: OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i5.Directionality }, { token: i6.Location }, { token: OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable });\nOverlay.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Overlay });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Overlay, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: ScrollStrategyOptions }, { type: OverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: OverlayPositionBuilder }, { type: OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i5.Directionality }, { type: i6.Location }, { type: OverlayOutsideClickDispatcher }];\n } });\n\n/** Default set of positions for the overlay. Follows the behavior of a dropdown. */\nconst defaultPositionList = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n];\n/** Injection token that determines the scroll handling while the connected overlay is open. */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new InjectionToken('cdk-connected-overlay-scroll-strategy');\n/**\n * Directive applied to an element to make it usable as an origin for an Overlay using a\n * ConnectedPositionStrategy.\n */\nclass CdkOverlayOrigin {\n constructor(\n /** Reference to the element on which the directive is applied. */\n elementRef) {\n this.elementRef = elementRef;\n }\n}\nCdkOverlayOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkOverlayOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkOverlayOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkOverlayOrigin, selector: \"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]\", exportAs: [\"cdkOverlayOrigin\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkOverlayOrigin, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',\n exportAs: 'cdkOverlayOrigin',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n/**\n * Directive to facilitate declarative creation of an\n * Overlay using a FlexibleConnectedPositionStrategy.\n */\nclass CdkConnectedOverlay {\n // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.\n constructor(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {\n this._overlay = _overlay;\n this._dir = _dir;\n this._hasBackdrop = false;\n this._lockPosition = false;\n this._growAfterOpen = false;\n this._flexibleDimensions = false;\n this._push = false;\n this._backdropSubscription = Subscription.EMPTY;\n this._attachSubscription = Subscription.EMPTY;\n this._detachSubscription = Subscription.EMPTY;\n this._positionSubscription = Subscription.EMPTY;\n /** Margin between the overlay and the viewport edges. */\n this.viewportMargin = 0;\n /** Whether the overlay is open. */\n this.open = false;\n /** Whether the overlay can be closed by user interaction. */\n this.disableClose = false;\n /** Event emitted when the backdrop is clicked. */\n this.backdropClick = new EventEmitter();\n /** Event emitted when the position has changed. */\n this.positionChange = new EventEmitter();\n /** Event emitted when the overlay has been attached. */\n this.attach = new EventEmitter();\n /** Event emitted when the overlay has been detached. */\n this.detach = new EventEmitter();\n /** Emits when there are keyboard events that are targeted at the overlay. */\n this.overlayKeydown = new EventEmitter();\n /** Emits when there are mouse outside click events that are targeted at the overlay. */\n this.overlayOutsideClick = new EventEmitter();\n this._templatePortal = new TemplatePortal(templateRef, viewContainerRef);\n this._scrollStrategyFactory = scrollStrategyFactory;\n this.scrollStrategy = this._scrollStrategyFactory();\n }\n /** The offset in pixels for the overlay connection point on the x-axis */\n get offsetX() {\n return this._offsetX;\n }\n set offsetX(offsetX) {\n this._offsetX = offsetX;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n }\n /** The offset in pixels for the overlay connection point on the y-axis */\n get offsetY() {\n return this._offsetY;\n }\n set offsetY(offsetY) {\n this._offsetY = offsetY;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n }\n /** Whether or not the overlay should attach a backdrop. */\n get hasBackdrop() {\n return this._hasBackdrop;\n }\n set hasBackdrop(value) {\n this._hasBackdrop = coerceBooleanProperty(value);\n }\n /** Whether or not the overlay should be locked when scrolling. */\n get lockPosition() {\n return this._lockPosition;\n }\n set lockPosition(value) {\n this._lockPosition = coerceBooleanProperty(value);\n }\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n get flexibleDimensions() {\n return this._flexibleDimensions;\n }\n set flexibleDimensions(value) {\n this._flexibleDimensions = coerceBooleanProperty(value);\n }\n /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */\n get growAfterOpen() {\n return this._growAfterOpen;\n }\n set growAfterOpen(value) {\n this._growAfterOpen = coerceBooleanProperty(value);\n }\n /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */\n get push() {\n return this._push;\n }\n set push(value) {\n this._push = coerceBooleanProperty(value);\n }\n /** The associated overlay reference. */\n get overlayRef() {\n return this._overlayRef;\n }\n /** The element's layout direction. */\n get dir() {\n return this._dir ? this._dir.value : 'ltr';\n }\n ngOnDestroy() {\n this._attachSubscription.unsubscribe();\n this._detachSubscription.unsubscribe();\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n if (this._overlayRef) {\n this._overlayRef.dispose();\n }\n }\n ngOnChanges(changes) {\n if (this._position) {\n this._updatePositionStrategy(this._position);\n this._overlayRef.updateSize({\n width: this.width,\n minWidth: this.minWidth,\n height: this.height,\n minHeight: this.minHeight,\n });\n if (changes['origin'] && this.open) {\n this._position.apply();\n }\n }\n if (changes['open']) {\n this.open ? this._attachOverlay() : this._detachOverlay();\n }\n }\n /** Creates an overlay */\n _createOverlay() {\n if (!this.positions || !this.positions.length) {\n this.positions = defaultPositionList;\n }\n const overlayRef = (this._overlayRef = this._overlay.create(this._buildConfig()));\n this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());\n this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());\n overlayRef.keydownEvents().subscribe((event) => {\n this.overlayKeydown.next(event);\n if (event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)) {\n event.preventDefault();\n this._detachOverlay();\n }\n });\n this._overlayRef.outsidePointerEvents().subscribe((event) => {\n this.overlayOutsideClick.next(event);\n });\n }\n /** Builds the overlay config based on the directive's inputs */\n _buildConfig() {\n const positionStrategy = (this._position =\n this.positionStrategy || this._createPositionStrategy());\n const overlayConfig = new OverlayConfig({\n direction: this._dir,\n positionStrategy,\n scrollStrategy: this.scrollStrategy,\n hasBackdrop: this.hasBackdrop,\n });\n if (this.width || this.width === 0) {\n overlayConfig.width = this.width;\n }\n if (this.height || this.height === 0) {\n overlayConfig.height = this.height;\n }\n if (this.minWidth || this.minWidth === 0) {\n overlayConfig.minWidth = this.minWidth;\n }\n if (this.minHeight || this.minHeight === 0) {\n overlayConfig.minHeight = this.minHeight;\n }\n if (this.backdropClass) {\n overlayConfig.backdropClass = this.backdropClass;\n }\n if (this.panelClass) {\n overlayConfig.panelClass = this.panelClass;\n }\n return overlayConfig;\n }\n /** Updates the state of a position strategy, based on the values of the directive inputs. */\n _updatePositionStrategy(positionStrategy) {\n const positions = this.positions.map(currentPosition => ({\n originX: currentPosition.originX,\n originY: currentPosition.originY,\n overlayX: currentPosition.overlayX,\n overlayY: currentPosition.overlayY,\n offsetX: currentPosition.offsetX || this.offsetX,\n offsetY: currentPosition.offsetY || this.offsetY,\n panelClass: currentPosition.panelClass || undefined,\n }));\n return positionStrategy\n .setOrigin(this._getFlexibleConnectedPositionStrategyOrigin())\n .withPositions(positions)\n .withFlexibleDimensions(this.flexibleDimensions)\n .withPush(this.push)\n .withGrowAfterOpen(this.growAfterOpen)\n .withViewportMargin(this.viewportMargin)\n .withLockedPosition(this.lockPosition)\n .withTransformOriginOn(this.transformOriginSelector);\n }\n /** Returns the position strategy of the overlay to be set on the overlay config */\n _createPositionStrategy() {\n const strategy = this._overlay\n .position()\n .flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());\n this._updatePositionStrategy(strategy);\n return strategy;\n }\n _getFlexibleConnectedPositionStrategyOrigin() {\n if (this.origin instanceof CdkOverlayOrigin) {\n return this.origin.elementRef;\n }\n else {\n return this.origin;\n }\n }\n /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */\n _attachOverlay() {\n if (!this._overlayRef) {\n this._createOverlay();\n }\n else {\n // Update the overlay size, in case the directive's inputs have changed\n this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;\n }\n if (!this._overlayRef.hasAttached()) {\n this._overlayRef.attach(this._templatePortal);\n }\n if (this.hasBackdrop) {\n this._backdropSubscription = this._overlayRef.backdropClick().subscribe(event => {\n this.backdropClick.emit(event);\n });\n }\n else {\n this._backdropSubscription.unsubscribe();\n }\n this._positionSubscription.unsubscribe();\n // Only subscribe to `positionChanges` if requested, because putting\n // together all the information for it can be expensive.\n if (this.positionChange.observers.length > 0) {\n this._positionSubscription = this._position.positionChanges\n .pipe(takeWhile(() => this.positionChange.observers.length > 0))\n .subscribe(position => {\n this.positionChange.emit(position);\n if (this.positionChange.observers.length === 0) {\n this._positionSubscription.unsubscribe();\n }\n });\n }\n }\n /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */\n _detachOverlay() {\n if (this._overlayRef) {\n this._overlayRef.detach();\n }\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n }\n}\nCdkConnectedOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkConnectedOverlay, deps: [{ token: Overlay }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkConnectedOverlay.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkConnectedOverlay, selector: \"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]\", inputs: { origin: [\"cdkConnectedOverlayOrigin\", \"origin\"], positions: [\"cdkConnectedOverlayPositions\", \"positions\"], positionStrategy: [\"cdkConnectedOverlayPositionStrategy\", \"positionStrategy\"], offsetX: [\"cdkConnectedOverlayOffsetX\", \"offsetX\"], offsetY: [\"cdkConnectedOverlayOffsetY\", \"offsetY\"], width: [\"cdkConnectedOverlayWidth\", \"width\"], height: [\"cdkConnectedOverlayHeight\", \"height\"], minWidth: [\"cdkConnectedOverlayMinWidth\", \"minWidth\"], minHeight: [\"cdkConnectedOverlayMinHeight\", \"minHeight\"], backdropClass: [\"cdkConnectedOverlayBackdropClass\", \"backdropClass\"], panelClass: [\"cdkConnectedOverlayPanelClass\", \"panelClass\"], viewportMargin: [\"cdkConnectedOverlayViewportMargin\", \"viewportMargin\"], scrollStrategy: [\"cdkConnectedOverlayScrollStrategy\", \"scrollStrategy\"], open: [\"cdkConnectedOverlayOpen\", \"open\"], disableClose: [\"cdkConnectedOverlayDisableClose\", \"disableClose\"], transformOriginSelector: [\"cdkConnectedOverlayTransformOriginOn\", \"transformOriginSelector\"], hasBackdrop: [\"cdkConnectedOverlayHasBackdrop\", \"hasBackdrop\"], lockPosition: [\"cdkConnectedOverlayLockPosition\", \"lockPosition\"], flexibleDimensions: [\"cdkConnectedOverlayFlexibleDimensions\", \"flexibleDimensions\"], growAfterOpen: [\"cdkConnectedOverlayGrowAfterOpen\", \"growAfterOpen\"], push: [\"cdkConnectedOverlayPush\", \"push\"] }, outputs: { backdropClick: \"backdropClick\", positionChange: \"positionChange\", attach: \"attach\", detach: \"detach\", overlayKeydown: \"overlayKeydown\", overlayOutsideClick: \"overlayOutsideClick\" }, exportAs: [\"cdkConnectedOverlay\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkConnectedOverlay, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',\n exportAs: 'cdkConnectedOverlay',\n }]\n }], ctorParameters: function () {\n return [{ type: Overlay }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]\n }] }, { type: i5.Directionality, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { origin: [{\n type: Input,\n args: ['cdkConnectedOverlayOrigin']\n }], positions: [{\n type: Input,\n args: ['cdkConnectedOverlayPositions']\n }], positionStrategy: [{\n type: Input,\n args: ['cdkConnectedOverlayPositionStrategy']\n }], offsetX: [{\n type: Input,\n args: ['cdkConnectedOverlayOffsetX']\n }], offsetY: [{\n type: Input,\n args: ['cdkConnectedOverlayOffsetY']\n }], width: [{\n type: Input,\n args: ['cdkConnectedOverlayWidth']\n }], height: [{\n type: Input,\n args: ['cdkConnectedOverlayHeight']\n }], minWidth: [{\n type: Input,\n args: ['cdkConnectedOverlayMinWidth']\n }], minHeight: [{\n type: Input,\n args: ['cdkConnectedOverlayMinHeight']\n }], backdropClass: [{\n type: Input,\n args: ['cdkConnectedOverlayBackdropClass']\n }], panelClass: [{\n type: Input,\n args: ['cdkConnectedOverlayPanelClass']\n }], viewportMargin: [{\n type: Input,\n args: ['cdkConnectedOverlayViewportMargin']\n }], scrollStrategy: [{\n type: Input,\n args: ['cdkConnectedOverlayScrollStrategy']\n }], open: [{\n type: Input,\n args: ['cdkConnectedOverlayOpen']\n }], disableClose: [{\n type: Input,\n args: ['cdkConnectedOverlayDisableClose']\n }], transformOriginSelector: [{\n type: Input,\n args: ['cdkConnectedOverlayTransformOriginOn']\n }], hasBackdrop: [{\n type: Input,\n args: ['cdkConnectedOverlayHasBackdrop']\n }], lockPosition: [{\n type: Input,\n args: ['cdkConnectedOverlayLockPosition']\n }], flexibleDimensions: [{\n type: Input,\n args: ['cdkConnectedOverlayFlexibleDimensions']\n }], growAfterOpen: [{\n type: Input,\n args: ['cdkConnectedOverlayGrowAfterOpen']\n }], push: [{\n type: Input,\n args: ['cdkConnectedOverlayPush']\n }], backdropClick: [{\n type: Output\n }], positionChange: [{\n type: Output\n }], attach: [{\n type: Output\n }], detach: [{\n type: Output\n }], overlayKeydown: [{\n type: Output\n }], overlayOutsideClick: [{\n type: Output\n }] } });\n/** @docs-private */\nfunction CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {\n provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass OverlayModule {\n}\nOverlayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nOverlayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayModule, declarations: [CdkConnectedOverlay, CdkOverlayOrigin], imports: [BidiModule, PortalModule, ScrollingModule], exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule] });\nOverlayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayModule, providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER], imports: [[BidiModule, PortalModule, ScrollingModule], ScrollingModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: OverlayModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [BidiModule, PortalModule, ScrollingModule],\n exports: [CdkConnectedOverlay, CdkOverlayOrigin, ScrollingModule],\n declarations: [CdkConnectedOverlay, CdkOverlayOrigin],\n providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\nclass FullscreenOverlayContainer extends OverlayContainer {\n constructor(_document, platform) {\n super(_document, platform);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n if (this._fullScreenEventName && this._fullScreenListener) {\n this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);\n }\n }\n _createContainer() {\n super._createContainer();\n this._adjustParentForFullscreenChange();\n this._addFullscreenChangeListener(() => this._adjustParentForFullscreenChange());\n }\n _adjustParentForFullscreenChange() {\n if (!this._containerElement) {\n return;\n }\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n _addFullscreenChangeListener(fn) {\n const eventName = this._getEventName();\n if (eventName) {\n if (this._fullScreenListener) {\n this._document.removeEventListener(eventName, this._fullScreenListener);\n }\n this._document.addEventListener(eventName, fn);\n this._fullScreenListener = fn;\n }\n }\n _getEventName() {\n if (!this._fullScreenEventName) {\n const _document = this._document;\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n }\n else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n }\n else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n }\n else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\n }\n }\n return this._fullScreenEventName;\n }\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n getFullscreenElement() {\n const _document = this._document;\n return (_document.fullscreenElement ||\n _document.webkitFullscreenElement ||\n _document.mozFullScreenElement ||\n _document.msFullscreenElement ||\n null);\n }\n}\nFullscreenOverlayContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FullscreenOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nFullscreenOverlayContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FullscreenOverlayContainer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FullscreenOverlayContainer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1$1.Platform }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, ScrollStrategyOptions, ScrollingVisibility, validateHorizontalPosition, validateVerticalPosition };\n","import { Subscriber } from '../Subscriber';\nimport { async } from '../scheduler/async';\nexport function debounceTime(dueTime, scheduler = async) {\n return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler));\n}\nclass DebounceTimeOperator {\n constructor(dueTime, scheduler) {\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n }\n call(subscriber, source) {\n return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n }\n}\nclass DebounceTimeSubscriber extends Subscriber {\n constructor(destination, dueTime, scheduler) {\n super(destination);\n this.dueTime = dueTime;\n this.scheduler = scheduler;\n this.debouncedSubscription = null;\n this.lastValue = null;\n this.hasValue = false;\n }\n _next(value) {\n this.clearDebounce();\n this.lastValue = value;\n this.hasValue = true;\n this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n }\n _complete() {\n this.debouncedNext();\n this.destination.complete();\n }\n debouncedNext() {\n this.clearDebounce();\n if (this.hasValue) {\n const { lastValue } = this;\n this.lastValue = null;\n this.hasValue = false;\n this.destination.next(lastValue);\n }\n }\n clearDebounce() {\n const debouncedSubscription = this.debouncedSubscription;\n if (debouncedSubscription !== null) {\n this.remove(debouncedSubscription);\n debouncedSubscription.unsubscribe();\n this.debouncedSubscription = null;\n }\n }\n}\nfunction dispatchNext(subscriber) {\n subscriber.debouncedNext();\n}\n","import { Subscriber } from '../Subscriber';\nexport function skip(count) {\n return (source) => source.lift(new SkipOperator(count));\n}\nclass SkipOperator {\n constructor(total) {\n this.total = total;\n }\n call(subscriber, source) {\n return source.subscribe(new SkipSubscriber(subscriber, this.total));\n }\n}\nclass SkipSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(x) {\n if (++this.count > this.total) {\n this.destination.next(x);\n }\n }\n}\n","import { coerceElement, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Directive, Output, Input, NgModule } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\nclass MutationObserverFactory {\n create(callback) {\n return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);\n }\n}\nMutationObserverFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMutationObserverFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MutationObserverFactory, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/** An injectable service that allows watching elements for changes to their content. */\nclass ContentObserver {\n constructor(_mutationObserverFactory) {\n this._mutationObserverFactory = _mutationObserverFactory;\n /** Keeps track of the existing MutationObservers so they can be reused. */\n this._observedElements = new Map();\n }\n ngOnDestroy() {\n this._observedElements.forEach((_, element) => this._cleanupObserver(element));\n }\n observe(elementOrRef) {\n const element = coerceElement(elementOrRef);\n return new Observable((observer) => {\n const stream = this._observeElement(element);\n const subscription = stream.subscribe(observer);\n return () => {\n subscription.unsubscribe();\n this._unobserveElement(element);\n };\n });\n }\n /**\n * Observes the given element by using the existing MutationObserver if available, or creating a\n * new one if not.\n */\n _observeElement(element) {\n if (!this._observedElements.has(element)) {\n const stream = new Subject();\n const observer = this._mutationObserverFactory.create(mutations => stream.next(mutations));\n if (observer) {\n observer.observe(element, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n }\n this._observedElements.set(element, { observer, stream, count: 1 });\n }\n else {\n this._observedElements.get(element).count++;\n }\n return this._observedElements.get(element).stream;\n }\n /**\n * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is\n * observing this element.\n */\n _unobserveElement(element) {\n if (this._observedElements.has(element)) {\n this._observedElements.get(element).count--;\n if (!this._observedElements.get(element).count) {\n this._cleanupObserver(element);\n }\n }\n }\n /** Clean up the underlying MutationObserver for the specified element. */\n _cleanupObserver(element) {\n if (this._observedElements.has(element)) {\n const { observer, stream } = this._observedElements.get(element);\n if (observer) {\n observer.disconnect();\n }\n stream.complete();\n this._observedElements.delete(element);\n }\n }\n}\nContentObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ContentObserver, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable });\nContentObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ContentObserver, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ContentObserver, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\nclass CdkObserveContent {\n constructor(_contentObserver, _elementRef, _ngZone) {\n this._contentObserver = _contentObserver;\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n /** Event emitted for each change in the element's content. */\n this.event = new EventEmitter();\n this._disabled = false;\n this._currentSubscription = null;\n }\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n this._disabled ? this._unsubscribe() : this._subscribe();\n }\n /** Debounce interval for emitting the changes. */\n get debounce() {\n return this._debounce;\n }\n set debounce(value) {\n this._debounce = coerceNumberProperty(value);\n this._subscribe();\n }\n ngAfterContentInit() {\n if (!this._currentSubscription && !this.disabled) {\n this._subscribe();\n }\n }\n ngOnDestroy() {\n this._unsubscribe();\n }\n _subscribe() {\n this._unsubscribe();\n const stream = this._contentObserver.observe(this._elementRef);\n // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.\n // Consider brining it back inside the zone next time we're making breaking changes.\n // Bringing it back inside can cause things like infinite change detection loops and changed\n // after checked errors if people's code isn't handling it properly.\n this._ngZone.runOutsideAngular(() => {\n this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.event);\n });\n }\n _unsubscribe() {\n var _a;\n (_a = this._currentSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n }\n}\nCdkObserveContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkObserveContent, deps: [{ token: ContentObserver }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkObserveContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: { disabled: [\"cdkObserveContentDisabled\", \"disabled\"], debounce: \"debounce\" }, outputs: { event: \"cdkObserveContent\" }, exportAs: [\"cdkObserveContent\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkObserveContent, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n }]\n }], ctorParameters: function () { return [{ type: ContentObserver }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { event: [{\n type: Output,\n args: ['cdkObserveContent']\n }], disabled: [{\n type: Input,\n args: ['cdkObserveContentDisabled']\n }], debounce: [{\n type: Input\n }] } });\nclass ObserversModule {\n}\nObserversModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ObserversModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nObserversModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ObserversModule, declarations: [CdkObserveContent], exports: [CdkObserveContent] });\nObserversModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ObserversModule, providers: [MutationObserverFactory] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ObserversModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Inject, QueryList, Directive, Input, InjectionToken, Optional, EventEmitter, Output, NgModule } from '@angular/core';\nimport { Subject, Subscription, BehaviorSubject, of } from 'rxjs';\nimport { hasModifierKey, A, Z, ZERO, NINE, END, HOME, LEFT_ARROW, RIGHT_ARROW, UP_ARROW, DOWN_ARROW, TAB, ALT, CONTROL, MAC_META, META, SHIFT } from '@angular/cdk/keycodes';\nimport { tap, debounceTime, filter, map, take, skip, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport { coerceBooleanProperty, coerceElement } from '@angular/cdk/coercion';\nimport * as i1 from '@angular/cdk/platform';\nimport { _getFocusedElementPierceShadowDom, normalizePassiveListenerOptions, _getEventTarget, _getShadowRoot, PlatformModule } from '@angular/cdk/platform';\nimport * as i1$1 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** IDs are delimited by an empty space, as per the spec. */\nconst ID_DELIMITER = ' ';\n/**\n * Adds the given ID to the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction addAriaReferencedId(el, attr, id) {\n const ids = getAriaReferenceIds(el, attr);\n if (ids.some(existingId => existingId.trim() == id.trim())) {\n return;\n }\n ids.push(id.trim());\n el.setAttribute(attr, ids.join(ID_DELIMITER));\n}\n/**\n * Removes the given ID from the specified ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction removeAriaReferencedId(el, attr, id) {\n const ids = getAriaReferenceIds(el, attr);\n const filteredIds = ids.filter(val => val != id.trim());\n if (filteredIds.length) {\n el.setAttribute(attr, filteredIds.join(ID_DELIMITER));\n }\n else {\n el.removeAttribute(attr);\n }\n}\n/**\n * Gets the list of IDs referenced by the given ARIA attribute on an element.\n * Used for attributes such as aria-labelledby, aria-owns, etc.\n */\nfunction getAriaReferenceIds(el, attr) {\n // Get string array of all individual ids (whitespace delimited) in the attribute value\n return (el.getAttribute(attr) || '').match(/\\S+/g) || [];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** ID used for the body container where all messages are appended. */\nconst MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';\n/** ID prefix used for each created message element. */\nconst CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';\n/** Attribute given to each host element that is described by a message element. */\nconst CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';\n/** Global incremental identifier for each registered message element. */\nlet nextId = 0;\n/** Global map of all registered message elements that have been placed into the document. */\nconst messageRegistry = new Map();\n/** Container for all registered messages. */\nlet messagesContainer = null;\n/**\n * Utility that creates visually hidden elements with a message content. Useful for elements that\n * want to use aria-describedby to further describe themselves without adding additional visual\n * content.\n */\nclass AriaDescriber {\n constructor(_document) {\n this._document = _document;\n }\n describe(hostElement, message, role) {\n if (!this._canBeDescribed(hostElement, message)) {\n return;\n }\n const key = getKey(message, role);\n if (typeof message !== 'string') {\n // We need to ensure that the element has an ID.\n setMessageId(message);\n messageRegistry.set(key, { messageElement: message, referenceCount: 0 });\n }\n else if (!messageRegistry.has(key)) {\n this._createMessageElement(message, role);\n }\n if (!this._isElementDescribedByMessage(hostElement, key)) {\n this._addMessageReference(hostElement, key);\n }\n }\n removeDescription(hostElement, message, role) {\n if (!message || !this._isElementNode(hostElement)) {\n return;\n }\n const key = getKey(message, role);\n if (this._isElementDescribedByMessage(hostElement, key)) {\n this._removeMessageReference(hostElement, key);\n }\n // If the message is a string, it means that it's one that we created for the\n // consumer so we can remove it safely, otherwise we should leave it in place.\n if (typeof message === 'string') {\n const registeredMessage = messageRegistry.get(key);\n if (registeredMessage && registeredMessage.referenceCount === 0) {\n this._deleteMessageElement(key);\n }\n }\n if (messagesContainer && messagesContainer.childNodes.length === 0) {\n this._deleteMessagesContainer();\n }\n }\n /** Unregisters all created message elements and removes the message container. */\n ngOnDestroy() {\n const describedElements = this._document.querySelectorAll(`[${CDK_DESCRIBEDBY_HOST_ATTRIBUTE}]`);\n for (let i = 0; i < describedElements.length; i++) {\n this._removeCdkDescribedByReferenceIds(describedElements[i]);\n describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n }\n if (messagesContainer) {\n this._deleteMessagesContainer();\n }\n messageRegistry.clear();\n }\n /**\n * Creates a new element in the visually hidden message container element with the message\n * as its content and adds it to the message registry.\n */\n _createMessageElement(message, role) {\n const messageElement = this._document.createElement('div');\n setMessageId(messageElement);\n messageElement.textContent = message;\n if (role) {\n messageElement.setAttribute('role', role);\n }\n this._createMessagesContainer();\n messagesContainer.appendChild(messageElement);\n messageRegistry.set(getKey(message, role), { messageElement, referenceCount: 0 });\n }\n /** Deletes the message element from the global messages container. */\n _deleteMessageElement(key) {\n var _a;\n const registeredMessage = messageRegistry.get(key);\n (_a = registeredMessage === null || registeredMessage === void 0 ? void 0 : registeredMessage.messageElement) === null || _a === void 0 ? void 0 : _a.remove();\n messageRegistry.delete(key);\n }\n /** Creates the global container for all aria-describedby messages. */\n _createMessagesContainer() {\n if (!messagesContainer) {\n const preExistingContainer = this._document.getElementById(MESSAGES_CONTAINER_ID);\n // When going from the server to the client, we may end up in a situation where there's\n // already a container on the page, but we don't have a reference to it. Clear the\n // old container so we don't get duplicates. Doing this, instead of emptying the previous\n // container, should be slightly faster.\n preExistingContainer === null || preExistingContainer === void 0 ? void 0 : preExistingContainer.remove();\n messagesContainer = this._document.createElement('div');\n messagesContainer.id = MESSAGES_CONTAINER_ID;\n // We add `visibility: hidden` in order to prevent text in this container from\n // being searchable by the browser's Ctrl + F functionality.\n // Screen-readers will still read the description for elements with aria-describedby even\n // when the description element is not visible.\n messagesContainer.style.visibility = 'hidden';\n // Even though we use `visibility: hidden`, we still apply `cdk-visually-hidden` so that\n // the description element doesn't impact page layout.\n messagesContainer.classList.add('cdk-visually-hidden');\n this._document.body.appendChild(messagesContainer);\n }\n }\n /** Deletes the global messages container. */\n _deleteMessagesContainer() {\n if (messagesContainer) {\n messagesContainer.remove();\n messagesContainer = null;\n }\n }\n /** Removes all cdk-describedby messages that are hosted through the element. */\n _removeCdkDescribedByReferenceIds(element) {\n // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX\n const originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(id => id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0);\n element.setAttribute('aria-describedby', originalReferenceIds.join(' '));\n }\n /**\n * Adds a message reference to the element using aria-describedby and increments the registered\n * message's reference count.\n */\n _addMessageReference(element, key) {\n const registeredMessage = messageRegistry.get(key);\n // Add the aria-describedby reference and set the\n // describedby_host attribute to mark the element.\n addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, '');\n registeredMessage.referenceCount++;\n }\n /**\n * Removes a message reference from the element using aria-describedby\n * and decrements the registered message's reference count.\n */\n _removeMessageReference(element, key) {\n const registeredMessage = messageRegistry.get(key);\n registeredMessage.referenceCount--;\n removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);\n element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);\n }\n /** Returns true if the element has been described by the provided message ID. */\n _isElementDescribedByMessage(element, key) {\n const referenceIds = getAriaReferenceIds(element, 'aria-describedby');\n const registeredMessage = messageRegistry.get(key);\n const messageId = registeredMessage && registeredMessage.messageElement.id;\n return !!messageId && referenceIds.indexOf(messageId) != -1;\n }\n /** Determines whether a message can be described on a particular element. */\n _canBeDescribed(element, message) {\n if (!this._isElementNode(element)) {\n return false;\n }\n if (message && typeof message === 'object') {\n // We'd have to make some assumptions about the description element's text, if the consumer\n // passed in an element. Assume that if an element is passed in, the consumer has verified\n // that it can be used as a description.\n return true;\n }\n const trimmedMessage = message == null ? '' : `${message}`.trim();\n const ariaLabel = element.getAttribute('aria-label');\n // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the\n // element, because screen readers will end up reading out the same text twice in a row.\n return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;\n }\n /** Checks whether a node is an Element node. */\n _isElementNode(element) {\n return element.nodeType === this._document.ELEMENT_NODE;\n }\n}\nAriaDescriber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AriaDescriber, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nAriaDescriber.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AriaDescriber, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AriaDescriber, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/** Gets a key that can be used to look messages up in the registry. */\nfunction getKey(message, role) {\n return typeof message === 'string' ? `${role || ''}/${message}` : message;\n}\n/** Assigns a unique ID to an element, if it doesn't have one already. */\nfunction setMessageId(element) {\n if (!element.id) {\n element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${nextId++}`;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This class manages keyboard events for selectable lists. If you pass it a query list\n * of items, it will set the active item correctly when arrow events occur.\n */\nclass ListKeyManager {\n constructor(_items) {\n this._items = _items;\n this._activeItemIndex = -1;\n this._activeItem = null;\n this._wrap = false;\n this._letterKeyStream = new Subject();\n this._typeaheadSubscription = Subscription.EMPTY;\n this._vertical = true;\n this._allowedModifierKeys = [];\n this._homeAndEnd = false;\n /**\n * Predicate function that can be used to check whether an item should be skipped\n * by the key manager. By default, disabled items are skipped.\n */\n this._skipPredicateFn = (item) => item.disabled;\n // Buffer for the letters that the user has pressed when the typeahead option is turned on.\n this._pressedLetters = [];\n /**\n * Stream that emits any time the TAB key is pressed, so components can react\n * when focus is shifted off of the list.\n */\n this.tabOut = new Subject();\n /** Stream that emits whenever the active item of the list manager changes. */\n this.change = new Subject();\n // We allow for the items to be an array because, in some cases, the consumer may\n // not have access to a QueryList of the items they want to manage (e.g. when the\n // items aren't being collected via `ViewChildren` or `ContentChildren`).\n if (_items instanceof QueryList) {\n _items.changes.subscribe((newItems) => {\n if (this._activeItem) {\n const itemArray = newItems.toArray();\n const newIndex = itemArray.indexOf(this._activeItem);\n if (newIndex > -1 && newIndex !== this._activeItemIndex) {\n this._activeItemIndex = newIndex;\n }\n }\n });\n }\n }\n /**\n * Sets the predicate function that determines which items should be skipped by the\n * list key manager.\n * @param predicate Function that determines whether the given item should be skipped.\n */\n skipPredicate(predicate) {\n this._skipPredicateFn = predicate;\n return this;\n }\n /**\n * Configures wrapping mode, which determines whether the active item will wrap to\n * the other end of list when there are no more items in the given direction.\n * @param shouldWrap Whether the list should wrap when reaching the end.\n */\n withWrap(shouldWrap = true) {\n this._wrap = shouldWrap;\n return this;\n }\n /**\n * Configures whether the key manager should be able to move the selection vertically.\n * @param enabled Whether vertical selection should be enabled.\n */\n withVerticalOrientation(enabled = true) {\n this._vertical = enabled;\n return this;\n }\n /**\n * Configures the key manager to move the selection horizontally.\n * Passing in `null` will disable horizontal movement.\n * @param direction Direction in which the selection can be moved.\n */\n withHorizontalOrientation(direction) {\n this._horizontal = direction;\n return this;\n }\n /**\n * Modifier keys which are allowed to be held down and whose default actions will be prevented\n * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.\n */\n withAllowedModifierKeys(keys) {\n this._allowedModifierKeys = keys;\n return this;\n }\n /**\n * Turns on typeahead mode which allows users to set the active item by typing.\n * @param debounceInterval Time to wait after the last keystroke before setting the active item.\n */\n withTypeAhead(debounceInterval = 200) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n this._items.length &&\n this._items.some(item => typeof item.getLabel !== 'function')) {\n throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');\n }\n this._typeaheadSubscription.unsubscribe();\n // Debounce the presses of non-navigational keys, collect the ones that correspond to letters\n // and convert those letters back into a string. Afterwards find the first item that starts\n // with that string and select it.\n this._typeaheadSubscription = this._letterKeyStream\n .pipe(tap(letter => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join('')))\n .subscribe(inputString => {\n const items = this._getItemsArray();\n // Start at 1 because we want to start searching at the item immediately\n // following the current active item.\n for (let i = 1; i < items.length + 1; i++) {\n const index = (this._activeItemIndex + i) % items.length;\n const item = items[index];\n if (!this._skipPredicateFn(item) &&\n item.getLabel().toUpperCase().trim().indexOf(inputString) === 0) {\n this.setActiveItem(index);\n break;\n }\n }\n this._pressedLetters = [];\n });\n return this;\n }\n /**\n * Configures the key manager to activate the first and last items\n * respectively when the Home or End key is pressed.\n * @param enabled Whether pressing the Home or End key activates the first/last item.\n */\n withHomeAndEnd(enabled = true) {\n this._homeAndEnd = enabled;\n return this;\n }\n setActiveItem(item) {\n const previousActiveItem = this._activeItem;\n this.updateActiveItem(item);\n if (this._activeItem !== previousActiveItem) {\n this.change.next(this._activeItemIndex);\n }\n }\n /**\n * Sets the active item depending on the key event passed in.\n * @param event Keyboard event to be used for determining which element should be active.\n */\n onKeydown(event) {\n const keyCode = event.keyCode;\n const modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];\n const isModifierAllowed = modifiers.every(modifier => {\n return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;\n });\n switch (keyCode) {\n case TAB:\n this.tabOut.next();\n return;\n case DOWN_ARROW:\n if (this._vertical && isModifierAllowed) {\n this.setNextItemActive();\n break;\n }\n else {\n return;\n }\n case UP_ARROW:\n if (this._vertical && isModifierAllowed) {\n this.setPreviousItemActive();\n break;\n }\n else {\n return;\n }\n case RIGHT_ARROW:\n if (this._horizontal && isModifierAllowed) {\n this._horizontal === 'rtl' ? this.setPreviousItemActive() : this.setNextItemActive();\n break;\n }\n else {\n return;\n }\n case LEFT_ARROW:\n if (this._horizontal && isModifierAllowed) {\n this._horizontal === 'rtl' ? this.setNextItemActive() : this.setPreviousItemActive();\n break;\n }\n else {\n return;\n }\n case HOME:\n if (this._homeAndEnd && isModifierAllowed) {\n this.setFirstItemActive();\n break;\n }\n else {\n return;\n }\n case END:\n if (this._homeAndEnd && isModifierAllowed) {\n this.setLastItemActive();\n break;\n }\n else {\n return;\n }\n default:\n if (isModifierAllowed || hasModifierKey(event, 'shiftKey')) {\n // Attempt to use the `event.key` which also maps it to the user's keyboard language,\n // otherwise fall back to resolving alphanumeric characters via the keyCode.\n if (event.key && event.key.length === 1) {\n this._letterKeyStream.next(event.key.toLocaleUpperCase());\n }\n else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {\n this._letterKeyStream.next(String.fromCharCode(keyCode));\n }\n }\n // Note that we return here, in order to avoid preventing\n // the default action of non-navigational keys.\n return;\n }\n this._pressedLetters = [];\n event.preventDefault();\n }\n /** Index of the currently active item. */\n get activeItemIndex() {\n return this._activeItemIndex;\n }\n /** The active item. */\n get activeItem() {\n return this._activeItem;\n }\n /** Gets whether the user is currently typing into the manager using the typeahead feature. */\n isTyping() {\n return this._pressedLetters.length > 0;\n }\n /** Sets the active item to the first enabled item in the list. */\n setFirstItemActive() {\n this._setActiveItemByIndex(0, 1);\n }\n /** Sets the active item to the last enabled item in the list. */\n setLastItemActive() {\n this._setActiveItemByIndex(this._items.length - 1, -1);\n }\n /** Sets the active item to the next enabled item in the list. */\n setNextItemActive() {\n this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);\n }\n /** Sets the active item to a previous enabled item in the list. */\n setPreviousItemActive() {\n this._activeItemIndex < 0 && this._wrap\n ? this.setLastItemActive()\n : this._setActiveItemByDelta(-1);\n }\n updateActiveItem(item) {\n const itemArray = this._getItemsArray();\n const index = typeof item === 'number' ? item : itemArray.indexOf(item);\n const activeItem = itemArray[index];\n // Explicitly check for `null` and `undefined` because other falsy values are valid.\n this._activeItem = activeItem == null ? null : activeItem;\n this._activeItemIndex = index;\n }\n /**\n * This method sets the active item, given a list of items and the delta between the\n * currently active item and the new active item. It will calculate differently\n * depending on whether wrap mode is turned on.\n */\n _setActiveItemByDelta(delta) {\n this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);\n }\n /**\n * Sets the active item properly given \"wrap\" mode. In other words, it will continue to move\n * down the list until it finds an item that is not disabled, and it will wrap if it\n * encounters either end of the list.\n */\n _setActiveInWrapMode(delta) {\n const items = this._getItemsArray();\n for (let i = 1; i <= items.length; i++) {\n const index = (this._activeItemIndex + delta * i + items.length) % items.length;\n const item = items[index];\n if (!this._skipPredicateFn(item)) {\n this.setActiveItem(index);\n return;\n }\n }\n }\n /**\n * Sets the active item properly given the default mode. In other words, it will\n * continue to move down the list until it finds an item that is not disabled. If\n * it encounters either end of the list, it will stop and not wrap.\n */\n _setActiveInDefaultMode(delta) {\n this._setActiveItemByIndex(this._activeItemIndex + delta, delta);\n }\n /**\n * Sets the active item to the first enabled item starting at the index specified. If the\n * item is disabled, it will move in the fallbackDelta direction until it either\n * finds an enabled item or encounters the end of the list.\n */\n _setActiveItemByIndex(index, fallbackDelta) {\n const items = this._getItemsArray();\n if (!items[index]) {\n return;\n }\n while (this._skipPredicateFn(items[index])) {\n index += fallbackDelta;\n if (!items[index]) {\n return;\n }\n }\n this.setActiveItem(index);\n }\n /** Returns the items as an array. */\n _getItemsArray() {\n return this._items instanceof QueryList ? this._items.toArray() : this._items;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass ActiveDescendantKeyManager extends ListKeyManager {\n setActiveItem(index) {\n if (this.activeItem) {\n this.activeItem.setInactiveStyles();\n }\n super.setActiveItem(index);\n if (this.activeItem) {\n this.activeItem.setActiveStyles();\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass FocusKeyManager extends ListKeyManager {\n constructor() {\n super(...arguments);\n this._origin = 'program';\n }\n /**\n * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.\n * @param origin Focus origin to be used when focusing items.\n */\n setFocusOrigin(origin) {\n this._origin = origin;\n return this;\n }\n setActiveItem(item) {\n super.setActiveItem(item);\n if (this.activeItem) {\n this.activeItem.focus(this._origin);\n }\n }\n}\n\n/**\n * Configuration for the isFocusable method.\n */\nclass IsFocusableConfig {\n constructor() {\n /**\n * Whether to count an element as focusable even if it is not currently visible.\n */\n this.ignoreVisibility = false;\n }\n}\n// The InteractivityChecker leans heavily on the ally.js accessibility utilities.\n// Methods like `isTabbable` are only covering specific edge-cases for the browsers which are\n// supported.\n/**\n * Utility for checking the interactivity of an element, such as whether is is focusable or\n * tabbable.\n */\nclass InteractivityChecker {\n constructor(_platform) {\n this._platform = _platform;\n }\n /**\n * Gets whether an element is disabled.\n *\n * @param element Element to be checked.\n * @returns Whether the element is disabled.\n */\n isDisabled(element) {\n // This does not capture some cases, such as a non-form control with a disabled attribute or\n // a form control inside of a disabled form, but should capture the most common cases.\n return element.hasAttribute('disabled');\n }\n /**\n * Gets whether an element is visible for the purposes of interactivity.\n *\n * This will capture states like `display: none` and `visibility: hidden`, but not things like\n * being clipped by an `overflow: hidden` parent or being outside the viewport.\n *\n * @returns Whether the element is visible.\n */\n isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }\n /**\n * Gets whether an element can be reached via Tab key.\n * Assumes that the element has already been checked with isFocusable.\n *\n * @param element Element to be checked.\n * @returns Whether the element is tabbable.\n */\n isTabbable(element) {\n // Nothing is tabbable on the server 😎\n if (!this._platform.isBrowser) {\n return false;\n }\n const frameElement = getFrameElement(getWindow(element));\n if (frameElement) {\n // Frame elements inherit their tabindex onto all child elements.\n if (getTabIndexValue(frameElement) === -1) {\n return false;\n }\n // Browsers disable tabbing to an element inside of an invisible frame.\n if (!this.isVisible(frameElement)) {\n return false;\n }\n }\n let nodeName = element.nodeName.toLowerCase();\n let tabIndexValue = getTabIndexValue(element);\n if (element.hasAttribute('contenteditable')) {\n return tabIndexValue !== -1;\n }\n if (nodeName === 'iframe' || nodeName === 'object') {\n // The frame or object's content may be tabbable depending on the content, but it's\n // not possibly to reliably detect the content of the frames. We always consider such\n // elements as non-tabbable.\n return false;\n }\n // In iOS, the browser only considers some specific elements as tabbable.\n if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {\n return false;\n }\n if (nodeName === 'audio') {\n // Audio elements without controls enabled are never tabbable, regardless\n // of the tabindex attribute explicitly being set.\n if (!element.hasAttribute('controls')) {\n return false;\n }\n // Audio elements with controls are by default tabbable unless the\n // tabindex attribute is set to `-1` explicitly.\n return tabIndexValue !== -1;\n }\n if (nodeName === 'video') {\n // For all video elements, if the tabindex attribute is set to `-1`, the video\n // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`\n // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The\n // tabindex attribute is the source of truth here.\n if (tabIndexValue === -1) {\n return false;\n }\n // If the tabindex is explicitly set, and not `-1` (as per check before), the\n // video element is always tabbable (regardless of whether it has controls or not).\n if (tabIndexValue !== null) {\n return true;\n }\n // Otherwise (when no explicit tabindex is set), a video is only tabbable if it\n // has controls enabled. Firefox is special as videos are always tabbable regardless\n // of whether there are controls or not.\n return this._platform.FIREFOX || element.hasAttribute('controls');\n }\n return element.tabIndex >= 0;\n }\n /**\n * Gets whether an element can be focused by the user.\n *\n * @param element Element to be checked.\n * @param config The config object with options to customize this method's behavior\n * @returns Whether the element is focusable.\n */\n isFocusable(element, config) {\n // Perform checks in order of left to most expensive.\n // Again, naive approach that does not capture many edge cases and browser quirks.\n return (isPotentiallyFocusable(element) &&\n !this.isDisabled(element) &&\n ((config === null || config === void 0 ? void 0 : config.ignoreVisibility) || this.isVisible(element)));\n }\n}\nInteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InteractivityChecker, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nInteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InteractivityChecker, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () { return [{ type: i1.Platform }]; } });\n/**\n * Returns the frame element from a window object. Since browsers like MS Edge throw errors if\n * the frameElement property is being accessed from a different host address, this property\n * should be accessed carefully.\n */\nfunction getFrameElement(window) {\n try {\n return window.frameElement;\n }\n catch (_a) {\n return null;\n }\n}\n/** Checks whether the specified element has any geometry / rectangles. */\nfunction hasGeometry(element) {\n // Use logic from jQuery to check for an invisible element.\n // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12\n return !!(element.offsetWidth ||\n element.offsetHeight ||\n (typeof element.getClientRects === 'function' && element.getClientRects().length));\n}\n/** Gets whether an element's */\nfunction isNativeFormElement(element) {\n let nodeName = element.nodeName.toLowerCase();\n return (nodeName === 'input' ||\n nodeName === 'select' ||\n nodeName === 'button' ||\n nodeName === 'textarea');\n}\n/** Gets whether an element is an `<input type=\"hidden\">`. */\nfunction isHiddenInput(element) {\n return isInputElement(element) && element.type == 'hidden';\n}\n/** Gets whether an element is an anchor that has an href attribute. */\nfunction isAnchorWithHref(element) {\n return isAnchorElement(element) && element.hasAttribute('href');\n}\n/** Gets whether an element is an input element. */\nfunction isInputElement(element) {\n return element.nodeName.toLowerCase() == 'input';\n}\n/** Gets whether an element is an anchor element. */\nfunction isAnchorElement(element) {\n return element.nodeName.toLowerCase() == 'a';\n}\n/** Gets whether an element has a valid tabindex. */\nfunction hasValidTabIndex(element) {\n if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {\n return false;\n }\n let tabIndex = element.getAttribute('tabindex');\n return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));\n}\n/**\n * Returns the parsed tabindex from the element attributes instead of returning the\n * evaluated tabindex from the browsers defaults.\n */\nfunction getTabIndexValue(element) {\n if (!hasValidTabIndex(element)) {\n return null;\n }\n // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054\n const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);\n return isNaN(tabIndex) ? -1 : tabIndex;\n}\n/** Checks whether the specified element is potentially tabbable on iOS */\nfunction isPotentiallyTabbableIOS(element) {\n let nodeName = element.nodeName.toLowerCase();\n let inputType = nodeName === 'input' && element.type;\n return (inputType === 'text' ||\n inputType === 'password' ||\n nodeName === 'select' ||\n nodeName === 'textarea');\n}\n/**\n * Gets whether an element is potentially focusable without taking current visible/disabled state\n * into account.\n */\nfunction isPotentiallyFocusable(element) {\n // Inputs are potentially focusable *unless* they're type=\"hidden\".\n if (isHiddenInput(element)) {\n return false;\n }\n return (isNativeFormElement(element) ||\n isAnchorWithHref(element) ||\n element.hasAttribute('contenteditable') ||\n hasValidTabIndex(element));\n}\n/** Gets the parent window of a DOM node with regards of being inside of an iframe. */\nfunction getWindow(node) {\n // ownerDocument is null if `node` itself *is* a document.\n return (node.ownerDocument && node.ownerDocument.defaultView) || window;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class currently uses a relatively simple approach to focus trapping.\n * It assumes that the tab order is the same as DOM order, which is not necessarily true.\n * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to be misaligned.\n *\n * @deprecated Use `ConfigurableFocusTrap` instead.\n * @breaking-change 11.0.0\n */\nclass FocusTrap {\n constructor(_element, _checker, _ngZone, _document, deferAnchors = false) {\n this._element = _element;\n this._checker = _checker;\n this._ngZone = _ngZone;\n this._document = _document;\n this._hasAttached = false;\n // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.\n this.startAnchorListener = () => this.focusLastTabbableElement();\n this.endAnchorListener = () => this.focusFirstTabbableElement();\n this._enabled = true;\n if (!deferAnchors) {\n this.attachAnchors();\n }\n }\n /** Whether the focus trap is active. */\n get enabled() {\n return this._enabled;\n }\n set enabled(value) {\n this._enabled = value;\n if (this._startAnchor && this._endAnchor) {\n this._toggleAnchorTabIndex(value, this._startAnchor);\n this._toggleAnchorTabIndex(value, this._endAnchor);\n }\n }\n /** Destroys the focus trap by cleaning up the anchors. */\n destroy() {\n const startAnchor = this._startAnchor;\n const endAnchor = this._endAnchor;\n if (startAnchor) {\n startAnchor.removeEventListener('focus', this.startAnchorListener);\n startAnchor.remove();\n }\n if (endAnchor) {\n endAnchor.removeEventListener('focus', this.endAnchorListener);\n endAnchor.remove();\n }\n this._startAnchor = this._endAnchor = null;\n this._hasAttached = false;\n }\n /**\n * Inserts the anchors into the DOM. This is usually done automatically\n * in the constructor, but can be deferred for cases like directives with `*ngIf`.\n * @returns Whether the focus trap managed to attach successfully. This may not be the case\n * if the target element isn't currently in the DOM.\n */\n attachAnchors() {\n // If we're not on the browser, there can be no focus to trap.\n if (this._hasAttached) {\n return true;\n }\n this._ngZone.runOutsideAngular(() => {\n if (!this._startAnchor) {\n this._startAnchor = this._createAnchor();\n this._startAnchor.addEventListener('focus', this.startAnchorListener);\n }\n if (!this._endAnchor) {\n this._endAnchor = this._createAnchor();\n this._endAnchor.addEventListener('focus', this.endAnchorListener);\n }\n });\n if (this._element.parentNode) {\n this._element.parentNode.insertBefore(this._startAnchor, this._element);\n this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);\n this._hasAttached = true;\n }\n return this._hasAttached;\n }\n /**\n * Waits for the zone to stabilize, then focuses the first tabbable element.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusInitialElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusInitialElement(options)));\n });\n }\n /**\n * Waits for the zone to stabilize, then focuses\n * the first tabbable element within the focus trap region.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusFirstTabbableElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusFirstTabbableElement(options)));\n });\n }\n /**\n * Waits for the zone to stabilize, then focuses\n * the last tabbable element within the focus trap region.\n * @returns Returns a promise that resolves with a boolean, depending\n * on whether focus was moved successfully.\n */\n focusLastTabbableElementWhenReady(options) {\n return new Promise(resolve => {\n this._executeOnStable(() => resolve(this.focusLastTabbableElement(options)));\n });\n }\n /**\n * Get the specified boundary element of the trapped region.\n * @param bound The boundary to get (start or end of trapped region).\n * @returns The boundary element.\n */\n _getRegionBoundary(bound) {\n // Contains the deprecated version of selector, for temporary backwards comparability.\n const markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` + `[cdkFocusRegion${bound}], ` + `[cdk-focus-${bound}]`);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n for (let i = 0; i < markers.length; i++) {\n // @breaking-change 8.0.0\n if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` +\n `use 'cdkFocusRegion${bound}' instead. The deprecated ` +\n `attribute will be removed in 8.0.0.`, markers[i]);\n }\n else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` +\n `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` +\n `will be removed in 8.0.0.`, markers[i]);\n }\n }\n }\n if (bound == 'start') {\n return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);\n }\n return markers.length\n ? markers[markers.length - 1]\n : this._getLastTabbableElement(this._element);\n }\n /**\n * Focuses the element that should be focused when the focus trap is initialized.\n * @returns Whether focus was moved successfully.\n */\n focusInitialElement(options) {\n // Contains the deprecated version of selector, for temporary backwards comparability.\n const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` + `[cdkFocusInitial]`);\n if (redirectToElement) {\n // @breaking-change 8.0.0\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n redirectToElement.hasAttribute(`cdk-focus-initial`)) {\n console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` +\n `use 'cdkFocusInitial' instead. The deprecated attribute ` +\n `will be removed in 8.0.0`, redirectToElement);\n }\n // Warn the consumer if the element they've pointed to\n // isn't focusable, when not in production mode.\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n !this._checker.isFocusable(redirectToElement)) {\n console.warn(`Element matching '[cdkFocusInitial]' is not focusable.`, redirectToElement);\n }\n if (!this._checker.isFocusable(redirectToElement)) {\n const focusableChild = this._getFirstTabbableElement(redirectToElement);\n focusableChild === null || focusableChild === void 0 ? void 0 : focusableChild.focus(options);\n return !!focusableChild;\n }\n redirectToElement.focus(options);\n return true;\n }\n return this.focusFirstTabbableElement(options);\n }\n /**\n * Focuses the first tabbable element within the focus trap region.\n * @returns Whether focus was moved successfully.\n */\n focusFirstTabbableElement(options) {\n const redirectToElement = this._getRegionBoundary('start');\n if (redirectToElement) {\n redirectToElement.focus(options);\n }\n return !!redirectToElement;\n }\n /**\n * Focuses the last tabbable element within the focus trap region.\n * @returns Whether focus was moved successfully.\n */\n focusLastTabbableElement(options) {\n const redirectToElement = this._getRegionBoundary('end');\n if (redirectToElement) {\n redirectToElement.focus(options);\n }\n return !!redirectToElement;\n }\n /**\n * Checks whether the focus trap has successfully been attached.\n */\n hasAttached() {\n return this._hasAttached;\n }\n /** Get the first tabbable element from a DOM subtree (inclusive). */\n _getFirstTabbableElement(root) {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n const children = root.children;\n for (let i = 0; i < children.length; i++) {\n const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE\n ? this._getFirstTabbableElement(children[i])\n : null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n }\n /** Get the last tabbable element from a DOM subtree (inclusive). */\n _getLastTabbableElement(root) {\n if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {\n return root;\n }\n // Iterate in reverse DOM order.\n const children = root.children;\n for (let i = children.length - 1; i >= 0; i--) {\n const tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE\n ? this._getLastTabbableElement(children[i])\n : null;\n if (tabbableChild) {\n return tabbableChild;\n }\n }\n return null;\n }\n /** Creates an anchor element. */\n _createAnchor() {\n const anchor = this._document.createElement('div');\n this._toggleAnchorTabIndex(this._enabled, anchor);\n anchor.classList.add('cdk-visually-hidden');\n anchor.classList.add('cdk-focus-trap-anchor');\n anchor.setAttribute('aria-hidden', 'true');\n return anchor;\n }\n /**\n * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.\n * @param isEnabled Whether the focus trap is enabled.\n * @param anchor Anchor on which to toggle the tabindex.\n */\n _toggleAnchorTabIndex(isEnabled, anchor) {\n // Remove the tabindex completely, rather than setting it to -1, because if the\n // element has a tabindex, the user might still hit it when navigating with the arrow keys.\n isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');\n }\n /**\n * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.\n * @param enabled: Whether the anchors should trap Tab.\n */\n toggleAnchors(enabled) {\n if (this._startAnchor && this._endAnchor) {\n this._toggleAnchorTabIndex(enabled, this._startAnchor);\n this._toggleAnchorTabIndex(enabled, this._endAnchor);\n }\n }\n /** Executes a function when the zone is stable. */\n _executeOnStable(fn) {\n if (this._ngZone.isStable) {\n fn();\n }\n else {\n this._ngZone.onStable.pipe(take(1)).subscribe(fn);\n }\n }\n}\n/**\n * Factory that allows easy instantiation of focus traps.\n * @deprecated Use `ConfigurableFocusTrapFactory` instead.\n * @breaking-change 11.0.0\n */\nclass FocusTrapFactory {\n constructor(_checker, _ngZone, _document) {\n this._checker = _checker;\n this._ngZone = _ngZone;\n this._document = _document;\n }\n /**\n * Creates a focus-trapped region around the given element.\n * @param element The element around which focus will be trapped.\n * @param deferCaptureElements Defers the creation of focus-capturing elements to be done\n * manually by the user.\n * @returns The created focus trap instance.\n */\n create(element, deferCaptureElements = false) {\n return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);\n }\n}\nFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapFactory, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/** Directive for trapping focus within a region. */\nclass CdkTrapFocus {\n constructor(_elementRef, _focusTrapFactory, \n /**\n * @deprecated No longer being used. To be removed.\n * @breaking-change 13.0.0\n */\n _document) {\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n /** Previously focused element to restore focus to upon destroy when using autoCapture. */\n this._previouslyFocusedElement = null;\n this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);\n }\n /** Whether the focus trap is active. */\n get enabled() {\n return this.focusTrap.enabled;\n }\n set enabled(value) {\n this.focusTrap.enabled = coerceBooleanProperty(value);\n }\n /**\n * Whether the directive should automatically move focus into the trapped region upon\n * initialization and return focus to the previous activeElement upon destruction.\n */\n get autoCapture() {\n return this._autoCapture;\n }\n set autoCapture(value) {\n this._autoCapture = coerceBooleanProperty(value);\n }\n ngOnDestroy() {\n this.focusTrap.destroy();\n // If we stored a previously focused element when using autoCapture, return focus to that\n // element now that the trapped region is being destroyed.\n if (this._previouslyFocusedElement) {\n this._previouslyFocusedElement.focus();\n this._previouslyFocusedElement = null;\n }\n }\n ngAfterContentInit() {\n this.focusTrap.attachAnchors();\n if (this.autoCapture) {\n this._captureFocus();\n }\n }\n ngDoCheck() {\n if (!this.focusTrap.hasAttached()) {\n this.focusTrap.attachAnchors();\n }\n }\n ngOnChanges(changes) {\n const autoCaptureChange = changes['autoCapture'];\n if (autoCaptureChange &&\n !autoCaptureChange.firstChange &&\n this.autoCapture &&\n this.focusTrap.hasAttached()) {\n this._captureFocus();\n }\n }\n _captureFocus() {\n this._previouslyFocusedElement = _getFocusedElementPierceShadowDom();\n this.focusTrap.focusInitialElementWhenReady();\n }\n}\nCdkTrapFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTrapFocus, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTrapFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTrapFocus, selector: \"[cdkTrapFocus]\", inputs: { enabled: [\"cdkTrapFocus\", \"enabled\"], autoCapture: [\"cdkTrapFocusAutoCapture\", \"autoCapture\"] }, exportAs: [\"cdkTrapFocus\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTrapFocus, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkTrapFocus]',\n exportAs: 'cdkTrapFocus',\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: FocusTrapFactory }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { enabled: [{\n type: Input,\n args: ['cdkTrapFocus']\n }], autoCapture: [{\n type: Input,\n args: ['cdkTrapFocusAutoCapture']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Class that allows for trapping focus within a DOM element.\n *\n * This class uses a strategy pattern that determines how it traps focus.\n * See FocusTrapInertStrategy.\n */\nclass ConfigurableFocusTrap extends FocusTrap {\n constructor(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config) {\n super(_element, _checker, _ngZone, _document, config.defer);\n this._focusTrapManager = _focusTrapManager;\n this._inertStrategy = _inertStrategy;\n this._focusTrapManager.register(this);\n }\n /** Whether the FocusTrap is enabled. */\n get enabled() {\n return this._enabled;\n }\n set enabled(value) {\n this._enabled = value;\n if (this._enabled) {\n this._focusTrapManager.register(this);\n }\n else {\n this._focusTrapManager.deregister(this);\n }\n }\n /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */\n destroy() {\n this._focusTrapManager.deregister(this);\n super.destroy();\n }\n /** @docs-private Implemented as part of ManagedFocusTrap. */\n _enable() {\n this._inertStrategy.preventFocus(this);\n this.toggleAnchors(true);\n }\n /** @docs-private Implemented as part of ManagedFocusTrap. */\n _disable() {\n this._inertStrategy.allowFocus(this);\n this.toggleAnchors(false);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The injection token used to specify the inert strategy. */\nconst FOCUS_TRAP_INERT_STRATEGY = new InjectionToken('FOCUS_TRAP_INERT_STRATEGY');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Lightweight FocusTrapInertStrategy that adds a document focus event\n * listener to redirect focus back inside the FocusTrap.\n */\nclass EventListenerFocusTrapInertStrategy {\n constructor() {\n /** Focus event handler. */\n this._listener = null;\n }\n /** Adds a document event listener that keeps focus inside the FocusTrap. */\n preventFocus(focusTrap) {\n // Ensure there's only one listener per document\n if (this._listener) {\n focusTrap._document.removeEventListener('focus', this._listener, true);\n }\n this._listener = (e) => this._trapFocus(focusTrap, e);\n focusTrap._ngZone.runOutsideAngular(() => {\n focusTrap._document.addEventListener('focus', this._listener, true);\n });\n }\n /** Removes the event listener added in preventFocus. */\n allowFocus(focusTrap) {\n if (!this._listener) {\n return;\n }\n focusTrap._document.removeEventListener('focus', this._listener, true);\n this._listener = null;\n }\n /**\n * Refocuses the first element in the FocusTrap if the focus event target was outside\n * the FocusTrap.\n *\n * This is an event listener callback. The event listener is added in runOutsideAngular,\n * so all this code runs outside Angular as well.\n */\n _trapFocus(focusTrap, event) {\n var _a;\n const target = event.target;\n const focusTrapRoot = focusTrap._element;\n // Don't refocus if target was in an overlay, because the overlay might be associated\n // with an element inside the FocusTrap, ex. mat-select.\n if (target && !focusTrapRoot.contains(target) && !((_a = target.closest) === null || _a === void 0 ? void 0 : _a.call(target, 'div.cdk-overlay-pane'))) {\n // Some legacy FocusTrap usages have logic that focuses some element on the page\n // just before FocusTrap is destroyed. For backwards compatibility, wait\n // to be sure FocusTrap is still enabled before refocusing.\n setTimeout(() => {\n // Check whether focus wasn't put back into the focus trap while the timeout was pending.\n if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {\n focusTrap.focusFirstTabbableElement();\n }\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injectable that ensures only the most recently enabled FocusTrap is active. */\nclass FocusTrapManager {\n constructor() {\n // A stack of the FocusTraps on the page. Only the FocusTrap at the\n // top of the stack is active.\n this._focusTrapStack = [];\n }\n /**\n * Disables the FocusTrap at the top of the stack, and then pushes\n * the new FocusTrap onto the stack.\n */\n register(focusTrap) {\n // Dedupe focusTraps that register multiple times.\n this._focusTrapStack = this._focusTrapStack.filter(ft => ft !== focusTrap);\n let stack = this._focusTrapStack;\n if (stack.length) {\n stack[stack.length - 1]._disable();\n }\n stack.push(focusTrap);\n focusTrap._enable();\n }\n /**\n * Removes the FocusTrap from the stack, and activates the\n * FocusTrap that is the new top of the stack.\n */\n deregister(focusTrap) {\n focusTrap._disable();\n const stack = this._focusTrapStack;\n const i = stack.indexOf(focusTrap);\n if (i !== -1) {\n stack.splice(i, 1);\n if (stack.length) {\n stack[stack.length - 1]._enable();\n }\n }\n }\n}\nFocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nFocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusTrapManager, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Factory that allows easy instantiation of configurable focus traps. */\nclass ConfigurableFocusTrapFactory {\n constructor(_checker, _ngZone, _focusTrapManager, _document, _inertStrategy) {\n this._checker = _checker;\n this._ngZone = _ngZone;\n this._focusTrapManager = _focusTrapManager;\n this._document = _document;\n // TODO split up the strategies into different modules, similar to DateAdapter.\n this._inertStrategy = _inertStrategy || new EventListenerFocusTrapInertStrategy();\n }\n create(element, config = { defer: false }) {\n let configObject;\n if (typeof config === 'boolean') {\n configObject = { defer: config };\n }\n else {\n configObject = config;\n }\n return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);\n }\n}\nConfigurableFocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: FocusTrapManager }, { token: DOCUMENT }, { token: FOCUS_TRAP_INERT_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nConfigurableFocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ConfigurableFocusTrapFactory, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: FocusTrapManager }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [FOCUS_TRAP_INERT_STRATEGY]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Gets whether an event could be a faked `mousedown` event dispatched by a screen reader. */\nfunction isFakeMousedownFromScreenReader(event) {\n // Some screen readers will dispatch a fake `mousedown` event when pressing enter or space on\n // a clickable element. We can distinguish these events when both `offsetX` and `offsetY` are\n // zero. Note that there's an edge case where the user could click the 0x0 spot of the screen\n // themselves, but that is unlikely to contain interaction elements. Historically we used to\n // check `event.buttons === 0`, however that no longer works on recent versions of NVDA.\n return event.offsetX === 0 && event.offsetY === 0;\n}\n/** Gets whether an event could be a faked `touchstart` event dispatched by a screen reader. */\nfunction isFakeTouchstartFromScreenReader(event) {\n const touch = (event.touches && event.touches[0]) || (event.changedTouches && event.changedTouches[0]);\n // A fake `touchstart` can be distinguished from a real one by looking at the `identifier`\n // which is typically >= 0 on a real device versus -1 from a screen reader. Just to be safe,\n // we can also look at `radiusX` and `radiusY`. This behavior was observed against a Windows 10\n // device with a touch screen running NVDA v2020.4 and Firefox 85 or Chrome 88.\n return (!!touch &&\n touch.identifier === -1 &&\n (touch.radiusX == null || touch.radiusX === 1) &&\n (touch.radiusY == null || touch.radiusY === 1));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injectable options for the InputModalityDetector. These are shallowly merged with the default\n * options.\n */\nconst INPUT_MODALITY_DETECTOR_OPTIONS = new InjectionToken('cdk-input-modality-detector-options');\n/**\n * Default options for the InputModalityDetector.\n *\n * Modifier keys are ignored by default (i.e. when pressed won't cause the service to detect\n * keyboard input modality) for two reasons:\n *\n * 1. Modifier keys are commonly used with mouse to perform actions such as 'right click' or 'open\n * in new tab', and are thus less representative of actual keyboard interaction.\n * 2. VoiceOver triggers some keyboard events when linearly navigating with Control + Option (but\n * confusingly not with Caps Lock). Thus, to have parity with other screen readers, we ignore\n * these keys so as to not update the input modality.\n *\n * Note that we do not by default ignore the right Meta key on Safari because it has the same key\n * code as the ContextMenu key on other browsers. When we switch to using event.key, we can\n * distinguish between the two.\n */\nconst INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS = {\n ignoreKeys: [ALT, CONTROL, MAC_META, META, SHIFT],\n};\n/**\n * The amount of time needed to pass after a touchstart event in order for a subsequent mousedown\n * event to be attributed as mouse and not touch.\n *\n * This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found\n * that a value of around 650ms seems appropriate.\n */\nconst TOUCH_BUFFER_MS = 650;\n/**\n * Event listener options that enable capturing and also mark the listener as passive if the browser\n * supports it.\n */\nconst modalityEventListenerOptions = normalizePassiveListenerOptions({\n passive: true,\n capture: true,\n});\n/**\n * Service that detects the user's input modality.\n *\n * This service does not update the input modality when a user navigates with a screen reader\n * (e.g. linear navigation with VoiceOver, object navigation / browse mode with NVDA, virtual PC\n * cursor mode with JAWS). This is in part due to technical limitations (i.e. keyboard events do not\n * fire as expected in these modes) but is also arguably the correct behavior. Navigating with a\n * screen reader is akin to visually scanning a page, and should not be interpreted as actual user\n * input interaction.\n *\n * When a user is not navigating but *interacting* with a screen reader, this service attempts to\n * update the input modality to keyboard, but in general this service's behavior is largely\n * undefined.\n */\nclass InputModalityDetector {\n constructor(_platform, ngZone, document, options) {\n this._platform = _platform;\n /**\n * The most recently detected input modality event target. Is null if no input modality has been\n * detected or if the associated event target is null for some unknown reason.\n */\n this._mostRecentTarget = null;\n /** The underlying BehaviorSubject that emits whenever an input modality is detected. */\n this._modality = new BehaviorSubject(null);\n /**\n * The timestamp of the last touch input modality. Used to determine whether mousedown events\n * should be attributed to mouse or touch.\n */\n this._lastTouchMs = 0;\n /**\n * Handles keydown events. Must be an arrow function in order to preserve the context when it gets\n * bound.\n */\n this._onKeydown = (event) => {\n var _a, _b;\n // If this is one of the keys we should ignore, then ignore it and don't update the input\n // modality to keyboard.\n if ((_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.ignoreKeys) === null || _b === void 0 ? void 0 : _b.some(keyCode => keyCode === event.keyCode)) {\n return;\n }\n this._modality.next('keyboard');\n this._mostRecentTarget = _getEventTarget(event);\n };\n /**\n * Handles mousedown events. Must be an arrow function in order to preserve the context when it\n * gets bound.\n */\n this._onMousedown = (event) => {\n // Touches trigger both touch and mouse events, so we need to distinguish between mouse events\n // that were triggered via mouse vs touch. To do so, check if the mouse event occurs closely\n // after the previous touch event.\n if (Date.now() - this._lastTouchMs < TOUCH_BUFFER_MS) {\n return;\n }\n // Fake mousedown events are fired by some screen readers when controls are activated by the\n // screen reader. Attribute them to keyboard input modality.\n this._modality.next(isFakeMousedownFromScreenReader(event) ? 'keyboard' : 'mouse');\n this._mostRecentTarget = _getEventTarget(event);\n };\n /**\n * Handles touchstart events. Must be an arrow function in order to preserve the context when it\n * gets bound.\n */\n this._onTouchstart = (event) => {\n // Same scenario as mentioned in _onMousedown, but on touch screen devices, fake touchstart\n // events are fired. Again, attribute to keyboard input modality.\n if (isFakeTouchstartFromScreenReader(event)) {\n this._modality.next('keyboard');\n return;\n }\n // Store the timestamp of this touch event, as it's used to distinguish between mouse events\n // triggered via mouse vs touch.\n this._lastTouchMs = Date.now();\n this._modality.next('touch');\n this._mostRecentTarget = _getEventTarget(event);\n };\n this._options = Object.assign(Object.assign({}, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS), options);\n // Skip the first emission as it's null.\n this.modalityDetected = this._modality.pipe(skip(1));\n this.modalityChanged = this.modalityDetected.pipe(distinctUntilChanged());\n // If we're not in a browser, this service should do nothing, as there's no relevant input\n // modality to detect.\n if (_platform.isBrowser) {\n ngZone.runOutsideAngular(() => {\n document.addEventListener('keydown', this._onKeydown, modalityEventListenerOptions);\n document.addEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);\n document.addEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);\n });\n }\n }\n /** The most recently detected input modality. */\n get mostRecentModality() {\n return this._modality.value;\n }\n ngOnDestroy() {\n this._modality.complete();\n if (this._platform.isBrowser) {\n document.removeEventListener('keydown', this._onKeydown, modalityEventListenerOptions);\n document.removeEventListener('mousedown', this._onMousedown, modalityEventListenerOptions);\n document.removeEventListener('touchstart', this._onTouchstart, modalityEventListenerOptions);\n }\n }\n}\nInputModalityDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InputModalityDetector, deps: [{ token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT }, { token: INPUT_MODALITY_DETECTOR_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nInputModalityDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InputModalityDetector, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: InputModalityDetector, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.Platform }, { type: i0.NgZone }, { type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [INPUT_MODALITY_DETECTOR_OPTIONS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst LIVE_ANNOUNCER_ELEMENT_TOKEN = new InjectionToken('liveAnnouncerElement', {\n providedIn: 'root',\n factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY,\n});\n/** @docs-private */\nfunction LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {\n return null;\n}\n/** Injection token that can be used to configure the default options for the LiveAnnouncer. */\nconst LIVE_ANNOUNCER_DEFAULT_OPTIONS = new InjectionToken('LIVE_ANNOUNCER_DEFAULT_OPTIONS');\n\nclass LiveAnnouncer {\n constructor(elementToken, _ngZone, _document, _defaultOptions) {\n this._ngZone = _ngZone;\n this._defaultOptions = _defaultOptions;\n // We inject the live element and document as `any` because the constructor signature cannot\n // reference browser globals (HTMLElement, Document) on non-browser environments, since having\n // a class decorator causes TypeScript to preserve the constructor signature types.\n this._document = _document;\n this._liveElement = elementToken || this._createLiveElement();\n }\n announce(message, ...args) {\n const defaultOptions = this._defaultOptions;\n let politeness;\n let duration;\n if (args.length === 1 && typeof args[0] === 'number') {\n duration = args[0];\n }\n else {\n [politeness, duration] = args;\n }\n this.clear();\n clearTimeout(this._previousTimeout);\n if (!politeness) {\n politeness =\n defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';\n }\n if (duration == null && defaultOptions) {\n duration = defaultOptions.duration;\n }\n // TODO: ensure changing the politeness works on all environments we support.\n this._liveElement.setAttribute('aria-live', politeness);\n // This 100ms timeout is necessary for some browser + screen-reader combinations:\n // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.\n // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a\n // second time without clearing and then using a non-zero delay.\n // (using JAWS 17 at time of this writing).\n return this._ngZone.runOutsideAngular(() => {\n return new Promise(resolve => {\n clearTimeout(this._previousTimeout);\n this._previousTimeout = setTimeout(() => {\n this._liveElement.textContent = message;\n resolve();\n if (typeof duration === 'number') {\n this._previousTimeout = setTimeout(() => this.clear(), duration);\n }\n }, 100);\n });\n });\n }\n /**\n * Clears the current text from the announcer element. Can be used to prevent\n * screen readers from reading the text out again while the user is going\n * through the page landmarks.\n */\n clear() {\n if (this._liveElement) {\n this._liveElement.textContent = '';\n }\n }\n ngOnDestroy() {\n var _a;\n clearTimeout(this._previousTimeout);\n (_a = this._liveElement) === null || _a === void 0 ? void 0 : _a.remove();\n this._liveElement = null;\n }\n _createLiveElement() {\n const elementClass = 'cdk-live-announcer-element';\n const previousElements = this._document.getElementsByClassName(elementClass);\n const liveEl = this._document.createElement('div');\n // Remove any old containers. This can happen when coming in from a server-side-rendered page.\n for (let i = 0; i < previousElements.length; i++) {\n previousElements[i].remove();\n }\n liveEl.classList.add(elementClass);\n liveEl.classList.add('cdk-visually-hidden');\n liveEl.setAttribute('aria-atomic', 'true');\n liveEl.setAttribute('aria-live', 'polite');\n this._document.body.appendChild(liveEl);\n return liveEl;\n }\n}\nLiveAnnouncer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LiveAnnouncer, deps: [{ token: LIVE_ANNOUNCER_ELEMENT_TOKEN, optional: true }, { token: i0.NgZone }, { token: DOCUMENT }, { token: LIVE_ANNOUNCER_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nLiveAnnouncer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LiveAnnouncer, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LiveAnnouncer, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]\n }] }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]\n }] }];\n } });\n/**\n * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility\n * with a wider range of browsers and screen readers.\n */\nclass CdkAriaLive {\n constructor(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) {\n this._elementRef = _elementRef;\n this._liveAnnouncer = _liveAnnouncer;\n this._contentObserver = _contentObserver;\n this._ngZone = _ngZone;\n this._politeness = 'polite';\n }\n /** The aria-live politeness level to use when announcing messages. */\n get politeness() {\n return this._politeness;\n }\n set politeness(value) {\n this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';\n if (this._politeness === 'off') {\n if (this._subscription) {\n this._subscription.unsubscribe();\n this._subscription = null;\n }\n }\n else if (!this._subscription) {\n this._subscription = this._ngZone.runOutsideAngular(() => {\n return this._contentObserver.observe(this._elementRef).subscribe(() => {\n // Note that we use textContent here, rather than innerText, in order to avoid a reflow.\n const elementText = this._elementRef.nativeElement.textContent;\n // The `MutationObserver` fires also for attribute\n // changes which we don't want to announce.\n if (elementText !== this._previousAnnouncedText) {\n this._liveAnnouncer.announce(elementText, this._politeness);\n this._previousAnnouncedText = elementText;\n }\n });\n });\n }\n }\n ngOnDestroy() {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n }\n}\nCdkAriaLive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAriaLive, deps: [{ token: i0.ElementRef }, { token: LiveAnnouncer }, { token: i1$1.ContentObserver }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });\nCdkAriaLive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkAriaLive, selector: \"[cdkAriaLive]\", inputs: { politeness: [\"cdkAriaLive\", \"politeness\"] }, exportAs: [\"cdkAriaLive\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAriaLive, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkAriaLive]',\n exportAs: 'cdkAriaLive',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: LiveAnnouncer }, { type: i1$1.ContentObserver }, { type: i0.NgZone }]; }, propDecorators: { politeness: [{\n type: Input,\n args: ['cdkAriaLive']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** InjectionToken for FocusMonitorOptions. */\nconst FOCUS_MONITOR_DEFAULT_OPTIONS = new InjectionToken('cdk-focus-monitor-default-options');\n/**\n * Event listener options that enable capturing and also\n * mark the listener as passive if the browser supports it.\n */\nconst captureEventListenerOptions = normalizePassiveListenerOptions({\n passive: true,\n capture: true,\n});\n/** Monitors mouse and keyboard events to determine the cause of focus events. */\nclass FocusMonitor {\n constructor(_ngZone, _platform, _inputModalityDetector, \n /** @breaking-change 11.0.0 make document required */\n document, options) {\n this._ngZone = _ngZone;\n this._platform = _platform;\n this._inputModalityDetector = _inputModalityDetector;\n /** The focus origin that the next focus event is a result of. */\n this._origin = null;\n /** Whether the window has just been focused. */\n this._windowFocused = false;\n /**\n * Whether the origin was determined via a touch interaction. Necessary as properly attributing\n * focus events to touch interactions requires special logic.\n */\n this._originFromTouchInteraction = false;\n /** Map of elements being monitored to their info. */\n this._elementInfo = new Map();\n /** The number of elements currently being monitored. */\n this._monitoredElementCount = 0;\n /**\n * Keeps track of the root nodes to which we've currently bound a focus/blur handler,\n * as well as the number of monitored elements that they contain. We have to treat focus/blur\n * handlers differently from the rest of the events, because the browser won't emit events\n * to the document when focus moves inside of a shadow root.\n */\n this._rootNodeFocusListenerCount = new Map();\n /**\n * Event listener for `focus` events on the window.\n * Needs to be an arrow function in order to preserve the context when it gets bound.\n */\n this._windowFocusListener = () => {\n // Make a note of when the window regains focus, so we can\n // restore the origin info for the focused element.\n this._windowFocused = true;\n this._windowFocusTimeoutId = setTimeout(() => (this._windowFocused = false));\n };\n /** Subject for stopping our InputModalityDetector subscription. */\n this._stopInputModalityDetector = new Subject();\n /**\n * Event listener for `focus` and 'blur' events on the document.\n * Needs to be an arrow function in order to preserve the context when it gets bound.\n */\n this._rootNodeFocusAndBlurListener = (event) => {\n const target = _getEventTarget(event);\n const handler = event.type === 'focus' ? this._onFocus : this._onBlur;\n // We need to walk up the ancestor chain in order to support `checkChildren`.\n for (let element = target; element; element = element.parentElement) {\n handler.call(this, event, element);\n }\n };\n this._document = document;\n this._detectionMode = (options === null || options === void 0 ? void 0 : options.detectionMode) || 0 /* IMMEDIATE */;\n }\n monitor(element, checkChildren = false) {\n const nativeElement = coerceElement(element);\n // Do nothing if we're not on the browser platform or the passed in node isn't an element.\n if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {\n return of(null);\n }\n // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to\n // the shadow root, rather than the `document`, because the browser won't emit focus events\n // to the `document`, if focus is moving within the same shadow root.\n const rootNode = _getShadowRoot(nativeElement) || this._getDocument();\n const cachedInfo = this._elementInfo.get(nativeElement);\n // Check if we're already monitoring this element.\n if (cachedInfo) {\n if (checkChildren) {\n // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren\n // observers into ones that behave as if `checkChildren` was turned on. We need a more\n // robust solution.\n cachedInfo.checkChildren = true;\n }\n return cachedInfo.subject;\n }\n // Create monitored element info.\n const info = {\n checkChildren: checkChildren,\n subject: new Subject(),\n rootNode,\n };\n this._elementInfo.set(nativeElement, info);\n this._registerGlobalListeners(info);\n return info.subject;\n }\n stopMonitoring(element) {\n const nativeElement = coerceElement(element);\n const elementInfo = this._elementInfo.get(nativeElement);\n if (elementInfo) {\n elementInfo.subject.complete();\n this._setClasses(nativeElement);\n this._elementInfo.delete(nativeElement);\n this._removeGlobalListeners(elementInfo);\n }\n }\n focusVia(element, origin, options) {\n const nativeElement = coerceElement(element);\n const focusedElement = this._getDocument().activeElement;\n // If the element is focused already, calling `focus` again won't trigger the event listener\n // which means that the focus classes won't be updated. If that's the case, update the classes\n // directly without waiting for an event.\n if (nativeElement === focusedElement) {\n this._getClosestElementsInfo(nativeElement).forEach(([currentElement, info]) => this._originChanged(currentElement, origin, info));\n }\n else {\n this._setOrigin(origin);\n // `focus` isn't available on the server\n if (typeof nativeElement.focus === 'function') {\n nativeElement.focus(options);\n }\n }\n }\n ngOnDestroy() {\n this._elementInfo.forEach((_info, element) => this.stopMonitoring(element));\n }\n /** Access injected document if available or fallback to global document reference */\n _getDocument() {\n return this._document || document;\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n _getWindow() {\n const doc = this._getDocument();\n return doc.defaultView || window;\n }\n _getFocusOrigin(focusEventTarget) {\n if (this._origin) {\n // If the origin was realized via a touch interaction, we need to perform additional checks\n // to determine whether the focus origin should be attributed to touch or program.\n if (this._originFromTouchInteraction) {\n return this._shouldBeAttributedToTouch(focusEventTarget) ? 'touch' : 'program';\n }\n else {\n return this._origin;\n }\n }\n // If the window has just regained focus, we can restore the most recent origin from before the\n // window blurred. Otherwise, we've reached the point where we can't identify the source of the\n // focus. This typically means one of two things happened:\n //\n // 1) The element was programmatically focused, or\n // 2) The element was focused via screen reader navigation (which generally doesn't fire\n // events).\n //\n // Because we can't distinguish between these two cases, we default to setting `program`.\n return this._windowFocused && this._lastFocusOrigin ? this._lastFocusOrigin : 'program';\n }\n /**\n * Returns whether the focus event should be attributed to touch. Recall that in IMMEDIATE mode, a\n * touch origin isn't immediately reset at the next tick (see _setOrigin). This means that when we\n * handle a focus event following a touch interaction, we need to determine whether (1) the focus\n * event was directly caused by the touch interaction or (2) the focus event was caused by a\n * subsequent programmatic focus call triggered by the touch interaction.\n * @param focusEventTarget The target of the focus event under examination.\n */\n _shouldBeAttributedToTouch(focusEventTarget) {\n // Please note that this check is not perfect. Consider the following edge case:\n //\n // <div #parent tabindex=\"0\">\n // <div #child tabindex=\"0\" (click)=\"#parent.focus()\"></div>\n // </div>\n //\n // Suppose there is a FocusMonitor in IMMEDIATE mode attached to #parent. When the user touches\n // #child, #parent is programmatically focused. This code will attribute the focus to touch\n // instead of program. This is a relatively minor edge-case that can be worked around by using\n // focusVia(parent, 'program') to focus #parent.\n return (this._detectionMode === 1 /* EVENTUAL */ ||\n !!(focusEventTarget === null || focusEventTarget === void 0 ? void 0 : focusEventTarget.contains(this._inputModalityDetector._mostRecentTarget)));\n }\n /**\n * Sets the focus classes on the element based on the given focus origin.\n * @param element The element to update the classes on.\n * @param origin The focus origin.\n */\n _setClasses(element, origin) {\n element.classList.toggle('cdk-focused', !!origin);\n element.classList.toggle('cdk-touch-focused', origin === 'touch');\n element.classList.toggle('cdk-keyboard-focused', origin === 'keyboard');\n element.classList.toggle('cdk-mouse-focused', origin === 'mouse');\n element.classList.toggle('cdk-program-focused', origin === 'program');\n }\n /**\n * Updates the focus origin. If we're using immediate detection mode, we schedule an async\n * function to clear the origin at the end of a timeout. The duration of the timeout depends on\n * the origin being set.\n * @param origin The origin to set.\n * @param isFromInteraction Whether we are setting the origin from an interaction event.\n */\n _setOrigin(origin, isFromInteraction = false) {\n this._ngZone.runOutsideAngular(() => {\n this._origin = origin;\n this._originFromTouchInteraction = origin === 'touch' && isFromInteraction;\n // If we're in IMMEDIATE mode, reset the origin at the next tick (or in `TOUCH_BUFFER_MS` ms\n // for a touch event). We reset the origin at the next tick because Firefox focuses one tick\n // after the interaction event. We wait `TOUCH_BUFFER_MS` ms before resetting the origin for\n // a touch event because when a touch event is fired, the associated focus event isn't yet in\n // the event queue. Before doing so, clear any pending timeouts.\n if (this._detectionMode === 0 /* IMMEDIATE */) {\n clearTimeout(this._originTimeoutId);\n const ms = this._originFromTouchInteraction ? TOUCH_BUFFER_MS : 1;\n this._originTimeoutId = setTimeout(() => (this._origin = null), ms);\n }\n });\n }\n /**\n * Handles focus events on a registered element.\n * @param event The focus event.\n * @param element The monitored element.\n */\n _onFocus(event, element) {\n // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent\n // focus event affecting the monitored element. If we want to use the origin of the first event\n // instead we should check for the cdk-focused class here and return if the element already has\n // it. (This only matters for elements that have includesChildren = true).\n // If we are not counting child-element-focus as focused, make sure that the event target is the\n // monitored element itself.\n const elementInfo = this._elementInfo.get(element);\n const focusEventTarget = _getEventTarget(event);\n if (!elementInfo || (!elementInfo.checkChildren && element !== focusEventTarget)) {\n return;\n }\n this._originChanged(element, this._getFocusOrigin(focusEventTarget), elementInfo);\n }\n /**\n * Handles blur events on a registered element.\n * @param event The blur event.\n * @param element The monitored element.\n */\n _onBlur(event, element) {\n // If we are counting child-element-focus as focused, make sure that we aren't just blurring in\n // order to focus another child of the monitored element.\n const elementInfo = this._elementInfo.get(element);\n if (!elementInfo ||\n (elementInfo.checkChildren &&\n event.relatedTarget instanceof Node &&\n element.contains(event.relatedTarget))) {\n return;\n }\n this._setClasses(element);\n this._emitOrigin(elementInfo.subject, null);\n }\n _emitOrigin(subject, origin) {\n this._ngZone.run(() => subject.next(origin));\n }\n _registerGlobalListeners(elementInfo) {\n if (!this._platform.isBrowser) {\n return;\n }\n const rootNode = elementInfo.rootNode;\n const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;\n if (!rootNodeFocusListeners) {\n this._ngZone.runOutsideAngular(() => {\n rootNode.addEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n rootNode.addEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n });\n }\n this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1);\n // Register global listeners when first element is monitored.\n if (++this._monitoredElementCount === 1) {\n // Note: we listen to events in the capture phase so we\n // can detect them even if the user stops propagation.\n this._ngZone.runOutsideAngular(() => {\n const window = this._getWindow();\n window.addEventListener('focus', this._windowFocusListener);\n });\n // The InputModalityDetector is also just a collection of global listeners.\n this._inputModalityDetector.modalityDetected\n .pipe(takeUntil(this._stopInputModalityDetector))\n .subscribe(modality => {\n this._setOrigin(modality, true /* isFromInteraction */);\n });\n }\n }\n _removeGlobalListeners(elementInfo) {\n const rootNode = elementInfo.rootNode;\n if (this._rootNodeFocusListenerCount.has(rootNode)) {\n const rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);\n if (rootNodeFocusListeners > 1) {\n this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);\n }\n else {\n rootNode.removeEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n rootNode.removeEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);\n this._rootNodeFocusListenerCount.delete(rootNode);\n }\n }\n // Unregister global listeners when last element is unmonitored.\n if (!--this._monitoredElementCount) {\n const window = this._getWindow();\n window.removeEventListener('focus', this._windowFocusListener);\n // Equivalently, stop our InputModalityDetector subscription.\n this._stopInputModalityDetector.next();\n // Clear timeouts for all potentially pending timeouts to prevent the leaks.\n clearTimeout(this._windowFocusTimeoutId);\n clearTimeout(this._originTimeoutId);\n }\n }\n /** Updates all the state on an element once its focus origin has changed. */\n _originChanged(element, origin, elementInfo) {\n this._setClasses(element, origin);\n this._emitOrigin(elementInfo.subject, origin);\n this._lastFocusOrigin = origin;\n }\n /**\n * Collects the `MonitoredElementInfo` of a particular element and\n * all of its ancestors that have enabled `checkChildren`.\n * @param element Element from which to start the search.\n */\n _getClosestElementsInfo(element) {\n const results = [];\n this._elementInfo.forEach((info, currentElement) => {\n if (currentElement === element || (info.checkChildren && currentElement.contains(element))) {\n results.push([currentElement, info]);\n }\n });\n return results;\n }\n}\nFocusMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusMonitor, deps: [{ token: i0.NgZone }, { token: i1.Platform }, { token: InputModalityDetector }, { token: DOCUMENT, optional: true }, { token: FOCUS_MONITOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nFocusMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusMonitor, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FocusMonitor, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i0.NgZone }, { type: i1.Platform }, { type: InputModalityDetector }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [FOCUS_MONITOR_DEFAULT_OPTIONS]\n }] }];\n } });\n/**\n * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or\n * programmatically) and adds corresponding classes to the element.\n *\n * There are two variants of this directive:\n * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is\n * focused.\n * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.\n */\nclass CdkMonitorFocus {\n constructor(_elementRef, _focusMonitor) {\n this._elementRef = _elementRef;\n this._focusMonitor = _focusMonitor;\n this.cdkFocusChange = new EventEmitter();\n }\n ngAfterViewInit() {\n const element = this._elementRef.nativeElement;\n this._monitorSubscription = this._focusMonitor\n .monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus'))\n .subscribe(origin => this.cdkFocusChange.emit(origin));\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n if (this._monitorSubscription) {\n this._monitorSubscription.unsubscribe();\n }\n }\n}\nCdkMonitorFocus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkMonitorFocus, deps: [{ token: i0.ElementRef }, { token: FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });\nCdkMonitorFocus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: { cdkFocusChange: \"cdkFocusChange\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkMonitorFocus, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: FocusMonitor }]; }, propDecorators: { cdkFocusChange: [{\n type: Output\n }] } });\n\n/** CSS class applied to the document body when in black-on-white high-contrast mode. */\nconst BLACK_ON_WHITE_CSS_CLASS = 'cdk-high-contrast-black-on-white';\n/** CSS class applied to the document body when in white-on-black high-contrast mode. */\nconst WHITE_ON_BLACK_CSS_CLASS = 'cdk-high-contrast-white-on-black';\n/** CSS class applied to the document body when in high-contrast mode. */\nconst HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';\n/**\n * Service to determine whether the browser is currently in a high-contrast-mode environment.\n *\n * Microsoft Windows supports an accessibility feature called \"High Contrast Mode\". This mode\n * changes the appearance of all applications, including web applications, to dramatically increase\n * contrast.\n *\n * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast\n * Mode. This service does not detect high-contrast mode as added by the Chrome \"High Contrast\"\n * browser extension.\n */\nclass HighContrastModeDetector {\n constructor(_platform, document) {\n this._platform = _platform;\n this._document = document;\n }\n /** Gets the current high-contrast-mode for the page. */\n getHighContrastMode() {\n if (!this._platform.isBrowser) {\n return 0 /* NONE */;\n }\n // Create a test element with an arbitrary background-color that is neither black nor\n // white; high-contrast mode will coerce the color to either black or white. Also ensure that\n // appending the test element to the DOM does not affect layout by absolutely positioning it\n const testElement = this._document.createElement('div');\n testElement.style.backgroundColor = 'rgb(1,2,3)';\n testElement.style.position = 'absolute';\n this._document.body.appendChild(testElement);\n // Get the computed style for the background color, collapsing spaces to normalize between\n // browsers. Once we get this color, we no longer need the test element. Access the `window`\n // via the document so we can fake it in tests. Note that we have extra null checks, because\n // this logic will likely run during app bootstrap and throwing can break the entire app.\n const documentWindow = this._document.defaultView || window;\n const computedStyle = documentWindow && documentWindow.getComputedStyle\n ? documentWindow.getComputedStyle(testElement)\n : null;\n const computedColor = ((computedStyle && computedStyle.backgroundColor) || '').replace(/ /g, '');\n testElement.remove();\n switch (computedColor) {\n case 'rgb(0,0,0)':\n return 2 /* WHITE_ON_BLACK */;\n case 'rgb(255,255,255)':\n return 1 /* BLACK_ON_WHITE */;\n }\n return 0 /* NONE */;\n }\n /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */\n _applyBodyHighContrastModeCssClasses() {\n if (!this._hasCheckedHighContrastMode && this._platform.isBrowser && this._document.body) {\n const bodyClasses = this._document.body.classList;\n // IE11 doesn't support `classList` operations with multiple arguments\n bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);\n bodyClasses.remove(BLACK_ON_WHITE_CSS_CLASS);\n bodyClasses.remove(WHITE_ON_BLACK_CSS_CLASS);\n this._hasCheckedHighContrastMode = true;\n const mode = this.getHighContrastMode();\n if (mode === 1 /* BLACK_ON_WHITE */) {\n bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);\n bodyClasses.add(BLACK_ON_WHITE_CSS_CLASS);\n }\n else if (mode === 2 /* WHITE_ON_BLACK */) {\n bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);\n bodyClasses.add(WHITE_ON_BLACK_CSS_CLASS);\n }\n }\n }\n}\nHighContrastModeDetector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: HighContrastModeDetector, deps: [{ token: i1.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nHighContrastModeDetector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: HighContrastModeDetector, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: HighContrastModeDetector, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.Platform }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass A11yModule {\n constructor(highContrastModeDetector) {\n highContrastModeDetector._applyBodyHighContrastModeCssClasses();\n }\n}\nA11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: A11yModule, deps: [{ token: HighContrastModeDetector }], target: i0.ɵɵFactoryTarget.NgModule });\nA11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: A11yModule, declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus], imports: [PlatformModule, ObserversModule], exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus] });\nA11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: A11yModule, imports: [[PlatformModule, ObserversModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: A11yModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [PlatformModule, ObserversModule],\n declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],\n }]\n }], ctorParameters: function () { return [{ type: HighContrastModeDetector }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A11yModule, ActiveDescendantKeyManager, AriaDescriber, CDK_DESCRIBEDBY_HOST_ATTRIBUTE, CDK_DESCRIBEDBY_ID_PREFIX, CdkAriaLive, CdkMonitorFocus, CdkTrapFocus, ConfigurableFocusTrap, ConfigurableFocusTrapFactory, EventListenerFocusTrapInertStrategy, FOCUS_MONITOR_DEFAULT_OPTIONS, FOCUS_TRAP_INERT_STRATEGY, FocusKeyManager, FocusMonitor, FocusTrap, FocusTrapFactory, HighContrastModeDetector, INPUT_MODALITY_DETECTOR_DEFAULT_OPTIONS, INPUT_MODALITY_DETECTOR_OPTIONS, InputModalityDetector, InteractivityChecker, IsFocusableConfig, LIVE_ANNOUNCER_DEFAULT_OPTIONS, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY, ListKeyManager, LiveAnnouncer, MESSAGES_CONTAINER_ID, isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader };\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * An injectable service that produces an animation sequence programmatically within an\n * Angular component or directive.\n * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.\n *\n * @usageNotes\n *\n * To use this service, add it to your component or directive as a dependency.\n * The service is instantiated along with your component.\n *\n * Apps do not typically need to create their own animation players, but if you\n * do need to, follow these steps:\n *\n * 1. Use the `build()` method to create a programmatic animation using the\n * `animate()` function. The method returns an `AnimationFactory` instance.\n *\n * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.\n *\n * 3. Use the player object to control the animation programmatically.\n *\n * For example:\n *\n * ```ts\n * // import the service from BrowserAnimationsModule\n * import {AnimationBuilder} from '@angular/animations';\n * // require the service as a dependency\n * class MyCmp {\n * constructor(private _builder: AnimationBuilder) {}\n *\n * makeAnimation(element: any) {\n * // first define a reusable animation\n * const myAnimation = this._builder.build([\n * style({ width: 0 }),\n * animate(1000, style({ width: '100px' }))\n * ]);\n *\n * // use the returned factory object to create a player\n * const player = myAnimation.create(element);\n *\n * player.play();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass AnimationBuilder {\n}\n/**\n * A factory object returned from the `AnimationBuilder`.`build()` method.\n *\n * @publicApi\n */\nclass AnimationFactory {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Specifies automatic styling.\n *\n * @publicApi\n */\nconst AUTO_STYLE = '*';\n/**\n * Creates a named animation trigger, containing a list of `state()`\n * and `transition()` entries to be evaluated when the expression\n * bound to the trigger changes.\n *\n * @param name An identifying string.\n * @param definitions An animation definition object, containing an array of `state()`\n * and `transition()` declarations.\n *\n * @return An object that encapsulates the trigger data.\n *\n * @usageNotes\n * Define an animation trigger in the `animations` section of `@Component` metadata.\n * In the template, reference the trigger by name and bind it to a trigger expression that\n * evaluates to a defined animation state, using the following format:\n *\n * `[@triggerName]=\"expression\"`\n *\n * Animation trigger bindings convert all values to strings, and then match the\n * previous and current values against any linked transitions.\n * Booleans can be specified as `1` or `true` and `0` or `false`.\n *\n * ### Usage Example\n *\n * The following example creates an animation trigger reference based on the provided\n * name value.\n * The provided animation value is expected to be an array consisting of state and\n * transition declarations.\n *\n * ```typescript\n * @Component({\n * selector: \"my-component\",\n * templateUrl: \"my-component-tpl.html\",\n * animations: [\n * trigger(\"myAnimationTrigger\", [\n * state(...),\n * state(...),\n * transition(...),\n * transition(...)\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"something\";\n * }\n * ```\n *\n * The template associated with this component makes use of the defined trigger\n * by binding to an element within its template code.\n *\n * ```html\n * <!-- somewhere inside of my-component-tpl.html -->\n * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>\n * ```\n *\n * ### Using an inline function\n * The `transition` animation method also supports reading an inline function which can decide\n * if its associated animation should be run.\n *\n * ```typescript\n * // this method is run each time the `myAnimationTrigger` trigger value changes.\n * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:\n string]: any}): boolean {\n * // notice that `element` and `params` are also available here\n * return toState == 'yes-please-animate';\n * }\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'my-component-tpl.html',\n * animations: [\n * trigger('myAnimationTrigger', [\n * transition(myInlineMatcherFn, [\n * // the animation sequence code\n * ]),\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"yes-please-animate\";\n * }\n * ```\n *\n * ### Disabling Animations\n * When true, the special animation control binding `@.disabled` binding prevents\n * all animations from rendering.\n * Place the `@.disabled` binding on an element to disable\n * animations on the element itself, as well as any inner animation triggers\n * within the element.\n *\n * The following example shows how to use this feature:\n *\n * ```typescript\n * @Component({\n * selector: 'my-component',\n * template: `\n * <div [@.disabled]=\"isDisabled\">\n * <div [@childAnimation]=\"exp\"></div>\n * </div>\n * `,\n * animations: [\n * trigger(\"childAnimation\", [\n * // ...\n * ])\n * ]\n * })\n * class MyComponent {\n * isDisabled = true;\n * exp = '...';\n * }\n * ```\n *\n * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,\n * along with any inner animations.\n *\n * ### Disable animations application-wide\n * When an area of the template is set to have animations disabled,\n * **all** inner components have their animations disabled as well.\n * This means that you can disable all animations for an app\n * by placing a host binding set on `@.disabled` on the topmost Angular component.\n *\n * ```typescript\n * import {Component, HostBinding} from '@angular/core';\n *\n * @Component({\n * selector: 'app-component',\n * templateUrl: 'app.component.html',\n * })\n * class AppComponent {\n * @HostBinding('@.disabled')\n * public animationsDisabled = true;\n * }\n * ```\n *\n * ### Overriding disablement of inner animations\n * Despite inner animations being disabled, a parent animation can `query()`\n * for inner elements located in disabled areas of the template and still animate\n * them if needed. This is also the case for when a sub animation is\n * queried by a parent and then later animated using `animateChild()`.\n *\n * ### Detecting when an animation is disabled\n * If a region of the DOM (or the entire application) has its animations disabled, the animation\n * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides\n * an instance of an `AnimationEvent`. If animations are disabled,\n * the `.disabled` flag on the event is true.\n *\n * @publicApi\n */\nfunction trigger(name, definitions) {\n return { type: 7 /* Trigger */, name, definitions, options: {} };\n}\n/**\n * Defines an animation step that combines styling information with timing information.\n *\n * @param timings Sets `AnimateTimings` for the parent animation.\n * A string in the format \"duration [delay] [easing]\".\n * - Duration and delay are expressed as a number and optional time unit,\n * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.\n * The default unit is milliseconds.\n * - The easing value controls how the animation accelerates and decelerates\n * during its runtime. Value is one of `ease`, `ease-in`, `ease-out`,\n * `ease-in-out`, or a `cubic-bezier()` function call.\n * If not supplied, no easing is applied.\n *\n * For example, the string \"1s 100ms ease-out\" specifies a duration of\n * 1000 milliseconds, and delay of 100 ms, and the \"ease-out\" easing style,\n * which decelerates near the end of the duration.\n * @param styles Sets AnimationStyles for the parent animation.\n * A function call to either `style()` or `keyframes()`\n * that returns a collection of CSS style entries to be applied to the parent animation.\n * When null, uses the styles from the destination state.\n * This is useful when describing an animation step that will complete an animation;\n * see \"Animating to the final state\" in `transitions()`.\n * @returns An object that encapsulates the animation step.\n *\n * @usageNotes\n * Call within an animation `sequence()`, `{@link animations/group group()}`, or\n * `transition()` call to specify an animation step\n * that applies given style data to the parent animation for a given amount of time.\n *\n * ### Syntax Examples\n * **Timing examples**\n *\n * The following examples show various `timings` specifications.\n * - `animate(500)` : Duration is 500 milliseconds.\n * - `animate(\"1s\")` : Duration is 1000 milliseconds.\n * - `animate(\"100ms 0.5s\")` : Duration is 100 milliseconds, delay is 500 milliseconds.\n * - `animate(\"5s ease-in\")` : Duration is 5000 milliseconds, easing in.\n * - `animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\")` : Duration is 5000 milliseconds, delay is 10\n * milliseconds, easing according to a bezier curve.\n *\n * **Style examples**\n *\n * The following example calls `style()` to set a single CSS style.\n * ```typescript\n * animate(500, style({ background: \"red\" }))\n * ```\n * The following example calls `keyframes()` to set a CSS style\n * to different values for successive keyframes.\n * ```typescript\n * animate(500, keyframes(\n * [\n * style({ background: \"blue\" }),\n * style({ background: \"red\" })\n * ])\n * ```\n *\n * @publicApi\n */\nfunction animate(timings, styles = null) {\n return { type: 4 /* Animate */, styles, timings };\n}\n/**\n * @description Defines a list of animation steps to be run in parallel.\n *\n * @param steps An array of animation step objects.\n * - When steps are defined by `style()` or `animate()`\n * function calls, each call within the group is executed instantly.\n * - To specify offset styles to be applied at a later time, define steps with\n * `keyframes()`, or use `animate()` calls with a delay value.\n * For example:\n *\n * ```typescript\n * group([\n * animate(\"1s\", style({ background: \"black\" })),\n * animate(\"2s\", style({ color: \"white\" }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the group data.\n *\n * @usageNotes\n * Grouped animations are useful when a series of styles must be\n * animated at different starting times and closed off at different ending times.\n *\n * When called within a `sequence()` or a\n * `transition()` call, does not continue to the next\n * instruction until all of the inner animation steps have completed.\n *\n * @publicApi\n */\nfunction group(steps, options = null) {\n return { type: 3 /* Group */, steps, options };\n}\n/**\n * Defines a list of animation steps to be run sequentially, one by one.\n *\n * @param steps An array of animation step objects.\n * - Steps defined by `style()` calls apply the styling data immediately.\n * - Steps defined by `animate()` calls apply the styling data over time\n * as specified by the timing data.\n *\n * ```typescript\n * sequence([\n * style({ opacity: 0 }),\n * animate(\"1s\", style({ opacity: 1 }))\n * ])\n * ```\n *\n * @param options An options object containing a delay and\n * developer-defined parameters that provide styling defaults and\n * can be overridden on invocation.\n *\n * @return An object that encapsulates the sequence data.\n *\n * @usageNotes\n * When you pass an array of steps to a\n * `transition()` call, the steps run sequentially by default.\n * Compare this to the `{@link animations/group group()}` call, which runs animation steps in\n *parallel.\n *\n * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,\n * execution continues to the next instruction only after each of the inner animation\n * steps have completed.\n *\n * @publicApi\n **/\nfunction sequence(steps, options = null) {\n return { type: 2 /* Sequence */, steps, options };\n}\n/**\n * Declares a key/value object containing CSS properties/styles that\n * can then be used for an animation `state`, within an animation `sequence`,\n * or as styling data for calls to `animate()` and `keyframes()`.\n *\n * @param tokens A set of CSS styles or HTML styles associated with an animation state.\n * The value can be any of the following:\n * - A key-value style pair associating a CSS property with a value.\n * - An array of key-value style pairs.\n * - An asterisk (*), to use auto-styling, where styles are derived from the element\n * being animated and applied to the animation when it starts.\n *\n * Auto-styling can be used to define a state that depends on layout or other\n * environmental factors.\n *\n * @return An object that encapsulates the style data.\n *\n * @usageNotes\n * The following examples create animation styles that collect a set of\n * CSS property values:\n *\n * ```typescript\n * // string values for CSS properties\n * style({ background: \"red\", color: \"blue\" })\n *\n * // numerical pixel values\n * style({ width: 100, height: 0 })\n * ```\n *\n * The following example uses auto-styling to allow an element to animate from\n * a height of 0 up to its full height:\n *\n * ```\n * style({ height: 0 }),\n * animate(\"1s\", style({ height: \"*\" }))\n * ```\n *\n * @publicApi\n **/\nfunction style(tokens) {\n return { type: 6 /* Style */, styles: tokens, offset: null };\n}\n/**\n * Declares an animation state within a trigger attached to an element.\n *\n * @param name One or more names for the defined state in a comma-separated string.\n * The following reserved state names can be supplied to define a style for specific use\n * cases:\n *\n * - `void` You can associate styles with this name to be used when\n * the element is detached from the application. For example, when an `ngIf` evaluates\n * to false, the state of the associated element is void.\n * - `*` (asterisk) Indicates the default state. You can associate styles with this name\n * to be used as the fallback when the state that is being animated is not declared\n * within the trigger.\n *\n * @param styles A set of CSS styles associated with this state, created using the\n * `style()` function.\n * This set of styles persists on the element once the state has been reached.\n * @param options Parameters that can be passed to the state when it is invoked.\n * 0 or more key-value pairs.\n * @return An object that encapsulates the new state data.\n *\n * @usageNotes\n * Use the `trigger()` function to register states to an animation trigger.\n * Use the `transition()` function to animate between states.\n * When a state is active within a component, its associated styles persist on the element,\n * even when the animation ends.\n *\n * @publicApi\n **/\nfunction state(name, styles, options) {\n return { type: 0 /* State */, name, styles, options };\n}\n/**\n * Defines a set of animation styles, associating each style with an optional `offset` value.\n *\n * @param steps A set of animation styles with optional offset data.\n * The optional `offset` value for a style specifies a percentage of the total animation\n * time at which that style is applied.\n * @returns An object that encapsulates the keyframes data.\n *\n * @usageNotes\n * Use with the `animate()` call. Instead of applying animations\n * from the current state\n * to the destination state, keyframes describe how each style entry is applied and at what point\n * within the animation arc.\n * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).\n *\n * ### Usage\n *\n * In the following example, the offset values describe\n * when each `backgroundColor` value is applied. The color is red at the start, and changes to\n * blue when 20% of the total time has elapsed.\n *\n * ```typescript\n * // the provided offset values\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\", offset: 0 }),\n * style({ backgroundColor: \"blue\", offset: 0.2 }),\n * style({ backgroundColor: \"orange\", offset: 0.3 }),\n * style({ backgroundColor: \"black\", offset: 1 })\n * ]))\n * ```\n *\n * If there are no `offset` values specified in the style entries, the offsets\n * are calculated automatically.\n *\n * ```typescript\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\" }) // offset = 0\n * style({ backgroundColor: \"blue\" }) // offset = 0.33\n * style({ backgroundColor: \"orange\" }) // offset = 0.66\n * style({ backgroundColor: \"black\" }) // offset = 1\n * ]))\n *```\n\n * @publicApi\n */\nfunction keyframes(steps) {\n return { type: 5 /* Keyframes */, steps };\n}\n/**\n * Declares an animation transition which is played when a certain specified condition is met.\n *\n * @param stateChangeExpr A string with a specific format or a function that specifies when the\n * animation transition should occur (see [State Change Expression](#state-change-expression)).\n *\n * @param steps One or more animation objects that represent the animation's instructions.\n *\n * @param options An options object that can be used to specify a delay for the animation or provide\n * custom parameters for it.\n *\n * @returns An object that encapsulates the transition data.\n *\n * @usageNotes\n *\n * ### State Change Expression\n *\n * The State Change Expression instructs Angular when to run the transition's animations, it can\n *either be\n * - a string with a specific syntax\n * - or a function that compares the previous and current state (value of the expression bound to\n * the element's trigger) and returns `true` if the transition should occur or `false` otherwise\n *\n * The string format can be:\n * - `fromState => toState`, which indicates that the transition's animations should occur then the\n * expression bound to the trigger's element goes from `fromState` to `toState`\n *\n * _Example:_\n * ```typescript\n * transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))\n * ```\n *\n * - `fromState <=> toState`, which indicates that the transition's animations should occur then\n * the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa\n *\n * _Example:_\n * ```typescript\n * transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))\n * ```\n *\n * - `:enter`/`:leave`, which indicates that the transition's animations should occur when the\n * element enters or exists the DOM\n *\n * _Example:_\n * ```typescript\n * transition(':enter', [\n * style({ opacity: 0 }),\n * animate('500ms', style({ opacity: 1 }))\n * ])\n * ```\n *\n * - `:increment`/`:decrement`, which indicates that the transition's animations should occur when\n * the numerical expression bound to the trigger's element has increased in value or decreased\n *\n * _Example:_\n * ```typescript\n * transition(':increment', query('@counter', animateChild()))\n * ```\n *\n * - a sequence of any of the above divided by commas, which indicates that transition's animations\n * should occur whenever one of the state change expressions matches\n *\n * _Example:_\n * ```typescript\n * transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([\n * style({ transform: 'scale(1)', offset: 0}),\n * style({ transform: 'scale(1.1)', offset: 0.7}),\n * style({ transform: 'scale(1)', offset: 1})\n * ]))),\n * ```\n *\n * Also note that in such context:\n * - `void` can be used to indicate the absence of the element\n * - asterisks can be used as wildcards that match any state\n * - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is\n * equivalent to `:leave`)\n * - `true` and `false` also match expression values of `1` and `0` respectively (but do not match\n * _truthy_ and _falsy_ values)\n *\n * <div class=\"alert is-helpful\">\n *\n * Be careful about entering end leaving elements as their transitions present a common\n * pitfall for developers.\n *\n * Note that when an element with a trigger enters the DOM its `:enter` transition always\n * gets executed, but its `:leave` transition will not be executed if the element is removed\n * alongside its parent (as it will be removed \"without warning\" before its transition has\n * a chance to be executed, the only way that such transition can occur is if the element\n * is exiting the DOM on its own).\n *\n *\n * </div>\n *\n * ### Animating to a Final State\n *\n * If the final step in a transition is a call to `animate()` that uses a timing value\n * with no `style` data, that step is automatically considered the final animation arc,\n * for the element to reach the final state, in such case Angular automatically adds or removes\n * CSS styles to ensure that the element is in the correct final state.\n *\n *\n * ### Usage Examples\n *\n * - Transition animations applied based on\n * the trigger's expression value\n *\n * ```HTML\n * <div [@myAnimationTrigger]=\"myStatusExp\">\n * ...\n * </div>\n * ```\n *\n * ```typescript\n * trigger(\"myAnimationTrigger\", [\n * ..., // states\n * transition(\"on => off, open => closed\", animate(500)),\n * transition(\"* <=> error\", query('.indicator', animateChild()))\n * ])\n * ```\n *\n * - Transition animations applied based on custom logic dependent\n * on the trigger's expression value and provided parameters\n *\n * ```HTML\n * <div [@myAnimationTrigger]=\"{\n * value: stepName,\n * params: { target: currentTarget }\n * }\">\n * ...\n * </div>\n * ```\n *\n * ```typescript\n * trigger(\"myAnimationTrigger\", [\n * ..., // states\n * transition(\n * (fromState, toState, _element, params) =>\n * ['firststep', 'laststep'].includes(fromState.toLowerCase())\n * && toState === params?.['target'],\n * animate('1s')\n * )\n * ])\n * ```\n *\n * @publicApi\n **/\nfunction transition(stateChangeExpr, steps, options = null) {\n return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options };\n}\n/**\n * Produces a reusable animation that can be invoked in another animation or sequence,\n * by calling the `useAnimation()` function.\n *\n * @param steps One or more animation objects, as returned by the `animate()`\n * or `sequence()` function, that form a transformation from one state to another.\n * A sequence is used by default when you pass an array.\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional developer-defined parameters.\n * Provided values for additional parameters are used as defaults,\n * and override values can be passed to the caller on invocation.\n * @returns An object that encapsulates the animation data.\n *\n * @usageNotes\n * The following example defines a reusable animation, providing some default parameter\n * values.\n *\n * ```typescript\n * var fadeAnimation = animation([\n * style({ opacity: '{{ start }}' }),\n * animate('{{ time }}',\n * style({ opacity: '{{ end }}'}))\n * ],\n * { params: { time: '1000ms', start: 0, end: 1 }});\n * ```\n *\n * The following invokes the defined animation with a call to `useAnimation()`,\n * passing in override parameter values.\n *\n * ```js\n * useAnimation(fadeAnimation, {\n * params: {\n * time: '2s',\n * start: 1,\n * end: 0\n * }\n * })\n * ```\n *\n * If any of the passed-in parameter values are missing from this call,\n * the default values are used. If one or more parameter values are missing before a step is\n * animated, `useAnimation()` throws an error.\n *\n * @publicApi\n */\nfunction animation(steps, options = null) {\n return { type: 8 /* Reference */, animation: steps, options };\n}\n/**\n * Executes a queried inner animation element within an animation sequence.\n *\n * @param options An options object that can contain a delay value for the start of the\n * animation, and additional override values for developer-defined parameters.\n * @return An object that encapsulates the child animation data.\n *\n * @usageNotes\n * Each time an animation is triggered in Angular, the parent animation\n * has priority and any child animations are blocked. In order\n * for a child animation to run, the parent animation must query each of the elements\n * containing child animations, and run them using this function.\n *\n * Note that this feature is designed to be used with `query()` and it will only work\n * with animations that are assigned using the Angular animation library. CSS keyframes\n * and transitions are not handled by this API.\n *\n * @publicApi\n */\nfunction animateChild(options = null) {\n return { type: 9 /* AnimateChild */, options };\n}\n/**\n * Starts a reusable animation that is created using the `animation()` function.\n *\n * @param animation The reusable animation to start.\n * @param options An options object that can contain a delay value for the start of\n * the animation, and additional override values for developer-defined parameters.\n * @return An object that contains the animation parameters.\n *\n * @publicApi\n */\nfunction useAnimation(animation, options = null) {\n return { type: 10 /* AnimateRef */, animation, options };\n}\n/**\n * Finds one or more inner elements within the current element that is\n * being animated within a sequence. Use with `animate()`.\n *\n * @param selector The element to query, or a set of elements that contain Angular-specific\n * characteristics, specified with one or more of the following tokens.\n * - `query(\":enter\")` or `query(\":leave\")` : Query for newly inserted/removed elements (not\n * all elements can be queried via these tokens, see\n * [Entering and Leaving Elements](#entering-and-leaving-elements))\n * - `query(\":animating\")` : Query all currently animating elements.\n * - `query(\"@triggerName\")` : Query elements that contain an animation trigger.\n * - `query(\"@*\")` : Query all elements that contain an animation triggers.\n * - `query(\":self\")` : Include the current element into the animation sequence.\n *\n * @param animation One or more animation steps to apply to the queried element or elements.\n * An array is treated as an animation sequence.\n * @param options An options object. Use the 'limit' field to limit the total number of\n * items to collect.\n * @return An object that encapsulates the query data.\n *\n * @usageNotes\n *\n * ### Multiple Tokens\n *\n * Tokens can be merged into a combined query selector string. For example:\n *\n * ```typescript\n * query(':self, .record:enter, .record:leave, @subTrigger', [...])\n * ```\n *\n * The `query()` function collects multiple elements and works internally by using\n * `element.querySelectorAll`. Use the `limit` field of an options object to limit\n * the total number of items to be collected. For example:\n *\n * ```js\n * query('div', [\n * animate(...),\n * animate(...)\n * ], { limit: 1 })\n * ```\n *\n * By default, throws an error when zero items are found. Set the\n * `optional` flag to ignore this error. For example:\n *\n * ```js\n * query('.some-element-that-may-not-be-there', [\n * animate(...),\n * animate(...)\n * ], { optional: true })\n * ```\n *\n * ### Entering and Leaving Elements\n *\n * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones\n * that can are those that Angular assumes can enter/leave based on their own logic\n * (if their insertion/removal is simply a consequence of that of their parent they\n * should be queried via a different token in their parent's `:enter`/`:leave` transitions).\n *\n * The only elements Angular assumes can enter/leave on their own logic (thus the only\n * ones that can be queried via the `:enter` and `:leave` tokens) are:\n * - Those inserted dynamically (via `ViewContainerRef`)\n * - Those that have a structural directive (which, under the hood, are a subset of the above ones)\n *\n * <div class=\"alert is-helpful\">\n *\n * Note that elements will be successfully queried via `:enter`/`:leave` even if their\n * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural\n * directive (e.g. they enter/exit alongside their parent).\n *\n * </div>\n *\n * ### Usage Example\n *\n * The following example queries for inner elements and animates them\n * individually using `animate()`.\n *\n * ```typescript\n * @Component({\n * selector: 'inner',\n * template: `\n * <div [@queryAnimation]=\"exp\">\n * <h1>Title</h1>\n * <div class=\"content\">\n * Blah blah blah\n * </div>\n * </div>\n * `,\n * animations: [\n * trigger('queryAnimation', [\n * transition('* => goAnimate', [\n * // hide the inner elements\n * query('h1', style({ opacity: 0 })),\n * query('.content', style({ opacity: 0 })),\n *\n * // animate the inner elements in, one by one\n * query('h1', animate(1000, style({ opacity: 1 }))),\n * query('.content', animate(1000, style({ opacity: 1 }))),\n * ])\n * ])\n * ]\n * })\n * class Cmp {\n * exp = '';\n *\n * goAnimate() {\n * this.exp = 'goAnimate';\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction query(selector, animation, options = null) {\n return { type: 11 /* Query */, selector, animation, options };\n}\n/**\n * Use within an animation `query()` call to issue a timing gap after\n * each queried item is animated.\n *\n * @param timings A delay value.\n * @param animation One ore more animation steps.\n * @returns An object that encapsulates the stagger data.\n *\n * @usageNotes\n * In the following example, a container element wraps a list of items stamped out\n * by an `ngFor`. The container element contains an animation trigger that will later be set\n * to query for each of the inner items.\n *\n * Each time items are added, the opacity fade-in animation runs,\n * and each removed item is faded out.\n * When either of these animations occur, the stagger effect is\n * applied after each item's animation is started.\n *\n * ```html\n * <!-- list.component.html -->\n * <button (click)=\"toggle()\">Show / Hide Items</button>\n * <hr />\n * <div [@listAnimation]=\"items.length\">\n * <div *ngFor=\"let item of items\">\n * {{ item }}\n * </div>\n * </div>\n * ```\n *\n * Here is the component code:\n *\n * ```typescript\n * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';\n * @Component({\n * templateUrl: 'list.component.html',\n * animations: [\n * trigger('listAnimation', [\n * ...\n * ])\n * ]\n * })\n * class ListComponent {\n * items = [];\n *\n * showItems() {\n * this.items = [0,1,2,3,4];\n * }\n *\n * hideItems() {\n * this.items = [];\n * }\n *\n * toggle() {\n * this.items.length ? this.hideItems() : this.showItems();\n * }\n * }\n * ```\n *\n * Here is the animation trigger code:\n *\n * ```typescript\n * trigger('listAnimation', [\n * transition('* => *', [ // each time the binding value changes\n * query(':leave', [\n * stagger(100, [\n * animate('0.5s', style({ opacity: 0 }))\n * ])\n * ]),\n * query(':enter', [\n * style({ opacity: 0 }),\n * stagger(100, [\n * animate('0.5s', style({ opacity: 1 }))\n * ])\n * ])\n * ])\n * ])\n * ```\n *\n * @publicApi\n */\nfunction stagger(timings, animation) {\n return { type: 12 /* Stagger */, timings, animation };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction scheduleMicroTask(cb) {\n Promise.resolve(null).then(cb);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An empty programmatic controller for reusable animations.\n * Used internally when animations are disabled, to avoid\n * checking for the null case when an animation player is expected.\n *\n * @see `animate()`\n * @see `AnimationPlayer`\n * @see `GroupPlayer`\n *\n * @publicApi\n */\nclass NoopAnimationPlayer {\n constructor(duration = 0, delay = 0) {\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this._started = false;\n this._destroyed = false;\n this._finished = false;\n this._position = 0;\n this.parentPlayer = null;\n this.totalTime = duration + delay;\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach(fn => fn());\n this._onDoneFns = [];\n }\n }\n onStart(fn) {\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n hasStarted() {\n return this._started;\n }\n init() { }\n play() {\n if (!this.hasStarted()) {\n this._onStart();\n this.triggerMicrotask();\n }\n this._started = true;\n }\n /** @internal */\n triggerMicrotask() {\n scheduleMicroTask(() => this._onFinish());\n }\n _onStart() {\n this._onStartFns.forEach(fn => fn());\n this._onStartFns = [];\n }\n pause() { }\n restart() { }\n finish() {\n this._onFinish();\n }\n destroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n if (!this.hasStarted()) {\n this._onStart();\n }\n this.finish();\n this._onDestroyFns.forEach(fn => fn());\n this._onDestroyFns = [];\n }\n }\n reset() {\n this._started = false;\n }\n setPosition(position) {\n this._position = this.totalTime ? position * this.totalTime : 1;\n }\n getPosition() {\n return this.totalTime ? this._position / this.totalTime : 1;\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach(fn => fn());\n methods.length = 0;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A programmatic controller for a group of reusable animations.\n * Used internally to control animations.\n *\n * @see `AnimationPlayer`\n * @see `{@link animations/group group()}`\n *\n */\nclass AnimationGroupPlayer {\n constructor(_players) {\n this._onDoneFns = [];\n this._onStartFns = [];\n this._finished = false;\n this._started = false;\n this._destroyed = false;\n this._onDestroyFns = [];\n this.parentPlayer = null;\n this.totalTime = 0;\n this.players = _players;\n let doneCount = 0;\n let destroyCount = 0;\n let startCount = 0;\n const total = this.players.length;\n if (total == 0) {\n scheduleMicroTask(() => this._onFinish());\n }\n else {\n this.players.forEach(player => {\n player.onDone(() => {\n if (++doneCount == total) {\n this._onFinish();\n }\n });\n player.onDestroy(() => {\n if (++destroyCount == total) {\n this._onDestroy();\n }\n });\n player.onStart(() => {\n if (++startCount == total) {\n this._onStart();\n }\n });\n });\n }\n this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach(fn => fn());\n this._onDoneFns = [];\n }\n }\n init() {\n this.players.forEach(player => player.init());\n }\n onStart(fn) {\n this._onStartFns.push(fn);\n }\n _onStart() {\n if (!this.hasStarted()) {\n this._started = true;\n this._onStartFns.forEach(fn => fn());\n this._onStartFns = [];\n }\n }\n onDone(fn) {\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n hasStarted() {\n return this._started;\n }\n play() {\n if (!this.parentPlayer) {\n this.init();\n }\n this._onStart();\n this.players.forEach(player => player.play());\n }\n pause() {\n this.players.forEach(player => player.pause());\n }\n restart() {\n this.players.forEach(player => player.restart());\n }\n finish() {\n this._onFinish();\n this.players.forEach(player => player.finish());\n }\n destroy() {\n this._onDestroy();\n }\n _onDestroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n this._onFinish();\n this.players.forEach(player => player.destroy());\n this._onDestroyFns.forEach(fn => fn());\n this._onDestroyFns = [];\n }\n }\n reset() {\n this.players.forEach(player => player.reset());\n this._destroyed = false;\n this._finished = false;\n this._started = false;\n }\n setPosition(p) {\n const timeAtPosition = p * this.totalTime;\n this.players.forEach(player => {\n const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;\n player.setPosition(position);\n });\n }\n getPosition() {\n const longestPlayer = this.players.reduce((longestSoFar, player) => {\n const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;\n return newPlayerIsLongest ? player : longestSoFar;\n }, null);\n return longestPlayer != null ? longestPlayer.getPosition() : 0;\n }\n beforeDestroy() {\n this.players.forEach(player => {\n if (player.beforeDestroy) {\n player.beforeDestroy();\n }\n });\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach(fn => fn());\n methods.length = 0;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ɵPRE_STYLE = '!';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AUTO_STYLE, AnimationBuilder, AnimationFactory, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE };\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { ɵAnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE, sequence, style } from '@angular/animations';\nimport * as i0 from '@angular/core';\nimport { Injectable } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction isBrowser() {\n return (typeof window !== 'undefined' && typeof window.document !== 'undefined');\n}\nfunction isNode() {\n // Checking only for `process` isn't enough to identify whether or not we're in a Node\n // environment, because Webpack by default will polyfill the `process`. While we can discern\n // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and\n // might not be future-proof. Instead we look at the stringified version of `process` which\n // is `[object process]` in Node and `[object Object]` when polyfilled.\n return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n}\nfunction optimizeGroupPlayer(players) {\n switch (players.length) {\n case 0:\n return new NoopAnimationPlayer();\n case 1:\n return players[0];\n default:\n return new ɵAnimationGroupPlayer(players);\n }\n}\nfunction normalizeKeyframes(driver, normalizer, element, keyframes, preStyles = {}, postStyles = {}) {\n const errors = [];\n const normalizedKeyframes = [];\n let previousOffset = -1;\n let previousKeyframe = null;\n keyframes.forEach(kf => {\n const offset = kf['offset'];\n const isSameOffset = offset == previousOffset;\n const normalizedKeyframe = (isSameOffset && previousKeyframe) || {};\n Object.keys(kf).forEach(prop => {\n let normalizedProp = prop;\n let normalizedValue = kf[prop];\n if (prop !== 'offset') {\n normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);\n switch (normalizedValue) {\n case ɵPRE_STYLE:\n normalizedValue = preStyles[prop];\n break;\n case AUTO_STYLE:\n normalizedValue = postStyles[prop];\n break;\n default:\n normalizedValue =\n normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);\n break;\n }\n }\n normalizedKeyframe[normalizedProp] = normalizedValue;\n });\n if (!isSameOffset) {\n normalizedKeyframes.push(normalizedKeyframe);\n }\n previousKeyframe = normalizedKeyframe;\n previousOffset = offset;\n });\n if (errors.length) {\n const LINE_START = '\\n - ';\n throw new Error(`Unable to animate due to the following errors:${LINE_START}${errors.join(LINE_START)}`);\n }\n return normalizedKeyframes;\n}\nfunction listenOnPlayer(player, eventName, event, callback) {\n switch (eventName) {\n case 'start':\n player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));\n break;\n case 'done':\n player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));\n break;\n case 'destroy':\n player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));\n break;\n }\n}\nfunction copyAnimationEvent(e, phaseName, player) {\n const totalTime = player.totalTime;\n const disabled = player.disabled ? true : false;\n const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);\n const data = e['_data'];\n if (data != null) {\n event['_data'] = data;\n }\n return event;\n}\nfunction makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {\n return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };\n}\nfunction getOrSetAsInMap(map, key, defaultValue) {\n let value;\n if (map instanceof Map) {\n value = map.get(key);\n if (!value) {\n map.set(key, value = defaultValue);\n }\n }\n else {\n value = map[key];\n if (!value) {\n value = map[key] = defaultValue;\n }\n }\n return value;\n}\nfunction parseTimelineCommand(command) {\n const separatorPos = command.indexOf(':');\n const id = command.substring(1, separatorPos);\n const action = command.substr(separatorPos + 1);\n return [id, action];\n}\nlet _contains = (elm1, elm2) => false;\nlet _query = (element, selector, multi) => {\n return [];\n};\n// Define utility methods for browsers and platform-server(domino) where Element\n// and utility methods exist.\nconst _isNode = isNode();\nif (_isNode || typeof Element !== 'undefined') {\n if (!isBrowser()) {\n _contains = (elm1, elm2) => elm1.contains(elm2);\n }\n else {\n _contains = (elm1, elm2) => {\n while (elm2 && elm2 !== document.documentElement) {\n if (elm2 === elm1) {\n return true;\n }\n elm2 = elm2.parentNode || elm2.host; // consider host to support shadow DOM\n }\n return false;\n };\n }\n _query = (element, selector, multi) => {\n let results = [];\n if (multi) {\n // DO NOT REFACTOR TO USE SPREAD SYNTAX.\n // For element queries that return sufficiently large NodeList objects,\n // using spread syntax to populate the results array causes a RangeError\n // due to the call stack limit being reached. `Array.from` can not be used\n // as well, since NodeList is not iterable in IE 11, see\n // https://developer.mozilla.org/en-US/docs/Web/API/NodeList\n // More info is available in #38551.\n const elems = element.querySelectorAll(selector);\n for (let i = 0; i < elems.length; i++) {\n results.push(elems[i]);\n }\n }\n else {\n const elm = element.querySelector(selector);\n if (elm) {\n results.push(elm);\n }\n }\n return results;\n };\n}\nfunction containsVendorPrefix(prop) {\n // Webkit is the only real popular vendor prefix nowadays\n // cc: http://shouldiprefix.com/\n return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit\n}\nlet _CACHED_BODY = null;\nlet _IS_WEBKIT = false;\nfunction validateStyleProperty(prop) {\n if (!_CACHED_BODY) {\n _CACHED_BODY = getBodyNode() || {};\n _IS_WEBKIT = _CACHED_BODY.style ? ('WebkitAppearance' in _CACHED_BODY.style) : false;\n }\n let result = true;\n if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {\n result = prop in _CACHED_BODY.style;\n if (!result && _IS_WEBKIT) {\n const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.substr(1);\n result = camelProp in _CACHED_BODY.style;\n }\n }\n return result;\n}\nfunction getBodyNode() {\n if (typeof document != 'undefined') {\n return document.body;\n }\n return null;\n}\nconst containsElement = _contains;\nconst invokeQuery = _query;\nfunction hypenatePropsObject(object) {\n const newObj = {};\n Object.keys(object).forEach(prop => {\n const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');\n newObj[newProp] = object[prop];\n });\n return newObj;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nclass NoopAnimationDriver {\n validateStyleProperty(prop) {\n return validateStyleProperty(prop);\n }\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n computeStyle(element, prop, defaultValue) {\n return defaultValue || '';\n }\n animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n return new NoopAnimationPlayer(duration, delay);\n }\n}\nNoopAnimationDriver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNoopAnimationDriver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationDriver });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationDriver, decorators: [{\n type: Injectable\n }] });\n/**\n * @publicApi\n */\nclass AnimationDriver {\n}\nAnimationDriver.NOOP = ( /* @__PURE__ */new NoopAnimationDriver());\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ONE_SECOND$1 = 1000;\nconst SUBSTITUTION_EXPR_START = '{{';\nconst SUBSTITUTION_EXPR_END = '}}';\nconst ENTER_CLASSNAME = 'ng-enter';\nconst LEAVE_CLASSNAME = 'ng-leave';\nconst NG_TRIGGER_CLASSNAME = 'ng-trigger';\nconst NG_TRIGGER_SELECTOR = '.ng-trigger';\nconst NG_ANIMATING_CLASSNAME = 'ng-animating';\nconst NG_ANIMATING_SELECTOR = '.ng-animating';\nfunction resolveTimingValue(value) {\n if (typeof value == 'number')\n return value;\n const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);\n if (!matches || matches.length < 2)\n return 0;\n return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n}\nfunction _convertTimeValueToMS(value, unit) {\n switch (unit) {\n case 's':\n return value * ONE_SECOND$1;\n default: // ms or something else\n return value;\n }\n}\nfunction resolveTiming(timings, errors, allowNegativeValues) {\n return timings.hasOwnProperty('duration') ?\n timings :\n parseTimeExpression(timings, errors, allowNegativeValues);\n}\nfunction parseTimeExpression(exp, errors, allowNegativeValues) {\n const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;\n let duration;\n let delay = 0;\n let easing = '';\n if (typeof exp === 'string') {\n const matches = exp.match(regex);\n if (matches === null) {\n errors.push(`The provided timing value \"${exp}\" is invalid.`);\n return { duration: 0, delay: 0, easing: '' };\n }\n duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);\n const delayMatch = matches[3];\n if (delayMatch != null) {\n delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);\n }\n const easingVal = matches[5];\n if (easingVal) {\n easing = easingVal;\n }\n }\n else {\n duration = exp;\n }\n if (!allowNegativeValues) {\n let containsErrors = false;\n let startIndex = errors.length;\n if (duration < 0) {\n errors.push(`Duration values below 0 are not allowed for this animation step.`);\n containsErrors = true;\n }\n if (delay < 0) {\n errors.push(`Delay values below 0 are not allowed for this animation step.`);\n containsErrors = true;\n }\n if (containsErrors) {\n errors.splice(startIndex, 0, `The provided timing value \"${exp}\" is invalid.`);\n }\n }\n return { duration, delay, easing };\n}\nfunction copyObj(obj, destination = {}) {\n Object.keys(obj).forEach(prop => {\n destination[prop] = obj[prop];\n });\n return destination;\n}\nfunction normalizeStyles(styles) {\n const normalizedStyles = {};\n if (Array.isArray(styles)) {\n styles.forEach(data => copyStyles(data, false, normalizedStyles));\n }\n else {\n copyStyles(styles, false, normalizedStyles);\n }\n return normalizedStyles;\n}\nfunction copyStyles(styles, readPrototype, destination = {}) {\n if (readPrototype) {\n // we make use of a for-in loop so that the\n // prototypically inherited properties are\n // revealed from the backFill map\n for (let prop in styles) {\n destination[prop] = styles[prop];\n }\n }\n else {\n copyObj(styles, destination);\n }\n return destination;\n}\nfunction getStyleAttributeString(element, key, value) {\n // Return the key-value pair string to be added to the style attribute for the\n // given CSS style key.\n if (value) {\n return key + ':' + value + ';';\n }\n else {\n return '';\n }\n}\nfunction writeStyleAttribute(element) {\n // Read the style property of the element and manually reflect it to the\n // style attribute. This is needed because Domino on platform-server doesn't\n // understand the full set of allowed CSS properties and doesn't reflect some\n // of them automatically.\n let styleAttrValue = '';\n for (let i = 0; i < element.style.length; i++) {\n const key = element.style.item(i);\n styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));\n }\n for (const key in element.style) {\n // Skip internal Domino properties that don't need to be reflected.\n if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {\n continue;\n }\n const dashKey = camelCaseToDashCase(key);\n styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);\n }\n element.setAttribute('style', styleAttrValue);\n}\nfunction setStyles(element, styles, formerStyles) {\n if (element['style']) {\n Object.keys(styles).forEach(prop => {\n const camelProp = dashCaseToCamelCase(prop);\n if (formerStyles && !formerStyles.hasOwnProperty(prop)) {\n formerStyles[prop] = element.style[camelProp];\n }\n element.style[camelProp] = styles[prop];\n });\n // On the server set the 'style' attribute since it's not automatically reflected.\n if (isNode()) {\n writeStyleAttribute(element);\n }\n }\n}\nfunction eraseStyles(element, styles) {\n if (element['style']) {\n Object.keys(styles).forEach(prop => {\n const camelProp = dashCaseToCamelCase(prop);\n element.style[camelProp] = '';\n });\n // On the server set the 'style' attribute since it's not automatically reflected.\n if (isNode()) {\n writeStyleAttribute(element);\n }\n }\n}\nfunction normalizeAnimationEntry(steps) {\n if (Array.isArray(steps)) {\n if (steps.length == 1)\n return steps[0];\n return sequence(steps);\n }\n return steps;\n}\nfunction validateStyleParams(value, options, errors) {\n const params = options.params || {};\n const matches = extractStyleParams(value);\n if (matches.length) {\n matches.forEach(varName => {\n if (!params.hasOwnProperty(varName)) {\n errors.push(`Unable to resolve the local animation param ${varName} in the given list of values`);\n }\n });\n }\n}\nconst PARAM_REGEX = new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g');\nfunction extractStyleParams(value) {\n let params = [];\n if (typeof value === 'string') {\n let match;\n while (match = PARAM_REGEX.exec(value)) {\n params.push(match[1]);\n }\n PARAM_REGEX.lastIndex = 0;\n }\n return params;\n}\nfunction interpolateParams(value, params, errors) {\n const original = value.toString();\n const str = original.replace(PARAM_REGEX, (_, varName) => {\n let localVal = params[varName];\n // this means that the value was never overridden by the data passed in by the user\n if (!params.hasOwnProperty(varName)) {\n errors.push(`Please provide a value for the animation param ${varName}`);\n localVal = '';\n }\n return localVal.toString();\n });\n // we do this to assert that numeric values stay as they are\n return str == original ? value : str;\n}\nfunction iteratorToArray(iterator) {\n const arr = [];\n let item = iterator.next();\n while (!item.done) {\n arr.push(item.value);\n item = iterator.next();\n }\n return arr;\n}\nconst DASH_CASE_REGEXP = /-+([a-z0-9])/g;\nfunction dashCaseToCamelCase(input) {\n return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());\n}\nfunction camelCaseToDashCase(input) {\n return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n}\nfunction allowPreviousPlayerStylesMerge(duration, delay) {\n return duration === 0 || delay === 0;\n}\nfunction balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {\n const previousStyleProps = Object.keys(previousStyles);\n if (previousStyleProps.length && keyframes.length) {\n let startingKeyframe = keyframes[0];\n let missingStyleProps = [];\n previousStyleProps.forEach(prop => {\n if (!startingKeyframe.hasOwnProperty(prop)) {\n missingStyleProps.push(prop);\n }\n startingKeyframe[prop] = previousStyles[prop];\n });\n if (missingStyleProps.length) {\n // tslint:disable-next-line\n for (var i = 1; i < keyframes.length; i++) {\n let kf = keyframes[i];\n missingStyleProps.forEach(function (prop) {\n kf[prop] = computeStyle(element, prop);\n });\n }\n }\n }\n return keyframes;\n}\nfunction visitDslNode(visitor, node, context) {\n switch (node.type) {\n case 7 /* Trigger */:\n return visitor.visitTrigger(node, context);\n case 0 /* State */:\n return visitor.visitState(node, context);\n case 1 /* Transition */:\n return visitor.visitTransition(node, context);\n case 2 /* Sequence */:\n return visitor.visitSequence(node, context);\n case 3 /* Group */:\n return visitor.visitGroup(node, context);\n case 4 /* Animate */:\n return visitor.visitAnimate(node, context);\n case 5 /* Keyframes */:\n return visitor.visitKeyframes(node, context);\n case 6 /* Style */:\n return visitor.visitStyle(node, context);\n case 8 /* Reference */:\n return visitor.visitReference(node, context);\n case 9 /* AnimateChild */:\n return visitor.visitAnimateChild(node, context);\n case 10 /* AnimateRef */:\n return visitor.visitAnimateRef(node, context);\n case 11 /* Query */:\n return visitor.visitQuery(node, context);\n case 12 /* Stagger */:\n return visitor.visitStagger(node, context);\n default:\n throw new Error(`Unable to resolve animation metadata node #${node.type}`);\n }\n}\nfunction computeStyle(element, prop) {\n return window.getComputedStyle(element)[prop];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ANY_STATE = '*';\nfunction parseTransitionExpr(transitionValue, errors) {\n const expressions = [];\n if (typeof transitionValue == 'string') {\n transitionValue.split(/\\s*,\\s*/).forEach(str => parseInnerTransitionStr(str, expressions, errors));\n }\n else {\n expressions.push(transitionValue);\n }\n return expressions;\n}\nfunction parseInnerTransitionStr(eventStr, expressions, errors) {\n if (eventStr[0] == ':') {\n const result = parseAnimationAlias(eventStr, errors);\n if (typeof result == 'function') {\n expressions.push(result);\n return;\n }\n eventStr = result;\n }\n const match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);\n if (match == null || match.length < 4) {\n errors.push(`The provided transition expression \"${eventStr}\" is not supported`);\n return expressions;\n }\n const fromState = match[1];\n const separator = match[2];\n const toState = match[3];\n expressions.push(makeLambdaFromStates(fromState, toState));\n const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;\n if (separator[0] == '<' && !isFullAnyStateExpr) {\n expressions.push(makeLambdaFromStates(toState, fromState));\n }\n}\nfunction parseAnimationAlias(alias, errors) {\n switch (alias) {\n case ':enter':\n return 'void => *';\n case ':leave':\n return '* => void';\n case ':increment':\n return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);\n case ':decrement':\n return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);\n default:\n errors.push(`The transition alias value \"${alias}\" is not supported`);\n return '* => *';\n }\n}\n// DO NOT REFACTOR ... keep the follow set instantiations\n// with the values intact (closure compiler for some reason\n// removes follow-up lines that add the values outside of\n// the constructor...\nconst TRUE_BOOLEAN_VALUES = new Set(['true', '1']);\nconst FALSE_BOOLEAN_VALUES = new Set(['false', '0']);\nfunction makeLambdaFromStates(lhs, rhs) {\n const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);\n const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);\n return (fromState, toState) => {\n let lhsMatch = lhs == ANY_STATE || lhs == fromState;\n let rhsMatch = rhs == ANY_STATE || rhs == toState;\n if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {\n lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);\n }\n if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {\n rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);\n }\n return lhsMatch && rhsMatch;\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SELF_TOKEN = ':self';\nconst SELF_TOKEN_REGEX = new RegExp(`\\s*${SELF_TOKEN}\\s*,?`, 'g');\n/*\n * [Validation]\n * The visitor code below will traverse the animation AST generated by the animation verb functions\n * (the output is a tree of objects) and attempt to perform a series of validations on the data. The\n * following corner-cases will be validated:\n *\n * 1. Overlap of animations\n * Given that a CSS property cannot be animated in more than one place at the same time, it's\n * important that this behavior is detected and validated. The way in which this occurs is that\n * each time a style property is examined, a string-map containing the property will be updated with\n * the start and end times for when the property is used within an animation step.\n *\n * If there are two or more parallel animations that are currently running (these are invoked by the\n * group()) on the same element then the validator will throw an error. Since the start/end timing\n * values are collected for each property then if the current animation step is animating the same\n * property and its timing values fall anywhere into the window of time that the property is\n * currently being animated within then this is what causes an error.\n *\n * 2. Timing values\n * The validator will validate to see if a timing value of `duration delay easing` or\n * `durationNumber` is valid or not.\n *\n * (note that upon validation the code below will replace the timing data with an object containing\n * {duration,delay,easing}.\n *\n * 3. Offset Validation\n * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().\n * Offsets within keyframes() are considered valid when:\n *\n * - No offsets are used at all\n * - Each style() entry contains an offset value\n * - Each offset is between 0 and 1\n * - Each offset is greater to or equal than the previous one\n *\n * Otherwise an error will be thrown.\n */\nfunction buildAnimationAst(driver, metadata, errors) {\n return new AnimationAstBuilderVisitor(driver).build(metadata, errors);\n}\nconst ROOT_SELECTOR = '';\nclass AnimationAstBuilderVisitor {\n constructor(_driver) {\n this._driver = _driver;\n }\n build(metadata, errors) {\n const context = new AnimationAstBuilderContext(errors);\n this._resetContextStyleTimingState(context);\n return visitDslNode(this, normalizeAnimationEntry(metadata), context);\n }\n _resetContextStyleTimingState(context) {\n context.currentQuerySelector = ROOT_SELECTOR;\n context.collectedStyles = {};\n context.collectedStyles[ROOT_SELECTOR] = {};\n context.currentTime = 0;\n }\n visitTrigger(metadata, context) {\n let queryCount = context.queryCount = 0;\n let depCount = context.depCount = 0;\n const states = [];\n const transitions = [];\n if (metadata.name.charAt(0) == '@') {\n context.errors.push('animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))');\n }\n metadata.definitions.forEach(def => {\n this._resetContextStyleTimingState(context);\n if (def.type == 0 /* State */) {\n const stateDef = def;\n const name = stateDef.name;\n name.toString().split(/\\s*,\\s*/).forEach(n => {\n stateDef.name = n;\n states.push(this.visitState(stateDef, context));\n });\n stateDef.name = name;\n }\n else if (def.type == 1 /* Transition */) {\n const transition = this.visitTransition(def, context);\n queryCount += transition.queryCount;\n depCount += transition.depCount;\n transitions.push(transition);\n }\n else {\n context.errors.push('only state() and transition() definitions can sit inside of a trigger()');\n }\n });\n return {\n type: 7 /* Trigger */,\n name: metadata.name,\n states,\n transitions,\n queryCount,\n depCount,\n options: null\n };\n }\n visitState(metadata, context) {\n const styleAst = this.visitStyle(metadata.styles, context);\n const astParams = (metadata.options && metadata.options.params) || null;\n if (styleAst.containsDynamicStyles) {\n const missingSubs = new Set();\n const params = astParams || {};\n styleAst.styles.forEach(value => {\n if (isObject(value)) {\n const stylesObj = value;\n Object.keys(stylesObj).forEach(prop => {\n extractStyleParams(stylesObj[prop]).forEach(sub => {\n if (!params.hasOwnProperty(sub)) {\n missingSubs.add(sub);\n }\n });\n });\n }\n });\n if (missingSubs.size) {\n const missingSubsArr = iteratorToArray(missingSubs.values());\n context.errors.push(`state(\"${metadata\n .name}\", ...) must define default values for all the following style substitutions: ${missingSubsArr.join(', ')}`);\n }\n }\n return {\n type: 0 /* State */,\n name: metadata.name,\n style: styleAst,\n options: astParams ? { params: astParams } : null\n };\n }\n visitTransition(metadata, context) {\n context.queryCount = 0;\n context.depCount = 0;\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n const matchers = parseTransitionExpr(metadata.expr, context.errors);\n return {\n type: 1 /* Transition */,\n matchers,\n animation,\n queryCount: context.queryCount,\n depCount: context.depCount,\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitSequence(metadata, context) {\n return {\n type: 2 /* Sequence */,\n steps: metadata.steps.map(s => visitDslNode(this, s, context)),\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitGroup(metadata, context) {\n const currentTime = context.currentTime;\n let furthestTime = 0;\n const steps = metadata.steps.map(step => {\n context.currentTime = currentTime;\n const innerAst = visitDslNode(this, step, context);\n furthestTime = Math.max(furthestTime, context.currentTime);\n return innerAst;\n });\n context.currentTime = furthestTime;\n return {\n type: 3 /* Group */,\n steps,\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitAnimate(metadata, context) {\n const timingAst = constructTimingAst(metadata.timings, context.errors);\n context.currentAnimateTimings = timingAst;\n let styleAst;\n let styleMetadata = metadata.styles ? metadata.styles : style({});\n if (styleMetadata.type == 5 /* Keyframes */) {\n styleAst = this.visitKeyframes(styleMetadata, context);\n }\n else {\n let styleMetadata = metadata.styles;\n let isEmpty = false;\n if (!styleMetadata) {\n isEmpty = true;\n const newStyleData = {};\n if (timingAst.easing) {\n newStyleData['easing'] = timingAst.easing;\n }\n styleMetadata = style(newStyleData);\n }\n context.currentTime += timingAst.duration + timingAst.delay;\n const _styleAst = this.visitStyle(styleMetadata, context);\n _styleAst.isEmptyStep = isEmpty;\n styleAst = _styleAst;\n }\n context.currentAnimateTimings = null;\n return {\n type: 4 /* Animate */,\n timings: timingAst,\n style: styleAst,\n options: null\n };\n }\n visitStyle(metadata, context) {\n const ast = this._makeStyleAst(metadata, context);\n this._validateStyleAst(ast, context);\n return ast;\n }\n _makeStyleAst(metadata, context) {\n const styles = [];\n if (Array.isArray(metadata.styles)) {\n metadata.styles.forEach(styleTuple => {\n if (typeof styleTuple == 'string') {\n if (styleTuple == AUTO_STYLE) {\n styles.push(styleTuple);\n }\n else {\n context.errors.push(`The provided style string value ${styleTuple} is not allowed.`);\n }\n }\n else {\n styles.push(styleTuple);\n }\n });\n }\n else {\n styles.push(metadata.styles);\n }\n let containsDynamicStyles = false;\n let collectedEasing = null;\n styles.forEach(styleData => {\n if (isObject(styleData)) {\n const styleMap = styleData;\n const easing = styleMap['easing'];\n if (easing) {\n collectedEasing = easing;\n delete styleMap['easing'];\n }\n if (!containsDynamicStyles) {\n for (let prop in styleMap) {\n const value = styleMap[prop];\n if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {\n containsDynamicStyles = true;\n break;\n }\n }\n }\n }\n });\n return {\n type: 6 /* Style */,\n styles,\n easing: collectedEasing,\n offset: metadata.offset,\n containsDynamicStyles,\n options: null\n };\n }\n _validateStyleAst(ast, context) {\n const timings = context.currentAnimateTimings;\n let endTime = context.currentTime;\n let startTime = context.currentTime;\n if (timings && startTime > 0) {\n startTime -= timings.duration + timings.delay;\n }\n ast.styles.forEach(tuple => {\n if (typeof tuple == 'string')\n return;\n Object.keys(tuple).forEach(prop => {\n if (!this._driver.validateStyleProperty(prop)) {\n context.errors.push(`The provided animation property \"${prop}\" is not a supported CSS property for animations`);\n return;\n }\n const collectedStyles = context.collectedStyles[context.currentQuerySelector];\n const collectedEntry = collectedStyles[prop];\n let updateCollectedStyle = true;\n if (collectedEntry) {\n if (startTime != endTime && startTime >= collectedEntry.startTime &&\n endTime <= collectedEntry.endTime) {\n context.errors.push(`The CSS property \"${prop}\" that exists between the times of \"${collectedEntry.startTime}ms\" and \"${collectedEntry\n .endTime}ms\" is also being animated in a parallel animation between the times of \"${startTime}ms\" and \"${endTime}ms\"`);\n updateCollectedStyle = false;\n }\n // we always choose the smaller start time value since we\n // want to have a record of the entire animation window where\n // the style property is being animated in between\n startTime = collectedEntry.startTime;\n }\n if (updateCollectedStyle) {\n collectedStyles[prop] = { startTime, endTime };\n }\n if (context.options) {\n validateStyleParams(tuple[prop], context.options, context.errors);\n }\n });\n });\n }\n visitKeyframes(metadata, context) {\n const ast = { type: 5 /* Keyframes */, styles: [], options: null };\n if (!context.currentAnimateTimings) {\n context.errors.push(`keyframes() must be placed inside of a call to animate()`);\n return ast;\n }\n const MAX_KEYFRAME_OFFSET = 1;\n let totalKeyframesWithOffsets = 0;\n const offsets = [];\n let offsetsOutOfOrder = false;\n let keyframesOutOfRange = false;\n let previousOffset = 0;\n const keyframes = metadata.steps.map(styles => {\n const style = this._makeStyleAst(styles, context);\n let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);\n let offset = 0;\n if (offsetVal != null) {\n totalKeyframesWithOffsets++;\n offset = style.offset = offsetVal;\n }\n keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;\n offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;\n previousOffset = offset;\n offsets.push(offset);\n return style;\n });\n if (keyframesOutOfRange) {\n context.errors.push(`Please ensure that all keyframe offsets are between 0 and 1`);\n }\n if (offsetsOutOfOrder) {\n context.errors.push(`Please ensure that all keyframe offsets are in order`);\n }\n const length = metadata.steps.length;\n let generatedOffset = 0;\n if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {\n context.errors.push(`Not all style() steps within the declared keyframes() contain offsets`);\n }\n else if (totalKeyframesWithOffsets == 0) {\n generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);\n }\n const limit = length - 1;\n const currentTime = context.currentTime;\n const currentAnimateTimings = context.currentAnimateTimings;\n const animateDuration = currentAnimateTimings.duration;\n keyframes.forEach((kf, i) => {\n const offset = generatedOffset > 0 ? (i == limit ? 1 : (generatedOffset * i)) : offsets[i];\n const durationUpToThisFrame = offset * animateDuration;\n context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;\n currentAnimateTimings.duration = durationUpToThisFrame;\n this._validateStyleAst(kf, context);\n kf.offset = offset;\n ast.styles.push(kf);\n });\n return ast;\n }\n visitReference(metadata, context) {\n return {\n type: 8 /* Reference */,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitAnimateChild(metadata, context) {\n context.depCount++;\n return {\n type: 9 /* AnimateChild */,\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitAnimateRef(metadata, context) {\n return {\n type: 10 /* AnimateRef */,\n animation: this.visitReference(metadata.animation, context),\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitQuery(metadata, context) {\n const parentSelector = context.currentQuerySelector;\n const options = (metadata.options || {});\n context.queryCount++;\n context.currentQuery = metadata;\n const [selector, includeSelf] = normalizeSelector(metadata.selector);\n context.currentQuerySelector =\n parentSelector.length ? (parentSelector + ' ' + selector) : selector;\n getOrSetAsInMap(context.collectedStyles, context.currentQuerySelector, {});\n const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);\n context.currentQuery = null;\n context.currentQuerySelector = parentSelector;\n return {\n type: 11 /* Query */,\n selector,\n limit: options.limit || 0,\n optional: !!options.optional,\n includeSelf,\n animation,\n originalSelector: metadata.selector,\n options: normalizeAnimationOptions(metadata.options)\n };\n }\n visitStagger(metadata, context) {\n if (!context.currentQuery) {\n context.errors.push(`stagger() can only be used inside of query()`);\n }\n const timings = metadata.timings === 'full' ?\n { duration: 0, delay: 0, easing: 'full' } :\n resolveTiming(metadata.timings, context.errors, true);\n return {\n type: 12 /* Stagger */,\n animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),\n timings,\n options: null\n };\n }\n}\nfunction normalizeSelector(selector) {\n const hasAmpersand = selector.split(/\\s*,\\s*/).find(token => token == SELF_TOKEN) ? true : false;\n if (hasAmpersand) {\n selector = selector.replace(SELF_TOKEN_REGEX, '');\n }\n // Note: the :enter and :leave aren't normalized here since those\n // selectors are filled in at runtime during timeline building\n selector = selector.replace(/@\\*/g, NG_TRIGGER_SELECTOR)\n .replace(/@\\w+/g, match => NG_TRIGGER_SELECTOR + '-' + match.substr(1))\n .replace(/:animating/g, NG_ANIMATING_SELECTOR);\n return [selector, hasAmpersand];\n}\nfunction normalizeParams(obj) {\n return obj ? copyObj(obj) : null;\n}\nclass AnimationAstBuilderContext {\n constructor(errors) {\n this.errors = errors;\n this.queryCount = 0;\n this.depCount = 0;\n this.currentTransition = null;\n this.currentQuery = null;\n this.currentQuerySelector = null;\n this.currentAnimateTimings = null;\n this.currentTime = 0;\n this.collectedStyles = {};\n this.options = null;\n }\n}\nfunction consumeOffset(styles) {\n if (typeof styles == 'string')\n return null;\n let offset = null;\n if (Array.isArray(styles)) {\n styles.forEach(styleTuple => {\n if (isObject(styleTuple) && styleTuple.hasOwnProperty('offset')) {\n const obj = styleTuple;\n offset = parseFloat(obj['offset']);\n delete obj['offset'];\n }\n });\n }\n else if (isObject(styles) && styles.hasOwnProperty('offset')) {\n const obj = styles;\n offset = parseFloat(obj['offset']);\n delete obj['offset'];\n }\n return offset;\n}\nfunction isObject(value) {\n return !Array.isArray(value) && typeof value == 'object';\n}\nfunction constructTimingAst(value, errors) {\n let timings = null;\n if (value.hasOwnProperty('duration')) {\n timings = value;\n }\n else if (typeof value == 'number') {\n const duration = resolveTiming(value, errors).duration;\n return makeTimingAst(duration, 0, '');\n }\n const strValue = value;\n const isDynamic = strValue.split(/\\s+/).some(v => v.charAt(0) == '{' && v.charAt(1) == '{');\n if (isDynamic) {\n const ast = makeTimingAst(0, 0, '');\n ast.dynamic = true;\n ast.strValue = strValue;\n return ast;\n }\n timings = timings || resolveTiming(strValue, errors);\n return makeTimingAst(timings.duration, timings.delay, timings.easing);\n}\nfunction normalizeAnimationOptions(options) {\n if (options) {\n options = copyObj(options);\n if (options['params']) {\n options['params'] = normalizeParams(options['params']);\n }\n }\n else {\n options = {};\n }\n return options;\n}\nfunction makeTimingAst(duration, delay, easing) {\n return { duration, delay, easing };\n}\n\nfunction createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {\n return {\n type: 1 /* TimelineAnimation */,\n element,\n keyframes,\n preStyleProps,\n postStyleProps,\n duration,\n delay,\n totalTime: duration + delay,\n easing,\n subTimeline\n };\n}\n\nclass ElementInstructionMap {\n constructor() {\n this._map = new Map();\n }\n get(element) {\n return this._map.get(element) || [];\n }\n append(element, instructions) {\n let existingInstructions = this._map.get(element);\n if (!existingInstructions) {\n this._map.set(element, existingInstructions = []);\n }\n existingInstructions.push(...instructions);\n }\n has(element) {\n return this._map.has(element);\n }\n clear() {\n this._map.clear();\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ONE_FRAME_IN_MILLISECONDS = 1;\nconst ENTER_TOKEN = ':enter';\nconst ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');\nconst LEAVE_TOKEN = ':leave';\nconst LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');\n/*\n * The code within this file aims to generate web-animations-compatible keyframes from Angular's\n * animation DSL code.\n *\n * The code below will be converted from:\n *\n * ```\n * sequence([\n * style({ opacity: 0 }),\n * animate(1000, style({ opacity: 0 }))\n * ])\n * ```\n *\n * To:\n * ```\n * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]\n * duration = 1000\n * delay = 0\n * easing = ''\n * ```\n *\n * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a\n * combination of prototypical inheritance, AST traversal and merge-sort-like algorithms are used.\n *\n * [AST Traversal]\n * Each of the animation verbs, when executed, will return an string-map object representing what\n * type of action it is (style, animate, group, etc...) and the data associated with it. This means\n * that when functional composition mix of these functions is evaluated (like in the example above)\n * then it will end up producing a tree of objects representing the animation itself.\n *\n * When this animation object tree is processed by the visitor code below it will visit each of the\n * verb statements within the visitor. And during each visit it will build the context of the\n * animation keyframes by interacting with the `TimelineBuilder`.\n *\n * [TimelineBuilder]\n * This class is responsible for tracking the styles and building a series of keyframe objects for a\n * timeline between a start and end time. The builder starts off with an initial timeline and each\n * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a\n * `sequence()` then it will generate a sub timeline for each step as well as a new one after\n * they are complete.\n *\n * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub\n * timeline was created (based on one of the cases above) then the parent timeline will attempt to\n * merge the styles used within the sub timelines into itself (only with group() this will happen).\n * This happens with a merge operation (much like how the merge works in mergeSort) and it will only\n * copy the most recently used styles from the sub timelines into the parent timeline. This ensures\n * that if the styles are used later on in another phase of the animation then they will be the most\n * up-to-date values.\n *\n * [How Missing Styles Are Updated]\n * Each timeline has a `backFill` property which is responsible for filling in new styles into\n * already processed keyframes if a new style shows up later within the animation sequence.\n *\n * ```\n * sequence([\n * style({ width: 0 }),\n * animate(1000, style({ width: 100 })),\n * animate(1000, style({ width: 200 })),\n * animate(1000, style({ width: 300 }))\n * animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere\n * else\n * ])\n * ```\n *\n * What is happening here is that the `height` value is added later in the sequence, but is missing\n * from all previous animation steps. Therefore when a keyframe is created it would also be missing\n * from all previous keyframes up until where it is first used. For the timeline keyframe generation\n * to properly fill in the style it will place the previous value (the value from the parent\n * timeline) or a default value of `*` into the backFill object. Given that each of the keyframe\n * styles are objects that prototypically inherits from the backFill object, this means that if a\n * value is added into the backFill then it will automatically propagate any missing values to all\n * keyframes. Therefore the missing `height` value will be properly filled into the already\n * processed keyframes.\n *\n * When a sub-timeline is created it will have its own backFill property. This is done so that\n * styles present within the sub-timeline do not accidentally seep into the previous/future timeline\n * keyframes\n *\n * (For prototypically-inherited contents to be detected a `for(i in obj)` loop must be used.)\n *\n * [Validation]\n * The code in this file is not responsible for validation. That functionality happens with within\n * the `AnimationValidatorVisitor` code.\n */\nfunction buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = {}, finalStyles = {}, options, subInstructions, errors = []) {\n return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);\n}\nclass AnimationTimelineBuilderVisitor {\n buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {\n subInstructions = subInstructions || new ElementInstructionMap();\n const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);\n context.options = options;\n context.currentTimeline.setStyles([startingStyles], null, context.errors, options);\n visitDslNode(this, ast, context);\n // this checks to see if an actual animation happened\n const timelines = context.timelines.filter(timeline => timeline.containsAnimation());\n if (timelines.length && Object.keys(finalStyles).length) {\n const tl = timelines[timelines.length - 1];\n if (!tl.allowOnlyTimelineStyles()) {\n tl.setStyles([finalStyles], null, context.errors, options);\n }\n }\n return timelines.length ? timelines.map(timeline => timeline.buildKeyframes()) :\n [createTimelineInstruction(rootElement, [], [], [], 0, 0, '', false)];\n }\n visitTrigger(ast, context) {\n // these values are not visited in this AST\n }\n visitState(ast, context) {\n // these values are not visited in this AST\n }\n visitTransition(ast, context) {\n // these values are not visited in this AST\n }\n visitAnimateChild(ast, context) {\n const elementInstructions = context.subInstructions.get(context.element);\n if (elementInstructions) {\n const innerContext = context.createSubContext(ast.options);\n const startTime = context.currentTimeline.currentTime;\n const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);\n if (startTime != endTime) {\n // we do this on the upper context because we created a sub context for\n // the sub child animations\n context.transformIntoNewTimeline(endTime);\n }\n }\n context.previousNode = ast;\n }\n visitAnimateRef(ast, context) {\n const innerContext = context.createSubContext(ast.options);\n innerContext.transformIntoNewTimeline();\n this.visitReference(ast.animation, innerContext);\n context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);\n context.previousNode = ast;\n }\n _visitSubInstructions(instructions, context, options) {\n const startTime = context.currentTimeline.currentTime;\n let furthestTime = startTime;\n // this is a special-case for when a user wants to skip a sub\n // animation from being fired entirely.\n const duration = options.duration != null ? resolveTimingValue(options.duration) : null;\n const delay = options.delay != null ? resolveTimingValue(options.delay) : null;\n if (duration !== 0) {\n instructions.forEach(instruction => {\n const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);\n furthestTime =\n Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);\n });\n }\n return furthestTime;\n }\n visitReference(ast, context) {\n context.updateOptions(ast.options, true);\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n }\n visitSequence(ast, context) {\n const subContextCount = context.subContextCount;\n let ctx = context;\n const options = ast.options;\n if (options && (options.params || options.delay)) {\n ctx = context.createSubContext(options);\n ctx.transformIntoNewTimeline();\n if (options.delay != null) {\n if (ctx.previousNode.type == 6 /* Style */) {\n ctx.currentTimeline.snapshotCurrentStyles();\n ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n const delay = resolveTimingValue(options.delay);\n ctx.delayNextStep(delay);\n }\n }\n if (ast.steps.length) {\n ast.steps.forEach(s => visitDslNode(this, s, ctx));\n // this is here just in case the inner steps only contain or end with a style() call\n ctx.currentTimeline.applyStylesToKeyframe();\n // this means that some animation function within the sequence\n // ended up creating a sub timeline (which means the current\n // timeline cannot overlap with the contents of the sequence)\n if (ctx.subContextCount > subContextCount) {\n ctx.transformIntoNewTimeline();\n }\n }\n context.previousNode = ast;\n }\n visitGroup(ast, context) {\n const innerTimelines = [];\n let furthestTime = context.currentTimeline.currentTime;\n const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;\n ast.steps.forEach(s => {\n const innerContext = context.createSubContext(ast.options);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n visitDslNode(this, s, innerContext);\n furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);\n innerTimelines.push(innerContext.currentTimeline);\n });\n // this operation is run after the AST loop because otherwise\n // if the parent timeline's collected styles were updated then\n // it would pass in invalid data into the new-to-be forked items\n innerTimelines.forEach(timeline => context.currentTimeline.mergeTimelineCollectedStyles(timeline));\n context.transformIntoNewTimeline(furthestTime);\n context.previousNode = ast;\n }\n _visitTiming(ast, context) {\n if (ast.dynamic) {\n const strValue = ast.strValue;\n const timingValue = context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;\n return resolveTiming(timingValue, context.errors);\n }\n else {\n return { duration: ast.duration, delay: ast.delay, easing: ast.easing };\n }\n }\n visitAnimate(ast, context) {\n const timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);\n const timeline = context.currentTimeline;\n if (timings.delay) {\n context.incrementTime(timings.delay);\n timeline.snapshotCurrentStyles();\n }\n const style = ast.style;\n if (style.type == 5 /* Keyframes */) {\n this.visitKeyframes(style, context);\n }\n else {\n context.incrementTime(timings.duration);\n this.visitStyle(style, context);\n timeline.applyStylesToKeyframe();\n }\n context.currentAnimateTimings = null;\n context.previousNode = ast;\n }\n visitStyle(ast, context) {\n const timeline = context.currentTimeline;\n const timings = context.currentAnimateTimings;\n // this is a special case for when a style() call\n // directly follows an animate() call (but not inside of an animate() call)\n if (!timings && timeline.getCurrentStyleProperties().length) {\n timeline.forwardFrame();\n }\n const easing = (timings && timings.easing) || ast.easing;\n if (ast.isEmptyStep) {\n timeline.applyEmptyStep(easing);\n }\n else {\n timeline.setStyles(ast.styles, easing, context.errors, context.options);\n }\n context.previousNode = ast;\n }\n visitKeyframes(ast, context) {\n const currentAnimateTimings = context.currentAnimateTimings;\n const startTime = (context.currentTimeline).duration;\n const duration = currentAnimateTimings.duration;\n const innerContext = context.createSubContext();\n const innerTimeline = innerContext.currentTimeline;\n innerTimeline.easing = currentAnimateTimings.easing;\n ast.styles.forEach(step => {\n const offset = step.offset || 0;\n innerTimeline.forwardTime(offset * duration);\n innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);\n innerTimeline.applyStylesToKeyframe();\n });\n // this will ensure that the parent timeline gets all the styles from\n // the child even if the new timeline below is not used\n context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);\n // we do this because the window between this timeline and the sub timeline\n // should ensure that the styles within are exactly the same as they were before\n context.transformIntoNewTimeline(startTime + duration);\n context.previousNode = ast;\n }\n visitQuery(ast, context) {\n // in the event that the first step before this is a style step we need\n // to ensure the styles are applied before the children are animated\n const startTime = context.currentTimeline.currentTime;\n const options = (ast.options || {});\n const delay = options.delay ? resolveTimingValue(options.delay) : 0;\n if (delay &&\n (context.previousNode.type === 6 /* Style */ ||\n (startTime == 0 && context.currentTimeline.getCurrentStyleProperties().length))) {\n context.currentTimeline.snapshotCurrentStyles();\n context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n }\n let furthestTime = startTime;\n const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);\n context.currentQueryTotal = elms.length;\n let sameElementTimeline = null;\n elms.forEach((element, i) => {\n context.currentQueryIndex = i;\n const innerContext = context.createSubContext(ast.options, element);\n if (delay) {\n innerContext.delayNextStep(delay);\n }\n if (element === context.element) {\n sameElementTimeline = innerContext.currentTimeline;\n }\n visitDslNode(this, ast.animation, innerContext);\n // this is here just incase the inner steps only contain or end\n // with a style() call (which is here to signal that this is a preparatory\n // call to style an element before it is animated again)\n innerContext.currentTimeline.applyStylesToKeyframe();\n const endTime = innerContext.currentTimeline.currentTime;\n furthestTime = Math.max(furthestTime, endTime);\n });\n context.currentQueryIndex = 0;\n context.currentQueryTotal = 0;\n context.transformIntoNewTimeline(furthestTime);\n if (sameElementTimeline) {\n context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);\n context.currentTimeline.snapshotCurrentStyles();\n }\n context.previousNode = ast;\n }\n visitStagger(ast, context) {\n const parentContext = context.parentContext;\n const tl = context.currentTimeline;\n const timings = ast.timings;\n const duration = Math.abs(timings.duration);\n const maxTime = duration * (context.currentQueryTotal - 1);\n let delay = duration * context.currentQueryIndex;\n let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;\n switch (staggerTransformer) {\n case 'reverse':\n delay = maxTime - delay;\n break;\n case 'full':\n delay = parentContext.currentStaggerTime;\n break;\n }\n const timeline = context.currentTimeline;\n if (delay) {\n timeline.delayNextStep(delay);\n }\n const startingTime = timeline.currentTime;\n visitDslNode(this, ast.animation, context);\n context.previousNode = ast;\n // time = duration + delay\n // the reason why this computation is so complex is because\n // the inner timeline may either have a delay value or a stretched\n // keyframe depending on if a subtimeline is not used or is used.\n parentContext.currentStaggerTime =\n (tl.currentTime - startingTime) + (tl.startTime - parentContext.currentTimeline.startTime);\n }\n}\nconst DEFAULT_NOOP_PREVIOUS_NODE = {};\nclass AnimationTimelineContext {\n constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {\n this._driver = _driver;\n this.element = element;\n this.subInstructions = subInstructions;\n this._enterClassName = _enterClassName;\n this._leaveClassName = _leaveClassName;\n this.errors = errors;\n this.timelines = timelines;\n this.parentContext = null;\n this.currentAnimateTimings = null;\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.subContextCount = 0;\n this.options = {};\n this.currentQueryIndex = 0;\n this.currentQueryTotal = 0;\n this.currentStaggerTime = 0;\n this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);\n timelines.push(this.currentTimeline);\n }\n get params() {\n return this.options.params;\n }\n updateOptions(options, skipIfExists) {\n if (!options)\n return;\n const newOptions = options;\n let optionsToUpdate = this.options;\n // NOTE: this will get patched up when other animation methods support duration overrides\n if (newOptions.duration != null) {\n optionsToUpdate.duration = resolveTimingValue(newOptions.duration);\n }\n if (newOptions.delay != null) {\n optionsToUpdate.delay = resolveTimingValue(newOptions.delay);\n }\n const newParams = newOptions.params;\n if (newParams) {\n let paramsToUpdate = optionsToUpdate.params;\n if (!paramsToUpdate) {\n paramsToUpdate = this.options.params = {};\n }\n Object.keys(newParams).forEach(name => {\n if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {\n paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);\n }\n });\n }\n }\n _copyOptions() {\n const options = {};\n if (this.options) {\n const oldParams = this.options.params;\n if (oldParams) {\n const params = options['params'] = {};\n Object.keys(oldParams).forEach(name => {\n params[name] = oldParams[name];\n });\n }\n }\n return options;\n }\n createSubContext(options = null, element, newTime) {\n const target = element || this.element;\n const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));\n context.previousNode = this.previousNode;\n context.currentAnimateTimings = this.currentAnimateTimings;\n context.options = this._copyOptions();\n context.updateOptions(options);\n context.currentQueryIndex = this.currentQueryIndex;\n context.currentQueryTotal = this.currentQueryTotal;\n context.parentContext = this;\n this.subContextCount++;\n return context;\n }\n transformIntoNewTimeline(newTime) {\n this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;\n this.currentTimeline = this.currentTimeline.fork(this.element, newTime);\n this.timelines.push(this.currentTimeline);\n return this.currentTimeline;\n }\n appendInstructionToTimeline(instruction, duration, delay) {\n const updatedTimings = {\n duration: duration != null ? duration : instruction.duration,\n delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,\n easing: ''\n };\n const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);\n this.timelines.push(builder);\n return updatedTimings;\n }\n incrementTime(time) {\n this.currentTimeline.forwardTime(this.currentTimeline.duration + time);\n }\n delayNextStep(delay) {\n // negative delays are not yet supported\n if (delay > 0) {\n this.currentTimeline.delayNextStep(delay);\n }\n }\n invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {\n let results = [];\n if (includeSelf) {\n results.push(this.element);\n }\n if (selector.length > 0) { // only if :self is used then the selector can be empty\n selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);\n selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);\n const multi = limit != 1;\n let elements = this._driver.query(this.element, selector, multi);\n if (limit !== 0) {\n elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) :\n elements.slice(0, limit);\n }\n results.push(...elements);\n }\n if (!optional && results.length == 0) {\n errors.push(`\\`query(\"${originalSelector}\")\\` returned zero elements. (Use \\`query(\"${originalSelector}\", { optional: true })\\` if you wish to allow this.)`);\n }\n return results;\n }\n}\nclass TimelineBuilder {\n constructor(_driver, element, startTime, _elementTimelineStylesLookup) {\n this._driver = _driver;\n this.element = element;\n this.startTime = startTime;\n this._elementTimelineStylesLookup = _elementTimelineStylesLookup;\n this.duration = 0;\n this._previousKeyframe = {};\n this._currentKeyframe = {};\n this._keyframes = new Map();\n this._styleSummary = {};\n this._pendingStyles = {};\n this._backFill = {};\n this._currentEmptyStepKeyframe = null;\n if (!this._elementTimelineStylesLookup) {\n this._elementTimelineStylesLookup = new Map();\n }\n this._localTimelineStyles = Object.create(this._backFill, {});\n this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);\n if (!this._globalTimelineStyles) {\n this._globalTimelineStyles = this._localTimelineStyles;\n this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);\n }\n this._loadKeyframe();\n }\n containsAnimation() {\n switch (this._keyframes.size) {\n case 0:\n return false;\n case 1:\n return this.getCurrentStyleProperties().length > 0;\n default:\n return true;\n }\n }\n getCurrentStyleProperties() {\n return Object.keys(this._currentKeyframe);\n }\n get currentTime() {\n return this.startTime + this.duration;\n }\n delayNextStep(delay) {\n // in the event that a style() step is placed right before a stagger()\n // and that style() step is the very first style() value in the animation\n // then we need to make a copy of the keyframe [0, copy, 1] so that the delay\n // properly applies the style() values to work with the stagger...\n const hasPreStyleStep = this._keyframes.size == 1 && Object.keys(this._pendingStyles).length;\n if (this.duration || hasPreStyleStep) {\n this.forwardTime(this.currentTime + delay);\n if (hasPreStyleStep) {\n this.snapshotCurrentStyles();\n }\n }\n else {\n this.startTime += delay;\n }\n }\n fork(element, currentTime) {\n this.applyStylesToKeyframe();\n return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);\n }\n _loadKeyframe() {\n if (this._currentKeyframe) {\n this._previousKeyframe = this._currentKeyframe;\n }\n this._currentKeyframe = this._keyframes.get(this.duration);\n if (!this._currentKeyframe) {\n this._currentKeyframe = Object.create(this._backFill, {});\n this._keyframes.set(this.duration, this._currentKeyframe);\n }\n }\n forwardFrame() {\n this.duration += ONE_FRAME_IN_MILLISECONDS;\n this._loadKeyframe();\n }\n forwardTime(time) {\n this.applyStylesToKeyframe();\n this.duration = time;\n this._loadKeyframe();\n }\n _updateStyle(prop, value) {\n this._localTimelineStyles[prop] = value;\n this._globalTimelineStyles[prop] = value;\n this._styleSummary[prop] = { time: this.currentTime, value };\n }\n allowOnlyTimelineStyles() {\n return this._currentEmptyStepKeyframe !== this._currentKeyframe;\n }\n applyEmptyStep(easing) {\n if (easing) {\n this._previousKeyframe['easing'] = easing;\n }\n // special case for animate(duration):\n // all missing styles are filled with a `*` value then\n // if any destination styles are filled in later on the same\n // keyframe then they will override the overridden styles\n // We use `_globalTimelineStyles` here because there may be\n // styles in previous keyframes that are not present in this timeline\n Object.keys(this._globalTimelineStyles).forEach(prop => {\n this._backFill[prop] = this._globalTimelineStyles[prop] || AUTO_STYLE;\n this._currentKeyframe[prop] = AUTO_STYLE;\n });\n this._currentEmptyStepKeyframe = this._currentKeyframe;\n }\n setStyles(input, easing, errors, options) {\n if (easing) {\n this._previousKeyframe['easing'] = easing;\n }\n const params = (options && options.params) || {};\n const styles = flattenStyles(input, this._globalTimelineStyles);\n Object.keys(styles).forEach(prop => {\n const val = interpolateParams(styles[prop], params, errors);\n this._pendingStyles[prop] = val;\n if (!this._localTimelineStyles.hasOwnProperty(prop)) {\n this._backFill[prop] = this._globalTimelineStyles.hasOwnProperty(prop) ?\n this._globalTimelineStyles[prop] :\n AUTO_STYLE;\n }\n this._updateStyle(prop, val);\n });\n }\n applyStylesToKeyframe() {\n const styles = this._pendingStyles;\n const props = Object.keys(styles);\n if (props.length == 0)\n return;\n this._pendingStyles = {};\n props.forEach(prop => {\n const val = styles[prop];\n this._currentKeyframe[prop] = val;\n });\n Object.keys(this._localTimelineStyles).forEach(prop => {\n if (!this._currentKeyframe.hasOwnProperty(prop)) {\n this._currentKeyframe[prop] = this._localTimelineStyles[prop];\n }\n });\n }\n snapshotCurrentStyles() {\n Object.keys(this._localTimelineStyles).forEach(prop => {\n const val = this._localTimelineStyles[prop];\n this._pendingStyles[prop] = val;\n this._updateStyle(prop, val);\n });\n }\n getFinalKeyframe() {\n return this._keyframes.get(this.duration);\n }\n get properties() {\n const properties = [];\n for (let prop in this._currentKeyframe) {\n properties.push(prop);\n }\n return properties;\n }\n mergeTimelineCollectedStyles(timeline) {\n Object.keys(timeline._styleSummary).forEach(prop => {\n const details0 = this._styleSummary[prop];\n const details1 = timeline._styleSummary[prop];\n if (!details0 || details1.time > details0.time) {\n this._updateStyle(prop, details1.value);\n }\n });\n }\n buildKeyframes() {\n this.applyStylesToKeyframe();\n const preStyleProps = new Set();\n const postStyleProps = new Set();\n const isEmpty = this._keyframes.size === 1 && this.duration === 0;\n let finalKeyframes = [];\n this._keyframes.forEach((keyframe, time) => {\n const finalKeyframe = copyStyles(keyframe, true);\n Object.keys(finalKeyframe).forEach(prop => {\n const value = finalKeyframe[prop];\n if (value == ɵPRE_STYLE) {\n preStyleProps.add(prop);\n }\n else if (value == AUTO_STYLE) {\n postStyleProps.add(prop);\n }\n });\n if (!isEmpty) {\n finalKeyframe['offset'] = time / this.duration;\n }\n finalKeyframes.push(finalKeyframe);\n });\n const preProps = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];\n const postProps = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : [];\n // special case for a 0-second animation (which is designed just to place styles onscreen)\n if (isEmpty) {\n const kf0 = finalKeyframes[0];\n const kf1 = copyObj(kf0);\n kf0['offset'] = 0;\n kf1['offset'] = 1;\n finalKeyframes = [kf0, kf1];\n }\n return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);\n }\n}\nclass SubTimelineBuilder extends TimelineBuilder {\n constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {\n super(driver, element, timings.delay);\n this.keyframes = keyframes;\n this.preStyleProps = preStyleProps;\n this.postStyleProps = postStyleProps;\n this._stretchStartingKeyframe = _stretchStartingKeyframe;\n this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };\n }\n containsAnimation() {\n return this.keyframes.length > 1;\n }\n buildKeyframes() {\n let keyframes = this.keyframes;\n let { delay, duration, easing } = this.timings;\n if (this._stretchStartingKeyframe && delay) {\n const newKeyframes = [];\n const totalTime = duration + delay;\n const startingGap = delay / totalTime;\n // the original starting keyframe now starts once the delay is done\n const newFirstKeyframe = copyStyles(keyframes[0], false);\n newFirstKeyframe['offset'] = 0;\n newKeyframes.push(newFirstKeyframe);\n const oldFirstKeyframe = copyStyles(keyframes[0], false);\n oldFirstKeyframe['offset'] = roundOffset(startingGap);\n newKeyframes.push(oldFirstKeyframe);\n /*\n When the keyframe is stretched then it means that the delay before the animation\n starts is gone. Instead the first keyframe is placed at the start of the animation\n and it is then copied to where it starts when the original delay is over. This basically\n means nothing animates during that delay, but the styles are still rendered. For this\n to work the original offset values that exist in the original keyframes must be \"warped\"\n so that they can take the new keyframe + delay into account.\n \n delay=1000, duration=1000, keyframes = 0 .5 1\n \n turns into\n \n delay=0, duration=2000, keyframes = 0 .33 .66 1\n */\n // offsets between 1 ... n -1 are all warped by the keyframe stretch\n const limit = keyframes.length - 1;\n for (let i = 1; i <= limit; i++) {\n let kf = copyStyles(keyframes[i], false);\n const oldOffset = kf['offset'];\n const timeAtKeyframe = delay + oldOffset * duration;\n kf['offset'] = roundOffset(timeAtKeyframe / totalTime);\n newKeyframes.push(kf);\n }\n // the new starting keyframe should be added at the start\n duration = totalTime;\n delay = 0;\n easing = '';\n keyframes = newKeyframes;\n }\n return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);\n }\n}\nfunction roundOffset(offset, decimalPoints = 3) {\n const mult = Math.pow(10, decimalPoints - 1);\n return Math.round(offset * mult) / mult;\n}\nfunction flattenStyles(input, allStyles) {\n const styles = {};\n let allProperties;\n input.forEach(token => {\n if (token === '*') {\n allProperties = allProperties || Object.keys(allStyles);\n allProperties.forEach(prop => {\n styles[prop] = AUTO_STYLE;\n });\n }\n else {\n copyStyles(token, false, styles);\n }\n });\n return styles;\n}\n\nclass Animation {\n constructor(_driver, input) {\n this._driver = _driver;\n const errors = [];\n const ast = buildAnimationAst(_driver, input, errors);\n if (errors.length) {\n const errorMessage = `animation validation failed:\\n${errors.join('\\n')}`;\n throw new Error(errorMessage);\n }\n this._animationAst = ast;\n }\n buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {\n const start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) :\n startingStyles;\n const dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) :\n destinationStyles;\n const errors = [];\n subInstructions = subInstructions || new ElementInstructionMap();\n const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);\n if (errors.length) {\n const errorMessage = `animation building failed:\\n${errors.join('\\n')}`;\n throw new Error(errorMessage);\n }\n return result;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nclass AnimationStyleNormalizer {\n}\n/**\n * @publicApi\n */\nclass NoopAnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return propertyName;\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n return value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {\n normalizePropertyName(propertyName, errors) {\n return dashCaseToCamelCase(propertyName);\n }\n normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {\n let unit = '';\n const strVal = value.toString().trim();\n if (DIMENSIONAL_PROP_MAP[normalizedProperty] && value !== 0 && value !== '0') {\n if (typeof value === 'number') {\n unit = 'px';\n }\n else {\n const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);\n if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {\n errors.push(`Please provide a CSS unit value for ${userProvidedProperty}:${value}`);\n }\n }\n }\n return strVal + unit;\n }\n}\nconst DIMENSIONAL_PROP_MAP = (() => makeBooleanMap('width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective'\n .split(',')))();\nfunction makeBooleanMap(keys) {\n const map = {};\n keys.forEach(key => map[key] = true);\n return map;\n}\n\nfunction createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {\n return {\n type: 0 /* TransitionAnimation */,\n element,\n triggerName,\n isRemovalTransition,\n fromState,\n fromStyles,\n toState,\n toStyles,\n timelines,\n queriedElements,\n preStyleProps,\n postStyleProps,\n totalTime,\n errors\n };\n}\n\nconst EMPTY_OBJECT = {};\nclass AnimationTransitionFactory {\n constructor(_triggerName, ast, _stateStyles) {\n this._triggerName = _triggerName;\n this.ast = ast;\n this._stateStyles = _stateStyles;\n }\n match(currentState, nextState, element, params) {\n return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);\n }\n buildStyles(stateName, params, errors) {\n const backupStateStyler = this._stateStyles['*'];\n const stateStyler = this._stateStyles[stateName];\n const backupStyles = backupStateStyler ? backupStateStyler.buildStyles(params, errors) : {};\n return stateStyler ? stateStyler.buildStyles(params, errors) : backupStyles;\n }\n build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {\n const errors = [];\n const transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;\n const currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;\n const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);\n const nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;\n const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);\n const queriedElements = new Set();\n const preStyleMap = new Map();\n const postStyleMap = new Map();\n const isRemoval = nextState === 'void';\n const animationOptions = { params: Object.assign(Object.assign({}, transitionAnimationParams), nextAnimationParams) };\n const timelines = skipAstBuild ?\n [] :\n buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);\n let totalTime = 0;\n timelines.forEach(tl => {\n totalTime = Math.max(tl.duration + tl.delay, totalTime);\n });\n if (errors.length) {\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);\n }\n timelines.forEach(tl => {\n const elm = tl.element;\n const preProps = getOrSetAsInMap(preStyleMap, elm, {});\n tl.preStyleProps.forEach(prop => preProps[prop] = true);\n const postProps = getOrSetAsInMap(postStyleMap, elm, {});\n tl.postStyleProps.forEach(prop => postProps[prop] = true);\n if (elm !== element) {\n queriedElements.add(elm);\n }\n });\n const queriedElementsList = iteratorToArray(queriedElements.values());\n return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);\n }\n}\nfunction oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {\n return matchFns.some(fn => fn(currentState, nextState, element, params));\n}\nclass AnimationStateStyles {\n constructor(styles, defaultParams, normalizer) {\n this.styles = styles;\n this.defaultParams = defaultParams;\n this.normalizer = normalizer;\n }\n buildStyles(params, errors) {\n const finalStyles = {};\n const combinedParams = copyObj(this.defaultParams);\n Object.keys(params).forEach(key => {\n const value = params[key];\n if (value != null) {\n combinedParams[key] = value;\n }\n });\n this.styles.styles.forEach(value => {\n if (typeof value !== 'string') {\n const styleObj = value;\n Object.keys(styleObj).forEach(prop => {\n let val = styleObj[prop];\n if (val.length > 1) {\n val = interpolateParams(val, combinedParams, errors);\n }\n const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);\n val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);\n finalStyles[normalizedProp] = val;\n });\n }\n });\n return finalStyles;\n }\n}\n\nfunction buildTrigger(name, ast, normalizer) {\n return new AnimationTrigger(name, ast, normalizer);\n}\nclass AnimationTrigger {\n constructor(name, ast, _normalizer) {\n this.name = name;\n this.ast = ast;\n this._normalizer = _normalizer;\n this.transitionFactories = [];\n this.states = {};\n ast.states.forEach(ast => {\n const defaultParams = (ast.options && ast.options.params) || {};\n this.states[ast.name] = new AnimationStateStyles(ast.style, defaultParams, _normalizer);\n });\n balanceProperties(this.states, 'true', '1');\n balanceProperties(this.states, 'false', '0');\n ast.transitions.forEach(ast => {\n this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));\n });\n this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);\n }\n get containsQueries() {\n return this.ast.queryCount > 0;\n }\n matchTransition(currentState, nextState, element, params) {\n const entry = this.transitionFactories.find(f => f.match(currentState, nextState, element, params));\n return entry || null;\n }\n matchStyles(currentState, params, errors) {\n return this.fallbackTransition.buildStyles(currentState, params, errors);\n }\n}\nfunction createFallbackTransition(triggerName, states, normalizer) {\n const matchers = [(fromState, toState) => true];\n const animation = { type: 2 /* Sequence */, steps: [], options: null };\n const transition = {\n type: 1 /* Transition */,\n animation,\n matchers,\n options: null,\n queryCount: 0,\n depCount: 0\n };\n return new AnimationTransitionFactory(triggerName, transition, states);\n}\nfunction balanceProperties(obj, key1, key2) {\n if (obj.hasOwnProperty(key1)) {\n if (!obj.hasOwnProperty(key2)) {\n obj[key2] = obj[key1];\n }\n }\n else if (obj.hasOwnProperty(key2)) {\n obj[key1] = obj[key2];\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();\nclass TimelineAnimationEngine {\n constructor(bodyNode, _driver, _normalizer) {\n this.bodyNode = bodyNode;\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._animations = {};\n this._playersById = {};\n this.players = [];\n }\n register(id, metadata) {\n const errors = [];\n const ast = buildAnimationAst(this._driver, metadata, errors);\n if (errors.length) {\n throw new Error(`Unable to build the animation due to the following errors: ${errors.join('\\n')}`);\n }\n else {\n this._animations[id] = ast;\n }\n }\n _buildPlayer(i, preStyles, postStyles) {\n const element = i.element;\n const keyframes = normalizeKeyframes(this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);\n return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);\n }\n create(id, element, options = {}) {\n const errors = [];\n const ast = this._animations[id];\n let instructions;\n const autoStylesMap = new Map();\n if (ast) {\n instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, {}, {}, options, EMPTY_INSTRUCTION_MAP, errors);\n instructions.forEach(inst => {\n const styles = getOrSetAsInMap(autoStylesMap, inst.element, {});\n inst.postStyleProps.forEach(prop => styles[prop] = null);\n });\n }\n else {\n errors.push('The requested animation doesn\\'t exist or has already been destroyed');\n instructions = [];\n }\n if (errors.length) {\n throw new Error(`Unable to create the animation due to the following errors: ${errors.join('\\n')}`);\n }\n autoStylesMap.forEach((styles, element) => {\n Object.keys(styles).forEach(prop => {\n styles[prop] = this._driver.computeStyle(element, prop, AUTO_STYLE);\n });\n });\n const players = instructions.map(i => {\n const styles = autoStylesMap.get(i.element);\n return this._buildPlayer(i, {}, styles);\n });\n const player = optimizeGroupPlayer(players);\n this._playersById[id] = player;\n player.onDestroy(() => this.destroy(id));\n this.players.push(player);\n return player;\n }\n destroy(id) {\n const player = this._getPlayer(id);\n player.destroy();\n delete this._playersById[id];\n const index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n }\n _getPlayer(id) {\n const player = this._playersById[id];\n if (!player) {\n throw new Error(`Unable to find the timeline player referenced by ${id}`);\n }\n return player;\n }\n listen(id, element, eventName, callback) {\n // triggerName, fromState, toState are all ignored for timeline animations\n const baseEvent = makeAnimationEvent(element, '', '', '');\n listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);\n return () => { };\n }\n command(id, element, command, args) {\n if (command == 'register') {\n this.register(id, args[0]);\n return;\n }\n if (command == 'create') {\n const options = (args[0] || {});\n this.create(id, element, options);\n return;\n }\n const player = this._getPlayer(id);\n switch (command) {\n case 'play':\n player.play();\n break;\n case 'pause':\n player.pause();\n break;\n case 'reset':\n player.reset();\n break;\n case 'restart':\n player.restart();\n break;\n case 'finish':\n player.finish();\n break;\n case 'init':\n player.init();\n break;\n case 'setPosition':\n player.setPosition(parseFloat(args[0]));\n break;\n case 'destroy':\n this.destroy(id);\n break;\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst QUEUED_CLASSNAME = 'ng-animate-queued';\nconst QUEUED_SELECTOR = '.ng-animate-queued';\nconst DISABLED_CLASSNAME = 'ng-animate-disabled';\nconst DISABLED_SELECTOR = '.ng-animate-disabled';\nconst STAR_CLASSNAME = 'ng-star-inserted';\nconst STAR_SELECTOR = '.ng-star-inserted';\nconst EMPTY_PLAYER_ARRAY = [];\nconst NULL_REMOVAL_STATE = {\n namespaceId: '',\n setForRemoval: false,\n setForMove: false,\n hasAnimation: false,\n removedBeforeQueried: false\n};\nconst NULL_REMOVED_QUERIED_STATE = {\n namespaceId: '',\n setForMove: false,\n setForRemoval: false,\n hasAnimation: false,\n removedBeforeQueried: true\n};\nconst REMOVAL_FLAG = '__ng_removed';\nclass StateValue {\n constructor(input, namespaceId = '') {\n this.namespaceId = namespaceId;\n const isObj = input && input.hasOwnProperty('value');\n const value = isObj ? input['value'] : input;\n this.value = normalizeTriggerValue(value);\n if (isObj) {\n const options = copyObj(input);\n delete options['value'];\n this.options = options;\n }\n else {\n this.options = {};\n }\n if (!this.options.params) {\n this.options.params = {};\n }\n }\n get params() {\n return this.options.params;\n }\n absorbOptions(options) {\n const newParams = options.params;\n if (newParams) {\n const oldParams = this.options.params;\n Object.keys(newParams).forEach(prop => {\n if (oldParams[prop] == null) {\n oldParams[prop] = newParams[prop];\n }\n });\n }\n }\n}\nconst VOID_VALUE = 'void';\nconst DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);\nclass AnimationTransitionNamespace {\n constructor(id, hostElement, _engine) {\n this.id = id;\n this.hostElement = hostElement;\n this._engine = _engine;\n this.players = [];\n this._triggers = {};\n this._queue = [];\n this._elementListeners = new Map();\n this._hostClassName = 'ng-tns-' + id;\n addClass(hostElement, this._hostClassName);\n }\n listen(element, name, phase, callback) {\n if (!this._triggers.hasOwnProperty(name)) {\n throw new Error(`Unable to listen on the animation trigger event \"${phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`);\n }\n if (phase == null || phase.length == 0) {\n throw new Error(`Unable to listen on the animation trigger \"${name}\" because the provided event is undefined!`);\n }\n if (!isTriggerEventValid(phase)) {\n throw new Error(`The provided animation trigger event \"${phase}\" for the animation trigger \"${name}\" is not supported!`);\n }\n const listeners = getOrSetAsInMap(this._elementListeners, element, []);\n const data = { name, phase, callback };\n listeners.push(data);\n const triggersWithStates = getOrSetAsInMap(this._engine.statesByElement, element, {});\n if (!triggersWithStates.hasOwnProperty(name)) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);\n triggersWithStates[name] = DEFAULT_STATE_VALUE;\n }\n return () => {\n // the event listener is removed AFTER the flush has occurred such\n // that leave animations callbacks can fire (otherwise if the node\n // is removed in between then the listeners would be deregistered)\n this._engine.afterFlush(() => {\n const index = listeners.indexOf(data);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n if (!this._triggers[name]) {\n delete triggersWithStates[name];\n }\n });\n };\n }\n register(name, ast) {\n if (this._triggers[name]) {\n // throw\n return false;\n }\n else {\n this._triggers[name] = ast;\n return true;\n }\n }\n _getTrigger(name) {\n const trigger = this._triggers[name];\n if (!trigger) {\n throw new Error(`The provided animation trigger \"${name}\" has not been registered!`);\n }\n return trigger;\n }\n trigger(element, triggerName, value, defaultToFallback = true) {\n const trigger = this._getTrigger(triggerName);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n let triggersWithStates = this._engine.statesByElement.get(element);\n if (!triggersWithStates) {\n addClass(element, NG_TRIGGER_CLASSNAME);\n addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);\n this._engine.statesByElement.set(element, triggersWithStates = {});\n }\n let fromState = triggersWithStates[triggerName];\n const toState = new StateValue(value, this.id);\n const isObj = value && value.hasOwnProperty('value');\n if (!isObj && fromState) {\n toState.absorbOptions(fromState.options);\n }\n triggersWithStates[triggerName] = toState;\n if (!fromState) {\n fromState = DEFAULT_STATE_VALUE;\n }\n const isRemoval = toState.value === VOID_VALUE;\n // normally this isn't reached by here, however, if an object expression\n // is passed in then it may be a new object each time. Comparing the value\n // is important since that will stay the same despite there being a new object.\n // The removal arc here is special cased because the same element is triggered\n // twice in the event that it contains animations on the outer/inner portions\n // of the host container\n if (!isRemoval && fromState.value === toState.value) {\n // this means that despite the value not changing, some inner params\n // have changed which means that the animation final styles need to be applied\n if (!objEquals(fromState.params, toState.params)) {\n const errors = [];\n const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);\n const toStyles = trigger.matchStyles(toState.value, toState.params, errors);\n if (errors.length) {\n this._engine.reportError(errors);\n }\n else {\n this._engine.afterFlush(() => {\n eraseStyles(element, fromStyles);\n setStyles(element, toStyles);\n });\n }\n }\n return;\n }\n const playersOnElement = getOrSetAsInMap(this._engine.playersByElement, element, []);\n playersOnElement.forEach(player => {\n // only remove the player if it is queued on the EXACT same trigger/namespace\n // we only also deal with queued players here because if the animation has\n // started then we want to keep the player alive until the flush happens\n // (which is where the previousPlayers are passed into the new player)\n if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {\n player.destroy();\n }\n });\n let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);\n let isFallbackTransition = false;\n if (!transition) {\n if (!defaultToFallback)\n return;\n transition = trigger.fallbackTransition;\n isFallbackTransition = true;\n }\n this._engine.totalQueuedPlayers++;\n this._queue.push({ element, triggerName, transition, fromState, toState, player, isFallbackTransition });\n if (!isFallbackTransition) {\n addClass(element, QUEUED_CLASSNAME);\n player.onStart(() => {\n removeClass(element, QUEUED_CLASSNAME);\n });\n }\n player.onDone(() => {\n let index = this.players.indexOf(player);\n if (index >= 0) {\n this.players.splice(index, 1);\n }\n const players = this._engine.playersByElement.get(element);\n if (players) {\n let index = players.indexOf(player);\n if (index >= 0) {\n players.splice(index, 1);\n }\n }\n });\n this.players.push(player);\n playersOnElement.push(player);\n return player;\n }\n deregister(name) {\n delete this._triggers[name];\n this._engine.statesByElement.forEach((stateMap, element) => {\n delete stateMap[name];\n });\n this._elementListeners.forEach((listeners, element) => {\n this._elementListeners.set(element, listeners.filter(entry => {\n return entry.name != name;\n }));\n });\n }\n clearElementCache(element) {\n this._engine.statesByElement.delete(element);\n this._elementListeners.delete(element);\n const elementPlayers = this._engine.playersByElement.get(element);\n if (elementPlayers) {\n elementPlayers.forEach(player => player.destroy());\n this._engine.playersByElement.delete(element);\n }\n }\n _signalRemovalForInnerTriggers(rootElement, context) {\n const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);\n // emulate a leave animation for all inner nodes within this node.\n // If there are no animations found for any of the nodes then clear the cache\n // for the element.\n elements.forEach(elm => {\n // this means that an inner remove() operation has already kicked off\n // the animation on this element...\n if (elm[REMOVAL_FLAG])\n return;\n const namespaces = this._engine.fetchNamespacesByElement(elm);\n if (namespaces.size) {\n namespaces.forEach(ns => ns.triggerLeaveAnimation(elm, context, false, true));\n }\n else {\n this.clearElementCache(elm);\n }\n });\n // If the child elements were removed along with the parent, their animations might not\n // have completed. Clear all the elements from the cache so we don't end up with a memory leak.\n this._engine.afterFlushAnimationsDone(() => elements.forEach(elm => this.clearElementCache(elm)));\n }\n triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {\n const triggerStates = this._engine.statesByElement.get(element);\n if (triggerStates) {\n const players = [];\n Object.keys(triggerStates).forEach(triggerName => {\n // this check is here in the event that an element is removed\n // twice (both on the host level and the component level)\n if (this._triggers[triggerName]) {\n const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);\n if (player) {\n players.push(player);\n }\n }\n });\n if (players.length) {\n this._engine.markElementAsRemoved(this.id, element, true, context);\n if (destroyAfterComplete) {\n optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));\n }\n return true;\n }\n }\n return false;\n }\n prepareLeaveAnimationListeners(element) {\n const listeners = this._elementListeners.get(element);\n const elementStates = this._engine.statesByElement.get(element);\n // if this statement fails then it means that the element was picked up\n // by an earlier flush (or there are no listeners at all to track the leave).\n if (listeners && elementStates) {\n const visitedTriggers = new Set();\n listeners.forEach(listener => {\n const triggerName = listener.name;\n if (visitedTriggers.has(triggerName))\n return;\n visitedTriggers.add(triggerName);\n const trigger = this._triggers[triggerName];\n const transition = trigger.fallbackTransition;\n const fromState = elementStates[triggerName] || DEFAULT_STATE_VALUE;\n const toState = new StateValue(VOID_VALUE);\n const player = new TransitionAnimationPlayer(this.id, triggerName, element);\n this._engine.totalQueuedPlayers++;\n this._queue.push({\n element,\n triggerName,\n transition,\n fromState,\n toState,\n player,\n isFallbackTransition: true\n });\n });\n }\n }\n removeNode(element, context) {\n const engine = this._engine;\n if (element.childElementCount) {\n this._signalRemovalForInnerTriggers(element, context);\n }\n // this means that a * => VOID animation was detected and kicked off\n if (this.triggerLeaveAnimation(element, context, true))\n return;\n // find the player that is animating and make sure that the\n // removal is delayed until that player has completed\n let containsPotentialParentTransition = false;\n if (engine.totalAnimations) {\n const currentPlayers = engine.players.length ? engine.playersByQueriedElement.get(element) : [];\n // when this `if statement` does not continue forward it means that\n // a previous animation query has selected the current element and\n // is animating it. In this situation want to continue forwards and\n // allow the element to be queued up for animation later.\n if (currentPlayers && currentPlayers.length) {\n containsPotentialParentTransition = true;\n }\n else {\n let parent = element;\n while (parent = parent.parentNode) {\n const triggers = engine.statesByElement.get(parent);\n if (triggers) {\n containsPotentialParentTransition = true;\n break;\n }\n }\n }\n }\n // at this stage we know that the element will either get removed\n // during flush or will be picked up by a parent query. Either way\n // we need to fire the listeners for this element when it DOES get\n // removed (once the query parent animation is done or after flush)\n this.prepareLeaveAnimationListeners(element);\n // whether or not a parent has an animation we need to delay the deferral of the leave\n // operation until we have more information (which we do after flush() has been called)\n if (containsPotentialParentTransition) {\n engine.markElementAsRemoved(this.id, element, false, context);\n }\n else {\n const removalFlag = element[REMOVAL_FLAG];\n if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {\n // we do this after the flush has occurred such\n // that the callbacks can be fired\n engine.afterFlush(() => this.clearElementCache(element));\n engine.destroyInnerAnimations(element);\n engine._onRemovalComplete(element, context);\n }\n }\n }\n insertNode(element, parent) {\n addClass(element, this._hostClassName);\n }\n drainQueuedTransitions(microtaskId) {\n const instructions = [];\n this._queue.forEach(entry => {\n const player = entry.player;\n if (player.destroyed)\n return;\n const element = entry.element;\n const listeners = this._elementListeners.get(element);\n if (listeners) {\n listeners.forEach((listener) => {\n if (listener.name == entry.triggerName) {\n const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);\n baseEvent['_data'] = microtaskId;\n listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);\n }\n });\n }\n if (player.markedForDestroy) {\n this._engine.afterFlush(() => {\n // now we can destroy the element properly since the event listeners have\n // been bound to the player\n player.destroy();\n });\n }\n else {\n instructions.push(entry);\n }\n });\n this._queue = [];\n return instructions.sort((a, b) => {\n // if depCount == 0 them move to front\n // otherwise if a contains b then move back\n const d0 = a.transition.ast.depCount;\n const d1 = b.transition.ast.depCount;\n if (d0 == 0 || d1 == 0) {\n return d0 - d1;\n }\n return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;\n });\n }\n destroy(context) {\n this.players.forEach(p => p.destroy());\n this._signalRemovalForInnerTriggers(this.hostElement, context);\n }\n elementContainsData(element) {\n let containsData = false;\n if (this._elementListeners.has(element))\n containsData = true;\n containsData =\n (this._queue.find(entry => entry.element === element) ? true : false) || containsData;\n return containsData;\n }\n}\nclass TransitionAnimationEngine {\n constructor(bodyNode, driver, _normalizer) {\n this.bodyNode = bodyNode;\n this.driver = driver;\n this._normalizer = _normalizer;\n this.players = [];\n this.newHostElements = new Map();\n this.playersByElement = new Map();\n this.playersByQueriedElement = new Map();\n this.statesByElement = new Map();\n this.disabledNodes = new Set();\n this.totalAnimations = 0;\n this.totalQueuedPlayers = 0;\n this._namespaceLookup = {};\n this._namespaceList = [];\n this._flushFns = [];\n this._whenQuietFns = [];\n this.namespacesByHostElement = new Map();\n this.collectedEnterElements = [];\n this.collectedLeaveElements = [];\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n }\n /** @internal */\n _onRemovalComplete(element, context) {\n this.onRemovalComplete(element, context);\n }\n get queuedPlayers() {\n const players = [];\n this._namespaceList.forEach(ns => {\n ns.players.forEach(player => {\n if (player.queued) {\n players.push(player);\n }\n });\n });\n return players;\n }\n createNamespace(namespaceId, hostElement) {\n const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);\n if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {\n this._balanceNamespaceList(ns, hostElement);\n }\n else {\n // defer this later until flush during when the host element has\n // been inserted so that we know exactly where to place it in\n // the namespace list\n this.newHostElements.set(hostElement, ns);\n // given that this host element is a part of the animation code, it\n // may or may not be inserted by a parent node that is of an\n // animation renderer type. If this happens then we can still have\n // access to this item when we query for :enter nodes. If the parent\n // is a renderer then the set data-structure will normalize the entry\n this.collectEnterElement(hostElement);\n }\n return this._namespaceLookup[namespaceId] = ns;\n }\n _balanceNamespaceList(ns, hostElement) {\n const limit = this._namespaceList.length - 1;\n if (limit >= 0) {\n let found = false;\n for (let i = limit; i >= 0; i--) {\n const nextNamespace = this._namespaceList[i];\n if (this.driver.containsElement(nextNamespace.hostElement, hostElement)) {\n this._namespaceList.splice(i + 1, 0, ns);\n found = true;\n break;\n }\n }\n if (!found) {\n this._namespaceList.splice(0, 0, ns);\n }\n }\n else {\n this._namespaceList.push(ns);\n }\n this.namespacesByHostElement.set(hostElement, ns);\n return ns;\n }\n register(namespaceId, hostElement) {\n let ns = this._namespaceLookup[namespaceId];\n if (!ns) {\n ns = this.createNamespace(namespaceId, hostElement);\n }\n return ns;\n }\n registerTrigger(namespaceId, name, trigger) {\n let ns = this._namespaceLookup[namespaceId];\n if (ns && ns.register(name, trigger)) {\n this.totalAnimations++;\n }\n }\n destroy(namespaceId, context) {\n if (!namespaceId)\n return;\n const ns = this._fetchNamespace(namespaceId);\n this.afterFlush(() => {\n this.namespacesByHostElement.delete(ns.hostElement);\n delete this._namespaceLookup[namespaceId];\n const index = this._namespaceList.indexOf(ns);\n if (index >= 0) {\n this._namespaceList.splice(index, 1);\n }\n });\n this.afterFlushAnimationsDone(() => ns.destroy(context));\n }\n _fetchNamespace(id) {\n return this._namespaceLookup[id];\n }\n fetchNamespacesByElement(element) {\n // normally there should only be one namespace per element, however\n // if @triggers are placed on both the component element and then\n // its host element (within the component code) then there will be\n // two namespaces returned. We use a set here to simply deduplicate\n // the namespaces in case (for the reason described above) there are multiple triggers\n const namespaces = new Set();\n const elementStates = this.statesByElement.get(element);\n if (elementStates) {\n const keys = Object.keys(elementStates);\n for (let i = 0; i < keys.length; i++) {\n const nsId = elementStates[keys[i]].namespaceId;\n if (nsId) {\n const ns = this._fetchNamespace(nsId);\n if (ns) {\n namespaces.add(ns);\n }\n }\n }\n }\n return namespaces;\n }\n trigger(namespaceId, element, name, value) {\n if (isElementNode(element)) {\n const ns = this._fetchNamespace(namespaceId);\n if (ns) {\n ns.trigger(element, name, value);\n return true;\n }\n }\n return false;\n }\n insertNode(namespaceId, element, parent, insertBefore) {\n if (!isElementNode(element))\n return;\n // special case for when an element is removed and reinserted (move operation)\n // when this occurs we do not want to use the element for deletion later\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n details.setForRemoval = false;\n details.setForMove = true;\n const index = this.collectedLeaveElements.indexOf(element);\n if (index >= 0) {\n this.collectedLeaveElements.splice(index, 1);\n }\n }\n // in the event that the namespaceId is blank then the caller\n // code does not contain any animation code in it, but it is\n // just being called so that the node is marked as being inserted\n if (namespaceId) {\n const ns = this._fetchNamespace(namespaceId);\n // This if-statement is a workaround for router issue #21947.\n // The router sometimes hits a race condition where while a route\n // is being instantiated a new navigation arrives, triggering leave\n // animation of DOM that has not been fully initialized, until this\n // is resolved, we need to handle the scenario when DOM is not in a\n // consistent state during the animation.\n if (ns) {\n ns.insertNode(element, parent);\n }\n }\n // only *directives and host elements are inserted before\n if (insertBefore) {\n this.collectEnterElement(element);\n }\n }\n collectEnterElement(element) {\n this.collectedEnterElements.push(element);\n }\n markElementAsDisabled(element, value) {\n if (value) {\n if (!this.disabledNodes.has(element)) {\n this.disabledNodes.add(element);\n addClass(element, DISABLED_CLASSNAME);\n }\n }\n else if (this.disabledNodes.has(element)) {\n this.disabledNodes.delete(element);\n removeClass(element, DISABLED_CLASSNAME);\n }\n }\n removeNode(namespaceId, element, isHostElement, context) {\n if (isElementNode(element)) {\n const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;\n if (ns) {\n ns.removeNode(element, context);\n }\n else {\n this.markElementAsRemoved(namespaceId, element, false, context);\n }\n if (isHostElement) {\n const hostNS = this.namespacesByHostElement.get(element);\n if (hostNS && hostNS.id !== namespaceId) {\n hostNS.removeNode(element, context);\n }\n }\n }\n else {\n this._onRemovalComplete(element, context);\n }\n }\n markElementAsRemoved(namespaceId, element, hasAnimation, context) {\n this.collectedLeaveElements.push(element);\n element[REMOVAL_FLAG] =\n { namespaceId, setForRemoval: context, hasAnimation, removedBeforeQueried: false };\n }\n listen(namespaceId, element, name, phase, callback) {\n if (isElementNode(element)) {\n return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);\n }\n return () => { };\n }\n _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {\n return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);\n }\n destroyInnerAnimations(containerElement) {\n let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);\n elements.forEach(element => this.destroyActiveAnimationsForElement(element));\n if (this.playersByQueriedElement.size == 0)\n return;\n elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);\n elements.forEach(element => this.finishActiveQueriedAnimationOnElement(element));\n }\n destroyActiveAnimationsForElement(element) {\n const players = this.playersByElement.get(element);\n if (players) {\n players.forEach(player => {\n // special case for when an element is set for destruction, but hasn't started.\n // in this situation we want to delay the destruction until the flush occurs\n // so that any event listeners attached to the player are triggered.\n if (player.queued) {\n player.markedForDestroy = true;\n }\n else {\n player.destroy();\n }\n });\n }\n }\n finishActiveQueriedAnimationOnElement(element) {\n const players = this.playersByQueriedElement.get(element);\n if (players) {\n players.forEach(player => player.finish());\n }\n }\n whenRenderingDone() {\n return new Promise(resolve => {\n if (this.players.length) {\n return optimizeGroupPlayer(this.players).onDone(() => resolve());\n }\n else {\n resolve();\n }\n });\n }\n processLeaveNode(element) {\n var _a;\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n // this will prevent it from removing it twice\n element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;\n if (details.namespaceId) {\n this.destroyInnerAnimations(element);\n const ns = this._fetchNamespace(details.namespaceId);\n if (ns) {\n ns.clearElementCache(element);\n }\n }\n this._onRemovalComplete(element, details.setForRemoval);\n }\n if ((_a = element.classList) === null || _a === void 0 ? void 0 : _a.contains(DISABLED_CLASSNAME)) {\n this.markElementAsDisabled(element, false);\n }\n this.driver.query(element, DISABLED_SELECTOR, true).forEach(node => {\n this.markElementAsDisabled(node, false);\n });\n }\n flush(microtaskId = -1) {\n let players = [];\n if (this.newHostElements.size) {\n this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));\n this.newHostElements.clear();\n }\n if (this.totalAnimations && this.collectedEnterElements.length) {\n for (let i = 0; i < this.collectedEnterElements.length; i++) {\n const elm = this.collectedEnterElements[i];\n addClass(elm, STAR_CLASSNAME);\n }\n }\n if (this._namespaceList.length &&\n (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {\n const cleanupFns = [];\n try {\n players = this._flushAnimations(cleanupFns, microtaskId);\n }\n finally {\n for (let i = 0; i < cleanupFns.length; i++) {\n cleanupFns[i]();\n }\n }\n }\n else {\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n this.processLeaveNode(element);\n }\n }\n this.totalQueuedPlayers = 0;\n this.collectedEnterElements.length = 0;\n this.collectedLeaveElements.length = 0;\n this._flushFns.forEach(fn => fn());\n this._flushFns = [];\n if (this._whenQuietFns.length) {\n // we move these over to a variable so that\n // if any new callbacks are registered in another\n // flush they do not populate the existing set\n const quietFns = this._whenQuietFns;\n this._whenQuietFns = [];\n if (players.length) {\n optimizeGroupPlayer(players).onDone(() => {\n quietFns.forEach(fn => fn());\n });\n }\n else {\n quietFns.forEach(fn => fn());\n }\n }\n }\n reportError(errors) {\n throw new Error(`Unable to process animations due to the following failed trigger transitions\\n ${errors.join('\\n')}`);\n }\n _flushAnimations(cleanupFns, microtaskId) {\n const subTimelines = new ElementInstructionMap();\n const skippedPlayers = [];\n const skippedPlayersMap = new Map();\n const queuedInstructions = [];\n const queriedElements = new Map();\n const allPreStyleElements = new Map();\n const allPostStyleElements = new Map();\n const disabledElementsSet = new Set();\n this.disabledNodes.forEach(node => {\n disabledElementsSet.add(node);\n const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);\n for (let i = 0; i < nodesThatAreDisabled.length; i++) {\n disabledElementsSet.add(nodesThatAreDisabled[i]);\n }\n });\n const bodyNode = this.bodyNode;\n const allTriggerElements = Array.from(this.statesByElement.keys());\n const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);\n // this must occur before the instructions are built below such that\n // the :enter queries match the elements (since the timeline queries\n // are fired during instruction building).\n const enterNodeMapIds = new Map();\n let i = 0;\n enterNodeMap.forEach((nodes, root) => {\n const className = ENTER_CLASSNAME + i++;\n enterNodeMapIds.set(root, className);\n nodes.forEach(node => addClass(node, className));\n });\n const allLeaveNodes = [];\n const mergedLeaveNodes = new Set();\n const leaveNodesWithoutAnimations = new Set();\n for (let i = 0; i < this.collectedLeaveElements.length; i++) {\n const element = this.collectedLeaveElements[i];\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval) {\n allLeaveNodes.push(element);\n mergedLeaveNodes.add(element);\n if (details.hasAnimation) {\n this.driver.query(element, STAR_SELECTOR, true).forEach(elm => mergedLeaveNodes.add(elm));\n }\n else {\n leaveNodesWithoutAnimations.add(element);\n }\n }\n }\n const leaveNodeMapIds = new Map();\n const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));\n leaveNodeMap.forEach((nodes, root) => {\n const className = LEAVE_CLASSNAME + i++;\n leaveNodeMapIds.set(root, className);\n nodes.forEach(node => addClass(node, className));\n });\n cleanupFns.push(() => {\n enterNodeMap.forEach((nodes, root) => {\n const className = enterNodeMapIds.get(root);\n nodes.forEach(node => removeClass(node, className));\n });\n leaveNodeMap.forEach((nodes, root) => {\n const className = leaveNodeMapIds.get(root);\n nodes.forEach(node => removeClass(node, className));\n });\n allLeaveNodes.forEach(element => {\n this.processLeaveNode(element);\n });\n });\n const allPlayers = [];\n const erroneousTransitions = [];\n for (let i = this._namespaceList.length - 1; i >= 0; i--) {\n const ns = this._namespaceList[i];\n ns.drainQueuedTransitions(microtaskId).forEach(entry => {\n const player = entry.player;\n const element = entry.element;\n allPlayers.push(player);\n if (this.collectedEnterElements.length) {\n const details = element[REMOVAL_FLAG];\n // move animations are currently not supported...\n if (details && details.setForMove) {\n player.destroy();\n return;\n }\n }\n const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);\n const leaveClassName = leaveNodeMapIds.get(element);\n const enterClassName = enterNodeMapIds.get(element);\n const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);\n if (instruction.errors && instruction.errors.length) {\n erroneousTransitions.push(instruction);\n return;\n }\n // even though the element may not be in the DOM, it may still\n // be added at a later point (due to the mechanics of content\n // projection and/or dynamic component insertion) therefore it's\n // important to still style the element.\n if (nodeIsOrphaned) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // if an unmatched transition is queued and ready to go\n // then it SHOULD NOT render an animation and cancel the\n // previously running animations.\n if (entry.isFallbackTransition) {\n player.onStart(() => eraseStyles(element, instruction.fromStyles));\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n skippedPlayers.push(player);\n return;\n }\n // this means that if a parent animation uses this animation as a sub-trigger\n // then it will instruct the timeline builder not to add a player delay, but\n // instead stretch the first keyframe gap until the animation starts. This is\n // important in order to prevent extra initialization styles from being\n // required by the user for the animation.\n const timelines = [];\n instruction.timelines.forEach(tl => {\n tl.stretchStartingKeyframe = true;\n if (!this.disabledNodes.has(tl.element)) {\n timelines.push(tl);\n }\n });\n instruction.timelines = timelines;\n subTimelines.append(element, instruction.timelines);\n const tuple = { instruction, player, element };\n queuedInstructions.push(tuple);\n instruction.queriedElements.forEach(element => getOrSetAsInMap(queriedElements, element, []).push(player));\n instruction.preStyleProps.forEach((stringMap, element) => {\n const props = Object.keys(stringMap);\n if (props.length) {\n let setVal = allPreStyleElements.get(element);\n if (!setVal) {\n allPreStyleElements.set(element, setVal = new Set());\n }\n props.forEach(prop => setVal.add(prop));\n }\n });\n instruction.postStyleProps.forEach((stringMap, element) => {\n const props = Object.keys(stringMap);\n let setVal = allPostStyleElements.get(element);\n if (!setVal) {\n allPostStyleElements.set(element, setVal = new Set());\n }\n props.forEach(prop => setVal.add(prop));\n });\n });\n }\n if (erroneousTransitions.length) {\n const errors = [];\n erroneousTransitions.forEach(instruction => {\n errors.push(`@${instruction.triggerName} has failed due to:\\n`);\n instruction.errors.forEach(error => errors.push(`- ${error}\\n`));\n });\n allPlayers.forEach(player => player.destroy());\n this.reportError(errors);\n }\n const allPreviousPlayersMap = new Map();\n // this map tells us which element in the DOM tree is contained by\n // which animation. Further down this map will get populated once\n // the players are built and in doing so we can use it to efficiently\n // figure out if a sub player is skipped due to a parent player having priority.\n const animationElementMap = new Map();\n queuedInstructions.forEach(entry => {\n const element = entry.element;\n if (subTimelines.has(element)) {\n animationElementMap.set(element, element);\n this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);\n }\n });\n skippedPlayers.forEach(player => {\n const element = player.element;\n const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);\n previousPlayers.forEach(prevPlayer => {\n getOrSetAsInMap(allPreviousPlayersMap, element, []).push(prevPlayer);\n prevPlayer.destroy();\n });\n });\n // this is a special case for nodes that will be removed either by\n // having their own leave animations or by being queried in a container\n // that will be removed once a parent animation is complete. The idea\n // here is that * styles must be identical to ! styles because of\n // backwards compatibility (* is also filled in by default in many places).\n // Otherwise * styles will return an empty value or \"auto\" since the element\n // passed to getComputedStyle will not be visible (since * === destination)\n const replaceNodes = allLeaveNodes.filter(node => {\n return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);\n });\n // POST STAGE: fill the * styles\n const postStylesMap = new Map();\n const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);\n allLeaveQueriedNodes.forEach(node => {\n if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {\n replaceNodes.push(node);\n }\n });\n // PRE STAGE: fill the ! styles\n const preStylesMap = new Map();\n enterNodeMap.forEach((nodes, root) => {\n cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, ɵPRE_STYLE);\n });\n replaceNodes.forEach(node => {\n const post = postStylesMap.get(node);\n const pre = preStylesMap.get(node);\n postStylesMap.set(node, Object.assign(Object.assign({}, post), pre));\n });\n const rootPlayers = [];\n const subPlayers = [];\n const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};\n queuedInstructions.forEach(entry => {\n const { element, player, instruction } = entry;\n // this means that it was never consumed by a parent animation which\n // means that it is independent and therefore should be set for animation\n if (subTimelines.has(element)) {\n if (disabledElementsSet.has(element)) {\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n player.disabled = true;\n player.overrideTotalTime(instruction.totalTime);\n skippedPlayers.push(player);\n return;\n }\n // this will flow up the DOM and query the map to figure out\n // if a parent animation has priority over it. In the situation\n // that a parent is detected then it will cancel the loop. If\n // nothing is detected, or it takes a few hops to find a parent,\n // then it will fill in the missing nodes and signal them as having\n // a detected parent (or a NO_PARENT value via a special constant).\n let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;\n if (animationElementMap.size > 1) {\n let elm = element;\n const parentsToAdd = [];\n while (elm = elm.parentNode) {\n const detectedParent = animationElementMap.get(elm);\n if (detectedParent) {\n parentWithAnimation = detectedParent;\n break;\n }\n parentsToAdd.push(elm);\n }\n parentsToAdd.forEach(parent => animationElementMap.set(parent, parentWithAnimation));\n }\n const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);\n player.setRealPlayer(innerPlayer);\n if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {\n rootPlayers.push(player);\n }\n else {\n const parentPlayers = this.playersByElement.get(parentWithAnimation);\n if (parentPlayers && parentPlayers.length) {\n player.parentPlayer = optimizeGroupPlayer(parentPlayers);\n }\n skippedPlayers.push(player);\n }\n }\n else {\n eraseStyles(element, instruction.fromStyles);\n player.onDestroy(() => setStyles(element, instruction.toStyles));\n // there still might be a ancestor player animating this\n // element therefore we will still add it as a sub player\n // even if its animation may be disabled\n subPlayers.push(player);\n if (disabledElementsSet.has(element)) {\n skippedPlayers.push(player);\n }\n }\n });\n // find all of the sub players' corresponding inner animation players\n subPlayers.forEach(player => {\n // even if no players are found for a sub animation it\n // will still complete itself after the next tick since it's Noop\n const playersForElement = skippedPlayersMap.get(player.element);\n if (playersForElement && playersForElement.length) {\n const innerPlayer = optimizeGroupPlayer(playersForElement);\n player.setRealPlayer(innerPlayer);\n }\n });\n // the reason why we don't actually play the animation is\n // because all that a skipped player is designed to do is to\n // fire the start/done transition callback events\n skippedPlayers.forEach(player => {\n if (player.parentPlayer) {\n player.syncPlayerEvents(player.parentPlayer);\n }\n else {\n player.destroy();\n }\n });\n // run through all of the queued removals and see if they\n // were picked up by a query. If not then perform the removal\n // operation right away unless a parent animation is ongoing.\n for (let i = 0; i < allLeaveNodes.length; i++) {\n const element = allLeaveNodes[i];\n const details = element[REMOVAL_FLAG];\n removeClass(element, LEAVE_CLASSNAME);\n // this means the element has a removal animation that is being\n // taken care of and therefore the inner elements will hang around\n // until that animation is over (or the parent queried animation)\n if (details && details.hasAnimation)\n continue;\n let players = [];\n // if this element is queried or if it contains queried children\n // then we want for the element not to be removed from the page\n // until the queried animations have finished\n if (queriedElements.size) {\n let queriedPlayerResults = queriedElements.get(element);\n if (queriedPlayerResults && queriedPlayerResults.length) {\n players.push(...queriedPlayerResults);\n }\n let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);\n for (let j = 0; j < queriedInnerElements.length; j++) {\n let queriedPlayers = queriedElements.get(queriedInnerElements[j]);\n if (queriedPlayers && queriedPlayers.length) {\n players.push(...queriedPlayers);\n }\n }\n }\n const activePlayers = players.filter(p => !p.destroyed);\n if (activePlayers.length) {\n removeNodesAfterAnimationDone(this, element, activePlayers);\n }\n else {\n this.processLeaveNode(element);\n }\n }\n // this is required so the cleanup method doesn't remove them\n allLeaveNodes.length = 0;\n rootPlayers.forEach(player => {\n this.players.push(player);\n player.onDone(() => {\n player.destroy();\n const index = this.players.indexOf(player);\n this.players.splice(index, 1);\n });\n player.play();\n });\n return rootPlayers;\n }\n elementContainsData(namespaceId, element) {\n let containsData = false;\n const details = element[REMOVAL_FLAG];\n if (details && details.setForRemoval)\n containsData = true;\n if (this.playersByElement.has(element))\n containsData = true;\n if (this.playersByQueriedElement.has(element))\n containsData = true;\n if (this.statesByElement.has(element))\n containsData = true;\n return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;\n }\n afterFlush(callback) {\n this._flushFns.push(callback);\n }\n afterFlushAnimationsDone(callback) {\n this._whenQuietFns.push(callback);\n }\n _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {\n let players = [];\n if (isQueriedElement) {\n const queriedElementPlayers = this.playersByQueriedElement.get(element);\n if (queriedElementPlayers) {\n players = queriedElementPlayers;\n }\n }\n else {\n const elementPlayers = this.playersByElement.get(element);\n if (elementPlayers) {\n const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;\n elementPlayers.forEach(player => {\n if (player.queued)\n return;\n if (!isRemovalAnimation && player.triggerName != triggerName)\n return;\n players.push(player);\n });\n }\n }\n if (namespaceId || triggerName) {\n players = players.filter(player => {\n if (namespaceId && namespaceId != player.namespaceId)\n return false;\n if (triggerName && triggerName != player.triggerName)\n return false;\n return true;\n });\n }\n return players;\n }\n _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // when a removal animation occurs, ALL previous players are collected\n // and destroyed (even if they are outside of the current namespace)\n const targetNameSpaceId = instruction.isRemovalTransition ? undefined : namespaceId;\n const targetTriggerName = instruction.isRemovalTransition ? undefined : triggerName;\n for (const timelineInstruction of instruction.timelines) {\n const element = timelineInstruction.element;\n const isQueriedElement = element !== rootElement;\n const players = getOrSetAsInMap(allPreviousPlayersMap, element, []);\n const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);\n previousPlayers.forEach(player => {\n const realPlayer = player.getRealPlayer();\n if (realPlayer.beforeDestroy) {\n realPlayer.beforeDestroy();\n }\n player.destroy();\n players.push(player);\n });\n }\n // this needs to be done so that the PRE/POST styles can be\n // computed properly without interfering with the previous animation\n eraseStyles(rootElement, instruction.fromStyles);\n }\n _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {\n const triggerName = instruction.triggerName;\n const rootElement = instruction.element;\n // we first run this so that the previous animation player\n // data can be passed into the successive animation players\n const allQueriedPlayers = [];\n const allConsumedElements = new Set();\n const allSubElements = new Set();\n const allNewPlayers = instruction.timelines.map(timelineInstruction => {\n const element = timelineInstruction.element;\n allConsumedElements.add(element);\n // FIXME (matsko): make sure to-be-removed animations are removed properly\n const details = element[REMOVAL_FLAG];\n if (details && details.removedBeforeQueried)\n return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);\n const isQueriedElement = element !== rootElement;\n const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY)\n .map(p => p.getRealPlayer()))\n .filter(p => {\n // the `element` is not apart of the AnimationPlayer definition, but\n // Mock/WebAnimations\n // use the element within their implementation. This will be added in Angular5 to\n // AnimationPlayer\n const pp = p;\n return pp.element ? pp.element === element : false;\n });\n const preStyles = preStylesMap.get(element);\n const postStyles = postStylesMap.get(element);\n const keyframes = normalizeKeyframes(this.driver, this._normalizer, element, timelineInstruction.keyframes, preStyles, postStyles);\n const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);\n // this means that this particular player belongs to a sub trigger. It is\n // important that we match this player up with the corresponding (@trigger.listener)\n if (timelineInstruction.subTimeline && skippedPlayersMap) {\n allSubElements.add(element);\n }\n if (isQueriedElement) {\n const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);\n wrappedPlayer.setRealPlayer(player);\n allQueriedPlayers.push(wrappedPlayer);\n }\n return player;\n });\n allQueriedPlayers.forEach(player => {\n getOrSetAsInMap(this.playersByQueriedElement, player.element, []).push(player);\n player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));\n });\n allConsumedElements.forEach(element => addClass(element, NG_ANIMATING_CLASSNAME));\n const player = optimizeGroupPlayer(allNewPlayers);\n player.onDestroy(() => {\n allConsumedElements.forEach(element => removeClass(element, NG_ANIMATING_CLASSNAME));\n setStyles(rootElement, instruction.toStyles);\n });\n // this basically makes all of the callbacks for sub element animations\n // be dependent on the upper players for when they finish\n allSubElements.forEach(element => {\n getOrSetAsInMap(skippedPlayersMap, element, []).push(player);\n });\n return player;\n }\n _buildPlayer(instruction, keyframes, previousPlayers) {\n if (keyframes.length > 0) {\n return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);\n }\n // special case for when an empty transition|definition is provided\n // ... there is no point in rendering an empty animation\n return new NoopAnimationPlayer(instruction.duration, instruction.delay);\n }\n}\nclass TransitionAnimationPlayer {\n constructor(namespaceId, triggerName, element) {\n this.namespaceId = namespaceId;\n this.triggerName = triggerName;\n this.element = element;\n this._player = new NoopAnimationPlayer();\n this._containsRealPlayer = false;\n this._queuedCallbacks = {};\n this.destroyed = false;\n this.markedForDestroy = false;\n this.disabled = false;\n this.queued = true;\n this.totalTime = 0;\n }\n setRealPlayer(player) {\n if (this._containsRealPlayer)\n return;\n this._player = player;\n Object.keys(this._queuedCallbacks).forEach(phase => {\n this._queuedCallbacks[phase].forEach(callback => listenOnPlayer(player, phase, undefined, callback));\n });\n this._queuedCallbacks = {};\n this._containsRealPlayer = true;\n this.overrideTotalTime(player.totalTime);\n this.queued = false;\n }\n getRealPlayer() {\n return this._player;\n }\n overrideTotalTime(totalTime) {\n this.totalTime = totalTime;\n }\n syncPlayerEvents(player) {\n const p = this._player;\n if (p.triggerCallback) {\n player.onStart(() => p.triggerCallback('start'));\n }\n player.onDone(() => this.finish());\n player.onDestroy(() => this.destroy());\n }\n _queueEvent(name, callback) {\n getOrSetAsInMap(this._queuedCallbacks, name, []).push(callback);\n }\n onDone(fn) {\n if (this.queued) {\n this._queueEvent('done', fn);\n }\n this._player.onDone(fn);\n }\n onStart(fn) {\n if (this.queued) {\n this._queueEvent('start', fn);\n }\n this._player.onStart(fn);\n }\n onDestroy(fn) {\n if (this.queued) {\n this._queueEvent('destroy', fn);\n }\n this._player.onDestroy(fn);\n }\n init() {\n this._player.init();\n }\n hasStarted() {\n return this.queued ? false : this._player.hasStarted();\n }\n play() {\n !this.queued && this._player.play();\n }\n pause() {\n !this.queued && this._player.pause();\n }\n restart() {\n !this.queued && this._player.restart();\n }\n finish() {\n this._player.finish();\n }\n destroy() {\n this.destroyed = true;\n this._player.destroy();\n }\n reset() {\n !this.queued && this._player.reset();\n }\n setPosition(p) {\n if (!this.queued) {\n this._player.setPosition(p);\n }\n }\n getPosition() {\n return this.queued ? 0 : this._player.getPosition();\n }\n /** @internal */\n triggerCallback(phaseName) {\n const p = this._player;\n if (p.triggerCallback) {\n p.triggerCallback(phaseName);\n }\n }\n}\nfunction deleteOrUnsetInMap(map, key, value) {\n let currentValues;\n if (map instanceof Map) {\n currentValues = map.get(key);\n if (currentValues) {\n if (currentValues.length) {\n const index = currentValues.indexOf(value);\n currentValues.splice(index, 1);\n }\n if (currentValues.length == 0) {\n map.delete(key);\n }\n }\n }\n else {\n currentValues = map[key];\n if (currentValues) {\n if (currentValues.length) {\n const index = currentValues.indexOf(value);\n currentValues.splice(index, 1);\n }\n if (currentValues.length == 0) {\n delete map[key];\n }\n }\n }\n return currentValues;\n}\nfunction normalizeTriggerValue(value) {\n // we use `!= null` here because it's the most simple\n // way to test against a \"falsy\" value without mixing\n // in empty strings or a zero value. DO NOT OPTIMIZE.\n return value != null ? value : null;\n}\nfunction isElementNode(node) {\n return node && node['nodeType'] === 1;\n}\nfunction isTriggerEventValid(eventName) {\n return eventName == 'start' || eventName == 'done';\n}\nfunction cloakElement(element, value) {\n const oldValue = element.style.display;\n element.style.display = value != null ? value : 'none';\n return oldValue;\n}\nfunction cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {\n const cloakVals = [];\n elements.forEach(element => cloakVals.push(cloakElement(element)));\n const failedElements = [];\n elementPropsMap.forEach((props, element) => {\n const styles = {};\n props.forEach(prop => {\n const value = styles[prop] = driver.computeStyle(element, prop, defaultStyle);\n // there is no easy way to detect this because a sub element could be removed\n // by a parent animation element being detached.\n if (!value || value.length == 0) {\n element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;\n failedElements.push(element);\n }\n });\n valuesMap.set(element, styles);\n });\n // we use a index variable here since Set.forEach(a, i) does not return\n // an index value for the closure (but instead just the value)\n let i = 0;\n elements.forEach(element => cloakElement(element, cloakVals[i++]));\n return failedElements;\n}\n/*\nSince the Angular renderer code will return a collection of inserted\nnodes in all areas of a DOM tree, it's up to this algorithm to figure\nout which nodes are roots for each animation @trigger.\n\nBy placing each inserted node into a Set and traversing upwards, it\nis possible to find the @trigger elements and well any direct *star\ninsertion nodes, if a @trigger root is found then the enter element\nis placed into the Map[@trigger] spot.\n */\nfunction buildRootMap(roots, nodes) {\n const rootMap = new Map();\n roots.forEach(root => rootMap.set(root, []));\n if (nodes.length == 0)\n return rootMap;\n const NULL_NODE = 1;\n const nodeSet = new Set(nodes);\n const localRootMap = new Map();\n function getRoot(node) {\n if (!node)\n return NULL_NODE;\n let root = localRootMap.get(node);\n if (root)\n return root;\n const parent = node.parentNode;\n if (rootMap.has(parent)) { // ngIf inside @trigger\n root = parent;\n }\n else if (nodeSet.has(parent)) { // ngIf inside ngIf\n root = NULL_NODE;\n }\n else { // recurse upwards\n root = getRoot(parent);\n }\n localRootMap.set(node, root);\n return root;\n }\n nodes.forEach(node => {\n const root = getRoot(node);\n if (root !== NULL_NODE) {\n rootMap.get(root).push(node);\n }\n });\n return rootMap;\n}\nfunction addClass(element, className) {\n var _a;\n (_a = element.classList) === null || _a === void 0 ? void 0 : _a.add(className);\n}\nfunction removeClass(element, className) {\n var _a;\n (_a = element.classList) === null || _a === void 0 ? void 0 : _a.remove(className);\n}\nfunction removeNodesAfterAnimationDone(engine, element, players) {\n optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));\n}\nfunction flattenGroupPlayers(players) {\n const finalPlayers = [];\n _flattenGroupPlayersRecur(players, finalPlayers);\n return finalPlayers;\n}\nfunction _flattenGroupPlayersRecur(players, finalPlayers) {\n for (let i = 0; i < players.length; i++) {\n const player = players[i];\n if (player instanceof ɵAnimationGroupPlayer) {\n _flattenGroupPlayersRecur(player.players, finalPlayers);\n }\n else {\n finalPlayers.push(player);\n }\n }\n}\nfunction objEquals(a, b) {\n const k1 = Object.keys(a);\n const k2 = Object.keys(b);\n if (k1.length != k2.length)\n return false;\n for (let i = 0; i < k1.length; i++) {\n const prop = k1[i];\n if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])\n return false;\n }\n return true;\n}\nfunction replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {\n const postEntry = allPostStyleElements.get(element);\n if (!postEntry)\n return false;\n let preEntry = allPreStyleElements.get(element);\n if (preEntry) {\n postEntry.forEach(data => preEntry.add(data));\n }\n else {\n allPreStyleElements.set(element, postEntry);\n }\n allPostStyleElements.delete(element);\n return true;\n}\n\nclass AnimationEngine {\n constructor(bodyNode, _driver, _normalizer) {\n this.bodyNode = bodyNode;\n this._driver = _driver;\n this._normalizer = _normalizer;\n this._triggerCache = {};\n // this method is designed to be overridden by the code that uses this engine\n this.onRemovalComplete = (element, context) => { };\n this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, _normalizer);\n this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, _normalizer);\n this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);\n }\n registerTrigger(componentId, namespaceId, hostElement, name, metadata) {\n const cacheKey = componentId + '-' + name;\n let trigger = this._triggerCache[cacheKey];\n if (!trigger) {\n const errors = [];\n const ast = buildAnimationAst(this._driver, metadata, errors);\n if (errors.length) {\n throw new Error(`The animation trigger \"${name}\" has failed to build due to the following errors:\\n - ${errors.join('\\n - ')}`);\n }\n trigger = buildTrigger(name, ast, this._normalizer);\n this._triggerCache[cacheKey] = trigger;\n }\n this._transitionEngine.registerTrigger(namespaceId, name, trigger);\n }\n register(namespaceId, hostElement) {\n this._transitionEngine.register(namespaceId, hostElement);\n }\n destroy(namespaceId, context) {\n this._transitionEngine.destroy(namespaceId, context);\n }\n onInsert(namespaceId, element, parent, insertBefore) {\n this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);\n }\n onRemove(namespaceId, element, context, isHostElement) {\n this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);\n }\n disableAnimations(element, disable) {\n this._transitionEngine.markElementAsDisabled(element, disable);\n }\n process(namespaceId, element, property, value) {\n if (property.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(property);\n const args = value;\n this._timelineEngine.command(id, element, action, args);\n }\n else {\n this._transitionEngine.trigger(namespaceId, element, property, value);\n }\n }\n listen(namespaceId, element, eventName, eventPhase, callback) {\n // @@listen\n if (eventName.charAt(0) == '@') {\n const [id, action] = parseTimelineCommand(eventName);\n return this._timelineEngine.listen(id, element, action, callback);\n }\n return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);\n }\n flush(microtaskId = -1) {\n this._transitionEngine.flush(microtaskId);\n }\n get players() {\n return this._transitionEngine.players\n .concat(this._timelineEngine.players);\n }\n whenRenderingDone() {\n return this._transitionEngine.whenRenderingDone();\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are\n * detected.\n *\n * In CSS there exist properties that cannot be animated within a keyframe animation\n * (whether it be via CSS keyframes or web-animations) and the animation implementation\n * will ignore them. This function is designed to detect those special cased styles and\n * return a container that will be executed at the start and end of the animation.\n *\n * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`\n */\nfunction packageNonAnimatableStyles(element, styles) {\n let startStyles = null;\n let endStyles = null;\n if (Array.isArray(styles) && styles.length) {\n startStyles = filterNonAnimatableStyles(styles[0]);\n if (styles.length > 1) {\n endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);\n }\n }\n else if (styles) {\n startStyles = filterNonAnimatableStyles(styles);\n }\n return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :\n null;\n}\n/**\n * Designed to be executed during a keyframe-based animation to apply any special-cased styles.\n *\n * When started (when the `start()` method is run) then the provided `startStyles`\n * will be applied. When finished (when the `finish()` method is called) the\n * `endStyles` will be applied as well any any starting styles. Finally when\n * `destroy()` is called then all styles will be removed.\n */\nclass SpecialCasedStyles {\n constructor(_element, _startStyles, _endStyles) {\n this._element = _element;\n this._startStyles = _startStyles;\n this._endStyles = _endStyles;\n this._state = 0 /* Pending */;\n let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);\n if (!initialStyles) {\n SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = {});\n }\n this._initialStyles = initialStyles;\n }\n start() {\n if (this._state < 1 /* Started */) {\n if (this._startStyles) {\n setStyles(this._element, this._startStyles, this._initialStyles);\n }\n this._state = 1 /* Started */;\n }\n }\n finish() {\n this.start();\n if (this._state < 2 /* Finished */) {\n setStyles(this._element, this._initialStyles);\n if (this._endStyles) {\n setStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n this._state = 1 /* Started */;\n }\n }\n destroy() {\n this.finish();\n if (this._state < 3 /* Destroyed */) {\n SpecialCasedStyles.initialStylesByElement.delete(this._element);\n if (this._startStyles) {\n eraseStyles(this._element, this._startStyles);\n this._endStyles = null;\n }\n if (this._endStyles) {\n eraseStyles(this._element, this._endStyles);\n this._endStyles = null;\n }\n setStyles(this._element, this._initialStyles);\n this._state = 3 /* Destroyed */;\n }\n }\n}\nSpecialCasedStyles.initialStylesByElement = ( /* @__PURE__ */new WeakMap());\nfunction filterNonAnimatableStyles(styles) {\n let result = null;\n const props = Object.keys(styles);\n for (let i = 0; i < props.length; i++) {\n const prop = props[i];\n if (isNonAnimatableStyle(prop)) {\n result = result || {};\n result[prop] = styles[prop];\n }\n }\n return result;\n}\nfunction isNonAnimatableStyle(prop) {\n return prop === 'display' || prop === 'position';\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;\nconst ANIMATION_PROP = 'animation';\nconst ANIMATIONEND_EVENT = 'animationend';\nconst ONE_SECOND = 1000;\nclass ElementAnimationStyleHandler {\n constructor(_element, _name, _duration, _delay, _easing, _fillMode, _onDoneFn) {\n this._element = _element;\n this._name = _name;\n this._duration = _duration;\n this._delay = _delay;\n this._easing = _easing;\n this._fillMode = _fillMode;\n this._onDoneFn = _onDoneFn;\n this._finished = false;\n this._destroyed = false;\n this._startTime = 0;\n this._position = 0;\n this._eventFn = (e) => this._handleCallback(e);\n }\n apply() {\n applyKeyframeAnimation(this._element, `${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`);\n addRemoveAnimationEvent(this._element, this._eventFn, false);\n this._startTime = Date.now();\n }\n pause() {\n playPauseAnimation(this._element, this._name, 'paused');\n }\n resume() {\n playPauseAnimation(this._element, this._name, 'running');\n }\n setPosition(position) {\n const index = findIndexForAnimation(this._element, this._name);\n this._position = position * this._duration;\n setAnimationStyle(this._element, 'Delay', `-${this._position}ms`, index);\n }\n getPosition() {\n return this._position;\n }\n _handleCallback(event) {\n const timestamp = event._ngTestManualTimestamp || Date.now();\n const elapsedTime = parseFloat(event.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES)) * ONE_SECOND;\n if (event.animationName == this._name &&\n Math.max(timestamp - this._startTime, 0) >= this._delay && elapsedTime >= this._duration) {\n this.finish();\n }\n }\n finish() {\n if (this._finished)\n return;\n this._finished = true;\n this._onDoneFn();\n addRemoveAnimationEvent(this._element, this._eventFn, true);\n }\n destroy() {\n if (this._destroyed)\n return;\n this._destroyed = true;\n this.finish();\n removeKeyframeAnimation(this._element, this._name);\n }\n}\nfunction playPauseAnimation(element, name, status) {\n const index = findIndexForAnimation(element, name);\n setAnimationStyle(element, 'PlayState', status, index);\n}\nfunction applyKeyframeAnimation(element, value) {\n const anim = getAnimationStyle(element, '').trim();\n let index = 0;\n if (anim.length) {\n index = countChars(anim, ',') + 1;\n value = `${anim}, ${value}`;\n }\n setAnimationStyle(element, '', value);\n return index;\n}\nfunction removeKeyframeAnimation(element, name) {\n const anim = getAnimationStyle(element, '');\n const tokens = anim.split(',');\n const index = findMatchingTokenIndex(tokens, name);\n if (index >= 0) {\n tokens.splice(index, 1);\n const newValue = tokens.join(',');\n setAnimationStyle(element, '', newValue);\n }\n}\nfunction findIndexForAnimation(element, value) {\n const anim = getAnimationStyle(element, '');\n if (anim.indexOf(',') > 0) {\n const tokens = anim.split(',');\n return findMatchingTokenIndex(tokens, value);\n }\n return findMatchingTokenIndex([anim], value);\n}\nfunction findMatchingTokenIndex(tokens, searchToken) {\n for (let i = 0; i < tokens.length; i++) {\n if (tokens[i].indexOf(searchToken) >= 0) {\n return i;\n }\n }\n return -1;\n}\nfunction addRemoveAnimationEvent(element, fn, doRemove) {\n doRemove ? element.removeEventListener(ANIMATIONEND_EVENT, fn) :\n element.addEventListener(ANIMATIONEND_EVENT, fn);\n}\nfunction setAnimationStyle(element, name, value, index) {\n const prop = ANIMATION_PROP + name;\n if (index != null) {\n const oldValue = element.style[prop];\n if (oldValue.length) {\n const tokens = oldValue.split(',');\n tokens[index] = value;\n value = tokens.join(',');\n }\n }\n element.style[prop] = value;\n}\nfunction getAnimationStyle(element, name) {\n return element.style[ANIMATION_PROP + name] || '';\n}\nfunction countChars(value, char) {\n let count = 0;\n for (let i = 0; i < value.length; i++) {\n const c = value.charAt(i);\n if (c === char)\n count++;\n }\n return count;\n}\n\nconst DEFAULT_FILL_MODE = 'forwards';\nconst DEFAULT_EASING = 'linear';\nclass CssKeyframesPlayer {\n constructor(element, keyframes, animationName, _duration, _delay, easing, _finalStyles, _specialStyles) {\n this.element = element;\n this.keyframes = keyframes;\n this.animationName = animationName;\n this._duration = _duration;\n this._delay = _delay;\n this._finalStyles = _finalStyles;\n this._specialStyles = _specialStyles;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this.currentSnapshot = {};\n this._state = 0;\n this.easing = easing || DEFAULT_EASING;\n this.totalTime = _duration + _delay;\n this._buildStyler();\n }\n onStart(fn) {\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n destroy() {\n this.init();\n if (this._state >= 4 /* DESTROYED */)\n return;\n this._state = 4 /* DESTROYED */;\n this._styler.destroy();\n this._flushStartFns();\n this._flushDoneFns();\n if (this._specialStyles) {\n this._specialStyles.destroy();\n }\n this._onDestroyFns.forEach(fn => fn());\n this._onDestroyFns = [];\n }\n _flushDoneFns() {\n this._onDoneFns.forEach(fn => fn());\n this._onDoneFns = [];\n }\n _flushStartFns() {\n this._onStartFns.forEach(fn => fn());\n this._onStartFns = [];\n }\n finish() {\n this.init();\n if (this._state >= 3 /* FINISHED */)\n return;\n this._state = 3 /* FINISHED */;\n this._styler.finish();\n this._flushStartFns();\n if (this._specialStyles) {\n this._specialStyles.finish();\n }\n this._flushDoneFns();\n }\n setPosition(value) {\n this._styler.setPosition(value);\n }\n getPosition() {\n return this._styler.getPosition();\n }\n hasStarted() {\n return this._state >= 2 /* STARTED */;\n }\n init() {\n if (this._state >= 1 /* INITIALIZED */)\n return;\n this._state = 1 /* INITIALIZED */;\n const elm = this.element;\n this._styler.apply();\n if (this._delay) {\n this._styler.pause();\n }\n }\n play() {\n this.init();\n if (!this.hasStarted()) {\n this._flushStartFns();\n this._state = 2 /* STARTED */;\n if (this._specialStyles) {\n this._specialStyles.start();\n }\n }\n this._styler.resume();\n }\n pause() {\n this.init();\n this._styler.pause();\n }\n restart() {\n this.reset();\n this.play();\n }\n reset() {\n this._state = 0 /* RESET */;\n this._styler.destroy();\n this._buildStyler();\n this._styler.apply();\n }\n _buildStyler() {\n this._styler = new ElementAnimationStyleHandler(this.element, this.animationName, this._duration, this._delay, this.easing, DEFAULT_FILL_MODE, () => this.finish());\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach(fn => fn());\n methods.length = 0;\n }\n beforeDestroy() {\n this.init();\n const styles = {};\n if (this.hasStarted()) {\n const finished = this._state >= 3 /* FINISHED */;\n Object.keys(this._finalStyles).forEach(prop => {\n if (prop != 'offset') {\n styles[prop] = finished ? this._finalStyles[prop] : computeStyle(this.element, prop);\n }\n });\n }\n this.currentSnapshot = styles;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass DirectStylePlayer extends NoopAnimationPlayer {\n constructor(element, styles) {\n super();\n this.element = element;\n this._startingStyles = {};\n this.__initialized = false;\n this._styles = hypenatePropsObject(styles);\n }\n init() {\n if (this.__initialized || !this._startingStyles)\n return;\n this.__initialized = true;\n Object.keys(this._styles).forEach(prop => {\n this._startingStyles[prop] = this.element.style[prop];\n });\n super.init();\n }\n play() {\n if (!this._startingStyles)\n return;\n this.init();\n Object.keys(this._styles)\n .forEach(prop => this.element.style.setProperty(prop, this._styles[prop]));\n super.play();\n }\n destroy() {\n if (!this._startingStyles)\n return;\n Object.keys(this._startingStyles).forEach(prop => {\n const value = this._startingStyles[prop];\n if (value) {\n this.element.style.setProperty(prop, value);\n }\n else {\n this.element.style.removeProperty(prop);\n }\n });\n this._startingStyles = null;\n super.destroy();\n }\n}\n\nconst KEYFRAMES_NAME_PREFIX = 'gen_css_kf_';\nconst TAB_SPACE = ' ';\nclass CssKeyframesDriver {\n constructor() {\n this._count = 0;\n }\n validateStyleProperty(prop) {\n return validateStyleProperty(prop);\n }\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n computeStyle(element, prop, defaultValue) {\n return window.getComputedStyle(element)[prop];\n }\n buildKeyframeElement(element, name, keyframes) {\n keyframes = keyframes.map(kf => hypenatePropsObject(kf));\n let keyframeStr = `@keyframes ${name} {\\n`;\n let tab = '';\n keyframes.forEach(kf => {\n tab = TAB_SPACE;\n const offset = parseFloat(kf['offset']);\n keyframeStr += `${tab}${offset * 100}% {\\n`;\n tab += TAB_SPACE;\n Object.keys(kf).forEach(prop => {\n const value = kf[prop];\n switch (prop) {\n case 'offset':\n return;\n case 'easing':\n if (value) {\n keyframeStr += `${tab}animation-timing-function: ${value};\\n`;\n }\n return;\n default:\n keyframeStr += `${tab}${prop}: ${value};\\n`;\n return;\n }\n });\n keyframeStr += `${tab}}\\n`;\n });\n keyframeStr += `}\\n`;\n const kfElm = document.createElement('style');\n kfElm.textContent = keyframeStr;\n return kfElm;\n }\n animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && scrubberAccessRequested) {\n notifyFaultyScrubber();\n }\n const previousCssKeyframePlayers = previousPlayers.filter(player => player instanceof CssKeyframesPlayer);\n const previousStyles = {};\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousCssKeyframePlayers.forEach(player => {\n let styles = player.currentSnapshot;\n Object.keys(styles).forEach(prop => previousStyles[prop] = styles[prop]);\n });\n }\n keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);\n const finalStyles = flattenKeyframesIntoStyles(keyframes);\n // if there is no animation then there is no point in applying\n // styles and waiting for an event to get fired. This causes lag.\n // It's better to just directly apply the styles to the element\n // via the direct styling animation player.\n if (duration == 0) {\n return new DirectStylePlayer(element, finalStyles);\n }\n const animationName = `${KEYFRAMES_NAME_PREFIX}${this._count++}`;\n const kfElm = this.buildKeyframeElement(element, animationName, keyframes);\n const nodeToAppendKfElm = findNodeToAppendKeyframeElement(element);\n nodeToAppendKfElm.appendChild(kfElm);\n const specialStyles = packageNonAnimatableStyles(element, keyframes);\n const player = new CssKeyframesPlayer(element, keyframes, animationName, duration, delay, easing, finalStyles, specialStyles);\n player.onDestroy(() => removeElement(kfElm));\n return player;\n }\n}\nfunction findNodeToAppendKeyframeElement(element) {\n var _a;\n const rootNode = (_a = element.getRootNode) === null || _a === void 0 ? void 0 : _a.call(element);\n if (typeof ShadowRoot !== 'undefined' && rootNode instanceof ShadowRoot) {\n return rootNode;\n }\n return document.head;\n}\nfunction flattenKeyframesIntoStyles(keyframes) {\n let flatKeyframes = {};\n if (keyframes) {\n const kfs = Array.isArray(keyframes) ? keyframes : [keyframes];\n kfs.forEach(kf => {\n Object.keys(kf).forEach(prop => {\n if (prop == 'offset' || prop == 'easing')\n return;\n flatKeyframes[prop] = kf[prop];\n });\n });\n }\n return flatKeyframes;\n}\nfunction removeElement(node) {\n node.parentNode.removeChild(node);\n}\nlet warningIssued = false;\nfunction notifyFaultyScrubber() {\n if (warningIssued)\n return;\n console.warn('@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\\n', ' visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');\n warningIssued = true;\n}\n\nclass WebAnimationsPlayer {\n constructor(element, keyframes, options, _specialStyles) {\n this.element = element;\n this.keyframes = keyframes;\n this.options = options;\n this._specialStyles = _specialStyles;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._onDestroyFns = [];\n this._initialized = false;\n this._finished = false;\n this._started = false;\n this._destroyed = false;\n this.time = 0;\n this.parentPlayer = null;\n this.currentSnapshot = {};\n this._duration = options['duration'];\n this._delay = options['delay'] || 0;\n this.time = this._duration + this._delay;\n }\n _onFinish() {\n if (!this._finished) {\n this._finished = true;\n this._onDoneFns.forEach(fn => fn());\n this._onDoneFns = [];\n }\n }\n init() {\n this._buildPlayer();\n this._preparePlayerBeforeStart();\n }\n _buildPlayer() {\n if (this._initialized)\n return;\n this._initialized = true;\n const keyframes = this.keyframes;\n this.domPlayer =\n this._triggerWebAnimation(this.element, keyframes, this.options);\n this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : {};\n this.domPlayer.addEventListener('finish', () => this._onFinish());\n }\n _preparePlayerBeforeStart() {\n // this is required so that the player doesn't start to animate right away\n if (this._delay) {\n this._resetDomPlayerState();\n }\n else {\n this.domPlayer.pause();\n }\n }\n /** @internal */\n _triggerWebAnimation(element, keyframes, options) {\n // jscompiler doesn't seem to know animate is a native property because it's not fully\n // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]\n return element['animate'](keyframes, options);\n }\n onStart(fn) {\n this._onStartFns.push(fn);\n }\n onDone(fn) {\n this._onDoneFns.push(fn);\n }\n onDestroy(fn) {\n this._onDestroyFns.push(fn);\n }\n play() {\n this._buildPlayer();\n if (!this.hasStarted()) {\n this._onStartFns.forEach(fn => fn());\n this._onStartFns = [];\n this._started = true;\n if (this._specialStyles) {\n this._specialStyles.start();\n }\n }\n this.domPlayer.play();\n }\n pause() {\n this.init();\n this.domPlayer.pause();\n }\n finish() {\n this.init();\n if (this._specialStyles) {\n this._specialStyles.finish();\n }\n this._onFinish();\n this.domPlayer.finish();\n }\n reset() {\n this._resetDomPlayerState();\n this._destroyed = false;\n this._finished = false;\n this._started = false;\n }\n _resetDomPlayerState() {\n if (this.domPlayer) {\n this.domPlayer.cancel();\n }\n }\n restart() {\n this.reset();\n this.play();\n }\n hasStarted() {\n return this._started;\n }\n destroy() {\n if (!this._destroyed) {\n this._destroyed = true;\n this._resetDomPlayerState();\n this._onFinish();\n if (this._specialStyles) {\n this._specialStyles.destroy();\n }\n this._onDestroyFns.forEach(fn => fn());\n this._onDestroyFns = [];\n }\n }\n setPosition(p) {\n if (this.domPlayer === undefined) {\n this.init();\n }\n this.domPlayer.currentTime = p * this.time;\n }\n getPosition() {\n return this.domPlayer.currentTime / this.time;\n }\n get totalTime() {\n return this._delay + this._duration;\n }\n beforeDestroy() {\n const styles = {};\n if (this.hasStarted()) {\n // note: this code is invoked only when the `play` function was called prior to this\n // (thus `hasStarted` returns true), this implies that the code that initializes\n // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here\n const finalKeyframe = this._finalKeyframe;\n Object.keys(finalKeyframe).forEach(prop => {\n if (prop != 'offset') {\n styles[prop] = this._finished ? finalKeyframe[prop] : computeStyle(this.element, prop);\n }\n });\n }\n this.currentSnapshot = styles;\n }\n /** @internal */\n triggerCallback(phaseName) {\n const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;\n methods.forEach(fn => fn());\n methods.length = 0;\n }\n}\n\nclass WebAnimationsDriver {\n constructor() {\n this._isNativeImpl = /\\{\\s*\\[native\\s+code\\]\\s*\\}/.test(getElementAnimateFn().toString());\n this._cssKeyframesDriver = new CssKeyframesDriver();\n }\n validateStyleProperty(prop) {\n return validateStyleProperty(prop);\n }\n matchesElement(_element, _selector) {\n // This method is deprecated and no longer in use so we return false.\n return false;\n }\n containsElement(elm1, elm2) {\n return containsElement(elm1, elm2);\n }\n query(element, selector, multi) {\n return invokeQuery(element, selector, multi);\n }\n computeStyle(element, prop, defaultValue) {\n return window.getComputedStyle(element)[prop];\n }\n overrideWebAnimationsSupport(supported) {\n this._isNativeImpl = supported;\n }\n animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {\n const useKeyframes = !scrubberAccessRequested && !this._isNativeImpl;\n if (useKeyframes) {\n return this._cssKeyframesDriver.animate(element, keyframes, duration, delay, easing, previousPlayers);\n }\n const fill = delay == 0 ? 'both' : 'forwards';\n const playerOptions = { duration, delay, fill };\n // we check for this to avoid having a null|undefined value be present\n // for the easing (which results in an error for certain browsers #9752)\n if (easing) {\n playerOptions['easing'] = easing;\n }\n const previousStyles = {};\n const previousWebAnimationPlayers = previousPlayers.filter(player => player instanceof WebAnimationsPlayer);\n if (allowPreviousPlayerStylesMerge(duration, delay)) {\n previousWebAnimationPlayers.forEach(player => {\n let styles = player.currentSnapshot;\n Object.keys(styles).forEach(prop => previousStyles[prop] = styles[prop]);\n });\n }\n keyframes = keyframes.map(styles => copyStyles(styles, false));\n keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);\n const specialStyles = packageNonAnimatableStyles(element, keyframes);\n return new WebAnimationsPlayer(element, keyframes, playerOptions, specialStyles);\n }\n}\nfunction supportsWebAnimations() {\n return typeof getElementAnimateFn() === 'function';\n}\nfunction getElementAnimateFn() {\n return (isBrowser() && Element.prototype['animate']) || {};\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationDriver, Animation as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, CssKeyframesDriver as ɵCssKeyframesDriver, CssKeyframesPlayer as ɵCssKeyframesPlayer, NoopAnimationDriver as ɵNoopAnimationDriver, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, containsElement as ɵcontainsElement, invokeQuery as ɵinvokeQuery, supportsWebAnimations as ɵsupportsWebAnimations, validateStyleProperty as ɵvalidateStyleProperty };\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { ViewEncapsulation, Injectable, Inject, InjectionToken, RendererFactory2, NgZone, NgModule } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport { AnimationBuilder, sequence, AnimationFactory } from '@angular/animations';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵsupportsWebAnimations, ɵWebAnimationsDriver, ɵCssKeyframesDriver, ɵWebAnimationsStyleNormalizer, ɵAnimationStyleNormalizer, AnimationDriver, ɵNoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass BrowserAnimationBuilder extends AnimationBuilder {\n constructor(rootRenderer, doc) {\n super();\n this._nextAnimationId = 0;\n const typeData = { id: '0', encapsulation: ViewEncapsulation.None, styles: [], data: { animation: [] } };\n this._renderer = rootRenderer.createRenderer(doc.body, typeData);\n }\n build(animation) {\n const id = this._nextAnimationId.toString();\n this._nextAnimationId++;\n const entry = Array.isArray(animation) ? sequence(animation) : animation;\n issueAnimationCommand(this._renderer, null, id, 'register', [entry]);\n return new BrowserAnimationFactory(id, this._renderer);\n }\n}\nBrowserAnimationBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserAnimationBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationBuilder });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: i0.RendererFactory2 }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\nclass BrowserAnimationFactory extends AnimationFactory {\n constructor(_id, _renderer) {\n super();\n this._id = _id;\n this._renderer = _renderer;\n }\n create(element, options) {\n return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);\n }\n}\nclass RendererAnimationPlayer {\n constructor(id, element, options, _renderer) {\n this.id = id;\n this.element = element;\n this._renderer = _renderer;\n this.parentPlayer = null;\n this._started = false;\n this.totalTime = 0;\n this._command('create', options);\n }\n _listen(eventName, callback) {\n return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);\n }\n _command(command, ...args) {\n return issueAnimationCommand(this._renderer, this.element, this.id, command, args);\n }\n onDone(fn) {\n this._listen('done', fn);\n }\n onStart(fn) {\n this._listen('start', fn);\n }\n onDestroy(fn) {\n this._listen('destroy', fn);\n }\n init() {\n this._command('init');\n }\n hasStarted() {\n return this._started;\n }\n play() {\n this._command('play');\n this._started = true;\n }\n pause() {\n this._command('pause');\n }\n restart() {\n this._command('restart');\n }\n finish() {\n this._command('finish');\n }\n destroy() {\n this._command('destroy');\n }\n reset() {\n this._command('reset');\n this._started = false;\n }\n setPosition(p) {\n this._command('setPosition', p);\n }\n getPosition() {\n var _a, _b;\n return (_b = (_a = this._renderer.engine.players[+this.id]) === null || _a === void 0 ? void 0 : _a.getPosition()) !== null && _b !== void 0 ? _b : 0;\n }\n}\nfunction issueAnimationCommand(renderer, element, id, command, args) {\n return renderer.setProperty(element, `@@${id}:${command}`, args);\n}\n\nconst ANIMATION_PREFIX = '@';\nconst DISABLE_ANIMATIONS_FLAG = '@.disabled';\nclass AnimationRendererFactory {\n constructor(delegate, engine, _zone) {\n this.delegate = delegate;\n this.engine = engine;\n this._zone = _zone;\n this._currentId = 0;\n this._microtaskId = 1;\n this._animationCallbacksBuffer = [];\n this._rendererCache = new Map();\n this._cdRecurDepth = 0;\n this.promise = Promise.resolve(0);\n engine.onRemovalComplete = (element, delegate) => {\n // Note: if a component element has a leave animation, and a host leave animation,\n // the view engine will call `removeChild` for the parent\n // component renderer as well as for the child component renderer.\n // Therefore, we need to check if we already removed the element.\n const parentNode = delegate === null || delegate === void 0 ? void 0 : delegate.parentNode(element);\n if (parentNode) {\n delegate.removeChild(parentNode, element);\n }\n };\n }\n createRenderer(hostElement, type) {\n const EMPTY_NAMESPACE_ID = '';\n // cache the delegates to find out which cached delegate can\n // be used by which cached renderer\n const delegate = this.delegate.createRenderer(hostElement, type);\n if (!hostElement || !type || !type.data || !type.data['animation']) {\n let renderer = this._rendererCache.get(delegate);\n if (!renderer) {\n renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine);\n // only cache this result when the base renderer is used\n this._rendererCache.set(delegate, renderer);\n }\n return renderer;\n }\n const componentId = type.id;\n const namespaceId = type.id + '-' + this._currentId;\n this._currentId++;\n this.engine.register(namespaceId, hostElement);\n const registerTrigger = (trigger) => {\n if (Array.isArray(trigger)) {\n trigger.forEach(registerTrigger);\n }\n else {\n this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);\n }\n };\n const animationTriggers = type.data['animation'];\n animationTriggers.forEach(registerTrigger);\n return new AnimationRenderer(this, namespaceId, delegate, this.engine);\n }\n begin() {\n this._cdRecurDepth++;\n if (this.delegate.begin) {\n this.delegate.begin();\n }\n }\n _scheduleCountTask() {\n // always use promise to schedule microtask instead of use Zone\n this.promise.then(() => {\n this._microtaskId++;\n });\n }\n /** @internal */\n scheduleListenerCallback(count, fn, data) {\n if (count >= 0 && count < this._microtaskId) {\n this._zone.run(() => fn(data));\n return;\n }\n if (this._animationCallbacksBuffer.length == 0) {\n Promise.resolve(null).then(() => {\n this._zone.run(() => {\n this._animationCallbacksBuffer.forEach(tuple => {\n const [fn, data] = tuple;\n fn(data);\n });\n this._animationCallbacksBuffer = [];\n });\n });\n }\n this._animationCallbacksBuffer.push([fn, data]);\n }\n end() {\n this._cdRecurDepth--;\n // this is to prevent animations from running twice when an inner\n // component does CD when a parent component instead has inserted it\n if (this._cdRecurDepth == 0) {\n this._zone.runOutsideAngular(() => {\n this._scheduleCountTask();\n this.engine.flush(this._microtaskId);\n });\n }\n if (this.delegate.end) {\n this.delegate.end();\n }\n }\n whenRenderingDone() {\n return this.engine.whenRenderingDone();\n }\n}\nAnimationRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AnimationRendererFactory, deps: [{ token: i0.RendererFactory2 }, { token: i1.ɵAnimationEngine }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nAnimationRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AnimationRendererFactory });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AnimationRendererFactory, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i0.RendererFactory2 }, { type: i1.ɵAnimationEngine }, { type: i0.NgZone }]; } });\nclass BaseAnimationRenderer {\n constructor(namespaceId, delegate, engine) {\n this.namespaceId = namespaceId;\n this.delegate = delegate;\n this.engine = engine;\n this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode(n) : null;\n }\n get data() {\n return this.delegate.data;\n }\n destroy() {\n this.engine.destroy(this.namespaceId, this.delegate);\n this.delegate.destroy();\n }\n createElement(name, namespace) {\n return this.delegate.createElement(name, namespace);\n }\n createComment(value) {\n return this.delegate.createComment(value);\n }\n createText(value) {\n return this.delegate.createText(value);\n }\n appendChild(parent, newChild) {\n this.delegate.appendChild(parent, newChild);\n this.engine.onInsert(this.namespaceId, newChild, parent, false);\n }\n insertBefore(parent, newChild, refChild, isMove = true) {\n this.delegate.insertBefore(parent, newChild, refChild);\n // If `isMove` true than we should animate this insert.\n this.engine.onInsert(this.namespaceId, newChild, parent, isMove);\n }\n removeChild(parent, oldChild, isHostElement) {\n this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);\n }\n selectRootElement(selectorOrNode, preserveContent) {\n return this.delegate.selectRootElement(selectorOrNode, preserveContent);\n }\n parentNode(node) {\n return this.delegate.parentNode(node);\n }\n nextSibling(node) {\n return this.delegate.nextSibling(node);\n }\n setAttribute(el, name, value, namespace) {\n this.delegate.setAttribute(el, name, value, namespace);\n }\n removeAttribute(el, name, namespace) {\n this.delegate.removeAttribute(el, name, namespace);\n }\n addClass(el, name) {\n this.delegate.addClass(el, name);\n }\n removeClass(el, name) {\n this.delegate.removeClass(el, name);\n }\n setStyle(el, style, value, flags) {\n this.delegate.setStyle(el, style, value, flags);\n }\n removeStyle(el, style, flags) {\n this.delegate.removeStyle(el, style, flags);\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {\n this.disableAnimations(el, !!value);\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n setValue(node, value) {\n this.delegate.setValue(node, value);\n }\n listen(target, eventName, callback) {\n return this.delegate.listen(target, eventName, callback);\n }\n disableAnimations(element, value) {\n this.engine.disableAnimations(element, value);\n }\n}\nclass AnimationRenderer extends BaseAnimationRenderer {\n constructor(factory, namespaceId, delegate, engine) {\n super(namespaceId, delegate, engine);\n this.factory = factory;\n this.namespaceId = namespaceId;\n }\n setProperty(el, name, value) {\n if (name.charAt(0) == ANIMATION_PREFIX) {\n if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {\n value = value === undefined ? true : !!value;\n this.disableAnimations(el, value);\n }\n else {\n this.engine.process(this.namespaceId, el, name.substr(1), value);\n }\n }\n else {\n this.delegate.setProperty(el, name, value);\n }\n }\n listen(target, eventName, callback) {\n if (eventName.charAt(0) == ANIMATION_PREFIX) {\n const element = resolveElementFromTarget(target);\n let name = eventName.substr(1);\n let phase = '';\n // @listener.phase is for trigger animation callbacks\n // @@listener is for animation builder callbacks\n if (name.charAt(0) != ANIMATION_PREFIX) {\n [name, phase] = parseTriggerCallbackName(name);\n }\n return this.engine.listen(this.namespaceId, element, name, phase, event => {\n const countId = event['_data'] || -1;\n this.factory.scheduleListenerCallback(countId, callback, event);\n });\n }\n return this.delegate.listen(target, eventName, callback);\n }\n}\nfunction resolveElementFromTarget(target) {\n switch (target) {\n case 'body':\n return document.body;\n case 'document':\n return document;\n case 'window':\n return window;\n default:\n return target;\n }\n}\nfunction parseTriggerCallbackName(triggerName) {\n const dotIndex = triggerName.indexOf('.');\n const trigger = triggerName.substring(0, dotIndex);\n const phase = triggerName.substr(dotIndex + 1);\n return [trigger, phase];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass InjectableAnimationEngine extends ɵAnimationEngine {\n constructor(doc, driver, normalizer) {\n super(doc.body, driver, normalizer);\n }\n ngOnDestroy() {\n this.flush();\n }\n}\nInjectableAnimationEngine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: InjectableAnimationEngine, deps: [{ token: DOCUMENT }, { token: i1.AnimationDriver }, { token: i1.ɵAnimationStyleNormalizer }], target: i0.ɵɵFactoryTarget.Injectable });\nInjectableAnimationEngine.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: InjectableAnimationEngine });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: InjectableAnimationEngine, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1.AnimationDriver }, { type: i1.ɵAnimationStyleNormalizer }];\n } });\nfunction instantiateSupportedAnimationDriver() {\n return ɵsupportsWebAnimations() ? new ɵWebAnimationsDriver() : new ɵCssKeyframesDriver();\n}\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new AnimationRendererFactory(renderer, engine, zone);\n}\n/**\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = new InjectionToken('AnimationModuleType');\nconst SHARED_ANIMATION_PROVIDERS = [\n { provide: AnimationBuilder, useClass: BrowserAnimationBuilder },\n { provide: ɵAnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer },\n { provide: ɵAnimationEngine, useClass: InjectableAnimationEngine }, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n }\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useFactory: instantiateSupportedAnimationDriver },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [\n { provide: AnimationDriver, useClass: ɵNoopAnimationDriver },\n { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS\n];\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nclass BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see `BrowserAnimationsModuleConfig`\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :\n BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n}\nBrowserAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nBrowserAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationsModule, exports: [BrowserModule] });\nBrowserAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationsModule, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n }]\n }] });\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nclass NoopAnimationsModule {\n}\nNoopAnimationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nNoopAnimationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationsModule, exports: [BrowserModule] });\nNoopAnimationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationsModule, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [BrowserModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopAnimationsModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [BrowserModule],\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANIMATION_MODULE_TYPE, BrowserAnimationsModule, NoopAnimationsModule, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, BrowserAnimationFactory as ɵBrowserAnimationFactory, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import * as i0 from '@angular/core';\nimport { Version, InjectionToken, NgModule, Optional, Inject, inject, LOCALE_ID, Injectable, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, EventEmitter, Output } from '@angular/core';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport { VERSION as VERSION$2 } from '@angular/cdk';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i1$1 from '@angular/cdk/platform';\nimport { _isTestEnvironment, PlatformModule, normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport * as i1 from '@angular/cdk/a11y';\nimport { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';\nimport { Subject, Observable } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Current version of Angular Material. */\nconst VERSION$1 = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nclass AnimationCurves {\n}\nAnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\nAnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\nAnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\nAnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n/** @docs-private */\nclass AnimationDurations {\n}\nAnimationDurations.COMPLEX = '375ms';\nAnimationDurations.ENTERING = '225ms';\nAnimationDurations.EXITING = '195ms';\n\n// Private version constant to circumvent test/build issues,\n// i.e. avoid core to depend on the @angular/material primary entry-point\n// Can be removed once the Material primary entry-point no longer\n// re-exports all secondary entry-points\nconst VERSION = new Version('13.1.1');\n/** @docs-private */\nfunction MATERIAL_SANITY_CHECKS_FACTORY() {\n return true;\n}\n/** Injection token that configures whether the Material sanity checks are enabled. */\nconst MATERIAL_SANITY_CHECKS = new InjectionToken('mat-sanity-checks', {\n providedIn: 'root',\n factory: MATERIAL_SANITY_CHECKS_FACTORY,\n});\n/**\n * Module that captures anything that should be loaded and/or run for *all* Angular Material\n * components. This includes Bidi, etc.\n *\n * This module should be imported to each top-level component module (e.g., MatTabsModule).\n */\nclass MatCommonModule {\n constructor(highContrastModeDetector, _sanityChecks, _document) {\n this._sanityChecks = _sanityChecks;\n this._document = _document;\n /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */\n this._hasDoneGlobalChecks = false;\n // While A11yModule also does this, we repeat it here to avoid importing A11yModule\n // in MatCommonModule.\n highContrastModeDetector._applyBodyHighContrastModeCssClasses();\n if (!this._hasDoneGlobalChecks) {\n this._hasDoneGlobalChecks = true;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (this._checkIsEnabled('doctype')) {\n _checkDoctypeIsDefined(this._document);\n }\n if (this._checkIsEnabled('theme')) {\n _checkThemeIsPresent(this._document);\n }\n if (this._checkIsEnabled('version')) {\n _checkCdkVersionMatch();\n }\n }\n }\n }\n /** Gets whether a specific sanity check is enabled. */\n _checkIsEnabled(name) {\n if (_isTestEnvironment()) {\n return false;\n }\n if (typeof this._sanityChecks === 'boolean') {\n return this._sanityChecks;\n }\n return !!this._sanityChecks[name];\n }\n}\nMatCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCommonModule, deps: [{ token: i1.HighContrastModeDetector }, { token: MATERIAL_SANITY_CHECKS, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.NgModule });\nMatCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCommonModule, imports: [BidiModule], exports: [BidiModule] });\nMatCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCommonModule, imports: [[BidiModule], BidiModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCommonModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [BidiModule],\n exports: [BidiModule],\n }]\n }], ctorParameters: function () {\n return [{ type: i1.HighContrastModeDetector }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MATERIAL_SANITY_CHECKS]\n }] }, { type: Document, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/** Checks that the page has a doctype. */\nfunction _checkDoctypeIsDefined(doc) {\n if (!doc.doctype) {\n console.warn('Current document does not have a doctype. This may cause ' +\n 'some Angular Material components not to behave as expected.');\n }\n}\n/** Checks that a theme has been included. */\nfunction _checkThemeIsPresent(doc) {\n // We need to assert that the `body` is defined, because these checks run very early\n // and the `body` won't be defined if the consumer put their scripts in the `head`.\n if (!doc.body || typeof getComputedStyle !== 'function') {\n return;\n }\n const testElement = doc.createElement('div');\n testElement.classList.add('mat-theme-loaded-marker');\n doc.body.appendChild(testElement);\n const computedStyle = getComputedStyle(testElement);\n // In some situations the computed style of the test element can be null. For example in\n // Firefox, the computed style is null if an application is running inside of a hidden iframe.\n // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n if (computedStyle && computedStyle.display !== 'none') {\n console.warn('Could not find Angular Material core theme. Most Material ' +\n 'components may not work as expected. For more info refer ' +\n 'to the theming guide: https://material.angular.io/guide/theming');\n }\n testElement.remove();\n}\n/** Checks whether the Material version matches the CDK version. */\nfunction _checkCdkVersionMatch() {\n if (VERSION.full !== VERSION$2.full) {\n console.warn('The Angular Material version (' +\n VERSION.full +\n ') does not match ' +\n 'the Angular CDK version (' +\n VERSION$2.full +\n ').\\n' +\n 'Please ensure the versions of these two packages exactly match.');\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction mixinDisabled(base) {\n return class extends base {\n constructor(...args) {\n super(...args);\n this._disabled = false;\n }\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction mixinColor(base, defaultColor) {\n return class extends base {\n constructor(...args) {\n super(...args);\n this.defaultColor = defaultColor;\n // Set the default color that can be specified from the mixin.\n this.color = defaultColor;\n }\n get color() {\n return this._color;\n }\n set color(value) {\n const colorPalette = value || this.defaultColor;\n if (colorPalette !== this._color) {\n if (this._color) {\n this._elementRef.nativeElement.classList.remove(`mat-${this._color}`);\n }\n if (colorPalette) {\n this._elementRef.nativeElement.classList.add(`mat-${colorPalette}`);\n }\n this._color = colorPalette;\n }\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction mixinDisableRipple(base) {\n return class extends base {\n constructor(...args) {\n super(...args);\n this._disableRipple = false;\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = coerceBooleanProperty(value);\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction mixinTabIndex(base, defaultTabIndex = 0) {\n return class extends base {\n constructor(...args) {\n super(...args);\n this._tabIndex = defaultTabIndex;\n this.defaultTabIndex = defaultTabIndex;\n }\n get tabIndex() {\n return this.disabled ? -1 : this._tabIndex;\n }\n set tabIndex(value) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction mixinErrorState(base) {\n return class extends base {\n constructor(...args) {\n super(...args);\n // This class member exists as an interop with `MatFormFieldControl` which expects\n // a public `stateChanges` observable to emit whenever the form field should be updated.\n // The description is not specifically mentioning the error state, as classes using this\n // mixin can/should emit an event in other cases too.\n /** Emits whenever the component state changes. */\n this.stateChanges = new Subject();\n /** Whether the component is in an error state. */\n this.errorState = false;\n }\n /** Updates the error state based on the provided error state matcher. */\n updateErrorState() {\n const oldState = this.errorState;\n const parent = this._parentFormGroup || this._parentForm;\n const matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;\n const control = this.ngControl ? this.ngControl.control : null;\n const newState = matcher.isErrorState(control, parent);\n if (newState !== oldState) {\n this.errorState = newState;\n this.stateChanges.next();\n }\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */\nfunction mixinInitialized(base) {\n return class extends base {\n constructor(...args) {\n super(...args);\n /** Whether this directive has been marked as initialized. */\n this._isInitialized = false;\n /**\n * List of subscribers that subscribed before the directive was initialized. Should be notified\n * during _markInitialized. Set to null after pending subscribers are notified, and should\n * not expect to be populated after.\n */\n this._pendingSubscribers = [];\n /**\n * Observable stream that emits when the directive initializes. If already initialized, the\n * subscriber is stored to be notified once _markInitialized is called.\n */\n this.initialized = new Observable(subscriber => {\n // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify\n // when _markInitialized is called.\n if (this._isInitialized) {\n this._notifySubscriber(subscriber);\n }\n else {\n this._pendingSubscribers.push(subscriber);\n }\n });\n }\n /**\n * Marks the state as initialized and notifies pending subscribers. Should be called at the end\n * of ngOnInit.\n * @docs-private\n */\n _markInitialized() {\n if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('This directive has already been marked as initialized and ' +\n 'should not be called twice.');\n }\n this._isInitialized = true;\n this._pendingSubscribers.forEach(this._notifySubscriber);\n this._pendingSubscribers = null;\n }\n /** Emits and completes the subscriber stream (should only emit once). */\n _notifySubscriber(subscriber) {\n subscriber.next();\n subscriber.complete();\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** InjectionToken for datepicker that can be used to override default locale code. */\nconst MAT_DATE_LOCALE = new InjectionToken('MAT_DATE_LOCALE', {\n providedIn: 'root',\n factory: MAT_DATE_LOCALE_FACTORY,\n});\n/** @docs-private */\nfunction MAT_DATE_LOCALE_FACTORY() {\n return inject(LOCALE_ID);\n}\n/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */\nclass DateAdapter {\n constructor() {\n this._localeChanges = new Subject();\n /** A stream that emits when the locale changes. */\n this.localeChanges = this._localeChanges;\n }\n /**\n * Given a potential date object, returns that same date object if it is\n * a valid date, or `null` if it's not a valid date.\n * @param obj The object to check.\n * @returns A date or `null`.\n */\n getValidDateOrNull(obj) {\n return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;\n }\n /**\n * Attempts to deserialize a value to a valid date object. This is different from parsing in that\n * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\n * string). The default implementation does not allow any deserialization, it simply checks that\n * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\n * method on all of its `@Input()` properties that accept dates. It is therefore possible to\n * support passing values from your backend directly to these properties by overriding this method\n * to also deserialize the format used by your backend.\n * @param value The value to be deserialized into a date object.\n * @returns The deserialized date object, either a valid date, null if the value can be\n * deserialized into a null date (e.g. the empty string), or an invalid date.\n */\n deserialize(value) {\n if (value == null || (this.isDateInstance(value) && this.isValid(value))) {\n return value;\n }\n return this.invalid();\n }\n /**\n * Sets the locale used for all dates.\n * @param locale The new locale.\n */\n setLocale(locale) {\n this.locale = locale;\n this._localeChanges.next();\n }\n /**\n * Compares two dates.\n * @param first The first date to compare.\n * @param second The second date to compare.\n * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,\n * a number greater than 0 if the first date is later.\n */\n compareDate(first, second) {\n return (this.getYear(first) - this.getYear(second) ||\n this.getMonth(first) - this.getMonth(second) ||\n this.getDate(first) - this.getDate(second));\n }\n /**\n * Checks if two dates are equal.\n * @param first The first date to check.\n * @param second The second date to check.\n * @returns Whether the two dates are equal.\n * Null dates are considered equal to other null dates.\n */\n sameDate(first, second) {\n if (first && second) {\n let firstValid = this.isValid(first);\n let secondValid = this.isValid(second);\n if (firstValid && secondValid) {\n return !this.compareDate(first, second);\n }\n return firstValid == secondValid;\n }\n return first == second;\n }\n /**\n * Clamp the given date between min and max dates.\n * @param date The date to clamp.\n * @param min The minimum value to allow. If null or omitted no min is enforced.\n * @param max The maximum value to allow. If null or omitted no max is enforced.\n * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,\n * otherwise `date`.\n */\n clampDate(date, min, max) {\n if (min && this.compareDate(date, min) < 0) {\n return min;\n }\n if (max && this.compareDate(date, max) > 0) {\n return max;\n }\n return date;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAT_DATE_FORMATS = new InjectionToken('mat-date-formats');\n\n/**\n * Matches strings that have the form of a valid RFC 3339 string\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\n * because the regex will match strings an with out of bounds month, date, etc.\n */\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n/** Creates an array and fills it with values. */\nfunction range(length, valueFunction) {\n const valuesArray = Array(length);\n for (let i = 0; i < length; i++) {\n valuesArray[i] = valueFunction(i);\n }\n return valuesArray;\n}\n/** Adapts the native JS Date for use with cdk-based components that work with dates. */\nclass NativeDateAdapter extends DateAdapter {\n constructor(matDateLocale, \n /**\n * @deprecated No longer being used. To be removed.\n * @breaking-change 14.0.0\n */\n _platform) {\n super();\n /**\n * @deprecated No longer being used. To be removed.\n * @breaking-change 14.0.0\n */\n this.useUtcForDisplay = false;\n super.setLocale(matDateLocale);\n }\n getYear(date) {\n return date.getFullYear();\n }\n getMonth(date) {\n return date.getMonth();\n }\n getDate(date) {\n return date.getDate();\n }\n getDayOfWeek(date) {\n return date.getDay();\n }\n getMonthNames(style) {\n const dtf = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });\n return range(12, i => this._format(dtf, new Date(2017, i, 1)));\n }\n getDateNames() {\n const dtf = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' });\n return range(31, i => this._format(dtf, new Date(2017, 0, i + 1)));\n }\n getDayOfWeekNames(style) {\n const dtf = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' });\n return range(7, i => this._format(dtf, new Date(2017, 0, i + 1)));\n }\n getYearName(date) {\n const dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' });\n return this._format(dtf, date);\n }\n getFirstDayOfWeek() {\n // We can't tell using native JS Date what the first day of the week is, we default to Sunday.\n return 0;\n }\n getNumDaysInMonth(date) {\n return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));\n }\n clone(date) {\n return new Date(date.getTime());\n }\n createDate(year, month, date) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Check for invalid month and date (except upper bound on date which we have to check after\n // creating the Date).\n if (month < 0 || month > 11) {\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\n }\n if (date < 1) {\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\n }\n }\n let result = this._createDateWithOverflow(year, month, date);\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\n if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n }\n return result;\n }\n today() {\n return new Date();\n }\n parse(value) {\n // We have no way using the native JS Date to set the parse format or locale, so we ignore these\n // parameters.\n if (typeof value == 'number') {\n return new Date(value);\n }\n return value ? new Date(Date.parse(value)) : null;\n }\n format(date, displayFormat) {\n if (!this.isValid(date)) {\n throw Error('NativeDateAdapter: Cannot format invalid date.');\n }\n const dtf = new Intl.DateTimeFormat(this.locale, Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' }));\n return this._format(dtf, date);\n }\n addCalendarYears(date, years) {\n return this.addCalendarMonths(date, years * 12);\n }\n addCalendarMonths(date, months) {\n let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));\n // It's possible to wind up in the wrong month if the original month has more days than the new\n // month. In this case we want to go to the last day of the desired month.\n // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't\n // guarantee this.\n if (this.getMonth(newDate) != (((this.getMonth(date) + months) % 12) + 12) % 12) {\n newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);\n }\n return newDate;\n }\n addCalendarDays(date, days) {\n return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);\n }\n toIso8601(date) {\n return [\n date.getUTCFullYear(),\n this._2digit(date.getUTCMonth() + 1),\n this._2digit(date.getUTCDate()),\n ].join('-');\n }\n /**\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\n * invalid date for all other values.\n */\n deserialize(value) {\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\n // string is the right format first.\n if (ISO_8601_REGEX.test(value)) {\n let date = new Date(value);\n if (this.isValid(date)) {\n return date;\n }\n }\n }\n return super.deserialize(value);\n }\n isDateInstance(obj) {\n return obj instanceof Date;\n }\n isValid(date) {\n return !isNaN(date.getTime());\n }\n invalid() {\n return new Date(NaN);\n }\n /** Creates a date but allows the month and date to overflow. */\n _createDateWithOverflow(year, month, date) {\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setFullYear` and `setHours` instead.\n const d = new Date();\n d.setFullYear(year, month, date);\n d.setHours(0, 0, 0, 0);\n return d;\n }\n /**\n * Pads a number to make it two digits.\n * @param n The number to pad.\n * @returns The padded number.\n */\n _2digit(n) {\n return ('00' + n).slice(-2);\n }\n /**\n * When converting Date object to string, javascript built-in functions may return wrong\n * results because it applies its internal DST rules. The DST rules around the world change\n * very frequently, and the current valid rule is not always valid in previous years though.\n * We work around this problem building a new Date object which has its internal UTC\n * representation with the local date and time.\n * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have\n * timeZone set to 'utc' to work fine.\n * @param date Date from which we want to get the string representation according to dtf\n * @returns A Date object with its UTC representation based on the passed in date info\n */\n _format(dtf, date) {\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\n // To work around this we use `setUTCFullYear` and `setUTCHours` instead.\n const d = new Date();\n d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n return dtf.format(d);\n }\n}\nNativeDateAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nNativeDateAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateAdapter });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateAdapter, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_LOCALE]\n }] }, { type: i1$1.Platform }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAT_NATIVE_DATE_FORMATS = {\n parse: {\n dateInput: null,\n },\n display: {\n dateInput: { year: 'numeric', month: 'numeric', day: 'numeric' },\n monthYearLabel: { year: 'numeric', month: 'short' },\n dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\n monthYearA11yLabel: { year: 'numeric', month: 'long' },\n },\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass NativeDateModule {\n}\nNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateModule, imports: [PlatformModule] });\nNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateModule, providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }], imports: [[PlatformModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NativeDateModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [PlatformModule],\n providers: [{ provide: DateAdapter, useClass: NativeDateAdapter }],\n }]\n }] });\nclass MatNativeDateModule {\n}\nMatNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNativeDateModule, imports: [NativeDateModule] });\nMatNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNativeDateModule, providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS }], imports: [[NativeDateModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNativeDateModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NativeDateModule],\n providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_NATIVE_DATE_FORMATS }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Error state matcher that matches when a control is invalid and dirty. */\nclass ShowOnDirtyErrorStateMatcher {\n isErrorState(control, form) {\n return !!(control && control.invalid && (control.dirty || (form && form.submitted)));\n }\n}\nShowOnDirtyErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nShowOnDirtyErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{\n type: Injectable\n }] });\n/** Provider that defines how form controls behave with regards to displaying error messages. */\nclass ErrorStateMatcher {\n isErrorState(control, form) {\n return !!(control && control.invalid && (control.touched || (form && form.submitted)));\n }\n}\nErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ErrorStateMatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Shared directive to count lines inside a text area, such as a list item.\n * Line elements can be extracted with a @ContentChildren(MatLine) query, then\n * counted by checking the query list's length.\n */\nclass MatLine {\n}\nMatLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatLine.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatLine, selector: \"[mat-line], [matLine]\", host: { classAttribute: \"mat-line\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLine, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-line], [matLine]',\n host: { 'class': 'mat-line' },\n }]\n }] });\n/**\n * Helper that takes a query list of lines and sets the correct class on the host.\n * @docs-private\n */\nfunction setLines(lines, element, prefix = 'mat') {\n // Note: doesn't need to unsubscribe, because `changes`\n // gets completed by Angular when the view is destroyed.\n lines.changes.pipe(startWith(lines)).subscribe(({ length }) => {\n setClass(element, `${prefix}-2-line`, false);\n setClass(element, `${prefix}-3-line`, false);\n setClass(element, `${prefix}-multi-line`, false);\n if (length === 2 || length === 3) {\n setClass(element, `${prefix}-${length}-line`, true);\n }\n else if (length > 3) {\n setClass(element, `${prefix}-multi-line`, true);\n }\n });\n}\n/** Adds or removes a class from an element. */\nfunction setClass(element, className, isAdd) {\n element.nativeElement.classList.toggle(className, isAdd);\n}\nclass MatLineModule {\n}\nMatLineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatLineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLineModule, declarations: [MatLine], imports: [MatCommonModule], exports: [MatLine, MatCommonModule] });\nMatLineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLineModule, imports: [[MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLineModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: [MatLine, MatCommonModule],\n declarations: [MatLine],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Reference to a previously launched ripple element.\n */\nclass RippleRef {\n constructor(_renderer, \n /** Reference to the ripple HTML element. */\n element, \n /** Ripple configuration used for the ripple. */\n config) {\n this._renderer = _renderer;\n this.element = element;\n this.config = config;\n /** Current state of the ripple. */\n this.state = 3 /* HIDDEN */;\n }\n /** Fades out the ripple element. */\n fadeOut() {\n this._renderer.fadeOutRipple(this);\n }\n}\n\n// TODO: import these values from `@material/ripple` eventually.\n/**\n * Default ripple animation configuration for ripples without an explicit\n * animation config specified.\n */\nconst defaultRippleAnimationConfig = {\n enterDuration: 225,\n exitDuration: 150,\n};\n/**\n * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch\n * events to avoid synthetic mouse events.\n */\nconst ignoreMouseEventsTimeout = 800;\n/** Options that apply to all the event listeners that are bound by the ripple renderer. */\nconst passiveEventOptions = normalizePassiveListenerOptions({ passive: true });\n/** Events that signal that the pointer is down. */\nconst pointerDownEvents = ['mousedown', 'touchstart'];\n/** Events that signal that the pointer is up. */\nconst pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];\n/**\n * Helper service that performs DOM manipulations. Not intended to be used outside this module.\n * The constructor takes a reference to the ripple directive's host element and a map of DOM\n * event handlers to be installed on the element that triggers ripple animations.\n * This will eventually become a custom renderer once Angular support exists.\n * @docs-private\n */\nclass RippleRenderer {\n constructor(_target, _ngZone, elementOrElementRef, platform) {\n this._target = _target;\n this._ngZone = _ngZone;\n /** Whether the pointer is currently down or not. */\n this._isPointerDown = false;\n /** Set of currently active ripple references. */\n this._activeRipples = new Set();\n /** Whether pointer-up event listeners have been registered. */\n this._pointerUpEventsRegistered = false;\n // Only do anything if we're on the browser.\n if (platform.isBrowser) {\n this._containerElement = coerceElement(elementOrElementRef);\n }\n }\n /**\n * Fades in a ripple at the given coordinates.\n * @param x Coordinate within the element, along the X axis at which to start the ripple.\n * @param y Coordinate within the element, along the Y axis at which to start the ripple.\n * @param config Extra ripple options.\n */\n fadeInRipple(x, y, config = {}) {\n const containerRect = (this._containerRect =\n this._containerRect || this._containerElement.getBoundingClientRect());\n const animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation);\n if (config.centered) {\n x = containerRect.left + containerRect.width / 2;\n y = containerRect.top + containerRect.height / 2;\n }\n const radius = config.radius || distanceToFurthestCorner(x, y, containerRect);\n const offsetX = x - containerRect.left;\n const offsetY = y - containerRect.top;\n const duration = animationConfig.enterDuration;\n const ripple = document.createElement('div');\n ripple.classList.add('mat-ripple-element');\n ripple.style.left = `${offsetX - radius}px`;\n ripple.style.top = `${offsetY - radius}px`;\n ripple.style.height = `${radius * 2}px`;\n ripple.style.width = `${radius * 2}px`;\n // If a custom color has been specified, set it as inline style. If no color is\n // set, the default color will be applied through the ripple theme styles.\n if (config.color != null) {\n ripple.style.backgroundColor = config.color;\n }\n ripple.style.transitionDuration = `${duration}ms`;\n this._containerElement.appendChild(ripple);\n // By default the browser does not recalculate the styles of dynamically created\n // ripple elements. This is critical because then the `scale` would not animate properly.\n enforceStyleRecalculation(ripple);\n ripple.style.transform = 'scale(1)';\n // Exposed reference to the ripple that will be returned.\n const rippleRef = new RippleRef(this, ripple, config);\n rippleRef.state = 0 /* FADING_IN */;\n // Add the ripple reference to the list of all active ripples.\n this._activeRipples.add(rippleRef);\n if (!config.persistent) {\n this._mostRecentTransientRipple = rippleRef;\n }\n // Wait for the ripple element to be completely faded in.\n // Once it's faded in, the ripple can be hidden immediately if the mouse is released.\n this._runTimeoutOutsideZone(() => {\n const isMostRecentTransientRipple = rippleRef === this._mostRecentTransientRipple;\n rippleRef.state = 1 /* VISIBLE */;\n // When the timer runs out while the user has kept their pointer down, we want to\n // keep only the persistent ripples and the latest transient ripple. We do this,\n // because we don't want stacked transient ripples to appear after their enter\n // animation has finished.\n if (!config.persistent && (!isMostRecentTransientRipple || !this._isPointerDown)) {\n rippleRef.fadeOut();\n }\n }, duration);\n return rippleRef;\n }\n /** Fades out a ripple reference. */\n fadeOutRipple(rippleRef) {\n const wasActive = this._activeRipples.delete(rippleRef);\n if (rippleRef === this._mostRecentTransientRipple) {\n this._mostRecentTransientRipple = null;\n }\n // Clear out the cached bounding rect if we have no more ripples.\n if (!this._activeRipples.size) {\n this._containerRect = null;\n }\n // For ripples that are not active anymore, don't re-run the fade-out animation.\n if (!wasActive) {\n return;\n }\n const rippleEl = rippleRef.element;\n const animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation);\n rippleEl.style.transitionDuration = `${animationConfig.exitDuration}ms`;\n rippleEl.style.opacity = '0';\n rippleRef.state = 2 /* FADING_OUT */;\n // Once the ripple faded out, the ripple can be safely removed from the DOM.\n this._runTimeoutOutsideZone(() => {\n rippleRef.state = 3 /* HIDDEN */;\n rippleEl.remove();\n }, animationConfig.exitDuration);\n }\n /** Fades out all currently active ripples. */\n fadeOutAll() {\n this._activeRipples.forEach(ripple => ripple.fadeOut());\n }\n /** Fades out all currently active non-persistent ripples. */\n fadeOutAllNonPersistent() {\n this._activeRipples.forEach(ripple => {\n if (!ripple.config.persistent) {\n ripple.fadeOut();\n }\n });\n }\n /** Sets up the trigger event listeners */\n setupTriggerEvents(elementOrElementRef) {\n const element = coerceElement(elementOrElementRef);\n if (!element || element === this._triggerElement) {\n return;\n }\n // Remove all previously registered event listeners from the trigger element.\n this._removeTriggerEvents();\n this._triggerElement = element;\n this._registerEvents(pointerDownEvents);\n }\n /**\n * Handles all registered events.\n * @docs-private\n */\n handleEvent(event) {\n if (event.type === 'mousedown') {\n this._onMousedown(event);\n }\n else if (event.type === 'touchstart') {\n this._onTouchStart(event);\n }\n else {\n this._onPointerUp();\n }\n // If pointer-up events haven't been registered yet, do so now.\n // We do this on-demand in order to reduce the total number of event listeners\n // registered by the ripples, which speeds up the rendering time for large UIs.\n if (!this._pointerUpEventsRegistered) {\n this._registerEvents(pointerUpEvents);\n this._pointerUpEventsRegistered = true;\n }\n }\n /** Function being called whenever the trigger is being pressed using mouse. */\n _onMousedown(event) {\n // Screen readers will fire fake mouse events for space/enter. Skip launching a\n // ripple in this case for consistency with the non-screen-reader experience.\n const isFakeMousedown = isFakeMousedownFromScreenReader(event);\n const isSyntheticEvent = this._lastTouchStartEvent &&\n Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout;\n if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) {\n this._isPointerDown = true;\n this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig);\n }\n }\n /** Function being called whenever the trigger is being pressed using touch. */\n _onTouchStart(event) {\n if (!this._target.rippleDisabled && !isFakeTouchstartFromScreenReader(event)) {\n // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse\n // events will launch a second ripple if we don't ignore mouse events for a specific\n // time after a touchstart event.\n this._lastTouchStartEvent = Date.now();\n this._isPointerDown = true;\n // Use `changedTouches` so we skip any touches where the user put\n // their finger down, but used another finger to tap the element again.\n const touches = event.changedTouches;\n for (let i = 0; i < touches.length; i++) {\n this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig);\n }\n }\n }\n /** Function being called whenever the trigger is being released. */\n _onPointerUp() {\n if (!this._isPointerDown) {\n return;\n }\n this._isPointerDown = false;\n // Fade-out all ripples that are visible and not persistent.\n this._activeRipples.forEach(ripple => {\n // By default, only ripples that are completely visible will fade out on pointer release.\n // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.\n const isVisible = ripple.state === 1 /* VISIBLE */ ||\n (ripple.config.terminateOnPointerUp && ripple.state === 0 /* FADING_IN */);\n if (!ripple.config.persistent && isVisible) {\n ripple.fadeOut();\n }\n });\n }\n /** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */\n _runTimeoutOutsideZone(fn, delay = 0) {\n this._ngZone.runOutsideAngular(() => setTimeout(fn, delay));\n }\n /** Registers event listeners for a given list of events. */\n _registerEvents(eventTypes) {\n this._ngZone.runOutsideAngular(() => {\n eventTypes.forEach(type => {\n this._triggerElement.addEventListener(type, this, passiveEventOptions);\n });\n });\n }\n /** Removes previously registered event listeners from the trigger element. */\n _removeTriggerEvents() {\n if (this._triggerElement) {\n pointerDownEvents.forEach(type => {\n this._triggerElement.removeEventListener(type, this, passiveEventOptions);\n });\n if (this._pointerUpEventsRegistered) {\n pointerUpEvents.forEach(type => {\n this._triggerElement.removeEventListener(type, this, passiveEventOptions);\n });\n }\n }\n }\n}\n/** Enforces a style recalculation of a DOM element by computing its styles. */\nfunction enforceStyleRecalculation(element) {\n // Enforce a style recalculation by calling `getComputedStyle` and accessing any property.\n // Calling `getPropertyValue` is important to let optimizers know that this is not a noop.\n // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a\n window.getComputedStyle(element).getPropertyValue('opacity');\n}\n/**\n * Returns the distance from the point (x, y) to the furthest corner of a rectangle.\n */\nfunction distanceToFurthestCorner(x, y, rect) {\n const distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));\n const distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));\n return Math.sqrt(distX * distX + distY * distY);\n}\n\n/** Injection token that can be used to specify the global ripple options. */\nconst MAT_RIPPLE_GLOBAL_OPTIONS = new InjectionToken('mat-ripple-global-options');\nclass MatRipple {\n constructor(_elementRef, ngZone, platform, globalOptions, _animationMode) {\n this._elementRef = _elementRef;\n this._animationMode = _animationMode;\n /**\n * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius\n * will be the distance from the center of the ripple to the furthest corner of the host element's\n * bounding rectangle.\n */\n this.radius = 0;\n this._disabled = false;\n /** Whether ripple directive is initialized and the input bindings are set. */\n this._isInitialized = false;\n this._globalOptions = globalOptions || {};\n this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);\n }\n /**\n * Whether click events will not trigger the ripple. Ripples can be still launched manually\n * by using the `launch()` method.\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n if (value) {\n this.fadeOutAllNonPersistent();\n }\n this._disabled = value;\n this._setupTriggerEventsIfEnabled();\n }\n /**\n * The element that triggers the ripple when click events are received.\n * Defaults to the directive's host element.\n */\n get trigger() {\n return this._trigger || this._elementRef.nativeElement;\n }\n set trigger(trigger) {\n this._trigger = trigger;\n this._setupTriggerEventsIfEnabled();\n }\n ngOnInit() {\n this._isInitialized = true;\n this._setupTriggerEventsIfEnabled();\n }\n ngOnDestroy() {\n this._rippleRenderer._removeTriggerEvents();\n }\n /** Fades out all currently showing ripple elements. */\n fadeOutAll() {\n this._rippleRenderer.fadeOutAll();\n }\n /** Fades out all currently showing non-persistent ripple elements. */\n fadeOutAllNonPersistent() {\n this._rippleRenderer.fadeOutAllNonPersistent();\n }\n /**\n * Ripple configuration from the directive's input values.\n * @docs-private Implemented as part of RippleTarget\n */\n get rippleConfig() {\n return {\n centered: this.centered,\n radius: this.radius,\n color: this.color,\n animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), (this._animationMode === 'NoopAnimations' ? { enterDuration: 0, exitDuration: 0 } : {})), this.animation),\n terminateOnPointerUp: this._globalOptions.terminateOnPointerUp,\n };\n }\n /**\n * Whether ripples on pointer-down are disabled or not.\n * @docs-private Implemented as part of RippleTarget\n */\n get rippleDisabled() {\n return this.disabled || !!this._globalOptions.disabled;\n }\n /** Sets up the trigger event listeners if ripples are enabled. */\n _setupTriggerEventsIfEnabled() {\n if (!this.disabled && this._isInitialized) {\n this._rippleRenderer.setupTriggerEvents(this.trigger);\n }\n }\n /** Launches a manual ripple at the specified coordinated or just by the ripple config. */\n launch(configOrX, y = 0, config) {\n if (typeof configOrX === 'number') {\n return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config));\n }\n else {\n return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX));\n }\n }\n}\nMatRipple.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRipple, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatRipple.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: { color: [\"matRippleColor\", \"color\"], unbounded: [\"matRippleUnbounded\", \"unbounded\"], centered: [\"matRippleCentered\", \"centered\"], radius: [\"matRippleRadius\", \"radius\"], animation: [\"matRippleAnimation\", \"animation\"], disabled: [\"matRippleDisabled\", \"disabled\"], trigger: [\"matRippleTrigger\", \"trigger\"] }, host: { properties: { \"class.mat-ripple-unbounded\": \"unbounded\" }, classAttribute: \"mat-ripple\" }, exportAs: [\"matRipple\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRipple, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-ripple], [matRipple]',\n exportAs: 'matRipple',\n host: {\n 'class': 'mat-ripple',\n '[class.mat-ripple-unbounded]': 'unbounded',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { color: [{\n type: Input,\n args: ['matRippleColor']\n }], unbounded: [{\n type: Input,\n args: ['matRippleUnbounded']\n }], centered: [{\n type: Input,\n args: ['matRippleCentered']\n }], radius: [{\n type: Input,\n args: ['matRippleRadius']\n }], animation: [{\n type: Input,\n args: ['matRippleAnimation']\n }], disabled: [{\n type: Input,\n args: ['matRippleDisabled']\n }], trigger: [{\n type: Input,\n args: ['matRippleTrigger']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatRippleModule {\n}\nMatRippleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRippleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatRippleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRippleModule, declarations: [MatRipple], imports: [MatCommonModule, PlatformModule], exports: [MatRipple, MatCommonModule] });\nMatRippleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRippleModule, imports: [[MatCommonModule, PlatformModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRippleModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule, PlatformModule],\n exports: [MatRipple, MatCommonModule],\n declarations: [MatRipple],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Component that shows a simplified checkbox without including any kind of \"real\" checkbox.\n * Meant to be used when the checkbox is purely decorative and a large number of them will be\n * included, such as for the options in a multi-select. Uses no SVGs or complex animations.\n * Note that theming is meant to be handled by the parent element, e.g.\n * `mat-primary .mat-pseudo-checkbox`.\n *\n * Note that this component will be completely invisible to screen-reader users. This is *not*\n * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly\n * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail\n * of more complex components that appropriately handle selected / checked state.\n * @docs-private\n */\nclass MatPseudoCheckbox {\n constructor(_animationMode) {\n this._animationMode = _animationMode;\n /** Display state of the checkbox. */\n this.state = 'unchecked';\n /** Whether the checkbox is disabled. */\n this.disabled = false;\n }\n}\nMatPseudoCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckbox, deps: [{ token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatPseudoCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatPseudoCheckbox, selector: \"mat-pseudo-checkbox\", inputs: { state: \"state\", disabled: \"disabled\" }, host: { properties: { \"class.mat-pseudo-checkbox-indeterminate\": \"state === \\\"indeterminate\\\"\", \"class.mat-pseudo-checkbox-checked\": \"state === \\\"checked\\\"\", \"class.mat-pseudo-checkbox-disabled\": \"disabled\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\" }, classAttribute: \"mat-pseudo-checkbox\" }, ngImport: i0, template: '', isInline: true, styles: [\".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\\\"\\\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckbox, decorators: [{\n type: Component,\n args: [{ encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, selector: 'mat-pseudo-checkbox', template: '', host: {\n 'class': 'mat-pseudo-checkbox',\n '[class.mat-pseudo-checkbox-indeterminate]': 'state === \"indeterminate\"',\n '[class.mat-pseudo-checkbox-checked]': 'state === \"checked\"',\n '[class.mat-pseudo-checkbox-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n }, styles: [\".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\\\"\\\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { state: [{\n type: Input\n }], disabled: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatPseudoCheckboxModule {\n}\nMatPseudoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatPseudoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckboxModule, declarations: [MatPseudoCheckbox], imports: [MatCommonModule], exports: [MatPseudoCheckbox] });\nMatPseudoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckboxModule, imports: [[MatCommonModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPseudoCheckboxModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: [MatPseudoCheckbox],\n declarations: [MatPseudoCheckbox],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token used to provide the parent component to options.\n */\nconst MAT_OPTION_PARENT_COMPONENT = new InjectionToken('MAT_OPTION_PARENT_COMPONENT');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Notes on the accessibility pattern used for `mat-optgroup`.\n// The option group has two different \"modes\": regular and inert. The regular mode uses the\n// recommended a11y pattern which has `role=\"group\"` on the group element with `aria-labelledby`\n// pointing to the label. This works for `mat-select`, but it seems to hit a bug for autocomplete\n// under VoiceOver where the group doesn't get read out at all. The bug appears to be that if\n// there's __any__ a11y-related attribute on the group (e.g. `role` or `aria-labelledby`),\n// VoiceOver on Safari won't read it out.\n// We've introduced the `inert` mode as a workaround. Under this mode, all a11y attributes are\n// removed from the group, and we get the screen reader to read out the group label by mirroring it\n// inside an invisible element in the option. This is sub-optimal, because the screen reader will\n// repeat the group label on each navigation, whereas the default pattern only reads the group when\n// the user enters a new group. The following alternate approaches were considered:\n// 1. Reading out the group label using the `LiveAnnouncer` solves the problem, but we can't control\n// when the text will be read out so sometimes it comes in too late or never if the user\n// navigates quickly.\n// 2. `<mat-option aria-describedby=\"groupLabel\"` - This works on Safari, but VoiceOver in Chrome\n// won't read out the description at all.\n// 3. `<mat-option aria-labelledby=\"optionLabel groupLabel\"` - This works on Chrome, but Safari\n// doesn't read out the text at all. Furthermore, on\n// Boilerplate for applying mixins to MatOptgroup.\n/** @docs-private */\nconst _MatOptgroupMixinBase = mixinDisabled(class {\n});\n// Counter for unique group ids.\nlet _uniqueOptgroupIdCounter = 0;\nclass _MatOptgroupBase extends _MatOptgroupMixinBase {\n constructor(parent) {\n var _a;\n super();\n /** Unique id for the underlying label. */\n this._labelId = `mat-optgroup-label-${_uniqueOptgroupIdCounter++}`;\n this._inert = (_a = parent === null || parent === void 0 ? void 0 : parent.inertGroups) !== null && _a !== void 0 ? _a : false;\n }\n}\n_MatOptgroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatOptgroupBase, deps: [{ token: MAT_OPTION_PARENT_COMPONENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatOptgroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatOptgroupBase, inputs: { label: \"label\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatOptgroupBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MAT_OPTION_PARENT_COMPONENT]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { label: [{\n type: Input\n }] } });\n/**\n * Injection token that can be used to reference instances of `MatOptgroup`. It serves as\n * alternative token to the actual `MatOptgroup` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\nconst MAT_OPTGROUP = new InjectionToken('MatOptgroup');\n/**\n * Component that is used to group instances of `mat-option`.\n */\nclass MatOptgroup extends _MatOptgroupBase {\n}\nMatOptgroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptgroup, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatOptgroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatOptgroup, selector: \"mat-optgroup\", inputs: { disabled: \"disabled\" }, host: { properties: { \"attr.role\": \"_inert ? null : \\\"group\\\"\", \"attr.aria-disabled\": \"_inert ? null : disabled.toString()\", \"attr.aria-labelledby\": \"_inert ? null : _labelId\", \"class.mat-optgroup-disabled\": \"disabled\" }, classAttribute: \"mat-optgroup\" }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], exportAs: [\"matOptgroup\"], usesInheritance: true, ngImport: i0, template: \"<span class=\\\"mat-optgroup-label\\\" aria-hidden=\\\"true\\\" [id]=\\\"_labelId\\\">{{ label }} <ng-content></ng-content></span>\\n<ng-content select=\\\"mat-option, ng-container\\\"></ng-content>\\n\", styles: [\".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptgroup, decorators: [{\n type: Component,\n args: [{ selector: 'mat-optgroup', exportAs: 'matOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {\n 'class': 'mat-optgroup',\n '[attr.role]': '_inert ? null : \"group\"',\n '[attr.aria-disabled]': '_inert ? null : disabled.toString()',\n '[attr.aria-labelledby]': '_inert ? null : _labelId',\n '[class.mat-optgroup-disabled]': 'disabled',\n }, providers: [{ provide: MAT_OPTGROUP, useExisting: MatOptgroup }], template: \"<span class=\\\"mat-optgroup-label\\\" aria-hidden=\\\"true\\\" [id]=\\\"_labelId\\\">{{ label }} <ng-content></ng-content></span>\\n<ng-content select=\\\"mat-option, ng-container\\\"></ng-content>\\n\", styles: [\".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\\n\"] }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Option IDs need to be unique across components, so this counter exists outside of\n * the component definition.\n */\nlet _uniqueIdCounter = 0;\n/** Event object emitted by MatOption when selected or deselected. */\nclass MatOptionSelectionChange {\n constructor(\n /** Reference to the option that emitted the event. */\n source, \n /** Whether the change in the option's value was a result of a user action. */\n isUserInput = false) {\n this.source = source;\n this.isUserInput = isUserInput;\n }\n}\nclass _MatOptionBase {\n constructor(_element, _changeDetectorRef, _parent, group) {\n this._element = _element;\n this._changeDetectorRef = _changeDetectorRef;\n this._parent = _parent;\n this.group = group;\n this._selected = false;\n this._active = false;\n this._disabled = false;\n this._mostRecentViewValue = '';\n /** The unique ID of the option. */\n this.id = `mat-option-${_uniqueIdCounter++}`;\n /** Event emitted when the option is selected or deselected. */\n // tslint:disable-next-line:no-output-on-prefix\n this.onSelectionChange = new EventEmitter();\n /** Emits when the state of the option changes and any parents have to be notified. */\n this._stateChanges = new Subject();\n }\n /** Whether the wrapping component is in multiple selection mode. */\n get multiple() {\n return this._parent && this._parent.multiple;\n }\n /** Whether or not the option is currently selected. */\n get selected() {\n return this._selected;\n }\n /** Whether the option is disabled. */\n get disabled() {\n return (this.group && this.group.disabled) || this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n /** Whether ripples for the option are disabled. */\n get disableRipple() {\n return !!(this._parent && this._parent.disableRipple);\n }\n /**\n * Whether or not the option is currently active and ready to be selected.\n * An active option displays styles as if it is focused, but the\n * focus is actually retained somewhere else. This comes in handy\n * for components like autocomplete where focus must remain on the input.\n */\n get active() {\n return this._active;\n }\n /**\n * The displayed value of the option. It is necessary to show the selected option in the\n * select's trigger.\n */\n get viewValue() {\n // TODO(kara): Add input property alternative for node envs.\n return (this._getHostElement().textContent || '').trim();\n }\n /** Selects the option. */\n select() {\n if (!this._selected) {\n this._selected = true;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent();\n }\n }\n /** Deselects the option. */\n deselect() {\n if (this._selected) {\n this._selected = false;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent();\n }\n }\n /** Sets focus onto this option. */\n focus(_origin, options) {\n // Note that we aren't using `_origin`, but we need to keep it because some internal consumers\n // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.\n const element = this._getHostElement();\n if (typeof element.focus === 'function') {\n element.focus(options);\n }\n }\n /**\n * This method sets display styles on the option to make it appear\n * active. This is used by the ActiveDescendantKeyManager so key\n * events will display the proper options as active on arrow key events.\n */\n setActiveStyles() {\n if (!this._active) {\n this._active = true;\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * This method removes display styles on the option that made it appear\n * active. This is used by the ActiveDescendantKeyManager so key\n * events will display the proper options as active on arrow key events.\n */\n setInactiveStyles() {\n if (this._active) {\n this._active = false;\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel() {\n return this.viewValue;\n }\n /** Ensures the option is selected when activated from the keyboard. */\n _handleKeydown(event) {\n if ((event.keyCode === ENTER || event.keyCode === SPACE) && !hasModifierKey(event)) {\n this._selectViaInteraction();\n // Prevent the page from scrolling down and form submits.\n event.preventDefault();\n }\n }\n /**\n * `Selects the option while indicating the selection came from the user. Used to\n * determine if the select's view -> model callback should be invoked.`\n */\n _selectViaInteraction() {\n if (!this.disabled) {\n this._selected = this.multiple ? !this._selected : true;\n this._changeDetectorRef.markForCheck();\n this._emitSelectionChangeEvent(true);\n }\n }\n /**\n * Gets the `aria-selected` value for the option. We explicitly omit the `aria-selected`\n * attribute from single-selection, unselected options. Including the `aria-selected=\"false\"`\n * attributes adds a significant amount of noise to screen-reader users without providing useful\n * information.\n */\n _getAriaSelected() {\n return this.selected || (this.multiple ? false : null);\n }\n /** Returns the correct tabindex for the option depending on disabled state. */\n _getTabIndex() {\n return this.disabled ? '-1' : '0';\n }\n /** Gets the host DOM element. */\n _getHostElement() {\n return this._element.nativeElement;\n }\n ngAfterViewChecked() {\n // Since parent components could be using the option's label to display the selected values\n // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed\n // we have to check for changes in the DOM ourselves and dispatch an event. These checks are\n // relatively cheap, however we still limit them only to selected options in order to avoid\n // hitting the DOM too often.\n if (this._selected) {\n const viewValue = this.viewValue;\n if (viewValue !== this._mostRecentViewValue) {\n this._mostRecentViewValue = viewValue;\n this._stateChanges.next();\n }\n }\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n /** Emits the selection change event. */\n _emitSelectionChangeEvent(isUserInput = false) {\n this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));\n }\n}\n_MatOptionBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatOptionBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatOptionBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatOptionBase, inputs: { value: \"value\", id: \"id\", disabled: \"disabled\" }, outputs: { onSelectionChange: \"onSelectionChange\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatOptionBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined }, { type: _MatOptgroupBase }]; }, propDecorators: { value: [{\n type: Input\n }], id: [{\n type: Input\n }], disabled: [{\n type: Input\n }], onSelectionChange: [{\n type: Output\n }] } });\n/**\n * Single option inside of a `<mat-select>` element.\n */\nclass MatOption extends _MatOptionBase {\n constructor(element, changeDetectorRef, parent, group) {\n super(element, changeDetectorRef, parent, group);\n }\n}\nMatOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_OPTION_PARENT_COMPONENT, optional: true }, { token: MAT_OPTGROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatOption, selector: \"mat-option\", host: { attributes: { \"role\": \"option\" }, listeners: { \"click\": \"_selectViaInteraction()\", \"keydown\": \"_handleKeydown($event)\" }, properties: { \"attr.tabindex\": \"_getTabIndex()\", \"class.mat-selected\": \"selected\", \"class.mat-option-multiple\": \"multiple\", \"class.mat-active\": \"active\", \"id\": \"id\", \"attr.aria-selected\": \"_getAriaSelected()\", \"attr.aria-disabled\": \"disabled.toString()\", \"class.mat-option-disabled\": \"disabled\" }, classAttribute: \"mat-option mat-focus-indicator\" }, exportAs: [\"matOption\"], usesInheritance: true, ngImport: i0, template: \"<mat-pseudo-checkbox *ngIf=\\\"multiple\\\" class=\\\"mat-option-pseudo-checkbox\\\"\\n [state]=\\\"selected ? 'checked' : 'unchecked'\\\" [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n<span class=\\\"mat-option-text\\\"><ng-content></ng-content></span>\\n\\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\\n<span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"group && group._inert\\\">({{ group.label }})</span>\\n\\n<div class=\\\"mat-option-ripple\\\" mat-ripple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"disabled || disableRipple\\\">\\n</div>\\n\", styles: [\".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\\n\"], components: [{ type: MatPseudoCheckbox, selector: \"mat-pseudo-checkbox\", inputs: [\"state\", \"disabled\"] }], directives: [{ type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOption, decorators: [{\n type: Component,\n args: [{ selector: 'mat-option', exportAs: 'matOption', host: {\n 'role': 'option',\n '[attr.tabindex]': '_getTabIndex()',\n '[class.mat-selected]': 'selected',\n '[class.mat-option-multiple]': 'multiple',\n '[class.mat-active]': 'active',\n '[id]': 'id',\n '[attr.aria-selected]': '_getAriaSelected()',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[class.mat-option-disabled]': 'disabled',\n '(click)': '_selectViaInteraction()',\n '(keydown)': '_handleKeydown($event)',\n 'class': 'mat-option mat-focus-indicator',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<mat-pseudo-checkbox *ngIf=\\\"multiple\\\" class=\\\"mat-option-pseudo-checkbox\\\"\\n [state]=\\\"selected ? 'checked' : 'unchecked'\\\" [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n<span class=\\\"mat-option-text\\\"><ng-content></ng-content></span>\\n\\n<!-- See a11y notes inside optgroup.ts for context behind this element. -->\\n<span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"group && group._inert\\\">({{ group.label }})</span>\\n\\n<div class=\\\"mat-option-ripple\\\" mat-ripple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"disabled || disableRipple\\\">\\n</div>\\n\", styles: [\".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_OPTION_PARENT_COMPONENT]\n }] }, { type: MatOptgroup, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_OPTGROUP]\n }] }];\n } });\n/**\n * Counts the amount of option group labels that precede the specified option.\n * @param optionIndex Index of the option at which to start counting.\n * @param options Flat list of all of the options.\n * @param optionGroups Flat list of all of the option groups.\n * @docs-private\n */\nfunction _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {\n if (optionGroups.length) {\n let optionsArray = options.toArray();\n let groups = optionGroups.toArray();\n let groupCounter = 0;\n for (let i = 0; i < optionIndex + 1; i++) {\n if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {\n groupCounter++;\n }\n }\n return groupCounter;\n }\n return 0;\n}\n/**\n * Determines the position to which to scroll a panel in order for an option to be into view.\n * @param optionOffset Offset of the option from the top of the panel.\n * @param optionHeight Height of the options.\n * @param currentScrollPosition Current scroll position of the panel.\n * @param panelHeight Height of the panel.\n * @docs-private\n */\nfunction _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {\n if (optionOffset < currentScrollPosition) {\n return optionOffset;\n }\n if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {\n return Math.max(0, optionOffset - panelHeight + optionHeight);\n }\n return currentScrollPosition;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatOptionModule {\n}\nMatOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptionModule, declarations: [MatOption, MatOptgroup], imports: [MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule], exports: [MatOption, MatOptgroup] });\nMatOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptionModule, imports: [[MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatOptionModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatRippleModule, CommonModule, MatCommonModule, MatPseudoCheckboxModule],\n exports: [MatOption, MatOptgroup],\n declarations: [MatOption, MatOptgroup],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AnimationCurves, AnimationDurations, DateAdapter, ErrorStateMatcher, MATERIAL_SANITY_CHECKS, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_OPTION_PARENT_COMPONENT, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatLine, MatLineModule, MatNativeDateModule, MatOptgroup, MatOption, MatOptionModule, MatOptionSelectionChange, MatPseudoCheckbox, MatPseudoCheckboxModule, MatRipple, MatRippleModule, NativeDateAdapter, NativeDateModule, RippleRef, RippleRenderer, ShowOnDirtyErrorStateMatcher, VERSION$1 as VERSION, _MatOptgroupBase, _MatOptionBase, _countGroupLabelsBeforeOption, _getOptionScrollPosition, defaultRippleAnimationConfig, mixinColor, mixinDisableRipple, mixinDisabled, mixinErrorState, mixinInitialized, mixinTabIndex, setLines };\n","import * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, Input, NgModule } from '@angular/core';\nimport * as i2 from '@angular/material/core';\nimport { mixinColor, mixinDisabled, mixinDisableRipple, MatRipple, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i1 from '@angular/cdk/a11y';\n\n/** Default color palette for round buttons (mat-fab and mat-mini-fab) */\nconst DEFAULT_ROUND_BUTTON_COLOR = 'accent';\n/**\n * List of classes to add to MatButton instances based on host attributes to\n * style as different variants.\n */\nconst BUTTON_HOST_ATTRIBUTES = [\n 'mat-button',\n 'mat-flat-button',\n 'mat-icon-button',\n 'mat-raised-button',\n 'mat-stroked-button',\n 'mat-mini-fab',\n 'mat-fab',\n];\n// Boilerplate for applying mixins to MatButton.\nconst _MatButtonBase = mixinColor(mixinDisabled(mixinDisableRipple(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n})));\n/**\n * Material design button.\n */\nclass MatButton extends _MatButtonBase {\n constructor(elementRef, _focusMonitor, _animationMode) {\n super(elementRef);\n this._focusMonitor = _focusMonitor;\n this._animationMode = _animationMode;\n /** Whether the button is round. */\n this.isRoundButton = this._hasHostAttributes('mat-fab', 'mat-mini-fab');\n /** Whether the button is icon button. */\n this.isIconButton = this._hasHostAttributes('mat-icon-button');\n // For each of the variant selectors that is present in the button's host\n // attributes, add the correct corresponding class.\n for (const attr of BUTTON_HOST_ATTRIBUTES) {\n if (this._hasHostAttributes(attr)) {\n this._getHostElement().classList.add(attr);\n }\n }\n // Add a class that applies to all buttons. This makes it easier to target if somebody\n // wants to target all Material buttons. We do it here rather than `host` to ensure that\n // the class is applied to derived classes.\n elementRef.nativeElement.classList.add('mat-button-base');\n if (this.isRoundButton) {\n this.color = DEFAULT_ROUND_BUTTON_COLOR;\n }\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._elementRef, true);\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n /** Focuses the button. */\n focus(origin, options) {\n if (origin) {\n this._focusMonitor.focusVia(this._getHostElement(), origin, options);\n }\n else {\n this._getHostElement().focus(options);\n }\n }\n _getHostElement() {\n return this._elementRef.nativeElement;\n }\n _isRippleDisabled() {\n return this.disableRipple || this.disabled;\n }\n /** Gets whether the button has one of the given attributes. */\n _hasHostAttributes(...attributes) {\n return attributes.some(attribute => this._getHostElement().hasAttribute(attribute));\n }\n}\nMatButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButton, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button],\\n button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],\\n button[mat-flat-button]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", color: \"color\" }, host: { properties: { \"attr.disabled\": \"disabled || null\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\", \"class.mat-button-disabled\": \"disabled\" }, classAttribute: \"mat-focus-indicator\" }, viewQueries: [{ propertyName: \"ripple\", first: true, predicate: MatRipple, descendants: true }], exportAs: [\"matButton\"], usesInheritance: true, ngImport: i0, template: \"<span class=\\\"mat-button-wrapper\\\"><ng-content></ng-content></span>\\n<span matRipple class=\\\"mat-button-ripple\\\"\\n [class.mat-button-ripple-round]=\\\"isRoundButton || isIconButton\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"isIconButton\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"></span>\\n<span class=\\\"mat-button-focus-overlay\\\"></span>\\n\", styles: [\".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\\n\"], directives: [{ type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButton, decorators: [{\n type: Component,\n args: [{ selector: `button[mat-button], button[mat-raised-button], button[mat-icon-button],\n button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],\n button[mat-flat-button]`, exportAs: 'matButton', host: {\n '[attr.disabled]': 'disabled || null',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n // Add a class for disabled button styling instead of the using attribute\n // selector or pseudo-selector. This allows users to create focusabled\n // disabled buttons without recreating the styles.\n '[class.mat-button-disabled]': 'disabled',\n 'class': 'mat-focus-indicator',\n }, inputs: ['disabled', 'disableRipple', 'color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<span class=\\\"mat-button-wrapper\\\"><ng-content></ng-content></span>\\n<span matRipple class=\\\"mat-button-ripple\\\"\\n [class.mat-button-ripple-round]=\\\"isRoundButton || isIconButton\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"isIconButton\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"></span>\\n<span class=\\\"mat-button-focus-overlay\\\"></span>\\n\", styles: [\".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { ripple: [{\n type: ViewChild,\n args: [MatRipple]\n }] } });\n/**\n * Material design anchor button.\n */\nclass MatAnchor extends MatButton {\n constructor(focusMonitor, elementRef, animationMode) {\n super(elementRef, focusMonitor, animationMode);\n }\n _haltDisabledEvents(event) {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n}\nMatAnchor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatAnchor, deps: [{ token: i1.FocusMonitor }, { token: i0.ElementRef }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatAnchor.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatAnchor, selector: \"a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab],\\n a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", color: \"color\", tabIndex: \"tabIndex\" }, host: { listeners: { \"click\": \"_haltDisabledEvents($event)\" }, properties: { \"attr.tabindex\": \"disabled ? -1 : (tabIndex || 0)\", \"attr.disabled\": \"disabled || null\", \"attr.aria-disabled\": \"disabled.toString()\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\", \"class.mat-button-disabled\": \"disabled\" }, classAttribute: \"mat-focus-indicator\" }, exportAs: [\"matButton\", \"matAnchor\"], usesInheritance: true, ngImport: i0, template: \"<span class=\\\"mat-button-wrapper\\\"><ng-content></ng-content></span>\\n<span matRipple class=\\\"mat-button-ripple\\\"\\n [class.mat-button-ripple-round]=\\\"isRoundButton || isIconButton\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"isIconButton\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"></span>\\n<span class=\\\"mat-button-focus-overlay\\\"></span>\\n\", styles: [\".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\\n\"], directives: [{ type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatAnchor, decorators: [{\n type: Component,\n args: [{ selector: `a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab],\n a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]`, exportAs: 'matButton, matAnchor', host: {\n // Note that we ignore the user-specified tabindex when it's disabled for\n // consistency with the `mat-button` applied on native buttons where even\n // though they have an index, they're not tabbable.\n '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',\n '[attr.disabled]': 'disabled || null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '(click)': '_haltDisabledEvents($event)',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n '[class.mat-button-disabled]': 'disabled',\n 'class': 'mat-focus-indicator',\n }, inputs: ['disabled', 'disableRipple', 'color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<span class=\\\"mat-button-wrapper\\\"><ng-content></ng-content></span>\\n<span matRipple class=\\\"mat-button-ripple\\\"\\n [class.mat-button-ripple-round]=\\\"isRoundButton || isIconButton\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"isIconButton\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"></span>\\n<span class=\\\"mat-button-focus-overlay\\\"></span>\\n\", styles: [\".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i1.FocusMonitor }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { tabIndex: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatButtonModule {\n}\nMatButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButtonModule, declarations: [MatButton, MatAnchor], imports: [MatRippleModule, MatCommonModule], exports: [MatButton, MatAnchor, MatCommonModule] });\nMatButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButtonModule, imports: [[MatRippleModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatButtonModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatRippleModule, MatCommonModule],\n exports: [MatButton, MatAnchor, MatCommonModule],\n declarations: [MatButton, MatAnchor],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatAnchor, MatButton, MatButtonModule };\n","import * as i0 from '@angular/core';\nimport { NgModule, Injectable } from '@angular/core';\nimport { coerceArray } from '@angular/cdk/coercion';\nimport { Subject, combineLatest, concat, Observable } from 'rxjs';\nimport { take, skip, debounceTime, map, startWith, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/platform';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass LayoutModule {\n}\nLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LayoutModule });\nLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LayoutModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: LayoutModule, decorators: [{\n type: NgModule,\n args: [{}]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Global registry for all dynamically-created, injected media queries. */\nconst mediaQueriesForWebkitCompatibility = new Set();\n/** Style tag that holds all of the dynamically-created media queries. */\nlet mediaQueryStyleNode;\n/** A utility for calling matchMedia queries. */\nclass MediaMatcher {\n constructor(_platform) {\n this._platform = _platform;\n this._matchMedia =\n this._platform.isBrowser && window.matchMedia\n ? // matchMedia is bound to the window scope intentionally as it is an illegal invocation to\n // call it from a different scope.\n window.matchMedia.bind(window)\n : noopMatchMedia;\n }\n /**\n * Evaluates the given media query and returns the native MediaQueryList from which results\n * can be retrieved.\n * Confirms the layout engine will trigger for the selector query provided and returns the\n * MediaQueryList for the query provided.\n */\n matchMedia(query) {\n if (this._platform.WEBKIT || this._platform.BLINK) {\n createEmptyStyleRule(query);\n }\n return this._matchMedia(query);\n }\n}\nMediaMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MediaMatcher, deps: [{ token: i1.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\nMediaMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MediaMatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MediaMatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () { return [{ type: i1.Platform }]; } });\n/**\n * Creates an empty stylesheet that is used to work around browser inconsistencies related to\n * `matchMedia`. At the time of writing, it handles the following cases:\n * 1. On WebKit browsers, a media query has to have at least one rule in order for `matchMedia`\n * to fire. We work around it by declaring a dummy stylesheet with a `@media` declaration.\n * 2. In some cases Blink browsers will stop firing the `matchMedia` listener if none of the rules\n * inside the `@media` match existing elements on the page. We work around it by having one rule\n * targeting the `body`. See https://github.com/angular/components/issues/23546.\n */\nfunction createEmptyStyleRule(query) {\n if (mediaQueriesForWebkitCompatibility.has(query)) {\n return;\n }\n try {\n if (!mediaQueryStyleNode) {\n mediaQueryStyleNode = document.createElement('style');\n mediaQueryStyleNode.setAttribute('type', 'text/css');\n document.head.appendChild(mediaQueryStyleNode);\n }\n if (mediaQueryStyleNode.sheet) {\n mediaQueryStyleNode.sheet.insertRule(`@media ${query} {body{ }}`, 0);\n mediaQueriesForWebkitCompatibility.add(query);\n }\n }\n catch (e) {\n console.error(e);\n }\n}\n/** No-op matchMedia replacement for non-browser platforms. */\nfunction noopMatchMedia(query) {\n // Use `as any` here to avoid adding additional necessary properties for\n // the noop matcher.\n return {\n matches: query === 'all' || query === '',\n media: query,\n addListener: () => { },\n removeListener: () => { },\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Utility for checking the matching state of @media queries. */\nclass BreakpointObserver {\n constructor(_mediaMatcher, _zone) {\n this._mediaMatcher = _mediaMatcher;\n this._zone = _zone;\n /** A map of all media queries currently being listened for. */\n this._queries = new Map();\n /** A subject for all other observables to takeUntil based on. */\n this._destroySubject = new Subject();\n }\n /** Completes the active subject, signalling to all other observables to complete. */\n ngOnDestroy() {\n this._destroySubject.next();\n this._destroySubject.complete();\n }\n /**\n * Whether one or more media queries match the current viewport size.\n * @param value One or more media queries to check.\n * @returns Whether any of the media queries match.\n */\n isMatched(value) {\n const queries = splitQueries(coerceArray(value));\n return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches);\n }\n /**\n * Gets an observable of results for the given queries that will emit new results for any changes\n * in matching of the given queries.\n * @param value One or more media queries to check.\n * @returns A stream of matches for the given queries.\n */\n observe(value) {\n const queries = splitQueries(coerceArray(value));\n const observables = queries.map(query => this._registerQuery(query).observable);\n let stateObservable = combineLatest(observables);\n // Emit the first state immediately, and then debounce the subsequent emissions.\n stateObservable = concat(stateObservable.pipe(take(1)), stateObservable.pipe(skip(1), debounceTime(0)));\n return stateObservable.pipe(map(breakpointStates => {\n const response = {\n matches: false,\n breakpoints: {},\n };\n breakpointStates.forEach(({ matches, query }) => {\n response.matches = response.matches || matches;\n response.breakpoints[query] = matches;\n });\n return response;\n }));\n }\n /** Registers a specific query to be listened for. */\n _registerQuery(query) {\n // Only set up a new MediaQueryList if it is not already being listened for.\n if (this._queries.has(query)) {\n return this._queries.get(query);\n }\n const mql = this._mediaMatcher.matchMedia(query);\n // Create callback for match changes and add it is as a listener.\n const queryObservable = new Observable((observer) => {\n // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed\n // back into the zone because matchMedia is only included in Zone.js by loading the\n // webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not\n // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js\n // patches it.\n const handler = (e) => this._zone.run(() => observer.next(e));\n mql.addListener(handler);\n return () => {\n mql.removeListener(handler);\n };\n }).pipe(startWith(mql), map(({ matches }) => ({ query, matches })), takeUntil(this._destroySubject));\n // Add the MediaQueryList to the set of queries.\n const output = { observable: queryObservable, mql };\n this._queries.set(query, output);\n return output;\n }\n}\nBreakpointObserver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BreakpointObserver, deps: [{ token: MediaMatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nBreakpointObserver.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BreakpointObserver, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BreakpointObserver, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () { return [{ type: MediaMatcher }, { type: i0.NgZone }]; } });\n/**\n * Split each query string into separate query strings if two queries are provided as comma\n * separated.\n */\nfunction splitQueries(queries) {\n return queries\n .map(query => query.split(','))\n .reduce((a1, a2) => a1.concat(a2))\n .map(query => query.trim());\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// PascalCase is being used as Breakpoints is used like an enum.\n// tslint:disable-next-line:variable-name\nconst Breakpoints = {\n XSmall: '(max-width: 599.98px)',\n Small: '(min-width: 600px) and (max-width: 959.98px)',\n Medium: '(min-width: 960px) and (max-width: 1279.98px)',\n Large: '(min-width: 1280px) and (max-width: 1919.98px)',\n XLarge: '(min-width: 1920px)',\n Handset: '(max-width: 599.98px) and (orientation: portrait), ' +\n '(max-width: 959.98px) and (orientation: landscape)',\n Tablet: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), ' +\n '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',\n Web: '(min-width: 840px) and (orientation: portrait), ' +\n '(min-width: 1280px) and (orientation: landscape)',\n HandsetPortrait: '(max-width: 599.98px) and (orientation: portrait)',\n TabletPortrait: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)',\n WebPortrait: '(min-width: 840px) and (orientation: portrait)',\n HandsetLandscape: '(max-width: 959.98px) and (orientation: landscape)',\n TabletLandscape: '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',\n WebLandscape: '(min-width: 1280px) and (orientation: landscape)',\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BreakpointObserver, Breakpoints, LayoutModule, MediaMatcher };\n","import * as i1$1 from '@angular/cdk/overlay';\nimport { OverlayModule, OverlayConfig } from '@angular/cdk/overlay';\nimport * as i3$1 from '@angular/cdk/portal';\nimport { BasePortalOutlet, CdkPortalOutlet, PortalModule, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, ViewChild, NgModule, Injector, TemplateRef, Injectable, Optional, SkipSelf } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport * as i2 from '@angular/material/button';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Subject } from 'rxjs';\nimport { take, takeUntil } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i1 from '@angular/cdk/platform';\nimport * as i3$2 from '@angular/cdk/layout';\nimport { Breakpoints } from '@angular/cdk/layout';\nimport * as i2$1 from '@angular/cdk/a11y';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to access the data that was passed in to a snack bar. */\nconst MAT_SNACK_BAR_DATA = new InjectionToken('MatSnackBarData');\n/**\n * Configuration used when opening a snack-bar.\n */\nclass MatSnackBarConfig {\n constructor() {\n /** The politeness level for the MatAriaLiveAnnouncer announcement. */\n this.politeness = 'assertive';\n /**\n * Message to be announced by the LiveAnnouncer. When opening a snackbar without a custom\n * component or template, the announcement message will default to the specified message.\n */\n this.announcementMessage = '';\n /** The length of time in milliseconds to wait before automatically dismissing the snack bar. */\n this.duration = 0;\n /** Data being injected into the child component. */\n this.data = null;\n /** The horizontal position to place the snack bar. */\n this.horizontalPosition = 'center';\n /** The vertical position to place the snack bar. */\n this.verticalPosition = 'bottom';\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Maximum amount of milliseconds that can be passed into setTimeout. */\nconst MAX_TIMEOUT = Math.pow(2, 31) - 1;\n/**\n * Reference to a snack bar dispatched from the snack bar service.\n */\nclass MatSnackBarRef {\n constructor(containerInstance, _overlayRef) {\n this._overlayRef = _overlayRef;\n /** Subject for notifying the user that the snack bar has been dismissed. */\n this._afterDismissed = new Subject();\n /** Subject for notifying the user that the snack bar has opened and appeared. */\n this._afterOpened = new Subject();\n /** Subject for notifying the user that the snack bar action was called. */\n this._onAction = new Subject();\n /** Whether the snack bar was dismissed using the action button. */\n this._dismissedByAction = false;\n this.containerInstance = containerInstance;\n // Dismiss snackbar on action.\n this.onAction().subscribe(() => this.dismiss());\n containerInstance._onExit.subscribe(() => this._finishDismiss());\n }\n /** Dismisses the snack bar. */\n dismiss() {\n if (!this._afterDismissed.closed) {\n this.containerInstance.exit();\n }\n clearTimeout(this._durationTimeoutId);\n }\n /** Marks the snackbar action clicked. */\n dismissWithAction() {\n if (!this._onAction.closed) {\n this._dismissedByAction = true;\n this._onAction.next();\n this._onAction.complete();\n }\n clearTimeout(this._durationTimeoutId);\n }\n /**\n * Marks the snackbar action clicked.\n * @deprecated Use `dismissWithAction` instead.\n * @breaking-change 8.0.0\n */\n closeWithAction() {\n this.dismissWithAction();\n }\n /** Dismisses the snack bar after some duration */\n _dismissAfter(duration) {\n // Note that we need to cap the duration to the maximum value for setTimeout, because\n // it'll revert to 1 if somebody passes in something greater (e.g. `Infinity`). See #17234.\n this._durationTimeoutId = setTimeout(() => this.dismiss(), Math.min(duration, MAX_TIMEOUT));\n }\n /** Marks the snackbar as opened */\n _open() {\n if (!this._afterOpened.closed) {\n this._afterOpened.next();\n this._afterOpened.complete();\n }\n }\n /** Cleans up the DOM after closing. */\n _finishDismiss() {\n this._overlayRef.dispose();\n if (!this._onAction.closed) {\n this._onAction.complete();\n }\n this._afterDismissed.next({ dismissedByAction: this._dismissedByAction });\n this._afterDismissed.complete();\n this._dismissedByAction = false;\n }\n /** Gets an observable that is notified when the snack bar is finished closing. */\n afterDismissed() {\n return this._afterDismissed;\n }\n /** Gets an observable that is notified when the snack bar has opened and appeared. */\n afterOpened() {\n return this.containerInstance._onEnter;\n }\n /** Gets an observable that is notified when the snack bar action is called. */\n onAction() {\n return this._onAction;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A component used to open as the default snack bar, matching material spec.\n * This should only be used internally by the snack bar service.\n */\nclass SimpleSnackBar {\n constructor(snackBarRef, data) {\n this.snackBarRef = snackBarRef;\n this.data = data;\n }\n /** Performs the action on the snack bar. */\n action() {\n this.snackBarRef.dismissWithAction();\n }\n /** If the action button should be shown. */\n get hasAction() {\n return !!this.data.action;\n }\n}\nSimpleSnackBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: SimpleSnackBar, deps: [{ token: MatSnackBarRef }, { token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });\nSimpleSnackBar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: SimpleSnackBar, selector: \"simple-snack-bar\", host: { classAttribute: \"mat-simple-snackbar\" }, ngImport: i0, template: \"<span>{{data.message}}</span>\\n<div class=\\\"mat-simple-snackbar-action\\\" *ngIf=\\\"hasAction\\\">\\n <button mat-button (click)=\\\"action()\\\">{{data.action}}</button>\\n</div>\\n\", styles: [\".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\\n\"], components: [{ type: i2.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], directives: [{ type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: SimpleSnackBar, decorators: [{\n type: Component,\n args: [{ selector: 'simple-snack-bar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {\n 'class': 'mat-simple-snackbar',\n }, template: \"<span>{{data.message}}</span>\\n<div class=\\\"mat-simple-snackbar-action\\\" *ngIf=\\\"hasAction\\\">\\n <button mat-button (click)=\\\"action()\\\">{{data.action}}</button>\\n</div>\\n\", styles: [\".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatSnackBarRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_SNACK_BAR_DATA]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material snack bar.\n * @docs-private\n */\nconst matSnackBarAnimations = {\n /** Animation that shows and hides a snack bar. */\n snackBarState: trigger('state', [\n state('void, hidden', style({\n transform: 'scale(0.8)',\n opacity: 0,\n })),\n state('visible', style({\n transform: 'scale(1)',\n opacity: 1,\n })),\n transition('* => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),\n transition('* => void, * => hidden', animate('75ms cubic-bezier(0.4, 0.0, 1, 1)', style({\n opacity: 0,\n }))),\n ]),\n};\n\n/**\n * Internal component that wraps user-provided snack bar content.\n * @docs-private\n */\nclass MatSnackBarContainer extends BasePortalOutlet {\n constructor(_ngZone, _elementRef, _changeDetectorRef, _platform, \n /** The snack bar configuration. */\n snackBarConfig) {\n super();\n this._ngZone = _ngZone;\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._platform = _platform;\n this.snackBarConfig = snackBarConfig;\n /** The number of milliseconds to wait before announcing the snack bar's content. */\n this._announceDelay = 150;\n /** Whether the component has been destroyed. */\n this._destroyed = false;\n /** Subject for notifying that the snack bar has announced to screen readers. */\n this._onAnnounce = new Subject();\n /** Subject for notifying that the snack bar has exited from view. */\n this._onExit = new Subject();\n /** Subject for notifying that the snack bar has finished entering the view. */\n this._onEnter = new Subject();\n /** The state of the snack bar animations. */\n this._animationState = 'void';\n /**\n * Attaches a DOM portal to the snack bar container.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = (portal) => {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachDomPortal(portal);\n };\n // Use aria-live rather than a live role like 'alert' or 'status'\n // because NVDA and JAWS have show inconsistent behavior with live roles.\n if (snackBarConfig.politeness === 'assertive' && !snackBarConfig.announcementMessage) {\n this._live = 'assertive';\n }\n else if (snackBarConfig.politeness === 'off') {\n this._live = 'off';\n }\n else {\n this._live = 'polite';\n }\n // Only set role for Firefox. Set role based on aria-live because setting role=\"alert\" implies\n // aria-live=\"assertive\" which may cause issues if aria-live is set to \"polite\" above.\n if (this._platform.FIREFOX) {\n if (this._live === 'polite') {\n this._role = 'status';\n }\n if (this._live === 'assertive') {\n this._role = 'alert';\n }\n }\n }\n /** Attach a component portal as content to this snack bar container. */\n attachComponentPortal(portal) {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachComponentPortal(portal);\n }\n /** Attach a template portal as content to this snack bar container. */\n attachTemplatePortal(portal) {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachTemplatePortal(portal);\n }\n /** Handle end of animations, updating the state of the snackbar. */\n onAnimationEnd(event) {\n const { fromState, toState } = event;\n if ((toState === 'void' && fromState !== 'void') || toState === 'hidden') {\n this._completeExit();\n }\n if (toState === 'visible') {\n // Note: we shouldn't use `this` inside the zone callback,\n // because it can cause a memory leak.\n const onEnter = this._onEnter;\n this._ngZone.run(() => {\n onEnter.next();\n onEnter.complete();\n });\n }\n }\n /** Begin animation of snack bar entrance into view. */\n enter() {\n if (!this._destroyed) {\n this._animationState = 'visible';\n this._changeDetectorRef.detectChanges();\n this._screenReaderAnnounce();\n }\n }\n /** Begin animation of the snack bar exiting from view. */\n exit() {\n // Note: this one transitions to `hidden`, rather than `void`, in order to handle the case\n // where multiple snack bars are opened in quick succession (e.g. two consecutive calls to\n // `MatSnackBar.open`).\n this._animationState = 'hidden';\n // Mark this element with an 'exit' attribute to indicate that the snackbar has\n // been dismissed and will soon be removed from the DOM. This is used by the snackbar\n // test harness.\n this._elementRef.nativeElement.setAttribute('mat-exit', '');\n // If the snack bar hasn't been announced by the time it exits it wouldn't have been open\n // long enough to visually read it either, so clear the timeout for announcing.\n clearTimeout(this._announceTimeoutId);\n return this._onExit;\n }\n /** Makes sure the exit callbacks have been invoked when the element is destroyed. */\n ngOnDestroy() {\n this._destroyed = true;\n this._completeExit();\n }\n /**\n * Waits for the zone to settle before removing the element. Helps prevent\n * errors where we end up removing an element which is in the middle of an animation.\n */\n _completeExit() {\n this._ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\n this._onExit.next();\n this._onExit.complete();\n });\n }\n /** Applies the various positioning and user-configured CSS classes to the snack bar. */\n _applySnackBarClasses() {\n const element = this._elementRef.nativeElement;\n const panelClasses = this.snackBarConfig.panelClass;\n if (panelClasses) {\n if (Array.isArray(panelClasses)) {\n // Note that we can't use a spread here, because IE doesn't support multiple arguments.\n panelClasses.forEach(cssClass => element.classList.add(cssClass));\n }\n else {\n element.classList.add(panelClasses);\n }\n }\n if (this.snackBarConfig.horizontalPosition === 'center') {\n element.classList.add('mat-snack-bar-center');\n }\n if (this.snackBarConfig.verticalPosition === 'top') {\n element.classList.add('mat-snack-bar-top');\n }\n }\n /** Asserts that no content is already attached to the container. */\n _assertNotAttached() {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Attempting to attach snack bar content after content is already attached');\n }\n }\n /**\n * Starts a timeout to move the snack bar content to the live region so screen readers will\n * announce it.\n */\n _screenReaderAnnounce() {\n if (!this._announceTimeoutId) {\n this._ngZone.runOutsideAngular(() => {\n this._announceTimeoutId = setTimeout(() => {\n const inertElement = this._elementRef.nativeElement.querySelector('[aria-hidden]');\n const liveElement = this._elementRef.nativeElement.querySelector('[aria-live]');\n if (inertElement && liveElement) {\n // If an element in the snack bar content is focused before being moved\n // track it and restore focus after moving to the live region.\n let focusedElement = null;\n if (this._platform.isBrowser &&\n document.activeElement instanceof HTMLElement &&\n inertElement.contains(document.activeElement)) {\n focusedElement = document.activeElement;\n }\n inertElement.removeAttribute('aria-hidden');\n liveElement.appendChild(inertElement);\n focusedElement === null || focusedElement === void 0 ? void 0 : focusedElement.focus();\n this._onAnnounce.next();\n this._onAnnounce.complete();\n }\n }, this._announceDelay);\n });\n }\n }\n}\nMatSnackBarContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarContainer, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.Platform }, { token: MatSnackBarConfig }], target: i0.ɵɵFactoryTarget.Component });\nMatSnackBarContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSnackBarContainer, selector: \"snack-bar-container\", host: { listeners: { \"@state.done\": \"onAnimationEnd($event)\" }, properties: { \"@state\": \"_animationState\" }, classAttribute: \"mat-snack-bar-container\" }, viewQueries: [{ propertyName: \"_portalOutlet\", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: \"<!-- Initially holds the snack bar content, will be empty after announcing to screen readers. -->\\n<div aria-hidden=\\\"true\\\">\\n <ng-template cdkPortalOutlet></ng-template>\\n</div>\\n\\n<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\\n<div [attr.aria-live]=\\\"_live\\\" [attr.role]=\\\"_role\\\"></div>\\n\", styles: [\".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\\n\"], directives: [{ type: i3$1.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [matSnackBarAnimations.snackBarState], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarContainer, decorators: [{\n type: Component,\n args: [{ selector: 'snack-bar-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [matSnackBarAnimations.snackBarState], host: {\n 'class': 'mat-snack-bar-container',\n '[@state]': '_animationState',\n '(@state.done)': 'onAnimationEnd($event)',\n }, template: \"<!-- Initially holds the snack bar content, will be empty after announcing to screen readers. -->\\n<div aria-hidden=\\\"true\\\">\\n <ng-template cdkPortalOutlet></ng-template>\\n</div>\\n\\n<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\\n<div [attr.aria-live]=\\\"_live\\\" [attr.role]=\\\"_role\\\"></div>\\n\", styles: [\".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Platform }, { type: MatSnackBarConfig }]; }, propDecorators: { _portalOutlet: [{\n type: ViewChild,\n args: [CdkPortalOutlet, { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSnackBarModule {\n}\nMatSnackBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSnackBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarModule, declarations: [MatSnackBarContainer, SimpleSnackBar], imports: [OverlayModule, PortalModule, CommonModule, MatButtonModule, MatCommonModule], exports: [MatSnackBarContainer, MatCommonModule] });\nMatSnackBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarModule, imports: [[OverlayModule, PortalModule, CommonModule, MatButtonModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBarModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [OverlayModule, PortalModule, CommonModule, MatButtonModule, MatCommonModule],\n exports: [MatSnackBarContainer, MatCommonModule],\n declarations: [MatSnackBarContainer, SimpleSnackBar],\n }]\n }] });\n\n/** Injection token that can be used to specify default snack bar. */\nconst MAT_SNACK_BAR_DEFAULT_OPTIONS = new InjectionToken('mat-snack-bar-default-options', {\n providedIn: 'root',\n factory: MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY() {\n return new MatSnackBarConfig();\n}\n/**\n * Service to dispatch Material Design snack bar messages.\n */\nclass MatSnackBar {\n constructor(_overlay, _live, _injector, _breakpointObserver, _parentSnackBar, _defaultConfig) {\n this._overlay = _overlay;\n this._live = _live;\n this._injector = _injector;\n this._breakpointObserver = _breakpointObserver;\n this._parentSnackBar = _parentSnackBar;\n this._defaultConfig = _defaultConfig;\n /**\n * Reference to the current snack bar in the view *at this level* (in the Angular injector tree).\n * If there is a parent snack-bar service, all operations should delegate to that parent\n * via `_openedSnackBarRef`.\n */\n this._snackBarRefAtThisLevel = null;\n /** The component that should be rendered as the snack bar's simple component. */\n this.simpleSnackBarComponent = SimpleSnackBar;\n /** The container component that attaches the provided template or component. */\n this.snackBarContainerComponent = MatSnackBarContainer;\n /** The CSS class to apply for handset mode. */\n this.handsetCssClass = 'mat-snack-bar-handset';\n }\n /** Reference to the currently opened snackbar at *any* level. */\n get _openedSnackBarRef() {\n const parent = this._parentSnackBar;\n return parent ? parent._openedSnackBarRef : this._snackBarRefAtThisLevel;\n }\n set _openedSnackBarRef(value) {\n if (this._parentSnackBar) {\n this._parentSnackBar._openedSnackBarRef = value;\n }\n else {\n this._snackBarRefAtThisLevel = value;\n }\n }\n /**\n * Creates and dispatches a snack bar with a custom component for the content, removing any\n * currently opened snack bars.\n *\n * @param component Component to be instantiated.\n * @param config Extra configuration for the snack bar.\n */\n openFromComponent(component, config) {\n return this._attach(component, config);\n }\n /**\n * Creates and dispatches a snack bar with a custom template for the content, removing any\n * currently opened snack bars.\n *\n * @param template Template to be instantiated.\n * @param config Extra configuration for the snack bar.\n */\n openFromTemplate(template, config) {\n return this._attach(template, config);\n }\n /**\n * Opens a snackbar with a message and an optional action.\n * @param message The message to show in the snackbar.\n * @param action The label for the snackbar action.\n * @param config Additional configuration options for the snackbar.\n */\n open(message, action = '', config) {\n const _config = Object.assign(Object.assign({}, this._defaultConfig), config);\n // Since the user doesn't have access to the component, we can\n // override the data to pass in our own message and action.\n _config.data = { message, action };\n // Since the snack bar has `role=\"alert\"`, we don't\n // want to announce the same message twice.\n if (_config.announcementMessage === message) {\n _config.announcementMessage = undefined;\n }\n return this.openFromComponent(this.simpleSnackBarComponent, _config);\n }\n /**\n * Dismisses the currently-visible snack bar.\n */\n dismiss() {\n if (this._openedSnackBarRef) {\n this._openedSnackBarRef.dismiss();\n }\n }\n ngOnDestroy() {\n // Only dismiss the snack bar at the current level on destroy.\n if (this._snackBarRefAtThisLevel) {\n this._snackBarRefAtThisLevel.dismiss();\n }\n }\n /**\n * Attaches the snack bar container component to the overlay.\n */\n _attachSnackBarContainer(overlayRef, config) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const injector = Injector.create({\n parent: userInjector || this._injector,\n providers: [{ provide: MatSnackBarConfig, useValue: config }],\n });\n const containerPortal = new ComponentPortal(this.snackBarContainerComponent, config.viewContainerRef, injector);\n const containerRef = overlayRef.attach(containerPortal);\n containerRef.instance.snackBarConfig = config;\n return containerRef.instance;\n }\n /**\n * Places a new component or a template as the content of the snack bar container.\n */\n _attach(content, userConfig) {\n const config = Object.assign(Object.assign(Object.assign({}, new MatSnackBarConfig()), this._defaultConfig), userConfig);\n const overlayRef = this._createOverlay(config);\n const container = this._attachSnackBarContainer(overlayRef, config);\n const snackBarRef = new MatSnackBarRef(container, overlayRef);\n if (content instanceof TemplateRef) {\n const portal = new TemplatePortal(content, null, {\n $implicit: config.data,\n snackBarRef,\n });\n snackBarRef.instance = container.attachTemplatePortal(portal);\n }\n else {\n const injector = this._createInjector(config, snackBarRef);\n const portal = new ComponentPortal(content, undefined, injector);\n const contentRef = container.attachComponentPortal(portal);\n // We can't pass this via the injector, because the injector is created earlier.\n snackBarRef.instance = contentRef.instance;\n }\n // Subscribe to the breakpoint observer and attach the mat-snack-bar-handset class as\n // appropriate. This class is applied to the overlay element because the overlay must expand to\n // fill the width of the screen for full width snackbars.\n this._breakpointObserver\n .observe(Breakpoints.HandsetPortrait)\n .pipe(takeUntil(overlayRef.detachments()))\n .subscribe(state => {\n overlayRef.overlayElement.classList.toggle(this.handsetCssClass, state.matches);\n });\n if (config.announcementMessage) {\n // Wait until the snack bar contents have been announced then deliver this message.\n container._onAnnounce.subscribe(() => {\n this._live.announce(config.announcementMessage, config.politeness);\n });\n }\n this._animateSnackBar(snackBarRef, config);\n this._openedSnackBarRef = snackBarRef;\n return this._openedSnackBarRef;\n }\n /** Animates the old snack bar out and the new one in. */\n _animateSnackBar(snackBarRef, config) {\n // When the snackbar is dismissed, clear the reference to it.\n snackBarRef.afterDismissed().subscribe(() => {\n // Clear the snackbar ref if it hasn't already been replaced by a newer snackbar.\n if (this._openedSnackBarRef == snackBarRef) {\n this._openedSnackBarRef = null;\n }\n if (config.announcementMessage) {\n this._live.clear();\n }\n });\n if (this._openedSnackBarRef) {\n // If a snack bar is already in view, dismiss it and enter the\n // new snack bar after exit animation is complete.\n this._openedSnackBarRef.afterDismissed().subscribe(() => {\n snackBarRef.containerInstance.enter();\n });\n this._openedSnackBarRef.dismiss();\n }\n else {\n // If no snack bar is in view, enter the new snack bar.\n snackBarRef.containerInstance.enter();\n }\n // If a dismiss timeout is provided, set up dismiss based on after the snackbar is opened.\n if (config.duration && config.duration > 0) {\n snackBarRef.afterOpened().subscribe(() => snackBarRef._dismissAfter(config.duration));\n }\n }\n /**\n * Creates a new overlay and places it in the correct location.\n * @param config The user-specified snack bar config.\n */\n _createOverlay(config) {\n const overlayConfig = new OverlayConfig();\n overlayConfig.direction = config.direction;\n let positionStrategy = this._overlay.position().global();\n // Set horizontal position.\n const isRtl = config.direction === 'rtl';\n const isLeft = config.horizontalPosition === 'left' ||\n (config.horizontalPosition === 'start' && !isRtl) ||\n (config.horizontalPosition === 'end' && isRtl);\n const isRight = !isLeft && config.horizontalPosition !== 'center';\n if (isLeft) {\n positionStrategy.left('0');\n }\n else if (isRight) {\n positionStrategy.right('0');\n }\n else {\n positionStrategy.centerHorizontally();\n }\n // Set horizontal position.\n if (config.verticalPosition === 'top') {\n positionStrategy.top('0');\n }\n else {\n positionStrategy.bottom('0');\n }\n overlayConfig.positionStrategy = positionStrategy;\n return this._overlay.create(overlayConfig);\n }\n /**\n * Creates an injector to be used inside of a snack bar component.\n * @param config Config that was used to create the snack bar.\n * @param snackBarRef Reference to the snack bar.\n */\n _createInjector(config, snackBarRef) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n return Injector.create({\n parent: userInjector || this._injector,\n providers: [\n { provide: MatSnackBarRef, useValue: snackBarRef },\n { provide: MAT_SNACK_BAR_DATA, useValue: config.data },\n ],\n });\n }\n}\nMatSnackBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBar, deps: [{ token: i1$1.Overlay }, { token: i2$1.LiveAnnouncer }, { token: i0.Injector }, { token: i3$2.BreakpointObserver }, { token: MatSnackBar, optional: true, skipSelf: true }, { token: MAT_SNACK_BAR_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });\nMatSnackBar.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBar, providedIn: MatSnackBarModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSnackBar, decorators: [{\n type: Injectable,\n args: [{ providedIn: MatSnackBarModule }]\n }], ctorParameters: function () {\n return [{ type: i1$1.Overlay }, { type: i2$1.LiveAnnouncer }, { type: i0.Injector }, { type: i3$2.BreakpointObserver }, { type: MatSnackBar, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }, { type: MatSnackBarConfig, decorators: [{\n type: Inject,\n args: [MAT_SNACK_BAR_DEFAULT_OPTIONS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBar, MatSnackBarConfig, MatSnackBarContainer, MatSnackBarModule, MatSnackBarRef, SimpleSnackBar, matSnackBarAnimations };\n","import * as i0 from '@angular/core';\nimport { SecurityContext, Injectable, Optional, Inject, SkipSelf, ErrorHandler, InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Input, NgModule } from '@angular/core';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT } from '@angular/common';\nimport { of, throwError, forkJoin, Subscription } from 'rxjs';\nimport { tap, map, catchError, finalize, share, take } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpClient } from '@angular/common/http';\nimport * as i2 from '@angular/platform-browser';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n policy = null;\n if (typeof window !== 'undefined') {\n const ttWindow = window;\n if (ttWindow.trustedTypes !== undefined) {\n policy = ttWindow.trustedTypes.createPolicy('angular#components', {\n createHTML: (s) => s,\n });\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n var _a;\n return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an exception to be thrown in the case when attempting to\n * load an icon with a name that cannot be found.\n * @docs-private\n */\nfunction getMatIconNameNotFoundError(iconName) {\n return Error(`Unable to find icon with the name \"${iconName}\"`);\n}\n/**\n * Returns an exception to be thrown when the consumer attempts to use\n * `<mat-icon>` without including @angular/common/http.\n * @docs-private\n */\nfunction getMatIconNoHttpProviderError() {\n return Error('Could not find HttpClient provider for use with Angular Material icons. ' +\n 'Please include the HttpClientModule from @angular/common/http in your ' +\n 'app imports.');\n}\n/**\n * Returns an exception to be thrown when a URL couldn't be sanitized.\n * @param url URL that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeUrlError(url) {\n return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL ` +\n `via Angular's DomSanitizer. Attempted URL was \"${url}\".`);\n}\n/**\n * Returns an exception to be thrown when a HTML string couldn't be sanitized.\n * @param literal HTML that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeLiteralError(literal) {\n return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by ` +\n `Angular's DomSanitizer. Attempted literal was \"${literal}\".`);\n}\n/**\n * Configuration for an icon, including the URL and possibly the cached SVG element.\n * @docs-private\n */\nclass SvgIconConfig {\n constructor(url, svgText, options) {\n this.url = url;\n this.svgText = svgText;\n this.options = options;\n }\n}\n/**\n * Service to register and display icons used by the `<mat-icon>` component.\n * - Registers icon URLs by namespace and name.\n * - Registers icon set URLs by namespace.\n * - Registers aliases for CSS classes, for use with icon fonts.\n * - Loads icons from URLs and extracts individual icons from icon sets.\n */\nclass MatIconRegistry {\n constructor(_httpClient, _sanitizer, document, _errorHandler) {\n this._httpClient = _httpClient;\n this._sanitizer = _sanitizer;\n this._errorHandler = _errorHandler;\n /**\n * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n */\n this._svgIconConfigs = new Map();\n /**\n * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n * Multiple icon sets can be registered under the same namespace.\n */\n this._iconSetConfigs = new Map();\n /** Cache for icons loaded by direct URLs. */\n this._cachedIconsByUrl = new Map();\n /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */\n this._inProgressUrlFetches = new Map();\n /** Map from font identifiers to their CSS class names. Used for icon fonts. */\n this._fontCssClassesByAlias = new Map();\n /** Registered icon resolver functions. */\n this._resolvers = [];\n /**\n * The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.\n * The default 'material-icons' value assumes that the material icon font has been loaded as\n * described at http://google.github.io/material-design-icons/#icon-font-for-the-web\n */\n this._defaultFontSetClass = 'material-icons';\n this._document = document;\n }\n /**\n * Registers an icon by URL in the default namespace.\n * @param iconName Name under which the icon should be registered.\n * @param url\n */\n addSvgIcon(iconName, url, options) {\n return this.addSvgIconInNamespace('', iconName, url, options);\n }\n /**\n * Registers an icon using an HTML string in the default namespace.\n * @param iconName Name under which the icon should be registered.\n * @param literal SVG source of the icon.\n */\n addSvgIconLiteral(iconName, literal, options) {\n return this.addSvgIconLiteralInNamespace('', iconName, literal, options);\n }\n /**\n * Registers an icon by URL in the specified namespace.\n * @param namespace Namespace in which the icon should be registered.\n * @param iconName Name under which the icon should be registered.\n * @param url\n */\n addSvgIconInNamespace(namespace, iconName, url, options) {\n return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig(url, null, options));\n }\n /**\n * Registers an icon resolver function with the registry. The function will be invoked with the\n * name and namespace of an icon when the registry tries to resolve the URL from which to fetch\n * the icon. The resolver is expected to return a `SafeResourceUrl` that points to the icon,\n * an object with the icon URL and icon options, or `null` if the icon is not supported. Resolvers\n * will be invoked in the order in which they have been registered.\n * @param resolver Resolver function to be registered.\n */\n addSvgIconResolver(resolver) {\n this._resolvers.push(resolver);\n return this;\n }\n /**\n * Registers an icon using an HTML string in the specified namespace.\n * @param namespace Namespace in which the icon should be registered.\n * @param iconName Name under which the icon should be registered.\n * @param literal SVG source of the icon.\n */\n addSvgIconLiteralInNamespace(namespace, iconName, literal, options) {\n const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n // TODO: add an ngDevMode check\n if (!cleanLiteral) {\n throw getMatIconFailedToSanitizeLiteralError(literal);\n }\n // Security: The literal is passed in as SafeHtml, and is thus trusted.\n const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig('', trustedLiteral, options));\n }\n /**\n * Registers an icon set by URL in the default namespace.\n * @param url\n */\n addSvgIconSet(url, options) {\n return this.addSvgIconSetInNamespace('', url, options);\n }\n /**\n * Registers an icon set using an HTML string in the default namespace.\n * @param literal SVG source of the icon set.\n */\n addSvgIconSetLiteral(literal, options) {\n return this.addSvgIconSetLiteralInNamespace('', literal, options);\n }\n /**\n * Registers an icon set by URL in the specified namespace.\n * @param namespace Namespace in which to register the icon set.\n * @param url\n */\n addSvgIconSetInNamespace(namespace, url, options) {\n return this._addSvgIconSetConfig(namespace, new SvgIconConfig(url, null, options));\n }\n /**\n * Registers an icon set using an HTML string in the specified namespace.\n * @param namespace Namespace in which to register the icon set.\n * @param literal SVG source of the icon set.\n */\n addSvgIconSetLiteralInNamespace(namespace, literal, options) {\n const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n if (!cleanLiteral) {\n throw getMatIconFailedToSanitizeLiteralError(literal);\n }\n // Security: The literal is passed in as SafeHtml, and is thus trusted.\n const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n return this._addSvgIconSetConfig(namespace, new SvgIconConfig('', trustedLiteral, options));\n }\n /**\n * Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon\n * component with the alias as the fontSet input will cause the class name to be applied\n * to the `<mat-icon>` element.\n *\n * @param alias Alias for the font.\n * @param className Class name override to be used instead of the alias.\n */\n registerFontClassAlias(alias, className = alias) {\n this._fontCssClassesByAlias.set(alias, className);\n return this;\n }\n /**\n * Returns the CSS class name associated with the alias by a previous call to\n * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.\n */\n classNameForFontAlias(alias) {\n return this._fontCssClassesByAlias.get(alias) || alias;\n }\n /**\n * Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n *\n * @param className\n */\n setDefaultFontSetClass(className) {\n this._defaultFontSetClass = className;\n return this;\n }\n /**\n * Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n */\n getDefaultFontSetClass() {\n return this._defaultFontSetClass;\n }\n /**\n * Returns an Observable that produces the icon (as an `<svg>` DOM element) from the given URL.\n * The response from the URL may be cached so this will not always cause an HTTP request, but\n * the produced element will always be a new copy of the originally fetched icon. (That is,\n * it will not contain any modifications made to elements previously returned).\n *\n * @param safeUrl URL from which to fetch the SVG icon.\n */\n getSvgIconFromUrl(safeUrl) {\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n if (!url) {\n throw getMatIconFailedToSanitizeUrlError(safeUrl);\n }\n const cachedIcon = this._cachedIconsByUrl.get(url);\n if (cachedIcon) {\n return of(cloneSvg(cachedIcon));\n }\n return this._loadSvgIconFromConfig(new SvgIconConfig(safeUrl, null)).pipe(tap(svg => this._cachedIconsByUrl.set(url, svg)), map(svg => cloneSvg(svg)));\n }\n /**\n * Returns an Observable that produces the icon (as an `<svg>` DOM element) with the given name\n * and namespace. The icon must have been previously registered with addIcon or addIconSet;\n * if not, the Observable will throw an error.\n *\n * @param name Name of the icon to be retrieved.\n * @param namespace Namespace in which to look for the icon.\n */\n getNamedSvgIcon(name, namespace = '') {\n const key = iconKey(namespace, name);\n let config = this._svgIconConfigs.get(key);\n // Return (copy of) cached icon if possible.\n if (config) {\n return this._getSvgFromConfig(config);\n }\n // Otherwise try to resolve the config from one of the resolver functions.\n config = this._getIconConfigFromResolvers(namespace, name);\n if (config) {\n this._svgIconConfigs.set(key, config);\n return this._getSvgFromConfig(config);\n }\n // See if we have any icon sets registered for the namespace.\n const iconSetConfigs = this._iconSetConfigs.get(namespace);\n if (iconSetConfigs) {\n return this._getSvgFromIconSetConfigs(name, iconSetConfigs);\n }\n return throwError(getMatIconNameNotFoundError(key));\n }\n ngOnDestroy() {\n this._resolvers = [];\n this._svgIconConfigs.clear();\n this._iconSetConfigs.clear();\n this._cachedIconsByUrl.clear();\n }\n /**\n * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.\n */\n _getSvgFromConfig(config) {\n if (config.svgText) {\n // We already have the SVG element for this icon, return a copy.\n return of(cloneSvg(this._svgElementFromConfig(config)));\n }\n else {\n // Fetch the icon from the config's URL, cache it, and return a copy.\n return this._loadSvgIconFromConfig(config).pipe(map(svg => cloneSvg(svg)));\n }\n }\n /**\n * Attempts to find an icon with the specified name in any of the SVG icon sets.\n * First searches the available cached icons for a nested element with a matching name, and\n * if found copies the element to a new `<svg>` element. If not found, fetches all icon sets\n * that have not been cached, and searches again after all fetches are completed.\n * The returned Observable produces the SVG element if possible, and throws\n * an error if no icon with the specified name can be found.\n */\n _getSvgFromIconSetConfigs(name, iconSetConfigs) {\n // For all the icon set SVG elements we've fetched, see if any contain an icon with the\n // requested name.\n const namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n if (namedIcon) {\n // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every\n // time anyway, there's probably not much advantage compared to just always extracting\n // it from the icon set.\n return of(namedIcon);\n }\n // Not found in any cached icon sets. If there are icon sets with URLs that we haven't\n // fetched, fetch them now and look for iconName in the results.\n const iconSetFetchRequests = iconSetConfigs\n .filter(iconSetConfig => !iconSetConfig.svgText)\n .map(iconSetConfig => {\n return this._loadSvgIconSetFromConfig(iconSetConfig).pipe(catchError((err) => {\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, iconSetConfig.url);\n // Swallow errors fetching individual URLs so the\n // combined Observable won't necessarily fail.\n const errorMessage = `Loading icon set URL: ${url} failed: ${err.message}`;\n this._errorHandler.handleError(new Error(errorMessage));\n return of(null);\n }));\n });\n // Fetch all the icon set URLs. When the requests complete, every IconSet should have a\n // cached SVG element (unless the request failed), and we can check again for the icon.\n return forkJoin(iconSetFetchRequests).pipe(map(() => {\n const foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n // TODO: add an ngDevMode check\n if (!foundIcon) {\n throw getMatIconNameNotFoundError(name);\n }\n return foundIcon;\n }));\n }\n /**\n * Searches the cached SVG elements for the given icon sets for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n */\n _extractIconWithNameFromAnySet(iconName, iconSetConfigs) {\n // Iterate backwards, so icon sets added later have precedence.\n for (let i = iconSetConfigs.length - 1; i >= 0; i--) {\n const config = iconSetConfigs[i];\n // Parsing the icon set's text into an SVG element can be expensive. We can avoid some of\n // the parsing by doing a quick check using `indexOf` to see if there's any chance for the\n // icon to be in the set. This won't be 100% accurate, but it should help us avoid at least\n // some of the parsing.\n if (config.svgText && config.svgText.toString().indexOf(iconName) > -1) {\n const svg = this._svgElementFromConfig(config);\n const foundIcon = this._extractSvgIconFromSet(svg, iconName, config.options);\n if (foundIcon) {\n return foundIcon;\n }\n }\n }\n return null;\n }\n /**\n * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element\n * from it.\n */\n _loadSvgIconFromConfig(config) {\n return this._fetchIcon(config).pipe(tap(svgText => (config.svgText = svgText)), map(() => this._svgElementFromConfig(config)));\n }\n /**\n * Loads the content of the icon set URL specified in the\n * SvgIconConfig and attaches it to the config.\n */\n _loadSvgIconSetFromConfig(config) {\n if (config.svgText) {\n return of(null);\n }\n return this._fetchIcon(config).pipe(tap(svgText => (config.svgText = svgText)));\n }\n /**\n * Searches the cached element of the given SvgIconConfig for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n */\n _extractSvgIconFromSet(iconSet, iconName, options) {\n // Use the `id=\"iconName\"` syntax in order to escape special\n // characters in the ID (versus using the #iconName syntax).\n const iconSource = iconSet.querySelector(`[id=\"${iconName}\"]`);\n if (!iconSource) {\n return null;\n }\n // Clone the element and remove the ID to prevent multiple elements from being added\n // to the page with the same ID.\n const iconElement = iconSource.cloneNode(true);\n iconElement.removeAttribute('id');\n // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as\n // the content of a new <svg> node.\n if (iconElement.nodeName.toLowerCase() === 'svg') {\n return this._setSvgAttributes(iconElement, options);\n }\n // If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note\n // that the same could be achieved by referring to it via <use href=\"#id\">, however the <use>\n // tag is problematic on Firefox, because it needs to include the current page path.\n if (iconElement.nodeName.toLowerCase() === 'symbol') {\n return this._setSvgAttributes(this._toSvgElement(iconElement), options);\n }\n // createElement('SVG') doesn't work as expected; the DOM ends up with\n // the correct nodes, but the SVG content doesn't render. Instead we\n // have to create an empty SVG node using innerHTML and append its content.\n // Elements created using DOMParser.parseFromString have the same problem.\n // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display\n const svg = this._svgElementFromString(trustedHTMLFromString('<svg></svg>'));\n // Clone the node so we don't remove it from the parent icon set element.\n svg.appendChild(iconElement);\n return this._setSvgAttributes(svg, options);\n }\n /**\n * Creates a DOM element from the given SVG string.\n */\n _svgElementFromString(str) {\n const div = this._document.createElement('DIV');\n div.innerHTML = str;\n const svg = div.querySelector('svg');\n // TODO: add an ngDevMode check\n if (!svg) {\n throw Error('<svg> tag not found');\n }\n return svg;\n }\n /**\n * Converts an element into an SVG node by cloning all of its children.\n */\n _toSvgElement(element) {\n const svg = this._svgElementFromString(trustedHTMLFromString('<svg></svg>'));\n const attributes = element.attributes;\n // Copy over all the attributes from the `symbol` to the new SVG, except the id.\n for (let i = 0; i < attributes.length; i++) {\n const { name, value } = attributes[i];\n if (name !== 'id') {\n svg.setAttribute(name, value);\n }\n }\n for (let i = 0; i < element.childNodes.length; i++) {\n if (element.childNodes[i].nodeType === this._document.ELEMENT_NODE) {\n svg.appendChild(element.childNodes[i].cloneNode(true));\n }\n }\n return svg;\n }\n /**\n * Sets the default attributes for an SVG element to be used as an icon.\n */\n _setSvgAttributes(svg, options) {\n svg.setAttribute('fit', '');\n svg.setAttribute('height', '100%');\n svg.setAttribute('width', '100%');\n svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.\n if (options && options.viewBox) {\n svg.setAttribute('viewBox', options.viewBox);\n }\n return svg;\n }\n /**\n * Returns an Observable which produces the string contents of the given icon. Results may be\n * cached, so future calls with the same URL may not cause another HTTP request.\n */\n _fetchIcon(iconConfig) {\n var _a;\n const { url: safeUrl, options } = iconConfig;\n const withCredentials = (_a = options === null || options === void 0 ? void 0 : options.withCredentials) !== null && _a !== void 0 ? _a : false;\n if (!this._httpClient) {\n throw getMatIconNoHttpProviderError();\n }\n // TODO: add an ngDevMode check\n if (safeUrl == null) {\n throw Error(`Cannot fetch icon from URL \"${safeUrl}\".`);\n }\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n // TODO: add an ngDevMode check\n if (!url) {\n throw getMatIconFailedToSanitizeUrlError(safeUrl);\n }\n // Store in-progress fetches to avoid sending a duplicate request for a URL when there is\n // already a request in progress for that URL. It's necessary to call share() on the\n // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.\n const inProgressFetch = this._inProgressUrlFetches.get(url);\n if (inProgressFetch) {\n return inProgressFetch;\n }\n const req = this._httpClient.get(url, { responseType: 'text', withCredentials }).pipe(map(svg => {\n // Security: This SVG is fetched from a SafeResourceUrl, and is thus\n // trusted HTML.\n return trustedHTMLFromString(svg);\n }), finalize(() => this._inProgressUrlFetches.delete(url)), share());\n this._inProgressUrlFetches.set(url, req);\n return req;\n }\n /**\n * Registers an icon config by name in the specified namespace.\n * @param namespace Namespace in which to register the icon config.\n * @param iconName Name under which to register the config.\n * @param config Config to be registered.\n */\n _addSvgIconConfig(namespace, iconName, config) {\n this._svgIconConfigs.set(iconKey(namespace, iconName), config);\n return this;\n }\n /**\n * Registers an icon set config in the specified namespace.\n * @param namespace Namespace in which to register the icon config.\n * @param config Config to be registered.\n */\n _addSvgIconSetConfig(namespace, config) {\n const configNamespace = this._iconSetConfigs.get(namespace);\n if (configNamespace) {\n configNamespace.push(config);\n }\n else {\n this._iconSetConfigs.set(namespace, [config]);\n }\n return this;\n }\n /** Parses a config's text into an SVG element. */\n _svgElementFromConfig(config) {\n if (!config.svgElement) {\n const svg = this._svgElementFromString(config.svgText);\n this._setSvgAttributes(svg, config.options);\n config.svgElement = svg;\n }\n return config.svgElement;\n }\n /** Tries to create an icon config through the registered resolver functions. */\n _getIconConfigFromResolvers(namespace, name) {\n for (let i = 0; i < this._resolvers.length; i++) {\n const result = this._resolvers[i](name, namespace);\n if (result) {\n return isSafeUrlWithOptions(result)\n ? new SvgIconConfig(result.url, null, result.options)\n : new SvgIconConfig(result, null);\n }\n }\n return undefined;\n }\n}\nMatIconRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconRegistry, deps: [{ token: i1.HttpClient, optional: true }, { token: i2.DomSanitizer }, { token: DOCUMENT, optional: true }, { token: i0.ErrorHandler }], target: i0.ɵɵFactoryTarget.Injectable });\nMatIconRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconRegistry, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconRegistry, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: i1.HttpClient, decorators: [{\n type: Optional\n }] }, { type: i2.DomSanitizer }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i0.ErrorHandler }];\n } });\n/** @docs-private */\nfunction ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, httpClient, sanitizer, errorHandler, document) {\n return parentRegistry || new MatIconRegistry(httpClient, sanitizer, document, errorHandler);\n}\n/** @docs-private */\nconst ICON_REGISTRY_PROVIDER = {\n // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one.\n provide: MatIconRegistry,\n deps: [\n [new Optional(), new SkipSelf(), MatIconRegistry],\n [new Optional(), HttpClient],\n DomSanitizer,\n ErrorHandler,\n [new Optional(), DOCUMENT],\n ],\n useFactory: ICON_REGISTRY_PROVIDER_FACTORY,\n};\n/** Clones an SVGElement while preserving type information. */\nfunction cloneSvg(svg) {\n return svg.cloneNode(true);\n}\n/** Returns the cache key to use for an icon namespace and name. */\nfunction iconKey(namespace, name) {\n return namespace + ':' + name;\n}\nfunction isSafeUrlWithOptions(value) {\n return !!(value.url && value.options);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatIcon.\n/** @docs-private */\nconst _MatIconBase = mixinColor(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n});\n/**\n * Injection token used to provide the current location to `MatIcon`.\n * Used to handle server-side rendering and to stub out during unit tests.\n * @docs-private\n */\nconst MAT_ICON_LOCATION = new InjectionToken('mat-icon-location', {\n providedIn: 'root',\n factory: MAT_ICON_LOCATION_FACTORY,\n});\n/** @docs-private */\nfunction MAT_ICON_LOCATION_FACTORY() {\n const _document = inject(DOCUMENT);\n const _location = _document ? _document.location : null;\n return {\n // Note that this needs to be a function, rather than a property, because Angular\n // will only resolve it once, but we want the current path on each call.\n getPathname: () => (_location ? _location.pathname + _location.search : ''),\n };\n}\n/** SVG attributes that accept a FuncIRI (e.g. `url(<something>)`). */\nconst funcIriAttributes = [\n 'clip-path',\n 'color-profile',\n 'src',\n 'cursor',\n 'fill',\n 'filter',\n 'marker',\n 'marker-start',\n 'marker-mid',\n 'marker-end',\n 'mask',\n 'stroke',\n];\n/** Selector that can be used to find all elements that are using a `FuncIRI`. */\nconst funcIriAttributeSelector = funcIriAttributes.map(attr => `[${attr}]`).join(', ');\n/** Regex that can be used to extract the id out of a FuncIRI. */\nconst funcIriPattern = /^url\\(['\"]?#(.*?)['\"]?\\)$/;\n/**\n * Component to display an icon. It can be used in the following ways:\n *\n * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the\n * addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of\n * MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format\n * \"[namespace]:[name]\", if not the value will be the name of an icon in the default namespace.\n * Examples:\n * `<mat-icon svgIcon=\"left-arrow\"></mat-icon>\n * <mat-icon svgIcon=\"animals:cat\"></mat-icon>`\n *\n * - Use a font ligature as an icon by putting the ligature text in the content of the `<mat-icon>`\n * component. By default the Material icons font is used as described at\n * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an\n * alternate font by setting the fontSet input to either the CSS class to apply to use the\n * desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.\n * Examples:\n * `<mat-icon>home</mat-icon>\n * <mat-icon fontSet=\"myfont\">sun</mat-icon>`\n *\n * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the\n * font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a\n * CSS class which causes the glyph to be displayed via a :before selector, as in\n * https://fortawesome.github.io/Font-Awesome/examples/\n * Example:\n * `<mat-icon fontSet=\"fa\" fontIcon=\"alarm\"></mat-icon>`\n */\nclass MatIcon extends _MatIconBase {\n constructor(elementRef, _iconRegistry, ariaHidden, _location, _errorHandler) {\n super(elementRef);\n this._iconRegistry = _iconRegistry;\n this._location = _location;\n this._errorHandler = _errorHandler;\n this._inline = false;\n /** Subscription to the current in-progress SVG icon request. */\n this._currentIconFetch = Subscription.EMPTY;\n // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is\n // the right thing to do for the majority of icon use-cases.\n if (!ariaHidden) {\n elementRef.nativeElement.setAttribute('aria-hidden', 'true');\n }\n }\n /**\n * Whether the icon should be inlined, automatically sizing the icon to match the font size of\n * the element the icon is contained in.\n */\n get inline() {\n return this._inline;\n }\n set inline(inline) {\n this._inline = coerceBooleanProperty(inline);\n }\n /** Name of the icon in the SVG icon set. */\n get svgIcon() {\n return this._svgIcon;\n }\n set svgIcon(value) {\n if (value !== this._svgIcon) {\n if (value) {\n this._updateSvgIcon(value);\n }\n else if (this._svgIcon) {\n this._clearSvgElement();\n }\n this._svgIcon = value;\n }\n }\n /** Font set that the icon is a part of. */\n get fontSet() {\n return this._fontSet;\n }\n set fontSet(value) {\n const newValue = this._cleanupFontValue(value);\n if (newValue !== this._fontSet) {\n this._fontSet = newValue;\n this._updateFontIconClasses();\n }\n }\n /** Name of an icon within a font set. */\n get fontIcon() {\n return this._fontIcon;\n }\n set fontIcon(value) {\n const newValue = this._cleanupFontValue(value);\n if (newValue !== this._fontIcon) {\n this._fontIcon = newValue;\n this._updateFontIconClasses();\n }\n }\n /**\n * Splits an svgIcon binding value into its icon set and icon name components.\n * Returns a 2-element array of [(icon set), (icon name)].\n * The separator for the two fields is ':'. If there is no separator, an empty\n * string is returned for the icon set and the entire value is returned for\n * the icon name. If the argument is falsy, returns an array of two empty strings.\n * Throws an error if the name contains two or more ':' separators.\n * Examples:\n * `'social:cake' -> ['social', 'cake']\n * 'penguin' -> ['', 'penguin']\n * null -> ['', '']\n * 'a:b:c' -> (throws Error)`\n */\n _splitIconName(iconName) {\n if (!iconName) {\n return ['', ''];\n }\n const parts = iconName.split(':');\n switch (parts.length) {\n case 1:\n return ['', parts[0]]; // Use default namespace.\n case 2:\n return parts;\n default:\n throw Error(`Invalid icon name: \"${iconName}\"`); // TODO: add an ngDevMode check\n }\n }\n ngOnInit() {\n // Update font classes because ngOnChanges won't be called if none of the inputs are present,\n // e.g. <mat-icon>arrow</mat-icon> In this case we need to add a CSS class for the default font.\n this._updateFontIconClasses();\n }\n ngAfterViewChecked() {\n const cachedElements = this._elementsWithExternalReferences;\n if (cachedElements && cachedElements.size) {\n const newPath = this._location.getPathname();\n // We need to check whether the URL has changed on each change detection since\n // the browser doesn't have an API that will let us react on link clicks and\n // we can't depend on the Angular router. The references need to be updated,\n // because while most browsers don't care whether the URL is correct after\n // the first render, Safari will break if the user navigates to a different\n // page and the SVG isn't re-rendered.\n if (newPath !== this._previousPath) {\n this._previousPath = newPath;\n this._prependPathToReferences(newPath);\n }\n }\n }\n ngOnDestroy() {\n this._currentIconFetch.unsubscribe();\n if (this._elementsWithExternalReferences) {\n this._elementsWithExternalReferences.clear();\n }\n }\n _usingFontIcon() {\n return !this.svgIcon;\n }\n _setSvgElement(svg) {\n this._clearSvgElement();\n // Workaround for IE11 and Edge ignoring `style` tags inside dynamically-created SVGs.\n // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/\n // Do this before inserting the element into the DOM, in order to avoid a style recalculation.\n const styleTags = svg.querySelectorAll('style');\n for (let i = 0; i < styleTags.length; i++) {\n styleTags[i].textContent += ' ';\n }\n // Note: we do this fix here, rather than the icon registry, because the\n // references have to point to the URL at the time that the icon was created.\n const path = this._location.getPathname();\n this._previousPath = path;\n this._cacheChildrenWithExternalReferences(svg);\n this._prependPathToReferences(path);\n this._elementRef.nativeElement.appendChild(svg);\n }\n _clearSvgElement() {\n const layoutElement = this._elementRef.nativeElement;\n let childCount = layoutElement.childNodes.length;\n if (this._elementsWithExternalReferences) {\n this._elementsWithExternalReferences.clear();\n }\n // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that\n // we can't use innerHTML, because IE will throw if the element has a data binding.\n while (childCount--) {\n const child = layoutElement.childNodes[childCount];\n // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid\n // of any loose text nodes, as well as any SVG elements in order to remove any old icons.\n if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') {\n child.remove();\n }\n }\n }\n _updateFontIconClasses() {\n if (!this._usingFontIcon()) {\n return;\n }\n const elem = this._elementRef.nativeElement;\n const fontSetClass = this.fontSet\n ? this._iconRegistry.classNameForFontAlias(this.fontSet)\n : this._iconRegistry.getDefaultFontSetClass();\n if (fontSetClass != this._previousFontSetClass) {\n if (this._previousFontSetClass) {\n elem.classList.remove(this._previousFontSetClass);\n }\n if (fontSetClass) {\n elem.classList.add(fontSetClass);\n }\n this._previousFontSetClass = fontSetClass;\n }\n if (this.fontIcon != this._previousFontIconClass) {\n if (this._previousFontIconClass) {\n elem.classList.remove(this._previousFontIconClass);\n }\n if (this.fontIcon) {\n elem.classList.add(this.fontIcon);\n }\n this._previousFontIconClass = this.fontIcon;\n }\n }\n /**\n * Cleans up a value to be used as a fontIcon or fontSet.\n * Since the value ends up being assigned as a CSS class, we\n * have to trim the value and omit space-separated values.\n */\n _cleanupFontValue(value) {\n return typeof value === 'string' ? value.trim().split(' ')[0] : value;\n }\n /**\n * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`\n * reference. This is required because WebKit browsers require references to be prefixed with\n * the current path, if the page has a `base` tag.\n */\n _prependPathToReferences(path) {\n const elements = this._elementsWithExternalReferences;\n if (elements) {\n elements.forEach((attrs, element) => {\n attrs.forEach(attr => {\n element.setAttribute(attr.name, `url('${path}#${attr.value}')`);\n });\n });\n }\n }\n /**\n * Caches the children of an SVG element that have `url()`\n * references that we need to prefix with the current path.\n */\n _cacheChildrenWithExternalReferences(element) {\n const elementsWithFuncIri = element.querySelectorAll(funcIriAttributeSelector);\n const elements = (this._elementsWithExternalReferences =\n this._elementsWithExternalReferences || new Map());\n for (let i = 0; i < elementsWithFuncIri.length; i++) {\n funcIriAttributes.forEach(attr => {\n const elementWithReference = elementsWithFuncIri[i];\n const value = elementWithReference.getAttribute(attr);\n const match = value ? value.match(funcIriPattern) : null;\n if (match) {\n let attributes = elements.get(elementWithReference);\n if (!attributes) {\n attributes = [];\n elements.set(elementWithReference, attributes);\n }\n attributes.push({ name: attr, value: match[1] });\n }\n });\n }\n }\n /** Sets a new SVG icon with a particular name. */\n _updateSvgIcon(rawName) {\n this._svgNamespace = null;\n this._svgName = null;\n this._currentIconFetch.unsubscribe();\n if (rawName) {\n const [namespace, iconName] = this._splitIconName(rawName);\n if (namespace) {\n this._svgNamespace = namespace;\n }\n if (iconName) {\n this._svgName = iconName;\n }\n this._currentIconFetch = this._iconRegistry\n .getNamedSvgIcon(iconName, namespace)\n .pipe(take(1))\n .subscribe(svg => this._setSvgElement(svg), (err) => {\n const errorMessage = `Error retrieving icon ${namespace}:${iconName}! ${err.message}`;\n this._errorHandler.handleError(new Error(errorMessage));\n });\n }\n }\n}\nMatIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIcon, deps: [{ token: i0.ElementRef }, { token: MatIconRegistry }, { token: 'aria-hidden', attribute: true }, { token: MAT_ICON_LOCATION }, { token: i0.ErrorHandler }], target: i0.ɵɵFactoryTarget.Component });\nMatIcon.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatIcon, selector: \"mat-icon\", inputs: { color: \"color\", inline: \"inline\", svgIcon: \"svgIcon\", fontSet: \"fontSet\", fontIcon: \"fontIcon\" }, host: { attributes: { \"role\": \"img\" }, properties: { \"attr.data-mat-icon-type\": \"_usingFontIcon() ? \\\"font\\\" : \\\"svg\\\"\", \"attr.data-mat-icon-name\": \"_svgName || fontIcon\", \"attr.data-mat-icon-namespace\": \"_svgNamespace || fontSet\", \"class.mat-icon-inline\": \"inline\", \"class.mat-icon-no-color\": \"color !== \\\"primary\\\" && color !== \\\"accent\\\" && color !== \\\"warn\\\"\" }, classAttribute: \"mat-icon notranslate\" }, exportAs: [\"matIcon\"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [\".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIcon, decorators: [{\n type: Component,\n args: [{ template: '<ng-content></ng-content>', selector: 'mat-icon', exportAs: 'matIcon', inputs: ['color'], host: {\n 'role': 'img',\n 'class': 'mat-icon notranslate',\n '[attr.data-mat-icon-type]': '_usingFontIcon() ? \"font\" : \"svg\"',\n '[attr.data-mat-icon-name]': '_svgName || fontIcon',\n '[attr.data-mat-icon-namespace]': '_svgNamespace || fontSet',\n '[class.mat-icon-inline]': 'inline',\n '[class.mat-icon-no-color]': 'color !== \"primary\" && color !== \"accent\" && color !== \"warn\"',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: MatIconRegistry }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['aria-hidden']\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_ICON_LOCATION]\n }] }, { type: i0.ErrorHandler }];\n }, propDecorators: { inline: [{\n type: Input\n }], svgIcon: [{\n type: Input\n }], fontSet: [{\n type: Input\n }], fontIcon: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatIconModule {\n}\nMatIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconModule, declarations: [MatIcon], imports: [MatCommonModule], exports: [MatIcon, MatCommonModule] });\nMatIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconModule, imports: [[MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatIconModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: [MatIcon, MatCommonModule],\n declarations: [MatIcon],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ICON_REGISTRY_PROVIDER, ICON_REGISTRY_PROVIDER_FACTORY, MAT_ICON_LOCATION, MAT_ICON_LOCATION_FACTORY, MatIcon, MatIconModule, MatIconRegistry, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError };\n","<div class=\"snackbar\">\n <div class=\"snackbar--msg\">\n <mat-icon *ngIf=\"!data.error\">check</mat-icon>\n <mat-icon *ngIf=\"data.error\">warning</mat-icon>\n <span [innerHTML]=\"data.text\"></span>\n </div>\n <div class=\"snackbar--btn\">\n <button mat-icon-button class=\"btn-close\" (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</div>\n","import { Component, Inject } from '@angular/core';\nimport {\n MatSnackBarRef,\n MAT_SNACK_BAR_DATA\n} from '@angular/material/snack-bar';\n\n@Component({\n selector: 'app-snackbar',\n templateUrl: './snackbar.component.html',\n styleUrls: ['./snackbar.component.scss']\n})\nexport class SnackbarComponent {\n constructor(\n @Inject(MAT_SNACK_BAR_DATA) public data: any,\n @Inject(MatSnackBarRef)\n public ref: MatSnackBarRef<SnackbarComponent>\n ) {}\n\n close(): void {\n this.ref.dismiss();\n }\n}\n","import { Injectable } from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { SnackbarComponent } from './snackbar/snackbar.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppMessageService {\n constructor(private snackBar: MatSnackBar) {}\n showMessage(message: string, error?: boolean, styleClass?: string[]) {\n let panelClass = ['message', 'snackTextFormat'];\n if (Array.isArray(styleClass) && styleClass.length > 0) {\n panelClass = panelClass.concat(styleClass);\n }\n\n this.snackBar.openFromComponent(SnackbarComponent, {\n data: {\n text: message,\n error\n },\n verticalPosition: 'top',\n panelClass,\n duration: 6000\n });\n }\n\n showOkMessage(message: string, styleClass?: string[]) {\n let panelClass = ['message-bar-ok'];\n if (Array.isArray(styleClass) && styleClass.length > 0) {\n panelClass = panelClass.concat(styleClass);\n }\n this.showMessage(message, false, panelClass);\n }\n\n showErrorMessage(message: string, styleClass?: string[]) {\n let panelClass = ['message-bar-error'];\n if (Array.isArray(styleClass) && styleClass.length > 0) {\n panelClass = panelClass.concat(styleClass);\n }\n this.showMessage(message ?? 'An error occurred', true, panelClass);\n }\n\n showWarningMessage(message: string, styleClass?: string[]) {\n let panelClass = ['message-bar-warning'];\n if (Array.isArray(styleClass) && styleClass.length > 0) {\n panelClass = panelClass.concat(styleClass);\n }\n this.showMessage(message, false, panelClass);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ThemeService {\n private Theme: Subject<string> = new Subject<string>();\n // isUclTheme = this.UclTheme.asObservable();\n newTheme = this.Theme.asObservable();\n\n setTheme(newTheme: string) {\n this.Theme.next(newTheme + '-theme');\n }\n constructor() {}\n}\n","import { Component, OnInit, OnDestroy, Inject } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ThemeService } from '@front-office/services/theme.service';\nimport { Observable } from 'rxjs';\nimport {\n AppMessageState,\n MessageWithTime\n} from '@projects-shared/app-message/app-message.state';\nimport { Select, Store } from '@ngxs/store';\nimport { Subscription } from 'rxjs';\nimport { AppMessageService } from '@projects-shared/app-message/app-message.service';\nimport { HistoryBackService } from '@projects-shared/services/history-back.service';\nimport { ConfigState } from './store/states/config.state';\nimport { ApmService } from '@projects-shared/services/apm-rum';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.scss']\n})\nexport class AppComponent implements OnInit, OnDestroy {\n title = 'app-fo';\n // isUclTheme$: Observable<boolean>;\n newTheme$: Observable<string>;\n selected = 'corporate';\n // themes: Theme[] = [\n // { name: 'Corporate', abbr: 'corp' },\n // { name: 'Champions League', abbr: 'ucl' },\n // { name: 'Europa League', abbr: 'uel' },\n // { name: 'Super Cup ', abbr: 'uscup' },\n // { name: 'Women Champions League', abbr: 'uwcl' },\n // { name: 'u21', abbr: 'u21' },\n // { name: 'EURO 2020 TM', abbr: 'euro2020' }\n // ];\n // @Select(UserState.getUser)\n // user$: Observable<UserModel>;\n // user: User;\n subscription: Subscription;\n\n @Select(AppMessageState.okMessage)\n okMessage$: Observable<MessageWithTime>;\n\n @Select(AppMessageState.errorMessage)\n errorMessage$: Observable<MessageWithTime>;\n\n @Select(AppMessageState.warningMessage)\n warningMessage$: Observable<MessageWithTime>;\n\n constructor(\n private translate: TranslateService,\n private messageService: AppMessageService,\n private themeService: ThemeService,\n private historyService: HistoryBackService,\n private store: Store,\n @Inject(ApmService) apmService: ApmService\n ) {\n this.subscription = new Subscription();\n this._initTranslate();\n\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n if (config.apmServiceName && config.apmServerUrl) {\n const apm = apmService.init({\n serviceName: config.apmServiceName,\n serverUrl: config.apmServerUrl\n });\n }\n }\n\n private _initTranslate() {\n // Set the default language for translation strings, and the current language.\n this.translate.setDefaultLang('en');\n var queryParams = new URLSearchParams(location.search);\n var locale = queryParams.get(\"locale\");\n if (locale) { \n this.translate.use(locale); // Sets language if its provided by query param \n } else {\n if (this.translate.getBrowserLang() !== undefined) {\n this.translate.use(this.translate.getBrowserLang());\n } else {\n\n this.translate.use('en'); // Set your language here\n }\n }\n }\n\n ngOnInit() {\n // this.isUclTheme$ = this.themeService.isUclTheme;\n this.newTheme$ = this.themeService.newTheme;\n // if (this.idpService.User.isLogged() === false) {\n // this.authService.login();\n // }\n this.historyService.init();\n this.subscription.add(\n this.okMessage$.subscribe((mwt) => {\n if (!!mwt) {\n this.messageService.showOkMessage(mwt.message, mwt.styleClass);\n }\n })\n );\n this.subscription.add(\n this.errorMessage$.subscribe((mwt) => {\n if (!!mwt) {\n this.messageService.showErrorMessage(mwt.message, mwt.styleClass);\n }\n })\n );\n this.subscription.add(\n this.warningMessage$.subscribe((mwt) => {\n if (!!mwt) {\n this.messageService.showWarningMessage(mwt.message, mwt.styleClass);\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n","<main\n [class.corp-theme]=\"(newTheme$ | async) === false\"\n [ngClass]=\"newTheme$ | async\"\n>\n <router-outlet></router-outlet>\n</main>\n\n<!-- <ng-container *ngIf=\"{ user: user$ | async, another: another$ | async } as mySuperModel\"> -->\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, forwardRef, Optional, Inject, ɵisPromise, ɵisObservable, Self, EventEmitter, Input, Host, SkipSelf, Output, NgModule, Injectable, Version } from '@angular/core';\nimport { ɵgetDOM } from '@angular/common';\nimport { from, forkJoin } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base class for all ControlValueAccessor classes defined in Forms package.\n * Contains common logic and utility functions.\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BaseControlValueAccessor {\n constructor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n /**\n * The registered callback function called when a change or input event occurs on the input\n * element.\n * @nodoc\n */\n this.onChange = (_) => { };\n /**\n * The registered callback function called when a blur event occurs on the input element.\n * @nodoc\n */\n this.onTouched = () => { };\n }\n /**\n * Helper method that sets a property on a target element using the current Renderer\n * implementation.\n * @nodoc\n */\n setProperty(key, value) {\n this._renderer.setProperty(this._elementRef.nativeElement, key, value);\n }\n /**\n * Registers a function called when the control is touched.\n * @nodoc\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = fn;\n }\n /**\n * Sets the \"disabled\" property on the range input element.\n * @nodoc\n */\n setDisabledState(isDisabled) {\n this.setProperty('disabled', isDisabled);\n }\n}\nBaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nBaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: BaseControlValueAccessor, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BaseControlValueAccessor, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });\n/**\n * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is\n * used in case no other CVAs can be found). We use this class to distinguish between default CVA,\n * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom\n * ones with higher priority (when both built-in and custom CVAs are present).\n *\n * Note: this is an *internal-only* class and should not be extended or used directly in\n * applications code.\n */\nclass BuiltInControlValueAccessor extends BaseControlValueAccessor {\n}\nBuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nBuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{\n type: Directive\n }] });\n/**\n * Used to provide a `ControlValueAccessor` for form controls.\n *\n * See `DefaultValueAccessor` for how to implement one.\n *\n * @publicApi\n */\nconst NG_VALUE_ACCESSOR = new InjectionToken('NgValueAccessor');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CheckboxControlValueAccessor),\n multi: true,\n};\n/**\n * @description\n * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input\n * element.\n *\n * @usageNotes\n *\n * ### Using a checkbox with a reactive form.\n *\n * The following example shows how to use a checkbox with a reactive form.\n *\n * ```ts\n * const rememberLoginControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass CheckboxControlValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"checked\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('checked', value);\n }\n}\nCheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nCheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: CheckboxControlValueAccessor, selector: \"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.checked)\", \"blur\": \"onTouched()\" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\n providers: [CHECKBOX_VALUE_ACCESSOR]\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DefaultValueAccessor),\n multi: true\n};\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid() {\n const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n/**\n * @description\n * Provide this token to control if form directives buffer IME input until\n * the \"compositionend\" event occurs.\n * @publicApi\n */\nconst COMPOSITION_BUFFER_MODE = new InjectionToken('CompositionEventMode');\n/**\n * The default `ControlValueAccessor` for writing a value and listening to changes on input\n * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * {@searchKeywords ngDefaultControl}\n *\n * @usageNotes\n *\n * ### Using the default value accessor\n *\n * The following example shows how to use an input element that activates the default value accessor\n * (in this case, a text field).\n *\n * ```ts\n * const firstNameControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"text\" [formControl]=\"firstNameControl\">\n * ```\n *\n * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but\n * you could also use it for custom components that have similar behavior and do not require special\n * processing. In order to attach the default value accessor to a custom element, add the\n * `ngDefaultControl` attribute as shown below.\n *\n * ```\n * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass DefaultValueAccessor extends BaseControlValueAccessor {\n constructor(renderer, elementRef, _compositionMode) {\n super(renderer, elementRef);\n this._compositionMode = _compositionMode;\n /** Whether the user is creating a composition string (IME events). */\n this._composing = false;\n if (this._compositionMode == null) {\n this._compositionMode = !_isAndroid();\n }\n }\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /** @internal */\n _handleInput(value) {\n if (!this._compositionMode || (this._compositionMode && !this._composing)) {\n this.onChange(value);\n }\n }\n /** @internal */\n _compositionStart() {\n this._composing = true;\n }\n /** @internal */\n _compositionEnd(value) {\n this._composing = false;\n this._compositionMode && this.onChange(value);\n }\n}\nDefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nDefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\", host: { listeners: { \"input\": \"$any(this)._handleInput($event.target.value)\", \"blur\": \"onTouched()\", \"compositionstart\": \"$any(this)._compositionStart()\", \"compositionend\": \"$any(this)._compositionEnd($event.target.value)\" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DefaultValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\n // TODO: vsavkin replace the above selector with the one below it once\n // https://github.com/angular/angular/issues/3011 is implemented\n // selector: '[ngModel],[formControl],[formControlName]',\n host: {\n '(input)': '$any(this)._handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '$any(this)._compositionStart()',\n '(compositionend)': '$any(this)._compositionEnd($event.target.value)'\n },\n providers: [DEFAULT_VALUE_ACCESSOR]\n }]\n }], ctorParameters: function () {\n return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [COMPOSITION_BUFFER_MODE]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction isEmptyInputValue(value) {\n // we don't check for string here so it also works with arrays\n return value == null || value.length === 0;\n}\nfunction hasValidLength(value) {\n // non-strict comparison is intentional, to check for both `null` and `undefined` values\n return value != null && typeof value.length === 'number';\n}\n/**\n * @description\n * An `InjectionToken` for registering additional synchronous validators used with\n * `AbstractControl`s.\n *\n * @see `NG_ASYNC_VALIDATORS`\n *\n * @usageNotes\n *\n * ### Providing a custom validator\n *\n * The following example registers a custom validator directive. Adding the validator to the\n * existing collection of validators requires the `multi: true` option.\n *\n * ```typescript\n * @Directive({\n * selector: '[customValidator]',\n * providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]\n * })\n * class CustomValidatorDirective implements Validator {\n * validate(control: AbstractControl): ValidationErrors | null {\n * return { 'custom': true };\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_VALIDATORS = new InjectionToken('NgValidators');\n/**\n * @description\n * An `InjectionToken` for registering additional asynchronous validators used with\n * `AbstractControl`s.\n *\n * @see `NG_VALIDATORS`\n *\n * @usageNotes\n *\n * ### Provide a custom async validator directive\n *\n * The following example implements the `AsyncValidator` interface to create an\n * async validator directive with a custom error key.\n *\n * ```typescript\n * @Directive({\n * selector: '[customAsyncValidator]',\n * providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:\n * true}]\n * })\n * class CustomAsyncValidatorDirective implements AsyncValidator {\n * validate(control: AbstractControl): Promise<ValidationErrors|null> {\n * return Promise.resolve({'custom': true});\n * }\n * }\n * ```\n *\n * @publicApi\n */\nconst NG_ASYNC_VALIDATORS = new InjectionToken('NgAsyncValidators');\n/**\n * A regular expression that matches valid e-mail addresses.\n *\n * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:\n * - `local-part` consists of one or more of the allowed characters (alphanumeric and some\n * punctuation symbols).\n * - `local-part` cannot begin or end with a period (`.`).\n * - `local-part` cannot be longer than 64 characters.\n * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or\n * `foo.com`.\n * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and\n * periods (`.`)).\n * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).\n * - A `label` cannot be longer than 63 characters.\n * - The whole address cannot be longer than 254 characters.\n *\n * ## Implementation background\n *\n * This regexp was ported over from AngularJS (see there for git history):\n * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27\n * It is based on the\n * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address). The main differences from the WHATWG version are:\n * - Disallow `local-part` to begin or end with a period (`.`).\n * - Disallow `local-part` length to exceed 64 characters.\n * - Disallow total address length to exceed 254 characters.\n *\n * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.\n */\nconst EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n/**\n * @description\n * Provides a set of built-in validators that can be used by form controls.\n *\n * A validator is a function that processes a `FormControl` or collection of\n * controls and returns an error map or null. A null map means that validation has passed.\n *\n * @see [Form Validation](/guide/form-validation)\n *\n * @publicApi\n */\nclass Validators {\n /**\n * @description\n * Validator that requires the control's value to be greater than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a minimum of 3\n *\n * ```typescript\n * const control = new FormControl(2, Validators.min(3));\n *\n * console.log(control.errors); // {min: {min: 3, actual: 2}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `min` property if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static min(min) {\n return minValidator(min);\n }\n /**\n * @description\n * Validator that requires the control's value to be less than or equal to the provided number.\n *\n * @usageNotes\n *\n * ### Validate against a maximum of 15\n *\n * ```typescript\n * const control = new FormControl(16, Validators.max(15));\n *\n * console.log(control.errors); // {max: {max: 15, actual: 16}}\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `max` property if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static max(max) {\n return maxValidator(max);\n }\n /**\n * @description\n * Validator that requires the control have a non-empty value.\n *\n * @usageNotes\n *\n * ### Validate that the field is non-empty\n *\n * ```typescript\n * const control = new FormControl('', Validators.required);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map with the `required` property\n * if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static required(control) {\n return requiredValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n *\n * @usageNotes\n *\n * ### Validate that the field value is true\n *\n * ```typescript\n * const control = new FormControl('', Validators.requiredTrue);\n *\n * console.log(control.errors); // {required: true}\n * ```\n *\n * @returns An error map that contains the `required` property\n * set to `true` if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static requiredTrue(control) {\n return requiredTrueValidator(control);\n }\n /**\n * @description\n * Validator that requires the control's value pass an email validation test.\n *\n * Tests the value using a [regular\n * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n * pattern suitable for common usecases. The pattern is based on the definition of a valid email\n * address in the [WHATWG HTML\n * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with\n * some enhancements to incorporate more RFC rules (such as rules related to domain names and the\n * lengths of different parts of the address).\n *\n * The differences from the WHATWG version include:\n * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).\n * - Disallow `local-part` to be longer than 64 characters.\n * - Disallow the whole address to be longer than 254 characters.\n *\n * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to\n * validate the value against a different pattern.\n *\n * @usageNotes\n *\n * ### Validate that the field matches a valid email pattern\n *\n * ```typescript\n * const control = new FormControl('bad@', Validators.email);\n *\n * console.log(control.errors); // {email: true}\n * ```\n *\n * @returns An error map with the `email` property\n * if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static email(control) {\n return emailValidator(control);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. This validator is also provided by default if you use the\n * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays. The\n * `minLength` validator logic is also not invoked for values when their `length` property is 0\n * (for example in case of an empty string or an empty array), to support optional controls. You\n * can use the standard `required` validator if empty values should not be considered valid.\n *\n * @usageNotes\n *\n * ### Validate that the field has a minimum of 3 characters\n *\n * ```typescript\n * const control = new FormControl('ng', Validators.minLength(3));\n *\n * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}\n * ```\n *\n * ```html\n * <input minlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `minlength` property if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static minLength(minLength) {\n return minLengthValidator(minLength);\n }\n /**\n * @description\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. This validator is also provided by default if you use the\n * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used\n * only for types that have a numeric `length` property, such as strings or arrays.\n *\n * @usageNotes\n *\n * ### Validate that the field has maximum of 5 characters\n *\n * ```typescript\n * const control = new FormControl('Angular', Validators.maxLength(5));\n *\n * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}\n * ```\n *\n * ```html\n * <input maxlength=\"5\">\n * ```\n *\n * @returns A validator function that returns an error map with the\n * `maxlength` property if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static maxLength(maxLength) {\n return maxLengthValidator(maxLength);\n }\n /**\n * @description\n * Validator that requires the control's value to match a regex pattern. This validator is also\n * provided by default if you use the HTML5 `pattern` attribute.\n *\n * @usageNotes\n *\n * ### Validate that the field only contains letters or spaces\n *\n * ```typescript\n * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));\n *\n * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}\n * ```\n *\n * ```html\n * <input pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * ### Pattern matching with the global or sticky flag\n *\n * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`\n * can produce different results on the same input when validations are run consecutively. This is\n * due to how the behavior of `RegExp.prototype.test` is\n * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)\n * (`RegExp` preserves the index of the last match when the global or sticky flag is used).\n * Due to this behavior, it is recommended that when using\n * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky\n * flag enabled.\n *\n * ```typescript\n * // Not recommended (since the `g` flag is used)\n * const controlOne = new FormControl('1', Validators.pattern(/foo/g));\n *\n * // Good\n * const controlTwo = new FormControl('1', Validators.pattern(/foo/));\n * ```\n *\n * @param pattern A regular expression to be used as is to test the values, or a string.\n * If a string is passed, the `^` character is prepended and the `$` character is\n * appended to the provided string (if not already present), and the resulting regular\n * expression is used to test the values.\n *\n * @returns A validator function that returns an error map with the\n * `pattern` property if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static pattern(pattern) {\n return patternValidator(pattern);\n }\n /**\n * @description\n * Validator that performs no operation.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static nullValidator(control) {\n return nullValidator(control);\n }\n static compose(validators) {\n return compose(validators);\n }\n /**\n * @description\n * Compose multiple async validators into a single function that returns the union\n * of the individual error objects for the provided control.\n *\n * @returns A validator function that returns an error map with the\n * merged error objects of the async validators if the validation check fails, otherwise `null`.\n *\n * @see `updateValueAndValidity()`\n *\n */\n static composeAsync(validators) {\n return composeAsync(validators);\n }\n}\n/**\n * Validator that requires the control's value to be greater than or equal to the provided number.\n * See `Validators.min` for additional information.\n */\nfunction minValidator(min) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min\n return !isNaN(value) && value < min ? { 'min': { 'min': min, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control's value to be less than or equal to the provided number.\n * See `Validators.max` for additional information.\n */\nfunction maxValidator(max) {\n return (control) => {\n if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = parseFloat(control.value);\n // Controls with NaN values after parsing should be treated as not having a\n // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max\n return !isNaN(value) && value > max ? { 'max': { 'max': max, 'actual': control.value } } : null;\n };\n}\n/**\n * Validator that requires the control have a non-empty value.\n * See `Validators.required` for additional information.\n */\nfunction requiredValidator(control) {\n return isEmptyInputValue(control.value) ? { 'required': true } : null;\n}\n/**\n * Validator that requires the control's value be true. This validator is commonly\n * used for required checkboxes.\n * See `Validators.requiredTrue` for additional information.\n */\nfunction requiredTrueValidator(control) {\n return control.value === true ? null : { 'required': true };\n}\n/**\n * Validator that requires the control's value pass an email validation test.\n * See `Validators.email` for additional information.\n */\nfunction emailValidator(control) {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n return EMAIL_REGEXP.test(control.value) ? null : { 'email': true };\n}\n/**\n * Validator that requires the length of the control's value to be greater than or equal\n * to the provided minimum length. See `Validators.minLength` for additional information.\n */\nfunction minLengthValidator(minLength) {\n return (control) => {\n if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {\n // don't validate empty values to allow optional controls\n // don't validate values without `length` property\n return null;\n }\n return control.value.length < minLength ?\n { 'minlength': { 'requiredLength': minLength, 'actualLength': control.value.length } } :\n null;\n };\n}\n/**\n * Validator that requires the length of the control's value to be less than or equal\n * to the provided maximum length. See `Validators.maxLength` for additional information.\n */\nfunction maxLengthValidator(maxLength) {\n return (control) => {\n return hasValidLength(control.value) && control.value.length > maxLength ?\n { 'maxlength': { 'requiredLength': maxLength, 'actualLength': control.value.length } } :\n null;\n };\n}\n/**\n * Validator that requires the control's value to match a regex pattern.\n * See `Validators.pattern` for additional information.\n */\nfunction patternValidator(pattern) {\n if (!pattern)\n return nullValidator;\n let regex;\n let regexStr;\n if (typeof pattern === 'string') {\n regexStr = '';\n if (pattern.charAt(0) !== '^')\n regexStr += '^';\n regexStr += pattern;\n if (pattern.charAt(pattern.length - 1) !== '$')\n regexStr += '$';\n regex = new RegExp(regexStr);\n }\n else {\n regexStr = pattern.toString();\n regex = pattern;\n }\n return (control) => {\n if (isEmptyInputValue(control.value)) {\n return null; // don't validate empty values to allow optional controls\n }\n const value = control.value;\n return regex.test(value) ? null :\n { 'pattern': { 'requiredPattern': regexStr, 'actualValue': value } };\n };\n}\n/**\n * Function that has `ValidatorFn` shape, but performs no operation.\n */\nfunction nullValidator(control) {\n return null;\n}\nfunction isPresent(o) {\n return o != null;\n}\nfunction toObservable(r) {\n const obs = ɵisPromise(r) ? from(r) : r;\n if (!(ɵisObservable(obs)) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`Expected validator to return Promise or Observable.`);\n }\n return obs;\n}\nfunction mergeErrors(arrayOfErrors) {\n let res = {};\n // Not using Array.reduce here due to a Chrome 80 bug\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\n arrayOfErrors.forEach((errors) => {\n res = errors != null ? Object.assign(Object.assign({}, res), errors) : res;\n });\n return Object.keys(res).length === 0 ? null : res;\n}\nfunction executeValidators(control, validators) {\n return validators.map(validator => validator(control));\n}\nfunction isValidatorFn(validator) {\n return !validator.validate;\n}\n/**\n * Given the list of validators that may contain both functions as well as classes, return the list\n * of validator functions (convert validator classes into validator functions). This is needed to\n * have consistent structure in validators list before composing them.\n *\n * @param validators The set of validators that may contain validators both in plain function form\n * as well as represented as a validator class.\n */\nfunction normalizeValidators(validators) {\n return validators.map(validator => {\n return isValidatorFn(validator) ?\n validator :\n ((c) => validator.validate(c));\n });\n}\n/**\n * Merges synchronous validators into a single validator function.\n * See `Validators.compose` for additional information.\n */\nfunction compose(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n return mergeErrors(executeValidators(control, presentValidators));\n };\n}\n/**\n * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),\n * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single\n * validator function.\n */\nfunction composeValidators(validators) {\n return validators != null ? compose(normalizeValidators(validators)) : null;\n}\n/**\n * Merges asynchronous validators into a single validator function.\n * See `Validators.composeAsync` for additional information.\n */\nfunction composeAsync(validators) {\n if (!validators)\n return null;\n const presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n const observables = executeValidators(control, presentValidators).map(toObservable);\n return forkJoin(observables).pipe(map(mergeErrors));\n };\n}\n/**\n * Accepts a list of async validators of different possible shapes (`AsyncValidator` and\n * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges\n * them into a single validator function.\n */\nfunction composeAsyncValidators(validators) {\n return validators != null ? composeAsync(normalizeValidators(validators)) :\n null;\n}\n/**\n * Merges raw control validators with a given directive validator and returns the combined list of\n * validators as an array.\n */\nfunction mergeValidators(controlValidators, dirValidator) {\n if (controlValidators === null)\n return [dirValidator];\n return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] :\n [controlValidators, dirValidator];\n}\n/**\n * Retrieves the list of raw synchronous validators attached to a given control.\n */\nfunction getControlValidators(control) {\n return control._rawValidators;\n}\n/**\n * Retrieves the list of raw asynchronous validators attached to a given control.\n */\nfunction getControlAsyncValidators(control) {\n return control._rawAsyncValidators;\n}\n/**\n * Accepts a singleton validator, an array, or null, and returns an array type with the provided\n * validators.\n *\n * @param validators A validator, validators, or null.\n * @returns A validators array.\n */\nfunction makeValidatorsArray(validators) {\n if (!validators)\n return [];\n return Array.isArray(validators) ? validators : [validators];\n}\n/**\n * Determines whether a validator or validators array has a given validator.\n *\n * @param validators The validator or validators to compare against.\n * @param validator The validator to check.\n * @returns Whether the validator is present.\n */\nfunction hasValidator(validators, validator) {\n return Array.isArray(validators) ? validators.includes(validator) : validators === validator;\n}\n/**\n * Combines two arrays of validators into one. If duplicates are provided, only one will be added.\n *\n * @param validators The new validators.\n * @param currentValidators The base array of currrent validators.\n * @returns An array of validators.\n */\nfunction addValidators(validators, currentValidators) {\n const current = makeValidatorsArray(currentValidators);\n const validatorsToAdd = makeValidatorsArray(validators);\n validatorsToAdd.forEach((v) => {\n // Note: if there are duplicate entries in the new validators array,\n // only the first one would be added to the current list of validarors.\n // Duplicate ones would be ignored since `hasValidator` would detect\n // the presence of a validator function and we update the current list in place.\n if (!hasValidator(current, v)) {\n current.push(v);\n }\n });\n return current;\n}\nfunction removeValidators(validators, currentValidators) {\n return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n * Base class for control directives.\n *\n * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.\n *\n * @publicApi\n */\nclass AbstractControlDirective {\n constructor() {\n /**\n * Set of synchronous validators as they were provided while calling `setValidators` function.\n * @internal\n */\n this._rawValidators = [];\n /**\n * Set of asynchronous validators as they were provided while calling `setAsyncValidators`\n * function.\n * @internal\n */\n this._rawAsyncValidators = [];\n /*\n * The set of callbacks to be invoked when directive instance is being destroyed.\n */\n this._onDestroyCallbacks = [];\n }\n /**\n * @description\n * Reports the value of the control if it is present, otherwise null.\n */\n get value() {\n return this.control ? this.control.value : null;\n }\n /**\n * @description\n * Reports whether the control is valid. A control is considered valid if no\n * validation errors exist with the current value.\n * If the control is not present, null is returned.\n */\n get valid() {\n return this.control ? this.control.valid : null;\n }\n /**\n * @description\n * Reports whether the control is invalid, meaning that an error exists in the input value.\n * If the control is not present, null is returned.\n */\n get invalid() {\n return this.control ? this.control.invalid : null;\n }\n /**\n * @description\n * Reports whether a control is pending, meaning that that async validation is occurring and\n * errors are not yet available for the input value. If the control is not present, null is\n * returned.\n */\n get pending() {\n return this.control ? this.control.pending : null;\n }\n /**\n * @description\n * Reports whether the control is disabled, meaning that the control is disabled\n * in the UI and is exempt from validation checks and excluded from aggregate\n * values of ancestor controls. If the control is not present, null is returned.\n */\n get disabled() {\n return this.control ? this.control.disabled : null;\n }\n /**\n * @description\n * Reports whether the control is enabled, meaning that the control is included in ancestor\n * calculations of validity or value. If the control is not present, null is returned.\n */\n get enabled() {\n return this.control ? this.control.enabled : null;\n }\n /**\n * @description\n * Reports the control's validation errors. If the control is not present, null is returned.\n */\n get errors() {\n return this.control ? this.control.errors : null;\n }\n /**\n * @description\n * Reports whether the control is pristine, meaning that the user has not yet changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get pristine() {\n return this.control ? this.control.pristine : null;\n }\n /**\n * @description\n * Reports whether the control is dirty, meaning that the user has changed\n * the value in the UI. If the control is not present, null is returned.\n */\n get dirty() {\n return this.control ? this.control.dirty : null;\n }\n /**\n * @description\n * Reports whether the control is touched, meaning that the user has triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get touched() {\n return this.control ? this.control.touched : null;\n }\n /**\n * @description\n * Reports the validation status of the control. Possible values include:\n * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.\n * If the control is not present, null is returned.\n */\n get status() {\n return this.control ? this.control.status : null;\n }\n /**\n * @description\n * Reports whether the control is untouched, meaning that the user has not yet triggered\n * a `blur` event on it. If the control is not present, null is returned.\n */\n get untouched() {\n return this.control ? this.control.untouched : null;\n }\n /**\n * @description\n * Returns a multicasting observable that emits a validation status whenever it is\n * calculated for the control. If the control is not present, null is returned.\n */\n get statusChanges() {\n return this.control ? this.control.statusChanges : null;\n }\n /**\n * @description\n * Returns a multicasting observable of value changes for the control that emits every time the\n * value of the control changes in the UI or programmatically.\n * If the control is not present, null is returned.\n */\n get valueChanges() {\n return this.control ? this.control.valueChanges : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return null;\n }\n /**\n * Sets synchronous validators for this directive.\n * @internal\n */\n _setValidators(validators) {\n this._rawValidators = validators || [];\n this._composedValidatorFn = composeValidators(this._rawValidators);\n }\n /**\n * Sets asynchronous validators for this directive.\n * @internal\n */\n _setAsyncValidators(validators) {\n this._rawAsyncValidators = validators || [];\n this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);\n }\n /**\n * @description\n * Synchronous validator function composed of all the synchronous validators registered with this\n * directive.\n */\n get validator() {\n return this._composedValidatorFn || null;\n }\n /**\n * @description\n * Asynchronous validator function composed of all the asynchronous validators registered with\n * this directive.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn || null;\n }\n /**\n * Internal function to register callbacks that should be invoked\n * when directive instance is being destroyed.\n * @internal\n */\n _registerOnDestroy(fn) {\n this._onDestroyCallbacks.push(fn);\n }\n /**\n * Internal function to invoke all registered \"on destroy\" callbacks.\n * Note: calling this function also clears the list of callbacks.\n * @internal\n */\n _invokeOnDestroyCallbacks() {\n this._onDestroyCallbacks.forEach(fn => fn());\n this._onDestroyCallbacks = [];\n }\n /**\n * @description\n * Resets the control with the provided value if the control is present.\n */\n reset(value = undefined) {\n if (this.control)\n this.control.reset(value);\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return this.control ? this.control.hasError(errorCode, path) : false;\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n return this.control ? this.control.getError(errorCode, path) : null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n * A base class that all `FormControl`-based directives extend. It binds a `FormControl`\n * object to a DOM element.\n *\n * @publicApi\n */\nclass NgControl extends AbstractControlDirective {\n constructor() {\n super(...arguments);\n /**\n * @description\n * The parent form for the control.\n *\n * @internal\n */\n this._parent = null;\n /**\n * @description\n * The name for the control\n */\n this.name = null;\n /**\n * @description\n * The value accessor for the control\n */\n this.valueAccessor = null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n * A base class for directives that contain multiple registered instances of `NgControl`.\n * Only used by the forms module.\n *\n * @publicApi\n */\nclass ControlContainer extends AbstractControlDirective {\n /**\n * @description\n * The top-level form directive for the control.\n */\n get formDirective() {\n return null;\n }\n /**\n * @description\n * The path to this group.\n */\n get path() {\n return null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass AbstractControlStatus {\n constructor(cd) {\n this._cd = cd;\n }\n is(status) {\n var _a, _b, _c;\n // Currently with ViewEngine (in AOT mode) it's not possible to use private methods in host\n // bindings.\n // TODO: once ViewEngine is removed, this function should be refactored:\n // - make the `is` method `protected`, so it's not accessible publicly\n // - move the `submitted` status logic to the `NgControlStatusGroup` class\n // and make it `private` or `protected` too.\n if (status === 'submitted') {\n // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but\n // we avoid instanceof checks to prevent non-tree-shakable references to those types.\n return !!((_a = this._cd) === null || _a === void 0 ? void 0 : _a.submitted);\n }\n return !!((_c = (_b = this._cd) === null || _b === void 0 ? void 0 : _b.control) === null || _c === void 0 ? void 0 : _c[status]);\n }\n}\nconst ngControlStatusHost = {\n '[class.ng-untouched]': 'is(\"untouched\")',\n '[class.ng-touched]': 'is(\"touched\")',\n '[class.ng-pristine]': 'is(\"pristine\")',\n '[class.ng-dirty]': 'is(\"dirty\")',\n '[class.ng-valid]': 'is(\"valid\")',\n '[class.ng-invalid]': 'is(\"invalid\")',\n '[class.ng-pending]': 'is(\"pending\")',\n};\nconst ngGroupStatusHost = {\n '[class.ng-untouched]': 'is(\"untouched\")',\n '[class.ng-touched]': 'is(\"touched\")',\n '[class.ng-pristine]': 'is(\"pristine\")',\n '[class.ng-dirty]': 'is(\"dirty\")',\n '[class.ng-valid]': 'is(\"valid\")',\n '[class.ng-invalid]': 'is(\"invalid\")',\n '[class.ng-pending]': 'is(\"pending\")',\n '[class.ng-submitted]': 'is(\"submitted\")',\n};\n/**\n * @description\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status.\n *\n * @usageNotes\n *\n * ### CSS classes applied\n *\n * The following classes are applied as the properties become true:\n *\n * * ng-valid\n * * ng-invalid\n * * ng-pending\n * * ng-pristine\n * * ng-dirty\n * * ng-untouched\n * * ng-touched\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatus extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n}\nNgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\", host: { properties: { \"class.ng-untouched\": \"is(\\\"untouched\\\")\", \"class.ng-touched\": \"is(\\\"touched\\\")\", \"class.ng-pristine\": \"is(\\\"pristine\\\")\", \"class.ng-dirty\": \"is(\\\"dirty\\\")\", \"class.ng-valid\": \"is(\\\"valid\\\")\", \"class.ng-invalid\": \"is(\\\"invalid\\\")\", \"class.ng-pending\": \"is(\\\"pending\\\")\" } }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgControlStatus, decorators: [{\n type: Directive,\n args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]\n }], ctorParameters: function () {\n return [{ type: NgControl, decorators: [{\n type: Self\n }] }];\n } });\n/**\n * @description\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional\n * class ng-submitted.\n *\n * @see `NgControlStatus`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgControlStatusGroup extends AbstractControlStatus {\n constructor(cd) {\n super(cd);\n }\n}\nNgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\", host: { properties: { \"class.ng-untouched\": \"is(\\\"untouched\\\")\", \"class.ng-touched\": \"is(\\\"touched\\\")\", \"class.ng-pristine\": \"is(\\\"pristine\\\")\", \"class.ng-dirty\": \"is(\\\"dirty\\\")\", \"class.ng-valid\": \"is(\\\"valid\\\")\", \"class.ng-invalid\": \"is(\\\"invalid\\\")\", \"class.ng-pending\": \"is(\\\"pending\\\")\", \"class.ng-submitted\": \"is(\\\"submitted\\\")\" } }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgControlStatusGroup, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\n host: ngGroupStatusHost\n }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst formControlNameExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });`;\nconst formGroupNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formGroupName=\"person\">\n <input formControlName=\"firstName\">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });`;\nconst formArrayNameExample = `\n <div [formGroup]=\"myGroup\">\n <div formArrayName=\"cities\">\n <div *ngFor=\"let city of cityArray.controls; index as i\">\n <input [formControlName]=\"i\">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl('SF')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });`;\nconst ngModelGroupExample = `\n <form>\n <div ngModelGroup=\"person\">\n <input [(ngModel)]=\"person.name\" name=\"firstName\">\n </div>\n </form>`;\nconst ngModelWithFormGroupExample = `\n <div [formGroup]=\"myGroup\">\n <input formControlName=\"firstName\">\n <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n </div>\n`;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction controlParentException() {\n return new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction ngModelGroupException() {\n return new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${formGroupNameExample}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ngModelGroupExample}`);\n}\nfunction missingFormException() {\n return new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${formControlNameExample}`);\n}\nfunction groupParentException() {\n return new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formGroupNameExample}`);\n}\nfunction arrayParentException() {\n return new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${formArrayNameExample}`);\n}\nconst disabledAttrWarning = `\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n`;\nfunction ngModelWarning(directiveName) {\n return `\n It looks like you're using ngModel on the same form field as ${directiveName}.\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel\n `;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction controlPath(name, parent) {\n return [...parent.path, name];\n}\n/**\n * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both\n * instances. This function is typically invoked when form directive is being initialized.\n *\n * @param control Form control instance that should be linked.\n * @param dir Directive that should be linked with a given control.\n */\nfunction setUpControl(control, dir) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!control)\n _throwError(dir, 'Cannot find control with');\n if (!dir.valueAccessor)\n _throwError(dir, 'No value accessor for form control with');\n }\n setUpValidators(control, dir);\n dir.valueAccessor.writeValue(control.value);\n setUpViewChangePipeline(control, dir);\n setUpModelChangePipeline(control, dir);\n setUpBlurPipeline(control, dir);\n setUpDisabledChangeHandler(control, dir);\n}\n/**\n * Reverts configuration performed by the `setUpControl` control function.\n * Effectively disconnects form control with a given form directive.\n * This function is typically invoked when corresponding form directive is being destroyed.\n *\n * @param control Form control which should be cleaned up.\n * @param dir Directive that should be disconnected from a given control.\n * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should\n * contain asserts to verify that it's not called once directive is destroyed. We need this flag\n * to avoid potentially breaking changes caused by better control cleanup introduced in #39235.\n */\nfunction cleanUpControl(control, dir, validateControlPresenceOnChange = true) {\n const noop = () => {\n if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n _noControlError(dir);\n }\n };\n // The `valueAccessor` field is typically defined on FromControl and FormControlName directive\n // instances and there is a logic in `selectValueAccessor` function that throws if it's not the\n // case. We still check the presence of `valueAccessor` before invoking its methods to make sure\n // that cleanup works correctly if app code or tests are setup to ignore the error thrown from\n // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.\n if (dir.valueAccessor) {\n dir.valueAccessor.registerOnChange(noop);\n dir.valueAccessor.registerOnTouched(noop);\n }\n cleanUpValidators(control, dir);\n if (control) {\n dir._invokeOnDestroyCallbacks();\n control._registerOnCollectionChange(() => { });\n }\n}\nfunction registerOnValidatorChange(validators, onChange) {\n validators.forEach((validator) => {\n if (validator.registerOnValidatorChange)\n validator.registerOnValidatorChange(onChange);\n });\n}\n/**\n * Sets up disabled change handler function on a given form control if ControlValueAccessor\n * associated with a given directive instance supports the `setDisabledState` call.\n *\n * @param control Form control where disabled change handler should be setup.\n * @param dir Corresponding directive instance associated with this control.\n */\nfunction setUpDisabledChangeHandler(control, dir) {\n if (dir.valueAccessor.setDisabledState) {\n const onDisabledChange = (isDisabled) => {\n dir.valueAccessor.setDisabledState(isDisabled);\n };\n control.registerOnDisabledChange(onDisabledChange);\n // Register a callback function to cleanup disabled change handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnDisabledChange(onDisabledChange);\n });\n }\n}\n/**\n * Sets up sync and async directive validators on provided form control.\n * This function merges validators from the directive into the validators of the control.\n *\n * @param control Form control where directive validators should be setup.\n * @param dir Directive instance that contains validators to be setup.\n */\nfunction setUpValidators(control, dir) {\n const validators = getControlValidators(control);\n if (dir.validator !== null) {\n control.setValidators(mergeValidators(validators, dir.validator));\n }\n else if (typeof validators === 'function') {\n // If sync validators are represented by a single validator function, we force the\n // `Validators.compose` call to happen by executing the `setValidators` function with\n // an array that contains that function. We need this to avoid possible discrepancies in\n // validators behavior, so sync validators are always processed by the `Validators.compose`.\n // Note: we should consider moving this logic inside the `setValidators` function itself, so we\n // have consistent behavior on AbstractControl API level. The same applies to the async\n // validators logic below.\n control.setValidators([validators]);\n }\n const asyncValidators = getControlAsyncValidators(control);\n if (dir.asyncValidator !== null) {\n control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));\n }\n else if (typeof asyncValidators === 'function') {\n control.setAsyncValidators([asyncValidators]);\n }\n // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n const onValidatorChange = () => control.updateValueAndValidity();\n registerOnValidatorChange(dir._rawValidators, onValidatorChange);\n registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);\n}\n/**\n * Cleans up sync and async directive validators on provided form control.\n * This function reverts the setup performed by the `setUpValidators` function, i.e.\n * removes directive-specific validators from a given control instance.\n *\n * @param control Form control from where directive validators should be removed.\n * @param dir Directive instance that contains validators to be removed.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpValidators(control, dir) {\n let isControlUpdated = false;\n if (control !== null) {\n if (dir.validator !== null) {\n const validators = getControlValidators(control);\n if (Array.isArray(validators) && validators.length > 0) {\n // Filter out directive validator function.\n const updatedValidators = validators.filter(validator => validator !== dir.validator);\n if (updatedValidators.length !== validators.length) {\n isControlUpdated = true;\n control.setValidators(updatedValidators);\n }\n }\n }\n if (dir.asyncValidator !== null) {\n const asyncValidators = getControlAsyncValidators(control);\n if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {\n // Filter out directive async validator function.\n const updatedAsyncValidators = asyncValidators.filter(asyncValidator => asyncValidator !== dir.asyncValidator);\n if (updatedAsyncValidators.length !== asyncValidators.length) {\n isControlUpdated = true;\n control.setAsyncValidators(updatedAsyncValidators);\n }\n }\n }\n }\n // Clear onValidatorChange callbacks by providing a noop function.\n const noop = () => { };\n registerOnValidatorChange(dir._rawValidators, noop);\n registerOnValidatorChange(dir._rawAsyncValidators, noop);\n return isControlUpdated;\n}\nfunction setUpViewChangePipeline(control, dir) {\n dir.valueAccessor.registerOnChange((newValue) => {\n control._pendingValue = newValue;\n control._pendingChange = true;\n control._pendingDirty = true;\n if (control.updateOn === 'change')\n updateControl(control, dir);\n });\n}\nfunction setUpBlurPipeline(control, dir) {\n dir.valueAccessor.registerOnTouched(() => {\n control._pendingTouched = true;\n if (control.updateOn === 'blur' && control._pendingChange)\n updateControl(control, dir);\n if (control.updateOn !== 'submit')\n control.markAsTouched();\n });\n}\nfunction updateControl(control, dir) {\n if (control._pendingDirty)\n control.markAsDirty();\n control.setValue(control._pendingValue, { emitModelToViewChange: false });\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n}\nfunction setUpModelChangePipeline(control, dir) {\n const onChange = (newValue, emitModelEvent) => {\n // control -> view\n dir.valueAccessor.writeValue(newValue);\n // control -> ngModel\n if (emitModelEvent)\n dir.viewToModelUpdate(newValue);\n };\n control.registerOnChange(onChange);\n // Register a callback function to cleanup onChange handler\n // from a control instance when a directive is destroyed.\n dir._registerOnDestroy(() => {\n control._unregisterOnChange(onChange);\n });\n}\n/**\n * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators\n * present in the view.\n *\n * @param control FormGroup or FormArray instance that should be linked.\n * @param dir Directive that provides view validators.\n */\nfunction setUpFormContainer(control, dir) {\n if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'Cannot find control with');\n setUpValidators(control, dir);\n}\n/**\n * Reverts the setup performed by the `setUpFormContainer` function.\n *\n * @param control FormGroup or FormArray instance that should be cleaned up.\n * @param dir Directive that provided view validators.\n * @returns true if a control was updated as a result of this action.\n */\nfunction cleanUpFormContainer(control, dir) {\n return cleanUpValidators(control, dir);\n}\nfunction _noControlError(dir) {\n return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n}\nfunction _throwError(dir, message) {\n let messageEnd;\n if (dir.path.length > 1) {\n messageEnd = `path: '${dir.path.join(' -> ')}'`;\n }\n else if (dir.path[0]) {\n messageEnd = `name: '${dir.path}'`;\n }\n else {\n messageEnd = 'unspecified name attribute';\n }\n throw new Error(`${message} ${messageEnd}`);\n}\nfunction isPropertyUpdated(changes, viewModel) {\n if (!changes.hasOwnProperty('model'))\n return false;\n const change = changes['model'];\n if (change.isFirstChange())\n return true;\n return !Object.is(viewModel, change.currentValue);\n}\nfunction isBuiltInAccessor(valueAccessor) {\n // Check if a given value accessor is an instance of a class that directly extends\n // `BuiltInControlValueAccessor` one.\n return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor;\n}\nfunction syncPendingControls(form, directives) {\n form._syncPendingControls();\n directives.forEach(dir => {\n const control = dir.control;\n if (control.updateOn === 'submit' && control._pendingChange) {\n dir.viewToModelUpdate(control._pendingValue);\n control._pendingChange = false;\n }\n });\n}\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\nfunction selectValueAccessor(dir, valueAccessors) {\n if (!valueAccessors)\n return null;\n if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'Value accessor was not provided as an array for form control with');\n let defaultAccessor = undefined;\n let builtinAccessor = undefined;\n let customAccessor = undefined;\n valueAccessors.forEach((v) => {\n if (v.constructor === DefaultValueAccessor) {\n defaultAccessor = v;\n }\n else if (isBuiltInAccessor(v)) {\n if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one built-in value accessor matches form control with');\n builtinAccessor = v;\n }\n else {\n if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))\n _throwError(dir, 'More than one custom value accessor matches form control with');\n customAccessor = v;\n }\n });\n if (customAccessor)\n return customAccessor;\n if (builtinAccessor)\n return builtinAccessor;\n if (defaultAccessor)\n return defaultAccessor;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _throwError(dir, 'No valid value accessor for form control with');\n }\n return null;\n}\nfunction removeListItem(list, el) {\n const index = list.indexOf(el);\n if (index > -1)\n list.splice(index, 1);\n}\n// TODO(kara): remove after deprecation period\nfunction _ngModelWarning(name, type, instance, warningConfig) {\n if (warningConfig === 'never')\n return;\n if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||\n (warningConfig === 'always' && !instance._ngModelWarningSent)) {\n console.warn(ngModelWarning(name));\n type._ngModelWarningSentOnce = true;\n instance._ngModelWarningSent = true;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Reports that a FormControl is valid, meaning that no errors exist in the input value.\n *\n * @see `status`\n */\nconst VALID = 'VALID';\n/**\n * Reports that a FormControl is invalid, meaning that an error exists in the input value.\n *\n * @see `status`\n */\nconst INVALID = 'INVALID';\n/**\n * Reports that a FormControl is pending, meaning that that async validation is occurring and\n * errors are not yet available for the input value.\n *\n * @see `markAsPending`\n * @see `status`\n */\nconst PENDING = 'PENDING';\n/**\n * Reports that a FormControl is disabled, meaning that the control is exempt from ancestor\n * calculations of validity or value.\n *\n * @see `markAsDisabled`\n * @see `status`\n */\nconst DISABLED = 'DISABLED';\nfunction _find(control, path, delimiter) {\n if (path == null)\n return null;\n if (!Array.isArray(path)) {\n path = path.split(delimiter);\n }\n if (Array.isArray(path) && path.length === 0)\n return null;\n // Not using Array.reduce here due to a Chrome 80 bug\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\n let controlToFind = control;\n path.forEach((name) => {\n if (controlToFind instanceof FormGroup) {\n controlToFind = controlToFind.controls.hasOwnProperty(name) ?\n controlToFind.controls[name] :\n null;\n }\n else if (controlToFind instanceof FormArray) {\n controlToFind = controlToFind.at(name) || null;\n }\n else {\n controlToFind = null;\n }\n });\n return controlToFind;\n}\n/**\n * Gets validators from either an options object or given validators.\n */\nfunction pickValidators(validatorOrOpts) {\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;\n}\n/**\n * Creates validator function by combining provided validators.\n */\nfunction coerceToValidator(validator) {\n return Array.isArray(validator) ? composeValidators(validator) : validator || null;\n}\n/**\n * Gets async validators from either an options object or given validators.\n */\nfunction pickAsyncValidators(asyncValidator, validatorOrOpts) {\n return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;\n}\n/**\n * Creates async validator function by combining provided async validators.\n */\nfunction coerceToAsyncValidator(asyncValidator) {\n return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :\n asyncValidator || null;\n}\nfunction isOptionsObj(validatorOrOpts) {\n return validatorOrOpts != null && !Array.isArray(validatorOrOpts) &&\n typeof validatorOrOpts === 'object';\n}\n/**\n * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.\n *\n * It provides some of the shared behavior that all controls and groups of controls have, like\n * running validators, calculating status, and resetting state. It also defines the properties\n * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be\n * instantiated directly.\n *\n * @see [Forms Guide](/guide/forms)\n * @see [Reactive Forms Guide](/guide/reactive-forms)\n * @see [Dynamic Forms Guide](/guide/dynamic-form)\n *\n * @publicApi\n */\nclass AbstractControl {\n /**\n * Initialize the AbstractControl instance.\n *\n * @param validators The function or array of functions that is used to determine the validity of\n * this control synchronously.\n * @param asyncValidators The function or array of functions that is used to determine validity of\n * this control asynchronously.\n */\n constructor(validators, asyncValidators) {\n /** @internal */\n this._pendingDirty = false;\n /**\n * Indicates that a control has its own pending asynchronous validation in progress.\n *\n * @internal\n */\n this._hasOwnPendingAsyncValidator = false;\n /** @internal */\n this._pendingTouched = false;\n /** @internal */\n this._onCollectionChange = () => { };\n this._parent = null;\n /**\n * A control is `pristine` if the user has not yet changed\n * the value in the UI.\n *\n * @returns True if the user has not yet changed the value in the UI; compare `dirty`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n this.pristine = true;\n /**\n * True if the control is marked as `touched`.\n *\n * A control is marked `touched` once the user has triggered\n * a `blur` event on it.\n */\n this.touched = false;\n /** @internal */\n this._onDisabledChange = [];\n this._rawValidators = validators;\n this._rawAsyncValidators = asyncValidators;\n this._composedValidatorFn = coerceToValidator(this._rawValidators);\n this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);\n }\n /**\n * Returns the function that is used to determine the validity of this control synchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get validator() {\n return this._composedValidatorFn;\n }\n set validator(validatorFn) {\n this._rawValidators = this._composedValidatorFn = validatorFn;\n }\n /**\n * Returns the function that is used to determine the validity of this control asynchronously.\n * If multiple validators have been added, this will be a single composed function.\n * See `Validators.compose()` for additional information.\n */\n get asyncValidator() {\n return this._composedAsyncValidatorFn;\n }\n set asyncValidator(asyncValidatorFn) {\n this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;\n }\n /**\n * The parent control.\n */\n get parent() {\n return this._parent;\n }\n /**\n * A control is `valid` when its `status` is `VALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control has passed all of its validation tests,\n * false otherwise.\n */\n get valid() {\n return this.status === VALID;\n }\n /**\n * A control is `invalid` when its `status` is `INVALID`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control has failed one or more of its validation checks,\n * false otherwise.\n */\n get invalid() {\n return this.status === INVALID;\n }\n /**\n * A control is `pending` when its `status` is `PENDING`.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if this control is in the process of conducting a validation check,\n * false otherwise.\n */\n get pending() {\n return this.status == PENDING;\n }\n /**\n * A control is `disabled` when its `status` is `DISABLED`.\n *\n * Disabled controls are exempt from validation checks and\n * are not included in the aggregate value of their ancestor\n * controls.\n *\n * @see {@link AbstractControl.status}\n *\n * @returns True if the control is disabled, false otherwise.\n */\n get disabled() {\n return this.status === DISABLED;\n }\n /**\n * A control is `enabled` as long as its `status` is not `DISABLED`.\n *\n * @returns True if the control has any status other than 'DISABLED',\n * false if the status is 'DISABLED'.\n *\n * @see {@link AbstractControl.status}\n *\n */\n get enabled() {\n return this.status !== DISABLED;\n }\n /**\n * A control is `dirty` if the user has changed the value\n * in the UI.\n *\n * @returns True if the user has changed the value of this control in the UI; compare `pristine`.\n * Programmatic changes to a control's value do not mark it dirty.\n */\n get dirty() {\n return !this.pristine;\n }\n /**\n * True if the control has not been marked as touched\n *\n * A control is `untouched` if the user has not yet triggered\n * a `blur` event on it.\n */\n get untouched() {\n return !this.touched;\n }\n /**\n * Reports the update strategy of the `AbstractControl` (meaning\n * the event on which the control updates itself).\n * Possible values: `'change'` | `'blur'` | `'submit'`\n * Default value: `'change'`\n */\n get updateOn() {\n return this._updateOn ? this._updateOn : (this.parent ? this.parent.updateOn : 'change');\n }\n /**\n * Sets the synchronous validators that are active on this control. Calling\n * this overwrites any existing synchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addValidators()` method instead.\n */\n setValidators(validators) {\n this._rawValidators = validators;\n this._composedValidatorFn = coerceToValidator(validators);\n }\n /**\n * Sets the asynchronous validators that are active on this control. Calling this\n * overwrites any existing asynchronous validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * If you want to add a new validator without affecting existing ones, consider\n * using `addAsyncValidators()` method instead.\n */\n setAsyncValidators(validators) {\n this._rawAsyncValidators = validators;\n this._composedAsyncValidatorFn = coerceToAsyncValidator(validators);\n }\n /**\n * Add a synchronous validator or validators to this control, without affecting other validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect. If duplicate validator functions\n * are present in the `validators` array, only the first instance would be added to a form\n * control.\n *\n * @param validators The new validator function or functions to add to this control.\n */\n addValidators(validators) {\n this.setValidators(addValidators(validators, this._rawValidators));\n }\n /**\n * Add an asynchronous validator or validators to this control, without affecting other\n * validators.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * Adding a validator that already exists will have no effect.\n *\n * @param validators The new asynchronous validator function or functions to add to this control.\n */\n addAsyncValidators(validators) {\n this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Remove a synchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found,\n * it is ignored.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The validator or validators to remove.\n */\n removeValidators(validators) {\n this.setValidators(removeValidators(validators, this._rawValidators));\n }\n /**\n * Remove an asynchronous validator from this control, without affecting other validators.\n * Validators are compared by function reference; you must pass a reference to the exact same\n * validator function as the one that was originally set. If a provided validator is not found, it\n * is ignored.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n * @param validators The asynchronous validator or validators to remove.\n */\n removeAsyncValidators(validators) {\n this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));\n }\n /**\n * Check whether a synchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @param validator The validator to check for presence. Compared by function reference.\n * @returns Whether the provided validator was found on this control.\n */\n hasValidator(validator) {\n return hasValidator(this._rawValidators, validator);\n }\n /**\n * Check whether an asynchronous validator function is present on this control. The provided\n * validator must be a reference to the exact same function that was provided.\n *\n * @param validator The asynchronous validator to check for presence. Compared by function\n * reference.\n * @returns Whether the provided asynchronous validator was found on this control.\n */\n hasAsyncValidator(validator) {\n return hasValidator(this._rawAsyncValidators, validator);\n }\n /**\n * Empties out the synchronous validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearValidators() {\n this.validator = null;\n }\n /**\n * Empties out the async validator list.\n *\n * When you add or remove a validator at run time, you must call\n * `updateValueAndValidity()` for the new validation to take effect.\n *\n */\n clearAsyncValidators() {\n this.asyncValidator = null;\n }\n /**\n * Marks the control as `touched`. A control is touched by focus and\n * blur events that do not change the value.\n *\n * @see `markAsUntouched()`\n * @see `markAsDirty()`\n * @see `markAsPristine()`\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsTouched(opts = {}) {\n this.touched = true;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsTouched(opts);\n }\n }\n /**\n * Marks the control and all its descendant controls as `touched`.\n * @see `markAsTouched()`\n */\n markAllAsTouched() {\n this.markAsTouched({ onlySelf: true });\n this._forEachChild((control) => control.markAllAsTouched());\n }\n /**\n * Marks the control as `untouched`.\n *\n * If the control has any children, also marks all children as `untouched`\n * and recalculates the `touched` status of all parent controls.\n *\n * @see `markAsTouched()`\n * @see `markAsDirty()`\n * @see `markAsPristine()`\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after the marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsUntouched(opts = {}) {\n this.touched = false;\n this._pendingTouched = false;\n this._forEachChild((control) => {\n control.markAsUntouched({ onlySelf: true });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts);\n }\n }\n /**\n * Marks the control as `dirty`. A control becomes dirty when\n * the control's value is changed through the UI; compare `markAsTouched`.\n *\n * @see `markAsTouched()`\n * @see `markAsUntouched()`\n * @see `markAsPristine()`\n *\n * @param opts Configuration options that determine how the control propagates changes\n * and emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsDirty(opts = {}) {\n this.pristine = false;\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsDirty(opts);\n }\n }\n /**\n * Marks the control as `pristine`.\n *\n * If the control has any children, marks all children as `pristine`,\n * and recalculates the `pristine` status of all parent\n * controls.\n *\n * @see `markAsTouched()`\n * @see `markAsUntouched()`\n * @see `markAsDirty()`\n *\n * @param opts Configuration options that determine how the control emits events after\n * marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n */\n markAsPristine(opts = {}) {\n this.pristine = true;\n this._pendingDirty = false;\n this._forEachChild((control) => {\n control.markAsPristine({ onlySelf: true });\n });\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts);\n }\n }\n /**\n * Marks the control as `pending`.\n *\n * A control is pending while the control performs async validation.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configuration options that determine how the control propagates changes and\n * emits events after marking is applied.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), the `statusChanges`\n * observable emits an event with the latest status the control is marked pending.\n * When false, no events are emitted.\n *\n */\n markAsPending(opts = {}) {\n this.status = PENDING;\n if (opts.emitEvent !== false) {\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.markAsPending(opts);\n }\n }\n /**\n * Disables the control. This means the control is exempt from validation checks and\n * excluded from the aggregate value of any parent. Its status is `DISABLED`.\n *\n * If the control has children, all children are also disabled.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configuration options that determine how the control propagates\n * changes and emits events after the control is disabled.\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is disabled.\n * When false, no events are emitted.\n */\n disable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = DISABLED;\n this.errors = null;\n this._forEachChild((control) => {\n control.disable(Object.assign(Object.assign({}, opts), { onlySelf: true }));\n });\n this._updateValue();\n if (opts.emitEvent !== false) {\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n this._updateAncestors(Object.assign(Object.assign({}, opts), { skipPristineCheck }));\n this._onDisabledChange.forEach((changeFn) => changeFn(true));\n }\n /**\n * Enables the control. This means the control is included in validation checks and\n * the aggregate value of its parent. Its status recalculates based on its value and\n * its validators.\n *\n * By default, if the control has children, all children are enabled.\n *\n * @see {@link AbstractControl.status}\n *\n * @param opts Configure options that control how the control propagates changes and\n * emits events when marked as untouched\n * * `onlySelf`: When true, mark only this control. When false or not supplied,\n * marks all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is enabled.\n * When false, no events are emitted.\n */\n enable(opts = {}) {\n // If parent has been marked artificially dirty we don't want to re-calculate the\n // parent's dirtiness based on the children.\n const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);\n this.status = VALID;\n this._forEachChild((control) => {\n control.enable(Object.assign(Object.assign({}, opts), { onlySelf: true }));\n });\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n this._updateAncestors(Object.assign(Object.assign({}, opts), { skipPristineCheck }));\n this._onDisabledChange.forEach((changeFn) => changeFn(false));\n }\n _updateAncestors(opts) {\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity(opts);\n if (!opts.skipPristineCheck) {\n this._parent._updatePristine();\n }\n this._parent._updateTouched();\n }\n }\n /**\n * @param parent Sets the parent of the control\n */\n setParent(parent) {\n this._parent = parent;\n }\n /**\n * Recalculates the value and validation status of the control.\n *\n * By default, it also updates the value and validity of its ancestors.\n *\n * @param opts Configuration options determine how the control propagates changes and emits events\n * after updates and validity checks are applied.\n * * `onlySelf`: When true, only update this control. When false or not supplied,\n * update all direct ancestors. Default is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is updated.\n * When false, no events are emitted.\n */\n updateValueAndValidity(opts = {}) {\n this._setInitialStatus();\n this._updateValue();\n if (this.enabled) {\n this._cancelExistingSubscription();\n this.errors = this._runValidator();\n this.status = this._calculateStatus();\n if (this.status === VALID || this.status === PENDING) {\n this._runAsyncValidator(opts.emitEvent);\n }\n }\n if (opts.emitEvent !== false) {\n this.valueChanges.emit(this.value);\n this.statusChanges.emit(this.status);\n }\n if (this._parent && !opts.onlySelf) {\n this._parent.updateValueAndValidity(opts);\n }\n }\n /** @internal */\n _updateTreeValidity(opts = { emitEvent: true }) {\n this._forEachChild((ctrl) => ctrl._updateTreeValidity(opts));\n this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });\n }\n _setInitialStatus() {\n this.status = this._allControlsDisabled() ? DISABLED : VALID;\n }\n _runValidator() {\n return this.validator ? this.validator(this) : null;\n }\n _runAsyncValidator(emitEvent) {\n if (this.asyncValidator) {\n this.status = PENDING;\n this._hasOwnPendingAsyncValidator = true;\n const obs = toObservable(this.asyncValidator(this));\n this._asyncValidationSubscription = obs.subscribe((errors) => {\n this._hasOwnPendingAsyncValidator = false;\n // This will trigger the recalculation of the validation status, which depends on\n // the state of the asynchronous validation (whether it is in progress or not). So, it is\n // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.\n this.setErrors(errors, { emitEvent });\n });\n }\n }\n _cancelExistingSubscription() {\n if (this._asyncValidationSubscription) {\n this._asyncValidationSubscription.unsubscribe();\n this._hasOwnPendingAsyncValidator = false;\n }\n }\n /**\n * Sets errors on a form control when running validations manually, rather than automatically.\n *\n * Calling `setErrors` also updates the validity of the parent control.\n *\n * @usageNotes\n *\n * ### Manually set the errors for a control\n *\n * ```\n * const login = new FormControl('someLogin');\n * login.setErrors({\n * notUnique: true\n * });\n *\n * expect(login.valid).toEqual(false);\n * expect(login.errors).toEqual({ notUnique: true });\n *\n * login.setValue('someOtherLogin');\n *\n * expect(login.valid).toEqual(true);\n * ```\n */\n setErrors(errors, opts = {}) {\n this.errors = errors;\n this._updateControlsErrors(opts.emitEvent !== false);\n }\n /**\n * Retrieves a child control given the control's name or path.\n *\n * @param path A dot-delimited string or array of string/number values that define the path to the\n * control.\n *\n * @usageNotes\n * ### Retrieve a nested control\n *\n * For example, to get a `name` control nested within a `person` sub-group:\n *\n * * `this.form.get('person.name');`\n *\n * -OR-\n *\n * * `this.form.get(['person', 'name']);`\n *\n * ### Retrieve a control in a FormArray\n *\n * When accessing an element inside a FormArray, you can use an element index.\n * For example, to get a `price` control from the first element in an `items` array you can use:\n *\n * * `this.form.get('items.0.price');`\n *\n * -OR-\n *\n * * `this.form.get(['items', 0, 'price']);`\n */\n get(path) {\n return _find(this, path, '.');\n }\n /**\n * @description\n * Reports error data for the control with the given path.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * @returns error data for that particular error. If the control or error is not present,\n * null is returned.\n */\n getError(errorCode, path) {\n const control = path ? this.get(path) : this;\n return control && control.errors ? control.errors[errorCode] : null;\n }\n /**\n * @description\n * Reports whether the control with the given path has the error specified.\n *\n * @param errorCode The code of the error to check\n * @param path A list of control names that designates how to move from the current control\n * to the control that should be queried for errors.\n *\n * @usageNotes\n * For example, for the following `FormGroup`:\n *\n * ```\n * form = new FormGroup({\n * address: new FormGroup({ street: new FormControl() })\n * });\n * ```\n *\n * The path to the 'street' control from the root form would be 'address' -> 'street'.\n *\n * It can be provided to this method in one of two formats:\n *\n * 1. An array of string control names, e.g. `['address', 'street']`\n * 1. A period-delimited list of control names in one string, e.g. `'address.street'`\n *\n * If no path is given, this method checks for the error on the current control.\n *\n * @returns whether the given error is present in the control at the given path.\n *\n * If the control is not present, false is returned.\n */\n hasError(errorCode, path) {\n return !!this.getError(errorCode, path);\n }\n /**\n * Retrieves the top-level ancestor of this control.\n */\n get root() {\n let x = this;\n while (x._parent) {\n x = x._parent;\n }\n return x;\n }\n /** @internal */\n _updateControlsErrors(emitEvent) {\n this.status = this._calculateStatus();\n if (emitEvent) {\n this.statusChanges.emit(this.status);\n }\n if (this._parent) {\n this._parent._updateControlsErrors(emitEvent);\n }\n }\n /** @internal */\n _initObservables() {\n this.valueChanges = new EventEmitter();\n this.statusChanges = new EventEmitter();\n }\n _calculateStatus() {\n if (this._allControlsDisabled())\n return DISABLED;\n if (this.errors)\n return INVALID;\n if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING))\n return PENDING;\n if (this._anyControlsHaveStatus(INVALID))\n return INVALID;\n return VALID;\n }\n /** @internal */\n _anyControlsHaveStatus(status) {\n return this._anyControls((control) => control.status === status);\n }\n /** @internal */\n _anyControlsDirty() {\n return this._anyControls((control) => control.dirty);\n }\n /** @internal */\n _anyControlsTouched() {\n return this._anyControls((control) => control.touched);\n }\n /** @internal */\n _updatePristine(opts = {}) {\n this.pristine = !this._anyControlsDirty();\n if (this._parent && !opts.onlySelf) {\n this._parent._updatePristine(opts);\n }\n }\n /** @internal */\n _updateTouched(opts = {}) {\n this.touched = this._anyControlsTouched();\n if (this._parent && !opts.onlySelf) {\n this._parent._updateTouched(opts);\n }\n }\n /** @internal */\n _isBoxedValue(formState) {\n return typeof formState === 'object' && formState !== null &&\n Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;\n }\n /** @internal */\n _registerOnCollectionChange(fn) {\n this._onCollectionChange = fn;\n }\n /** @internal */\n _setUpdateStrategy(opts) {\n if (isOptionsObj(opts) && opts.updateOn != null) {\n this._updateOn = opts.updateOn;\n }\n }\n /**\n * Check to see if parent has been marked artificially dirty.\n *\n * @internal\n */\n _parentMarkedDirty(onlySelf) {\n const parentDirty = this._parent && this._parent.dirty;\n return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();\n }\n}\n/**\n * Tracks the value and validation status of an individual form control.\n *\n * This is one of the three fundamental building blocks of Angular forms, along with\n * `FormGroup` and `FormArray`. It extends the `AbstractControl` class that\n * implements most of the base functionality for accessing the value, validation status,\n * user interactions and events. See [usage examples below](#usage-notes).\n *\n * @see `AbstractControl`\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see [Usage Notes](#usage-notes)\n *\n * @usageNotes\n *\n * ### Initializing Form Controls\n *\n * Instantiate a `FormControl`, with an initial value.\n *\n * ```ts\n * const control = new FormControl('some value');\n * console.log(control.value); // 'some value'\n *```\n *\n * The following example initializes the control with a form state object. The `value`\n * and `disabled` keys are required in this case.\n *\n * ```ts\n * const control = new FormControl({ value: 'n/a', disabled: true });\n * console.log(control.value); // 'n/a'\n * console.log(control.status); // 'DISABLED'\n * ```\n *\n * The following example initializes the control with a synchronous validator.\n *\n * ```ts\n * const control = new FormControl('', Validators.required);\n * console.log(control.value); // ''\n * console.log(control.status); // 'INVALID'\n * ```\n *\n * The following example initializes the control using an options object.\n *\n * ```ts\n * const control = new FormControl('', {\n * validators: Validators.required,\n * asyncValidators: myAsyncValidator\n * });\n * ```\n *\n * ### Configure the control to update on a blur event\n *\n * Set the `updateOn` option to `'blur'` to update on the blur `event`.\n *\n * ```ts\n * const control = new FormControl('', { updateOn: 'blur' });\n * ```\n *\n * ### Configure the control to update on a submit event\n *\n * Set the `updateOn` option to `'submit'` to update on a submit `event`.\n *\n * ```ts\n * const control = new FormControl('', { updateOn: 'submit' });\n * ```\n *\n * ### Reset the control back to an initial value\n *\n * You reset to a specific form state by passing through a standalone\n * value or a form state object that contains both a value and a disabled state\n * (these are the only two properties that cannot be calculated).\n *\n * ```ts\n * const control = new FormControl('Nancy');\n *\n * console.log(control.value); // 'Nancy'\n *\n * control.reset('Drew');\n *\n * console.log(control.value); // 'Drew'\n * ```\n *\n * ### Reset the control back to an initial value and disabled\n *\n * ```\n * const control = new FormControl('Nancy');\n *\n * console.log(control.value); // 'Nancy'\n * console.log(control.status); // 'VALID'\n *\n * control.reset({ value: 'Drew', disabled: true });\n *\n * console.log(control.value); // 'Drew'\n * console.log(control.status); // 'DISABLED'\n * ```\n *\n * @publicApi\n */\nclass FormControl extends AbstractControl {\n /**\n * Creates a new `FormControl` instance.\n *\n * @param formState Initializes the control with an initial value,\n * or an object that defines the initial value and disabled state.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(formState = null, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n /** @internal */\n this._onChange = [];\n /** @internal */\n this._pendingChange = false;\n this._applyFormState(formState);\n this._setUpdateStrategy(validatorOrOpts);\n this._initObservables();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n // to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n }\n /**\n * Sets a new value for the form control.\n *\n * @param value The new value for the control.\n * @param options Configuration options that determine how the control propagates changes\n * and emits events when the value changes.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n * * `emitModelToViewChange`: When true or not supplied (the default), each change triggers an\n * `onChange` event to\n * update the view.\n * * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an\n * `ngModelChange`\n * event to update the model.\n *\n */\n setValue(value, options = {}) {\n this.value = this._pendingValue = value;\n if (this._onChange.length && options.emitModelToViewChange !== false) {\n this._onChange.forEach((changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));\n }\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of a control.\n *\n * This function is functionally the same as {@link FormControl#setValue setValue} at this level.\n * It exists for symmetry with {@link FormGroup#patchValue patchValue} on `FormGroups` and\n * `FormArrays`, where it does behave differently.\n *\n * @see `setValue` for options\n */\n patchValue(value, options = {}) {\n this.setValue(value, options);\n }\n /**\n * Resets the form control, marking it `pristine` and `untouched`, and setting\n * the value to null.\n *\n * @param formState Resets the control with an initial value,\n * or an object that defines the initial value and disabled state.\n *\n * @param options Configuration options that determine how the control propagates changes\n * and emits events after the value changes.\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n *\n */\n reset(formState = null, options = {}) {\n this._applyFormState(formState);\n this.markAsPristine(options);\n this.markAsUntouched(options);\n this.setValue(this.value, options);\n this._pendingChange = false;\n }\n /**\n * @internal\n */\n _updateValue() { }\n /**\n * @internal\n */\n _anyControls(condition) {\n return false;\n }\n /**\n * @internal\n */\n _allControlsDisabled() {\n return this.disabled;\n }\n /**\n * Register a listener for change events.\n *\n * @param fn The method that is called when the value changes\n */\n registerOnChange(fn) {\n this._onChange.push(fn);\n }\n /**\n * Internal function to unregister a change events listener.\n * @internal\n */\n _unregisterOnChange(fn) {\n removeListItem(this._onChange, fn);\n }\n /**\n * Register a listener for disabled events.\n *\n * @param fn The method that is called when the disabled status changes.\n */\n registerOnDisabledChange(fn) {\n this._onDisabledChange.push(fn);\n }\n /**\n * Internal function to unregister a disabled event listener.\n * @internal\n */\n _unregisterOnDisabledChange(fn) {\n removeListItem(this._onDisabledChange, fn);\n }\n /**\n * @internal\n */\n _forEachChild(cb) { }\n /** @internal */\n _syncPendingControls() {\n if (this.updateOn === 'submit') {\n if (this._pendingDirty)\n this.markAsDirty();\n if (this._pendingTouched)\n this.markAsTouched();\n if (this._pendingChange) {\n this.setValue(this._pendingValue, { onlySelf: true, emitModelToViewChange: false });\n return true;\n }\n }\n return false;\n }\n _applyFormState(formState) {\n if (this._isBoxedValue(formState)) {\n this.value = this._pendingValue = formState.value;\n formState.disabled ? this.disable({ onlySelf: true, emitEvent: false }) :\n this.enable({ onlySelf: true, emitEvent: false });\n }\n else {\n this.value = this._pendingValue = formState;\n }\n }\n}\n/**\n * Tracks the value and validity state of a group of `FormControl` instances.\n *\n * A `FormGroup` aggregates the values of each child `FormControl` into one object,\n * with each control name as the key. It calculates its status by reducing the status values\n * of its children. For example, if one of the controls in a group is invalid, the entire\n * group becomes invalid.\n *\n * `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,\n * along with `FormControl` and `FormArray`.\n *\n * When instantiating a `FormGroup`, pass in a collection of child controls as the first\n * argument. The key for each child registers the name for the control.\n *\n * @usageNotes\n *\n * ### Create a form group with 2 controls\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl('Nancy', Validators.minLength(2)),\n * last: new FormControl('Drew'),\n * });\n *\n * console.log(form.value); // {first: 'Nancy', last; 'Drew'}\n * console.log(form.status); // 'VALID'\n * ```\n *\n * ### Create a form group with a group-level validator\n *\n * You include group-level validators as the second arg, or group-level async\n * validators as the third arg. These come in handy when you want to perform validation\n * that considers the value of more than one child control.\n *\n * ```\n * const form = new FormGroup({\n * password: new FormControl('', Validators.minLength(2)),\n * passwordConfirm: new FormControl('', Validators.minLength(2)),\n * }, passwordMatchValidator);\n *\n *\n * function passwordMatchValidator(g: FormGroup) {\n * return g.get('password').value === g.get('passwordConfirm').value\n * ? null : {'mismatch': true};\n * }\n * ```\n *\n * Like `FormControl` instances, you choose to pass in\n * validators and async validators as part of an options object.\n *\n * ```\n * const form = new FormGroup({\n * password: new FormControl('')\n * passwordConfirm: new FormControl('')\n * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });\n * ```\n *\n * ### Set the updateOn property for all controls in a form group\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * group level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const c = new FormGroup({\n * one: new FormControl()\n * }, { updateOn: 'blur' });\n * ```\n *\n * @publicApi\n */\nclass FormGroup extends AbstractControl {\n /**\n * Creates a new `FormGroup` instance.\n *\n * @param controls A collection of child controls. The key for each child is the name\n * under which it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,\n // so we set `emitEvent` to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n }\n /**\n * Registers a control with the group's list of controls.\n *\n * This method does not update the value or validity of the control.\n * Use {@link FormGroup#addControl addControl} instead.\n *\n * @param name The control name to register in the collection\n * @param control Provides the control for the given name\n */\n registerControl(name, control) {\n if (this.controls[name])\n return this.controls[name];\n this.controls[name] = control;\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n return control;\n }\n /**\n * Add a control to this group.\n *\n * If a control with a given name already exists, it would *not* be replaced with a new one.\n * If you want to replace an existing control, use the {@link FormGroup#setControl setControl}\n * method instead. This method also updates the value and validity of the control.\n *\n * @param name The control name to add to the collection\n * @param control Provides the control for the given name\n * @param options Specifies whether this FormGroup instance should emit events after a new\n * control is added.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * added. When false, no events are emitted.\n */\n addControl(name, control, options = {}) {\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Remove a control from this group.\n *\n * This method also updates the value and validity of the control.\n *\n * @param name The control name to remove from the collection\n * @param options Specifies whether this FormGroup instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeControl(name, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete (this.controls[name]);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Replace an existing control.\n *\n * If a control with a given name does not exist in this `FormGroup`, it will be added.\n *\n * @param name The control name to replace in the collection\n * @param control Provides the control for the given name\n * @param options Specifies whether this FormGroup instance should emit events after an\n * existing control is replaced.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * replaced with a new one. When false, no events are emitted.\n */\n setControl(name, control, options = {}) {\n if (this.controls[name])\n this.controls[name]._registerOnCollectionChange(() => { });\n delete (this.controls[name]);\n if (control)\n this.registerControl(name, control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Check whether there is an enabled control with the given name in the group.\n *\n * Reports false for disabled controls. If you'd like to check for existence in the group\n * only, use {@link AbstractControl#get get} instead.\n *\n * @param controlName The control name to check for existence in the collection\n *\n * @returns false for disabled controls, true otherwise.\n */\n contains(controlName) {\n return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;\n }\n /**\n * Sets the value of the `FormGroup`. It accepts an object that matches\n * the structure of the group, with control names as keys.\n *\n * @usageNotes\n * ### Set the complete value for the form group\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n *\n * console.log(form.value); // {first: null, last: null}\n *\n * form.setValue({first: 'Nancy', last: 'Drew'});\n * console.log(form.value); // {first: 'Nancy', last: 'Drew'}\n * ```\n *\n * @throws When strict checks fail, such as setting the value of a control\n * that doesn't exist or if you exclude a value of a control that does exist.\n *\n * @param value The new value for the control that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes\n * and emits events after the value changes.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n */\n setValue(value, options = {}) {\n this._checkAllValuesPresent(value);\n Object.keys(value).forEach(name => {\n this._throwIfControlMissing(name);\n this.controls[name].setValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormGroup`. It accepts an object with control\n * names as keys, and does its best to match the values to the correct controls\n * in the group.\n *\n * It accepts both super-sets and sub-sets of the group without throwing an error.\n *\n * @usageNotes\n * ### Patch the value for a form group\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl(),\n * last: new FormControl()\n * });\n * console.log(form.value); // {first: null, last: null}\n *\n * form.patchValue({first: 'Nancy'});\n * console.log(form.value); // {first: 'Nancy', last: null}\n * ```\n *\n * @param value The object that matches the structure of the group.\n * @param options Configuration options that determine how the control propagates changes and\n * emits events after the value is patched.\n * * `onlySelf`: When true, each change only affects this control and not its parent. Default is\n * true.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control value\n * is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values, so\n // we just ignore such cases when a field containing FormGroup instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n Object.keys(value).forEach(name => {\n if (this.controls[name]) {\n this.controls[name].patchValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets\n * the value of all descendants to null.\n *\n * You reset to a specific form state by passing in a map of states\n * that matches the structure of your form, with control names as keys. The state\n * is a standalone value or a form state object with both a value and a disabled\n * status.\n *\n * @param value Resets the control with an initial value,\n * or an object that defines the initial value and disabled state.\n *\n * @param options Configuration options that determine how the control propagates changes\n * and emits events when the group is reset.\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is\n * false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n *\n * @usageNotes\n *\n * ### Reset the form group values\n *\n * ```ts\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * console.log(form.value); // {first: 'first name', last: 'last name'}\n *\n * form.reset({ first: 'name', last: 'last name' });\n *\n * console.log(form.value); // {first: 'name', last: 'last name'}\n * ```\n *\n * ### Reset the form group values and disabled status\n *\n * ```\n * const form = new FormGroup({\n * first: new FormControl('first name'),\n * last: new FormControl('last name')\n * });\n *\n * form.reset({\n * first: {value: 'name', disabled: true},\n * last: 'last'\n * });\n *\n * console.log(form.value); // {last: 'last'}\n * console.log(form.get('first').status); // 'DISABLED'\n * ```\n */\n reset(value = {}, options = {}) {\n this._forEachChild((control, name) => {\n control.reset(value[name], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this._updatePristine(options);\n this._updateTouched(options);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the `FormGroup`, including any disabled controls.\n *\n * Retrieves all values regardless of disabled status.\n * The `value` property is the best way to get the value of the group, because\n * it excludes disabled controls in the `FormGroup`.\n */\n getRawValue() {\n return this._reduceChildren({}, (acc, control, name) => {\n acc[name] = control instanceof FormControl ? control.value : control.getRawValue();\n return acc;\n });\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this._reduceChildren(false, (updated, child) => {\n return child._syncPendingControls() ? true : updated;\n });\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _throwIfControlMissing(name) {\n if (!Object.keys(this.controls).length) {\n throw new Error(`\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `);\n }\n if (!this.controls[name]) {\n throw new Error(`Cannot find form control with name: ${name}.`);\n }\n }\n /** @internal */\n _forEachChild(cb) {\n Object.keys(this.controls).forEach(key => {\n // The list of controls can change (for ex. controls might be removed) while the loop\n // is running (as a result of invoking Forms API in `valueChanges` subscription), so we\n // have to null check before invoking the callback.\n const control = this.controls[key];\n control && cb(control, key);\n });\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n });\n }\n /** @internal */\n _updateValue() {\n this.value = this._reduceValue();\n }\n /** @internal */\n _anyControls(condition) {\n for (const controlName of Object.keys(this.controls)) {\n const control = this.controls[controlName];\n if (this.contains(controlName) && condition(control)) {\n return true;\n }\n }\n return false;\n }\n /** @internal */\n _reduceValue() {\n return this._reduceChildren({}, (acc, control, name) => {\n if (control.enabled || this.disabled) {\n acc[name] = control.value;\n }\n return acc;\n });\n }\n /** @internal */\n _reduceChildren(initValue, fn) {\n let res = initValue;\n this._forEachChild((control, name) => {\n res = fn(res, control, name);\n });\n return res;\n }\n /** @internal */\n _allControlsDisabled() {\n for (const controlName of Object.keys(this.controls)) {\n if (this.controls[controlName].enabled) {\n return false;\n }\n }\n return Object.keys(this.controls).length > 0 || this.disabled;\n }\n /** @internal */\n _checkAllValuesPresent(value) {\n this._forEachChild((control, name) => {\n if (value[name] === undefined) {\n throw new Error(`Must supply a value for form control with name: '${name}'.`);\n }\n });\n }\n}\n/**\n * Tracks the value and validity state of an array of `FormControl`,\n * `FormGroup` or `FormArray` instances.\n *\n * A `FormArray` aggregates the values of each child `FormControl` into an array.\n * It calculates its status by reducing the status values of its children. For example, if one of\n * the controls in a `FormArray` is invalid, the entire array becomes invalid.\n *\n * `FormArray` is one of the three fundamental building blocks used to define forms in Angular,\n * along with `FormControl` and `FormGroup`.\n *\n * @usageNotes\n *\n * ### Create an array of form controls\n *\n * ```\n * const arr = new FormArray([\n * new FormControl('Nancy', Validators.minLength(2)),\n * new FormControl('Drew'),\n * ]);\n *\n * console.log(arr.value); // ['Nancy', 'Drew']\n * console.log(arr.status); // 'VALID'\n * ```\n *\n * ### Create a form array with array-level validators\n *\n * You include array-level validators and async validators. These come in handy\n * when you want to perform validation that considers the value of more than one child\n * control.\n *\n * The two types of validators are passed in separately as the second and third arg\n * respectively, or together as part of an options object.\n *\n * ```\n * const arr = new FormArray([\n * new FormControl('Nancy'),\n * new FormControl('Drew')\n * ], {validators: myValidator, asyncValidators: myAsyncValidator});\n * ```\n *\n * ### Set the updateOn property for all controls in a form array\n *\n * The options object is used to set a default value for each child\n * control's `updateOn` property. If you set `updateOn` to `'blur'` at the\n * array level, all child controls default to 'blur', unless the child\n * has explicitly specified a different `updateOn` value.\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl()\n * ], {updateOn: 'blur'});\n * ```\n *\n * ### Adding or removing controls from a form array\n *\n * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that result in strange and unexpected behavior such\n * as broken change detection.\n *\n * @publicApi\n */\nclass FormArray extends AbstractControl {\n /**\n * Creates a new `FormArray` instance.\n *\n * @param controls An array of child controls. Each child control is given an index\n * where it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains validation functions\n * and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator functions\n *\n */\n constructor(controls, validatorOrOpts, asyncValidator) {\n super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));\n this.controls = controls;\n this._initObservables();\n this._setUpdateStrategy(validatorOrOpts);\n this._setUpControls();\n this.updateValueAndValidity({\n onlySelf: true,\n // If `asyncValidator` is present, it will trigger control status change from `PENDING` to\n // `VALID` or `INVALID`.\n // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`\n // to `true` to allow that during the control creation process.\n emitEvent: !!this.asyncValidator\n });\n }\n /**\n * Get the `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to retrieve the control\n */\n at(index) {\n return this.controls[index];\n }\n /**\n * Insert a new `AbstractControl` at the end of the array.\n *\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is added.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n push(control, options = {}) {\n this.controls.push(control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Insert a new `AbstractControl` at the given `index` in the array.\n *\n * @param index Index in the array to insert the control\n * @param control Form control to be inserted\n * @param options Specifies whether this FormArray instance should emit events after a new\n * control is inserted.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * inserted. When false, no events are emitted.\n */\n insert(index, control, options = {}) {\n this.controls.splice(index, 0, control);\n this._registerControl(control);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Remove the control at the given `index` in the array.\n *\n * @param index Index in the array to remove the control\n * @param options Specifies whether this FormArray instance should emit events after a\n * control is removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * removed. When false, no events are emitted.\n */\n removeAt(index, options = {}) {\n if (this.controls[index])\n this.controls[index]._registerOnCollectionChange(() => { });\n this.controls.splice(index, 1);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /**\n * Replace an existing control.\n *\n * @param index Index in the array to replace the control\n * @param control The `AbstractControl` control to replace the existing control\n * @param options Specifies whether this FormArray instance should emit events after an\n * existing control is replaced with a new one.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control is\n * replaced with a new one. When false, no events are emitted.\n */\n setControl(index, control, options = {}) {\n if (this.controls[index])\n this.controls[index]._registerOnCollectionChange(() => { });\n this.controls.splice(index, 1);\n if (control) {\n this.controls.splice(index, 0, control);\n this._registerControl(control);\n }\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n this._onCollectionChange();\n }\n /**\n * Length of the control array.\n */\n get length() {\n return this.controls.length;\n }\n /**\n * Sets the value of the `FormArray`. It accepts an array that matches\n * the structure of the control.\n *\n * This method performs strict checks, and throws an error if you try\n * to set the value of a control that doesn't exist or if you exclude the\n * value of a control.\n *\n * @usageNotes\n * ### Set the values for the controls in the form array\n *\n * ```\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.setValue(['Nancy', 'Drew']);\n * console.log(arr.value); // ['Nancy', 'Drew']\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control value is updated.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n setValue(value, options = {}) {\n this._checkAllValuesPresent(value);\n value.forEach((newValue, index) => {\n this._throwIfControlMissing(index);\n this.at(index).setValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Patches the value of the `FormArray`. It accepts an array that matches the\n * structure of the control, and does its best to match the values to the correct\n * controls in the group.\n *\n * It accepts both super-sets and sub-sets of the array without throwing an error.\n *\n * @usageNotes\n * ### Patch the values for controls in a form array\n *\n * ```\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.value); // [null, null]\n *\n * arr.patchValue(['Nancy']);\n * console.log(arr.value); // ['Nancy', null]\n * ```\n *\n * @param value Array of latest values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when the control value\n * is updated. When false, no events are emitted. The configuration options are passed to\n * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.\n */\n patchValue(value, options = {}) {\n // Even though the `value` argument type doesn't allow `null` and `undefined` values, the\n // `patchValue` can be called recursively and inner data structures might have these values, so\n // we just ignore such cases when a field containing FormArray instance receives `null` or\n // `undefined` as a value.\n if (value == null /* both `null` and `undefined` */)\n return;\n value.forEach((newValue, index) => {\n if (this.at(index)) {\n this.at(index).patchValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });\n }\n });\n this.updateValueAndValidity(options);\n }\n /**\n * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the\n * value of all descendants to null or null maps.\n *\n * You reset to a specific form state by passing in an array of states\n * that matches the structure of the control. The state is a standalone value\n * or a form state object with both a value and a disabled status.\n *\n * @usageNotes\n * ### Reset the values in a form array\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * arr.reset(['name', 'last name']);\n *\n * console.log(arr.value); // ['name', 'last name']\n * ```\n *\n * ### Reset the values in a form array and the disabled status for the first control\n *\n * ```\n * arr.reset([\n * {value: 'name', disabled: true},\n * 'last'\n * ]);\n *\n * console.log(arr.value); // ['last']\n * console.log(arr.at(0).status); // 'DISABLED'\n * ```\n *\n * @param value Array of values for the controls\n * @param options Configure options that determine how the control propagates changes and\n * emits events after the value changes\n *\n * * `onlySelf`: When true, each change only affects this control, and not its parent. Default\n * is false.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges`\n * observables emit events with the latest status and value when the control is reset.\n * When false, no events are emitted.\n * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity\n * updateValueAndValidity} method.\n */\n reset(value = [], options = {}) {\n this._forEachChild((control, index) => {\n control.reset(value[index], { onlySelf: true, emitEvent: options.emitEvent });\n });\n this._updatePristine(options);\n this._updateTouched(options);\n this.updateValueAndValidity(options);\n }\n /**\n * The aggregate value of the array, including any disabled controls.\n *\n * Reports all values regardless of disabled status.\n * For enabled controls only, the `value` property is the best way to get the value of the array.\n */\n getRawValue() {\n return this.controls.map((control) => {\n return control instanceof FormControl ? control.value : control.getRawValue();\n });\n }\n /**\n * Remove all controls in the `FormArray`.\n *\n * @param options Specifies whether this FormArray instance should emit events after all\n * controls are removed.\n * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and\n * `valueChanges` observables emit events with the latest status and value when all controls\n * in this FormArray instance are removed. When false, no events are emitted.\n *\n * @usageNotes\n * ### Remove all elements from a FormArray\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n * console.log(arr.length); // 2\n *\n * arr.clear();\n * console.log(arr.length); // 0\n * ```\n *\n * It's a simpler and more efficient alternative to removing all elements one by one:\n *\n * ```ts\n * const arr = new FormArray([\n * new FormControl(),\n * new FormControl()\n * ]);\n *\n * while (arr.length) {\n * arr.removeAt(0);\n * }\n * ```\n */\n clear(options = {}) {\n if (this.controls.length < 1)\n return;\n this._forEachChild((control) => control._registerOnCollectionChange(() => { }));\n this.controls.splice(0);\n this.updateValueAndValidity({ emitEvent: options.emitEvent });\n }\n /** @internal */\n _syncPendingControls() {\n let subtreeUpdated = this.controls.reduce((updated, child) => {\n return child._syncPendingControls() ? true : updated;\n }, false);\n if (subtreeUpdated)\n this.updateValueAndValidity({ onlySelf: true });\n return subtreeUpdated;\n }\n /** @internal */\n _throwIfControlMissing(index) {\n if (!this.controls.length) {\n throw new Error(`\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `);\n }\n if (!this.at(index)) {\n throw new Error(`Cannot find form control at index ${index}`);\n }\n }\n /** @internal */\n _forEachChild(cb) {\n this.controls.forEach((control, index) => {\n cb(control, index);\n });\n }\n /** @internal */\n _updateValue() {\n this.value =\n this.controls.filter((control) => control.enabled || this.disabled)\n .map((control) => control.value);\n }\n /** @internal */\n _anyControls(condition) {\n return this.controls.some((control) => control.enabled && condition(control));\n }\n /** @internal */\n _setUpControls() {\n this._forEachChild((control) => this._registerControl(control));\n }\n /** @internal */\n _checkAllValuesPresent(value) {\n this._forEachChild((control, i) => {\n if (value[i] === undefined) {\n throw new Error(`Must supply a value for form control at index: ${i}.`);\n }\n });\n }\n /** @internal */\n _allControlsDisabled() {\n for (const control of this.controls) {\n if (control.enabled)\n return false;\n }\n return this.controls.length > 0 || this.disabled;\n }\n _registerControl(control) {\n control.setParent(this);\n control._registerOnCollectionChange(this._onCollectionChange);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst formDirectiveProvider$1 = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgForm)\n};\nconst resolvedPromise$1 = (() => Promise.resolve(null))();\n/**\n * @description\n * Creates a top-level `FormGroup` instance and binds it to a form\n * to track aggregate form value and validation status.\n *\n * As soon as you import the `FormsModule`, this directive becomes active by default on\n * all `<form>` tags. You don't need to add a special selector.\n *\n * You optionally export the directive into a local template variable using `ngForm` as the key\n * (ex: `#myForm=\"ngForm\"`). This is optional, but useful. Many properties from the underlying\n * `FormGroup` instance are duplicated on the directive itself, so a reference to it\n * gives you access to the aggregate value and validity status of the form, as well as\n * user interaction properties like `dirty` and `touched`.\n *\n * To register child controls with the form, use `NgModel` with a `name`\n * attribute. You may use `NgModelGroup` to create sub-groups within the form.\n *\n * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has\n * triggered a form submission. The `ngSubmit` event emits the original form\n * submission event.\n *\n * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.\n * To import the `FormsModule` but skip its usage in some forms,\n * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`\n * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is\n * unnecessary because the `<form>` tags are inert. In that case, you would\n * refrain from using the `formGroup` directive.\n *\n * @usageNotes\n *\n * ### Listening for form submission\n *\n * The following example shows how to capture the form values from the \"ngSubmit\" event.\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Setting the update options\n *\n * The following example shows you how to change the \"updateOn\" option from its default using\n * ngFormOptions.\n *\n * ```html\n * <form [ngFormOptions]=\"{updateOn: 'blur'}\">\n * <input name=\"one\" ngModel> <!-- this ngModel will update on blur -->\n * </form>\n * ```\n *\n * ### Native DOM validation UI\n *\n * In order to prevent the native DOM form validation UI from interfering with Angular's form\n * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever\n * `FormModule` or `ReactiveFormModule` are imported into the application.\n * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the\n * `ngNativeValidate` attribute to the `<form>` element:\n *\n * ```html\n * <form ngNativeValidate>\n * ...\n * </form>\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgForm extends ControlContainer {\n constructor(validators, asyncValidators) {\n super();\n /**\n * @description\n * Returns whether the form submission has been triggered.\n */\n this.submitted = false;\n this._directives = [];\n /**\n * @description\n * Event emitter for the \"ngSubmit\" event\n */\n this.ngSubmit = new EventEmitter();\n this.form =\n new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n }\n /** @nodoc */\n ngAfterViewInit() {\n this._setUpdateStrategy();\n }\n /**\n * @description\n * The directive instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * The internal `FormGroup` instance.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it is always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Returns a map of the controls in this group.\n */\n get controls() {\n return this.form.controls;\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `NgModel` directive instance.\n */\n addControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n dir.control =\n container.registerControl(dir.name, dir.control);\n setUpControl(dir.control, dir);\n dir.control.updateValueAndValidity({ emitEvent: false });\n this._directives.push(dir);\n });\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `NgModel` directive.\n *\n * @param dir The `NgModel` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `NgModel` instance from the internal list of directives\n *\n * @param dir The `NgModel` directive instance.\n */\n removeControl(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n removeListItem(this._directives, dir);\n });\n }\n /**\n * @description\n * Adds a new `NgModelGroup` directive instance to the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n addFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n const group = new FormGroup({});\n setUpFormContainer(group, dir);\n container.registerControl(dir.name, group);\n group.updateValueAndValidity({ emitEvent: false });\n });\n }\n /**\n * @description\n * Removes the `NgModelGroup` directive instance from the form.\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n removeFormGroup(dir) {\n resolvedPromise$1.then(() => {\n const container = this._findContainer(dir.path);\n if (container) {\n container.removeControl(dir.name);\n }\n });\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance\n *\n * @param dir The `NgModelGroup` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `NgControl` directive.\n *\n * @param dir The `NgControl` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n resolvedPromise$1.then(() => {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n });\n }\n /**\n * @description\n * Sets the value for this `FormGroup`.\n *\n * @param value The new value\n */\n setValue(value) {\n this.control.setValue(value);\n }\n /**\n * @description\n * Method called when the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this.submitted = true;\n syncPendingControls(this.form, this._directives);\n this.ngSubmit.emit($event);\n return false;\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this.submitted = false;\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.form._updateOn = this.options.updateOn;\n }\n }\n /** @internal */\n _findContainer(path) {\n path.pop();\n return path.length ? this.form.get(path) : this.form;\n }\n}\nNgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgForm, selector: \"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]\", inputs: { options: [\"ngFormOptions\", \"options\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider$1], exportAs: [\"ngForm\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgForm, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',\n providers: [formDirectiveProvider$1],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n outputs: ['ngSubmit'],\n exportAs: 'ngForm'\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }];\n }, propDecorators: { options: [{\n type: Input,\n args: ['ngFormOptions']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.\n *\n * @publicApi\n */\nclass AbstractFormGroupDirective extends ControlContainer {\n /** @nodoc */\n ngOnInit() {\n this._checkParentType();\n // Register the group with its parent group.\n this.formDirective.addFormGroup(this);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n // Remove the group from its parent group.\n this.formDirective.removeFormGroup(this);\n }\n }\n /**\n * @description\n * The `FormGroup` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormGroup(this);\n }\n /**\n * @description\n * The path to this group from the top-level directive.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /** @internal */\n _checkParentType() { }\n}\nAbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nAbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{\n type: Directive\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction modelParentException() {\n return new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive \"formControlName\" instead. Example:\n\n ${formControlNameExample}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${ngModelWithFormGroupExample}`);\n}\nfunction formGroupNameException() {\n return new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\nfunction missingNameException() {\n return new Error(`If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as 'standalone' in ngModelOptions.\n\n Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`);\n}\nfunction modelGroupParentException() {\n return new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${formGroupNameExample}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ngModelGroupExample}`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst modelGroupProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => NgModelGroup)\n};\n/**\n * @description\n * Creates and binds a `FormGroup` instance to a DOM element.\n *\n * This directive can only be used as a child of `NgForm` (within `<form>` tags).\n *\n * Use this directive to validate a sub-group of your form separately from the\n * rest of your form, or if some values in your domain model make more sense\n * to consume together in a nested object.\n *\n * Provide a name for the sub-group and it will become the key\n * for the sub-group in the form's full value. If you need direct access, export the directive into\n * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).\n *\n * @usageNotes\n *\n * ### Consuming controls in a grouping\n *\n * The following example shows you how to combine controls together in a sub-group\n * of the form.\n *\n * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModelGroup extends AbstractFormGroupDirective {\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw modelGroupParentException();\n }\n }\n}\nNgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgModelGroup, selector: \"[ngModelGroup]\", inputs: { name: [\"ngModelGroup\", \"name\"] }, providers: [modelGroupProvider], exportAs: [\"ngModelGroup\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgModelGroup, decorators: [{\n type: Directive,\n args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }];\n }, propDecorators: { name: [{\n type: Input,\n args: ['ngModelGroup']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst formControlBinding$1 = {\n provide: NgControl,\n useExisting: forwardRef(() => NgModel)\n};\n/**\n * `ngModel` forces an additional change detection run when its inputs change:\n * E.g.:\n * ```\n * <div>{{myModel.valid}}</div>\n * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">\n * ```\n * I.e. `ngModel` can export itself on the element and then be used in the template.\n * Normally, this would result in expressions before the `input` that use the exported directive\n * to have an old value as they have been\n * dirty checked before. As this is a very common case for `ngModel`, we added this second change\n * detection run.\n *\n * Notes:\n * - this is just one extra run no matter how many `ngModel`s have been changed.\n * - this is a general problem when using `exportAs` for directives!\n */\nconst resolvedPromise = (() => Promise.resolve(null))();\n/**\n * @description\n * Creates a `FormControl` instance from a domain model and binds it\n * to a form control element.\n *\n * The `FormControl` instance tracks the value, user interaction, and\n * validation status of the control and keeps the view synced with the model. If used\n * within a parent form, the directive also registers itself with the form as a child\n * control.\n *\n * This directive is used by itself or as part of a larger form. Use the\n * `ngModel` selector to activate it.\n *\n * It accepts a domain model as an optional `Input`. If you have a one-way binding\n * to `ngModel` with `[]` syntax, changing the domain model's value in the component\n * class sets the value in the view. If you have a two-way binding with `[()]` syntax\n * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to\n * the domain model in your class.\n *\n * To inspect the properties of the associated `FormControl` (like the validity state),\n * export the directive into a local template variable using `ngModel` as the key (ex:\n * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.\n * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control\n * for direct access. See a full list of properties directly available in\n * `AbstractControlDirective`.\n *\n * @see `RadioControlValueAccessor`\n * @see `SelectControlValueAccessor`\n *\n * @usageNotes\n *\n * ### Using ngModel on a standalone control\n *\n * The following examples show a simple standalone control using `ngModel`:\n *\n * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}\n *\n * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute\n * so that the control can be registered with the parent form under that name.\n *\n * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,\n * as the parent form syncs the value for you. You access its properties by exporting it into a\n * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where\n * needed on form submission.\n *\n * If you do need to populate initial values into your form, using a one-way binding for\n * `ngModel` tends to be sufficient as long as you use the exported form's value rather\n * than the domain model's value on submit.\n *\n * ### Using ngModel within a form\n *\n * The following example shows controls using `ngModel` within a form:\n *\n * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}\n *\n * ### Using a standalone ngModel within a group\n *\n * The following example shows you how to use a standalone ngModel control\n * within a form. This controls the display of the form, but doesn't contain form data.\n *\n * ```html\n * <form>\n * <input name=\"login\" ngModel placeholder=\"Login\">\n * <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?\n * </form>\n * <!-- form value: {login: ''} -->\n * ```\n *\n * ### Setting the ngModel `name` attribute through options\n *\n * The following example shows you an alternate way to set the name attribute. Here,\n * an attribute identified as name is used within a custom form control component. To still be able\n * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.\n *\n * ```html\n * <form>\n * <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">\n * </my-custom-form-control>\n * </form>\n * <!-- form value: {user: ''} -->\n * ```\n *\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgModel extends NgControl {\n constructor(parent, validators, asyncValidators, valueAccessors) {\n super();\n this.control = new FormControl();\n /** @internal */\n this._registered = false;\n /**\n * @description\n * Event emitter for producing the `ngModelChange` event after\n * the view model updates.\n */\n this.update = new EventEmitter();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkForErrors();\n if (!this._registered)\n this._setUpControl();\n if ('isDisabled' in changes) {\n this._updateDisabled(changes);\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this._updateValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n this.formDirective && this.formDirective.removeControl(this);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return this._parent ? controlPath(this.name, this._parent) : [this.name];\n }\n /**\n * @description\n * The top-level directive for this control if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value emitted by `ngModelChange`.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _setUpControl() {\n this._setUpdateStrategy();\n this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);\n this._registered = true;\n }\n _setUpdateStrategy() {\n if (this.options && this.options.updateOn != null) {\n this.control._updateOn = this.options.updateOn;\n }\n }\n _isStandalone() {\n return !this._parent || !!(this.options && this.options.standalone);\n }\n _setUpStandalone() {\n setUpControl(this.control, this);\n this.control.updateValueAndValidity({ emitEvent: false });\n }\n _checkForErrors() {\n if (!this._isStandalone()) {\n this._checkParentType();\n }\n this._checkName();\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof NgModelGroup) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw formGroupNameException();\n }\n else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n throw modelParentException();\n }\n }\n }\n _checkName() {\n if (this.options && this.options.name)\n this.name = this.options.name;\n if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingNameException();\n }\n }\n _updateValue(value) {\n resolvedPromise.then(() => {\n this.control.setValue(value, { emitViewToModelChange: false });\n });\n }\n _updateDisabled(changes) {\n const disabledValue = changes['isDisabled'].currentValue;\n const isDisabled = disabledValue === '' || (disabledValue && disabledValue !== 'false');\n resolvedPromise.then(() => {\n if (isDisabled && !this.control.disabled) {\n this.control.disable();\n }\n else if (!isDisabled && this.control.disabled) {\n this.control.enable();\n }\n });\n }\n}\nNgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: { name: \"name\", isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"], options: [\"ngModelOptions\", \"options\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding$1], exportAs: [\"ngModel\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgModel, decorators: [{\n type: Directive,\n args: [{\n selector: '[ngModel]:not([formControlName]):not([formControl])',\n providers: [formControlBinding$1],\n exportAs: 'ngModel'\n }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }];\n }, propDecorators: { name: [{\n type: Input\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], options: [{\n type: Input,\n args: ['ngModelOptions']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Adds `novalidate` attribute to all forms by default.\n *\n * `novalidate` is used to disable browser's native form validation.\n *\n * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:\n *\n * ```\n * <form ngNativeValidate></form>\n * ```\n *\n * @publicApi\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n */\nclass ɵNgNoValidate {\n}\nɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\", host: { attributes: { \"novalidate\": \"\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵNgNoValidate, decorators: [{\n type: Directive,\n args: [{\n selector: 'form:not([ngNoForm]):not([ngNativeValidate])',\n host: { 'novalidate': '' },\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst NUMBER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumberValueAccessor),\n multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a number value and listening to number input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a number input with a reactive form.\n *\n * The following example shows how to use a number input with a reactive form.\n *\n * ```ts\n * const totalCountControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"number\" [formControl]=\"totalCountControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NumberValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n const normalizedValue = value == null ? '' : value;\n this.setProperty('value', normalizedValue);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n}\nNumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nNumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NumberValueAccessor, selector: \"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]\", host: { listeners: { \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NumberValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [NUMBER_VALUE_ACCESSOR]\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RadioControlValueAccessor),\n multi: true\n};\nfunction throwNameError() {\n throw new Error(`\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n `);\n}\n/**\n * Internal-only NgModule that works as a host for the `RadioControlRegistry` tree-shakable\n * provider. Note: the `InternalFormsSharedModule` can not be used here directly, since it's\n * declared *after* the `RadioControlRegistry` class and the `providedIn` doesn't support\n * `forwardRef` logic.\n */\nclass RadioControlRegistryModule {\n}\nRadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nRadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistryModule });\nRadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistryModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistryModule, decorators: [{\n type: NgModule\n }] });\n/**\n * @description\n * Class used by Angular to track radio buttons. For internal use only.\n */\nclass RadioControlRegistry {\n constructor() {\n this._accessors = [];\n }\n /**\n * @description\n * Adds a control to the internal registry. For internal use only.\n */\n add(control, accessor) {\n this._accessors.push([control, accessor]);\n }\n /**\n * @description\n * Removes a control from the internal registry. For internal use only.\n */\n remove(accessor) {\n for (let i = this._accessors.length - 1; i >= 0; --i) {\n if (this._accessors[i][1] === accessor) {\n this._accessors.splice(i, 1);\n return;\n }\n }\n }\n /**\n * @description\n * Selects a radio button. For internal use only.\n */\n select(accessor) {\n this._accessors.forEach((c) => {\n if (this._isSameGroup(c, accessor) && c[1] !== accessor) {\n c[1].fireUncheck(accessor.value);\n }\n });\n }\n _isSameGroup(controlPair, accessor) {\n if (!controlPair[0].control)\n return false;\n return controlPair[0]._parent === accessor._control._parent &&\n controlPair[1].name === accessor.name;\n }\n}\nRadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nRadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistry, providedIn: RadioControlRegistryModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlRegistry, decorators: [{\n type: Injectable,\n args: [{ providedIn: RadioControlRegistryModule }]\n }] });\n/**\n * @description\n * The `ControlValueAccessor` for writing radio control values and listening to radio control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using radio buttons with reactive form directives\n *\n * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in\n * a reactive form, radio buttons in the same group should have the same `formControlName`.\n * Providing a `name` attribute is optional.\n *\n * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RadioControlValueAccessor extends BuiltInControlValueAccessor {\n constructor(renderer, elementRef, _registry, _injector) {\n super(renderer, elementRef);\n this._registry = _registry;\n this._injector = _injector;\n /**\n * The registered callback function called when a change event occurs on the input element.\n * Note: we declare `onChange` here (also used as host listener) as a function with no arguments\n * to override the `onChange` function (which expects 1 argument) in the parent\n * `BaseControlValueAccessor` class.\n * @nodoc\n */\n this.onChange = () => { };\n }\n /** @nodoc */\n ngOnInit() {\n this._control = this._injector.get(NgControl);\n this._checkName();\n this._registry.add(this._control, this);\n }\n /** @nodoc */\n ngOnDestroy() {\n this._registry.remove(this);\n }\n /**\n * Sets the \"checked\" property value on the radio input element.\n * @nodoc\n */\n writeValue(value) {\n this._state = value === this.value;\n this.setProperty('checked', this._state);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this._fn = fn;\n this.onChange = () => {\n fn(this.value);\n this._registry.select(this);\n };\n }\n /**\n * Sets the \"value\" on the radio input element and unchecks it.\n *\n * @param value\n */\n fireUncheck(value) {\n this.writeValue(value);\n }\n _checkName() {\n if (this.name && this.formControlName && this.name !== this.formControlName &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwNameError();\n }\n if (!this.name && this.formControlName)\n this.name = this.formControlName;\n }\n}\nRadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });\nRadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RadioControlValueAccessor, selector: \"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]\", inputs: { name: \"name\", formControlName: \"formControlName\", value: \"value\" }, host: { listeners: { \"change\": \"onChange()\", \"blur\": \"onTouched()\" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RadioControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',\n host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\n providers: [RADIO_VALUE_ACCESSOR]\n }]\n }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: RadioControlRegistry }, { type: i0.Injector }]; }, propDecorators: { name: [{\n type: Input\n }], formControlName: [{\n type: Input\n }], value: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst RANGE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RangeValueAccessor),\n multi: true\n};\n/**\n * @description\n * The `ControlValueAccessor` for writing a range value and listening to range input changes.\n * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`\n * directives.\n *\n * @usageNotes\n *\n * ### Using a range input with a reactive form\n *\n * The following example shows how to use a range input with a reactive form.\n *\n * ```ts\n * const ageControl = new FormControl();\n * ```\n *\n * ```\n * <input type=\"range\" [formControl]=\"ageControl\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass RangeValueAccessor extends BuiltInControlValueAccessor {\n /**\n * Sets the \"value\" property on the input element.\n * @nodoc\n */\n writeValue(value) {\n this.setProperty('value', parseFloat(value));\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (value) => {\n fn(value == '' ? null : parseFloat(value));\n };\n }\n}\nRangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nRangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RangeValueAccessor, selector: \"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]\", host: { listeners: { \"change\": \"onChange($event.target.value)\", \"input\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RangeValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',\n host: {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n providers: [RANGE_VALUE_ACCESSOR]\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Token to provide to turn off the ngModel warning on formControl and formControlName.\n */\nconst NG_MODEL_WITH_FORM_CONTROL_WARNING = new InjectionToken('NgModelWithFormControlWarning');\nconst formControlBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlDirective)\n};\n/**\n * @description\n * Synchronizes a standalone `FormControl` instance to a form control element.\n *\n * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives was deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see `FormControl`\n * @see `AbstractControl`\n *\n * @usageNotes\n *\n * The following example shows how to register a standalone control and set its value.\n *\n * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlDirective extends NgControl {\n constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n /** @deprecated as of v6 */\n this.update = new EventEmitter();\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular `FormControlDirective` instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n this._ngModelWarningSent = false;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this._isControlChanged(changes)) {\n const previousForm = changes['form'].previousValue;\n if (previousForm) {\n cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */ false);\n }\n setUpControl(this.form, this);\n if (this.control.disabled && this.valueAccessor.setDisabledState) {\n this.valueAccessor.setDisabledState(true);\n }\n this.form.updateValueAndValidity({ emitEvent: false });\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);\n }\n this.form.setValue(this.model);\n this.viewModel = this.model;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);\n }\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * The `FormControl` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n _isControlChanged(changes) {\n return changes.hasOwnProperty('form');\n }\n}\n/**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlDirective. Used to support warning config of \"once\".\n *\n * @internal\n */\nFormControlDirective._ngModelWarningSentOnce = false;\nFormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: FormControlDirective, selector: \"[formControl]\", inputs: { form: [\"formControl\", \"form\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [formControlBinding], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormControlDirective, decorators: [{\n type: Directive,\n args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }];\n }, propDecorators: { form: [{\n type: Input,\n args: ['formControl']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst formDirectiveProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupDirective)\n};\n/**\n * @description\n *\n * Binds an existing `FormGroup` to a DOM element.\n *\n * This directive accepts an existing `FormGroup` instance. It will then use this\n * `FormGroup` instance to match any child `FormControl`, `FormGroup`,\n * and `FormArray` instances to child `FormControlName`, `FormGroupName`,\n * and `FormArrayName` directives.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see `AbstractControl`\n *\n * @usageNotes\n * ### Register Form Group\n *\n * The following example registers a `FormGroup` with first name and last name controls,\n * and listens for the *ngSubmit* event when the button is clicked.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupDirective extends ControlContainer {\n constructor(validators, asyncValidators) {\n super();\n this.validators = validators;\n this.asyncValidators = asyncValidators;\n /**\n * @description\n * Reports whether the form submission has been triggered.\n */\n this.submitted = false;\n /**\n * Callback that should be invoked when controls in FormGroup or FormArray collection change\n * (added or removed). This callback triggers corresponding DOM updates.\n */\n this._onCollectionChange = () => this._updateDomValue();\n /**\n * @description\n * Tracks the list of added `FormControlName` instances\n */\n this.directives = [];\n /**\n * @description\n * Tracks the `FormGroup` bound to this directive.\n */\n this.form = null;\n /**\n * @description\n * Emits an event when the form submission has been triggered.\n */\n this.ngSubmit = new EventEmitter();\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @nodoc */\n ngOnChanges(changes) {\n this._checkFormPresent();\n if (changes.hasOwnProperty('form')) {\n this._updateValidators();\n this._updateDomValue();\n this._updateRegistrations();\n this._oldForm = this.form;\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.form) {\n cleanUpValidators(this.form, this);\n // Currently the `onCollectionChange` callback is rewritten each time the\n // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should\n // happen *only* when the `onCollectionChange` callback was set by this directive instance.\n // Otherwise it might cause overriding a callback of some other directive instances. We should\n // consider updating this logic later to make it similar to how `onChange` callbacks are\n // handled, see https://github.com/angular/angular/issues/39732 for additional info.\n if (this.form._onCollectionChange === this._onCollectionChange) {\n this.form._registerOnCollectionChange(() => { });\n }\n }\n }\n /**\n * @description\n * Returns this directive's instance.\n */\n get formDirective() {\n return this;\n }\n /**\n * @description\n * Returns the `FormGroup` bound to this directive.\n */\n get control() {\n return this.form;\n }\n /**\n * @description\n * Returns an array representing the path to this group. Because this directive\n * always lives at the top level of a form, it always an empty array.\n */\n get path() {\n return [];\n }\n /**\n * @description\n * Method that sets up the control directive in this group, re-calculates its value\n * and validity, and adds the instance to the internal list of directives.\n *\n * @param dir The `FormControlName` directive instance.\n */\n addControl(dir) {\n const ctrl = this.form.get(dir.path);\n setUpControl(ctrl, dir);\n ctrl.updateValueAndValidity({ emitEvent: false });\n this.directives.push(dir);\n return ctrl;\n }\n /**\n * @description\n * Retrieves the `FormControl` instance from the provided `FormControlName` directive\n *\n * @param dir The `FormControlName` directive instance.\n */\n getControl(dir) {\n return this.form.get(dir.path);\n }\n /**\n * @description\n * Removes the `FormControlName` instance from the internal list of directives\n *\n * @param dir The `FormControlName` directive instance.\n */\n removeControl(dir) {\n cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */ false);\n removeListItem(this.directives, dir);\n }\n /**\n * Adds a new `FormGroupName` directive instance to the form.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n addFormGroup(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormGroupName` directive instance.\n */\n removeFormGroup(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance\n *\n * @param dir The `FormGroupName` directive instance.\n */\n getFormGroup(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n addFormArray(dir) {\n this._setUpFormContainer(dir);\n }\n /**\n * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the\n * view.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n removeFormArray(dir) {\n this._cleanUpFormContainer(dir);\n }\n /**\n * @description\n * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.\n *\n * @param dir The `FormArrayName` directive instance.\n */\n getFormArray(dir) {\n return this.form.get(dir.path);\n }\n /**\n * Sets the new value for the provided `FormControlName` directive.\n *\n * @param dir The `FormControlName` directive instance.\n * @param value The new value for the directive's control.\n */\n updateModel(dir, value) {\n const ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n }\n /**\n * @description\n * Method called with the \"submit\" event is triggered on the form.\n * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.\n *\n * @param $event The \"submit\" event object\n */\n onSubmit($event) {\n this.submitted = true;\n syncPendingControls(this.form, this.directives);\n this.ngSubmit.emit($event);\n return false;\n }\n /**\n * @description\n * Method called when the \"reset\" event is triggered on the form.\n */\n onReset() {\n this.resetForm();\n }\n /**\n * @description\n * Resets the form to an initial value and resets its submitted status.\n *\n * @param value The new value for the form.\n */\n resetForm(value = undefined) {\n this.form.reset(value);\n this.submitted = false;\n }\n /** @internal */\n _updateDomValue() {\n this.directives.forEach(dir => {\n const oldCtrl = dir.control;\n const newCtrl = this.form.get(dir.path);\n if (oldCtrl !== newCtrl) {\n // Note: the value of the `dir.control` may not be defined, for example when it's a first\n // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).\n cleanUpControl(oldCtrl || null, dir);\n // Check whether new control at the same location inside the corresponding `FormGroup` is an\n // instance of `FormControl` and perform control setup only if that's the case.\n // Note: we don't need to clear the list of directives (`this.directives`) here, it would be\n // taken care of in the `removeControl` method invoked when corresponding `formControlName`\n // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).\n if (newCtrl instanceof FormControl) {\n setUpControl(newCtrl, dir);\n dir.control = newCtrl;\n }\n }\n });\n this.form._updateTreeValidity({ emitEvent: false });\n }\n _setUpFormContainer(dir) {\n const ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n // NOTE: this operation looks unnecessary in case no new validators were added in\n // `setUpFormContainer` call. Consider updating this code to match the logic in\n // `_cleanUpFormContainer` function.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n _cleanUpFormContainer(dir) {\n if (this.form) {\n const ctrl = this.form.get(dir.path);\n if (ctrl) {\n const isControlUpdated = cleanUpFormContainer(ctrl, dir);\n if (isControlUpdated) {\n // Run validity check only in case a control was updated (i.e. view validators were\n // removed) as removing view validators might cause validity to change.\n ctrl.updateValueAndValidity({ emitEvent: false });\n }\n }\n }\n }\n _updateRegistrations() {\n this.form._registerOnCollectionChange(this._onCollectionChange);\n if (this._oldForm) {\n this._oldForm._registerOnCollectionChange(() => { });\n }\n }\n _updateValidators() {\n setUpValidators(this.form, this);\n if (this._oldForm) {\n cleanUpValidators(this._oldForm, this);\n }\n }\n _checkFormPresent() {\n if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw missingFormException();\n }\n }\n}\nFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: FormGroupDirective, selector: \"[formGroup]\", inputs: { form: [\"formGroup\", \"form\"] }, outputs: { ngSubmit: \"ngSubmit\" }, host: { listeners: { \"submit\": \"onSubmit($event)\", \"reset\": \"onReset()\" } }, providers: [formDirectiveProvider], exportAs: [\"ngForm\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormGroupDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[formGroup]',\n providers: [formDirectiveProvider],\n host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },\n exportAs: 'ngForm'\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }];\n }, propDecorators: { form: [{\n type: Input,\n args: ['formGroup']\n }], ngSubmit: [{\n type: Output\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst formGroupNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormGroup` to a DOM element.\n *\n * This directive can only be used with a parent `FormGroupDirective`.\n *\n * It accepts the string name of the nested `FormGroup` to link, and\n * looks for a `FormGroup` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * Use nested form groups to validate a sub-group of a\n * form separately from the rest or to group the values of certain\n * controls into their own nested object.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @usageNotes\n *\n * ### Access the group by name\n *\n * The following example uses the {@link AbstractControl#get get} method to access the\n * associated `FormGroup`\n *\n * ```ts\n * this.form.get('name');\n * ```\n *\n * ### Access individual controls in the group\n *\n * The following example uses the {@link AbstractControl#get get} method to access\n * individual controls within the group using dot syntax.\n *\n * ```ts\n * this.form.get('name.first');\n * ```\n *\n * ### Register a nested `FormGroup`.\n *\n * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,\n * and provides methods to retrieve the nested `FormGroup` and individual controls.\n *\n * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormGroupName extends AbstractFormGroupDirective {\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /** @internal */\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw groupParentException();\n }\n }\n}\nFormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: FormGroupName, selector: \"[formGroupName]\", inputs: { name: [\"formGroupName\", \"name\"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormGroupName, decorators: [{\n type: Directive,\n args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }];\n }, propDecorators: { name: [{\n type: Input,\n args: ['formGroupName']\n }] } });\nconst formArrayNameProvider = {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormArrayName)\n};\n/**\n * @description\n *\n * Syncs a nested `FormArray` to a DOM element.\n *\n * This directive is designed to be used with a parent `FormGroupDirective` (selector:\n * `[formGroup]`).\n *\n * It accepts the string name of the nested `FormArray` you want to link, and\n * will look for a `FormArray` registered with that name in the parent\n * `FormGroup` instance you passed into `FormGroupDirective`.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see `AbstractControl`\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormArrayName extends ControlContainer {\n constructor(parent, validators, asyncValidators) {\n super();\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n }\n /**\n * A lifecycle method called when the directive's inputs are initialized. For internal use only.\n * @throws If the directive does not have a valid parent.\n * @nodoc\n */\n ngOnInit() {\n this._checkParentType();\n this.formDirective.addFormArray(this);\n }\n /**\n * A lifecycle method called before the directive's instance is destroyed. For internal use only.\n * @nodoc\n */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n }\n /**\n * @description\n * The `FormArray` bound to this directive.\n */\n get control() {\n return this.formDirective.getFormArray(this);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n _checkParentType() {\n if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw arrayParentException();\n }\n }\n}\nFormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: FormArrayName, selector: \"[formArrayName]\", inputs: { name: [\"formArrayName\", \"name\"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormArrayName, decorators: [{\n type: Directive,\n args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }];\n }, propDecorators: { name: [{\n type: Input,\n args: ['formArrayName']\n }] } });\nfunction _hasInvalidParent(parent) {\n return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&\n !(parent instanceof FormArrayName);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst controlNameBinding = {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlName)\n};\n/**\n * @description\n * Syncs a `FormControl` in an existing `FormGroup` to a form control\n * element by name.\n *\n * @see [Reactive Forms Guide](guide/reactive-forms)\n * @see `FormControl`\n * @see `AbstractControl`\n *\n * @usageNotes\n *\n * ### Register `FormControl` within a group\n *\n * The following example shows how to register multiple form controls within a form group\n * and set their value.\n *\n * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}\n *\n * To see `formControlName` examples with different form control types, see:\n *\n * * Radio buttons: `RadioControlValueAccessor`\n * * Selects: `SelectControlValueAccessor`\n *\n * ### Use with ngModel is deprecated\n *\n * Support for using the `ngModel` input property and `ngModelChange` event with reactive\n * form directives has been deprecated in Angular v6 and is scheduled for removal in\n * a future version of Angular.\n *\n * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).\n *\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass FormControlName extends NgControl {\n constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {\n super();\n this._ngModelWarningConfig = _ngModelWarningConfig;\n this._added = false;\n /** @deprecated as of v6 */\n this.update = new EventEmitter();\n /**\n * @description\n * Instance property used to track whether an ngModel warning has been sent out for this\n * particular FormControlName instance. Used to support warning config of \"always\".\n *\n * @internal\n */\n this._ngModelWarningSent = false;\n this._parent = parent;\n this._setValidators(validators);\n this._setAsyncValidators(asyncValidators);\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n /**\n * @description\n * Triggers a warning in dev mode that this input should not be used with reactive forms.\n */\n set isDisabled(isDisabled) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(disabledAttrWarning);\n }\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (!this._added)\n this._setUpControl();\n if (isPropertyUpdated(changes, this.viewModel)) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);\n }\n this.viewModel = this.model;\n this.formDirective.updateModel(this, this.model);\n }\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this.formDirective) {\n this.formDirective.removeControl(this);\n }\n }\n /**\n * @description\n * Sets the new value for the view model and emits an `ngModelChange` event.\n *\n * @param newValue The new value for the view model.\n */\n viewToModelUpdate(newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n }\n /**\n * @description\n * Returns an array that represents the path from the top-level form to this control.\n * Each index is the string name of the control on that level.\n */\n get path() {\n return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);\n }\n /**\n * @description\n * The top-level directive for this group if present, otherwise null.\n */\n get formDirective() {\n return this._parent ? this._parent.formDirective : null;\n }\n _checkParentType() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!(this._parent instanceof FormGroupName) &&\n this._parent instanceof AbstractFormGroupDirective) {\n throw ngModelGroupException();\n }\n else if (!(this._parent instanceof FormGroupName) &&\n !(this._parent instanceof FormGroupDirective) &&\n !(this._parent instanceof FormArrayName)) {\n throw controlParentException();\n }\n }\n }\n _setUpControl() {\n this._checkParentType();\n this.control = this.formDirective.addControl(this);\n if (this.control.disabled && this.valueAccessor.setDisabledState) {\n this.valueAccessor.setDisabledState(true);\n }\n this._added = true;\n }\n}\n/**\n * @description\n * Static property used to track whether any ngModel warnings have been sent across\n * all instances of FormControlName. Used to support warning config of \"once\".\n *\n * @internal\n */\nFormControlName._ngModelWarningSentOnce = false;\nFormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nFormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: FormControlName, selector: \"[formControlName]\", inputs: { name: [\"formControlName\", \"name\"], isDisabled: [\"disabled\", \"isDisabled\"], model: [\"ngModel\", \"model\"] }, outputs: { update: \"ngModelChange\" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormControlName, decorators: [{\n type: Directive,\n args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]\n }], ctorParameters: function () {\n return [{ type: ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Host\n }, {\n type: SkipSelf\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_ASYNC_VALIDATORS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [NG_VALUE_ACCESSOR]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]\n }] }];\n }, propDecorators: { name: [{\n type: Input,\n args: ['formControlName']\n }], isDisabled: [{\n type: Input,\n args: ['disabled']\n }], model: [{\n type: Input,\n args: ['ngModel']\n }], update: [{\n type: Output,\n args: ['ngModelChange']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SELECT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectControlValueAccessor),\n multi: true\n};\nfunction _buildValueString$1(id, value) {\n if (id == null)\n return `${value}`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId$1(valueString) {\n return valueString.split(':')[0];\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing select control values and listening to select control\n * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @usageNotes\n *\n * ### Using select controls in a reactive form\n *\n * The following examples show how to use a select control in a reactive form.\n *\n * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}\n *\n * ### Using select controls in a template-driven form\n *\n * To use a select in a template-driven form, simply add an `ngModel` and a `name`\n * attribute to the main `<select>` tag.\n *\n * {@example forms/ts/selectControl/select_control_example.ts region='Component'}\n *\n * ### Customizing option selection\n *\n * Angular uses object identity to select option. It's possible for the identities of items\n * to change while the data does not. This can happen, for example, if the items are produced\n * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the\n * second response will produce objects with different identities.\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.\n * If `compareWith` is given, Angular selects option by the return value of the function.\n *\n * ```ts\n * const selectedCountriesControl = new FormControl();\n * ```\n *\n * ```\n * <select [compareWith]=\"compareFn\" [formControl]=\"selectedCountriesControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{country.name}}\n * </option>\n * </select>\n *\n * compareFn(c1: Country, c2: Country): boolean {\n * return c1 && c2 ? c1.id === c2.id : c1 === c2;\n * }\n * ```\n *\n * **Note:** We listen to the 'change' event because 'input' events aren't fired\n * for selects in IE, see:\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectControlValueAccessor extends BuiltInControlValueAccessor {\n constructor() {\n super(...arguments);\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this._compareWith = Object.is;\n }\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n /**\n * Sets the \"value\" property on the input element. The \"selectedIndex\"\n * property is also set if an ID is provided on the option element.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n const id = this._getOptionId(value);\n if (id == null) {\n this.setProperty('selectedIndex', -1);\n }\n const valueString = _buildValueString$1(id, value);\n this.setProperty('value', valueString);\n }\n /**\n * Registers a function called when the control value changes.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (valueString) => {\n this.value = this._getOptionValue(valueString);\n fn(this.value);\n };\n }\n /** @internal */\n _registerOption() {\n return (this._idCounter++).toString();\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of Array.from(this._optionMap.keys())) {\n if (this._compareWith(this._optionMap.get(id), value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId$1(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;\n }\n}\nSelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nSelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: SelectControlValueAccessor, selector: \"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target.value)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SelectControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [SELECT_VALUE_ACCESSOR]\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see `SelectControlValueAccessor`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass NgSelectOption {\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select)\n this.id = this._select._registerOption();\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._select._optionMap.set(this.id, value);\n this._setElementValue(_buildValueString$1(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n this._setElementValue(value);\n if (this._select)\n this._select.writeValue(this._select.value);\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n}\nNgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgSelectOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSelectOption, decorators: [{\n type: Directive,\n args: [{ selector: 'option' }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }];\n }, propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SELECT_MULTIPLE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectMultipleControlValueAccessor),\n multi: true\n};\nfunction _buildValueString(id, value) {\n if (id == null)\n return `${value}`;\n if (typeof value === 'string')\n value = `'${value}'`;\n if (value && typeof value === 'object')\n value = 'Object';\n return `${id}: ${value}`.slice(0, 50);\n}\nfunction _extractId(valueString) {\n return valueString.split(':')[0];\n}\n/** Mock interface for HTMLCollection */\nclass HTMLCollection {\n}\n/**\n * @description\n * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select\n * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and\n * `NgModel` directives.\n *\n * @see `SelectControlValueAccessor`\n *\n * @usageNotes\n *\n * ### Using a multi-select control\n *\n * The follow example shows you how to use a multi-select control with a reactive form.\n *\n * ```ts\n * const countryControl = new FormControl();\n * ```\n *\n * ```\n * <select multiple name=\"countries\" [formControl]=\"countryControl\">\n * <option *ngFor=\"let country of countries\" [ngValue]=\"country\">\n * {{ country.name }}\n * </option>\n * </select>\n * ```\n *\n * ### Customizing option selection\n *\n * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.\n * See the `SelectControlValueAccessor` for usage.\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {\n constructor() {\n super(...arguments);\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this._compareWith = Object.is;\n }\n /**\n * @description\n * Tracks the option comparison algorithm for tracking identities when\n * checking for changes.\n */\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error(`compareWith must be a function, but received ${JSON.stringify(fn)}`);\n }\n this._compareWith = fn;\n }\n /**\n * Sets the \"value\" property on one or of more of the select's options.\n * @nodoc\n */\n writeValue(value) {\n this.value = value;\n let optionSelectedStateSetter;\n if (Array.isArray(value)) {\n // convert values to ids\n const ids = value.map((v) => this._getOptionId(v));\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(ids.indexOf(o.toString()) > -1);\n };\n }\n else {\n optionSelectedStateSetter = (opt, o) => {\n opt._setSelected(false);\n };\n }\n this._optionMap.forEach(optionSelectedStateSetter);\n }\n /**\n * Registers a function called when the control value changes\n * and writes an array of the selected options.\n * @nodoc\n */\n registerOnChange(fn) {\n this.onChange = (element) => {\n const selected = [];\n const selectedOptions = element.selectedOptions;\n if (selectedOptions !== undefined) {\n const options = selectedOptions;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n // Degrade to use `options` when `selectedOptions` property is not available.\n // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib\n // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.\n else {\n const options = element.options;\n for (let i = 0; i < options.length; i++) {\n const opt = options[i];\n if (opt.selected) {\n const val = this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n }\n this.value = selected;\n fn(selected);\n };\n }\n /** @internal */\n _registerOption(value) {\n const id = (this._idCounter++).toString();\n this._optionMap.set(id, value);\n return id;\n }\n /** @internal */\n _getOptionId(value) {\n for (const id of Array.from(this._optionMap.keys())) {\n if (this._compareWith(this._optionMap.get(id)._value, value))\n return id;\n }\n return null;\n }\n /** @internal */\n _getOptionValue(valueString) {\n const id = _extractId(valueString);\n return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;\n }\n}\nSelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nSelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: SelectMultipleControlValueAccessor, selector: \"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]\", inputs: { compareWith: \"compareWith\" }, host: { listeners: { \"change\": \"onChange($event.target)\", \"blur\": \"onTouched()\" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{\n type: Directive,\n args: [{\n selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',\n host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },\n providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]\n }]\n }], propDecorators: { compareWith: [{\n type: Input\n }] } });\n/**\n * @description\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * @see `SelectMultipleControlValueAccessor`\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass ɵNgSelectMultipleOption {\n constructor(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (this._select) {\n this.id = this._select._registerOption(this);\n }\n }\n /**\n * @description\n * Tracks the value bound to the option element. Unlike the value binding,\n * ngValue supports binding to objects.\n */\n set ngValue(value) {\n if (this._select == null)\n return;\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n /**\n * @description\n * Tracks simple string values bound to the option element.\n * For objects, use the `ngValue` input binding.\n */\n set value(value) {\n if (this._select) {\n this._value = value;\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n }\n else {\n this._setElementValue(value);\n }\n }\n /** @internal */\n _setElementValue(value) {\n this._renderer.setProperty(this._element.nativeElement, 'value', value);\n }\n /** @internal */\n _setSelected(selected) {\n this._renderer.setProperty(this._element.nativeElement, 'selected', selected);\n }\n /** @nodoc */\n ngOnDestroy() {\n if (this._select) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n }\n}\nɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: ɵNgSelectMultipleOption, selector: \"option\", inputs: { ngValue: \"ngValue\", value: \"value\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{\n type: Directive,\n args: [{ selector: 'option' }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }];\n }, propDecorators: { ngValue: [{\n type: Input,\n args: ['ngValue']\n }], value: [{\n type: Input,\n args: ['value']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Method that updates string to integer if not already a number\n *\n * @param value The value to convert to integer\n * @returns value of parameter in number or integer.\n */\nfunction toInteger(value) {\n return typeof value === 'number' ? value : parseInt(value, 10);\n}\n/**\n * Method that ensures that provided value is a float (and converts it to float if needed).\n *\n * @param value The value to convert to float\n * @returns value of parameter in number or float.\n */\nfunction toFloat(value) {\n return typeof value === 'number' ? value : parseFloat(value);\n}\n/**\n * A base class for Validator-based Directives. The class contains common logic shared across such\n * Directives.\n *\n * For internal use only, this class is not intended for use outside of the Forms package.\n */\nclass AbstractValidatorDirective {\n constructor() {\n this._validator = nullValidator;\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if (this.inputName in changes) {\n const input = this.normalizeInput(changes[this.inputName].currentValue);\n this._validator = this.enabled() ? this.createValidator(input) : nullValidator;\n if (this._onChange) {\n this._onChange();\n }\n }\n }\n /** @nodoc */\n validate(control) {\n return this._validator(control);\n }\n /** @nodoc */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n /**\n * @description\n * Determines whether this validator is active or not. Base class implementation\n * checks whether an input is defined (if the value is different from `null` and `undefined`).\n * Validator classes that extend this base class can override this function with the logic\n * specific to a particular validator directive.\n */\n enabled() {\n const inputValue = this[this.inputName];\n return inputValue != null /* both `null` and `undefined` */;\n }\n}\nAbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nAbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AbstractValidatorDirective, decorators: [{\n type: Directive\n }] });\n/**\n * @description\n * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxValidator),\n multi: true\n};\n/**\n * A directive which installs the {@link MaxValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `max` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a max validator\n *\n * The following example shows how to add a max validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel max=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'max';\n /** @internal */\n this.normalizeInput = (input) => toFloat(input);\n /** @internal */\n this.createValidator = (max) => maxValidator(max);\n }\n}\nMaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: MaxValidator, selector: \"input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]\", inputs: { max: \"max\" }, host: { properties: { \"attr.max\": \"enabled() ? max : null\" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MaxValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',\n providers: [MAX_VALIDATOR],\n host: { '[attr.max]': 'enabled() ? max : null' }\n }]\n }], propDecorators: { max: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinValidator),\n multi: true\n};\n/**\n * A directive which installs the {@link MinValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `min` attribute.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a min validator\n *\n * The following example shows how to add a min validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input type=\"number\" ngModel min=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'min';\n /** @internal */\n this.normalizeInput = (input) => toFloat(input);\n /** @internal */\n this.createValidator = (min) => minValidator(min);\n }\n}\nMinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: MinValidator, selector: \"input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]\", inputs: { min: \"min\" }, host: { properties: { \"attr.min\": \"enabled() ? min : null\" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MinValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',\n providers: [MIN_VALIDATOR],\n host: { '[attr.min]': 'enabled() ? min : null' }\n }]\n }], propDecorators: { min: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => RequiredValidator),\n multi: true\n};\n/**\n * @description\n * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst CHECKBOX_REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => CheckboxRequiredValidator),\n multi: true\n};\n/**\n * @description\n * A directive that adds the `required` validator to any controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required validator using template-driven forms\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n * @publicApi\n */\nclass RequiredValidator {\n constructor() {\n this._required = false;\n }\n /**\n * @description\n * Tracks changes to the required attribute bound to this directive.\n */\n get required() {\n return this._required;\n }\n set required(value) {\n this._required = value != null && value !== false && `${value}` !== 'false';\n if (this._onChange)\n this._onChange();\n }\n /**\n * Method that validates whether the control is empty.\n * Returns the validation result if enabled, otherwise null.\n * @nodoc\n */\n validate(control) {\n return this.required ? requiredValidator(control) : null;\n }\n /**\n * Registers a callback function to call when the validator inputs change.\n * @nodoc\n */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n}\nRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RequiredValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: RequiredValidator, selector: \":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]\", inputs: { required: \"required\" }, host: { properties: { \"attr.required\": \"required ? \\\"\\\" : null\" } }, providers: [REQUIRED_VALIDATOR], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: RequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',\n providers: [REQUIRED_VALIDATOR],\n host: { '[attr.required]': 'required ? \"\" : null' }\n }]\n }], propDecorators: { required: [{\n type: Input\n }] } });\n/**\n * A Directive that adds the `required` validator to checkbox controls marked with the\n * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a required checkbox validator using template-driven forms\n *\n * The following example shows how to add a checkbox required validator to an input attached to an\n * ngModel binding.\n *\n * ```\n * <input type=\"checkbox\" name=\"active\" ngModel required>\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass CheckboxRequiredValidator extends RequiredValidator {\n /**\n * Method that validates whether or not the checkbox has been checked.\n * Returns the validation result if enabled, otherwise null.\n * @nodoc\n */\n validate(control) {\n return this.required ? requiredTrueValidator(control) : null;\n }\n}\nCheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nCheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: CheckboxRequiredValidator, selector: \"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]\", host: { properties: { \"attr.required\": \"required ? \\\"\\\" : null\" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',\n providers: [CHECKBOX_REQUIRED_VALIDATOR],\n host: { '[attr.required]': 'required ? \"\" : null' }\n }]\n }] });\n/**\n * @description\n * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst EMAIL_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => EmailValidator),\n multi: true\n};\n/**\n * A directive that adds the `email` validator to controls marked with the\n * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding an email validator\n *\n * The following example shows how to add an email validator to an input attached to an ngModel\n * binding.\n *\n * ```\n * <input type=\"email\" name=\"email\" ngModel email>\n * <input type=\"email\" name=\"email\" ngModel email=\"true\">\n * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">\n * ```\n *\n * @publicApi\n * @ngModule FormsModule\n * @ngModule ReactiveFormsModule\n */\nclass EmailValidator {\n constructor() {\n this._enabled = false;\n }\n /**\n * @description\n * Tracks changes to the email attribute bound to this directive.\n */\n set email(value) {\n this._enabled = value === '' || value === true || value === 'true';\n if (this._onChange)\n this._onChange();\n }\n /**\n * Method that validates whether an email address is valid.\n * Returns the validation result if enabled, otherwise null.\n * @nodoc\n */\n validate(control) {\n return this._enabled ? emailValidator(control) : null;\n }\n /**\n * Registers a callback function to call when the validator inputs change.\n * @nodoc\n */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n}\nEmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: EmailValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nEmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: EmailValidator, selector: \"[email][formControlName],[email][formControl],[email][ngModel]\", inputs: { email: \"email\" }, providers: [EMAIL_VALIDATOR], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: EmailValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[email][formControlName],[email][formControl],[email][ngModel]',\n providers: [EMAIL_VALIDATOR]\n }]\n }], propDecorators: { email: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MIN_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MinLengthValidator),\n multi: true\n};\n/**\n * A directive that adds minimum length validation to controls marked with the\n * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a minimum length validator\n *\n * The following example shows how to add a minimum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel minlength=\"4\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MinLengthValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'minlength';\n /** @internal */\n this.normalizeInput = (input) => toInteger(input);\n /** @internal */\n this.createValidator = (minlength) => minLengthValidator(minlength);\n }\n}\nMinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: MinLengthValidator, selector: \"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]\", inputs: { minlength: \"minlength\" }, host: { properties: { \"attr.minlength\": \"enabled() ? minlength : null\" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MinLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',\n providers: [MIN_LENGTH_VALIDATOR],\n host: { '[attr.minlength]': 'enabled() ? minlength : null' }\n }]\n }], propDecorators: { minlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst MAX_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MaxLengthValidator),\n multi: true\n};\n/**\n * A directive that adds max length validation to controls marked with the\n * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a maximum length validator\n *\n * The following example shows how to add a maximum length validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel maxlength=\"25\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass MaxLengthValidator extends AbstractValidatorDirective {\n constructor() {\n super(...arguments);\n /** @internal */\n this.inputName = 'maxlength';\n /** @internal */\n this.normalizeInput = (input) => toInteger(input);\n /** @internal */\n this.createValidator = (maxlength) => maxLengthValidator(maxlength);\n }\n}\nMaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: { maxlength: \"maxlength\" }, host: { properties: { \"attr.maxlength\": \"enabled() ? maxlength : null\" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: MaxLengthValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',\n providers: [MAX_LENGTH_VALIDATOR],\n host: { '[attr.maxlength]': 'enabled() ? maxlength : null' }\n }]\n }], propDecorators: { maxlength: [{\n type: Input\n }] } });\n/**\n * @description\n * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.\n */\nconst PATTERN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => PatternValidator),\n multi: true\n};\n/**\n * @description\n * A directive that adds regex pattern validation to controls marked with the\n * `pattern` attribute. The regex must match the entire control value.\n * The directive is provided with the `NG_VALIDATORS` multi-provider list.\n *\n * @see [Form Validation](guide/form-validation)\n *\n * @usageNotes\n *\n * ### Adding a pattern validator\n *\n * The following example shows how to add a pattern validator to an input attached to an\n * ngModel binding.\n *\n * ```html\n * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">\n * ```\n *\n * @ngModule ReactiveFormsModule\n * @ngModule FormsModule\n * @publicApi\n */\nclass PatternValidator {\n constructor() {\n this._validator = nullValidator;\n }\n /** @nodoc */\n ngOnChanges(changes) {\n if ('pattern' in changes) {\n this._createValidator();\n if (this._onChange)\n this._onChange();\n }\n }\n /**\n * Method that validates whether the value matches the pattern requirement.\n * @nodoc\n */\n validate(control) {\n return this._validator(control);\n }\n /**\n * Registers a callback function to call when the validator inputs change.\n * @nodoc\n */\n registerOnValidatorChange(fn) {\n this._onChange = fn;\n }\n _createValidator() {\n this._validator = patternValidator(this.pattern);\n }\n}\nPatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PatternValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nPatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: PatternValidator, selector: \"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]\", inputs: { pattern: \"pattern\" }, host: { properties: { \"attr.pattern\": \"pattern ? pattern : null\" } }, providers: [PATTERN_VALIDATOR], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PatternValidator, decorators: [{\n type: Directive,\n args: [{\n selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',\n providers: [PATTERN_VALIDATOR],\n host: { '[attr.pattern]': 'pattern ? pattern : null' }\n }]\n }], propDecorators: { pattern: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SHARED_FORM_DIRECTIVES = [\n ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator,\n];\nconst TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\nconst REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n/**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\nclass ɵInternalFormsSharedModule {\n}\nɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator], imports: [RadioControlRegistryModule], exports: [ɵNgNoValidate,\n NgSelectOption,\n ɵNgSelectMultipleOption,\n DefaultValueAccessor,\n NumberValueAccessor,\n RangeValueAccessor,\n CheckboxControlValueAccessor,\n SelectControlValueAccessor,\n SelectMultipleControlValueAccessor,\n RadioControlValueAccessor,\n NgControlStatus,\n NgControlStatusGroup,\n RequiredValidator,\n MinLengthValidator,\n MaxLengthValidator,\n PatternValidator,\n CheckboxRequiredValidator,\n EmailValidator,\n MinValidator,\n MaxValidator] });\nɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵInternalFormsSharedModule, imports: [[RadioControlRegistryModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: SHARED_FORM_DIRECTIVES,\n imports: [RadioControlRegistryModule],\n exports: SHARED_FORM_DIRECTIVES,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Exports the required providers and directives for template-driven forms,\n * making them available for import by NgModules that import this module.\n *\n * Providers associated with this module:\n * * `RadioControlRegistry`\n *\n * @see [Forms Overview](/guide/forms-overview)\n * @see [Template-driven Forms Guide](/guide/forms)\n *\n * @publicApi\n */\nclass FormsModule {\n}\nFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });\nFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: TEMPLATE_DRIVEN_DIRECTIVES,\n exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]\n }]\n }] });\n/**\n * Exports the required infrastructure and directives for reactive forms,\n * making them available for import by NgModules that import this module.\n *\n * Providers associated with this module:\n * * `FormBuilder`\n * * `RadioControlRegistry`\n *\n * @see [Forms Overview](guide/forms-overview)\n * @see [Reactive Forms Guide](guide/reactive-forms)\n *\n * @publicApi\n */\nclass ReactiveFormsModule {\n /**\n * @description\n * Provides options for configuring the reactive forms module.\n *\n * @param opts An object of configuration options\n * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`\n * binding is used with reactive form directives.\n */\n static withConfig(opts) {\n return {\n ngModule: ReactiveFormsModule,\n providers: [\n { provide: NG_MODEL_WITH_FORM_CONTROL_WARNING, useValue: opts.warnOnNgModelWithFormControl }\n ]\n };\n }\n}\nReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });\nReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: ReactiveFormsModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [REACTIVE_DRIVEN_DIRECTIVES],\n exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction isAbstractControlOptions(options) {\n return options.asyncValidators !== undefined ||\n options.validators !== undefined ||\n options.updateOn !== undefined;\n}\n/**\n * @description\n * Creates an `AbstractControl` from a user-specified configuration.\n *\n * The `FormBuilder` provides syntactic sugar that shortens creating instances of a `FormControl`,\n * `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to build complex\n * forms.\n *\n * @see [Reactive Forms Guide](/guide/reactive-forms)\n *\n * @publicApi\n */\nclass FormBuilder {\n group(controlsConfig, options = null) {\n const controls = this._reduceControls(controlsConfig);\n let validators = null;\n let asyncValidators = null;\n let updateOn = undefined;\n if (options != null) {\n if (isAbstractControlOptions(options)) {\n // `options` are `AbstractControlOptions`\n validators = options.validators != null ? options.validators : null;\n asyncValidators = options.asyncValidators != null ? options.asyncValidators : null;\n updateOn = options.updateOn != null ? options.updateOn : undefined;\n }\n else {\n // `options` are legacy form group options\n validators = options['validator'] != null ? options['validator'] : null;\n asyncValidators = options['asyncValidator'] != null ? options['asyncValidator'] : null;\n }\n }\n return new FormGroup(controls, { asyncValidators, updateOn, validators });\n }\n /**\n * @description\n * Construct a new `FormControl` with the given state, validators and options.\n *\n * @param formState Initializes the control with an initial state value, or\n * with an object that contains both a value and a disabled status.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator\n * functions.\n *\n * @usageNotes\n *\n * ### Initialize a control as disabled\n *\n * The following example returns a control with an initial value in a disabled state.\n *\n * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">\n * </code-example>\n */\n control(formState, validatorOrOpts, asyncValidator) {\n return new FormControl(formState, validatorOrOpts, asyncValidator);\n }\n /**\n * Constructs a new `FormArray` from the given array of configurations,\n * validators and options.\n *\n * @param controlsConfig An array of child controls or control configs. Each\n * child control is given an index when it is registered.\n *\n * @param validatorOrOpts A synchronous validator function, or an array of\n * such functions, or an `AbstractControlOptions` object that contains\n * validation functions and a validation trigger.\n *\n * @param asyncValidator A single async validator or array of async validator\n * functions.\n */\n array(controlsConfig, validatorOrOpts, asyncValidator) {\n const controls = controlsConfig.map(c => this._createControl(c));\n return new FormArray(controls, validatorOrOpts, asyncValidator);\n }\n /** @internal */\n _reduceControls(controlsConfig) {\n const controls = {};\n Object.keys(controlsConfig).forEach(controlName => {\n controls[controlName] = this._createControl(controlsConfig[controlName]);\n });\n return controls;\n }\n /** @internal */\n _createControl(controlConfig) {\n if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup ||\n controlConfig instanceof FormArray) {\n return controlConfig;\n }\n else if (Array.isArray(controlConfig)) {\n const value = controlConfig[0];\n const validator = controlConfig.length > 1 ? controlConfig[1] : null;\n const asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;\n return this.control(value, validator, asyncValidator);\n }\n else {\n return this.control(controlConfig);\n }\n }\n}\nFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormBuilder, providedIn: ReactiveFormsModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: FormBuilder, decorators: [{\n type: Injectable,\n args: [{ providedIn: ReactiveFormsModule }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, VERSION, Validators, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };\n","import { isObservable, of, Subject } from 'rxjs';\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass DataSource {\n}\n/** Checks whether an object is a data source. */\nfunction isDataSource(value) {\n // Check if the value is a DataSource by observing if it has a connect function. Cannot\n // be checked as an `instanceof DataSource` since people could create their own sources\n // that match the interface, but don't extend DataSource.\n return value && typeof value.connect === 'function';\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** DataSource wrapper for a native array. */\nclass ArrayDataSource extends DataSource {\n constructor(_data) {\n super();\n this._data = _data;\n }\n connect() {\n return isObservable(this._data) ? this._data : of(this._data);\n }\n disconnect() { }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A repeater that destroys views when they are removed from a\n * {@link ViewContainerRef}. When new items are inserted into the container,\n * the repeater will always construct a new embedded view for each item.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nclass _DisposeViewRepeaterStrategy {\n applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {\n changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {\n let view;\n let operation;\n if (record.previousIndex == null) {\n const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index);\n operation = 1 /* INSERTED */;\n }\n else if (currentIndex == null) {\n viewContainerRef.remove(adjustedPreviousIndex);\n operation = 3 /* REMOVED */;\n }\n else {\n view = viewContainerRef.get(adjustedPreviousIndex);\n viewContainerRef.move(view, currentIndex);\n operation = 2 /* MOVED */;\n }\n if (itemViewChanged) {\n itemViewChanged({\n context: view === null || view === void 0 ? void 0 : view.context,\n operation,\n record,\n });\n }\n });\n }\n detach() { }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A repeater that caches views when they are removed from a\n * {@link ViewContainerRef}. When new items are inserted into the container,\n * the repeater will reuse one of the cached views instead of creating a new\n * embedded view. Recycling cached views reduces the quantity of expensive DOM\n * inserts.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nclass _RecycleViewRepeaterStrategy {\n constructor() {\n /**\n * The size of the cache used to store unused views.\n * Setting the cache size to `0` will disable caching. Defaults to 20 views.\n */\n this.viewCacheSize = 20;\n /**\n * View cache that stores embedded view instances that have been previously stamped out,\n * but don't are not currently rendered. The view repeater will reuse these views rather than\n * creating brand new ones.\n *\n * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.\n */\n this._viewCache = [];\n }\n /** Apply changes to the DOM. */\n applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {\n // Rearrange the views to put them in the right location.\n changes.forEachOperation((record, adjustedPreviousIndex, currentIndex) => {\n let view;\n let operation;\n if (record.previousIndex == null) {\n // Item added.\n const viewArgsFactory = () => itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n view = this._insertView(viewArgsFactory, currentIndex, viewContainerRef, itemValueResolver(record));\n operation = view ? 1 /* INSERTED */ : 0 /* REPLACED */;\n }\n else if (currentIndex == null) {\n // Item removed.\n this._detachAndCacheView(adjustedPreviousIndex, viewContainerRef);\n operation = 3 /* REMOVED */;\n }\n else {\n // Item moved.\n view = this._moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, itemValueResolver(record));\n operation = 2 /* MOVED */;\n }\n if (itemViewChanged) {\n itemViewChanged({\n context: view === null || view === void 0 ? void 0 : view.context,\n operation,\n record,\n });\n }\n });\n }\n detach() {\n for (const view of this._viewCache) {\n view.destroy();\n }\n this._viewCache = [];\n }\n /**\n * Inserts a view for a new item, either from the cache or by creating a new\n * one. Returns `undefined` if the item was inserted into a cached view.\n */\n _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) {\n const cachedView = this._insertViewFromCache(currentIndex, viewContainerRef);\n if (cachedView) {\n cachedView.context.$implicit = value;\n return undefined;\n }\n const viewArgs = viewArgsFactory();\n return viewContainerRef.createEmbeddedView(viewArgs.templateRef, viewArgs.context, viewArgs.index);\n }\n /** Detaches the view at the given index and inserts into the view cache. */\n _detachAndCacheView(index, viewContainerRef) {\n const detachedView = viewContainerRef.detach(index);\n this._maybeCacheView(detachedView, viewContainerRef);\n }\n /** Moves view at the previous index to the current index. */\n _moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, value) {\n const view = viewContainerRef.get(adjustedPreviousIndex);\n viewContainerRef.move(view, currentIndex);\n view.context.$implicit = value;\n return view;\n }\n /**\n * Cache the given detached view. If the cache is full, the view will be\n * destroyed.\n */\n _maybeCacheView(view, viewContainerRef) {\n if (this._viewCache.length < this.viewCacheSize) {\n this._viewCache.push(view);\n }\n else {\n const index = viewContainerRef.indexOf(view);\n // The host component could remove views from the container outside of\n // the view repeater. It's unlikely this will occur, but just in case,\n // destroy the view on its own, otherwise destroy it through the\n // container to ensure that all the references are removed.\n if (index === -1) {\n view.destroy();\n }\n else {\n viewContainerRef.remove(index);\n }\n }\n }\n /** Inserts a recycled view from the cache at the given index. */\n _insertViewFromCache(index, viewContainerRef) {\n const cachedView = this._viewCache.pop();\n if (cachedView) {\n viewContainerRef.insert(cachedView, index);\n }\n return cachedView || null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Class to be used to power selecting one or more options from a list.\n */\nclass SelectionModel {\n constructor(_multiple = false, initiallySelectedValues, _emitChanges = true) {\n this._multiple = _multiple;\n this._emitChanges = _emitChanges;\n /** Currently-selected values. */\n this._selection = new Set();\n /** Keeps track of the deselected options that haven't been emitted by the change event. */\n this._deselectedToEmit = [];\n /** Keeps track of the selected options that haven't been emitted by the change event. */\n this._selectedToEmit = [];\n /** Event emitted when the value has changed. */\n this.changed = new Subject();\n if (initiallySelectedValues && initiallySelectedValues.length) {\n if (_multiple) {\n initiallySelectedValues.forEach(value => this._markSelected(value));\n }\n else {\n this._markSelected(initiallySelectedValues[0]);\n }\n // Clear the array in order to avoid firing the change event for preselected values.\n this._selectedToEmit.length = 0;\n }\n }\n /** Selected values. */\n get selected() {\n if (!this._selected) {\n this._selected = Array.from(this._selection.values());\n }\n return this._selected;\n }\n /**\n * Selects a value or an array of values.\n */\n select(...values) {\n this._verifyValueAssignment(values);\n values.forEach(value => this._markSelected(value));\n this._emitChangeEvent();\n }\n /**\n * Deselects a value or an array of values.\n */\n deselect(...values) {\n this._verifyValueAssignment(values);\n values.forEach(value => this._unmarkSelected(value));\n this._emitChangeEvent();\n }\n /**\n * Toggles a value between selected and deselected.\n */\n toggle(value) {\n this.isSelected(value) ? this.deselect(value) : this.select(value);\n }\n /**\n * Clears all of the selected values.\n */\n clear() {\n this._unmarkAll();\n this._emitChangeEvent();\n }\n /**\n * Determines whether a value is selected.\n */\n isSelected(value) {\n return this._selection.has(value);\n }\n /**\n * Determines whether the model does not have a value.\n */\n isEmpty() {\n return this._selection.size === 0;\n }\n /**\n * Determines whether the model has a value.\n */\n hasValue() {\n return !this.isEmpty();\n }\n /**\n * Sorts the selected values based on a predicate function.\n */\n sort(predicate) {\n if (this._multiple && this.selected) {\n this._selected.sort(predicate);\n }\n }\n /**\n * Gets whether multiple values can be selected.\n */\n isMultipleSelection() {\n return this._multiple;\n }\n /** Emits a change event and clears the records of selected and deselected values. */\n _emitChangeEvent() {\n // Clear the selected values so they can be re-cached.\n this._selected = null;\n if (this._selectedToEmit.length || this._deselectedToEmit.length) {\n this.changed.next({\n source: this,\n added: this._selectedToEmit,\n removed: this._deselectedToEmit,\n });\n this._deselectedToEmit = [];\n this._selectedToEmit = [];\n }\n }\n /** Selects a value. */\n _markSelected(value) {\n if (!this.isSelected(value)) {\n if (!this._multiple) {\n this._unmarkAll();\n }\n this._selection.add(value);\n if (this._emitChanges) {\n this._selectedToEmit.push(value);\n }\n }\n }\n /** Deselects a value. */\n _unmarkSelected(value) {\n if (this.isSelected(value)) {\n this._selection.delete(value);\n if (this._emitChanges) {\n this._deselectedToEmit.push(value);\n }\n }\n }\n /** Clears out the selected values. */\n _unmarkAll() {\n if (!this.isEmpty()) {\n this._selection.forEach(value => this._unmarkSelected(value));\n }\n }\n /**\n * Verifies the value assignment and throws an error if the specified value array is\n * including multiple values while the selection model is not supporting multiple values.\n */\n _verifyValueAssignment(values) {\n if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMultipleValuesInSingleSelectionError();\n }\n }\n}\n/**\n * Returns an error that reports that multiple values are passed into a selection model\n * with a single value.\n * @docs-private\n */\nfunction getMultipleValuesInSingleSelectionError() {\n return Error('Cannot pass multiple values into SelectionModel with single-value mode.');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Class to coordinate unique selection based on name.\n * Intended to be consumed as an Angular service.\n * This service is needed because native radio change events are only fired on the item currently\n * being selected, and we still need to uncheck the previous selection.\n *\n * This service does not *store* any IDs and names because they may change at any time, so it is\n * less error-prone if they are simply passed through when the events occur.\n */\nclass UniqueSelectionDispatcher {\n constructor() {\n this._listeners = [];\n }\n /**\n * Notify other items that selection for the given name has been set.\n * @param id ID of the item.\n * @param name Name of the item.\n */\n notify(id, name) {\n for (let listener of this._listeners) {\n listener(id, name);\n }\n }\n /**\n * Listen for future changes to item selection.\n * @return Function used to deregister listener\n */\n listen(listener) {\n this._listeners.push(listener);\n return () => {\n this._listeners = this._listeners.filter((registered) => {\n return listener !== registered;\n });\n };\n }\n ngOnDestroy() {\n this._listeners = [];\n }\n}\nUniqueSelectionDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: UniqueSelectionDispatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nUniqueSelectionDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: UniqueSelectionDispatcher, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: UniqueSelectionDispatcher, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.\n * @docs-private\n */\nconst _VIEW_REPEATER_STRATEGY = new InjectionToken('_ViewRepeater');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ArrayDataSource, DataSource, SelectionModel, UniqueSelectionDispatcher, _DisposeViewRepeaterStrategy, _RecycleViewRepeaterStrategy, _VIEW_REPEATER_STRATEGY, getMultipleValuesInSingleSelectionError, isDataSource };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Directive, Output, Input, ContentChildren, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, Attribute, NgModule } from '@angular/core';\nimport * as i3 from '@angular/material/core';\nimport { mixinDisableRipple, mixinTabIndex, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i1 from '@angular/cdk/a11y';\nimport * as i2 from '@angular/cdk/collections';\n\nconst MAT_RADIO_DEFAULT_OPTIONS = new InjectionToken('mat-radio-default-options', {\n providedIn: 'root',\n factory: MAT_RADIO_DEFAULT_OPTIONS_FACTORY,\n});\nfunction MAT_RADIO_DEFAULT_OPTIONS_FACTORY() {\n return {\n color: 'accent',\n };\n}\n// Increasing integer for generating unique ids for radio components.\nlet nextUniqueId = 0;\n/**\n * Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This\n * allows it to support [(ngModel)] and ngControl.\n * @docs-private\n */\nconst MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatRadioGroup),\n multi: true,\n};\n/** Change event object emitted by MatRadio and MatRadioGroup. */\nclass MatRadioChange {\n constructor(\n /** The MatRadioButton that emits the change event. */\n source, \n /** The value of the MatRadioButton. */\n value) {\n this.source = source;\n this.value = value;\n }\n}\n/**\n * Injection token that can be used to inject instances of `MatRadioGroup`. It serves as\n * alternative token to the actual `MatRadioGroup` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\nconst MAT_RADIO_GROUP = new InjectionToken('MatRadioGroup');\n/**\n * Base class with all of the `MatRadioGroup` functionality.\n * @docs-private\n */\nclass _MatRadioGroupBase {\n constructor(_changeDetector) {\n this._changeDetector = _changeDetector;\n /** Selected value for the radio group. */\n this._value = null;\n /** The HTML name attribute applied to radio buttons in this group. */\n this._name = `mat-radio-group-${nextUniqueId++}`;\n /** The currently selected radio button. Should match value. */\n this._selected = null;\n /** Whether the `value` has been set to its initial value. */\n this._isInitialized = false;\n /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */\n this._labelPosition = 'after';\n /** Whether the radio group is disabled. */\n this._disabled = false;\n /** Whether the radio group is required. */\n this._required = false;\n /** The method to be called in order to update ngModel */\n this._controlValueAccessorChangeFn = () => { };\n /**\n * onTouch function registered via registerOnTouch (ControlValueAccessor).\n * @docs-private\n */\n this.onTouched = () => { };\n /**\n * Event emitted when the group value changes.\n * Change events are only emitted when the value changes due to user interaction with\n * a radio button (the same behavior as `<input type-\"radio\">`).\n */\n this.change = new EventEmitter();\n }\n /** Name of the radio button group. All radio buttons inside this group will use this name. */\n get name() {\n return this._name;\n }\n set name(value) {\n this._name = value;\n this._updateRadioButtonNames();\n }\n /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */\n get labelPosition() {\n return this._labelPosition;\n }\n set labelPosition(v) {\n this._labelPosition = v === 'before' ? 'before' : 'after';\n this._markRadiosForCheck();\n }\n /**\n * Value for the radio-group. Should equal the value of the selected radio button if there is\n * a corresponding radio button with a matching value. If there is not such a corresponding\n * radio button, this value persists to be applied in case a new radio button is added with a\n * matching value.\n */\n get value() {\n return this._value;\n }\n set value(newValue) {\n if (this._value !== newValue) {\n // Set this before proceeding to ensure no circular loop occurs with selection.\n this._value = newValue;\n this._updateSelectedRadioFromValue();\n this._checkSelectedRadioButton();\n }\n }\n _checkSelectedRadioButton() {\n if (this._selected && !this._selected.checked) {\n this._selected.checked = true;\n }\n }\n /**\n * The currently selected radio button. If set to a new radio button, the radio group value\n * will be updated to match the new selected button.\n */\n get selected() {\n return this._selected;\n }\n set selected(selected) {\n this._selected = selected;\n this.value = selected ? selected.value : null;\n this._checkSelectedRadioButton();\n }\n /** Whether the radio group is disabled */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n this._markRadiosForCheck();\n }\n /** Whether the radio group is required */\n get required() {\n return this._required;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n this._markRadiosForCheck();\n }\n /**\n * Initialize properties once content children are available.\n * This allows us to propagate relevant attributes to associated buttons.\n */\n ngAfterContentInit() {\n // Mark this component as initialized in AfterContentInit because the initial value can\n // possibly be set by NgModel on MatRadioGroup, and it is possible that the OnInit of the\n // NgModel occurs *after* the OnInit of the MatRadioGroup.\n this._isInitialized = true;\n }\n /**\n * Mark this group as being \"touched\" (for ngModel). Meant to be called by the contained\n * radio buttons upon their blur.\n */\n _touch() {\n if (this.onTouched) {\n this.onTouched();\n }\n }\n _updateRadioButtonNames() {\n if (this._radios) {\n this._radios.forEach(radio => {\n radio.name = this.name;\n radio._markForCheck();\n });\n }\n }\n /** Updates the `selected` radio button from the internal _value state. */\n _updateSelectedRadioFromValue() {\n // If the value already matches the selected radio, do nothing.\n const isAlreadySelected = this._selected !== null && this._selected.value === this._value;\n if (this._radios && !isAlreadySelected) {\n this._selected = null;\n this._radios.forEach(radio => {\n radio.checked = this.value === radio.value;\n if (radio.checked) {\n this._selected = radio;\n }\n });\n }\n }\n /** Dispatch change event with current selection and group value. */\n _emitChangeEvent() {\n if (this._isInitialized) {\n this.change.emit(new MatRadioChange(this._selected, this._value));\n }\n }\n _markRadiosForCheck() {\n if (this._radios) {\n this._radios.forEach(radio => radio._markForCheck());\n }\n }\n /**\n * Sets the model value. Implemented as part of ControlValueAccessor.\n * @param value\n */\n writeValue(value) {\n this.value = value;\n this._changeDetector.markForCheck();\n }\n /**\n * Registers a callback to be triggered when the model value changes.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }\n /**\n * Registers a callback to be triggered when the control is touched.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnTouched(fn) {\n this.onTouched = fn;\n }\n /**\n * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.\n * @param isDisabled Whether the control should be disabled.\n */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this._changeDetector.markForCheck();\n }\n}\n_MatRadioGroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatRadioGroupBase, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_MatRadioGroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatRadioGroupBase, inputs: { color: \"color\", name: \"name\", labelPosition: \"labelPosition\", value: \"value\", selected: \"selected\", disabled: \"disabled\", required: \"required\" }, outputs: { change: \"change\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatRadioGroupBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { change: [{\n type: Output\n }], color: [{\n type: Input\n }], name: [{\n type: Input\n }], labelPosition: [{\n type: Input\n }], value: [{\n type: Input\n }], selected: [{\n type: Input\n }], disabled: [{\n type: Input\n }], required: [{\n type: Input\n }] } });\n/**\n * A group of radio buttons. May contain one or more `<mat-radio-button>` elements.\n */\nclass MatRadioGroup extends _MatRadioGroupBase {\n}\nMatRadioGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioGroup, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatRadioGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRadioGroup, selector: \"mat-radio-group\", host: { attributes: { \"role\": \"radiogroup\" }, classAttribute: \"mat-radio-group\" }, providers: [\n MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,\n { provide: MAT_RADIO_GROUP, useExisting: MatRadioGroup },\n ], queries: [{ propertyName: \"_radios\", predicate: i0.forwardRef(function () { return MatRadioButton; }), descendants: true }], exportAs: [\"matRadioGroup\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioGroup, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-radio-group',\n exportAs: 'matRadioGroup',\n providers: [\n MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR,\n { provide: MAT_RADIO_GROUP, useExisting: MatRadioGroup },\n ],\n host: {\n 'role': 'radiogroup',\n 'class': 'mat-radio-group',\n },\n }]\n }], propDecorators: { _radios: [{\n type: ContentChildren,\n args: [forwardRef(() => MatRadioButton), { descendants: true }]\n }] } });\n// Boilerplate for applying mixins to MatRadioButton.\n/** @docs-private */\nclass MatRadioButtonBase {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}\nconst _MatRadioButtonMixinBase = mixinDisableRipple(mixinTabIndex(MatRadioButtonBase));\n/**\n * Base class with all of the `MatRadioButton` functionality.\n * @docs-private\n */\nclass _MatRadioButtonBase extends _MatRadioButtonMixinBase {\n constructor(radioGroup, elementRef, _changeDetector, _focusMonitor, _radioDispatcher, animationMode, _providerOverride, tabIndex) {\n super(elementRef);\n this._changeDetector = _changeDetector;\n this._focusMonitor = _focusMonitor;\n this._radioDispatcher = _radioDispatcher;\n this._providerOverride = _providerOverride;\n this._uniqueId = `mat-radio-${++nextUniqueId}`;\n /** The unique ID for the radio button. */\n this.id = this._uniqueId;\n /**\n * Event emitted when the checked state of this radio button changes.\n * Change events are only emitted when the value changes due to user interaction with\n * the radio button (the same behavior as `<input type-\"radio\">`).\n */\n this.change = new EventEmitter();\n /** Whether this radio is checked. */\n this._checked = false;\n /** Value assigned to this radio. */\n this._value = null;\n /** Unregister function for _radioDispatcher */\n this._removeUniqueSelectionListener = () => { };\n // Assertions. Ideally these should be stripped out by the compiler.\n // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.\n this.radioGroup = radioGroup;\n this._noopAnimations = animationMode === 'NoopAnimations';\n if (tabIndex) {\n this.tabIndex = coerceNumberProperty(tabIndex, 0);\n }\n this._removeUniqueSelectionListener = _radioDispatcher.listen((id, name) => {\n if (id !== this.id && name === this.name) {\n this.checked = false;\n }\n });\n }\n /** Whether this radio button is checked. */\n get checked() {\n return this._checked;\n }\n set checked(value) {\n const newCheckedState = coerceBooleanProperty(value);\n if (this._checked !== newCheckedState) {\n this._checked = newCheckedState;\n if (newCheckedState && this.radioGroup && this.radioGroup.value !== this.value) {\n this.radioGroup.selected = this;\n }\n else if (!newCheckedState && this.radioGroup && this.radioGroup.value === this.value) {\n // When unchecking the selected radio button, update the selected radio\n // property on the group.\n this.radioGroup.selected = null;\n }\n if (newCheckedState) {\n // Notify all radio buttons with the same name to un-check.\n this._radioDispatcher.notify(this.id, this.name);\n }\n this._changeDetector.markForCheck();\n }\n }\n /** The value of this radio button. */\n get value() {\n return this._value;\n }\n set value(value) {\n if (this._value !== value) {\n this._value = value;\n if (this.radioGroup !== null) {\n if (!this.checked) {\n // Update checked when the value changed to match the radio group's value\n this.checked = this.radioGroup.value === value;\n }\n if (this.checked) {\n this.radioGroup.selected = this;\n }\n }\n }\n }\n /** Whether the label should appear after or before the radio button. Defaults to 'after' */\n get labelPosition() {\n return this._labelPosition || (this.radioGroup && this.radioGroup.labelPosition) || 'after';\n }\n set labelPosition(value) {\n this._labelPosition = value;\n }\n /** Whether the radio button is disabled. */\n get disabled() {\n return this._disabled || (this.radioGroup !== null && this.radioGroup.disabled);\n }\n set disabled(value) {\n this._setDisabled(coerceBooleanProperty(value));\n }\n /** Whether the radio button is required. */\n get required() {\n return this._required || (this.radioGroup && this.radioGroup.required);\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n }\n /** Theme color of the radio button. */\n get color() {\n // As per Material design specifications the selection control radio should use the accent color\n // palette by default. https://material.io/guidelines/components/selection-controls.html\n return (this._color ||\n (this.radioGroup && this.radioGroup.color) ||\n (this._providerOverride && this._providerOverride.color) ||\n 'accent');\n }\n set color(newValue) {\n this._color = newValue;\n }\n /** ID of the native input element inside `<mat-radio-button>` */\n get inputId() {\n return `${this.id || this._uniqueId}-input`;\n }\n /** Focuses the radio button. */\n focus(options, origin) {\n if (origin) {\n this._focusMonitor.focusVia(this._inputElement, origin, options);\n }\n else {\n this._inputElement.nativeElement.focus(options);\n }\n }\n /**\n * Marks the radio button as needing checking for change detection.\n * This method is exposed because the parent radio group will directly\n * update bound properties of the radio button.\n */\n _markForCheck() {\n // When group value changes, the button will not be notified. Use `markForCheck` to explicit\n // update radio button's status\n this._changeDetector.markForCheck();\n }\n ngOnInit() {\n if (this.radioGroup) {\n // If the radio is inside a radio group, determine if it should be checked\n this.checked = this.radioGroup.value === this._value;\n if (this.checked) {\n this.radioGroup.selected = this;\n }\n // Copy name from parent radio group\n this.name = this.radioGroup.name;\n }\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {\n if (!focusOrigin && this.radioGroup) {\n this.radioGroup._touch();\n }\n });\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n this._removeUniqueSelectionListener();\n }\n /** Dispatch change event with current value. */\n _emitChangeEvent() {\n this.change.emit(new MatRadioChange(this, this._value));\n }\n _isRippleDisabled() {\n return this.disableRipple || this.disabled;\n }\n _onInputClick(event) {\n // We have to stop propagation for click events on the visual hidden input element.\n // By default, when a user clicks on a label element, a generated click event will be\n // dispatched on the associated input element. Since we are using a label element as our\n // root container, the click event on the `radio-button` will be executed twice.\n // The real click event will bubble up, and the generated click event also tries to bubble up.\n // This will lead to multiple click events.\n // Preventing bubbling for the second event will solve that issue.\n event.stopPropagation();\n }\n /** Triggered when the radio button receives an interaction from the user. */\n _onInputInteraction(event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the `change` output.\n event.stopPropagation();\n if (!this.checked && !this.disabled) {\n const groupValueChanged = this.radioGroup && this.value !== this.radioGroup.value;\n this.checked = true;\n this._emitChangeEvent();\n if (this.radioGroup) {\n this.radioGroup._controlValueAccessorChangeFn(this.value);\n if (groupValueChanged) {\n this.radioGroup._emitChangeEvent();\n }\n }\n }\n }\n /** Sets the disabled state and marks for check if a change occurred. */\n _setDisabled(value) {\n if (this._disabled !== value) {\n this._disabled = value;\n this._changeDetector.markForCheck();\n }\n }\n}\n_MatRadioButtonBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatRadioButtonBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatRadioButtonBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatRadioButtonBase, inputs: { id: \"id\", name: \"name\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], checked: \"checked\", value: \"value\", labelPosition: \"labelPosition\", disabled: \"disabled\", required: \"required\", color: \"color\" }, outputs: { change: \"change\" }, viewQueries: [{ propertyName: \"_inputElement\", first: true, predicate: [\"input\"], descendants: true }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatRadioButtonBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: _MatRadioGroupBase }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }, { type: i2.UniqueSelectionDispatcher }, { type: undefined }, { type: undefined }, { type: undefined }]; }, propDecorators: { id: [{\n type: Input\n }], name: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], ariaDescribedby: [{\n type: Input,\n args: ['aria-describedby']\n }], checked: [{\n type: Input\n }], value: [{\n type: Input\n }], labelPosition: [{\n type: Input\n }], disabled: [{\n type: Input\n }], required: [{\n type: Input\n }], color: [{\n type: Input\n }], change: [{\n type: Output\n }], _inputElement: [{\n type: ViewChild,\n args: ['input']\n }] } });\n/**\n * A Material design radio-button. Typically placed inside of `<mat-radio-group>` elements.\n */\nclass MatRadioButton extends _MatRadioButtonBase {\n constructor(radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex) {\n super(radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex);\n }\n}\nMatRadioButton.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioButton, deps: [{ token: MAT_RADIO_GROUP, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i2.UniqueSelectionDispatcher }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_RADIO_DEFAULT_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });\nMatRadioButton.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRadioButton, selector: \"mat-radio-button\", inputs: { disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { listeners: { \"focus\": \"_inputElement.nativeElement.focus()\" }, properties: { \"class.mat-radio-checked\": \"checked\", \"class.mat-radio-disabled\": \"disabled\", \"class._mat-animation-noopable\": \"_noopAnimations\", \"class.mat-primary\": \"color === \\\"primary\\\"\", \"class.mat-accent\": \"color === \\\"accent\\\"\", \"class.mat-warn\": \"color === \\\"warn\\\"\", \"attr.tabindex\": \"null\", \"attr.id\": \"id\", \"attr.aria-label\": \"null\", \"attr.aria-labelledby\": \"null\", \"attr.aria-describedby\": \"null\" }, classAttribute: \"mat-radio-button\" }, exportAs: [\"matRadioButton\"], usesInheritance: true, ngImport: i0, template: \"<!-- TODO(jelbourn): render the radio on either side of the content -->\\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\\n<label [attr.for]=\\\"inputId\\\" class=\\\"mat-radio-label\\\" #label>\\n <!-- The actual 'radio' part of the control. -->\\n <span class=\\\"mat-radio-container\\\">\\n <span class=\\\"mat-radio-outer-circle\\\"></span>\\n <span class=\\\"mat-radio-inner-circle\\\"></span>\\n <input #input class=\\\"mat-radio-input cdk-visually-hidden\\\" type=\\\"radio\\\"\\n [id]=\\\"inputId\\\"\\n [checked]=\\\"checked\\\"\\n [disabled]=\\\"disabled\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [attr.name]=\\\"name\\\"\\n [attr.value]=\\\"value\\\"\\n [required]=\\\"required\\\"\\n [attr.aria-label]=\\\"ariaLabel\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onInputInteraction($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n\\n <!-- The ripple comes after the input so that we can target it with a CSS\\n sibling selector when the input is focused. -->\\n <span mat-ripple class=\\\"mat-radio-ripple mat-focus-indicator\\\"\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n <span class=\\\"mat-ripple-element mat-radio-persistent-ripple\\\"></span>\\n </span>\\n </span>\\n\\n <!-- The label content for radio control. -->\\n <span class=\\\"mat-radio-label-content\\\" [class.mat-radio-label-before]=\\\"labelPosition == 'before'\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\\n\"], directives: [{ type: i3.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioButton, decorators: [{\n type: Component,\n args: [{ selector: 'mat-radio-button', inputs: ['disableRipple', 'tabIndex'], encapsulation: ViewEncapsulation.None, exportAs: 'matRadioButton', host: {\n 'class': 'mat-radio-button',\n '[class.mat-radio-checked]': 'checked',\n '[class.mat-radio-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_noopAnimations',\n '[class.mat-primary]': 'color === \"primary\"',\n '[class.mat-accent]': 'color === \"accent\"',\n '[class.mat-warn]': 'color === \"warn\"',\n // Needs to be removed since it causes some a11y issues (see #21266).\n '[attr.tabindex]': 'null',\n '[attr.id]': 'id',\n '[attr.aria-label]': 'null',\n '[attr.aria-labelledby]': 'null',\n '[attr.aria-describedby]': 'null',\n // Note: under normal conditions focus shouldn't land on this element, however it may be\n // programmatically set, for example inside of a focus trap, in this case we want to forward\n // the focus to the native element.\n '(focus)': '_inputElement.nativeElement.focus()',\n }, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<!-- TODO(jelbourn): render the radio on either side of the content -->\\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\\n<label [attr.for]=\\\"inputId\\\" class=\\\"mat-radio-label\\\" #label>\\n <!-- The actual 'radio' part of the control. -->\\n <span class=\\\"mat-radio-container\\\">\\n <span class=\\\"mat-radio-outer-circle\\\"></span>\\n <span class=\\\"mat-radio-inner-circle\\\"></span>\\n <input #input class=\\\"mat-radio-input cdk-visually-hidden\\\" type=\\\"radio\\\"\\n [id]=\\\"inputId\\\"\\n [checked]=\\\"checked\\\"\\n [disabled]=\\\"disabled\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [attr.name]=\\\"name\\\"\\n [attr.value]=\\\"value\\\"\\n [required]=\\\"required\\\"\\n [attr.aria-label]=\\\"ariaLabel\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onInputInteraction($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n\\n <!-- The ripple comes after the input so that we can target it with a CSS\\n sibling selector when the input is focused. -->\\n <span mat-ripple class=\\\"mat-radio-ripple mat-focus-indicator\\\"\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n <span class=\\\"mat-ripple-element mat-radio-persistent-ripple\\\"></span>\\n </span>\\n </span>\\n\\n <!-- The label content for radio control. -->\\n <span class=\\\"mat-radio-label-content\\\" [class.mat-radio-label-before]=\\\"labelPosition == 'before'\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatRadioGroup, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RADIO_GROUP]\n }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }, { type: i2.UniqueSelectionDispatcher }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RADIO_DEFAULT_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatRadioModule {\n}\nMatRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioModule, declarations: [MatRadioGroup, MatRadioButton], imports: [MatRippleModule, MatCommonModule], exports: [MatRadioGroup, MatRadioButton, MatCommonModule] });\nMatRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioModule, imports: [[MatRippleModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRadioModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatRippleModule, MatCommonModule],\n exports: [MatRadioGroup, MatRadioButton, MatCommonModule],\n declarations: [MatRadioGroup, MatRadioButton],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_RADIO_DEFAULT_OPTIONS, MAT_RADIO_DEFAULT_OPTIONS_FACTORY, MAT_RADIO_GROUP, MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, MatRadioButton, MatRadioChange, MatRadioGroup, MatRadioModule, _MatRadioButtonBase, _MatRadioGroupBase };\n","import * as i0 from '@angular/core';\nimport { Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, NgModule } from '@angular/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { MatCommonModule } from '@angular/material/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Content of a card, needed as it's used as a selector in the API.\n * @docs-private\n */\nclass MatCardContent {\n}\nMatCardContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardContent, selector: \"mat-card-content, [mat-card-content], [matCardContent]\", host: { classAttribute: \"mat-card-content\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardContent, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-card-content, [mat-card-content], [matCardContent]',\n host: { 'class': 'mat-card-content' },\n }]\n }] });\n/**\n * Title of a card, needed as it's used as a selector in the API.\n * @docs-private\n */\nclass MatCardTitle {\n}\nMatCardTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardTitle, selector: \"mat-card-title, [mat-card-title], [matCardTitle]\", host: { classAttribute: \"mat-card-title\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardTitle, decorators: [{\n type: Directive,\n args: [{\n selector: `mat-card-title, [mat-card-title], [matCardTitle]`,\n host: {\n 'class': 'mat-card-title',\n },\n }]\n }] });\n/**\n * Sub-title of a card, needed as it's used as a selector in the API.\n * @docs-private\n */\nclass MatCardSubtitle {\n}\nMatCardSubtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardSubtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardSubtitle, selector: \"mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]\", host: { classAttribute: \"mat-card-subtitle\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardSubtitle, decorators: [{\n type: Directive,\n args: [{\n selector: `mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]`,\n host: {\n 'class': 'mat-card-subtitle',\n },\n }]\n }] });\n/**\n * Action section of a card, needed as it's used as a selector in the API.\n * @docs-private\n */\nclass MatCardActions {\n constructor() {\n /** Position of the actions inside the card. */\n this.align = 'start';\n }\n}\nMatCardActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardActions, selector: \"mat-card-actions\", inputs: { align: \"align\" }, host: { properties: { \"class.mat-card-actions-align-end\": \"align === \\\"end\\\"\" }, classAttribute: \"mat-card-actions\" }, exportAs: [\"matCardActions\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardActions, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-card-actions',\n exportAs: 'matCardActions',\n host: {\n 'class': 'mat-card-actions',\n '[class.mat-card-actions-align-end]': 'align === \"end\"',\n },\n }]\n }], propDecorators: { align: [{\n type: Input\n }] } });\n/**\n * Footer of a card, needed as it's used as a selector in the API.\n * @docs-private\n */\nclass MatCardFooter {\n}\nMatCardFooter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardFooter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardFooter, selector: \"mat-card-footer\", host: { classAttribute: \"mat-card-footer\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardFooter, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-card-footer',\n host: { 'class': 'mat-card-footer' },\n }]\n }] });\n/**\n * Image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardImage {\n}\nMatCardImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardImage, selector: \"[mat-card-image], [matCardImage]\", host: { classAttribute: \"mat-card-image\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardImage, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-image], [matCardImage]',\n host: { 'class': 'mat-card-image' },\n }]\n }] });\n/**\n * Image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardSmImage {\n}\nMatCardSmImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardSmImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardSmImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardSmImage, selector: \"[mat-card-sm-image], [matCardImageSmall]\", host: { classAttribute: \"mat-card-sm-image\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardSmImage, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-sm-image], [matCardImageSmall]',\n host: { 'class': 'mat-card-sm-image' },\n }]\n }] });\n/**\n * Image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardMdImage {\n}\nMatCardMdImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardMdImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardMdImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardMdImage, selector: \"[mat-card-md-image], [matCardImageMedium]\", host: { classAttribute: \"mat-card-md-image\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardMdImage, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-md-image], [matCardImageMedium]',\n host: { 'class': 'mat-card-md-image' },\n }]\n }] });\n/**\n * Image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardLgImage {\n}\nMatCardLgImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardLgImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardLgImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardLgImage, selector: \"[mat-card-lg-image], [matCardImageLarge]\", host: { classAttribute: \"mat-card-lg-image\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardLgImage, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-lg-image], [matCardImageLarge]',\n host: { 'class': 'mat-card-lg-image' },\n }]\n }] });\n/**\n * Large image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardXlImage {\n}\nMatCardXlImage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardXlImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardXlImage.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardXlImage, selector: \"[mat-card-xl-image], [matCardImageXLarge]\", host: { classAttribute: \"mat-card-xl-image\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardXlImage, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-xl-image], [matCardImageXLarge]',\n host: { 'class': 'mat-card-xl-image' },\n }]\n }] });\n/**\n * Avatar image used in a card, needed to add the mat- CSS styling.\n * @docs-private\n */\nclass MatCardAvatar {\n}\nMatCardAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatCardAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardAvatar, selector: \"[mat-card-avatar], [matCardAvatar]\", host: { classAttribute: \"mat-card-avatar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardAvatar, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-card-avatar], [matCardAvatar]',\n host: { 'class': 'mat-card-avatar' },\n }]\n }] });\n/**\n * A basic content container component that adds the styles of a Material design card.\n *\n * While this component can be used alone, it also provides a number\n * of preset styles for common card sections, including:\n * - mat-card-title\n * - mat-card-subtitle\n * - mat-card-content\n * - mat-card-actions\n * - mat-card-footer\n */\nclass MatCard {\n // @breaking-change 9.0.0 `_animationMode` parameter to be made required.\n constructor(_animationMode) {\n this._animationMode = _animationMode;\n }\n}\nMatCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCard, deps: [{ token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCard, selector: \"mat-card\", host: { properties: { \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\" }, classAttribute: \"mat-card mat-focus-indicator\" }, exportAs: [\"matCard\"], ngImport: i0, template: \"<ng-content></ng-content>\\n<ng-content select=\\\"mat-card-footer\\\"></ng-content>\\n\", styles: [\".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCard, decorators: [{\n type: Component,\n args: [{ selector: 'mat-card', exportAs: 'matCard', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {\n 'class': 'mat-card mat-focus-indicator',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n }, template: \"<ng-content></ng-content>\\n<ng-content select=\\\"mat-card-footer\\\"></ng-content>\\n\", styles: [\".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n } });\n/**\n * Component intended to be used within the `<mat-card>` component. It adds styles for a\n * preset header section (i.e. a title, subtitle, and avatar layout).\n * @docs-private\n */\nclass MatCardHeader {\n}\nMatCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });\nMatCardHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardHeader, selector: \"mat-card-header\", host: { classAttribute: \"mat-card-header\" }, ngImport: i0, template: \"<ng-content select=\\\"[mat-card-avatar], [matCardAvatar]\\\"></ng-content>\\n<div class=\\\"mat-card-header-text\\\">\\n <ng-content\\n select=\\\"mat-card-title, mat-card-subtitle,\\n [mat-card-title], [mat-card-subtitle],\\n [matCardTitle], [matCardSubtitle]\\\"></ng-content>\\n</div>\\n<ng-content></ng-content>\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-card-header', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'class': 'mat-card-header' }, template: \"<ng-content select=\\\"[mat-card-avatar], [matCardAvatar]\\\"></ng-content>\\n<div class=\\\"mat-card-header-text\\\">\\n <ng-content\\n select=\\\"mat-card-title, mat-card-subtitle,\\n [mat-card-title], [mat-card-subtitle],\\n [matCardTitle], [matCardSubtitle]\\\"></ng-content>\\n</div>\\n<ng-content></ng-content>\\n\" }]\n }] });\n/**\n * Component intended to be used within the `<mat-card>` component. It adds styles for a preset\n * layout that groups an image with a title section.\n * @docs-private\n */\nclass MatCardTitleGroup {\n}\nMatCardTitleGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardTitleGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });\nMatCardTitleGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCardTitleGroup, selector: \"mat-card-title-group\", host: { classAttribute: \"mat-card-title-group\" }, ngImport: i0, template: \"<div>\\n <ng-content\\n select=\\\"mat-card-title, mat-card-subtitle,\\n [mat-card-title], [mat-card-subtitle],\\n [matCardTitle], [matCardSubtitle]\\\"></ng-content>\\n</div>\\n<ng-content select=\\\"img\\\"></ng-content>\\n<ng-content></ng-content>\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardTitleGroup, decorators: [{\n type: Component,\n args: [{ selector: 'mat-card-title-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'class': 'mat-card-title-group' }, template: \"<div>\\n <ng-content\\n select=\\\"mat-card-title, mat-card-subtitle,\\n [mat-card-title], [mat-card-subtitle],\\n [matCardTitle], [matCardSubtitle]\\\"></ng-content>\\n</div>\\n<ng-content select=\\\"img\\\"></ng-content>\\n<ng-content></ng-content>\\n\" }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatCardModule {\n}\nMatCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardModule, declarations: [MatCard,\n MatCardHeader,\n MatCardTitleGroup,\n MatCardContent,\n MatCardTitle,\n MatCardSubtitle,\n MatCardActions,\n MatCardFooter,\n MatCardSmImage,\n MatCardMdImage,\n MatCardLgImage,\n MatCardImage,\n MatCardXlImage,\n MatCardAvatar], imports: [MatCommonModule], exports: [MatCard,\n MatCardHeader,\n MatCardTitleGroup,\n MatCardContent,\n MatCardTitle,\n MatCardSubtitle,\n MatCardActions,\n MatCardFooter,\n MatCardSmImage,\n MatCardMdImage,\n MatCardLgImage,\n MatCardImage,\n MatCardXlImage,\n MatCardAvatar,\n MatCommonModule] });\nMatCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardModule, imports: [[MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCardModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: [\n MatCard,\n MatCardHeader,\n MatCardTitleGroup,\n MatCardContent,\n MatCardTitle,\n MatCardSubtitle,\n MatCardActions,\n MatCardFooter,\n MatCardSmImage,\n MatCardMdImage,\n MatCardLgImage,\n MatCardImage,\n MatCardXlImage,\n MatCardAvatar,\n MatCommonModule,\n ],\n declarations: [\n MatCard,\n MatCardHeader,\n MatCardTitleGroup,\n MatCardContent,\n MatCardTitle,\n MatCardSubtitle,\n MatCardActions,\n MatCardFooter,\n MatCardSmImage,\n MatCardMdImage,\n MatCardLgImage,\n MatCardImage,\n MatCardXlImage,\n MatCardAvatar,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatCard, MatCardActions, MatCardAvatar, MatCardContent, MatCardFooter, MatCardHeader, MatCardImage, MatCardLgImage, MatCardMdImage, MatCardModule, MatCardSmImage, MatCardSubtitle, MatCardTitle, MatCardTitleGroup, MatCardXlImage };\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Optional, Inject, Input, Output, ViewChild, Directive, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxRequiredValidator } from '@angular/forms';\nimport * as i2 from '@angular/material/core';\nimport { mixinTabIndex, mixinColor, mixinDisableRipple, mixinDisabled, MatRipple, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i1 from '@angular/cdk/a11y';\nimport * as i3 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token to be used to override the default options for `mat-checkbox`. */\nconst MAT_CHECKBOX_DEFAULT_OPTIONS = new InjectionToken('mat-checkbox-default-options', {\n providedIn: 'root',\n factory: MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY() {\n return {\n color: 'accent',\n clickAction: 'check-indeterminate',\n };\n}\n\n// Increasing integer for generating unique ids for checkbox components.\nlet nextUniqueId = 0;\n// Default checkbox configuration.\nconst defaults = MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY();\n/**\n * Provider Expression that allows mat-checkbox to register as a ControlValueAccessor.\n * This allows it to support [(ngModel)].\n * @docs-private\n */\nconst MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatCheckbox),\n multi: true,\n};\n/** Change event object emitted by MatCheckbox. */\nclass MatCheckboxChange {\n}\n// Boilerplate for applying mixins to MatCheckbox.\n/** @docs-private */\nconst _MatCheckboxBase = mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}))));\n/**\n * A material design checkbox component. Supports all of the functionality of an HTML5 checkbox,\n * and exposes a similar API. A MatCheckbox can be either checked, unchecked, indeterminate, or\n * disabled. Note that all additional accessibility attributes are taken care of by the component,\n * so there is no need to provide them yourself. However, if you want to omit a label and still\n * have the checkbox be accessible, you may supply an [aria-label] input.\n * See: https://material.io/design/components/selection-controls.html\n */\nclass MatCheckbox extends _MatCheckboxBase {\n constructor(elementRef, _changeDetectorRef, _focusMonitor, _ngZone, tabIndex, _animationMode, _options) {\n super(elementRef);\n this._changeDetectorRef = _changeDetectorRef;\n this._focusMonitor = _focusMonitor;\n this._ngZone = _ngZone;\n this._animationMode = _animationMode;\n this._options = _options;\n /**\n * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will\n * take precedence so this may be omitted.\n */\n this.ariaLabel = '';\n /**\n * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element\n */\n this.ariaLabelledby = null;\n this._uniqueId = `mat-checkbox-${++nextUniqueId}`;\n /** A unique id for the checkbox input. If none is supplied, it will be auto-generated. */\n this.id = this._uniqueId;\n /** Whether the label should appear after or before the checkbox. Defaults to 'after' */\n this.labelPosition = 'after';\n /** Name value will be applied to the input element if present */\n this.name = null;\n /** Event emitted when the checkbox's `checked` value changes. */\n this.change = new EventEmitter();\n /** Event emitted when the checkbox's `indeterminate` value changes. */\n this.indeterminateChange = new EventEmitter();\n /**\n * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.\n * @docs-private\n */\n this._onTouched = () => { };\n this._currentAnimationClass = '';\n this._currentCheckState = 0 /* Init */;\n this._controlValueAccessorChangeFn = () => { };\n this._checked = false;\n this._disabled = false;\n this._indeterminate = false;\n this._options = this._options || defaults;\n this.color = this.defaultColor = this._options.color || defaults.color;\n this.tabIndex = parseInt(tabIndex) || 0;\n }\n /** Returns the unique id for the visual hidden input. */\n get inputId() {\n return `${this.id || this._uniqueId}-input`;\n }\n /** Whether the checkbox is required. */\n get required() {\n return this._required;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {\n if (!focusOrigin) {\n // When a focused element becomes disabled, the browser *immediately* fires a blur event.\n // Angular does not expect events to be raised during change detection, so any state change\n // (such as a form control's 'ng-touched') will cause a changed-after-checked error.\n // See https://github.com/angular/angular/issues/17793. To work around this, we defer\n // telling the form control it has been touched until the next tick.\n Promise.resolve().then(() => {\n this._onTouched();\n this._changeDetectorRef.markForCheck();\n });\n }\n });\n this._syncIndeterminate(this._indeterminate);\n }\n // TODO: Delete next major revision.\n ngAfterViewChecked() { }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n /**\n * Whether the checkbox is checked.\n */\n get checked() {\n return this._checked;\n }\n set checked(value) {\n if (value != this.checked) {\n this._checked = value;\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * Whether the checkbox is disabled. This fully overrides the implementation provided by\n * mixinDisabled, but the mixin is still required because mixinTabIndex requires it.\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this.disabled) {\n this._disabled = newValue;\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * Whether the checkbox is indeterminate. This is also known as \"mixed\" mode and can be used to\n * represent a checkbox with three states, e.g. a checkbox that represents a nested list of\n * checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately\n * set to false.\n */\n get indeterminate() {\n return this._indeterminate;\n }\n set indeterminate(value) {\n const changed = value != this._indeterminate;\n this._indeterminate = coerceBooleanProperty(value);\n if (changed) {\n if (this._indeterminate) {\n this._transitionCheckState(3 /* Indeterminate */);\n }\n else {\n this._transitionCheckState(this.checked ? 1 /* Checked */ : 2 /* Unchecked */);\n }\n this.indeterminateChange.emit(this._indeterminate);\n }\n this._syncIndeterminate(this._indeterminate);\n }\n _isRippleDisabled() {\n return this.disableRipple || this.disabled;\n }\n /** Method being called whenever the label text changes. */\n _onLabelTextChange() {\n // Since the event of the `cdkObserveContent` directive runs outside of the zone, the checkbox\n // component will be only marked for check, but no actual change detection runs automatically.\n // Instead of going back into the zone in order to trigger a change detection which causes\n // *all* components to be checked (if explicitly marked or not using OnPush), we only trigger\n // an explicit change detection for the checkbox view and its children.\n this._changeDetectorRef.detectChanges();\n }\n // Implemented as part of ControlValueAccessor.\n writeValue(value) {\n this.checked = !!value;\n }\n // Implemented as part of ControlValueAccessor.\n registerOnChange(fn) {\n this._controlValueAccessorChangeFn = fn;\n }\n // Implemented as part of ControlValueAccessor.\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n // Implemented as part of ControlValueAccessor.\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n }\n _getAriaChecked() {\n if (this.checked) {\n return 'true';\n }\n return this.indeterminate ? 'mixed' : 'false';\n }\n _transitionCheckState(newState) {\n let oldState = this._currentCheckState;\n let element = this._elementRef.nativeElement;\n if (oldState === newState) {\n return;\n }\n if (this._currentAnimationClass.length > 0) {\n element.classList.remove(this._currentAnimationClass);\n }\n this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);\n this._currentCheckState = newState;\n if (this._currentAnimationClass.length > 0) {\n element.classList.add(this._currentAnimationClass);\n // Remove the animation class to avoid animation when the checkbox is moved between containers\n const animationClass = this._currentAnimationClass;\n this._ngZone.runOutsideAngular(() => {\n setTimeout(() => {\n element.classList.remove(animationClass);\n }, 1000);\n });\n }\n }\n _emitChangeEvent() {\n const event = new MatCheckboxChange();\n event.source = this;\n event.checked = this.checked;\n this._controlValueAccessorChangeFn(this.checked);\n this.change.emit(event);\n // Assigning the value again here is redundant, but we have to do it in case it was\n // changed inside the `change` listener which will cause the input to be out of sync.\n if (this._inputElement) {\n this._inputElement.nativeElement.checked = this.checked;\n }\n }\n /** Toggles the `checked` state of the checkbox. */\n toggle() {\n this.checked = !this.checked;\n }\n /**\n * Event handler for checkbox input element.\n * Toggles checked state if element is not disabled.\n * Do not toggle on (change) event since IE doesn't fire change event when\n * indeterminate checkbox is clicked.\n * @param event\n */\n _onInputClick(event) {\n var _a;\n const clickAction = (_a = this._options) === null || _a === void 0 ? void 0 : _a.clickAction;\n // We have to stop propagation for click events on the visual hidden input element.\n // By default, when a user clicks on a label element, a generated click event will be\n // dispatched on the associated input element. Since we are using a label element as our\n // root container, the click event on the `checkbox` will be executed twice.\n // The real click event will bubble up, and the generated click event also tries to bubble up.\n // This will lead to multiple click events.\n // Preventing bubbling for the second event will solve that issue.\n event.stopPropagation();\n // If resetIndeterminate is false, and the current state is indeterminate, do nothing on click\n if (!this.disabled && clickAction !== 'noop') {\n // When user manually click on the checkbox, `indeterminate` is set to false.\n if (this.indeterminate && clickAction !== 'check') {\n Promise.resolve().then(() => {\n this._indeterminate = false;\n this.indeterminateChange.emit(this._indeterminate);\n });\n }\n this.toggle();\n this._transitionCheckState(this._checked ? 1 /* Checked */ : 2 /* Unchecked */);\n // Emit our custom change event if the native input emitted one.\n // It is important to only emit it, if the native input triggered one, because\n // we don't want to trigger a change event, when the `checked` variable changes for example.\n this._emitChangeEvent();\n }\n else if (!this.disabled && clickAction === 'noop') {\n // Reset native input when clicked with noop. The native checkbox becomes checked after\n // click, reset it to be align with `checked` value of `mat-checkbox`.\n this._inputElement.nativeElement.checked = this.checked;\n this._inputElement.nativeElement.indeterminate = this.indeterminate;\n }\n }\n /** Focuses the checkbox. */\n focus(origin, options) {\n if (origin) {\n this._focusMonitor.focusVia(this._inputElement, origin, options);\n }\n else {\n this._inputElement.nativeElement.focus(options);\n }\n }\n _onInteractionEvent(event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the `change` output.\n event.stopPropagation();\n }\n _getAnimationClassForCheckStateTransition(oldState, newState) {\n // Don't transition if animations are disabled.\n if (this._animationMode === 'NoopAnimations') {\n return '';\n }\n let animSuffix = '';\n switch (oldState) {\n case 0 /* Init */:\n // Handle edge case where user interacts with checkbox that does not have [(ngModel)] or\n // [checked] bound to it.\n if (newState === 1 /* Checked */) {\n animSuffix = 'unchecked-checked';\n }\n else if (newState == 3 /* Indeterminate */) {\n animSuffix = 'unchecked-indeterminate';\n }\n else {\n return '';\n }\n break;\n case 2 /* Unchecked */:\n animSuffix =\n newState === 1 /* Checked */\n ? 'unchecked-checked'\n : 'unchecked-indeterminate';\n break;\n case 1 /* Checked */:\n animSuffix =\n newState === 2 /* Unchecked */\n ? 'checked-unchecked'\n : 'checked-indeterminate';\n break;\n case 3 /* Indeterminate */:\n animSuffix =\n newState === 1 /* Checked */\n ? 'indeterminate-checked'\n : 'indeterminate-unchecked';\n break;\n }\n return `mat-checkbox-anim-${animSuffix}`;\n }\n /**\n * Syncs the indeterminate value with the checkbox DOM node.\n *\n * We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a\n * property is supported on an element boils down to `if (propName in element)`. Domino's\n * HTMLInputElement doesn't have an `indeterminate` property so Ivy will warn during\n * server-side rendering.\n */\n _syncIndeterminate(value) {\n const nativeCheckbox = this._inputElement;\n if (nativeCheckbox) {\n nativeCheckbox.nativeElement.indeterminate = value;\n }\n }\n}\nMatCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckbox, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.NgZone }, { token: 'tabindex', attribute: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_CHECKBOX_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCheckbox, selector: \"mat-checkbox\", inputs: { disableRipple: \"disableRipple\", color: \"color\", tabIndex: \"tabIndex\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], id: \"id\", required: \"required\", labelPosition: \"labelPosition\", name: \"name\", value: \"value\", checked: \"checked\", disabled: \"disabled\", indeterminate: \"indeterminate\" }, outputs: { change: \"change\", indeterminateChange: \"indeterminateChange\" }, host: { properties: { \"id\": \"id\", \"attr.tabindex\": \"null\", \"class.mat-checkbox-indeterminate\": \"indeterminate\", \"class.mat-checkbox-checked\": \"checked\", \"class.mat-checkbox-disabled\": \"disabled\", \"class.mat-checkbox-label-before\": \"labelPosition == \\\"before\\\"\", \"class._mat-animation-noopable\": \"_animationMode === 'NoopAnimations'\" }, classAttribute: \"mat-checkbox\" }, providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR], viewQueries: [{ propertyName: \"_inputElement\", first: true, predicate: [\"input\"], descendants: true }, { propertyName: \"ripple\", first: true, predicate: MatRipple, descendants: true }], exportAs: [\"matCheckbox\"], usesInheritance: true, ngImport: i0, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-checkbox-layout\\\" #label>\\n <span class=\\\"mat-checkbox-inner-container\\\"\\n [class.mat-checkbox-inner-container-no-side-margin]=\\\"!checkboxLabel.textContent || !checkboxLabel.textContent.trim()\\\">\\n <input #input\\n class=\\\"mat-checkbox-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n [id]=\\\"inputId\\\"\\n [required]=\\\"required\\\"\\n [checked]=\\\"checked\\\"\\n [attr.value]=\\\"value\\\"\\n [disabled]=\\\"disabled\\\"\\n [attr.name]=\\\"name\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-checked]=\\\"_getAriaChecked()\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onInteractionEvent($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n <span matRipple class=\\\"mat-checkbox-ripple mat-focus-indicator\\\"\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}\\\">\\n <span class=\\\"mat-ripple-element mat-checkbox-persistent-ripple\\\"></span>\\n </span>\\n <span class=\\\"mat-checkbox-frame\\\"></span>\\n <span class=\\\"mat-checkbox-background\\\">\\n <svg version=\\\"1.1\\\"\\n focusable=\\\"false\\\"\\n class=\\\"mat-checkbox-checkmark\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n xml:space=\\\"preserve\\\"\\n aria-hidden=\\\"true\\\">\\n <path class=\\\"mat-checkbox-checkmark-path\\\"\\n fill=\\\"none\\\"\\n stroke=\\\"white\\\"\\n d=\\\"M4.1,12.7 9,17.6 20.3,6.3\\\"/>\\n </svg>\\n <!-- Element for rendering the indeterminate state checkbox. -->\\n <span class=\\\"mat-checkbox-mixedmark\\\"></span>\\n </span>\\n </span>\\n <span class=\\\"mat-checkbox-label\\\" #checkboxLabel (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\"@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\\n\"], directives: [{ type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i3.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckbox, decorators: [{\n type: Component,\n args: [{ selector: 'mat-checkbox', exportAs: 'matCheckbox', host: {\n 'class': 'mat-checkbox',\n '[id]': 'id',\n '[attr.tabindex]': 'null',\n '[class.mat-checkbox-indeterminate]': 'indeterminate',\n '[class.mat-checkbox-checked]': 'checked',\n '[class.mat-checkbox-disabled]': 'disabled',\n '[class.mat-checkbox-label-before]': 'labelPosition == \"before\"',\n '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n }, providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR], inputs: ['disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-checkbox-layout\\\" #label>\\n <span class=\\\"mat-checkbox-inner-container\\\"\\n [class.mat-checkbox-inner-container-no-side-margin]=\\\"!checkboxLabel.textContent || !checkboxLabel.textContent.trim()\\\">\\n <input #input\\n class=\\\"mat-checkbox-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n [id]=\\\"inputId\\\"\\n [required]=\\\"required\\\"\\n [checked]=\\\"checked\\\"\\n [attr.value]=\\\"value\\\"\\n [disabled]=\\\"disabled\\\"\\n [attr.name]=\\\"name\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-checked]=\\\"_getAriaChecked()\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onInteractionEvent($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n <span matRipple class=\\\"mat-checkbox-ripple mat-focus-indicator\\\"\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}\\\">\\n <span class=\\\"mat-ripple-element mat-checkbox-persistent-ripple\\\"></span>\\n </span>\\n <span class=\\\"mat-checkbox-frame\\\"></span>\\n <span class=\\\"mat-checkbox-background\\\">\\n <svg version=\\\"1.1\\\"\\n focusable=\\\"false\\\"\\n class=\\\"mat-checkbox-checkmark\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n xml:space=\\\"preserve\\\"\\n aria-hidden=\\\"true\\\">\\n <path class=\\\"mat-checkbox-checkmark-path\\\"\\n fill=\\\"none\\\"\\n stroke=\\\"white\\\"\\n d=\\\"M4.1,12.7 9,17.6 20.3,6.3\\\"/>\\n </svg>\\n <!-- Element for rendering the indeterminate state checkbox. -->\\n <span class=\\\"mat-checkbox-mixedmark\\\"></span>\\n </span>\\n </span>\\n <span class=\\\"mat-checkbox-label\\\" #checkboxLabel (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\"@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusMonitor }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_CHECKBOX_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], ariaDescribedby: [{\n type: Input,\n args: ['aria-describedby']\n }], id: [{\n type: Input\n }], required: [{\n type: Input\n }], labelPosition: [{\n type: Input\n }], name: [{\n type: Input\n }], change: [{\n type: Output\n }], indeterminateChange: [{\n type: Output\n }], value: [{\n type: Input\n }], _inputElement: [{\n type: ViewChild,\n args: ['input']\n }], ripple: [{\n type: ViewChild,\n args: [MatRipple]\n }], checked: [{\n type: Input\n }], disabled: [{\n type: Input\n }], indeterminate: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAT_CHECKBOX_REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MatCheckboxRequiredValidator),\n multi: true,\n};\n/**\n * Validator for Material checkbox's required attribute in template-driven checkbox.\n * Current CheckboxRequiredValidator only work with `input type=checkbox` and does not\n * work with `mat-checkbox`.\n */\nclass MatCheckboxRequiredValidator extends CheckboxRequiredValidator {\n}\nMatCheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCheckboxRequiredValidator, selector: \"mat-checkbox[required][formControlName],\\n mat-checkbox[required][formControl], mat-checkbox[required][ngModel]\", providers: [MAT_CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxRequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: `mat-checkbox[required][formControlName],\n mat-checkbox[required][formControl], mat-checkbox[required][ngModel]`,\n providers: [MAT_CHECKBOX_REQUIRED_VALIDATOR],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** This module is used by both original and MDC-based checkbox implementations. */\nclass _MatCheckboxRequiredValidatorModule {\n}\n_MatCheckboxRequiredValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n_MatCheckboxRequiredValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, declarations: [MatCheckboxRequiredValidator], exports: [MatCheckboxRequiredValidator] });\n_MatCheckboxRequiredValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatCheckboxRequiredValidatorModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [MatCheckboxRequiredValidator],\n declarations: [MatCheckboxRequiredValidator],\n }]\n }] });\nclass MatCheckboxModule {\n}\nMatCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxModule, declarations: [MatCheckbox], imports: [MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule], exports: [MatCheckbox, MatCommonModule, _MatCheckboxRequiredValidatorModule] });\nMatCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxModule, imports: [[MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule], MatCommonModule, _MatCheckboxRequiredValidatorModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCheckboxModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatRippleModule, MatCommonModule, ObserversModule, _MatCheckboxRequiredValidatorModule],\n exports: [MatCheckbox, MatCommonModule, _MatCheckboxRequiredValidatorModule],\n declarations: [MatCheckbox],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR, MAT_CHECKBOX_DEFAULT_OPTIONS, MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY, MAT_CHECKBOX_REQUIRED_VALIDATOR, MatCheckbox, MatCheckboxChange, MatCheckboxModule, MatCheckboxRequiredValidator, _MatCheckboxRequiredValidatorModule };\n","import * as i4 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i3 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Attribute, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Subject, merge, fromEvent } from 'rxjs';\nimport { startWith, takeUntil, take } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i1 from '@angular/cdk/bidi';\nimport * as i2 from '@angular/cdk/platform';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet nextUniqueId$2 = 0;\n/**\n * Injection token that can be used to reference instances of `MatError`. It serves as\n * alternative token to the actual `MatError` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_ERROR = new InjectionToken('MatError');\n/** Single error message to be shown underneath the form field. */\nclass MatError {\n constructor(ariaLive, elementRef) {\n this.id = `mat-error-${nextUniqueId$2++}`;\n // If no aria-live value is set add 'polite' as a default. This is preferred over setting\n // role='alert' so that screen readers do not interrupt the current task to read this aloud.\n if (!ariaLive) {\n elementRef.nativeElement.setAttribute('aria-live', 'polite');\n }\n }\n}\nMatError.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatError, deps: [{ token: 'aria-live', attribute: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatError.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatError, selector: \"mat-error\", inputs: { id: \"id\" }, host: { attributes: { \"aria-atomic\": \"true\" }, properties: { \"attr.id\": \"id\" }, classAttribute: \"mat-error\" }, providers: [{ provide: MAT_ERROR, useExisting: MatError }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatError, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-error',\n host: {\n 'class': 'mat-error',\n '[attr.id]': 'id',\n 'aria-atomic': 'true',\n },\n providers: [{ provide: MAT_ERROR, useExisting: MatError }],\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Attribute,\n args: ['aria-live']\n }] }, { type: i0.ElementRef }];\n }, propDecorators: { id: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the MatFormField.\n * @docs-private\n */\nconst matFormFieldAnimations = {\n /** Animation that transitions the form field's error and hint messages. */\n transitionMessages: trigger('transitionMessages', [\n // TODO(mmalerba): Use angular animations for label animation as well.\n state('enter', style({ opacity: 1, transform: 'translateY(0%)' })),\n transition('void => enter', [\n style({ opacity: 0, transform: 'translateY(-5px)' }),\n animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)'),\n ]),\n ]),\n};\n\n/** An interface which allows a control to work inside of a `MatFormField`. */\nclass MatFormFieldControl {\n}\nMatFormFieldControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatFormFieldControl.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFormFieldControl, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldControl, decorators: [{\n type: Directive\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nfunction getMatFormFieldPlaceholderConflictError() {\n return Error('Placeholder attribute and child element were both specified.');\n}\n/** @docs-private */\nfunction getMatFormFieldDuplicatedHintError(align) {\n return Error(`A hint was already declared for 'align=\"${align}\"'.`);\n}\n/** @docs-private */\nfunction getMatFormFieldMissingControlError() {\n return Error('mat-form-field must contain a MatFormFieldControl.');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet nextUniqueId$1 = 0;\n/**\n * Injection token that can be used to reference instances of `MatHint`. It serves as\n * alternative token to the actual `MatHint` class which could cause unnecessary\n * retention of the class and its directive metadata.\n *\n * *Note*: This is not part of the public API as the MDC-based form-field will not\n * need a lightweight token for `MatHint` and we want to reduce breaking changes.\n */\nconst _MAT_HINT = new InjectionToken('MatHint');\n/** Hint text to be shown underneath the form field control. */\nclass MatHint {\n constructor() {\n /** Whether to align the hint label at the start or end of the line. */\n this.align = 'start';\n /** Unique ID for the hint. Used for the aria-describedby on the form field control. */\n this.id = `mat-hint-${nextUniqueId$1++}`;\n }\n}\nMatHint.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHint, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatHint.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHint, selector: \"mat-hint\", inputs: { align: \"align\", id: \"id\" }, host: { properties: { \"class.mat-form-field-hint-end\": \"align === \\\"end\\\"\", \"attr.id\": \"id\", \"attr.align\": \"null\" }, classAttribute: \"mat-hint\" }, providers: [{ provide: _MAT_HINT, useExisting: MatHint }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHint, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-hint',\n host: {\n 'class': 'mat-hint',\n '[class.mat-form-field-hint-end]': 'align === \"end\"',\n '[attr.id]': 'id',\n // Remove align attribute to prevent it from interfering with layout.\n '[attr.align]': 'null',\n },\n providers: [{ provide: _MAT_HINT, useExisting: MatHint }],\n }]\n }], propDecorators: { align: [{\n type: Input\n }], id: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The floating label for a `mat-form-field`. */\nclass MatLabel {\n}\nMatLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatLabel, selector: \"mat-label\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatLabel, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-label',\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The placeholder text for an `MatFormField`.\n * @deprecated Use `<mat-label>` to specify the label and the `placeholder` attribute to specify the\n * placeholder.\n * @breaking-change 8.0.0\n */\nclass MatPlaceholder {\n}\nMatPlaceholder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatPlaceholder.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatPlaceholder, selector: \"mat-placeholder\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPlaceholder, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-placeholder',\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatPrefix`. It serves as\n * alternative token to the actual `MatPrefix` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_PREFIX = new InjectionToken('MatPrefix');\n/** Prefix to be placed in front of the form field. */\nclass MatPrefix {\n}\nMatPrefix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPrefix, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatPrefix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatPrefix, selector: \"[matPrefix]\", providers: [{ provide: MAT_PREFIX, useExisting: MatPrefix }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPrefix, decorators: [{\n type: Directive,\n args: [{\n selector: '[matPrefix]',\n providers: [{ provide: MAT_PREFIX, useExisting: MatPrefix }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatSuffix`. It serves as\n * alternative token to the actual `MatSuffix` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_SUFFIX = new InjectionToken('MatSuffix');\n/** Suffix to be placed at the end of the form field. */\nclass MatSuffix {\n}\nMatSuffix.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSuffix, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatSuffix.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSuffix, selector: \"[matSuffix]\", providers: [{ provide: MAT_SUFFIX, useExisting: MatSuffix }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSuffix, decorators: [{\n type: Directive,\n args: [{\n selector: '[matSuffix]',\n providers: [{ provide: MAT_SUFFIX, useExisting: MatSuffix }],\n }]\n }] });\n\nlet nextUniqueId = 0;\nconst floatingLabelScale = 0.75;\nconst outlineGapPadding = 5;\n/**\n * Boilerplate for applying mixins to MatFormField.\n * @docs-private\n */\nconst _MatFormFieldBase = mixinColor(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}, 'primary');\n/**\n * Injection token that can be used to configure the\n * default options for all form field within an app.\n */\nconst MAT_FORM_FIELD_DEFAULT_OPTIONS = new InjectionToken('MAT_FORM_FIELD_DEFAULT_OPTIONS');\n/**\n * Injection token that can be used to inject an instances of `MatFormField`. It serves\n * as alternative token to the actual `MatFormField` class which would cause unnecessary\n * retention of the `MatFormField` class and its component metadata.\n */\nconst MAT_FORM_FIELD = new InjectionToken('MatFormField');\n/** Container for form controls that applies Material Design styling and behavior. */\nclass MatFormField extends _MatFormFieldBase {\n constructor(elementRef, _changeDetectorRef, _dir, _defaults, _platform, _ngZone, _animationMode) {\n super(elementRef);\n this._changeDetectorRef = _changeDetectorRef;\n this._dir = _dir;\n this._defaults = _defaults;\n this._platform = _platform;\n this._ngZone = _ngZone;\n /**\n * Whether the outline gap needs to be calculated\n * immediately on the next change detection run.\n */\n this._outlineGapCalculationNeededImmediately = false;\n /** Whether the outline gap needs to be calculated next time the zone has stabilized. */\n this._outlineGapCalculationNeededOnStable = false;\n this._destroyed = new Subject();\n /** Override for the logic that disables the label animation in certain cases. */\n this._showAlwaysAnimate = false;\n /** State of the mat-hint and mat-error animations. */\n this._subscriptAnimationState = '';\n this._hintLabel = '';\n // Unique id for the hint label.\n this._hintLabelId = `mat-hint-${nextUniqueId++}`;\n // Unique id for the label element.\n this._labelId = `mat-form-field-label-${nextUniqueId++}`;\n this.floatLabel = this._getDefaultFloatLabelState();\n this._animationsEnabled = _animationMode !== 'NoopAnimations';\n // Set the default through here so we invoke the setter on the first run.\n this.appearance = _defaults && _defaults.appearance ? _defaults.appearance : 'legacy';\n this._hideRequiredMarker =\n _defaults && _defaults.hideRequiredMarker != null ? _defaults.hideRequiredMarker : false;\n }\n /** The form-field appearance style. */\n get appearance() {\n return this._appearance;\n }\n set appearance(value) {\n const oldValue = this._appearance;\n this._appearance = value || (this._defaults && this._defaults.appearance) || 'legacy';\n if (this._appearance === 'outline' && oldValue !== value) {\n this._outlineGapCalculationNeededOnStable = true;\n }\n }\n /** Whether the required marker should be hidden. */\n get hideRequiredMarker() {\n return this._hideRequiredMarker;\n }\n set hideRequiredMarker(value) {\n this._hideRequiredMarker = coerceBooleanProperty(value);\n }\n /** Whether the floating label should always float or not. */\n _shouldAlwaysFloat() {\n return this.floatLabel === 'always' && !this._showAlwaysAnimate;\n }\n /** Whether the label can float or not. */\n _canLabelFloat() {\n return this.floatLabel !== 'never';\n }\n /** Text for the form field hint. */\n get hintLabel() {\n return this._hintLabel;\n }\n set hintLabel(value) {\n this._hintLabel = value;\n this._processHints();\n }\n /**\n * Whether the label should always float, never float or float as the user types.\n *\n * Note: only the legacy appearance supports the `never` option. `never` was originally added as a\n * way to make the floating label emulate the behavior of a standard input placeholder. However\n * the form field now supports both floating labels and placeholders. Therefore in the non-legacy\n * appearances the `never` option has been disabled in favor of just using the placeholder.\n */\n get floatLabel() {\n return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel;\n }\n set floatLabel(value) {\n if (value !== this._floatLabel) {\n this._floatLabel = value || this._getDefaultFloatLabelState();\n this._changeDetectorRef.markForCheck();\n }\n }\n get _control() {\n // TODO(crisbeto): we need this workaround in order to support both Ivy and ViewEngine.\n // We should clean this up once Ivy is the default renderer.\n return this._explicitFormFieldControl || this._controlNonStatic || this._controlStatic;\n }\n set _control(value) {\n this._explicitFormFieldControl = value;\n }\n /**\n * Gets the id of the label element. If no label is present, returns `null`.\n */\n getLabelId() {\n return this._hasFloatingLabel() ? this._labelId : null;\n }\n /**\n * Gets an ElementRef for the element that a overlay attached to the form-field should be\n * positioned relative to.\n */\n getConnectedOverlayOrigin() {\n return this._connectionContainerRef || this._elementRef;\n }\n ngAfterContentInit() {\n this._validateControlChild();\n const control = this._control;\n if (control.controlType) {\n this._elementRef.nativeElement.classList.add(`mat-form-field-type-${control.controlType}`);\n }\n // Subscribe to changes in the child control state in order to update the form field UI.\n control.stateChanges.pipe(startWith(null)).subscribe(() => {\n this._validatePlaceholders();\n this._syncDescribedByIds();\n this._changeDetectorRef.markForCheck();\n });\n // Run change detection if the value changes.\n if (control.ngControl && control.ngControl.valueChanges) {\n control.ngControl.valueChanges\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this._changeDetectorRef.markForCheck());\n }\n // Note that we have to run outside of the `NgZone` explicitly,\n // in order to avoid throwing users into an infinite loop\n // if `zone-patch-rxjs` is included.\n this._ngZone.runOutsideAngular(() => {\n this._ngZone.onStable.pipe(takeUntil(this._destroyed)).subscribe(() => {\n if (this._outlineGapCalculationNeededOnStable) {\n this.updateOutlineGap();\n }\n });\n });\n // Run change detection and update the outline if the suffix or prefix changes.\n merge(this._prefixChildren.changes, this._suffixChildren.changes).subscribe(() => {\n this._outlineGapCalculationNeededOnStable = true;\n this._changeDetectorRef.markForCheck();\n });\n // Re-validate when the number of hints changes.\n this._hintChildren.changes.pipe(startWith(null)).subscribe(() => {\n this._processHints();\n this._changeDetectorRef.markForCheck();\n });\n // Update the aria-described by when the number of errors changes.\n this._errorChildren.changes.pipe(startWith(null)).subscribe(() => {\n this._syncDescribedByIds();\n this._changeDetectorRef.markForCheck();\n });\n if (this._dir) {\n this._dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n if (typeof requestAnimationFrame === 'function') {\n this._ngZone.runOutsideAngular(() => {\n requestAnimationFrame(() => this.updateOutlineGap());\n });\n }\n else {\n this.updateOutlineGap();\n }\n });\n }\n }\n ngAfterContentChecked() {\n this._validateControlChild();\n if (this._outlineGapCalculationNeededImmediately) {\n this.updateOutlineGap();\n }\n }\n ngAfterViewInit() {\n // Avoid animations on load.\n this._subscriptAnimationState = 'enter';\n this._changeDetectorRef.detectChanges();\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Determines whether a class from the NgControl should be forwarded to the host element. */\n _shouldForward(prop) {\n const ngControl = this._control ? this._control.ngControl : null;\n return ngControl && ngControl[prop];\n }\n _hasPlaceholder() {\n return !!((this._control && this._control.placeholder) || this._placeholderChild);\n }\n _hasLabel() {\n return !!(this._labelChildNonStatic || this._labelChildStatic);\n }\n _shouldLabelFloat() {\n return (this._canLabelFloat() &&\n ((this._control && this._control.shouldLabelFloat) || this._shouldAlwaysFloat()));\n }\n _hideControlPlaceholder() {\n // In the legacy appearance the placeholder is promoted to a label if no label is given.\n return ((this.appearance === 'legacy' && !this._hasLabel()) ||\n (this._hasLabel() && !this._shouldLabelFloat()));\n }\n _hasFloatingLabel() {\n // In the legacy appearance the placeholder is promoted to a label if no label is given.\n return this._hasLabel() || (this.appearance === 'legacy' && this._hasPlaceholder());\n }\n /** Determines whether to display hints or errors. */\n _getDisplayedMessages() {\n return this._errorChildren && this._errorChildren.length > 0 && this._control.errorState\n ? 'error'\n : 'hint';\n }\n /** Animates the placeholder up and locks it in position. */\n _animateAndLockLabel() {\n if (this._hasFloatingLabel() && this._canLabelFloat()) {\n // If animations are disabled, we shouldn't go in here,\n // because the `transitionend` will never fire.\n if (this._animationsEnabled && this._label) {\n this._showAlwaysAnimate = true;\n fromEvent(this._label.nativeElement, 'transitionend')\n .pipe(take(1))\n .subscribe(() => {\n this._showAlwaysAnimate = false;\n });\n }\n this.floatLabel = 'always';\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * Ensure that there is only one placeholder (either `placeholder` attribute on the child control\n * or child element with the `mat-placeholder` directive).\n */\n _validatePlaceholders() {\n if (this._control.placeholder &&\n this._placeholderChild &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatFormFieldPlaceholderConflictError();\n }\n }\n /** Does any extra processing that is required when handling the hints. */\n _processHints() {\n this._validateHints();\n this._syncDescribedByIds();\n }\n /**\n * Ensure that there is a maximum of one of each `<mat-hint>` alignment specified, with the\n * attribute being considered as `align=\"start\"`.\n */\n _validateHints() {\n if (this._hintChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n let startHint;\n let endHint;\n this._hintChildren.forEach((hint) => {\n if (hint.align === 'start') {\n if (startHint || this.hintLabel) {\n throw getMatFormFieldDuplicatedHintError('start');\n }\n startHint = hint;\n }\n else if (hint.align === 'end') {\n if (endHint) {\n throw getMatFormFieldDuplicatedHintError('end');\n }\n endHint = hint;\n }\n });\n }\n }\n /** Gets the default float label state. */\n _getDefaultFloatLabelState() {\n return (this._defaults && this._defaults.floatLabel) || 'auto';\n }\n /**\n * Sets the list of element IDs that describe the child control. This allows the control to update\n * its `aria-describedby` attribute accordingly.\n */\n _syncDescribedByIds() {\n if (this._control) {\n let ids = [];\n // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug.\n if (this._control.userAriaDescribedBy &&\n typeof this._control.userAriaDescribedBy === 'string') {\n ids.push(...this._control.userAriaDescribedBy.split(' '));\n }\n if (this._getDisplayedMessages() === 'hint') {\n const startHint = this._hintChildren\n ? this._hintChildren.find(hint => hint.align === 'start')\n : null;\n const endHint = this._hintChildren\n ? this._hintChildren.find(hint => hint.align === 'end')\n : null;\n if (startHint) {\n ids.push(startHint.id);\n }\n else if (this._hintLabel) {\n ids.push(this._hintLabelId);\n }\n if (endHint) {\n ids.push(endHint.id);\n }\n }\n else if (this._errorChildren) {\n ids.push(...this._errorChildren.map(error => error.id));\n }\n this._control.setDescribedByIds(ids);\n }\n }\n /** Throws an error if the form field's control is missing. */\n _validateControlChild() {\n if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatFormFieldMissingControlError();\n }\n }\n /**\n * Updates the width and position of the gap in the outline. Only relevant for the outline\n * appearance.\n */\n updateOutlineGap() {\n const labelEl = this._label ? this._label.nativeElement : null;\n if (this.appearance !== 'outline' ||\n !labelEl ||\n !labelEl.children.length ||\n !labelEl.textContent.trim()) {\n return;\n }\n if (!this._platform.isBrowser) {\n // getBoundingClientRect isn't available on the server.\n return;\n }\n // If the element is not present in the DOM, the outline gap will need to be calculated\n // the next time it is checked and in the DOM.\n if (!this._isAttachedToDOM()) {\n this._outlineGapCalculationNeededImmediately = true;\n return;\n }\n let startWidth = 0;\n let gapWidth = 0;\n const container = this._connectionContainerRef.nativeElement;\n const startEls = container.querySelectorAll('.mat-form-field-outline-start');\n const gapEls = container.querySelectorAll('.mat-form-field-outline-gap');\n if (this._label && this._label.nativeElement.children.length) {\n const containerRect = container.getBoundingClientRect();\n // If the container's width and height are zero, it means that the element is\n // invisible and we can't calculate the outline gap. Mark the element as needing\n // to be checked the next time the zone stabilizes. We can't do this immediately\n // on the next change detection, because even if the element becomes visible,\n // the `ClientRect` won't be reclaculated immediately. We reset the\n // `_outlineGapCalculationNeededImmediately` flag some we don't run the checks twice.\n if (containerRect.width === 0 && containerRect.height === 0) {\n this._outlineGapCalculationNeededOnStable = true;\n this._outlineGapCalculationNeededImmediately = false;\n return;\n }\n const containerStart = this._getStartEnd(containerRect);\n const labelChildren = labelEl.children;\n const labelStart = this._getStartEnd(labelChildren[0].getBoundingClientRect());\n let labelWidth = 0;\n for (let i = 0; i < labelChildren.length; i++) {\n labelWidth += labelChildren[i].offsetWidth;\n }\n startWidth = Math.abs(labelStart - containerStart) - outlineGapPadding;\n gapWidth = labelWidth > 0 ? labelWidth * floatingLabelScale + outlineGapPadding * 2 : 0;\n }\n for (let i = 0; i < startEls.length; i++) {\n startEls[i].style.width = `${startWidth}px`;\n }\n for (let i = 0; i < gapEls.length; i++) {\n gapEls[i].style.width = `${gapWidth}px`;\n }\n this._outlineGapCalculationNeededOnStable = this._outlineGapCalculationNeededImmediately =\n false;\n }\n /** Gets the start end of the rect considering the current directionality. */\n _getStartEnd(rect) {\n return this._dir && this._dir.value === 'rtl' ? rect.right : rect.left;\n }\n /** Checks whether the form field is attached to the DOM. */\n _isAttachedToDOM() {\n const element = this._elementRef.nativeElement;\n if (element.getRootNode) {\n const rootNode = element.getRootNode();\n // If the element is inside the DOM the root node will be either the document\n // or the closest shadow root, otherwise it'll be the element itself.\n return rootNode && rootNode !== element;\n }\n // Otherwise fall back to checking if it's in the document. This doesn't account for\n // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.\n return document.documentElement.contains(element);\n }\n}\nMatFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormField, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.Directionality, optional: true }, { token: MAT_FORM_FIELD_DEFAULT_OPTIONS, optional: true }, { token: i2.Platform }, { token: i0.NgZone }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFormField, selector: \"mat-form-field\", inputs: { color: \"color\", appearance: \"appearance\", hideRequiredMarker: \"hideRequiredMarker\", hintLabel: \"hintLabel\", floatLabel: \"floatLabel\" }, host: { properties: { \"class.mat-form-field-appearance-standard\": \"appearance == \\\"standard\\\"\", \"class.mat-form-field-appearance-fill\": \"appearance == \\\"fill\\\"\", \"class.mat-form-field-appearance-outline\": \"appearance == \\\"outline\\\"\", \"class.mat-form-field-appearance-legacy\": \"appearance == \\\"legacy\\\"\", \"class.mat-form-field-invalid\": \"_control.errorState\", \"class.mat-form-field-can-float\": \"_canLabelFloat()\", \"class.mat-form-field-should-float\": \"_shouldLabelFloat()\", \"class.mat-form-field-has-label\": \"_hasFloatingLabel()\", \"class.mat-form-field-hide-placeholder\": \"_hideControlPlaceholder()\", \"class.mat-form-field-disabled\": \"_control.disabled\", \"class.mat-form-field-autofilled\": \"_control.autofilled\", \"class.mat-focused\": \"_control.focused\", \"class.ng-untouched\": \"_shouldForward(\\\"untouched\\\")\", \"class.ng-touched\": \"_shouldForward(\\\"touched\\\")\", \"class.ng-pristine\": \"_shouldForward(\\\"pristine\\\")\", \"class.ng-dirty\": \"_shouldForward(\\\"dirty\\\")\", \"class.ng-valid\": \"_shouldForward(\\\"valid\\\")\", \"class.ng-invalid\": \"_shouldForward(\\\"invalid\\\")\", \"class.ng-pending\": \"_shouldForward(\\\"pending\\\")\", \"class._mat-animation-noopable\": \"!_animationsEnabled\" }, classAttribute: \"mat-form-field\" }, providers: [{ provide: MAT_FORM_FIELD, useExisting: MatFormField }], queries: [{ propertyName: \"_controlNonStatic\", first: true, predicate: MatFormFieldControl, descendants: true }, { propertyName: \"_controlStatic\", first: true, predicate: MatFormFieldControl, descendants: true, static: true }, { propertyName: \"_labelChildNonStatic\", first: true, predicate: MatLabel, descendants: true }, { propertyName: \"_labelChildStatic\", first: true, predicate: MatLabel, descendants: true, static: true }, { propertyName: \"_placeholderChild\", first: true, predicate: MatPlaceholder, descendants: true }, { propertyName: \"_errorChildren\", predicate: MAT_ERROR, descendants: true }, { propertyName: \"_hintChildren\", predicate: _MAT_HINT, descendants: true }, { propertyName: \"_prefixChildren\", predicate: MAT_PREFIX, descendants: true }, { propertyName: \"_suffixChildren\", predicate: MAT_SUFFIX, descendants: true }], viewQueries: [{ propertyName: \"_connectionContainerRef\", first: true, predicate: [\"connectionContainer\"], descendants: true, static: true }, { propertyName: \"_inputContainerRef\", first: true, predicate: [\"inputContainer\"], descendants: true }, { propertyName: \"_label\", first: true, predicate: [\"label\"], descendants: true }], exportAs: [\"matFormField\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-form-field-wrapper\\\">\\n <div class=\\\"mat-form-field-flex\\\" #connectionContainer\\n (click)=\\\"_control.onContainerClick && _control.onContainerClick($event)\\\">\\n\\n <!-- Outline used for outline appearance. -->\\n <ng-container *ngIf=\\\"appearance == 'outline'\\\">\\n <div class=\\\"mat-form-field-outline\\\">\\n <div class=\\\"mat-form-field-outline-start\\\"></div>\\n <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n <div class=\\\"mat-form-field-outline-end\\\"></div>\\n </div>\\n <div class=\\\"mat-form-field-outline mat-form-field-outline-thick\\\">\\n <div class=\\\"mat-form-field-outline-start\\\"></div>\\n <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n <div class=\\\"mat-form-field-outline-end\\\"></div>\\n </div>\\n </ng-container>\\n\\n <div\\n class=\\\"mat-form-field-prefix\\\"\\n *ngIf=\\\"_prefixChildren.length\\\"\\n (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\">\\n <ng-content select=\\\"[matPrefix]\\\"></ng-content>\\n </div>\\n\\n <div class=\\\"mat-form-field-infix\\\" #inputContainer>\\n <ng-content></ng-content>\\n\\n <span class=\\\"mat-form-field-label-wrapper\\\">\\n <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\\n read if it comes before the control in the DOM. -->\\n <label class=\\\"mat-form-field-label\\\"\\n (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\"\\n [id]=\\\"_labelId\\\"\\n [attr.for]=\\\"_control.id\\\"\\n [attr.aria-owns]=\\\"_control.id\\\"\\n [class.mat-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n [class.mat-form-field-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n [class.mat-accent]=\\\"color == 'accent'\\\"\\n [class.mat-warn]=\\\"color == 'warn'\\\"\\n #label\\n *ngIf=\\\"_hasFloatingLabel()\\\"\\n [ngSwitch]=\\\"_hasLabel()\\\">\\n\\n <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\\n <ng-container *ngSwitchCase=\\\"false\\\">\\n <ng-content select=\\\"mat-placeholder\\\"></ng-content>\\n <span>{{_control.placeholder}}</span>\\n </ng-container>\\n\\n <ng-content select=\\\"mat-label\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n\\n <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\\n <span\\n class=\\\"mat-placeholder-required mat-form-field-required-marker\\\"\\n aria-hidden=\\\"true\\\"\\n *ngIf=\\\"!hideRequiredMarker && _control.required && !_control.disabled\\\"> *</span>\\n </label>\\n </span>\\n </div>\\n\\n <div class=\\\"mat-form-field-suffix\\\" *ngIf=\\\"_suffixChildren.length\\\">\\n <ng-content select=\\\"[matSuffix]\\\"></ng-content>\\n </div>\\n </div>\\n\\n <!-- Underline used for legacy, standard, and box appearances. -->\\n <div class=\\\"mat-form-field-underline\\\"\\n *ngIf=\\\"appearance != 'outline'\\\">\\n <span class=\\\"mat-form-field-ripple\\\"\\n [class.mat-accent]=\\\"color == 'accent'\\\"\\n [class.mat-warn]=\\\"color == 'warn'\\\"></span>\\n </div>\\n\\n <div class=\\\"mat-form-field-subscript-wrapper\\\"\\n [ngSwitch]=\\\"_getDisplayedMessages()\\\">\\n <div *ngSwitchCase=\\\"'error'\\\" [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n <ng-content select=\\\"mat-error\\\"></ng-content>\\n </div>\\n\\n <div class=\\\"mat-form-field-hint-wrapper\\\" *ngSwitchCase=\\\"'hint'\\\"\\n [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\\n <div *ngIf=\\\"hintLabel\\\" [id]=\\\"_hintLabelId\\\" class=\\\"mat-hint\\\">{{hintLabel}}</div>\\n <ng-content select=\\\"mat-hint:not([align='end'])\\\"></ng-content>\\n <div class=\\\"mat-form-field-hint-spacer\\\"></div>\\n <ng-content select=\\\"mat-hint[align='end']\\\"></ng-content>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\\n\", \".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\\\"\\\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\\n\", \".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\\\" \\\";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\\\"\\\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\\n\", \".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\\n\", \".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\\n\", \".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\\n\"], directives: [{ type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i4.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { type: i3.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i3.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], animations: [matFormFieldAnimations.transitionMessages], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormField, decorators: [{\n type: Component,\n args: [{ selector: 'mat-form-field', exportAs: 'matFormField', animations: [matFormFieldAnimations.transitionMessages], host: {\n 'class': 'mat-form-field',\n '[class.mat-form-field-appearance-standard]': 'appearance == \"standard\"',\n '[class.mat-form-field-appearance-fill]': 'appearance == \"fill\"',\n '[class.mat-form-field-appearance-outline]': 'appearance == \"outline\"',\n '[class.mat-form-field-appearance-legacy]': 'appearance == \"legacy\"',\n '[class.mat-form-field-invalid]': '_control.errorState',\n '[class.mat-form-field-can-float]': '_canLabelFloat()',\n '[class.mat-form-field-should-float]': '_shouldLabelFloat()',\n '[class.mat-form-field-has-label]': '_hasFloatingLabel()',\n '[class.mat-form-field-hide-placeholder]': '_hideControlPlaceholder()',\n '[class.mat-form-field-disabled]': '_control.disabled',\n '[class.mat-form-field-autofilled]': '_control.autofilled',\n '[class.mat-focused]': '_control.focused',\n '[class.ng-untouched]': '_shouldForward(\"untouched\")',\n '[class.ng-touched]': '_shouldForward(\"touched\")',\n '[class.ng-pristine]': '_shouldForward(\"pristine\")',\n '[class.ng-dirty]': '_shouldForward(\"dirty\")',\n '[class.ng-valid]': '_shouldForward(\"valid\")',\n '[class.ng-invalid]': '_shouldForward(\"invalid\")',\n '[class.ng-pending]': '_shouldForward(\"pending\")',\n '[class._mat-animation-noopable]': '!_animationsEnabled',\n }, inputs: ['color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: MAT_FORM_FIELD, useExisting: MatFormField }], template: \"<div class=\\\"mat-form-field-wrapper\\\">\\n <div class=\\\"mat-form-field-flex\\\" #connectionContainer\\n (click)=\\\"_control.onContainerClick && _control.onContainerClick($event)\\\">\\n\\n <!-- Outline used for outline appearance. -->\\n <ng-container *ngIf=\\\"appearance == 'outline'\\\">\\n <div class=\\\"mat-form-field-outline\\\">\\n <div class=\\\"mat-form-field-outline-start\\\"></div>\\n <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n <div class=\\\"mat-form-field-outline-end\\\"></div>\\n </div>\\n <div class=\\\"mat-form-field-outline mat-form-field-outline-thick\\\">\\n <div class=\\\"mat-form-field-outline-start\\\"></div>\\n <div class=\\\"mat-form-field-outline-gap\\\"></div>\\n <div class=\\\"mat-form-field-outline-end\\\"></div>\\n </div>\\n </ng-container>\\n\\n <div\\n class=\\\"mat-form-field-prefix\\\"\\n *ngIf=\\\"_prefixChildren.length\\\"\\n (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\">\\n <ng-content select=\\\"[matPrefix]\\\"></ng-content>\\n </div>\\n\\n <div class=\\\"mat-form-field-infix\\\" #inputContainer>\\n <ng-content></ng-content>\\n\\n <span class=\\\"mat-form-field-label-wrapper\\\">\\n <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\\n read if it comes before the control in the DOM. -->\\n <label class=\\\"mat-form-field-label\\\"\\n (cdkObserveContent)=\\\"updateOutlineGap()\\\"\\n [cdkObserveContentDisabled]=\\\"appearance != 'outline'\\\"\\n [id]=\\\"_labelId\\\"\\n [attr.for]=\\\"_control.id\\\"\\n [attr.aria-owns]=\\\"_control.id\\\"\\n [class.mat-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n [class.mat-form-field-empty]=\\\"_control.empty && !_shouldAlwaysFloat()\\\"\\n [class.mat-accent]=\\\"color == 'accent'\\\"\\n [class.mat-warn]=\\\"color == 'warn'\\\"\\n #label\\n *ngIf=\\\"_hasFloatingLabel()\\\"\\n [ngSwitch]=\\\"_hasLabel()\\\">\\n\\n <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\\n <ng-container *ngSwitchCase=\\\"false\\\">\\n <ng-content select=\\\"mat-placeholder\\\"></ng-content>\\n <span>{{_control.placeholder}}</span>\\n </ng-container>\\n\\n <ng-content select=\\\"mat-label\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n\\n <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\\n <span\\n class=\\\"mat-placeholder-required mat-form-field-required-marker\\\"\\n aria-hidden=\\\"true\\\"\\n *ngIf=\\\"!hideRequiredMarker && _control.required && !_control.disabled\\\"> *</span>\\n </label>\\n </span>\\n </div>\\n\\n <div class=\\\"mat-form-field-suffix\\\" *ngIf=\\\"_suffixChildren.length\\\">\\n <ng-content select=\\\"[matSuffix]\\\"></ng-content>\\n </div>\\n </div>\\n\\n <!-- Underline used for legacy, standard, and box appearances. -->\\n <div class=\\\"mat-form-field-underline\\\"\\n *ngIf=\\\"appearance != 'outline'\\\">\\n <span class=\\\"mat-form-field-ripple\\\"\\n [class.mat-accent]=\\\"color == 'accent'\\\"\\n [class.mat-warn]=\\\"color == 'warn'\\\"></span>\\n </div>\\n\\n <div class=\\\"mat-form-field-subscript-wrapper\\\"\\n [ngSwitch]=\\\"_getDisplayedMessages()\\\">\\n <div *ngSwitchCase=\\\"'error'\\\" [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n <ng-content select=\\\"mat-error\\\"></ng-content>\\n </div>\\n\\n <div class=\\\"mat-form-field-hint-wrapper\\\" *ngSwitchCase=\\\"'hint'\\\"\\n [@transitionMessages]=\\\"_subscriptAnimationState\\\">\\n <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\\n <div *ngIf=\\\"hintLabel\\\" [id]=\\\"_hintLabelId\\\" class=\\\"mat-hint\\\">{{hintLabel}}</div>\\n <ng-content select=\\\"mat-hint:not([align='end'])\\\"></ng-content>\\n <div class=\\\"mat-form-field-hint-spacer\\\"></div>\\n <ng-content select=\\\"mat-hint[align='end']\\\"></ng-content>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\\n\", \".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\\\"\\\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\\n\", \".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\\\" \\\";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\\\"\\\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\\n\", \".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\\n\", \".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\\n\", \".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]\n }] }, { type: i2.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { appearance: [{\n type: Input\n }], hideRequiredMarker: [{\n type: Input\n }], hintLabel: [{\n type: Input\n }], floatLabel: [{\n type: Input\n }], _connectionContainerRef: [{\n type: ViewChild,\n args: ['connectionContainer', { static: true }]\n }], _inputContainerRef: [{\n type: ViewChild,\n args: ['inputContainer']\n }], _label: [{\n type: ViewChild,\n args: ['label']\n }], _controlNonStatic: [{\n type: ContentChild,\n args: [MatFormFieldControl]\n }], _controlStatic: [{\n type: ContentChild,\n args: [MatFormFieldControl, { static: true }]\n }], _labelChildNonStatic: [{\n type: ContentChild,\n args: [MatLabel]\n }], _labelChildStatic: [{\n type: ContentChild,\n args: [MatLabel, { static: true }]\n }], _placeholderChild: [{\n type: ContentChild,\n args: [MatPlaceholder]\n }], _errorChildren: [{\n type: ContentChildren,\n args: [MAT_ERROR, { descendants: true }]\n }], _hintChildren: [{\n type: ContentChildren,\n args: [_MAT_HINT, { descendants: true }]\n }], _prefixChildren: [{\n type: ContentChildren,\n args: [MAT_PREFIX, { descendants: true }]\n }], _suffixChildren: [{\n type: ContentChildren,\n args: [MAT_SUFFIX, { descendants: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatFormFieldModule {\n}\nMatFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldModule, declarations: [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix], imports: [CommonModule, MatCommonModule, ObserversModule], exports: [MatCommonModule,\n MatError,\n MatFormField,\n MatHint,\n MatLabel,\n MatPlaceholder,\n MatPrefix,\n MatSuffix] });\nMatFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldModule, imports: [[CommonModule, MatCommonModule, ObserversModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFormFieldModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix],\n imports: [CommonModule, MatCommonModule, ObserversModule],\n exports: [\n MatCommonModule,\n MatError,\n MatFormField,\n MatHint,\n MatLabel,\n MatPlaceholder,\n MatPrefix,\n MatSuffix,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_ERROR, MAT_FORM_FIELD, MAT_FORM_FIELD_DEFAULT_OPTIONS, MAT_PREFIX, MAT_SUFFIX, MatError, MatFormField, MatFormFieldControl, MatFormFieldModule, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix, _MAT_HINT, getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError, matFormFieldAnimations };\n","import { SPACE, BACKSPACE, DELETE, TAB, hasModifierKey, ENTER } from '@angular/cdk/keycodes';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, EventEmitter, Optional, Inject, Attribute, ContentChild, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, Self, ContentChildren, NgModule } from '@angular/core';\nimport * as i3 from '@angular/material/core';\nimport { mixinTabIndex, mixinColor, mixinDisableRipple, RippleRenderer, MAT_RIPPLE_GLOBAL_OPTIONS, mixinErrorState, MatCommonModule, ErrorStateMatcher } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT } from '@angular/common';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { Subject, merge } from 'rxjs';\nimport { take, takeUntil, startWith } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/platform';\nimport { FocusKeyManager } from '@angular/cdk/a11y';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport * as i2 from '@angular/forms';\nimport { Validators } from '@angular/forms';\nimport { MatFormFieldControl } from '@angular/material/form-field';\nimport * as i1$1 from '@angular/cdk/bidi';\n\n/** Event object emitted by MatChip when selected or deselected. */\nclass MatChipSelectionChange {\n constructor(\n /** Reference to the chip that emitted the event. */\n source, \n /** Whether the chip that emitted the event is selected. */\n selected, \n /** Whether the selection change was a result of a user interaction. */\n isUserInput = false) {\n this.source = source;\n this.selected = selected;\n this.isUserInput = isUserInput;\n }\n}\n/**\n * Injection token that can be used to reference instances of `MatChipRemove`. It serves as\n * alternative token to the actual `MatChipRemove` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_CHIP_REMOVE = new InjectionToken('MatChipRemove');\n/**\n * Injection token that can be used to reference instances of `MatChipAvatar`. It serves as\n * alternative token to the actual `MatChipAvatar` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_CHIP_AVATAR = new InjectionToken('MatChipAvatar');\n/**\n * Injection token that can be used to reference instances of `MatChipTrailingIcon`. It serves as\n * alternative token to the actual `MatChipTrailingIcon` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_CHIP_TRAILING_ICON = new InjectionToken('MatChipTrailingIcon');\n// Boilerplate for applying mixins to MatChip.\n/** @docs-private */\nclass MatChipBase {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}\nconst _MatChipMixinBase = mixinTabIndex(mixinColor(mixinDisableRipple(MatChipBase), 'primary'), -1);\n/**\n * Dummy directive to add CSS class to chip avatar.\n * @docs-private\n */\nclass MatChipAvatar {\n}\nMatChipAvatar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatChipAvatar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChipAvatar, selector: \"mat-chip-avatar, [matChipAvatar]\", host: { classAttribute: \"mat-chip-avatar\" }, providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipAvatar, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-chip-avatar, [matChipAvatar]',\n host: { 'class': 'mat-chip-avatar' },\n providers: [{ provide: MAT_CHIP_AVATAR, useExisting: MatChipAvatar }],\n }]\n }] });\n/**\n * Dummy directive to add CSS class to chip trailing icon.\n * @docs-private\n */\nclass MatChipTrailingIcon {\n}\nMatChipTrailingIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatChipTrailingIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChipTrailingIcon, selector: \"mat-chip-trailing-icon, [matChipTrailingIcon]\", host: { classAttribute: \"mat-chip-trailing-icon\" }, providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipTrailingIcon, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-chip-trailing-icon, [matChipTrailingIcon]',\n host: { 'class': 'mat-chip-trailing-icon' },\n providers: [{ provide: MAT_CHIP_TRAILING_ICON, useExisting: MatChipTrailingIcon }],\n }]\n }] });\n/**\n * Material design styled Chip component. Used inside the MatChipList component.\n */\nclass MatChip extends _MatChipMixinBase {\n constructor(elementRef, _ngZone, platform, globalRippleOptions, _changeDetectorRef, _document, animationMode, tabIndex) {\n super(elementRef);\n this._ngZone = _ngZone;\n this._changeDetectorRef = _changeDetectorRef;\n /** Whether the chip has focus. */\n this._hasFocus = false;\n /** Whether the chip list is selectable */\n this.chipListSelectable = true;\n /** Whether the chip list is in multi-selection mode. */\n this._chipListMultiple = false;\n /** Whether the chip list as a whole is disabled. */\n this._chipListDisabled = false;\n this._selected = false;\n this._selectable = true;\n this._disabled = false;\n this._removable = true;\n /** Emits when the chip is focused. */\n this._onFocus = new Subject();\n /** Emits when the chip is blured. */\n this._onBlur = new Subject();\n /** Emitted when the chip is selected or deselected. */\n this.selectionChange = new EventEmitter();\n /** Emitted when the chip is destroyed. */\n this.destroyed = new EventEmitter();\n /** Emitted when a chip is to be removed. */\n this.removed = new EventEmitter();\n this._addHostClassName();\n // Dynamically create the ripple target, append it within the chip, and use it as the\n // chip's ripple target. Adding the class '.mat-chip-ripple' ensures that it will have\n // the proper styles.\n this._chipRippleTarget = _document.createElement('div');\n this._chipRippleTarget.classList.add('mat-chip-ripple');\n this._elementRef.nativeElement.appendChild(this._chipRippleTarget);\n this._chipRipple = new RippleRenderer(this, _ngZone, this._chipRippleTarget, platform);\n this._chipRipple.setupTriggerEvents(elementRef);\n this.rippleConfig = globalRippleOptions || {};\n this._animationsDisabled = animationMode === 'NoopAnimations';\n this.tabIndex = tabIndex != null ? parseInt(tabIndex) || -1 : -1;\n }\n /**\n * Whether ripples are disabled on interaction\n * @docs-private\n */\n get rippleDisabled() {\n return (this.disabled ||\n this.disableRipple ||\n this._animationsDisabled ||\n !!this.rippleConfig.disabled);\n }\n /** Whether the chip is selected. */\n get selected() {\n return this._selected;\n }\n set selected(value) {\n const coercedValue = coerceBooleanProperty(value);\n if (coercedValue !== this._selected) {\n this._selected = coercedValue;\n this._dispatchSelectionChange();\n }\n }\n /** The value of the chip. Defaults to the content inside `<mat-chip>` tags. */\n get value() {\n return this._value !== undefined ? this._value : this._elementRef.nativeElement.textContent;\n }\n set value(value) {\n this._value = value;\n }\n /**\n * Whether or not the chip is selectable. When a chip is not selectable,\n * changes to its selected state are always ignored. By default a chip is\n * selectable, and it becomes non-selectable if its parent chip list is\n * not selectable.\n */\n get selectable() {\n return this._selectable && this.chipListSelectable;\n }\n set selectable(value) {\n this._selectable = coerceBooleanProperty(value);\n }\n /** Whether the chip is disabled. */\n get disabled() {\n return this._chipListDisabled || this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n /**\n * Determines whether or not the chip displays the remove styling and emits (removed) events.\n */\n get removable() {\n return this._removable;\n }\n set removable(value) {\n this._removable = coerceBooleanProperty(value);\n }\n /** The ARIA selected applied to the chip. */\n get ariaSelected() {\n // Remove the `aria-selected` when the chip is deselected in single-selection mode, because\n // it adds noise to NVDA users where \"not selected\" will be read out for each chip.\n return this.selectable && (this._chipListMultiple || this.selected)\n ? this.selected.toString()\n : null;\n }\n _addHostClassName() {\n const basicChipAttrName = 'mat-basic-chip';\n const element = this._elementRef.nativeElement;\n if (element.hasAttribute(basicChipAttrName) ||\n element.tagName.toLowerCase() === basicChipAttrName) {\n element.classList.add(basicChipAttrName);\n return;\n }\n else {\n element.classList.add('mat-standard-chip');\n }\n }\n ngOnDestroy() {\n this.destroyed.emit({ chip: this });\n this._chipRipple._removeTriggerEvents();\n }\n /** Selects the chip. */\n select() {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange();\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Deselects the chip. */\n deselect() {\n if (this._selected) {\n this._selected = false;\n this._dispatchSelectionChange();\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Select this chip and emit selected event */\n selectViaInteraction() {\n if (!this._selected) {\n this._selected = true;\n this._dispatchSelectionChange(true);\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Toggles the current selected state of this chip. */\n toggleSelected(isUserInput = false) {\n this._selected = !this.selected;\n this._dispatchSelectionChange(isUserInput);\n this._changeDetectorRef.markForCheck();\n return this.selected;\n }\n /** Allows for programmatic focusing of the chip. */\n focus() {\n if (!this._hasFocus) {\n this._elementRef.nativeElement.focus();\n this._onFocus.next({ chip: this });\n }\n this._hasFocus = true;\n }\n /**\n * Allows for programmatic removal of the chip. Called by the MatChipList when the DELETE or\n * BACKSPACE keys are pressed.\n *\n * Informs any listeners of the removal request. Does not remove the chip from the DOM.\n */\n remove() {\n if (this.removable) {\n this.removed.emit({ chip: this });\n }\n }\n /** Handles click events on the chip. */\n _handleClick(event) {\n if (this.disabled) {\n event.preventDefault();\n }\n else {\n event.stopPropagation();\n }\n }\n /** Handle custom key presses. */\n _handleKeydown(event) {\n if (this.disabled) {\n return;\n }\n switch (event.keyCode) {\n case DELETE:\n case BACKSPACE:\n // If we are removable, remove the focused chip\n this.remove();\n // Always prevent so page navigation does not occur\n event.preventDefault();\n break;\n case SPACE:\n // If we are selectable, toggle the focused chip\n if (this.selectable) {\n this.toggleSelected(true);\n }\n // Always prevent space from scrolling the page since the list has focus\n event.preventDefault();\n break;\n }\n }\n _blur() {\n // When animations are enabled, Angular may end up removing the chip from the DOM a little\n // earlier than usual, causing it to be blurred and throwing off the logic in the chip list\n // that moves focus not the next item. To work around the issue, we defer marking the chip\n // as not focused until the next time the zone stabilizes.\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n this._ngZone.run(() => {\n this._hasFocus = false;\n this._onBlur.next({ chip: this });\n });\n });\n }\n _dispatchSelectionChange(isUserInput = false) {\n this.selectionChange.emit({\n source: this,\n isUserInput,\n selected: this._selected,\n });\n }\n}\nMatChip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChip, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatChip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChip, selector: \"mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]\", inputs: { color: \"color\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\", selected: \"selected\", value: \"value\", selectable: \"selectable\", disabled: \"disabled\", removable: \"removable\" }, outputs: { selectionChange: \"selectionChange\", destroyed: \"destroyed\", removed: \"removed\" }, host: { attributes: { \"role\": \"option\" }, listeners: { \"click\": \"_handleClick($event)\", \"keydown\": \"_handleKeydown($event)\", \"focus\": \"focus()\", \"blur\": \"_blur()\" }, properties: { \"attr.tabindex\": \"disabled ? null : tabIndex\", \"class.mat-chip-selected\": \"selected\", \"class.mat-chip-with-avatar\": \"avatar\", \"class.mat-chip-with-trailing-icon\": \"trailingIcon || removeIcon\", \"class.mat-chip-disabled\": \"disabled\", \"class._mat-animation-noopable\": \"_animationsDisabled\", \"attr.disabled\": \"disabled || null\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.aria-selected\": \"ariaSelected\" }, classAttribute: \"mat-chip mat-focus-indicator\" }, queries: [{ propertyName: \"avatar\", first: true, predicate: MAT_CHIP_AVATAR, descendants: true }, { propertyName: \"trailingIcon\", first: true, predicate: MAT_CHIP_TRAILING_ICON, descendants: true }, { propertyName: \"removeIcon\", first: true, predicate: MAT_CHIP_REMOVE, descendants: true }], exportAs: [\"matChip\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChip, decorators: [{\n type: Directive,\n args: [{\n selector: `mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]`,\n inputs: ['color', 'disableRipple', 'tabIndex'],\n exportAs: 'matChip',\n host: {\n 'class': 'mat-chip mat-focus-indicator',\n '[attr.tabindex]': 'disabled ? null : tabIndex',\n 'role': 'option',\n '[class.mat-chip-selected]': 'selected',\n '[class.mat-chip-with-avatar]': 'avatar',\n '[class.mat-chip-with-trailing-icon]': 'trailingIcon || removeIcon',\n '[class.mat-chip-disabled]': 'disabled',\n '[class._mat-animation-noopable]': '_animationsDisabled',\n '[attr.disabled]': 'disabled || null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-selected]': 'ariaSelected',\n '(click)': '_handleClick($event)',\n '(keydown)': '_handleKeydown($event)',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n }, propDecorators: { avatar: [{\n type: ContentChild,\n args: [MAT_CHIP_AVATAR]\n }], trailingIcon: [{\n type: ContentChild,\n args: [MAT_CHIP_TRAILING_ICON]\n }], removeIcon: [{\n type: ContentChild,\n args: [MAT_CHIP_REMOVE]\n }], selected: [{\n type: Input\n }], value: [{\n type: Input\n }], selectable: [{\n type: Input\n }], disabled: [{\n type: Input\n }], removable: [{\n type: Input\n }], selectionChange: [{\n type: Output\n }], destroyed: [{\n type: Output\n }], removed: [{\n type: Output\n }] } });\n/**\n * Applies proper (click) support and adds styling for use with the Material Design \"cancel\" icon\n * available at https://material.io/icons/#ic_cancel.\n *\n * Example:\n *\n * `<mat-chip>\n * <mat-icon matChipRemove>cancel</mat-icon>\n * </mat-chip>`\n *\n * You *may* use a custom icon, but you may need to override the `mat-chip-remove` positioning\n * styles to properly center the icon within the chip.\n */\nclass MatChipRemove {\n constructor(_parentChip, elementRef) {\n this._parentChip = _parentChip;\n if (elementRef.nativeElement.nodeName === 'BUTTON') {\n elementRef.nativeElement.setAttribute('type', 'button');\n }\n }\n /** Calls the parent chip's public `remove()` method if applicable. */\n _handleClick(event) {\n const parentChip = this._parentChip;\n if (parentChip.removable && !parentChip.disabled) {\n parentChip.remove();\n }\n // We need to stop event propagation because otherwise the event will bubble up to the\n // form field and cause the `onContainerClick` method to be invoked. This method would then\n // reset the focused chip that has been focused after chip removal. Usually the parent\n // the parent click listener of the `MatChip` would prevent propagation, but it can happen\n // that the chip is being removed before the event bubbles up.\n event.stopPropagation();\n }\n}\nMatChipRemove.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipRemove, deps: [{ token: MatChip }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatChipRemove.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChipRemove, selector: \"[matChipRemove]\", host: { listeners: { \"click\": \"_handleClick($event)\" }, classAttribute: \"mat-chip-remove mat-chip-trailing-icon\" }, providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipRemove, decorators: [{\n type: Directive,\n args: [{\n selector: '[matChipRemove]',\n host: {\n 'class': 'mat-chip-remove mat-chip-trailing-icon',\n '(click)': '_handleClick($event)',\n },\n providers: [{ provide: MAT_CHIP_REMOVE, useExisting: MatChipRemove }],\n }]\n }], ctorParameters: function () { return [{ type: MatChip }, { type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token to be used to override the default options for the chips module. */\nconst MAT_CHIPS_DEFAULT_OPTIONS = new InjectionToken('mat-chips-default-options');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Increasing integer for generating unique ids.\nlet nextUniqueId$1 = 0;\n/**\n * Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.\n * May be placed inside or outside of an `<mat-chip-list>`.\n */\nclass MatChipInput {\n constructor(_elementRef, _defaultOptions) {\n this._elementRef = _elementRef;\n this._defaultOptions = _defaultOptions;\n /** Whether the control is focused. */\n this.focused = false;\n this._addOnBlur = false;\n /**\n * The list of key codes that will trigger a chipEnd event.\n *\n * Defaults to `[ENTER]`.\n */\n this.separatorKeyCodes = this._defaultOptions.separatorKeyCodes;\n /** Emitted when a chip is to be added. */\n this.chipEnd = new EventEmitter();\n /** The input's placeholder text. */\n this.placeholder = '';\n /** Unique id for the input. */\n this.id = `mat-chip-list-input-${nextUniqueId$1++}`;\n this._disabled = false;\n this.inputElement = this._elementRef.nativeElement;\n }\n /** Register input for chip list */\n set chipList(value) {\n if (value) {\n this._chipList = value;\n this._chipList.registerInput(this);\n }\n }\n /**\n * Whether or not the chipEnd event will be emitted when the input is blurred.\n */\n get addOnBlur() {\n return this._addOnBlur;\n }\n set addOnBlur(value) {\n this._addOnBlur = coerceBooleanProperty(value);\n }\n /** Whether the input is disabled. */\n get disabled() {\n return this._disabled || (this._chipList && this._chipList.disabled);\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n /** Whether the input is empty. */\n get empty() {\n return !this.inputElement.value;\n }\n ngOnChanges() {\n this._chipList.stateChanges.next();\n }\n ngOnDestroy() {\n this.chipEnd.complete();\n }\n ngAfterContentInit() {\n this._focusLastChipOnBackspace = this.empty;\n }\n /** Utility method to make host definition/tests more clear. */\n _keydown(event) {\n if (event) {\n // Allow the user's focus to escape when they're tabbing forward. Note that we don't\n // want to do this when going backwards, because focus should go back to the first chip.\n if (event.keyCode === TAB && !hasModifierKey(event, 'shiftKey')) {\n this._chipList._allowFocusEscape();\n }\n // To prevent the user from accidentally deleting chips when pressing BACKSPACE continuously,\n // We focus the last chip on backspace only after the user has released the backspace button,\n // and the input is empty (see behaviour in _keyup)\n if (event.keyCode === BACKSPACE && this._focusLastChipOnBackspace) {\n this._chipList._keyManager.setLastItemActive();\n event.preventDefault();\n return;\n }\n else {\n this._focusLastChipOnBackspace = false;\n }\n }\n this._emitChipEnd(event);\n }\n /**\n * Pass events to the keyboard manager. Available here for tests.\n */\n _keyup(event) {\n // Allow user to move focus to chips next time he presses backspace\n if (!this._focusLastChipOnBackspace && event.keyCode === BACKSPACE && this.empty) {\n this._focusLastChipOnBackspace = true;\n event.preventDefault();\n }\n }\n /** Checks to see if the blur should emit the (chipEnd) event. */\n _blur() {\n if (this.addOnBlur) {\n this._emitChipEnd();\n }\n this.focused = false;\n // Blur the chip list if it is not focused\n if (!this._chipList.focused) {\n this._chipList._blur();\n }\n this._chipList.stateChanges.next();\n }\n _focus() {\n this.focused = true;\n this._focusLastChipOnBackspace = this.empty;\n this._chipList.stateChanges.next();\n }\n /** Checks to see if the (chipEnd) event needs to be emitted. */\n _emitChipEnd(event) {\n if (!this.inputElement.value && !!event) {\n this._chipList._keydown(event);\n }\n if (!event || this._isSeparatorKey(event)) {\n this.chipEnd.emit({\n input: this.inputElement,\n value: this.inputElement.value,\n chipInput: this,\n });\n event === null || event === void 0 ? void 0 : event.preventDefault();\n }\n }\n _onInput() {\n // Let chip list know whenever the value changes.\n this._chipList.stateChanges.next();\n }\n /** Focuses the input. */\n focus(options) {\n this.inputElement.focus(options);\n }\n /** Clears the input */\n clear() {\n this.inputElement.value = '';\n this._focusLastChipOnBackspace = true;\n }\n /** Checks whether a keycode is one of the configured separators. */\n _isSeparatorKey(event) {\n return !hasModifierKey(event) && new Set(this.separatorKeyCodes).has(event.keyCode);\n }\n}\nMatChipInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipInput, deps: [{ token: i0.ElementRef }, { token: MAT_CHIPS_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });\nMatChipInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChipInput, selector: \"input[matChipInputFor]\", inputs: { chipList: [\"matChipInputFor\", \"chipList\"], addOnBlur: [\"matChipInputAddOnBlur\", \"addOnBlur\"], separatorKeyCodes: [\"matChipInputSeparatorKeyCodes\", \"separatorKeyCodes\"], placeholder: \"placeholder\", id: \"id\", disabled: \"disabled\" }, outputs: { chipEnd: \"matChipInputTokenEnd\" }, host: { listeners: { \"keydown\": \"_keydown($event)\", \"keyup\": \"_keyup($event)\", \"blur\": \"_blur()\", \"focus\": \"_focus()\", \"input\": \"_onInput()\" }, properties: { \"id\": \"id\", \"attr.disabled\": \"disabled || null\", \"attr.placeholder\": \"placeholder || null\", \"attr.aria-invalid\": \"_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null\", \"attr.aria-required\": \"_chipList && _chipList.required || null\" }, classAttribute: \"mat-chip-input mat-input-element\" }, exportAs: [\"matChipInput\", \"matChipInputFor\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipInput, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[matChipInputFor]',\n exportAs: 'matChipInput, matChipInputFor',\n host: {\n 'class': 'mat-chip-input mat-input-element',\n '(keydown)': '_keydown($event)',\n '(keyup)': '_keyup($event)',\n '(blur)': '_blur()',\n '(focus)': '_focus()',\n '(input)': '_onInput()',\n '[id]': 'id',\n '[attr.disabled]': 'disabled || null',\n '[attr.placeholder]': 'placeholder || null',\n '[attr.aria-invalid]': '_chipList && _chipList.ngControl ? _chipList.ngControl.invalid : null',\n '[attr.aria-required]': '_chipList && _chipList.required || null',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_CHIPS_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { chipList: [{\n type: Input,\n args: ['matChipInputFor']\n }], addOnBlur: [{\n type: Input,\n args: ['matChipInputAddOnBlur']\n }], separatorKeyCodes: [{\n type: Input,\n args: ['matChipInputSeparatorKeyCodes']\n }], chipEnd: [{\n type: Output,\n args: ['matChipInputTokenEnd']\n }], placeholder: [{\n type: Input\n }], id: [{\n type: Input\n }], disabled: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatChipList.\n/** @docs-private */\nconst _MatChipListBase = mixinErrorState(class {\n constructor(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, \n /** @docs-private */\n ngControl) {\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n this.ngControl = ngControl;\n }\n});\n// Increasing integer for generating unique ids for chip-list components.\nlet nextUniqueId = 0;\n/** Change event object that is emitted when the chip list value has changed. */\nclass MatChipListChange {\n constructor(\n /** Chip list that emitted the event. */\n source, \n /** Value of the chip list when the event was emitted. */\n value) {\n this.source = source;\n this.value = value;\n }\n}\n/**\n * A material design chips component (named ChipList for its similarity to the List component).\n */\nclass MatChipList extends _MatChipListBase {\n constructor(_elementRef, _changeDetectorRef, _dir, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, ngControl) {\n super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._dir = _dir;\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n this.controlType = 'mat-chip-list';\n /**\n * When a chip is destroyed, we store the index of the destroyed chip until the chips\n * query list notifies about the update. This is necessary because we cannot determine an\n * appropriate chip that should receive focus until the array of chips updated completely.\n */\n this._lastDestroyedChipIndex = null;\n /** Subject that emits when the component has been destroyed. */\n this._destroyed = new Subject();\n /** Uid of the chip list */\n this._uid = `mat-chip-list-${nextUniqueId++}`;\n /** Tab index for the chip list. */\n this._tabIndex = 0;\n /**\n * User defined tab index.\n * When it is not null, use user defined tab index. Otherwise use _tabIndex\n */\n this._userTabIndex = null;\n /** Function when touched */\n this._onTouched = () => { };\n /** Function when changed */\n this._onChange = () => { };\n this._multiple = false;\n this._compareWith = (o1, o2) => o1 === o2;\n this._disabled = false;\n /** Orientation of the chip list. */\n this.ariaOrientation = 'horizontal';\n this._selectable = true;\n /** Event emitted when the selected chip list value has been changed by the user. */\n this.change = new EventEmitter();\n /**\n * Event that emits whenever the raw value of the chip-list changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n this.valueChange = new EventEmitter();\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n /** The array of selected chips inside chip list. */\n get selected() {\n var _a, _b;\n return this.multiple ? ((_a = this._selectionModel) === null || _a === void 0 ? void 0 : _a.selected) || [] : (_b = this._selectionModel) === null || _b === void 0 ? void 0 : _b.selected[0];\n }\n /** The ARIA role applied to the chip list. */\n get role() {\n return this.empty ? null : 'listbox';\n }\n /** Whether the user should be allowed to select multiple chips. */\n get multiple() {\n return this._multiple;\n }\n set multiple(value) {\n this._multiple = coerceBooleanProperty(value);\n this._syncChipsState();\n }\n /**\n * A function to compare the option values with the selected values. The first argument\n * is a value from an option. The second is a value from the selection. A boolean\n * should be returned.\n */\n get compareWith() {\n return this._compareWith;\n }\n set compareWith(fn) {\n this._compareWith = fn;\n if (this._selectionModel) {\n // A different comparator means the selection could change.\n this._initializeSelection();\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get value() {\n return this._value;\n }\n set value(value) {\n this.writeValue(value);\n this._value = value;\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get id() {\n return this._chipInput ? this._chipInput.id : this._uid;\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get required() {\n var _a, _b, _c, _d;\n return (_d = (_a = this._required) !== null && _a !== void 0 ? _a : (_c = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.control) === null || _c === void 0 ? void 0 : _c.hasValidator(Validators.required)) !== null && _d !== void 0 ? _d : false;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get placeholder() {\n return this._chipInput ? this._chipInput.placeholder : this._placeholder;\n }\n set placeholder(value) {\n this._placeholder = value;\n this.stateChanges.next();\n }\n /** Whether any chips or the matChipInput inside of this chip-list has focus. */\n get focused() {\n return (this._chipInput && this._chipInput.focused) || this._hasFocusedChip();\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get empty() {\n return (!this._chipInput || this._chipInput.empty) && (!this.chips || this.chips.length === 0);\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get shouldLabelFloat() {\n return !this.empty || this.focused;\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get disabled() {\n return this.ngControl ? !!this.ngControl.disabled : this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n this._syncChipsState();\n }\n /**\n * Whether or not this chip list is selectable. When a chip list is not selectable,\n * the selected states for all the chips inside the chip list are always ignored.\n */\n get selectable() {\n return this._selectable;\n }\n set selectable(value) {\n this._selectable = coerceBooleanProperty(value);\n if (this.chips) {\n this.chips.forEach(chip => (chip.chipListSelectable = this._selectable));\n }\n }\n set tabIndex(value) {\n this._userTabIndex = value;\n this._tabIndex = value;\n }\n /** Combined stream of all of the child chips' selection change events. */\n get chipSelectionChanges() {\n return merge(...this.chips.map(chip => chip.selectionChange));\n }\n /** Combined stream of all of the child chips' focus change events. */\n get chipFocusChanges() {\n return merge(...this.chips.map(chip => chip._onFocus));\n }\n /** Combined stream of all of the child chips' blur change events. */\n get chipBlurChanges() {\n return merge(...this.chips.map(chip => chip._onBlur));\n }\n /** Combined stream of all of the child chips' remove change events. */\n get chipRemoveChanges() {\n return merge(...this.chips.map(chip => chip.destroyed));\n }\n ngAfterContentInit() {\n this._keyManager = new FocusKeyManager(this.chips)\n .withWrap()\n .withVerticalOrientation()\n .withHomeAndEnd()\n .withHorizontalOrientation(this._dir ? this._dir.value : 'ltr');\n if (this._dir) {\n this._dir.change\n .pipe(takeUntil(this._destroyed))\n .subscribe(dir => this._keyManager.withHorizontalOrientation(dir));\n }\n this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._allowFocusEscape();\n });\n // When the list changes, re-subscribe\n this.chips.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {\n if (this.disabled) {\n // Since this happens after the content has been\n // checked, we need to defer it to the next tick.\n Promise.resolve().then(() => {\n this._syncChipsState();\n });\n }\n this._resetChips();\n // Reset chips selected/deselected status\n this._initializeSelection();\n // Check to see if we need to update our tab index\n this._updateTabIndex();\n // Check to see if we have a destroyed chip and need to refocus\n this._updateFocusForDestroyedChips();\n this.stateChanges.next();\n });\n }\n ngOnInit() {\n this._selectionModel = new SelectionModel(this.multiple, undefined, false);\n this.stateChanges.next();\n }\n ngDoCheck() {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n if (this.ngControl.disabled !== this._disabled) {\n this.disabled = !!this.ngControl.disabled;\n }\n }\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this.stateChanges.complete();\n this._dropSubscriptions();\n }\n /** Associates an HTML input element with this chip list. */\n registerInput(inputElement) {\n this._chipInput = inputElement;\n // We use this attribute to match the chip list to its input in test harnesses.\n // Set the attribute directly here to avoid \"changed after checked\" errors.\n this._elementRef.nativeElement.setAttribute('data-mat-chip-input', inputElement.id);\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n setDescribedByIds(ids) {\n this._ariaDescribedby = ids.join(' ');\n }\n // Implemented as part of ControlValueAccessor.\n writeValue(value) {\n if (this.chips) {\n this._setSelectionByValue(value, false);\n }\n }\n // Implemented as part of ControlValueAccessor.\n registerOnChange(fn) {\n this._onChange = fn;\n }\n // Implemented as part of ControlValueAccessor.\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n // Implemented as part of ControlValueAccessor.\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this.stateChanges.next();\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n onContainerClick(event) {\n if (!this._originatesFromChip(event)) {\n this.focus();\n }\n }\n /**\n * Focuses the first non-disabled chip in this chip list, or the associated input when there\n * are no eligible chips.\n */\n focus(options) {\n if (this.disabled) {\n return;\n }\n // TODO: ARIA says this should focus the first `selected` chip if any are selected.\n // Focus on first element if there's no chipInput inside chip-list\n if (this._chipInput && this._chipInput.focused) {\n // do nothing\n }\n else if (this.chips.length > 0) {\n this._keyManager.setFirstItemActive();\n this.stateChanges.next();\n }\n else {\n this._focusInput(options);\n this.stateChanges.next();\n }\n }\n /** Attempt to focus an input if we have one. */\n _focusInput(options) {\n if (this._chipInput) {\n this._chipInput.focus(options);\n }\n }\n /**\n * Pass events to the keyboard manager. Available here for tests.\n */\n _keydown(event) {\n const target = event.target;\n if (target && target.classList.contains('mat-chip')) {\n this._keyManager.onKeydown(event);\n this.stateChanges.next();\n }\n }\n /**\n * Check the tab index as you should not be allowed to focus an empty list.\n */\n _updateTabIndex() {\n // If we have 0 chips, we should not allow keyboard focus\n this._tabIndex = this._userTabIndex || (this.chips.length === 0 ? -1 : 0);\n }\n /**\n * If the amount of chips changed, we need to update the\n * key manager state and focus the next closest chip.\n */\n _updateFocusForDestroyedChips() {\n // Move focus to the closest chip. If no other chips remain, focus the chip-list itself.\n if (this._lastDestroyedChipIndex != null) {\n if (this.chips.length) {\n const newChipIndex = Math.min(this._lastDestroyedChipIndex, this.chips.length - 1);\n this._keyManager.setActiveItem(newChipIndex);\n }\n else {\n this.focus();\n }\n }\n this._lastDestroyedChipIndex = null;\n }\n /**\n * Utility to ensure all indexes are valid.\n *\n * @param index The index to be checked.\n * @returns True if the index is valid for our list of chips.\n */\n _isValidIndex(index) {\n return index >= 0 && index < this.chips.length;\n }\n _setSelectionByValue(value, isUserInput = true) {\n this._clearSelection();\n this.chips.forEach(chip => chip.deselect());\n if (Array.isArray(value)) {\n value.forEach(currentValue => this._selectValue(currentValue, isUserInput));\n this._sortValues();\n }\n else {\n const correspondingChip = this._selectValue(value, isUserInput);\n // Shift focus to the active item. Note that we shouldn't do this in multiple\n // mode, because we don't know what chip the user interacted with last.\n if (correspondingChip) {\n if (isUserInput) {\n this._keyManager.setActiveItem(correspondingChip);\n }\n }\n }\n }\n /**\n * Finds and selects the chip based on its value.\n * @returns Chip that has the corresponding value.\n */\n _selectValue(value, isUserInput = true) {\n const correspondingChip = this.chips.find(chip => {\n return chip.value != null && this._compareWith(chip.value, value);\n });\n if (correspondingChip) {\n isUserInput ? correspondingChip.selectViaInteraction() : correspondingChip.select();\n this._selectionModel.select(correspondingChip);\n }\n return correspondingChip;\n }\n _initializeSelection() {\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n Promise.resolve().then(() => {\n if (this.ngControl || this._value) {\n this._setSelectionByValue(this.ngControl ? this.ngControl.value : this._value, false);\n this.stateChanges.next();\n }\n });\n }\n /**\n * Deselects every chip in the list.\n * @param skip Chip that should not be deselected.\n */\n _clearSelection(skip) {\n this._selectionModel.clear();\n this.chips.forEach(chip => {\n if (chip !== skip) {\n chip.deselect();\n }\n });\n this.stateChanges.next();\n }\n /**\n * Sorts the model values, ensuring that they keep the same\n * order that they have in the panel.\n */\n _sortValues() {\n if (this._multiple) {\n this._selectionModel.clear();\n this.chips.forEach(chip => {\n if (chip.selected) {\n this._selectionModel.select(chip);\n }\n });\n this.stateChanges.next();\n }\n }\n /** Emits change event to set the model value. */\n _propagateChanges(fallbackValue) {\n let valueToEmit = null;\n if (Array.isArray(this.selected)) {\n valueToEmit = this.selected.map(chip => chip.value);\n }\n else {\n valueToEmit = this.selected ? this.selected.value : fallbackValue;\n }\n this._value = valueToEmit;\n this.change.emit(new MatChipListChange(this, valueToEmit));\n this.valueChange.emit(valueToEmit);\n this._onChange(valueToEmit);\n this._changeDetectorRef.markForCheck();\n }\n /** When blurred, mark the field as touched when focus moved outside the chip list. */\n _blur() {\n if (!this._hasFocusedChip()) {\n this._keyManager.setActiveItem(-1);\n }\n if (!this.disabled) {\n if (this._chipInput) {\n // If there's a chip input, we should check whether the focus moved to chip input.\n // If the focus is not moved to chip input, mark the field as touched. If the focus moved\n // to chip input, do nothing.\n // Timeout is needed to wait for the focus() event trigger on chip input.\n setTimeout(() => {\n if (!this.focused) {\n this._markAsTouched();\n }\n });\n }\n else {\n // If there's no chip input, then mark the field as touched.\n this._markAsTouched();\n }\n }\n }\n /** Mark the field as touched */\n _markAsTouched() {\n this._onTouched();\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n }\n /**\n * Removes the `tabindex` from the chip list and resets it back afterwards, allowing the\n * user to tab out of it. This prevents the list from capturing focus and redirecting\n * it back to the first chip, creating a focus trap, if it user tries to tab away.\n */\n _allowFocusEscape() {\n if (this._tabIndex !== -1) {\n this._tabIndex = -1;\n setTimeout(() => {\n this._tabIndex = this._userTabIndex || 0;\n this._changeDetectorRef.markForCheck();\n });\n }\n }\n _resetChips() {\n this._dropSubscriptions();\n this._listenToChipsFocus();\n this._listenToChipsSelection();\n this._listenToChipsRemoved();\n }\n _dropSubscriptions() {\n if (this._chipFocusSubscription) {\n this._chipFocusSubscription.unsubscribe();\n this._chipFocusSubscription = null;\n }\n if (this._chipBlurSubscription) {\n this._chipBlurSubscription.unsubscribe();\n this._chipBlurSubscription = null;\n }\n if (this._chipSelectionSubscription) {\n this._chipSelectionSubscription.unsubscribe();\n this._chipSelectionSubscription = null;\n }\n if (this._chipRemoveSubscription) {\n this._chipRemoveSubscription.unsubscribe();\n this._chipRemoveSubscription = null;\n }\n }\n /** Listens to user-generated selection events on each chip. */\n _listenToChipsSelection() {\n this._chipSelectionSubscription = this.chipSelectionChanges.subscribe(event => {\n event.source.selected\n ? this._selectionModel.select(event.source)\n : this._selectionModel.deselect(event.source);\n // For single selection chip list, make sure the deselected value is unselected.\n if (!this.multiple) {\n this.chips.forEach(chip => {\n if (!this._selectionModel.isSelected(chip) && chip.selected) {\n chip.deselect();\n }\n });\n }\n if (event.isUserInput) {\n this._propagateChanges();\n }\n });\n }\n /** Listens to user-generated selection events on each chip. */\n _listenToChipsFocus() {\n this._chipFocusSubscription = this.chipFocusChanges.subscribe(event => {\n let chipIndex = this.chips.toArray().indexOf(event.chip);\n if (this._isValidIndex(chipIndex)) {\n this._keyManager.updateActiveItem(chipIndex);\n }\n this.stateChanges.next();\n });\n this._chipBlurSubscription = this.chipBlurChanges.subscribe(() => {\n this._blur();\n this.stateChanges.next();\n });\n }\n _listenToChipsRemoved() {\n this._chipRemoveSubscription = this.chipRemoveChanges.subscribe(event => {\n const chip = event.chip;\n const chipIndex = this.chips.toArray().indexOf(event.chip);\n // In case the chip that will be removed is currently focused, we temporarily store\n // the index in order to be able to determine an appropriate sibling chip that will\n // receive focus.\n if (this._isValidIndex(chipIndex) && chip._hasFocus) {\n this._lastDestroyedChipIndex = chipIndex;\n }\n });\n }\n /** Checks whether an event comes from inside a chip element. */\n _originatesFromChip(event) {\n let currentElement = event.target;\n while (currentElement && currentElement !== this._elementRef.nativeElement) {\n if (currentElement.classList.contains('mat-chip')) {\n return true;\n }\n currentElement = currentElement.parentElement;\n }\n return false;\n }\n /** Checks whether any of the chips is focused. */\n _hasFocusedChip() {\n return this.chips && this.chips.some(chip => chip._hasFocus);\n }\n /** Syncs the list's state with the individual chips. */\n _syncChipsState() {\n if (this.chips) {\n this.chips.forEach(chip => {\n chip._chipListDisabled = this._disabled;\n chip._chipListMultiple = this.multiple;\n });\n }\n }\n}\nMatChipList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipList, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Directionality, optional: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component });\nMatChipList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatChipList, selector: \"mat-chip-list\", inputs: { errorStateMatcher: \"errorStateMatcher\", multiple: \"multiple\", compareWith: \"compareWith\", value: \"value\", required: \"required\", placeholder: \"placeholder\", disabled: \"disabled\", ariaOrientation: [\"aria-orientation\", \"ariaOrientation\"], selectable: \"selectable\", tabIndex: \"tabIndex\" }, outputs: { change: \"change\", valueChange: \"valueChange\" }, host: { listeners: { \"focus\": \"focus()\", \"blur\": \"_blur()\", \"keydown\": \"_keydown($event)\" }, properties: { \"attr.tabindex\": \"disabled ? null : _tabIndex\", \"attr.aria-describedby\": \"_ariaDescribedby || null\", \"attr.aria-required\": \"role ? required : null\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.aria-invalid\": \"errorState\", \"attr.aria-multiselectable\": \"multiple\", \"attr.role\": \"role\", \"class.mat-chip-list-disabled\": \"disabled\", \"class.mat-chip-list-invalid\": \"errorState\", \"class.mat-chip-list-required\": \"required\", \"attr.aria-orientation\": \"ariaOrientation\", \"id\": \"_uid\" }, classAttribute: \"mat-chip-list\" }, providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }], queries: [{ propertyName: \"chips\", predicate: MatChip, descendants: true }], exportAs: [\"matChipList\"], usesInheritance: true, ngImport: i0, template: `<div class=\"mat-chip-list-wrapper\"><ng-content></ng-content></div>`, isInline: true, styles: [\".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:\\\"\\\";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipList, decorators: [{\n type: Component,\n args: [{ selector: 'mat-chip-list', template: `<div class=\"mat-chip-list-wrapper\"><ng-content></ng-content></div>`, exportAs: 'matChipList', host: {\n '[attr.tabindex]': 'disabled ? null : _tabIndex',\n '[attr.aria-describedby]': '_ariaDescribedby || null',\n '[attr.aria-required]': 'role ? required : null',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-invalid]': 'errorState',\n '[attr.aria-multiselectable]': 'multiple',\n '[attr.role]': 'role',\n '[class.mat-chip-list-disabled]': 'disabled',\n '[class.mat-chip-list-invalid]': 'errorState',\n '[class.mat-chip-list-required]': 'required',\n '[attr.aria-orientation]': 'ariaOrientation',\n 'class': 'mat-chip-list',\n '(focus)': 'focus()',\n '(blur)': '_blur()',\n '(keydown)': '_keydown($event)',\n '[id]': '_uid',\n }, providers: [{ provide: MatFormFieldControl, useExisting: MatChipList }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:\\\"\\\";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i2.NgForm, decorators: [{\n type: Optional\n }] }, { type: i2.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i3.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }];\n }, propDecorators: { errorStateMatcher: [{\n type: Input\n }], multiple: [{\n type: Input\n }], compareWith: [{\n type: Input\n }], value: [{\n type: Input\n }], required: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], disabled: [{\n type: Input\n }], ariaOrientation: [{\n type: Input,\n args: ['aria-orientation']\n }], selectable: [{\n type: Input\n }], tabIndex: [{\n type: Input\n }], change: [{\n type: Output\n }], valueChange: [{\n type: Output\n }], chips: [{\n type: ContentChildren,\n args: [MatChip, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst CHIP_DECLARATIONS = [\n MatChipList,\n MatChip,\n MatChipInput,\n MatChipRemove,\n MatChipAvatar,\n MatChipTrailingIcon,\n];\nclass MatChipsModule {\n}\nMatChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipsModule, declarations: [MatChipList,\n MatChip,\n MatChipInput,\n MatChipRemove,\n MatChipAvatar,\n MatChipTrailingIcon], imports: [MatCommonModule], exports: [MatChipList,\n MatChip,\n MatChipInput,\n MatChipRemove,\n MatChipAvatar,\n MatChipTrailingIcon] });\nMatChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipsModule, providers: [\n ErrorStateMatcher,\n {\n provide: MAT_CHIPS_DEFAULT_OPTIONS,\n useValue: {\n separatorKeyCodes: [ENTER],\n },\n },\n ], imports: [[MatCommonModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatChipsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: CHIP_DECLARATIONS,\n declarations: CHIP_DECLARATIONS,\n providers: [\n ErrorStateMatcher,\n {\n provide: MAT_CHIPS_DEFAULT_OPTIONS,\n useValue: {\n separatorKeyCodes: [ENTER],\n },\n },\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_CHIPS_DEFAULT_OPTIONS, MAT_CHIP_AVATAR, MAT_CHIP_REMOVE, MAT_CHIP_TRAILING_ICON, MatChip, MatChipAvatar, MatChipInput, MatChipList, MatChipListChange, MatChipRemove, MatChipSelectionChange, MatChipTrailingIcon, MatChipsModule };\n","import * as i1 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions, PlatformModule } from '@angular/cdk/platform';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, Directive, Output, Optional, Inject, Input, NgModule } from '@angular/core';\nimport { coerceElement, coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { EMPTY, Subject, fromEvent } from 'rxjs';\nimport { auditTime, takeUntil } from 'rxjs/operators';\nimport { DOCUMENT } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Options to pass to the animationstart listener. */\nconst listenerOptions = normalizePassiveListenerOptions({ passive: true });\n/**\n * An injectable service that can be used to monitor the autofill state of an input.\n * Based on the following blog post:\n * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7\n */\nclass AutofillMonitor {\n constructor(_platform, _ngZone) {\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._monitoredElements = new Map();\n }\n monitor(elementOrRef) {\n if (!this._platform.isBrowser) {\n return EMPTY;\n }\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n if (info) {\n return info.subject;\n }\n const result = new Subject();\n const cssClass = 'cdk-text-field-autofilled';\n const listener = ((event) => {\n // Animation events fire on initial element render, we check for the presence of the autofill\n // CSS class to make sure this is a real change in state, not just the initial render before\n // we fire off events.\n if (event.animationName === 'cdk-text-field-autofill-start' &&\n !element.classList.contains(cssClass)) {\n element.classList.add(cssClass);\n this._ngZone.run(() => result.next({ target: event.target, isAutofilled: true }));\n }\n else if (event.animationName === 'cdk-text-field-autofill-end' &&\n element.classList.contains(cssClass)) {\n element.classList.remove(cssClass);\n this._ngZone.run(() => result.next({ target: event.target, isAutofilled: false }));\n }\n });\n this._ngZone.runOutsideAngular(() => {\n element.addEventListener('animationstart', listener, listenerOptions);\n element.classList.add('cdk-text-field-autofill-monitored');\n });\n this._monitoredElements.set(element, {\n subject: result,\n unlisten: () => {\n element.removeEventListener('animationstart', listener, listenerOptions);\n },\n });\n return result;\n }\n stopMonitoring(elementOrRef) {\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n if (info) {\n info.unlisten();\n info.subject.complete();\n element.classList.remove('cdk-text-field-autofill-monitored');\n element.classList.remove('cdk-text-field-autofilled');\n this._monitoredElements.delete(element);\n }\n }\n ngOnDestroy() {\n this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));\n }\n}\nAutofillMonitor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AutofillMonitor, deps: [{ token: i1.Platform }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\nAutofillMonitor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AutofillMonitor, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: AutofillMonitor, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () { return [{ type: i1.Platform }, { type: i0.NgZone }]; } });\n/** A directive that can be used to monitor the autofill state of an input. */\nclass CdkAutofill {\n constructor(_elementRef, _autofillMonitor) {\n this._elementRef = _elementRef;\n this._autofillMonitor = _autofillMonitor;\n /** Emits when the autofill state of the element changes. */\n this.cdkAutofill = new EventEmitter();\n }\n ngOnInit() {\n this._autofillMonitor\n .monitor(this._elementRef)\n .subscribe(event => this.cdkAutofill.emit(event));\n }\n ngOnDestroy() {\n this._autofillMonitor.stopMonitoring(this._elementRef);\n }\n}\nCdkAutofill.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAutofill, deps: [{ token: i0.ElementRef }, { token: AutofillMonitor }], target: i0.ɵɵFactoryTarget.Directive });\nCdkAutofill.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkAutofill, selector: \"[cdkAutofill]\", outputs: { cdkAutofill: \"cdkAutofill\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAutofill, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkAutofill]',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AutofillMonitor }]; }, propDecorators: { cdkAutofill: [{\n type: Output\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Directive to automatically resize a textarea to fit its content. */\nclass CdkTextareaAutosize {\n constructor(_elementRef, _platform, _ngZone, \n /** @breaking-change 11.0.0 make document required */\n document) {\n this._elementRef = _elementRef;\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._destroyed = new Subject();\n this._enabled = true;\n /**\n * Value of minRows as of last resize. If the minRows has decreased, the\n * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight\n * does not have the same problem because it does not affect the textarea's scrollHeight.\n */\n this._previousMinRows = -1;\n this._isViewInited = false;\n /** Handles `focus` and `blur` events. */\n this._handleFocusEvent = (event) => {\n this._hasFocus = event.type === 'focus';\n };\n this._document = document;\n this._textareaElement = this._elementRef.nativeElement;\n }\n /** Minimum amount of rows in the textarea. */\n get minRows() {\n return this._minRows;\n }\n set minRows(value) {\n this._minRows = coerceNumberProperty(value);\n this._setMinHeight();\n }\n /** Maximum amount of rows in the textarea. */\n get maxRows() {\n return this._maxRows;\n }\n set maxRows(value) {\n this._maxRows = coerceNumberProperty(value);\n this._setMaxHeight();\n }\n /** Whether autosizing is enabled or not */\n get enabled() {\n return this._enabled;\n }\n set enabled(value) {\n value = coerceBooleanProperty(value);\n // Only act if the actual value changed. This specifically helps to not run\n // resizeToFitContent too early (i.e. before ngAfterViewInit)\n if (this._enabled !== value) {\n (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();\n }\n }\n get placeholder() {\n return this._textareaElement.placeholder;\n }\n set placeholder(value) {\n this._cachedPlaceholderHeight = undefined;\n this._textareaElement.placeholder = value;\n this._cacheTextareaPlaceholderHeight();\n }\n /** Sets the minimum height of the textarea as determined by minRows. */\n _setMinHeight() {\n const minHeight = this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;\n if (minHeight) {\n this._textareaElement.style.minHeight = minHeight;\n }\n }\n /** Sets the maximum height of the textarea as determined by maxRows. */\n _setMaxHeight() {\n const maxHeight = this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;\n if (maxHeight) {\n this._textareaElement.style.maxHeight = maxHeight;\n }\n }\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n // Remember the height which we started with in case autosizing is disabled\n this._initialHeight = this._textareaElement.style.height;\n this.resizeToFitContent();\n this._ngZone.runOutsideAngular(() => {\n const window = this._getWindow();\n fromEvent(window, 'resize')\n .pipe(auditTime(16), takeUntil(this._destroyed))\n .subscribe(() => this.resizeToFitContent(true));\n this._textareaElement.addEventListener('focus', this._handleFocusEvent);\n this._textareaElement.addEventListener('blur', this._handleFocusEvent);\n });\n this._isViewInited = true;\n this.resizeToFitContent(true);\n }\n }\n ngOnDestroy() {\n this._textareaElement.removeEventListener('focus', this._handleFocusEvent);\n this._textareaElement.removeEventListener('blur', this._handleFocusEvent);\n this._destroyed.next();\n this._destroyed.complete();\n }\n /**\n * Cache the height of a single-row textarea if it has not already been cached.\n *\n * We need to know how large a single \"row\" of a textarea is in order to apply minRows and\n * maxRows. For the initial version, we will assume that the height of a single line in the\n * textarea does not ever change.\n */\n _cacheTextareaLineHeight() {\n if (this._cachedLineHeight) {\n return;\n }\n // Use a clone element because we have to override some styles.\n let textareaClone = this._textareaElement.cloneNode(false);\n textareaClone.rows = 1;\n // Use `position: absolute` so that this doesn't cause a browser layout and use\n // `visibility: hidden` so that nothing is rendered. Clear any other styles that\n // would affect the height.\n textareaClone.style.position = 'absolute';\n textareaClone.style.visibility = 'hidden';\n textareaClone.style.border = 'none';\n textareaClone.style.padding = '0';\n textareaClone.style.height = '';\n textareaClone.style.minHeight = '';\n textareaClone.style.maxHeight = '';\n // In Firefox it happens that textarea elements are always bigger than the specified amount\n // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.\n // As a workaround that removes the extra space for the scrollbar, we can just set overflow\n // to hidden. This ensures that there is no invalid calculation of the line height.\n // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654\n textareaClone.style.overflow = 'hidden';\n this._textareaElement.parentNode.appendChild(textareaClone);\n this._cachedLineHeight = textareaClone.clientHeight;\n textareaClone.remove();\n // Min and max heights have to be re-calculated if the cached line height changes\n this._setMinHeight();\n this._setMaxHeight();\n }\n _measureScrollHeight() {\n const element = this._textareaElement;\n const previousMargin = element.style.marginBottom || '';\n const isFirefox = this._platform.FIREFOX;\n const needsMarginFiller = isFirefox && this._hasFocus;\n const measuringClass = isFirefox\n ? 'cdk-textarea-autosize-measuring-firefox'\n : 'cdk-textarea-autosize-measuring';\n // In some cases the page might move around while we're measuring the `textarea` on Firefox. We\n // work around it by assigning a temporary margin with the same height as the `textarea` so that\n // it occupies the same amount of space. See #23233.\n if (needsMarginFiller) {\n element.style.marginBottom = `${element.clientHeight}px`;\n }\n // Reset the textarea height to auto in order to shrink back to its default size.\n // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.\n element.classList.add(measuringClass);\n // The measuring class includes a 2px padding to workaround an issue with Chrome,\n // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).\n const scrollHeight = element.scrollHeight - 4;\n element.classList.remove(measuringClass);\n if (needsMarginFiller) {\n element.style.marginBottom = previousMargin;\n }\n return scrollHeight;\n }\n _cacheTextareaPlaceholderHeight() {\n if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {\n return;\n }\n if (!this.placeholder) {\n this._cachedPlaceholderHeight = 0;\n return;\n }\n const value = this._textareaElement.value;\n this._textareaElement.value = this._textareaElement.placeholder;\n this._cachedPlaceholderHeight = this._measureScrollHeight();\n this._textareaElement.value = value;\n }\n ngDoCheck() {\n if (this._platform.isBrowser) {\n this.resizeToFitContent();\n }\n }\n /**\n * Resize the textarea to fit its content.\n * @param force Whether to force a height recalculation. By default the height will be\n * recalculated only if the value changed since the last call.\n */\n resizeToFitContent(force = false) {\n // If autosizing is disabled, just skip everything else\n if (!this._enabled) {\n return;\n }\n this._cacheTextareaLineHeight();\n this._cacheTextareaPlaceholderHeight();\n // If we haven't determined the line-height yet, we know we're still hidden and there's no point\n // in checking the height of the textarea.\n if (!this._cachedLineHeight) {\n return;\n }\n const textarea = this._elementRef.nativeElement;\n const value = textarea.value;\n // Only resize if the value or minRows have changed since these calculations can be expensive.\n if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {\n return;\n }\n const scrollHeight = this._measureScrollHeight();\n const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);\n // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.\n textarea.style.height = `${height}px`;\n this._ngZone.runOutsideAngular(() => {\n if (typeof requestAnimationFrame !== 'undefined') {\n requestAnimationFrame(() => this._scrollToCaretPosition(textarea));\n }\n else {\n setTimeout(() => this._scrollToCaretPosition(textarea));\n }\n });\n this._previousValue = value;\n this._previousMinRows = this._minRows;\n }\n /**\n * Resets the textarea to its original size\n */\n reset() {\n // Do not try to change the textarea, if the initialHeight has not been determined yet\n // This might potentially remove styles when reset() is called before ngAfterViewInit\n if (this._initialHeight !== undefined) {\n this._textareaElement.style.height = this._initialHeight;\n }\n }\n _noopInputHandler() {\n // no-op handler that ensures we're running change detection on input events.\n }\n /** Access injected document if available or fallback to global document reference */\n _getDocument() {\n return this._document || document;\n }\n /** Use defaultView of injected document if available or fallback to global window reference */\n _getWindow() {\n const doc = this._getDocument();\n return doc.defaultView || window;\n }\n /**\n * Scrolls a textarea to the caret position. On Firefox resizing the textarea will\n * prevent it from scrolling to the caret position. We need to re-set the selection\n * in order for it to scroll to the proper position.\n */\n _scrollToCaretPosition(textarea) {\n const { selectionStart, selectionEnd } = textarea;\n // IE will throw an \"Unspecified error\" if we try to set the selection range after the\n // element has been removed from the DOM. Assert that the directive hasn't been destroyed\n // between the time we requested the animation frame and when it was executed.\n // Also note that we have to assert that the textarea is focused before we set the\n // selection range. Setting the selection range on a non-focused textarea will cause\n // it to receive focus on IE and Edge.\n if (!this._destroyed.isStopped && this._hasFocus) {\n textarea.setSelectionRange(selectionStart, selectionEnd);\n }\n }\n}\nCdkTextareaAutosize.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTextareaAutosize, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: i0.NgZone }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTextareaAutosize.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTextareaAutosize, selector: \"textarea[cdkTextareaAutosize]\", inputs: { minRows: [\"cdkAutosizeMinRows\", \"minRows\"], maxRows: [\"cdkAutosizeMaxRows\", \"maxRows\"], enabled: [\"cdkTextareaAutosize\", \"enabled\"], placeholder: \"placeholder\" }, host: { attributes: { \"rows\": \"1\" }, listeners: { \"input\": \"_noopInputHandler()\" }, classAttribute: \"cdk-textarea-autosize\" }, exportAs: [\"cdkTextareaAutosize\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTextareaAutosize, decorators: [{\n type: Directive,\n args: [{\n selector: 'textarea[cdkTextareaAutosize]',\n exportAs: 'cdkTextareaAutosize',\n host: {\n 'class': 'cdk-textarea-autosize',\n // Textarea elements that have the directive applied should have a single row by default.\n // Browsers normally show two rows by default and therefore this limits the minRows binding.\n 'rows': '1',\n '(input)': '_noopInputHandler()',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { minRows: [{\n type: Input,\n args: ['cdkAutosizeMinRows']\n }], maxRows: [{\n type: Input,\n args: ['cdkAutosizeMaxRows']\n }], enabled: [{\n type: Input,\n args: ['cdkTextareaAutosize']\n }], placeholder: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass TextFieldModule {\n}\nTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TextFieldModule, declarations: [CdkAutofill, CdkTextareaAutosize], imports: [PlatformModule], exports: [CdkAutofill, CdkTextareaAutosize] });\nTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TextFieldModule, imports: [[PlatformModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TextFieldModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [CdkAutofill, CdkTextareaAutosize],\n imports: [PlatformModule],\n exports: [CdkAutofill, CdkTextareaAutosize],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AutofillMonitor, CdkAutofill, CdkTextareaAutosize, TextFieldModule };\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i1 from '@angular/cdk/platform';\nimport { getSupportedInputTypes } from '@angular/cdk/platform';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Optional, Self, Inject, Input, NgModule } from '@angular/core';\nimport * as i2 from '@angular/forms';\nimport { Validators } from '@angular/forms';\nimport * as i3 from '@angular/material/core';\nimport { mixinErrorState, MatCommonModule, ErrorStateMatcher } from '@angular/material/core';\nimport * as i5 from '@angular/material/form-field';\nimport { MAT_FORM_FIELD, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { Subject } from 'rxjs';\nimport * as i4 from '@angular/cdk/text-field';\nimport { TextFieldModule } from '@angular/cdk/text-field';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nfunction getMatInputUnsupportedTypeError(type) {\n return Error(`Input type \"${type}\" isn't supported by matInput.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This token is used to inject the object whose value should be set into `MatInput`. If none is\n * provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide\n * themselves for this token, in order to make `MatInput` delegate the getting and setting of the\n * value to them.\n */\nconst MAT_INPUT_VALUE_ACCESSOR = new InjectionToken('MAT_INPUT_VALUE_ACCESSOR');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Invalid input type. Using one of these will throw an MatInputUnsupportedTypeError.\nconst MAT_INPUT_INVALID_TYPES = [\n 'button',\n 'checkbox',\n 'file',\n 'hidden',\n 'image',\n 'radio',\n 'range',\n 'reset',\n 'submit',\n];\nlet nextUniqueId = 0;\n// Boilerplate for applying mixins to MatInput.\n/** @docs-private */\nconst _MatInputBase = mixinErrorState(class {\n constructor(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, \n /** @docs-private */\n ngControl) {\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n this.ngControl = ngControl;\n }\n});\n/** Directive that allows a native input to work inside a `MatFormField`. */\nclass MatInput extends _MatInputBase {\n constructor(_elementRef, _platform, ngControl, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, inputValueAccessor, _autofillMonitor, ngZone, \n // TODO: Remove this once the legacy appearance has been removed. We only need\n // to inject the form-field for determining whether the placeholder has been promoted.\n _formField) {\n super(_defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);\n this._elementRef = _elementRef;\n this._platform = _platform;\n this._autofillMonitor = _autofillMonitor;\n this._formField = _formField;\n this._uid = `mat-input-${nextUniqueId++}`;\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n this.focused = false;\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n this.stateChanges = new Subject();\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n this.controlType = 'mat-input';\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n this.autofilled = false;\n this._disabled = false;\n this._type = 'text';\n this._readonly = false;\n this._neverEmptyInputTypes = [\n 'date',\n 'datetime',\n 'datetime-local',\n 'month',\n 'time',\n 'week',\n ].filter(t => getSupportedInputTypes().has(t));\n const element = this._elementRef.nativeElement;\n const nodeName = element.nodeName.toLowerCase();\n // If no input value accessor was explicitly specified, use the element as the input value\n // accessor.\n this._inputValueAccessor = inputValueAccessor || element;\n this._previousNativeValue = this.value;\n // Force setter to be called in case id was not specified.\n this.id = this.id;\n // On some versions of iOS the caret gets stuck in the wrong place when holding down the delete\n // key. In order to get around this we need to \"jiggle\" the caret loose. Since this bug only\n // exists on iOS, we only bother to install the listener on iOS.\n if (_platform.IOS) {\n ngZone.runOutsideAngular(() => {\n _elementRef.nativeElement.addEventListener('keyup', (event) => {\n const el = event.target;\n // Note: We specifically check for 0, rather than `!el.selectionStart`, because the two\n // indicate different things. If the value is 0, it means that the caret is at the start\n // of the input, whereas a value of `null` means that the input doesn't support\n // manipulating the selection range. Inputs that don't support setting the selection range\n // will throw an error so we want to avoid calling `setSelectionRange` on them. See:\n // https://html.spec.whatwg.org/multipage/input.html#do-not-apply\n if (!el.value && el.selectionStart === 0 && el.selectionEnd === 0) {\n // Note: Just setting `0, 0` doesn't fix the issue. Setting\n // `1, 1` fixes it for the first time that you type text and\n // then hold delete. Toggling to `1, 1` and then back to\n // `0, 0` seems to completely fix it.\n el.setSelectionRange(1, 1);\n el.setSelectionRange(0, 0);\n }\n });\n });\n }\n this._isServer = !this._platform.isBrowser;\n this._isNativeSelect = nodeName === 'select';\n this._isTextarea = nodeName === 'textarea';\n this._isInFormField = !!_formField;\n if (this._isNativeSelect) {\n this.controlType = element.multiple\n ? 'mat-native-select-multiple'\n : 'mat-native-select';\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get disabled() {\n if (this.ngControl && this.ngControl.disabled !== null) {\n return this.ngControl.disabled;\n }\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n // Browsers may not fire the blur event if the input is disabled too quickly.\n // Reset from here to ensure that the element doesn't become stuck.\n if (this.focused) {\n this.focused = false;\n this.stateChanges.next();\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get id() {\n return this._id;\n }\n set id(value) {\n this._id = value || this._uid;\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get required() {\n var _a, _b, _c, _d;\n return (_d = (_a = this._required) !== null && _a !== void 0 ? _a : (_c = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.control) === null || _c === void 0 ? void 0 : _c.hasValidator(Validators.required)) !== null && _d !== void 0 ? _d : false;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n }\n /** Input type of the element. */\n get type() {\n return this._type;\n }\n set type(value) {\n this._type = value || 'text';\n this._validateType();\n // When using Angular inputs, developers are no longer able to set the properties on the native\n // input element. To ensure that bindings for `type` work, we need to sync the setter\n // with the native property. Textarea elements don't support the type property or attribute.\n if (!this._isTextarea && getSupportedInputTypes().has(this._type)) {\n this._elementRef.nativeElement.type = this._type;\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get value() {\n return this._inputValueAccessor.value;\n }\n set value(value) {\n if (value !== this.value) {\n this._inputValueAccessor.value = value;\n this.stateChanges.next();\n }\n }\n /** Whether the element is readonly. */\n get readonly() {\n return this._readonly;\n }\n set readonly(value) {\n this._readonly = coerceBooleanProperty(value);\n }\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(event => {\n this.autofilled = event.isAutofilled;\n this.stateChanges.next();\n });\n }\n }\n ngOnChanges() {\n this.stateChanges.next();\n }\n ngOnDestroy() {\n this.stateChanges.complete();\n if (this._platform.isBrowser) {\n this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);\n }\n }\n ngDoCheck() {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n }\n // We need to dirty-check the native element's value, because there are some cases where\n // we won't be notified when it changes (e.g. the consumer isn't using forms or they're\n // updating the value using `emitEvent: false`).\n this._dirtyCheckNativeValue();\n // We need to dirty-check and set the placeholder attribute ourselves, because whether it's\n // present or not depends on a query which is prone to \"changed after checked\" errors.\n this._dirtyCheckPlaceholder();\n }\n /** Focuses the input. */\n focus(options) {\n this._elementRef.nativeElement.focus(options);\n }\n /** Callback for the cases where the focused state of the input changes. */\n _focusChanged(isFocused) {\n if (isFocused !== this.focused) {\n this.focused = isFocused;\n this.stateChanges.next();\n }\n }\n _onInput() {\n // This is a noop function and is used to let Angular know whenever the value changes.\n // Angular will run a new change detection each time the `input` event has been dispatched.\n // It's necessary that Angular recognizes the value change, because when floatingLabel\n // is set to false and Angular forms aren't used, the placeholder won't recognize the\n // value changes and will not disappear.\n // Listening to the input event wouldn't be necessary when the input is using the\n // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.\n }\n /** Does some manual dirty checking on the native input `placeholder` attribute. */\n _dirtyCheckPlaceholder() {\n var _a, _b;\n // If we're hiding the native placeholder, it should also be cleared from the DOM, otherwise\n // screen readers will read it out twice: once from the label and once from the attribute.\n // TODO: can be removed once we get rid of the `legacy` style for the form field, because it's\n // the only one that supports promoting the placeholder to a label.\n const placeholder = ((_b = (_a = this._formField) === null || _a === void 0 ? void 0 : _a._hideControlPlaceholder) === null || _b === void 0 ? void 0 : _b.call(_a)) ? null : this.placeholder;\n if (placeholder !== this._previousPlaceholder) {\n const element = this._elementRef.nativeElement;\n this._previousPlaceholder = placeholder;\n placeholder\n ? element.setAttribute('placeholder', placeholder)\n : element.removeAttribute('placeholder');\n }\n }\n /** Does some manual dirty checking on the native input `value` property. */\n _dirtyCheckNativeValue() {\n const newValue = this._elementRef.nativeElement.value;\n if (this._previousNativeValue !== newValue) {\n this._previousNativeValue = newValue;\n this.stateChanges.next();\n }\n }\n /** Make sure the input is a supported type. */\n _validateType() {\n if (MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1 &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatInputUnsupportedTypeError(this._type);\n }\n }\n /** Checks whether the input type is one of the types that are never empty. */\n _isNeverEmpty() {\n return this._neverEmptyInputTypes.indexOf(this._type) > -1;\n }\n /** Checks whether the input is invalid based on the native validation. */\n _isBadInput() {\n // The `validity` property won't be present on platform-server.\n let validity = this._elementRef.nativeElement.validity;\n return validity && validity.badInput;\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get empty() {\n return (!this._isNeverEmpty() &&\n !this._elementRef.nativeElement.value &&\n !this._isBadInput() &&\n !this.autofilled);\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get shouldLabelFloat() {\n if (this._isNativeSelect) {\n // For a single-selection `<select>`, the label should float when the selected option has\n // a non-empty display value. For a `<select multiple>`, the label *always* floats to avoid\n // overlapping the label with the options.\n const selectElement = this._elementRef.nativeElement;\n const firstOption = selectElement.options[0];\n // On most browsers the `selectedIndex` will always be 0, however on IE and Edge it'll be\n // -1 if the `value` is set to something, that isn't in the list of options, at a later point.\n return (this.focused ||\n selectElement.multiple ||\n !this.empty ||\n !!(selectElement.selectedIndex > -1 && firstOption && firstOption.label));\n }\n else {\n return this.focused || !this.empty;\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n setDescribedByIds(ids) {\n if (ids.length) {\n this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));\n }\n else {\n this._elementRef.nativeElement.removeAttribute('aria-describedby');\n }\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n onContainerClick() {\n // Do not re-focus the input element if the element is already focused. Otherwise it can happen\n // that someone clicks on a time input and the cursor resets to the \"hours\" field while the\n // \"minutes\" field was actually clicked. See: https://github.com/angular/components/issues/12849\n if (!this.focused) {\n this.focus();\n }\n }\n /** Whether the form control is a native select that is displayed inline. */\n _isInlineSelect() {\n const element = this._elementRef.nativeElement;\n return this._isNativeSelect && (element.multiple || element.size > 1);\n }\n}\nMatInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInput, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MAT_INPUT_VALUE_ACCESSOR, optional: true, self: true }, { token: i4.AutofillMonitor }, { token: i0.NgZone }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatInput, selector: \"input[matInput], textarea[matInput], select[matNativeControl],\\n input[matNativeControl], textarea[matNativeControl]\", inputs: { disabled: \"disabled\", id: \"id\", placeholder: \"placeholder\", required: \"required\", type: \"type\", errorStateMatcher: \"errorStateMatcher\", userAriaDescribedBy: [\"aria-describedby\", \"userAriaDescribedBy\"], value: \"value\", readonly: \"readonly\" }, host: { listeners: { \"focus\": \"_focusChanged(true)\", \"blur\": \"_focusChanged(false)\", \"input\": \"_onInput()\" }, properties: { \"class.mat-input-server\": \"_isServer\", \"attr.id\": \"id\", \"attr.data-placeholder\": \"placeholder\", \"disabled\": \"disabled\", \"required\": \"required\", \"attr.readonly\": \"readonly && !_isNativeSelect || null\", \"class.mat-native-select-inline\": \"_isInlineSelect()\", \"attr.aria-invalid\": \"(empty && required) ? null : errorState\", \"attr.aria-required\": \"required\" }, classAttribute: \"mat-input-element mat-form-field-autofill-control\" }, providers: [{ provide: MatFormFieldControl, useExisting: MatInput }], exportAs: [\"matInput\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInput, decorators: [{\n type: Directive,\n args: [{\n selector: `input[matInput], textarea[matInput], select[matNativeControl],\n input[matNativeControl], textarea[matNativeControl]`,\n exportAs: 'matInput',\n host: {\n /**\n * @breaking-change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor.\n */\n 'class': 'mat-input-element mat-form-field-autofill-control',\n '[class.mat-input-server]': '_isServer',\n // Native input properties that are overwritten by Angular inputs need to be synced with\n // the native input element. Otherwise property bindings for those don't work.\n '[attr.id]': 'id',\n // At the time of writing, we have a lot of customer tests that look up the input based on its\n // placeholder. Since we sometimes omit the placeholder attribute from the DOM to prevent screen\n // readers from reading it twice, we have to keep it somewhere in the DOM for the lookup.\n '[attr.data-placeholder]': 'placeholder',\n '[disabled]': 'disabled',\n '[required]': 'required',\n '[attr.readonly]': 'readonly && !_isNativeSelect || null',\n '[class.mat-native-select-inline]': '_isInlineSelect()',\n // Only mark the input as invalid for assistive technology if it has a value since the\n // state usually overlaps with `aria-required` when the input is empty and can be redundant.\n '[attr.aria-invalid]': '(empty && required) ? null : errorState',\n '[attr.aria-required]': 'required',\n '(focus)': '_focusChanged(true)',\n '(blur)': '_focusChanged(false)',\n '(input)': '_onInput()',\n },\n providers: [{ provide: MatFormFieldControl, useExisting: MatInput }],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: i2.NgControl, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }, { type: i2.NgForm, decorators: [{\n type: Optional\n }] }, { type: i2.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i3.ErrorStateMatcher }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Self\n }, {\n type: Inject,\n args: [MAT_INPUT_VALUE_ACCESSOR]\n }] }, { type: i4.AutofillMonitor }, { type: i0.NgZone }, { type: i5.MatFormField, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_FORM_FIELD]\n }] }];\n }, propDecorators: { disabled: [{\n type: Input\n }], id: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], required: [{\n type: Input\n }], type: [{\n type: Input\n }], errorStateMatcher: [{\n type: Input\n }], userAriaDescribedBy: [{\n type: Input,\n args: ['aria-describedby']\n }], value: [{\n type: Input\n }], readonly: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatInputModule {\n}\nMatInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInputModule, declarations: [MatInput], imports: [TextFieldModule, MatFormFieldModule, MatCommonModule], exports: [TextFieldModule,\n // We re-export the `MatFormFieldModule` since `MatInput` will almost always\n // be used together with `MatFormField`.\n MatFormFieldModule,\n MatInput] });\nMatInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInputModule, providers: [ErrorStateMatcher], imports: [[TextFieldModule, MatFormFieldModule, MatCommonModule], TextFieldModule,\n // We re-export the `MatFormFieldModule` since `MatInput` will almost always\n // be used together with `MatFormField`.\n MatFormFieldModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInputModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [MatInput],\n imports: [TextFieldModule, MatFormFieldModule, MatCommonModule],\n exports: [\n TextFieldModule,\n // We re-export the `MatFormFieldModule` since `MatInput` will almost always\n // be used together with `MatFormField`.\n MatFormFieldModule,\n MatInput,\n ],\n providers: [ErrorStateMatcher],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_INPUT_VALUE_ACCESSOR, MatInput, MatInputModule, getMatInputUnsupportedTypeError };\n","import * as i4 from '@angular/cdk/a11y';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport * as i9 from '@angular/cdk/overlay';\nimport { Overlay, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';\nimport * as i8 from '@angular/cdk/portal';\nimport { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Injectable, Optional, SkipSelf, InjectionToken, Inject, ViewChild, forwardRef, Directive, Attribute, ContentChild, InjectFlags, Self, TemplateRef, NgModule } from '@angular/core';\nimport * as i3 from '@angular/material/button';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i1$1 from '@angular/material/core';\nimport { DateAdapter, MAT_DATE_FORMATS, mixinColor, mixinErrorState, MatCommonModule } from '@angular/material/core';\nimport { Subject, Subscription, merge, of } from 'rxjs';\nimport { ESCAPE, hasModifierKey, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';\nimport { take, startWith, filter } from 'rxjs/operators';\nimport * as i2 from '@angular/cdk/bidi';\nimport { coerceBooleanProperty, coerceStringArray } from '@angular/cdk/coercion';\nimport { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';\nimport { trigger, transition, animate, keyframes, style, state } from '@angular/animations';\nimport * as i2$2 from '@angular/forms';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, NgControl } from '@angular/forms';\nimport * as i2$1 from '@angular/material/form-field';\nimport { MAT_FORM_FIELD, MatFormFieldControl } from '@angular/material/form-field';\nimport { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nfunction createMissingDateImplError(provider) {\n return Error(`MatDatepicker: No provider found for ${provider}. You must import one of the following ` +\n `modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a ` +\n `custom implementation.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An internal class that represents the data corresponding to a single calendar cell.\n * @docs-private\n */\nclass MatCalendarCell {\n constructor(value, displayValue, ariaLabel, enabled, cssClasses = {}, compareValue = value, rawValue) {\n this.value = value;\n this.displayValue = displayValue;\n this.ariaLabel = ariaLabel;\n this.enabled = enabled;\n this.cssClasses = cssClasses;\n this.compareValue = compareValue;\n this.rawValue = rawValue;\n }\n}\n/**\n * An internal component used to display calendar data in a table.\n * @docs-private\n */\nclass MatCalendarBody {\n constructor(_elementRef, _ngZone) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n /** The number of columns in the table. */\n this.numCols = 7;\n /** The cell number of the active cell in the table. */\n this.activeCell = 0;\n /** Whether a range is being selected. */\n this.isRange = false;\n /**\n * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be\n * maintained even as the table resizes.\n */\n this.cellAspectRatio = 1;\n /** Start of the preview range. */\n this.previewStart = null;\n /** End of the preview range. */\n this.previewEnd = null;\n /** Emits when a new value is selected. */\n this.selectedValueChange = new EventEmitter();\n /** Emits when the preview has changed as a result of a user action. */\n this.previewChange = new EventEmitter();\n /**\n * Event handler for when the user enters an element\n * inside the calendar body (e.g. by hovering in or focus).\n */\n this._enterHandler = (event) => {\n if (this._skipNextFocus && event.type === 'focus') {\n this._skipNextFocus = false;\n return;\n }\n // We only need to hit the zone when we're selecting a range.\n if (event.target && this.isRange) {\n const cell = this._getCellFromElement(event.target);\n if (cell) {\n this._ngZone.run(() => this.previewChange.emit({ value: cell.enabled ? cell : null, event }));\n }\n }\n };\n /**\n * Event handler for when the user's pointer leaves an element\n * inside the calendar body (e.g. by hovering out or blurring).\n */\n this._leaveHandler = (event) => {\n // We only need to hit the zone when we're selecting a range.\n if (this.previewEnd !== null && this.isRange) {\n // Only reset the preview end value when leaving cells. This looks better, because\n // we have a gap between the cells and the rows and we don't want to remove the\n // range just for it to show up again when the user moves a few pixels to the side.\n if (event.target && isTableCell(event.target)) {\n this._ngZone.run(() => this.previewChange.emit({ value: null, event }));\n }\n }\n };\n _ngZone.runOutsideAngular(() => {\n const element = _elementRef.nativeElement;\n element.addEventListener('mouseenter', this._enterHandler, true);\n element.addEventListener('focus', this._enterHandler, true);\n element.addEventListener('mouseleave', this._leaveHandler, true);\n element.addEventListener('blur', this._leaveHandler, true);\n });\n }\n /** Called when a cell is clicked. */\n _cellClicked(cell, event) {\n if (cell.enabled) {\n this.selectedValueChange.emit({ value: cell.value, event });\n }\n }\n /** Returns whether a cell should be marked as selected. */\n _isSelected(value) {\n return this.startValue === value || this.endValue === value;\n }\n ngOnChanges(changes) {\n const columnChanges = changes['numCols'];\n const { rows, numCols } = this;\n if (changes['rows'] || columnChanges) {\n this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;\n }\n if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {\n this._cellPadding = `${(50 * this.cellAspectRatio) / numCols}%`;\n }\n if (columnChanges || !this._cellWidth) {\n this._cellWidth = `${100 / numCols}%`;\n }\n }\n ngOnDestroy() {\n const element = this._elementRef.nativeElement;\n element.removeEventListener('mouseenter', this._enterHandler, true);\n element.removeEventListener('focus', this._enterHandler, true);\n element.removeEventListener('mouseleave', this._leaveHandler, true);\n element.removeEventListener('blur', this._leaveHandler, true);\n }\n /** Returns whether a cell is active. */\n _isActiveCell(rowIndex, colIndex) {\n let cellNumber = rowIndex * this.numCols + colIndex;\n // Account for the fact that the first row may not have as many cells.\n if (rowIndex) {\n cellNumber -= this._firstRowOffset;\n }\n return cellNumber == this.activeCell;\n }\n /** Focuses the active cell after the microtask queue is empty. */\n _focusActiveCell(movePreview = true) {\n this._ngZone.runOutsideAngular(() => {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n const activeCell = this._elementRef.nativeElement.querySelector('.mat-calendar-body-active');\n if (activeCell) {\n if (!movePreview) {\n this._skipNextFocus = true;\n }\n activeCell.focus();\n }\n });\n });\n }\n /** Gets whether a value is the start of the main range. */\n _isRangeStart(value) {\n return isStart(value, this.startValue, this.endValue);\n }\n /** Gets whether a value is the end of the main range. */\n _isRangeEnd(value) {\n return isEnd(value, this.startValue, this.endValue);\n }\n /** Gets whether a value is within the currently-selected range. */\n _isInRange(value) {\n return isInRange(value, this.startValue, this.endValue, this.isRange);\n }\n /** Gets whether a value is the start of the comparison range. */\n _isComparisonStart(value) {\n return isStart(value, this.comparisonStart, this.comparisonEnd);\n }\n /** Whether the cell is a start bridge cell between the main and comparison ranges. */\n _isComparisonBridgeStart(value, rowIndex, colIndex) {\n if (!this._isComparisonStart(value) || this._isRangeStart(value) || !this._isInRange(value)) {\n return false;\n }\n let previousCell = this.rows[rowIndex][colIndex - 1];\n if (!previousCell) {\n const previousRow = this.rows[rowIndex - 1];\n previousCell = previousRow && previousRow[previousRow.length - 1];\n }\n return previousCell && !this._isRangeEnd(previousCell.compareValue);\n }\n /** Whether the cell is an end bridge cell between the main and comparison ranges. */\n _isComparisonBridgeEnd(value, rowIndex, colIndex) {\n if (!this._isComparisonEnd(value) || this._isRangeEnd(value) || !this._isInRange(value)) {\n return false;\n }\n let nextCell = this.rows[rowIndex][colIndex + 1];\n if (!nextCell) {\n const nextRow = this.rows[rowIndex + 1];\n nextCell = nextRow && nextRow[0];\n }\n return nextCell && !this._isRangeStart(nextCell.compareValue);\n }\n /** Gets whether a value is the end of the comparison range. */\n _isComparisonEnd(value) {\n return isEnd(value, this.comparisonStart, this.comparisonEnd);\n }\n /** Gets whether a value is within the current comparison range. */\n _isInComparisonRange(value) {\n return isInRange(value, this.comparisonStart, this.comparisonEnd, this.isRange);\n }\n /**\n * Gets whether a value is the same as the start and end of the comparison range.\n * For context, the functions that we use to determine whether something is the start/end of\n * a range don't allow for the start and end to be on the same day, because we'd have to use\n * much more specific CSS selectors to style them correctly in all scenarios. This is fine for\n * the regular range, because when it happens, the selected styles take over and still show where\n * the range would've been, however we don't have these selected styles for a comparison range.\n * This function is used to apply a class that serves the same purpose as the one for selected\n * dates, but it only applies in the context of a comparison range.\n */\n _isComparisonIdentical(value) {\n // Note that we don't need to null check the start/end\n // here, because the `value` will always be defined.\n return this.comparisonStart === this.comparisonEnd && value === this.comparisonStart;\n }\n /** Gets whether a value is the start of the preview range. */\n _isPreviewStart(value) {\n return isStart(value, this.previewStart, this.previewEnd);\n }\n /** Gets whether a value is the end of the preview range. */\n _isPreviewEnd(value) {\n return isEnd(value, this.previewStart, this.previewEnd);\n }\n /** Gets whether a value is inside the preview range. */\n _isInPreview(value) {\n return isInRange(value, this.previewStart, this.previewEnd, this.isRange);\n }\n /** Finds the MatCalendarCell that corresponds to a DOM node. */\n _getCellFromElement(element) {\n let cell;\n if (isTableCell(element)) {\n cell = element;\n }\n else if (isTableCell(element.parentNode)) {\n cell = element.parentNode;\n }\n if (cell) {\n const row = cell.getAttribute('data-mat-row');\n const col = cell.getAttribute('data-mat-col');\n if (row && col) {\n return this.rows[parseInt(row)][parseInt(col)];\n }\n }\n return null;\n }\n}\nMatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendarBody, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nMatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCalendarBody, selector: \"[mat-calendar-body]\", inputs: { label: \"label\", rows: \"rows\", todayValue: \"todayValue\", startValue: \"startValue\", endValue: \"endValue\", labelMinRequiredCells: \"labelMinRequiredCells\", numCols: \"numCols\", activeCell: \"activeCell\", isRange: \"isRange\", cellAspectRatio: \"cellAspectRatio\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\", previewStart: \"previewStart\", previewEnd: \"previewEnd\" }, outputs: { selectedValueChange: \"selectedValueChange\", previewChange: \"previewChange\" }, host: { classAttribute: \"mat-calendar-body\" }, exportAs: [\"matCalendarBody\"], usesOnChanges: true, ngImport: i0, template: \"<!--\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\n-->\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\n <td class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"numCols\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{label}}\\n </td>\\n</tr>\\n\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\n <!--\\n This cell is purely decorative, but we can't put `aria-hidden` or `role=\\\"presentation\\\"` on it,\\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\\n table cells is maintained by setting the top and bottom padding as a percentage of the width\\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\n -->\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\n class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\n </td>\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\n role=\\\"gridcell\\\"\\n class=\\\"mat-calendar-body-cell\\\"\\n [ngClass]=\\\"item.cssClasses\\\"\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\n [attr.data-mat-row]=\\\"rowIndex\\\"\\n [attr.data-mat-col]=\\\"colIndex\\\"\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-range-start]=\\\"_isRangeStart(item.compareValue)\\\"\\n [class.mat-calendar-body-range-end]=\\\"_isRangeEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-range]=\\\"_isInRange(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-bridge-start]=\\\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-comparison-bridge-end]=\\\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-comparison-start]=\\\"_isComparisonStart(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-end]=\\\"_isComparisonEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-comparison-range]=\\\"_isInComparisonRange(item.compareValue)\\\"\\n [class.mat-calendar-body-preview-start]=\\\"_isPreviewStart(item.compareValue)\\\"\\n [class.mat-calendar-body-preview-end]=\\\"_isPreviewEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-preview]=\\\"_isInPreview(item.compareValue)\\\"\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\n [attr.aria-selected]=\\\"_isSelected(item.compareValue)\\\"\\n [attr.aria-current]=\\\"todayValue === item.compareValue ? 'date' : null\\\"\\n (click)=\\\"_cellClicked(item, $event)\\\"\\n [style.width]=\\\"_cellWidth\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n <div class=\\\"mat-calendar-body-cell-content mat-focus-indicator\\\"\\n [class.mat-calendar-body-selected]=\\\"_isSelected(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-identical]=\\\"_isComparisonIdentical(item.compareValue)\\\"\\n [class.mat-calendar-body-today]=\\\"todayValue === item.compareValue\\\">\\n {{item.displayValue}}\\n </div>\\n <div class=\\\"mat-calendar-body-cell-preview\\\"></div>\\n </td>\\n</tr>\\n\", styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\\\"\\\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\\n\"], directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendarBody, decorators: [{\n type: Component,\n args: [{ selector: '[mat-calendar-body]', host: {\n 'class': 'mat-calendar-body',\n }, exportAs: 'matCalendarBody', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<!--\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\n-->\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\n <td class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"numCols\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{label}}\\n </td>\\n</tr>\\n\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\n <!--\\n This cell is purely decorative, but we can't put `aria-hidden` or `role=\\\"presentation\\\"` on it,\\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\\n table cells is maintained by setting the top and bottom padding as a percentage of the width\\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\n -->\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\n class=\\\"mat-calendar-body-label\\\"\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\n </td>\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\n role=\\\"gridcell\\\"\\n class=\\\"mat-calendar-body-cell\\\"\\n [ngClass]=\\\"item.cssClasses\\\"\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\n [attr.data-mat-row]=\\\"rowIndex\\\"\\n [attr.data-mat-col]=\\\"colIndex\\\"\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-range-start]=\\\"_isRangeStart(item.compareValue)\\\"\\n [class.mat-calendar-body-range-end]=\\\"_isRangeEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-range]=\\\"_isInRange(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-bridge-start]=\\\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-comparison-bridge-end]=\\\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\\\"\\n [class.mat-calendar-body-comparison-start]=\\\"_isComparisonStart(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-end]=\\\"_isComparisonEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-comparison-range]=\\\"_isInComparisonRange(item.compareValue)\\\"\\n [class.mat-calendar-body-preview-start]=\\\"_isPreviewStart(item.compareValue)\\\"\\n [class.mat-calendar-body-preview-end]=\\\"_isPreviewEnd(item.compareValue)\\\"\\n [class.mat-calendar-body-in-preview]=\\\"_isInPreview(item.compareValue)\\\"\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\n [attr.aria-selected]=\\\"_isSelected(item.compareValue)\\\"\\n [attr.aria-current]=\\\"todayValue === item.compareValue ? 'date' : null\\\"\\n (click)=\\\"_cellClicked(item, $event)\\\"\\n [style.width]=\\\"_cellWidth\\\"\\n [style.paddingTop]=\\\"_cellPadding\\\"\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\n <div class=\\\"mat-calendar-body-cell-content mat-focus-indicator\\\"\\n [class.mat-calendar-body-selected]=\\\"_isSelected(item.compareValue)\\\"\\n [class.mat-calendar-body-comparison-identical]=\\\"_isComparisonIdentical(item.compareValue)\\\"\\n [class.mat-calendar-body-today]=\\\"todayValue === item.compareValue\\\">\\n {{item.displayValue}}\\n </div>\\n <div class=\\\"mat-calendar-body-cell-preview\\\"></div>\\n </td>\\n</tr>\\n\", styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:\\\"\\\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { label: [{\n type: Input\n }], rows: [{\n type: Input\n }], todayValue: [{\n type: Input\n }], startValue: [{\n type: Input\n }], endValue: [{\n type: Input\n }], labelMinRequiredCells: [{\n type: Input\n }], numCols: [{\n type: Input\n }], activeCell: [{\n type: Input\n }], isRange: [{\n type: Input\n }], cellAspectRatio: [{\n type: Input\n }], comparisonStart: [{\n type: Input\n }], comparisonEnd: [{\n type: Input\n }], previewStart: [{\n type: Input\n }], previewEnd: [{\n type: Input\n }], selectedValueChange: [{\n type: Output\n }], previewChange: [{\n type: Output\n }] } });\n/** Checks whether a node is a table cell element. */\nfunction isTableCell(node) {\n return node.nodeName === 'TD';\n}\n/** Checks whether a value is the start of a range. */\nfunction isStart(value, start, end) {\n return end !== null && start !== end && value < end && value === start;\n}\n/** Checks whether a value is the end of a range. */\nfunction isEnd(value, start, end) {\n return start !== null && start !== end && value >= start && value === end;\n}\n/** Checks whether a value is inside of a range. */\nfunction isInRange(value, start, end, rangeEnabled) {\n return (rangeEnabled &&\n start !== null &&\n end !== null &&\n start !== end &&\n value >= start &&\n value <= end);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** A class representing a range of dates. */\nclass DateRange {\n constructor(\n /** The start date of the range. */\n start, \n /** The end date of the range. */\n end) {\n this.start = start;\n this.end = end;\n }\n}\n/**\n * A selection model containing a date selection.\n * @docs-private\n */\nclass MatDateSelectionModel {\n constructor(\n /** The current selection. */\n selection, _adapter) {\n this.selection = selection;\n this._adapter = _adapter;\n this._selectionChanged = new Subject();\n /** Emits when the selection has changed. */\n this.selectionChanged = this._selectionChanged;\n this.selection = selection;\n }\n /**\n * Updates the current selection in the model.\n * @param value New selection that should be assigned.\n * @param source Object that triggered the selection change.\n */\n updateSelection(value, source) {\n const oldValue = this.selection;\n this.selection = value;\n this._selectionChanged.next({ selection: value, source, oldValue });\n }\n ngOnDestroy() {\n this._selectionChanged.complete();\n }\n _isValidDateInstance(date) {\n return this._adapter.isDateInstance(date) && this._adapter.isValid(date);\n }\n}\nMatDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateSelectionModel, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Injectable });\nMatDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateSelectionModel });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateSelectionModel, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: undefined }, { type: i1$1.DateAdapter }]; } });\n/**\n * A selection model that contains a single date.\n * @docs-private\n */\nclass MatSingleDateSelectionModel extends MatDateSelectionModel {\n constructor(adapter) {\n super(null, adapter);\n }\n /**\n * Adds a date to the current selection. In the case of a single date selection, the added date\n * simply overwrites the previous selection\n */\n add(date) {\n super.updateSelection(date, this);\n }\n /** Checks whether the current selection is valid. */\n isValid() {\n return this.selection != null && this._isValidDateInstance(this.selection);\n }\n /**\n * Checks whether the current selection is complete. In the case of a single date selection, this\n * is true if the current selection is not null.\n */\n isComplete() {\n return this.selection != null;\n }\n /** Clones the selection model. */\n clone() {\n const clone = new MatSingleDateSelectionModel(this._adapter);\n clone.updateSelection(this.selection, this);\n return clone;\n }\n}\nMatSingleDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSingleDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nMatSingleDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSingleDateSelectionModel });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSingleDateSelectionModel, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });\n/**\n * A selection model that contains a date range.\n * @docs-private\n */\nclass MatRangeDateSelectionModel extends MatDateSelectionModel {\n constructor(adapter) {\n super(new DateRange(null, null), adapter);\n }\n /**\n * Adds a date to the current selection. In the case of a date range selection, the added date\n * fills in the next `null` value in the range. If both the start and the end already have a date,\n * the selection is reset so that the given date is the new `start` and the `end` is null.\n */\n add(date) {\n let { start, end } = this.selection;\n if (start == null) {\n start = date;\n }\n else if (end == null) {\n end = date;\n }\n else {\n start = date;\n end = null;\n }\n super.updateSelection(new DateRange(start, end), this);\n }\n /** Checks whether the current selection is valid. */\n isValid() {\n const { start, end } = this.selection;\n // Empty ranges are valid.\n if (start == null && end == null) {\n return true;\n }\n // Complete ranges are only valid if both dates are valid and the start is before the end.\n if (start != null && end != null) {\n return (this._isValidDateInstance(start) &&\n this._isValidDateInstance(end) &&\n this._adapter.compareDate(start, end) <= 0);\n }\n // Partial ranges are valid if the start/end is valid.\n return ((start == null || this._isValidDateInstance(start)) &&\n (end == null || this._isValidDateInstance(end)));\n }\n /**\n * Checks whether the current selection is complete. In the case of a date range selection, this\n * is true if the current selection has a non-null `start` and `end`.\n */\n isComplete() {\n return this.selection.start != null && this.selection.end != null;\n }\n /** Clones the selection model. */\n clone() {\n const clone = new MatRangeDateSelectionModel(this._adapter);\n clone.updateSelection(this.selection, this);\n return clone;\n }\n}\nMatRangeDateSelectionModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRangeDateSelectionModel, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nMatRangeDateSelectionModel.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRangeDateSelectionModel });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRangeDateSelectionModel, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });\n/** @docs-private */\nfunction MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY(parent, adapter) {\n return parent || new MatSingleDateSelectionModel(adapter);\n}\n/**\n * Used to provide a single selection model to a component.\n * @docs-private\n */\nconst MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER = {\n provide: MatDateSelectionModel,\n deps: [[new Optional(), new SkipSelf(), MatDateSelectionModel], DateAdapter],\n useFactory: MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY,\n};\n/** @docs-private */\nfunction MAT_RANGE_DATE_SELECTION_MODEL_FACTORY(parent, adapter) {\n return parent || new MatRangeDateSelectionModel(adapter);\n}\n/**\n * Used to provide a range selection model to a component.\n * @docs-private\n */\nconst MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER = {\n provide: MatDateSelectionModel,\n deps: [[new Optional(), new SkipSelf(), MatDateSelectionModel], DateAdapter],\n useFactory: MAT_RANGE_DATE_SELECTION_MODEL_FACTORY,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token used to customize the date range selection behavior. */\nconst MAT_DATE_RANGE_SELECTION_STRATEGY = new InjectionToken('MAT_DATE_RANGE_SELECTION_STRATEGY');\n/** Provides the default date range selection behavior. */\nclass DefaultMatCalendarRangeStrategy {\n constructor(_dateAdapter) {\n this._dateAdapter = _dateAdapter;\n }\n selectionFinished(date, currentRange) {\n let { start, end } = currentRange;\n if (start == null) {\n start = date;\n }\n else if (end == null && date && this._dateAdapter.compareDate(date, start) >= 0) {\n end = date;\n }\n else {\n start = date;\n end = null;\n }\n return new DateRange(start, end);\n }\n createPreview(activeDate, currentRange) {\n let start = null;\n let end = null;\n if (currentRange.start && !currentRange.end && activeDate) {\n start = currentRange.start;\n end = activeDate;\n }\n return new DateRange(start, end);\n }\n}\nDefaultMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: DefaultMatCalendarRangeStrategy, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\nDefaultMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: DefaultMatCalendarRangeStrategy });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: DefaultMatCalendarRangeStrategy, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i1$1.DateAdapter }]; } });\n/** @docs-private */\nfunction MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY(parent, adapter) {\n return parent || new DefaultMatCalendarRangeStrategy(adapter);\n}\n/** @docs-private */\nconst MAT_CALENDAR_RANGE_STRATEGY_PROVIDER = {\n provide: MAT_DATE_RANGE_SELECTION_STRATEGY,\n deps: [[new Optional(), new SkipSelf(), MAT_DATE_RANGE_SELECTION_STRATEGY], DateAdapter],\n useFactory: MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst DAYS_PER_WEEK = 7;\n/**\n * An internal component used to display a single month in the datepicker.\n * @docs-private\n */\nclass MatMonthView {\n constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rangeStrategy = _rangeStrategy;\n this._rerenderSubscription = Subscription.EMPTY;\n /** Emits when a new date is selected. */\n this.selectedChange = new EventEmitter();\n /** Emits when any date is selected. */\n this._userSelection = new EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new EventEmitter();\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n }\n this._activeDate = this._dateAdapter.today();\n }\n /**\n * The date to display in this month view (everything other than the month and year is ignored).\n */\n get activeDate() {\n return this._activeDate;\n }\n set activeDate(value) {\n const oldActiveDate = this._activeDate;\n const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||\n this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {\n this._init();\n }\n }\n /** The currently selected date. */\n get selected() {\n return this._selected;\n }\n set selected(value) {\n if (value instanceof DateRange) {\n this._selected = value;\n }\n else {\n this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n this._setRanges(this._selected);\n }\n /** The minimum selectable date. */\n get minDate() {\n return this._minDate;\n }\n set minDate(value) {\n this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** The maximum selectable date. */\n get maxDate() {\n return this._maxDate;\n }\n set maxDate(value) {\n this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n ngAfterContentInit() {\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(startWith(null))\n .subscribe(() => this._init());\n }\n ngOnChanges(changes) {\n const comparisonChange = changes['comparisonStart'] || changes['comparisonEnd'];\n if (comparisonChange && !comparisonChange.firstChange) {\n this._setRanges(this.selected);\n }\n }\n ngOnDestroy() {\n this._rerenderSubscription.unsubscribe();\n }\n /** Handles when a new date is selected. */\n _dateSelected(event) {\n const date = event.value;\n const selectedYear = this._dateAdapter.getYear(this.activeDate);\n const selectedMonth = this._dateAdapter.getMonth(this.activeDate);\n const selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);\n let rangeStartDate;\n let rangeEndDate;\n if (this._selected instanceof DateRange) {\n rangeStartDate = this._getDateInCurrentMonth(this._selected.start);\n rangeEndDate = this._getDateInCurrentMonth(this._selected.end);\n }\n else {\n rangeStartDate = rangeEndDate = this._getDateInCurrentMonth(this._selected);\n }\n if (rangeStartDate !== date || rangeEndDate !== date) {\n this.selectedChange.emit(selectedDate);\n }\n this._userSelection.emit({ value: selectedDate, event: event.event });\n this._previewStart = this._previewEnd = null;\n this._changeDetectorRef.markForCheck();\n }\n /** Handles keydown events on the calendar body when calendar is in month view. */\n _handleCalendarBodyKeydown(event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n const oldActiveDate = this._activeDate;\n const isRtl = this._isRtl();\n switch (event.keyCode) {\n case LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? 1 : -1);\n break;\n case RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? -1 : 1);\n break;\n case UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);\n break;\n case DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);\n break;\n case HOME:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));\n break;\n case END:\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, this._dateAdapter.getNumDaysInMonth(this._activeDate) -\n this._dateAdapter.getDate(this._activeDate));\n break;\n case PAGE_UP:\n this.activeDate = event.altKey\n ? this._dateAdapter.addCalendarYears(this._activeDate, -1)\n : this._dateAdapter.addCalendarMonths(this._activeDate, -1);\n break;\n case PAGE_DOWN:\n this.activeDate = event.altKey\n ? this._dateAdapter.addCalendarYears(this._activeDate, 1)\n : this._dateAdapter.addCalendarMonths(this._activeDate, 1);\n break;\n case ENTER:\n case SPACE:\n this._selectionKeyPressed = true;\n if (this._canSelect(this._activeDate)) {\n // Prevent unexpected default actions such as form submission.\n // Note that we only prevent the default action here while the selection happens in\n // `keyup` below. We can't do the selection here, because it can cause the calendar to\n // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`\n // because it's too late (see #23305).\n event.preventDefault();\n }\n return;\n case ESCAPE:\n // Abort the current range selection if the user presses escape mid-selection.\n if (this._previewEnd != null && !hasModifierKey(event)) {\n this._previewStart = this._previewEnd = null;\n this.selectedChange.emit(null);\n this._userSelection.emit({ value: null, event });\n event.preventDefault();\n event.stopPropagation(); // Prevents the overlay from closing.\n }\n return;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n }\n /** Handles keyup events on the calendar body when calendar is in month view. */\n _handleCalendarBodyKeyup(event) {\n if (event.keyCode === SPACE || event.keyCode === ENTER) {\n if (this._selectionKeyPressed && this._canSelect(this._activeDate)) {\n this._dateSelected({ value: this._dateAdapter.getDate(this._activeDate), event });\n }\n this._selectionKeyPressed = false;\n }\n }\n /** Initializes this month view. */\n _init() {\n this._setRanges(this.selected);\n this._todayDate = this._getCellCompareValue(this._dateAdapter.today());\n this._monthLabel = this._dateFormats.display.monthLabel\n ? this._dateAdapter.format(this.activeDate, this._dateFormats.display.monthLabel)\n : this._dateAdapter\n .getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();\n let firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);\n this._firstWeekOffset =\n (DAYS_PER_WEEK +\n this._dateAdapter.getDayOfWeek(firstOfMonth) -\n this._dateAdapter.getFirstDayOfWeek()) %\n DAYS_PER_WEEK;\n this._initWeekdays();\n this._createWeekCells();\n this._changeDetectorRef.markForCheck();\n }\n /** Focuses the active cell after the microtask queue is empty. */\n _focusActiveCell(movePreview) {\n this._matCalendarBody._focusActiveCell(movePreview);\n }\n /** Called when the user has activated a new cell and the preview needs to be updated. */\n _previewChanged({ event, value: cell }) {\n if (this._rangeStrategy) {\n // We can assume that this will be a range, because preview\n // events aren't fired for single date selections.\n const value = cell ? cell.rawValue : null;\n const previewRange = this._rangeStrategy.createPreview(value, this.selected, event);\n this._previewStart = this._getCellCompareValue(previewRange.start);\n this._previewEnd = this._getCellCompareValue(previewRange.end);\n // Note that here we need to use `detectChanges`, rather than `markForCheck`, because\n // the way `_focusActiveCell` is set up at the moment makes it fire at the wrong time\n // when navigating one month back using the keyboard which will cause this handler\n // to throw a \"changed after checked\" error when updating the preview state.\n this._changeDetectorRef.detectChanges();\n }\n }\n /** Initializes the weekdays. */\n _initWeekdays() {\n const firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();\n const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');\n const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');\n // Rotate the labels for days of the week based on the configured first day of the week.\n let weekdays = longWeekdays.map((long, i) => {\n return { long, narrow: narrowWeekdays[i] };\n });\n this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));\n }\n /** Creates MatCalendarCells for the dates in this month. */\n _createWeekCells() {\n const daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);\n const dateNames = this._dateAdapter.getDateNames();\n this._weeks = [[]];\n for (let i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {\n if (cell == DAYS_PER_WEEK) {\n this._weeks.push([]);\n cell = 0;\n }\n const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);\n const enabled = this._shouldEnableDate(date);\n const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);\n const cellClasses = this.dateClass ? this.dateClass(date, 'month') : undefined;\n this._weeks[this._weeks.length - 1].push(new MatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses, this._getCellCompareValue(date), date));\n }\n }\n /** Date filter for the month */\n _shouldEnableDate(date) {\n return (!!date &&\n (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&\n (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&\n (!this.dateFilter || this.dateFilter(date)));\n }\n /**\n * Gets the date in this month that the given Date falls on.\n * Returns null if the given Date is in another month.\n */\n _getDateInCurrentMonth(date) {\n return date && this._hasSameMonthAndYear(date, this.activeDate)\n ? this._dateAdapter.getDate(date)\n : null;\n }\n /** Checks whether the 2 dates are non-null and fall within the same month of the same year. */\n _hasSameMonthAndYear(d1, d2) {\n return !!(d1 &&\n d2 &&\n this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&\n this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));\n }\n /** Gets the value that will be used to one cell to another. */\n _getCellCompareValue(date) {\n if (date) {\n // We use the time since the Unix epoch to compare dates in this view, rather than the\n // cell values, because we need to support ranges that span across multiple months/years.\n const year = this._dateAdapter.getYear(date);\n const month = this._dateAdapter.getMonth(date);\n const day = this._dateAdapter.getDate(date);\n return new Date(year, month, day).getTime();\n }\n return null;\n }\n /** Determines whether the user has the RTL layout direction. */\n _isRtl() {\n return this._dir && this._dir.value === 'rtl';\n }\n /** Sets the current range based on a model value. */\n _setRanges(selectedValue) {\n if (selectedValue instanceof DateRange) {\n this._rangeStart = this._getCellCompareValue(selectedValue.start);\n this._rangeEnd = this._getCellCompareValue(selectedValue.end);\n this._isRange = true;\n }\n else {\n this._rangeStart = this._rangeEnd = this._getCellCompareValue(selectedValue);\n this._isRange = false;\n }\n this._comparisonRangeStart = this._getCellCompareValue(this.comparisonStart);\n this._comparisonRangeEnd = this._getCellCompareValue(this.comparisonEnd);\n }\n /** Gets whether a date can be selected in the month view. */\n _canSelect(date) {\n return !this.dateFilter || this.dateFilter(date);\n }\n}\nMatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMonthView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMonthView, selector: \"mat-month-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\" }, outputs: { selectedChange: \"selectedChange\", _userSelection: \"_userSelection\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: [\"matMonthView\"], usesOnChanges: true, ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr>\\n <!-- For the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\\n ignores the `aria-label`. ChromeVox, however, does not read the full name\\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">\\n <abbr class=\\\"mat-calendar-abbr\\\" [attr.title]=\\\"day.long\\\">{{day.narrow}}</abbr>\\n </th>\\n </tr>\\n <tr><th aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_monthLabel\\\"\\n [rows]=\\\"_weeks\\\"\\n [todayValue]=\\\"_todayDate!\\\"\\n [startValue]=\\\"_rangeStart!\\\"\\n [endValue]=\\\"_rangeEnd!\\\"\\n [comparisonStart]=\\\"_comparisonRangeStart\\\"\\n [comparisonEnd]=\\\"_comparisonRangeEnd\\\"\\n [previewStart]=\\\"_previewStart\\\"\\n [previewEnd]=\\\"_previewEnd\\\"\\n [isRange]=\\\"_isRange\\\"\\n [labelMinRequiredCells]=\\\"3\\\"\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\n (previewChange)=\\\"_previewChanged($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\", components: [{ type: MatCalendarBody, selector: \"[mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"matCalendarBody\"] }], directives: [{ type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMonthView, decorators: [{\n type: Component,\n args: [{ selector: 'mat-month-view', exportAs: 'matMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead class=\\\"mat-calendar-table-header\\\">\\n <tr>\\n <!-- For the day-of-the-week column header, we use an `<abbr>` element because VoiceOver\\n ignores the `aria-label`. ChromeVox, however, does not read the full name\\n for the `<abbr>`, so we still set `aria-label` on the header element. -->\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">\\n <abbr class=\\\"mat-calendar-abbr\\\" [attr.title]=\\\"day.long\\\">{{day.narrow}}</abbr>\\n </th>\\n </tr>\\n <tr><th aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_monthLabel\\\"\\n [rows]=\\\"_weeks\\\"\\n [todayValue]=\\\"_todayDate!\\\"\\n [startValue]=\\\"_rangeStart!\\\"\\n [endValue]=\\\"_rangeEnd!\\\"\\n [comparisonStart]=\\\"_comparisonRangeStart\\\"\\n [comparisonEnd]=\\\"_comparisonRangeEnd\\\"\\n [previewStart]=\\\"_previewStart\\\"\\n [previewEnd]=\\\"_previewEnd\\\"\\n [isRange]=\\\"_isRange\\\"\\n [labelMinRequiredCells]=\\\"3\\\"\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\n (previewChange)=\\\"_previewChanged($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DATE_RANGE_SELECTION_STRATEGY]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { activeDate: [{\n type: Input\n }], selected: [{\n type: Input\n }], minDate: [{\n type: Input\n }], maxDate: [{\n type: Input\n }], dateFilter: [{\n type: Input\n }], dateClass: [{\n type: Input\n }], comparisonStart: [{\n type: Input\n }], comparisonEnd: [{\n type: Input\n }], selectedChange: [{\n type: Output\n }], _userSelection: [{\n type: Output\n }], activeDateChange: [{\n type: Output\n }], _matCalendarBody: [{\n type: ViewChild,\n args: [MatCalendarBody]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst yearsPerPage = 24;\nconst yearsPerRow = 4;\n/**\n * An internal component used to display a year selector in the datepicker.\n * @docs-private\n */\nclass MatMultiYearView {\n constructor(_changeDetectorRef, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = Subscription.EMPTY;\n /** Emits when a new year is selected. */\n this.selectedChange = new EventEmitter();\n /** Emits the selected year. This doesn't imply a change on the selected date */\n this.yearSelected = new EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new EventEmitter();\n if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._activeDate = this._dateAdapter.today();\n }\n /** The date to display in this multi-year view (everything other than the year is ignored). */\n get activeDate() {\n return this._activeDate;\n }\n set activeDate(value) {\n let oldActiveDate = this._activeDate;\n const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||\n this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {\n this._init();\n }\n }\n /** The currently selected date. */\n get selected() {\n return this._selected;\n }\n set selected(value) {\n if (value instanceof DateRange) {\n this._selected = value;\n }\n else {\n this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n this._setSelectedYear(value);\n }\n /** The minimum selectable date. */\n get minDate() {\n return this._minDate;\n }\n set minDate(value) {\n this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** The maximum selectable date. */\n get maxDate() {\n return this._maxDate;\n }\n set maxDate(value) {\n this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n ngAfterContentInit() {\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(startWith(null))\n .subscribe(() => this._init());\n }\n ngOnDestroy() {\n this._rerenderSubscription.unsubscribe();\n }\n /** Initializes this multi-year view. */\n _init() {\n this._todayYear = this._dateAdapter.getYear(this._dateAdapter.today());\n // We want a range years such that we maximize the number of\n // enabled dates visible at once. This prevents issues where the minimum year\n // is the last item of a page OR the maximum year is the first item of a page.\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view.\n const activeYear = this._dateAdapter.getYear(this._activeDate);\n const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n this._years = [];\n for (let i = 0, row = []; i < yearsPerPage; i++) {\n row.push(minYearOfPage + i);\n if (row.length == yearsPerRow) {\n this._years.push(row.map(year => this._createCellForYear(year)));\n row = [];\n }\n }\n this._changeDetectorRef.markForCheck();\n }\n /** Handles when a new year is selected. */\n _yearSelected(event) {\n const year = event.value;\n this.yearSelected.emit(this._dateAdapter.createDate(year, 0, 1));\n let month = this._dateAdapter.getMonth(this.activeDate);\n let daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(year, month, 1));\n this.selectedChange.emit(this._dateAdapter.createDate(year, month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n }\n /** Handles keydown events on the calendar body when calendar is in multi-year view. */\n _handleCalendarBodyKeydown(event) {\n const oldActiveDate = this._activeDate;\n const isRtl = this._isRtl();\n switch (event.keyCode) {\n case LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? 1 : -1);\n break;\n case RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);\n break;\n case UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);\n break;\n case DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);\n break;\n case HOME:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));\n break;\n case END:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage -\n getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) -\n 1);\n break;\n case PAGE_UP:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);\n break;\n case PAGE_DOWN:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);\n break;\n case ENTER:\n case SPACE:\n // Note that we only prevent the default action here while the selection happens in\n // `keyup` below. We can't do the selection here, because it can cause the calendar to\n // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`\n // because it's too late (see #23305).\n this._selectionKeyPressed = true;\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n }\n /** Handles keyup events on the calendar body when calendar is in multi-year view. */\n _handleCalendarBodyKeyup(event) {\n if (event.keyCode === SPACE || event.keyCode === ENTER) {\n if (this._selectionKeyPressed) {\n this._yearSelected({ value: this._dateAdapter.getYear(this._activeDate), event });\n }\n this._selectionKeyPressed = false;\n }\n }\n _getActiveCell() {\n return getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\n }\n /** Focuses the active cell after the microtask queue is empty. */\n _focusActiveCell() {\n this._matCalendarBody._focusActiveCell();\n }\n /** Creates an MatCalendarCell for the given year. */\n _createCellForYear(year) {\n const date = this._dateAdapter.createDate(year, 0, 1);\n const yearName = this._dateAdapter.getYearName(date);\n const cellClasses = this.dateClass ? this.dateClass(date, 'multi-year') : undefined;\n return new MatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year), cellClasses);\n }\n /** Whether the given year is enabled. */\n _shouldEnableYear(year) {\n // disable if the year is greater than maxDate lower than minDate\n if (year === undefined ||\n year === null ||\n (this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||\n (this.minDate && year < this._dateAdapter.getYear(this.minDate))) {\n return false;\n }\n // enable if it reaches here and there's no filter defined\n if (!this.dateFilter) {\n return true;\n }\n const firstOfYear = this._dateAdapter.createDate(year, 0, 1);\n // If any date in the year is enabled count the year as enabled.\n for (let date = firstOfYear; this._dateAdapter.getYear(date) == year; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }\n /** Determines whether the user has the RTL layout direction. */\n _isRtl() {\n return this._dir && this._dir.value === 'rtl';\n }\n /** Sets the currently-highlighted year based on a model value. */\n _setSelectedYear(value) {\n this._selectedYear = null;\n if (value instanceof DateRange) {\n const displayValue = value.start || value.end;\n if (displayValue) {\n this._selectedYear = this._dateAdapter.getYear(displayValue);\n }\n }\n else if (value) {\n this._selectedYear = this._dateAdapter.getYear(value);\n }\n }\n}\nMatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMultiYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMultiYearView, selector: \"mat-multi-year-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\" }, outputs: { selectedChange: \"selectedChange\", yearSelected: \"yearSelected\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: [\"matMultiYearView\"], ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [rows]=\\\"_years\\\"\\n [todayValue]=\\\"_todayYear\\\"\\n [startValue]=\\\"_selectedYear!\\\"\\n [endValue]=\\\"_selectedYear!\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_getActiveCell()\\\"\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\", components: [{ type: MatCalendarBody, selector: \"[mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"matCalendarBody\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMultiYearView, decorators: [{\n type: Component,\n args: [{ selector: 'mat-multi-year-view', exportAs: 'matMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [rows]=\\\"_years\\\"\\n [todayValue]=\\\"_todayYear\\\"\\n [startValue]=\\\"_selectedYear!\\\"\\n [endValue]=\\\"_selectedYear!\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_getActiveCell()\\\"\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { activeDate: [{\n type: Input\n }], selected: [{\n type: Input\n }], minDate: [{\n type: Input\n }], maxDate: [{\n type: Input\n }], dateFilter: [{\n type: Input\n }], dateClass: [{\n type: Input\n }], selectedChange: [{\n type: Output\n }], yearSelected: [{\n type: Output\n }], activeDateChange: [{\n type: Output\n }], _matCalendarBody: [{\n type: ViewChild,\n args: [MatCalendarBody]\n }] } });\nfunction isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {\n const year1 = dateAdapter.getYear(date1);\n const year2 = dateAdapter.getYear(date2);\n const startingYear = getStartingYear(dateAdapter, minDate, maxDate);\n return (Math.floor((year1 - startingYear) / yearsPerPage) ===\n Math.floor((year2 - startingYear) / yearsPerPage));\n}\n/**\n * When the multi-year view is first opened, the active year will be in view.\n * So we compute how many years are between the active year and the *slot* where our\n * \"startingYear\" will render when paged into view.\n */\nfunction getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {\n const activeYear = dateAdapter.getYear(activeDate);\n return euclideanModulo(activeYear - getStartingYear(dateAdapter, minDate, maxDate), yearsPerPage);\n}\n/**\n * We pick a \"starting\" year such that either the maximum year would be at the end\n * or the minimum year would be at the beginning of a page.\n */\nfunction getStartingYear(dateAdapter, minDate, maxDate) {\n let startingYear = 0;\n if (maxDate) {\n const maxYear = dateAdapter.getYear(maxDate);\n startingYear = maxYear - yearsPerPage + 1;\n }\n else if (minDate) {\n startingYear = dateAdapter.getYear(minDate);\n }\n return startingYear;\n}\n/** Gets remainder that is non-negative, even if first number is negative */\nfunction euclideanModulo(a, b) {\n return ((a % b) + b) % b;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An internal component used to display a single year in the datepicker.\n * @docs-private\n */\nclass MatYearView {\n constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\n this._changeDetectorRef = _changeDetectorRef;\n this._dateFormats = _dateFormats;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._rerenderSubscription = Subscription.EMPTY;\n /** Emits when a new month is selected. */\n this.selectedChange = new EventEmitter();\n /** Emits the selected month. This doesn't imply a change on the selected date */\n this.monthSelected = new EventEmitter();\n /** Emits when any date is activated. */\n this.activeDateChange = new EventEmitter();\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n }\n this._activeDate = this._dateAdapter.today();\n }\n /** The date to display in this year view (everything other than the year is ignored). */\n get activeDate() {\n return this._activeDate;\n }\n set activeDate(value) {\n let oldActiveDate = this._activeDate;\n const validDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value)) ||\n this._dateAdapter.today();\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\n if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {\n this._init();\n }\n }\n /** The currently selected date. */\n get selected() {\n return this._selected;\n }\n set selected(value) {\n if (value instanceof DateRange) {\n this._selected = value;\n }\n else {\n this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n this._setSelectedMonth(value);\n }\n /** The minimum selectable date. */\n get minDate() {\n return this._minDate;\n }\n set minDate(value) {\n this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** The maximum selectable date. */\n get maxDate() {\n return this._maxDate;\n }\n set maxDate(value) {\n this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n ngAfterContentInit() {\n this._rerenderSubscription = this._dateAdapter.localeChanges\n .pipe(startWith(null))\n .subscribe(() => this._init());\n }\n ngOnDestroy() {\n this._rerenderSubscription.unsubscribe();\n }\n /** Handles when a new month is selected. */\n _monthSelected(event) {\n const month = event.value;\n const normalizedDate = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);\n this.monthSelected.emit(normalizedDate);\n const daysInMonth = this._dateAdapter.getNumDaysInMonth(normalizedDate);\n this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\n }\n /** Handles keydown events on the calendar body when calendar is in year view. */\n _handleCalendarBodyKeydown(event) {\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\n // disabled ones from being selected. This may not be ideal, we should look into whether\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\n const oldActiveDate = this._activeDate;\n const isRtl = this._isRtl();\n switch (event.keyCode) {\n case LEFT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? 1 : -1);\n break;\n case RIGHT_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? -1 : 1);\n break;\n case UP_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -4);\n break;\n case DOWN_ARROW:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 4);\n break;\n case HOME:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));\n break;\n case END:\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));\n break;\n case PAGE_UP:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);\n break;\n case PAGE_DOWN:\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);\n break;\n case ENTER:\n case SPACE:\n // Note that we only prevent the default action here while the selection happens in\n // `keyup` below. We can't do the selection here, because it can cause the calendar to\n // reopen if focus is restored immediately. We also can't call `preventDefault` on `keyup`\n // because it's too late (see #23305).\n this._selectionKeyPressed = true;\n break;\n default:\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\n return;\n }\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\n this.activeDateChange.emit(this.activeDate);\n }\n this._focusActiveCell();\n // Prevent unexpected default actions such as form submission.\n event.preventDefault();\n }\n /** Handles keyup events on the calendar body when calendar is in year view. */\n _handleCalendarBodyKeyup(event) {\n if (event.keyCode === SPACE || event.keyCode === ENTER) {\n if (this._selectionKeyPressed) {\n this._monthSelected({ value: this._dateAdapter.getMonth(this._activeDate), event });\n }\n this._selectionKeyPressed = false;\n }\n }\n /** Initializes this year view. */\n _init() {\n this._setSelectedMonth(this.selected);\n this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());\n this._yearLabel = this._dateAdapter.getYearName(this.activeDate);\n let monthNames = this._dateAdapter.getMonthNames('short');\n // First row of months only contains 5 elements so we can fit the year label on the same row.\n this._months = [\n [0, 1, 2, 3],\n [4, 5, 6, 7],\n [8, 9, 10, 11],\n ].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));\n this._changeDetectorRef.markForCheck();\n }\n /** Focuses the active cell after the microtask queue is empty. */\n _focusActiveCell() {\n this._matCalendarBody._focusActiveCell();\n }\n /**\n * Gets the month in this year that the given Date falls on.\n * Returns null if the given Date is in another year.\n */\n _getMonthInCurrentYear(date) {\n return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate)\n ? this._dateAdapter.getMonth(date)\n : null;\n }\n /** Creates an MatCalendarCell for the given month. */\n _createCellForMonth(month, monthName) {\n const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);\n const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.monthYearA11yLabel);\n const cellClasses = this.dateClass ? this.dateClass(date, 'year') : undefined;\n return new MatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month), cellClasses);\n }\n /** Whether the given month is enabled. */\n _shouldEnableMonth(month) {\n const activeYear = this._dateAdapter.getYear(this.activeDate);\n if (month === undefined ||\n month === null ||\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\n return false;\n }\n if (!this.dateFilter) {\n return true;\n }\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\n // If any date in the month is enabled count the month as enabled.\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\n if (this.dateFilter(date)) {\n return true;\n }\n }\n return false;\n }\n /**\n * Tests whether the combination month/year is after this.maxDate, considering\n * just the month and year of this.maxDate\n */\n _isYearAndMonthAfterMaxDate(year, month) {\n if (this.maxDate) {\n const maxYear = this._dateAdapter.getYear(this.maxDate);\n const maxMonth = this._dateAdapter.getMonth(this.maxDate);\n return year > maxYear || (year === maxYear && month > maxMonth);\n }\n return false;\n }\n /**\n * Tests whether the combination month/year is before this.minDate, considering\n * just the month and year of this.minDate\n */\n _isYearAndMonthBeforeMinDate(year, month) {\n if (this.minDate) {\n const minYear = this._dateAdapter.getYear(this.minDate);\n const minMonth = this._dateAdapter.getMonth(this.minDate);\n return year < minYear || (year === minYear && month < minMonth);\n }\n return false;\n }\n /** Determines whether the user has the RTL layout direction. */\n _isRtl() {\n return this._dir && this._dir.value === 'rtl';\n }\n /** Sets the currently-selected month based on a model value. */\n _setSelectedMonth(value) {\n if (value instanceof DateRange) {\n this._selectedMonth =\n this._getMonthInCurrentYear(value.start) || this._getMonthInCurrentYear(value.end);\n }\n else {\n this._selectedMonth = this._getMonthInCurrentYear(value);\n }\n }\n}\nMatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: MAT_DATE_FORMATS, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatYearView, selector: \"mat-year-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\" }, outputs: { selectedChange: \"selectedChange\", monthSelected: \"monthSelected\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: MatCalendarBody, descendants: true }], exportAs: [\"matYearView\"], ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_yearLabel\\\"\\n [rows]=\\\"_months\\\"\\n [todayValue]=\\\"_todayMonth!\\\"\\n [startValue]=\\\"_selectedMonth!\\\"\\n [endValue]=\\\"_selectedMonth!\\\"\\n [labelMinRequiredCells]=\\\"2\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\", components: [{ type: MatCalendarBody, selector: \"[mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"matCalendarBody\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatYearView, decorators: [{\n type: Component,\n args: [{ selector: 'mat-year-view', exportAs: 'matYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"grid\\\">\\n <thead aria-hidden=\\\"true\\\" class=\\\"mat-calendar-table-header\\\">\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\n </thead>\\n <tbody mat-calendar-body\\n [label]=\\\"_yearLabel\\\"\\n [rows]=\\\"_months\\\"\\n [todayValue]=\\\"_todayMonth!\\\"\\n [startValue]=\\\"_selectedMonth!\\\"\\n [endValue]=\\\"_selectedMonth!\\\"\\n [labelMinRequiredCells]=\\\"2\\\"\\n [numCols]=\\\"4\\\"\\n [cellAspectRatio]=\\\"4 / 7\\\"\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\n (keyup)=\\\"_handleCalendarBodyKeyup($event)\\\"\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\n </tbody>\\n</table>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { activeDate: [{\n type: Input\n }], selected: [{\n type: Input\n }], minDate: [{\n type: Input\n }], maxDate: [{\n type: Input\n }], dateFilter: [{\n type: Input\n }], dateClass: [{\n type: Input\n }], selectedChange: [{\n type: Output\n }], monthSelected: [{\n type: Output\n }], activeDateChange: [{\n type: Output\n }], _matCalendarBody: [{\n type: ViewChild,\n args: [MatCalendarBody]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Datepicker data that requires internationalization. */\nclass MatDatepickerIntl {\n constructor() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new Subject();\n /** A label for the calendar popup (used by screen readers). */\n this.calendarLabel = 'Calendar';\n /** A label for the button used to open the calendar popup (used by screen readers). */\n this.openCalendarLabel = 'Open calendar';\n /** Label for the button used to close the calendar popup. */\n this.closeCalendarLabel = 'Close calendar';\n /** A label for the previous month button (used by screen readers). */\n this.prevMonthLabel = 'Previous month';\n /** A label for the next month button (used by screen readers). */\n this.nextMonthLabel = 'Next month';\n /** A label for the previous year button (used by screen readers). */\n this.prevYearLabel = 'Previous year';\n /** A label for the next year button (used by screen readers). */\n this.nextYearLabel = 'Next year';\n /** A label for the previous multi-year button (used by screen readers). */\n this.prevMultiYearLabel = 'Previous 24 years';\n /** A label for the next multi-year button (used by screen readers). */\n this.nextMultiYearLabel = 'Next 24 years';\n /** A label for the 'switch to month view' button (used by screen readers). */\n this.switchToMonthViewLabel = 'Choose date';\n /** A label for the 'switch to year view' button (used by screen readers). */\n this.switchToMultiYearViewLabel = 'Choose month and year';\n }\n /** Formats a range of years. */\n formatYearRange(start, end) {\n return `${start} \\u2013 ${end}`;\n }\n}\nMatDatepickerIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMatDatepickerIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerIntl, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerIntl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Counter used to generate unique IDs. */\nlet uniqueId = 0;\n/** Default header for MatCalendar */\nclass MatCalendarHeader {\n constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {\n this._intl = _intl;\n this.calendar = calendar;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._buttonDescriptionId = `mat-calendar-button-${uniqueId++}`;\n this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());\n }\n /** The label for the current calendar view. */\n get periodButtonText() {\n if (this.calendar.currentView == 'month') {\n return this._dateAdapter\n .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)\n .toLocaleUpperCase();\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYearName(this.calendar.activeDate);\n }\n // The offset from the active year to the \"slot\" for the starting year is the\n // *actual* first rendered year in the multi-year view, and the last year is\n // just yearsPerPage - 1 away.\n const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);\n const minYearOfPage = activeYear -\n getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);\n const maxYearOfPage = minYearOfPage + yearsPerPage - 1;\n const minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));\n const maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));\n return this._intl.formatYearRange(minYearName, maxYearName);\n }\n get periodButtonLabel() {\n return this.calendar.currentView == 'month'\n ? this._intl.switchToMultiYearViewLabel\n : this._intl.switchToMonthViewLabel;\n }\n /** The label for the previous button. */\n get prevButtonLabel() {\n return {\n 'month': this._intl.prevMonthLabel,\n 'year': this._intl.prevYearLabel,\n 'multi-year': this._intl.prevMultiYearLabel,\n }[this.calendar.currentView];\n }\n /** The label for the next button. */\n get nextButtonLabel() {\n return {\n 'month': this._intl.nextMonthLabel,\n 'year': this._intl.nextYearLabel,\n 'multi-year': this._intl.nextMultiYearLabel,\n }[this.calendar.currentView];\n }\n /** Handles user clicks on the period label. */\n currentPeriodClicked() {\n this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';\n }\n /** Handles user clicks on the previous button. */\n previousClicked() {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1)\n : this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);\n }\n /** Handles user clicks on the next button. */\n nextClicked() {\n this.calendar.activeDate =\n this.calendar.currentView == 'month'\n ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1)\n : this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);\n }\n /** Whether the previous period button is enabled. */\n previousEnabled() {\n if (!this.calendar.minDate) {\n return true;\n }\n return (!this.calendar.minDate || !this._isSameView(this.calendar.activeDate, this.calendar.minDate));\n }\n /** Whether the next period button is enabled. */\n nextEnabled() {\n return (!this.calendar.maxDate || !this._isSameView(this.calendar.activeDate, this.calendar.maxDate));\n }\n /** Whether the two dates represent the same view in the current view mode (month or year). */\n _isSameView(date1, date2) {\n if (this.calendar.currentView == 'month') {\n return (this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&\n this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2));\n }\n if (this.calendar.currentView == 'year') {\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);\n }\n // Otherwise we are in 'multi-year' view.\n return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);\n }\n}\nMatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendarHeader, deps: [{ token: MatDatepickerIntl }, { token: forwardRef(() => MatCalendar) }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCalendarHeader, selector: \"mat-calendar-header\", exportAs: [\"matCalendarHeader\"], ngImport: i0, template: \"<div class=\\\"mat-calendar-header\\\">\\n <div class=\\\"mat-calendar-controls\\\">\\n <button mat-button type=\\\"button\\\" class=\\\"mat-calendar-period-button\\\"\\n (click)=\\\"currentPeriodClicked()\\\" [attr.aria-label]=\\\"periodButtonLabel\\\"\\n [attr.aria-describedby]=\\\"_buttonDescriptionId\\\"\\n cdkAriaLive=\\\"polite\\\">\\n <span [attr.id]=\\\"_buttonDescriptionId\\\">{{periodButtonText}}</span>\\n <svg class=\\\"mat-calendar-arrow\\\" [class.mat-calendar-invert]=\\\"calendar.currentView !== 'month'\\\"\\n viewBox=\\\"0 0 10 5\\\" focusable=\\\"false\\\">\\n <polygon points=\\\"0,0 5,5 10,0\\\"/>\\n </svg>\\n </button>\\n\\n <div class=\\\"mat-calendar-spacer\\\"></div>\\n\\n <ng-content></ng-content>\\n\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-previous-button\\\"\\n [disabled]=\\\"!previousEnabled()\\\" (click)=\\\"previousClicked()\\\"\\n [attr.aria-label]=\\\"prevButtonLabel\\\">\\n </button>\\n\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-next-button\\\"\\n [disabled]=\\\"!nextEnabled()\\\" (click)=\\\"nextClicked()\\\"\\n [attr.aria-label]=\\\"nextButtonLabel\\\">\\n </button>\\n </div>\\n</div>\\n\", components: [{ type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], directives: [{ type: i4.CdkAriaLive, selector: \"[cdkAriaLive]\", inputs: [\"cdkAriaLive\"], exportAs: [\"cdkAriaLive\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendarHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-calendar-header', exportAs: 'matCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-calendar-header\\\">\\n <div class=\\\"mat-calendar-controls\\\">\\n <button mat-button type=\\\"button\\\" class=\\\"mat-calendar-period-button\\\"\\n (click)=\\\"currentPeriodClicked()\\\" [attr.aria-label]=\\\"periodButtonLabel\\\"\\n [attr.aria-describedby]=\\\"_buttonDescriptionId\\\"\\n cdkAriaLive=\\\"polite\\\">\\n <span [attr.id]=\\\"_buttonDescriptionId\\\">{{periodButtonText}}</span>\\n <svg class=\\\"mat-calendar-arrow\\\" [class.mat-calendar-invert]=\\\"calendar.currentView !== 'month'\\\"\\n viewBox=\\\"0 0 10 5\\\" focusable=\\\"false\\\">\\n <polygon points=\\\"0,0 5,5 10,0\\\"/>\\n </svg>\\n </button>\\n\\n <div class=\\\"mat-calendar-spacer\\\"></div>\\n\\n <ng-content></ng-content>\\n\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-previous-button\\\"\\n [disabled]=\\\"!previousEnabled()\\\" (click)=\\\"previousClicked()\\\"\\n [attr.aria-label]=\\\"prevButtonLabel\\\">\\n </button>\\n\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-next-button\\\"\\n [disabled]=\\\"!nextEnabled()\\\" (click)=\\\"nextClicked()\\\"\\n [attr.aria-label]=\\\"nextButtonLabel\\\">\\n </button>\\n </div>\\n</div>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: MatDatepickerIntl }, { type: MatCalendar, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatCalendar)]\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }, { type: i0.ChangeDetectorRef }];\n } });\n/** A calendar that is used as part of the datepicker. */\nclass MatCalendar {\n constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n this._changeDetectorRef = _changeDetectorRef;\n /**\n * Used for scheduling that focus should be moved to the active cell on the next tick.\n * We need to schedule it, rather than do it immediately, because we have to wait\n * for Angular to re-evaluate the view children.\n */\n this._moveFocusOnNextTick = false;\n /** Whether the calendar should be started in month or year view. */\n this.startView = 'month';\n /** Emits when the currently selected date changes. */\n this.selectedChange = new EventEmitter();\n /**\n * Emits the year chosen in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new EventEmitter();\n /**\n * Emits the month chosen in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new EventEmitter();\n /**\n * Emits when the current view changes.\n */\n this.viewChanged = new EventEmitter(true);\n /** Emits when any date is selected. */\n this._userSelection = new EventEmitter();\n /**\n * Emits whenever there is a state change that the header may need to respond to.\n */\n this.stateChanges = new Subject();\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n }\n this._intlChanges = _intl.changes.subscribe(() => {\n _changeDetectorRef.markForCheck();\n this.stateChanges.next();\n });\n }\n /** A date representing the period (month or year) to start the calendar in. */\n get startAt() {\n return this._startAt;\n }\n set startAt(value) {\n this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** The currently selected date. */\n get selected() {\n return this._selected;\n }\n set selected(value) {\n if (value instanceof DateRange) {\n this._selected = value;\n }\n else {\n this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n }\n /** The minimum selectable date. */\n get minDate() {\n return this._minDate;\n }\n set minDate(value) {\n this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** The maximum selectable date. */\n get maxDate() {\n return this._maxDate;\n }\n set maxDate(value) {\n this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /**\n * The current active date. This determines which time period is shown and which date is\n * highlighted when using keyboard navigation.\n */\n get activeDate() {\n return this._clampedActiveDate;\n }\n set activeDate(value) {\n this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);\n this.stateChanges.next();\n this._changeDetectorRef.markForCheck();\n }\n /** Whether the calendar is in month view. */\n get currentView() {\n return this._currentView;\n }\n set currentView(value) {\n const viewChangedResult = this._currentView !== value ? value : null;\n this._currentView = value;\n this._moveFocusOnNextTick = true;\n this._changeDetectorRef.markForCheck();\n if (viewChangedResult) {\n this.viewChanged.emit(viewChangedResult);\n }\n }\n ngAfterContentInit() {\n this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);\n this.activeDate = this.startAt || this._dateAdapter.today();\n // Assign to the private property since we don't want to move focus on init.\n this._currentView = this.startView;\n }\n ngAfterViewChecked() {\n if (this._moveFocusOnNextTick) {\n this._moveFocusOnNextTick = false;\n this.focusActiveCell();\n }\n }\n ngOnDestroy() {\n this._intlChanges.unsubscribe();\n this.stateChanges.complete();\n }\n ngOnChanges(changes) {\n const change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];\n if (change && !change.firstChange) {\n const view = this._getCurrentViewComponent();\n if (view) {\n // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are\n // passed down to the view via data bindings which won't be up-to-date when we call `_init`.\n this._changeDetectorRef.detectChanges();\n view._init();\n }\n }\n this.stateChanges.next();\n }\n /** Focuses the active date. */\n focusActiveCell() {\n this._getCurrentViewComponent()._focusActiveCell(false);\n }\n /** Updates today's date after an update of the active date */\n updateTodaysDate() {\n this._getCurrentViewComponent()._init();\n }\n /** Handles date selection in the month view. */\n _dateSelected(event) {\n const date = event.value;\n if (this.selected instanceof DateRange ||\n (date && !this._dateAdapter.sameDate(date, this.selected))) {\n this.selectedChange.emit(date);\n }\n this._userSelection.emit(event);\n }\n /** Handles year selection in the multiyear view. */\n _yearSelectedInMultiYearView(normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n }\n /** Handles month selection in the year view. */\n _monthSelectedInYearView(normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n }\n /** Handles year/month selection in the multi-year/year views. */\n _goToDateInView(date, view) {\n this.activeDate = date;\n this.currentView = view;\n }\n /** Returns the component instance that corresponds to the current calendar view. */\n _getCurrentViewComponent() {\n // The return type is explicitly written as a union to ensure that the Closure compiler does\n // not optimize calls to _init(). Without the explict return type, TypeScript narrows it to\n // only the first component type. See https://github.com/angular/components/issues/22996.\n return this.monthView || this.yearView || this.multiYearView;\n }\n}\nMatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendar, deps: [{ token: MatDatepickerIntl }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCalendar, selector: \"mat-calendar\", inputs: { headerComponent: \"headerComponent\", startAt: \"startAt\", startView: \"startView\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\" }, outputs: { selectedChange: \"selectedChange\", yearSelected: \"yearSelected\", monthSelected: \"monthSelected\", viewChanged: \"viewChanged\", _userSelection: \"_userSelection\" }, host: { classAttribute: \"mat-calendar\" }, providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER], viewQueries: [{ propertyName: \"monthView\", first: true, predicate: MatMonthView, descendants: true }, { propertyName: \"yearView\", first: true, predicate: MatYearView, descendants: true }, { propertyName: \"multiYearView\", first: true, predicate: MatMultiYearView, descendants: true }], exportAs: [\"matCalendar\"], usesOnChanges: true, ngImport: i0, template: \"<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\n\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\n <mat-month-view\\n *ngSwitchCase=\\\"'month'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n [comparisonStart]=\\\"comparisonStart\\\"\\n [comparisonEnd]=\\\"comparisonEnd\\\"\\n (_userSelection)=\\\"_dateSelected($event)\\\">\\n </mat-month-view>\\n\\n <mat-year-view\\n *ngSwitchCase=\\\"'year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\n </mat-year-view>\\n\\n <mat-multi-year-view\\n *ngSwitchCase=\\\"'multi-year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\n </mat-multi-year-view>\\n</div>\\n\", styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\\n\"], components: [{ type: MatMonthView, selector: \"mat-month-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\", \"comparisonStart\", \"comparisonEnd\"], outputs: [\"selectedChange\", \"_userSelection\", \"activeDateChange\"], exportAs: [\"matMonthView\"] }, { type: MatYearView, selector: \"mat-year-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\"], outputs: [\"selectedChange\", \"monthSelected\", \"activeDateChange\"], exportAs: [\"matYearView\"] }, { type: MatMultiYearView, selector: \"mat-multi-year-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\"], outputs: [\"selectedChange\", \"yearSelected\", \"activeDateChange\"], exportAs: [\"matMultiYearView\"] }], directives: [{ type: i8.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }, { type: i4.CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: [\"cdkFocusChange\"] }, { type: i1.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i1.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCalendar, decorators: [{\n type: Component,\n args: [{ selector: 'mat-calendar', host: {\n 'class': 'mat-calendar',\n }, exportAs: 'matCalendar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER], template: \"<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\n\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\n <mat-month-view\\n *ngSwitchCase=\\\"'month'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n [comparisonStart]=\\\"comparisonStart\\\"\\n [comparisonEnd]=\\\"comparisonEnd\\\"\\n (_userSelection)=\\\"_dateSelected($event)\\\">\\n </mat-month-view>\\n\\n <mat-year-view\\n *ngSwitchCase=\\\"'year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\n </mat-year-view>\\n\\n <mat-multi-year-view\\n *ngSwitchCase=\\\"'multi-year'\\\"\\n [(activeDate)]=\\\"activeDate\\\"\\n [selected]=\\\"selected\\\"\\n [dateFilter]=\\\"dateFilter\\\"\\n [maxDate]=\\\"maxDate\\\"\\n [minDate]=\\\"minDate\\\"\\n [dateClass]=\\\"dateClass\\\"\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\n </mat-multi-year-view>\\n</div>\\n\", styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatDatepickerIntl }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }, { type: i0.ChangeDetectorRef }];\n }, propDecorators: { headerComponent: [{\n type: Input\n }], startAt: [{\n type: Input\n }], startView: [{\n type: Input\n }], selected: [{\n type: Input\n }], minDate: [{\n type: Input\n }], maxDate: [{\n type: Input\n }], dateFilter: [{\n type: Input\n }], dateClass: [{\n type: Input\n }], comparisonStart: [{\n type: Input\n }], comparisonEnd: [{\n type: Input\n }], selectedChange: [{\n type: Output\n }], yearSelected: [{\n type: Output\n }], monthSelected: [{\n type: Output\n }], viewChanged: [{\n type: Output\n }], _userSelection: [{\n type: Output\n }], monthView: [{\n type: ViewChild,\n args: [MatMonthView]\n }], yearView: [{\n type: ViewChild,\n args: [MatYearView]\n }], multiYearView: [{\n type: ViewChild,\n args: [MatMultiYearView]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material datepicker.\n * @docs-private\n */\nconst matDatepickerAnimations = {\n /** Transforms the height of the datepicker's calendar. */\n transformPanel: trigger('transformPanel', [\n transition('void => enter-dropdown', animate('120ms cubic-bezier(0, 0, 0.2, 1)', keyframes([\n style({ opacity: 0, transform: 'scale(1, 0.8)' }),\n style({ opacity: 1, transform: 'scale(1, 1)' }),\n ]))),\n transition('void => enter-dialog', animate('150ms cubic-bezier(0, 0, 0.2, 1)', keyframes([\n style({ opacity: 0, transform: 'scale(0.7)' }),\n style({ transform: 'none', opacity: 1 }),\n ]))),\n transition('* => void', animate('100ms linear', style({ opacity: 0 }))),\n ]),\n /** Fades in the content of the calendar. */\n fadeInCalendar: trigger('fadeInCalendar', [\n state('void', style({ opacity: 0 })),\n state('enter', style({ opacity: 1 })),\n // TODO(crisbeto): this animation should be removed since it isn't quite on spec, but we\n // need to keep it until #12440 gets in, otherwise the exit animation will look glitchy.\n transition('void => *', animate('120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')),\n ]),\n};\n\n/** Used to generate a unique ID for each datepicker instance. */\nlet datepickerUid = 0;\n/** Injection token that determines the scroll handling while the calendar is open. */\nconst MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy');\n/** @docs-private */\nfunction MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_DATEPICKER_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,\n};\n// Boilerplate for applying mixins to MatDatepickerContent.\n/** @docs-private */\nconst _MatDatepickerContentBase = mixinColor(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n});\n/**\n * Component used as the content for the datepicker overlay. We use this instead of using\n * MatCalendar directly as the content so we can control the initial focus. This also gives us a\n * place to put additional features of the overlay that are not part of the calendar itself in the\n * future. (e.g. confirmation buttons).\n * @docs-private\n */\nclass MatDatepickerContent extends _MatDatepickerContentBase {\n constructor(elementRef, _changeDetectorRef, _globalModel, _dateAdapter, _rangeSelectionStrategy, intl) {\n super(elementRef);\n this._changeDetectorRef = _changeDetectorRef;\n this._globalModel = _globalModel;\n this._dateAdapter = _dateAdapter;\n this._rangeSelectionStrategy = _rangeSelectionStrategy;\n this._subscriptions = new Subscription();\n /** Emits when an animation has finished. */\n this._animationDone = new Subject();\n /** Portal with projected action buttons. */\n this._actionsPortal = null;\n this._closeButtonText = intl.closeCalendarLabel;\n }\n ngOnInit() {\n // If we have actions, clone the model so that we have the ability to cancel the selection,\n // otherwise update the global model directly. Note that we want to assign this as soon as\n // possible, but `_actionsPortal` isn't available in the constructor so we do it in `ngOnInit`.\n this._model = this._actionsPortal ? this._globalModel.clone() : this._globalModel;\n this._animationState = this.datepicker.touchUi ? 'enter-dialog' : 'enter-dropdown';\n }\n ngAfterViewInit() {\n this._subscriptions.add(this.datepicker.stateChanges.subscribe(() => {\n this._changeDetectorRef.markForCheck();\n }));\n this._calendar.focusActiveCell();\n }\n ngOnDestroy() {\n this._subscriptions.unsubscribe();\n this._animationDone.complete();\n }\n _handleUserSelection(event) {\n const selection = this._model.selection;\n const value = event.value;\n const isRange = selection instanceof DateRange;\n // If we're selecting a range and we have a selection strategy, always pass the value through\n // there. Otherwise don't assign null values to the model, unless we're selecting a range.\n // A null value when picking a range means that the user cancelled the selection (e.g. by\n // pressing escape), whereas when selecting a single value it means that the value didn't\n // change. This isn't very intuitive, but it's here for backwards-compatibility.\n if (isRange && this._rangeSelectionStrategy) {\n const newSelection = this._rangeSelectionStrategy.selectionFinished(value, selection, event.event);\n this._model.updateSelection(newSelection, this);\n }\n else if (value &&\n (isRange || !this._dateAdapter.sameDate(value, selection))) {\n this._model.add(value);\n }\n // Delegate closing the overlay to the actions.\n if ((!this._model || this._model.isComplete()) && !this._actionsPortal) {\n this.datepicker.close();\n }\n }\n _startExitAnimation() {\n this._animationState = 'void';\n this._changeDetectorRef.markForCheck();\n }\n _getSelected() {\n return this._model.selection;\n }\n /** Applies the current pending selection to the global model. */\n _applyPendingSelection() {\n if (this._model !== this._globalModel) {\n this._globalModel.updateSelection(this._model.selection, this);\n }\n }\n}\nMatDatepickerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MatDateSelectionModel }, { token: i1$1.DateAdapter }, { token: MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }, { token: MatDatepickerIntl }], target: i0.ɵɵFactoryTarget.Component });\nMatDatepickerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerContent, selector: \"mat-datepicker-content\", inputs: { color: \"color\" }, host: { listeners: { \"@transformPanel.done\": \"_animationDone.next()\" }, properties: { \"@transformPanel\": \"_animationState\", \"class.mat-datepicker-content-touch\": \"datepicker.touchUi\" }, classAttribute: \"mat-datepicker-content\" }, viewQueries: [{ propertyName: \"_calendar\", first: true, predicate: MatCalendar, descendants: true }], exportAs: [\"matDatepickerContent\"], usesInheritance: true, ngImport: i0, template: \"<div\\n cdkTrapFocus\\n class=\\\"mat-datepicker-content-container\\\"\\n [class.mat-datepicker-content-container-with-actions]=\\\"_actionsPortal\\\">\\n <mat-calendar\\n [id]=\\\"datepicker.id\\\"\\n [ngClass]=\\\"datepicker.panelClass\\\"\\n [startAt]=\\\"datepicker.startAt\\\"\\n [startView]=\\\"datepicker.startView\\\"\\n [minDate]=\\\"datepicker._getMinDate()\\\"\\n [maxDate]=\\\"datepicker._getMaxDate()\\\"\\n [dateFilter]=\\\"datepicker._getDateFilter()\\\"\\n [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\n [selected]=\\\"_getSelected()\\\"\\n [dateClass]=\\\"datepicker.dateClass\\\"\\n [comparisonStart]=\\\"comparisonStart\\\"\\n [comparisonEnd]=\\\"comparisonEnd\\\"\\n [@fadeInCalendar]=\\\"'enter'\\\"\\n (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\"\\n (viewChanged)=\\\"datepicker._viewChanged($event)\\\"\\n (_userSelection)=\\\"_handleUserSelection($event)\\\"></mat-calendar>\\n\\n <ng-template [cdkPortalOutlet]=\\\"_actionsPortal\\\"></ng-template>\\n\\n <!-- Invisible close button for screen reader users. -->\\n <button\\n type=\\\"button\\\"\\n mat-raised-button\\n [color]=\\\"color || 'primary'\\\"\\n class=\\\"mat-datepicker-close-button\\\"\\n [class.cdk-visually-hidden]=\\\"!_closeButtonFocused\\\"\\n (focus)=\\\"_closeButtonFocused = true\\\"\\n (blur)=\\\"_closeButtonFocused = false\\\"\\n (click)=\\\"datepicker.close()\\\">{{ _closeButtonText }}</button>\\n</div>\\n\", styles: [\".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\\n\"], components: [{ type: MatCalendar, selector: \"mat-calendar\", inputs: [\"headerComponent\", \"startAt\", \"startView\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\", \"comparisonStart\", \"comparisonEnd\"], outputs: [\"selectedChange\", \"yearSelected\", \"monthSelected\", \"viewChanged\", \"_userSelection\"], exportAs: [\"matCalendar\"] }, { type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], directives: [{ type: i4.CdkTrapFocus, selector: \"[cdkTrapFocus]\", inputs: [\"cdkTrapFocus\", \"cdkTrapFocusAutoCapture\"], exportAs: [\"cdkTrapFocus\"] }, { type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i8.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [matDatepickerAnimations.transformPanel, matDatepickerAnimations.fadeInCalendar], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerContent, decorators: [{\n type: Component,\n args: [{ selector: 'mat-datepicker-content', host: {\n 'class': 'mat-datepicker-content',\n '[@transformPanel]': '_animationState',\n '(@transformPanel.done)': '_animationDone.next()',\n '[class.mat-datepicker-content-touch]': 'datepicker.touchUi',\n }, animations: [matDatepickerAnimations.transformPanel, matDatepickerAnimations.fadeInCalendar], exportAs: 'matDatepickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: \"<div\\n cdkTrapFocus\\n class=\\\"mat-datepicker-content-container\\\"\\n [class.mat-datepicker-content-container-with-actions]=\\\"_actionsPortal\\\">\\n <mat-calendar\\n [id]=\\\"datepicker.id\\\"\\n [ngClass]=\\\"datepicker.panelClass\\\"\\n [startAt]=\\\"datepicker.startAt\\\"\\n [startView]=\\\"datepicker.startView\\\"\\n [minDate]=\\\"datepicker._getMinDate()\\\"\\n [maxDate]=\\\"datepicker._getMaxDate()\\\"\\n [dateFilter]=\\\"datepicker._getDateFilter()\\\"\\n [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\n [selected]=\\\"_getSelected()\\\"\\n [dateClass]=\\\"datepicker.dateClass\\\"\\n [comparisonStart]=\\\"comparisonStart\\\"\\n [comparisonEnd]=\\\"comparisonEnd\\\"\\n [@fadeInCalendar]=\\\"'enter'\\\"\\n (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\"\\n (viewChanged)=\\\"datepicker._viewChanged($event)\\\"\\n (_userSelection)=\\\"_handleUserSelection($event)\\\"></mat-calendar>\\n\\n <ng-template [cdkPortalOutlet]=\\\"_actionsPortal\\\"></ng-template>\\n\\n <!-- Invisible close button for screen reader users. -->\\n <button\\n type=\\\"button\\\"\\n mat-raised-button\\n [color]=\\\"color || 'primary'\\\"\\n class=\\\"mat-datepicker-close-button\\\"\\n [class.cdk-visually-hidden]=\\\"!_closeButtonFocused\\\"\\n (focus)=\\\"_closeButtonFocused = true\\\"\\n (blur)=\\\"_closeButtonFocused = false\\\"\\n (click)=\\\"datepicker.close()\\\">{{ _closeButtonText }}</button>\\n</div>\\n\", styles: [\".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MatDateSelectionModel }, { type: i1$1.DateAdapter }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_RANGE_SELECTION_STRATEGY]\n }] }, { type: MatDatepickerIntl }];\n }, propDecorators: { _calendar: [{\n type: ViewChild,\n args: [MatCalendar]\n }] } });\n/** Base class for a datepicker. */\nclass MatDatepickerBase {\n constructor(_overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _model) {\n this._overlay = _overlay;\n this._ngZone = _ngZone;\n this._viewContainerRef = _viewContainerRef;\n this._dateAdapter = _dateAdapter;\n this._dir = _dir;\n this._model = _model;\n this._inputStateChanges = Subscription.EMPTY;\n /** The view that the calendar should start in. */\n this.startView = 'month';\n this._touchUi = false;\n /** Preferred position of the datepicker in the X axis. */\n this.xPosition = 'start';\n /** Preferred position of the datepicker in the Y axis. */\n this.yPosition = 'below';\n this._restoreFocus = true;\n /**\n * Emits selected year in multiyear view.\n * This doesn't imply a change on the selected date.\n */\n this.yearSelected = new EventEmitter();\n /**\n * Emits selected month in year view.\n * This doesn't imply a change on the selected date.\n */\n this.monthSelected = new EventEmitter();\n /**\n * Emits when the current view changes.\n */\n this.viewChanged = new EventEmitter(true);\n /** Emits when the datepicker has been opened. */\n this.openedStream = new EventEmitter();\n /** Emits when the datepicker has been closed. */\n this.closedStream = new EventEmitter();\n this._opened = false;\n /** The id for the datepicker calendar. */\n this.id = `mat-datepicker-${datepickerUid++}`;\n /** The element that was focused before the datepicker was opened. */\n this._focusedElementBeforeOpen = null;\n /** Unique class that will be added to the backdrop so that the test harnesses can look it up. */\n this._backdropHarnessClass = `${this.id}-backdrop`;\n /** Emits when the datepicker's state changes. */\n this.stateChanges = new Subject();\n if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw createMissingDateImplError('DateAdapter');\n }\n this._scrollStrategy = scrollStrategy;\n }\n /** The date to open the calendar to initially. */\n get startAt() {\n // If an explicit startAt is set we start there, otherwise we start at whatever the currently\n // selected value is.\n return this._startAt || (this.datepickerInput ? this.datepickerInput.getStartValue() : null);\n }\n set startAt(value) {\n this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n }\n /** Color palette to use on the datepicker's calendar. */\n get color() {\n return (this._color || (this.datepickerInput ? this.datepickerInput.getThemePalette() : undefined));\n }\n set color(value) {\n this._color = value;\n }\n /**\n * Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather\n * than a dropdown and elements have more padding to allow for bigger touch targets.\n */\n get touchUi() {\n return this._touchUi;\n }\n set touchUi(value) {\n this._touchUi = coerceBooleanProperty(value);\n }\n /** Whether the datepicker pop-up should be disabled. */\n get disabled() {\n return this._disabled === undefined && this.datepickerInput\n ? this.datepickerInput.disabled\n : !!this._disabled;\n }\n set disabled(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._disabled) {\n this._disabled = newValue;\n this.stateChanges.next(undefined);\n }\n }\n /**\n * Whether to restore focus to the previously-focused element when the calendar is closed.\n * Note that automatic focus restoration is an accessibility feature and it is recommended that\n * you provide your own equivalent, if you decide to turn it off.\n */\n get restoreFocus() {\n return this._restoreFocus;\n }\n set restoreFocus(value) {\n this._restoreFocus = coerceBooleanProperty(value);\n }\n /**\n * Classes to be passed to the date picker panel.\n * Supports string and string array values, similar to `ngClass`.\n */\n get panelClass() {\n return this._panelClass;\n }\n set panelClass(value) {\n this._panelClass = coerceStringArray(value);\n }\n /** Whether the calendar is open. */\n get opened() {\n return this._opened;\n }\n set opened(value) {\n coerceBooleanProperty(value) ? this.open() : this.close();\n }\n /** The minimum selectable date. */\n _getMinDate() {\n return this.datepickerInput && this.datepickerInput.min;\n }\n /** The maximum selectable date. */\n _getMaxDate() {\n return this.datepickerInput && this.datepickerInput.max;\n }\n _getDateFilter() {\n return this.datepickerInput && this.datepickerInput.dateFilter;\n }\n ngOnChanges(changes) {\n const positionChange = changes['xPosition'] || changes['yPosition'];\n if (positionChange && !positionChange.firstChange && this._overlayRef) {\n const positionStrategy = this._overlayRef.getConfig().positionStrategy;\n if (positionStrategy instanceof FlexibleConnectedPositionStrategy) {\n this._setConnectedPositions(positionStrategy);\n if (this.opened) {\n this._overlayRef.updatePosition();\n }\n }\n }\n this.stateChanges.next(undefined);\n }\n ngOnDestroy() {\n this._destroyOverlay();\n this.close();\n this._inputStateChanges.unsubscribe();\n this.stateChanges.complete();\n }\n /** Selects the given date */\n select(date) {\n this._model.add(date);\n }\n /** Emits the selected year in multiyear view */\n _selectYear(normalizedYear) {\n this.yearSelected.emit(normalizedYear);\n }\n /** Emits selected month in year view */\n _selectMonth(normalizedMonth) {\n this.monthSelected.emit(normalizedMonth);\n }\n /** Emits changed view */\n _viewChanged(view) {\n this.viewChanged.emit(view);\n }\n /**\n * Register an input with this datepicker.\n * @param input The datepicker input to register with this datepicker.\n * @returns Selection model that the input should hook itself up to.\n */\n registerInput(input) {\n if (this.datepickerInput && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('A MatDatepicker can only be associated with a single input.');\n }\n this._inputStateChanges.unsubscribe();\n this.datepickerInput = input;\n this._inputStateChanges = input.stateChanges.subscribe(() => this.stateChanges.next(undefined));\n return this._model;\n }\n /**\n * Registers a portal containing action buttons with the datepicker.\n * @param portal Portal to be registered.\n */\n registerActions(portal) {\n if (this._actionsPortal && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('A MatDatepicker can only be associated with a single actions row.');\n }\n this._actionsPortal = portal;\n }\n /**\n * Removes a portal containing action buttons from the datepicker.\n * @param portal Portal to be removed.\n */\n removeActions(portal) {\n if (portal === this._actionsPortal) {\n this._actionsPortal = null;\n }\n }\n /** Open the calendar. */\n open() {\n if (this._opened || this.disabled) {\n return;\n }\n if (!this.datepickerInput && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Attempted to open an MatDatepicker with no associated input.');\n }\n this._focusedElementBeforeOpen = _getFocusedElementPierceShadowDom();\n this._openOverlay();\n this._opened = true;\n this.openedStream.emit();\n }\n /** Close the calendar. */\n close() {\n if (!this._opened) {\n return;\n }\n if (this._componentRef) {\n const instance = this._componentRef.instance;\n instance._startExitAnimation();\n instance._animationDone.pipe(take(1)).subscribe(() => this._destroyOverlay());\n }\n const completeClose = () => {\n // The `_opened` could've been reset already if\n // we got two events in quick succession.\n if (this._opened) {\n this._opened = false;\n this.closedStream.emit();\n this._focusedElementBeforeOpen = null;\n }\n };\n if (this._restoreFocus &&\n this._focusedElementBeforeOpen &&\n typeof this._focusedElementBeforeOpen.focus === 'function') {\n // Because IE moves focus asynchronously, we can't count on it being restored before we've\n // marked the datepicker as closed. If the event fires out of sequence and the element that\n // we're refocusing opens the datepicker on focus, the user could be stuck with not being\n // able to close the calendar at all. We work around it by making the logic, that marks\n // the datepicker as closed, async as well.\n this._focusedElementBeforeOpen.focus();\n setTimeout(completeClose);\n }\n else {\n completeClose();\n }\n }\n /** Applies the current pending selection on the overlay to the model. */\n _applyPendingSelection() {\n var _a, _b;\n (_b = (_a = this._componentRef) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b._applyPendingSelection();\n }\n /** Forwards relevant values from the datepicker to the datepicker content inside the overlay. */\n _forwardContentValues(instance) {\n instance.datepicker = this;\n instance.color = this.color;\n instance._actionsPortal = this._actionsPortal;\n }\n /** Opens the overlay with the calendar. */\n _openOverlay() {\n this._destroyOverlay();\n const isDialog = this.touchUi;\n const labelId = this.datepickerInput.getOverlayLabelId();\n const portal = new ComponentPortal(MatDatepickerContent, this._viewContainerRef);\n const overlayRef = (this._overlayRef = this._overlay.create(new OverlayConfig({\n positionStrategy: isDialog ? this._getDialogStrategy() : this._getDropdownStrategy(),\n hasBackdrop: true,\n backdropClass: [\n isDialog ? 'cdk-overlay-dark-backdrop' : 'mat-overlay-transparent-backdrop',\n this._backdropHarnessClass,\n ],\n direction: this._dir,\n scrollStrategy: isDialog ? this._overlay.scrollStrategies.block() : this._scrollStrategy(),\n panelClass: `mat-datepicker-${isDialog ? 'dialog' : 'popup'}`,\n })));\n const overlayElement = overlayRef.overlayElement;\n overlayElement.setAttribute('role', 'dialog');\n if (labelId) {\n overlayElement.setAttribute('aria-labelledby', labelId);\n }\n if (isDialog) {\n overlayElement.setAttribute('aria-modal', 'true');\n }\n this._getCloseStream(overlayRef).subscribe(event => {\n if (event) {\n event.preventDefault();\n }\n this.close();\n });\n this._componentRef = overlayRef.attach(portal);\n this._forwardContentValues(this._componentRef.instance);\n // Update the position once the calendar has rendered. Only relevant in dropdown mode.\n if (!isDialog) {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => overlayRef.updatePosition());\n }\n }\n /** Destroys the current overlay. */\n _destroyOverlay() {\n if (this._overlayRef) {\n this._overlayRef.dispose();\n this._overlayRef = this._componentRef = null;\n }\n }\n /** Gets a position strategy that will open the calendar as a dropdown. */\n _getDialogStrategy() {\n return this._overlay.position().global().centerHorizontally().centerVertically();\n }\n /** Gets a position strategy that will open the calendar as a dropdown. */\n _getDropdownStrategy() {\n const strategy = this._overlay\n .position()\n .flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin())\n .withTransformOriginOn('.mat-datepicker-content')\n .withFlexibleDimensions(false)\n .withViewportMargin(8)\n .withLockedPosition();\n return this._setConnectedPositions(strategy);\n }\n /** Sets the positions of the datepicker in dropdown mode based on the current configuration. */\n _setConnectedPositions(strategy) {\n const primaryX = this.xPosition === 'end' ? 'end' : 'start';\n const secondaryX = primaryX === 'start' ? 'end' : 'start';\n const primaryY = this.yPosition === 'above' ? 'bottom' : 'top';\n const secondaryY = primaryY === 'top' ? 'bottom' : 'top';\n return strategy.withPositions([\n {\n originX: primaryX,\n originY: secondaryY,\n overlayX: primaryX,\n overlayY: primaryY,\n },\n {\n originX: primaryX,\n originY: primaryY,\n overlayX: primaryX,\n overlayY: secondaryY,\n },\n {\n originX: secondaryX,\n originY: secondaryY,\n overlayX: secondaryX,\n overlayY: primaryY,\n },\n {\n originX: secondaryX,\n originY: primaryY,\n overlayX: secondaryX,\n overlayY: secondaryY,\n },\n ]);\n }\n /** Gets an observable that will emit when the overlay is supposed to be closed. */\n _getCloseStream(overlayRef) {\n return merge(overlayRef.backdropClick(), overlayRef.detachments(), overlayRef.keydownEvents().pipe(filter(event => {\n // Closing on alt + up is only valid when there's an input associated with the datepicker.\n return ((event.keyCode === ESCAPE && !hasModifierKey(event)) ||\n (this.datepickerInput && hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW));\n })));\n }\n}\nMatDatepickerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerBase, deps: [{ token: i9.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MAT_DATEPICKER_SCROLL_STRATEGY }, { token: i1$1.DateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: MatDateSelectionModel }], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerBase, inputs: { calendarHeaderComponent: \"calendarHeaderComponent\", startAt: \"startAt\", startView: \"startView\", color: \"color\", touchUi: \"touchUi\", disabled: \"disabled\", xPosition: \"xPosition\", yPosition: \"yPosition\", restoreFocus: \"restoreFocus\", dateClass: \"dateClass\", panelClass: \"panelClass\", opened: \"opened\" }, outputs: { yearSelected: \"yearSelected\", monthSelected: \"monthSelected\", viewChanged: \"viewChanged\", openedStream: \"opened\", closedStream: \"closed\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DATEPICKER_SCROLL_STRATEGY]\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }, { type: MatDateSelectionModel }];\n }, propDecorators: { calendarHeaderComponent: [{\n type: Input\n }], startAt: [{\n type: Input\n }], startView: [{\n type: Input\n }], color: [{\n type: Input\n }], touchUi: [{\n type: Input\n }], disabled: [{\n type: Input\n }], xPosition: [{\n type: Input\n }], yPosition: [{\n type: Input\n }], restoreFocus: [{\n type: Input\n }], yearSelected: [{\n type: Output\n }], monthSelected: [{\n type: Output\n }], viewChanged: [{\n type: Output\n }], dateClass: [{\n type: Input\n }], openedStream: [{\n type: Output,\n args: ['opened']\n }], closedStream: [{\n type: Output,\n args: ['closed']\n }], panelClass: [{\n type: Input\n }], opened: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(mmalerba): We use a component instead of a directive here so the user can use implicit\n// template reference variables (e.g. #d vs #d=\"matDatepicker\"). We can change this to a directive\n// if angular adds support for `exportAs: '$implicit'` on directives.\n/** Component responsible for managing the datepicker popup/dialog. */\nclass MatDatepicker extends MatDatepickerBase {\n}\nMatDatepicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepicker, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatDatepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepicker, selector: \"mat-datepicker\", providers: [\n MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,\n { provide: MatDatepickerBase, useExisting: MatDatepicker },\n ], exportAs: [\"matDatepicker\"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepicker, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-datepicker',\n template: '',\n exportAs: 'matDatepicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER,\n { provide: MatDatepickerBase, useExisting: MatDatepicker },\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An event used for datepicker input and change events. We don't always have access to a native\n * input or change event because the event may have been triggered by the user clicking on the\n * calendar popup. For consistency, we always use MatDatepickerInputEvent instead.\n */\nclass MatDatepickerInputEvent {\n constructor(\n /** Reference to the datepicker input component that emitted the event. */\n target, \n /** Reference to the native input element associated with the datepicker input. */\n targetElement) {\n this.target = target;\n this.targetElement = targetElement;\n this.value = this.target.value;\n }\n}\n/** Base class for datepicker inputs. */\nclass MatDatepickerInputBase {\n constructor(_elementRef, _dateAdapter, _dateFormats) {\n this._elementRef = _elementRef;\n this._dateAdapter = _dateAdapter;\n this._dateFormats = _dateFormats;\n /** Emits when a `change` event is fired on this `<input>`. */\n this.dateChange = new EventEmitter();\n /** Emits when an `input` event is fired on this `<input>`. */\n this.dateInput = new EventEmitter();\n /** Emits when the internal state has changed */\n this.stateChanges = new Subject();\n this._onTouched = () => { };\n this._validatorOnChange = () => { };\n this._cvaOnChange = () => { };\n this._valueChangesSubscription = Subscription.EMPTY;\n this._localeSubscription = Subscription.EMPTY;\n /** The form control validator for whether the input parses. */\n this._parseValidator = () => {\n return this._lastValueValid\n ? null\n : { 'matDatepickerParse': { 'text': this._elementRef.nativeElement.value } };\n };\n /** The form control validator for the date filter. */\n this._filterValidator = (control) => {\n const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));\n return !controlValue || this._matchesFilter(controlValue)\n ? null\n : { 'matDatepickerFilter': true };\n };\n /** The form control validator for the min date. */\n this._minValidator = (control) => {\n const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));\n const min = this._getMinDate();\n return !min || !controlValue || this._dateAdapter.compareDate(min, controlValue) <= 0\n ? null\n : { 'matDatepickerMin': { 'min': min, 'actual': controlValue } };\n };\n /** The form control validator for the max date. */\n this._maxValidator = (control) => {\n const controlValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));\n const max = this._getMaxDate();\n return !max || !controlValue || this._dateAdapter.compareDate(max, controlValue) >= 0\n ? null\n : { 'matDatepickerMax': { 'max': max, 'actual': controlValue } };\n };\n /** Whether the last value set on the input was valid. */\n this._lastValueValid = false;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._dateAdapter) {\n throw createMissingDateImplError('DateAdapter');\n }\n if (!this._dateFormats) {\n throw createMissingDateImplError('MAT_DATE_FORMATS');\n }\n }\n // Update the displayed date when the locale changes.\n this._localeSubscription = _dateAdapter.localeChanges.subscribe(() => {\n this._assignValueProgrammatically(this.value);\n });\n }\n /** The value of the input. */\n get value() {\n return this._model ? this._getValueFromModel(this._model.selection) : this._pendingValue;\n }\n set value(value) {\n this._assignValueProgrammatically(value);\n }\n /** Whether the datepicker-input is disabled. */\n get disabled() {\n return !!this._disabled || this._parentDisabled();\n }\n set disabled(value) {\n const newValue = coerceBooleanProperty(value);\n const element = this._elementRef.nativeElement;\n if (this._disabled !== newValue) {\n this._disabled = newValue;\n this.stateChanges.next(undefined);\n }\n // We need to null check the `blur` method, because it's undefined during SSR.\n // In Ivy static bindings are invoked earlier, before the element is attached to the DOM.\n // This can cause an error to be thrown in some browsers (IE/Edge) which assert that the\n // element has been inserted.\n if (newValue && this._isInitialized && element.blur) {\n // Normally, native input elements automatically blur if they turn disabled. This behavior\n // is problematic, because it would mean that it triggers another change detection cycle,\n // which then causes a changed after checked error if the input element was focused before.\n element.blur();\n }\n }\n /** Gets the base validator functions. */\n _getValidators() {\n return [this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator];\n }\n /** Registers a date selection model with the input. */\n _registerModel(model) {\n this._model = model;\n this._valueChangesSubscription.unsubscribe();\n if (this._pendingValue) {\n this._assignValue(this._pendingValue);\n }\n this._valueChangesSubscription = this._model.selectionChanged.subscribe(event => {\n if (this._shouldHandleChangeEvent(event)) {\n const value = this._getValueFromModel(event.selection);\n this._lastValueValid = this._isValidValue(value);\n this._cvaOnChange(value);\n this._onTouched();\n this._formatValue(value);\n this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n }\n });\n }\n ngAfterViewInit() {\n this._isInitialized = true;\n }\n ngOnChanges(changes) {\n if (dateInputsHaveChanged(changes, this._dateAdapter)) {\n this.stateChanges.next(undefined);\n }\n }\n ngOnDestroy() {\n this._valueChangesSubscription.unsubscribe();\n this._localeSubscription.unsubscribe();\n this.stateChanges.complete();\n }\n /** @docs-private */\n registerOnValidatorChange(fn) {\n this._validatorOnChange = fn;\n }\n /** @docs-private */\n validate(c) {\n return this._validator ? this._validator(c) : null;\n }\n // Implemented as part of ControlValueAccessor.\n writeValue(value) {\n this._assignValueProgrammatically(value);\n }\n // Implemented as part of ControlValueAccessor.\n registerOnChange(fn) {\n this._cvaOnChange = fn;\n }\n // Implemented as part of ControlValueAccessor.\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n // Implemented as part of ControlValueAccessor.\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n }\n _onKeydown(event) {\n const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;\n if (isAltDownArrow && !this._elementRef.nativeElement.readOnly) {\n this._openPopup();\n event.preventDefault();\n }\n }\n _onInput(value) {\n const lastValueWasValid = this._lastValueValid;\n let date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);\n this._lastValueValid = this._isValidValue(date);\n date = this._dateAdapter.getValidDateOrNull(date);\n if (!this._dateAdapter.sameDate(date, this.value)) {\n this._assignValue(date);\n this._cvaOnChange(date);\n this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n }\n else {\n // Call the CVA change handler for invalid values\n // since this is what marks the control as dirty.\n if (value && !this.value) {\n this._cvaOnChange(date);\n }\n if (lastValueWasValid !== this._lastValueValid) {\n this._validatorOnChange();\n }\n }\n }\n _onChange() {\n this.dateChange.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));\n }\n /** Handles blur events on the input. */\n _onBlur() {\n // Reformat the input only if we have a valid value.\n if (this.value) {\n this._formatValue(this.value);\n }\n this._onTouched();\n }\n /** Formats a value and sets it on the input element. */\n _formatValue(value) {\n this._elementRef.nativeElement.value = value\n ? this._dateAdapter.format(value, this._dateFormats.display.dateInput)\n : '';\n }\n /** Assigns a value to the model. */\n _assignValue(value) {\n // We may get some incoming values before the model was\n // assigned. Save the value so that we can assign it later.\n if (this._model) {\n this._assignValueToModel(value);\n this._pendingValue = null;\n }\n else {\n this._pendingValue = value;\n }\n }\n /** Whether a value is considered valid. */\n _isValidValue(value) {\n return !value || this._dateAdapter.isValid(value);\n }\n /**\n * Checks whether a parent control is disabled. This is in place so that it can be overridden\n * by inputs extending this one which can be placed inside of a group that can be disabled.\n */\n _parentDisabled() {\n return false;\n }\n /** Programmatically assigns a value to the input. */\n _assignValueProgrammatically(value) {\n value = this._dateAdapter.deserialize(value);\n this._lastValueValid = this._isValidValue(value);\n value = this._dateAdapter.getValidDateOrNull(value);\n this._assignValue(value);\n this._formatValue(value);\n }\n /** Gets whether a value matches the current date filter. */\n _matchesFilter(value) {\n const filter = this._getDateFilter();\n return !filter || filter(value);\n }\n}\nMatDatepickerInputBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerInputBase, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerInputBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerInputBase, inputs: { value: \"value\", disabled: \"disabled\" }, outputs: { dateChange: \"dateChange\", dateInput: \"dateInput\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerInputBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }];\n }, propDecorators: { value: [{\n type: Input\n }], disabled: [{\n type: Input\n }], dateChange: [{\n type: Output\n }], dateInput: [{\n type: Output\n }] } });\n/**\n * Checks whether the `SimpleChanges` object from an `ngOnChanges`\n * callback has any changes, accounting for date objects.\n */\nfunction dateInputsHaveChanged(changes, adapter) {\n const keys = Object.keys(changes);\n for (let key of keys) {\n const { previousValue, currentValue } = changes[key];\n if (adapter.isDateInstance(previousValue) && adapter.isDateInstance(currentValue)) {\n if (!adapter.sameDate(previousValue, currentValue)) {\n return true;\n }\n }\n else {\n return true;\n }\n }\n return false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nconst MAT_DATEPICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatDatepickerInput),\n multi: true,\n};\n/** @docs-private */\nconst MAT_DATEPICKER_VALIDATORS = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MatDatepickerInput),\n multi: true,\n};\n/** Directive used to connect an input to a MatDatepicker. */\nclass MatDatepickerInput extends MatDatepickerInputBase {\n constructor(elementRef, dateAdapter, dateFormats, _formField) {\n super(elementRef, dateAdapter, dateFormats);\n this._formField = _formField;\n this._closedSubscription = Subscription.EMPTY;\n this._validator = Validators.compose(super._getValidators());\n }\n /** The datepicker that this input is associated with. */\n set matDatepicker(datepicker) {\n if (datepicker) {\n this._datepicker = datepicker;\n this._closedSubscription = datepicker.closedStream.subscribe(() => this._onTouched());\n this._registerModel(datepicker.registerInput(this));\n }\n }\n /** The minimum valid date. */\n get min() {\n return this._min;\n }\n set min(value) {\n const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n if (!this._dateAdapter.sameDate(validValue, this._min)) {\n this._min = validValue;\n this._validatorOnChange();\n }\n }\n /** The maximum valid date. */\n get max() {\n return this._max;\n }\n set max(value) {\n const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n if (!this._dateAdapter.sameDate(validValue, this._max)) {\n this._max = validValue;\n this._validatorOnChange();\n }\n }\n /** Function that can be used to filter out dates within the datepicker. */\n get dateFilter() {\n return this._dateFilter;\n }\n set dateFilter(value) {\n const wasMatchingValue = this._matchesFilter(this.value);\n this._dateFilter = value;\n if (this._matchesFilter(this.value) !== wasMatchingValue) {\n this._validatorOnChange();\n }\n }\n /**\n * Gets the element that the datepicker popup should be connected to.\n * @return The element to connect the popup to.\n */\n getConnectedOverlayOrigin() {\n return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;\n }\n /** Gets the ID of an element that should be used a description for the calendar overlay. */\n getOverlayLabelId() {\n if (this._formField) {\n return this._formField.getLabelId();\n }\n return this._elementRef.nativeElement.getAttribute('aria-labelledby');\n }\n /** Returns the palette used by the input's form field, if any. */\n getThemePalette() {\n return this._formField ? this._formField.color : undefined;\n }\n /** Gets the value at which the calendar should start. */\n getStartValue() {\n return this.value;\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._closedSubscription.unsubscribe();\n }\n /** Opens the associated datepicker. */\n _openPopup() {\n if (this._datepicker) {\n this._datepicker.open();\n }\n }\n _getValueFromModel(modelValue) {\n return modelValue;\n }\n _assignValueToModel(value) {\n if (this._model) {\n this._model.updateSelection(value, this);\n }\n }\n /** Gets the input's minimum date. */\n _getMinDate() {\n return this._min;\n }\n /** Gets the input's maximum date. */\n _getMaxDate() {\n return this._max;\n }\n /** Gets the input's date filtering function. */\n _getDateFilter() {\n return this._dateFilter;\n }\n _shouldHandleChangeEvent(event) {\n return event.source !== this;\n }\n}\nMatDatepickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerInput, deps: [{ token: i0.ElementRef }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerInput, selector: \"input[matDatepicker]\", inputs: { matDatepicker: \"matDatepicker\", min: \"min\", max: \"max\", dateFilter: [\"matDatepickerFilter\", \"dateFilter\"] }, host: { listeners: { \"input\": \"_onInput($event.target.value)\", \"change\": \"_onChange()\", \"blur\": \"_onBlur()\", \"keydown\": \"_onKeydown($event)\" }, properties: { \"attr.aria-haspopup\": \"_datepicker ? \\\"dialog\\\" : null\", \"attr.aria-owns\": \"(_datepicker?.opened && _datepicker.id) || null\", \"attr.min\": \"min ? _dateAdapter.toIso8601(min) : null\", \"attr.max\": \"max ? _dateAdapter.toIso8601(max) : null\", \"attr.data-mat-calendar\": \"_datepicker ? _datepicker.id : null\", \"disabled\": \"disabled\" }, classAttribute: \"mat-datepicker-input\" }, providers: [\n MAT_DATEPICKER_VALUE_ACCESSOR,\n MAT_DATEPICKER_VALIDATORS,\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },\n ], exportAs: [\"matDatepickerInput\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerInput, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[matDatepicker]',\n providers: [\n MAT_DATEPICKER_VALUE_ACCESSOR,\n MAT_DATEPICKER_VALIDATORS,\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput },\n ],\n host: {\n 'class': 'mat-datepicker-input',\n '[attr.aria-haspopup]': '_datepicker ? \"dialog\" : null',\n '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',\n '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',\n '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',\n // Used by the test harness to tie this input to its calendar. We can't depend on\n // `aria-owns` for this, because it's only defined while the calendar is open.\n '[attr.data-mat-calendar]': '_datepicker ? _datepicker.id : null',\n '[disabled]': 'disabled',\n '(input)': '_onInput($event.target.value)',\n '(change)': '_onChange()',\n '(blur)': '_onBlur()',\n '(keydown)': '_onKeydown($event)',\n },\n exportAs: 'matDatepickerInput',\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }, { type: i2$1.MatFormField, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_FORM_FIELD]\n }] }];\n }, propDecorators: { matDatepicker: [{\n type: Input\n }], min: [{\n type: Input\n }], max: [{\n type: Input\n }], dateFilter: [{\n type: Input,\n args: ['matDatepickerFilter']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Can be used to override the icon of a `matDatepickerToggle`. */\nclass MatDatepickerToggleIcon {\n}\nMatDatepickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerToggleIcon, selector: \"[matDatepickerToggleIcon]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerToggleIcon, decorators: [{\n type: Directive,\n args: [{\n selector: '[matDatepickerToggleIcon]',\n }]\n }] });\nclass MatDatepickerToggle {\n constructor(_intl, _changeDetectorRef, defaultTabIndex) {\n this._intl = _intl;\n this._changeDetectorRef = _changeDetectorRef;\n this._stateChanges = Subscription.EMPTY;\n const parsedTabIndex = Number(defaultTabIndex);\n this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;\n }\n /** Whether the toggle button is disabled. */\n get disabled() {\n if (this._disabled === undefined && this.datepicker) {\n return this.datepicker.disabled;\n }\n return !!this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n ngOnChanges(changes) {\n if (changes['datepicker']) {\n this._watchStateChanges();\n }\n }\n ngOnDestroy() {\n this._stateChanges.unsubscribe();\n }\n ngAfterContentInit() {\n this._watchStateChanges();\n }\n _open(event) {\n if (this.datepicker && !this.disabled) {\n this.datepicker.open();\n event.stopPropagation();\n }\n }\n _watchStateChanges() {\n const datepickerStateChanged = this.datepicker ? this.datepicker.stateChanges : of();\n const inputStateChanged = this.datepicker && this.datepicker.datepickerInput\n ? this.datepicker.datepickerInput.stateChanges\n : of();\n const datepickerToggled = this.datepicker\n ? merge(this.datepicker.openedStream, this.datepicker.closedStream)\n : of();\n this._stateChanges.unsubscribe();\n this._stateChanges = merge(this._intl.changes, datepickerStateChanged, inputStateChanged, datepickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());\n }\n}\nMatDatepickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerToggle, deps: [{ token: MatDatepickerIntl }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDatepickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerToggle, selector: \"mat-datepicker-toggle\", inputs: { datepicker: [\"for\", \"datepicker\"], tabIndex: \"tabIndex\", ariaLabel: [\"aria-label\", \"ariaLabel\"], disabled: \"disabled\", disableRipple: \"disableRipple\" }, host: { listeners: { \"click\": \"_open($event)\" }, properties: { \"attr.tabindex\": \"null\", \"class.mat-datepicker-toggle-active\": \"datepicker && datepicker.opened\", \"class.mat-accent\": \"datepicker && datepicker.color === \\\"accent\\\"\", \"class.mat-warn\": \"datepicker && datepicker.color === \\\"warn\\\"\", \"attr.data-mat-calendar\": \"datepicker ? datepicker.id : null\" }, classAttribute: \"mat-datepicker-toggle\" }, queries: [{ propertyName: \"_customIcon\", first: true, predicate: MatDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: \"_button\", first: true, predicate: [\"button\"], descendants: true }], exportAs: [\"matDatepickerToggle\"], usesOnChanges: true, ngImport: i0, template: \"<button\\n #button\\n mat-icon-button\\n type=\\\"button\\\"\\n [attr.aria-haspopup]=\\\"datepicker ? 'dialog' : null\\\"\\n [attr.aria-label]=\\\"ariaLabel || _intl.openCalendarLabel\\\"\\n [attr.tabindex]=\\\"disabled ? -1 : tabIndex\\\"\\n [disabled]=\\\"disabled\\\"\\n [disableRipple]=\\\"disableRipple\\\">\\n\\n <svg\\n *ngIf=\\\"!_customIcon\\\"\\n class=\\\"mat-datepicker-toggle-default-icon\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n width=\\\"24px\\\"\\n height=\\\"24px\\\"\\n fill=\\\"currentColor\\\"\\n focusable=\\\"false\\\">\\n <path d=\\\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\\\"/>\\n </svg>\\n\\n <ng-content select=\\\"[matDatepickerToggleIcon]\\\"></ng-content>\\n</button>\\n\", styles: [\".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\\n\"], components: [{ type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerToggle, decorators: [{\n type: Component,\n args: [{ selector: 'mat-datepicker-toggle', host: {\n 'class': 'mat-datepicker-toggle',\n '[attr.tabindex]': 'null',\n '[class.mat-datepicker-toggle-active]': 'datepicker && datepicker.opened',\n '[class.mat-accent]': 'datepicker && datepicker.color === \"accent\"',\n '[class.mat-warn]': 'datepicker && datepicker.color === \"warn\"',\n // Used by the test harness to tie this toggle to its datepicker.\n '[attr.data-mat-calendar]': 'datepicker ? datepicker.id : null',\n // Bind the `click` on the host, rather than the inner `button`, so that we can call\n // `stopPropagation` on it without affecting the user's `click` handlers. We need to stop\n // it so that the input doesn't get focused automatically by the form field (See #21836).\n '(click)': '_open($event)',\n }, exportAs: 'matDatepickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<button\\n #button\\n mat-icon-button\\n type=\\\"button\\\"\\n [attr.aria-haspopup]=\\\"datepicker ? 'dialog' : null\\\"\\n [attr.aria-label]=\\\"ariaLabel || _intl.openCalendarLabel\\\"\\n [attr.tabindex]=\\\"disabled ? -1 : tabIndex\\\"\\n [disabled]=\\\"disabled\\\"\\n [disableRipple]=\\\"disableRipple\\\">\\n\\n <svg\\n *ngIf=\\\"!_customIcon\\\"\\n class=\\\"mat-datepicker-toggle-default-icon\\\"\\n viewBox=\\\"0 0 24 24\\\"\\n width=\\\"24px\\\"\\n height=\\\"24px\\\"\\n fill=\\\"currentColor\\\"\\n focusable=\\\"false\\\">\\n <path d=\\\"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z\\\"/>\\n </svg>\\n\\n <ng-content select=\\\"[matDatepickerToggleIcon]\\\"></ng-content>\\n</button>\\n\", styles: [\".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatDatepickerIntl }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n }, propDecorators: { datepicker: [{\n type: Input,\n args: ['for']\n }], tabIndex: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], disabled: [{\n type: Input\n }], disableRipple: [{\n type: Input\n }], _customIcon: [{\n type: ContentChild,\n args: [MatDatepickerToggleIcon]\n }], _button: [{\n type: ViewChild,\n args: ['button']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Used to provide the date range input wrapper component\n * to the parts without circular dependencies.\n */\nconst MAT_DATE_RANGE_INPUT_PARENT = new InjectionToken('MAT_DATE_RANGE_INPUT_PARENT');\n/**\n * Base class for the individual inputs that can be projected inside a `mat-date-range-input`.\n */\nclass MatDateRangeInputPartBase extends MatDatepickerInputBase {\n constructor(_rangeInput, elementRef, _defaultErrorStateMatcher, _injector, _parentForm, _parentFormGroup, dateAdapter, dateFormats) {\n super(elementRef, dateAdapter, dateFormats);\n this._rangeInput = _rangeInput;\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._injector = _injector;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n }\n ngOnInit() {\n // We need the date input to provide itself as a `ControlValueAccessor` and a `Validator`, while\n // injecting its `NgControl` so that the error state is handled correctly. This introduces a\n // circular dependency, because both `ControlValueAccessor` and `Validator` depend on the input\n // itself. Usually we can work around it for the CVA, but there's no API to do it for the\n // validator. We work around it here by injecting the `NgControl` in `ngOnInit`, after\n // everything has been resolved.\n // tslint:disable-next-line:no-bitwise\n const ngControl = this._injector.get(NgControl, null, InjectFlags.Self | InjectFlags.Optional);\n if (ngControl) {\n this.ngControl = ngControl;\n }\n }\n ngDoCheck() {\n if (this.ngControl) {\n // We need to re-evaluate this on every change detection cycle, because there are some\n // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n // that whatever logic is in here has to be super lean or we risk destroying the performance.\n this.updateErrorState();\n }\n }\n /** Gets whether the input is empty. */\n isEmpty() {\n return this._elementRef.nativeElement.value.length === 0;\n }\n /** Gets the placeholder of the input. */\n _getPlaceholder() {\n return this._elementRef.nativeElement.placeholder;\n }\n /** Focuses the input. */\n focus() {\n this._elementRef.nativeElement.focus();\n }\n /** Handles `input` events on the input element. */\n _onInput(value) {\n super._onInput(value);\n this._rangeInput._handleChildValueChange();\n }\n /** Opens the datepicker associated with the input. */\n _openPopup() {\n this._rangeInput._openDatepicker();\n }\n /** Gets the minimum date from the range input. */\n _getMinDate() {\n return this._rangeInput.min;\n }\n /** Gets the maximum date from the range input. */\n _getMaxDate() {\n return this._rangeInput.max;\n }\n /** Gets the date filter function from the range input. */\n _getDateFilter() {\n return this._rangeInput.dateFilter;\n }\n _parentDisabled() {\n return this._rangeInput._groupDisabled;\n }\n _shouldHandleChangeEvent({ source }) {\n return source !== this._rangeInput._startInput && source !== this._rangeInput._endInput;\n }\n _assignValueProgrammatically(value) {\n super._assignValueProgrammatically(value);\n const opposite = (this === this._rangeInput._startInput\n ? this._rangeInput._endInput\n : this._rangeInput._startInput);\n opposite === null || opposite === void 0 ? void 0 : opposite._validatorOnChange();\n }\n}\nMatDateRangeInputPartBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangeInputPartBase, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatDateRangeInputPartBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDateRangeInputPartBase, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangeInputPartBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DATE_RANGE_INPUT_PARENT]\n }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{\n type: Optional\n }] }, { type: i2$2.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }];\n } });\nconst _MatDateRangeInputBase = mixinErrorState(MatDateRangeInputPartBase);\n/** Input for entering the start date in a `mat-date-range-input`. */\nclass MatStartDate extends _MatDateRangeInputBase {\n constructor(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats) {\n super(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats);\n /** Validator that checks that the start date isn't after the end date. */\n this._startValidator = (control) => {\n const start = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));\n const end = this._model ? this._model.selection.end : null;\n return !start || !end || this._dateAdapter.compareDate(start, end) <= 0\n ? null\n : { 'matStartDateInvalid': { 'end': end, 'actual': start } };\n };\n this._validator = Validators.compose([...super._getValidators(), this._startValidator]);\n }\n _getValueFromModel(modelValue) {\n return modelValue.start;\n }\n _shouldHandleChangeEvent(change) {\n var _a;\n if (!super._shouldHandleChangeEvent(change)) {\n return false;\n }\n else {\n return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.start)\n ? !!change.selection.start\n : !change.selection.start ||\n !!this._dateAdapter.compareDate(change.oldValue.start, change.selection.start);\n }\n }\n _assignValueToModel(value) {\n if (this._model) {\n const range = new DateRange(value, this._model.selection.end);\n this._model.updateSelection(range, this);\n }\n }\n _formatValue(value) {\n super._formatValue(value);\n // Any time the input value is reformatted we need to tell the parent.\n this._rangeInput._handleChildValueChange();\n }\n /** Gets the value that should be used when mirroring the input's size. */\n getMirrorValue() {\n const element = this._elementRef.nativeElement;\n const value = element.value;\n return value.length > 0 ? value : element.placeholder;\n }\n}\nMatStartDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStartDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatStartDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStartDate, selector: \"input[matStartDate]\", inputs: { errorStateMatcher: \"errorStateMatcher\" }, outputs: { dateChange: \"dateChange\", dateInput: \"dateInput\" }, host: { attributes: { \"type\": \"text\" }, listeners: { \"input\": \"_onInput($event.target.value)\", \"change\": \"_onChange()\", \"keydown\": \"_onKeydown($event)\", \"blur\": \"_onBlur()\" }, properties: { \"disabled\": \"disabled\", \"attr.id\": \"_rangeInput.id\", \"attr.aria-haspopup\": \"_rangeInput.rangePicker ? \\\"dialog\\\" : null\", \"attr.aria-owns\": \"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null\", \"attr.min\": \"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null\", \"attr.max\": \"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null\" }, classAttribute: \"mat-start-date mat-date-range-input-inner\" }, providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },\n { provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },\n ], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStartDate, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[matStartDate]',\n host: {\n 'class': 'mat-start-date mat-date-range-input-inner',\n '[disabled]': 'disabled',\n '(input)': '_onInput($event.target.value)',\n '(change)': '_onChange()',\n '(keydown)': '_onKeydown($event)',\n '[attr.id]': '_rangeInput.id',\n '[attr.aria-haspopup]': '_rangeInput.rangePicker ? \"dialog\" : null',\n '[attr.aria-owns]': '(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null',\n '[attr.min]': '_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null',\n '[attr.max]': '_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null',\n '(blur)': '_onBlur()',\n 'type': 'text',\n },\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: MatStartDate, multi: true },\n { provide: NG_VALIDATORS, useExisting: MatStartDate, multi: true },\n ],\n // These need to be specified explicitly, because some tooling doesn't\n // seem to pick them up from the base class. See #20932.\n outputs: ['dateChange', 'dateInput'],\n inputs: ['errorStateMatcher'],\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DATE_RANGE_INPUT_PARENT]\n }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{\n type: Optional\n }] }, { type: i2$2.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }];\n } });\n/** Input for entering the end date in a `mat-date-range-input`. */\nclass MatEndDate extends _MatDateRangeInputBase {\n constructor(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats) {\n super(rangeInput, elementRef, defaultErrorStateMatcher, injector, parentForm, parentFormGroup, dateAdapter, dateFormats);\n /** Validator that checks that the end date isn't before the start date. */\n this._endValidator = (control) => {\n const end = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(control.value));\n const start = this._model ? this._model.selection.start : null;\n return !end || !start || this._dateAdapter.compareDate(end, start) >= 0\n ? null\n : { 'matEndDateInvalid': { 'start': start, 'actual': end } };\n };\n this._validator = Validators.compose([...super._getValidators(), this._endValidator]);\n }\n _getValueFromModel(modelValue) {\n return modelValue.end;\n }\n _shouldHandleChangeEvent(change) {\n var _a;\n if (!super._shouldHandleChangeEvent(change)) {\n return false;\n }\n else {\n return !((_a = change.oldValue) === null || _a === void 0 ? void 0 : _a.end)\n ? !!change.selection.end\n : !change.selection.end ||\n !!this._dateAdapter.compareDate(change.oldValue.end, change.selection.end);\n }\n }\n _assignValueToModel(value) {\n if (this._model) {\n const range = new DateRange(this._model.selection.start, value);\n this._model.updateSelection(range, this);\n }\n }\n _onKeydown(event) {\n // If the user is pressing backspace on an empty end input, move focus back to the start.\n if (event.keyCode === BACKSPACE && !this._elementRef.nativeElement.value) {\n this._rangeInput._startInput.focus();\n }\n super._onKeydown(event);\n }\n}\nMatEndDate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatEndDate, deps: [{ token: MAT_DATE_RANGE_INPUT_PARENT }, { token: i0.ElementRef }, { token: i1$1.ErrorStateMatcher }, { token: i0.Injector }, { token: i2$2.NgForm, optional: true }, { token: i2$2.FormGroupDirective, optional: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_DATE_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatEndDate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatEndDate, selector: \"input[matEndDate]\", inputs: { errorStateMatcher: \"errorStateMatcher\" }, outputs: { dateChange: \"dateChange\", dateInput: \"dateInput\" }, host: { attributes: { \"type\": \"text\" }, listeners: { \"input\": \"_onInput($event.target.value)\", \"change\": \"_onChange()\", \"keydown\": \"_onKeydown($event)\", \"blur\": \"_onBlur()\" }, properties: { \"disabled\": \"disabled\", \"attr.aria-haspopup\": \"_rangeInput.rangePicker ? \\\"dialog\\\" : null\", \"attr.aria-owns\": \"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null\", \"attr.min\": \"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null\", \"attr.max\": \"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null\" }, classAttribute: \"mat-end-date mat-date-range-input-inner\" }, providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },\n { provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },\n ], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatEndDate, decorators: [{\n type: Directive,\n args: [{\n selector: 'input[matEndDate]',\n host: {\n 'class': 'mat-end-date mat-date-range-input-inner',\n '[disabled]': 'disabled',\n '(input)': '_onInput($event.target.value)',\n '(change)': '_onChange()',\n '(keydown)': '_onKeydown($event)',\n '[attr.aria-haspopup]': '_rangeInput.rangePicker ? \"dialog\" : null',\n '[attr.aria-owns]': '(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null',\n '[attr.min]': '_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null',\n '[attr.max]': '_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null',\n '(blur)': '_onBlur()',\n 'type': 'text',\n },\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: MatEndDate, multi: true },\n { provide: NG_VALIDATORS, useExisting: MatEndDate, multi: true },\n ],\n // These need to be specified explicitly, because some tooling doesn't\n // seem to pick them up from the base class. See #20932.\n outputs: ['dateChange', 'dateInput'],\n inputs: ['errorStateMatcher'],\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DATE_RANGE_INPUT_PARENT]\n }] }, { type: i0.ElementRef }, { type: i1$1.ErrorStateMatcher }, { type: i0.Injector }, { type: i2$2.NgForm, decorators: [{\n type: Optional\n }] }, { type: i2$2.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DATE_FORMATS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet nextUniqueId = 0;\nclass MatDateRangeInput {\n constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n this._dateAdapter = _dateAdapter;\n this._formField = _formField;\n this._closedSubscription = Subscription.EMPTY;\n /** Unique ID for the input. */\n this.id = `mat-date-range-input-${nextUniqueId++}`;\n /** Whether the control is focused. */\n this.focused = false;\n /** Name of the form control. */\n this.controlType = 'mat-date-range-input';\n this._groupDisabled = false;\n /** Value for the `aria-describedby` attribute of the inputs. */\n this._ariaDescribedBy = null;\n /** Separator text to be shown between the inputs. */\n this.separator = '–';\n /** Start of the comparison range that should be shown in the calendar. */\n this.comparisonStart = null;\n /** End of the comparison range that should be shown in the calendar. */\n this.comparisonEnd = null;\n /** Emits when the input's state has changed. */\n this.stateChanges = new Subject();\n if (!_dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw createMissingDateImplError('DateAdapter');\n }\n // The datepicker module can be used both with MDC and non-MDC form fields. We have\n // to conditionally add the MDC input class so that the range picker looks correctly.\n if (_formField === null || _formField === void 0 ? void 0 : _formField._elementRef.nativeElement.classList.contains('mat-mdc-form-field')) {\n const classList = _elementRef.nativeElement.classList;\n classList.add('mat-mdc-input-element');\n classList.add('mat-mdc-form-field-input-control');\n }\n // TODO(crisbeto): remove `as any` after #18206 lands.\n this.ngControl = control;\n }\n /** Current value of the range input. */\n get value() {\n return this._model ? this._model.selection : null;\n }\n /** Whether the control's label should float. */\n get shouldLabelFloat() {\n return this.focused || !this.empty;\n }\n /**\n * Implemented as a part of `MatFormFieldControl`.\n * Set the placeholder attribute on `matStartDate` and `matEndDate`.\n * @docs-private\n */\n get placeholder() {\n var _a, _b;\n const start = ((_a = this._startInput) === null || _a === void 0 ? void 0 : _a._getPlaceholder()) || '';\n const end = ((_b = this._endInput) === null || _b === void 0 ? void 0 : _b._getPlaceholder()) || '';\n return start || end ? `${start} ${this.separator} ${end}` : '';\n }\n /** The range picker that this input is associated with. */\n get rangePicker() {\n return this._rangePicker;\n }\n set rangePicker(rangePicker) {\n if (rangePicker) {\n this._model = rangePicker.registerInput(this);\n this._rangePicker = rangePicker;\n this._closedSubscription.unsubscribe();\n this._closedSubscription = rangePicker.closedStream.subscribe(() => {\n var _a, _b;\n (_a = this._startInput) === null || _a === void 0 ? void 0 : _a._onTouched();\n (_b = this._endInput) === null || _b === void 0 ? void 0 : _b._onTouched();\n });\n this._registerModel(this._model);\n }\n }\n /** Whether the input is required. */\n get required() {\n return !!this._required;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n }\n /** Function that can be used to filter out dates within the date range picker. */\n get dateFilter() {\n return this._dateFilter;\n }\n set dateFilter(value) {\n const start = this._startInput;\n const end = this._endInput;\n const wasMatchingStart = start && start._matchesFilter(start.value);\n const wasMatchingEnd = end && end._matchesFilter(start.value);\n this._dateFilter = value;\n if (start && start._matchesFilter(start.value) !== wasMatchingStart) {\n start._validatorOnChange();\n }\n if (end && end._matchesFilter(end.value) !== wasMatchingEnd) {\n end._validatorOnChange();\n }\n }\n /** The minimum valid date. */\n get min() {\n return this._min;\n }\n set min(value) {\n const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n if (!this._dateAdapter.sameDate(validValue, this._min)) {\n this._min = validValue;\n this._revalidate();\n }\n }\n /** The maximum valid date. */\n get max() {\n return this._max;\n }\n set max(value) {\n const validValue = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));\n if (!this._dateAdapter.sameDate(validValue, this._max)) {\n this._max = validValue;\n this._revalidate();\n }\n }\n /** Whether the input is disabled. */\n get disabled() {\n return this._startInput && this._endInput\n ? this._startInput.disabled && this._endInput.disabled\n : this._groupDisabled;\n }\n set disabled(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._groupDisabled) {\n this._groupDisabled = newValue;\n this.stateChanges.next(undefined);\n }\n }\n /** Whether the input is in an error state. */\n get errorState() {\n if (this._startInput && this._endInput) {\n return this._startInput.errorState || this._endInput.errorState;\n }\n return false;\n }\n /** Whether the datepicker input is empty. */\n get empty() {\n const startEmpty = this._startInput ? this._startInput.isEmpty() : false;\n const endEmpty = this._endInput ? this._endInput.isEmpty() : false;\n return startEmpty && endEmpty;\n }\n /**\n * Implemented as a part of `MatFormFieldControl`.\n * @docs-private\n */\n setDescribedByIds(ids) {\n this._ariaDescribedBy = ids.length ? ids.join(' ') : null;\n }\n /**\n * Implemented as a part of `MatFormFieldControl`.\n * @docs-private\n */\n onContainerClick() {\n if (!this.focused && !this.disabled) {\n if (!this._model || !this._model.selection.start) {\n this._startInput.focus();\n }\n else {\n this._endInput.focus();\n }\n }\n }\n ngAfterContentInit() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._startInput) {\n throw Error('mat-date-range-input must contain a matStartDate input');\n }\n if (!this._endInput) {\n throw Error('mat-date-range-input must contain a matEndDate input');\n }\n }\n if (this._model) {\n this._registerModel(this._model);\n }\n // We don't need to unsubscribe from this, because we\n // know that the input streams will be completed on destroy.\n merge(this._startInput.stateChanges, this._endInput.stateChanges).subscribe(() => {\n this.stateChanges.next(undefined);\n });\n }\n ngOnChanges(changes) {\n if (dateInputsHaveChanged(changes, this._dateAdapter)) {\n this.stateChanges.next(undefined);\n }\n }\n ngOnDestroy() {\n this._closedSubscription.unsubscribe();\n this.stateChanges.complete();\n }\n /** Gets the date at which the calendar should start. */\n getStartValue() {\n return this.value ? this.value.start : null;\n }\n /** Gets the input's theme palette. */\n getThemePalette() {\n return this._formField ? this._formField.color : undefined;\n }\n /** Gets the element to which the calendar overlay should be attached. */\n getConnectedOverlayOrigin() {\n return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;\n }\n /** Gets the ID of an element that should be used a description for the calendar overlay. */\n getOverlayLabelId() {\n return this._formField ? this._formField.getLabelId() : null;\n }\n /** Gets the value that is used to mirror the state input. */\n _getInputMirrorValue() {\n return this._startInput ? this._startInput.getMirrorValue() : '';\n }\n /** Whether the input placeholders should be hidden. */\n _shouldHidePlaceholders() {\n return this._startInput ? !this._startInput.isEmpty() : false;\n }\n /** Handles the value in one of the child inputs changing. */\n _handleChildValueChange() {\n this.stateChanges.next(undefined);\n this._changeDetectorRef.markForCheck();\n }\n /** Opens the date range picker associated with the input. */\n _openDatepicker() {\n if (this._rangePicker) {\n this._rangePicker.open();\n }\n }\n /** Whether the separate text should be hidden. */\n _shouldHideSeparator() {\n return ((!this._formField ||\n (this._formField.getLabelId() && !this._formField._shouldLabelFloat())) &&\n this.empty);\n }\n /** Gets the value for the `aria-labelledby` attribute of the inputs. */\n _getAriaLabelledby() {\n const formField = this._formField;\n return formField && formField._hasFloatingLabel() ? formField._labelId : null;\n }\n /** Updates the focused state of the range input. */\n _updateFocus(origin) {\n this.focused = origin !== null;\n this.stateChanges.next();\n }\n /** Re-runs the validators on the start/end inputs. */\n _revalidate() {\n if (this._startInput) {\n this._startInput._validatorOnChange();\n }\n if (this._endInput) {\n this._endInput._validatorOnChange();\n }\n }\n /** Registers the current date selection model with the start/end inputs. */\n _registerModel(model) {\n if (this._startInput) {\n this._startInput._registerModel(model);\n }\n if (this._endInput) {\n this._endInput._registerModel(model);\n }\n }\n}\nMatDateRangeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangeInput, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2$2.ControlContainer, optional: true, self: true }, { token: i1$1.DateAdapter, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDateRangeInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDateRangeInput, selector: \"mat-date-range-input\", inputs: { rangePicker: \"rangePicker\", required: \"required\", dateFilter: \"dateFilter\", min: \"min\", max: \"max\", disabled: \"disabled\", separator: \"separator\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\" }, host: { attributes: { \"role\": \"group\" }, properties: { \"class.mat-date-range-input-hide-placeholders\": \"_shouldHidePlaceholders()\", \"class.mat-date-range-input-required\": \"required\", \"attr.id\": \"null\", \"attr.aria-labelledby\": \"_getAriaLabelledby()\", \"attr.aria-describedby\": \"_ariaDescribedBy\", \"attr.data-mat-calendar\": \"rangePicker ? rangePicker.id : null\" }, classAttribute: \"mat-date-range-input\" }, providers: [\n { provide: MatFormFieldControl, useExisting: MatDateRangeInput },\n { provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },\n ], queries: [{ propertyName: \"_startInput\", first: true, predicate: MatStartDate, descendants: true }, { propertyName: \"_endInput\", first: true, predicate: MatEndDate, descendants: true }], exportAs: [\"matDateRangeInput\"], usesOnChanges: true, ngImport: i0, template: \"<div\\n class=\\\"mat-date-range-input-container\\\"\\n cdkMonitorSubtreeFocus\\n (cdkFocusChange)=\\\"_updateFocus($event)\\\">\\n <div class=\\\"mat-date-range-input-start-wrapper\\\">\\n <ng-content select=\\\"input[matStartDate]\\\"></ng-content>\\n <span\\n class=\\\"mat-date-range-input-mirror\\\"\\n aria-hidden=\\\"true\\\">{{_getInputMirrorValue()}}</span>\\n </div>\\n\\n <span\\n class=\\\"mat-date-range-input-separator\\\"\\n [class.mat-date-range-input-separator-hidden]=\\\"_shouldHideSeparator()\\\">{{separator}}</span>\\n\\n <div class=\\\"mat-date-range-input-end-wrapper\\\">\\n <ng-content select=\\\"input[matEndDate]\\\"></ng-content>\\n </div>\\n</div>\\n\\n\", styles: [\".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\\n\"], directives: [{ type: i4.CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: [\"cdkFocusChange\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangeInput, decorators: [{\n type: Component,\n args: [{ selector: 'mat-date-range-input', exportAs: 'matDateRangeInput', host: {\n 'class': 'mat-date-range-input',\n '[class.mat-date-range-input-hide-placeholders]': '_shouldHidePlaceholders()',\n '[class.mat-date-range-input-required]': 'required',\n '[attr.id]': 'null',\n 'role': 'group',\n '[attr.aria-labelledby]': '_getAriaLabelledby()',\n '[attr.aria-describedby]': '_ariaDescribedBy',\n // Used by the test harness to tie this input to its calendar. We can't depend on\n // `aria-owns` for this, because it's only defined while the calendar is open.\n '[attr.data-mat-calendar]': 'rangePicker ? rangePicker.id : null',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [\n { provide: MatFormFieldControl, useExisting: MatDateRangeInput },\n { provide: MAT_DATE_RANGE_INPUT_PARENT, useExisting: MatDateRangeInput },\n ], template: \"<div\\n class=\\\"mat-date-range-input-container\\\"\\n cdkMonitorSubtreeFocus\\n (cdkFocusChange)=\\\"_updateFocus($event)\\\">\\n <div class=\\\"mat-date-range-input-start-wrapper\\\">\\n <ng-content select=\\\"input[matStartDate]\\\"></ng-content>\\n <span\\n class=\\\"mat-date-range-input-mirror\\\"\\n aria-hidden=\\\"true\\\">{{_getInputMirrorValue()}}</span>\\n </div>\\n\\n <span\\n class=\\\"mat-date-range-input-separator\\\"\\n [class.mat-date-range-input-separator-hidden]=\\\"_shouldHideSeparator()\\\">{{separator}}</span>\\n\\n <div class=\\\"mat-date-range-input-end-wrapper\\\">\\n <ng-content select=\\\"input[matEndDate]\\\"></ng-content>\\n </div>\\n</div>\\n\\n\", styles: [\".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2$2.ControlContainer, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }, { type: i1$1.DateAdapter, decorators: [{\n type: Optional\n }] }, { type: i2$1.MatFormField, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_FORM_FIELD]\n }] }];\n }, propDecorators: { rangePicker: [{\n type: Input\n }], required: [{\n type: Input\n }], dateFilter: [{\n type: Input\n }], min: [{\n type: Input\n }], max: [{\n type: Input\n }], disabled: [{\n type: Input\n }], separator: [{\n type: Input\n }], comparisonStart: [{\n type: Input\n }], comparisonEnd: [{\n type: Input\n }], _startInput: [{\n type: ContentChild,\n args: [MatStartDate]\n }], _endInput: [{\n type: ContentChild,\n args: [MatEndDate]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(mmalerba): We use a component instead of a directive here so the user can use implicit\n// template reference variables (e.g. #d vs #d=\"matDateRangePicker\"). We can change this to a\n// directive if angular adds support for `exportAs: '$implicit'` on directives.\n/** Component responsible for managing the date range picker popup/dialog. */\nclass MatDateRangePicker extends MatDatepickerBase {\n _forwardContentValues(instance) {\n super._forwardContentValues(instance);\n const input = this.datepickerInput;\n if (input) {\n instance.comparisonStart = input.comparisonStart;\n instance.comparisonEnd = input.comparisonEnd;\n }\n }\n}\nMatDateRangePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangePicker, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatDateRangePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDateRangePicker, selector: \"mat-date-range-picker\", providers: [\n MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,\n MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,\n { provide: MatDatepickerBase, useExisting: MatDateRangePicker },\n ], exportAs: [\"matDateRangePicker\"], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDateRangePicker, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-date-range-picker',\n template: '',\n exportAs: 'matDateRangePicker',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER,\n MAT_CALENDAR_RANGE_STRATEGY_PROVIDER,\n { provide: MatDatepickerBase, useExisting: MatDateRangePicker },\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Button that will close the datepicker and assign the current selection to the data model. */\nclass MatDatepickerApply {\n constructor(_datepicker) {\n this._datepicker = _datepicker;\n }\n _applySelection() {\n this._datepicker._applyPendingSelection();\n this._datepicker.close();\n }\n}\nMatDatepickerApply.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerApply, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerApply.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerApply, selector: \"[matDatepickerApply], [matDateRangePickerApply]\", host: { listeners: { \"click\": \"_applySelection()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerApply, decorators: [{\n type: Directive,\n args: [{\n selector: '[matDatepickerApply], [matDateRangePickerApply]',\n host: { '(click)': '_applySelection()' },\n }]\n }], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });\n/** Button that will close the datepicker and discard the current selection. */\nclass MatDatepickerCancel {\n constructor(_datepicker) {\n this._datepicker = _datepicker;\n }\n}\nMatDatepickerCancel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerCancel, deps: [{ token: MatDatepickerBase }], target: i0.ɵɵFactoryTarget.Directive });\nMatDatepickerCancel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerCancel, selector: \"[matDatepickerCancel], [matDateRangePickerCancel]\", host: { listeners: { \"click\": \"_datepicker.close()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerCancel, decorators: [{\n type: Directive,\n args: [{\n selector: '[matDatepickerCancel], [matDateRangePickerCancel]',\n host: { '(click)': '_datepicker.close()' },\n }]\n }], ctorParameters: function () { return [{ type: MatDatepickerBase }]; } });\n/**\n * Container that can be used to project a row of action buttons\n * to the bottom of a datepicker or date range picker.\n */\nclass MatDatepickerActions {\n constructor(_datepicker, _viewContainerRef) {\n this._datepicker = _datepicker;\n this._viewContainerRef = _viewContainerRef;\n }\n ngAfterViewInit() {\n this._portal = new TemplatePortal(this._template, this._viewContainerRef);\n this._datepicker.registerActions(this._portal);\n }\n ngOnDestroy() {\n var _a;\n this._datepicker.removeActions(this._portal);\n // Needs to be null checked since we initialize it in `ngAfterViewInit`.\n if (this._portal && this._portal.isAttached) {\n (_a = this._portal) === null || _a === void 0 ? void 0 : _a.detach();\n }\n }\n}\nMatDatepickerActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerActions, deps: [{ token: MatDatepickerBase }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });\nMatDatepickerActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDatepickerActions, selector: \"mat-datepicker-actions, mat-date-range-picker-actions\", viewQueries: [{ propertyName: \"_template\", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `\n <ng-template>\n <div class=\"mat-datepicker-actions\">\n <ng-content></ng-content>\n </div>\n </ng-template>\n `, isInline: true, styles: [\".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerActions, decorators: [{\n type: Component,\n args: [{ selector: 'mat-datepicker-actions, mat-date-range-picker-actions', template: `\n <ng-template>\n <div class=\"mat-datepicker-actions\">\n <ng-content></ng-content>\n </div>\n </ng-template>\n `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [\".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\\n\"] }]\n }], ctorParameters: function () { return [{ type: MatDatepickerBase }, { type: i0.ViewContainerRef }]; }, propDecorators: { _template: [{\n type: ViewChild,\n args: [TemplateRef]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatDatepickerModule {\n}\nMatDatepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerModule, declarations: [MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n MatDateRangeInput,\n MatStartDate,\n MatEndDate,\n MatDateRangePicker,\n MatDatepickerActions,\n MatDatepickerCancel,\n MatDatepickerApply], imports: [CommonModule,\n MatButtonModule,\n OverlayModule,\n A11yModule,\n PortalModule,\n MatCommonModule], exports: [CdkScrollableModule,\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n MatDateRangeInput,\n MatStartDate,\n MatEndDate,\n MatDateRangePicker,\n MatDatepickerActions,\n MatDatepickerCancel,\n MatDatepickerApply] });\nMatDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerModule, providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[\n CommonModule,\n MatButtonModule,\n OverlayModule,\n A11yModule,\n PortalModule,\n MatCommonModule,\n ], CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDatepickerModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CommonModule,\n MatButtonModule,\n OverlayModule,\n A11yModule,\n PortalModule,\n MatCommonModule,\n ],\n exports: [\n CdkScrollableModule,\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n MatDateRangeInput,\n MatStartDate,\n MatEndDate,\n MatDateRangePicker,\n MatDatepickerActions,\n MatDatepickerCancel,\n MatDatepickerApply,\n ],\n declarations: [\n MatCalendar,\n MatCalendarBody,\n MatDatepicker,\n MatDatepickerContent,\n MatDatepickerInput,\n MatDatepickerToggle,\n MatDatepickerToggleIcon,\n MatMonthView,\n MatYearView,\n MatMultiYearView,\n MatCalendarHeader,\n MatDateRangeInput,\n MatStartDate,\n MatEndDate,\n MatDateRangePicker,\n MatDatepickerActions,\n MatDatepickerCancel,\n MatDatepickerApply,\n ],\n providers: [MatDatepickerIntl, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DateRange, DefaultMatCalendarRangeStrategy, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerActions, MatDatepickerApply, MatDatepickerCancel, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerModule, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, matDatepickerAnimations, yearsPerPage, yearsPerRow };\n","import * as i1$1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';\nimport * as i3 from '@angular/cdk/portal';\nimport { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Directive, Optional, Inject, ViewChild, Component, ViewEncapsulation, ChangeDetectionStrategy, InjectionToken, Injector, TemplateRef, InjectFlags, Injectable, SkipSelf, Input, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { Subject, defer, Subscription, of } from 'rxjs';\nimport { filter, take, startWith } from 'rxjs/operators';\nimport { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT } from '@angular/common';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i1 from '@angular/cdk/a11y';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Configuration for opening a modal dialog with the MatDialog service.\n */\nclass MatDialogConfig {\n constructor() {\n /** The ARIA role of the dialog element. */\n this.role = 'dialog';\n /** Custom class for the overlay pane. */\n this.panelClass = '';\n /** Whether the dialog has a backdrop. */\n this.hasBackdrop = true;\n /** Custom class for the backdrop. */\n this.backdropClass = '';\n /** Whether the user can use escape or clicking on the backdrop to close the modal. */\n this.disableClose = false;\n /** Width of the dialog. */\n this.width = '';\n /** Height of the dialog. */\n this.height = '';\n /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */\n this.maxWidth = '80vw';\n /** Data being injected into the child component. */\n this.data = null;\n /** ID of the element that describes the dialog. */\n this.ariaDescribedBy = null;\n /** ID of the element that labels the dialog. */\n this.ariaLabelledBy = null;\n /** Aria label to assign to the dialog element. */\n this.ariaLabel = null;\n /**\n * Where the dialog should focus on open.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or\n * AutoFocusTarget instead.\n */\n this.autoFocus = 'first-tabbable';\n /**\n * Whether the dialog should restore focus to the\n * previously-focused element, after it's closed.\n */\n this.restoreFocus = true;\n /**\n * Whether the dialog should close when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.closeOnNavigation = true;\n // TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by MatDialog.\n * @docs-private\n */\nconst matDialogAnimations = {\n /** Animation that is applied on the dialog container by default. */\n dialogContainer: trigger('dialogContainer', [\n // Note: The `enter` animation transitions to `transform: none`, because for some reason\n // specifying the transform explicitly, causes IE both to blur the dialog content and\n // decimate the animation performance. Leaving it as `none` solves both issues.\n state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),\n state('enter', style({ transform: 'none' })),\n transition('* => enter', animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 }))),\n transition('* => void, * => exit', animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 }))),\n ]),\n};\n\n/**\n * Throws an exception for the case when a ComponentPortal is\n * attached to a DomPortalOutlet without an origin.\n * @docs-private\n */\nfunction throwMatDialogContentAlreadyAttachedError() {\n throw Error('Attempting to attach dialog content after content is already attached');\n}\n/**\n * Base class for the `MatDialogContainer`. The base class does not implement\n * animations as these are left to implementers of the dialog container.\n */\nclass _MatDialogContainerBase extends BasePortalOutlet {\n constructor(_elementRef, _focusTrapFactory, _changeDetectorRef, _document, \n /** The dialog configuration. */\n _config, _interactivityChecker, _ngZone, _focusMonitor) {\n super();\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this._changeDetectorRef = _changeDetectorRef;\n this._config = _config;\n this._interactivityChecker = _interactivityChecker;\n this._ngZone = _ngZone;\n this._focusMonitor = _focusMonitor;\n /** Emits when an animation state changes. */\n this._animationStateChanged = new EventEmitter();\n /** Element that was focused before the dialog was opened. Save this to restore upon close. */\n this._elementFocusedBeforeDialogWasOpened = null;\n /**\n * Type of interaction that led to the dialog being closed. This is used to determine\n * whether the focus style will be applied when returning focus to its original location\n * after the dialog is closed.\n */\n this._closeInteractionType = null;\n /**\n * Attaches a DOM portal to the dialog container.\n * @param portal Portal to be attached.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = (portal) => {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDialogContentAlreadyAttachedError();\n }\n return this._portalOutlet.attachDomPortal(portal);\n };\n this._ariaLabelledBy = _config.ariaLabelledBy || null;\n this._document = _document;\n }\n /** Initializes the dialog container with the attached content. */\n _initializeWithAttachedContent() {\n this._setupFocusTrap();\n // Save the previously focused element. This element will be re-focused\n // when the dialog closes.\n this._capturePreviouslyFocusedElement();\n }\n /**\n * Attach a ComponentPortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachComponentPortal(portal) {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDialogContentAlreadyAttachedError();\n }\n return this._portalOutlet.attachComponentPortal(portal);\n }\n /**\n * Attach a TemplatePortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachTemplatePortal(portal) {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDialogContentAlreadyAttachedError();\n }\n return this._portalOutlet.attachTemplatePortal(portal);\n }\n /** Moves focus back into the dialog if it was moved out. */\n _recaptureFocus() {\n if (!this._containsFocus()) {\n this._trapFocus();\n }\n }\n /**\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\n * @param element The element to focus.\n */\n _forceFocus(element, options) {\n if (!this._interactivityChecker.isFocusable(element)) {\n element.tabIndex = -1;\n // The tabindex attribute should be removed to avoid navigating to that element again\n this._ngZone.runOutsideAngular(() => {\n element.addEventListener('blur', () => element.removeAttribute('tabindex'));\n element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));\n });\n }\n element.focus(options);\n }\n /**\n * Focuses the first element that matches the given selector within the focus trap.\n * @param selector The CSS selector for the element to set focus to.\n */\n _focusByCssSelector(selector, options) {\n let elementToFocus = this._elementRef.nativeElement.querySelector(selector);\n if (elementToFocus) {\n this._forceFocus(elementToFocus, options);\n }\n }\n /**\n * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus\n * cannot be moved then focus will go to the dialog container.\n */\n _trapFocus() {\n const element = this._elementRef.nativeElement;\n // If were to attempt to focus immediately, then the content of the dialog would not yet be\n // ready in instances where change detection has to run first. To deal with this, we simply\n // wait for the microtask queue to be empty when setting focus when autoFocus isn't set to\n // dialog. If the element inside the dialog can't be focused, then the container is focused\n // so the user can't tab into other elements behind it.\n switch (this._config.autoFocus) {\n case false:\n case 'dialog':\n // Ensure that focus is on the dialog container. It's possible that a different\n // component tried to move focus while the open animation was running. See:\n // https://github.com/angular/components/issues/16215. Note that we only want to do this\n // if the focus isn't inside the dialog already, because it's possible that the consumer\n // turned off `autoFocus` in order to move focus themselves.\n if (!this._containsFocus()) {\n element.focus();\n }\n break;\n case true:\n case 'first-tabbable':\n this._focusTrap.focusInitialElementWhenReady().then(focusedSuccessfully => {\n // If we weren't able to find a focusable element in the dialog, then focus the dialog\n // container instead.\n if (!focusedSuccessfully) {\n this._focusDialogContainer();\n }\n });\n break;\n case 'first-heading':\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\n break;\n default:\n this._focusByCssSelector(this._config.autoFocus);\n break;\n }\n }\n /** Restores focus to the element that was focused before the dialog opened. */\n _restoreFocus() {\n const previousElement = this._elementFocusedBeforeDialogWasOpened;\n // We need the extra check, because IE can set the `activeElement` to null in some cases.\n if (this._config.restoreFocus &&\n previousElement &&\n typeof previousElement.focus === 'function') {\n const activeElement = _getFocusedElementPierceShadowDom();\n const element = this._elementRef.nativeElement;\n // Make sure that focus is still inside the dialog or is on the body (usually because a\n // non-focusable element like the backdrop was clicked) before moving it. It's possible that\n // the consumer moved it themselves before the animation was done, in which case we shouldn't\n // do anything.\n if (!activeElement ||\n activeElement === this._document.body ||\n activeElement === element ||\n element.contains(activeElement)) {\n if (this._focusMonitor) {\n this._focusMonitor.focusVia(previousElement, this._closeInteractionType);\n this._closeInteractionType = null;\n }\n else {\n previousElement.focus();\n }\n }\n }\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n }\n /** Sets up the focus trap. */\n _setupFocusTrap() {\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n }\n /** Captures the element that was focused before the dialog was opened. */\n _capturePreviouslyFocusedElement() {\n if (this._document) {\n this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();\n }\n }\n /** Focuses the dialog container. */\n _focusDialogContainer() {\n // Note that there is no focus method when rendering on the server.\n if (this._elementRef.nativeElement.focus) {\n this._elementRef.nativeElement.focus();\n }\n }\n /** Returns whether focus is inside the dialog. */\n _containsFocus() {\n const element = this._elementRef.nativeElement;\n const activeElement = _getFocusedElementPierceShadowDom();\n return element === activeElement || element.contains(activeElement);\n }\n}\n_MatDialogContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatDialogContainerBase, deps: [{ token: i0.ElementRef }, { token: i1.FocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: MatDialogConfig }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });\n_MatDialogContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatDialogContainerBase, viewQueries: [{ propertyName: \"_portalOutlet\", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatDialogContainerBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.FocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: MatDialogConfig }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i1.FocusMonitor }];\n }, propDecorators: { _portalOutlet: [{\n type: ViewChild,\n args: [CdkPortalOutlet, { static: true }]\n }] } });\n/**\n * Internal component that wraps user-provided dialog content.\n * Animation is based on https://material.io/guidelines/motion/choreography.html.\n * @docs-private\n */\nclass MatDialogContainer extends _MatDialogContainerBase {\n constructor() {\n super(...arguments);\n /** State of the dialog animation. */\n this._state = 'enter';\n }\n /** Callback, invoked whenever an animation on the host completes. */\n _onAnimationDone({ toState, totalTime }) {\n if (toState === 'enter') {\n this._trapFocus();\n this._animationStateChanged.next({ state: 'opened', totalTime });\n }\n else if (toState === 'exit') {\n this._restoreFocus();\n this._animationStateChanged.next({ state: 'closed', totalTime });\n }\n }\n /** Callback, invoked when an animation on the host starts. */\n _onAnimationStart({ toState, totalTime }) {\n if (toState === 'enter') {\n this._animationStateChanged.next({ state: 'opening', totalTime });\n }\n else if (toState === 'exit' || toState === 'void') {\n this._animationStateChanged.next({ state: 'closing', totalTime });\n }\n }\n /** Starts the dialog exit animation. */\n _startExitAnimation() {\n this._state = 'exit';\n // Mark the container for check so it can react if the\n // view container is using OnPush change detection.\n this._changeDetectorRef.markForCheck();\n }\n}\nMatDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDialogContainer, selector: \"mat-dialog-container\", host: { attributes: { \"tabindex\": \"-1\", \"aria-modal\": \"true\" }, listeners: { \"@dialogContainer.start\": \"_onAnimationStart($event)\", \"@dialogContainer.done\": \"_onAnimationDone($event)\" }, properties: { \"id\": \"_id\", \"attr.role\": \"_config.role\", \"attr.aria-labelledby\": \"_config.ariaLabel ? null : _ariaLabelledBy\", \"attr.aria-label\": \"_config.ariaLabel\", \"attr.aria-describedby\": \"_config.ariaDescribedBy || null\", \"@dialogContainer\": \"_state\" }, classAttribute: \"mat-dialog-container\" }, usesInheritance: true, ngImport: i0, template: \"<ng-template cdkPortalOutlet></ng-template>\\n\", styles: [\".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\\n\"], directives: [{ type: i3.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [matDialogAnimations.dialogContainer], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-dialog-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matDialogAnimations.dialogContainer], host: {\n 'class': 'mat-dialog-container',\n 'tabindex': '-1',\n 'aria-modal': 'true',\n '[id]': '_id',\n '[attr.role]': '_config.role',\n '[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',\n '[attr.aria-label]': '_config.ariaLabel',\n '[attr.aria-describedby]': '_config.ariaDescribedBy || null',\n '[@dialogContainer]': '_state',\n '(@dialogContainer.start)': '_onAnimationStart($event)',\n '(@dialogContainer.done)': '_onAnimationDone($event)',\n }, template: \"<ng-template cdkPortalOutlet></ng-template>\\n\", styles: [\".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\\n\"] }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(jelbourn): resizing\n// Counter for unique dialog ids.\nlet uniqueId = 0;\n/**\n * Reference to a dialog opened via the MatDialog service.\n */\nclass MatDialogRef {\n constructor(_overlayRef, _containerInstance, \n /** Id of the dialog. */\n id = `mat-dialog-${uniqueId++}`) {\n this._overlayRef = _overlayRef;\n this._containerInstance = _containerInstance;\n this.id = id;\n /** Whether the user is allowed to close the dialog. */\n this.disableClose = this._containerInstance._config.disableClose;\n /** Subject for notifying the user that the dialog has finished opening. */\n this._afterOpened = new Subject();\n /** Subject for notifying the user that the dialog has finished closing. */\n this._afterClosed = new Subject();\n /** Subject for notifying the user that the dialog has started closing. */\n this._beforeClosed = new Subject();\n /** Current state of the dialog. */\n this._state = 0 /* OPEN */;\n // Pass the id along to the container.\n _containerInstance._id = id;\n // Emit when opening animation completes\n _containerInstance._animationStateChanged\n .pipe(filter(event => event.state === 'opened'), take(1))\n .subscribe(() => {\n this._afterOpened.next();\n this._afterOpened.complete();\n });\n // Dispose overlay when closing animation is complete\n _containerInstance._animationStateChanged\n .pipe(filter(event => event.state === 'closed'), take(1))\n .subscribe(() => {\n clearTimeout(this._closeFallbackTimeout);\n this._finishDialogClose();\n });\n _overlayRef.detachments().subscribe(() => {\n this._beforeClosed.next(this._result);\n this._beforeClosed.complete();\n this._afterClosed.next(this._result);\n this._afterClosed.complete();\n this.componentInstance = null;\n this._overlayRef.dispose();\n });\n _overlayRef\n .keydownEvents()\n .pipe(filter(event => {\n return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);\n }))\n .subscribe(event => {\n event.preventDefault();\n _closeDialogVia(this, 'keyboard');\n });\n _overlayRef.backdropClick().subscribe(() => {\n if (this.disableClose) {\n this._containerInstance._recaptureFocus();\n }\n else {\n _closeDialogVia(this, 'mouse');\n }\n });\n }\n /**\n * Close the dialog.\n * @param dialogResult Optional result to return to the dialog opener.\n */\n close(dialogResult) {\n this._result = dialogResult;\n // Transition the backdrop in parallel to the dialog.\n this._containerInstance._animationStateChanged\n .pipe(filter(event => event.state === 'closing'), take(1))\n .subscribe(event => {\n this._beforeClosed.next(dialogResult);\n this._beforeClosed.complete();\n this._overlayRef.detachBackdrop();\n // The logic that disposes of the overlay depends on the exit animation completing, however\n // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback\n // timeout which will clean everything up if the animation hasn't fired within the specified\n // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the\n // vast majority of cases the timeout will have been cleared before it has the chance to fire.\n this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);\n });\n this._state = 1 /* CLOSING */;\n this._containerInstance._startExitAnimation();\n }\n /**\n * Gets an observable that is notified when the dialog is finished opening.\n */\n afterOpened() {\n return this._afterOpened;\n }\n /**\n * Gets an observable that is notified when the dialog is finished closing.\n */\n afterClosed() {\n return this._afterClosed;\n }\n /**\n * Gets an observable that is notified when the dialog has started closing.\n */\n beforeClosed() {\n return this._beforeClosed;\n }\n /**\n * Gets an observable that emits when the overlay's backdrop has been clicked.\n */\n backdropClick() {\n return this._overlayRef.backdropClick();\n }\n /**\n * Gets an observable that emits when keydown events are targeted on the overlay.\n */\n keydownEvents() {\n return this._overlayRef.keydownEvents();\n }\n /**\n * Updates the dialog's position.\n * @param position New dialog position.\n */\n updatePosition(position) {\n let strategy = this._getPositionStrategy();\n if (position && (position.left || position.right)) {\n position.left ? strategy.left(position.left) : strategy.right(position.right);\n }\n else {\n strategy.centerHorizontally();\n }\n if (position && (position.top || position.bottom)) {\n position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);\n }\n else {\n strategy.centerVertically();\n }\n this._overlayRef.updatePosition();\n return this;\n }\n /**\n * Updates the dialog's width and height.\n * @param width New width of the dialog.\n * @param height New height of the dialog.\n */\n updateSize(width = '', height = '') {\n this._overlayRef.updateSize({ width, height });\n this._overlayRef.updatePosition();\n return this;\n }\n /** Add a CSS class or an array of classes to the overlay pane. */\n addPanelClass(classes) {\n this._overlayRef.addPanelClass(classes);\n return this;\n }\n /** Remove a CSS class or an array of classes from the overlay pane. */\n removePanelClass(classes) {\n this._overlayRef.removePanelClass(classes);\n return this;\n }\n /** Gets the current state of the dialog's lifecycle. */\n getState() {\n return this._state;\n }\n /**\n * Finishes the dialog close by updating the state of the dialog\n * and disposing the overlay.\n */\n _finishDialogClose() {\n this._state = 2 /* CLOSED */;\n this._overlayRef.dispose();\n }\n /** Fetches the position strategy object from the overlay ref. */\n _getPositionStrategy() {\n return this._overlayRef.getConfig().positionStrategy;\n }\n}\n/**\n * Closes the dialog with the specified interaction type. This is currently not part of\n * `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.\n * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.\n */\n// TODO: TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.\nfunction _closeDialogVia(ref, interactionType, result) {\n // Some mock dialog ref instances in tests do not have the `_containerInstance` property.\n // For those, we keep the behavior as is and do not deal with the interaction type.\n if (ref._containerInstance !== undefined) {\n ref._containerInstance._closeInteractionType = interactionType;\n }\n return ref.close(result);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to access the data that was passed in to a dialog. */\nconst MAT_DIALOG_DATA = new InjectionToken('MatDialogData');\n/** Injection token that can be used to specify default dialog options. */\nconst MAT_DIALOG_DEFAULT_OPTIONS = new InjectionToken('mat-dialog-default-options');\n/** Injection token that determines the scroll handling while the dialog is open. */\nconst MAT_DIALOG_SCROLL_STRATEGY = new InjectionToken('mat-dialog-scroll-strategy');\n/** @docs-private */\nfunction MAT_DIALOG_SCROLL_STRATEGY_FACTORY(overlay) {\n return () => overlay.scrollStrategies.block();\n}\n/** @docs-private */\nfunction MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.block();\n}\n/** @docs-private */\nconst MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {\n provide: MAT_DIALOG_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,\n};\n/**\n * Base class for dialog services. The base dialog service allows\n * for arbitrary dialog refs and dialog container components.\n */\nclass _MatDialogBase {\n constructor(_overlay, _injector, _defaultOptions, _parentDialog, _overlayContainer, scrollStrategy, _dialogRefConstructor, _dialogContainerType, _dialogDataToken, _animationMode) {\n this._overlay = _overlay;\n this._injector = _injector;\n this._defaultOptions = _defaultOptions;\n this._parentDialog = _parentDialog;\n this._overlayContainer = _overlayContainer;\n this._dialogRefConstructor = _dialogRefConstructor;\n this._dialogContainerType = _dialogContainerType;\n this._dialogDataToken = _dialogDataToken;\n this._animationMode = _animationMode;\n this._openDialogsAtThisLevel = [];\n this._afterAllClosedAtThisLevel = new Subject();\n this._afterOpenedAtThisLevel = new Subject();\n this._ariaHiddenElements = new Map();\n this._dialogAnimatingOpen = false;\n // TODO (jelbourn): tighten the typing right-hand side of this expression.\n /**\n * Stream that emits when all open dialog have finished closing.\n * Will emit on subscribe if there are no open dialogs to begin with.\n */\n this.afterAllClosed = defer(() => this.openDialogs.length\n ? this._getAfterAllClosed()\n : this._getAfterAllClosed().pipe(startWith(undefined)));\n this._scrollStrategy = scrollStrategy;\n }\n /** Keeps track of the currently-open dialogs. */\n get openDialogs() {\n return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;\n }\n /** Stream that emits when a dialog has been opened. */\n get afterOpened() {\n return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;\n }\n _getAfterAllClosed() {\n const parent = this._parentDialog;\n return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;\n }\n open(componentOrTemplateRef, config) {\n config = _applyConfigDefaults(config, this._defaultOptions || new MatDialogConfig());\n if (config.id &&\n this.getDialogById(config.id) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Dialog with id \"${config.id}\" exists already. The dialog id must be unique.`);\n }\n // If there is a dialog that is currently animating open, return the MatDialogRef of that dialog\n if (this._dialogAnimatingOpen) {\n return this._lastDialogRef;\n }\n const overlayRef = this._createOverlay(config);\n const dialogContainer = this._attachDialogContainer(overlayRef, config);\n if (this._animationMode !== 'NoopAnimations') {\n const animationStateSubscription = dialogContainer._animationStateChanged.subscribe(dialogAnimationEvent => {\n if (dialogAnimationEvent.state === 'opening') {\n this._dialogAnimatingOpen = true;\n }\n if (dialogAnimationEvent.state === 'opened') {\n this._dialogAnimatingOpen = false;\n animationStateSubscription.unsubscribe();\n }\n });\n if (!this._animationStateSubscriptions) {\n this._animationStateSubscriptions = new Subscription();\n }\n this._animationStateSubscriptions.add(animationStateSubscription);\n }\n const dialogRef = this._attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config);\n this._lastDialogRef = dialogRef;\n // If this is the first dialog that we're opening, hide all the non-overlay content.\n if (!this.openDialogs.length) {\n this._hideNonDialogContentFromAssistiveTechnology();\n }\n this.openDialogs.push(dialogRef);\n dialogRef.afterClosed().subscribe(() => this._removeOpenDialog(dialogRef));\n this.afterOpened.next(dialogRef);\n // Notify the dialog container that the content has been attached.\n dialogContainer._initializeWithAttachedContent();\n return dialogRef;\n }\n /**\n * Closes all of the currently-open dialogs.\n */\n closeAll() {\n this._closeDialogs(this.openDialogs);\n }\n /**\n * Finds an open dialog by its id.\n * @param id ID to use when looking up the dialog.\n */\n getDialogById(id) {\n return this.openDialogs.find(dialog => dialog.id === id);\n }\n ngOnDestroy() {\n // Only close the dialogs at this level on destroy\n // since the parent service may still be active.\n this._closeDialogs(this._openDialogsAtThisLevel);\n this._afterAllClosedAtThisLevel.complete();\n this._afterOpenedAtThisLevel.complete();\n // Clean up any subscriptions to dialogs that never finished opening.\n if (this._animationStateSubscriptions) {\n this._animationStateSubscriptions.unsubscribe();\n }\n }\n /**\n * Creates the overlay into which the dialog will be loaded.\n * @param config The dialog configuration.\n * @returns A promise resolving to the OverlayRef for the created overlay.\n */\n _createOverlay(config) {\n const overlayConfig = this._getOverlayConfig(config);\n return this._overlay.create(overlayConfig);\n }\n /**\n * Creates an overlay config from a dialog config.\n * @param dialogConfig The dialog configuration.\n * @returns The overlay configuration.\n */\n _getOverlayConfig(dialogConfig) {\n const state = new OverlayConfig({\n positionStrategy: this._overlay.position().global(),\n scrollStrategy: dialogConfig.scrollStrategy || this._scrollStrategy(),\n panelClass: dialogConfig.panelClass,\n hasBackdrop: dialogConfig.hasBackdrop,\n direction: dialogConfig.direction,\n minWidth: dialogConfig.minWidth,\n minHeight: dialogConfig.minHeight,\n maxWidth: dialogConfig.maxWidth,\n maxHeight: dialogConfig.maxHeight,\n disposeOnNavigation: dialogConfig.closeOnNavigation,\n });\n if (dialogConfig.backdropClass) {\n state.backdropClass = dialogConfig.backdropClass;\n }\n return state;\n }\n /**\n * Attaches a dialog container to a dialog's already-created overlay.\n * @param overlay Reference to the dialog's underlying overlay.\n * @param config The dialog configuration.\n * @returns A promise resolving to a ComponentRef for the attached container.\n */\n _attachDialogContainer(overlay, config) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const injector = Injector.create({\n parent: userInjector || this._injector,\n providers: [{ provide: MatDialogConfig, useValue: config }],\n });\n const containerPortal = new ComponentPortal(this._dialogContainerType, config.viewContainerRef, injector, config.componentFactoryResolver);\n const containerRef = overlay.attach(containerPortal);\n return containerRef.instance;\n }\n /**\n * Attaches the user-provided component to the already-created dialog container.\n * @param componentOrTemplateRef The type of component being loaded into the dialog,\n * or a TemplateRef to instantiate as the content.\n * @param dialogContainer Reference to the wrapping dialog container.\n * @param overlayRef Reference to the overlay in which the dialog resides.\n * @param config The dialog configuration.\n * @returns A promise resolving to the MatDialogRef that should be returned to the user.\n */\n _attachDialogContent(componentOrTemplateRef, dialogContainer, overlayRef, config) {\n // Create a reference to the dialog we're creating in order to give the user a handle\n // to modify and close it.\n const dialogRef = new this._dialogRefConstructor(overlayRef, dialogContainer, config.id);\n if (componentOrTemplateRef instanceof TemplateRef) {\n dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {\n $implicit: config.data,\n dialogRef,\n }));\n }\n else {\n const injector = this._createInjector(config, dialogRef, dialogContainer);\n const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector));\n dialogRef.componentInstance = contentRef.instance;\n }\n dialogRef.updateSize(config.width, config.height).updatePosition(config.position);\n return dialogRef;\n }\n /**\n * Creates a custom injector to be used inside the dialog. This allows a component loaded inside\n * of a dialog to close itself and, optionally, to return a value.\n * @param config Config object that is used to construct the dialog.\n * @param dialogRef Reference to the dialog.\n * @param dialogContainer Dialog container element that wraps all of the contents.\n * @returns The custom injector that can be used inside the dialog.\n */\n _createInjector(config, dialogRef, dialogContainer) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n // The dialog container should be provided as the dialog container and the dialog's\n // content are created out of the same `ViewContainerRef` and as such, are siblings\n // for injector purposes. To allow the hierarchy that is expected, the dialog\n // container is explicitly provided in the injector.\n const providers = [\n { provide: this._dialogContainerType, useValue: dialogContainer },\n { provide: this._dialogDataToken, useValue: config.data },\n { provide: this._dialogRefConstructor, useValue: dialogRef },\n ];\n if (config.direction &&\n (!userInjector ||\n !userInjector.get(Directionality, null, InjectFlags.Optional))) {\n providers.push({\n provide: Directionality,\n useValue: { value: config.direction, change: of() },\n });\n }\n return Injector.create({ parent: userInjector || this._injector, providers });\n }\n /**\n * Removes a dialog from the array of open dialogs.\n * @param dialogRef Dialog to be removed.\n */\n _removeOpenDialog(dialogRef) {\n const index = this.openDialogs.indexOf(dialogRef);\n if (index > -1) {\n this.openDialogs.splice(index, 1);\n // If all the dialogs were closed, remove/restore the `aria-hidden`\n // to a the siblings and emit to the `afterAllClosed` stream.\n if (!this.openDialogs.length) {\n this._ariaHiddenElements.forEach((previousValue, element) => {\n if (previousValue) {\n element.setAttribute('aria-hidden', previousValue);\n }\n else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenElements.clear();\n this._getAfterAllClosed().next();\n }\n }\n }\n /**\n * Hides all of the content that isn't an overlay from assistive technology.\n */\n _hideNonDialogContentFromAssistiveTechnology() {\n const overlayContainer = this._overlayContainer.getContainerElement();\n // Ensure that the overlay container is attached to the DOM.\n if (overlayContainer.parentElement) {\n const siblings = overlayContainer.parentElement.children;\n for (let i = siblings.length - 1; i > -1; i--) {\n let sibling = siblings[i];\n if (sibling !== overlayContainer &&\n sibling.nodeName !== 'SCRIPT' &&\n sibling.nodeName !== 'STYLE' &&\n !sibling.hasAttribute('aria-live')) {\n this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n }\n }\n }\n /** Closes all of the dialogs in an array. */\n _closeDialogs(dialogs) {\n let i = dialogs.length;\n while (i--) {\n // The `_openDialogs` property isn't updated after close until the rxjs subscription\n // runs on the next microtask, in addition to modifying the array as we're going\n // through it. We loop through all of them and call close without assuming that\n // they'll be removed from the list instantaneously.\n dialogs[i].close();\n }\n }\n}\n_MatDialogBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatDialogBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatDialogBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatDialogBase, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatDialogBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: undefined }, { type: undefined }, { type: i1$1.OverlayContainer }, { type: undefined }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }, { type: undefined }]; } });\n/**\n * Service to open Material Design modal dialogs.\n */\nclass MatDialog extends _MatDialogBase {\n constructor(overlay, injector, \n /**\n * @deprecated `_location` parameter to be removed.\n * @breaking-change 10.0.0\n */\n location, defaultOptions, scrollStrategy, parentDialog, overlayContainer, animationMode) {\n super(overlay, injector, defaultOptions, parentDialog, overlayContainer, scrollStrategy, MatDialogRef, MatDialogContainer, MAT_DIALOG_DATA, animationMode);\n }\n}\nMatDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialog, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: i2.Location, optional: true }, { token: MAT_DIALOG_DEFAULT_OPTIONS, optional: true }, { token: MAT_DIALOG_SCROLL_STRATEGY }, { token: MatDialog, optional: true, skipSelf: true }, { token: i1$1.OverlayContainer }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nMatDialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialog });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialog, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: i2.Location, decorators: [{\n type: Optional\n }] }, { type: MatDialogConfig, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DIALOG_DEFAULT_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DIALOG_SCROLL_STRATEGY]\n }] }, { type: MatDialog, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }, { type: i1$1.OverlayContainer }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n } });\n/**\n * Applies default options to the dialog config.\n * @param config Config to be modified.\n * @param defaultOptions Default options provided.\n * @returns The new configuration object.\n */\nfunction _applyConfigDefaults(config, defaultOptions) {\n return Object.assign(Object.assign({}, defaultOptions), config);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Counter used to generate unique IDs for dialog elements. */\nlet dialogElementUid = 0;\n/**\n * Button that will close the current dialog.\n */\nclass MatDialogClose {\n constructor(\n /**\n * Reference to the containing dialog.\n * @deprecated `dialogRef` property to become private.\n * @breaking-change 13.0.0\n */\n // The dialog title directive is always used in combination with a `MatDialogRef`.\n // tslint:disable-next-line: lightweight-tokens\n dialogRef, _elementRef, _dialog) {\n this.dialogRef = dialogRef;\n this._elementRef = _elementRef;\n this._dialog = _dialog;\n /** Default to \"button\" to prevents accidental form submits. */\n this.type = 'button';\n }\n ngOnInit() {\n if (!this.dialogRef) {\n // When this directive is included in a dialog via TemplateRef (rather than being\n // in a Component), the DialogRef isn't available via injection because embedded\n // views cannot be given a custom injector. Instead, we look up the DialogRef by\n // ID. This must occur in `onInit`, as the ID binding for the dialog container won't\n // be resolved at constructor time.\n this.dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);\n }\n }\n ngOnChanges(changes) {\n const proxiedChange = changes['_matDialogClose'] || changes['_matDialogCloseResult'];\n if (proxiedChange) {\n this.dialogResult = proxiedChange.currentValue;\n }\n }\n _onButtonClick(event) {\n // Determinate the focus origin using the click event, because using the FocusMonitor will\n // result in incorrect origins. Most of the time, close buttons will be auto focused in the\n // dialog, and therefore clicking the button won't result in a focus change. This means that\n // the FocusMonitor won't detect any origin change, and will always output `program`.\n _closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);\n }\n}\nMatDialogClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogClose, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });\nMatDialogClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDialogClose, selector: \"[mat-dialog-close], [matDialogClose]\", inputs: { ariaLabel: [\"aria-label\", \"ariaLabel\"], type: \"type\", dialogResult: [\"mat-dialog-close\", \"dialogResult\"], _matDialogClose: [\"matDialogClose\", \"_matDialogClose\"] }, host: { listeners: { \"click\": \"_onButtonClick($event)\" }, properties: { \"attr.aria-label\": \"ariaLabel || null\", \"attr.type\": \"type\" } }, exportAs: [\"matDialogClose\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogClose, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-dialog-close], [matDialogClose]',\n exportAs: 'matDialogClose',\n host: {\n '(click)': '_onButtonClick($event)',\n '[attr.aria-label]': 'ariaLabel || null',\n '[attr.type]': 'type',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: MatDialogRef, decorators: [{\n type: Optional\n }] }, { type: i0.ElementRef }, { type: MatDialog }];\n }, propDecorators: { ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], type: [{\n type: Input\n }], dialogResult: [{\n type: Input,\n args: ['mat-dialog-close']\n }], _matDialogClose: [{\n type: Input,\n args: ['matDialogClose']\n }] } });\n/**\n * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.\n */\nclass MatDialogTitle {\n constructor(\n // The dialog title directive is always used in combination with a `MatDialogRef`.\n // tslint:disable-next-line: lightweight-tokens\n _dialogRef, _elementRef, _dialog) {\n this._dialogRef = _dialogRef;\n this._elementRef = _elementRef;\n this._dialog = _dialog;\n /** Unique id for the dialog title. If none is supplied, it will be auto-generated. */\n this.id = `mat-dialog-title-${dialogElementUid++}`;\n }\n ngOnInit() {\n if (!this._dialogRef) {\n this._dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);\n }\n if (this._dialogRef) {\n Promise.resolve().then(() => {\n const container = this._dialogRef._containerInstance;\n if (container && !container._ariaLabelledBy) {\n container._ariaLabelledBy = this.id;\n }\n });\n }\n }\n}\nMatDialogTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogTitle, deps: [{ token: MatDialogRef, optional: true }, { token: i0.ElementRef }, { token: MatDialog }], target: i0.ɵɵFactoryTarget.Directive });\nMatDialogTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDialogTitle, selector: \"[mat-dialog-title], [matDialogTitle]\", inputs: { id: \"id\" }, host: { properties: { \"id\": \"id\" }, classAttribute: \"mat-dialog-title\" }, exportAs: [\"matDialogTitle\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogTitle, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-dialog-title], [matDialogTitle]',\n exportAs: 'matDialogTitle',\n host: {\n 'class': 'mat-dialog-title',\n '[id]': 'id',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: MatDialogRef, decorators: [{\n type: Optional\n }] }, { type: i0.ElementRef }, { type: MatDialog }];\n }, propDecorators: { id: [{\n type: Input\n }] } });\n/**\n * Scrollable content container of a dialog.\n */\nclass MatDialogContent {\n}\nMatDialogContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatDialogContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDialogContent, selector: \"[mat-dialog-content], mat-dialog-content, [matDialogContent]\", host: { classAttribute: \"mat-dialog-content\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogContent, decorators: [{\n type: Directive,\n args: [{\n selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,\n host: { 'class': 'mat-dialog-content' },\n }]\n }] });\n/**\n * Container for the bottom action buttons in a dialog.\n * Stays fixed to the bottom when scrolling.\n */\nclass MatDialogActions {\n}\nMatDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatDialogActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDialogActions, selector: \"[mat-dialog-actions], mat-dialog-actions, [matDialogActions]\", host: { classAttribute: \"mat-dialog-actions\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogActions, decorators: [{\n type: Directive,\n args: [{\n selector: `[mat-dialog-actions], mat-dialog-actions, [matDialogActions]`,\n host: { 'class': 'mat-dialog-actions' },\n }]\n }] });\n/**\n * Finds the closest MatDialogRef to an element by looking at the DOM.\n * @param element Element relative to which to look for a dialog.\n * @param openDialogs References to the currently-open dialogs.\n */\nfunction getClosestDialog(element, openDialogs) {\n let parent = element.nativeElement.parentElement;\n while (parent && !parent.classList.contains('mat-dialog-container')) {\n parent = parent.parentElement;\n }\n return parent ? openDialogs.find(dialog => dialog.id === parent.id) : null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatDialogModule {\n}\nMatDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogModule, declarations: [MatDialogContainer,\n MatDialogClose,\n MatDialogTitle,\n MatDialogActions,\n MatDialogContent], imports: [OverlayModule, PortalModule, MatCommonModule], exports: [MatDialogContainer,\n MatDialogClose,\n MatDialogTitle,\n MatDialogContent,\n MatDialogActions,\n MatCommonModule] });\nMatDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogModule, providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER], imports: [[OverlayModule, PortalModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDialogModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [OverlayModule, PortalModule, MatCommonModule],\n exports: [\n MatDialogContainer,\n MatDialogClose,\n MatDialogTitle,\n MatDialogContent,\n MatDialogActions,\n MatCommonModule,\n ],\n declarations: [\n MatDialogContainer,\n MatDialogClose,\n MatDialogTitle,\n MatDialogActions,\n MatDialogContent,\n ],\n providers: [MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_FACTORY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MatDialog, MatDialogActions, MatDialogClose, MatDialogConfig, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogTitle, _MatDialogBase, _MatDialogContainerBase, _closeDialogVia, matDialogAnimations, throwMatDialogContentAlreadyAttachedError };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, Input, ContentChildren, Directive, NgModule } from '@angular/core';\nimport { setLines, MatLine, MatLineModule, MatCommonModule } from '@angular/material/core';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i1 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Class for determining, from a list of tiles, the (row, col) position of each of those tiles\n * in the grid. This is necessary (rather than just rendering the tiles in normal document flow)\n * because the tiles can have a rowspan.\n *\n * The positioning algorithm greedily places each tile as soon as it encounters a gap in the grid\n * large enough to accommodate it so that the tiles still render in the same order in which they\n * are given.\n *\n * The basis of the algorithm is the use of an array to track the already placed tiles. Each\n * element of the array corresponds to a column, and the value indicates how many cells in that\n * column are already occupied; zero indicates an empty cell. Moving \"down\" to the next row\n * decrements each value in the tracking array (indicating that the column is one cell closer to\n * being free).\n *\n * @docs-private\n */\nclass TileCoordinator {\n constructor() {\n /** Index at which the search for the next gap will start. */\n this.columnIndex = 0;\n /** The current row index. */\n this.rowIndex = 0;\n }\n /** Gets the total number of rows occupied by tiles */\n get rowCount() {\n return this.rowIndex + 1;\n }\n /**\n * Gets the total span of rows occupied by tiles.\n * Ex: A list with 1 row that contains a tile with rowspan 2 will have a total rowspan of 2.\n */\n get rowspan() {\n const lastRowMax = Math.max(...this.tracker);\n // if any of the tiles has a rowspan that pushes it beyond the total row count,\n // add the difference to the rowcount\n return lastRowMax > 1 ? this.rowCount + lastRowMax - 1 : this.rowCount;\n }\n /**\n * Updates the tile positions.\n * @param numColumns Amount of columns in the grid.\n * @param tiles Tiles to be positioned.\n */\n update(numColumns, tiles) {\n this.columnIndex = 0;\n this.rowIndex = 0;\n this.tracker = new Array(numColumns);\n this.tracker.fill(0, 0, this.tracker.length);\n this.positions = tiles.map(tile => this._trackTile(tile));\n }\n /** Calculates the row and col position of a tile. */\n _trackTile(tile) {\n // Find a gap large enough for this tile.\n const gapStartIndex = this._findMatchingGap(tile.colspan);\n // Place tile in the resulting gap.\n this._markTilePosition(gapStartIndex, tile);\n // The next time we look for a gap, the search will start at columnIndex, which should be\n // immediately after the tile that has just been placed.\n this.columnIndex = gapStartIndex + tile.colspan;\n return new TilePosition(this.rowIndex, gapStartIndex);\n }\n /** Finds the next available space large enough to fit the tile. */\n _findMatchingGap(tileCols) {\n if (tileCols > this.tracker.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`mat-grid-list: tile with colspan ${tileCols} is wider than ` +\n `grid with cols=\"${this.tracker.length}\".`);\n }\n // Start index is inclusive, end index is exclusive.\n let gapStartIndex = -1;\n let gapEndIndex = -1;\n // Look for a gap large enough to fit the given tile. Empty spaces are marked with a zero.\n do {\n // If we've reached the end of the row, go to the next row.\n if (this.columnIndex + tileCols > this.tracker.length) {\n this._nextRow();\n gapStartIndex = this.tracker.indexOf(0, this.columnIndex);\n gapEndIndex = this._findGapEndIndex(gapStartIndex);\n continue;\n }\n gapStartIndex = this.tracker.indexOf(0, this.columnIndex);\n // If there are no more empty spaces in this row at all, move on to the next row.\n if (gapStartIndex == -1) {\n this._nextRow();\n gapStartIndex = this.tracker.indexOf(0, this.columnIndex);\n gapEndIndex = this._findGapEndIndex(gapStartIndex);\n continue;\n }\n gapEndIndex = this._findGapEndIndex(gapStartIndex);\n // If a gap large enough isn't found, we want to start looking immediately after the current\n // gap on the next iteration.\n this.columnIndex = gapStartIndex + 1;\n // Continue iterating until we find a gap wide enough for this tile. Since gapEndIndex is\n // exclusive, gapEndIndex is 0 means we didn't find a gap and should continue.\n } while (gapEndIndex - gapStartIndex < tileCols || gapEndIndex == 0);\n // If we still didn't manage to find a gap, ensure that the index is\n // at least zero so the tile doesn't get pulled out of the grid.\n return Math.max(gapStartIndex, 0);\n }\n /** Move \"down\" to the next row. */\n _nextRow() {\n this.columnIndex = 0;\n this.rowIndex++;\n // Decrement all spaces by one to reflect moving down one row.\n for (let i = 0; i < this.tracker.length; i++) {\n this.tracker[i] = Math.max(0, this.tracker[i] - 1);\n }\n }\n /**\n * Finds the end index (exclusive) of a gap given the index from which to start looking.\n * The gap ends when a non-zero value is found.\n */\n _findGapEndIndex(gapStartIndex) {\n for (let i = gapStartIndex + 1; i < this.tracker.length; i++) {\n if (this.tracker[i] != 0) {\n return i;\n }\n }\n // The gap ends with the end of the row.\n return this.tracker.length;\n }\n /** Update the tile tracker to account for the given tile in the given space. */\n _markTilePosition(start, tile) {\n for (let i = 0; i < tile.colspan; i++) {\n this.tracker[start + i] = tile.rowspan;\n }\n }\n}\n/**\n * Simple data structure for tile position (row, col).\n * @docs-private\n */\nclass TilePosition {\n constructor(row, col) {\n this.row = row;\n this.col = col;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token used to provide a grid list to a tile and to avoid circular imports.\n * @docs-private\n */\nconst MAT_GRID_LIST = new InjectionToken('MAT_GRID_LIST');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatGridTile {\n constructor(_element, _gridList) {\n this._element = _element;\n this._gridList = _gridList;\n this._rowspan = 1;\n this._colspan = 1;\n }\n /** Amount of rows that the grid tile takes up. */\n get rowspan() {\n return this._rowspan;\n }\n set rowspan(value) {\n this._rowspan = Math.round(coerceNumberProperty(value));\n }\n /** Amount of columns that the grid tile takes up. */\n get colspan() {\n return this._colspan;\n }\n set colspan(value) {\n this._colspan = Math.round(coerceNumberProperty(value));\n }\n /**\n * Sets the style of the grid-tile element. Needs to be set manually to avoid\n * \"Changed after checked\" errors that would occur with HostBinding.\n */\n _setStyle(property, value) {\n this._element.nativeElement.style[property] = value;\n }\n}\nMatGridTile.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTile, deps: [{ token: i0.ElementRef }, { token: MAT_GRID_LIST, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatGridTile.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridTile, selector: \"mat-grid-tile\", inputs: { rowspan: \"rowspan\", colspan: \"colspan\" }, host: { properties: { \"attr.rowspan\": \"rowspan\", \"attr.colspan\": \"colspan\" }, classAttribute: \"mat-grid-tile\" }, exportAs: [\"matGridTile\"], ngImport: i0, template: \"<div class=\\\"mat-grid-tile-content\\\">\\n <ng-content></ng-content>\\n</div>\\n\", styles: [\".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTile, decorators: [{\n type: Component,\n args: [{ selector: 'mat-grid-tile', exportAs: 'matGridTile', host: {\n 'class': 'mat-grid-tile',\n // Ensures that the \"rowspan\" and \"colspan\" input value is reflected in\n // the DOM. This is needed for the grid-tile harness.\n '[attr.rowspan]': 'rowspan',\n '[attr.colspan]': 'colspan',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-grid-tile-content\\\">\\n <ng-content></ng-content>\\n</div>\\n\", styles: [\".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_GRID_LIST]\n }] }];\n }, propDecorators: { rowspan: [{\n type: Input\n }], colspan: [{\n type: Input\n }] } });\nclass MatGridTileText {\n constructor(_element) {\n this._element = _element;\n }\n ngAfterContentInit() {\n setLines(this._lines, this._element);\n }\n}\nMatGridTileText.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileText, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\nMatGridTileText.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridTileText, selector: \"mat-grid-tile-header, mat-grid-tile-footer\", queries: [{ propertyName: \"_lines\", predicate: MatLine, descendants: true }], ngImport: i0, template: \"<ng-content select=\\\"[mat-grid-avatar], [matGridAvatar]\\\"></ng-content>\\n<div class=\\\"mat-grid-list-text\\\"><ng-content select=\\\"[mat-line], [matLine]\\\"></ng-content></div>\\n<ng-content></ng-content>\\n\", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileText, decorators: [{\n type: Component,\n args: [{ selector: 'mat-grid-tile-header, mat-grid-tile-footer', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<ng-content select=\\\"[mat-grid-avatar], [matGridAvatar]\\\"></ng-content>\\n<div class=\\\"mat-grid-list-text\\\"><ng-content select=\\\"[mat-line], [matLine]\\\"></ng-content></div>\\n<ng-content></ng-content>\\n\" }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _lines: [{\n type: ContentChildren,\n args: [MatLine, { descendants: true }]\n }] } });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatGridAvatarCssMatStyler {\n}\nMatGridAvatarCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridAvatarCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatGridAvatarCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridAvatarCssMatStyler, selector: \"[mat-grid-avatar], [matGridAvatar]\", host: { classAttribute: \"mat-grid-avatar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridAvatarCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-grid-avatar], [matGridAvatar]',\n host: { 'class': 'mat-grid-avatar' },\n }]\n }] });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatGridTileHeaderCssMatStyler {\n}\nMatGridTileHeaderCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileHeaderCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatGridTileHeaderCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridTileHeaderCssMatStyler, selector: \"mat-grid-tile-header\", host: { classAttribute: \"mat-grid-tile-header\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileHeaderCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-grid-tile-header',\n host: { 'class': 'mat-grid-tile-header' },\n }]\n }] });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatGridTileFooterCssMatStyler {\n}\nMatGridTileFooterCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileFooterCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatGridTileFooterCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridTileFooterCssMatStyler, selector: \"mat-grid-tile-footer\", host: { classAttribute: \"mat-grid-tile-footer\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridTileFooterCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-grid-tile-footer',\n host: { 'class': 'mat-grid-tile-footer' },\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * RegExp that can be used to check whether a value will\n * be allowed inside a CSS `calc()` expression.\n */\nconst cssCalcAllowedValue = /^-?\\d+((\\.\\d+)?[A-Za-z%$]?)+$/;\n/**\n * Sets the style properties for an individual tile, given the position calculated by the\n * Tile Coordinator.\n * @docs-private\n */\nclass TileStyler {\n constructor() {\n this._rows = 0;\n this._rowspan = 0;\n }\n /**\n * Adds grid-list layout info once it is available. Cannot be processed in the constructor\n * because these properties haven't been calculated by that point.\n *\n * @param gutterSize Size of the grid's gutter.\n * @param tracker Instance of the TileCoordinator.\n * @param cols Amount of columns in the grid.\n * @param direction Layout direction of the grid.\n */\n init(gutterSize, tracker, cols, direction) {\n this._gutterSize = normalizeUnits(gutterSize);\n this._rows = tracker.rowCount;\n this._rowspan = tracker.rowspan;\n this._cols = cols;\n this._direction = direction;\n }\n /**\n * Computes the amount of space a single 1x1 tile would take up (width or height).\n * Used as a basis for other calculations.\n * @param sizePercent Percent of the total grid-list space that one 1x1 tile would take up.\n * @param gutterFraction Fraction of the gutter size taken up by one 1x1 tile.\n * @return The size of a 1x1 tile as an expression that can be evaluated via CSS calc().\n */\n getBaseTileSize(sizePercent, gutterFraction) {\n // Take the base size percent (as would be if evenly dividing the size between cells),\n // and then subtracting the size of one gutter. However, since there are no gutters on the\n // edges, each tile only uses a fraction (gutterShare = numGutters / numCells) of the gutter\n // size. (Imagine having one gutter per tile, and then breaking up the extra gutter on the\n // edge evenly among the cells).\n return `(${sizePercent}% - (${this._gutterSize} * ${gutterFraction}))`;\n }\n /**\n * Gets The horizontal or vertical position of a tile, e.g., the 'top' or 'left' property value.\n * @param offset Number of tiles that have already been rendered in the row/column.\n * @param baseSize Base size of a 1x1 tile (as computed in getBaseTileSize).\n * @return Position of the tile as a CSS calc() expression.\n */\n getTilePosition(baseSize, offset) {\n // The position comes the size of a 1x1 tile plus gutter for each previous tile in the\n // row/column (offset).\n return offset === 0 ? '0' : calc(`(${baseSize} + ${this._gutterSize}) * ${offset}`);\n }\n /**\n * Gets the actual size of a tile, e.g., width or height, taking rowspan or colspan into account.\n * @param baseSize Base size of a 1x1 tile (as computed in getBaseTileSize).\n * @param span The tile's rowspan or colspan.\n * @return Size of the tile as a CSS calc() expression.\n */\n getTileSize(baseSize, span) {\n return `(${baseSize} * ${span}) + (${span - 1} * ${this._gutterSize})`;\n }\n /**\n * Sets the style properties to be applied to a tile for the given row and column index.\n * @param tile Tile to which to apply the styling.\n * @param rowIndex Index of the tile's row.\n * @param colIndex Index of the tile's column.\n */\n setStyle(tile, rowIndex, colIndex) {\n // Percent of the available horizontal space that one column takes up.\n let percentWidthPerTile = 100 / this._cols;\n // Fraction of the vertical gutter size that each column takes up.\n // For example, if there are 5 columns, each column uses 4/5 = 0.8 times the gutter width.\n let gutterWidthFractionPerTile = (this._cols - 1) / this._cols;\n this.setColStyles(tile, colIndex, percentWidthPerTile, gutterWidthFractionPerTile);\n this.setRowStyles(tile, rowIndex, percentWidthPerTile, gutterWidthFractionPerTile);\n }\n /** Sets the horizontal placement of the tile in the list. */\n setColStyles(tile, colIndex, percentWidth, gutterWidth) {\n // Base horizontal size of a column.\n let baseTileWidth = this.getBaseTileSize(percentWidth, gutterWidth);\n // The width and horizontal position of each tile is always calculated the same way, but the\n // height and vertical position depends on the rowMode.\n let side = this._direction === 'rtl' ? 'right' : 'left';\n tile._setStyle(side, this.getTilePosition(baseTileWidth, colIndex));\n tile._setStyle('width', calc(this.getTileSize(baseTileWidth, tile.colspan)));\n }\n /**\n * Calculates the total size taken up by gutters across one axis of a list.\n */\n getGutterSpan() {\n return `${this._gutterSize} * (${this._rowspan} - 1)`;\n }\n /**\n * Calculates the total size taken up by tiles across one axis of a list.\n * @param tileHeight Height of the tile.\n */\n getTileSpan(tileHeight) {\n return `${this._rowspan} * ${this.getTileSize(tileHeight, 1)}`;\n }\n /**\n * Calculates the computed height and returns the correct style property to set.\n * This method can be implemented by each type of TileStyler.\n * @docs-private\n */\n getComputedHeight() {\n return null;\n }\n}\n/**\n * This type of styler is instantiated when the user passes in a fixed row height.\n * Example `<mat-grid-list cols=\"3\" rowHeight=\"100px\">`\n * @docs-private\n */\nclass FixedTileStyler extends TileStyler {\n constructor(fixedRowHeight) {\n super();\n this.fixedRowHeight = fixedRowHeight;\n }\n init(gutterSize, tracker, cols, direction) {\n super.init(gutterSize, tracker, cols, direction);\n this.fixedRowHeight = normalizeUnits(this.fixedRowHeight);\n if (!cssCalcAllowedValue.test(this.fixedRowHeight) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Invalid value \"${this.fixedRowHeight}\" set as rowHeight.`);\n }\n }\n setRowStyles(tile, rowIndex) {\n tile._setStyle('top', this.getTilePosition(this.fixedRowHeight, rowIndex));\n tile._setStyle('height', calc(this.getTileSize(this.fixedRowHeight, tile.rowspan)));\n }\n getComputedHeight() {\n return ['height', calc(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)];\n }\n reset(list) {\n list._setListStyle(['height', null]);\n if (list._tiles) {\n list._tiles.forEach(tile => {\n tile._setStyle('top', null);\n tile._setStyle('height', null);\n });\n }\n }\n}\n/**\n * This type of styler is instantiated when the user passes in a width:height ratio\n * for the row height. Example `<mat-grid-list cols=\"3\" rowHeight=\"3:1\">`\n * @docs-private\n */\nclass RatioTileStyler extends TileStyler {\n constructor(value) {\n super();\n this._parseRatio(value);\n }\n setRowStyles(tile, rowIndex, percentWidth, gutterWidth) {\n let percentHeightPerTile = percentWidth / this.rowHeightRatio;\n this.baseTileHeight = this.getBaseTileSize(percentHeightPerTile, gutterWidth);\n // Use padding-top and margin-top to maintain the given aspect ratio, as\n // a percentage-based value for these properties is applied versus the *width* of the\n // containing block. See http://www.w3.org/TR/CSS2/box.html#margin-properties\n tile._setStyle('marginTop', this.getTilePosition(this.baseTileHeight, rowIndex));\n tile._setStyle('paddingTop', calc(this.getTileSize(this.baseTileHeight, tile.rowspan)));\n }\n getComputedHeight() {\n return [\n 'paddingBottom',\n calc(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`),\n ];\n }\n reset(list) {\n list._setListStyle(['paddingBottom', null]);\n list._tiles.forEach(tile => {\n tile._setStyle('marginTop', null);\n tile._setStyle('paddingTop', null);\n });\n }\n _parseRatio(value) {\n const ratioParts = value.split(':');\n if (ratioParts.length !== 2 && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`mat-grid-list: invalid ratio given for row-height: \"${value}\"`);\n }\n this.rowHeightRatio = parseFloat(ratioParts[0]) / parseFloat(ratioParts[1]);\n }\n}\n/**\n * This type of styler is instantiated when the user selects a \"fit\" row height mode.\n * In other words, the row height will reflect the total height of the container divided\n * by the number of rows. Example `<mat-grid-list cols=\"3\" rowHeight=\"fit\">`\n *\n * @docs-private\n */\nclass FitTileStyler extends TileStyler {\n setRowStyles(tile, rowIndex) {\n // Percent of the available vertical space that one row takes up.\n let percentHeightPerTile = 100 / this._rowspan;\n // Fraction of the horizontal gutter size that each column takes up.\n let gutterHeightPerTile = (this._rows - 1) / this._rows;\n // Base vertical size of a column.\n let baseTileHeight = this.getBaseTileSize(percentHeightPerTile, gutterHeightPerTile);\n tile._setStyle('top', this.getTilePosition(baseTileHeight, rowIndex));\n tile._setStyle('height', calc(this.getTileSize(baseTileHeight, tile.rowspan)));\n }\n reset(list) {\n if (list._tiles) {\n list._tiles.forEach(tile => {\n tile._setStyle('top', null);\n tile._setStyle('height', null);\n });\n }\n }\n}\n/** Wraps a CSS string in a calc function */\nfunction calc(exp) {\n return `calc(${exp})`;\n}\n/** Appends pixels to a CSS string if no units are given. */\nfunction normalizeUnits(value) {\n return value.match(/([A-Za-z%]+)$/) ? value : `${value}px`;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(kara): Conditional (responsive) column count / row size.\n// TODO(kara): Re-layout on window resize / media change (debounced).\n// TODO(kara): gridTileHeader and gridTileFooter.\nconst MAT_FIT_MODE = 'fit';\nclass MatGridList {\n constructor(_element, _dir) {\n this._element = _element;\n this._dir = _dir;\n /** The amount of space between tiles. This will be something like '5px' or '2em'. */\n this._gutter = '1px';\n }\n /** Amount of columns in the grid list. */\n get cols() {\n return this._cols;\n }\n set cols(value) {\n this._cols = Math.max(1, Math.round(coerceNumberProperty(value)));\n }\n /** Size of the grid list's gutter in pixels. */\n get gutterSize() {\n return this._gutter;\n }\n set gutterSize(value) {\n this._gutter = `${value == null ? '' : value}`;\n }\n /** Set internal representation of row height from the user-provided value. */\n get rowHeight() {\n return this._rowHeight;\n }\n set rowHeight(value) {\n const newValue = `${value == null ? '' : value}`;\n if (newValue !== this._rowHeight) {\n this._rowHeight = newValue;\n this._setTileStyler(this._rowHeight);\n }\n }\n ngOnInit() {\n this._checkCols();\n this._checkRowHeight();\n }\n /**\n * The layout calculation is fairly cheap if nothing changes, so there's little cost\n * to run it frequently.\n */\n ngAfterContentChecked() {\n this._layoutTiles();\n }\n /** Throw a friendly error if cols property is missing */\n _checkCols() {\n if (!this.cols && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`mat-grid-list: must pass in number of columns. ` + `Example: <mat-grid-list cols=\"3\">`);\n }\n }\n /** Default to equal width:height if rowHeight property is missing */\n _checkRowHeight() {\n if (!this._rowHeight) {\n this._setTileStyler('1:1');\n }\n }\n /** Creates correct Tile Styler subtype based on rowHeight passed in by user */\n _setTileStyler(rowHeight) {\n if (this._tileStyler) {\n this._tileStyler.reset(this);\n }\n if (rowHeight === MAT_FIT_MODE) {\n this._tileStyler = new FitTileStyler();\n }\n else if (rowHeight && rowHeight.indexOf(':') > -1) {\n this._tileStyler = new RatioTileStyler(rowHeight);\n }\n else {\n this._tileStyler = new FixedTileStyler(rowHeight);\n }\n }\n /** Computes and applies the size and position for all children grid tiles. */\n _layoutTiles() {\n if (!this._tileCoordinator) {\n this._tileCoordinator = new TileCoordinator();\n }\n const tracker = this._tileCoordinator;\n const tiles = this._tiles.filter(tile => !tile._gridList || tile._gridList === this);\n const direction = this._dir ? this._dir.value : 'ltr';\n this._tileCoordinator.update(this.cols, tiles);\n this._tileStyler.init(this.gutterSize, tracker, this.cols, direction);\n tiles.forEach((tile, index) => {\n const pos = tracker.positions[index];\n this._tileStyler.setStyle(tile, pos.row, pos.col);\n });\n this._setListStyle(this._tileStyler.getComputedHeight());\n }\n /** Sets style on the main grid-list element, given the style name and value. */\n _setListStyle(style) {\n if (style) {\n this._element.nativeElement.style[style[0]] = style[1];\n }\n }\n}\nMatGridList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridList, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatGridList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatGridList, selector: \"mat-grid-list\", inputs: { cols: \"cols\", gutterSize: \"gutterSize\", rowHeight: \"rowHeight\" }, host: { properties: { \"attr.cols\": \"cols\" }, classAttribute: \"mat-grid-list\" }, providers: [\n {\n provide: MAT_GRID_LIST,\n useExisting: MatGridList,\n },\n ], queries: [{ propertyName: \"_tiles\", predicate: MatGridTile, descendants: true }], exportAs: [\"matGridList\"], ngImport: i0, template: \"<div>\\n <ng-content></ng-content>\\n</div>\", styles: [\".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridList, decorators: [{\n type: Component,\n args: [{ selector: 'mat-grid-list', exportAs: 'matGridList', host: {\n 'class': 'mat-grid-list',\n // Ensures that the \"cols\" input value is reflected in the DOM. This is\n // needed for the grid-list harness.\n '[attr.cols]': 'cols',\n }, providers: [\n {\n provide: MAT_GRID_LIST,\n useExisting: MatGridList,\n },\n ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div>\\n <ng-content></ng-content>\\n</div>\", styles: [\".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { _tiles: [{\n type: ContentChildren,\n args: [MatGridTile, { descendants: true }]\n }], cols: [{\n type: Input\n }], gutterSize: [{\n type: Input\n }], rowHeight: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatGridListModule {\n}\nMatGridListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatGridListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridListModule, declarations: [MatGridList,\n MatGridTile,\n MatGridTileText,\n MatGridTileHeaderCssMatStyler,\n MatGridTileFooterCssMatStyler,\n MatGridAvatarCssMatStyler], imports: [MatLineModule, MatCommonModule], exports: [MatGridList,\n MatGridTile,\n MatGridTileText,\n MatLineModule,\n MatCommonModule,\n MatGridTileHeaderCssMatStyler,\n MatGridTileFooterCssMatStyler,\n MatGridAvatarCssMatStyler] });\nMatGridListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridListModule, imports: [[MatLineModule, MatCommonModule], MatLineModule,\n MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatGridListModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatLineModule, MatCommonModule],\n exports: [\n MatGridList,\n MatGridTile,\n MatGridTileText,\n MatLineModule,\n MatCommonModule,\n MatGridTileHeaderCssMatStyler,\n MatGridTileFooterCssMatStyler,\n MatGridAvatarCssMatStyler,\n ],\n declarations: [\n MatGridList,\n MatGridTile,\n MatGridTileText,\n MatGridTileHeaderCssMatStyler,\n MatGridTileFooterCssMatStyler,\n MatGridAvatarCssMatStyler,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Privately exported for the grid-list harness.\nconst ɵTileCoordinator = TileCoordinator;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatGridAvatarCssMatStyler, MatGridList, MatGridListModule, MatGridTile, MatGridTileFooterCssMatStyler, MatGridTileHeaderCssMatStyler, MatGridTileText, ɵTileCoordinator };\n","import { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function delay(delay, scheduler = async) {\n const absoluteDelay = isDate(delay);\n const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);\n return (source) => source.lift(new DelayOperator(delayFor, scheduler));\n}\nclass DelayOperator {\n constructor(delay, scheduler) {\n this.delay = delay;\n this.scheduler = scheduler;\n }\n call(subscriber, source) {\n return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n }\n}\nclass DelaySubscriber extends Subscriber {\n constructor(destination, delay, scheduler) {\n super(destination);\n this.delay = delay;\n this.scheduler = scheduler;\n this.queue = [];\n this.active = false;\n this.errored = false;\n }\n static dispatch(state) {\n const source = state.source;\n const queue = source.queue;\n const scheduler = state.scheduler;\n const destination = state.destination;\n while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n queue.shift().notification.observe(destination);\n }\n if (queue.length > 0) {\n const delay = Math.max(0, queue[0].time - scheduler.now());\n this.schedule(state, delay);\n }\n else {\n this.unsubscribe();\n source.active = false;\n }\n }\n _schedule(scheduler) {\n this.active = true;\n const destination = this.destination;\n destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {\n source: this, destination: this.destination, scheduler: scheduler\n }));\n }\n scheduleNotification(notification) {\n if (this.errored === true) {\n return;\n }\n const scheduler = this.scheduler;\n const message = new DelayMessage(scheduler.now() + this.delay, notification);\n this.queue.push(message);\n if (this.active === false) {\n this._schedule(scheduler);\n }\n }\n _next(value) {\n this.scheduleNotification(Notification.createNext(value));\n }\n _error(err) {\n this.errored = true;\n this.queue = [];\n this.destination.error(err);\n this.unsubscribe();\n }\n _complete() {\n this.scheduleNotification(Notification.createComplete());\n this.unsubscribe();\n }\n}\nclass DelayMessage {\n constructor(time, notification) {\n this.time = time;\n this.notification = notification;\n }\n}\n","export function isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n","import * as i1 from '@angular/cdk/a11y';\nimport { FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, ESCAPE, hasModifierKey, ENTER, SPACE } from '@angular/cdk/keycodes';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Input, QueryList, EventEmitter, TemplateRef, ContentChildren, ViewChild, ContentChild, Output, Self, NgModule } from '@angular/core';\nimport { Subject, Subscription, merge, of, asapScheduler } from 'rxjs';\nimport { startWith, switchMap, take, filter, takeUntil, delay } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i2 from '@angular/material/core';\nimport { mixinDisableRipple, mixinDisabled, MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport * as i1$1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport * as i3$1 from '@angular/cdk/bidi';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the mat-menu component.\n * Animation duration and timing values are based on:\n * https://material.io/guidelines/components/menus.html#menus-usage\n * @docs-private\n */\nconst matMenuAnimations = {\n /**\n * This animation controls the menu panel's entry and exit from the page.\n *\n * When the menu panel is added to the DOM, it scales in and fades in its border.\n *\n * When the menu panel is removed from the DOM, it simply fades out after a brief\n * delay to display the ripple.\n */\n transformMenu: trigger('transformMenu', [\n state('void', style({\n opacity: 0,\n transform: 'scale(0.8)',\n })),\n transition('void => enter', animate('120ms cubic-bezier(0, 0, 0.2, 1)', style({\n opacity: 1,\n transform: 'scale(1)',\n }))),\n transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 }))),\n ]),\n /**\n * This animation fades in the background color and content of the menu panel\n * after its containing element is scaled in.\n */\n fadeInItems: trigger('fadeInItems', [\n // TODO(crisbeto): this is inside the `transformMenu`\n // now. Remove next time we do breaking changes.\n state('showing', style({ opacity: 1 })),\n transition('void => *', [\n style({ opacity: 0 }),\n animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'),\n ]),\n ]),\n};\n/**\n * @deprecated\n * @breaking-change 8.0.0\n * @docs-private\n */\nconst fadeInItems = matMenuAnimations.fadeInItems;\n/**\n * @deprecated\n * @breaking-change 8.0.0\n * @docs-private\n */\nconst transformMenu = matMenuAnimations.transformMenu;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatMenuContent`. It serves\n * as alternative token to the actual `MatMenuContent` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_MENU_CONTENT = new InjectionToken('MatMenuContent');\nclass _MatMenuContentBase {\n constructor(_template, _componentFactoryResolver, _appRef, _injector, _viewContainerRef, _document, _changeDetectorRef) {\n this._template = _template;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._appRef = _appRef;\n this._injector = _injector;\n this._viewContainerRef = _viewContainerRef;\n this._document = _document;\n this._changeDetectorRef = _changeDetectorRef;\n /** Emits when the menu content has been attached. */\n this._attached = new Subject();\n }\n /**\n * Attaches the content with a particular context.\n * @docs-private\n */\n attach(context = {}) {\n if (!this._portal) {\n this._portal = new TemplatePortal(this._template, this._viewContainerRef);\n }\n this.detach();\n if (!this._outlet) {\n this._outlet = new DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);\n }\n const element = this._template.elementRef.nativeElement;\n // Because we support opening the same menu from different triggers (which in turn have their\n // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we\n // risk it staying attached to a pane that's no longer in the DOM.\n element.parentNode.insertBefore(this._outlet.outletElement, element);\n // When `MatMenuContent` is used in an `OnPush` component, the insertion of the menu\n // content via `createEmbeddedView` does not cause the content to be seen as \"dirty\"\n // by Angular. This causes the `@ContentChildren` for menu items within the menu to\n // not be updated by Angular. By explicitly marking for check here, we tell Angular that\n // it needs to check for new menu items and update the `@ContentChild` in `MatMenu`.\n // @breaking-change 9.0.0 Make change detector ref required\n if (this._changeDetectorRef) {\n this._changeDetectorRef.markForCheck();\n }\n this._portal.attach(this._outlet, context);\n this._attached.next();\n }\n /**\n * Detaches the content.\n * @docs-private\n */\n detach() {\n if (this._portal.isAttached) {\n this._portal.detach();\n }\n }\n ngOnDestroy() {\n if (this._outlet) {\n this._outlet.dispose();\n }\n }\n}\n_MatMenuContentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuContentBase, deps: [{ token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: DOCUMENT }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_MatMenuContentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatMenuContentBase, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuContentBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.TemplateRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i0.ChangeDetectorRef }];\n } });\n/**\n * Menu content that will be rendered lazily once the menu is opened.\n */\nclass MatMenuContent extends _MatMenuContentBase {\n}\nMatMenuContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuContent, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatMenuContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMenuContent, selector: \"ng-template[matMenuContent]\", providers: [{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuContent, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matMenuContent]',\n providers: [{ provide: MAT_MENU_CONTENT, useExisting: MatMenuContent }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Throws an exception for the case when menu trigger doesn't have a valid mat-menu instance\n * @docs-private\n */\nfunction throwMatMenuMissingError() {\n throw Error(`matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n <mat-menu #menu=\"matMenu\"></mat-menu>\n <button [matMenuTriggerFor]=\"menu\"></button>`);\n}\n/**\n * Throws an exception for the case when menu's x-position value isn't valid.\n * In other words, it doesn't match 'before' or 'after'.\n * @docs-private\n */\nfunction throwMatMenuInvalidPositionX() {\n throw Error(`xPosition value must be either 'before' or after'.\n Example: <mat-menu xPosition=\"before\" #menu=\"matMenu\"></mat-menu>`);\n}\n/**\n * Throws an exception for the case when menu's y-position value isn't valid.\n * In other words, it doesn't match 'above' or 'below'.\n * @docs-private\n */\nfunction throwMatMenuInvalidPositionY() {\n throw Error(`yPosition value must be either 'above' or below'.\n Example: <mat-menu yPosition=\"above\" #menu=\"matMenu\"></mat-menu>`);\n}\n/**\n * Throws an exception for the case when a menu is assigned\n * to a trigger that is placed inside the same menu.\n * @docs-private\n */\nfunction throwMatMenuRecursiveError() {\n throw Error(`matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is ` +\n `not a parent of the trigger or move the trigger outside of the menu.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token used to provide the parent menu to menu-specific components.\n * @docs-private\n */\nconst MAT_MENU_PANEL = new InjectionToken('MAT_MENU_PANEL');\n\n// Boilerplate for applying mixins to MatMenuItem.\n/** @docs-private */\nconst _MatMenuItemBase = mixinDisableRipple(mixinDisabled(class {\n}));\n/**\n * Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.\n */\nclass MatMenuItem extends _MatMenuItemBase {\n constructor(_elementRef, \n /**\n * @deprecated `_document` parameter is no longer being used and will be removed.\n * @breaking-change 12.0.0\n */\n _document, _focusMonitor, _parentMenu, \n /**\n * @deprecated `_changeDetectorRef` to become a required parameter.\n * @breaking-change 14.0.0\n */\n _changeDetectorRef) {\n // @breaking-change 8.0.0 make `_focusMonitor` and `document` required params.\n super();\n this._elementRef = _elementRef;\n this._focusMonitor = _focusMonitor;\n this._parentMenu = _parentMenu;\n this._changeDetectorRef = _changeDetectorRef;\n /** ARIA role for the menu item. */\n this.role = 'menuitem';\n /** Stream that emits when the menu item is hovered. */\n this._hovered = new Subject();\n /** Stream that emits when the menu item is focused. */\n this._focused = new Subject();\n /** Whether the menu item is highlighted. */\n this._highlighted = false;\n /** Whether the menu item acts as a trigger for a sub-menu. */\n this._triggersSubmenu = false;\n if (_parentMenu && _parentMenu.addItem) {\n _parentMenu.addItem(this);\n }\n }\n /** Focuses the menu item. */\n focus(origin, options) {\n if (this._focusMonitor && origin) {\n this._focusMonitor.focusVia(this._getHostElement(), origin, options);\n }\n else {\n this._getHostElement().focus(options);\n }\n this._focused.next(this);\n }\n ngAfterViewInit() {\n if (this._focusMonitor) {\n // Start monitoring the element so it gets the appropriate focused classes. We want\n // to show the focus style for menu items only when the focus was not caused by a\n // mouse or touch interaction.\n this._focusMonitor.monitor(this._elementRef, false);\n }\n }\n ngOnDestroy() {\n if (this._focusMonitor) {\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n if (this._parentMenu && this._parentMenu.removeItem) {\n this._parentMenu.removeItem(this);\n }\n this._hovered.complete();\n this._focused.complete();\n }\n /** Used to set the `tabindex`. */\n _getTabIndex() {\n return this.disabled ? '-1' : '0';\n }\n /** Returns the host DOM element. */\n _getHostElement() {\n return this._elementRef.nativeElement;\n }\n /** Prevents the default element actions if it is disabled. */\n _checkDisabled(event) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n /** Emits to the hover stream. */\n _handleMouseEnter() {\n this._hovered.next(this);\n }\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel() {\n var _a;\n const clone = this._elementRef.nativeElement.cloneNode(true);\n const icons = clone.querySelectorAll('mat-icon, .material-icons');\n // Strip away icons so they don't show up in the text.\n for (let i = 0; i < icons.length; i++) {\n icons[i].remove();\n }\n return ((_a = clone.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';\n }\n _setHighlighted(isHighlighted) {\n var _a;\n // We need to mark this for check for the case where the content is coming from a\n // `matMenuContent` whose change detection tree is at the declaration position,\n // not the insertion position. See #23175.\n // @breaking-change 14.0.0 Remove null check for `_changeDetectorRef`.\n this._highlighted = isHighlighted;\n (_a = this._changeDetectorRef) === null || _a === void 0 ? void 0 : _a.markForCheck();\n }\n}\nMatMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuItem, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }, { token: i1.FocusMonitor }, { token: MAT_MENU_PANEL, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatMenuItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMenuItem, selector: \"[mat-menu-item]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", role: \"role\" }, host: { listeners: { \"click\": \"_checkDisabled($event)\", \"mouseenter\": \"_handleMouseEnter()\" }, properties: { \"attr.role\": \"role\", \"class.mat-menu-item\": \"true\", \"class.mat-menu-item-highlighted\": \"_highlighted\", \"class.mat-menu-item-submenu-trigger\": \"_triggersSubmenu\", \"attr.tabindex\": \"_getTabIndex()\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.disabled\": \"disabled || null\" }, classAttribute: \"mat-focus-indicator\" }, exportAs: [\"matMenuItem\"], usesInheritance: true, ngImport: i0, template: \"<ng-content></ng-content>\\n<div class=\\\"mat-menu-ripple\\\" matRipple\\n [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\">\\n</div>\\n\\n<svg\\n *ngIf=\\\"_triggersSubmenu\\\"\\n class=\\\"mat-menu-submenu-icon\\\"\\n viewBox=\\\"0 0 5 10\\\"\\n focusable=\\\"false\\\"><polygon points=\\\"0,0 5,5 0,10\\\"/></svg>\\n\", directives: [{ type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuItem, decorators: [{\n type: Component,\n args: [{ selector: '[mat-menu-item]', exportAs: 'matMenuItem', inputs: ['disabled', 'disableRipple'], host: {\n '[attr.role]': 'role',\n '[class.mat-menu-item]': 'true',\n '[class.mat-menu-item-highlighted]': '_highlighted',\n '[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',\n '[attr.tabindex]': '_getTabIndex()',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n 'class': 'mat-focus-indicator',\n '(click)': '_checkDisabled($event)',\n '(mouseenter)': '_handleMouseEnter()',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<ng-content></ng-content>\\n<div class=\\\"mat-menu-ripple\\\" matRipple\\n [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\">\\n</div>\\n\\n<svg\\n *ngIf=\\\"_triggersSubmenu\\\"\\n class=\\\"mat-menu-submenu-icon\\\"\\n viewBox=\\\"0 0 5 10\\\"\\n focusable=\\\"false\\\"><polygon points=\\\"0,0 5,5 0,10\\\"/></svg>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i1.FocusMonitor }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_MENU_PANEL]\n }, {\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }];\n }, propDecorators: { role: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token to be used to override the default options for `mat-menu`. */\nconst MAT_MENU_DEFAULT_OPTIONS = new InjectionToken('mat-menu-default-options', {\n providedIn: 'root',\n factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_MENU_DEFAULT_OPTIONS_FACTORY() {\n return {\n overlapTrigger: false,\n xPosition: 'after',\n yPosition: 'below',\n backdropClass: 'cdk-overlay-transparent-backdrop',\n };\n}\nlet menuPanelUid = 0;\n/** Base class with all of the `MatMenu` functionality. */\nclass _MatMenuBase {\n constructor(_elementRef, _ngZone, _defaultOptions) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n this._defaultOptions = _defaultOptions;\n this._xPosition = this._defaultOptions.xPosition;\n this._yPosition = this._defaultOptions.yPosition;\n /** Only the direct descendant menu items. */\n this._directDescendantItems = new QueryList();\n /** Subscription to tab events on the menu panel */\n this._tabSubscription = Subscription.EMPTY;\n /** Config object to be passed into the menu's ngClass */\n this._classList = {};\n /** Current state of the panel animation. */\n this._panelAnimationState = 'void';\n /** Emits whenever an animation on the menu completes. */\n this._animationDone = new Subject();\n /** Class or list of classes to be added to the overlay panel. */\n this.overlayPanelClass = this._defaultOptions.overlayPanelClass || '';\n /** Class to be added to the backdrop element. */\n this.backdropClass = this._defaultOptions.backdropClass;\n this._overlapTrigger = this._defaultOptions.overlapTrigger;\n this._hasBackdrop = this._defaultOptions.hasBackdrop;\n /** Event emitted when the menu is closed. */\n this.closed = new EventEmitter();\n /**\n * Event emitted when the menu is closed.\n * @deprecated Switch to `closed` instead\n * @breaking-change 8.0.0\n */\n this.close = this.closed;\n this.panelId = `mat-menu-panel-${menuPanelUid++}`;\n }\n /** Position of the menu in the X axis. */\n get xPosition() {\n return this._xPosition;\n }\n set xPosition(value) {\n if (value !== 'before' &&\n value !== 'after' &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuInvalidPositionX();\n }\n this._xPosition = value;\n this.setPositionClasses();\n }\n /** Position of the menu in the Y axis. */\n get yPosition() {\n return this._yPosition;\n }\n set yPosition(value) {\n if (value !== 'above' && value !== 'below' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuInvalidPositionY();\n }\n this._yPosition = value;\n this.setPositionClasses();\n }\n /** Whether the menu should overlap its trigger. */\n get overlapTrigger() {\n return this._overlapTrigger;\n }\n set overlapTrigger(value) {\n this._overlapTrigger = coerceBooleanProperty(value);\n }\n /** Whether the menu has a backdrop. */\n get hasBackdrop() {\n return this._hasBackdrop;\n }\n set hasBackdrop(value) {\n this._hasBackdrop = coerceBooleanProperty(value);\n }\n /**\n * This method takes classes set on the host mat-menu element and applies them on the\n * menu template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing menu from outside the component.\n * @param classes list of class names\n */\n set panelClass(classes) {\n const previousPanelClass = this._previousPanelClass;\n if (previousPanelClass && previousPanelClass.length) {\n previousPanelClass.split(' ').forEach((className) => {\n this._classList[className] = false;\n });\n }\n this._previousPanelClass = classes;\n if (classes && classes.length) {\n classes.split(' ').forEach((className) => {\n this._classList[className] = true;\n });\n this._elementRef.nativeElement.className = '';\n }\n }\n /**\n * This method takes classes set on the host mat-menu element and applies them on the\n * menu template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing menu from outside the component.\n * @deprecated Use `panelClass` instead.\n * @breaking-change 8.0.0\n */\n get classList() {\n return this.panelClass;\n }\n set classList(classes) {\n this.panelClass = classes;\n }\n ngOnInit() {\n this.setPositionClasses();\n }\n ngAfterContentInit() {\n this._updateDirectDescendants();\n this._keyManager = new FocusKeyManager(this._directDescendantItems)\n .withWrap()\n .withTypeAhead()\n .withHomeAndEnd();\n this._tabSubscription = this._keyManager.tabOut.subscribe(() => this.closed.emit('tab'));\n // If a user manually (programmatically) focuses a menu item, we need to reflect that focus\n // change back to the key manager. Note that we don't need to unsubscribe here because _focused\n // is internal and we know that it gets completed on destroy.\n this._directDescendantItems.changes\n .pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map((item) => item._focused))))\n .subscribe(focusedItem => this._keyManager.updateActiveItem(focusedItem));\n }\n ngOnDestroy() {\n this._directDescendantItems.destroy();\n this._tabSubscription.unsubscribe();\n this.closed.complete();\n }\n /** Stream that emits whenever the hovered menu item changes. */\n _hovered() {\n // Coerce the `changes` property because Angular types it as `Observable<any>`\n const itemChanges = this._directDescendantItems.changes;\n return itemChanges.pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map((item) => item._hovered))));\n }\n /*\n * Registers a menu item with the menu.\n * @docs-private\n * @deprecated No longer being used. To be removed.\n * @breaking-change 9.0.0\n */\n addItem(_item) { }\n /**\n * Removes an item from the menu.\n * @docs-private\n * @deprecated No longer being used. To be removed.\n * @breaking-change 9.0.0\n */\n removeItem(_item) { }\n /** Handle a keyboard event from the menu, delegating to the appropriate action. */\n _handleKeydown(event) {\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n switch (keyCode) {\n case ESCAPE:\n if (!hasModifierKey(event)) {\n event.preventDefault();\n this.closed.emit('keydown');\n }\n break;\n case LEFT_ARROW:\n if (this.parentMenu && this.direction === 'ltr') {\n this.closed.emit('keydown');\n }\n break;\n case RIGHT_ARROW:\n if (this.parentMenu && this.direction === 'rtl') {\n this.closed.emit('keydown');\n }\n break;\n default:\n if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {\n manager.setFocusOrigin('keyboard');\n }\n manager.onKeydown(event);\n }\n }\n /**\n * Focus the first item in the menu.\n * @param origin Action from which the focus originated. Used to set the correct styling.\n */\n focusFirstItem(origin = 'program') {\n // When the content is rendered lazily, it takes a bit before the items are inside the DOM.\n if (this.lazyContent) {\n this._ngZone.onStable.pipe(take(1)).subscribe(() => this._focusFirstItem(origin));\n }\n else {\n this._focusFirstItem(origin);\n }\n }\n /**\n * Actual implementation that focuses the first item. Needs to be separated\n * out so we don't repeat the same logic in the public `focusFirstItem` method.\n */\n _focusFirstItem(origin) {\n const manager = this._keyManager;\n manager.setFocusOrigin(origin).setFirstItemActive();\n // If there's no active item at this point, it means that all the items are disabled.\n // Move focus to the menu panel so keyboard events like Escape still work. Also this will\n // give _some_ feedback to screen readers.\n if (!manager.activeItem && this._directDescendantItems.length) {\n let element = this._directDescendantItems.first._getHostElement().parentElement;\n // Because the `mat-menu` is at the DOM insertion point, not inside the overlay, we don't\n // have a nice way of getting a hold of the menu panel. We can't use a `ViewChild` either\n // because the panel is inside an `ng-template`. We work around it by starting from one of\n // the items and walking up the DOM.\n while (element) {\n if (element.getAttribute('role') === 'menu') {\n element.focus();\n break;\n }\n else {\n element = element.parentElement;\n }\n }\n }\n }\n /**\n * Resets the active item in the menu. This is used when the menu is opened, allowing\n * the user to start from the first option when pressing the down arrow.\n */\n resetActiveItem() {\n this._keyManager.setActiveItem(-1);\n }\n /**\n * Sets the menu panel elevation.\n * @param depth Number of parent menus that come before the menu.\n */\n setElevation(depth) {\n // The elevation starts at the base and increases by one for each level.\n // Capped at 24 because that's the maximum elevation defined in the Material design spec.\n const elevation = Math.min(this._baseElevation + depth, 24);\n const newElevation = `${this._elevationPrefix}${elevation}`;\n const customElevation = Object.keys(this._classList).find(className => {\n return className.startsWith(this._elevationPrefix);\n });\n if (!customElevation || customElevation === this._previousElevation) {\n if (this._previousElevation) {\n this._classList[this._previousElevation] = false;\n }\n this._classList[newElevation] = true;\n this._previousElevation = newElevation;\n }\n }\n /**\n * Adds classes to the menu panel based on its position. Can be used by\n * consumers to add specific styling based on the position.\n * @param posX Position of the menu along the x axis.\n * @param posY Position of the menu along the y axis.\n * @docs-private\n */\n setPositionClasses(posX = this.xPosition, posY = this.yPosition) {\n const classes = this._classList;\n classes['mat-menu-before'] = posX === 'before';\n classes['mat-menu-after'] = posX === 'after';\n classes['mat-menu-above'] = posY === 'above';\n classes['mat-menu-below'] = posY === 'below';\n }\n /** Starts the enter animation. */\n _startAnimation() {\n // @breaking-change 8.0.0 Combine with _resetAnimation.\n this._panelAnimationState = 'enter';\n }\n /** Resets the panel animation to its initial state. */\n _resetAnimation() {\n // @breaking-change 8.0.0 Combine with _startAnimation.\n this._panelAnimationState = 'void';\n }\n /** Callback that is invoked when the panel animation completes. */\n _onAnimationDone(event) {\n this._animationDone.next(event);\n this._isAnimating = false;\n }\n _onAnimationStart(event) {\n this._isAnimating = true;\n // Scroll the content element to the top as soon as the animation starts. This is necessary,\n // because we move focus to the first item while it's still being animated, which can throw\n // the browser off when it determines the scroll position. Alternatively we can move focus\n // when the animation is done, however moving focus asynchronously will interrupt screen\n // readers which are in the process of reading out the menu already. We take the `element`\n // from the `event` since we can't use a `ViewChild` to access the pane.\n if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {\n event.element.scrollTop = 0;\n }\n }\n /**\n * Sets up a stream that will keep track of any newly-added menu items and will update the list\n * of direct descendants. We collect the descendants this way, because `_allItems` can include\n * items that are part of child menus, and using a custom way of registering items is unreliable\n * when it comes to maintaining the item order.\n */\n _updateDirectDescendants() {\n this._allItems.changes\n .pipe(startWith(this._allItems))\n .subscribe((items) => {\n this._directDescendantItems.reset(items.filter(item => item._parentMenu === this));\n this._directDescendantItems.notifyOnChanges();\n });\n }\n}\n_MatMenuBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuBase, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: MAT_MENU_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });\n_MatMenuBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatMenuBase, inputs: { backdropClass: \"backdropClass\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], xPosition: \"xPosition\", yPosition: \"yPosition\", overlapTrigger: \"overlapTrigger\", hasBackdrop: \"hasBackdrop\", panelClass: [\"class\", \"panelClass\"], classList: \"classList\" }, outputs: { closed: \"closed\", close: \"close\" }, queries: [{ propertyName: \"lazyContent\", first: true, predicate: MAT_MENU_CONTENT, descendants: true }, { propertyName: \"_allItems\", predicate: MatMenuItem, descendants: true }, { propertyName: \"items\", predicate: MatMenuItem }], viewQueries: [{ propertyName: \"templateRef\", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_MENU_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { _allItems: [{\n type: ContentChildren,\n args: [MatMenuItem, { descendants: true }]\n }], backdropClass: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], ariaDescribedby: [{\n type: Input,\n args: ['aria-describedby']\n }], xPosition: [{\n type: Input\n }], yPosition: [{\n type: Input\n }], templateRef: [{\n type: ViewChild,\n args: [TemplateRef]\n }], items: [{\n type: ContentChildren,\n args: [MatMenuItem, { descendants: false }]\n }], lazyContent: [{\n type: ContentChild,\n args: [MAT_MENU_CONTENT]\n }], overlapTrigger: [{\n type: Input\n }], hasBackdrop: [{\n type: Input\n }], panelClass: [{\n type: Input,\n args: ['class']\n }], classList: [{\n type: Input\n }], closed: [{\n type: Output\n }], close: [{\n type: Output\n }] } });\n/** @docs-public MatMenu */\nclass MatMenu extends _MatMenuBase {\n constructor(elementRef, ngZone, defaultOptions) {\n super(elementRef, ngZone, defaultOptions);\n this._elevationPrefix = 'mat-elevation-z';\n this._baseElevation = 4;\n }\n}\nMatMenu.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenu, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: MAT_MENU_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });\nMatMenu.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMenu, selector: \"mat-menu\", host: { properties: { \"attr.aria-label\": \"null\", \"attr.aria-labelledby\": \"null\", \"attr.aria-describedby\": \"null\" } }, providers: [{ provide: MAT_MENU_PANEL, useExisting: MatMenu }], exportAs: [\"matMenu\"], usesInheritance: true, ngImport: i0, template: \"<ng-template>\\n <div\\n class=\\\"mat-menu-panel\\\"\\n [id]=\\\"panelId\\\"\\n [ngClass]=\\\"_classList\\\"\\n (keydown)=\\\"_handleKeydown($event)\\\"\\n (click)=\\\"closed.emit('click')\\\"\\n [@transformMenu]=\\\"_panelAnimationState\\\"\\n (@transformMenu.start)=\\\"_onAnimationStart($event)\\\"\\n (@transformMenu.done)=\\\"_onAnimationDone($event)\\\"\\n tabindex=\\\"-1\\\"\\n role=\\\"menu\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby || null\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby || null\\\">\\n <div class=\\\"mat-menu-content\\\">\\n <ng-content></ng-content>\\n </div>\\n </div>\\n</ng-template>\\n\", styles: [\"mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\\n\"], directives: [{ type: i3.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], animations: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenu, decorators: [{\n type: Component,\n args: [{ selector: 'mat-menu', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'matMenu', host: {\n '[attr.aria-label]': 'null',\n '[attr.aria-labelledby]': 'null',\n '[attr.aria-describedby]': 'null',\n }, animations: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems], providers: [{ provide: MAT_MENU_PANEL, useExisting: MatMenu }], template: \"<ng-template>\\n <div\\n class=\\\"mat-menu-panel\\\"\\n [id]=\\\"panelId\\\"\\n [ngClass]=\\\"_classList\\\"\\n (keydown)=\\\"_handleKeydown($event)\\\"\\n (click)=\\\"closed.emit('click')\\\"\\n [@transformMenu]=\\\"_panelAnimationState\\\"\\n (@transformMenu.start)=\\\"_onAnimationStart($event)\\\"\\n (@transformMenu.done)=\\\"_onAnimationDone($event)\\\"\\n tabindex=\\\"-1\\\"\\n role=\\\"menu\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby || null\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby || null\\\">\\n <div class=\\\"mat-menu-content\\\">\\n <ng-content></ng-content>\\n </div>\\n </div>\\n</ng-template>\\n\", styles: [\"mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_MENU_DEFAULT_OPTIONS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that determines the scroll handling while the menu is open. */\nconst MAT_MENU_SCROLL_STRATEGY = new InjectionToken('mat-menu-scroll-strategy');\n/** @docs-private */\nfunction MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_MENU_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY,\n};\n/** Default top padding of the menu panel. */\nconst MENU_PANEL_TOP_PADDING = 8;\n/** Options for binding a passive event listener. */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });\n// TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors\nclass _MatMenuTriggerBase {\n constructor(_overlay, _element, _viewContainerRef, scrollStrategy, parentMenu, \n // `MatMenuTrigger` is commonly used in combination with a `MatMenuItem`.\n // tslint:disable-next-line: lightweight-tokens\n _menuItemInstance, _dir, \n // TODO(crisbeto): make the _focusMonitor required when doing breaking changes.\n // @breaking-change 8.0.0\n _focusMonitor) {\n this._overlay = _overlay;\n this._element = _element;\n this._viewContainerRef = _viewContainerRef;\n this._menuItemInstance = _menuItemInstance;\n this._dir = _dir;\n this._focusMonitor = _focusMonitor;\n this._overlayRef = null;\n this._menuOpen = false;\n this._closingActionsSubscription = Subscription.EMPTY;\n this._hoverSubscription = Subscription.EMPTY;\n this._menuCloseSubscription = Subscription.EMPTY;\n /**\n * Handles touch start events on the trigger.\n * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.\n */\n this._handleTouchStart = (event) => {\n if (!isFakeTouchstartFromScreenReader(event)) {\n this._openedBy = 'touch';\n }\n };\n // Tracking input type is necessary so it's possible to only auto-focus\n // the first item of the list when the menu is opened via the keyboard\n this._openedBy = undefined;\n /**\n * Whether focus should be restored when the menu is closed.\n * Note that disabling this option can have accessibility implications\n * and it's up to you to manage focus, if you decide to turn it off.\n */\n this.restoreFocus = true;\n /** Event emitted when the associated menu is opened. */\n this.menuOpened = new EventEmitter();\n /**\n * Event emitted when the associated menu is opened.\n * @deprecated Switch to `menuOpened` instead\n * @breaking-change 8.0.0\n */\n // tslint:disable-next-line:no-output-on-prefix\n this.onMenuOpen = this.menuOpened;\n /** Event emitted when the associated menu is closed. */\n this.menuClosed = new EventEmitter();\n /**\n * Event emitted when the associated menu is closed.\n * @deprecated Switch to `menuClosed` instead\n * @breaking-change 8.0.0\n */\n // tslint:disable-next-line:no-output-on-prefix\n this.onMenuClose = this.menuClosed;\n this._scrollStrategy = scrollStrategy;\n this._parentMaterialMenu = parentMenu instanceof _MatMenuBase ? parentMenu : undefined;\n _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);\n if (_menuItemInstance) {\n _menuItemInstance._triggersSubmenu = this.triggersSubmenu();\n }\n }\n /**\n * @deprecated\n * @breaking-change 8.0.0\n */\n get _deprecatedMatMenuTriggerFor() {\n return this.menu;\n }\n set _deprecatedMatMenuTriggerFor(v) {\n this.menu = v;\n }\n /** References the menu instance that the trigger is associated with. */\n get menu() {\n return this._menu;\n }\n set menu(menu) {\n if (menu === this._menu) {\n return;\n }\n this._menu = menu;\n this._menuCloseSubscription.unsubscribe();\n if (menu) {\n if (menu === this._parentMaterialMenu && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuRecursiveError();\n }\n this._menuCloseSubscription = menu.close.subscribe((reason) => {\n this._destroyMenu(reason);\n // If a click closed the menu, we should close the entire chain of nested menus.\n if ((reason === 'click' || reason === 'tab') && this._parentMaterialMenu) {\n this._parentMaterialMenu.closed.emit(reason);\n }\n });\n }\n }\n ngAfterContentInit() {\n this._checkMenu();\n this._handleHover();\n }\n ngOnDestroy() {\n if (this._overlayRef) {\n this._overlayRef.dispose();\n this._overlayRef = null;\n }\n this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);\n this._menuCloseSubscription.unsubscribe();\n this._closingActionsSubscription.unsubscribe();\n this._hoverSubscription.unsubscribe();\n }\n /** Whether the menu is open. */\n get menuOpen() {\n return this._menuOpen;\n }\n /** The text direction of the containing app. */\n get dir() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Whether the menu triggers a sub-menu or a top-level one. */\n triggersSubmenu() {\n return !!(this._menuItemInstance && this._parentMaterialMenu);\n }\n /** Toggles the menu between the open and closed states. */\n toggleMenu() {\n return this._menuOpen ? this.closeMenu() : this.openMenu();\n }\n /** Opens the menu. */\n openMenu() {\n if (this._menuOpen) {\n return;\n }\n this._checkMenu();\n const overlayRef = this._createOverlay();\n const overlayConfig = overlayRef.getConfig();\n this._setPosition(overlayConfig.positionStrategy);\n overlayConfig.hasBackdrop =\n this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop;\n overlayRef.attach(this._getPortal());\n if (this.menu.lazyContent) {\n this.menu.lazyContent.attach(this.menuData);\n }\n this._closingActionsSubscription = this._menuClosingActions().subscribe(() => this.closeMenu());\n this._initMenu();\n if (this.menu instanceof _MatMenuBase) {\n this.menu._startAnimation();\n }\n }\n /** Closes the menu. */\n closeMenu() {\n this.menu.close.emit();\n }\n /**\n * Focuses the menu trigger.\n * @param origin Source of the menu trigger's focus.\n */\n focus(origin, options) {\n if (this._focusMonitor && origin) {\n this._focusMonitor.focusVia(this._element, origin, options);\n }\n else {\n this._element.nativeElement.focus(options);\n }\n }\n /**\n * Updates the position of the menu to ensure that it fits all options within the viewport.\n */\n updatePosition() {\n var _a;\n (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();\n }\n /** Closes the menu and does the necessary cleanup. */\n _destroyMenu(reason) {\n if (!this._overlayRef || !this.menuOpen) {\n return;\n }\n const menu = this.menu;\n this._closingActionsSubscription.unsubscribe();\n this._overlayRef.detach();\n // Always restore focus if the user is navigating using the keyboard or the menu was opened\n // programmatically. We don't restore for non-root triggers, because it can prevent focus\n // from making it back to the root trigger when closing a long chain of menus by clicking\n // on the backdrop.\n if (this.restoreFocus && (reason === 'keydown' || !this._openedBy || !this.triggersSubmenu())) {\n this.focus(this._openedBy);\n }\n this._openedBy = undefined;\n if (menu instanceof _MatMenuBase) {\n menu._resetAnimation();\n if (menu.lazyContent) {\n // Wait for the exit animation to finish before detaching the content.\n menu._animationDone\n .pipe(filter(event => event.toState === 'void'), take(1), \n // Interrupt if the content got re-attached.\n takeUntil(menu.lazyContent._attached))\n .subscribe({\n next: () => menu.lazyContent.detach(),\n // No matter whether the content got re-attached, reset the menu.\n complete: () => this._setIsMenuOpen(false),\n });\n }\n else {\n this._setIsMenuOpen(false);\n }\n }\n else {\n this._setIsMenuOpen(false);\n if (menu.lazyContent) {\n menu.lazyContent.detach();\n }\n }\n }\n /**\n * This method sets the menu state to open and focuses the first item if\n * the menu was opened via the keyboard.\n */\n _initMenu() {\n this.menu.parentMenu = this.triggersSubmenu() ? this._parentMaterialMenu : undefined;\n this.menu.direction = this.dir;\n this._setMenuElevation();\n this.menu.focusFirstItem(this._openedBy || 'program');\n this._setIsMenuOpen(true);\n }\n /** Updates the menu elevation based on the amount of parent menus that it has. */\n _setMenuElevation() {\n if (this.menu.setElevation) {\n let depth = 0;\n let parentMenu = this.menu.parentMenu;\n while (parentMenu) {\n depth++;\n parentMenu = parentMenu.parentMenu;\n }\n this.menu.setElevation(depth);\n }\n }\n // set state rather than toggle to support triggers sharing a menu\n _setIsMenuOpen(isOpen) {\n this._menuOpen = isOpen;\n this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit();\n if (this.triggersSubmenu()) {\n this._menuItemInstance._setHighlighted(isOpen);\n }\n }\n /**\n * This method checks that a valid instance of MatMenu has been passed into\n * matMenuTriggerFor. If not, an exception is thrown.\n */\n _checkMenu() {\n if (!this.menu && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuMissingError();\n }\n }\n /**\n * This method creates the overlay from the provided menu's template and saves its\n * OverlayRef so that it can be attached to the DOM when openMenu is called.\n */\n _createOverlay() {\n if (!this._overlayRef) {\n const config = this._getOverlayConfig();\n this._subscribeToPositions(config.positionStrategy);\n this._overlayRef = this._overlay.create(config);\n // Consume the `keydownEvents` in order to prevent them from going to another overlay.\n // Ideally we'd also have our keyboard event logic in here, however doing so will\n // break anybody that may have implemented the `MatMenuPanel` themselves.\n this._overlayRef.keydownEvents().subscribe();\n }\n return this._overlayRef;\n }\n /**\n * This method builds the configuration object needed to create the overlay, the OverlayState.\n * @returns OverlayConfig\n */\n _getOverlayConfig() {\n return new OverlayConfig({\n positionStrategy: this._overlay\n .position()\n .flexibleConnectedTo(this._element)\n .withLockedPosition()\n .withGrowAfterOpen()\n .withTransformOriginOn('.mat-menu-panel, .mat-mdc-menu-panel'),\n backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',\n panelClass: this.menu.overlayPanelClass,\n scrollStrategy: this._scrollStrategy(),\n direction: this._dir,\n });\n }\n /**\n * Listens to changes in the position of the overlay and sets the correct classes\n * on the menu based on the new position. This ensures the animation origin is always\n * correct, even if a fallback position is used for the overlay.\n */\n _subscribeToPositions(position) {\n if (this.menu.setPositionClasses) {\n position.positionChanges.subscribe(change => {\n const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';\n const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';\n this.menu.setPositionClasses(posX, posY);\n });\n }\n }\n /**\n * Sets the appropriate positions on a position strategy\n * so the overlay connects with the trigger correctly.\n * @param positionStrategy Strategy whose position to update.\n */\n _setPosition(positionStrategy) {\n let [originX, originFallbackX] = this.menu.xPosition === 'before' ? ['end', 'start'] : ['start', 'end'];\n let [overlayY, overlayFallbackY] = this.menu.yPosition === 'above' ? ['bottom', 'top'] : ['top', 'bottom'];\n let [originY, originFallbackY] = [overlayY, overlayFallbackY];\n let [overlayX, overlayFallbackX] = [originX, originFallbackX];\n let offsetY = 0;\n if (this.triggersSubmenu()) {\n // When the menu is a sub-menu, it should always align itself\n // to the edges of the trigger, instead of overlapping it.\n overlayFallbackX = originX = this.menu.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n offsetY = overlayY === 'bottom' ? MENU_PANEL_TOP_PADDING : -MENU_PANEL_TOP_PADDING;\n }\n else if (!this.menu.overlapTrigger) {\n originY = overlayY === 'top' ? 'bottom' : 'top';\n originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';\n }\n positionStrategy.withPositions([\n { originX, originY, overlayX, overlayY, offsetY },\n { originX: originFallbackX, originY, overlayX: overlayFallbackX, overlayY, offsetY },\n {\n originX,\n originY: originFallbackY,\n overlayX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n },\n {\n originX: originFallbackX,\n originY: originFallbackY,\n overlayX: overlayFallbackX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY,\n },\n ]);\n }\n /** Returns a stream that emits whenever an action that should close the menu occurs. */\n _menuClosingActions() {\n const backdrop = this._overlayRef.backdropClick();\n const detachments = this._overlayRef.detachments();\n const parentClose = this._parentMaterialMenu ? this._parentMaterialMenu.closed : of();\n const hover = this._parentMaterialMenu\n ? this._parentMaterialMenu._hovered().pipe(filter(active => active !== this._menuItemInstance), filter(() => this._menuOpen))\n : of();\n return merge(backdrop, parentClose, hover, detachments);\n }\n /** Handles mouse presses on the trigger. */\n _handleMousedown(event) {\n if (!isFakeMousedownFromScreenReader(event)) {\n // Since right or middle button clicks won't trigger the `click` event,\n // we shouldn't consider the menu as opened by mouse in those cases.\n this._openedBy = event.button === 0 ? 'mouse' : undefined;\n // Since clicking on the trigger won't close the menu if it opens a sub-menu,\n // we should prevent focus from moving onto it via click to avoid the\n // highlight from lingering on the menu item.\n if (this.triggersSubmenu()) {\n event.preventDefault();\n }\n }\n }\n /** Handles key presses on the trigger. */\n _handleKeydown(event) {\n const keyCode = event.keyCode;\n // Pressing enter on the trigger will trigger the click handler later.\n if (keyCode === ENTER || keyCode === SPACE) {\n this._openedBy = 'keyboard';\n }\n if (this.triggersSubmenu() &&\n ((keyCode === RIGHT_ARROW && this.dir === 'ltr') ||\n (keyCode === LEFT_ARROW && this.dir === 'rtl'))) {\n this._openedBy = 'keyboard';\n this.openMenu();\n }\n }\n /** Handles click events on the trigger. */\n _handleClick(event) {\n if (this.triggersSubmenu()) {\n // Stop event propagation to avoid closing the parent menu.\n event.stopPropagation();\n this.openMenu();\n }\n else {\n this.toggleMenu();\n }\n }\n /** Handles the cases where the user hovers over the trigger. */\n _handleHover() {\n // Subscribe to changes in the hovered item in order to toggle the panel.\n if (!this.triggersSubmenu() || !this._parentMaterialMenu) {\n return;\n }\n this._hoverSubscription = this._parentMaterialMenu\n ._hovered()\n // Since we might have multiple competing triggers for the same menu (e.g. a sub-menu\n // with different data and triggers), we have to delay it by a tick to ensure that\n // it won't be closed immediately after it is opened.\n .pipe(filter(active => active === this._menuItemInstance && !active.disabled), delay(0, asapScheduler))\n .subscribe(() => {\n this._openedBy = 'mouse';\n // If the same menu is used between multiple triggers, it might still be animating\n // while the new trigger tries to re-open it. Wait for the animation to finish\n // before doing so. Also interrupt if the user moves to another item.\n if (this.menu instanceof _MatMenuBase && this.menu._isAnimating) {\n // We need the `delay(0)` here in order to avoid\n // 'changed after checked' errors in some cases. See #12194.\n this.menu._animationDone\n .pipe(take(1), delay(0, asapScheduler), takeUntil(this._parentMaterialMenu._hovered()))\n .subscribe(() => this.openMenu());\n }\n else {\n this.openMenu();\n }\n });\n }\n /** Gets the portal that should be attached to the overlay. */\n _getPortal() {\n // Note that we can avoid this check by keeping the portal on the menu panel.\n // While it would be cleaner, we'd have to introduce another required method on\n // `MatMenuPanel`, making it harder to consume.\n if (!this._portal || this._portal.templateRef !== this.menu.templateRef) {\n this._portal = new TemplatePortal(this.menu.templateRef, this._viewContainerRef);\n }\n return this._portal;\n }\n}\n_MatMenuTriggerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuTriggerBase, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: MAT_MENU_SCROLL_STRATEGY }, { token: MAT_MENU_PANEL, optional: true }, { token: MatMenuItem, optional: true, self: true }, { token: i3$1.Directionality, optional: true }, { token: i1.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });\n_MatMenuTriggerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatMenuTriggerBase, inputs: { _deprecatedMatMenuTriggerFor: [\"mat-menu-trigger-for\", \"_deprecatedMatMenuTriggerFor\"], menu: [\"matMenuTriggerFor\", \"menu\"], menuData: [\"matMenuTriggerData\", \"menuData\"], restoreFocus: [\"matMenuTriggerRestoreFocus\", \"restoreFocus\"] }, outputs: { menuOpened: \"menuOpened\", onMenuOpen: \"onMenuOpen\", menuClosed: \"menuClosed\", onMenuClose: \"onMenuClose\" }, host: { attributes: { \"aria-haspopup\": \"true\" }, listeners: { \"click\": \"_handleClick($event)\", \"mousedown\": \"_handleMousedown($event)\", \"keydown\": \"_handleKeydown($event)\" }, properties: { \"attr.aria-expanded\": \"menuOpen || null\", \"attr.aria-controls\": \"menuOpen ? menu.panelId : null\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatMenuTriggerBase, decorators: [{\n type: Directive,\n args: [{\n host: {\n 'aria-haspopup': 'true',\n '[attr.aria-expanded]': 'menuOpen || null',\n '[attr.aria-controls]': 'menuOpen ? menu.panelId : null',\n '(click)': '_handleClick($event)',\n '(mousedown)': '_handleMousedown($event)',\n '(keydown)': '_handleKeydown($event)',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_MENU_SCROLL_STRATEGY]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_MENU_PANEL]\n }, {\n type: Optional\n }] }, { type: MatMenuItem, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }, { type: i3$1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i1.FocusMonitor }];\n }, propDecorators: { _deprecatedMatMenuTriggerFor: [{\n type: Input,\n args: ['mat-menu-trigger-for']\n }], menu: [{\n type: Input,\n args: ['matMenuTriggerFor']\n }], menuData: [{\n type: Input,\n args: ['matMenuTriggerData']\n }], restoreFocus: [{\n type: Input,\n args: ['matMenuTriggerRestoreFocus']\n }], menuOpened: [{\n type: Output\n }], onMenuOpen: [{\n type: Output\n }], menuClosed: [{\n type: Output\n }], onMenuClose: [{\n type: Output\n }] } });\n/** Directive applied to an element that should trigger a `mat-menu`. */\nclass MatMenuTrigger extends _MatMenuTriggerBase {\n}\nMatMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuTrigger, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatMenuTrigger, selector: \"[mat-menu-trigger-for], [matMenuTriggerFor]\", host: { classAttribute: \"mat-menu-trigger\" }, exportAs: [\"matMenuTrigger\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuTrigger, decorators: [{\n type: Directive,\n args: [{\n selector: `[mat-menu-trigger-for], [matMenuTriggerFor]`,\n host: {\n 'class': 'mat-menu-trigger',\n },\n exportAs: 'matMenuTrigger',\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatMenuModule {\n}\nMatMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuModule, declarations: [MatMenu, MatMenuItem, MatMenuTrigger, MatMenuContent], imports: [CommonModule, MatCommonModule, MatRippleModule, OverlayModule], exports: [CdkScrollableModule,\n MatCommonModule,\n MatMenu,\n MatMenuItem,\n MatMenuTrigger,\n MatMenuContent] });\nMatMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuModule, providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[CommonModule, MatCommonModule, MatRippleModule, OverlayModule], CdkScrollableModule,\n MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatMenuModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule, MatRippleModule, OverlayModule],\n exports: [\n CdkScrollableModule,\n MatCommonModule,\n MatMenu,\n MatMenuItem,\n MatMenuTrigger,\n MatMenuContent,\n ],\n declarations: [MatMenu, MatMenuItem, MatMenuTrigger, MatMenuContent],\n providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, _MatMenuBase, _MatMenuContentBase, _MatMenuTriggerBase, fadeInItems, matMenuAnimations, transformMenu };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, Input, NgModule } from '@angular/core';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport * as i1 from '@angular/cdk/platform';\nimport { _getShadowRoot } from '@angular/cdk/platform';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base reference size of the spinner.\n * @docs-private\n */\nconst BASE_SIZE = 100;\n/**\n * Base reference stroke width of the spinner.\n * @docs-private\n */\nconst BASE_STROKE_WIDTH = 10;\n// Boilerplate for applying mixins to MatProgressSpinner.\n/** @docs-private */\nconst _MatProgressSpinnerBase = mixinColor(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}, 'primary');\n/** Injection token to be used to override the default options for `mat-progress-spinner`. */\nconst MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS = new InjectionToken('mat-progress-spinner-default-options', {\n providedIn: 'root',\n factory: MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY() {\n return { diameter: BASE_SIZE };\n}\n// .0001 percentage difference is necessary in order to avoid unwanted animation frames\n// for example because the animation duration is 4 seconds, .1% accounts to 4ms\n// which are enough to see the flicker described in\n// https://github.com/angular/components/issues/8984\nconst INDETERMINATE_ANIMATION_TEMPLATE = `\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n`;\n/**\n * `<mat-progress-spinner>` component.\n */\nclass MatProgressSpinner extends _MatProgressSpinnerBase {\n constructor(elementRef, \n /**\n * @deprecated `_platform` parameter no longer being used.\n * @breaking-change 14.0.0\n */\n _platform, _document, animationMode, defaults) {\n super(elementRef);\n this._document = _document;\n this._diameter = BASE_SIZE;\n this._value = 0;\n /** Mode of the progress circle */\n this.mode = 'determinate';\n const trackedDiameters = MatProgressSpinner._diameters;\n this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();\n // The base size is already inserted via the component's structural styles. We still\n // need to track it so we don't end up adding the same styles again.\n if (!trackedDiameters.has(_document.head)) {\n trackedDiameters.set(_document.head, new Set([BASE_SIZE]));\n }\n this._noopAnimations =\n animationMode === 'NoopAnimations' && !!defaults && !defaults._forceAnimations;\n if (defaults) {\n if (defaults.diameter) {\n this.diameter = defaults.diameter;\n }\n if (defaults.strokeWidth) {\n this.strokeWidth = defaults.strokeWidth;\n }\n }\n }\n /** The diameter of the progress spinner (will set width and height of svg). */\n get diameter() {\n return this._diameter;\n }\n set diameter(size) {\n this._diameter = coerceNumberProperty(size);\n this._spinnerAnimationLabel = this._getSpinnerAnimationLabel();\n // If this is set before `ngOnInit`, the style root may not have been resolved yet.\n if (this._styleRoot) {\n this._attachStyleNode();\n }\n }\n /** Stroke width of the progress spinner. */\n get strokeWidth() {\n return this._strokeWidth || this.diameter / 10;\n }\n set strokeWidth(value) {\n this._strokeWidth = coerceNumberProperty(value);\n }\n /** Value of the progress circle. */\n get value() {\n return this.mode === 'determinate' ? this._value : 0;\n }\n set value(newValue) {\n this._value = Math.max(0, Math.min(100, coerceNumberProperty(newValue)));\n }\n ngOnInit() {\n const element = this._elementRef.nativeElement;\n // Note that we need to look up the root node in ngOnInit, rather than the constructor, because\n // Angular seems to create the element outside the shadow root and then moves it inside, if the\n // node is inside an `ngIf` and a ShadowDom-encapsulated component.\n this._styleRoot = _getShadowRoot(element) || this._document.head;\n this._attachStyleNode();\n element.classList.add('mat-progress-spinner-indeterminate-animation');\n }\n /** The radius of the spinner, adjusted for stroke width. */\n _getCircleRadius() {\n return (this.diameter - BASE_STROKE_WIDTH) / 2;\n }\n /** The view box of the spinner's svg element. */\n _getViewBox() {\n const viewBox = this._getCircleRadius() * 2 + this.strokeWidth;\n return `0 0 ${viewBox} ${viewBox}`;\n }\n /** The stroke circumference of the svg circle. */\n _getStrokeCircumference() {\n return 2 * Math.PI * this._getCircleRadius();\n }\n /** The dash offset of the svg circle. */\n _getStrokeDashOffset() {\n if (this.mode === 'determinate') {\n return (this._getStrokeCircumference() * (100 - this._value)) / 100;\n }\n return null;\n }\n /** Stroke width of the circle in percent. */\n _getCircleStrokeWidth() {\n return (this.strokeWidth / this.diameter) * 100;\n }\n /** Dynamically generates a style tag containing the correct animation for this diameter. */\n _attachStyleNode() {\n const styleRoot = this._styleRoot;\n const currentDiameter = this._diameter;\n const diameters = MatProgressSpinner._diameters;\n let diametersForElement = diameters.get(styleRoot);\n if (!diametersForElement || !diametersForElement.has(currentDiameter)) {\n const styleTag = this._document.createElement('style');\n styleTag.setAttribute('mat-spinner-animation', this._spinnerAnimationLabel);\n styleTag.textContent = this._getAnimationText();\n styleRoot.appendChild(styleTag);\n if (!diametersForElement) {\n diametersForElement = new Set();\n diameters.set(styleRoot, diametersForElement);\n }\n diametersForElement.add(currentDiameter);\n }\n }\n /** Generates animation styles adjusted for the spinner's diameter. */\n _getAnimationText() {\n const strokeCircumference = this._getStrokeCircumference();\n return (INDETERMINATE_ANIMATION_TEMPLATE\n // Animation should begin at 5% and end at 80%\n .replace(/START_VALUE/g, `${0.95 * strokeCircumference}`)\n .replace(/END_VALUE/g, `${0.2 * strokeCircumference}`)\n .replace(/DIAMETER/g, `${this._spinnerAnimationLabel}`));\n }\n /** Returns the circle diameter formatted for use with the animation-name CSS property. */\n _getSpinnerAnimationLabel() {\n // The string of a float point number will include a period ‘.’ character,\n // which is not valid for a CSS animation-name.\n return this.diameter.toString().replace('.', '_');\n }\n}\n/**\n * Tracks diameters of existing instances to de-dupe generated styles (default d = 100).\n * We need to keep track of which elements the diameters were attached to, because for\n * elements in the Shadow DOM the style tags are attached to the shadow root, rather\n * than the document head.\n */\nMatProgressSpinner._diameters = new WeakMap();\nMatProgressSpinner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinner, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: DOCUMENT, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });\nMatProgressSpinner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatProgressSpinner, selector: \"mat-progress-spinner\", inputs: { color: \"color\", diameter: \"diameter\", strokeWidth: \"strokeWidth\", mode: \"mode\", value: \"value\" }, host: { attributes: { \"role\": \"progressbar\", \"tabindex\": \"-1\" }, properties: { \"class._mat-animation-noopable\": \"_noopAnimations\", \"style.width.px\": \"diameter\", \"style.height.px\": \"diameter\", \"attr.aria-valuemin\": \"mode === \\\"determinate\\\" ? 0 : null\", \"attr.aria-valuemax\": \"mode === \\\"determinate\\\" ? 100 : null\", \"attr.aria-valuenow\": \"mode === \\\"determinate\\\" ? value : null\", \"attr.mode\": \"mode\" }, classAttribute: \"mat-progress-spinner\" }, exportAs: [\"matProgressSpinner\"], usesInheritance: true, ngImport: i0, template: \"<!--\\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\\n center. The center of the circle will remain at the center of the mat-progress-spinner\\n element containing the SVG.\\n-->\\n<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<svg\\n [style.width.px]=\\\"diameter\\\"\\n [style.height.px]=\\\"diameter\\\"\\n [attr.viewBox]=\\\"_getViewBox()\\\"\\n preserveAspectRatio=\\\"xMidYMid meet\\\"\\n focusable=\\\"false\\\"\\n [ngSwitch]=\\\"mode === 'indeterminate'\\\"\\n aria-hidden=\\\"true\\\">\\n\\n <!--\\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\\n Using a different element avoids the issue. An alternative to this is adding `display: none`\\n for a split second and then removing it when switching between modes, but it's hard to know\\n for how long to hide the element and it can cause the UI to blink.\\n -->\\n <circle\\n *ngSwitchCase=\\\"true\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.animation-name]=\\\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n\\n <circle\\n *ngSwitchCase=\\\"false\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n</svg>\\n\", styles: [\".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\\n\"], directives: [{ type: i2.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i2.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinner, decorators: [{\n type: Component,\n args: [{ selector: 'mat-progress-spinner', exportAs: 'matProgressSpinner', host: {\n 'role': 'progressbar',\n 'class': 'mat-progress-spinner',\n // set tab index to -1 so screen readers will read the aria-label\n // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox\n 'tabindex': '-1',\n '[class._mat-animation-noopable]': `_noopAnimations`,\n '[style.width.px]': 'diameter',\n '[style.height.px]': 'diameter',\n '[attr.aria-valuemin]': 'mode === \"determinate\" ? 0 : null',\n '[attr.aria-valuemax]': 'mode === \"determinate\" ? 100 : null',\n '[attr.aria-valuenow]': 'mode === \"determinate\" ? value : null',\n '[attr.mode]': 'mode',\n }, inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<!--\\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\\n center. The center of the circle will remain at the center of the mat-progress-spinner\\n element containing the SVG.\\n-->\\n<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<svg\\n [style.width.px]=\\\"diameter\\\"\\n [style.height.px]=\\\"diameter\\\"\\n [attr.viewBox]=\\\"_getViewBox()\\\"\\n preserveAspectRatio=\\\"xMidYMid meet\\\"\\n focusable=\\\"false\\\"\\n [ngSwitch]=\\\"mode === 'indeterminate'\\\"\\n aria-hidden=\\\"true\\\">\\n\\n <!--\\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\\n Using a different element avoids the issue. An alternative to this is adding `display: none`\\n for a split second and then removing it when switching between modes, but it's hard to know\\n for how long to hide the element and it can cause the UI to blink.\\n -->\\n <circle\\n *ngSwitchCase=\\\"true\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.animation-name]=\\\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n\\n <circle\\n *ngSwitchCase=\\\"false\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n</svg>\\n\", styles: [\".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { diameter: [{\n type: Input\n }], strokeWidth: [{\n type: Input\n }], mode: [{\n type: Input\n }], value: [{\n type: Input\n }] } });\n/**\n * `<mat-spinner>` component.\n *\n * This is a component definition to be used as a convenience reference to create an\n * indeterminate `<mat-progress-spinner>` instance.\n */\nclass MatSpinner extends MatProgressSpinner {\n constructor(elementRef, platform, document, animationMode, defaults) {\n super(elementRef, platform, document, animationMode, defaults);\n this.mode = 'indeterminate';\n }\n}\nMatSpinner.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSpinner, deps: [{ token: i0.ElementRef }, { token: i1.Platform }, { token: DOCUMENT, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });\nMatSpinner.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSpinner, selector: \"mat-spinner\", inputs: { color: \"color\" }, host: { attributes: { \"role\": \"progressbar\", \"mode\": \"indeterminate\" }, properties: { \"class._mat-animation-noopable\": \"_noopAnimations\", \"style.width.px\": \"diameter\", \"style.height.px\": \"diameter\" }, classAttribute: \"mat-spinner mat-progress-spinner\" }, usesInheritance: true, ngImport: i0, template: \"<!--\\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\\n center. The center of the circle will remain at the center of the mat-progress-spinner\\n element containing the SVG.\\n-->\\n<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<svg\\n [style.width.px]=\\\"diameter\\\"\\n [style.height.px]=\\\"diameter\\\"\\n [attr.viewBox]=\\\"_getViewBox()\\\"\\n preserveAspectRatio=\\\"xMidYMid meet\\\"\\n focusable=\\\"false\\\"\\n [ngSwitch]=\\\"mode === 'indeterminate'\\\"\\n aria-hidden=\\\"true\\\">\\n\\n <!--\\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\\n Using a different element avoids the issue. An alternative to this is adding `display: none`\\n for a split second and then removing it when switching between modes, but it's hard to know\\n for how long to hide the element and it can cause the UI to blink.\\n -->\\n <circle\\n *ngSwitchCase=\\\"true\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.animation-name]=\\\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n\\n <circle\\n *ngSwitchCase=\\\"false\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n</svg>\\n\", styles: [\".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\\n\"], directives: [{ type: i2.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i2.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSpinner, decorators: [{\n type: Component,\n args: [{ selector: 'mat-spinner', host: {\n 'role': 'progressbar',\n 'mode': 'indeterminate',\n 'class': 'mat-spinner mat-progress-spinner',\n '[class._mat-animation-noopable]': `_noopAnimations`,\n '[style.width.px]': 'diameter',\n '[style.height.px]': 'diameter',\n }, inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<!--\\n preserveAspectRatio of xMidYMid meet as the center of the viewport is the circle's\\n center. The center of the circle will remain at the center of the mat-progress-spinner\\n element containing the SVG.\\n-->\\n<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<svg\\n [style.width.px]=\\\"diameter\\\"\\n [style.height.px]=\\\"diameter\\\"\\n [attr.viewBox]=\\\"_getViewBox()\\\"\\n preserveAspectRatio=\\\"xMidYMid meet\\\"\\n focusable=\\\"false\\\"\\n [ngSwitch]=\\\"mode === 'indeterminate'\\\"\\n aria-hidden=\\\"true\\\">\\n\\n <!--\\n Technically we can reuse the same `circle` element, however Safari has an issue that breaks\\n the SVG rendering in determinate mode, after switching between indeterminate and determinate.\\n Using a different element avoids the issue. An alternative to this is adding `display: none`\\n for a split second and then removing it when switching between modes, but it's hard to know\\n for how long to hide the element and it can cause the UI to blink.\\n -->\\n <circle\\n *ngSwitchCase=\\\"true\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.animation-name]=\\\"'mat-progress-spinner-stroke-rotate-' + _spinnerAnimationLabel\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n\\n <circle\\n *ngSwitchCase=\\\"false\\\"\\n cx=\\\"50%\\\"\\n cy=\\\"50%\\\"\\n [attr.r]=\\\"_getCircleRadius()\\\"\\n [style.stroke-dashoffset.px]=\\\"_getStrokeDashOffset()\\\"\\n [style.stroke-dasharray.px]=\\\"_getStrokeCircumference()\\\"\\n [style.stroke-width.%]=\\\"_getCircleStrokeWidth()\\\"></circle>\\n</svg>\\n\", styles: [\".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatProgressSpinnerModule {\n}\nMatProgressSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatProgressSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinnerModule, declarations: [MatProgressSpinner, MatSpinner], imports: [MatCommonModule, CommonModule], exports: [MatProgressSpinner, MatSpinner, MatCommonModule] });\nMatProgressSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinnerModule, imports: [[MatCommonModule, CommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressSpinnerModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule, CommonModule],\n exports: [MatProgressSpinner, MatSpinner, MatCommonModule],\n declarations: [MatProgressSpinner, MatSpinner],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, MatProgressSpinner, MatProgressSpinnerModule, MatSpinner };\n","import * as i7 from '@angular/cdk/overlay';\nimport { Overlay, CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';\nimport * as i8 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, EventEmitter, Optional, Inject, Self, Attribute, ViewChild, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, ContentChild, NgModule } from '@angular/core';\nimport * as i2 from '@angular/material/core';\nimport { mixinDisableRipple, mixinTabIndex, mixinDisabled, mixinErrorState, _countGroupLabelsBeforeOption, _getOptionScrollPosition, MAT_OPTION_PARENT_COMPONENT, MatOption, MAT_OPTGROUP, MatOptionModule, MatCommonModule } from '@angular/material/core';\nimport * as i6 from '@angular/material/form-field';\nimport { MAT_FORM_FIELD, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport * as i1 from '@angular/cdk/scrolling';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i5 from '@angular/cdk/a11y';\nimport { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE, hasModifierKey, A } from '@angular/cdk/keycodes';\nimport * as i4 from '@angular/forms';\nimport { Validators } from '@angular/forms';\nimport { Subject, defer, merge } from 'rxjs';\nimport { startWith, switchMap, take, filter, map, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport { trigger, transition, query, animateChild, state, style, animate } from '@angular/animations';\nimport * as i3 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The following are all the animations for the mat-select component, with each\n * const containing the metadata for one animation.\n *\n * The values below match the implementation of the AngularJS Material mat-select animation.\n * @docs-private\n */\nconst matSelectAnimations = {\n /**\n * This animation ensures the select's overlay panel animation (transformPanel) is called when\n * closing the select.\n * This is needed due to https://github.com/angular/angular/issues/23302\n */\n transformPanelWrap: trigger('transformPanelWrap', [\n transition('* => void', query('@transformPanel', [animateChild()], { optional: true })),\n ]),\n /**\n * This animation transforms the select's overlay panel on and off the page.\n *\n * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it\n * up to 100% on the Y axis, fades in its border, and translates slightly up and to the\n * side to ensure the option text correctly overlaps the trigger text.\n *\n * When the panel is removed from the DOM, it simply fades out linearly.\n */\n transformPanel: trigger('transformPanel', [\n state('void', style({\n transform: 'scaleY(0.8)',\n minWidth: '100%',\n opacity: 0,\n })),\n state('showing', style({\n opacity: 1,\n minWidth: 'calc(100% + 32px)',\n transform: 'scaleY(1)',\n })),\n state('showing-multiple', style({\n opacity: 1,\n minWidth: 'calc(100% + 64px)',\n transform: 'scaleY(1)',\n })),\n transition('void => *', animate('120ms cubic-bezier(0, 0, 0.2, 1)')),\n transition('* => void', animate('100ms 25ms linear', style({ opacity: 0 }))),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an exception to be thrown when attempting to change a select's `multiple` option\n * after initialization.\n * @docs-private\n */\nfunction getMatSelectDynamicMultipleError() {\n return Error('Cannot change `multiple` mode of select after initialization.');\n}\n/**\n * Returns an exception to be thrown when attempting to assign a non-array value to a select\n * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for\n * resetting the value.\n * @docs-private\n */\nfunction getMatSelectNonArrayValueError() {\n return Error('Value must be an array in multiple-selection mode.');\n}\n/**\n * Returns an exception to be thrown when assigning a non-function value to the comparator\n * used to determine if a value corresponds to an option. Note that whether the function\n * actually takes two values and returns a boolean is not checked.\n */\nfunction getMatSelectNonFunctionValueError() {\n return Error('`compareWith` must be a function.');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet nextUniqueId = 0;\n/**\n * The following style constants are necessary to save here in order\n * to properly calculate the alignment of the selected option over\n * the trigger element.\n */\n/** The max height of the select's overlay panel. */\nconst SELECT_PANEL_MAX_HEIGHT = 256;\n/** The panel's padding on the x-axis. */\nconst SELECT_PANEL_PADDING_X = 16;\n/** The panel's x axis padding if it is indented (e.g. there is an option group). */\nconst SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;\n/** The height of the select items in `em` units. */\nconst SELECT_ITEM_HEIGHT_EM = 3;\n// TODO(josephperrott): Revert to a constant after 2018 spec updates are fully merged.\n/**\n * Distance between the panel edge and the option text in\n * multi-selection mode.\n *\n * Calculated as:\n * (SELECT_PANEL_PADDING_X * 1.5) + 16 = 40\n * The padding is multiplied by 1.5 because the checkbox's margin is half the padding.\n * The checkbox width is 16px.\n */\nconst SELECT_MULTIPLE_PANEL_PADDING_X = SELECT_PANEL_PADDING_X * 1.5 + 16;\n/**\n * The select panel will only \"fit\" inside the viewport if it is positioned at\n * this value or more away from the viewport boundary.\n */\nconst SELECT_PANEL_VIEWPORT_PADDING = 8;\n/** Injection token that determines the scroll handling while a select is open. */\nconst MAT_SELECT_SCROLL_STRATEGY = new InjectionToken('mat-select-scroll-strategy');\n/** @docs-private */\nfunction MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** Injection token that can be used to provide the default options the select module. */\nconst MAT_SELECT_CONFIG = new InjectionToken('MAT_SELECT_CONFIG');\n/** @docs-private */\nconst MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {\n provide: MAT_SELECT_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY,\n};\n/** Change event object that is emitted when the select value has changed. */\nclass MatSelectChange {\n constructor(\n /** Reference to the select that emitted the change event. */\n source, \n /** Current value of the select that emitted the event. */\n value) {\n this.source = source;\n this.value = value;\n }\n}\n// Boilerplate for applying mixins to MatSelect.\n/** @docs-private */\nconst _MatSelectMixinBase = mixinDisableRipple(mixinTabIndex(mixinDisabled(mixinErrorState(class {\n constructor(_elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) {\n this._elementRef = _elementRef;\n this._defaultErrorStateMatcher = _defaultErrorStateMatcher;\n this._parentForm = _parentForm;\n this._parentFormGroup = _parentFormGroup;\n this.ngControl = ngControl;\n }\n}))));\n/**\n * Injection token that can be used to reference instances of `MatSelectTrigger`. It serves as\n * alternative token to the actual `MatSelectTrigger` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_SELECT_TRIGGER = new InjectionToken('MatSelectTrigger');\n/**\n * Allows the user to customize the trigger that is displayed when the select has a value.\n */\nclass MatSelectTrigger {\n}\nMatSelectTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatSelectTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSelectTrigger, selector: \"mat-select-trigger\", providers: [{ provide: MAT_SELECT_TRIGGER, useExisting: MatSelectTrigger }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectTrigger, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-select-trigger',\n providers: [{ provide: MAT_SELECT_TRIGGER, useExisting: MatSelectTrigger }],\n }]\n }] });\n/** Base class with all of the `MatSelect` functionality. */\nclass _MatSelectBase extends _MatSelectMixinBase {\n constructor(_viewportRuler, _changeDetectorRef, _ngZone, _defaultErrorStateMatcher, elementRef, _dir, _parentForm, _parentFormGroup, _parentFormField, ngControl, tabIndex, scrollStrategyFactory, _liveAnnouncer, _defaultOptions) {\n var _a, _b, _c;\n super(elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);\n this._viewportRuler = _viewportRuler;\n this._changeDetectorRef = _changeDetectorRef;\n this._ngZone = _ngZone;\n this._dir = _dir;\n this._parentFormField = _parentFormField;\n this._liveAnnouncer = _liveAnnouncer;\n this._defaultOptions = _defaultOptions;\n /** Whether or not the overlay panel is open. */\n this._panelOpen = false;\n /** Comparison function to specify which option is displayed. Defaults to object equality. */\n this._compareWith = (o1, o2) => o1 === o2;\n /** Unique id for this input. */\n this._uid = `mat-select-${nextUniqueId++}`;\n /** Current `ariar-labelledby` value for the select trigger. */\n this._triggerAriaLabelledBy = null;\n /** Emits whenever the component is destroyed. */\n this._destroy = new Subject();\n /** `View -> model callback called when value changes` */\n this._onChange = () => { };\n /** `View -> model callback called when select has been touched` */\n this._onTouched = () => { };\n /** ID for the DOM node containing the select's value. */\n this._valueId = `mat-select-value-${nextUniqueId++}`;\n /** Emits when the panel element is finished transforming in. */\n this._panelDoneAnimatingStream = new Subject();\n this._overlayPanelClass = ((_a = this._defaultOptions) === null || _a === void 0 ? void 0 : _a.overlayPanelClass) || '';\n this._focused = false;\n /** A name for this control that can be used by `mat-form-field`. */\n this.controlType = 'mat-select';\n this._multiple = false;\n this._disableOptionCentering = (_c = (_b = this._defaultOptions) === null || _b === void 0 ? void 0 : _b.disableOptionCentering) !== null && _c !== void 0 ? _c : false;\n /** Aria label of the select. */\n this.ariaLabel = '';\n /** Combined stream of all of the child options' change events. */\n this.optionSelectionChanges = defer(() => {\n const options = this.options;\n if (options) {\n return options.changes.pipe(startWith(options), switchMap(() => merge(...options.map(option => option.onSelectionChange))));\n }\n return this._ngZone.onStable.pipe(take(1), switchMap(() => this.optionSelectionChanges));\n });\n /** Event emitted when the select panel has been toggled. */\n this.openedChange = new EventEmitter();\n /** Event emitted when the select has been opened. */\n this._openedStream = this.openedChange.pipe(filter(o => o), map(() => { }));\n /** Event emitted when the select has been closed. */\n this._closedStream = this.openedChange.pipe(filter(o => !o), map(() => { }));\n /** Event emitted when the selected value has been changed by the user. */\n this.selectionChange = new EventEmitter();\n /**\n * Event that emits whenever the raw value of the select changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n this.valueChange = new EventEmitter();\n if (this.ngControl) {\n // Note: we provide the value accessor through here, instead of\n // the `providers` to avoid running into a circular import.\n this.ngControl.valueAccessor = this;\n }\n // Note that we only want to set this when the defaults pass it in, otherwise it should\n // stay as `undefined` so that it falls back to the default in the key manager.\n if ((_defaultOptions === null || _defaultOptions === void 0 ? void 0 : _defaultOptions.typeaheadDebounceInterval) != null) {\n this._typeaheadDebounceInterval = _defaultOptions.typeaheadDebounceInterval;\n }\n this._scrollStrategyFactory = scrollStrategyFactory;\n this._scrollStrategy = this._scrollStrategyFactory();\n this.tabIndex = parseInt(tabIndex) || 0;\n // Force setter to be called in case id was not specified.\n this.id = this.id;\n }\n /** Whether the select is focused. */\n get focused() {\n return this._focused || this._panelOpen;\n }\n /** Placeholder to be shown if no value has been selected. */\n get placeholder() {\n return this._placeholder;\n }\n set placeholder(value) {\n this._placeholder = value;\n this.stateChanges.next();\n }\n /** Whether the component is required. */\n get required() {\n var _a, _b, _c, _d;\n return (_d = (_a = this._required) !== null && _a !== void 0 ? _a : (_c = (_b = this.ngControl) === null || _b === void 0 ? void 0 : _b.control) === null || _c === void 0 ? void 0 : _c.hasValidator(Validators.required)) !== null && _d !== void 0 ? _d : false;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n this.stateChanges.next();\n }\n /** Whether the user should be allowed to select multiple options. */\n get multiple() {\n return this._multiple;\n }\n set multiple(value) {\n if (this._selectionModel && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatSelectDynamicMultipleError();\n }\n this._multiple = coerceBooleanProperty(value);\n }\n /** Whether to center the active option over the trigger. */\n get disableOptionCentering() {\n return this._disableOptionCentering;\n }\n set disableOptionCentering(value) {\n this._disableOptionCentering = coerceBooleanProperty(value);\n }\n /**\n * Function to compare the option values with the selected values. The first argument\n * is a value from an option. The second is a value from the selection. A boolean\n * should be returned.\n */\n get compareWith() {\n return this._compareWith;\n }\n set compareWith(fn) {\n if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatSelectNonFunctionValueError();\n }\n this._compareWith = fn;\n if (this._selectionModel) {\n // A different comparator means the selection could change.\n this._initializeSelection();\n }\n }\n /** Value of the select control. */\n get value() {\n return this._value;\n }\n set value(newValue) {\n // Always re-assign an array, because it might have been mutated.\n if (newValue !== this._value || (this._multiple && Array.isArray(newValue))) {\n if (this.options) {\n this._setSelectionByValue(newValue);\n }\n this._value = newValue;\n }\n }\n /** Time to wait in milliseconds after the last keystroke before moving focus to an item. */\n get typeaheadDebounceInterval() {\n return this._typeaheadDebounceInterval;\n }\n set typeaheadDebounceInterval(value) {\n this._typeaheadDebounceInterval = coerceNumberProperty(value);\n }\n /** Unique id of the element. */\n get id() {\n return this._id;\n }\n set id(value) {\n this._id = value || this._uid;\n this.stateChanges.next();\n }\n ngOnInit() {\n this._selectionModel = new SelectionModel(this.multiple);\n this.stateChanges.next();\n // We need `distinctUntilChanged` here, because some browsers will\n // fire the animation end event twice for the same animation. See:\n // https://github.com/angular/angular/issues/24084\n this._panelDoneAnimatingStream\n .pipe(distinctUntilChanged(), takeUntil(this._destroy))\n .subscribe(() => this._panelDoneAnimating(this.panelOpen));\n }\n ngAfterContentInit() {\n this._initKeyManager();\n this._selectionModel.changed.pipe(takeUntil(this._destroy)).subscribe(event => {\n event.added.forEach(option => option.select());\n event.removed.forEach(option => option.deselect());\n });\n this.options.changes.pipe(startWith(null), takeUntil(this._destroy)).subscribe(() => {\n this._resetOptions();\n this._initializeSelection();\n });\n }\n ngDoCheck() {\n const newAriaLabelledby = this._getTriggerAriaLabelledby();\n // We have to manage setting the `aria-labelledby` ourselves, because part of its value\n // is computed as a result of a content query which can cause this binding to trigger a\n // \"changed after checked\" error.\n if (newAriaLabelledby !== this._triggerAriaLabelledBy) {\n const element = this._elementRef.nativeElement;\n this._triggerAriaLabelledBy = newAriaLabelledby;\n if (newAriaLabelledby) {\n element.setAttribute('aria-labelledby', newAriaLabelledby);\n }\n else {\n element.removeAttribute('aria-labelledby');\n }\n }\n if (this.ngControl) {\n this.updateErrorState();\n }\n }\n ngOnChanges(changes) {\n // Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let\n // the parent form field know to run change detection when the disabled state changes.\n if (changes['disabled']) {\n this.stateChanges.next();\n }\n if (changes['typeaheadDebounceInterval'] && this._keyManager) {\n this._keyManager.withTypeAhead(this._typeaheadDebounceInterval);\n }\n }\n ngOnDestroy() {\n this._destroy.next();\n this._destroy.complete();\n this.stateChanges.complete();\n }\n /** Toggles the overlay panel open or closed. */\n toggle() {\n this.panelOpen ? this.close() : this.open();\n }\n /** Opens the overlay panel. */\n open() {\n if (this._canOpen()) {\n this._panelOpen = true;\n this._keyManager.withHorizontalOrientation(null);\n this._highlightCorrectOption();\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Closes the overlay panel and focuses the host element. */\n close() {\n if (this._panelOpen) {\n this._panelOpen = false;\n this._keyManager.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr');\n this._changeDetectorRef.markForCheck();\n this._onTouched();\n }\n }\n /**\n * Sets the select's value. Part of the ControlValueAccessor interface\n * required to integrate with Angular's core forms API.\n *\n * @param value New value to be written to the model.\n */\n writeValue(value) {\n this.value = value;\n }\n /**\n * Saves a callback function to be invoked when the select's value\n * changes from user input. Part of the ControlValueAccessor interface\n * required to integrate with Angular's core forms API.\n *\n * @param fn Callback to be triggered when the value changes.\n */\n registerOnChange(fn) {\n this._onChange = fn;\n }\n /**\n * Saves a callback function to be invoked when the select is blurred\n * by the user. Part of the ControlValueAccessor interface required\n * to integrate with Angular's core forms API.\n *\n * @param fn Callback to be triggered when the component has been touched.\n */\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n /**\n * Disables the select. Part of the ControlValueAccessor interface required\n * to integrate with Angular's core forms API.\n *\n * @param isDisabled Sets whether the component is disabled.\n */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n }\n /** Whether or not the overlay panel is open. */\n get panelOpen() {\n return this._panelOpen;\n }\n /** The currently selected option. */\n get selected() {\n var _a, _b;\n return this.multiple ? ((_a = this._selectionModel) === null || _a === void 0 ? void 0 : _a.selected) || [] : (_b = this._selectionModel) === null || _b === void 0 ? void 0 : _b.selected[0];\n }\n /** The value displayed in the trigger. */\n get triggerValue() {\n if (this.empty) {\n return '';\n }\n if (this._multiple) {\n const selectedOptions = this._selectionModel.selected.map(option => option.viewValue);\n if (this._isRtl()) {\n selectedOptions.reverse();\n }\n // TODO(crisbeto): delimiter should be configurable for proper localization.\n return selectedOptions.join(', ');\n }\n return this._selectionModel.selected[0].viewValue;\n }\n /** Whether the element is in RTL mode. */\n _isRtl() {\n return this._dir ? this._dir.value === 'rtl' : false;\n }\n /** Handles all keydown events on the select. */\n _handleKeydown(event) {\n if (!this.disabled) {\n this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);\n }\n }\n /** Handles keyboard events while the select is closed. */\n _handleClosedKeydown(event) {\n const keyCode = event.keyCode;\n const isArrowKey = keyCode === DOWN_ARROW ||\n keyCode === UP_ARROW ||\n keyCode === LEFT_ARROW ||\n keyCode === RIGHT_ARROW;\n const isOpenKey = keyCode === ENTER || keyCode === SPACE;\n const manager = this._keyManager;\n // Open the select on ALT + arrow key to match the native <select>\n if ((!manager.isTyping() && isOpenKey && !hasModifierKey(event)) ||\n ((this.multiple || event.altKey) && isArrowKey)) {\n event.preventDefault(); // prevents the page from scrolling down when pressing space\n this.open();\n }\n else if (!this.multiple) {\n const previouslySelectedOption = this.selected;\n manager.onKeydown(event);\n const selectedOption = this.selected;\n // Since the value has changed, we need to announce it ourselves.\n if (selectedOption && previouslySelectedOption !== selectedOption) {\n // We set a duration on the live announcement, because we want the live element to be\n // cleared after a while so that users can't navigate to it using the arrow keys.\n this._liveAnnouncer.announce(selectedOption.viewValue, 10000);\n }\n }\n }\n /** Handles keyboard events when the selected is open. */\n _handleOpenKeydown(event) {\n const manager = this._keyManager;\n const keyCode = event.keyCode;\n const isArrowKey = keyCode === DOWN_ARROW || keyCode === UP_ARROW;\n const isTyping = manager.isTyping();\n if (isArrowKey && event.altKey) {\n // Close the select on ALT + arrow key to match the native <select>\n event.preventDefault();\n this.close();\n // Don't do anything in this case if the user is typing,\n // because the typing sequence can include the space key.\n }\n else if (!isTyping &&\n (keyCode === ENTER || keyCode === SPACE) &&\n manager.activeItem &&\n !hasModifierKey(event)) {\n event.preventDefault();\n manager.activeItem._selectViaInteraction();\n }\n else if (!isTyping && this._multiple && keyCode === A && event.ctrlKey) {\n event.preventDefault();\n const hasDeselectedOptions = this.options.some(opt => !opt.disabled && !opt.selected);\n this.options.forEach(option => {\n if (!option.disabled) {\n hasDeselectedOptions ? option.select() : option.deselect();\n }\n });\n }\n else {\n const previouslyFocusedIndex = manager.activeItemIndex;\n manager.onKeydown(event);\n if (this._multiple &&\n isArrowKey &&\n event.shiftKey &&\n manager.activeItem &&\n manager.activeItemIndex !== previouslyFocusedIndex) {\n manager.activeItem._selectViaInteraction();\n }\n }\n }\n _onFocus() {\n if (!this.disabled) {\n this._focused = true;\n this.stateChanges.next();\n }\n }\n /**\n * Calls the touched callback only if the panel is closed. Otherwise, the trigger will\n * \"blur\" to the panel when it opens, causing a false positive.\n */\n _onBlur() {\n this._focused = false;\n if (!this.disabled && !this.panelOpen) {\n this._onTouched();\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n }\n }\n /**\n * Callback that is invoked when the overlay panel has been attached.\n */\n _onAttached() {\n this._overlayDir.positionChange.pipe(take(1)).subscribe(() => {\n this._changeDetectorRef.detectChanges();\n this._positioningSettled();\n });\n }\n /** Returns the theme to be used on the panel. */\n _getPanelTheme() {\n return this._parentFormField ? `mat-${this._parentFormField.color}` : '';\n }\n /** Whether the select has a value. */\n get empty() {\n return !this._selectionModel || this._selectionModel.isEmpty();\n }\n _initializeSelection() {\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n Promise.resolve().then(() => {\n this._setSelectionByValue(this.ngControl ? this.ngControl.value : this._value);\n this.stateChanges.next();\n });\n }\n /**\n * Sets the selected option based on a value. If no option can be\n * found with the designated value, the select trigger is cleared.\n */\n _setSelectionByValue(value) {\n this._selectionModel.selected.forEach(option => option.setInactiveStyles());\n this._selectionModel.clear();\n if (this.multiple && value) {\n if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatSelectNonArrayValueError();\n }\n value.forEach((currentValue) => this._selectValue(currentValue));\n this._sortValues();\n }\n else {\n const correspondingOption = this._selectValue(value);\n // Shift focus to the active item. Note that we shouldn't do this in multiple\n // mode, because we don't know what option the user interacted with last.\n if (correspondingOption) {\n this._keyManager.updateActiveItem(correspondingOption);\n }\n else if (!this.panelOpen) {\n // Otherwise reset the highlighted option. Note that we only want to do this while\n // closed, because doing it while open can shift the user's focus unnecessarily.\n this._keyManager.updateActiveItem(-1);\n }\n }\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Finds and selects and option based on its value.\n * @returns Option that has the corresponding value.\n */\n _selectValue(value) {\n const correspondingOption = this.options.find((option) => {\n // Skip options that are already in the model. This allows us to handle cases\n // where the same primitive value is selected multiple times.\n if (this._selectionModel.isSelected(option)) {\n return false;\n }\n try {\n // Treat null as a special reset value.\n return option.value != null && this._compareWith(option.value, value);\n }\n catch (error) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Notify developers of errors in their comparator.\n console.warn(error);\n }\n return false;\n }\n });\n if (correspondingOption) {\n this._selectionModel.select(correspondingOption);\n }\n return correspondingOption;\n }\n /** Sets up a key manager to listen to keyboard events on the overlay panel. */\n _initKeyManager() {\n this._keyManager = new ActiveDescendantKeyManager(this.options)\n .withTypeAhead(this._typeaheadDebounceInterval)\n .withVerticalOrientation()\n .withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr')\n .withHomeAndEnd()\n .withAllowedModifierKeys(['shiftKey']);\n this._keyManager.tabOut.pipe(takeUntil(this._destroy)).subscribe(() => {\n if (this.panelOpen) {\n // Select the active item when tabbing away. This is consistent with how the native\n // select behaves. Note that we only want to do this in single selection mode.\n if (!this.multiple && this._keyManager.activeItem) {\n this._keyManager.activeItem._selectViaInteraction();\n }\n // Restore focus to the trigger before closing. Ensures that the focus\n // position won't be lost if the user got focus into the overlay.\n this.focus();\n this.close();\n }\n });\n this._keyManager.change.pipe(takeUntil(this._destroy)).subscribe(() => {\n if (this._panelOpen && this.panel) {\n this._scrollOptionIntoView(this._keyManager.activeItemIndex || 0);\n }\n else if (!this._panelOpen && !this.multiple && this._keyManager.activeItem) {\n this._keyManager.activeItem._selectViaInteraction();\n }\n });\n }\n /** Drops current option subscriptions and IDs and resets from scratch. */\n _resetOptions() {\n const changedOrDestroyed = merge(this.options.changes, this._destroy);\n this.optionSelectionChanges.pipe(takeUntil(changedOrDestroyed)).subscribe(event => {\n this._onSelect(event.source, event.isUserInput);\n if (event.isUserInput && !this.multiple && this._panelOpen) {\n this.close();\n this.focus();\n }\n });\n // Listen to changes in the internal state of the options and react accordingly.\n // Handles cases like the labels of the selected options changing.\n merge(...this.options.map(option => option._stateChanges))\n .pipe(takeUntil(changedOrDestroyed))\n .subscribe(() => {\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n });\n }\n /** Invoked when an option is clicked. */\n _onSelect(option, isUserInput) {\n const wasSelected = this._selectionModel.isSelected(option);\n if (option.value == null && !this._multiple) {\n option.deselect();\n this._selectionModel.clear();\n if (this.value != null) {\n this._propagateChanges(option.value);\n }\n }\n else {\n if (wasSelected !== option.selected) {\n option.selected\n ? this._selectionModel.select(option)\n : this._selectionModel.deselect(option);\n }\n if (isUserInput) {\n this._keyManager.setActiveItem(option);\n }\n if (this.multiple) {\n this._sortValues();\n if (isUserInput) {\n // In case the user selected the option with their mouse, we\n // want to restore focus back to the trigger, in order to\n // prevent the select keyboard controls from clashing with\n // the ones from `mat-option`.\n this.focus();\n }\n }\n }\n if (wasSelected !== this._selectionModel.isSelected(option)) {\n this._propagateChanges();\n }\n this.stateChanges.next();\n }\n /** Sorts the selected values in the selected based on their order in the panel. */\n _sortValues() {\n if (this.multiple) {\n const options = this.options.toArray();\n this._selectionModel.sort((a, b) => {\n return this.sortComparator\n ? this.sortComparator(a, b, options)\n : options.indexOf(a) - options.indexOf(b);\n });\n this.stateChanges.next();\n }\n }\n /** Emits change event to set the model value. */\n _propagateChanges(fallbackValue) {\n let valueToEmit = null;\n if (this.multiple) {\n valueToEmit = this.selected.map(option => option.value);\n }\n else {\n valueToEmit = this.selected ? this.selected.value : fallbackValue;\n }\n this._value = valueToEmit;\n this.valueChange.emit(valueToEmit);\n this._onChange(valueToEmit);\n this.selectionChange.emit(this._getChangeEvent(valueToEmit));\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Highlights the selected item. If no option is selected, it will highlight\n * the first item instead.\n */\n _highlightCorrectOption() {\n if (this._keyManager) {\n if (this.empty) {\n this._keyManager.setFirstItemActive();\n }\n else {\n this._keyManager.setActiveItem(this._selectionModel.selected[0]);\n }\n }\n }\n /** Whether the panel is allowed to open. */\n _canOpen() {\n var _a;\n return !this._panelOpen && !this.disabled && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n /** Focuses the select element. */\n focus(options) {\n this._elementRef.nativeElement.focus(options);\n }\n /** Gets the aria-labelledby for the select panel. */\n _getPanelAriaLabelledby() {\n var _a;\n if (this.ariaLabel) {\n return null;\n }\n const labelId = (_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId();\n const labelExpression = labelId ? labelId + ' ' : '';\n return this.ariaLabelledby ? labelExpression + this.ariaLabelledby : labelId;\n }\n /** Determines the `aria-activedescendant` to be set on the host. */\n _getAriaActiveDescendant() {\n if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {\n return this._keyManager.activeItem.id;\n }\n return null;\n }\n /** Gets the aria-labelledby of the select component trigger. */\n _getTriggerAriaLabelledby() {\n var _a;\n if (this.ariaLabel) {\n return null;\n }\n const labelId = (_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId();\n let value = (labelId ? labelId + ' ' : '') + this._valueId;\n if (this.ariaLabelledby) {\n value += ' ' + this.ariaLabelledby;\n }\n return value;\n }\n /** Called when the overlay panel is done animating. */\n _panelDoneAnimating(isOpen) {\n this.openedChange.emit(isOpen);\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n setDescribedByIds(ids) {\n this._ariaDescribedby = ids.join(' ');\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n onContainerClick() {\n this.focus();\n this.open();\n }\n /**\n * Implemented as part of MatFormFieldControl.\n * @docs-private\n */\n get shouldLabelFloat() {\n return this._panelOpen || !this.empty || (this._focused && !!this._placeholder);\n }\n}\n_MatSelectBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSelectBase, deps: [{ token: i1.ViewportRuler }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.ErrorStateMatcher }, { token: i0.ElementRef }, { token: i3.Directionality, optional: true }, { token: i4.NgForm, optional: true }, { token: i4.FormGroupDirective, optional: true }, { token: MAT_FORM_FIELD, optional: true }, { token: i4.NgControl, optional: true, self: true }, { token: 'tabindex', attribute: true }, { token: MAT_SELECT_SCROLL_STRATEGY }, { token: i5.LiveAnnouncer }, { token: MAT_SELECT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatSelectBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatSelectBase, inputs: { panelClass: \"panelClass\", placeholder: \"placeholder\", required: \"required\", multiple: \"multiple\", disableOptionCentering: \"disableOptionCentering\", compareWith: \"compareWith\", value: \"value\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], errorStateMatcher: \"errorStateMatcher\", typeaheadDebounceInterval: \"typeaheadDebounceInterval\", sortComparator: \"sortComparator\", id: \"id\" }, outputs: { openedChange: \"openedChange\", _openedStream: \"opened\", _closedStream: \"closed\", selectionChange: \"selectionChange\", valueChange: \"valueChange\" }, viewQueries: [{ propertyName: \"trigger\", first: true, predicate: [\"trigger\"], descendants: true }, { propertyName: \"panel\", first: true, predicate: [\"panel\"], descendants: true }, { propertyName: \"_overlayDir\", first: true, predicate: CdkConnectedOverlay, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSelectBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i1.ViewportRuler }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.ErrorStateMatcher }, { type: i0.ElementRef }, { type: i3.Directionality, decorators: [{\n type: Optional\n }] }, { type: i4.NgForm, decorators: [{\n type: Optional\n }] }, { type: i4.FormGroupDirective, decorators: [{\n type: Optional\n }] }, { type: i6.MatFormField, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_FORM_FIELD]\n }] }, { type: i4.NgControl, decorators: [{\n type: Self\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_SELECT_SCROLL_STRATEGY]\n }] }, { type: i5.LiveAnnouncer }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_SELECT_CONFIG]\n }] }];\n }, propDecorators: { trigger: [{\n type: ViewChild,\n args: ['trigger']\n }], panel: [{\n type: ViewChild,\n args: ['panel']\n }], _overlayDir: [{\n type: ViewChild,\n args: [CdkConnectedOverlay]\n }], panelClass: [{\n type: Input\n }], placeholder: [{\n type: Input\n }], required: [{\n type: Input\n }], multiple: [{\n type: Input\n }], disableOptionCentering: [{\n type: Input\n }], compareWith: [{\n type: Input\n }], value: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], errorStateMatcher: [{\n type: Input\n }], typeaheadDebounceInterval: [{\n type: Input\n }], sortComparator: [{\n type: Input\n }], id: [{\n type: Input\n }], openedChange: [{\n type: Output\n }], _openedStream: [{\n type: Output,\n args: ['opened']\n }], _closedStream: [{\n type: Output,\n args: ['closed']\n }], selectionChange: [{\n type: Output\n }], valueChange: [{\n type: Output\n }] } });\nclass MatSelect extends _MatSelectBase {\n constructor() {\n super(...arguments);\n /** The scroll position of the overlay panel, calculated to center the selected option. */\n this._scrollTop = 0;\n /** The cached font-size of the trigger element. */\n this._triggerFontSize = 0;\n /** The value of the select panel's transform-origin property. */\n this._transformOrigin = 'top';\n /**\n * The y-offset of the overlay panel in relation to the trigger's top start corner.\n * This must be adjusted to align the selected option text over the trigger text.\n * when the panel opens. Will change based on the y-position of the selected option.\n */\n this._offsetY = 0;\n this._positions = [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ];\n }\n /**\n * Calculates the scroll position of the select's overlay panel.\n *\n * Attempts to center the selected option in the panel. If the option is\n * too high or too low in the panel to be scrolled to the center, it clamps the\n * scroll position to the min or max scroll positions respectively.\n */\n _calculateOverlayScroll(selectedIndex, scrollBuffer, maxScroll) {\n const itemHeight = this._getItemHeight();\n const optionOffsetFromScrollTop = itemHeight * selectedIndex;\n const halfOptionHeight = itemHeight / 2;\n // Starts at the optionOffsetFromScrollTop, which scrolls the option to the top of the\n // scroll container, then subtracts the scroll buffer to scroll the option down to\n // the center of the overlay panel. Half the option height must be re-added to the\n // scrollTop so the option is centered based on its middle, not its top edge.\n const optimalScrollPosition = optionOffsetFromScrollTop - scrollBuffer + halfOptionHeight;\n return Math.min(Math.max(0, optimalScrollPosition), maxScroll);\n }\n ngOnInit() {\n super.ngOnInit();\n this._viewportRuler\n .change()\n .pipe(takeUntil(this._destroy))\n .subscribe(() => {\n if (this.panelOpen) {\n this._triggerRect = this.trigger.nativeElement.getBoundingClientRect();\n this._changeDetectorRef.markForCheck();\n }\n });\n }\n open() {\n if (super._canOpen()) {\n super.open();\n this._triggerRect = this.trigger.nativeElement.getBoundingClientRect();\n // Note: The computed font-size will be a string pixel value (e.g. \"16px\").\n // `parseInt` ignores the trailing 'px' and converts this to a number.\n this._triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement).fontSize || '0');\n this._calculateOverlayPosition();\n // Set the font size on the panel element once it exists.\n this._ngZone.onStable.pipe(take(1)).subscribe(() => {\n if (this._triggerFontSize &&\n this._overlayDir.overlayRef &&\n this._overlayDir.overlayRef.overlayElement) {\n this._overlayDir.overlayRef.overlayElement.style.fontSize = `${this._triggerFontSize}px`;\n }\n });\n }\n }\n /** Scrolls the active option into view. */\n _scrollOptionIntoView(index) {\n const labelCount = _countGroupLabelsBeforeOption(index, this.options, this.optionGroups);\n const itemHeight = this._getItemHeight();\n if (index === 0 && labelCount === 1) {\n // If we've got one group label before the option and we're at the top option,\n // scroll the list to the top. This is better UX than scrolling the list to the\n // top of the option, because it allows the user to read the top group's label.\n this.panel.nativeElement.scrollTop = 0;\n }\n else {\n this.panel.nativeElement.scrollTop = _getOptionScrollPosition((index + labelCount) * itemHeight, itemHeight, this.panel.nativeElement.scrollTop, SELECT_PANEL_MAX_HEIGHT);\n }\n }\n _positioningSettled() {\n this._calculateOverlayOffsetX();\n this.panel.nativeElement.scrollTop = this._scrollTop;\n }\n _panelDoneAnimating(isOpen) {\n if (this.panelOpen) {\n this._scrollTop = 0;\n }\n else {\n this._overlayDir.offsetX = 0;\n this._changeDetectorRef.markForCheck();\n }\n super._panelDoneAnimating(isOpen);\n }\n _getChangeEvent(value) {\n return new MatSelectChange(this, value);\n }\n /**\n * Sets the x-offset of the overlay panel in relation to the trigger's top start corner.\n * This must be adjusted to align the selected option text over the trigger text when\n * the panel opens. Will change based on LTR or RTL text direction. Note that the offset\n * can't be calculated until the panel has been attached, because we need to know the\n * content width in order to constrain the panel within the viewport.\n */\n _calculateOverlayOffsetX() {\n const overlayRect = this._overlayDir.overlayRef.overlayElement.getBoundingClientRect();\n const viewportSize = this._viewportRuler.getViewportSize();\n const isRtl = this._isRtl();\n const paddingWidth = this.multiple\n ? SELECT_MULTIPLE_PANEL_PADDING_X + SELECT_PANEL_PADDING_X\n : SELECT_PANEL_PADDING_X * 2;\n let offsetX;\n // Adjust the offset, depending on the option padding.\n if (this.multiple) {\n offsetX = SELECT_MULTIPLE_PANEL_PADDING_X;\n }\n else if (this.disableOptionCentering) {\n offsetX = SELECT_PANEL_PADDING_X;\n }\n else {\n let selected = this._selectionModel.selected[0] || this.options.first;\n offsetX = selected && selected.group ? SELECT_PANEL_INDENT_PADDING_X : SELECT_PANEL_PADDING_X;\n }\n // Invert the offset in LTR.\n if (!isRtl) {\n offsetX *= -1;\n }\n // Determine how much the select overflows on each side.\n const leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));\n const rightOverflow = overlayRect.right + offsetX - viewportSize.width + (isRtl ? 0 : paddingWidth);\n // If the element overflows on either side, reduce the offset to allow it to fit.\n if (leftOverflow > 0) {\n offsetX += leftOverflow + SELECT_PANEL_VIEWPORT_PADDING;\n }\n else if (rightOverflow > 0) {\n offsetX -= rightOverflow + SELECT_PANEL_VIEWPORT_PADDING;\n }\n // Set the offset directly in order to avoid having to go through change detection and\n // potentially triggering \"changed after it was checked\" errors. Round the value to avoid\n // blurry content in some browsers.\n this._overlayDir.offsetX = Math.round(offsetX);\n this._overlayDir.overlayRef.updatePosition();\n }\n /**\n * Calculates the y-offset of the select's overlay panel in relation to the\n * top start corner of the trigger. It has to be adjusted in order for the\n * selected option to be aligned over the trigger when the panel opens.\n */\n _calculateOverlayOffsetY(selectedIndex, scrollBuffer, maxScroll) {\n const itemHeight = this._getItemHeight();\n const optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;\n const maxOptionsDisplayed = Math.floor(SELECT_PANEL_MAX_HEIGHT / itemHeight);\n let optionOffsetFromPanelTop;\n // Disable offset if requested by user by returning 0 as value to offset\n if (this.disableOptionCentering) {\n return 0;\n }\n if (this._scrollTop === 0) {\n optionOffsetFromPanelTop = selectedIndex * itemHeight;\n }\n else if (this._scrollTop === maxScroll) {\n const firstDisplayedIndex = this._getItemCount() - maxOptionsDisplayed;\n const selectedDisplayIndex = selectedIndex - firstDisplayedIndex;\n // The first item is partially out of the viewport. Therefore we need to calculate what\n // portion of it is shown in the viewport and account for it in our offset.\n let partialItemHeight = itemHeight - ((this._getItemCount() * itemHeight - SELECT_PANEL_MAX_HEIGHT) % itemHeight);\n // Because the panel height is longer than the height of the options alone,\n // there is always extra padding at the top or bottom of the panel. When\n // scrolled to the very bottom, this padding is at the top of the panel and\n // must be added to the offset.\n optionOffsetFromPanelTop = selectedDisplayIndex * itemHeight + partialItemHeight;\n }\n else {\n // If the option was scrolled to the middle of the panel using a scroll buffer,\n // its offset will be the scroll buffer minus the half height that was added to\n // center it.\n optionOffsetFromPanelTop = scrollBuffer - itemHeight / 2;\n }\n // The final offset is the option's offset from the top, adjusted for the height difference,\n // multiplied by -1 to ensure that the overlay moves in the correct direction up the page.\n // The value is rounded to prevent some browsers from blurring the content.\n return Math.round(optionOffsetFromPanelTop * -1 - optionHeightAdjustment);\n }\n /**\n * Checks that the attempted overlay position will fit within the viewport.\n * If it will not fit, tries to adjust the scroll position and the associated\n * y-offset so the panel can open fully on-screen. If it still won't fit,\n * sets the offset back to 0 to allow the fallback position to take over.\n */\n _checkOverlayWithinViewport(maxScroll) {\n const itemHeight = this._getItemHeight();\n const viewportSize = this._viewportRuler.getViewportSize();\n const topSpaceAvailable = this._triggerRect.top - SELECT_PANEL_VIEWPORT_PADDING;\n const bottomSpaceAvailable = viewportSize.height - this._triggerRect.bottom - SELECT_PANEL_VIEWPORT_PADDING;\n const panelHeightTop = Math.abs(this._offsetY);\n const totalPanelHeight = Math.min(this._getItemCount() * itemHeight, SELECT_PANEL_MAX_HEIGHT);\n const panelHeightBottom = totalPanelHeight - panelHeightTop - this._triggerRect.height;\n if (panelHeightBottom > bottomSpaceAvailable) {\n this._adjustPanelUp(panelHeightBottom, bottomSpaceAvailable);\n }\n else if (panelHeightTop > topSpaceAvailable) {\n this._adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll);\n }\n else {\n this._transformOrigin = this._getOriginBasedOnOption();\n }\n }\n /** Adjusts the overlay panel up to fit in the viewport. */\n _adjustPanelUp(panelHeightBottom, bottomSpaceAvailable) {\n // Browsers ignore fractional scroll offsets, so we need to round.\n const distanceBelowViewport = Math.round(panelHeightBottom - bottomSpaceAvailable);\n // Scrolls the panel up by the distance it was extending past the boundary, then\n // adjusts the offset by that amount to move the panel up into the viewport.\n this._scrollTop -= distanceBelowViewport;\n this._offsetY -= distanceBelowViewport;\n this._transformOrigin = this._getOriginBasedOnOption();\n // If the panel is scrolled to the very top, it won't be able to fit the panel\n // by scrolling, so set the offset to 0 to allow the fallback position to take\n // effect.\n if (this._scrollTop <= 0) {\n this._scrollTop = 0;\n this._offsetY = 0;\n this._transformOrigin = `50% bottom 0px`;\n }\n }\n /** Adjusts the overlay panel down to fit in the viewport. */\n _adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll) {\n // Browsers ignore fractional scroll offsets, so we need to round.\n const distanceAboveViewport = Math.round(panelHeightTop - topSpaceAvailable);\n // Scrolls the panel down by the distance it was extending past the boundary, then\n // adjusts the offset by that amount to move the panel down into the viewport.\n this._scrollTop += distanceAboveViewport;\n this._offsetY += distanceAboveViewport;\n this._transformOrigin = this._getOriginBasedOnOption();\n // If the panel is scrolled to the very bottom, it won't be able to fit the\n // panel by scrolling, so set the offset to 0 to allow the fallback position\n // to take effect.\n if (this._scrollTop >= maxScroll) {\n this._scrollTop = maxScroll;\n this._offsetY = 0;\n this._transformOrigin = `50% top 0px`;\n return;\n }\n }\n /** Calculates the scroll position and x- and y-offsets of the overlay panel. */\n _calculateOverlayPosition() {\n const itemHeight = this._getItemHeight();\n const items = this._getItemCount();\n const panelHeight = Math.min(items * itemHeight, SELECT_PANEL_MAX_HEIGHT);\n const scrollContainerHeight = items * itemHeight;\n // The farthest the panel can be scrolled before it hits the bottom\n const maxScroll = scrollContainerHeight - panelHeight;\n // If no value is selected we open the popup to the first item.\n let selectedOptionOffset;\n if (this.empty) {\n selectedOptionOffset = 0;\n }\n else {\n selectedOptionOffset = Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]), 0);\n }\n selectedOptionOffset += _countGroupLabelsBeforeOption(selectedOptionOffset, this.options, this.optionGroups);\n // We must maintain a scroll buffer so the selected option will be scrolled to the\n // center of the overlay panel rather than the top.\n const scrollBuffer = panelHeight / 2;\n this._scrollTop = this._calculateOverlayScroll(selectedOptionOffset, scrollBuffer, maxScroll);\n this._offsetY = this._calculateOverlayOffsetY(selectedOptionOffset, scrollBuffer, maxScroll);\n this._checkOverlayWithinViewport(maxScroll);\n }\n /** Sets the transform origin point based on the selected option. */\n _getOriginBasedOnOption() {\n const itemHeight = this._getItemHeight();\n const optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;\n const originY = Math.abs(this._offsetY) - optionHeightAdjustment + itemHeight / 2;\n return `50% ${originY}px 0px`;\n }\n /** Calculates the height of the select's options. */\n _getItemHeight() {\n return this._triggerFontSize * SELECT_ITEM_HEIGHT_EM;\n }\n /** Calculates the amount of items in the select. This includes options and group labels. */\n _getItemCount() {\n return this.options.length + this.optionGroups.length;\n }\n}\nMatSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSelect, selector: \"mat-select\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { attributes: { \"role\": \"combobox\", \"aria-autocomplete\": \"none\", \"aria-haspopup\": \"true\" }, listeners: { \"keydown\": \"_handleKeydown($event)\", \"focus\": \"_onFocus()\", \"blur\": \"_onBlur()\" }, properties: { \"attr.id\": \"id\", \"attr.tabindex\": \"tabIndex\", \"attr.aria-controls\": \"panelOpen ? id + \\\"-panel\\\" : null\", \"attr.aria-expanded\": \"panelOpen\", \"attr.aria-label\": \"ariaLabel || null\", \"attr.aria-required\": \"required.toString()\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.aria-invalid\": \"errorState\", \"attr.aria-describedby\": \"_ariaDescribedby || null\", \"attr.aria-activedescendant\": \"_getAriaActiveDescendant()\", \"class.mat-select-disabled\": \"disabled\", \"class.mat-select-invalid\": \"errorState\", \"class.mat-select-required\": \"required\", \"class.mat-select-empty\": \"empty\", \"class.mat-select-multiple\": \"multiple\" }, classAttribute: \"mat-select\" }, providers: [\n { provide: MatFormFieldControl, useExisting: MatSelect },\n { provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },\n ], queries: [{ propertyName: \"customTrigger\", first: true, predicate: MAT_SELECT_TRIGGER, descendants: true }, { propertyName: \"options\", predicate: MatOption, descendants: true }, { propertyName: \"optionGroups\", predicate: MAT_OPTGROUP, descendants: true }], exportAs: [\"matSelect\"], usesInheritance: true, ngImport: i0, template: \"<!--\\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\\n While aria-owns is not required for the ARIA 1.2 `role=\\\"combobox\\\"` interaction pattern,\\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model=\\\"true\\\"`\\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\\n VoiceOver from \\\"seeing\\\" the select's listbox overlay for aria-activedescendant.\\n Using `aria-owns` re-parents the select overlay so that it works again.\\n See https://github.com/angular/components/issues/20694\\n-->\\n<div cdk-overlay-origin\\n [attr.aria-owns]=\\\"panelOpen ? id + '-panel' : null\\\"\\n class=\\\"mat-select-trigger\\\"\\n (click)=\\\"toggle()\\\"\\n #origin=\\\"cdkOverlayOrigin\\\"\\n #trigger>\\n <div class=\\\"mat-select-value\\\" [ngSwitch]=\\\"empty\\\" [attr.id]=\\\"_valueId\\\">\\n <span class=\\\"mat-select-placeholder mat-select-min-line\\\" *ngSwitchCase=\\\"true\\\">{{placeholder}}</span>\\n <span class=\\\"mat-select-value-text\\\" *ngSwitchCase=\\\"false\\\" [ngSwitch]=\\\"!!customTrigger\\\">\\n <span class=\\\"mat-select-min-line\\\" *ngSwitchDefault>{{triggerValue}}</span>\\n <ng-content select=\\\"mat-select-trigger\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n </span>\\n </div>\\n\\n <div class=\\\"mat-select-arrow-wrapper\\\"><div class=\\\"mat-select-arrow\\\"></div></div>\\n</div>\\n\\n<ng-template\\n cdk-connected-overlay\\n cdkConnectedOverlayLockPosition\\n cdkConnectedOverlayHasBackdrop\\n cdkConnectedOverlayBackdropClass=\\\"cdk-overlay-transparent-backdrop\\\"\\n [cdkConnectedOverlayPanelClass]=\\\"_overlayPanelClass\\\"\\n [cdkConnectedOverlayScrollStrategy]=\\\"_scrollStrategy\\\"\\n [cdkConnectedOverlayOrigin]=\\\"origin\\\"\\n [cdkConnectedOverlayOpen]=\\\"panelOpen\\\"\\n [cdkConnectedOverlayPositions]=\\\"_positions\\\"\\n [cdkConnectedOverlayMinWidth]=\\\"_triggerRect?.width!\\\"\\n [cdkConnectedOverlayOffsetY]=\\\"_offsetY\\\"\\n (backdropClick)=\\\"close()\\\"\\n (attach)=\\\"_onAttached()\\\"\\n (detach)=\\\"close()\\\">\\n <div class=\\\"mat-select-panel-wrap\\\" [@transformPanelWrap]>\\n <div\\n #panel\\n role=\\\"listbox\\\"\\n tabindex=\\\"-1\\\"\\n class=\\\"mat-select-panel {{ _getPanelTheme() }}\\\"\\n [attr.id]=\\\"id + '-panel'\\\"\\n [attr.aria-multiselectable]=\\\"multiple\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"_getPanelAriaLabelledby()\\\"\\n [ngClass]=\\\"panelClass\\\"\\n [@transformPanel]=\\\"multiple ? 'showing-multiple' : 'showing'\\\"\\n (@transformPanel.done)=\\\"_panelDoneAnimatingStream.next($event.toState)\\\"\\n [style.transformOrigin]=\\\"_transformOrigin\\\"\\n [style.font-size.px]=\\\"_triggerFontSize\\\"\\n (keydown)=\\\"_handleKeydown($event)\\\">\\n <ng-content></ng-content>\\n </div>\\n </div>\\n</ng-template>\\n\", styles: [\".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:\\\" \\\";white-space:pre;width:1px;display:inline-block;opacity:0}\\n\"], directives: [{ type: i7.CdkOverlayOrigin, selector: \"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]\", exportAs: [\"cdkOverlayOrigin\"] }, { type: i8.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i8.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { type: i8.NgSwitchDefault, selector: \"[ngSwitchDefault]\" }, { type: i7.CdkConnectedOverlay, selector: \"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]\", inputs: [\"cdkConnectedOverlayOrigin\", \"cdkConnectedOverlayPositions\", \"cdkConnectedOverlayPositionStrategy\", \"cdkConnectedOverlayOffsetX\", \"cdkConnectedOverlayOffsetY\", \"cdkConnectedOverlayWidth\", \"cdkConnectedOverlayHeight\", \"cdkConnectedOverlayMinWidth\", \"cdkConnectedOverlayMinHeight\", \"cdkConnectedOverlayBackdropClass\", \"cdkConnectedOverlayPanelClass\", \"cdkConnectedOverlayViewportMargin\", \"cdkConnectedOverlayScrollStrategy\", \"cdkConnectedOverlayOpen\", \"cdkConnectedOverlayDisableClose\", \"cdkConnectedOverlayTransformOriginOn\", \"cdkConnectedOverlayHasBackdrop\", \"cdkConnectedOverlayLockPosition\", \"cdkConnectedOverlayFlexibleDimensions\", \"cdkConnectedOverlayGrowAfterOpen\", \"cdkConnectedOverlayPush\"], outputs: [\"backdropClick\", \"positionChange\", \"attach\", \"detach\", \"overlayKeydown\", \"overlayOutsideClick\"], exportAs: [\"cdkConnectedOverlay\"] }, { type: i8.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], animations: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelect, decorators: [{\n type: Component,\n args: [{ selector: 'mat-select', exportAs: 'matSelect', inputs: ['disabled', 'disableRipple', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {\n 'role': 'combobox',\n 'aria-autocomplete': 'none',\n // TODO(crisbeto): the value for aria-haspopup should be `listbox`, but currently it's difficult\n // to sync into Google, because of an outdated automated a11y check which flags it as an invalid\n // value. At some point we should try to switch it back to being `listbox`.\n 'aria-haspopup': 'true',\n 'class': 'mat-select',\n '[attr.id]': 'id',\n '[attr.tabindex]': 'tabIndex',\n '[attr.aria-controls]': 'panelOpen ? id + \"-panel\" : null',\n '[attr.aria-expanded]': 'panelOpen',\n '[attr.aria-label]': 'ariaLabel || null',\n '[attr.aria-required]': 'required.toString()',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.aria-invalid]': 'errorState',\n '[attr.aria-describedby]': '_ariaDescribedby || null',\n '[attr.aria-activedescendant]': '_getAriaActiveDescendant()',\n '[class.mat-select-disabled]': 'disabled',\n '[class.mat-select-invalid]': 'errorState',\n '[class.mat-select-required]': 'required',\n '[class.mat-select-empty]': 'empty',\n '[class.mat-select-multiple]': 'multiple',\n '(keydown)': '_handleKeydown($event)',\n '(focus)': '_onFocus()',\n '(blur)': '_onBlur()',\n }, animations: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel], providers: [\n { provide: MatFormFieldControl, useExisting: MatSelect },\n { provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },\n ], template: \"<!--\\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\\n While aria-owns is not required for the ARIA 1.2 `role=\\\"combobox\\\"` interaction pattern,\\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model=\\\"true\\\"`\\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\\n VoiceOver from \\\"seeing\\\" the select's listbox overlay for aria-activedescendant.\\n Using `aria-owns` re-parents the select overlay so that it works again.\\n See https://github.com/angular/components/issues/20694\\n-->\\n<div cdk-overlay-origin\\n [attr.aria-owns]=\\\"panelOpen ? id + '-panel' : null\\\"\\n class=\\\"mat-select-trigger\\\"\\n (click)=\\\"toggle()\\\"\\n #origin=\\\"cdkOverlayOrigin\\\"\\n #trigger>\\n <div class=\\\"mat-select-value\\\" [ngSwitch]=\\\"empty\\\" [attr.id]=\\\"_valueId\\\">\\n <span class=\\\"mat-select-placeholder mat-select-min-line\\\" *ngSwitchCase=\\\"true\\\">{{placeholder}}</span>\\n <span class=\\\"mat-select-value-text\\\" *ngSwitchCase=\\\"false\\\" [ngSwitch]=\\\"!!customTrigger\\\">\\n <span class=\\\"mat-select-min-line\\\" *ngSwitchDefault>{{triggerValue}}</span>\\n <ng-content select=\\\"mat-select-trigger\\\" *ngSwitchCase=\\\"true\\\"></ng-content>\\n </span>\\n </div>\\n\\n <div class=\\\"mat-select-arrow-wrapper\\\"><div class=\\\"mat-select-arrow\\\"></div></div>\\n</div>\\n\\n<ng-template\\n cdk-connected-overlay\\n cdkConnectedOverlayLockPosition\\n cdkConnectedOverlayHasBackdrop\\n cdkConnectedOverlayBackdropClass=\\\"cdk-overlay-transparent-backdrop\\\"\\n [cdkConnectedOverlayPanelClass]=\\\"_overlayPanelClass\\\"\\n [cdkConnectedOverlayScrollStrategy]=\\\"_scrollStrategy\\\"\\n [cdkConnectedOverlayOrigin]=\\\"origin\\\"\\n [cdkConnectedOverlayOpen]=\\\"panelOpen\\\"\\n [cdkConnectedOverlayPositions]=\\\"_positions\\\"\\n [cdkConnectedOverlayMinWidth]=\\\"_triggerRect?.width!\\\"\\n [cdkConnectedOverlayOffsetY]=\\\"_offsetY\\\"\\n (backdropClick)=\\\"close()\\\"\\n (attach)=\\\"_onAttached()\\\"\\n (detach)=\\\"close()\\\">\\n <div class=\\\"mat-select-panel-wrap\\\" [@transformPanelWrap]>\\n <div\\n #panel\\n role=\\\"listbox\\\"\\n tabindex=\\\"-1\\\"\\n class=\\\"mat-select-panel {{ _getPanelTheme() }}\\\"\\n [attr.id]=\\\"id + '-panel'\\\"\\n [attr.aria-multiselectable]=\\\"multiple\\\"\\n [attr.aria-label]=\\\"ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"_getPanelAriaLabelledby()\\\"\\n [ngClass]=\\\"panelClass\\\"\\n [@transformPanel]=\\\"multiple ? 'showing-multiple' : 'showing'\\\"\\n (@transformPanel.done)=\\\"_panelDoneAnimatingStream.next($event.toState)\\\"\\n [style.transformOrigin]=\\\"_transformOrigin\\\"\\n [style.font-size.px]=\\\"_triggerFontSize\\\"\\n (keydown)=\\\"_handleKeydown($event)\\\">\\n <ng-content></ng-content>\\n </div>\\n </div>\\n</ng-template>\\n\", styles: [\".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:\\\" \\\";white-space:pre;width:1px;display:inline-block;opacity:0}\\n\"] }]\n }], propDecorators: { options: [{\n type: ContentChildren,\n args: [MatOption, { descendants: true }]\n }], optionGroups: [{\n type: ContentChildren,\n args: [MAT_OPTGROUP, { descendants: true }]\n }], customTrigger: [{\n type: ContentChild,\n args: [MAT_SELECT_TRIGGER]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSelectModule {\n}\nMatSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectModule, declarations: [MatSelect, MatSelectTrigger], imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule], exports: [CdkScrollableModule,\n MatFormFieldModule,\n MatSelect,\n MatSelectTrigger,\n MatOptionModule,\n MatCommonModule] });\nMatSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectModule, providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER], imports: [[CommonModule, OverlayModule, MatOptionModule, MatCommonModule], CdkScrollableModule,\n MatFormFieldModule,\n MatOptionModule,\n MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, OverlayModule, MatOptionModule, MatCommonModule],\n exports: [\n CdkScrollableModule,\n MatFormFieldModule,\n MatSelect,\n MatSelectTrigger,\n MatOptionModule,\n MatCommonModule,\n ],\n declarations: [MatSelect, MatSelectTrigger],\n providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SELECT_CONFIG, MAT_SELECT_SCROLL_STRATEGY, MAT_SELECT_SCROLL_STRATEGY_PROVIDER, MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY, MAT_SELECT_TRIGGER, MatSelect, MatSelectChange, MatSelectModule, MatSelectTrigger, _MatSelectBase, matSelectAnimations };\n","import * as i3 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Inject, Optional, ViewChild, Input, Output, Directive, NgModule } from '@angular/core';\nimport * as i2 from '@angular/material/core';\nimport { mixinTabIndex, mixinColor, mixinDisableRipple, mixinDisabled, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { NG_VALUE_ACCESSOR, NG_VALIDATORS, CheckboxRequiredValidator } from '@angular/forms';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i1 from '@angular/cdk/a11y';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token to be used to override the default options for `mat-slide-toggle`. */\nconst MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS = new InjectionToken('mat-slide-toggle-default-options', {\n providedIn: 'root',\n factory: () => ({ disableToggleValue: false }),\n});\n\n// Increasing integer for generating unique ids for slide-toggle components.\nlet nextUniqueId = 0;\n/** @docs-private */\nconst MAT_SLIDE_TOGGLE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatSlideToggle),\n multi: true,\n};\n/** Change event object emitted by a MatSlideToggle. */\nclass MatSlideToggleChange {\n constructor(\n /** The source MatSlideToggle of the event. */\n source, \n /** The new `checked` value of the MatSlideToggle. */\n checked) {\n this.source = source;\n this.checked = checked;\n }\n}\n// Boilerplate for applying mixins to MatSlideToggle.\n/** @docs-private */\nconst _MatSlideToggleBase = mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}))));\n/** Represents a slidable \"switch\" toggle that can be moved between on and off. */\nclass MatSlideToggle extends _MatSlideToggleBase {\n constructor(elementRef, _focusMonitor, _changeDetectorRef, tabIndex, defaults, animationMode) {\n super(elementRef);\n this._focusMonitor = _focusMonitor;\n this._changeDetectorRef = _changeDetectorRef;\n this.defaults = defaults;\n this._onChange = (_) => { };\n this._onTouched = () => { };\n this._uniqueId = `mat-slide-toggle-${++nextUniqueId}`;\n this._required = false;\n this._checked = false;\n /** Name value will be applied to the input element if present. */\n this.name = null;\n /** A unique id for the slide-toggle input. If none is supplied, it will be auto-generated. */\n this.id = this._uniqueId;\n /** Whether the label should appear after or before the slide-toggle. Defaults to 'after'. */\n this.labelPosition = 'after';\n /** Used to set the aria-label attribute on the underlying input element. */\n this.ariaLabel = null;\n /** Used to set the aria-labelledby attribute on the underlying input element. */\n this.ariaLabelledby = null;\n /** An event will be dispatched each time the slide-toggle changes its value. */\n this.change = new EventEmitter();\n /**\n * An event will be dispatched each time the slide-toggle input is toggled.\n * This event is always emitted when the user toggles the slide toggle, but this does not mean\n * the slide toggle's value has changed.\n */\n this.toggleChange = new EventEmitter();\n this.tabIndex = parseInt(tabIndex) || 0;\n this.color = this.defaultColor = defaults.color || 'accent';\n this._noopAnimations = animationMode === 'NoopAnimations';\n }\n /** Whether the slide-toggle is required. */\n get required() {\n return this._required;\n }\n set required(value) {\n this._required = coerceBooleanProperty(value);\n }\n /** Whether the slide-toggle element is checked or not. */\n get checked() {\n return this._checked;\n }\n set checked(value) {\n this._checked = coerceBooleanProperty(value);\n this._changeDetectorRef.markForCheck();\n }\n /** Returns the unique id for the visual hidden input. */\n get inputId() {\n return `${this.id || this._uniqueId}-input`;\n }\n ngAfterContentInit() {\n this._focusMonitor.monitor(this._elementRef, true).subscribe(focusOrigin => {\n if (!focusOrigin) {\n // When a focused element becomes disabled, the browser *immediately* fires a blur event.\n // Angular does not expect events to be raised during change detection, so any state\n // change (such as a form control's 'ng-touched') will cause a changed-after-checked\n // error. See https://github.com/angular/angular/issues/17793. To work around this,\n // we defer telling the form control it has been touched until the next tick.\n Promise.resolve().then(() => this._onTouched());\n }\n });\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n /** Method being called whenever the underlying input emits a change event. */\n _onChangeEvent(event) {\n // We always have to stop propagation on the change event.\n // Otherwise the change event, from the input element, will bubble up and\n // emit its event object to the component's `change` output.\n event.stopPropagation();\n this.toggleChange.emit();\n // When the slide toggle's config disables toggle change event by setting\n // `disableToggleValue: true`, the slide toggle's value does not change, and the\n // checked state of the underlying input needs to be changed back.\n if (this.defaults.disableToggleValue) {\n this._inputElement.nativeElement.checked = this.checked;\n return;\n }\n // Sync the value from the underlying input element with the component instance.\n this.checked = this._inputElement.nativeElement.checked;\n // Emit our custom change event only if the underlying input emitted one. This ensures that\n // there is no change event, when the checked state changes programmatically.\n this._emitChangeEvent();\n }\n /** Method being called whenever the slide-toggle has been clicked. */\n _onInputClick(event) {\n // We have to stop propagation for click events on the visual hidden input element.\n // By default, when a user clicks on a label element, a generated click event will be\n // dispatched on the associated input element. Since we are using a label element as our\n // root container, the click event on the `slide-toggle` will be executed twice.\n // The real click event will bubble up, and the generated click event also tries to bubble up.\n // This will lead to multiple click events.\n // Preventing bubbling for the second event will solve that issue.\n event.stopPropagation();\n }\n /** Implemented as part of ControlValueAccessor. */\n writeValue(value) {\n this.checked = !!value;\n }\n /** Implemented as part of ControlValueAccessor. */\n registerOnChange(fn) {\n this._onChange = fn;\n }\n /** Implemented as part of ControlValueAccessor. */\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n /** Implemented as a part of ControlValueAccessor. */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n this._changeDetectorRef.markForCheck();\n }\n /** Focuses the slide-toggle. */\n focus(options, origin) {\n if (origin) {\n this._focusMonitor.focusVia(this._inputElement, origin, options);\n }\n else {\n this._inputElement.nativeElement.focus(options);\n }\n }\n /** Toggles the checked state of the slide-toggle. */\n toggle() {\n this.checked = !this.checked;\n this._onChange(this.checked);\n }\n /**\n * Emits a change event on the `change` output. Also notifies the FormControl about the change.\n */\n _emitChangeEvent() {\n this._onChange(this.checked);\n this.change.emit(new MatSlideToggleChange(this, this.checked));\n }\n /** Method being called whenever the label text changes. */\n _onLabelTextChange() {\n // Since the event of the `cdkObserveContent` directive runs outside of the zone, the\n // slide-toggle component will be only marked for check, but no actual change detection runs\n // automatically. Instead of going back into the zone in order to trigger a change detection\n // which causes *all* components to be checked (if explicitly marked or not using OnPush),\n // we only trigger an explicit change detection for the slide-toggle view and its children.\n this._changeDetectorRef.detectChanges();\n }\n}\nMatSlideToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggle, deps: [{ token: i0.ElementRef }, { token: i1.FocusMonitor }, { token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }, { token: MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatSlideToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSlideToggle, selector: \"mat-slide-toggle\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", color: \"color\", tabIndex: \"tabIndex\", name: \"name\", id: \"id\", labelPosition: \"labelPosition\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], ariaDescribedby: [\"aria-describedby\", \"ariaDescribedby\"], required: \"required\", checked: \"checked\" }, outputs: { change: \"change\", toggleChange: \"toggleChange\" }, host: { properties: { \"id\": \"id\", \"attr.tabindex\": \"null\", \"attr.aria-label\": \"null\", \"attr.aria-labelledby\": \"null\", \"class.mat-checked\": \"checked\", \"class.mat-disabled\": \"disabled\", \"class.mat-slide-toggle-label-before\": \"labelPosition == \\\"before\\\"\", \"class._mat-animation-noopable\": \"_noopAnimations\" }, classAttribute: \"mat-slide-toggle\" }, providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], viewQueries: [{ propertyName: \"_thumbEl\", first: true, predicate: [\"thumbContainer\"], descendants: true }, { propertyName: \"_thumbBarEl\", first: true, predicate: [\"toggleBar\"], descendants: true }, { propertyName: \"_inputElement\", first: true, predicate: [\"input\"], descendants: true }], exportAs: [\"matSlideToggle\"], usesInheritance: true, ngImport: i0, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-slide-toggle-label\\\" #label>\\n <div #toggleBar class=\\\"mat-slide-toggle-bar\\\"\\n [class.mat-slide-toggle-bar-no-side-margin]=\\\"!labelContent.textContent || !labelContent.textContent.trim()\\\">\\n\\n <input #input class=\\\"mat-slide-toggle-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n role=\\\"switch\\\"\\n [id]=\\\"inputId\\\"\\n [required]=\\\"required\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [checked]=\\\"checked\\\"\\n [disabled]=\\\"disabled\\\"\\n [attr.name]=\\\"name\\\"\\n [attr.aria-checked]=\\\"checked.toString()\\\"\\n [attr.aria-label]=\\\"ariaLabel\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onChangeEvent($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n\\n <div class=\\\"mat-slide-toggle-thumb-container\\\" #thumbContainer>\\n <div class=\\\"mat-slide-toggle-thumb\\\"></div>\\n <div class=\\\"mat-slide-toggle-ripple mat-focus-indicator\\\" mat-ripple\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n <div class=\\\"mat-ripple-element mat-slide-toggle-persistent-ripple\\\"></div>\\n </div>\\n </div>\\n\\n </div>\\n\\n <span class=\\\"mat-slide-toggle-content\\\" #labelContent (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\\n\"], directives: [{ type: i2.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i3.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggle, decorators: [{\n type: Component,\n args: [{ selector: 'mat-slide-toggle', exportAs: 'matSlideToggle', host: {\n 'class': 'mat-slide-toggle',\n '[id]': 'id',\n // Needs to be removed since it causes some a11y issues (see #21266).\n '[attr.tabindex]': 'null',\n '[attr.aria-label]': 'null',\n '[attr.aria-labelledby]': 'null',\n '[class.mat-checked]': 'checked',\n '[class.mat-disabled]': 'disabled',\n '[class.mat-slide-toggle-label-before]': 'labelPosition == \"before\"',\n '[class._mat-animation-noopable]': '_noopAnimations',\n }, providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<label [attr.for]=\\\"inputId\\\" class=\\\"mat-slide-toggle-label\\\" #label>\\n <div #toggleBar class=\\\"mat-slide-toggle-bar\\\"\\n [class.mat-slide-toggle-bar-no-side-margin]=\\\"!labelContent.textContent || !labelContent.textContent.trim()\\\">\\n\\n <input #input class=\\\"mat-slide-toggle-input cdk-visually-hidden\\\" type=\\\"checkbox\\\"\\n role=\\\"switch\\\"\\n [id]=\\\"inputId\\\"\\n [required]=\\\"required\\\"\\n [tabIndex]=\\\"tabIndex\\\"\\n [checked]=\\\"checked\\\"\\n [disabled]=\\\"disabled\\\"\\n [attr.name]=\\\"name\\\"\\n [attr.aria-checked]=\\\"checked.toString()\\\"\\n [attr.aria-label]=\\\"ariaLabel\\\"\\n [attr.aria-labelledby]=\\\"ariaLabelledby\\\"\\n [attr.aria-describedby]=\\\"ariaDescribedby\\\"\\n (change)=\\\"_onChangeEvent($event)\\\"\\n (click)=\\\"_onInputClick($event)\\\">\\n\\n <div class=\\\"mat-slide-toggle-thumb-container\\\" #thumbContainer>\\n <div class=\\\"mat-slide-toggle-thumb\\\"></div>\\n <div class=\\\"mat-slide-toggle-ripple mat-focus-indicator\\\" mat-ripple\\n [matRippleTrigger]=\\\"label\\\"\\n [matRippleDisabled]=\\\"disableRipple || disabled\\\"\\n [matRippleCentered]=\\\"true\\\"\\n [matRippleRadius]=\\\"20\\\"\\n [matRippleAnimation]=\\\"{enterDuration: _noopAnimations ? 0 : 150}\\\">\\n\\n <div class=\\\"mat-ripple-element mat-slide-toggle-persistent-ripple\\\"></div>\\n </div>\\n </div>\\n\\n </div>\\n\\n <span class=\\\"mat-slide-toggle-content\\\" #labelContent (cdkObserveContent)=\\\"_onLabelTextChange()\\\">\\n <!-- Add an invisible span so JAWS can read the label -->\\n <span style=\\\"display:none\\\"> </span>\\n <ng-content></ng-content>\\n </span>\\n</label>\\n\", styles: [\".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.FocusMonitor }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { _thumbEl: [{\n type: ViewChild,\n args: ['thumbContainer']\n }], _thumbBarEl: [{\n type: ViewChild,\n args: ['toggleBar']\n }], name: [{\n type: Input\n }], id: [{\n type: Input\n }], labelPosition: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], ariaDescribedby: [{\n type: Input,\n args: ['aria-describedby']\n }], required: [{\n type: Input\n }], checked: [{\n type: Input\n }], change: [{\n type: Output\n }], toggleChange: [{\n type: Output\n }], _inputElement: [{\n type: ViewChild,\n args: ['input']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => MatSlideToggleRequiredValidator),\n multi: true,\n};\n/**\n * Validator for Material slide-toggle components with the required attribute in a\n * template-driven form. The default validator for required form controls asserts\n * that the control value is not undefined but that is not appropriate for a slide-toggle\n * where the value is always defined.\n *\n * Required slide-toggle form controls are valid when checked.\n */\nclass MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {\n}\nMatSlideToggleRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatSlideToggleRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSlideToggleRequiredValidator, selector: \"mat-slide-toggle[required][formControlName],\\n mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]\", providers: [MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleRequiredValidator, decorators: [{\n type: Directive,\n args: [{\n selector: `mat-slide-toggle[required][formControlName],\n mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]`,\n providers: [MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** This module is used by both original and MDC-based slide-toggle implementations. */\nclass _MatSlideToggleRequiredValidatorModule {\n}\n_MatSlideToggleRequiredValidatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\n_MatSlideToggleRequiredValidatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, declarations: [MatSlideToggleRequiredValidator], exports: [MatSlideToggleRequiredValidator] });\n_MatSlideToggleRequiredValidatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatSlideToggleRequiredValidatorModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [MatSlideToggleRequiredValidator],\n declarations: [MatSlideToggleRequiredValidator],\n }]\n }] });\nclass MatSlideToggleModule {\n}\nMatSlideToggleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSlideToggleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleModule, declarations: [MatSlideToggle], imports: [_MatSlideToggleRequiredValidatorModule, MatRippleModule,\n MatCommonModule,\n ObserversModule], exports: [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, MatCommonModule] });\nMatSlideToggleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleModule, imports: [[\n _MatSlideToggleRequiredValidatorModule,\n MatRippleModule,\n MatCommonModule,\n ObserversModule,\n ], _MatSlideToggleRequiredValidatorModule, MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSlideToggleModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n _MatSlideToggleRequiredValidatorModule,\n MatRippleModule,\n MatCommonModule,\n ObserversModule,\n ],\n exports: [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, MatCommonModule],\n declarations: [MatSlideToggle],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR, MAT_SLIDE_TOGGLE_VALUE_ACCESSOR, MatSlideToggle, MatSlideToggleChange, MatSlideToggleModule, MatSlideToggleRequiredValidator, _MatSlideToggleRequiredValidatorModule };\n","import { FocusKeyManager } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Directive, InjectionToken, EventEmitter, forwardRef, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Optional, ContentChild, ViewChild, Input, Output, QueryList, ContentChildren, NgModule } from '@angular/core';\nimport { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';\nimport { Subject, of } from 'rxjs';\nimport { startWith, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CdkStepHeader {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n /** Focuses the step header. */\n focus() {\n this._elementRef.nativeElement.focus();\n }\n}\nCdkStepHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepHeader, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkStepHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStepHeader, selector: \"[cdkStepHeader]\", host: { attributes: { \"role\": \"tab\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepHeader, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkStepHeader]',\n host: {\n 'role': 'tab',\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CdkStepLabel {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkStepLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepLabel, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkStepLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStepLabel, selector: \"[cdkStepLabel]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepLabel, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkStepLabel]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Used to generate unique ID for each stepper component. */\nlet nextId = 0;\n/** Change event emitted on selection changes. */\nclass StepperSelectionEvent {\n}\n/** Enum to represent the different states of the steps. */\nconst STEP_STATE = {\n NUMBER: 'number',\n EDIT: 'edit',\n DONE: 'done',\n ERROR: 'error',\n};\n/** InjectionToken that can be used to specify the global stepper options. */\nconst STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');\nclass CdkStep {\n constructor(_stepper, stepperOptions) {\n this._stepper = _stepper;\n /** Whether user has attempted to move away from the step. */\n this.interacted = false;\n /** Emits when the user has attempted to move away from the step. */\n this.interactedStream = new EventEmitter();\n this._editable = true;\n this._optional = false;\n this._completedOverride = null;\n this._customError = null;\n this._stepperOptions = stepperOptions ? stepperOptions : {};\n this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;\n }\n /** Whether the user can return to this step once it has been marked as completed. */\n get editable() {\n return this._editable;\n }\n set editable(value) {\n this._editable = coerceBooleanProperty(value);\n }\n /** Whether the completion of step is optional. */\n get optional() {\n return this._optional;\n }\n set optional(value) {\n this._optional = coerceBooleanProperty(value);\n }\n /** Whether step is marked as completed. */\n get completed() {\n return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;\n }\n set completed(value) {\n this._completedOverride = coerceBooleanProperty(value);\n }\n _getDefaultCompleted() {\n return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;\n }\n /** Whether step has an error. */\n get hasError() {\n return this._customError == null ? this._getDefaultError() : this._customError;\n }\n set hasError(value) {\n this._customError = coerceBooleanProperty(value);\n }\n _getDefaultError() {\n return this.stepControl && this.stepControl.invalid && this.interacted;\n }\n /** Selects this step component. */\n select() {\n this._stepper.selected = this;\n }\n /** Resets the step to its initial state. Note that this includes resetting form data. */\n reset() {\n this.interacted = false;\n if (this._completedOverride != null) {\n this._completedOverride = false;\n }\n if (this._customError != null) {\n this._customError = false;\n }\n if (this.stepControl) {\n this.stepControl.reset();\n }\n }\n ngOnChanges() {\n // Since basically all inputs of the MatStep get proxied through the view down to the\n // underlying MatStepHeader, we have to make sure that change detection runs correctly.\n this._stepper._stateChanged();\n }\n _markAsInteracted() {\n if (!this.interacted) {\n this.interacted = true;\n this.interactedStream.emit(this);\n }\n }\n /** Determines whether the error state can be shown. */\n _showError() {\n var _a;\n // We want to show the error state either if the user opted into/out of it using the\n // global options, or if they've explicitly set it through the `hasError` input.\n return (_a = this._stepperOptions.showError) !== null && _a !== void 0 ? _a : this._customError != null;\n }\n}\nCdkStep.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStep, deps: [{ token: forwardRef(() => CdkStepper) }, { token: STEPPER_GLOBAL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkStep.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStep, selector: \"cdk-step\", inputs: { stepControl: \"stepControl\", label: \"label\", errorMessage: \"errorMessage\", ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"], state: \"state\", editable: \"editable\", optional: \"optional\", completed: \"completed\", hasError: \"hasError\" }, outputs: { interactedStream: \"interacted\" }, queries: [{ propertyName: \"stepLabel\", first: true, predicate: CdkStepLabel, descendants: true }], viewQueries: [{ propertyName: \"content\", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: [\"cdkStep\"], usesOnChanges: true, ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStep, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-step',\n exportAs: 'cdkStep',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n }]\n }], ctorParameters: function () {\n return [{ type: CdkStepper, decorators: [{\n type: Inject,\n args: [forwardRef(() => CdkStepper)]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [STEPPER_GLOBAL_OPTIONS]\n }] }];\n }, propDecorators: { stepLabel: [{\n type: ContentChild,\n args: [CdkStepLabel]\n }], content: [{\n type: ViewChild,\n args: [TemplateRef, { static: true }]\n }], stepControl: [{\n type: Input\n }], interactedStream: [{\n type: Output,\n args: ['interacted']\n }], label: [{\n type: Input\n }], errorMessage: [{\n type: Input\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }], state: [{\n type: Input\n }], editable: [{\n type: Input\n }], optional: [{\n type: Input\n }], completed: [{\n type: Input\n }], hasError: [{\n type: Input\n }] } });\nclass CdkStepper {\n constructor(_dir, _changeDetectorRef, _elementRef, \n /**\n * @deprecated No longer in use, to be removed.\n * @breaking-change 13.0.0\n */\n _document) {\n this._dir = _dir;\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Steps that belong to the current stepper, excluding ones from nested steppers. */\n this.steps = new QueryList();\n /** List of step headers sorted based on their DOM order. */\n this._sortedHeaders = new QueryList();\n this._linear = false;\n this._selectedIndex = 0;\n /** Event emitted when the selected step has changed. */\n this.selectionChange = new EventEmitter();\n /**\n * @deprecated To be turned into a private property. Use `orientation` instead.\n * @breaking-change 13.0.0\n */\n this._orientation = 'horizontal';\n this._groupId = nextId++;\n }\n /** Whether the validity of previous steps should be checked or not. */\n get linear() {\n return this._linear;\n }\n set linear(value) {\n this._linear = coerceBooleanProperty(value);\n }\n /** The index of the selected step. */\n get selectedIndex() {\n return this._selectedIndex;\n }\n set selectedIndex(index) {\n var _a;\n const newIndex = coerceNumberProperty(index);\n if (this.steps && this._steps) {\n // Ensure that the index can't be out of bounds.\n if (!this._isValidIndex(newIndex) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');\n }\n (_a = this.selected) === null || _a === void 0 ? void 0 : _a._markAsInteracted();\n if (this._selectedIndex !== newIndex &&\n !this._anyControlsInvalidOrPending(newIndex) &&\n (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {\n this._updateSelectedItemIndex(newIndex);\n }\n }\n else {\n this._selectedIndex = newIndex;\n }\n }\n /** The step that is selected. */\n get selected() {\n return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;\n }\n set selected(step) {\n this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;\n }\n /** Orientation of the stepper. */\n get orientation() {\n return this._orientation;\n }\n set orientation(value) {\n // This is a protected method so that `MatSteppter` can hook into it.\n this._orientation = value;\n if (this._keyManager) {\n this._keyManager.withVerticalOrientation(value === 'vertical');\n }\n }\n ngAfterContentInit() {\n this._steps.changes\n .pipe(startWith(this._steps), takeUntil(this._destroyed))\n .subscribe((steps) => {\n this.steps.reset(steps.filter(step => step._stepper === this));\n this.steps.notifyOnChanges();\n });\n }\n ngAfterViewInit() {\n // If the step headers are defined outside of the `ngFor` that renders the steps, like in the\n // Material stepper, they won't appear in the `QueryList` in the same order as they're\n // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort\n // them manually to ensure that they're correct. Alternatively, we can change the Material\n // template to inline the headers in the `ngFor`, but that'll result in a lot of\n // code duplciation. See #23539.\n this._stepHeader.changes\n .pipe(startWith(this._stepHeader), takeUntil(this._destroyed))\n .subscribe((headers) => {\n this._sortedHeaders.reset(headers.toArray().sort((a, b) => {\n const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(b._elementRef.nativeElement);\n // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n // tslint:disable-next-line:no-bitwise\n return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;\n }));\n this._sortedHeaders.notifyOnChanges();\n });\n // Note that while the step headers are content children by default, any components that\n // extend this one might have them as view children. We initialize the keyboard handling in\n // AfterViewInit so we're guaranteed for both view and content children to be defined.\n this._keyManager = new FocusKeyManager(this._sortedHeaders)\n .withWrap()\n .withHomeAndEnd()\n .withVerticalOrientation(this._orientation === 'vertical');\n (this._dir ? this._dir.change : of())\n .pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))\n .subscribe(direction => this._keyManager.withHorizontalOrientation(direction));\n this._keyManager.updateActiveItem(this._selectedIndex);\n // No need to `takeUntil` here, because we're the ones destroying `steps`.\n this.steps.changes.subscribe(() => {\n if (!this.selected) {\n this._selectedIndex = Math.max(this._selectedIndex - 1, 0);\n }\n });\n // The logic which asserts that the selected index is within bounds doesn't run before the\n // steps are initialized, because we don't how many steps there are yet so we may have an\n // invalid index on init. If that's the case, auto-correct to the default so we don't throw.\n if (!this._isValidIndex(this._selectedIndex)) {\n this._selectedIndex = 0;\n }\n }\n ngOnDestroy() {\n this.steps.destroy();\n this._sortedHeaders.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Selects and focuses the next step in list. */\n next() {\n this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);\n }\n /** Selects and focuses the previous step in list. */\n previous() {\n this.selectedIndex = Math.max(this._selectedIndex - 1, 0);\n }\n /** Resets the stepper to its initial state. Note that this includes clearing form data. */\n reset() {\n this._updateSelectedItemIndex(0);\n this.steps.forEach(step => step.reset());\n this._stateChanged();\n }\n /** Returns a unique id for each step label element. */\n _getStepLabelId(i) {\n return `cdk-step-label-${this._groupId}-${i}`;\n }\n /** Returns unique id for each step content element. */\n _getStepContentId(i) {\n return `cdk-step-content-${this._groupId}-${i}`;\n }\n /** Marks the component to be change detected. */\n _stateChanged() {\n this._changeDetectorRef.markForCheck();\n }\n /** Returns position state of the step with the given index. */\n _getAnimationDirection(index) {\n const position = index - this._selectedIndex;\n if (position < 0) {\n return this._layoutDirection() === 'rtl' ? 'next' : 'previous';\n }\n else if (position > 0) {\n return this._layoutDirection() === 'rtl' ? 'previous' : 'next';\n }\n return 'current';\n }\n /** Returns the type of icon to be displayed. */\n _getIndicatorType(index, state = STEP_STATE.NUMBER) {\n const step = this.steps.toArray()[index];\n const isCurrentStep = this._isCurrentStep(index);\n return step._displayDefaultIndicatorType\n ? this._getDefaultIndicatorLogic(step, isCurrentStep)\n : this._getGuidelineLogic(step, isCurrentStep, state);\n }\n _getDefaultIndicatorLogic(step, isCurrentStep) {\n if (step._showError() && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (!step.completed || isCurrentStep) {\n return STEP_STATE.NUMBER;\n }\n else {\n return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;\n }\n }\n _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {\n if (step._showError() && step.hasError && !isCurrentStep) {\n return STEP_STATE.ERROR;\n }\n else if (step.completed && !isCurrentStep) {\n return STEP_STATE.DONE;\n }\n else if (step.completed && isCurrentStep) {\n return state;\n }\n else if (step.editable && isCurrentStep) {\n return STEP_STATE.EDIT;\n }\n else {\n return state;\n }\n }\n _isCurrentStep(index) {\n return this._selectedIndex === index;\n }\n /** Returns the index of the currently-focused step header. */\n _getFocusIndex() {\n return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;\n }\n _updateSelectedItemIndex(newIndex) {\n const stepsArray = this.steps.toArray();\n this.selectionChange.emit({\n selectedIndex: newIndex,\n previouslySelectedIndex: this._selectedIndex,\n selectedStep: stepsArray[newIndex],\n previouslySelectedStep: stepsArray[this._selectedIndex],\n });\n // If focus is inside the stepper, move it to the next header, otherwise it may become\n // lost when the active step content is hidden. We can't be more granular with the check\n // (e.g. checking whether focus is inside the active step), because we don't have a\n // reference to the elements that are rendering out the content.\n this._containsFocus()\n ? this._keyManager.setActiveItem(newIndex)\n : this._keyManager.updateActiveItem(newIndex);\n this._selectedIndex = newIndex;\n this._stateChanged();\n }\n _onKeydown(event) {\n const hasModifier = hasModifierKey(event);\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n if (manager.activeItemIndex != null &&\n !hasModifier &&\n (keyCode === SPACE || keyCode === ENTER)) {\n this.selectedIndex = manager.activeItemIndex;\n event.preventDefault();\n }\n else {\n manager.onKeydown(event);\n }\n }\n _anyControlsInvalidOrPending(index) {\n if (this._linear && index >= 0) {\n return this.steps\n .toArray()\n .slice(0, index)\n .some(step => {\n const control = step.stepControl;\n const isIncomplete = control\n ? control.invalid || control.pending || !step.interacted\n : !step.completed;\n return isIncomplete && !step.optional && !step._completedOverride;\n });\n }\n return false;\n }\n _layoutDirection() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Checks whether the stepper contains the focused element. */\n _containsFocus() {\n const stepperElement = this._elementRef.nativeElement;\n const focusedElement = _getFocusedElementPierceShadowDom();\n return stepperElement === focusedElement || stepperElement.contains(focusedElement);\n }\n /** Checks whether the passed-in index is a valid step index. */\n _isValidIndex(index) {\n return index > -1 && (!this.steps || index < this.steps.length);\n }\n}\nCdkStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepper, deps: [{ token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nCdkStepper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStepper, selector: \"[cdkStepper]\", inputs: { linear: \"linear\", selectedIndex: \"selectedIndex\", selected: \"selected\", orientation: \"orientation\" }, outputs: { selectionChange: \"selectionChange\" }, queries: [{ propertyName: \"_steps\", predicate: CdkStep, descendants: true }, { propertyName: \"_stepHeader\", predicate: CdkStepHeader, descendants: true }], exportAs: [\"cdkStepper\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepper, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkStepper]',\n exportAs: 'cdkStepper',\n }]\n }], ctorParameters: function () {\n return [{ type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { _steps: [{\n type: ContentChildren,\n args: [CdkStep, { descendants: true }]\n }], _stepHeader: [{\n type: ContentChildren,\n args: [CdkStepHeader, { descendants: true }]\n }], linear: [{\n type: Input\n }], selectedIndex: [{\n type: Input\n }], selected: [{\n type: Input\n }], selectionChange: [{\n type: Output\n }], orientation: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Button that moves to the next step in a stepper workflow. */\nclass CdkStepperNext {\n constructor(_stepper) {\n this._stepper = _stepper;\n /** Type of the next button. Defaults to \"submit\" if not specified. */\n this.type = 'submit';\n }\n}\nCdkStepperNext.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperNext, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });\nCdkStepperNext.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStepperNext, selector: \"button[cdkStepperNext]\", inputs: { type: \"type\" }, host: { listeners: { \"click\": \"_stepper.next()\" }, properties: { \"type\": \"type\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperNext, decorators: [{\n type: Directive,\n args: [{\n selector: 'button[cdkStepperNext]',\n host: {\n '[type]': 'type',\n '(click)': '_stepper.next()',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{\n type: Input\n }] } });\n/** Button that moves to the previous step in a stepper workflow. */\nclass CdkStepperPrevious {\n constructor(_stepper) {\n this._stepper = _stepper;\n /** Type of the previous button. Defaults to \"button\" if not specified. */\n this.type = 'button';\n }\n}\nCdkStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperPrevious, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });\nCdkStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkStepperPrevious, selector: \"button[cdkStepperPrevious]\", inputs: { type: \"type\" }, host: { listeners: { \"click\": \"_stepper.previous()\" }, properties: { \"type\": \"type\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperPrevious, decorators: [{\n type: Directive,\n args: [{\n selector: 'button[cdkStepperPrevious]',\n host: {\n '[type]': 'type',\n '(click)': '_stepper.previous()',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CdkStepperModule {\n}\nCdkStepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperModule, declarations: [CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious], imports: [BidiModule], exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious] });\nCdkStepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperModule, imports: [[BidiModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkStepperModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [BidiModule],\n exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],\n declarations: [\n CdkStep,\n CdkStepper,\n CdkStepHeader,\n CdkStepLabel,\n CdkStepperNext,\n CdkStepperPrevious,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkStep, CdkStepHeader, CdkStepLabel, CdkStepper, CdkStepperModule, CdkStepperNext, CdkStepperPrevious, STEPPER_GLOBAL_OPTIONS, STEP_STATE, StepperSelectionEvent };\n","import * as i2$1 from '@angular/cdk/portal';\nimport { TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport { CdkStepLabel, CdkStepHeader, CdkStep, STEPPER_GLOBAL_OPTIONS, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepperModule } from '@angular/cdk/stepper';\nimport * as i5 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Directive, Injectable, Optional, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, forwardRef, Inject, ContentChild, QueryList, EventEmitter, ViewChildren, ContentChildren, Output, NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport * as i1 from '@angular/material/core';\nimport { mixinColor, ErrorStateMatcher, MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport * as i3 from '@angular/material/icon';\nimport { MatIconModule } from '@angular/material/icon';\nimport { Subject, Subscription } from 'rxjs';\nimport * as i2 from '@angular/cdk/a11y';\nimport { switchMap, map, startWith, takeUntil, distinctUntilChanged } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i3$1 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatStepLabel extends CdkStepLabel {\n}\nMatStepLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepLabel, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatStepLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepLabel, selector: \"[matStepLabel]\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepLabel, decorators: [{\n type: Directive,\n args: [{\n selector: '[matStepLabel]',\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Stepper data that is required for internationalization. */\nclass MatStepperIntl {\n constructor() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new Subject();\n /** Label that is rendered below optional steps. */\n this.optionalLabel = 'Optional';\n /** Label that is used to indicate step as completed to screen readers. */\n this.completedLabel = 'Completed';\n /** Label that is used to indicate step as editable to screen readers. */\n this.editableLabel = 'Editable';\n }\n}\nMatStepperIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMatStepperIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperIntl, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperIntl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/** @docs-private */\nfunction MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl) {\n return parentIntl || new MatStepperIntl();\n}\n/** @docs-private */\nconst MAT_STEPPER_INTL_PROVIDER = {\n provide: MatStepperIntl,\n deps: [[new Optional(), new SkipSelf(), MatStepperIntl]],\n useFactory: MAT_STEPPER_INTL_PROVIDER_FACTORY,\n};\n\n// Boilerplate for applying mixins to MatStepHeader.\n/** @docs-private */\nconst _MatStepHeaderBase = mixinColor(class MatStepHeaderBase extends CdkStepHeader {\n constructor(elementRef) {\n super(elementRef);\n }\n}, 'primary');\nclass MatStepHeader extends _MatStepHeaderBase {\n constructor(_intl, _focusMonitor, _elementRef, changeDetectorRef) {\n super(_elementRef);\n this._intl = _intl;\n this._focusMonitor = _focusMonitor;\n this._intlSubscription = _intl.changes.subscribe(() => changeDetectorRef.markForCheck());\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._elementRef, true);\n }\n ngOnDestroy() {\n this._intlSubscription.unsubscribe();\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n /** Focuses the step header. */\n focus(origin, options) {\n if (origin) {\n this._focusMonitor.focusVia(this._elementRef, origin, options);\n }\n else {\n this._elementRef.nativeElement.focus(options);\n }\n }\n /** Returns string label of given step if it is a text label. */\n _stringLabel() {\n return this.label instanceof MatStepLabel ? null : this.label;\n }\n /** Returns MatStepLabel if the label of given step is a template label. */\n _templateLabel() {\n return this.label instanceof MatStepLabel ? this.label : null;\n }\n /** Returns the host HTML element. */\n _getHostElement() {\n return this._elementRef.nativeElement;\n }\n /** Template context variables that are exposed to the `matStepperIcon` instances. */\n _getIconContext() {\n return {\n index: this.index,\n active: this.active,\n optional: this.optional,\n };\n }\n _getDefaultTextForState(state) {\n if (state == 'number') {\n return `${this.index + 1}`;\n }\n if (state == 'edit') {\n return 'create';\n }\n if (state == 'error') {\n return 'warning';\n }\n return state;\n }\n}\nMatStepHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepHeader, deps: [{ token: MatStepperIntl }, { token: i2.FocusMonitor }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatStepHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepHeader, selector: \"mat-step-header\", inputs: { color: \"color\", state: \"state\", label: \"label\", errorMessage: \"errorMessage\", iconOverrides: \"iconOverrides\", index: \"index\", selected: \"selected\", active: \"active\", optional: \"optional\", disableRipple: \"disableRipple\" }, host: { attributes: { \"role\": \"tab\" }, classAttribute: \"mat-step-header\" }, usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-step-header-ripple mat-focus-indicator\\\" matRipple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"disableRipple\\\"></div>\\n\\n<div class=\\\"mat-step-icon-state-{{state}} mat-step-icon\\\" [class.mat-step-icon-selected]=\\\"selected\\\">\\n <div class=\\\"mat-step-icon-content\\\" [ngSwitch]=\\\"!!(iconOverrides && iconOverrides[state])\\\">\\n <ng-container\\n *ngSwitchCase=\\\"true\\\"\\n [ngTemplateOutlet]=\\\"iconOverrides[state]\\\"\\n [ngTemplateOutletContext]=\\\"_getIconContext()\\\"></ng-container>\\n <ng-container *ngSwitchDefault [ngSwitch]=\\\"state\\\">\\n <span aria-hidden=\\\"true\\\" *ngSwitchCase=\\\"'number'\\\">{{_getDefaultTextForState(state)}}</span>\\n <span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"state === 'done'\\\">{{_intl.completedLabel}}</span>\\n <span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"state === 'edit'\\\">{{_intl.editableLabel}}</span>\\n <mat-icon aria-hidden=\\\"true\\\" *ngSwitchDefault>{{_getDefaultTextForState(state)}}</mat-icon>\\n </ng-container>\\n </div>\\n</div>\\n<div class=\\\"mat-step-label\\\"\\n [class.mat-step-label-active]=\\\"active\\\"\\n [class.mat-step-label-selected]=\\\"selected\\\"\\n [class.mat-step-label-error]=\\\"state == 'error'\\\">\\n <!-- If there is a label template, use it. -->\\n <div class=\\\"mat-step-text-label\\\" *ngIf=\\\"_templateLabel()\\\">\\n <ng-container [ngTemplateOutlet]=\\\"_templateLabel()!.template\\\"></ng-container>\\n </div>\\n <!-- If there is no label template, fall back to the text label. -->\\n <div class=\\\"mat-step-text-label\\\" *ngIf=\\\"_stringLabel()\\\">{{label}}</div>\\n\\n <div class=\\\"mat-step-optional\\\" *ngIf=\\\"optional && state != 'error'\\\">{{_intl.optionalLabel}}</div>\\n <div class=\\\"mat-step-sub-label-error\\\" *ngIf=\\\"state == 'error'\\\">{{errorMessage}}</div>\\n</div>\\n\\n\", styles: [\".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\\n\"], components: [{ type: i3.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }], directives: [{ type: i1.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i5.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i5.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { type: i5.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }, { type: i5.NgSwitchDefault, selector: \"[ngSwitchDefault]\" }, { type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-step-header', inputs: ['color'], host: {\n 'class': 'mat-step-header',\n 'role': 'tab',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-step-header-ripple mat-focus-indicator\\\" matRipple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"disableRipple\\\"></div>\\n\\n<div class=\\\"mat-step-icon-state-{{state}} mat-step-icon\\\" [class.mat-step-icon-selected]=\\\"selected\\\">\\n <div class=\\\"mat-step-icon-content\\\" [ngSwitch]=\\\"!!(iconOverrides && iconOverrides[state])\\\">\\n <ng-container\\n *ngSwitchCase=\\\"true\\\"\\n [ngTemplateOutlet]=\\\"iconOverrides[state]\\\"\\n [ngTemplateOutletContext]=\\\"_getIconContext()\\\"></ng-container>\\n <ng-container *ngSwitchDefault [ngSwitch]=\\\"state\\\">\\n <span aria-hidden=\\\"true\\\" *ngSwitchCase=\\\"'number'\\\">{{_getDefaultTextForState(state)}}</span>\\n <span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"state === 'done'\\\">{{_intl.completedLabel}}</span>\\n <span class=\\\"cdk-visually-hidden\\\" *ngIf=\\\"state === 'edit'\\\">{{_intl.editableLabel}}</span>\\n <mat-icon aria-hidden=\\\"true\\\" *ngSwitchDefault>{{_getDefaultTextForState(state)}}</mat-icon>\\n </ng-container>\\n </div>\\n</div>\\n<div class=\\\"mat-step-label\\\"\\n [class.mat-step-label-active]=\\\"active\\\"\\n [class.mat-step-label-selected]=\\\"selected\\\"\\n [class.mat-step-label-error]=\\\"state == 'error'\\\">\\n <!-- If there is a label template, use it. -->\\n <div class=\\\"mat-step-text-label\\\" *ngIf=\\\"_templateLabel()\\\">\\n <ng-container [ngTemplateOutlet]=\\\"_templateLabel()!.template\\\"></ng-container>\\n </div>\\n <!-- If there is no label template, fall back to the text label. -->\\n <div class=\\\"mat-step-text-label\\\" *ngIf=\\\"_stringLabel()\\\">{{label}}</div>\\n\\n <div class=\\\"mat-step-optional\\\" *ngIf=\\\"optional && state != 'error'\\\">{{_intl.optionalLabel}}</div>\\n <div class=\\\"mat-step-sub-label-error\\\" *ngIf=\\\"state == 'error'\\\">{{errorMessage}}</div>\\n</div>\\n\\n\", styles: [\".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\\n\"] }]\n }], ctorParameters: function () { return [{ type: MatStepperIntl }, { type: i2.FocusMonitor }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { state: [{\n type: Input\n }], label: [{\n type: Input\n }], errorMessage: [{\n type: Input\n }], iconOverrides: [{\n type: Input\n }], index: [{\n type: Input\n }], selected: [{\n type: Input\n }], active: [{\n type: Input\n }], optional: [{\n type: Input\n }], disableRipple: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material steppers.\n * @docs-private\n */\nconst matStepperAnimations = {\n /** Animation that transitions the step along the X axis in a horizontal stepper. */\n horizontalStepTransition: trigger('horizontalStepTransition', [\n state('previous', style({ transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden' })),\n // Transition to `inherit`, rather than `visible`,\n // because visibility on a child element the one from the parent,\n // making this element focusable inside of a `hidden` element.\n state('current', style({ transform: 'none', visibility: 'inherit' })),\n state('next', style({ transform: 'translate3d(100%, 0, 0)', visibility: 'hidden' })),\n transition('* => *', animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')),\n ]),\n /** Animation that transitions the step along the Y axis in a vertical stepper. */\n verticalStepTransition: trigger('verticalStepTransition', [\n state('previous', style({ height: '0px', visibility: 'hidden' })),\n state('next', style({ height: '0px', visibility: 'hidden' })),\n // Transition to `inherit`, rather than `visible`,\n // because visibility on a child element the one from the parent,\n // making this element focusable inside of a `hidden` element.\n state('current', style({ height: '*', visibility: 'inherit' })),\n transition('* <=> current', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Template to be used to override the icons inside the step header.\n */\nclass MatStepperIcon {\n constructor(templateRef) {\n this.templateRef = templateRef;\n }\n}\nMatStepperIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperIcon, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatStepperIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepperIcon, selector: \"ng-template[matStepperIcon]\", inputs: { name: [\"matStepperIcon\", \"name\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperIcon, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matStepperIcon]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{\n type: Input,\n args: ['matStepperIcon']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Content for a `mat-step` that will be rendered lazily.\n */\nclass MatStepContent {\n constructor(_template) {\n this._template = _template;\n }\n}\nMatStepContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatStepContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepContent, selector: \"ng-template[matStepContent]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepContent, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matStepContent]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\nclass MatStep extends CdkStep {\n constructor(stepper, _errorStateMatcher, _viewContainerRef, stepperOptions) {\n super(stepper, stepperOptions);\n this._errorStateMatcher = _errorStateMatcher;\n this._viewContainerRef = _viewContainerRef;\n this._isSelected = Subscription.EMPTY;\n }\n ngAfterContentInit() {\n this._isSelected = this._stepper.steps.changes\n .pipe(switchMap(() => {\n return this._stepper.selectionChange.pipe(map(event => event.selectedStep === this), startWith(this._stepper.selected === this));\n }))\n .subscribe(isSelected => {\n if (isSelected && this._lazyContent && !this._portal) {\n this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);\n }\n });\n }\n ngOnDestroy() {\n this._isSelected.unsubscribe();\n }\n /** Custom error state matcher that additionally checks for validity of interacted form. */\n isErrorState(control, form) {\n const originalErrorState = this._errorStateMatcher.isErrorState(control, form);\n // Custom error state checks for the validity of form that is not submitted or touched\n // since user can trigger a form change by calling for another step without directly\n // interacting with the current form.\n const customErrorState = !!(control && control.invalid && this.interacted);\n return originalErrorState || customErrorState;\n }\n}\nMatStep.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStep, deps: [{ token: forwardRef(() => MatStepper) }, { token: i1.ErrorStateMatcher, skipSelf: true }, { token: i0.ViewContainerRef }, { token: STEPPER_GLOBAL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatStep.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStep, selector: \"mat-step\", inputs: { color: \"color\" }, providers: [\n { provide: ErrorStateMatcher, useExisting: MatStep },\n { provide: CdkStep, useExisting: MatStep },\n ], queries: [{ propertyName: \"stepLabel\", first: true, predicate: MatStepLabel, descendants: true }, { propertyName: \"_lazyContent\", first: true, predicate: MatStepContent, descendants: true }], exportAs: [\"matStep\"], usesInheritance: true, ngImport: i0, template: \"<ng-template>\\n <ng-content></ng-content>\\n <ng-template [cdkPortalOutlet]=\\\"_portal\\\"></ng-template>\\n</ng-template>\\n\", directives: [{ type: i2$1.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStep, decorators: [{\n type: Component,\n args: [{ selector: 'mat-step', providers: [\n { provide: ErrorStateMatcher, useExisting: MatStep },\n { provide: CdkStep, useExisting: MatStep },\n ], encapsulation: ViewEncapsulation.None, exportAs: 'matStep', changeDetection: ChangeDetectionStrategy.OnPush, template: \"<ng-template>\\n <ng-content></ng-content>\\n <ng-template [cdkPortalOutlet]=\\\"_portal\\\"></ng-template>\\n</ng-template>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: MatStepper, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatStepper)]\n }] }, { type: i1.ErrorStateMatcher, decorators: [{\n type: SkipSelf\n }] }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [STEPPER_GLOBAL_OPTIONS]\n }] }];\n }, propDecorators: { stepLabel: [{\n type: ContentChild,\n args: [MatStepLabel]\n }], color: [{\n type: Input\n }], _lazyContent: [{\n type: ContentChild,\n args: [MatStepContent, { static: false }]\n }] } });\n/**\n * Proxies the public APIs from `MatStepper` to the deprecated `MatHorizontalStepper` and\n * `MatVerticalStepper`.\n * @deprecated Use `MatStepper` instead.\n * @breaking-change 13.0.0\n * @docs-private\n */\nclass _MatProxyStepperBase extends CdkStepper {\n}\n_MatProxyStepperBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatProxyStepperBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });\n_MatProxyStepperBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatProxyStepperBase, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatProxyStepperBase, decorators: [{\n type: Directive\n }] });\n/**\n * @deprecated Use `MatStepper` instead.\n * @breaking-change 13.0.0\n */\nclass MatHorizontalStepper extends _MatProxyStepperBase {\n}\nMatHorizontalStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHorizontalStepper, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHorizontalStepper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHorizontalStepper, selector: \"mat-horizontal-stepper\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHorizontalStepper, decorators: [{\n type: Directive,\n args: [{ selector: 'mat-horizontal-stepper' }]\n }] });\n/**\n * @deprecated Use `MatStepper` instead.\n * @breaking-change 13.0.0\n */\nclass MatVerticalStepper extends _MatProxyStepperBase {\n}\nMatVerticalStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatVerticalStepper, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatVerticalStepper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatVerticalStepper, selector: \"mat-vertical-stepper\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatVerticalStepper, decorators: [{\n type: Directive,\n args: [{ selector: 'mat-vertical-stepper' }]\n }] });\nclass MatStepper extends CdkStepper {\n constructor(dir, changeDetectorRef, elementRef, _document) {\n super(dir, changeDetectorRef, elementRef, _document);\n /** Steps that belong to the current stepper, excluding ones from nested steppers. */\n this.steps = new QueryList();\n /** Event emitted when the current step is done transitioning in. */\n this.animationDone = new EventEmitter();\n /**\n * Whether the label should display in bottom or end position.\n * Only applies in the `horizontal` orientation.\n */\n this.labelPosition = 'end';\n /** Consumer-specified template-refs to be used to override the header icons. */\n this._iconOverrides = {};\n /** Stream of animation `done` events when the body expands/collapses. */\n this._animationDone = new Subject();\n const nodeName = elementRef.nativeElement.nodeName.toLowerCase();\n this.orientation = nodeName === 'mat-vertical-stepper' ? 'vertical' : 'horizontal';\n }\n ngAfterContentInit() {\n super.ngAfterContentInit();\n this._icons.forEach(({ name, templateRef }) => (this._iconOverrides[name] = templateRef));\n // Mark the component for change detection whenever the content children query changes\n this.steps.changes.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._stateChanged();\n });\n this._animationDone\n .pipe(\n // This needs a `distinctUntilChanged` in order to avoid emitting the same event twice due\n // to a bug in animations where the `.done` callback gets invoked twice on some browsers.\n // See https://github.com/angular/angular/issues/24084\n distinctUntilChanged((x, y) => x.fromState === y.fromState && x.toState === y.toState), takeUntil(this._destroyed))\n .subscribe(event => {\n if (event.toState === 'current') {\n this.animationDone.emit();\n }\n });\n }\n _stepIsNavigable(index, step) {\n return step.completed || this.selectedIndex === index || !this.linear;\n }\n}\nMatStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepper, deps: [{ token: i3$1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });\nMatStepper.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepper, selector: \"mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]\", inputs: { selectedIndex: \"selectedIndex\", disableRipple: \"disableRipple\", color: \"color\", labelPosition: \"labelPosition\" }, outputs: { animationDone: \"animationDone\" }, host: { attributes: { \"role\": \"tablist\" }, properties: { \"class.mat-stepper-horizontal\": \"orientation === \\\"horizontal\\\"\", \"class.mat-stepper-vertical\": \"orientation === \\\"vertical\\\"\", \"class.mat-stepper-label-position-end\": \"orientation === \\\"horizontal\\\" && labelPosition == \\\"end\\\"\", \"class.mat-stepper-label-position-bottom\": \"orientation === \\\"horizontal\\\" && labelPosition == \\\"bottom\\\"\", \"attr.aria-orientation\": \"orientation\" } }, providers: [\n { provide: CdkStepper, useExisting: MatStepper },\n { provide: MatHorizontalStepper, useExisting: MatStepper },\n { provide: MatVerticalStepper, useExisting: MatStepper },\n ], queries: [{ propertyName: \"_steps\", predicate: MatStep, descendants: true }, { propertyName: \"_icons\", predicate: MatStepperIcon, descendants: true }], viewQueries: [{ propertyName: \"_stepHeader\", predicate: MatStepHeader, descendants: true }], exportAs: [\"matStepper\", \"matVerticalStepper\", \"matHorizontalStepper\"], usesInheritance: true, ngImport: i0, template: \"<ng-container [ngSwitch]=\\\"orientation\\\">\\n <!-- Horizontal stepper -->\\n <ng-container *ngSwitchCase=\\\"'horizontal'\\\">\\n <div class=\\\"mat-horizontal-stepper-header-container\\\">\\n <ng-container *ngFor=\\\"let step of steps; let i = index; let isLast = last\\\">\\n <ng-container\\n [ngTemplateOutlet]=\\\"stepTemplate\\\"\\n [ngTemplateOutletContext]=\\\"{step: step, i: i}\\\"></ng-container>\\n <div *ngIf=\\\"!isLast\\\" class=\\\"mat-stepper-horizontal-line\\\"></div>\\n </ng-container>\\n </div>\\n\\n <div class=\\\"mat-horizontal-content-container\\\">\\n <div *ngFor=\\\"let step of steps; let i = index\\\"\\n class=\\\"mat-horizontal-stepper-content\\\" role=\\\"tabpanel\\\"\\n [@horizontalStepTransition]=\\\"_getAnimationDirection(i)\\\"\\n (@horizontalStepTransition.done)=\\\"_animationDone.next($event)\\\"\\n [id]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-labelledby]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-expanded]=\\\"selectedIndex === i\\\">\\n <ng-container [ngTemplateOutlet]=\\\"step.content\\\"></ng-container>\\n </div>\\n </div>\\n </ng-container>\\n\\n <!-- Vertical stepper -->\\n <ng-container *ngSwitchCase=\\\"'vertical'\\\">\\n <div class=\\\"mat-step\\\" *ngFor=\\\"let step of steps; let i = index; let isLast = last\\\">\\n <ng-container\\n [ngTemplateOutlet]=\\\"stepTemplate\\\"\\n [ngTemplateOutletContext]=\\\"{step: step, i: i}\\\"></ng-container>\\n <div class=\\\"mat-vertical-content-container\\\" [class.mat-stepper-vertical-line]=\\\"!isLast\\\">\\n <div class=\\\"mat-vertical-stepper-content\\\" role=\\\"tabpanel\\\"\\n [@verticalStepTransition]=\\\"_getAnimationDirection(i)\\\"\\n (@verticalStepTransition.done)=\\\"_animationDone.next($event)\\\"\\n [id]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-labelledby]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-expanded]=\\\"selectedIndex === i\\\">\\n <div class=\\\"mat-vertical-content\\\">\\n <ng-container [ngTemplateOutlet]=\\\"step.content\\\"></ng-container>\\n </div>\\n </div>\\n </div>\\n </div>\\n </ng-container>\\n\\n</ng-container>\\n\\n<!-- Common step templating -->\\n<ng-template let-step=\\\"step\\\" let-i=\\\"i\\\" #stepTemplate>\\n <mat-step-header\\n [class.mat-horizontal-stepper-header]=\\\"orientation === 'horizontal'\\\"\\n [class.mat-vertical-stepper-header]=\\\"orientation === 'vertical'\\\"\\n (click)=\\\"step.select()\\\"\\n (keydown)=\\\"_onKeydown($event)\\\"\\n [tabIndex]=\\\"_getFocusIndex() === i ? 0 : -1\\\"\\n [id]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-posinset]=\\\"i + 1\\\"\\n [attr.aria-setsize]=\\\"steps.length\\\"\\n [attr.aria-controls]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-selected]=\\\"selectedIndex == i\\\"\\n [attr.aria-label]=\\\"step.ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\\\"\\n [attr.aria-disabled]=\\\"_stepIsNavigable(i, step) ? null : true\\\"\\n [index]=\\\"i\\\"\\n [state]=\\\"_getIndicatorType(i, step.state)\\\"\\n [label]=\\\"step.stepLabel || step.label\\\"\\n [selected]=\\\"selectedIndex === i\\\"\\n [active]=\\\"_stepIsNavigable(i, step)\\\"\\n [optional]=\\\"step.optional\\\"\\n [errorMessage]=\\\"step.errorMessage\\\"\\n [iconOverrides]=\\\"_iconOverrides\\\"\\n [disableRipple]=\\\"disableRipple || !_stepIsNavigable(i, step)\\\"\\n [color]=\\\"step.color || color\\\"></mat-step-header>\\n</ng-template>\\n\", styles: [\".mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\\\"\\\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:\\\"\\\";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\\n\"], components: [{ type: MatStepHeader, selector: \"mat-step-header\", inputs: [\"color\", \"state\", \"label\", \"errorMessage\", \"iconOverrides\", \"index\", \"selected\", \"active\", \"optional\", \"disableRipple\"] }], directives: [{ type: i5.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i5.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }, { type: i5.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i5.NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: [\"ngTemplateOutletContext\", \"ngTemplateOutlet\"] }, { type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [\n matStepperAnimations.horizontalStepTransition,\n matStepperAnimations.verticalStepTransition,\n ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepper, decorators: [{\n type: Component,\n args: [{ selector: 'mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]', exportAs: 'matStepper, matVerticalStepper, matHorizontalStepper', inputs: ['selectedIndex'], host: {\n '[class.mat-stepper-horizontal]': 'orientation === \"horizontal\"',\n '[class.mat-stepper-vertical]': 'orientation === \"vertical\"',\n '[class.mat-stepper-label-position-end]': 'orientation === \"horizontal\" && labelPosition == \"end\"',\n '[class.mat-stepper-label-position-bottom]': 'orientation === \"horizontal\" && labelPosition == \"bottom\"',\n '[attr.aria-orientation]': 'orientation',\n 'role': 'tablist',\n }, animations: [\n matStepperAnimations.horizontalStepTransition,\n matStepperAnimations.verticalStepTransition,\n ], providers: [\n { provide: CdkStepper, useExisting: MatStepper },\n { provide: MatHorizontalStepper, useExisting: MatStepper },\n { provide: MatVerticalStepper, useExisting: MatStepper },\n ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<ng-container [ngSwitch]=\\\"orientation\\\">\\n <!-- Horizontal stepper -->\\n <ng-container *ngSwitchCase=\\\"'horizontal'\\\">\\n <div class=\\\"mat-horizontal-stepper-header-container\\\">\\n <ng-container *ngFor=\\\"let step of steps; let i = index; let isLast = last\\\">\\n <ng-container\\n [ngTemplateOutlet]=\\\"stepTemplate\\\"\\n [ngTemplateOutletContext]=\\\"{step: step, i: i}\\\"></ng-container>\\n <div *ngIf=\\\"!isLast\\\" class=\\\"mat-stepper-horizontal-line\\\"></div>\\n </ng-container>\\n </div>\\n\\n <div class=\\\"mat-horizontal-content-container\\\">\\n <div *ngFor=\\\"let step of steps; let i = index\\\"\\n class=\\\"mat-horizontal-stepper-content\\\" role=\\\"tabpanel\\\"\\n [@horizontalStepTransition]=\\\"_getAnimationDirection(i)\\\"\\n (@horizontalStepTransition.done)=\\\"_animationDone.next($event)\\\"\\n [id]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-labelledby]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-expanded]=\\\"selectedIndex === i\\\">\\n <ng-container [ngTemplateOutlet]=\\\"step.content\\\"></ng-container>\\n </div>\\n </div>\\n </ng-container>\\n\\n <!-- Vertical stepper -->\\n <ng-container *ngSwitchCase=\\\"'vertical'\\\">\\n <div class=\\\"mat-step\\\" *ngFor=\\\"let step of steps; let i = index; let isLast = last\\\">\\n <ng-container\\n [ngTemplateOutlet]=\\\"stepTemplate\\\"\\n [ngTemplateOutletContext]=\\\"{step: step, i: i}\\\"></ng-container>\\n <div class=\\\"mat-vertical-content-container\\\" [class.mat-stepper-vertical-line]=\\\"!isLast\\\">\\n <div class=\\\"mat-vertical-stepper-content\\\" role=\\\"tabpanel\\\"\\n [@verticalStepTransition]=\\\"_getAnimationDirection(i)\\\"\\n (@verticalStepTransition.done)=\\\"_animationDone.next($event)\\\"\\n [id]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-labelledby]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-expanded]=\\\"selectedIndex === i\\\">\\n <div class=\\\"mat-vertical-content\\\">\\n <ng-container [ngTemplateOutlet]=\\\"step.content\\\"></ng-container>\\n </div>\\n </div>\\n </div>\\n </div>\\n </ng-container>\\n\\n</ng-container>\\n\\n<!-- Common step templating -->\\n<ng-template let-step=\\\"step\\\" let-i=\\\"i\\\" #stepTemplate>\\n <mat-step-header\\n [class.mat-horizontal-stepper-header]=\\\"orientation === 'horizontal'\\\"\\n [class.mat-vertical-stepper-header]=\\\"orientation === 'vertical'\\\"\\n (click)=\\\"step.select()\\\"\\n (keydown)=\\\"_onKeydown($event)\\\"\\n [tabIndex]=\\\"_getFocusIndex() === i ? 0 : -1\\\"\\n [id]=\\\"_getStepLabelId(i)\\\"\\n [attr.aria-posinset]=\\\"i + 1\\\"\\n [attr.aria-setsize]=\\\"steps.length\\\"\\n [attr.aria-controls]=\\\"_getStepContentId(i)\\\"\\n [attr.aria-selected]=\\\"selectedIndex == i\\\"\\n [attr.aria-label]=\\\"step.ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null\\\"\\n [attr.aria-disabled]=\\\"_stepIsNavigable(i, step) ? null : true\\\"\\n [index]=\\\"i\\\"\\n [state]=\\\"_getIndicatorType(i, step.state)\\\"\\n [label]=\\\"step.stepLabel || step.label\\\"\\n [selected]=\\\"selectedIndex === i\\\"\\n [active]=\\\"_stepIsNavigable(i, step)\\\"\\n [optional]=\\\"step.optional\\\"\\n [errorMessage]=\\\"step.errorMessage\\\"\\n [iconOverrides]=\\\"_iconOverrides\\\"\\n [disableRipple]=\\\"disableRipple || !_stepIsNavigable(i, step)\\\"\\n [color]=\\\"step.color || color\\\"></mat-step-header>\\n</ng-template>\\n\", styles: [\".mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:\\\"\\\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:\\\"\\\";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i3$1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { _stepHeader: [{\n type: ViewChildren,\n args: [MatStepHeader]\n }], _steps: [{\n type: ContentChildren,\n args: [MatStep, { descendants: true }]\n }], _icons: [{\n type: ContentChildren,\n args: [MatStepperIcon, { descendants: true }]\n }], animationDone: [{\n type: Output\n }], disableRipple: [{\n type: Input\n }], color: [{\n type: Input\n }], labelPosition: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Button that moves to the next step in a stepper workflow. */\nclass MatStepperNext extends CdkStepperNext {\n}\nMatStepperNext.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperNext, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatStepperNext.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepperNext, selector: \"button[matStepperNext]\", inputs: { type: \"type\" }, host: { properties: { \"type\": \"type\" }, classAttribute: \"mat-stepper-next\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperNext, decorators: [{\n type: Directive,\n args: [{\n selector: 'button[matStepperNext]',\n host: {\n 'class': 'mat-stepper-next',\n '[type]': 'type',\n },\n inputs: ['type'],\n }]\n }] });\n/** Button that moves to the previous step in a stepper workflow. */\nclass MatStepperPrevious extends CdkStepperPrevious {\n}\nMatStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperPrevious, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatStepperPrevious, selector: \"button[matStepperPrevious]\", inputs: { type: \"type\" }, host: { properties: { \"type\": \"type\" }, classAttribute: \"mat-stepper-previous\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperPrevious, decorators: [{\n type: Directive,\n args: [{\n selector: 'button[matStepperPrevious]',\n host: {\n 'class': 'mat-stepper-previous',\n '[type]': 'type',\n },\n inputs: ['type'],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatStepperModule {\n}\nMatStepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperModule, declarations: [MatHorizontalStepper,\n MatVerticalStepper,\n MatStep,\n MatStepLabel,\n MatStepper,\n MatStepperNext,\n MatStepperPrevious,\n MatStepHeader,\n MatStepperIcon,\n MatStepContent], imports: [MatCommonModule,\n CommonModule,\n PortalModule,\n MatButtonModule,\n CdkStepperModule,\n MatIconModule,\n MatRippleModule], exports: [MatCommonModule,\n MatStep,\n MatStepLabel,\n MatStepper,\n MatStepperNext,\n MatStepperPrevious,\n MatStepHeader,\n MatStepperIcon,\n MatStepContent] });\nMatStepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperModule, providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher], imports: [[\n MatCommonModule,\n CommonModule,\n PortalModule,\n MatButtonModule,\n CdkStepperModule,\n MatIconModule,\n MatRippleModule,\n ], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatStepperModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n MatCommonModule,\n CommonModule,\n PortalModule,\n MatButtonModule,\n CdkStepperModule,\n MatIconModule,\n MatRippleModule,\n ],\n exports: [\n MatCommonModule,\n MatStep,\n MatStepLabel,\n MatStepper,\n MatStepperNext,\n MatStepperPrevious,\n MatStepHeader,\n MatStepperIcon,\n MatStepContent,\n ],\n declarations: [\n MatHorizontalStepper,\n MatVerticalStepper,\n MatStep,\n MatStepLabel,\n MatStepper,\n MatStepperNext,\n MatStepperPrevious,\n MatStepHeader,\n MatStepperIcon,\n MatStepContent,\n ],\n providers: [MAT_STEPPER_INTL_PROVIDER, ErrorStateMatcher],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatHorizontalStepper, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, MatVerticalStepper, matStepperAnimations };\n","import * as i7 from '@angular/cdk/a11y';\nimport { FocusKeyManager, A11yModule } from '@angular/cdk/a11y';\nimport * as i5 from '@angular/cdk/observers';\nimport { ObserversModule } from '@angular/cdk/observers';\nimport * as i7$1 from '@angular/cdk/portal';\nimport { CdkPortal, TemplatePortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport * as i3$1 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, ContentChild, ViewChild, Input, forwardRef, EventEmitter, Output, ContentChildren, QueryList, Attribute, NgModule } from '@angular/core';\nimport * as i4 from '@angular/material/core';\nimport { mixinDisabled, mixinColor, mixinDisableRipple, mixinTabIndex, MAT_RIPPLE_GLOBAL_OPTIONS, RippleRenderer, MatCommonModule, MatRippleModule } from '@angular/material/core';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { Subject, Subscription, fromEvent, of, merge, timer } from 'rxjs';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { startWith, distinctUntilChanged, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/bidi';\nimport { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';\nimport * as i3 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport * as i1$1 from '@angular/cdk/scrolling';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token for the MatInkBar's Positioner. */\nconst _MAT_INK_BAR_POSITIONER = new InjectionToken('MatInkBarPositioner', {\n providedIn: 'root',\n factory: _MAT_INK_BAR_POSITIONER_FACTORY,\n});\n/**\n * The default positioner function for the MatInkBar.\n * @docs-private\n */\nfunction _MAT_INK_BAR_POSITIONER_FACTORY() {\n const method = (element) => ({\n left: element ? (element.offsetLeft || 0) + 'px' : '0',\n width: element ? (element.offsetWidth || 0) + 'px' : '0',\n });\n return method;\n}\n/**\n * The ink-bar is used to display and animate the line underneath the current active tab label.\n * @docs-private\n */\nclass MatInkBar {\n constructor(_elementRef, _ngZone, _inkBarPositioner, _animationMode) {\n this._elementRef = _elementRef;\n this._ngZone = _ngZone;\n this._inkBarPositioner = _inkBarPositioner;\n this._animationMode = _animationMode;\n }\n /**\n * Calculates the styles from the provided element in order to align the ink-bar to that element.\n * Shows the ink bar if previously set as hidden.\n * @param element\n */\n alignToElement(element) {\n this.show();\n if (typeof requestAnimationFrame !== 'undefined') {\n this._ngZone.runOutsideAngular(() => {\n requestAnimationFrame(() => this._setStyles(element));\n });\n }\n else {\n this._setStyles(element);\n }\n }\n /** Shows the ink bar. */\n show() {\n this._elementRef.nativeElement.style.visibility = 'visible';\n }\n /** Hides the ink bar. */\n hide() {\n this._elementRef.nativeElement.style.visibility = 'hidden';\n }\n /**\n * Sets the proper styles to the ink bar element.\n * @param element\n */\n _setStyles(element) {\n const positions = this._inkBarPositioner(element);\n const inkBar = this._elementRef.nativeElement;\n inkBar.style.left = positions.left;\n inkBar.style.width = positions.width;\n }\n}\nMatInkBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInkBar, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: _MAT_INK_BAR_POSITIONER }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatInkBar.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatInkBar, selector: \"mat-ink-bar\", host: { properties: { \"class._mat-animation-noopable\": \"_animationMode === 'NoopAnimations'\" }, classAttribute: \"mat-ink-bar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatInkBar, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-ink-bar',\n host: {\n 'class': 'mat-ink-bar',\n '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Inject,\n args: [_MAT_INK_BAR_POSITIONER]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabContent`. It serves as\n * alternative token to the actual `MatTabContent` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_CONTENT = new InjectionToken('MatTabContent');\n/** Decorates the `ng-template` tags and reads out the template from it. */\nclass MatTabContent {\n constructor(/** Content for the tab. */ template) {\n this.template = template;\n }\n}\nMatTabContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabContent, selector: \"[matTabContent]\", providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabContent, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabContent]',\n providers: [{ provide: MAT_TAB_CONTENT, useExisting: MatTabContent }],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token that can be used to reference instances of `MatTabLabel`. It serves as\n * alternative token to the actual `MatTabLabel` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_TAB_LABEL = new InjectionToken('MatTabLabel');\n/**\n * Used to provide a tab label to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB = new InjectionToken('MAT_TAB');\n/** Used to flag tab labels for use with the portal directive */\nclass MatTabLabel extends CdkPortal {\n constructor(templateRef, viewContainerRef, _closestTab) {\n super(templateRef, viewContainerRef);\n this._closestTab = _closestTab;\n }\n}\nMatTabLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLabel, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: MAT_TAB, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabLabel, selector: \"[mat-tab-label], [matTabLabel]\", providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLabel, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-tab-label], [matTabLabel]',\n providers: [{ provide: MAT_TAB_LABEL, useExisting: MatTabLabel }],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TAB]\n }, {\n type: Optional\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatTab.\n/** @docs-private */\nconst _MatTabBase = mixinDisabled(class {\n});\n/**\n * Used to provide a tab group to a tab without causing a circular dependency.\n * @docs-private\n */\nconst MAT_TAB_GROUP = new InjectionToken('MAT_TAB_GROUP');\nclass MatTab extends _MatTabBase {\n constructor(_viewContainerRef, _closestTabGroup) {\n super();\n this._viewContainerRef = _viewContainerRef;\n this._closestTabGroup = _closestTabGroup;\n /** Plain text label for the tab, used when there is no template label. */\n this.textLabel = '';\n /** Portal that will be the hosted content of the tab */\n this._contentPortal = null;\n /** Emits whenever the internal state of the tab changes. */\n this._stateChanges = new Subject();\n /**\n * The relatively indexed position where 0 represents the center, negative is left, and positive\n * represents the right.\n */\n this.position = null;\n /**\n * The initial relatively index origin of the tab if it was created and selected after there\n * was already a selected tab. Provides context of what position the tab should originate from.\n */\n this.origin = null;\n /**\n * Whether the tab is currently active.\n */\n this.isActive = false;\n }\n /** Content for the tab label given by `<ng-template mat-tab-label>`. */\n get templateLabel() {\n return this._templateLabel;\n }\n set templateLabel(value) {\n this._setTemplateLabelInput(value);\n }\n /** @docs-private */\n get content() {\n return this._contentPortal;\n }\n ngOnChanges(changes) {\n if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {\n this._stateChanges.next();\n }\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n ngOnInit() {\n this._contentPortal = new TemplatePortal(this._explicitContent || this._implicitContent, this._viewContainerRef);\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setTemplateLabelInput(value) {\n // Only update the label if the query managed to find one. This works around an issue where a\n // user may have manually set `templateLabel` during creation mode, which would then get\n // clobbered by `undefined` when the query resolves. Also note that we check that the closest\n // tab matches the current one so that we don't pick up labels from nested tabs.\n if (value && value._closestTab === this) {\n this._templateLabel = value;\n }\n }\n}\nMatTab.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTab, deps: [{ token: i0.ViewContainerRef }, { token: MAT_TAB_GROUP, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTab.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTab, selector: \"mat-tab\", inputs: { disabled: \"disabled\", textLabel: [\"label\", \"textLabel\"], ariaLabel: [\"aria-label\", \"ariaLabel\"], ariaLabelledby: [\"aria-labelledby\", \"ariaLabelledby\"] }, providers: [{ provide: MAT_TAB, useExisting: MatTab }], queries: [{ propertyName: \"templateLabel\", first: true, predicate: MAT_TAB_LABEL, descendants: true }, { propertyName: \"_explicitContent\", first: true, predicate: MAT_TAB_CONTENT, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: \"_implicitContent\", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: [\"matTab\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\\n tab-group. -->\\n<ng-template><ng-content></ng-content></ng-template>\\n\", changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTab, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab', inputs: ['disabled'], changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, exportAs: 'matTab', providers: [{ provide: MAT_TAB, useExisting: MatTab }], template: \"<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\\n tab-group. -->\\n<ng-template><ng-content></ng-content></ng-template>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TAB_GROUP]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { templateLabel: [{\n type: ContentChild,\n args: [MAT_TAB_LABEL]\n }], _explicitContent: [{\n type: ContentChild,\n args: [MAT_TAB_CONTENT, { read: TemplateRef, static: true }]\n }], _implicitContent: [{\n type: ViewChild,\n args: [TemplateRef, { static: true }]\n }], textLabel: [{\n type: Input,\n args: ['label']\n }], ariaLabel: [{\n type: Input,\n args: ['aria-label']\n }], ariaLabelledby: [{\n type: Input,\n args: ['aria-labelledby']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material tabs.\n * @docs-private\n */\nconst matTabsAnimations = {\n /** Animation translates a tab along the X axis. */\n translateTab: trigger('translateTab', [\n // Note: transitions to `none` instead of 0, because some browsers might blur the content.\n state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),\n // If the tab is either on the left or right, we additionally add a `min-height` of 1px\n // in order to ensure that the element has a height before its state changes. This is\n // necessary because Chrome does seem to skip the transition in RTL mode if the element does\n // not have a static height and is not rendered. See related issue: #9465\n state('left', style({ transform: 'translate3d(-100%, 0, 0)', minHeight: '1px' })),\n state('right', style({ transform: 'translate3d(100%, 0, 0)', minHeight: '1px' })),\n transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),\n transition('void => left-origin-center', [\n style({ transform: 'translate3d(-100%, 0, 0)' }),\n animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\n ]),\n transition('void => right-origin-center', [\n style({ transform: 'translate3d(100%, 0, 0)' }),\n animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)'),\n ]),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The portal host directive for the contents of the tab.\n * @docs-private\n */\nclass MatTabBodyPortal extends CdkPortalOutlet {\n constructor(componentFactoryResolver, viewContainerRef, _host, _document) {\n super(componentFactoryResolver, viewContainerRef, _document);\n this._host = _host;\n /** Subscription to events for when the tab body begins centering. */\n this._centeringSub = Subscription.EMPTY;\n /** Subscription to events for when the tab body finishes leaving from center position. */\n this._leavingSub = Subscription.EMPTY;\n }\n /** Set initial visibility or set up subscription for changing visibility. */\n ngOnInit() {\n super.ngOnInit();\n this._centeringSub = this._host._beforeCentering\n .pipe(startWith(this._host._isCenterPosition(this._host._position)))\n .subscribe((isCentering) => {\n if (isCentering && !this.hasAttached()) {\n this.attach(this._host._content);\n }\n });\n this._leavingSub = this._host._afterLeavingCenter.subscribe(() => {\n this.detach();\n });\n }\n /** Clean up centering subscription. */\n ngOnDestroy() {\n super.ngOnDestroy();\n this._centeringSub.unsubscribe();\n this._leavingSub.unsubscribe();\n }\n}\nMatTabBodyPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabBodyPortal, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: forwardRef(() => MatTabBody) }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabBodyPortal.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabBodyPortal, selector: \"[matTabBodyHost]\", usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabBodyPortal, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabBodyHost]',\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: MatTabBody, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatTabBody)]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/**\n * Base class with all of the `MatTabBody` functionality.\n * @docs-private\n */\nclass _MatTabBodyBase {\n constructor(_elementRef, _dir, changeDetectorRef) {\n this._elementRef = _elementRef;\n this._dir = _dir;\n /** Subscription to the directionality change observable. */\n this._dirChangeSubscription = Subscription.EMPTY;\n /** Emits when an animation on the tab is complete. */\n this._translateTabComplete = new Subject();\n /** Event emitted when the tab begins to animate towards the center as the active tab. */\n this._onCentering = new EventEmitter();\n /** Event emitted before the centering of the tab begins. */\n this._beforeCentering = new EventEmitter();\n /** Event emitted before the centering of the tab begins. */\n this._afterLeavingCenter = new EventEmitter();\n /** Event emitted when the tab completes its animation towards the center. */\n this._onCentered = new EventEmitter(true);\n // Note that the default value will always be overwritten by `MatTabBody`, but we need one\n // anyway to prevent the animations module from throwing an error if the body is used on its own.\n /** Duration for the tab's animation. */\n this.animationDuration = '500ms';\n if (_dir) {\n this._dirChangeSubscription = _dir.change.subscribe((dir) => {\n this._computePositionAnimationState(dir);\n changeDetectorRef.markForCheck();\n });\n }\n // Ensure that we get unique animation events, because the `.done` callback can get\n // invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.\n this._translateTabComplete\n .pipe(distinctUntilChanged((x, y) => {\n return x.fromState === y.fromState && x.toState === y.toState;\n }))\n .subscribe(event => {\n // If the transition to the center is complete, emit an event.\n if (this._isCenterPosition(event.toState) && this._isCenterPosition(this._position)) {\n this._onCentered.emit();\n }\n if (this._isCenterPosition(event.fromState) && !this._isCenterPosition(this._position)) {\n this._afterLeavingCenter.emit();\n }\n });\n }\n /** The shifted index position of the tab body, where zero represents the active center tab. */\n set position(position) {\n this._positionIndex = position;\n this._computePositionAnimationState();\n }\n /**\n * After initialized, check if the content is centered and has an origin. If so, set the\n * special position states that transition the tab from the left or right before centering.\n */\n ngOnInit() {\n if (this._position == 'center' && this.origin != null) {\n this._position = this._computePositionFromOrigin(this.origin);\n }\n }\n ngOnDestroy() {\n this._dirChangeSubscription.unsubscribe();\n this._translateTabComplete.complete();\n }\n _onTranslateTabStarted(event) {\n const isCentering = this._isCenterPosition(event.toState);\n this._beforeCentering.emit(isCentering);\n if (isCentering) {\n this._onCentering.emit(this._elementRef.nativeElement.clientHeight);\n }\n }\n /** The text direction of the containing app. */\n _getLayoutDirection() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Whether the provided position state is considered center, regardless of origin. */\n _isCenterPosition(position) {\n return (position == 'center' || position == 'left-origin-center' || position == 'right-origin-center');\n }\n /** Computes the position state that will be used for the tab-body animation trigger. */\n _computePositionAnimationState(dir = this._getLayoutDirection()) {\n if (this._positionIndex < 0) {\n this._position = dir == 'ltr' ? 'left' : 'right';\n }\n else if (this._positionIndex > 0) {\n this._position = dir == 'ltr' ? 'right' : 'left';\n }\n else {\n this._position = 'center';\n }\n }\n /**\n * Computes the position state based on the specified origin position. This is used if the\n * tab is becoming visible immediately after creation.\n */\n _computePositionFromOrigin(origin) {\n const dir = this._getLayoutDirection();\n if ((dir == 'ltr' && origin <= 0) || (dir == 'rtl' && origin > 0)) {\n return 'left-origin-center';\n }\n return 'right-origin-center';\n }\n}\n_MatTabBodyBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabBodyBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabBodyBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTabBodyBase, inputs: { _content: [\"content\", \"_content\"], origin: \"origin\", animationDuration: \"animationDuration\", position: \"position\" }, outputs: { _onCentering: \"_onCentering\", _beforeCentering: \"_beforeCentering\", _afterLeavingCenter: \"_afterLeavingCenter\", _onCentered: \"_onCentered\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabBodyBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }];\n }, propDecorators: { _onCentering: [{\n type: Output\n }], _beforeCentering: [{\n type: Output\n }], _afterLeavingCenter: [{\n type: Output\n }], _onCentered: [{\n type: Output\n }], _content: [{\n type: Input,\n args: ['content']\n }], origin: [{\n type: Input\n }], animationDuration: [{\n type: Input\n }], position: [{\n type: Input\n }] } });\n/**\n * Wrapper for the contents of a tab.\n * @docs-private\n */\nclass MatTabBody extends _MatTabBodyBase {\n constructor(elementRef, dir, changeDetectorRef) {\n super(elementRef, dir, changeDetectorRef);\n }\n}\nMatTabBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabBody, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nMatTabBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabBody, selector: \"mat-tab-body\", host: { classAttribute: \"mat-tab-body\" }, viewQueries: [{ propertyName: \"_portalHost\", first: true, predicate: CdkPortalOutlet, descendants: true }], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-tab-body-content\\\" #content\\n [@translateTab]=\\\"{\\n value: _position,\\n params: {animationDuration: animationDuration}\\n }\\\"\\n (@translateTab.start)=\\\"_onTranslateTabStarted($event)\\\"\\n (@translateTab.done)=\\\"_translateTabComplete.next($event)\\\"\\n cdkScrollable>\\n <ng-template matTabBodyHost></ng-template>\\n</div>\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\\n\"], directives: [{ type: MatTabBodyPortal, selector: \"[matTabBodyHost]\" }], animations: [matTabsAnimations.translateTab], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabBody, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-body', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, animations: [matTabsAnimations.translateTab], host: {\n 'class': 'mat-tab-body',\n }, template: \"<div class=\\\"mat-tab-body-content\\\" #content\\n [@translateTab]=\\\"{\\n value: _position,\\n params: {animationDuration: animationDuration}\\n }\\\"\\n (@translateTab.start)=\\\"_onTranslateTabStarted($event)\\\"\\n (@translateTab.done)=\\\"_translateTabComplete.next($event)\\\"\\n cdkScrollable>\\n <ng-template matTabBodyHost></ng-template>\\n</div>\\n\", styles: [\".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ChangeDetectorRef }];\n }, propDecorators: { _portalHost: [{\n type: ViewChild,\n args: [CdkPortalOutlet]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to provide the default options the tabs module. */\nconst MAT_TABS_CONFIG = new InjectionToken('MAT_TABS_CONFIG');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatTabLabelWrapper.\n/** @docs-private */\nconst _MatTabLabelWrapperBase = mixinDisabled(class {\n});\n/**\n * Used in the `mat-tab-group` view to display tab labels.\n * @docs-private\n */\nclass MatTabLabelWrapper extends _MatTabLabelWrapperBase {\n constructor(elementRef) {\n super();\n this.elementRef = elementRef;\n }\n /** Sets focus on the wrapper element */\n focus() {\n this.elementRef.nativeElement.focus();\n }\n getOffsetLeft() {\n return this.elementRef.nativeElement.offsetLeft;\n }\n getOffsetWidth() {\n return this.elementRef.nativeElement.offsetWidth;\n }\n}\nMatTabLabelWrapper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLabelWrapper, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLabelWrapper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: { disabled: \"disabled\" }, host: { properties: { \"class.mat-tab-disabled\": \"disabled\", \"attr.aria-disabled\": \"!!disabled\" } }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLabelWrapper, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTabLabelWrapper]',\n inputs: ['disabled'],\n host: {\n '[class.mat-tab-disabled]': 'disabled',\n '[attr.aria-disabled]': '!!disabled',\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Config used to bind passive event listeners */\nconst passiveEventListenerOptions = normalizePassiveListenerOptions({\n passive: true,\n});\n/**\n * The distance in pixels that will be overshot when scrolling a tab label into view. This helps\n * provide a small affordance to the label next to it.\n */\nconst EXAGGERATED_OVERSCROLL = 60;\n/**\n * Amount of milliseconds to wait before starting to scroll the header automatically.\n * Set a little conservatively in order to handle fake events dispatched on touch devices.\n */\nconst HEADER_SCROLL_DELAY = 650;\n/**\n * Interval in milliseconds at which to scroll the header\n * while the user is holding their pointer.\n */\nconst HEADER_SCROLL_INTERVAL = 100;\n/**\n * Base class for a tab header that supported pagination.\n * @docs-private\n */\nclass MatPaginatedTabHeader {\n constructor(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._viewportRuler = _viewportRuler;\n this._dir = _dir;\n this._ngZone = _ngZone;\n this._platform = _platform;\n this._animationMode = _animationMode;\n /** The distance in pixels that the tab labels should be translated to the left. */\n this._scrollDistance = 0;\n /** Whether the header should scroll to the selected index after the view has been checked. */\n this._selectedIndexChanged = false;\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Whether the controls for pagination should be displayed */\n this._showPaginationControls = false;\n /** Whether the tab list can be scrolled more towards the end of the tab label list. */\n this._disableScrollAfter = true;\n /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */\n this._disableScrollBefore = true;\n /** Stream that will stop the automated scrolling. */\n this._stopScrolling = new Subject();\n /**\n * Whether pagination should be disabled. This can be used to avoid unnecessary\n * layout recalculations if it's known that pagination won't be required.\n */\n this.disablePagination = false;\n this._selectedIndex = 0;\n /** Event emitted when the option is selected. */\n this.selectFocusedIndex = new EventEmitter();\n /** Event emitted when a label is focused. */\n this.indexFocused = new EventEmitter();\n // Bind the `mouseleave` event on the outside since it doesn't change anything in the view.\n _ngZone.runOutsideAngular(() => {\n fromEvent(_elementRef.nativeElement, 'mouseleave')\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._stopInterval();\n });\n });\n }\n /** The index of the active tab. */\n get selectedIndex() {\n return this._selectedIndex;\n }\n set selectedIndex(value) {\n value = coerceNumberProperty(value);\n if (this._selectedIndex != value) {\n this._selectedIndexChanged = true;\n this._selectedIndex = value;\n if (this._keyManager) {\n this._keyManager.updateActiveItem(value);\n }\n }\n }\n ngAfterViewInit() {\n // We need to handle these events manually, because we want to bind passive event listeners.\n fromEvent(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._handlePaginatorPress('before');\n });\n fromEvent(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions)\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n this._handlePaginatorPress('after');\n });\n }\n ngAfterContentInit() {\n const dirChange = this._dir ? this._dir.change : of('ltr');\n const resize = this._viewportRuler.change(150);\n const realign = () => {\n this.updatePagination();\n this._alignInkBarToSelectedTab();\n };\n this._keyManager = new FocusKeyManager(this._items)\n .withHorizontalOrientation(this._getLayoutDirection())\n .withHomeAndEnd()\n .withWrap();\n this._keyManager.updateActiveItem(this._selectedIndex);\n // Defer the first call in order to allow for slower browsers to lay out the elements.\n // This helps in cases where the user lands directly on a page with paginated tabs.\n typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame(realign) : realign();\n // On dir change or window resize, realign the ink bar and update the orientation of\n // the key manager if the direction has changed.\n merge(dirChange, resize, this._items.changes)\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n // We need to defer this to give the browser some time to recalculate\n // the element dimensions. The call has to be wrapped in `NgZone.run`,\n // because the viewport change handler runs outside of Angular.\n this._ngZone.run(() => Promise.resolve().then(realign));\n this._keyManager.withHorizontalOrientation(this._getLayoutDirection());\n });\n // If there is a change in the focus key manager we need to emit the `indexFocused`\n // event in order to provide a public event that notifies about focus changes. Also we realign\n // the tabs container by scrolling the new focused tab into the visible section.\n this._keyManager.change.pipe(takeUntil(this._destroyed)).subscribe(newFocusIndex => {\n this.indexFocused.emit(newFocusIndex);\n this._setTabFocus(newFocusIndex);\n });\n }\n ngAfterContentChecked() {\n // If the number of tab labels have changed, check if scrolling should be enabled\n if (this._tabLabelCount != this._items.length) {\n this.updatePagination();\n this._tabLabelCount = this._items.length;\n this._changeDetectorRef.markForCheck();\n }\n // If the selected index has changed, scroll to the label and check if the scrolling controls\n // should be disabled.\n if (this._selectedIndexChanged) {\n this._scrollToLabel(this._selectedIndex);\n this._checkScrollingControls();\n this._alignInkBarToSelectedTab();\n this._selectedIndexChanged = false;\n this._changeDetectorRef.markForCheck();\n }\n // If the scroll distance has been changed (tab selected, focused, scroll controls activated),\n // then translate the header to reflect this.\n if (this._scrollDistanceChanged) {\n this._updateTabScrollPosition();\n this._scrollDistanceChanged = false;\n this._changeDetectorRef.markForCheck();\n }\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._stopScrolling.complete();\n }\n /** Handles keyboard events on the header. */\n _handleKeydown(event) {\n // We don't handle any key bindings with a modifier key.\n if (hasModifierKey(event)) {\n return;\n }\n switch (event.keyCode) {\n case ENTER:\n case SPACE:\n if (this.focusIndex !== this.selectedIndex) {\n this.selectFocusedIndex.emit(this.focusIndex);\n this._itemSelected(event);\n }\n break;\n default:\n this._keyManager.onKeydown(event);\n }\n }\n /**\n * Callback for when the MutationObserver detects that the content has changed.\n */\n _onContentChanges() {\n const textContent = this._elementRef.nativeElement.textContent;\n // We need to diff the text content of the header, because the MutationObserver callback\n // will fire even if the text content didn't change which is inefficient and is prone\n // to infinite loops if a poorly constructed expression is passed in (see #14249).\n if (textContent !== this._currentTextContent) {\n this._currentTextContent = textContent || '';\n // The content observer runs outside the `NgZone` by default, which\n // means that we need to bring the callback back in ourselves.\n this._ngZone.run(() => {\n this.updatePagination();\n this._alignInkBarToSelectedTab();\n this._changeDetectorRef.markForCheck();\n });\n }\n }\n /**\n * Updates the view whether pagination should be enabled or not.\n *\n * WARNING: Calling this method can be very costly in terms of performance. It should be called\n * as infrequently as possible from outside of the Tabs component as it causes a reflow of the\n * page.\n */\n updatePagination() {\n this._checkPaginationEnabled();\n this._checkScrollingControls();\n this._updateTabScrollPosition();\n }\n /** Tracks which element has focus; used for keyboard navigation */\n get focusIndex() {\n return this._keyManager ? this._keyManager.activeItemIndex : 0;\n }\n /** When the focus index is set, we must manually send focus to the correct label */\n set focusIndex(value) {\n if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {\n return;\n }\n this._keyManager.setActiveItem(value);\n }\n /**\n * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is\n * providing a valid index and return true.\n */\n _isValidIndex(index) {\n if (!this._items) {\n return true;\n }\n const tab = this._items ? this._items.toArray()[index] : null;\n return !!tab && !tab.disabled;\n }\n /**\n * Sets focus on the HTML element for the label wrapper and scrolls it into the view if\n * scrolling is enabled.\n */\n _setTabFocus(tabIndex) {\n if (this._showPaginationControls) {\n this._scrollToLabel(tabIndex);\n }\n if (this._items && this._items.length) {\n this._items.toArray()[tabIndex].focus();\n // Do not let the browser manage scrolling to focus the element, this will be handled\n // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width\n // should be the full width minus the offset width.\n const containerEl = this._tabListContainer.nativeElement;\n const dir = this._getLayoutDirection();\n if (dir == 'ltr') {\n containerEl.scrollLeft = 0;\n }\n else {\n containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;\n }\n }\n }\n /** The layout direction of the containing app. */\n _getLayoutDirection() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Performs the CSS transformation on the tab list that will cause the list to scroll. */\n _updateTabScrollPosition() {\n if (this.disablePagination) {\n return;\n }\n const scrollDistance = this.scrollDistance;\n const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;\n // Don't use `translate3d` here because we don't want to create a new layer. A new layer\n // seems to cause flickering and overflow in Internet Explorer. For example, the ink bar\n // and ripples will exceed the boundaries of the visible tab bar.\n // See: https://github.com/angular/components/issues/10276\n // We round the `transform` here, because transforms with sub-pixel precision cause some\n // browsers to blur the content of the element.\n this._tabList.nativeElement.style.transform = `translateX(${Math.round(translateX)}px)`;\n // Setting the `transform` on IE will change the scroll offset of the parent, causing the\n // position to be thrown off in some cases. We have to reset it ourselves to ensure that\n // it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing\n // with the scroll position throws off Chrome 71+ in RTL mode (see #14689).\n if (this._platform.TRIDENT || this._platform.EDGE) {\n this._tabListContainer.nativeElement.scrollLeft = 0;\n }\n }\n /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */\n get scrollDistance() {\n return this._scrollDistance;\n }\n set scrollDistance(value) {\n this._scrollTo(value);\n }\n /**\n * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or\n * the end of the list, respectively). The distance to scroll is computed to be a third of the\n * length of the tab list view window.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollHeader(direction) {\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n // Move the scroll distance one-third the length of the tab list's viewport.\n const scrollAmount = ((direction == 'before' ? -1 : 1) * viewLength) / 3;\n return this._scrollTo(this._scrollDistance + scrollAmount);\n }\n /** Handles click events on the pagination arrows. */\n _handlePaginatorClick(direction) {\n this._stopInterval();\n this._scrollHeader(direction);\n }\n /**\n * Moves the tab list such that the desired tab label (marked by index) is moved into view.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _scrollToLabel(labelIndex) {\n if (this.disablePagination) {\n return;\n }\n const selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;\n if (!selectedLabel) {\n return;\n }\n // The view length is the visible width of the tab labels.\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n const { offsetLeft, offsetWidth } = selectedLabel.elementRef.nativeElement;\n let labelBeforePos, labelAfterPos;\n if (this._getLayoutDirection() == 'ltr') {\n labelBeforePos = offsetLeft;\n labelAfterPos = labelBeforePos + offsetWidth;\n }\n else {\n labelAfterPos = this._tabListInner.nativeElement.offsetWidth - offsetLeft;\n labelBeforePos = labelAfterPos - offsetWidth;\n }\n const beforeVisiblePos = this.scrollDistance;\n const afterVisiblePos = this.scrollDistance + viewLength;\n if (labelBeforePos < beforeVisiblePos) {\n // Scroll header to move label to the before direction\n this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;\n }\n else if (labelAfterPos > afterVisiblePos) {\n // Scroll header to move label to the after direction\n this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;\n }\n }\n /**\n * Evaluate whether the pagination controls should be displayed. If the scroll width of the\n * tab list is wider than the size of the header container, then the pagination controls should\n * be shown.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkPaginationEnabled() {\n if (this.disablePagination) {\n this._showPaginationControls = false;\n }\n else {\n const isEnabled = this._tabListInner.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;\n if (!isEnabled) {\n this.scrollDistance = 0;\n }\n if (isEnabled !== this._showPaginationControls) {\n this._changeDetectorRef.markForCheck();\n }\n this._showPaginationControls = isEnabled;\n }\n }\n /**\n * Evaluate whether the before and after controls should be enabled or disabled.\n * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the\n * before button. If the header is at the end of the list (scroll distance is equal to the\n * maximum distance we can scroll), then disable the after button.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _checkScrollingControls() {\n if (this.disablePagination) {\n this._disableScrollAfter = this._disableScrollBefore = true;\n }\n else {\n // Check if the pagination arrows should be activated.\n this._disableScrollBefore = this.scrollDistance == 0;\n this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * Determines what is the maximum length in pixels that can be set for the scroll distance. This\n * is equal to the difference in width between the tab list container and tab header container.\n *\n * This is an expensive call that forces a layout reflow to compute box and scroll metrics and\n * should be called sparingly.\n */\n _getMaxScrollDistance() {\n const lengthOfTabList = this._tabListInner.nativeElement.scrollWidth;\n const viewLength = this._tabListContainer.nativeElement.offsetWidth;\n return lengthOfTabList - viewLength || 0;\n }\n /** Tells the ink-bar to align itself to the current label wrapper */\n _alignInkBarToSelectedTab() {\n const selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;\n const selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;\n if (selectedLabelWrapper) {\n this._inkBar.alignToElement(selectedLabelWrapper);\n }\n else {\n this._inkBar.hide();\n }\n }\n /** Stops the currently-running paginator interval. */\n _stopInterval() {\n this._stopScrolling.next();\n }\n /**\n * Handles the user pressing down on one of the paginators.\n * Starts scrolling the header after a certain amount of time.\n * @param direction In which direction the paginator should be scrolled.\n */\n _handlePaginatorPress(direction, mouseEvent) {\n // Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to\n // null check the `button`, but we do it so we don't break tests that use fake events.\n if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {\n return;\n }\n // Avoid overlapping timers.\n this._stopInterval();\n // Start a timer after the delay and keep firing based on the interval.\n timer(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL)\n // Keep the timer going until something tells it to stop or the component is destroyed.\n .pipe(takeUntil(merge(this._stopScrolling, this._destroyed)))\n .subscribe(() => {\n const { maxScrollDistance, distance } = this._scrollHeader(direction);\n // Stop the timer if we've reached the start or the end.\n if (distance === 0 || distance >= maxScrollDistance) {\n this._stopInterval();\n }\n });\n }\n /**\n * Scrolls the header to a given position.\n * @param position Position to which to scroll.\n * @returns Information on the current scroll distance and the maximum.\n */\n _scrollTo(position) {\n if (this.disablePagination) {\n return { maxScrollDistance: 0, distance: 0 };\n }\n const maxScrollDistance = this._getMaxScrollDistance();\n this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position));\n // Mark that the scroll distance has changed so that after the view is checked, the CSS\n // transformation can move the header.\n this._scrollDistanceChanged = true;\n this._checkScrollingControls();\n return { maxScrollDistance, distance: this._scrollDistance };\n }\n}\nMatPaginatedTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatedTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatPaginatedTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatPaginatedTabHeader, inputs: { disablePagination: \"disablePagination\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatedTabHeader, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { disablePagination: [{\n type: Input\n }] } });\n\n/**\n * Base class with all of the `MatTabHeader` functionality.\n * @docs-private\n */\nclass _MatTabHeaderBase extends MatPaginatedTabHeader {\n constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n this._disableRipple = false;\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = coerceBooleanProperty(value);\n }\n _itemSelected(event) {\n event.preventDefault();\n }\n}\n_MatTabHeaderBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabHeaderBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabHeaderBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTabHeaderBase, inputs: { disableRipple: \"disableRipple\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabHeaderBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { disableRipple: [{\n type: Input\n }] } });\n/**\n * The header of the tab group which displays a list of all the tabs in the tab group. Includes\n * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the\n * width of the header container, then arrows will be displayed to allow the user to scroll\n * left and right across the header.\n * @docs-private\n */\nclass MatTabHeader extends _MatTabHeaderBase {\n constructor(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n }\n}\nMatTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabHeader, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabHeader, selector: \"mat-tab-header\", inputs: { selectedIndex: \"selectedIndex\" }, outputs: { selectFocusedIndex: \"selectFocusedIndex\", indexFocused: \"indexFocused\" }, host: { properties: { \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\" }, classAttribute: \"mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: MatTabLabelWrapper }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n #previousPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n (click)=\\\"_handlePaginatorClick('before')\\\"\\n (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\\n<div class=\\\"mat-tab-label-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n <div\\n #tabList\\n class=\\\"mat-tab-list\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n role=\\\"tablist\\\"\\n (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n <div class=\\\"mat-tab-labels\\\" #tabListInner>\\n <ng-content></ng-content>\\n </div>\\n <mat-ink-bar></mat-ink-bar>\\n </div>\\n</div>\\n\\n<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n #nextPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n (click)=\\\"_handlePaginatorClick('after')\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\\n\"], directives: [{ type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-header', inputs: ['selectedIndex'], outputs: ['selectFocusedIndex', 'indexFocused'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {\n 'class': 'mat-tab-header',\n '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n }, template: \"<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n #previousPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n (click)=\\\"_handlePaginatorClick('before')\\\"\\n (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\\n<div class=\\\"mat-tab-label-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n <div\\n #tabList\\n class=\\\"mat-tab-list\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n role=\\\"tablist\\\"\\n (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n <div class=\\\"mat-tab-labels\\\" #tabListInner>\\n <ng-content></ng-content>\\n </div>\\n <mat-ink-bar></mat-ink-bar>\\n </div>\\n</div>\\n\\n<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n #nextPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n (click)=\\\"_handlePaginatorClick('after')\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { _items: [{\n type: ContentChildren,\n args: [MatTabLabelWrapper, { descendants: false }]\n }], _inkBar: [{\n type: ViewChild,\n args: [MatInkBar, { static: true }]\n }], _tabListContainer: [{\n type: ViewChild,\n args: ['tabListContainer', { static: true }]\n }], _tabList: [{\n type: ViewChild,\n args: ['tabList', { static: true }]\n }], _tabListInner: [{\n type: ViewChild,\n args: ['tabListInner', { static: true }]\n }], _nextPaginator: [{\n type: ViewChild,\n args: ['nextPaginator']\n }], _previousPaginator: [{\n type: ViewChild,\n args: ['previousPaginator']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Used to generate unique ID's for each tab component */\nlet nextId = 0;\n/** A simple change event emitted on focus or selection changes. */\nclass MatTabChangeEvent {\n}\n// Boilerplate for applying mixins to MatTabGroup.\n/** @docs-private */\nconst _MatTabGroupMixinBase = mixinColor(mixinDisableRipple(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}), 'primary');\n/**\n * Base class with all of the `MatTabGroupBase` functionality.\n * @docs-private\n */\nclass _MatTabGroupBase extends _MatTabGroupMixinBase {\n constructor(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {\n var _a;\n super(elementRef);\n this._changeDetectorRef = _changeDetectorRef;\n this._animationMode = _animationMode;\n /** All of the tabs that belong to the group. */\n this._tabs = new QueryList();\n /** The tab index that should be selected after the content has been checked. */\n this._indexToSelect = 0;\n /** Snapshot of the height of the tab body wrapper before another tab is activated. */\n this._tabBodyWrapperHeight = 0;\n /** Subscription to tabs being added/removed. */\n this._tabsSubscription = Subscription.EMPTY;\n /** Subscription to changes in the tab labels. */\n this._tabLabelSubscription = Subscription.EMPTY;\n this._selectedIndex = null;\n /** Position of the tab header. */\n this.headerPosition = 'above';\n /** Output to enable support for two-way binding on `[(selectedIndex)]` */\n this.selectedIndexChange = new EventEmitter();\n /** Event emitted when focus has changed within a tab group. */\n this.focusChange = new EventEmitter();\n /** Event emitted when the body animation has completed */\n this.animationDone = new EventEmitter();\n /** Event emitted when the tab selection has changed. */\n this.selectedTabChange = new EventEmitter(true);\n this._groupId = nextId++;\n this.animationDuration =\n defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : '500ms';\n this.disablePagination =\n defaultConfig && defaultConfig.disablePagination != null\n ? defaultConfig.disablePagination\n : false;\n this.dynamicHeight =\n defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;\n this.contentTabIndex = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.contentTabIndex) !== null && _a !== void 0 ? _a : null;\n }\n /** Whether the tab group should grow to the size of the active tab. */\n get dynamicHeight() {\n return this._dynamicHeight;\n }\n set dynamicHeight(value) {\n this._dynamicHeight = coerceBooleanProperty(value);\n }\n /** The index of the active tab. */\n get selectedIndex() {\n return this._selectedIndex;\n }\n set selectedIndex(value) {\n this._indexToSelect = coerceNumberProperty(value, null);\n }\n /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */\n get animationDuration() {\n return this._animationDuration;\n }\n set animationDuration(value) {\n this._animationDuration = /^\\d+$/.test(value + '') ? value + 'ms' : value;\n }\n /**\n * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved\n * accessibility when the tab does not have focusable elements or if it has scrollable content.\n * The `tabindex` will be removed automatically for inactive tabs.\n * Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html\n */\n get contentTabIndex() {\n return this._contentTabIndex;\n }\n set contentTabIndex(value) {\n this._contentTabIndex = coerceNumberProperty(value, null);\n }\n /** Background color of the tab group. */\n get backgroundColor() {\n return this._backgroundColor;\n }\n set backgroundColor(value) {\n const nativeElement = this._elementRef.nativeElement;\n nativeElement.classList.remove(`mat-background-${this.backgroundColor}`);\n if (value) {\n nativeElement.classList.add(`mat-background-${value}`);\n }\n this._backgroundColor = value;\n }\n /**\n * After the content is checked, this component knows what tabs have been defined\n * and what the selected index should be. This is where we can know exactly what position\n * each tab should be in according to the new selected index, and additionally we know how\n * a new selected tab should transition in (from the left or right).\n */\n ngAfterContentChecked() {\n // Don't clamp the `indexToSelect` immediately in the setter because it can happen that\n // the amount of tabs changes before the actual change detection runs.\n const indexToSelect = (this._indexToSelect = this._clampTabIndex(this._indexToSelect));\n // If there is a change in selected index, emit a change event. Should not trigger if\n // the selected index has not yet been initialized.\n if (this._selectedIndex != indexToSelect) {\n const isFirstRun = this._selectedIndex == null;\n if (!isFirstRun) {\n this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));\n // Preserve the height so page doesn't scroll up during tab change.\n // Fixes https://stackblitz.com/edit/mat-tabs-scroll-page-top-on-tab-change\n const wrapper = this._tabBodyWrapper.nativeElement;\n wrapper.style.minHeight = wrapper.clientHeight + 'px';\n }\n // Changing these values after change detection has run\n // since the checked content may contain references to them.\n Promise.resolve().then(() => {\n this._tabs.forEach((tab, index) => (tab.isActive = index === indexToSelect));\n if (!isFirstRun) {\n this.selectedIndexChange.emit(indexToSelect);\n // Clear the min-height, this was needed during tab change to avoid\n // unnecessary scrolling.\n this._tabBodyWrapper.nativeElement.style.minHeight = '';\n }\n });\n }\n // Setup the position for each tab and optionally setup an origin on the next selected tab.\n this._tabs.forEach((tab, index) => {\n tab.position = index - indexToSelect;\n // If there is already a selected tab, then set up an origin for the next selected tab\n // if it doesn't have one already.\n if (this._selectedIndex != null && tab.position == 0 && !tab.origin) {\n tab.origin = indexToSelect - this._selectedIndex;\n }\n });\n if (this._selectedIndex !== indexToSelect) {\n this._selectedIndex = indexToSelect;\n this._changeDetectorRef.markForCheck();\n }\n }\n ngAfterContentInit() {\n this._subscribeToAllTabChanges();\n this._subscribeToTabLabels();\n // Subscribe to changes in the amount of tabs, in order to be\n // able to re-render the content as new tabs are added or removed.\n this._tabsSubscription = this._tabs.changes.subscribe(() => {\n const indexToSelect = this._clampTabIndex(this._indexToSelect);\n // Maintain the previously-selected tab if a new tab is added or removed and there is no\n // explicit change that selects a different tab.\n if (indexToSelect === this._selectedIndex) {\n const tabs = this._tabs.toArray();\n for (let i = 0; i < tabs.length; i++) {\n if (tabs[i].isActive) {\n // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed\n // event, otherwise the consumer may end up in an infinite loop in some edge cases like\n // adding a tab within the `selectedIndexChange` event.\n this._indexToSelect = this._selectedIndex = i;\n break;\n }\n }\n }\n this._changeDetectorRef.markForCheck();\n });\n }\n /** Listens to changes in all of the tabs. */\n _subscribeToAllTabChanges() {\n // Since we use a query with `descendants: true` to pick up the tabs, we may end up catching\n // some that are inside of nested tab groups. We filter them out manually by checking that\n // the closest group to the tab is the current one.\n this._allTabs.changes.pipe(startWith(this._allTabs)).subscribe((tabs) => {\n this._tabs.reset(tabs.filter(tab => {\n return tab._closestTabGroup === this || !tab._closestTabGroup;\n }));\n this._tabs.notifyOnChanges();\n });\n }\n ngOnDestroy() {\n this._tabs.destroy();\n this._tabsSubscription.unsubscribe();\n this._tabLabelSubscription.unsubscribe();\n }\n /** Re-aligns the ink bar to the selected tab element. */\n realignInkBar() {\n if (this._tabHeader) {\n this._tabHeader._alignInkBarToSelectedTab();\n }\n }\n /**\n * Sets focus to a particular tab.\n * @param index Index of the tab to be focused.\n */\n focusTab(index) {\n const header = this._tabHeader;\n if (header) {\n header.focusIndex = index;\n }\n }\n _focusChanged(index) {\n this.focusChange.emit(this._createChangeEvent(index));\n }\n _createChangeEvent(index) {\n const event = new MatTabChangeEvent();\n event.index = index;\n if (this._tabs && this._tabs.length) {\n event.tab = this._tabs.toArray()[index];\n }\n return event;\n }\n /**\n * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is\n * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the\n * binding to be updated, we need to subscribe to changes in it and trigger change detection\n * manually.\n */\n _subscribeToTabLabels() {\n if (this._tabLabelSubscription) {\n this._tabLabelSubscription.unsubscribe();\n }\n this._tabLabelSubscription = merge(...this._tabs.map(tab => tab._stateChanges)).subscribe(() => this._changeDetectorRef.markForCheck());\n }\n /** Clamps the given index to the bounds of 0 and the tabs length. */\n _clampTabIndex(index) {\n // Note the `|| 0`, which ensures that values like NaN can't get through\n // and which would otherwise throw the component into an infinite loop\n // (since Math.max(NaN, 0) === NaN).\n return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));\n }\n /** Returns a unique id for each tab label element */\n _getTabLabelId(i) {\n return `mat-tab-label-${this._groupId}-${i}`;\n }\n /** Returns a unique id for each tab content element */\n _getTabContentId(i) {\n return `mat-tab-content-${this._groupId}-${i}`;\n }\n /**\n * Sets the height of the body wrapper to the height of the activating tab if dynamic\n * height property is true.\n */\n _setTabBodyWrapperHeight(tabHeight) {\n if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {\n return;\n }\n const wrapper = this._tabBodyWrapper.nativeElement;\n wrapper.style.height = this._tabBodyWrapperHeight + 'px';\n // This conditional forces the browser to paint the height so that\n // the animation to the new height can have an origin.\n if (this._tabBodyWrapper.nativeElement.offsetHeight) {\n wrapper.style.height = tabHeight + 'px';\n }\n }\n /** Removes the height of the tab body wrapper. */\n _removeTabBodyWrapperHeight() {\n const wrapper = this._tabBodyWrapper.nativeElement;\n this._tabBodyWrapperHeight = wrapper.clientHeight;\n wrapper.style.height = '';\n this.animationDone.emit();\n }\n /** Handle click events, setting new selected index if appropriate. */\n _handleClick(tab, tabHeader, index) {\n if (!tab.disabled) {\n this.selectedIndex = tabHeader.focusIndex = index;\n }\n }\n /** Retrieves the tabindex for the tab. */\n _getTabIndex(tab, idx) {\n if (tab.disabled) {\n return null;\n }\n return this.selectedIndex === idx ? 0 : -1;\n }\n /** Callback for when the focused state of a tab has changed. */\n _tabFocusChanged(focusOrigin, index) {\n // Mouse/touch focus happens during the `mousedown`/`touchstart` phase which\n // can cause the tab to be moved out from under the pointer, interrupting the\n // click sequence (see #21898). We don't need to scroll the tab into view for\n // such cases anyway, because it will be done when the tab becomes selected.\n if (focusOrigin && focusOrigin !== 'mouse' && focusOrigin !== 'touch') {\n this._tabHeader.focusIndex = index;\n }\n }\n}\n_MatTabGroupBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabGroupBase, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabGroupBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTabGroupBase, inputs: { dynamicHeight: \"dynamicHeight\", selectedIndex: \"selectedIndex\", headerPosition: \"headerPosition\", animationDuration: \"animationDuration\", contentTabIndex: \"contentTabIndex\", disablePagination: \"disablePagination\", backgroundColor: \"backgroundColor\" }, outputs: { selectedIndexChange: \"selectedIndexChange\", focusChange: \"focusChange\", animationDone: \"animationDone\", selectedTabChange: \"selectedTabChange\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabGroupBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TABS_CONFIG]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { dynamicHeight: [{\n type: Input\n }], selectedIndex: [{\n type: Input\n }], headerPosition: [{\n type: Input\n }], animationDuration: [{\n type: Input\n }], contentTabIndex: [{\n type: Input\n }], disablePagination: [{\n type: Input\n }], backgroundColor: [{\n type: Input\n }], selectedIndexChange: [{\n type: Output\n }], focusChange: [{\n type: Output\n }], animationDone: [{\n type: Output\n }], selectedTabChange: [{\n type: Output\n }] } });\n/**\n * Material design tab-group component. Supports basic tab pairs (label + content) and includes\n * animated ink-bar, keyboard navigation, and screen reader.\n * See: https://material.io/design/components/tabs.html\n */\nclass MatTabGroup extends _MatTabGroupBase {\n constructor(elementRef, changeDetectorRef, defaultConfig, animationMode) {\n super(elementRef, changeDetectorRef, defaultConfig, animationMode);\n }\n}\nMatTabGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabGroup, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_TABS_CONFIG, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabGroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabGroup, selector: \"mat-tab-group\", inputs: { color: \"color\", disableRipple: \"disableRipple\" }, host: { properties: { \"class.mat-tab-group-dynamic-height\": \"dynamicHeight\", \"class.mat-tab-group-inverted-header\": \"headerPosition === \\\"below\\\"\" }, classAttribute: \"mat-tab-group\" }, providers: [\n {\n provide: MAT_TAB_GROUP,\n useExisting: MatTabGroup,\n },\n ], queries: [{ propertyName: \"_allTabs\", predicate: MatTab, descendants: true }], viewQueries: [{ propertyName: \"_tabBodyWrapper\", first: true, predicate: [\"tabBodyWrapper\"], descendants: true }, { propertyName: \"_tabHeader\", first: true, predicate: [\"tabHeader\"], descendants: true }], exportAs: [\"matTabGroup\"], usesInheritance: true, ngImport: i0, template: \"<mat-tab-header #tabHeader\\n [selectedIndex]=\\\"selectedIndex || 0\\\"\\n [disableRipple]=\\\"disableRipple\\\"\\n [disablePagination]=\\\"disablePagination\\\"\\n (indexFocused)=\\\"_focusChanged($event)\\\"\\n (selectFocusedIndex)=\\\"selectedIndex = $event\\\">\\n <div class=\\\"mat-tab-label mat-focus-indicator\\\" role=\\\"tab\\\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\\n *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n [id]=\\\"_getTabLabelId(i)\\\"\\n [attr.tabIndex]=\\\"_getTabIndex(tab, i)\\\"\\n [attr.aria-posinset]=\\\"i + 1\\\"\\n [attr.aria-setsize]=\\\"_tabs.length\\\"\\n [attr.aria-controls]=\\\"_getTabContentId(i)\\\"\\n [attr.aria-selected]=\\\"selectedIndex == i\\\"\\n [attr.aria-label]=\\\"tab.ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\\\"\\n [class.mat-tab-label-active]=\\\"selectedIndex == i\\\"\\n [disabled]=\\\"tab.disabled\\\"\\n [matRippleDisabled]=\\\"tab.disabled || disableRipple\\\"\\n (click)=\\\"_handleClick(tab, tabHeader, i)\\\"\\n (cdkFocusChange)=\\\"_tabFocusChanged($event, i)\\\">\\n\\n\\n <div class=\\\"mat-tab-label-content\\\">\\n <!-- If there is a label template, use it. -->\\n <ng-template [ngIf]=\\\"tab.templateLabel\\\">\\n <ng-template [cdkPortalOutlet]=\\\"tab.templateLabel\\\"></ng-template>\\n </ng-template>\\n\\n <!-- If there is not a label template, fall back to the text label. -->\\n <ng-template [ngIf]=\\\"!tab.templateLabel\\\">{{tab.textLabel}}</ng-template>\\n </div>\\n </div>\\n</mat-tab-header>\\n\\n<div\\n class=\\\"mat-tab-body-wrapper\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n #tabBodyWrapper>\\n <mat-tab-body role=\\\"tabpanel\\\"\\n *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n [id]=\\\"_getTabContentId(i)\\\"\\n [attr.tabindex]=\\\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\\\"\\n [attr.aria-labelledby]=\\\"_getTabLabelId(i)\\\"\\n [class.mat-tab-body-active]=\\\"selectedIndex === i\\\"\\n [content]=\\\"tab.content!\\\"\\n [position]=\\\"tab.position!\\\"\\n [origin]=\\\"tab.origin\\\"\\n [animationDuration]=\\\"animationDuration\\\"\\n (_onCentered)=\\\"_removeTabBodyWrapperHeight()\\\"\\n (_onCentering)=\\\"_setTabBodyWrapperHeight($event)\\\">\\n </mat-tab-body>\\n</div>\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\\n\"], components: [{ type: MatTabHeader, selector: \"mat-tab-header\", inputs: [\"selectedIndex\"], outputs: [\"selectFocusedIndex\", \"indexFocused\"] }, { type: MatTabBody, selector: \"mat-tab-body\" }], directives: [{ type: i3$1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: MatTabLabelWrapper, selector: \"[matTabLabelWrapper]\", inputs: [\"disabled\"] }, { type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i7.CdkMonitorFocus, selector: \"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]\", outputs: [\"cdkFocusChange\"] }, { type: i3$1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i7$1.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabGroup, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tab-group', exportAs: 'matTabGroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, inputs: ['color', 'disableRipple'], providers: [\n {\n provide: MAT_TAB_GROUP,\n useExisting: MatTabGroup,\n },\n ], host: {\n 'class': 'mat-tab-group',\n '[class.mat-tab-group-dynamic-height]': 'dynamicHeight',\n '[class.mat-tab-group-inverted-header]': 'headerPosition === \"below\"',\n }, template: \"<mat-tab-header #tabHeader\\n [selectedIndex]=\\\"selectedIndex || 0\\\"\\n [disableRipple]=\\\"disableRipple\\\"\\n [disablePagination]=\\\"disablePagination\\\"\\n (indexFocused)=\\\"_focusChanged($event)\\\"\\n (selectFocusedIndex)=\\\"selectedIndex = $event\\\">\\n <div class=\\\"mat-tab-label mat-focus-indicator\\\" role=\\\"tab\\\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\\n *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n [id]=\\\"_getTabLabelId(i)\\\"\\n [attr.tabIndex]=\\\"_getTabIndex(tab, i)\\\"\\n [attr.aria-posinset]=\\\"i + 1\\\"\\n [attr.aria-setsize]=\\\"_tabs.length\\\"\\n [attr.aria-controls]=\\\"_getTabContentId(i)\\\"\\n [attr.aria-selected]=\\\"selectedIndex == i\\\"\\n [attr.aria-label]=\\\"tab.ariaLabel || null\\\"\\n [attr.aria-labelledby]=\\\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\\\"\\n [class.mat-tab-label-active]=\\\"selectedIndex == i\\\"\\n [disabled]=\\\"tab.disabled\\\"\\n [matRippleDisabled]=\\\"tab.disabled || disableRipple\\\"\\n (click)=\\\"_handleClick(tab, tabHeader, i)\\\"\\n (cdkFocusChange)=\\\"_tabFocusChanged($event, i)\\\">\\n\\n\\n <div class=\\\"mat-tab-label-content\\\">\\n <!-- If there is a label template, use it. -->\\n <ng-template [ngIf]=\\\"tab.templateLabel\\\">\\n <ng-template [cdkPortalOutlet]=\\\"tab.templateLabel\\\"></ng-template>\\n </ng-template>\\n\\n <!-- If there is not a label template, fall back to the text label. -->\\n <ng-template [ngIf]=\\\"!tab.templateLabel\\\">{{tab.textLabel}}</ng-template>\\n </div>\\n </div>\\n</mat-tab-header>\\n\\n<div\\n class=\\\"mat-tab-body-wrapper\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n #tabBodyWrapper>\\n <mat-tab-body role=\\\"tabpanel\\\"\\n *ngFor=\\\"let tab of _tabs; let i = index\\\"\\n [id]=\\\"_getTabContentId(i)\\\"\\n [attr.tabindex]=\\\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\\\"\\n [attr.aria-labelledby]=\\\"_getTabLabelId(i)\\\"\\n [class.mat-tab-body-active]=\\\"selectedIndex === i\\\"\\n [content]=\\\"tab.content!\\\"\\n [position]=\\\"tab.position!\\\"\\n [origin]=\\\"tab.origin\\\"\\n [animationDuration]=\\\"animationDuration\\\"\\n (_onCentered)=\\\"_removeTabBodyWrapperHeight()\\\"\\n (_onCentering)=\\\"_setTabBodyWrapperHeight($event)\\\">\\n </mat-tab-body>\\n</div>\\n\", styles: [\".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TABS_CONFIG]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { _allTabs: [{\n type: ContentChildren,\n args: [MatTab, { descendants: true }]\n }], _tabBodyWrapper: [{\n type: ViewChild,\n args: ['tabBodyWrapper']\n }], _tabHeader: [{\n type: ViewChild,\n args: ['tabHeader']\n }] } });\n\n/**\n * Base class with all of the `MatTabNav` functionality.\n * @docs-private\n */\nclass _MatTabNavBase extends MatPaginatedTabHeader {\n constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n super(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);\n this._disableRipple = false;\n /** Theme color of the nav bar. */\n this.color = 'primary';\n }\n /** Background color of the tab nav. */\n get backgroundColor() {\n return this._backgroundColor;\n }\n set backgroundColor(value) {\n const classList = this._elementRef.nativeElement.classList;\n classList.remove(`mat-background-${this.backgroundColor}`);\n if (value) {\n classList.add(`mat-background-${value}`);\n }\n this._backgroundColor = value;\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = coerceBooleanProperty(value);\n }\n _itemSelected() {\n // noop\n }\n ngAfterContentInit() {\n // We need this to run before the `changes` subscription in parent to ensure that the\n // selectedIndex is up-to-date by the time the super class starts looking for it.\n this._items.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {\n this.updateActiveLink();\n });\n super.ngAfterContentInit();\n }\n /** Notifies the component that the active link has been changed. */\n updateActiveLink() {\n if (!this._items) {\n return;\n }\n const items = this._items.toArray();\n for (let i = 0; i < items.length; i++) {\n if (items[i].active) {\n this.selectedIndex = i;\n this._changeDetectorRef.markForCheck();\n return;\n }\n }\n // The ink bar should hide itself if no items are active.\n this.selectedIndex = -1;\n this._inkBar.hide();\n }\n}\n_MatTabNavBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabNavBase, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabNavBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTabNavBase, inputs: { backgroundColor: \"backgroundColor\", disableRipple: \"disableRipple\", color: \"color\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabNavBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { backgroundColor: [{\n type: Input\n }], disableRipple: [{\n type: Input\n }], color: [{\n type: Input\n }] } });\n/**\n * Navigation component matching the styles of the tab group header.\n * Provides anchored navigation with animated ink bar.\n */\nclass MatTabNav extends _MatTabNavBase {\n constructor(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {\n super(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);\n }\n}\nMatTabNav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabNav, deps: [{ token: i0.ElementRef }, { token: i1.Directionality, optional: true }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.ViewportRuler }, { token: i3.Platform }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatTabNav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabNav, selector: \"[mat-tab-nav-bar]\", inputs: { color: \"color\" }, host: { properties: { \"class.mat-tab-header-pagination-controls-enabled\": \"_showPaginationControls\", \"class.mat-tab-header-rtl\": \"_getLayoutDirection() == 'rtl'\", \"class.mat-primary\": \"color !== \\\"warn\\\" && color !== \\\"accent\\\"\", \"class.mat-accent\": \"color === \\\"accent\\\"\", \"class.mat-warn\": \"color === \\\"warn\\\"\" }, classAttribute: \"mat-tab-nav-bar mat-tab-header\" }, queries: [{ propertyName: \"_items\", predicate: i0.forwardRef(function () { return MatTabLink; }), descendants: true }], viewQueries: [{ propertyName: \"_inkBar\", first: true, predicate: MatInkBar, descendants: true, static: true }, { propertyName: \"_tabListContainer\", first: true, predicate: [\"tabListContainer\"], descendants: true, static: true }, { propertyName: \"_tabList\", first: true, predicate: [\"tabList\"], descendants: true, static: true }, { propertyName: \"_tabListInner\", first: true, predicate: [\"tabListInner\"], descendants: true, static: true }, { propertyName: \"_nextPaginator\", first: true, predicate: [\"nextPaginator\"], descendants: true }, { propertyName: \"_previousPaginator\", first: true, predicate: [\"previousPaginator\"], descendants: true }], exportAs: [\"matTabNavBar\", \"matTabNav\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n #previousPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n (click)=\\\"_handlePaginatorClick('before')\\\"\\n (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\\n<div class=\\\"mat-tab-link-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n <div\\n class=\\\"mat-tab-list\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n #tabList\\n (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n <div class=\\\"mat-tab-links\\\" #tabListInner>\\n <ng-content></ng-content>\\n </div>\\n <mat-ink-bar></mat-ink-bar>\\n </div>\\n</div>\\n\\n<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n #nextPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n (click)=\\\"_handlePaginatorClick('after')\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\\n\"], directives: [{ type: i4.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i5.CdkObserveContent, selector: \"[cdkObserveContent]\", inputs: [\"cdkObserveContentDisabled\", \"debounce\"], outputs: [\"cdkObserveContent\"], exportAs: [\"cdkObserveContent\"] }, { type: MatInkBar, selector: \"mat-ink-bar\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabNav, decorators: [{\n type: Component,\n args: [{ selector: '[mat-tab-nav-bar]', exportAs: 'matTabNavBar, matTabNav', inputs: ['color'], host: {\n 'class': 'mat-tab-nav-bar mat-tab-header',\n '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',\n '[class.mat-tab-header-rtl]': \"_getLayoutDirection() == 'rtl'\",\n '[class.mat-primary]': 'color !== \"warn\" && color !== \"accent\"',\n '[class.mat-accent]': 'color === \"accent\"',\n '[class.mat-warn]': 'color === \"warn\"',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: \"<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\\\"\\n #previousPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollBefore || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollBefore\\\"\\n (click)=\\\"_handlePaginatorClick('before')\\\"\\n (mousedown)=\\\"_handlePaginatorPress('before', $event)\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\\n<div class=\\\"mat-tab-link-container\\\" #tabListContainer (keydown)=\\\"_handleKeydown($event)\\\">\\n <div\\n class=\\\"mat-tab-list\\\"\\n [class._mat-animation-noopable]=\\\"_animationMode === 'NoopAnimations'\\\"\\n #tabList\\n (cdkObserveContent)=\\\"_onContentChanges()\\\">\\n <div class=\\\"mat-tab-links\\\" #tabListInner>\\n <ng-content></ng-content>\\n </div>\\n <mat-ink-bar></mat-ink-bar>\\n </div>\\n</div>\\n\\n<div class=\\\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\\\"\\n #nextPaginator\\n aria-hidden=\\\"true\\\"\\n mat-ripple [matRippleDisabled]=\\\"_disableScrollAfter || disableRipple\\\"\\n [class.mat-tab-header-pagination-disabled]=\\\"_disableScrollAfter\\\"\\n (mousedown)=\\\"_handlePaginatorPress('after', $event)\\\"\\n (click)=\\\"_handlePaginatorClick('after')\\\"\\n (touchend)=\\\"_stopInterval()\\\">\\n <div class=\\\"mat-tab-header-pagination-chevron\\\"></div>\\n</div>\\n\", styles: [\".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.ViewportRuler }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { _items: [{\n type: ContentChildren,\n args: [forwardRef(() => MatTabLink), { descendants: true }]\n }], _inkBar: [{\n type: ViewChild,\n args: [MatInkBar, { static: true }]\n }], _tabListContainer: [{\n type: ViewChild,\n args: ['tabListContainer', { static: true }]\n }], _tabList: [{\n type: ViewChild,\n args: ['tabList', { static: true }]\n }], _tabListInner: [{\n type: ViewChild,\n args: ['tabListInner', { static: true }]\n }], _nextPaginator: [{\n type: ViewChild,\n args: ['nextPaginator']\n }], _previousPaginator: [{\n type: ViewChild,\n args: ['previousPaginator']\n }] } });\n// Boilerplate for applying mixins to MatTabLink.\nconst _MatTabLinkMixinBase = mixinTabIndex(mixinDisableRipple(mixinDisabled(class {\n})));\n/** Base class with all of the `MatTabLink` functionality. */\nclass _MatTabLinkBase extends _MatTabLinkMixinBase {\n constructor(_tabNavBar, \n /** @docs-private */ elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {\n super();\n this._tabNavBar = _tabNavBar;\n this.elementRef = elementRef;\n this._focusMonitor = _focusMonitor;\n /** Whether the tab link is active or not. */\n this._isActive = false;\n this.rippleConfig = globalRippleOptions || {};\n this.tabIndex = parseInt(tabIndex) || 0;\n if (animationMode === 'NoopAnimations') {\n this.rippleConfig.animation = { enterDuration: 0, exitDuration: 0 };\n }\n }\n /** Whether the link is active. */\n get active() {\n return this._isActive;\n }\n set active(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._isActive) {\n this._isActive = newValue;\n this._tabNavBar.updateActiveLink();\n }\n }\n /**\n * Whether ripples are disabled on interaction.\n * @docs-private\n */\n get rippleDisabled() {\n return (this.disabled ||\n this.disableRipple ||\n this._tabNavBar.disableRipple ||\n !!this.rippleConfig.disabled);\n }\n /** Focuses the tab link. */\n focus() {\n this.elementRef.nativeElement.focus();\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this.elementRef);\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this.elementRef);\n }\n _handleFocus() {\n // Since we allow navigation through tabbing in the nav bar, we\n // have to update the focused index whenever the link receives focus.\n this._tabNavBar.focusIndex = this._tabNavBar._items.toArray().indexOf(this);\n }\n}\n_MatTabLinkBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabLinkBase, deps: [{ token: _MatTabNavBase }, { token: i0.ElementRef }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\n_MatTabLinkBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTabLinkBase, inputs: { active: \"active\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTabLinkBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: _MatTabNavBase }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { active: [{\n type: Input\n }] } });\n/**\n * Link inside of a `mat-tab-nav-bar`.\n */\nclass MatTabLink extends _MatTabLinkBase {\n constructor(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {\n super(tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);\n this._tabLinkRipple = new RippleRenderer(this, ngZone, elementRef, platform);\n this._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._tabLinkRipple._removeTriggerEvents();\n }\n}\nMatTabLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLink, deps: [{ token: MatTabNav }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: MAT_RIPPLE_GLOBAL_OPTIONS, optional: true }, { token: 'tabindex', attribute: true }, { token: i7.FocusMonitor }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTabLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTabLink, selector: \"[mat-tab-link], [matTabLink]\", inputs: { disabled: \"disabled\", disableRipple: \"disableRipple\", tabIndex: \"tabIndex\" }, host: { listeners: { \"focus\": \"_handleFocus()\" }, properties: { \"attr.aria-current\": \"active ? \\\"page\\\" : null\", \"attr.aria-disabled\": \"disabled\", \"attr.tabIndex\": \"tabIndex\", \"class.mat-tab-disabled\": \"disabled\", \"class.mat-tab-label-active\": \"active\" }, classAttribute: \"mat-tab-link mat-focus-indicator\" }, exportAs: [\"matTabLink\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabLink, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-tab-link], [matTabLink]',\n exportAs: 'matTabLink',\n inputs: ['disabled', 'disableRipple', 'tabIndex'],\n host: {\n 'class': 'mat-tab-link mat-focus-indicator',\n '[attr.aria-current]': 'active ? \"page\" : null',\n '[attr.aria-disabled]': 'disabled',\n '[attr.tabIndex]': 'tabIndex',\n '[class.mat-tab-disabled]': 'disabled',\n '[class.mat-tab-label-active]': 'active',\n '(focus)': '_handleFocus()',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: MatTabNav }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_RIPPLE_GLOBAL_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i7.FocusMonitor }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatTabsModule {\n}\nMatTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabsModule, declarations: [MatTabGroup,\n MatTabLabel,\n MatTab,\n MatInkBar,\n MatTabLabelWrapper,\n MatTabNav,\n MatTabLink,\n MatTabBody,\n MatTabBodyPortal,\n MatTabHeader,\n MatTabContent], imports: [CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule], exports: [MatCommonModule,\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatTabNav,\n MatTabLink,\n MatTabContent] });\nMatTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabsModule, imports: [[\n CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule,\n ], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTabsModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [\n CommonModule,\n MatCommonModule,\n PortalModule,\n MatRippleModule,\n ObserversModule,\n A11yModule,\n ],\n // Don't export all components because some are only to be used internally.\n exports: [\n MatCommonModule,\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatTabNav,\n MatTabLink,\n MatTabContent,\n ],\n declarations: [\n MatTabGroup,\n MatTabLabel,\n MatTab,\n MatInkBar,\n MatTabLabelWrapper,\n MatTabNav,\n MatTabLink,\n MatTabBody,\n MatTabBodyPortal,\n MatTabHeader,\n MatTabContent,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_TAB, MAT_TABS_CONFIG, MAT_TAB_GROUP, MatInkBar, MatTab, MatTabBody, MatTabBodyPortal, MatTabChangeEvent, MatTabContent, MatTabGroup, MatTabHeader, MatTabLabel, MatTabLabelWrapper, MatTabLink, MatTabNav, MatTabsModule, _MAT_INK_BAR_POSITIONER, _MatTabBodyBase, _MatTabGroupBase, _MatTabHeaderBase, _MatTabLinkBase, _MatTabNavBase, matTabsAnimations };\n","import * as i1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayModule } from '@angular/cdk/overlay';\nimport * as i4 from '@angular/cdk/a11y';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport * as i7 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Input, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport * as i2 from '@angular/cdk/scrolling';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport * as i6 from '@angular/cdk/layout';\nimport { Breakpoints } from '@angular/cdk/layout';\nimport * as i3 from '@angular/cdk/platform';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { Subject } from 'rxjs';\nimport { takeUntil, take } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate, keyframes } from '@angular/animations';\nimport * as i5 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by MatTooltip.\n * @docs-private\n */\nconst matTooltipAnimations = {\n /** Animation that transitions a tooltip in and out. */\n tooltipState: trigger('state', [\n state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })),\n state('visible', style({ transform: 'scale(1)' })),\n transition('* => visible', animate('200ms cubic-bezier(0, 0, 0.2, 1)', keyframes([\n style({ opacity: 0, transform: 'scale(0)', offset: 0 }),\n style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),\n style({ opacity: 1, transform: 'scale(1)', offset: 1 }),\n ]))),\n transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))),\n ]),\n};\n\n/** Time in ms to throttle repositioning after scroll events. */\nconst SCROLL_THROTTLE_MS = 20;\n/**\n * CSS class that will be attached to the overlay panel.\n * @deprecated\n * @breaking-change 13.0.0 remove this variable\n */\nconst TOOLTIP_PANEL_CLASS = 'mat-tooltip-panel';\nconst PANEL_CLASS = 'tooltip-panel';\n/** Options used to bind passive event listeners. */\nconst passiveListenerOptions = normalizePassiveListenerOptions({ passive: true });\n/**\n * Time between the user putting the pointer on a tooltip\n * trigger and the long press event being fired.\n */\nconst LONGPRESS_DELAY = 500;\n/**\n * Creates an error to be thrown if the user supplied an invalid tooltip position.\n * @docs-private\n */\nfunction getMatTooltipInvalidPositionError(position) {\n return Error(`Tooltip position \"${position}\" is invalid.`);\n}\n/** Injection token that determines the scroll handling while a tooltip is visible. */\nconst MAT_TOOLTIP_SCROLL_STRATEGY = new InjectionToken('mat-tooltip-scroll-strategy');\n/** @docs-private */\nfunction MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition({ scrollThrottle: SCROLL_THROTTLE_MS });\n}\n/** @docs-private */\nconst MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_TOOLTIP_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY,\n};\n/** Injection token to be used to override the default options for `matTooltip`. */\nconst MAT_TOOLTIP_DEFAULT_OPTIONS = new InjectionToken('mat-tooltip-default-options', {\n providedIn: 'root',\n factory: MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY,\n});\n/** @docs-private */\nfunction MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY() {\n return {\n showDelay: 0,\n hideDelay: 0,\n touchendHideDelay: 1500,\n };\n}\nclass _MatTooltipBase {\n constructor(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, scrollStrategy, _dir, _defaultOptions, _document) {\n this._overlay = _overlay;\n this._elementRef = _elementRef;\n this._scrollDispatcher = _scrollDispatcher;\n this._viewContainerRef = _viewContainerRef;\n this._ngZone = _ngZone;\n this._platform = _platform;\n this._ariaDescriber = _ariaDescriber;\n this._focusMonitor = _focusMonitor;\n this._dir = _dir;\n this._defaultOptions = _defaultOptions;\n this._position = 'below';\n this._disabled = false;\n this._viewInitialized = false;\n this._pointerExitEventsInitialized = false;\n this._viewportMargin = 8;\n this._cssClassPrefix = 'mat';\n this._showDelay = this._defaultOptions.showDelay;\n this._hideDelay = this._defaultOptions.hideDelay;\n /**\n * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive\n * uses a long press gesture to show and hide, however it can conflict with the native browser\n * gestures. To work around the conflict, Angular Material disables native gestures on the\n * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable\n * elements). The different values for this option configure the touch event handling as follows:\n * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native\n * browser gestures on particular elements. In particular, it allows text selection on inputs\n * and textareas, and preserves the native browser dragging on elements marked as `draggable`.\n * - `on` - Enables touch gestures for all elements and disables native\n * browser gestures with no exceptions.\n * - `off` - Disables touch gestures. Note that this will prevent the tooltip from\n * showing on touch devices.\n */\n this.touchGestures = 'auto';\n this._message = '';\n /** Manually-bound passive event listeners. */\n this._passiveListeners = [];\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /**\n * Handles the keydown events on the host element.\n * Needs to be an arrow function so that we can use it in addEventListener.\n */\n this._handleKeydown = (event) => {\n if (this._isTooltipVisible() && event.keyCode === ESCAPE && !hasModifierKey(event)) {\n event.preventDefault();\n event.stopPropagation();\n this._ngZone.run(() => this.hide(0));\n }\n };\n this._scrollStrategy = scrollStrategy;\n this._document = _document;\n if (_defaultOptions) {\n if (_defaultOptions.position) {\n this.position = _defaultOptions.position;\n }\n if (_defaultOptions.touchGestures) {\n this.touchGestures = _defaultOptions.touchGestures;\n }\n }\n _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n if (this._overlayRef) {\n this._updatePosition(this._overlayRef);\n }\n });\n _ngZone.runOutsideAngular(() => {\n _elementRef.nativeElement.addEventListener('keydown', this._handleKeydown);\n });\n }\n /** Allows the user to define the position of the tooltip relative to the parent element */\n get position() {\n return this._position;\n }\n set position(value) {\n var _a;\n if (value !== this._position) {\n this._position = value;\n if (this._overlayRef) {\n this._updatePosition(this._overlayRef);\n (_a = this._tooltipInstance) === null || _a === void 0 ? void 0 : _a.show(0);\n this._overlayRef.updatePosition();\n }\n }\n }\n /** Disables the display of the tooltip. */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n // If tooltip is disabled, hide immediately.\n if (this._disabled) {\n this.hide(0);\n }\n else {\n this._setupPointerEnterEventsIfNeeded();\n }\n }\n /** The default delay in ms before showing the tooltip after show is called */\n get showDelay() {\n return this._showDelay;\n }\n set showDelay(value) {\n this._showDelay = coerceNumberProperty(value);\n }\n /** The default delay in ms before hiding the tooltip after hide is called */\n get hideDelay() {\n return this._hideDelay;\n }\n set hideDelay(value) {\n this._hideDelay = coerceNumberProperty(value);\n }\n /** The message to be displayed in the tooltip */\n get message() {\n return this._message;\n }\n set message(value) {\n this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message, 'tooltip');\n // If the message is not a string (e.g. number), convert it to a string and trim it.\n // Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises\n // away the string-conversion: https://github.com/angular/components/issues/20684\n this._message = value != null ? String(value).trim() : '';\n if (!this._message && this._isTooltipVisible()) {\n this.hide(0);\n }\n else {\n this._setupPointerEnterEventsIfNeeded();\n this._updateTooltipMessage();\n this._ngZone.runOutsideAngular(() => {\n // The `AriaDescriber` has some functionality that avoids adding a description if it's the\n // same as the `aria-label` of an element, however we can't know whether the tooltip trigger\n // has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the\n // issue by deferring the description by a tick so Angular has time to set the `aria-label`.\n Promise.resolve().then(() => {\n this._ariaDescriber.describe(this._elementRef.nativeElement, this.message, 'tooltip');\n });\n });\n }\n }\n /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */\n get tooltipClass() {\n return this._tooltipClass;\n }\n set tooltipClass(value) {\n this._tooltipClass = value;\n if (this._tooltipInstance) {\n this._setTooltipClass(this._tooltipClass);\n }\n }\n ngAfterViewInit() {\n // This needs to happen after view init so the initial values for all inputs have been set.\n this._viewInitialized = true;\n this._setupPointerEnterEventsIfNeeded();\n this._focusMonitor\n .monitor(this._elementRef)\n .pipe(takeUntil(this._destroyed))\n .subscribe(origin => {\n // Note that the focus monitor runs outside the Angular zone.\n if (!origin) {\n this._ngZone.run(() => this.hide(0));\n }\n else if (origin === 'keyboard') {\n this._ngZone.run(() => this.show());\n }\n });\n }\n /**\n * Dispose the tooltip when destroyed.\n */\n ngOnDestroy() {\n const nativeElement = this._elementRef.nativeElement;\n clearTimeout(this._touchstartTimeout);\n if (this._overlayRef) {\n this._overlayRef.dispose();\n this._tooltipInstance = null;\n }\n // Clean up the event listeners set in the constructor\n nativeElement.removeEventListener('keydown', this._handleKeydown);\n this._passiveListeners.forEach(([event, listener]) => {\n nativeElement.removeEventListener(event, listener, passiveListenerOptions);\n });\n this._passiveListeners.length = 0;\n this._destroyed.next();\n this._destroyed.complete();\n this._ariaDescriber.removeDescription(nativeElement, this.message, 'tooltip');\n this._focusMonitor.stopMonitoring(nativeElement);\n }\n /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n show(delay = this.showDelay) {\n if (this.disabled ||\n !this.message ||\n (this._isTooltipVisible() &&\n !this._tooltipInstance._showTimeoutId &&\n !this._tooltipInstance._hideTimeoutId)) {\n return;\n }\n const overlayRef = this._createOverlay();\n this._detach();\n this._portal =\n this._portal || new ComponentPortal(this._tooltipComponent, this._viewContainerRef);\n this._tooltipInstance = overlayRef.attach(this._portal).instance;\n this._tooltipInstance\n .afterHidden()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this._detach());\n this._setTooltipClass(this._tooltipClass);\n this._updateTooltipMessage();\n this._tooltipInstance.show(delay);\n }\n /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */\n hide(delay = this.hideDelay) {\n if (this._tooltipInstance) {\n this._tooltipInstance.hide(delay);\n }\n }\n /** Shows/hides the tooltip */\n toggle() {\n this._isTooltipVisible() ? this.hide() : this.show();\n }\n /** Returns true if the tooltip is currently visible to the user */\n _isTooltipVisible() {\n return !!this._tooltipInstance && this._tooltipInstance.isVisible();\n }\n /** Create the overlay config and position strategy */\n _createOverlay() {\n if (this._overlayRef) {\n return this._overlayRef;\n }\n const scrollableAncestors = this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);\n // Create connected position strategy that listens for scroll events to reposition.\n const strategy = this._overlay\n .position()\n .flexibleConnectedTo(this._elementRef)\n .withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`)\n .withFlexibleDimensions(false)\n .withViewportMargin(this._viewportMargin)\n .withScrollableContainers(scrollableAncestors);\n strategy.positionChanges.pipe(takeUntil(this._destroyed)).subscribe(change => {\n this._updateCurrentPositionClass(change.connectionPair);\n if (this._tooltipInstance) {\n if (change.scrollableViewProperties.isOverlayClipped && this._tooltipInstance.isVisible()) {\n // After position changes occur and the overlay is clipped by\n // a parent scrollable then close the tooltip.\n this._ngZone.run(() => this.hide(0));\n }\n }\n });\n this._overlayRef = this._overlay.create({\n direction: this._dir,\n positionStrategy: strategy,\n panelClass: `${this._cssClassPrefix}-${PANEL_CLASS}`,\n scrollStrategy: this._scrollStrategy(),\n });\n this._updatePosition(this._overlayRef);\n this._overlayRef\n .detachments()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this._detach());\n this._overlayRef\n .outsidePointerEvents()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => { var _a; return (_a = this._tooltipInstance) === null || _a === void 0 ? void 0 : _a._handleBodyInteraction(); });\n return this._overlayRef;\n }\n /** Detaches the currently-attached tooltip. */\n _detach() {\n if (this._overlayRef && this._overlayRef.hasAttached()) {\n this._overlayRef.detach();\n }\n this._tooltipInstance = null;\n }\n /** Updates the position of the current tooltip. */\n _updatePosition(overlayRef) {\n const position = overlayRef.getConfig().positionStrategy;\n const origin = this._getOrigin();\n const overlay = this._getOverlayPosition();\n position.withPositions([\n this._addOffset(Object.assign(Object.assign({}, origin.main), overlay.main)),\n this._addOffset(Object.assign(Object.assign({}, origin.fallback), overlay.fallback)),\n ]);\n }\n /** Adds the configured offset to a position. Used as a hook for child classes. */\n _addOffset(position) {\n return position;\n }\n /**\n * Returns the origin position and a fallback position based on the user's position preference.\n * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).\n */\n _getOrigin() {\n const isLtr = !this._dir || this._dir.value == 'ltr';\n const position = this.position;\n let originPosition;\n if (position == 'above' || position == 'below') {\n originPosition = { originX: 'center', originY: position == 'above' ? 'top' : 'bottom' };\n }\n else if (position == 'before' ||\n (position == 'left' && isLtr) ||\n (position == 'right' && !isLtr)) {\n originPosition = { originX: 'start', originY: 'center' };\n }\n else if (position == 'after' ||\n (position == 'right' && isLtr) ||\n (position == 'left' && !isLtr)) {\n originPosition = { originX: 'end', originY: 'center' };\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw getMatTooltipInvalidPositionError(position);\n }\n const { x, y } = this._invertPosition(originPosition.originX, originPosition.originY);\n return {\n main: originPosition,\n fallback: { originX: x, originY: y },\n };\n }\n /** Returns the overlay position and a fallback position based on the user's preference */\n _getOverlayPosition() {\n const isLtr = !this._dir || this._dir.value == 'ltr';\n const position = this.position;\n let overlayPosition;\n if (position == 'above') {\n overlayPosition = { overlayX: 'center', overlayY: 'bottom' };\n }\n else if (position == 'below') {\n overlayPosition = { overlayX: 'center', overlayY: 'top' };\n }\n else if (position == 'before' ||\n (position == 'left' && isLtr) ||\n (position == 'right' && !isLtr)) {\n overlayPosition = { overlayX: 'end', overlayY: 'center' };\n }\n else if (position == 'after' ||\n (position == 'right' && isLtr) ||\n (position == 'left' && !isLtr)) {\n overlayPosition = { overlayX: 'start', overlayY: 'center' };\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw getMatTooltipInvalidPositionError(position);\n }\n const { x, y } = this._invertPosition(overlayPosition.overlayX, overlayPosition.overlayY);\n return {\n main: overlayPosition,\n fallback: { overlayX: x, overlayY: y },\n };\n }\n /** Updates the tooltip message and repositions the overlay according to the new message length */\n _updateTooltipMessage() {\n // Must wait for the message to be painted to the tooltip so that the overlay can properly\n // calculate the correct positioning based on the size of the text.\n if (this._tooltipInstance) {\n this._tooltipInstance.message = this.message;\n this._tooltipInstance._markForCheck();\n this._ngZone.onMicrotaskEmpty.pipe(take(1), takeUntil(this._destroyed)).subscribe(() => {\n if (this._tooltipInstance) {\n this._overlayRef.updatePosition();\n }\n });\n }\n }\n /** Updates the tooltip class */\n _setTooltipClass(tooltipClass) {\n if (this._tooltipInstance) {\n this._tooltipInstance.tooltipClass = tooltipClass;\n this._tooltipInstance._markForCheck();\n }\n }\n /** Inverts an overlay position. */\n _invertPosition(x, y) {\n if (this.position === 'above' || this.position === 'below') {\n if (y === 'top') {\n y = 'bottom';\n }\n else if (y === 'bottom') {\n y = 'top';\n }\n }\n else {\n if (x === 'end') {\n x = 'start';\n }\n else if (x === 'start') {\n x = 'end';\n }\n }\n return { x, y };\n }\n /** Updates the class on the overlay panel based on the current position of the tooltip. */\n _updateCurrentPositionClass(connectionPair) {\n const { overlayY, originX, originY } = connectionPair;\n let newPosition;\n // If the overlay is in the middle along the Y axis,\n // it means that it's either before or after.\n if (overlayY === 'center') {\n // Note that since this information is used for styling, we want to\n // resolve `start` and `end` to their real values, otherwise consumers\n // would have to remember to do it themselves on each consumption.\n if (this._dir && this._dir.value === 'rtl') {\n newPosition = originX === 'end' ? 'left' : 'right';\n }\n else {\n newPosition = originX === 'start' ? 'left' : 'right';\n }\n }\n else {\n newPosition = overlayY === 'bottom' && originY === 'top' ? 'above' : 'below';\n }\n if (newPosition !== this._currentPosition) {\n const overlayRef = this._overlayRef;\n if (overlayRef) {\n const classPrefix = `${this._cssClassPrefix}-${PANEL_CLASS}-`;\n overlayRef.removePanelClass(classPrefix + this._currentPosition);\n overlayRef.addPanelClass(classPrefix + newPosition);\n }\n this._currentPosition = newPosition;\n }\n }\n /** Binds the pointer events to the tooltip trigger. */\n _setupPointerEnterEventsIfNeeded() {\n // Optimization: Defer hooking up events if there's no message or the tooltip is disabled.\n if (this._disabled ||\n !this.message ||\n !this._viewInitialized ||\n this._passiveListeners.length) {\n return;\n }\n // The mouse events shouldn't be bound on mobile devices, because they can prevent the\n // first tap from firing its click event or can cause the tooltip to open for clicks.\n if (this._platformSupportsMouseEvents()) {\n this._passiveListeners.push([\n 'mouseenter',\n () => {\n this._setupPointerExitEventsIfNeeded();\n this.show();\n },\n ]);\n }\n else if (this.touchGestures !== 'off') {\n this._disableNativeGesturesIfNecessary();\n this._passiveListeners.push([\n 'touchstart',\n () => {\n // Note that it's important that we don't `preventDefault` here,\n // because it can prevent click events from firing on the element.\n this._setupPointerExitEventsIfNeeded();\n clearTimeout(this._touchstartTimeout);\n this._touchstartTimeout = setTimeout(() => this.show(), LONGPRESS_DELAY);\n },\n ]);\n }\n this._addListeners(this._passiveListeners);\n }\n _setupPointerExitEventsIfNeeded() {\n if (this._pointerExitEventsInitialized) {\n return;\n }\n this._pointerExitEventsInitialized = true;\n const exitListeners = [];\n if (this._platformSupportsMouseEvents()) {\n exitListeners.push(['mouseleave', () => this.hide()], ['wheel', event => this._wheelListener(event)]);\n }\n else if (this.touchGestures !== 'off') {\n this._disableNativeGesturesIfNecessary();\n const touchendListener = () => {\n clearTimeout(this._touchstartTimeout);\n this.hide(this._defaultOptions.touchendHideDelay);\n };\n exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);\n }\n this._addListeners(exitListeners);\n this._passiveListeners.push(...exitListeners);\n }\n _addListeners(listeners) {\n listeners.forEach(([event, listener]) => {\n this._elementRef.nativeElement.addEventListener(event, listener, passiveListenerOptions);\n });\n }\n _platformSupportsMouseEvents() {\n return !this._platform.IOS && !this._platform.ANDROID;\n }\n /** Listener for the `wheel` event on the element. */\n _wheelListener(event) {\n if (this._isTooltipVisible()) {\n const elementUnderPointer = this._document.elementFromPoint(event.clientX, event.clientY);\n const element = this._elementRef.nativeElement;\n // On non-touch devices we depend on the `mouseleave` event to close the tooltip, but it\n // won't fire if the user scrolls away using the wheel without moving their cursor. We\n // work around it by finding the element under the user's cursor and closing the tooltip\n // if it's not the trigger.\n if (elementUnderPointer !== element && !element.contains(elementUnderPointer)) {\n this.hide();\n }\n }\n }\n /** Disables the native browser gestures, based on how the tooltip has been configured. */\n _disableNativeGesturesIfNecessary() {\n const gestures = this.touchGestures;\n if (gestures !== 'off') {\n const element = this._elementRef.nativeElement;\n const style = element.style;\n // If gestures are set to `auto`, we don't disable text selection on inputs and\n // textareas, because it prevents the user from typing into them on iOS Safari.\n if (gestures === 'on' || (element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA')) {\n style.userSelect =\n style.msUserSelect =\n style.webkitUserSelect =\n style.MozUserSelect =\n 'none';\n }\n // If we have `auto` gestures and the element uses native HTML dragging,\n // we don't set `-webkit-user-drag` because it prevents the native behavior.\n if (gestures === 'on' || !element.draggable) {\n style.webkitUserDrag = 'none';\n }\n style.touchAction = 'none';\n style.webkitTapHighlightColor = 'transparent';\n }\n }\n}\n_MatTooltipBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTooltipBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatTooltipBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatTooltipBase, inputs: { position: [\"matTooltipPosition\", \"position\"], disabled: [\"matTooltipDisabled\", \"disabled\"], showDelay: [\"matTooltipShowDelay\", \"showDelay\"], hideDelay: [\"matTooltipHideDelay\", \"hideDelay\"], touchGestures: [\"matTooltipTouchGestures\", \"touchGestures\"], message: [\"matTooltip\", \"message\"], tooltipClass: [\"matTooltipClass\", \"tooltipClass\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatTooltipBase, decorators: [{\n type: Directive\n }], ctorParameters: function () {\n return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: i4.AriaDescriber }, { type: i4.FocusMonitor }, { type: undefined }, { type: i5.Directionality }, { type: undefined }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n }, propDecorators: { position: [{\n type: Input,\n args: ['matTooltipPosition']\n }], disabled: [{\n type: Input,\n args: ['matTooltipDisabled']\n }], showDelay: [{\n type: Input,\n args: ['matTooltipShowDelay']\n }], hideDelay: [{\n type: Input,\n args: ['matTooltipHideDelay']\n }], touchGestures: [{\n type: Input,\n args: ['matTooltipTouchGestures']\n }], message: [{\n type: Input,\n args: ['matTooltip']\n }], tooltipClass: [{\n type: Input,\n args: ['matTooltipClass']\n }] } });\n/**\n * Directive that attaches a material design tooltip to the host element. Animates the showing and\n * hiding of a tooltip provided position (defaults to below the element).\n *\n * https://material.io/design/components/tooltips.html\n */\nclass MatTooltip extends _MatTooltipBase {\n constructor(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document) {\n super(overlay, elementRef, scrollDispatcher, viewContainerRef, ngZone, platform, ariaDescriber, focusMonitor, scrollStrategy, dir, defaultOptions, _document);\n this._tooltipComponent = TooltipComponent;\n }\n}\nMatTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltip, deps: [{ token: i1.Overlay }, { token: i0.ElementRef }, { token: i2.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: i0.NgZone }, { token: i3.Platform }, { token: i4.AriaDescriber }, { token: i4.FocusMonitor }, { token: MAT_TOOLTIP_SCROLL_STRATEGY }, { token: i5.Directionality, optional: true }, { token: MAT_TOOLTIP_DEFAULT_OPTIONS, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });\nMatTooltip.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTooltip, selector: \"[matTooltip]\", host: { classAttribute: \"mat-tooltip-trigger\" }, exportAs: [\"matTooltip\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltip, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTooltip]',\n exportAs: 'matTooltip',\n host: {\n 'class': 'mat-tooltip-trigger',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i1.Overlay }, { type: i0.ElementRef }, { type: i2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: i0.NgZone }, { type: i3.Platform }, { type: i4.AriaDescriber }, { type: i4.FocusMonitor }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_TOOLTIP_SCROLL_STRATEGY]\n }] }, { type: i5.Directionality, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_TOOLTIP_DEFAULT_OPTIONS]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\nclass _TooltipComponentBase {\n constructor(_changeDetectorRef) {\n this._changeDetectorRef = _changeDetectorRef;\n /** Property watched by the animation framework to show or hide the tooltip */\n this._visibility = 'initial';\n /** Whether interactions on the page should close the tooltip */\n this._closeOnInteraction = false;\n /** Subject for notifying that the tooltip has been hidden from the view */\n this._onHide = new Subject();\n }\n /**\n * Shows the tooltip with an animation originating from the provided origin\n * @param delay Amount of milliseconds to the delay showing the tooltip.\n */\n show(delay) {\n // Cancel the delayed hide if it is scheduled\n clearTimeout(this._hideTimeoutId);\n // Body interactions should cancel the tooltip if there is a delay in showing.\n this._closeOnInteraction = true;\n this._showTimeoutId = setTimeout(() => {\n this._visibility = 'visible';\n this._showTimeoutId = undefined;\n this._onShow();\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n }, delay);\n }\n /**\n * Begins the animation to hide the tooltip after the provided delay in ms.\n * @param delay Amount of milliseconds to delay showing the tooltip.\n */\n hide(delay) {\n // Cancel the delayed show if it is scheduled\n clearTimeout(this._showTimeoutId);\n this._hideTimeoutId = setTimeout(() => {\n this._visibility = 'hidden';\n this._hideTimeoutId = undefined;\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n }, delay);\n }\n /** Returns an observable that notifies when the tooltip has been hidden from view. */\n afterHidden() {\n return this._onHide;\n }\n /** Whether the tooltip is being displayed. */\n isVisible() {\n return this._visibility === 'visible';\n }\n ngOnDestroy() {\n clearTimeout(this._showTimeoutId);\n clearTimeout(this._hideTimeoutId);\n this._onHide.complete();\n }\n _animationStart() {\n this._closeOnInteraction = false;\n }\n _animationDone(event) {\n const toState = event.toState;\n if (toState === 'hidden' && !this.isVisible()) {\n this._onHide.next();\n }\n if (toState === 'visible' || toState === 'hidden') {\n this._closeOnInteraction = true;\n }\n }\n /**\n * Interactions on the HTML body should close the tooltip immediately as defined in the\n * material design spec.\n * https://material.io/design/components/tooltips.html#behavior\n */\n _handleBodyInteraction() {\n if (this._closeOnInteraction) {\n this.hide(0);\n }\n }\n /**\n * Marks that the tooltip needs to be checked in the next change detection run.\n * Mainly used for rendering the initial text before positioning a tooltip, which\n * can be problematic in components with OnPush change detection.\n */\n _markForCheck() {\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Callback for when the timeout in this.show() gets completed.\n * This method is only needed by the mdc-tooltip, and so it is only implemented\n * in the mdc-tooltip, not here.\n */\n _onShow() { }\n}\n_TooltipComponentBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _TooltipComponentBase, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });\n_TooltipComponentBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _TooltipComponentBase, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _TooltipComponentBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });\n/**\n * Internal component that wraps the tooltip's content.\n * @docs-private\n */\nclass TooltipComponent extends _TooltipComponentBase {\n constructor(changeDetectorRef, _breakpointObserver) {\n super(changeDetectorRef);\n this._breakpointObserver = _breakpointObserver;\n /** Stream that emits whether the user has a handset-sized display. */\n this._isHandset = this._breakpointObserver.observe(Breakpoints.Handset);\n }\n}\nTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i6.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });\nTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: TooltipComponent, selector: \"mat-tooltip-component\", host: { attributes: { \"aria-hidden\": \"true\" }, properties: { \"style.zoom\": \"_visibility === \\\"visible\\\" ? 1 : null\" } }, usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-tooltip\\\"\\n [ngClass]=\\\"tooltipClass\\\"\\n [class.mat-tooltip-handset]=\\\"(_isHandset | async)?.matches\\\"\\n [@state]=\\\"_visibility\\\"\\n (@state.start)=\\\"_animationStart()\\\"\\n (@state.done)=\\\"_animationDone($event)\\\">{{message}}</div>\\n\", styles: [\".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\\n\"], directives: [{ type: i7.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], pipes: { \"async\": i7.AsyncPipe }, animations: [matTooltipAnimations.tooltipState], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: TooltipComponent, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: [matTooltipAnimations.tooltipState], host: {\n // Forces the element to have a layout in IE and Edge. This fixes issues where the element\n // won't be rendered if the animations are disabled or there is no web animations polyfill.\n '[style.zoom]': '_visibility === \"visible\" ? 1 : null',\n 'aria-hidden': 'true',\n }, template: \"<div class=\\\"mat-tooltip\\\"\\n [ngClass]=\\\"tooltipClass\\\"\\n [class.mat-tooltip-handset]=\\\"(_isHandset | async)?.matches\\\"\\n [@state]=\\\"_visibility\\\"\\n (@state.start)=\\\"_animationStart()\\\"\\n (@state.done)=\\\"_animationDone($event)\\\">{{message}}</div>\\n\", styles: [\".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i6.BreakpointObserver }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatTooltipModule {\n}\nMatTooltipModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTooltipModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltipModule, declarations: [MatTooltip, TooltipComponent], imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule], exports: [MatTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule] });\nMatTooltipModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltipModule, providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[A11yModule, CommonModule, OverlayModule, MatCommonModule], MatCommonModule, CdkScrollableModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTooltipModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [A11yModule, CommonModule, OverlayModule, MatCommonModule],\n exports: [MatTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule],\n declarations: [MatTooltip, TooltipComponent],\n providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_TOOLTIP_DEFAULT_OPTIONS, MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY, MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER, MatTooltip, MatTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, _MatTooltipBase, _TooltipComponentBase, getMatTooltipInvalidPositionError, matTooltipAnimations };\n","import * as i6 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Optional, SkipSelf, InjectionToken, EventEmitter, Directive, Input, Output, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, NgModule } from '@angular/core';\nimport * as i4 from '@angular/material/core';\nimport { mixinDisabled, mixinInitialized, MatCommonModule } from '@angular/material/core';\nimport * as i5 from '@angular/material/button';\nimport { MatButtonModule } from '@angular/material/button';\nimport * as i3 from '@angular/material/select';\nimport { MatSelectModule } from '@angular/material/select';\nimport * as i7 from '@angular/material/tooltip';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Subject } from 'rxjs';\nimport * as i2 from '@angular/material/form-field';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * To modify the labels and text displayed, create a new instance of MatPaginatorIntl and\n * include it in a custom provider\n */\nclass MatPaginatorIntl {\n constructor() {\n /**\n * Stream to emit from when labels are changed. Use this to notify components when the labels have\n * changed after initialization.\n */\n this.changes = new Subject();\n /** A label for the page size selector. */\n this.itemsPerPageLabel = 'Items per page:';\n /** A label for the button that increments the current page. */\n this.nextPageLabel = 'Next page';\n /** A label for the button that decrements the current page. */\n this.previousPageLabel = 'Previous page';\n /** A label for the button that moves to the first page. */\n this.firstPageLabel = 'First page';\n /** A label for the button that moves to the last page. */\n this.lastPageLabel = 'Last page';\n /** A label for the range of items within the current page and the length of the whole list. */\n this.getRangeLabel = (page, pageSize, length) => {\n if (length == 0 || pageSize == 0) {\n return `0 of ${length}`;\n }\n length = Math.max(length, 0);\n const startIndex = page * pageSize;\n // If the start index exceeds the list length, do not try and fix the end index to the end.\n const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n return `${startIndex + 1} – ${endIndex} of ${length}`;\n };\n }\n}\nMatPaginatorIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMatPaginatorIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorIntl, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorIntl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/** @docs-private */\nfunction MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl) {\n return parentIntl || new MatPaginatorIntl();\n}\n/** @docs-private */\nconst MAT_PAGINATOR_INTL_PROVIDER = {\n // If there is already an MatPaginatorIntl available, use that. Otherwise, provide a new one.\n provide: MatPaginatorIntl,\n deps: [[new Optional(), new SkipSelf(), MatPaginatorIntl]],\n useFactory: MAT_PAGINATOR_INTL_PROVIDER_FACTORY,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The default page size if there is no page size and there are no provided page size options. */\nconst DEFAULT_PAGE_SIZE = 50;\n/**\n * Change event object that is emitted when the user selects a\n * different page size or navigates to another page.\n */\nclass PageEvent {\n}\n/** Injection token that can be used to provide the default options for the paginator module. */\nconst MAT_PAGINATOR_DEFAULT_OPTIONS = new InjectionToken('MAT_PAGINATOR_DEFAULT_OPTIONS');\n// Boilerplate for applying mixins to _MatPaginatorBase.\n/** @docs-private */\nconst _MatPaginatorMixinBase = mixinDisabled(mixinInitialized(class {\n}));\n/**\n * Base class with all of the `MatPaginator` functionality.\n * @docs-private\n */\nclass _MatPaginatorBase extends _MatPaginatorMixinBase {\n constructor(_intl, _changeDetectorRef, defaults) {\n super();\n this._intl = _intl;\n this._changeDetectorRef = _changeDetectorRef;\n this._pageIndex = 0;\n this._length = 0;\n this._pageSizeOptions = [];\n this._hidePageSize = false;\n this._showFirstLastButtons = false;\n /** Event emitted when the paginator changes the page size or page index. */\n this.page = new EventEmitter();\n this._intlChanges = _intl.changes.subscribe(() => this._changeDetectorRef.markForCheck());\n if (defaults) {\n const { pageSize, pageSizeOptions, hidePageSize, showFirstLastButtons } = defaults;\n if (pageSize != null) {\n this._pageSize = pageSize;\n }\n if (pageSizeOptions != null) {\n this._pageSizeOptions = pageSizeOptions;\n }\n if (hidePageSize != null) {\n this._hidePageSize = hidePageSize;\n }\n if (showFirstLastButtons != null) {\n this._showFirstLastButtons = showFirstLastButtons;\n }\n }\n }\n /** The zero-based page index of the displayed list of items. Defaulted to 0. */\n get pageIndex() {\n return this._pageIndex;\n }\n set pageIndex(value) {\n this._pageIndex = Math.max(coerceNumberProperty(value), 0);\n this._changeDetectorRef.markForCheck();\n }\n /** The length of the total number of items that are being paginated. Defaulted to 0. */\n get length() {\n return this._length;\n }\n set length(value) {\n this._length = coerceNumberProperty(value);\n this._changeDetectorRef.markForCheck();\n }\n /** Number of items to display on a page. By default set to 50. */\n get pageSize() {\n return this._pageSize;\n }\n set pageSize(value) {\n this._pageSize = Math.max(coerceNumberProperty(value), 0);\n this._updateDisplayedPageSizeOptions();\n }\n /** The set of provided page size options to display to the user. */\n get pageSizeOptions() {\n return this._pageSizeOptions;\n }\n set pageSizeOptions(value) {\n this._pageSizeOptions = (value || []).map(p => coerceNumberProperty(p));\n this._updateDisplayedPageSizeOptions();\n }\n /** Whether to hide the page size selection UI from the user. */\n get hidePageSize() {\n return this._hidePageSize;\n }\n set hidePageSize(value) {\n this._hidePageSize = coerceBooleanProperty(value);\n }\n /** Whether to show the first/last buttons UI to the user. */\n get showFirstLastButtons() {\n return this._showFirstLastButtons;\n }\n set showFirstLastButtons(value) {\n this._showFirstLastButtons = coerceBooleanProperty(value);\n }\n ngOnInit() {\n this._initialized = true;\n this._updateDisplayedPageSizeOptions();\n this._markInitialized();\n }\n ngOnDestroy() {\n this._intlChanges.unsubscribe();\n }\n /** Advances to the next page if it exists. */\n nextPage() {\n if (!this.hasNextPage()) {\n return;\n }\n const previousPageIndex = this.pageIndex;\n this.pageIndex = this.pageIndex + 1;\n this._emitPageEvent(previousPageIndex);\n }\n /** Move back to the previous page if it exists. */\n previousPage() {\n if (!this.hasPreviousPage()) {\n return;\n }\n const previousPageIndex = this.pageIndex;\n this.pageIndex = this.pageIndex - 1;\n this._emitPageEvent(previousPageIndex);\n }\n /** Move to the first page if not already there. */\n firstPage() {\n // hasPreviousPage being false implies at the start\n if (!this.hasPreviousPage()) {\n return;\n }\n const previousPageIndex = this.pageIndex;\n this.pageIndex = 0;\n this._emitPageEvent(previousPageIndex);\n }\n /** Move to the last page if not already there. */\n lastPage() {\n // hasNextPage being false implies at the end\n if (!this.hasNextPage()) {\n return;\n }\n const previousPageIndex = this.pageIndex;\n this.pageIndex = this.getNumberOfPages() - 1;\n this._emitPageEvent(previousPageIndex);\n }\n /** Whether there is a previous page. */\n hasPreviousPage() {\n return this.pageIndex >= 1 && this.pageSize != 0;\n }\n /** Whether there is a next page. */\n hasNextPage() {\n const maxPageIndex = this.getNumberOfPages() - 1;\n return this.pageIndex < maxPageIndex && this.pageSize != 0;\n }\n /** Calculate the number of pages */\n getNumberOfPages() {\n if (!this.pageSize) {\n return 0;\n }\n return Math.ceil(this.length / this.pageSize);\n }\n /**\n * Changes the page size so that the first item displayed on the page will still be\n * displayed using the new page size.\n *\n * For example, if the page size is 10 and on the second page (items indexed 10-19) then\n * switching so that the page size is 5 will set the third page as the current page so\n * that the 10th item will still be displayed.\n */\n _changePageSize(pageSize) {\n // Current page needs to be updated to reflect the new page size. Navigate to the page\n // containing the previous page's first item.\n const startIndex = this.pageIndex * this.pageSize;\n const previousPageIndex = this.pageIndex;\n this.pageIndex = Math.floor(startIndex / pageSize) || 0;\n this.pageSize = pageSize;\n this._emitPageEvent(previousPageIndex);\n }\n /** Checks whether the buttons for going forwards should be disabled. */\n _nextButtonsDisabled() {\n return this.disabled || !this.hasNextPage();\n }\n /** Checks whether the buttons for going backwards should be disabled. */\n _previousButtonsDisabled() {\n return this.disabled || !this.hasPreviousPage();\n }\n /**\n * Updates the list of page size options to display to the user. Includes making sure that\n * the page size is an option and that the list is sorted.\n */\n _updateDisplayedPageSizeOptions() {\n if (!this._initialized) {\n return;\n }\n // If no page size is provided, use the first page size option or the default page size.\n if (!this.pageSize) {\n this._pageSize =\n this.pageSizeOptions.length != 0 ? this.pageSizeOptions[0] : DEFAULT_PAGE_SIZE;\n }\n this._displayedPageSizeOptions = this.pageSizeOptions.slice();\n if (this._displayedPageSizeOptions.indexOf(this.pageSize) === -1) {\n this._displayedPageSizeOptions.push(this.pageSize);\n }\n // Sort the numbers using a number-specific sort function.\n this._displayedPageSizeOptions.sort((a, b) => a - b);\n this._changeDetectorRef.markForCheck();\n }\n /** Emits an event notifying that a change of the paginator's properties has been triggered. */\n _emitPageEvent(previousPageIndex) {\n this.page.emit({\n previousPageIndex,\n pageIndex: this.pageIndex,\n pageSize: this.pageSize,\n length: this.length,\n });\n }\n}\n_MatPaginatorBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatPaginatorBase, deps: \"invalid\", target: i0.ɵɵFactoryTarget.Directive });\n_MatPaginatorBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: _MatPaginatorBase, inputs: { color: \"color\", pageIndex: \"pageIndex\", length: \"length\", pageSize: \"pageSize\", pageSizeOptions: \"pageSizeOptions\", hidePageSize: \"hidePageSize\", showFirstLastButtons: \"showFirstLastButtons\" }, outputs: { page: \"page\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _MatPaginatorBase, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: MatPaginatorIntl }, { type: i0.ChangeDetectorRef }, { type: undefined }]; }, propDecorators: { color: [{\n type: Input\n }], pageIndex: [{\n type: Input\n }], length: [{\n type: Input\n }], pageSize: [{\n type: Input\n }], pageSizeOptions: [{\n type: Input\n }], hidePageSize: [{\n type: Input\n }], showFirstLastButtons: [{\n type: Input\n }], page: [{\n type: Output\n }] } });\n/**\n * Component to provide navigation between paged information. Displays the size of the current\n * page, user-selectable options to change that size, what items are being shown, and\n * navigational button to go to the previous or next page.\n */\nclass MatPaginator extends _MatPaginatorBase {\n constructor(intl, changeDetectorRef, defaults) {\n super(intl, changeDetectorRef, defaults);\n if (defaults && defaults.formFieldAppearance != null) {\n this._formFieldAppearance = defaults.formFieldAppearance;\n }\n }\n}\nMatPaginator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginator, deps: [{ token: MatPaginatorIntl }, { token: i0.ChangeDetectorRef }, { token: MAT_PAGINATOR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatPaginator.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatPaginator, selector: \"mat-paginator\", inputs: { disabled: \"disabled\" }, host: { attributes: { \"role\": \"group\" }, classAttribute: \"mat-paginator\" }, exportAs: [\"matPaginator\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-paginator-outer-container\\\">\\n <div class=\\\"mat-paginator-container\\\">\\n <div class=\\\"mat-paginator-page-size\\\" *ngIf=\\\"!hidePageSize\\\">\\n <div class=\\\"mat-paginator-page-size-label\\\">\\n {{_intl.itemsPerPageLabel}}\\n </div>\\n\\n <mat-form-field\\n *ngIf=\\\"_displayedPageSizeOptions.length > 1\\\"\\n [appearance]=\\\"_formFieldAppearance!\\\"\\n [color]=\\\"color\\\"\\n class=\\\"mat-paginator-page-size-select\\\">\\n <mat-select\\n [value]=\\\"pageSize\\\"\\n [disabled]=\\\"disabled\\\"\\n [aria-label]=\\\"_intl.itemsPerPageLabel\\\"\\n (selectionChange)=\\\"_changePageSize($event.value)\\\">\\n <mat-option *ngFor=\\\"let pageSizeOption of _displayedPageSizeOptions\\\" [value]=\\\"pageSizeOption\\\">\\n {{pageSizeOption}}\\n </mat-option>\\n </mat-select>\\n </mat-form-field>\\n\\n <div\\n class=\\\"mat-paginator-page-size-value\\\"\\n *ngIf=\\\"_displayedPageSizeOptions.length <= 1\\\">{{pageSize}}</div>\\n </div>\\n\\n <div class=\\\"mat-paginator-range-actions\\\">\\n <div class=\\\"mat-paginator-range-label\\\">\\n {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\\n </div>\\n\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-first\\\"\\n (click)=\\\"firstPage()\\\"\\n [attr.aria-label]=\\\"_intl.firstPageLabel\\\"\\n [matTooltip]=\\\"_intl.firstPageLabel\\\"\\n [matTooltipDisabled]=\\\"_previousButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_previousButtonsDisabled()\\\"\\n *ngIf=\\\"showFirstLastButtons\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-previous\\\"\\n (click)=\\\"previousPage()\\\"\\n [attr.aria-label]=\\\"_intl.previousPageLabel\\\"\\n [matTooltip]=\\\"_intl.previousPageLabel\\\"\\n [matTooltipDisabled]=\\\"_previousButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_previousButtonsDisabled()\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-next\\\"\\n (click)=\\\"nextPage()\\\"\\n [attr.aria-label]=\\\"_intl.nextPageLabel\\\"\\n [matTooltip]=\\\"_intl.nextPageLabel\\\"\\n [matTooltipDisabled]=\\\"_nextButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_nextButtonsDisabled()\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-last\\\"\\n (click)=\\\"lastPage()\\\"\\n [attr.aria-label]=\\\"_intl.lastPageLabel\\\"\\n [matTooltip]=\\\"_intl.lastPageLabel\\\"\\n [matTooltipDisabled]=\\\"_nextButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_nextButtonsDisabled()\\\"\\n *ngIf=\\\"showFirstLastButtons\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\\\"/>\\n </svg>\\n </button>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\\n\"], components: [{ type: i2.MatFormField, selector: \"mat-form-field\", inputs: [\"color\", \"appearance\", \"hideRequiredMarker\", \"hintLabel\", \"floatLabel\"], exportAs: [\"matFormField\"] }, { type: i3.MatSelect, selector: \"mat-select\", inputs: [\"disabled\", \"disableRipple\", \"tabIndex\"], exportAs: [\"matSelect\"] }, { type: i4.MatOption, selector: \"mat-option\", exportAs: [\"matOption\"] }, { type: i5.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], directives: [{ type: i6.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i6.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i7.MatTooltip, selector: \"[matTooltip]\", exportAs: [\"matTooltip\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginator, decorators: [{\n type: Component,\n args: [{ selector: 'mat-paginator', exportAs: 'matPaginator', inputs: ['disabled'], host: {\n 'class': 'mat-paginator',\n 'role': 'group',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"mat-paginator-outer-container\\\">\\n <div class=\\\"mat-paginator-container\\\">\\n <div class=\\\"mat-paginator-page-size\\\" *ngIf=\\\"!hidePageSize\\\">\\n <div class=\\\"mat-paginator-page-size-label\\\">\\n {{_intl.itemsPerPageLabel}}\\n </div>\\n\\n <mat-form-field\\n *ngIf=\\\"_displayedPageSizeOptions.length > 1\\\"\\n [appearance]=\\\"_formFieldAppearance!\\\"\\n [color]=\\\"color\\\"\\n class=\\\"mat-paginator-page-size-select\\\">\\n <mat-select\\n [value]=\\\"pageSize\\\"\\n [disabled]=\\\"disabled\\\"\\n [aria-label]=\\\"_intl.itemsPerPageLabel\\\"\\n (selectionChange)=\\\"_changePageSize($event.value)\\\">\\n <mat-option *ngFor=\\\"let pageSizeOption of _displayedPageSizeOptions\\\" [value]=\\\"pageSizeOption\\\">\\n {{pageSizeOption}}\\n </mat-option>\\n </mat-select>\\n </mat-form-field>\\n\\n <div\\n class=\\\"mat-paginator-page-size-value\\\"\\n *ngIf=\\\"_displayedPageSizeOptions.length <= 1\\\">{{pageSize}}</div>\\n </div>\\n\\n <div class=\\\"mat-paginator-range-actions\\\">\\n <div class=\\\"mat-paginator-range-label\\\">\\n {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\\n </div>\\n\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-first\\\"\\n (click)=\\\"firstPage()\\\"\\n [attr.aria-label]=\\\"_intl.firstPageLabel\\\"\\n [matTooltip]=\\\"_intl.firstPageLabel\\\"\\n [matTooltipDisabled]=\\\"_previousButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_previousButtonsDisabled()\\\"\\n *ngIf=\\\"showFirstLastButtons\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-previous\\\"\\n (click)=\\\"previousPage()\\\"\\n [attr.aria-label]=\\\"_intl.previousPageLabel\\\"\\n [matTooltip]=\\\"_intl.previousPageLabel\\\"\\n [matTooltipDisabled]=\\\"_previousButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_previousButtonsDisabled()\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-next\\\"\\n (click)=\\\"nextPage()\\\"\\n [attr.aria-label]=\\\"_intl.nextPageLabel\\\"\\n [matTooltip]=\\\"_intl.nextPageLabel\\\"\\n [matTooltipDisabled]=\\\"_nextButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_nextButtonsDisabled()\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\\\"/>\\n </svg>\\n </button>\\n <button mat-icon-button type=\\\"button\\\"\\n class=\\\"mat-paginator-navigation-last\\\"\\n (click)=\\\"lastPage()\\\"\\n [attr.aria-label]=\\\"_intl.lastPageLabel\\\"\\n [matTooltip]=\\\"_intl.lastPageLabel\\\"\\n [matTooltipDisabled]=\\\"_nextButtonsDisabled()\\\"\\n [matTooltipPosition]=\\\"'above'\\\"\\n [disabled]=\\\"_nextButtonsDisabled()\\\"\\n *ngIf=\\\"showFirstLastButtons\\\">\\n <svg class=\\\"mat-paginator-icon\\\" viewBox=\\\"0 0 24 24\\\" focusable=\\\"false\\\">\\n <path d=\\\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\\\"/>\\n </svg>\\n </button>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatPaginatorIntl }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_PAGINATOR_DEFAULT_OPTIONS]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatPaginatorModule {\n}\nMatPaginatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatPaginatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorModule, declarations: [MatPaginator], imports: [CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule], exports: [MatPaginator] });\nMatPaginatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorModule, providers: [MAT_PAGINATOR_INTL_PROVIDER], imports: [[CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatPaginatorModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatButtonModule, MatSelectModule, MatTooltipModule, MatCommonModule],\n exports: [MatPaginator],\n declarations: [MatPaginator],\n providers: [MAT_PAGINATOR_INTL_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_PAGINATOR_DEFAULT_OPTIONS, MAT_PAGINATOR_INTL_PROVIDER, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MatPaginator, MatPaginatorIntl, MatPaginatorModule, PageEvent, _MatPaginatorBase };\n","import { Injectable } from '@angular/core';\nimport { MatPaginatorIntl } from '@angular/material/paginator';\n@Injectable()\nexport class MatPaginatorIntlCro extends MatPaginatorIntl {\n itemsPerPageLabel = 'Results per page';\n /** A label for the button that increments the current page. */\n nextPageLabel = '';\n /** A label for the button that decrements the current page. */\n previousPageLabel = '';\n /** A label for the button that moves to the first page. */\n firstPageLabel = '';\n /** A label for the button that moves to the last page. */\n lastPageLabel = '';\n getRangeLabel: any = (page: number, pageSize: number, length: number) =>\n // tslint:disable-next-line: semicolon\n `Page ${page + 1} of ${Math.ceil(length / pageSize)}`;\n}\n","import { MatRadioModule } from '@angular/material/radio';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { NgModule } from '@angular/core';\nimport { MatPaginatorIntlCro } from '../../../shared/modules/paginator-label-overrides';\nimport { MatPaginatorIntl } from '@angular/material/paginator';\n@NgModule({\n imports: [\n MatButtonModule,\n MatCheckboxModule,\n MatChipsModule,\n MatCardModule,\n MatDatepickerModule,\n MatDialogModule,\n MatNativeDateModule,\n MatFormFieldModule,\n MatInputModule,\n MatSelectModule,\n MatSlideToggleModule,\n MatTabsModule,\n MatIconModule,\n MatStepperModule,\n MatGridListModule,\n MatMenuModule,\n MatProgressSpinnerModule,\n MatRadioModule\n ],\n exports: [\n MatButtonModule,\n MatCheckboxModule,\n MatChipsModule,\n MatCardModule,\n MatDatepickerModule,\n MatDialogModule,\n MatNativeDateModule,\n MatFormFieldModule,\n MatInputModule,\n MatSelectModule,\n MatSlideToggleModule,\n MatTabsModule,\n MatIconModule,\n MatStepperModule,\n MatGridListModule,\n MatMenuModule,\n MatProgressSpinnerModule,\n MatRadioModule\n ],\n providers: [{ provide: MatPaginatorIntl, useClass: MatPaginatorIntlCro }]\n})\nexport class MaterialModule {}\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { NgZone, Injectable, NgModule } from '@angular/core';\nimport { Store, Action, Selector, State, NgxsModule } from '@ngxs/store';\nimport { __decorate, __metadata } from 'tslib';\nimport { NavigationStart, RoutesRecognized, ResolveEnd, NavigationCancel, NavigationError, NavigationEnd, Router, UrlSerializer } from '@angular/router';\nimport { LocationStrategy, Location } from '@angular/common';\nimport { isAngularInTestMode } from '@ngxs/store/internals';\nimport { first } from 'rxjs/operators';\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Public event api of the router\r\n */\r\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ngxs/store';\nimport * as ɵngcc2 from '@angular/router';\nimport * as ɵngcc3 from '@angular/common';\nclass Navigate {\r\n /**\r\n * @param {?} path\r\n * @param {?=} queryParams\r\n * @param {?=} extras\r\n */\r\n constructor(path, queryParams, extras) {\r\n this.path = path;\r\n this.queryParams = queryParams;\r\n this.extras = extras;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Router] Navigate';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n Navigate.prototype.path;\r\n /** @type {?} */\r\n Navigate.prototype.queryParams;\r\n /** @type {?} */\r\n Navigate.prototype.extras;\r\n}\r\n/**\r\n *\r\n * Angular Routers internal state events\r\n *\r\n */\r\n/**\r\n * An action dispatched when the router navigates.\r\n * @template T\r\n */\r\nclass RouterNavigation {\r\n /**\r\n * @param {?} routerState\r\n * @param {?} event\r\n * @param {?=} trigger\r\n */\r\n constructor(routerState, event, trigger = 'none') {\r\n this.routerState = routerState;\r\n this.event = event;\r\n this.trigger = trigger;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Router] RouterNavigation';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n RouterNavigation.prototype.routerState;\r\n /** @type {?} */\r\n RouterNavigation.prototype.event;\r\n /** @type {?} */\r\n RouterNavigation.prototype.trigger;\r\n}\r\n/**\r\n * An action dispatched when the router cancel navigation.\r\n * @template T, V\r\n */\r\nclass RouterCancel {\r\n /**\r\n * @param {?} routerState\r\n * @param {?} storeState\r\n * @param {?} event\r\n * @param {?=} trigger\r\n */\r\n constructor(routerState, storeState, event, trigger = 'none') {\r\n this.routerState = routerState;\r\n this.storeState = storeState;\r\n this.event = event;\r\n this.trigger = trigger;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Router] RouterCancel';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n RouterCancel.prototype.routerState;\r\n /** @type {?} */\r\n RouterCancel.prototype.storeState;\r\n /** @type {?} */\r\n RouterCancel.prototype.event;\r\n /** @type {?} */\r\n RouterCancel.prototype.trigger;\r\n}\r\n/**\r\n * An action dispatched when the router errors.\r\n * @template T, V\r\n */\r\nclass RouterError {\r\n /**\r\n * @param {?} routerState\r\n * @param {?} storeState\r\n * @param {?} event\r\n * @param {?=} trigger\r\n */\r\n constructor(routerState, storeState, event, trigger = 'none') {\r\n this.routerState = routerState;\r\n this.storeState = storeState;\r\n this.event = event;\r\n this.trigger = trigger;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Router] RouterError';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n RouterError.prototype.routerState;\r\n /** @type {?} */\r\n RouterError.prototype.storeState;\r\n /** @type {?} */\r\n RouterError.prototype.event;\r\n /** @type {?} */\r\n RouterError.prototype.trigger;\r\n}\r\n/**\r\n * An action dispatched when the `ResolveEnd` event is triggered.\r\n * @template T\r\n */\r\nclass RouterDataResolved {\r\n /**\r\n * @param {?} routerState\r\n * @param {?} event\r\n * @param {?=} trigger\r\n */\r\n constructor(routerState, event, trigger = 'none') {\r\n this.routerState = routerState;\r\n this.event = event;\r\n this.trigger = trigger;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Router] RouterDataResolved';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n RouterDataResolved.prototype.routerState;\r\n /** @type {?} */\r\n RouterDataResolved.prototype.event;\r\n /** @type {?} */\r\n RouterDataResolved.prototype.trigger;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @abstract\r\n * @template T\r\n */\r\nclass RouterStateSerializer {\r\n}\r\nif (false) {\r\n /**\r\n * @abstract\r\n * @param {?} routerState\r\n * @return {?}\r\n */\r\n RouterStateSerializer.prototype.serialize = function (routerState) { };\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction SerializedRouterStateSnapshot() { }\r\nif (false) {\r\n /** @type {?} */\r\n SerializedRouterStateSnapshot.prototype.root;\r\n /** @type {?} */\r\n SerializedRouterStateSnapshot.prototype.url;\r\n}\r\nclass DefaultRouterStateSerializer {\r\n /**\r\n * @param {?} routerState\r\n * @return {?}\r\n */\r\n serialize(routerState) {\r\n return {\r\n root: this.serializeRoute(routerState.root),\r\n url: routerState.url\r\n };\r\n }\r\n /**\r\n * @private\r\n * @param {?} route\r\n * @return {?}\r\n */\r\n serializeRoute(route) {\r\n /** @type {?} */\r\n const children = route.children.map((/**\r\n * @param {?} c\r\n * @return {?}\r\n */\r\n c => this.serializeRoute(c)));\r\n return {\r\n url: route.url,\r\n params: route.params,\r\n queryParams: route.queryParams,\r\n fragment: route.fragment,\r\n data: route.data,\r\n outlet: route.outlet,\r\n component: null,\r\n routeConfig: null,\r\n root: (/** @type {?} */ (null)),\r\n parent: null,\r\n firstChild: children[0],\r\n children: children,\r\n pathFromRoot: (/** @type {?} */ (null)),\r\n paramMap: route.paramMap,\r\n queryParamMap: route.queryParamMap,\r\n toString: route.toString\r\n };\r\n }\r\n}\n\nvar RouterState_1;\r\n/**\r\n * @record\r\n * @template T\r\n */\r\nfunction RouterStateModel() { }\r\nif (false) {\r\n /** @type {?|undefined} */\r\n RouterStateModel.prototype.state;\r\n /** @type {?|undefined} */\r\n RouterStateModel.prototype.navigationId;\r\n /** @type {?} */\r\n RouterStateModel.prototype.trigger;\r\n}\r\nlet RouterState = RouterState_1 = class RouterState {\r\n /**\r\n * @param {?} _store\r\n * @param {?} _router\r\n * @param {?} _serializer\r\n * @param {?} _ngZone\r\n * @param {?} _urlSerializer\r\n * @param {?} _locationStrategy\r\n * @param {?} _location\r\n */\r\n constructor(_store, _router, _serializer, _ngZone, _urlSerializer, _locationStrategy, _location) {\r\n this._store = _store;\r\n this._router = _router;\r\n this._serializer = _serializer;\r\n this._ngZone = _ngZone;\r\n this._urlSerializer = _urlSerializer;\r\n this._locationStrategy = _locationStrategy;\r\n this._location = _location;\r\n /**\r\n * Determines how navigation was performed by the `RouterState` itself\r\n * or outside via `new Navigate(...)`\r\n */\r\n this._trigger = 'none';\r\n /**\r\n * That's the serialized state from the `Router` class\r\n */\r\n this._routerState = null;\r\n /**\r\n * That's the value of the `RouterState` state\r\n */\r\n this._storeState = null;\r\n this._lastRoutesRecognized = (/** @type {?} */ (null));\r\n this.setUpStoreListener();\r\n this.setUpRouterEventsListener();\r\n this.checkInitialNavigationOnce();\r\n }\r\n /**\r\n * @template T\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n static state(state) {\r\n return state && state.state;\r\n }\r\n /**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n static url(state) {\r\n return state && state.state && state.state.url;\r\n }\r\n /**\r\n * @param {?} _\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n navigate(_, action) {\r\n return this._ngZone.run((/**\r\n * @return {?}\r\n */\r\n () => this._router.navigate(action.path, Object.assign({ queryParams: action.queryParams }, action.extras))));\r\n }\r\n /**\r\n * @param {?} ctx\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n angularRouterAction(ctx, action) {\r\n ctx.setState(Object.assign({}, ctx.getState(), { trigger: action.trigger, state: action.routerState, navigationId: action.event.id }));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n setUpStoreListener() {\r\n this._store.select(RouterState_1).subscribe((/**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n (state) => {\r\n this.navigateIfNeeded(state);\r\n }));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n setUpRouterEventsListener() {\r\n this._router.events.subscribe((/**\r\n * @param {?} event\r\n * @return {?}\r\n */\r\n event => {\r\n if (event instanceof NavigationStart) {\r\n this.navigationStart();\r\n }\r\n else if (event instanceof RoutesRecognized) {\r\n this._lastRoutesRecognized = event;\r\n }\r\n else if (event instanceof ResolveEnd) {\r\n this.dispatchRouterDataResolved(event);\r\n }\r\n else if (event instanceof NavigationCancel) {\r\n this.dispatchRouterCancel(event);\r\n this.reset();\r\n }\r\n else if (event instanceof NavigationError) {\r\n this.dispatchRouterError(event);\r\n this.reset();\r\n }\r\n else if (event instanceof NavigationEnd) {\r\n this.navigationEnd();\r\n this.reset();\r\n }\r\n }));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n navigationStart() {\r\n this._routerState = this._serializer.serialize(this._router.routerState.snapshot);\r\n if (this._trigger !== 'none') {\r\n this._storeState = this._store.selectSnapshot(RouterState_1);\r\n }\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n navigationEnd() {\r\n if (this.shouldDispatchRouterNavigation()) {\r\n this.dispatchRouterNavigation();\r\n }\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n shouldDispatchRouterNavigation() {\r\n if (!this._storeState)\r\n return true;\r\n return this._trigger !== 'store';\r\n }\r\n /**\r\n * @private\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n navigateIfNeeded(state) {\r\n /** @type {?} */\r\n const canSkipNavigation = !this._storeState ||\r\n !this._storeState.state ||\r\n !state ||\r\n state.trigger === 'router' ||\r\n this._router.url === this._storeState.state.url;\r\n if (canSkipNavigation) {\r\n return;\r\n }\r\n this._trigger = 'store';\r\n this._ngZone.run((/**\r\n * @return {?}\r\n */\r\n () => {\r\n this._router.navigateByUrl((/** @type {?} */ ((/** @type {?} */ (this._storeState)).state)).url);\r\n }));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n dispatchRouterNavigation() {\r\n /** @type {?} */\r\n const nextRouterState = this._serializer.serialize(this._lastRoutesRecognized.state);\r\n this.dispatchRouterAction(new RouterNavigation(nextRouterState, new RoutesRecognized(this._lastRoutesRecognized.id, this._lastRoutesRecognized.url, this._lastRoutesRecognized.urlAfterRedirects, nextRouterState), this._trigger));\r\n }\r\n /**\r\n * @private\r\n * @param {?} event\r\n * @return {?}\r\n */\r\n dispatchRouterCancel(event) {\r\n this.dispatchRouterAction(new RouterCancel((/** @type {?} */ (this._routerState)), this._storeState, event, this._trigger));\r\n }\r\n /**\r\n * @private\r\n * @param {?} event\r\n * @return {?}\r\n */\r\n dispatchRouterError(event) {\r\n this.dispatchRouterAction(new RouterError((/** @type {?} */ (this._routerState)), this._storeState, new NavigationError(event.id, event.url, `${event}`), this._trigger));\r\n }\r\n /**\r\n * @private\r\n * @template T\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n dispatchRouterAction(action) {\r\n this._trigger = 'router';\r\n try {\r\n this._store.dispatch(action);\r\n }\r\n finally {\r\n this._trigger = 'none';\r\n }\r\n }\r\n /**\r\n * @private\r\n * @param {?} event\r\n * @return {?}\r\n */\r\n dispatchRouterDataResolved(event) {\r\n /** @type {?} */\r\n const routerState = this._serializer.serialize(event.state);\r\n this.dispatchRouterAction(new RouterDataResolved(routerState, event, this._trigger));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n reset() {\r\n this._trigger = 'none';\r\n this._storeState = null;\r\n this._routerState = null;\r\n }\r\n /**\r\n * No sense to mess up the `setUpRouterEventsListener` method as we have\r\n * to perform this check only once and unsubscribe after the first event\r\n * is triggered\r\n * @private\r\n * @return {?}\r\n */\r\n checkInitialNavigationOnce() {\r\n if (isAngularInTestMode()) {\r\n return;\r\n }\r\n this._router.events\r\n .pipe(first((/**\r\n * @param {?} event\r\n * @return {?}\r\n */\r\n (event) => event instanceof RoutesRecognized)))\r\n .subscribe((/**\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\n ({ url }) => {\r\n // `location.pathname` always equals manually entered URL in the address bar\r\n // e.g. `location.pathname === '/foo'`, but the `router` state has been initialized\r\n // with another URL (e.g. used in combination with `NgxsStoragePlugin`), thus the\r\n // `RouterNavigation` action will be dispatched and the user will be redirected to the\r\n // previously saved URL. We want to prevent such behavior, so we perform this check\r\n // `location.pathname` always equals manually entered URL in the address bar\r\n // e.g. `location.pathname === '/foo'`, but the `router` state has been initialized\r\n // with another URL (e.g. used in combination with `NgxsStoragePlugin`), thus the\r\n // `RouterNavigation` action will be dispatched and the user will be redirected to the\r\n // previously saved URL. We want to prevent such behavior, so we perform this check\r\n // `url` is a recognized URL by the Angular's router, while `currentUrl` is an actual URL\r\n // entered in the browser's address bar\r\n // `PathLocationStrategy.prototype.path()` returns a concatenation of\r\n // `PlatformLocation.pathname` and normalized `PlatformLocation.search`.\r\n // `Location.prototype.normalize` strips base href from the URL,\r\n // if `baseHref` (declared in angular.json) for example is `/en`\r\n // and the URL is `/test#anchor` - then `_locationStrategy.path(true)` will return `/en/test#anchor`,\r\n // but `/en/test#anchor` is not known to the Angular's router, so we have to strip `/en`\r\n // from the URL\r\n /** @type {?} */\r\n const currentUrl = this._location.normalize(this._locationStrategy.path(true));\r\n /** @type {?} */\r\n const currentUrlTree = this._urlSerializer.parse(currentUrl);\r\n // We need to serialize the URL because in that example `/test/?redirect=https://google.com/`\r\n // Angular will recognize it as `/test?redirect=https:%2F%2Fwww.google.com%2F`\r\n // so we have to run the `currentUrl` via the `UrlSerializer` that will encode characters\r\n /** @type {?} */\r\n const currentSerializedUrl = this._urlSerializer.serialize(currentUrlTree);\r\n // If URLs differ from each other - we've got to perform a redirect to the manually entered URL\r\n // in the address bar, as it must have a priority\r\n if (currentSerializedUrl !== url) {\r\n this._router.navigateByUrl(currentUrl);\r\n }\r\n }));\r\n }\r\n};\nRouterState.ɵfac = function RouterState_Factory(t) { return new (t || RouterState)(ɵngcc0.ɵɵinject(ɵngcc1.Store), ɵngcc0.ɵɵinject(ɵngcc2.Router), ɵngcc0.ɵɵinject(RouterStateSerializer), ɵngcc0.ɵɵinject(ɵngcc0.NgZone), ɵngcc0.ɵɵinject(ɵngcc2.UrlSerializer), ɵngcc0.ɵɵinject(ɵngcc3.LocationStrategy), ɵngcc0.ɵɵinject(ɵngcc3.Location)); };\nRouterState.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: RouterState, factory: function (t) { return RouterState.ɵfac(t); } });\r\nRouterState.ctorParameters = () => [\r\n { type: Store },\r\n { type: Router },\r\n { type: RouterStateSerializer },\r\n { type: NgZone },\r\n { type: UrlSerializer },\r\n { type: LocationStrategy },\r\n { type: Location }\r\n];\r\n/** @nocollapse */\r\nRouterState.ctorParameters = () => [\r\n { type: Store },\r\n { type: Router },\r\n { type: RouterStateSerializer },\r\n { type: NgZone },\r\n { type: UrlSerializer },\r\n { type: LocationStrategy },\r\n { type: Location }\r\n];\r\n__decorate([\r\n Action(Navigate),\r\n __metadata(\"design:type\", Function),\r\n __metadata(\"design:paramtypes\", [Object, Navigate]),\r\n __metadata(\"design:returntype\", void 0)\r\n], RouterState.prototype, \"navigate\", null);\r\n__decorate([\r\n Action([RouterNavigation, RouterError, RouterCancel, RouterDataResolved]),\r\n __metadata(\"design:type\", Function),\r\n __metadata(\"design:paramtypes\", [Object, Object]),\r\n __metadata(\"design:returntype\", void 0)\r\n], RouterState.prototype, \"angularRouterAction\", null);\r\n__decorate([\r\n Selector(),\r\n __metadata(\"design:type\", Function),\r\n __metadata(\"design:paramtypes\", [Object]),\r\n __metadata(\"design:returntype\", void 0)\r\n], RouterState, \"state\", null);\r\n__decorate([\r\n Selector(),\r\n __metadata(\"design:type\", Function),\r\n __metadata(\"design:paramtypes\", [Object]),\r\n __metadata(\"design:returntype\", Object)\r\n], RouterState, \"url\", null);\r\nRouterState = RouterState_1 = __decorate([\r\n State({\r\n name: 'router',\r\n defaults: {\r\n state: undefined,\r\n navigationId: undefined,\r\n trigger: 'none'\r\n }\r\n }),\r\n __metadata(\"design:paramtypes\", [Store,\r\n Router,\r\n RouterStateSerializer,\r\n NgZone,\r\n UrlSerializer,\r\n LocationStrategy,\r\n Location])\r\n], RouterState);\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(RouterState, [{\n type: Injectable\n }], function () { return [{ type: ɵngcc1.Store }, { type: ɵngcc2.Router }, { type: RouterStateSerializer }, { type: ɵngcc0.NgZone }, { type: ɵngcc2.UrlSerializer }, { type: ɵngcc3.LocationStrategy }, { type: ɵngcc3.Location }]; }, null); })();\r\nif (false) {\r\n /**\r\n * Determines how navigation was performed by the `RouterState` itself\r\n * or outside via `new Navigate(...)`\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._trigger;\r\n /**\r\n * That's the serialized state from the `Router` class\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._routerState;\r\n /**\r\n * That's the value of the `RouterState` state\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._storeState;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._lastRoutesRecognized;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._store;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._router;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._serializer;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._ngZone;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._urlSerializer;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._locationStrategy;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n RouterState.prototype._location;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass NgxsRouterPluginModule {\r\n /**\r\n * @return {?}\r\n */\r\n static forRoot() {\r\n return {\r\n ngModule: NgxsRouterPluginModule,\r\n providers: [{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }]\r\n };\r\n }\r\n}\nNgxsRouterPluginModule.ɵfac = function NgxsRouterPluginModule_Factory(t) { return new (t || NgxsRouterPluginModule)(); };\nNgxsRouterPluginModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsRouterPluginModule });\nNgxsRouterPluginModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[NgxsModule.forFeature([RouterState])]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsRouterPluginModule, [{\n type: NgModule,\n args: [{\n imports: [NgxsModule.forFeature([RouterState])]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(NgxsRouterPluginModule, { imports: [ɵngcc1.ɵbc] }); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\nexport { DefaultRouterStateSerializer, Navigate, NgxsRouterPluginModule, RouterCancel, RouterDataResolved, RouterError, RouterNavigation, RouterState, RouterStateSerializer };\n\n","import { Injectable, Directive, ChangeDetectorRef, Input, NgModule } from '@angular/core';\nimport { getActionTypeFromInstance, setValue, getValue, ofActionDispatched, Actions, Store, NGXS_PLUGINS } from '@ngxs/store';\nimport { FormGroupDirective, ReactiveFormsModule } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { filter, takeUntil, distinctUntilChanged, debounceTime } from 'rxjs/operators';\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ngxs/store';\nimport * as ɵngcc2 from '@angular/forms';\nclass UpdateFormStatus {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Update Form Status';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateFormStatus.prototype.payload;\r\n}\r\nclass UpdateFormValue {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Update Form Value';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateFormValue.prototype.payload;\r\n}\r\nclass UpdateForm {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Update Form';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateForm.prototype.payload;\r\n}\r\nclass UpdateFormDirty {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Update Form Dirty';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateFormDirty.prototype.payload;\r\n}\r\nclass SetFormDirty {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Set Form Dirty';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n SetFormDirty.prototype.payload;\r\n}\r\nclass SetFormPristine {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Set Form Pristine';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n SetFormPristine.prototype.payload;\r\n}\r\nclass UpdateFormErrors {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Update Form Errors';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateFormErrors.prototype.payload;\r\n}\r\nclass SetFormDisabled {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Set Form Disabled';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n SetFormDisabled.prototype.payload;\r\n}\r\nclass SetFormEnabled {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Set Form Enabled';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n SetFormEnabled.prototype.payload;\r\n}\r\nclass ResetForm {\r\n /**\r\n * @param {?} payload\r\n */\r\n constructor(payload) {\r\n this.payload = payload;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '[Forms] Reset Form';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n ResetForm.prototype.payload;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass NgxsFormPlugin {\r\n /**\r\n * @param {?} state\r\n * @param {?} event\r\n * @param {?} next\r\n * @return {?}\r\n */\r\n handle(state, event, next) {\r\n /** @type {?} */\r\n const type = getActionTypeFromInstance(event);\r\n /** @type {?} */\r\n let nextState = state;\r\n if (type === UpdateFormValue.type || type === UpdateForm.type || type === ResetForm.type) {\r\n const { value } = event.payload;\r\n /** @type {?} */\r\n const payloadValue = Array.isArray(value) ? value.slice() : Object.assign({}, value);\r\n /** @type {?} */\r\n const path = this.joinPathWithPropertyPath(event);\r\n nextState = setValue(nextState, path, payloadValue);\r\n }\r\n if (type === ResetForm.type) {\r\n /** @type {?} */\r\n const model = getValue(nextState, `${event.payload.path}.model`);\r\n nextState = setValue(nextState, `${event.payload.path}`, { model: model });\r\n }\r\n if (type === UpdateFormStatus.type || type === UpdateForm.type) {\r\n nextState = setValue(nextState, `${event.payload.path}.status`, event.payload.status);\r\n }\r\n if (type === UpdateFormErrors.type || type === UpdateForm.type) {\r\n nextState = setValue(nextState, `${event.payload.path}.errors`, Object.assign({}, event.payload.errors));\r\n }\r\n if (type === UpdateFormDirty.type || type === UpdateForm.type) {\r\n nextState = setValue(nextState, `${event.payload.path}.dirty`, event.payload.dirty);\r\n }\r\n if (type === SetFormDirty.type) {\r\n nextState = setValue(nextState, `${event.payload}.dirty`, true);\r\n }\r\n if (type === SetFormPristine.type) {\r\n nextState = setValue(nextState, `${event.payload}.dirty`, false);\r\n }\r\n if (type === SetFormDisabled.type) {\r\n nextState = setValue(nextState, `${event.payload}.disabled`, true);\r\n }\r\n if (type === SetFormEnabled.type) {\r\n nextState = setValue(nextState, `${event.payload}.disabled`, false);\r\n }\r\n return next(nextState, event);\r\n }\r\n /**\r\n * @private\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\n joinPathWithPropertyPath({ payload }) {\r\n /** @type {?} */\r\n let path = `${payload.path}.model`;\r\n if (payload.propertyPath) {\r\n path += `.${payload.propertyPath}`;\r\n }\r\n return path;\r\n }\r\n}\nNgxsFormPlugin.ɵfac = function NgxsFormPlugin_Factory(t) { return new (t || NgxsFormPlugin)(); };\nNgxsFormPlugin.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: NgxsFormPlugin, factory: NgxsFormPlugin.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsFormPlugin, [{\n type: Injectable\n }], null, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass FormDirective {\r\n /**\r\n * @param {?} _actions$\r\n * @param {?} _store\r\n * @param {?} _formGroupDirective\r\n * @param {?} _cd\r\n */\r\n constructor(_actions$, _store, _formGroupDirective, _cd) {\r\n this._actions$ = _actions$;\r\n this._store = _store;\r\n this._formGroupDirective = _formGroupDirective;\r\n this._cd = _cd;\r\n this.path = (/** @type {?} */ (null));\r\n this.debounce = 100;\r\n this._clearDestroy = false;\r\n this._destroy$ = new Subject();\r\n this._updating = false;\r\n }\r\n /**\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n set clearDestroy(val) {\r\n this._clearDestroy = val != null && `${val}` !== 'false';\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n get clearDestroy() {\r\n return this._clearDestroy;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n ngOnInit() {\r\n this._actions$\r\n .pipe(ofActionDispatched(ResetForm), filter((/**\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n (action) => action.payload.path === this.path)), takeUntil(this._destroy$))\r\n .subscribe((/**\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\n ({ payload: { value } }) => {\r\n this.form.reset(value);\r\n this.updateFormStateWithRawValue(true);\r\n this._cd.markForCheck();\r\n }));\r\n this.getStateStream(`${this.path}.model`).subscribe((/**\r\n * @param {?} model\r\n * @return {?}\r\n */\r\n model => {\r\n if (this._updating || !model) {\r\n return;\r\n }\r\n this.form.patchValue(model);\r\n this._cd.markForCheck();\r\n }));\r\n this.getStateStream(`${this.path}.dirty`).subscribe((/**\r\n * @param {?} dirty\r\n * @return {?}\r\n */\r\n dirty => {\r\n if (this.form.dirty === dirty || typeof dirty !== 'boolean') {\r\n return;\r\n }\r\n if (dirty) {\r\n this.form.markAsDirty();\r\n }\r\n else {\r\n this.form.markAsPristine();\r\n }\r\n this._cd.markForCheck();\r\n }));\r\n // On first state change, sync form model, status and dirty with state\r\n this._store\r\n .selectOnce((/**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n state => getValue(state, this.path)))\r\n .subscribe((/**\r\n * @return {?}\r\n */\r\n () => {\r\n this._store.dispatch([\r\n new UpdateFormValue({\r\n path: this.path,\r\n value: this.form.getRawValue()\r\n }),\r\n new UpdateFormStatus({\r\n path: this.path,\r\n status: this.form.status\r\n }),\r\n new UpdateFormDirty({\r\n path: this.path,\r\n dirty: this.form.dirty\r\n })\r\n ]);\r\n }));\r\n this.getStateStream(`${this.path}.disabled`).subscribe((/**\r\n * @param {?} disabled\r\n * @return {?}\r\n */\r\n disabled => {\r\n if (this.form.disabled === disabled || typeof disabled !== 'boolean') {\r\n return;\r\n }\r\n if (disabled) {\r\n this.form.disable();\r\n }\r\n else {\r\n this.form.enable();\r\n }\r\n this._cd.markForCheck();\r\n }));\r\n (/** @type {?} */ (this._formGroupDirective.valueChanges)).pipe(this.debounceChange()).subscribe((/**\r\n * @return {?}\r\n */\r\n () => {\r\n this.updateFormStateWithRawValue();\r\n }));\r\n (/** @type {?} */ (this._formGroupDirective\r\n .statusChanges)).pipe(distinctUntilChanged(), this.debounceChange())\r\n .subscribe((/**\r\n * @param {?} status\r\n * @return {?}\r\n */\r\n (status) => {\r\n this._store.dispatch(new UpdateFormStatus({\r\n status,\r\n path: this.path\r\n }));\r\n }));\r\n }\r\n /**\r\n * @param {?=} withFormStatus\r\n * @return {?}\r\n */\r\n updateFormStateWithRawValue(withFormStatus) {\r\n if (this._updating)\r\n return;\r\n /** @type {?} */\r\n const value = this._formGroupDirective.control.getRawValue();\r\n /** @type {?} */\r\n const actions = [\r\n new UpdateFormValue({\r\n path: this.path,\r\n value\r\n }),\r\n new UpdateFormDirty({\r\n path: this.path,\r\n dirty: this._formGroupDirective.dirty\r\n }),\r\n new UpdateFormErrors({\r\n path: this.path,\r\n errors: this._formGroupDirective.errors\r\n })\r\n ];\r\n if (withFormStatus) {\r\n actions.push(new UpdateFormStatus({\r\n path: this.path,\r\n status: this._formGroupDirective.status\r\n }));\r\n }\r\n this._updating = true;\r\n this._store.dispatch(actions).subscribe({\r\n error: (/**\r\n * @return {?}\r\n */\r\n () => (this._updating = false)),\r\n complete: (/**\r\n * @return {?}\r\n */\r\n () => (this._updating = false))\r\n });\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n ngOnDestroy() {\r\n this._destroy$.next();\r\n this._destroy$.complete();\r\n if (this.clearDestroy) {\r\n this._store.dispatch(new UpdateForm({\r\n path: this.path,\r\n value: null,\r\n dirty: null,\r\n status: null,\r\n errors: null\r\n }));\r\n }\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n debounceChange() {\r\n /** @type {?} */\r\n const skipDebounceTime = this._formGroupDirective.control.updateOn !== 'change' || this.debounce < 0;\r\n return skipDebounceTime\r\n ? (/**\r\n * @param {?} change\r\n * @return {?}\r\n */\r\n (change) => change.pipe(takeUntil(this._destroy$)))\r\n : (/**\r\n * @param {?} change\r\n * @return {?}\r\n */\r\n (change) => change.pipe(debounceTime(this.debounce), takeUntil(this._destroy$)));\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n get form() {\r\n return this._formGroupDirective.form;\r\n }\r\n /**\r\n * @private\r\n * @param {?} path\r\n * @return {?}\r\n */\r\n getStateStream(path) {\r\n return this._store.select((/**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n state => getValue(state, path))).pipe(takeUntil(this._destroy$));\r\n }\r\n}\nFormDirective.ɵfac = function FormDirective_Factory(t) { return new (t || FormDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc1.Actions), ɵngcc0.ɵɵdirectiveInject(ɵngcc1.Store), ɵngcc0.ɵɵdirectiveInject(ɵngcc2.FormGroupDirective), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef)); };\nFormDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: FormDirective, selectors: [[\"\", \"ngxsForm\", \"\"]], inputs: { path: [\"ngxsForm\", \"path\"], debounce: [\"ngxsFormDebounce\", \"debounce\"], clearDestroy: [\"ngxsFormClearOnDestroy\", \"clearDestroy\"] } });\r\n/** @nocollapse */\r\nFormDirective.ctorParameters = () => [\r\n { type: Actions },\r\n { type: Store },\r\n { type: FormGroupDirective },\r\n { type: ChangeDetectorRef }\r\n];\r\nFormDirective.propDecorators = {\r\n path: [{ type: Input, args: ['ngxsForm',] }],\r\n debounce: [{ type: Input, args: ['ngxsFormDebounce',] }],\r\n clearDestroy: [{ type: Input, args: ['ngxsFormClearOnDestroy',] }]\r\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormDirective, [{\n type: Directive,\n args: [{ selector: '[ngxsForm]' }]\n }], function () { return [{ type: ɵngcc1.Actions }, { type: ɵngcc1.Store }, { type: ɵngcc2.FormGroupDirective }, { type: ɵngcc0.ChangeDetectorRef }]; }, { path: [{\n type: Input,\n args: ['ngxsForm']\n }], debounce: [{\n type: Input,\n args: ['ngxsFormDebounce']\n }], clearDestroy: [{\n type: Input,\n args: ['ngxsFormClearOnDestroy']\n }] }); })();\r\nif (false) {\r\n /** @type {?} */\r\n FormDirective.prototype.path;\r\n /** @type {?} */\r\n FormDirective.prototype.debounce;\r\n /** @type {?} */\r\n FormDirective.prototype._clearDestroy;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._destroy$;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._updating;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._actions$;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._store;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._formGroupDirective;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n FormDirective.prototype._cd;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass NgxsFormPluginModule {\r\n /**\r\n * @return {?}\r\n */\r\n static forRoot() {\r\n return {\r\n ngModule: NgxsFormPluginModule,\r\n providers: [\r\n {\r\n provide: NGXS_PLUGINS,\r\n useClass: NgxsFormPlugin,\r\n multi: true\r\n }\r\n ]\r\n };\r\n }\r\n}\nNgxsFormPluginModule.ɵfac = function NgxsFormPluginModule_Factory(t) { return new (t || NgxsFormPluginModule)(); };\nNgxsFormPluginModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsFormPluginModule });\nNgxsFormPluginModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[ReactiveFormsModule]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsFormPluginModule, [{\n type: NgModule,\n args: [{\n imports: [ReactiveFormsModule],\n declarations: [FormDirective],\n exports: [FormDirective]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(NgxsFormPluginModule, { declarations: function () { return [FormDirective]; }, imports: function () { return [ReactiveFormsModule]; }, exports: function () { return [FormDirective]; } }); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\nexport { NgxsFormPlugin, NgxsFormPluginModule, ResetForm, SetFormDirty, SetFormDisabled, SetFormEnabled, SetFormPristine, UpdateForm, UpdateFormDirty, UpdateFormErrors, UpdateFormStatus, UpdateFormValue, FormDirective as ɵa };\n\n","import { InjectionToken, Injectable, Inject, Injector, NgModule } from '@angular/core';\nimport { Store, getActionTypeFromInstance, NGXS_PLUGINS } from '@ngxs/store';\nimport { catchError, tap } from 'rxjs/operators';\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Interface for the redux-devtools-extension API.\r\n * @record\r\n */\r\nimport * as ɵngcc0 from '@angular/core';\nfunction NgxsDevtoolsExtension() { }\r\nif (false) {\r\n /**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n NgxsDevtoolsExtension.prototype.init = function (state) { };\r\n /**\r\n * @param {?} action\r\n * @param {?=} state\r\n * @return {?}\r\n */\r\n NgxsDevtoolsExtension.prototype.send = function (action, state) { };\r\n /**\r\n * @param {?} fn\r\n * @return {?}\r\n */\r\n NgxsDevtoolsExtension.prototype.subscribe = function (fn) { };\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction NgxsDevtoolsAction() { }\r\nif (false) {\r\n /** @type {?} */\r\n NgxsDevtoolsAction.prototype.type;\r\n /** @type {?} */\r\n NgxsDevtoolsAction.prototype.payload;\r\n /** @type {?} */\r\n NgxsDevtoolsAction.prototype.state;\r\n /** @type {?} */\r\n NgxsDevtoolsAction.prototype.id;\r\n /** @type {?} */\r\n NgxsDevtoolsAction.prototype.source;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction NgxsDevtoolsOptions() { }\r\nif (false) {\r\n /**\r\n * The name of the extension\r\n * @type {?|undefined}\r\n */\r\n NgxsDevtoolsOptions.prototype.name;\r\n /**\r\n * Whether the dev tools is enabled or note. Useful for setting during production.\r\n * @type {?|undefined}\r\n */\r\n NgxsDevtoolsOptions.prototype.disabled;\r\n /**\r\n * Max number of entiries to keep.\r\n * @type {?|undefined}\r\n */\r\n NgxsDevtoolsOptions.prototype.maxAge;\r\n /**\r\n * Reformat actions before sending to dev tools\r\n * @type {?|undefined}\r\n */\r\n NgxsDevtoolsOptions.prototype.actionSanitizer;\r\n /**\r\n * Reformat state before sending to devtools\r\n * @type {?|undefined}\r\n */\r\n NgxsDevtoolsOptions.prototype.stateSanitizer;\r\n}\r\n/** @type {?} */\r\nconst NGXS_DEVTOOLS_OPTIONS = new InjectionToken('NGXS_DEVTOOLS_OPTIONS');\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Adds support for the Redux Devtools extension:\r\n * http://extension.remotedev.io/\r\n */\r\nclass NgxsReduxDevtoolsPlugin {\r\n /**\r\n * @param {?} _options\r\n * @param {?} _injector\r\n */\r\n constructor(_options, _injector) {\r\n this._options = _options;\r\n this._injector = _injector;\r\n this.devtoolsExtension = null;\r\n this.windowObj = typeof window !== 'undefined' ? window : {};\r\n /** @type {?} */\r\n const globalDevtools = this.windowObj['__REDUX_DEVTOOLS_EXTENSION__'] || this.windowObj['devToolsExtension'];\r\n if (globalDevtools) {\r\n this.devtoolsExtension = (/** @type {?} */ (globalDevtools.connect(_options)));\r\n this.devtoolsExtension.subscribe((/**\r\n * @param {?} a\r\n * @return {?}\r\n */\r\n a => this.dispatched(a)));\r\n }\r\n }\r\n /**\r\n * Lazy get the store for circular dependency issues\r\n * @private\r\n * @return {?}\r\n */\r\n get store() {\r\n return this._injector.get(Store);\r\n }\r\n /**\r\n * Middleware handle function\r\n * @param {?} state\r\n * @param {?} action\r\n * @param {?} next\r\n * @return {?}\r\n */\r\n handle(state, action, next) {\r\n /** @type {?} */\r\n const isDisabled = this._options && this._options.disabled;\r\n if (!this.devtoolsExtension || isDisabled) {\r\n return next(state, action);\r\n }\r\n return next(state, action).pipe(catchError((/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n error => {\r\n /** @type {?} */\r\n const newState = this.store.snapshot();\r\n this.sendToDevTools(state, action, newState);\r\n throw error;\r\n })), tap((/**\r\n * @param {?} newState\r\n * @return {?}\r\n */\r\n newState => {\r\n this.sendToDevTools(state, action, newState);\r\n })));\r\n }\r\n /**\r\n * @private\r\n * @param {?} state\r\n * @param {?} action\r\n * @param {?} newState\r\n * @return {?}\r\n */\r\n sendToDevTools(state, action, newState) {\r\n /** @type {?} */\r\n const type = getActionTypeFromInstance(action);\r\n // if init action, send initial state to dev tools\r\n /** @type {?} */\r\n const isInitAction = type === '@@INIT';\r\n if (isInitAction) {\r\n (/** @type {?} */ (this.devtoolsExtension)).init(state);\r\n }\r\n else {\r\n (/** @type {?} */ (this.devtoolsExtension)).send(Object.assign({}, action, { action: null, type }), newState);\r\n }\r\n }\r\n /**\r\n * Handle the action from the dev tools subscription\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n dispatched(action) {\r\n if (action.type === 'DISPATCH') {\r\n if (action.payload.type === 'JUMP_TO_ACTION' ||\r\n action.payload.type === 'JUMP_TO_STATE') {\r\n /** @type {?} */\r\n const prevState = JSON.parse(action.state);\r\n this.store.reset(prevState);\r\n }\r\n else if (action.payload.type === 'TOGGLE_ACTION') {\r\n console.warn('Skip is not supported at this time.');\r\n }\r\n else if (action.payload.type === 'IMPORT_STATE') {\r\n const { actionsById, computedStates, currentStateIndex } = action.payload.nextLiftedState;\r\n (/** @type {?} */ (this.devtoolsExtension)).init(computedStates[0].state);\r\n Object.keys(actionsById)\r\n .filter((/**\r\n * @param {?} actionId\r\n * @return {?}\r\n */\r\n actionId => actionId !== '0'))\r\n .forEach((/**\r\n * @param {?} actionId\r\n * @return {?}\r\n */\r\n actionId => (/** @type {?} */ (this.devtoolsExtension)).send(actionsById[actionId], computedStates[actionId].state)));\r\n this.store.reset(computedStates[currentStateIndex].state);\r\n }\r\n }\r\n else if (action.type === 'ACTION') {\r\n /** @type {?} */\r\n const actionPayload = JSON.parse(action.payload);\r\n this.store.dispatch(actionPayload);\r\n }\r\n }\r\n}\nNgxsReduxDevtoolsPlugin.ɵfac = function NgxsReduxDevtoolsPlugin_Factory(t) { return new (t || NgxsReduxDevtoolsPlugin)(ɵngcc0.ɵɵinject(NGXS_DEVTOOLS_OPTIONS), ɵngcc0.ɵɵinject(ɵngcc0.Injector)); };\nNgxsReduxDevtoolsPlugin.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: NgxsReduxDevtoolsPlugin, factory: NgxsReduxDevtoolsPlugin.ɵfac });\r\n/** @nocollapse */\r\nNgxsReduxDevtoolsPlugin.ctorParameters = () => [\r\n { type: undefined, decorators: [{ type: Inject, args: [NGXS_DEVTOOLS_OPTIONS,] }] },\r\n { type: Injector }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsReduxDevtoolsPlugin, [{\n type: Injectable\n }], function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [NGXS_DEVTOOLS_OPTIONS]\n }] }, { type: ɵngcc0.Injector }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsReduxDevtoolsPlugin.prototype.devtoolsExtension;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsReduxDevtoolsPlugin.prototype.windowObj;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsReduxDevtoolsPlugin.prototype._options;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsReduxDevtoolsPlugin.prototype._injector;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction devtoolsOptionsFactory(options) {\r\n return Object.assign({ name: 'NGXS' }, options);\r\n}\r\n/** @type {?} */\r\nconst USER_OPTIONS = new InjectionToken('USER_OPTIONS');\r\nclass NgxsReduxDevtoolsPluginModule {\r\n /**\r\n * @param {?=} options\r\n * @return {?}\r\n */\r\n static forRoot(options) {\r\n return {\r\n ngModule: NgxsReduxDevtoolsPluginModule,\r\n providers: [\r\n {\r\n provide: NGXS_PLUGINS,\r\n useClass: NgxsReduxDevtoolsPlugin,\r\n multi: true\r\n },\r\n {\r\n provide: USER_OPTIONS,\r\n useValue: options\r\n },\r\n {\r\n provide: NGXS_DEVTOOLS_OPTIONS,\r\n useFactory: devtoolsOptionsFactory,\r\n deps: [USER_OPTIONS]\r\n }\r\n ]\r\n };\r\n }\r\n}\nNgxsReduxDevtoolsPluginModule.ɵfac = function NgxsReduxDevtoolsPluginModule_Factory(t) { return new (t || NgxsReduxDevtoolsPluginModule)(); };\nNgxsReduxDevtoolsPluginModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsReduxDevtoolsPluginModule });\nNgxsReduxDevtoolsPluginModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsReduxDevtoolsPluginModule, [{\n type: NgModule\n }], null, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\nexport { NGXS_DEVTOOLS_OPTIONS, NgxsReduxDevtoolsPlugin, NgxsReduxDevtoolsPluginModule, devtoolsOptionsFactory as ɵa, USER_OPTIONS as ɵb };\n\n","import { Subscriber } from '../Subscriber';\nexport function mapTo(value) {\n return (source) => source.lift(new MapToOperator(value));\n}\nclass MapToOperator {\n constructor(value) {\n this.value = value;\n }\n call(subscriber, source) {\n return source.subscribe(new MapToSubscriber(subscriber, this.value));\n }\n}\nclass MapToSubscriber extends Subscriber {\n constructor(destination, value) {\n super(destination);\n this.value = value;\n }\n _next(x) {\n this.destination.next(this.value);\n }\n}\n","/*!\n * perfect-scrollbar v1.5.0\n * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors\n * Licensed under MIT\n */\n\nfunction get(element) {\n return getComputedStyle(element);\n}\n\nfunction set(element, obj) {\n for (var key in obj) {\n var val = obj[key];\n if (typeof val === 'number') {\n val = val + \"px\";\n }\n element.style[key] = val;\n }\n return element;\n}\n\nfunction div(className) {\n var div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nvar elMatches =\n typeof Element !== 'undefined' &&\n (Element.prototype.matches ||\n Element.prototype.webkitMatchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector);\n\nfunction matches(element, query) {\n if (!elMatches) {\n throw new Error('No element matching method supported');\n }\n\n return elMatches.call(element, query);\n}\n\nfunction remove(element) {\n if (element.remove) {\n element.remove();\n } else {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n }\n}\n\nfunction queryChildren(element, selector) {\n return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }\n );\n}\n\nvar cls = {\n main: 'ps',\n rtl: 'ps__rtl',\n element: {\n thumb: function (x) { return (\"ps__thumb-\" + x); },\n rail: function (x) { return (\"ps__rail-\" + x); },\n consuming: 'ps__child--consume',\n },\n state: {\n focus: 'ps--focus',\n clicking: 'ps--clicking',\n active: function (x) { return (\"ps--active-\" + x); },\n scrolling: function (x) { return (\"ps--scrolling-\" + x); },\n },\n};\n\n/*\n * Helper methods\n */\nvar scrollingClassTimeout = { x: null, y: null };\n\nfunction addScrollingClass(i, x) {\n var classList = i.element.classList;\n var className = cls.state.scrolling(x);\n\n if (classList.contains(className)) {\n clearTimeout(scrollingClassTimeout[x]);\n } else {\n classList.add(className);\n }\n}\n\nfunction removeScrollingClass(i, x) {\n scrollingClassTimeout[x] = setTimeout(\n function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },\n i.settings.scrollingThreshold\n );\n}\n\nfunction setScrollingClassInstantly(i, x) {\n addScrollingClass(i, x);\n removeScrollingClass(i, x);\n}\n\nvar EventElement = function EventElement(element) {\n this.element = element;\n this.handlers = {};\n};\n\nvar prototypeAccessors = { isEmpty: { configurable: true } };\n\nEventElement.prototype.bind = function bind (eventName, handler) {\n if (typeof this.handlers[eventName] === 'undefined') {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(handler);\n this.element.addEventListener(eventName, handler, false);\n};\n\nEventElement.prototype.unbind = function unbind (eventName, target) {\n var this$1 = this;\n\n this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {\n if (target && handler !== target) {\n return true;\n }\n this$1.element.removeEventListener(eventName, handler, false);\n return false;\n });\n};\n\nEventElement.prototype.unbindAll = function unbindAll () {\n for (var name in this.handlers) {\n this.unbind(name);\n }\n};\n\nprototypeAccessors.isEmpty.get = function () {\n var this$1 = this;\n\n return Object.keys(this.handlers).every(\n function (key) { return this$1.handlers[key].length === 0; }\n );\n};\n\nObject.defineProperties( EventElement.prototype, prototypeAccessors );\n\nvar EventManager = function EventManager() {\n this.eventElements = [];\n};\n\nEventManager.prototype.eventElement = function eventElement (element) {\n var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];\n if (!ee) {\n ee = new EventElement(element);\n this.eventElements.push(ee);\n }\n return ee;\n};\n\nEventManager.prototype.bind = function bind (element, eventName, handler) {\n this.eventElement(element).bind(eventName, handler);\n};\n\nEventManager.prototype.unbind = function unbind (element, eventName, handler) {\n var ee = this.eventElement(element);\n ee.unbind(eventName, handler);\n\n if (ee.isEmpty) {\n // remove\n this.eventElements.splice(this.eventElements.indexOf(ee), 1);\n }\n};\n\nEventManager.prototype.unbindAll = function unbindAll () {\n this.eventElements.forEach(function (e) { return e.unbindAll(); });\n this.eventElements = [];\n};\n\nEventManager.prototype.once = function once (element, eventName, handler) {\n var ee = this.eventElement(element);\n var onceHandler = function (evt) {\n ee.unbind(eventName, onceHandler);\n handler(evt);\n };\n ee.bind(eventName, onceHandler);\n};\n\nfunction createEvent(name) {\n if (typeof window.CustomEvent === 'function') {\n return new CustomEvent(name);\n } else {\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(name, false, false, undefined);\n return evt;\n }\n}\n\nfunction processScrollDiff(\n i,\n axis,\n diff,\n useScrollingClass,\n forceFireReachEvent\n) {\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var fields;\n if (axis === 'top') {\n fields = [\n 'contentHeight',\n 'containerHeight',\n 'scrollTop',\n 'y',\n 'up',\n 'down' ];\n } else if (axis === 'left') {\n fields = [\n 'contentWidth',\n 'containerWidth',\n 'scrollLeft',\n 'x',\n 'left',\n 'right' ];\n } else {\n throw new Error('A proper axis should be provided');\n }\n\n processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);\n}\n\nfunction processScrollDiff$1(\n i,\n diff,\n ref,\n useScrollingClass,\n forceFireReachEvent\n) {\n var contentHeight = ref[0];\n var containerHeight = ref[1];\n var scrollTop = ref[2];\n var y = ref[3];\n var up = ref[4];\n var down = ref[5];\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var element = i.element;\n\n // reset reach\n i.reach[y] = null;\n\n // 1 for subpixel rounding\n if (element[scrollTop] < 1) {\n i.reach[y] = 'start';\n }\n\n // 1 for subpixel rounding\n if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {\n i.reach[y] = 'end';\n }\n\n if (diff) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + y)));\n\n if (diff < 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + up)));\n } else if (diff > 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + down)));\n }\n\n if (useScrollingClass) {\n setScrollingClassInstantly(i, y);\n }\n }\n\n if (i.reach[y] && (diff || forceFireReachEvent)) {\n element.dispatchEvent(createEvent((\"ps-\" + y + \"-reach-\" + (i.reach[y]))));\n }\n}\n\nfunction toInt(x) {\n return parseInt(x, 10) || 0;\n}\n\nfunction isEditable(el) {\n return (\n matches(el, 'input,[contenteditable]') ||\n matches(el, 'select,[contenteditable]') ||\n matches(el, 'textarea,[contenteditable]') ||\n matches(el, 'button,[contenteditable]')\n );\n}\n\nfunction outerWidth(element) {\n var styles = get(element);\n return (\n toInt(styles.width) +\n toInt(styles.paddingLeft) +\n toInt(styles.paddingRight) +\n toInt(styles.borderLeftWidth) +\n toInt(styles.borderRightWidth)\n );\n}\n\nvar env = {\n isWebKit:\n typeof document !== 'undefined' &&\n 'WebkitAppearance' in document.documentElement.style,\n supportsTouch:\n typeof window !== 'undefined' &&\n ('ontouchstart' in window ||\n ('maxTouchPoints' in window.navigator &&\n window.navigator.maxTouchPoints > 0) ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)),\n supportsIePointer:\n typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,\n isChrome:\n typeof navigator !== 'undefined' &&\n /Chrome/i.test(navigator && navigator.userAgent),\n};\n\nfunction updateGeometry(i) {\n var element = i.element;\n var roundedScrollTop = Math.floor(element.scrollTop);\n var rect = element.getBoundingClientRect();\n\n i.containerWidth = Math.ceil(rect.width);\n i.containerHeight = Math.ceil(rect.height);\n i.contentWidth = element.scrollWidth;\n i.contentHeight = element.scrollHeight;\n\n if (!element.contains(i.scrollbarXRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarXRail);\n }\n if (!element.contains(i.scrollbarYRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarYRail);\n }\n\n if (\n !i.settings.suppressScrollX &&\n i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth\n ) {\n i.scrollbarXActive = true;\n i.railXWidth = i.containerWidth - i.railXMarginWidth;\n i.railXRatio = i.containerWidth / i.railXWidth;\n i.scrollbarXWidth = getThumbSize(\n i,\n toInt((i.railXWidth * i.containerWidth) / i.contentWidth)\n );\n i.scrollbarXLeft = toInt(\n ((i.negativeScrollAdjustment + element.scrollLeft) *\n (i.railXWidth - i.scrollbarXWidth)) /\n (i.contentWidth - i.containerWidth)\n );\n } else {\n i.scrollbarXActive = false;\n }\n\n if (\n !i.settings.suppressScrollY &&\n i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight\n ) {\n i.scrollbarYActive = true;\n i.railYHeight = i.containerHeight - i.railYMarginHeight;\n i.railYRatio = i.containerHeight / i.railYHeight;\n i.scrollbarYHeight = getThumbSize(\n i,\n toInt((i.railYHeight * i.containerHeight) / i.contentHeight)\n );\n i.scrollbarYTop = toInt(\n (roundedScrollTop * (i.railYHeight - i.scrollbarYHeight)) /\n (i.contentHeight - i.containerHeight)\n );\n } else {\n i.scrollbarYActive = false;\n }\n\n if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {\n i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;\n }\n if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {\n i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;\n }\n\n updateCss(element, i);\n\n if (i.scrollbarXActive) {\n element.classList.add(cls.state.active('x'));\n } else {\n element.classList.remove(cls.state.active('x'));\n i.scrollbarXWidth = 0;\n i.scrollbarXLeft = 0;\n element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;\n }\n if (i.scrollbarYActive) {\n element.classList.add(cls.state.active('y'));\n } else {\n element.classList.remove(cls.state.active('y'));\n i.scrollbarYHeight = 0;\n i.scrollbarYTop = 0;\n element.scrollTop = 0;\n }\n}\n\nfunction getThumbSize(i, thumbSize) {\n if (i.settings.minScrollbarLength) {\n thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);\n }\n if (i.settings.maxScrollbarLength) {\n thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);\n }\n return thumbSize;\n}\n\nfunction updateCss(element, i) {\n var xRailOffset = { width: i.railXWidth };\n var roundedScrollTop = Math.floor(element.scrollTop);\n\n if (i.isRtl) {\n xRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth -\n i.contentWidth;\n } else {\n xRailOffset.left = element.scrollLeft;\n }\n if (i.isScrollbarXUsingBottom) {\n xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;\n } else {\n xRailOffset.top = i.scrollbarXTop + roundedScrollTop;\n }\n set(i.scrollbarXRail, xRailOffset);\n\n var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };\n if (i.isScrollbarYUsingRight) {\n if (i.isRtl) {\n yRailOffset.right =\n i.contentWidth -\n (i.negativeScrollAdjustment + element.scrollLeft) -\n i.scrollbarYRight -\n i.scrollbarYOuterWidth -\n 9;\n } else {\n yRailOffset.right = i.scrollbarYRight - element.scrollLeft;\n }\n } else {\n if (i.isRtl) {\n yRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth * 2 -\n i.contentWidth -\n i.scrollbarYLeft -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;\n }\n }\n set(i.scrollbarYRail, yRailOffset);\n\n set(i.scrollbarX, {\n left: i.scrollbarXLeft,\n width: i.scrollbarXWidth - i.railBorderXWidth,\n });\n set(i.scrollbarY, {\n top: i.scrollbarYTop,\n height: i.scrollbarYHeight - i.railBorderYWidth,\n });\n}\n\nfunction clickRail(i) {\n var element = i.element;\n\n i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {\n var positionTop =\n e.pageY -\n window.pageYOffset -\n i.scrollbarYRail.getBoundingClientRect().top;\n var direction = positionTop > i.scrollbarYTop ? 1 : -1;\n\n i.element.scrollTop += direction * i.containerHeight;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n\n i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {\n var positionLeft =\n e.pageX -\n window.pageXOffset -\n i.scrollbarXRail.getBoundingClientRect().left;\n var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;\n\n i.element.scrollLeft += direction * i.containerWidth;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n}\n\nfunction dragThumb(i) {\n bindMouseScrollHandler(i, [\n 'containerWidth',\n 'contentWidth',\n 'pageX',\n 'railXWidth',\n 'scrollbarX',\n 'scrollbarXWidth',\n 'scrollLeft',\n 'x',\n 'scrollbarXRail' ]);\n bindMouseScrollHandler(i, [\n 'containerHeight',\n 'contentHeight',\n 'pageY',\n 'railYHeight',\n 'scrollbarY',\n 'scrollbarYHeight',\n 'scrollTop',\n 'y',\n 'scrollbarYRail' ]);\n}\n\nfunction bindMouseScrollHandler(\n i,\n ref\n) {\n var containerHeight = ref[0];\n var contentHeight = ref[1];\n var pageY = ref[2];\n var railYHeight = ref[3];\n var scrollbarY = ref[4];\n var scrollbarYHeight = ref[5];\n var scrollTop = ref[6];\n var y = ref[7];\n var scrollbarYRail = ref[8];\n\n var element = i.element;\n\n var startingScrollTop = null;\n var startingMousePageY = null;\n var scrollBy = null;\n\n function mouseMoveHandler(e) {\n if (e.touches && e.touches[0]) {\n e[pageY] = e.touches[0].pageY;\n }\n element[scrollTop] =\n startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);\n addScrollingClass(i, y);\n updateGeometry(i);\n\n e.stopPropagation();\n e.preventDefault();\n }\n\n function mouseUpHandler() {\n removeScrollingClass(i, y);\n i[scrollbarYRail].classList.remove(cls.state.clicking);\n i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n }\n\n function bindMoves(e, touchMode) {\n startingScrollTop = element[scrollTop];\n if (touchMode && e.touches) {\n e[pageY] = e.touches[0].pageY;\n }\n startingMousePageY = e[pageY];\n scrollBy =\n (i[contentHeight] - i[containerHeight]) /\n (i[railYHeight] - i[scrollbarYHeight]);\n if (!touchMode) {\n i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);\n e.preventDefault();\n } else {\n i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);\n }\n\n i[scrollbarYRail].classList.add(cls.state.clicking);\n\n e.stopPropagation();\n }\n\n i.event.bind(i[scrollbarY], 'mousedown', function (e) {\n bindMoves(e);\n });\n i.event.bind(i[scrollbarY], 'touchstart', function (e) {\n bindMoves(e, true);\n });\n}\n\nfunction keyboard(i) {\n var element = i.element;\n\n var elementHovered = function () { return matches(element, ':hover'); };\n var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };\n\n function shouldPreventDefault(deltaX, deltaY) {\n var scrollTop = Math.floor(element.scrollTop);\n if (deltaX === 0) {\n if (!i.scrollbarYActive) {\n return false;\n }\n if (\n (scrollTop === 0 && deltaY > 0) ||\n (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n\n var scrollLeft = element.scrollLeft;\n if (deltaY === 0) {\n if (!i.scrollbarXActive) {\n return false;\n }\n if (\n (scrollLeft === 0 && deltaX < 0) ||\n (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n return true;\n }\n\n i.event.bind(i.ownerDocument, 'keydown', function (e) {\n if (\n (e.isDefaultPrevented && e.isDefaultPrevented()) ||\n e.defaultPrevented\n ) {\n return;\n }\n\n if (!elementHovered() && !scrollbarFocused()) {\n return;\n }\n\n var activeElement = document.activeElement\n ? document.activeElement\n : i.ownerDocument.activeElement;\n if (activeElement) {\n if (activeElement.tagName === 'IFRAME') {\n activeElement = activeElement.contentDocument.activeElement;\n } else {\n // go deeper if element is a webcomponent\n while (activeElement.shadowRoot) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n }\n if (isEditable(activeElement)) {\n return;\n }\n }\n\n var deltaX = 0;\n var deltaY = 0;\n\n switch (e.which) {\n case 37: // left\n if (e.metaKey) {\n deltaX = -i.contentWidth;\n } else if (e.altKey) {\n deltaX = -i.containerWidth;\n } else {\n deltaX = -30;\n }\n break;\n case 38: // up\n if (e.metaKey) {\n deltaY = i.contentHeight;\n } else if (e.altKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = 30;\n }\n break;\n case 39: // right\n if (e.metaKey) {\n deltaX = i.contentWidth;\n } else if (e.altKey) {\n deltaX = i.containerWidth;\n } else {\n deltaX = 30;\n }\n break;\n case 40: // down\n if (e.metaKey) {\n deltaY = -i.contentHeight;\n } else if (e.altKey) {\n deltaY = -i.containerHeight;\n } else {\n deltaY = -30;\n }\n break;\n case 32: // space bar\n if (e.shiftKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = -i.containerHeight;\n }\n break;\n case 33: // page up\n deltaY = i.containerHeight;\n break;\n case 34: // page down\n deltaY = -i.containerHeight;\n break;\n case 36: // home\n deltaY = i.contentHeight;\n break;\n case 35: // end\n deltaY = -i.contentHeight;\n break;\n default:\n return;\n }\n\n if (i.settings.suppressScrollX && deltaX !== 0) {\n return;\n }\n if (i.settings.suppressScrollY && deltaY !== 0) {\n return;\n }\n\n element.scrollTop -= deltaY;\n element.scrollLeft += deltaX;\n updateGeometry(i);\n\n if (shouldPreventDefault(deltaX, deltaY)) {\n e.preventDefault();\n }\n });\n}\n\nfunction wheel(i) {\n var element = i.element;\n\n function shouldPreventDefault(deltaX, deltaY) {\n var roundedScrollTop = Math.floor(element.scrollTop);\n var isTop = element.scrollTop === 0;\n var isBottom =\n roundedScrollTop + element.offsetHeight === element.scrollHeight;\n var isLeft = element.scrollLeft === 0;\n var isRight =\n element.scrollLeft + element.offsetWidth === element.scrollWidth;\n\n var hitsBound;\n\n // pick axis with primary direction\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n hitsBound = isTop || isBottom;\n } else {\n hitsBound = isLeft || isRight;\n }\n\n return hitsBound ? !i.settings.wheelPropagation : true;\n }\n\n function getDeltaFromEvent(e) {\n var deltaX = e.deltaX;\n var deltaY = -1 * e.deltaY;\n\n if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {\n // OS X Safari\n deltaX = (-1 * e.wheelDeltaX) / 6;\n deltaY = e.wheelDeltaY / 6;\n }\n\n if (e.deltaMode && e.deltaMode === 1) {\n // Firefox in deltaMode 1: Line scrolling\n deltaX *= 10;\n deltaY *= 10;\n }\n\n if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {\n // IE in some mouse drivers\n deltaX = 0;\n deltaY = e.wheelDelta;\n }\n\n if (e.shiftKey) {\n // reverse axis with shift key\n return [-deltaY, -deltaX];\n }\n return [deltaX, deltaY];\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n // FIXME: this is a workaround for <select> issue in FF and IE #571\n if (!env.isWebKit && element.querySelector('select:focus')) {\n return true;\n }\n\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n\n // if deltaY && vertical scrollable\n if (deltaY && style.overflowY.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n (cursor.scrollTop > 0 && deltaY < 0) ||\n (cursor.scrollTop < maxScrollTop && deltaY > 0)\n ) {\n return true;\n }\n }\n }\n // if deltaX && horizontal scrollable\n if (deltaX && style.overflowX.match(/(scroll|auto)/)) {\n var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n (cursor.scrollLeft > 0 && deltaX < 0) ||\n (cursor.scrollLeft < maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function mousewheelHandler(e) {\n var ref = getDeltaFromEvent(e);\n var deltaX = ref[0];\n var deltaY = ref[1];\n\n if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {\n return;\n }\n\n var shouldPrevent = false;\n if (!i.settings.useBothWheelAxes) {\n // deltaX will only be used for horizontal scrolling and deltaY will\n // only be used for vertical scrolling - this is the default\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else if (i.scrollbarYActive && !i.scrollbarXActive) {\n // only vertical scrollbar is active and useBothWheelAxes option is\n // active, so let's scroll vertical bar using both mouse wheel axes\n if (deltaY) {\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n } else {\n element.scrollTop += deltaX * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n } else if (i.scrollbarXActive && !i.scrollbarYActive) {\n // useBothWheelAxes and only horizontal bar is active, so use both\n // wheel axes for horizontal bar\n if (deltaX) {\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else {\n element.scrollLeft -= deltaY * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n }\n\n updateGeometry(i);\n\n shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);\n if (shouldPrevent && !e.ctrlKey) {\n e.stopPropagation();\n e.preventDefault();\n }\n }\n\n if (typeof window.onwheel !== 'undefined') {\n i.event.bind(element, 'wheel', mousewheelHandler);\n } else if (typeof window.onmousewheel !== 'undefined') {\n i.event.bind(element, 'mousewheel', mousewheelHandler);\n }\n}\n\nfunction touch(i) {\n if (!env.supportsTouch && !env.supportsIePointer) {\n return;\n }\n\n var element = i.element;\n\n function shouldPrevent(deltaX, deltaY) {\n var scrollTop = Math.floor(element.scrollTop);\n var scrollLeft = element.scrollLeft;\n var magnitudeX = Math.abs(deltaX);\n var magnitudeY = Math.abs(deltaY);\n\n if (magnitudeY > magnitudeX) {\n // user is perhaps trying to swipe up/down the page\n\n if (\n (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||\n (deltaY > 0 && scrollTop === 0)\n ) {\n // set prevent for mobile Chrome refresh\n return window.scrollY === 0 && deltaY > 0 && env.isChrome;\n }\n } else if (magnitudeX > magnitudeY) {\n // user is perhaps trying to swipe left/right across the page\n\n if (\n (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||\n (deltaX > 0 && scrollLeft === 0)\n ) {\n return true;\n }\n }\n\n return true;\n }\n\n function applyTouchMove(differenceX, differenceY) {\n element.scrollTop -= differenceY;\n element.scrollLeft -= differenceX;\n\n updateGeometry(i);\n }\n\n var startOffset = {};\n var startTime = 0;\n var speed = {};\n var easingLoop = null;\n\n function getTouch(e) {\n if (e.targetTouches) {\n return e.targetTouches[0];\n } else {\n // Maybe IE pointer\n return e;\n }\n }\n\n function shouldHandle(e) {\n if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {\n return false;\n }\n if (e.targetTouches && e.targetTouches.length === 1) {\n return true;\n }\n if (\n e.pointerType &&\n e.pointerType !== 'mouse' &&\n e.pointerType !== e.MSPOINTER_TYPE_MOUSE\n ) {\n return true;\n }\n return false;\n }\n\n function touchStart(e) {\n if (!shouldHandle(e)) {\n return;\n }\n\n var touch = getTouch(e);\n\n startOffset.pageX = touch.pageX;\n startOffset.pageY = touch.pageY;\n\n startTime = new Date().getTime();\n\n if (easingLoop !== null) {\n clearInterval(easingLoop);\n }\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n\n // if deltaY && vertical scrollable\n if (deltaY && style.overflowY.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n (cursor.scrollTop > 0 && deltaY < 0) ||\n (cursor.scrollTop < maxScrollTop && deltaY > 0)\n ) {\n return true;\n }\n }\n }\n // if deltaX && horizontal scrollable\n if (deltaX && style.overflowX.match(/(scroll|auto)/)) {\n var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n (cursor.scrollLeft > 0 && deltaX < 0) ||\n (cursor.scrollLeft < maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function touchMove(e) {\n if (shouldHandle(e)) {\n var touch = getTouch(e);\n\n var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };\n\n var differenceX = currentOffset.pageX - startOffset.pageX;\n var differenceY = currentOffset.pageY - startOffset.pageY;\n\n if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {\n return;\n }\n\n applyTouchMove(differenceX, differenceY);\n startOffset = currentOffset;\n\n var currentTime = new Date().getTime();\n\n var timeGap = currentTime - startTime;\n if (timeGap > 0) {\n speed.x = differenceX / timeGap;\n speed.y = differenceY / timeGap;\n startTime = currentTime;\n }\n\n if (shouldPrevent(differenceX, differenceY)) {\n e.preventDefault();\n }\n }\n }\n function touchEnd() {\n if (i.settings.swipeEasing) {\n clearInterval(easingLoop);\n easingLoop = setInterval(function() {\n if (i.isInitialized) {\n clearInterval(easingLoop);\n return;\n }\n\n if (!speed.x && !speed.y) {\n clearInterval(easingLoop);\n return;\n }\n\n if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {\n clearInterval(easingLoop);\n return;\n }\n\n applyTouchMove(speed.x * 30, speed.y * 30);\n\n speed.x *= 0.8;\n speed.y *= 0.8;\n }, 10);\n }\n }\n\n if (env.supportsTouch) {\n i.event.bind(element, 'touchstart', touchStart);\n i.event.bind(element, 'touchmove', touchMove);\n i.event.bind(element, 'touchend', touchEnd);\n } else if (env.supportsIePointer) {\n if (window.PointerEvent) {\n i.event.bind(element, 'pointerdown', touchStart);\n i.event.bind(element, 'pointermove', touchMove);\n i.event.bind(element, 'pointerup', touchEnd);\n } else if (window.MSPointerEvent) {\n i.event.bind(element, 'MSPointerDown', touchStart);\n i.event.bind(element, 'MSPointerMove', touchMove);\n i.event.bind(element, 'MSPointerUp', touchEnd);\n }\n }\n}\n\nvar defaultSettings = function () { return ({\n handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],\n maxScrollbarLength: null,\n minScrollbarLength: null,\n scrollingThreshold: 1000,\n scrollXMarginOffset: 0,\n scrollYMarginOffset: 0,\n suppressScrollX: false,\n suppressScrollY: false,\n swipeEasing: true,\n useBothWheelAxes: false,\n wheelPropagation: true,\n wheelSpeed: 1,\n}); };\n\nvar handlers = {\n 'click-rail': clickRail,\n 'drag-thumb': dragThumb,\n keyboard: keyboard,\n wheel: wheel,\n touch: touch,\n};\n\nvar PerfectScrollbar = function PerfectScrollbar(element, userSettings) {\n var this$1 = this;\n if ( userSettings === void 0 ) userSettings = {};\n\n if (typeof element === 'string') {\n element = document.querySelector(element);\n }\n\n if (!element || !element.nodeName) {\n throw new Error('no element is specified to initialize PerfectScrollbar');\n }\n\n this.element = element;\n\n element.classList.add(cls.main);\n\n this.settings = defaultSettings();\n for (var key in userSettings) {\n this.settings[key] = userSettings[key];\n }\n\n this.containerWidth = null;\n this.containerHeight = null;\n this.contentWidth = null;\n this.contentHeight = null;\n\n var focus = function () { return element.classList.add(cls.state.focus); };\n var blur = function () { return element.classList.remove(cls.state.focus); };\n\n this.isRtl = get(element).direction === 'rtl';\n if (this.isRtl === true) {\n element.classList.add(cls.rtl);\n }\n this.isNegativeScroll = (function () {\n var originalScrollLeft = element.scrollLeft;\n var result = null;\n element.scrollLeft = -1;\n result = element.scrollLeft < 0;\n element.scrollLeft = originalScrollLeft;\n return result;\n })();\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? element.scrollWidth - element.clientWidth\n : 0;\n this.event = new EventManager();\n this.ownerDocument = element.ownerDocument || document;\n\n this.scrollbarXRail = div(cls.element.rail('x'));\n element.appendChild(this.scrollbarXRail);\n this.scrollbarX = div(cls.element.thumb('x'));\n this.scrollbarXRail.appendChild(this.scrollbarX);\n this.scrollbarX.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarX, 'focus', focus);\n this.event.bind(this.scrollbarX, 'blur', blur);\n this.scrollbarXActive = null;\n this.scrollbarXWidth = null;\n this.scrollbarXLeft = null;\n var railXStyle = get(this.scrollbarXRail);\n this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);\n if (isNaN(this.scrollbarXBottom)) {\n this.isScrollbarXUsingBottom = false;\n this.scrollbarXTop = toInt(railXStyle.top);\n } else {\n this.isScrollbarXUsingBottom = true;\n }\n this.railBorderXWidth =\n toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);\n // Set rail to display:block to calculate margins\n set(this.scrollbarXRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);\n set(this.scrollbarXRail, { display: '' });\n this.railXWidth = null;\n this.railXRatio = null;\n\n this.scrollbarYRail = div(cls.element.rail('y'));\n element.appendChild(this.scrollbarYRail);\n this.scrollbarY = div(cls.element.thumb('y'));\n this.scrollbarYRail.appendChild(this.scrollbarY);\n this.scrollbarY.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarY, 'focus', focus);\n this.event.bind(this.scrollbarY, 'blur', blur);\n this.scrollbarYActive = null;\n this.scrollbarYHeight = null;\n this.scrollbarYTop = null;\n var railYStyle = get(this.scrollbarYRail);\n this.scrollbarYRight = parseInt(railYStyle.right, 10);\n if (isNaN(this.scrollbarYRight)) {\n this.isScrollbarYUsingRight = false;\n this.scrollbarYLeft = toInt(railYStyle.left);\n } else {\n this.isScrollbarYUsingRight = true;\n }\n this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;\n this.railBorderYWidth =\n toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);\n set(this.scrollbarYRail, { display: 'block' });\n this.railYMarginHeight =\n toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);\n set(this.scrollbarYRail, { display: '' });\n this.railYHeight = null;\n this.railYRatio = null;\n\n this.reach = {\n x:\n element.scrollLeft <= 0\n ? 'start'\n : element.scrollLeft >= this.contentWidth - this.containerWidth\n ? 'end'\n : null,\n y:\n element.scrollTop <= 0\n ? 'start'\n : element.scrollTop >= this.contentHeight - this.containerHeight\n ? 'end'\n : null,\n };\n\n this.isAlive = true;\n\n this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });\n\n this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only\n this.lastScrollLeft = element.scrollLeft; // for onScroll only\n this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });\n updateGeometry(this);\n};\n\nPerfectScrollbar.prototype.update = function update () {\n if (!this.isAlive) {\n return;\n }\n\n // Recalcuate negative scrollLeft adjustment\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? this.element.scrollWidth - this.element.clientWidth\n : 0;\n\n // Recalculate rail margins\n set(this.scrollbarXRail, { display: 'block' });\n set(this.scrollbarYRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(get(this.scrollbarXRail).marginLeft) +\n toInt(get(this.scrollbarXRail).marginRight);\n this.railYMarginHeight =\n toInt(get(this.scrollbarYRail).marginTop) +\n toInt(get(this.scrollbarYRail).marginBottom);\n\n // Hide scrollbars not to affect scrollWidth and scrollHeight\n set(this.scrollbarXRail, { display: 'none' });\n set(this.scrollbarYRail, { display: 'none' });\n\n updateGeometry(this);\n\n processScrollDiff(this, 'top', 0, false, true);\n processScrollDiff(this, 'left', 0, false, true);\n\n set(this.scrollbarXRail, { display: '' });\n set(this.scrollbarYRail, { display: '' });\n};\n\nPerfectScrollbar.prototype.onScroll = function onScroll (e) {\n if (!this.isAlive) {\n return;\n }\n\n updateGeometry(this);\n processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);\n processScrollDiff(\n this,\n 'left',\n this.element.scrollLeft - this.lastScrollLeft\n );\n\n this.lastScrollTop = Math.floor(this.element.scrollTop);\n this.lastScrollLeft = this.element.scrollLeft;\n};\n\nPerfectScrollbar.prototype.destroy = function destroy () {\n if (!this.isAlive) {\n return;\n }\n\n this.event.unbindAll();\n remove(this.scrollbarX);\n remove(this.scrollbarY);\n remove(this.scrollbarXRail);\n remove(this.scrollbarYRail);\n this.removePsClasses();\n\n // unset elements\n this.element = null;\n this.scrollbarX = null;\n this.scrollbarY = null;\n this.scrollbarXRail = null;\n this.scrollbarYRail = null;\n\n this.isAlive = false;\n};\n\nPerfectScrollbar.prototype.removePsClasses = function removePsClasses () {\n this.element.className = this.element.className\n .split(' ')\n .filter(function (name) { return !name.match(/^ps([-_].+|)$/); })\n .join(' ');\n};\n\nexport default PerfectScrollbar;\n","/**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\r\n/* eslint-disable require-jsdoc, valid-jsdoc */\r\nvar MapShim = (function () {\r\n if (typeof Map !== 'undefined') {\r\n return Map;\r\n }\r\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array<Array>} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n})();\n\n/**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n// Returns global object of a current environment.\r\nvar global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n})();\n\n/**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\nvar requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n})();\n\n// Defines minimum timeout before adding a trailing call.\r\nvar trailingTimeout = 2;\r\n/**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\nfunction throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n}\n\n// Minimum delay before invoking the update of observers.\r\nvar REFRESH_DELAY = 20;\r\n// A list of substrings of CSS properties used to find transition events that\r\n// might affect dimensions of observed elements.\r\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n// Check if MutationObserver is available.\r\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n/**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\nvar ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array<ResizeObserverSPI>}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n}());\n\n/**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\nvar defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n});\n\n/**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\nvar getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n});\n\n// Placeholder of an empty content rectangle.\r\nvar emptyRect = createRectInit(0, 0, 0, 0);\r\n/**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\nfunction toFloat(value) {\r\n return parseFloat(value) || 0;\r\n}\r\n/**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\nfunction getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n}\r\n/**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\nfunction getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n}\r\n/**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n}\r\n/**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the <html> itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n}\r\n/**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nvar isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n})();\r\n/**\r\n * Checks whether provided element is a document element (<html>).\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nfunction isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n}\r\n/**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n}\r\n/**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\nfunction createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n}\r\n/**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n}\n\n/**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\nvar ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n}());\n\nvar ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n}());\n\nvar ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array<ResizeObservation>}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map<Element, ResizeObservation>}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n}());\n\n// Registry of internal observers. If WeakMap is not available use current shim\r\n// for the Map collection as it has all required methods and because WeakMap\r\n// can't be fully polyfilled anyway.\r\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n/**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\nvar ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n}());\r\n// Expose public methods of ResizeObserver.\r\n[\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n});\n\nvar index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n})();\n\nexport default index;\n","import { fromEvent, Subject, merge } from 'rxjs';\nimport { auditTime, takeUntil, distinctUntilChanged, mapTo } from 'rxjs/operators';\nimport { InjectionToken, Directive, NgZone, KeyValueDiffers, ElementRef, Inject, PLATFORM_ID, Optional, Input, Output, EventEmitter, Component, ViewEncapsulation, ChangeDetectorRef, HostBinding, ViewChild, NgModule } from '@angular/core';\nimport { isPlatformBrowser, CommonModule } from '@angular/common';\nimport PerfectScrollbar from 'perfect-scrollbar';\nimport ResizeObserver from 'resize-observer-polyfill';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/** @type {?} */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/common';\n\nfunction PerfectScrollbarComponent_div_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 3);\n ɵngcc0.ɵɵelement(1, \"div\", 4);\n ɵngcc0.ɵɵelement(2, \"div\", 5);\n ɵngcc0.ɵɵelement(3, \"div\", 6);\n ɵngcc0.ɵɵelement(4, \"div\", 7);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n var ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵclassProp(\"ps-at-top\", ctx_r0.states.top)(\"ps-at-left\", ctx_r0.states.left)(\"ps-at-right\", ctx_r0.states.right)(\"ps-at-bottom\", ctx_r0.states.bottom);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵclassProp(\"ps-indicator-show\", ctx_r0.indicatorY && ctx_r0.interaction);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵclassProp(\"ps-indicator-show\", ctx_r0.indicatorX && ctx_r0.interaction);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵclassProp(\"ps-indicator-show\", ctx_r0.indicatorX && ctx_r0.interaction);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵclassProp(\"ps-indicator-show\", ctx_r0.indicatorY && ctx_r0.interaction);\n} }\nvar _c0 = [\"*\"];\nvar PERFECT_SCROLLBAR_CONFIG = new InjectionToken('PERFECT_SCROLLBAR_CONFIG');\nvar Geometry = /** @class */ (function () {\n function Geometry(x, y, w, h) {\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n }\n return Geometry;\n}());\nvar Position = /** @class */ (function () {\n function Position(x, y) {\n this.x = x;\n this.y = y;\n }\n return Position;\n}());\n/** @type {?} */\nvar PerfectScrollbarEvents = [\n 'psScrollY',\n 'psScrollX',\n 'psScrollUp',\n 'psScrollDown',\n 'psScrollLeft',\n 'psScrollRight',\n 'psYReachEnd',\n 'psYReachStart',\n 'psXReachEnd',\n 'psXReachStart'\n];\nvar PerfectScrollbarConfig = /** @class */ (function () {\n function PerfectScrollbarConfig(config) {\n if (config === void 0) { config = {}; }\n this.assign(config);\n }\n /**\n * @param {?=} config\n * @return {?}\n */\n PerfectScrollbarConfig.prototype.assign = /**\n * @param {?=} config\n * @return {?}\n */\n function (config) {\n if (config === void 0) { config = {}; }\n for (var key in config) {\n this[(/** @type {?} */ (key))] = config[(/** @type {?} */ (key))];\n }\n };\n return PerfectScrollbarConfig;\n}());\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nvar PerfectScrollbarDirective = /** @class */ (function () {\n function PerfectScrollbarDirective(zone, differs, elementRef, platformId, defaults) {\n this.zone = zone;\n this.differs = differs;\n this.elementRef = elementRef;\n this.platformId = platformId;\n this.defaults = defaults;\n this.instance = null;\n this.ro = null;\n this.timeout = null;\n this.animation = null;\n this.configDiff = null;\n this.ngDestroy = new Subject();\n this.disabled = false;\n this.psScrollY = new EventEmitter();\n this.psScrollX = new EventEmitter();\n this.psScrollUp = new EventEmitter();\n this.psScrollDown = new EventEmitter();\n this.psScrollLeft = new EventEmitter();\n this.psScrollRight = new EventEmitter();\n this.psYReachEnd = new EventEmitter();\n this.psYReachStart = new EventEmitter();\n this.psXReachEnd = new EventEmitter();\n this.psXReachStart = new EventEmitter();\n }\n /**\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.ngOnInit = /**\n * @return {?}\n */\n function () {\n var _this = this;\n if (!this.disabled && isPlatformBrowser(this.platformId)) {\n /** @type {?} */\n var config_1 = new PerfectScrollbarConfig(this.defaults);\n config_1.assign(this.config); // Custom configuration\n this.zone.runOutsideAngular(function () {\n _this.instance = new PerfectScrollbar(_this.elementRef.nativeElement, config_1);\n });\n if (!this.configDiff) {\n this.configDiff = this.differs.find(this.config || {}).create();\n this.configDiff.diff(this.config || {});\n }\n this.zone.runOutsideAngular(function () {\n _this.ro = new ResizeObserver(function () {\n _this.update();\n });\n if (_this.elementRef.nativeElement.children[0]) {\n _this.ro.observe(_this.elementRef.nativeElement.children[0]);\n }\n _this.ro.observe(_this.elementRef.nativeElement);\n });\n this.zone.runOutsideAngular(function () {\n PerfectScrollbarEvents.forEach(function (eventName) {\n /** @type {?} */\n var eventType = eventName.replace(/([A-Z])/g, function (c) { return \"-\" + c.toLowerCase(); });\n fromEvent(_this.elementRef.nativeElement, eventType)\n .pipe(auditTime(20), takeUntil(_this.ngDestroy))\n .subscribe(function (event) {\n _this[eventName].emit(event);\n });\n });\n });\n }\n };\n /**\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.ngOnDestroy = /**\n * @return {?}\n */\n function () {\n var _this = this;\n if (isPlatformBrowser(this.platformId)) {\n this.ngDestroy.next();\n this.ngDestroy.complete();\n if (this.ro) {\n this.ro.disconnect();\n }\n if (this.timeout && typeof window !== 'undefined') {\n window.clearTimeout(this.timeout);\n }\n this.zone.runOutsideAngular(function () {\n if (_this.instance) {\n _this.instance.destroy();\n }\n });\n this.instance = null;\n }\n };\n /**\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.ngDoCheck = /**\n * @return {?}\n */\n function () {\n if (!this.disabled && this.configDiff && isPlatformBrowser(this.platformId)) {\n /** @type {?} */\n var changes = this.configDiff.diff(this.config || {});\n if (changes) {\n this.ngOnDestroy();\n this.ngOnInit();\n }\n }\n };\n /**\n * @param {?} changes\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.ngOnChanges = /**\n * @param {?} changes\n * @return {?}\n */\n function (changes) {\n if (changes['disabled'] && !changes['disabled'].isFirstChange() && isPlatformBrowser(this.platformId)) {\n if (changes['disabled'].currentValue !== changes['disabled'].previousValue) {\n if (changes['disabled'].currentValue === true) {\n this.ngOnDestroy();\n }\n else if (changes['disabled'].currentValue === false) {\n this.ngOnInit();\n }\n }\n }\n };\n /**\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.ps = /**\n * @return {?}\n */\n function () {\n return this.instance;\n };\n /**\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.update = /**\n * @return {?}\n */\n function () {\n var _this = this;\n if (typeof window !== 'undefined') {\n if (this.timeout) {\n window.clearTimeout(this.timeout);\n }\n this.timeout = window.setTimeout(function () {\n if (!_this.disabled && _this.configDiff) {\n try {\n _this.zone.runOutsideAngular(function () {\n if (_this.instance) {\n _this.instance.update();\n }\n });\n }\n catch (error) {\n // Update can be finished after destroy so catch errors\n }\n }\n }, 0);\n }\n };\n /**\n * @param {?=} prefix\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.geometry = /**\n * @param {?=} prefix\n * @return {?}\n */\n function (prefix) {\n if (prefix === void 0) { prefix = 'scroll'; }\n return new Geometry(this.elementRef.nativeElement[prefix + 'Left'], this.elementRef.nativeElement[prefix + 'Top'], this.elementRef.nativeElement[prefix + 'Width'], this.elementRef.nativeElement[prefix + 'Height']);\n };\n /**\n * @param {?=} absolute\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.position = /**\n * @param {?=} absolute\n * @return {?}\n */\n function (absolute) {\n if (absolute === void 0) { absolute = false; }\n if (!absolute && this.instance) {\n return new Position(this.instance.reach.x || 0, this.instance.reach.y || 0);\n }\n else {\n return new Position(this.elementRef.nativeElement.scrollLeft, this.elementRef.nativeElement.scrollTop);\n }\n };\n /**\n * @param {?=} direction\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollable = /**\n * @param {?=} direction\n * @return {?}\n */\n function (direction) {\n if (direction === void 0) { direction = 'any'; }\n /** @type {?} */\n var element = this.elementRef.nativeElement;\n if (direction === 'any') {\n return element.classList.contains('ps--active-x') ||\n element.classList.contains('ps--active-y');\n }\n else if (direction === 'both') {\n return element.classList.contains('ps--active-x') &&\n element.classList.contains('ps--active-y');\n }\n else {\n return element.classList.contains('ps--active-' + direction);\n }\n };\n /**\n * @param {?} x\n * @param {?=} y\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollTo = /**\n * @param {?} x\n * @param {?=} y\n * @param {?=} speed\n * @return {?}\n */\n function (x, y, speed) {\n if (!this.disabled) {\n if (y == null && speed == null) {\n this.animateScrolling('scrollTop', x, speed);\n }\n else {\n if (x != null) {\n this.animateScrolling('scrollLeft', x, speed);\n }\n if (y != null) {\n this.animateScrolling('scrollTop', y, speed);\n }\n }\n }\n };\n /**\n * @param {?} x\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToX = /**\n * @param {?} x\n * @param {?=} speed\n * @return {?}\n */\n function (x, speed) {\n this.animateScrolling('scrollLeft', x, speed);\n };\n /**\n * @param {?} y\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToY = /**\n * @param {?} y\n * @param {?=} speed\n * @return {?}\n */\n function (y, speed) {\n this.animateScrolling('scrollTop', y, speed);\n };\n /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToTop = /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n function (offset, speed) {\n this.animateScrolling('scrollTop', (offset || 0), speed);\n };\n /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToLeft = /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n function (offset, speed) {\n this.animateScrolling('scrollLeft', (offset || 0), speed);\n };\n /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToRight = /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n function (offset, speed) {\n /** @type {?} */\n var left = this.elementRef.nativeElement.scrollWidth -\n this.elementRef.nativeElement.clientWidth;\n this.animateScrolling('scrollLeft', left - (offset || 0), speed);\n };\n /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToBottom = /**\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n function (offset, speed) {\n /** @type {?} */\n var top = this.elementRef.nativeElement.scrollHeight -\n this.elementRef.nativeElement.clientHeight;\n this.animateScrolling('scrollTop', top - (offset || 0), speed);\n };\n /**\n * @param {?} qs\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.scrollToElement = /**\n * @param {?} qs\n * @param {?=} offset\n * @param {?=} speed\n * @return {?}\n */\n function (qs, offset, speed) {\n /** @type {?} */\n var element = this.elementRef.nativeElement.querySelector(qs);\n if (element) {\n /** @type {?} */\n var elementPos = element.getBoundingClientRect();\n /** @type {?} */\n var scrollerPos = this.elementRef.nativeElement.getBoundingClientRect();\n if (this.elementRef.nativeElement.classList.contains('ps--active-x')) {\n /** @type {?} */\n var currentPos = this.elementRef.nativeElement['scrollLeft'];\n /** @type {?} */\n var position = elementPos.left - scrollerPos.left + currentPos;\n this.animateScrolling('scrollLeft', position + (offset || 0), speed);\n }\n if (this.elementRef.nativeElement.classList.contains('ps--active-y')) {\n /** @type {?} */\n var currentPos = this.elementRef.nativeElement['scrollTop'];\n /** @type {?} */\n var position = elementPos.top - scrollerPos.top + currentPos;\n this.animateScrolling('scrollTop', position + (offset || 0), speed);\n }\n }\n };\n /**\n * @private\n * @param {?} target\n * @param {?} value\n * @param {?=} speed\n * @return {?}\n */\n PerfectScrollbarDirective.prototype.animateScrolling = /**\n * @private\n * @param {?} target\n * @param {?} value\n * @param {?=} speed\n * @return {?}\n */\n function (target, value, speed) {\n var _this = this;\n if (this.animation) {\n window.cancelAnimationFrame(this.animation);\n this.animation = null;\n }\n if (!speed || typeof window === 'undefined') {\n this.elementRef.nativeElement[target] = value;\n }\n else if (value !== this.elementRef.nativeElement[target]) {\n /** @type {?} */\n var newValue_1 = 0;\n /** @type {?} */\n var scrollCount_1 = 0;\n /** @type {?} */\n var oldTimestamp_1 = performance.now();\n /** @type {?} */\n var oldValue_1 = this.elementRef.nativeElement[target];\n /** @type {?} */\n var cosParameter_1 = (oldValue_1 - value) / 2;\n /** @type {?} */\n var step_1 = function (newTimestamp) {\n scrollCount_1 += Math.PI / (speed / (newTimestamp - oldTimestamp_1));\n newValue_1 = Math.round(value + cosParameter_1 + cosParameter_1 * Math.cos(scrollCount_1));\n // Only continue animation if scroll position has not changed\n if (_this.elementRef.nativeElement[target] === oldValue_1) {\n if (scrollCount_1 >= Math.PI) {\n _this.animateScrolling(target, value, 0);\n }\n else {\n _this.elementRef.nativeElement[target] = newValue_1;\n // On a zoomed out page the resulting offset may differ\n oldValue_1 = _this.elementRef.nativeElement[target];\n oldTimestamp_1 = newTimestamp;\n _this.animation = window.requestAnimationFrame(step_1);\n }\n }\n };\n window.requestAnimationFrame(step_1);\n }\n };\n /** @nocollapse */\n PerfectScrollbarDirective.ctorParameters = function () { return [\n { type: NgZone },\n { type: KeyValueDiffers },\n { type: ElementRef },\n { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },\n { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [PERFECT_SCROLLBAR_CONFIG,] }] }\n ]; };\n PerfectScrollbarDirective.propDecorators = {\n disabled: [{ type: Input }],\n config: [{ type: Input, args: ['perfectScrollbar',] }],\n psScrollY: [{ type: Output }],\n psScrollX: [{ type: Output }],\n psScrollUp: [{ type: Output }],\n psScrollDown: [{ type: Output }],\n psScrollLeft: [{ type: Output }],\n psScrollRight: [{ type: Output }],\n psYReachEnd: [{ type: Output }],\n psYReachStart: [{ type: Output }],\n psXReachEnd: [{ type: Output }],\n psXReachStart: [{ type: Output }]\n };\nPerfectScrollbarDirective.ɵfac = function PerfectScrollbarDirective_Factory(t) { return new (t || PerfectScrollbarDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.NgZone), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.KeyValueDiffers), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(PLATFORM_ID), ɵngcc0.ɵɵdirectiveInject(PERFECT_SCROLLBAR_CONFIG, 8)); };\nPerfectScrollbarDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: PerfectScrollbarDirective, selectors: [[\"\", \"perfectScrollbar\", \"\"]], inputs: { disabled: \"disabled\", config: [\"perfectScrollbar\", \"config\"] }, outputs: { psScrollY: \"psScrollY\", psScrollX: \"psScrollX\", psScrollUp: \"psScrollUp\", psScrollDown: \"psScrollDown\", psScrollLeft: \"psScrollLeft\", psScrollRight: \"psScrollRight\", psYReachEnd: \"psYReachEnd\", psYReachStart: \"psYReachStart\", psXReachEnd: \"psXReachEnd\", psXReachStart: \"psXReachStart\" }, exportAs: [\"ngxPerfectScrollbar\"], features: [ɵngcc0.ɵɵNgOnChangesFeature] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(PerfectScrollbarDirective, [{\n type: Directive,\n args: [{\n selector: '[perfectScrollbar]',\n exportAs: 'ngxPerfectScrollbar'\n }]\n }], function () { return [{ type: ɵngcc0.NgZone }, { type: ɵngcc0.KeyValueDiffers }, { type: ɵngcc0.ElementRef }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [PERFECT_SCROLLBAR_CONFIG]\n }] }]; }, { disabled: [{\n type: Input\n }], psScrollY: [{\n type: Output\n }], psScrollX: [{\n type: Output\n }], psScrollUp: [{\n type: Output\n }], psScrollDown: [{\n type: Output\n }], psScrollLeft: [{\n type: Output\n }], psScrollRight: [{\n type: Output\n }], psYReachEnd: [{\n type: Output\n }], psYReachStart: [{\n type: Output\n }], psXReachEnd: [{\n type: Output\n }], psXReachStart: [{\n type: Output\n }], config: [{\n type: Input,\n args: ['perfectScrollbar']\n }] }); })();\n return PerfectScrollbarDirective;\n}());\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nvar PerfectScrollbarComponent = /** @class */ (function () {\n function PerfectScrollbarComponent(zone, cdRef, platformId) {\n this.zone = zone;\n this.cdRef = cdRef;\n this.platformId = platformId;\n this.states = {};\n this.indicatorX = false;\n this.indicatorY = false;\n this.interaction = false;\n this.scrollPositionX = 0;\n this.scrollPositionY = 0;\n this.scrollDirectionX = 0;\n this.scrollDirectionY = 0;\n this.usePropagationX = false;\n this.usePropagationY = false;\n this.allowPropagationX = false;\n this.allowPropagationY = false;\n this.stateTimeout = null;\n this.ngDestroy = new Subject();\n this.stateUpdate = new Subject();\n this.disabled = false;\n this.usePSClass = true;\n this.autoPropagation = false;\n this.scrollIndicators = false;\n this.psScrollY = new EventEmitter();\n this.psScrollX = new EventEmitter();\n this.psScrollUp = new EventEmitter();\n this.psScrollDown = new EventEmitter();\n this.psScrollLeft = new EventEmitter();\n this.psScrollRight = new EventEmitter();\n this.psYReachEnd = new EventEmitter();\n this.psYReachStart = new EventEmitter();\n this.psXReachEnd = new EventEmitter();\n this.psXReachStart = new EventEmitter();\n }\n /**\n * @return {?}\n */\n PerfectScrollbarComponent.prototype.ngOnInit = /**\n * @return {?}\n */\n function () {\n var _this = this;\n if (isPlatformBrowser(this.platformId)) {\n this.stateUpdate\n .pipe(takeUntil(this.ngDestroy), distinctUntilChanged(function (a, b) { return (a === b && !_this.stateTimeout); }))\n .subscribe(function (state) {\n if (_this.stateTimeout && typeof window !== 'undefined') {\n window.clearTimeout(_this.stateTimeout);\n _this.stateTimeout = null;\n }\n if (state === 'x' || state === 'y') {\n _this.interaction = false;\n if (state === 'x') {\n _this.indicatorX = false;\n _this.states.left = false;\n _this.states.right = false;\n if (_this.autoPropagation && _this.usePropagationX) {\n _this.allowPropagationX = false;\n }\n }\n else if (state === 'y') {\n _this.indicatorY = false;\n _this.states.top = false;\n _this.states.bottom = false;\n if (_this.autoPropagation && _this.usePropagationY) {\n _this.allowPropagationY = false;\n }\n }\n }\n else {\n if (state === 'left' || state === 'right') {\n _this.states.left = false;\n _this.states.right = false;\n _this.states[state] = true;\n if (_this.autoPropagation && _this.usePropagationX) {\n _this.indicatorX = true;\n }\n }\n else if (state === 'top' || state === 'bottom') {\n _this.states.top = false;\n _this.states.bottom = false;\n _this.states[state] = true;\n if (_this.autoPropagation && _this.usePropagationY) {\n _this.indicatorY = true;\n }\n }\n if (_this.autoPropagation && typeof window !== 'undefined') {\n _this.stateTimeout = window.setTimeout(function () {\n _this.indicatorX = false;\n _this.indicatorY = false;\n _this.stateTimeout = null;\n if (_this.interaction && (_this.states.left || _this.states.right)) {\n _this.allowPropagationX = true;\n }\n if (_this.interaction && (_this.states.top || _this.states.bottom)) {\n _this.allowPropagationY = true;\n }\n _this.cdRef.markForCheck();\n }, 500);\n }\n }\n _this.cdRef.markForCheck();\n _this.cdRef.detectChanges();\n });\n this.zone.runOutsideAngular(function () {\n if (_this.directiveRef) {\n /** @type {?} */\n var element = _this.directiveRef.elementRef.nativeElement;\n fromEvent(element, 'wheel')\n .pipe(takeUntil(_this.ngDestroy))\n .subscribe(function (event) {\n if (!_this.disabled && _this.autoPropagation) {\n /** @type {?} */\n var scrollDeltaX = event.deltaX;\n /** @type {?} */\n var scrollDeltaY = event.deltaY;\n _this.checkPropagation(event, scrollDeltaX, scrollDeltaY);\n }\n });\n fromEvent(element, 'touchmove')\n .pipe(takeUntil(_this.ngDestroy))\n .subscribe(function (event) {\n if (!_this.disabled && _this.autoPropagation) {\n /** @type {?} */\n var scrollPositionX = event.touches[0].clientX;\n /** @type {?} */\n var scrollPositionY = event.touches[0].clientY;\n /** @type {?} */\n var scrollDeltaX = scrollPositionX - _this.scrollPositionX;\n /** @type {?} */\n var scrollDeltaY = scrollPositionY - _this.scrollPositionY;\n _this.checkPropagation(event, scrollDeltaX, scrollDeltaY);\n _this.scrollPositionX = scrollPositionX;\n _this.scrollPositionY = scrollPositionY;\n }\n });\n merge(fromEvent(element, 'ps-scroll-x')\n .pipe(mapTo('x')), fromEvent(element, 'ps-scroll-y')\n .pipe(mapTo('y')), fromEvent(element, 'ps-x-reach-end')\n .pipe(mapTo('right')), fromEvent(element, 'ps-y-reach-end')\n .pipe(mapTo('bottom')), fromEvent(element, 'ps-x-reach-start')\n .pipe(mapTo('left')), fromEvent(element, 'ps-y-reach-start')\n .pipe(mapTo('top')))\n .pipe(takeUntil(_this.ngDestroy))\n .subscribe(function (state) {\n if (!_this.disabled && (_this.autoPropagation || _this.scrollIndicators)) {\n _this.stateUpdate.next(state);\n }\n });\n }\n });\n window.setTimeout(function () {\n PerfectScrollbarEvents.forEach(function (eventName) {\n if (_this.directiveRef) {\n _this.directiveRef[eventName] = _this[eventName];\n }\n });\n }, 0);\n }\n };\n /**\n * @return {?}\n */\n PerfectScrollbarComponent.prototype.ngOnDestroy = /**\n * @return {?}\n */\n function () {\n if (isPlatformBrowser(this.platformId)) {\n this.ngDestroy.next();\n this.ngDestroy.unsubscribe();\n if (this.stateTimeout && typeof window !== 'undefined') {\n window.clearTimeout(this.stateTimeout);\n }\n }\n };\n /**\n * @return {?}\n */\n PerfectScrollbarComponent.prototype.ngDoCheck = /**\n * @return {?}\n */\n function () {\n if (isPlatformBrowser(this.platformId)) {\n if (!this.disabled && this.autoPropagation && this.directiveRef) {\n /** @type {?} */\n var element = this.directiveRef.elementRef.nativeElement;\n this.usePropagationX = element.classList.contains('ps--active-x');\n this.usePropagationY = element.classList.contains('ps--active-y');\n }\n }\n };\n /**\n * @private\n * @param {?} event\n * @param {?} deltaX\n * @param {?} deltaY\n * @return {?}\n */\n PerfectScrollbarComponent.prototype.checkPropagation = /**\n * @private\n * @param {?} event\n * @param {?} deltaX\n * @param {?} deltaY\n * @return {?}\n */\n function (event, deltaX, deltaY) {\n this.interaction = true;\n /** @type {?} */\n var scrollDirectionX = (deltaX < 0) ? -1 : 1;\n /** @type {?} */\n var scrollDirectionY = (deltaY < 0) ? -1 : 1;\n if ((this.usePropagationX && this.usePropagationY) ||\n (this.usePropagationX && (!this.allowPropagationX ||\n (this.scrollDirectionX !== scrollDirectionX))) ||\n (this.usePropagationY && (!this.allowPropagationY ||\n (this.scrollDirectionY !== scrollDirectionY)))) {\n event.preventDefault();\n event.stopPropagation();\n }\n if (!!deltaX) {\n this.scrollDirectionX = scrollDirectionX;\n }\n if (!!deltaY) {\n this.scrollDirectionY = scrollDirectionY;\n }\n this.stateUpdate.next('interaction');\n this.cdRef.detectChanges();\n };\n /** @nocollapse */\n PerfectScrollbarComponent.ctorParameters = function () { return [\n { type: NgZone },\n { type: ChangeDetectorRef },\n { type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }\n ]; };\n PerfectScrollbarComponent.propDecorators = {\n disabled: [{ type: Input }],\n usePSClass: [{ type: Input }],\n autoPropagation: [{ type: HostBinding, args: ['class.ps-show-limits',] }, { type: Input }],\n scrollIndicators: [{ type: HostBinding, args: ['class.ps-show-active',] }, { type: Input }],\n config: [{ type: Input }],\n psScrollY: [{ type: Output }],\n psScrollX: [{ type: Output }],\n psScrollUp: [{ type: Output }],\n psScrollDown: [{ type: Output }],\n psScrollLeft: [{ type: Output }],\n psScrollRight: [{ type: Output }],\n psYReachEnd: [{ type: Output }],\n psYReachStart: [{ type: Output }],\n psXReachEnd: [{ type: Output }],\n psXReachStart: [{ type: Output }],\n directiveRef: [{ type: ViewChild, args: [PerfectScrollbarDirective,] }]\n };\nPerfectScrollbarComponent.ɵfac = function PerfectScrollbarComponent_Factory(t) { return new (t || PerfectScrollbarComponent)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.NgZone), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef), ɵngcc0.ɵɵdirectiveInject(PLATFORM_ID)); };\nPerfectScrollbarComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: PerfectScrollbarComponent, selectors: [[\"perfect-scrollbar\"]], viewQuery: function PerfectScrollbarComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(PerfectScrollbarDirective, 5);\n } if (rf & 2) {\n var _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.directiveRef = _t.first);\n } }, hostVars: 4, hostBindings: function PerfectScrollbarComponent_HostBindings(rf, ctx) { if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"ps-show-limits\", ctx.autoPropagation)(\"ps-show-active\", ctx.scrollIndicators);\n } }, inputs: { disabled: \"disabled\", usePSClass: \"usePSClass\", autoPropagation: \"autoPropagation\", scrollIndicators: \"scrollIndicators\", config: \"config\" }, outputs: { psScrollY: \"psScrollY\", psScrollX: \"psScrollX\", psScrollUp: \"psScrollUp\", psScrollDown: \"psScrollDown\", psScrollLeft: \"psScrollLeft\", psScrollRight: \"psScrollRight\", psYReachEnd: \"psYReachEnd\", psYReachStart: \"psYReachStart\", psXReachEnd: \"psXReachEnd\", psXReachStart: \"psXReachStart\" }, exportAs: [\"ngxPerfectScrollbar\"], ngContentSelectors: _c0, decls: 4, vars: 5, consts: [[2, \"position\", \"static\", 3, \"perfectScrollbar\", \"disabled\"], [1, \"ps-content\"], [\"class\", \"ps-overlay\", 3, \"ps-at-top\", \"ps-at-left\", \"ps-at-right\", \"ps-at-bottom\", 4, \"ngIf\"], [1, \"ps-overlay\"], [1, \"ps-indicator-top\"], [1, \"ps-indicator-left\"], [1, \"ps-indicator-right\"], [1, \"ps-indicator-bottom\"]], template: function PerfectScrollbarComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵprojectionDef();\n ɵngcc0.ɵɵelementStart(0, \"div\", 0);\n ɵngcc0.ɵɵelementStart(1, \"div\", 1);\n ɵngcc0.ɵɵprojection(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, PerfectScrollbarComponent_div_3_Template, 5, 16, \"div\", 2);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"ps\", ctx.usePSClass);\n ɵngcc0.ɵɵproperty(\"perfectScrollbar\", ctx.config)(\"disabled\", ctx.disabled);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.scrollIndicators);\n } }, directives: [PerfectScrollbarDirective, ɵngcc1.NgIf], styles: [\"/*\\n TODO: Remove important flags after this bug if fixed:\\n https://github.com/angular/flex-layout/issues/381\\n*/\\n\\nperfect-scrollbar {\\n position: relative;\\n\\n display: block;\\n overflow: hidden;\\n width: 100%;\\n height: 100%;\\n max-width: 100%;\\n max-height: 100%;\\n}\\n\\nperfect-scrollbar[hidden] {\\n display: none;\\n}\\n\\nperfect-scrollbar[fxflex] {\\n display: flex;\\n flex-direction: column;\\n height: auto;\\n min-width: 0;\\n min-height: 0;\\n\\n -webkit-box-direction: column;\\n -webkit-box-orient: column;\\n}\\n\\nperfect-scrollbar[fxflex] > .ps {\\n -ms-flex: 1 1 auto;\\n\\n flex: 1 1 auto;\\n width: auto;\\n height: auto;\\n min-width: 0;\\n min-height: 0;\\n\\n -webkit-box-flex: 1;\\n}\\n\\nperfect-scrollbar[fxlayout] > .ps,\\nperfect-scrollbar[fxlayout] > .ps > .ps-content {\\n display: flex;\\n\\n -ms-flex: 1 1 auto;\\n\\n flex: 1 1 auto;\\n flex-direction: inherit;\\n align-items: inherit;\\n align-content: inherit;\\n justify-content: inherit;\\n width: 100%;\\n height: 100%;\\n\\n -webkit-box-align: inherit;\\n -webkit-box-direction: inherit;\\n -webkit-box-flex: 1;\\n -webkit-box-orient: inherit;\\n -webkit-box-pack: inherit;\\n}\\n\\nperfect-scrollbar[fxlayout='row'] > .ps,\\nperfect-scrollbar[fxlayout='row'] > .ps > .ps-content, {\\n flex-direction: row !important;\\n\\n -webkit-box-direction: row !important;\\n -webkit-box-orient: row !important;\\n}\\n\\nperfect-scrollbar[fxlayout='column'] > .ps,\\nperfect-scrollbar[fxlayout='column'] > .ps > .ps-content {\\n flex-direction: column !important;\\n\\n -webkit-box-direction: column !important;\\n -webkit-box-orient: column !important;\\n}\\n\\nperfect-scrollbar > .ps {\\n position: static;\\n\\n display: block;\\n width: inherit;\\n height: inherit;\\n max-width: inherit;\\n max-height: inherit;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay {\\n position: absolute;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n\\n display: block;\\n overflow: hidden;\\n\\n pointer-events: none;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n position: absolute;\\n\\n opacity: 0;\\n\\n transition: opacity 300ms ease-in-out;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n left: 0;\\n\\n min-width: 100%;\\n min-height: 24px;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\\n top: 0;\\n\\n min-width: 24px;\\n min-height: 100%;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top {\\n top: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left {\\n left: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\\n right: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n bottom: 0;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y {\\n top: 0 !important;\\n right: 0 !important;\\n left: auto !important;\\n\\n width: 10px;\\n\\n cursor: default;\\n\\n transition:\\n width 200ms linear,\\n opacity 200ms linear,\\n background-color 200ms linear;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y:hover,\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y.ps--clicking {\\n width: 15px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x {\\n top: auto !important;\\n bottom: 0 !important;\\n left: 0 !important;\\n\\n height: 10px;\\n\\n cursor: default;\\n\\n transition:\\n height 200ms linear,\\n opacity 200ms linear,\\n background-color 200ms linear;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x:hover,\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x.ps--clicking {\\n height: 15px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-y {\\n margin: 0 0 10px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-x {\\n margin: 0 10px 0 0;\\n}\\n\\nperfect-scrollbar > .ps.ps--scrolling-y > .ps__rail-y,\\nperfect-scrollbar > .ps.ps--scrolling-x > .ps__rail-x {\\n opacity: 0.9;\\n\\n background-color: #eee;\\n}\\n\\nperfect-scrollbar.ps-show-always > .ps.ps--active-y > .ps__rail-y,\\nperfect-scrollbar.ps-show-always > .ps.ps--active-x > .ps__rail-x {\\n opacity: 0.6;\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-top) .ps-indicator-top {\\n opacity: 1;\\n\\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom {\\n opacity: 1;\\n\\n background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-left) .ps-indicator-left {\\n opacity: 1;\\n\\n background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-right) .ps-indicator-right {\\n opacity: 1;\\n\\n background: linear-gradient(to left, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top {\\n background: linear-gradient(to bottom, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom {\\n background: linear-gradient(to top, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left {\\n background: linear-gradient(to right, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right {\\n background: linear-gradient(to left, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show {\\n opacity: 1;\\n}\\n\", \"/*\\n * Container style\\n */\\n.ps {\\n overflow: hidden !important;\\n overflow-anchor: none;\\n -ms-overflow-style: none;\\n touch-action: auto;\\n -ms-touch-action: auto;\\n}\\n\\n/*\\n * Scrollbar rail styles\\n */\\n.ps__rail-x {\\n display: none;\\n opacity: 0;\\n transition: background-color .2s linear, opacity .2s linear;\\n -webkit-transition: background-color .2s linear, opacity .2s linear;\\n height: 15px;\\n /* there must be 'bottom' or 'top' for ps__rail-x */\\n bottom: 0px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__rail-y {\\n display: none;\\n opacity: 0;\\n transition: background-color .2s linear, opacity .2s linear;\\n -webkit-transition: background-color .2s linear, opacity .2s linear;\\n width: 15px;\\n /* there must be 'right' or 'left' for ps__rail-y */\\n right: 0;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps--active-x > .ps__rail-x,\\n.ps--active-y > .ps__rail-y {\\n display: block;\\n background-color: transparent;\\n}\\n\\n.ps:hover > .ps__rail-x,\\n.ps:hover > .ps__rail-y,\\n.ps--focus > .ps__rail-x,\\n.ps--focus > .ps__rail-y,\\n.ps--scrolling-x > .ps__rail-x,\\n.ps--scrolling-y > .ps__rail-y {\\n opacity: 0.6;\\n}\\n\\n.ps .ps__rail-x:hover,\\n.ps .ps__rail-y:hover,\\n.ps .ps__rail-x:focus,\\n.ps .ps__rail-y:focus,\\n.ps .ps__rail-x.ps--clicking,\\n.ps .ps__rail-y.ps--clicking {\\n background-color: #eee;\\n opacity: 0.9;\\n}\\n\\n/*\\n * Scrollbar thumb styles\\n */\\n.ps__thumb-x {\\n background-color: #aaa;\\n border-radius: 6px;\\n transition: background-color .2s linear, height .2s ease-in-out;\\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\\n height: 6px;\\n /* there must be 'bottom' for ps__thumb-x */\\n bottom: 2px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__thumb-y {\\n background-color: #aaa;\\n border-radius: 6px;\\n transition: background-color .2s linear, width .2s ease-in-out;\\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\\n width: 6px;\\n /* there must be 'right' for ps__thumb-y */\\n right: 2px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__rail-x:hover > .ps__thumb-x,\\n.ps__rail-x:focus > .ps__thumb-x,\\n.ps__rail-x.ps--clicking .ps__thumb-x {\\n background-color: #999;\\n height: 11px;\\n}\\n\\n.ps__rail-y:hover > .ps__thumb-y,\\n.ps__rail-y:focus > .ps__thumb-y,\\n.ps__rail-y.ps--clicking .ps__thumb-y {\\n background-color: #999;\\n width: 11px;\\n}\\n\\n/* MS supports */\\n@supports (-ms-overflow-style: none) {\\n .ps {\\n overflow: auto !important;\\n }\\n}\\n\\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\\n .ps {\\n overflow: auto !important;\\n }\\n}\\n\"], encapsulation: 2 });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(PerfectScrollbarComponent, [{\n type: Component,\n args: [{\n selector: 'perfect-scrollbar',\n exportAs: 'ngxPerfectScrollbar',\n template: \"<div style=\\\"position: static;\\\" [class.ps]=\\\"usePSClass\\\" [perfectScrollbar]=\\\"config\\\" [disabled]=\\\"disabled\\\">\\n <div class=\\\"ps-content\\\">\\n <ng-content></ng-content>\\n </div>\\n\\n <div *ngIf=\\\"scrollIndicators\\\" class=\\\"ps-overlay\\\" [class.ps-at-top]=\\\"states.top\\\" [class.ps-at-left]=\\\"states.left\\\" [class.ps-at-right]=\\\"states.right\\\" [class.ps-at-bottom]=\\\"states.bottom\\\">\\n <div class=\\\"ps-indicator-top\\\" [class.ps-indicator-show]=\\\"indicatorY && interaction\\\"></div>\\n <div class=\\\"ps-indicator-left\\\" [class.ps-indicator-show]=\\\"indicatorX && interaction\\\"></div>\\n <div class=\\\"ps-indicator-right\\\" [class.ps-indicator-show]=\\\"indicatorX && interaction\\\"></div>\\n <div class=\\\"ps-indicator-bottom\\\" [class.ps-indicator-show]=\\\"indicatorY && interaction\\\"></div>\\n </div>\\n</div>\\n\",\n encapsulation: ViewEncapsulation.None,\n styles: [\"/*\\n TODO: Remove important flags after this bug if fixed:\\n https://github.com/angular/flex-layout/issues/381\\n*/\\n\\nperfect-scrollbar {\\n position: relative;\\n\\n display: block;\\n overflow: hidden;\\n width: 100%;\\n height: 100%;\\n max-width: 100%;\\n max-height: 100%;\\n}\\n\\nperfect-scrollbar[hidden] {\\n display: none;\\n}\\n\\nperfect-scrollbar[fxflex] {\\n display: flex;\\n flex-direction: column;\\n height: auto;\\n min-width: 0;\\n min-height: 0;\\n\\n -webkit-box-direction: column;\\n -webkit-box-orient: column;\\n}\\n\\nperfect-scrollbar[fxflex] > .ps {\\n -ms-flex: 1 1 auto;\\n\\n flex: 1 1 auto;\\n width: auto;\\n height: auto;\\n min-width: 0;\\n min-height: 0;\\n\\n -webkit-box-flex: 1;\\n}\\n\\nperfect-scrollbar[fxlayout] > .ps,\\nperfect-scrollbar[fxlayout] > .ps > .ps-content {\\n display: flex;\\n\\n -ms-flex: 1 1 auto;\\n\\n flex: 1 1 auto;\\n flex-direction: inherit;\\n align-items: inherit;\\n align-content: inherit;\\n justify-content: inherit;\\n width: 100%;\\n height: 100%;\\n\\n -webkit-box-align: inherit;\\n -webkit-box-direction: inherit;\\n -webkit-box-flex: 1;\\n -webkit-box-orient: inherit;\\n -webkit-box-pack: inherit;\\n}\\n\\nperfect-scrollbar[fxlayout='row'] > .ps,\\nperfect-scrollbar[fxlayout='row'] > .ps > .ps-content, {\\n flex-direction: row !important;\\n\\n -webkit-box-direction: row !important;\\n -webkit-box-orient: row !important;\\n}\\n\\nperfect-scrollbar[fxlayout='column'] > .ps,\\nperfect-scrollbar[fxlayout='column'] > .ps > .ps-content {\\n flex-direction: column !important;\\n\\n -webkit-box-direction: column !important;\\n -webkit-box-orient: column !important;\\n}\\n\\nperfect-scrollbar > .ps {\\n position: static;\\n\\n display: block;\\n width: inherit;\\n height: inherit;\\n max-width: inherit;\\n max-height: inherit;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay {\\n position: absolute;\\n top: 0;\\n right: 0;\\n bottom: 0;\\n left: 0;\\n\\n display: block;\\n overflow: hidden;\\n\\n pointer-events: none;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n position: absolute;\\n\\n opacity: 0;\\n\\n transition: opacity 300ms ease-in-out;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n left: 0;\\n\\n min-width: 100%;\\n min-height: 24px;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left,\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\\n top: 0;\\n\\n min-width: 24px;\\n min-height: 100%;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-top {\\n top: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-left {\\n left: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-right {\\n right: 0;\\n}\\n\\nperfect-scrollbar > .ps > .ps-overlay .ps-indicator-bottom {\\n bottom: 0;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y {\\n top: 0 !important;\\n right: 0 !important;\\n left: auto !important;\\n\\n width: 10px;\\n\\n cursor: default;\\n\\n transition:\\n width 200ms linear,\\n opacity 200ms linear,\\n background-color 200ms linear;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y:hover,\\nperfect-scrollbar > .ps.ps--active-y > .ps__rail-y.ps--clicking {\\n width: 15px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x {\\n top: auto !important;\\n bottom: 0 !important;\\n left: 0 !important;\\n\\n height: 10px;\\n\\n cursor: default;\\n\\n transition:\\n height 200ms linear,\\n opacity 200ms linear,\\n background-color 200ms linear;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x:hover,\\nperfect-scrollbar > .ps.ps--active-x > .ps__rail-x.ps--clicking {\\n height: 15px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-y {\\n margin: 0 0 10px;\\n}\\n\\nperfect-scrollbar > .ps.ps--active-x.ps--active-y > .ps__rail-x {\\n margin: 0 10px 0 0;\\n}\\n\\nperfect-scrollbar > .ps.ps--scrolling-y > .ps__rail-y,\\nperfect-scrollbar > .ps.ps--scrolling-x > .ps__rail-x {\\n opacity: 0.9;\\n\\n background-color: #eee;\\n}\\n\\nperfect-scrollbar.ps-show-always > .ps.ps--active-y > .ps__rail-y,\\nperfect-scrollbar.ps-show-always > .ps.ps--active-x > .ps__rail-x {\\n opacity: 0.6;\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-top) .ps-indicator-top {\\n opacity: 1;\\n\\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-y > .ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom {\\n opacity: 1;\\n\\n background: linear-gradient(to top, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-left) .ps-indicator-left {\\n opacity: 1;\\n\\n background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active > .ps.ps--active-x > .ps-overlay:not(.ps-at-right) .ps-indicator-right {\\n opacity: 1;\\n\\n background: linear-gradient(to left, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top {\\n background: linear-gradient(to bottom, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom {\\n background: linear-gradient(to top, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left {\\n background: linear-gradient(to right, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right {\\n background: linear-gradient(to left, rgba(170, 170, 170, 0.5) 0%, rgba(170, 170, 170, 0) 100%);\\n}\\n\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-y > .ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,\\nperfect-scrollbar.ps-show-active.ps-show-limits > .ps.ps--active-x > .ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show {\\n opacity: 1;\\n}\\n\", \"/*\\n * Container style\\n */\\n.ps {\\n overflow: hidden !important;\\n overflow-anchor: none;\\n -ms-overflow-style: none;\\n touch-action: auto;\\n -ms-touch-action: auto;\\n}\\n\\n/*\\n * Scrollbar rail styles\\n */\\n.ps__rail-x {\\n display: none;\\n opacity: 0;\\n transition: background-color .2s linear, opacity .2s linear;\\n -webkit-transition: background-color .2s linear, opacity .2s linear;\\n height: 15px;\\n /* there must be 'bottom' or 'top' for ps__rail-x */\\n bottom: 0px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__rail-y {\\n display: none;\\n opacity: 0;\\n transition: background-color .2s linear, opacity .2s linear;\\n -webkit-transition: background-color .2s linear, opacity .2s linear;\\n width: 15px;\\n /* there must be 'right' or 'left' for ps__rail-y */\\n right: 0;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps--active-x > .ps__rail-x,\\n.ps--active-y > .ps__rail-y {\\n display: block;\\n background-color: transparent;\\n}\\n\\n.ps:hover > .ps__rail-x,\\n.ps:hover > .ps__rail-y,\\n.ps--focus > .ps__rail-x,\\n.ps--focus > .ps__rail-y,\\n.ps--scrolling-x > .ps__rail-x,\\n.ps--scrolling-y > .ps__rail-y {\\n opacity: 0.6;\\n}\\n\\n.ps .ps__rail-x:hover,\\n.ps .ps__rail-y:hover,\\n.ps .ps__rail-x:focus,\\n.ps .ps__rail-y:focus,\\n.ps .ps__rail-x.ps--clicking,\\n.ps .ps__rail-y.ps--clicking {\\n background-color: #eee;\\n opacity: 0.9;\\n}\\n\\n/*\\n * Scrollbar thumb styles\\n */\\n.ps__thumb-x {\\n background-color: #aaa;\\n border-radius: 6px;\\n transition: background-color .2s linear, height .2s ease-in-out;\\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\\n height: 6px;\\n /* there must be 'bottom' for ps__thumb-x */\\n bottom: 2px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__thumb-y {\\n background-color: #aaa;\\n border-radius: 6px;\\n transition: background-color .2s linear, width .2s ease-in-out;\\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\\n width: 6px;\\n /* there must be 'right' for ps__thumb-y */\\n right: 2px;\\n /* please don't change 'position' */\\n position: absolute;\\n}\\n\\n.ps__rail-x:hover > .ps__thumb-x,\\n.ps__rail-x:focus > .ps__thumb-x,\\n.ps__rail-x.ps--clicking .ps__thumb-x {\\n background-color: #999;\\n height: 11px;\\n}\\n\\n.ps__rail-y:hover > .ps__thumb-y,\\n.ps__rail-y:focus > .ps__thumb-y,\\n.ps__rail-y.ps--clicking .ps__thumb-y {\\n background-color: #999;\\n width: 11px;\\n}\\n\\n/* MS supports */\\n@supports (-ms-overflow-style: none) {\\n .ps {\\n overflow: auto !important;\\n }\\n}\\n\\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\\n .ps {\\n overflow: auto !important;\\n }\\n}\\n\"]\n }]\n }], function () { return [{ type: ɵngcc0.NgZone }, { type: ɵngcc0.ChangeDetectorRef }, { type: Object, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }]; }, { disabled: [{\n type: Input\n }], usePSClass: [{\n type: Input\n }], autoPropagation: [{\n type: HostBinding,\n args: ['class.ps-show-limits']\n }, {\n type: Input\n }], scrollIndicators: [{\n type: HostBinding,\n args: ['class.ps-show-active']\n }, {\n type: Input\n }], psScrollY: [{\n type: Output\n }], psScrollX: [{\n type: Output\n }], psScrollUp: [{\n type: Output\n }], psScrollDown: [{\n type: Output\n }], psScrollLeft: [{\n type: Output\n }], psScrollRight: [{\n type: Output\n }], psYReachEnd: [{\n type: Output\n }], psYReachStart: [{\n type: Output\n }], psXReachEnd: [{\n type: Output\n }], psXReachStart: [{\n type: Output\n }], config: [{\n type: Input\n }], directiveRef: [{\n type: ViewChild,\n args: [PerfectScrollbarDirective]\n }] }); })();\n return PerfectScrollbarComponent;\n}());\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nvar PerfectScrollbarModule = /** @class */ (function () {\n function PerfectScrollbarModule() {\n }\nPerfectScrollbarModule.ɵfac = function PerfectScrollbarModule_Factory(t) { return new (t || PerfectScrollbarModule)(); };\nPerfectScrollbarModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: PerfectScrollbarModule });\nPerfectScrollbarModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[CommonModule], CommonModule] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(PerfectScrollbarModule, [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [PerfectScrollbarComponent, PerfectScrollbarDirective],\n exports: [CommonModule, PerfectScrollbarComponent, PerfectScrollbarDirective]\n }]\n }], function () { return []; }, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(PerfectScrollbarModule, { declarations: function () { return [PerfectScrollbarComponent, PerfectScrollbarDirective]; }, imports: function () { return [CommonModule]; }, exports: function () { return [CommonModule, PerfectScrollbarComponent, PerfectScrollbarDirective]; } }); })();\n return PerfectScrollbarModule;\n}());\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { PerfectScrollbarComponent, PerfectScrollbarDirective, Geometry, Position, PERFECT_SCROLLBAR_CONFIG, PerfectScrollbarConfig, PerfectScrollbarModule };\n\n","import { UserModel } from '@front-office/models/user.model';\nimport { User } from '@front-office/idp.lib';\n\nexport class LoadUserAction {\n static readonly type = '[User] Load User Action';\n constructor() {}\n}\n\nexport class LoadUserSuccessAction {\n static readonly type = '[User] Load User Action Success';\n constructor(public user: UserModel) {}\n}\n\nexport class LoadUserFailAction {\n static readonly type = '[User] Load User Fail';\n constructor() {}\n}\n\n// Login\nexport class LoginUserAction {\n static readonly type = '[User] Login user';\n constructor(public user: User) {}\n}\n\nexport class LoginUserSuccessAction {\n static readonly type = '[User] Login User Action Success';\n constructor(public token: string) {}\n}\n\nexport class LoginUserFailAction {\n static readonly type = '[User] Login User Fail';\n constructor() {}\n}\n\n// Logout\nexport class LogoutUserAction {\n static readonly type = '[User] Logout';\n constructor() {}\n}\n\nexport class LogoutUserSuccessAction {\n static readonly type = '[User] Logout User Action Success';\n constructor() {}\n}\n\nexport class LogoutUserFailAction {\n static readonly type = '[User] Logout User Fail';\n constructor() {}\n}\n\n// Renew Token\nexport class RenewToken {\n static readonly type = '[User] Renew Token';\n constructor() {}\n}\n\nexport class RenewTokenSuccess {\n static readonly type = '[User] Renew Ttoken Success';\n constructor(public token: string) {}\n}\n\nexport class RenewTokenFail {\n static readonly type = '[User] Renew Token Fail';\n constructor() {}\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { UserModel } from '@front-office/models/user.model';\nimport { Store } from '@ngxs/store';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { User } from '@front-office/idp.lib';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AuthenticationService {\n constructor(private store: Store, private http: HttpClient) {}\n\n public showLogin(): void {\n if (!window.IdpManager) {\n return;\n }\n\n window.IdpManager.showLogin();\n }\n\n public register(): void {\n if (!window.IdpManager) {\n return;\n }\n\n window.IdpManager.showRegister();\n }\n\n public loadUser(): Observable<UserModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${config.apiUrl}/account-fo/load-userdata`;\n return this.http.get<UserModel>(url);\n }\n\n // public logout(): void {\n // this.idpService.logout();\n // this.store.dispatch(new SetUserAction(null));\n // }\n\n public login(user: User): Observable<any> {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${config.apiUrl}/account-fo/login`;\n // const user: UserMetaData = { userId: userId };\n\n return this.http.post(url, user.originalUser, httpOptions);\n }\n\n public logout(): Observable<any> {\n return of(sessionStorage.removeItem('id_token'));\n }\n\n isAuthenticated(): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<any>(`${config.apiUrl}/account-fo/is-authenticated`);\n }\n\n renewToken(): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<any>(`${config.apiUrl}/account-fo/renew-token`);\n }\n}\n","import { Selector, StateContext, Action, State } from '@ngxs/store';\nimport {\n LoadUserAction,\n LogoutUserAction,\n LoginUserAction,\n LoadUserSuccessAction,\n LoadUserFailAction,\n LoginUserSuccessAction,\n LoginUserFailAction,\n LogoutUserSuccessAction,\n LogoutUserFailAction,\n RenewToken,\n RenewTokenSuccess,\n RenewTokenFail,\n} from '@front-office/store/actions/user.actions';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { AuthenticationService } from '@front-office/services/authentication.service';\nimport { UserModel } from '@front-office/models/user.model';\nimport { map, catchError } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\n\nexport interface UserStateModel {\n user: UserModel;\n}\n\n@State<UserStateModel>({\n name: 'user',\n defaults: {\n user: null,\n },\n})\n@Injectable()\nexport class UserState {\n constructor(\n // private idpService: IdpService,\n private authService: AuthenticationService\n ) {}\n\n @Selector()\n static getUser(model: UserStateModel) {\n return model.user;\n }\n\n @Action(LoadUserAction)\n loadUserAction(ctx: StateContext<UserStateModel>) {\n return this.authService.loadUser().pipe(\n // success state\n map((result) => ctx.dispatch(new LoadUserSuccessAction(result))),\n // error state\n catchError((x) => ctx.dispatch(new LoadUserFailAction()))\n );\n }\n\n @Action(LoadUserSuccessAction, { cancelUncompleted: true })\n loadUserSuccessAction(\n ctx: StateContext<UserStateModel>,\n { user }: LoadUserSuccessAction\n ) {\n ctx.patchState({ user });\n }\n\n @Action(LoadUserFailAction, { cancelUncompleted: true })\n loadUserFailAction(ctx: StateContext<UserStateModel>) {}\n\n @Action(LoginUserAction)\n loginUserAction(ctx: StateContext<UserStateModel>, action: LoginUserAction) {\n return this.authService.login(action.user).pipe(\n // success state\n map((token) => {\n ctx.dispatch(new LoginUserSuccessAction(token.id_token));\n }),\n // error state\n catchError((_) => ctx.dispatch(new LoginUserFailAction()))\n );\n }\n\n @Action(LoginUserSuccessAction, { cancelUncompleted: true })\n loginUserSuccessAction(\n ctx: StateContext<UserStateModel>,\n action: LoginUserSuccessAction\n ) {\n sessionStorage.setItem('id_token', action.token);\n\n ctx.dispatch(new LoadUserAction());\n }\n\n @Action(LoginUserFailAction, { cancelUncompleted: true })\n loginUserFailAction(ctx: StateContext<UserStateModel>) {}\n\n // Logout\n @Action(LogoutUserAction)\n logoutUser(ctx: StateContext<UserStateModel>) {\n return this.authService.logout().pipe(\n // success state\n map((_) => ctx.dispatch(new LogoutUserSuccessAction())),\n // error state\n catchError((_) => ctx.dispatch(new LogoutUserFailAction()))\n );\n }\n\n @Action(LogoutUserSuccessAction, { cancelUncompleted: true })\n logoutUserSuccessAction(ctx: StateContext<UserStateModel>) {\n ctx.patchState({ user: {} as UserModel });\n\n ctx.dispatch(new Navigate(['/landing']));\n }\n\n @Action(LogoutUserFailAction, { cancelUncompleted: true })\n logoutUserFailAction(ctx: StateContext<UserStateModel>) {}\n\n // Renew Token\n @Action(RenewToken)\n renewToken(ctx: StateContext<UserStateModel>) {\n if (sessionStorage.getItem('last_call').endsWith('renew-token')) {\n ctx.dispatch(new LogoutUserAction());\n return;\n }\n\n return this.authService.renewToken().pipe(\n // success state\n map((resp) => {\n ctx.dispatch(new RenewTokenSuccess(resp.id_token));\n }),\n // error state\n catchError((_) => ctx.dispatch(new RenewTokenFail()))\n );\n }\n\n @Action(RenewTokenSuccess, { cancelUncompleted: true })\n renewTokenSuccess(\n ctx: StateContext<UserStateModel>,\n action: RenewTokenSuccess\n ) {\n sessionStorage.setItem('id_token', action.token);\n }\n\n @Action(RenewTokenFail, { cancelUncompleted: true })\n renewTokenFail(ctx: StateContext<UserStateModel>) {}\n}\n","import { TermsAndConditions } from '@projects-shared/models/terms-and-conditions.model';\nimport { GetFormModel } from '@projects-shared/models/get-form.model';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { FormsDividedByStatusOutput } from '@front-office/models/forms-with-status.model';\n\nexport class LoadFormTemplateForFo {\n static readonly type = '[Form] Try to load form template for FO';\n}\n\nexport class LoadFormTemplateForFoSuccess {\n static readonly type = '[Form] Success in loading form template for FO';\n constructor(public formModel: GetFormModel) {}\n}\n\nexport class LoadFormTemplateForFoFailed {\n static readonly type = '[Form] loading form template for FO failed ';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class SendAnswers {\n static readonly type = '[Form] Send Answers';\n constructor(public readonly answersMap: any) {}\n}\n\nexport class TryAutoSave {\n static readonly type = '[Form] Try to AutoSave';\n constructor(public readonly answersMap: any) {}\n}\n\nexport class AutoSaveSuccess {\n static readonly type = '[Form] AutoSave has succeeded';\n}\n\nexport class AutoSaveChangeLabel {\n static readonly type = '[Form] AutoSaveChangeLabel';\n constructor(\n public readonly label: string,\n public readonly cssClass: string\n ) {}\n}\n\nexport class AutoSaveFailed {\n static readonly type = '[Form] AutoSave Failed';\n}\n\nexport class FormSaveSuccess {\n static readonly type = '[Form] Saving form Success';\n}\n\nexport class FormSaveFailed {\n static readonly type = '[Form] Saving form Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class LoadSavedForm {\n static readonly type = '[Form] Loading saved form';\n}\n\nexport class LoadSavedFormSuccess {\n static readonly type = '[Form] Loading saved form success';\n constructor(\n public readonly answersMap: any,\n public readonly isCompleted: boolean,\n public readonly hasAccreditations: boolean\n ) {}\n}\n\nexport class LoadSavedFormFailed {\n static readonly type = '[Form] Loading saved form failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class IsFrontOfficeDeadlineOpen {\n static readonly type = '[Form] Checking if Front Office Deadline is Open';\n constructor(public eventId: string) {}\n}\n\nexport class IsFrontOfficeDeadlineOpenSuccess {\n static readonly type =\n '[Form] Checking if Front Office Deadline is Open Success';\n constructor(public isOpen: boolean) {}\n}\n\nexport class IsFrontOfficeDeadlineOpenFailed {\n static readonly type =\n '[Form] Checking if Front Office Deadline is Open Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class LoadFormListForUser {\n static readonly type = '[Form] Loading Form List For User';\n}\n\nexport class LoadFormListForUserSuccess {\n static readonly type = '[Form] Success Loading Form List For User';\n constructor(public forms: FormsDividedByStatusOutput) {}\n}\n\nexport class LoadFormListForUserFailed {\n static readonly type = '[Form] Loading Form List For User Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class ResetFormModel {\n static readonly type = '[Form] Reset the previous model of form';\n}\n\nexport class GetTermsAndConditionsFo {\n static readonly type = '[Form] Get Front office Terms and conditions';\n}\n\nexport class GetTermsAndConditionsSuccessFo {\n static readonly type = '[Form] Get Front office Terms and conditions success';\n constructor(public readonly terms: TermsAndConditions) {}\n}\n\nexport class GetTermsAndConditionsFailedFo {\n static readonly type = '[Form] Get Front office Terms and conditions failed';\n constructor(public error: HttpErrorResponse) {}\n}\nexport class PrintForm {\n static readonly type = '[Form] Print Form';\n}\n\nexport class PrintFormSuccess {\n static readonly type = '[Form] Print Form Success';\n constructor(\n public readonly response: { fileName: string; fileContent: Blob }\n ) {}\n}\n\nexport class PrintFormFailed {\n static readonly type = '[Form] Print Form Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class LoadDataFromOtherForm {\n static readonly type = '[Form] Load Data From Other Form';\n constructor(public readonly formId: string) {}\n}\n\nexport class LoadDataFromOtherFormSuccess {\n static readonly type = '[Form] Load Data From Other Form Success';\n constructor(public readonly answers: any) {}\n}\n\nexport class LoadDataFromOtherFormFail {\n static readonly type = '[Form] Load Data From Other Form Fail';\n constructor(public readonly error: HttpErrorResponse) {}\n}\nexport class LoadAutoFillModelForFoSuccess {\n static readonly type = '[Form] Success in loading autofill data model';\n constructor(public formModel: any) {}\n}","import { TermsAndConditions } from '@back-office/models/terms-and-conditions.model';\nexport class FetchLegalConditions {\n static readonly type = '[Legal-Conditions] Fetch Legal Conditions';\n}\n\nexport class SetLegalConditions {\n static readonly type = '[Legal-Conditions] Set Legal Conditions';\n constructor(public readonly terms: TermsAndConditions) {}\n}\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\n/**\r\n * Container class for a captured webcam image\r\n * @author basst314, davidshen84\r\n */\r\nclass WebcamImage {\r\n constructor(imageAsDataUrl, mimeType, imageData) {\r\n this._mimeType = null;\r\n this._imageAsBase64 = null;\r\n this._imageAsDataUrl = null;\r\n this._imageData = null;\r\n this._mimeType = mimeType;\r\n this._imageAsDataUrl = imageAsDataUrl;\r\n this._imageData = imageData;\r\n }\r\n /**\r\n * Extracts the Base64 data out of the given dataUrl.\r\n * @param dataUrl the given dataUrl\r\n * @param mimeType the mimeType of the data\r\n */\r\n static getDataFromDataUrl(dataUrl, mimeType) {\r\n return dataUrl.replace(`data:${mimeType};base64,`, '');\r\n }\r\n /**\r\n * Get the base64 encoded image data\r\n * @returns base64 data of the image\r\n */\r\n get imageAsBase64() {\r\n return this._imageAsBase64 ? this._imageAsBase64\r\n : this._imageAsBase64 = WebcamImage.getDataFromDataUrl(this._imageAsDataUrl, this._mimeType);\r\n }\r\n /**\r\n * Get the encoded image as dataUrl\r\n * @returns the dataUrl of the image\r\n */\r\n get imageAsDataUrl() {\r\n return this._imageAsDataUrl;\r\n }\r\n /**\r\n * Get the ImageData object associated with the canvas' 2d context.\r\n * @returns the ImageData of the canvas's 2d context.\r\n */\r\n get imageData() {\r\n return this._imageData;\r\n }\r\n}\n\nclass WebcamUtil {\r\n /**\r\n * Lists available videoInput devices\r\n * @returns a list of media device info.\r\n */\r\n static getAvailableVideoInputs() {\r\n if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) {\r\n return Promise.reject('enumerateDevices() not supported.');\r\n }\r\n return new Promise((resolve, reject) => {\r\n navigator.mediaDevices.enumerateDevices()\r\n .then((devices) => {\r\n resolve(devices.filter((device) => device.kind === 'videoinput'));\r\n })\r\n .catch(err => {\r\n reject(err.message || err);\r\n });\r\n });\r\n }\r\n}\n\nclass WebcamComponent {\r\n constructor() {\r\n /** Defines the max width of the webcam area in px */\r\n this.width = 640;\r\n /** Defines the max height of the webcam area in px */\r\n this.height = 480;\r\n /** Defines base constraints to apply when requesting video track from UserMedia */\r\n this.videoOptions = WebcamComponent.DEFAULT_VIDEO_OPTIONS;\r\n /** Flag to enable/disable camera switch. If enabled, a switch icon will be displayed if multiple cameras were found */\r\n this.allowCameraSwitch = true;\r\n /** Flag to control whether an ImageData object is stored into the WebcamImage object. */\r\n this.captureImageData = false;\r\n /** The image type to use when capturing snapshots */\r\n this.imageType = WebcamComponent.DEFAULT_IMAGE_TYPE;\r\n /** The image quality to use when capturing snapshots (number between 0 and 1) */\r\n this.imageQuality = WebcamComponent.DEFAULT_IMAGE_QUALITY;\r\n /** EventEmitter which fires when an image has been captured */\r\n this.imageCapture = new EventEmitter();\r\n /** Emits a mediaError if webcam cannot be initialized (e.g. missing user permissions) */\r\n this.initError = new EventEmitter();\r\n /** Emits when the webcam video was clicked */\r\n this.imageClick = new EventEmitter();\r\n /** Emits the active deviceId after the active video device was switched */\r\n this.cameraSwitched = new EventEmitter();\r\n /** available video devices */\r\n this.availableVideoInputs = [];\r\n /** Indicates whether the video device is ready to be switched */\r\n this.videoInitialized = false;\r\n /** Index of active video in availableVideoInputs */\r\n this.activeVideoInputIndex = -1;\r\n /** MediaStream object in use for streaming UserMedia data */\r\n this.mediaStream = null;\r\n /** width and height of the active video stream */\r\n this.activeVideoSettings = null;\r\n }\r\n /**\r\n * If the given Observable emits, an image will be captured and emitted through 'imageCapture' EventEmitter\r\n */\r\n set trigger(trigger) {\r\n if (this.triggerSubscription) {\r\n this.triggerSubscription.unsubscribe();\r\n }\r\n // Subscribe to events from this Observable to take snapshots\r\n this.triggerSubscription = trigger.subscribe(() => {\r\n this.takeSnapshot();\r\n });\r\n }\r\n /**\r\n * If the given Observable emits, the active webcam will be switched to the one indicated by the emitted value.\r\n * @param switchCamera Indicates which webcam to switch to\r\n * true: cycle forwards through available webcams\r\n * false: cycle backwards through available webcams\r\n * string: activate the webcam with the given id\r\n */\r\n set switchCamera(switchCamera) {\r\n if (this.switchCameraSubscription) {\r\n this.switchCameraSubscription.unsubscribe();\r\n }\r\n // Subscribe to events from this Observable to switch video device\r\n this.switchCameraSubscription = switchCamera.subscribe((value) => {\r\n if (typeof value === 'string') {\r\n // deviceId was specified\r\n this.switchToVideoInput(value);\r\n }\r\n else {\r\n // direction was specified\r\n this.rotateVideoInput(value !== false);\r\n }\r\n });\r\n }\r\n /**\r\n * Get MediaTrackConstraints to request streaming the given device\r\n * @param deviceId\r\n * @param baseMediaTrackConstraints base constraints to merge deviceId-constraint into\r\n * @returns\r\n */\r\n static getMediaConstraintsForDevice(deviceId, baseMediaTrackConstraints) {\r\n const result = baseMediaTrackConstraints ? baseMediaTrackConstraints : this.DEFAULT_VIDEO_OPTIONS;\r\n if (deviceId) {\r\n result.deviceId = { exact: deviceId };\r\n }\r\n return result;\r\n }\r\n /**\r\n * Tries to harvest the deviceId from the given mediaStreamTrack object.\r\n * Browsers populate this object differently; this method tries some different approaches\r\n * to read the id.\r\n * @param mediaStreamTrack\r\n * @returns deviceId if found in the mediaStreamTrack\r\n */\r\n static getDeviceIdFromMediaStreamTrack(mediaStreamTrack) {\r\n if (mediaStreamTrack.getSettings && mediaStreamTrack.getSettings() && mediaStreamTrack.getSettings().deviceId) {\r\n return mediaStreamTrack.getSettings().deviceId;\r\n }\r\n else if (mediaStreamTrack.getConstraints && mediaStreamTrack.getConstraints() && mediaStreamTrack.getConstraints().deviceId) {\r\n const deviceIdObj = mediaStreamTrack.getConstraints().deviceId;\r\n return WebcamComponent.getValueFromConstrainDOMString(deviceIdObj);\r\n }\r\n }\r\n /**\r\n * Tries to harvest the facingMode from the given mediaStreamTrack object.\r\n * Browsers populate this object differently; this method tries some different approaches\r\n * to read the value.\r\n * @param mediaStreamTrack\r\n * @returns facingMode if found in the mediaStreamTrack\r\n */\r\n static getFacingModeFromMediaStreamTrack(mediaStreamTrack) {\r\n if (mediaStreamTrack) {\r\n if (mediaStreamTrack.getSettings && mediaStreamTrack.getSettings() && mediaStreamTrack.getSettings().facingMode) {\r\n return mediaStreamTrack.getSettings().facingMode;\r\n }\r\n else if (mediaStreamTrack.getConstraints && mediaStreamTrack.getConstraints() && mediaStreamTrack.getConstraints().facingMode) {\r\n const facingModeConstraint = mediaStreamTrack.getConstraints().facingMode;\r\n return WebcamComponent.getValueFromConstrainDOMString(facingModeConstraint);\r\n }\r\n }\r\n }\r\n /**\r\n * Determines whether the given mediaStreamTrack claims itself as user facing\r\n * @param mediaStreamTrack\r\n */\r\n static isUserFacing(mediaStreamTrack) {\r\n const facingMode = WebcamComponent.getFacingModeFromMediaStreamTrack(mediaStreamTrack);\r\n return facingMode ? 'user' === facingMode.toLowerCase() : false;\r\n }\r\n /**\r\n * Extracts the value from the given ConstrainDOMString\r\n * @param constrainDOMString\r\n */\r\n static getValueFromConstrainDOMString(constrainDOMString) {\r\n if (constrainDOMString) {\r\n if (constrainDOMString instanceof String) {\r\n return String(constrainDOMString);\r\n }\r\n else if (Array.isArray(constrainDOMString) && Array(constrainDOMString).length > 0) {\r\n return String(constrainDOMString[0]);\r\n }\r\n else if (typeof constrainDOMString === 'object') {\r\n if (constrainDOMString['exact']) {\r\n return String(constrainDOMString['exact']);\r\n }\r\n else if (constrainDOMString['ideal']) {\r\n return String(constrainDOMString['ideal']);\r\n }\r\n }\r\n }\r\n return null;\r\n }\r\n ngAfterViewInit() {\r\n this.detectAvailableDevices()\r\n .then(() => {\r\n // start video\r\n this.switchToVideoInput(null);\r\n })\r\n .catch((err) => {\r\n this.initError.next({ message: err });\r\n // fallback: still try to load webcam, even if device enumeration failed\r\n this.switchToVideoInput(null);\r\n });\r\n }\r\n ngOnDestroy() {\r\n this.stopMediaTracks();\r\n this.unsubscribeFromSubscriptions();\r\n }\r\n /**\r\n * Takes a snapshot of the current webcam's view and emits the image as an event\r\n */\r\n takeSnapshot() {\r\n // set canvas size to actual video size\r\n const _video = this.nativeVideoElement;\r\n const dimensions = { width: this.width, height: this.height };\r\n if (_video.videoWidth) {\r\n dimensions.width = _video.videoWidth;\r\n dimensions.height = _video.videoHeight;\r\n }\r\n const _canvas = this.canvas.nativeElement;\r\n _canvas.width = dimensions.width;\r\n _canvas.height = dimensions.height;\r\n // paint snapshot image to canvas\r\n const context2d = _canvas.getContext('2d');\r\n context2d.drawImage(_video, 0, 0);\r\n // read canvas content as image\r\n const mimeType = this.imageType ? this.imageType : WebcamComponent.DEFAULT_IMAGE_TYPE;\r\n const quality = this.imageQuality ? this.imageQuality : WebcamComponent.DEFAULT_IMAGE_QUALITY;\r\n const dataUrl = _canvas.toDataURL(mimeType, quality);\r\n // get the ImageData object from the canvas' context.\r\n let imageData = null;\r\n if (this.captureImageData) {\r\n imageData = context2d.getImageData(0, 0, _canvas.width, _canvas.height);\r\n }\r\n this.imageCapture.next(new WebcamImage(dataUrl, mimeType, imageData));\r\n }\r\n /**\r\n * Switches to the next/previous video device\r\n * @param forward\r\n */\r\n rotateVideoInput(forward) {\r\n if (this.availableVideoInputs && this.availableVideoInputs.length > 1) {\r\n const increment = forward ? 1 : (this.availableVideoInputs.length - 1);\r\n const nextInputIndex = (this.activeVideoInputIndex + increment) % this.availableVideoInputs.length;\r\n this.switchToVideoInput(this.availableVideoInputs[nextInputIndex].deviceId);\r\n }\r\n }\r\n /**\r\n * Switches the camera-view to the specified video device\r\n */\r\n switchToVideoInput(deviceId) {\r\n this.videoInitialized = false;\r\n this.stopMediaTracks();\r\n this.initWebcam(deviceId, this.videoOptions);\r\n }\r\n /**\r\n * Event-handler for video resize event.\r\n * Triggers Angular change detection so that new video dimensions get applied\r\n */\r\n videoResize() {\r\n // here to trigger Angular change detection\r\n }\r\n get videoWidth() {\r\n const videoRatio = this.getVideoAspectRatio();\r\n return Math.min(this.width, this.height * videoRatio);\r\n }\r\n get videoHeight() {\r\n const videoRatio = this.getVideoAspectRatio();\r\n return Math.min(this.height, this.width / videoRatio);\r\n }\r\n get videoStyleClasses() {\r\n let classes = '';\r\n if (this.isMirrorImage()) {\r\n classes += 'mirrored ';\r\n }\r\n return classes.trim();\r\n }\r\n get nativeVideoElement() {\r\n return this.video.nativeElement;\r\n }\r\n /**\r\n * Returns the video aspect ratio of the active video stream\r\n */\r\n getVideoAspectRatio() {\r\n // calculate ratio from video element dimensions if present\r\n const videoElement = this.nativeVideoElement;\r\n if (videoElement.videoWidth && videoElement.videoWidth > 0 &&\r\n videoElement.videoHeight && videoElement.videoHeight > 0) {\r\n return videoElement.videoWidth / videoElement.videoHeight;\r\n }\r\n // nothing present - calculate ratio based on width/height params\r\n return this.width / this.height;\r\n }\r\n /**\r\n * Init webcam live view\r\n */\r\n initWebcam(deviceId, userVideoTrackConstraints) {\r\n const _video = this.nativeVideoElement;\r\n if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {\r\n // merge deviceId -> userVideoTrackConstraints\r\n const videoTrackConstraints = WebcamComponent.getMediaConstraintsForDevice(deviceId, userVideoTrackConstraints);\r\n navigator.mediaDevices.getUserMedia({ video: videoTrackConstraints })\r\n .then((stream) => {\r\n this.mediaStream = stream;\r\n _video.srcObject = stream;\r\n _video.play();\r\n this.activeVideoSettings = stream.getVideoTracks()[0].getSettings();\r\n const activeDeviceId = WebcamComponent.getDeviceIdFromMediaStreamTrack(stream.getVideoTracks()[0]);\r\n this.cameraSwitched.next(activeDeviceId);\r\n // Initial detect may run before user gave permissions, returning no deviceIds. This prevents later camera switches. (#47)\r\n // Run detect once again within getUserMedia callback, to make sure this time we have permissions and get deviceIds.\r\n this.detectAvailableDevices()\r\n .then(() => {\r\n this.activeVideoInputIndex = activeDeviceId ? this.availableVideoInputs\r\n .findIndex((mediaDeviceInfo) => mediaDeviceInfo.deviceId === activeDeviceId) : -1;\r\n this.videoInitialized = true;\r\n })\r\n .catch(() => {\r\n this.activeVideoInputIndex = -1;\r\n this.videoInitialized = true;\r\n });\r\n })\r\n .catch((err) => {\r\n this.initError.next({ message: err.message, mediaStreamError: err });\r\n });\r\n }\r\n else {\r\n this.initError.next({ message: 'Cannot read UserMedia from MediaDevices.' });\r\n }\r\n }\r\n getActiveVideoTrack() {\r\n return this.mediaStream ? this.mediaStream.getVideoTracks()[0] : null;\r\n }\r\n isMirrorImage() {\r\n if (!this.getActiveVideoTrack()) {\r\n return false;\r\n }\r\n // check for explicit mirror override parameter\r\n {\r\n let mirror = 'auto';\r\n if (this.mirrorImage) {\r\n if (typeof this.mirrorImage === 'string') {\r\n mirror = String(this.mirrorImage).toLowerCase();\r\n }\r\n else {\r\n // WebcamMirrorProperties\r\n if (this.mirrorImage.x) {\r\n mirror = this.mirrorImage.x.toLowerCase();\r\n }\r\n }\r\n }\r\n switch (mirror) {\r\n case 'always':\r\n return true;\r\n case 'never':\r\n return false;\r\n }\r\n }\r\n // default: enable mirroring if webcam is user facing\r\n return WebcamComponent.isUserFacing(this.getActiveVideoTrack());\r\n }\r\n /**\r\n * Stops all active media tracks.\r\n * This prevents the webcam from being indicated as active,\r\n * even if it is no longer used by this component.\r\n */\r\n stopMediaTracks() {\r\n if (this.mediaStream && this.mediaStream.getTracks) {\r\n // pause video to prevent mobile browser freezes\r\n this.nativeVideoElement.pause();\r\n // getTracks() returns all media tracks (video+audio)\r\n this.mediaStream.getTracks()\r\n .forEach((track) => track.stop());\r\n }\r\n }\r\n /**\r\n * Unsubscribe from all open subscriptions\r\n */\r\n unsubscribeFromSubscriptions() {\r\n if (this.triggerSubscription) {\r\n this.triggerSubscription.unsubscribe();\r\n }\r\n if (this.switchCameraSubscription) {\r\n this.switchCameraSubscription.unsubscribe();\r\n }\r\n }\r\n /**\r\n * Reads available input devices\r\n */\r\n detectAvailableDevices() {\r\n return new Promise((resolve, reject) => {\r\n WebcamUtil.getAvailableVideoInputs()\r\n .then((devices) => {\r\n this.availableVideoInputs = devices;\r\n resolve(devices);\r\n })\r\n .catch(err => {\r\n this.availableVideoInputs = [];\r\n reject(err);\r\n });\r\n });\r\n }\r\n}\r\nWebcamComponent.DEFAULT_VIDEO_OPTIONS = { facingMode: 'environment' };\r\nWebcamComponent.DEFAULT_IMAGE_TYPE = 'image/jpeg';\r\nWebcamComponent.DEFAULT_IMAGE_QUALITY = 0.92;\r\nWebcamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\r\nWebcamComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.0\", type: WebcamComponent, selector: \"webcam\", inputs: { width: \"width\", height: \"height\", videoOptions: \"videoOptions\", allowCameraSwitch: \"allowCameraSwitch\", mirrorImage: \"mirrorImage\", captureImageData: \"captureImageData\", imageType: \"imageType\", imageQuality: \"imageQuality\", trigger: \"trigger\", switchCamera: \"switchCamera\" }, outputs: { imageCapture: \"imageCapture\", initError: \"initError\", imageClick: \"imageClick\", cameraSwitched: \"cameraSwitched\" }, viewQueries: [{ propertyName: \"video\", first: true, predicate: [\"video\"], descendants: true, static: true }, { propertyName: \"canvas\", first: true, predicate: [\"canvas\"], descendants: true, static: true }], ngImport: i0, template: \"<div class=\\\"webcam-wrapper\\\" (click)=\\\"imageClick.next();\\\">\\r\\n <video #video [width]=\\\"videoWidth\\\" [height]=\\\"videoHeight\\\" [class]=\\\"videoStyleClasses\\\" autoplay muted playsinline (resize)=\\\"videoResize()\\\"></video>\\r\\n <div class=\\\"camera-switch\\\" *ngIf=\\\"allowCameraSwitch && availableVideoInputs.length > 1 && videoInitialized\\\" (click)=\\\"rotateVideoInput(true)\\\"></div>\\r\\n <canvas #canvas [width]=\\\"width\\\" [height]=\\\"height\\\"></canvas>\\r\\n</div>\\r\\n\", styles: [\".webcam-wrapper{display:inline-block;position:relative;line-height:0}.webcam-wrapper video.mirrored{transform:scaleX(-1)}.webcam-wrapper canvas{display:none}.webcam-wrapper .camera-switch{background-color:#0000001a;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE9UlEQVR42u2aT2hdRRTGf+cRQqghSqihdBFDkRISK2KDfzDWxHaRQHEhaINKqa1gKQhd6EZLN+IidCH+Q0oWIkVRC21BQxXRitVaSbKoJSGtYGoK2tQ/tU1jY5v0c5F54Xl7b/KSO/PyEt+3e5f75p7zzZwzZ74zUEIJJfyfYa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RrgUjYno17Sf0LrQhJUkdCeHWkVITGJI0k1QeS3ikGSUzOyJUJJNznYneuOCnpTldcxa2kP3xJYqOeSDjqZG8ShJLnE8TTuMS6Iyu1BW7djZqkfo9N0QOuYJmYQddfB7RG+gLTNzqAY9FrL+5/nwEbvDdJJe3zzOrhNP3AWRqmk55t3ZcBuj3b2gb0Sbrbo/NNzk7fFzu7s/E5EiC+rrmeQU0Kx2skvRFoOx2ZzlmSdgbsw49JetvtBpk8nM64d/cGbNtJ0s7cGyJlwHeEv+t3nqnLSgPAUOSGyG3AHUxdzqoJbEcvcL+ZTeTeEapzJKxgaeOcc/7Mf06D7kFrguS0VDAMtGadv+E47DT9tcChJej8ISfpD+abgTe45uOkFi8mnQ+JBVQ+d4VXuOptjavcyot8pq86mfwk8LWZnaOEEkoooYQSSojDv8AhQNeGfe0jAAAAAElFTkSuQmCC);background-repeat:no-repeat;border-radius:5px;position:absolute;right:13px;top:10px;height:48px;width:48px;background-size:80%;cursor:pointer;background-position:center;transition:background-color .2s ease}.webcam-wrapper .camera-switch:hover{background-color:#0000002e}\\n\"], directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamComponent, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'webcam', template: \"<div class=\\\"webcam-wrapper\\\" (click)=\\\"imageClick.next();\\\">\\r\\n <video #video [width]=\\\"videoWidth\\\" [height]=\\\"videoHeight\\\" [class]=\\\"videoStyleClasses\\\" autoplay muted playsinline (resize)=\\\"videoResize()\\\"></video>\\r\\n <div class=\\\"camera-switch\\\" *ngIf=\\\"allowCameraSwitch && availableVideoInputs.length > 1 && videoInitialized\\\" (click)=\\\"rotateVideoInput(true)\\\"></div>\\r\\n <canvas #canvas [width]=\\\"width\\\" [height]=\\\"height\\\"></canvas>\\r\\n</div>\\r\\n\", styles: [\".webcam-wrapper{display:inline-block;position:relative;line-height:0}.webcam-wrapper video.mirrored{transform:scaleX(-1)}.webcam-wrapper canvas{display:none}.webcam-wrapper .camera-switch{background-color:#0000001a;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE9UlEQVR42u2aT2hdRRTGf+cRQqghSqihdBFDkRISK2KDfzDWxHaRQHEhaINKqa1gKQhd6EZLN+IidCH+Q0oWIkVRC21BQxXRitVaSbKoJSGtYGoK2tQ/tU1jY5v0c5F54Xl7b/KSO/PyEt+3e5f75p7zzZwzZ74zUEIJJfyfYaEGllQGVAGZlENdBy6Z2cSiYFTSKkkfS/pH/nBF0kFJdUW9AiRVASeAukD8DgNrzOySrwEzng18KaDzALXuG8W3AiStAvqBisBRNg40mtlPxbYCOgvgPO4bncWW+JpVeDQXRQhIygDfA00F5r0XuNfMrgclQFI98DDQCNQA5ZFXqoCWBVp8XwHRHeEqcN7loy/NbHBesyqpQ1KfFj/6nC+ZvFaApFrgPaCZpYVvgCfNbDiRAElNwGFg+RIt/X8H2s2s9wYCJDUAR4HqJX7++RN40MwGpgmQVAH0AQ2BPz4AHHPl8nBOAqtyFWQjsA6oL4Ada81sPDv7uwImod8kvSJp9RyS8O2SXnb/DYVd2Y9VSroQ4ANXJO2WVJmixqh0kzMWwL4LkiqRtDnA4D1zmfE8j9g9AezcnAHaPcfXdbfdnPZ2Yps6+DwAvO/Z1naTdApY7Xng48BDZnY1MpMVQBuw3iXc5Tnb0wBwBPjUzP6eoezuArZ6svM0geJLkvZEYnl3nkntoqROSbckSW2Suj3ZOIangc7GPJuUtNGdFIfmMeavktoSSKiW9LMPw30Q8JqkekmjCbOZRhuclLQjgYSNxUBAj6RyZ9ATgUJpUtJTCSR8vpAEXHAyWK5BXYFIGHOlepSAloUk4NEYgyoknQhEwhFJ0e8h6VSaQeerCb5uZgdi9utxYBNwOUD93hIVXswM4INCi6K9wAszFC2DwLOBDjHbYp59karIUnRdzYy/3ClqVklaUhfwTICj7K25OqA7a4wWagVsm4Me/xzwg2cCqqONFzO7DPxSCAJi436GUBgHHguQD2oTlJ55oSzP9ybccsttSJw1szdjFOSnI/8dTCGZHwcORp4Nx7y3B1iZ8/sm4MW8/Euxg5wIsS/HaAp3zeP4/G7obRDXI4jiTIA22H7Xdc7X+S3A5lC7QBQ357aq3VAjCeSkwUfAJrfvz+R8A9ADLAtZB+TinpjC5JMA+//jwPZZnF8G7J+L8z4IWB/zbG+gIujVWfLBW/NStVMmqaG4POJRsIjix7h8IGnLQuoBbQki5sVAJHyYm7YkNaRRtXwQ8G1cHpX0iKRrgUjYno17Sf0LrQhJUkdCeHWkVITGJI0k1QeS3ikGSUzOyJUJJNznYneuOCnpTldcxa2kP3xJYqOeSDjqZG8ShJLnE8TTuMS6Iyu1BW7djZqkfo9N0QOuYJmYQddfB7RG+gLTNzqAY9FrL+5/nwEbvDdJJe3zzOrhNP3AWRqmk55t3ZcBuj3b2gb0Sbrbo/NNzk7fFzu7s/E5EiC+rrmeQU0Kx2skvRFoOx2ZzlmSdgbsw49JetvtBpk8nM64d/cGbNtJ0s7cGyJlwHeEv+t3nqnLSgPAUOSGyG3AHUxdzqoJbEcvcL+ZTeTeEapzJKxgaeOcc/7Mf06D7kFrguS0VDAMtGadv+E47DT9tcChJej8ISfpD+abgTe45uOkFi8mnQ+JBVQ+d4VXuOptjavcyot8pq86mfwk8LWZnaOEEkoooYQSSojDv8AhQNeGfe0jAAAAAElFTkSuQmCC);background-repeat:no-repeat;border-radius:5px;position:absolute;right:13px;top:10px;height:48px;width:48px;background-size:80%;cursor:pointer;background-position:center;transition:background-color .2s ease}.webcam-wrapper .camera-switch:hover{background-color:#0000002e}\\n\"] }]\r\n }], propDecorators: { width: [{\r\n type: Input\r\n }], height: [{\r\n type: Input\r\n }], videoOptions: [{\r\n type: Input\r\n }], allowCameraSwitch: [{\r\n type: Input\r\n }], mirrorImage: [{\r\n type: Input\r\n }], captureImageData: [{\r\n type: Input\r\n }], imageType: [{\r\n type: Input\r\n }], imageQuality: [{\r\n type: Input\r\n }], imageCapture: [{\r\n type: Output\r\n }], initError: [{\r\n type: Output\r\n }], imageClick: [{\r\n type: Output\r\n }], cameraSwitched: [{\r\n type: Output\r\n }], video: [{\r\n type: ViewChild,\r\n args: ['video', { static: true }]\r\n }], canvas: [{\r\n type: ViewChild,\r\n args: ['canvas', { static: true }]\r\n }], trigger: [{\r\n type: Input\r\n }], switchCamera: [{\r\n type: Input\r\n }] } });\n\nconst COMPONENTS = [\r\n WebcamComponent\r\n];\r\nclass WebcamModule {\r\n}\r\nWebcamModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\nWebcamModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamModule, declarations: [WebcamComponent], imports: [CommonModule], exports: [WebcamComponent] });\r\nWebcamModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamModule, imports: [[\r\n CommonModule\r\n ]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.0\", ngImport: i0, type: WebcamModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [\r\n CommonModule\r\n ],\r\n declarations: [\r\n COMPONENTS\r\n ],\r\n exports: [\r\n COMPONENTS\r\n ]\r\n }]\r\n }] });\n\nclass WebcamInitError {\r\n constructor() {\r\n this.message = null;\r\n this.mediaStreamError = null;\r\n }\r\n}\n\nclass WebcamMirrorProperties {\r\n}\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { WebcamComponent, WebcamImage, WebcamInitError, WebcamMirrorProperties, WebcamModule, WebcamUtil };\n","import { FormlyFieldConfig } from '@ngx-formly/core';\n\nexport interface FormModel {\n id: number;\n label?: string;\n fields: FormlyFieldConfig[];\n}\n\nexport class FormAnswerModel {\n constructor(\n public firstName: string,\n public lastName: string,\n public email: string,\n public answers: Map<string, string>\n ) {}\n}\n","import { WebcamImage } from 'ngx-webcam';\n\nexport class GetAvailableVideoInputs {\n static readonly type = '[Profile] try getting available video';\n}\n\nexport class StoreImageTaken {\n static readonly type = '[Profile] trying to store image';\n constructor(public readonly image: WebcamImage) {}\n}\n\nexport class UploadImage {\n static readonly type = '[Profile] trying to upload image';\n constructor(public readonly image: File) {}\n}\n\nexport class UploadFailed {\n static readonly type = '[Profile] Upload of picture failed';\n constructor(public readonly message: string) {}\n}\n\nexport class RemoveImageTakenLocally {\n static readonly type = '[Profile] Remove Profile picture stored locally';\n}\n","import { CommonConfigModel } from '@projects-shared/models/common-config.model';\nimport { Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { KeyValueModel } from '@projects-shared/models/key-value.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class GeoInfoService {\n constructor(public http: HttpClient) {}\n\n getCountries(config: CommonConfigModel): Observable<KeyValueModel[]> {\n return this.http.get<KeyValueModel[]>(\n config.apiUrl + '/geo-info/countries'\n );\n }\n\n getNationalities(config: CommonConfigModel): Observable<KeyValueModel[]> {\n return this.http.get<KeyValueModel[]>(\n config.apiUrl + '/geo-info/nationalities'\n );\n }\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class LocalStorageService {\n localStorageIsSupported: boolean;\n\n /**\n * Module to use local storage in browser\n */\n constructor() {\n const undefinedValue = 'undefined';\n const localStorageValue = 'localStorage';\n this.localStorageIsSupported =\n typeof window[localStorageValue] !== undefinedValue &&\n window[localStorageValue] != null;\n }\n\n // add value to storage\n add(key: string, item: string) {\n if (this.localStorageIsSupported) {\n localStorage.setItem(key, item);\n }\n }\n\n // get one item by key from storage\n get(key: string): string {\n if (this.localStorageIsSupported) {\n return localStorage.getItem(key);\n } else {\n return null;\n }\n }\n\n // remove value from storage\n remove(key: string) {\n if (this.localStorageIsSupported) {\n localStorage.removeItem(key);\n }\n }\n\n // clear storage (remove all items from it)\n clear() {\n if (this.localStorageIsSupported) {\n localStorage.clear();\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Store } from '@ngxs/store';\n\nimport { FormAnswerModel } from '@projects-shared/models/form.model';\nimport { GetFormModel } from '@projects-shared/models/get-form.model';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { FormsDividedByStatusOutput } from '@front-office/models/forms-with-status.model';\nimport { map } from 'rxjs/operators';\nimport { LocalStorageService } from '@front-office/services/local-storage.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FormService {\n constructor(\n private store: Store,\n public http: HttpClient,\n private localStorage: LocalStorageService\n ) {}\n\n private readonly httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n getFormTemplate(eventId: number): Observable<GetFormModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n return this.http.get<GetFormModel>(\n `${config.apiUrl}/forms/events/${eventId}/template?isRequestForFO=true`,\n this.httpOptions\n );\n }\n\n submit(formId: string, form: FormAnswerModel): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.patch(\n `${config.apiUrl}/forms/${formId}/submit`,\n form,\n this.httpOptions\n );\n }\n\n autoSave(formId: string, form: FormAnswerModel): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.patch(\n `${config.apiUrl}/forms/${formId}`,\n form,\n this.httpOptions\n );\n }\n\n getSavedForm(formId: string): Observable<{\n model: any;\n hasValidAccreditations: boolean;\n canUserChangesAccreditationData: boolean;\n }> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<{\n model: any;\n hasValidAccreditations: boolean;\n canUserChangesAccreditationData: boolean;\n }>(`${config.apiUrl}/forms/${formId}`, this.httpOptions);\n }\n\n activateForm(invitationId: string): Observable<any> {\n this.localStorage.remove('invitationId');\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.request(\n 'patch',\n `${config.apiUrl}/forms/${invitationId}/activate-invitation`,\n this.httpOptions\n );\n }\n\n isFoOpen(eventId: string): Observable<boolean> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<boolean>(\n `${config.apiUrl}/events/${eventId}/is-fo-open`,\n this.httpOptions\n );\n }\n\n getAvailableForms() {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<FormsDividedByStatusOutput>(\n `${config.apiUrl}/forms`,\n this.httpOptions\n );\n }\n\n printForm(\n formId: string,\n language: string\n ): Observable<{ fileName: string; fileContent: Blob }> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http\n .get(`${config.apiUrl}/forms/${formId}/print?language=${language}`, {\n observe: 'response',\n responseType: 'blob' // This must be a Blob type\n })\n .pipe(\n map((response) => ({\n fileName: this.getFileName(\n response.headers.get('content-disposition')\n ),\n fileContent: response.body\n }))\n );\n }\n\n private getFileName(contentDispositionHeader: string) {\n const result = contentDispositionHeader.split(';')[1].trim().split('=')[1];\n return result.replace(/\"/g, '');\n }\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FormChangesService {\n private answersInMemory: any;\n\n constructor() {\n this.answersInMemory = {};\n }\n\n public initAnswers(answers: any) {\n Object.keys(answers).forEach((key: any, index: number) =>\n this.setNewValue(key, answers[key], {})\n );\n }\n\n public getChangedAnswers(answers: any) {\n const objectToReturn = {};\n\n Object.keys(answers).forEach((key: any, index: number) => {\n if (answers[key] == null) {\n return;\n }\n\n const stringValue = this.getStringValue(answers[key]);\n if (Object.keys(this.answersInMemory).indexOf(key) < 0) {\n this.setNewValue(key, stringValue, objectToReturn);\n } else {\n if (stringValue !== this.answersInMemory[key]) {\n this.setNewValue(key, stringValue, objectToReturn);\n }\n }\n });\n\n return Object.keys(objectToReturn).length > 0 ? objectToReturn : undefined;\n }\n\n private setNewValue(key: any, stringValue: string, objectToReturn: {}) {\n this.answersInMemory[key] = stringValue;\n objectToReturn[key] = stringValue;\n }\n\n private getStringValue(value: any) {\n return 'string' === typeof value ? value : JSON.stringify(value);\n }\n}\n","import { map } from './map';\nexport function pluck(...properties) {\n const length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return (source) => map(plucker(properties, length))(source);\n}\nfunction plucker(props, length) {\n const mapper = (x) => {\n let currentProp = x;\n for (let i = 0; i < length; i++) {\n const p = currentProp != null ? currentProp[props[i]] : undefined;\n if (p !== void 0) {\n currentProp = p;\n }\n else {\n return undefined;\n }\n }\n return currentProp;\n };\n return mapper;\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { of } from 'rxjs';\nimport { Store } from '@ngxs/store';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PostCodeValidationService {\n private headers = new HttpHeaders({ 'Content-Type': 'application/json' });\n\n constructor(private store: Store, private http: HttpClient) {}\n\n countryId: string;\n timeOut: any;\n\n public setCountryId(v: string) {\n this.countryId = v;\n }\n\n public validatePostCode(postCode: string, apiUrl: string): Promise<boolean> {\n if (!this.countryId || !postCode) {\n return of(true).toPromise();\n } else {\n clearTimeout(this.timeOut);\n return new Promise((resolve, reject) => {\n this.timeOut = setTimeout(() => {\n const params: any = { countryId: this.countryId, code: postCode };\n\n this.http\n .get<boolean>(`${apiUrl}/forms/postal-code/is-valid`, {\n headers: this.headers,\n params\n })\n .subscribe(\n response => resolve(response),\n error => reject('error while getting validation of postal code')\n );\n }, 800);\n });\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { FormModel } from '@projects-shared/models/form.model';\nimport { TranslateService } from '@ngx-translate/core';\nimport { FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormControl } from '@angular/forms';\nimport { Observable } from 'rxjs';\nimport {\n takeUntil,\n tap,\n distinctUntilChanged,\n filter,\n pluck\n} from 'rxjs/operators';\nimport { KeyValueModel } from '@projects-shared/models/key-value.model';\nimport { CommonConfigModel } from '@projects-shared/models/common-config.model';\nimport { PostCodeValidationService } from '@projects-shared/services/post-code-validation.service';\nimport * as moment from 'moment';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FormConfigToFormlyService {\n constructor(\n private translate: TranslateService,\n private postCodeValidation: PostCodeValidationService\n ) {}\n\n germanFederalStates : KeyValueModel[] = [\n {\n id : \"BW\",\n name: \"Baden-Württemberg\"\n },\n {\n id : \"BY\",\n name: \"Bayern\"\n },\n {\n id : \"BE\",\n name: \"Berlin\"\n },\n {\n id : \"BB\",\n name: \"Brandenburg\"\n },\n {\n id : \"HB\",\n name: \"Bremen\"\n },\n {\n id : \"HH\",\n name: \"Hamburg\"\n },\n {\n id : \"HE\",\n name: \"Hessen\"\n },\n {\n id : \"MV\",\n name: \"Mecklenburg-Vorpommern\"\n },\n {\n id : \"NI\",\n name: \"Niedersachsen\"\n },\n {\n id : \"NW\",\n name: \"Nordrhein-Westfalen\"\n },\n {\n id : \"RP\",\n name: \"Rheinland-Pfalz\"\n },\n {\n id : \"SL\",\n name: \"Saarland\"\n },\n {\n id : \"SN\",\n name: \"Sachsen\"\n },\n {\n id : \"ST\",\n name: \"Sachsen-Anhalt\"\n },\n {\n id : \"SH\",\n name: \"Schleswig-Holstein\"\n },\n {\n id : \"TH\",\n name: \"Thüringen\"\n }\n ]\n\n public getFormForFormly(\n forms: FormModel[],\n countries: KeyValueModel[],\n nationalities: KeyValueModel[]\n ) {\n if (forms) {\n forms = forms.map((f) => {\n f.label = this.translate.instant(f.fields[0].key === 'idscanning' ? \n `idScanning.${f.label}` : `form.${f.label}`);\n const newFields = f.fields.reduce((acc, field) => {\n this.changeFieldsAndFieldGroups(field, countries, nationalities);\n this.createRegexFromPattern(field);\n field.templateOptions.label = this.translate.instant(\n `form.${field.templateOptions.label}`\n );\n this.translateLabels(field);\n acc.push(field);\n return acc;\n }, []);\n f.fields = newFields;\n\n return f;\n });\n }\n return forms;\n }\n\n private createRegexFromPattern(field) {\n // tslint:disable-next-line:max-line-length\n const emailPattern = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\\\".+\\\"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|((([a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9])|([a-zA-Z0-9])+.)+[a-zA-Z]{2,}))$/;\n if (field.fieldGroup && field.fieldGroup.length > 0){\n field.fieldGroup.forEach((f) => {\n if (f.templateOptions) {\n if (f.templateOptions.type === 'email') {\n f.templateOptions.pattern = emailPattern;\n }\n f.templateOptions.pattern = f.templateOptions.pattern\n ? new RegExp(f.templateOptions.pattern)\n : undefined;\n }\n });\n } else if (field.templateOptions) {\n if (field.templateOptions.type === 'email') {\n field.templateOptions.pattern = emailPattern;\n }\n field.templateOptions.pattern = field.templateOptions.pattern\n ? new RegExp(field.templateOptions.pattern)\n : undefined;\n }\n }\n\n public forceEnableForExpiryDates(formModels: FormModel[]) {\n formModels.forEach((formModel) =>\n formModel.fields.forEach((formField) => {\n if (formField.key === 'document') {\n formField.fieldGroup.forEach((x) => {\n if (x.key === 'document.expirydate') {\n x.expressionProperties = {\n 'templateOptions.disabled': 'false'\n };\n }\n });\n } else if (formField.key === 'drivinglicense') {\n formField.fieldGroup.forEach((x) => {\n if (x.key === 'drivinglicense.expirydate') {\n x.expressionProperties = {\n 'templateOptions.disabled': 'false'\n };\n }\n });\n }\n })\n );\n }\n\n public forceDisableForExpiryDates(formModels: FormModel[]) {\n formModels.forEach((formModel) =>\n formModel.fields.forEach((formField) => {\n if (formField.key === 'document') {\n formField.fieldGroup.forEach((x) => {\n if (x.key === 'document.expirydate') {\n x.expressionProperties = {\n 'templateOptions.disabled': 'true'\n };\n }\n });\n } else if (formField.key === 'drivinglicense') {\n formField.fieldGroup.forEach((x) => {\n if (x.key === 'drivinglicense.expirydate') {\n x.expressionProperties = {\n 'templateOptions.disabled': 'true'\n };\n }\n });\n }\n })\n );\n }\n\n private changeFieldsAndFieldGroups(\n field: FormlyFieldConfig,\n countries: KeyValueModel[],\n nationalities: KeyValueModel[]\n ) {\n if (field.fieldGroup) {\n this.addUniqueFieldClass(field);\n this.addFunctionsToExpressionProperties(field);\n field.fieldGroup.forEach((x) =>{\n this.addUniqueFieldClass(x);\n this.setTemplateOptionsIndeterminate(x);\n this.setOptionsForCountries(x, countries);\n this.setOptionsForNationalities(x, nationalities);\n this.listenToNeverExpires(x);\n this.manageDateRangesValidation(x);\n this.addFunctionsToExpressionProperties(x);\n this.setOptionsForGermanFederalStates(x);\n }\n \n );\n } else {\n this.addUniqueFieldClass(field);\n this.setTemplateOptionsIndeterminate(field);\n this.setOptionsForCountries(field, countries);\n this.setOptionsForNationalities(field, nationalities);\n this.manageDateRangesValidation(field);\n this.addFunctionsToExpressionProperties(field);\n this.setOptionsForGermanFederalStates(field);\n \n }\n }\n\n public managePostCodeValidation(\n formModels: FormModel[],\n takeUntilObs$: Observable<void>,\n config: CommonConfigModel\n ) {\n if (!takeUntilObs$) {\n throw new Error('An observable is needed');\n }\n formModels.forEach((formModel) =>\n formModel.fields.forEach((formField) => {\n if (formField.key === 'address') {\n formField.fieldGroup.forEach((x) => {\n if (x.key === 'address.postcode') {\n x.hooks = {\n onInit: (field) => {\n const { form } = field;\n form\n .get('address')\n .valueChanges.pipe(\n pluck('country'),\n filter((value) => !!value),\n distinctUntilChanged(),\n takeUntil(takeUntilObs$),\n tap((country) => {\n this.postCodeValidation.setCountryId(country);\n field.formControl.updateValueAndValidity();\n field.formControl.markAsTouched();\n })\n )\n .subscribe();\n }\n };\n x.asyncValidators = {\n postcode: {\n expression: (c: FormControl) => {\n return this.postCodeValidation.validatePostCode(\n c.value,\n config.apiUrl\n );\n },\n message: this.translate.instant(`form.invalid-post-code`)\n }\n };\n }\n });\n }\n if (formField.key === 'document') {\n this.listenToNeverExpiresToEmptyExpiryDate(\n formField,\n takeUntilObs$,\n 'document'\n );\n }\n if (formField.key === 'drivinglicense') {\n this.listenToNeverExpiresToEmptyExpiryDate(\n formField,\n takeUntilObs$,\n 'drivinglicense'\n );\n }\n })\n );\n }\n\n private listenToNeverExpiresToEmptyExpiryDate(\n formField: FormlyFieldConfig,\n takeUntilObs$: Observable<void>,\n fieldKey: 'document' | 'drivinglicense'\n ) {\n formField.fieldGroup.forEach((x) => {\n if (x.key === `${fieldKey}.expirydate`) {\n x.hooks = {\n onInit: (field) => {\n const { form } = field;\n form\n .get(fieldKey)\n .valueChanges.pipe(\n pluck('neverexpires'),\n distinctUntilChanged(),\n takeUntil(takeUntilObs$),\n tap((checked) => {\n if (checked) {\n field.formControl.setValue(null);\n field.formControl.updateValueAndValidity();\n field.formControl.markAsTouched();\n }\n })\n )\n .subscribe();\n }\n };\n }\n });\n }\n\n private setTemplateOptionsIndeterminate(field: FormlyFieldConfig) {\n if (field.type === 'checkbox') {\n if (!field.templateOptions) {\n field.templateOptions = {};\n }\n field.templateOptions.indeterminate = false;\n field.defaultValue = false;\n }\n }\n\n private setOptionsForCountries(\n field: FormlyFieldConfig,\n countries: KeyValueModel[]\n ) {\n if (field.type === 'select-countries') {\n field.type = 'select';\n if (!field.templateOptions) {\n field.templateOptions = {};\n }\n field.templateOptions.options = countries;\n field.templateOptions.valueProp = 'id';\n field.templateOptions.labelProp = 'name';\n }\n }\n\n private setOptionsForNationalities(\n field: FormlyFieldConfig,\n nationalities: KeyValueModel[]\n ) {\n if (field.type === 'select-nationalities') {\n field.type = 'select';\n if (!field.templateOptions) {\n field.templateOptions = {};\n }\n field.templateOptions.options = nationalities;\n field.templateOptions.valueProp = 'id';\n field.templateOptions.labelProp = 'name';\n }\n }\n\n\n // Set german federal states options\n private setOptionsForGermanFederalStates(\n field: FormlyFieldConfig\n ) {\n if (field.type === 'select-german-federal-states') {\n field.type = 'select';\n if (!field.templateOptions) {\n field.templateOptions = {};\n }\n field.templateOptions.options = this.germanFederalStates;\n field.templateOptions.valueProp = 'id';\n field.templateOptions.labelProp = 'name';\n field.templateOptions[\"multiple\"] = true; \n \n field.expressionProperties = {\n 'templateOptions.disabled' : '!model[\"german-resident\"].resident'\n }\n\n }\n }\n\n private translateLabels(field: FormlyFieldConfig) {\n if (field.templateOptions.options) {\n const options1: any[] = field.templateOptions.options as any[];\n field.templateOptions.options = options1.map((o) => {\n o.label = this.translate.instant(`form.${o.label}`);\n return o;\n });\n }\n if (field.templateOptions.description) {\n field.templateOptions.description = this.translate.instant(\n `form.${field.templateOptions.description}`\n );\n }\n if (field.templateOptions.placeholder) {\n field.templateOptions.placeholder = this.translate.instant(\n `form.${field.templateOptions.placeholder}`\n );\n }\n if (field.validation.messages) {\n if (field.validation.messages.required !== '') {\n field.validation.messages.required = this.translate.instant(\n `form.${field.validation.messages.required}`\n );\n }\n if (field.validation.messages.pattern !== '') {\n field.validation.messages.pattern = this.translate.instant(\n `form.${field.validation.messages.pattern}`\n );\n }\n }\n if (field.fieldGroup) {\n field.fieldGroup.map((fg) => {\n if (fg.template) {\n fg.template = this.translate.instant(`form.${fg.template}`);\n }\n if (fg.templateOptions) {\n fg.templateOptions.label = this.translate.instant(\n `form.${fg.templateOptions.label}`\n );\n if (fg.templateOptions.options) {\n const options1: any[] = fg.templateOptions.options as any[];\n fg.templateOptions.options = options1.map((o) => {\n o.label = this.translate.instant(`form.${o.label}`);\n return o;\n });\n }\n }\n if (fg.validation.messages) {\n if (fg.validation.messages.required !== '') {\n fg.validation.messages.required = this.translate.instant(\n `form.${fg.validation.messages.required}`\n );\n }\n if (fg.validation.messages.pattern !== '') {\n fg.validation.messages.pattern = this.translate.instant(\n `form.${fg.validation.messages.pattern}`\n );\n }\n if (fg.templateOptions.description) {\n fg.templateOptions.description = this.translate.instant(\n `form.${fg.templateOptions.description}`\n );\n }\n if (fg.templateOptions.placeholder) {\n fg.templateOptions.placeholder = this.translate.instant(\n `form.${fg.templateOptions.placeholder}`\n );\n }\n }\n return fg;\n });\n }\n }\n\n public addUniqueFieldClass(field: FormlyFieldConfig) {\n if (field.key) {\n field.className = `form-field__${field.key.replace(/\\./g, '-')}`;\n if (field.templateOptions.description) {\n field.className = `form-field__hint ${field.className}`;\n }\n } else {\n field.className = `form-field__generic`;\n if (field.templateOptions.description) {\n field.className = `form-field__hint ${field.className}`;\n }\n }\n }\n\n private listenToNeverExpires(field: FormlyFieldConfig) {\n if (field.key === 'document.expirydate') {\n field.expressionProperties = {\n 'templateOptions.disabled':\n '!!model.document && !!model.document.neverexpires'\n };\n } else if (field.key === 'drivinglicense.expirydate') {\n field.expressionProperties = {\n 'templateOptions.disabled':\n '!!model.drivinglicense && !!model.drivinglicense.neverexpires'\n };\n }\n }\n\n private manageDateRangesValidation(field: FormlyFieldConfig) {\n if (\n field.key === 'dob' ||\n (field.key && field.key.indexOf('.expiry') > 0)\n ) {\n const options = field.templateOptions.options as any[];\n if (!!options && options.length) {\n const [{ value: minDate }, { value: maxDate }] = options;\n\n if (!!maxDate) {\n field.validators = {\n ...field.validators,\n beyondMaxRule: {\n expression: (c: FormControl) => {\n if (!c.value || (c.value && c.value.length < 10)) {\n return true;\n }\n return (\n moment.utc(c.value, 'DD/MM/YYYY') <\n moment.utc(maxDate, 'DD/MM/YYYY')\n );\n },\n message: (error, f: FormlyFieldConfig) =>\n `Date should be before ${maxDate}`\n }\n };\n }\n\n if (!!minDate) {\n field.validators = {\n ...field.validators,\n beyondMinRule: {\n expression: (c: FormControl) => {\n if (!c.value || (c.value && c.value.length < 10)) {\n return true;\n }\n return (\n moment.utc(c.value, 'DD-MM-YYYY') >\n moment.utc(minDate, 'DD-MM-YYYY')\n );\n },\n message: (error, f: FormlyFieldConfig) =>\n `Date should be after ${minDate}`\n }\n };\n }\n }\n }\n }\n\n private addFunctionsToExpressionProperties(field: FormlyFieldConfig) {\n const epHideOptions: string =\n field.expressionProperties &&\n (field.expressionProperties.hideExpression as string);\n const epRequiredOptions: string =\n field.expressionProperties &&\n (field.expressionProperties['templateOptions.required'] as string);\n\n this.evalFunction('hideExpression', epHideOptions, field);\n this.evalFunction('templateOptions.required', epRequiredOptions, field);\n }\n\n private evalFunction(\n epKey: string,\n options: string,\n field: FormlyFieldConfig\n ) {\n const fnMarker = '%EVAL%';\n if (options && options.indexOf(fnMarker) === 0) {\n const fnStr = options.split(fnMarker)[1];\n const [argsStr, bodyStr] = fnStr.split('<EXEC>');\n\n const args = argsStr.trim().split(',');\n field.expressionProperties[epKey] = new Function(\n ...args,\n bodyStr.trim()\n ) as (model: any, formState: any, f?: FormlyFieldConfig) => any;\n }\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Store } from '@ngxs/store';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FrontOfficeErrorService {\n constructor(private store: Store) {}\n\n public redirectToErrorPage(error: HttpErrorResponse): void {\n if (error.status >= 500) {\n this.store.dispatch(new Navigate(['/error']));\n } else if (error.status === 400 || error.status > 401) {\n this.store.dispatch(new Navigate(['/not-found']));\n } else {\n console.error(error);\n }\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { TermsAndConditions } from '@projects-shared/models/terms-and-conditions.model';\nimport { ConfigModel } from '@front-office/models/config.model';\nimport { Store } from '@ngxs/store';\nimport { ConfigState } from '@front-office/store/states/config.state';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LegalConditionsService {\n constructor(private store: Store, public http: HttpClient) {}\n\n private readonly httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n getLegalConditions(eventId: number): Observable<TermsAndConditions> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<TermsAndConditions>(\n config.apiUrl +\n `/accreditation-requests/event/${eventId}/terms-and-conditions`\n );\n }\n}\n","import {\n PrintForm,\n PrintFormSuccess,\n PrintFormFailed,\n LoadDataFromOtherForm,\n LoadDataFromOtherFormSuccess,\n LoadDataFromOtherFormFail,\n LoadAutoFillModelForFoSuccess\n} from './../actions/form.actions';\nimport { FetchLegalConditions } from './../../../../../shared/store/actions/legal-conditions.actions';\nimport { WebcamImage } from 'ngx-webcam';\nimport { TranslateService } from '@ngx-translate/core';\nimport { FormService } from '@front-office/services/form.service';\nimport {\n LoadFormTemplateForFoSuccess,\n SendAnswers,\n TryAutoSave,\n FormSaveSuccess,\n FormSaveFailed,\n AutoSaveSuccess,\n AutoSaveFailed,\n LoadSavedForm,\n LoadSavedFormSuccess,\n LoadSavedFormFailed,\n IsFrontOfficeDeadlineOpen,\n IsFrontOfficeDeadlineOpenSuccess,\n IsFrontOfficeDeadlineOpenFailed,\n LoadFormListForUser,\n LoadFormListForUserSuccess,\n LoadFormListForUserFailed,\n LoadFormTemplateForFoFailed,\n AutoSaveChangeLabel,\n ResetFormModel,\n GetTermsAndConditionsFo,\n GetTermsAndConditionsSuccessFo,\n GetTermsAndConditionsFailedFo\n} from '@front-office/store/actions/form.actions';\nimport { State, Selector, Action, StateContext, Store } from '@ngxs/store';\nimport { LoadFormTemplateForFo } from '@front-office/store/actions/form.actions';\nimport { catchError, map, tap } from 'rxjs/operators';\nimport * as _ from 'lodash';\nimport { RouterState, Navigate } from '@ngxs/router-plugin';\nimport { UserStateModel } from '@front-office/store/states/user.state';\nimport { FormModel, FormAnswerModel } from '@projects-shared/models/form.model';\nimport { FormTheme } from '@projects-shared/models/form-theme.model';\nimport { GeoInfoService } from '@projects-shared/services/geo-info.service';\nimport { FormChangesService } from '@front-office/services/form-changes.service';\nimport { StoreImageTaken } from '@projects-shared/store/actions/profile-picture.actions';\nimport { FormConfigToFormlyService } from '@projects-shared/services/form-config-to-formly.service';\nimport { ConfigState } from './config.state';\nimport {\n SendOkMessage,\n SendErrorMessage\n} from '@projects-shared/app-message/app-message.actions';\nimport { FrontOfficeErrorService } from '@front-office/services/fo-error.service';\nimport { FormsDividedByStatusOutput } from '@front-office/models/forms-with-status.model';\nimport { Injectable } from '@angular/core';\nimport { SetLegalConditions } from '@projects-shared/store/actions/legal-conditions.actions';\nimport { LegalConditionsService } from '@front-office/services/legal-conditions.service';\nimport { saveAs } from 'file-saver';\n\nexport interface FormStateModel {\n forms: FormModel[];\n isFoOpen: boolean;\n theme?: FormTheme;\n autosaveMessage?: string;\n previousModel?: any;\n isPreviousModelCompleted?: boolean;\n formAllowChanges?: boolean;\n saveStatus?: { label: string; cssClass: string };\n availableForms?: FormsDividedByStatusOutput;\n invitationSiteIds?: number[];\n isFormCompleted?: boolean;\n autoFillModel?: any;\n}\n\n@State<FormStateModel>({\n name: 'forms',\n defaults: {\n forms: [],\n isFoOpen: false\n }\n})\n@Injectable()\nexport class FormState {\n constructor(\n private geoInfoService: GeoInfoService,\n private store: Store,\n private formService: FormService,\n private translate: TranslateService,\n private formChangesService: FormChangesService,\n private formConfigToFormlyService: FormConfigToFormlyService,\n private foErrorService: FrontOfficeErrorService,\n private legalConditionsService: LegalConditionsService\n ) { }\n\n @Selector()\n static accreditationForm(model: FormStateModel) {\n return model.forms;\n }\n\n @Selector()\n static autoFillForm(model: FormStateModel) {\n return model.autoFillModel;\n }\n\n @Selector()\n static selectedFormTheme(model: FormStateModel) {\n return model.theme;\n }\n\n @Selector()\n static isFrontOfficeOpen(model: FormStateModel) {\n return model.isFoOpen;\n }\n\n @Selector()\n static autoSaveMessageSelector(model: FormStateModel) {\n return model.autosaveMessage;\n }\n\n @Selector()\n static previousModelSaved(model: FormStateModel) {\n return model.previousModel;\n }\n\n @Selector()\n static saveStatus(model: FormStateModel) {\n return model.saveStatus;\n }\n\n @Selector()\n static availableForms(model: FormStateModel) {\n return model.availableForms;\n }\n\n @Selector()\n static isPreviousModelCompleted(model: FormStateModel) {\n return model.isPreviousModelCompleted;\n }\n\n @Selector()\n static formAllowsChanges(model: FormStateModel) {\n return model.formAllowChanges;\n }\n\n @Selector()\n static invitationSiteIds(model: FormStateModel) {\n return model.invitationSiteIds;\n }\n\n @Selector()\n static isFormCompleted(model: FormStateModel) {\n return model.isFormCompleted;\n }\n\n @Action(LoadFormTemplateForFo)\n loadFormTemplate(\n ctx: StateContext<FormStateModel>,\n action: LoadFormTemplateForFo\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n return this.formService.getFormTemplate(eventId).pipe(\n map((res) => {\n ctx.dispatch(new LoadFormTemplateForFoSuccess(res));\n }),\n catchError((err) => ctx.dispatch(new LoadFormTemplateForFoFailed(err)))\n );\n }\n\n @Action(LoadFormTemplateForFoSuccess)\n async loadFormSuccess(\n ctx: StateContext<FormStateModel>,\n action: LoadFormTemplateForFoSuccess\n ) {\n let forms: FormModel[] = action.formModel && action.formModel.sections;\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const countries = await this.geoInfoService\n .getCountries(config)\n .toPromise();\n\n const nationalities = await this.geoInfoService\n .getNationalities(config)\n .toPromise();\n\n forms = this.formConfigToFormlyService.getFormForFormly(\n forms,\n countries,\n nationalities\n );\n ctx.patchState({ theme: action.formModel && action.formModel.theme });\n ctx.patchState({ forms });\n ctx.dispatch(new LoadSavedForm());\n }\n\n\n @Action(LoadAutoFillModelForFoSuccess)\n async loadAutoFillForm(\n ctx: StateContext<FormStateModel>,\n action: LoadAutoFillModelForFoSuccess\n ) {\n ctx.patchState({ autoFillModel: action });\n }\n\n\n @Action(LoadFormTemplateForFoFailed)\n loadFormFailed(\n ctx: StateContext<FormStateModel>,\n action: LoadFormTemplateForFoFailed\n ) {\n this.foErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(SendAnswers)\n sendAnswers(ctx: StateContext<FormStateModel>, { answersMap }: SendAnswers) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const formId = url.params && url.params.id;\n const userState: UserStateModel = Object.assign(\n {},\n this.store.selectSnapshot((state) => state.user)\n );\n\n const user = userState.user;\n const answers = _.cloneDeep(answersMap);\n\n delete answers.idscanning;\n\n Object.keys(answers).forEach((key) => {\n if (key === 'picture') {\n answers[key] = this.store.selectSnapshot((state) =>\n !!state.profilePicture ? state.profilePicture.imageData : ''\n );\n } else {\n if (answers[key] && typeof answers[key] !== 'string') {\n answers[key] = JSON.stringify(answers[key]);\n }\n }\n });\n\n const model: FormAnswerModel = new FormAnswerModel(\n user.firstName,\n user.lastName,\n user.email,\n answers\n );\n\n return this.formService.submit(formId, model).pipe(\n map(() => ctx.dispatch(new FormSaveSuccess())),\n catchError((err) => ctx.dispatch(new FormSaveFailed(err)))\n );\n }\n\n @Action(TryAutoSave)\n TryAutoSave(ctx: StateContext<FormStateModel>, action: TryAutoSave) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const formId = url.params && url.params.id;\n const userState: UserStateModel = Object.assign(\n {},\n this.store.selectSnapshot((state) => state.user)\n );\n\n const user = userState.user;\n\n let answers = action.answersMap;\n\n delete answers.idscanning;\n\n answers.picture = this.store.selectSnapshot((state) =>\n !!state.profilePicture ? state.profilePicture.imageData : ''\n );\n answers = this.formChangesService.getChangedAnswers(answers);\n if (!!answers) {\n const model: FormAnswerModel = new FormAnswerModel(\n user.firstName,\n user.lastName,\n user.email,\n answers\n );\n\n return this.formService.autoSave(formId, model).pipe(\n map(() => ctx.dispatch(new AutoSaveSuccess())),\n catchError((err) => ctx.dispatch(new AutoSaveFailed()))\n );\n }\n }\n\n @Action(AutoSaveChangeLabel)\n autoSaveChangeLabel(\n ctx: StateContext<FormStateModel>,\n action: AutoSaveChangeLabel\n ) {\n if (\n !ctx.getState().saveStatus ||\n ctx.getState().saveStatus.label !== 'No connection' ||\n action.label === ''\n ) {\n ctx.patchState({\n saveStatus: { label: action.label, cssClass: action.cssClass }\n });\n }\n }\n\n @Action(AutoSaveSuccess)\n autoSaveSuccess(ctx: StateContext<FormStateModel>) {\n ctx.dispatch(new AutoSaveChangeLabel('Saved', 'save-status__saved'));\n }\n\n @Action(AutoSaveFailed)\n autoSaveFailed(ctx: StateContext<FormStateModel>) {\n console.error('autosave failed');\n ctx.dispatch(new AutoSaveChangeLabel(`Can't Save`, 'save-status__error'));\n }\n\n @Action(FormSaveSuccess)\n formSaveSuccess(ctx: StateContext<FormStateModel>) {\n ctx.dispatch(new AutoSaveChangeLabel('Saved', 'save-status__saved'));\n\n ctx.dispatch(\n new SendOkMessage(this.translate.instant('form.save-form-success'))\n );\n ctx.dispatch(new Navigate(['/home']));\n }\n\n @Action(FormSaveFailed)\n formSaveFailed(ctx: StateContext<FormStateModel>, action: FormSaveFailed) {\n ctx.dispatch(new AutoSaveChangeLabel(`Can't Save`, 'save-status__error'));\n ctx.dispatch(\n new SendErrorMessage(this.translate.instant('form.save-form-failed'))\n );\n this.foErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(LoadSavedForm)\n loadSavedForm(ctx: StateContext<FormStateModel>) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const formId = url.params && url.params.id;\n\n return this.formService.getSavedForm(formId).pipe(\n map(\n ({\n model,\n hasValidAccreditations,\n canUserChangesAccreditationData\n }) => {\n ctx.patchState({\n invitationSiteIds: model.sites.map((x: any) => x.id),\n isFormCompleted: model.formStatus === 'Completed',\n formAllowChanges: canUserChangesAccreditationData\n });\n\n return ctx.dispatch(\n new LoadSavedFormSuccess(\n model.answers,\n model.formStatus && model.formStatus === 'Completed',\n hasValidAccreditations\n )\n );\n }\n ),\n catchError((err) => ctx.dispatch(new LoadSavedFormFailed(err)))\n );\n }\n\n @Action(LoadSavedFormSuccess)\n loadSavedFormSuccess(\n ctx: StateContext<FormStateModel>,\n { isCompleted, answersMap, hasAccreditations }: LoadSavedFormSuccess\n ) {\n const previousModel: any = this.setUpAnswersForModelAndAutosave(\n answersMap,\n isCompleted\n );\n\n ctx.patchState({\n previousModel,\n isPreviousModelCompleted: !!hasAccreditations\n });\n }\n\n @Action(IsFrontOfficeDeadlineOpen)\n isFrontOfficeDeadlineOpen(\n ctx: StateContext<FormStateModel>,\n action: IsFrontOfficeDeadlineOpen\n ) {\n const eventId = action.eventId;\n return this.formService.isFoOpen(eventId).pipe(\n map((res) => ctx.dispatch(new IsFrontOfficeDeadlineOpenSuccess(res))),\n catchError((err) =>\n ctx.dispatch(new IsFrontOfficeDeadlineOpenFailed(err))\n )\n );\n }\n\n @Action(IsFrontOfficeDeadlineOpenSuccess)\n isFrontOfficeDeadlineOpenSuccess(\n ctx: StateContext<FormStateModel>,\n action: IsFrontOfficeDeadlineOpenSuccess\n ) {\n ctx.patchState({ isFoOpen: action.isOpen });\n }\n\n @Action(IsFrontOfficeDeadlineOpenFailed)\n IsFrontOfficeDeadlineOpenFailed(\n ctx: StateContext<FormStateModel>,\n action: IsFrontOfficeDeadlineOpenFailed\n ) {\n this.foErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(LoadSavedFormFailed)\n loadSavedFormFailed(\n ctx: StateContext<FormStateModel>,\n action: LoadSavedFormFailed\n ) {\n this.foErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(LoadFormListForUser)\n loadFormListForUser(ctx: StateContext<FormStateModel>) {\n return this.formService.getAvailableForms().pipe(\n map((res) => ctx.dispatch(new LoadFormListForUserSuccess(res))),\n catchError((err) => ctx.dispatch(new LoadFormListForUserFailed(err)))\n );\n }\n\n @Action(LoadFormListForUserSuccess)\n loadFormListForUserSuccess(\n ctx: StateContext<FormStateModel>,\n action: LoadFormListForUserSuccess\n ) {\n ctx.patchState({ availableForms: action.forms });\n }\n\n @Action(LoadFormListForUserFailed)\n loadFormListForUserFailed(\n ctx: StateContext<FormStateModel>,\n action: LoadFormListForUserFailed\n ) {\n this.foErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(ResetFormModel)\n resetFormModel(ctx: StateContext<FormStateModel>) {\n ctx.patchState({\n previousModel: undefined,\n saveStatus: null,\n isPreviousModelCompleted: undefined\n });\n }\n\n @Action(GetTermsAndConditionsFo)\n getTermsAndConditions(\n ctx: StateContext<FormStateModel>,\n action: GetTermsAndConditionsFo\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n return this.legalConditionsService\n .getLegalConditions(eventId as number)\n .pipe(\n map((res) => ctx.dispatch(new GetTermsAndConditionsSuccessFo(res))),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new GetTermsAndConditionsFailedFo(err));\n })\n );\n }\n\n @Action(GetTermsAndConditionsSuccessFo)\n getTermsAndConditionsSuccess(\n ctx: StateContext<FormStateModel>,\n { terms }: GetTermsAndConditionsSuccessFo\n ) {\n ctx.dispatch(new SetLegalConditions(terms));\n }\n\n @Action(GetTermsAndConditionsFailedFo)\n getTermsAndConditionsFailed(\n ctx: StateContext<FormStateModel>,\n { error }: GetTermsAndConditionsFailedFo\n ) {\n this.foErrorService.redirectToErrorPage(error);\n }\n\n @Action(FetchLegalConditions)\n fetchLegalConditions(ctx: StateContext<FormStateModel>) {\n ctx.dispatch(new GetTermsAndConditionsFo());\n }\n\n @Action(PrintForm)\n printForm(ctx: StateContext<FormStateModel>) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const formId = url.params?.id;\n const userLang = navigator.language ?? 'en';\n return this.formService.printForm(formId, userLang.substr(0, 2)).pipe(\n map((res) => ctx.dispatch(new PrintFormSuccess(res))),\n catchError((err) => ctx.dispatch(new PrintFormFailed(err)))\n );\n }\n\n @Action(PrintFormSuccess)\n PrintFormSuccess(\n ctx: StateContext<FormStateModel>,\n { response: { fileName, fileContent } }: PrintFormSuccess\n ) {\n saveAs(new Blob([fileContent], { type: 'pdf' }), fileName);\n }\n\n @Action(PrintFormFailed)\n PrintFormFailed(\n ctx: StateContext<FormStateModel>,\n { error }: PrintFormFailed\n ) {\n this.foErrorService.redirectToErrorPage(error);\n }\n\n @Action(LoadDataFromOtherForm)\n loadDataFromOtherForm(\n ctx: StateContext<FormStateModel>,\n { formId }: LoadDataFromOtherForm\n ) {\n return this.formService.getSavedForm(formId).pipe(\n map(({ model }) => {\n return ctx.dispatch(new LoadDataFromOtherFormSuccess(model.answers));\n }),\n catchError((err) => ctx.dispatch(new LoadDataFromOtherFormFail(err)))\n );\n }\n\n @Action(LoadDataFromOtherFormFail)\n loadDataFromOtherFormFail(\n ctx: StateContext<FormStateModel>,\n { error }: LoadDataFromOtherFormFail\n ) {\n this.foErrorService.redirectToErrorPage(error);\n }\n\n @Action(LoadDataFromOtherFormSuccess)\n loadDataFromOtherFormSuccess(\n ctx: StateContext<FormStateModel>,\n { answers }: LoadDataFromOtherFormSuccess\n ) {\n const { sites, legalconditions } = ctx.getState().previousModel;\n const availableFieldsInEvent = ctx\n .getState()\n .forms.flatMap((form) => form.fields.map((field) => field.key));\n const answersWithOnlyAvailableFields = Object.keys(answers).reduce(\n (obj, prop) => {\n if (availableFieldsInEvent.includes(prop)) {\n obj[prop] = answers[prop];\n }\n return obj;\n },\n {}\n );\n\n Object.assign(answersWithOnlyAvailableFields, {\n sites: JSON.stringify(sites),\n legalconditions: JSON.stringify(legalconditions)\n });\n const previousModel = this.setUpAnswersForModelAndAutosave(\n answersWithOnlyAvailableFields,\n false,\n false\n );\n\n ctx.patchState({ previousModel });\n\n ctx.dispatch(\n new SendOkMessage(this.translate.instant('form.import-form-success'))\n );\n }\n\n private setUpAnswersForModelAndAutosave(\n answersMap: any,\n isCompleted: boolean,\n isToInitForm = true\n ) {\n const answersMapCopy: any = {};\n const base64img = answersMap.picture;\n\n if (isToInitForm) {\n this.formChangesService.initAnswers(answersMap);\n }\n\n Object.keys(answersMap).forEach((keyName: string) => {\n if (keyName === 'picture' && !!base64img) {\n this.store.dispatch(\n new StoreImageTaken(\n new WebcamImage(`data:image/jpeg;base64,${base64img}`, null, null)\n )\n );\n answersMapCopy.picture = { picture: { picture: {} } };\n } else {\n if (keyName === 'legalconditions' && !isCompleted) {\n answersMapCopy.legalconditions = { legalconditions: {} };\n } else {\n try {\n const jsonParsed = JSON.parse(answersMap[keyName]);\n answersMapCopy[keyName] =\n typeof jsonParsed === 'number' ? answersMap[keyName] : jsonParsed;\n } catch {\n answersMapCopy[keyName] = answersMap[keyName];\n }\n }\n }\n });\n return answersMapCopy;\n }\n}\n","export enum ImageType {\n PNG = 1,\n JPEG = 2\n}\n\nexport class ImageSignature {\n readonly signature: Uint8Array;\n readonly offset: number;\n get requiredBufferLength() {\n return this.signature.length + this.offset;\n }\n\n constructor(signature: Uint8Array, offset: number) {\n this.signature = signature;\n this.offset = offset;\n }\n\n public check(header: Uint8Array): boolean{\n if(!header || header.length < this.requiredBufferLength) {\n return false;\n }\n if (this.signature.every((el, index) => el === header[this.offset + index])) {\n return true;\n }\n return false;\n }\n}\n\nexport interface ISupportedImageType {\n signatures: ImageSignature[];\n requiredBufferLength: number;\n mimeType: string;\n fileExtensions: string[];\n defaultExtension: string;\n imageType: ImageType;\n\n check(buffer: Uint8Array): boolean;\n}\n\nexport class JpegImageType implements ISupportedImageType {\n readonly signatures: ImageSignature[];\n readonly requiredBufferLength: number;\n readonly mimeType: string;\n readonly fileExtensions: string[];\n readonly defaultExtension: string;\n readonly imageType: ImageType;\n\n constructor() {\n this.signatures = [\n new ImageSignature(new Uint8Array([0xff, 0xd8, 0xff, 0xe0]), 0),\n new ImageSignature(new Uint8Array([0xff, 0xd8, 0xff, 0xe1]), 0),\n new ImageSignature(new Uint8Array([0xff, 0xd8, 0xff, 0xe2]), 0),\n new ImageSignature(new Uint8Array([0xff, 0xd8, 0xff, 0xee]), 0),\n new ImageSignature(new Uint8Array([0xff, 0xd8, 0xff, 0xdb]), 0)\n ];\n\n this.requiredBufferLength = Math.max(\n ...this.signatures.map((subArr) => subArr.requiredBufferLength)\n );\n\n this.mimeType = 'image/jpeg';\n this.fileExtensions = ['jpeg', 'jpg'];\n this.defaultExtension = 'jpg';\n this.imageType = ImageType.JPEG;\n }\n\n check(buffer: Uint8Array): boolean {\n if (!buffer || buffer.length < this.requiredBufferLength) {\n return false;\n }\n for (const sig of this.signatures) {\n if (sig.check(buffer)) {\n return true;\n }\n }\n return false;\n }\n}\n\nexport class PngImageType implements ISupportedImageType {\n readonly signatures: ImageSignature[];\n readonly requiredBufferLength: number;\n readonly mimeType: string;\n readonly fileExtensions: string[];\n readonly defaultExtension: string;\n readonly imageType: ImageType;\n\n constructor() {\n this.signatures = [\n new ImageSignature(new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), 0)\n ];\n\n this.requiredBufferLength = this.signatures[0].requiredBufferLength;\n\n this.mimeType = 'image/png';\n this.fileExtensions = ['png'];\n this.defaultExtension = 'png';\n this.imageType = ImageType.PNG;\n }\n\n check(buffer: Uint8Array): boolean {\n if (!buffer || buffer.length < this.requiredBufferLength) {\n return false;\n }\n return this.signatures[0].check(buffer);\n }\n}\n\nexport abstract class SupportedImageType {\n public static Jpeg: ISupportedImageType = new JpegImageType();\n public static Png: ISupportedImageType = new PngImageType();\n}\n","import {\n StoreImageTaken,\n UploadImage,\n UploadFailed,\n RemoveImageTakenLocally\n} from '@projects-shared/store/actions/profile-picture.actions';\nimport { State, Selector, Action, StateContext } from '@ngxs/store';\nimport { GetAvailableVideoInputs } from '@projects-shared/store/actions/profile-picture.actions';\nimport { WebcamUtil } from 'ngx-webcam';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Injectable } from '@angular/core';\nimport { ISupportedImageType, SupportedImageType } from '@projects-shared/models/image-type.model';\n\nexport interface ProfilePictureStateModel {\n imageData?: string;\n imageUrl?: string;\n availableCameras: MediaDeviceInfo[];\n errorMessage?: string;\n}\n\nconst oneMbSize = 1048576;\nconst supportedImageTypes: ISupportedImageType[] = [\n SupportedImageType.Jpeg, SupportedImageType.Png\n]\n\n@State<ProfilePictureStateModel>({\n name: 'profilePicture',\n defaults: {\n availableCameras: []\n }\n})\n@Injectable()\nexport class ProfilePictureState {\n fileSizeLimit = 2 * oneMbSize;\n constructor(private translate: TranslateService) {}\n\n @Selector()\n static cameras(model: ProfilePictureStateModel) {\n return model.availableCameras;\n }\n\n @Selector()\n static imageUrl(model: ProfilePictureStateModel) {\n return model.imageUrl;\n }\n\n @Selector()\n static errorMessage(model: ProfilePictureStateModel) {\n return model.errorMessage;\n }\n\n @Action(GetAvailableVideoInputs)\n async getAvailableVideoInputs(\n ctx: StateContext<ProfilePictureStateModel>,\n action: GetAvailableVideoInputs\n ) {\n try {\n const availableCameras = await WebcamUtil.getAvailableVideoInputs();\n ctx.patchState({ availableCameras });\n } catch {\n ctx.patchState({ availableCameras: [] });\n console.error('Error occured during GetAvailableVideoInputs');\n }\n }\n\n @Action(StoreImageTaken)\n storeImageTaken(\n ctx: StateContext<ProfilePictureStateModel>,\n action: StoreImageTaken\n ) {\n try {\n if (ctx.getState().errorMessage) {\n ctx.patchState({ errorMessage: undefined });\n }\n const { imageAsDataUrl, imageAsBase64 } = action.image;\n ctx.patchState({\n imageUrl: imageAsDataUrl,\n imageData: imageAsBase64.replace(/data\\:.*\\.*\\;base64\\,/, '')\n });\n } catch {\n console.error('Error occured during StoreImageTaken');\n }\n }\n\n @Action(UploadImage)\n async uploadImage(\n ctx: StateContext<ProfilePictureStateModel>,\n action: UploadImage\n ) {\n const imageFile = action.image;\n try {\n const errMessage = await this.checkImageFileForRequirements(imageFile);\n if (!errMessage) {\n ctx.patchState({ errorMessage: undefined });\n } else {\n throw new Error(errMessage);\n }\n\n this.storeUploadedImage(imageFile, ctx);\n } catch (error) {\n ctx.dispatch(new UploadFailed(error.message as string));\n }\n }\n\n @Action(UploadFailed)\n uploadFailed(\n ctx: StateContext<ProfilePictureStateModel>,\n action: UploadFailed\n ) {\n const imageData = undefined;\n const imageUrl = undefined;\n const errorMessage = action.message;\n ctx.patchState({ imageData, imageUrl, errorMessage });\n }\n\n @Action(RemoveImageTakenLocally)\n removeImageTakenLocally(ctx: StateContext<ProfilePictureStateModel>) {\n const imageData = undefined;\n const imageUrl = undefined;\n const errorMessage = undefined;\n\n ctx.patchState({ imageData, imageUrl, errorMessage });\n }\n\n private async checkImageFileForRequirements(imageFile: File): Promise<any> {\n let messages: string[] = [];\n let isSupported: boolean = true;\n if (supportedImageTypes.map(i => i.mimeType).indexOf(imageFile.type) < 0) {\n messages = [...messages, this.translate.instant(`form.error-picture`)];\n isSupported = false;\n }\n\n if (isSupported) {\n isSupported &&= await this.isSupportedImageType(imageFile);\n if (!isSupported){\n messages = [...messages, this.translate.instant(`form.error-picture`)];\n }\n }\n\n if (imageFile.size > this.fileSizeLimit) {\n messages = [\n ...messages,\n `${(this.translate.instant(\n 'form.error-picture-size'\n ) as string).replace('[SIZE]', this.fileSizeLimit / oneMbSize + '')}`\n ];\n }\n return !messages.length ? '' : `${messages.join(', ')}`;\n }\n\n private async isSupportedImageType(imageFile: File): Promise<boolean> {\n const bufferLenght: number = this.getBufferLength(supportedImageTypes);\n const buffer = await this.readBuffer(imageFile, 0, bufferLenght);\n const uint8Array = new Uint8Array(buffer);\n for (const imageType of supportedImageTypes) {\n if (imageType.check(uint8Array)) {\n return true;\n }\n };\n return false;\n }\n\n private getBufferLength(arr: ISupportedImageType[]): number {\n return Math.max(...arr.map(subArr => subArr.requiredBufferLength));\n }\n\n private readBuffer(file: File, start: number = 0, end: number = 2): Promise<ArrayBuffer> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n resolve(reader.result as ArrayBuffer);\n };\n reader.onerror = reject;\n reader.readAsArrayBuffer(file.slice(start, end));\n });\n }\n\n private storeUploadedImage(\n imageFile: File,\n ctx: StateContext<ProfilePictureStateModel>\n ): any {\n let imageUrl: string;\n const readerUrl = new FileReader();\n readerUrl.onload = (e) => {\n imageUrl = readerUrl.result as string;\n const imageData = imageUrl.replace(/data\\:.*\\.*\\;base64\\,/, '');\n ctx.patchState({ imageUrl, imageData });\n };\n readerUrl.readAsDataURL(imageFile);\n }\n}\n","import { TermsAndConditions } from '@projects-shared/models/terms-and-conditions.model';\nimport { State, Selector, Action, StateContext } from '@ngxs/store';\nimport { SetLegalConditions } from '../actions/legal-conditions.actions';\nimport { Injectable } from '@angular/core';\n\nexport interface LegalConditionsStateModel {\n termsAndConditions?: TermsAndConditions;\n}\n\n@State<LegalConditionsStateModel>({\n name: 'legalConditions',\n defaults: {}\n})\n@Injectable()\nexport class LegalConditionsState {\n @Selector()\n static termsAndConditions(model: LegalConditionsStateModel) {\n return model.termsAndConditions;\n }\n\n @Action(SetLegalConditions)\n setLegalConditions(\n ctx: StateContext<LegalConditionsStateModel>,\n { terms }: SetLegalConditions\n ) {\n ctx.patchState({ termsAndConditions: terms });\n }\n}\n","import { DocumentScanningModel } from \"@projects-shared/models/document-scanning.model\";\nimport { GetFormModel } from \"@projects-shared/models/get-form.model\";\n\nexport class StartAnalyzeDocument {\n static readonly type = '[Document-Scanning] Start Analyze Document';\n constructor(public readonly documentScanning: DocumentScanningModel,\n public readonly language: string,\n public readonly formId:string,\n public readonly isMobile=false\n ) { }\n}\n\nexport class StartAnalyzeDocumentSuccess {\n static readonly type = '[Document-Scanning] Start Analyze Document Success';\n constructor(public readonly formModel: GetFormModel) { }\n}\n\nexport class StartAnalyzeDocumentError {\n static readonly type = '[Document-Scanning] Finish Analyze Document Error';\n constructor(public readonly error: any=null){ }\n}","import { GetFormModel } from 'projects/shared/models/get-form.model';\nimport { BasicInvitation } from '@back-office/models/invitation.model';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { Site } from '@back-office/models/site.model';\n\nexport class LoadFormTemplateForBo {\n static readonly type = '[Form] Try to load form temnplate for BO';\n constructor(public eventId: number) {}\n}\n\nexport class LoadFormTemplateForBoSuccess {\n static readonly type = '[Form] Success in loading form template for BO';\n constructor(public formModel: GetFormModel) {}\n}\n\nexport class LoadFormTemplateForBoFailed {\n static readonly type = '[Form] loading form template for BO failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class GetInvitation {\n static readonly type = '[Form] Get Invitation Action';\n constructor(public id: string) {}\n}\n\nexport class SetSelectedInvitation {\n static readonly type = '[Form] Set Selected Invitation Action';\n constructor(public selected: BasicInvitation) {}\n}\n\nexport class CreatePerson {\n static readonly type = '[Form] Create Person';\n constructor(public readonly answersMap: any) {}\n}\n\nexport class CreatePersonSuccess {\n static readonly type = '[Form] Create Person Success';\n}\n\nexport class CreatePersonFailed {\n static readonly type = '[Form] Create Person Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class UpdatePerson {\n static readonly type = '[Form] Update Person';\n constructor(public readonly answersMap: any, public eventId: number) {}\n}\n\nexport class UpdatePersonSuccess {\n static readonly type = '[Form] Update Person Success';\n constructor(public eventId: number) {}\n}\n\nexport class UpdatePersonFailed {\n static readonly type = '[Form] Update Person Failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class UpdateInvitationSites {\n static readonly type = '[Invitation] Update Invitation Sites';\n constructor(\n public readonly sites: Site[],\n public invitationId: string,\n public isFormValid: boolean\n ) {}\n}\n\nexport class UpdateInvitationSitesSuccess {\n static readonly type = '[Invitation] Update Invitation Sites Success';\n constructor(public readonly result: boolean) {}\n}\n\nexport class UpdateInvitationSitesFailed {\n static readonly type = '[Invitation] Update Invitation Sites Failed';\n constructor(public error: HttpErrorResponse) {}\n}\nexport class RefreshAccreditations {\n static readonly type = '[Form] Refresh Accreditations for notification';\n constructor(public readonly accreditationRequestId: string) {}\n}\n\nexport class LoadAutoFillModelForBoSuccess {\n static readonly type = '[Form] Success in loading autofill data model';\n constructor(public formModel: any) {}\n}","export enum ScanningStatus{\n Pending = 0,\n Initialized = 1,\n Scanning = 1,\n InProgress = 1,\n Success = 2,\n Error = 3,\n Closed = 4,\n Cancelled = 5,\n Uploading = 6,\n UnsupportedDocument = 7,\n UnsupportedDocumentType = 12,\n} ","import { CommonConfigModel } from '@projects-shared/models/common-config.model';\nimport { Injectable, Inject } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Store } from '@ngxs/store';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConfigResolverService {\n\n config: CommonConfigModel;\n private moduleName = \"\";\n\n constructor(private router: Router, private store: Store, @Inject('moduleName') private module: string) { }\n\n async getConfig(): Promise<CommonConfigModel> {\n if (!this.config) {\n this.moduleName = this.module;\n if (!this.moduleName) {\n this.moduleName = this.getModuleName();\n }\n\n let config: CommonConfigModel;\n\n if (this.moduleName == \"app-bo\") {\n const boConfig = await import('@back-office/store/states/config.state');\n config = this.store.selectSnapshot(boConfig.ConfigState.getConfig);\n }\n else {\n const foConfig = await import('@front-office/store/states/config.state');\n config = this.store.selectSnapshot(foConfig.ConfigState.getConfig);\n }\n\n this.config = config;\n }\n return this.config;\n }\n\n private getModuleName(): string | null {\n const rootRoute = this.router.routerState.root.firstChild;\n if (!rootRoute) {\n return null;\n }\n return rootRoute.snapshot.data.moduleName;\n }\n\n public isFrontOfficeModule(): boolean {\n return this.module === \"app-bo\" ? false : true;\n }\n}\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DeviceDetectorService {\n\n detectIsMobileDevice() {\n const toMatch = [\n /Android/i,\n /webOS/i,\n /iPhone/i,\n /iPad/i,\n /iPod/i,\n /BlackBerry/i,\n /Windows Phone/i\n ];\n\n return toMatch.some((toMatchItem) => {\n return navigator.userAgent.match(toMatchItem);\n });\n }\n}\n\nexport default DeviceDetectorService;\n","import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { DocumentScanningModel } from '@projects-shared/models/document-scanning.model';\nimport { ConfigResolverService } from './config-resolver.service';\nimport {DeviceDetectorService} from \"@projects-shared/services/device-detector.service\"\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DocumentScanningService {\n constructor(\n private http: HttpClient,\n private configResolver: ConfigResolverService,\n private deviceDetector: DeviceDetectorService) {\n }\n\n async analyzeDocument(document: DocumentScanningModel, language: string, formId:string=\"\"): Promise<any> {\n let headers: HttpHeaders = new HttpHeaders();\n headers = headers.append('Language', language).append('IsBackOffice', String(!this.configResolver.isFrontOfficeModule())).append('IsMobile',String(this.deviceDetector.detectIsMobileDevice()));\n \n if(formId.length >0 ){\n headers = headers.append('FormId',formId);\n }\n const config = await this.configResolver.getConfig();\n const url = `${config.apiUrl}/id-scanning/analyze-document`;\n return this.http.post(url, document, {headers}).toPromise();\n }\n}","import { State, Action, StateContext, Selector } from '@ngxs/store';\nimport { Injectable } from '@angular/core';\nimport { DocumentScanningModel } from '@projects-shared/models/document-scanning.model';\nimport { DocumentScanningService } from '@projects-shared/services/document-scanning.service';\nimport { StartAnalyzeDocument, StartAnalyzeDocumentError, StartAnalyzeDocumentSuccess } from '../actions/document-scanning.actions';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service';\nimport { LoadAutoFillModelForBoSuccess } from '@back-office/store/actions/form.actions';\nimport { LoadAutoFillModelForFoSuccess } from '@front-office/store/actions/form.actions';\nimport { ScanningStatus } from '@projects-shared/models/scanning-status.model';\n\nexport interface DocumentScanningStateModel {\n documentScanning?: DocumentScanningModel;\n scanningStatus?: ScanningStatus\n}\n\n@State<DocumentScanningStateModel>({\n name: 'documentScanning',\n defaults: {}\n})\n\n@Injectable()\nexport class DocumentScanningState {\n constructor(private documentScanningService: DocumentScanningService, private configResolverService: ConfigResolverService) { }\n\n @Selector()\n static documentScanning(model: DocumentScanningStateModel) {\n return model.documentScanning;\n }\n\n @Selector()\n static scanningStatus(model: DocumentScanningStateModel) {\n return model.scanningStatus;\n }\n\n @Action(StartAnalyzeDocument)\n startAnalyzeDocument(\n ctx: StateContext<DocumentScanningStateModel>,\n action: StartAnalyzeDocument\n ) {\n return this.documentScanningService\n .analyzeDocument(action.documentScanning, action.language,action.formId)\n .then(\n (formResult) => {\n if(action.isMobile){\n ctx.dispatch(new StartAnalyzeDocumentSuccess(formResult));\n } \n },\n (err) => {\n if(action.isMobile){\n ctx.dispatch(new StartAnalyzeDocumentError(err.error));\n }\n \n });\n }\n\n @Action(StartAnalyzeDocumentSuccess)\n startAnalyzeDocumentSuccess(\n ctx: StateContext<DocumentScanningStateModel>,\n action: StartAnalyzeDocumentSuccess\n ) {\n ctx.patchState({ scanningStatus: ScanningStatus.Success })\n ctx.patchState({scanningStatus: ScanningStatus.Initialized })\n\n if (this.configResolverService.isFrontOfficeModule()) {\n ctx.dispatch(new LoadAutoFillModelForFoSuccess(action.formModel))\n } else {\n ctx.dispatch(new LoadAutoFillModelForBoSuccess(action.formModel))\n }\n }\n\n @Action(StartAnalyzeDocumentError)\n startAnalyzeDocumentError(\n ctx: StateContext<DocumentScanningStateModel>,\n action: StartAnalyzeDocumentError\n ) {\n ctx.patchState({scanningStatus : action.error});\n ctx.patchState({scanningStatus: ScanningStatus.Initialized })\n }\n}\n","import { AppMessageState } from '@projects-shared/app-message/app-message.state';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { UserState } from '@front-office/store/states/user.state';\nimport { FormState } from '@front-office/store/states/form.state';\nimport { ProfilePictureState } from '@projects-shared/store/states/profile-picture.state';\nimport { LegalConditionsState } from '@projects-shared/store/states/legal-conditions.state';\nimport { DocumentScanningState } from '@projects-shared/store/states/document-scanning.state';\n\nexport const appStates = [\n ConfigState,\n UserState,\n FormState,\n ProfilePictureState,\n AppMessageState,\n LegalConditionsState,\n DocumentScanningState\n];\n","/* eslint-disable @angular-eslint/no-empty-lifecycle-method */\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-expired-link-page',\n templateUrl: './expired-link-page.component.html',\n styleUrls: ['./expired-link-page.component.scss']\n})\nexport class ExpiredLinkPageComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","\n<section class=\"section__404\">\n <div class=\"section--content\">\n <div class=\"section--msg col-lg-4 m-auto\">\n \n <div class=\"section--img\">\n <img src=\"/assets/images/error-page.svg\" alt=\"Page not Found\" />\n </div>\n <h1 class=\"section--title my-2\"> This link is no longer valid</h1>\n <p class=\"section--subtitle \">This link has already been used for a registration and can't be used\n again.</p>\n <p class=\"section--subtitle my-2 \"> If the problem persists, please get in touch with your UEFA\n accreditation counterpart.</p>\n </div>\n </div>\n </section>","/* eslint-disable @angular-eslint/no-empty-lifecycle-method */\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-fo-closed',\n templateUrl: './fo-closed.component.html',\n styleUrls: ['./fo-closed.component.scss']\n})\nexport class FoClosedComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","\n\n<section class=\"section__404\">\n <div class=\"section--content\">\n <div class=\"section--msg col-lg-4 m-auto\">\n \n <div class=\"section--img\">\n <img src=\"/assets/images/error-page.svg\" alt=\"Page not Found\" />\n </div>\n <h1 class=\"section--title my-2\"> Front Office Deadline is Closed for this event</h1> \n </div>\n </div>\n </section>","import { LoadFormListForUser } from '@front-office/store/actions/form.actions';\nimport { FrontOfficeErrorService } from '@front-office/services/fo-error.service';\nimport { Injectable } from '@angular/core';\nimport {\n Resolve,\n ActivatedRouteSnapshot,\n RouterStateSnapshot\n} from '@angular/router';\nimport { FormService } from '@front-office/services/form.service';\nimport { Store } from '@ngxs/store';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { Observable, EMPTY } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\nimport { LocalStorageService } from '../../services/local-storage.service';\n\n@Injectable({ providedIn: 'root' })\nexport class ActivateInvitationResolver implements Resolve<any> {\n constructor(\n private formService: FormService,\n private store: Store,\n private foErrorService: FrontOfficeErrorService,\n private localStorage: LocalStorageService\n ) {}\n\n resolve(\n route: ActivatedRouteSnapshot,\n state: RouterStateSnapshot\n ): Observable<any> {\n const invitationId: string = !!route.queryParamMap.get('invitationId')\n ? route.queryParamMap.get('invitationId')\n : this.localStorage.get('invitationId');\n\n if (!!invitationId) {\n return this.formService.activateForm(invitationId).pipe(\n switchMap((res) =>\n res\n ? this.store.dispatch(new LoadFormListForUser())\n : this.store.dispatch(new Navigate(['/expired-link']))\n ),\n catchError((err) => {\n this.foErrorService.redirectToErrorPage(err);\n return EMPTY;\n })\n );\n } else {\n this.store.dispatch(new LoadFormListForUser());\n }\n }\n}\n","<div class=\"option-container\" [ngClass]=\"{ 'option-container--anonymised': option.isAnonymised }\" (click)=\"selectRadio()\">\n <div class=\"option-container--radio\">\n <mat-radio-button *ngIf=\"!option.isAnonymised\"\n (change)=\"onChange($event)\"\n [value]=\"option.id\"\n [disabled]=\"option.isAnonymised\"\n ></mat-radio-button>\n </div>\n\n <div class=\"option-container--text\">\n <strong><span *ngIf=\"option.isAnonymised\">[ANONYMISED] </span>{{ option.eventName }}</strong>\n <em>{{ option.sites.join(', ') }}</em>\n <span>{{ option.organizationName }}</span>\n </div>\n</div>\n","/* eslint-disable @angular-eslint/no-empty-lifecycle-method */\nimport {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Input,\n EventEmitter,\n Output,\n ViewChild\n} from '@angular/core';\nimport { MatRadioButton, MatRadioChange } from '@angular/material/radio';\nimport { BasicForm } from '@front-office/models/forms-with-status.model';\n\n@Component({\n selector: 'app-import-option',\n templateUrl: './import-option.component.html',\n styleUrls: ['./import-option.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ImportOptionComponent implements OnInit {\n @Input() option: BasicForm;\n @Output() optionClicked = new EventEmitter<string>();\n\n @ViewChild(MatRadioButton) matRadio: MatRadioButton;\n\n constructor() {}\n\n ngOnInit(): void {}\n\n onChange(event: MatRadioChange) {\n this.optionClicked.emit(event.value);\n }\n\n selectRadio() {\n if (!this.option.isAnonymised) {\n this.matRadio.checked = true;\n this.optionClicked.emit(this.option.id);\n }\n }\n}\n","<button mat-icon-button mat-dialog-close class=\"mat-dialog-btn__close\">\n <mat-icon>close</mat-icon>\n</button>\n<h2 mat-dialog-title>{{ 'form.import-data-title' | translate }}</h2>\n<div mat-mat-dialog-content>\n <div *ngIf=\"!loading && completedForms?.length\" class=\"options-wrapper\">\n <perfect-scrollbar\n ><div *ngFor=\"let form of completedForms\" class=\"mb-1\">\n <app-import-option\n [option]=\"form\"\n (optionClicked)=\"onClick($event)\"\n ></app-import-option>\n </div>\n </perfect-scrollbar>\n <div class=\"mat-dialog-actions\">\n <button\n [disabled]=\"!selectedFormId\"\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n (click)=\"confirmImport()\"\n >\n {{ 'form.confirm-import' | translate }}\n </button>\n </div>\n </div>\n <div class=\"no-forms-wrapper\" *ngIf=\"!loading && !completedForms.length\">\n <img\n src=\"/assets/images/no-events.svg\"\n alt=\"No invitations to import yet\"\n />\n <p>{{ 'form.no-invitations-to-import' | translate }}</p>\n </div>\n <div class=\"loader-wrapper\" *ngIf=\"loading\">\n <mat-spinner diameter=\"45\"></mat-spinner>\n </div>\n</div>\n","import {\n LoadDataFromOtherForm,\n LoadDataFromOtherFormFail,\n LoadDataFromOtherFormSuccess,\n LoadFormListForUserFailed,\n LoadFormListForUserSuccess\n} from './../../store/actions/form.actions';\nimport { switchMap, takeUntil, filter, delay, tap } from 'rxjs/operators';\nimport { Component, OnInit, OnDestroy } from '@angular/core';\nimport { FormState } from '@front-office/store/states/form.state';\nimport {\n BasicForm,\n FormsDividedByStatusOutput\n} from '@front-office/models/forms-with-status.model';\nimport { Actions, ofActionDispatched, Select, Store } from '@ngxs/store';\nimport { Observable, Subject } from 'rxjs';\nimport { LoadFormListForUser } from '@front-office/store/actions/form.actions';\nimport { MatDialogRef } from '@angular/material/dialog';\nimport * as _ from 'node_modules/lodash';\n\n@Component({\n selector: 'app-import-data',\n templateUrl: './import-data.component.html',\n styleUrls: ['./import-data.component.scss']\n})\nexport class ImportDataComponent implements OnInit, OnDestroy {\n @Select(FormState.availableForms)\n forms$: Observable<FormsDividedByStatusOutput>;\n\n selectedFormId: string;\n destroy$ = new Subject();\n completedForms: BasicForm[] = [];\n loading: boolean;\n\n constructor(\n private store: Store,\n private dialogRef: MatDialogRef<ImportDataComponent>,\n private actions$: Actions\n ) {}\n\n ngOnInit(): void {\n this.actions$\n .pipe(\n takeUntil(this.destroy$),\n ofActionDispatched(\n LoadFormListForUserSuccess,\n LoadFormListForUserFailed\n )\n )\n .subscribe(() => (this.loading = false));\n\n this.actions$\n .pipe(takeUntil(this.destroy$), ofActionDispatched(LoadFormListForUser))\n .subscribe(() => (this.loading = true));\n\n this.store.dispatch(new LoadFormListForUser());\n\n this.forms$\n .pipe(\n takeUntil(this.destroy$),\n filter((x) => !!x),\n switchMap(({ approved, submitted }) => [approved, submitted])\n )\n .subscribe((completedForms) => {\n const f: BasicForm[] = _.cloneDeep(completedForms).sort((a: BasicForm, b: BasicForm) =>\n a.eventStartDate > b.eventStartDate ? -1 : a.eventStartDate < b.eventStartDate ? 1 : 0);\n this.completedForms = f;\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n onClick(event: string) {\n this.selectedFormId = event;\n }\n\n confirmImport() {\n this.dialogRef.close(this.selectedFormId);\n }\n}\n","import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function skipUntil(notifier) {\n return (source) => source.lift(new SkipUntilOperator(notifier));\n}\nclass SkipUntilOperator {\n constructor(notifier) {\n this.notifier = notifier;\n }\n call(destination, source) {\n return source.subscribe(new SkipUntilSubscriber(destination, this.notifier));\n }\n}\nclass SkipUntilSubscriber extends SimpleOuterSubscriber {\n constructor(destination, notifier) {\n super(destination);\n this.hasValue = false;\n const innerSubscriber = new SimpleInnerSubscriber(this);\n this.add(innerSubscriber);\n this.innerSubscription = innerSubscriber;\n const innerSubscription = innerSubscribe(notifier, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n this.add(innerSubscription);\n this.innerSubscription = innerSubscription;\n }\n }\n _next(value) {\n if (this.hasValue) {\n super._next(value);\n }\n }\n notifyNext() {\n this.hasValue = true;\n if (this.innerSubscription) {\n this.innerSubscription.unsubscribe();\n }\n }\n notifyComplete() {\n }\n}\n","import { FormArray } from '@angular/forms';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FormAppereanceService {\n constructor() {}\n\n disableAllNotPdsControls(form: any) {\n setTimeout(() => {\n if (form.controls.length > 0) {\n for (let i = 0; i < form.controls.length; i++) {\n const controlNamesToDisable = Object.keys(\n form.controls[i].controls\n ).filter(\n (controlName) =>\n controlName === 'name' ||\n controlName === 'surname' ||\n controlName === 'dob'\n );\n controlNamesToDisable.forEach((name) =>\n form.controls[i].controls[name].disable()\n );\n }\n }\n }, 0);\n }\n\n disableAllFields(form: any) {\n setTimeout(() => {\n if (form.controls.length > 0) {\n // tslint:disable-next-line: prefer-for-of\n for (let i = 0; i < form.controls.length; i++) {\n const controlNamesToDisable = Object.keys(form.controls[i].controls);\n controlNamesToDisable.forEach((name) =>\n form.controls[i].controls[name].disable()\n );\n }\n }\n }, 0);\n }\n\n enableAllFields(form: any) {\n setTimeout(() => {\n if (form.controls.length > 0) {\n // tslint:disable-next-line: prefer-for-of\n for (let i = 0; i < form.controls.length; i++) {\n const controlNamesToDisable = Object.keys(form.controls[i].controls);\n controlNamesToDisable.forEach((name) =>\n form.controls[i].controls[name].enable()\n );\n }\n }\n }, 0);\n }\n\n enableAllControls(form: FormArray) {\n setTimeout(() => {\n if (form.controls.length > 0) {\n form.controls.forEach((control) => control.enable());\n }\n }, 0);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n \n@Injectable({\n providedIn: 'root'\n})\nexport class IdScanningSkipEventService {\n\n navigateToMainForm: BehaviorSubject<boolean>;\n shouldSkip: BehaviorSubject<boolean>;\n constructor() {\n this.shouldSkip = new BehaviorSubject(false);\n this.navigateToMainForm = new BehaviorSubject(false);;\n }\n \n skip() {\n this.shouldSkip.next(true);\n }\n\n reset() {\n this.shouldSkip.next(false);\n }\n\n navigateToForm(){\n this.navigateToMainForm.next(true);\n }\n resetNavigateToForm(){\n this.navigateToMainForm.next(false);\n }\n}","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { DOCUMENT, CommonModule } from '@angular/common';\nimport { debounceTime, switchMap, distinctUntilChanged, take, startWith } from 'rxjs/operators';\nimport { Injectable, InjectionToken, NgModule, ANALYZE_FOR_ENTRY_COMPONENTS, Inject, Optional, Component, Input, ChangeDetectionStrategy, EventEmitter, Output, Attribute, ViewChild, ElementRef, NgZone, ViewContainerRef, ComponentFactoryResolver, Renderer2, Directive, Injector, ChangeDetectorRef, defineInjectable, inject, INJECTOR } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { __rest } from 'tslib';\nimport { AbstractControl, FormGroup, FormGroupDirective, FormControl, FormArray, Validators } from '@angular/forms';\nimport { isObservable, Subject, of, Observable } from 'rxjs';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} formId\n * @param {?} field\n * @param {?} index\n * @return {?}\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/forms';\nimport * as ɵngcc2 from '@angular/common';\nimport * as ɵngcc3 from '@angular/platform-browser';\n\nconst _c0 = [\"content\"];\nfunction FormlyForm_formly_field_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"formly-field\", 2);\n} if (rf & 2) {\n const field_r2 = ctx.$implicit;\n ɵngcc0.ɵɵproperty(\"form\", field_r2.form)(\"options\", field_r2.options)(\"model\", field_r2.model)(\"field\", field_r2);\n} }\nconst _c1 = [\"*\"];\nconst _c2 = [\"container\"];\nfunction FormlyField_ng_template_0_Template(rf, ctx) { }\nconst _c3 = [\"fieldComponent\"];\nfunction FormlyGroup_formly_field_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"formly-field\", 1);\n} if (rf & 2) {\n const f_r1 = ctx.$implicit;\n ɵngcc0.ɵɵproperty(\"field\", f_r1);\n} }\nfunction getFieldId(formId, field, index) {\n if (field.id)\n return field.id;\n /** @type {?} */\n let type = field.type;\n if (!type && field.template)\n type = 'template';\n return [formId, type, field.key, index].join('_');\n}\n/**\n * @param {?} field\n * @return {?}\n */\nfunction getKeyPath(field) {\n if (!field.key) {\n return [];\n }\n /* We store the keyPath in the field for performance reasons. This function will be called frequently. */\n if (!field._keyPath || field._keyPath.key !== field.key) {\n /** @type {?} */\n const key = field.key.indexOf('[') === -1\n ? field.key\n : field.key.replace(/\\[(\\w+)\\]/g, '.$1');\n field._keyPath = { key: field.key, path: key.indexOf('.') !== -1 ? key.split('.') : [key] };\n }\n return field._keyPath.path.slice(0);\n}\n/** @type {?} */\nconst FORMLY_VALIDATORS = ['required', 'pattern', 'minLength', 'maxLength', 'min', 'max'];\n/**\n * @param {?} field\n * @param {?} value\n * @return {?}\n */\nfunction assignFieldValue(field, value) {\n /** @type {?} */\n let paths = getKeyPath(field);\n while (field.parent) {\n field = field.parent;\n paths = [...getKeyPath(field), ...paths];\n }\n if (value == null && field['autoClear'] && !field.formControl.parent) {\n /** @type {?} */\n const k = paths.pop();\n /** @type {?} */\n const m = paths.reduce((/**\n * @param {?} model\n * @param {?} path\n * @return {?}\n */\n (model, path) => model[path] || {}), field.parent.model);\n delete m[k];\n return;\n }\n assignModelValue(field.model, paths, value);\n}\n/**\n * @param {?} model\n * @param {?} paths\n * @param {?} value\n * @return {?}\n */\nfunction assignModelValue(model, paths, value) {\n for (let i = 0; i < (paths.length - 1); i++) {\n /** @type {?} */\n const path = paths[i];\n if (!model[path] || !isObject(model[path])) {\n model[path] = /^\\d+$/.test(paths[i + 1]) ? [] : {};\n }\n model = model[path];\n }\n model[paths[paths.length - 1]] = clone(value);\n}\n/**\n * @param {?} field\n * @return {?}\n */\nfunction getFieldInitialValue(field) {\n /** @type {?} */\n let value = field.options['_initialModel'];\n /** @type {?} */\n let paths = getKeyPath(field);\n while (field.parent) {\n field = field.parent;\n paths = [...getKeyPath(field), ...paths];\n }\n for (const path of paths) {\n if (!value) {\n return undefined;\n }\n value = value[path];\n }\n return value;\n}\n/**\n * @param {?} field\n * @return {?}\n */\nfunction getFieldValue(field) {\n /** @type {?} */\n let model = field.parent.model;\n for (const path of getKeyPath(field)) {\n if (!model) {\n return model;\n }\n model = model[path];\n }\n return model;\n}\n/**\n * @param {?} dest\n * @param {...?} args\n * @return {?}\n */\nfunction reverseDeepMerge(dest, ...args) {\n args.forEach((/**\n * @param {?} src\n * @return {?}\n */\n src => {\n for (let srcArg in src) {\n if (isNullOrUndefined(dest[srcArg]) || isBlankString(dest[srcArg])) {\n dest[srcArg] = clone(src[srcArg]);\n }\n else if (objAndSameType(dest[srcArg], src[srcArg])) {\n reverseDeepMerge(dest[srcArg], src[srcArg]);\n }\n }\n }));\n return dest;\n}\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isNullOrUndefined(value) {\n return value === undefined || value === null;\n}\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isBlankString(value) {\n return value === '';\n}\n/**\n * @param {?} value\n * @return {?}\n */\nfunction isFunction(value) {\n return typeof (value) === 'function';\n}\n/**\n * @param {?} obj1\n * @param {?} obj2\n * @return {?}\n */\nfunction objAndSameType(obj1, obj2) {\n return isObject(obj1) && isObject(obj2)\n && Object.getPrototypeOf(obj1) === Object.getPrototypeOf(obj2)\n && !(Array.isArray(obj1) || Array.isArray(obj2));\n}\n/**\n * @param {?} x\n * @return {?}\n */\nfunction isObject(x) {\n return x != null && typeof x === 'object';\n}\n/**\n * @param {?} obj\n * @return {?}\n */\nfunction isPromise(obj) {\n return !!obj && typeof obj.then === 'function';\n}\n/**\n * @param {?} value\n * @return {?}\n */\nfunction clone(value) {\n if (!isObject(value)\n || isObservable(value)\n || /* instanceof SafeHtmlImpl */ value.changingThisBreaksApplicationSecurity\n || ['RegExp', 'FileList', 'File', 'Blob'].indexOf(value.constructor.name) !== -1) {\n return value;\n }\n // https://github.com/moment/moment/blob/master/moment.js#L252\n if (value._isAMomentObject && isFunction(value.clone)) {\n return value.clone();\n }\n if (value instanceof AbstractControl) {\n return null;\n }\n if (value instanceof Date) {\n return new Date(value.getTime());\n }\n if (Array.isArray(value)) {\n return value.slice(0).map((/**\n * @param {?} v\n * @return {?}\n */\n v => clone(v)));\n }\n // best way to clone a js object maybe\n // https://stackoverflow.com/questions/41474986/how-to-clone-a-javascript-es6-class-instance\n /** @type {?} */\n const proto = Object.getPrototypeOf(value);\n /** @type {?} */\n let c = Object.create(proto);\n c = Object.setPrototypeOf(c, proto);\n // need to make a deep copy so we dont use Object.assign\n // also Object.assign wont copy property descriptor exactly\n return Object.keys(value).reduce((/**\n * @param {?} newVal\n * @param {?} prop\n * @return {?}\n */\n (newVal, prop) => {\n /** @type {?} */\n const propDesc = Object.getOwnPropertyDescriptor(value, prop);\n if (propDesc.get) {\n Object.defineProperty(newVal, prop, propDesc);\n }\n else {\n newVal[prop] = clone(value[prop]);\n }\n return newVal;\n }), c);\n}\n/**\n * @param {?} field\n * @param {?} prop\n * @param {?} defaultValue\n * @return {?}\n */\nfunction defineHiddenProp(field, prop, defaultValue) {\n Object.defineProperty(field, prop, { enumerable: false, writable: true, configurable: true });\n field[prop] = defaultValue;\n}\n/**\n * @template T\n * @param {?} o\n * @param {?} prop\n * @param {?} setFn\n * @return {?}\n */\nfunction wrapProperty(o, prop, setFn) {\n if (!o._observers) {\n defineHiddenProp(o, '_observers', {});\n }\n if (!o._observers[prop]) {\n o._observers[prop] = [];\n }\n /** @type {?} */\n let fns = o._observers[prop];\n if (fns.indexOf(setFn) === -1) {\n fns.push(setFn);\n setFn({ currentValue: o[prop], firstChange: true });\n if (fns.length === 1) {\n defineHiddenProp(o, `___$${prop}`, o[prop]);\n Object.defineProperty(o, prop, {\n configurable: true,\n get: (/**\n * @return {?}\n */\n () => o[`___$${prop}`]),\n set: (/**\n * @param {?} currentValue\n * @return {?}\n */\n currentValue => {\n if (currentValue !== o[`___$${prop}`]) {\n /** @type {?} */\n const previousValue = o[`___$${prop}`];\n o[`___$${prop}`] = currentValue;\n fns.forEach((/**\n * @param {?} changeFn\n * @return {?}\n */\n changeFn => changeFn({ previousValue, currentValue, firstChange: false })));\n }\n }),\n });\n }\n }\n return (/**\n * @return {?}\n */\n () => fns.splice(fns.indexOf(setFn), 1));\n}\n/**\n * @param {?} form\n * @param {?} action\n * @return {?}\n */\nfunction reduceFormUpdateValidityCalls(form, action) {\n /** @type {?} */\n const updateValidity = form._updateTreeValidity.bind(form);\n /** @type {?} */\n let updateValidityArgs = null;\n form._updateTreeValidity = (/**\n * @param {...?} args\n * @return {?}\n */\n (...args) => updateValidityArgs = args);\n action();\n updateValidityArgs && updateValidity(updateValidityArgs);\n form._updateTreeValidity = updateValidity;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/** @type {?} */\nconst FORMLY_CONFIG = new InjectionToken('FORMLY_CONFIG');\n/**\n * Maintains list of formly field directive types. This can be used to register new field templates.\n */\nclass FormlyConfig {\n constructor() {\n this.types = {};\n this.validators = {};\n this.wrappers = {};\n this.messages = {};\n this.templateManipulators = {\n preWrapper: [],\n postWrapper: [],\n };\n this.extras = {\n checkExpressionOn: 'changeDetectionCheck',\n showError: (/**\n * @param {?} field\n * @return {?}\n */\n function (field) {\n return field.formControl && field.formControl.invalid && (field.formControl.touched || (field.options.parentForm && field.options.parentForm.submitted) || !!(field.field.validation && field.field.validation.show));\n }),\n };\n this.extensions = {};\n }\n /**\n * @param {?} config\n * @return {?}\n */\n addConfig(config) {\n if (config.types) {\n config.types.forEach((/**\n * @param {?} type\n * @return {?}\n */\n type => this.setType(type)));\n }\n if (config.validators) {\n config.validators.forEach((/**\n * @param {?} validator\n * @return {?}\n */\n validator => this.setValidator(validator)));\n }\n if (config.wrappers) {\n config.wrappers.forEach((/**\n * @param {?} wrapper\n * @return {?}\n */\n wrapper => this.setWrapper(wrapper)));\n }\n if (config.manipulators) {\n console.warn(`NgxFormly: passing 'manipulators' config is deprecated, use custom extension instead.`);\n config.manipulators.forEach((/**\n * @param {?} manipulator\n * @return {?}\n */\n manipulator => this.setManipulator(manipulator)));\n }\n if (config.validationMessages) {\n config.validationMessages.forEach((/**\n * @param {?} validation\n * @return {?}\n */\n validation => this.addValidatorMessage(validation.name, validation.message)));\n }\n if (config.extensions) {\n config.extensions.forEach((/**\n * @param {?} c\n * @return {?}\n */\n c => this.extensions[c.name] = c.extension));\n }\n if (config.extras) {\n this.extras = Object.assign({}, this.extras, config.extras);\n }\n }\n /**\n * @param {?} options\n * @return {?}\n */\n setType(options) {\n if (Array.isArray(options)) {\n options.forEach((/**\n * @param {?} option\n * @return {?}\n */\n (option) => this.setType(option)));\n }\n else {\n if (!this.types[options.name]) {\n this.types[options.name] = (/** @type {?} */ ({ name: options.name }));\n }\n ['component', 'extends', 'defaultOptions'].forEach((/**\n * @param {?} prop\n * @return {?}\n */\n prop => {\n if (options.hasOwnProperty(prop)) {\n this.types[options.name][prop] = options[prop];\n }\n }));\n if (options.wrappers) {\n options.wrappers.forEach((/**\n * @param {?} wrapper\n * @return {?}\n */\n (wrapper) => this.setTypeWrapper(options.name, wrapper)));\n }\n }\n }\n /**\n * @param {?} name\n * @return {?}\n */\n getType(name) {\n if (!this.types[name]) {\n throw new Error(`[Formly Error] The type \"${name}\" could not be found. Please make sure that is registered through the FormlyModule declaration.`);\n }\n this.mergeExtendedType(name);\n return this.types[name];\n }\n /**\n * @param {?=} field\n * @return {?}\n */\n getMergedField(field = {}) {\n /** @type {?} */\n const type = this.getType(field.type);\n if (type.defaultOptions) {\n reverseDeepMerge(field, type.defaultOptions);\n }\n /** @type {?} */\n const extendDefaults = type.extends && this.getType(type.extends).defaultOptions;\n if (extendDefaults) {\n reverseDeepMerge(field, extendDefaults);\n }\n if (field && field.optionsTypes) {\n field.optionsTypes.forEach((/**\n * @param {?} option\n * @return {?}\n */\n option => {\n /** @type {?} */\n const defaultOptions = this.getType(option).defaultOptions;\n if (defaultOptions) {\n reverseDeepMerge(field, defaultOptions);\n }\n }));\n }\n /** @type {?} */\n const componentRef = this.resolveFieldTypeRef(field);\n if (componentRef && componentRef.instance && componentRef.instance.defaultOptions) {\n reverseDeepMerge(field, componentRef.instance.defaultOptions);\n }\n if (!field.wrappers && type.wrappers) {\n field.wrappers = [...type.wrappers];\n }\n }\n /**\n * \\@internal\n * @param {?=} field\n * @return {?}\n */\n resolveFieldTypeRef(field = {}) {\n if (!field.type) {\n return null;\n }\n /** @type {?} */\n const type = this.getType(field.type);\n if (!type.component || type['_componentRef']) {\n return type['_componentRef'];\n }\n const { _resolver, _injector } = field.parent.options;\n defineHiddenProp(type, '_componentRef', _resolver.resolveComponentFactory(type.component).create(_injector));\n return type['_componentRef'];\n }\n /**\n * @param {?} options\n * @return {?}\n */\n setWrapper(options) {\n this.wrappers[options.name] = options;\n if (options.types) {\n options.types.forEach((/**\n * @param {?} type\n * @return {?}\n */\n (type) => {\n this.setTypeWrapper(type, options.name);\n }));\n }\n }\n /**\n * @param {?} name\n * @return {?}\n */\n getWrapper(name) {\n if (!this.wrappers[name]) {\n throw new Error(`[Formly Error] The wrapper \"${name}\" could not be found. Please make sure that is registered through the FormlyModule declaration.`);\n }\n return this.wrappers[name];\n }\n /**\n * @param {?} type\n * @param {?} name\n * @return {?}\n */\n setTypeWrapper(type, name) {\n if (!this.types[type]) {\n this.types[type] = (/** @type {?} */ ({}));\n }\n if (!this.types[type].wrappers) {\n this.types[type].wrappers = [];\n }\n if (this.types[type].wrappers.indexOf(name) === -1) {\n this.types[type].wrappers.push(name);\n }\n }\n /**\n * @param {?} options\n * @return {?}\n */\n setValidator(options) {\n this.validators[options.name] = options;\n }\n /**\n * @param {?} name\n * @return {?}\n */\n getValidator(name) {\n if (!this.validators[name]) {\n throw new Error(`[Formly Error] The validator \"${name}\" could not be found. Please make sure that is registered through the FormlyModule declaration.`);\n }\n return this.validators[name];\n }\n /**\n * @param {?} name\n * @param {?} message\n * @return {?}\n */\n addValidatorMessage(name, message) {\n this.messages[name] = message;\n }\n /**\n * @param {?} name\n * @return {?}\n */\n getValidatorMessage(name) {\n return this.messages[name];\n }\n /**\n * @param {?} manipulator\n * @return {?}\n */\n setManipulator(manipulator) {\n new manipulator.class()[manipulator.method](this);\n }\n /**\n * @private\n * @param {?} name\n * @return {?}\n */\n mergeExtendedType(name) {\n if (!this.types[name].extends) {\n return;\n }\n /** @type {?} */\n const extendedType = this.getType(this.types[name].extends);\n if (!this.types[name].component) {\n this.types[name].component = extendedType.component;\n }\n if (!this.types[name].wrappers) {\n this.types[name].wrappers = extendedType.wrappers;\n }\n }\n}\nFormlyConfig.ɵfac = function FormlyConfig_Factory(t) { return new (t || FormlyConfig)(); };\nFormlyConfig.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: FormlyConfig, factory: FormlyConfig.ɵfac, providedIn: 'root' });\n/** @nocollapse */ FormlyConfig.ngInjectableDef = defineInjectable({ factory: function FormlyConfig_Factory() { return new FormlyConfig(); }, token: FormlyConfig, providedIn: \"root\" });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyConfig, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], function () { return []; }, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyFormBuilder {\n /**\n * @param {?} formlyConfig\n * @param {?} componentFactoryResolver\n * @param {?} injector\n */\n constructor(formlyConfig, componentFactoryResolver, injector) {\n this.formlyConfig = formlyConfig;\n this.componentFactoryResolver = componentFactoryResolver;\n this.injector = injector;\n }\n /**\n * @param {?} formControl\n * @param {?=} fieldGroup\n * @param {?=} model\n * @param {?=} options\n * @return {?}\n */\n buildForm(formControl, fieldGroup = [], model, options) {\n if (!this.formlyConfig.extensions.core) {\n throw new Error('NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.');\n }\n /** @type {?} */\n const field = { fieldGroup, model, formControl, options: this._setOptions(options) };\n reduceFormUpdateValidityCalls(formControl, (/**\n * @return {?}\n */\n () => this._buildForm(field)));\n field.options._checkField(field, true);\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n _buildForm(field) {\n this.getExtensions().forEach((/**\n * @param {?} extension\n * @return {?}\n */\n extension => extension.prePopulate && extension.prePopulate(field)));\n this.getExtensions().forEach((/**\n * @param {?} extension\n * @return {?}\n */\n extension => extension.onPopulate && extension.onPopulate(field)));\n if (field.fieldGroup) {\n field.fieldGroup.forEach((/**\n * @param {?} f\n * @return {?}\n */\n (f) => this._buildForm(f)));\n }\n this.getExtensions().forEach((/**\n * @param {?} extension\n * @return {?}\n */\n extension => extension.postPopulate && extension.postPopulate(field)));\n }\n /**\n * @private\n * @return {?}\n */\n getExtensions() {\n return Object.keys(this.formlyConfig.extensions).map((/**\n * @param {?} name\n * @return {?}\n */\n name => this.formlyConfig.extensions[name]));\n }\n /**\n * @private\n * @param {?} options\n * @return {?}\n */\n _setOptions(options) {\n options = options || {};\n options.formState = options.formState || {};\n if (!options.showError) {\n options.showError = this.formlyConfig.extras.showError;\n }\n if (!options.fieldChanges) {\n defineHiddenProp(options, 'fieldChanges', new Subject());\n }\n if (!options._resolver) {\n defineHiddenProp(options, '_resolver', this.componentFactoryResolver);\n }\n if (!options._injector) {\n defineHiddenProp(options, '_injector', this.injector);\n }\n if (!options._hiddenFieldsForCheck) {\n options._hiddenFieldsForCheck = [];\n }\n if (!options._markForCheck) {\n options._markForCheck = (/**\n * @param {?} field\n * @return {?}\n */\n (field) => {\n if (field._componentRefs) {\n field._componentRefs.forEach((/**\n * @param {?} ref\n * @return {?}\n */\n ref => {\n // NOTE: we cannot use ref.changeDetectorRef, see https://github.com/ngx-formly/ngx-formly/issues/2191\n /** @type {?} */\n const changeDetectorRef = ref.injector.get(ChangeDetectorRef);\n changeDetectorRef.markForCheck();\n }));\n }\n if (field.fieldGroup) {\n field.fieldGroup.forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => options._markForCheck(f)));\n }\n });\n }\n return options;\n }\n}\nFormlyFormBuilder.ɵfac = function FormlyFormBuilder_Factory(t) { return new (t || FormlyFormBuilder)(ɵngcc0.ɵɵinject(FormlyConfig), ɵngcc0.ɵɵinject(ɵngcc0.ComponentFactoryResolver), ɵngcc0.ɵɵinject(ɵngcc0.Injector)); };\nFormlyFormBuilder.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: FormlyFormBuilder, factory: FormlyFormBuilder.ɵfac, providedIn: 'root' });\n/** @nocollapse */\nFormlyFormBuilder.ctorParameters = () => [\n { type: FormlyConfig },\n { type: ComponentFactoryResolver },\n { type: Injector }\n];\n/** @nocollapse */ FormlyFormBuilder.ngInjectableDef = defineInjectable({ factory: function FormlyFormBuilder_Factory() { return new FormlyFormBuilder(inject(FormlyConfig), inject(ComponentFactoryResolver), inject(INJECTOR)); }, token: FormlyFormBuilder, providedIn: \"root\" });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFormBuilder, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], function () { return [{ type: FormlyConfig }, { type: ɵngcc0.ComponentFactoryResolver }, { type: ɵngcc0.Injector }]; }, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyForm {\n /**\n * @param {?} formlyBuilder\n * @param {?} formlyConfig\n * @param {?} ngZone\n * @param {?} immutable\n * @param {?} parentFormGroup\n */\n constructor(formlyBuilder, formlyConfig, ngZone, \n // tslint:disable-next-line\n immutable, parentFormGroup) {\n this.formlyBuilder = formlyBuilder;\n this.formlyConfig = formlyConfig;\n this.ngZone = ngZone;\n this.parentFormGroup = parentFormGroup;\n this.modelChange = new EventEmitter();\n this.immutable = false;\n this._modelChangeValue = {};\n this.modelChangeSubs = [];\n this.modelChange$ = new Subject();\n this.modelChangeSub = this.modelChange$.pipe(switchMap((/**\n * @return {?}\n */\n () => this.ngZone.onStable.asObservable().pipe(take(1))))).subscribe((/**\n * @return {?}\n */\n () => this.ngZone.runGuarded((/**\n * @return {?}\n */\n () => {\n // runGuarded is used to keep the expression changes in-sync\n // https://github.com/ngx-formly/ngx-formly/issues/2095\n this.checkExpressionChange();\n this.modelChange.emit(this._modelChangeValue = clone(this.model));\n }))));\n if (immutable !== null) {\n console.warn(`NgxFormly: passing 'immutable' attribute to 'formly-form' component is deprecated since v5.5, enable immutable mode through NgModule declaration instead.`);\n }\n this.immutable = (immutable !== null) || !!formlyConfig.extras.immutable;\n }\n /**\n * @param {?} model\n * @return {?}\n */\n set model(model) { this._model = this.immutable ? clone(model) : model; }\n /**\n * @return {?}\n */\n get model() { return this._model || {}; }\n /**\n * @param {?} fields\n * @return {?}\n */\n set fields(fields) { this._fields = this.immutable ? clone(fields) : fields; }\n /**\n * @return {?}\n */\n get fields() { return this._fields || []; }\n /**\n * @param {?} options\n * @return {?}\n */\n set options(options) { this._options = this.immutable ? clone(options) : options; }\n /**\n * @return {?}\n */\n get options() { return this._options; }\n /**\n * @param {?} content\n * @return {?}\n */\n set content(content) {\n if (content && content.nativeElement.nextSibling) {\n console.warn(`NgxFormly: content projection for 'formly-form' component is deprecated since v5.5, you should avoid passing content inside the 'formly-form' tag.`);\n }\n }\n /**\n * @return {?}\n */\n ngDoCheck() {\n if (this.formlyConfig.extras.checkExpressionOn === 'changeDetectionCheck') {\n this.checkExpressionChange();\n }\n }\n /**\n * @param {?} changes\n * @return {?}\n */\n ngOnChanges(changes) {\n // https://github.com/ngx-formly/ngx-formly/issues/2294\n if (changes.model && this.field) {\n this.field.model = this.model;\n }\n if (changes.fields || changes.form || (changes.model && this._modelChangeValue !== changes.model.currentValue)) {\n this.form = this.form || (new FormGroup({}));\n this.setOptions();\n this.options.updateInitialValue();\n this.clearModelSubscriptions();\n this.formlyBuilder.buildForm(this.form, this.fields, this.model, this.options);\n this.trackModelChanges(this.fields);\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this.modelChangeSub.unsubscribe();\n this.clearModelSubscriptions();\n }\n /**\n * @param {?} __0\n * @return {?}\n */\n changeModel({ key, value, field }) {\n assignFieldValue(field, value);\n this.modelChange$.next();\n }\n /**\n * @return {?}\n */\n setOptions() {\n if (!this.options) {\n this.options = {};\n }\n if (!this.options.resetModel) {\n this.options.resetModel = (/**\n * @param {?=} model\n * @return {?}\n */\n (model) => {\n model = clone(isNullOrUndefined(model) ? ((/** @type {?} */ (this.options)))._initialModel : model);\n if (this.model) {\n Object.keys(this.model).forEach((/**\n * @param {?} k\n * @return {?}\n */\n k => delete this.model[k]));\n Object.assign(this.model, model || {});\n }\n ((/** @type {?} */ (this.options)))._buildForm();\n // we should call `NgForm::resetForm` to ensure changing `submitted` state after resetting form\n // but only when the current component is a root one.\n if (this.options.parentForm && this.options.parentForm.control === this.form) {\n this.options.parentForm.resetForm(model);\n }\n else {\n this.form.reset(model);\n }\n });\n }\n if (!this.options.parentForm && this.parentFormGroup) {\n defineHiddenProp(this.options, 'parentForm', this.parentFormGroup);\n wrapProperty(this.options.parentForm, 'submitted', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ firstChange }) => {\n if (!firstChange) {\n this.checkExpressionChange();\n ((/** @type {?} */ (this.options)))._markForCheck({\n fieldGroup: this.fields,\n model: this.model,\n formControl: this.form,\n options: this.options,\n });\n }\n }));\n }\n if (!this.options.updateInitialValue) {\n this.options.updateInitialValue = (/**\n * @return {?}\n */\n () => ((/** @type {?} */ (this.options)))._initialModel = clone(this.model));\n }\n if (!((/** @type {?} */ (this.options)))._buildForm) {\n ((/** @type {?} */ (this.options)))._buildForm = (/**\n * @param {?=} emitModelChange\n * @return {?}\n */\n (emitModelChange = false) => {\n this.clearModelSubscriptions();\n this.formlyBuilder.buildForm(this.form, this.fields, this.model, this.options);\n this.trackModelChanges(this.fields);\n if (emitModelChange) {\n this.modelChange.emit(this._modelChangeValue = clone(this.model));\n }\n });\n }\n }\n /**\n * @private\n * @return {?}\n */\n checkExpressionChange() {\n if (this.options && ((/** @type {?} */ (this.options)))._checkField) {\n ((/** @type {?} */ (this.options)))._checkField({\n fieldGroup: this.fields,\n model: this.model,\n formControl: this.form,\n options: this.options,\n });\n }\n }\n /**\n * @private\n * @param {?} fields\n * @param {?=} rootKey\n * @return {?}\n */\n trackModelChanges(fields, rootKey = []) {\n fields.forEach((/**\n * @param {?} field\n * @return {?}\n */\n field => {\n if (field.key && !field.fieldGroup) {\n /** @type {?} */\n const control = field.formControl;\n /** @type {?} */\n let valueChanges = control.valueChanges.pipe(distinctUntilChanged());\n const { updateOn, debounce } = field.modelOptions;\n if ((!updateOn || updateOn === 'change') && debounce && debounce.default > 0) {\n valueChanges = control.valueChanges.pipe(debounceTime(debounce.default));\n }\n this.modelChangeSubs.push(valueChanges.subscribe((/**\n * @param {?} value\n * @return {?}\n */\n (value) => {\n // workaround for https://github.com/angular/angular/issues/13792\n if (control instanceof FormControl && control['_fields'] && control['_fields'].length > 1) {\n control.patchValue(value, { emitEvent: false, onlySelf: true });\n }\n if (field.parsers && field.parsers.length > 0) {\n field.parsers.forEach((/**\n * @param {?} parserFn\n * @return {?}\n */\n parserFn => value = parserFn(value)));\n }\n this.changeModel({ key: [...rootKey, ...getKeyPath(field)].join('.'), value, field });\n })));\n // workaround for v5 (https://github.com/ngx-formly/ngx-formly/issues/2061)\n /** @type {?} */\n const observers = control.valueChanges['observers'];\n if (observers && observers.length > 1) {\n observers.unshift(observers.pop());\n }\n }\n if (field.fieldGroup && field.fieldGroup.length > 0) {\n this.trackModelChanges(field.fieldGroup, field.key ? [...rootKey, ...getKeyPath(field)] : rootKey);\n }\n }));\n }\n /**\n * @private\n * @return {?}\n */\n clearModelSubscriptions() {\n this.modelChangeSubs.forEach((/**\n * @param {?} sub\n * @return {?}\n */\n sub => sub.unsubscribe()));\n this.modelChangeSubs = [];\n }\n /**\n * @private\n * @return {?}\n */\n get field() {\n return this.fields && this.fields[0] && this.fields[0].parent;\n }\n}\nFormlyForm.ɵfac = function FormlyForm_Factory(t) { return new (t || FormlyForm)(ɵngcc0.ɵɵdirectiveInject(FormlyFormBuilder), ɵngcc0.ɵɵdirectiveInject(FormlyConfig), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.NgZone), ɵngcc0.ɵɵinjectAttribute('immutable'), ɵngcc0.ɵɵdirectiveInject(ɵngcc1.FormGroupDirective, 8)); };\nFormlyForm.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyForm, selectors: [[\"formly-form\"]], viewQuery: function FormlyForm_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c0, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.content = _t.first);\n } }, inputs: { model: \"model\", fields: \"fields\", options: \"options\", form: \"form\" }, outputs: { modelChange: \"modelChange\" }, features: [ɵngcc0.ɵɵProvidersFeature([FormlyFormBuilder]), ɵngcc0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1, decls: 4, vars: 1, consts: [[\"hide-deprecation\", \"\", 3, \"form\", \"options\", \"model\", \"field\", 4, \"ngFor\", \"ngForOf\"], [\"content\", \"\"], [\"hide-deprecation\", \"\", 3, \"form\", \"options\", \"model\", \"field\"]], template: function FormlyForm_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵprojectionDef();\n ɵngcc0.ɵɵtemplate(0, FormlyForm_formly_field_0_Template, 1, 4, \"formly-field\", 0);\n ɵngcc0.ɵɵelementContainerStart(1, null, 1);\n ɵngcc0.ɵɵprojection(3);\n ɵngcc0.ɵɵelementContainerEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.fields);\n } }, directives: function () { return [ɵngcc2.NgForOf, FormlyField]; }, encapsulation: 2 });\n/** @nocollapse */\nFormlyForm.ctorParameters = () => [\n { type: FormlyFormBuilder },\n { type: FormlyConfig },\n { type: NgZone },\n { type: undefined, decorators: [{ type: Attribute, args: ['immutable',] }] },\n { type: FormGroupDirective, decorators: [{ type: Optional }] }\n];\nFormlyForm.propDecorators = {\n form: [{ type: Input }],\n model: [{ type: Input }],\n fields: [{ type: Input }],\n options: [{ type: Input }],\n modelChange: [{ type: Output }],\n content: [{ type: ViewChild, args: ['content',] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyForm, [{\n type: Component,\n args: [{\n selector: 'formly-form',\n template: `\n <formly-field *ngFor=\"let field of fields\"\n hide-deprecation\n [form]=\"field.form\"\n [options]=\"field.options\"\n [model]=\"field.model\"\n [field]=\"field\">\n </formly-field>\n <ng-container #content>\n <ng-content></ng-content>\n </ng-container>\n `,\n providers: [FormlyFormBuilder]\n }]\n }], function () { return [{ type: FormlyFormBuilder }, { type: FormlyConfig }, { type: ɵngcc0.NgZone }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['immutable']\n }] }, { type: ɵngcc1.FormGroupDirective, decorators: [{\n type: Optional\n }] }]; }, { modelChange: [{\n type: Output\n }], model: [{\n type: Input\n }], fields: [{\n type: Input\n }], options: [{\n type: Input\n }], content: [{\n type: ViewChild,\n args: ['content']\n }], form: [{\n type: Input\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyField {\n /**\n * @param {?} formlyConfig\n * @param {?} renderer\n * @param {?} resolver\n * @param {?} elementRef\n * @param {?} hideDeprecation\n */\n constructor(formlyConfig, renderer, resolver, elementRef, \n // tslint:disable-next-line\n hideDeprecation) {\n this.formlyConfig = formlyConfig;\n this.renderer = renderer;\n this.resolver = resolver;\n this.elementRef = elementRef;\n this.warnDeprecation = false;\n this.modelChange = new EventEmitter();\n this.hostObservers = [];\n this.componentRefs = [];\n this.hooksObservers = [];\n this.warnDeprecation = hideDeprecation === null;\n }\n /**\n * @param {?} m\n * @return {?}\n */\n set model(m) {\n this.warnDeprecation && console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`);\n }\n /**\n * @param {?} form\n * @return {?}\n */\n set form(form) {\n this.warnDeprecation && console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`);\n }\n /**\n * @param {?} options\n * @return {?}\n */\n set options(options) {\n this.warnDeprecation && console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`);\n }\n /**\n * @return {?}\n */\n ngAfterContentInit() {\n this.triggerHook('afterContentInit');\n }\n /**\n * @return {?}\n */\n ngAfterContentChecked() {\n this.triggerHook('afterContentChecked');\n }\n /**\n * @return {?}\n */\n ngAfterViewInit() {\n this.triggerHook('afterViewInit');\n }\n /**\n * @return {?}\n */\n ngAfterViewChecked() {\n this.triggerHook('afterViewChecked');\n }\n /**\n * @return {?}\n */\n ngDoCheck() {\n this.triggerHook('doCheck');\n }\n /**\n * @return {?}\n */\n ngOnInit() {\n this.triggerHook('onInit');\n }\n /**\n * @param {?} changes\n * @return {?}\n */\n ngOnChanges(changes) {\n this.triggerHook('onChanges', changes);\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this.resetRefs(this.field);\n this.hostObservers.forEach((/**\n * @param {?} unsubscribe\n * @return {?}\n */\n unsubscribe => unsubscribe()));\n this.hooksObservers.forEach((/**\n * @param {?} unsubscribe\n * @return {?}\n */\n unsubscribe => unsubscribe()));\n this.triggerHook('onDestroy');\n }\n /**\n * @private\n * @param {?} containerRef\n * @param {?} f\n * @param {?} wrappers\n * @return {?}\n */\n renderField(containerRef, f, wrappers) {\n if (this.containerRef === containerRef) {\n this.resetRefs(this.field);\n this.containerRef.clear();\n }\n if (wrappers && wrappers.length > 0) {\n const [wrapper, ...wps] = wrappers;\n const { component } = this.formlyConfig.getWrapper(wrapper);\n /** @type {?} */\n const ref = containerRef.createComponent(this.resolver.resolveComponentFactory(component));\n this.attachComponentRef(ref, f);\n wrapProperty(ref.instance, 'fieldComponent', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ firstChange, previousValue, currentValue }) => {\n if (currentValue) {\n /** @type {?} */\n const viewRef = previousValue ? previousValue.detach() : null;\n if (viewRef && !viewRef.destroyed) {\n currentValue.insert(viewRef);\n }\n else {\n this.renderField(currentValue, f, wps);\n }\n !firstChange && ref.changeDetectorRef.detectChanges();\n }\n }));\n }\n else if (f && f.type) {\n const { component } = this.formlyConfig.getType(f.type);\n /** @type {?} */\n const ref = containerRef.createComponent(this.resolver.resolveComponentFactory(component));\n this.attachComponentRef(ref, f);\n }\n }\n /**\n * @private\n * @param {?} name\n * @param {?=} changes\n * @return {?}\n */\n triggerHook(name, changes) {\n if (this.field && this.field.hooks && this.field.hooks[name]) {\n if (!changes || changes.field) {\n /** @type {?} */\n const r = this.field.hooks[name](this.field);\n if (isObservable(r) && ['onInit', 'afterContentInit', 'afterViewInit'].indexOf(name) !== -1) {\n /** @type {?} */\n const sub = r.subscribe();\n this.hooksObservers.push((/**\n * @return {?}\n */\n () => sub.unsubscribe()));\n }\n }\n }\n if (this.field && this.field.lifecycle && this.field.lifecycle[name]) {\n this.field.lifecycle[name](this.field.form, this.field, this.field.model, this.field.options);\n }\n if (name === 'onChanges' && changes.field) {\n this.renderHostBinding();\n this.resetRefs(changes.field.previousValue);\n this.renderField(this.containerRef, this.field, this.field ? this.field.wrappers : []);\n }\n }\n /**\n * @private\n * @template T\n * @param {?} ref\n * @param {?} field\n * @return {?}\n */\n attachComponentRef(ref, field) {\n this.componentRefs.push(ref);\n field._componentRefs.push(ref);\n Object.assign(ref.instance, { field });\n }\n /**\n * @private\n * @return {?}\n */\n renderHostBinding() {\n if (!this.field) {\n return;\n }\n this.hostObservers.forEach((/**\n * @param {?} unsubscribe\n * @return {?}\n */\n unsubscribe => unsubscribe()));\n this.hostObservers = [\n wrapProperty(this.field, 'hide', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ firstChange, currentValue }) => {\n if (!firstChange || (firstChange && currentValue)) {\n this.renderer.setStyle(this.elementRef.nativeElement, 'display', currentValue ? 'none' : '');\n }\n })),\n wrapProperty(this.field, 'className', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ firstChange, currentValue }) => {\n if (!firstChange || (firstChange && currentValue)) {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'class', currentValue);\n }\n })),\n ];\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n resetRefs(field) {\n if (field) {\n if (field._componentRefs) {\n field._componentRefs = field._componentRefs.filter((/**\n * @param {?} ref\n * @return {?}\n */\n ref => this.componentRefs.indexOf(ref) === -1));\n }\n else {\n defineHiddenProp(this.field, '_componentRefs', []);\n }\n }\n this.componentRefs = [];\n }\n}\nFormlyField.ɵfac = function FormlyField_Factory(t) { return new (t || FormlyField)(ɵngcc0.ɵɵdirectiveInject(FormlyConfig), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.Renderer2), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ComponentFactoryResolver), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵinjectAttribute('hide-deprecation')); };\nFormlyField.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyField, selectors: [[\"formly-field\"]], viewQuery: function FormlyField_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c2, 7, ViewContainerRef);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.containerRef = _t.first);\n } }, inputs: { model: \"model\", form: \"form\", options: \"options\", field: \"field\" }, outputs: { modelChange: \"modelChange\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], decls: 2, vars: 0, consts: [[\"container\", \"\"]], template: function FormlyField_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, FormlyField_ng_template_0_Template, 0, 0, \"ng-template\", null, 0, ɵngcc0.ɵɵtemplateRefExtractor);\n } }, encapsulation: 2 });\n/** @nocollapse */\nFormlyField.ctorParameters = () => [\n { type: FormlyConfig },\n { type: Renderer2 },\n { type: ComponentFactoryResolver },\n { type: ElementRef },\n { type: undefined, decorators: [{ type: Attribute, args: ['hide-deprecation',] }] }\n];\nFormlyField.propDecorators = {\n field: [{ type: Input }],\n model: [{ type: Input }],\n form: [{ type: Input }],\n options: [{ type: Input }],\n modelChange: [{ type: Output }],\n containerRef: [{ type: ViewChild, args: ['container', (/** @type {?} */ ({ read: ViewContainerRef, static: true })),] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyField, [{\n type: Component,\n args: [{\n selector: 'formly-field',\n template: `<ng-template #container></ng-template>`\n }]\n }], function () { return [{ type: FormlyConfig }, { type: ɵngcc0.Renderer2 }, { type: ɵngcc0.ComponentFactoryResolver }, { type: ɵngcc0.ElementRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['hide-deprecation']\n }] }]; }, { modelChange: [{\n type: Output\n }], model: [{\n type: Input\n }], form: [{\n type: Input\n }], options: [{\n type: Input\n }], field: [{\n type: Input\n }], containerRef: [{\n type: ViewChild,\n args: ['container', ( /** @type {?} */({ read: ViewContainerRef, static: true }))]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyAttributes {\n /**\n * @param {?} renderer\n * @param {?} elementRef\n * @param {?} _document\n */\n constructor(renderer, elementRef, _document) {\n this.renderer = renderer;\n this.elementRef = elementRef;\n this.uiAttributesCache = {};\n this.uiAttributes = [\n ...FORMLY_VALIDATORS,\n 'tabindex',\n 'placeholder',\n 'readonly',\n 'disabled',\n 'step',\n ];\n /**\n * HostBinding doesn't register listeners conditionally which may produce some perf issues.\n *\n * Formly issue: https://github.com/ngx-formly/ngx-formly/issues/1991\n */\n this.uiEvents = {\n listeners: [],\n events: [\n 'click',\n 'keyup',\n 'keydown',\n 'keypress',\n ],\n };\n this.document = _document;\n }\n /**\n * @return {?}\n */\n get to() { return this.field.templateOptions || {}; }\n /**\n * @private\n * @return {?}\n */\n get fieldAttrElements() { return (this.field && this.field['_elementRefs']) || []; }\n /**\n * @param {?} changes\n * @return {?}\n */\n ngOnChanges(changes) {\n if (changes.field) {\n this.field.name && this.setAttribute('name', this.field.name);\n this.uiEvents.listeners.forEach((/**\n * @param {?} listener\n * @return {?}\n */\n listener => listener()));\n this.uiEvents.events.forEach((/**\n * @param {?} eventName\n * @return {?}\n */\n eventName => {\n if (this.to && this.to[eventName]) {\n this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement, eventName, (/**\n * @param {?} e\n * @return {?}\n */\n (e) => this.to[eventName](this.field, e))));\n }\n }));\n if (this.to && this.to.attributes) {\n wrapProperty(this.to, 'attributes', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ currentValue, previousValue }) => {\n if (previousValue) {\n Object.keys(previousValue).forEach((/**\n * @param {?} attr\n * @return {?}\n */\n attr => this.removeAttribute(attr)));\n }\n if (currentValue) {\n Object.keys(currentValue).forEach((/**\n * @param {?} attr\n * @return {?}\n */\n attr => this.setAttribute(attr, currentValue[attr])));\n }\n }));\n }\n this.detachElementRef(changes.field.previousValue);\n this.attachElementRef(changes.field.currentValue);\n if (this.fieldAttrElements.length === 1) {\n !this.id && this.field.id && this.setAttribute('id', this.field.id);\n wrapProperty(this.field, 'focus', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ currentValue }) => {\n this.toggleFocus(currentValue);\n }));\n }\n }\n if (changes.id) {\n this.setAttribute('id', this.id);\n }\n }\n /**\n * We need to re-evaluate all the attributes on every change detection cycle, because\n * by using a HostBinding we run into certain edge cases. This means that whatever logic\n * is in here has to be super lean or we risk seriously damaging or destroying the performance.\n *\n * Formly issue: https://github.com/ngx-formly/ngx-formly/issues/1317\n * Material issue: https://github.com/angular/components/issues/14024\n * @return {?}\n */\n ngDoCheck() {\n this.uiAttributes.forEach((/**\n * @param {?} attr\n * @return {?}\n */\n attr => {\n /** @type {?} */\n const value = this.to[attr];\n if (this.uiAttributesCache[attr] !== value) {\n this.uiAttributesCache[attr] = value;\n if (value || value === 0) {\n this.setAttribute(attr, value === true ? attr : `${value}`);\n }\n else {\n this.removeAttribute(attr);\n }\n }\n }));\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this.uiEvents.listeners.forEach((/**\n * @param {?} listener\n * @return {?}\n */\n listener => listener()));\n this.detachElementRef(this.field);\n }\n /**\n * @param {?} value\n * @return {?}\n */\n toggleFocus(value) {\n /** @type {?} */\n const element = this.fieldAttrElements ? this.fieldAttrElements[0] : null;\n if (!element || !element.nativeElement.focus) {\n return;\n }\n /** @type {?} */\n const isFocused = !!this.document.activeElement\n && this.fieldAttrElements\n .some((/**\n * @param {?} __0\n * @return {?}\n */\n ({ nativeElement }) => this.document.activeElement === nativeElement || nativeElement.contains(this.document.activeElement)));\n if (value && !isFocused) {\n element.nativeElement.focus();\n }\n else if (!value && isFocused) {\n element.nativeElement.blur();\n }\n }\n /**\n * @param {?} $event\n * @return {?}\n */\n onFocus($event) {\n this.field['___$focus'] = true;\n if (this.to.focus) {\n this.to.focus(this.field, $event);\n }\n }\n /**\n * @param {?} $event\n * @return {?}\n */\n onBlur($event) {\n this.field['___$focus'] = false;\n if (this.to.blur) {\n this.to.blur(this.field, $event);\n }\n }\n /**\n * @param {?} $event\n * @return {?}\n */\n onChange($event) {\n if (this.to.change) {\n this.to.change(this.field, $event);\n }\n if (this.field.formControl) {\n this.field.formControl.markAsDirty();\n }\n }\n /**\n * @private\n * @param {?} f\n * @return {?}\n */\n attachElementRef(f) {\n if (!f) {\n return;\n }\n if (f['_elementRefs'] && f['_elementRefs'].indexOf(this.elementRef) === -1) {\n f['_elementRefs'].push(this.elementRef);\n }\n else {\n defineHiddenProp(f, '_elementRefs', [this.elementRef]);\n }\n }\n /**\n * @private\n * @param {?} f\n * @return {?}\n */\n detachElementRef(f) {\n /** @type {?} */\n const index = f && f['_elementRefs'] ? this.fieldAttrElements.indexOf(this.elementRef) : -1;\n if (index !== -1) {\n this.field['_elementRefs'].splice(index, 1);\n }\n }\n /**\n * @private\n * @param {?} attr\n * @param {?} value\n * @return {?}\n */\n setAttribute(attr, value) {\n this.renderer.setAttribute(this.elementRef.nativeElement, attr, value);\n }\n /**\n * @private\n * @param {?} attr\n * @return {?}\n */\n removeAttribute(attr) {\n this.renderer.removeAttribute(this.elementRef.nativeElement, attr);\n }\n}\nFormlyAttributes.ɵfac = function FormlyAttributes_Factory(t) { return new (t || FormlyAttributes)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.Renderer2), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(DOCUMENT)); };\nFormlyAttributes.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: FormlyAttributes, selectors: [[\"\", \"formlyAttributes\", \"\"]], hostBindings: function FormlyAttributes_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"focus\", function FormlyAttributes_focus_HostBindingHandler($event) { return ctx.onFocus($event); })(\"blur\", function FormlyAttributes_blur_HostBindingHandler($event) { return ctx.onBlur($event); })(\"change\", function FormlyAttributes_change_HostBindingHandler($event) { return ctx.onChange($event); });\n } }, inputs: { field: [\"formlyAttributes\", \"field\"], id: \"id\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature] });\n/** @nocollapse */\nFormlyAttributes.ctorParameters = () => [\n { type: Renderer2 },\n { type: ElementRef },\n { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }\n];\nFormlyAttributes.propDecorators = {\n field: [{ type: Input, args: ['formlyAttributes',] }],\n id: [{ type: Input }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyAttributes, [{\n type: Directive,\n args: [{\n selector: '[formlyAttributes]',\n host: {\n '(focus)': 'onFocus($event)',\n '(blur)': 'onBlur($event)',\n '(change)': 'onChange($event)'\n }\n }]\n }], function () { return [{ type: ɵngcc0.Renderer2 }, { type: ɵngcc0.ElementRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }]; }, { field: [{\n type: Input,\n args: ['formlyAttributes']\n }], id: [{\n type: Input\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @abstract\n * @template F\n */\nclass FieldType {\n /**\n * @return {?}\n */\n get model() { return this.field.model; }\n /**\n * @param {?} m\n * @return {?}\n */\n set model(m) { console.warn(`NgxFormly: passing 'model' input to '${this.constructor.name}' component is not required anymore, you may remove it!`); }\n /**\n * @return {?}\n */\n get form() { return (/** @type {?} */ (this.field.parent.formControl)); }\n /**\n * @param {?} form\n * @return {?}\n */\n set form(form) { console.warn(`NgxFormly: passing 'form' input to '${this.constructor.name}' component is not required anymore, you may remove it!`); }\n /**\n * @return {?}\n */\n get options() { return this.field.options; }\n /**\n * @param {?} options\n * @return {?}\n */\n set options(options) { console.warn(`NgxFormly: passing 'options' input to '${this.constructor.name}' component is not required anymore, you may remove it!`); }\n /**\n * @return {?}\n */\n get key() { return this.field.key; }\n /**\n * @return {?}\n */\n get formControl() { return this.field.formControl; }\n /**\n * @return {?}\n */\n get to() { return this.field.templateOptions || {}; }\n /**\n * @return {?}\n */\n get showError() { return this.options.showError(this); }\n /**\n * @return {?}\n */\n get id() { return this.field.id; }\n /**\n * @return {?}\n */\n get formState() { return this.options.formState || {}; }\n}\nFieldType.ɵfac = function FieldType_Factory(t) { return new (t || FieldType)(); };\nFieldType.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: FieldType, inputs: { model: \"model\", form: \"form\", options: \"options\", field: \"field\" } });\nFieldType.propDecorators = {\n field: [{ type: Input }],\n model: [{ type: Input }],\n form: [{ type: Input }],\n options: [{ type: Input }]\n};\n\n/**\n * @deprecated use `FieldType` instead\n * @abstract\n */\nclass Field extends FieldType {\n constructor() {\n super();\n console.warn(`NgxFormly: 'Field' has been renamed to 'FieldType', extend 'FieldType' instead.`);\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} field\n * @param {?=} emitEvent\n * @return {?}\n */\nfunction unregisterControl(field, emitEvent = false) {\n /** @type {?} */\n const form = (/** @type {?} */ (field.formControl.parent));\n if (!form) {\n return;\n }\n /** @type {?} */\n const control = field.formControl;\n /** @type {?} */\n const opts = { emitEvent };\n if (form instanceof FormArray) {\n /** @type {?} */\n const key = form.controls.findIndex((/**\n * @param {?} c\n * @return {?}\n */\n c => c === control));\n if (key !== -1) {\n updateControl(form, opts, (/**\n * @return {?}\n */\n () => form.removeAt(key)));\n }\n }\n else if (form instanceof FormGroup) {\n /** @type {?} */\n const paths = getKeyPath(field);\n /** @type {?} */\n const key = paths[paths.length - 1];\n if (form.get([key]) === control) {\n updateControl(form, opts, (/**\n * @return {?}\n */\n () => form.removeControl(key)));\n }\n }\n control.setParent(null);\n if (field['autoClear']) {\n if (field.parent.model) {\n delete field.parent.model[field.key];\n }\n control.reset({ value: undefined, disabled: control.disabled }, { emitEvent: field.fieldGroup ? false : emitEvent, onlySelf: true });\n }\n}\n/**\n * @param {?} field\n * @return {?}\n */\nfunction findControl(field) {\n if (field.formControl) {\n return field.formControl;\n }\n /** @type {?} */\n const form = (/** @type {?} */ (field.parent.formControl));\n return form ? form.get(getKeyPath(field)) : null;\n}\n/**\n * @param {?} field\n * @param {?=} control\n * @param {?=} emitEvent\n * @return {?}\n */\nfunction registerControl(field, control, emitEvent = false) {\n control = control || field.formControl;\n if (!control['_fields']) {\n defineHiddenProp(control, '_fields', []);\n }\n if (control['_fields'].indexOf(field) === -1) {\n control['_fields'].push(field);\n }\n if (!field.formControl && control) {\n defineHiddenProp(field, 'formControl', control);\n field.templateOptions.disabled = !!field.templateOptions.disabled;\n wrapProperty(field.templateOptions, 'disabled', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ firstChange, currentValue }) => {\n if (!firstChange) {\n currentValue ? field.formControl.disable() : field.formControl.enable();\n }\n }));\n if (control.registerOnDisabledChange) {\n control.registerOnDisabledChange((/**\n * @param {?} value\n * @return {?}\n */\n (value) => field.templateOptions['___$disabled'] = value));\n }\n }\n /** @type {?} */\n let parent = (/** @type {?} */ (field.parent.formControl));\n if (!parent) {\n return;\n }\n /** @type {?} */\n const paths = getKeyPath(field);\n if (!parent['_formlyControls']) {\n defineHiddenProp(parent, '_formlyControls', {});\n }\n parent['_formlyControls'][paths.join('.')] = control;\n for (let i = 0; i < (paths.length - 1); i++) {\n /** @type {?} */\n const path = paths[i];\n if (!parent.get([path])) {\n registerControl({\n key: path,\n formControl: new FormGroup({}),\n parent: { formControl: parent },\n });\n }\n parent = (/** @type {?} */ (parent.get([path])));\n }\n if (field['autoClear'] && field.parent && !isUndefined(field.defaultValue) && isUndefined(getFieldValue(field))) {\n assignFieldValue(field, field.defaultValue);\n }\n /** @type {?} */\n const value = getFieldValue(field);\n if (!(isNullOrUndefined(control.value) && isNullOrUndefined(value))\n && control.value !== value\n && control instanceof FormControl) {\n control.patchValue(value);\n }\n /** @type {?} */\n const key = paths[paths.length - 1];\n if (!field._hide && parent.get([key]) !== control) {\n updateControl(parent, { emitEvent }, (/**\n * @return {?}\n */\n () => parent.setControl(key, control)));\n }\n}\n/**\n * @param {?} c\n * @return {?}\n */\nfunction updateValidity(c) {\n /** @type {?} */\n const status = c.status;\n c.updateValueAndValidity({ emitEvent: false });\n if (status !== c.status) {\n ((/** @type {?} */ (c.statusChanges))).emit(c.status);\n }\n}\n/**\n * @param {?} form\n * @param {?} opts\n * @param {?} action\n * @return {?}\n */\nfunction updateControl(form, opts, action) {\n /**\n * workaround for https://github.com/angular/angular/issues/27679\n */\n if (form instanceof FormGroup && !form['__patchForEachChild']) {\n defineHiddenProp(form, '__patchForEachChild', true);\n ((/** @type {?} */ (form)))._forEachChild = (/**\n * @param {?} cb\n * @return {?}\n */\n (cb) => {\n Object\n .keys(form.controls)\n .forEach((/**\n * @param {?} k\n * @return {?}\n */\n k => form.controls[k] && cb(form.controls[k], k)));\n });\n }\n /**\n * workaround for https://github.com/angular/angular/issues/20439\n * @type {?}\n */\n const updateValueAndValidity = form.updateValueAndValidity.bind(form);\n if (opts.emitEvent === false) {\n form.updateValueAndValidity = (/**\n * @param {?} opts\n * @return {?}\n */\n (opts) => {\n updateValueAndValidity(Object.assign({}, (opts || {}), { emitEvent: false }));\n });\n }\n action();\n if (opts.emitEvent === false) {\n form.updateValueAndValidity = updateValueAndValidity;\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @abstract\n * @template F\n */\nclass FieldArrayType extends FieldType {\n /**\n * @param {?=} builder\n */\n constructor(builder) {\n super();\n this.defaultOptions = {\n defaultValue: [],\n };\n if (builder instanceof FormlyFormBuilder) {\n console.warn(`NgxFormly: passing 'FormlyFormBuilder' to '${this.constructor.name}' type is not required anymore, you may remove it!`);\n }\n }\n /**\n * @param {?} field\n * @return {?}\n */\n onPopulate(field) {\n if (!field.formControl && field.key) {\n registerControl(field, new FormArray([], { updateOn: field.modelOptions.updateOn }));\n }\n field.fieldGroup = field.fieldGroup || [];\n /** @type {?} */\n const length = field.model ? field.model.length : 0;\n if (field.fieldGroup.length > length) {\n for (let i = field.fieldGroup.length - 1; i >= length; --i) {\n unregisterControl(field.fieldGroup[i]);\n field.fieldGroup.splice(i, 1);\n }\n }\n for (let i = field.fieldGroup.length; i < length; i++) {\n /** @type {?} */\n const f = Object.assign({}, clone(field.fieldArray), { key: `${i}` });\n field.fieldGroup.push(f);\n }\n }\n /**\n * @param {?=} i\n * @param {?=} initialModel\n * @param {?=} __2\n * @return {?}\n */\n add(i, initialModel, { markAsDirty } = { markAsDirty: true }) {\n i = isNullOrUndefined(i) ? this.field.fieldGroup.length : i;\n if (!this.model) {\n assignFieldValue(this.field, []);\n }\n this.model.splice(i, 0, initialModel ? clone(initialModel) : undefined);\n ((/** @type {?} */ (this.options)))._buildForm(true);\n markAsDirty && this.formControl.markAsDirty();\n }\n /**\n * @param {?} i\n * @param {?=} __1\n * @return {?}\n */\n remove(i, { markAsDirty } = { markAsDirty: true }) {\n this.model.splice(i, 1);\n unregisterControl(this.field.fieldGroup[i], true);\n this.field.fieldGroup.splice(i, 1);\n this.field.fieldGroup.forEach((/**\n * @param {?} f\n * @param {?} key\n * @return {?}\n */\n (f, key) => f.key = `${key}`));\n ((/** @type {?} */ (this.options)))._buildForm(true);\n markAsDirty && this.formControl.markAsDirty();\n }\n}\n/** @nocollapse */\nFieldArrayType.ctorParameters = () => [\n { type: FormlyFormBuilder, decorators: [{ type: Inject, args: [FORMLY_CONFIG,] }, { type: Optional }] }\n];\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @abstract\n * @template F\n */\nclass FieldWrapper extends FieldType {\n}\nFieldWrapper.ɵfac = /*@__PURE__*/ function () { let ɵFieldWrapper_BaseFactory; return function FieldWrapper_Factory(t) { return (ɵFieldWrapper_BaseFactory || (ɵFieldWrapper_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FieldWrapper)))(t || FieldWrapper); }; }();\nFieldWrapper.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: FieldWrapper, viewQuery: function FieldWrapper_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c3, 5, ViewContainerRef);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.fieldComponent = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });\nFieldWrapper.propDecorators = {\n fieldComponent: [{ type: ViewChild, args: ['fieldComponent', (/** @type {?} */ ({ read: ViewContainerRef, static: false })),] }]\n};\n\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyGroup extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n defaultValue: {},\n };\n }\n}\nFormlyGroup.ɵfac = /*@__PURE__*/ function () { let ɵFormlyGroup_BaseFactory; return function FormlyGroup_Factory(t) { return (ɵFormlyGroup_BaseFactory || (ɵFormlyGroup_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyGroup)))(t || FormlyGroup); }; }();\nFormlyGroup.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyGroup, selectors: [[\"formly-group\"]], hostVars: 2, hostBindings: function FormlyGroup_HostBindings(rf, ctx) { if (rf & 2) {\n ɵngcc0.ɵɵclassMap(ctx.field.fieldGroupClassName || \"\");\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 2, vars: 1, consts: [[3, \"field\", 4, \"ngFor\", \"ngForOf\"], [3, \"field\"]], template: function FormlyGroup_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵprojectionDef();\n ɵngcc0.ɵɵtemplate(0, FormlyGroup_formly_field_0_Template, 1, 1, \"formly-field\", 0);\n ɵngcc0.ɵɵprojection(1);\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.field.fieldGroup);\n } }, directives: [ɵngcc2.NgForOf, FormlyField], encapsulation: 2 });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyGroup, [{\n type: Component,\n args: [{\n selector: 'formly-group',\n template: `\n <formly-field *ngFor=\"let f of field.fieldGroup\" [field]=\"f\"></formly-field>\n <ng-content></ng-content>\n `,\n host: {\n '[class]': 'field.fieldGroupClassName || \"\"'\n }\n }]\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyValidationMessage {\n /**\n * @param {?} formlyConfig\n */\n constructor(formlyConfig) {\n this.formlyConfig = formlyConfig;\n }\n /**\n * @return {?}\n */\n ngOnChanges() {\n this.errorMessage$ = this.field.formControl.statusChanges.pipe(startWith(null), switchMap((/**\n * @return {?}\n */\n () => isObservable(this.errorMessage)\n ? this.errorMessage\n : of(this.errorMessage))));\n }\n /**\n * @return {?}\n */\n get errorMessage() {\n /** @type {?} */\n const fieldForm = this.field.formControl;\n for (let error in fieldForm.errors) {\n if (fieldForm.errors.hasOwnProperty(error)) {\n /** @type {?} */\n let message = this.formlyConfig.getValidatorMessage(error);\n if (isObject(fieldForm.errors[error])) {\n if (fieldForm.errors[error].errorPath) {\n return;\n }\n if (fieldForm.errors[error].message) {\n message = fieldForm.errors[error].message;\n }\n }\n if (this.field.validation && this.field.validation.messages && this.field.validation.messages[error]) {\n message = this.field.validation.messages[error];\n }\n if (this.field.validators && this.field.validators[error] && this.field.validators[error].message) {\n message = this.field.validators[error].message;\n }\n if (this.field.asyncValidators && this.field.asyncValidators[error] && this.field.asyncValidators[error].message) {\n message = this.field.asyncValidators[error].message;\n }\n if (typeof message === 'function') {\n return message(fieldForm.errors[error], this.field);\n }\n return message;\n }\n }\n }\n}\nFormlyValidationMessage.ɵfac = function FormlyValidationMessage_Factory(t) { return new (t || FormlyValidationMessage)(ɵngcc0.ɵɵdirectiveInject(FormlyConfig)); };\nFormlyValidationMessage.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyValidationMessage, selectors: [[\"formly-validation-message\"]], inputs: { field: \"field\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], decls: 2, vars: 3, template: function FormlyValidationMessage_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n ɵngcc0.ɵɵpipe(1, \"async\");\n } if (rf & 2) {\n ɵngcc0.ɵɵtextInterpolate(ɵngcc0.ɵɵpipeBind1(1, 1, ctx.errorMessage$));\n } }, pipes: [ɵngcc2.AsyncPipe], encapsulation: 2, changeDetection: 0 });\n/** @nocollapse */\nFormlyValidationMessage.ctorParameters = () => [\n { type: FormlyConfig }\n];\nFormlyValidationMessage.propDecorators = {\n field: [{ type: Input }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyValidationMessage, [{\n type: Component,\n args: [{\n selector: 'formly-validation-message',\n template: `{{ errorMessage$ | async }}`,\n changeDetection: ChangeDetectionStrategy.OnPush\n }]\n }], function () { return [{ type: FormlyConfig }]; }, { field: [{\n type: Input\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyTemplateType extends FieldType {\n /**\n * @param {?} sanitizer\n */\n constructor(sanitizer) {\n super();\n this.sanitizer = sanitizer;\n this.innerHtml = { content: null, template: null };\n }\n /**\n * @return {?}\n */\n get template() {\n if (this.field && (this.field.template !== this.innerHtml.template)) {\n this.innerHtml = {\n template: this.field.template,\n content: this.to.safeHtml\n ? this.sanitizer.bypassSecurityTrustHtml(this.field.template)\n : this.field.template,\n };\n }\n return this.innerHtml.content;\n }\n}\nFormlyTemplateType.ɵfac = function FormlyTemplateType_Factory(t) { return new (t || FormlyTemplateType)(ɵngcc0.ɵɵdirectiveInject(ɵngcc3.DomSanitizer)); };\nFormlyTemplateType.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyTemplateType, selectors: [[\"formly-template\"]], features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, \"innerHtml\"]], template: function FormlyTemplateType_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"div\", 0);\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"innerHtml\", ctx.template, ɵngcc0.ɵɵsanitizeHtml);\n } }, encapsulation: 2 });\n/** @nocollapse */\nFormlyTemplateType.ctorParameters = () => [\n { type: DomSanitizer }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyTemplateType, [{\n type: Component,\n args: [{\n selector: 'formly-template',\n template: `<div [innerHtml]=\"template\"></div>`\n }]\n }], function () { return [{ type: ɵngcc3.DomSanitizer }]; }, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} expression\n * @param {?} argNames\n * @return {?}\n */\nfunction evalStringExpression(expression, argNames) {\n try {\n if (expression.indexOf('this.field') !== -1) {\n console.warn(`NgxFormly: using 'this.field' in expressionProperties is deprecated since v5.1, use 'field' instead.`);\n }\n return (/** @type {?} */ (Function(...argNames, `return ${expression};`)));\n }\n catch (error) {\n console.error(error);\n }\n}\n/**\n * @param {?} expression\n * @param {?} thisArg\n * @param {?} argVal\n * @return {?}\n */\nfunction evalExpression(expression, thisArg, argVal) {\n if (expression instanceof Function) {\n return expression.apply(thisArg, argVal);\n }\n else {\n return expression ? true : false;\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * \\@experimental\n */\nclass FieldExpressionExtension {\n /**\n * @param {?} field\n * @return {?}\n */\n prePopulate(field) {\n if (field.parent || field.options._checkField) {\n return;\n }\n field.options._checkField = (/**\n * @param {?} f\n * @param {?} ignoreCache\n * @return {?}\n */\n (f, ignoreCache) => {\n reduceFormUpdateValidityCalls(f.formControl, (/**\n * @return {?}\n */\n () => this.checkField(f, ignoreCache)));\n });\n }\n /**\n * @param {?} field\n * @return {?}\n */\n onPopulate(field) {\n if (!field.parent || field._expressionProperties) {\n return;\n }\n // cache built expression\n defineHiddenProp(field, '_expressionProperties', {});\n if (field.expressionProperties) {\n for (const key in field.expressionProperties) {\n /** @type {?} */\n const expressionProperty = field.expressionProperties[key];\n if (typeof expressionProperty === 'string' || isFunction(expressionProperty)) {\n field._expressionProperties[key] = {\n expression: this._evalExpression(expressionProperty, key === 'templateOptions.disabled' && field.parent.expressionProperties && field.parent.expressionProperties.hasOwnProperty('templateOptions.disabled')\n ? (/**\n * @return {?}\n */\n () => field.parent.templateOptions.disabled)\n : undefined),\n };\n if (key === 'templateOptions.disabled') {\n Object.defineProperty(field._expressionProperties[key], 'expressionValue', {\n get: (/**\n * @return {?}\n */\n () => field.templateOptions.disabled),\n set: (/**\n * @return {?}\n */\n () => { }),\n enumerable: true,\n configurable: true,\n });\n }\n }\n else if (expressionProperty instanceof Observable) {\n /** @type {?} */\n const subscribe = (/**\n * @return {?}\n */\n () => ((/** @type {?} */ (expressionProperty)))\n .subscribe((/**\n * @param {?} v\n * @return {?}\n */\n v => {\n this.setExprValue(field, key, v);\n if (field.options && field.options._markForCheck) {\n field.options._markForCheck(field);\n }\n })));\n /** @type {?} */\n let subscription = subscribe();\n /** @type {?} */\n const onInit = field.hooks.onInit;\n field.hooks.onInit = (/**\n * @return {?}\n */\n () => {\n if (subscription === null) {\n subscription = subscribe();\n }\n return onInit && onInit(field);\n });\n /** @type {?} */\n const onDestroy = field.hooks.onDestroy;\n field.hooks.onDestroy = (/**\n * @return {?}\n */\n () => {\n onDestroy && onDestroy(field);\n subscription.unsubscribe();\n subscription = null;\n });\n }\n }\n }\n if (field.hideExpression) {\n // delete hide value in order to force re-evaluate it in FormlyFormExpression.\n delete field.hide;\n /** @type {?} */\n let parent = field.parent;\n while (parent && !parent.hideExpression) {\n parent = parent.parent;\n }\n field.hideExpression = this._evalExpression(field.hideExpression, parent && parent.hideExpression ? (/**\n * @return {?}\n */\n () => parent.hide) : undefined);\n }\n else {\n wrapProperty(field, 'hide', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ currentValue, firstChange }) => {\n field._hide = currentValue;\n if (!firstChange || (firstChange && currentValue === true)) {\n field.options._hiddenFieldsForCheck.push(field);\n }\n }));\n }\n }\n /**\n * @private\n * @param {?} expression\n * @param {?=} parentExpression\n * @return {?}\n */\n _evalExpression(expression, parentExpression) {\n expression = expression || ((/**\n * @return {?}\n */\n () => false));\n if (typeof expression === 'string') {\n expression = evalStringExpression(expression, ['model', 'formState', 'field']);\n }\n return parentExpression\n ? (/**\n * @param {?} model\n * @param {?} formState\n * @param {?} field\n * @return {?}\n */\n (model, formState, field) => parentExpression() || expression(model, formState, field))\n : expression;\n }\n /**\n * @private\n * @param {?} field\n * @param {?=} ignoreCache\n * @return {?}\n */\n checkField(field, ignoreCache = false) {\n this._checkField(field, ignoreCache);\n field.options._hiddenFieldsForCheck\n .sort((/**\n * @param {?} f\n * @return {?}\n */\n f => f.hide ? -1 : 1))\n .forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => this.toggleFormControl(f, f.hide)));\n field.options._hiddenFieldsForCheck = [];\n }\n /**\n * @private\n * @param {?} field\n * @param {?=} ignoreCache\n * @return {?}\n */\n _checkField(field, ignoreCache = false) {\n /** @type {?} */\n let markForCheck = false;\n field.fieldGroup.forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => {\n this.checkFieldExpressionChange(f, ignoreCache) && (markForCheck = true);\n if (this.checkFieldVisibilityChange(f, ignoreCache)) {\n field.options._hiddenFieldsForCheck.push(f);\n markForCheck = true;\n }\n if (f.fieldGroup && f.fieldGroup.length > 0) {\n this._checkField(f, ignoreCache);\n }\n }));\n if (markForCheck && field.options && field.options._markForCheck) {\n field.options._markForCheck(field);\n }\n }\n /**\n * @private\n * @param {?} field\n * @param {?} ignoreCache\n * @return {?}\n */\n checkFieldExpressionChange(field, ignoreCache) {\n if (!field || !field._expressionProperties) {\n return false;\n }\n /** @type {?} */\n let markForCheck = false;\n /** @type {?} */\n const expressionProperties = field._expressionProperties;\n for (const key in expressionProperties) {\n /** @type {?} */\n let expressionValue = evalExpression(expressionProperties[key].expression, { field }, [field.model, field.options.formState, field]);\n if (key === 'templateOptions.disabled') {\n expressionValue = !!expressionValue;\n }\n if (ignoreCache || (expressionProperties[key].expressionValue !== expressionValue\n && (!isObject(expressionValue) || JSON.stringify(expressionValue) !== JSON.stringify(expressionProperties[key].expressionValue)))) {\n markForCheck = true;\n expressionProperties[key].expressionValue = expressionValue;\n this.setExprValue(field, key, expressionValue);\n }\n }\n return markForCheck;\n }\n /**\n * @private\n * @param {?} field\n * @param {?} ignoreCache\n * @return {?}\n */\n checkFieldVisibilityChange(field, ignoreCache) {\n if (!field || isNullOrUndefined(field.hideExpression)) {\n return false;\n }\n /** @type {?} */\n const hideExpressionResult = !!evalExpression(field.hideExpression, { field }, [field.model, field.options.formState, field]);\n /** @type {?} */\n let markForCheck = false;\n if (hideExpressionResult !== field.hide || ignoreCache) {\n markForCheck = true;\n // toggle hide\n field.hide = hideExpressionResult;\n field.templateOptions.hidden = hideExpressionResult;\n }\n return markForCheck;\n }\n /**\n * @private\n * @param {?} field\n * @param {?} value\n * @return {?}\n */\n setDisabledState(field, value) {\n if (field.fieldGroup) {\n field.fieldGroup\n .filter((/**\n * @param {?} f\n * @return {?}\n */\n f => !f.expressionProperties || !f.expressionProperties.hasOwnProperty('templateOptions.disabled')))\n .forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => this.setDisabledState(f, value)));\n }\n if (field.key && field.templateOptions.disabled !== value) {\n field.templateOptions.disabled = value;\n }\n }\n /**\n * @private\n * @param {?} field\n * @param {?} hide\n * @return {?}\n */\n toggleFormControl(field, hide) {\n if (field.formControl && field.key) {\n defineHiddenProp(field, '_hide', !!(hide || field.hide));\n /** @type {?} */\n const c = field.formControl;\n if (c['_fields'].length > 1) {\n updateValidity(c);\n }\n hide === true && c['_fields'].every((/**\n * @param {?} f\n * @return {?}\n */\n f => !!f._hide))\n ? unregisterControl(field)\n : registerControl(field);\n }\n if (field.fieldGroup) {\n field.fieldGroup\n .filter((/**\n * @param {?} f\n * @return {?}\n */\n f => !f.hideExpression))\n .forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => this.toggleFormControl(f, hide)));\n }\n if (field.options.fieldChanges) {\n field.options.fieldChanges.next((/** @type {?} */ ({ field: field, type: 'hidden', value: hide })));\n }\n }\n /**\n * @private\n * @param {?} field\n * @param {?} prop\n * @param {?} value\n * @return {?}\n */\n setExprValue(field, prop, value) {\n try {\n /** @type {?} */\n let target = field;\n /** @type {?} */\n const paths = prop.split('.');\n /** @type {?} */\n const lastIndex = paths.length - 1;\n for (let i = 0; i < lastIndex; i++) {\n target = target[paths[i]];\n }\n target[paths[lastIndex]] = value;\n }\n catch (error) {\n error.message = `[Formly Error] [Expression \"${prop}\"] ${error.message}`;\n throw error;\n }\n if (prop === 'templateOptions.disabled' && field.key) {\n this.setDisabledState(field, value);\n }\n if (prop.indexOf('model.') === 0) {\n /** @type {?} */\n const path = prop.replace(/^model\\./, '');\n /** @type {?} */\n const control = field.key && prop === path ? field.formControl : field.parent.formControl.get(path);\n if (control\n && !(isNullOrUndefined(control.value) && isNullOrUndefined(value))\n && control.value !== value) {\n control.patchValue(value, { emitEvent: false });\n }\n }\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * \\@experimental\n */\nclass FieldValidationExtension {\n /**\n * @param {?} formlyConfig\n */\n constructor(formlyConfig) {\n this.formlyConfig = formlyConfig;\n }\n /**\n * @param {?} field\n * @return {?}\n */\n onPopulate(field) {\n this.initFieldValidation(field, 'validators');\n this.initFieldValidation(field, 'asyncValidators');\n }\n /**\n * @private\n * @param {?} field\n * @param {?} type\n * @return {?}\n */\n initFieldValidation(field, type) {\n /** @type {?} */\n const validators = [];\n if (type === 'validators' && !(field.hasOwnProperty('fieldGroup') && !field.key)) {\n validators.push(this.getPredefinedFieldValidation(field));\n }\n if (field[type]) {\n for (const validatorName in field[type]) {\n if (validatorName === 'validation' && !Array.isArray(field[type].validation)) {\n field[type].validation = [field[type].validation];\n console.warn(`NgxFormly(${field.key}): passing a non array value to the 'validation' is deprecated, pass an array instead`);\n }\n validatorName === 'validation'\n ? validators.push(...field[type].validation.map((/**\n * @param {?} v\n * @return {?}\n */\n v => this.wrapNgValidatorFn(field, v))))\n : validators.push(this.wrapNgValidatorFn(field, field[type][validatorName], validatorName));\n }\n }\n defineHiddenProp(field, '_' + type, validators);\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n getPredefinedFieldValidation(field) {\n /** @type {?} */\n let VALIDATORS = [];\n FORMLY_VALIDATORS.forEach((/**\n * @param {?} opt\n * @return {?}\n */\n opt => wrapProperty(field.templateOptions, opt, (/**\n * @param {?} __0\n * @return {?}\n */\n ({ currentValue, firstChange }) => {\n VALIDATORS = VALIDATORS.filter((/**\n * @param {?} o\n * @return {?}\n */\n o => o !== opt));\n if (currentValue != null && currentValue !== false) {\n VALIDATORS.push(opt);\n }\n if (!firstChange && field.formControl) {\n updateValidity(field.formControl);\n }\n }))));\n return (/**\n * @param {?} control\n * @return {?}\n */\n (control) => {\n if (VALIDATORS.length === 0) {\n return null;\n }\n return Validators.compose(VALIDATORS.map((/**\n * @param {?} opt\n * @return {?}\n */\n opt => (/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n const value = field.templateOptions[opt];\n switch (opt) {\n case 'required':\n return Validators.required(control);\n case 'pattern':\n return Validators.pattern(value)(control);\n case 'minLength':\n return Validators.minLength(value)(control);\n case 'maxLength':\n return Validators.maxLength(value)(control);\n case 'min':\n return Validators.min(value)(control);\n case 'max':\n return Validators.max(value)(control);\n }\n }))))(control);\n });\n }\n /**\n * @private\n * @param {?} field\n * @param {?} validator\n * @param {?=} validatorName\n * @return {?}\n */\n wrapNgValidatorFn(field, validator, validatorName) {\n /** @type {?} */\n let validatorOption = null;\n if (typeof validator === 'string') {\n validatorOption = clone(this.formlyConfig.getValidator(validator));\n }\n if (typeof validator === 'object' && validator.name) {\n validatorOption = clone(this.formlyConfig.getValidator(validator.name));\n if (validator.options) {\n validatorOption.options = validator.options;\n }\n }\n if (typeof validator === 'object' && validator.expression) {\n const { expression } = validator, options = __rest(validator, [\"expression\"]);\n validatorOption = {\n name: validatorName,\n validation: expression,\n options: Object.keys(options).length > 0 ? options : null,\n };\n }\n if (typeof validator === 'function') {\n validatorOption = {\n name: validatorName,\n validation: validator,\n };\n }\n return (/**\n * @param {?} control\n * @return {?}\n */\n (control) => {\n /** @type {?} */\n let errors = validatorOption.validation(control, field, validatorOption.options);\n if (validatorName) {\n if (isPromise(errors)) {\n return errors.then((/**\n * @param {?} result\n * @return {?}\n */\n (result) => {\n // workaround for https://github.com/angular/angular/issues/13200\n if (field.options && field.options._markForCheck) {\n field.options._markForCheck(field);\n }\n return this.handleResult(field, !!result, validatorOption);\n }));\n }\n errors = !!errors;\n }\n return this.handleResult(field, errors, validatorOption);\n });\n }\n /**\n * @private\n * @param {?} field\n * @param {?} errors\n * @param {?} __2\n * @return {?}\n */\n handleResult(field, errors, { name, options }) {\n if (typeof errors === 'boolean') {\n errors = errors ? null : { [name]: options ? options : true };\n }\n if (options && field.formControl && options.errorPath) {\n /** @type {?} */\n const control = field.formControl.get(options.errorPath);\n if (control) {\n /** @type {?} */\n const controlErrors = (control.errors || {});\n if (errors && errors[name] && !controlErrors[name]) {\n const _a = errors[name], opts = __rest(_a, [\"errorPath\"]);\n control.setErrors(Object.assign({}, controlErrors, { [name]: opts }));\n }\n else if (errors === null && controlErrors[name]) {\n delete controlErrors[name];\n control.setErrors(Object.keys(controlErrors).length === 0 ? null : controlErrors);\n }\n }\n }\n return errors;\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * \\@experimental\n */\nclass FieldFormExtension {\n /**\n * @param {?} config\n */\n constructor(config) {\n this.config = config;\n }\n /**\n * @param {?} field\n * @return {?}\n */\n onPopulate(field) {\n if (field.key) {\n this.addFormControl(field);\n }\n if (field.parent && field.fieldGroup && !field.key) {\n defineHiddenProp(field, 'formControl', field.parent.formControl);\n }\n }\n /**\n * @param {?} field\n * @return {?}\n */\n postPopulate(field) {\n if (field.parent) {\n return;\n }\n /** @type {?} */\n const updateValidity$$1 = this.setValidators(field);\n updateValidity$$1 && ((/** @type {?} */ (field.formControl)))._updateTreeValidity();\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n addFormControl(field) {\n /** @type {?} */\n let control = findControl(field);\n if (!control) {\n /** @type {?} */\n const controlOptions = { updateOn: field.modelOptions.updateOn };\n /** @type {?} */\n const value = getFieldValue(field);\n /** @type {?} */\n const ref = this.config ? this.config.resolveFieldTypeRef(field) : null;\n if (ref && ref.componentType && ref.componentType['createControl']) {\n /** @type {?} */\n const component = ref.componentType;\n console.warn(`NgxFormly: '${component.name}::createControl' is deprecated since v5.0, use 'prePopulate' hook instead.`);\n control = component['createControl'](value, field);\n }\n else if (field.fieldGroup) {\n // TODO: move to postPopulate\n control = new FormGroup({}, controlOptions);\n }\n else {\n control = new FormControl(value, controlOptions);\n }\n }\n registerControl(field, control);\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n setValidators(field) {\n /** @type {?} */\n let updateValidity$$1 = false;\n if (field.key || !field.parent) {\n const { formControl: c } = field;\n /** @type {?} */\n const disabled = field.templateOptions ? field.templateOptions.disabled : false;\n if (disabled && c.enabled) {\n c.disable({ emitEvent: false, onlySelf: true });\n updateValidity$$1 = true;\n }\n if (null === c.validator || null === c.asyncValidator) {\n c.setValidators((/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n const v = Validators.compose(this.mergeValidators(field, '_validators'));\n return v ? v(c) : null;\n }));\n c.setAsyncValidators((/**\n * @return {?}\n */\n () => {\n /** @type {?} */\n const v = Validators.composeAsync(this.mergeValidators(field, '_asyncValidators'));\n return v ? v(c) : of(null);\n }));\n if (!c.parent) {\n updateValidity(c);\n }\n else {\n updateValidity$$1 = true;\n }\n }\n }\n (field.fieldGroup || []).forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => this.setValidators(f) && (updateValidity$$1 = true)));\n return updateValidity$$1;\n }\n /**\n * @private\n * @template T\n * @param {?} field\n * @param {?} type\n * @return {?}\n */\n mergeValidators(field, type) {\n /** @type {?} */\n const validators = [];\n /** @type {?} */\n const c = field.formControl;\n if (c && c['_fields'] && c['_fields'].length > 1) {\n c['_fields']\n .filter((/**\n * @param {?} f\n * @return {?}\n */\n (f) => !f._hide))\n .forEach((/**\n * @param {?} f\n * @return {?}\n */\n (f) => validators.push(...f[type])));\n }\n else {\n validators.push(...field[type]);\n }\n if (field.fieldGroup) {\n field.fieldGroup\n .filter((/**\n * @param {?} f\n * @return {?}\n */\n f => !f.key && f.fieldGroup))\n .forEach((/**\n * @param {?} f\n * @return {?}\n */\n f => validators.push(...this.mergeValidators(f, type))));\n }\n return validators;\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * \\@experimental\n */\nclass CoreExtension {\n /**\n * @param {?} formlyConfig\n */\n constructor(formlyConfig) {\n this.formlyConfig = formlyConfig;\n this.formId = 0;\n }\n /**\n * @param {?} field\n * @return {?}\n */\n prePopulate(field) {\n this.getFieldComponentInstance(field).prePopulate();\n if (field.parent) {\n return;\n }\n /** @type {?} */\n const fieldTransforms = (field.options && field.options.fieldTransform) || this.formlyConfig.extras.fieldTransform;\n (Array.isArray(fieldTransforms) ? fieldTransforms : [fieldTransforms]).forEach((/**\n * @param {?} fieldTransform\n * @return {?}\n */\n fieldTransform => {\n if (fieldTransform) {\n console.warn(`NgxFormly: fieldTransform is deprecated since v5.0, use custom extension instead.`);\n /** @type {?} */\n const fieldGroup = fieldTransform(field.fieldGroup, field.model, (/** @type {?} */ (field.formControl)), field.options);\n if (!fieldGroup) {\n throw new Error('fieldTransform must return an array of fields');\n }\n }\n }));\n }\n /**\n * @param {?} field\n * @return {?}\n */\n onPopulate(field) {\n this.initFieldOptions(field);\n this.getFieldComponentInstance(field).onPopulate();\n if (field.fieldGroup) {\n field.fieldGroup.forEach((/**\n * @param {?} f\n * @param {?} index\n * @return {?}\n */\n (f, index) => {\n Object.defineProperty(f, 'parent', { get: (/**\n * @return {?}\n */\n () => field), configurable: true });\n Object.defineProperty(f, 'index', { get: (/**\n * @return {?}\n */\n () => index), configurable: true });\n this.formId++;\n }));\n }\n }\n /**\n * @param {?} field\n * @return {?}\n */\n postPopulate(field) {\n this.getFieldComponentInstance(field).postPopulate();\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n initFieldOptions(field) {\n /** @type {?} */\n const root = (/** @type {?} */ (field.parent));\n if (!root) {\n return;\n }\n Object.defineProperty(field, 'form', { get: (/**\n * @return {?}\n */\n () => root.formControl), configurable: true });\n Object.defineProperty(field, 'options', { get: (/**\n * @return {?}\n */\n () => root.options), configurable: true });\n Object.defineProperty(field, 'model', {\n get: (/**\n * @return {?}\n */\n () => field.key && field.fieldGroup ? getFieldValue(field) : root.model),\n configurable: true,\n });\n reverseDeepMerge(field, {\n id: getFieldId(`formly_${this.formId}`, field, field['index']),\n hooks: {},\n modelOptions: {},\n templateOptions: !field.type || !field.key ? {} : {\n label: '',\n placeholder: '',\n focus: false,\n disabled: false,\n },\n });\n if (field.lifecycle) {\n console.warn(`NgxFormly: 'lifecycle' is deprecated since v5.0, use 'hooks' instead.`);\n }\n if (field.type !== 'formly-template'\n && (field.template\n || (field.expressionProperties && field.expressionProperties.template))) {\n if (field.type) {\n console.warn(`NgxFormly: passing 'type' property is not allowed when 'template' is set.`);\n }\n field.type = 'formly-template';\n }\n if (!field.type && field.fieldGroup) {\n field.type = 'formly-group';\n }\n if (field.type) {\n this.formlyConfig.getMergedField(field);\n }\n if (field.parent && !field['autoClear'] && !isUndefined(field.defaultValue) && isUndefined(getFieldValue(field))) {\n assignFieldValue(field, field.defaultValue);\n }\n this.initFieldWrappers(field);\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n initFieldWrappers(field) {\n field.wrappers = field.wrappers || [];\n /** @type {?} */\n const fieldTemplateManipulators = Object.assign({ preWrapper: [], postWrapper: [] }, (field.templateOptions.templateManipulators || {}));\n field.wrappers = [\n ...this.formlyConfig.templateManipulators.preWrapper.map((/**\n * @param {?} m\n * @return {?}\n */\n m => m(field))),\n ...fieldTemplateManipulators.preWrapper.map((/**\n * @param {?} m\n * @return {?}\n */\n m => m(field))),\n ...field.wrappers,\n ...this.formlyConfig.templateManipulators.postWrapper.map((/**\n * @param {?} m\n * @return {?}\n */\n m => m(field))),\n ...fieldTemplateManipulators.postWrapper.map((/**\n * @param {?} m\n * @return {?}\n */\n m => m(field))),\n ].filter((/**\n * @param {?} el\n * @param {?} i\n * @param {?} a\n * @return {?}\n */\n (el, i, a) => el && i === a.indexOf(el)));\n }\n /**\n * @private\n * @param {?} field\n * @return {?}\n */\n getFieldComponentInstance(field) {\n /** @type {?} */\n const componentRef = this.formlyConfig.resolveFieldTypeRef(field);\n /** @type {?} */\n const instance = componentRef ? (/** @type {?} */ (componentRef.instance)) : {};\n return {\n prePopulate: (/**\n * @return {?}\n */\n () => instance.prePopulate && instance.prePopulate(field)),\n onPopulate: (/**\n * @return {?}\n */\n () => instance.onPopulate && instance.onPopulate(field)),\n postPopulate: (/**\n * @return {?}\n */\n () => instance.postPopulate && instance.postPopulate(field)),\n };\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @param {?} formlyConfig\n * @return {?}\n */\nfunction defaultFormlyConfig(formlyConfig) {\n return {\n types: [\n { name: 'formly-group', component: FormlyGroup },\n { name: 'formly-template', component: FormlyTemplateType },\n ],\n extensions: [\n { name: 'core', extension: new CoreExtension(formlyConfig) },\n { name: 'field-validation', extension: new FieldValidationExtension(formlyConfig) },\n { name: 'field-form', extension: new FieldFormExtension(formlyConfig) },\n { name: 'field-expression', extension: new FieldExpressionExtension() },\n ],\n };\n}\nclass FormlyModule {\n /**\n * @param {?} configService\n * @param {?=} configs\n */\n constructor(configService, configs = []) {\n if (!configs) {\n return;\n }\n configs.forEach((/**\n * @param {?} config\n * @return {?}\n */\n config => configService.addConfig(config)));\n }\n /**\n * @param {?=} config\n * @return {?}\n */\n static forRoot(config = {}) {\n return {\n ngModule: FormlyModule,\n providers: [\n { provide: FORMLY_CONFIG, multi: true, useFactory: defaultFormlyConfig, deps: [FormlyConfig] },\n { provide: FORMLY_CONFIG, useValue: config, multi: true },\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: config, multi: true },\n FormlyConfig,\n FormlyFormBuilder,\n ],\n };\n }\n /**\n * @param {?=} config\n * @return {?}\n */\n static forChild(config = {}) {\n return {\n ngModule: FormlyModule,\n providers: [\n { provide: FORMLY_CONFIG, useValue: config, multi: true },\n { provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: config, multi: true },\n FormlyFormBuilder,\n ],\n };\n }\n}\nFormlyModule.ɵfac = function FormlyModule_Factory(t) { return new (t || FormlyModule)(ɵngcc0.ɵɵinject(FormlyConfig), ɵngcc0.ɵɵinject(FORMLY_CONFIG, 8)); };\nFormlyModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyModule });\nFormlyModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[CommonModule]] });\n/** @nocollapse */\nFormlyModule.ctorParameters = () => [\n { type: FormlyConfig },\n { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [FORMLY_CONFIG,] }] }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyModule, [{\n type: NgModule,\n args: [{\n declarations: [\n FormlyForm,\n FormlyField,\n FormlyAttributes,\n FormlyGroup,\n FormlyValidationMessage,\n FormlyTemplateType,\n ],\n entryComponents: [FormlyGroup, FormlyTemplateType],\n exports: [FormlyForm, FormlyField, FormlyAttributes, FormlyGroup, FormlyValidationMessage],\n imports: [CommonModule]\n }]\n }], function () { return [{ type: FormlyConfig }, { type: Array, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [FORMLY_CONFIG]\n }] }]; }, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyModule, { declarations: function () { return [FormlyForm, FormlyField, FormlyAttributes, FormlyGroup, FormlyValidationMessage, FormlyTemplateType]; }, imports: function () { return [CommonModule]; }, exports: function () { return [FormlyForm, FormlyField, FormlyAttributes, FormlyGroup, FormlyValidationMessage]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyForm, FormlyField, FormlyAttributes, FORMLY_CONFIG, FormlyConfig, FormlyFormBuilder, FieldType, Field, FieldArrayType, FieldWrapper, FormlyModule, defineHiddenProp as ɵdefineHiddenProp, reverseDeepMerge as ɵreverseDeepMerge, getFieldInitialValue as ɵgetFieldInitialValue, wrapProperty as ɵwrapProperty, defaultFormlyConfig as ɵa, CoreExtension as ɵe, FieldExpressionExtension as ɵh, FieldFormExtension as ɵg, FieldValidationExtension as ɵf, FormlyTemplateType as ɵd, FormlyGroup as ɵb, FormlyValidationMessage as ɵc };\n\n","<div *ngIf=\"steps === undefined\" class=\"overlay-div\">\n <div class=\"overlay-spinner\">\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<ng-container *ngIf=\"steps?.length > 0\">\n <form id=\"form\" [formGroup]=\"formArray\">\n <section class=\"section__appform\">\n <div class=\"section--header container\">\n <div class=\"comp--logo\"><span></span></div>\n <div class=\"comp--info\">\n <div>Application Form</div>\n <div class=\"comp--name\">UEFA {{ (formtheme$ | async)?.name }}</div>\n </div>\n </div>\n </section>\n <section class=\"section__steps section__fo-form\">\n <div class=\"container-fluid\">\n <div class=\"section--header\">\n <h2 class=\"step--title branding-color\">\n {{ steps[activedStep || 0]?.label }}\n </h2>\n\n </div>\n <mat-horizontal-stepper\n class=\"col-12 p-0\"\n [@.disabled]=\"true\"\n [linear]=\"false\"\n labelPosition=\"bottom\"\n [selectedIndex]=\"activedStep\"\n (selectionChange)=\"handleStepperSelectionChange($event)\"\n >\n <mat-step\n *ngFor=\"let step of steps; let index = index; let last = last\"\n [stepControl]=\"step[index]\"\n >\n <div class=\"section--content\">\n <div>\n <div class=\"col__data\">\n <ng-container *ngIf=\"!showLoading\">\n <formly-form\n [form]=\"formArray.at(index)\"\n [model]=\"model\"\n [fields]=\"step.fields\"\n [options]=\"options[index]\"\n (modelChange)=\"onModelChange($event)\"\n >\n </formly-form>\n </ng-container>\n </div>\n <!-- <div class=\"col-sm-6 col__uefaman\"></div> -->\n </div>\n </div>\n <div class=\"section--footer col-12 col-xl-6 float-right\">\n <div>\n <div class=\"btn-group justify-content-end align-items-center\">\n <button\n mat-flat-button\n type=\"button\"\n color=\"primary\"\n type=\"button\"\n class=\"btn-big col-sm\"\n (click)=\"importData()\"\n [disabled]=\"isImportUnavailable\"\n *ngIf=\"activedStep===personalDetailsStep\"\n >\n {{ 'form.import-data' | translate }}</button\n ><button\n matStepperPrevious\n *ngIf=\"index !== 0\"\n mat-stroked-button\n type=\"button\"\n color=\"primary\"\n class=\"btn-big col-sm\"\n (click)=\"prevStep(index)\"\n >\n {{ 'form.back' | translate }}\n </button>\n <button\n matStepperNext\n *ngIf=\"!last\"\n mat-flat-button\n type=\"button\"\n color=\"primary\"\n class=\"btn-big col-sm\"\n [disabled]=\"index===0 ? formArray.at(index).invalid : !formArray.at(index).valid\"\n (click)=\"nextStep(index)\"\n >\n {{ 'form.next' | translate }}\n </button>\n\n<!-- <button-->\n<!-- *ngIf=\"last\"-->\n<!-- mat-flat-button-->\n<!-- type=\"button\"-->\n<!-- color=\"primary\"-->\n<!-- [disabled]=\"!isPdfAvailable\"-->\n<!-- type=\"button\"-->\n<!-- class=\"btn-big col-sm\"-->\n<!-- (click)=\"getPdf()\"-->\n<!-- >-->\n<!-- {{ 'form.create-pdf' | translate }}-->\n<!-- </button>-->\n <button\n *ngIf=\"last\"\n mat-flat-button\n type=\"button\"\n color=\"primary\"\n [disabled]=\"!formArray.valid || submitedForm\"\n type=\"button\"\n class=\"btn-big col-sm\"\n (click)=\"submit()\"\n >\n {{ 'form.submit' | translate }}\n </button>\n </div>\n </div>\n </div>\n </mat-step>\n\n </mat-horizontal-stepper>\n </div>\n </section>\n </form>\n</ng-container>\n","import { ImportDataComponent } from './../import-data/import-data.component';\nimport {\n PrintFormSuccess,\n PrintFormFailed,\n LoadDataFromOtherForm,\n LoadDataFromOtherFormSuccess,\n LoadAutoFillModelForFoSuccess\n} from './../../store/actions/form.actions';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { FormConfigToFormlyService } from '@projects-shared/services/form-config-to-formly.service';\nimport {\n LoadFormTemplateForFo,\n AutoSaveFailed,\n AutoSaveSuccess,\n AutoSaveChangeLabel,\n ResetFormModel,\n PrintForm\n} from '@front-office/store/actions/form.actions';\nimport { Subscription } from 'rxjs/Subscription';\nimport { Component, OnInit, OnDestroy } from '@angular/core';\nimport { FormGroup, FormArray } from '@angular/forms';\nimport { FormlyFormOptions } from '@ngx-formly/core';\nimport { Observable, Subject, combineLatest } from 'rxjs';\nimport {\n Store,\n Select,\n Actions,\n ofActionDispatched,\n ofActionSuccessful\n} from '@ngxs/store';\nimport { UserState } from '@front-office/store/states/user.state';\nimport { FormState } from '@front-office/store/states/form.state';\nimport * as _ from 'lodash';\nimport { StepperSelectionEvent } from '@angular/cdk/stepper';\nimport { ThemeService } from '@front-office/services/theme.service';\nimport {\n SendAnswers,\n TryAutoSave\n} from '@front-office/store/actions/form.actions';\nimport { FormTheme } from '@projects-shared/models/form-theme.model';\nimport { FormModel } from '@projects-shared/models/form.model';\nimport {\n debounceTime,\n tap,\n distinctUntilChanged,\n skip,\n skipUntil,\n filter\n} from 'rxjs/operators';\nimport { RemoveImageTakenLocally } from '@projects-shared/store/actions/profile-picture.actions';\nimport { TranslateService } from '@ngx-translate/core';\nimport { FormAppereanceService } from '@projects-shared/services/form-appearance.service';\nimport { UserModel } from '@front-office/models/user.model';\nimport { MatDialog } from '@angular/material/dialog';\nimport { IdScanningSkipEventService } from '@projects-shared/services/id-scanning-skip-event.service';\n\n@Component({\n selector: 'app-form-render',\n templateUrl: './form-render.component.html',\n styleUrls: [\n '../../../../../shared/styles/shared-component/form-render.component.scss',\n './form-render.component.scss'\n ]\n})\nexport class FormRenderComponent implements OnInit, OnDestroy {\n @Select(UserState.getUser)\n user$: Observable<UserModel>;\n\n @Select(FormState.accreditationForm)\n form$: Observable<FormModel[]>;\n\n @Select(FormState.selectedFormTheme)\n formtheme$: Observable<FormTheme>;\n\n @Select(FormState.previousModelSaved)\n prevModel$: Observable<any>;\n\n @Select(FormState.isPreviousModelCompleted)\n isPrevModelCompleted$: Observable<boolean>;\n\n @Select(FormState.formAllowsChanges)\n formAllowsChanges$: Observable<boolean>;\n\n @Select(FormState.invitationSiteIds)\n invitationSiteIds$: Observable<number[]>;\n\n @Select(FormState.isFormCompleted)\n isFormCompleted$: Observable<boolean>;\n\n @Select(FormState.autoFillForm)\n autoFillForm$: Observable<FormModel[]>;\n\n model: any = {};\n activedStep = 0;\n personalDetailsStep = 2;\n user: UserModel;\n subscription: Subscription;\n submitedForm = false;\n\n steps: FormModel[];\n options: FormlyFormOptions[];\n formArray: FormArray = new FormArray([]);\n\n modelChangeSubject: Subject<any> = new Subject();\n onDestroySubject: Subject<void> = new Subject();\n displaySavingSubject: Subject<boolean> = new Subject();\n\n showLoading = true;\n isPdfAvailable = false;\n isImportUnavailable = false;\n\n constructor(\n private store: Store,\n private themeService: ThemeService,\n private translateService: TranslateService,\n private fcToFormly: FormConfigToFormlyService,\n private actions$: Actions,\n private formAppearenceService: FormAppereanceService,\n private dialog: MatDialog,\n private idScanningSkipEventService: IdScanningSkipEventService\n ) {\n this.subscription = new Subscription();\n }\n\n ngOnInit(): void {\n this.store.dispatch(new LoadFormTemplateForFo());\n this.subscribeToSetUser();\n this.subscribeToLoadFormTemplate();\n this.subscribeToStartToManageTheme();\n this.subscribeToStartAutoSave();\n this.manageDisplayOfAutoSaveMessage();\n this.subscribeToManageModelData();\n this.subscribeToDisableForm();\n this.loadTranslations();\n this.subscribeToAutoFillForm();\n\n this.subscription.add(\n this.idScanningSkipEventService.shouldSkip\n .subscribe(shouldSkip => {\n if (shouldSkip) {\n this.nextStep(this.activedStep);\n this.idScanningSkipEventService.reset();\n document.getElementById(\"form\").scrollIntoView({ behavior: \"smooth\" });\n }\n })\n );\n\n this.subscription.add(\n this.idScanningSkipEventService.navigateToMainForm.subscribe(navigate=>{\n\n if(navigate){\n var personalDetailsStepIndex = this.steps.findIndex(g => g.fields.some(f => f.key == \"name\" || f.key == \"dob\" || f.key == \"surname\"));\n this.navigateToStep(personalDetailsStepIndex);\n this.idScanningSkipEventService.resetNavigateToForm();\n document.getElementById(\"form\").scrollIntoView({ behavior: \"smooth\" });\n }\n })\n )\n\n this.subscription.add(\n this.isFormCompleted$.subscribe((isCompleted) => {\n this.isPdfAvailable = isCompleted;\n this.isImportUnavailable = isCompleted;\n })\n );\n this.subscription.add(\n this.actions$\n .pipe(ofActionDispatched(PrintFormSuccess, PrintFormFailed))\n .subscribe(() => (this.isPdfAvailable = true))\n );\n this.subscription.add(\n this.actions$\n .pipe(ofActionSuccessful(LoadDataFromOtherFormSuccess))\n .subscribe(() => this.store.dispatch(new TryAutoSave(this.model)))\n );\n }\n\n private subscribeToDisableForm() {\n this.subscription.add(\n this.isPrevModelCompleted$\n .pipe(\n filter((isCompleted) => isCompleted === true),\n tap(() => {\n this.formAppearenceService.disableAllNotPdsControls(this.formArray);\n })\n )\n .subscribe()\n );\n }\n\n private subscribeToManageModelData() {\n this.subscription.add(\n combineLatest([\n this.invitationSiteIds$.pipe(filter((x) => !!x)),\n this.prevModel$,\n this.formAllowsChanges$\n ]).subscribe(([sitesIds, prevModel, formAllowsChanges]) => {\n if (!!prevModel) {\n // Disabled Terms && Conditions if it's already checked\n if (\n !!prevModel.legalconditions &&\n !!prevModel.legalconditions.legalconditions &&\n !!prevModel.legalconditions.legalconditions.agree\n ) {\n if (formAllowsChanges) {\n this.formAppearenceService.disableAllFields(\n this.formArray\n );\n this.fcToFormly.forceDisableForExpiryDates(this.steps);\n }\n const termsAndConditionsAccepted =\n prevModel.legalconditions.legalconditions.agree;\n if (\n termsAndConditionsAccepted &&\n this.formArray.controls.length > 0\n ) {\n // Disable terms & conditions if are already checked\n setTimeout(\n () =>\n this.formArray.controls[0].disable(),\n 0\n );\n }\n }\n this.model = prevModel ? _.cloneDeep(prevModel) : {};\n this.model.sites = sitesIds.reduce((acc, curr) => {\n acc = { ...acc, [curr]: true };\n return acc;\n }, {});\n this.options.forEach(\n (op) =>\n (op.formState = {\n mainModel: this.model\n })\n );\n this.showLoading = false;\n }\n })\n );\n }\n\n private subscribeToSetUser() {\n this.subscription.add(\n this.user$.subscribe((x) => {\n this.user = x;\n })\n );\n }\n\n private subscribeToLoadFormTemplate() {\n const actualUsefulFormTemplate$ = this.form$.pipe(skip(1));\n this.subscription.add(\n actualUsefulFormTemplate$.subscribe((res) => {\n this.steps = _.cloneDeep(res);\n this.fcToFormly.managePostCodeValidation(\n this.steps,\n this.onDestroySubject,\n this.store.selectSnapshot(ConfigState.getConfig)\n );\n this.options = res.map(() => ({\n formState: {\n mainModel: this.model\n }\n }));\n this.formArray = new FormArray(res.map(() => new FormGroup({})));\n\n this.personalDetailsStep = this.steps.findIndex(g => g.fields.some(f => f.key == \"name\" || f.key == \"dob\" || f.key == \"surname\"));\n this.addContactDetailsTitle(res);\n this.addPersonalDetailsTitle(res);\n })\n );\n }\n\n\n private subscribeToAutoFillForm() {\n this.subscription.add(this.autoFillForm$.pipe(skip(1)).subscribe((result: any) => {\n this.model = _.cloneDeep({ ...this.model, ...result.formModel });\n this.options = this.steps.map(() => ({\n formState: {\n mainModel: this.model\n }\n }));\n this.formArray = new FormArray(this.steps.map(() => new FormGroup({})));\n this.onModelChange(this.model);\n }));\n }\n\n private addContactDetailsTitle(sections: FormModel[]) {\n for (const [index, section] of sections.entries()) {\n if (section.fields.find(f => f.key == 'phone' || f.key == 'email')) {\n const contactDetailsTitleField = {\n key: 'contact-details',\n type: 'contact-details-title'\n };\n\n this.steps[index].fields.unshift(contactDetailsTitleField);\n }\n }\n }\n\n private addPersonalDetailsTitle(sections: FormModel[]) {\n for (const [index, section] of sections.entries()) {\n if (section.fields.find(f => f.key == 'name')) {\n const personalDetailsTitleField = {\n key: 'personal-details',\n type: 'personal-details-title'\n };\n\n this.steps[index].fields.unshift(personalDetailsTitleField);\n }\n }\n }\n\n private subscribeToStartToManageTheme() {\n this.subscription.add(\n this.formtheme$.subscribe((res) => {\n if (!!res && !!res.abbr && res.abbr !== '') {\n this.themeService.setTheme(res.abbr);\n }\n })\n );\n }\n\n private subscribeToStartAutoSave() {\n /** To avoid a dispatch to auto save when first loading the saved model,\n * since disabling form triggers the formly model change event,\n * we wait that previous model and state are completely loaded and all\n * actions on form are done.\n * Since formly model change is triggered after 100ms we debounce 500ms\n * the observables that trigger model change\n */\n this.subscription.add(\n this.modelChangeSubject\n .pipe(\n skipUntil(\n combineLatest([this.prevModel$, this.isPrevModelCompleted$]).pipe(\n debounceTime(500),\n filter(([model, completed]) => !!model && completed !== undefined)\n )\n ),\n tap(() => {\n this.displaySavingSubject.next(true);\n }),\n debounceTime(1500)\n )\n .subscribe((model) => {\n this.store.dispatch(new TryAutoSave(model));\n })\n );\n }\n\n private manageDisplayOfAutoSaveMessage() {\n this.subscription.add(\n this.displaySavingSubject\n .pipe(distinctUntilChanged())\n .subscribe(\n (value) =>\n value &&\n this.store.dispatch(\n new AutoSaveChangeLabel('Saving...', 'save-status__saving')\n )\n )\n );\n this.subscription.add(\n this.actions$\n .pipe(ofActionDispatched(AutoSaveSuccess, AutoSaveFailed))\n .subscribe(() => this.displaySavingSubject.next(false))\n );\n }\n\n loadTranslations() {\n let locale = 'en';\n if (this.translateService.getBrowserLang() !== undefined) {\n locale = this.translateService.getBrowserLang();\n }\n this.subscription.add(\n this.translateService.getTranslation(locale).subscribe((data: any) => {\n this.translateService.setTranslation(locale, data);\n })\n );\n }\n\n ngOnDestroy() {\n this.store.dispatch(new RemoveImageTakenLocally());\n this.subscription.unsubscribe();\n this.onDestroySubject.next();\n this.onDestroySubject.complete();\n\n this.store.dispatch(new ResetFormModel());\n }\n\n handleStepperSelectionChange(event: StepperSelectionEvent) {\n this.activedStep = event.selectedIndex;\n }\n\n submit() {\n this.submitedForm = true;\n this.store.dispatch(new SendAnswers(this.model));\n }\n\n getPdf() {\n this.isPdfAvailable = false;\n this.store.dispatch(new PrintForm());\n }\n\n prevStep(step: number): void {\n this.activedStep = step - 1;\n }\n\n nextStep(step: number): void {\n this.activedStep = step + 1;\n }\n\n navigateToStep(step:number):void{\n this.activedStep = step;\n }\n\n onModelChange(model: any) {\n this.modelChangeSubject.next(model);\n }\n\n importData() {\n const dialogRef = this.dialog.open(ImportDataComponent, {\n minWidth: '100%',\n width: '770px',\n height: '560px',\n panelClass: 'modal__full-width'\n });\n\n dialogRef\n .afterClosed()\n .pipe(filter((formId) => !!formId))\n .subscribe((formId) =>\n this.store.dispatch(new LoadDataFromOtherForm(formId))\n );\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { AuthenticationService } from '@front-office/services/authentication.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Store } from '@ngxs/store';\nimport { RouterState } from '@ngxs/router-plugin';\nimport { LocalStorageService } from '@front-office/services/local-storage.service';\n\n@Component({\n selector: 'app-landing',\n templateUrl: './landing.component.html',\n styleUrls: ['./landing.component.scss']\n})\nexport class LandingComponent implements OnInit {\n constructor(\n private authService: AuthenticationService,\n private translateService: TranslateService,\n private store: Store,\n private localStorage: LocalStorageService\n ) {}\n\n ngOnInit() {\n this.loadTranslations();\n }\n\n loadTranslations() {\n let locale = 'en';\n if (this.translateService.getBrowserLang() !== undefined) {\n locale = this.translateService.getBrowserLang();\n }\n this.translateService.getTranslation(locale).subscribe((data: any) => {\n this.translateService.setTranslation(locale, data);\n });\n }\n\n showLogin() {\n this.authService.showLogin();\n }\n\n register() {\n const routerState: any = this.store.selectSnapshot(RouterState.state);\n const invitationId = routerState?.queryParams?.invitationId;\n\n if (!!invitationId) {\n this.localStorage.add('invitationId', invitationId);\n }\n this.authService.register();\n }\n}\n","<div class=\"sp-container\">\n <div class=\"sp-content\">\n <section class=\"section__landing\">\n\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-12\">\n <h1 class=\"section--title\">{{ 'landing.title' | translate }}</h1>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md pb-5\">\n <div class=\"section--summary\">\n {{ 'landing.text-summary' | translate }}\n </div>\n <div class=\"section--content\">\n {{ 'landing.text-content' | translate }}\n </div>\n <div class=\"btn-group\">\n <button\n class=\"btn-login btn-big btn__144\"\n mat-stroked-button\n color=\"primary\"\n (click)=\"showLogin()\"\n >\n {{ 'landing.login' | translate }}\n </button>\n <button\n class=\"btn-big btn__192\"\n mat-flat-button\n color=\"primary\"\n (click)=\"register()\"\n >\n {{ 'landing.register' | translate }}\n </button>\n </div>\n\n </div>\n <div class=\"col__img col-md-auto \">\n <img\n class=\"illustration\"\n src=\"/assets/images/branding/corp/uefa-man.svg\"\n />\n </div>\n </div>\n </div>\n </section>\n </div>\n</div>\n","import {\n NgModule,\n Directive,\n Input,\n TemplateRef,\n ViewContainerRef,\n OnInit\n} from '@angular/core';\n\nexport class NgLetContext {\n $implicit: any = null;\n ngLet: any = null;\n}\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[ngLet]'\n})\nexport class NgLetDirective implements OnInit {\n private context = new NgLetContext();\n\n @Input()\n set ngLet(value: any) {\n this.context.$implicit = this.context.ngLet = value;\n }\n\n constructor(\n private vcr: ViewContainerRef,\n private templateRef: TemplateRef<NgLetContext>\n ) {}\n\n ngOnInit() {\n this.vcr.createEmbeddedView(this.templateRef, this.context);\n }\n}\n\n@NgModule({\n declarations: [NgLetDirective],\n exports: [NgLetDirective]\n})\nexport class NgLetModule {}\n","<mat-card (click)=\"onClick()\" class=\"invitation\">\n <div class=\"invitation--header\">\n <img mat-card-image [src]=\"imageSrc\" class=\"invitation--header__bg\" />\n <div class=\"invitation--header__logo\">\n <img [src]=\"logoSrc\" width=\"80\" *ngIf=\"!invitationInput.eventNameAbbreviation || invitationInput.eventNameAbbreviation !== 'ballondor24'\" />\n </div>\n </div>\n\n <mat-card-title>{{ invitationInput.eventName }}</mat-card-title>\n\n <mat-card-subtitle class=\"invitation--site\" *ngIf=\"!!invitationInput.sites && invitationInput.sites.length\">\n {{ invitationInput.sites.join(', ') }}</mat-card-subtitle>\n\n <mat-card-subtitle class=\"invitation--organisation mb-4\">\n <span class=\"text-muted mr-2\">{{\n 'home.card-label-organisation' | translate\n }}</span>\n <span></span>{{ invitationInput.organizationName }}</mat-card-subtitle>\n <mat-card-footer class=\"btn-group m-0 text-center\">\n <button mat-flat-button class=\"col-12\" color=\"primary\" (click)=\"onClick()\">\n {{ btnText | uppercase }}\n </button>\n </mat-card-footer>\n</mat-card>\n","import { BasicForm } from '@front-office/models/forms-with-status.model';\nimport { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-invitation-card',\n templateUrl: './invitation-card.component.html',\n styleUrls: ['./invitation-card.component.scss']\n})\nexport class InvitationCardComponent implements OnInit {\n @Input() invitationInput: BasicForm;\n @Input() btnText: string;\n\n @Output() idClicked: EventEmitter<{ id: string; eventId: string }>;\n\n imageSrc = '';\n logoSrc = '';\n\n constructor() {\n this.idClicked = new EventEmitter<{ id: string; eventId: string }>();\n }\n\n ngOnInit() {\n this.imageSrc = `/assets/images/branding/${this.invitationInput.eventNameAbbreviation}/background__small.png`;\n this.logoSrc = `/assets/images/branding/${this.invitationInput.eventNameAbbreviation}/logo.svg`;\n }\n\n onClick() {\n const output = {\n id: this.invitationInput.id,\n eventId: this.invitationInput.eventId\n };\n this.idClicked.emit(output);\n }\n}\n","<div class=\"page-heading\">\n <header class=\"header\">\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12\">\n <h1 class=\"title\">\n {{ 'home.section-title' | translate }}\n </h1>\n </div>\n </div>\n </div>\n </header>\n</div>\n\n<div class=\"home-page\">\n <div class=\"container-fluid\">\n <ng-container *ngLet=\"{ forms: forms$ | async } as model\">\n <section class=\"section\">\n <h2 class=\"section--title\">\n {{ 'home.section-incomplete-title' | translate }}\n </h2>\n <div\n class=\"section--content row justify-content-center\"\n *ngIf=\"!model.forms\"\n >\n <div\n style=\"min-height: 200px\"\n class=\"d-flex align-items-center justify-content-center\"\n >\n <mat-spinner></mat-spinner>\n </div>\n </div>\n <div\n class=\"section--content row\"\n *ngIf=\"model.forms?.incomplete?.length\"\n >\n <app-invitation-card\n class=\"col-auto my-3\"\n *ngFor=\"let form of model.forms.incomplete\"\n [invitationInput]=\"form\"\n [btnText]=\"'home.card-btn-text-incomplete' | translate\"\n (idClicked)=\"onClick($event)\"\n ></app-invitation-card>\n </div>\n <div\n class=\"section--content row justify-content-center\"\n *ngIf=\"model.forms?.incomplete?.length === 0\"\n >\n <section class=\"section section__empty\">\n <div class=\"empty--img\">\n <img\n src=\"/assets/images/no-profiles.svg\"\n alt=\"{{ 'home.section-incomplete-empty-label' | translate }}\"\n />\n </div>\n\n <h3 class=\"section--title\">\n {{ 'home.section-incomplete-empty-label' | translate }}\n </h3>\n\n <p class=\"section--subtitle\">\n {{ 'home.section-incomplete-empty-msg' | translate }}\n </p>\n </section>\n </div>\n </section>\n\n <section class=\"section\">\n <h2 class=\"section--title\">\n {{ 'home.section-submitted-title' | translate }}\n </h2>\n <div\n class=\"section--content row\"\n *ngIf=\"model.forms?.submitted?.length\"\n >\n <app-invitation-card\n *ngFor=\"let form of model.forms.submitted\"\n class=\"col-auto my-3\"\n [invitationInput]=\"form\"\n (idClicked)=\"onClick($event)\"\n [btnText]=\"'home.card-btn-text-complete' | translate\"\n ></app-invitation-card>\n </div>\n <div\n class=\"section--content row justify-content-center\"\n *ngIf=\"model.forms?.submitted?.length === 0\"\n >\n <section class=\"section section__empty\">\n <div class=\"empty--img\">\n <img\n src=\"/assets/images/no-profiles.svg\"\n alt=\"{{ 'home.section-submitted-empty-label' | translate }}\"\n />\n </div>\n\n <h3 class=\"section--title\">\n {{ 'home.section-submitted-empty-label' | translate }}\n </h3>\n\n <p class=\"section--subtitle\">\n {{ 'home.section-submitted-empty-msg' | translate }}\n </p>\n </section>\n </div>\n <div\n class=\"section--content row justify-content-center\"\n *ngIf=\"!model.forms\"\n >\n <div\n style=\"min-height: 200px\"\n class=\"d-flex align-items-center justify-content-center\"\n >\n <mat-spinner></mat-spinner>\n </div>\n </div>\n </section>\n </ng-container>\n </div>\n</div>\n","import { Component, OnInit } from '@angular/core';\nimport { Select, Store } from '@ngxs/store';\nimport { Observable } from 'rxjs';\nimport { FormsDividedByStatusOutput } from '@front-office/models/forms-with-status.model';\nimport { FormState } from '@front-office/store/states/form.state';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { TranslateService } from '@ngx-translate/core';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.scss']\n})\nexport class HomeComponent implements OnInit {\n @Select(FormState.availableForms)\n forms$: Observable<FormsDividedByStatusOutput>;\n\n constructor(\n private translateService: TranslateService,\n private store: Store\n ) {}\n\n ngOnInit() {\n this.loadTranslations();\n }\n loadTranslations() {\n let locale = 'en';\n if (this.translateService.getBrowserLang() !== undefined) {\n locale = this.translateService.getBrowserLang();\n }\n this.translateService.getTranslation(locale).subscribe((data: any) => {\n this.translateService.setTranslation(locale, data);\n });\n }\n onClick(output: { id: string; eventId: string }) {\n this.store.dispatch(\n new Navigate([`/event/${output.eventId}/form/${output.id}`])\n );\n }\n}\n","export class JwtUtils {\n public static parseJwt(token) {\n const base64Url = token.split('.')[1];\n const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');\n const jsonPayload = decodeURIComponent(\n atob(base64)\n .split('')\n .map(c => {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n })\n .join('')\n );\n\n return JSON.parse(jsonPayload);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { shareReplay } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ConnectionService {\n private connection$: Observable<boolean>;\n\n public constructor() {\n this.connection$ = new Observable<boolean>((observer) => {\n const offline = () => observer.next(false);\n const online = () => observer.next(true);\n\n window.addEventListener('offline', offline);\n window.addEventListener('online', online);\n\n return () => {\n window.removeEventListener('offline', offline);\n window.removeEventListener('online', online);\n };\n }).pipe(shareReplay(1));\n }\n\n public monitor() {\n return this.connection$;\n }\n}\n\nexport default ConnectionService;\n","<ng-container *ngIf=\"{ user: user$ | async } as model\">\n <ng-container *ngIf=\"model.user && model.user.UID !== null\">\n <header class=\"header\">\n <div class=\"container-fluid\">\n <div class=\"row justify-content-between align-items-center\">\n <div class=\"col-auto px-1\" *ngIf=\"router.url.includes('/home')\">\n <img src=\"/assets/images/branding/corp/logo.png\" alt=\"UEFA\" width=\"40\" height=\"40\" />\n </div>\n <div class=\"col-auto d-none d-sm-block\" *ngIf=\"!router.url.includes('/home')\">\n <button mat-button class=\"branding-color btn-back bg-light btn-small\" routerLink=\"/home\" color=\"primary\">\n <mat-icon>keyboard_backspace</mat-icon> back\n </button>\n </div>\n <div class=\"col\" *ngIf=\"!router.url.includes('/home')\">\n <span *ngIf=\"saveStatus$ | async as saveStatus\" class=\"ml-2 save-status\" [ngClass]=\"saveStatus.cssClass\">\n {{ saveStatus.label }}\n </span>\n </div>\n\n <div class=\"col-auto\">\n <button mat-button [matMenuTriggerFor]=\"menu\" class=\"header-nav\">\n <span>\n <div *ngIf=\"!!model.user.firstName && !!model.user.lastName\">\n <div class=\"user\">\n <img class=\"user--img\" [src]=\"model.user.photoUrl\" *ngIf=\"!!model.user.photoUrl; else empty\" />\n <span class=\"user--label m-0\">\n {{ model.user.lastName }} {{ model.user.firstName }}</span>\n </div>\n </div>\n </span>\n <span>\n <div *ngIf=\"!model.user.firstName && !model.user.lastName\">\n <div class=\"user\">\n <img class=\"user--img\" [src]=\"model.user.photoUrl\" *ngIf=\"!!model.user.photoUrl; else empty\" />\n <span class=\"user--label m-0\"> {{ model.user.email }}</span>\n </div>\n </div>\n </span>\n <mat-icon class=\"header-nav--icon\">arrow_drop_down</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n <div class=\"header-nav--content\">\n <div class=\"d-flex no-gutters\" *ngIf=\"!!model.user?.firstName && !!model.user?.lastName\">\n <div class=\"col-auto\">\n <img class=\"user--img user--img__big\" *ngIf=\"!!model.user.photoUrl; else emptyBig\"\n [src]=\"model.user.photoUrl\" />\n </div>\n <div class=\"col\">\n <div class=\"user--label\">\n {{ model.user.lastName }} {{ model.user.firstName }}\n </div>\n <div class=\"user--email text-muted mb-3\">\n {{ model.user.email }}\n </div>\n <div class=\"user--logout\">\n <a mat-button color=\"primary\" class=\"btn-link\" (click)=\"logout()\">\n {{ 'home.menu-logout' | translate }}\n </a>\n </div>\n </div>\n </div>\n\n <div class=\"d-flex no-gutters\" *ngIf=\"!model.user.firstName && !model.user.lastName\">\n <div class=\"col-auto\">\n <img class=\"user--img user--img__big\" *ngIf=\"!!model.user.photoUrl; else emptyBig\"\n [src]=\"model.user.photoUrl\" />\n </div>\n <div class=\"col\">\n <div class=\"user--email mb-1\">{{ model.user.email }}</div>\n <div class=\"user--logout\">\n <a mat-button color=\"primary\" class=\"btn-link\" (click)=\"logout()\">\n Logout\n </a>\n </div>\n </div>\n </div>\n </div>\n </mat-menu>\n </div>\n </div>\n </div>\n </header>\n </ng-container>\n</ng-container>\n<ng-template #empty><span class=\"user--img__empty\">\n <mat-icon>person_outline</mat-icon>\n </span></ng-template>\n<ng-template #emptyBig><span class=\"user--img__empty user--img__empty__big\">\n <mat-icon>person_outline</mat-icon>\n </span></ng-template>\n<router-outlet></router-outlet>\n","import { Component, OnInit, OnDestroy, Inject } from '@angular/core';\nimport { Store, Select, Actions, ofActionDispatched } from '@ngxs/store';\nimport { UserState } from '@front-office/store/states/user.state';\nimport { Observable, timer, Subscription } from 'rxjs';\nimport { UserModel } from '@front-office/models/user.model';\nimport {\n LoadUserAction,\n LogoutUserAction,\n RenewToken,\n RenewTokenSuccess\n} from '@front-office/store/actions/user.actions';\nimport { FormState } from '@front-office/store/states/form.state';\nimport { Router } from '@angular/router';\nimport { AutoSaveChangeLabel } from '@front-office/store/actions/form.actions';\nimport { JwtUtils } from '@projects-shared/utils/jwt.utils';\nimport { ApmService } from '@projects-shared/services/apm-rum';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { ConnectionService } from '@projects-shared/services/connection.service';\n\n@Component({\n selector: 'app-layout-default',\n templateUrl: './layout-default.component.html',\n styleUrls: ['./layout-default.component.scss']\n})\nexport class LayoutDefaultComponent implements OnInit, OnDestroy {\n @Select(UserState.getUser)\n user$: Observable<UserModel>;\n\n @Select(FormState.saveStatus)\n saveStatus$: Observable<{ label: string; cssClass: string }>;\n\n subscription: Subscription;\n\n constructor(\n public router: Router,\n private store: Store,\n private connectionService: ConnectionService,\n private actions$: Actions,\n @Inject(ApmService) apmService: ApmService\n ) {\n this.subscription = new Subscription();\n this.store.dispatch(new LoadUserAction());\n\n this.subscription.add(\n this.user$.subscribe((user: UserModel) => {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n if (config.apmServiceName && config.apmServerUrl) {\n const apm = apmService.init({\n serviceName: config.apmServiceName,\n serverUrl: config.apmServerUrl\n });\n\n apm.setUserContext({\n uid: `${user.uid}`,\n firstName: `${user.firstName}`,\n lastName: user.lastName,\n email: user.email\n });\n }\n })\n );\n }\n\n ngOnInit() {\n this.connectionService.monitor().subscribe((isConnected) => {\n if (!isConnected) {\n this.store.dispatch(\n new AutoSaveChangeLabel('No connection', 'save-status__noconnection')\n );\n } else {\n this.store.dispatch(new AutoSaveChangeLabel('', ''));\n }\n });\n\n let idToken = sessionStorage.getItem('id_token');\n let fullToken = JwtUtils.parseJwt(idToken);\n\n this.subscription.add(\n this.actions$\n .pipe(ofActionDispatched(RenewTokenSuccess))\n .subscribe(() => {\n idToken = sessionStorage.getItem('id_token');\n fullToken = JwtUtils.parseJwt(idToken);\n })\n );\n\n this.subscription.add(\n timer(180000, 180000).subscribe((_) => {\n // 3 minutes\n console.log(\n 'token refresh in',\n fullToken.exp - Math.round(new Date().getTime() / 1000)\n );\n if (fullToken.exp - Math.round(new Date().getTime() / 1000) < 300) {\n console.log(\n 'token refresh start',\n fullToken.exp - Math.round(new Date().getTime() / 1000)\n );\n this.store.dispatch(new RenewToken());\n }\n })\n );\n }\n\n logout() {\n this.store.dispatch(new LogoutUserAction());\n }\n\n ngOnDestroy(): void {\n this.subscription.unsubscribe();\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n RouterStateSnapshot,\n} from '@angular/router';\nimport { Store } from '@ngxs/store';\nimport { UserState } from '@front-office/store/states/user.state';\nimport { Navigate, RouterState } from '@ngxs/router-plugin';\n\n@Injectable({ providedIn: 'root' })\nexport class AuthenticationGuard implements CanActivate {\n constructor(private store: Store) {}\n\n canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\n const userState = this.store.selectSnapshot(UserState.getUser);\n const routerState: any = this.store.selectSnapshot(RouterState.state);\n const invitationId =\n routerState?.queryParams && routerState?.queryParams.invitationId;\n\n if (!userState || !userState.uid) {\n const navigationArray = !!invitationId\n ? ['/landing', { invitationId }]\n : ['/landing'];\n this.store.dispatch(new Navigate(navigationArray, route.queryParams));\n return false;\n }\n\n return true;\n }\n}\n","/* eslint-disable @angular-eslint/no-empty-lifecycle-method */\nimport { Store } from '@ngxs/store';\nimport { Component, OnInit } from '@angular/core';\nimport { Navigate } from '@ngxs/router-plugin';\n\n@Component({\n selector: 'app-page-not-found',\n templateUrl: './page-not-found.component.html',\n styleUrls: ['./page-not-found.component.scss']\n})\nexport class PageNotFoundComponent implements OnInit {\n constructor(private store: Store) {}\n\n ngOnInit() {}\n\n goHome() {\n this.store.dispatch(new Navigate(['/home']));\n }\n}\n","<section class=\"section__404\">\n <div class=\"section--content\">\n <div class=\"section--msg col-lg-4 m-auto\">\n\n <div class=\"section--img\">\n <img src=\"/assets/images/error-page.svg\" alt=\"Page not Found\" />\n </div>\n <h1 class=\"section--title my-2\">Well, this is embarassing</h1>\n <p class=\"section--subtitle \">You have stumbled upon a missing page. </p>\n\n <button mat-flat-button color=\"primary\" type=\"button\" class=\"my-3\" (click)=\"goHome()\">\n return to homepage\n </button>\n\n\n </div>\n </div>\n</section>","import { Injectable } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n RouterStateSnapshot\n} from '@angular/router';\nimport { Store } from '@ngxs/store';\nimport { Navigate, RouterState } from '@ngxs/router-plugin';\nimport { UserState } from '@front-office/store/states/user.state';\n\n@Injectable({ providedIn: 'root' })\nexport class RedirectToHomeGuard implements CanActivate {\n constructor(private store: Store) {}\n\n canActivate(\n route: ActivatedRouteSnapshot,\n routerStateSnapshot: RouterStateSnapshot\n ) {\n const userFromState = this.store.selectSnapshot(UserState.getUser);\n const routerState: any = this.store.selectSnapshot(RouterState.state);\n const invitationId = routerState?.queryParams?.invitationId;\n\n if (userFromState && userFromState.uid) {\n this.store.dispatch(new Navigate(['/home'], { invitationId }));\n }\n\n return true;\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n RouterStateSnapshot,\n} from '@angular/router';\nimport { Store } from '@ngxs/store';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { map } from 'rxjs/operators';\nimport { FormState } from '@front-office/store/states/form.state';\nimport { IsFrontOfficeDeadlineOpen } from '@front-office/store/actions/form.actions';\n\n@Injectable({ providedIn: 'root' })\nexport class DeadlineGuard implements CanActivate {\n constructor(private store: Store) {}\n\n canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\n const eventId = route.params && route.params.eventId;\n\n return this.store.dispatch(new IsFrontOfficeDeadlineOpen(eventId)).pipe(\n map((_) => {\n const isOpen = this.store.selectSnapshot(FormState.isFrontOfficeOpen);\n if (isOpen) {\n return true;\n } else {\n this.store.dispatch(new Navigate(['/fo-closed']));\n return false;\n }\n })\n );\n }\n}\n","import { Store } from '@ngxs/store';\nimport { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Navigate, RouterState } from '@ngxs/router-plugin';\nimport { HistoryBackService } from '@projects-shared/services/history-back.service';\nimport { Subscription } from 'rxjs';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-server-error-page',\n templateUrl: './server-error-page.component.html',\n styleUrls: ['./server-error-page.component.scss']\n})\nexport class ServerErrorPageComponent implements OnInit, OnDestroy {\n private subscription = new Subscription();\n private urlToGo = '';\n constructor(\n private store: Store,\n private historyService: HistoryBackService,\n private router: Router\n ) {}\n\n ngOnInit() {\n this.subscription.add(\n this.historyService.previousUrl$.subscribe(url => {\n const locationUrl: any = this.store.selectSnapshot(RouterState.state);\n if (\n (url === undefined || url === null) &&\n !(locationUrl.queryParams && locationUrl.queryParams.debug)\n ) {\n this.store.dispatch(new Navigate(['/home']));\n } else {\n this.urlToGo = url;\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n refresh() {\n this.router.navigateByUrl(this.urlToGo);\n }\n}\n","<section class=\"section__404\">\n <div class=\"section--content\">\n <div class=\"section--msg col-lg-4 m-auto\">\n \n <div class=\"section--img\">\n <img src=\"/assets/images/error-page.svg\" alt=\"Page not Found\" />\n </div>\n <h1 class=\"section--title my-2\">Well, this is embarassing</h1>\n <p class=\"section--subtitle \">There seems to be a technical problem. We're working to fix it. Meanwhile you <a routerLink=\"/home\">refresh the page</a> or wait a few minutes. </p>\n \n <button mat-flat-button color=\"primary\" type=\"button\" class=\"my-3\" routerLink=\"/home\">\n return to homepage\n </button>\n \n \n </div>\n </div>\n </section>\n","export class IdScanningLogModel {\n EventID: string;\n Locale: string;\n EventDescription: string;\n IsFailure:boolean;\n isBO:boolean;\n isMobile:boolean;\n formID:string;\n\n\n constructor(eventId: string,formId:string, locale: string, eventDesc: string, isFailure:boolean = false, isMobile:boolean=false) {\n this.EventID = eventId;\n this.Locale = locale;\n this.EventDescription = eventDesc;\n this.IsFailure = isFailure;\n this.isMobile = isMobile;\n this.formID = formId;\n }\n}\n\n","import { RegulaImageResult } from \"./regula-image-result.model\";\nimport { RegulaTextResult } from \"./regula-text-result.model\";\n\nexport class DocumentScanningModel {\n eventId: string;\n imageResults: RegulaImageResult[];\n textResults: RegulaTextResult[];\n /**\n *\n */\n constructor(eventId: string, imageResults: RegulaImageResult[], textResult: RegulaTextResult[]) {\n this.eventId = eventId;\n this.imageResults = imageResults;\n this.textResults = textResult;\n }\n}\n\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { ConfigResolverService } from './config-resolver.service';\n\n@Injectable({\n providedIn: 'root'\n })\n export class TranslateApiService {\n constructor(private http: HttpClient, private configResolver: ConfigResolverService) {\n }\n\n async getTranslation(eventId: string, locale: string): Promise<any> {\n const config = await this.configResolver.getConfig()\n const url = `${config.apiUrl}/translations/event/${eventId}/${locale}`;\n\n // let result = await this.http.get(url);\n \n return this.http.get(url).toPromise();\n }\n }","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// This will be treated as a bit flag in the future, so we keep it using power-of-two values.\r\n/** Specifies a specific HTTP transport type. */\r\nexport var HttpTransportType;\r\n(function (HttpTransportType) {\r\n /** Specifies no transport preference. */\r\n HttpTransportType[HttpTransportType[\"None\"] = 0] = \"None\";\r\n /** Specifies the WebSockets transport. */\r\n HttpTransportType[HttpTransportType[\"WebSockets\"] = 1] = \"WebSockets\";\r\n /** Specifies the Server-Sent Events transport. */\r\n HttpTransportType[HttpTransportType[\"ServerSentEvents\"] = 2] = \"ServerSentEvents\";\r\n /** Specifies the Long Polling transport. */\r\n HttpTransportType[HttpTransportType[\"LongPolling\"] = 4] = \"LongPolling\";\r\n})(HttpTransportType || (HttpTransportType = {}));\r\n/** Specifies the transfer format for a connection. */\r\nexport var TransferFormat;\r\n(function (TransferFormat) {\r\n /** Specifies that only text data will be transmitted over the connection. */\r\n TransferFormat[TransferFormat[\"Text\"] = 1] = \"Text\";\r\n /** Specifies that binary data will be transmitted over the connection. */\r\n TransferFormat[TransferFormat[\"Binary\"] = 2] = \"Binary\";\r\n})(TransferFormat || (TransferFormat = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// 0, 2, 10, 30 second delays before reconnect attempts.\r\nconst DEFAULT_RETRY_DELAYS_IN_MILLISECONDS = [0, 2000, 10000, 30000, null];\r\n/** @private */\r\nexport class DefaultReconnectPolicy {\r\n constructor(retryDelays) {\r\n this._retryDelays = retryDelays !== undefined ? [...retryDelays, null] : DEFAULT_RETRY_DELAYS_IN_MILLISECONDS;\r\n }\r\n nextRetryDelayInMilliseconds(retryContext) {\r\n return this._retryDelays[retryContext.previousRetryCount];\r\n }\r\n}\r\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nexport class HeaderNames {\r\n}\r\nHeaderNames.Authorization = \"Authorization\";\r\nHeaderNames.Cookie = \"Cookie\";\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Represents an HTTP response. */\r\nexport class HttpResponse {\r\n constructor(statusCode, statusText, content) {\r\n this.statusCode = statusCode;\r\n this.statusText = statusText;\r\n this.content = content;\r\n }\r\n}\r\n/** Abstraction over an HTTP client.\r\n *\r\n * This class provides an abstraction over an HTTP client so that a different implementation can be provided on different platforms.\r\n */\r\nexport class HttpClient {\r\n get(url, options) {\r\n return this.send({\r\n ...options,\r\n method: \"GET\",\r\n url,\r\n });\r\n }\r\n post(url, options) {\r\n return this.send({\r\n ...options,\r\n method: \"POST\",\r\n url,\r\n });\r\n }\r\n delete(url, options) {\r\n return this.send({\r\n ...options,\r\n method: \"DELETE\",\r\n url,\r\n });\r\n }\r\n /** Gets all cookies that apply to the specified URL.\r\n *\r\n * @param url The URL that the cookies are valid for.\r\n * @returns {string} A string containing all the key-value cookie pairs for the specified URL.\r\n */\r\n // @ts-ignore\r\n getCookieString(url) {\r\n return \"\";\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { HeaderNames } from \"./HeaderNames\";\r\nimport { HttpClient } from \"./HttpClient\";\r\n/** @private */\r\nexport class AccessTokenHttpClient extends HttpClient {\r\n constructor(innerClient, accessTokenFactory) {\r\n super();\r\n this._innerClient = innerClient;\r\n this._accessTokenFactory = accessTokenFactory;\r\n }\r\n async send(request) {\r\n let allowRetry = true;\r\n if (this._accessTokenFactory && (!this._accessToken || (request.url && request.url.indexOf(\"/negotiate?\") > 0))) {\r\n // don't retry if the request is a negotiate or if we just got a potentially new token from the access token factory\r\n allowRetry = false;\r\n this._accessToken = await this._accessTokenFactory();\r\n }\r\n this._setAuthorizationHeader(request);\r\n const response = await this._innerClient.send(request);\r\n if (allowRetry && response.statusCode === 401 && this._accessTokenFactory) {\r\n this._accessToken = await this._accessTokenFactory();\r\n this._setAuthorizationHeader(request);\r\n return await this._innerClient.send(request);\r\n }\r\n return response;\r\n }\r\n _setAuthorizationHeader(request) {\r\n if (!request.headers) {\r\n request.headers = {};\r\n }\r\n if (this._accessToken) {\r\n request.headers[HeaderNames.Authorization] = `Bearer ${this._accessToken}`;\r\n }\r\n // don't remove the header if there isn't an access token factory, the user manually added the header in this case\r\n else if (this._accessTokenFactory) {\r\n if (request.headers[HeaderNames.Authorization]) {\r\n delete request.headers[HeaderNames.Authorization];\r\n }\r\n }\r\n }\r\n getCookieString(url) {\r\n return this._innerClient.getCookieString(url);\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Error thrown when an HTTP request fails. */\r\nexport class HttpError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.HttpError}.\r\n *\r\n * @param {string} errorMessage A descriptive error message.\r\n * @param {number} statusCode The HTTP status code represented by this error.\r\n */\r\n constructor(errorMessage, statusCode) {\r\n const trueProto = new.target.prototype;\r\n super(`${errorMessage}: Status code '${statusCode}'`);\r\n this.statusCode = statusCode;\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when a timeout elapses. */\r\nexport class TimeoutError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.TimeoutError}.\r\n *\r\n * @param {string} errorMessage A descriptive error message.\r\n */\r\n constructor(errorMessage = \"A timeout occurred.\") {\r\n const trueProto = new.target.prototype;\r\n super(errorMessage);\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when an action is aborted. */\r\nexport class AbortError extends Error {\r\n /** Constructs a new instance of {@link AbortError}.\r\n *\r\n * @param {string} errorMessage A descriptive error message.\r\n */\r\n constructor(errorMessage = \"An abort occurred.\") {\r\n const trueProto = new.target.prototype;\r\n super(errorMessage);\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when the selected transport is unsupported by the browser. */\r\n/** @private */\r\nexport class UnsupportedTransportError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.\r\n *\r\n * @param {string} message A descriptive error message.\r\n * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.\r\n */\r\n constructor(message, transport) {\r\n const trueProto = new.target.prototype;\r\n super(message);\r\n this.transport = transport;\r\n this.errorType = 'UnsupportedTransportError';\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when the selected transport is disabled by the browser. */\r\n/** @private */\r\nexport class DisabledTransportError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.\r\n *\r\n * @param {string} message A descriptive error message.\r\n * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.\r\n */\r\n constructor(message, transport) {\r\n const trueProto = new.target.prototype;\r\n super(message);\r\n this.transport = transport;\r\n this.errorType = 'DisabledTransportError';\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when the selected transport cannot be started. */\r\n/** @private */\r\nexport class FailedToStartTransportError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.\r\n *\r\n * @param {string} message A descriptive error message.\r\n * @param {HttpTransportType} transport The {@link @microsoft/signalr.HttpTransportType} this error occurred on.\r\n */\r\n constructor(message, transport) {\r\n const trueProto = new.target.prototype;\r\n super(message);\r\n this.transport = transport;\r\n this.errorType = 'FailedToStartTransportError';\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when the negotiation with the server failed to complete. */\r\n/** @private */\r\nexport class FailedToNegotiateWithServerError extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.FailedToNegotiateWithServerError}.\r\n *\r\n * @param {string} message A descriptive error message.\r\n */\r\n constructor(message) {\r\n const trueProto = new.target.prototype;\r\n super(message);\r\n this.errorType = 'FailedToNegotiateWithServerError';\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n/** Error thrown when multiple errors have occurred. */\r\n/** @private */\r\nexport class AggregateErrors extends Error {\r\n /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.\r\n *\r\n * @param {string} message A descriptive error message.\r\n * @param {Error[]} innerErrors The collection of errors this error is aggregating.\r\n */\r\n constructor(message, innerErrors) {\r\n const trueProto = new.target.prototype;\r\n super(message);\r\n this.innerErrors = innerErrors;\r\n // Workaround issue in Typescript compiler\r\n // https://github.com/Microsoft/TypeScript/issues/13965#issuecomment-278570200\r\n this.__proto__ = trueProto;\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here.\r\n/** Indicates the severity of a log message.\r\n *\r\n * Log Levels are ordered in increasing severity. So `Debug` is more severe than `Trace`, etc.\r\n */\r\nexport var LogLevel;\r\n(function (LogLevel) {\r\n /** Log level for very low severity diagnostic messages. */\r\n LogLevel[LogLevel[\"Trace\"] = 0] = \"Trace\";\r\n /** Log level for low severity diagnostic messages. */\r\n LogLevel[LogLevel[\"Debug\"] = 1] = \"Debug\";\r\n /** Log level for informational diagnostic messages. */\r\n LogLevel[LogLevel[\"Information\"] = 2] = \"Information\";\r\n /** Log level for diagnostic messages that indicate a non-fatal problem. */\r\n LogLevel[LogLevel[\"Warning\"] = 3] = \"Warning\";\r\n /** Log level for diagnostic messages that indicate a failure in the current operation. */\r\n LogLevel[LogLevel[\"Error\"] = 4] = \"Error\";\r\n /** Log level for diagnostic messages that indicate a failure that will terminate the entire application. */\r\n LogLevel[LogLevel[\"Critical\"] = 5] = \"Critical\";\r\n /** The highest possible log level. Used when configuring logging to indicate that no log messages should be emitted. */\r\n LogLevel[LogLevel[\"None\"] = 6] = \"None\";\r\n})(LogLevel || (LogLevel = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** A logger that does nothing when log messages are sent to it. */\r\nexport class NullLogger {\r\n constructor() { }\r\n /** @inheritDoc */\r\n // eslint-disable-next-line\r\n log(_logLevel, _message) {\r\n }\r\n}\r\n/** The singleton instance of the {@link @microsoft/signalr.NullLogger}. */\r\nNullLogger.instance = new NullLogger();\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { NullLogger } from \"./Loggers\";\r\n// Version token that will be replaced by the prepack command\r\n/** The version of the SignalR client. */\r\nexport const VERSION = \"8.0.0\";\r\n/** @private */\r\nexport class Arg {\r\n static isRequired(val, name) {\r\n if (val === null || val === undefined) {\r\n throw new Error(`The '${name}' argument is required.`);\r\n }\r\n }\r\n static isNotEmpty(val, name) {\r\n if (!val || val.match(/^\\s*$/)) {\r\n throw new Error(`The '${name}' argument should not be empty.`);\r\n }\r\n }\r\n static isIn(val, values, name) {\r\n // TypeScript enums have keys for **both** the name and the value of each enum member on the type itself.\r\n if (!(val in values)) {\r\n throw new Error(`Unknown ${name} value: ${val}.`);\r\n }\r\n }\r\n}\r\n/** @private */\r\nexport class Platform {\r\n // react-native has a window but no document so we should check both\r\n static get isBrowser() {\r\n return !Platform.isNode && typeof window === \"object\" && typeof window.document === \"object\";\r\n }\r\n // WebWorkers don't have a window object so the isBrowser check would fail\r\n static get isWebWorker() {\r\n return !Platform.isNode && typeof self === \"object\" && \"importScripts\" in self;\r\n }\r\n // react-native has a window but no document\r\n static get isReactNative() {\r\n return !Platform.isNode && typeof window === \"object\" && typeof window.document === \"undefined\";\r\n }\r\n // Node apps shouldn't have a window object, but WebWorkers don't either\r\n // so we need to check for both WebWorker and window\r\n static get isNode() {\r\n return typeof process !== \"undefined\" && process.release && process.release.name === \"node\";\r\n }\r\n}\r\n/** @private */\r\nexport function getDataDetail(data, includeContent) {\r\n let detail = \"\";\r\n if (isArrayBuffer(data)) {\r\n detail = `Binary data of length ${data.byteLength}`;\r\n if (includeContent) {\r\n detail += `. Content: '${formatArrayBuffer(data)}'`;\r\n }\r\n }\r\n else if (typeof data === \"string\") {\r\n detail = `String data of length ${data.length}`;\r\n if (includeContent) {\r\n detail += `. Content: '${data}'`;\r\n }\r\n }\r\n return detail;\r\n}\r\n/** @private */\r\nexport function formatArrayBuffer(data) {\r\n const view = new Uint8Array(data);\r\n // Uint8Array.map only supports returning another Uint8Array?\r\n let str = \"\";\r\n view.forEach((num) => {\r\n const pad = num < 16 ? \"0\" : \"\";\r\n str += `0x${pad}${num.toString(16)} `;\r\n });\r\n // Trim of trailing space.\r\n return str.substr(0, str.length - 1);\r\n}\r\n// Also in signalr-protocol-msgpack/Utils.ts\r\n/** @private */\r\nexport function isArrayBuffer(val) {\r\n return val && typeof ArrayBuffer !== \"undefined\" &&\r\n (val instanceof ArrayBuffer ||\r\n // Sometimes we get an ArrayBuffer that doesn't satisfy instanceof\r\n (val.constructor && val.constructor.name === \"ArrayBuffer\"));\r\n}\r\n/** @private */\r\nexport async function sendMessage(logger, transportName, httpClient, url, content, options) {\r\n const headers = {};\r\n const [name, value] = getUserAgentHeader();\r\n headers[name] = value;\r\n logger.log(LogLevel.Trace, `(${transportName} transport) sending data. ${getDataDetail(content, options.logMessageContent)}.`);\r\n const responseType = isArrayBuffer(content) ? \"arraybuffer\" : \"text\";\r\n const response = await httpClient.post(url, {\r\n content,\r\n headers: { ...headers, ...options.headers },\r\n responseType,\r\n timeout: options.timeout,\r\n withCredentials: options.withCredentials,\r\n });\r\n logger.log(LogLevel.Trace, `(${transportName} transport) request complete. Response status: ${response.statusCode}.`);\r\n}\r\n/** @private */\r\nexport function createLogger(logger) {\r\n if (logger === undefined) {\r\n return new ConsoleLogger(LogLevel.Information);\r\n }\r\n if (logger === null) {\r\n return NullLogger.instance;\r\n }\r\n if (logger.log !== undefined) {\r\n return logger;\r\n }\r\n return new ConsoleLogger(logger);\r\n}\r\n/** @private */\r\nexport class SubjectSubscription {\r\n constructor(subject, observer) {\r\n this._subject = subject;\r\n this._observer = observer;\r\n }\r\n dispose() {\r\n const index = this._subject.observers.indexOf(this._observer);\r\n if (index > -1) {\r\n this._subject.observers.splice(index, 1);\r\n }\r\n if (this._subject.observers.length === 0 && this._subject.cancelCallback) {\r\n this._subject.cancelCallback().catch((_) => { });\r\n }\r\n }\r\n}\r\n/** @private */\r\nexport class ConsoleLogger {\r\n constructor(minimumLogLevel) {\r\n this._minLevel = minimumLogLevel;\r\n this.out = console;\r\n }\r\n log(logLevel, message) {\r\n if (logLevel >= this._minLevel) {\r\n const msg = `[${new Date().toISOString()}] ${LogLevel[logLevel]}: ${message}`;\r\n switch (logLevel) {\r\n case LogLevel.Critical:\r\n case LogLevel.Error:\r\n this.out.error(msg);\r\n break;\r\n case LogLevel.Warning:\r\n this.out.warn(msg);\r\n break;\r\n case LogLevel.Information:\r\n this.out.info(msg);\r\n break;\r\n default:\r\n // console.debug only goes to attached debuggers in Node, so we use console.log for Trace and Debug\r\n this.out.log(msg);\r\n break;\r\n }\r\n }\r\n }\r\n}\r\n/** @private */\r\nexport function getUserAgentHeader() {\r\n let userAgentHeaderName = \"X-SignalR-User-Agent\";\r\n if (Platform.isNode) {\r\n userAgentHeaderName = \"User-Agent\";\r\n }\r\n return [userAgentHeaderName, constructUserAgent(VERSION, getOsName(), getRuntime(), getRuntimeVersion())];\r\n}\r\n/** @private */\r\nexport function constructUserAgent(version, os, runtime, runtimeVersion) {\r\n // Microsoft SignalR/[Version] ([Detailed Version]; [Operating System]; [Runtime]; [Runtime Version])\r\n let userAgent = \"Microsoft SignalR/\";\r\n const majorAndMinor = version.split(\".\");\r\n userAgent += `${majorAndMinor[0]}.${majorAndMinor[1]}`;\r\n userAgent += ` (${version}; `;\r\n if (os && os !== \"\") {\r\n userAgent += `${os}; `;\r\n }\r\n else {\r\n userAgent += \"Unknown OS; \";\r\n }\r\n userAgent += `${runtime}`;\r\n if (runtimeVersion) {\r\n userAgent += `; ${runtimeVersion}`;\r\n }\r\n else {\r\n userAgent += \"; Unknown Runtime Version\";\r\n }\r\n userAgent += \")\";\r\n return userAgent;\r\n}\r\n// eslint-disable-next-line spaced-comment\r\n/*#__PURE__*/ function getOsName() {\r\n if (Platform.isNode) {\r\n switch (process.platform) {\r\n case \"win32\":\r\n return \"Windows NT\";\r\n case \"darwin\":\r\n return \"macOS\";\r\n case \"linux\":\r\n return \"Linux\";\r\n default:\r\n return process.platform;\r\n }\r\n }\r\n else {\r\n return \"\";\r\n }\r\n}\r\n// eslint-disable-next-line spaced-comment\r\n/*#__PURE__*/ function getRuntimeVersion() {\r\n if (Platform.isNode) {\r\n return process.versions.node;\r\n }\r\n return undefined;\r\n}\r\nfunction getRuntime() {\r\n if (Platform.isNode) {\r\n return \"NodeJS\";\r\n }\r\n else {\r\n return \"Browser\";\r\n }\r\n}\r\n/** @private */\r\nexport function getErrorString(e) {\r\n if (e.stack) {\r\n return e.stack;\r\n }\r\n else if (e.message) {\r\n return e.message;\r\n }\r\n return `${e}`;\r\n}\r\n/** @private */\r\nexport function getGlobalThis() {\r\n // globalThis is semi-new and not available in Node until v12\r\n if (typeof globalThis !== \"undefined\") {\r\n return globalThis;\r\n }\r\n if (typeof self !== \"undefined\") {\r\n return self;\r\n }\r\n if (typeof window !== \"undefined\") {\r\n return window;\r\n }\r\n if (typeof global !== \"undefined\") {\r\n return global;\r\n }\r\n throw new Error(\"could not find global\");\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError, HttpError, TimeoutError } from \"./Errors\";\r\nimport { HttpClient, HttpResponse } from \"./HttpClient\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { Platform, getGlobalThis, isArrayBuffer } from \"./Utils\";\r\nimport { configureAbortController, configureFetch } from \"./DynamicImports\";\r\nexport class FetchHttpClient extends HttpClient {\r\n constructor(logger) {\r\n super();\r\n this._logger = logger;\r\n // This is how you do \"reference\" arguments\r\n const fetchObj = { _fetchType: undefined, _jar: undefined };\r\n if (configureFetch(fetchObj)) {\r\n this._fetchType = fetchObj._fetchType;\r\n this._jar = fetchObj._jar;\r\n }\r\n else {\r\n this._fetchType = fetch.bind(getGlobalThis());\r\n }\r\n this._abortControllerType = AbortController;\r\n const abortObj = { _abortControllerType: this._abortControllerType };\r\n if (configureAbortController(abortObj)) {\r\n this._abortControllerType = abortObj._abortControllerType;\r\n }\r\n }\r\n /** @inheritDoc */\r\n async send(request) {\r\n // Check that abort was not signaled before calling send\r\n if (request.abortSignal && request.abortSignal.aborted) {\r\n throw new AbortError();\r\n }\r\n if (!request.method) {\r\n throw new Error(\"No method defined.\");\r\n }\r\n if (!request.url) {\r\n throw new Error(\"No url defined.\");\r\n }\r\n const abortController = new this._abortControllerType();\r\n let error;\r\n // Hook our abortSignal into the abort controller\r\n if (request.abortSignal) {\r\n request.abortSignal.onabort = () => {\r\n abortController.abort();\r\n error = new AbortError();\r\n };\r\n }\r\n // If a timeout has been passed in, setup a timeout to call abort\r\n // Type needs to be any to fit window.setTimeout and NodeJS.setTimeout\r\n let timeoutId = null;\r\n if (request.timeout) {\r\n const msTimeout = request.timeout;\r\n timeoutId = setTimeout(() => {\r\n abortController.abort();\r\n this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);\r\n error = new TimeoutError();\r\n }, msTimeout);\r\n }\r\n if (request.content === \"\") {\r\n request.content = undefined;\r\n }\r\n if (request.content) {\r\n // Explicitly setting the Content-Type header for React Native on Android platform.\r\n request.headers = request.headers || {};\r\n if (isArrayBuffer(request.content)) {\r\n request.headers[\"Content-Type\"] = \"application/octet-stream\";\r\n }\r\n else {\r\n request.headers[\"Content-Type\"] = \"text/plain;charset=UTF-8\";\r\n }\r\n }\r\n let response;\r\n try {\r\n response = await this._fetchType(request.url, {\r\n body: request.content,\r\n cache: \"no-cache\",\r\n credentials: request.withCredentials === true ? \"include\" : \"same-origin\",\r\n headers: {\r\n \"X-Requested-With\": \"XMLHttpRequest\",\r\n ...request.headers,\r\n },\r\n method: request.method,\r\n mode: \"cors\",\r\n redirect: \"follow\",\r\n signal: abortController.signal,\r\n });\r\n }\r\n catch (e) {\r\n if (error) {\r\n throw error;\r\n }\r\n this._logger.log(LogLevel.Warning, `Error from HTTP request. ${e}.`);\r\n throw e;\r\n }\r\n finally {\r\n if (timeoutId) {\r\n clearTimeout(timeoutId);\r\n }\r\n if (request.abortSignal) {\r\n request.abortSignal.onabort = null;\r\n }\r\n }\r\n if (!response.ok) {\r\n const errorMessage = await deserializeContent(response, \"text\");\r\n throw new HttpError(errorMessage || response.statusText, response.status);\r\n }\r\n const content = deserializeContent(response, request.responseType);\r\n const payload = await content;\r\n return new HttpResponse(response.status, response.statusText, payload);\r\n }\r\n getCookieString(url) {\r\n let cookies = \"\";\r\n if (Platform.isNode && this._jar) {\r\n // @ts-ignore: unused variable\r\n this._jar.getCookies(url, (e, c) => cookies = c.join(\"; \"));\r\n }\r\n return cookies;\r\n }\r\n}\r\nfunction deserializeContent(response, responseType) {\r\n let content;\r\n switch (responseType) {\r\n case \"arraybuffer\":\r\n content = response.arrayBuffer();\r\n break;\r\n case \"text\":\r\n content = response.text();\r\n break;\r\n case \"blob\":\r\n case \"document\":\r\n case \"json\":\r\n throw new Error(`${responseType} is not supported.`);\r\n default:\r\n content = response.text();\r\n break;\r\n }\r\n return content;\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { Platform } from \"./Utils\";\r\n/** @private */\r\nexport function configureFetch(obj) {\r\n // Node added a fetch implementation to the global scope starting in v18.\r\n // We need to add a cookie jar in node to be able to share cookies with WebSocket\r\n if (typeof fetch === \"undefined\" || Platform.isNode) {\r\n // Cookies aren't automatically handled in Node so we need to add a CookieJar to preserve cookies across requests\r\n // eslint-disable-next-line @typescript-eslint/no-var-requires\r\n obj._jar = new (require(\"tough-cookie\")).CookieJar();\r\n if (typeof fetch === \"undefined\") {\r\n // eslint-disable-next-line @typescript-eslint/no-var-requires\r\n obj._fetchType = require(\"node-fetch\");\r\n }\r\n else {\r\n // Use fetch from Node if available\r\n obj._fetchType = fetch;\r\n }\r\n // node-fetch doesn't have a nice API for getting and setting cookies\r\n // fetch-cookie will wrap a fetch implementation with a default CookieJar or a provided one\r\n // eslint-disable-next-line @typescript-eslint/no-var-requires\r\n obj._fetchType = require(\"fetch-cookie\")(obj._fetchType, obj._jar);\r\n return true;\r\n }\r\n return false;\r\n}\r\n/** @private */\r\nexport function configureAbortController(obj) {\r\n if (typeof AbortController === \"undefined\") {\r\n // Node needs EventListener methods on AbortController which our custom polyfill doesn't provide\r\n obj._abortControllerType = require(\"abort-controller\");\r\n return true;\r\n }\r\n return false;\r\n}\r\n/** @private */\r\nexport function getWS() {\r\n return require(\"ws\");\r\n}\r\n/** @private */\r\nexport function getEventSource() {\r\n return require(\"eventsource\");\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError, HttpError, TimeoutError } from \"./Errors\";\r\nimport { HttpClient, HttpResponse } from \"./HttpClient\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { isArrayBuffer } from \"./Utils\";\r\nexport class XhrHttpClient extends HttpClient {\r\n constructor(logger) {\r\n super();\r\n this._logger = logger;\r\n }\r\n /** @inheritDoc */\r\n send(request) {\r\n // Check that abort was not signaled before calling send\r\n if (request.abortSignal && request.abortSignal.aborted) {\r\n return Promise.reject(new AbortError());\r\n }\r\n if (!request.method) {\r\n return Promise.reject(new Error(\"No method defined.\"));\r\n }\r\n if (!request.url) {\r\n return Promise.reject(new Error(\"No url defined.\"));\r\n }\r\n return new Promise((resolve, reject) => {\r\n const xhr = new XMLHttpRequest();\r\n xhr.open(request.method, request.url, true);\r\n xhr.withCredentials = request.withCredentials === undefined ? true : request.withCredentials;\r\n xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\r\n if (request.content === \"\") {\r\n request.content = undefined;\r\n }\r\n if (request.content) {\r\n // Explicitly setting the Content-Type header for React Native on Android platform.\r\n if (isArrayBuffer(request.content)) {\r\n xhr.setRequestHeader(\"Content-Type\", \"application/octet-stream\");\r\n }\r\n else {\r\n xhr.setRequestHeader(\"Content-Type\", \"text/plain;charset=UTF-8\");\r\n }\r\n }\r\n const headers = request.headers;\r\n if (headers) {\r\n Object.keys(headers)\r\n .forEach((header) => {\r\n xhr.setRequestHeader(header, headers[header]);\r\n });\r\n }\r\n if (request.responseType) {\r\n xhr.responseType = request.responseType;\r\n }\r\n if (request.abortSignal) {\r\n request.abortSignal.onabort = () => {\r\n xhr.abort();\r\n reject(new AbortError());\r\n };\r\n }\r\n if (request.timeout) {\r\n xhr.timeout = request.timeout;\r\n }\r\n xhr.onload = () => {\r\n if (request.abortSignal) {\r\n request.abortSignal.onabort = null;\r\n }\r\n if (xhr.status >= 200 && xhr.status < 300) {\r\n resolve(new HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText));\r\n }\r\n else {\r\n reject(new HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status));\r\n }\r\n };\r\n xhr.onerror = () => {\r\n this._logger.log(LogLevel.Warning, `Error from HTTP request. ${xhr.status}: ${xhr.statusText}.`);\r\n reject(new HttpError(xhr.statusText, xhr.status));\r\n };\r\n xhr.ontimeout = () => {\r\n this._logger.log(LogLevel.Warning, `Timeout from HTTP request.`);\r\n reject(new TimeoutError());\r\n };\r\n xhr.send(request.content);\r\n });\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortError } from \"./Errors\";\r\nimport { FetchHttpClient } from \"./FetchHttpClient\";\r\nimport { HttpClient } from \"./HttpClient\";\r\nimport { Platform } from \"./Utils\";\r\nimport { XhrHttpClient } from \"./XhrHttpClient\";\r\n/** Default implementation of {@link @microsoft/signalr.HttpClient}. */\r\nexport class DefaultHttpClient extends HttpClient {\r\n /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */\r\n constructor(logger) {\r\n super();\r\n if (typeof fetch !== \"undefined\" || Platform.isNode) {\r\n this._httpClient = new FetchHttpClient(logger);\r\n }\r\n else if (typeof XMLHttpRequest !== \"undefined\") {\r\n this._httpClient = new XhrHttpClient(logger);\r\n }\r\n else {\r\n throw new Error(\"No usable HttpClient found.\");\r\n }\r\n }\r\n /** @inheritDoc */\r\n send(request) {\r\n // Check that abort was not signaled before calling send\r\n if (request.abortSignal && request.abortSignal.aborted) {\r\n return Promise.reject(new AbortError());\r\n }\r\n if (!request.method) {\r\n return Promise.reject(new Error(\"No method defined.\"));\r\n }\r\n if (!request.url) {\r\n return Promise.reject(new Error(\"No url defined.\"));\r\n }\r\n return this._httpClient.send(request);\r\n }\r\n getCookieString(url) {\r\n return this._httpClient.getCookieString(url);\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// Rough polyfill of https://developer.mozilla.org/en-US/docs/Web/API/AbortController\r\n// We don't actually ever use the API being polyfilled, we always use the polyfill because\r\n// it's a very new API right now.\r\n// Not exported from index.\r\n/** @private */\r\nexport class AbortController {\r\n constructor() {\r\n this._isAborted = false;\r\n this.onabort = null;\r\n }\r\n abort() {\r\n if (!this._isAborted) {\r\n this._isAborted = true;\r\n if (this.onabort) {\r\n this.onabort();\r\n }\r\n }\r\n }\r\n get signal() {\r\n return this;\r\n }\r\n get aborted() {\r\n return this._isAborted;\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AbortController } from \"./AbortController\";\r\nimport { HttpError, TimeoutError } from \"./Errors\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, sendMessage } from \"./Utils\";\r\n// Not exported from 'index', this type is internal.\r\n/** @private */\r\nexport class LongPollingTransport {\r\n // This is an internal type, not exported from 'index' so this is really just internal.\r\n get pollAborted() {\r\n return this._pollAbort.aborted;\r\n }\r\n constructor(httpClient, logger, options) {\r\n this._httpClient = httpClient;\r\n this._logger = logger;\r\n this._pollAbort = new AbortController();\r\n this._options = options;\r\n this._running = false;\r\n this.onreceive = null;\r\n this.onclose = null;\r\n }\r\n async connect(url, transferFormat) {\r\n Arg.isRequired(url, \"url\");\r\n Arg.isRequired(transferFormat, \"transferFormat\");\r\n Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n this._url = url;\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Connecting.\");\r\n // Allow binary format on Node and Browsers that support binary content (indicated by the presence of responseType property)\r\n if (transferFormat === TransferFormat.Binary &&\r\n (typeof XMLHttpRequest !== \"undefined\" && typeof new XMLHttpRequest().responseType !== \"string\")) {\r\n throw new Error(\"Binary protocols over XmlHttpRequest not implementing advanced features are not supported.\");\r\n }\r\n const [name, value] = getUserAgentHeader();\r\n const headers = { [name]: value, ...this._options.headers };\r\n const pollOptions = {\r\n abortSignal: this._pollAbort.signal,\r\n headers,\r\n timeout: 100000,\r\n withCredentials: this._options.withCredentials,\r\n };\r\n if (transferFormat === TransferFormat.Binary) {\r\n pollOptions.responseType = \"arraybuffer\";\r\n }\r\n // Make initial long polling request\r\n // Server uses first long polling request to finish initializing connection and it returns without data\r\n const pollUrl = `${url}&_=${Date.now()}`;\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);\r\n const response = await this._httpClient.get(pollUrl, pollOptions);\r\n if (response.statusCode !== 200) {\r\n this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);\r\n // Mark running as false so that the poll immediately ends and runs the close logic\r\n this._closeError = new HttpError(response.statusText || \"\", response.statusCode);\r\n this._running = false;\r\n }\r\n else {\r\n this._running = true;\r\n }\r\n this._receiving = this._poll(this._url, pollOptions);\r\n }\r\n async _poll(url, pollOptions) {\r\n try {\r\n while (this._running) {\r\n try {\r\n const pollUrl = `${url}&_=${Date.now()}`;\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) polling: ${pollUrl}.`);\r\n const response = await this._httpClient.get(pollUrl, pollOptions);\r\n if (response.statusCode === 204) {\r\n this._logger.log(LogLevel.Information, \"(LongPolling transport) Poll terminated by server.\");\r\n this._running = false;\r\n }\r\n else if (response.statusCode !== 200) {\r\n this._logger.log(LogLevel.Error, `(LongPolling transport) Unexpected response code: ${response.statusCode}.`);\r\n // Unexpected status code\r\n this._closeError = new HttpError(response.statusText || \"\", response.statusCode);\r\n this._running = false;\r\n }\r\n else {\r\n // Process the response\r\n if (response.content) {\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) data received. ${getDataDetail(response.content, this._options.logMessageContent)}.`);\r\n if (this.onreceive) {\r\n this.onreceive(response.content);\r\n }\r\n }\r\n else {\r\n // This is another way timeout manifest.\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Poll timed out, reissuing.\");\r\n }\r\n }\r\n }\r\n catch (e) {\r\n if (!this._running) {\r\n // Log but disregard errors that occur after stopping\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) Poll errored after shutdown: ${e.message}`);\r\n }\r\n else {\r\n if (e instanceof TimeoutError) {\r\n // Ignore timeouts and reissue the poll.\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Poll timed out, reissuing.\");\r\n }\r\n else {\r\n // Close the connection with the error as the result.\r\n this._closeError = e;\r\n this._running = false;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n finally {\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Polling complete.\");\r\n // We will reach here with pollAborted==false when the server returned a response causing the transport to stop.\r\n // If pollAborted==true then client initiated the stop and the stop method will raise the close event after DELETE is sent.\r\n if (!this.pollAborted) {\r\n this._raiseOnClose();\r\n }\r\n }\r\n }\r\n async send(data) {\r\n if (!this._running) {\r\n return Promise.reject(new Error(\"Cannot send until the transport is connected\"));\r\n }\r\n return sendMessage(this._logger, \"LongPolling\", this._httpClient, this._url, data, this._options);\r\n }\r\n async stop() {\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Stopping polling.\");\r\n // Tell receiving loop to stop, abort any current request, and then wait for it to finish\r\n this._running = false;\r\n this._pollAbort.abort();\r\n try {\r\n await this._receiving;\r\n // Send DELETE to clean up long polling on the server\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) sending DELETE request to ${this._url}.`);\r\n const headers = {};\r\n const [name, value] = getUserAgentHeader();\r\n headers[name] = value;\r\n const deleteOptions = {\r\n headers: { ...headers, ...this._options.headers },\r\n timeout: this._options.timeout,\r\n withCredentials: this._options.withCredentials,\r\n };\r\n let error;\r\n try {\r\n await this._httpClient.delete(this._url, deleteOptions);\r\n }\r\n catch (err) {\r\n error = err;\r\n }\r\n if (error) {\r\n if (error instanceof HttpError) {\r\n if (error.statusCode === 404) {\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) A 404 response was returned from sending a DELETE request.\");\r\n }\r\n else {\r\n this._logger.log(LogLevel.Trace, `(LongPolling transport) Error sending a DELETE request: ${error}`);\r\n }\r\n }\r\n }\r\n else {\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) DELETE request accepted.\");\r\n }\r\n }\r\n finally {\r\n this._logger.log(LogLevel.Trace, \"(LongPolling transport) Stop finished.\");\r\n // Raise close event here instead of in polling\r\n // It needs to happen after the DELETE request is sent\r\n this._raiseOnClose();\r\n }\r\n }\r\n _raiseOnClose() {\r\n if (this.onclose) {\r\n let logMessage = \"(LongPolling transport) Firing onclose event.\";\r\n if (this._closeError) {\r\n logMessage += \" Error: \" + this._closeError;\r\n }\r\n this._logger.log(LogLevel.Trace, logMessage);\r\n this.onclose(this._closeError);\r\n }\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, Platform, sendMessage } from \"./Utils\";\r\n/** @private */\r\nexport class ServerSentEventsTransport {\r\n constructor(httpClient, accessToken, logger, options) {\r\n this._httpClient = httpClient;\r\n this._accessToken = accessToken;\r\n this._logger = logger;\r\n this._options = options;\r\n this.onreceive = null;\r\n this.onclose = null;\r\n }\r\n async connect(url, transferFormat) {\r\n Arg.isRequired(url, \"url\");\r\n Arg.isRequired(transferFormat, \"transferFormat\");\r\n Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n this._logger.log(LogLevel.Trace, \"(SSE transport) Connecting.\");\r\n // set url before accessTokenFactory because this._url is only for send and we set the auth header instead of the query string for send\r\n this._url = url;\r\n if (this._accessToken) {\r\n url += (url.indexOf(\"?\") < 0 ? \"?\" : \"&\") + `access_token=${encodeURIComponent(this._accessToken)}`;\r\n }\r\n return new Promise((resolve, reject) => {\r\n let opened = false;\r\n if (transferFormat !== TransferFormat.Text) {\r\n reject(new Error(\"The Server-Sent Events transport only supports the 'Text' transfer format\"));\r\n return;\r\n }\r\n let eventSource;\r\n if (Platform.isBrowser || Platform.isWebWorker) {\r\n eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials });\r\n }\r\n else {\r\n // Non-browser passes cookies via the dictionary\r\n const cookies = this._httpClient.getCookieString(url);\r\n const headers = {};\r\n headers.Cookie = cookies;\r\n const [name, value] = getUserAgentHeader();\r\n headers[name] = value;\r\n eventSource = new this._options.EventSource(url, { withCredentials: this._options.withCredentials, headers: { ...headers, ...this._options.headers } });\r\n }\r\n try {\r\n eventSource.onmessage = (e) => {\r\n if (this.onreceive) {\r\n try {\r\n this._logger.log(LogLevel.Trace, `(SSE transport) data received. ${getDataDetail(e.data, this._options.logMessageContent)}.`);\r\n this.onreceive(e.data);\r\n }\r\n catch (error) {\r\n this._close(error);\r\n return;\r\n }\r\n }\r\n };\r\n // @ts-ignore: not using event on purpose\r\n eventSource.onerror = (e) => {\r\n // EventSource doesn't give any useful information about server side closes.\r\n if (opened) {\r\n this._close();\r\n }\r\n else {\r\n reject(new Error(\"EventSource failed to connect. The connection could not be found on the server,\"\r\n + \" either the connection ID is not present on the server, or a proxy is refusing/buffering the connection.\"\r\n + \" If you have multiple servers check that sticky sessions are enabled.\"));\r\n }\r\n };\r\n eventSource.onopen = () => {\r\n this._logger.log(LogLevel.Information, `SSE connected to ${this._url}`);\r\n this._eventSource = eventSource;\r\n opened = true;\r\n resolve();\r\n };\r\n }\r\n catch (e) {\r\n reject(e);\r\n return;\r\n }\r\n });\r\n }\r\n async send(data) {\r\n if (!this._eventSource) {\r\n return Promise.reject(new Error(\"Cannot send until the transport is connected\"));\r\n }\r\n return sendMessage(this._logger, \"SSE\", this._httpClient, this._url, data, this._options);\r\n }\r\n stop() {\r\n this._close();\r\n return Promise.resolve();\r\n }\r\n _close(e) {\r\n if (this._eventSource) {\r\n this._eventSource.close();\r\n this._eventSource = undefined;\r\n if (this.onclose) {\r\n this.onclose(e);\r\n }\r\n }\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { HeaderNames } from \"./HeaderNames\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { Arg, getDataDetail, getUserAgentHeader, Platform } from \"./Utils\";\r\n/** @private */\r\nexport class WebSocketTransport {\r\n constructor(httpClient, accessTokenFactory, logger, logMessageContent, webSocketConstructor, headers) {\r\n this._logger = logger;\r\n this._accessTokenFactory = accessTokenFactory;\r\n this._logMessageContent = logMessageContent;\r\n this._webSocketConstructor = webSocketConstructor;\r\n this._httpClient = httpClient;\r\n this.onreceive = null;\r\n this.onclose = null;\r\n this._headers = headers;\r\n }\r\n async connect(url, transferFormat) {\r\n Arg.isRequired(url, \"url\");\r\n Arg.isRequired(transferFormat, \"transferFormat\");\r\n Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n this._logger.log(LogLevel.Trace, \"(WebSockets transport) Connecting.\");\r\n let token;\r\n if (this._accessTokenFactory) {\r\n token = await this._accessTokenFactory();\r\n }\r\n return new Promise((resolve, reject) => {\r\n url = url.replace(/^http/, \"ws\");\r\n let webSocket;\r\n const cookies = this._httpClient.getCookieString(url);\r\n let opened = false;\r\n if (Platform.isNode || Platform.isReactNative) {\r\n const headers = {};\r\n const [name, value] = getUserAgentHeader();\r\n headers[name] = value;\r\n if (token) {\r\n headers[HeaderNames.Authorization] = `Bearer ${token}`;\r\n }\r\n if (cookies) {\r\n headers[HeaderNames.Cookie] = cookies;\r\n }\r\n // Only pass headers when in non-browser environments\r\n webSocket = new this._webSocketConstructor(url, undefined, {\r\n headers: { ...headers, ...this._headers },\r\n });\r\n }\r\n else {\r\n if (token) {\r\n url += (url.indexOf(\"?\") < 0 ? \"?\" : \"&\") + `access_token=${encodeURIComponent(token)}`;\r\n }\r\n }\r\n if (!webSocket) {\r\n // Chrome is not happy with passing 'undefined' as protocol\r\n webSocket = new this._webSocketConstructor(url);\r\n }\r\n if (transferFormat === TransferFormat.Binary) {\r\n webSocket.binaryType = \"arraybuffer\";\r\n }\r\n webSocket.onopen = (_event) => {\r\n this._logger.log(LogLevel.Information, `WebSocket connected to ${url}.`);\r\n this._webSocket = webSocket;\r\n opened = true;\r\n resolve();\r\n };\r\n webSocket.onerror = (event) => {\r\n let error = null;\r\n // ErrorEvent is a browser only type we need to check if the type exists before using it\r\n if (typeof ErrorEvent !== \"undefined\" && event instanceof ErrorEvent) {\r\n error = event.error;\r\n }\r\n else {\r\n error = \"There was an error with the transport\";\r\n }\r\n this._logger.log(LogLevel.Information, `(WebSockets transport) ${error}.`);\r\n };\r\n webSocket.onmessage = (message) => {\r\n this._logger.log(LogLevel.Trace, `(WebSockets transport) data received. ${getDataDetail(message.data, this._logMessageContent)}.`);\r\n if (this.onreceive) {\r\n try {\r\n this.onreceive(message.data);\r\n }\r\n catch (error) {\r\n this._close(error);\r\n return;\r\n }\r\n }\r\n };\r\n webSocket.onclose = (event) => {\r\n // Don't call close handler if connection was never established\r\n // We'll reject the connect call instead\r\n if (opened) {\r\n this._close(event);\r\n }\r\n else {\r\n let error = null;\r\n // ErrorEvent is a browser only type we need to check if the type exists before using it\r\n if (typeof ErrorEvent !== \"undefined\" && event instanceof ErrorEvent) {\r\n error = event.error;\r\n }\r\n else {\r\n error = \"WebSocket failed to connect. The connection could not be found on the server,\"\r\n + \" either the endpoint may not be a SignalR endpoint,\"\r\n + \" the connection ID is not present on the server, or there is a proxy blocking WebSockets.\"\r\n + \" If you have multiple servers check that sticky sessions are enabled.\";\r\n }\r\n reject(new Error(error));\r\n }\r\n };\r\n });\r\n }\r\n send(data) {\r\n if (this._webSocket && this._webSocket.readyState === this._webSocketConstructor.OPEN) {\r\n this._logger.log(LogLevel.Trace, `(WebSockets transport) sending data. ${getDataDetail(data, this._logMessageContent)}.`);\r\n this._webSocket.send(data);\r\n return Promise.resolve();\r\n }\r\n return Promise.reject(\"WebSocket is not in the OPEN state\");\r\n }\r\n stop() {\r\n if (this._webSocket) {\r\n // Manually invoke onclose callback inline so we know the HttpConnection was closed properly before returning\r\n // This also solves an issue where websocket.onclose could take 18+ seconds to trigger during network disconnects\r\n this._close(undefined);\r\n }\r\n return Promise.resolve();\r\n }\r\n _close(event) {\r\n // webSocket will be null if the transport did not start successfully\r\n if (this._webSocket) {\r\n // Clear websocket handlers because we are considering the socket closed now\r\n this._webSocket.onclose = () => { };\r\n this._webSocket.onmessage = () => { };\r\n this._webSocket.onerror = () => { };\r\n this._webSocket.close();\r\n this._webSocket = undefined;\r\n }\r\n this._logger.log(LogLevel.Trace, \"(WebSockets transport) socket closed.\");\r\n if (this.onclose) {\r\n if (this._isCloseEvent(event) && (event.wasClean === false || event.code !== 1000)) {\r\n this.onclose(new Error(`WebSocket closed with status code: ${event.code} (${event.reason || \"no reason given\"}).`));\r\n }\r\n else if (event instanceof Error) {\r\n this.onclose(event);\r\n }\r\n else {\r\n this.onclose();\r\n }\r\n }\r\n }\r\n _isCloseEvent(event) {\r\n return event && typeof event.wasClean === \"boolean\" && typeof event.code === \"number\";\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { AccessTokenHttpClient } from \"./AccessTokenHttpClient\";\r\nimport { DefaultHttpClient } from \"./DefaultHttpClient\";\r\nimport { getEventSource, getWS } from \"./DynamicImports\";\r\nimport { AggregateErrors, DisabledTransportError, FailedToNegotiateWithServerError, FailedToStartTransportError, HttpError, UnsupportedTransportError, AbortError } from \"./Errors\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { HttpTransportType, TransferFormat } from \"./ITransport\";\r\nimport { LongPollingTransport } from \"./LongPollingTransport\";\r\nimport { ServerSentEventsTransport } from \"./ServerSentEventsTransport\";\r\nimport { Arg, createLogger, getUserAgentHeader, Platform } from \"./Utils\";\r\nimport { WebSocketTransport } from \"./WebSocketTransport\";\r\nconst MAX_REDIRECTS = 100;\r\n/** @private */\r\nexport class HttpConnection {\r\n constructor(url, options = {}) {\r\n this._stopPromiseResolver = () => { };\r\n this.features = {};\r\n this._negotiateVersion = 1;\r\n Arg.isRequired(url, \"url\");\r\n this._logger = createLogger(options.logger);\r\n this.baseUrl = this._resolveUrl(url);\r\n options = options || {};\r\n options.logMessageContent = options.logMessageContent === undefined ? false : options.logMessageContent;\r\n if (typeof options.withCredentials === \"boolean\" || options.withCredentials === undefined) {\r\n options.withCredentials = options.withCredentials === undefined ? true : options.withCredentials;\r\n }\r\n else {\r\n throw new Error(\"withCredentials option was not a 'boolean' or 'undefined' value\");\r\n }\r\n options.timeout = options.timeout === undefined ? 100 * 1000 : options.timeout;\r\n let webSocketModule = null;\r\n let eventSourceModule = null;\r\n if (Platform.isNode && typeof require !== \"undefined\") {\r\n webSocketModule = getWS();\r\n eventSourceModule = getEventSource();\r\n }\r\n if (!Platform.isNode && typeof WebSocket !== \"undefined\" && !options.WebSocket) {\r\n options.WebSocket = WebSocket;\r\n }\r\n else if (Platform.isNode && !options.WebSocket) {\r\n if (webSocketModule) {\r\n options.WebSocket = webSocketModule;\r\n }\r\n }\r\n if (!Platform.isNode && typeof EventSource !== \"undefined\" && !options.EventSource) {\r\n options.EventSource = EventSource;\r\n }\r\n else if (Platform.isNode && !options.EventSource) {\r\n if (typeof eventSourceModule !== \"undefined\") {\r\n options.EventSource = eventSourceModule;\r\n }\r\n }\r\n this._httpClient = new AccessTokenHttpClient(options.httpClient || new DefaultHttpClient(this._logger), options.accessTokenFactory);\r\n this._connectionState = \"Disconnected\" /* ConnectionState.Disconnected */;\r\n this._connectionStarted = false;\r\n this._options = options;\r\n this.onreceive = null;\r\n this.onclose = null;\r\n }\r\n async start(transferFormat) {\r\n transferFormat = transferFormat || TransferFormat.Binary;\r\n Arg.isIn(transferFormat, TransferFormat, \"transferFormat\");\r\n this._logger.log(LogLevel.Debug, `Starting connection with transfer format '${TransferFormat[transferFormat]}'.`);\r\n if (this._connectionState !== \"Disconnected\" /* ConnectionState.Disconnected */) {\r\n return Promise.reject(new Error(\"Cannot start an HttpConnection that is not in the 'Disconnected' state.\"));\r\n }\r\n this._connectionState = \"Connecting\" /* ConnectionState.Connecting */;\r\n this._startInternalPromise = this._startInternal(transferFormat);\r\n await this._startInternalPromise;\r\n // The TypeScript compiler thinks that connectionState must be Connecting here. The TypeScript compiler is wrong.\r\n if (this._connectionState === \"Disconnecting\" /* ConnectionState.Disconnecting */) {\r\n // stop() was called and transitioned the client into the Disconnecting state.\r\n const message = \"Failed to start the HttpConnection before stop() was called.\";\r\n this._logger.log(LogLevel.Error, message);\r\n // We cannot await stopPromise inside startInternal since stopInternal awaits the startInternalPromise.\r\n await this._stopPromise;\r\n return Promise.reject(new AbortError(message));\r\n }\r\n else if (this._connectionState !== \"Connected\" /* ConnectionState.Connected */) {\r\n // stop() was called and transitioned the client into the Disconnecting state.\r\n const message = \"HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!\";\r\n this._logger.log(LogLevel.Error, message);\r\n return Promise.reject(new AbortError(message));\r\n }\r\n this._connectionStarted = true;\r\n }\r\n send(data) {\r\n if (this._connectionState !== \"Connected\" /* ConnectionState.Connected */) {\r\n return Promise.reject(new Error(\"Cannot send data if the connection is not in the 'Connected' State.\"));\r\n }\r\n if (!this._sendQueue) {\r\n this._sendQueue = new TransportSendQueue(this.transport);\r\n }\r\n // Transport will not be null if state is connected\r\n return this._sendQueue.send(data);\r\n }\r\n async stop(error) {\r\n if (this._connectionState === \"Disconnected\" /* ConnectionState.Disconnected */) {\r\n this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnected state.`);\r\n return Promise.resolve();\r\n }\r\n if (this._connectionState === \"Disconnecting\" /* ConnectionState.Disconnecting */) {\r\n this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);\r\n return this._stopPromise;\r\n }\r\n this._connectionState = \"Disconnecting\" /* ConnectionState.Disconnecting */;\r\n this._stopPromise = new Promise((resolve) => {\r\n // Don't complete stop() until stopConnection() completes.\r\n this._stopPromiseResolver = resolve;\r\n });\r\n // stopInternal should never throw so just observe it.\r\n await this._stopInternal(error);\r\n await this._stopPromise;\r\n }\r\n async _stopInternal(error) {\r\n // Set error as soon as possible otherwise there is a race between\r\n // the transport closing and providing an error and the error from a close message\r\n // We would prefer the close message error.\r\n this._stopError = error;\r\n try {\r\n await this._startInternalPromise;\r\n }\r\n catch (e) {\r\n // This exception is returned to the user as a rejected Promise from the start method.\r\n }\r\n // The transport's onclose will trigger stopConnection which will run our onclose event.\r\n // The transport should always be set if currently connected. If it wasn't set, it's likely because\r\n // stop was called during start() and start() failed.\r\n if (this.transport) {\r\n try {\r\n await this.transport.stop();\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `HttpConnection.transport.stop() threw error '${e}'.`);\r\n this._stopConnection();\r\n }\r\n this.transport = undefined;\r\n }\r\n else {\r\n this._logger.log(LogLevel.Debug, \"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.\");\r\n }\r\n }\r\n async _startInternal(transferFormat) {\r\n // Store the original base url and the access token factory since they may change\r\n // as part of negotiating\r\n let url = this.baseUrl;\r\n this._accessTokenFactory = this._options.accessTokenFactory;\r\n this._httpClient._accessTokenFactory = this._accessTokenFactory;\r\n try {\r\n if (this._options.skipNegotiation) {\r\n if (this._options.transport === HttpTransportType.WebSockets) {\r\n // No need to add a connection ID in this case\r\n this.transport = this._constructTransport(HttpTransportType.WebSockets);\r\n // We should just call connect directly in this case.\r\n // No fallback or negotiate in this case.\r\n await this._startTransport(url, transferFormat);\r\n }\r\n else {\r\n throw new Error(\"Negotiation can only be skipped when using the WebSocket transport directly.\");\r\n }\r\n }\r\n else {\r\n let negotiateResponse = null;\r\n let redirects = 0;\r\n do {\r\n negotiateResponse = await this._getNegotiationResponse(url);\r\n // the user tries to stop the connection when it is being started\r\n if (this._connectionState === \"Disconnecting\" /* ConnectionState.Disconnecting */ || this._connectionState === \"Disconnected\" /* ConnectionState.Disconnected */) {\r\n throw new AbortError(\"The connection was stopped during negotiation.\");\r\n }\r\n if (negotiateResponse.error) {\r\n throw new Error(negotiateResponse.error);\r\n }\r\n if (negotiateResponse.ProtocolVersion) {\r\n throw new Error(\"Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.\");\r\n }\r\n if (negotiateResponse.url) {\r\n url = negotiateResponse.url;\r\n }\r\n if (negotiateResponse.accessToken) {\r\n // Replace the current access token factory with one that uses\r\n // the returned access token\r\n const accessToken = negotiateResponse.accessToken;\r\n this._accessTokenFactory = () => accessToken;\r\n // set the factory to undefined so the AccessTokenHttpClient won't retry with the same token, since we know it won't change until a connection restart\r\n this._httpClient._accessToken = accessToken;\r\n this._httpClient._accessTokenFactory = undefined;\r\n }\r\n redirects++;\r\n } while (negotiateResponse.url && redirects < MAX_REDIRECTS);\r\n if (redirects === MAX_REDIRECTS && negotiateResponse.url) {\r\n throw new Error(\"Negotiate redirection limit exceeded.\");\r\n }\r\n await this._createTransport(url, this._options.transport, negotiateResponse, transferFormat);\r\n }\r\n if (this.transport instanceof LongPollingTransport) {\r\n this.features.inherentKeepAlive = true;\r\n }\r\n if (this._connectionState === \"Connecting\" /* ConnectionState.Connecting */) {\r\n // Ensure the connection transitions to the connected state prior to completing this.startInternalPromise.\r\n // start() will handle the case when stop was called and startInternal exits still in the disconnecting state.\r\n this._logger.log(LogLevel.Debug, \"The HttpConnection connected successfully.\");\r\n this._connectionState = \"Connected\" /* ConnectionState.Connected */;\r\n }\r\n // stop() is waiting on us via this.startInternalPromise so keep this.transport around so it can clean up.\r\n // This is the only case startInternal can exit in neither the connected nor disconnected state because stopConnection()\r\n // will transition to the disconnected state. start() will wait for the transition using the stopPromise.\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, \"Failed to start the connection: \" + e);\r\n this._connectionState = \"Disconnected\" /* ConnectionState.Disconnected */;\r\n this.transport = undefined;\r\n // if start fails, any active calls to stop assume that start will complete the stop promise\r\n this._stopPromiseResolver();\r\n return Promise.reject(e);\r\n }\r\n }\r\n async _getNegotiationResponse(url) {\r\n const headers = {};\r\n const [name, value] = getUserAgentHeader();\r\n headers[name] = value;\r\n const negotiateUrl = this._resolveNegotiateUrl(url);\r\n this._logger.log(LogLevel.Debug, `Sending negotiation request: ${negotiateUrl}.`);\r\n try {\r\n const response = await this._httpClient.post(negotiateUrl, {\r\n content: \"\",\r\n headers: { ...headers, ...this._options.headers },\r\n timeout: this._options.timeout,\r\n withCredentials: this._options.withCredentials,\r\n });\r\n if (response.statusCode !== 200) {\r\n return Promise.reject(new Error(`Unexpected status code returned from negotiate '${response.statusCode}'`));\r\n }\r\n const negotiateResponse = JSON.parse(response.content);\r\n if (!negotiateResponse.negotiateVersion || negotiateResponse.negotiateVersion < 1) {\r\n // Negotiate version 0 doesn't use connectionToken\r\n // So we set it equal to connectionId so all our logic can use connectionToken without being aware of the negotiate version\r\n negotiateResponse.connectionToken = negotiateResponse.connectionId;\r\n }\r\n if (negotiateResponse.useStatefulReconnect && this._options._useStatefulReconnect !== true) {\r\n return Promise.reject(new FailedToNegotiateWithServerError(\"Client didn't negotiate Stateful Reconnect but the server did.\"));\r\n }\r\n return negotiateResponse;\r\n }\r\n catch (e) {\r\n let errorMessage = \"Failed to complete negotiation with the server: \" + e;\r\n if (e instanceof HttpError) {\r\n if (e.statusCode === 404) {\r\n errorMessage = errorMessage + \" Either this is not a SignalR endpoint or there is a proxy blocking the connection.\";\r\n }\r\n }\r\n this._logger.log(LogLevel.Error, errorMessage);\r\n return Promise.reject(new FailedToNegotiateWithServerError(errorMessage));\r\n }\r\n }\r\n _createConnectUrl(url, connectionToken) {\r\n if (!connectionToken) {\r\n return url;\r\n }\r\n return url + (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + `id=${connectionToken}`;\r\n }\r\n async _createTransport(url, requestedTransport, negotiateResponse, requestedTransferFormat) {\r\n let connectUrl = this._createConnectUrl(url, negotiateResponse.connectionToken);\r\n if (this._isITransport(requestedTransport)) {\r\n this._logger.log(LogLevel.Debug, \"Connection was provided an instance of ITransport, using that directly.\");\r\n this.transport = requestedTransport;\r\n await this._startTransport(connectUrl, requestedTransferFormat);\r\n this.connectionId = negotiateResponse.connectionId;\r\n return;\r\n }\r\n const transportExceptions = [];\r\n const transports = negotiateResponse.availableTransports || [];\r\n let negotiate = negotiateResponse;\r\n for (const endpoint of transports) {\r\n const transportOrError = this._resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat, (negotiate === null || negotiate === void 0 ? void 0 : negotiate.useStatefulReconnect) === true);\r\n if (transportOrError instanceof Error) {\r\n // Store the error and continue, we don't want to cause a re-negotiate in these cases\r\n transportExceptions.push(`${endpoint.transport} failed:`);\r\n transportExceptions.push(transportOrError);\r\n }\r\n else if (this._isITransport(transportOrError)) {\r\n this.transport = transportOrError;\r\n if (!negotiate) {\r\n try {\r\n negotiate = await this._getNegotiationResponse(url);\r\n }\r\n catch (ex) {\r\n return Promise.reject(ex);\r\n }\r\n connectUrl = this._createConnectUrl(url, negotiate.connectionToken);\r\n }\r\n try {\r\n await this._startTransport(connectUrl, requestedTransferFormat);\r\n this.connectionId = negotiate.connectionId;\r\n return;\r\n }\r\n catch (ex) {\r\n this._logger.log(LogLevel.Error, `Failed to start the transport '${endpoint.transport}': ${ex}`);\r\n negotiate = undefined;\r\n transportExceptions.push(new FailedToStartTransportError(`${endpoint.transport} failed: ${ex}`, HttpTransportType[endpoint.transport]));\r\n if (this._connectionState !== \"Connecting\" /* ConnectionState.Connecting */) {\r\n const message = \"Failed to select transport before stop() was called.\";\r\n this._logger.log(LogLevel.Debug, message);\r\n return Promise.reject(new AbortError(message));\r\n }\r\n }\r\n }\r\n }\r\n if (transportExceptions.length > 0) {\r\n return Promise.reject(new AggregateErrors(`Unable to connect to the server with any of the available transports. ${transportExceptions.join(\" \")}`, transportExceptions));\r\n }\r\n return Promise.reject(new Error(\"None of the transports supported by the client are supported by the server.\"));\r\n }\r\n _constructTransport(transport) {\r\n switch (transport) {\r\n case HttpTransportType.WebSockets:\r\n if (!this._options.WebSocket) {\r\n throw new Error(\"'WebSocket' is not supported in your environment.\");\r\n }\r\n return new WebSocketTransport(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});\r\n case HttpTransportType.ServerSentEvents:\r\n if (!this._options.EventSource) {\r\n throw new Error(\"'EventSource' is not supported in your environment.\");\r\n }\r\n return new ServerSentEventsTransport(this._httpClient, this._httpClient._accessToken, this._logger, this._options);\r\n case HttpTransportType.LongPolling:\r\n return new LongPollingTransport(this._httpClient, this._logger, this._options);\r\n default:\r\n throw new Error(`Unknown transport: ${transport}.`);\r\n }\r\n }\r\n _startTransport(url, transferFormat) {\r\n this.transport.onreceive = this.onreceive;\r\n if (this.features.reconnect) {\r\n this.transport.onclose = async (e) => {\r\n let callStop = false;\r\n if (this.features.reconnect) {\r\n try {\r\n this.features.disconnected();\r\n await this.transport.connect(url, transferFormat);\r\n await this.features.resend();\r\n }\r\n catch {\r\n callStop = true;\r\n }\r\n }\r\n else {\r\n this._stopConnection(e);\r\n return;\r\n }\r\n if (callStop) {\r\n this._stopConnection(e);\r\n }\r\n };\r\n }\r\n else {\r\n this.transport.onclose = (e) => this._stopConnection(e);\r\n }\r\n return this.transport.connect(url, transferFormat);\r\n }\r\n _resolveTransportOrError(endpoint, requestedTransport, requestedTransferFormat, useStatefulReconnect) {\r\n const transport = HttpTransportType[endpoint.transport];\r\n if (transport === null || transport === undefined) {\r\n this._logger.log(LogLevel.Debug, `Skipping transport '${endpoint.transport}' because it is not supported by this client.`);\r\n return new Error(`Skipping transport '${endpoint.transport}' because it is not supported by this client.`);\r\n }\r\n else {\r\n if (transportMatches(requestedTransport, transport)) {\r\n const transferFormats = endpoint.transferFormats.map((s) => TransferFormat[s]);\r\n if (transferFormats.indexOf(requestedTransferFormat) >= 0) {\r\n if ((transport === HttpTransportType.WebSockets && !this._options.WebSocket) ||\r\n (transport === HttpTransportType.ServerSentEvents && !this._options.EventSource)) {\r\n this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it is not supported in your environment.'`);\r\n return new UnsupportedTransportError(`'${HttpTransportType[transport]}' is not supported in your environment.`, transport);\r\n }\r\n else {\r\n this._logger.log(LogLevel.Debug, `Selecting transport '${HttpTransportType[transport]}'.`);\r\n try {\r\n this.features.reconnect = transport === HttpTransportType.WebSockets ? useStatefulReconnect : undefined;\r\n return this._constructTransport(transport);\r\n }\r\n catch (ex) {\r\n return ex;\r\n }\r\n }\r\n }\r\n else {\r\n this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it does not support the requested transfer format '${TransferFormat[requestedTransferFormat]}'.`);\r\n return new Error(`'${HttpTransportType[transport]}' does not support ${TransferFormat[requestedTransferFormat]}.`);\r\n }\r\n }\r\n else {\r\n this._logger.log(LogLevel.Debug, `Skipping transport '${HttpTransportType[transport]}' because it was disabled by the client.`);\r\n return new DisabledTransportError(`'${HttpTransportType[transport]}' is disabled by the client.`, transport);\r\n }\r\n }\r\n }\r\n _isITransport(transport) {\r\n return transport && typeof (transport) === \"object\" && \"connect\" in transport;\r\n }\r\n _stopConnection(error) {\r\n this._logger.log(LogLevel.Debug, `HttpConnection.stopConnection(${error}) called while in state ${this._connectionState}.`);\r\n this.transport = undefined;\r\n // If we have a stopError, it takes precedence over the error from the transport\r\n error = this._stopError || error;\r\n this._stopError = undefined;\r\n if (this._connectionState === \"Disconnected\" /* ConnectionState.Disconnected */) {\r\n this._logger.log(LogLevel.Debug, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is already in the disconnected state.`);\r\n return;\r\n }\r\n if (this._connectionState === \"Connecting\" /* ConnectionState.Connecting */) {\r\n this._logger.log(LogLevel.Warning, `Call to HttpConnection.stopConnection(${error}) was ignored because the connection is still in the connecting state.`);\r\n throw new Error(`HttpConnection.stopConnection(${error}) was called while the connection is still in the connecting state.`);\r\n }\r\n if (this._connectionState === \"Disconnecting\" /* ConnectionState.Disconnecting */) {\r\n // A call to stop() induced this call to stopConnection and needs to be completed.\r\n // Any stop() awaiters will be scheduled to continue after the onclose callback fires.\r\n this._stopPromiseResolver();\r\n }\r\n if (error) {\r\n this._logger.log(LogLevel.Error, `Connection disconnected with error '${error}'.`);\r\n }\r\n else {\r\n this._logger.log(LogLevel.Information, \"Connection disconnected.\");\r\n }\r\n if (this._sendQueue) {\r\n this._sendQueue.stop().catch((e) => {\r\n this._logger.log(LogLevel.Error, `TransportSendQueue.stop() threw error '${e}'.`);\r\n });\r\n this._sendQueue = undefined;\r\n }\r\n this.connectionId = undefined;\r\n this._connectionState = \"Disconnected\" /* ConnectionState.Disconnected */;\r\n if (this._connectionStarted) {\r\n this._connectionStarted = false;\r\n try {\r\n if (this.onclose) {\r\n this.onclose(error);\r\n }\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `HttpConnection.onclose(${error}) threw error '${e}'.`);\r\n }\r\n }\r\n }\r\n _resolveUrl(url) {\r\n // startsWith is not supported in IE\r\n if (url.lastIndexOf(\"https://\", 0) === 0 || url.lastIndexOf(\"http://\", 0) === 0) {\r\n return url;\r\n }\r\n if (!Platform.isBrowser) {\r\n throw new Error(`Cannot resolve '${url}'.`);\r\n }\r\n // Setting the url to the href propery of an anchor tag handles normalization\r\n // for us. There are 3 main cases.\r\n // 1. Relative path normalization e.g \"b\" -> \"http://localhost:5000/a/b\"\r\n // 2. Absolute path normalization e.g \"/a/b\" -> \"http://localhost:5000/a/b\"\r\n // 3. Networkpath reference normalization e.g \"//localhost:5000/a/b\" -> \"http://localhost:5000/a/b\"\r\n const aTag = window.document.createElement(\"a\");\r\n aTag.href = url;\r\n this._logger.log(LogLevel.Information, `Normalizing '${url}' to '${aTag.href}'.`);\r\n return aTag.href;\r\n }\r\n _resolveNegotiateUrl(url) {\r\n const negotiateUrl = new URL(url);\r\n if (negotiateUrl.pathname.endsWith('/')) {\r\n negotiateUrl.pathname += \"negotiate\";\r\n }\r\n else {\r\n negotiateUrl.pathname += \"/negotiate\";\r\n }\r\n const searchParams = new URLSearchParams(negotiateUrl.searchParams);\r\n if (!searchParams.has(\"negotiateVersion\")) {\r\n searchParams.append(\"negotiateVersion\", this._negotiateVersion.toString());\r\n }\r\n if (searchParams.has(\"useStatefulReconnect\")) {\r\n if (searchParams.get(\"useStatefulReconnect\") === \"true\") {\r\n this._options._useStatefulReconnect = true;\r\n }\r\n }\r\n else if (this._options._useStatefulReconnect === true) {\r\n searchParams.append(\"useStatefulReconnect\", \"true\");\r\n }\r\n negotiateUrl.search = searchParams.toString();\r\n return negotiateUrl.toString();\r\n }\r\n}\r\nfunction transportMatches(requestedTransport, actualTransport) {\r\n return !requestedTransport || ((actualTransport & requestedTransport) !== 0);\r\n}\r\n/** @private */\r\nexport class TransportSendQueue {\r\n constructor(_transport) {\r\n this._transport = _transport;\r\n this._buffer = [];\r\n this._executing = true;\r\n this._sendBufferedData = new PromiseSource();\r\n this._transportResult = new PromiseSource();\r\n this._sendLoopPromise = this._sendLoop();\r\n }\r\n send(data) {\r\n this._bufferData(data);\r\n if (!this._transportResult) {\r\n this._transportResult = new PromiseSource();\r\n }\r\n return this._transportResult.promise;\r\n }\r\n stop() {\r\n this._executing = false;\r\n this._sendBufferedData.resolve();\r\n return this._sendLoopPromise;\r\n }\r\n _bufferData(data) {\r\n if (this._buffer.length && typeof (this._buffer[0]) !== typeof (data)) {\r\n throw new Error(`Expected data to be of type ${typeof (this._buffer)} but was of type ${typeof (data)}`);\r\n }\r\n this._buffer.push(data);\r\n this._sendBufferedData.resolve();\r\n }\r\n async _sendLoop() {\r\n while (true) {\r\n await this._sendBufferedData.promise;\r\n if (!this._executing) {\r\n if (this._transportResult) {\r\n this._transportResult.reject(\"Connection stopped.\");\r\n }\r\n break;\r\n }\r\n this._sendBufferedData = new PromiseSource();\r\n const transportResult = this._transportResult;\r\n this._transportResult = undefined;\r\n const data = typeof (this._buffer[0]) === \"string\" ?\r\n this._buffer.join(\"\") :\r\n TransportSendQueue._concatBuffers(this._buffer);\r\n this._buffer.length = 0;\r\n try {\r\n await this._transport.send(data);\r\n transportResult.resolve();\r\n }\r\n catch (error) {\r\n transportResult.reject(error);\r\n }\r\n }\r\n }\r\n static _concatBuffers(arrayBuffers) {\r\n const totalLength = arrayBuffers.map((b) => b.byteLength).reduce((a, b) => a + b);\r\n const result = new Uint8Array(totalLength);\r\n let offset = 0;\r\n for (const item of arrayBuffers) {\r\n result.set(new Uint8Array(item), offset);\r\n offset += item.byteLength;\r\n }\r\n return result.buffer;\r\n }\r\n}\r\nclass PromiseSource {\r\n constructor() {\r\n this.promise = new Promise((resolve, reject) => [this._resolver, this._rejecter] = [resolve, reject]);\r\n }\r\n resolve() {\r\n this._resolver();\r\n }\r\n reject(reason) {\r\n this._rejecter(reason);\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n// Not exported from index\r\n/** @private */\r\nexport class TextMessageFormat {\r\n static write(output) {\r\n return `${output}${TextMessageFormat.RecordSeparator}`;\r\n }\r\n static parse(input) {\r\n if (input[input.length - 1] !== TextMessageFormat.RecordSeparator) {\r\n throw new Error(\"Message is incomplete.\");\r\n }\r\n const messages = input.split(TextMessageFormat.RecordSeparator);\r\n messages.pop();\r\n return messages;\r\n }\r\n}\r\nTextMessageFormat.RecordSeparatorCode = 0x1e;\r\nTextMessageFormat.RecordSeparator = String.fromCharCode(TextMessageFormat.RecordSeparatorCode);\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { TextMessageFormat } from \"./TextMessageFormat\";\r\nimport { isArrayBuffer } from \"./Utils\";\r\n/** @private */\r\nexport class HandshakeProtocol {\r\n // Handshake request is always JSON\r\n writeHandshakeRequest(handshakeRequest) {\r\n return TextMessageFormat.write(JSON.stringify(handshakeRequest));\r\n }\r\n parseHandshakeResponse(data) {\r\n let messageData;\r\n let remainingData;\r\n if (isArrayBuffer(data)) {\r\n // Format is binary but still need to read JSON text from handshake response\r\n const binaryData = new Uint8Array(data);\r\n const separatorIndex = binaryData.indexOf(TextMessageFormat.RecordSeparatorCode);\r\n if (separatorIndex === -1) {\r\n throw new Error(\"Message is incomplete.\");\r\n }\r\n // content before separator is handshake response\r\n // optional content after is additional messages\r\n const responseLength = separatorIndex + 1;\r\n messageData = String.fromCharCode.apply(null, Array.prototype.slice.call(binaryData.slice(0, responseLength)));\r\n remainingData = (binaryData.byteLength > responseLength) ? binaryData.slice(responseLength).buffer : null;\r\n }\r\n else {\r\n const textData = data;\r\n const separatorIndex = textData.indexOf(TextMessageFormat.RecordSeparator);\r\n if (separatorIndex === -1) {\r\n throw new Error(\"Message is incomplete.\");\r\n }\r\n // content before separator is handshake response\r\n // optional content after is additional messages\r\n const responseLength = separatorIndex + 1;\r\n messageData = textData.substring(0, responseLength);\r\n remainingData = (textData.length > responseLength) ? textData.substring(responseLength) : null;\r\n }\r\n // At this point we should have just the single handshake message\r\n const messages = TextMessageFormat.parse(messageData);\r\n const response = JSON.parse(messages[0]);\r\n if (response.type) {\r\n throw new Error(\"Expected a handshake response from the server.\");\r\n }\r\n const responseMessage = response;\r\n // multiple messages could have arrived with handshake\r\n // return additional data to be parsed as usual, or null if all parsed\r\n return [remainingData, responseMessage];\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\n/** Defines the type of a Hub Message. */\r\nexport var MessageType;\r\n(function (MessageType) {\r\n /** Indicates the message is an Invocation message and implements the {@link @microsoft/signalr.InvocationMessage} interface. */\r\n MessageType[MessageType[\"Invocation\"] = 1] = \"Invocation\";\r\n /** Indicates the message is a StreamItem message and implements the {@link @microsoft/signalr.StreamItemMessage} interface. */\r\n MessageType[MessageType[\"StreamItem\"] = 2] = \"StreamItem\";\r\n /** Indicates the message is a Completion message and implements the {@link @microsoft/signalr.CompletionMessage} interface. */\r\n MessageType[MessageType[\"Completion\"] = 3] = \"Completion\";\r\n /** Indicates the message is a Stream Invocation message and implements the {@link @microsoft/signalr.StreamInvocationMessage} interface. */\r\n MessageType[MessageType[\"StreamInvocation\"] = 4] = \"StreamInvocation\";\r\n /** Indicates the message is a Cancel Invocation message and implements the {@link @microsoft/signalr.CancelInvocationMessage} interface. */\r\n MessageType[MessageType[\"CancelInvocation\"] = 5] = \"CancelInvocation\";\r\n /** Indicates the message is a Ping message and implements the {@link @microsoft/signalr.PingMessage} interface. */\r\n MessageType[MessageType[\"Ping\"] = 6] = \"Ping\";\r\n /** Indicates the message is a Close message and implements the {@link @microsoft/signalr.CloseMessage} interface. */\r\n MessageType[MessageType[\"Close\"] = 7] = \"Close\";\r\n MessageType[MessageType[\"Ack\"] = 8] = \"Ack\";\r\n MessageType[MessageType[\"Sequence\"] = 9] = \"Sequence\";\r\n})(MessageType || (MessageType = {}));\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { SubjectSubscription } from \"./Utils\";\r\n/** Stream implementation to stream items to the server. */\r\nexport class Subject {\r\n constructor() {\r\n this.observers = [];\r\n }\r\n next(item) {\r\n for (const observer of this.observers) {\r\n observer.next(item);\r\n }\r\n }\r\n error(err) {\r\n for (const observer of this.observers) {\r\n if (observer.error) {\r\n observer.error(err);\r\n }\r\n }\r\n }\r\n complete() {\r\n for (const observer of this.observers) {\r\n if (observer.complete) {\r\n observer.complete();\r\n }\r\n }\r\n }\r\n subscribe(observer) {\r\n this.observers.push(observer);\r\n return new SubjectSubscription(this, observer);\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { MessageType } from \"./IHubProtocol\";\r\nimport { isArrayBuffer } from \"./Utils\";\r\n/** @private */\r\nexport class MessageBuffer {\r\n constructor(protocol, connection, bufferSize) {\r\n this._bufferSize = 100000;\r\n this._messages = [];\r\n this._totalMessageCount = 0;\r\n this._waitForSequenceMessage = false;\r\n // Message IDs start at 1 and always increment by 1\r\n this._nextReceivingSequenceId = 1;\r\n this._latestReceivedSequenceId = 0;\r\n this._bufferedByteCount = 0;\r\n this._reconnectInProgress = false;\r\n this._protocol = protocol;\r\n this._connection = connection;\r\n this._bufferSize = bufferSize;\r\n }\r\n async _send(message) {\r\n const serializedMessage = this._protocol.writeMessage(message);\r\n let backpressurePromise = Promise.resolve();\r\n // Only count invocation messages. Acks, pings, etc. don't need to be resent on reconnect\r\n if (this._isInvocationMessage(message)) {\r\n this._totalMessageCount++;\r\n let backpressurePromiseResolver = () => { };\r\n let backpressurePromiseRejector = () => { };\r\n if (isArrayBuffer(serializedMessage)) {\r\n this._bufferedByteCount += serializedMessage.byteLength;\r\n }\r\n else {\r\n this._bufferedByteCount += serializedMessage.length;\r\n }\r\n if (this._bufferedByteCount >= this._bufferSize) {\r\n backpressurePromise = new Promise((resolve, reject) => {\r\n backpressurePromiseResolver = resolve;\r\n backpressurePromiseRejector = reject;\r\n });\r\n }\r\n this._messages.push(new BufferedItem(serializedMessage, this._totalMessageCount, backpressurePromiseResolver, backpressurePromiseRejector));\r\n }\r\n try {\r\n // If this is set it means we are reconnecting or resending\r\n // We don't want to send on a disconnected connection\r\n // And we don't want to send if resend is running since that would mean sending\r\n // this message twice\r\n if (!this._reconnectInProgress) {\r\n await this._connection.send(serializedMessage);\r\n }\r\n }\r\n catch {\r\n this._disconnected();\r\n }\r\n await backpressurePromise;\r\n }\r\n _ack(ackMessage) {\r\n let newestAckedMessage = -1;\r\n // Find index of newest message being acked\r\n for (let index = 0; index < this._messages.length; index++) {\r\n const element = this._messages[index];\r\n if (element._id <= ackMessage.sequenceId) {\r\n newestAckedMessage = index;\r\n if (isArrayBuffer(element._message)) {\r\n this._bufferedByteCount -= element._message.byteLength;\r\n }\r\n else {\r\n this._bufferedByteCount -= element._message.length;\r\n }\r\n // resolve items that have already been sent and acked\r\n element._resolver();\r\n }\r\n else if (this._bufferedByteCount < this._bufferSize) {\r\n // resolve items that now fall under the buffer limit but haven't been acked\r\n element._resolver();\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n if (newestAckedMessage !== -1) {\r\n // We're removing everything including the message pointed to, so add 1\r\n this._messages = this._messages.slice(newestAckedMessage + 1);\r\n }\r\n }\r\n _shouldProcessMessage(message) {\r\n if (this._waitForSequenceMessage) {\r\n if (message.type !== MessageType.Sequence) {\r\n return false;\r\n }\r\n else {\r\n this._waitForSequenceMessage = false;\r\n return true;\r\n }\r\n }\r\n // No special processing for acks, pings, etc.\r\n if (!this._isInvocationMessage(message)) {\r\n return true;\r\n }\r\n const currentId = this._nextReceivingSequenceId;\r\n this._nextReceivingSequenceId++;\r\n if (currentId <= this._latestReceivedSequenceId) {\r\n if (currentId === this._latestReceivedSequenceId) {\r\n // Should only hit this if we just reconnected and the server is sending\r\n // Messages it has buffered, which would mean it hasn't seen an Ack for these messages\r\n this._ackTimer();\r\n }\r\n // Ignore, this is a duplicate message\r\n return false;\r\n }\r\n this._latestReceivedSequenceId = currentId;\r\n // Only start the timer for sending an Ack message when we have a message to ack. This also conveniently solves\r\n // timer throttling by not having a recursive timer, and by starting the timer via a network call (recv)\r\n this._ackTimer();\r\n return true;\r\n }\r\n _resetSequence(message) {\r\n if (message.sequenceId > this._nextReceivingSequenceId) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this._connection.stop(new Error(\"Sequence ID greater than amount of messages we've received.\"));\r\n return;\r\n }\r\n this._nextReceivingSequenceId = message.sequenceId;\r\n }\r\n _disconnected() {\r\n this._reconnectInProgress = true;\r\n this._waitForSequenceMessage = true;\r\n }\r\n async _resend() {\r\n const sequenceId = this._messages.length !== 0\r\n ? this._messages[0]._id\r\n : this._totalMessageCount + 1;\r\n await this._connection.send(this._protocol.writeMessage({ type: MessageType.Sequence, sequenceId }));\r\n // Get a local variable to the _messages, just in case messages are acked while resending\r\n // Which would slice the _messages array (which creates a new copy)\r\n const messages = this._messages;\r\n for (const element of messages) {\r\n await this._connection.send(element._message);\r\n }\r\n this._reconnectInProgress = false;\r\n }\r\n _dispose(error) {\r\n error !== null && error !== void 0 ? error : (error = new Error(\"Unable to reconnect to server.\"));\r\n // Unblock backpressure if any\r\n for (const element of this._messages) {\r\n element._rejector(error);\r\n }\r\n }\r\n _isInvocationMessage(message) {\r\n // There is no way to check if something implements an interface.\r\n // So we individually check the messages in a switch statement.\r\n // To make sure we don't miss any message types we rely on the compiler\r\n // seeing the function returns a value and it will do the\r\n // exhaustive check for us on the switch statement, since we don't use 'case default'\r\n switch (message.type) {\r\n case MessageType.Invocation:\r\n case MessageType.StreamItem:\r\n case MessageType.Completion:\r\n case MessageType.StreamInvocation:\r\n case MessageType.CancelInvocation:\r\n return true;\r\n case MessageType.Close:\r\n case MessageType.Sequence:\r\n case MessageType.Ping:\r\n case MessageType.Ack:\r\n return false;\r\n }\r\n }\r\n _ackTimer() {\r\n if (this._ackTimerHandle === undefined) {\r\n this._ackTimerHandle = setTimeout(async () => {\r\n try {\r\n if (!this._reconnectInProgress) {\r\n await this._connection.send(this._protocol.writeMessage({ type: MessageType.Ack, sequenceId: this._latestReceivedSequenceId }));\r\n }\r\n // Ignore errors, that means the connection is closed and we don't care about the Ack message anymore.\r\n }\r\n catch { }\r\n clearTimeout(this._ackTimerHandle);\r\n this._ackTimerHandle = undefined;\r\n // 1 second delay so we don't spam Ack messages if there are many messages being received at once.\r\n }, 1000);\r\n }\r\n }\r\n}\r\nclass BufferedItem {\r\n constructor(message, id, resolver, rejector) {\r\n this._message = message;\r\n this._id = id;\r\n this._resolver = resolver;\r\n this._rejector = rejector;\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { HandshakeProtocol } from \"./HandshakeProtocol\";\r\nimport { AbortError } from \"./Errors\";\r\nimport { MessageType } from \"./IHubProtocol\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { Subject } from \"./Subject\";\r\nimport { Arg, getErrorString, Platform } from \"./Utils\";\r\nimport { MessageBuffer } from \"./MessageBuffer\";\r\nconst DEFAULT_TIMEOUT_IN_MS = 30 * 1000;\r\nconst DEFAULT_PING_INTERVAL_IN_MS = 15 * 1000;\r\nconst DEFAULT_STATEFUL_RECONNECT_BUFFER_SIZE = 100000;\r\n/** Describes the current state of the {@link HubConnection} to the server. */\r\nexport var HubConnectionState;\r\n(function (HubConnectionState) {\r\n /** The hub connection is disconnected. */\r\n HubConnectionState[\"Disconnected\"] = \"Disconnected\";\r\n /** The hub connection is connecting. */\r\n HubConnectionState[\"Connecting\"] = \"Connecting\";\r\n /** The hub connection is connected. */\r\n HubConnectionState[\"Connected\"] = \"Connected\";\r\n /** The hub connection is disconnecting. */\r\n HubConnectionState[\"Disconnecting\"] = \"Disconnecting\";\r\n /** The hub connection is reconnecting. */\r\n HubConnectionState[\"Reconnecting\"] = \"Reconnecting\";\r\n})(HubConnectionState || (HubConnectionState = {}));\r\n/** Represents a connection to a SignalR Hub. */\r\nexport class HubConnection {\r\n /** @internal */\r\n // Using a public static factory method means we can have a private constructor and an _internal_\r\n // create method that can be used by HubConnectionBuilder. An \"internal\" constructor would just\r\n // be stripped away and the '.d.ts' file would have no constructor, which is interpreted as a\r\n // public parameter-less constructor.\r\n static create(connection, logger, protocol, reconnectPolicy, serverTimeoutInMilliseconds, keepAliveIntervalInMilliseconds, statefulReconnectBufferSize) {\r\n return new HubConnection(connection, logger, protocol, reconnectPolicy, serverTimeoutInMilliseconds, keepAliveIntervalInMilliseconds, statefulReconnectBufferSize);\r\n }\r\n constructor(connection, logger, protocol, reconnectPolicy, serverTimeoutInMilliseconds, keepAliveIntervalInMilliseconds, statefulReconnectBufferSize) {\r\n this._nextKeepAlive = 0;\r\n this._freezeEventListener = () => {\r\n this._logger.log(LogLevel.Warning, \"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep\");\r\n };\r\n Arg.isRequired(connection, \"connection\");\r\n Arg.isRequired(logger, \"logger\");\r\n Arg.isRequired(protocol, \"protocol\");\r\n this.serverTimeoutInMilliseconds = serverTimeoutInMilliseconds !== null && serverTimeoutInMilliseconds !== void 0 ? serverTimeoutInMilliseconds : DEFAULT_TIMEOUT_IN_MS;\r\n this.keepAliveIntervalInMilliseconds = keepAliveIntervalInMilliseconds !== null && keepAliveIntervalInMilliseconds !== void 0 ? keepAliveIntervalInMilliseconds : DEFAULT_PING_INTERVAL_IN_MS;\r\n this._statefulReconnectBufferSize = statefulReconnectBufferSize !== null && statefulReconnectBufferSize !== void 0 ? statefulReconnectBufferSize : DEFAULT_STATEFUL_RECONNECT_BUFFER_SIZE;\r\n this._logger = logger;\r\n this._protocol = protocol;\r\n this.connection = connection;\r\n this._reconnectPolicy = reconnectPolicy;\r\n this._handshakeProtocol = new HandshakeProtocol();\r\n this.connection.onreceive = (data) => this._processIncomingData(data);\r\n this.connection.onclose = (error) => this._connectionClosed(error);\r\n this._callbacks = {};\r\n this._methods = {};\r\n this._closedCallbacks = [];\r\n this._reconnectingCallbacks = [];\r\n this._reconnectedCallbacks = [];\r\n this._invocationId = 0;\r\n this._receivedHandshakeResponse = false;\r\n this._connectionState = HubConnectionState.Disconnected;\r\n this._connectionStarted = false;\r\n this._cachedPingMessage = this._protocol.writeMessage({ type: MessageType.Ping });\r\n }\r\n /** Indicates the state of the {@link HubConnection} to the server. */\r\n get state() {\r\n return this._connectionState;\r\n }\r\n /** Represents the connection id of the {@link HubConnection} on the server. The connection id will be null when the connection is either\r\n * in the disconnected state or if the negotiation step was skipped.\r\n */\r\n get connectionId() {\r\n return this.connection ? (this.connection.connectionId || null) : null;\r\n }\r\n /** Indicates the url of the {@link HubConnection} to the server. */\r\n get baseUrl() {\r\n return this.connection.baseUrl || \"\";\r\n }\r\n /**\r\n * Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or\r\n * Reconnecting states.\r\n * @param {string} url The url to connect to.\r\n */\r\n set baseUrl(url) {\r\n if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) {\r\n throw new Error(\"The HubConnection must be in the Disconnected or Reconnecting state to change the url.\");\r\n }\r\n if (!url) {\r\n throw new Error(\"The HubConnection url must be a valid url.\");\r\n }\r\n this.connection.baseUrl = url;\r\n }\r\n /** Starts the connection.\r\n *\r\n * @returns {Promise<void>} A Promise that resolves when the connection has been successfully established, or rejects with an error.\r\n */\r\n start() {\r\n this._startPromise = this._startWithStateTransitions();\r\n return this._startPromise;\r\n }\r\n async _startWithStateTransitions() {\r\n if (this._connectionState !== HubConnectionState.Disconnected) {\r\n return Promise.reject(new Error(\"Cannot start a HubConnection that is not in the 'Disconnected' state.\"));\r\n }\r\n this._connectionState = HubConnectionState.Connecting;\r\n this._logger.log(LogLevel.Debug, \"Starting HubConnection.\");\r\n try {\r\n await this._startInternal();\r\n if (Platform.isBrowser) {\r\n // Log when the browser freezes the tab so users know why their connection unexpectedly stopped working\r\n window.document.addEventListener(\"freeze\", this._freezeEventListener);\r\n }\r\n this._connectionState = HubConnectionState.Connected;\r\n this._connectionStarted = true;\r\n this._logger.log(LogLevel.Debug, \"HubConnection connected successfully.\");\r\n }\r\n catch (e) {\r\n this._connectionState = HubConnectionState.Disconnected;\r\n this._logger.log(LogLevel.Debug, `HubConnection failed to start successfully because of error '${e}'.`);\r\n return Promise.reject(e);\r\n }\r\n }\r\n async _startInternal() {\r\n this._stopDuringStartError = undefined;\r\n this._receivedHandshakeResponse = false;\r\n // Set up the promise before any connection is (re)started otherwise it could race with received messages\r\n const handshakePromise = new Promise((resolve, reject) => {\r\n this._handshakeResolver = resolve;\r\n this._handshakeRejecter = reject;\r\n });\r\n await this.connection.start(this._protocol.transferFormat);\r\n try {\r\n let version = this._protocol.version;\r\n if (!this.connection.features.reconnect) {\r\n // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to\r\n // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.\r\n version = 1;\r\n }\r\n const handshakeRequest = {\r\n protocol: this._protocol.name,\r\n version,\r\n };\r\n this._logger.log(LogLevel.Debug, \"Sending handshake request.\");\r\n await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(handshakeRequest));\r\n this._logger.log(LogLevel.Information, `Using HubProtocol '${this._protocol.name}'.`);\r\n // defensively cleanup timeout in case we receive a message from the server before we finish start\r\n this._cleanupTimeout();\r\n this._resetTimeoutPeriod();\r\n this._resetKeepAliveInterval();\r\n await handshakePromise;\r\n // It's important to check the stopDuringStartError instead of just relying on the handshakePromise\r\n // being rejected on close, because this continuation can run after both the handshake completed successfully\r\n // and the connection was closed.\r\n if (this._stopDuringStartError) {\r\n // It's important to throw instead of returning a rejected promise, because we don't want to allow any state\r\n // transitions to occur between now and the calling code observing the exceptions. Returning a rejected promise\r\n // will cause the calling continuation to get scheduled to run later.\r\n // eslint-disable-next-line @typescript-eslint/no-throw-literal\r\n throw this._stopDuringStartError;\r\n }\r\n const useStatefulReconnect = this.connection.features.reconnect || false;\r\n if (useStatefulReconnect) {\r\n this._messageBuffer = new MessageBuffer(this._protocol, this.connection, this._statefulReconnectBufferSize);\r\n this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer);\r\n this.connection.features.resend = () => {\r\n if (this._messageBuffer) {\r\n return this._messageBuffer._resend();\r\n }\r\n };\r\n }\r\n if (!this.connection.features.inherentKeepAlive) {\r\n await this._sendMessage(this._cachedPingMessage);\r\n }\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Debug, `Hub handshake failed with error '${e}' during start(). Stopping HubConnection.`);\r\n this._cleanupTimeout();\r\n this._cleanupPingTimer();\r\n // HttpConnection.stop() should not complete until after the onclose callback is invoked.\r\n // This will transition the HubConnection to the disconnected state before HttpConnection.stop() completes.\r\n await this.connection.stop(e);\r\n throw e;\r\n }\r\n }\r\n /** Stops the connection.\r\n *\r\n * @returns {Promise<void>} A Promise that resolves when the connection has been successfully terminated, or rejects with an error.\r\n */\r\n async stop() {\r\n // Capture the start promise before the connection might be restarted in an onclose callback.\r\n const startPromise = this._startPromise;\r\n this.connection.features.reconnect = false;\r\n this._stopPromise = this._stopInternal();\r\n await this._stopPromise;\r\n try {\r\n // Awaiting undefined continues immediately\r\n await startPromise;\r\n }\r\n catch (e) {\r\n // This exception is returned to the user as a rejected Promise from the start method.\r\n }\r\n }\r\n _stopInternal(error) {\r\n if (this._connectionState === HubConnectionState.Disconnected) {\r\n this._logger.log(LogLevel.Debug, `Call to HubConnection.stop(${error}) ignored because it is already in the disconnected state.`);\r\n return Promise.resolve();\r\n }\r\n if (this._connectionState === HubConnectionState.Disconnecting) {\r\n this._logger.log(LogLevel.Debug, `Call to HttpConnection.stop(${error}) ignored because the connection is already in the disconnecting state.`);\r\n return this._stopPromise;\r\n }\r\n const state = this._connectionState;\r\n this._connectionState = HubConnectionState.Disconnecting;\r\n this._logger.log(LogLevel.Debug, \"Stopping HubConnection.\");\r\n if (this._reconnectDelayHandle) {\r\n // We're in a reconnect delay which means the underlying connection is currently already stopped.\r\n // Just clear the handle to stop the reconnect loop (which no one is waiting on thankfully) and\r\n // fire the onclose callbacks.\r\n this._logger.log(LogLevel.Debug, \"Connection stopped during reconnect delay. Done reconnecting.\");\r\n clearTimeout(this._reconnectDelayHandle);\r\n this._reconnectDelayHandle = undefined;\r\n this._completeClose();\r\n return Promise.resolve();\r\n }\r\n if (state === HubConnectionState.Connected) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this._sendCloseMessage();\r\n }\r\n this._cleanupTimeout();\r\n this._cleanupPingTimer();\r\n this._stopDuringStartError = error || new AbortError(\"The connection was stopped before the hub handshake could complete.\");\r\n // HttpConnection.stop() should not complete until after either HttpConnection.start() fails\r\n // or the onclose callback is invoked. The onclose callback will transition the HubConnection\r\n // to the disconnected state if need be before HttpConnection.stop() completes.\r\n return this.connection.stop(error);\r\n }\r\n async _sendCloseMessage() {\r\n try {\r\n await this._sendWithProtocol(this._createCloseMessage());\r\n }\r\n catch {\r\n // Ignore, this is a best effort attempt to let the server know the client closed gracefully.\r\n }\r\n }\r\n /** Invokes a streaming hub method on the server using the specified name and arguments.\r\n *\r\n * @typeparam T The type of the items returned by the server.\r\n * @param {string} methodName The name of the server method to invoke.\r\n * @param {any[]} args The arguments used to invoke the server method.\r\n * @returns {IStreamResult<T>} An object that yields results from the server as they are received.\r\n */\r\n stream(methodName, ...args) {\r\n const [streams, streamIds] = this._replaceStreamingParams(args);\r\n const invocationDescriptor = this._createStreamInvocation(methodName, args, streamIds);\r\n // eslint-disable-next-line prefer-const\r\n let promiseQueue;\r\n const subject = new Subject();\r\n subject.cancelCallback = () => {\r\n const cancelInvocation = this._createCancelInvocation(invocationDescriptor.invocationId);\r\n delete this._callbacks[invocationDescriptor.invocationId];\r\n return promiseQueue.then(() => {\r\n return this._sendWithProtocol(cancelInvocation);\r\n });\r\n };\r\n this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {\r\n if (error) {\r\n subject.error(error);\r\n return;\r\n }\r\n else if (invocationEvent) {\r\n // invocationEvent will not be null when an error is not passed to the callback\r\n if (invocationEvent.type === MessageType.Completion) {\r\n if (invocationEvent.error) {\r\n subject.error(new Error(invocationEvent.error));\r\n }\r\n else {\r\n subject.complete();\r\n }\r\n }\r\n else {\r\n subject.next((invocationEvent.item));\r\n }\r\n }\r\n };\r\n promiseQueue = this._sendWithProtocol(invocationDescriptor)\r\n .catch((e) => {\r\n subject.error(e);\r\n delete this._callbacks[invocationDescriptor.invocationId];\r\n });\r\n this._launchStreams(streams, promiseQueue);\r\n return subject;\r\n }\r\n _sendMessage(message) {\r\n this._resetKeepAliveInterval();\r\n return this.connection.send(message);\r\n }\r\n /**\r\n * Sends a js object to the server.\r\n * @param message The js object to serialize and send.\r\n */\r\n _sendWithProtocol(message) {\r\n if (this._messageBuffer) {\r\n return this._messageBuffer._send(message);\r\n }\r\n else {\r\n return this._sendMessage(this._protocol.writeMessage(message));\r\n }\r\n }\r\n /** Invokes a hub method on the server using the specified name and arguments. Does not wait for a response from the receiver.\r\n *\r\n * The Promise returned by this method resolves when the client has sent the invocation to the server. The server may still\r\n * be processing the invocation.\r\n *\r\n * @param {string} methodName The name of the server method to invoke.\r\n * @param {any[]} args The arguments used to invoke the server method.\r\n * @returns {Promise<void>} A Promise that resolves when the invocation has been successfully sent, or rejects with an error.\r\n */\r\n send(methodName, ...args) {\r\n const [streams, streamIds] = this._replaceStreamingParams(args);\r\n const sendPromise = this._sendWithProtocol(this._createInvocation(methodName, args, true, streamIds));\r\n this._launchStreams(streams, sendPromise);\r\n return sendPromise;\r\n }\r\n /** Invokes a hub method on the server using the specified name and arguments.\r\n *\r\n * The Promise returned by this method resolves when the server indicates it has finished invoking the method. When the promise\r\n * resolves, the server has finished invoking the method. If the server method returns a result, it is produced as the result of\r\n * resolving the Promise.\r\n *\r\n * @typeparam T The expected return type.\r\n * @param {string} methodName The name of the server method to invoke.\r\n * @param {any[]} args The arguments used to invoke the server method.\r\n * @returns {Promise<T>} A Promise that resolves with the result of the server method (if any), or rejects with an error.\r\n */\r\n invoke(methodName, ...args) {\r\n const [streams, streamIds] = this._replaceStreamingParams(args);\r\n const invocationDescriptor = this._createInvocation(methodName, args, false, streamIds);\r\n const p = new Promise((resolve, reject) => {\r\n // invocationId will always have a value for a non-blocking invocation\r\n this._callbacks[invocationDescriptor.invocationId] = (invocationEvent, error) => {\r\n if (error) {\r\n reject(error);\r\n return;\r\n }\r\n else if (invocationEvent) {\r\n // invocationEvent will not be null when an error is not passed to the callback\r\n if (invocationEvent.type === MessageType.Completion) {\r\n if (invocationEvent.error) {\r\n reject(new Error(invocationEvent.error));\r\n }\r\n else {\r\n resolve(invocationEvent.result);\r\n }\r\n }\r\n else {\r\n reject(new Error(`Unexpected message type: ${invocationEvent.type}`));\r\n }\r\n }\r\n };\r\n const promiseQueue = this._sendWithProtocol(invocationDescriptor)\r\n .catch((e) => {\r\n reject(e);\r\n // invocationId will always have a value for a non-blocking invocation\r\n delete this._callbacks[invocationDescriptor.invocationId];\r\n });\r\n this._launchStreams(streams, promiseQueue);\r\n });\r\n return p;\r\n }\r\n on(methodName, newMethod) {\r\n if (!methodName || !newMethod) {\r\n return;\r\n }\r\n methodName = methodName.toLowerCase();\r\n if (!this._methods[methodName]) {\r\n this._methods[methodName] = [];\r\n }\r\n // Preventing adding the same handler multiple times.\r\n if (this._methods[methodName].indexOf(newMethod) !== -1) {\r\n return;\r\n }\r\n this._methods[methodName].push(newMethod);\r\n }\r\n off(methodName, method) {\r\n if (!methodName) {\r\n return;\r\n }\r\n methodName = methodName.toLowerCase();\r\n const handlers = this._methods[methodName];\r\n if (!handlers) {\r\n return;\r\n }\r\n if (method) {\r\n const removeIdx = handlers.indexOf(method);\r\n if (removeIdx !== -1) {\r\n handlers.splice(removeIdx, 1);\r\n if (handlers.length === 0) {\r\n delete this._methods[methodName];\r\n }\r\n }\r\n }\r\n else {\r\n delete this._methods[methodName];\r\n }\r\n }\r\n /** Registers a handler that will be invoked when the connection is closed.\r\n *\r\n * @param {Function} callback The handler that will be invoked when the connection is closed. Optionally receives a single argument containing the error that caused the connection to close (if any).\r\n */\r\n onclose(callback) {\r\n if (callback) {\r\n this._closedCallbacks.push(callback);\r\n }\r\n }\r\n /** Registers a handler that will be invoked when the connection starts reconnecting.\r\n *\r\n * @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).\r\n */\r\n onreconnecting(callback) {\r\n if (callback) {\r\n this._reconnectingCallbacks.push(callback);\r\n }\r\n }\r\n /** Registers a handler that will be invoked when the connection successfully reconnects.\r\n *\r\n * @param {Function} callback The handler that will be invoked when the connection successfully reconnects.\r\n */\r\n onreconnected(callback) {\r\n if (callback) {\r\n this._reconnectedCallbacks.push(callback);\r\n }\r\n }\r\n _processIncomingData(data) {\r\n this._cleanupTimeout();\r\n if (!this._receivedHandshakeResponse) {\r\n data = this._processHandshakeResponse(data);\r\n this._receivedHandshakeResponse = true;\r\n }\r\n // Data may have all been read when processing handshake response\r\n if (data) {\r\n // Parse the messages\r\n const messages = this._protocol.parseMessages(data, this._logger);\r\n for (const message of messages) {\r\n if (this._messageBuffer && !this._messageBuffer._shouldProcessMessage(message)) {\r\n // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message\r\n continue;\r\n }\r\n switch (message.type) {\r\n case MessageType.Invocation:\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this._invokeClientMethod(message);\r\n break;\r\n case MessageType.StreamItem:\r\n case MessageType.Completion: {\r\n const callback = this._callbacks[message.invocationId];\r\n if (callback) {\r\n if (message.type === MessageType.Completion) {\r\n delete this._callbacks[message.invocationId];\r\n }\r\n try {\r\n callback(message);\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `Stream callback threw error: ${getErrorString(e)}`);\r\n }\r\n }\r\n break;\r\n }\r\n case MessageType.Ping:\r\n // Don't care about pings\r\n break;\r\n case MessageType.Close: {\r\n this._logger.log(LogLevel.Information, \"Close message received from server.\");\r\n const error = message.error ? new Error(\"Server returned an error on close: \" + message.error) : undefined;\r\n if (message.allowReconnect === true) {\r\n // It feels wrong not to await connection.stop() here, but processIncomingData is called as part of an onreceive callback which is not async,\r\n // this is already the behavior for serverTimeout(), and HttpConnection.Stop() should catch and log all possible exceptions.\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.connection.stop(error);\r\n }\r\n else {\r\n // We cannot await stopInternal() here, but subsequent calls to stop() will await this if stopInternal() is still ongoing.\r\n this._stopPromise = this._stopInternal(error);\r\n }\r\n break;\r\n }\r\n case MessageType.Ack:\r\n if (this._messageBuffer) {\r\n this._messageBuffer._ack(message);\r\n }\r\n break;\r\n case MessageType.Sequence:\r\n if (this._messageBuffer) {\r\n this._messageBuffer._resetSequence(message);\r\n }\r\n break;\r\n default:\r\n this._logger.log(LogLevel.Warning, `Invalid message type: ${message.type}.`);\r\n break;\r\n }\r\n }\r\n }\r\n this._resetTimeoutPeriod();\r\n }\r\n _processHandshakeResponse(data) {\r\n let responseMessage;\r\n let remainingData;\r\n try {\r\n [remainingData, responseMessage] = this._handshakeProtocol.parseHandshakeResponse(data);\r\n }\r\n catch (e) {\r\n const message = \"Error parsing handshake response: \" + e;\r\n this._logger.log(LogLevel.Error, message);\r\n const error = new Error(message);\r\n this._handshakeRejecter(error);\r\n throw error;\r\n }\r\n if (responseMessage.error) {\r\n const message = \"Server returned handshake error: \" + responseMessage.error;\r\n this._logger.log(LogLevel.Error, message);\r\n const error = new Error(message);\r\n this._handshakeRejecter(error);\r\n throw error;\r\n }\r\n else {\r\n this._logger.log(LogLevel.Debug, \"Server handshake complete.\");\r\n }\r\n this._handshakeResolver();\r\n return remainingData;\r\n }\r\n _resetKeepAliveInterval() {\r\n if (this.connection.features.inherentKeepAlive) {\r\n return;\r\n }\r\n // Set the time we want the next keep alive to be sent\r\n // Timer will be setup on next message receive\r\n this._nextKeepAlive = new Date().getTime() + this.keepAliveIntervalInMilliseconds;\r\n this._cleanupPingTimer();\r\n }\r\n _resetTimeoutPeriod() {\r\n if (!this.connection.features || !this.connection.features.inherentKeepAlive) {\r\n // Set the timeout timer\r\n this._timeoutHandle = setTimeout(() => this.serverTimeout(), this.serverTimeoutInMilliseconds);\r\n // Set keepAlive timer if there isn't one\r\n if (this._pingServerHandle === undefined) {\r\n let nextPing = this._nextKeepAlive - new Date().getTime();\r\n if (nextPing < 0) {\r\n nextPing = 0;\r\n }\r\n // The timer needs to be set from a networking callback to avoid Chrome timer throttling from causing timers to run once a minute\r\n this._pingServerHandle = setTimeout(async () => {\r\n if (this._connectionState === HubConnectionState.Connected) {\r\n try {\r\n await this._sendMessage(this._cachedPingMessage);\r\n }\r\n catch {\r\n // We don't care about the error. It should be seen elsewhere in the client.\r\n // The connection is probably in a bad or closed state now, cleanup the timer so it stops triggering\r\n this._cleanupPingTimer();\r\n }\r\n }\r\n }, nextPing);\r\n }\r\n }\r\n }\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n serverTimeout() {\r\n // The server hasn't talked to us in a while. It doesn't like us anymore ... :(\r\n // Terminate the connection, but we don't need to wait on the promise. This could trigger reconnecting.\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.connection.stop(new Error(\"Server timeout elapsed without receiving a message from the server.\"));\r\n }\r\n async _invokeClientMethod(invocationMessage) {\r\n const methodName = invocationMessage.target.toLowerCase();\r\n const methods = this._methods[methodName];\r\n if (!methods) {\r\n this._logger.log(LogLevel.Warning, `No client method with the name '${methodName}' found.`);\r\n // No handlers provided by client but the server is expecting a response still, so we send an error\r\n if (invocationMessage.invocationId) {\r\n this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`);\r\n await this._sendWithProtocol(this._createCompletionMessage(invocationMessage.invocationId, \"Client didn't provide a result.\", null));\r\n }\r\n return;\r\n }\r\n // Avoid issues with handlers removing themselves thus modifying the list while iterating through it\r\n const methodsCopy = methods.slice();\r\n // Server expects a response\r\n const expectsResponse = invocationMessage.invocationId ? true : false;\r\n // We preserve the last result or exception but still call all handlers\r\n let res;\r\n let exception;\r\n let completionMessage;\r\n for (const m of methodsCopy) {\r\n try {\r\n const prevRes = res;\r\n res = await m.apply(this, invocationMessage.arguments);\r\n if (expectsResponse && res && prevRes) {\r\n this._logger.log(LogLevel.Error, `Multiple results provided for '${methodName}'. Sending error to server.`);\r\n completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `Client provided multiple results.`, null);\r\n }\r\n // Ignore exception if we got a result after, the exception will be logged\r\n exception = undefined;\r\n }\r\n catch (e) {\r\n exception = e;\r\n this._logger.log(LogLevel.Error, `A callback for the method '${methodName}' threw error '${e}'.`);\r\n }\r\n }\r\n if (completionMessage) {\r\n await this._sendWithProtocol(completionMessage);\r\n }\r\n else if (expectsResponse) {\r\n // If there is an exception that means either no result was given or a handler after a result threw\r\n if (exception) {\r\n completionMessage = this._createCompletionMessage(invocationMessage.invocationId, `${exception}`, null);\r\n }\r\n else if (res !== undefined) {\r\n completionMessage = this._createCompletionMessage(invocationMessage.invocationId, null, res);\r\n }\r\n else {\r\n this._logger.log(LogLevel.Warning, `No result given for '${methodName}' method and invocation ID '${invocationMessage.invocationId}'.`);\r\n // Client didn't provide a result or throw from a handler, server expects a response so we send an error\r\n completionMessage = this._createCompletionMessage(invocationMessage.invocationId, \"Client didn't provide a result.\", null);\r\n }\r\n await this._sendWithProtocol(completionMessage);\r\n }\r\n else {\r\n if (res) {\r\n this._logger.log(LogLevel.Error, `Result given for '${methodName}' method but server is not expecting a result.`);\r\n }\r\n }\r\n }\r\n _connectionClosed(error) {\r\n this._logger.log(LogLevel.Debug, `HubConnection.connectionClosed(${error}) called while in state ${this._connectionState}.`);\r\n // Triggering this.handshakeRejecter is insufficient because it could already be resolved without the continuation having run yet.\r\n this._stopDuringStartError = this._stopDuringStartError || error || new AbortError(\"The underlying connection was closed before the hub handshake could complete.\");\r\n // If the handshake is in progress, start will be waiting for the handshake promise, so we complete it.\r\n // If it has already completed, this should just noop.\r\n if (this._handshakeResolver) {\r\n this._handshakeResolver();\r\n }\r\n this._cancelCallbacksWithError(error || new Error(\"Invocation canceled due to the underlying connection being closed.\"));\r\n this._cleanupTimeout();\r\n this._cleanupPingTimer();\r\n if (this._connectionState === HubConnectionState.Disconnecting) {\r\n this._completeClose(error);\r\n }\r\n else if (this._connectionState === HubConnectionState.Connected && this._reconnectPolicy) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this._reconnect(error);\r\n }\r\n else if (this._connectionState === HubConnectionState.Connected) {\r\n this._completeClose(error);\r\n }\r\n // If none of the above if conditions were true were called the HubConnection must be in either:\r\n // 1. The Connecting state in which case the handshakeResolver will complete it and stopDuringStartError will fail it.\r\n // 2. The Reconnecting state in which case the handshakeResolver will complete it and stopDuringStartError will fail the current reconnect attempt\r\n // and potentially continue the reconnect() loop.\r\n // 3. The Disconnected state in which case we're already done.\r\n }\r\n _completeClose(error) {\r\n if (this._connectionStarted) {\r\n this._connectionState = HubConnectionState.Disconnected;\r\n this._connectionStarted = false;\r\n if (this._messageBuffer) {\r\n this._messageBuffer._dispose(error !== null && error !== void 0 ? error : new Error(\"Connection closed.\"));\r\n this._messageBuffer = undefined;\r\n }\r\n if (Platform.isBrowser) {\r\n window.document.removeEventListener(\"freeze\", this._freezeEventListener);\r\n }\r\n try {\r\n this._closedCallbacks.forEach((c) => c.apply(this, [error]));\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `An onclose callback called with error '${error}' threw error '${e}'.`);\r\n }\r\n }\r\n }\r\n async _reconnect(error) {\r\n const reconnectStartTime = Date.now();\r\n let previousReconnectAttempts = 0;\r\n let retryError = error !== undefined ? error : new Error(\"Attempting to reconnect due to a unknown error.\");\r\n let nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, 0, retryError);\r\n if (nextRetryDelay === null) {\r\n this._logger.log(LogLevel.Debug, \"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt.\");\r\n this._completeClose(error);\r\n return;\r\n }\r\n this._connectionState = HubConnectionState.Reconnecting;\r\n if (error) {\r\n this._logger.log(LogLevel.Information, `Connection reconnecting because of error '${error}'.`);\r\n }\r\n else {\r\n this._logger.log(LogLevel.Information, \"Connection reconnecting.\");\r\n }\r\n if (this._reconnectingCallbacks.length !== 0) {\r\n try {\r\n this._reconnectingCallbacks.forEach((c) => c.apply(this, [error]));\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `An onreconnecting callback called with error '${error}' threw error '${e}'.`);\r\n }\r\n // Exit early if an onreconnecting callback called connection.stop().\r\n if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n this._logger.log(LogLevel.Debug, \"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.\");\r\n return;\r\n }\r\n }\r\n while (nextRetryDelay !== null) {\r\n this._logger.log(LogLevel.Information, `Reconnect attempt number ${previousReconnectAttempts} will start in ${nextRetryDelay} ms.`);\r\n await new Promise((resolve) => {\r\n this._reconnectDelayHandle = setTimeout(resolve, nextRetryDelay);\r\n });\r\n this._reconnectDelayHandle = undefined;\r\n if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n this._logger.log(LogLevel.Debug, \"Connection left the reconnecting state during reconnect delay. Done reconnecting.\");\r\n return;\r\n }\r\n try {\r\n await this._startInternal();\r\n this._connectionState = HubConnectionState.Connected;\r\n this._logger.log(LogLevel.Information, \"HubConnection reconnected successfully.\");\r\n if (this._reconnectedCallbacks.length !== 0) {\r\n try {\r\n this._reconnectedCallbacks.forEach((c) => c.apply(this, [this.connection.connectionId]));\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${e}'.`);\r\n }\r\n }\r\n return;\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Information, `Reconnect attempt failed because of error '${e}'.`);\r\n if (this._connectionState !== HubConnectionState.Reconnecting) {\r\n this._logger.log(LogLevel.Debug, `Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`);\r\n // The TypeScript compiler thinks that connectionState must be Connected here. The TypeScript compiler is wrong.\r\n if (this._connectionState === HubConnectionState.Disconnecting) {\r\n this._completeClose();\r\n }\r\n return;\r\n }\r\n retryError = e instanceof Error ? e : new Error(e.toString());\r\n nextRetryDelay = this._getNextRetryDelay(previousReconnectAttempts++, Date.now() - reconnectStartTime, retryError);\r\n }\r\n }\r\n this._logger.log(LogLevel.Information, `Reconnect retries have been exhausted after ${Date.now() - reconnectStartTime} ms and ${previousReconnectAttempts} failed attempts. Connection disconnecting.`);\r\n this._completeClose();\r\n }\r\n _getNextRetryDelay(previousRetryCount, elapsedMilliseconds, retryReason) {\r\n try {\r\n return this._reconnectPolicy.nextRetryDelayInMilliseconds({\r\n elapsedMilliseconds,\r\n previousRetryCount,\r\n retryReason,\r\n });\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `IRetryPolicy.nextRetryDelayInMilliseconds(${previousRetryCount}, ${elapsedMilliseconds}) threw error '${e}'.`);\r\n return null;\r\n }\r\n }\r\n _cancelCallbacksWithError(error) {\r\n const callbacks = this._callbacks;\r\n this._callbacks = {};\r\n Object.keys(callbacks)\r\n .forEach((key) => {\r\n const callback = callbacks[key];\r\n try {\r\n callback(null, error);\r\n }\r\n catch (e) {\r\n this._logger.log(LogLevel.Error, `Stream 'error' callback called with '${error}' threw error: ${getErrorString(e)}`);\r\n }\r\n });\r\n }\r\n _cleanupPingTimer() {\r\n if (this._pingServerHandle) {\r\n clearTimeout(this._pingServerHandle);\r\n this._pingServerHandle = undefined;\r\n }\r\n }\r\n _cleanupTimeout() {\r\n if (this._timeoutHandle) {\r\n clearTimeout(this._timeoutHandle);\r\n }\r\n }\r\n _createInvocation(methodName, args, nonblocking, streamIds) {\r\n if (nonblocking) {\r\n if (streamIds.length !== 0) {\r\n return {\r\n arguments: args,\r\n streamIds,\r\n target: methodName,\r\n type: MessageType.Invocation,\r\n };\r\n }\r\n else {\r\n return {\r\n arguments: args,\r\n target: methodName,\r\n type: MessageType.Invocation,\r\n };\r\n }\r\n }\r\n else {\r\n const invocationId = this._invocationId;\r\n this._invocationId++;\r\n if (streamIds.length !== 0) {\r\n return {\r\n arguments: args,\r\n invocationId: invocationId.toString(),\r\n streamIds,\r\n target: methodName,\r\n type: MessageType.Invocation,\r\n };\r\n }\r\n else {\r\n return {\r\n arguments: args,\r\n invocationId: invocationId.toString(),\r\n target: methodName,\r\n type: MessageType.Invocation,\r\n };\r\n }\r\n }\r\n }\r\n _launchStreams(streams, promiseQueue) {\r\n if (streams.length === 0) {\r\n return;\r\n }\r\n // Synchronize stream data so they arrive in-order on the server\r\n if (!promiseQueue) {\r\n promiseQueue = Promise.resolve();\r\n }\r\n // We want to iterate over the keys, since the keys are the stream ids\r\n // eslint-disable-next-line guard-for-in\r\n for (const streamId in streams) {\r\n streams[streamId].subscribe({\r\n complete: () => {\r\n promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId)));\r\n },\r\n error: (err) => {\r\n let message;\r\n if (err instanceof Error) {\r\n message = err.message;\r\n }\r\n else if (err && err.toString) {\r\n message = err.toString();\r\n }\r\n else {\r\n message = \"Unknown error\";\r\n }\r\n promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createCompletionMessage(streamId, message)));\r\n },\r\n next: (item) => {\r\n promiseQueue = promiseQueue.then(() => this._sendWithProtocol(this._createStreamItemMessage(streamId, item)));\r\n },\r\n });\r\n }\r\n }\r\n _replaceStreamingParams(args) {\r\n const streams = [];\r\n const streamIds = [];\r\n for (let i = 0; i < args.length; i++) {\r\n const argument = args[i];\r\n if (this._isObservable(argument)) {\r\n const streamId = this._invocationId;\r\n this._invocationId++;\r\n // Store the stream for later use\r\n streams[streamId] = argument;\r\n streamIds.push(streamId.toString());\r\n // remove stream from args\r\n args.splice(i, 1);\r\n }\r\n }\r\n return [streams, streamIds];\r\n }\r\n _isObservable(arg) {\r\n // This allows other stream implementations to just work (like rxjs)\r\n return arg && arg.subscribe && typeof arg.subscribe === \"function\";\r\n }\r\n _createStreamInvocation(methodName, args, streamIds) {\r\n const invocationId = this._invocationId;\r\n this._invocationId++;\r\n if (streamIds.length !== 0) {\r\n return {\r\n arguments: args,\r\n invocationId: invocationId.toString(),\r\n streamIds,\r\n target: methodName,\r\n type: MessageType.StreamInvocation,\r\n };\r\n }\r\n else {\r\n return {\r\n arguments: args,\r\n invocationId: invocationId.toString(),\r\n target: methodName,\r\n type: MessageType.StreamInvocation,\r\n };\r\n }\r\n }\r\n _createCancelInvocation(id) {\r\n return {\r\n invocationId: id,\r\n type: MessageType.CancelInvocation,\r\n };\r\n }\r\n _createStreamItemMessage(id, item) {\r\n return {\r\n invocationId: id,\r\n item,\r\n type: MessageType.StreamItem,\r\n };\r\n }\r\n _createCompletionMessage(id, error, result) {\r\n if (error) {\r\n return {\r\n error,\r\n invocationId: id,\r\n type: MessageType.Completion,\r\n };\r\n }\r\n return {\r\n invocationId: id,\r\n result,\r\n type: MessageType.Completion,\r\n };\r\n }\r\n _createCloseMessage() {\r\n return { type: MessageType.Close };\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { MessageType } from \"./IHubProtocol\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { TransferFormat } from \"./ITransport\";\r\nimport { NullLogger } from \"./Loggers\";\r\nimport { TextMessageFormat } from \"./TextMessageFormat\";\r\nconst JSON_HUB_PROTOCOL_NAME = \"json\";\r\n/** Implements the JSON Hub Protocol. */\r\nexport class JsonHubProtocol {\r\n constructor() {\r\n /** @inheritDoc */\r\n this.name = JSON_HUB_PROTOCOL_NAME;\r\n /** @inheritDoc */\r\n this.version = 2;\r\n /** @inheritDoc */\r\n this.transferFormat = TransferFormat.Text;\r\n }\r\n /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.\r\n *\r\n * @param {string} input A string containing the serialized representation.\r\n * @param {ILogger} logger A logger that will be used to log messages that occur during parsing.\r\n */\r\n parseMessages(input, logger) {\r\n // The interface does allow \"ArrayBuffer\" to be passed in, but this implementation does not. So let's throw a useful error.\r\n if (typeof input !== \"string\") {\r\n throw new Error(\"Invalid input for JSON hub protocol. Expected a string.\");\r\n }\r\n if (!input) {\r\n return [];\r\n }\r\n if (logger === null) {\r\n logger = NullLogger.instance;\r\n }\r\n // Parse the messages\r\n const messages = TextMessageFormat.parse(input);\r\n const hubMessages = [];\r\n for (const message of messages) {\r\n const parsedMessage = JSON.parse(message);\r\n if (typeof parsedMessage.type !== \"number\") {\r\n throw new Error(\"Invalid payload.\");\r\n }\r\n switch (parsedMessage.type) {\r\n case MessageType.Invocation:\r\n this._isInvocationMessage(parsedMessage);\r\n break;\r\n case MessageType.StreamItem:\r\n this._isStreamItemMessage(parsedMessage);\r\n break;\r\n case MessageType.Completion:\r\n this._isCompletionMessage(parsedMessage);\r\n break;\r\n case MessageType.Ping:\r\n // Single value, no need to validate\r\n break;\r\n case MessageType.Close:\r\n // All optional values, no need to validate\r\n break;\r\n case MessageType.Ack:\r\n this._isAckMessage(parsedMessage);\r\n break;\r\n case MessageType.Sequence:\r\n this._isSequenceMessage(parsedMessage);\r\n break;\r\n default:\r\n // Future protocol changes can add message types, old clients can ignore them\r\n logger.log(LogLevel.Information, \"Unknown message type '\" + parsedMessage.type + \"' ignored.\");\r\n continue;\r\n }\r\n hubMessages.push(parsedMessage);\r\n }\r\n return hubMessages;\r\n }\r\n /** Writes the specified {@link @microsoft/signalr.HubMessage} to a string and returns it.\r\n *\r\n * @param {HubMessage} message The message to write.\r\n * @returns {string} A string containing the serialized representation of the message.\r\n */\r\n writeMessage(message) {\r\n return TextMessageFormat.write(JSON.stringify(message));\r\n }\r\n _isInvocationMessage(message) {\r\n this._assertNotEmptyString(message.target, \"Invalid payload for Invocation message.\");\r\n if (message.invocationId !== undefined) {\r\n this._assertNotEmptyString(message.invocationId, \"Invalid payload for Invocation message.\");\r\n }\r\n }\r\n _isStreamItemMessage(message) {\r\n this._assertNotEmptyString(message.invocationId, \"Invalid payload for StreamItem message.\");\r\n if (message.item === undefined) {\r\n throw new Error(\"Invalid payload for StreamItem message.\");\r\n }\r\n }\r\n _isCompletionMessage(message) {\r\n if (message.result && message.error) {\r\n throw new Error(\"Invalid payload for Completion message.\");\r\n }\r\n if (!message.result && message.error) {\r\n this._assertNotEmptyString(message.error, \"Invalid payload for Completion message.\");\r\n }\r\n this._assertNotEmptyString(message.invocationId, \"Invalid payload for Completion message.\");\r\n }\r\n _isAckMessage(message) {\r\n if (typeof message.sequenceId !== 'number') {\r\n throw new Error(\"Invalid SequenceId for Ack message.\");\r\n }\r\n }\r\n _isSequenceMessage(message) {\r\n if (typeof message.sequenceId !== 'number') {\r\n throw new Error(\"Invalid SequenceId for Sequence message.\");\r\n }\r\n }\r\n _assertNotEmptyString(value, errorMessage) {\r\n if (typeof value !== \"string\" || value === \"\") {\r\n throw new Error(errorMessage);\r\n }\r\n }\r\n}\r\n","// Licensed to the .NET Foundation under one or more agreements.\r\n// The .NET Foundation licenses this file to you under the MIT license.\r\nimport { DefaultReconnectPolicy } from \"./DefaultReconnectPolicy\";\r\nimport { HttpConnection } from \"./HttpConnection\";\r\nimport { HubConnection } from \"./HubConnection\";\r\nimport { LogLevel } from \"./ILogger\";\r\nimport { JsonHubProtocol } from \"./JsonHubProtocol\";\r\nimport { NullLogger } from \"./Loggers\";\r\nimport { Arg, ConsoleLogger } from \"./Utils\";\r\nconst LogLevelNameMapping = {\r\n trace: LogLevel.Trace,\r\n debug: LogLevel.Debug,\r\n info: LogLevel.Information,\r\n information: LogLevel.Information,\r\n warn: LogLevel.Warning,\r\n warning: LogLevel.Warning,\r\n error: LogLevel.Error,\r\n critical: LogLevel.Critical,\r\n none: LogLevel.None,\r\n};\r\nfunction parseLogLevel(name) {\r\n // Case-insensitive matching via lower-casing\r\n // Yes, I know case-folding is a complicated problem in Unicode, but we only support\r\n // the ASCII strings defined in LogLevelNameMapping anyway, so it's fine -anurse.\r\n const mapping = LogLevelNameMapping[name.toLowerCase()];\r\n if (typeof mapping !== \"undefined\") {\r\n return mapping;\r\n }\r\n else {\r\n throw new Error(`Unknown log level: ${name}`);\r\n }\r\n}\r\n/** A builder for configuring {@link @microsoft/signalr.HubConnection} instances. */\r\nexport class HubConnectionBuilder {\r\n configureLogging(logging) {\r\n Arg.isRequired(logging, \"logging\");\r\n if (isLogger(logging)) {\r\n this.logger = logging;\r\n }\r\n else if (typeof logging === \"string\") {\r\n const logLevel = parseLogLevel(logging);\r\n this.logger = new ConsoleLogger(logLevel);\r\n }\r\n else {\r\n this.logger = new ConsoleLogger(logging);\r\n }\r\n return this;\r\n }\r\n withUrl(url, transportTypeOrOptions) {\r\n Arg.isRequired(url, \"url\");\r\n Arg.isNotEmpty(url, \"url\");\r\n this.url = url;\r\n // Flow-typing knows where it's at. Since HttpTransportType is a number and IHttpConnectionOptions is guaranteed\r\n // to be an object, we know (as does TypeScript) this comparison is all we need to figure out which overload was called.\r\n if (typeof transportTypeOrOptions === \"object\") {\r\n this.httpConnectionOptions = { ...this.httpConnectionOptions, ...transportTypeOrOptions };\r\n }\r\n else {\r\n this.httpConnectionOptions = {\r\n ...this.httpConnectionOptions,\r\n transport: transportTypeOrOptions,\r\n };\r\n }\r\n return this;\r\n }\r\n /** Configures the {@link @microsoft/signalr.HubConnection} to use the specified Hub Protocol.\r\n *\r\n * @param {IHubProtocol} protocol The {@link @microsoft/signalr.IHubProtocol} implementation to use.\r\n */\r\n withHubProtocol(protocol) {\r\n Arg.isRequired(protocol, \"protocol\");\r\n this.protocol = protocol;\r\n return this;\r\n }\r\n withAutomaticReconnect(retryDelaysOrReconnectPolicy) {\r\n if (this.reconnectPolicy) {\r\n throw new Error(\"A reconnectPolicy has already been set.\");\r\n }\r\n if (!retryDelaysOrReconnectPolicy) {\r\n this.reconnectPolicy = new DefaultReconnectPolicy();\r\n }\r\n else if (Array.isArray(retryDelaysOrReconnectPolicy)) {\r\n this.reconnectPolicy = new DefaultReconnectPolicy(retryDelaysOrReconnectPolicy);\r\n }\r\n else {\r\n this.reconnectPolicy = retryDelaysOrReconnectPolicy;\r\n }\r\n return this;\r\n }\r\n /** Configures {@link @microsoft/signalr.HubConnection.serverTimeoutInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.\r\n *\r\n * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.\r\n */\r\n withServerTimeout(milliseconds) {\r\n Arg.isRequired(milliseconds, \"milliseconds\");\r\n this._serverTimeoutInMilliseconds = milliseconds;\r\n return this;\r\n }\r\n /** Configures {@link @microsoft/signalr.HubConnection.keepAliveIntervalInMilliseconds} for the {@link @microsoft/signalr.HubConnection}.\r\n *\r\n * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.\r\n */\r\n withKeepAliveInterval(milliseconds) {\r\n Arg.isRequired(milliseconds, \"milliseconds\");\r\n this._keepAliveIntervalInMilliseconds = milliseconds;\r\n return this;\r\n }\r\n /** Enables and configures options for the Stateful Reconnect feature.\r\n *\r\n * @returns The {@link @microsoft/signalr.HubConnectionBuilder} instance, for chaining.\r\n */\r\n withStatefulReconnect(options) {\r\n if (this.httpConnectionOptions === undefined) {\r\n this.httpConnectionOptions = {};\r\n }\r\n this.httpConnectionOptions._useStatefulReconnect = true;\r\n this._statefulReconnectBufferSize = options === null || options === void 0 ? void 0 : options.bufferSize;\r\n return this;\r\n }\r\n /** Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder.\r\n *\r\n * @returns {HubConnection} The configured {@link @microsoft/signalr.HubConnection}.\r\n */\r\n build() {\r\n // If httpConnectionOptions has a logger, use it. Otherwise, override it with the one\r\n // provided to configureLogger\r\n const httpConnectionOptions = this.httpConnectionOptions || {};\r\n // If it's 'null', the user **explicitly** asked for null, don't mess with it.\r\n if (httpConnectionOptions.logger === undefined) {\r\n // If our logger is undefined or null, that's OK, the HttpConnection constructor will handle it.\r\n httpConnectionOptions.logger = this.logger;\r\n }\r\n // Now create the connection\r\n if (!this.url) {\r\n throw new Error(\"The 'HubConnectionBuilder.withUrl' method must be called before building the connection.\");\r\n }\r\n const connection = new HttpConnection(this.url, httpConnectionOptions);\r\n return HubConnection.create(connection, this.logger || NullLogger.instance, this.protocol || new JsonHubProtocol(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);\r\n }\r\n}\r\nfunction isLogger(logger) {\r\n return logger.log !== undefined;\r\n}\r\n","import { Injectable, EventEmitter } from '@angular/core';\nimport {\n HttpTransportType,\n HubConnection,\n HubConnectionBuilder,\n IHttpConnectionOptions\n} from '@microsoft/signalr';\nimport { Subject } from 'rxjs';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service';\nimport { CommonConfigModel } from '@projects-shared/models/common-config.model';\n\n@Injectable()\nexport class DocReaderSignalRService {\n messageReceived = new EventEmitter<any>();\n connectionEstablished = new EventEmitter<boolean>();\n\n public connectionIsEstablished = false;\n private hubConnection: HubConnection;\n public attemptReconnect = true;\n\n onScanningUpdate = new Subject();\n onScanningResults = new Subject();\n onQrRefresh = new Subject();\n\n constructor(private configResolver: ConfigResolverService) {}\n\n public initializeSignalr() {\n this.configResolver.getConfig().then((config) => {\n this.createConnection(config);\n this.startConnection(); \n });\n }\n\n private createConnection(config: CommonConfigModel) {\n const options: IHttpConnectionOptions = {\n accessTokenFactory: () => {\n if (config.isBackOffice) {\n return sessionStorage.getItem(\"access_token\");\n }\n return sessionStorage.getItem(\"id_token\");\n },\n skipNegotiation: true,\n transport: HttpTransportType.WebSockets\n };\n\n this.hubConnection = new HubConnectionBuilder()\n .withUrl(config.wsUrl + '/doc-reader', options)\n .build();\n\n this.hubConnection.onclose((error) => {\n this.connectionEstablished.emit(false);\n console.log('Auto reconnect : ', this.attemptReconnect);\n if (this.attemptReconnect) {\n console.log('Error while establishing connection, retrying...');\n this.hubConnection.stop().then(() => {\n setTimeout(() => this.startConnection(), 5000);\n });\n }\n });\n }\n\n private startConnection(): void {\n this.hubConnection\n .start()\n .then(() => {\n this.connectionIsEstablished = true;\n console.log('DocReader Hub connection started');\n this.connectionEstablished.emit(true);\n })\n .catch((err) => {\n console.log('Error while establishing connection, retrying...');\n this.hubConnection.stop().then(() => {\n setTimeout(() => this.startConnection(), 5000);\n });\n });\n }\n\n public async stopConnection(): Promise<void> {\n console.log('Stopping connection');\n await this.hubConnection.stop();\n }\n\n public registerOnScanningUpdate() {\n this.hubConnection.on('update-scanning-process', (data: number) => {\n this.onScanningUpdate.next(data);\n });\n }\n\n public registerOnScanResults() {\n this.hubConnection.on('scan-results', (data: any) => {\n this.onScanningResults.next(data);\n });\n }\n\n public async sendScanningProcessUpdate(status: number) {\n await this.hubConnection\n ?.invoke('ScanningProcessUpdate', status)\n .catch((err) => console.error(err));\n }\n\n public registerOnRefreshQr() {\n this.hubConnection.on('refresh-qr', (data: any) => {\n console.log('Refresh QR', data);\n this.onQrRefresh.next();\n });\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { ConfigResolverService } from './config-resolver.service';\nimport { IdScanningLogModel } from '@projects-shared/models/id-scanning-log.model';\nimport DeviceDetectorService from '@projects-shared/services/device-detector.service';\nimport { Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\n\n\nexport class IdScanningLogsService {\n constructor(private httpClient: HttpClient,private configResolver: ConfigResolverService,private deviceDetector: DeviceDetectorService) {\n }\n\nlogEnabled = false;\n\n\nprivate idScanningLogUrlApi = \"\";\n\n\n async logEvent(idScanningLog: IdScanningLogModel) {\n\n\n this.logEnabled = (await this.configResolver.getConfig()).idScanningLog;\n\n if(this.logEnabled){\n\n idScanningLog.isBO = !this.configResolver.isFrontOfficeModule();\n idScanningLog.isMobile = this.deviceDetector.detectIsMobileDevice();\n\n\n this.idScanningLogUrlApi = (await this.configResolver.getConfig()).apiUrl + '/id-scanning/log-event';\n\n\n return this.httpClient.post(this.idScanningLogUrlApi, idScanningLog).toPromise();\n }\n \n return;\n }\n\n async checkLogsExist (eventId:string){\n const url = `${(await this.configResolver.getConfig()).apiUrl}/id-scanning/check-logs/${eventId}`; \n return this.httpClient.get<boolean>(url).toPromise();\n }\n\n\n\n\n\n}\n","import { forEach } from \"lodash\";\n\nexport class RegulaTextResult {\n public comparisonStatus: number;\n public fieldName: string;\n public fieldType: number;\n public lcid: number;\n public status: boolean;\n public validityStatus: boolean;\n public value: string;\n\n\n\n constructor(regulaTextObject?:RegulaTextResult,fieldName?:string,fieldType?:number,status?:boolean,validityStatus?:boolean,value?:string) {\n if(regulaTextObject){\n\n this.createRegulaTextObject(regulaTextObject.fieldName,regulaTextObject.fieldType,regulaTextObject.status,regulaTextObject.validityStatus,regulaTextObject.value);\n\n }\n else{\n this.createRegulaTextObject(fieldName,fieldType,status,validityStatus,value);\n }\n \n }\n\n\n private createRegulaTextObject(fieldName?:string,fieldType?:number,status?:boolean,validityStatus?:boolean,value?:string){\n this.fieldName = fieldName;\n this.fieldType = fieldType;\n this.status = status;\n this.validityStatus = validityStatus;\n this.value = value;\n }\n\n \n}\n","export class RegulaImageResult {\n public imageBase64: string;\n public imageType: string;\n\n\n\n constructor(regulaImageObject?:RegulaImageResult,imageBase64?:string,imageType?:string) {\n if(regulaImageObject){\n\n this.createRegulaImageObject(regulaImageObject.imageBase64,regulaImageObject.imageType);\n\n }\n else{\n this.createRegulaImageObject(imageBase64,imageType);\n }\n \n }\n\n\n private createRegulaImageObject(imageBase64?:string,imageType?:string){\n this.imageBase64 = imageBase64;\n this.imageType = imageType;\n }\n\n \n}\n","/*! For license information please see main.js.LICENSE.txt */\nvar e={\"./node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js\":function(e,t,n){function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}(function(){var e;function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a=\"function\"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var o,i=function(e){e=[\"object\"==(\"undefined\"==typeof globalThis?\"undefined\":r(globalThis))&&globalThis,e,\"object\"==(\"undefined\"==typeof window?\"undefined\":r(window))&&window,\"object\"==(\"undefined\"==typeof self?\"undefined\":r(self))&&self,\"object\"==(void 0===n.g?\"undefined\":r(n.g))&&n.g];for(var t=0;t<e.length;++t){var a=e[t];if(a&&a.Math==Math)return a}throw Error(\"Cannot find global object\")}(this);function l(e,t){if(t)e:{var n=i;e=e.split(\".\");for(var r=0;r<e.length-1;r++){var o=e[r];if(!(o in n))break e;n=n[o]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&a(n,e,{configurable:!0,writable:!0,value:t})}}function s(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function u(e){var n=\"undefined\"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function c(e){if(!(e instanceof Array)){e=u(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}if(l(\"Symbol\",(function(e){function t(e,t){this.g=e,a(this,\"description\",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n=0;return function e(r){if(this instanceof e)throw new TypeError(\"Symbol is not a constructor\");return new t(\"jscomp_symbol_\"+(r||\"\")+\"_\"+n++,r)}})),l(\"Symbol.iterator\",(function(e){if(e)return e;e=Symbol(\"Symbol.iterator\");for(var n=\"Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array\".split(\" \"),r=0;r<n.length;r++){var o=i[n[r]];\"function\"==typeof o&&\"function\"!=typeof o.prototype[e]&&a(o.prototype,e,{configurable:!0,writable:!0,value:function(){return s(t(this))}})}return e})),\"function\"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var d;e:{var f={};try{f.__proto__={a:!0},d=f.a;break e}catch(P){}d=!1}o=d?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+\" is not extensible\");return e}:null}var p=o;function _(){this.u=!1,this.h=null,this.Ka=void 0,this.g=1,this.da=0,this.i=null}function m(e){if(e.u)throw new TypeError(\"Generator is already running\");e.u=!0}function h(e,t){e.i={Wa:t,$a:!0},e.g=e.da}function E(e,t){return e.g=3,{value:t}}function C(e){this.g=new _,this.h=e}function v(e,t,n,r){try{var a=t.call(e.g.h,n);if(!(a instanceof Object))throw new TypeError(\"Iterator result \"+a+\" is not an object\");if(!a.done)return e.g.u=!1,a;var o=a.value}catch(i){return e.g.h=null,h(e.g,i),S(e)}return e.g.h=null,r.call(e.g,o),S(e)}function S(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.u=!1,{value:t.value,done:!1}}catch(F){e.g.Ka=void 0,h(e.g,F)}if(e.g.u=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.$a)throw t.Wa;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function g(e){this.next=function(t){return m(e.g),e.g.h?t=v(e,e.g.h.next,t,e.g.O):(e.g.O(t),t=S(e)),t},this.throw=function(t){return m(e.g),e.g.h?t=v(e,e.g.h.throw,t,e.g.O):(h(e.g,t),t=S(e)),t},this.return=function(t){return function(e,t){m(e.g);var n=e.g.h;return n?v(e,\"return\"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),S(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function y(e,t){return t=new g(new C(t)),p&&e.prototype&&p(t,e.prototype),t}_.prototype.O=function(e){this.Ka=e},_.prototype.return=function(e){this.i={return:e},this.g=this.da},Array.from||(Array.from=function(e){return[].slice.call(e)}),Object.assign||(Object.assign=function(e){for(var t,n=[].slice.call(arguments,1),r=0;r<n.length;r++)if(t=n[r])for(var a=e,o=Object.keys(t),i=0;i<o.length;i++){var l=o[i];a[l]=t[l]}return e});var I=setTimeout;function O(){}function R(e){if(!(this instanceof R))throw new TypeError(\"Promises must be constructed via new\");if(\"function\"!=typeof e)throw new TypeError(\"not a function\");this.N=0,this.Ea=!1,this.I=void 0,this.ba=[],L(e,this)}function N(e,t){for(;3===e.N;)e=e.I;0===e.N?e.ba.push(t):(e.Ea=!0,H((function(){var n=1===e.N?t.bb:t.cb;if(null===n)(1===e.N?A:T)(t.promise,e.I);else{try{var r=n(e.I)}catch(x){return void T(t.promise,x)}A(t.promise,r)}})))}function A(e,t){try{if(t===e)throw new TypeError(\"A promise cannot be resolved with itself.\");if(t&&(\"object\"===r(t)||\"function\"==typeof t)){var n=t.then;if(t instanceof R)return e.N=3,e.I=t,void b(e);if(\"function\"==typeof n)return void L(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e.N=1,e.I=t,b(e)}catch(U){T(e,U)}}function T(e,t){e.N=2,e.I=t,b(e)}function b(e){2===e.N&&0===e.ba.length&&H((function(){e.Ea||\"undefined\"!=typeof console&&console&&console.warn(\"Possible Unhandled Promise Rejection:\",e.I)}));for(var t=0,n=e.ba.length;t<n;t++)N(e,e.ba[t]);e.ba=null}function D(e,t,n){this.bb=\"function\"==typeof e?e:null,this.cb=\"function\"==typeof t?t:null,this.promise=n}function L(e,t){var n=!1;try{e((function(e){n||(n=!0,A(t,e))}),(function(e){n||(n=!0,T(t,e))}))}catch(U){n||(n=!0,T(t,U))}}function w(e){return e&&\"object\"===r(e)&&e.constructor===R?e:new R((function(t){t(e)}))}R.prototype.catch=function(e){return this.then(null,e)},R.prototype.then=function(e,t){var n=new this.constructor(O);return N(this,new D(e,t,n)),n},R.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};var P,k,M,F,U,x,H=\"function\"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){I(e,0)};if(!window.Promise){window.Promise=R,R.prototype.then=R.prototype.then,R.all=function(e){return new R((function(t,n){function a(e,l){try{if(l&&(\"object\"===r(l)||\"function\"==typeof l)){var s=l.then;if(\"function\"==typeof s)return void s.call(l,(function(t){a(e,t)}),n)}o[e]=l,0==--i&&t(o)}catch(u){n(u)}}if(!e||void 0===e.length)return n(new TypeError(\"Promise.all accepts an array\"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var i=o.length,l=0;l<o.length;l++)a(l,o[l])}))},R.race=function(e){return new R((function(t,n){if(!e||void 0===e.length)return n(new TypeError(\"Promise.race accepts an array\"));for(var r=0,a=e.length;r<a;r++)w(e[r]).then(t,n)}))},R.resolve=w,R.reject=function(e){return new R((function(t,n){n(e)}))};var j=document.createTextNode(\"\"),B=[];new MutationObserver((function(){for(var e=B.length,t=0;t<e;t++)B[t]();B.splice(0,e)})).observe(j,{characterData:!0}),H=function(e){B.push(e),j.textContent=0<j.textContent.length?\"\":\"a\"}}!function(e,t){if(!(t in e)){var a=(void 0===n.g?\"undefined\":r(n.g))===r(a)?window:n.g,o=0,i=String(Math.random()),l=\"__\u0001symbol@@\"+i,s=e.getOwnPropertyNames,u=e.getOwnPropertyDescriptor,c=e.create,d=e.keys,f=e.freeze||e,p=e.defineProperty,_=e.defineProperties,m=u(e,\"getOwnPropertyNames\"),h=e.prototype,E=h.hasOwnProperty,C=h.propertyIsEnumerable,v=h.toString,S=function(e,t,n){E.call(e,l)||p(e,l,{enumerable:!1,configurable:!1,writable:!1,value:{}}),e[l][\"@@\"+t]=n},g=function(e,t){var n=c(e);return s(t).forEach((function(e){R.call(t,e)&&L(n,e,t[e])})),n},y=function(){},I=function(e){return e!=l&&!E.call(T,e)},O=function(e){return e!=l&&E.call(T,e)},R=function(e){var t=String(e);return O(t)?E.call(this,t)&&!!this[l]&&this[l][\"@@\"+t]:C.call(this,e)},N=function(t){return p(h,t,{enumerable:!1,configurable:!0,get:y,set:function(e){P(this,t,{enumerable:!1,configurable:!0,writable:!0,value:e}),S(this,t,!0)}}),T[t]=p(e(t),\"constructor\",b),f(T[t])},A=function e(t){if(this instanceof e)throw new TypeError(\"Symbol is not a constructor\");return N(\"__\u0001symbol:\".concat(t||\"\",i,++o))},T=c(null),b={value:A},D=function(e){return T[e]},L=function(e,t,n){var r=String(t);if(O(r)){if(t=P,n.enumerable){var a=c(n);a.enumerable=!1}else a=n;t(e,r,a),S(e,r,!!n.enumerable)}else p(e,t,n);return e},w=function(e){return s(e).filter(O).map(D)};m.value=L,p(e,\"defineProperty\",m),m.value=w,p(e,t,m),m.value=function(e){return s(e).filter(I)},p(e,\"getOwnPropertyNames\",m),m.value=function(e,t){var n=w(t);return n.length?d(t).concat(n).forEach((function(n){R.call(t,n)&&L(e,n,t[n])})):_(e,t),e},p(e,\"defineProperties\",m),m.value=R,p(h,\"propertyIsEnumerable\",m),m.value=A,p(a,\"Symbol\",m),m.value=function(e){return(e=\"__\u0001symbol:\".concat(\"__\u0001symbol:\",e,i))in h?T[e]:N(e)},p(A,\"for\",m),m.value=function(e){if(I(e))throw new TypeError(e+\" is not a symbol\");if(E.call(T,e)&&(\"__\u0001symbol:\"===(e=e.slice(10)).slice(0,10)&&(e=e.slice(10))!==i))return 0<(e=e.slice(0,e.length-i.length)).length?e:void 0},p(A,\"keyFor\",m),m.value=function(e,t){var n=u(e,t);return n&&O(t)&&(n.enumerable=R.call(e,t)),n},p(e,\"getOwnPropertyDescriptor\",m),m.value=function(e,t){return 1===arguments.length||void 0===t?c(e):g(e,t)},p(e,\"create\",m),m.value=function(){var e=v.call(this);return\"[object String]\"===e&&O(this)?\"[object Symbol]\":e},p(h,\"toString\",m);try{if(!0!==c(p({},\"__\u0001symbol:\",{get:function(){return p(this,\"__\u0001symbol:\",{value:!0})[\"__\u0001symbol:\"]}}))[\"__\u0001symbol:\"])throw\"IE11\";var P=p}catch(k){P=function(e,t,n){var r=u(h,t);delete h[t],p(e,t,n),p(h,t,r)}}}}(Object,\"getOwnPropertySymbols\"),P=Object,k=Symbol,F=P.defineProperty,U=P.prototype,x=U.toString,\"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag\".split(\" \").forEach((function(e){e in k||(F(k,e,{value:k(e)}),\"toStringTag\"===e&&((M=P.getOwnPropertyDescriptor(U,\"toString\")).value=function(){var e=x.call(this),t=null==this?this:this[k.toStringTag];return null==t?e:\"[object \"+t+\"]\"},F(U,\"toString\",M)))})),function(e,t,n){function r(){return this}t[e]||(t[e]=function(){var t=0,n=this,a={next:function(){var e=n.length<=t;return e?{done:e}:{done:e,value:n[t++]}}};return a[e]=r,a}),n[e]||(n[e]=function(){var t=String.fromCodePoint,n=this,a=0,o=n.length,i={next:function(){var e=o<=a,r=e?\"\":t(n.codePointAt(a));return a+=r.length,e?{done:e}:{done:e,value:r}}};return i[e]=r,i})}(Symbol.iterator,Array.prototype,String.prototype);var G=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?\"[object Undefined]\":null===this?\"[object Null]\":G.call(this)},Object.keys=function(e){return Object.getOwnPropertyNames(e).filter((function(t){return(t=Object.getOwnPropertyDescriptor(e,t))&&t.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function e(){var t,n=this;return y(e,(function(e){if(1==e.g&&(t=0),3!=e.g)return t<n.length?e=E(e,n[t]):(e.g=0,e=void 0),e;t++,e.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function e(){var t,n,r=this;return y(e,(function(e){if(1==e.g&&(t=[],r.forEach((function(e){t.push(e)})),n=0),3!=e.g)return n<t.length?e=E(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function e(){var t,n,r=this;return y(e,(function(e){if(1==e.g&&(t=[],r.forEach((function(e,n){t.push([n,e])})),n=0),3!=e.g)return n<t.length?e=E(e,t[n]):(e.g=0,e=void 0),e;n++,e.g=2}))});var V=document.createEvent(\"Event\");if(V.initEvent(\"foo\",!0,!0),V.preventDefault(),!V.defaultPrevented){var z=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(z.call(this),Object.defineProperty(this,\"defaultPrevented\",{get:function(){return!0},configurable:!0}))}}var Y=/Trident/.test(navigator.userAgent);if(!window.Event||Y&&\"function\"!=typeof window.Event){var W=window.Event;if(window.Event=function(e,t){t=t||{};var n=document.createEvent(\"Event\");return n.initEvent(e,!!t.bubbles,!!t.cancelable),n},W){for(var K in W)window.Event[K]=W[K];window.Event.prototype=W.prototype}}if((!window.CustomEvent||Y&&\"function\"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent(\"CustomEvent\");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||Y&&\"function\"!=typeof window.MouseEvent){var Z=window.MouseEvent;if(window.MouseEvent=function(e,t){t=t||{};var n=document.createEvent(\"MouseEvent\");return n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n},Z)for(var q in Z)window.MouseEvent[q]=Z[q];window.MouseEvent.prototype=Z.prototype}Object.getOwnPropertyDescriptor(Node.prototype,\"baseURI\")||Object.defineProperty(Node.prototype,\"baseURI\",{get:function(){var e=(this.ownerDocument||this).querySelector(\"base[href]\");return e&&e.href||window.location.href},configurable:!0,enumerable:!0});var X,J,Q=Element.prototype,$=null!==(X=Object.getOwnPropertyDescriptor(Q,\"attributes\"))&&void 0!==X?X:Object.getOwnPropertyDescriptor(Node.prototype,\"attributes\"),ee=null!==(J=null==$?void 0:$.get)&&void 0!==J?J:function(){return this.attributes},te=Array.prototype.map;Q.hasOwnProperty(\"getAttributeNames\")||(Q.getAttributeNames=function(){return te.call(ee.call(this),(function(e){return e.name}))});var ne,re=Element.prototype;re.hasOwnProperty(\"matches\")||(re.matches=null!==(ne=re.webkitMatchesSelector)&&void 0!==ne?ne:re.msMatchesSelector);var ae=Node.prototype.appendChild;function oe(e){(e=e.prototype).hasOwnProperty(\"append\")||Object.defineProperty(e,\"append\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,ae.call(this,\"string\"==typeof n?document.createTextNode(n):n)}})}oe(Document),oe(DocumentFragment),oe(Element);var ie,le,se=Node.prototype.insertBefore,ue=null!==(le=null===(ie=Object.getOwnPropertyDescriptor(Node.prototype,\"firstChild\"))||void 0===ie?void 0:ie.get)&&void 0!==le?le:function(){return this.firstChild};function ce(e){(e=e.prototype).hasOwnProperty(\"prepend\")||Object.defineProperty(e,\"prepend\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=ue.call(this);for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,se.call(this,\"string\"==typeof r?document.createTextNode(r):r,n)}})}ce(Document),ce(DocumentFragment),ce(Element);var de,fe,pe=Node.prototype.appendChild,_e=Node.prototype.removeChild,me=null!==(fe=null===(de=Object.getOwnPropertyDescriptor(Node.prototype,\"firstChild\"))||void 0===de?void 0:de.get)&&void 0!==fe?fe:function(){return this.firstChild};function he(e){(e=e.prototype).hasOwnProperty(\"replaceChildren\")||Object.defineProperty(e,\"replaceChildren\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=me.call(this));)_e.call(this,n);for(n=(t=u(t)).next();!n.done;n=t.next())n=n.value,pe.call(this,\"string\"==typeof n?document.createTextNode(n):n)}})}he(Document),he(DocumentFragment),he(Element);var Ee,Ce,ve,Se,ge=Node.prototype.insertBefore,ye=null!==(Ce=null===(Ee=Object.getOwnPropertyDescriptor(Node.prototype,\"parentNode\"))||void 0===Ee?void 0:Ee.get)&&void 0!==Ce?Ce:function(){return this.parentNode},Ie=null!==(Se=null===(ve=Object.getOwnPropertyDescriptor(Node.prototype,\"nextSibling\"))||void 0===ve?void 0:ve.get)&&void 0!==Se?Se:function(){return this.nextSibling};function Oe(e){(e=e.prototype).hasOwnProperty(\"after\")||Object.defineProperty(e,\"after\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=ye.call(this)))for(var r=Ie.call(this),a=(t=u(t)).next();!a.done;a=t.next())a=a.value,ge.call(n,\"string\"==typeof a?document.createTextNode(a):a,r)}})}Oe(CharacterData),Oe(Element);var Re,Ne,Ae=Node.prototype.insertBefore,Te=null!==(Ne=null===(Re=Object.getOwnPropertyDescriptor(Node.prototype,\"parentNode\"))||void 0===Re?void 0:Re.get)&&void 0!==Ne?Ne:function(){return this.parentNode};function be(e){(e=e.prototype).hasOwnProperty(\"before\")||Object.defineProperty(e,\"before\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=Te.call(this)))for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,Ae.call(n,\"string\"==typeof r?document.createTextNode(r):r,this)}})}be(CharacterData),be(Element);var De,Le,we=Node.prototype.removeChild,Pe=null!==(Le=null===(De=Object.getOwnPropertyDescriptor(Node.prototype,\"parentNode\"))||void 0===De?void 0:De.get)&&void 0!==Le?Le:function(){return this.parentNode};function ke(e){(e=e.prototype).hasOwnProperty(\"remove\")||Object.defineProperty(e,\"remove\",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Pe.call(this);e&&we.call(e,this)}})}ke(CharacterData),ke(Element);var Me,Fe,Ue=Node.prototype.insertBefore,xe=Node.prototype.removeChild,He=null!==(Fe=null===(Me=Object.getOwnPropertyDescriptor(Node.prototype,\"parentNode\"))||void 0===Me?void 0:Me.get)&&void 0!==Fe?Fe:function(){return this.parentNode};function je(e){(e=e.prototype).hasOwnProperty(\"replaceWith\")||Object.defineProperty(e,\"replaceWith\",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=He.call(this))){for(var r=(t=u(t)).next();!r.done;r=t.next())r=r.value,Ue.call(n,\"string\"==typeof r?document.createTextNode(r):r,this);xe.call(n,this)}}})}je(CharacterData),je(Element);var Be=window.Element.prototype,Ge=window.HTMLElement.prototype,Ve=window.SVGElement.prototype;!Ge.hasOwnProperty(\"classList\")||Be.hasOwnProperty(\"classList\")||Ve.hasOwnProperty(\"classList\")||Object.defineProperty(Be,\"classList\",Object.getOwnPropertyDescriptor(Ge,\"classList\"));var ze=document.createElement(\"style\");ze.textContent=\"body {transition: opacity ease-in 0.2s; } \\nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \\n\";var Ye=document.querySelector(\"head\");Ye.insertBefore(ze,Ye.firstChild);var We=window;We.WebComponents=We.WebComponents||{flags:{}};var Ke=document.querySelector('script[src*=\"webcomponents-bundle\"]'),Ze=/wc-(.+)/,qe={};if(!qe.noOpts){if(location.search.slice(1).split(\"&\").forEach((function(e){var t;(e=e.split(\"=\"))[0]&&(t=e[0].match(Ze))&&(qe[t[1]]=e[1]||!0)})),Ke)for(var Xe=0,Je=void 0;Je=Ke.attributes[Xe];Xe++)\"src\"!==Je.name&&(qe[Je.name]=Je.value||!0);var Qe={};qe.log&&qe.log.split&&qe.log.split(\",\").forEach((function(e){Qe[e]=!0})),qe.log=Qe}We.WebComponents.flags=qe;var $e=qe.shadydom;if($e){We.ShadyDOM=We.ShadyDOM||{},We.ShadyDOM.force=$e;var et=qe.noPatch;We.ShadyDOM.noPatch=\"true\"===et||et}var tt=qe.register||qe.ce;function nt(){}function rt(e){return e.__shady||(e.__shady=new nt),e.__shady}function at(e){return e&&e.__shady}tt&&window.customElements&&(We.customElements.forcePolyfill=tt),function(){function e(){}function t(e,t){if(!e.childNodes.length)return[];switch(e.nodeType){case Node.DOCUMENT_NODE:return m.call(e,t);case Node.DOCUMENT_FRAGMENT_NODE:return h.call(e,t);default:return _.call(e,t)}}var n=\"undefined\"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),a=!1;/Trident/.test(navigator.userAgent)&&function(){function e(e,t){if(e instanceof DocumentFragment)for(var r;r=e.firstChild;)n.call(this,r,t);else n.call(this,e,t);return e}a=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(e){return e=t.call(this,e),this instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return\"#document-fragment\"},configurable:!0}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=e;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(t){return t instanceof DocumentFragment?e.call(this,t,null):r.call(this,t),t};var o=Node.prototype.removeChild,i=Node.prototype.replaceChild;Node.prototype.replaceChild=function(t,n){return t instanceof DocumentFragment?(e.call(this,t,n),o.call(this,n)):i.call(this,t,n),n},Document.prototype.createDocumentFragment=function(){var e=this.createElement(\"df\");return e.__proto__=DocumentFragment.prototype,e};var l=Document.prototype.importNode;Document.prototype.importNode=function(e,t){return t=l.call(this,e,t||!1),e instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t}}();var o=Node.prototype.cloneNode,i=Document.prototype.createElement,l=Document.prototype.importNode,s=Node.prototype.removeChild,u=Node.prototype.appendChild,c=Node.prototype.replaceChild,d=DOMParser.prototype.parseFromString,f=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,\"innerHTML\")||{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}},p=Object.getOwnPropertyDescriptor(window.Node.prototype,\"childNodes\")||{get:function(){return this.childNodes}},_=Element.prototype.querySelectorAll,m=Document.prototype.querySelectorAll,h=DocumentFragment.prototype.querySelectorAll,E=function(){if(!n){var e=document.createElement(\"template\"),t=document.createElement(\"template\");return t.content.appendChild(document.createElement(\"div\")),e.content.appendChild(t),0===(e=e.cloneNode(!0)).content.childNodes.length||0===e.content.firstChild.content.childNodes.length||r}}();if(n){var C=document.implementation.createHTMLDocument(\"template\"),v=!0,S=document.createElement(\"style\");S.textContent=\"template{display:none;}\";var g=document.head;g.insertBefore(S,g.firstElementChild),e.prototype=Object.create(HTMLElement.prototype);var y=!document.createElement(\"div\").hasOwnProperty(\"innerHTML\");e.Z=function(t){if(!t.content&&t.namespaceURI===document.documentElement.namespaceURI){t.content=C.createDocumentFragment();for(var n;n=t.firstChild;)u.call(t.content,n);if(y)t.__proto__=e.prototype;else if(t.cloneNode=function(t){return e.sa(this,t)},v)try{O(t),R(t)}catch(r){v=!1}e.bootstrap(t.content)}};var I={option:[\"select\"],thead:[\"table\"],col:[\"colgroup\",\"table\"],tr:[\"tbody\",\"table\"],th:[\"tr\",\"tbody\",\"table\"],td:[\"tr\",\"tbody\",\"table\"]},O=function(t){Object.defineProperty(t,\"innerHTML\",{get:function(){return L(this)},set:function(t){var n=I[(/<([a-z][^/\\0>\\x20\\t\\r\\n\\f]+)/i.exec(t)||[\"\",\"\"])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)t=\"<\"+n[r]+\">\"+t+\"</\"+n[r]+\">\";for(C.body.innerHTML=t,e.bootstrap(C);this.content.firstChild;)s.call(this.content,this.content.firstChild);if(t=C.body,n)for(r=0;r<n.length;r++)t=t.lastChild;for(;t.firstChild;)u.call(this.content,t.firstChild)},configurable:!0})},R=function(e){Object.defineProperty(e,\"outerHTML\",{get:function(){return\"<template>\"+this.innerHTML+\"</template>\"},set:function(e){if(!this.parentNode)throw Error(\"Failed to set the 'outerHTML' property on 'Element': This element has no parent node.\");for(C.body.innerHTML=e,e=this.ownerDocument.createDocumentFragment();C.body.firstChild;)u.call(e,C.body.firstChild);c.call(this.parentNode,e,this)},configurable:!0})};O(e.prototype),R(e.prototype),e.bootstrap=function(n){for(var r,a=0,o=(n=t(n,\"template\")).length;a<o&&(r=n[a]);a++)e.Z(r)},document.addEventListener(\"DOMContentLoaded\",(function(){e.bootstrap(document)})),Document.prototype.createElement=function(){var t=i.apply(this,arguments);return\"template\"===t.localName&&e.Z(t),t},DOMParser.prototype.parseFromString=function(){var t=d.apply(this,arguments);return e.bootstrap(t),t},Object.defineProperty(HTMLElement.prototype,\"innerHTML\",{get:function(){return L(this)},set:function(t){f.set.call(this,t),e.bootstrap(this)},configurable:!0,enumerable:!0});var N=/[&\\u00A0\"]/g,A=/[&\\u00A0<>]/g,T=function(e){switch(e){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\" \":return\" \"}},b=(S=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t})(\"area base br col command embed hr img input keygen link meta param source track wbr\".split(\" \")),D=S(\"style script xmp iframe noembed noframes plaintext noscript\".split(\" \")),L=function e(t,n){\"template\"===t.localName&&(t=t.content);for(var r,a=\"\",o=n?n(t):p.get.call(t),i=0,l=o.length;i<l&&(r=o[i]);i++){e:{var s=r,u=t,c=n;switch(s.nodeType){case Node.ELEMENT_NODE:for(var d=s.localName,f=\"<\"+d,_=s.attributes,m=0;u=_[m];m++)f+=\" \"+u.name+'=\"'+u.value.replace(N,T)+'\"';f+=\">\",s=b[d]?f:f+e(s,c)+\"</\"+d+\">\";break e;case Node.TEXT_NODE:s=s.data,s=u&&D[u.localName]?s:s.replace(A,T);break e;case Node.COMMENT_NODE:s=\"\\x3c!--\"+s.data+\"--\\x3e\";break e;default:throw window.console.error(s),Error(\"not implemented\")}}a+=s}return a}}if(n||E){e.sa=function(e,t){var n=o.call(e,!1);return this.Z&&this.Z(n),t&&(u.call(n.content,o.call(e.content,!0)),w(n.content,e.content)),n};var w=function(n,r){if(r.querySelectorAll&&0!==(r=t(r,\"template\")).length)for(var a,o,i=0,l=(n=t(n,\"template\")).length;i<l;i++)o=r[i],a=n[i],e&&e.Z&&e.Z(o),c.call(a.parentNode,P.call(o,!0),a)},P=Node.prototype.cloneNode=function(t){if(!a&&r&&this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();var n=k.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&\"template\"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?e.sa(this,t):o.call(this,t);return t&&w(n,this),n},k=Document.prototype.importNode=function(n,r){if(r=r||!1,\"template\"===n.localName)return e.sa(n,r);var a=l.call(this,n,r);if(r){w(a,n),n=t(a,'script:not([type]),script[type=\"application/javascript\"],script[type=\"text/javascript\"]');for(var o,s=0;s<n.length;s++){o=n[s],(r=i.call(document,\"script\")).textContent=o.textContent;for(var u,d=o.attributes,f=0;f<d.length;f++)u=d[f],r.setAttribute(u.name,u.value);c.call(o.parentNode,r,o)}}return a}}n&&(window.HTMLTemplateElement=e)}(),nt.prototype.toJSON=function(){return{}};var ot=window.ShadyDOM||{};ot.Ya=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var it=Object.getOwnPropertyDescriptor(Node.prototype,\"firstChild\");function lt(){return Document.prototype.msElementsFromPoint?\"msElementsFromPoint\":\"elementsFromPoint\"}function st(e){return(e=at(e))&&void 0!==e.firstChild}function ut(e){return e instanceof ShadowRoot}function ct(e){return(e=(e=at(e))&&e.root)&&Xr(e)}ot.H=!!(it&&it.configurable&&it.get),ot.ya=ot.force||!ot.Ya,ot.J=ot.noPatch||!1,ot.fa=ot.preferPerformance,ot.Aa=\"on-demand\"===ot.J,ot.Na=navigator.userAgent.match(\"Trident\");var dt=Element.prototype,ft=dt.matches||dt.matchesSelector||dt.mozMatchesSelector||dt.msMatchesSelector||dt.oMatchesSelector||dt.webkitMatchesSelector,pt=document.createTextNode(\"\"),_t=0,mt=[];function ht(e){mt.push(e),pt.textContent=_t++}new MutationObserver((function(){for(;mt.length;)try{mt.shift()()}catch(P){throw pt.textContent=_t++,P}})).observe(pt,{characterData:!0});var Et=document.contains?function(e,t){return e.__shady_native_contains(t)}:function(e,t){return e===t||e.documentElement&&e.documentElement.__shady_native_contains(t)};function Ct(e,t){for(;t;){if(t==e)return!0;t=t.__shady_parentNode}return!1}function vt(e){for(var t=e.length-1;0<=t;t--){var n=e[t],r=n.getAttribute(\"id\")||n.getAttribute(\"name\");r&&\"length\"!==r&&isNaN(r)&&(e[r]=n)}return e.item=function(t){return e[t]},e.namedItem=function(t){if(\"length\"!==t&&isNaN(t)&&e[t])return e[t];for(var n=u(e),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute(\"id\")||r.getAttribute(\"name\"))==t)return r;return null},e}function St(e){var t=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)t.push(e);return t}function gt(e){var t=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t.push(e);return t}function yt(e,t,n){if(n.configurable=!0,n.value)e[t]=n.value;else try{Object.defineProperty(e,t,n)}catch(U){}}function It(e,t,n,r){for(var a in n=void 0===n?\"\":n,t)r&&0<=r.indexOf(a)||yt(e,n+a,t[a])}function Ot(e,t){for(var n in t)n in e&&yt(e,n,t[n])}function Rt(e){var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t}function Nt(e,t){for(var n,r=Object.getOwnPropertyNames(t),a=0;a<r.length;a++)e[n=r[a]]=t[n]}function At(e){return e instanceof Node?e:document.createTextNode(\"\"+e)}function Tt(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(1===t.length)return At(t[0]);n=document.createDocumentFragment();for(var r=(t=u(t)).next();!r.done;r=t.next())n.appendChild(At(r.value));return n}var bt,Dt=[];function Lt(e){bt||(bt=!0,ht(wt)),Dt.push(e)}function wt(){bt=!1;for(var e=!!Dt.length;Dt.length;)Dt.shift()();return e}function Pt(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.oa=new Set}wt.list=Dt,Pt.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.oa.forEach((function(t){t(e)}))}},Pt.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var kt=/[&\\u00A0\"]/g,Mt=/[&\\u00A0<>]/g;function Ft(e){switch(e){case\"&\":return\"&\";case\"<\":return\"<\";case\">\":return\">\";case'\"':return\""\";case\" \":return\" \"}}function Ut(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var xt=Ut(\"area base br col command embed hr img input keygen link meta param source track wbr\".split(\" \")),Ht=Ut(\"style script xmp iframe noembed noframes plaintext noscript\".split(\" \"));function jt(e,t){\"template\"===e.localName&&(e=e.content);for(var n=\"\",r=t?t(e):e.childNodes,a=0,o=r.length,i=void 0;a<o&&(i=r[a]);a++){e:{var l=i,s=e,u=t;switch(l.nodeType){case Node.ELEMENT_NODE:for(var c,d=\"<\"+(s=l.localName),f=l.attributes,p=0;c=f[p];p++)d+=\" \"+c.name+'=\"'+c.value.replace(kt,Ft)+'\"';d+=\">\",l=xt[s]?d:d+jt(l,u)+\"</\"+s+\">\";break e;case Node.TEXT_NODE:l=l.data,l=s&&Ht[s.localName]?l:l.replace(Mt,Ft);break e;case Node.COMMENT_NODE:l=\"\\x3c!--\"+l.data+\"--\\x3e\";break e;default:throw window.console.error(l),Error(\"not implemented\")}}n+=l}return n}var Bt=ot.H,Gt={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},Vt={};function zt(e){Vt[e]=function(t){return t[\"__shady_native_\"+e]}}function Yt(e,t){for(var n in It(e,t,\"__shady_native_\"),t)zt(n)}function Wt(e,t){t=void 0===t?[]:t;for(var n=0;n<t.length;n++){var r=t[n],a=Object.getOwnPropertyDescriptor(e,r);a&&(Object.defineProperty(e,\"__shady_native_\"+r,a),a.value?Gt[r]||(Gt[r]=a.value):zt(r))}}var Kt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Zt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),qt=document.implementation.createHTMLDocument(\"inert\");function Xt(e){for(var t;t=e.__shady_native_firstChild;)e.__shady_native_removeChild(t)}var Jt=[\"firstElementChild\",\"lastElementChild\",\"children\",\"childElementCount\"],Qt=[\"querySelector\",\"querySelectorAll\",\"append\",\"prepend\",\"replaceChildren\"];var $t=Rt({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),en=Rt({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),tn=Rt({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function nn(e){for(var t in e){var n=e[t];n&&(n.enumerable=!1)}}nn($t),nn(en),nn(tn);var rn=ot.H||!0===ot.J,an=rn?function(){}:function(e){var t=rt(e);t.Pa||(t.Pa=!0,Ot(e,tn))},on=rn?function(){}:function(e){var t=rt(e);t.Oa||(t.Oa=!0,Ot(e,$t),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!ot.J||Ot(e,en))},ln=\"__eventWrappers\"+Date.now(),sn=function(){var e=Object.getOwnPropertyDescriptor(Event.prototype,\"composed\");return e?function(t){return e.get.call(t)}:null}(),un=function(){function e(){}var t=!1,n={get capture(){return t=!0,!1}};return window.addEventListener(\"test\",e,n),window.removeEventListener(\"test\",e,n),t}();function cn(e){if(e&&\"object\"===r(e))var t=!!e.capture,n=!!e.once,a=!!e.passive,o=e.U;else t=!!e,a=n=!1;return{La:o,capture:t,once:n,passive:a,Ja:un?e:t}}var dn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},fn={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function pn(e){return e instanceof Node?e.__shady_getRootNode():e}function _n(e,t){var n=[],r=e;for(e=pn(e);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n}function mn(e,t){if(!ut)return e;e=_n(e,!0);for(var n,r,a=0,o=void 0,i=void 0;a<t.length;a++)if((r=pn(n=t[a]))!==o&&(i=e.indexOf(r),o=r),!ut(r)||-1<i)return n}function hn(e){function t(t,n){return(t=new e(t,n)).__composed=n&&!!n.composed,t}return t.__proto__=e,t.prototype=e.prototype,t}var En={focus:!0,blur:!0};function Cn(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function vn(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,a=0;(r=n[a])&&(!Cn(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.__immediatePropagationStopped);a++);}function Sn(e){var t=e.composedPath(),n=t.map((function(e){return mn(e,t)})),r=e.bubbles;Object.defineProperty(e,\"currentTarget\",{configurable:!0,enumerable:!0,get:function(){return i}});var a=Event.CAPTURING_PHASE;Object.defineProperty(e,\"eventPhase\",{configurable:!0,enumerable:!0,get:function(){return a}});for(var o=t.length-1;0<=o;o--){var i=t[o];if(a=i===n[o]?Event.AT_TARGET:Event.CAPTURING_PHASE,vn(e,i,\"capture\"),e.ra)return}for(o=0;o<t.length;o++){var l=(i=t[o])===n[o];if((l||r)&&(a=l?Event.AT_TARGET:Event.BUBBLING_PHASE,vn(e,i,\"bubble\"),e.ra))return}a=0,i=null}function gn(e,t,n,r,a,o){for(var i=0;i<e.length;i++){var l=e[i],s=l.type,u=l.capture,c=l.once,d=l.passive;if(t===l.node&&n===s&&r===u&&a===c&&o===d)return i}return-1}function yn(e){return wt(),!ot.fa&&this instanceof Node&&!Et(document,this)?(e.__target||Nn(e,this),Sn(e)):this.__shady_native_dispatchEvent(e)}function In(e,t,n){var a=cn(n),o=a.capture,i=a.once,l=a.passive,s=a.La;if(a=a.Ja,t){var u=r(t);if((\"function\"===u||\"object\"===u)&&(\"object\"!==u||t.handleEvent&&\"function\"==typeof t.handleEvent)){if(fn[e])return this.__shady_native_addEventListener(e,t,a);var c=s||this;if(s=t[ln]){if(-1<gn(s,c,e,o,i,l))return}else t[ln]=[];s=function(r){if(i&&this.__shady_removeEventListener(e,t,n),r.__target||Nn(r),c!==this){var a=Object.getOwnPropertyDescriptor(r,\"currentTarget\");Object.defineProperty(r,\"currentTarget\",{get:function(){return c},configurable:!0});var l=Object.getOwnPropertyDescriptor(r,\"eventPhase\");Object.defineProperty(r,\"eventPhase\",{configurable:!0,enumerable:!0,get:function(){return o?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(r.__previousCurrentTarget=r.currentTarget,(!ut(c)&&\"slot\"!==c.localName||-1!=r.composedPath().indexOf(c))&&(r.composed||-1<r.composedPath().indexOf(c)))if(Cn(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===c||c instanceof Window){var s=\"function\"===u?t.call(c,r):t.handleEvent&&t.handleEvent(r);return c!==this&&(a?(Object.defineProperty(r,\"currentTarget\",a),a=null):delete r.currentTarget,l?(Object.defineProperty(r,\"eventPhase\",l),l=null):delete r.eventPhase),s}},t[ln].push({node:c,type:e,capture:o,once:i,passive:l,pb:s}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][o?\"capture\":\"bubble\"].push(s),En[e]||this.__shady_native_addEventListener(e,s,a)}}}function On(e,t,n){if(t){var r=cn(n);n=r.capture;var a=r.once,o=r.passive,i=r.La;if(r=r.Ja,fn[e])return this.__shady_native_removeEventListener(e,t,r);var l=i||this;i=void 0;var s=null;try{s=t[ln]}catch(u){}s&&(-1<(a=gn(s,l,e,n,a,o))&&(i=s.splice(a,1)[0].pb,s.length||(t[ln]=void 0))),this.__shady_native_removeEventListener(e,i||t,r),i&&this.__handlers&&this.__handlers[e]&&(-1<(t=(e=this.__handlers[e][n?\"capture\":\"bubble\"]).indexOf(i))&&e.splice(t,1))}}var Rn=Rt({get composed(){return void 0===this.__composed&&(sn?this.__composed=\"focusin\"===this.type||\"focusout\"===this.type||sn(this):!1!==this.isTrusted&&(this.__composed=dn[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=_n(this.__target,this.composed)),this.__composedPath},get target(){return mn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=_n(this.__relatedTarget,!0)),mn(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ra=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ra=this.__immediatePropagationStopped=!0}});function Nn(e,t){if(t=void 0===t?e.target:t,e.__target=t,e.__relatedTarget=e.relatedTarget,ot.H){if(!(t=Object.getPrototypeOf(e)).hasOwnProperty(\"__shady_patchedProto\")){var n=Object.create(t);n.__shady_sourceProto=t,It(n,Rn),t.__shady_patchedProto=n}e.__proto__=t.__shady_patchedProto}else It(e,Rn)}var An=hn(Event),Tn=hn(CustomEvent),bn=hn(MouseEvent);var Dn=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return\"on\"===e.substring(0,2)})),Ln=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return\"on\"===e.substring(0,2)}));function wn(e){return{set:function(t){var n=rt(this),r=e.substring(2);n.T||(n.T={}),n.T[e]&&this.removeEventListener(r,n.T[e]),this.__shady_addEventListener(r,t),n.T[e]=t},get:function(){var t=at(this);return t&&t.T&&t.T[e]},configurable:!0}}function Pn(e,t){return{index:e,ga:[],na:t}}function kn(e,t,n,r){var a=0,o=0,i=0,l=0,s=Math.min(t-a,r-o);if(0==a&&0==o)e:{for(i=0;i<s;i++)if(e[i]!==n[i])break e;i=s}if(t==e.length&&r==n.length){l=e.length;for(var u=n.length,c=0;c<s-i&&Mn(e[--l],n[--u]);)c++;l=c}if(o+=i,r-=l,0==(t-=l)-(a+=i)&&0==r-o)return[];if(a==t){for(t=Pn(a,0);o<r;)t.ga.push(n[o++]);return[t]}if(o==r)return[Pn(a,t-a)];for(r=r-(i=o)+1,l=t-(s=a)+1,t=Array(r),u=0;u<r;u++)t[u]=Array(l),t[u][0]=u;for(u=0;u<l;u++)t[0][u]=u;for(u=1;u<r;u++)for(c=1;c<l;c++)if(e[s+c-1]===n[i+u-1])t[u][c]=t[u-1][c-1];else{var d=t[u-1][c]+1,f=t[u][c-1]+1;t[u][c]=d<f?d:f}for(s=t.length-1,i=t[0].length-1,r=t[s][i],e=[];0<s||0<i;)0==s?(e.push(2),i--):0==i?(e.push(3),s--):(l=t[s-1][i-1],(d=(u=t[s-1][i])<(c=t[s][i-1])?u<l?u:l:c<l?c:l)==l?(l==r?e.push(0):(e.push(1),r=l),s--,i--):d==u?(e.push(3),s--,r=u):(e.push(2),i--,r=c));for(e.reverse(),t=void 0,s=[],i=0;i<e.length;i++)switch(e[i]){case 0:t&&(s.push(t),t=void 0),a++,o++;break;case 1:t||(t=Pn(a,0)),t.na++,a++,t.ga.push(n[o]),o++;break;case 2:t||(t=Pn(a,0)),t.na++,a++;break;case 3:t||(t=Pn(a,0)),t.ga.push(n[o]),o++}return t&&s.push(t),s}function Mn(e,t){return e===t}var Fn=Rt({dispatchEvent:yn,addEventListener:In,removeEventListener:On}),Un=null;function xn(){return Un||(Un=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Un||null}function Hn(e,t,n){var r=xn();return!(!r||\"class\"!==t)&&(r.setElementClass(e,n),!0)}function jn(e,t){var n=xn();n&&n.unscopeNode(e,t)}function Bn(e,t){var n=xn();if(!n)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=n&&Bn(e,t);return n}return e.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(e)===t}function Gn(e){if(e.nodeType!==Node.ELEMENT_NODE)return\"\";var t=xn();return t?t.currentScopeForNode(e):\"\"}function Vn(e,t){if(e)for(e.nodeType===Node.ELEMENT_NODE&&t(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Vn(e,t)}var zn=window.document,Yn=ot.fa,Wn=Object.getOwnPropertyDescriptor(Node.prototype,\"isConnected\"),Kn=Wn&&Wn.get;function Zn(e){for(var t;t=e.__shady_firstChild;)e.__shady_removeChild(t)}function qn(e){var t=at(e);if(t&&void 0!==t.qa)for(t=e.__shady_firstChild;t;t=t.__shady_nextSibling)qn(t);(e=at(e))&&(e.qa=void 0)}function Xn(e){var t=e;if(e&&\"slot\"===e.localName){var n=at(e);(n=n&&n.aa)&&(t=n.length?n[0]:Xn(e.__shady_nextSibling))}return t}function Jn(e,t,n){if(e=(e=at(e))&&e.ea){if(t)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,a=t.childNodes.length;r<a;r++)e.addedNodes.push(t.childNodes[r]);else e.addedNodes.push(t);n&&e.removedNodes.push(n),function(e){e.g||(e.g=!0,ht((function(){e.flush()})))}(e)}}var Qn=Rt({get parentNode(){var e=at(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=at(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=at(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=at(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=at(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(st(this)){var e=at(this);if(!e.childNodes){e.childNodes=[];for(var t=this.__shady_firstChild;t;t=t.__shady_nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=this.__shady_native_childNodes;return n.item=function(e){return n[e]},n},get parentElement(){var e=at(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(Kn&&Kn.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||Et(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(ut(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(st(this)){for(var e=[],t=this.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.__shady_textContent);return e.join(\"\")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=\"\"),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!st(this)&&ot.H){var t=this.__shady_firstChild;(t!=this.__shady_lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&Zn(this),this.__shady_native_textContent=e}else Zn(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,t){if(this.ownerDocument!==zn&&e.ownerDocument!==zn)return this.__shady_native_insertBefore(e,t),e;if(e===this)throw Error(\"Failed to execute 'appendChild' on 'Node': The new child element contains the parent.\");if(t){var n=at(t);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&t.__shady_native_parentNode!==this)throw Error(\"Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.\")}if(t===e)return e;Jn(this,e);var r=[],a=(n=ea(this))?n.host.localName:Gn(this),o=e.__shady_parentNode;if(o){var i=Gn(e),l=!!n||!ea(e)||Yn&&void 0!==this.__noInsertionPoint;o.__shady_removeChild(e,l)}o=!0;var s=(!Yn||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Bn(e,a),u=n&&!e.__noInsertionPoint&&(!Yn||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||s)&&(s&&(i=i||Gn(e)),Vn(e,(function(e){if(u&&\"slot\"===e.localName&&r.push(e),s){var t=i;xn()&&(t&&jn(e,t),(t=xn())&&t.scopeNode(e,a))}}))),r.length&&(Wr(n),n.i.push.apply(n.i,c(r)),Br(n)),st(this)&&(function(e,t,n){Dr(t,2);var r=rt(t);if(void 0!==r.firstChild&&(r.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)Lr(e,t,r,n);else Lr(e,t,r,n)}(e,this,t),(l=at(this)).root?(o=!1,ct(this)&&Br(l.root)):n&&\"slot\"===this.localName&&(o=!1,Br(n))),o?(n=ut(this)?this.host:this,t?(t=Xn(t),n.__shady_native_insertBefore(e,t)):n.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!ut(e))return this.__shady_insertBefore(e)},removeChild:function(e,t){if(t=void 0!==t&&t,this.ownerDocument!==zn)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error(\"The node to be removed is not a child of this node: \"+e);Jn(this,null,e);var n=ea(e),r=n&&function(e,t){if(e.g){Kr(e);var n,r=e.h;for(n in r)for(var a=r[n],o=0;o<a.length;o++){var i=a[o];if(Ct(t,i)){a.splice(o,1);var l=e.g.indexOf(i);if(0<=l&&(e.g.splice(l,1),(l=at(i.__shady_parentNode))&&l.ia&&l.ia--),o--,l=(i=at(i)).aa)for(var s=0;s<l.length;s++){var u=l[s],c=u.__shady_native_parentNode;c&&c.__shady_native_removeChild(u)}i.aa=[],i.assignedNodes=[],l=!0}}return l}}(n,e),a=at(this);if(st(this)&&(function(e,t){var n=rt(e);t=rt(t),e===t.firstChild&&(t.firstChild=n.nextSibling),e===t.lastChild&&(t.lastChild=n.previousSibling),e=n.previousSibling;var r=n.nextSibling;e&&(rt(e).nextSibling=r),r&&(rt(r).previousSibling=e),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==t.childNodes&&(t.childNodes=null)}(e,this),ct(this))){Br(a.root);var o=!0}if(xn()&&!t&&n&&e.nodeType!==Node.TEXT_NODE){var i=Gn(e);Vn(e,(function(e){jn(e,i)}))}return qn(e),n&&((t=\"slot\"===this.localName)&&(o=!0),(r||t)&&Br(n)),o||(o=ut(this)?this.host:this,(!a.root&&\"slot\"!==e.localName||o===e.__shady_native_parentNode)&&o.__shady_native_removeChild(e)),e},replaceChild:function(e,t){return this.__shady_insertBefore(e,t),this.__shady_removeChild(t),e},cloneNode:function(e){if(\"template\"==this.localName)return this.__shady_native_cloneNode(e);var t=this.__shady_native_cloneNode(!1);if(e&&t.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var n;e;e=e.__shady_nextSibling)n=e.__shady_cloneNode(!0),t.__shady_appendChild(n)}return t},getRootNode:function(e){if(this&&this.nodeType){var t=rt(this),n=t.qa;return void 0===n&&(ut(this)?(n=this,t.qa=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(t.qa=n))),n}},contains:function(e){return Ct(this,e)}}),$n=Rt({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&Gr(e),(e=at(this))&&e.assignedSlot||null}});function er(e,t,n){var r=[];return tr(e,t,n,r),r}function tr(e,t,n,r){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var a;if(a=e.nodeType===Node.ELEMENT_NODE){var o=t,i=n,l=r,s=o(a=e);s&&l.push(a),i&&i(s)?a=s:(tr(a,o,i,l),a=void 0)}if(a)break}}var nr={get firstElementChild(){var e=at(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=at(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return st(this)?vt(Array.prototype.filter.call(gt(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},rr=Rt((nr.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(Tt.apply(null,c(t)),null)},nr.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];this.__shady_insertBefore(Tt.apply(null,c(t)),this.__shady_firstChild)},nr.replaceChildren=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(;null!==(n=this.__shady_firstChild);)this.__shady_removeChild(n);this.__shady_insertBefore(Tt.apply(null,c(t)),null)},nr)),ar=Rt({querySelector:function(e){return er(this,(function(t){return ft.call(t,e)}),(function(e){return!!e}))[0]||null},querySelectorAll:function(e,t){if(t){t=Array.prototype.slice.call(this.__shady_native_querySelectorAll(e));var n=this.__shady_getRootNode();return vt(t.filter((function(e){return e.__shady_getRootNode()==n})))}return vt(er(this,(function(t){return ft.call(t,e)})))}}),or=ot.fa&&!ot.J?Nt({},rr):rr;Nt(rr,ar);var ir=Rt({after:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_insertBefore(Tt.apply(null,c(t)),r)}},before:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];null!==(n=this.__shady_parentNode)&&n.__shady_insertBefore(Tt.apply(null,c(t)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];if(null!==(n=this.__shady_parentNode)){var r=this.__shady_nextSibling;n.__shady_removeChild(this),n.__shady_insertBefore(Tt.apply(null,c(t)),r)}}}),lr=window.document;function sr(e,t){if(\"slot\"===t)ct(e=e.__shady_parentNode)&&Br(at(e).root);else if(\"slot\"===e.localName&&\"name\"===t&&(t=ea(e))){if(t.g){Kr(t);var n=e.Qa,r=Zr(e);if(r!==n){var a=(n=t.h[n]).indexOf(e);0<=a&&n.splice(a,1),(n=t.h[r]||(t.h[r]=[])).push(e),1<n.length&&(t.h[r]=qr(n))}}Br(t)}}var ur=Rt({get previousElementSibling(){var e=at(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=at(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute(\"slot\")},set slot(e){this.__shady_setAttribute(\"slot\",e)},get className(){return this.getAttribute(\"class\")||\"\"},set className(e){this.__shady_setAttribute(\"class\",e)},setAttribute:function(e,t){this.ownerDocument!==lr?this.__shady_native_setAttribute(e,t):Hn(this,e,t)||(this.__shady_native_setAttribute(e,t),sr(this,e))},removeAttribute:function(e){this.ownerDocument!==lr?this.__shady_native_removeAttribute(e):Hn(this,e,\"\")?\"\"===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),sr(this,e))}});ot.fa||Dn.forEach((function(e){ur[e]=wn(e)}));var cr=Rt({attachShadow:function(e){if(!this)throw Error(\"Must provide a host.\");if(!e)throw Error(\"Not enough arguments.\");if(e.shadyUpgradeFragment&&!ot.Na){var t=e.shadyUpgradeFragment;if(t.__proto__=ShadowRoot.prototype,jr(t,this,e),wr(t,t),e=t.__noInsertionPoint?null:t.querySelectorAll(\"slot\"),t.__noInsertionPoint=void 0,e&&e.length){var n=t;Wr(n),n.i.push.apply(n.i,c(e)),Br(t)}t.host.__shady_native_appendChild(t)}else t=new Hr(Fr,this,e);return this.__CE_shadowRoot=t},get shadowRoot(){var e=at(this);return e&&e.gb||null}});Nt(ur,cr);var dr=document.implementation.createHTMLDocument(\"inert\"),fr=Rt({get innerHTML(){return st(this)?jt(\"template\"===this.localName?this.content:this,gt):this.__shady_native_innerHTML},set innerHTML(e){if(\"template\"===this.localName)this.__shady_native_innerHTML=e;else{Zn(this);var t=this.localName||\"div\";for(t=this.namespaceURI&&this.namespaceURI!==dr.namespaceURI?dr.createElementNS(this.namespaceURI,t):dr.createElement(t),ot.H?t.__shady_native_innerHTML=e:t.innerHTML=e;e=t.__shady_firstChild;)this.__shady_insertBefore(e)}}}),pr=Rt({blur:function(){var e=at(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});ot.fa||Ln.forEach((function(e){pr[e]=wn(e)}));var _r=Rt({assignedNodes:function(e){if(\"slot\"===this.localName){var t=this.__shady_getRootNode();return t&&ut(t)&&Gr(t),(t=at(this))&&(e&&e.flatten?t.aa:t.assignedNodes)||[]}},addEventListener:function(e,t,n){if(\"slot\"!==this.localName||\"slotchange\"===e)In.call(this,e,t,n);else{\"object\"!==r(n)&&(n={capture:!!n});var a=this.__shady_parentNode;if(!a)throw Error(\"ShadyDOM cannot attach event to slot unless it has a `parentNode`\");n.U=this,a.__shady_addEventListener(e,t,n)}},removeEventListener:function(e,t,n){if(\"slot\"!==this.localName||\"slotchange\"===e)On.call(this,e,t,n);else{\"object\"!==r(n)&&(n={capture:!!n});var a=this.__shady_parentNode;if(!a)throw Error(\"ShadyDOM cannot attach event to slot unless it has a `parentNode`\");n.U=this,a.__shady_removeEventListener(e,t,n)}}}),mr=Rt({getElementById:function(e){return\"\"===e?null:er(this,(function(t){return t.id==e}),(function(e){return!!e}))[0]||null}});function hr(e,t){for(var n;t&&!e.has(n=t.__shady_getRootNode());)t=n.host;return t}var Er=\"__shady_native_\"+lt(),Cr=Rt({get activeElement(){var e=ot.H?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var t=!!ut(this);if(!(this===document||t&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(t=ea(e);t&&t!==this;)t=ea(e=t.host);return this===document?t?null:e:t===this?e:null},elementsFromPoint:function(e,t){e=[].slice.call(document[Er](e,t)),t=function(e){var t=new Set;for(t.add(e);ut(e)&&e.host;)e=e.host.__shady_getRootNode(),t.add(e);return t}(this);for(var n=new Set,r=0;r<e.length;r++)n.add(hr(t,e[r]));var a=[];return n.forEach((function(e){return a.push(e)})),a},elementFromPoint:function(e,t){return this.__shady_elementsFromPoint(e,t)[0]||null}}),vr=window.document,Sr=Rt({importNode:function(e,t){if(e.ownerDocument!==vr||\"template\"===e.localName)return this.__shady_native_importNode(e,t);var n=this.__shady_native_importNode(e,!1);if(t)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)t=this.__shady_importNode(e,!0),n.__shady_appendChild(t);return n}}),gr=Rt({dispatchEvent:yn,addEventListener:In.bind(window),removeEventListener:On.bind(window)}),yr={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"parentElement\")&&(yr.parentElement=Qn.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"contains\")&&(yr.contains=Qn.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"children\")&&(yr.children=rr.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"innerHTML\")&&(yr.innerHTML=fr.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"className\")&&(yr.className=ur.className);var Ir={EventTarget:[Fn],Node:[Qn,window.EventTarget?null:Fn],Text:[$n],Comment:[$n],CDATASection:[$n],ProcessingInstruction:[$n],Element:[ur,rr,ir,$n,!ot.H||\"innerHTML\"in Element.prototype?fr:null,window.HTMLSlotElement?null:_r],HTMLElement:[pr,yr],HTMLSlotElement:[_r],DocumentFragment:[or,mr],Document:[Sr,or,mr,Cr],Window:[gr],CharacterData:[ir]},Or=ot.H?null:[\"innerHTML\",\"textContent\"];function Rr(e,t,n,r){t.forEach((function(t){return e&&t&&It(e,t,n,r)}))}function Nr(e){var t,n=e?null:Or;for(t in Ir)Rr(window[t]&&window[t].prototype,Ir[t],e,n)}function Ar(e){return e.__shady_protoIsPatched=!0,Rr(e,Ir.EventTarget),Rr(e,Ir.Node),Rr(e,Ir.Element),Rr(e,Ir.HTMLElement),Rr(e,Ir.HTMLSlotElement),e}[\"Text\",\"Comment\",\"CDATASection\",\"ProcessingInstruction\"].forEach((function(e){var t=window[e],n=Object.create(t.prototype);n.__shady_protoIsPatched=!0,Rr(n,Ir.EventTarget),Rr(n,Ir.Node),Ir[e]&&Rr(n,Ir[e]),t.prototype.__shady_patchedProto=n}));var Tr=ot.Aa,br=ot.H;function Dr(e,t){if(Tr&&!e.__shady_protoIsPatched&&!ut(e)){var n=Object.getPrototypeOf(e),r=n.hasOwnProperty(\"__shady_patchedProto\")&&n.__shady_patchedProto;r||(Ar(r=Object.create(n)),n.__shady_patchedProto=r),Object.setPrototypeOf(e,r)}br||(1===t?an(e):2===t&&on(e))}function Lr(e,t,n,r){Dr(e,1),r=r||null;var a=rt(e),o=r?rt(r):null;a.previousSibling=r?o.previousSibling:t.__shady_lastChild,(o=at(a.previousSibling))&&(o.nextSibling=e),(o=at(a.nextSibling=r))&&(o.previousSibling=e),a.parentNode=t,r?r===n.firstChild&&(n.firstChild=e):(n.lastChild=e,n.firstChild||(n.firstChild=e)),n.childNodes=null}function wr(e,t){var n=rt(e);if(t||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=e.__shady_native_firstChild;for(n.lastChild=e.__shady_native_lastChild,Dr(e,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var a=rt(n);a.parentNode=t||e,a.nextSibling=n.__shady_native_nextSibling,a.previousSibling=r||null,r=n,Dr(n,1)}}}var Pr=Rt({addEventListener:function(e,t,n){\"object\"!==r(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_addEventListener(e,t,n)},removeEventListener:function(e,t,n){\"object\"!==r(n)&&(n={capture:!!n}),n.U=n.U||this,this.host.__shady_removeEventListener(e,t,n)}});function kr(e,t){It(e,Pr,t),It(e,Cr,t),It(e,fr,t),It(e,rr,t),ot.J&&!t?(It(e,Qn,t),It(e,mr,t)):ot.H||(It(e,tn),It(e,$t),It(e,en))}var Mr,Fr={},Ur=ot.deferConnectionCallbacks&&\"loading\"===document.readyState;function xr(e){var t=[];do{t.unshift(e)}while(e=e.__shady_parentNode);return t}function Hr(e,t,n){if(e!==Fr)throw new TypeError(\"Illegal constructor\");this.g=null,jr(this,t,n)}function jr(e,t,n){if(e.host=t,e.mode=n&&n.mode,wr(e.host),(t=rt(e.host)).root=e,t.gb=\"closed\"!==e.mode?e:null,(t=rt(e)).firstChild=t.lastChild=t.parentNode=t.nextSibling=t.previousSibling=null,ot.preferPerformance)for(;t=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(t);else Br(e)}function Br(e){e.Y||(e.Y=!0,Lt((function(){return Gr(e)})))}function Gr(e){var t;if(t=e.Y){for(var n;e;)e.Y&&(n=e),ut(e=(t=e).host.__shady_getRootNode())&&(t=at(t.host))&&0<t.ia||(e=void 0);t=n}(n=t)&&n._renderSelf()}function Vr(e,t,n){var r=rt(t),a=r.ua;r.ua=null,n||(n=(e=e.h[t.__shady_slot||\"__catchall\"])&&e[0]),n?(rt(n).assignedNodes.push(t),r.assignedSlot=n):r.assignedSlot=void 0,a!==r.assignedSlot&&r.assignedSlot&&(rt(r.assignedSlot).xa=!0)}function zr(e,t,n){for(var r=0,a=void 0;r<n.length&&(a=n[r]);r++)if(\"slot\"==a.localName){var o=at(a).assignedNodes;o&&o.length&&zr(e,t,o)}else t.push(n[r])}function Yr(e,t){t.__shady_native_dispatchEvent(new Event(\"slotchange\")),(t=at(t)).assignedSlot&&Yr(e,t.assignedSlot)}function Wr(e){e.i=e.i||[],e.g=e.g||[],e.h=e.h||{}}function Kr(e){if(e.i&&e.i.length){for(var t,n=e.i,r=0;r<n.length;r++){var a=n[r];wr(a);var o=a.__shady_parentNode;wr(o),(o=at(o)).ia=(o.ia||0)+1,o=Zr(a),e.h[o]?((t=t||{})[o]=!0,e.h[o].push(a)):e.h[o]=[a],e.g.push(a)}if(t)for(var i in t)e.h[i]=qr(e.h[i]);e.i=[]}}function Zr(e){var t=e.name||e.getAttribute(\"name\")||\"__catchall\";return e.Qa=t}function qr(e){return e.sort((function(e,t){e=xr(e);for(var n=xr(t),r=0;r<e.length;r++){t=e[r];var a=n[r];if(t!==a)return(e=gt(t.__shady_parentNode)).indexOf(t)-e.indexOf(a)}}))}function Xr(e){return Kr(e),!(!e.g||!e.g.length)}if(Hr.prototype._renderSelf=function(){var e=Ur;if(Ur=!0,this.Y=!1,this.g){Kr(this);for(var t,n=0;n<this.g.length;n++){var r=at(t=this.g[n]),a=r.assignedNodes;if(r.assignedNodes=[],r.aa=[],r.Ga=a)for(r=0;r<a.length;r++){var o=at(a[r]);o.ua=o.assignedSlot,o.assignedSlot===t&&(o.assignedSlot=null)}}for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)Vr(this,n);for(n=0;n<this.g.length;n++){if(!(a=at(t=this.g[n])).assignedNodes.length)for(r=t.__shady_firstChild;r;r=r.__shady_nextSibling)Vr(this,r,t);if((r=(r=at(t.__shady_parentNode))&&r.root)&&(Xr(r)||r.Y)&&r._renderSelf(),zr(this,a.aa,a.assignedNodes),r=a.Ga){for(o=0;o<r.length;o++)at(r[o]).ua=null;a.Ga=null,r.length>a.assignedNodes.length&&(a.xa=!0)}a.xa&&(a.xa=!1,Yr(this,t))}for(t=this.g,n=[],a=0;a<t.length;a++)(o=at(r=t[a].__shady_parentNode))&&o.root||!(0>n.indexOf(r))||n.push(r);for(t=0;t<n.length;t++){for(a=(o=n[t])===this?this.host:o,r=[],o=o.__shady_firstChild;o;o=o.__shady_nextSibling)if(\"slot\"==o.localName)for(var i=at(o).aa,l=0;l<i.length;l++)r.push(i[l]);else r.push(o);o=St(a),i=kn(r,r.length,o,o.length);for(var s=l=0,u=void 0;l<i.length&&(u=i[l]);l++){for(var c=0,d=void 0;c<u.ga.length&&(d=u.ga[c]);c++)d.__shady_native_parentNode===a&&a.__shady_native_removeChild(d),o.splice(u.index+s,1);s-=u.na}for(s=0,u=void 0;s<i.length&&(u=i[s]);s++)for(l=o[u.index],c=u.index;c<u.index+u.na;c++)d=r[c],a.__shady_native_insertBefore(d,l),o.splice(c,0,d)}}if(!ot.preferPerformance&&!this.Fa)for(n=this.host.__shady_firstChild;n;n=n.__shady_nextSibling)t=at(n),n.__shady_native_parentNode!==this.host||\"slot\"!==n.localName&&t.assignedSlot||this.host.__shady_native_removeChild(n);this.Fa=!0,Ur=e,Mr&&Mr()},function(e){e.__proto__=DocumentFragment.prototype,kr(e,\"__shady_\"),kr(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:\"#document-fragment\",configurable:!0},nodeValue:{value:null,configurable:!0}}),[\"localName\",\"namespaceURI\",\"prefix\"].forEach((function(t){Object.defineProperty(e,t,{value:void 0,configurable:!0})})),[\"ownerDocument\",\"baseURI\",\"isConnected\"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return this.host[t]},configurable:!0})}))}(Hr.prototype),window.customElements&&window.customElements.define&&ot.ya&&!ot.preferPerformance){var Jr=new Map;Mr=function(){var e=[];Jr.forEach((function(t,n){e.push([n,t])})),Jr.clear();for(var t=0;t<e.length;t++){var n=e[t][0];e[t][1]?n.__shadydom_connectedCallback():n.__shadydom_disconnectedCallback()}},Ur&&document.addEventListener(\"readystatechange\",(function(){Ur=!1,Mr()}),{once:!0});var Qr=window.customElements.define,$r=function(e,t){var n=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;Qr.call(window.customElements,e,function(e,t,n){var r=0,a=\"__isConnected\"+r++;return(t||n)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){Ur?Jr.set(this,!0):this[a]||(this[a]=!0,t&&t.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){Ur?this.isConnected||Jr.set(this,!1):this[a]&&(this[a]=!1,n&&n.call(this))}),e}(t,n,r)),t.prototype.connectedCallback=n,t.prototype.disconnectedCallback=r};window.customElements.define=$r,Object.defineProperty(window.CustomElementRegistry.prototype,\"define\",{value:$r,configurable:!0})}function ea(e){if(ut(e=e.__shady_getRootNode()))return e}function ta(e){this.node=e}function na(e){Object.defineProperty(ta.prototype,e,{get:function(){return this.node[\"__shady_\"+e]},set:function(t){this.node[\"__shady_\"+e]=t},configurable:!0})}(e=ta.prototype).addEventListener=function(e,t,n){return this.node.__shady_addEventListener(e,t,n)},e.removeEventListener=function(e,t,n){return this.node.__shady_removeEventListener(e,t,n)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,t){return this.node.__shady_insertBefore(e,t)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,t){return this.node.__shady_replaceChild(e,t)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,t){this.node.__shady_setAttribute(e,t)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.hasAttribute=function(e){return this.node.__shady_native_hasAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,t){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,t)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.elementsFromPoint=function(e,t){return this.node.__shady_elementsFromPoint(e,t)},e.elementFromPoint=function(e,t){return this.node.__shady_elementFromPoint(e,t)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,t){return this.node.__shady_querySelectorAll(e,t)},e.assignedNodes=function(e){if(\"slot\"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_append.apply(this.node,c(t))},e.prepend=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_prepend.apply(this.node,c(t))},e.after=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_after.apply(this.node,c(t))},e.before=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_before.apply(this.node,c(t))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.node.__shady_replaceWith.apply(this.node,c(t))},i.Object.defineProperties(ta.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(ut(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(ut(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),Dn.forEach((function(e){return na(e)})),Ln.forEach((function(e){return na(e)}));var ra=new WeakMap;function aa(e){if(ut(e)||e instanceof ta)return e;var t=ra.get(e);return t||(t=new ta(e),ra.set(e,t)),t}if(ot.ya){var oa=ot.H?function(e){return e}:function(e){return on(e),an(e),e},ia={inUse:ot.ya,patch:oa,isShadyRoot:ut,enqueue:Lt,flush:wt,flushInitial:function(e){!e.Fa&&e.Y&&Gr(e)},settings:ot,filterMutations:function(e,t){var n=t.getRootNode();return e.map((function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if(t=[].slice.call(e.addedNodes).filter((function(e){return n===e.getRootNode()})),t.length)return e=Object.create(e),Object.defineProperty(e,\"addedNodes\",{value:t,configurable:!0}),e}else if(t)return e})).filter((function(e){return e}))},observeChildren:function(e,t){var n=rt(e);n.ea||(n.ea=new Pt),n.ea.oa.add(t);var r=n.ea;return{Ra:t,X:r,Sa:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.X;t&&(t.oa.delete(e.Ra),t.oa.size||(rt(e.Sa).ea=null))},deferConnectionCallbacks:ot.deferConnectionCallbacks,preferPerformance:ot.preferPerformance,handlesDynamicScoping:!0,wrap:ot.J?aa:oa,wrapIfNeeded:!0===ot.J?aa:function(e){return e},Wrapper:ta,composedPath:function(e){return e.__composedPath||(e.__composedPath=_n(e.target,!0)),e.__composedPath},noPatch:ot.J,patchOnDemand:ot.Aa,nativeMethods:Gt,nativeTree:Vt,patchElementProto:Ar};window.ShadyDOM=ia,function(){var e=[\"dispatchEvent\",\"addEventListener\",\"removeEventListener\"];window.EventTarget?(Wt(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&Wt(Window.prototype,e)):(Wt(Node.prototype,e),Wt(Window.prototype,e)),Bt?Wt(Node.prototype,\"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent\".split(\" \")):Yt(Node.prototype,{parentNode:{get:function(){return Kt.currentNode=this,Kt.parentNode()}},firstChild:{get:function(){return Kt.currentNode=this,Kt.firstChild()}},lastChild:{get:function(){return Kt.currentNode=this,Kt.lastChild()}},previousSibling:{get:function(){return Kt.currentNode=this,Kt.previousSibling()}},nextSibling:{get:function(){return Kt.currentNode=this,Kt.nextSibling()}},childNodes:{get:function(){var e=[];Kt.currentNode=this;for(var t=Kt.firstChild();t;)e.push(t),t=Kt.nextSibling();return e}},parentElement:{get:function(){return Zt.currentNode=this,Zt.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,t=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),n=\"\";e=t.nextNode();)n+=e.nodeValue;return n;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=\"\"),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Xt(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(e),void 0);break;default:this.nodeValue=e}}}}),Wt(Node.prototype,\"appendChild insertBefore removeChild replaceChild cloneNode contains\".split(\" \")),Wt(HTMLElement.prototype,[\"parentElement\",\"contains\"]),e={firstElementChild:{get:function(){return Zt.currentNode=this,Zt.firstChild()}},lastElementChild:{get:function(){return Zt.currentNode=this,Zt.lastChild()}},children:{get:function(){var e=[];Zt.currentNode=this;for(var t=Zt.firstChild();t;)e.push(t),t=Zt.nextSibling();return vt(e)}},childElementCount:{get:function(){return this.children?this.children.length:0}}},Bt?(Wt(Element.prototype,Jt),Wt(Element.prototype,[\"previousElementSibling\",\"nextElementSibling\",\"innerHTML\",\"className\"]),Wt(HTMLElement.prototype,[\"children\",\"innerHTML\",\"className\"])):(Yt(Element.prototype,e),Yt(Element.prototype,{previousElementSibling:{get:function(){return Zt.currentNode=this,Zt.previousSibling()}},nextElementSibling:{get:function(){return Zt.currentNode=this,Zt.nextSibling()}},innerHTML:{get:function(){return jt(this,St)},set:function(e){var t=\"template\"===this.localName?this.content:this;Xt(t);var n=this.localName||\"div\";for((n=this.namespaceURI&&this.namespaceURI!==qt.namespaceURI?qt.createElementNS(this.namespaceURI,n):qt.createElement(n)).innerHTML=e,e=\"template\"===this.localName?n.content:n;n=e.__shady_native_firstChild;)t.__shady_native_insertBefore(n,void 0)}},className:{get:function(){return this.getAttribute(\"class\")||\"\"},set:function(e){this.setAttribute(\"class\",e)}}})),Wt(Element.prototype,\"setAttribute getAttribute hasAttribute removeAttribute focus blur\".split(\" \")),Wt(Element.prototype,Qt),Wt(HTMLElement.prototype,[\"focus\",\"blur\"]),window.HTMLTemplateElement&&Wt(window.HTMLTemplateElement.prototype,[\"innerHTML\"]),Bt?Wt(DocumentFragment.prototype,Jt):Yt(DocumentFragment.prototype,e),Wt(DocumentFragment.prototype,Qt),Bt?(Wt(Document.prototype,Jt),Wt(Document.prototype,[\"activeElement\"])):Yt(Document.prototype,e),Wt(Document.prototype,[\"importNode\",\"getElementById\",\"elementFromPoint\",lt()]),Wt(Document.prototype,Qt)}(),Nr(\"__shady_\"),Object.defineProperty(document,\"_activeElement\",Cr.activeElement),It(Window.prototype,gr,\"__shady_\"),ot.J?ot.Aa&&It(Element.prototype,cr):(Nr(),function(){if(!sn&&Object.getOwnPropertyDescriptor(Event.prototype,\"isTrusted\")){var e=function(){var e=new MouseEvent(\"click\",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(e)};Element.prototype.click?Element.prototype.click=e:HTMLElement.prototype.click&&(HTMLElement.prototype.click=e)}}()),function(){for(var e in En)window.__shady_native_addEventListener(e,(function(e){e.__target||(Nn(e),Sn(e))}),!0)}(),window.Event=An,window.CustomEvent=Tn,window.MouseEvent=bn,window.ShadowRoot=Hr}var la=window.Document.prototype.createElement,sa=window.Document.prototype.createElementNS,ua=window.Document.prototype.importNode,ca=window.Document.prototype.prepend,da=window.Document.prototype.append,fa=window.DocumentFragment.prototype.prepend,pa=window.DocumentFragment.prototype.append,_a=window.Node.prototype.cloneNode,ma=window.Node.prototype.appendChild,ha=window.Node.prototype.insertBefore,Ea=window.Node.prototype.removeChild,Ca=window.Node.prototype.replaceChild,va=Object.getOwnPropertyDescriptor(window.Node.prototype,\"textContent\"),Sa=window.Element.prototype.attachShadow,ga=Object.getOwnPropertyDescriptor(window.Element.prototype,\"innerHTML\"),ya=window.Element.prototype.getAttribute,Ia=window.Element.prototype.setAttribute,Oa=window.Element.prototype.removeAttribute,Ra=window.Element.prototype.getAttributeNS,Na=window.Element.prototype.setAttributeNS,Aa=window.Element.prototype.removeAttributeNS,Ta=window.Element.prototype.insertAdjacentElement,ba=window.Element.prototype.insertAdjacentHTML,Da=window.Element.prototype.prepend,La=window.Element.prototype.append,wa=window.Element.prototype.before,Pa=window.Element.prototype.after,ka=window.Element.prototype.replaceWith,Ma=window.Element.prototype.remove,Fa=window.HTMLElement,Ua=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,\"innerHTML\"),xa=window.HTMLElement.prototype.insertAdjacentElement,Ha=window.HTMLElement.prototype.insertAdjacentHTML,ja=new Set;function Ba(e){var t=ja.has(e);return e=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(e),!t&&e}\"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph\".split(\" \").forEach((function(e){return ja.add(e)}));var Ga=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function Va(e){var t=e.isConnected;if(void 0!==t)return t;if(Ga(e))return!0;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function za(e){var t=e.children;if(t)return Array.prototype.slice.call(t);for(t=[],e=e.firstChild;e;e=e.nextSibling)e.nodeType===Node.ELEMENT_NODE&&t.push(e);return t}function Ya(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function Wa(e,t,n){for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;t(a);var o=a.localName;if(\"link\"===o&&\"import\"===a.getAttribute(\"rel\")){if(r=a.import,void 0===n&&(n=new Set),r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)Wa(r,t,n);r=Ya(e,a);continue}if(\"template\"===o){r=Ya(e,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)Wa(a,t,n)}r=r.firstChild?r.firstChild:Ya(e,r)}}function Ka(){var e=!(null==mo||!mo.noDocumentConstructionObserver),t=!(null==mo||!mo.shadyDomFastWalk);this.ca=[],this.g=[],this.W=!1,this.shadyDomFastWalk=t,this.nb=!e}function Za(e,t,n,r){var a=window.ShadyDOM;if(e.shadyDomFastWalk&&a&&a.inUse){if(t.nodeType===Node.ELEMENT_NODE&&n(t),t.querySelectorAll)for(e=a.nativeMethods.querySelectorAll.call(t,\"*\"),t=0;t<e.length;t++)n(e[t])}else Wa(t,n,r)}function qa(e,t){e.W&&Za(e,t,(function(t){return Xa(e,t)}))}function Xa(e,t){if(e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t);for(n=0;n<e.g.length;n++)e.g[n](t)}}function Ja(e,t){var n=[];for(Za(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):eo(e,r)}}function Qa(e,t){var n=[];for(Za(e,t,(function(e){return n.push(e)})),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function $a(e,t,n){var r=(n=void 0===n?{}:n).ob,a=n.upgrade||function(t){return eo(e,t)},o=[];for(Za(e,t,(function(t){if(e.W&&Xa(e,t),\"link\"===t.localName&&\"import\"===t.getAttribute(\"rel\")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_registry=document.__CE_registry),n&&\"complete\"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener(\"load\",(function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var o=new Set;r&&(r.forEach((function(e){return o.add(e)})),o.delete(n)),$a(e,n,{ob:o,upgrade:a})}}))}else o.push(t)}),r),t=0;t<o.length;t++)a(o[t])}function eo(e,t){try{var n=t.ownerDocument,r=n.__CE_registry,a=r&&(n.defaultView||n.__CE_isImportDocument)?co(r,t.localName):void 0;if(a&&void 0===t.__CE_state){a.constructionStack.push(t);try{try{if(new a.constructorFunction!==t)throw Error(\"The custom element constructor did not produce the element being upgraded.\")}finally{a.constructionStack.pop()}}catch(s){throw t.__CE_state=2,s}if(t.__CE_state=1,t.__CE_definition=a,a.attributeChangedCallback&&t.hasAttributes()){var o=a.observedAttributes;for(a=0;a<o.length;a++){var i=o[a],l=t.getAttribute(i);null!==l&&e.attributeChangedCallback(t,i,null,l,null)}}Va(t)&&e.connectedCallback(t)}}catch(s){no(s)}}function to(e,t,n,r){var a=t.__CE_registry;if(a&&(null===r||\"http://www.w3.org/1999/xhtml\"===r)&&(a=co(a,n)))try{var o=new a.constructorFunction;if(void 0===o.__CE_state||void 0===o.__CE_definition)throw Error(\"Failed to construct '\"+n+\"': The returned value was not constructed with the HTMLElement constructor.\");if(\"http://www.w3.org/1999/xhtml\"!==o.namespaceURI)throw Error(\"Failed to construct '\"+n+\"': The constructed element's namespace must be the HTML namespace.\");if(o.hasAttributes())throw Error(\"Failed to construct '\"+n+\"': The constructed element must not have any attributes.\");if(null!==o.firstChild)throw Error(\"Failed to construct '\"+n+\"': The constructed element must not have any children.\");if(null!==o.parentNode)throw Error(\"Failed to construct '\"+n+\"': The constructed element must not have a parent node.\");if(o.ownerDocument!==t)throw Error(\"Failed to construct '\"+n+\"': The constructed element's owner document is incorrect.\");if(o.localName!==n)throw Error(\"Failed to construct '\"+n+\"': The constructed element's local name is incorrect.\");return o}catch(i){return no(i),t=null===r?la.call(t,n):sa.call(t,r,n),Object.setPrototypeOf(t,HTMLUnknownElement.prototype),t.__CE_state=2,t.__CE_definition=void 0,Xa(e,t),t}return Xa(e,t=null===r?la.call(t,n):sa.call(t,r,n)),t}function no(e){var t=e.message,n=e.sourceURL||e.fileName||\"\",r=e.line||e.lineNumber||0,a=e.column||e.columnNumber||0,o=void 0;void 0===ErrorEvent.prototype.initErrorEvent?o=new ErrorEvent(\"error\",{cancelable:!0,message:t,filename:n,lineno:r,colno:a,error:e}):((o=document.createEvent(\"ErrorEvent\")).initErrorEvent(\"error\",!1,!0,t,n,r),o.preventDefault=function(){Object.defineProperty(this,\"defaultPrevented\",{configurable:!0,get:function(){return!0}})}),void 0===o.error&&Object.defineProperty(o,\"error\",{configurable:!0,enumerable:!0,get:function(){return e}}),window.dispatchEvent(o),o.defaultPrevented||console.error(e)}function ro(){var e=this;this.I=void 0,this.Ha=new Promise((function(t){e.g=t}))}function ao(e){var t=document;this.X=void 0,this.S=e,this.g=t,$a(this.S,this.g),\"loading\"===this.g.readyState&&(this.X=new MutationObserver(this.h.bind(this)),this.X.observe(this.g,{childList:!0,subtree:!0}))}function oo(e){e.X&&e.X.disconnect()}function io(e){this.ka=new Map,this.la=new Map,this.Ca=new Map,this.ta=!1,this.wa=new Map,this.ja=function(e){return e()},this.V=!1,this.ma=[],this.S=e,this.Da=e.nb?new ao(e):void 0}function lo(e,t){if(!Ba(t))throw new SyntaxError(\"The element name '\"+t+\"' is not valid.\");if(co(e,t))throw Error(\"A custom element with name '\"+t+\"' has already been defined.\");if(e.ta)throw Error(\"A custom element is already being defined.\")}function so(e,t,n){var r;e.ta=!0;try{var a=n.prototype;if(!(a instanceof Object))throw new TypeError(\"The custom element constructor's prototype is not an object.\");var o=function(e){var t=a[e];if(void 0!==t&&!(t instanceof Function))throw Error(\"The '\"+e+\"' callback must be a function.\");return t},i=o(\"connectedCallback\"),l=o(\"disconnectedCallback\"),s=o(\"adoptedCallback\"),u=(r=o(\"attributeChangedCallback\"))&&n.observedAttributes||[]}catch(c){throw c}finally{e.ta=!1}return n={localName:t,constructorFunction:n,connectedCallback:i,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:r,observedAttributes:u,constructionStack:[]},e.la.set(t,n),e.Ca.set(n.constructorFunction,n),n}function uo(e){if(!1!==e.V){e.V=!1;for(var t=[],n=e.ma,r=new Map,a=0;a<n.length;a++)r.set(n[a],[]);for($a(e.S,document,{upgrade:function(n){if(void 0===n.__CE_state){var a=n.localName,o=r.get(a);o?o.push(n):e.la.has(a)&&t.push(n)}}}),a=0;a<t.length;a++)eo(e.S,t[a]);for(a=0;a<n.length;a++){for(var o=n[a],i=r.get(o),l=0;l<i.length;l++)eo(e.S,i[l]);(o=e.wa.get(o))&&o.resolve(void 0)}n.length=0}}function co(e,t){var n=e.la.get(t);if(n)return n;if(n=e.ka.get(t)){e.ka.delete(t);try{return so(e,t,n())}catch(U){no(U)}}}function fo(e,t,n){function r(t){return function(n){for(var r=[],a=0;a<arguments.length;++a)r[a]=arguments[a];a=[];for(var o=[],i=0;i<r.length;i++){var l=r[i];if(l instanceof Element&&Va(l)&&o.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)a.push(l);else a.push(l)}for(t.apply(this,r),r=0;r<o.length;r++)Qa(e,o[r]);if(Va(this))for(r=0;r<a.length;r++)(o=a[r])instanceof Element&&Ja(e,o)}}void 0!==n.prepend&&(t.prepend=r(n.prepend)),void 0!==n.append&&(t.append=r(n.append))}function po(e){function t(t,n){Object.defineProperty(t,\"innerHTML\",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,a=void 0;if(Va(this)&&(a=[],Za(e,this,(function(e){e!==r&&a.push(e)}))),n.set.call(this,t),a)for(var o=0;o<a.length;o++){var i=a[o];1===i.__CE_state&&e.disconnectedCallback(i)}return this.ownerDocument.__CE_registry?$a(e,this):qa(e,this),t}})}function n(t,n){t.insertAdjacentElement=function(t,r){var a=Va(r);return t=n.call(this,t,r),a&&Qa(e,r),Va(t)&&Ja(e,r),t}}function r(t,n){function r(t,n){for(var r=[];t!==n;t=t.nextSibling)r.push(t);for(n=0;n<r.length;n++)$a(e,r[n])}t.insertAdjacentHTML=function(e,t){if(\"beforebegin\"===(e=e.toLowerCase())){var a=this.previousSibling;n.call(this,e,t),r(a||this.parentNode.firstChild,this)}else if(\"afterbegin\"===e)a=this.firstChild,n.call(this,e,t),r(this.firstChild,a);else if(\"beforeend\"===e)a=this.lastChild,n.call(this,e,t),r(a||this.firstChild,null);else{if(\"afterend\"!==e)throw new SyntaxError(\"The value provided (\"+String(e)+\") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.\");a=this.nextSibling,n.call(this,e,t),r(this.nextSibling,a)}}}Sa&&(Element.prototype.attachShadow=function(t){if(t=Sa.call(this,t),e.W&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.ca.length;n++)e.ca[n](t)}return this.__CE_shadowRoot=t}),ga&&ga.get?t(Element.prototype,ga):Ua&&Ua.get?t(HTMLElement.prototype,Ua):function(e,t){e.W=!0,e.g.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return _a.call(this,!0).innerHTML},set:function(e){var t=\"template\"===this.localName,n=t?this.content:this,r=sa.call(document,this.namespaceURI,this.localName);for(r.innerHTML=e;0<n.childNodes.length;)Ea.call(n,n.childNodes[0]);for(e=t?r.content:r;0<e.childNodes.length;)ma.call(n,e.childNodes[0])}})})),Element.prototype.setAttribute=function(t,n){if(1!==this.__CE_state)return Ia.call(this,t,n);var r=ya.call(this,t);Ia.call(this,t,n),n=ya.call(this,t),e.attributeChangedCallback(this,t,r,n,null)},Element.prototype.setAttributeNS=function(t,n,r){if(1!==this.__CE_state)return Na.call(this,t,n,r);var a=Ra.call(this,t,n);Na.call(this,t,n,r),r=Ra.call(this,t,n),e.attributeChangedCallback(this,n,a,r,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return Oa.call(this,t);var n=ya.call(this,t);Oa.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)},Element.prototype.removeAttributeNS=function(t,n){if(1!==this.__CE_state)return Aa.call(this,t,n);var r=Ra.call(this,t,n);Aa.call(this,t,n);var a=Ra.call(this,t,n);r!==a&&e.attributeChangedCallback(this,n,r,a,t)},xa?n(HTMLElement.prototype,xa):Ta&&n(Element.prototype,Ta),Ha?r(HTMLElement.prototype,Ha):ba&&r(Element.prototype,ba),fo(e,Element.prototype,{prepend:Da,append:La}),function(e){function t(t){return function(n){for(var r=[],a=0;a<arguments.length;++a)r[a]=arguments[a];a=[];for(var o=[],i=0;i<r.length;i++){var l=r[i];if(l instanceof Element&&Va(l)&&o.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)a.push(l);else a.push(l)}for(t.apply(this,r),r=0;r<o.length;r++)Qa(e,o[r]);if(Va(this))for(r=0;r<a.length;r++)(o=a[r])instanceof Element&&Ja(e,o)}}var n=Element.prototype;void 0!==wa&&(n.before=t(wa)),void 0!==Pa&&(n.after=t(Pa)),void 0!==ka&&(n.replaceWith=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var a=[],o=0;o<n.length;o++){var i=n[o];if(i instanceof Element&&Va(i)&&a.push(i),i instanceof DocumentFragment)for(i=i.firstChild;i;i=i.nextSibling)r.push(i);else r.push(i)}for(o=Va(this),ka.apply(this,n),n=0;n<a.length;n++)Qa(e,a[n]);if(o)for(Qa(e,this),n=0;n<r.length;n++)(a=r[n])instanceof Element&&Ja(e,a)}),void 0!==Ma&&(n.remove=function(){var t=Va(this);Ma.call(this),t&&Qa(e,this)})}(e)}Ka.prototype.connectedCallback=function(e){var t=e.__CE_definition;if(t.connectedCallback)try{t.connectedCallback.call(e)}catch(F){no(F)}},Ka.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;if(t.disconnectedCallback)try{t.disconnectedCallback.call(e)}catch(F){no(F)}},Ka.prototype.attributeChangedCallback=function(e,t,n,r,a){var o=e.__CE_definition;if(o.attributeChangedCallback&&-1<o.observedAttributes.indexOf(t))try{o.attributeChangedCallback.call(e,t,n,r,a)}catch(i){no(i)}},ro.prototype.resolve=function(e){if(this.I)throw Error(\"Already resolved.\");this.I=e,this.g(e)},ao.prototype.h=function(e){var t=this.g.readyState;for(\"interactive\"!==t&&\"complete\"!==t||oo(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)$a(this.S,n[r])},(e=io.prototype).eb=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError(\"Custom element constructor getters must be functions.\");lo(this,e),this.ka.set(e,t),this.ma.push(e),this.V||(this.V=!0,this.ja((function(){return uo(n)})))},e.define=function(e,t){var n=this;if(!(t instanceof Function))throw new TypeError(\"Custom element constructors must be functions.\");lo(this,e),so(this,e,t),this.ma.push(e),this.V||(this.V=!0,this.ja((function(){return uo(n)})))},e.upgrade=function(e){$a(this.S,e)},e.get=function(e){if(e=co(this,e))return e.constructorFunction},e.whenDefined=function(e){if(!Ba(e))return Promise.reject(new SyntaxError(\"'\"+e+\"' is not a valid custom element name.\"));var t=this.wa.get(e);if(t)return t.Ha;t=new ro,this.wa.set(e,t);var n=this.la.has(e)||this.ka.has(e);return e=-1===this.ma.indexOf(e),n&&e&&t.resolve(void 0),t.Ha},e.polyfillWrapFlushCallback=function(e){this.Da&&oo(this.Da);var t=this.ja;this.ja=function(n){return e((function(){return t(n)}))}},window.CustomElementRegistry=io,io.prototype.define=io.prototype.define,io.prototype.upgrade=io.prototype.upgrade,io.prototype.get=io.prototype.get,io.prototype.whenDefined=io.prototype.whenDefined,io.prototype.polyfillDefineLazy=io.prototype.eb,io.prototype.polyfillWrapFlushCallback=io.prototype.polyfillWrapFlushCallback;var _o={};var mo=window.customElements;function ho(){var e=new Ka;!function(e){function t(){var t=this.constructor,n=document.__CE_registry.Ca.get(t);if(!n)throw Error(\"Failed to construct a custom element: The constructor was not registered with `customElements`.\");var r=n.constructionStack;if(0===r.length)return r=la.call(document,n.localName),Object.setPrototypeOf(r,t.prototype),r.__CE_state=1,r.__CE_definition=n,Xa(e,r),r;var a=r.length-1,o=r[a];if(o===_o)throw Error(\"Failed to construct '\"+n.localName+\"': This element was already constructed.\");return r[a]=_o,Object.setPrototypeOf(o,t.prototype),Xa(e,o),o}t.prototype=Fa.prototype,Object.defineProperty(HTMLElement.prototype,\"constructor\",{writable:!0,configurable:!0,enumerable:!1,value:t}),window.HTMLElement=t}(e),function(e){Document.prototype.createElement=function(t){return to(e,this,t,null)},Document.prototype.importNode=function(t,n){return t=ua.call(this,t,!!n),this.__CE_registry?$a(e,t):qa(e,t),t},Document.prototype.createElementNS=function(t,n){return to(e,this,n,t)},fo(e,Document.prototype,{prepend:ca,append:da})}(e),fo(e,DocumentFragment.prototype,{prepend:fa,append:pa}),function(e){function t(t,n){Object.defineProperty(t,\"textContent\",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var a=this.childNodes,o=a.length;if(0<o&&Va(this)){r=Array(o);for(var i=0;i<o;i++)r[i]=a[i]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)Qa(e,r[t])}}})}Node.prototype.insertBefore=function(t,n){if(t instanceof DocumentFragment){var r=za(t);if(t=ha.call(this,t,n),Va(this))for(n=0;n<r.length;n++)Ja(e,r[n]);return t}return r=t instanceof Element&&Va(t),n=ha.call(this,t,n),r&&Qa(e,t),Va(this)&&Ja(e,t),n},Node.prototype.appendChild=function(t){if(t instanceof DocumentFragment){var n=za(t);if(t=ma.call(this,t),Va(this))for(var r=0;r<n.length;r++)Ja(e,n[r]);return t}return n=t instanceof Element&&Va(t),r=ma.call(this,t),n&&Qa(e,t),Va(this)&&Ja(e,t),r},Node.prototype.cloneNode=function(t){return t=_a.call(this,!!t),this.ownerDocument.__CE_registry?$a(e,t):qa(e,t),t},Node.prototype.removeChild=function(t){var n=t instanceof Element&&Va(t),r=Ea.call(this,t);return n&&Qa(e,t),r},Node.prototype.replaceChild=function(t,n){if(t instanceof DocumentFragment){var r=za(t);if(t=Ca.call(this,t,n),Va(this))for(Qa(e,n),n=0;n<r.length;n++)Ja(e,r[n]);return t}r=t instanceof Element&&Va(t);var a=Ca.call(this,t,n),o=Va(this);return o&&Qa(e,n),r&&Qa(e,t),o&&Ja(e,t),a},va&&va.get?t(Node.prototype,va):function(e,t){e.W=!0,e.ca.push(t)}(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join(\"\")},set:function(e){for(;this.firstChild;)Ea.call(this,this.firstChild);null!=e&&\"\"!==e&&ma.call(this,document.createTextNode(e))}})}))}(e),po(e),e=new io(e),document.__CE_registry=e,Object.defineProperty(window,\"customElements\",{configurable:!0,enumerable:!0,value:e})}function Eo(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText=\"\",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=\"\"}function Co(e){var t=e=e.replace(Ao,\"\").replace(To,\"\"),n=new Eo;n.start=0,n.end=t.length;for(var r=n,a=0,o=t.length;a<o;a++)if(\"{\"===t[a]){r.rules||(r.rules=[]);var i=r,l=i.rules[i.rules.length-1]||null;(r=new Eo).start=a+1,r.parent=i,r.previous=l,i.rules.push(r)}else\"}\"===t[a]&&(r.end=a+1,r=r.parent||n);return vo(n,e)}function vo(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=function(e){return e.replace(/\\\\([0-9a-f]{1,6})\\s/gi,(function(e,t){for(t=6-(e=t).length;t--;)e=\"0\"+e;return\"\\\\\"+e}))}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1)),n=(n=n.replace(ko,\" \")).substring(n.lastIndexOf(\";\")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf(\"@\"),e.atRule?0===n.indexOf(\"@media\")?e.type=Ro:n.match(Po)&&(e.type=Oo,e.keyframesName=e.selector.split(ko).pop()):e.type=0===n.indexOf(\"--\")?No:Io),n=e.rules)for(var r=0,a=n.length,o=void 0;r<a&&(o=n[r]);r++)vo(o,t);return e}function So(e,t,n){n=void 0===n?\"\":n;var r=\"\";if(e.cssText||e.rules){var a,o=e.rules;if((a=o)&&(a=!((a=o[0])&&a.selector&&0===a.selector.indexOf(\"--\"))),a){a=0;for(var i=o.length,l=void 0;a<i&&(l=o[a]);a++)r=So(l,t,r)}else t?t=e.cssText:t=(t=(t=e.cssText).replace(bo,\"\").replace(Do,\"\")).replace(Lo,\"\").replace(wo,\"\"),(r=t.trim())&&(r=\" \"+r+\"\\n\")}return r&&(e.selector&&(n+=e.selector+\" {\\n\"),n+=r,e.selector&&(n+=\"}\\n\\n\")),n}mo&&!mo.forcePolyfill&&\"function\"==typeof mo.define&&\"function\"==typeof mo.get||ho(),window.__CE_installPolyfill=ho;var go,yo,Io=1,Oo=7,Ro=4,No=1e3,Ao=/\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//gim,To=/@import[^;]*;/gim,bo=/(?:^[^;\\-\\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\\n]|$)/gim,Do=/(?:^[^;\\-\\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\\n]|$)?/gim,Lo=/@apply\\s*\\(?[^);]*\\)?\\s*(?:[;\\n]|$)?/gim,wo=/[^;:]*?:[^;]*?var\\([^;]*\\)(?:[;\\n]|$)?/gim,Po=/^@[^\\s]*keyframes/,ko=/\\s+/g,Mo=!(window.ShadyDOM&&window.ShadyDOM.inUse);function Fo(e){go=(!e||!e.shimcssproperties)&&(Mo||!(navigator.userAgent.match(/AppleWebKit\\/601|Edge\\/15/)||!window.CSS||!CSS.supports||!CSS.supports(\"box-shadow\",\"0 0 0 var(--foo)\")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(yo=window.ShadyCSS.cssBuild);var Uo=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?go=window.ShadyCSS.nativeCss:window.ShadyCSS?(Fo(window.ShadyCSS),window.ShadyCSS=void 0):Fo(window.WebComponents&&window.WebComponents.flags);var xo=go,Ho=/(?:^|[;\\s{]\\s*)(--[\\w-]*?)\\s*:\\s*(?:((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};{])+)|\\{([^}]*)\\}(?:(?=[;\\s}])|$))/gi,jo=/(?:^|\\W+)@apply\\s*\\(?([^);\\n]*)\\)?/gi,Bo=/(--[\\w-]+)\\s*([:,;)]|$)/gi,Go=/(animation\\s*:)|(animation-name\\s*:)/,Vo=/@media\\s(.*)/,zo=/\\{[^}]*\\}/g,Yo=new Set;function Wo(e,t){return e?(\"string\"==typeof e&&(e=Co(e)),t&&qo(e,t),So(e,xo)):\"\"}function Ko(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=Co(e.textContent)),e.__cssRules||null}function Zo(e){return!!e.parent&&e.parent.type===Oo}function qo(e,t,n,r){if(e){var a=!1,o=e.type;if(r&&o===Ro){var i=e.selector.match(Vo);i&&(window.matchMedia(i[1]).matches||(a=!0))}if(o===Io?t(e):n&&o===Oo?n(e):o===No&&(a=!0),(e=e.rules)&&!a)for(a=0,o=e.length,i=void 0;a<o&&(i=e[a]);a++)qo(i,t,n,r)}}function Xo(e,t,n,r){var a=document.createElement(\"style\");return t&&a.setAttribute(\"scope\",t),a.textContent=e,$o(a,n,r),a}var Jo=null;function Qo(e){e=document.createComment(\" Shady DOM styles for \"+e+\" \");var t=document.head;return t.insertBefore(e,(Jo?Jo.nextSibling:null)||t.firstChild),Jo=e}function $o(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),Jo?e.compareDocumentPosition(Jo)===Node.DOCUMENT_POSITION_PRECEDING&&(Jo=e):Jo=e}function ei(e,t){for(var n=0,r=e.length;t<r;t++)if(\"(\"===e[t])n++;else if(\")\"===e[t]&&0==--n)return t;return-1}function ti(e,t){var n=e.indexOf(\"var(\");if(-1===n)return t(e,\"\",\"\",\"\");var r=ei(e,n+3),a=e.substring(n+4,r);return n=e.substring(0,n),e=ti(e.substring(r+1),t),-1===(r=a.indexOf(\",\"))?t(n,a.trim(),\"\",e):t(n,a.substring(0,r).trim(),a.substring(r+1).trim(),e)}function ni(e,t){Mo?e.setAttribute(\"class\",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,\"class\",t)}var ri=window.ShadyDOM&&window.ShadyDOM.wrap||function(e){return e};function ai(e){var t=e.localName,n=\"\";return t?-1<t.indexOf(\"-\")||(n=t,t=e.getAttribute&&e.getAttribute(\"is\")||\"\"):(t=e.is,n=e.extends),{is:t,ha:n}}function oi(e){for(var t=[],n=\"\",r=0;0<=r&&r<e.length;r++)if(\"(\"===e[r]){var a=ei(e,r);n+=e.slice(r,a+1),r=a}else\",\"===e[r]?(t.push(n),n=\"\"):n+=e[r];return n&&t.push(n),t}function ii(e){if(void 0!==yo)return yo;if(void 0===e.__cssBuild){var t=e.getAttribute(\"css-build\");if(t)e.__cssBuild=t;else{if(\"\"!==(t=(t=\"template\"===e.localName?e.content.firstChild:e.firstChild)instanceof Comment&&\"css-build\"===(t=t.textContent.trim().split(\":\"))[0]?t[1]:\"\")){var n=\"template\"===e.localName?e.content.firstChild:e.firstChild;n.parentNode.removeChild(n)}e.__cssBuild=t}}return e.__cssBuild||\"\"}function li(e){return!(\"\"===(e=void 0===e?\"\":e)||!xo)&&(Mo?\"shadow\"===e:\"shady\"===e)}function si(){}function ui(e,t,n){var r;if(t.nodeType===Node.ELEMENT_NODE&&n(t),r=\"template\"===t.localName?(t.content||t._content||t).childNodes:t.children||t.childNodes)for(t=0;t<r.length;t++)ui(e,r[t],n)}function ci(e,t,n){if(t)if(e.classList)n?(e.classList.remove(\"style-scope\"),e.classList.remove(t)):(e.classList.add(\"style-scope\"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(\"class\");n?r&&ni(e,t=r.replace(\"style-scope\",\"\").replace(t,\"\")):ni(e,(r?r+\" \":\"\")+\"style-scope \"+t)}}function di(e,t,n){ui(Ai,e,(function(e){ci(e,t,!0),ci(e,n)}))}function fi(e,t){ui(Ai,e,(function(e){ci(e,t||\"\",!0)}))}function pi(e,t,n,r,a){var o=Ai;return\"\"===(a=void 0===a?\"\":a)&&(Mo||\"shady\"===(void 0===r?\"\":r)?a=Wo(t,n):a=function(e,t,n,r,a){var o=_i(n,r);return n=n?\".\"+n:\"\",Wo(t,(function(t){t.i||(t.selector=t.F=mi(e,t,e.h,n,o),t.i=!0),a&&a(t,n,o)}))}(o,t,(e=ai(e)).is,e.ha,n)+\"\\n\\n\"),a.trim()}function _i(e,t){return t?\"[is=\"+e+\"]\":e}function mi(e,t,n,r,a){var o=oi(t.selector);if(!Zo(t)){t=0;for(var i=o.length,l=void 0;t<i&&(l=o[t]);t++)o[t]=n.call(e,l,r,a)}return o.filter((function(e){return!!e})).join(\",\")}function hi(e){return e.replace(vi,(function(e,t,n){return-1<n.indexOf(\"+\")?n=n.replace(/\\+/g,\"___\"):-1<n.indexOf(\"___\")&&(n=n.replace(/___/g,\"+\")),\":\"+t+\"(\"+n+\")\"}))}function Ei(e,t){e=e.split(/(\\[.+?\\])/);for(var n=[],r=0;r<e.length;r++)if(1==r%2)n.push(e[r]);else{var a=e[r];\"\"===a&&r===e.length-1||((a=a.split(\":\"))[0]+=t,n.push(a.join(\":\")))}return n.join(\"\")}function Ci(e){\":root\"===e.selector&&(e.selector=\"html\")}si.prototype.h=function(e,t,n){var r=!1;e=e.trim();var a=vi.test(e);a&&(e=hi(e=e.replace(vi,(function(e,t,n){return\":\"+t+\"(\"+n.replace(/\\s/g,\"\")+\")\"}))));var o=Ni.test(e);if(o){var i=function(e){for(var t,n=[];t=e.match(Ni);){var r=t.index,a=ei(e,r);if(-1===a)throw Error(t.input+\" selector missing ')'\");t=e.slice(r,a+1),e=e.replace(t,\"\"),n.push(t)}return{Ba:e,matches:n}}(e);e=i.Ba,i=i.matches}return e=(e=e.replace(yi,\":host $1\")).replace(Si,(function(e,a,o){return r||(e=function(e,t,n,r){var a=e.indexOf(\"::slotted\");if(0<=e.indexOf(\":host\")?e=function(e,t){var n=e.match(Ii);return(n=n&&n[2].trim()||\"\")?n[0].match(gi)?e.replace(Ii,(function(e,n,r){return t+r})):n.split(gi)[0]===t?n:\"should_not_match\":e.replace(\":host\",t)}(e,r):0!==a&&(e=n?Ei(e,n):e),n=!1,0<=a&&(t=\"\",n=!0),n){var o=!0;n&&(e=e.replace(Oi,(function(e,t){return\" > \"+t})))}return{value:e,Ua:t,stop:o}}(o,a,t,n),r=r||e.stop,a=e.Ua,o=e.value),a+o})),o&&(e=function(e,t){var n=e.split(\"\");return t.reduce((function(e,t,r){return e+t+n[r+1]}),n[0])}(e,i)),a&&(e=hi(e)),e.replace(Ri,(function(e,t,n,r){return'[dir=\"'+n+'\"] '+t+r+\", \"+t+'[dir=\"'+n+'\"]'+r}))},si.prototype.i=function(e){return e.match(\":host\")?\"\":e.match(\"::slotted\")?this.h(e,\":not(.style-scope)\"):Ei(e.trim(),\":not(.style-scope)\")},i.Object.defineProperties(si.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return\"style-scope\"}}});var vi=/:(nth[-\\w]+)\\(([^)]+)\\)/,Si=/(^|[\\s>+~]+)((?:\\[.+?\\]|[^\\s>+~=[])+)/g,gi=/[[.:#*]/,yi=/^(::slotted)/,Ii=/(:host)(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))/,Oi=/(?:::slotted)(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))/,Ri=/(.*):dir\\((?:(ltr|rtl))\\)(.*)/,Ni=/:(?:matches|any|-(?:webkit|moz)-any)/,Ai=new si;function Ti(e,t,n,r,a){this.M=e||null,this.h=t||null,this.za=n||[],this.K=null,this.cssBuild=a||\"\",this.ha=r||\"\",this.g=this.L=this.R=null}function bi(e){return e?e.__styleInfo:null}function Di(e,t){return e.__styleInfo=t}function Li(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)}Ti.prototype.i=function(){return this.M},Ti.prototype._getStyleRules=Ti.prototype.i;var wi=/:host\\s*>\\s*/,Pi=navigator.userAgent.match(\"Trident\");function ki(){}function Mi(e){if(!e.D){var t={},n={};Fi(e,n)&&(t.P=n,e.rules=null),t.cssText=e.parsedCssText.replace(zo,\"\").replace(Ho,\"\"),e.D=t}}function Fi(e,t){var n=e.D;if(!n){n=e.parsedCssText;for(var r;e=Ho.exec(n);)\"inherit\"===(r=(e[2]||e[3]).trim())&&\"unset\"===r||(t[e[1].trim()]=r),r=!0;return r}if(n.P)return Object.assign(t,n.P),!0}function Ui(e,t,n){return t&&(t=0<=t.indexOf(\";\")?xi(e,t,n):ti(t,(function(t,r,a,o){return r?((r=Ui(e,n[r],n))&&\"initial\"!==r?\"apply-shim-inherit\"===r&&(r=\"inherit\"):r=Ui(e,n[a]||a,n)||a,t+(r||\"\")+o):t+o}))),t&&t.trim()||\"\"}function xi(e,t,n){t=t.split(\";\");for(var r,a,o=0;o<t.length;o++)if(r=t[o]){if(jo.lastIndex=0,a=jo.exec(r))r=Ui(e,n[a[1]],n);else if(-1!==(a=r.indexOf(\":\"))){var i=r.substring(a);i=Ui(e,i=i.trim(),n)||i,r=r.substring(0,a)+i}t[o]=r&&r.lastIndexOf(\";\")===r.length-1?r.slice(0,-1):r||\"\"}return t.join(\";\")}function Hi(e,t,n){var r={},a={};return qo(t,(function(t){!function(e,t,n,r){if(t.D||Mi(t),t.D.P){var a=ai(e);e=a.is,a=a.ha,a=e?_i(e,a):\"html\";var o=t.parsedSelector,i=!!o.match(wi)||\"html\"===a&&-1<o.indexOf(\"html\"),l=0===o.indexOf(\":host\")&&!i;\"shady\"===n&&(l=!(i=o===a+\" > *.\"+a||-1!==o.indexOf(\"html\"))&&0===o.indexOf(a)),(i||l)&&(n=a,l&&(t.F||(t.F=mi(Ai,t,Ai.h,e?\".\"+e:\"\",a)),n=t.F||a),i&&\"html\"===a&&(n=t.F||t.O),r({Ba:n,ab:l,qb:i}))}}(e,t,n,(function(n){Li.call(e._element||e,n.Ba)&&(n.ab?Fi(t,r):Fi(t,a))}))}),null,!0),{hb:a,Za:r}}function ji(e,t,n,r){var a=ai(t),o=_i(a.is,a.ha),i=new RegExp(\"(?:^|[^.#[:])\"+(t.extends?\"\\\\\"+o.slice(0,-1)+\"\\\\]\":o)+\"($|[.:[\\\\s>+~])\"),l=bi(t);a=l.M,l=l.cssBuild;var s=function(e,t){e=e.h;var n={};if(!Mo&&e)for(var r=0,a=e[r];r<e.length;a=e[++r]){var o=a,i=t;o.u=new RegExp(\"\\\\b\"+o.keyframesName+\"(?!\\\\B|-)\",\"g\"),o.g=o.keyframesName+\"-\"+i,o.F=o.F||o.selector,o.selector=o.F.replace(o.keyframesName,o.g),n[a.keyframesName]=Bi(a)}return n}(a,r);return pi(t,a,(function(t){var a=\"\";if(t.D||Mi(t),t.D.cssText&&(a=xi(e,t.D.cssText,n)),t.cssText=a,!Mo&&!Zo(t)&&t.cssText){var l=a=t.cssText;if(null==t.Ia&&(t.Ia=Go.test(a)),t.Ia)if(null==t.pa)for(var u in t.pa=[],s)a!==(l=(l=s[u])(a))&&(a=l,t.pa.push(u));else{for(u=0;u<t.pa.length;++u)a=(l=s[t.pa[u]])(a);l=a}t.cssText=l,t.F=t.F||t.selector,a=\".\"+r,l=0;for(var c=(u=oi(t.F)).length,d=void 0;l<c&&(d=u[l]);l++)u[l]=d.match(i)?d.replace(o,a):a+\" \"+d;t.selector=u.join(\",\")}}),l)}function Bi(e){return function(t){return t.replace(e.u,e.g)}}function Gi(e,t){var n=Vi,r=Ko(e);e.textContent=Wo(r,(function(e){var r=e.cssText=e.parsedCssText;e.D&&e.D.cssText&&(r=r.replace(bo,\"\").replace(Do,\"\"),e.cssText=xi(n,r,t))}))}i.Object.defineProperties(ki.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return\"x-scope\"}}});var Vi=new ki,zi={},Yi=window.customElements;if(Yi&&!Mo&&!Uo){var Wi=Yi.define;Yi.define=function(e,t,n){zi[e]||(zi[e]=Qo(e)),Wi.call(Yi,e,t,n)}}function Ki(){this.cache={}}function Zi(){}Ki.prototype.store=function(e,t,n,r){var a=this.cache[e]||[];a.push({P:t,styleElement:n,L:r}),100<a.length&&a.shift(),this.cache[e]=a};var qi=new RegExp(Ai.g+\"\\\\s*([^\\\\s]*)\");function Xi(e){return(e=(e.classList&&e.classList.value?e.classList.value:e.getAttribute(\"class\")||\"\").match(qi))?e[1]:\"\"}function Ji(e){var t=ri(e).getRootNode();return t===e||t===e.ownerDocument?\"\":(e=t.host)?ai(e).is:\"\"}function Qi(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var a=n.addedNodes[r];if(a.nodeType===Node.ELEMENT_NODE){var o=a.getRootNode(),i=Xi(a);if(i&&o===a.ownerDocument&&(\"style\"!==a.localName&&\"template\"!==a.localName||\"\"===ii(a)))fi(a,i);else if(o instanceof ShadowRoot)for((o=Ji(a))!==i&&di(a,i,o),a=window.ShadyDOM.nativeMethods.querySelectorAll.call(a,\":not(.\"+Ai.g+\")\"),i=0;i<a.length;i++){var l=Ji(o=a[i]);l&&ci(o,l)}}}}}if(!(Mo||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var $i=new MutationObserver(Qi),el=function(e){$i.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)el(document);else{var tl=function(){el(document.body)};window.HTMLImports?window.HTMLImports.whenReady(tl):requestAnimationFrame((function(){if(\"loading\"===document.readyState){document.addEventListener(\"readystatechange\",(function e(){tl(),document.removeEventListener(\"readystatechange\",e)}))}else tl()}))}Zi=function(){Qi($i.takeRecords())}}var nl={},rl=Promise.resolve();function al(e){(e=nl[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function ol(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var il={},ll=new Ki;function sl(){this.da={},this.i=document.documentElement;var e=new Eo;e.rules=[],this.u=Di(this.i,new Ti(e)),this.O=!1,this.g=this.h=null}function ul(e){var t=ai(e),n=t.is;t=t.ha;var r=zi[n]||null,a=nl[n];if(a)return Di(e,t=new Ti(n=a._styleAst,r,a.g,t,a=ii(a))),t}function cl(e){if(!e.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){e.h=window.ShadyCSS.ApplyShim,e.h.invalidCallback=al;var t=!0}else t=!1;return function(e){!e.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(e.g=window.ShadyCSS.CustomStyleInterface,e.g.transformCallback=function(t){e.Ma(t)},e.g.validateCallback=function(){requestAnimationFrame((function(){(e.g.enqueued||e.O)&&e.flushCustomStyles()}))})}(e),t}function dl(e,t,n){var r=ai(t).is;if(n.K){var a,o=n.K;for(a in o)null===a?t.style.removeProperty(a):t.style.setProperty(a,o[a])}!(o=nl[r])&&t!==e.i||o&&\"\"!==ii(o)||!o||!o._style||ol(o)||((ol(o)||o._applyShimValidatingVersion!==o._applyShimNextVersion)&&(cl(e),e.h&&e.h.transformRules(o._styleAst,r),o._style.textContent=pi(t,n.M),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e._validating||(e._validating=!0,rl.then((function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e._validating=!1})))}(o)),Mo&&(e=t.shadowRoot)&&(e=e.querySelector(\"style\"))&&(e.textContent=pi(t,n.M)),n.M=o._styleAst)}function fl(e,t){return(t=ri(t).getRootNode().host)?bi(t)||ul(t)?t:fl(e,t):e.i}function pl(e,t,n){var r=fl(e,t),a=bi(r),o=a.R;for(var i in r===e.i||o||(pl(e,r,a),o=a.R),e=Object.create(o||null),r=Hi(t,n.M,n.cssBuild),t=function(e,t){var n={},r=[];return qo(e,(function(e){e.D||Mi(e);var a=e.F||e.parsedSelector;t&&e.D.P&&a&&Li.call(t,a)&&(Fi(e,n),e=e.index,a=parseInt(e/32,10),r[a]=(r[a]||0)|1<<e%32)}),null,!0),{P:n,key:r}}(a.M,t).P,Object.assign(e,r.Za,t,r.hb),t=n.K)((a=t[i])||0===a)&&(e[i]=a);for(i=Vi,t=Object.getOwnPropertyNames(e),a=0;a<t.length;a++)e[r=t[a]]=Ui(i,e[r],e);n.R=e}(e=sl.prototype).flush=function(){Zi()},e.Xa=function(e){return Ko(e)},e.lb=function(e){return Wo(e)},e.prepareTemplate=function(e,t,n){this.prepareTemplateDom(e,t),this.prepareTemplateStyles(e,t,n)},e.prepareTemplateStyles=function(e,t,n){if(!e._prepared&&!Uo){Mo||zi[t]||(zi[t]=Qo(t)),e._prepared=!0,e.name=t,e.extends=n,nl[t]=e;var r=ii(e),a=li(r);n={is:t,extends:n};for(var o=[],i=e.content.querySelectorAll(\"style\"),l=0;l<i.length;l++){var s=i[l];if(s.hasAttribute(\"shady-unscoped\")){if(!Mo){var u=s.textContent;if(!Yo.has(u)){Yo.add(u);var c=document.createElement(\"style\");c.setAttribute(\"shady-unscoped\",\"\"),c.textContent=u,document.head.appendChild(c)}s.parentNode.removeChild(s)}}else o.push(s.textContent),s.parentNode.removeChild(s)}o=o.join(\"\").trim()+(il[t]||\"\"),cl(this),a||((i=!r)&&(i=jo.test(o)||Ho.test(o),jo.lastIndex=0,Ho.lastIndex=0),l=Co(o),i&&xo&&this.h&&this.h.transformRules(l,t),e._styleAst=l),i=[],xo||(i=function(e){var t={},n=[],r=0;for(var a in qo(e,(function(e){Mi(e),e.index=r++,e=e.D.cssText;for(var n;n=Bo.exec(e);){var a=n[1];\":\"!==n[2]&&(t[a]=!0)}}),(function(e){n.push(e)})),e.h=n,e=[],t)e.push(a);return e}(e._styleAst)),i.length&&!xo||(l=Mo?e.content:null,t=zi[t]||null,r=(r=pi(n,e._styleAst,null,r,a?o:\"\")).length?Xo(r,n.is,l,t):null,e._style=r),e.g=i}},e.fb=function(e,t){il[t]=e.join(\" \")},e.prepareTemplateDom=function(e,t){if(!Uo){var n=ii(e);Mo||\"shady\"===n||e._domPrepared||(e._domPrepared=!0,function(e,t){ui(Ai,e,(function(e){ci(e,t||\"\")}))}(e.content,t))}},e.flushCustomStyles=function(){if(!Uo){var e=cl(this);if(this.g){var t=this.g.processStyles();if((e||this.g.enqueued)&&!li(this.u.cssBuild)){if(xo){if(!this.u.cssBuild)for(e=0;e<t.length;e++){var n=this.g.getStyleForCustomStyle(t[e]);if(n&&xo&&this.h){var r=Ko(n);cl(this),this.h.transformRules(r),n.textContent=Wo(r)}}}else{for(function(e,t){t=t.map((function(t){return e.g.getStyleForCustomStyle(t)})).filter((function(e){return!!e})),t.sort((function(e,t){return(e=t.compareDocumentPosition(e))&Node.DOCUMENT_POSITION_FOLLOWING?1:e&Node.DOCUMENT_POSITION_PRECEDING?-1:0})),e.u.M.rules=t.map((function(e){return Ko(e)}))}(this,t),pl(this,this.i,this.u),e=0;e<t.length;e++)(n=this.g.getStyleForCustomStyle(t[e]))&&Gi(n,this.u.R);this.O&&this.styleDocument()}this.g.enqueued=!1}}}},e.styleElement=function(e,t){if(Uo){if(t){bi(e)||Di(e,new Ti(null));var n=bi(e);n.K=n.K||{},Object.assign(n.K,t),dl(this,e,n)}}else if(n=bi(e)||ul(e))if(e!==this.i&&(this.O=!0),t&&(n.K=n.K||{},Object.assign(n.K,t)),xo)dl(this,e,n);else if(this.flush(),pl(this,e,n),n.za&&n.za.length){var r;t=ai(e).is;e:{if(r=ll.cache[t])for(var a=r.length-1;0<=a;a--){var o=r[a];t:{for(var i=n.za,l=0;l<i.length;l++){var s=i[l];if(o.P[s]!==n.R[s]){i=!1;break t}}i=!0}if(i){r=o;break e}}r=void 0}i=r?r.styleElement:null,a=n.L,(o=r&&r.L)||(o=t+\"-\"+(o=this.da[t]=(this.da[t]||0)+1)),n.L=o,o=n.L,l=Vi,l=i?i.textContent||\"\":ji(l,e,n.R,o);var u=(s=bi(e)).g;u&&!Mo&&u!==i&&(u._useCount--,0>=u._useCount&&u.parentNode&&u.parentNode.removeChild(u)),Mo?s.g?(s.g.textContent=l,i=s.g):l&&(i=Xo(l,o,e.shadowRoot,s.h)):i?i.parentNode||(Pi&&-1<l.indexOf(\"@media\")&&(i.textContent=l),$o(i,null,s.h)):l&&(i=Xo(l,o,null,s.h)),i&&(i._useCount=i._useCount||0,s.g!=i&&i._useCount++,s.g=i),o=i,Mo||(i=n.L,s=l=e.getAttribute(\"class\")||\"\",a&&(s=l.replace(new RegExp(\"\\\\s*x-scope\\\\s*\"+a+\"\\\\s*\",\"g\"),\" \")),l!==(s+=(s?\" \":\"\")+\"x-scope \"+i)&&ni(e,s)),r||ll.store(t,n.R,o,n.L)}},e.styleDocument=function(e){this.styleSubtree(this.i,e)},e.styleSubtree=function(e,t){var n=ri(e),r=n.shadowRoot,a=e===this.i;if((r||a)&&this.styleElement(e,t),e=a?n:r)for(e=Array.from(e.querySelectorAll(\"*\")).filter((function(e){return ri(e).shadowRoot})),t=0;t<e.length;t++)this.styleSubtree(e[t])},e.Ma=function(e){var t=this,n=ii(e);if(n!==this.u.cssBuild&&(this.u.cssBuild=n),!li(n)){var r=Ko(e);qo(r,(function(e){if(Mo)Ci(e);else{var r=Ai;e.selector=e.parsedSelector,Ci(e),e.selector=e.F=mi(r,e,r.i,void 0,void 0)}xo&&\"\"===n&&(cl(t),t.h&&t.h.transformRule(e))})),xo?e.textContent=Wo(r):this.u.M.rules.push(r)}},e.getComputedStyleValue=function(e,t){var n;return xo||(n=(bi(e)||bi(fl(this,e))).R[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():\"\"},e.kb=function(e,t){var n=ri(e).getRootNode();if(t=t?(\"string\"==typeof t?t:String(t)).split(/\\s/):[],!(n=n.host&&n.host.localName)){var r=e.getAttribute(\"class\");if(r){r=r.split(/\\s/);for(var a=0;a<r.length;a++)if(r[a]===Ai.g){n=r[a+1];break}}}n&&t.push(Ai.g,n),xo||(n=bi(e))&&n.L&&t.push(Vi.g,n.L),ni(e,t.join(\" \"))},e.Ta=function(e){return bi(e)},e.jb=function(e,t){ci(e,t)},e.mb=function(e,t){ci(e,t,!0)},e.ib=function(e){return Ji(e)},e.Va=function(e){return Xi(e)},sl.prototype.flush=sl.prototype.flush,sl.prototype.prepareTemplate=sl.prototype.prepareTemplate,sl.prototype.styleElement=sl.prototype.styleElement,sl.prototype.styleDocument=sl.prototype.styleDocument,sl.prototype.styleSubtree=sl.prototype.styleSubtree,sl.prototype.getComputedStyleValue=sl.prototype.getComputedStyleValue,sl.prototype.setElementClass=sl.prototype.kb,sl.prototype._styleInfoForNode=sl.prototype.Ta,sl.prototype.transformCustomStyleForDocument=sl.prototype.Ma,sl.prototype.getStyleAst=sl.prototype.Xa,sl.prototype.styleAstToString=sl.prototype.lb,sl.prototype.flushCustomStyles=sl.prototype.flushCustomStyles,sl.prototype.scopeNode=sl.prototype.jb,sl.prototype.unscopeNode=sl.prototype.mb,sl.prototype.scopeForNode=sl.prototype.ib,sl.prototype.currentScopeForNode=sl.prototype.Va,sl.prototype.prepareAdoptedCssText=sl.prototype.fb,Object.defineProperties(sl.prototype,{nativeShadow:{get:function(){return Mo}},nativeCss:{get:function(){return xo}}});var _l,ml,hl=new sl;window.ShadyCSS&&(_l=window.ShadyCSS.ApplyShim,ml=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:hl,prepareTemplate:function(e,t,n){hl.flushCustomStyles(),hl.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){hl.prepareTemplateDom(e,t)},prepareTemplateStyles:function(e,t,n){hl.flushCustomStyles(),hl.prepareTemplateStyles(e,t,n)},styleSubtree:function(e,t){hl.flushCustomStyles(),hl.styleSubtree(e,t)},styleElement:function(e){hl.flushCustomStyles(),hl.styleElement(e)},styleDocument:function(e){hl.flushCustomStyles(),hl.styleDocument(e)},flushCustomStyles:function(){hl.flushCustomStyles()},getComputedStyleValue:function(e,t){return hl.getComputedStyleValue(e,t)},nativeCss:xo,nativeShadow:Mo,cssBuild:yo,disableRuntime:Uo},_l&&(window.ShadyCSS.ApplyShim=_l),ml&&(window.ShadyCSS.CustomStyleInterface=ml),function(e){function t(e){return\"\"==e&&(o.call(this),this.m=!0),e.toLowerCase()}function n(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function r(e){var t=e.charCodeAt(0);return 32<t&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,i){function l(e){E.push(e)}var s=a||\"scheme start\",p=0,_=\"\",m=!1,h=!1,E=[];e:for(;(null!=e[p-1]||0==p)&&!this.m;){var C=e[p];switch(s){case\"scheme start\":if(!C||!d.test(C)){if(a){l(\"Invalid scheme.\");break e}_=\"\",s=\"no scheme\";continue}_+=C.toLowerCase(),s=\"scheme\";break;case\"scheme\":if(C&&f.test(C))_+=C.toLowerCase();else{if(\":\"!=C){if(a){null!=C&&l(\"Code point not allowed in scheme: \"+C);break e}_=\"\",p=0,s=\"no scheme\";continue}if(this.l=_,_=\"\",a)break e;void 0!==u[this.l]&&(this.G=!0),s=\"file\"==this.l?\"relative\":this.G&&i&&i.l==this.l?\"relative or authority\":this.G?\"authority first slash\":\"scheme data\"}break;case\"scheme data\":\"?\"==C?(this.A=\"?\",s=\"query\"):\"#\"==C?(this.C=\"#\",s=\"fragment\"):null!=C&&\"\\t\"!=C&&\"\\n\"!=C&&\"\\r\"!=C&&(this.va+=n(C));break;case\"no scheme\":if(i&&void 0!==u[i.l]){s=\"relative\";continue}l(\"Missing scheme.\"),o.call(this),this.m=!0;break;case\"relative or authority\":if(\"/\"!=C||\"/\"!=e[p+1]){l(\"Expected /, got: \"+C),s=\"relative\";continue}s=\"authority ignore slashes\";break;case\"relative\":if(this.G=!0,\"file\"!=this.l&&(this.l=i.l),null==C){this.o=i.o,this.v=i.v,this.s=i.s.slice(),this.A=i.A,this.B=i.B,this.j=i.j;break e}if(\"/\"==C||\"\\\\\"==C)\"\\\\\"==C&&l(\"\\\\ is an invalid code point.\"),s=\"relative slash\";else if(\"?\"==C)this.o=i.o,this.v=i.v,this.s=i.s.slice(),this.A=\"?\",this.B=i.B,this.j=i.j,s=\"query\";else{if(\"#\"!=C){s=e[p+1];var v=e[p+2];(\"file\"!=this.l||!d.test(C)||\":\"!=s&&\"|\"!=s||null!=v&&\"/\"!=v&&\"\\\\\"!=v&&\"?\"!=v&&\"#\"!=v)&&(this.o=i.o,this.v=i.v,this.B=i.B,this.j=i.j,this.s=i.s.slice(),this.s.pop()),s=\"relative path\";continue}this.o=i.o,this.v=i.v,this.s=i.s.slice(),this.A=i.A,this.C=\"#\",this.B=i.B,this.j=i.j,s=\"fragment\"}break;case\"relative slash\":if(\"/\"!=C&&\"\\\\\"!=C){\"file\"!=this.l&&(this.o=i.o,this.v=i.v,this.B=i.B,this.j=i.j),s=\"relative path\";continue}\"\\\\\"==C&&l(\"\\\\ is an invalid code point.\"),s=\"file\"==this.l?\"file host\":\"authority ignore slashes\";break;case\"authority first slash\":if(\"/\"!=C){l(\"Expected '/', got: \"+C),s=\"authority ignore slashes\";continue}s=\"authority second slash\";break;case\"authority second slash\":if(s=\"authority ignore slashes\",\"/\"!=C){l(\"Expected '/', got: \"+C);continue}break;case\"authority ignore slashes\":if(\"/\"!=C&&\"\\\\\"!=C){s=\"authority\";continue}l(\"Expected authority, got: \"+C);break;case\"authority\":if(\"@\"==C){for(m&&(l(\"@ already seen.\"),_+=\"%40\"),m=!0,C=0;C<_.length;C++)\"\\t\"==(v=_[C])||\"\\n\"==v||\"\\r\"==v?l(\"Invalid whitespace in authority.\"):\":\"==v&&null===this.j?this.j=\"\":(v=n(v),null!==this.j?this.j+=v:this.B+=v);_=\"\"}else{if(null==C||\"/\"==C||\"\\\\\"==C||\"?\"==C||\"#\"==C){p-=_.length,_=\"\",s=\"host\";continue}_+=C}break;case\"file host\":if(null==C||\"/\"==C||\"\\\\\"==C||\"?\"==C||\"#\"==C){2!=_.length||!d.test(_[0])||\":\"!=_[1]&&\"|\"!=_[1]?(0!=_.length&&(this.o=t.call(this,_),_=\"\"),s=\"relative path start\"):s=\"relative path\";continue}\"\\t\"==C||\"\\n\"==C||\"\\r\"==C?l(\"Invalid whitespace in file host.\"):_+=C;break;case\"host\":case\"hostname\":if(\":\"!=C||h){if(null==C||\"/\"==C||\"\\\\\"==C||\"?\"==C||\"#\"==C){if(this.o=t.call(this,_),_=\"\",s=\"relative path start\",a)break e;continue}\"\\t\"!=C&&\"\\n\"!=C&&\"\\r\"!=C?(\"[\"==C?h=!0:\"]\"==C&&(h=!1),_+=C):l(\"Invalid code point in host/hostname: \"+C)}else if(this.o=t.call(this,_),_=\"\",s=\"port\",\"hostname\"==a)break e;break;case\"port\":if(/[0-9]/.test(C))_+=C;else{if(null==C||\"/\"==C||\"\\\\\"==C||\"?\"==C||\"#\"==C||a){if(\"\"!=_&&((_=parseInt(_,10))!=u[this.l]&&(this.v=_+\"\"),_=\"\"),a)break e;s=\"relative path start\";continue}\"\\t\"==C||\"\\n\"==C||\"\\r\"==C?l(\"Invalid code point in port: \"+C):(o.call(this),this.m=!0)}break;case\"relative path start\":if(\"\\\\\"==C&&l(\"'\\\\' not allowed in path.\"),s=\"relative path\",\"/\"!=C&&\"\\\\\"!=C)continue;break;case\"relative path\":null!=C&&\"/\"!=C&&\"\\\\\"!=C&&(a||\"?\"!=C&&\"#\"!=C)?\"\\t\"!=C&&\"\\n\"!=C&&\"\\r\"!=C&&(_+=n(C)):(\"\\\\\"==C&&l(\"\\\\ not allowed in relative path.\"),(v=c[_.toLowerCase()])&&(_=v),\"..\"==_?(this.s.pop(),\"/\"!=C&&\"\\\\\"!=C&&this.s.push(\"\")):\".\"==_&&\"/\"!=C&&\"\\\\\"!=C?this.s.push(\"\"):\".\"!=_&&(\"file\"==this.l&&0==this.s.length&&2==_.length&&d.test(_[0])&&\"|\"==_[1]&&(_=_[0]+\":\"),this.s.push(_)),_=\"\",\"?\"==C?(this.A=\"?\",s=\"query\"):\"#\"==C&&(this.C=\"#\",s=\"fragment\"));break;case\"query\":a||\"#\"!=C?null!=C&&\"\\t\"!=C&&\"\\n\"!=C&&\"\\r\"!=C&&(this.A+=r(C)):(this.C=\"#\",s=\"fragment\");break;case\"fragment\":null!=C&&\"\\t\"!=C&&\"\\n\"!=C&&\"\\r\"!=C&&(this.C+=C)}p++}}function o(){this.B=this.va=this.l=\"\",this.j=null,this.v=this.o=\"\",this.s=[],this.C=this.A=\"\",this.G=this.m=!1}function i(e,t){void 0===t||t instanceof i||(t=new i(String(t))),this.g=e,o.call(this),a.call(this,this.g.replace(/^[ \\t\\r\\n\\f]+|[ \\t\\r\\n\\f]+$/g,\"\"),null,t)}var l=!1;try{var s=new URL(\"b\",\"http://a\");s.pathname=\"c%20d\",l=\"http://a/c%20d\"===s.href}catch(_){}if(!l){var u=Object.create(null);u.ftp=21,u.file=0,u.gopher=70,u.http=80,u.https=443,u.ws=80,u.wss=443;var c=Object.create(null);c[\"%2e\"]=\".\",c[\".%2e\"]=\"..\",c[\"%2e.\"]=\"..\",c[\"%2e%2e\"]=\"..\";var d=/[a-zA-Z]/,f=/[a-zA-Z0-9+\\-.]/;i.prototype={toString:function(){return this.href},get href(){if(this.m)return this.g;var e=\"\";return\"\"==this.B&&null==this.j||(e=this.B+(null!=this.j?\":\"+this.j:\"\")+\"@\"),this.protocol+(this.G?\"//\"+e+this.host:\"\")+this.pathname+this.A+this.C},set href(e){o.call(this),a.call(this,e)},get protocol(){return this.l+\":\"},set protocol(e){this.m||a.call(this,e+\":\",\"scheme start\")},get host(){return this.m?\"\":this.v?this.o+\":\"+this.v:this.o},set host(e){!this.m&&this.G&&a.call(this,e,\"host\")},get hostname(){return this.o},set hostname(e){!this.m&&this.G&&a.call(this,e,\"hostname\")},get port(){return this.v},set port(e){!this.m&&this.G&&a.call(this,e,\"port\")},get pathname(){return this.m?\"\":this.G?\"/\"+this.s.join(\"/\"):this.va},set pathname(e){!this.m&&this.G&&(this.s=[],a.call(this,e,\"relative path start\"))},get search(){return this.m||!this.A||\"?\"==this.A?\"\":this.A},set search(e){!this.m&&this.G&&(this.A=\"?\",\"?\"==e[0]&&(e=e.slice(1)),a.call(this,e,\"query\"))},get hash(){return this.m||!this.C||\"#\"==this.C?\"\":this.C},set hash(e){this.m||(e?(this.C=\"#\",\"#\"==e[0]&&(e=e.slice(1)),a.call(this,e,\"fragment\")):this.C=\"\")},get origin(){var e;if(this.m||!this.l)return\"\";switch(this.l){case\"data\":case\"file\":case\"javascript\":case\"mailto\":return\"null\"}return(e=this.host)?this.l+\"://\"+e:\"\"}};var p=e.URL;p&&(i.createObjectURL=function(e){return p.createObjectURL.apply(p,arguments)},i.revokeObjectURL=function(e){p.revokeObjectURL(e)}),e.URL=i}}(window);var El=window.customElements,Cl=!1,vl=null;function Sl(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),vl&&vl(),Cl=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent(\"WebComponentsReady\",{bubbles:!0}))}El.polyfillWrapFlushCallback&&El.polyfillWrapFlushCallback((function(e){vl=e,Cl&&e()})),\"complete\"!==document.readyState?(window.addEventListener(\"load\",Sl),window.addEventListener(\"DOMContentLoaded\",(function(){window.removeEventListener(\"load\",Sl),Sl()}))):Sl()}).call(this)},\"./node_modules/css-loader/dist/runtime/api.js\":function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=\"\",r=void 0!==t[5];return t[4]&&(n+=\"@supports (\".concat(t[4],\") {\")),t[2]&&(n+=\"@media \".concat(t[2],\" {\")),r&&(n+=\"@layer\".concat(t[5].length>0?\" \".concat(t[5]):\"\",\" {\")),n+=e(t),r&&(n+=\"}\"),t[2]&&(n+=\"}\"),t[4]&&(n+=\"}\"),n})).join(\"\")},t.i=function(e,n,r,a,o){\"string\"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&i[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]=\"@layer\".concat(c[5].length>0?\" \".concat(c[5]):\"\",\" {\").concat(c[1],\"}\")),c[5]=o),n&&(c[2]?(c[1]=\"@media \".concat(c[2],\" {\").concat(c[1],\"}\"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]=\"@supports (\".concat(c[4],\") {\").concat(c[1],\"}\"),c[4]=a):c[4]=\"\".concat(a)),t.push(c))}},t}},\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\":function(e){e.exports=function(e){return e[1]}},\"./node_modules/localize-react/dist/localize-react.js\":function(e,t,n){var r,a,o,i;function l(e){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},l(e)}i=function(e,t){var n=\"default\"in t?t.default:t;function r(e){return(r=\"function\"==typeof Symbol&&\"symbol\"==l(Symbol.iterator)?function(e){return l(e)}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":l(e)})(e)}var a={},o=/{{([^{]+[^}])}}/g;function i(e,t){if(!t)return e;if(0===Object.keys(t).length)return e;var n,r,a,i=e.match(o);return i&&0!==i.length?(n=i,r=t,a=Object.keys(r),n.map((function(e){var t=Array.prototype.slice.call(e,2,-2).join(\"\"),n=a.find((function(e){return e===t}));return n?[e,r[n]]:(console.warn(\"[LOCALIZE-REACT] Looks like template is being used, but no value passed for \",e),[e,e])}))).reduce((function(e,t){var n=new RegExp(t[0],\"gi\");return e.replace(n,t[1])}),e):e}var s=n.createContext(),u=s.Consumer;function c(){return t.useContext(s)}e.LocalizationConsumer=u,e.LocalizationContext=s,e.LocalizationProvider=function(e){var o=e.children,l=e.disableCache,u=e.locale,c=e.translations,d=void 0===c?{}:c,f=function(e,t){if(!e)return null;if(\"object\"===r(t[e]))return e;var n=e.toLowerCase().replace(/-/g,\"_\");if(\"object\"===r(t[n]))return n;var a=n.split(\"_\")[0];return\"object\"===r(t[a])?a:(console.warn(\"[LOCALIZE-REACT]: There are no translations for specified locale\",e),e)}(u,d),p=f?d[f]:d;function _(e,t,n){if(!p||!e)return n||e;var r=\"string\"==typeof n?n:e,a=p[e];if(\"string\"==typeof a)return t?i(a,t):a;var o=e.split(\".\");if(1===o.length)return i(r,t);for(var l=p[o[0]],s=1;s<o.length;s++)l=l&&l[o[s]];return i(\"string\"==typeof l?l:r,t)}t.useEffect((function(){a={}}),[u,d]);var m,h=l?_:(m=_,function(e,t,n){var r=2<arguments.length&&void 0!==n?n:\"\",o=t?JSON.stringify(t,null,\"\")+e+r:e+r;if(a[o])return a[o];var i=m(e,t,r);return a[o]=i});return n.createElement(s.Provider,{value:{locale:u,translate:h,translations:d}},o)},e.Message=function(e){var t=e.defaultMessage,n=e.descriptor,r=e.values;return(0,c().translate)(n,r,t)},e.useLocalize=c,Object.defineProperty(e,\"__esModule\",{value:!0})},\"object\"==l(t)?i(t,n(\"./node_modules/react/index.js\")):(a=[t,n(\"./node_modules/react/index.js\")],void 0===(o=\"function\"==typeof(r=i)?r.apply(t,a):r)||(e.exports=o))},\"./node_modules/react-device-detect/dist/lib.js\":function(e,t,n){function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}var a,o=n(\"./node_modules/react/index.js\"),i=(a=o)&&\"object\"===r(a)&&\"default\"in a?a.default:a,l=n(\"./node_modules/ua-parser-js/dist/ua-parser.min.js\"),s=new l,u=s.getBrowser(),c=s.getCPU(),d=s.getDevice(),f=s.getEngine(),p=s.getOS(),_=s.getUA(),m=function(e){return s.setUA(e)},h=function(e){if(e){var t=new l(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error(\"No userAgent string was provided\")},E=Object.freeze({ClientUAInstance:s,browser:u,cpu:c,device:d,engine:f,os:p,ua:_,setUa:m,parseUserAgent:h});function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){return v=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},v(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function R(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function N(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=\"mobile\",D=\"tablet\",L=\"smarttv\",w=\"console\",P=\"wearable\",k=\"embedded\",M=void 0,F={Chrome:\"Chrome\",Firefox:\"Firefox\",Opera:\"Opera\",Yandex:\"Yandex\",Safari:\"Safari\",InternetExplorer:\"Internet Explorer\",Edge:\"Edge\",Chromium:\"Chromium\",Ie:\"IE\",MobileSafari:\"Mobile Safari\",EdgeChromium:\"Edge Chromium\",MIUI:\"MIUI Browser\",SamsungBrowser:\"Samsung Browser\"},U={IOS:\"iOS\",Android:\"Android\",WindowsPhone:\"Windows Phone\",Windows:\"Windows\",MAC_OS:\"Mac OS\"},x={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"none\";return e||t},j=function(){return!(\"undefined\"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},B=function(e){var t=j();return t&&t.platform&&(-1!==t.platform.indexOf(e)||\"MacIntel\"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},G=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:H(t.vendor),model:H(t.model),os:H(n.name),osVersion:H(n.version),ua:H(r)})};var V=function(e){return e.type===b},z=function(e){return e.type===D},Y=function(e){var t=e.type;return t===b||t===D},W=function(e){return e.type===L},K=function(e){return e.type===M},Z=function(e){return e.type===P},q=function(e){return e.type===w},X=function(e){return e.type===k},J=function(e){var t=e.vendor;return H(t)},Q=function(e){var t=e.model;return H(t)},$=function(e){var t=e.type;return H(t,\"browser\")},ee=function(e){return e.name===U.Android},te=function(e){return e.name===U.Windows},ne=function(e){return e.name===U.MAC_OS},re=function(e){return e.name===U.WindowsPhone},ae=function(e){return e.name===U.IOS},oe=function(e){var t=e.version;return H(t)},ie=function(e){var t=e.name;return H(t)},le=function(e){return e.name===F.Chrome},se=function(e){return e.name===F.Firefox},ue=function(e){return e.name===F.Chromium},ce=function(e){return e.name===F.Edge},de=function(e){return e.name===F.Yandex},fe=function(e){var t=e.name;return t===F.Safari||t===F.MobileSafari},pe=function(e){return e.name===F.MobileSafari},_e=function(e){return e.name===F.Opera},me=function(e){var t=e.name;return t===F.InternetExplorer||t===F.Ie},he=function(e){return e.name===F.MIUI},Ee=function(e){return e.name===F.SamsungBrowser},Ce=function(e){var t=e.version;return H(t)},ve=function(e){var t=e.major;return H(t)},Se=function(e){var t=e.name;return H(t)},ge=function(e){var t=e.name;return H(t)},ye=function(e){var t=e.version;return H(t)},Ie=function(){var e=j(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return\"string\"==typeof t&&/electron/.test(t)},Oe=function(e){return\"string\"==typeof e&&-1!==e.indexOf(\"Edg/\")},Re=function(){var e=j();return e&&(/iPad|iPhone|iPod/.test(e.platform)||\"MacIntel\"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Ne=function(){return B(\"iPad\")},Ae=function(){return B(\"iPhone\")},Te=function(){return B(\"iPod\")},be=function(e){return H(e)};function De(e){var t=e||E,n=t.device,r=t.browser,a=t.os,o=t.engine,i=t.ua;return{isSmartTV:W(n),isConsole:q(n),isWearable:Z(n),isEmbedded:X(n),isMobileSafari:pe(r)||Ne(),isChromium:ue(r),isMobile:Y(n)||Ne(),isMobileOnly:V(n),isTablet:z(n)||Ne(),isBrowser:K(n),isDesktop:K(n),isAndroid:ee(a),isWinPhone:re(a),isIOS:ae(a)||Ne(),isChrome:le(r),isFirefox:se(r),isSafari:fe(r),isOpera:_e(r),isIE:me(r),osVersion:oe(a),osName:ie(a),fullBrowserVersion:Ce(r),browserVersion:ve(r),browserName:Se(r),mobileVendor:J(n),mobileModel:Q(n),engineName:ge(o),engineVersion:ye(o),getUA:be(i),isEdge:ce(r)||Oe(i),isYandex:de(r),deviceType:$(n),isIOS13:Re(),isIPad13:Ne(),isIPhone13:Ae(),isIPod13:Te(),isElectron:Ie(),isEdgeChromium:Oe(i),isLegacyEdge:ce(r)&&!Oe(i),isWindows:te(a),isMacOs:ne(a),isMIUI:he(r),isSamsungBrowser:Ee(r)}}var Le=W(d),we=q(d),Pe=Z(d),ke=X(d),Me=pe(u)||Ne(),Fe=ue(u),Ue=Y(d)||Ne(),xe=V(d),He=z(d)||Ne(),je=K(d),Be=K(d),Ge=ee(p),Ve=re(p),ze=ae(p)||Ne(),Ye=le(u),We=se(u),Ke=fe(u),Ze=_e(u),qe=me(u),Xe=oe(p),Je=ie(p),Qe=Ce(u),$e=ve(u),et=Se(u),tt=J(d),nt=Q(d),rt=ge(f),at=ye(f),ot=be(_),it=ce(u)||Oe(_),lt=de(u),st=$(d),ut=Re(),ct=Ne(),dt=Ae(),ft=Te(),pt=Ie(),_t=Oe(_),mt=ce(u)&&!Oe(_),ht=te(p),Et=ne(p),Ct=he(u),vt=Ee(u);function St(e){var t=e||window.navigator.userAgent;return h(t)}t.KC=et,t.x_=$e,t.nI=Be,t.tq=Ue,t.BF=Je},\"./node_modules/react-dom/cjs/react-dom.production.min.js\":function(e,t,n){function r(e){return r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},r(e)}var a=n(\"./node_modules/react/index.js\"),o=n(\"./node_modules/scheduler/index.js\");function i(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var l=new Set,s={};function u(e,t){c(e,t),c(e+\"Capture\",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,_={},m={};function h(e,t,n,a){if(null==t||function(e,t,n,a){if(null!==n&&0===n.type)return!1;switch(r(t)){case\"function\":case\"symbol\":return!0;case\"boolean\":return!a&&(null!==n?!n.acceptsBooleans:\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e);default:return!1}}(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function E(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var C={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach((function(e){C[e]=new E(e,0,!1,e,null,!1,!1)})),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach((function(e){var t=e[0];C[t]=new E(t,1,!1,e[1],null,!1,!1)})),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach((function(e){C[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)})),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach((function(e){C[e]=new E(e,2,!1,e,null,!1,!1)})),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach((function(e){C[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)})),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach((function(e){C[e]=new E(e,3,!0,e,null,!1,!1)})),[\"capture\",\"download\"].forEach((function(e){C[e]=new E(e,4,!1,e,null,!1,!1)})),[\"cols\",\"rows\",\"size\",\"span\"].forEach((function(e){C[e]=new E(e,6,!1,e,null,!1,!1)})),[\"rowSpan\",\"start\"].forEach((function(e){C[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}function g(e,t,n,r){var a=C.hasOwnProperty(t)?C[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||\"o\"!==t[0]&&\"O\"!==t[0]||\"n\"!==t[1]&&\"N\"!==t[1])&&(h(t,n,a,r)&&(n=null),r||null===a?function(e){return!!f.call(m,e)||!f.call(_,e)&&(p.test(e)?m[e]=!0:(_[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,\"\"+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&\"\":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?\"\":\"\"+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach((function(e){var t=e.replace(v,S);C[t]=new E(t,1,!1,e,null,!1,!1)})),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach((function(e){var t=e.replace(v,S);C[t]=new E(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)})),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach((function(e){var t=e.replace(v,S);C[t]=new E(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)})),[\"tabIndex\",\"crossOrigin\"].forEach((function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)})),C.xlinkHref=new E(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach((function(e){C[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)}));var y=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for(\"react.element\"),O=Symbol.for(\"react.portal\"),R=Symbol.for(\"react.fragment\"),N=Symbol.for(\"react.strict_mode\"),A=Symbol.for(\"react.profiler\"),T=Symbol.for(\"react.provider\"),b=Symbol.for(\"react.context\"),D=Symbol.for(\"react.forward_ref\"),L=Symbol.for(\"react.suspense\"),w=Symbol.for(\"react.suspense_list\"),P=Symbol.for(\"react.memo\"),k=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var M=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.cache\"),Symbol.for(\"react.tracing_marker\");var F=Symbol.iterator;function U(e){return null===e||\"object\"!==r(e)?null:\"function\"==typeof(e=F&&e[F]||e[\"@@iterator\"])?e:null}var x,H=Object.assign;function j(e){if(void 0===x)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);x=t&&t[1]||\"\"}return\"\\n\"+x+e}var B=!1;function G(e,t){if(!e||B)return\"\";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),\"object\"===(\"undefined\"==typeof Reflect?\"undefined\":r(Reflect))&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var a=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){a=c}e.call(t.prototype)}else{try{throw Error()}catch(c){a=c}e()}}catch(c){if(c&&a&&\"string\"==typeof c.stack){for(var o=c.stack.split(\"\\n\"),i=a.stack.split(\"\\n\"),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(1!==l||1!==s)do{if(l--,0>--s||o[l]!==i[s]){var u=\"\\n\"+o[l].replace(\" at new \",\" at \");return e.displayName&&u.includes(\"<anonymous>\")&&(u=u.replace(\"<anonymous>\",e.displayName)),u}}while(1<=l&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:\"\")?j(e):\"\"}function V(e){switch(e.tag){case 5:return j(e.type);case 16:return j(\"Lazy\");case 13:return j(\"Suspense\");case 19:return j(\"SuspenseList\");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 1:return e=G(e.type,!0);default:return\"\"}}function z(e){if(null==e)return null;if(\"function\"==typeof e)return e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case R:return\"Fragment\";case O:return\"Portal\";case A:return\"Profiler\";case N:return\"StrictMode\";case L:return\"Suspense\";case w:return\"SuspenseList\"}if(\"object\"===r(e))switch(e.$$typeof){case b:return(e.displayName||\"Context\")+\".Consumer\";case T:return(e._context.displayName||\"Context\")+\".Provider\";case D:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case P:return null!==(t=e.displayName||null)?t:z(e.type)||\"Memo\";case k:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function Y(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=t.render).displayName||e.name||\"\",t.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return z(t);case 8:return t===N?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof t)return t.displayName||t.name||null;if(\"string\"==typeof t)return t}return null}function W(e){switch(r(e)){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function K(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&\"function\"==typeof n.get&&\"function\"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=\"\"+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=K(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?\"\":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:\"checkbox\"===t.type||\"radio\"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&g(e,\"checked\",t,!1)}function ee(e,t){$(e,t);var n=W(t.value),r=t.type;if(null!=n)\"number\"===r?(0===n&&\"\"===e.value||e.value!=n)&&(e.value=\"\"+n):e.value!==\"\"+n&&(e.value=\"\"+n);else if(\"submit\"===r||\"reset\"===r)return void e.removeAttribute(\"value\");t.hasOwnProperty(\"value\")?ne(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&ne(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function te(e,t,n){if(t.hasOwnProperty(\"value\")||t.hasOwnProperty(\"defaultValue\")){var r=t.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==t.value&&null!==t.value))return;t=\"\"+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}\"\"!==(n=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==n&&(e.name=n)}function ne(e,t,n){\"number\"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}var re=Array.isArray;function ae(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t[\"$\"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=\"\"+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return H({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(re(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=\"\"),n=t}e._wrapperState={initialValue:W(n)}}function le(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=\"\"+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=\"\"+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&\"\"!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function ce(e,t){return null==e||\"http://www.w3.org/1999/xhtml\"===e?ue(t):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===t?\"http://www.w3.org/1999/xhtml\":e}var de,fe,pe=(fe=function(e,t){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=t;else{for((de=de||document.createElement(\"div\")).innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=de.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function _e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=[\"Webkit\",\"ms\",\"Moz\",\"O\"];function Ee(e,t,n){return null==t||\"boolean\"==typeof t||\"\"===t?\"\":n||\"number\"!=typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(\"\"+t).trim():t+\"px\"}function Ce(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf(\"--\"),a=Ee(n,t[n],r);\"float\"===n&&(n=\"cssFloat\"),r?e.setProperty(n,a):e[n]=a}}Object.keys(me).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var ve=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if(\"object\"!==r(t.dangerouslySetInnerHTML)||!(\"__html\"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&\"object\"!==r(t.style))throw Error(i(62))}}function ge(e,t){if(-1===e.indexOf(\"-\"))return\"string\"==typeof t.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var ye=null;function Ie(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Re=null,Ne=null;function Ae(e){if(e=ga(e)){if(\"function\"!=typeof Oe)throw Error(i(280));var t=e.stateNode;t&&(t=Ia(t),Oe(e.stateNode,e.type,t))}}function Te(e){Re?Ne?Ne.push(e):Ne=[e]:Re=e}function be(){if(Re){var e=Re,t=Ne;if(Ne=Re=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function De(e,t){return e(t)}function Le(){}var we=!1;function Pe(e,t,n){if(we)return e(t,n);we=!0;try{return De(e,t,n)}finally{we=!1,(null!==Re||null!==Ne)&&(Le(),be())}}function ke(e,t){var n=e.stateNode;if(null===n)return null;var a=Ia(n);if(null===a)return null;n=a[t];e:switch(t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(a=!a.disabled)||(a=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&\"function\"!=typeof n)throw Error(i(231,t,r(n)));return n}var Me=!1;if(d)try{var Fe={};Object.defineProperty(Fe,\"passive\",{get:function(){Me=!0}}),window.addEventListener(\"test\",Fe,Fe),window.removeEventListener(\"test\",Fe,Fe)}catch(fe){Me=!1}function Ue(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var xe=!1,He=null,je=!1,Be=null,Ge={onError:function(e){xe=!0,He=e}};function Ve(e,t,n,r,a,o,i,l,s){xe=!1,He=null,Ue.apply(Ge,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(ze(e)!==e)throw Error(i(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return We(a),e;if(o===r)return We(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Xe=o.unstable_cancelCallback,Je=o.unstable_shouldYield,Qe=o.unstable_requestPaint,$e=o.unstable_now,et=o.unstable_getCurrentPriorityLevel,tt=o.unstable_ImmediatePriority,nt=o.unstable_UserBlockingPriority,rt=o.unstable_NormalPriority,at=o.unstable_LowPriority,ot=o.unstable_IdlePriority,it=null,lt=null;var st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/ct|0)|0},ut=Math.log,ct=Math.LN2;var dt=64,ft=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _t(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~a;0!==l?r=pt(l):0!==(o&=i)&&(r=pt(o))}else 0!==(i=n&~a)?r=pt(i):0!==o&&(r=pt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function mt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Et(){var e=dt;return 0==(4194240&(dt<<=1))&&(dt=64),e}function Ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function St(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var gt=0;function yt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var It,Ot,Rt,Nt,At,Tt=!1,bt=[],Dt=null,Lt=null,wt=null,Pt=new Map,kt=new Map,Mt=[],Ft=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");function Ut(e,t){switch(e){case\"focusin\":case\"focusout\":Dt=null;break;case\"dragenter\":case\"dragleave\":Lt=null;break;case\"mouseover\":case\"mouseout\":wt=null;break;case\"pointerover\":case\"pointerout\":Pt.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":kt.delete(t.pointerId)}}function xt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ga(t))&&Ot(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ht(e){var t=Sa(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void At(e.priority,(function(){Rt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ga(n))&&Ot(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function Bt(e,t,n){jt(e)&&n.delete(t)}function Gt(){Tt=!1,null!==Dt&&jt(Dt)&&(Dt=null),null!==Lt&&jt(Lt)&&(Lt=null),null!==wt&&jt(wt)&&(wt=null),Pt.forEach(Bt),kt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Gt)))}function zt(e){function t(t){return Vt(t,e)}if(0<bt.length){Vt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Dt&&Vt(Dt,e),null!==Lt&&Vt(Lt,e),null!==wt&&Vt(wt,e),Pt.forEach(t),kt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Ht(n),null===n.blockedOn&&Mt.shift()}var Yt=y.ReactCurrentBatchConfig,Wt=!0;function Kt(e,t,n,r){var a=gt,o=Yt.transition;Yt.transition=null;try{gt=1,qt(e,t,n,r)}finally{gt=a,Yt.transition=o}}function Zt(e,t,n,r){var a=gt,o=Yt.transition;Yt.transition=null;try{gt=4,qt(e,t,n,r)}finally{gt=a,Yt.transition=o}}function qt(e,t,n,r){if(Wt){var a=Jt(e,t,n,r);if(null===a)Wr(e,t,r,Xt,n),Ut(e,r);else if(function(e,t,n,r,a){switch(t){case\"focusin\":return Dt=xt(Dt,e,t,n,r,a),!0;case\"dragenter\":return Lt=xt(Lt,e,t,n,r,a),!0;case\"mouseover\":return wt=xt(wt,e,t,n,r,a),!0;case\"pointerover\":var o=a.pointerId;return Pt.set(o,xt(Pt.get(o)||null,e,t,n,r,a)),!0;case\"gotpointercapture\":return o=a.pointerId,kt.set(o,xt(kt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Ut(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==a;){var o=ga(a);if(null!==o&&It(o),null===(o=Jt(e,t,n,r))&&Wr(e,t,r,Xt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Xt=null;function Jt(e,t,n,r){if(Xt=null,null!==(e=Sa(e=Ie(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ye(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Qt(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(et()){case tt:return 1;case nt:return 4;case rt:case at:return 16;case ot:return 536870912;default:return 16}default:return 16}}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a=\"value\"in $t?$t.value:$t.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function ln(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:on,this.isPropagationStopped=on,this}return H(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(dn),pn=H({},dn,{view:0,detail:0}),_n=ln(pn),mn=H({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==cn&&(cn&&\"mousemove\"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return\"movementY\"in e?e.movementY:un}}),hn=ln(mn),En=ln(H({},mn,{dataTransfer:0})),Cn=ln(H({},pn,{relatedTarget:0})),vn=ln(H({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),Sn=H({},dn,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),gn=ln(Sn),yn=ln(H({},dn,{data:0})),In={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},On={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Rn={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Rn[e])&&!!t[e]}function An(){return Nn}var Tn=H({},pn,{key:function(e){if(e.key){var t=In[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=rn(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?On[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return\"keypress\"===e.type?rn(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?rn(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}}),bn=ln(Tn),Dn=ln(H({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=ln(H({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),wn=ln(H({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=H({},mn,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kn=ln(Pn),Mn=[9,13,27,32],Fn=d&&\"CompositionEvent\"in window,Un=null;d&&\"documentMode\"in document&&(Un=document.documentMode);var xn=d&&\"TextEvent\"in window&&!Un,Hn=d&&(!Fn||Un&&8<Un&&11>=Un),jn=String.fromCharCode(32),Bn=!1;function Gn(e,t){switch(e){case\"keyup\":return-1!==Mn.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Vn(e){return\"object\"===r(e=e.detail)&&\"data\"in e?e.data:null}var zn=!1;var Yn={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!Yn[e.type]:\"textarea\"===t}function Kn(e,t,n,r){Te(r),0<(t=Zr(t,\"onChange\")).length&&(n=new fn(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,qn=null;function Xn(e){jr(e,0)}function Jn(e){if(q(ya(e)))return e}function Qn(e,t){if(\"change\"===e)return t}var $n=!1;if(d){var er;if(d){var tr=\"oninput\"in document;if(!tr){var nr=document.createElement(\"div\");nr.setAttribute(\"oninput\",\"return;\"),tr=\"function\"==typeof nr.oninput}er=tr}else er=!1;$n=er&&(!document.documentMode||9<document.documentMode)}function rr(){Zn&&(Zn.detachEvent(\"onpropertychange\",ar),qn=Zn=null)}function ar(e){if(\"value\"===e.propertyName&&Jn(qn)){var t=[];Kn(t,qn,e,Ie(e)),Pe(Xn,t)}}function or(e,t,n){\"focusin\"===e?(rr(),qn=n,(Zn=t).attachEvent(\"onpropertychange\",ar)):\"focusout\"===e&&rr()}function ir(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return Jn(qn)}function lr(e,t){if(\"click\"===e)return Jn(t)}function sr(e,t){if(\"input\"===e||\"change\"===e)return Jn(t)}var ur=\"function\"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(ur(e,t))return!0;if(\"object\"!==r(e)||null===e||\"object\"!==r(t)||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!f.call(t,o)||!ur(e[o],t[o]))return!1}return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):\"contains\"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function _r(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n=\"string\"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}function hr(e){var t=_r(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&mr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=fr(n,o);var i=fr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Er=d&&\"documentMode\"in document&&11>=document.documentMode,Cr=null,vr=null,Sr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==Cr||Cr!==X(r)||(\"selectionStart\"in(r=Cr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Sr&&cr(Sr,r)||(Sr=r,0<(r=Zr(vr,\"onSelect\")).length&&(t=new fn(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=Cr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var Or={animationend:Ir(\"Animation\",\"AnimationEnd\"),animationiteration:Ir(\"Animation\",\"AnimationIteration\"),animationstart:Ir(\"Animation\",\"AnimationStart\"),transitionend:Ir(\"Transition\",\"TransitionEnd\")},Rr={},Nr={};function Ar(e){if(Rr[e])return Rr[e];if(!Or[e])return e;var t,n=Or[e];for(t in n)if(n.hasOwnProperty(t)&&t in Nr)return Rr[e]=n[t];return e}d&&(Nr=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),\"TransitionEvent\"in window||delete Or.transitionend.transition);var Tr=Ar(\"animationend\"),br=Ar(\"animationiteration\"),Dr=Ar(\"animationstart\"),Lr=Ar(\"transitionend\"),wr=new Map,Pr=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");function kr(e,t){wr.set(e,t),u(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Fr=Pr[Mr];kr(Fr.toLowerCase(),\"on\"+(Fr[0].toUpperCase()+Fr.slice(1)))}kr(Tr,\"onAnimationEnd\"),kr(br,\"onAnimationIteration\"),kr(Dr,\"onAnimationStart\"),kr(\"dblclick\",\"onDoubleClick\"),kr(\"focusin\",\"onFocus\"),kr(\"focusout\",\"onBlur\"),kr(Lr,\"onTransitionEnd\"),c(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),c(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),c(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),c(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),u(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),u(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),u(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),u(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),u(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),u(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var Ur=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),xr=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(Ur));function Hr(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,function(e,t,n,r,a,o,l,s,u){if(Ve.apply(this,arguments),xe){if(!xe)throw Error(i(198));var c=He;xe=!1,He=null,je||(je=!0,Be=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;Hr(a,l,u),o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;Hr(a,l,u),o=s}}}if(je)throw e=Be,je=!1,Be=null,e}function Br(e,t){var n=t[Ea];void 0===n&&(n=t[Ea]=new Set);var r=e+\"__bubble\";n.has(r)||(Yr(t,e,2,!1),n.add(r))}function Gr(e,t,n){var r=0;t&&(r|=4),Yr(n,e,r,t)}var Vr=\"_reactListening\"+Math.random().toString(36).slice(2);function zr(e){if(!e[Vr]){e[Vr]=!0,l.forEach((function(t){\"selectionchange\"!==t&&(xr.has(t)||Gr(t,!1,e),Gr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Gr(\"selectionchange\",!1,t))}}function Yr(e,t,n,r){switch(Qt(t)){case 1:var a=Kt;break;case 4:a=Zt;break;default:a=qt}n=a.bind(null,t,n,e),a=void 0,!Me||\"touchstart\"!==t&&\"touchmove\"!==t&&\"wheel\"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=Sa(l)))return;if(5===(s=i.tag)||6===s){r=o=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=o,a=Ie(n),i=[];e:{var l=wr.get(e);if(void 0!==l){var s=fn,u=e;switch(e){case\"keypress\":if(0===rn(n))break e;case\"keydown\":case\"keyup\":s=bn;break;case\"focusin\":u=\"focus\",s=Cn;break;case\"focusout\":u=\"blur\",s=Cn;break;case\"beforeblur\":case\"afterblur\":s=Cn;break;case\"click\":if(2===n.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":s=hn;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":s=En;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":s=Ln;break;case Tr:case br:case Dr:s=vn;break;case Lr:s=wn;break;case\"scroll\":s=_n;break;case\"wheel\":s=kn;break;case\"copy\":case\"cut\":case\"paste\":s=gn;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":s=Dn}var c=0!=(4&t),d=!c&&\"scroll\"===e,f=c?null!==l?l+\"Capture\":null:l;c=[];for(var p,_=r;null!==_;){var m=(p=_).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=ke(_,f))&&c.push(Kr(_,m,p)))),d)break;_=_.return}0<c.length&&(l=new s(l,u,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s=\"mouseout\"===e||\"pointerout\"===e,(!(l=\"mouseover\"===e||\"pointerover\"===e)||n===ye||!(u=n.relatedTarget||n.fromElement)||!Sa(u)&&!u[ha])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Sa(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m=\"onMouseLeave\",f=\"onMouseEnter\",_=\"mouse\",\"pointerout\"!==e&&\"pointerover\"!==e||(c=Dn,m=\"onPointerLeave\",f=\"onPointerEnter\",_=\"pointer\"),d=null==s?l:ya(s),p=null==u?l:ya(u),(l=new c(m,_+\"leave\",s,n,a)).target=d,l.relatedTarget=p,m=null,Sa(a)===r&&((c=new c(f,_+\"enter\",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,_=0,p=c=s;p;p=qr(p))_++;for(p=0,m=f;m;m=qr(m))p++;for(;0<_-p;)c=qr(c),_--;for(;0<p-_;)f=qr(f),p--;for(;_--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==s&&Xr(i,l,s,c,!1),null!==u&&null!==d&&Xr(i,d,u,c,!0)}if(\"select\"===(s=(l=r?ya(r):window).nodeName&&l.nodeName.toLowerCase())||\"input\"===s&&\"file\"===l.type)var h=Qn;else if(Wn(l))if($n)h=sr;else{h=ir;var E=or}else(s=l.nodeName)&&\"input\"===s.toLowerCase()&&(\"checkbox\"===l.type||\"radio\"===l.type)&&(h=lr);switch(h&&(h=h(e,r))?Kn(i,h,n,a):(E&&E(e,l,r),\"focusout\"===e&&(E=l._wrapperState)&&E.controlled&&\"number\"===l.type&&ne(l,\"number\",l.value)),E=r?ya(r):window,e){case\"focusin\":(Wn(E)||\"true\"===E.contentEditable)&&(Cr=E,vr=r,Sr=null);break;case\"focusout\":Sr=vr=Cr=null;break;case\"mousedown\":gr=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":gr=!1,yr(i,n,a);break;case\"selectionchange\":if(Er)break;case\"keydown\":case\"keyup\":yr(i,n,a)}var C;if(Fn)e:{switch(e){case\"compositionstart\":var v=\"onCompositionStart\";break e;case\"compositionend\":v=\"onCompositionEnd\";break e;case\"compositionupdate\":v=\"onCompositionUpdate\";break e}v=void 0}else zn?Gn(e,n)&&(v=\"onCompositionEnd\"):\"keydown\"===e&&229===n.keyCode&&(v=\"onCompositionStart\");v&&(Hn&&\"ko\"!==n.locale&&(zn||\"onCompositionStart\"!==v?\"onCompositionEnd\"===v&&zn&&(C=nn()):(en=\"value\"in($t=a)?$t.value:$t.textContent,zn=!0)),0<(E=Zr(r,v)).length&&(v=new yn(v,e,null,n,a),i.push({event:v,listeners:E}),C?v.data=C:null!==(C=Vn(n))&&(v.data=C))),(C=xn?function(e,t){switch(e){case\"compositionend\":return Vn(t);case\"keypress\":return 32!==t.which?null:(Bn=!0,jn);case\"textInput\":return(e=t.data)===jn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(zn)return\"compositionend\"===e||!Fn&&Gn(e,t)?(e=nn(),tn=en=$t=null,zn=!1,e):null;switch(e){case\"paste\":default:return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return Hn&&\"ko\"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,\"onBeforeInput\")).length&&(a=new yn(\"onBeforeInput\",\"beforeinput\",null,n,a),i.push({event:a,listeners:r}),a.data=C))}jr(i,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+\"Capture\",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=ke(e,n))&&r.unshift(Kr(e,o,a)),null!=(o=ke(e,t))&&r.push(Kr(e,o,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=ke(n,o))&&i.unshift(Kr(n,s,l)):a||null!=(s=ke(n,o))&&i.push(Kr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Jr=/\\r\\n?/g,Qr=/\\u0000|\\uFFFD/g;function $r(e){return(\"string\"==typeof e?e:\"\"+e).replace(Jr,\"\\n\").replace(Qr,\"\")}function ea(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(i(425))}function ta(){}var na=null,ra=null;function aa(e,t){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof t.children||\"number\"==typeof t.children||\"object\"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oa=\"function\"==typeof setTimeout?setTimeout:void 0,ia=\"function\"==typeof clearTimeout?clearTimeout:void 0,la=\"function\"==typeof Promise?Promise:void 0,sa=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==la?function(e){return la.resolve(null).then(e).catch(ua)}:oa;function ua(e){setTimeout((function(){throw e}))}function ca(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if(\"/$\"===(n=a.data)){if(0===r)return e.removeChild(a),void zt(t);r--}else\"$\"!==n&&\"$?\"!==n&&\"$!\"!==n||r++;n=a}while(n);zt(t)}function da(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if(\"$\"===(t=e.data)||\"$!\"===t||\"$?\"===t)break;if(\"/$\"===t)return null}}return e}function fa(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}var pa=Math.random().toString(36).slice(2),_a=\"__reactFiber$\"+pa,ma=\"__reactProps$\"+pa,ha=\"__reactContainer$\"+pa,Ea=\"__reactEvents$\"+pa,Ca=\"__reactListeners$\"+pa,va=\"__reactHandles$\"+pa;function Sa(e){var t=e[_a];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[_a]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fa(e);null!==e;){if(n=e[_a])return n;e=fa(e)}return t}n=(e=n).parentNode}return null}function ga(e){return!(e=e[_a]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ya(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Ia(e){return e[ma]||null}var Oa=[],Ra=-1;function Na(e){return{current:e}}function Aa(e){0>Ra||(e.current=Oa[Ra],Oa[Ra]=null,Ra--)}function Ta(e,t){Ra++,Oa[Ra]=e.current,e.current=t}var ba={},Da=Na(ba),La=Na(!1),wa=ba;function Pa(e,t){var n=e.type.contextTypes;if(!n)return ba;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ka(e){return null!=(e=e.childContextTypes)}function Ma(){Aa(La),Aa(Da)}function Fa(e,t,n){if(Da.current!==ba)throw Error(i(168));Ta(Da,t),Ta(La,n)}function Ua(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,\"function\"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,Y(e)||\"Unknown\",a));return H({},n,r)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ba,wa=Da.current,Ta(Da,e),Ta(La,La.current),!0}function Ha(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ua(e,t,wa),r.__reactInternalMemoizedMergedChildContext=e,Aa(La),Aa(Da),Ta(Da,e)):Aa(La),Ta(La,n)}var ja=null,Ba=!1,Ga=!1;function Va(e){null===ja?ja=[e]:ja.push(e)}function za(){if(!Ga&&null!==ja){Ga=!0;var e=0,t=gt;try{var n=ja;for(gt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ja=null,Ba=!1}catch(a){throw null!==ja&&(ja=ja.slice(e+1)),qe(tt,za),a}finally{gt=t,Ga=!1}}return null}var Ya=[],Wa=0,Ka=null,Za=0,qa=[],Xa=0,Ja=null,Qa=1,$a=\"\";function eo(e,t){Ya[Wa++]=Za,Ya[Wa++]=Ka,Ka=e,Za=t}function to(e,t,n){qa[Xa++]=Qa,qa[Xa++]=$a,qa[Xa++]=Ja,Ja=e;var r=Qa;e=$a;var a=32-st(r)-1;r&=~(1<<a),n+=1;var o=32-st(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Qa=1<<32-st(t)+a|n<<a|r,$a=o+e}else Qa=1<<o|n<<a|r,$a=e}function no(e){null!==e.return&&(eo(e,1),to(e,1,0))}function ro(e){for(;e===Ka;)Ka=Ya[--Wa],Ya[Wa]=null,Za=Ya[--Wa],Ya[Wa]=null;for(;e===Ja;)Ja=qa[--Xa],qa[Xa]=null,$a=qa[--Xa],qa[Xa]=null,Qa=qa[--Xa],qa[Xa]=null}var ao=null,oo=null,io=!1,lo=null;function so(e,t){var n=Pu(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function uo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ao=e,oo=da(t.firstChild),!0);case 6:return null!==(t=\"\"===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ao=e,oo=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ja?{id:Qa,overflow:$a}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ao=e,oo=null,!0);default:return!1}}function co(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function fo(e){if(io){var t=oo;if(t){var n=t;if(!uo(e,t)){if(co(e))throw Error(i(418));t=da(n.nextSibling);var r=ao;t&&uo(e,t)?so(r,n):(e.flags=-4097&e.flags|2,io=!1,ao=e)}}else{if(co(e))throw Error(i(418));e.flags=-4097&e.flags|2,io=!1,ao=e}}}function po(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ao=e}function _o(e){if(e!==ao)return!1;if(!io)return po(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t=\"head\"!==(t=e.type)&&\"body\"!==t&&!aa(e.type,e.memoizedProps)),t&&(t=oo)){if(co(e))throw mo(),Error(i(418));for(;t;)so(e,t),t=da(t.nextSibling)}if(po(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(\"/$\"===n){if(0===t){oo=da(e.nextSibling);break e}t--}else\"$\"!==n&&\"$!\"!==n&&\"$?\"!==n||t++}e=e.nextSibling}oo=null}}else oo=ao?da(e.stateNode.nextSibling):null;return!0}function mo(){for(var e=oo;e;)e=da(e.nextSibling)}function ho(){oo=ao=null,io=!1}function Eo(e){null===lo?lo=[e]:lo.push(e)}var Co=y.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=H({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var So=Na(null),go=null,yo=null,Io=null;function Oo(){Io=yo=go=null}function Ro(e){var t=So.current;Aa(So),e._currentValue=t}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){go=e,Io=yo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function To(e){var t=e._currentValue;if(Io!==e)if(e={context:e,memoizedValue:t,next:null},null===yo){if(null===go)throw Error(i(308));yo=e,go.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var bo=null;function Do(e){null===bo?bo=[e]:bo.push(e)}function Lo(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Do(t)):(n.next=a.next,a.next=n),t.interleaved=n,wo(e,r)}function wo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Po=!1;function ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ds)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,wo(e,n)}return null===(a=r.interleaved)?(t.next=t,Do(r)):(t.next=a.next,a.next=t),r.interleaved=t,wo(e,n)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,St(e,n)}}function Ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jo(e,t,n,r){var a=e.updateQueue;Po=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?o=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==o){var d=a.baseState;for(i=0,c=u=s=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var _=e,m=l;switch(f=t,p=n,m.tag){case 1:if(\"function\"==typeof(_=m.payload)){d=_.call(p,d,f);break e}d=_;break e;case 3:_.flags=-65537&_.flags|128;case 0:if(null==(f=\"function\"==typeof(_=m.payload)?_.call(p,d,f):_))break e;d=H({},d,f);break e;case 2:Po=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(f=l).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);xs|=i,e.lanes=i,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,\"function\"!=typeof a)throw Error(i(191,a));a.call(r)}}}var Go=(new a.Component).refs;function Vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:H({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nu(),a=ru(e),o=Fo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,a))&&(au(t,e,a,r),xo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nu(),a=ru(e),o=Fo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,a))&&(au(t,e,a,r),xo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nu(),r=ru(e),a=Fo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Uo(e,a,r))&&(au(t,e,r,n),xo(t,e,r))}};function Yo(e,t,n,r,a,o,i){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(a,o))}function Wo(e,t,n){var a=!1,o=ba,i=t.contextType;return\"object\"===r(i)&&null!==i?i=To(i):(o=ka(t)?wa:Da.current,i=(a=null!=(a=t.contextTypes))?Pa(e,o):ba),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ko(e,t,n,r){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,a){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Go,ko(e);var i=t.contextType;\"object\"===r(i)&&null!==i?o.context=To(i):(i=ka(t)?wa:Da.current,o.context=Pa(e,i)),o.state=e.memoizedState,\"function\"==typeof(i=t.getDerivedStateFromProps)&&(Vo(e,t,i,n),o.state=e.memoizedState),\"function\"==typeof t.getDerivedStateFromProps||\"function\"==typeof o.getSnapshotBeforeUpdate||\"function\"!=typeof o.UNSAFE_componentWillMount&&\"function\"!=typeof o.componentWillMount||(t=o.state,\"function\"==typeof o.componentWillMount&&o.componentWillMount(),\"function\"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&zo.enqueueReplaceState(o,o.state,null),jo(e,n,o,a),o.state=e.memoizedState),\"function\"==typeof o.componentDidMount&&(e.flags|=4194308)}function qo(e,t,n){if(null!==(e=n.ref)&&\"function\"!=typeof e&&\"object\"!==r(e)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var a=n.stateNode}if(!a)throw Error(i(147,e));var o=a,l=\"\"+e;return null!==t&&null!==t.ref&&\"function\"==typeof t.ref&&t.ref._stringRef===l?t.ref:(t=function(e){var t=o.refs;t===Go&&(t=o.refs={}),null===e?delete t[l]:t[l]=e},t._stringRef=l,t)}if(\"string\"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Xo(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function Jo(e){return(0,e._init)(e._payload)}function Qo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,a){var i=n.type;return i===R?f(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===i||\"object\"===r(i)&&null!==i&&i.$$typeof===k&&Jo(i)===t.type)?((a=o(t,n.props)).ref=qo(e,t,n),a.return=e,a):((a=Fu(n.type,n.key,n.props,null,e.mode,a)).ref=qo(e,t,n),a.return=e,a)}function d(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Uu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return(t=Hu(\"\"+t,e.mode,n)).return=e,t;if(\"object\"===r(t)&&null!==t){switch(t.$$typeof){case I:return(n=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=qo(e,null,t),n.return=e,n;case O:return(t=ju(t,e.mode,n)).return=e,t;case k:return p(e,(0,t._init)(t._payload),n)}if(re(t)||U(t))return(t=Uu(t,e.mode,n,null)).return=e,t;Xo(e,t)}return null}function _(e,t,n,a){var o=null!==t?t.key:null;if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return null!==o?null:u(e,t,\"\"+n,a);if(\"object\"===r(n)&&null!==n){switch(n.$$typeof){case I:return n.key===o?c(e,t,n,a):null;case O:return n.key===o?d(e,t,n,a):null;case k:return _(e,t,(o=n._init)(n._payload),a)}if(re(n)||U(n))return null!==o?null:f(e,t,n,a,null);Xo(e,n)}return null}function m(e,t,n,a,o){if(\"string\"==typeof a&&\"\"!==a||\"number\"==typeof a)return u(t,e=e.get(n)||null,\"\"+a,o);if(\"object\"===r(a)&&null!==a){switch(a.$$typeof){case I:return c(t,e=e.get(null===a.key?n:a.key)||null,a,o);case O:return d(t,e=e.get(null===a.key?n:a.key)||null,a,o);case k:return m(e,t,n,(0,a._init)(a._payload),o)}if(re(a)||U(a))return f(t,e=e.get(n)||null,a,o,null);Xo(t,a)}return null}function h(r,o,i,s){for(var u=null,c=null,d=o,f=o=0,h=null;null!==d&&f<i.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var E=_(r,d,i[f],s);if(null===E){null===d&&(d=h);break}e&&d&&null===E.alternate&&t(r,d),o=l(E,o,f),null===c?u=E:c.sibling=E,c=E,d=h}if(f===i.length)return n(r,d),io&&eo(r,f),u;if(null===d){for(;f<i.length;f++)null!==(d=p(r,i[f],s))&&(o=l(d,o,f),null===c?u=d:c.sibling=d,c=d);return io&&eo(r,f),u}for(d=a(r,d);f<i.length;f++)null!==(h=m(d,r,f,i[f],s))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),o=l(h,o,f),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach((function(e){return t(r,e)})),io&&eo(r,f),u}function E(r,o,s,u){var c=U(s);if(\"function\"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,f=o,h=o=0,E=null,C=s.next();null!==f&&!C.done;h++,C=s.next()){f.index>h?(E=f,f=null):E=f.sibling;var v=_(r,f,C.value,u);if(null===v){null===f&&(f=E);break}e&&f&&null===v.alternate&&t(r,f),o=l(v,o,h),null===d?c=v:d.sibling=v,d=v,f=E}if(C.done)return n(r,f),io&&eo(r,h),c;if(null===f){for(;!C.done;h++,C=s.next())null!==(C=p(r,C.value,u))&&(o=l(C,o,h),null===d?c=C:d.sibling=C,d=C);return io&&eo(r,h),c}for(f=a(r,f);!C.done;h++,C=s.next())null!==(C=m(f,r,h,C.value,u))&&(e&&null!==C.alternate&&f.delete(null===C.key?h:C.key),o=l(C,o,h),null===d?c=C:d.sibling=C,d=C);return e&&f.forEach((function(e){return t(r,e)})),io&&eo(r,h),c}return function e(a,i,l,u){if(\"object\"===r(l)&&null!==l&&l.type===R&&null===l.key&&(l=l.props.children),\"object\"===r(l)&&null!==l){switch(l.$$typeof){case I:e:{for(var c=l.key,d=i;null!==d;){if(d.key===c){if((c=l.type)===R){if(7===d.tag){n(a,d.sibling),(i=o(d,l.props.children)).return=a,a=i;break e}}else if(d.elementType===c||\"object\"===r(c)&&null!==c&&c.$$typeof===k&&Jo(c)===d.type){n(a,d.sibling),(i=o(d,l.props)).ref=qo(a,d,l),i.return=a,a=i;break e}n(a,d);break}t(a,d),d=d.sibling}l.type===R?((i=Uu(l.props.children,a.mode,u,l.key)).return=a,a=i):((u=Fu(l.type,l.key,l.props,null,a.mode,u)).ref=qo(a,i,l),u.return=a,a=u)}return s(a);case O:e:{for(d=l.key;null!==i;){if(i.key===d){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(a,i.sibling),(i=o(i,l.children||[])).return=a,a=i;break e}n(a,i);break}t(a,i),i=i.sibling}(i=ju(l,a.mode,u)).return=a,a=i}return s(a);case k:return e(a,i,(d=l._init)(l._payload),u)}if(re(l))return h(a,i,l,u);if(U(l))return E(a,i,l,u);Xo(a,l)}return\"string\"==typeof l&&\"\"!==l||\"number\"==typeof l?(l=\"\"+l,null!==i&&6===i.tag?(n(a,i.sibling),(i=o(i,l)).return=a,a=i):(n(a,i),(i=Hu(l,a.mode,u)).return=a,a=i),s(a)):n(a,i)}}var $o=Qo(!0),ei=Qo(!1),ti={},ni=Na(ti),ri=Na(ti),ai=Na(ti);function oi(e){if(e===ti)throw Error(i(174));return e}function ii(e,t){switch(Ta(ai,t),Ta(ri,e),Ta(ni,ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,\"\");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Aa(ni),Ta(ni,t)}function li(){Aa(ni),Aa(ri),Aa(ai)}function si(e){oi(ai.current);var t=oi(ni.current),n=ce(t,e.type);t!==n&&(Ta(ri,e),Ta(ni,n))}function ui(e){ri.current===e&&(Aa(ni),Aa(ri))}var ci=Na(0);function di(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fi=[];function pi(){for(var e=0;e<fi.length;e++)fi[e]._workInProgressVersionPrimary=null;fi.length=0}var _i=y.ReactCurrentDispatcher,mi=y.ReactCurrentBatchConfig,hi=0,Ei=null,Ci=null,vi=null,Si=!1,gi=!1,yi=0,Ii=0;function Oi(){throw Error(i(321))}function Ri(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function Ni(e,t,n,r,a,o){if(hi=o,Ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=null===e||null===e.memoizedState?ul:cl,e=n(r,a),gi){o=0;do{if(gi=!1,yi=0,25<=o)throw Error(i(301));o+=1,vi=Ci=null,t.updateQueue=null,_i.current=dl,e=n(r,a)}while(gi)}if(_i.current=sl,t=null!==Ci&&null!==Ci.next,hi=0,vi=Ci=Ei=null,Si=!1,t)throw Error(i(300));return e}function Ai(){var e=0!==yi;return yi=0,e}function Ti(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?Ei.memoizedState=vi=e:vi=vi.next=e,vi}function bi(){if(null===Ci){var e=Ei.alternate;e=null!==e?e.memoizedState:null}else e=Ci.next;var t=null===vi?Ei.memoizedState:vi.next;if(null!==t)vi=t,Ci=e;else{if(null===e)throw Error(i(310));e={memoizedState:(Ci=e).memoizedState,baseState:Ci.baseState,baseQueue:Ci.baseQueue,queue:Ci.queue,next:null},null===vi?Ei.memoizedState=vi=e:vi=vi.next=e}return vi}function Di(e,t){return\"function\"==typeof t?t(e):t}function Li(e){var t=bi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=Ci,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var s=l=null,u=null,c=o;do{var d=c.lane;if((hi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,Ei.lanes|=d,xs|=d}c=c.next}while(null!==c&&c!==o);null===u?l=r:u.next=s,ur(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,Ei.lanes|=o,xs|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wi(e){var t=bi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);ur(o,t.memoizedState)||(yl=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Pi(){}function ki(e,t){var n=Ei,r=bi(),a=t(),o=!ur(r.memoizedState,a);if(o&&(r.memoizedState=a,yl=!0),r=r.queue,Wi(Ui.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==vi&&1&vi.memoizedState.tag){if(n.flags|=2048,Bi(9,Fi.bind(null,n,r,a,t),void 0,null),null===Ls)throw Error(i(349));0!=(30&hi)||Mi(n,t,a)}return a}function Mi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ei.updateQueue)?(t={lastEffect:null,stores:null},Ei.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fi(e,t,n,r){t.value=n,t.getSnapshot=r,xi(t)&&Hi(e)}function Ui(e,t,n){return n((function(){xi(t)&&Hi(e)}))}function xi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch(r){return!0}}function Hi(e){var t=wo(e,1);null!==t&&au(t,e,1,-1)}function ji(e){var t=Ti();return\"function\"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:e},t.queue=e,e=e.dispatch=al.bind(null,Ei,e),[t.memoizedState,e]}function Bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ei.updateQueue)?(t={lastEffect:null,stores:null},Ei.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Gi(){return bi().memoizedState}function Vi(e,t,n,r){var a=Ti();Ei.flags|=e,a.memoizedState=Bi(1|t,n,void 0,void 0===r?null:r)}function zi(e,t,n,r){var a=bi();r=void 0===r?null:r;var o=void 0;if(null!==Ci){var i=Ci.memoizedState;if(o=i.destroy,null!==r&&Ri(r,i.deps))return void(a.memoizedState=Bi(t,n,o,r))}Ei.flags|=e,a.memoizedState=Bi(1|t,n,o,r)}function Yi(e,t){return Vi(8390656,8,e,t)}function Wi(e,t){return zi(2048,8,e,t)}function Ki(e,t){return zi(4,2,e,t)}function Zi(e,t){return zi(4,4,e,t)}function qi(e,t){return\"function\"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Xi(e,t,n){return n=null!=n?n.concat([e]):null,zi(4,4,qi.bind(null,t,e),n)}function Ji(){}function Qi(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ri(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $i(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ri(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function el(e,t,n){return 0==(21&hi)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(ur(n,t)||(n=Et(),Ei.lanes|=n,xs|=n,e.baseState=!0),t)}function tl(e,t){var n=gt;gt=0!==n&&4>n?n:4,e(!0);var r=mi.transition;mi.transition={};try{e(!1),t()}finally{gt=n,mi.transition=r}}function nl(){return bi().memoizedState}function rl(e,t,n){var r=ru(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ol(e))il(t,n);else if(null!==(n=Lo(e,t,n,r))){au(n,e,r,nu()),ll(n,t,r)}}function al(e,t,n){var r=ru(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ol(e))il(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=o(i,n);if(a.hasEagerState=!0,a.eagerState=l,ur(l,i)){var s=t.interleaved;return null===s?(a.next=a,Do(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Lo(e,t,a,r))&&(au(n,e,r,a=nu()),ll(n,t,r))}}function ol(e){var t=e.alternate;return e===Ei||null!==t&&t===Ei}function il(e,t){gi=Si=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ll(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,St(e,n)}}var sl={readContext:To,useCallback:Oi,useContext:Oi,useEffect:Oi,useImperativeHandle:Oi,useInsertionEffect:Oi,useLayoutEffect:Oi,useMemo:Oi,useReducer:Oi,useRef:Oi,useState:Oi,useDebugValue:Oi,useDeferredValue:Oi,useTransition:Oi,useMutableSource:Oi,useSyncExternalStore:Oi,useId:Oi,unstable_isNewReconciler:!1},ul={readContext:To,useCallback:function(e,t){return Ti().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:Yi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Vi(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var n=Ti();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ti();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rl.bind(null,Ei,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ti().memoizedState=e},useState:ji,useDebugValue:Ji,useDeferredValue:function(e){return Ti().memoizedState=e},useTransition:function(){var e=ji(!1),t=e[0];return e=tl.bind(null,e[1]),Ti().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ei,a=Ti();if(io){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ls)throw Error(i(349));0!=(30&hi)||Mi(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yi(Ui.bind(null,r,o,e),[e]),r.flags|=2048,Bi(9,Fi.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ti(),t=Ls.identifierPrefix;if(io){var n=$a;t=\":\"+t+\"R\"+(n=(Qa&~(1<<32-st(Qa)-1)).toString(32)+n),0<(n=yi++)&&(t+=\"H\"+n.toString(32)),t+=\":\"}else t=\":\"+t+\"r\"+(n=Ii++).toString(32)+\":\";return e.memoizedState=t},unstable_isNewReconciler:!1},cl={readContext:To,useCallback:Qi,useContext:To,useEffect:Wi,useImperativeHandle:Xi,useInsertionEffect:Ki,useLayoutEffect:Zi,useMemo:$i,useReducer:Li,useRef:Gi,useState:function(){return Li(Di)},useDebugValue:Ji,useDeferredValue:function(e){return el(bi(),Ci.memoizedState,e)},useTransition:function(){return[Li(Di)[0],bi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:ki,useId:nl,unstable_isNewReconciler:!1},dl={readContext:To,useCallback:Qi,useContext:To,useEffect:Wi,useImperativeHandle:Xi,useInsertionEffect:Ki,useLayoutEffect:Zi,useMemo:$i,useReducer:wi,useRef:Gi,useState:function(){return wi(Di)},useDebugValue:Ji,useDeferredValue:function(e){var t=bi();return null===Ci?t.memoizedState=e:el(t,Ci.memoizedState,e)},useTransition:function(){return[wi(Di)[0],bi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:ki,useId:nl,unstable_isNewReconciler:!1};function fl(e,t){try{var n=\"\",r=t;do{n+=V(r),r=r.return}while(r);var a=n}catch(o){a=\"\\nError generating stack: \"+o.message+\"\\n\"+o.stack}return{value:e,source:t,stack:a,digest:null}}function pl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function _l(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ml=\"function\"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Ks=r),_l(0,t)},n}function El(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){_l(0,t)}}var o=e.stateNode;return null!==o&&\"function\"==typeof o.componentDidCatch&&(n.callback=function(){_l(0,t),\"function\"!=typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:\"\"})}),n}function Cl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ml;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Au.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Sl(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var gl=y.ReactCurrentOwner,yl=!1;function Il(e,t,n,r){t.child=null===e?ei(t,null,n,r):$o(t,e.child,n,r)}function Ol(e,t,n,r,a){n=n.render;var o=t.ref;return Ao(t,a),r=Ni(e,t,n,r,o,a),n=Ai(),null===e||yl?(io&&n&&no(t),t.flags|=1,Il(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wl(e,t,a))}function Rl(e,t,n,r,a){if(null===e){var o=n.type;return\"function\"!=typeof o||ku(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Nl(e,t,o,r,a))}if(o=e.child,0==(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)return Wl(e,t,a)}return t.flags|=1,(e=Mu(o,r)).ref=t.ref,e.return=t,t.child=e}function Nl(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(cr(o,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Wl(e,t,a);0!=(131072&e.flags)&&(yl=!0)}}return bl(e,t,n,r,a)}function Al(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if(\"hidden\"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ta(Ms,ks),ks|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ta(Ms,ks),ks|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ta(Ms,ks),ks|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ta(Ms,ks),ks|=r;return Il(e,t,a,n),t.child}function Tl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,n,r,a){var o=ka(n)?wa:Da.current;return o=Pa(t,o),Ao(t,a),n=Ni(e,t,n,r,o,a),r=Ai(),null===e||yl?(io&&r&&no(t),t.flags|=1,Il(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Wl(e,t,a))}function Dl(e,t,n,a,o){if(ka(n)){var i=!0;xa(t)}else i=!1;if(Ao(t,o),null===t.stateNode)Yl(e,t),Wo(t,n,a),Zo(t,n,a,o),a=!0;else if(null===e){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,c=n.contextType;\"object\"===r(c)&&null!==c?c=To(c):c=Pa(t,c=ka(n)?wa:Da.current);var d=n.getDerivedStateFromProps,f=\"function\"==typeof d||\"function\"==typeof l.getSnapshotBeforeUpdate;f||\"function\"!=typeof l.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof l.componentWillReceiveProps||(s!==a||u!==c)&&Ko(t,l,a,c),Po=!1;var p=t.memoizedState;l.state=p,jo(t,a,l,o),u=t.memoizedState,s!==a||p!==u||La.current||Po?(\"function\"==typeof d&&(Vo(t,n,d,a),u=t.memoizedState),(s=Po||Yo(t,n,s,a,p,u,c))?(f||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),\"function\"==typeof l.componentDidMount&&(t.flags|=4194308)):(\"function\"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),l.props=a,l.state=u,l.context=c,a=s):(\"function\"==typeof l.componentDidMount&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,Mo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vo(t.type,s),l.props=c,f=t.pendingProps,p=l.context,\"object\"===r(u=n.contextType)&&null!==u?u=To(u):u=Pa(t,u=ka(n)?wa:Da.current);var _=n.getDerivedStateFromProps;(d=\"function\"==typeof _||\"function\"==typeof l.getSnapshotBeforeUpdate)||\"function\"!=typeof l.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof l.componentWillReceiveProps||(s!==f||p!==u)&&Ko(t,l,a,u),Po=!1,p=t.memoizedState,l.state=p,jo(t,a,l,o);var m=t.memoizedState;s!==f||p!==m||La.current||Po?(\"function\"==typeof _&&(Vo(t,n,_,a),m=t.memoizedState),(c=Po||Yo(t,n,c,a,p,m,u)||!1)?(d||\"function\"!=typeof l.UNSAFE_componentWillUpdate&&\"function\"!=typeof l.componentWillUpdate||(\"function\"==typeof l.componentWillUpdate&&l.componentWillUpdate(a,m,u),\"function\"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(a,m,u)),\"function\"==typeof l.componentDidUpdate&&(t.flags|=4),\"function\"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):(\"function\"!=typeof l.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=m),l.props=a,l.state=m,l.context=u,a=c):(\"function\"!=typeof l.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof l.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}return Ll(e,t,n,a,i,o)}function Ll(e,t,n,r,a,o){Tl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Ha(t,n,!1),Wl(e,t,o);r=t.stateNode,gl.current=t;var l=i&&\"function\"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,l,o)):Il(e,t,l,o),t.memoizedState=r.state,a&&Ha(t,n,!0),t.child}function wl(e){var t=e.stateNode;t.pendingContext?Fa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fa(0,t.context,!1),ii(e,t.containerInfo)}function Pl(e,t,n,r,a){return ho(),Eo(a),t.flags|=256,Il(e,t,n,r),t.child}var kl,Ml,Fl,Ul={dehydrated:null,treeContext:null,retryLane:0};function xl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hl(e,t,n){var r,a=t.pendingProps,o=ci.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ta(ci,1&o),null===e)return fo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:\"$!\"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:\"hidden\",children:s},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=xu(s,a,0,null),e=Uu(e,a,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=xl(n),t.memoizedState=Ul,e):jl(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=pl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=xu({mode:\"visible\",children:r.children},a,0,null),(o=Uu(o,a,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&$o(t,e.child,null,l),t.child.memoizedState=xl(l),t.memoizedState=Ul,o);if(0==(1&t.mode))return Bl(e,t,l,null);if(\"$!\"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=pl(o=Error(i(419)),r,void 0))}if(s=0!=(l&e.childLanes),yl||s){if(null!==(r=Ls)){switch(l&-l){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|l))?0:a)&&a!==o.retryLane&&(o.retryLane=a,wo(e,a),au(r,e,a,-1))}return Eu(),Bl(e,t,l,r=pl(Error(i(421))))}return\"$?\"===a.data?(t.flags|=128,t.child=e.child,t=bu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,oo=da(a.nextSibling),ao=t,io=!0,lo=null,null!==e&&(qa[Xa++]=Qa,qa[Xa++]=$a,qa[Xa++]=Ja,Qa=e.id,$a=e.overflow,Ja=t),(t=jl(t,r.children)).flags|=4096,t)}(e,t,s,a,r,o,n);if(l){l=a.fallback,s=t.mode,r=(o=e.child).sibling;var u={mode:\"hidden\",children:a.children};return 0==(1&s)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Mu(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?l=Mu(r,l):(l=Uu(l,s,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?xl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ul,a}return e=(l=e.child).sibling,a=Mu(l,{mode:\"visible\",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function jl(e,t){return(t=xu({mode:\"visible\",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&Eo(r),$o(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function Vl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function zl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Il(e,t,r.children,n),0!=(2&(r=ci.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gl(e,n,t);else if(19===e.tag)Gl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ta(ci,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case\"forwards\":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===di(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vl(t,!1,a,n,o);break;case\"backwards\":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===di(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vl(t,!0,n,null,o);break;case\"together\":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),xs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Kl(e,t){if(!io)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Zl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ql(e,t,n){var r=t.pendingProps;switch(ro(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zl(t),null;case 1:case 17:return ka(t.type)&&Ma(),Zl(t),null;case 3:return r=t.stateNode,li(),Aa(La),Aa(Da),pi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(_o(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==lo&&(su(lo),lo=null))),Zl(t),null;case 5:ui(t);var a=oi(ai.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Zl(t),null}if(e=oi(ni.current),_o(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_a]=t,r[ma]=o,e=0!=(1&t.mode),n){case\"dialog\":Br(\"cancel\",r),Br(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":Br(\"load\",r);break;case\"video\":case\"audio\":for(a=0;a<Ur.length;a++)Br(Ur[a],r);break;case\"source\":Br(\"error\",r);break;case\"img\":case\"image\":case\"link\":Br(\"error\",r),Br(\"load\",r);break;case\"details\":Br(\"toggle\",r);break;case\"input\":Q(r,o),Br(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!o.multiple},Br(\"invalid\",r);break;case\"textarea\":ie(r,o),Br(\"invalid\",r)}for(var l in Se(n,o),a=null,o)if(o.hasOwnProperty(l)){var u=o[l];\"children\"===l?\"string\"==typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&ea(r.textContent,u,e),a=[\"children\",u]):\"number\"==typeof u&&r.textContent!==\"\"+u&&(!0!==o.suppressHydrationWarning&&ea(r.textContent,u,e),a=[\"children\",\"\"+u]):s.hasOwnProperty(l)&&null!=u&&\"onScroll\"===l&&Br(\"scroll\",r)}switch(n){case\"input\":Z(r),te(r,o,!0);break;case\"textarea\":Z(r),se(r);break;case\"select\":case\"option\":break;default:\"function\"==typeof o.onClick&&(r.onclick=ta)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,\"http://www.w3.org/1999/xhtml\"===e&&(e=ue(n)),\"http://www.w3.org/1999/xhtml\"===e?\"script\"===n?((e=l.createElement(\"div\")).innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):\"string\"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),\"select\"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[_a]=t,e[ma]=r,kl(e,t),t.stateNode=e;e:{switch(l=ge(n,r),n){case\"dialog\":Br(\"cancel\",e),Br(\"close\",e),a=r;break;case\"iframe\":case\"object\":case\"embed\":Br(\"load\",e),a=r;break;case\"video\":case\"audio\":for(a=0;a<Ur.length;a++)Br(Ur[a],e);a=r;break;case\"source\":Br(\"error\",e),a=r;break;case\"img\":case\"image\":case\"link\":Br(\"error\",e),Br(\"load\",e),a=r;break;case\"details\":Br(\"toggle\",e),a=r;break;case\"input\":Q(e,r),a=J(e,r),Br(\"invalid\",e);break;case\"option\":default:a=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},a=H({},r,{value:void 0}),Br(\"invalid\",e);break;case\"textarea\":ie(e,r),a=oe(e,r),Br(\"invalid\",e)}for(o in Se(n,a),u=a)if(u.hasOwnProperty(o)){var c=u[o];\"style\"===o?Ce(e,c):\"dangerouslySetInnerHTML\"===o?null!=(c=c?c.__html:void 0)&&pe(e,c):\"children\"===o?\"string\"==typeof c?(\"textarea\"!==n||\"\"!==c)&&_e(e,c):\"number\"==typeof c&&_e(e,\"\"+c):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(s.hasOwnProperty(o)?null!=c&&\"onScroll\"===o&&Br(\"scroll\",e):null!=c&&g(e,o,c,l))}switch(n){case\"input\":Z(e),te(e,r,!1);break;case\"textarea\":Z(e),se(e);break;case\"option\":null!=r.value&&e.setAttribute(\"value\",\"\"+W(r.value));break;case\"select\":e.multiple=!!r.multiple,null!=(o=r.value)?ae(e,!!r.multiple,o,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:\"function\"==typeof a.onClick&&(e.onclick=ta)}switch(n){case\"button\":case\"input\":case\"select\":case\"textarea\":r=!!r.autoFocus;break e;case\"img\":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Zl(t),null;case 6:if(e&&null!=t.stateNode)Fl(0,t,e.memoizedProps,r);else{if(\"string\"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=oi(ai.current),oi(ni.current),_o(t)){if(r=t.stateNode,n=t.memoizedProps,r[_a]=t,(o=r.nodeValue!==n)&&null!==(e=ao))switch(e.tag){case 3:ea(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ea(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[_a]=t,t.stateNode=r}return Zl(t),null;case 13:if(Aa(ci),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==oo&&0!=(1&t.mode)&&0==(128&t.flags))mo(),ho(),t.flags|=98560,o=!1;else if(o=_o(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[_a]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Zl(t),o=!1}else null!==lo&&(su(lo),lo=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ci.current)?0===Fs&&(Fs=3):Eu())),null!==t.updateQueue&&(t.flags|=4),Zl(t),null);case 4:return li(),null===e&&zr(t.stateNode.containerInfo),Zl(t),null;case 10:return Ro(t.type._context),Zl(t),null;case 19:if(Aa(ci),null===(o=t.memoizedState))return Zl(t),null;if(r=0!=(128&t.flags),null===(l=o.rendering))if(r)Kl(o,!1);else{if(0!==Fs||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=di(e))){for(t.flags|=128,Kl(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ta(ci,1&ci.current|2),t.child}e=e.sibling}null!==o.tail&&$e()>zs&&(t.flags|=128,r=!0,Kl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=di(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Kl(o,!0),null===o.tail&&\"hidden\"===o.tailMode&&!l.alternate&&!io)return Zl(t),null}else 2*$e()-o.renderingStartTime>zs&&1073741824!==n&&(t.flags|=128,r=!0,Kl(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$e(),t.sibling=null,n=ci.current,Ta(ci,r?1&n|2:1&n),t):(Zl(t),null);case 22:case 23:return pu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&ks)&&(Zl(t),6&t.subtreeFlags&&(t.flags|=8192)):Zl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Xl(e,t){switch(ro(t),t.tag){case 1:return ka(t.type)&&Ma(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return li(),Aa(La),Aa(Da),pi(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ui(t),null;case 13:if(Aa(ci),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Aa(ci),null;case 4:return li(),null;case 10:return Ro(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}kl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,oi(ni.current);var o,i=null;switch(n){case\"input\":a=J(e,a),r=J(e,r),i=[];break;case\"select\":a=H({},a,{value:void 0}),r=H({},r,{value:void 0}),i=[];break;case\"textarea\":a=oe(e,a),r=oe(e,r),i=[];break;default:\"function\"!=typeof a.onClick&&\"function\"==typeof r.onClick&&(e.onclick=ta)}for(c in Se(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if(\"style\"===c){var l=a[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]=\"\")}else\"dangerouslySetInnerHTML\"!==c&&\"children\"!==c&&\"suppressContentEditableWarning\"!==c&&\"suppressHydrationWarning\"!==c&&\"autoFocus\"!==c&&(s.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if(\"style\"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]=\"\");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else\"dangerouslySetInnerHTML\"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(c,u)):\"children\"===c?\"string\"!=typeof u&&\"number\"!=typeof u||(i=i||[]).push(c,\"\"+u):\"suppressContentEditableWarning\"!==c&&\"suppressHydrationWarning\"!==c&&(s.hasOwnProperty(c)?(null!=u&&\"onScroll\"===c&&Br(\"scroll\",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push(\"style\",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Fl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Jl=!1,Ql=!1,$l=\"function\"==typeof WeakSet?WeakSet:Set,es=null;function ts(e,t){var n=e.ref;if(null!==n)if(\"function\"==typeof n)try{n(null)}catch(r){Nu(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){Nu(e,t,r)}}var rs=!1;function as(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&ns(t,n,o)}a=a.next}while(a!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,\"function\"==typeof t?t(e):t.current=e}}function ls(e){var t=e.alternate;null!==t&&(e.alternate=null,ls(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[_a],delete t[ma],delete t[Ea],delete t[Ca],delete t[va])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ss(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ss(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ta));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function ds(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ds(e,t,n),e=e.sibling;null!==e;)ds(e,t,n),e=e.sibling}var fs=null,ps=!1;function _s(e,t,n){for(n=n.child;null!==n;)ms(e,t,n),n=n.sibling}function ms(e,t,n){if(lt&&\"function\"==typeof lt.onCommitFiberUnmount)try{lt.onCommitFiberUnmount(it,n)}catch(l){}switch(n.tag){case 5:Ql||ts(n,t);case 6:var r=fs,a=ps;fs=null,_s(e,t,n),ps=a,null!==(fs=r)&&(ps?(e=fs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fs.removeChild(n.stateNode));break;case 18:null!==fs&&(ps?(e=fs,n=n.stateNode,8===e.nodeType?ca(e.parentNode,n):1===e.nodeType&&ca(e,n),zt(e)):ca(fs,n.stateNode));break;case 4:r=fs,a=ps,fs=n.stateNode.containerInfo,ps=!0,_s(e,t,n),fs=r,ps=a;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!=(2&o)||0!=(4&o))&&ns(n,t,i),a=a.next}while(a!==r)}_s(e,t,n);break;case 1:if(!Ql&&(ts(n,t),\"function\"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Nu(n,t,l)}_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,_s(e,t,n),Ql=r):_s(e,t,n);break;default:_s(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $l),t.forEach((function(t){var r=Du.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Es(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:fs=s.stateNode,ps=!1;break e;case 3:case 4:fs=s.stateNode.containerInfo,ps=!0;break e}s=s.return}if(null===fs)throw Error(i(160));ms(o,l,a),fs=null,ps=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(c){Nu(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Cs(t,e),t=t.sibling}function Cs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Es(t,e),vs(e),4&r){try{as(3,e,e.return),os(3,e)}catch(h){Nu(e,e.return,h)}try{as(5,e,e.return)}catch(h){Nu(e,e.return,h)}}break;case 1:Es(t,e),vs(e),512&r&&null!==n&&ts(n,n.return);break;case 5:if(Es(t,e),vs(e),512&r&&null!==n&&ts(n,n.return),32&e.flags){var a=e.stateNode;try{_e(a,\"\")}catch(h){Nu(e,e.return,h)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{\"input\"===s&&\"radio\"===o.type&&null!=o.name&&$(a,o),ge(s,l);var c=ge(s,o);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];\"style\"===d?Ce(a,f):\"dangerouslySetInnerHTML\"===d?pe(a,f):\"children\"===d?_e(a,f):g(a,d,f,c)}switch(s){case\"input\":ee(a,o);break;case\"textarea\":le(a,o);break;case\"select\":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var _=o.value;null!=_?ae(a,!!o.multiple,_,!1):p!==!!o.multiple&&(null!=o.defaultValue?ae(a,!!o.multiple,o.defaultValue,!0):ae(a,!!o.multiple,o.multiple?[]:\"\",!1))}a[ma]=o}catch(h){Nu(e,e.return,h)}}break;case 6:if(Es(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(h){Nu(e,e.return,h)}}break;case 3:if(Es(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(h){Nu(e,e.return,h)}break;case 4:default:Es(t,e),vs(e);break;case 13:Es(t,e),vs(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Vs=$e())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(c=Ql)||d,Es(t,e),Ql=c):Es(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(es=e,d=e.child;null!==d;){for(f=es=d;null!==es;){switch(_=(p=es).child,p.tag){case 0:case 11:case 14:case 15:as(4,p,p.return);break;case 1:ts(p,p.return);var m=p.stateNode;if(\"function\"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(h){Nu(r,n,h)}}break;case 5:ts(p,p.return);break;case 22:if(null!==p.memoizedState){Is(f);continue}}null!==_?(_.return=p,es=_):Is(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?\"function\"==typeof(o=a.style).setProperty?o.setProperty(\"display\",\"none\",\"important\"):o.display=\"none\":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty(\"display\")?u.display:null,s.style.display=Ee(\"display\",l))}catch(h){Nu(e,e.return,h)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?\"\":f.memoizedProps}catch(h){Nu(e,e.return,h)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Es(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ss(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(_e(a,\"\"),r.flags&=-33),ds(e,us(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;cs(e,us(e),o);break;default:throw Error(i(161))}}catch(l){Nu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ss(e,t,n){es=e,gs(e,t,n)}function gs(e,t,n){for(var r=0!=(1&e.mode);null!==es;){var a=es,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Jl;if(!i){var l=a.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Jl;var u=Ql;if(Jl=i,(Ql=s)&&!u)for(es=a;null!==es;)s=(i=es).child,22===i.tag&&null!==i.memoizedState?Os(a):null!==s?(s.return=i,es=s):Os(a);for(;null!==o;)es=o,gs(o,t,n),o=o.sibling;es=a,Jl=l,Ql=u}ys(e)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,es=o):ys(e)}}function ys(e){for(;null!==es;){var t=es;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ql||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Bo(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case\"button\":case\"input\":case\"select\":case\"textarea\":u.autoFocus&&n.focus();break;case\"img\":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(i(163))}Ql||512&t.flags&&is(t)}catch(p){Nu(t,t.return,p)}}if(t===e){es=null;break}if(null!==(n=t.sibling)){n.return=t.return,es=n;break}es=t.return}}function Is(e){for(;null!==es;){var t=es;if(t===e){es=null;break}var n=t.sibling;if(null!==n){n.return=t.return,es=n;break}es=t.return}}function Os(e){for(;null!==es;){var t=es;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(s){Nu(t,n,s)}break;case 1:var r=t.stateNode;if(\"function\"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){Nu(t,a,s)}}var o=t.return;try{is(t)}catch(s){Nu(t,o,s)}break;case 5:var i=t.return;try{is(t)}catch(s){Nu(t,i,s)}}}catch(s){Nu(t,t.return,s)}if(t===e){es=null;break}var l=t.sibling;if(null!==l){l.return=t.return,es=l;break}es=t.return}}var Rs,Ns=Math.ceil,As=y.ReactCurrentDispatcher,Ts=y.ReactCurrentOwner,bs=y.ReactCurrentBatchConfig,Ds=0,Ls=null,ws=null,Ps=0,ks=0,Ms=Na(0),Fs=0,Us=null,xs=0,Hs=0,js=0,Bs=null,Gs=null,Vs=0,zs=1/0,Ys=null,Ws=!1,Ks=null,Zs=null,qs=!1,Xs=null,Js=0,Qs=0,$s=null,eu=-1,tu=0;function nu(){return 0!=(6&Ds)?$e():-1!==eu?eu:eu=$e()}function ru(e){return 0==(1&e.mode)?1:0!=(2&Ds)&&0!==Ps?Ps&-Ps:null!==Co.transition?(0===tu&&(tu=Et()),tu):0!==(e=gt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function au(e,t,n,r){if(50<Qs)throw Qs=0,$s=null,Error(i(185));vt(e,n,r),0!=(2&Ds)&&e===Ls||(e===Ls&&(0==(2&Ds)&&(Hs|=n),4===Fs&&uu(e,Ps)),ou(e,r),1===n&&0===Ds&&0==(1&t.mode)&&(zs=$e()+500,Ba&&za()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-st(o),l=1<<i,s=a[i];-1===s?0!=(l&n)&&0==(l&r)||(a[i]=mt(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=_t(e,e===Ls?Ps:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){Ba=!0,Va(e)}(cu.bind(null,e)):Va(cu.bind(null,e)),sa((function(){0==(6&Ds)&&za()})),n=null;else{switch(yt(r)){case 1:n=tt;break;case 4:n=nt;break;case 16:default:n=rt;break;case 536870912:n=ot}n=Lu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(eu=-1,tu=0,0!=(6&Ds))throw Error(i(327));var n=e.callbackNode;if(Ou()&&e.callbackNode!==n)return null;var r=_t(e,e===Ls?Ps:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Cu(e,r);else{t=r;var a=Ds;Ds|=2;var o=hu();for(Ls===e&&Ps===t||(Ys=null,zs=$e()+500,_u(e,t));;)try{Su();break}catch(s){mu(e,s)}Oo(),As.current=o,Ds=a,null!==ws?t=0:(Ls=null,Ps=0,t=Fs)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=lu(e,a))),1===t)throw n=Us,_u(e,0),uu(e,r),ou(e,$e()),n;if(6===t)uu(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!ur(o(),a))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=Cu(e,r))&&(0!==(o=ht(e))&&(r=o,t=lu(e,o))),1===t))throw n=Us,_u(e,0),uu(e,r),ou(e,$e()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Iu(e,Gs,Ys);break;case 3:if(uu(e,r),(130023424&r)===r&&10<(t=Vs+500-$e())){if(0!==_t(e,0))break;if(((a=e.suspendedLanes)&r)!==r){nu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=oa(Iu.bind(null,e,Gs,Ys),t);break}Iu(e,Gs,Ys);break;case 4:if(uu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-st(r);o=1<<l,(l=t[l])>a&&(a=l),r&=~o}if(r=a,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ns(r/1960))-r)){e.timeoutHandle=oa(Iu.bind(null,e,Gs,Ys),r);break}Iu(e,Gs,Ys);break;default:throw Error(i(329))}}}return ou(e,$e()),e.callbackNode===n?iu.bind(null,e):null}function lu(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(_u(e,t).flags|=256),2!==(e=Cu(e,t))&&(t=Gs,Gs=n,null!==t&&su(t)),e}function su(e){null===Gs?Gs=e:Gs.push.apply(Gs,e)}function uu(e,t){for(t&=~js,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cu(e){if(0!=(6&Ds))throw Error(i(327));Ou();var t=_t(e,0);if(0==(1&t))return ou(e,$e()),null;var n=Cu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=lu(e,r))}if(1===n)throw n=Us,_u(e,0),uu(e,t),ou(e,$e()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Iu(e,Gs,Ys),ou(e,$e()),null}function du(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&(zs=$e()+500,Ba&&za())}}function fu(e){null!==Xs&&0===Xs.tag&&0==(6&Ds)&&Ou();var t=Ds;Ds|=1;var n=bs.transition,r=gt;try{if(bs.transition=null,gt=1,e)return e()}finally{gt=r,bs.transition=n,0==(6&(Ds=t))&&za()}}function pu(){ks=Ms.current,Aa(Ms)}function _u(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ia(n)),null!==ws)for(n=ws.return;null!==n;){var r=n;switch(ro(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ma();break;case 3:li(),Aa(La),Aa(Da),pi();break;case 5:ui(r);break;case 4:li();break;case 13:case 19:Aa(ci);break;case 10:Ro(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Ls=e,ws=e=Mu(e.current,null),Ps=ks=t,Fs=0,Us=null,js=Hs=xs=0,Gs=Bs=null,null!==bo){for(t=0;t<bo.length;t++)if(null!==(r=(n=bo[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}bo=null}return e}function mu(e,t){for(;;){var n=ws;try{if(Oo(),_i.current=sl,Si){for(var a=Ei.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}Si=!1}if(hi=0,vi=Ci=Ei=null,gi=!1,yi=0,Ts.current=null,null===n||null===n.return){Fs=1,Us=t,ws=null;break}e:{var l=e,s=n.return,u=n,c=t;if(t=Ps,u.flags|=32768,null!==c&&\"object\"===r(c)&&\"function\"==typeof c.then){var d=c,f=u,p=f.tag;if(0==(1&f.mode)&&(0===p||11===p||15===p)){var _=f.alternate;_?(f.updateQueue=_.updateQueue,f.memoizedState=_.memoizedState,f.lanes=_.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=vl(s);if(null!==m){m.flags&=-257,Sl(m,s,u,0,t),1&m.mode&&Cl(l,d,t),c=d;var h=(t=m).updateQueue;if(null===h){var E=new Set;E.add(c),t.updateQueue=E}else h.add(c);break e}if(0==(1&t)){Cl(l,d,t),Eu();break e}c=Error(i(426))}else if(io&&1&u.mode){var C=vl(s);if(null!==C){0==(65536&C.flags)&&(C.flags|=256),Sl(C,s,u,0,t),Eo(fl(c,u));break e}}l=c=fl(c,u),4!==Fs&&(Fs=2),null===Bs?Bs=[l]:Bs.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,Ho(l,hl(0,c,t));break e;case 1:u=c;var v=l.type,S=l.stateNode;if(0==(128&l.flags)&&(\"function\"==typeof v.getDerivedStateFromError||null!==S&&\"function\"==typeof S.componentDidCatch&&(null===Zs||!Zs.has(S)))){l.flags|=65536,t&=-t,l.lanes|=t,Ho(l,El(l,u,t));break e}}l=l.return}while(null!==l)}yu(n)}catch(g){t=g,ws===n&&null!==n&&(ws=n=n.return);continue}break}}function hu(){var e=As.current;return As.current=sl,null===e?sl:e}function Eu(){0!==Fs&&3!==Fs&&2!==Fs||(Fs=4),null===Ls||0==(268435455&xs)&&0==(268435455&Hs)||uu(Ls,Ps)}function Cu(e,t){var n=Ds;Ds|=2;var r=hu();for(Ls===e&&Ps===t||(Ys=null,_u(e,t));;)try{vu();break}catch(a){mu(e,a)}if(Oo(),Ds=n,As.current=r,null!==ws)throw Error(i(261));return Ls=null,Ps=0,Fs}function vu(){for(;null!==ws;)gu(ws)}function Su(){for(;null!==ws&&!Je();)gu(ws)}function gu(e){var t=Rs(e.alternate,e,ks);e.memoizedProps=e.pendingProps,null===t?yu(e):ws=t,Ts.current=null}function yu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=ql(n,t,ks)))return void(ws=n)}else{if(null!==(n=Xl(n,t)))return n.flags&=32767,void(ws=n);if(null===e)return Fs=6,void(ws=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(ws=t);ws=t=e}while(null!==t);0===Fs&&(Fs=5)}function Iu(e,t,n){var r=gt,a=bs.transition;try{bs.transition=null,gt=1,function(e,t,n,r){do{Ou()}while(null!==Xs);if(0!=(6&Ds))throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,o),e===Ls&&(ws=Ls=null,Ps=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||qs||(qs=!0,Lu(rt,(function(){return Ou(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=bs.transition,bs.transition=null;var l=gt;gt=1;var s=Ds;Ds|=4,Ts.current=null,function(e,t){if(na=Wt,mr(e=_r())){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(g){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var _;f!==n||0!==a&&3!==f.nodeType||(s=l+a),f!==o||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(_=f.firstChild);)p=f,f=_;for(;;){if(f===e)break t;if(p===n&&++c===a&&(s=l),p===o&&++d===r&&(u=l),null!==(_=f.nextSibling))break;p=(f=p).parentNode}f=_}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ra={focusedElem:e,selectionRange:n},Wt=!1,es=t;null!==es;)if(e=(t=es).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,es=e;else for(;null!==es;){t=es;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,E=m.memoizedState,C=t.stateNode,v=C.getSnapshotBeforeUpdate(t.elementType===t.type?h:vo(t.type,h),E);C.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent=\"\":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(i(163))}}catch(g){Nu(t,t.return,g)}if(null!==(e=t.sibling)){e.return=t.return,es=e;break}es=t.return}m=rs,rs=!1}(e,n),Cs(n,e),hr(ra),Wt=!!na,ra=na=null,e.current=n,Ss(n,e,a),Qe(),Ds=s,gt=l,bs.transition=o}else e.current=n;if(qs&&(qs=!1,Xs=e,Js=a),0===(o=e.pendingLanes)&&(Zs=null),function(e){if(lt&&\"function\"==typeof lt.onCommitFiberRoot)try{lt.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if(Ws)throw Ws=!1,e=Ks,Ks=null,e;0!=(1&Js)&&0!==e.tag&&Ou(),0!=(1&(o=e.pendingLanes))?e===$s?Qs++:(Qs=0,$s=e):Qs=0,za()}(e,t,n,r)}finally{bs.transition=a,gt=r}return null}function Ou(){if(null!==Xs){var e=yt(Js),t=bs.transition,n=gt;try{if(bs.transition=null,gt=16>e?16:e,null===Xs)var r=!1;else{if(e=Xs,Xs=null,Js=0,0!=(6&Ds))throw Error(i(331));var a=Ds;for(Ds|=4,es=e.current;null!==es;){var o=es,l=o.child;if(0!=(16&es.flags)){var s=o.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(es=c;null!==es;){var d=es;switch(d.tag){case 0:case 11:case 15:as(8,d,o)}var f=d.child;if(null!==f)f.return=d,es=f;else for(;null!==es;){var p=(d=es).sibling,_=d.return;if(ls(d),d===c){es=null;break}if(null!==p){p.return=_,es=p;break}es=_}}}var m=o.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var E=h.sibling;h.sibling=null,h=E}while(null!==h)}}es=o}}if(0!=(2064&o.subtreeFlags)&&null!==l)l.return=o,es=l;else e:for(;null!==es;){if(0!=(2048&(o=es).flags))switch(o.tag){case 0:case 11:case 15:as(9,o,o.return)}var C=o.sibling;if(null!==C){C.return=o.return,es=C;break e}es=o.return}}var v=e.current;for(es=v;null!==es;){var S=(l=es).child;if(0!=(2064&l.subtreeFlags)&&null!==S)S.return=l,es=S;else e:for(l=v;null!==es;){if(0!=(2048&(s=es).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(y){Nu(s,s.return,y)}if(s===l){es=null;break e}var g=s.sibling;if(null!==g){g.return=s.return,es=g;break e}es=s.return}}if(Ds=a,za(),lt&&\"function\"==typeof lt.onPostCommitFiberRoot)try{lt.onPostCommitFiberRoot(it,e)}catch(y){}r=!0}return r}finally{gt=n,bs.transition=t}}return!1}function Ru(e,t,n){e=Uo(e,t=hl(0,t=fl(n,t),1),1),t=nu(),null!==e&&(vt(e,1,t),ou(e,t))}function Nu(e,t,n){if(3===e.tag)Ru(e,e,n);else for(;null!==t;){if(3===t.tag){Ru(t,e,n);break}if(1===t.tag){var r=t.stateNode;if(\"function\"==typeof t.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){t=Uo(t,e=El(t,e=fl(n,e),1),1),e=nu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Au(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=nu(),e.pingedLanes|=e.suspendedLanes&n,Ls===e&&(Ps&n)===n&&(4===Fs||3===Fs&&(130023424&Ps)===Ps&&500>$e()-Vs?_u(e,0):js|=n),ou(e,t)}function Tu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ft,0==(130023424&(ft<<=1))&&(ft=4194304)));var n=nu();null!==(e=wo(e,t))&&(vt(e,t,n),ou(e,n))}function bu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Du(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tu(e,n)}function Lu(e,t){return qe(e,t)}function wu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new wu(e,t,n,r)}function ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fu(e,t,n,a,o,l){var s=2;if(a=e,\"function\"==typeof e)ku(e)&&(s=1);else if(\"string\"==typeof e)s=5;else e:switch(e){case R:return Uu(n.children,o,l,t);case N:s=8,o|=8;break;case A:return(e=Pu(12,n,t,2|o)).elementType=A,e.lanes=l,e;case L:return(e=Pu(13,n,t,o)).elementType=L,e.lanes=l,e;case w:return(e=Pu(19,n,t,o)).elementType=w,e.lanes=l,e;case M:return xu(n,o,l,t);default:if(\"object\"===r(e)&&null!==e)switch(e.$$typeof){case T:s=10;break e;case b:s=9;break e;case D:s=11;break e;case P:s=14;break e;case k:s=16,a=null;break e}throw Error(i(130,null==e?e:r(e),\"\"))}return(t=Pu(s,n,t,o)).elementType=e,t.type=a,t.lanes=l,t}function Uu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function xu(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Hu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ct(0),this.expirationTimes=Ct(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ct(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r,a,o,i,l,s){return e=new Bu(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ko(o),e}function Vu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==r?null:\"\"+r,children:e,containerInfo:t,implementation:n}}function zu(e){if(!e)return ba;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ka(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(ka(n))return Ua(e,n,t)}return t}function Yu(e,t,n,r,a,o,i,l,s){return(e=Gu(n,r,!0,e,0,o,0,l,s)).context=zu(null),n=e.current,(o=Fo(r=nu(),a=ru(n))).callback=null!=t?t:null,Uo(n,o,a),e.current.lanes=a,vt(e,a,r),ou(e,r),e}function Wu(e,t,n,r){var a=t.current,o=nu(),i=ru(a);return n=zu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(a,t,i))&&(au(e,a,i,o),xo(e,a,i)),i}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}Rs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||La.current)yl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:wl(t),ho();break;case 5:si(t);break;case 1:ka(t.type)&&xa(t);break;case 4:ii(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ta(So,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ta(ci,1&ci.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Hl(e,t,n):(Ta(ci,1&ci.current),null!==(e=Wl(e,t,n))?e.sibling:null);Ta(ci,1&ci.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return zl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ta(ci,ci.current),r)break;return null;case 22:case 23:return t.lanes=0,Al(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=0!=(131072&e.flags)}else yl=!1,io&&0!=(1048576&t.flags)&&to(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Yl(e,t),e=t.pendingProps;var o=Pa(t,Da.current);Ao(t,n),o=Ni(null,t,a,e,o,n);var l=Ai();return t.flags|=1,\"object\"===r(o)&&null!==o&&\"function\"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ka(a)?(l=!0,xa(t)):l=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ko(t),o.updater=zo,t.stateNode=o,o._reactInternals=t,Zo(t,a,e,n),t=Ll(null,t,a,!0,l,n)):(t.tag=0,io&&l&&no(t),Il(null,t,o,n),t=t.child),t;case 16:a=t.elementType;e:{switch(Yl(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if(\"function\"==typeof e)return ku(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===P)return 14}return 2}(a),e=vo(a,e),o){case 0:t=bl(null,t,a,e,n);break e;case 1:t=Dl(null,t,a,e,n);break e;case 11:t=Ol(null,t,a,e,n);break e;case 14:t=Rl(null,t,a,vo(a.type,e),n);break e}throw Error(i(306,a,\"\"))}return t;case 0:return a=t.type,o=t.pendingProps,bl(e,t,a,o=t.elementType===a?o:vo(a,o),n);case 1:return a=t.type,o=t.pendingProps,Dl(e,t,a,o=t.elementType===a?o:vo(a,o),n);case 3:e:{if(wl(t),null===e)throw Error(i(387));a=t.pendingProps,o=(l=t.memoizedState).element,Mo(e,t),jo(t,a,null,n);var s=t.memoizedState;if(a=s.element,l.isDehydrated){if(l={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,256&t.flags){t=Pl(e,t,a,n,o=fl(Error(i(423)),t));break e}if(a!==o){t=Pl(e,t,a,n,o=fl(Error(i(424)),t));break e}for(oo=da(t.stateNode.containerInfo.firstChild),ao=t,io=!0,lo=null,n=ei(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),a===o){t=Wl(e,t,n);break e}Il(e,t,a,n)}t=t.child}return t;case 5:return si(t),null===e&&fo(t),a=t.type,o=t.pendingProps,l=null!==e?e.memoizedProps:null,s=o.children,aa(a,o)?s=null:null!==l&&aa(a,l)&&(t.flags|=32),Tl(e,t),Il(e,t,s,n),t.child;case 6:return null===e&&fo(t),null;case 13:return Hl(e,t,n);case 4:return ii(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=$o(t,null,a,n):Il(e,t,a,n),t.child;case 11:return a=t.type,o=t.pendingProps,Ol(e,t,a,o=t.elementType===a?o:vo(a,o),n);case 7:return Il(e,t,t.pendingProps,n),t.child;case 8:case 12:return Il(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,Ta(So,a._currentValue),a._currentValue=s,null!==l)if(ur(l.value,s)){if(l.children===o.children&&!La.current){t=Wl(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===a){if(1===l.tag){(c=Fo(-1,n&-n)).tag=2;var d=l.updateQueue;if(null!==d){var f=(d=d.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),No(l.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===l.tag)s=l.type===t.type?null:l.child;else if(18===l.tag){if(null===(s=l.return))throw Error(i(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),No(s,n,t),s=l.sibling}else s=l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Il(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Ao(t,n),a=a(o=To(o)),t.flags|=1,Il(e,t,a,n),t.child;case 14:return o=vo(a=t.type,t.pendingProps),Rl(e,t,a,o=vo(a.type,o),n);case 15:return Nl(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:vo(a,o),Yl(e,t),t.tag=1,ka(a)?(e=!0,xa(t)):e=!1,Ao(t,n),Wo(t,a,o),Zo(t,a,o,n),Ll(null,t,a,!0,e,n);case 19:return zl(e,t,n);case 22:return Al(e,t,n)}throw Error(i(156,t.tag))};var Xu=\"function\"==typeof reportError?reportError:function(e){console.error(e)};function Ju(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function $u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function ec(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function tc(){}function nc(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if(\"function\"==typeof a){var l=a;a=function(){var e=Ku(i);l.call(e)}}Wu(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if(\"function\"==typeof r){var o=r;r=function(){var e=Ku(i);o.call(e)}}var i=Yu(t,r,e,0,null,!1,0,\"\",tc);return e._reactRootContainer=i,e[ha]=i.current,zr(8===e.nodeType?e.parentNode:e),fu(),i}for(;a=e.lastChild;)e.removeChild(a);if(\"function\"==typeof r){var l=r;r=function(){var e=Ku(s);l.call(e)}}var s=Gu(e,0,!1,null,0,!1,0,\"\",tc);return e._reactRootContainer=s,e[ha]=s.current,zr(8===e.nodeType?e.parentNode:e),fu((function(){Wu(t,s,n,r)})),s}(n,t,e,a,r);return Ku(i)}Qu.prototype.render=Ju.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wu(e,t,null,null)},Qu.prototype.unmount=Ju.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fu((function(){Wu(null,e,null,null)})),t[ha]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Ht(e)}},It=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(St(t,1|n),ou(t,$e()),0==(6&Ds)&&(zs=$e()+500,za()))}break;case 13:fu((function(){var t=wo(e,1);if(null!==t){var n=nu();au(t,e,1,n)}})),qu(e,1)}},Ot=function(e){if(13===e.tag){var t=wo(e,134217728);if(null!==t)au(t,e,134217728,nu());qu(e,134217728)}},Rt=function(e){if(13===e.tag){var t=ru(e),n=wo(e,t);if(null!==n)au(n,e,t,nu());qu(e,t)}},Nt=function(){return gt},At=function(e,t){var n=gt;try{return gt=e,t()}finally{gt=n}},Oe=function(e,t,n){switch(t){case\"input\":if(ee(e,n),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ia(r);if(!a)throw Error(i(90));q(r),ee(r,a)}}}break;case\"textarea\":le(e,n);break;case\"select\":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},De=du,Le=fu;var rc={usingClientEntryPoint:!1,Events:[ga,ya,Ia,Te,be,du]},ac={findFiberByHostInstance:Sa,bundleType:0,version:\"18.2.0\",rendererPackageName:\"react-dom\"},oc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.2.0-next-9e3b772b8-20220608\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(oc),lt=ic}catch(fe){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$u(t))throw Error(i(200));return Vu(e,t,null,n)},t.createRoot=function(e,t){if(!$u(e))throw Error(i(299));var n=!1,r=\"\",a=Xu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Gu(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,zr(8===e.nodeType?e.parentNode:e),new Ju(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if(\"function\"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(\",\"),Error(i(268,e))}return e=null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return fu(e)},t.hydrate=function(e,t,n){if(!ec(t))throw Error(i(200));return nc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$u(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,a=!1,o=\"\",l=Xu;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Yu(t,null,e,1,null!=n?n:null,a,0,o,l),e[ha]=t.current,zr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Qu(t)},t.render=function(e,t,n){if(!ec(t))throw Error(i(200));return nc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ec(e))throw Error(i(40));return!!e._reactRootContainer&&(fu((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=du,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ec(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return nc(e,t,n,!1,r)},t.version=\"18.2.0-next-9e3b772b8-20220608\"},\"./node_modules/react-dom/client.js\":function(e,t,n){var r=n(\"./node_modules/react-dom/index.js\");t.s=r.createRoot,r.hydrateRoot},\"./node_modules/react-dom/index.js\":function(e,t,n){!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(\"./node_modules/react-dom/cjs/react-dom.production.min.js\")},\"./node_modules/react/cjs/react.production.min.js\":function(e,t){function n(e){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},n(e)}var r=Symbol.for(\"react.element\"),a=Symbol.for(\"react.portal\"),o=Symbol.for(\"react.fragment\"),i=Symbol.for(\"react.strict_mode\"),l=Symbol.for(\"react.profiler\"),s=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),c=Symbol.for(\"react.forward_ref\"),d=Symbol.for(\"react.suspense\"),f=Symbol.for(\"react.memo\"),p=Symbol.for(\"react.lazy\"),_=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,E={};function C(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||m}function v(){}function S(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||m}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if(\"object\"!==n(e)&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},v.prototype=C.prototype;var g=S.prototype=new v;g.constructor=S,h(g,C.prototype),g.isPureReactComponent=!0;var y=Array.isArray,I=Object.prototype.hasOwnProperty,O={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var a,o={},i=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=\"\"+t.key),t)I.call(t,a)&&!R.hasOwnProperty(a)&&(o[a]=t[a]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===o[a]&&(o[a]=s[a]);return{$$typeof:r,type:e,key:i,ref:l,props:o,_owner:O.current}}function A(e){return\"object\"===n(e)&&null!==e&&e.$$typeof===r}var T=/\\/+/g;function b(e,t){return\"object\"===n(e)&&null!==e&&null!=e.key?function(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,(function(e){return t[e]}))}(\"\"+e.key):t.toString(36)}function D(e,t,o,i,l){var s=n(e);\"undefined\"!==s&&\"boolean\"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case\"string\":case\"number\":u=!0;break;case\"object\":switch(e.$$typeof){case r:case a:u=!0}}if(u)return l=l(u=e),e=\"\"===i?\".\"+b(u,0):i,y(l)?(o=\"\",null!=e&&(o=e.replace(T,\"$&/\")+\"/\"),D(l,t,o,\"\",(function(e){return e}))):null!=l&&(A(l)&&(l=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,o+(!l.key||u&&u.key===l.key?\"\":(\"\"+l.key).replace(T,\"$&/\")+\"/\")+e)),t.push(l)),1;if(u=0,i=\"\"===i?\".\":i+\":\",y(e))for(var c=0;c<e.length;c++){var d=i+b(s=e[c],c);u+=D(s,t,o,d,l)}else if(d=function(e){return null===e||\"object\"!==n(e)?null:\"function\"==typeof(e=_&&e[_]||e[\"@@iterator\"])?e:null}(e),\"function\"==typeof d)for(e=d.call(e),c=0;!(s=e.next()).done;)u+=D(s=s.value,t,o,d=i+b(s,c++),l);else if(\"object\"===s)throw t=String(e),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===t?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t)+\"). If you meant to render a collection of children, use an array instead.\");return u}function L(e,t,n){if(null==e)return e;var r=[],a=0;return D(e,r,\"\",\"\",(function(e){return t.call(n,e,a++)})),r}function w(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},k={transition:null},M={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:k,ReactCurrentOwner:O};t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},t.Component=C,t.Fragment=o,t.Profiler=l,t.PureComponent=S,t.StrictMode=i,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null==e)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var a=h({},e.props),o=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=O.current),void 0!==t.key&&(o=\"\"+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)I.call(t,u)&&!R.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:r,type:e.type,key:o,ref:i,props:a,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=N,t.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:w}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.transition;k.transition={};try{e()}finally{k.transition=t}},t.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version=\"18.2.0\"},\"./node_modules/react/index.js\":function(e,t,n){e.exports=n(\"./node_modules/react/cjs/react.production.min.js\")},\"./node_modules/scheduler/cjs/scheduler.production.min.js\":function(e,t){function n(e){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},n(e)}function r(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function a(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<a&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(\"object\"===(\"undefined\"==typeof performance?\"undefined\":n(performance))&&\"function\"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],d=[],f=1,p=null,_=3,m=!1,h=!1,E=!1,C=\"function\"==typeof setTimeout?setTimeout:null,v=\"function\"==typeof clearTimeout?clearTimeout:null,S=\"undefined\"!=typeof setImmediate?setImmediate:null;function g(e){for(var t=a(d);null!==t;){if(null===t.callback)o(d);else{if(!(t.startTime<=e))break;o(d),t.sortIndex=t.expirationTime,r(c,t)}t=a(d)}}function y(e){if(E=!1,g(e),!h)if(null!==a(c))h=!0,k(I);else{var t=a(d);null!==t&&M(y,t.startTime-e)}}function I(e,n){h=!1,E&&(E=!1,v(A),A=-1),m=!0;var r=_;try{for(g(n),p=a(c);null!==p&&(!(p.expirationTime>n)||e&&!D());){var i=p.callback;if(\"function\"==typeof i){p.callback=null,_=p.priorityLevel;var l=i(p.expirationTime<=n);n=t.unstable_now(),\"function\"==typeof l?p.callback=l:p===a(c)&&o(c),g(n)}else o(c);p=a(c)}if(null!==p)var s=!0;else{var u=a(d);null!==u&&M(y,u.startTime-n),s=!1}return s}finally{p=null,_=r,m=!1}}\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O,R=!1,N=null,A=-1,T=5,b=-1;function D(){return!(t.unstable_now()-b<T)}function L(){if(null!==N){var e=t.unstable_now();b=e;var n=!0;try{n=N(!0,e)}finally{n?O():(R=!1,N=null)}}else R=!1}if(\"function\"==typeof S)O=function(){S(L)};else if(\"undefined\"!=typeof MessageChannel){var w=new MessageChannel,P=w.port2;w.port1.onmessage=L,O=function(){P.postMessage(null)}}else O=function(){C(L,0)};function k(e){N=e,R||(R=!0,O())}function M(e,n){A=C((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,k(I))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return a(c)},t.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},t.unstable_scheduleCallback=function(e,o,i){var l=t.unstable_now();switch(\"object\"===n(i)&&null!==i?i=\"number\"==typeof(i=i.delay)&&0<i?l+i:l:i=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>l?(e.sortIndex=i,r(d,e),null===a(c)&&e===a(d)&&(E?(v(A),A=-1):E=!0,M(y,i-l))):(e.sortIndex=s,r(c,e),h||m||(h=!0,k(I))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}}},\"./node_modules/scheduler/index.js\":function(e,t,n){e.exports=n(\"./node_modules/scheduler/cjs/scheduler.production.min.js\")},\"./node_modules/ua-parser-js/dist/ua-parser.min.js\":function(e,t,n){var r;function a(e){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},a(e)}e=n.nmd(e),function(o,i){var l=\"function\",s=\"undefined\",u=\"object\",c=\"string\",d=\"model\",f=\"name\",p=\"type\",_=\"vendor\",m=\"version\",h=\"architecture\",E=\"console\",C=\"mobile\",v=\"tablet\",S=\"smarttv\",g=\"wearable\",y=\"embedded\",I=\"Amazon\",O=\"Apple\",R=\"ASUS\",N=\"BlackBerry\",A=\"Firefox\",T=\"Google\",b=\"Huawei\",D=\"LG\",L=\"Microsoft\",w=\"Motorola\",P=\"Opera\",k=\"Samsung\",M=\"Sharp\",F=\"Sony\",U=\"Xiaomi\",x=\"Zebra\",H=\"Facebook\",j=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},B=function(e,t){return a(e)===c&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},V=function(e,t){if(a(e)===c)return e=e.replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\"),a(t)===s?e:e.substring(0,350)},z=function(e,t){for(var n,r,o,s,c,d,f=0;f<t.length&&!c;){var p=t[f],_=t[f+1];for(n=r=0;n<p.length&&!c;)if(c=p[n++].exec(e))for(o=0;o<_.length;o++)d=c[++r],a(s=_[o])===u&&s.length>0?2===s.length?a(s[1])==l?this[s[0]]=s[1].call(this,d):this[s[0]]=s[1]:3===s.length?a(s[1])!==l||s[1].exec&&s[1].test?this[s[0]]=d?d.replace(s[1],s[2]):i:this[s[0]]=d?s[1].call(this,d,s[2]):i:4===s.length&&(this[s[0]]=d?s[3].call(this,d.replace(s[1],s[2])):i):this[s]=d||i;f+=2}},Y=function(e,t){for(var n in t)if(a(t[n])===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(B(t[n][r],e))return\"?\"===n?i:n}else if(B(t[n],e))return\"?\"===n?i:n;return e},W={ME:\"4.90\",\"NT 3.11\":\"NT3.51\",\"NT 4.0\":\"NT4.0\",2e3:\"NT 5.0\",XP:[\"NT 5.1\",\"NT 5.2\"],Vista:\"NT 6.0\",7:\"NT 6.1\",8:\"NT 6.2\",8.1:\"NT 6.3\",10:[\"NT 6.4\",\"NT 10.0\"],RT:\"ARM\"},K={browser:[[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[m,[f,\"Chrome\"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[m,[f,\"Edge\"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[f,m],[/opios[\\/ ]+([\\w\\.]+)/i],[m,[f,\"Opera Mini\"]],[/\\bopr\\/([\\w\\.]+)/i],[m,[f,P]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[f,m],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[m,[f,\"UCBrowser\"]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[m,[f,\"WeChat(Win) Desktop\"]],[/micromessenger\\/([\\w\\.]+)/i],[m,[f,\"WeChat\"]],[/konqueror\\/([\\w\\.]+)/i],[m,[f,\"Konqueror\"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[m,[f,\"IE\"]],[/yabrowser\\/([\\w\\.]+)/i],[m,[f,\"Yandex\"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[f,/(.+)/,\"$1 Secure Browser\"],m],[/\\bfocus\\/([\\w\\.]+)/i],[m,[f,\"Firefox Focus\"]],[/\\bopt\\/([\\w\\.]+)/i],[m,[f,\"Opera Touch\"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[m,[f,\"Coc Coc\"]],[/dolfin\\/([\\w\\.]+)/i],[m,[f,\"Dolphin\"]],[/coast\\/([\\w\\.]+)/i],[m,[f,\"Opera Coast\"]],[/miuibrowser\\/([\\w\\.]+)/i],[m,[f,\"MIUI Browser\"]],[/fxios\\/([-\\w\\.]+)/i],[m,[f,A]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[f,\"360 Browser\"]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[f,/(.+)/,\"$1 Browser\"],m],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[f,/_/g,\" \"],m],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[f,m],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[f],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[f,H],m],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[f,m],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[m,[f,\"GSA\"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[m,[f,\"Chrome Headless\"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[f,\"Chrome WebView\"],m],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[m,[f,\"Android Browser\"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[f,m],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[m,[f,\"Mobile Safari\"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[f,[m,Y,{\"1.0\":\"/8\",1.2:\"/1\",1.3:\"/3\",\"2.0\":\"/412\",\"2.0.2\":\"/416\",\"2.0.3\":\"/417\",\"2.0.4\":\"/419\",\"?\":\"/\"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[f,m],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[f,\"Netscape\"],m],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[m,[f,\"Firefox Reality\"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[f,m]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[h,\"amd64\"]],[/(ia32(?=;))/i],[[h,G]],[/((?:i[346]|x)86)[;\\)]/i],[[h,\"ia32\"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[h,\"arm64\"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[h,\"armhf\"]],[/windows (ce|mobile); ppc;/i],[[h,\"arm\"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[h,/ower/,\"\",G]],[/(sun4\\w)[;\\)]/i],[[h,\"sparc\"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[h,G]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[_,k],[p,v]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[d,[_,k],[p,C]],[/\\((ip(?:hone|od)[\\w ]*);/i],[d,[_,O],[p,C]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[d,[_,O],[p,v]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[d,[_,b],[p,v]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[d,[_,b],[p,C]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[d,/_/g,\" \"],[_,U],[p,C]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[d,/_/g,\" \"],[_,U],[p,v]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[d,[_,\"OPPO\"],[p,C]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[d,[_,\"Vivo\"],[p,C]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[d,[_,\"Realme\"],[p,C]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[d,[_,w],[p,C]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[d,[_,w],[p,v]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[_,D],[p,v]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[d,[_,D],[p,C]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[d,[_,\"Lenovo\"],[p,v]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[d,/_/g,\" \"],[_,\"Nokia\"],[p,C]],[/(pixel c)\\b/i],[d,[_,T],[p,v]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[d,[_,T],[p,C]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[d,[_,F],[p,C]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[d,\"Xperia Tablet\"],[_,F],[p,v]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[d,[_,\"OnePlus\"],[p,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[d,[_,I],[p,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[d,/(.+)/g,\"Fire Phone $1\"],[_,I],[p,C]],[/(playbook);[-\\w\\),; ]+(rim)/i],[d,_,[p,v]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[d,[_,N],[p,C]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[d,[_,R],[p,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[d,[_,R],[p,C]],[/(nexus 9)/i],[d,[_,\"HTC\"],[p,v]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[_,[d,/_/g,\" \"],[p,C]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[d,[_,\"Acer\"],[p,v]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[d,[_,\"Meizu\"],[p,C]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[d,[_,M],[p,C]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[_,d,[p,C]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[_,d,[p,v]],[/(surface duo)/i],[d,[_,L],[p,v]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[d,[_,\"Fairphone\"],[p,C]],[/(u304aa)/i],[d,[_,\"AT&T\"],[p,C]],[/\\bsie-(\\w*)/i],[d,[_,\"Siemens\"],[p,C]],[/\\b(rct\\w+) b/i],[d,[_,\"RCA\"],[p,v]],[/\\b(venue[\\d ]{2,7}) b/i],[d,[_,\"Dell\"],[p,v]],[/\\b(q(?:mv|ta)\\w+) b/i],[d,[_,\"Verizon\"],[p,v]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[d,[_,\"Barnes & Noble\"],[p,v]],[/\\b(tm\\d{3}\\w+) b/i],[d,[_,\"NuVision\"],[p,v]],[/\\b(k88) b/i],[d,[_,\"ZTE\"],[p,v]],[/\\b(nx\\d{3}j) b/i],[d,[_,\"ZTE\"],[p,C]],[/\\b(gen\\d{3}) b.+49h/i],[d,[_,\"Swiss\"],[p,C]],[/\\b(zur\\d{3}) b/i],[d,[_,\"Swiss\"],[p,v]],[/\\b((zeki)?tb.*\\b) b/i],[d,[_,\"Zeki\"],[p,v]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[_,\"Dragon Touch\"],d,[p,v]],[/\\b(ns-?\\w{0,9}) b/i],[d,[_,\"Insignia\"],[p,v]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[d,[_,\"NextBook\"],[p,v]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[_,\"Voice\"],d,[p,C]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[_,\"LvTel\"],d,[p,C]],[/\\b(ph-1) /i],[d,[_,\"Essential\"],[p,C]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[d,[_,\"Envizen\"],[p,v]],[/\\b(trio[-\\w\\. ]+) b/i],[d,[_,\"MachSpeed\"],[p,v]],[/\\btu_(1491) b/i],[d,[_,\"Rotor\"],[p,v]],[/(shield[\\w ]+) b/i],[d,[_,\"Nvidia\"],[p,v]],[/(sprint) (\\w+)/i],[_,d,[p,C]],[/(kin\\.[onetw]{3})/i],[[d,/\\./g,\" \"],[_,L],[p,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[d,[_,x],[p,v]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[d,[_,x],[p,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[_,d,[p,E]],[/droid.+; (shield) bui/i],[d,[_,\"Nvidia\"],[p,E]],[/(playstation [345portablevi]+)/i],[d,[_,F],[p,E]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[d,[_,L],[p,E]],[/smart-tv.+(samsung)/i],[_,[p,S]],[/hbbtv.+maple;(\\d+)/i],[[d,/^/,\"SmartTV\"],[_,k],[p,S]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[_,D],[p,S]],[/(apple) ?tv/i],[_,[d,\"Apple TV\"],[p,S]],[/crkey/i],[[d,\"Chromecast\"],[_,T],[p,S]],[/droid.+aft(\\w)( bui|\\))/i],[d,[_,I],[p,S]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[d,[_,M],[p,S]],[/(bravia[\\w ]+)( bui|\\))/i],[d,[_,F],[p,S]],[/(mitv-\\w{5}) bui/i],[d,[_,U],[p,S]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[_,V],[d,V],[p,S]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[p,S]],[/((pebble))app/i],[_,d,[p,g]],[/droid.+; (glass) \\d/i],[d,[_,T],[p,g]],[/droid.+; (wt63?0{2,3})\\)/i],[d,[_,x],[p,g]],[/(quest( 2)?)/i],[d,[_,H],[p,g]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[_,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[d,[p,C]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[d,[p,v]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[p,v]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[p,C]],[/(android[-\\w\\. ]{0,9});.+buil/i],[d,[_,\"Generic\"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[m,[f,\"EdgeHTML\"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[m,[f,\"Blink\"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[f,m],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[f,[m,Y,W]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[f,\"Windows\"],[m,Y,W]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[m,/_/g,\".\"],[f,\"iOS\"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[f,\"Mac OS\"],[m,/_/g,\".\"]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[f,m],[/\\(bb(10);/i],[m,[f,N]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[m,[f,\"Symbian\"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[m,[f,\"Firefox OS\"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[m,[f,\"webOS\"]],[/crkey\\/([\\d\\.]+)/i],[m,[f,\"Chromecast\"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[f,\"Chromium OS\"],m],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[f,m],[/(sunos) ?([\\w\\.\\d]*)/i],[[f,\"Solaris\"],m],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[f,m]]},Z=function e(t,n){if(a(t)===u&&(n=t,t=i),!(this instanceof e))return new e(t,n).getResult();var r=t||(a(o)!==s&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:\"\"),l=n?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(K,n):K;return this.getBrowser=function(){var e,t={};return t.name=i,t.version=i,z.call(t,r,l.browser),t.major=a(e=t.version)===c?e.replace(/[^\\d\\.]/g,\"\").split(\".\")[0]:i,t},this.getCPU=function(){var e={};return e.architecture=i,z.call(e,r,l.cpu),e},this.getDevice=function(){var e={};return e.vendor=i,e.model=i,e.type=i,z.call(e,r,l.device),e},this.getEngine=function(){var e={};return e.name=i,e.version=i,z.call(e,r,l.engine),e},this.getOS=function(){var e={};return e.name=i,e.version=i,z.call(e,r,l.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=a(e)===c&&e.length>350?V(e,350):e,this},this.setUA(r),this};Z.VERSION=\"1.0.32\",Z.BROWSER=j([f,m,\"major\"]),Z.CPU=j([h]),Z.DEVICE=j([d,_,p,E,C,S,v,g,y]),Z.ENGINE=Z.OS=j([f,m]),a(t)!==s?(a(e)!==s&&e.exports&&(t=e.exports=Z),t.UAParser=Z):a(n.amdD)===l&&n.amdO?(r=function(){return Z}.call(t,n,t,e))===i||(e.exports=r):a(o)!==s&&(o.UAParser=Z);var q=a(o)!==s&&(o.jQuery||o.Zepto);if(q&&!q.ua){var X=new Z;q.ua=X.getResult(),q.ua.get=function(){return X.getUA()},q.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var n in t)q.ua[n]=t[n]}}}(\"object\"===(\"undefined\"==typeof window?\"undefined\":a(window))?window:this)},\"./wasm/docreader/ProcMgr.worker.js\":function(){},\"./src/common/Button.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".kSNgLYE2Yx0pm4xPAfBO {\\n border: none;\\n margin: 0;\\n background: var(--main-color);\\n cursor: pointer;\\n text-align: center;\\n text-decoration: none;\\n font-family: var(--font-family);\\n font-size: 1em;\\n font-weight: normal;\\n line-height: 1.5em;\\n color: white;\\n appearance: none;\\n padding: 0.5em 2.15em;\\n border-radius: 2px;\\n transition: background 250ms ease-in-out, transform 150ms ease;\\n}\\n\\n.kSNgLYE2Yx0pm4xPAfBO:hover {\\n background: var(--hover-color);\\n}\\n\\n.kSNgLYE2Yx0pm4xPAfBO:active {\\n background: var(--active-color);\\n}\\n\",\"\"]),i.locals={button:\"kSNgLYE2Yx0pm4xPAfBO\"},t.Z=i},\"./src/common/InstructionIconFaceDetection.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".bg1lDSH3PfUvaKCjoLYX {\\n animation-name: bg1lDSH3PfUvaKCjoLYX;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n transform-origin: center;\\n}\\n\\n@keyframes bg1lDSH3PfUvaKCjoLYX {\\n 0% {\\n rx: 0;\\n ry: 0;\\n }\\n 8% {\\n rx: 32px;\\n ry: 42px;\\n }\\n 47% {\\n opacity: 1;\\n }\\n 50% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 0;\\n }\\n}\\n\\n.zyMSffpYO24FJL0MDkUI {\\n animation-name: zyMSffpYO24FJL0MDkUI;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n}\\n\\n\\n@keyframes zyMSffpYO24FJL0MDkUI {\\n 0% {\\n height: 0;\\n y: 70px;\\n }\\n 8% {\\n height: 30px;\\n y: 55px;\\n }\\n 13% {\\n height: 30px;\\n y: 55px;\\n }\\n 21% {\\n height: 0;\\n y: 70px;\\n }\\n 100% {\\n height: 0;\\n y: 70px;\\n }\\n}\\n\\n.xHju7kDkv1Jlmqyqsofy {\\n animation-name: xHju7kDkv1Jlmqyqsofy;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n}\\n\\n\\n@keyframes xHju7kDkv1Jlmqyqsofy {\\n 0% {\\n width: 0;\\n x: 150px;\\n }\\n 8% {\\n width: 30px;\\n x: 135px;\\n }\\n 13% {\\n width: 30px;\\n x: 135px;\\n }\\n 21% {\\n width: 0;\\n x: 150px;\\n }\\n 100% {\\n width: 0;\\n x: 150px;\\n }\\n}\\n\\n.n8QV7KyAsbNmc82eYrc0 {\\n animation-name: n8QV7KyAsbNmc82eYrc0;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n transform-origin: center;\\n}\\n\\n@keyframes n8QV7KyAsbNmc82eYrc0 {\\n 0% {\\n rx: 0;\\n ry: 0;\\n }\\n 8% {\\n rx: 35px;\\n ry: 45px;\\n }\\n 17% {\\n stroke-width: 2px;\\n }\\n 25% {\\n stroke-width: 3px;\\n }\\n 47% {\\n opacity: 1;\\n stroke-width: 3px;\\n }\\n 50% {\\n opacity: 0;\\n stroke-width: 3px;\\n }\\n 100% {\\n opacity: 0;\\n stroke-width: 3px;\\n }\\n}\\n\\n.Jh5t_do_IxxrN49wkQEg {\\n animation-name: Jh5t_do_IxxrN49wkQEg;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n transform-origin: center;\\n}\\n\\n@keyframes Jh5t_do_IxxrN49wkQEg {\\n 0% {\\n opacity: 0;\\n }\\n 10% {\\n opacity: 0;\\n transform: scale(1);\\n }\\n 17% {\\n opacity: 1;\\n }\\n 47% {\\n opacity: 1;\\n }\\n 50% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 0;\\n }\\n}\\n\\n.LEdHHkm_3ZSRJCAGgRTG {\\n animation-name: LEdHHkm_3ZSRJCAGgRTG;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n transform-origin: 267px 30px;\\n}\\n\\n@keyframes LEdHHkm_3ZSRJCAGgRTG {\\n 0% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n 20% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n 27% {\\n opacity: 1;\\n transform: scale(1);\\n }\\n 47% {\\n opacity: 1;\\n transform: scale(1);\\n }\\n 50% {\\n opacity: 0;\\n transform: scale(1);\\n }\\n 100% {\\n opacity: 0;\\n transform: scale(1);\\n }\\n}\\n\\n.dXvGxFENlVQbDd0qOdcB {\\n animation-name: dXvGxFENlVQbDd0qOdcB;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n transform-origin: 267px 35px;\\n}\\n\\n@keyframes dXvGxFENlVQbDd0qOdcB {\\n 0% {\\n opacity: 0;\\n }\\n 27% {\\n opacity: 0;\\n }\\n 28% {\\n opacity: 1;\\n }\\n 47% {\\n opacity: 1;\\n }\\n 50% {\\n opacity: 0;\\n }\\n 100% {\\n opacity: 0;\\n }\\n}\\n\\n.sTm3QRQnAiIAAOnPO578 {\\n animation-name: sTm3QRQnAiIAAOnPO578;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n}\\n\\n@keyframes sTm3QRQnAiIAAOnPO578 {\\n 0% {\\n opacity: 0;\\n transform: translate(92px, 25px) scale(1.7);\\n }\\n 47% {\\n opacity: 0;\\n transform: translate(92px, 25px) scale(1.7);\\n }\\n 55% {\\n opacity: 1;\\n transform: translate(20px, 20px) scale(1);\\n }\\n 97% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 0;\\n transform: translate(20px, 20px) scale(1);\\n }\\n}\\n\\n.KoyXeF9iYQJj5_sTVRzU {\\n animation-name: KoyXeF9iYQJj5_sTVRzU;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n}\\n\\n@keyframes KoyXeF9iYQJj5_sTVRzU {\\n 0% {\\n transform: translate(110px, 20px);\\n opacity: 0;\\n }\\n 55% {\\n transform: translate(110px, 20px);\\n opacity: 0;\\n }\\n 63% {\\n transform: translate(110px, 20px);\\n opacity: 1;\\n }\\n 97% {\\n opacity: 1;\\n }\\n 100% {\\n transform: translate(110px, 20px);\\n opacity: 0;\\n }\\n}\\n\\n.VhN7KL2RMr0VvU5D7gdD {\\n animation-name: VhN7KL2RMr0VvU5D7gdD;\\n animation-duration: 12s;\\n animation-iteration-count: infinite;\\n}\\n\\n@keyframes VhN7KL2RMr0VvU5D7gdD {\\n 0% {\\n opacity: 0;\\n }\\n 60% {\\n opacity: 0;\\n }\\n 63% {\\n opacity: 1;\\n }\\n 100% {\\n opacity: 1;\\n }\\n}\\n\",\"\"]),i.locals={mask:\"bg1lDSH3PfUvaKCjoLYX\",\"oval-mask-x\":\"zyMSffpYO24FJL0MDkUI\",\"oval-mask-y\":\"xHju7kDkv1Jlmqyqsofy\",ellipse:\"n8QV7KyAsbNmc82eYrc0\",man:\"Jh5t_do_IxxrN49wkQEg\",\"icon-background\":\"LEdHHkm_3ZSRJCAGgRTG\",\"icon-mark\":\"dXvGxFENlVQbDd0qOdcB\",photo:\"sTm3QRQnAiIAAOnPO578\",card:\"KoyXeF9iYQJj5_sTVRzU\",text:\"VhN7KL2RMr0VvU5D7gdD\"},t.Z=i},\"./src/common/InstructionIconFaceLiveness.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".CUj2r6t8gKxAOvlRWXMc {\\n animation-name: CUj2r6t8gKxAOvlRWXMc;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n}\\n\\n@keyframes CUj2r6t8gKxAOvlRWXMc {\\n 0% {\\n rx: 0;\\n ry: 0;\\n }\\n 10% {\\n rx: 32px;\\n ry: 42px;\\n }\\n 40% {\\n rx: 32px;\\n ry: 42px;\\n }\\n 45% {\\n rx: 45px;\\n ry: 55px;\\n }\\n 98% {\\n rx: 45px;\\n ry: 55px;\\n }\\n 100% {\\n rx: 0;\\n ry: 0;\\n }\\n}\\n\\n.nc3HwudCY3S0CXHA3cnr {\\n animation-name: nc3HwudCY3S0CXHA3cnr;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n}\\n\\n\\n@keyframes nc3HwudCY3S0CXHA3cnr {\\n 0% {\\n height: 0;\\n y: 70px;\\n }\\n 10% {\\n height: 30px;\\n y: 55px;\\n }\\n 20% {\\n height: 30px;\\n y: 55px;\\n }\\n 30% {\\n height: 0;\\n y: 70px;\\n }\\n 40% {\\n height: 0;\\n y: 70px;\\n }\\n 45% {\\n height: 40px;\\n y: 50px;\\n }\\n 55% {\\n height: 40px;\\n y: 50px;\\n }\\n 65% {\\n height: 0;\\n y: 70px;\\n }\\n 100% {\\n height: 0;\\n y: 70px;\\n }\\n}\\n\\n.unwEtZ1FkKoNObzcYh7i {\\n animation-name: unwEtZ1FkKoNObzcYh7i;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n}\\n\\n\\n@keyframes unwEtZ1FkKoNObzcYh7i {\\n 0% {\\n width: 0;\\n x: 150px;\\n }\\n 10% {\\n width: 30px;\\n x: 135px;\\n }\\n 20% {\\n width: 30px;\\n x: 135px;\\n }\\n 30% {\\n width: 0;\\n x: 150px;\\n }\\n 40% {\\n width: 0;\\n x: 150px;\\n }\\n 45% {\\n width: 40px;\\n x: 130px;\\n }\\n 55% {\\n width: 40px;\\n x: 130px;\\n }\\n 65% {\\n width: 0;\\n x: 150px;\\n }\\n 100% {\\n width: 0;\\n x: 150px;\\n }\\n}\\n\\n.fObP_SbbcptxhgqpJv8E {\\n animation-name: fObP_SbbcptxhgqpJv8E;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n}\\n\\n@keyframes fObP_SbbcptxhgqpJv8E {\\n 0% {\\n rx: 0;\\n ry: 0;\\n }\\n 10% {\\n rx: 35px;\\n ry: 45px;\\n }\\n 27% {\\n stroke-width: 2px;\\n }\\n 32% {\\n stroke-width: 3px;\\n }\\n 40% {\\n rx: 35px;\\n ry: 45px;\\n stroke-width: 3px;\\n }\\n 45% {\\n rx: 48px;\\n ry: 58px;\\n stroke-width: 2px;\\n }\\n 62% {\\n stroke-width: 2px;\\n }\\n 67% {\\n stroke-width: 3px;\\n }\\n 98% {\\n rx: 48px;\\n ry: 58px;\\n stroke-width: 3px;\\n }\\n 100% {\\n rx: 0;\\n ry: 0;\\n stroke-width: 3px;\\n }\\n}\\n\\n.RYcbwN4oGOj19H6dxyih {\\n animation-name: RYcbwN4oGOj19H6dxyih;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n transform-origin: center;\\n}\\n\\n@keyframes RYcbwN4oGOj19H6dxyih {\\n 0% {\\n opacity: 0;\\n }\\n 15% {\\n opacity: 0;\\n }\\n 20% {\\n opacity: 1;\\n }\\n 50% {\\n transform: scale(1);\\n }\\n 55% {\\n transform: scale(1.35);\\n }\\n 98% {\\n opacity: 1;\\n transform: scale(1.35);\\n }\\n 100% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n}\\n\\n.ktaYOijqlfrvD_trWBrW {\\n animation-name: ktaYOijqlfrvD_trWBrW;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n transform-origin: 267px 30px;\\n}\\n\\n@keyframes ktaYOijqlfrvD_trWBrW {\\n 0% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n 70% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n 75% {\\n opacity: 1;\\n transform: scale(1);\\n }\\n 98% {\\n transform: scale(1);\\n }\\n 100% {\\n opacity: 1;\\n transform: scale(0);\\n }\\n}\\n\\n.n3pKx_qGoAOJYKIEmQNK {\\n animation-name: n3pKx_qGoAOJYKIEmQNK;\\n animation-duration: 9s;\\n animation-iteration-count: infinite;\\n transform-origin: 267px 35px;\\n}\\n\\n@keyframes n3pKx_qGoAOJYKIEmQNK {\\n 0% {\\n opacity: 0;\\n }\\n 75% {\\n opacity: 0;\\n }\\n 77% {\\n opacity: 1;\\n }\\n 98% {\\n opacity: 1;\\n transform: scale(1);\\n }\\n 100% {\\n opacity: 0;\\n transform: scale(0);\\n }\\n}\\n\",\"\"]),i.locals={mask:\"CUj2r6t8gKxAOvlRWXMc\",\"oval-mask-x\":\"nc3HwudCY3S0CXHA3cnr\",\"oval-mask-y\":\"unwEtZ1FkKoNObzcYh7i\",ellipse:\"fObP_SbbcptxhgqpJv8E\",man:\"RYcbwN4oGOj19H6dxyih\",\"icon-background\":\"ktaYOijqlfrvD_trWBrW\",\"icon-mark\":\"n3pKx_qGoAOJYKIEmQNK\"},t.Z=i},\"./src/common/Message.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".P3e8lexCOoGls4siKmrt {\\n display: inline-block;\\n padding: 0.75em 1.1em;\\n color: white;\\n font-style: normal;\\n font-weight: normal;\\n line-height: 1.5625em;\\n border-radius: 6px;\\n background: var(--plate-color);\\n}\\n\",\"\"]),i.locals={container:\"P3e8lexCOoGls4siKmrt\"},t.Z=i},\"./src/common/Spinner.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,'.VWxfAouXW3BLPyyJGUTC {\\n height: 50px;\\n width: 50px;\\n}\\n\\n@keyframes NMD8Th3n4PqNHuyTL42P {\\n 0% {\\n transform: rotate(0deg);\\n }\\n 100% {\\n transform: rotate(360deg);\\n }\\n}\\n\\n.vG728PVGYiGmmqXxG72r {\\n position: relative;\\n width: 50px;\\n height: 50px;\\n clip: rect(22px, 44px, 44px, 0);\\n animation: NMD8Th3n4PqNHuyTL42P 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\\n}\\n\\n.vG728PVGYiGmmqXxG72r::before, .vG728PVGYiGmmqXxG72r::after {\\n content: \"\";\\n display: block;\\n position: absolute;\\n top: 0;\\n left: 0;\\n bottom: 0;\\n right: 0;\\n margin: auto;\\n height: 44px;\\n width: 44px;\\n border-radius: 50%;\\n}\\n\\n.vG728PVGYiGmmqXxG72r::before {\\n border: 3px solid transparent;\\n border-top: 3px solid var(--main-color);\\n animation: NMD8Th3n4PqNHuyTL42P 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;\\n}\\n\\n.vG728PVGYiGmmqXxG72r::after {\\n border: 3px solid rgba(49, 49, 49, 0.1);\\n}\\n',\"\"]),i.locals={container:\"VWxfAouXW3BLPyyJGUTC\",spinner:\"vG728PVGYiGmmqXxG72r\",spin:\"NMD8Th3n4PqNHuyTL42P\"},t.Z=i},\"./src/components/DocumentCapture.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".PA7ZEyIK7kVrkBe3P0mQ {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n color: white;\\n background: black;\\n}\\n\",\"\"]),i.locals={container:\"PA7ZEyIK7kVrkBe3P0mQ\"},t.Z=i},\"./src/components/DocumentFullScreenOverlay.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\"*, *::before, *::after {\\n box-sizing: border-box;\\n}\\n\\n:host {\\n display: block;\\n --font-family: Noto Sans, sans-serif;\\n --font-size: 16px;\\n --main-color: #bd7dff;\\n --hover-color: #bd00ff;\\n --active-color: #bd7dff;\\n width: 100%;\\n height: 100%;\\n}\\n\\ndocument-reader {\\n display: block;\\n --font-family: Noto Sans, sans-serif;\\n --font-size: 16px;\\n --main-color: #bd7dff;\\n --hover-color: #bd00ff;\\n --active-color: #bd7dff;\\n width: 100%;\\n height: 100%;\\n}\\n\\ncamera-snapshot {\\n display: block;\\n --font-family: Noto Sans, sans-serif;\\n --font-size: 16px;\\n --main-color: #bd7dff;\\n --hover-color: #bd00ff;\\n --active-color: #bd7dff;\\n width: 100%;\\n height: 100%;\\n}\\n\\n.N2CovuIi4IQuTRGgoN6w {\\n width: 640px;\\n height: 360px;\\n position: relative;\\n background: white;\\n overflow: hidden;\\n box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);\\n color: white;\\n -webkit-backface-visibility: hidden;\\n -moz-backface-visibility: hidden;\\n -webkit-transform: translate3d(0, 0, 0);\\n -moz-transform: translate3d(0, 0, 0);\\n font-family: var(--font-family);\\n font-size: var(--font-size);\\n margin: 0 auto;\\n}\\n\\n.N2CovuIi4IQuTRGgoN6w[data-direction='rtl'] {\\n direction: rtl;\\n}\\n\\n.N2CovuIi4IQuTRGgoN6w[data-direction='ltr'] {\\n direction: ltr;\\n}\\n\\n.N2CovuIi4IQuTRGgoN6w.gCpHLoXKXUz3n9l8dWyN {\\n width: 100%;\\n height: 100%;\\n border-radius: 0;\\n box-shadow: none;\\n}\\n\\n.YtHeufuIWuZlLjfD1lXG {\\n position: absolute;\\n top: 0;\\n display: flex;\\n justify-content: flex-end;\\n padding: 16px;\\n}\\n\\ndiv[data-direction='rtl'] .YtHeufuIWuZlLjfD1lXG {\\n left: 0;\\n}\\n\\ndiv[data-direction='ltr'] .YtHeufuIWuZlLjfD1lXG {\\n right: 0;\\n}\\n\\n.YtHeufuIWuZlLjfD1lXG button, .JE939cYrx4Sulybx_cCA button {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n border: none;\\n padding: 0;\\n margin: 0;\\n text-decoration: none;\\n background: none;\\n cursor: pointer;\\n text-align: center;\\n transition: background 250ms ease-in-out, transform 150ms ease;\\n appearance: none;\\n}\\n\\n.JE939cYrx4Sulybx_cCA {\\n position: absolute;\\n bottom: 0;\\n padding: 0 16px 10px;\\n display: flex;\\n align-items: center;\\n}\\n\\ndiv[data-direction='rtl'] .JE939cYrx4Sulybx_cCA {\\n right: 0;\\n}\\n\\ndiv[data-direction='ltr'] .JE939cYrx4Sulybx_cCA {\\n left: 0;\\n}\\n\\n.BZSxJXlhcoyyH0EjwCbN {\\n display: flex;\\n align-items: center;\\n}\\n\\n.BZSxJXlhcoyyH0EjwCbN span {\\n font-size: 10px;\\n line-height: 24px;\\n color: #8C8C8C;\\n}\\n\\n.BZSxJXlhcoyyH0EjwCbN .sshO9VEdjC0YvfRsYkcE {\\n margin: 0 6px;\\n opacity: 0.3;\\n height: 18px;\\n width: 1px;\\n background-color: #8C8C8C;\\n}\\n\\n.BZSxJXlhcoyyH0EjwCbN.JbnxuQbpkQDRwnZfdDfe span, .BZSxJXlhcoyyH0EjwCbN.JbnxuQbpkQDRwnZfdDfe .sshO9VEdjC0YvfRsYkcE {\\n color: rgba(255, 255, 255, 0.9);\\n}\\n\\n@media (max-width: 640px) {\\n .N2CovuIi4IQuTRGgoN6w {\\n width: 100%;\\n height: 100%;\\n border-radius: 0;\\n }\\n\\n .JE939cYrx4Sulybx_cCA {\\n width: 100%;\\n justify-content: center;\\n }\\n}\\n\",\"\"]),i.locals={window:\"N2CovuIi4IQuTRGgoN6w\",full:\"gCpHLoXKXUz3n9l8dWyN\",header:\"YtHeufuIWuZlLjfD1lXG\",footer:\"JE939cYrx4Sulybx_cCA\",ads:\"BZSxJXlhcoyyH0EjwCbN\",pipe:\"sshO9VEdjC0YvfRsYkcE\",processing:\"JbnxuQbpkQDRwnZfdDfe\"},t.Z=i},\"./src/components/DocumentReaderLayout.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".X7WvYA8P3eDqhAyKVxCf {\\n display: flex;\\n position: relative;\\n width: 100%;\\n height: 100%;\\n}\\n\\n.jZI_hTtUTPtGD3gYusNz {\\n position: absolute;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n justify-content: center;\\n}\\n\\n.tEFdxGbk5QmcMBJ_bHU6 {\\n position: absolute;\\n transition: .25s border-color;\\n}\\n\\n.Vh8mAVCuwwZ6KUB8As56 {\\n display: flex;\\n flex-direction: column;\\n width: 100%;\\n max-width: 370px;\\n position: relative;\\n align-self: center;\\n align-items: center;\\n margin: 0 1em;\\n}\\n\\n.djX5yhN_CKCP3vv1avbV {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n width: 80px;\\n height: 80px;\\n border-radius: 50%;\\n}\\n\\n.RRSLexqhampXB7CzPD9l {\\n position: absolute;\\n top: 0;\\n left: 0;\\n right: 0;\\n margin-top: 90px;\\n display: flex;\\n justify-content: center;\\n}\\n\\n.NGtb4Lhry8w0KKeJKzGs {\\n text-align: center;\\n padding: 0.75em 1.5em;\\n background-color: rgba(27, 16, 31, 0.5);\\n border-radius: 6px;\\n}\\n\\n.O3nb4HhmDMpgoE1cpaaf {\\n font-weight: normal;\\n color: white;\\n margin: 0;\\n font-size: 1.125em;\\n line-height: 1.3em;\\n}\\n\\n.CLlBXRbhfU7qRsaKS7F6 {\\n font-weight: bold;\\n color: white;\\n margin: 0;\\n font-size: 1.25em;\\n line-height: 1.25em;\\n}\\n\\n.cZ8C7zSiuzNBPorOzG0C {\\n font-weight: normal;\\n color: white;\\n opacity: .65;\\n margin: 0.5em 0 0;\\n font-size: 1em;\\n line-height: 1.125em;\\n}\\n\\n.kohUvRyC6p5OGxDLymKW {\\n position: absolute;\\n bottom: 0;\\n padding: 20px;\\n display: flex;\\n align-items: flex-end;\\n justify-content: flex-end;\\n z-index: 20;\\n}\\n\\ndiv[data-direction='rtl'] .kohUvRyC6p5OGxDLymKW button + button {\\n margin-left: 0;\\n margin-right: 10px;\\n}\\n\\ndiv[data-direction='ltr'] .kohUvRyC6p5OGxDLymKW button + button {\\n margin-left: 10px;\\n margin-right: 0;\\n}\\n\\ndiv[data-direction='rtl'] .kohUvRyC6p5OGxDLymKW {\\n left: 0;\\n}\\n\\ndiv[data-direction='ltr'] .kohUvRyC6p5OGxDLymKW {\\n right: 0;\\n}\\n\\n.UV32J_eIGn4mYWZ39dsm {\\n position: absolute;\\n top: 0;\\n padding: 20px;\\n display: flex;\\n align-items: flex-start;\\n justify-content: flex-start;\\n}\\n\\ndiv[data-direction='rtl'] .UV32J_eIGn4mYWZ39dsm {\\n right: 0;\\n}\\n\\ndiv[data-direction='ltr'] .UV32J_eIGn4mYWZ39dsm {\\n left: 0;\\n}\\n\\n.kohUvRyC6p5OGxDLymKW button:not(.bOklpMAWM6HFfoZrdUP7):hover, .UV32J_eIGn4mYWZ39dsm button:hover {\\n transform: scale(1.1);\\n}\\n\\n.kohUvRyC6p5OGxDLymKW button, .UV32J_eIGn4mYWZ39dsm button, .bOklpMAWM6HFfoZrdUP7 {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n border: none;\\n padding: 0;\\n margin: 0;\\n text-decoration: none;\\n background: none;\\n cursor: pointer;\\n text-align: center;\\n transition: background 250ms ease-in-out, transform 150ms ease;\\n}\\n\\n.bOklpMAWM6HFfoZrdUP7 {\\n position: absolute;\\n bottom: 20px;\\n left: 50%;\\n transform: translate(-50%, 0);\\n}\\n\\n.bOklpMAWM6HFfoZrdUP7:hover {\\n transform: translate(-50%, 0) scale(1.1);\\n}\\n\\n@media (max-width: 640px) {\\n .bOklpMAWM6HFfoZrdUP7 {\\n padding-bottom: 27px;\\n }\\n}\\n\",\"\"]),i.locals={container:\"X7WvYA8P3eDqhAyKVxCf\",layout:\"jZI_hTtUTPtGD3gYusNz\",frame:\"tEFdxGbk5QmcMBJ_bHU6\",\"message-container\":\"Vh8mAVCuwwZ6KUB8As56\",icon:\"djX5yhN_CKCP3vv1avbV\",message:\"RRSLexqhampXB7CzPD9l\",\"message-background\":\"NGtb4Lhry8w0KKeJKzGs\",\"message-text\":\"O3nb4HhmDMpgoE1cpaaf\",title:\"CLlBXRbhfU7qRsaKS7F6\",subtitle:\"cZ8C7zSiuzNBPorOzG0C\",\"bottom-functional-buttons\":\"kohUvRyC6p5OGxDLymKW\",\"top-functional-buttons\":\"UV32J_eIGn4mYWZ39dsm\",\"snapshot-button\":\"bOklpMAWM6HFfoZrdUP7\"},t.Z=i},\"./src/components/DocumentReaderStartScreen.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".qYdk7Bhsq466Vid23Q5u {\\n display: flex;\\n height: 100%;\\n align-items: center;\\n flex-direction: column;\\n padding: 2em 1.5em 2.5em;\\n}\\n\\n.AMCMOFyzHiavcoZVLhHN {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n text-align: center;\\n}\\n\\n.AMCMOFyzHiavcoZVLhHN .dzCKtO9jU1oQdNNSItJT {\\n margin: 0 0 0.4em;\\n max-width: 500px;\\n color: #262626;\\n font-size: 1.25em;\\n font-weight: bold;\\n line-height: 1.4em;\\n}\\n\\n.AMCMOFyzHiavcoZVLhHN .HOnepM0e9coVQs6ItLER {\\n display: block;\\n max-width: 465px;\\n color: #8C8C8C;\\n margin: 0 0 0.5em;\\n font-size: 1em;\\n line-height: 1.375em;\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D {\\n display: flex;\\n width: 100%;\\n flex: 1;\\n align-items: center;\\n justify-content: center;\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D button {\\n display: flex;\\n width: 100%;\\n height: 100%;\\n max-width: 290px;\\n max-height: 140px;\\n padding: 1em 0;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n background: white;\\n border: 1px solid rgba(0, 0, 0, 0.05);\\n border-radius: 3px;\\n cursor: pointer;\\n font-size: 1em;\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D button:hover {\\n border: 1px solid var(--main-color);\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D button:hover p {\\n color: var(--main-color);\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D button svg {\\n margin-bottom: 0.9em;\\n align-self: center;\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D p {\\n font-family: var(--font-family);\\n font-style: normal;\\n line-height: 1.25em;\\n font-size: 1em;\\n color: #444444;\\n margin: 0;\\n}\\n\\n.LxuJqWcz6iT0h5eZH78D button + button {\\n margin-left: 1em;\\n}\\n\\ndiv[data-direction='rtl'] .LxuJqWcz6iT0h5eZH78D button + button {\\n margin-left: 0;\\n margin-right: 1em;\\n}\\n\\n@media (max-width: 660px) {\\n .qYdk7Bhsq466Vid23Q5u {\\n padding: 5em 1em 2.5em;\\n }\\n\\n .AMCMOFyzHiavcoZVLhHN .dzCKtO9jU1oQdNNSItJT {\\n font-size: 1.5em;\\n line-height: 1.25em;\\n }\\n\\n .LxuJqWcz6iT0h5eZH78D p {\\n font-size: 0.875em;\\n color: #262626;\\n }\\n}\\n\",\"\"]),i.locals={\"start-window\":\"qYdk7Bhsq466Vid23Q5u\",text:\"AMCMOFyzHiavcoZVLhHN\",title:\"dzCKtO9jU1oQdNNSItJT\",subtitle:\"HOnepM0e9coVQs6ItLER\",buttons:\"LxuJqWcz6iT0h5eZH78D\"},t.Z=i},\"./src/components/InfoScreens.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".VujgIKoBOfenCnc_9lXg {\\n display: flex;\\n height: 100%;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n}\\n\\n.VujgIKoBOfenCnc_9lXg .Ku3UYnXrAMGZCU2jBI64 {\\n display: block;\\n padding-top: 0.875em;\\n font-size: 0.875em;\\n font-weight: normal;\\n line-height: 1.43em;\\n color: #444444;\\n}\\n\\n.FmEnDyV6FZqU5CIwqS_1 {\\n display: flex;\\n height: 100%;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n padding: 0 1.5em;\\n}\\n\\n.qVDYzzt7ptRqX9leR0Oc {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n max-width: 350px;\\n word-break: break-word;\\n}\\n\\n.qVDYzzt7ptRqX9leR0Oc > svg {\\n margin-bottom: 1.12em;\\n}\\n\\n.FmEnDyV6FZqU5CIwqS_1 .HwFB3Y04myvscwSFagdC {\\n margin: 0 0 0.4em;\\n font-size: 1.25em;\\n font-weight: bold;\\n line-height: 1.4em;\\n color: #262626;\\n text-align: center;\\n}\\n\\n.FmEnDyV6FZqU5CIwqS_1 ._TqnKcBUrielayIU5u0o {\\n margin: 0 0 1em;\\n font-style: normal;\\n font-size: 1em;\\n font-weight: normal;\\n line-height: 1.375em;\\n color: #8C8C8C;\\n text-align: center;\\n}\\n\",\"\"]),i.locals={\"process-message\":\"VujgIKoBOfenCnc_9lXg\",message:\"Ku3UYnXrAMGZCU2jBI64\",\"info-message\":\"FmEnDyV6FZqU5CIwqS_1\",\"text-container\":\"qVDYzzt7ptRqX9leR0Oc\",title:\"HwFB3Y04myvscwSFagdC\",subtitle:\"_TqnKcBUrielayIU5u0o\"},t.Z=i},\"./src/components/WebCamera.css\":function(e,t,n){var r=n(\"./node_modules/css-loader/dist/runtime/noSourceMaps.js\"),a=n.n(r),o=n(\"./node_modules/css-loader/dist/runtime/api.js\"),i=n.n(o)()(a());i.push([e.id,\".rUHY4WaEKcuaLcPt_4vX {\\n flex: 1;\\n}\\n\\nvideo {\\n width: 100%;\\n height: 100%;\\n transform: scaleX(-1);\\n}\\n\\n.ErXRs6VjVHoUmjmcCUBA {\\n object-fit: contain;\\n}\\n\\n.NIFSbJnUE871AP1JwuRX {\\n object-fit: cover;\\n}\\n\\n.pasIW4Dj8TRdHJcA2sIM {\\n transform: scaleX(1);\\n}\\n\",\"\"]),i.locals={container:\"rUHY4WaEKcuaLcPt_4vX\",contain:\"ErXRs6VjVHoUmjmcCUBA\",cover:\"NIFSbJnUE871AP1JwuRX\",mirroring:\"pasIW4Dj8TRdHJcA2sIM\"},t.Z=i}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.amdD=function(){throw new Error(\"define cannot be used indirect\")},n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};!function(){n.d(r,{Wo:function(){return fo},ly:function(){return ao},fl:function(){return po}});n(\"./node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js\");var e,t,a,o,i,l,s,u,c,d,f,p,_,m,h,E,C,v,S,g,y,I,O,R,N,A,T,b,D,L,w,P=n(\"./node_modules/react/index.js\"),k=n(\"./node_modules/react-dom/client.js\"),M=n(\"./src/components/DocumentCapture.css\");function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Empty=0]=\"Empty\",e[e.FitFaceIntoOval=1]=\"FitFaceIntoOval\",e[e.LookStraight=2]=\"LookStraight\",e[e.MoveCloser=3]=\"MoveCloser\",e[e.MoveAway=4]=\"MoveAway\",e[e.HoldStill=5]=\"HoldStill\",e[e.ShowOnlyOneFace=6]=\"ShowOnlyOneFace\"}(i||(i={})),function(e){e[e.Far=0]=\"Far\",e[e.Near=1]=\"Near\"}(l||(l={})),function(e){e[e.Normal=0]=\"Normal\",e[e.Alarm=1]=\"Alarm\"}(s||(s={})),function(e){e[e.Finished=0]=\"Finished\",e[e.InProcess=1]=\"InProcess\",e[e.Timeout=2]=\"Timeout\",e[e.Failed=3]=\"Failed\"}(u||(u={})),function(e){e.UINT=\"UINT\",e.BASE64=\"BASE64\",e.UINT_AND_BASE64=\"UINT_AND_BASE64\"}(c||(c={})),function(e){e.ELEMENT_VISIBLE=\"ELEMENT_VISIBLE\",e.PRESS_START_BUTTON=\"PRESS_START_BUTTON\",e.PRESS_RETRY_BUTTON=\"PRESS_RETRY_BUTTON\",e.CLOSE=\"CLOSE\",e.PROCESS_FINISHED=\"PROCESS_FINISHED\",e.SERVICE_INITIALIZED=\"SERVICE_INITIALIZED\"}(d||(d={})),function(e){e.ELEMENT_VISIBLE=\"ELEMENT_VISIBLE\",e.PRESS_CAMERA_BUTTON=\"PRESS_CAMERA_BUTTON\",e.PRESS_FILE_BUTTON=\"PRESS_FILE_BUTTON\",e.PRESS_RETRY_BUTTON=\"PRESS_RETRY_BUTTON\",e.PRESS_SKIP_BUTTON=\"PRESS_SKIP_BUTTON\",e.CLOSE=\"CLOSE\",e.PROCESS_FINISHED=\"PROCESS_FINISHED\",e.SERVICE_INITIALIZED=\"SERVICE_INITIALIZED\"}(f||(f={})),function(e){e.FINDING=\"DocumentCaptureStatus.FINDING\",e.PROCESSING=\"DocumentCaptureStatus.PROCESSING\",e.SUCCESS=\"DocumentCaptureStatus.SUCCESS\",e.FAILED=\"DocumentCaptureStatus.FAILED\",e.RESOLUTION=\"DocumentCaptureStatus.RESOLUTION\",e.GLARE=\"DocumentCaptureStatus.GLARE\",e.FOCUS=\"DocumentCaptureStatus.FOCUS\",e.HOLD=\"DocumentCaptureStatus.HOLD\",e.START_DETECTION=\"DocumentCaptureStatus.START_DETECTION\",e.START_NEXT_PAGE=\"DocumentCaptureStatus.START_NEXT_PAGE\",e.SNAPSHOT=\"DocumentCaptureStatus.SNAPSHOT\",e.TIMEOUT=\"DocumentCaptureStatus.TIMEOUT\"}(p||(p={})),function(e){e[e.IMAGE_GLARES=0]=\"IMAGE_GLARES\",e[e.IMAGE_FOCUS=1]=\"IMAGE_FOCUS\",e[e.IMAGE_RESOLUTION=2]=\"IMAGE_RESOLUTION\",e[e.IMAGE_COLORNESS=3]=\"IMAGE_COLORNESS\",e[e.PERSPECTIVE=4]=\"PERSPECTIVE\",e[e.BOUNDS=5]=\"BOUNDS\",e[e.SCREEN_CAPTURE=6]=\"SCREEN_CAPTURE\",e[e.PORTRAIT=7]=\"PORTRAIT\",e[e.HANDWRITTEN=8]=\"HANDWRITTEN\"}(_||(_={})),function(e){e[e.EMPTY=-1]=\"EMPTY\",e[e.ERROR=0]=\"ERROR\",e[e.OK=1]=\"OK\"}(m||(m={})),function(e){e[e.ERROR=0]=\"ERROR\",e[e.OK=1]=\"OK\",e[e.WAS_NOT_DONE=2]=\"WAS_NOT_DONE\"}(h||(h={})),function(e){e.PREPARING=\"StreamStatus.PREPARING\",e.REQUESTING=\"StreamStatus.REQUESTING\",e.READY=\"StreamStatus.READY\",e.PLAY=\"StreamStatus.PLAY\",e.UNKNOWN_ERROR=\"StreamStatus.UNKNOWN_ERROR\",e.PERMISSION_DENIED=\"StreamStatus.PERMISSION_DENIED\",e.NO_CAMERA=\"StreamStatus.NO_CAMERA\",e.INCORRECT_CAMERA_ID=\"StreamStatus.INCORRECT_CAMERA_ID\"}(E||(E={})),function(e){e.INSTRUCTION=\"FaceCompletionStatus.INSTRUCTION\",e.SUCCESS=\"FaceCompletionStatus.SUCCESS\",e.FAILED=\"FaceCompletionStatus.FAILED\",e.CAPTURING=\"FaceCompletionStatus.CAPTURING\",e.PROCESSING_REQUEST=\"FaceCompletionStatus.PROCESSING_REQUEST\",e.WASM_DEFAULT_ERROR=\"FaceCompletionStatus.WASM_DEFAULT_ERROR\",e.NOT_SUPPORTED_ERROR=\"FaceCompletionStatus.NOT_SUPPORTED_ERROR\",e.WASM_LICENSE_ERROR=\"FaceCompletionStatus.WASM_LICENSE_ERROR\",e.UNKNOWN_ERROR=\"FaceCompletionStatus.UNKNOWN_ERROR\",e.NO_CAMERA_ERROR=\"FaceCompletionStatus.NO_CAMERA_ERROR\",e.PERMISSION_DENIED_ERROR=\"FaceCompletionStatus.PERMISSION_DENIED_ERROR\",e.INCORRECT_CAMERA_ID_ERROR=\"FaceCompletionStatus.INCORRECT_CAMERA_ID_ERROR\"}(C||(C={})),function(e){e.CHOOSE_INPUT_SOURCE=\"DocumentCompletionStatus.CHOOSE_INPUT_SOURCE\",e.CAMERA_PROCESSING=\"DocumentCompletionStatus.CAMERA_PROCESSING\",e.FILE_PROCESSING=\"DocumentCompletionStatus.FILE_PROCESSING\",e.API_PROCESSING=\"DocumentCompletionStatus.API_PROCESSING\",e.SUCCESS=\"DocumentCompletionStatus.SUCCESS\",e.FAILED=\"DocumentCompletionStatus.FAILED\",e.FILE_SIZE_ERROR=\"DocumentCompletionStatus.FILE_SIZE_ERROR\",e.WASM_DEFAULT_ERROR=\"DocumentCompletionStatus.WASM_DEFAULT_ERROR\",e.NOT_SUPPORTED_ERROR=\"DocumentCompletionStatus.NOT_SUPPORTED_ERROR\",e.WASM_LICENSE_ERROR=\"DocumentCompletionStatus.WASM_LICENSE_ERROR\",e.INCORRECT_FILE_ERROR=\"DocumentCompletionStatus.INCORRECT_FILE_ERROR\",e.UNKNOWN_ERROR=\"DocumentCompletionStatus.UNKNOWN_ERROR\",e.TIMEOUT=\"DocumentCompletionStatus.TIMEOUT\"}(v||(v={})),function(e){e.user=\"user\",e.environment=\"environment\"}(S||(S={})),function(e){e[e.NOT_FINISHED=0]=\"NOT_FINISHED\",e[e.FINISHED=1]=\"FINISHED\",e[e.TIMEOUT=2]=\"TIMEOUT\"}(g||(g={})),function(e){e[e.PROCESS=12101]=\"PROCESS\",e[e.PROCESS_IMAGE=12104]=\"PROCESS_IMAGE\",e[e.START_NEW_DOCUMENT=12105]=\"START_NEW_DOCUMENT\",e[e.START_NEW_PAGE=12106]=\"START_NEW_PAGE\"}(y||(y={})),function(e){e.contain=\"contain\",e.cover=\"cover\"}(I||(I={})),function(e){e.MrzAndLocate=\"MrzAndLocate\",e.MrzOrLocate=\"MrzOrLocate\",e.Mrz=\"Mrz\",e.Locate=\"Locate\"}(O||(O={})),function(e){e.WASM_ERROR=\"WASM_ERROR\",e.WASM_LICENSE=\"WASM_LICENSE\",e.FILE_SIZE=\"FILE_SIZE\",e.INCORRECT_FILE=\"INCORRECT_FILE\",e.UNKNOWN_ERROR=\"UNKNOWN_ERROR\",e.NOT_SUPPORTED=\"NOT_SUPPORTED\",e.CAMERA_UNKNOWN_ERROR=\"CAMERA_UNKNOWN_ERROR\",e.CAMERA_PERMISSION_DENIED=\"CAMERA_PERMISSION_DENIED\",e.NO_CAMERA=\"NO_CAMERA\",e.INCORRECT_CAMERA_ID=\"INCORRECT_CAMERA_ID\",e.CONNECTION_ERROR=\"CONNECTION_ERROR\",e.LANDSCAPE_MODE_RESTRICTED=\"LANDSCAPE_MODE_RESTRICTED\",e.NOT_PREPARED=\"NOT_PREPARED\",e.NOT_INITIALIZED=\"NOT_INITIALIZED\",e.IN_PROCESS=\"IN_PROCESS\",e.ALREADY_PREPARED=\"ALREADY_PREPARED\",e.ALREADY_INITIALIZED=\"ALREADY_INITIALIZED\"}(R||(R={})),function(e){e.onRuntimeInitialized=\"onRuntimeInitialized\",e.processImage=\"processImage\",e.process=\"process\",e.startNewPage=\"startNewPage\",e.startNewDocument=\"startNewDocument\",e.initializeService=\"initializeService\",e.close=\"close\",e.stderr=\"strerr\"}(N||(N={})),function(e){e[e.HAVE_NOTHING=0]=\"HAVE_NOTHING\",e[e.HAVE_METADATA=1]=\"HAVE_METADATA\",e[e.HAVE_CURRENT_DATA=2]=\"HAVE_CURRENT_DATA\",e[e.HAVE_FUTURE_DATA=3]=\"HAVE_FUTURE_DATA\",e[e.HAVE_ENOUGH_DATA=4]=\"HAVE_ENOUGH_DATA\"}(A||(A={})),function(e){e.stdout=\"stdout\",e.stderr=\"stderr\",e.custom=\"custom\"}(T||(T={})),function(e){e.resolve=\"resolve\",e.reject=\"reject\"}(b||(b={})),function(e){e.empty=\"empty\",e.prepare=\"prepare\",e.initialize=\"initialize\",e.process=\"process\",e.processImage=\"processImage\",e.startNewPage=\"startNewPage\",e.startNewDocument=\"startNewDocument\"}(D||(D={})),function(e){e[e.OFF=0]=\"OFF\",e[e.LOG=1]=\"LOG\",e[e.INFO=2]=\"INFO\",e[e.WARN=3]=\"WARN\",e[e.ERROR=4]=\"ERROR\"}(L||(L={})),function(e){e.Rtl=\"rtl\",e.Ltr=\"ltr\"}(w||(w={}));for(var U=\"document-reader\",x=\"camera-snapshot\",H=25e6,j=536870912,B=\"NotAllowedError\",G=[\"ar\",\"he\"],V={VGA:{width:640,height:480},HD:{width:1280,height:720},FULL_HD:{width:1920,height:1080},SQUARE:{width:720,height:720}},z=[\"rear\",\"back\",\"rück\",\"arrière\",\"trasera\",\"trás\",\"traseira\",\"posteriore\",\"后面\",\"後面\",\"背面\",\"后置\",\"後置\",\"背置\",\"задней\",\"الخلفية\",\"후\",\"arka\",\"achterzijde\",\"หลัง\",\"baksidan\",\"bagside\",\"sau\",\"bak\",\"tylny\",\"takakamera\",\"belakang\",\"אחורית\",\"πίσω\",\"spate\",\"hátsó\",\"zadní\",\"darrere\",\"zadná\",\"задня\",\"stražnja\",\"belakang\",\"बैक\"],Y=(F(e={},E.UNKNOWN_ERROR,R.CAMERA_UNKNOWN_ERROR),F(e,E.PERMISSION_DENIED,R.CAMERA_PERMISSION_DENIED),F(e,E.NO_CAMERA,R.NO_CAMERA),F(e,E.INCORRECT_CAMERA_ID,R.INCORRECT_CAMERA_ID),e),W=(F(t={},R.FILE_SIZE,v.FILE_SIZE_ERROR),F(t,R.WASM_ERROR,v.WASM_DEFAULT_ERROR),F(t,R.NOT_SUPPORTED,v.NOT_SUPPORTED_ERROR),F(t,R.WASM_LICENSE,v.WASM_LICENSE_ERROR),F(t,R.INCORRECT_FILE,v.INCORRECT_FILE_ERROR),t),K=(F(a={},p.SUCCESS,v.SUCCESS),F(a,p.TIMEOUT,v.TIMEOUT),F(a,p.FAILED,v.FAILED),a),Z=(F(o={},R.WASM_ERROR,C.WASM_DEFAULT_ERROR),F(o,R.NOT_SUPPORTED,C.NOT_SUPPORTED_ERROR),F(o,R.WASM_LICENSE,C.WASM_LICENSE_ERROR),{iOS:{Chrome:99,Firefox:99,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,\"Internet Explorer\":16,\"Mobile Safari\":11,\"Samsung Browser\":7},Android:{Chrome:66,Firefox:61,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,\"Internet Explorer\":16,\"Mobile Safari\":11,\"Samsung Browser\":7},desktop:{Chrome:61,Firefox:60,Opera:44,Safari:11,Edge:16,Chromium:57,IE:16,\"Internet Explorer\":16,\"Mobile Safari\":11,\"Samsung Browser\":7}}),q={scenario:[{caption:\"MRZ\",desc:\"Pre-defined processing scenario for getting MRZ results from input\",frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,multiPageOff:1,name:\"Mrz\",seriesProcessMode:1},{barcodeExt:1,caption:\"Barcode\",desc:\"Pre-defined processing scenario for getting Barcode results from input\",frameKWHDoublePageSpreadLandscape:0,frameKWHDoublePageSpreadPortrait:0,frameKWHLandscape:0,frameKWHPortrait:0,frameOrientation:0,multiPageOff:1,name:\"Barcode\",seriesProcessMode:1},{caption:\"Locate\",desc:\"Pre-defined processing scenario for finding document blank on input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"Locate\",seriesProcessMode:1},{caption:\"Visual OCR\",desc:\"Pre-defined processing scenario for getting documents Visual Zone OCR results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"Ocr\",seriesProcessMode:1},{caption:\"Document Type\",desc:\"Pre-defined processing scenario for recognizing type of the document from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"DocType\",seriesProcessMode:1},{barcodeExt:1,caption:\"MRZ or Barcode\",desc:\"Pre-defined processing scenario for getting MRZ and/or Barcode results from input\",frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,multiPageOff:1,name:\"MrzOrBarcode\",seriesProcessMode:1},{caption:\"MRZ or Locate\",desc:\"Pre-defined processing scenario for finding document blank and/or getting MRZ results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,multiPageOff:1,name:\"MrzOrLocate\",seriesProcessMode:1},{caption:\"MRZ and Locate\",desc:\"Pre-defined processing scenario for finding document blank and getting MRZ results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"MrzAndLocate\",seriesProcessMode:1},{caption:\"MRZ or Visual OCR\",desc:\"Pre-defined processing scenario for getting MRZ or Visual Zone OCR results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"MrzOrOcr\",seriesProcessMode:1},{barcodeExt:1,caption:\"MRZ or Visual OCR or Barcode\",desc:\"Pre-defined processing scenario for getting MRZ or Barcode or Visual Zone OCR results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,multiPageOff:1,name:\"MrzOrBarcodeOrOcr\",seriesProcessMode:1},{caption:\"MRZ or Visual OCR (with images)\",desc:\"Pre-defined processing scenario for finding document blank and getting MRZ or Visual Zone OCR results from input\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"LocateVisual_And_MrzOrOcr\",seriesProcessMode:1},{caption:\"Credit Card\",desc:\"Pre-defined processing scenario for getting Bank Card data from input\",frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.590000033378601\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.590000033378601\",frameOrientation:0,manualCrop:1,name:\"CreditCard\",seriesProcessMode:1},{barcodeExt:1,caption:\"Full Process\",desc:\"Pre-defined processing scenario for getting all information from document\",faceExt:1,frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"0.7099999785423279\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,name:\"FullProcess\",seriesProcessMode:1},{caption:\"Russian ID3 (fast)\",desc:\"Pre-defined processing scenario for getting all information from ID3 Russian document\",frameKWHDoublePageSpreadLandscape:\"1.419999957084656\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.419999957084656\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,multiPageOff:1,name:\"Id3Rus\",seriesProcessMode:1},{caption:\"Visual OCR for stamp\",desc:\"Pre-defined processing scenario for getting information from Russian document registration stamps\",frameKWHDoublePageSpreadLandscape:\"1.590000033378601\",frameKWHDoublePageSpreadPortrait:\"1.419999957084656\",frameKWHLandscape:\"1.590000033378601\",frameKWHPortrait:\"1.419999957084656\",frameOrientation:0,manualCrop:1,multiPageOff:1,name:\"RusStamp\",seriesProcessMode:1},{caption:\"Free OCR\",desc:\"Pre-defined processing scenario for getting OCR results from input image\",frameKWHDoublePageSpreadLandscape:5,frameKWHDoublePageSpreadPortrait:5,frameKWHLandscape:5,frameKWHPortrait:5,frameOrientation:0,multiPageOff:1,name:\"OcrFree\",seriesProcessMode:1},{UVTorch:1,caption:\"Capture\",desc:\"Pre-defined scenario for get full image from camera device without any recognize processing.\",frameKWHDoublePageSpreadLandscape:0,frameKWHDoublePageSpreadPortrait:0,frameKWHLandscape:0,frameKWHPortrait:0,frameOrientation:0,name:\"Capture\"}]},X={processParam:{scenario:O.MrzAndLocate,returnUncroppedImage:!0,multipageProcessing:!1,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0,imageQa:{expectedPass:[\"dpiThreshold\",\"glaresCheck\",\"focusCheck\"],dpiThreshold:130,glaresCheck:!0,glaresCheckParams:{imgMarginPart:.05,maxGlaringPart:.01}}}},J={processParam:{scenario:O.MrzAndLocate,returnUncroppedImage:!0}},Q={processParam:{scenario:O.MrzAndLocate,returnUncroppedImage:!0,timeoutFromFirstDetect:0,timeoutFromFirstDocType:0}},$={processParam:{scenario:O.MrzAndLocate,returnUncroppedImage:!0}},ee=[\"image/jpeg\",\"image/jpg\",\"image/png\",\"image/gif\",\"image/bmp\"],te=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",ne=\"undefined\"==typeof Uint8Array?[]:new Uint8Array(256),re=0;re<te.length;re++)ne[te.charCodeAt(re)]=re;function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var ie=oe((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.deviceId=t.deviceId,this.facing=n,this.groupId=t.groupId,this.label=t.label}));function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var se=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.logLvl=t}var t,n,r;return t=e,n=[{key:\"log\",value:function(e,t){for(var n,r,a=this.time(),o=arguments.length,i=new Array(o>2?o-2:0),l=2;l<o;l++)i[l-2]=arguments[l];if(t===L.LOG&&this.logLvl>=L.ERROR){var s,u=\"color: #3b9418;\";(s=console).log.apply(s,[\"%c\".concat(a,\" [log] \").concat(e),u].concat(i))}if(t===L.INFO&&this.logLvl>=L.WARN){var c,d=\"color: #6e56b0;\";(c=console).info.apply(c,[\"%c\".concat(a,\" [info] \").concat(e),d].concat(i))}t===L.WARN&&this.logLvl>=L.INFO&&(n=console).warn.apply(n,[\"\".concat(a,\" [warn] \").concat(e)].concat(i)),t===L.ERROR&&this.logLvl>=L.LOG&&(r=console).error.apply(r,[\"\".concat(a,\" [error] \").concat(e)].concat(i))}},{key:\"time\",value:function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getSeconds(),a=e.getMilliseconds();return\"[\".concat(t>9?t:\"0\"+t,\":\").concat(n>9?n:\"0\"+n,\":\").concat(r>9?r:\"0\"+r,\":\").concat(a,\"]\")}},{key:\"debug\",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,L.LOG].concat(n))}},{key:\"info\",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,L.INFO].concat(n))}},{key:\"warn\",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,L.WARN].concat(n))}},{key:\"error\",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.log.apply(this,[e,L.ERROR].concat(n))}}],n&&le(t.prototype,n),r&&le(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}(),ue=new se(Number(\"4\"));function ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}function fe(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}var pe=de((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;fe(this,e),this.type=t,this.details=n})),_e=pe;function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||ve(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Ce(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=ve(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function ve(e,t){if(e){if(\"string\"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===n&&e.constructor&&(n=e.constructor.name),\"Map\"===n||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ge(){ge=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",i=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},\"\")}catch(T){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new R(a||[]);return r(i,\"_invoke\",{value:g(e,n,l)}),i}function c(e,t,n){try{return{type:\"normal\",arg:e.call(t,n)}}catch(T){return{type:\"throw\",arg:T}}}e.wrap=u;var d={};function f(){}function p(){}function _(){}var m={};s(m,o,(function(){return this}));var h=Object.getPrototypeOf,E=h&&h(h(N([])));E&&E!==t&&n.call(E,o)&&(m=E);var C=_.prototype=f.prototype=Object.create(m);function v(e){[\"next\",\"throw\",\"return\"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(r,o,i,l){var s=c(e[r],e,o);if(\"throw\"!==s.type){var u=s.arg,d=u.value;return d&&\"object\"==Ie(d)&&n.call(d,\"__await\")?t.resolve(d.__await).then((function(e){a(\"next\",e,i,l)}),(function(e){a(\"throw\",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a(\"throw\",e,i,l)}))}l(s.arg)}var o;r(this,\"_invoke\",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r=\"suspendedStart\";return function(a,o){if(\"executing\"===r)throw new Error(\"Generator is already running\");if(\"completed\"===r){if(\"throw\"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=y(i,n);if(l){if(l===d)continue;return l}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(\"suspendedStart\"===r)throw r=\"completed\",n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=\"executing\";var s=c(e,t,n);if(\"normal\"===s.type){if(r=n.done?\"completed\":\"suspendedYield\",s.arg===d)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(r=\"completed\",n.method=\"throw\",n.arg=s.arg)}}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,y(e,t),\"throw\"===t.method))return d;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return d}var r=c(n,e.iterator,t.arg);if(\"throw\"===r.type)return t.method=\"throw\",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,d):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(I,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=_,r(C,\"constructor\",{value:_,configurable:!0}),r(_,\"constructor\",{value:p,configurable:!0}),p.displayName=s(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,\"GeneratorFunction\")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},v(S.prototype),s(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new S(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(C),s(C,l,\"Generator\"),s(C,o,(function(){return this})),s(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)\"t\"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type=\"throw\",i.arg=e,t.next=n,r&&(t.method=\"next\",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var l=n.call(o,\"catchLoc\"),s=n.call(o,\"finallyLoc\");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,\"finallyLoc\")&&this.prev<a.finallyLoc){var o=a;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(\"throw\"===r.type){var a=r.arg;O(n)}return a}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=void 0),d}},e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e){return Ie=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Ie(e)}function Oe(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function Re(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){Oe(o,r,a,i,l,\"next\",e)}function l(e){Oe(o,r,a,i,l,\"throw\",e)}i(void 0)}))}}var Ne=function(e){switch(e){case\"\":case\"true\":return!0;case\"false\":return!1;default:return}};function Ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t);return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Te(e,t,n,r,a,o,i,l,s){var u=e/t,c=n/r,d=(s===I.contain?c<u:c>u)?e/n:t/r;return{width:a/d,height:o/d,left:i/d-(e/d-n)/2,top:l/d-(t/d-r)/2}}function be(e,t,n){return De.apply(this,arguments)}function De(){return De=Re(ge().mark((function e(t,n,r){var a,o,i;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=[],o=function(e){var o=new Promise((function(a,o){var i=Array.from(t)[e];if(i){if(!i.size)return o(new _e(R.INCORRECT_FILE));var l=document.createElement(\"canvas\"),s=l.getContext(\"2d\",{willReadFrequently:!0}),u=URL.createObjectURL(i),c=new Image;c.onload=function(){var e=c.width,t=c.height;if(c.width*c.height>r)return o(new _e(R.INCORRECT_FILE));if(c.width>n||c.height>n){var i=c.width/c.height;c.width>c.height?(e=n,t=n/i):(t=n,e=n*i)}if(l.width=e,l.height=t,s){s.drawImage(c,0,0,e,t);var d=null==s?void 0:s.getImageData(0,0,e,t);d&&(a(d),URL.revokeObjectURL(u))}},c.src=u,c.onerror=function(){return o(new _e(R.INCORRECT_FILE))}}else o(new _e(R.INCORRECT_FILE))}));a.push(o)},i=0;i<t.length;i++)o(i);return e.abrupt(\"return\",a);case 4:case\"end\":return e.stop()}}),e)}))),De.apply(this,arguments)}function Le(e,t){return new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})}var we=function(e,t){return e.find((function(e){return e.deviceId===t}))};function Pe(e,t,n,r){var a,o,i,l;return t?(o=(a=e.videoParams.height-2*r)*n,i=(e.videoParams.width-o)/2,l=r):(a=(o=e.videoParams.width-2*r)/n,i=r,l=(e.videoParams.height-a)/2),{height:a,width:o,left:i,top:l}}function ke(){return Me.apply(this,arguments)}function Me(){return(Me=Re(ge().mark((function e(){var t,n,r;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices();case 2:return t=e.sent,n=t.filter((function(e){return\"videoinput\"===e.kind})),r=!1,n.length&&(r=n.every((function(e){return\"\"!==e.label}))),e.abrupt(\"return\",{devices:t,videoDevices:n,isCameraAllowed:r,isDevicesChecked:!0});case 7:case\"end\":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e,t){var n=e.toLowerCase();return t.some((function(e){return n.includes(e)}))}function Ue(e,t,n){return xe.apply(this,arguments)}function xe(){return(xe=Re(ge().mark((function e(t,n,r){var a,o,i,l,s,u,c,d,f,p,_,m;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a={selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]},n.videoDevices.length){e.next=3;break}return e.abrupt(\"return\",a);case 3:if(o=[],i=[],l=n.devices,n.isCameraAllowed){e.next=14;break}return e.next=9,navigator.mediaDevices.getUserMedia({video:{facingMode:{ideal:t}},audio:!1});case 9:return s=e.sent,e.next=12,navigator.mediaDevices.enumerateDevices();case 12:l=e.sent,s.getTracks().forEach((function(e){return e.stop()}));case 14:u=l.filter((function(e){return\"videoinput\"===e.kind})),c=Ce(u);try{for(c.s();!(d=c.n()).done;)Fe((f=d.value).label,z)?i.push(new ie(f,S.environment)):o.push(new ie(f,S.user))}catch(h){c.e(h)}finally{c.f()}if(p=(p=r?[].concat(i,o):t===S.environment&&i.length>0?i:o).sort((function(e,t){return e.label.localeCompare(t.label)})),we(p,r)||!r){e.next=22;break}return e.abrupt(\"return\",a);case 22:return _=r?p.map((function(e){return e.deviceId})).indexOf(r):0,m=p.map((function(e){var t=RegExp(/\\b([0-9]+)MP?\\b/,\"i\").exec(e.label);return null!==t?parseInt(t[1],10):NaN})),m.some((function(e){return isNaN(e)}))||(_=m.lastIndexOf(Math.max.apply(Math,Ee(m)))),e.abrupt(\"return\",{selectedCamera:p[_],frontCameras:o,backCameras:i});case 26:case\"end\":return e.stop()}}),e)})))).apply(this,arguments)}var He=function(e){e.getTracks().forEach((function(e){return e.stop()}))};function je(e,t,n){return Be.apply(this,arguments)}function Be(){return(Be=Re(ge().mark((function e(t,n,r){var a,o;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ue.info(\"useStream :: Requesting stream\"),a={stream:null,camera:{selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]}},!navigator.mediaDevices){e.next=18;break}if(n.selectedCamera.deviceId){e.next=7;break}if(!r){e.next=6;break}return e.abrupt(\"return\",he(he({},a),{},{status:E.INCORRECT_CAMERA_ID}));case 6:return e.abrupt(\"return\",he(he({},a),{},{status:E.NO_CAMERA}));case 7:return e.next=9,navigator.mediaDevices.getUserMedia({video:{height:{ideal:t.height},width:{ideal:t.width},frameRate:{ideal:30},deviceId:{exact:n.selectedCamera.deviceId}},audio:!1});case 9:if(!(o=e.sent)){e.next=15;break}return ue.info(\"useStream :: Stream ready\"),e.abrupt(\"return\",{status:E.READY,stream:o,camera:n});case 15:case 18:return e.abrupt(\"return\",he(he({},a),{},{status:E.UNKNOWN_ERROR}));case 16:e.next=19;break;case 19:case\"end\":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(e,t){var n={imageData:[],raw:\"\",mimeType:\"\"},r=e.videoHeight,a=e.videoWidth,o=e.readyState;if(r&&a&&o===A.HAVE_ENOUGH_DATA){var i=document.createElement(\"canvas\");i.width=a,i.height=r;var l=i.getContext(\"2d\",{willReadFrequently:!0});if(null==l||l.drawImage(e,0,0),t!==c.UINT){var s=\"image/jpeg\";n.raw=i.toDataURL(s,.8).replace(\"data:\".concat(s,\";base64,\"),\"\"),n.mimeType=s}if(t!==c.BASE64){var u=null==l?void 0:l.getImageData(0,0,a,r);u&&(n.imageData=[u])}}return n}function Ve(e){var t=e.frontCameras.concat(e.backCameras),n=\"\";return e.selectedCamera.deviceId&&t.length>1&&t.forEach((function(t,r,a){t.deviceId===e.selectedCamera.deviceId&&(n=r+1===a.length?a[0].deviceId:a[r+1].deviceId)})),n}function ze(e,t){var n=function(e){return e&&\"object\"===Ie(e)&&!Array.isArray(e)},r=Object.assign({},e);return n(e)&&n(t)&&Object.keys(t).forEach((function(a){n(t[a])&&a in e?r[a]=ze(e[a],t[a]):Object.assign(r,ye({},a,t[a]))})),r}function Ye(e,t){var n,r,a={glareCheck:h.WAS_NOT_DONE,resolutionCheck:h.WAS_NOT_DONE,focusCheck:h.WAS_NOT_DONE,isDocumentAvailable:!1};return null===(n=e.rawResponse.ContainerList)||void 0===n||null===(r=n.List)||void 0===r||r.forEach((function(e){e.ImageQualityCheckList&&e.page_idx===t&&e.ImageQualityCheckList.List.forEach((function(e){e.type===_.IMAGE_FOCUS&&(a.focusCheck=e.result),e.type===_.IMAGE_GLARES&&(a.glareCheck=e.result),e.type===_.IMAGE_RESOLUTION&&(a.resolutionCheck=e.result)})),e.DocumentPosition&&e.page_idx===t&&(a.isDocumentAvailable=!0)})),a}function We(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ye(e,t),a=r.glareCheck,o=r.resolutionCheck,i=r.focusCheck,l=r.isDocumentAvailable,s=!n||n&&0===e.rawResponse.morePagesAvailable;return e.rawResponse.ProcessingFinished===g.FINISHED?s?p.SUCCESS:p.START_NEXT_PAGE:e.rawResponse.ProcessingFinished===g.TIMEOUT?p.TIMEOUT:l?i===h.ERROR?p.FOCUS:a===h.ERROR?p.GLARE:o===h.ERROR?p.RESOLUTION:p.HOLD:p.FINDING}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return Je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Je(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.environment,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.VGA,n=arguments.length>2?arguments[2]:void 0,r=P.useState({status:E.PREPARING,stream:null,camera:{selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]}}),a=Xe(r,2),o=a[0],i=o.status,l=o.stream,s=o.camera,u=a[1],c=P.useState({devices:[],videoDevices:[],isCameraAllowed:!1,isDevicesChecked:!1}),d=Xe(c,2),f=d[0],p=d[1],_=P.useCallback((function(){u((function(e){return Ze(Ze({},e),{},{status:E.PLAY})}))}),[]);return P.useEffect((function(){var e=!0;return ke().then((function(t){e&&(u((function(e){return Ze(Ze({},e),{},{status:t.isCameraAllowed?E.PREPARING:E.REQUESTING})})),p(t))})).catch((function(){e&&u((function(e){return Ze(Ze({},e),{},{status:E.UNKNOWN_ERROR})}))})),function(){e=!1}}),[]),P.useEffect((function(){var r=!0,a=i===E.PREPARING||i===E.REQUESTING;return f.isDevicesChecked&&null===l&&a&&Ue(e,f,n).then((function(e){return je(t,e,n)})).then((function(e){r?u(e):e.stream&&He(e.stream)})).catch((function(e){e instanceof Error&&e.name===B?u((function(e){return Ze(Ze({},e),{},{status:E.PERMISSION_DENIED})})):u((function(e){return Ze(Ze({},e),{},{status:E.UNKNOWN_ERROR})}))})),function(){r=!1}}),[f,l,e,n,i,t]),P.useEffect((function(){return function(){l&&He(l)}}),[l]),P.useEffect((function(){i===E.PLAY&&u((function(e){return Ze(Ze({},e),{},{status:E.PREPARING,stream:null,camera:{selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]}})}))}),[n]),{status:i,stream:l,camera:s,onPlay:_}},$e=n(\"./src/components/WebCamera.css\");function et(e){var t,n=e.onVideoStatusChange,r=e.objectFit,a=e.onVideoSizeChange,o=e.mode,i=e.resolution,l=e.mirroring,s=e.onFailStatus,u=e.cameraId,c=Qe(o,i,u),d=c.status,f=c.stream,p=c.camera,_=c.onPlay,m=P.useRef(null),h=P.useRef(null),C=r===I.cover?$e.Z.locals.cover:$e.Z.locals.contain,v=l||(null===(t=p.selectedCamera)||void 0===t?void 0:t.facing)===S.environment?$e.Z.locals.mirroring:\"\";return P.useEffect((function(){var e=m.current,t=h.current,n=function(){e&&t&&a&&a({videoElement:e,videoParams:{width:e.videoWidth,height:e.videoHeight},videoContainerParams:{width:t.clientWidth,height:t.clientHeight}})};return e&&(window.addEventListener(\"resize\",n),e.addEventListener(\"resize\",n)),function(){e&&(window.removeEventListener(\"resize\",n),e.removeEventListener(\"resize\",n))}}),[]),P.useEffect((function(){var e=m.current;d===E.READY&&e&&(e.srcObject=f),s&&Y[d]&&s(Y[d]),n({videoStatus:d,camera:p})}),[d,p]),P.createElement(\"div\",{ref:h,className:$e.Z.locals.container},P.createElement(\"video\",{onPlay:_,className:\"\".concat(C,\" \").concat(v),ref:m,autoPlay:!0,playsInline:!0}))}var tt=P.memo(et);var nt=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:t||24,height:t||24,viewBox:\"0 0 24 24\",fill:n||\"white\"},P.createElement(\"path\",{d:\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"}))};var rt=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:t||24,height:t||24,viewBox:\"0 0 24 24\",fill:n||\"white\"},P.createElement(\"path\",{d:\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"}))};var at=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||64,height:t||64,viewBox:\"0 0 64 64\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M0 32C-1.52588e-05 49.6731 14.3269 64 32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32ZM50.9142 22.5811C51.6953 21.7999 51.6953 20.5337 50.9142 19.7526C50.1331 18.9716 48.8668 18.9716 48.0858 19.7526L30.5002 37.3381L22.7477 29.5857C21.9666 28.8047 20.7003 28.8047 19.9193 29.5857C19.1382 30.3669 19.1382 31.6331 19.9193 32.4143L29.0859 41.5808C29.461 41.9561 29.9697 42.1667 30.5002 42.1667C31.0306 42.1667 31.5393 41.9561 31.9144 41.5808L50.9142 22.5811Z\",fill:n||\"#7E53B9\"}))};var ot=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 86 84\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"ellipse\",{cx:\"43\",cy:\"42\",rx:\"40\",ry:\"40\",transform:\"rotate(90 43 42)\",stroke:n||\"#FF0000\",strokeWidth:\"3\"}),P.createElement(\"path\",{d:\"M57 28L29 56M29 28L57 56\",stroke:n||\"#FF0000\",strokeWidth:\"3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))};var it=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 24 24\",width:t||24,height:t||24,fill:n||\"rgba(0,0,0,0.6)\"},P.createElement(\"path\",{d:\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"}))};var lt=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||24,height:t||26,viewBox:\"0 0 14 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{d:\"M10.6389 10.8071C12.1153 9.90582 13.159 8.12119 13.159 6.15818C13.159 2.43323 10.2172 0 6.51964 0C2.82207 0 0 2.43401 0 6.63935V9.79394H2.70628V6.63857C2.70628 4.11536 4.41893 2.70315 6.52199 2.70315C8.62505 2.70315 10.1265 4.14509 10.1265 6.15818C10.1265 8.17127 8.50456 9.79316 6.4015 9.79316H2.70628V16.643H5.41022V12.1967H6.46175C9.10544 12.1967 10.8478 14.2395 10.9081 16.643H13.7317C13.6816 14.2645 12.5433 11.8641 10.6413 10.8071\",fill:n||\"#663399\"}))};var st=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||48,height:t||48,viewBox:\"0 0 48 48\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",{opacity:\"0.9\"},P.createElement(\"rect\",{x:\"23\",y:\"13\",width:\"2\",height:\"22\",rx:\"1\",fill:n||\"white\"}),P.createElement(\"path\",{d:\"M30.3017 24L38 14.7621L38 33.238L30.3017 24Z\",fill:n||\"white\",stroke:n||\"white\",strokeWidth:\"2\"}),P.createElement(\"path\",{d:\"M17.6983 24L10 14.7621L10 33.238L17.6983 24Z\",stroke:n||\"white\",strokeWidth:\"2\"})))};var ut=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||48,height:t||48,viewBox:\"0 0 48 48\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",{opacity:\"0.9\"},P.createElement(\"rect\",{x:\"23\",y:\"13\",width:\"2\",height:\"22\",rx:\"1\",fill:n||\"white\"}),P.createElement(\"path\",{d:\"M30.3017 24L38 14.7621L38 33.238L30.3017 24Z\",stroke:n||\"white\",strokeWidth:\"2\"}),P.createElement(\"path\",{d:\"M17.6983 24L10 14.7621L10 33.238L17.6983 24Z\",fill:n||\"white\",stroke:\"white\",strokeWidth:\"2\"})))};var ct=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 86 84\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"ellipse\",{cx:\"43\",cy:\"42\",rx:\"40\",ry:\"40\",transform:\"rotate(90 43 42)\",stroke:n||\"#E93C3C\",strokeWidth:\"3\"}),P.createElement(\"path\",{d:\"M41.213 32.6666H45.6663C46.3736 32.6666 47.0519 32.9476 47.552 33.4477C48.0521 33.9478 48.333 34.626 48.333 35.3333V39.7866L49.6663 41.12L57.6663 35.3333V48.6666M48.333 47.3333V48.6666C48.333 49.3739 48.0521 50.0521 47.552 50.5522C47.0519 51.0523 46.3736 51.3333 45.6663 51.3333H30.9997C30.2924 51.3333 29.6142 51.0523 29.1141 50.5522C28.614 50.0521 28.333 49.3739 28.333 48.6666V35.3333C28.333 34.626 28.614 33.9478 29.1141 33.4477C29.6142 32.9476 30.2924 32.6666 30.9997 32.6666H33.6663L48.333 47.3333Z\",stroke:n||\"#E93C3C\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M28.333 27.3334L57.6663 56.6667\",stroke:n||\"#E93C3C\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))};var dt=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 86 84\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"ellipse\",{cx:\"43\",cy:\"42\",rx:\"40\",ry:\"40\",transform:\"rotate(90 43 42)\",stroke:n||\"#5DA600\",strokeWidth:\"3\"}),P.createElement(\"path\",{d:\"M66 30L40.5069 54L28 42.2256\",stroke:n||\"#5DA600\",strokeWidth:\"3\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))};var ft=function(e){var t=e.size;return P.createElement(\"svg\",{width:t?1.4*t:163,height:t||114,viewBox:\"0 0 163 114\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13 26C20.1797 26 26 20.1797 26 13H150C151.657 13 153 14.3431 153 16V110C153 111.657 151.657 113 150 113H16C14.3431 113 13 111.657 13 110V26Z\",fill:\"var(--second-color)\",fillOpacity:\"0.15\"}),P.createElement(\"path\",{d:\"M74 96L72.5 102.5L64 105L45.5 109L44 113H122L119.5 109L98.5 104.5L92 99.5V96L85 98H81L74 96Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M102.411 66.2723C108.688 52.1741 102.865 39.2848 92.3275 41.6143C74.3598 30.5453 54.914 46.648 62.0163 66.2719C58.2803 66.2719 60.1383 85.2526 64.3048 81.1084C66.5057 86.3691 67.8517 91.8727 73.4374 95.1223C74.2007 95.5664 76.268 97.5 83.0002 97.5C89.6002 97.5 91.4186 95.7575 92.167 95.3267C92.2766 95.2635 92.3846 95.1995 92.4909 95.1347C97.6962 91.9599 99.0059 86.7313 101.12 81.7291C103.9 84.6665 105 77.0833 105 76C105.495 71.7832 105 65 102.411 66.2723Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M92.3275 41.6143L91.803 42.4658C92.0241 42.602 92.2897 42.6468 92.5433 42.5908L92.3275 41.6143ZM102.411 66.2723L101.497 65.8656C101.326 66.2501 101.414 66.7007 101.717 66.9927C102.02 67.2846 102.474 67.3555 102.852 67.1698L102.411 66.2723ZM64.3048 81.1084L65.2274 80.7224C65.0989 80.4154 64.826 80.1923 64.4995 80.1275C64.173 80.0627 63.8357 80.1646 63.5996 80.3994L64.3048 81.1084ZM62.0163 66.2719V67.2719C62.3422 67.2719 62.6477 67.1131 62.8349 66.8463C63.0221 66.5794 63.0675 66.2381 62.9566 65.9316L62.0163 66.2719ZM73.4374 95.1223L73.9402 94.2579H73.9402L73.4374 95.1223ZM105 76L104.007 75.8834C104.002 75.9221 104 75.961 104 76L105 76ZM101.12 81.7291L101.847 81.0417C101.615 80.7965 101.274 80.685 100.942 80.7451C100.61 80.8052 100.331 81.0288 100.199 81.3398L101.12 81.7291ZM92.167 95.3267L91.668 94.46L91.668 94.46L92.167 95.3267ZM93.297 95.7263C93.6306 95.2861 93.5441 94.6589 93.104 94.3253C92.6638 93.9917 92.0366 94.0782 91.703 94.5183L93.297 95.7263ZM94.4374 102L93.8234 102.789L94.4374 102ZM113.437 107.5L113.654 106.524L113.437 107.5ZM74.0701 94.5179C73.7362 94.0779 73.109 93.9918 72.669 94.3257C72.229 94.6595 72.1429 95.2868 72.4767 95.7267L74.0701 94.5179ZM71.336 102L70.7221 101.211L71.336 102ZM52.336 107.5L52.1191 106.524L52.336 107.5ZM92.5433 42.5908C94.9573 42.0571 97.0403 42.403 98.7357 43.3704C100.441 44.3435 101.829 45.989 102.754 48.173C104.61 52.5536 104.551 59.0061 101.497 65.8656L103.324 66.6791C106.547 59.4403 106.716 52.399 104.595 47.3929C103.532 44.8834 101.881 42.8622 99.7268 41.6333C97.5629 40.3985 94.9664 40.0068 92.1116 40.6379L92.5433 42.5908ZM63.5996 80.3994C63.4092 80.5888 63.2761 80.6606 63.207 80.6859C63.1519 80.7061 63.1338 80.6997 63.1237 80.6969C63.0617 80.6798 62.835 80.5584 62.5267 80.0327C61.9301 79.0153 61.4439 77.1959 61.1897 75.1225C60.9384 73.0735 60.9323 70.9313 61.1982 69.3375C61.3326 68.5316 61.5244 67.9433 61.7344 67.584C61.8365 67.4093 61.9206 67.3277 61.967 67.2941C62.0014 67.2691 62.0105 67.2719 62.0163 67.2719V65.2719C61.0466 65.2719 60.3962 65.9101 60.0077 66.5748C59.6205 67.2373 59.3771 68.0995 59.2255 69.0084C58.9192 70.8439 58.9375 73.1878 59.2045 75.366C59.4686 77.5198 59.9946 79.6685 60.8015 81.0444C61.195 81.7153 61.7678 82.3969 62.5903 82.6245C63.5086 82.8786 64.3471 82.4768 65.0101 81.8174L63.5996 80.3994ZM73.9402 94.2579C68.7236 91.223 67.5081 86.1742 65.2274 80.7224L63.3823 81.4943C65.5033 86.5641 66.9798 92.5224 72.9345 95.9867L73.9402 94.2579ZM62.9566 65.9316C59.5469 56.5105 62.5192 48.0279 68.4044 43.2068C74.2866 38.3882 83.174 37.1499 91.803 42.4658L92.852 40.7629C83.5133 35.0098 73.694 36.2882 67.137 41.6597C60.5828 47.0287 57.3834 56.4094 61.076 66.6123L62.9566 65.9316ZM83.0002 96.5C79.7307 96.5 77.6516 96.0307 76.3281 95.54C74.9807 95.0406 74.4532 94.5564 73.9402 94.2579L72.9345 95.9867C73.1849 96.1323 74.0727 96.837 75.6329 97.4153C77.2169 98.0025 79.5375 98.5 83.0002 98.5V96.5ZM102.852 67.1698C102.932 67.1303 102.981 67.1198 103.002 67.117C103.013 67.1156 103.018 67.1159 103.019 67.116C103.02 67.116 103.02 67.1161 103.02 67.116C103.02 67.116 103.02 67.116 103.019 67.116C103.019 67.116 103.019 67.116 103.019 67.116C103.019 67.116 103.019 67.1159 103.019 67.1159C103.019 67.1159 103.019 67.116 103.019 67.116C103.019 67.116 103.02 67.116 103.02 67.116C103.02 67.1161 103.02 67.1162 103.021 67.1164C103.022 67.1168 103.024 67.1176 103.026 67.119C103.032 67.1217 103.042 67.1272 103.056 67.1377C103.084 67.1593 103.129 67.2001 103.185 67.2728C103.438 67.6008 103.693 68.2655 103.879 69.2614C104.242 71.2019 104.246 73.847 104.007 75.8834L105.993 76.1166C106.249 73.9362 106.254 71.0813 105.845 68.8941C105.646 67.8261 105.322 66.77 104.769 66.0522C104.481 65.6776 104.083 65.3349 103.552 65.1882C103.007 65.0376 102.463 65.1324 101.97 65.3748L102.852 67.1698ZM100.394 82.4165C100.816 82.8623 101.298 83.2091 101.85 83.3427C102.44 83.4854 102.987 83.3552 103.437 83.0688C103.857 82.8011 104.175 82.4104 104.417 82.0233C104.664 81.6283 104.869 81.1777 105.039 80.7227C105.379 79.8133 105.617 78.7913 105.769 77.9417C105.919 77.1072 106 76.3607 106 76L104 76C104 76.1809 103.944 76.7885 103.801 77.5888C103.66 78.374 103.448 79.2673 103.166 80.0219C103.025 80.399 102.875 80.7175 102.722 80.9624C102.564 81.2152 102.436 81.3351 102.362 81.3821C102.317 81.4106 102.323 81.3993 102.32 81.3988C102.28 81.3891 102.12 81.3302 101.847 81.0417L100.394 82.4165ZM92.666 96.1933C92.7829 96.126 92.8981 96.0577 93.0117 95.9884L91.9702 94.2809C91.8711 94.3414 91.7704 94.4011 91.668 94.46L92.666 96.1933ZM93.0117 95.9884C98.5678 92.5996 100.007 86.9322 102.041 82.1184L100.199 81.3398C98.0051 86.5305 96.8247 91.3201 91.9702 94.2809L93.0117 95.9884ZM83.0002 98.5C86.3871 98.5 88.6096 98.053 90.1137 97.5169C91.5993 96.9873 92.4234 96.333 92.666 96.1933L91.668 94.46C91.1623 94.7512 90.7029 95.1836 89.4422 95.633C88.1999 96.0758 86.2132 96.5 83.0002 96.5V98.5ZM92.5 95.1223C91.703 94.5183 91.703 94.5184 91.703 94.5184C91.703 94.5184 91.7029 94.5184 91.7029 94.5184C91.7029 94.5184 91.7029 94.5185 91.7029 94.5185C91.7028 94.5185 91.7028 94.5186 91.7028 94.5186C91.7027 94.5187 91.7026 94.5188 91.7025 94.5189C91.7024 94.5191 91.7022 94.5193 91.7021 94.5195C91.7018 94.52 91.7014 94.5204 91.7011 94.5209C91.7004 94.5218 91.6997 94.5227 91.6989 94.5238C91.6973 94.5259 91.6956 94.5282 91.6936 94.5308C91.6898 94.5361 91.6851 94.5425 91.6798 94.5499L93.3021 95.7194C93.3027 95.7187 93.3026 95.7189 93.3017 95.72C93.3013 95.7206 93.3007 95.7214 93.2999 95.7224C93.2995 95.7229 93.2991 95.7235 93.2986 95.7242C93.2984 95.7245 93.2981 95.7248 93.2978 95.7252C93.2977 95.7254 93.2976 95.7255 93.2974 95.7257C93.2974 95.7258 93.2973 95.7259 93.2972 95.726C93.2972 95.726 93.2971 95.7261 93.2971 95.7261C93.2971 95.7262 93.2971 95.7262 93.2971 95.7262C93.2971 95.7262 93.297 95.7262 93.297 95.7262C93.297 95.7263 93.297 95.7263 92.5 95.1223ZM91.6797 94.5499C91.5472 94.7338 90.8195 95.8021 90.7755 97.3569C90.7294 98.9843 91.4369 100.933 93.8234 102.789L95.0513 101.211C93.0959 99.6897 92.7491 98.3184 92.7747 97.4136C92.8024 96.4363 93.2725 95.7605 93.3021 95.7194L91.6797 94.5499ZM93.8234 102.789C96.2419 104.67 98.9072 105.587 102.031 106.288C103.587 106.638 105.283 106.939 107.126 107.273C108.976 107.609 110.991 107.981 113.22 108.476L113.654 106.524C111.384 106.019 109.336 105.641 107.483 105.305C105.623 104.968 103.975 104.675 102.469 104.337C99.4675 103.663 97.1329 102.83 95.0513 101.211L93.8234 102.789ZM113.22 108.476C114.74 108.814 116.658 109.527 118.24 110.446C119.03 110.905 119.703 111.397 120.196 111.892C120.698 112.396 120.948 112.839 121.019 113.196L122.981 112.804C122.802 111.911 122.261 111.131 121.614 110.482C120.96 109.824 120.129 109.231 119.245 108.717C117.478 107.69 115.365 106.904 113.654 106.524L113.22 108.476ZM73.2734 95.1223C72.4767 95.7267 72.4764 95.7262 72.476 95.7257C72.4759 95.7256 72.4755 95.7251 72.4753 95.7248C72.4748 95.7242 72.4744 95.7236 72.474 95.7231C72.4733 95.7221 72.4727 95.7213 72.4722 95.7207C72.4712 95.7194 72.4709 95.7189 72.471 95.7191C72.4714 95.7196 72.4739 95.723 72.4782 95.7293C72.4868 95.7418 72.5028 95.7656 72.524 95.7999C72.5665 95.8687 72.6287 95.9777 72.6942 96.1209C72.8262 96.4094 72.9642 96.8198 72.9941 97.3095C73.0497 98.2218 72.745 99.6372 70.7221 101.211L71.95 102.789C74.427 100.863 75.0911 98.8393 74.9904 97.1878C74.9421 96.3956 74.7206 95.7428 74.5128 95.2886C74.4084 95.0605 74.3055 94.8783 74.2255 94.7487C74.1853 94.6837 74.1507 94.6316 74.124 94.5929C74.1107 94.5736 74.0993 94.5576 74.0902 94.5451C74.0856 94.5388 74.0817 94.5334 74.0783 94.5289C74.0766 94.5266 74.0751 94.5246 74.0737 94.5227C74.073 94.5218 74.0724 94.521 74.0718 94.5201C74.0715 94.5197 74.071 94.5192 74.0709 94.519C74.0705 94.5184 74.0701 94.5179 73.2734 95.1223ZM70.7221 101.211C68.6406 102.83 66.3059 103.663 63.3045 104.337C61.7983 104.675 60.1509 104.968 58.2903 105.305C56.4371 105.641 54.3895 106.019 52.1191 106.524L52.553 108.476C54.7825 107.981 56.7975 107.609 58.6474 107.273C60.4899 106.939 62.1862 106.638 63.7426 106.288C66.8662 105.587 69.5315 104.67 71.95 102.789L70.7221 101.211ZM52.1191 106.524C50.4084 106.904 48.2959 107.69 46.5287 108.717C45.644 109.231 44.8139 109.824 44.1592 110.482C43.5127 111.131 42.9714 111.911 42.7928 112.804L44.754 113.196C44.8255 112.839 45.0757 112.396 45.5769 111.892C46.0699 111.397 46.7437 110.905 47.5334 110.446C49.115 109.527 51.0338 108.814 52.553 108.476L52.1191 106.524Z\",fill:\"black\"}),P.createElement(\"path\",{d:\"M74 82C74 82 77 89.5 83 89.5C89 89.5 92 82 92 82\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\"}),P.createElement(\"path\",{d:\"M74 82C74 82 77 83.5 83 83.5C89 83.5 92 82 92 82\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\"}),P.createElement(\"path\",{d:\"M67.0001 62C67.0001 62 67.544 58.3104 72.6327 57.3067C76.9577 56.4536 87.393 56.2077 90.2501 51C90.2501 55.4 98.0001 58.1053 98.0001 58.1053\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13 22C17.9706 22 22 17.9706 22 13C22 8.02944 17.9706 4 13 4C8.02944 4 4 8.02944 4 13C4 17.9706 8.02944 22 13 22Z\",fill:\"#E61C1C\"}),P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M15.8511 17.4157C16.1506 17.7152 16.6361 17.7152 16.9356 17.4157L17.4157 16.9356C17.7151 16.6362 17.7151 16.1506 17.4157 15.8512L14.5645 13L17.4156 10.1489C17.7151 9.84945 17.7151 9.36392 17.4156 9.06445L16.9355 8.58437C16.6361 8.2849 16.1505 8.2849 15.8511 8.58437L13 11.4355L10.1488 8.58436C9.84937 8.2849 9.36384 8.2849 9.06438 8.58436L8.58429 9.06445C8.28483 9.36391 8.28483 9.84944 8.58429 10.1489L11.4354 13L8.58425 15.8512C8.28478 16.1506 8.28478 16.6362 8.58425 16.9356L9.06433 17.4157C9.3638 17.7152 9.84933 17.7152 10.1488 17.4157L13 14.5646L15.8511 17.4157Z\",fill:\"white\"}))};var pt=function(e){var t=e.size;return P.createElement(\"svg\",{width:t?1.4*t:163,height:t||113,viewBox:\"0 0 163 113\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13 26C20.1797 26 26 20.1797 26 13H150C151.657 13 153 14.3431 153 16V110C153 111.657 151.657 113 150 113H16C14.3431 113 13 111.657 13 110V26Z\",fill:\"var(--second-color)\",fillOpacity:\"0.15\"}),P.createElement(\"g\",{clipPath:\"url(#clip0)\"},P.createElement(\"path\",{d:\"M74 96L72.5 102.5L64 105L45.5 109L44 113H122L119.5 109L98.5 104.5L92 99.5V96L85 98H81L74 96Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M102.411 66.2723C108.688 52.1741 102.865 39.2848 92.3275 41.6143C74.3598 30.5453 54.914 46.648 62.0163 66.2719C58.2803 66.2719 60.1383 85.2526 64.3048 81.1084C66.5057 86.3691 67.8517 91.8727 73.4374 95.1223C74.2007 95.5664 76.268 97.5 83.0002 97.5C89.6002 97.5 91.4186 95.7575 92.167 95.3267C92.2766 95.2635 92.3846 95.1995 92.4909 95.1347C97.6962 91.9599 99.0059 86.7313 101.12 81.7291C103.9 84.6665 105 77.0833 105 76C105.495 71.7832 105 65 102.411 66.2723Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M92.3275 41.6143L91.803 42.4658C92.0241 42.602 92.2897 42.6468 92.5433 42.5908L92.3275 41.6143ZM102.411 66.2723L101.497 65.8656C101.326 66.2501 101.414 66.7007 101.717 66.9927C102.02 67.2846 102.474 67.3555 102.852 67.1698L102.411 66.2723ZM64.3048 81.1084L65.2274 80.7224C65.0989 80.4154 64.826 80.1923 64.4995 80.1275C64.173 80.0627 63.8357 80.1646 63.5996 80.3994L64.3048 81.1084ZM62.0163 66.2719V67.2719C62.3422 67.2719 62.6477 67.1131 62.8349 66.8463C63.0221 66.5794 63.0675 66.2381 62.9566 65.9316L62.0163 66.2719ZM73.4374 95.1223L73.9402 94.2579H73.9402L73.4374 95.1223ZM105 76L104.007 75.8834C104.002 75.9221 104 75.961 104 76L105 76ZM101.12 81.7291L101.847 81.0417C101.615 80.7965 101.274 80.685 100.942 80.7451C100.61 80.8052 100.331 81.0288 100.199 81.3398L101.12 81.7291ZM92.167 95.3267L91.668 94.46L91.668 94.46L92.167 95.3267ZM93.297 95.7263C93.6306 95.2861 93.5441 94.6589 93.104 94.3253C92.6638 93.9917 92.0366 94.0782 91.703 94.5183L93.297 95.7263ZM94.4374 102L93.8234 102.789L94.4374 102ZM113.437 107.5L113.654 106.524L113.437 107.5ZM74.0701 94.5179C73.7362 94.0779 73.109 93.9918 72.669 94.3257C72.229 94.6595 72.1429 95.2868 72.4767 95.7267L74.0701 94.5179ZM71.336 102L70.7221 101.211L71.336 102ZM52.336 107.5L52.1191 106.524L52.336 107.5ZM92.5433 42.5908C94.9573 42.0571 97.0403 42.403 98.7357 43.3704C100.441 44.3435 101.829 45.989 102.754 48.173C104.61 52.5536 104.551 59.0061 101.497 65.8656L103.324 66.6791C106.547 59.4403 106.716 52.399 104.595 47.3929C103.532 44.8834 101.881 42.8622 99.7268 41.6333C97.5629 40.3985 94.9664 40.0068 92.1116 40.6379L92.5433 42.5908ZM63.5996 80.3994C63.4092 80.5888 63.2761 80.6606 63.207 80.6859C63.1519 80.7061 63.1338 80.6997 63.1237 80.6969C63.0617 80.6798 62.835 80.5584 62.5267 80.0327C61.9301 79.0153 61.4439 77.1959 61.1897 75.1225C60.9384 73.0735 60.9323 70.9313 61.1982 69.3375C61.3326 68.5316 61.5244 67.9433 61.7344 67.584C61.8365 67.4093 61.9206 67.3277 61.967 67.2941C62.0014 67.2691 62.0105 67.2719 62.0163 67.2719V65.2719C61.0466 65.2719 60.3962 65.9101 60.0077 66.5748C59.6205 67.2373 59.3771 68.0995 59.2255 69.0084C58.9192 70.8439 58.9375 73.1878 59.2045 75.366C59.4686 77.5198 59.9946 79.6685 60.8015 81.0444C61.195 81.7153 61.7678 82.3969 62.5903 82.6245C63.5086 82.8786 64.3471 82.4768 65.0101 81.8174L63.5996 80.3994ZM73.9402 94.2579C68.7236 91.223 67.5081 86.1742 65.2274 80.7224L63.3823 81.4943C65.5033 86.5641 66.9798 92.5224 72.9345 95.9867L73.9402 94.2579ZM62.9566 65.9316C59.5469 56.5105 62.5192 48.0279 68.4044 43.2068C74.2866 38.3882 83.174 37.1499 91.803 42.4658L92.852 40.7629C83.5133 35.0098 73.694 36.2882 67.137 41.6597C60.5828 47.0287 57.3834 56.4094 61.076 66.6123L62.9566 65.9316ZM83.0002 96.5C79.7307 96.5 77.6516 96.0307 76.3281 95.54C74.9807 95.0406 74.4532 94.5564 73.9402 94.2579L72.9345 95.9867C73.1849 96.1323 74.0727 96.837 75.6329 97.4153C77.2169 98.0025 79.5375 98.5 83.0002 98.5V96.5ZM102.852 67.1698C102.932 67.1303 102.981 67.1198 103.002 67.117C103.013 67.1156 103.018 67.1159 103.019 67.116C103.02 67.116 103.02 67.1161 103.02 67.116C103.02 67.116 103.02 67.116 103.019 67.116C103.019 67.116 103.019 67.116 103.019 67.116C103.019 67.116 103.019 67.1159 103.019 67.1159C103.019 67.1159 103.019 67.116 103.019 67.116C103.019 67.116 103.02 67.116 103.02 67.116C103.02 67.1161 103.02 67.1162 103.021 67.1164C103.022 67.1168 103.024 67.1176 103.026 67.119C103.032 67.1217 103.042 67.1272 103.056 67.1377C103.084 67.1593 103.129 67.2001 103.185 67.2728C103.438 67.6008 103.693 68.2655 103.879 69.2614C104.242 71.2019 104.246 73.847 104.007 75.8834L105.993 76.1166C106.249 73.9362 106.254 71.0813 105.845 68.8941C105.646 67.8261 105.322 66.77 104.769 66.0522C104.481 65.6776 104.083 65.3349 103.552 65.1882C103.007 65.0376 102.463 65.1324 101.97 65.3748L102.852 67.1698ZM100.394 82.4165C100.816 82.8623 101.298 83.2091 101.85 83.3427C102.44 83.4854 102.987 83.3552 103.437 83.0688C103.857 82.8011 104.175 82.4104 104.417 82.0233C104.664 81.6283 104.869 81.1777 105.039 80.7227C105.379 79.8133 105.617 78.7913 105.769 77.9417C105.919 77.1072 106 76.3607 106 76L104 76C104 76.1809 103.944 76.7885 103.801 77.5888C103.66 78.374 103.448 79.2673 103.166 80.0219C103.025 80.399 102.875 80.7175 102.722 80.9624C102.564 81.2152 102.436 81.3351 102.362 81.3821C102.317 81.4106 102.323 81.3993 102.32 81.3988C102.28 81.3891 102.12 81.3302 101.847 81.0417L100.394 82.4165ZM92.666 96.1933C92.7829 96.126 92.8981 96.0577 93.0117 95.9884L91.9702 94.2809C91.8711 94.3414 91.7704 94.4011 91.668 94.46L92.666 96.1933ZM93.0117 95.9884C98.5678 92.5996 100.007 86.9322 102.041 82.1184L100.199 81.3398C98.0051 86.5305 96.8247 91.3201 91.9702 94.2809L93.0117 95.9884ZM83.0002 98.5C86.3871 98.5 88.6096 98.053 90.1137 97.5169C91.5993 96.9873 92.4234 96.333 92.666 96.1933L91.668 94.46C91.1623 94.7512 90.7029 95.1836 89.4422 95.633C88.1999 96.0758 86.2132 96.5 83.0002 96.5V98.5ZM92.5 95.1223C91.703 94.5183 91.703 94.5184 91.703 94.5184C91.703 94.5184 91.7029 94.5184 91.7029 94.5184C91.7029 94.5184 91.7029 94.5185 91.7029 94.5185C91.7028 94.5185 91.7028 94.5186 91.7028 94.5186C91.7027 94.5187 91.7026 94.5188 91.7025 94.5189C91.7024 94.5191 91.7022 94.5193 91.7021 94.5195C91.7018 94.52 91.7014 94.5204 91.7011 94.5209C91.7004 94.5218 91.6997 94.5227 91.6989 94.5238C91.6973 94.5259 91.6956 94.5282 91.6936 94.5308C91.6898 94.5361 91.6851 94.5425 91.6798 94.5499L93.3021 95.7194C93.3027 95.7187 93.3026 95.7189 93.3017 95.72C93.3013 95.7206 93.3007 95.7214 93.2999 95.7224C93.2995 95.7229 93.2991 95.7235 93.2986 95.7242C93.2984 95.7245 93.2981 95.7248 93.2978 95.7252C93.2977 95.7254 93.2976 95.7255 93.2974 95.7257C93.2974 95.7258 93.2973 95.7259 93.2972 95.726C93.2972 95.726 93.2971 95.7261 93.2971 95.7261C93.2971 95.7262 93.2971 95.7262 93.2971 95.7262C93.2971 95.7262 93.297 95.7262 93.297 95.7262C93.297 95.7263 93.297 95.7263 92.5 95.1223ZM91.6797 94.5499C91.5472 94.7338 90.8195 95.8021 90.7755 97.3569C90.7294 98.9843 91.4369 100.933 93.8234 102.789L95.0513 101.211C93.0959 99.6897 92.7491 98.3184 92.7747 97.4136C92.8024 96.4363 93.2725 95.7605 93.3021 95.7194L91.6797 94.5499ZM93.8234 102.789C96.2419 104.67 98.9072 105.587 102.031 106.288C103.587 106.638 105.283 106.939 107.126 107.273C108.976 107.609 110.991 107.981 113.22 108.476L113.654 106.524C111.384 106.019 109.336 105.641 107.483 105.305C105.623 104.968 103.975 104.675 102.469 104.337C99.4675 103.663 97.1329 102.83 95.0513 101.211L93.8234 102.789ZM113.22 108.476C114.74 108.814 116.658 109.527 118.24 110.446C119.03 110.905 119.703 111.397 120.196 111.892C120.698 112.396 120.948 112.839 121.019 113.196L122.981 112.804C122.802 111.911 122.261 111.131 121.614 110.482C120.96 109.824 120.129 109.231 119.245 108.717C117.478 107.69 115.365 106.904 113.654 106.524L113.22 108.476ZM73.2734 95.1223C72.4767 95.7267 72.4764 95.7262 72.476 95.7257C72.4759 95.7256 72.4755 95.7251 72.4753 95.7248C72.4748 95.7242 72.4744 95.7236 72.474 95.7231C72.4733 95.7221 72.4727 95.7213 72.4722 95.7207C72.4712 95.7194 72.4709 95.7189 72.471 95.7191C72.4714 95.7196 72.4739 95.723 72.4782 95.7293C72.4868 95.7418 72.5028 95.7656 72.524 95.7999C72.5665 95.8687 72.6287 95.9777 72.6942 96.1209C72.8262 96.4094 72.9642 96.8198 72.9941 97.3095C73.0497 98.2218 72.745 99.6372 70.7221 101.211L71.95 102.789C74.427 100.863 75.0911 98.8393 74.9904 97.1878C74.9421 96.3956 74.7206 95.7428 74.5128 95.2886C74.4084 95.0605 74.3055 94.8783 74.2255 94.7487C74.1853 94.6837 74.1507 94.6316 74.124 94.5929C74.1107 94.5736 74.0993 94.5576 74.0902 94.5451C74.0856 94.5388 74.0817 94.5334 74.0783 94.5289C74.0766 94.5266 74.0751 94.5246 74.0737 94.5227C74.073 94.5218 74.0724 94.521 74.0718 94.5201C74.0715 94.5197 74.071 94.5192 74.0709 94.519C74.0705 94.5184 74.0701 94.5179 73.2734 95.1223ZM70.7221 101.211C68.6406 102.83 66.3059 103.663 63.3045 104.337C61.7983 104.675 60.1509 104.968 58.2903 105.305C56.4371 105.641 54.3895 106.019 52.1191 106.524L52.553 108.476C54.7825 107.981 56.7975 107.609 58.6474 107.273C60.4899 106.939 62.1862 106.638 63.7426 106.288C66.8662 105.587 69.5315 104.67 71.95 102.789L70.7221 101.211ZM52.1191 106.524C50.4084 106.904 48.2959 107.69 46.5287 108.717C45.644 109.231 44.8139 109.824 44.1592 110.482C43.5127 111.131 42.9714 111.911 42.7928 112.804L44.754 113.196C44.8255 112.839 45.0757 112.396 45.5769 111.892C46.0699 111.397 46.7437 110.905 47.5334 110.446C49.115 109.527 51.0338 108.814 52.553 108.476L52.1191 106.524Z\",fill:\"black\"}),P.createElement(\"path\",{d:\"M67.0001 62C67.0001 62 67.544 58.3104 72.6327 57.3067C76.9577 56.4536 87.393 56.2077 90.2501 51C90.2501 55.4 98.0001 58.1053 98.0001 58.1053\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M147 39.7083C158.276 39.7083 167.417 30.6608 167.417 19.5C167.417 8.33925 158.276 -0.708328 147 -0.708328C135.724 -0.708328 126.583 8.33925 126.583 19.5C126.583 30.6608 135.724 39.7083 147 39.7083Z\",fill:\"white\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M147 49.1791V53.2208V57.2624\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M109.529 19.5H117.696\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M121.059 47.6795L126.857 41.9403\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})),P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M13 22C17.9706 22 22 17.9706 22 13C22 8.02944 17.9706 4 13 4C8.02944 4 4 8.02944 4 13C4 17.9706 8.02944 22 13 22Z\",fill:\"#E61C1C\"}),P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M15.8511 17.4157C16.1506 17.7152 16.6361 17.7152 16.9356 17.4157L17.4156 16.9356C17.7151 16.6362 17.7151 16.1506 17.4156 15.8512L14.5645 13L17.4156 10.1489C17.7151 9.84945 17.7151 9.36392 17.4156 9.06445L16.9355 8.58437C16.636 8.2849 16.1505 8.2849 15.851 8.58437L12.9999 11.4355L10.1488 8.58436C9.84936 8.2849 9.36383 8.2849 9.06436 8.58436L8.58428 9.06445C8.28481 9.36391 8.28481 9.84944 8.58428 10.1489L11.4354 13L8.58423 15.8512C8.28477 16.1506 8.28477 16.6362 8.58423 16.9356L9.06432 17.4157C9.36378 17.7152 9.84931 17.7152 10.1488 17.4157L12.9999 14.5646L15.8511 17.4157Z\",fill:\"white\"}),P.createElement(\"defs\",null,P.createElement(\"clipPath\",{id:\"clip0\"},P.createElement(\"rect\",{x:\"13\",y:\"13\",width:\"140\",height:\"100\",rx:\"3\",fill:\"white\"}))))};var _t=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||48,height:t||48,viewBox:\"0 0 48 48\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{d:\"M46 38C46 39.0609 45.5786 40.0783 44.8284 40.8284C44.0783 41.5786 43.0609 42 42 42H6C4.93913 42 3.92172 41.5786 3.17157 40.8284C2.42143 40.0783 2 39.0609 2 38V16C2 14.9391 2.42143 13.9217 3.17157 13.1716C3.92172 12.4214 4.93913 12 6 12H14L18 7.20001H30L34 12H42C43.0609 12 44.0783 12.4214 44.8284 13.1716C45.5786 13.9217 46 14.9391 46 16V38Z\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M24.0001 34.8C28.6393 34.8 32.4001 31.0392 32.4001 26.4C32.4001 21.7608 28.6393 18 24.0001 18C19.3609 18 15.6001 21.7608 15.6001 26.4C15.6001 31.0392 19.3609 34.8 24.0001 34.8Z\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"rect\",{x:\"37\",y:\"17\",width:\"4\",height:\"4\",rx:\"1\",fill:\"var(--main-color)\"}))};var mt=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||48,height:t||48,viewBox:\"0 0 48 48\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",{clipPath:\"url(#clip0)\"},P.createElement(\"path\",{d:\"M43.875 34.125C45.6699 34.125 47.125 32.6699 47.125 30.875V8.125C47.125 6.33007 45.6699 4.875 43.875 4.875H21.125C19.3301 4.875 17.875 6.33007 17.875 8.125\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M35.875 11.875H5.125C3.33007 11.875 1.875 13.3301 1.875 15.125V37.875C1.875 39.6699 3.33007 41.125 5.125 41.125H35.875C37.6699 41.125 39.125 39.6699 39.125 37.875V15.125C39.125 13.3301 37.6699 11.875 35.875 11.875Z\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M10.8125 23.25C12.1587 23.25 13.25 22.1587 13.25 20.8125C13.25 19.4663 12.1587 18.375 10.8125 18.375C9.46631 18.375 8.375 19.4663 8.375 20.8125C8.375 22.1587 9.46631 23.25 10.8125 23.25Z\",fill:\"var(--main-color)\"}),P.createElement(\"path\",{d:\"M31.125 31.375L23 23.25L5.125 41.125\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})),P.createElement(\"defs\",null,P.createElement(\"clipPath\",{id:\"clip0\"},P.createElement(\"rect\",{width:\"48\",height:\"48\",fill:\"white\"}))))};var ht=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#1B101F\",fillOpacity:\"0.5\"})),P.createElement(\"g\",{opacity:\"0.8\"},P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"23.5\",stroke:\"white\"}),P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"1\",fill:\"white\"})))};var Et=function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80ZM64.0282 29.0922C64.6314 28.5243 64.66 27.575 64.0922 26.9718C63.5243 26.3686 62.575 26.34 61.9718 26.9078L37.5069 49.9399L26.0282 39.1334C25.425 38.5656 24.4757 38.5942 23.9079 39.1974C23.34 39.8006 23.3686 40.7499 23.9718 41.3177L36.4787 53.0922C37.0563 53.6359 37.9575 53.6359 38.5351 53.0922L64.0282 29.0922Z\",fill:n||\"white\"}))};var Ct=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#E95454\",fillOpacity:\"0.45\"})),P.createElement(\"g\",null,P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z\",fill:\"white\"})))};var vt=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#1B101F\",fillOpacity:\"0.5\"})),P.createElement(\"g\",{opacity:\"0.8\"},P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M40 67C54.9117 67 67 54.9117 67 40C67 25.0883 54.9117 13 40 13C25.0883 13 13 25.0883 13 40C13 54.9117 25.0883 67 40 67ZM40 64C53.2548 64 64 53.2548 64 40C64 26.7452 53.2548 16 40 16C26.7452 16 16 26.7452 16 40C16 53.2548 26.7452 64 40 64Z\",fill:\"white\"})))};var St=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#1B101F\",fillOpacity:\"0.5\"})),P.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M16 25.2308C16 24.551 16.5373 24 17.2 24H62.8C63.4627 24 64 24.551 64 25.2308V54.7692C64 55.449 63.4627 56 62.8 56H17.2C16.5373 56 16 55.449 16 54.7692V25.2308ZM21.4 30.1538C21.4 29.814 21.6686 29.5385 22 29.5385H32.8C33.1314 29.5385 33.4 29.814 33.4 30.1538V43.6923C33.4 44.0322 33.1314 44.3077 32.8 44.3077H22C21.6686 44.3077 21.4 44.0322 21.4 43.6923V30.1538ZM39.4 29.5385C39.0686 29.5385 38.8 29.814 38.8 30.1538V30.7692C38.8 31.1091 39.0686 31.3846 39.4 31.3846H58C58.3314 31.3846 58.6 31.1091 58.6 30.7692V30.1538C58.6 29.814 58.3314 29.5385 58 29.5385H39.4ZM39.4 35.0769C39.0686 35.0769 38.8 35.3524 38.8 35.6923V36.3077C38.8 36.6476 39.0686 36.9231 39.4 36.9231H49.6C49.9314 36.9231 50.2 36.6476 50.2 36.3077V35.6923C50.2 35.3524 49.9314 35.0769 49.6 35.0769H39.4ZM38.8 41.2308C38.8 40.8909 39.0686 40.6154 39.4 40.6154H53.8C54.1314 40.6154 54.4 40.8909 54.4 41.2308V41.8462C54.4 42.186 54.1314 42.4615 53.8 42.4615H39.4C39.0686 42.4615 38.8 42.186 38.8 41.8462V41.2308ZM22 49.8462C21.6686 49.8462 21.4 50.1217 21.4 50.4615V51.0769C21.4 51.4168 21.6686 51.6923 22 51.6923H32.2C32.5314 51.6923 32.8 51.4168 32.8 51.0769V50.4615C32.8 50.1217 32.5314 49.8462 32.2 49.8462H22Z\",fill:\"white\"}))};var gt=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#1B101F\",fillOpacity:\"0.5\"})),P.createElement(\"path\",{d:\"M40.213 30.6667H44.6663C45.3736 30.6667 46.0519 30.9476 46.552 31.4477C47.0521 31.9478 47.333 32.6261 47.333 33.3334V37.7867L48.6663 38.12L56.6663 33.3334V46.6667M47.333 45.3334V46.6667C47.333 47.3739 47.0521 48.0522 46.552 48.5523C46.0519 49.0524 45.3736 49.3334 44.6663 49.3334H29.9997C29.2924 49.3334 28.6142 49.0524 28.1141 48.5523C27.614 48.0522 27.333 47.3739 27.333 46.6667V33.3334C27.333 32.6261 27.614 31.9478 28.1141 31.4477C28.6142 30.9476 29.2924 30.6667 29.9997 30.6667H32.6663L47.333 45.3334Z\",stroke:\"#FF5E5E\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M27.333 25.3333L56.6663 54.6666\",stroke:\"#FF5E5E\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))};var yt=function(e){var t=e.size;return P.createElement(\"svg\",{width:t||80,height:t||80,viewBox:\"0 0 80 80\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",null,P.createElement(\"circle\",{cx:\"40\",cy:\"40\",r:\"40\",fill:\"#1B101F\",fillOpacity:\"0.5\"})),P.createElement(\"path\",{d:\"M47.333 43L56.6663 46.6666V33.3333L47.333 37\",stroke:\"white\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),P.createElement(\"path\",{d:\"M47.333 43V46.6667C47.333 48.1394 46.1391 49.3334 44.6663 49.3334H29.9997C28.5269 49.3334 27.333 48.1394 27.333 46.6667V33.3334C27.333 31.8606 28.5269 30.6667 29.9997 30.6667H44.6663C46.1391 30.6667 47.333 31.8606 47.333 33.3334V43.5\",stroke:\"white\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}))},It=n(\"./src/common/InstructionIconFaceLiveness.css\");var Ot=function(e){var t=e.size;return P.createElement(\"svg\",{width:t?2.14*t:300,height:t||140,viewBox:\"0 0 300 140\",preserveAspectRatio:\"xMidYMid slice\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"defs\",null,P.createElement(\"mask\",{id:\"bgClip\"},P.createElement(\"rect\",{x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"#fff\"}),P.createElement(\"ellipse\",{className:It.Z.locals.mask,cx:\"150\",cy:\"70\",rx:\"32\",ry:\"42\"})),P.createElement(\"mask\",{id:\"ovalClip\"},P.createElement(\"rect\",{x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"#fff\"}),P.createElement(\"rect\",{className:It.Z.locals[\"oval-mask-y\"],x:\"135\",y:\"0\",width:\"30\",height:\"140\"}),P.createElement(\"rect\",{className:It.Z.locals[\"oval-mask-x\"],x:\"0\",y:\"55\",width:\"300\",height:\"30\"}))),P.createElement(\"g\",{className:It.Z.locals.man},P.createElement(\"path\",{d:\"M160.394 41.0144L159.872 41.8678C160.092 42.0022 160.356 42.0464 160.608 41.9912L160.394 41.0144ZM171.689 68.4015L170.777 67.9918C170.605 68.3758 170.691 68.8266 170.993 69.1196C171.296 69.4125 171.749 69.4848 172.127 69.3005L171.689 68.4015ZM129.001 84.8796L129.922 84.4909C129.793 84.1854 129.521 83.9636 129.196 83.8989C128.871 83.8341 128.535 83.9348 128.299 84.1676L129.001 84.8796ZM126.437 68.4011V69.4011C126.763 69.4011 127.069 69.2418 127.256 68.9743C127.443 68.7068 127.488 68.3648 127.376 68.0582L126.437 68.4011ZM139.232 100.445L138.732 101.311V101.311L139.232 100.445ZM174.59 79.2058L173.597 79.0882C173.593 79.1272 173.59 79.1665 173.59 79.2059L174.59 79.2058ZM170.244 85.569L170.967 84.8786C170.735 84.6353 170.396 84.5251 170.065 84.5851C169.735 84.6452 169.456 84.8675 169.324 85.1768L170.244 85.569ZM160.214 100.672L159.718 99.8031L160.214 100.672ZM161.381 101.052C161.717 100.613 161.633 99.9856 161.194 99.6502C160.755 99.3148 160.128 99.3985 159.792 99.8373L161.381 101.052ZM162.757 108.084L162.147 108.875L162.757 108.084ZM177.273 114.192L177.488 113.216L177.273 114.192ZM139.842 99.8369C139.506 99.3983 138.879 99.3148 138.44 99.6505C138.002 99.9861 137.918 100.614 138.254 101.052L139.842 99.8369ZM136.878 108.084L137.488 108.875L136.878 108.084ZM122.362 114.192L122.577 115.169L122.362 114.192ZM160.608 41.9912C163.341 41.3922 165.707 41.7795 167.635 42.8705C169.573 43.9667 171.142 45.816 172.186 48.2586C174.279 53.1565 174.208 60.3532 170.777 67.9918L172.602 68.8112C176.203 60.7912 176.387 53.0006 174.025 47.4728C172.841 44.7025 171.006 42.4793 168.62 41.1297C166.225 39.7748 163.349 39.3429 160.18 40.0376L160.608 41.9912ZM128.299 84.1676C127.859 84.6015 127.667 84.5353 127.643 84.5287C127.526 84.4967 127.252 84.3281 126.903 83.7376C126.223 82.5884 125.677 80.5504 125.391 78.2437C125.109 75.9613 125.102 73.5716 125.402 71.7891C125.553 70.8889 125.771 70.2211 126.015 69.8058C126.258 69.3942 126.412 69.4011 126.437 69.4011V67.4011C125.415 67.4011 124.719 68.0668 124.293 68.7901C123.868 69.5097 123.598 70.4529 123.429 71.4572C123.088 73.4836 123.108 76.0766 123.407 78.4892C123.702 80.8775 124.289 83.2468 125.182 84.7558C125.619 85.4944 126.24 86.2177 127.114 86.4575C128.081 86.7228 128.976 86.3085 129.703 85.5917L128.299 84.1676ZM139.731 99.5784C133.844 96.1826 132.468 90.5239 129.922 84.4909L128.079 85.2684C130.465 90.9213 132.104 97.4881 138.732 101.311L139.731 99.5784ZM127.376 68.0582C123.542 57.5553 126.882 48.0864 133.514 42.7002C140.145 37.3147 150.161 35.9362 159.872 41.8678L160.915 40.161C150.498 33.7984 139.557 35.2153 132.253 41.1477C124.949 47.0794 121.375 57.4509 125.498 68.744L127.376 68.0582ZM149.945 102.085C146.269 102.085 143.925 101.562 142.426 101.011C140.903 100.452 140.29 99.9005 139.731 99.5784L138.732 101.311C139.029 101.482 140.001 102.251 141.736 102.889C143.494 103.535 146.078 104.085 149.945 104.085V102.085ZM172.127 69.3005C172.321 69.2062 172.396 69.2298 172.406 69.2324C172.428 69.2386 172.517 69.2716 172.655 69.4485C172.955 69.8341 173.244 70.5932 173.453 71.7026C173.862 73.8705 173.866 76.8191 173.597 79.0882L175.584 79.3235C175.869 76.9091 175.874 73.7489 175.419 71.3322C175.196 70.1494 174.837 68.9972 174.234 68.2213C173.92 67.8175 173.495 67.457 172.934 67.3035C172.36 67.1462 171.783 67.2436 171.251 67.5025L172.127 69.3005ZM169.521 86.2595C169.985 86.7461 170.505 87.1135 171.092 87.2541C171.714 87.4035 172.292 87.2682 172.771 86.9658C173.221 86.6815 173.567 86.2633 173.833 85.8404C174.105 85.4098 174.332 84.9164 174.521 84.4151C174.899 83.4131 175.163 82.2847 175.333 81.3444C175.501 80.4193 175.59 79.5973 175.59 79.2058L173.59 79.2059C173.59 79.416 173.526 80.0979 173.365 80.9885C173.207 81.8639 172.969 82.8628 172.649 83.7091C172.49 84.1319 172.319 84.4928 172.142 84.7729C171.96 85.0607 171.806 85.2096 171.703 85.2749C171.628 85.3222 171.599 85.319 171.558 85.3093C171.481 85.2907 171.281 85.2076 170.967 84.8786L169.521 86.2595ZM160.71 101.54C160.84 101.466 160.968 101.39 161.094 101.314L160.059 99.6026C159.947 99.6703 159.834 99.7371 159.718 99.8031L160.71 101.54ZM161.094 101.314C167.277 97.575 168.875 91.3294 171.164 85.9612L169.324 85.1768C166.875 90.9204 165.539 96.2892 160.059 99.6026L161.094 101.314ZM149.945 104.085C153.728 104.085 156.202 103.59 157.871 103.001C159.521 102.418 160.422 101.704 160.71 101.54L159.718 99.8031C159.168 100.117 158.631 100.611 157.204 101.115C155.796 101.613 153.555 102.085 149.945 102.085V104.085ZM160.587 100.445C159.792 99.8373 159.792 99.8373 159.792 99.8373C159.792 99.8373 159.792 99.8374 159.792 99.8374C159.792 99.8374 159.792 99.8374 159.792 99.8374C159.792 99.8375 159.792 99.8375 159.792 99.8376C159.792 99.8377 159.792 99.8378 159.792 99.8379C159.792 99.8381 159.792 99.8383 159.792 99.8385C159.791 99.8389 159.791 99.8394 159.791 99.8398C159.79 99.8408 159.789 99.8418 159.788 99.8429C159.787 99.845 159.785 99.8475 159.783 99.8502C159.779 99.8558 159.774 99.8625 159.768 99.8704L161.386 101.046C161.387 101.045 161.387 101.045 161.386 101.046C161.386 101.046 161.385 101.047 161.384 101.048C161.384 101.049 161.383 101.049 161.383 101.05C161.383 101.05 161.382 101.05 161.382 101.051C161.382 101.051 161.382 101.051 161.382 101.051C161.382 101.051 161.382 101.052 161.382 101.052C161.382 101.052 161.382 101.052 161.381 101.052C161.381 101.052 161.381 101.052 161.381 101.052C161.381 101.052 161.381 101.052 161.381 101.052C161.381 101.052 161.381 101.052 160.587 100.445ZM159.768 99.8703C159.626 100.066 158.824 101.232 158.775 102.929C158.725 104.701 159.499 106.834 162.147 108.875L163.368 107.292C161.151 105.582 160.745 104.028 160.774 102.987C160.806 101.872 161.346 101.1 161.386 101.046L159.768 99.8703ZM162.147 108.875C164.605 110.771 165.841 111.852 167.723 112.678C169.573 113.491 172.059 114.067 177.058 115.169L177.488 113.216C172.405 112.096 170.153 111.561 168.527 110.847C166.932 110.146 165.951 109.283 163.368 107.292L162.147 108.875ZM177.058 115.169C178.713 115.534 182.705 116.963 186.272 120.675C189.813 124.36 193 130.361 193 140H195C195 129.872 191.632 123.367 187.715 119.289C183.823 115.239 179.451 113.648 177.488 113.216L177.058 115.169ZM139.048 100.445C138.254 101.052 138.253 101.052 138.253 101.051C138.253 101.051 138.253 101.051 138.252 101.05C138.252 101.05 138.251 101.049 138.251 101.049C138.25 101.048 138.25 101.047 138.249 101.047C138.249 101.045 138.248 101.045 138.249 101.046C138.25 101.047 138.253 101.052 138.258 101.059C138.269 101.075 138.288 101.103 138.313 101.142C138.362 101.222 138.434 101.347 138.51 101.511C138.662 101.84 138.821 102.308 138.855 102.868C138.92 103.918 138.56 105.523 136.267 107.292L137.488 108.875C140.236 106.757 140.962 104.542 140.851 102.745C140.798 101.88 140.554 101.168 140.326 100.672C140.211 100.424 140.098 100.225 140.01 100.085C139.966 100.014 139.928 99.9577 139.9 99.9162C139.885 99.8955 139.873 99.8784 139.863 99.8652C139.858 99.8586 139.854 99.8529 139.851 99.8482C139.849 99.8458 139.847 99.8437 139.846 99.8418C139.845 99.8409 139.844 99.84 139.844 99.8392C139.844 99.8388 139.843 99.8382 139.843 99.838C139.843 99.8374 139.842 99.8369 139.048 100.445ZM136.267 107.292C133.684 109.283 132.703 110.146 131.108 110.847C129.482 111.561 127.23 112.096 122.147 113.216L122.577 115.169C127.576 114.067 130.061 113.491 131.912 112.678C133.794 111.852 135.03 110.771 137.488 108.875L136.267 107.292ZM122.147 113.216C120.177 113.65 115.894 115.245 112.094 119.298C108.27 123.378 105 129.88 105 140H107C107 130.352 110.101 124.349 113.554 120.666C117.03 116.957 120.929 115.532 122.577 115.169L122.147 113.216Z\"}),P.createElement(\"path\",{d:\"M132 64C132 64 132.614 59.6396 138.359 58.4533C143.242 57.4451 155.024 57.1545 158.25 51C158.25 56.2 167 59.3972 167 59.3972\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\"})),P.createElement(\"rect\",{mask:\"url(#bgClip)\",x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"var(--second-color)\"}),P.createElement(\"ellipse\",{mask:\"url(#ovalClip)\",className:It.Z.locals.ellipse,cx:\"150\",cy:\"70\",rx:\"35\",ry:\"45\",fill:\"none\",stroke:\"var(--main-color)\",strokeWidth:\"2\"}),P.createElement(\"circle\",{className:It.Z.locals[\"icon-background\"],cx:\"267\",cy:\"33\",r:\"20\",fill:\"var(--main-color)\"}),P.createElement(\"g\",{className:It.Z.locals[\"icon-mark\"]},P.createElement(\"path\",{d:\"M259 32.5L266 39.5\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\"}),P.createElement(\"path\",{d:\"M278.5 27L266 39.5\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\"})))},Rt=n(\"./src/common/InstructionIconFaceDetection.css\");var Nt={fullscreen:nt,verified:dt,check:at,error:ot,cross:it,snapshot:function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||60,height:t||60,viewBox:\"0 0 60 60\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",{opacity:\"0.6\"},P.createElement(\"circle\",{cx:\"30\",cy:\"30\",r:\"29.5\",stroke:n||\"white\"})),P.createElement(\"circle\",{cx:\"30\",cy:\"30\",r:\"21\",fill:n||\"white\"}))},square:function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||46,height:t||46,viewBox:\"0 0 46 46\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"path\",{d:\"M45 34V41C45 43.2091 43.2091 45 41 45H34M45 12V5C45 2.79086 43.2091 1 41 1H34M12 1H5C2.79086 1 1 2.79086 1 5V12M1 34V41C1 43.2091 2.79086 45 5 45H12\",stroke:n||\"white\",strokeWidth:\"1.5\"}))},stop:function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{width:t||48,height:t||48,viewBox:\"0 0 1024 1024\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"g\",{opacity:\"0.9\"},P.createElement(\"path\",{d:\"M556.1 909.5H192.2c-14.1 0-25.5-10.6-25.5-23.7V170.3c0-13.1 11.5-23.7 25.5-23.7H832c14.1 0 25.5 10.6 25.5 23.7v381.8c0 13.3 10.7 24 24 24s24-10.7 24-24V170.3c0-39.5-33-71.7-73.5-71.7H192.2c-40.5 0-73.5 32.2-73.5 71.7v715.5c0 39.5 33 71.7 73.5 71.7h363.9c13.3 0 24-10.7 24-24s-10.8-24-24-24z\",fill:n||\"white\"}),P.createElement(\"path\",{d:\"M761.6 232.6H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.3 0 24-10.7 24-24s-10.8-24-24-24zM785.6 426.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h500.9c13.2 0 24-10.7 24-24zM680.1 596.6c0-13.3-10.7-24-24-24H260.7c-13.3 0-24 10.7-24 24s10.7 24 24 24h395.4c13.2 0 24-10.7 24-24zM260.7 744.3c-13.3 0-24 10.7-24 24s10.7 24 24 24h284.4c13.3 0 24-10.7 24-24s-10.7-24-24-24H260.7zM770.7 622.7zM939.1 786.2c-2.7-91.3-77.6-163.5-168.3-163.5v36c34.6 0 67.3 13.3 92.1 37.4 24.9 24.1 39.2 56.5 40.2 91.2 1.1 35.4-11.7 69.1-36 94.8-24.3 25.8-57.1 40.5-92.5 41.6-1.3 0-2.7 0.1-4 0.1-34.6 0-67.3-13.3-92.2-37.4-24.9-24.1-39.2-56.5-40.2-91.2-1.1-35.4 11.7-69.1 36-94.8 24.3-25.8 57.1-40.5 92.5-41.6 1.3 0 2.7-0.1 4-0.1v-36c-1.7 0-3.4 0-5.1 0.1-93 2.8-166.2 80.4-163.5 173.5 2.7 91.3 77.6 163.5 168.4 163.5 1.7 0 3.4 0 5.1-0.1 93.1-2.8 166.2-80.5 163.5-173.5z\",fill:n||\"white\"}),P.createElement(\"path\",{d:\"M686.1 795.6c-7.2-6.8-18.6-6.6-25.4 0.6-6.8 7.2-6.6 18.6 0.6 25.4l54.3 51.6c6.3 5.9 14.4 9 22.7 9 6.4 0 12.9-1.9 18.5-5.7l1.1-0.8L883.6 759c7.3-6.8 7.7-18.2 0.9-25.4-6.8-7.3-18.2-7.7-25.4-0.9L738.2 845l-52.1-49.4z\",fill:n||\"white\"})))},\"instruction-face-liveness\":Ot,\"instruction-face-detection\":function(e){var t=e.size;return P.createElement(\"svg\",{width:t?2.14*t:300,height:t||140,viewBox:\"0 0 300 140\",preserveAspectRatio:\"xMidYMid slice\",xmlns:\"http://www.w3.org/2000/svg\"},P.createElement(\"defs\",null,P.createElement(\"mask\",{id:\"bgClip\"},P.createElement(\"rect\",{x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"#fff\"}),P.createElement(\"ellipse\",{className:Rt.Z.locals.mask,cx:\"150\",cy:\"70\",rx:\"32\",ry:\"42\"})),P.createElement(\"mask\",{id:\"ovalClip\"},P.createElement(\"rect\",{x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"#fff\"}),P.createElement(\"rect\",{className:Rt.Z.locals[\"oval-mask-y\"],x:\"135\",y:\"0\",width:\"30\",height:\"140\"}),P.createElement(\"rect\",{className:Rt.Z.locals[\"oval-mask-x\"],x:\"0\",y:\"55\",width:\"300\",height:\"30\"}))),P.createElement(\"g\",{className:Rt.Z.locals.man},P.createElement(\"path\",{d:\"M160.394 41.0144L159.872 41.8678C160.092 42.0022 160.356 42.0464 160.608 41.9912L160.394 41.0144ZM171.689 68.4015L170.777 67.9918C170.605 68.3758 170.691 68.8266 170.993 69.1196C171.296 69.4125 171.749 69.4848 172.127 69.3005L171.689 68.4015ZM129.001 84.8796L129.922 84.4909C129.793 84.1854 129.521 83.9636 129.196 83.8989C128.871 83.8341 128.535 83.9348 128.299 84.1676L129.001 84.8796ZM126.437 68.4011V69.4011C126.763 69.4011 127.069 69.2418 127.256 68.9743C127.443 68.7068 127.488 68.3648 127.376 68.0582L126.437 68.4011ZM139.232 100.445L138.732 101.311V101.311L139.232 100.445ZM174.59 79.2058L173.597 79.0882C173.593 79.1272 173.59 79.1665 173.59 79.2059L174.59 79.2058ZM170.244 85.569L170.967 84.8786C170.735 84.6353 170.396 84.5251 170.065 84.5851C169.735 84.6452 169.456 84.8675 169.324 85.1768L170.244 85.569ZM160.214 100.672L159.718 99.8031L160.214 100.672ZM161.381 101.052C161.717 100.613 161.633 99.9856 161.194 99.6502C160.755 99.3148 160.128 99.3985 159.792 99.8373L161.381 101.052ZM162.757 108.084L162.147 108.875L162.757 108.084ZM177.273 114.192L177.488 113.216L177.273 114.192ZM139.842 99.8369C139.506 99.3983 138.879 99.3148 138.44 99.6505C138.002 99.9861 137.918 100.614 138.254 101.052L139.842 99.8369ZM136.878 108.084L137.488 108.875L136.878 108.084ZM122.362 114.192L122.577 115.169L122.362 114.192ZM160.608 41.9912C163.341 41.3922 165.707 41.7795 167.635 42.8705C169.573 43.9667 171.142 45.816 172.186 48.2586C174.279 53.1565 174.208 60.3532 170.777 67.9918L172.602 68.8112C176.203 60.7912 176.387 53.0006 174.025 47.4728C172.841 44.7025 171.006 42.4793 168.62 41.1297C166.225 39.7748 163.349 39.3429 160.18 40.0376L160.608 41.9912ZM128.299 84.1676C127.859 84.6015 127.667 84.5353 127.643 84.5287C127.526 84.4967 127.252 84.3281 126.903 83.7376C126.223 82.5884 125.677 80.5504 125.391 78.2437C125.109 75.9613 125.102 73.5716 125.402 71.7891C125.553 70.8889 125.771 70.2211 126.015 69.8058C126.258 69.3942 126.412 69.4011 126.437 69.4011V67.4011C125.415 67.4011 124.719 68.0668 124.293 68.7901C123.868 69.5097 123.598 70.4529 123.429 71.4572C123.088 73.4836 123.108 76.0766 123.407 78.4892C123.702 80.8775 124.289 83.2468 125.182 84.7558C125.619 85.4944 126.24 86.2177 127.114 86.4575C128.081 86.7228 128.976 86.3085 129.703 85.5917L128.299 84.1676ZM139.731 99.5784C133.844 96.1826 132.468 90.5239 129.922 84.4909L128.079 85.2684C130.465 90.9213 132.104 97.4881 138.732 101.311L139.731 99.5784ZM127.376 68.0582C123.542 57.5553 126.882 48.0864 133.514 42.7002C140.145 37.3147 150.161 35.9362 159.872 41.8678L160.915 40.161C150.498 33.7984 139.557 35.2153 132.253 41.1477C124.949 47.0794 121.375 57.4509 125.498 68.744L127.376 68.0582ZM149.945 102.085C146.269 102.085 143.925 101.562 142.426 101.011C140.903 100.452 140.29 99.9005 139.731 99.5784L138.732 101.311C139.029 101.482 140.001 102.251 141.736 102.889C143.494 103.535 146.078 104.085 149.945 104.085V102.085ZM172.127 69.3005C172.321 69.2062 172.396 69.2298 172.406 69.2324C172.428 69.2386 172.517 69.2716 172.655 69.4485C172.955 69.8341 173.244 70.5932 173.453 71.7026C173.862 73.8705 173.866 76.8191 173.597 79.0882L175.584 79.3235C175.869 76.9091 175.874 73.7489 175.419 71.3322C175.196 70.1494 174.837 68.9972 174.234 68.2213C173.92 67.8175 173.495 67.457 172.934 67.3035C172.36 67.1462 171.783 67.2436 171.251 67.5025L172.127 69.3005ZM169.521 86.2595C169.985 86.7461 170.505 87.1135 171.092 87.2541C171.714 87.4035 172.292 87.2682 172.771 86.9658C173.221 86.6815 173.567 86.2633 173.833 85.8404C174.105 85.4098 174.332 84.9164 174.521 84.4151C174.899 83.4131 175.163 82.2847 175.333 81.3444C175.501 80.4193 175.59 79.5973 175.59 79.2058L173.59 79.2059C173.59 79.416 173.526 80.0979 173.365 80.9885C173.207 81.8639 172.969 82.8628 172.649 83.7091C172.49 84.1319 172.319 84.4928 172.142 84.7729C171.96 85.0607 171.806 85.2096 171.703 85.2749C171.628 85.3222 171.599 85.319 171.558 85.3093C171.481 85.2907 171.281 85.2076 170.967 84.8786L169.521 86.2595ZM160.71 101.54C160.84 101.466 160.968 101.39 161.094 101.314L160.059 99.6026C159.947 99.6703 159.834 99.7371 159.718 99.8031L160.71 101.54ZM161.094 101.314C167.277 97.575 168.875 91.3294 171.164 85.9612L169.324 85.1768C166.875 90.9204 165.539 96.2892 160.059 99.6026L161.094 101.314ZM149.945 104.085C153.728 104.085 156.202 103.59 157.871 103.001C159.521 102.418 160.422 101.704 160.71 101.54L159.718 99.8031C159.168 100.117 158.631 100.611 157.204 101.115C155.796 101.613 153.555 102.085 149.945 102.085V104.085ZM160.587 100.445C159.792 99.8373 159.792 99.8373 159.792 99.8373C159.792 99.8373 159.792 99.8374 159.792 99.8374C159.792 99.8374 159.792 99.8374 159.792 99.8374C159.792 99.8375 159.792 99.8375 159.792 99.8376C159.792 99.8377 159.792 99.8378 159.792 99.8379C159.792 99.8381 159.792 99.8383 159.792 99.8385C159.791 99.8389 159.791 99.8394 159.791 99.8398C159.79 99.8408 159.789 99.8418 159.788 99.8429C159.787 99.845 159.785 99.8475 159.783 99.8502C159.779 99.8558 159.774 99.8625 159.768 99.8704L161.386 101.046C161.387 101.045 161.387 101.045 161.386 101.046C161.386 101.046 161.385 101.047 161.384 101.048C161.384 101.049 161.383 101.049 161.383 101.05C161.383 101.05 161.382 101.05 161.382 101.051C161.382 101.051 161.382 101.051 161.382 101.051C161.382 101.051 161.382 101.052 161.382 101.052C161.382 101.052 161.382 101.052 161.381 101.052C161.381 101.052 161.381 101.052 161.381 101.052C161.381 101.052 161.381 101.052 161.381 101.052C161.381 101.052 161.381 101.052 160.587 100.445ZM159.768 99.8703C159.626 100.066 158.824 101.232 158.775 102.929C158.725 104.701 159.499 106.834 162.147 108.875L163.368 107.292C161.151 105.582 160.745 104.028 160.774 102.987C160.806 101.872 161.346 101.1 161.386 101.046L159.768 99.8703ZM162.147 108.875C164.605 110.771 165.841 111.852 167.723 112.678C169.573 113.491 172.059 114.067 177.058 115.169L177.488 113.216C172.405 112.096 170.153 111.561 168.527 110.847C166.932 110.146 165.951 109.283 163.368 107.292L162.147 108.875ZM177.058 115.169C178.713 115.534 182.705 116.963 186.272 120.675C189.813 124.36 193 130.361 193 140H195C195 129.872 191.632 123.367 187.715 119.289C183.823 115.239 179.451 113.648 177.488 113.216L177.058 115.169ZM139.048 100.445C138.254 101.052 138.253 101.052 138.253 101.051C138.253 101.051 138.253 101.051 138.252 101.05C138.252 101.05 138.251 101.049 138.251 101.049C138.25 101.048 138.25 101.047 138.249 101.047C138.249 101.045 138.248 101.045 138.249 101.046C138.25 101.047 138.253 101.052 138.258 101.059C138.269 101.075 138.288 101.103 138.313 101.142C138.362 101.222 138.434 101.347 138.51 101.511C138.662 101.84 138.821 102.308 138.855 102.868C138.92 103.918 138.56 105.523 136.267 107.292L137.488 108.875C140.236 106.757 140.962 104.542 140.851 102.745C140.798 101.88 140.554 101.168 140.326 100.672C140.211 100.424 140.098 100.225 140.01 100.085C139.966 100.014 139.928 99.9577 139.9 99.9162C139.885 99.8955 139.873 99.8784 139.863 99.8652C139.858 99.8586 139.854 99.8529 139.851 99.8482C139.849 99.8458 139.847 99.8437 139.846 99.8418C139.845 99.8409 139.844 99.84 139.844 99.8392C139.844 99.8388 139.843 99.8382 139.843 99.838C139.843 99.8374 139.842 99.8369 139.048 100.445ZM136.267 107.292C133.684 109.283 132.703 110.146 131.108 110.847C129.482 111.561 127.23 112.096 122.147 113.216L122.577 115.169C127.576 114.067 130.061 113.491 131.912 112.678C133.794 111.852 135.03 110.771 137.488 108.875L136.267 107.292ZM122.147 113.216C120.177 113.65 115.894 115.245 112.094 119.298C108.27 123.378 105 129.88 105 140H107C107 130.352 110.101 124.349 113.554 120.666C117.03 116.957 120.929 115.532 122.577 115.169L122.147 113.216Z\"}),P.createElement(\"path\",{d:\"M132 64C132 64 132.614 59.6396 138.359 58.4533C143.242 57.4451 155.024 57.1545 158.25 51C158.25 56.2 167 59.3972 167 59.3972\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\"})),P.createElement(\"rect\",{mask:\"url(#bgClip)\",x:\"0\",y:\"0\",width:\"300\",height:\"140\",fill:\"var(--second-color)\"}),P.createElement(\"ellipse\",{mask:\"url(#ovalClip)\",className:Rt.Z.locals.ellipse,cx:\"150\",cy:\"70\",rx:\"35\",ry:\"45\",fill:\"none\",stroke:\"var(--main-color)\",strokeWidth:\"2\"}),P.createElement(\"circle\",{className:Rt.Z.locals[\"icon-background\"],cx:\"267\",cy:\"33\",r:\"20\",fill:\"var(--main-color)\"}),P.createElement(\"g\",{className:Rt.Z.locals[\"icon-mark\"]},P.createElement(\"path\",{d:\"M259 32.5L266 39.5\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\"}),P.createElement(\"path\",{d:\"M278.5 27L266 39.5\",stroke:\"white\",strokeWidth:\"3\",strokeLinecap:\"round\"})),P.createElement(\"g\",{className:Rt.Z.locals.photo},P.createElement(\"rect\",{width:\"68\",height:\"68\",rx:\"3\",fill:\"var(--third-color)\"}),P.createElement(\"path\",{d:\"M32.7731 46.6597L28.1199 45.4358L27.62 48.6259L22.7123 51.8001L16.8231 53.1833C16.8231 53.1833 13.41 55.5608 11.38 57.8751C9.35 60.1894 8.48 68.0001 8.48 68.0001H59.52C59.52 63.5027 56.62 57.8751 56.62 57.8751L51.98 53.8251L44.5515 51.8001L39.8155 48.1284V45.4358L35.2269 46.6597H32.7731Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M46.5798 26.5752C50.6585 17.5156 46.8752 9.23285 40.0283 10.7298C28.3537 3.61678 15.7187 13.9645 20.3334 26.575C17.9059 26.575 19.1132 38.7721 21.8204 36.109C23.2504 39.4896 24.125 43.0262 27.7543 45.1145C28.2503 45.3998 29.5936 46.6424 33.9678 46.6424C38.2562 46.6424 39.4378 45.5227 39.924 45.2458C39.9953 45.2052 40.0654 45.1641 40.1345 45.1224C43.5167 43.0823 44.3676 39.7224 45.7415 36.5079C47.5477 38.3955 48.2625 33.5225 48.2625 32.8263C48.5842 30.1166 48.2625 25.7576 46.5798 26.5752Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M40.0283 10.7298L39.508 11.5838C39.7277 11.7177 39.9905 11.7617 40.2419 11.7068L40.0283 10.7298ZM46.5798 26.5752L45.668 26.1647C45.4952 26.5485 45.5812 26.9994 45.8832 27.2926C46.1851 27.5859 46.6383 27.6586 47.0169 27.4747L46.5798 26.5752ZM21.8204 36.109L22.7414 35.7194C22.6124 35.4144 22.3407 35.193 22.0159 35.1283C21.6911 35.0636 21.3553 35.1639 21.1192 35.3961L21.8204 36.109ZM20.3334 26.575V27.575C20.66 27.575 20.966 27.4155 21.1531 27.1479C21.3401 26.8802 21.3847 26.538 21.2725 26.2313L20.3334 26.575ZM27.7543 45.1145L28.2531 44.2477L28.2531 44.2477L27.7543 45.1145ZM48.2625 32.8263L47.2694 32.7084C47.2648 32.7475 47.2625 32.7869 47.2625 32.8263L48.2625 32.8263ZM45.7415 36.5079L46.464 35.8165C46.2318 35.5738 45.8932 35.4639 45.5627 35.524C45.2322 35.584 44.954 35.806 44.822 36.1149L45.7415 36.5079ZM39.924 45.2458L40.4189 46.1148L40.4189 46.1148L39.924 45.2458ZM40.9344 45.7224C41.2701 45.2839 41.1869 44.6563 40.7484 44.3205C40.3099 43.9847 39.6822 44.068 39.3464 44.5065L40.9344 45.7224ZM41.3992 49.5341L42.0089 48.7415L41.3992 49.5341ZM49.8184 53.0685L50.0331 52.0918H50.0331L49.8184 53.0685ZM28.4412 44.5058C28.1051 44.0676 27.4773 43.9849 27.0391 44.321C26.6009 44.6572 26.5182 45.2849 26.8544 45.7231L28.4412 44.5058ZM26.389 49.5341L25.7793 48.7415H25.7793L26.389 49.5341ZM17.9698 53.0685L17.7551 52.0918H17.7551L17.9698 53.0685ZM40.2419 11.7068C41.7358 11.3801 43.0019 11.595 44.0226 12.171C45.0526 12.7523 45.9063 13.7437 46.4819 15.0875C47.6386 17.788 47.6213 21.8259 45.668 26.1647L47.4917 26.9858C49.617 22.2649 49.7474 17.6317 48.3204 14.3001C47.6041 12.6279 46.4831 11.2631 45.0055 10.4292C43.5187 9.59016 41.7442 9.33105 39.8147 9.75291L40.2419 11.7068ZM21.1192 35.3961C20.9246 35.5875 20.9607 35.4493 21.1437 35.4994C21.2343 35.5242 21.1486 35.5428 20.9648 35.2328C20.6156 34.6439 20.3071 33.5348 20.1438 32.2176C19.9835 30.9247 19.9818 29.5852 20.147 28.6055C20.2312 28.1069 20.3462 27.7787 20.4502 27.6027C20.5518 27.4307 20.5271 27.575 20.3334 27.575V25.575C19.5328 25.575 19.0149 26.1004 18.7284 26.5851C18.4444 27.0657 18.2766 27.6697 18.1749 28.2728C17.9684 29.4969 17.9825 31.0402 18.159 32.4637C18.3325 33.8629 18.6817 35.3037 19.2444 36.2528C19.5166 36.7118 19.9503 37.2464 20.6157 37.4285C21.3734 37.6358 22.0395 37.2963 22.5217 36.8219L21.1192 35.3961ZM28.2531 44.2477C24.9941 42.3726 24.2517 39.2898 22.7414 35.7194L20.8994 36.4986C22.2492 39.6894 23.2559 43.6799 27.2556 45.9812L28.2531 44.2477ZM21.2725 26.2313C19.1102 20.3224 20.9968 15.0348 24.7019 12.0331C28.4066 9.03156 34.0228 8.24184 39.508 11.5838L40.5486 9.87586C34.3592 6.10478 27.8206 6.93237 23.4429 10.4791C19.0654 14.0256 16.9419 20.2171 19.3943 26.9187L21.2725 26.2313ZM33.9678 45.6424C31.8761 45.6424 30.5664 45.3455 29.751 45.0466C28.9122 44.739 28.6318 44.4656 28.2531 44.2477L27.2556 45.9812C27.3728 46.0487 28.0121 46.5392 29.0625 46.9243C30.1363 47.318 31.6853 47.6424 33.9678 47.6424V45.6424ZM47.0169 27.4747C47.0585 27.4545 46.9972 27.4933 46.8848 27.4626C46.7856 27.4355 46.7665 27.3861 46.809 27.4405C46.9187 27.5813 47.0719 27.9374 47.1902 28.5637C47.4172 29.7653 47.4217 31.4264 47.2694 32.7084L49.2555 32.9442C49.425 31.5165 49.4295 29.6433 49.1554 28.1924C49.0232 27.4924 48.8006 26.7427 48.3867 26.2114C48.1674 25.9299 47.8497 25.6529 47.412 25.5333C46.9612 25.4101 46.5219 25.4916 46.1428 25.6758L47.0169 27.4747ZM45.019 37.1992C45.3201 37.5139 45.6893 37.7859 46.1357 37.8927C46.6185 38.0083 47.0682 37.9012 47.4305 37.6729C47.7643 37.4626 48.0051 37.164 48.178 36.8907C48.3556 36.6099 48.4987 36.2964 48.6146 35.9898C48.8464 35.3771 49.0054 34.6968 49.1065 34.1391C49.2049 33.5965 49.2625 33.0912 49.2625 32.8263L47.2625 32.8263C47.2625 32.9095 47.2307 33.2743 47.1386 33.7823C47.0493 34.275 46.9167 34.8255 46.744 35.2822C46.6577 35.5102 46.5703 35.6911 46.4878 35.8214C46.4006 35.9594 46.3515 35.9889 46.3643 35.9808C46.4056 35.9548 46.5031 35.9242 46.6011 35.9476C46.6627 35.9624 46.6144 35.9737 46.464 35.8165L45.019 37.1992ZM40.4189 46.1148C40.4973 46.0701 40.5747 46.0247 40.651 45.9787L39.618 44.2661C39.5561 44.3035 39.4932 44.3404 39.4292 44.3768L40.4189 46.1148ZM40.651 45.9787C44.3855 43.726 45.3673 39.9279 46.661 36.9009L44.822 36.1149C43.368 39.5168 42.6479 42.4385 39.618 44.2661L40.651 45.9787ZM33.9678 47.6424C36.198 47.6424 37.6822 47.3513 38.7042 46.991C39.7082 46.6371 40.3068 46.1786 40.4189 46.1148L39.4292 44.3768C39.055 44.5899 38.8197 44.8297 38.0392 45.1048C37.2768 45.3736 36.026 45.6424 33.9678 45.6424V47.6424ZM40.1404 45.1145C39.3464 44.5065 39.3464 44.5065 39.3464 44.5066C39.3464 44.5066 39.3464 44.5066 39.3464 44.5066C39.3464 44.5066 39.3463 44.5066 39.3463 44.5067C39.3463 44.5067 39.3462 44.5068 39.3462 44.5068C39.3461 44.5069 39.3461 44.507 39.346 44.5071C39.3458 44.5073 39.3457 44.5075 39.3455 44.5077C39.3452 44.5081 39.3449 44.5085 39.3446 44.5089C39.3439 44.5098 39.3433 44.5107 39.3426 44.5116C39.3411 44.5135 39.3396 44.5156 39.3379 44.5178C39.3345 44.5223 39.3307 44.5275 39.3264 44.5334L40.9427 45.7114C40.9422 45.712 40.9413 45.7133 40.9399 45.7151C40.9392 45.716 40.9384 45.7171 40.9375 45.7183C40.937 45.7189 40.9365 45.7196 40.936 45.7203C40.9358 45.7206 40.9355 45.721 40.9352 45.7213C40.9351 45.7215 40.9349 45.7217 40.9348 45.7219C40.9347 45.722 40.9347 45.722 40.9346 45.7221C40.9346 45.7222 40.9345 45.7222 40.9345 45.7223C40.9345 45.7223 40.9344 45.7223 40.9344 45.7224C40.9344 45.7224 40.9344 45.7224 40.9344 45.7224C40.9344 45.7224 40.9344 45.7224 40.1404 45.1145ZM39.3264 44.5334C39.2221 44.6765 38.7015 45.4345 38.6698 46.54C38.636 47.7197 39.1633 49.0758 40.7895 50.3267L42.0089 48.7415C40.8139 47.8222 40.6562 47.0448 40.669 46.5973C40.6763 46.3428 40.7412 46.1232 40.811 45.9592C40.881 45.795 40.9488 45.703 40.9426 45.7114L39.3264 44.5334ZM40.7895 50.3267C42.1895 51.4037 42.9596 52.0742 44.1111 52.5787C45.2314 53.0696 46.7216 53.4117 49.6038 54.0452L50.0331 52.0918C47.0674 51.44 45.81 51.1395 44.9137 50.7468C44.0484 50.3677 43.5328 49.9137 42.0089 48.7415L40.7895 50.3267ZM49.6038 54.0452C50.4997 54.2421 52.7354 55.0352 54.736 57.1122C56.7103 59.1619 58.52 62.5267 58.52 68.0001H60.52C60.52 62.0366 58.5282 58.1663 56.1764 55.7247C53.8509 53.3104 51.2357 52.3561 50.0331 52.0918L49.6038 54.0452ZM27.6478 45.1145C26.8544 45.7231 26.854 45.7226 26.8536 45.7221C26.8535 45.722 26.8531 45.7215 26.8528 45.7211C26.8524 45.7205 26.8519 45.7199 26.8515 45.7193C26.8506 45.7182 26.8498 45.7171 26.8491 45.7162C26.8477 45.7143 26.8467 45.713 26.846 45.712C26.8447 45.7102 26.8447 45.7101 26.8458 45.7118C26.8482 45.7152 26.8552 45.7254 26.8655 45.7419C26.8863 45.7752 26.9193 45.8321 26.9547 45.9087C27.0266 46.0641 27.1008 46.2834 27.1167 46.5424C27.1444 46.9915 27.0141 47.7916 25.7793 48.7415L26.9987 50.3267C28.6877 49.0275 29.1868 47.6178 29.113 46.4193C29.0781 45.8545 28.9187 45.3906 28.7698 45.0688C28.6949 44.9068 28.6206 44.7765 28.5618 44.6823C28.5322 44.6351 28.5063 44.5965 28.4857 44.567C28.4754 44.5522 28.4664 44.5397 28.459 44.5295C28.4552 44.5244 28.4519 44.5199 28.4489 44.5159C28.4474 44.5139 28.446 44.5121 28.4447 44.5104C28.4441 44.5096 28.4435 44.5088 28.4429 44.508C28.4426 44.5076 28.4422 44.5071 28.442 44.5069C28.4416 44.5063 28.4412 44.5058 27.6478 45.1145ZM25.7793 48.7415C24.2554 49.9137 23.7398 50.3677 22.8745 50.7468C21.9782 51.1395 20.7208 51.44 17.7551 52.0918L18.1844 54.0452C21.0666 53.4117 22.5568 53.0696 23.6771 52.5787C24.8286 52.0742 25.5987 51.4037 26.9987 50.3267L25.7793 48.7415ZM17.7551 52.0918C16.5454 52.3577 13.9808 53.3161 11.7092 55.7336C9.41292 58.1773 7.48 62.0451 7.48 68.0001H9.48C9.48 62.5182 11.2427 59.1508 13.1667 57.1032C15.1152 55.0295 17.2956 54.2405 18.1844 54.0452L17.7551 52.0918Z\",fill:\"black\"}),P.createElement(\"path\",{d:\"M23.56 24.0285C23.56 24.0285 23.9162 21.5057 27.2484 20.8194C30.0806 20.236 36.9141 20.0679 38.785 16.5071C38.785 19.5157 43.86 21.3655 43.86 21.3655\",stroke:\"black\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\"})),P.createElement(\"g\",{className:Rt.Z.locals.card},P.createElement(\"path\",{d:\"M0 3C0 1.34315 1.34315 0 3 0H52C53.6569 0 55 1.34315 55 3V17H0V3Z\",fill:\"white\"}),P.createElement(\"path\",{opacity:\"0.6\",d:\"M56 3C56 1.34315 57.3431 0 59 0H107C108.657 0 110 1.34315 110 3V17H56V3Z\",fill:\"white\"}),P.createElement(\"path\",{opacity:\"0.6\",d:\"M111 3C111 1.34315 112.343 0 114 0H162C163.657 0 165 1.34315 165 3V17H111V3Z\",fill:\"white\"}),P.createElement(\"path\",{d:\"M0 17H165V92C165 93.6569 163.657 95 162 95H3C1.34314 95 0 93.6569 0 92V17Z\",fill:\"white\"}),P.createElement(\"rect\",{x:\"12\",y:\"7\",width:\"34\",height:\"4\",fill:\"var(--third-color)\"}),P.createElement(\"g\",{className:Rt.Z.locals.text},P.createElement(\"rect\",{x:\"12\",y:\"29\",width:\"58\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"78\",y:\"29\",width:\"18\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"104\",y:\"29\",width:\"29\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"12\",y:\"40\",width:\"42\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"62\",y:\"51\",width:\"61\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"62\",y:\"40\",width:\"42\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"12\",y:\"66\",width:\"48\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"12\",y:\"77\",width:\"27\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"47\",y:\"77\",width:\"27\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"83\",y:\"77\",width:\"14\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"105\",y:\"77\",width:\"34\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"12\",y:\"51\",width:\"9\",height:\"3\",fill:\"#D9D9D9\"}),P.createElement(\"rect\",{x:\"25\",y:\"51\",width:\"25\",height:\"3\",fill:\"#D9D9D9\"}))))},\"regula-logo\":lt,\"back-camera\":st,\"front-camera\":ut,\"camera-logo\":ct,\"fullscreen-exit\":rt,\"no-smiling\":ft,\"no-glare\":pt,\"from-camera\":_t,\"from-gallery\":mt,\"docreader-search\":ht,\"docreader-processing-finished\":Et,\"docreader-processing-error\":Ct,\"docreader-processing\":vt,\"docreader-flip\":St,\"docreader-camera-disabled\":gt,\"docreader-camera-preparing\":yt,\"camera-change\":function(e){var t=e.size,n=e.color;return P.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:t||24,height:t||24,viewBox:\"0 0 24 24\",fill:n||\"rgba(0,0,0,0.6)\"},P.createElement(\"path\",{d:\"M12.29,5.21l1.5,1.5a1,1,0,0,0,1.42,0,1,1,0,0,0,.13-1.21H19a1,1,0,0,0,0-2H15.34a1,1,0,0,0-.13-1.21,1,1,0,0,0-1.42,0l-1.5,1.5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76A1,1,0,0,0,12.29,5.21ZM22.92,9.12a1,1,0,0,0-.21-.33l-1.5-1.5a1,1,0,0,0-1.42,0,1,1,0,0,0-.13,1.21H16a1,1,0,0,0,0,2h3.66a1,1,0,0,0,.13,1.21,1,1,0,0,0,1.42,0l1.5-1.5a1,1,0,0,0,.21-.33A1,1,0,0,0,22.92,9.12ZM11,10a4,4,0,1,0,4,4A4,4,0,0,0,11,10Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,11,16Zm9-3a1,1,0,0,0-1,1v5a1,1,0,0,1-1,1H4a1,1,0,0,1-1-1V11a1,1,0,0,1,1-1H6a1,1,0,0,0,1-.69l.54-1.62A1,1,0,0,1,8.44,7H10a1,1,0,0,0,0-2H8.44A3,3,0,0,0,5.59,7.06L5.28,8H4a3,3,0,0,0-3,3v8a3,3,0,0,0,3,3H18a3,3,0,0,0,3-3V14A1,1,0,0,0,20,13Z\"}))}};var At=function(e){var t=e.type,n=e.size,r=e.color,a=Nt[t];return P.createElement(a,{size:n,color:r})},Tt=n(\"./src/components/DocumentReaderLayout.css\"),bt=n(\"./node_modules/localize-react/dist/localize-react.js\");function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t,n){if(t===E.PLAY){if(!n)return\"docreader-processing-error\";switch(e){case p.FINDING:return\"docreader-search\";case p.RESOLUTION:case p.FOCUS:case p.GLARE:case p.HOLD:return\"docreader-processing-error\";case p.PROCESSING:case p.SUCCESS:return\"docreader-processing\";case p.START_NEXT_PAGE:return\"docreader-flip\";case p.SNAPSHOT:return\"square\";default:return\"docreader-processing-error\"}}else switch(t){case E.PERMISSION_DENIED:case E.INCORRECT_CAMERA_ID:return\"docreader-camera-disabled\";case E.UNKNOWN_ERROR:return\"error\";case E.PREPARING:case E.READY:case E.REQUESTING:return\"docreader-camera-preparing\";case E.NO_CAMERA:return\"docreader-camera-disabled\";default:return\"docreader-processing-error\"}}function Pt(e,t,n){if(t===E.PLAY){if(!n)return\"preparingService\";switch(e){case p.START_DETECTION:return\"detectingDocument\";case p.FINDING:return\"placeDocumentIntoFrame\";case p.SNAPSHOT:return\"positionDocumentCenter\";case p.FOCUS:return\"noFocus\";case p.RESOLUTION:return\"moveCloser\";case p.GLARE:return\"glaresOnDocument\";case p.HOLD:return\"holdDocumentStraight\";case p.PROCESSING:case p.SUCCESS:return\"documentProcessing\";case p.START_NEXT_PAGE:return\"flipDocument\";default:return\"somethingWentWrong\"}}else switch(t){case E.PERMISSION_DENIED:return\"cameraUnavailable\";case E.UNKNOWN_ERROR:return\"somethingWentWrong\";case E.PREPARING:case E.READY:case E.REQUESTING:return\"preparingCamera\";case E.NO_CAMERA:return\"noCameraAvailable\";case E.INCORRECT_CAMERA_ID:return\"incorrectCameraId\";default:return\"somethingWentWrong\"}}function kt(e){var t=e.status,n=e.isServiceInitialized,r=e.children,a=e.mirroring,o=e.onChangeMirroring,i=e.onChangeCamera,l=e.videoStatusParams,s=e.onCameraSnapshot,u=e.onSkip,c=e.frameParams,d=e.videoElementParams,f=e.showChangeCameraButton,_=P.useRef(null),m=Dt(P.useState(!1),2),h=m[0],C=m[1],v=(0,bt.useLocalize)().translate,g=l.camera.frontCameras.length+l.camera.backCameras.length>1;return P.useEffect((function(){var e=_.current;if(c&&d&&e){var n=function(e,t,n){if(t){var r=t.userFrame.width,a=t.userFrame.height,o=t.userFrame.frameTop,i=t.userFrame.frameLeft;return{frameWidth:r,frameHeight:a,frameTop:o,frameLeft:i,borderSize:5,borderRadius:20,shadowSize:(o>i?o:i)+100,borderColor:n===p.HOLD||n===p.RESOLUTION||n===p.GLARE?\"rgba(30, 130, 76, 0.9)\":\"rgba(255, 255, 255, 0.9)\"}}throw\"No frameParams parameter specified\"}(0,c,t),r=n.borderSize,a=n.borderColor,o=n.borderRadius,i=n.frameWidth,l=n.frameHeight,s=n.frameTop,u=n.frameLeft,f=n.shadowSize;e.style.border=\"\".concat(r,\"px solid\"),e.style.borderColor=\"\".concat(a),e.style.borderRadius=\"\".concat(o,\"px\"),e.style.width=\"\".concat(i,\"px\"),e.style.height=\"\".concat(l,\"px\"),e.style.top=\"\".concat(s,\"px\"),e.style.left=\"\".concat(u,\"px\"),e.style.boxShadow=\"0 0 0 \".concat(f,\"px rgba(0, 0, 0, 0.5)\")}t===p.START_NEXT_PAGE&&C(!0)}),[c,d,t]),P.createElement(\"div\",{className:Tt.Z.locals.container},r,P.createElement(\"div\",{className:Tt.Z.locals.layout},!(null==c||!c.userFrame.width)&&t!==p.SNAPSHOT&&P.createElement(\"div\",{ref:_,className:Tt.Z.locals.frame}),l.videoStatus===E.PLAY&&P.createElement(\"div\",{className:Tt.Z.locals[\"top-functional-buttons\"]},l.camera.selectedCamera.facing!==S.environment&&P.createElement(\"button\",{onClick:o},P.createElement(At,{size:48,type:a?\"back-camera\":\"front-camera\"}))),P.createElement(\"div\",{className:Tt.Z.locals[\"message-container\"]},P.createElement(\"div\",{className:Tt.Z.locals.icon},P.createElement(At,{type:wt(t,l.videoStatus,n)})),P.createElement(\"div\",{className:Tt.Z.locals.message},P.createElement(\"div\",{className:Tt.Z.locals[\"message-background\"]},l.videoStatus===E.PERMISSION_DENIED||l.videoStatus===E.UNKNOWN_ERROR||l.videoStatus===E.NO_CAMERA?P.createElement(P.Fragment,null,P.createElement(\"p\",{className:Tt.Z.locals.title},v(Pt(t,l.videoStatus,n))),P.createElement(\"p\",{className:Tt.Z.locals.subtitle},l.videoStatus===E.PERMISSION_DENIED?v(\"allowAccessToCamera\"):v(\"cameraConnection\"))):l.videoStatus===E.INCORRECT_CAMERA_ID?P.createElement(P.Fragment,null,P.createElement(\"p\",{className:Tt.Z.locals.title},v(\"incorrectCameraId\")),P.createElement(\"p\",{className:Tt.Z.locals.subtitle},v(\"checkCameraId\"))):P.createElement(\"p\",{className:Tt.Z.locals[\"message-text\"]},v(Pt(t,l.videoStatus,n)))))),l.videoStatus===E.PLAY&&P.createElement(P.Fragment,null,P.createElement(\"div\",{className:Tt.Z.locals[\"bottom-functional-buttons\"]},h&&P.createElement(\"button\",{onClick:u},P.createElement(At,{size:30,type:\"stop\"})),g&&f&&P.createElement(\"button\",{disabled:l.videoStatus!==E.PLAY,onClick:i},P.createElement(At,{color:\"white\",size:30,type:\"camera-change\"}))),t===p.SNAPSHOT&&s&&P.createElement(\"button\",{className:Tt.Z.locals[\"snapshot-button\"],onClick:s},P.createElement(At,{size:50,type:\"snapshot\"})))))}var Mt=P.memo(kt),Ft=P.createContext({service:null});function Ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ht=function(e){var t=e.videoElementParams,n=e.scenario,r=e.objectFit,a=Ut(P.useState({userFrame:{frameBottom:0,frameLeft:0,frameRight:0,frameTop:0,width:0,height:0},serviceFrame:{frameBottom:0,frameLeft:0,frameRight:0,frameTop:0,light:0,resolutionType:0}}),2),o=a[0],i=a[1];return P.useEffect((function(){var e=!!t.videoParams.width,a=!!t.videoParams.height,o=e&&a,l=q.scenario.find((function(e){return e.name===n}));if(l&&o){var s=t.videoParams.width>t.videoParams.height,u=s?+l.frameKWHLandscape:+l.frameKWHPortrait,c=s?t.videoParams.height/100*10:0,d=Pe(t,!0,u,c),f=Pe(t,!1,u,c),p=s?d:f,_=Te(t.videoParams.width,t.videoParams.height,t.videoContainerParams.width,t.videoContainerParams.height,p.width,p.height,p.left,p.top,r),m=_.width,h=_.height,E=_.left,C=_.top;i({userFrame:{frameBottom:C+h,frameLeft:E,frameRight:E+m,frameTop:C,width:m,height:h},serviceFrame:{frameBottom:Math.floor(p.top+p.height),frameLeft:Math.floor(p.left),frameRight:Math.floor(p.left+p.width),frameTop:Math.floor(p.top),light:0,resolutionType:0}})}}),[n,t,r]),o};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yt=function(e,t){var n=Vt(P.useState(!1),2),r=n[0],a=n[1],o=Vt(P.useState(!1),2),i=o[0],l=o[1],s=Vt(P.useState(!1),2),u=s[0],d=s[1],_=Vt(P.useState(0),2),m=_[0],h=_[1],C=P.useContext(Ft).service,v=Vt(P.useState({status:p.START_DETECTION,initialized:(null==C?void 0:C.isInitialized)||!1,error:null,response:null}),2),S=v[0],g=v[1],R=Ht({videoElementParams:e.videoElementParams,scenario:e.scenario||O.MrzAndLocate,objectFit:e.objectFit||I.contain});return P.useEffect((function(){!C||C.prepareListener||S.initialized||(C.prepareListener=function(n){var r=n.isPrepared,a=n.isInitialized;r&&!a&&C.initialize({license:e.license}).then((function(){g((function(e){return Bt(Bt({},e),{},{initialized:!0})})),t({manual:!1,action:f.SERVICE_INITIALIZED}),ue.info(\"useDocumentReaderSeries :: service initialized\")})).catch((function(e){g((function(t){return Bt(Bt({},t),{},{status:p.FAILED,error:e})}))}))})}),[S.initialized]),P.useEffect((function(){if(C){C.recognizerProcessParam=ze(X,C.recognizerProcessParam);var t={imageInputParam:R.serviceFrame};if(C.recognizerProcessParam=ze(C.recognizerProcessParam,t),void 0!==e.multipageProcessing){var n={processParam:{multipageProcessing:e.multipageProcessing}};C.recognizerProcessParam=ze(C.recognizerProcessParam,n)}if(void 0!==e.scenario){var r={processParam:{scenario:e.scenario}};C.recognizerProcessParam=ze(C.recognizerProcessParam,r)}}}),[C,e.scenario,e.multipageProcessing,R.serviceFrame]),P.useEffect((function(){return C&&S.initialized&&!u&&C.startNewDocument().then((function(){d(!0)})),function(){u&&d(!1)}}),[S.initialized,u]),P.useEffect((function(){var t=!!K[S.status],n=e.videoStatus===E.PLAY;if(C&&n&&!r&&!i&&u&&S.initialized&&e.videoElementParams.videoElement&&!t){ue.info(\"useDocumentReaderSeries :: Processing image...\"),a(!0);var o=Ge(e.videoElementParams.videoElement,c.UINT).imageData;C.process(o,y.PROCESS).then((function(e){e.rawResponse.morePagesAvailable&&e.rawResponse.morePagesAvailable>0&&l(!0),g((function(t){return Bt(Bt({},t),{},{status:We(e,m,C.recognizerProcessParam.processParam.multipageProcessing),response:e})}))})).catch((function(e){g((function(t){return Bt(Bt({},t),{},{status:p.FAILED,error:e})}))})).finally((function(){a(!1)}))}}),[S.initialized,e.videoElementParams.videoElement,e.videoStatus,S.status,i,u,r,m]),P.useEffect((function(){if(ue.info(\"useDocumentReaderSeries :: startNewPage\"),C&&i){var e=setTimeout((function(){C.startNewPage().then((function(){l(!1),h((function(e){return e+1}))}))}),3e3);return function(){clearTimeout(e)}}}),[i]),Bt(Bt({},S),{},{frameParams:R})},Wt=P.createContext({onAction:function(){return ue.error('Function \"onAction\" not defined.')},onResponse:function(){return ue.error('Function \"onSuccess\" not defined.')},onFail:function(){return ue.error('Function \"onFail\" not defined.')}}),Kt=function(){return P.useContext(Wt)};function Zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e){var t=e.onResponse,n=e.onStatusChange,r=Kt(),a=r.onAction,o=r.onFail,i=r.internalScenario,l=r.multipageProcessing,s=r.license,u=r.cameraId,c=r.objectFit,d=r.changeCamera,_=Zt(P.useState(!1),2),m=_[0],h=_[1],C=Zt(P.useState({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),g=C[0],y=C[1],I=Zt(P.useState({videoStatus:E.PREPARING,camera:{selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]}}),2),O=I[0],R=I[1],N=Zt(P.useState(u),2),A=N[0],T=N[1],b=P.useCallback((function(){return h(!m)}),[m]),D=P.useCallback((function(){a({manual:!0,action:f.PRESS_SKIP_BUTTON}),n(v.SUCCESS)}),[]),L=P.useCallback((function(){var e=Ve(O.camera);e&&T(e)}),[O.camera]),w=Yt({videoStatus:O.videoStatus,scenario:i,multipageProcessing:l,license:s,videoElementParams:g,objectFit:c},a),k=w.status,F=w.response,U=w.initialized,x=w.error,H=w.frameParams;return P.useEffect((function(){F&&(k===p.START_NEXT_PAGE&&t(F),K[k]&&(n(K[k]),t(F)))}),[k,F]),P.useEffect((function(){if(x)throw x}),[x]),P.useMemo((function(){return P.createElement(\"div\",{className:M.Z.locals.container},P.createElement(Mt,{mirroring:m,onChangeMirroring:b,status:k,isServiceInitialized:U,videoStatusParams:O,frameParams:H,videoElementParams:g,onSkip:D,onChangeCamera:L,showChangeCameraButton:d},P.createElement(tt,{onVideoSizeChange:y,onVideoStatusChange:R,resolution:V.FULL_HD,mirroring:m,onFailStatus:o,mode:S.environment,cameraId:A,objectFit:c})))}),[A,m,b,k,U,O,H,g,c,d])}var Jt=P.memo(Xt),Qt=n(\"./src/components/DocumentFullScreenOverlay.css\");var $t=function(e){var t=e.onClose,n=e.children,r=e.completionStatus,a=e.copyright,o=void 0===a||a,i=e.direction,l=r===v.CAMERA_PROCESSING?\"rgba(255, 255, 255, 0.9)\":\"#8C8C8C\",s=r===v.CAMERA_PROCESSING?Qt.Z.locals.processing:\"\";P.useEffect((function(){var e=document.getElementsByTagName(\"body\")[0];return e.style.overflow=\"hidden\",function(){e.style.overflow=\"\"}}),[]);var u=r===v.CAMERA_PROCESSING?Qt.Z.locals.full:\"\";return P.createElement(\"div\",{className:\"\".concat(Qt.Z.locals.window,\" \").concat(u),\"data-direction\":i},n,P.createElement(\"header\",{className:Qt.Z.locals.header},P.createElement(\"button\",{\"data-e2e\":\"cross\",onClick:t},P.createElement(At,{type:\"cross\",color:l}))),o&&P.createElement(\"footer\",{className:Qt.Z.locals.footer},P.createElement(\"div\",{className:\"\".concat(Qt.Z.locals.ads,\" \").concat(s)},P.createElement(At,{color:\"#bd7dff\",type:\"regula-logo\",size:18}),P.createElement(\"div\",{className:Qt.Z.locals.pipe}),P.createElement(\"span\",{\"data-e2e\":\"powered-by\"},\"Powered by Regula\"))))},en=n(\"./src/components/InfoScreens.css\"),tn=n(\"./src/common/Button.css\"),nn=[\"children\",\"onClick\"];function rn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var an=function(e){var t=e.children,n=e.onClick,r=rn(e,nn);return P.createElement(\"button\",{\"data-e2e\":r[\"data-e2e\"],className:tn.Z.locals.button,onClick:n},t)};var on=function(e){var t=e.title,n=e.type,r=e.subtitle,a=e.onReset,o=e.size,i=(0,bt.useLocalize)().translate;return P.createElement(\"div\",{className:en.Z.locals[\"info-message\"]},P.createElement(\"div\",{className:en.Z.locals[\"text-container\"]},P.createElement(At,{type:n,size:o}),P.createElement(\"p\",{\"data-e2e\":\"info-msg-title\",className:en.Z.locals.title},t),P.createElement(\"p\",{className:en.Z.locals.subtitle},r),a&&P.createElement(an,{onClick:a},i(\"tryAgain\"))))},ln=n(\"./src/components/DocumentReaderStartScreen.css\");var sn=function(e){var t=e.onStart,n=e.onFileImageSet,r=e.title,a=e.subtitle,o=e.multiple,i=void 0===o||o,l=Kt().onAction,s=P.useRef(null),u=(0,bt.useLocalize)().translate,c=P.useCallback((function(){var e=s.current;e&&(l({manual:!0,action:f.PRESS_FILE_BUTTON}),e.click())}),[]);return P.createElement(\"div\",{className:ln.Z.locals[\"start-window\"]},P.createElement(\"div\",{className:ln.Z.locals.text},P.createElement(\"p\",{className:ln.Z.locals.title},r),P.createElement(\"p\",{className:ln.Z.locals.subtitle},a)),P.createElement(\"div\",{className:ln.Z.locals.buttons},P.createElement(\"button\",{\"data-e2e\":\"from-camera\",onClick:t},P.createElement(At,{type:\"from-camera\"}),P.createElement(\"p\",null,u(\"fromCamera\"))),P.createElement(\"button\",{\"data-e2e\":\"from-gallery\",onClick:c},P.createElement(At,{type:\"from-gallery\"}),P.createElement(\"p\",null,u(\"fromGallery\")))),P.createElement(\"input\",{ref:s,style:{display:\"none\"},type:\"file\",multiple:i,accept:ee.join(\",\"),onChange:function(e){var t;null!==(t=e.target.files)&&void 0!==t&&t.length&&n(e.target.files)}}))};function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pn(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _n=function(e,t){var n=P.useContext(Ft).service,r=fn(P.useState({status:p.START_DETECTION,error:null,response:null,initialized:(null==n?void 0:n.isInitialized)||!1,prepared:(null==n?void 0:n.isPrepared)||!1}),2),a=r[0],o=r[1];return P.useEffect((function(){n&&!a.initialized&&(n.prepareListener=function(e){var r=e.isPrepared,a=e.isInitialized;r&&!a&&n.initialize({license:t.license}).then((function(){o((function(e){return cn(cn({},e),{},{initialized:!0})})),ue.info(\"useDocumentReaderSingle :: service initialized\")})).catch((function(e){o((function(t){return cn(cn({},t),{},{status:p.FAILED,error:e})}))}))})}),[a.initialized]),P.useEffect((function(){if(n&&(n.imageProcessParam=ze(J,n.imageProcessParam),void 0!==t.scenario)){var e={processParam:{scenario:t.scenario}};n.imageProcessParam=ze(n.imageProcessParam,e)}}),[n,t.scenario]),P.useEffect((function(){n&&e.length&&a.initialized&&!a.response&&(ue.info(\"useDocumentReaderSingle :: start processImage\"),n.process(e,y.PROCESS_IMAGE).then((function(e){o((function(t){return cn(cn({},t),{},{status:p.SUCCESS,response:e})})),ue.info(\"useDocumentReaderSingle :: end processImage\")})).catch((function(e){o((function(t){return cn(cn({},t),{},{status:p.FAILED,error:e})})),ue.info(\"useDocumentReaderSingle :: end processImage\")})))}),[e,t.scenario,a.initialized,a.response]),a},mn=n(\"./src/common/Spinner.css\");var hn=function(){return P.createElement(\"div\",{className:mn.Z.locals.container},P.createElement(\"div\",{className:mn.Z.locals.spinner}))};var En=function(e){var t=e.title;return P.createElement(\"div\",{className:en.Z.locals[\"process-message\"]},P.createElement(hn,null),P.createElement(\"span\",{className:en.Z.locals.message},t))};function Cn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vn(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sn=function(e){var t=e.onStatusChange,n=e.onResponse,r=e.images,a=e.scenario,o=e.license,i=P.useRef(!1),l=Cn(P.useState([]),2),s=l[0],u=l[1],c=Cn(P.useState(null),2),d=c[0],f=c[1],_=_n(s,{scenario:a,license:o}),m=_.status,h=_.response,E=_.error,C=(0,bt.useLocalize)().translate;return P.useEffect((function(){r&&!i.current&&(i.current=!0,be(r,1920,j).then((function(e){return Promise.all(e)})).then((function(e){e.reduce((function(e,t){return e+t.data.byteLength}),0)>H?f(new _e(R.FILE_SIZE)):u(e)})).catch((function(e){f(e)})).finally((function(){i.current=!1})))}),[r]),P.useEffect((function(){if(m===p.SUCCESS&&h&&(n(h),t(v.SUCCESS)),m===p.FAILED&&!E)throw new _e(R.INCORRECT_FILE)}),[m,h,E]),P.useEffect((function(){var e=d||E;if(e)throw e}),[E,d]),P.createElement(En,{title:C(\"processing\")})},gn={ru:JSON.parse('{\"placeDocumentIntoFrame\":\"Поместите документ в рамку\",\"holdDocumentStraight\":\"Держите документ прямо\",\"glaresOnDocument\":\"Избегайте бликов на документе\",\"preparingCamera\":\"Подготовка камеры...\",\"fitYourFace\":\"Поместите лицо в овал\",\"holdSteady\":\"Не двигайтесь\",\"processing\":\"Обработка...\",\"lookStraight\":\"Смотрите прямо\",\"moveCloser\":\"Подвиньтесь ближе\",\"moveAway\":\"Отодвиньтесь подальше\",\"timeout\":\"Тайм-аут\",\"startLivenessVerification\":\"Начните проверку\",\"positionFaceCenterMoveCloser\":\"Расположитесь перед камерой таким образом, чтобы лицо оказалось в центре овала, после изменения размера овала – приблизьтесь.\",\"getStarted\":\"Начать\",\"allowAccessCamera\":\"Разрешите доступ к камере\",\"somethingWentWrong\":\"Что-то пошло не так\",\"preparingService\":\"Подготовка сервиса...\",\"verified\":\"Проверено!\",\"successfullyLivenessCheck\":\"Вы успешно прошли проверку.\",\"success\":\"Готово!\",\"cameraUnavailable\":\"Камера недоступна!\",\"allowAccessToCamera\":\"Разрешите доступ к камере и перезагрузите эту страницу для продолжения.\",\"error\":\"Ошибка!\",\"tryAgain\":\"Повторите попытку\",\"noCameraAvailable\":\"Отсутствует камера\",\"checkCameraConnection\":\"Проверьте подключение камеры и попробуйте снова.\",\"letsTryAgain\":\"Давайте попробуем еще раз\",\"followGuidelines\":\"Пожалуйста, следуйте рекомендациям\",\"ambientLighting\":\"Освещение не должно быть слишком ярким/тусклым, на лице не должно быть теней и бликов\",\"noMaskSunglassesHeaddress\":\"Выражение лица должно быть нейтральным (без улыбки, рот закрыт, глаза открыты). Снимите маску, солнцезащитные очки, головной убор\",\"takeSelfie\":\"Сделайте селфи\",\"positionFaceCenter\":\"Поместите свое лицо в центр овала и не двигайтесь. Мы сделаем все остальное.\",\"photoCapturedSuccessfully\":\"Снимок успешно получен.\",\"scanIDInBrowser\":\"Отсканируйте ID-документ в вашем браузере\",\"useYourDeviceCamera\":\"Используйте камеру вашего устройства для сканирования документа или выберите фотографию документа из галереи\",\"fromCamera\":\"С камеры\",\"fromGallery\":\"Из галереи\",\"cameraConnection\":\"Убедитесь, что камера подключена правильно.\",\"documentProcessing\":\"Обработка документа...\",\"positionDocumentCenter\":\"Расположите документ в центре\",\"flipDocument\":\"Переверните документ\",\"processingFinished\":\"Обработка документа завершена.\",\"uploadPhoto\":\"Загрузите фото\",\"useCameraOrGallery\":\"Используйте камеру вашего устройства или выберите фотографию из галереи\",\"detectingDocument\":\"Поиск документа...\",\"versionNotSupported\":\"Версия вашего браузера не поддерживается\",\"updateBrowser\":\"Обновите версию вашего браузера\",\"onlyPortraitOrientation\":\"Только портретная ориентация\",\"turnDeviceIntoPortrait\":\"Поверните устройство в портретный режим\",\"largeFile\":\"Размер загружаемого файла слишком велик\",\"selectSmallerFile\":\"Выберите файл меньшего размера\",\"licenseError\":\"Ошибка лицензии\",\"licenseExpired\":\"Лицензия не найдена или недействительна\",\"fileCorrupt\":\"Файл поврежден или не поддерживается\",\"selectAnotherFile\":\"Выберите другой файл\",\"noFocus\":\"Нет фокусировки камеры\",\"showOnlyOneFace\":\"Убедитесь, что на экране присутствует только одно лицо.\",\"incorrectCameraId\":\"Камера с заданным ID не найдена.\",\"checkCameraId\":\"Проверьте корректность заданного ID камеры.\"}'),en:JSON.parse('{\"placeDocumentIntoFrame\":\"Fit the document into the frame\",\"holdDocumentStraight\":\"Hold the document straight\",\"glaresOnDocument\":\"Avoid glare on the document\",\"preparingCamera\":\"Preparing the camera...\",\"fitYourFace\":\"Fit your face in the oval\",\"holdSteady\":\"Hold steady\",\"processing\":\"Processing...\",\"lookStraight\":\"Look straight\",\"moveCloser\":\"Move closer\",\"moveAway\":\"Move away\",\"timeout\":\"Timeout\",\"startLivenessVerification\":\"Start liveness verification\",\"positionFaceCenterMoveCloser\":\"Position your face in the center of the oval & move closer when the size of the frame is changed.\",\"getStarted\":\"Get started\",\"allowAccessCamera\":\"Allow access to the camera\",\"somethingWentWrong\":\"Something went wrong\",\"preparingService\":\"Preparing the service...\",\"verified\":\"Verified!\",\"successfullyLivenessCheck\":\"You have successfully passed the liveness check.\",\"success\":\"Success!\",\"cameraUnavailable\":\"Camera unavailable!\",\"allowAccessToCamera\":\"Allow access to the camera and reload this page to continue.\",\"error\":\"Error!\",\"tryAgain\":\"Try again\",\"noCameraAvailable\":\"No camera available\",\"checkCameraConnection\":\"Check the camera connection and try again.\",\"letsTryAgain\":\"Let\\'s try that again\",\"followGuidelines\":\"Please follow the guidelines\",\"ambientLighting\":\"Ambient lighting is not too bright or too dark and there are no shadows or glare on your face\",\"noMaskSunglassesHeaddress\":\"Neutral facial expression (no smiling, eyes open and mouth closed), no mask, sunglasses or headwear\",\"takeSelfie\":\"Take a selfie\",\"positionFaceCenter\":\"Position your face in the center of the oval and hold steady. We\\'ll do the rest.\",\"photoCapturedSuccessfully\":\"The photo is captured successfully.\",\"scanIDInBrowser\":\"Scan an ID in your browser\",\"useYourDeviceCamera\":\"Use your device camera to scan a document or select a photo of the document from the gallery\",\"fromCamera\":\"From сamera\",\"fromGallery\":\"From gallery\",\"cameraConnection\":\"Make sure the camera is connected correctly.\",\"documentProcessing\":\"Document processing...\",\"positionDocumentCenter\":\"Position the document in the center\",\"flipDocument\":\"Flip the document\",\"processingFinished\":\"Processing finished.\",\"uploadPhoto\":\"Upload a photo\",\"useCameraOrGallery\":\"Use your device camera or select a photo from the gallery\",\"detectingDocument\":\"Detecting a document...\",\"versionNotSupported\":\"Your browser version is not supported\",\"updateBrowser\":\"Update your browser version\",\"onlyPortraitOrientation\":\"Portrait orientation only\",\"turnDeviceIntoPortrait\":\"Please turn your device into portrait mode\",\"largeFile\":\"This file is too large to be uploaded\",\"selectSmallerFile\":\"Please select a smaller file\",\"licenseError\":\"A license error has occurred\",\"licenseExpired\":\"The license cannot be found or has expired\",\"fileCorrupt\":\"This file is corrupt or not supported\",\"selectAnotherFile\":\"Please select another file\",\"noFocus\":\"No camera focus\",\"showOnlyOneFace\":\"Make sure there is only one face on the screen.\",\"incorrectCameraId\":\"No camera with the specified ID found.\",\"checkCameraId\":\"Check if the specified camera ID is correct.\"}'),de:JSON.parse('{\"placeDocumentIntoFrame\":\"Passen Sie das Dokument in den Rahmen ein\",\"holdDocumentStraight\":\"Halten Sie das Dokument gerade\",\"glaresOnDocument\":\"Vermeiden Sie Blendungen auf dem Dokument\",\"preparingCamera\":\"Kamera wird vorbereitet...\",\"fitYourFace\":\"Gesicht in das Oval einpassen\",\"holdSteady\":\"Nicht bewegen\",\"processing\":\"Bearbeitung...\",\"lookStraight\":\"Geradeaus schauen\",\"moveCloser\":\"Näher an die Kamera\",\"moveAway\":\"Weiter von der Kamera\",\"timeout\":\"Timeout\",\"startLivenessVerification\":\"Liveness-Verifizierung starten\",\"positionFaceCenterMoveCloser\":\"Positionieren Sie Ihr Gesicht in der Mitte des Ovals und rücken Sie näher heran, wenn die Größe des Rahmens sich ändert.\",\"getStarted\":\"Los geht\\'s\",\"allowAccessCamera\":\"Erlauben Sie den Zugriff auf die Kamera\",\"somethingWentWrong\":\"Etwas ist schief gelaufen\",\"preparingService\":\"Service wird vorbereitet...\",\"verified\":\"Verifiziert!\",\"successfullyLivenessCheck\":\"Sie haben den Liveness-Check erfolgreich bestanden.\",\"success\":\"Erfolgreich!\",\"cameraUnavailable\":\"Kamera nicht verfügbar!\",\"allowAccessToCamera\":\"Erlauben Sie den Zugriff auf die Kamera und laden Sie diese Seite neu, um fortzufahren.\",\"error\":\"Fehler!\",\"tryAgain\":\"Erneut versuchen\",\"noCameraAvailable\":\"Keine Kamera vorhanden\",\"checkCameraConnection\":\"Überprüfen Sie die Kameraverbindung und versuchen Sie es erneut.\",\"letsTryAgain\":\"Nochmal wiederholen\",\"followGuidelines\":\"Folgen Sie bitte den Anweisungen\",\"ambientLighting\":\"Die Umgebungsbeleuchtung ist weder zu hell noch zu dunkel, und es gibt keine Schatten oder Blendungen auf Ihrem Gesicht.\",\"noMaskSunglassesHeaddress\":\"Neutraler Gesichtsausdruck (kein Lächeln, Augen offen und Mund geschlossen), keine Maske, Sonnenbrille oder Kopfbedeckung\",\"takeSelfie\":\"Machen Sie ein Selfie\",\"positionFaceCenter\":\"Positionieren Sie Ihr Gesicht in der Mitte des Ovals und halten still. Wir machen den Rest.\",\"photoCapturedSuccessfully\":\"Das Foto wurde erfolgreich aufgenommen.\",\"scanIDInBrowser\":\"Scannen Sie eine ID in Ihrem Browser\",\"useYourDeviceCamera\":\"Verwenden Sie die Kamera Ihres Geräts, um ein Dokument zu scannen, oder wählen Sie ein Foto des Dokuments in der Galerie aus.\",\"fromCamera\":\"Von Kamera\",\"fromGallery\":\"Von Gallerie\",\"cameraConnection\":\"Stellen Sie sicher, dass die Kamera richtig angeschlossen ist.\",\"documentProcessing\":\"Dokument in Bearbeitung...\",\"positionDocumentCenter\":\"Positionieren Sie das Dokument in der Mitte\",\"flipDocument\":\"Dokument drehen\",\"processingFinished\":\"Bearbeitung abgeschlossen.\",\"uploadPhoto\":\"Foto hochladen\",\"useCameraOrGallery\":\"Verwenden Sie die Kamera Ihres Geräts oder wählen Sie ein Foto aus der Galerie aus\",\"detectingDocument\":\"Suche nach Dokument...\",\"versionNotSupported\":\"Ihre Browserversion wird nicht unterstützt\",\"updateBrowser\":\"Aktualisieren Sie Ihre Browserversion\",\"onlyPortraitOrientation\":\"Nur im Hochformat\",\"turnDeviceIntoPortrait\":\"Bitte drehen Sie Ihr Gerät in den Hochformatmodus\",\"largeFile\":\"Diese Datei ist zu groß, um hochgeladen zu werden\",\"selectSmallerFile\":\"Bitte wählen Sie eine kleinere Datei\",\"licenseError\":\"Es ist ein Lizenzfehler aufgetreten\",\"licenseExpired\":\"Die Lizenz kann nicht gefunden werden oder ist abgelaufen\",\"fileCorrupt\":\"Diese Datei ist beschädigt oder wird nicht unterstützt\",\"selectAnotherFile\":\"Bitte wählen Sie eine andere Datei\",\"noFocus\":\"Kein Kamerafokus\",\"showOnlyOneFace\":\"Stellen Sie sicher, dass nur ein Gesicht auf dem Bildschirm zu sehen ist.\",\"incorrectCameraId\":\"Keine Kamera mit angegebener ID gefunden\",\"checkCameraId\":\"Prüfen Sie, ob die angegebene Kamera-ID korrekt ist\"}'),pl:JSON.parse('{\"placeDocumentIntoFrame\":\"Dopasuj dokument do ramki\",\"holdDocumentStraight\":\"Trzymaj urządzenie prosto\",\"glaresOnDocument\":\"Unikaj oślepiania dokumentu\",\"preparingCamera\":\"Przygotowywanie kamery...\",\"fitYourFace\":\"Umieść twarz w owalu\",\"holdSteady\":\"Nie ruszaj się\",\"processing\":\"Przetwarzanie...\",\"lookStraight\":\"Patrz prosto\",\"moveCloser\":\"Przysuń się bliżej\",\"moveAway\":\"Odsuń się dalej\",\"timeout\":\"Limit czasu\",\"startLivenessVerification\":\"Rozpocznij weryfikację\",\"positionFaceCenterMoveCloser\":\"Stań przed obiektywem tak, aby twarz okazała się pośrodku owalu, po zmianie rozmiaru owalu – przybliż się.\",\"getStarted\":\"Rozpocznij\",\"allowAccessCamera\":\"Zezwól na dostęp do aparatu\",\"somethingWentWrong\":\"Coś poszło nie tak\",\"preparingService\":\"Przygotowanie serwisu...\",\"verified\":\"Zweryfikowano!\",\"successfullyLivenessCheck\":\"Weryfikacja zakończona pomyślnie.\",\"success\":\"Gotowe!\",\"cameraUnavailable\":\"Aparat jest niedostępny!\",\"allowAccessToCamera\":\"Zezwól na dostęp do aparatu i odśwież tę stronę, aby kontynuować.\",\"error\":\"Błąd!\",\"tryAgain\":\"Powtórz próbę\",\"noCameraAvailable\":\"Brak aparatu\",\"checkCameraConnection\":\"Sprawdź, czy aparat jest włączony i spróbuj ponownie.\",\"letsTryAgain\":\"Spróbujmy jeszcze raz\",\"followGuidelines\":\"Postępuj zgodnie z zaleceniami\",\"ambientLighting\":\"Oświetlenie nie powinno być zbyt silne/słabe, na twarzy nie powinno być cieni i odblasków\",\"noMaskSunglassesHeaddress\":\"Wyraz twarzy powinien być neutralny (bez uśmiechu, usta zamknięte, oczy otwarte). Zdejmij maskę, okulary przeciwsłoneczne, nakrycie głowy\",\"takeSelfie\":\"Zrób selfie\",\"positionFaceCenter\":\"Umieść swoją twarz pośrodku owalu i nie ruszaj się. Resztę zrobimy my.\",\"photoCapturedSuccessfully\":\"Zdjęcie wykonano pomyślnie.\",\"scanIDInBrowser\":\"Zeskanuj dokument ID w swojej wyszukiwarce\",\"useYourDeviceCamera\":\"Użyj aparatu w swoim urządzeniu do skanowania dokumentu albo wybierz zdjęcie dokumentu z galerii\",\"fromCamera\":\"Z aparatu\",\"fromGallery\":\"Z galerii\",\"cameraConnection\":\"Upewnij się, że aparat jest podłączony prawidłowo.\",\"documentProcessing\":\"Przetwarzanie dokumentu...\",\"positionDocumentCenter\":\"Umieść dokument pośrodku\",\"flipDocument\":\"Odwróć dokument\",\"processingFinished\":\"Przetwarzanie dokumentu zakończone.\",\"uploadPhoto\":\"Załaduj zdjęcie\",\"useCameraOrGallery\":\"Użyj aparatu w swoim urządzeniu albo wybierz zdjęcie z galerii\",\"detectingDocument\":\"Wyszukiwanie dokumentu...\",\"versionNotSupported\":\"Twoja wersja przeglądarki nie jest obsługiwana\",\"updateBrowser\":\"Zaktualizuj wersję przeglądarki\",\"onlyPortraitOrientation\":\"Tylko orientacja portretowa\",\"turnDeviceIntoPortrait\":\"Ustaw urządzenie w orientacji portretowej\",\"largeFile\":\"Rozmiar ładowanego pliku jest zbyt duży\",\"selectSmallerFile\":\"Wybierz plik o mniejszym rozmiarze\",\"licenseError\":\"Błąd licencji\",\"licenseExpired\":\"Licencja nie została znaleziona lub jest nieważna\",\"fileCorrupt\":\"Plik jest uszkodzony albo nie jest obsługiwany\",\"selectAnotherFile\":\"Wybierz inny plik\",\"noFocus\":\"Brak ostrości\",\"showOnlyOneFace\":\"Upewnij się, że na ekranie znajduje się tylko jedna twarz\",\"incorrectCameraId\":\"Nie znaleziono kamery o podanym ID\",\"checkCameraId\":\"Sprawdź, czy podane ID kamery jest prawidłowe\"}'),it:JSON.parse('{\"placeDocumentIntoFrame\":\"Adatta il documento alla cornice\",\"holdDocumentStraight\":\"Tieni il documento dritto\",\"glaresOnDocument\":\"Evita il riflesso sul documento\",\"preparingCamera\":\"Preparazione della fotocamera in corso...\",\"fitYourFace\":\"Adatta il viso all\\'ovale\",\"holdSteady\":\"Stai fermo\",\"processing\":\"Elaborazione...\",\"lookStraight\":\"Guarda dritto\",\"moveCloser\":\"Avvicinati\",\"moveAway\":\"Allontanati\",\"timeout\":\"Timeout\",\"startLivenessVerification\":\"Inizia verifica liveness\",\"positionFaceCenterMoveCloser\":\"Posiziona il tuo viso al centro dell\\'ovale e avvicinati quando la dimensione della cornice viene modificata.\",\"getStarted\":\"Cominciamo\",\"allowAccessCamera\":\"Consenti l\\'accesso alla fotocamera\",\"somethingWentWrong\":\"Qualcosa è andato storto\",\"preparingService\":\"Preparazione del servizio...\",\"verified\":\"Verificato!\",\"successfullyLivenessCheck\":\"Hai superato con successo il liveness check.\",\"success\":\"L\\'operazione è andata a buon fine!\",\"cameraUnavailable\":\"Fotocamera non disponibile!\",\"allowAccessToCamera\":\"Consenti l\\'accesso alla fotocamera e ricarica questa pagina per continuare.\",\"error\":\"Errore!\",\"tryAgain\":\"Prova di nuovo\",\"noCameraAvailable\":\"Non c\\'è la fotocamera\",\"checkCameraConnection\":\"Controlla la connessione della fotocamera e riprova.\",\"letsTryAgain\":\"Prova a ripeterlo un\\'altra volta\",\"followGuidelines\":\"Per favore segui le linee guida\",\"ambientLighting\":\"L\\'illuminazione ambientale non è né troppo chiara né troppo scura e non ci sono ombre o riflessi sul viso\",\"noMaskSunglassesHeaddress\":\"Espressione facciale neutra (nessun sorriso, occhi aperti e bocca chiusa), nessuna mascherina, occhiali da sole o cappello\",\"takeSelfie\":\"Fai un selfie\",\"positionFaceCenter\":\"Posiziona il viso al centro dell\\'ovale e tienilo fermo. Noi faremo il resto.\",\"photoCapturedSuccessfully\":\"La foto è stata scattata con successo.\",\"scanIDInBrowser\":\"Scansiona un ID nel browser\",\"useYourDeviceCamera\":\"Usa la fotocamera del tuo dispositivo per scansionare un documento o seleziona una foto del documento dalla galleria\",\"fromCamera\":\"Dalla fotocamera\",\"fromGallery\":\"Dalla galleria\",\"cameraConnection\":\"Assicurati che la fotocamera sia collegata correttamente.\",\"documentProcessing\":\"Elaborazione dei documenti in corso...\",\"positionDocumentCenter\":\"Posiziona il documento al centro\",\"flipDocument\":\"Capovolgi il documento\",\"processingFinished\":\"Elaborazione finita.\",\"uploadPhoto\":\"Carica una foto\",\"useCameraOrGallery\":\"Usa la fotocamera del tuo dispositivo o seleziona una foto dalla galleria\",\"detectingDocument\":\"Rilevamento di un documento...\",\"versionNotSupported\":\"La versione del tuo browser non è supportata\",\"updateBrowser\":\"Aggiorna la versione del browser\",\"onlyPortraitOrientation\":\"Solo orientamento verticale\",\"turnDeviceIntoPortrait\":\"Gira il tuo dispositivo in modalità verticale\",\"largeFile\":\"Questo file è troppo grande per essere caricato\",\"selectSmallerFile\":\"Seleziona un file più piccolo\",\"licenseError\":\"Si è verificato un errore di licenza\",\"licenseExpired\":\"La licenza non è stata trovata o è scaduta\",\"fileCorrupt\":\"Questo file è danneggiato o non supportato\",\"selectAnotherFile\":\"Seleziona un altro file\",\"noFocus\":\"Nessuna messa a fuoco della fotocamera\",\"showOnlyOneFace\":\"Assicurati che ci sia solo un viso sullo schermo\",\"incorrectCameraId\":\"Nessuna telecamera trovata con l\\'ID specificato\",\"checkCameraId\":\"Verifica se l\\'ID specificato della telecamera è corretto\"}'),hu:JSON.parse('{\"placeDocumentIntoFrame\":\"Igazítsa a dokumentumot a keretbe\",\"holdDocumentStraight\":\"A készüléket tartsa mozdulatlanul\",\"glaresOnDocument\":\"Kerülje a fény megcsillanását a dokumentumon\",\"preparingCamera\":\"A kamera előkészítése...\",\"fitYourFace\":\"Illessze az arcát az ovális formába\",\"holdSteady\":\"Tartsa mozdulatlanul\",\"processing\":\"Feldolgozás...\",\"lookStraight\":\"Nézzen egyenesen\",\"moveCloser\":\"Vigye közelebb\",\"moveAway\":\"Vigye távolabb\",\"timeout\":\"Időkorlát\",\"startLivenessVerification\":\"Valódiság ellenőrzésének indítása\",\"positionFaceCenterMoveCloser\":\"Helyezze az arcát az ovális közepébe és közelítse, amikor változik a keret mérete.\",\"getStarted\":\"Vágjunk bele\",\"allowAccessCamera\":\"Hozzáférés engedélyezése kamerához\",\"somethingWentWrong\":\"Valami félresikerült\",\"preparingService\":\"Szolgáltatás előkészítése…\",\"verified\":\"Ellenőrzés kész!\",\"successfullyLivenessCheck\":\"Sikeresen átment a valódisági ellenőrzésen.\",\"success\":\"Siker!\",\"cameraUnavailable\":\"Nem érhető el kamera!\",\"allowAccessToCamera\":\"Hozzáférés engedélyezése a kamerához és az oldal újratöltése a folytatáshoz.\",\"error\":\"Hiba!\",\"tryAgain\":\"Próbálja újra\",\"noCameraAvailable\":\"Nincs kamera\",\"checkCameraConnection\":\"Ellnőrizze a kamerát és próbálja újra.\",\"letsTryAgain\":\"Próbáljuk meg újra\",\"followGuidelines\":\"Kérjük, kövesse az útmutatásokat\",\"ambientLighting\":\"A környezeti fények nem elég világosak vagy túl sötétek és nincsenek árnyékok, illetve fényvisszaverődés az arcán\",\"noMaskSunglassesHeaddress\":\"Semleges arckifejezés (mosoly nélkül, nyitott szemmel és csukott szájjal), maszk, napszemüveg vagy fejfedő nélkül\",\"takeSelfie\":\"Készítsen egy szelfit\",\"positionFaceCenter\":\"Helyezze az arcát az ovális közepébe és tartsa mozdulatlanul. Mi elvégezzük a továbbiakat.\",\"photoCapturedSuccessfully\":\"Sikeresen elkészült a fénykép.\",\"scanIDInBrowser\":\"Olvasson be személyazonosító okiratot böngészőjében\",\"useYourDeviceCamera\":\"Készüléke kamerája segítségével olvassa be az okiratot vagy válassza ki az okirat képét a galériából\",\"fromCamera\":\"A kameráról\",\"fromGallery\":\"A galériából\",\"cameraConnection\":\"Bizonyosodjon meg arról, hogy megfelelően csatlakozik a kamera.\",\"documentProcessing\":\"Okirat feldolgozása...\",\"positionDocumentCenter\":\"Helyezze az okiratot középre\",\"flipDocument\":\"Fordítsa meg az okiratot\",\"processingFinished\":\"A feldolgozás befejeződött.\",\"uploadPhoto\":\"Fénykép feltöltése\",\"useCameraOrGallery\":\"Használja készüléke kameráját vagy válasszon egy fényképet a galériából\",\"detectingDocument\":\"Okirat észlelése...\",\"versionNotSupported\":\"Nem támogatott a böngésző verziója\",\"updateBrowser\":\"A böngésző frissítse szükséges\",\"onlyPortraitOrientation\":\"Csak álló tájolás\",\"turnDeviceIntoPortrait\":\"Kérjük, fordítsa készülékét álló (arckép) helyzetbe\",\"largeFile\":\"A feltöltendő fájl túl nagy\",\"selectSmallerFile\":\"Kérjük, válasszon kisebb fájlt\",\"licenseError\":\"Engedélyezési hiba merült fel\",\"licenseExpired\":\"Nem található vagy lejárt az engedély\",\"fileCorrupt\":\"Ez a fájl sérült vagy nem támogatott\",\"selectAnotherFile\":\"Kérjük, válasszon másik fájlt\",\"noFocus\":\"Nem fókuszál a kamera\",\"showOnlyOneFace\":\"Győződjön meg róla, hogy csak egy arc van a képen\",\"incorrectCameraId\":\"Nem található ilyen azonosítójú kamera\",\"checkCameraId\":\"Ellenőrizze, hogy helyes-e a kamera azonosítója\"}'),zh:JSON.parse('{\"placeDocumentIntoFrame\":\"对准证件使其在框中\",\"holdDocumentStraight\":\"保持证件直接\",\"glaresOnDocument\":\"避免证件的反射过强的光\",\"preparingCamera\":\"正在准备相机\",\"fitYourFace\":\"使您的脸适合椭圆形\",\"holdSteady\":\"持稳\",\"processing\":\"处理中...\",\"lookStraight\":\"直看\",\"moveCloser\":\"靠近点\",\"moveAway\":\"移开\",\"timeout\":\"超时\",\"startLivenessVerification\":\"Liveness验证开始\",\"positionFaceCenterMoveCloser\":\"将您的脸放在椭圆形的中心,并在框架大小改变时靠近。\",\"getStarted\":\"开始\",\"allowAccessCamera\":\"允许访问相机\",\"somethingWentWrong\":\"出了问题\",\"preparingService\":\"正在准备服务...\",\"verified\":\"已验证!\",\"successfullyLivenessCheck\":\"您已成功通过liveness检查。\",\"success\":\"成功!\",\"cameraUnavailable\":\"相机不可用!\",\"allowAccessToCamera\":\"允许访问相机并重新加载此页面以继续。\",\"error\":\"错误!\",\"tryAgain\":\"再试一次\",\"noCameraAvailable\":\"没有相机\",\"checkCameraConnection\":\"检查相机的连接,再试一次。\",\"letsTryAgain\":\"再试一次\",\"followGuidelines\":\"请遵循准则\",\"ambientLighting\":\"环境照明不是太亮或太暗,脸上没有阴影或眩光\",\"noMaskSunglassesHeaddress\":\"中性的面部表情(不笑,睁眼闭嘴),不戴面具、太阳镜或头饰\",\"takeSelfie\":\"自拍一张\",\"positionFaceCenter\":\"将你的脸放在椭圆形的中心,并保持稳定。形的中心剩下的我们来做。\",\"photoCapturedSuccessfully\":\"照片拍摄成功。\",\"scanIDInBrowser\":\"在浏览器中扫描身份证件\",\"useYourDeviceCamera\":\"使用您的设备相机扫描证件或从图库中选择证件的照片\",\"fromCamera\":\"从相机\",\"fromGallery\":\"来自手机图库\",\"cameraConnection\":\"确保相机连接正确。\",\"documentProcessing\":\"证件处理...\",\"positionDocumentCenter\":\"将证件置于中心\",\"flipDocument\":\"翻转证件\",\"processingFinished\":\"处理完毕。\",\"uploadPhoto\":\"上传一张照片\",\"useCameraOrGallery\":\"使用您的设备相机或从图库中选择一张照片\",\"detectingDocument\":\"检测证件...\",\"versionNotSupported\":\"不支持您的浏览器版本\",\"updateBrowser\":\"更新您的浏览器版本\",\"onlyPortraitOrientation\":\"只供肖像方向使用\",\"turnDeviceIntoPortrait\":\"请将您的设备转为纵向模式\",\"largeFile\":\"该文件太大,无法上传\",\"selectSmallerFile\":\"请选择较小的文件\",\"licenseError\":\"发生许可证错误\",\"licenseExpired\":\"无法找到许可证或已过期\",\"fileCorrupt\":\"该文件已损坏或不被支持\",\"selectAnotherFile\":\"请选择另一个文件\",\"noFocus\":\"没有摄像头对焦\",\"showOnlyOneFace\":\"确保屏幕上只有一张脸\",\"incorrectCameraId\":\"未找到具有指定 ID 的像机\",\"checkCameraId\":\"检查指定的相机ID是否正确\"}'),sk:JSON.parse('{\"placeDocumentIntoFrame\":\"Vložte dokument do rámu\",\"holdDocumentStraight\":\"Držte dokument rovno\",\"glaresOnDocument\":\"Vyhnite sa odleskom na dokumente\",\"preparingCamera\":\"Príprava fotoaparátu...\",\"fitYourFace\":\"Umiestnite tvár do oválu\",\"holdSteady\":\"A nehýbte sa\",\"processing\":\"Spracováva sa...\",\"lookStraight\":\"Pozerajte priamo\",\"moveCloser\":\"Posuňte bližšie\",\"moveAway\":\"Posuňte ďalej\",\"timeout\":\"Čas vypršal\",\"startLivenessVerification\":\"Spustiť overovanie živosti\",\"positionFaceCenterMoveCloser\":\"Umiestnite svoju tvár do stredu oválu a pri zmene veľkosti rámu sa priblížte.\",\"getStarted\":\"Začíname\",\"allowAccessCamera\":\"Povoliť prístup k fotoaparátu\",\"somethingWentWrong\":\"Niečo sa pokazilo\",\"preparingService\":\"Pripravuje sa služba...\",\"verified\":\"Overené!\",\"successfullyLivenessCheck\":\"Úspešne ste prešli kontrolou živosti.\",\"success\":\"Úspech!\",\"cameraUnavailable\":\"Fotoaparát je nedostupný!\",\"allowAccessToCamera\":\"Ak chcete pokračovať, povoľte prístup k fotoaparátu a znova načítajte túto stránku.\",\"error\":\"Chyba!\",\"tryAgain\":\"Skúste to znova\",\"noCameraAvailable\":\"Žiadny fotoaparát\",\"checkCameraConnection\":\"Skontrolujte pripojenie fotoaparátu a skúste to znova.\",\"letsTryAgain\":\"Skúsme to znova\",\"followGuidelines\":\"Postupujte podľa pokynov\",\"ambientLighting\":\"Okolité osvetlenie nie je príliš jasné ani príliš tmavé a na vašej tvári nie sú žiadne tiene ani odlesky\",\"noMaskSunglassesHeaddress\":\"Neutrálny výraz tváre (žiadny úsmev, otvorené oči a zatvorené ústa), žiadna maska, slnečné okuliare ani pokrývka hlavy\",\"takeSelfie\":\"Urobte si selfie\",\"positionFaceCenter\":\"Umiestnite svoju tvár do stredu oválu a nehýbte sa. My urobíme ostatné.\",\"photoCapturedSuccessfully\":\"Fotografia je úspešne nasnímaná.\",\"scanIDInBrowser\":\"Naskenujte ID v prehliadači\",\"useYourDeviceCamera\":\"Pomocou fotoaparátu zariadenia naskenujte dokument alebo vyberte fotografiu dokumentu z galérie\",\"fromCamera\":\"Z fotoaparátu\",\"fromGallery\":\"Z galérie\",\"cameraConnection\":\"Uistite sa, že je fotoaparát správne pripojený.\",\"documentProcessing\":\"Spracovanie dokumentu...\",\"positionDocumentCenter\":\"Umiestnite dokument do stredu\",\"flipDocument\":\"Prevrátiť dokument\",\"processingFinished\":\"Spracovanie dokončené.\",\"uploadPhoto\":\"Odovzdať fotografiu\",\"useCameraOrGallery\":\"Použite fotoaparát zariadenia alebo vyberte fotografiu z galérie\",\"detectingDocument\":\"Zisťuje sa dokument...\",\"versionNotSupported\":\"Verzia vášho prehliadača nie je podporovaná\",\"updateBrowser\":\"Aktualizujte verziu prehliadača\",\"onlyPortraitOrientation\":\"Len orientácia na výšku\",\"turnDeviceIntoPortrait\":\"Otočte zariadenie do režimu na výšku\",\"largeFile\":\"Súbor je príliš veľký na odovzdávanie\",\"selectSmallerFile\":\"Vyberte menší súbor\",\"licenseError\":\"Vyskytla sa chyba licencie\",\"licenseExpired\":\"Licenciu nie je možné nájsť, prípadne už nie je platná\",\"fileCorrupt\":\"Súbor je poškodený, prípadne nie je podporovaný\",\"selectAnotherFile\":\"Vyberte iný súbor\",\"noFocus\":\"Žiadne zaostrenie fotoaparátu\",\"showOnlyOneFace\":\"Zaistite, aby bola na obrazovke iba jedna tvár\",\"incorrectCameraId\":\"Nenašiel sa žiadny fotoaparát s určeným ID\",\"checkCameraId\":\"Skontrolujte, či je určené ID fotoaparátu správne\"}'),uk:JSON.parse('{\"placeDocumentIntoFrame\":\"Помістіть документ в рамку\",\"holdDocumentStraight\":\"Тримайте документ прямо\",\"glaresOnDocument\":\"Уникайте відблисків на документі\",\"preparingCamera\":\"Підготовка камери...\",\"fitYourFace\":\"Помістіть обличчя в овал\",\"holdSteady\":\"Не рухайтеся\",\"processing\":\"Обробка...\",\"lookStraight\":\"Дивіться прямо\",\"moveCloser\":\"Підсуньтеся ближче\",\"moveAway\":\"Відсуньтеся подалі\",\"timeout\":\"Тайм-аут\",\"startLivenessVerification\":\"Почніть перевірку\",\"positionFaceCenterMoveCloser\":\"Розташуйтеся перед камерою таким чином, щоб обличчя знаходилось в центрі овалу, після зміни розміру овалу – наблизьтеся.\",\"getStarted\":\"Розпочати\",\"allowAccessCamera\":\"Дозвольте доступ до камери\",\"somethingWentWrong\":\"Щось пішло не так\",\"preparingService\":\"Підготовка сервісу...\",\"verified\":\"Перевірено!\",\"successfullyLivenessCheck\":\"Ви успішно пройшли перевірку.\",\"success\":\"Готово!\",\"cameraUnavailable\":\"Камера недоступна!\",\"allowAccessToCamera\":\"Дозвольте доступ до камери і перезавантажте цю сторінку, щоб продовжити.\",\"error\":\"Помилка!\",\"tryAgain\":\"Спробуйте ще раз\",\"noCameraAvailable\":\"Камера відсутня\",\"checkCameraConnection\":\"Перевірте підключення камери і спробуйте знову.\",\"letsTryAgain\":\"Давайте спробуємо ще раз\",\"followGuidelines\":\"Будь ласка, дотримуйтесь рекомендацій\",\"ambientLighting\":\"Освітлення не повинно бути занадто яскравим/тьмяним, на обличчі не повинно бути тіней і відблисків\",\"noMaskSunglassesHeaddress\":\"Вираз обличчя має бути нейтральним (без посмішки, рот закритий, очі відкриті). Зніміть маску, сонцезахисні окуляри, головний убір\",\"takeSelfie\":\"Зробіть селфі\",\"positionFaceCenter\":\"Помістіть своє обличчя в центр овалу і не рухайтеся. Ми зробимо все інше.\",\"photoCapturedSuccessfully\":\"Знімок успішно отримано.\",\"scanIDInBrowser\":\"Відскануйте ID-документ у вашому браузері\",\"useYourDeviceCamera\":\"Використайте камеру вашого пристрою для сканування документа або виберіть фотографію документа з галереї\",\"fromCamera\":\"З камери\",\"fromGallery\":\"З галереї\",\"cameraConnection\":\"Переконайтеся, що камера підключена правильно.\",\"documentProcessing\":\"Обробка документа...\",\"positionDocumentCenter\":\"Розташуйте документ у центрі\",\"flipDocument\":\"Переверніть документ\",\"processingFinished\":\"Обробку документа завершено.\",\"uploadPhoto\":\"Завантажте фото\",\"useCameraOrGallery\":\"Використайте камеру вашого пристрою або виберіть фотографію з галереї\",\"detectingDocument\":\"Пошук документа...\",\"versionNotSupported\":\"Версія вашого браузера не підтримується\",\"updateBrowser\":\"Оновіть версію вашого браузера\",\"onlyPortraitOrientation\":\"Лише портретна орієнтація\",\"turnDeviceIntoPortrait\":\"Поверніть пристрій у портретний режим\",\"largeFile\":\"Розмір файлу, що завантажується, занадто великий\",\"selectSmallerFile\":\"Виберіть файл менший за розміром\",\"licenseError\":\"Помилка ліцензії\",\"licenseExpired\":\"Ліцензію не знайдено або вона не є дійсною\",\"fileCorrupt\":\"Файл пошкоджено або він не підтримується\",\"selectAnotherFile\":\"Виберіть інший файл\",\"noFocus\":\"Немає фокусування камери\",\"showOnlyOneFace\":\"Переконайтеся, що на екрані є лише одна особа\",\"incorrectCameraId\":\"Камеру з заданим ID не знайдено\",\"checkCameraId\":\"Перевірте правильність заданого ID камери\"}'),fr:JSON.parse('{\"placeDocumentIntoFrame\":\"Ajuster le document dans le cadre\",\"holdDocumentStraight\":\"Garder le document droit\",\"glaresOnDocument\":\"Eviter les reflets sur le document\",\"preparingCamera\":\"Caméra en préparation...\",\"fitYourFace\":\"Ajustez votre visage dans l\\'ovale\",\"holdSteady\":\"Ne bougez plus\",\"processing\":\"Analyse...\",\"lookStraight\":\"Regardez la caméra\",\"moveCloser\":\"Rapprochez\",\"moveAway\":\"Eloignez\",\"timeout\":\"Délai d\\'expiration\",\"startLivenessVerification\":\"Lance la vérification de présence vivante\",\"positionFaceCenterMoveCloser\":\"Positionnez votre visage au centre de l\\'ovale, et rapprochez-vous lorsque la dimension du cadre change.\",\"getStarted\":\"Lancer\",\"allowAccessCamera\":\"Autoriser l\\'accès à la caméra\",\"somethingWentWrong\":\"Anomalie\",\"preparingService\":\"Préparation...\",\"verified\":\"Vérifié!\",\"successfullyLivenessCheck\":\"Test de présence vivante réussi.\",\"success\":\"Réussi!\",\"cameraUnavailable\":\"Caméra indisponible!\",\"allowAccessToCamera\":\"Autoriser l\\'accès à la caméra, et recharger cette page pour continuer.\",\"error\":\"Erreur!\",\"tryAgain\":\"Réessayer\",\"noCameraAvailable\":\"Caméra introuvable\",\"checkCameraConnection\":\"Vérifier la connexion à la caméra et réessayer.\",\"letsTryAgain\":\"Réessayons\",\"followGuidelines\":\"Veuillez suivre les instructions\",\"ambientLighting\":\"La lumière ambiante ne doit pas être trop faible ou trop forte, et il ne doit pas y avoir d\\'ombres ou de reflets sur votre visage\",\"noMaskSunglassesHeaddress\":\"Expression neutre (pas de sourire, yeux ouverts et bouche fermée), pas de masque, lunettes de soleil, ou couvre-chef\",\"takeSelfie\":\"Prendre un selfie\",\"positionFaceCenter\":\"Positionnez votre visage au centre de l\\'ovale, ne bougez plus. Nous nous occupons du reste...\",\"photoCapturedSuccessfully\":\"Photo correcte.\",\"scanIDInBrowser\":\"Scannez une pièce d\\'identité\",\"useYourDeviceCamera\":\"Utilisez la caméra de votre mobile pour scanner un document, ou sélectionnez une photo du document dans la galerie\",\"fromCamera\":\"Depuis la сaméra\",\"fromGallery\":\"Depuis la galerie\",\"cameraConnection\":\"Assurez-vous que la caméra est correctement connectée.\",\"documentProcessing\":\"Analyse du document...\",\"positionDocumentCenter\":\"Positionner le document au centre\",\"flipDocument\":\"Inverser le document\",\"processingFinished\":\"Terminé.\",\"uploadPhoto\":\"Envoyez une photo\",\"useCameraOrGallery\":\"Utilisez la caméra de votre appareil, ou sélectionnez une photo dans la galerie\",\"detectingDocument\":\"Détection d\\'un document...\",\"versionNotSupported\":\"Version de navigateur non compatible\",\"updateBrowser\":\"Veuillez mettre à jour votre navigateur\",\"onlyPortraitOrientation\":\"Orientation portrait seulement\",\"turnDeviceIntoPortrait\":\"Veuillez tourner votre mobile en mode portrait\",\"largeFile\":\"Fichier trop volumineux pour être transféré\",\"selectSmallerFile\":\"Veuillez sélectionner un fichier moins volumineux\",\"licenseError\":\"Erreur de licence\",\"licenseExpired\":\"License introuvable ou expirée\",\"fileCorrupt\":\"Fichier corrompu ou non supporté\",\"selectAnotherFile\":\"Veuillez sélectionner un autre fichier\",\"noFocus\":\"Caméra non focalisée\",\"showOnlyOneFace\":\"Assurez-vous qu\\'un seul visage apparaît à l\\'écran\",\"incorrectCameraId\":\"Aucune caméra ayant l\\'ID spécifié\",\"checkCameraId\":\"Vérifier que l\\'ID de caméra spécifié est correct\"}'),es:JSON.parse('{\"placeDocumentIntoFrame\":\"Encaje el documento en el marco\",\"holdDocumentStraight\":\"Sostenga el documento recto\",\"glaresOnDocument\":\"Evite el brillo en el documento\",\"preparingCamera\":\"Preparando la cámara...\",\"fitYourFace\":\"Coloque su rostro en el óvalo\",\"holdSteady\":\"Quédese quieto\",\"processing\":\"Procesamiento...\",\"lookStraight\":\"Mire hacia adelante\",\"moveCloser\":\"Acérquese\",\"moveAway\":\"Aléjese\",\"timeout\":\"Tiempo de espera\",\"startLivenessVerification\":\"Inicie la verificación liveness\",\"positionFaceCenterMoveCloser\":\"Coloque su cara en el centro del óvalo y acérquese cuando cambie el tamaño del marco.\",\"getStarted\":\"Empezar\",\"allowAccessCamera\":\"Permita el acceso a la cámara\",\"somethingWentWrong\":\"Algo salió mal\",\"preparingService\":\"Preparando el servicio...\",\"verified\":\"¡Verificado!\",\"successfullyLivenessCheck\":\"Ha realizado con éxito la comprobación liveness.\",\"success\":\"¡Listo!\",\"cameraUnavailable\":\"¡Cámara no disponible!\",\"allowAccessToCamera\":\"Permita el acceso a la cámara y recargue esta página para continuar.\",\"error\":\"¡Error!\",\"tryAgain\":\"Inténtelo de nuevo\",\"noCameraAvailable\":\"No hay cámara disponible\",\"checkCameraConnection\":\"Compruebe la conexión de la cámara y vuelva a intentarlo.\",\"letsTryAgain\":\"Intentémoslo de nuevo\",\"followGuidelines\":\"Por favor, siga las directrices\",\"ambientLighting\":\"La iluminación ambiental no debe ser ni demasiado brillante ni demasiado oscura y no debe haber sombras ni brillos en el rostro.\",\"noMaskSunglassesHeaddress\":\"La expresión facial debe ser neutra (sin sonrisa, con los ojos abiertos y la boca cerrada), sin máscara, gafas de sol o prendas en la cabeza.\",\"takeSelfie\":\"Tómese un selfie\",\"positionFaceCenter\":\"Coloque su rostro en el centro del óvalo y quédese quieto. Nosotros haremos el resto.\",\"photoCapturedSuccessfully\":\"La foto se ha capturado con éxito.\",\"scanIDInBrowser\":\"Escanee un documento de identidad en su navegador\",\"useYourDeviceCamera\":\"Utilice la cámara de su dispositivo para escanear un documento o seleccione una foto del documento de la galería\",\"fromCamera\":\"Desde la cámara\",\"fromGallery\":\"Desde la galería\",\"cameraConnection\":\"Asegúrese de que la cámara está conectada correctamente.\",\"documentProcessing\":\"Procesando el documento...\",\"positionDocumentCenter\":\"Coloque el documento en el centro\",\"flipDocument\":\"Déle la vuelta al documento\",\"processingFinished\":\"Procesamiento del documento finalizado.\",\"uploadPhoto\":\"Suba una foto\",\"useCameraOrGallery\":\"Utilice la cámara de su dispositivo o seleccione una foto de la galería\",\"detectingDocument\":\"Detectando un documento...\",\"versionNotSupported\":\"La versión de su navegador no es compatible\",\"updateBrowser\":\"Actualice la versión de su navegador\",\"onlyPortraitOrientation\":\"Sólo orientación vertical\",\"turnDeviceIntoPortrait\":\"Por favor, gire su dispositivo al modo vertical\",\"largeFile\":\"Este archivo es demasiado grande para cargarlo\",\"selectSmallerFile\":\"Seleccione un archivo de menor tamaño\",\"licenseError\":\"Se ha producido un error de licencia\",\"licenseExpired\":\"La licencia no se encuentra o ha expirado\",\"fileCorrupt\":\"Este archivo está dañado o no es compatible\",\"selectAnotherFile\":\"Por favor, seleccione otro archivo\",\"noFocus\":\"No hay enfoque de la cámara\",\"showOnlyOneFace\":\"Asegúrese de que solo hay un rostro en la pantalla\",\"incorrectCameraId\":\"La cámara con el identificador especificado no encontrada\",\"checkCameraId\":\"Compruebe si el identificador especificado de la cámara es correcto\"}'),pt:JSON.parse('{\"placeDocumentIntoFrame\":\"Encaixe o documento no quadro\",\"holdDocumentStraight\":\"Mantenha o dispositio reto\",\"glaresOnDocument\":\"Evite luz sobre o documento\",\"preparingCamera\":\"Preparando o documento....\",\"fitYourFace\":\"Encaixar o rosto na oval\",\"holdSteady\":\"Mantenha-se imóvel\",\"processing\":\"A processar...\",\"lookStraight\":\"Olhe diretamente\",\"moveCloser\":\"Aproxime-se\",\"moveAway\":\"Afaste-se\",\"timeout\":\"Tempo esgotado\",\"startLivenessVerification\":\"Inicie validação de vida ativa\",\"positionFaceCenterMoveCloser\":\"Posicione o seu rosto no centro da oval e aproxime-se quando o tamanho da moldura for alterado.\",\"getStarted\":\"Comece\",\"allowAccessCamera\":\"Permita o acesso à câmara\",\"somethingWentWrong\":\"Algo correu mal\",\"preparingService\":\"Preparando o serviço...\",\"verified\":\"Verificado!\",\"successfullyLivenessCheck\":\"Passou com sucesso a validação de vida ativa\",\"success\":\"Sucesso!\",\"cameraUnavailable\":\"Câmara indisponível!\",\"allowAccessToCamera\":\"Permita o acesso à câmara e volte a carregar esta página para continuar.\",\"error\":\"Erro!\",\"tryAgain\":\"Tente outra vez\",\"noCameraAvailable\":\"Não há câmara\",\"checkCameraConnection\":\"Verifique a ligação da câmara e tente novamente.\",\"letsTryAgain\":\"Vamos tentar de novo\",\"followGuidelines\":\"Por favor, siga as orientações\",\"ambientLighting\":\"A iluminação ambiente não é demasiado brilhante ou demasiado escura e não há sombras ou clarões no seu rosto\",\"noMaskSunglassesHeaddress\":\"Expressão facial neutra (sem sorrisos, olhos abertos e boca fechada), sem máscara, óculos de sol ou touca\",\"takeSelfie\":\"Tire uma selfie\",\"positionFaceCenter\":\"Posicione o seu rosto no centro da oval e mantenha-se firme. Nós faremos o resto.\",\"photoCapturedSuccessfully\":\"A fotografia é capturada com sucesso.\",\"scanIDInBrowser\":\"Digitalize um ID no seu navegador\",\"useYourDeviceCamera\":\"Utilize a câmara do seu dispositivo para digitalizar um documento ou selecionar uma fotografia do documento na galeria\",\"fromCamera\":\"Da câmara\",\"fromGallery\":\"Da galeria\",\"cameraConnection\":\"Certifique-se de que a câmara está ligada corretamente.\",\"documentProcessing\":\"Procesar o documento...\",\"positionDocumentCenter\":\"Posicione o documento no centro\",\"flipDocument\":\"Vire o documento\",\"processingFinished\":\"Processamento terminado.\",\"uploadPhoto\":\"Carregue uma foto\",\"useCameraOrGallery\":\"Utilize a sua máquina fotográfica ou selecione uma fotografia da galeria\",\"detectingDocument\":\"Detectando um documento...\",\"versionNotSupported\":\"A versão do seu navegador não é compatível\",\"updateBrowser\":\"Atualize a versão do seu navegador\",\"onlyPortraitOrientation\":\"Orientação de retrato apenas\",\"turnDeviceIntoPortrait\":\"Por favor, coloque seu dispositivo no modo retrato\",\"largeFile\":\"Este arquivo é muito grande para ser carregado\",\"selectSmallerFile\":\"Selecione um arquivo menor\",\"licenseError\":\"Ocorreu um erro de licença\",\"licenseExpired\":\"A licença não pode ser encontrada ou expirou\",\"fileCorrupt\":\"Este arquivo está corrompido ou não é compatível\",\"selectAnotherFile\":\"Selecione outro arquivo\",\"noFocus\":\"Sem foco da câmara\",\"showOnlyOneFace\":\"Verifique se há apenas um rosto na tela\",\"incorrectCameraId\":\"Não foi encontrada nenhuma câmara com o ID especificado\",\"checkCameraId\":\"Verifique se a ID da câmara especificada está correta\"}'),ar:JSON.parse('{\"placeDocumentIntoFrame\":\"تأطير الوثيقة\",\"holdDocumentStraight\":\"حافظ على المستند مستقيماً\",\"glaresOnDocument\":\"تجنب الوهج على الوثيقة\",\"preparingCamera\":\"تهيئة الكاميرا...\",\"fitYourFace\":\"ضع وجهك في الشكل البيضاوي\",\"holdSteady\":\"ابق ثابتًا\",\"processing\":\"جاري المعالجة...\",\"lookStraight\":\"انظر مباشرةً للكاميرا\",\"moveCloser\":\"اقترب أكثر\",\"moveAway\":\"ابتعد قليلًا\",\"timeout\":\"مدة الانتظار\",\"startLivenessVerification\":\"بدء عملية التحقق من الحيويّة\",\"positionFaceCenterMoveCloser\":\"ضع وجهك في وسط الشكل البيضاوي واقترب أكثر كلما تغير حجم الإطار.\",\"getStarted\":\"ابدأ\",\"allowAccessCamera\":\"اسمح بالوصول إلى الكاميرا\",\"somethingWentWrong\":\"حدث خطأ ما\",\"preparingService\":\"جاري تحضير الخدمة...\",\"verified\":\"انتهت عملية التحقّق!\",\"successfullyLivenessCheck\":\"لقد نجحت في اجتياز فحص الحيويّة.\",\"success\":\"تم!\",\"cameraUnavailable\":\"الكاميرا غير متاحة!\",\"allowAccessToCamera\":\"اسمح بالوصول إلى الكاميرا وأعد تحميل هذه الصفحة للمتابعة.\",\"error\":\"خطأ!\",\"tryAgain\":\"حاول مرة أخرى\",\"noCameraAvailable\":\"تعذّر العثور على الكاميرا\",\"checkCameraConnection\":\"تحقق من اتصال الكاميرا وحاول مرة أخرى.\",\"letsTryAgain\":\"دعنا نحاول ذلك مرة أخرى\",\"followGuidelines\":\"يرجى اتباع الإرشادات\",\"ambientLighting\":\"يجب ألا تكون الإضاءة المحيطة ساطعة جدًا أو مظلمة للغاية، ويتعين التأكد من عدم وجود ظلال أو وهج على وجهك\",\"noMaskSunglassesHeaddress\":\"يجب أن تكون تعبيرات وجه محايدة (بدون ابتسامة، العيون مفتوحة والفم مغلق)، بدون قناع أو نظارات شمسية أو غطاء للرأس\",\"takeSelfie\":\"التقط صورة سيلفي\",\"positionFaceCenter\":\"ضع وجهك في وسط الشكل البيضاوي واجعله ثابتًا. واترك الباقي علينا.\",\"photoCapturedSuccessfully\":\"تم التقاط الصورة بنجاح.\",\"scanIDInBrowser\":\"امسح المعرف الشخصي (ID) في متصفحك\",\"useYourDeviceCamera\":\"استخدم كاميرا جهازك لمسح مستند ضوئيًا أو اختر صورةً لمستند من معرض الصور لديك\",\"fromCamera\":\"من الكاميرا\",\"fromGallery\":\"من معرض الصور\",\"cameraConnection\":\"تأكد من أن الكاميرا متصلة بشكل صحيح.\",\"documentProcessing\":\"جاري معالجة المستند...\",\"positionDocumentCenter\":\"ضع المستند في الوسط\",\"flipDocument\":\"اقلب المستند\",\"processingFinished\":\"انتهت عملية المعالجة.\",\"uploadPhoto\":\"حمّل الصورة\",\"useCameraOrGallery\":\"استخدم كاميرا جهازك أو اختر صورة من معرض الصور\",\"detectingDocument\":\"جاري التعّرف على الوثيقة...\",\"versionNotSupported\":\"إصدار المتصفح الخاص بك غير مدعوم\",\"updateBrowser\":\"يرجى تحديث إصدار متصفحك\",\"onlyPortraitOrientation\":\"اتجاه عمودي فقط\",\"turnDeviceIntoPortrait\":\"يرجى تحويل جهازك إلى الوضع العمودي\",\"largeFile\":\"هذا الملف كبير جدًا بحيث لا يمكن تحميله\",\"selectSmallerFile\":\"يرجى اختيار ملف أصغر حجمًا\",\"licenseError\":\"حدث خطأ في الرخصة\",\"licenseExpired\":\"تعذّر العثور على الرخصة أو أن صلاحيتها منتهية\",\"fileCorrupt\":\"هذا الملف تالف أو غير مدعوم\",\"selectAnotherFile\":\"يرجى اختيار ملف آخر\",\"noFocus\":\"لا يوجد تركيز للكاميرا\",\"showOnlyOneFace\":\"تأكد من وجود وجه واحد فقط على الشاشة\",\"incorrectCameraId\":\"تعذّر العثور على الكاميرا ذات المعرّف المحدد\",\"checkCameraId\":\"تحقق مما إذا كان معرّف الكاميرا المحدد صحيحًا\"}'),nl:JSON.parse('{\"placeDocumentIntoFrame\":\"Pas het document in het kader\",\"holdDocumentStraight\":\"Houd het document recht\",\"glaresOnDocument\":\"Vermijd glans op het document\",\"preparingCamera\":\"De camera aan het voorbereiden...\",\"fitYourFace\":\"Pas uw gezicht in de ovaal\",\"holdSteady\":\"Blijf stil\",\"processing\":\"Bezig met verwerken...\",\"lookStraight\":\"Kijk recht vooruit\",\"moveCloser\":\"Kom dichter\",\"moveAway\":\"Ga verder weg\",\"timeout\":\"Time-out\",\"startLivenessVerification\":\"Start verificatie liveness\",\"positionFaceCenterMoveCloser\":\"Plaats uw gezicht in het midden van het ovaal en kom dichterbij wanneer de grootte van het frame wordt gewijzigd.\",\"getStarted\":\"Ga aan de slag\",\"allowAccessCamera\":\"Sta toegang tot de camera toe\",\"somethingWentWrong\":\"Er ging iets fout\",\"preparingService\":\"Voorbereiding van de dienst...\",\"verified\":\"Gecontroleerd!\",\"successfullyLivenessCheck\":\"U bent geslaagd voor de liveness-check\",\"success\":\"Succes!\",\"cameraUnavailable\":\"Camera onbeschikbaar!\",\"allowAccessToCamera\":\"Sta toegang to de camera toe en laad de pagina opnieuw om door te gaan.\",\"error\":\"Fout!\",\"tryAgain\":\"Probeer opnieuw\",\"noCameraAvailable\":\"Er is geen camera\",\"checkCameraConnection\":\"Controleer de cameraverbinding en probeer het opnieuw.\",\"letsTryAgain\":\"Laten we dat nog eens proberen\",\"followGuidelines\":\"Volg de richtlijnen\",\"ambientLighting\":\"Het omgevingslicht is niet te fel of te donker en er zijn geen schaduwen of schitteringen op uw gezicht\",\"noMaskSunglassesHeaddress\":\"Neutrale gelaatsuitdrukking (niet glimlachen, ogen open en mond dicht), geen masker, zonnebril of hoofddeksel\",\"takeSelfie\":\"Neem een selfie.\",\"positionFaceCenter\":\"Plaats uw gezicht in het midden van het ovaal en houd het stil. Wij doen de rest.\",\"photoCapturedSuccessfully\":\"De foto is succesvol gemaakt.\",\"scanIDInBrowser\":\"Scan een ID in uw browser\",\"useYourDeviceCamera\":\"Gebruik de camera van uw toestel om een document te scannen of selecteer een foto van het document van de galerij\",\"fromCamera\":\"Van camera\",\"fromGallery\":\"Van galerij\",\"cameraConnection\":\"Zorg ervoor dat de camera correct is aangesloten.\",\"documentProcessing\":\"Documentenverwerking...\",\"positionDocumentCenter\":\"Plaats het document in het midden\",\"flipDocument\":\"Draai het document om\",\"processingFinished\":\"Verwerking klaar.\",\"uploadPhoto\":\"Upload een foto\",\"useCameraOrGallery\":\"Gebruik de camera van uw toestel of selecteer een foto uit de galerij\",\"detectingDocument\":\"Bezig met het zoeken naar een document...\",\"versionNotSupported\":\"Uw browserversie wordt niet ondersteund\",\"updateBrowser\":\"Update uw browserversie\",\"onlyPortraitOrientation\":\"Alleen portretstand\",\"turnDeviceIntoPortrait\":\"Zet uw toestel in portretstand\",\"largeFile\":\"Dit bestand is te groot om geüpload te worden\",\"selectSmallerFile\":\"Kies een kleiner bestand\",\"licenseError\":\"Er is een licentiefout opgetreden\",\"licenseExpired\":\"De licentie kan niet gevonden worden of is verlopen\",\"fileCorrupt\":\"Dit bestand is corrupt of wordt niet ondersteund\",\"selectAnotherFile\":\"Kies een ander bestand\",\"noFocus\":\"Geen camera-focus\",\"showOnlyOneFace\":\"Zorg ervoor dat er maar één gezicht op het scherm staat\",\"incorrectCameraId\":\"Geen camera met de opgegeven ID gevonden\",\"checkCameraId\":\"Controleren of de opgegeven camera-ID juist is\"}'),id:JSON.parse('{\"placeDocumentIntoFrame\":\"Sesuaikan dokumen dengan bingkainya\",\"holdDocumentStraight\":\"Tahan dokumen tatap lurus\",\"glaresOnDocument\":\"Hindari pantulan cahaya pada dokumen\",\"preparingCamera\":\"Menyiapkan kamera...\",\"fitYourFace\":\"Sesuaikan wajah Anda dalam oval\",\"holdSteady\":\"Diam tidak bergerak\",\"processing\":\"Memproses...\",\"lookStraight\":\"Lihat ke depan\",\"moveCloser\":\"Geser mendekat\",\"moveAway\":\"Geser menjauh\",\"timeout\":\"Batas waktu\",\"startLivenessVerification\":\"Mulai verifikasi kesiapan langsung\",\"positionFaceCenterMoveCloser\":\"Posisikan wajah Anda di tengah oval dan geser lebih dekat saat ukuran bingkai dubah.\",\"getStarted\":\"Memulai\",\"allowAccessCamera\":\"Izinkan akses ke kamera\",\"somethingWentWrong\":\"Terjadi kesalahan\",\"preparingService\":\"Menyiapkan layanan\",\"verified\":\"Terverifikasi!\",\"successfullyLivenessCheck\":\"Anda telah berhasil menyelesaikan pemeriksaan kesiapan langsung.\",\"success\":\"Berhasil!\",\"cameraUnavailable\":\"Kamera tidak tersedia!\",\"allowAccessToCamera\":\"Izinkan akses ke kamera dan muat ulang halaman ini untuk melanjutkan.\",\"error\":\"Kesalahan!\",\"tryAgain\":\"Coba lagi\",\"noCameraAvailable\":\"Tidak ada kamera\",\"checkCameraConnection\":\"Periksa koneksi kamera dan coba lagi\",\"letsTryAgain\":\"Mari kita coba lagi\",\"followGuidelines\":\"Ikuti panduan ini\",\"ambientLighting\":\"Cahaya sekitar tidak terlalu terang dan terlalu gelap dan tidak ada bayangan atau pantulan cahaya pada wajah Anda\",\"noMaskSunglassesHeaddress\":\"Ekspresi wajah netral (tidak tersenyum, mata terbuka, dan mulut tertutup), tidak menggunakan masker, kacamata, dan penutup kepala\",\"takeSelfie\":\"Ambil swafoto\",\"positionFaceCenter\":\"Posisikan wajah Anda di tengah oval dan tahan. Selanjutnya adalah bagian kami.\",\"photoCapturedSuccessfully\":\"Foto berhasil ditangkap.\",\"scanIDInBrowser\":\"Pindai ID di peramban Anda\",\"useYourDeviceCamera\":\"Gunakan kamera Anda untuk memindai dokumen atau memilih foto dokumen dari galeri\",\"fromCamera\":\"Dari kamera\",\"fromGallery\":\"Dari galeri\",\"cameraConnection\":\"Pastikan kamera terhubung dengan benra.\",\"documentProcessing\":\"Pemrosesan dokumen...\",\"positionDocumentCenter\":\"Posisikan dokumen di tengah\",\"flipDocument\":\"Putar balik dokumen\",\"processingFinished\":\"Pemrosesan selesai.\",\"uploadPhoto\":\"Unggah foto\",\"useCameraOrGallery\":\"Gunakan kamera Anda atau pilih foto dari galeri\",\"detectingDocument\":\"Mendeteksi dokumen...\",\"versionNotSupported\":\"Versi browser Anda tidak didukung\",\"updateBrowser\":\"Perbarui versi browser Anda\",\"onlyPortraitOrientation\":\"Hanya orientasi potret\",\"turnDeviceIntoPortrait\":\"Silakan putar perangkat Anda ke mode potret\",\"largeFile\":\"File ini terlalu besar untuk diunggah\",\"selectSmallerFile\":\"Silakan pilih file yang lebih kecil\",\"licenseError\":\"Terjadi kesalahan lisensi\",\"licenseExpired\":\"Lisensi tidak dapat ditemukan atau telah habis masa berlakunya\",\"fileCorrupt\":\"File ini rusak atau tidak didukung\",\"selectAnotherFile\":\"Silakan pilih file yang lain\",\"noFocus\":\"Tidak ada fokus kamera\",\"showOnlyOneFace\":\"Pastikan hanya ada satu wajah di layar\",\"incorrectCameraId\":\"Tidak ditemukan kamera dengan ID yang disebutkan\",\"checkCameraId\":\"Periksa apakah ID kamera yang disebutkan benar\"}'),vi:JSON.parse('{\"placeDocumentIntoFrame\":\"Chỉnh giấy tờ nằm gọn trong khung\",\"holdDocumentStraight\":\"Giữ cho giấy tờ được thẳng\",\"glaresOnDocument\":\"Tránh cho giấy tờ bị lóe sáng\",\"preparingCamera\":\"Đang chuẩn bị camera...\",\"fitYourFace\":\"Đưa khuôn mặt bạn vào hình oval\",\"holdSteady\":\"Giữ yên\",\"processing\":\"Đang xử lý...\",\"lookStraight\":\"Nhìn thẳng\",\"moveCloser\":\"Di chuyển tới gần hơn\",\"moveAway\":\"Di chuyển ra xa hơn\",\"timeout\":\"Thời gian chờ\",\"startLivenessVerification\":\"Bắt đầu xác minh người thật\",\"positionFaceCenterMoveCloser\":\"Đưa khuôn mặt bạn vào giữa hình oval và di chuyển gần hơn khi kích thước khung thay đổi.\",\"getStarted\":\"Bắt đầu\",\"allowAccessCamera\":\"Cho phép truy cập camera\",\"somethingWentWrong\":\"Có lỗi xảy ra\",\"preparingService\":\"Đang chuẩn bị dịch vụ...\",\"verified\":\"Đã xác minh!\",\"successfullyLivenessCheck\":\"Bạn đã vượt qua thành công quá trình kiểm tra người thật.\",\"success\":\"Thành công!\",\"cameraUnavailable\":\"Camera không có sẵn!\",\"allowAccessToCamera\":\"Cho phép truy cập camera và tải lại trang này để tiếp tục.\",\"error\":\"Có lỗi!\",\"tryAgain\":\"Thử lại\",\"noCameraAvailable\":\"Không có camera\",\"checkCameraConnection\":\"Kiểm tra kết nối camera và thử lại.\",\"letsTryAgain\":\"Hãy thử lại\",\"followGuidelines\":\"Vui lòng làm theo hướng dẫn\",\"ambientLighting\":\"Ánh sáng nền không quá sáng hay quá tối, khuôn mặt không có bóng hay bị lóe sáng\",\"noMaskSunglassesHeaddress\":\"Nét mặt trung tính (không cười, mắt mở, miệng khép), không đeo khẩu trang, kính râm hay mũ\",\"takeSelfie\":\"Chụp ảnh selfie\",\"positionFaceCenter\":\"Đưa khuôn mặt bạn vào giữa hình oval và giữ nguyên. Chúng tôi sẽ thực hiện các bước còn lại.\",\"photoCapturedSuccessfully\":\"Ảnh được chụp thành công.\",\"scanIDInBrowser\":\"Quét giấy tờ tùy thân trong trình duyệt của bạn\",\"useYourDeviceCamera\":\"Sử dụng camera trong thiết bị để quét giấy tờ hoặc chọn ảnh chụp giấy tờ từ thư viện ảnh.\",\"fromCamera\":\"Từ camera\",\"fromGallery\":\"Từ thư viện ảnh\",\"cameraConnection\":\"Hãy đảm bảo camera được kết nối đúng cách.\",\"documentProcessing\":\"Đang xử lý giấy tờ...\",\"positionDocumentCenter\":\"Đưa giấy tờ vào chính giữa\",\"flipDocument\":\"Lật giấy tờ\",\"processingFinished\":\"Đã xử lý xong.\",\"uploadPhoto\":\"Tải ảnh lên\",\"useCameraOrGallery\":\"Sử dụng camera trong thiết bị hoặc chọn ảnh từ thư viện ảnh\",\"detectingDocument\":\"Đang dò tìm một giấy tờ...\",\"versionNotSupported\":\"Phiên bản trình duyệt của bạn không được hỗ trợ\",\"updateBrowser\":\"Cập nhật phiên bản trình duyệt của bạn\",\"onlyPortraitOrientation\":\"Chỉ theo hướng dọc\",\"turnDeviceIntoPortrait\":\"Vui lòng bật chế độ chân dung trên thiết bị của bạn\",\"largeFile\":\"Tệp này quá lớn để tải lên\",\"selectSmallerFile\":\"Vui lòng chọn một tệp nhỏ hơn\",\"licenseError\":\"Đã xảy ra lỗi giấy phép\",\"licenseExpired\":\"Không tìm thấy giấy phép hoặc giấy phép đã hết hạn\",\"fileCorrupt\":\"Tệp này bị hỏng hoặc không được hỗ trợ\",\"selectAnotherFile\":\"Vui lòng chọn tệp khác\",\"noFocus\":\"Không có tiêu điểm camera\",\"showOnlyOneFace\":\"Đảm bảo chỉ có một khuôn mặt trên màn hình\",\"incorrectCameraId\":\"Không tìm thấy camera nào có ID đã nêu\",\"checkCameraId\":\"Kiểm tra xem ID camera đã nêu có đúng không\"}'),ko:JSON.parse('{\"placeDocumentIntoFrame\":\"문서를 프레임에 맞춤\",\"holdDocumentStraight\":\"문서를 똑바로 놓으십시오\",\"glaresOnDocument\":\"문서에서 눈부심을 피하십시오\",\"preparingCamera\":\"카메라 준비 중...\",\"fitYourFace\":\"얼굴을 타원형에 맞추기\",\"holdSteady\":\"움직이지 않기\",\"processing\":\"처리 중...\",\"lookStraight\":\"앞을 똑바로 보기\",\"moveCloser\":\"더 가까이 이동\",\"moveAway\":\"멀리 이동\",\"timeout\":\"시간 제한\",\"startLivenessVerification\":\"활동성 확인 시작\",\"positionFaceCenterMoveCloser\":\"얼굴을 타원형의 중앙에 위치시키고 프레임의 크기가 바뀔 때 더 가까이 움직입니다.\",\"getStarted\":\"시작하기\",\"allowAccessCamera\":\"카메라에 액세스 허용\",\"somethingWentWrong\":\"오류가 발생했습니다\",\"preparingService\":\"서비스 준비 중...\",\"verified\":\"확인됨!\",\"successfullyLivenessCheck\":\"활동성 검사가 성공적으로 통과되었습니다.\",\"success\":\"성공!\",\"cameraUnavailable\":\"카메라를 사용할 수 없습니다!\",\"allowAccessToCamera\":\"카메라에 대한 액세스를 허용하고 이 페이지를 재로드하여 계속하십시오.\",\"error\":\"오류!\",\"tryAgain\":\"다시 시도\",\"noCameraAvailable\":\"카메라가 없습니다\",\"checkCameraConnection\":\"카메라 연결을 확인하고 다시 시도하십시오.\",\"letsTryAgain\":\"다시 시도하세요\",\"followGuidelines\":\"가이드라인을 따르세요\",\"ambientLighting\":\"주변 조명이 너무 밝지도 너무 어둡지 않아서 얼굴에 그림자나 눈부심이 없습니다\",\"noMaskSunglassesHeaddress\":\"무표정(미소 없음, 눈 떠 있음 및 입을 다뭄), 마스크, 선글라스 또는 모자 없음\",\"takeSelfie\":\"셀카 찍기\",\"positionFaceCenter\":\"얼굴을 타원형의 중앙에 위치시키고 그 상태를 유지합니다. 나머지는 우리가 할게요.\",\"photoCapturedSuccessfully\":\"사진이 성공적으로 캡처되었습니다.\",\"scanIDInBrowser\":\"브라워저에서 ID를 스캔하세요\",\"useYourDeviceCamera\":\"장치 카메라를 사용하여 문서를 스캔하거나 갤러리에서 문서의 사진을 선택하십시오\",\"fromCamera\":\"카메라에서\",\"fromGallery\":\"갤러리에서\",\"cameraConnection\":\"카메라가 올바르게 연결되었는지 확인하십시오.\",\"documentProcessing\":\"문서 처리 중...\",\"positionDocumentCenter\":\"문서를 가운데에 위치시키십시오\",\"flipDocument\":\"문서를 뒤집으십시오\",\"processingFinished\":\"처리가 완료되었습니다.\",\"uploadPhoto\":\"사진 업로드\",\"useCameraOrGallery\":\"장치 카메라를 사용하거나 갤러리에서 사진을 선택하세요\",\"detectingDocument\":\"문서 감지 중...\",\"versionNotSupported\":\"사용 중인 브라우저는 지원되지 않습니다\",\"updateBrowser\":\"브라우저 버전을 업데이트하십시오\",\"onlyPortraitOrientation\":\"세로 방향 전용\",\"turnDeviceIntoPortrait\":\"장치를 세로 모드로 전환하십시오\",\"largeFile\":\"이 파일은 대용량이어서 업로드할 수 없습니다\",\"selectSmallerFile\":\"용량이 작은 파일을 선택하십시오\",\"licenseError\":\"라이선스 오류가 발생했습니다\",\"licenseExpired\":\"라이선스를 찾을 수 없거나 만료되었습니다\",\"fileCorrupt\":\"이 파일은 손상되었거나 지원되지 않습니다\",\"selectAnotherFile\":\"다른 파일을 선택하십시오\",\"noFocus\":\"카메라 초점\",\"showOnlyOneFace\":\"화면에는 얼굴이 하나만 있어야 합니다\",\"incorrectCameraId\":\"지정된 ID가 있는 카메라를 찾을 수 없음\",\"checkCameraId\":\"지정된 카메라 ID가 정확한지 확인하십시오\"}'),ms:JSON.parse('{\"placeDocumentIntoFrame\":\"Muatkan dokumen dalam bingkai\",\"holdDocumentStraight\":\"Pengang dokumen secara tegak\",\"glaresOnDocument\":\"Elakan silau pada dokumen\",\"preparingCamera\":\"Menyediakan kamera...\",\"fitYourFace\":\"Muatkan muka anda dalam bulatan\",\"holdSteady\":\"Pegang dengan stabil\",\"processing\":\"Sedang diproses...\",\"lookStraight\":\"Pandang tegak\",\"moveCloser\":\"Dekatkan\",\"moveAway\":\"Jauhkan\",\"timeout\":\"Ralat masa\",\"startLivenessVerification\":\"Mulakan pengesahan daya hidup\",\"positionFaceCenterMoveCloser\":\"Letak muka anda di tengah bentuk bujur dan bergerak lebih dekat apabila ukuran bingkai diubah.\",\"getStarted\":\"Mulakan\",\"allowAccessCamera\":\"Benarkan akses ke kamera\",\"somethingWentWrong\":\"Ada masalah\",\"preparingService\":\"Menyediakan perkhidmatan...\",\"verified\":\"Disahkan!\",\"successfullyLivenessCheck\":\"Anda telah berjaya melepasi pemeriksaan daya hidup.\",\"success\":\"Berjaya!\",\"cameraUnavailable\":\"Kamera tidak tersedia!\",\"allowAccessToCamera\":\"Benarkan akses ke kamera dan muat semula halaman ini untuk bermula.\",\"error\":\"Ralat!\",\"tryAgain\":\"Sila cuba lagi\",\"noCameraAvailable\":\"Tiada kamera\",\"checkCameraConnection\":\"Semak sambungan kamera dan cuba lagi.\",\"letsTryAgain\":\"Mari kita cuba lagi\",\"followGuidelines\":\"Sila ikut garis panduan\",\"ambientLighting\":\"Pencahayaan persekitaran tidak terlalu terang atau terlalu gelap dan tidak ada bayangan atau silau pada muka\",\"noMaskSunglassesHeaddress\":\"Ekspresi wajah neutral (tidak tersenyum, mata terbuka dan mulut ditutup), tanpa topeng, cermin mata hitam atau hiasan kepala\",\"takeSelfie\":\"Ambil selfie\",\"positionFaceCenter\":\"Letakkan muka anda di tengah bentuk bujur dan tahan dengan stabil. Kami akan uruskan selebihnya.\",\"photoCapturedSuccessfully\":\"Gambar diambil dengan berjaya.\",\"scanIDInBrowser\":\"Imbas ID di pelayar anda\",\"useYourDeviceCamera\":\"Gunakan kamera peranti anda untuk mengimbas dokumen atau pilih sekeping gambar dari galeri\",\"fromCamera\":\"Dari kamera\",\"fromGallery\":\"Dari galeri\",\"cameraConnection\":\"Pastikan kamera disambung dengan betul.\",\"documentProcessing\":\"Memproses dokumen...\",\"positionDocumentCenter\":\"Letakkan dokumen di tengah\",\"flipDocument\":\"Terbalikkan dokumen\",\"processingFinished\":\"Pemprosesan selesai.\",\"uploadPhoto\":\"Muat naik gambar\",\"useCameraOrGallery\":\"Gunakan kamera peranti anda atau pilih sekeping gambar dari galeri\",\"detectingDocument\":\"Mengesan dokumen...\",\"versionNotSupported\":\"Versi pelayar web anda tidak disokong\",\"updateBrowser\":\"Sila kemas kini versi pelayar web anda\",\"onlyPortraitOrientation\":\"Orientasi potret sahaja\",\"turnDeviceIntoPortrait\":\"Sila tetapkan peranti anda kepada mod potret\",\"largeFile\":\"Fail ini terlalu besar untuk dimuat naik\",\"selectSmallerFile\":\"Sila pilih fail yang lebih kecil\",\"licenseError\":\"Lalat lesen belaku\",\"licenseExpired\":\"Lesen tidak dapat dicari atau telah tamat tempoh\",\"fileCorrupt\":\"Fail ini rosak atau tidak disokong\",\"selectAnotherFile\":\"Sila pilih fail yang lain\",\"noFocus\":\"Tiada fokus kamera\",\"showOnlyOneFace\":\"Sila pastikan hanya ada satu muka pada skrin\",\"incorrectCameraId\":\"Tiada kamera dengan ID yang ditentukan ditemui\",\"checkCameraId\":\"Sila semak sama ada ID kamera yang dinyatakan adalah betul\"}'),ro:JSON.parse('{\"placeDocumentIntoFrame\":\"Încadrați documentul în cadru\",\"holdDocumentStraight\":\"Țineți documentul drept\",\"glaresOnDocument\":\"Evitați strălucirea de pe document\",\"preparingCamera\":\"Se pregătește camera...\",\"fitYourFace\":\"Încadrați fața dvs. în oval\",\"holdSteady\":\"Stați nemișcat\",\"processing\":\"Se procesează...\",\"lookStraight\":\"Priviți înainte\",\"moveCloser\":\"Apropiați-vă\",\"moveAway\":\"Îndepărtați-vă\",\"timeout\":\"Pauză\",\"startLivenessVerification\":\"Pornirea verificării Liveness\",\"positionFaceCenterMoveCloser\":\"Poziționați-vă fața în centrul ovalului și apropiați-vă atunci când dimensiunea cadrului se schimbă.\",\"getStarted\":\"Începeți\",\"allowAccessCamera\":\"Permiteți accesul la cameră\",\"somethingWentWrong\":\"Ceva n-a mers bine\",\"preparingService\":\"Pregătirea serviciului...\",\"verified\":\"Verificat!\",\"successfullyLivenessCheck\":\"Ați finalizat cu succes verificarea Liveness.\",\"success\":\"Succes!\",\"cameraUnavailable\":\"Camera foto indisponibilă!\",\"allowAccessToCamera\":\"Permiteți accesul la cameră și reîncărcați această pagină pentru a continua.\",\"error\":\"Eroare!\",\"tryAgain\":\"Încercați încă o dată\",\"noCameraAvailable\":\"Nu există cameră\",\"checkCameraConnection\":\"Verificați conexiunea la cameră și încercați din nou.\",\"letsTryAgain\":\"Să mai încercăm o dată\",\"followGuidelines\":\"Vă rugăm urmați recomandările\",\"ambientLighting\":\"Iluminarea ambientală să nu fie nici prea puternică, nici prea întunecată și să nu existe umbre sau străluciri pe fața dvs.\",\"noMaskSunglassesHeaddress\":\"Expresie facială neutră (fără zâmbet, ochii deschiși și gura închisă), fără mască sau ochelari de soare și fără nimic pe cap\",\"takeSelfie\":\"Faceți un selfie\",\"positionFaceCenter\":\"Poziționați-vă central fața în oval și rămâneți nemișcat(ă). Facem noi restul.\",\"photoCapturedSuccessfully\":\"Fotografia a fost făcută cu succes.\",\"scanIDInBrowser\":\"Scanați un document de identificare în browser\",\"useYourDeviceCamera\":\"Folosiți camera dispozitivului dvs. pentru a scana un document sau selectați o fotografie a documentului din galerie\",\"fromCamera\":\"De la camera foto\",\"fromGallery\":\"Din galerie\",\"cameraConnection\":\"Asigurați-vă că este conectată corect camera foto.\",\"documentProcessing\":\"Se procesează documentul...\",\"positionDocumentCenter\":\"Poziționați documentul în centru\",\"flipDocument\":\"Întoarceți documentul\",\"processingFinished\":\"Procesare încheiată.\",\"uploadPhoto\":\"Încărcați o fotografie\",\"useCameraOrGallery\":\"Folosiți camera foto a dispozitivului sau selectați o imagine din galerie\",\"detectingDocument\":\"Detectarea documentului...\",\"versionNotSupported\":\"Versiunea browserului dvs. nu este acceptată\",\"updateBrowser\":\"Actualizați versiunea browserului\",\"onlyPortraitOrientation\":\"Doar orientarea tip portret\",\"turnDeviceIntoPortrait\":\"Vă rugăm rotiți dispozitivul în modul portret\",\"largeFile\":\"Fișierul este prea mare pentru a fi încărcat\",\"selectSmallerFile\":\"Vă rugăm selectați un fișier mai mic\",\"licenseError\":\"Am întâmpinat o eroare de licențiere\",\"licenseExpired\":\"Licența nu poate fi găsită sau a expirat\",\"fileCorrupt\":\"Acest fișier este corupt sau nu este acceptat\",\"selectAnotherFile\":\"Vă rugăm alegeți un alt fișier\",\"noFocus\":\"Cameră nefocalizată\",\"showOnlyOneFace\":\"Asigurați-vă că apare o singură față pe ecran\",\"incorrectCameraId\":\"Nu a fost găsită nicio cameră cu ID-ul specificat\",\"checkCameraId\":\"Verificați dacă este corect ID-ul specificat pentru cameră\"}'),el:JSON.parse('{\"placeDocumentIntoFrame\":\"Προσαρμόστε το έγγραφο, ώστε να βρίσκεται μέσα στο πλαίσιο\",\"holdDocumentStraight\":\"Κρατήστε το έγγραφο ίσιο\",\"glaresOnDocument\":\"Προσέχετε το έγγραφο να μην έχει αντανάκλαση\",\"preparingCamera\":\"Προετοιμασία της κάμερας...\",\"fitYourFace\":\"Ταιριάξτε το πρόσωπό σας στο οβάλ\",\"holdSteady\":\"Μείνετε σταθεροί\",\"processing\":\"Επεξεργασία...\",\"lookStraight\":\"Κοιτάξτε μπροστά\",\"moveCloser\":\"Πλησιάστε\",\"moveAway\":\"Απομακρυνθείτε\",\"timeout\":\"Εξωχρονισμός\",\"startLivenessVerification\":\"Ξεκινήστε τον έλεγχο ζωτικότητας\",\"positionFaceCenterMoveCloser\":\"Τοποθετήστε το πρόσωπό σας στο κέντρο του οβάλ και μετακινηθείτε πιο κοντά όταν αλλάξετε το μέγεθος του πλαισίου.\",\"getStarted\":\"Ξεκινήστε\",\"allowAccessCamera\":\"Επιτρέψτε την πρόσβαση στην κάμερα\",\"somethingWentWrong\":\"Κάτι πήγε στραβά\",\"preparingService\":\"Προετοιμασία της υπηρεσίας ...\",\"verified\":\"Επαληθεύτηκε!\",\"successfullyLivenessCheck\":\"Περάσατε επιτυχώς τον έλεγχο ζωτικότητας.\",\"success\":\"Επιτυχής!\",\"cameraUnavailable\":\"Η κάμερα δεν είναι διαθέσιμη!\",\"allowAccessToCamera\":\"Επιτρέψτε την πρόσβαση στην κάμερα και φορτώστε ξανά αυτήν τη σελίδα για να συνεχίσετε.\",\"error\":\"Σφάλμα!\",\"tryAgain\":\"Προσπαθήστε ξανά\",\"noCameraAvailable\":\"Δεν υπάρχει κάμερα\",\"checkCameraConnection\":\"Ελέγξτε τη σύνδεση της κάμερας και δοκιμάστε ξανά.\",\"letsTryAgain\":\"Ας το δοκιμάσουμε ξανά\",\"followGuidelines\":\"Παρακαλώ ακολουθήστε αυτές τις οδηγίες\",\"ambientLighting\":\"Ο φωτισμός περιβάλλοντος δεν είναι πολύ φωτεινός ή πολύ σκοτεινός και δεν υπάρχουν σκιές ή λάμψη στο πρόσωπό σας\",\"noMaskSunglassesHeaddress\":\"Ουδέτερη έκφραση του προσώπου (χωρίς χαμόγελο, ανοιχτά μάτια και κλειστό στόμα), χωρίς μάσκα, γυαλιά ηλίου ή κεφαλόδεσμο\",\"takeSelfie\":\"Τραβήξτε μια σέλφι\",\"positionFaceCenter\":\"Τοποθετήστε το πρόσωπό σας στο κέντρο του οβάλ και κρατήστε το σταθερό. Θα κάνουμε τα υπόλοιπα.\",\"photoCapturedSuccessfully\":\"Η φωτογραφία τραβήχτηκε με επιτυχία.\",\"scanIDInBrowser\":\"Σαρώστε ένα αναγνωριστικό στο πρόγραμμα περιήγησής σας\",\"useYourDeviceCamera\":\"Χρησιμοποιήστε την κάμερα της συσκευής σας για να σαρώσετε ένα έγγραφο ή να επιλέξετε μια φωτογραφία του εγγράφου από τη συλλογή\",\"fromCamera\":\"Από την κάμερα\",\"fromGallery\":\"Από την συλλογή\",\"cameraConnection\":\"Βεβαιωθείτε ότι η κάμερα είναι σωστά συνδεδεμένη.\",\"documentProcessing\":\"Επεξεργασία εγγράφου...\",\"positionDocumentCenter\":\"Τοποθετήστε το έγγραφο στο κέντρο\",\"flipDocument\":\"Γυρίστε το έγγραφο\",\"processingFinished\":\"Η επεξεργασία ολοκληρώθηκε.\",\"uploadPhoto\":\"Ανέβασε μια φωτογραφία\",\"useCameraOrGallery\":\"Χρησιμοποιήστε την κάμερα της συσκευής σας ή επιλέξτε μια φωτογραφία από τη συλλογή\",\"detectingDocument\":\"Εντοπισμός εγγράφου...\",\"versionNotSupported\":\"Η έκδοση του προγράμματος περιήγησής σας δεν υποστηρίζεται\",\"updateBrowser\":\"Ανανεώστε την έκδοση του προγράμματος περιήγησής σας\",\"onlyPortraitOrientation\":\"Μόνο κατακόρυφος προσανατολισμός\",\"turnDeviceIntoPortrait\":\"Παρακαλούμε όπως στρέψετε τη συσκευή σας κατακόρυφα για τη λειτουργία πορτρέτου\",\"largeFile\":\"Αυτό το αρχείο δεν δύναται να μεταφορτωθεί λόγω υπερβολικού μεγέθους\",\"selectSmallerFile\":\"Παρακαλούμε όπως επιλέξετε ένα αρχείο μικρότερου μεγέθους\",\"licenseError\":\"Παρουσιάστηκε σφάλμα άδειας χρήσης\",\"licenseExpired\":\"Η άδεια χρήσης δεν μπορεί να βρεθεί ή έχει λήξει\",\"fileCorrupt\":\"Αυτό το αρχείο είναι κατεστραμμένο ή δεν υποστηρίζεται\",\"selectAnotherFile\":\"Παρακαλούμε όπως επιλέξετε ένα άλλο αρχείο\",\"noFocus\":\"Δεν υπάρχει εστίαση κάμερας\",\"showOnlyOneFace\":\"Βεβαιωθείτε ότι υπάρχει μόνο ένα πρόσωπο στην οθόνη\",\"incorrectCameraId\":\"Δεν βρέθηκε κάμερα με το καθορισμένο ID\",\"checkCameraId\":\"Ελέγξτε εάν το καθορισμένο ID της κάμερας είναι ορθό\"}'),tr:JSON.parse('{\"placeDocumentIntoFrame\":\"Belgeyi çerçeve içine yerleştir\",\"holdDocumentStraight\":\"Dokümanı düz bir zemine yerleştirin\",\"glaresOnDocument\":\"Belge üzerinde parlama olmamasına özen gösterin\",\"preparingCamera\":\"Kamera hazırlanıyor...\",\"fitYourFace\":\"Yüzünüzü oval alana getirin\",\"holdSteady\":\"Sabit durun\",\"processing\":\"İşleniyor...\",\"lookStraight\":\"Tam karşıya bakın\",\"moveCloser\":\"Yakına gelin\",\"moveAway\":\"Biraz uzaklaşın\",\"timeout\":\"Zaman aşımı\",\"startLivenessVerification\":\"Canlılık doğrulamasını başlat\",\"positionFaceCenterMoveCloser\":\"Yüzünüzü oval alanın ortasına getirin ve çerçevenin boyutu değiştiğinde daha yakına gelin.\",\"getStarted\":\"Başlayın\",\"allowAccessCamera\":\"Kamera erişimine izin ver\",\"somethingWentWrong\":\"Bir hata oluştu\",\"preparingService\":\"Hizmet hazırlanıyor...\",\"verified\":\"Doğrulandı!\",\"successfullyLivenessCheck\":\"Canlılık testini başarıyla geçtiniz.\",\"success\":\"Başarılı!\",\"cameraUnavailable\":\"Kamera kullanılamıyor!\",\"allowAccessToCamera\":\"Devam etmek için kameraya erişim izni vererek bu sayfayı yeniden yükleyin.\",\"error\":\"Hata!\",\"tryAgain\":\"Tekrar deneyin\",\"noCameraAvailable\":\"Kamera yok\",\"checkCameraConnection\":\"Kamera bağlantısını kontrol ederek tekrar deneyin\",\"letsTryAgain\":\"Tekrar deneyelim\",\"followGuidelines\":\"Lütfen talimatları izleyin\",\"ambientLighting\":\"Ortam ışığı çok fazla ya da çok az olmamalı, yüzünüzde gölge ya da parlama olmamalıdır\",\"noMaskSunglassesHeaddress\":\"Nötr bir yüz ifadesi olmalı (gülümsemeyin, gözleriniz açık ve ağzınız kapalı olsun), maske, güneş gözlüğü, başınızda bir aksesuar olmamalıdır\",\"takeSelfie\":\"Selfie çekin\",\"positionFaceCenter\":\"Yüzünüzü oval alanın ortasına getirin ve sabit durun. Kalanını biz halledeceğiz.\",\"photoCapturedSuccessfully\":\"Fotoğraf başarıyla alındı.\",\"scanIDInBrowser\":\"Tarayıcınızda bir kimlik taratın\",\"useYourDeviceCamera\":\"Belge taratmak için cihazınızın kamerasını kullanın veya galeriden bir belgenin fotoğrafını seçin\",\"fromCamera\":\"Kameradan\",\"fromGallery\":\"Galeriden\",\"cameraConnection\":\"Kameranın düzgün bağlandığından emin olun.\",\"documentProcessing\":\"Belge işleniyor...\",\"positionDocumentCenter\":\"Belgeyi ortaya konumlandırın\",\"flipDocument\":\"Belgeyi ters çevirin\",\"processingFinished\":\"İşleme tamamlandı.\",\"uploadPhoto\":\"Fotoğraf yükleyin\",\"useCameraOrGallery\":\"Cihazınızın kamerasını kullanın veya galeriden bir fotoğraf seçin\",\"detectingDocument\":\"Belge algılanıyor...\",\"versionNotSupported\":\"Tarayıcı sürümünüz desteklenmiyor\",\"updateBrowser\":\"Tarayıcı sürümünüzü güncelleyin\",\"onlyPortraitOrientation\":\"Yalnızca dikey mod\",\"turnDeviceIntoPortrait\":\"Lütfen cihazınızı dikey moda alın\",\"largeFile\":\"Dosya boyutu yüklenemeyecek kadar büyük\",\"selectSmallerFile\":\"Lütfen daha küçük bir dosya seçin\",\"licenseError\":\"Bir lisans hatası oluştu\",\"licenseExpired\":\"Lisans bulunamadı veya lisansın süresi dolmuş\",\"fileCorrupt\":\"Dosya bozuk veya desteklenmiyor\",\"selectAnotherFile\":\"Lütfen başka bir dosya seçin\",\"noFocus\":\"Kamera odağı yok\",\"showOnlyOneFace\":\"Ekranda sadece tek bir yüz olduğundan emin olun\",\"incorrectCameraId\":\"Belirtilen kimliğe sahip kamera bulunamadı\",\"checkCameraId\":\"Belirtilen kamera kimliğini doğruluğunu kontrol edin\"}'),ja:JSON.parse('{\"placeDocumentIntoFrame\":\"フレームに文書をフィットさせます\",\"holdDocumentStraight\":\"文書をまっすぐに持ってください\",\"glaresOnDocument\":\"文書にテカリが発生しないようにしてください\",\"preparingCamera\":\"カメラ準備中...\",\"fitYourFace\":\"この楕円にあなたの顔を合わせてください\",\"holdSteady\":\"動かないでください\",\"processing\":\"処理しています...\",\"lookStraight\":\"視線を真っ直ぐにしてください\",\"moveCloser\":\"近寄ってください\",\"moveAway\":\"遠ざかってください\",\"timeout\":\"タイムアウト\",\"startLivenessVerification\":\"Liveness照合を開始\",\"positionFaceCenterMoveCloser\":\"あなたの顔を円の中心に配置し、フレームの大きさが変化したら近づいてください。\",\"getStarted\":\"開始\",\"allowAccessCamera\":\"カメラへのアクセスを許可\",\"somethingWentWrong\":\"何らかの問題が発生しました\",\"preparingService\":\"サービスを準備しています...\",\"verified\":\"照合完了!\",\"successfullyLivenessCheck\":\"Livenessチェックが完了しました。\",\"success\":\"成功!\",\"cameraUnavailable\":\"カメラが利用できません!\",\"allowAccessToCamera\":\"継続するにはカメラへのアクセスを許可し、ページを再読み込みしてください。\",\"error\":\"エラー!\",\"tryAgain\":\"もう一度お試しください\",\"noCameraAvailable\":\"カメラがありません\",\"checkCameraConnection\":\"カメラとの接続を確認し、もう一度お試しください。\",\"letsTryAgain\":\"もう一度試してみましょう\",\"followGuidelines\":\"ガイドラインに従ってください\",\"ambientLighting\":\"環境光が明るすぎでも暗すぎでもなく、顔に影やグレアがない\",\"noMaskSunglassesHeaddress\":\"自然な顔を表情(笑顔でなく、目を開き、口を閉じる)、マスクや、サングラス、または帽子なし\",\"takeSelfie\":\"自撮りをする\",\"positionFaceCenter\":\"顔を円の中心に配置して動かないでください。後はお任せください。\",\"photoCapturedSuccessfully\":\"写真のキャプチャーが完了しました。\",\"scanIDInBrowser\":\"ブラウザでIDをスキャンしてください\",\"useYourDeviceCamera\":\"ご利用のデバイスのカメラでスキャンするか、ギャラリーから書類の写真を選択してください\",\"fromCamera\":\"カメラから\",\"fromGallery\":\"ギャラリーから\",\"cameraConnection\":\"カメラが適切に接続されていることをご確認ください。\",\"documentProcessing\":\"文書を処理しています...\",\"positionDocumentCenter\":\"書類を中心に配置してください\",\"flipDocument\":\"書類を裏返す\",\"processingFinished\":\"処理が完了しました。\",\"uploadPhoto\":\"写真をアップロード\",\"useCameraOrGallery\":\"ご利用のデバイスのカメラを使用するか、ギャラリーから写真を選択してください\",\"detectingDocument\":\"文書を削除しています...\",\"versionNotSupported\":\"ご利用のブラウザのバージョンはサポートされていません\",\"updateBrowser\":\"ブラウザのバージョンを更新してください\",\"onlyPortraitOrientation\":\"縦方向のみ\",\"turnDeviceIntoPortrait\":\"デバイスを縦方向にしてください\",\"largeFile\":\"このファイルはアップロードするには大きすぎます\",\"selectSmallerFile\":\"より小さいファイルを選択してください\",\"licenseError\":\"ライセンスエラーが発生しました\",\"licenseExpired\":\"ライセンスがみつからないか有効期限が切れています\",\"fileCorrupt\":\"このファイルは破損しているかサポートされていません\",\"selectAnotherFile\":\"別のファイルを選択してください\",\"noFocus\":\"カメラの焦点が合っていません\",\"showOnlyOneFace\":\"画面上に顔が1つしか写っていないことをご確認ください\",\"incorrectCameraId\":\"指定されたIDを持つカメラがみつかりませんでした\",\"checkCameraId\":\"指定されたカメラIDが正しいかどうかをご確認ください\"}'),cs:JSON.parse('{\"placeDocumentIntoFrame\":\"Umístěte dokument do rámečku\",\"holdDocumentStraight\":\"Držte dokument rovně\",\"glaresOnDocument\":\"Vyvarujte se ostrému osvětlení dokumentu\",\"preparingCamera\":\"Příprava fotoaparátu...\",\"fitYourFace\":\"Napasujte svůj obličej do oválu\",\"holdSteady\":\"Nehýbejte se\",\"processing\":\"Zpracovává se...\",\"lookStraight\":\"Dívejte se zpříma\",\"moveCloser\":\"Přibližte se\",\"moveAway\":\"Oddalte se\",\"timeout\":\"Časový limit\",\"startLivenessVerification\":\"Začít verifikaci liveness\",\"positionFaceCenterMoveCloser\":\"Umístěte obličej do středu oválu. Když se velikost rámečku změní, přibližte se k němu.\",\"getStarted\":\"Začít\",\"allowAccessCamera\":\"Povolte přístup k fotoaparátu\",\"somethingWentWrong\":\"Něco se pokazilo\",\"preparingService\":\"Služba se připravuje...\",\"verified\":\"Ověřeno!\",\"successfullyLivenessCheck\":\"Úspěšně jste prošli kontrolou Liveness.\",\"success\":\"Úspěch!\",\"cameraUnavailable\":\"Fotoaparát není k dispozici!\",\"allowAccessToCamera\":\"Pro pokračování povolte přístup k fotoaparátu a znovu načtěte tuto stránku.\",\"error\":\"Chyba!\",\"tryAgain\":\"Zkusit to znovu\",\"noCameraAvailable\":\"Chybí fotoaparát\",\"checkCameraConnection\":\"Zkontrolujte připojení k fotoaparátu a zkuste to znovu.\",\"letsTryAgain\":\"Zkusme to znovu\",\"followGuidelines\":\"Postupujte podle pokynů\",\"ambientLighting\":\"Okolní osvětlení by nemělo být příliš jasné či příliš tmavé. Na obličeji by neměly být žádné stíny ani odlesky\",\"noMaskSunglassesHeaddress\":\"Mějte neutrální výraz v obličeji (bez úsměvu, mějte otevřené oči a zavřená ústa), bez roušky, slunečních brýlí či pokrývky hlavy\",\"takeSelfie\":\"Udělejte si selfie\",\"positionFaceCenter\":\"Držte telefon pevně a umístěte obličej do středu oválu My už se postaráme o zbytek.\",\"photoCapturedSuccessfully\":\"Fotografie byla úspěšně pořízena.\",\"scanIDInBrowser\":\"Skenování průkazu totožnosti v prohlížeči\",\"useYourDeviceCamera\":\"Naskenujte dokument pomocí fotoaparátu v zařízení nebo vyberte fotografii z galerie\",\"fromCamera\":\"Z fotoaparátu\",\"fromGallery\":\"Z galerie\",\"cameraConnection\":\"Zkontrolujte, zda je fotoaparát správně připojen.\",\"documentProcessing\":\"Zpracování dokumentu...\",\"positionDocumentCenter\":\"Umístěte dokumentu do středu\",\"flipDocument\":\"Obraťte dokument\",\"processingFinished\":\"Zpracování dokončeno.\",\"uploadPhoto\":\"Nahrát fotografii\",\"useCameraOrGallery\":\"Použijte fotoaparát v zařízení nebo nahrajte fotografii z galerie\",\"detectingDocument\":\"Detekce dokumentu...\",\"versionNotSupported\":\"Vaše verze prohlížeče není podporována\",\"updateBrowser\":\"Aktualizujte verzi prohlížeče\",\"onlyPortraitOrientation\":\"Pouze orientace na výšku\",\"turnDeviceIntoPortrait\":\"Otočte zařízení tak, aby bylo v režimu na výšku\",\"largeFile\":\"Tento soubor je příliš velký na to, aby mohl být nahrán\",\"selectSmallerFile\":\"Vyberte prosím menší soubor\",\"licenseError\":\"Došlo k chybě licence\",\"licenseExpired\":\"Licenci nelze nalézt nebo vypršela její platnost\",\"fileCorrupt\":\"Tento soubor je poškozený nebo není podporován\",\"selectAnotherFile\":\"Vyberte prosím jiný soubor\",\"noFocus\":\"Fotoaparát není zaostřen\",\"showOnlyOneFace\":\"Ujistěte se, že je na obrazovce pouze jeden obličej\",\"incorrectCameraId\":\"Nebyl nalezen žádný fotoaparát se zadaným ID\",\"checkCameraId\":\"Zkontrolujte, zda je zadané ID fotoaparátu správné\"}'),th:JSON.parse('{\"placeDocumentIntoFrame\":\"จัดเอกสารให้พอดีกับกรอบ\",\"holdDocumentStraight\":\"ถือเอกสารให้ตรง\",\"glaresOnDocument\":\"โปรดหลีกเลี่ยงไม่ให้แสงส่องจ้าบนเอกสาร\",\"preparingCamera\":\"กำลังเตรียมกล้องถ่ายรูป...\",\"fitYourFace\":\"วางใบหน้าของคุณให้อยู่ในกรอบรูปวงรี\",\"holdSteady\":\"จับให้นิ่ง\",\"processing\":\"กำลังประมวลผล\",\"lookStraight\":\"มองตรง\",\"moveCloser\":\"เข้ามาใกล้กว่านี้\",\"moveAway\":\"ออกไปไกลกว่านี้\",\"timeout\":\"หมดเวลา\",\"startLivenessVerification\":\"เริ่มการตรวจสอบ Liveness\",\"positionFaceCenterMoveCloser\":\"จัดวางใบหน้าของคุณให้อยู่ตรงกลางรูปวงรี และขยับเข้ามาใกล้ขึ้นเมื่อกรอบเปลี่ยนขนาด\",\"getStarted\":\"เริ่ม\",\"allowAccessCamera\":\"อนุญาตให้เข้าถึงกล้องถ่ายรูป\",\"somethingWentWrong\":\"มีบางอย่างผิดพลาด\",\"preparingService\":\"กำลังเตรียมบริการ...\",\"verified\":\"ตรวจสอบแล้ว!\",\"successfullyLivenessCheck\":\"คุณผ่านการตรวจสอบ liveness แล้ว\",\"success\":\"สำเร็จ!\",\"cameraUnavailable\":\"กล้องถ่ายรูปไม่พร้อมใช้งาน!\",\"allowAccessToCamera\":\"โปรดอนุญาตการเข้าถึงกล้องถ่ายรูป และโหลดหน้านี้ใหม่อีกครั้ง จากนั้นจึงดำเนินการต่อ\",\"error\":\"ผิดพลาด!\",\"tryAgain\":\"ลองอีกครั้ง\",\"noCameraAvailable\":\"ไม่มีกล้องถ่ายรูป\",\"checkCameraConnection\":\"ตรวจสอบการเชื่อมต่อกับกล้องถ่ายรูปแล้วลองใหม่อีกครั้ง\",\"letsTryAgain\":\"มาลองกันอีกครั้ง\",\"followGuidelines\":\"ขอให้คุณทำตามคำแนะนำ\",\"ambientLighting\":\"แสงจากสภาพแวดล้อมไม่สว่างหรือมืดเกินไป และต้องไม่มีเงา หรือแสงจ้าบนใบหน้าของคุณ\",\"noMaskSunglassesHeaddress\":\"แสดงอารมณ์บนใบหน้าตามธรรมชาติ (ไม่ยิ้ม เปิดตา และปิดปาก) ไม่ใส่หน้ากาก แว่นกันแดด หรือเครื่องประดับบนศีรษะ\",\"takeSelfie\":\"ถ่ายเซลฟี่\",\"positionFaceCenter\":\"จัดวางใบหน้าของคุณให้อยู่ตรงกลางรูปวงรี และหยุดนิ่ง เราจะจัดการส่วนที่เหลือเอง\",\"photoCapturedSuccessfully\":\"ถ่ายภาพสำเร็จแล้ว\",\"scanIDInBrowser\":\"สแกนบัตรประชาชนของคุณในเบราว์เซอร์\",\"useYourDeviceCamera\":\"ใช้อุปกรณ์กล้องถ่ายรูปในการสแกนเอกสาร หรือเลือกภาพเอกสารจากคลังภาพ\",\"fromCamera\":\"จากกล้องถ่ายรูป\",\"fromGallery\":\"จากคลังภาพ\",\"cameraConnection\":\"โปรดตรวจสอบให้แน่ใจว่ากล้องถ่ายรูปเชื่อมต่ออยู่อย่างถูกต้อง\",\"documentProcessing\":\"กำลังดำเนินการเอกสาร...\",\"positionDocumentCenter\":\"จัดวางเอกสารไว้ตรงกลาง\",\"flipDocument\":\"พลิกเอกสาร\",\"processingFinished\":\"การดำเนินการเสร็จสิ้น\",\"uploadPhoto\":\"อัปโหลดรูปภาพ\",\"useCameraOrGallery\":\"ใช้กล้องถ่ายรูปในอุปกรณ์ของคุณ หรือเลือกรูปภาพจากคลังภาพ\",\"detectingDocument\":\"กำลังตรวจจับเอกสาร...\",\"versionNotSupported\":\"ไม่รองรับเบราว์เซอร์รุ่นที่คุณใช้งาน\",\"updateBrowser\":\"โปรดอัปเดตรุ่นเบราว์เซอร์ของคุณ\",\"onlyPortraitOrientation\":\"แนวตั้งเท่านั้น\",\"turnDeviceIntoPortrait\":\"โปรดปรับอุปกรณ์ของคุณให้เป็นโหมดถ่ายภาพบุคคล\",\"largeFile\":\"ไฟล์นี้ใหญ่เกินกว่าจะอัปโหลดได้\",\"selectSmallerFile\":\"โปรดเลือกไฟล์ที่เล็กกว่า\",\"licenseError\":\"มีข้อผิดพลาดเกี่ยวกับใบอนุญาต\",\"licenseExpired\":\"ไม่พบใบอนุญาติ หรือใบอนุญาตหมดอายุ\",\"fileCorrupt\":\"ไฟล์นี้เสียหายหรือระบบไม่รองรับไฟล์นี้\",\"selectAnotherFile\":\"โปรดเลือกไฟล์อื่น\",\"noFocus\":\"ไม่มีโฟกัสกล้อง\",\"showOnlyOneFace\":\"ตรวจสอบให้แน่ใจว่ามีเพียงใบหน้าเดียวปรากฏอยู่ที่หน้าจอ\",\"incorrectCameraId\":\"ไม่พบกล้องที่มี ID ที่ระบุ\",\"checkCameraId\":\"ตรวจสอบความถูกต้องของ ID กล้องที่ระบุ\"}'),hi:JSON.parse('{\"placeDocumentIntoFrame\":\"दस्तावेज़ को फ्रेम में फिट करें\",\"holdDocumentStraight\":\"दस्तावेज़ को सीधे रखें\",\"glaresOnDocument\":\"दस्तावेज़ को चमक से बचाएं\",\"preparingCamera\":\"कैमरा तैयार करना...\",\"fitYourFace\":\"अपना चेहरा फ्रेम में फिट करें\",\"holdSteady\":\"स्थिर पकड़ें\",\"processing\":\"प्रोसेसिंग...\",\"lookStraight\":\"सामने देखें\",\"moveCloser\":\"नजदीक आएं\",\"moveAway\":\"दूर जाएँ\",\"timeout\":\"समय समाप्त\",\"startLivenessVerification\":\"जीवंतता सत्यापन शुरू करें\",\"positionFaceCenterMoveCloser\":\"अपने चेहरे को अंडाकार के केंद्र में रखें और जब फ्रेम का आकार बदल जाए तो नजदीक आ जाएं।\",\"getStarted\":\"शुरू करें\",\"allowAccessCamera\":\"कैमरा को ऐक्सेस करने की अनुमति दें\",\"somethingWentWrong\":\"कुछ त्रुटि हुई\",\"preparingService\":\"सेवा तैयार करना...\",\"verified\":\"सत्यापित!\",\"successfullyLivenessCheck\":\"आपने जीवंतता जांच को सफलतापूर्वक पास कर लिया है।\",\"success\":\"सफल!\",\"cameraUnavailable\":\"कैमरा उपलब्ध नहीं है!\",\"allowAccessToCamera\":\"कैमरा को ऐक्सेस करने की अनुमति दें और जारी रखने के लिए इस पृष्ठ को पुनः लोड करें।\",\"error\":\"त्रुटि!\",\"tryAgain\":\"पुनः प्रयास करें\",\"noCameraAvailable\":\"कोई कैमरा नहीं है\",\"checkCameraConnection\":\"कृपया कैमरा कनेक्शन की जाँच करें और पुनः प्रयास करें।\",\"letsTryAgain\":\"आएं फिर से प्रयास करते हैं\",\"followGuidelines\":\"कृपया निर्देशों का पालन करें\",\"ambientLighting\":\"परिवेश प्रकाश बहुत तेज या बहुत डार्क नहीं है और आपके चेहरे पर कोई छाया या चकाचौंध नहीं है\",\"noMaskSunglassesHeaddress\":\"सामान्य चेहरे की अभिव्यक्ति (मुस्कान नहीं, आंखें खुली और मुंह बंद), कोई मुखौटा, धूप का चश्मा या हेडवियर नहीं\",\"takeSelfie\":\"एक सेल्फ़ी लें\",\"positionFaceCenter\":\"अपना चेहरा अंडाकार के केंद्र में रखें और स्थिर रहें। बाकी हम कर लेंगे।\",\"photoCapturedSuccessfully\":\"फ़ोटो सफलतापूर्वक ले ली गई है।\",\"scanIDInBrowser\":\"अपने ब्राउज़र में कोई आईडी स्कैन करें\",\"useYourDeviceCamera\":\"किसी दस्तावेज़ को स्कैन करने या गैलरी से दस्तावेज़ की एक छवि का चयन करने के लिए अपने डिवाइस के कैमरे का उपयोग करें\",\"fromCamera\":\"कैमरा से\",\"fromGallery\":\"गैलरी से\",\"cameraConnection\":\"सुनिश्चित करें कि कैमरा सही से कनेक्टेड है।\",\"documentProcessing\":\"दस्तावेज़ प्रोसेसिंग...\",\"positionDocumentCenter\":\"दस्तावेज़ को बीच में रखें\",\"flipDocument\":\"दस्तावेज़ पलटें\",\"processingFinished\":\"प्रसंस्करण समाप्त हुआ।\",\"uploadPhoto\":\"एक फ़ोटो अपलोड करें\",\"useCameraOrGallery\":\"अपने डिवाइस के कैमरे का उपयोग करें या गैलरी से एक छवि का चयन करें\",\"detectingDocument\":\"दस्तावेज़ पहचान रहा है...\",\"versionNotSupported\":\"आपका ब्राउज़र संस्करण समर्थित नहीं है\",\"updateBrowser\":\"अपना ब्राउज़र संस्करण अपडेट करें\",\"onlyPortraitOrientation\":\"केवल पोर्ट्रेट ओरिएंटेशन\",\"turnDeviceIntoPortrait\":\"कृपया अपने डिवाइस को पोर्ट्रेट मोड में बदलें\",\"largeFile\":\"यह फ़ाइल अपलोड करने के लिए बहुत बड़ी है\",\"selectSmallerFile\":\"कृपया एक छोटी फ़ाइल चुनें\",\"licenseError\":\"एक लाइसेंस त्रुटि हुई है\",\"licenseExpired\":\"लाइसेंस नहीं मिला या समाप्त हो गया है\",\"fileCorrupt\":\"यह फ़ाइल करप्ट है या समर्थित नहीं है\",\"selectAnotherFile\":\"कृपया कोई अन्य फ़ाइल चुनें\",\"noFocus\":\"कैमरा फ़ोकस नहीं\",\"showOnlyOneFace\":\"सुनिश्चित करें कि स्क्रीन पर केवल एक ही चेहरा हो\",\"incorrectCameraId\":\"निर्दिष्ट ID वाला कोई कैमरा नहीं मिला\",\"checkCameraId\":\"जांचें कि निर्दिष्ट कैमरा ID सही है या नहीं\"}'),bn:JSON.parse('{\"placeDocumentIntoFrame\":\"ডকুমেন্টটি ফ্রেমের মাঝে রাখুন\",\"holdDocumentStraight\":\"ডকুমেন্টটি সোজাভাবে ধরে রাখুন\",\"glaresOnDocument\":\"ডকুমেন্টে আলোর ঝলকানি এড়িয়ে চলুন\",\"preparingCamera\":\"ক্যামেরা প্রস্তুত করা হচ্ছে...\",\"fitYourFace\":\"ডিম্বাকৃতির ভেতরে মুখটি রাখুন\",\"holdSteady\":\"স্থির থাকুন\",\"processing\":\"প্রক্রিয়া করা হচ্ছে...\",\"lookStraight\":\"সোজা তাকান\",\"moveCloser\":\"কাছে যান\",\"moveAway\":\"দূরে যান\",\"timeout\":\"টাইম আউট\",\"startLivenessVerification\":\"লাইভলিনেস পরীক্ষা শুরু করুন\",\"positionFaceCenterMoveCloser\":\"আপনার মুখটি ডিম্বাকৃতির কেন্দ্রে রাখুন এবং ফ্রেমের আকার পরিবর্তন হলে কাছাকাছি যান।\",\"getStarted\":\"শুরু করুন\",\"allowAccessCamera\":\"ক্যামেরা অ্যাক্সেস প্রদান করুন\",\"somethingWentWrong\":\"কিছু একটা ভুল হয়েছে\",\"preparingService\":\"পরিষেবা প্রস্তুত করা হচ্ছে...\",\"verified\":\"যাচাইকৃত!\",\"successfullyLivenessCheck\":\"আপনি সফলভাবে লাইভলিনেস পরীক্ষা পাস করেছেন।\",\"success\":\"সফল!\",\"cameraUnavailable\":\"ক্যামেরা বিদ্যমান নেই!\",\"allowAccessToCamera\":\"ক্যামেরা অ্যাক্সেস প্রদান করুন এবং চালিয়ে যেতে এই পেজটি পুনরায় লোড করুন।\",\"error\":\"ত্রুটি!\",\"tryAgain\":\"আবার চেষ্টা করুন\",\"noCameraAvailable\":\"কোনো ক্যামেরা নেই\",\"checkCameraConnection\":\"ক্যামেরার সংযোগটি পরীক্ষা করে দেখুন এবং আবার চেষ্টা করুন।\",\"letsTryAgain\":\"চলুন আবার চেষ্টা করা যাক\",\"followGuidelines\":\"অনুগ্রহপূর্বক নির্দেশনাবলী অনুসরণ করুন\",\"ambientLighting\":\"পরিবেষ্টিত আলো খুব উজ্জ্বল বা খুব অন্ধকার নয় এবং আপনার মুখে কোন ছায়া বা ঝলক নেই\",\"noMaskSunglassesHeaddress\":\"নিরপেক্ষ মুখের অভিব্যক্তি (কোন হাসি নেই, চোখ খোলা এবং মুখ বন্ধ), কোন মাস্ক, সানগ্লাস বা হেডওয়্যার নেই\",\"takeSelfie\":\"একটি সেলফি তুলুন\",\"positionFaceCenter\":\"আপনার মুখটি ডিম্বাকৃতির কেন্দ্রে রাখুন এবং স্থির থাকুন। আমরা বাকিটা সম্পন্ন করবো।\",\"photoCapturedSuccessfully\":\"সফলভাবে ছবিটি তোলা হয়েছে।\",\"scanIDInBrowser\":\"আপনার ব্রাউজারে একটি আইডি স্ক্যান করুন\",\"useYourDeviceCamera\":\"একটি ডকুমেন্ট স্ক্যান করতে বা গ্যালারি থেকে ডকুমেন্টের একটি ছবি নির্বাচন করতে আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন\",\"fromCamera\":\"ক্যামেরা থেকে\",\"fromGallery\":\"গ্যালারি থেকে\",\"cameraConnection\":\"ক্যামেরাটি সঠিকভাবে সংযুক্ত আছে তা নিশ্চিত করুন।\",\"documentProcessing\":\"ডকুমেন্ট প্রক্রিয়া করা হচ্ছে...\",\"positionDocumentCenter\":\"ডকুমেন্টটি কেন্দ্রে রাখুন\",\"flipDocument\":\"ডকুমেন্টটি উল্টান\",\"processingFinished\":\"প্রক্রিয়া সম্পন্ন হয়েছে।\",\"uploadPhoto\":\"একটি ছবি আপলোড করুন\",\"useCameraOrGallery\":\"আপনার ডিভাইসের ক্যামেরা ব্যবহার করুন অথবা গ্যালারী থেকে একটি ছবি নির্বাচন করুন\",\"detectingDocument\":\"একটি ডকুমেন্ট শনাক্ত করা হচ্ছে...\",\"versionNotSupported\":\"আপনার ব্রাউজারের সংস্করণটি সমর্থিত নয়\",\"updateBrowser\":\"আপনার ব্রাউজারের সংস্করণ আপডেট করুন\",\"onlyPortraitOrientation\":\"শুধুমাত্র পোর্ট্রেট অবস্থায়\",\"turnDeviceIntoPortrait\":\"অনুগ্রহ করে আপনার ডিভাইসটিকে পোর্ট্রেট মোডে রাখুন৷\",\"largeFile\":\"এই ফাইলটি আপলোড করার জন্য খুবই বড়\",\"selectSmallerFile\":\"একটি ছোট ফাইল নির্বাচন করুন\",\"licenseError\":\"লাইসেন্স সংক্রান্ত একটি ত্রুটি ঘটেছে\",\"licenseExpired\":\"লাইসেন্স পাওয়া যায়নি বা মেয়াদ শেষ হয়ে গেছে\",\"fileCorrupt\":\"এই ফাইলটি অকার্যকর বা সমর্থিত নয়\",\"selectAnotherFile\":\"অনুগ্রহ করে অন্য একটি ফাইল নির্বাচন করুন\",\"noFocus\":\"ক্যামেরার ফোকাস হয়নি\",\"showOnlyOneFace\":\"স্ক্রিনে শুধুমাত্র একটি মুখ রয়েছে তা নিশ্চিত করুন\",\"incorrectCameraId\":\"নির্দিষ্ট আইডি সহ কোনো ক্যামেরা পাওয়া যায়নি\",\"checkCameraId\":\"নির্দিষ্ট ক্যামেরা আইডি সঠিক কিনা তা পরীক্ষা করুন\"}'),he:JSON.parse('{\"placeDocumentIntoFrame\":\"התאמת המסמך בתוך המסגרת\",\"holdDocumentStraight\":\"יש ליישר את המסמך\",\"glaresOnDocument\":\"יש לוודא שאין ברק בזמן צילום המסמך\",\"preparingCamera\":\"המצלמה בהכנה...\",\"fitYourFace\":\"יש לוודא שהפנים מופיעות בתוך האליפסה\",\"holdSteady\":\"לא לזוז\",\"processing\":\"בעיבוד...\",\"lookStraight\":\"להסתכל קדימה\",\"moveCloser\":\"להתקרב\",\"moveAway\":\"להתרחק\",\"timeout\":\"זמן קצוב לתפוגה\",\"startLivenessVerification\":\"התחלת אימות של אובייקט חי\",\"positionFaceCenterMoveCloser\":\"יש לוודא שהפנים מופיעות במרכז העיגול, ולהתקרב אם גודל המסגרת משתנה.\",\"getStarted\":\"שנתחיל?\",\"allowAccessCamera\":\"עליך לאפשר גישה למצלמה\",\"somethingWentWrong\":\"משהו השתבש\",\"preparingService\":\"מכין את השירות...\",\"verified\":\"יופי, האימות הסתיים!\",\"successfullyLivenessCheck\":\"עברת את בדיקת האובייקט החי.\",\"success\":\"יופי!\",\"cameraUnavailable\":\"המצלמה לא זמינה\",\"allowAccessToCamera\":\"כדי להמשיך, עליך לאפשר גישה למצלמה ולאחר מכן לטעון מחדש את הדף.\",\"error\":\"שגיאה\",\"tryAgain\":\"כדאי לנסות שוב\",\"noCameraAvailable\":\"אין מצלמה\",\"checkCameraConnection\":\"יש לבדוק את החיבור למצלמה ולנסות שוב.\",\"letsTryAgain\":\"ננסה שוב\",\"followGuidelines\":\"יש לפעול לפי ההנחיות\",\"ambientLighting\":\"התאורה הסביבתית לא בהירה או כהה מדי ואין צלליות או אור בוהק על הפנים שלך\",\"noMaskSunglassesHeaddress\":\"הבעה טבעית של הפנים (לא לחייך, לפקוח עיניים ולסגור את הפה), אין לעטות מסכה, משקפיים או כובע\",\"takeSelfie\":\"צילום תמונת סלפי\",\"positionFaceCenter\":\"יש לוודא שהפנים מופיעות במרכז העיגול, ולא לזוז. אנחנו נדאג לכל השאר.\",\"photoCapturedSuccessfully\":\"יופי, התמונה צולמה.\",\"scanIDInBrowser\":\"סריקת תעודה מזהה בדפדפן\",\"useYourDeviceCamera\":\"צילום מסמך באמצעות מצלמת המכשיר או בחירת תמונה של המסמך מהגלריה\",\"fromCamera\":\"מהמצלמה\",\"fromGallery\":\"מהגלריה\",\"cameraConnection\":\"יש לוודא שהמצלמה מחוברת כמו שצריך.\",\"documentProcessing\":\"המסמך בעיבוד...\",\"positionDocumentCenter\":\"יש למקם את המסמך במרכז\",\"flipDocument\":\"יש להפוך את המסמך לצידו השני\",\"processingFinished\":\"העיבוד הסתיים.\",\"uploadPhoto\":\"העלאת תמונה\",\"useCameraOrGallery\":\"שימוש במצלמת המכשיר או בחירת תמונה מהגלריה\",\"detectingDocument\":\"מזהה מסמך...\",\"versionNotSupported\":\"אין תמיכה בגרסה הנוכחית של הדפדפן\",\"updateBrowser\":\"יש לעדכן את גרסת הדפדפן\",\"onlyPortraitOrientation\":\"צילום אנכי בלבד\",\"turnDeviceIntoPortrait\":\"יש לסובב את המכשיר לצילום אנכי\",\"largeFile\":\"הקובץ גדול מדי ולא ניתן להעלות אותו\",\"selectSmallerFile\":\"יש לבחור קובץ קטן יותר\",\"licenseError\":\"שגיאת רישיון\",\"licenseExpired\":\"הרישיון לא נמצא או לא בתוקף\",\"fileCorrupt\":\"הקובץ פגום או בפורמט שלא נתמך\",\"selectAnotherFile\":\"יש לבחור קובץ אחר\",\"noFocus\":\"המצלמה לא בפוקוס\",\"showOnlyOneFace\":\"יש לוודא שבמסך רואים פנים של אדם אחד בלבד\",\"incorrectCameraId\":\"לא נמצאה מצלמה עם המזהה שצוין\",\"checkCameraId\":\"יש לבדוק אם נבחר מזהה המצלמה הנכון\"}'),fi:JSON.parse('{\"placeDocumentIntoFrame\":\"Kohdista asiakirja kehykseen\",\"holdDocumentStraight\":\"Pidä asiakirjaa suorassa\",\"glaresOnDocument\":\"Vältä heijastuksia asiakirjassa\",\"preparingCamera\":\"Valmistellaan kameraa...\",\"fitYourFace\":\"Sovita kasvosi soikioon\",\"holdSteady\":\"Pidä vakaasti\",\"processing\":\"Käsitellään...\",\"lookStraight\":\"Katso suoraan eteesi\",\"moveCloser\":\"Siirry lähemmäs\",\"moveAway\":\"Siirry kauemmas\",\"timeout\":\"Aikakatkaisu\",\"startLivenessVerification\":\"Aloita elävyystarkistus\",\"positionFaceCenterMoveCloser\":\"Sijoita kasvosi soikion keskelle ja siirry lähemmäs, kun kehyksen koko muuttuu.\",\"getStarted\":\"Aloita\",\"allowAccessCamera\":\"Salli kameran käyttö\",\"somethingWentWrong\":\"Jokin epäonnistui\",\"preparingService\":\"Valmistellaan palvelua...\",\"verified\":\"Varmistettu!\",\"successfullyLivenessCheck\":\"Elävyystarkistus on onnistunut.\",\"success\":\"Onnistui!\",\"cameraUnavailable\":\"Kamera ei ole käytettävissä!\",\"allowAccessToCamera\":\"Jatka sallimalla kameran käyttö ja lataamalla tämä sivu uudelleen.\",\"error\":\"Virhe!\",\"tryAgain\":\"Yritä uudelleen!\",\"noCameraAvailable\":\"Kameraa ei ole\",\"checkCameraConnection\":\"Tarkista kameran yhteys ja yritä uudelleen.\",\"letsTryAgain\":\"Yritetään tätä uudelleen\",\"followGuidelines\":\"Noudata ohjeita\",\"ambientLighting\":\"Ympäristön valaistus ei ole liian kirkas tai tumma eikä kasvoissasi ole varjoja tai heijastuksia\",\"noMaskSunglassesHeaddress\":\"Neutraali ilme (älä hymyile, pidä silmät auki ja suu kiinni), ei maskia, silmälaseja tai päähinettä\",\"takeSelfie\":\"Ota selfie\",\"positionFaceCenter\":\"Sijoita kasvosi soikion keskelle ja pidä kameraa vakaasti. Me teemme loput.\",\"photoCapturedSuccessfully\":\"Valokuvan ottaminen onnistui.\",\"scanIDInBrowser\":\"Skannaa henkilökortti selaimeesi\",\"useYourDeviceCamera\":\"Skannaa asiakirja laitteesi kameralla tai valitse asiakirjan valokuva galleriasta.\",\"fromCamera\":\"Kamerasta\",\"fromGallery\":\"Galleriasta\",\"cameraConnection\":\"Varmista, että kamera on kytketty oikein.\",\"documentProcessing\":\"Käsitellään asiakirjaa...\",\"positionDocumentCenter\":\"Sijoita asiakirja keskelle\",\"flipDocument\":\"Käännä asiakirja\",\"processingFinished\":\"Käsittely päättynyt.\",\"uploadPhoto\":\"Lataa valokuva\",\"useCameraOrGallery\":\"Käytä laitteesi kameraa tai valitse kuva galleriasta\",\"detectingDocument\":\"Tunnistetaan asiakirjaa...\",\"versionNotSupported\":\"Selaimesi versiota ei tueta\",\"updateBrowser\":\"Päivitä selaimesi versio\",\"onlyPortraitOrientation\":\"Ainoastaan pystysuunta\",\"turnDeviceIntoPortrait\":\"Käännä laitteesi pystyasentoon\",\"largeFile\":\"Tiedosto on liian suuri ladattavaksi\",\"selectSmallerFile\":\"Valitse pienempi tiedosto\",\"licenseError\":\"Järjestelmässä on havaittu lisenssivirhe\",\"licenseExpired\":\"Lisenssiä ei löydy tai se on vanhentunut\",\"fileCorrupt\":\"Tämä tiedosto on vioittunut tai sitä ei tueta\",\"selectAnotherFile\":\"Valitse toinen tiedosto\",\"noFocus\":\"Kamera ei tarkennettu\",\"showOnlyOneFace\":\"Varmista, että ainoastaan yhdet kasvot näkyvät näytössä\",\"incorrectCameraId\":\"Kameraa, jonka tunniste on määritetty, ei löydy.\",\"checkCameraId\":\"Tarkista, että määritetty kameran tunniste on oikea\"}'),sv:JSON.parse('{\"placeDocumentIntoFrame\":\"Placera dokumentet i ramen\",\"holdDocumentStraight\":\"Håll dokumentet rakt\",\"glaresOnDocument\":\"Undvik reflexer på dokumentet\",\"preparingCamera\":\"Förbereder kameran...\",\"fitYourFace\":\"Placera huvudet i ovalen\",\"holdSteady\":\"Håll stadigt\",\"processing\":\"Bearbetar...\",\"lookStraight\":\"Titta rakt fram\",\"moveCloser\":\"Flytta närmare\",\"moveAway\":\"Flytta längre bort\",\"timeout\":\"Paus\",\"startLivenessVerification\":\"Starta liveness-verifiering\",\"positionFaceCenterMoveCloser\":\"Positionera ditt ansikte i mitten av ellipsen och rör dig närmare när ramens storlek ändras.\",\"getStarted\":\"Kom igång\",\"allowAccessCamera\":\"Ge appen åtkomstbehörighet till kameran\",\"somethingWentWrong\":\"Ett fel inträffade\",\"preparingService\":\"Förbereder tjänsten...\",\"verified\":\"Verifierad!\",\"successfullyLivenessCheck\":\"Du har genomfört liveness-kontrollen.\",\"success\":\"Utfört!\",\"cameraUnavailable\":\"Kameran är inte tillgänglig!\",\"allowAccessToCamera\":\"Ge appen åtkomstbehörighet till kameran och ladda om denna sida för att fortsätta,\",\"error\":\"Fel!\",\"tryAgain\":\"Försök igen\",\"noCameraAvailable\":\"Det finns ingen kamera\",\"checkCameraConnection\":\"Kontrollera kameraanslutningen och försök igen.\",\"letsTryAgain\":\"Vi försöker igen\",\"followGuidelines\":\"Följ riktlinjerna\",\"ambientLighting\":\"Omgivningsbelysningen får inte vara för ljus eller för mörk och det får varken finnas skuggor eller något sken i ansiktet\",\"noMaskSunglassesHeaddress\":\"Neutralt ansiktsuttryck (varken le eller blunda och stäng munnen), använd varken mask, munskydd, solglasögon eller mössor\",\"takeSelfie\":\"Ta en selfie\",\"positionFaceCenter\":\"Positionera ansiktet i mitten av ellipsen och håll stadigt. Vi sköter resten.\",\"photoCapturedSuccessfully\":\"Fotot tas.\",\"scanIDInBrowser\":\"Skanna in ett ID-kort i din webbläsare\",\"useYourDeviceCamera\":\"Använd din enhetskamera för att skanna dokument eller foton från galleriet\",\"fromCamera\":\"Från kameran\",\"fromGallery\":\"Från galleriet\",\"cameraConnection\":\"Kontrollera att kameran är korrekt ansluten.\",\"documentProcessing\":\"Dokumentet bearbetas....\",\"positionDocumentCenter\":\"Placera dokumentet i mitten\",\"flipDocument\":\"Vänd på dokumentet\",\"processingFinished\":\"Bearbetning klar.\",\"uploadPhoto\":\"Ladda upp foto\",\"useCameraOrGallery\":\"Använd kameran eller välj ett foto från galleriet\",\"detectingDocument\":\"Identifierar dokument...\",\"versionNotSupported\":\"Din webbläsarversion stöds inte\",\"updateBrowser\":\"Uppdatera din webbläsarversion\",\"onlyPortraitOrientation\":\"Endast porträttläge\",\"turnDeviceIntoPortrait\":\"Vänd din enhet så att den hamnar i porträttläge\",\"largeFile\":\"Filen är för stor för att kunna laddas upp\",\"selectSmallerFile\":\"Välj en mindre fil\",\"licenseError\":\"Ett licensfel har inträffat\",\"licenseExpired\":\"Licensen går antingen inte att hitta eller så har den utgått\",\"fileCorrupt\":\"Filen är antingen korrupt eller stöds inte\",\"selectAnotherFile\":\"Välj en annan fil\",\"noFocus\":\"Ingen kamerafokus\",\"showOnlyOneFace\":\"Säkerställ att det endast finns ett ansikte på skärmen\",\"incorrectCameraId\":\"Ingen kamera med specificerat ID hittat\",\"checkCameraId\":\"Kontrollera om det angivna kamera-ID:t är korrekt\"}'),da:JSON.parse('{\"placeDocumentIntoFrame\":\"Tilpas dokumentet til rammen\",\"holdDocumentStraight\":\"Hold dokumentet lige\",\"glaresOnDocument\":\"Undgå genskin på dokumentet\",\"preparingCamera\":\"Gør kameraet klar...\",\"fitYourFace\":\"Tilpas dit ansigt i ovalen\",\"holdSteady\":\"Hold den stille\",\"processing\":\"Behandler...\",\"lookStraight\":\"Se ligeud\",\"moveCloser\":\"Flyt tættere på\",\"moveAway\":\"Flyt længere væk\",\"timeout\":\"Timeout\",\"startLivenessVerification\":\"Start liveness-verificering\",\"positionFaceCenterMoveCloser\":\"Placer dit hoved i ovalens midte og kom tættere på, når rammestørrelsen er ændret.\",\"getStarted\":\"Kom i gang\",\"allowAccessCamera\":\"Tillad adgang til kamera\",\"somethingWentWrong\":\"Noget gik galt\",\"preparingService\":\"Forbereder tjeneste...\",\"verified\":\"Verificeret!\",\"successfullyLivenessCheck\":\"Du har bestået liveness-tjekket.\",\"success\":\"Succes!\",\"cameraUnavailable\":\"Kamera utilgængelig!\",\"allowAccessToCamera\":\"Tillad adgang til kameraet og opdater denne side for at fortsætte.\",\"error\":\"Fejl!\",\"tryAgain\":\"Prøv igen\",\"noCameraAvailable\":\"Der er intet kamera\",\"checkCameraConnection\":\"Tjek kameraforbindelsen og prøv igen.\",\"letsTryAgain\":\"Lad os forsøge igen\",\"followGuidelines\":\"Følg venligst retningslinjerne\",\"ambientLighting\":\"Den omgivende belysning er ikke for lys eller mørk, og der er ingen skygger eller genskin på dit ansigt\",\"noMaskSunglassesHeaddress\":\"Neutralt ansigtsudtryk (ingen smil, åbne øjne og mund lukket), ingen maske, solbriller eller hovedbeklædning\",\"takeSelfie\":\"Tag en selfie\",\"positionFaceCenter\":\"Placer dit hoved midt i ovalen og hold det stille. Vi gør resten.\",\"photoCapturedSuccessfully\":\"Fotoet blev vellykket\",\"scanIDInBrowser\":\"Scan en ID i din browser\",\"useYourDeviceCamera\":\"Anvend din enheds kamera til at scanne et dokument eller vælge et foto af dokumentet fra galleriet\",\"fromCamera\":\"Fra kamera\",\"fromGallery\":\"Fra galleri\",\"cameraConnection\":\"Sørg for, at kameraet er forbundet korrekt.\",\"documentProcessing\":\"Dokumentbehandling...\",\"positionDocumentCenter\":\"Placer dokumentet i midten\",\"flipDocument\":\"Vend dokumentet\",\"processingFinished\":\"Behandlingen er afsluttet.\",\"uploadPhoto\":\"Upload et foto\",\"useCameraOrGallery\":\"Anvend kameraet på din enhed eller vælg et billede fra galleriet\",\"detectingDocument\":\"Registrering af et dokument...\",\"versionNotSupported\":\"Din browserversion er ikke understøttet\",\"updateBrowser\":\"Opdater din browserversion\",\"onlyPortraitOrientation\":\"Kun portrætvisning\",\"turnDeviceIntoPortrait\":\"Slå venligst portrætvisning til på din enhed\",\"largeFile\":\"Denne fil er for stor til at blive overført\",\"selectSmallerFile\":\"Vælg venligst en mindre fil\",\"licenseError\":\"Der er opstået en fejl med licensen\",\"licenseExpired\":\"Licensen kan ikke findes eller er udløbet\",\"fileCorrupt\":\"Filen er ødelagt eller understøttes ikke\",\"selectAnotherFile\":\"Vælg venligst en anden fil\",\"noFocus\":\"Ingen kamerafokus\",\"showOnlyOneFace\":\"Sørg for, der kun er et ansigt på skærmen\",\"incorrectCameraId\":\"Intet kamera med det specificeret ID fundet\",\"checkCameraId\":\"Tjek om det specificerede kamera-ID er korrekt\"}'),hr:JSON.parse('{\"placeDocumentIntoFrame\":\"Prilagodite dokument okviru\",\"holdDocumentStraight\":\"Držite dokument ravno\",\"glaresOnDocument\":\"Izbjegavajte odsjaj na dokumentu\",\"preparingCamera\":\"Priprema kamere...\",\"fitYourFace\":\"Namjestite svoje lice u oval\",\"holdSteady\":\"Držite se mirno\",\"processing\":\"Obrada...\",\"lookStraight\":\"Gledajte ravno\",\"moveCloser\":\"Priđite bliže\",\"moveAway\":\"Odmaknite se\",\"timeout\":\"Pauza\",\"startLivenessVerification\":\"Započnite provjeru živosti\",\"positionFaceCenterMoveCloser\":\"Postavite svoje lice u središte ovala i približite se kada se veličina okvira promijeni.\",\"getStarted\":\"Započnite\",\"allowAccessCamera\":\"Dopustite pristup kameri\",\"somethingWentWrong\":\"Nešto je pošlo po zlu\",\"preparingService\":\"Priprema usluge...\",\"verified\":\"Provjereno!\",\"successfullyLivenessCheck\":\"Uspješno ste prošli provjeru živosti.\",\"success\":\"Uspjeh!\",\"cameraUnavailable\":\"Kamera nije dostupna!\",\"allowAccessToCamera\":\"Dopustite pristup kameri i ponovno učitajte ovu stranicu za nastavak.\",\"error\":\"Greška!\",\"tryAgain\":\"Pokušajte ponovno\",\"noCameraAvailable\":\"Nema kamere\",\"checkCameraConnection\":\"Provjerite vezu kamere i pokušajte ponovno.\",\"letsTryAgain\":\"Pokušajmo to ponovno\",\"followGuidelines\":\"Molimo vas da slijedite smjernice\",\"ambientLighting\":\"Ambijentalna rasvjeta nije presvijetla ili pretamna i nema sjena ili odsjaja na vašem licu\",\"noMaskSunglassesHeaddress\":\"Neutralan izraz lica (bez osmijeha, otvorenih očiju i zatvorenih usta), bez maske, sunčanih naočala ili pokrivala za glavu\",\"takeSelfie\":\"Snimite selfie\",\"positionFaceCenter\":\"Postavite lice u središte ovala i držite ga mirno. Mi ćemo učiniti ostalo.\",\"photoCapturedSuccessfully\":\"Fotografija je uspješno snimljena.\",\"scanIDInBrowser\":\"Skenirajte iskaznicu u svom pregledniku\",\"useYourDeviceCamera\":\"Upotrijebite kameru svog uređaja za skeniranje dokumenta ili odaberite fotografiju dokumenta iz galerije\",\"fromCamera\":\"Sa kamere\",\"fromGallery\":\"Iz galerije\",\"cameraConnection\":\"Provjerite je li kamera ispravno spojena.\",\"documentProcessing\":\"Obrada dokumenta...\",\"positionDocumentCenter\":\"Postavite dokument u sredinu\",\"flipDocument\":\"Okrenite dokument\",\"processingFinished\":\"Obrada je završena.\",\"uploadPhoto\":\"Uploadujte sliku\",\"useCameraOrGallery\":\"Upotrijebite kameru svog uređaja ili odaberite fotografiju iz galerije\",\"detectingDocument\":\"Prepoznavanje dokumenta...\",\"versionNotSupported\":\"Vaša verzija preglednika nije podržana\",\"updateBrowser\":\"Ažurirajte verziju preglednika\",\"onlyPortraitOrientation\":\"Samo portretna orijentacija\",\"turnDeviceIntoPortrait\":\"Okrenite svoj uređaj u portretni način rada\",\"largeFile\":\"Ova je datoteka prevelika za prijenos\",\"selectSmallerFile\":\"Odaberite manju datoteku\",\"licenseError\":\"Došlo je do pogreške u licenci\",\"licenseExpired\":\"Licenca se ne može pronaći ili je istekla\",\"fileCorrupt\":\"Ova datoteka je oštećena ili nije podržana\",\"selectAnotherFile\":\"Odaberite drugu datoteku\",\"noFocus\":\"Nema fokusa kamere\",\"showOnlyOneFace\":\"Provjerite je li na ekranu samo jedno lice\",\"incorrectCameraId\":\"Nije pronađena kamera s navedenim ID-om\",\"checkCameraId\":\"Provjerite točnost navedenog ID-a kamere\"}'),no:JSON.parse('{\"placeDocumentIntoFrame\":\"Plasser dokumentet i rammen\",\"holdDocumentStraight\":\"Hold dokumentet rett\",\"glaresOnDocument\":\"Unngå gjenskinn på dokumentet\",\"preparingCamera\":\"Forbereder kameraet...\",\"fitYourFace\":\"Sørg for at ansiktet ditt passer inn i løkken\",\"holdSteady\":\"Hold stødig\",\"processing\":\"Behandler...\",\"lookStraight\":\"Se rett frem\",\"moveCloser\":\"Kom nærmere\",\"moveAway\":\"Beveg deg bort\",\"timeout\":\"Pause\",\"startLivenessVerification\":\"Start verifisering av livlighet\",\"positionFaceCenterMoveCloser\":\"Plasser ansiktet ditt i midten av løkken og beveg deg nærmere når størrelsen på rammen endres.\",\"getStarted\":\"Kom i gang\",\"allowAccessCamera\":\"Gi tilgang til kameraet\",\"somethingWentWrong\":\"Noe gikk galt\",\"preparingService\":\"Forbereder tjenesten...\",\"verified\":\"Verifisert!\",\"successfullyLivenessCheck\":\"Du har bestått livlighetskontrollen.\",\"success\":\"Suksess!\",\"cameraUnavailable\":\"Kameraet er ikke tilgjengelig!\",\"allowAccessToCamera\":\"Gi tilgang til kameraet og last inn denne siden på nytt for å fortsette.\",\"error\":\"Feil!\",\"tryAgain\":\"Prøv igjen\",\"noCameraAvailable\":\"Ingen kamera tilgjengelig\",\"checkCameraConnection\":\"Sjekk kameratilkoblingen og prøv igjen.\",\"letsTryAgain\":\"La oss prøve igjen\",\"followGuidelines\":\"Vennligst følg retningslinjene\",\"ambientLighting\":\"Omgivende lys ikke er for sterkt eller for mørkt, og at det ikke forekommer skygge eller gjenskinn på ansiktet ditt\",\"noMaskSunglassesHeaddress\":\"Nøytralt ansiktsuttrykk (ingen smil, åpne øyne og munn lukket), ingen maske, solbriller eller hodeplagg\",\"takeSelfie\":\"Ta en selfie\",\"positionFaceCenter\":\"Plasser ansiktet ditt i midten av løkken og hold stødig. Vi gjør resten.\",\"photoCapturedSuccessfully\":\"Bildet er tatt.\",\"scanIDInBrowser\":\"Skann en ID i nettleseren din\",\"useYourDeviceCamera\":\"Bruk enhetskameraet til å skanne et dokument eller velg et bilde av dokumentet fra galleriet\",\"fromCamera\":\"Fra kamera\",\"fromGallery\":\"Fra galleri\",\"cameraConnection\":\"Kontroller at kameraet er riktig tilkoblet.\",\"documentProcessing\":\"Dokumentet behandles...\",\"positionDocumentCenter\":\"Plasser dokumentet i midten\",\"flipDocument\":\"Vend dokumentet\",\"processingFinished\":\"Behandlingen er ferdig.\",\"uploadPhoto\":\"Last opp et bilde\",\"useCameraOrGallery\":\"Bruk enhetens kamera eller velg et bilde fra galleriet\",\"detectingDocument\":\"Finner et dokument ...\",\"versionNotSupported\":\"Din nettleserversjon støttes ikke\",\"updateBrowser\":\"Oppdater nettleserversjonen din\",\"onlyPortraitOrientation\":\"Kun stående format\",\"turnDeviceIntoPortrait\":\"Sett enheten i portrettmodus\",\"largeFile\":\"Denne filen er for stor til å lastes opp\",\"selectSmallerFile\":\"Velg en mindre fil\",\"licenseError\":\"Det har oppstått en lisensfeil\",\"licenseExpired\":\"Lisensen finnes ikke eller har utløpt\",\"fileCorrupt\":\"Denne filen er skadet eller støttes ikke\",\"selectAnotherFile\":\"Velg en annen fil\",\"noFocus\":\"Ingen kamerafokus\",\"showOnlyOneFace\":\"Sørg for at det kun er ett ansikt på skjermen\",\"incorrectCameraId\":\"Kamera med den spesifikke ID-en ble ikke funnet\",\"checkCameraId\":\"Sjekk om den spesifikke kamera-ID-en er korrekt\"}')};function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){On(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rn=function(e){return function(t){var n=t.locale,r=t.translations,a=gn;if(r)for(var o in r)if(gn.hasOwnProperty(o))a=ze(a,On({},o,r[o]));else{var i=ze(gn.en,r[o]);a=ze(a,On({},o,i))}var l=(window.navigator?window.navigator.language:\"en\").substring(0,2).toLowerCase(),s=a.hasOwnProperty(l)?l:\"en\",u=n&&a.hasOwnProperty(n)?n:s,c=G.includes(u)?w.Rtl:w.Ltr,d=In(In({},t),{},{direction:c});return P.createElement(bt.LocalizationProvider,{disableCache:!0,locale:u,translations:a},P.createElement(e,d))}};var Nn=function(e){return function(t){return P.createElement(Wt.Provider,{value:t},P.createElement(e,t))}};var An=function(e){return function(t){var n=P.useMemo((function(){return{service:window.RegulaDocumentSDK}}),[]);return P.createElement(Ft.Provider,{value:n},P.createElement(e,t))}},Tn=n(\"./node_modules/react-device-detect/dist/lib.js\");function bn(e){return bn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},bn(e)}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ln(e,t){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ln(e,t)}function wn(e){var t=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kn(e);if(t){var a=kn(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Pn(this,n)}}function Pn(e,t){if(t&&(\"object\"===bn(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}var Mn,Fn=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Ln(e,t)}(o,e);var t,n,r,a=wn(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,o),(t=a.call(this,e)).supportedBrowserVersions=e.supportedBrowserVersions,t.onError=e.onError,t}return t=o,(n=[{key:\"componentDidCatch\",value:function(e){var t=e instanceof Error?R.UNKNOWN_ERROR:e.type;this.onError(t)}},{key:\"componentDidMount\",value:function(){if(this.supportedBrowserVersions){var e=null;Tn.tq&&this.supportedBrowserVersions[Tn.BF]&&(e=this.supportedBrowserVersions[Tn.BF]),Tn.nI&&(e=this.supportedBrowserVersions.desktop),e&&e[Tn.KC]&&Tn.x_<e[Tn.KC]&&this.onError(R.NOT_SUPPORTED)}}},{key:\"render\",value:function(){return this.props.children}}])&&Dn(t.prototype,n),r&&Dn(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),o}(P.Component);function Un(e){return Un=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Un(e)}function xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return Hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bn(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.portrait=\"portrait\",e.landscape=\"landscape\"}(Mn||(Mn={}));var Gn=Ae(Nn,Rn,An)((function(e){var t=e.direction,n=Kt(),r=n.onResponse,a=n.onAction,o=n.onFail,i=n.internalScenario,l=n.startScreen,s=n.multiple,u=n.license,c=n.copyright,d=(0,bt.useLocalize)().translate,p=function(){var e=xn(P.useState((function(){var e=window.matchMedia(\"(orientation: landscape)\").matches?Mn.landscape:Mn.portrait;return{isPortrait:e===Mn.portrait,isLandscape:e===Mn.landscape,orientation:e}})),2),t=e[0],n=e[1],r=P.useCallback((function(){var e=window.matchMedia(\"(orientation: landscape)\").matches?Mn.landscape:Mn.portrait,r={isPortrait:e===Mn.portrait,isLandscape:e===Mn.landscape,orientation:e};t.orientation!==r.orientation&&n(r)}),[t.orientation]);return P.useEffect((function(){return void 0!==(\"undefined\"==typeof window?\"undefined\":Un(window))&&(r(),window.addEventListener(\"load\",r,!1),window.addEventListener(\"resize\",r,!1)),function(){window.removeEventListener(\"load\",r,!1),window.removeEventListener(\"resize\",r,!1)}}),[r]),t}(),_=p.orientation,m=jn(P.useState(null),2),h=m[0],E=m[1],C=jn(P.useState(null),2),S=C[0],g=C[1],y=jn(P.useState(l?v.CHOOSE_INPUT_SOURCE:v.CAMERA_PROCESSING),2),I=y[0],O=y[1],R=P.useCallback((function(){a({manual:!0,action:f.PRESS_CAMERA_BUTTON}),O(v.CAMERA_PROCESSING)}),[]),N=P.useCallback((function(){a({manual:!0,action:f.CLOSE})}),[]),A=P.useCallback((function(e){g(e),O(v.FILE_PROCESSING)}),[]),T=P.useCallback((function(e){var t=W[e]||v.UNKNOWN_ERROR;O(t),o(e)}),[]),b=P.useCallback((function(){E(null),g(null),O(l?v.CHOOSE_INPUT_SOURCE:v.CAMERA_PROCESSING)}),[l]),D=P.useCallback((function(){a({manual:!0,action:f.PRESS_RETRY_BUTTON}),b()}),[]);return P.useEffect((function(){Tn.tq&&I===v.CAMERA_PROCESSING&&b()}),[_]),P.useEffect((function(){I===v.SUCCESS&&h&&r(h)}),[I,h]),P.createElement(P.StrictMode,null,P.createElement(Fn,{onError:T,supportedBrowserVersions:Z},P.createElement($t,{completionStatus:I,onClose:N,copyright:c,direction:t},I===v.CHOOSE_INPUT_SOURCE?P.createElement(sn,{onStart:R,onFileImageSet:A,title:d(\"scanIDInBrowser\"),subtitle:d(\"useYourDeviceCamera\"),multiple:s}):I===v.CAMERA_PROCESSING?P.createElement(Jt,{onResponse:E,onStatusChange:O}):I===v.FILE_PROCESSING?P.createElement(Sn,{onStatusChange:O,onResponse:E,images:S,scenario:i,license:u}):I===v.SUCCESS?P.createElement(on,{type:\"verified\",title:d(\"success\"),subtitle:d(\"processingFinished\")}):I===v.FILE_SIZE_ERROR?P.createElement(on,{onReset:D,type:\"error\",title:d(\"largeFile\"),subtitle:d(\"selectSmallerFile\")}):I===v.WASM_DEFAULT_ERROR||I===v.NOT_SUPPORTED_ERROR?P.createElement(on,{type:\"error\",title:d(\"versionNotSupported\"),subtitle:d(\"updateBrowser\")}):I===v.WASM_LICENSE_ERROR?P.createElement(on,{type:\"error\",title:d(\"licenseError\"),subtitle:d(\"licenseExpired\")}):I===v.INCORRECT_FILE_ERROR?P.createElement(on,{onReset:D,type:\"error\",title:d(\"fileCorrupt\"),subtitle:d(\"selectAnotherFile\")}):I===v.TIMEOUT?P.createElement(on,{onReset:D,type:\"error\",title:d(\"timeout\"),subtitle:d(\"processingFinished\")}):P.createElement(on,{onReset:D,type:\"error\",title:d(\"error\"),subtitle:d(\"somethingWentWrong\")}))))})),Vn=n(\"./src/common/Message.css\");function zn(e){return zn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},zn(e)}function Yn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e,t){if(t&&(\"object\"===zn(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function Kn(e){var t=\"function\"==typeof Map?new Map:void 0;return Kn=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Zn(e,arguments,Jn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Xn(r,e)},Kn(e)}function Zn(e,t,n){return Zn=qn()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&Xn(a,n.prototype),a},Zn.apply(null,arguments)}function qn(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}var Qn=[Qt.Z,ln.Z,M.Z,en.Z,Tt.Z,$e.Z,Vn.Z,tn.Z,mn.Z].reduce((function(e,t){return e+t.toString()}),\"\"),$n=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&Xn(e,t)}(l,e);var t,n,r,a,o,i=(t=l,n=qn(),function(){var e,r=Jn(t);if(n){var a=Jn(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return Wn(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l),(e=i.call(this))._root=(0,k.s)(e.attachShadow({mode:\"open\"})),e._mounted=!1,e._translations=null,e}return r=l,o=[{key:\"observedAttributes\",get:function(){return[\"start-screen\",\"locale\",\"internal-scenario\",\"multipage-processing\",\"multiple\",\"license\",\"copyright\",\"camera-id\",\"object-fit\",\"change-camera\"]}}],(a=[{key:\"attributeChangedCallback\",value:function(e){var t=l.observedAttributes.includes(e);this._mounted&&t&&this.render()}},{key:\"connectedCallback\",value:function(){var e=this;queueMicrotask((function(){e.render(),e._mounted=!0;var t={manual:!0,action:f.ELEMENT_VISIBLE,data:null},n=Le(U,t);e.dispatchEvent(n)}))}},{key:\"translations\",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:\"render\",value:function(){var e=this;this._root.render(P.createElement(P.Fragment,null,P.createElement(\"style\",null,Qn),P.createElement(Gn,{onAction:function(t){var n=t.manual,r=t.action,a=Le(U,{manual:n,action:r,data:null});e.dispatchEvent(a)},onResponse:function(t){var n={manual:!1,action:f.PROCESS_FINISHED,data:{status:m.OK,response:t}},r=Le(U,n);e.dispatchEvent(r)},onFail:function(t){var n={manual:!1,action:f.PROCESS_FINISHED,data:{status:m.ERROR,reason:t}},r=Le(U,n);e.dispatchEvent(r)},copyright:Ne(this.getAttribute(\"copyright\")),locale:this.getAttribute(\"locale\")||void 0,internalScenario:this.getAttribute(\"internal-scenario\")||void 0,multipageProcessing:Ne(this.getAttribute(\"multipage-processing\")),startScreen:Ne(this.getAttribute(\"start-screen\")),multiple:Ne(this.getAttribute(\"multiple\")),license:this.getAttribute(\"license\")||void 0,cameraId:this.getAttribute(\"camera-id\")||void 0,objectFit:this.getAttribute(\"object-fit\")||void 0,changeCamera:Ne(this.getAttribute(\"change-camera\")),translations:this._translations||void 0})))}},{key:\"disconnectedCallback\",value:function(){var e=this;queueMicrotask((function(){return e._root.unmount()}))}}])&&Yn(r.prototype,a),o&&Yn(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(Kn(HTMLElement));function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nr=function(e){var t=e.onStatusChange,n=e.onCapture,r=Kt(),a=r.onFail,o=r.cameraId,i=r.objectFit,l=r.changeCamera,s=er(P.useState(!1),2),u=s[0],d=s[1],f=er(P.useState({videoElement:null,videoParams:{width:0,height:0},videoContainerParams:{width:0,height:0}}),2),_=f[0],m=f[1],h=er(P.useState({videoStatus:E.PREPARING,camera:{selectedCamera:{deviceId:\"\",facing:void 0,groupId:\"\",label:\"\"},frontCameras:[],backCameras:[]}}),2),C=h[0],g=h[1],y=er(P.useState(o),2),I=y[0],O=y[1],R=P.useCallback((function(){return d(!u)}),[u]),N=P.useCallback((function(){if(_.videoElement){var e=Ge(_.videoElement,c.BASE64),r=e.raw,a=e.mimeType;n([{raw:r,mimeType:a}]),t(v.SUCCESS)}}),[_]),A=P.useCallback((function(){var e=Ve(C.camera);e&&O(e)}),[C.camera]);return P.createElement(\"div\",{className:M.Z.locals.container},P.createElement(Mt,{mirroring:u,onChangeMirroring:R,status:p.SNAPSHOT,videoStatusParams:C,onCameraSnapshot:N,isServiceInitialized:!0,onChangeCamera:A,showChangeCameraButton:l},P.createElement(tt,{onVideoSizeChange:m,onVideoStatusChange:g,resolution:V.FULL_HD,mirroring:u,onFailStatus:a,mode:S.environment,cameraId:I,objectFit:i})))};function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ar(e,t,n){return t&&rr(e.prototype,t),n&&rr(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var or=ar((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.mimeType=t.split(\";\")[0].replace(\"data:\",\"\"),this.extension=this.mimeType.split(\"/\")[1],this.raw=t.substring(t.indexOf(\",\")+1)}));function ir(e){return ir=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},ir(e)}function lr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sr(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ur(){ur=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",i=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},\"\")}catch(T){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new R(a||[]);return r(i,\"_invoke\",{value:g(e,n,l)}),i}function c(e,t,n){try{return{type:\"normal\",arg:e.call(t,n)}}catch(T){return{type:\"throw\",arg:T}}}e.wrap=u;var d={};function f(){}function p(){}function _(){}var m={};s(m,o,(function(){return this}));var h=Object.getPrototypeOf,E=h&&h(h(N([])));E&&E!==t&&n.call(E,o)&&(m=E);var C=_.prototype=f.prototype=Object.create(m);function v(e){[\"next\",\"throw\",\"return\"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(r,o,i,l){var s=c(e[r],e,o);if(\"throw\"!==s.type){var u=s.arg,d=u.value;return d&&\"object\"==ir(d)&&n.call(d,\"__await\")?t.resolve(d.__await).then((function(e){a(\"next\",e,i,l)}),(function(e){a(\"throw\",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a(\"throw\",e,i,l)}))}l(s.arg)}var o;r(this,\"_invoke\",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r=\"suspendedStart\";return function(a,o){if(\"executing\"===r)throw new Error(\"Generator is already running\");if(\"completed\"===r){if(\"throw\"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=y(i,n);if(l){if(l===d)continue;return l}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(\"suspendedStart\"===r)throw r=\"completed\",n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=\"executing\";var s=c(e,t,n);if(\"normal\"===s.type){if(r=n.done?\"completed\":\"suspendedYield\",s.arg===d)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(r=\"completed\",n.method=\"throw\",n.arg=s.arg)}}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,y(e,t),\"throw\"===t.method))return d;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return d}var r=c(n,e.iterator,t.arg);if(\"throw\"===r.type)return t.method=\"throw\",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,d):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(I,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=_,r(C,\"constructor\",{value:_,configurable:!0}),r(_,\"constructor\",{value:p,configurable:!0}),p.displayName=s(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,\"GeneratorFunction\")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},v(S.prototype),s(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new S(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(C),s(C,l,\"Generator\"),s(C,o,(function(){return this})),s(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)\"t\"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type=\"throw\",i.arg=e,t.next=n,r&&(t.method=\"next\",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var l=n.call(o,\"catchLoc\"),s=n.call(o,\"finallyLoc\");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,\"finallyLoc\")&&this.prev<a.finallyLoc){var o=a;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(\"throw\"===r.type){var a=r.arg;O(n)}return a}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=void 0),d}},e}function cr(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}var dr=function(){var e,t=(e=ur().mark((function e(t){var n,r,a;return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=[],r=function(e){var r=new Promise((function(n,r){var a=t.item(e);if(a){var o=new FileReader;o.readAsDataURL(a),o.onload=function(){if(\"string\"==typeof o.result){var e=new or(o.result),t=e.raw,a=e.mimeType;n({raw:t,mimeType:a})}else r(new _e(R.INCORRECT_FILE))},o.onerror=function(){return r(new _e(R.INCORRECT_FILE))}}}));n.push(r)},a=0;a<t.length;a++)r(a);return e.abrupt(\"return\",n);case 4:case\"end\":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){cr(o,r,a,i,l,\"next\",e)}function l(e){cr(o,r,a,i,l,\"throw\",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}();var fr=function(e){var t=e.onStatusChange,n=e.onCapture,r=e.images,a=lr((0,P.useState)([]),2),o=a[0],i=a[1],l=lr((0,P.useState)(null),2),s=l[0],u=l[1],c=(0,bt.useLocalize)().translate;return P.useEffect((function(){null==r||!r.length||null!=o&&o.length||dr(r).then((function(e){Promise.all(e).then((function(e){i(e)})).catch((function(e){u(e)}))})),o.length&&(n(o),t(v.SUCCESS))}),[r,o]),P.useEffect((function(){if(s)throw s}),[s]),P.createElement(En,{title:c(\"processing\")})};function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return _r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _r(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mr=Ae(Nn,Rn)((function(e){var t=e.direction,n=Kt(),r=n.onResponse,a=n.onAction,o=n.onFail,i=n.startScreen,l=n.multiple,s=n.copyright,u=(0,bt.useLocalize)().translate,c=pr(P.useState(i?v.CHOOSE_INPUT_SOURCE:v.CAMERA_PROCESSING),2),d=c[0],p=c[1],_=pr(P.useState(null),2),m=_[0],h=_[1],E=pr(P.useState([{raw:\"\",mimeType:\"\"}]),2),C=E[0],S=E[1],g=P.useCallback((function(e){h(e),p(v.FILE_PROCESSING)}),[]),y=P.useCallback((function(){a({manual:!0,action:f.PRESS_CAMERA_BUTTON}),p(v.CAMERA_PROCESSING)}),[]),I=P.useCallback((function(e){var t=W[e]||v.UNKNOWN_ERROR;p(t),o(e)}),[]),O=P.useCallback((function(){h(null),S([{raw:\"\",mimeType:\"\"}]),p(i?v.CHOOSE_INPUT_SOURCE:v.CAMERA_PROCESSING),a({manual:!0,action:f.PRESS_RETRY_BUTTON})}),[i]),R=P.useCallback((function(){a({manual:!0,action:f.CLOSE})}),[]);return P.useEffect((function(){d===v.SUCCESS&&r(C)}),[d,C]),P.createElement(Fn,{onError:I,supportedBrowserVersions:Z},P.createElement($t,{completionStatus:d,onClose:R,copyright:s,direction:t},d===v.CHOOSE_INPUT_SOURCE?P.createElement(sn,{onStart:y,onFileImageSet:g,title:u(\"uploadPhoto\"),subtitle:u(\"useCameraOrGallery\"),multiple:l}):d===v.CAMERA_PROCESSING?P.createElement(nr,{onStatusChange:p,onCapture:S}):d===v.FILE_PROCESSING?P.createElement(fr,{onStatusChange:p,onCapture:S,images:m}):d===v.SUCCESS?P.createElement(on,{type:\"verified\",title:u(\"success\"),subtitle:u(\"photoCapturedSuccessfully\")}):d===v.INCORRECT_FILE_ERROR?P.createElement(on,{onReset:O,type:\"error\",title:u(\"fileCorrupt\"),subtitle:u(\"selectAnotherFile\")}):P.createElement(on,{onReset:O,type:\"error\",title:u(\"error\"),subtitle:u(\"somethingWentWrong\")})))}));function hr(e){return hr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},hr(e)}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cr(e,t){if(t&&(\"object\"===hr(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function vr(e){var t=\"function\"==typeof Map?new Map:void 0;return vr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Sr(e,arguments,Ir(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),yr(r,e)},vr(e)}function Sr(e,t,n){return Sr=gr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&yr(a,n.prototype),a},Sr.apply(null,arguments)}function gr(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function yr(e,t){return yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yr(e,t)}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}var Or=[Qt.Z,ln.Z,M.Z,en.Z,Tt.Z,$e.Z,Vn.Z,tn.Z,mn.Z].reduce((function(e,t){return e+t.toString()}),\"\"),Rr=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&yr(e,t)}(l,e);var t,n,r,a,o,i=(t=l,n=gr(),function(){var e,r=Ir(t);if(n){var a=Ir(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return Cr(this,e)});function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l),(e=i.call(this))._root=(0,k.s)(e.attachShadow({mode:\"open\"})),e._mounted=!1,e._translations=null,e}return r=l,o=[{key:\"observedAttributes\",get:function(){return[\"locale\",\"start-screen\",\"multiple\",\"copyright\",\"camera-id\",\"object-fit\",\"change-camera\"]}}],(a=[{key:\"attributeChangedCallback\",value:function(e){var t=l.observedAttributes.includes(e);this._mounted&&t&&this.render()}},{key:\"connectedCallback\",value:function(){var e=this;queueMicrotask((function(){e.render(),e._mounted=!0;var t={manual:!0,action:f.ELEMENT_VISIBLE,data:null},n=Le(x,t);e.dispatchEvent(n)}))}},{key:\"translations\",get:function(){return this._translations},set:function(e){this._translations=e,this._mounted&&this.render()}},{key:\"render\",value:function(){var e=this;this._root.render(P.createElement(P.Fragment,null,P.createElement(\"style\",null,Or),P.createElement(mr,{onAction:function(t){var n=t.manual,r=t.action,a=Le(x,{manual:n,action:r,data:null});e.dispatchEvent(a)},onResponse:function(t){var n={manual:!1,action:f.PROCESS_FINISHED,data:{status:m.OK,response:t}},r=Le(x,n);e.dispatchEvent(r)},onFail:function(t){var n={manual:!1,action:f.PROCESS_FINISHED,data:{status:m.ERROR,reason:t}},r=Le(x,n);e.dispatchEvent(r)},copyright:Ne(this.getAttribute(\"copyright\")),locale:this.getAttribute(\"locale\")||void 0,startScreen:Ne(this.getAttribute(\"start-screen\")),multiple:Ne(this.getAttribute(\"multiple\")),cameraId:this.getAttribute(\"camera-id\")||void 0,objectFit:this.getAttribute(\"object-fit\")||void 0,changeCamera:Ne(this.getAttribute(\"change-camera\")),translations:this._translations||void 0})))}},{key:\"disconnectedCallback\",value:function(){var e=this;queueMicrotask((function(){return e._root.unmount()}))}}])&&Er(r.prototype,a),o&&Er(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),l}(vr(HTMLElement));function Nr(e){return Nr=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Nr(e)}function Ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tr(e,t){if(t&&(\"object\"===Nr(t)||\"function\"==typeof t))return t;if(void 0!==t)throw new TypeError(\"Derived constructors may only return object or undefined\");return function(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}(e)}function br(e){var t=\"function\"==typeof Map?new Map:void 0;return br=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf(\"[native code]\")))return e;var n;if(\"function\"!=typeof e)throw new TypeError(\"Super expression must either be null or a function\");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Dr(e,arguments,Pr(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wr(r,e)},br(e)}function Dr(e,t,n){return Dr=Lr()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&wr(a,n.prototype),a},Dr.apply(null,arguments)}function Lr(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function wr(e,t){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wr(e,t)}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pr(e)}var kr,Mr,Fr,Ur,xr,Hr,jr,Br,Gr,Vr,zr,Yr,Wr,Kr,Zr,qr,Xr,Jr,Qr,$r,ea,ta,na,ra,aa=function(e){!function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,\"prototype\",{writable:!1}),t&&wr(e,t)}(l,e);var t,n,r,a,o,i=(t=l,n=Lr(),function(){var e,r=Pr(t);if(n){var a=Pr(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return Tr(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,l),(e=i.call(this))._root=e.attachShadow({mode:\"open\"});var t=\"\\n display: block;\\n position: fixed;\\n height: 100%;\\n width: 100%;\\n top: 0;\\n left: 0;\\n overflow: auto;\\n z-index: 100;\\n \";return e._root.innerHTML=\"\\n <style>\\n *, *::before, *::after {\\n box-sizing: border-box;\\n }\\n :host {\\n \".concat(t,\";\\n }\\n fullscreen-container {\\n \").concat(t,\";\\n }\\n </style>\\n <slot />\\n \"),e}return r=l,a&&Ar(r.prototype,a),o&&Ar(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),r}(br(HTMLElement));function oa(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ia(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function la(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.UV_LUMINESCENCE=1]=\"UV_LUMINESCENCE\",e[e.IR_B900=2]=\"IR_B900\",e[e.IMAGE_PATTERN=4]=\"IMAGE_PATTERN\",e[e.AXIAL_PROTECTION=8]=\"AXIAL_PROTECTION\",e[e.UV_FIBERS=16]=\"UV_FIBERS\",e[e.IR_VISIBILITY=32]=\"IR_VISIBILITY\",e[e.OCR_SECURITY_TEXT=64]=\"OCR_SECURITY_TEXT\",e[e.IPI=128]=\"IPI\",e[e.PHOTO_EMBED_TYPE=512]=\"PHOTO_EMBED_TYPE\",e[e.HOLOGRAMS=4096]=\"HOLOGRAMS\",e[e.PHOTO_AREA=8192]=\"PHOTO_AREA\",e[e.PORTRAIT_COMPARISON=32768]=\"PORTRAIT_COMPARISON\",e[e.BARCODE_FORMAT_CHECK=65536]=\"BARCODE_FORMAT_CHECK\",e[e.KINEGRAM=131072]=\"KINEGRAM\",e[e.LETTER_SCREEN=262144]=\"LETTER_SCREEN\"}(kr||(kr={})),function(e){e[e.UNKNOWN=0]=\"UNKNOWN\",e[e.PASS=1]=\"PASS\",e[e.INVALID_INPUT_DATA=2]=\"INVALID_INPUT_DATA\",e[e.INTERNAL_ERROR=3]=\"INTERNAL_ERROR\",e[e.EXCEPTION_IN_MODULE=4]=\"EXCEPTION_IN_MODULE\",e[e.UNCERTAIN_VERIFICATION=5]=\"UNCERTAIN_VERIFICATION\",e[e.NECESSARY_IMAGE_NOT_FOUND=7]=\"NECESSARY_IMAGE_NOT_FOUND\",e[e.PHOTO_SIDES_NOT_FOUND=8]=\"PHOTO_SIDES_NOT_FOUND\",e[e.INVALID_CHECKSUM=10]=\"INVALID_CHECKSUM\",e[e.SYNTAX_ERROR=11]=\"SYNTAX_ERROR\",e[e.LOGIC_ERROR=12]=\"LOGIC_ERROR\",e[e.SOURCES_COMPARISON_ERROR=13]=\"SOURCES_COMPARISON_ERROR\",e[e.FIELDS_COMPARISON_LOGIC_ERROR=14]=\"FIELDS_COMPARISON_LOGIC_ERROR\",e[e.INVALID_FIELD_FORMAT=15]=\"INVALID_FIELD_FORMAT\",e[e.TRUE_LUMINESCENCE_ERROR=20]=\"TRUE_LUMINESCENCE_ERROR\",e[e.FALSE_LUMINESCENCE_ERROR=21]=\"FALSE_LUMINESCENCE_ERROR\",e[e.FIXED_PATTERN_ERROR=22]=\"FIXED_PATTERN_ERROR\",e[e.LOW_CONTRAST_IN_IR_LIGHT=23]=\"LOW_CONTRAST_IN_IR_LIGHT\",e[e.INCORRECT_BACKGROUND_LIGHT=24]=\"INCORRECT_BACKGROUND_LIGHT\",e[e.BACKGROUND_COMPARISON_ERROR=25]=\"BACKGROUND_COMPARISON_ERROR\",e[e.INCORRECT_TEXT_COLOR=26]=\"INCORRECT_TEXT_COLOR\",e[e.PHOTO_FALSE_LUMINESCENCE=27]=\"PHOTO_FALSE_LUMINESCENCE\",e[e.TOO_MUCH_SHIFT=28]=\"TOO_MUCH_SHIFT\",e[e.FIBERS_NOT_FOUND=30]=\"FIBERS_NOT_FOUND\",e[e.TOO_MANY_OBJECTS=31]=\"TOO_MANY_OBJECTS\",e[e.SPECKS_IN_UV=33]=\"SPECKS_IN_UV\",e[e.TOO_LOW_RESOLUTION=34]=\"TOO_LOW_RESOLUTION\",e[e.INVISIBLE_ELEMENT_PRESENT=40]=\"INVISIBLE_ELEMENT_PRESENT\",e[e.VISIBLE_ELEMENT_ABSENT=41]=\"VISIBLE_ELEMENT_ABSENT\",e[e.ELEMENT_SHOULD_BE_COLORED=42]=\"ELEMENT_SHOULD_BE_COLORED\",e[e.ELEMENT_SHOULD_BE_GRAYSCALE=43]=\"ELEMENT_SHOULD_BE_GRAYSCALE\",e[e.PHOTO_WHITE_IR_DONT_MATCH=44]=\"PHOTO_WHITE_IR_DONT_MATCH\",e[e.UV_DULL_PAPER_MRZ=50]=\"UV_DULL_PAPER_MRZ\",e[e.FALSE_LUMINESCENCE_IN_MRZ=51]=\"FALSE_LUMINESCENCE_IN_MRZ\",e[e.UV_DULL_PAPER_PHOTO=52]=\"UV_DULL_PAPER_PHOTO\",e[e.UV_DULL_PAPER_BLANK=53]=\"UV_DULL_PAPER_BLANK\",e[e.UV_DULL_PAPER_ERROR=54]=\"UV_DULL_PAPER_ERROR\",e[e.FALSE_LUMINESCENCE_IN_BLANK=55]=\"FALSE_LUMINESCENCE_IN_BLANK\",e[e.BAD_AREA_IN_AXIAL=60]=\"BAD_AREA_IN_AXIAL\",e[e.FALSE_IP_PARAMETERS=65]=\"FALSE_IP_PARAMETERS\",e[e.FIELD_POS_CORRECTOR_HIGHLIGHT_IR=80]=\"FIELD_POS_CORRECTOR_HIGHLIGHT_IR\",e[e.OVI_IR_INVISIBLE=90]=\"OVI_IR_INVISIBLE\",e[e.OVI_INSUFFICIENT_AREA=91]=\"OVI_INSUFFICIENT_AREA\",e[e.OVI_COLOR_INVARIABLE=92]=\"OVI_COLOR_INVARIABLE\",e[e.OVI_BAD_COLOR_FRONT=93]=\"OVI_BAD_COLOR_FRONT\",e[e.OVI_BAD_COLOR_SIDE=94]=\"OVI_BAD_COLOR_SIDE\",e[e.OVI_WIDE_COLOR_SPREAD=95]=\"OVI_WIDE_COLOR_SPREAD\",e[e.OVI_BAD_COLOR_PERCENT=96]=\"OVI_BAD_COLOR_PERCENT\",e[e.HOLOGRAM_ELEMENT_ABSENT=100]=\"HOLOGRAM_ELEMENT_ABSENT\",e[e.HOLOGRAM_SIDE_TOP_IMAGES_ABSENT=101]=\"HOLOGRAM_SIDE_TOP_IMAGES_ABSENT\",e[e.HOLOGRAM_ELEMENT_PRESENT=102]=\"HOLOGRAM_ELEMENT_PRESENT\",e[e.PHOTO_PATTERN_INTERRUPTED=110]=\"PHOTO_PATTERN_INTERRUPTED\",e[e.PHOTO_PATTERN_SHIFTED=111]=\"PHOTO_PATTERN_SHIFTED\",e[e.PHOTO_PATTERN_DIFFERENT_COLORS=112]=\"PHOTO_PATTERN_DIFFERENT_COLORS\",e[e.PHOTO_PATTERN_IR_VISIBLE=113]=\"PHOTO_PATTERN_IR_VISIBLE\",e[e.PHOTO_PATTERN_NOT_INTERSECT=114]=\"PHOTO_PATTERN_NOT_INTERSECT\",e[e.PHOTO_SIZE_IS_WRONG=115]=\"PHOTO_SIZE_IS_WRONG\",e[e.PHOTO_PATTERN_INVALID_COLOR=116]=\"PHOTO_PATTERN_INVALID_COLOR\",e[e.PHOTO_PATTERN_SHIFTED_VERT=117]=\"PHOTO_PATTERN_SHIFTED_VERT\",e[e.PHOTO_PATTERN_PATTERN_NOT_FOUND=118]=\"PHOTO_PATTERN_PATTERN_NOT_FOUND\",e[e.PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS=119]=\"PHOTO_PATTERN_DIFFERENT_LINES_THICKNESS\",e[e.PHOTO_IS_NOT_RECTANGLE=120]=\"PHOTO_IS_NOT_RECTANGLE\",e[e.PHOTO_CORNERS_IS_WRONG=121]=\"PHOTO_CORNERS_IS_WRONG\",e[e.TEXT_COLOR_SHOULD_BE_BLUE=130]=\"TEXT_COLOR_SHOULD_BE_BLUE\",e[e.TEXT_COLOR_SHOULD_BE_GREEN=131]=\"TEXT_COLOR_SHOULD_BE_GREEN\",e[e.TEXT_COLOR_SHOULD_BE_RED=132]=\"TEXT_COLOR_SHOULD_BE_RED\",e[e.TEXT_SHOULD_BE_BLACK=133]=\"TEXT_SHOULD_BE_BLACK\",e[e.BARCODE_WAS_READ_WITH_ERRORS=140]=\"BARCODE_WAS_READ_WITH_ERRORS\",e[e.BARCODE_DATA_FORMAT_ERROR=141]=\"BARCODE_DATA_FORMAT_ERROR\",e[e.BARCODE_SIZE_PARAMS_ERROR=142]=\"BARCODE_SIZE_PARAMS_ERROR\",e[e.NOT_ALL_BARCODES_READ=143]=\"NOT_ALL_BARCODES_READ\",e[e.PORTRAIT_COMPARISON_PORTRAITS_DIFFER=150]=\"PORTRAIT_COMPARISON_PORTRAITS_DIFFER\",e[e.PORTRAIT_COMPARISON_NO_SERVICE_REPLY=151]=\"PORTRAIT_COMPARISON_NO_SERVICE_REPLY\",e[e.PORTRAIT_COMPARISON_SERVICE_ERROR=152]=\"PORTRAIT_COMPARISON_SERVICE_ERROR\",e[e.PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES=153]=\"PORTRAIT_COMPARISON_NOT_ENOUGH_IMAGES\",e[e.PORTRAIT_COMPARISON_NO_LIVE_PHOTO=154]=\"PORTRAIT_COMPARISON_NO_LIVE_PHOTO\",e[e.PORTRAIT_COMPARISON_NO_SERVICE_LICENSE=155]=\"PORTRAIT_COMPARISON_NO_SERVICE_LICENSE\",e[e.PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED=156]=\"PORTRAIT_COMPARISON_NO_PORTRAIT_DETECTED\",e[e.LAST_DIAGNOSE_VALUE=157]=\"LAST_DIAGNOSE_VALUE\",e[e.FIELD_POS_CORRECTOR_PHOTO_REPLACED=82]=\"FIELD_POS_CORRECTOR_PHOTO_REPLACED\"}(Mr||(Mr={})),function(e){e[e.ERROR=0]=\"ERROR\",e[e.OK=1]=\"OK\",e[e.WAS_NOT_DONE=2]=\"WAS_NOT_DONE\"}(Fr||(Fr={})),function(e){e[e.NOT_CRITICAL=0]=\"NOT_CRITICAL\",e[e.CRITICAL=1]=\"CRITICAL\"}(Ur||(Ur={})),function(e){e[e.ID1=0]=\"ID1\",e[e.ID2=1]=\"ID2\",e[e.ID3=2]=\"ID3\",e[e.NON=3]=\"NON\",e[e.A4=4]=\"A4\",e[e.ID3_X2=5]=\"ID3_X2\",e[e.ID1_90=10]=\"ID1_90\",e[e.ID1_180=11]=\"ID1_180\",e[e.ID1_270=12]=\"ID1_270\",e[e.ID2_180=13]=\"ID2_180\",e[e.ID3_180=14]=\"ID3_180\",e[e.CUSTOM=1e3]=\"CUSTOM\",e[e.FLEXIBLE=1002]=\"FLEXIBLE\"}(xr||(xr={})),function(e){e[e.NOT_DEFINED=0]=\"NOT_DEFINED\",e[e.PASSPORT=11]=\"PASSPORT\",e[e.IDENTITY_CARD=12]=\"IDENTITY_CARD\",e[e.DIPLOMATIC_PASSPORT=13]=\"DIPLOMATIC_PASSPORT\",e[e.SERVICE_PASSPORT=14]=\"SERVICE_PASSPORT\",e[e.SEAMANS_IDENTITY_DOCUMENT=15]=\"SEAMANS_IDENTITY_DOCUMENT\",e[e.IDENTITY_CARD_FOR_RESIDENCE=16]=\"IDENTITY_CARD_FOR_RESIDENCE\",e[e.TRAVEL_DOCUMENT=17]=\"TRAVEL_DOCUMENT\",e[e.OTHER=99]=\"OTHER\",e[e.VISA_ID2=29]=\"VISA_ID2\",e[e.VISA_ID3=30]=\"VISA_ID3\",e[e.NATIONAL_IDENTITY_CARD=20]=\"NATIONAL_IDENTITY_CARD\",e[e.SOCIAL_IDENTITY_CARD=21]=\"SOCIAL_IDENTITY_CARD\",e[e.ALIENS_IDENTITY_CARD=22]=\"ALIENS_IDENTITY_CARD\",e[e.PRIVILEGED_IDENTITY_CARD=23]=\"PRIVILEGED_IDENTITY_CARD\",e[e.RESIDENCE_PERMIT_IDENTITY_CARD=24]=\"RESIDENCE_PERMIT_IDENTITY_CARD\",e[e.ORIGIN_CARD=25]=\"ORIGIN_CARD\",e[e.EMERGENCY_PASSPORT=26]=\"EMERGENCY_PASSPORT\",e[e.ALIENS_PASSPORT=27]=\"ALIENS_PASSPORT\",e[e.ALTERNATIVE_IDENTITY_CARD=28]=\"ALTERNATIVE_IDENTITY_CARD\",e[e.AUTHORIZATION_CARD=32]=\"AUTHORIZATION_CARD\",e[e.BEGINNER_PERMIT=33]=\"BEGINNER_PERMIT\",e[e.BORDER_CROSSING_CARD=34]=\"BORDER_CROSSING_CARD\",e[e.CHAUFFEUR_LICENSE=35]=\"CHAUFFEUR_LICENSE\",e[e.CHAUFFEUR_LICENSE_UNDER_18=36]=\"CHAUFFEUR_LICENSE_UNDER_18\",e[e.CHAUFFEUR_LICENSE_UNDER_21=37]=\"CHAUFFEUR_LICENSE_UNDER_21\",e[e.COMMERCIAL_DRIVING_LICENSE=38]=\"COMMERCIAL_DRIVING_LICENSE\",e[e.COMMERCIAL_DRIVING_LICENSE_INSTRUCTIONAL_PERMIT=39]=\"COMMERCIAL_DRIVING_LICENSE_INSTRUCTIONAL_PERMIT\",e[e.COMMERCIAL_DRIVING_LICENSE_UNDER_18=40]=\"COMMERCIAL_DRIVING_LICENSE_UNDER_18\",e[e.COMMERCIAL_DRIVING_LICENSE_UNDER_21=41]=\"COMMERCIAL_DRIVING_LICENSE_UNDER_21\",e[e.COMMERCIAL_INSTRUCTION_PERMIT=42]=\"COMMERCIAL_INSTRUCTION_PERMIT\",e[e.COMMERCIAL_NEW_PERMIT=43]=\"COMMERCIAL_NEW_PERMIT\",e[e.CONCEALED_CARRY_LICENSE=44]=\"CONCEALED_CARRY_LICENSE\",e[e.CONCEALED_FIREARM_PERMIT=45]=\"CONCEALED_FIREARM_PERMIT\",e[e.CONDITIONAL_DRIVING_LICENSE=46]=\"CONDITIONAL_DRIVING_LICENSE\",e[e.DEPARTMENT_OF_VETERANS_AFFAIRS_IDENTITY_CARD=47]=\"DEPARTMENT_OF_VETERANS_AFFAIRS_IDENTITY_CARD\",e[e.DIPLOMATIC_DRIVING_LICENSE=48]=\"DIPLOMATIC_DRIVING_LICENSE\",e[e.DRIVING_LICENSE=49]=\"DRIVING_LICENSE\",e[e.DRIVING_LICENSE_INSTRUCTIONAL_PERMIT=50]=\"DRIVING_LICENSE_INSTRUCTIONAL_PERMIT\",e[e.DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_18=51]=\"DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_18\",e[e.DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_21=52]=\"DRIVING_LICENSE_INSTRUCTIONAL_PERMIT_UNDER_21\",e[e.DRIVING_LICENSE_LEARNERS_PERMIT=53]=\"DRIVING_LICENSE_LEARNERS_PERMIT\",e[e.DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_18=54]=\"DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_18\",e[e.DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_21=55]=\"DRIVING_LICENSE_LEARNERS_PERMIT_UNDER_21\",e[e.DRIVING_LICENSE_NOVICE=56]=\"DRIVING_LICENSE_NOVICE\",e[e.DRIVING_LICENSE_NOVICE_UNDER_18=57]=\"DRIVING_LICENSE_NOVICE_UNDER_18\",e[e.DRIVING_LICENSE_NOVICE_UNDER_21=58]=\"DRIVING_LICENSE_NOVICE_UNDER_21\",e[e.DRIVING_LICENSE_REGISTERED_OFFENDER=59]=\"DRIVING_LICENSE_REGISTERED_OFFENDER\",e[e.DRIVING_LICENSE_RESTRICTED_UNDER_18=60]=\"DRIVING_LICENSE_RESTRICTED_UNDER_18\",e[e.DRIVING_LICENSE_RESTRICTED_UNDER_21=61]=\"DRIVING_LICENSE_RESTRICTED_UNDER_21\",e[e.DRIVING_LICENSE_TEMPORARY_VISITOR=62]=\"DRIVING_LICENSE_TEMPORARY_VISITOR\",e[e.DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_18=63]=\"DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_18\",e[e.DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_21=64]=\"DRIVING_LICENSE_TEMPORARY_VISITOR_UNDER_21\",e[e.DRIVING_LICENSE_UNDER_18=65]=\"DRIVING_LICENSE_UNDER_18\",e[e.DRIVING_LICENSE_UNDER_21=66]=\"DRIVING_LICENSE_UNDER_21\",e[e.EMPLOYMENT_DRIVING_PERMIT=67]=\"EMPLOYMENT_DRIVING_PERMIT\",e[e.ENHANCED_CHAUFFEUR_LICENSE=68]=\"ENHANCED_CHAUFFEUR_LICENSE\",e[e.ENHANCED_CHAUFFEUR_LICENSE_UNDER_18=69]=\"ENHANCED_CHAUFFEUR_LICENSE_UNDER_18\",e[e.ENHANCED_CHAUFFEUR_LICENSE_UNDER_21=70]=\"ENHANCED_CHAUFFEUR_LICENSE_UNDER_21\",e[e.ENHANCED_COMMERCIAL_DRIVING_LICENSE=71]=\"ENHANCED_COMMERCIAL_DRIVING_LICENSE\",e[e.ENHANCED_DRIVING_LICENSE=72]=\"ENHANCED_DRIVING_LICENSE\",e[e.ENHANCED_DRIVING_LICENSE_UNDER_18=73]=\"ENHANCED_DRIVING_LICENSE_UNDER_18\",e[e.ENHANCED_DRIVING_LICENSE_UNDER_21=74]=\"ENHANCED_DRIVING_LICENSE_UNDER_21\",e[e.ENHANCED_IDENTITY_CARD=75]=\"ENHANCED_IDENTITY_CARD\",e[e.ENHANCED_IDENTITY_CARD_UNDER_18=76]=\"ENHANCED_IDENTITY_CARD_UNDER_18\",e[e.ENHANCED_IDENTITY_CARD_UNDER_21=77]=\"ENHANCED_IDENTITY_CARD_UNDER_21\",e[e.ENHANCED_OPERATORS_LICENSE=78]=\"ENHANCED_OPERATORS_LICENSE\",e[e.FIREARMS_PERMIT=79]=\"FIREARMS_PERMIT\",e[e.FULL_PROVISIONAL_LICENSE=80]=\"FULL_PROVISIONAL_LICENSE\",e[e.FULL_PROVISIONAL_LICENSE_UNDER_18=81]=\"FULL_PROVISIONAL_LICENSE_UNDER_18\",e[e.FULL_PROVISIONAL_LICENSE_UNDER_21=82]=\"FULL_PROVISIONAL_LICENSE_UNDER_21\",e[e.GENEVA_CONVENTIONS_IDENTITY_CARD=83]=\"GENEVA_CONVENTIONS_IDENTITY_CARD\",e[e.GRADUATED_DRIVING_LICENSE_UNDER_18=84]=\"GRADUATED_DRIVING_LICENSE_UNDER_18\",e[e.GRADUATED_DRIVING_LICENSE_UNDER_21=85]=\"GRADUATED_DRIVING_LICENSE_UNDER_21\",e[e.GRADUATED_INSTRUCTION_PERMIT_UNDER_18=86]=\"GRADUATED_INSTRUCTION_PERMIT_UNDER_18\",e[e.GRADUATED_INSTRUCTION_PERMIT_UNDER_21=87]=\"GRADUATED_INSTRUCTION_PERMIT_UNDER_21\",e[e.GRADUATED_LICENSE_UNDER_18=88]=\"GRADUATED_LICENSE_UNDER_18\",e[e.GRADUATED_LICENSE_UNDER_21=89]=\"GRADUATED_LICENSE_UNDER_21\",e[e.HANDGUN_CARRY_PERMIT=90]=\"HANDGUN_CARRY_PERMIT\",e[e.IDENTITY_AND_PRIVILEGE_CARD=91]=\"IDENTITY_AND_PRIVILEGE_CARD\",e[e.IDENTITY_CARD_MOBILITY_IMPAIRED=92]=\"IDENTITY_CARD_MOBILITY_IMPAIRED\",e[e.IDENTITY_CARD_REGISTERED_OFFENDER=93]=\"IDENTITY_CARD_REGISTERED_OFFENDER\",e[e.IDENTITY_CARD_TEMPORARY_VISITOR=94]=\"IDENTITY_CARD_TEMPORARY_VISITOR\",e[e.IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_18=95]=\"IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_18\",e[e.IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_21=96]=\"IDENTITY_CARD_TEMPORARY_VISITOR_UNDER_21\",e[e.IDENTITY_CARD_UNDER_18=97]=\"IDENTITY_CARD_UNDER_18\",e[e.IDENTITY_CARD_UNDER_21=98]=\"IDENTITY_CARD_UNDER_21\",e[e.IGNITION_INTERLOCK_PERMIT=100]=\"IGNITION_INTERLOCK_PERMIT\",e[e.IMMIGRANT_VISA=101]=\"IMMIGRANT_VISA\",e[e.INSTRUCTION_PERMIT=102]=\"INSTRUCTION_PERMIT\",e[e.INSTRUCTION_PERMIT_UNDER_18=103]=\"INSTRUCTION_PERMIT_UNDER_18\",e[e.INSTRUCTION_PERMIT_UNDER_21=104]=\"INSTRUCTION_PERMIT_UNDER_21\",e[e.INTERIM_DRIVING_LICENSE=105]=\"INTERIM_DRIVING_LICENSE\",e[e.INTERIM_IDENTITY_CARD=106]=\"INTERIM_IDENTITY_CARD\",e[e.INTERMEDIATE_DRIVING_LICENSE=107]=\"INTERMEDIATE_DRIVING_LICENSE\",e[e.INTERMEDIATE_DRIVING_LICENSE_UNDER_18=108]=\"INTERMEDIATE_DRIVING_LICENSE_UNDER_18\",e[e.INTERMEDIATE_DRIVING_LICENSE_UNDER_21=109]=\"INTERMEDIATE_DRIVING_LICENSE_UNDER_21\",e[e.JUNIOR_DRIVING_LICENSE=110]=\"JUNIOR_DRIVING_LICENSE\",e[e.LEARNER_INSTRUCTIONAL_PERMIT=111]=\"LEARNER_INSTRUCTIONAL_PERMIT\",e[e.LEARNER_LICENSE=112]=\"LEARNER_LICENSE\",e[e.LEARNER_LICENSE_UNDER_18=113]=\"LEARNER_LICENSE_UNDER_18\",e[e.LEARNER_LICENSE_UNDER_21=114]=\"LEARNER_LICENSE_UNDER_21\",e[e.LEARNER_PERMIT=115]=\"LEARNER_PERMIT\",e[e.LEARNER_PERMIT_UNDER_18=116]=\"LEARNER_PERMIT_UNDER_18\",e[e.LEARNER_PERMIT_UNDER_21=117]=\"LEARNER_PERMIT_UNDER_21\",e[e.LIMITED_LICENSE=118]=\"LIMITED_LICENSE\",e[e.LIMITED_PERMIT=119]=\"LIMITED_PERMIT\",e[e.LIMITED_TERM_DRIVING_LICENSE=120]=\"LIMITED_TERM_DRIVING_LICENSE\",e[e.LIMITED_TERM_IDENTITY_CARD=121]=\"LIMITED_TERM_IDENTITY_CARD\",e[e.LIQUOR_IDENTITY_CARD=122]=\"LIQUOR_IDENTITY_CARD\",e[e.NEW_PERMIT=123]=\"NEW_PERMIT\",e[e.NEW_PERMIT_UNDER_18=124]=\"NEW_PERMIT_UNDER_18\",e[e.NEW_PERMIT_UNDER_21=125]=\"NEW_PERMIT_UNDER_21\",e[e.NON_US_CITIZEN_DRIVING_LICENSE=126]=\"NON_US_CITIZEN_DRIVING_LICENSE\",e[e.OCCUPATIONAL_DRIVING_LICENSE=127]=\"OCCUPATIONAL_DRIVING_LICENSE\",e[e.ONEIDA_TRIBE_OF_INDIANS_IDENTITY_CARD=128]=\"ONEIDA_TRIBE_OF_INDIANS_IDENTITY_CARD\",e[e.OPERATOR_LICENSE=129]=\"OPERATOR_LICENSE\",e[e.OPERATOR_LICENSE_UNDER_18=130]=\"OPERATOR_LICENSE_UNDER_18\",e[e.OPERATOR_LICENSE_UNDER_21=131]=\"OPERATOR_LICENSE_UNDER_21\",e[e.PERMANENT_DRIVING_LICENSE=132]=\"PERMANENT_DRIVING_LICENSE\",e[e.PERMIT_TO_REENTER=133]=\"PERMIT_TO_REENTER\",e[e.PROBATIONARY_AUTO_LICENSE=134]=\"PROBATIONARY_AUTO_LICENSE\",e[e.PROBATIONARY_DRIVING_LICENSE_UNDER_18=135]=\"PROBATIONARY_DRIVING_LICENSE_UNDER_18\",e[e.PROBATIONARY_DRIVING_LICENSE_UNDER_21=136]=\"PROBATIONARY_DRIVING_LICENSE_UNDER_21\",e[e.PROBATIONARY_VEHICLE_SALES_PERSON_LICENSE=137]=\"PROBATIONARY_VEHICLE_SALES_PERSON_LICENSE\",e[e.PROVISIONAL_DRIVING_LICENSE=138]=\"PROVISIONAL_DRIVING_LICENSE\",e[e.PROVISIONAL_DRIVING_LICENSE_UNDER_18=139]=\"PROVISIONAL_DRIVING_LICENSE_UNDER_18\",e[e.PROVISIONAL_DRIVING_LICENSE_UNDER_21=140]=\"PROVISIONAL_DRIVING_LICENSE_UNDER_21\",e[e.PROVISIONAL_LICENSE=141]=\"PROVISIONAL_LICENSE\",e[e.PROVISIONAL_LICENSE_UNDER_18=142]=\"PROVISIONAL_LICENSE_UNDER_18\",e[e.PROVISIONAL_LICENSE_UNDER_21=143]=\"PROVISIONAL_LICENSE_UNDER_21\",e[e.PUBLIC_PASSENGER_CHAUFFEUR_LICENSE=144]=\"PUBLIC_PASSENGER_CHAUFFEUR_LICENSE\",e[e.RACING_AND_GAMING_COMISSION_CARD=145]=\"RACING_AND_GAMING_COMISSION_CARD\",e[e.REFUGEE_TRAVEL_DOCUMENT=146]=\"REFUGEE_TRAVEL_DOCUMENT\",e[e.RENEWAL_PERMIT=147]=\"RENEWAL_PERMIT\",e[e.RESTRICTED_COMMERCIAL_DRIVER_LICENSE=148]=\"RESTRICTED_COMMERCIAL_DRIVER_LICENSE\",e[e.RESTRICTED_DRIVER_LICENSE=149]=\"RESTRICTED_DRIVER_LICENSE\",e[e.RESTRICTED_PERMIT=150]=\"RESTRICTED_PERMIT\",e[e.SEASONAL_PERMIT=151]=\"SEASONAL_PERMIT\",e[e.SEASONAL_RESIDENT_IDENTITY_CARD=152]=\"SEASONAL_RESIDENT_IDENTITY_CARD\",e[e.SEASONAL_CITIZEN_IDENTITY_CARD=153]=\"SEASONAL_CITIZEN_IDENTITY_CARD\",e[e.SEX_OFFENDER=154]=\"SEX_OFFENDER\",e[e.SOCIAL_SECURITY_CARD=155]=\"SOCIAL_SECURITY_CARD\",e[e.TEMPORARY_DRIVING_LICENSE=156]=\"TEMPORARY_DRIVING_LICENSE\",e[e.TEMPORARY_DRIVING_LICENSE_UNDER_18=157]=\"TEMPORARY_DRIVING_LICENSE_UNDER_18\",e[e.TEMPORARY_DRIVING_LICENSE_UNDER_21=158]=\"TEMPORARY_DRIVING_LICENSE_UNDER_21\",e[e.TEMPORARY_IDENTITY_CARD=159]=\"TEMPORARY_IDENTITY_CARD\",e[e.TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD=160]=\"TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD\",e[e.TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_18=161]=\"TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_18\",e[e.TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_21=162]=\"TEMPORARY_INSTRUCTION_PERMIT_IDENTITY_CARD_UNDER_21\",e[e.TEMPORARY_VISITOR_DRIVING_LICENSE=163]=\"TEMPORARY_VISITOR_DRIVING_LICENSE\",e[e.TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_18=164]=\"TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_18\",e[e.TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_21=165]=\"TEMPORARY_VISITOR_DRIVING_LICENSE_UNDER_21\",e[e.UNIFORMED_SERVICES_IDENTITY_CARD=166]=\"UNIFORMED_SERVICES_IDENTITY_CARD\",e[e.VEHICLE_SALES_PERSON_LICENSE=167]=\"VEHICLE_SALES_PERSON_LICENSE\",e[e.WORKER_IDENTIFICATION_CREDENTIAL=168]=\"WORKER_IDENTIFICATION_CREDENTIAL\",e[e.COMMERCIAL_DRIVING_LICENSE_NOVICE=169]=\"COMMERCIAL_DRIVING_LICENSE_NOVICE\",e[e.COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_18=170]=\"COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_18\",e[e.COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_21=171]=\"COMMERCIAL_DRIVING_LICENSE_NOVICE_UNDER_21\",e[e.PASSPORT_CARD=172]=\"PASSPORT_CARD\",e[e.PASSPORT_RESIDENT_CARD=173]=\"PASSPORT_RESIDENT_CARD\",e[e.PERSONAL_IDENTIFICATION_VERIFICATION=174]=\"PERSONAL_IDENTIFICATION_VERIFICATION\",e[e.TEMPORARY_OPERATOR_LICENSE=175]=\"TEMPORARY_OPERATOR_LICENSE\",e[e.DRIVING_LICENSE_UNDER_19=176]=\"DRIVING_LICENSE_UNDER_19\",e[e.IDENTITY_CARD_UNDER_19=177]=\"IDENTITY_CARD_UNDER_19\",e[e.VISA=178]=\"VISA\",e[e.TEMPORARY_PASSPORT=179]=\"TEMPORARY_PASSPORT\",e[e.VOTING_CARD=180]=\"VOTING_CARD\",e[e.HEALTH_CARD=181]=\"HEALTH_CARD\",e[e.CERTIFICATE_OF_CITIZENSHIP=182]=\"CERTIFICATE_OF_CITIZENSHIP\",e[e.ADDRESS_CARD=183]=\"ADDRESS_CARD\",e[e.AIRPORT_IMMIGRATION_CARD=184]=\"AIRPORT_IMMIGRATION_CARD\",e[e.ALIEN_REGISTRATION_CARD=185]=\"ALIEN_REGISTRATION_CARD\",e[e.APEH_CARD=186]=\"APEH_CARD\",e[e.COUPON_TO_DRIVING_LICENSE=187]=\"COUPON_TO_DRIVING_LICENSE\",e[e.CREW_MEMBER_CERTIFICATE=188]=\"CREW_MEMBER_CERTIFICATE\",e[e.DOCUMENT_FOR_RETURN=189]=\"DOCUMENT_FOR_RETURN\",e[e.E_CARD=190]=\"E_CARD\",e[e.EMPLOYMENT_CARD=191]=\"EMPLOYMENT_CARD\",e[e.HKSAR_IMMIGRATION_FORM=192]=\"HKSAR_IMMIGRATION_FORM\",e[e.IMMIGRANT_CARD=193]=\"IMMIGRANT_CARD\",e[e.LABOUR_CARD=194]=\"LABOUR_CARD\",e[e.LAISSEZ_PASSER=195]=\"LAISSEZ_PASSER\",e[e.LAWYER_IDENTITY_CERTIFICATE=196]=\"LAWYER_IDENTITY_CERTIFICATE\",e[e.LICENSE_CARD=197]=\"LICENSE_CARD\",e[e.PASSPORT_STATELESS=198]=\"PASSPORT_STATELESS\",e[e.PASSPORT_CHILD=199]=\"PASSPORT_CHILD\",e[e.PASSPORT_CONSULAR=200]=\"PASSPORT_CONSULAR\",e[e.PASSPORT_DIPLOMATIC_SERVICE=201]=\"PASSPORT_DIPLOMATIC_SERVICE\",e[e.PASSPORT_OFFICIAL=202]=\"PASSPORT_OFFICIAL\",e[e.PASSPORT_PROVISIONAL=203]=\"PASSPORT_PROVISIONAL\",e[e.PASSPORT_SPECIAL=204]=\"PASSPORT_SPECIAL\",e[e.PERMISSION_TO_THE_LOCAL_BORDER_TRAFFIC=205]=\"PERMISSION_TO_THE_LOCAL_BORDER_TRAFFIC\",e[e.REGISTRATION_CERTIFICATE=206]=\"REGISTRATION_CERTIFICATE\",e[e.SEDESOL_CARD=207]=\"SEDESOL_CARD\",e[e.SOCIAL_CARD=208]=\"SOCIAL_CARD\",e[e.TB_CARD=209]=\"TB_CARD\",e[e.VEHICLE_PASSPORT=210]=\"VEHICLE_PASSPORT\",e[e.W_DOCUMENT=211]=\"W_DOCUMENT\",e[e.DIPLOMATIC_IDENTITY_CARD=212]=\"DIPLOMATIC_IDENTITY_CARD\",e[e.CONSULAR_IDENTITY_CARD=213]=\"CONSULAR_IDENTITY_CARD\",e[e.INCOME_TAX_CARD=214]=\"INCOME_TAX_CARD\",e[e.RESIDENCE_PERMIT=215]=\"RESIDENCE_PERMIT\",e[e.DOCUMENT_OF_IDENTITY=216]=\"DOCUMENT_OF_IDENTITY\",e[e.BORDER_CROSSING_PERMIT=217]=\"BORDER_CROSSING_PERMIT\",e[e.PASSPORT_LIMITED_VALIDITY=218]=\"PASSPORT_LIMITED_VALIDITY\",e[e.SIM_CARD=219]=\"SIM_CARD\",e[e.TAX_CARD=220]=\"TAX_CARD\",e[e.COMPANY_CARD=221]=\"COMPANY_CARD\",e[e.DOMESTIC_PASSPORT=222]=\"DOMESTIC_PASSPORT\",e[e.IDENTITY_CERTIFICATE=223]=\"IDENTITY_CERTIFICATE\",e[e.RESIDENT_ID_CARD=224]=\"RESIDENT_ID_CARD\",e[e.ARMED_FORCES_IDENTITY_CARD=225]=\"ARMED_FORCES_IDENTITY_CARD\",e[e.PROFESSIONAL_CARD=226]=\"PROFESSIONAL_CARD\",e[e.REGISTRATION_STAMP=227]=\"REGISTRATION_STAMP\",e[e.DRIVER_CARD=228]=\"DRIVER_CARD\",e[e.DRIVER_TRAINING_CERTIFICATE=229]=\"DRIVER_TRAINING_CERTIFICATE\",e[e.QUALIFICATION_DRIVING_LICENSE=230]=\"QUALIFICATION_DRIVING_LICENSE\",e[e.MEMBERSHIP_CARD=231]=\"MEMBERSHIP_CARD\",e[e.PUBLIC_VEHICLE_DRIVER_AUTHORITY_CARD=232]=\"PUBLIC_VEHICLE_DRIVER_AUTHORITY_CARD\",e[e.MARINE_LICENSE=233]=\"MARINE_LICENSE\",e[e.TEMPORARY_LEARNER_LICENSE=234]=\"TEMPORARY_LEARNER_LICENSE\",e[e.TEMPORARY_COMMERCIAL_DRIVING_LICENSE=235]=\"TEMPORARY_COMMERCIAL_DRIVING_LICENSE\",e[e.INTERIM_INSTRUCTIONAL_PERMIT=236]=\"INTERIM_INSTRUCTIONAL_PERMIT\",e[e.CERTIFICATE_OF_COMPETENCY=237]=\"CERTIFICATE_OF_COMPETENCY\",e[e.CERTIFICATE_OF_PROFICIENCY=238]=\"CERTIFICATE_OF_PROFICIENCY\",e[e.TRADE_LICENSE=239]=\"TRADE_LICENSE\",e[e.PASSPORT_PAGE=240]=\"PASSPORT_PAGE\"}(Hr||(Hr={})),function(e){e[e.OK=0]=\"OK\",e[e.UNKNOWN=15]=\"UNKNOWN\",e[e.NEED_MORE_IMAGES=29]=\"NEED_MORE_IMAGES\"}(jr||(jr={})),function(e){e[e.PORTRAIT=201]=\"PORTRAIT\",e[e.FINGERPRINT=202]=\"FINGERPRINT\",e[e.EYE=203]=\"EYE\",e[e.SIGNATURE=204]=\"SIGNATURE\",e[e.BAR_CODE=205]=\"BAR_CODE\",e[e.PROOF_OF_CITIZENSHIP=206]=\"PROOF_OF_CITIZENSHIP\",e[e.DOCUMENT_FRONT=207]=\"DOCUMENT_FRONT\",e[e.DOCUMENT_REAR=208]=\"DOCUMENT_REAR\",e[e.COLOR_DYNAMIC=209]=\"COLOR_DYNAMIC\",e[e.GHOST_PORTRAIT=210]=\"GHOST_PORTRAIT\",e[e.STAMP=211]=\"STAMP\",e[e.OTHER=250]=\"OTHER\",e[e.FINGER_LEFT_THUMB=300]=\"FINGER_LEFT_THUMB\",e[e.FINGER_LEFT_INDEX=301]=\"FINGER_LEFT_INDEX\",e[e.FINGER_LEFT_MIDDLE=302]=\"FINGER_LEFT_MIDDLE\",e[e.FINGER_LEFT_RING=303]=\"FINGER_LEFT_RING\",e[e.FINGER_LEFT_LITTLE=304]=\"FINGER_LEFT_LITTLE\",e[e.FINGER_RIGHT_THUMB=305]=\"FINGER_RIGHT_THUMB\",e[e.FINGER_RIGHT_INDEX=306]=\"FINGER_RIGHT_INDEX\",e[e.FINGER_RIGHT_MIDDLE=307]=\"FINGER_RIGHT_MIDDLE\",e[e.FINGER_RIGHT_RING=308]=\"FINGER_RIGHT_RING\",e[e.FINGER_RIGHT_LITTLE=309]=\"FINGER_RIGHT_LITTLE\",e[e.FINGER_RIGHT_FOUR_FINGERS=313]=\"FINGER_RIGHT_FOUR_FINGERS\",e[e.FINGER_LEFT_FOUR_FINGERS=314]=\"FINGER_LEFT_FOUR_FINGERS\",e[e.FINGER_TWO_THUMBS=315]=\"FINGER_TWO_THUMBS\"}(Br||(Br={})),function(e){e[e.ImageGlares=0]=\"ImageGlares\",e[e.ImageFocus=1]=\"ImageFocus\",e[e.ImageResolution=2]=\"ImageResolution\",e[e.ImageColorness=3]=\"ImageColorness\",e[e.Perspective=4]=\"Perspective\",e[e.Bounds=5]=\"Bounds\",e[e.ScreenCapture=6]=\"ScreenCapture\",e[e.Portrait=7]=\"Portrait\"}(Gr||(Gr={})),function(e){e[e.LATIN=0]=\"LATIN\",e[e.AFRIKAANS=1078]=\"AFRIKAANS\",e[e.ALBANIAN=1052]=\"ALBANIAN\",e[e.ARABIC_ALGERIA=5121]=\"ARABIC_ALGERIA\",e[e.ARABIC_BAHRAIN=15361]=\"ARABIC_BAHRAIN\",e[e.ARABIC_EGYPT=3073]=\"ARABIC_EGYPT\",e[e.ARABIC_IRAQ=2049]=\"ARABIC_IRAQ\",e[e.ARABIC_JORDAN=11265]=\"ARABIC_JORDAN\",e[e.ARABIC_KUWAIT=13313]=\"ARABIC_KUWAIT\",e[e.ARABIC_LEBANON=12289]=\"ARABIC_LEBANON\",e[e.ARABIC_LIBYA=4097]=\"ARABIC_LIBYA\",e[e.ARABIC_MOROCCO=6145]=\"ARABIC_MOROCCO\",e[e.ARABIC_OMAN=8193]=\"ARABIC_OMAN\",e[e.ARABIC_QATAR=16385]=\"ARABIC_QATAR\",e[e.ARABIC_SAUDI_ARABIA=1025]=\"ARABIC_SAUDI_ARABIA\",e[e.ARABIC_SYRIA=10241]=\"ARABIC_SYRIA\",e[e.ARABIC_TUNISIA=7169]=\"ARABIC_TUNISIA\",e[e.ARABIC_UAE=4337]=\"ARABIC_UAE\",e[e.ARABIC_YEMEN=9217]=\"ARABIC_YEMEN\",e[e.ARABIC_ARMENIAN=1067]=\"ARABIC_ARMENIAN\",e[e.AZERI_CYRILIC=2092]=\"AZERI_CYRILIC\",e[e.AZERI_LATIN=1068]=\"AZERI_LATIN\",e[e.BASQUE=1069]=\"BASQUE\",e[e.BELARUSIAN=1059]=\"BELARUSIAN\",e[e.BULGARIAN=1026]=\"BULGARIAN\",e[e.CATALAN=1027]=\"CATALAN\",e[e.CHINESE_HONGKONG_SAR=3076]=\"CHINESE_HONGKONG_SAR\",e[e.CHINESE_MACAO_SAR=5124]=\"CHINESE_MACAO_SAR\",e[e.CHINESE=2052]=\"CHINESE\",e[e.CHINESE_SINGAPORE=4100]=\"CHINESE_SINGAPORE\",e[e.CHINESE_TAIWAN=1028]=\"CHINESE_TAIWAN\",e[e.CROATIAN=1050]=\"CROATIAN\",e[e.CZECH=1029]=\"CZECH\",e[e.DANISH=1030]=\"DANISH\",e[e.DIVEHI=1125]=\"DIVEHI\",e[e.DUTCH_BELGIUM=2067]=\"DUTCH_BELGIUM\",e[e.DUTCH_NETHERLANDS=1043]=\"DUTCH_NETHERLANDS\",e[e.ENGLISH_AUSTRALIA=3081]=\"ENGLISH_AUSTRALIA\",e[e.ENGLISH_BELIZE=10249]=\"ENGLISH_BELIZE\",e[e.ENGLISH_CANADA=4105]=\"ENGLISH_CANADA\",e[e.ENGLISH_CARRIBEAN=9225]=\"ENGLISH_CARRIBEAN\",e[e.ENGLISH_IRELAND=6153]=\"ENGLISH_IRELAND\",e[e.ENGLISH_JAMAICA=8201]=\"ENGLISH_JAMAICA\",e[e.ENGLISH_NEW_ZEALAND=5129]=\"ENGLISH_NEW_ZEALAND\",e[e.ENGLISH_PHILIPPINES=13321]=\"ENGLISH_PHILIPPINES\",e[e.ENGLISH_SOUTH_AFRICA=7177]=\"ENGLISH_SOUTH_AFRICA\",e[e.ENGLISH_TRINIDAD=11273]=\"ENGLISH_TRINIDAD\",e[e.ENGLISH_UK=2057]=\"ENGLISH_UK\",e[e.ENGLISH_US=1033]=\"ENGLISH_US\",e[e.ENGLISH_ZIMBABWE=12297]=\"ENGLISH_ZIMBABWE\",e[e.ESTONIAN=1061]=\"ESTONIAN\",e[e.FAEROESE=1080]=\"FAEROESE\",e[e.FARSI=1065]=\"FARSI\",e[e.FINNISH=1035]=\"FINNISH\",e[e.FRENCH_BELGIUM=2060]=\"FRENCH_BELGIUM\",e[e.FRENCH_CANADA=3084]=\"FRENCH_CANADA\",e[e.FRENCH_FRANCE=1036]=\"FRENCH_FRANCE\",e[e.FRENCH_LUXEMBOURG=5132]=\"FRENCH_LUXEMBOURG\",e[e.FRENCH_MONACO=6156]=\"FRENCH_MONACO\",e[e.FRENCH_SWITZERLAND=4108]=\"FRENCH_SWITZERLAND\",e[e.FYRO_MACEDONIAN=1071]=\"FYRO_MACEDONIAN\",e[e.GALICIAN=1110]=\"GALICIAN\",e[e.GEORGIAN=1079]=\"GEORGIAN\",e[e.GERMAN_AUSTRIA=3079]=\"GERMAN_AUSTRIA\",e[e.GERMAN_GERMANY=1031]=\"GERMAN_GERMANY\",e[e.GERMAN_LIECHTENSTEIN=5127]=\"GERMAN_LIECHTENSTEIN\",e[e.GERMAN_LUXEMBOURG=4103]=\"GERMAN_LUXEMBOURG\",e[e.GERMAN_SWITZERLAND=2055]=\"GERMAN_SWITZERLAND\",e[e.GREEK=1032]=\"GREEK\",e[e.GUJARATI=1095]=\"GUJARATI\",e[e.HEBREW=1037]=\"HEBREW\",e[e.HINDI_INDIA=1081]=\"HINDI_INDIA\",e[e.HUNGARIAN=1038]=\"HUNGARIAN\",e[e.ICELANDIC=1039]=\"ICELANDIC\",e[e.INDONESIAN=1057]=\"INDONESIAN\",e[e.ITALIAN_ITALY=1040]=\"ITALIAN_ITALY\",e[e.ITALIAN_SWITZERLAND=2064]=\"ITALIAN_SWITZERLAND\",e[e.JAPANESE=1041]=\"JAPANESE\",e[e.KANNADA=1099]=\"KANNADA\",e[e.KAZAKH=1087]=\"KAZAKH\",e[e.KONKANI=1111]=\"KONKANI\",e[e.KOREAN=1042]=\"KOREAN\",e[e.KYRGYZ_CYRILICK=1088]=\"KYRGYZ_CYRILICK\",e[e.LATVIAN=1062]=\"LATVIAN\",e[e.LITHUANIAN=1063]=\"LITHUANIAN\",e[e.MALAY_MALAYSIA=1086]=\"MALAY_MALAYSIA\",e[e.MALAY_BRUNEI_DARUSSALAM=2110]=\"MALAY_BRUNEI_DARUSSALAM\",e[e.MARATHI=1102]=\"MARATHI\",e[e.MONGOLIAN_CYRILIC=1104]=\"MONGOLIAN_CYRILIC\",e[e.NORWEGIAN_BOKMAL=1044]=\"NORWEGIAN_BOKMAL\",e[e.NORWEGIAN_NYORSK=2068]=\"NORWEGIAN_NYORSK\",e[e.POLISH=1045]=\"POLISH\",e[e.PORTUGUESE_BRAZIL=1046]=\"PORTUGUESE_BRAZIL\",e[e.PORTUGUESE_PORTUGAL=2070]=\"PORTUGUESE_PORTUGAL\",e[e.PUNJABI=1094]=\"PUNJABI\",e[e.RHAETO_ROMANIC=1047]=\"RHAETO_ROMANIC\",e[e.ROMANIAN=1048]=\"ROMANIAN\",e[e.RUSSIAN=1049]=\"RUSSIAN\",e[e.SANSKRIT=1103]=\"SANSKRIT\",e[e.SERBIAN_CYRILIC=3098]=\"SERBIAN_CYRILIC\",e[e.SERBIAN_LATIN=2074]=\"SERBIAN_LATIN\",e[e.SLOVAK=1051]=\"SLOVAK\",e[e.SLOVENIAN=1060]=\"SLOVENIAN\",e[e.SPANISH_ARGENTINA=11274]=\"SPANISH_ARGENTINA\",e[e.SPANISH_BOLIVIA=16394]=\"SPANISH_BOLIVIA\",e[e.SPANISH_CHILE=13322]=\"SPANISH_CHILE\",e[e.SPANICH_COLOMBIA=9226]=\"SPANICH_COLOMBIA\",e[e.SPANISH_COSTA_RICA=5130]=\"SPANISH_COSTA_RICA\",e[e.SPANISH_DOMINICAN_REPUBLIC=7178]=\"SPANISH_DOMINICAN_REPUBLIC\",e[e.SPANISH_ECUADOR=12298]=\"SPANISH_ECUADOR\",e[e.SPANISH_EL_SALVADOR=17418]=\"SPANISH_EL_SALVADOR\",e[e.SPANISH_GUATEMALA=4106]=\"SPANISH_GUATEMALA\",e[e.SPANISH_HONDURAS=18442]=\"SPANISH_HONDURAS\",e[e.SPANISH_MEXICO=2058]=\"SPANISH_MEXICO\",e[e.SPANISH_NICARAGUA=19466]=\"SPANISH_NICARAGUA\",e[e.SPANISH_PANAMA=6154]=\"SPANISH_PANAMA\",e[e.SPANISH_PARAGUAY=15370]=\"SPANISH_PARAGUAY\",e[e.SPANISH_PERU=10250]=\"SPANISH_PERU\",e[e.SPANISH_PUERTO_RICO=20490]=\"SPANISH_PUERTO_RICO\",e[e.SPANISH_TRADITIONAL_SORT=1034]=\"SPANISH_TRADITIONAL_SORT\",e[e.SPANISH_INTERNATIONAL_SORT=3082]=\"SPANISH_INTERNATIONAL_SORT\",e[e.SPANISH_URUGUAY=14346]=\"SPANISH_URUGUAY\",e[e.SPANISH_VENEZUELA=8202]=\"SPANISH_VENEZUELA\",e[e.SWAHILI=1089]=\"SWAHILI\",e[e.SWEDISH=1053]=\"SWEDISH\",e[e.SWEDISH_FINLAND=2077]=\"SWEDISH_FINLAND\",e[e.SYRIAC=1114]=\"SYRIAC\",e[e.TAMIL=1097]=\"TAMIL\",e[e.TATAR=1092]=\"TATAR\",e[e.TELUGU=1098]=\"TELUGU\",e[e.THAI_THAILAND=1054]=\"THAI_THAILAND\",e[e.TURKISH=1055]=\"TURKISH\",e[e.TAJIK_CYRILLIC=1064]=\"TAJIK_CYRILLIC\",e[e.TURKMEN=1090]=\"TURKMEN\",e[e.UKRAINIAN=1058]=\"UKRAINIAN\",e[e.URDU=1056]=\"URDU\",e[e.UZBEK_CYRILIC=2115]=\"UZBEK_CYRILIC\",e[e.UZBEK_LATIN=1091]=\"UZBEK_LATIN\",e[e.VIETNAMESE=1066]=\"VIETNAMESE\",e[e.CTC_SIMPLIFIED=50001]=\"CTC_SIMPLIFIED\",e[e.CTC_TRADITIONAL=50002]=\"CTC_TRADITIONAL\"}(Vr||(Vr={})),function(e){e[e.OFF=0]=\"OFF\",e[e.WHITE=6]=\"WHITE\",e[e.IR=24]=\"IR\",e[e.UV=128]=\"UV\"}(zr||(zr={})),function(e){e.FATAL_ERROR=\"FatalError\",e.ERROR=\"Error\",e.WARNING=\"Warning\",e.INFO=\"Info\",e.DEBUG=\"Debug\"}(Yr||(Yr={})),function(e){e.IDL=\"1x30\",e.ID1=\"3x30\",e.ID2=\"2x36\",e.ID3=\"2x44\",e.CAN=\"1x6\",e.ID1_2_30=\"2x30\"}(Wr||(Wr={})),function(e){e[e.METRIC=0]=\"METRIC\",e[e.IMPERIAL=1]=\"IMPERIAL\"}(Kr||(Kr={})),function(e){e[e.NOT_FINISHED=0]=\"NOT_FINISHED\",e[e.FINISHED=1]=\"FINISHED\",e[e.TIMEOUT=2]=\"TIMEOUT\"}(Zr||(Zr={})),function(e){e[e.DOCUMENT_IMAGE=1]=\"DOCUMENT_IMAGE\",e[e.IMAGE_QUALITY=30]=\"IMAGE_QUALITY\",e[e.STATUS=33]=\"STATUS\",e[e.TEXT=36]=\"TEXT\",e[e.IMAGES=37]=\"IMAGES\",e[e.MRZ_TEXT=3]=\"MRZ_TEXT\",e[e.VISUAL_TEXT=17]=\"VISUAL_TEXT\",e[e.BARCODE_TEXT=18]=\"BARCODE_TEXT\",e[e.RFID_TEXT=102]=\"RFID_TEXT\",e[e.LEXICAL_ANALYSIS=15]=\"LEXICAL_ANALYSIS\",e[e.VISUAL_GRAPHICS=6]=\"VISUAL_GRAPHICS\",e[e.BARCODE_GRAPHICS=19]=\"BARCODE_GRAPHICS\",e[e.RFID_GRAPHICS=103]=\"RFID_GRAPHICS\",e[e.DOCUMENT_TYPE_CANDIDATES=8]=\"DOCUMENT_TYPE_CANDIDATES\",e[e.DOCUMENT_TYPE=9]=\"DOCUMENT_TYPE\",e[e.AUTHENTICITY=20]=\"AUTHENTICITY\",e[e.DOCUMENT_POSITION=85]=\"DOCUMENT_POSITION\",e[e.BARCODES=5]=\"BARCODES\",e[e.LICENSE=50]=\"LICENSE\",e[e.ENCRYPTED_RCL=49]=\"ENCRYPTED_RCL\"}(qr||(qr={})),function(e){e[e.NONE=0]=\"NONE\",e[e.MAIN_PAGE=1]=\"MAIN_PAGE\",e[e.BACK_PAGE=2]=\"BACK_PAGE\"}(Xr||(Xr={})),function(e){e.MRZ=\"Mrz\",e.BARCODE=\"Barcode\",e.LOCATE=\"Locate\",e.OCR=\"Ocr\",e.DOCTYPE=\"DocType\",e.MRZ_OR_BARCODE=\"MrzOrBarcode\",e.MRZ_OR_LOCATE=\"MrzOrLocate\",e.MRZ_AND_LOCATE=\"MrzAndLocate\",e.MRZ_OR_OCR=\"MrzOrOcr\",e.MRZ_OR_BARCODE_OR_OCR=\"MrzOrBarcodeOrOcr\",e.LOCATE_VISUAL_AND_MRZ_OR_OCR=\"LocateVisual_And_MrzOrOcr\",e.FULL_PROCESS=\"FullProcess\",e.FULL_AUTH=\"FullAuth\",e.ID3RUS=\"Id3Rus\",e.RUS_STAMP=\"RusStamp\",e.OCR_FREE=\"OcrFree\",e.CREDIT_CARD=\"CreditCard\",e.CAPTURE=\"Capture\"}(Jr||(Jr={})),function(e){e[e.BLANK=0]=\"BLANK\",e[e.FILL=1]=\"FILL\",e[e.PHOTO=2]=\"PHOTO\",e[e.MRZ=3]=\"MRZ\",e[e.FALSE_LUMINESCENCE=4]=\"FALSE_LUMINESCENCE\",e[e.HOLO_SIMPLE=5]=\"HOLO_SIMPLE\",e[e.HOLO_VERIFY_STATIC=6]=\"HOLO_VERIFY_STATIC\",e[e.HOLO_VERIFY_MULTI_STATIC=7]=\"HOLO_VERIFY_MULTI_STATIC\",e[e.HOLO_VERIFY_DYNAMIC=8]=\"HOLO_VERIFY_DYNAMIC\",e[e.PATTERN_NOT_INTERRUPTED=9]=\"PATTERN_NOT_INTERRUPTED\",e[e.PATTERN_NOT_SHIFTED=10]=\"PATTERN_NOT_SHIFTED\",e[e.PATTERN_SAME_COLORS=11]=\"PATTERN_SAME_COLORS\",e[e.PATTERN_IR_INVISIBLE=12]=\"PATTERN_IR_INVISIBLE\",e[e.PHOTO_SIZE_CHECK=13]=\"PHOTO_SIZE_CHECK\",e[e.PORTRAIT_COMPARISON_VS_GHOST=14]=\"PORTRAIT_COMPARISON_VS_GHOST\",e[e.PORTRAIT_COMPARISON_VS_RFID=15]=\"PORTRAIT_COMPARISON_VS_RFID\",e[e.PORTRAIT_COMPARISON_VS_VISUAL=16]=\"PORTRAIT_COMPARISON_VS_VISUAL\",e[e.BARCODE=17]=\"BARCODE\",e[e.PATTERN_DIFFERENT_LINES_THICKNESS=18]=\"PATTERN_DIFFERENT_LINES_THICKNESS\",e[e.PORTRAIT_COMPARISON_VS_CAMERA=19]=\"PORTRAIT_COMPARISON_VS_CAMERA\",e[e.PORTRAIT_COMPARISON_RFID_VS_CAMERA=20]=\"PORTRAIT_COMPARISON_RFID_VS_CAMERA\",e[e.GHOST_PHOTO=21]=\"GHOST_PHOTO\",e[e.CLEAR_GHOST_PHOTO=22]=\"CLEAR_GHOST_PHOTO\",e[e.INVISIBLE_OBJECT=23]=\"INVISIBLE_OBJECT\",e[e.LOW_CONTRAST_OBJECT=24]=\"LOW_CONTRAST_OBJECT\",e[e.PHOTO_COLOR=25]=\"PHOTO_COLOR\",e[e.PHOTO_SHAPE=26]=\"PHOTO_SHAPE\",e[e.PHOTO_CORNERS=27]=\"PHOTO_CORNERS\",e[e.PORTRAIT_COMPARISON_EXT_VS_VISUAL=29]=\"PORTRAIT_COMPARISON_EXT_VS_VISUAL\",e[e.PORTRAIT_COMPARISON_EXT_VS_RFID=30]=\"PORTRAIT_COMPARISON_EXT_VS_RFID\",e[e.PORTRAIT_COMPARISON_EXT_VS_CAMERA=31]=\"PORTRAIT_COMPARISON_EXT_VS_CAMERA\"}(Qr||(Qr={})),function(e){e.MRZ=\"MRZ\",e.VISUAL=\"VISUAL\",e.BARCODE=\"BARCODE\",e.RFID=\"RFID\",e.MAGNETIC=\"MAGNETIC\"}($r||($r={})),function(e){e[e.DOCUMENT_CLASS_CODE=0]=\"DOCUMENT_CLASS_CODE\",e[e.ISSUING_STATE_CODE=1]=\"ISSUING_STATE_CODE\",e[e.DOCUMENT_NUMBER=2]=\"DOCUMENT_NUMBER\",e[e.DATE_OF_EXPIRY=3]=\"DATE_OF_EXPIRY\",e[e.DATE_OF_ISSUE=4]=\"DATE_OF_ISSUE\",e[e.DATE_OF_BIRTH=5]=\"DATE_OF_BIRTH\",e[e.PLACE_OF_BIRTH=6]=\"PLACE_OF_BIRTH\",e[e.PERSONAL_NUMBER=7]=\"PERSONAL_NUMBER\",e[e.SURNAME=8]=\"SURNAME\",e[e.GIVEN_NAME=9]=\"GIVEN_NAME\",e[e.MOTHERS_NAME=10]=\"MOTHERS_NAME\",e[e.NATIONALITY=11]=\"NATIONALITY\",e[e.SEX=12]=\"SEX\",e[e.HEIGHT=13]=\"HEIGHT\",e[e.WEIGHT=14]=\"WEIGHT\",e[e.EYES_COLOR=15]=\"EYES_COLOR\",e[e.HAIR_COLOR=16]=\"HAIR_COLOR\",e[e.ADDRESS=17]=\"ADDRESS\",e[e.DONOR=18]=\"DONOR\",e[e.SOCIAL_SECURITY_NUMBER=19]=\"SOCIAL_SECURITY_NUMBER\",e[e.DL_CLASS=20]=\"DL_CLASS\",e[e.DL_ENDORSED=21]=\"DL_ENDORSED\",e[e.DL_RESTRICTION_CODE=22]=\"DL_RESTRICTION_CODE\",e[e.DL_UNDER_21_DATE=23]=\"DL_UNDER_21_DATE\",e[e.AUTHORITY=24]=\"AUTHORITY\",e[e.SURNAME_AND_GIVEN_NAMES=25]=\"SURNAME_AND_GIVEN_NAMES\",e[e.NATIONALITY_CODE=26]=\"NATIONALITY_CODE\",e[e.PASSPORT_NUMBER=27]=\"PASSPORT_NUMBER\",e[e.INVITATION_NUMBER=28]=\"INVITATION_NUMBER\",e[e.VISA_ID=29]=\"VISA_ID\",e[e.VISA_CLASS=30]=\"VISA_CLASS\",e[e.VISA_SUBCLASS=31]=\"VISA_SUBCLASS\",e[e.MRZ_TYPE=35]=\"MRZ_TYPE\",e[e.OPTIONAL_DATA=36]=\"OPTIONAL_DATA\",e[e.DOCUMENT_CLASS_NAME=37]=\"DOCUMENT_CLASS_NAME\",e[e.ISSUING_STATE_NAME=38]=\"ISSUING_STATE_NAME\",e[e.PLACE_OF_ISSUE=39]=\"PLACE_OF_ISSUE\",e[e.DOCUMENT_NUMBER_CHECKSUM=40]=\"DOCUMENT_NUMBER_CHECKSUM\",e[e.DATE_OF_BIRTH_CHECKSUM=41]=\"DATE_OF_BIRTH_CHECKSUM\",e[e.DATE_OF_EXPIRY_CHECKSUM=42]=\"DATE_OF_EXPIRY_CHECKSUM\",e[e.PERSONAL_NUMBER_CHECKSUM=43]=\"PERSONAL_NUMBER_CHECKSUM\",e[e.FINAL_CHECKSUM=44]=\"FINAL_CHECKSUM\",e[e.PASSPORT_NUMBER_CHECKSUM=45]=\"PASSPORT_NUMBER_CHECKSUM\",e[e.INVITATION_NUMBER_CHECKSUM=46]=\"INVITATION_NUMBER_CHECKSUM\",e[e.VISA_ID_CHECKSUM=47]=\"VISA_ID_CHECKSUM\",e[e.SURNAME_AND_GIVEN_NAME_CHECKSUM=48]=\"SURNAME_AND_GIVEN_NAME_CHECKSUM\",e[e.VISA_VALID_UNTIL_CHECKSUM=49]=\"VISA_VALID_UNTIL_CHECKSUM\",e[e.OTHER=50]=\"OTHER\",e[e.MRZ_STRINGS=51]=\"MRZ_STRINGS\",e[e.NAME_SUFFIX=52]=\"NAME_SUFFIX\",e[e.NAME_PREFIX=53]=\"NAME_PREFIX\",e[e.DATE_OF_ISSUE_CHECKSUM=54]=\"DATE_OF_ISSUE_CHECKSUM\",e[e.DATE_OF_ISSUE_CHECK_DIGIT=55]=\"DATE_OF_ISSUE_CHECK_DIGIT\",e[e.DOCUMENT_SERIES=56]=\"DOCUMENT_SERIES\",e[e.REG_CERT_REG_NUMBER=57]=\"REG_CERT_REG_NUMBER\",e[e.REG_CERT_CAR_MODEL=58]=\"REG_CERT_CAR_MODEL\",e[e.REG_CERT_CAR_COLOR=59]=\"REG_CERT_CAR_COLOR\",e[e.REG_CERT_BODY_NUMBER=60]=\"REG_CERT_BODY_NUMBER\",e[e.REG_CERT_CAR_TYPE=61]=\"REG_CERT_CAR_TYPE\",e[e.REG_CERT_MAX_WEIGHT=62]=\"REG_CERT_MAX_WEIGHT\",e[e.REG_CERT_WEIGHT=63]=\"REG_CERT_WEIGHT\",e[e.ADDRESS_AREA=64]=\"ADDRESS_AREA\",e[e.ADDRESS_STATE=65]=\"ADDRESS_STATE\",e[e.ADDRESS_BUILDING=66]=\"ADDRESS_BUILDING\",e[e.ADDRESS_HOUSE=67]=\"ADDRESS_HOUSE\",e[e.ADDRESS_FLAT=68]=\"ADDRESS_FLAT\",e[e.PLACE_OF_REGISTRATION=69]=\"PLACE_OF_REGISTRATION\",e[e.DATE_OF_REGISTRATION=70]=\"DATE_OF_REGISTRATION\",e[e.RESIDENT_FROM=71]=\"RESIDENT_FROM\",e[e.RESIDENT_UNTIL=72]=\"RESIDENT_UNTIL\",e[e.AUTHORITY_CODE=73]=\"AUTHORITY_CODE\",e[e.PLACE_OF_BIRTH_AREA=74]=\"PLACE_OF_BIRTH_AREA\",e[e.PLACE_OF_BIRTH_STATE_CODE=75]=\"PLACE_OF_BIRTH_STATE_CODE\",e[e.ADDRESS_STREET=76]=\"ADDRESS_STREET\",e[e.ADDRESS_CITY=77]=\"ADDRESS_CITY\",e[e.ADDRESS_JURISDICTION_CODE=78]=\"ADDRESS_JURISDICTION_CODE\",e[e.ADDRESS_POSTAL_CODE=79]=\"ADDRESS_POSTAL_CODE\",e[e.DOCUMENT_NUMBER_CHECK_DIGIT=80]=\"DOCUMENT_NUMBER_CHECK_DIGIT\",e[e.DATE_OF_BIRTH_CHECK_DIGIT=81]=\"DATE_OF_BIRTH_CHECK_DIGIT\",e[e.DATE_OF_EXPIRY_CHECK_DIGIT=82]=\"DATE_OF_EXPIRY_CHECK_DIGIT\",e[e.PERSONAL_NUMBER_CHECK_DIGIT=83]=\"PERSONAL_NUMBER_CHECK_DIGIT\",e[e.FINAL_CHECK_DIGIT=84]=\"FINAL_CHECK_DIGIT\",e[e.PASSPORT_NUMBER_CHECK_DIGIT=85]=\"PASSPORT_NUMBER_CHECK_DIGIT\",e[e.INVITATION_NUMBER_CHECK_DIGIT=86]=\"INVITATION_NUMBER_CHECK_DIGIT\",e[e.VISA_ID_CHECK_DIGIT=87]=\"VISA_ID_CHECK_DIGIT\",e[e.SURNAME_AND_GIVEN_NAMES_CHECK_DIGIT=88]=\"SURNAME_AND_GIVEN_NAMES_CHECK_DIGIT\",e[e.VISA_VALID_UNTIL_CHECK_DIGIT=89]=\"VISA_VALID_UNTIL_CHECK_DIGIT\",e[e.PERMIT_DL_CLASS=90]=\"PERMIT_DL_CLASS\",e[e.PERMIT_DATE_OF_EXPIRY=91]=\"PERMIT_DATE_OF_EXPIRY\",e[e.PERMIT_IDENTIFIER=92]=\"PERMIT_IDENTIFIER\",e[e.PERMIT_DATE_OF_ISSUE=93]=\"PERMIT_DATE_OF_ISSUE\",e[e.PERMIT_RESTRICTION_CODE=94]=\"PERMIT_RESTRICTION_CODE\",e[e.PERMIT_ENDORSED=95]=\"PERMIT_ENDORSED\",e[e.ISSUE_TIMESTAMP=96]=\"ISSUE_TIMESTAMP\",e[e.NUMBER_OF_DUPLICATES=97]=\"NUMBER_OF_DUPLICATES\",e[e.MEDICAL_INDICATOR_CODES=98]=\"MEDICAL_INDICATOR_CODES\",e[e.NON_RESIDENT_INDICATOR=99]=\"NON_RESIDENT_INDICATOR\",e[e.VISA_TYPE=100]=\"VISA_TYPE\",e[e.VISA_VALID_FROM=101]=\"VISA_VALID_FROM\",e[e.VISA_VALID_UNTIL=102]=\"VISA_VALID_UNTIL\",e[e.DURATION_OF_STAY=103]=\"DURATION_OF_STAY\",e[e.NUMBER_OF_ENTRIES=104]=\"NUMBER_OF_ENTRIES\",e[e.DAY=105]=\"DAY\",e[e.MONTH=106]=\"MONTH\",e[e.YEAR=107]=\"YEAR\",e[e.UNIQUE_CUSTOMER_IDENTIFIER=108]=\"UNIQUE_CUSTOMER_IDENTIFIER\",e[e.COMMERCIAL_VEHICLE_CODES=109]=\"COMMERCIAL_VEHICLE_CODES\",e[e.AKA_DATE_OF_BIRTH=110]=\"AKA_DATE_OF_BIRTH\",e[e.AKA_SOCIAL_SECURITY_NUMBER=111]=\"AKA_SOCIAL_SECURITY_NUMBER\",e[e.AKA_SURNAME=112]=\"AKA_SURNAME\",e[e.AKA_GIVEN_NAMES=113]=\"AKA_GIVEN_NAMES\",e[e.AKA_NAME_SUFFIX=114]=\"AKA_NAME_SUFFIX\",e[e.AKA_NAME_PREFIX=115]=\"AKA_NAME_PREFIX\",e[e.MAILING_ADDRESS_STREET=116]=\"MAILING_ADDRESS_STREET\",e[e.MAILING_ADDRESS_CITY=117]=\"MAILING_ADDRESS_CITY\",e[e.MAILING_ADDRESS_JURISDICTION_CODE=118]=\"MAILING_ADDRESS_JURISDICTION_CODE\",e[e.MAILING_ADDRESS_POSTAL_CODE=119]=\"MAILING_ADDRESS_POSTAL_CODE\",e[e.AUDIT_INFORMATION=120]=\"AUDIT_INFORMATION\",e[e.INVENTORY_NUMBER=121]=\"INVENTORY_NUMBER\",e[e.RACE_ETHNICITY=122]=\"RACE_ETHNICITY\",e[e.JURISDICTION_VEHICLE_CLASS=123]=\"JURISDICTION_VEHICLE_CLASS\",e[e.JURISDICTION_ENDORSEMENT_CODE=124]=\"JURISDICTION_ENDORSEMENT_CODE\",e[e.JURISDICTION_RESTRICTION_CODE=125]=\"JURISDICTION_RESTRICTION_CODE\",e[e.FAMILY_NAME=126]=\"FAMILY_NAME\",e[e.GIVEN_NAMES_RUS=127]=\"GIVEN_NAMES_RUS\",e[e.VISA_ID_RUS=128]=\"VISA_ID_RUS\",e[e.FATHERS_NAME=129]=\"FATHERS_NAME\",e[e.FATHERS_NAME_RUS=130]=\"FATHERS_NAME_RUS\",e[e.SURNAME_AND_GIVEN_NAME_RUS=131]=\"SURNAME_AND_GIVEN_NAME_RUS\",e[e.PLACE_OF_BIRTH_RUS=132]=\"PLACE_OF_BIRTH_RUS\",e[e.AUTHORITY_RUS=133]=\"AUTHORITY_RUS\",e[e.ISSUING_STATE_CODE_NUMERIC=134]=\"ISSUING_STATE_CODE_NUMERIC\",e[e.NATIONALITY_CODE_NUMERIC=135]=\"NATIONALITY_CODE_NUMERIC\",e[e.ENGINE_POWER=136]=\"ENGINE_POWER\",e[e.ENGINE_VOLUME=137]=\"ENGINE_VOLUME\",e[e.CHASSIS_NUMBER=138]=\"CHASSIS_NUMBER\",e[e.ENGINE_NUMBER=139]=\"ENGINE_NUMBER\",e[e.ENGINE_MODEL=140]=\"ENGINE_MODEL\",e[e.VEHICLE_CATEGORY=141]=\"VEHICLE_CATEGORY\",e[e.IDENTITY_CARD_NUMBER=142]=\"IDENTITY_CARD_NUMBER\",e[e.CONTROL_NUMBER=143]=\"CONTROL_NUMBER\",e[e.PARENTS_GIVEN_NAMES=144]=\"PARENTS_GIVEN_NAMES\",e[e.SECOND_SURNAME=145]=\"SECOND_SURNAME\",e[e.MIDDLE_NAME=146]=\"MIDDLE_NAME\",e[e.REG_CERT_VIN=147]=\"REG_CERT_VIN\",e[e.REG_CERT_VIN_CHECK_DIGIT=148]=\"REG_CERT_VIN_CHECK_DIGIT\",e[e.REG_CERT_VIN_CHECKSUM=149]=\"REG_CERT_VIN_CHECKSUM\",e[e.LINE_1_CHECK_DIGIT=150]=\"LINE_1_CHECK_DIGIT\",e[e.LINE_2_CHECK_DIGIT=151]=\"LINE_2_CHECK_DIGIT\",e[e.LINE_3_CHECK_DIGIT=152]=\"LINE_3_CHECK_DIGIT\",e[e.LINE_1_CHECKSUM=153]=\"LINE_1_CHECKSUM\",e[e.LINE_2_CHECKSUM=154]=\"LINE_2_CHECKSUM\",e[e.LINE_3_CHECKSUM=155]=\"LINE_3_CHECKSUM\",e[e.REG_CERT_REG_NUMBER_CHECK_DIGIT=156]=\"REG_CERT_REG_NUMBER_CHECK_DIGIT\",e[e.REG_CERT_REG_NUMBER_CHECKSUM=157]=\"REG_CERT_REG_NUMBER_CHECKSUM\",e[e.REG_CERT_VEHICLE_ITS_CODE=158]=\"REG_CERT_VEHICLE_ITS_CODE\",e[e.CARD_ACCESS_NUMBER=159]=\"CARD_ACCESS_NUMBER\",e[e.MARITAL_STATUS=160]=\"MARITAL_STATUS\",e[e.COMPANY_NAME=161]=\"COMPANY_NAME\",e[e.SPECIAL_NOTES=162]=\"SPECIAL_NOTES\",e[e.SURNAME_OF_SPOUSE=163]=\"SURNAME_OF_SPOUSE\",e[e.TRACKING_NUMBER=164]=\"TRACKING_NUMBER\",e[e.BOOKLET_NUMBER=165]=\"BOOKLET_NUMBER\",e[e.CHILDREN=166]=\"CHILDREN\",e[e.COPY_NUMBER=167]=\"COPY_NUMBER\",e[e.SERIAL_NUMBER=168]=\"SERIAL_NUMBER\",e[e.DOSSIER_NUMBER=169]=\"DOSSIER_NUMBER\",e[e.AKA_SURNAME_AND_GIVEN_NAMES=170]=\"AKA_SURNAME_AND_GIVEN_NAMES\",e[e.TERRITORIAL_VALIDITY=171]=\"TERRITORIAL_VALIDITY\",e[e.MRZ_STRINGS_WITH_CORRECT_CHECK_SUMS=172]=\"MRZ_STRINGS_WITH_CORRECT_CHECK_SUMS\",e[e.DL_CDL_RESTRICTION_CODE=173]=\"DL_CDL_RESTRICTION_CODE\",e[e.DL_UNDER_18_DATE=174]=\"DL_UNDER_18_DATE\",e[e.DL_RECORD_CREATED=175]=\"DL_RECORD_CREATED\",e[e.DL_DUPLICATE_DATE=176]=\"DL_DUPLICATE_DATE\",e[e.DL_ISSUE_TYPE=177]=\"DL_ISSUE_TYPE\",e[e.MILITARY_BOOK_NUMBER=178]=\"MILITARY_BOOK_NUMBER\",e[e.DESTINATION=179]=\"DESTINATION\",e[e.BLOOD_GROUP=180]=\"BLOOD_GROUP\",e[e.SEQUENCE_NUMBER=181]=\"SEQUENCE_NUMBER\",e[e.REG_CERT_BODY_TYPE=182]=\"REG_CERT_BODY_TYPE\",e[e.REG_CERT_CAR_MARK=183]=\"REG_CERT_CAR_MARK\",e[e.TRANSACTION_NUMBER=184]=\"TRANSACTION_NUMBER\",e[e.AGE=185]=\"AGE\",e[e.FOLIO_NUMBER=186]=\"FOLIO_NUMBER\",e[e.VOTER_KEY=187]=\"VOTER_KEY\",e[e.ADDRESS_MUNICIPALITY=188]=\"ADDRESS_MUNICIPALITY\",e[e.ADDRESS_LOCATION=189]=\"ADDRESS_LOCATION\",e[e.SECTION=190]=\"SECTION\",e[e.OCR_NUMBER=191]=\"OCR_NUMBER\",e[e.FEDERAL_ELECTIONS=192]=\"FEDERAL_ELECTIONS\",e[e.REFERENCE_NUMBER=193]=\"REFERENCE_NUMBER\",e[e.OPTIONAL_DATA_CHECKSUM=194]=\"OPTIONAL_DATA_CHECKSUM\",e[e.OPTIONAL_DATA_CHECK_DIGIT=195]=\"OPTIONAL_DATA_CHECK_DIGIT\",e[e.VISA_NUMBER=196]=\"VISA_NUMBER\",e[e.VISA_NUMBER_CHECKSUM=197]=\"VISA_NUMBER_CHECKSUM\",e[e.VISA_NUMBER_CHECK_DIGIT=198]=\"VISA_NUMBER_CHECK_DIGIT\",e[e.VOTER=199]=\"VOTER\",e[e.PREVIOUS_TYPE=200]=\"PREVIOUS_TYPE\",e[e.FIELD_FROM_MRZ=220]=\"FIELD_FROM_MRZ\",e[e.CURRENT_DATE=221]=\"CURRENT_DATE\",e[e.STATUS_DATE_OF_EXPIRY=251]=\"STATUS_DATE_OF_EXPIRY\",e[e.BANK_NOTE_NUMBER=252]=\"BANK_NOTE_NUMBER\",e[e.CSC_CODE=253]=\"CSC_CODE\",e[e.ARTISTIC_NAME=254]=\"ARTISTIC_NAME\",e[e.ACADEMIC_TITLE=255]=\"ACADEMIC_TITLE\",e[e.ADDRESS_COUNTRY=256]=\"ADDRESS_COUNTRY\",e[e.ADDRESS_ZIP_CODE=257]=\"ADDRESS_ZIP_CODE\",e[e.E_ID_RESIDENCE_PERMIT_1=258]=\"E_ID_RESIDENCE_PERMIT_1\",e[e.E_ID_RESIDENCE_PERMIT_2=259]=\"E_ID_RESIDENCE_PERMIT_2\",e[e.E_ID_PLACE_OF_BIRTH_STREET=260]=\"E_ID_PLACE_OF_BIRTH_STREET\",e[e.E_ID_PLACE_OF_BIRTH_CITY=261]=\"E_ID_PLACE_OF_BIRTH_CITY\",e[e.E_ID_PLACE_OF_BIRTH_STATE=262]=\"E_ID_PLACE_OF_BIRTH_STATE\",e[e.E_ID_PLACE_OF_BIRTH_COUNTRY=263]=\"E_ID_PLACE_OF_BIRTH_COUNTRY\",e[e.E_ID_PLACE_OF_BIRTH_ZIP_CODE=264]=\"E_ID_PLACE_OF_BIRTH_ZIP_CODE\",e[e.CDL_CLASS=265]=\"CDL_CLASS\",e[e.DL_UNDER_19_DATE=266]=\"DL_UNDER_19_DATE\",e[e.WEIGHT_POUNDS=267]=\"WEIGHT_POUNDS\",e[e.LIMITED_DURATION_DOCUMENT_INDICATOR=268]=\"LIMITED_DURATION_DOCUMENT_INDICATOR\",e[e.ENDORSEMENT_EXPIRATION_DATE=269]=\"ENDORSEMENT_EXPIRATION_DATE\",e[e.REVISION_DATE=270]=\"REVISION_DATE\",e[e.COMPLIANCE_TYPE=271]=\"COMPLIANCE_TYPE\",e[e.FAMILY_NAME_TRUNCATION=272]=\"FAMILY_NAME_TRUNCATION\",e[e.FIRST_NAME_TRUNCATION=273]=\"FIRST_NAME_TRUNCATION\",e[e.MIDDLE_NAME_TRUNCATION=274]=\"MIDDLE_NAME_TRUNCATION\",e[e.EXAM_DATE=275]=\"EXAM_DATE\",e[e.ORGANIZATION=276]=\"ORGANIZATION\",e[e.DEPARTMENT=277]=\"DEPARTMENT\",e[e.PAY_GRADE=278]=\"PAY_GRADE\",e[e.RANK=279]=\"RANK\",e[e.BENEFITS_NUMBER=280]=\"BENEFITS_NUMBER\",e[e.SPONSOR_SERVICE=281]=\"SPONSOR_SERVICE\",e[e.SPONSOR_STATUS=282]=\"SPONSOR_STATUS\",e[e.SPONSOR=283]=\"SPONSOR\",e[e.RELATIONSHIP=284]=\"RELATIONSHIP\",e[e.USCIS=285]=\"USCIS\",e[e.CATEGORY=286]=\"CATEGORY\",e[e.CONDITIONS=287]=\"CONDITIONS\",e[e.IDENTIFIER=288]=\"IDENTIFIER\",e[e.CONFIGURATION=289]=\"CONFIGURATION\",e[e.DISCRETIONARY_DATA=290]=\"DISCRETIONARY_DATA\",e[e.LINE_1_OPTIONAL_DATA=291]=\"LINE_1_OPTIONAL_DATA\",e[e.LINE_2_OPTIONAL_DATA=292]=\"LINE_2_OPTIONAL_DATA\",e[e.LINE_3_OPTIONAL_DATA=293]=\"LINE_3_OPTIONAL_DATA\",e[e.EQV_CODE=294]=\"EQV_CODE\",e[e.ALT_CODE=295]=\"ALT_CODE\",e[e.BINARY_CODE=296]=\"BINARY_CODE\",e[e.PSEUDO_CODE=297]=\"PSEUDO_CODE\",e[e.FEE=298]=\"FEE\",e[e.STAMP_NUMBER=299]=\"STAMP_NUMBER\",e[e.SBH_SECURITY_OPTIONS=300]=\"SBH_SECURITY_OPTIONS\",e[e.SBH_INTEGRITY_OPTIONS=301]=\"SBH_INTEGRITY_OPTIONS\",e[e.DATE_OF_CREATION=302]=\"DATE_OF_CREATION\",e[e.VALIDITY_PERIOD=303]=\"VALIDITY_PERIOD\",e[e.PATRON_HEADER_VERSION=304]=\"PATRON_HEADER_VERSION\",e[e.BDB_TYPE=305]=\"BDB_TYPE\",e[e.BIOMETRIC_TYPE=306]=\"BIOMETRIC_TYPE\",e[e.BIOMETRIC_SUBTYPE=307]=\"BIOMETRIC_SUBTYPE\",e[e.BIOMETRIC_PRODUCT_ID=308]=\"BIOMETRIC_PRODUCT_ID\",e[e.BIOMETRIC_FORMAT_OWNER=309]=\"BIOMETRIC_FORMAT_OWNER\",e[e.BIOMETRIC_FORMAT_TYPE=310]=\"BIOMETRIC_FORMAT_TYPE\",e[e.PHONE=311]=\"PHONE\",e[e.PROFESSION=312]=\"PROFESSION\",e[e.TITLE=313]=\"TITLE\",e[e.PERSONAL_SUMMARY=314]=\"PERSONAL_SUMMARY\",e[e.OTHER_VALID_ID=315]=\"OTHER_VALID_ID\",e[e.CUSTODY_INFO=316]=\"CUSTODY_INFO\",e[e.OTHER_NAME=317]=\"OTHER_NAME\",e[e.OBSERVATIONS=318]=\"OBSERVATIONS\",e[e.TAX=319]=\"TAX\",e[e.DATE_OF_PERSONALIZATION=320]=\"DATE_OF_PERSONALIZATION\",e[e.PERSONALIZATION_SN=321]=\"PERSONALIZATION_SN\",e[e.DATE_OF_RECORD=322]=\"DATE_OF_RECORD\",e[e.PERSON_TO_NOTIFY_DATE_OF_RECORD=323]=\"PERSON_TO_NOTIFY_DATE_OF_RECORD\",e[e.PERSON_TO_NOTIFY_NAME=324]=\"PERSON_TO_NOTIFY_NAME\",e[e.PERSON_TO_NOTIFY_PHONE=325]=\"PERSON_TO_NOTIFY_PHONE\",e[e.PERSON_TO_NOTIFY_ADDRESS=326]=\"PERSON_TO_NOTIFY_ADDRESS\",e[e.DS_CERTIFICATE_ISSUER=327]=\"DS_CERTIFICATE_ISSUER\",e[e.DS_CERTIFICATE_SUBJECT=328]=\"DS_CERTIFICATE_SUBJECT\",e[e.DS_CERTIFICATE_VALID_FROM=329]=\"DS_CERTIFICATE_VALID_FROM\",e[e.DS_CERTIFICATE_VALID_TO=330]=\"DS_CERTIFICATE_VALID_TO\",e[e.VRC_DATA_OBJECT_ENTRY=331]=\"VRC_DATA_OBJECT_ENTRY\",e[e.TYPE_APPROVAL_NUMBER=332]=\"TYPE_APPROVAL_NUMBER\",e[e.ADMINISTRATIVE_NUMBER=333]=\"ADMINISTRATIVE_NUMBER\",e[e.DOCUMENT_DISCRIMINATOR=334]=\"DOCUMENT_DISCRIMINATOR\",e[e.DATA_DISCRIMINATOR=335]=\"DATA_DISCRIMINATOR\",e[e.ISO_ISSUER_ID_NUMBER=336]=\"ISO_ISSUER_ID_NUMBER\",e[e.GNIB_NUMBER=340]=\"GNIB_NUMBER\",e[e.DEPT_NUMBER=341]=\"DEPT_NUMBER\",e[e.TELEX_CODE=342]=\"TELEX_CODE\",e[e.ALLERGIES=343]=\"ALLERGIES\",e[e.SP_CODE=344]=\"SP_CODE\",e[e.COURT_CODE=345]=\"COURT_CODE\",e[e.CTY=346]=\"CTY\",e[e.SPONSOR_SSN=347]=\"SPONSOR_SSN\",e[e.DOD_NUMBER=348]=\"DOD_NUMBER\",e[e.MC_NOVICE_DATE=349]=\"MC_NOVICE_DATE\",e[e.DUF_NUMBER=350]=\"DUF_NUMBER\",e[e.AGY=351]=\"AGY\",e[e.PNR_CODE=352]=\"PNR_CODE\",e[e.FROM_AIRPORT_CODE=353]=\"FROM_AIRPORT_CODE\",e[e.TO_AIRPORT_CODE=354]=\"TO_AIRPORT_CODE\",e[e.FLIGHT_NUMBER=355]=\"FLIGHT_NUMBER\",e[e.DATE_OF_FLIGHT=356]=\"DATE_OF_FLIGHT\",e[e.SEAT_NUMBER=357]=\"SEAT_NUMBER\",e[e.DATE_OF_ISSUE_BOARDING_PASS=358]=\"DATE_OF_ISSUE_BOARDING_PASS\",e[e.CCW_UNTIL=359]=\"CCW_UNTIL\",e[e.REFERENCE_NUMBER_CHECKSUM=360]=\"REFERENCE_NUMBER_CHECKSUM\",e[e.REFERENCE_NUMBER_CHECK_DIGIT=361]=\"REFERENCE_NUMBER_CHECK_DIGIT\",e[e.ROOM_NUMBER=362]=\"ROOM_NUMBER\",e[e.RELIGION=363]=\"RELIGION\",e[e.REMAINDER_TERM=364]=\"REMAINDER_TERM\",e[e.ELECTRONIC_TICKET_INDICATOR=365]=\"ELECTRONIC_TICKET_INDICATOR\",e[e.COMPARTMENT_CODE=366]=\"COMPARTMENT_CODE\",e[e.CHECK_IN_SEQUENCE_NUMBER=367]=\"CHECK_IN_SEQUENCE_NUMBER\",e[e.AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER=368]=\"AIRLINE_DESIGNATOR_OF_BOARDING_PASS_ISSUER\",e[e.AIRLINE_NUMERIC_CODE=369]=\"AIRLINE_NUMERIC_CODE\",e[e.TICKET_NUMBER=370]=\"TICKET_NUMBER\",e[e.FREQUENT_FLYER_AIRLINE_DESIGNATOR=371]=\"FREQUENT_FLYER_AIRLINE_DESIGNATOR\",e[e.FREQUENT_FLYER_NUMBER=372]=\"FREQUENT_FLYER_NUMBER\",e[e.FREE_BAGGAGE_ALLOWANCE=373]=\"FREE_BAGGAGE_ALLOWANCE\",e[e.PDF_417_CODEC=374]=\"PDF_417_CODEC\",e[e.IDENTITY_CARD_NUMBER_CHECKSUM=375]=\"IDENTITY_CARD_NUMBER_CHECKSUM\",e[e.IDENTITY_CARD_NUMBER_CHECK_DIGIT=376]=\"IDENTITY_CARD_NUMBER_CHECK_DIGIT\",e[e.VETERAN=377]=\"VETERAN\",e[e.DL_CLASS_CODE_A1_FROM=378]=\"DL_CLASS_CODE_A1_FROM\",e[e.DL_CLASS_CODE_A1_TO=379]=\"DL_CLASS_CODE_A1_TO\",e[e.DL_CLASS_CODE_A1_NOTES=380]=\"DL_CLASS_CODE_A1_NOTES\",e[e.DL_CLASS_CODE_A_FROM=381]=\"DL_CLASS_CODE_A_FROM\",e[e.DL_CLASS_CODE_A_TO=382]=\"DL_CLASS_CODE_A_TO\",e[e.DL_CLASS_CODE_A_NOTES=383]=\"DL_CLASS_CODE_A_NOTES\",e[e.DL_CLASS_CODE_B_FROM=384]=\"DL_CLASS_CODE_B_FROM\",e[e.DL_CLASS_CODE_B_TO=385]=\"DL_CLASS_CODE_B_TO\",e[e.DL_CLASS_CODE_B_NOTES=386]=\"DL_CLASS_CODE_B_NOTES\",e[e.DL_CLASS_CODE_C1_FROM=387]=\"DL_CLASS_CODE_C1_FROM\",e[e.DL_CLASS_CODE_C1_TO=388]=\"DL_CLASS_CODE_C1_TO\",e[e.DL_CLASS_CODE_C1_NOTES=389]=\"DL_CLASS_CODE_C1_NOTES\",e[e.DL_CLASS_CODE_C_FROM=390]=\"DL_CLASS_CODE_C_FROM\",e[e.DL_CLASS_CODE_C_TO=391]=\"DL_CLASS_CODE_C_TO\",e[e.DL_CLASS_CODE_C_NOTES=392]=\"DL_CLASS_CODE_C_NOTES\",e[e.DL_CLASS_CODE_D1_FROM=393]=\"DL_CLASS_CODE_D1_FROM\",e[e.DL_CLASS_CODE_D1_TO=394]=\"DL_CLASS_CODE_D1_TO\",e[e.DL_CLASS_CODE_D1_NOTES=395]=\"DL_CLASS_CODE_D1_NOTES\",e[e.DL_CLASS_CODE_D_FROM=396]=\"DL_CLASS_CODE_D_FROM\",e[e.DL_CLASS_CODE_D_TO=397]=\"DL_CLASS_CODE_D_TO\",e[e.DL_CLASS_CODE_D_NOTES=398]=\"DL_CLASS_CODE_D_NOTES\",e[e.DL_CLASS_CODE_BE_FROM=399]=\"DL_CLASS_CODE_BE_FROM\",e[e.DL_CLASS_CODE_BE_TO=400]=\"DL_CLASS_CODE_BE_TO\",e[e.DL_CLASS_CODE_BE_NOTES=401]=\"DL_CLASS_CODE_BE_NOTES\",e[e.DL_CLASS_CODE_C1E_FROM=402]=\"DL_CLASS_CODE_C1E_FROM\",e[e.DL_CLASS_CODE_C1E_TO=403]=\"DL_CLASS_CODE_C1E_TO\",e[e.DL_CLASS_CODE_C1E_NOTES=404]=\"DL_CLASS_CODE_C1E_NOTES\",e[e.DL_CLASS_CODE_CE_FROM=405]=\"DL_CLASS_CODE_CE_FROM\",e[e.DL_CLASS_CODE_CE_TO=406]=\"DL_CLASS_CODE_CE_TO\",e[e.DL_CLASS_CODE_CE_NOTES=407]=\"DL_CLASS_CODE_CE_NOTES\",e[e.DL_CLASS_CODE_D1E_FROM=408]=\"DL_CLASS_CODE_D1E_FROM\",e[e.DL_CLASS_CODE_D1E_TO=409]=\"DL_CLASS_CODE_D1E_TO\",e[e.DL_CLASS_CODE_D1E_NOTES=410]=\"DL_CLASS_CODE_D1E_NOTES\",e[e.DL_CLASS_CODE_DE_FROM=411]=\"DL_CLASS_CODE_DE_FROM\",e[e.DL_CLASS_CODE_DE_TO=412]=\"DL_CLASS_CODE_DE_TO\",e[e.DL_CLASS_CODE_DE_NOTES=413]=\"DL_CLASS_CODE_DE_NOTES\",e[e.DL_CLASS_CODE_M_FROM=414]=\"DL_CLASS_CODE_M_FROM\",e[e.DL_CLASS_CODE_M_TO=415]=\"DL_CLASS_CODE_M_TO\",e[e.DL_CLASS_CODE_M_NOTES=416]=\"DL_CLASS_CODE_M_NOTES\",e[e.DL_CLASS_CODE_L_FROM=417]=\"DL_CLASS_CODE_L_FROM\",e[e.DL_CLASS_CODE_L_TO=418]=\"DL_CLASS_CODE_L_TO\",e[e.DL_CLASS_CODE_L_NOTES=419]=\"DL_CLASS_CODE_L_NOTES\",e[e.DL_CLASS_CODE_T_FROM=420]=\"DL_CLASS_CODE_T_FROM\",e[e.DL_CLASS_CODE_T_TO=421]=\"DL_CLASS_CODE_T_TO\",e[e.DL_CLASS_CODE_T_NOTES=422]=\"DL_CLASS_CODE_T_NOTES\",e[e.DL_CLASS_CODE_AM_FROM=423]=\"DL_CLASS_CODE_AM_FROM\",e[e.DL_CLASS_CODE_AM_TO=424]=\"DL_CLASS_CODE_AM_TO\",e[e.DL_CLASS_CODE_AM_NOTES=425]=\"DL_CLASS_CODE_AM_NOTES\",e[e.DL_CLASS_CODE_A2_FROM=426]=\"DL_CLASS_CODE_A2_FROM\",e[e.DL_CLASS_CODE_A2_TO=427]=\"DL_CLASS_CODE_A2_TO\",e[e.DL_CLASS_CODE_A2_NOTES=428]=\"DL_CLASS_CODE_A2_NOTES\",e[e.DL_CLASS_CODE_B1_FROM=429]=\"DL_CLASS_CODE_B1_FROM\",e[e.DL_CLASS_CODE_B1_TO=430]=\"DL_CLASS_CODE_B1_TO\",e[e.DL_CLASS_CODE_B1_NOTES=431]=\"DL_CLASS_CODE_B1_NOTES\",e[e.SURNAME_AT_BIRTH=432]=\"SURNAME_AT_BIRTH\",e[e.CIVIL_STATUS=433]=\"CIVIL_STATUS\",e[e.NUMBER_OF_SEATS=434]=\"NUMBER_OF_SEATS\",e[e.NUMBER_OF_STANDING_PLACES=435]=\"NUMBER_OF_STANDING_PLACES\",e[e.MAX_SPEED=436]=\"MAX_SPEED\",e[e.FUEL_TYPE=437]=\"FUEL_TYPE\",e[e.EC_ENVIRONMENTAL_TYPE=438]=\"EC_ENVIRONMENTAL_TYPE\",e[e.POWER_WEIGHT_RATIO=439]=\"POWER_WEIGHT_RATIO\",e[e.MAX_MASS_OF_TRAILER_BRAKED=440]=\"MAX_MASS_OF_TRAILER_BRAKED\",e[e.MAX_MASS_OF_TRAILER_UNBRAKED=441]=\"MAX_MASS_OF_TRAILER_UNBRAKED\",e[e.TRANSMISSION_TYPE=442]=\"TRANSMISSION_TYPE\",e[e.TRAILER_HITCH=443]=\"TRAILER_HITCH\",e[e.ACCOMPANIED_BY=444]=\"ACCOMPANIED_BY\",e[e.POLICE_DISTRICT=445]=\"POLICE_DISTRICT\",e[e.FIRST_ISSUE_DATE=446]=\"FIRST_ISSUE_DATE\",e[e.PAYLOAD_CAPACITY=447]=\"PAYLOAD_CAPACITY\",e[e.NUMBER_OF_AXLES=448]=\"NUMBER_OF_AXLES\",e[e.PERMISSIBLE_AXLE_LOAD=449]=\"PERMISSIBLE_AXLE_LOAD\",e[e.PRECINCT=450]=\"PRECINCT\",e[e.INVITED_BY=451]=\"INVITED_BY\",e[e.PURPOSE_OF_ENTRY=452]=\"PURPOSE_OF_ENTRY\",e[e.SKIN_COLOR=453]=\"SKIN_COLOR\",e[e.COMPLEXION=454]=\"COMPLEXION\",e[e.AIRPORT_FROM=455]=\"AIRPORT_FROM\",e[e.AIRPORT_TO=456]=\"AIRPORT_TO\",e[e.AIRLINE_NAME=457]=\"AIRLINE_NAME\",e[e.AIRLINE_NAME_FREQUENT_FLYER=458]=\"AIRLINE_NAME_FREQUENT_FLYER\",e[e.LICENSE_NUMBER=459]=\"LICENSE_NUMBER\",e[e.IN_TANKS=460]=\"IN_TANKS\",e[e.EXCEPT_IN_TANKS=461]=\"EXCEPT_IN_TANKS\",e[e.FAST_TRACK=462]=\"FAST_TRACK\",e[e.OWNER=463]=\"OWNER\",e[e.MRZ_STRINGS_ICAO_RFID=464]=\"MRZ_STRINGS_ICAO_RFID\",e[e.NUMBER_OF_CARD_ISSUANCE=465]=\"NUMBER_OF_CARD_ISSUANCE\",e[e.NUMBER_OF_CARD_ISSUANCE_CHECKSUM=466]=\"NUMBER_OF_CARD_ISSUANCE_CHECKSUM\",e[e.NUMBER_OF_CARD_ISSUANCE_CHECK_DIGIT=467]=\"NUMBER_OF_CARD_ISSUANCE_CHECK_DIGIT\",e[e.CENTURY_DATE_OF_BIRTH=468]=\"CENTURY_DATE_OF_BIRTH\",e[e.DL_CLASS_CODE_A3_FROM=469]=\"DL_CLASS_CODE_A3_FROM\",e[e.DL_CLASS_CODE_A3_TO=470]=\"DL_CLASS_CODE_A3_TO\",e[e.DL_CLASS_CODE_A3_NOTES=471]=\"DL_CLASS_CODE_A3_NOTES\",e[e.DL_CLASS_CODE_C2_FROM=472]=\"DL_CLASS_CODE_C2_FROM\",e[e.DL_CLASS_CODE_C2_TO=473]=\"DL_CLASS_CODE_C2_TO\",e[e.DL_CLASS_CODE_C2_NOTES=474]=\"DL_CLASS_CODE_C2_NOTES\",e[e.DL_CLASS_CODE_B2_FROM=475]=\"DL_CLASS_CODE_B2_FROM\",e[e.DL_CLASS_CODE_B2_TO=476]=\"DL_CLASS_CODE_B2_TO\",e[e.DL_CLASS_CODE_B2_NOTES=477]=\"DL_CLASS_CODE_B2_NOTES\",e[e.DL_CLASS_CODE_D2_FROM=478]=\"DL_CLASS_CODE_D2_FROM\",e[e.DL_CLASS_CODE_D2_TO=479]=\"DL_CLASS_CODE_D2_TO\",e[e.DL_CLASS_CODE_D2_NOTES=480]=\"DL_CLASS_CODE_D2_NOTES\",e[e.DL_CLASS_CODE_B2E_FROM=481]=\"DL_CLASS_CODE_B2E_FROM\",e[e.DL_CLASS_CODE_B2E_TO=482]=\"DL_CLASS_CODE_B2E_TO\",e[e.DL_CLASS_CODE_B2E_NOTES=483]=\"DL_CLASS_CODE_B2E_NOTES\",e[e.DL_CLASS_CODE_G_FROM=484]=\"DL_CLASS_CODE_G_FROM\",e[e.DL_CLASS_CODE_G_TO=485]=\"DL_CLASS_CODE_G_TO\",e[e.DL_CLASS_CODE_G_NOTES=486]=\"DL_CLASS_CODE_G_NOTES\",e[e.DL_CLASS_CODE_J_FROM=487]=\"DL_CLASS_CODE_J_FROM\",e[e.DL_CLASS_CODE_J_TO=488]=\"DL_CLASS_CODE_J_TO\",e[e.DL_CLASS_CODE_J_NOTES=489]=\"DL_CLASS_CODE_J_NOTES\",e[e.DL_CLASS_CODE_LC_FROM=490]=\"DL_CLASS_CODE_LC_FROM\",e[e.DL_CLASS_CODE_LC_TO=491]=\"DL_CLASS_CODE_LC_TO\",e[e.DL_CLASS_CODE_LC_NOTES=492]=\"DL_CLASS_CODE_LC_NOTES\",e[e.BANK_CARD_NUMBER=493]=\"BANK_CARD_NUMBER\",e[e.BANK_CARD_VALID_THRU=494]=\"BANK_CARD_VALID_THRU\",e[e.TAX_NUMBER=495]=\"TAX_NUMBER\",e[e.HEALTH_NUMBER=496]=\"HEALTH_NUMBER\",e[e.GRANDFATHER_NAME=497]=\"GRANDFATHER_NAME\",e[e.SELECTEE_INDICATOR=498]=\"SELECTEE_INDICATOR\",e[e.MOTHER_SURNAME=499]=\"MOTHER_SURNAME\",e[e.MOTHER_GIVEN_NAME=500]=\"MOTHER_GIVEN_NAME\",e[e.FATHER_SURNAME=501]=\"FATHER_SURNAME\",e[e.FATHER_GIVEN_NAME=502]=\"FATHER_GIVEN_NAME\",e[e.MOTHER_DATE_OF_BIRTH=503]=\"MOTHER_DATE_OF_BIRTH\",e[e.FATHER_DATE_OF_BIRTH=504]=\"FATHER_DATE_OF_BIRTH\",e[e.MOTHER_PERSONAL_NUMBER=505]=\"MOTHER_PERSONAL_NUMBER\",e[e.FATHER_PERSONAL_NUMBER=506]=\"FATHER_PERSONAL_NUMBER\",e[e.MOTHER_PLACE_OF_BIRTH=507]=\"MOTHER_PLACE_OF_BIRTH\",e[e.FATHER_PLACE_OF_BIRTH=508]=\"FATHER_PLACE_OF_BIRTH\",e[e.MOTHER_COUNTRY_OF_BIRTH=509]=\"MOTHER_COUNTRY_OF_BIRTH\",e[e.FATHER_COUNTRY_OF_BIRTH=510]=\"FATHER_COUNTRY_OF_BIRTH\",e[e.DATE_FIRST_RENEWAL=511]=\"DATE_FIRST_RENEWAL\",e[e.DATE_SECOND_RENEWAL=512]=\"DATE_SECOND_RENEWAL\",e[e.PLACE_OF_EXAMINATION=513]=\"PLACE_OF_EXAMINATION\",e[e.APPLICATION_NUMBER=514]=\"APPLICATION_NUMBER\",e[e.VOUCHER_NUMBER=515]=\"VOUCHER_NUMBER\",e[e.AUTHORIZATION_NUMBER=516]=\"AUTHORIZATION_NUMBER\",e[e.FACULTY=517]=\"FACULTY\",e[e.FORM_OF_EDUCATION=518]=\"FORM_OF_EDUCATION\",e[e.DNI_NUMBER=519]=\"DNI_NUMBER\",e[e.RETIREMENT_NUMBER=520]=\"RETIREMENT_NUMBER\",e[e.PROFESSIONAL_ID_NUMBER=521]=\"PROFESSIONAL_ID_NUMBER\",e[e.AGE_AT_ISSUE=522]=\"AGE_AT_ISSUE\",e[e.YEARS_SINCE_ISSUE=523]=\"YEARS_SINCE_ISSUE\",e[e.DL_CLASS_CODE_BTP_FROM=524]=\"DL_CLASS_CODE_BTP_FROM\",e[e.DL_CLASS_CODE_BTP_NOTES=525]=\"DL_CLASS_CODE_BTP_NOTES\",e[e.DL_CLASS_CODE_BTP_TO=526]=\"DL_CLASS_CODE_BTP_TO\",e[e.DL_CLASS_CODE_C3_FROM=527]=\"DL_CLASS_CODE_C3_FROM\",e[e.DL_CLASS_CODE_C3_NOTES=528]=\"DL_CLASS_CODE_C3_NOTES\",e[e.DL_CLASS_CODE_C3_TO=529]=\"DL_CLASS_CODE_C3_TO\",e[e.DL_CLASS_CODE_E_FROM=530]=\"DL_CLASS_CODE_E_FROM\",e[e.DL_CLASS_CODE_E_NOTES=531]=\"DL_CLASS_CODE_E_NOTES\",e[e.DL_CLASS_CODE_E_TO=532]=\"DL_CLASS_CODE_E_TO\",e[e.DL_CLASS_CODE_F_FROM=533]=\"DL_CLASS_CODE_F_FROM\",e[e.DL_CLASS_CODE_F_NOTES=534]=\"DL_CLASS_CODE_F_NOTES\",e[e.DL_CLASS_CODE_F_TO=535]=\"DL_CLASS_CODE_F_TO\",e[e.DL_CLASS_CODE_FA_FROM=536]=\"DL_CLASS_CODE_FA_FROM\",e[e.DL_CLASS_CODE_FA_NOTES=537]=\"DL_CLASS_CODE_FA_NOTES\",e[e.DL_CLASS_CODE_FA_TO=538]=\"DL_CLASS_CODE_FA_TO\",e[e.DL_CLASS_CODE_FA1_FROM=539]=\"DL_CLASS_CODE_FA1_FROM\",e[e.DL_CLASS_CODE_FA1_NOTES=540]=\"DL_CLASS_CODE_FA1_NOTES\",e[e.DL_CLASS_CODE_FA1_TO=541]=\"DL_CLASS_CODE_FA1_TO\",e[e.DL_CLASS_CODE_FB_FROM=542]=\"DL_CLASS_CODE_FB_FROM\",e[e.DL_CLASS_CODE_FB_NOTES=543]=\"DL_CLASS_CODE_FB_NOTES\",e[e.DL_CLASS_CODE_FB_TO=544]=\"DL_CLASS_CODE_FB_TO\",e[e.DL_CLASS_CODE_G1_FROM=545]=\"DL_CLASS_CODE_G1_FROM\",e[e.DL_CLASS_CODE_G1_NOTES=546]=\"DL_CLASS_CODE_G1_NOTES\",e[e.DL_CLASS_CODE_G1_TO=547]=\"DL_CLASS_CODE_G1_TO\",e[e.DL_CLASS_CODE_H_FROM=548]=\"DL_CLASS_CODE_H_FROM\",e[e.DL_CLASS_CODE_H_NOTES=549]=\"DL_CLASS_CODE_H_NOTES\",e[e.DL_CLASS_CODE_H_TO=550]=\"DL_CLASS_CODE_H_TO\",e[e.DL_CLASS_CODE_I_FROM=551]=\"DL_CLASS_CODE_I_FROM\",e[e.DL_CLASS_CODE_I_NOTES=552]=\"DL_CLASS_CODE_I_NOTES\",e[e.DL_CLASS_CODE_I_TO=553]=\"DL_CLASS_CODE_I_TO\",e[e.DL_CLASS_CODE_K_FROM=554]=\"DL_CLASS_CODE_K_FROM\",e[e.DL_CLASS_CODE_K_NOTES=555]=\"DL_CLASS_CODE_K_NOTES\",e[e.DL_CLASS_CODE_K_TO=556]=\"DL_CLASS_CODE_K_TO\",e[e.DL_CLASS_CODE_LK_FROM=557]=\"DL_CLASS_CODE_LK_FROM\",e[e.DL_CLASS_CODE_LK_NOTES=558]=\"DL_CLASS_CODE_LK_NOTES\",e[e.DL_CLASS_CODE_LK_TO=559]=\"DL_CLASS_CODE_LK_TO\",e[e.DL_CLASS_CODE_N_FROM=560]=\"DL_CLASS_CODE_N_FROM\",e[e.DL_CLASS_CODE_N_NOTES=561]=\"DL_CLASS_CODE_N_NOTES\",e[e.DL_CLASS_CODE_N_TO=562]=\"DL_CLASS_CODE_N_TO\",e[e.DL_CLASS_CODE_S_FROM=563]=\"DL_CLASS_CODE_S_FROM\",e[e.DL_CLASS_CODE_S_NOTES=564]=\"DL_CLASS_CODE_S_NOTES\",e[e.DL_CLASS_CODE_S_TO=565]=\"DL_CLASS_CODE_S_TO\",e[e.DL_CLASS_CODE_TB_FROM=566]=\"DL_CLASS_CODE_TB_FROM\",e[e.DL_CLASS_CODE_TB_NOTES=567]=\"DL_CLASS_CODE_TB_NOTES\",e[e.DL_CLASS_CODE_TB_TO=568]=\"DL_CLASS_CODE_TB_TO\",e[e.DL_CLASS_CODE_TM_FROM=569]=\"DL_CLASS_CODE_TM_FROM\",e[e.DL_CLASS_CODE_TM_NOTES=570]=\"DL_CLASS_CODE_TM_NOTES\",e[e.DL_CLASS_CODE_TM_TO=571]=\"DL_CLASS_CODE_TM_TO\",e[e.DL_CLASS_CODE_TR_FROM=572]=\"DL_CLASS_CODE_TR_FROM\",e[e.DL_CLASS_CODE_TR_NOTES=573]=\"DL_CLASS_CODE_TR_NOTES\",e[e.DL_CLASS_CODE_TR_TO=574]=\"DL_CLASS_CODE_TR_TO\",e[e.DL_CLASS_CODE_TV_FROM=575]=\"DL_CLASS_CODE_TV_FROM\",e[e.DL_CLASS_CODE_TV_NOTES=576]=\"DL_CLASS_CODE_TV_NOTES\",e[e.DL_CLASS_CODE_TV_TO=577]=\"DL_CLASS_CODE_TV_TO\",e[e.DL_CLASS_CODE_V_FROM=578]=\"DL_CLASS_CODE_V_FROM\",e[e.DL_CLASS_CODE_V_NOTES=579]=\"DL_CLASS_CODE_V_NOTES\",e[e.DL_CLASS_CODE_V_TO=580]=\"DL_CLASS_CODE_V_TO\",e[e.DL_CLASS_CODE_W_FROM=581]=\"DL_CLASS_CODE_W_FROM\",e[e.DL_CLASS_CODE_W_NOTES=582]=\"DL_CLASS_CODE_W_NOTES\",e[e.DL_CLASS_CODE_W_TO=583]=\"DL_CLASS_CODE_W_TO\",e[e.URL=584]=\"URL\",e[e.CALIBER=585]=\"CALIBER\",e[e.MODEL=586]=\"MODEL\",e[e.MAKE=587]=\"MAKE\",e[e.NUMBER_OF_CYLINDERS=588]=\"NUMBER_OF_CYLINDERS\",e[e.SURNAME_OF_HUSBAND_AFTER_REGISTRATION=589]=\"SURNAME_OF_HUSBAND_AFTER_REGISTRATION\",e[e.SURNAME_OF_WIFE_AFTER_REGISTRATION=590]=\"SURNAME_OF_WIFE_AFTER_REGISTRATION\",e[e.DATE_OF_BIRTH_OF_WIFE=591]=\"DATE_OF_BIRTH_OF_WIFE\",e[e.DATE_OF_BIRTH_OF_HUSBAND=592]=\"DATE_OF_BIRTH_OF_HUSBAND\",e[e.CITIZENSHIP_OF_FIRST_PERSON=593]=\"CITIZENSHIP_OF_FIRST_PERSON\",e[e.CITIZENSHIP_OF_SECOND_PERSON=594]=\"CITIZENSHIP_OF_SECOND_PERSON\",e[e.CVV=595]=\"CVV\",e[e.DATE_OF_INSURANCE_EXPIRY=596]=\"DATE_OF_INSURANCE_EXPIRY\",e[e.MORTGAGE_BY=597]=\"MORTGAGE_BY\",e[e.OLD_DOCUMENT_NUMBER=598]=\"OLD_DOCUMENT_NUMBER\",e[e.OLD_DATE_OF_ISSUE=599]=\"OLD_DATE_OF_ISSUE\",e[e.OLD_PLACE_OF_ISSUE=600]=\"OLD_PLACE_OF_ISSUE\",e[e.DL_CLASS_CODE_LR_FROM=601]=\"DL_CLASS_CODE_LR_FROM\",e[e.DL_CLASS_CODE_LR_TO=602]=\"DL_CLASS_CODE_LR_TO\",e[e.DL_CLASS_CODE_LR_NOTES=603]=\"DL_CLASS_CODE_LR_NOTES\",e[e.DL_CLASS_CODE_MR_FROM=604]=\"DL_CLASS_CODE_MR_FROM\",e[e.DL_CLASS_CODE_MR_TO=605]=\"DL_CLASS_CODE_MR_TO\",e[e.DL_CLASS_CODE_MR_NOTES=606]=\"DL_CLASS_CODE_MR_NOTES\",e[e.DL_CLASS_CODE_HR_FROM=607]=\"DL_CLASS_CODE_HR_FROM\",e[e.DL_CLASS_CODE_HR_TO=608]=\"DL_CLASS_CODE_HR_TO\",e[e.DL_CLASS_CODE_HR_NOTES=609]=\"DL_CLASS_CODE_HR_NOTES\",e[e.DL_CLASS_CODE_HC_FROM=610]=\"DL_CLASS_CODE_HC_FROM\",e[e.DL_CLASS_CODE_HC_TO=611]=\"DL_CLASS_CODE_HC_TO\",e[e.DL_CLASS_CODE_HC_NOTES=612]=\"DL_CLASS_CODE_HC_NOTES\",e[e.DL_CLASS_CODE_MC_FROM=613]=\"DL_CLASS_CODE_MC_FROM\",e[e.DL_CLASS_CODE_MC_TO=614]=\"DL_CLASS_CODE_MC_TO\",e[e.DL_CLASS_CODE_MC_NOTES=615]=\"DL_CLASS_CODE_MC_NOTES\",e[e.DL_CLASS_CODE_RE_FROM=616]=\"DL_CLASS_CODE_RE_FROM\",e[e.DL_CLASS_CODE_RE_TO=617]=\"DL_CLASS_CODE_RE_TO\",e[e.DL_CLASS_CODE_RE_NOTES=618]=\"DL_CLASS_CODE_RE_NOTES\",e[e.DL_CLASS_CODE_R_FROM=619]=\"DL_CLASS_CODE_R_FROM\",e[e.DL_CLASS_CODE_R_TO=620]=\"DL_CLASS_CODE_R_TO\",e[e.DL_CLASS_CODE_R_NOTES=621]=\"DL_CLASS_CODE_R_NOTES\",e[e.DL_CLASS_CODE_CA_FROM=622]=\"DL_CLASS_CODE_CA_FROM\",e[e.DL_CLASS_CODE_CA_TO=623]=\"DL_CLASS_CODE_CA_TO\",e[e.DL_CLASS_CODE_CA_NOTES=624]=\"DL_CLASS_CODE_CA_NOTES\",e[e.CITIZENSHIP_STATUS=625]=\"CITIZENSHIP_STATUS\",e[e.MILITARY_SERVICE_FROM=626]=\"MILITARY_SERVICE_FROM\",e[e.MILITARY_SERVICE_TO=627]=\"MILITARY_SERVICE_TO\",e[e.DL_CLASS_CODE_NT_FROM=628]=\"DL_CLASS_CODE_NT_FROM\",e[e.DL_CLASS_CODE_NT_TO=629]=\"DL_CLASS_CODE_NT_TO\",e[e.DL_CLASS_CODE_NT_NOTES=630]=\"DL_CLASS_CODE_NT_NOTES\",e[e.DL_CLASS_CODE_TN_FROM=631]=\"DL_CLASS_CODE_TN_FROM\",e[e.DL_CLASS_CODE_TN_TO=632]=\"DL_CLASS_CODE_TN_TO\",e[e.DL_CLASS_CODE_TN_NOTES=633]=\"DL_CLASS_CODE_TN_NOTES\",e[e.DL_CLASS_CODE_D3_FROM=634]=\"DL_CLASS_CODE_D3_FROM\",e[e.DL_CLASS_CODE_D3_TO=635]=\"DL_CLASS_CODE_D3_TO\",e[e.DL_CLASS_CODE_D3_NOTES=636]=\"DL_CLASS_CODE_D3_NOTES\",e[e.ALT_DATE_OF_EXPIRE=637]=\"ALT_DATE_OF_EXPIRE\",e[e.DL_CLASS_CODE_CD_FROM=638]=\"DL_CLASS_CODE_CD_FROM\",e[e.DL_CLASS_CODE_CD_TO=639]=\"DL_CLASS_CODE_CD_TO\",e[e.DL_CLASS_CODE_CD_NOTES=640]=\"DL_CLASS_CODE_CD_NOTES\",e[e.ISSUER_IDENTIFICATION_NUMBER=641]=\"ISSUER_IDENTIFICATION_NUMBER\",e[e.FT_SECOND_NAME=647]=\"FT_SECOND_NAME\",e[e.FT_THIRD_NAME=648]=\"FT_THIRD_NAME\",e[e.FT_FOURTH_NAME=649]=\"FT_FOURTH_NAME\",e[e.FT_LAST_NAME=650]=\"FT_LAST_NAME\"}(ea||(ea={})),function(e){e[e.NO_CHANGE=0]=\"NO_CHANGE\",e[e.UPPERCASE=1]=\"UPPERCASE\",e[e.LOWERCASE=2]=\"LOWERCASE\",e[e.CAPITAL=3]=\"CAPITAL\"}(ta||(ta={})),function(e){e[e.DISABLED=0]=\"DISABLED\",e[e.VERIFIED=1]=\"VERIFIED\",e[e.NOT_VERIFIED=2]=\"NOT_VERIFIED\",e[e.COMPARE_MATCH=3]=\"COMPARE_MATCH\",e[e.COMPARE_NOT_MATCH=4]=\"COMPARE_NOT_MATCH\"}(na||(na={})),function(e){e[e.INVISIBLE=0]=\"INVISIBLE\",e[e.VISIBLE=1]=\"VISIBLE\",e[e.COLORED=2]=\"COLORED\",e[e.GRAYSCALE=4]=\"GRAYSCALE\",e[e.WHITE_IR_MATCHING=8]=\"WHITE_IR_MATCHING\"}(ra||(ra={}));var sa={0:\"Latin\",1078:\"Afrikaans\",1052:\"Albanian\",5121:\"Arabic (Algeria)\",15361:\"Arabic (Bahrain)\",3073:\"Arabic (Egypt)\",2049:\"Arabic (Iraq)\",11265:\"Arabic (Jordan)\",13313:\"Arabic (Kuwait)\",12289:\"Arabic (Lebanon)\",4097:\"Arabic (Libya)\",6145:\"Arabic (Morocco)\",8193:\"Arabic (Oman)\",16385:\"Arabic (Qatar)\",1025:\"Arabic (Saudi Arabia)\",10241:\"Arabic (Syria)\",7169:\"Arabic (Tunisia)\",14337:\"Arabic (U.A.E.)\",9217:\"Arabic (Yemen)\",1067:\"Arabic Armenian\",2092:\"Azeri (Cyrillic)\",1068:\"Azeri (Latin)\",1069:\"Basque\",1059:\"Belarusian\",1026:\"Bulgarian\",1027:\"Catalan\",3076:\"Chinese (HongKong S.A.R.)\",5124:\"Chinese (Macao S.A.R.)\",2052:\"Chinese\",4100:\"Chinese (Singapore)\",1028:\"Chinese (Taiwan)\",1050:\"Croatian\",1029:\"Czech\",1030:\"Danish\",1125:\"Divehi\",2067:\"Dutch (Belgium)\",1043:\"Dutch (Netherlands)\",3081:\"English (Australia)\",10249:\"English (Belize)\",4105:\"English (Canada)\",9225:\"English (Caribbean)\",6153:\"English (Ireland)\",8201:\"English (Jamaica)\",5129:\"English (New Zealand)\",13321:\"English (Philippines)\",7177:\"English (South Africa)\",11273:\"English (Trinidad)\",2057:\"English (United Kingdom)\",1033:\"English (United States)\",12297:\"English (Zimbabwe)\",1061:\"Estonian\",1080:\"Faroese\",1065:\"Farsi\",1035:\"Finnish\",2060:\"French (Belgium)\",3084:\"French (Canada)\",1036:\"French (France)\",5132:\"French (Luxembourg)\",6156:\"French (Monaco)\",4108:\"French (Switzerland)\",1071:\"FYRO Macedonian\",1110:\"Galician\",1079:\"Georgian\",3079:\"German (Austria)\",1031:\"German (Germany)\",5127:\"German (Liechtenstein)\",4103:\"German (Luxembourg)\",2055:\"German (Switzerland)\",1032:\"Greek\",1095:\"Gujarati\",1037:\"Hebrew\",1081:\"Hindi (India)\",1038:\"Hungarian\",1039:\"Icelandic\",1057:\"Indonesian\",1040:\"Italian (Italy)\",2064:\"Italian (Switzerland)\",1041:\"Japanese\",1099:\"Kannada\",1087:\"Kazakh\",1111:\"Konkani\",1042:\"Korean\",1088:\"Kyrgyz (Cyrillic)\",1062:\"Latvian\",1063:\"Lithuanian\",2110:\"Malay (Brunei Darussalam)\",1102:\"Marathi\",1086:\"Malay (Malaysia)\",1104:\"Mongolian (Cyrillic)\",1044:\"Norwegian (Bokmal)\",2068:\"Norwegian (Nynorsk)\",1045:\"Polish\",1046:\"Portuguese (Brazil)\",2070:\"Portuguese (Portugal)\",1094:\"Punjabi\",1047:\"Rhaeto-Romanic\",1048:\"Romanian\",1049:\"Russian\",1103:\"Sanskrit\",3098:\"Serbian (Cyrillic)\",2074:\"Serbian (Latin)\",1051:\"Slovak\",1060:\"Slovenian\",11274:\"Spanish (Argentina)\",16394:\"Spanish (Bolivia)\",13322:\"Spanish (Chile)\",9226:\"Spanish (Colombia)\",5130:\"Spanish (Costa Rica)\",7178:\"Spanish (Dominican Republic)\",12298:\"Spanish (Ecuador)\",17418:\"Spanish (El Salvador)\",4106:\"Spanish (Guatemala)\",18442:\"Spanish (Honduras)\",3082:\"Spanish (International Sort)\",2058:\"Spanish (Mexico)\",19466:\"Spanish (Nicaragua)\",6154:\"Spanish (Panama)\",15370:\"Spanish (Paraguay)\",10250:\"Spanish (Peru)\",20490:\"Spanish (Puerto Rico)\",1034:\"Spanish (Traditional Sort)\",14346:\"Spanish (Uruguay)\",8202:\"Spanish (Venezuela)\",1089:\"Swahili\",1053:\"Swedish\",2077:\"Swedish (Finland)\",1114:\"Syriac\",1097:\"Tamil\",1092:\"Tatar\",1098:\"Telugu\",1054:\"Thai (Thailand)\",1055:\"Turkish\",1058:\"Ukrainian\",1056:\"Urdu\",2115:\"Uzbek (Cyrillic)\",1091:\"Uzbek (Latin)\",1066:\"Vietnamese\",1064:\"Tajik (Cyrillic)\",1090:\"Turkmen\",50001:\"CTC Simplified\",50002:\"CTC Traditional\",9999:\"Custom\"},ua=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.fieldType=t.fieldType,this.fieldName=t.fieldName,this.lcid=t.lcid,this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.value=t.value,this.valueList=t.valueList,this.validityList=t.validityList,this.comparisonList=t.comparisonList}var t,n,r;return t=e,n=[{key:\"getValue\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this.value;var n=this.getValueBySource(e);return t?null==n?void 0:n.originalValue:null==n?void 0:n.value}},{key:\"sourceValidity\",value:function(e){var t,n=oa(this.validityList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source===e)return r.status}}catch(a){n.e(a)}finally{n.f()}return Fr.WAS_NOT_DONE}},{key:\"crossSourceComparison\",value:function(e,t){var n,r=oa(this.comparisonList);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.sourceLeft===e&&a.sourceRight===t||a.sourceLeft===t&&a.sourceRight===e)return a.status}}catch(o){r.e(o)}finally{r.f()}return Fr.WAS_NOT_DONE}},{key:\"getLCIDName\",value:function(){if(this.lcid)return sa[this.lcid]||String(this.lcid)}},{key:\"getValueBySource\",value:function(e){var t,n=oa(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(a){n.e(a)}finally{n.f()}}}],n&&la(t.prototype,n),r&&la(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function ca(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return da(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.status=t.status,this.validityStatus=t.validityStatus,this.comparisonStatus=t.comparisonStatus,this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new ua(e)}))}var t,n,r;return t=e,(n=[{key:\"getField\",value:function(e,t){var n,r=void 0,a=ca(this.fieldList);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fieldType==e){if(null!=t&&o.lcid==t)return o;if(null==t&&o.lcid==Vr.LATIN)return o;null==t&&null==r&&(r=o)}}}catch(i){a.e(i)}finally{a.f()}return r}},{key:\"getFieldByName\",value:function(e,t){var n,r=void 0,a=ca(this.fieldList);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.fieldName==e){if(null!=t&&o.lcid==t)return o;if(null==t&&o.lcid==Vr.LATIN)return o;null==t&&null==r&&(r=o)}}}catch(i){a.e(i)}finally{a.f()}return r}},{key:\"getFieldValue\",value:function(e,t){var n;return null===(n=this.getField(e,t))||void 0===n?void 0:n.getValue()}},{key:\"getFieldValueByName\",value:function(e,t){var n;return null===(n=this.getFieldByName(e,t))||void 0===n?void 0:n.getValue()}}])&&fa(t.prototype,n),r&&fa(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function _a(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return ma(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ma(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ha(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ca(e,t,n){return t&&Ea(e.prototype,t),n&&Ea(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var va=function(){function e(t){ha(this,e),this.availableSourceList=t.availableSourceList,this.fieldList=t.fieldList.map((function(e){return new Sa(e)}))}return Ca(e,[{key:\"getField\",value:function(e){var t,n=_a(this.fieldList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.fieldType==e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:\"getFields\",value:function(e){return this.fieldList.filter((function(t){return t.fieldType==e}))}}]),e}(),Sa=function(){function e(t){ha(this,e),this.fieldName=t.fieldName,this.fieldType=t.fieldType,this.valueList=t.valueList}return Ca(e,[{key:\"getValue\",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t=e?this.getValueBySource(e):this.getValueBySource($r.RFID)||this.getValueBySource($r.VISUAL)||this.getValueBySource($r.BARCODE))return n&&t.originalValue?ga(t.originalValue):ga(t.value)}},{key:\"getValueBySource\",value:function(e){var t,n=_a(this.valueList);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.source==e)return r}}catch(a){n.e(a)}finally{n.f()}}}]),e}();function ga(e){return function(e){var t,n,r,a,o,i=.75*e.length,l=e.length,s=0;\"=\"===e[e.length-1]&&(i--,\"=\"===e[e.length-2]&&i--);var u=new ArrayBuffer(i),c=new Uint8Array(u);for(t=0;t<l;t+=4)n=ne[e.charCodeAt(t)],r=ne[e.charCodeAt(t+1)],a=ne[e.charCodeAt(t+2)],o=ne[e.charCodeAt(t+3)],c[s++]=n<<2|r>>4,c[s++]=(15&r)<<4|a>>2,c[s++]=(3&a)<<6|63&o;return u}(e)}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ia(e,t,n){return t&&ya(e.prototype,t),n&&ya(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var Oa=Ia((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function Ra(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return Na(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Na(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ta=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:\"checksByElement\",value:function(e){var t,n=[],r=Ra(this.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.ElementType===e&&n.push(a)}}catch(o){r.e(o)}finally{r.f()}return n}}])&&Aa(t.prototype,n),r&&Aa(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Da(e,t,n){return t&&ba(e.prototype,t),n&&ba(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var La=Da((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pa(e,t,n){return t&&wa(e.prototype,t),n&&wa(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var ka=Pa((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}));function Ma(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return Fa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fa(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var xa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.Result=t.Result,this.Type=t.Type}var t,n,r;return t=e,(n=[{key:\"checksByElement\",value:function(e){var t,n=[],r=Ma(this.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.ElementType===e&&n.push(a)}}catch(o){r.e(o)}finally{r.f()}return n}}])&&Ua(t.prototype,n),r&&Ua(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function Ha(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ja(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ga=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this.List=t.List,this.page_idx=n}var t,n,r;return t=e,(n=[{key:\"uvLuminescenceChecks\",value:function(){return this.securityFeatureOrUndefined(kr.UV_LUMINESCENCE)}},{key:\"irB900Checks\",value:function(){return this.securityFeatureOrUndefined(kr.IR_B900)}},{key:\"imagePatternChecks\",value:function(){return this.identOrUndefined(kr.IMAGE_PATTERN)}},{key:\"axialProtectionChecks\",value:function(){return this.securityFeatureOrUndefined(kr.AXIAL_PROTECTION)}},{key:\"uvFiberChecks\",value:function(){return this.fiberOrUndefined(kr.UV_FIBERS)}},{key:\"irVisibilityChecks\",value:function(){return this.identOrUndefined(kr.IR_VISIBILITY)}},{key:\"ocrSecurityTextChecks\",value:function(){return this.ocrSecurityTextOrUndefined(kr.OCR_SECURITY_TEXT)}},{key:\"ipiChecks\",value:function(){return this.imageIdentOrUndefined(kr.IPI)}},{key:\"embedImageChecks\",value:function(){return this.securityFeatureOrUndefined(kr.PHOTO_EMBED_TYPE)}},{key:\"hologramsChecks\",value:function(){return this.securityFeatureOrUndefined(kr.HOLOGRAMS)}},{key:\"imageAreaChecks\",value:function(){return this.securityFeatureOrUndefined(kr.PHOTO_AREA)}},{key:\"portraitComparisonChecks\",value:function(){return this.identOrUndefined(kr.PORTRAIT_COMPARISON)}},{key:\"barcodeFormatCheckChecks\",value:function(){return this.securityFeatureOrUndefined(kr.BARCODE_FORMAT_CHECK)}},{key:\"kinegramChecks\",value:function(){return this.identOrUndefined(kr.KINEGRAM)}},{key:\"letterScreenChecks\",value:function(){return this.identOrUndefined(kr.LETTER_SCREEN)}},{key:\"resultByType\",value:function(e){var t,n=Ha(this.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.Type==e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:\"fiberOrUndefined\",value:function(e){var t=this.resultByType(e);if(t)return new Oa(t)}},{key:\"identOrUndefined\",value:function(e){var t=this.resultByType(e);if(t)return new Ta(t)}},{key:\"imageIdentOrUndefined\",value:function(e){var t=this.resultByType(e);if(t)return new La(t)}},{key:\"ocrSecurityTextOrUndefined\",value:function(e){var t=this.resultByType(e);if(t)return new ka(t)}},{key:\"securityFeatureOrUndefined\",value:function(e){var t=this.resultByType(e);if(t)return new xa(t)}}])&&Ba(t.prototype,n),r&&Ba(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}();function Va(e,t){var n=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if(\"string\"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return za(e,t)}(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ya(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ka(e,t,n){return t&&Wa(e.prototype,t),n&&Wa(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var Za=function(){function e(t){var n;Ya(this,e);var r=new qa(t);this.lowLvlResponse=r,this.rawResponse=t,this.status=null===(n=r.statusResult())||void 0===n?void 0:n.Status;var a=r.textResult();a&&(this.text=new pa(a.Text));var o=r.imagesResult();o&&(this.images=new va(o.Images))}return Ka(e,[{key:\"authenticity\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(qr.AUTHENTICITY,e);if(t)return new Ga(t.AuthenticityCheckList,e)}},{key:\"authenticityPerPage\",value:function(){return this.lowLvlResponse.resultsByType(qr.AUTHENTICITY).map((function(e){return new Ga(e.AuthenticityCheckList,e.page_idx||0)})).sort((function(e,t){return e.page_idx-t.page_idx}))}},{key:\"imageQualityChecks\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.lowLvlResponse.resultByTypeAndPage(qr.IMAGE_QUALITY,e);if(t)return t.ImageQualityCheckList}},{key:\"imageQualityChecksPerPage\",value:function(){return this.lowLvlResponse.resultsByType(qr.IMAGE_QUALITY)}}]),e}(),qa=function(){function e(t){Ya(this,e),this.ContainerList=t.ContainerList,this.ProcessingFinished=t.ProcessingFinished,this.TransactionInfo=t.TransactionInfo,this.ChipPage=t.ChipPage,this.log=t.log,this.passBackObject=t.passBackObject,this.morePagesAvailable=t.morePagesAvailable}return Ka(e,[{key:\"statusResult\",value:function(){return this.resultByType(qr.STATUS)}},{key:\"textResult\",value:function(){return this.resultByType(qr.TEXT)}},{key:\"imagesResult\",value:function(){return this.resultByType(qr.IMAGES)}},{key:\"barcodeResult\",value:function(){return this.resultByType(qr.BARCODES)}},{key:\"documentTypeResults\",value:function(){return this.resultsByType(qr.DOCUMENT_TYPE)}},{key:\"resultByType\",value:function(e){var t,n=Va(this.ContainerList.List);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.result_type===e)return r}}catch(a){n.e(a)}finally{n.f()}}},{key:\"resultByTypeAndPage\",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Va(this.ContainerList.List);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a.result_type===e&&a.page_idx==n)return a}}catch(o){r.e(o)}finally{r.f()}}},{key:\"resultsByType\",value:function(e){return this.ContainerList.List.filter((function(t){return t.result_type===e}))}}]),e}();function Xa(){Xa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",i=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},\"\")}catch(T){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new R(a||[]);return r(i,\"_invoke\",{value:g(e,n,l)}),i}function c(e,t,n){try{return{type:\"normal\",arg:e.call(t,n)}}catch(T){return{type:\"throw\",arg:T}}}e.wrap=u;var d={};function f(){}function p(){}function _(){}var m={};s(m,o,(function(){return this}));var h=Object.getPrototypeOf,E=h&&h(h(N([])));E&&E!==t&&n.call(E,o)&&(m=E);var C=_.prototype=f.prototype=Object.create(m);function v(e){[\"next\",\"throw\",\"return\"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(r,o,i,l){var s=c(e[r],e,o);if(\"throw\"!==s.type){var u=s.arg,d=u.value;return d&&\"object\"==Qa(d)&&n.call(d,\"__await\")?t.resolve(d.__await).then((function(e){a(\"next\",e,i,l)}),(function(e){a(\"throw\",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a(\"throw\",e,i,l)}))}l(s.arg)}var o;r(this,\"_invoke\",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r=\"suspendedStart\";return function(a,o){if(\"executing\"===r)throw new Error(\"Generator is already running\");if(\"completed\"===r){if(\"throw\"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=y(i,n);if(l){if(l===d)continue;return l}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(\"suspendedStart\"===r)throw r=\"completed\",n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=\"executing\";var s=c(e,t,n);if(\"normal\"===s.type){if(r=n.done?\"completed\":\"suspendedYield\",s.arg===d)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(r=\"completed\",n.method=\"throw\",n.arg=s.arg)}}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,y(e,t),\"throw\"===t.method))return d;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return d}var r=c(n,e.iterator,t.arg);if(\"throw\"===r.type)return t.method=\"throw\",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,d):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(I,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=_,r(C,\"constructor\",{value:_,configurable:!0}),r(_,\"constructor\",{value:p,configurable:!0}),p.displayName=s(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,\"GeneratorFunction\")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},v(S.prototype),s(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new S(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(C),s(C,l,\"Generator\"),s(C,o,(function(){return this})),s(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)\"t\"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type=\"throw\",i.arg=e,t.next=n,r&&(t.method=\"next\",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var l=n.call(o,\"catchLoc\"),s=n.call(o,\"finallyLoc\");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,\"finallyLoc\")&&this.prev<a.finallyLoc){var o=a;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(\"throw\"===r.type){var a=r.arg;O(n)}return a}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=void 0),d}},e}function Ja(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function Qa(e){return Qa=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},Qa(e)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ro=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._worker=null,this._isPrepared=!1,this._isInitialized=!1,this._isProcessing=!1,this._prepareListener=null,this._currentPromise={name:D.empty,resolve:null,reject:null,promise:null},this._recognizerProcessParam={processParam:{}},this._imageProcessParam={processParam:{}}}var t,r,a,o,i;return t=e,r=[{key:\"recognizerProcessParam\",get:function(){return this._recognizerProcessParam},set:function(e){this._recognizerProcessParam=e}},{key:\"imageProcessParam\",get:function(){return this._imageProcessParam},set:function(e){this._imageProcessParam=e}},{key:\"isInitialized\",get:function(){return this._isInitialized},set:function(e){this._isInitialized=e,this.callPrepareListener({isInitialized:e})}},{key:\"isPrepared\",get:function(){return this._isPrepared},set:function(e){this._isPrepared=e,this.callPrepareListener({isPrepared:e})}},{key:\"isProcessing\",get:function(){return this._isProcessing}},{key:\"prepareListener\",get:function(){return this._prepareListener},set:function(e){this._prepareListener=e,this.callPrepareListener({isPrepared:this._isPrepared,isInitialized:this._isInitialized})}},{key:\"postCustomMessage\",value:function(e,t){ue.info(\"DocumentReaderService :: postCustomMessage\"),this._worker&&this._worker.postMessage({target:\"custom\",userData:e,preMain:t})}},{key:\"createProcessImageRequest\",value:function(e,t){var n=e.map((function(e,t){return{data:e,light:6,pageIdx:t}}));return eo(eo({},t),{},{imagesList:n})}},{key:\"createPromise\",value:function(e){var t=this;this._currentPromise.name=e;var n=new Promise((function(e,n){t._currentPromise.resolve=e,t._currentPromise.reject=n}));return this._currentPromise.promise=n,n}},{key:\"finishPromise\",value:function(e,t){if(this._currentPromise.resolve&&this._currentPromise.reject){switch(e){case b.resolve:this._currentPromise.resolve(t);break;case b.reject:default:this._currentPromise.reject(t)}this._currentPromise={name:D.empty,resolve:null,reject:null,promise:null}}}},{key:\"rejectPromise\",value:function(e,t){return Promise.reject(new _e(e,t))}},{key:\"print\",value:function(e){ue.info(\"DocumentReaderService :: print: \".concat(JSON.stringify(e)))}},{key:\"printErr\",value:function(e){ue.error(\"DocumentReaderService :: printErr: \".concat(JSON.stringify(e)))}},{key:\"onWorkerMessage\",value:function(e){var t=e.data;switch(t.target){case T.stdout:this.print(t.content);break;case T.stderr:if(this.printErr(t.content),\"object\"===Qa(t.content))this.finishPromise(b.reject,t.content);else{var n=new _e(R.WASM_ERROR,t.content);this.finishPromise(b.reject,n)}this._isProcessing=!1;break;case T.custom:if(t.method===N.onRuntimeInitialized){ue.info(\"DocumentReaderService :: onWorkerMessage -> custom -> onRuntimeInitialized\"),this.finishPromise(b.resolve),this.isPrepared=!0;break}if(t.method===N.initializeService){ue.info(\"DocumentReaderService :: onWorkerMessage -> custom -> initializeService\"),this.finishPromise(b.resolve),this.isInitialized=!0;break}if(t.method===N.process||t.method===N.processImage){if(t.response&&Object.keys(t.response).length>1){var r=new Za(t.response);this.finishPromise(b.resolve,r)}else this.finishPromise(b.reject);this._isProcessing=!1;break}if(t.method===N.startNewPage||t.method===N.startNewDocument||t.method===N.close){this.finishPromise(b.resolve);break}ue.info(\"DocumentReaderService :: onWorkerMessage emit: \".concat(JSON.stringify({data:t}))),this.finishPromise(b.reject);break;default:throw this.finishPromise(b.reject),\"what? \"+t.target}}},{key:\"callPrepareListener\",value:function(e){var t={isInitialized:this._isInitialized,isPrepared:this._isPrepared};this._prepareListener&&this._prepareListener(eo(eo({},t),e))}},{key:\"prepare\",value:(o=Xa().mark((function e(){var t,r,a,o,i=this;return Xa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isPrepared){e.next=2;break}return e.abrupt(\"return\",this.rejectPromise(R.ALREADY_PREPARED));case 2:if(!this._currentPromise.promise){e.next=8;break}if(this._currentPromise.name!==D.prepare){e.next=7;break}return e.abrupt(\"return\",this._currentPromise.promise);case 7:return e.abrupt(\"return\",this.rejectPromise(R.IN_PROCESS));case 8:return e.prev=9,ue.info(\"DocumentReaderService :: Download worker (PROD mode)...\"),e.next=13,fetch(\"https://wasm.regulaforensics.com/document/beta/6.6/985be49-52b1fac7/ProcMgr.worker.js\");case 13:return t=e.sent,e.next=16,t.blob();case 16:r=e.sent,a=URL.createObjectURL(r),this._worker=new Worker(a),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),ue.error(\"DocumentReaderService :: Worker error: \".concat(JSON.stringify(e.t0)));case 24:e.next=30;break;case 26:ue.info(\"DocumentReaderService :: Connecting worker (DEV mode)...\"),o=n(\"./wasm/docreader/ProcMgr.worker.js\"),this._worker=new o.default,ue.info(\"DocumentReaderService :: Worker connected (DEV mode)\");case 30:return this._worker&&(this._worker.onmessage=function(e){return i.onWorkerMessage(e)},this._worker.postMessage({target:\"gl\",op:\"setPrefetched\",preMain:!0}),this._worker.postMessage({target:\"worker-init\",URL:document.URL,currentScriptUrl:\"https://wasm.regulaforensics.com/document/beta/6.6/985be49-52b1fac7/ProcMgr.worker.js\",preMain:!0})),ue.info(\"DocumentReaderService :: Worker prepared\"),e.abrupt(\"return\",this.createPromise(D.prepare));case 33:case\"end\":return e.stop()}}),e,this,[[9,21]])})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=o.apply(e,t);function i(e){Ja(a,n,r,i,l,\"next\",e)}function l(e){Ja(a,n,r,i,l,\"throw\",e)}i(void 0)}))},function(){return i.apply(this,arguments)})},{key:\"initialize\",value:function(e){var t;return ue.info(\"DocumentReaderService :: initialize start\"),this._isPrepared?this._isInitialized?this.rejectPromise(R.ALREADY_INITIALIZED):this._currentPromise.promise?this._currentPromise.name===D.initialize?this._currentPromise.promise:this.rejectPromise(R.IN_PROCESS):(this.postCustomMessage({event:N.initializeService,hostOrigin:null===(t=document.location)||void 0===t?void 0:t.origin,license:null==e?void 0:e.license},!0),ue.info(\"DocumentReaderService :: initialize end\"),this.createPromise(D.initialize)):this.rejectPromise(R.NOT_PREPARED)}},{key:\"processImage\",value:function(e,t){if(ue.info(\"DocumentReaderService :: processImage start\"),!this._isPrepared)return this.rejectPromise(R.NOT_PREPARED);if(!this._isInitialized)return this.rejectPromise(R.NOT_INITIALIZED);if(this._currentPromise.promise)return this.rejectPromise(R.IN_PROCESS);var n=this.createProcessImageRequest(e,t);return this._isProcessing=!0,this.postCustomMessage({event:N.processImage,request:n},!0),ue.info(\"DocumentReaderService :: processImage end\"),this.createPromise(D.processImage)}},{key:\"process\",value:function(e,t){if(ue.info(\"DocumentReaderService :: process start\"),!this._isPrepared)return this.rejectPromise(R.NOT_PREPARED);if(!this._isInitialized)return this.rejectPromise(R.NOT_INITIALIZED);if(this._currentPromise.promise)return this.rejectPromise(R.IN_PROCESS);var n=t===y.PROCESS?this._recognizerProcessParam:this._imageProcessParam;return this._isProcessing=!0,this.postCustomMessage({event:N.process,imageDataArray:e,request:n,commandCode:t},!0),ue.info(\"DocumentReaderService :: process end\"),this.createPromise(D.process)}},{key:\"startNewPage\",value:function(){return ue.info(\"DocumentReaderService :: startNewPage start\"),this._isPrepared?this._isInitialized?this._currentPromise.promise?this._currentPromise.name===D.startNewPage?this._currentPromise.promise:this.rejectPromise(R.IN_PROCESS):(this.postCustomMessage({event:N.startNewPage},!0),ue.info(\"DocumentReaderService :: startNewPage end\"),this.createPromise(D.startNewPage)):this.rejectPromise(R.NOT_INITIALIZED):this.rejectPromise(R.NOT_PREPARED)}},{key:\"startNewDocument\",value:function(){return ue.info(\"DocumentReaderService :: startNewDocument start\"),this._isPrepared?this._isInitialized?this._currentPromise.promise?this._currentPromise.name===D.startNewDocument?this._currentPromise.promise:this.rejectPromise(R.IN_PROCESS):(this.postCustomMessage({event:N.startNewDocument},!0),ue.info(\"DocumentReaderService :: startNewDocument end\"),this.createPromise(D.startNewDocument)):this.rejectPromise(R.NOT_INITIALIZED):this.rejectPromise(R.NOT_PREPARED)}},{key:\"shutdown\",value:function(){ue.info(\"DocumentReaderService :: shutdown\"),this._worker&&this._worker.terminate(),this._isPrepared=!1,this._isInitialized=!1,this._isProcessing=!1,this._worker=null,this._prepareListener=null,this._currentPromise={name:D.empty,resolve:null,reject:null,promise:null}}},{key:\"showVersion\",value:function(){console.info(\"%cThis site using @regulaforensics/vp-frontend-components document version: \".concat(\"2.1.0-beta.1\".trim()),\"color: #6e56b0;\")}}],r&&no(t.prototype,r),a&&no(t,a),Object.defineProperty(t,\"prototype\",{writable:!1}),e}(),ao=ro;function oo(e){return oo=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},oo(e)}function io(){io=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a=\"function\"==typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",i=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},\"\")}catch(T){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),l=new R(a||[]);return r(i,\"_invoke\",{value:g(e,n,l)}),i}function c(e,t,n){try{return{type:\"normal\",arg:e.call(t,n)}}catch(T){return{type:\"throw\",arg:T}}}e.wrap=u;var d={};function f(){}function p(){}function _(){}var m={};s(m,o,(function(){return this}));var h=Object.getPrototypeOf,E=h&&h(h(N([])));E&&E!==t&&n.call(E,o)&&(m=E);var C=_.prototype=f.prototype=Object.create(m);function v(e){[\"next\",\"throw\",\"return\"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(r,o,i,l){var s=c(e[r],e,o);if(\"throw\"!==s.type){var u=s.arg,d=u.value;return d&&\"object\"==oo(d)&&n.call(d,\"__await\")?t.resolve(d.__await).then((function(e){a(\"next\",e,i,l)}),(function(e){a(\"throw\",e,i,l)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return a(\"throw\",e,i,l)}))}l(s.arg)}var o;r(this,\"_invoke\",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function g(e,t,n){var r=\"suspendedStart\";return function(a,o){if(\"executing\"===r)throw new Error(\"Generator is already running\");if(\"completed\"===r){if(\"throw\"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var l=y(i,n);if(l){if(l===d)continue;return l}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(\"suspendedStart\"===r)throw r=\"completed\",n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);r=\"executing\";var s=c(e,t,n);if(\"normal\"===s.type){if(r=n.done?\"completed\":\"suspendedYield\",s.arg===d)continue;return{value:s.arg,done:n.done}}\"throw\"===s.type&&(r=\"completed\",n.method=\"throw\",n.arg=s.arg)}}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=void 0,y(e,t),\"throw\"===t.method))return d;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return d}var r=c(n,e.iterator,t.arg);if(\"throw\"===r.type)return t.method=\"throw\",t.arg=r.arg,t.delegate=null,d;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=void 0),t.delegate=null,d):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(I,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=_,r(C,\"constructor\",{value:_,configurable:!0}),r(_,\"constructor\",{value:p,configurable:!0}),p.displayName=s(_,l,\"GeneratorFunction\"),e.isGeneratorFunction=function(e){var t=\"function\"==typeof e&&e.constructor;return!!t&&(t===p||\"GeneratorFunction\"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,l,\"GeneratorFunction\")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},v(S.prototype),s(S.prototype,i,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new S(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},v(C),s(C,l,\"Generator\"),s(C,o,(function(){return this})),s(C,\"toString\",(function(){return\"[object Generator]\"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)\"t\"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(\"throw\"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type=\"throw\",i.arg=e,t.next=n,r&&(t.method=\"next\",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var l=n.call(o,\"catchLoc\"),s=n.call(o,\"finallyLoc\");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error(\"try statement without catch or finally\");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,\"finallyLoc\")&&this.prev<a.finallyLoc){var o=a;break}}o&&(\"break\"===e||\"continue\"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method=\"next\",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if(\"throw\"===e.type)throw e.arg;return\"break\"===e.type||\"continue\"===e.type?this.next=e.arg:\"return\"===e.type?(this.rval=this.arg=e.arg,this.method=\"return\",this.next=\"end\"):\"normal\"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if(\"throw\"===r.type){var a=r.arg;O(n)}return a}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=void 0),d}},e}function lo(e,t,n,r,a,o,i){try{var l=e[o](i),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function so(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){lo(o,r,a,i,l,\"next\",e)}function l(e){lo(o,r,a,i,l,\"throw\",e)}i(void 0)}))}}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,\"value\"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var co=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),this._videoElement=t||null,this._stream=null,this._documentReaderService=new ao,this._documentReaderService.recognizerProcessParam=Q,this._documentReaderService.imageProcessParam=$,this._canvas=document.createElement(\"canvas\"),this._videoEventListener=null,this._recognizerListener=null,this._isPrepared=!1,this._isInitialized=!1,this._isProcessing=!1,this._pageIdx=0,this._streamParam={cameraMode:S.user,preferredCameraId:\"\",resolution:V.HD}}var t,n,r,a,o,i,l,s,u;return t=e,n=[{key:\"streamParam\",get:function(){return this._streamParam},set:function(e){this._streamParam=ze(this._streamParam,e)}},{key:\"recognizerProcessParam\",get:function(){return this._documentReaderService.recognizerProcessParam},set:function(e){this._documentReaderService.recognizerProcessParam=ze(this._documentReaderService.recognizerProcessParam,e)}},{key:\"imageProcessParam\",get:function(){return this._documentReaderService.imageProcessParam},set:function(e){this._documentReaderService.imageProcessParam=ze(this._documentReaderService.imageProcessParam,e)}},{key:\"recognizeListener\",get:function(){return this._recognizerListener},set:function(e){this._recognizerListener=e}},{key:\"videoElement\",get:function(){return this._videoElement},set:function(e){this._videoElement=e}},{key:\"isPrepared\",get:function(){return this._isPrepared}},{key:\"isInitialized\",get:function(){return this._isInitialized}},{key:\"isProcessing\",get:function(){return this._isProcessing}},{key:\"startStream\",value:function(){var e=this;return new Promise(function(){var t=so(io().mark((function t(n,r){var a,o,i,l;return io().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,ke();case 3:return a=t.sent,t.next=6,Ue(e._streamParam.cameraMode,a,e._streamParam.preferredCameraId);case 6:return o=t.sent,t.next=9,je(e._streamParam.resolution,o,e._streamParam.preferredCameraId);case 9:i=t.sent,e._videoElement&&(i.stream?(e._stream=i.stream,e._videoElement.srcObject=e._stream,e._videoEventListener=function(){e._videoElement&&(e._canvas.width=e._videoElement.videoWidth,e._canvas.height=e._videoElement.videoHeight,n())},e._videoElement.addEventListener(\"play\",e._videoEventListener)):(l=Y[i.status]||R.UNKNOWN_ERROR,r(new _e(l)))),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(0),r(t.t0);case 16:case\"end\":return t.stop()}}),t,null,[[0,13]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:\"detect\",value:function(e){var t=this;return new Promise(function(){var n=so(io().mark((function n(r,a){var o;return io().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=function(){var n=so(io().mark((function n(){var i,l,s,u,c;return io().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,t._videoElement&&(null==(l=t._canvas.getContext(\"2d\",{willReadFrequently:!0}))||l.drawImage(t._videoElement,0,0),i=null==l?void 0:l.getImageData(0,0,t._videoElement.videoWidth,t._videoElement.videoHeight)),i){n.next=4;break}return n.abrupt(\"return\");case 4:return t._isProcessing=!0,n.next=7,t._documentReaderService.process([i],y.PROCESS);case 7:if(s=n.sent,u=We(s,t._pageIdx,t._documentReaderService.recognizerProcessParam.processParam.multipageProcessing),t._recognizerListener&&t._recognizerListener(s),!K[u]&&u!==p.START_NEXT_PAGE&&t._isProcessing){n.next=15;break}return t._isProcessing=!1,u===p.START_NEXT_PAGE&&e?(c={data:s,startNextPage:function(){var e=so(io().mark((function e(){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.startNewPage();case 2:return e.next=4,o();case 4:case\"end\":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),finishRecognition:function(){t._pageIdx=0,r(s)}},e(c)):(t._pageIdx=0,r(s)),n.abrupt(\"return\");case 15:return n.next=17,o();case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(0),a(n.t0);case 22:case\"end\":return n.stop()}}),n,null,[[0,19]])})));return function(){return n.apply(this,arguments)}}(),n.next=3,o();case 3:case\"end\":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}},{key:\"startNewPage\",value:(u=so(io().mark((function e(){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._pageIdx++,e.next=3,this._documentReaderService.startNewPage();case 3:case\"end\":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:\"startNewDocument\",value:(s=so(io().mark((function e(){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.startNewDocument();case 2:case\"end\":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:\"startRecognition\",value:(l=so(io().mark((function e(t){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.startNewDocument();case 2:if(this._stream){e.next=5;break}return e.next=5,this.startStream();case 5:return e.next=7,this.detect(t);case 7:return e.abrupt(\"return\",e.sent);case 8:case\"end\":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:\"processImage\",value:(i=so(io().mark((function e(t){var n,r;return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,be(t,1920,j);case 3:return n=e.sent,e.next=6,Promise.all(n);case 6:if(!((r=e.sent).reduce((function(e,t){return e+t.data.byteLength}),0)>H)){e.next=12;break}return e.abrupt(\"return\",Promise.reject(new _e(R.FILE_SIZE)));case 12:return e.next=14,this._documentReaderService.process(r,y.PROCESS_IMAGE);case 14:return e.abrupt(\"return\",e.sent);case 15:e.next=20;break;case 17:return e.prev=17,e.t0=e.catch(0),e.abrupt(\"return\",Promise.reject(e.t0));case 20:case\"end\":return e.stop()}}),e,this,[[0,17]])}))),function(e){return i.apply(this,arguments)})},{key:\"stopRecognition\",value:function(){this._isProcessing=!1,this._videoEventListener&&this._videoElement&&(this._videoElement.removeEventListener(\"play\",this._videoEventListener),this._videoEventListener=null),this._stream&&(He(this._stream),this._stream=null)}},{key:\"prepare\",value:(o=so(io().mark((function e(){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.prepare();case 2:this._isPrepared=!0;case 3:case\"end\":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:\"initialize\",value:(a=so(io().mark((function e(t){return io().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._documentReaderService.initialize({license:null==t?void 0:t.license});case 2:this._isInitialized=!0;case 3:case\"end\":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:\"shutdown\",value:function(){this._isInitialized=!1,this._isPrepared=!1,this._documentReaderService.shutdown()}}],n&&uo(t.prototype,n),r&&uo(t,r),Object.defineProperty(t,\"prototype\",{writable:!1}),e}(),fo=co;function po(){var e=window.customElements.get(\"document-reader\"),t=window.customElements.get(\"camera-snapshot\"),n=window.customElements.get(\"fullscreen-container\");!e&&\"camerasnapshot,docreader,fullscreencontainer\".includes(\"docreader\")&&window.customElements.define(\"document-reader\",$n),!t&&\"camerasnapshot,docreader,fullscreencontainer\".includes(\"camerasnapshot\")&&window.customElements.define(\"camera-snapshot\",Rr),!n&&\"camerasnapshot,docreader,fullscreencontainer\".includes(\"fullscreencontainer\")&&window.customElements.define(\"fullscreen-container\",aa);var r=window.customElements.whenDefined(\"document-reader\"),a=window.customElements.whenDefined(\"camera-snapshot\"),o=window.customElements.whenDefined(\"fullscreen-container\");return Promise.all([r,a,o])}}();var a=r.Wo,o=r.ly,i=r.fl;export{a as DocumentReaderProcessor,o as DocumentReaderService,i as defineComponents};","import { Injectable, ElementRef } from '@angular/core';\nimport { defineComponents, DocumentReaderService, DocumentReaderProcessor } from '@regulaforensics/vp-frontend-document-components-beta';\nimport { TranslateApiService } from '@projects-shared/services/translate.service';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RegulaService {\n\n private RegulaDocumentSDK: DocumentReaderService = window[\"RegulaDocumentSDK\"];\n private RegulaLicense = \"\";\n private RegulaProcessor: DocumentReaderProcessor;\n constructor(private translateService: TranslateService, private translateApiService: TranslateApiService,private configResolver: ConfigResolverService) {\n\n\n\n\n }\n\n /**\n * Prepares the Regula document reader web component.\n *\n * @param docReaderRef Reference to the document reader HTML element.\n * @returns Regula License to be set as an attribute on the document reader web component.\n */\n async prepareRegulaDocumentReader(docReaderRef: ElementRef, translation: any, locale: string, eventId: string): Promise<string> {\n\n try {\n\n window[\"RegulaDocumentSDK\"] = new DocumentReaderService();\n\n defineComponents().then(async () => {\n await window[\"RegulaDocumentSDK\"].prepare();\n\n // Initialization made on the component attribute side to avoid issues\n // await window[\"RegulaDocumentSDK\"].initialize({license: this.RegulaLicense});\n\n await this.setTranslation(docReaderRef, locale, eventId);\n\n });\n await this.getLicense();\n }\n catch (error) {\n console.log(error);\n }\n finally {\n return this.RegulaLicense;\n }\n\n\n\n\n }\n\n\n async restartScan(docReaderRef: ElementRef) {\n\n\n // Need to ask Regula support regarding a cleaner way to perform the component refresh\n\n let old = docReaderRef.nativeElement.outerHTML;\n\n docReaderRef.nativeElement.outerHTML = old;\n\n }\n\n async prepareRegulaProcessor() {\n\n this.RegulaProcessor = new DocumentReaderProcessor();\n\n // Locate scenario only\n this.RegulaProcessor.imageProcessParam = {\n processParam: {\n scenario: 'Locate',\n returnUncroppedImage: true\n\n }\n }\n await this.RegulaProcessor.prepare();\n await this.getLicense();\n await this.RegulaProcessor.initialize({license: this.RegulaLicense});\n }\n\n\n /**\n* Processes images using the Regula SDK.\n*\n* @param fileList File List obtained using <input>.\n* @returns results which may contain images and text\n*/\n async processImages(fileList: any) {\n\n if (!this.RegulaProcessor || !this.RegulaProcessor.isInitialized) {\n await this.prepareRegulaProcessor();\n }\n\n let result = await this.RegulaProcessor.processImage(fileList);\n\n let results = { images: result.images, text: result.text }\n return results;\n }\n\n\n\n private async setTranslation(docReaderRef: ElementRef, locale: string, eventId: string) {\n let translations = await this.translateService.getTranslation(locale).toPromise();\n if (translations) {\n docReaderRef.nativeElement.translations = {\n [locale]: {\n fromCamera: translations.idScanning['regulacomponent-camera-text'],\n fromGallery: translations.idScanning['regulacomponent-gallery-text'],\n scanIDInBrowser: translations.idScanning['regulacomponent-title'],\n useYourDeviceCamera: translations.idScanning['regulacomponent-intro']\n }\n };\n }\n\n // this.translateApiService.getTranslation(eventId,locale).then(translations=>{\n // console.log(translations);\n // this.translateService.setTranslation(locale, translations);\n // if(translations){\n // docReaderRef.nativeElement.translations = {\n // [locale]: {\n // fromCamera: translations.idScanning['regulacomponent-camera-text'],\n // fromGallery: translations.idScanning['regulacomponent-gallery-text'],\n // scanIDInBrowser: translations.idScanning['regulacomponent-title'],\n // useYourDeviceCamera: translations.idScanning['regulacomponent-intro']\n // }\n // };\n // }\n // })\n\n\n\n // const promise = observable.toPromise();\n // let translations = await promise;\n // this.translateService.setTranslation(locale, translations);\n\n // if(translations){\n // docReaderRef.nativeElement.translations = {\n // [locale]: {\n // fromCamera: translations.idScanning['regulacomponent-camera-text'],\n // fromGallery: translations.idScanning['regulacomponent-gallery-text'],\n // scanIDInBrowser: translations.idScanning['regulacomponent-title'],\n // useYourDeviceCamera: translations.idScanning['regulacomponent-intro']\n // }\n // };\n // }\n\n\n\n // this.translateApiService.getTranslation(eventId,locale).then((translation)=>{\n\n // console.log(translation);\n // this.translateService.setTranslation(locale,translation);\n\n // if(translation){\n // docReaderRef.nativeElement.translations = {\n // [locale]: {\n // fromCamera: translation.idScanning['regulacomponent-camera-text'],\n // fromGallery: translation.idScanning['regulacomponent-gallery-text'],\n // scanIDInBrowser: translation.idScanning['regulacomponent-title'],\n // useYourDeviceCamera: translation.idScanning['regulacomponent-intro']\n // }\n // };\n // }\n\n // })\n }\n\n\n private async getLicense(){\n this.RegulaLicense = (await this.configResolver.getConfig()).regulaLicense;\n }\n\n\n}\n","<document-reader class=\"font-family-regula\" [attr.license]=\"RegulaLicense\" internal-scenario=\"Locate\" #docreader copyright=\"false\"\n [attr.locale]=\"locale\" multipage-processing=\"true\" start-screen=\"true\" multiple=\"true\" change-camera=\"true\">\n</document-reader>\n\n<div style=\"display: flex;\">\n <!-- <button (click)=\"restartScan()\">Restart Scan</button> -->\n <ng-container *ngIf=\"images.length>0\">\n <div *ngFor=\"let docImage of images\">\n <img height=\"140px\" [src]=\"docImage.src\">\n </div>\n </ng-container>\n\n\n\n <ul *ngIf=\"showTextFields\">\n <li *ngFor=\"let regulaTextField of regulaTextFields\">\n {{regulaTextField.fieldName}} : {{regulaTextField.value}}\n </li>\n </ul>\n</div>","import { Component, ElementRef, OnInit, ViewChild, Input, Output, EventEmitter } from '@angular/core';\nimport { RegulaService } from '@projects-shared/services/regula.service';\nimport { RegulaTextResult } from '@projects-shared/models/regula-text-result.model';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { RegulaImageResult } from '@projects-shared/models/regula-image-result.model';\n\n@Component({\n selector: 'app-regula-doc-reader',\n templateUrl: './regula-doc-reader.component.html',\n styleUrls: ['./regula-doc-reader.component.scss']\n})\nexport class RegulaDocReaderComponent implements OnInit {\n @ViewChild('docreader', { static: true }) RegulaDocumentReader: ElementRef;\n regulaTextFields: Array<RegulaTextResult>;\n showTextFields = false;\n images = [];\n regulaImageResults: Array<RegulaImageResult> = [];\n RegulaLicense = \"\";\n @Input() locale = 'en';\n @Input() eventId: string;\n @Input() translations;\n\n @Output() regulaDocReaderSuccessEvent = new EventEmitter();\n @Output() regulaDocReaderErrorEvent = new EventEmitter();\n @Output() regulaDocReaderEvent = new EventEmitter();\n constructor(private regulaSrv: RegulaService,\n private sanitizer: DomSanitizer) {\n\n }\n\n async ngOnInit(): Promise<void> {\n\n try {\n this.RegulaLicense = await this.regulaSrv.prepareRegulaDocumentReader(this.RegulaDocumentReader, this.translations, this.locale, this.eventId);\n\n this.RegulaDocumentReader.nativeElement.addEventListener('document-reader', async (event) => {\n\n\n // Emit an event to notify the parent component. Would probably need modifications later on what the event data holds\n // this.regulaDocReaderEvent.emit(event);\n\n switch (event.detail.action) {\n case \"PROCESS_FINISHED\": {\n\n\n //Need to recheck this flag and what it actually means\n //&& event.detail.data.response.text.validityStatus === 1 \n\n if (event.detail.data.status === 1) {\n\n // Handle text response\n if (event.detail.data.response.text) {\n this.regulaTextFields = [];\n event.detail.data.response.text.fieldList.forEach((textField: RegulaTextResult) => {\n this.regulaTextFields.push(new RegulaTextResult(textField));\n });\n\n this.showTextFields = true;\n }\n\n // Handle image response\n if (event.detail.data.response.images) {\n this.images = [];\n this.regulaImageResults = [];\n\n // Need to recheck the fieldType ids\n // let documentImages = event.detail.data.response.images.fieldList.filter(field => field.fieldType === 207);\n let documentImages = event.detail.data.response.images.fieldList;\n documentImages.forEach(docImage => {\n // Need to recheck this, as we might need images that are not cropped for some reason in the future\n\n // Getting only uncropped images for better results on BE processing\n let uncroppedImages = docImage.valueList.filter(docImg => docImg.containerType === 16);\n\n //let croppedImages = docImage.valueList;\n this.images.push(...uncroppedImages);\n });\n\n this.images.forEach(img => {\n\n //img.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:image/png;base64, ${img.value}`);\n\n //let regulaImageResult = new RegulaImageResult(null,`data:image/png;base64, ${img.value}`);\n let regulaImageResult = new RegulaImageResult(null, img.value);\n this.regulaImageResults.push(regulaImageResult);\n });\n\n\n }\n\n\n this.regulaDocReaderSuccessEvent.emit({ ImageResults: this.regulaImageResults, TextResults: this.regulaTextFields });\n\n }\n else {\n this.regulaDocReaderErrorEvent.emit(event.detail.data);\n throw event.detail.data.reason\n }\n\n break;\n }\n case \"PRESS_CAMERA_BUTTON\":\n case \"PRESS_FILE_BUTTON\":{\n\n\n this.regulaDocReaderEvent.emit(event.detail.action);\n // Call api to log these actions\n //this.idScanningLogsSrv.logEvent(event.detail.action);\n }\n default: {\n break;\n }\n }\n });\n\n this.applyCustomStyles();\n } catch (e) {\n console.error(e);\n }\n }\n\n\n async handleDocumentReaderEvents() {\n\n this.RegulaDocumentReader.nativeElement.addEventListener('document-reader', async (event) => {\n\n this.images = [];\n this.regulaTextFields = [];\n\n switch (event.detail.action) {\n case \"PROCESS_FINISHED\": {\n\n\n //Need to recheck this flag and what it actually means\n //&& event.detail.data.response.text.validityStatus === 1 \n\n if (event.detail.data.status === 1) {\n\n // Handle text response\n if (event.detail.data.response.text) {\n //this.regulaTextFields = [];\n event.detail.data.response.text.fieldList.forEach((textField: RegulaTextResult) => {\n this.regulaTextFields.push(new RegulaTextResult(textField));\n });\n\n this.showTextFields = true;\n }\n\n // Handle image response\n if (event.detail.data.response.images) {\n //this.images = [];\n let documentImages = event.detail.data.response.images.fieldList.filter(field => field.fieldType === 207);\n documentImages.forEach(docImage => {\n let croppedImages = docImage.valueList.filter(docImg => docImg.containerType === 1);\n this.images.push(...croppedImages);\n });\n\n this.images.forEach(img => {\n\n img.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:image/png;base64, ${img.value}`);\n });\n\n }\n await this.regulaSrv.restartScan(this.RegulaDocumentReader);\n this.handleDocumentReaderEvents();\n }\n else {\n throw event.detail.data.reason\n }\n\n break;\n }\n default: {\n break;\n }\n }\n });\n // console.log(event.detail) \n\n // switch (event.detail.action){\n // case \"PROCESS_FINISHED\" : {\n\n // console.log(event.detail)\n // //Need to recheck this flag and what it actually means\n // //&& event.detail.data.response.text.validityStatus === 1 \n\n // if(event.detail.data.status === 1 && event.detail.data.response.text ){\n // this.regulaTextFields = [];\n // event.detail.data.response.text.fieldList.forEach( (textField:RegulaTextResult) => {\n // this.regulaTextFields.push(new RegulaTextResult(textField));\n // });\n\n // console.log(this.regulaTextFields);\n\n\n // this.images = [];\n // let documentImages = event.detail.data.response.images.fieldList.filter(field=>field.fieldType === 207);\n\n // documentImages.forEach(docImage => {\n\n // let croppedImages = docImage.valueList.filter(docImg=>docImg.containerType === 1);\n\n\n\n // this.images.push(...croppedImages);\n\n\n // });\n // console.log(this.images);\n // this.images.forEach(img => {\n // console.log(img.value);\n // img.src = this.sanitizer.bypassSecurityTrustResourceUrl(`data:image/png;base64, ${img.value}`);\n // }); \n\n // console.log(this.images);\n // this.showTextFields = true;\n // }\n\n // break;\n // }\n // default:{\n // break;\n // }\n // }\n }\n applyCustomStyles(){\n try {\n const shadowOpen = this.RegulaDocumentReader.nativeElement.shadowRoot;\n var style = document.createElement('style');\n style.innerHTML = `\n div:first-of-type > div:first-child {\n padding:24px 0px 0px 0px !important;\n }\n div:first-of-type{\n box-shadow:none !important; \n }\n button[data-e2e=\"from-camera\"]{ \n border: 0px !important;\n }\n button[data-e2e=\"from-gallery\"]{ \n border: 0px !important;\n margin-left:5px !important;\n }\n div:first-of-type > div:first-of-type > div:first-of-type > p:first-child{\n font-size:20px !important;\n color: #123985 !important;\n }\n div:first-of-type > div:first-of-type > div:first-of-type >p:last-child{\n font-size:16px !important;\n color: #071735 !important;\n }\n button[data-e2e=\"cross\"]{\n display:none !important;\n }`\n shadowOpen.appendChild(style);\n } catch (e) {\n console.log(e);\n }\n }\n restartScan() {\n this.regulaSrv.restartScan(this.RegulaDocumentReader);\n }\n}\n\n\n\n\n","<header class=\"header\">\n <div class=\"branding-container\">\n <img class=\"branding-logo\" src=\"/assets/images/branding/corp/logo.png\" />\n <div class=\"branding-text\">\n UEFA\n </div>\n </div>\n</header>\n<ng-container *ngIf=\"this.scanningStatus != scanningStatusEnum.Initialized else showScanner\">\n <div class=\"scanning-status\">\n <ng-container *ngIf=\"this.scanningStatus == scanningStatusEnum.Cancelled\">\n <img src=\"assets/images/id-scanning/scan-info.svg\" class=\"icon\" />\n <p class=\"title top-margin\">{{'idScanning.processStopped-title-mobile' | translate}}</p>\n <p class=\"text\">{{'idScanning.processStopped-subtitle-mobile' | translate}}</p>\n </ng-container>\n <ng-container *ngIf=\"this.scanningStatus == scanningStatusEnum.Success\">\n <img src=\"assets/images/id-scanning/id-uploaded.svg\" class=\"icon\" />\n <p class=\"title top-margin\">\n {{'idScanning.iduploaded-title-mobile' | translate}}\n </p>\n </ng-container>\n <ng-container *ngIf=\"this.scanningStatus == scanningStatusEnum.Error\">\n <img src=\"assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title top-margin\">\n {{'idScanning.error-title-mobile' | translate}}\n </p>\n <p class=\"text\">{{'idScanning.error-subtitle-mobile' | translate}}</p>\n <button class=\"button\" (click)=\"tryAgain()\">\n {{'idScanning.retry-mobile' | translate}}\n </button>\n </ng-container>\n <ng-container *ngIf=\"this.scanningStatus == scanningStatusEnum.UnsupportedDocument\">\n <img src=\"assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title top-margin\">\n {{'idScanning.error-unsupported-mobile' | translate}}\n </p>\n <button class=\"button\" (click)=\"tryAgain()\">\n {{'idScanning.retry-mobile' | translate}}\n </button>\n </ng-container>\n </div>\n</ng-container>\n<ng-template #showScanner>\n <div [innerHTML]=\"'idScanning.mobilepage-title' | translate\" class=\"title mobile-page-label\"></div>\n <div [innerHTML]=\"'idScanning.mobilepage-text' | translate\" class=\"mobile-page-label\"></div>\n <div *ngIf=\"docResults.length>0\">\n\n <ul>\n <li *ngFor=\"let docRes of docResults\">\n {{docRes.id}} {{docRes.value}}\n </li>\n </ul>\n </div>\n <app-regula-doc-reader (regulaDocReaderEvent)=\"docReaderEvent($event)\"\n (regulaDocReaderErrorEvent)=\"docReaderError($event)\" (regulaDocReaderSuccessEvent)=\"docReaderSuccess($event)\"\n [locale]=\"locale\" [eventId]=\"eventId\">\n </app-regula-doc-reader>\n</ng-template>","import { ExpiredLinkPageComponent } from '@front-office/components/expired-link-page/expired-link-page.component';\nimport { FoClosedComponent } from '@front-office/components/fo-closed/fo-closed.component';\nimport { ActivateInvitationResolver } from '@front-office/shared/resolvers/activate-invitation.resolver';\nimport { FormRenderComponent } from '@front-office/components/form-render/form-render.component';\nimport { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { LandingComponent } from '@front-office/components/landing/landing.component';\n\nimport { HomeComponent } from '@front-office/components/home/home.component';\nimport { LayoutDefaultComponent } from '@front-office/layouts/layout-default/layout-default.component';\nimport { AuthenticationGuard } from '@front-office/security/authentication.guard';\nimport { PageNotFoundComponent } from '@front-office/components/page-not-found/page-not-found.component';\nimport { RedirectToHomeGuard } from '@front-office/shared/guards/redirect-to-home.guard';\nimport { DeadlineGuard } from '@front-office/security/deadline.guard';\nimport { ServerErrorPageComponent } from '@front-office/components/server-error-page/server-error-page.component';\nimport { IdScanningMobileComponent } from '@projects-shared/components/id-scanning-mobile/id-scanning-mobile.component';\nimport { LinkExpiredComponent } from '@projects-shared/components/link-expired/link-expired.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: LayoutDefaultComponent,\n canActivate: [AuthenticationGuard],\n children: [\n { path: '', redirectTo: 'home', pathMatch: 'full' },\n {\n path: 'home',\n component: HomeComponent,\n resolve: { data: ActivateInvitationResolver }\n },\n {\n path: 'event/:eventId/form/:id',\n component: FormRenderComponent,\n canActivate: [DeadlineGuard]\n },\n { path: 'error', component: ServerErrorPageComponent },\n { path: 'not-found', component: PageNotFoundComponent },\n { path: 'expired-link', component: ExpiredLinkPageComponent },\n { path: 'fo-closed', component: FoClosedComponent },\n ],\n },\n { path: \"id-scanning\", component: IdScanningMobileComponent},\n { path: 'scan-expired', component: LinkExpiredComponent },\n {\n path: 'landing',\n component: LandingComponent,\n canActivate: [RedirectToHomeGuard]\n },\n { path: '**', component: PageNotFoundComponent },\n];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],\n exports: [RouterModule]\n})\nexport class AppRoutingModule { }\n","import { Component, HostListener, OnInit } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service';\nimport { DocReaderSignalRService } from '@projects-shared/services/doc-reader-signalr.service';\nimport { ScanningStatus } from '@projects-shared/models/scanning-status.model';\nimport { TranslateApiService } from '@projects-shared/services/translate.service';\nimport { IdScanningLogsService } from '@projects-shared/services/id-scanning-logs.service';\nimport { IdScanningLogModel } from '@projects-shared/models/id-scanning-log.model';\nimport { DocumentScanningModel } from '@projects-shared/models/document-scanning.model';\nimport { DocumentScanningService } from '@projects-shared/services/document-scanning.service';\n\n@Component({\n selector: 'app-id-scanning-mobile',\n templateUrl: './id-scanning-mobile.component.html',\n styleUrls: ['./id-scanning-mobile.component.scss']\n})\nexport class IdScanningMobileComponent implements OnInit {\n locale: string = 'en';\n eventId = '';\n moduleName = '';\n analyzeDocumentURL = '';\n docResults = [];\n scanningStatusEnum = ScanningStatus;\n scanningStatus = 1;\n scanningUpdateSubscription: any;\n signalREventsRegistered = false;\n errorMessage = '';\n formId = '';\n constructor(\n private route: ActivatedRoute,\n private translateApiService: TranslateApiService,\n private configResolver: ConfigResolverService,\n private translateService: TranslateService,\n private docReaderSignalR: DocReaderSignalRService,\n private idScanningLogSrv: IdScanningLogsService,\n private documentScanningService: DocumentScanningService\n ) {}\n async ngOnInit(): Promise<void> {\n this.route.queryParams.subscribe(async (params) => {\n if (params['locale']) {\n this.locale = params['locale'];\n }\n if (params['eventId']) {\n this.eventId = params['eventId'];\n }\n if (params['formId']) {\n this.formId = params['formId'];\n }\n\n this.docReaderSignalR.initializeSignalr();\n this.analyzeDocumentURL =\n (await this.configResolver.getConfig()).apiUrl +\n '/id-scanning/analyze-document';\n\n this.docReaderSignalR.connectionEstablished.subscribe(\n (connected: boolean) => {\n if (connected) {\n if (!this.signalREventsRegistered) {\n this.docReaderSignalR.registerOnScanningUpdate();\n this.docReaderSignalR.sendScanningProcessUpdate(\n ScanningStatus.Initialized\n );\n this.signalREventsRegistered = true;\n }\n this.scanningUpdateSubscription =\n this.docReaderSignalR.onScanningUpdate.subscribe(\n (data: number) => {\n this.scanningStatus = data;\n }\n );\n } else {\n if (this.scanningUpdateSubscription) {\n this.scanningUpdateSubscription.unsubscribe();\n }\n }\n }\n );\n });\n }\n\n public async docReaderSuccess(event) {\n this.scanningStatus = ScanningStatus.Success;\n this.docReaderSignalR.sendScanningProcessUpdate(ScanningStatus.Success);\n var document = new DocumentScanningModel(\n this.eventId,\n event.ImageResults,\n event.TextResults\n );\n\n this.documentScanningService\n .analyzeDocument(document, this.locale, this.formId)\n .catch((err) => {\n this.scanningStatus = err.error;\n console.error(err);\n });\n }\n\n public async docReaderError(event) {\n this.scanningStatus = ScanningStatus.Error;\n\n this.errorMessage = event.reason;\n }\n\n public async docReaderEvent(event, isFailure: boolean = false) {\n let idScanningLog = new IdScanningLogModel(\n this.eventId,\n this.formId,\n this.locale,\n event,\n isFailure\n );\n this.idScanningLogSrv.logEvent(idScanningLog);\n }\n\n public async tryAgain() {\n this.scanningStatus = ScanningStatus.Initialized;\n if (this.docReaderSignalR.connectionIsEstablished) {\n this.docReaderSignalR.sendScanningProcessUpdate(\n ScanningStatus.Initialized\n );\n }\n }\n\n private async setTranslation() {\n if (this.translateService.defaultLang !== this.locale) {\n let translations = await this.translateApiService.getTranslation(\n this.eventId,\n this.locale\n );\n\n this.translateService.set(this.locale, translations);\n this.translateService.use(this.locale);\n }\n }\n\n @HostListener('window:beforeunload', ['$event'])\n @HostListener('window:visibilitychange', ['$event'])\n async onPageClose(event) {\n if (event) {\n if (event.type === 'visibilitychange') {\n if (\n this.scanningStatus != ScanningStatus.Success &&\n this.scanningStatus != ScanningStatus.Cancelled\n ) {\n if (document.visibilityState === 'visible') {\n this.tryAgain();\n } else {\n if (\n this.docReaderSignalR.connectionIsEstablished &&\n this.scanningStatus != ScanningStatus.Cancelled\n ) {\n await this.docReaderSignalR.sendScanningProcessUpdate(\n ScanningStatus.Closed\n );\n }\n }\n }\n }\n // beforeunload event\n else {\n if (\n this.docReaderSignalR.connectionIsEstablished &&\n this.scanningStatus != ScanningStatus.Cancelled\n ) {\n await this.docReaderSignalR.sendScanningProcessUpdate(\n ScanningStatus.Closed\n );\n }\n }\n }\n }\n}\n","import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service'\nimport { TranslateApiService } from '@projects-shared/services/translate.service';\n\n@Component({\n selector: 'app-link-expired',\n templateUrl: './link-expired.component.html',\n styleUrls: ['./link-expired.component.scss']\n})\n\nexport class LinkExpiredComponent implements OnInit {\n locale: string = \"en\";\n eventId = \"\";\n moduleName = \"\";\n analyzeDocumentURL = \"\";\n constructor(private router: Router,\n private route: ActivatedRoute,\n private translateApiService: TranslateApiService,\n private configResolver: ConfigResolverService,\n private translateService: TranslateService) { }\n async ngOnInit(): Promise<void> {\n \n this.route.queryParams\n .subscribe(async params => {\n if (params[\"locale\"]) {\n this.locale = params[\"locale\"];\n };\n if (params[\"eventId\"]) {\n this.eventId = params[\"eventId\"];\n }\n \n //await this.setTranslation();\n // this.analyzeDocumentURL = (await this.configResolver.getConfig()).apiUrl + '/id-scanning/analyze-document';\n\n });\n\n\n\n }\n\n\n\n private async setTranslation() {\n // if (this.translateService.defaultLang !== this.locale) {\n let translations = await this.translateApiService.getTranslation(this.eventId, this.locale);\n\n this.translateService.set(this.locale, translations);\n this.translateService.use(this.locale);\n //}\n }\n\n\n}\n"," <div class=\"scanning-status\">\n <ng-container >\n <img src=\"assets/images/id-scanning/scan-uploading.svg\" class=\"icon\" />\n <p class=\"title top-margin\">\n {{'idScanning.link-expired-title-mobile' | translate}}\n </p>\n <p class=\"text\">{{'idScanning.link-expired-subtitle-mobile' | translate}}</p>\n </ng-container>\n </div>\n\n\n","import { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatFormField, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { ViewChild, Type, Component, Renderer2, ElementRef, ViewContainerRef, NgModule } from '@angular/core';\nimport { FieldType, ɵdefineHiddenProp, FieldWrapper, FormlyConfig, FormlyModule } from '@ngx-formly/core';\nimport { Subject } from 'rxjs';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ngx-formly/core';\nimport * as ɵngcc2 from '@angular/cdk/a11y';\nimport * as ɵngcc3 from '@angular/material/form-field';\nimport * as ɵngcc4 from '@angular/common';\n\nconst _c0 = [\"matPrefix\"];\nconst _c1 = [\"matSuffix\"];\nconst _c2 = [\"fieldComponent\"];\nfunction FormlyWrapperFormField_mat_label_3_span_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 10);\n ɵngcc0.ɵɵtext(1, \"*\");\n ɵngcc0.ɵɵelementEnd();\n} }\nfunction FormlyWrapperFormField_mat_label_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-label\");\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵtemplate(2, FormlyWrapperFormField_mat_label_3_span_2_Template, 2, 0, \"span\", 9);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r1.to.label, \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx_r1.to.required && ctx_r1.to.hideRequiredMarker !== true);\n} }\nfunction FormlyWrapperFormField_ng_container_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainer(0);\n} }\nfunction FormlyWrapperFormField_ng_container_7_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainer(0);\n} }\nfunction FormlyWrapperFormField_mat_hint_10_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-hint\", 6);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"id\", null);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(ctx_r4.to.description);\n} }\nclass FormlyErrorStateMatcher {\n /**\n * @param {?} field\n */\n constructor(field) {\n this.field = field;\n }\n /**\n * @param {?} control\n * @param {?} form\n * @return {?}\n */\n isErrorState(control, form) {\n return this.field && this.field.showError;\n }\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/**\n * @abstract\n * @template F\n */\nclass FieldType$1 extends FieldType {\n constructor() {\n super(...arguments);\n this.errorStateMatcher = new FormlyErrorStateMatcher(this);\n this.stateChanges = new Subject();\n this._errorState = false;\n }\n /**\n * @return {?}\n */\n get formFieldControl() { return this._control || this; }\n /**\n * @param {?} control\n * @return {?}\n */\n set formFieldControl(control) {\n this._control = control;\n if (this.formField && control !== this.formField._control) {\n this.formField._control = control;\n }\n }\n /**\n * @return {?}\n */\n ngOnInit() {\n if (this.formField) {\n this.formField._control = this.formFieldControl;\n }\n }\n /**\n * @return {?}\n */\n ngAfterViewInit() {\n if (this.matPrefix || this.matSuffix) {\n setTimeout((/**\n * @return {?}\n */\n () => {\n ɵdefineHiddenProp(this.field, '_matprefix', this.matPrefix);\n ɵdefineHiddenProp(this.field, '_matsuffix', this.matSuffix);\n ((/** @type {?} */ (this.options)))._markForCheck(this.field);\n }));\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n if (this.formField) {\n delete this.formField._control;\n }\n this.stateChanges.complete();\n }\n /**\n * @param {?} ids\n * @return {?}\n */\n setDescribedByIds(ids) { }\n /**\n * @param {?} event\n * @return {?}\n */\n onContainerClick(event) {\n this.field.focus = true;\n this.stateChanges.next();\n }\n /**\n * @return {?}\n */\n get errorState() {\n /** @type {?} */\n const showError = (/** @type {?} */ ((/** @type {?} */ (this.options)).showError))(this);\n if (showError !== this._errorState) {\n this._errorState = showError;\n this.stateChanges.next();\n }\n return showError;\n }\n /**\n * @return {?}\n */\n get controlType() {\n if (this.to.type) {\n return this.to.type;\n }\n if (((/** @type {?} */ (this.field.type))) instanceof Type) {\n return (/** @type {?} */ (this.field.type)).constructor.name;\n }\n return (/** @type {?} */ (this.field.type));\n }\n /**\n * @return {?}\n */\n get focused() { return !!this.field.focus && !this.disabled; }\n /**\n * @return {?}\n */\n get disabled() { return !!this.to.disabled; }\n /**\n * @return {?}\n */\n get required() { return !!this.to.required; }\n /**\n * @return {?}\n */\n get placeholder() { return this.to.placeholder || ''; }\n /**\n * @return {?}\n */\n get shouldPlaceholderFloat() { return this.shouldLabelFloat; }\n /**\n * @return {?}\n */\n get value() { return this.formControl.value; }\n /**\n * @param {?} value\n * @return {?}\n */\n set value(value) { this.formControl.patchValue(value); }\n /**\n * @return {?}\n */\n get ngControl() { return (/** @type {?} */ (this.formControl)); }\n /**\n * @return {?}\n */\n get empty() { return this.value === undefined || this.value === null || this.value === ''; }\n /**\n * @return {?}\n */\n get shouldLabelFloat() { return this.focused || !this.empty; }\n /**\n * @return {?}\n */\n get formField() { return this.field ? ((/** @type {?} */ (this.field)))['__formField__'] : null; }\n}\nFieldType$1.ɵfac = /*@__PURE__*/ function () { let ɵFieldType$1_BaseFactory; return function FieldType$1_Factory(t) { return (ɵFieldType$1_BaseFactory || (ɵFieldType$1_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FieldType$1)))(t || FieldType$1); }; }();\nFieldType$1.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: FieldType$1, viewQuery: function FieldType$1_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c0, 5);\n ɵngcc0.ɵɵviewQuery(_c1, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.matPrefix = _t.first);\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.matSuffix = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature] });\nFieldType$1.propDecorators = {\n matPrefix: [{ type: ViewChild, args: ['matPrefix',] }],\n matSuffix: [{ type: ViewChild, args: ['matSuffix',] }]\n};\n\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyWrapperFormField extends FieldWrapper {\n /**\n * @param {?} config\n * @param {?} renderer\n * @param {?} elementRef\n * @param {?} focusMonitor\n */\n constructor(config, renderer, elementRef, focusMonitor) {\n super();\n this.config = config;\n this.renderer = renderer;\n this.elementRef = elementRef;\n this.focusMonitor = focusMonitor;\n this.stateChanges = new Subject();\n this._errorState = false;\n this.initialGapCalculated = false;\n }\n /**\n * @return {?}\n */\n ngOnInit() {\n this.formField._control = this;\n ɵdefineHiddenProp(this.field, '__formField__', this.formField);\n /** @type {?} */\n const ref = this.config.resolveFieldTypeRef(this.formlyField);\n if (ref && !(ref.instance instanceof FieldType$1)) {\n console.warn(`Component '${ref.componentType.name}' must extend 'FieldType' from '@ngx-formly/material/form-field'.`);\n }\n // fix for https://github.com/angular/material2/issues/11437\n if (this.formlyField.hide && (/** @type {?} */ (this.formlyField.templateOptions)).appearance === 'outline') {\n this.initialGapCalculated = true;\n }\n this.focusMonitor.monitor(this.elementRef, true).subscribe((/**\n * @param {?} origin\n * @return {?}\n */\n origin => {\n if (!origin && this.field.focus) {\n this.field.focus = false;\n }\n this.stateChanges.next();\n }));\n }\n /**\n * @return {?}\n */\n ngAfterContentChecked() {\n if (!this.initialGapCalculated || this.formlyField.hide) {\n return;\n }\n this.formField.updateOutlineGap();\n this.initialGapCalculated = true;\n }\n /**\n * @return {?}\n */\n ngAfterViewInit() {\n // temporary fix for https://github.com/angular/material2/issues/7891\n if (this.formField.appearance !== 'outline' && this.to.hideFieldUnderline === true) {\n /** @type {?} */\n const underlineElement = this.formField._elementRef.nativeElement.querySelector('.mat-form-field-underline');\n underlineElement && this.renderer.removeChild(underlineElement.parentNode, underlineElement);\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n delete this.formlyField.__formField__;\n this.stateChanges.complete();\n this.focusMonitor.stopMonitoring(this.elementRef);\n }\n /**\n * @param {?} ids\n * @return {?}\n */\n setDescribedByIds(ids) { }\n /**\n * @param {?} event\n * @return {?}\n */\n onContainerClick(event) {\n this.formlyField.focus = true;\n this.stateChanges.next();\n }\n /**\n * @return {?}\n */\n get errorState() {\n /** @type {?} */\n const showError = (/** @type {?} */ ((/** @type {?} */ (this.options)).showError))(this);\n if (showError !== this._errorState) {\n this._errorState = showError;\n this.stateChanges.next();\n }\n return showError;\n }\n /**\n * @return {?}\n */\n get controlType() { return this.to.type; }\n /**\n * @return {?}\n */\n get focused() { return !!this.formlyField.focus && !this.disabled; }\n /**\n * @return {?}\n */\n get disabled() { return !!this.to.disabled; }\n /**\n * @return {?}\n */\n get required() { return !!this.to.required; }\n /**\n * @return {?}\n */\n get placeholder() { return this.to.placeholder || ''; }\n /**\n * @return {?}\n */\n get shouldPlaceholderFloat() { return this.shouldLabelFloat; }\n /**\n * @return {?}\n */\n get value() { return this.formControl.value; }\n /**\n * @return {?}\n */\n get ngControl() { return (/** @type {?} */ (this.formControl)); }\n /**\n * @return {?}\n */\n get empty() { return !this.formControl.value; }\n /**\n * @return {?}\n */\n get shouldLabelFloat() { return this.focused || !this.empty; }\n /**\n * @return {?}\n */\n get formlyField() { return (/** @type {?} */ (this.field)); }\n}\nFormlyWrapperFormField.ɵfac = function FormlyWrapperFormField_Factory(t) { return new (t || FormlyWrapperFormField)(ɵngcc0.ɵɵdirectiveInject(ɵngcc1.FormlyConfig), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.Renderer2), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(ɵngcc2.FocusMonitor)); };\nFormlyWrapperFormField.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyWrapperFormField, selectors: [[\"formly-wrapper-mat-form-field\"]], viewQuery: function FormlyWrapperFormField_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c2, 7, ViewContainerRef);\n ɵngcc0.ɵɵviewQuery(MatFormField, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.fieldComponent = _t.first);\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.formField = _t.first);\n } }, features: [ɵngcc0.ɵɵProvidersFeature([{ provide: MatFormFieldControl, useExisting: FormlyWrapperFormField }]), ɵngcc0.ɵɵInheritDefinitionFeature], decls: 11, vars: 12, consts: [[3, \"hideRequiredMarker\", \"floatLabel\", \"appearance\", \"color\"], [\"fieldComponent\", \"\"], [4, \"ngIf\"], [\"matPrefix\", \"\"], [4, \"ngTemplateOutlet\"], [\"matSuffix\", \"\"], [3, \"id\"], [3, \"field\"], [3, \"id\", 4, \"ngIf\"], [\"class\", \"mat-form-field-required-marker\", 4, \"ngIf\"], [1, \"mat-form-field-required-marker\"]], template: function FormlyWrapperFormField_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-form-field\", 0);\n ɵngcc0.ɵɵelementContainer(1, null, 1);\n ɵngcc0.ɵɵtemplate(3, FormlyWrapperFormField_mat_label_3_Template, 3, 2, \"mat-label\", 2);\n ɵngcc0.ɵɵelementContainerStart(4, 3);\n ɵngcc0.ɵɵtemplate(5, FormlyWrapperFormField_ng_container_5_Template, 1, 0, \"ng-container\", 4);\n ɵngcc0.ɵɵelementContainerEnd();\n ɵngcc0.ɵɵelementContainerStart(6, 5);\n ɵngcc0.ɵɵtemplate(7, FormlyWrapperFormField_ng_container_7_Template, 1, 0, \"ng-container\", 4);\n ɵngcc0.ɵɵelementContainerEnd();\n ɵngcc0.ɵɵelementStart(8, \"mat-error\", 6);\n ɵngcc0.ɵɵelement(9, \"formly-validation-message\", 7);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(10, FormlyWrapperFormField_mat_hint_10_Template, 2, 2, \"mat-hint\", 8);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵstyleProp(\"width\", \"100%\");\n ɵngcc0.ɵɵproperty(\"hideRequiredMarker\", true)(\"floatLabel\", ctx.to.floatLabel)(\"appearance\", ctx.to.appearance)(\"color\", ctx.to.color);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.to.label && ctx.to.hideLabel !== true);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx.to.prefix ? ctx.to.prefix : ctx.formlyField._matprefix);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx.to.suffix ? ctx.to.suffix : ctx.formlyField._matsuffix);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"id\", null);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"field\", ctx.field);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.to.description);\n } }, directives: [ɵngcc3.MatFormField, ɵngcc4.NgIf, ɵngcc3.MatPrefix, ɵngcc4.NgTemplateOutlet, ɵngcc3.MatSuffix, ɵngcc3.MatError, ɵngcc1.ɵc, ɵngcc3.MatLabel, ɵngcc3.MatHint], encapsulation: 2 });\n/** @nocollapse */\nFormlyWrapperFormField.ctorParameters = () => [\n { type: FormlyConfig },\n { type: Renderer2 },\n { type: ElementRef },\n { type: FocusMonitor }\n];\nFormlyWrapperFormField.propDecorators = {\n fieldComponent: [{ type: ViewChild, args: ['fieldComponent', (/** @type {?} */ ({ read: ViewContainerRef, static: true })),] }],\n formField: [{ type: ViewChild, args: [MatFormField, (/** @type {?} */ ({ static: true })),] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyWrapperFormField, [{\n type: Component,\n args: [{\n selector: 'formly-wrapper-mat-form-field',\n template: `\n <!-- fix https://github.com/angular/material2/pull/7083 by setting width to 100% -->\n <mat-form-field\n [hideRequiredMarker]=\"true\"\n [floatLabel]=\"to.floatLabel\"\n [appearance]=\"to.appearance\"\n [color]=\"to.color\"\n [style.width]=\"'100%'\">\n <ng-container #fieldComponent></ng-container>\n <mat-label *ngIf=\"to.label && to.hideLabel !== true\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" class=\"mat-form-field-required-marker\">*</span>\n </mat-label>\n\n <ng-container matPrefix>\n <ng-container *ngTemplateOutlet=\"to.prefix ? to.prefix : formlyField._matprefix\"></ng-container>\n </ng-container>\n\n <ng-container matSuffix>\n <ng-container *ngTemplateOutlet=\"to.suffix ? to.suffix : formlyField._matsuffix\"></ng-container>\n </ng-container>\n\n <!-- fix https://github.com/angular/material2/issues/7737 by setting id to null -->\n <mat-error [id]=\"null\">\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </mat-error>\n <!-- fix https://github.com/angular/material2/issues/7737 by setting id to null -->\n <mat-hint *ngIf=\"to.description\" [id]=\"null\">{{ to.description }}</mat-hint>\n </mat-form-field>\n `,\n providers: [{ provide: MatFormFieldControl, useExisting: FormlyWrapperFormField }]\n }]\n }], function () { return [{ type: ɵngcc1.FormlyConfig }, { type: ɵngcc0.Renderer2 }, { type: ɵngcc0.ElementRef }, { type: ɵngcc2.FocusMonitor }]; }, { fieldComponent: [{\n type: ViewChild,\n args: ['fieldComponent', ( /** @type {?} */({ read: ViewContainerRef, static: true }))]\n }], formField: [{\n type: ViewChild,\n args: [MatFormField, ( /** @type {?} */({ static: true }))]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatFormFieldModule {\n}\nFormlyMatFormFieldModule.ɵfac = function FormlyMatFormFieldModule_Factory(t) { return new (t || FormlyMatFormFieldModule)(); };\nFormlyMatFormFieldModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatFormFieldModule });\nFormlyMatFormFieldModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n FormlyModule.forChild({\n wrappers: [{\n name: 'form-field',\n component: FormlyWrapperFormField\n }]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatFormFieldModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatFormFieldModule,\n FormlyModule.forChild({\n wrappers: [{\n name: 'form-field',\n component: FormlyWrapperFormField\n }]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatFormFieldModule, { declarations: function () { return [FormlyWrapperFormField]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatFormFieldModule, ɵngcc1.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatFormFieldModule, FieldType$1 as FieldType, FormlyWrapperFormField as ɵa };\n\n","import { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { MatInput, MatInputModule } from '@angular/material/input';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/common';\nimport * as ɵngcc2 from '@angular/material/input';\nimport * as ɵngcc3 from '@angular/forms';\nimport * as ɵngcc4 from '@ngx-formly/core';\n\nfunction FormlyFieldInput_input_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"input\", 2);\n} if (rf & 2) {\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"id\", ctx_r0.id)(\"type\", ctx_r0.type || \"text\")(\"readonly\", ctx_r0.to.readonly)(\"required\", ctx_r0.to.required)(\"errorStateMatcher\", ctx_r0.errorStateMatcher)(\"formControl\", ctx_r0.formControl)(\"formlyAttributes\", ctx_r0.field)(\"tabindex\", ctx_r0.to.tabindex)(\"placeholder\", ctx_r0.to.placeholder);\n} }\nfunction FormlyFieldInput_ng_template_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"input\", 3);\n} if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"id\", ctx_r2.id)(\"readonly\", ctx_r2.to.readonly)(\"required\", ctx_r2.to.required)(\"errorStateMatcher\", ctx_r2.errorStateMatcher)(\"formControl\", ctx_r2.formControl)(\"formlyAttributes\", ctx_r2.field)(\"tabindex\", ctx_r2.to.tabindex)(\"placeholder\", ctx_r2.to.placeholder);\n} }\nclass FormlyFieldInput extends FieldType {\n /**\n * @return {?}\n */\n get type() {\n return this.to.type || 'text';\n }\n}\nFormlyFieldInput.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldInput_BaseFactory; return function FormlyFieldInput_Factory(t) { return (ɵFormlyFieldInput_BaseFactory || (ɵFormlyFieldInput_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldInput)))(t || FormlyFieldInput); }; }();\nFormlyFieldInput.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldInput, selectors: [[\"formly-field-mat-input\"]], viewQuery: function FormlyFieldInput_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatInput, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.formFieldControl = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[\"matInput\", \"\", 3, \"id\", \"type\", \"readonly\", \"required\", \"errorStateMatcher\", \"formControl\", \"formlyAttributes\", \"tabindex\", \"placeholder\", 4, \"ngIf\", \"ngIfElse\"], [\"numberTmp\", \"\"], [\"matInput\", \"\", 3, \"id\", \"type\", \"readonly\", \"required\", \"errorStateMatcher\", \"formControl\", \"formlyAttributes\", \"tabindex\", \"placeholder\"], [\"matInput\", \"\", \"type\", \"number\", 3, \"id\", \"readonly\", \"required\", \"errorStateMatcher\", \"formControl\", \"formlyAttributes\", \"tabindex\", \"placeholder\"]], template: function FormlyFieldInput_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, FormlyFieldInput_input_0_Template, 1, 9, \"input\", 0);\n ɵngcc0.ɵɵtemplate(1, FormlyFieldInput_ng_template_1_Template, 1, 8, \"ng-template\", null, 1, ɵngcc0.ɵɵtemplateRefExtractor);\n } if (rf & 2) {\n const _r1 = ɵngcc0.ɵɵreference(2);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.type !== \"number\")(\"ngIfElse\", _r1);\n } }, directives: [ɵngcc1.NgIf, ɵngcc2.MatInput, ɵngcc3.DefaultValueAccessor, ɵngcc3.RequiredValidator, ɵngcc3.NgControlStatus, ɵngcc3.FormControlDirective, ɵngcc4.FormlyAttributes, ɵngcc3.NumberValueAccessor], encapsulation: 2 });\nFormlyFieldInput.propDecorators = {\n formFieldControl: [{ type: ViewChild, args: [MatInput, (/** @type {?} */ ({ static: false })),] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldInput, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-input',\n template: `\n <input *ngIf=\"type !== 'number'; else numberTmp\"\n matInput\n [id]=\"id\"\n [type]=\"type || 'text'\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n <ng-template #numberTmp>\n <input matInput\n [id]=\"id\"\n type=\"number\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [placeholder]=\"to.placeholder\">\n </ng-template>\n `\n }]\n }], null, { formFieldControl: [{\n type: ViewChild,\n args: [MatInput, ( /** @type {?} */({ static: false }))]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatInputModule {\n}\nFormlyMatInputModule.ɵfac = function FormlyMatInputModule_Factory(t) { return new (t || FormlyMatInputModule)(); };\nFormlyMatInputModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatInputModule });\nFormlyMatInputModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field']\n },\n ]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatInputModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'input',\n component: FormlyFieldInput,\n wrappers: ['form-field']\n },\n ]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatInputModule, { declarations: function () { return [FormlyFieldInput]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule, ɵngcc4.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatInputModule, FormlyFieldInput };\n\n","import { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { MatInput, MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/material/input';\nimport * as ɵngcc2 from '@angular/forms';\nimport * as ɵngcc3 from '@angular/cdk/text-field';\nimport * as ɵngcc4 from '@ngx-formly/core';\nclass FormlyFieldTextArea extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n cols: 1,\n rows: 1,\n },\n };\n }\n}\nFormlyFieldTextArea.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldTextArea_BaseFactory; return function FormlyFieldTextArea_Factory(t) { return (ɵFormlyFieldTextArea_BaseFactory || (ɵFormlyFieldTextArea_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldTextArea)))(t || FormlyFieldTextArea); }; }();\nFormlyFieldTextArea.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldTextArea, selectors: [[\"formly-field-mat-textarea\"]], viewQuery: function FormlyFieldTextArea_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatInput, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.formFieldControl = _t.first);\n } }, features: [ɵngcc0.ɵɵProvidersFeature([\n // fix for https://github.com/ngx-formly/ngx-formly/issues/1688\n // rely on formControl value instead of elementRef which return empty value in Firefox.\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: FormlyFieldTextArea },\n ]), ɵngcc0.ɵɵInheritDefinitionFeature], decls: 2, vars: 15, consts: [[\"matInput\", \"\", 3, \"id\", \"readonly\", \"required\", \"formControl\", \"errorStateMatcher\", \"cols\", \"rows\", \"formlyAttributes\", \"placeholder\", \"tabindex\", \"cdkTextareaAutosize\", \"cdkAutosizeMinRows\", \"cdkAutosizeMaxRows\"]], template: function FormlyFieldTextArea_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"textarea\", 0);\n ɵngcc0.ɵɵtext(1, \" \");\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"cdk-textarea-autosize\", ctx.to.autosize);\n ɵngcc0.ɵɵproperty(\"id\", ctx.id)(\"readonly\", ctx.to.readonly)(\"required\", ctx.to.required)(\"formControl\", ctx.formControl)(\"errorStateMatcher\", ctx.errorStateMatcher)(\"cols\", ctx.to.cols)(\"rows\", ctx.to.rows)(\"formlyAttributes\", ctx.field)(\"placeholder\", ctx.to.placeholder)(\"tabindex\", ctx.to.tabindex)(\"cdkTextareaAutosize\", ctx.to.autosize)(\"cdkAutosizeMinRows\", ctx.to.autosizeMinRows)(\"cdkAutosizeMaxRows\", ctx.to.autosizeMaxRows);\n } }, directives: [ɵngcc1.MatInput, ɵngcc2.DefaultValueAccessor, ɵngcc3.CdkTextareaAutosize, ɵngcc2.RequiredValidator, ɵngcc2.NgControlStatus, ɵngcc2.FormControlDirective, ɵngcc4.FormlyAttributes], encapsulation: 2 });\nFormlyFieldTextArea.propDecorators = {\n formFieldControl: [{ type: ViewChild, args: [MatInput, (/** @type {?} */ ({ static: true })),] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldTextArea, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-textarea',\n template: `\n <textarea matInput\n [id]=\"id\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n [formControl]=\"formControl\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [cols]=\"to.cols\"\n [rows]=\"to.rows\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"to.placeholder\"\n [tabindex]=\"to.tabindex\"\n [cdkTextareaAutosize]=\"to.autosize\"\n [cdkAutosizeMinRows]=\"to.autosizeMinRows\"\n [cdkAutosizeMaxRows]=\"to.autosizeMaxRows\"\n [class.cdk-textarea-autosize]=\"to.autosize\"\n >\n </textarea>\n `,\n providers: [\n // fix for https://github.com/ngx-formly/ngx-formly/issues/1688\n // rely on formControl value instead of elementRef which return empty value in Firefox.\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: FormlyFieldTextArea },\n ]\n }]\n }], null, { formFieldControl: [{\n type: ViewChild,\n args: [MatInput, ( /** @type {?} */({ static: true }))]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatTextAreaModule {\n}\nFormlyMatTextAreaModule.ɵfac = function FormlyMatTextAreaModule_Factory(t) { return new (t || FormlyMatTextAreaModule)(); };\nFormlyMatTextAreaModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatTextAreaModule });\nFormlyMatTextAreaModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field']\n },\n ]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatTextAreaModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field']\n },\n ]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatTextAreaModule, { declarations: function () { return [FormlyFieldTextArea]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n FormlyMatFormFieldModule, ɵngcc4.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatTextAreaModule, FormlyFieldTextArea };\n\n","import { Pipe, NgModule } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nclass FormlySelectOptionsPipe {\n /**\n * @param {?} options\n * @param {?=} field\n * @return {?}\n */\n transform(options, field) {\n if (!(options instanceof Observable)) {\n options = of(options);\n }\n return ((/** @type {?} */ (options))).pipe(map((/**\n * @param {?} value\n * @return {?}\n */\n value => this.toOptions(value, field || {}))));\n }\n /**\n * @private\n * @param {?} options\n * @param {?} field\n * @return {?}\n */\n toOptions(options, field) {\n /** @type {?} */\n const gOptions = [];\n /** @type {?} */\n const groups = {};\n /** @type {?} */\n const to = field.templateOptions || {};\n to._flatOptions = true;\n options.map((/**\n * @param {?} option\n * @return {?}\n */\n (option) => {\n if (!this.getGroupProp(option, to)) {\n gOptions.push(this.toOption(option, to));\n }\n else {\n to._flatOptions = false;\n if (!groups[this.getGroupProp(option, to)]) {\n groups[this.getGroupProp(option, to)] = [];\n gOptions.push({\n label: this.getGroupProp(option, to),\n group: groups[this.getGroupProp(option, to)],\n });\n }\n groups[this.getGroupProp(option, to)].push(this.toOption(option, to));\n }\n }));\n return gOptions;\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n toOption(item, to) {\n return {\n label: this.getLabelProp(item, to),\n value: this.getValueProp(item, to),\n disabled: this.getDisabledProp(item, to) || false,\n };\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n getLabelProp(item, to) {\n if (typeof to.labelProp === 'function') {\n return to.labelProp(item);\n }\n if (this.shouldUseLegacyOption(item, to)) {\n console.warn(`NgxFormly: legacy select option '{key, value}' is deprecated since v5.5, use '{value, label}' instead.`);\n return item.value;\n }\n return item[to.labelProp || 'label'];\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n getValueProp(item, to) {\n if (typeof to.valueProp === 'function') {\n return to.valueProp(item);\n }\n if (this.shouldUseLegacyOption(item, to)) {\n return item.key;\n }\n return item[to.valueProp || 'value'];\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n getDisabledProp(item, to) {\n if (typeof to.disabledProp === 'function') {\n return to.disabledProp(item);\n }\n return item[to.disabledProp || 'disabled'];\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n getGroupProp(item, to) {\n if (typeof to.groupProp === 'function') {\n return to.groupProp(item);\n }\n return item[to.groupProp || 'group'];\n }\n /**\n * @private\n * @param {?} item\n * @param {?} to\n * @return {?}\n */\n shouldUseLegacyOption(item, to) {\n return !to.valueProp\n && !to.labelProp\n && item != null\n && typeof item === 'object'\n && 'key' in item\n && 'value' in item;\n }\n}\nFormlySelectOptionsPipe.ɵfac = function FormlySelectOptionsPipe_Factory(t) { return new (t || FormlySelectOptionsPipe)(); };\nFormlySelectOptionsPipe.ɵpipe = /*@__PURE__*/ ɵngcc0.ɵɵdefinePipe({ name: \"formlySelectOptions\", type: FormlySelectOptionsPipe, pure: true });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlySelectOptionsPipe, [{\n type: Pipe,\n args: [{ name: 'formlySelectOptions' }]\n }], null, null); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlySelectModule {\n}\nFormlySelectModule.ɵfac = function FormlySelectModule_Factory(t) { return new (t || FormlySelectModule)(); };\nFormlySelectModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlySelectModule });\nFormlySelectModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlySelectModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlySelectOptionsPipe],\n exports: [FormlySelectOptionsPipe]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlySelectModule, { declarations: [FormlySelectOptionsPipe], exports: [FormlySelectOptionsPipe] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlySelectModule, FormlySelectOptionsPipe as ɵa };\n\n","import { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatRadioGroup, MatRadioModule } from '@angular/material/radio';\nimport { ɵwrapProperty, FormlyModule } from '@ngx-formly/core';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/material/radio';\nimport * as ɵngcc2 from '@angular/forms';\nimport * as ɵngcc3 from '@ngx-formly/core';\nimport * as ɵngcc4 from '@angular/common';\nimport * as ɵngcc5 from '@ngx-formly/core/select';\n\nfunction FormlyFieldRadio_mat_radio_button_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-radio-button\", 2);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const option_r1 = ctx.$implicit;\n const i_r2 = ctx.index;\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"id\", ctx_r0.id + \"_\" + i_r2)(\"color\", ctx_r0.to.color)(\"labelPosition\", ctx_r0.to.labelPosition)(\"value\", option_r1.value);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", option_r1.label, \" \");\n} }\nclass FormlyFieldRadio extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n hideFieldUnderline: true,\n floatLabel: 'always',\n options: [],\n tabindex: -1,\n },\n };\n }\n /**\n * @return {?}\n */\n ngAfterViewInit() {\n this.focusObserver = ɵwrapProperty(this.field, 'focus', (/**\n * @param {?} __0\n * @return {?}\n */\n ({ currentValue }) => {\n if (this.to.tabindex === -1\n && currentValue\n && this.radioGroup._radios.length > 0) {\n /** @type {?} */\n const radio = this.radioGroup.selected\n ? this.radioGroup.selected\n : this.radioGroup._radios.first;\n radio.focus();\n }\n }));\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this.focusObserver && this.focusObserver();\n }\n}\nFormlyFieldRadio.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldRadio_BaseFactory; return function FormlyFieldRadio_Factory(t) { return (ɵFormlyFieldRadio_BaseFactory || (ɵFormlyFieldRadio_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldRadio)))(t || FormlyFieldRadio); }; }();\nFormlyFieldRadio.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldRadio, selectors: [[\"formly-field-mat-radio\"]], viewQuery: function FormlyFieldRadio_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatRadioGroup, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.radioGroup = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 4, vars: 10, consts: [[3, \"formControl\", \"formlyAttributes\", \"required\", \"tabindex\"], [3, \"id\", \"color\", \"labelPosition\", \"value\", 4, \"ngFor\", \"ngForOf\"], [3, \"id\", \"color\", \"labelPosition\", \"value\"]], template: function FormlyFieldRadio_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-radio-group\", 0);\n ɵngcc0.ɵɵtemplate(1, FormlyFieldRadio_mat_radio_button_1_Template, 2, 5, \"mat-radio-button\", 1);\n ɵngcc0.ɵɵpipe(2, \"async\");\n ɵngcc0.ɵɵpipe(3, \"formlySelectOptions\");\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"formControl\", ctx.formControl)(\"formlyAttributes\", ctx.field)(\"required\", ctx.to.required)(\"tabindex\", ctx.to.tabindex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpipeBind1(2, 5, ɵngcc0.ɵɵpipeBind2(3, 7, ctx.to.options, ctx.field)));\n } }, directives: [ɵngcc1.MatRadioGroup, ɵngcc2.NgControlStatus, ɵngcc2.FormControlDirective, ɵngcc3.FormlyAttributes, ɵngcc2.RequiredValidator, ɵngcc4.NgForOf, ɵngcc1.MatRadioButton], pipes: [ɵngcc4.AsyncPipe, ɵngcc5.ɵa], encapsulation: 2 });\nFormlyFieldRadio.propDecorators = {\n radioGroup: [{ type: ViewChild, args: [MatRadioGroup,] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldRadio, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-radio',\n template: `\n <mat-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [required]=\"to.required\"\n [tabindex]=\"to.tabindex\">\n <mat-radio-button *ngFor=\"let option of to.options | formlySelectOptions:field | async; let i = index;\"\n [id]=\"id + '_' + i\"\n [color]=\"to.color\"\n [labelPosition]=\"to.labelPosition\"\n [value]=\"option.value\">\n {{ option.label }}\n </mat-radio-button>\n </mat-radio-group>\n `\n }]\n }], null, { radioGroup: [{\n type: ViewChild,\n args: [MatRadioGroup]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatRadioModule {\n}\nFormlyMatRadioModule.ɵfac = function FormlyMatRadioModule_Factory(t) { return new (t || FormlyMatRadioModule)(); };\nFormlyMatRadioModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatRadioModule });\nFormlyMatRadioModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatRadioModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [{\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatRadioModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatRadioModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [{\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field']\n }]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatRadioModule, { declarations: function () { return [FormlyFieldRadio]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatRadioModule,\n FormlyMatFormFieldModule,\n FormlySelectModule, ɵngcc3.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatRadioModule, FormlyFieldRadio };\n\n","import { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatCheckbox, MatCheckboxModule } from '@angular/material/checkbox';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/material/checkbox';\nimport * as ɵngcc2 from '@angular/forms';\nimport * as ɵngcc3 from '@ngx-formly/core';\nimport * as ɵngcc4 from '@angular/common';\n\nfunction FormlyFieldCheckbox_span_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 2);\n ɵngcc0.ɵɵtext(1, \"*\");\n ɵngcc0.ɵɵelementEnd();\n} }\nclass FormlyFieldCheckbox extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n hideFieldUnderline: true,\n indeterminate: true,\n floatLabel: 'always',\n hideLabel: true,\n align: 'start',\n // start or end\n color: 'accent',\n },\n };\n }\n /**\n * @param {?} event\n * @return {?}\n */\n onContainerClick(event) {\n this.checkbox.focus();\n super.onContainerClick(event);\n }\n}\nFormlyFieldCheckbox.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldCheckbox_BaseFactory; return function FormlyFieldCheckbox_Factory(t) { return (ɵFormlyFieldCheckbox_BaseFactory || (ɵFormlyFieldCheckbox_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldCheckbox)))(t || FormlyFieldCheckbox); }; }();\nFormlyFieldCheckbox.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldCheckbox, selectors: [[\"formly-field-mat-checkbox\"]], viewQuery: function FormlyFieldCheckbox_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatCheckbox, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.checkbox = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 3, vars: 10, consts: [[3, \"formControl\", \"id\", \"required\", \"formlyAttributes\", \"tabindex\", \"indeterminate\", \"color\", \"labelPosition\"], [\"class\", \"mat-form-field-required-marker\", 4, \"ngIf\"], [1, \"mat-form-field-required-marker\"]], template: function FormlyFieldCheckbox_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-checkbox\", 0);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵtemplate(2, FormlyFieldCheckbox_span_2_Template, 2, 0, \"span\", 1);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"formControl\", ctx.formControl)(\"id\", ctx.id)(\"required\", ctx.to.required)(\"formlyAttributes\", ctx.field)(\"tabindex\", ctx.to.tabindex)(\"indeterminate\", ctx.to.indeterminate && ctx.formControl.value === null)(\"color\", ctx.to.color)(\"labelPosition\", ctx.to.align || ctx.to.labelPosition);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx.to.label, \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.to.required && ctx.to.hideRequiredMarker !== true);\n } }, directives: [ɵngcc1.MatCheckbox, ɵngcc1.MatCheckboxRequiredValidator, ɵngcc2.NgControlStatus, ɵngcc2.FormControlDirective, ɵngcc2.RequiredValidator, ɵngcc3.FormlyAttributes, ɵngcc4.NgIf], encapsulation: 2 });\nFormlyFieldCheckbox.propDecorators = {\n checkbox: [{ type: ViewChild, args: [MatCheckbox,] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldCheckbox, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-checkbox',\n template: `\n <mat-checkbox\n [formControl]=\"formControl\"\n [id]=\"id\"\n [required]=\"to.required\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [indeterminate]=\"to.indeterminate && formControl.value === null\"\n [color]=\"to.color\"\n [labelPosition]=\"to.align || to.labelPosition\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" class=\"mat-form-field-required-marker\">*</span>\n </mat-checkbox>\n `\n }]\n }], null, { checkbox: [{\n type: ViewChild,\n args: [MatCheckbox]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatCheckboxModule {\n}\nFormlyMatCheckboxModule.ɵfac = function FormlyMatCheckboxModule_Factory(t) { return new (t || FormlyMatCheckboxModule)(); };\nFormlyMatCheckboxModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatCheckboxModule });\nFormlyMatCheckboxModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n ]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatCheckboxModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field']\n },\n ]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatCheckboxModule, { declarations: function () { return [FormlyFieldCheckbox]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule, ɵngcc3.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatCheckboxModule, FormlyFieldCheckbox };\n\n","import { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { Component, ViewChildren, NgModule } from '@angular/core';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatCheckbox, MatCheckboxModule } from '@angular/material/checkbox';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/common';\nimport * as ɵngcc2 from '@angular/material/checkbox';\nimport * as ɵngcc3 from '@ngx-formly/core';\nimport * as ɵngcc4 from '@ngx-formly/core/select';\n\nfunction FormlyFieldMultiCheckbox_ng_container_0_Template(rf, ctx) { if (rf & 1) {\n const _r4 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementContainerStart(0);\n ɵngcc0.ɵɵelementStart(1, \"mat-checkbox\", 1);\n ɵngcc0.ɵɵlistener(\"change\", function FormlyFieldMultiCheckbox_ng_container_0_Template_mat_checkbox_change_1_listener($event) { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r4); const option_r1 = restoredCtx.$implicit; const ctx_r3 = ɵngcc0.ɵɵnextContext(); return ctx_r3.onChange(option_r1.value, $event.checked); });\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementContainerEnd();\n} if (rf & 2) {\n const option_r1 = ctx.$implicit;\n const i_r2 = ctx.index;\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"id\", ctx_r0.id + \"_\" + i_r2)(\"formlyAttributes\", ctx_r0.field)(\"tabindex\", ctx_r0.to.tabindex)(\"color\", ctx_r0.to.color)(\"labelPosition\", ctx_r0.to.labelPosition)(\"checked\", ctx_r0.isChecked(option_r1))(\"disabled\", ctx_r0.formControl.disabled);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", option_r1.label, \" \");\n} }\nclass FormlyFieldMultiCheckbox extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n hideFieldUnderline: true,\n floatLabel: 'always',\n options: [],\n color: 'accent',\n },\n };\n }\n /**\n * @param {?} value\n * @param {?} checked\n * @return {?}\n */\n onChange(value, checked) {\n if (this.to.type === 'array') {\n this.formControl.patchValue(checked\n ? [...(this.formControl.value || []), value]\n : [...(this.formControl.value || [])].filter((/**\n * @param {?} o\n * @return {?}\n */\n o => o !== value)));\n }\n else {\n this.formControl.patchValue(Object.assign({}, this.formControl.value, { [value]: checked }));\n }\n this.formControl.markAsTouched();\n }\n /**\n * @param {?} event\n * @return {?}\n */\n onContainerClick(event) {\n if (this.checkboxes.length) {\n this.checkboxes.first.focus();\n }\n super.onContainerClick(event);\n }\n /**\n * @param {?} option\n * @return {?}\n */\n isChecked(option) {\n /** @type {?} */\n const value = this.formControl.value;\n return value && (this.to.type === 'array'\n ? (value.indexOf(option.value) !== -1)\n : value[option.value]);\n }\n}\nFormlyFieldMultiCheckbox.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldMultiCheckbox_BaseFactory; return function FormlyFieldMultiCheckbox_Factory(t) { return (ɵFormlyFieldMultiCheckbox_BaseFactory || (ɵFormlyFieldMultiCheckbox_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldMultiCheckbox)))(t || FormlyFieldMultiCheckbox); }; }();\nFormlyFieldMultiCheckbox.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldMultiCheckbox, selectors: [[\"formly-field-mat-multicheckbox\"]], viewQuery: function FormlyFieldMultiCheckbox_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatCheckbox, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.checkboxes = _t);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 3, vars: 6, consts: [[4, \"ngFor\", \"ngForOf\"], [3, \"id\", \"formlyAttributes\", \"tabindex\", \"color\", \"labelPosition\", \"checked\", \"disabled\", \"change\"]], template: function FormlyFieldMultiCheckbox_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, FormlyFieldMultiCheckbox_ng_container_0_Template, 3, 8, \"ng-container\", 0);\n ɵngcc0.ɵɵpipe(1, \"async\");\n ɵngcc0.ɵɵpipe(2, \"formlySelectOptions\");\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpipeBind1(1, 1, ɵngcc0.ɵɵpipeBind2(2, 3, ctx.to.options, ctx.field)));\n } }, directives: [ɵngcc1.NgForOf, ɵngcc2.MatCheckbox, ɵngcc3.FormlyAttributes], pipes: [ɵngcc1.AsyncPipe, ɵngcc4.ɵa], encapsulation: 2 });\nFormlyFieldMultiCheckbox.propDecorators = {\n checkboxes: [{ type: ViewChildren, args: [MatCheckbox,] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldMultiCheckbox, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-multicheckbox',\n template: `\n <ng-container *ngFor=\"let option of to.options | formlySelectOptions:field | async; let i = index;\">\n <mat-checkbox\n [id]=\"id + '_' + i\"\n [formlyAttributes]=\"field\"\n [tabindex]=\"to.tabindex\"\n [color]=\"to.color\"\n [labelPosition]=\"to.labelPosition\"\n [checked]=\"isChecked(option)\"\n [disabled]=\"formControl.disabled\"\n (change)=\"onChange(option.value, $event.checked)\">\n {{ option.label }}\n </mat-checkbox>\n </ng-container>\n `\n }]\n }], null, { checkboxes: [{\n type: ViewChildren,\n args: [MatCheckbox]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatMultiCheckboxModule {\n}\nFormlyMatMultiCheckboxModule.ɵfac = function FormlyMatMultiCheckboxModule_Factory(t) { return new (t || FormlyMatMultiCheckboxModule)(); };\nFormlyMatMultiCheckboxModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatMultiCheckboxModule });\nFormlyMatMultiCheckboxModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'multicheckbox',\n component: FormlyFieldMultiCheckbox,\n wrappers: ['form-field']\n },\n ]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatMultiCheckboxModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldMultiCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'multicheckbox',\n component: FormlyFieldMultiCheckbox,\n wrappers: ['form-field']\n },\n ]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatMultiCheckboxModule, { declarations: function () { return [FormlyFieldMultiCheckbox]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule, ɵngcc3.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatMultiCheckboxModule, FormlyFieldMultiCheckbox };\n\n","import { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { MatSelect, MatSelectModule } from '@angular/material/select';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatPseudoCheckboxModule } from '@angular/material/core';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/material/select';\nimport * as ɵngcc2 from '@angular/forms';\nimport * as ɵngcc3 from '@ngx-formly/core';\nimport * as ɵngcc4 from '@angular/common';\nimport * as ɵngcc5 from '@angular/material/core';\nimport * as ɵngcc6 from '@ngx-formly/core/select';\n\nfunction FormlyFieldSelect_ng_template_0_Template(rf, ctx) { if (rf & 1) {\n const _r5 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"mat-option\", 3);\n ɵngcc0.ɵɵlistener(\"click\", function FormlyFieldSelect_ng_template_0_Template_mat_option_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r5); const selectOptions_r3 = restoredCtx.selectOptions; const ctx_r4 = ɵngcc0.ɵɵnextContext(); return ctx_r4.toggleSelectAll(selectOptions_r3); });\n ɵngcc0.ɵɵelement(1, \"mat-pseudo-checkbox\", 4);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const selectOptions_r3 = ctx.selectOptions;\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"state\", ctx_r1.getSelectAllState(selectOptions_r3));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r1.to.selectAllOption, \" \");\n} }\nconst _c0 = function (a0) { return { selectOptions: a0 }; };\nfunction FormlyFieldSelect_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainer(0, 7);\n} if (rf & 2) {\n const selectOptions_r6 = ɵngcc0.ɵɵnextContext().ngIf;\n ɵngcc0.ɵɵnextContext();\n const _r0 = ɵngcc0.ɵɵreference(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", _r0)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c0, selectOptions_r6));\n} }\nfunction FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_mat_option_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-option\", 12);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const child_r14 = ctx.$implicit;\n ɵngcc0.ɵɵproperty(\"value\", child_r14.value)(\"disabled\", child_r14.disabled);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate1(\" \", child_r14.label, \" \");\n} }\nfunction FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-optgroup\", 10);\n ɵngcc0.ɵɵtemplate(1, FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_mat_option_1_Template, 2, 3, \"mat-option\", 11);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const item_r10 = ɵngcc0.ɵɵnextContext().$implicit;\n ɵngcc0.ɵɵproperty(\"label\", item_r10.label);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", item_r10.group);\n} }\nfunction FormlyFieldSelect_ng_container_3_ng_container_2_mat_option_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-option\", 12);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const item_r10 = ɵngcc0.ɵɵnextContext().$implicit;\n ɵngcc0.ɵɵproperty(\"value\", item_r10.value)(\"disabled\", item_r10.disabled);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(item_r10.label);\n} }\nfunction FormlyFieldSelect_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainerStart(0);\n ɵngcc0.ɵɵtemplate(1, FormlyFieldSelect_ng_container_3_ng_container_2_mat_optgroup_1_Template, 2, 2, \"mat-optgroup\", 8);\n ɵngcc0.ɵɵtemplate(2, FormlyFieldSelect_ng_container_3_ng_container_2_mat_option_2_Template, 2, 3, \"mat-option\", 9);\n ɵngcc0.ɵɵelementContainerEnd();\n} if (rf & 2) {\n const item_r10 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", item_r10.group);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", !item_r10.group);\n} }\nfunction FormlyFieldSelect_ng_container_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainerStart(0);\n ɵngcc0.ɵɵtemplate(1, FormlyFieldSelect_ng_container_3_ng_container_1_Template, 1, 4, \"ng-container\", 5);\n ɵngcc0.ɵɵtemplate(2, FormlyFieldSelect_ng_container_3_ng_container_2_Template, 3, 2, \"ng-container\", 6);\n ɵngcc0.ɵɵelementContainerEnd();\n} if (rf & 2) {\n const selectOptions_r6 = ctx.ngIf;\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx_r2.to.multiple && ctx_r2.to.selectAllOption);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", selectOptions_r6);\n} }\nclass FormlyFieldSelect extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n options: [],\n /**\n * @param {?} o1\n * @param {?} o2\n * @return {?}\n */\n compareWith(o1, o2) {\n return o1 === o2;\n },\n },\n };\n }\n /**\n * @param {?} options\n * @return {?}\n */\n getSelectAllState(options) {\n if (this.empty || this.value.length === 0) {\n return '';\n }\n return this.value.length !== this.getSelectAllValue(options).length\n ? 'indeterminate'\n : 'checked';\n }\n /**\n * @param {?} options\n * @return {?}\n */\n toggleSelectAll(options) {\n /** @type {?} */\n const selectAllValue = this.getSelectAllValue(options);\n this.formControl.setValue(!this.value || this.value.length !== selectAllValue.length\n ? selectAllValue\n : []);\n }\n /**\n * @param {?} $event\n * @return {?}\n */\n change($event) {\n if (this.to.change) {\n this.to.change(this.field, $event);\n }\n }\n /**\n * @return {?}\n */\n _getAriaLabelledby() {\n if (this.to.attributes && this.to.attributes['aria-labelledby']) {\n return this.to.attributes['aria-labelledby'];\n }\n if (this.formField && this.formField._labelId) {\n return this.formField._labelId;\n }\n return null;\n }\n /**\n * @private\n * @param {?} options\n * @return {?}\n */\n getSelectAllValue(options) {\n if (!this.selectAllValue || options !== this.selectAllValue.options) {\n /** @type {?} */\n const flatOptions = [];\n options.forEach((/**\n * @param {?} o\n * @return {?}\n */\n o => o.group\n ? flatOptions.push(...o.group)\n : flatOptions.push(o)));\n this.selectAllValue = {\n options,\n value: flatOptions.map((/**\n * @param {?} o\n * @return {?}\n */\n o => o.value)),\n };\n }\n return this.selectAllValue.value;\n }\n}\nFormlyFieldSelect.ɵfac = /*@__PURE__*/ function () { let ɵFormlyFieldSelect_BaseFactory; return function FormlyFieldSelect_Factory(t) { return (ɵFormlyFieldSelect_BaseFactory || (ɵFormlyFieldSelect_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyFieldSelect)))(t || FormlyFieldSelect); }; }();\nFormlyFieldSelect.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyFieldSelect, selectors: [[\"formly-field-mat-select\"]], viewQuery: function FormlyFieldSelect_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatSelect, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.formFieldControl = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 6, vars: 17, consts: [[\"selectAll\", \"\"], [3, \"id\", \"formControl\", \"formlyAttributes\", \"placeholder\", \"tabindex\", \"required\", \"compareWith\", \"multiple\", \"errorStateMatcher\", \"aria-labelledby\", \"disableOptionCentering\", \"selectionChange\"], [4, \"ngIf\"], [3, \"click\"], [1, \"mat-option-pseudo-checkbox\", 3, \"state\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\", 4, \"ngIf\"], [4, \"ngFor\", \"ngForOf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"label\", 4, \"ngIf\"], [3, \"value\", \"disabled\", 4, \"ngIf\"], [3, \"label\"], [3, \"value\", \"disabled\", 4, \"ngFor\", \"ngForOf\"], [3, \"value\", \"disabled\"]], template: function FormlyFieldSelect_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, FormlyFieldSelect_ng_template_0_Template, 3, 2, \"ng-template\", null, 0, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵelementStart(2, \"mat-select\", 1);\n ɵngcc0.ɵɵlistener(\"selectionChange\", function FormlyFieldSelect_Template_mat_select_selectionChange_2_listener($event) { return ctx.change($event); });\n ɵngcc0.ɵɵtemplate(3, FormlyFieldSelect_ng_container_3_Template, 3, 2, \"ng-container\", 2);\n ɵngcc0.ɵɵpipe(4, \"async\");\n ɵngcc0.ɵɵpipe(5, \"formlySelectOptions\");\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"id\", ctx.id)(\"formControl\", ctx.formControl)(\"formlyAttributes\", ctx.field)(\"placeholder\", ctx.to.placeholder)(\"tabindex\", ctx.to.tabindex)(\"required\", ctx.to.required)(\"compareWith\", ctx.to.compareWith)(\"multiple\", ctx.to.multiple)(\"errorStateMatcher\", ctx.errorStateMatcher)(\"aria-labelledby\", ctx._getAriaLabelledby())(\"disableOptionCentering\", ctx.to.disableOptionCentering);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ɵngcc0.ɵɵpipeBind1(4, 12, ɵngcc0.ɵɵpipeBind2(5, 14, ctx.to.options, ctx.field)));\n } }, directives: [ɵngcc1.MatSelect, ɵngcc2.NgControlStatus, ɵngcc2.FormControlDirective, ɵngcc3.FormlyAttributes, ɵngcc2.RequiredValidator, ɵngcc4.NgIf, ɵngcc5.MatOption, ɵngcc5.MatPseudoCheckbox, ɵngcc4.NgForOf, ɵngcc4.NgTemplateOutlet, ɵngcc5.MatOptgroup], pipes: [ɵngcc4.AsyncPipe, ɵngcc6.ɵa], encapsulation: 2 });\nFormlyFieldSelect.propDecorators = {\n formFieldControl: [{ type: ViewChild, args: [MatSelect, (/** @type {?} */ ({ static: true })),] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyFieldSelect, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-select',\n template: `\n <ng-template #selectAll let-selectOptions=\"selectOptions\">\n <mat-option (click)=\"toggleSelectAll(selectOptions)\">\n <mat-pseudo-checkbox class=\"mat-option-pseudo-checkbox\"\n [state]=\"getSelectAllState(selectOptions)\">\n </mat-pseudo-checkbox>\n {{ to.selectAllOption }}\n </mat-option>\n </ng-template>\n\n <mat-select [id]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"to.placeholder\"\n [tabindex]=\"to.tabindex\"\n [required]=\"to.required\"\n [compareWith]=\"to.compareWith\"\n [multiple]=\"to.multiple\"\n (selectionChange)=\"change($event)\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [aria-labelledby]=\"_getAriaLabelledby()\"\n [disableOptionCentering]=\"to.disableOptionCentering\"\n >\n <ng-container *ngIf=\"to.options | formlySelectOptions:field | async as selectOptions\">\n <ng-container *ngIf=\"to.multiple && to.selectAllOption\" [ngTemplateOutlet]=\"selectAll\" [ngTemplateOutletContext]=\"{ selectOptions: selectOptions }\">\n </ng-container>\n <ng-container *ngFor=\"let item of selectOptions\">\n <mat-optgroup *ngIf=\"item.group\" [label]=\"item.label\">\n <mat-option *ngFor=\"let child of item.group\" [value]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </mat-option>\n </mat-optgroup>\n <mat-option *ngIf=\"!item.group\" [value]=\"item.value\" [disabled]=\"item.disabled\">{{ item.label }}</mat-option>\n </ng-container>\n </ng-container>\n </mat-select>\n `\n }]\n }], null, { formFieldControl: [{\n type: ViewChild,\n args: [MatSelect, ( /** @type {?} */({ static: true }))]\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatSelectModule {\n}\nFormlyMatSelectModule.ɵfac = function FormlyMatSelectModule_Factory(t) { return new (t || FormlyMatSelectModule)(); };\nFormlyMatSelectModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatSelectModule });\nFormlyMatSelectModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n MatPseudoCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [{\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n }]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatSelectModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n MatPseudoCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [{\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n }]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatSelectModule, { declarations: function () { return [FormlyFieldSelect]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n MatPseudoCheckboxModule,\n FormlyMatFormFieldModule,\n FormlySelectModule, ɵngcc3.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatSelectModule, FormlyFieldSelect };\n\n","import { NgModule } from '@angular/core';\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport * as ɵngcc0 from '@angular/core';\nexport { FieldType } from '@ngx-formly/material/form-field';\nimport { FormlyMatInputModule } from '@ngx-formly/material/input';\nimport { FormlyMatTextAreaModule } from '@ngx-formly/material/textarea';\nimport { FormlyMatRadioModule } from '@ngx-formly/material/radio';\nimport { FormlyMatCheckboxModule } from '@ngx-formly/material/checkbox';\nimport { FormlyMatMultiCheckboxModule } from '@ngx-formly/material/multicheckbox';\nimport { FormlyMatSelectModule } from '@ngx-formly/material/select';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMaterialModule {\n}\nFormlyMaterialModule.ɵfac = function FormlyMaterialModule_Factory(t) { return new (t || FormlyMaterialModule)(); };\nFormlyMaterialModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMaterialModule });\nFormlyMaterialModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n FormlyMatFormFieldModule,\n FormlyMatInputModule,\n FormlyMatTextAreaModule,\n FormlyMatRadioModule,\n FormlyMatCheckboxModule,\n FormlyMatMultiCheckboxModule,\n FormlyMatSelectModule,\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMaterialModule, [{\n type: NgModule,\n args: [{\n imports: [\n FormlyMatFormFieldModule,\n FormlyMatInputModule,\n FormlyMatTextAreaModule,\n FormlyMatRadioModule,\n FormlyMatCheckboxModule,\n FormlyMatMultiCheckboxModule,\n FormlyMatSelectModule,\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMaterialModule, { imports: function () { return [FormlyMatFormFieldModule,\n FormlyMatInputModule,\n FormlyMatTextAreaModule,\n FormlyMatRadioModule,\n FormlyMatCheckboxModule,\n FormlyMatMultiCheckboxModule,\n FormlyMatSelectModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMaterialModule };\n\n","import { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { Component, ViewChild, NgModule } from '@angular/core';\nimport { ɵdefineHiddenProp, FormlyModule } from '@ngx-formly/core';\nimport { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatInput, MatInputModule } from '@angular/material/input';\nimport { MatDatepickerInput, MatDatepickerModule } from '@angular/material/datepicker';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/material/input';\nimport * as ɵngcc2 from '@angular/forms';\nimport * as ɵngcc3 from '@angular/material/datepicker';\nimport * as ɵngcc4 from '@ngx-formly/core';\n\nconst _c0 = [\"datepickerToggle\"];\nfunction FormlyDatepickerTypeComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"mat-datepicker-toggle\", 4);\n} if (rf & 2) {\n ɵngcc0.ɵɵnextContext();\n const _r2 = ɵngcc0.ɵɵreference(4);\n ɵngcc0.ɵɵproperty(\"for\", _r2);\n} }\nclass FormlyDatepickerTypeComponent extends FieldType {\n constructor() {\n super(...arguments);\n this.defaultOptions = {\n templateOptions: {\n datepickerOptions: {\n startView: 'month',\n datepickerTogglePosition: 'suffix',\n dateInput: (/**\n * @return {?}\n */\n () => { }),\n dateChange: (/**\n * @return {?}\n */\n () => { }),\n },\n },\n };\n }\n /**\n * @return {?}\n */\n ngAfterViewInit() {\n super.ngAfterViewInit();\n // temporary fix for https://github.com/angular/material2/issues/6728\n ((/** @type {?} */ (this.datepickerInput)))._formField = this.formField;\n setTimeout((/**\n * @return {?}\n */\n () => {\n ɵdefineHiddenProp(this.field, '_mat' + this.to.datepickerOptions.datepickerTogglePosition, this.datepickerToggle);\n ((/** @type {?} */ (this.options)))._markForCheck(this.field);\n }));\n }\n}\nFormlyDatepickerTypeComponent.ɵfac = /*@__PURE__*/ function () { let ɵFormlyDatepickerTypeComponent_BaseFactory; return function FormlyDatepickerTypeComponent_Factory(t) { return (ɵFormlyDatepickerTypeComponent_BaseFactory || (ɵFormlyDatepickerTypeComponent_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(FormlyDatepickerTypeComponent)))(t || FormlyDatepickerTypeComponent); }; }();\nFormlyDatepickerTypeComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: FormlyDatepickerTypeComponent, selectors: [[\"formly-field-mat-datepicker\"]], viewQuery: function FormlyDatepickerTypeComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatInput, 7);\n ɵngcc0.ɵɵviewQuery(MatDatepickerInput, 5);\n ɵngcc0.ɵɵviewQuery(_c0, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.formFieldControl = _t.first);\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.datepickerInput = _t.first);\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.datepickerToggle = _t.first);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 5, vars: 20, consts: [[\"matInput\", \"\", 3, \"id\", \"errorStateMatcher\", \"formControl\", \"matDatepicker\", \"matDatepickerFilter\", \"max\", \"min\", \"formlyAttributes\", \"placeholder\", \"tabindex\", \"readonly\", \"required\", \"dateInput\", \"dateChange\"], [\"datepickerToggle\", \"\"], [3, \"color\", \"dateClass\", \"disabled\", \"opened\", \"panelClass\", \"startAt\", \"startView\", \"touchUi\"], [\"picker\", \"\"], [3, \"for\"]], template: function FormlyDatepickerTypeComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"input\", 0);\n ɵngcc0.ɵɵlistener(\"dateInput\", function FormlyDatepickerTypeComponent_Template_input_dateInput_0_listener($event) { return ctx.to.datepickerOptions.dateInput(ctx.field, $event); })(\"dateChange\", function FormlyDatepickerTypeComponent_Template_input_dateChange_0_listener($event) { return ctx.to.datepickerOptions.dateChange(ctx.field, $event); });\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(1, FormlyDatepickerTypeComponent_ng_template_1_Template, 1, 1, \"ng-template\", null, 1, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵelement(3, \"mat-datepicker\", 2, 3);\n } if (rf & 2) {\n const _r2 = ɵngcc0.ɵɵreference(4);\n ɵngcc0.ɵɵproperty(\"id\", ctx.id)(\"errorStateMatcher\", ctx.errorStateMatcher)(\"formControl\", ctx.formControl)(\"matDatepicker\", _r2)(\"matDatepickerFilter\", ctx.to.datepickerOptions.filter)(\"max\", ctx.to.datepickerOptions.max)(\"min\", ctx.to.datepickerOptions.min)(\"formlyAttributes\", ctx.field)(\"placeholder\", ctx.to.placeholder)(\"tabindex\", ctx.to.tabindex)(\"readonly\", ctx.to.readonly)(\"required\", ctx.to.required);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"color\", ctx.to.color)(\"dateClass\", ctx.to.datepickerOptions.dateClass)(\"disabled\", ctx.to.datepickerOptions.disabled)(\"opened\", ctx.to.datepickerOptions.opened)(\"panelClass\", ctx.to.datepickerOptions.panelClass)(\"startAt\", ctx.to.datepickerOptions.startAt)(\"startView\", ctx.to.datepickerOptions.startView)(\"touchUi\", ctx.to.datepickerOptions.touchUi);\n } }, directives: [ɵngcc1.MatInput, ɵngcc2.DefaultValueAccessor, ɵngcc3.MatDatepickerInput, ɵngcc2.NgControlStatus, ɵngcc2.FormControlDirective, ɵngcc4.FormlyAttributes, ɵngcc2.RequiredValidator, ɵngcc3.MatDatepicker, ɵngcc3.MatDatepickerToggle], encapsulation: 2 });\nFormlyDatepickerTypeComponent.propDecorators = {\n formFieldControl: [{ type: ViewChild, args: [MatInput, (/** @type {?} */ ({ static: true })),] }],\n datepickerInput: [{ type: ViewChild, args: [MatDatepickerInput,] }],\n datepickerToggle: [{ type: ViewChild, args: ['datepickerToggle',] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyDatepickerTypeComponent, [{\n type: Component,\n args: [{\n selector: 'formly-field-mat-datepicker',\n template: `\n <input matInput\n [id]=\"id\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [matDatepicker]=\"picker\"\n [matDatepickerFilter]=\"to.datepickerOptions.filter\"\n [max]=\"to.datepickerOptions.max\"\n [min]=\"to.datepickerOptions.min\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"to.placeholder\"\n [tabindex]=\"to.tabindex\"\n [readonly]=\"to.readonly\"\n [required]=\"to.required\"\n (dateInput)=\"to.datepickerOptions.dateInput(field, $event)\"\n (dateChange)=\"to.datepickerOptions.dateChange(field, $event)\">\n <ng-template #datepickerToggle>\n <mat-datepicker-toggle [for]=\"picker\"></mat-datepicker-toggle>\n </ng-template>\n <mat-datepicker #picker\n [color]=\"to.color\"\n [dateClass]=\"to.datepickerOptions.dateClass\"\n [disabled]=\"to.datepickerOptions.disabled\"\n [opened]=\"to.datepickerOptions.opened\"\n [panelClass]=\"to.datepickerOptions.panelClass\"\n [startAt]=\"to.datepickerOptions.startAt\"\n [startView]=\"to.datepickerOptions.startView\"\n [touchUi]=\"to.datepickerOptions.touchUi\"\n >\n </mat-datepicker>\n `\n }]\n }], null, { formFieldControl: [{\n type: ViewChild,\n args: [MatInput, ( /** @type {?} */({ static: true }))]\n }], datepickerInput: [{\n type: ViewChild,\n args: [MatDatepickerInput]\n }], datepickerToggle: [{\n type: ViewChild,\n args: ['datepickerToggle']\n }] }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass FormlyMatDatepickerModule {\n}\nFormlyMatDatepickerModule.ɵfac = function FormlyMatDatepickerModule_Factory(t) { return new (t || FormlyMatDatepickerModule)(); };\nFormlyMatDatepickerModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: FormlyMatDatepickerModule });\nFormlyMatDatepickerModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n MatDatepickerModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [{\n name: 'datepicker',\n component: FormlyDatepickerTypeComponent,\n wrappers: ['form-field']\n }]\n }),\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(FormlyMatDatepickerModule, [{\n type: NgModule,\n args: [{\n declarations: [FormlyDatepickerTypeComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n MatDatepickerModule,\n FormlyMatFormFieldModule,\n FormlyModule.forChild({\n types: [{\n name: 'datepicker',\n component: FormlyDatepickerTypeComponent,\n wrappers: ['form-field']\n }]\n }),\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(FormlyMatDatepickerModule, { declarations: function () { return [FormlyDatepickerTypeComponent]; }, imports: function () { return [CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n MatDatepickerModule,\n FormlyMatFormFieldModule, ɵngcc4.FormlyModule]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { FormlyMatDatepickerModule, FormlyDatepickerTypeComponent as ɵa };\n\n","import { NgModel } from '@angular/forms';\nimport {\n Directive,\n HostListener,\n Input,\n EventEmitter,\n Output\n} from '@angular/core';\nimport * as moment from 'moment';\nimport { Moment } from 'moment';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[dateFormatter]',\n providers: [NgModel]\n})\nexport class DateFormatterDirective {\n @Input()\n min: Moment;\n @Input()\n max: Moment;\n @Input()\n blockFutureDate: boolean;\n @Output()\n ngModelChange: EventEmitter<any> = new EventEmitter();\n @Output()\n focusOut: EventEmitter<string> = new EventEmitter();\n\n checkDateValidity(value: string, startCursor: number, endCursor: number) {\n const lastChar: string = value.substring(value.length - 1, value.length);\n\n // max length\n if (value.length === 10 && startCursor === endCursor) {\n return false;\n }\n\n let isValid = new RegExp('[0-9]').test(lastChar);\n if (startCursor === 0) {\n // check valid firt number of day\n isValid = new RegExp('[0-3]').test(lastChar);\n } else if (startCursor === 1) {\n // check valid second number of day\n if (value.substring(startCursor - 1, startCursor) === '3') {\n isValid = new RegExp('[0-1]').test(lastChar);\n } else if (value.substring(startCursor - 1, startCursor) === '0') {\n isValid = new RegExp('[1-9]').test(lastChar);\n }\n } else if (startCursor === 3) {\n // check valid first number of month\n isValid = new RegExp('[01]').test(lastChar);\n } else if (startCursor === 4) {\n // check valid second number of month\n if (value.substring(startCursor - 1, startCursor) === '1') {\n isValid = new RegExp('[0-2]').test(lastChar);\n } else {\n isValid = new RegExp('[1-9]').test(lastChar);\n }\n } else if (startCursor === 5) {\n isValid = new RegExp('[1-2]').test(lastChar);\n } else if (startCursor === 6) {\n // check valid first number of year\n isValid = new RegExp('[1-2]').test(lastChar);\n } else if (\n startCursor === 7 &&\n value.substring(startCursor - 1, startCursor) === '1'\n ) {\n // check valid second number of year\n isValid = lastChar === '9';\n }\n\n let formatDate =\n value.substring(0, startCursor) +\n lastChar +\n (endCursor < value.length ? value.substring(endCursor) : '');\n formatDate = this.formatDate(formatDate, startCursor);\n const autoDate = this.getAutoCompleteDate(formatDate);\n if (isValid) {\n // check correct day of month\n if (startCursor === 4 || startCursor === 9) {\n isValid = moment(autoDate, 'DD/MM/YYYY', true).isValid();\n }\n }\n\n // check date between min and max (when digit year)\n if (isValid && value.length - (endCursor - startCursor) >= 5) {\n let maxAutoDate = formatDate;\n for (let i = maxAutoDate.length; i < 10; i++) {\n maxAutoDate += '9';\n }\n if (this.min) {\n isValid = !moment(maxAutoDate, 'DD/MM/YYYY').isBefore(this.min);\n }\n if (isValid && this.max) {\n isValid = !moment(autoDate, 'DD/MM/YYYY').isAfter(this.max);\n }\n if (isValid && this.blockFutureDate) {\n isValid = !moment(autoDate, 'DD/MM/YYYY').isAfter(moment());\n }\n }\n\n return isValid;\n }\n\n constructor(public model: NgModel) {}\n @HostListener('keydown', ['$event'])\n onKeydown(event: KeyboardEvent) {\n const value: string = (event.target as any).value;\n const startCursor: number = (event.target as any).selectionStart;\n const endCursor: number = (event.target as any).selectionEnd;\n\n if (\n event.key === 'Backspace' &&\n startCursor >= 3 &&\n value.substring(startCursor - 1, startCursor) === '/'\n ) {\n (event.target as any).value = (event.target as any).value.substring(\n 0,\n value.length - 2\n );\n return false;\n }\n // For IE\n if (\n event.key === 'Spacebar' ||\n event.key === 'Subtract' ||\n event.key === 'Add' ||\n event.key === 'Multiply' ||\n event.key === 'Divide' ||\n event.key === 'Decimal' ||\n event.key === 'Unidentified'\n ) {\n return false;\n }\n // special keys\n if (event.key.length > 1 || (event.ctrlKey && !event.altKey)) {\n return true;\n }\n\n // max length\n if (value.length === 10 && startCursor === endCursor) {\n return false;\n }\n return true; // this.checkDateValidity(value, startCursor, endCursor);\n }\n\n @HostListener('input', ['$event'])\n onInputChange(event) {\n const value: string = (event.target as any).value;\n const startCursor: number = (event.target as any).selectionStart;\n const endCursor: number = (event.target as any).selectionEnd;\n\n const isValid = this.checkDateValidity(value, startCursor - 1, endCursor);\n if (!isValid || startCursor > 10) {\n event.target.value = event.target.value.substring(\n 0,\n event.target.value.length - 1\n );\n } else {\n this.formatDate(value, startCursor, event);\n }\n }\n\n @HostListener('focusout', ['$event'])\n onFocusOut(event: FocusEvent) {\n let value: string = (event.target as any).value;\n if (value) {\n value = this.getAutoCompleteDate(value);\n const isValid = new RegExp(\n '(0[1-9]|[1-2][0-9]|3[0-1])\\\\/(0[1-9]|1[0-2])\\\\/(19[0-9]{2}|2[0-9]{3})'\n ).test(value);\n const date =\n isValid && moment(value, 'DD/MM/YYYY', true).isValid()\n ? moment(value, 'DD/MM/YYYY').format('DD/MM/YYYY')\n : '';\n this.ngModelChange.emit(date);\n this.focusOut.emit(date);\n }\n }\n\n private formatDate(value: string, startCursor: number, event?) {\n if (value != null && value.length > 0) {\n value = value.replace(/\\//g, '');\n if (value.length >= 2) {\n if (value.length >= 4) {\n if (startCursor === value.length) {\n startCursor++;\n }\n value =\n value.substring(0, 4) +\n '/' +\n (value.length > 4 ? value.substring(4) : '');\n }\n if (startCursor === value.length) {\n startCursor++;\n }\n value =\n value.substring(0, 2) +\n '/' +\n (value.length > 2 ? value.substring(2) : '');\n }\n\n if (event) {\n (event.target as any).value = value;\n (event.target as any).selectionStart = startCursor;\n (event.target as any).selectionEnd = startCursor;\n }\n return value;\n }\n }\n\n private getAutoCompleteDate(value: string) {\n const dateSplit = value ? value.split('/') : [];\n if (dateSplit.length === 3) {\n // GG/MM/xxxx\n let year = dateSplit[2] ? dateSplit[2] : '2000';\n if (year.length === 1) {\n year = year.substring(year.length - 1) === '1' ? '1900' : year + '000';\n } else if (year.length === 2) {\n year = year + '00';\n } else if (year.length === 3) {\n year = year + '0';\n }\n value = dateSplit[0] + '/' + dateSplit[1] + '/' + year;\n } else if (dateSplit.length === 2) {\n // GG/xx/\n let month = dateSplit[1].length === 1 ? '0' + dateSplit[1] : dateSplit[1];\n month = month && month !== '00' ? month : '01';\n value = dateSplit[0] + '/' + month + '/2000';\n } else if (dateSplit.length === 1) {\n // xx/ or xx\n let day = dateSplit[0].length === 1 ? '0' + dateSplit[0] : dateSplit[0];\n day = day && day !== '00' ? day : '01';\n value = day + '/01/2000';\n }\n\n return value;\n }\n}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/material';\n\n@Component({\n selector: 'app-date-input',\n templateUrl: './date-input.component.html'\n})\nexport class DateInputComponent extends FieldType {\n onFocusOut(model: string) {\n this.formControl.setValue(model);\n }\n}\n","<input\n matInput\n placeholder=\"{{ field.templateOptions.placeholder }}\"\n type=\"input\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n dateFormatter\n blockFutureDate=\"true\"\n autocomplete=\"off\"\n (focusOut)=\"onFocusOut($event)\"\n/>\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/material';\n\n@Component({\n selector: 'app-date-future-input',\n templateUrl: './date-future-input.component.html'\n})\nexport class DateFutureInputComponent extends FieldType {\n onFocusOut(model: string) {\n this.formControl.setValue(model);\n }\n}\n","<input\n matInput\n placeholder=\"{{ field.templateOptions.placeholder }}\"\n type=\"input\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n dateFormatter\n autocomplete=\"off\"\n (focusOut)=\"onFocusOut($event)\"\n/>\n","import { Subject, BehaviorSubject } from 'rxjs';\nimport { Component, ChangeDetectionStrategy, NgZone, ChangeDetectorRef, ViewChild, HostBinding, HostListener, InjectionToken, Injectable, Inject, LOCALE_ID, Optional, SkipSelf, EventEmitter, Input, Output, ViewChildren, Directive, ElementRef, Self, Pipe, NgModule } from '@angular/core';\nimport { LiveAnnouncer } from '@angular/cdk/a11y';\nimport { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';\nimport { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, PortalModule } from '@angular/cdk/portal';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { AnimationDurations, AnimationCurves, MatCommonModule } from '@angular/material/core';\nimport { first } from 'rxjs/operators';\nimport { NgControl } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\n\n/**\r\n * Reference to a keyboard dispatched from the keyboard service.\r\n */\r\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/cdk/portal';\nimport * as ɵngcc2 from '@angular/cdk/overlay';\nimport * as ɵngcc3 from '@angular/cdk/a11y';\nimport * as ɵngcc4 from '@angular/material/button';\nimport * as ɵngcc5 from '@angular/common';\nimport * as ɵngcc6 from '@angular/material/icon';\nimport * as ɵngcc7 from '@angular/forms';\n\nfunction MatKeyboardContainerComponent_ng_template_0_Template(rf, ctx) { }\nfunction MatKeyboardKeyComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"mat-icon\", 3);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"fontSet\", ctx_r0.fontSet)(\"fontIcon\", ctx_r0.fontIcon)(\"svgIcon\", ctx_r0.svgIcon);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(ctx_r0.iconName);\n} }\nfunction MatKeyboardKeyComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n} if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵtextInterpolate(ctx_r2.key);\n} }\nfunction MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template(rf, ctx) { if (rf & 1) {\n const _r6 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"mat-keyboard-key\", 6);\n ɵngcc0.ɵɵlistener(\"enterClick\", function MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template_mat_keyboard_key_enterClick_0_listener() { ɵngcc0.ɵɵrestoreView(_r6); const ctx_r5 = ɵngcc0.ɵɵnextContext(3); return ctx_r5.onEnterClick(); })(\"capsClick\", function MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template_mat_keyboard_key_capsClick_0_listener() { ɵngcc0.ɵɵrestoreView(_r6); const ctx_r7 = ɵngcc0.ɵɵnextContext(3); return ctx_r7.onCapsClick(); })(\"altClick\", function MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template_mat_keyboard_key_altClick_0_listener() { ɵngcc0.ɵɵrestoreView(_r6); const ctx_r8 = ɵngcc0.ɵɵnextContext(3); return ctx_r8.onAltClick(); })(\"shiftClick\", function MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template_mat_keyboard_key_shiftClick_0_listener() { ɵngcc0.ɵɵrestoreView(_r6); const ctx_r9 = ɵngcc0.ɵɵnextContext(3); return ctx_r9.onShiftClick(); })(\"keyClick\", function MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template_mat_keyboard_key_keyClick_0_listener() { ɵngcc0.ɵɵrestoreView(_r6); const ctx_r10 = ɵngcc0.ɵɵnextContext(3); return ctx_r10.onKeyClick(); });\n ɵngcc0.ɵɵpipe(1, \"async\");\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const key_r3 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r4 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"key\", ctx_r4.getModifiedKey(key_r3))(\"icon\", ctx_r4.getKeyIcon(key_r3))(\"active\", ctx_r4.isActive(key_r3))(\"input\", ɵngcc0.ɵɵpipeBind1(1, 5, ctx_r4.inputInstance))(\"control\", ctx_r4.control);\n} }\nfunction MatKeyboardComponent_div_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementContainerStart(0);\n ɵngcc0.ɵɵtemplate(1, MatKeyboardComponent_div_4_ng_container_1_mat_keyboard_key_1_Template, 2, 7, \"mat-keyboard-key\", 5);\n ɵngcc0.ɵɵelementContainerEnd();\n} if (rf & 2) {\n const key_r3 = ctx.$implicit;\n const ctx_r2 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx_r2.getModifiedKey(key_r3));\n} }\nfunction MatKeyboardComponent_div_4_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 3);\n ɵngcc0.ɵɵtemplate(1, MatKeyboardComponent_div_4_ng_container_1_Template, 2, 1, \"ng-container\", 4);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r1 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r1);\n} }\nclass MatKeyboardRef {\r\n constructor(instance, containerInstance, _overlayRef) {\r\n this._overlayRef = _overlayRef;\r\n /** Subject for notifying the user that the keyboard has closed. */\r\n this._afterClosed = new Subject();\r\n /** Subject for notifying the user that the keyboard has opened and appeared. */\r\n this._afterOpened = new Subject();\r\n // Sets the readonly instance of the keyboard content component.\r\n this.instance = instance;\r\n this.containerInstance = containerInstance;\r\n // Finish dismiss on exitting\r\n containerInstance.onExit.subscribe(() => this._finishDismiss());\r\n }\r\n /** Dismisses the keyboard. */\r\n dismiss() {\r\n if (!this._afterClosed.closed) {\r\n this.containerInstance.exit();\r\n }\r\n }\r\n /** Marks the keyboard as opened */\r\n _open() {\r\n if (!this._afterOpened.closed) {\r\n this._afterOpened.next();\r\n this._afterOpened.complete();\r\n }\r\n }\r\n /** Gets an observable that is notified when the keyboard is finished closing. */\r\n afterDismissed() {\r\n return this._afterClosed.asObservable();\r\n }\r\n /** Gets an observable that is notified when the keyboard has opened and appeared. */\r\n afterOpened() {\r\n return this.containerInstance.onEnter;\r\n }\r\n /** Cleans up the DOM after closing. */\r\n _finishDismiss() {\r\n this._overlayRef.dispose();\r\n this._afterClosed.next();\r\n this._afterClosed.complete();\r\n }\r\n}\n\n// TODO: use real string based enums (available sine typescript 1.4) if\r\n// [tslint](https://github.com/palantir/tslint/issues/2993) and more important\r\n// [rollup](https://github.com/angular/angular/issues/17516) support it\r\nvar KeyboardClassKey;\r\n(function (KeyboardClassKey) {\r\n KeyboardClassKey[\"Alt\"] = \"Alt\";\r\n KeyboardClassKey[\"AltGr\"] = \"AltGraph\";\r\n KeyboardClassKey[\"AltLk\"] = \"AltLk\";\r\n KeyboardClassKey[\"Bksp\"] = \"Backspace\";\r\n KeyboardClassKey[\"Caps\"] = \"CapsLock\";\r\n KeyboardClassKey[\"Enter\"] = \"Enter\";\r\n KeyboardClassKey[\"Shift\"] = \"Shift\";\r\n KeyboardClassKey[\"Space\"] = \" \";\r\n KeyboardClassKey[\"Tab\"] = \"Tab\";\r\n})(KeyboardClassKey || (KeyboardClassKey = {}));\n\nconst KEYBOARD_ICONS = {\r\n [KeyboardClassKey.Bksp]: { name: 'keyboard_backspace' },\r\n [KeyboardClassKey.Caps]: { name: 'keyboard_capslock' },\r\n [KeyboardClassKey.Enter]: { name: 'keyboard_return' },\r\n [KeyboardClassKey.Shift]: { name: 'keyboard_arrow_up' },\r\n [KeyboardClassKey.Space]: { name: ' ' },\r\n [KeyboardClassKey.Tab]: { name: 'keyboard_tab' }\r\n};\n\n// this enum index has to be number based because it is used\r\n// to access the keyboard configs alternative key assignment\r\nvar KeyboardModifier;\r\n(function (KeyboardModifier) {\r\n KeyboardModifier[KeyboardModifier[\"None\"] = 0] = \"None\";\r\n KeyboardModifier[KeyboardModifier[\"Shift\"] = 1] = \"Shift\";\r\n KeyboardModifier[KeyboardModifier[\"Alt\"] = 2] = \"Alt\";\r\n KeyboardModifier[KeyboardModifier[\"ShiftAlt\"] = 3] = \"ShiftAlt\";\r\n})(KeyboardModifier || (KeyboardModifier = {}));\n\nvar KeyboardAnimationState;\r\n(function (KeyboardAnimationState) {\r\n KeyboardAnimationState[\"Void\"] = \"void\";\r\n KeyboardAnimationState[\"Visible\"] = \"visible\";\r\n KeyboardAnimationState[\"Hidden\"] = \"hidden\";\r\n})(KeyboardAnimationState || (KeyboardAnimationState = {}));\n\n// import { KeyboardAnimationState } from './keyboard-animation-state.enum';\r\n//\r\n// export enum KeyboardAnimationTransition {\r\n// Hide = `${KeyboardAnimationState.Visible} => ${KeyboardAnimationState.Hidden}`,\r\n// Show = `${KeyboardAnimationState.Void} => ${KeyboardAnimationState.Visible}`\r\n// }\r\nvar KeyboardAnimationTransition;\r\n(function (KeyboardAnimationTransition) {\r\n KeyboardAnimationTransition[\"Hide\"] = \"visible => hidden\";\r\n KeyboardAnimationTransition[\"Show\"] = \"void => visible\";\r\n})(KeyboardAnimationTransition || (KeyboardAnimationTransition = {}));\n\n// TODO: we can't use constants from animation.ts here because you can't use\r\n// a text interpolation in anything that is analyzed statically with ngc (for AoT compile).\r\nconst SHOW_ANIMATION = `${AnimationDurations.ENTERING} ${AnimationCurves.DECELERATION_CURVE}`;\r\nconst HIDE_ANIMATION = `${AnimationDurations.EXITING} ${AnimationCurves.ACCELERATION_CURVE}`;\r\n/**\r\n * Internal component that wraps user-provided keyboard content.\r\n * @docs-private\r\n */\r\nclass MatKeyboardContainerComponent extends BasePortalOutlet {\r\n constructor(_ngZone, _changeDetectorRef) {\r\n super();\r\n this._ngZone = _ngZone;\r\n this._changeDetectorRef = _changeDetectorRef;\r\n /** Whether the component has been destroyed. */\r\n this._destroyed = false;\r\n /** The state of the keyboard animations. */\r\n this._animationState = KeyboardAnimationState.Void;\r\n /** Subject for notifying that the keyboard has exited from view. */\r\n this.onExit = new Subject();\r\n /** Subject for notifying that the keyboard has finished entering the view. */\r\n this.onEnter = new Subject();\r\n this.attrRole = 'alert';\r\n }\r\n onMousedown(event) {\r\n event.preventDefault();\r\n }\r\n /** Attach a component portal as content to this keyboard container. */\r\n attachComponentPortal(portal) {\r\n if (this._portalOutlet.hasAttached()) {\r\n throw Error('Attempting to attach keyboard content after content is already attached');\r\n }\r\n return this._portalOutlet.attachComponentPortal(portal);\r\n }\r\n // Attach a template portal as content to this keyboard container\r\n attachTemplatePortal() {\r\n throw Error('Not yet implemented');\r\n }\r\n /** Handle end of animations, updating the state of the keyboard. */\r\n onAnimationEnd(event) {\r\n const { fromState, toState } = event;\r\n if ((toState === KeyboardAnimationState.Void && fromState !== KeyboardAnimationState.Void) || toState.startsWith('hidden')) {\r\n this._completeExit();\r\n }\r\n if (toState === KeyboardAnimationState.Visible) {\r\n // Note: we shouldn't use `this` inside the zone callback,\r\n // because it can cause a memory leak.\r\n const onEnter = this.onEnter;\r\n this._ngZone.run(() => {\r\n onEnter.next();\r\n onEnter.complete();\r\n });\r\n }\r\n }\r\n /** Begin animation of keyboard entrance into view. */\r\n enter() {\r\n if (!this._destroyed) {\r\n this._animationState = KeyboardAnimationState.Visible;\r\n this._changeDetectorRef.detectChanges();\r\n }\r\n }\r\n /** Begin animation of the snack bar exiting from view. */\r\n exit() {\r\n this._animationState = KeyboardAnimationState.Hidden;\r\n return this.onExit;\r\n }\r\n /**\r\n * Makes sure the exit callbacks have been invoked when the element is destroyed.\r\n */\r\n ngOnDestroy() {\r\n this._destroyed = true;\r\n this._completeExit();\r\n }\r\n /**\r\n * Waits for the zone to settle before removing the element. Helps prevent\r\n * errors where we end up removing an element which is in the middle of an animation.\r\n */\r\n _completeExit() {\r\n this._ngZone.onMicrotaskEmpty\r\n .asObservable()\r\n .pipe(first())\r\n .subscribe(() => {\r\n this.onExit.next();\r\n this.onExit.complete();\r\n });\r\n }\r\n}\nMatKeyboardContainerComponent.ɵfac = function MatKeyboardContainerComponent_Factory(t) { return new (t || MatKeyboardContainerComponent)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.NgZone), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ChangeDetectorRef)); };\nMatKeyboardContainerComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatKeyboardContainerComponent, selectors: [[\"mat-keyboard-container\"]], viewQuery: function MatKeyboardContainerComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(CdkPortalOutlet, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);\n } }, hostVars: 2, hostBindings: function MatKeyboardContainerComponent_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵsyntheticHostListener(\"@state.done\", function MatKeyboardContainerComponent_animation_state_done_HostBindingHandler($event) { return ctx.onAnimationEnd($event); });\n ɵngcc0.ɵɵlistener(\"mousedown\", function MatKeyboardContainerComponent_mousedown_HostBindingHandler($event) { return ctx.onMousedown($event); });\n } if (rf & 2) {\n ɵngcc0.ɵɵattribute(\"role\", ctx.attrRole);\n ɵngcc0.ɵɵsyntheticHostProperty(\"@state\", ctx._animationState);\n } }, features: [ɵngcc0.ɵɵInheritDefinitionFeature], decls: 1, vars: 0, consts: [[\"cdkPortalHost\", \"\"]], template: function MatKeyboardContainerComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, MatKeyboardContainerComponent_ng_template_0_Template, 0, 0, \"ng-template\", 0);\n } }, directives: [ɵngcc1.PortalHostDirective], styles: [\"[_nghost-%COMP%]{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);border-radius:2px;box-sizing:border-box;display:block;margin:0 auto;max-width:960px;min-width:568px;transform:translateY(100%)}.cdk-high-contrast-active [_nghost-%COMP%], .cdk-high-contrast-active [_nghost-%COMP%] -shadowcsshost{border:1px solid}\"], data: { animation: [\n trigger('state', [\n state(`${KeyboardAnimationState.Visible}`, style({ transform: 'translateY(0%)' })),\n transition(`${KeyboardAnimationTransition.Hide}`, animate(HIDE_ANIMATION)),\n transition(`${KeyboardAnimationTransition.Show}`, animate(SHOW_ANIMATION))\n ])\n ] }, changeDetection: 0 });\r\nMatKeyboardContainerComponent.ctorParameters = () => [\r\n { type: NgZone },\r\n { type: ChangeDetectorRef }\r\n];\r\nMatKeyboardContainerComponent.propDecorators = {\r\n _portalOutlet: [{ type: ViewChild, args: [CdkPortalOutlet, { static: true },] }],\r\n _animationState: [{ type: HostBinding, args: ['@state',] }],\r\n attrRole: [{ type: HostBinding, args: ['attr.role',] }],\r\n onMousedown: [{ type: HostListener, args: ['mousedown', ['$event'],] }],\r\n onAnimationEnd: [{ type: HostListener, args: ['@state.done', ['$event'],] }]\r\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardContainerComponent, [{\n type: Component,\n args: [{\n selector: 'mat-keyboard-container',\n template: \"<ng-template cdkPortalHost></ng-template>\\r\\n\",\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n // animations: [\n // trigger('state', [\n // state('visible', style({transform: 'translateY(0%)'})),\n // transition('visible => hidden', animate(HIDE_ANIMATION)),\n // transition('void => visible', animate(SHOW_ANIMATION)),\n // ])\n // ]\n animations: [\n trigger('state', [\n state(`${KeyboardAnimationState.Visible}`, style({ transform: 'translateY(0%)' })),\n transition(`${KeyboardAnimationTransition.Hide}`, animate(HIDE_ANIMATION)),\n transition(`${KeyboardAnimationTransition.Show}`, animate(SHOW_ANIMATION))\n ])\n ],\n styles: [\":host{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);border-radius:2px;box-sizing:border-box;display:block;margin:0 auto;max-width:960px;min-width:568px;transform:translateY(100%)}.cdk-high-contrast-active :host,.cdk-high-contrast-active :host :host{border:1px solid}\"]\n }]\n }], function () { return [{ type: ɵngcc0.NgZone }, { type: ɵngcc0.ChangeDetectorRef }]; }, { _animationState: [{\n type: HostBinding,\n args: ['@state']\n }], attrRole: [{\n type: HostBinding,\n args: ['attr.role']\n }], onMousedown: [{\n type: HostListener,\n args: ['mousedown', ['$event']]\n }], \n /** Handle end of animations, updating the state of the keyboard. */\n onAnimationEnd: [{\n type: HostListener,\n args: ['@state.done', ['$event']]\n }], _portalOutlet: [{\n type: ViewChild,\n args: [CdkPortalOutlet, { static: true }]\n }] }); })();\n\n/*\r\n * README from http://www.greywyvern.com/code/javascript/keyboard.js\r\n * ------\r\n *\r\n * - Lay out each keyboard in rows of sub-arrays. Each sub-array\r\n * represents one key.\r\n *\r\n * - Each sub-array consists of four slots described as follows:\r\n * example: [\"a\", \"A\", \"\\u00e1\", \"\\u00c1\"]\r\n *\r\n * a) Normal character\r\n * A) Character + Shift/Caps\r\n * \\u00e1) Character + Alt/AltGr/AltLk\r\n * \\u00c1) Character + Shift/Caps + Alt/AltGr/AltLk\r\n *\r\n * You may include sub-arrays which are fewer than four slots.\r\n * In these cases, the missing slots will be blanked when the\r\n * corresponding modifier key (Shift or AltGr) is pressed.\r\n *\r\n * - If the second slot of a sub-array matches one of the following\r\n * strings:\r\n * \"Tab\", \"Caps\", \"Shift\", \"Enter\", \"Bksp\",\r\n * \"Alt\" OR \"AltGr\", \"AltLk\"\r\n * then the function of the key will be the following,\r\n * respectively:\r\n * - Insert a tab\r\n * - Toggle Caps Lock (technically a Shift Lock)\r\n * - Next entered character will be the shifted character\r\n * - Insert a newline (textarea), or close the keyboard\r\n * - Delete the previous character\r\n * - Next entered character will be the alternate character\r\n * - Toggle Alt/AltGr Lock\r\n *\r\n * The first slot of this sub-array will be the text to display\r\n * on the corresponding key. This allows for easy localisation\r\n * of key names.\r\n *\r\n * - Layout dead keys (diacritic + letter) should be added as\r\n * property/value pairs of objects with hash keys equal to the\r\n * diacritic. See the \"this.VKI_deadkey\" object below the layout\r\n * definitions. In each property/value pair, the value is what\r\n * the diacritic would change the property name to.\r\n *\r\n * - Note that any characters beyond the normal ASCII set should be\r\n * entered in escaped Unicode format. (eg \\u00a3 = Pound symbol)\r\n * You can find Unicode values for characters here:\r\n * http://unicode.org/charts/\r\n *\r\n * - To remove a keyboard, just delete it, or comment it out of the\r\n * source code. If you decide to remove the US International\r\n * keyboard layout, make sure you change the default layout\r\n * (this.VKI_kt) above so it references an existing layout.\r\n *\r\n * CREDITS\r\n * -------\r\n *\r\n * See http://www.greywyvern.com/code/javascript/keyboard for examples\r\n * and usage instructions.\r\n *\r\n * Version 1.49 - November 8, 2011\r\n * - Don't display language drop-down if only one keyboard available\r\n *\r\n * See full changelog at:\r\n * http://www.greywyvern.com/code/javascript/keyboard.changelog.txt\r\n *\r\n * Keyboard Credits\r\n * - Yiddish (Yidish Lebt) keyboard layout by Simche Taub (jidysz.net)\r\n * - Urdu Phonetic keyboard layout by Khalid Malik\r\n * - Yiddish keyboard layout by Helmut Wollmersdorfer\r\n * - Khmer keyboard layout by Sovann Heng (km-kh.com)\r\n * - Dari keyboard layout by Saif Fazel\r\n * - Kurdish keyboard layout by Ara Qadir\r\n * - Assamese keyboard layout by Kanchan Gogoi\r\n * - Bulgarian BDS keyboard layout by Milen Georgiev\r\n * - Basic Japanese Hiragana/Katakana keyboard layout by Damjan\r\n * - Ukrainian keyboard layout by Dmitry Nikitin\r\n * - Macedonian keyboard layout by Damjan Dimitrioski\r\n * - Pashto keyboard layout by Ahmad Wali Achakzai (qamosona.com)\r\n * - Armenian Eastern and Western keyboard layouts by Hayastan Project (www.hayastan.co.uk)\r\n * - Pinyin keyboard layout from a collaboration with Lou Winklemann\r\n * - Kazakh keyboard layout by Alex Madyankin\r\n * - Danish keyboard layout by Verner Kjærsgaard\r\n * - Slovak keyboard layout by Daniel Lara (www.learningslovak.com)\r\n * - Belarusian and Serbian Cyrillic keyboard layouts by Evgeniy Titov\r\n * - Bulgarian Phonetic keyboard layout by Samuil Gospodinov\r\n * - Swedish keyboard layout by HÃ¥kan Sandberg\r\n * - Romanian keyboard layout by Aurel\r\n * - Farsi (Persian) keyboard layout by Kaveh Bakhtiyari (www.bakhtiyari.com)\r\n * - Burmese keyboard layout by Cetanapa\r\n * - Bosnian/Croatian/Serbian Latin/Slovenian keyboard layout by Miran Zeljko\r\n * - Hungarian keyboard layout by Antal Sall 'Hiromacu'\r\n * - Arabic keyboard layout by Srinivas Reddy\r\n * - Italian and Spanish (Spain) keyboard layouts by dictionarist.com\r\n * - Lithuanian and Russian keyboard layouts by Ramunas\r\n * - German keyboard layout by QuHno\r\n * - French keyboard layout by Hidden Evil\r\n * - Polish Programmers layout by moose\r\n * - Turkish keyboard layouts by offcu\r\n * - Dutch and US Int'l keyboard layouts by jerone\r\n *\r\n */\r\nconst MAT_KEYBOARD_LAYOUTS = new InjectionToken('keyboard-layouts.config');\r\nconst keyboardLayouts = {\r\n '\\u0627\\u0644\\u0639\\u0631\\u0628\\u064a\\u0629': {\r\n 'name': 'Arabic',\r\n 'keys': [\r\n [\r\n ['\\u0630', '\\u0651 '],\r\n ['1', '!', '\\u00a1', '\\u00b9'],\r\n ['2', '@', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00a4', '\\u00a3'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '^', '\\u00bc'],\r\n ['7', '&', '\\u00bd'],\r\n ['8', '*', '\\u00be'],\r\n ['9', '(', '\\u2018'],\r\n ['0', ')', '\\u2019'],\r\n ['-', '_', '\\u00a5'],\r\n ['=', '+', '\\u00d7', '\\u00f7'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0636', '\\u064e'],\r\n ['\\u0635', '\\u064b'],\r\n ['\\u062b', '\\u064f'],\r\n ['\\u0642', '\\u064c'],\r\n ['\\u0641', '\\u0644'],\r\n ['\\u063a', '\\u0625'],\r\n ['\\u0639', '\\u2018'],\r\n ['\\u0647', '\\u00f7'],\r\n ['\\u062e', '\\u00d7'],\r\n ['\\u062d', '\\u061b'],\r\n ['\\u062c', '<'],\r\n ['\\u062f', '>'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0634', '\\u0650'],\r\n ['\\u0633', '\\u064d'],\r\n ['\\u064a', ']'],\r\n ['\\u0628', '['],\r\n ['\\u0644', '\\u0644'],\r\n ['\\u0627', '\\u0623'],\r\n ['\\u062a', '\\u0640'],\r\n ['\\u0646', '\\u060c'],\r\n ['\\u0645', '/'],\r\n ['\\u0643', ':'],\r\n ['\\u0637', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0626', '~'],\r\n ['\\u0621', '\\u0652'],\r\n ['\\u0624', '}'],\r\n ['\\u0631', '{'],\r\n ['\\u0644', '\\u0644'],\r\n ['\\u0649', '\\u0622'],\r\n ['\\u0629', '\\u2019'],\r\n ['\\u0648', ','],\r\n ['\\u0632', '.'],\r\n ['\\u0638', '\\u061f'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['ar']\r\n },\r\n '\\u0985\\u09b8\\u09ae\\u09c0\\u09df\\u09be': {\r\n 'name': 'Assamese',\r\n 'keys': [\r\n [\r\n ['+', '?'],\r\n ['\\u09E7', '{', '\\u09E7'],\r\n ['\\u09E8', '}', '\\u09E8'],\r\n ['\\u09E9', '\\u09CD\\u09F0', '\\u09E9'],\r\n ['\\u09EA', '\\u09F0\\u09CD', '\\u09EA'],\r\n ['\\u09EB', '\\u099C\\u09CD\\u09F0', '\\u09EB'],\r\n ['\\u09EC', '\\u0995\\u09CD\\u09B7', '\\u09EC'],\r\n ['\\u09ED', '\\u0995\\u09CD\\u09F0', '\\u09ED'],\r\n ['\\u09EE', '\\u09B6\\u09CD\\u09F0', '\\u09EE'],\r\n ['\\u09EF', '(', '\\u09EF'],\r\n ['\\u09E6', ')', '\\u09E6'],\r\n ['-', ''],\r\n ['\\u09C3', '\\u098B', '\\u09E2', '\\u09E0'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u09CC', '\\u0994', '\\u09D7'],\r\n ['\\u09C8', '\\u0990'],\r\n ['\\u09BE', '\\u0986'],\r\n ['\\u09C0', '\\u0988', '\\u09E3', '\\u09E1'],\r\n ['\\u09C2', '\\u098A'],\r\n ['\\u09F1', '\\u09AD'],\r\n ['\\u09B9', '\\u0999'],\r\n ['\\u0997', '\\u0998'],\r\n ['\\u09A6', '\\u09A7'],\r\n ['\\u099C', '\\u099D'],\r\n ['\\u09A1', '\\u09A2', '\\u09DC', '\\u09DD'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u09CB', '\\u0993', '\\u09F4', '\\u09F5'],\r\n ['\\u09C7', '\\u098F', '\\u09F6', '\\u09F7'],\r\n ['\\u09CD', '\\u0985', '\\u09F8', '\\u09F9'],\r\n ['\\u09BF', '\\u0987', '\\u09E2', '\\u098C'],\r\n ['\\u09C1', '\\u0989'],\r\n ['\\u09AA', '\\u09AB'],\r\n ['\\u09F0', '', '\\u09F0', '\\u09F1'],\r\n ['\\u0995', '\\u0996'],\r\n ['\\u09A4', '\\u09A5'],\r\n ['\\u099A', '\\u099B'],\r\n ['\\u099F', '\\u09A0'],\r\n ['\\u09BC', '\\u099E']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u09CE', '\\u0983'],\r\n ['\\u0982', '\\u0981', '\\u09FA'],\r\n ['\\u09AE', '\\u09A3'],\r\n ['\\u09A8', '\\u09F7'],\r\n ['\\u09AC', '\"'],\r\n ['\\u09B2', '\\''],\r\n ['\\u09B8', '\\u09B6'],\r\n [',', '\\u09B7'],\r\n ['.', ';'],\r\n ['\\u09AF', '\\u09DF'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['as']\r\n },\r\n '\\u0410\\u0437\\u04d9\\u0440\\u0431\\u0430\\u0458\\u04b9\\u0430\\u043d\\u04b9\\u0430': {\r\n 'name': 'Azerbaijani Cyrillic',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0458', '\\u0408'],\r\n ['\\u04AF', '\\u04AE'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u04BB', '\\u04BA'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u04B9', '\\u04B8'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u049D', '\\u049C'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['\\u04D9', '\\u04D8'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u0493', '\\u0492'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u04E9', '\\u04E8'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['az-CYRL']\r\n },\r\n 'Az\\u0259rbaycanca': {\r\n 'name': 'Azerbaijani Latin',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2166'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['\\u00FC', '\\u00DC'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', '\\u0130'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00F6', '\\u00D6'],\r\n ['\\u011F', '\\u011E'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u0131', 'I'],\r\n ['\\u0259', '\\u018F'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n ['\\u00E7', '\\u00C7'],\r\n ['\\u015F', '\\u015E'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['az']\r\n },\r\n '\\u0411\\u0435\\u043b\\u0430\\u0440\\u0443\\u0441\\u043a\\u0430\\u044f': {\r\n 'name': 'Belarusian',\r\n 'keys': [\r\n [\r\n ['\\u0451', '\\u0401'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043a', '\\u041a'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043d', '\\u041d'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u045e', '\\u040e'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\'', '\\''],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044b', '\\u042b'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043f', '\\u041f'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043e', '\\u041e'],\r\n ['\\u043b', '\\u041b'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044d', '\\u042d'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['/', '|'],\r\n ['\\u044f', '\\u042f'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043c', '\\u041c'],\r\n ['\\u0456', '\\u0406'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044c', '\\u042c'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044e', '\\u042e'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['be']\r\n },\r\n 'Belgische / Belge': {\r\n 'name': 'Belgian',\r\n 'keys': [\r\n [\r\n ['\\u00b2', '\\u00b3'],\r\n ['&', '1', '|'],\r\n ['\\u00e9', '2', '@'],\r\n ['\"', '3', '#'],\r\n ['\\'', '4'],\r\n ['(', '5'],\r\n ['\\u00a7', '6', '^'],\r\n ['\\u00e8', '7'],\r\n ['!', '8'],\r\n ['\\u00e7', '9', '{'],\r\n ['\\u00e0', '0', '}'],\r\n [')', '\\u00b0'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['a', 'A'],\r\n ['z', 'Z'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['^', '\\u00a8', '['],\r\n ['$', '*', ']'],\r\n ['\\u03bc', '\\u00a3', '`']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['q', 'Q'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['m', 'M'],\r\n ['\\u00f9', '%', '\\u00b4'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['w', 'W'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n [',', '?'],\r\n [';', '.'],\r\n [':', '/'],\r\n ['=', '+', '~'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['nl-BE', 'fr-BE']\r\n },\r\n '\\u0411\\u044a\\u043b\\u0433\\u0430\\u0440\\u0441\\u043a\\u0438 \\u0424\\u043e\\u043d\\u0435\\u0442\\u0438\\u0447\\u0435\\u043d': {\r\n 'name': 'Bulgarian Phonetic',\r\n 'keys': [\r\n [\r\n ['\\u0447', '\\u0427'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u044E', '\\u042E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u043B', '\\u041B'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u043C', '\\u041C'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['bg']\r\n },\r\n '\\u0411\\u044a\\u043b\\u0433\\u0430\\u0440\\u0441\\u043a\\u0438': {\r\n 'name': 'Bulgarian BDS',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '?'],\r\n ['3', '+'],\r\n ['4', '\"'],\r\n ['5', '%'],\r\n ['6', '='],\r\n ['7', ':'],\r\n ['8', '/'],\r\n ['9', '_'],\r\n ['0', '\\u2116'],\r\n ['-', '\\u0406'],\r\n ['=', 'V'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n [',', '\\u044b'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u043a', '\\u041a'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0446', '\\u0426'],\r\n [';', '\\u00a7'],\r\n ['(', ')']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u044c', '\\u042c'],\r\n ['\\u044f', '\\u042f'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043e', '\\u041e'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u043d', '\\u041d'],\r\n ['\\u0412', '\\u0412'],\r\n ['\\u043c', '\\u041c'],\r\n ['\\u0447', '\\u0427'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u042e', '\\u044e'],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u044a', '\\u042a'],\r\n ['\\u044d', '\\u042d'],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u043f', '\\u041f'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043b', '\\u041b'],\r\n ['\\u0431', '\\u0411'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ]\r\n },\r\n '\\u09ac\\u09be\\u0982\\u09b2\\u09be': {\r\n 'name': 'Bengali',\r\n 'keys': [\r\n [\r\n [''],\r\n ['1', '', '\\u09E7'],\r\n ['2', '', '\\u09E8'],\r\n ['3', '\\u09CD\\u09B0', '\\u09E9'],\r\n ['4', '\\u09B0\\u09CD', '\\u09EA'],\r\n ['5', '\\u099C\\u09CD\\u09B0', '\\u09EB'],\r\n ['6', '\\u09A4\\u09CD\\u09B7', '\\u09EC'],\r\n ['7', '\\u0995\\u09CD\\u09B0', '\\u09ED'],\r\n ['8', '\\u09B6\\u09CD\\u09B0', '\\u09EE'],\r\n ['9', '(', '\\u09EF'],\r\n ['0', ')', '\\u09E6'],\r\n ['-', '\\u0983'],\r\n ['\\u09C3', '\\u098B', '\\u09E2', '\\u09E0'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u09CC', '\\u0994', '\\u09D7'],\r\n ['\\u09C8', '\\u0990'],\r\n ['\\u09BE', '\\u0986'],\r\n ['\\u09C0', '\\u0988', '\\u09E3', '\\u09E1'],\r\n ['\\u09C2', '\\u098A'],\r\n ['\\u09AC', '\\u09AD'],\r\n ['\\u09B9', '\\u0999'],\r\n ['\\u0997', '\\u0998'],\r\n ['\\u09A6', '\\u09A7'],\r\n ['\\u099C', '\\u099D'],\r\n ['\\u09A1', '\\u09A2', '\\u09DC', '\\u09DD'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u09CB', '\\u0993', '\\u09F4', '\\u09F5'],\r\n ['\\u09C7', '\\u098F', '\\u09F6', '\\u09F7'],\r\n ['\\u09CD', '\\u0985', '\\u09F8', '\\u09F9'],\r\n ['\\u09BF', '\\u0987', '\\u09E2', '\\u098C'],\r\n ['\\u09C1', '\\u0989'],\r\n ['\\u09AA', '\\u09AB'],\r\n ['\\u09B0', '', '\\u09F0', '\\u09F1'],\r\n ['\\u0995', '\\u0996'],\r\n ['\\u09A4', '\\u09A5'],\r\n ['\\u099A', '\\u099B'],\r\n ['\\u099F', '\\u09A0'],\r\n ['\\u09BC', '\\u099E']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [''],\r\n ['\\u0982', '\\u0981', '\\u09FA'],\r\n ['\\u09AE', '\\u09A3'],\r\n ['\\u09A8'],\r\n ['\\u09AC'],\r\n ['\\u09B2'],\r\n ['\\u09B8', '\\u09B6'],\r\n [',', '\\u09B7'],\r\n ['.', '{'],\r\n ['\\u09AF', '\\u09DF'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['bn']\r\n },\r\n 'Bosanski': {\r\n 'name': 'Bosnian',\r\n 'keys': [\r\n [\r\n ['\\u00B8', '\\u00A8'],\r\n ['1', '!', '~'],\r\n ['2', '\"', '\\u02C7'],\r\n ['3', '#', '^'],\r\n ['4', '$', '\\u02D8'],\r\n ['5', '%', '\\u00B0'],\r\n ['6', '&', '\\u02DB'],\r\n ['7', '/', '`'],\r\n ['8', '(', '\\u02D9'],\r\n ['9', ')', '\\u00B4'],\r\n ['0', '=', '\\u02DD'],\r\n ['\\'', '?', '\\u00A8'],\r\n ['+', '*', '\\u00B8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\\\'],\r\n ['w', 'W', '|'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u0161', '\\u0160', '\\u00F7'],\r\n ['\\u0111', '\\u0110', '\\u00D7'],\r\n ['\\u017E', '\\u017D', '\\u00A4']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F', '['],\r\n ['g', 'G', ']'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K', '\\u0142'],\r\n ['l', 'L', '\\u0141'],\r\n ['\\u010D', '\\u010C'],\r\n ['\\u0107', '\\u0106', '\\u00DF'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V', '@'],\r\n ['b', 'B', '{'],\r\n ['n', 'N', '}'],\r\n ['m', 'M', '\\u00A7'],\r\n [',', ';', '<'],\r\n ['.', ':', '>'],\r\n ['-', '_', '\\u00A9'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['bs']\r\n },\r\n 'Canadienne-fran\\u00e7aise': {\r\n 'name': 'Canadian French',\r\n 'keys': [\r\n [\r\n ['#', '|', '\\\\'],\r\n ['1', '!', '\\u00B1'],\r\n ['2', '\"', '@'],\r\n ['3', '/', '\\u00A3'],\r\n ['4', '$', '\\u00A2'],\r\n ['5', '%', '\\u00A4'],\r\n ['6', '?', '\\u00AC'],\r\n ['7', '&', '\\u00A6'],\r\n ['8', '*', '\\u00B2'],\r\n ['9', '(', '\\u00B3'],\r\n ['0', ')', '\\u00BC'],\r\n ['-', '_', '\\u00BD'],\r\n ['=', '+', '\\u00BE'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O', '\\u00A7'],\r\n ['p', 'P', '\\u00B6'],\r\n ['^', '^', '['],\r\n ['\\u00B8', '\\u00A8', ']'],\r\n ['<', '>', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':', '~'],\r\n ['`', '`', '{'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u00AB', '\\u00BB', '\\u00B0'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u00B5'],\r\n [',', '\\'', '\\u00AF'],\r\n ['.', '.', '\\u00AD'],\r\n ['\\u00E9', '\\u00C9', '\\u00B4'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fr-CA']\r\n },\r\n '\\u010cesky': {\r\n 'name': 'Czech',\r\n 'keys': [\r\n [\r\n [';', '\\u00b0', '`', '~'],\r\n ['+', '1', '!'],\r\n ['\\u011B', '2', '@'],\r\n ['\\u0161', '3', '#'],\r\n ['\\u010D', '4', '$'],\r\n ['\\u0159', '5', '%'],\r\n ['\\u017E', '6', '^'],\r\n ['\\u00FD', '7', '&'],\r\n ['\\u00E1', '8', '*'],\r\n ['\\u00ED', '9', '('],\r\n ['\\u00E9', '0', ')'],\r\n ['=', '%', '-', '_'],\r\n ['\\u00B4', '\\u02c7', '=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00FA', '/', '[', '{'],\r\n [')', '(', ']', '}'],\r\n ['\\u00A8', '\\'', '\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u016F', '\"', ';', ':'],\r\n ['\\u00A7', '!', '\\u00a4', '^'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|', '', '\\u02dd'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '?', '<', '\\u00d7'],\r\n ['.', ':', '>', '\\u00f7'],\r\n ['-', '_', '/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['cs']\r\n },\r\n 'Dansk': {\r\n 'name': 'Danish',\r\n 'keys': [\r\n [\r\n ['\\u00bd', '\\u00a7'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00a3'],\r\n ['4', '\\u00a4', '$'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['+', '?'],\r\n ['\\u00b4', '`', '|'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00e5', '\\u00c5'],\r\n ['\\u00a8', '^', '~'],\r\n ['\\'', '*']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00e6', '\\u00c6'],\r\n ['\\u00f8', '\\u00d8'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u03bc', '\\u039c'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['da']\r\n },\r\n 'Deutsch': {\r\n 'name': 'German',\r\n 'keys': [\r\n [\r\n ['^', '\\u00b0'],\r\n ['1', '!'],\r\n ['2', '\"', '\\u00b2'],\r\n ['3', '\\u00a7', '\\u00b3'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['\\u00df', '?', '\\\\'],\r\n ['\\u00b4', '`'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '@'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00fc', '\\u00dc'],\r\n ['+', '*', '~'],\r\n ['#', '\\'']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00f6', '\\u00d6'],\r\n ['\\u00e4', '\\u00c4'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\u00a6'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u00b5'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['de']\r\n },\r\n 'Dingbats': {\r\n 'name': 'Dingbats',\r\n 'keys': [\r\n [\r\n ['\\u2764', '\\u2765', '\\u2766', '\\u2767'],\r\n ['\\u278a', '\\u2780', '\\u2776', '\\u2768'],\r\n ['\\u278b', '\\u2781', '\\u2777', '\\u2769'],\r\n ['\\u278c', '\\u2782', '\\u2778', '\\u276a'],\r\n ['\\u278d', '\\u2783', '\\u2779', '\\u276b'],\r\n ['\\u278e', '\\u2784', '\\u277a', '\\u276c'],\r\n ['\\u278f', '\\u2785', '\\u277b', '\\u276d'],\r\n ['\\u2790', '\\u2786', '\\u277c', '\\u276e'],\r\n ['\\u2791', '\\u2787', '\\u277d', '\\u276f'],\r\n ['\\u2792', '\\u2788', '\\u277e', '\\u2770'],\r\n ['\\u2793', '\\u2789', '\\u277f', '\\u2771'],\r\n ['\\u2795', '\\u2796', '\\u274c', '\\u2797'],\r\n ['\\u2702', '\\u2704', '\\u2701', '\\u2703'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u2714', '\\u2705', '\\u2713'],\r\n ['\\u2718', '\\u2715', '\\u2717', '\\u2716'],\r\n ['\\u271a', '\\u2719', '\\u271b', '\\u271c'],\r\n ['\\u271d', '\\u271e', '\\u271f', '\\u2720'],\r\n ['\\u2722', '\\u2723', '\\u2724', '\\u2725'],\r\n ['\\u2726', '\\u2727', '\\u2728', '\\u2756'],\r\n ['\\u2729', '\\u272a', '\\u272d', '\\u2730'],\r\n ['\\u272c', '\\u272b', '\\u272e', '\\u272f'],\r\n ['\\u2736', '\\u2731', '\\u2732', '\\u2749'],\r\n ['\\u273b', '\\u273c', '\\u273d', '\\u273e'],\r\n ['\\u2744', '\\u2745', '\\u2746', '\\u2743'],\r\n ['\\u2733', '\\u2734', '\\u2735', '\\u2721'],\r\n ['\\u2737', '\\u2738', '\\u2739', '\\u273a']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u2799', '\\u279a', '\\u2798', '\\u2758'],\r\n ['\\u27b5', '\\u27b6', '\\u27b4', '\\u2759'],\r\n ['\\u27b8', '\\u27b9', '\\u27b7', '\\u275a'],\r\n ['\\u2794', '\\u279c', '\\u27ba', '\\u27bb'],\r\n ['\\u279d', '\\u279e', '\\u27a1', '\\u2772'],\r\n ['\\u27a9', '\\u27aa', '\\u27ab', '\\u27ac'],\r\n ['\\u27a4', '\\u27a3', '\\u27a2', '\\u279b'],\r\n ['\\u27b3', '\\u27bc', '\\u27bd', '\\u2773'],\r\n ['\\u27ad', '\\u27ae', '\\u27af', '\\u27b1'],\r\n ['\\u27a8', '\\u27a6', '\\u27a5', '\\u27a7'],\r\n ['\\u279f', '\\u27a0', '\\u27be', '\\u27b2'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u270c', '\\u270b', '\\u270a', '\\u270d'],\r\n ['\\u274f', '\\u2750', '\\u2751', '\\u2752'],\r\n ['\\u273f', '\\u2740', '\\u2741', '\\u2742'],\r\n ['\\u2747', '\\u2748', '\\u274a', '\\u274b'],\r\n ['\\u2757', '\\u2755', '\\u2762', '\\u2763'],\r\n ['\\u2753', '\\u2754', '\\u27b0', '\\u27bf'],\r\n ['\\u270f', '\\u2710', '\\u270e', '\\u2774'],\r\n ['\\u2712', '\\u2711', '\\u274d', '\\u274e'],\r\n ['\\u2709', '\\u2706', '\\u2708', '\\u2707'],\r\n ['\\u275b', '\\u275d', '\\u2761', '\\u2775'],\r\n ['\\u275c', '\\u275e', '\\u275f', '\\u2760'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk],\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ]\r\n },\r\n '\\u078b\\u07a8\\u0788\\u07ac\\u0780\\u07a8\\u0784\\u07a6\\u0790\\u07b0': {\r\n 'name': 'Divehi',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', ')'],\r\n ['0', '('],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u07ab', '\\u00d7'],\r\n ['\\u07ae', '\\u2019'],\r\n ['\\u07a7', '\\u201c'],\r\n ['\\u07a9', '/'],\r\n ['\\u07ad', ':'],\r\n ['\\u078e', '\\u07a4'],\r\n ['\\u0783', '\\u079c'],\r\n ['\\u0789', '\\u07a3'],\r\n ['\\u078c', '\\u07a0'],\r\n ['\\u0780', '\\u0799'],\r\n ['\\u078d', '\\u00f7'],\r\n ['[', '{'],\r\n [']', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u07a8', '<'],\r\n ['\\u07aa', '>'],\r\n ['\\u07b0', '.', ',', ','],\r\n ['\\u07a6', '\\u060c'],\r\n ['\\u07ac', '\"'],\r\n ['\\u0788', '\\u07a5'],\r\n ['\\u0787', '\\u07a2'],\r\n ['\\u0782', '\\u0798'],\r\n ['\\u0786', '\\u079a'],\r\n ['\\u078a', '\\u07a1'],\r\n ['\\ufdf2', '\\u061b', ';', ';'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['\\u0792', '\\u0796'],\r\n ['\\u0791', '\\u0795'],\r\n ['\\u0790', '\\u078f'],\r\n ['\\u0794', '\\u0797', '\\u200D'],\r\n ['\\u0785', '\\u079f', '\\u200C'],\r\n ['\\u078b', '\\u079b', '\\u200E'],\r\n ['\\u0784', '\\u079D', '\\u200F'],\r\n ['\\u0781', '\\\\'],\r\n ['\\u0793', '\\u079e'],\r\n ['\\u07af', '\\u061f'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['dv']\r\n },\r\n 'Dvorak': {\r\n 'name': 'Dvorak',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['[', '{'],\r\n [']', '}'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\'', '\"'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['p', 'P'],\r\n ['y', 'Y'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['c', 'C'],\r\n ['r', 'R'],\r\n ['l', 'L'],\r\n ['/', '?'],\r\n ['=', '+'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['o', 'O'],\r\n ['e', 'E'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['d', 'D'],\r\n ['h', 'H'],\r\n ['t', 'T'],\r\n ['n', 'N'],\r\n ['s', 'S'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [';', ':'],\r\n ['q', 'Q'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['x', 'X'],\r\n ['b', 'B'],\r\n ['m', 'M'],\r\n ['w', 'W'],\r\n ['v', 'V'],\r\n ['z', 'Z'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ]\r\n },\r\n '\\u0395\\u03bb\\u03bb\\u03b7\\u03bd\\u03b9\\u03ba\\u03ac': {\r\n 'name': 'Greek',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00a3'],\r\n ['5', '%', '\\u00a7'],\r\n ['6', '^', '\\u00b6'],\r\n ['7', '&'],\r\n ['8', '*', '\\u00a4'],\r\n ['9', '(', '\\u00a6'],\r\n ['0', ')', '\\u00ba'],\r\n ['-', '_', '\\u00b1'],\r\n ['=', '+', '\\u00bd'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n [';', ':'],\r\n ['\\u03c2', '^'],\r\n ['\\u03b5', '\\u0395'],\r\n ['\\u03c1', '\\u03a1'],\r\n ['\\u03c4', '\\u03a4'],\r\n ['\\u03c5', '\\u03a5'],\r\n ['\\u03b8', '\\u0398'],\r\n ['\\u03b9', '\\u0399'],\r\n ['\\u03bf', '\\u039f'],\r\n ['\\u03c0', '\\u03a0'],\r\n ['[', '{', '\\u201c'],\r\n [']', '}', '\\u201d'],\r\n ['\\\\', '|', '\\u00ac']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u03b1', '\\u0391'],\r\n ['\\u03c3', '\\u03a3'],\r\n ['\\u03b4', '\\u0394'],\r\n ['\\u03c6', '\\u03a6'],\r\n ['\\u03b3', '\\u0393'],\r\n ['\\u03b7', '\\u0397'],\r\n ['\\u03be', '\\u039e'],\r\n ['\\u03ba', '\\u039a'],\r\n ['\\u03bb', '\\u039b'],\r\n ['\\u0384', '\\u00a8', '\\u0385'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['\\u03b6', '\\u0396'],\r\n ['\\u03c7', '\\u03a7'],\r\n ['\\u03c8', '\\u03a8'],\r\n ['\\u03c9', '\\u03a9'],\r\n ['\\u03b2', '\\u0392'],\r\n ['\\u03bd', '\\u039d'],\r\n ['\\u03bc', '\\u039c'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['el']\r\n },\r\n 'Eesti': {\r\n 'name': 'Estonian',\r\n 'keys': [\r\n [\r\n ['\\u02C7', '~'],\r\n ['1', '!'],\r\n ['2', '\"', '@', '@'],\r\n ['3', '#', '\\u00A3', '\\u00A3'],\r\n ['4', '\\u00A4', '$', '$'],\r\n ['5', '%', '\\u20AC'],\r\n ['6', '&'],\r\n ['7', '/', '{', '{'],\r\n ['8', '(', '[', '['],\r\n ['9', ')', ']', ']'],\r\n ['0', '=', '}', '}'],\r\n ['+', '?', '\\\\', '\\\\'],\r\n ['\\u00B4', '`'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00FC', '\\u00DC'],\r\n ['\\u00F5', '\\u00D5', '\\u00A7', '\\u00A7'],\r\n ['\\'', '*', '\\u00BD', '\\u00BD']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u0161', '\\u0160'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00F6', '\\u00D6'],\r\n ['\\u00E4', '\\u00C4', '^', '^'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|', '|'],\r\n ['z', 'Z', '\\u017E', '\\u017D'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['et']\r\n },\r\n 'Espa\\u00f1ol': {\r\n 'name': 'Spanish',\r\n 'keys': [\r\n [\r\n ['\\u00ba', '\\u00aa', '\\\\'],\r\n ['1', '!', '|'],\r\n ['2', '\"', '@'],\r\n ['3', '\\'', '#'],\r\n ['4', '$', '~'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '&', '\\u00ac'],\r\n ['7', '/'],\r\n ['8', '('],\r\n ['9', ')'],\r\n ['0', '='],\r\n ['\\'', '?'],\r\n ['\\u00a1', '\\u00bf'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['`', '^', '['],\r\n ['+', '*', ']'],\r\n ['\\u00e7', '\\u00c7', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00f1', '\\u00d1'],\r\n ['\\u00b4', '\\u00a8', '{'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['es']\r\n },\r\n '\\u062f\\u0631\\u06cc': {\r\n 'name': 'Dari',\r\n 'keys': [\r\n [\r\n ['\\u200D', '\\u00F7', '~'],\r\n ['\\u06F1', '!', '`'],\r\n ['\\u06F2', '\\u066C', '@'],\r\n ['\\u06F3', '\\u066B', '#'],\r\n ['\\u06F4', '\\u060B', '$'],\r\n ['\\u06F5', '\\u066A', '%'],\r\n ['\\u06F6', '\\u00D7', '^'],\r\n ['\\u06F7', '\\u060C', '&'],\r\n ['\\u06F8', '*', '\\u2022'],\r\n ['\\u06F9', ')', '\\u200E'],\r\n ['\\u06F0', '(', '\\u200F'],\r\n ['-', '\\u0640', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0636', '\\u0652', '\\u00B0'],\r\n ['\\u0635', '\\u064C'],\r\n ['\\u062B', '\\u064D', '\\u20AC'],\r\n ['\\u0642', '\\u064B', '\\uFD3E'],\r\n ['\\u0641', '\\u064F', '\\uFD3F'],\r\n ['\\u063A', '\\u0650', '\\u0656'],\r\n ['\\u0639', '\\u064E', '\\u0659'],\r\n ['\\u0647', '\\u0651', '\\u0655'],\r\n ['\\u062E', ']', '\\''],\r\n ['\\u062D', '[', '\"'],\r\n ['\\u062C', '}', '\\u0681'],\r\n ['\\u0686', '{', '\\u0685'],\r\n ['\\\\', '|', '?']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0634', '\\u0624', '\\u069A'],\r\n ['\\u0633', '\\u0626', '\\u06CD'],\r\n ['\\u06CC', '\\u064A', '\\u0649'],\r\n ['\\u0628', '\\u0625', '\\u06D0'],\r\n ['\\u0644', '\\u0623', '\\u06B7'],\r\n ['\\u0627', '\\u0622', '\\u0671'],\r\n ['\\u062A', '\\u0629', '\\u067C'],\r\n ['\\u0646', '\\u00BB', '\\u06BC'],\r\n ['\\u0645', '\\u00AB', '\\u06BA'],\r\n ['\\u06A9', ':', ';'],\r\n ['\\u06AF', '\\u061B', '\\u06AB'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0638', '\\u0643', '\\u06D2'],\r\n ['\\u0637', '\\u0653', '\\u0691'],\r\n ['\\u0632', '\\u0698', '\\u0696'],\r\n ['\\u0631', '\\u0670', '\\u0693'],\r\n ['\\u0630', '\\u200C', '\\u0688'],\r\n ['\\u062F', '\\u0654', '\\u0689'],\r\n ['\\u067E', '\\u0621', '\\u0679'],\r\n ['\\u0648', '>', ','],\r\n ['.', '<', '\\u06C7'],\r\n ['/', '\\u061F', '\\u06C9'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fa-AF']\r\n },\r\n '\\u0641\\u0627\\u0631\\u0633\\u06cc': {\r\n 'name': 'Farsi',\r\n 'keys': [\r\n [\r\n ['\\u067e', '\\u0651 '],\r\n ['1', '!', '\\u00a1', '\\u00b9'],\r\n ['2', '@', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00a4', '\\u00a3'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '^', '\\u00bc'],\r\n ['7', '&', '\\u00bd'],\r\n ['8', '*', '\\u00be'],\r\n ['9', '(', '\\u2018'],\r\n ['0', ')', '\\u2019'],\r\n ['-', '_', '\\u00a5'],\r\n ['=', '+', '\\u00d7', '\\u00f7'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0636', '\\u064e'],\r\n ['\\u0635', '\\u064b'],\r\n ['\\u062b', '\\u064f'],\r\n ['\\u0642', '\\u064c'],\r\n ['\\u0641', '\\u0644'],\r\n ['\\u063a', '\\u0625'],\r\n ['\\u0639', '\\u2018'],\r\n ['\\u0647', '\\u00f7'],\r\n ['\\u062e', '\\u00d7'],\r\n ['\\u062d', '\\u061b'],\r\n ['\\u062c', '<'],\r\n ['\\u0686', '>'],\r\n ['\\u0698', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0634', '\\u0650'],\r\n ['\\u0633', '\\u064d'],\r\n ['\\u064a', ']'],\r\n ['\\u0628', '['],\r\n ['\\u0644', '\\u0644'],\r\n ['\\u0627', '\\u0623'],\r\n ['\\u062a', '\\u0640'],\r\n ['\\u0646', '\\u060c'],\r\n ['\\u0645', '\\\\'],\r\n ['\\u06af', ':'],\r\n ['\\u0643', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0638', '~'],\r\n ['\\u0637', '\\u0652'],\r\n ['\\u0632', '}'],\r\n ['\\u0631', '{'],\r\n ['\\u0630', '\\u0644'],\r\n ['\\u062f', '\\u0622'],\r\n ['\\u0626', '\\u0621'],\r\n ['\\u0648', ','],\r\n ['.', '.'],\r\n ['/', '\\u061f'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['fa']\r\n },\r\n 'F\\u00f8royskt': {\r\n 'name': 'Faeroese',\r\n 'keys': [\r\n [\r\n ['\\u00BD', '\\u00A7'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00A3'],\r\n ['4', '\\u00A4', '$'],\r\n ['5', '%', '\\u20AC'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['+', '?'],\r\n ['\\u00B4', '`', '|'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00E5', '\\u00C5', '\\u00A8'],\r\n ['\\u00F0', '\\u00D0', '~'],\r\n ['\\'', '*']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00E6', '\\u00C6'],\r\n ['\\u00F8', '\\u00D8', '^'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u00B5'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fo']\r\n },\r\n 'Fran\\u00e7ais': {\r\n 'name': 'French',\r\n 'keys': [\r\n [\r\n ['\\u00b2', '\\u00b3'],\r\n ['&', '1'],\r\n ['\\u00e9', '2', '~'],\r\n ['\"', '3', '#'],\r\n ['\\'', '4', '{'],\r\n ['(', '5', '['],\r\n ['-', '6', '|'],\r\n ['\\u00e8', '7', '`'],\r\n ['_', '8', '\\\\'],\r\n ['\\u00e7', '9', '^'],\r\n ['\\u00e0', '0', '@'],\r\n [')', '\\u00b0', ']'],\r\n ['=', '+', '}'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['a', 'A'],\r\n ['z', 'Z'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['^', '\\u00a8'],\r\n ['$', '\\u00a3', '\\u00a4'],\r\n ['*', '\\u03bc']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['q', 'Q'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['m', 'M'],\r\n ['\\u00f9', '%'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['w', 'W'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n [',', '?'],\r\n [';', '.'],\r\n [':', '/'],\r\n ['!', '\\u00a7'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fr']\r\n },\r\n 'Gaeilge': {\r\n 'name': 'Irish / Gaelic',\r\n 'keys': [\r\n [\r\n ['`', '\\u00AC', '\\u00A6', '\\u00A6'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u00A3'],\r\n ['4', '$', '\\u20AC'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u00E9', '\\u00C9'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y', '\\u00FD', '\\u00DD'],\r\n ['u', 'U', '\\u00FA', '\\u00DA'],\r\n ['i', 'I', '\\u00ED', '\\u00CD'],\r\n ['o', 'O', '\\u00F3', '\\u00D3'],\r\n ['p', 'P'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['#', '~']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00E1', '\\u00C1'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':'],\r\n ['\\'', '@', '\\u00B4', '`'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ga', 'gd']\r\n },\r\n '\\u0a97\\u0ac1\\u0a9c\\u0ab0\\u0abe\\u0aa4\\u0ac0': {\r\n 'name': 'Gujarati',\r\n 'keys': [\r\n [\r\n [''],\r\n ['1', '\\u0A8D', '\\u0AE7'],\r\n ['2', '\\u0AC5', '\\u0AE8'],\r\n ['3', '\\u0ACD\\u0AB0', '\\u0AE9'],\r\n ['4', '\\u0AB0\\u0ACD', '\\u0AEA'],\r\n ['5', '\\u0A9C\\u0ACD\\u0A9E', '\\u0AEB'],\r\n ['6', '\\u0AA4\\u0ACD\\u0AB0', '\\u0AEC'],\r\n ['7', '\\u0A95\\u0ACD\\u0AB7', '\\u0AED'],\r\n ['8', '\\u0AB6\\u0ACD\\u0AB0', '\\u0AEE'],\r\n ['9', '(', '\\u0AEF'],\r\n ['0', ')', '\\u0AE6'],\r\n ['-', '\\u0A83'],\r\n ['\\u0AC3', '\\u0A8B', '\\u0AC4', '\\u0AE0'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0ACC', '\\u0A94'],\r\n ['\\u0AC8', '\\u0A90'],\r\n ['\\u0ABE', '\\u0A86'],\r\n ['\\u0AC0', '\\u0A88'],\r\n ['\\u0AC2', '\\u0A8A'],\r\n ['\\u0AAC', '\\u0AAD'],\r\n ['\\u0AB9', '\\u0A99'],\r\n ['\\u0A97', '\\u0A98'],\r\n ['\\u0AA6', '\\u0AA7'],\r\n ['\\u0A9C', '\\u0A9D'],\r\n ['\\u0AA1', '\\u0AA2'],\r\n ['\\u0ABC', '\\u0A9E'],\r\n ['\\u0AC9', '\\u0A91']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0ACB', '\\u0A93'],\r\n ['\\u0AC7', '\\u0A8F'],\r\n ['\\u0ACD', '\\u0A85'],\r\n ['\\u0ABF', '\\u0A87'],\r\n ['\\u0AC1', '\\u0A89'],\r\n ['\\u0AAA', '\\u0AAB'],\r\n ['\\u0AB0'],\r\n ['\\u0A95', '\\u0A96'],\r\n ['\\u0AA4', '\\u0AA5'],\r\n ['\\u0A9A', '\\u0A9B'],\r\n ['\\u0A9F', '\\u0AA0'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [''],\r\n ['\\u0A82', '\\u0A81', '', '\\u0AD0'],\r\n ['\\u0AAE', '\\u0AA3'],\r\n ['\\u0AA8'],\r\n ['\\u0AB5'],\r\n ['\\u0AB2', '\\u0AB3'],\r\n ['\\u0AB8', '\\u0AB6'],\r\n [',', '\\u0AB7'],\r\n ['.', '\\u0964', '\\u0965', '\\u0ABD'],\r\n ['\\u0AAF'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['gu']\r\n },\r\n '\\u05e2\\u05d1\\u05e8\\u05d9\\u05ea': {\r\n 'name': 'Hebrew',\r\n 'keys': [\r\n [\r\n ['~', '`'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$', '\\u20aa'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', ')'],\r\n ['0', '('],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['/', 'Q'],\r\n ['\\'', 'W'],\r\n ['\\u05e7', 'E', '\\u20ac'],\r\n ['\\u05e8', 'R'],\r\n ['\\u05d0', 'T'],\r\n ['\\u05d8', 'Y'],\r\n ['\\u05d5', 'U', '\\u05f0'],\r\n ['\\u05df', 'I'],\r\n ['\\u05dd', 'O'],\r\n ['\\u05e4', 'P'],\r\n ['\\\\', '|'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u05e9', 'A'],\r\n ['\\u05d3', 'S'],\r\n ['\\u05d2', 'D'],\r\n ['\\u05db', 'F'],\r\n ['\\u05e2', 'G'],\r\n ['\\u05d9', 'H', '\\u05f2'],\r\n ['\\u05d7', 'J', '\\u05f1'],\r\n ['\\u05dc', 'K'],\r\n ['\\u05da', 'L'],\r\n ['\\u05e3', ':'],\r\n [',', '\"'],\r\n [']', '}'],\r\n ['[', '{']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u05d6', 'Z'],\r\n ['\\u05e1', 'X'],\r\n ['\\u05d1', 'C'],\r\n ['\\u05d4', 'V'],\r\n ['\\u05e0', 'B'],\r\n ['\\u05de', 'N'],\r\n ['\\u05e6', 'M'],\r\n ['\\u05ea', '>'],\r\n ['\\u05e5', '<'],\r\n ['.', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['he']\r\n },\r\n '\\u0926\\u0947\\u0935\\u0928\\u093e\\u0917\\u0930\\u0940': {\r\n 'name': 'Devanagari',\r\n 'keys': [\r\n [\r\n ['\\u094A', '\\u0912'],\r\n ['1', '\\u090D', '\\u0967'],\r\n ['2', '\\u0945', '\\u0968'],\r\n ['3', '\\u094D\\u0930', '\\u0969'],\r\n ['4', '\\u0930\\u094D', '\\u096A'],\r\n ['5', '\\u091C\\u094D\\u091E', '\\u096B'],\r\n ['6', '\\u0924\\u094D\\u0930', '\\u096C'],\r\n ['7', '\\u0915\\u094D\\u0937', '\\u096D'],\r\n ['8', '\\u0936\\u094D\\u0930', '\\u096E'],\r\n ['9', '(', '\\u096F'],\r\n ['0', ')', '\\u0966'],\r\n ['-', '\\u0903'],\r\n ['\\u0943', '\\u090B', '\\u0944', '\\u0960'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u094C', '\\u0914'],\r\n ['\\u0948', '\\u0910'],\r\n ['\\u093E', '\\u0906'],\r\n ['\\u0940', '\\u0908', '\\u0963', '\\u0961'],\r\n ['\\u0942', '\\u090A'],\r\n ['\\u092C', '\\u092D'],\r\n ['\\u0939', '\\u0919'],\r\n ['\\u0917', '\\u0918', '\\u095A'],\r\n ['\\u0926', '\\u0927'],\r\n ['\\u091C', '\\u091D', '\\u095B'],\r\n ['\\u0921', '\\u0922', '\\u095C', '\\u095D'],\r\n ['\\u093C', '\\u091E'],\r\n ['\\u0949', '\\u0911']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u094B', '\\u0913'],\r\n ['\\u0947', '\\u090F'],\r\n ['\\u094D', '\\u0905'],\r\n ['\\u093F', '\\u0907', '\\u0962', '\\u090C'],\r\n ['\\u0941', '\\u0909'],\r\n ['\\u092A', '\\u092B', '', '\\u095E'],\r\n ['\\u0930', '\\u0931'],\r\n ['\\u0915', '\\u0916', '\\u0958', '\\u0959'],\r\n ['\\u0924', '\\u0925'],\r\n ['\\u091A', '\\u091B', '\\u0952'],\r\n ['\\u091F', '\\u0920', '', '\\u0951'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0946', '\\u090E', '\\u0953'],\r\n ['\\u0902', '\\u0901', '', '\\u0950'],\r\n ['\\u092E', '\\u0923', '\\u0954'],\r\n ['\\u0928', '\\u0929'],\r\n ['\\u0935', '\\u0934'],\r\n ['\\u0932', '\\u0933'],\r\n ['\\u0938', '\\u0936'],\r\n [',', '\\u0937', '\\u0970'],\r\n ['.', '\\u0964', '\\u0965', '\\u093D'],\r\n ['\\u092F', '\\u095F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['hi-DEVA']\r\n },\r\n '\\u0939\\u093f\\u0902\\u0926\\u0940': {\r\n 'name': 'Hindi',\r\n 'keys': [\r\n [\r\n ['\\u200d', '\\u200c', '`', '~'],\r\n ['1', '\\u090D', '\\u0967', '!'],\r\n ['2', '\\u0945', '\\u0968', '@'],\r\n ['3', '\\u094D\\u0930', '\\u0969', '#'],\r\n ['4', '\\u0930\\u094D', '\\u096A', '$'],\r\n ['5', '\\u091C\\u094D\\u091E', '\\u096B', '%'],\r\n ['6', '\\u0924\\u094D\\u0930', '\\u096C', '^'],\r\n ['7', '\\u0915\\u094D\\u0937', '\\u096D', '&'],\r\n ['8', '\\u0936\\u094D\\u0930', '\\u096E', '*'],\r\n ['9', '(', '\\u096F', '('],\r\n ['0', ')', '\\u0966', ')'],\r\n ['-', '\\u0903', '-', '_'],\r\n ['\\u0943', '\\u090B', '=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u094C', '\\u0914'],\r\n ['\\u0948', '\\u0910'],\r\n ['\\u093E', '\\u0906'],\r\n ['\\u0940', '\\u0908'],\r\n ['\\u0942', '\\u090A'],\r\n ['\\u092C', '\\u092D'],\r\n ['\\u0939', '\\u0919'],\r\n ['\\u0917', '\\u0918'],\r\n ['\\u0926', '\\u0927'],\r\n ['\\u091C', '\\u091D'],\r\n ['\\u0921', '\\u0922', '[', '{'],\r\n ['\\u093C', '\\u091E', ']', '}'],\r\n ['\\u0949', '\\u0911', '\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u094B', '\\u0913'],\r\n ['\\u0947', '\\u090F'],\r\n ['\\u094D', '\\u0905'],\r\n ['\\u093F', '\\u0907'],\r\n ['\\u0941', '\\u0909'],\r\n ['\\u092A', '\\u092B'],\r\n ['\\u0930', '\\u0931'],\r\n ['\\u0915', '\\u0916'],\r\n ['\\u0924', '\\u0925'],\r\n ['\\u091A', '\\u091B', ';', ':'],\r\n ['\\u091F', '\\u0920', '\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [''],\r\n ['\\u0902', '\\u0901', '', '\\u0950'],\r\n ['\\u092E', '\\u0923'],\r\n ['\\u0928'],\r\n ['\\u0935'],\r\n ['\\u0932', '\\u0933'],\r\n ['\\u0938', '\\u0936'],\r\n [',', '\\u0937', ',', '<'],\r\n ['.', '\\u0964', '.', '>'],\r\n ['\\u092F', '\\u095F', '/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['hi']\r\n },\r\n '\\u0540\\u0561\\u0575\\u0565\\u0580\\u0565\\u0576 \\u0561\\u0580\\u0565\\u0582\\u0574\\u0578\\u0582\\u057f\\u0584': {\r\n 'name': 'Western Armenian',\r\n 'keys': [\r\n [\r\n ['\\u055D', '\\u055C'],\r\n [':', '1'],\r\n ['\\u0571', '\\u0541'],\r\n ['\\u0575', '\\u0545'],\r\n ['\\u055B', '3'],\r\n [',', '4'],\r\n ['-', '9'],\r\n ['.', '\\u0587'],\r\n ['\\u00AB', '('],\r\n ['\\u00BB', ')'],\r\n ['\\u0585', '\\u0555'],\r\n ['\\u057C', '\\u054C'],\r\n ['\\u056A', '\\u053A'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u056D', '\\u053D'],\r\n ['\\u057E', '\\u054E'],\r\n ['\\u0567', '\\u0537'],\r\n ['\\u0580', '\\u0550'],\r\n ['\\u0564', '\\u0534'],\r\n ['\\u0565', '\\u0535'],\r\n ['\\u0568', '\\u0538'],\r\n ['\\u056B', '\\u053B'],\r\n ['\\u0578', '\\u0548'],\r\n ['\\u0562', '\\u0532'],\r\n ['\\u0579', '\\u0549'],\r\n ['\\u057B', '\\u054B'],\r\n ['\\'', '\\u055E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0561', '\\u0531'],\r\n ['\\u057D', '\\u054D'],\r\n ['\\u057F', '\\u054F'],\r\n ['\\u0586', '\\u0556'],\r\n ['\\u056F', '\\u053F'],\r\n ['\\u0570', '\\u0540'],\r\n ['\\u0573', '\\u0543'],\r\n ['\\u0584', '\\u0554'],\r\n ['\\u056C', '\\u053C'],\r\n ['\\u0569', '\\u0539'],\r\n ['\\u0583', '\\u0553'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0566', '\\u0536'],\r\n ['\\u0581', '\\u0551'],\r\n ['\\u0563', '\\u0533'],\r\n ['\\u0582', '\\u0552'],\r\n ['\\u057A', '\\u054A'],\r\n ['\\u0576', '\\u0546'],\r\n ['\\u0574', '\\u0544'],\r\n ['\\u0577', '\\u0547'],\r\n ['\\u0572', '\\u0542'],\r\n ['\\u056E', '\\u053E'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['hy-AREVMATA']\r\n },\r\n '\\u0540\\u0561\\u0575\\u0565\\u0580\\u0565\\u0576 \\u0561\\u0580\\u0565\\u0582\\u0565\\u056c\\u0584': {\r\n 'name': 'Eastern Armenian',\r\n 'keys': [\r\n [\r\n ['\\u055D', '\\u055C'],\r\n [':', '1'],\r\n ['\\u0571', '\\u0541'],\r\n ['\\u0575', '\\u0545'],\r\n ['\\u055B', '3'],\r\n [',', '4'],\r\n ['-', '9'],\r\n ['.', '\\u0587'],\r\n ['\\u00AB', '('],\r\n ['\\u00BB', ')'],\r\n ['\\u0585', '\\u0555'],\r\n ['\\u057C', '\\u054C'],\r\n ['\\u056A', '\\u053A'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u056D', '\\u053D'],\r\n ['\\u0582', '\\u0552'],\r\n ['\\u0567', '\\u0537'],\r\n ['\\u0580', '\\u0550'],\r\n ['\\u057F', '\\u054F'],\r\n ['\\u0565', '\\u0535'],\r\n ['\\u0568', '\\u0538'],\r\n ['\\u056B', '\\u053B'],\r\n ['\\u0578', '\\u0548'],\r\n ['\\u057A', '\\u054A'],\r\n ['\\u0579', '\\u0549'],\r\n ['\\u057B', '\\u054B'],\r\n ['\\'', '\\u055E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0561', '\\u0531'],\r\n ['\\u057D', '\\u054D'],\r\n ['\\u0564', '\\u0534'],\r\n ['\\u0586', '\\u0556'],\r\n ['\\u0584', '\\u0554'],\r\n ['\\u0570', '\\u0540'],\r\n ['\\u0573', '\\u0543'],\r\n ['\\u056F', '\\u053F'],\r\n ['\\u056C', '\\u053C'],\r\n ['\\u0569', '\\u0539'],\r\n ['\\u0583', '\\u0553'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0566', '\\u0536'],\r\n ['\\u0581', '\\u0551'],\r\n ['\\u0563', '\\u0533'],\r\n ['\\u057E', '\\u054E'],\r\n ['\\u0562', '\\u0532'],\r\n ['\\u0576', '\\u0546'],\r\n ['\\u0574', '\\u0544'],\r\n ['\\u0577', '\\u0547'],\r\n ['\\u0572', '\\u0542'],\r\n ['\\u056E', '\\u053E'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['hy']\r\n },\r\n '\\u00cdslenska': {\r\n 'name': 'Icelandic',\r\n 'keys': [\r\n [\r\n ['\\u00B0', '\\u00A8', '\\u00B0'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%', '\\u20AC'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['\\u00F6', '\\u00D6', '\\\\'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '@'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00F0', '\\u00D0'],\r\n ['\\'', '?', '~'],\r\n ['+', '*', '`']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00E6', '\\u00C6'],\r\n ['\\u00B4', '\\'', '^'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u00B5'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['\\u00FE', '\\u00DE'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['is']\r\n },\r\n 'Italiano': {\r\n 'name': 'Italian',\r\n 'keys': [\r\n [\r\n ['\\\\', '|'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u00a3'],\r\n ['4', '$', '\\u20ac'],\r\n ['5', '%'],\r\n ['6', '&'],\r\n ['7', '/'],\r\n ['8', '('],\r\n ['9', ')'],\r\n ['0', '='],\r\n ['\\'', '?'],\r\n ['\\u00ec', '^'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00e8', '\\u00e9', '[', '{'],\r\n ['+', '*', ']', '}'],\r\n ['\\u00f9', '\\u00a7']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00f2', '\\u00e7', '@'],\r\n ['\\u00e0', '\\u00b0', '#'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['it']\r\n },\r\n '\\u65e5\\u672c\\u8a9e': {\r\n 'name': 'Japanese Hiragana/Katakana',\r\n 'keys': [\r\n [\r\n ['\\uff5e'],\r\n ['\\u306c', '\\u30cc'],\r\n ['\\u3075', '\\u30d5'],\r\n ['\\u3042', '\\u30a2', '\\u3041', '\\u30a1'],\r\n ['\\u3046', '\\u30a6', '\\u3045', '\\u30a5'],\r\n ['\\u3048', '\\u30a8', '\\u3047', '\\u30a7'],\r\n ['\\u304a', '\\u30aa', '\\u3049', '\\u30a9'],\r\n ['\\u3084', '\\u30e4', '\\u3083', '\\u30e3'],\r\n ['\\u3086', '\\u30e6', '\\u3085', '\\u30e5'],\r\n ['\\u3088', '\\u30e8', '\\u3087', '\\u30e7'],\r\n ['\\u308f', '\\u30ef', '\\u3092', '\\u30f2'],\r\n ['\\u307b', '\\u30db', '\\u30fc', '\\uff1d'],\r\n ['\\u3078', '\\u30d8', '\\uff3e', '\\uff5e'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u305f', '\\u30bf'],\r\n ['\\u3066', '\\u30c6'],\r\n ['\\u3044', '\\u30a4', '\\u3043', '\\u30a3'],\r\n ['\\u3059', '\\u30b9'],\r\n ['\\u304b', '\\u30ab'],\r\n ['\\u3093', '\\u30f3'],\r\n ['\\u306a', '\\u30ca'],\r\n ['\\u306b', '\\u30cb'],\r\n ['\\u3089', '\\u30e9'],\r\n ['\\u305b', '\\u30bb'],\r\n ['\\u3001', '\\u3001', '\\uff20', '\\u2018'],\r\n ['\\u3002', '\\u3002', '\\u300c', '\\uff5b'],\r\n ['\\uffe5', '', '', '\\uff0a'],\r\n ['\\u309B', '\"', '\\uffe5', '\\uff5c']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u3061', '\\u30c1'],\r\n ['\\u3068', '\\u30c8'],\r\n ['\\u3057', '\\u30b7'],\r\n ['\\u306f', '\\u30cf'],\r\n ['\\u304d', '\\u30ad'],\r\n ['\\u304f', '\\u30af'],\r\n ['\\u307e', '\\u30de'],\r\n ['\\u306e', '\\u30ce'],\r\n ['\\u308c', '\\u30ec', '\\uff1b', '\\uff0b'],\r\n ['\\u3051', '\\u30b1', '\\uff1a', '\\u30f6'],\r\n ['\\u3080', '\\u30e0', '\\u300d', '\\uff5d'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u3064', '\\u30c4'],\r\n ['\\u3055', '\\u30b5'],\r\n ['\\u305d', '\\u30bd'],\r\n ['\\u3072', '\\u30d2'],\r\n ['\\u3053', '\\u30b3'],\r\n ['\\u307f', '\\u30df'],\r\n ['\\u3082', '\\u30e2'],\r\n ['\\u306d', '\\u30cd', '\\u3001', '\\uff1c'],\r\n ['\\u308b', '\\u30eb', '\\u3002', '\\uff1e'],\r\n ['\\u3081', '\\u30e1', '\\u30fb', '\\uff1f'],\r\n ['\\u308d', '\\u30ed', '', '\\uff3f'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk],\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['ja']\r\n },\r\n '\\u10e5\\u10d0\\u10e0\\u10d7\\u10e3\\u10da\\u10d8': {\r\n 'name': 'Georgian',\r\n 'keys': [\r\n [\r\n ['\\u201E', '\\u201C'],\r\n ['!', '1'],\r\n ['?', '2'],\r\n ['\\u2116', '3'],\r\n ['\\u00A7', '4'],\r\n ['%', '5'],\r\n [':', '6'],\r\n ['.', '7'],\r\n [';', '8'],\r\n [',', '9'],\r\n ['/', '0'],\r\n ['\\u2013', '-'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u10E6', '\\u10E6'],\r\n ['\\u10EF', '\\u10EF'],\r\n ['\\u10E3', '\\u10E3'],\r\n ['\\u10D9', '\\u10D9'],\r\n ['\\u10D4', '\\u10D4', '\\u10F1'],\r\n ['\\u10DC', '\\u10DC'],\r\n ['\\u10D2', '\\u10D2'],\r\n ['\\u10E8', '\\u10E8'],\r\n ['\\u10EC', '\\u10EC'],\r\n ['\\u10D6', '\\u10D6'],\r\n ['\\u10EE', '\\u10EE', '\\u10F4'],\r\n ['\\u10EA', '\\u10EA'],\r\n ['(', ')']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u10E4', '\\u10E4', '\\u10F6'],\r\n ['\\u10EB', '\\u10EB'],\r\n ['\\u10D5', '\\u10D5', '\\u10F3'],\r\n ['\\u10D7', '\\u10D7'],\r\n ['\\u10D0', '\\u10D0'],\r\n ['\\u10DE', '\\u10DE'],\r\n ['\\u10E0', '\\u10E0'],\r\n ['\\u10DD', '\\u10DD'],\r\n ['\\u10DA', '\\u10DA'],\r\n ['\\u10D3', '\\u10D3'],\r\n ['\\u10DF', '\\u10DF'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u10ED', '\\u10ED'],\r\n ['\\u10E9', '\\u10E9'],\r\n ['\\u10E7', '\\u10E7'],\r\n ['\\u10E1', '\\u10E1'],\r\n ['\\u10DB', '\\u10DB'],\r\n ['\\u10D8', '\\u10D8', '\\u10F2'],\r\n ['\\u10E2', '\\u10E2'],\r\n ['\\u10E5', '\\u10E5'],\r\n ['\\u10D1', '\\u10D1'],\r\n ['\\u10F0', '\\u10F0', '\\u10F5'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ka']\r\n },\r\n '\\u049a\\u0430\\u0437\\u0430\\u049b\\u0448\\u0430': {\r\n 'name': 'Kazakh',\r\n 'keys': [\r\n [\r\n ['(', ')'],\r\n ['\"', '!'],\r\n ['\\u04d9', '\\u04d8'],\r\n ['\\u0456', '\\u0406'],\r\n ['\\u04a3', '\\u04a2'],\r\n ['\\u0493', '\\u0492'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['\\u04af', '\\u04ae'],\r\n ['\\u04b1', '\\u04b0'],\r\n ['\\u049b', '\\u049a'],\r\n ['\\u04e9', '\\u04e8'],\r\n ['\\u04bb', '\\u04ba'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044D', '\\u042D'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044E', '\\u042E'],\r\n ['\\u2116', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['kk']\r\n },\r\n '\\u1797\\u17b6\\u179f\\u17b6\\u1781\\u17d2\\u1798\\u17c2\\u179a': {\r\n 'name': 'Khmer',\r\n 'keys': [\r\n [\r\n ['\\u00AB', '\\u00BB', '\\u200D'],\r\n ['\\u17E1', '!', '\\u200C', '\\u17F1'],\r\n ['\\u17E2', '\\u17D7', '@', '\\u17F2'],\r\n ['\\u17E3', '\"', '\\u17D1', '\\u17F3'],\r\n ['\\u17E4', '\\u17DB', '$', '\\u17F4'],\r\n ['\\u17E5', '%', '\\u20AC', '\\u17F5'],\r\n ['\\u17E6', '\\u17CD', '\\u17D9', '\\u17F6'],\r\n ['\\u17E7', '\\u17D0', '\\u17DA', '\\u17F7'],\r\n ['\\u17E8', '\\u17CF', '*', '\\u17F8'],\r\n ['\\u17E9', '(', '{', '\\u17F9'],\r\n ['\\u17E0', ')', '}', '\\u17F0'],\r\n ['\\u17A5', '\\u17CC', 'x'],\r\n ['\\u17B2', '=', '\\u17CE'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u1786', '\\u1788', '\\u17DC', '\\u19E0'],\r\n ['\\u17B9', '\\u17BA', '\\u17DD', '\\u19E1'],\r\n ['\\u17C1', '\\u17C2', '\\u17AF', '\\u19E2'],\r\n ['\\u179A', '\\u17AC', '\\u17AB', '\\u19E3'],\r\n ['\\u178F', '\\u1791', '\\u17A8', '\\u19E4'],\r\n ['\\u1799', '\\u17BD', '\\u1799\\u17BE\\u1784', '\\u19E5'],\r\n ['\\u17BB', '\\u17BC', '', '\\u19E6'],\r\n ['\\u17B7', '\\u17B8', '\\u17A6', '\\u19E7'],\r\n ['\\u17C4', '\\u17C5', '\\u17B1', '\\u19E8'],\r\n ['\\u1795', '\\u1797', '\\u17B0', '\\u19E9'],\r\n ['\\u17C0', '\\u17BF', '\\u17A9', '\\u19EA'],\r\n ['\\u17AA', '\\u17A7', '\\u17B3', '\\u19EB'],\r\n ['\\u17AE', '\\u17AD', '\\\\']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u17B6', '\\u17B6\\u17C6', '\\u17B5', '\\u19EC'],\r\n ['\\u179F', '\\u17C3', '', '\\u19ED'],\r\n ['\\u178A', '\\u178C', '\\u17D3', '\\u19EE'],\r\n ['\\u1790', '\\u1792', '', '\\u19EF'],\r\n ['\\u1784', '\\u17A2', '\\u17A4', '\\u19F0'],\r\n ['\\u17A0', '\\u17C7', '\\u17A3', '\\u19F1'],\r\n ['\\u17D2', '\\u1789', '\\u17B4', '\\u19F2'],\r\n ['\\u1780', '\\u1782', '\\u179D', '\\u19F3'],\r\n ['\\u179B', '\\u17A1', '\\u17D8', '\\u19F4'],\r\n ['\\u17BE', '\\u17C4\\u17C7', '\\u17D6', '\\u19F5'],\r\n ['\\u17CB', '\\u17C9', '\\u17C8', '\\u19F6'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u178B', '\\u178D', '|', '\\u19F7'],\r\n ['\\u1781', '\\u1783', '\\u1781\\u17D2\\u1789\\u17BB\\u17C6', '\\u19F8'],\r\n ['\\u1785', '\\u1787', '-', '\\u19F9'],\r\n ['\\u179C', '\\u17C1\\u17C7', '+', '\\u19FA'],\r\n ['\\u1794', '\\u1796', '\\u179E', '\\u19FB'],\r\n ['\\u1793', '\\u178E', '[', '\\u19FC'],\r\n ['\\u1798', '\\u17C6', ']', '\\u19FD'],\r\n ['\\u17BB\\u17C6', '\\u17BB\\u17C7', ',', '\\u19FE'],\r\n ['\\u17D4', '\\u17D5', '.', '\\u19FF'],\r\n ['\\u17CA', '?', '/'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n ['\\u200B', ' ', '\\u00A0', ' '],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['km']\r\n },\r\n '\\u0c95\\u0ca8\\u0ccd\\u0ca8\\u0ca1': {\r\n 'name': 'Kannada',\r\n 'keys': [\r\n [\r\n ['\\u0CCA', '\\u0C92'],\r\n ['1', '', '\\u0CE7'],\r\n ['2', '', '\\u0CE8'],\r\n ['3', '\\u0CCD\\u0CB0', '\\u0CE9'],\r\n ['4', '\\u0CB0\\u0CCD', '\\u0CEA'],\r\n ['5', '\\u0C9C\\u0CCD\\u0C9E', '\\u0CEB'],\r\n ['6', '\\u0CA4\\u0CCD\\u0CB0', '\\u0CEC'],\r\n ['7', '\\u0C95\\u0CCD\\u0CB7', '\\u0CED'],\r\n ['8', '\\u0CB6\\u0CCD\\u0CB0', '\\u0CEE'],\r\n ['9', '(', '\\u0CEF'],\r\n ['0', ')', '\\u0CE6'],\r\n ['-', '\\u0C83'],\r\n ['\\u0CC3', '\\u0C8B', '\\u0CC4', '\\u0CE0'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0CCC', '\\u0C94'],\r\n ['\\u0CC8', '\\u0C90', '\\u0CD6'],\r\n ['\\u0CBE', '\\u0C86'],\r\n ['\\u0CC0', '\\u0C88', '', '\\u0CE1'],\r\n ['\\u0CC2', '\\u0C8A'],\r\n ['\\u0CAC', '\\u0CAD'],\r\n ['\\u0CB9', '\\u0C99'],\r\n ['\\u0C97', '\\u0C98'],\r\n ['\\u0CA6', '\\u0CA7'],\r\n ['\\u0C9C', '\\u0C9D'],\r\n ['\\u0CA1', '\\u0CA2'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0CCB', '\\u0C93'],\r\n ['\\u0CC7', '\\u0C8F', '\\u0CD5'],\r\n ['\\u0CCD', '\\u0C85'],\r\n ['\\u0CBF', '\\u0C87', '', '\\u0C8C'],\r\n ['\\u0CC1', '\\u0C89'],\r\n ['\\u0CAA', '\\u0CAB', '', '\\u0CDE'],\r\n ['\\u0CB0', '\\u0CB1'],\r\n ['\\u0C95', '\\u0C96'],\r\n ['\\u0CA4', '\\u0CA5'],\r\n ['\\u0C9A', '\\u0C9B'],\r\n ['\\u0C9F', '\\u0CA0'],\r\n ['', '\\u0C9E']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0CC6', '\\u0C8F'],\r\n ['\\u0C82'],\r\n ['\\u0CAE', '\\u0CA3'],\r\n ['\\u0CA8'],\r\n ['\\u0CB5'],\r\n ['\\u0CB2', '\\u0CB3'],\r\n ['\\u0CB8', '\\u0CB6'],\r\n [',', '\\u0CB7'],\r\n ['.', '|'],\r\n ['\\u0CAF'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['kn']\r\n },\r\n '\\ud55c\\uad6d\\uc5b4': {\r\n 'name': 'Korean',\r\n 'keys': [\r\n [\r\n ['`', '~', '`', '~'],\r\n ['1', '!', '1', '!'],\r\n ['2', '@', '2', '@'],\r\n ['3', '#', '3', '#'],\r\n ['4', '$', '4', '$'],\r\n ['5', '%', '5', '%'],\r\n ['6', '^', '6', '^'],\r\n ['7', '&', '7', '&'],\r\n ['8', '*', '8', '*'],\r\n ['9', ')', '9', ')'],\r\n ['0', '(', '0', '('],\r\n ['-', '_', '-', '_'],\r\n ['=', '+', '=', '+'],\r\n ['\\u20A9', '|', '\\u20A9', '|'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u1107', '\\u1108', 'q', 'Q'],\r\n ['\\u110C', '\\u110D', 'w', 'W'],\r\n ['\\u1103', '\\u1104', 'e', 'E'],\r\n ['\\u1100', '\\u1101', 'r', 'R'],\r\n ['\\u1109', '\\u110A', 't', 'T'],\r\n ['\\u116D', '', 'y', 'Y'],\r\n ['\\u1167', '', 'u', 'U'],\r\n ['\\u1163', '', 'i', 'I'],\r\n ['\\u1162', '\\u1164', 'o', 'O'],\r\n ['\\u1166', '\\u1168', 'p', 'P'],\r\n ['[', '{', '[', '{'],\r\n [']', '}', ']', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u1106', '', 'a', 'A'],\r\n ['\\u1102', '', 's', 'S'],\r\n ['\\u110B', '', 'd', 'D'],\r\n ['\\u1105', '', 'f', 'F'],\r\n ['\\u1112', '', 'g', 'G'],\r\n ['\\u1169', '', 'h', 'H'],\r\n ['\\u1165', '', 'j', 'J'],\r\n ['\\u1161', '', 'k', 'K'],\r\n ['\\u1175', '', 'l', 'L'],\r\n [';', ':', ';', ':'],\r\n ['\\'', '\"', '\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u110F', '', 'z', 'Z'],\r\n ['\\u1110', '', 'x', 'X'],\r\n ['\\u110E', '', 'c', 'C'],\r\n ['\\u1111', '', 'v', 'V'],\r\n ['\\u1172', '', 'b', 'B'],\r\n ['\\u116E', '', 'n', 'N'],\r\n ['\\u1173', '', 'm', 'M'],\r\n [',', '<', ',', '<'],\r\n ['.', '>', '.', '>'],\r\n ['/', '?', '/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n ['Kor', KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['ko']\r\n },\r\n 'Kurd\\u00ee': {\r\n 'name': 'Kurdish',\r\n 'keys': [\r\n [\r\n ['\\u20ac', '~'],\r\n ['\\u0661', '!'],\r\n ['\\u0662', '@'],\r\n ['\\u0663', '#'],\r\n ['\\u0664', '$'],\r\n ['\\u0665', '%'],\r\n ['\\u0666', '^'],\r\n ['\\u0667', '&'],\r\n ['\\u0668', '*'],\r\n ['\\u0669', '('],\r\n ['\\u0660', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0642', '`'],\r\n ['\\u0648', '\\u0648\\u0648'],\r\n ['\\u06d5', '\\u064a'],\r\n ['\\u0631', '\\u0695'],\r\n ['\\u062a', '\\u0637'],\r\n ['\\u06cc', '\\u06ce'],\r\n ['\\u0626', '\\u0621'],\r\n ['\\u062d', '\\u0639'],\r\n ['\\u06c6', '\\u0624'],\r\n ['\\u067e', '\\u062b'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0627', '\\u0622'],\r\n ['\\u0633', '\\u0634'],\r\n ['\\u062f', '\\u0630'],\r\n ['\\u0641', '\\u0625'],\r\n ['\\u06af', '\\u063a'],\r\n ['\\u0647', '\\u200c'],\r\n ['\\u0698', '\\u0623'],\r\n ['\\u06a9', '\\u0643'],\r\n ['\\u0644', '\\u06b5'],\r\n ['\\u061b', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0632', '\\u0636'],\r\n ['\\u062e', '\\u0635'],\r\n ['\\u062c', '\\u0686'],\r\n ['\\u06a4', '\\u0638'],\r\n ['\\u0628', '\\u0649'],\r\n ['\\u0646', '\\u0629'],\r\n ['\\u0645', '\\u0640'],\r\n ['\\u060c', '<'],\r\n ['.', '>'],\r\n ['/', '\\u061f'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['ku']\r\n },\r\n '\\u041a\\u044b\\u0440\\u0433\\u044b\\u0437\\u0447\\u0430': {\r\n 'name': 'Kyrgyz',\r\n 'keys': [\r\n [\r\n ['\\u0451', '\\u0401'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423', '\\u04AF', '\\u04AE'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D', '\\u04A3', '\\u04A2'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E', '\\u04E9', '\\u04E8'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044D', '\\u042D'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044E', '\\u042E'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ky']\r\n },\r\n 'Latvie\\u0161u': {\r\n 'name': 'Latvian',\r\n 'keys': [\r\n [\r\n ['\\u00AD', '?'],\r\n ['1', '!', '\\u00AB'],\r\n ['2', '\\u00AB', '', '@'],\r\n ['3', '\\u00BB', '', '#'],\r\n ['4', '$', '\\u20AC', '$'],\r\n ['5', '%', '\"', '~'],\r\n ['6', '/', '\\u2019', '^'],\r\n ['7', '&', '', '\\u00B1'],\r\n ['8', '\\u00D7', ':'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_', '\\u2013', '\\u2014'],\r\n ['f', 'F', '=', ';'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u016B', '\\u016A', 'q', 'Q'],\r\n ['g', 'G', '\\u0123', '\\u0122'],\r\n ['j', 'J'],\r\n ['r', 'R', '\\u0157', '\\u0156'],\r\n ['m', 'M', 'w', 'W'],\r\n ['v', 'V', 'y', 'Y'],\r\n ['n', 'N'],\r\n ['z', 'Z'],\r\n ['\\u0113', '\\u0112'],\r\n ['\\u010D', '\\u010C'],\r\n ['\\u017E', '\\u017D', '[', '{'],\r\n ['h', 'H', ']', '}'],\r\n ['\\u0137', '\\u0136']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0161', '\\u0160'],\r\n ['u', 'U'],\r\n ['s', 'S'],\r\n ['i', 'I'],\r\n ['l', 'L'],\r\n ['d', 'D'],\r\n ['a', 'A'],\r\n ['t', 'T'],\r\n ['e', 'E', '\\u20AC'],\r\n ['c', 'C'],\r\n ['\\u00B4', '\\u00B0', '\\u00B4', '\\u00A8'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0146', '\\u0145'],\r\n ['b', 'B', 'x', 'X'],\r\n ['\\u012B', '\\u012A'],\r\n ['k', 'K', '\\u0137', '\\u0136'],\r\n ['p', 'P'],\r\n ['o', 'O', '\\u00F5', '\\u00D5'],\r\n ['\\u0101', '\\u0100'],\r\n [',', ';', '<'],\r\n ['.', ':', '>'],\r\n ['\\u013C', '\\u013B'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['lv']\r\n },\r\n 'Lietuvi\\u0173': {\r\n 'name': 'Lithuanian',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['\\u0105', '\\u0104'],\r\n ['\\u010D', '\\u010C'],\r\n ['\\u0119', '\\u0118'],\r\n ['\\u0117', '\\u0116'],\r\n ['\\u012F', '\\u012E'],\r\n ['\\u0161', '\\u0160'],\r\n ['\\u0173', '\\u0172'],\r\n ['\\u016B', '\\u016A'],\r\n ['\\u201E', '('],\r\n ['\\u201C', ')'],\r\n ['-', '_'],\r\n ['\\u017E', '\\u017D'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u2013', '\\u20AC'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['lt']\r\n },\r\n 'Magyar': {\r\n 'name': 'Hungarian',\r\n 'keys': [\r\n [\r\n ['0', '\\u00a7'],\r\n ['1', '\\'', '~'],\r\n ['2', '\"', '\\u02c7'],\r\n ['3', '+', '\\u02c6'],\r\n ['4', '!', '\\u02d8'],\r\n ['5', '%', '\\u00b0'],\r\n ['6', '/', '\\u02db'],\r\n ['7', '=', '`'],\r\n ['8', '(', '\\u02d9'],\r\n ['9', ')', '\\u00b4'],\r\n ['\\u00f6', '\\u00d6', '\\u02dd'],\r\n ['\\u00fc', '\\u00dc', '\\u00a8'],\r\n ['\\u00f3', '\\u00d3', '\\u00b8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\\\'],\r\n ['w', 'W', '|'],\r\n ['e', 'E', '\\u00c4'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U', '\\u20ac'],\r\n ['i', 'I', '\\u00cd'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u0151', '\\u0150', '\\u00f7'],\r\n ['\\u00fa', '\\u00da', '\\u00d7'],\r\n ['\\u0171', '\\u0170', '\\u00a4']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00e4'],\r\n ['s', 'S', '\\u0111'],\r\n ['d', 'D', '\\u0110'],\r\n ['f', 'F', '['],\r\n ['g', 'G', ']'],\r\n ['h', 'H'],\r\n ['j', 'J', '\\u00ed'],\r\n ['k', 'K', '\\u0141'],\r\n ['l', 'L', '\\u0142'],\r\n ['\\u00e9', '\\u00c9', '$'],\r\n ['\\u00e1', '\\u00c1', '\\u00df'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u00ed', '\\u00cd', '<'],\r\n ['y', 'Y', '>'],\r\n ['x', 'X', '#'],\r\n ['c', 'C', '&'],\r\n ['v', 'V', '@'],\r\n ['b', 'B', '{'],\r\n ['n', 'N', '}'],\r\n ['m', 'M', '<'],\r\n [',', '?', ';'],\r\n ['.', ':', '>'],\r\n ['-', '_', '*'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['hu']\r\n },\r\n 'Malti': {\r\n 'name': 'Maltese 48',\r\n 'keys': [\r\n [\r\n ['\\u010B', '\\u010A', '`'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u20ac', '\\u00A3'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u00E8', '\\u00C8'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U', '\\u00F9', '\\u00D9'],\r\n ['i', 'I', '\\u00EC', '\\u00cc'],\r\n ['o', 'O', '\\u00F2', '\\u00D2'],\r\n ['p', 'P'],\r\n ['\\u0121', '\\u0120', '[', '{'],\r\n ['\\u0127', '\\u0126', ']', '}'],\r\n ['#', '\\u017e']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00E0', '\\u00C0'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':'],\r\n ['\\'', '@'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u017c', '\\u017b', '\\\\', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?', '', '`'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['mt']\r\n },\r\n '\\u041c\\u0430\\u043a\\u0435\\u0434\\u043e\\u043d\\u0441\\u043a\\u0438': {\r\n 'name': 'Macedonian Cyrillic',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '\\u201E'],\r\n ['3', '\\u201C'],\r\n ['4', '\\u2019'],\r\n ['5', '%'],\r\n ['6', '\\u2018'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0459', '\\u0409'],\r\n ['\\u045A', '\\u040A'],\r\n ['\\u0435', '\\u0415', '\\u20AC'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u0455', '\\u0405'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0448', '\\u0428', '\\u0402'],\r\n ['\\u0453', '\\u0403', '\\u0452'],\r\n ['\\u0436', '\\u0416']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0444', '\\u0424', '['],\r\n ['\\u0433', '\\u0413', ']'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u0458', '\\u0408'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0447', '\\u0427', '\\u040B'],\r\n ['\\u045C', '\\u040C', '\\u045B'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0451', '\\u0401'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u045F', '\\u040F'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0432', '\\u0412', '@'],\r\n ['\\u0431', '\\u0411', '{'],\r\n ['\\u043D', '\\u041D', '}'],\r\n ['\\u043C', '\\u041C', '\\u00A7'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['mk']\r\n },\r\n '\\u0d2e\\u0d32\\u0d2f\\u0d3e\\u0d33\\u0d02': {\r\n 'name': 'Malayalam',\r\n 'keys': [\r\n [\r\n ['\\u0D4A', '\\u0D12'],\r\n ['1', '', '\\u0D67'],\r\n ['2', '', '\\u0D68'],\r\n ['3', '\\u0D4D\\u0D30', '\\u0D69'],\r\n ['4', '', '\\u0D6A'],\r\n ['5', '', '\\u0D6B'],\r\n ['6', '', '\\u0D6C'],\r\n ['7', '\\u0D15\\u0D4D\\u0D37', '\\u0D6D'],\r\n ['8', '', '\\u0D6E'],\r\n ['9', '(', '\\u0D6F'],\r\n ['0', ')', '\\u0D66'],\r\n ['-', '\\u0D03'],\r\n ['\\u0D43', '\\u0D0B', '', '\\u0D60'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0D4C', '\\u0D14', '\\u0D57'],\r\n ['\\u0D48', '\\u0D10'],\r\n ['\\u0D3E', '\\u0D06'],\r\n ['\\u0D40', '\\u0D08', '', '\\u0D61'],\r\n ['\\u0D42', '\\u0D0A'],\r\n ['\\u0D2C', '\\u0D2D'],\r\n ['\\u0D39', '\\u0D19'],\r\n ['\\u0D17', '\\u0D18'],\r\n ['\\u0D26', '\\u0D27'],\r\n ['\\u0D1C', '\\u0D1D'],\r\n ['\\u0D21', '\\u0D22'],\r\n ['', '\\u0D1E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0D4B', '\\u0D13'],\r\n ['\\u0D47', '\\u0D0F'],\r\n ['\\u0D4D', '\\u0D05', '', '\\u0D0C'],\r\n ['\\u0D3F', '\\u0D07'],\r\n ['\\u0D41', '\\u0D09'],\r\n ['\\u0D2A', '\\u0D2B'],\r\n ['\\u0D30', '\\u0D31'],\r\n ['\\u0D15', '\\u0D16'],\r\n ['\\u0D24', '\\u0D25'],\r\n ['\\u0D1A', '\\u0D1B'],\r\n ['\\u0D1F', '\\u0D20'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0D46', '\\u0D0F'],\r\n ['\\u0D02'],\r\n ['\\u0D2E', '\\u0D23'],\r\n ['\\u0D28'],\r\n ['\\u0D35', '\\u0D34'],\r\n ['\\u0D32', '\\u0D33'],\r\n ['\\u0D38', '\\u0D36'],\r\n [',', '\\u0D37'],\r\n ['.'],\r\n ['\\u0D2F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ml']\r\n },\r\n 'Misc. Symbols': {\r\n 'name': 'Misc. Symbols',\r\n 'keys': [\r\n [\r\n ['\\u2605', '\\u2606', '\\u260e', '\\u260f'],\r\n ['\\u2648', '\\u2673', '\\u2659', '\\u2630'],\r\n ['\\u2649', '\\u2674', '\\u2658', '\\u2631'],\r\n ['\\u264a', '\\u2675', '\\u2657', '\\u2632'],\r\n ['\\u264b', '\\u2676', '\\u2656', '\\u2633'],\r\n ['\\u264c', '\\u2677', '\\u2655', '\\u2634'],\r\n ['\\u264d', '\\u2678', '\\u2654', '\\u2635'],\r\n ['\\u264e', '\\u2679', '\\u265f', '\\u2636'],\r\n ['\\u264f', '\\u267a', '\\u265e', '\\u2637'],\r\n ['\\u2650', '\\u267b', '\\u265d', '\\u2686'],\r\n ['\\u2651', '\\u267c', '\\u265c', '\\u2687'],\r\n ['\\u2652', '\\u267d', '\\u265b', '\\u2688'],\r\n ['\\u2653', '\\u2672', '\\u265a', '\\u2689'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n ['\\u263f', '\\u2680', '\\u268a', '\\u26a2'],\r\n ['\\u2640', '\\u2681', '\\u268b', '\\u26a3'],\r\n ['\\u2641', '\\u2682', '\\u268c', '\\u26a4'],\r\n ['\\u2642', '\\u2683', '\\u268d', '\\u26a5'],\r\n ['\\u2643', '\\u2684', '\\u268e', '\\u26a6'],\r\n ['\\u2644', '\\u2685', '\\u268f', '\\u26a7'],\r\n ['\\u2645', '\\u2620', '\\u26ff', '\\u26a8'],\r\n ['\\u2646', '\\u2622', '\\u2692', '\\u26a9'],\r\n ['\\u2647', '\\u2623', '\\u2693', '\\u26b2'],\r\n ['\\u2669', '\\u266d', '\\u2694', '\\u26ac'],\r\n ['\\u266a', '\\u266e', '\\u2695', '\\u26ad'],\r\n ['\\u266b', '\\u266f', '\\u2696', '\\u26ae'],\r\n ['\\u266c', '\\u2607', '\\u2697', '\\u26af'],\r\n ['\\u26f9', '\\u2608', '\\u2698', '\\u26b0'],\r\n ['\\u267f', '\\u262e', '\\u2638', '\\u2609']\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u261e', '\\u261c', '\\u261d', '\\u261f'],\r\n ['\\u261b', '\\u261a', '\\u2618', '\\u2619'],\r\n ['\\u2602', '\\u2614', '\\u26f1', '\\u26d9'],\r\n ['\\u2615', '\\u2668', '\\u26fe', '\\u26d8'],\r\n ['\\u263a', '\\u2639', '\\u263b', '\\u26dc'],\r\n ['\\u2617', '\\u2616', '\\u26ca', '\\u26c9'],\r\n ['\\u2660', '\\u2663', '\\u2665', '\\u2666'],\r\n ['\\u2664', '\\u2667', '\\u2661', '\\u2662'],\r\n ['\\u26c2', '\\u26c0', '\\u26c3', '\\u26c1'],\r\n ['\\u2624', '\\u2625', '\\u269a', '\\u26b1'],\r\n ['\\u2610', '\\u2611', '\\u2612', '\\u2613'],\r\n ['\\u2628', '\\u2626', '\\u2627', '\\u2629'],\r\n ['\\u262a', '\\u262b', '\\u262c', '\\u262d'],\r\n ['\\u26fa', '\\u26fb', '\\u26fc', '\\u26fd']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u262f', '\\u2670', '\\u2671', '\\u267e'],\r\n ['\\u263c', '\\u2699', '\\u263d', '\\u263e'],\r\n ['\\u26c4', '\\u2603', '\\u26c7', '\\u26c6'],\r\n ['\\u26a0', '\\u26a1', '\\u2621', '\\u26d4'],\r\n ['\\u26e4', '\\u26e5', '\\u26e6', '\\u26e7'],\r\n ['\\u260a', '\\u260b', '\\u260c', '\\u260d'],\r\n ['\\u269c', '\\u269b', '\\u269d', '\\u2604'],\r\n ['\\u26b3', '\\u26b4', '\\u26b5', '\\u26b6'],\r\n ['\\u26b7', '\\u26bf', '\\u26b8', '\\u26f8'],\r\n ['\\u26b9', '\\u26ba', '\\u26bb', '\\u26bc'],\r\n ['\\u26bd', '\\u26be', '\\u269f', '\\u269e'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u2600', '\\u2601', '\\u26c5', '\\u26c8'],\r\n ['\\u2691', '\\u2690', '\\u26ab', '\\u26aa'],\r\n ['\\u26cb', '\\u26cc', '\\u26cd', '\\u26ce'],\r\n ['\\u26cf', '\\u26d0', '\\u26d1', '\\u26d2'],\r\n ['\\u26d3', '\\u26d5', '\\u26d6', '\\u26d7'],\r\n ['\\u26da', '\\u26db', '\\u26dd', '\\u26de'],\r\n ['\\u26df', '\\u26e0', '\\u26e1', '\\u26e2'],\r\n ['\\u26e3', '\\u26e8', '\\u26e9', '\\u26ea'],\r\n ['\\u26eb', '\\u26ec', '\\u26ed', '\\u26ee'],\r\n ['\\u26ef', '\\u26f0', '\\u26f2', '\\u26f3'],\r\n ['\\u26f4', '\\u26f5', '\\u26f6', '\\u26f7'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk],\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ]\r\n },\r\n '\\u041c\\u043e\\u043d\\u0433\\u043e\\u043b': {\r\n 'name': 'Mongolian Cyrillic',\r\n 'keys': [\r\n [\r\n ['=', '+'],\r\n ['\\u2116', '1'],\r\n ['-', '2'],\r\n ['\"', '3'],\r\n ['\\u20AE', '4'],\r\n [':', '5'],\r\n ['.', '6'],\r\n ['_', '7'],\r\n [',', '8'],\r\n ['%', '9'],\r\n ['?', '0'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u0449', '\\u0429'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044d', '\\u042d'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u04af', '\\u04AE'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u043A', '\\u041a'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u04e9', '\\u04e8'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043e', '\\u041e'],\r\n ['\\u043B', '\\u041b'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u043f', '\\u041f'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0451', '\\u0401'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043c', '\\u041c'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044c', '\\u042c'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u044e', '\\u042e'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['mn']\r\n },\r\n '\\u092e\\u0930\\u093e\\u0920\\u0940': {\r\n 'name': 'Marathi',\r\n 'keys': [\r\n [\r\n ['', '', '`', '~'],\r\n ['\\u0967', '\\u090D', '1', '!'],\r\n ['\\u0968', '\\u0945', '2', '@'],\r\n ['\\u0969', '\\u094D\\u0930', '3', '#'],\r\n ['\\u096A', '\\u0930\\u094D', '4', '$'],\r\n ['\\u096B', '\\u091C\\u094D\\u091E', '5', '%'],\r\n ['\\u096C', '\\u0924\\u094D\\u0930', '6', '^'],\r\n ['\\u096D', '\\u0915\\u094D\\u0937', '7', '&'],\r\n ['\\u096E', '\\u0936\\u094D\\u0930', '8', '*'],\r\n ['\\u096F', '(', '9', '('],\r\n ['\\u0966', ')', '0', ')'],\r\n ['-', '\\u0903', '-', '_'],\r\n ['\\u0943', '\\u090B', '=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u094C', '\\u0914'],\r\n ['\\u0948', '\\u0910'],\r\n ['\\u093E', '\\u0906'],\r\n ['\\u0940', '\\u0908'],\r\n ['\\u0942', '\\u090A'],\r\n ['\\u092C', '\\u092D'],\r\n ['\\u0939', '\\u0919'],\r\n ['\\u0917', '\\u0918'],\r\n ['\\u0926', '\\u0927'],\r\n ['\\u091C', '\\u091D'],\r\n ['\\u0921', '\\u0922', '[', '{'],\r\n ['\\u093C', '\\u091E', ']', '}'],\r\n ['\\u0949', '\\u0911', '\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u094B', '\\u0913'],\r\n ['\\u0947', '\\u090F'],\r\n ['\\u094D', '\\u0905'],\r\n ['\\u093F', '\\u0907'],\r\n ['\\u0941', '\\u0909'],\r\n ['\\u092A', '\\u092B'],\r\n ['\\u0930', '\\u0931'],\r\n ['\\u0915', '\\u0916'],\r\n ['\\u0924', '\\u0925'],\r\n ['\\u091A', '\\u091B', ';', ':'],\r\n ['\\u091F', '\\u0920', '\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [''],\r\n ['\\u0902', '\\u0901', '', '\\u0950'],\r\n ['\\u092E', '\\u0923'],\r\n ['\\u0928'],\r\n ['\\u0935'],\r\n ['\\u0932', '\\u0933'],\r\n ['\\u0938', '\\u0936'],\r\n [',', '\\u0937', ',', '<'],\r\n ['.', '\\u0964', '.', '>'],\r\n ['\\u092F', '\\u095F', '/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['mr']\r\n },\r\n '\\u1019\\u103c\\u1014\\u103a\\u1019\\u102c\\u1018\\u102c\\u101e\\u102c': {\r\n 'name': 'Burmese',\r\n 'keys': [\r\n [\r\n ['\\u1039`', '~'],\r\n ['\\u1041', '\\u100D'],\r\n ['\\u1042', '\\u100E'],\r\n ['\\u1043', '\\u100B'],\r\n ['\\u1044', '\\u1000\\u103B\\u1015\\u103A'],\r\n ['\\u1045', '%'],\r\n ['\\u1046', '/'],\r\n ['\\u1047', '\\u101B'],\r\n ['\\u1048', '\\u1002'],\r\n ['\\u1049', '('],\r\n ['\\u1040', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u1006', '\\u1029'],\r\n ['\\u1010', '\\u1040'],\r\n ['\\u1014', '\\u103F'],\r\n ['\\u1019', '\\u1023'],\r\n ['\\u1021', '\\u1024'],\r\n ['\\u1015', '\\u104C'],\r\n ['\\u1000', '\\u1009'],\r\n ['\\u1004', '\\u104D'],\r\n ['\\u101E', '\\u1025'],\r\n ['\\u1005', '\\u100F'],\r\n ['\\u101F', '\\u1027'],\r\n ['\\u2018', '\\u2019'],\r\n ['\\u104F', '\\u100B\\u1039\\u100C']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u200B\\u1031', '\\u1017'],\r\n ['\\u200B\\u103B', '\\u200B\\u103E'],\r\n ['\\u200B\\u102D', '\\u200B\\u102E'],\r\n ['\\u200B\\u103A', '\\u1004\\u103A\\u1039\\u200B'],\r\n ['\\u200B\\u102B', '\\u200B\\u103D'],\r\n ['\\u200B\\u1037', '\\u200B\\u1036'],\r\n ['\\u200B\\u103C', '\\u200B\\u1032'],\r\n ['\\u200B\\u102F', '\\u200B\\u102F'],\r\n ['\\u200B\\u1030', '\\u200B\\u1030'],\r\n ['\\u200B\\u1038', '\\u200B\\u102B\\u103A'],\r\n ['\\u1012', '\\u1013'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u1016', '\\u1007'],\r\n ['\\u1011', '\\u100C'],\r\n ['\\u1001', '\\u1003'],\r\n ['\\u101C', '\\u1020'],\r\n ['\\u1018', '\\u1026'],\r\n ['\\u100A', '\\u1008'],\r\n ['\\u200B\\u102C', '\\u102A'],\r\n ['\\u101A', '\\u101B'],\r\n ['.', '\\u101B'],\r\n ['\\u104B', '\\u104A'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['my']\r\n },\r\n 'Nederlands': {\r\n 'name': 'Dutch',\r\n 'keys': [\r\n [\r\n ['@', '\\u00a7', '\\u00ac'],\r\n ['1', '!', '\\u00b9'],\r\n ['2', '\"', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00bc'],\r\n ['5', '%', '\\u00bd'],\r\n ['6', '&', '\\u00be'],\r\n ['7', '_', '\\u00a3'],\r\n ['8', '(', '{'],\r\n ['9', ')', '}'],\r\n ['0', '\\''],\r\n ['/', '?', '\\\\'],\r\n ['\\u00b0', '~', '\\u00b8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R', '\\u00b6'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00a8', '^'],\r\n ['*', '|'],\r\n ['<', '>']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u00df'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['+', '\\u00b1'],\r\n ['\\u00b4', '`'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [']', '[', '\\u00a6'],\r\n ['z', 'Z', '\\u00ab'],\r\n ['x', 'X', '\\u00bb'],\r\n ['c', 'C', '\\u00a2'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u00b5'],\r\n [',', ';'],\r\n ['.', ':', '\\u00b7'],\r\n ['-', '='],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['nl']\r\n },\r\n 'Norsk': {\r\n 'name': 'Norwegian',\r\n 'keys': [\r\n [\r\n ['|', '\\u00a7'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00a3'],\r\n ['4', '\\u00a4', '$'],\r\n ['5', '%'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['+', '?'],\r\n ['\\\\', '`', '\\u00b4'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00e5', '\\u00c5'],\r\n ['\\u00a8', '^', '~'],\r\n ['\\'', '*']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00f8', '\\u00d8'],\r\n ['\\u00e6', '\\u00c6'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u03bc', '\\u039c'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['no', 'nb', 'nn']\r\n },\r\n '\\u067e\\u069a\\u062a\\u0648': {\r\n 'name': 'Pashto',\r\n 'keys': [\r\n [\r\n ['\\u200d', '\\u00f7', '`'],\r\n ['\\u06f1', '!', '`'],\r\n ['\\u06f2', '\\u066c', '@'],\r\n ['\\u06f3', '\\u066b', '\\u066b'],\r\n ['\\u06f4', '\\u00a4', '\\u00a3'],\r\n ['\\u06f5', '\\u066a', '%'],\r\n ['\\u06f6', '\\u00d7', '^'],\r\n ['\\u06f7', '\\u00ab', '&'],\r\n ['\\u06f8', '\\u00bb', '*'],\r\n ['\\u06f9', '(', '\\ufdf2'],\r\n ['\\u06f0', ')', '\\ufefb'],\r\n ['-', '\\u0640', '_'],\r\n ['=', '+', '\\ufe87', '\\u00f7'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0636', '\\u0652', '\\u06d5'],\r\n ['\\u0635', '\\u064c', '\\u0653'],\r\n ['\\u062b', '\\u064d', '\\u20ac'],\r\n ['\\u0642', '\\u064b', '\\ufef7'],\r\n ['\\u0641', '\\u064f', '\\ufef5'],\r\n ['\\u063a', '\\u0650', '\\''],\r\n ['\\u0639', '\\u064e', '\\ufe84'],\r\n ['\\u0647', '\\u0651', '\\u0670'],\r\n ['\\u062e', '\\u0681', '\\''],\r\n ['\\u062d', '\\u0685', '\"'],\r\n ['\\u062c', ']', '}'],\r\n ['\\u0686', '[', '{'],\r\n ['\\\\', '\\u066d', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0634', '\\u069a', '\\ufbb0'],\r\n ['\\u0633', '\\u06cd', '\\u06d2'],\r\n ['\\u06cc', '\\u064a', '\\u06d2'],\r\n ['\\u0628', '\\u067e', '\\u06ba'],\r\n ['\\u0644', '\\u0623', '\\u06b7'],\r\n ['\\u0627', '\\u0622', '\\u0671'],\r\n ['\\u062a', '\\u067c', '\\u0679'],\r\n ['\\u0646', '\\u06bc', '<'],\r\n ['\\u0645', '\\u0629', '>'],\r\n ['\\u06a9', ':', '\\u0643'],\r\n ['\\u06af', '\\u061b', '\\u06ab'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0638', '\\u0626', '?'],\r\n ['\\u0637', '\\u06d0', ';'],\r\n ['\\u0632', '\\u0698', '\\u0655'],\r\n ['\\u0631', '\\u0621', '\\u0654'],\r\n ['\\u0630', '\\u200c', '\\u0625'],\r\n ['\\u062f', '\\u0689', '\\u0688'],\r\n ['\\u0693', '\\u0624', '\\u0691'],\r\n ['\\u0648', '\\u060c', ','],\r\n ['\\u0696', '.', '\\u06c7'],\r\n ['/', '\\u061f', '\\u06c9'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, '\\u064d']\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['ps']\r\n },\r\n '\\u0a2a\\u0a70\\u0a1c\\u0a3e\\u0a2c\\u0a40': {\r\n 'name': 'Punjabi (Gurmukhi)',\r\n 'keys': [\r\n [\r\n [''],\r\n ['1', '\\u0A4D\\u0A35', '\\u0A67', '\\u0A67'],\r\n ['2', '\\u0A4D\\u0A2F', '\\u0A68', '\\u0A68'],\r\n ['3', '\\u0A4D\\u0A30', '\\u0A69', '\\u0A69'],\r\n ['4', '\\u0A71', '\\u0A6A', '\\u0A6A'],\r\n ['5', '', '\\u0A6B', '\\u0A6B'],\r\n ['6', '', '\\u0A6C', '\\u0A6C'],\r\n ['7', '', '\\u0A6D', '\\u0A6D'],\r\n ['8', '', '\\u0A6E', '\\u0A6E'],\r\n ['9', '(', '\\u0A6F', '\\u0A6F'],\r\n ['0', ')', '\\u0A66', '\\u0A66'],\r\n ['-'],\r\n [''],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0A4C', '\\u0A14'],\r\n ['\\u0A48', '\\u0A10'],\r\n ['\\u0A3E', '\\u0A06'],\r\n ['\\u0A40', '\\u0A08'],\r\n ['\\u0A42', '\\u0A0A'],\r\n ['\\u0A2C', '\\u0A2D'],\r\n ['\\u0A39', '\\u0A19'],\r\n ['\\u0A17', '\\u0A18', '\\u0A5A', '\\u0A5A'],\r\n ['\\u0A26', '\\u0A27'],\r\n ['\\u0A1C', '\\u0A1D', '\\u0A5B', '\\u0A5B'],\r\n ['\\u0A21', '\\u0A22', '\\u0A5C', '\\u0A5C'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0A4B', '\\u0A13'],\r\n ['\\u0A47', '\\u0A0F'],\r\n ['\\u0A4D', '\\u0A05'],\r\n ['\\u0A3F', '\\u0A07'],\r\n ['\\u0A41', '\\u0A09'],\r\n ['\\u0A2A', '\\u0A2B', '\\u0A5E', '\\u0A5E'],\r\n ['\\u0A30'],\r\n ['\\u0A15', '\\u0A16', '\\u0A59', '\\u0A59'],\r\n ['\\u0A24', '\\u0A25'],\r\n ['\\u0A1A', '\\u0A1B'],\r\n ['\\u0A1F', '\\u0A20'],\r\n ['\\u0A3C', '\\u0A1E']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [''],\r\n ['\\u0A02', '\\u0A02'],\r\n ['\\u0A2E', '\\u0A23'],\r\n ['\\u0A28'],\r\n ['\\u0A35', '\\u0A72', '\\u0A73', '\\u0A73'],\r\n ['\\u0A32', '\\u0A33'],\r\n ['\\u0A38', '\\u0A36'],\r\n [','],\r\n ['.', '|', '\\u0965', '\\u0965'],\r\n ['\\u0A2F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['pa']\r\n },\r\n '\\u62fc\\u97f3 (Pinyin)': {\r\n 'name': 'Pinyin',\r\n 'keys': [\r\n [\r\n ['`', '~', '\\u4e93', '\\u301C'],\r\n ['1', '!', '\\uFF62'],\r\n ['2', '@', '\\uFF63'],\r\n ['3', '#', '\\u301D'],\r\n ['4', '$', '\\u301E'],\r\n ['5', '%', '\\u301F'],\r\n ['6', '^', '\\u3008'],\r\n ['7', '&', '\\u3009'],\r\n ['8', '*', '\\u302F'],\r\n ['9', '(', '\\u300A'],\r\n ['0', ')', '\\u300B'],\r\n ['-', '_', '\\u300E'],\r\n ['=', '+', '\\u300F'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\u0101', '\\u0100'],\r\n ['w', 'W', '\\u00E1', '\\u00C1'],\r\n ['e', 'E', '\\u01CE', '\\u01CD'],\r\n ['r', 'R', '\\u00E0', '\\u00C0'],\r\n ['t', 'T', '\\u0113', '\\u0112'],\r\n ['y', 'Y', '\\u00E9', '\\u00C9'],\r\n ['u', 'U', '\\u011B', '\\u011A'],\r\n ['i', 'I', '\\u00E8', '\\u00C8'],\r\n ['o', 'O', '\\u012B', '\\u012A'],\r\n ['p', 'P', '\\u00ED', '\\u00CD'],\r\n ['[', '{', '\\u01D0', '\\u01CF'],\r\n [']', '}', '\\u00EC', '\\u00CC'],\r\n ['\\\\', '|', '\\u3020']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u014D', '\\u014C'],\r\n ['s', 'S', '\\u00F3', '\\u00D3'],\r\n ['d', 'D', '\\u01D2', '\\u01D1'],\r\n ['f', 'F', '\\u00F2', '\\u00D2'],\r\n ['g', 'G', '\\u00fc', '\\u00dc'],\r\n ['h', 'H', '\\u016B', '\\u016A'],\r\n ['j', 'J', '\\u00FA', '\\u00DA'],\r\n ['k', 'K', '\\u01D4', '\\u01D3'],\r\n ['l', 'L', '\\u00F9', '\\u00D9'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z', '\\u01D6', '\\u01D5'],\r\n ['x', 'X', '\\u01D8', '\\u01D7'],\r\n ['c', 'C', '\\u01DA', '\\u01D9'],\r\n ['v', 'V', '\\u01DC', '\\u01DB'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<', '\\u3001'],\r\n ['.', '>', '\\u3002'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk, KeyboardClassKey.AltLk],\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['zh-LATN']\r\n },\r\n 'Polski': {\r\n 'name': 'Polish (214)',\r\n 'keys': [\r\n [\r\n ['\\u02DB', '\\u00B7'],\r\n ['1', '!', '~'],\r\n ['2', '\"', '\\u02C7'],\r\n ['3', '#', '^'],\r\n ['4', '\\u00A4', '\\u02D8'],\r\n ['5', '%', '\\u00B0'],\r\n ['6', '&', '\\u02DB'],\r\n ['7', '/', '`'],\r\n ['8', '(', '\\u00B7'],\r\n ['9', ')', '\\u00B4'],\r\n ['0', '=', '\\u02DD'],\r\n ['+', '?', '\\u00A8'],\r\n ['\\'', '*', '\\u00B8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\\\'],\r\n ['w', 'W', '\\u00A6'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U', '\\u20AC'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u017C', '\\u0144', '\\u00F7'],\r\n ['\\u015B', '\\u0107', '\\u00D7'],\r\n ['\\u00F3', '\\u017A']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u0111'],\r\n ['d', 'D', '\\u0110'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u0142', '\\u0141', '$'],\r\n ['\\u0105', '\\u0119', '\\u00DF'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V', '@'],\r\n ['b', 'B', '{'],\r\n ['n', 'N', '}'],\r\n ['m', 'M', '\\u00A7'],\r\n [',', ';', '<'],\r\n ['.', ':', '>'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ]\r\n },\r\n 'Polski Programisty': {\r\n 'name': 'Polish Programmers',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u0119', '\\u0118'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O', '\\u00f3', '\\u00d3'],\r\n ['p', 'P'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u0105', '\\u0104'],\r\n ['s', 'S', '\\u015b', '\\u015a'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L', '\\u0142', '\\u0141'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z', '\\u017c', '\\u017b'],\r\n ['x', 'X', '\\u017a', '\\u0179'],\r\n ['c', 'C', '\\u0107', '\\u0106'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N', '\\u0144', '\\u0143'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['pl']\r\n },\r\n 'Portugu\\u00eas Brasileiro': {\r\n 'name': 'Portuguese (Brazil)',\r\n 'keys': [\r\n [\r\n ['\\'', '\"'],\r\n ['1', '!', '\\u00b9'],\r\n ['2', '@', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00a3'],\r\n ['5', '%', '\\u00a2'],\r\n ['6', '\\u00a8', '\\u00ac'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+', '\\u00a7'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '/'],\r\n ['w', 'W', '?'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00b4', '`'],\r\n ['[', '{', '\\u00aa'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00e7', '\\u00c7'],\r\n ['~', '^'],\r\n [']', '}', '\\u00ba'],\r\n ['/', '?']\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C', '\\u20a2'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n [':', ':'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['pt-BR']\r\n },\r\n 'Portugu\\u00eas': {\r\n 'name': 'Portuguese',\r\n 'keys': [\r\n [\r\n ['\\\\', '|'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00a3'],\r\n ['4', '$', '\\u00a7'],\r\n ['5', '%'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['\\'', '?'],\r\n ['\\u00ab', '\\u00bb'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['+', '*', '\\u00a8'],\r\n ['\\u00b4', '`'],\r\n ['~', '^']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00e7', '\\u00c7'],\r\n ['\\u00ba', '\\u00aa'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['pt']\r\n },\r\n 'Rom\\u00e2n\\u0103': {\r\n 'name': 'Romanian',\r\n 'keys': [\r\n [\r\n ['\\u201E', '\\u201D', '`', '~'],\r\n ['1', '!', '~'],\r\n ['2', '@', '\\u02C7'],\r\n ['3', '#', '^'],\r\n ['4', '$', '\\u02D8'],\r\n ['5', '%', '\\u00B0'],\r\n ['6', '^', '\\u02DB'],\r\n ['7', '&', '`'],\r\n ['8', '*', '\\u02D9'],\r\n ['9', '(', '\\u00B4'],\r\n ['0', ')', '\\u02DD'],\r\n ['-', '_', '\\u00A8'],\r\n ['=', '+', '\\u00B8', '\\u00B1'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P', '\\u00A7'],\r\n ['\\u0103', '\\u0102', '[', '{'],\r\n ['\\u00EE', '\\u00CE', ']', '}'],\r\n ['\\u00E2', '\\u00C2', '\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u00df'],\r\n ['d', 'D', '\\u00f0', '\\u00D0'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L', '\\u0142', '\\u0141'],\r\n ['\\u0219', '\\u0218', ';', ':'],\r\n ['\\u021B', '\\u021A', '\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C', '\\u00A9'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';', '<', '\\u00AB'],\r\n ['.', ':', '>', '\\u00BB'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ro']\r\n },\r\n '\\u0420\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439': {\r\n 'name': 'Russian',\r\n 'keys': [\r\n [\r\n ['\\u0451', '\\u0401'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044D', '\\u042D'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['/', '|'],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044E', '\\u042E'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['ru']\r\n },\r\n 'Schweizerdeutsch': {\r\n 'name': 'Swiss German',\r\n 'keys': [\r\n [\r\n ['\\u00A7', '\\u00B0'],\r\n ['1', '+', '\\u00A6'],\r\n ['2', '\"', '@'],\r\n ['3', '*', '#'],\r\n ['4', '\\u00E7', '\\u00B0'],\r\n ['5', '%', '\\u00A7'],\r\n ['6', '&', '\\u00AC'],\r\n ['7', '/', '|'],\r\n ['8', '(', '\\u00A2'],\r\n ['9', ')'],\r\n ['0', '='],\r\n ['\\'', '?', '\\u00B4'],\r\n ['^', '`', '~'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00FC', '\\u00E8', '['],\r\n ['\\u00A8', '!', ']'],\r\n ['$', '\\u00A3', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00F6', '\\u00E9'],\r\n ['\\u00E4', '\\u00E0', '{'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['de-CH']\r\n },\r\n 'Shqip': {\r\n 'name': 'Albanian',\r\n 'keys': [\r\n [\r\n ['\\\\', '|'],\r\n ['1', '!', '~'],\r\n ['2', '\"', '\\u02C7'],\r\n ['3', '#', '^'],\r\n ['4', '$', '\\u02D8'],\r\n ['5', '%', '\\u00B0'],\r\n ['6', '^', '\\u02DB'],\r\n ['7', '&', '`'],\r\n ['8', '*', '\\u02D9'],\r\n ['9', '(', '\\u00B4'],\r\n ['0', ')', '\\u02DD'],\r\n ['-', '_', '\\u00A8'],\r\n ['=', '+', '\\u00B8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\\\'],\r\n ['w', 'W', '|'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00E7', '\\u00C7', '\\u00F7'],\r\n ['[', '{', '\\u00DF'],\r\n [']', '}', '\\u00A4']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u0111'],\r\n ['d', 'D', '\\u0110'],\r\n ['f', 'F', '['],\r\n ['g', 'G', ']'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K', '\\u0142'],\r\n ['l', 'L', '\\u0141'],\r\n ['\\u00EB', '\\u00CB', '$'],\r\n ['@', '\\'', '\\u00D7'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V', '@'],\r\n ['b', 'B', '{'],\r\n ['n', 'N', '}'],\r\n ['m', 'M', '\\u00A7'],\r\n [',', ';', '<'],\r\n ['.', ':', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['sq']\r\n },\r\n 'Sloven\\u010dina': {\r\n 'name': 'Slovak',\r\n 'keys': [\r\n [\r\n [';', '\\u00b0'],\r\n ['+', '1', '~'],\r\n ['\\u013E', '2', '\\u02C7'],\r\n ['\\u0161', '3', '^'],\r\n ['\\u010D', '4', '\\u02D8'],\r\n ['\\u0165', '5', '\\u00B0'],\r\n ['\\u017E', '6', '\\u02DB'],\r\n ['\\u00FD', '7', '`'],\r\n ['\\u00E1', '8', '\\u02D9'],\r\n ['\\u00ED', '9', '\\u00B4'],\r\n ['\\u00E9', '0', '\\u02DD'],\r\n ['=', '%', '\\u00A8'],\r\n ['\\u00B4', '\\u02c7', '\\u00B8'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\\\'],\r\n ['w', 'W', '|'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P', '\\''],\r\n ['\\u00FA', '/', '\\u00F7'],\r\n ['\\u00E4', '(', '\\u00D7'],\r\n ['\\u0148', ')', '\\u00A4']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S', '\\u0111'],\r\n ['d', 'D', '\\u0110'],\r\n ['f', 'F', '['],\r\n ['g', 'G', ']'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K', '\\u0142'],\r\n ['l', 'L', '\\u0141'],\r\n ['\\u00F4', '\"', '$'],\r\n ['\\u00A7', '!', '\\u00DF'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['&', '*', '<'],\r\n ['y', 'Y', '>'],\r\n ['x', 'X', '#'],\r\n ['c', 'C', '&'],\r\n ['v', 'V', '@'],\r\n ['b', 'B', '{'],\r\n ['n', 'N', '}'],\r\n ['m', 'M'],\r\n [',', '?', '<'],\r\n ['.', ':', '>'],\r\n ['-', '_', '*'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['sk']\r\n },\r\n '\\u0441\\u0440\\u043f\\u0441\\u043a\\u0438': {\r\n 'name': 'Serbian Cyrillic',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '&'],\r\n ['7', '/'],\r\n ['8', '('],\r\n ['9', ')'],\r\n ['0', '='],\r\n ['\\'', '?'],\r\n ['+', '*'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0459', '\\u0409'],\r\n ['\\u045a', '\\u040a'],\r\n ['\\u0435', '\\u0415', '\\u20ac'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u043e', '\\u041e'],\r\n ['\\u043f', '\\u041f'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0452', '\\u0402'],\r\n ['\\u0436', '\\u0416']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u0458', '\\u0408'],\r\n ['\\u043a', '\\u041a'],\r\n ['\\u043b', '\\u041b'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u045b', '\\u040b'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>'],\r\n ['\\u0455', '\\u0405'],\r\n ['\\u045f', '\\u040f'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u043d', '\\u041d'],\r\n ['\\u043c', '\\u041c'],\r\n [',', ';', '<'],\r\n ['.', ':', '>'],\r\n ['-', '_', '\\u00a9'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['sr-CYRL']\r\n },\r\n 'Suomi': {\r\n 'name': 'Finnish',\r\n 'keys': [\r\n [\r\n ['\\u00a7', '\\u00BD'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00A3'],\r\n ['4', '\\u00A4', '$'],\r\n ['5', '%', '\\u20AC'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['+', '?', '\\\\'],\r\n ['\\u00B4', '`'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\u00E2', '\\u00C2'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T', '\\u0167', '\\u0166'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I', '\\u00ef', '\\u00CF'],\r\n ['o', 'O', '\\u00f5', '\\u00D5'],\r\n ['p', 'P'],\r\n ['\\u00E5', '\\u00C5'],\r\n ['\\u00A8', '^', '~'],\r\n ['\\'', '*']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00E1', '\\u00C1'],\r\n ['s', 'S', '\\u0161', '\\u0160'],\r\n ['d', 'D', '\\u0111', '\\u0110'],\r\n ['f', 'F', '\\u01e5', '\\u01E4'],\r\n ['g', 'G', '\\u01E7', '\\u01E6'],\r\n ['h', 'H', '\\u021F', '\\u021e'],\r\n ['j', 'J'],\r\n ['k', 'K', '\\u01e9', '\\u01E8'],\r\n ['l', 'L'],\r\n ['\\u00F6', '\\u00D6', '\\u00F8', '\\u00D8'],\r\n ['\\u00E4', '\\u00C4', '\\u00E6', '\\u00C6'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|'],\r\n ['z', 'Z', '\\u017E', '\\u017D'],\r\n ['x', 'X'],\r\n ['c', 'C', '\\u010d', '\\u010C'],\r\n ['v', 'V', '\\u01EF', '\\u01EE'],\r\n ['b', 'B', '\\u0292', '\\u01B7'],\r\n ['n', 'N', '\\u014B', '\\u014A'],\r\n ['m', 'M', '\\u00B5'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt],\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fi']\r\n },\r\n 'Svenska': {\r\n 'name': 'Swedish',\r\n 'keys': [\r\n [\r\n ['\\u00a7', '\\u00bd'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '#', '\\u00a3'],\r\n ['4', '\\u00a4', '$'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['+', '?', '\\\\'],\r\n ['\\u00b4', '`'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00e5', '\\u00c5'],\r\n ['\\u00a8', '^', '~'],\r\n ['\\'', '*']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00f6', '\\u00d6'],\r\n ['\\u00e4', '\\u00c4'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M', '\\u03bc', '\\u039c'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['sv']\r\n },\r\n 'Swiss Fran\\u00e7ais': {\r\n 'name': 'Swiss French',\r\n 'keys': [\r\n [\r\n ['\\u00A7', '\\u00B0'],\r\n ['1', '+', '\\u00A6'],\r\n ['2', '\"', '@'],\r\n ['3', '*', '#'],\r\n ['4', '\\u00E7', '\\u00B0'],\r\n ['5', '%', '\\u00A7'],\r\n ['6', '&', '\\u00AC'],\r\n ['7', '/', '|'],\r\n ['8', '(', '\\u00A2'],\r\n ['9', ')'],\r\n ['0', '='],\r\n ['\\'', '?', '\\u00B4'],\r\n ['^', '`', '~'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20AC'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['z', 'Z'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u00E8', '\\u00FC', '['],\r\n ['\\u00A8', '!', ']'],\r\n ['$', '\\u00A3', '}']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u00E9', '\\u00F6'],\r\n ['\\u00E0', '\\u00E4', '{'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '\\\\'],\r\n ['y', 'Y'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', ';'],\r\n ['.', ':'],\r\n ['-', '_'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['fr-CH']\r\n },\r\n '\\u0723\\u0718\\u072a\\u071d\\u071d\\u0710': {\r\n 'name': 'Syriac',\r\n 'keys': [\r\n [\r\n ['\\u070f', '\\u032e', '\\u0651', '\\u0651'],\r\n ['1', '!', '\\u0701', '\\u0701'],\r\n ['2', '\\u030a', '\\u0702', '\\u0702'],\r\n ['3', '\\u0325', '\\u0703', '\\u0703'],\r\n ['4', '\\u0749', '\\u0704', '\\u0704'],\r\n ['5', '\\u2670', '\\u0705', '\\u0705'],\r\n ['6', '\\u2671', '\\u0708', '\\u0708'],\r\n ['7', '\\u070a', '\\u0709', '\\u0709'],\r\n ['8', '\\u00bb', '\\u070B', '\\u070B'],\r\n ['9', ')', '\\u070C', '\\u070C'],\r\n ['0', '(', '\\u070D', '\\u070D'],\r\n ['-', '\\u00ab', '\\u250C', '\\u250C'],\r\n ['=', '+', '\\u2510', '\\u2510'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0714', '\\u0730', '\\u064E', '\\u064E'],\r\n ['\\u0728', '\\u0733', '\\u064B', '\\u064B'],\r\n ['\\u0716', '\\u0736', '\\u064F', '\\u064F'],\r\n ['\\u0729', '\\u073A', '\\u064C', '\\u064C'],\r\n ['\\u0726', '\\u073D', '\\u0653', '\\u0653'],\r\n ['\\u071c', '\\u0740', '\\u0654', '\\u0654'],\r\n ['\\u0725', '\\u0741', '\\u0747', '\\u0747'],\r\n ['\\u0717', '\\u0308', '\\u0743', '\\u0743'],\r\n ['\\u071e', '\\u0304', '\\u0745', '\\u0745'],\r\n ['\\u071a', '\\u0307', '\\u032D', '\\u032D'],\r\n ['\\u0713', '\\u0303'],\r\n ['\\u0715', '\\u074A'],\r\n ['\\u0706', ':']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u072b', '\\u0731', '\\u0650', '\\u0650'],\r\n ['\\u0723', '\\u0734', '\\u064d', '\\u064d'],\r\n ['\\u071d', '\\u0737'],\r\n ['\\u0712', '\\u073b', '\\u0621', '\\u0621'],\r\n ['\\u0720', '\\u073e', '\\u0655', '\\u0655'],\r\n ['\\u0710', '\\u0711', '\\u0670', '\\u0670'],\r\n ['\\u072c', '\\u0640', '\\u0748', '\\u0748'],\r\n ['\\u0722', '\\u0324', '\\u0744', '\\u0744'],\r\n ['\\u0721', '\\u0331', '\\u0746', '\\u0746'],\r\n ['\\u071f', '\\u0323'],\r\n ['\\u071b', '\\u0330'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n [']', '\\u0732'],\r\n ['[', '\\u0735', '\\u0652', '\\u0652'],\r\n ['\\u0724', '\\u0738'],\r\n ['\\u072a', '\\u073c', '\\u200D'],\r\n ['\\u0727', '\\u073f', '\\u200C'],\r\n ['\\u0700', '\\u0739', '\\u200E'],\r\n ['.', '\\u0742', '\\u200F'],\r\n ['\\u0718', '\\u060c'],\r\n ['\\u0719', '\\u061b'],\r\n ['\\u0707', '\\u061F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['syc']\r\n },\r\n '\\u0ba4\\u0bae\\u0bbf\\u0bb4\\u0bcd': {\r\n 'name': 'Tamil',\r\n 'keys': [\r\n [\r\n ['\\u0BCA', '\\u0B92'],\r\n ['1', '', '\\u0BE7'],\r\n ['2', '', '\\u0BE8'],\r\n ['3', '', '\\u0BE9'],\r\n ['4', '', '\\u0BEA'],\r\n ['5', '', '\\u0BEB'],\r\n ['6', '\\u0BA4\\u0BCD\\u0BB0', '\\u0BEC'],\r\n ['7', '\\u0B95\\u0BCD\\u0BB7', '\\u0BED'],\r\n ['8', '\\u0BB7\\u0BCD\\u0BB0', '\\u0BEE'],\r\n ['9', '', '\\u0BEF'],\r\n ['0', '', '\\u0BF0'],\r\n ['-', '\\u0B83', '\\u0BF1'],\r\n ['', '', '\\u0BF2'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0BCC', '\\u0B94'],\r\n ['\\u0BC8', '\\u0B90'],\r\n ['\\u0BBE', '\\u0B86'],\r\n ['\\u0BC0', '\\u0B88'],\r\n ['\\u0BC2', '\\u0B8A'],\r\n ['\\u0BAA', '\\u0BAA'],\r\n ['\\u0BB9', '\\u0B99'],\r\n ['\\u0B95', '\\u0B95'],\r\n ['\\u0BA4', '\\u0BA4'],\r\n ['\\u0B9C', '\\u0B9A'],\r\n ['\\u0B9F', '\\u0B9F'],\r\n ['\\u0B9E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0BCB', '\\u0B93'],\r\n ['\\u0BC7', '\\u0B8F'],\r\n ['\\u0BCD', '\\u0B85'],\r\n ['\\u0BBF', '\\u0B87'],\r\n ['\\u0BC1', '\\u0B89'],\r\n ['\\u0BAA', '\\u0BAA'],\r\n ['\\u0BB0', '\\u0BB1'],\r\n ['\\u0B95', '\\u0B95'],\r\n ['\\u0BA4', '\\u0BA4'],\r\n ['\\u0B9A', '\\u0B9A'],\r\n ['\\u0B9F', '\\u0B9F'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0BC6', '\\u0B8E'],\r\n [''],\r\n ['\\u0BAE', '\\u0BA3'],\r\n ['\\u0BA8', '\\u0BA9'],\r\n ['\\u0BB5', '\\u0BB4'],\r\n ['\\u0BB2', '\\u0BB3'],\r\n ['\\u0BB8', '\\u0BB7'],\r\n [',', '\\u0BB7'],\r\n ['.', '\\u0BB8\\u0BCD\\u0BB0\\u0BC0'],\r\n ['\\u0BAF', '\\u0BAF'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['ta']\r\n },\r\n '\\u0c24\\u0c46\\u0c32\\u0c41\\u0c17\\u0c41': {\r\n 'name': 'Telugu',\r\n 'keys': [\r\n [\r\n ['\\u0C4A', '\\u0C12'],\r\n ['1', '', '\\u0C67'],\r\n ['2', '', '\\u0C68'],\r\n ['3', '\\u0C4D\\u0C30', '\\u0C69'],\r\n ['4', '', '\\u0C6A'],\r\n ['5', '\\u0C1C\\u0C4D\\u0C1E', '\\u0C6B'],\r\n ['6', '\\u0C24\\u0C4D\\u0C30', '\\u0C6C'],\r\n ['7', '\\u0C15\\u0C4D\\u0C37', '\\u0C6D'],\r\n ['8', '\\u0C36\\u0C4D\\u0C30', '\\u0C6E'],\r\n ['9', '(', '\\u0C6F'],\r\n ['0', ')', '\\u0C66'],\r\n ['-', '\\u0C03'],\r\n ['\\u0C43', '\\u0C0B', '\\u0C44'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0C4C', '\\u0C14'],\r\n ['\\u0C48', '\\u0C10', '\\u0C56'],\r\n ['\\u0C3E', '\\u0C06'],\r\n ['\\u0C40', '\\u0C08', '', '\\u0C61'],\r\n ['\\u0C42', '\\u0C0A'],\r\n ['\\u0C2C'],\r\n ['\\u0C39', '\\u0C19'],\r\n ['\\u0C17', '\\u0C18'],\r\n ['\\u0C26', '\\u0C27'],\r\n ['\\u0C1C', '\\u0C1D'],\r\n ['\\u0C21', '\\u0C22'],\r\n ['', '\\u0C1E']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0C4B', '\\u0C13'],\r\n ['\\u0C47', '\\u0C0F', '\\u0C55'],\r\n ['\\u0C4D', '\\u0C05'],\r\n ['\\u0C3F', '\\u0C07', '', '\\u0C0C'],\r\n ['\\u0C41', '\\u0C09'],\r\n ['\\u0C2A', '\\u0C2B'],\r\n ['\\u0C30', '\\u0C31'],\r\n ['\\u0C15', '\\u0C16'],\r\n ['\\u0C24', '\\u0C25'],\r\n ['\\u0C1A', '\\u0C1B'],\r\n ['\\u0C1F', '\\u0C25'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0C46', '\\u0C0E'],\r\n ['\\u0C02', '\\u0C01'],\r\n ['\\u0C2E', '\\u0C23'],\r\n ['\\u0C28', '\\u0C28'],\r\n ['\\u0C35'],\r\n ['\\u0C32', '\\u0C33'],\r\n ['\\u0C38', '\\u0C36'],\r\n [',', '\\u0C37'],\r\n ['.'],\r\n ['\\u0C2F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['te']\r\n },\r\n 'Ti\\u1ebfng Vi\\u1ec7t': {\r\n 'name': 'Vietnamese',\r\n 'keys': [\r\n [\r\n ['`', '~', '`', '~'],\r\n ['\\u0103', '\\u0102', '1', '!'],\r\n ['\\u00E2', '\\u00C2', '2', '@'],\r\n ['\\u00EA', '\\u00CA', '3', '#'],\r\n ['\\u00F4', '\\u00D4', '4', '$'],\r\n ['\\u0300', '\\u0300', '5', '%'],\r\n ['\\u0309', '\\u0309', '6', '^'],\r\n ['\\u0303', '\\u0303', '7', '&'],\r\n ['\\u0301', '\\u0301', '8', '*'],\r\n ['\\u0323', '\\u0323', '9', '('],\r\n ['\\u0111', '\\u0110', '0', ')'],\r\n ['-', '_', '-', '_'],\r\n ['\\u20AB', '+', '=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', 'q', 'Q'],\r\n ['w', 'W', 'w', 'W'],\r\n ['e', 'E', 'e', 'E'],\r\n ['r', 'R', 'r', 'R'],\r\n ['t', 'T', 't', 'T'],\r\n ['y', 'Y', 'y', 'Y'],\r\n ['u', 'U', 'u', 'U'],\r\n ['i', 'I', 'i', 'I'],\r\n ['o', 'O', 'o', 'O'],\r\n ['p', 'P', 'p', 'P'],\r\n ['\\u01B0', '\\u01AF', '[', '{'],\r\n ['\\u01A1', '\\u01A0', ']', '}'],\r\n ['\\\\', '|', '\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', 'a', 'A'],\r\n ['s', 'S', 's', 'S'],\r\n ['d', 'D', 'd', 'D'],\r\n ['f', 'F', 'f', 'F'],\r\n ['g', 'G', 'g', 'G'],\r\n ['h', 'H', 'h', 'H'],\r\n ['j', 'J', 'j', 'J'],\r\n ['k', 'K', 'k', 'K'],\r\n ['l', 'L', 'l', 'L'],\r\n [';', ':', ';', ':'],\r\n ['\\'', '\"', '\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z', 'z', 'Z'],\r\n ['x', 'X', 'x', 'X'],\r\n ['c', 'C', 'c', 'C'],\r\n ['v', 'V', 'v', 'V'],\r\n ['b', 'B', 'b', 'B'],\r\n ['n', 'N', 'n', 'N'],\r\n ['m', 'M', 'm', 'M'],\r\n [',', '<', ',', '<'],\r\n ['.', '>', '.', '>'],\r\n ['/', '?', '/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['vi']\r\n },\r\n '\\u0e44\\u0e17\\u0e22 Kedmanee': {\r\n 'name': 'Thai Kedmanee',\r\n 'keys': [\r\n [\r\n ['_', '%'],\r\n ['\\u0E45', '+'],\r\n ['/', '\\u0E51'],\r\n ['-', '\\u0E52'],\r\n ['\\u0E20', '\\u0E53'],\r\n ['\\u0E16', '\\u0E54'],\r\n ['\\u0E38', '\\u0E39'],\r\n ['\\u0E36', '\\u0E3F'],\r\n ['\\u0E04', '\\u0E55'],\r\n ['\\u0E15', '\\u0E56'],\r\n ['\\u0E08', '\\u0E57'],\r\n ['\\u0E02', '\\u0E58'],\r\n ['\\u0E0A', '\\u0E59'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0E46', '\\u0E50'],\r\n ['\\u0E44', '\"'],\r\n ['\\u0E33', '\\u0E0E'],\r\n ['\\u0E1E', '\\u0E11'],\r\n ['\\u0E30', '\\u0E18'],\r\n ['\\u0E31', '\\u0E4D'],\r\n ['\\u0E35', '\\u0E4A'],\r\n ['\\u0E23', '\\u0E13'],\r\n ['\\u0E19', '\\u0E2F'],\r\n ['\\u0E22', '\\u0E0D'],\r\n ['\\u0E1A', '\\u0E10'],\r\n ['\\u0E25', ','],\r\n ['\\u0E03', '\\u0E05']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0E1F', '\\u0E24'],\r\n ['\\u0E2B', '\\u0E06'],\r\n ['\\u0E01', '\\u0E0F'],\r\n ['\\u0E14', '\\u0E42'],\r\n ['\\u0E40', '\\u0E0C'],\r\n ['\\u0E49', '\\u0E47'],\r\n ['\\u0E48', '\\u0E4B'],\r\n ['\\u0E32', '\\u0E29'],\r\n ['\\u0E2A', '\\u0E28'],\r\n ['\\u0E27', '\\u0E0B'],\r\n ['\\u0E07', '.'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0E1C', '('],\r\n ['\\u0E1B', ')'],\r\n ['\\u0E41', '\\u0E09'],\r\n ['\\u0E2D', '\\u0E2E'],\r\n ['\\u0E34', '\\u0E3A'],\r\n ['\\u0E37', '\\u0E4C'],\r\n ['\\u0E17', '?'],\r\n ['\\u0E21', '\\u0E12'],\r\n ['\\u0E43', '\\u0E2C'],\r\n ['\\u0E1D', '\\u0E26'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['th']\r\n },\r\n '\\u0e44\\u0e17\\u0e22 Pattachote': {\r\n 'name': 'Thai Pattachote',\r\n 'keys': [\r\n [\r\n ['_', '\\u0E3F'],\r\n ['=', '+'],\r\n ['\\u0E52', '\"'],\r\n ['\\u0E53', '/'],\r\n ['\\u0E54', ','],\r\n ['\\u0E55', '?'],\r\n ['\\u0E39', '\\u0E38'],\r\n ['\\u0E57', '_'],\r\n ['\\u0E58', '.'],\r\n ['\\u0E59', '('],\r\n ['\\u0E50', ')'],\r\n ['\\u0E51', '-'],\r\n ['\\u0E56', '%'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0E47', '\\u0E4A'],\r\n ['\\u0E15', '\\u0E24'],\r\n ['\\u0E22', '\\u0E46'],\r\n ['\\u0E2D', '\\u0E0D'],\r\n ['\\u0E23', '\\u0E29'],\r\n ['\\u0E48', '\\u0E36'],\r\n ['\\u0E14', '\\u0E1D'],\r\n ['\\u0E21', '\\u0E0B'],\r\n ['\\u0E27', '\\u0E16'],\r\n ['\\u0E41', '\\u0E12'],\r\n ['\\u0E43', '\\u0E2F'],\r\n ['\\u0E0C', '\\u0E26'],\r\n ['\\uF8C7', '\\u0E4D']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0E49', '\\u0E4B'],\r\n ['\\u0E17', '\\u0E18'],\r\n ['\\u0E07', '\\u0E33'],\r\n ['\\u0E01', '\\u0E13'],\r\n ['\\u0E31', '\\u0E4C'],\r\n ['\\u0E35', '\\u0E37'],\r\n ['\\u0E32', '\\u0E1C'],\r\n ['\\u0E19', '\\u0E0A'],\r\n ['\\u0E40', '\\u0E42'],\r\n ['\\u0E44', '\\u0E06'],\r\n ['\\u0E02', '\\u0E11'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0E1A', '\\u0E0E'],\r\n ['\\u0E1B', '\\u0E0F'],\r\n ['\\u0E25', '\\u0E10'],\r\n ['\\u0E2B', '\\u0E20'],\r\n ['\\u0E34', '\\u0E31'],\r\n ['\\u0E04', '\\u0E28'],\r\n ['\\u0E2A', '\\u0E2E'],\r\n ['\\u0E30', '\\u0E1F'],\r\n ['\\u0E08', '\\u0E09'],\r\n ['\\u0E1E', '\\u0E2C'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ]\r\n },\r\n '\\u0422\\u0430\\u0442\\u0430\\u0440\\u0447\\u0430': {\r\n 'name': 'Tatar',\r\n 'keys': [\r\n [\r\n ['\\u04BB', '\\u04BA', '\\u0451', '\\u0401'],\r\n ['1', '!'],\r\n ['2', '\"', '@'],\r\n ['3', '\\u2116', '#'],\r\n ['4', ';', '$'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?', '['],\r\n ['8', '*', ']'],\r\n ['9', '(', '{'],\r\n ['0', ')', '}'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u04E9', '\\u04E8', '\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u04D9', '\\u04D8', '\\u0449', '\\u0429'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u04AF', '\\u04AE', '\\u044A', '\\u042A'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u044B', '\\u042B'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u04A3', '\\u04A2', '\\u0436', '\\u0416'],\r\n ['\\u044D', '\\u042D', '\\''],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0491', '\\u0490'],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u0497', '\\u0496', '\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411', '<'],\r\n ['\\u044E', '\\u042E', '>'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['tt']\r\n },\r\n 'T\\u00fcrk\\u00e7e F': {\r\n 'name': 'Turkish F',\r\n 'keys': [\r\n [\r\n ['+', '*', '\\u00ac'],\r\n ['1', '!', '\\u00b9', '\\u00a1'],\r\n ['2', '\"', '\\u00b2'],\r\n ['3', '^', '#', '\\u00b3'],\r\n ['4', '$', '\\u00bc', '\\u00a4'],\r\n ['5', '%', '\\u00bd'],\r\n ['6', '&', '\\u00be'],\r\n ['7', '\\'', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['/', '?', '\\\\', '\\u00bf'],\r\n ['-', '_', '|'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['f', 'F', '@'],\r\n ['g', 'G'],\r\n ['\\u011f', '\\u011e'],\r\n ['\\u0131', 'I', '\\u00b6', '\\u00ae'],\r\n ['o', 'O'],\r\n ['d', 'D', '\\u00a5'],\r\n ['r', 'R'],\r\n ['n', 'N'],\r\n ['h', 'H', '\\u00f8', '\\u00d8'],\r\n ['p', 'P', '\\u00a3'],\r\n ['q', 'Q', '\\u00a8'],\r\n ['w', 'W', '~'],\r\n ['x', 'X', '`']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['u', 'U', '\\u00e6', '\\u00c6'],\r\n ['i', '\\u0130', '\\u00df', '\\u00a7'],\r\n ['e', 'E', '\\u20ac'],\r\n ['a', 'A', ' ', '\\u00aa'],\r\n ['\\u00fc', '\\u00dc'],\r\n ['t', 'T'],\r\n ['k', 'K'],\r\n ['m', 'M'],\r\n ['l', 'L'],\r\n ['y', 'Y', '\\u00b4'],\r\n ['\\u015f', '\\u015e'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|', '\\u00a6'],\r\n ['j', 'J', '\\u00ab', '<'],\r\n ['\\u00f6', '\\u00d6', '\\u00bb', '>'],\r\n ['v', 'V', '\\u00a2', '\\u00a9'],\r\n ['c', 'C'],\r\n ['\\u00e7', '\\u00c7'],\r\n ['z', 'Z'],\r\n ['s', 'S', '\\u00b5', '\\u00ba'],\r\n ['b', 'B', '\\u00d7'],\r\n ['.', ':', '\\u00f7'],\r\n [',', ';', '-'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ]\r\n },\r\n 'T\\u00fcrk\\u00e7e Q': {\r\n 'name': 'Turkish Q',\r\n 'keys': [\r\n [\r\n ['\"', '\\u00e9', '<'],\r\n ['1', '!', '>'],\r\n ['2', '\\'', '\\u00a3'],\r\n ['3', '^', '#'],\r\n ['4', '+', '$'],\r\n ['5', '%', '\\u00bd'],\r\n ['6', '&'],\r\n ['7', '/', '{'],\r\n ['8', '(', '['],\r\n ['9', ')', ']'],\r\n ['0', '=', '}'],\r\n ['*', '?', '\\\\'],\r\n ['-', '_', '|'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '@'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u20ac'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['\\u0131', 'I', 'i', '\\u0130'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['\\u011f', '\\u011e', '\\u00a8'],\r\n ['\\u00fc', '\\u00dc', '~'],\r\n [',', ';', '`']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00e6', '\\u00c6'],\r\n ['s', 'S', '\\u00df'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n ['\\u015f', '\\u015e', '\\u00b4'],\r\n ['i', '\\u0130'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['<', '>', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n ['\\u00f6', '\\u00d6'],\r\n ['\\u00e7', '\\u00c7'],\r\n ['.', ':'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['tr']\r\n },\r\n '\\u0423\\u043a\\u0440\\u0430\\u0457\\u043d\\u0441\\u044c\\u043a\\u0430': {\r\n 'name': 'Ukrainian',\r\n 'keys': [\r\n [\r\n ['\\u00b4', '~'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u0449', '\\u0429'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u0457', '\\u0407'],\r\n ['\\u0491', '\\u0490']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u0456', '\\u0406'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u0454', '\\u0404'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044E', '\\u042E'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['uk']\r\n },\r\n 'United Kingdom': {\r\n 'name': 'United Kingdom',\r\n 'keys': [\r\n [\r\n ['`', '\\u00ac', '\\u00a6'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u00a3'],\r\n ['4', '$', '\\u20ac'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E', '\\u00e9', '\\u00c9'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U', '\\u00fa', '\\u00da'],\r\n ['i', 'I', '\\u00ed', '\\u00cd'],\r\n ['o', 'O', '\\u00f3', '\\u00d3'],\r\n ['p', 'P'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['#', '~']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00e1', '\\u00c1'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':'],\r\n ['\\'', '@'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\\\', '|'],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr, KeyboardClassKey.AltGr]\r\n ]\r\n ],\r\n 'lang': ['en-GB']\r\n },\r\n '\\u0627\\u0631\\u062f\\u0648': {\r\n 'name': 'Urdu',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '\\u066A'],\r\n ['6', '^'],\r\n ['7', '\\u06D6'],\r\n ['8', '\\u066D'],\r\n ['9', ')'],\r\n ['0', '('],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0637', '\\u0638'],\r\n ['\\u0635', '\\u0636'],\r\n ['\\u06be', '\\u0630'],\r\n ['\\u062f', '\\u0688'],\r\n ['\\u0679', '\\u062B'],\r\n ['\\u067e', '\\u0651'],\r\n ['\\u062a', '\\u06C3'],\r\n ['\\u0628', '\\u0640'],\r\n ['\\u062c', '\\u0686'],\r\n ['\\u062d', '\\u062E'],\r\n [']', '}'],\r\n ['[', '{'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0645', '\\u0698'],\r\n ['\\u0648', '\\u0632'],\r\n ['\\u0631', '\\u0691'],\r\n ['\\u0646', '\\u06BA'],\r\n ['\\u0644', '\\u06C2'],\r\n ['\\u06c1', '\\u0621'],\r\n ['\\u0627', '\\u0622'],\r\n ['\\u06A9', '\\u06AF'],\r\n ['\\u06CC', '\\u064A'],\r\n ['\\u061b', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0642', '\\u200D'],\r\n ['\\u0641', '\\u200C'],\r\n ['\\u06D2', '\\u06D3'],\r\n ['\\u0633', '\\u200E'],\r\n ['\\u0634', '\\u0624'],\r\n ['\\u063a', '\\u0626'],\r\n ['\\u0639', '\\u200F'],\r\n ['\\u060C', '>'],\r\n ['\\u06D4', '<'],\r\n ['/', '\\u061F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['ur']\r\n },\r\n '\\u0627\\u0631\\u062f\\u0648 Phonetic': {\r\n 'name': 'Urdu Phonetic',\r\n 'keys': [\r\n [\r\n ['\\u064D', '\\u064B', '~'],\r\n ['\\u06F1', '1', '!'],\r\n ['\\u06F2', '2', '@'],\r\n ['\\u06F3', '3', '#'],\r\n ['\\u06F4', '4', '$'],\r\n ['\\u06F5', '5', '\\u066A'],\r\n ['\\u06F6', '6', '^'],\r\n ['\\u06F7', '7', '&'],\r\n ['\\u06F8', '8', '*'],\r\n ['\\u06F9', '9', '('],\r\n ['\\u06F0', '0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0642', '\\u0652'],\r\n ['\\u0648', '\\u0651', '\\u0602'],\r\n ['\\u0639', '\\u0670', '\\u0656'],\r\n ['\\u0631', '\\u0691', '\\u0613'],\r\n ['\\u062A', '\\u0679', '\\u0614'],\r\n ['\\u06D2', '\\u064E', '\\u0601'],\r\n ['\\u0621', '\\u0626', '\\u0654'],\r\n ['\\u06CC', '\\u0650', '\\u0611'],\r\n ['\\u06C1', '\\u06C3'],\r\n ['\\u067E', '\\u064F', '\\u0657'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0627', '\\u0622', '\\uFDF2'],\r\n ['\\u0633', '\\u0635', '\\u0610'],\r\n ['\\u062F', '\\u0688', '\\uFDFA'],\r\n ['\\u0641'],\r\n ['\\u06AF', '\\u063A'],\r\n ['\\u062D', '\\u06BE', '\\u0612'],\r\n ['\\u062C', '\\u0636', '\\uFDFB'],\r\n ['\\u06A9', '\\u062E'],\r\n ['\\u0644'],\r\n ['\\u061B', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u0632', '\\u0630', '\\u060F'],\r\n ['\\u0634', '\\u0698', '\\u060E'],\r\n ['\\u0686', '\\u062B', '\\u0603'],\r\n ['\\u0637', '\\u0638'],\r\n ['\\u0628', '', '\\uFDFD'],\r\n ['\\u0646', '\\u06BA', '\\u0600'],\r\n ['\\u0645', '\\u0658'],\r\n ['\\u060C', '', '<'],\r\n ['\\u06D4', '\\u066B', '>'],\r\n ['/', '\\u061F'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ]\r\n },\r\n 'US Standard': {\r\n 'name': 'US Standard',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q'],\r\n ['w', 'W'],\r\n ['e', 'E'],\r\n ['r', 'R'],\r\n ['t', 'T'],\r\n ['y', 'Y'],\r\n ['u', 'U'],\r\n ['i', 'I'],\r\n ['o', 'O'],\r\n ['p', 'P'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A'],\r\n ['s', 'S'],\r\n ['d', 'D'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z'],\r\n ['x', 'X'],\r\n ['c', 'C'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N'],\r\n ['m', 'M'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['en-US']\r\n },\r\n 'US International': {\r\n 'name': 'US International',\r\n 'keys': [\r\n [\r\n ['`', '~'],\r\n ['1', '!', '\\u00a1', '\\u00b9'],\r\n ['2', '@', '\\u00b2'],\r\n ['3', '#', '\\u00b3'],\r\n ['4', '$', '\\u00a4', '\\u00a3'],\r\n ['5', '%', '\\u20ac'],\r\n ['6', '^', '\\u00bc'],\r\n ['7', '&', '\\u00bd'],\r\n ['8', '*', '\\u00be'],\r\n ['9', '(', '\\u2018'],\r\n ['0', ')', '\\u2019'],\r\n ['-', '_', '\\u00a5'],\r\n ['=', '+', '\\u00d7', '\\u00f7'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['q', 'Q', '\\u00e4', '\\u00c4'],\r\n ['w', 'W', '\\u00e5', '\\u00c5'],\r\n ['e', 'E', '\\u00e9', '\\u00c9'],\r\n ['r', 'R', '\\u00ae'],\r\n ['t', 'T', '\\u00fe', '\\u00de'],\r\n ['y', 'Y', '\\u00fc', '\\u00dc'],\r\n ['u', 'U', '\\u00fa', '\\u00da'],\r\n ['i', 'I', '\\u00ed', '\\u00cd'],\r\n ['o', 'O', '\\u00f3', '\\u00d3'],\r\n ['p', 'P', '\\u00f6', '\\u00d6'],\r\n ['[', '{', '\\u00ab'],\r\n [']', '}', '\\u00bb'],\r\n ['\\\\', '|', '\\u00ac', '\\u00a6']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['a', 'A', '\\u00e1', '\\u00c1'],\r\n ['s', 'S', '\\u00df', '\\u00a7'],\r\n ['d', 'D', '\\u00f0', '\\u00d0'],\r\n ['f', 'F'],\r\n ['g', 'G'],\r\n ['h', 'H'],\r\n ['j', 'J'],\r\n ['k', 'K'],\r\n ['l', 'L', '\\u00f8', '\\u00d8'],\r\n [';', ':', '\\u00b6', '\\u00b0'],\r\n ['\\'', '\"', '\\u00b4', '\\u00a8'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['z', 'Z', '\\u00e6', '\\u00c6'],\r\n ['x', 'X'],\r\n ['c', 'C', '\\u00a9', '\\u00a2'],\r\n ['v', 'V'],\r\n ['b', 'B'],\r\n ['n', 'N', '\\u00f1', '\\u00d1'],\r\n ['m', 'M', '\\u00b5'],\r\n [',', '<', '\\u00e7', '\\u00c7'],\r\n ['.', '>'],\r\n ['/', '?', '\\u00bf'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['en']\r\n },\r\n '\\u040e\\u0437\\u0431\\u0435\\u043a\\u0447\\u0430': {\r\n 'name': 'Uzbek Cyrillic',\r\n 'keys': [\r\n [\r\n ['\\u0451', '\\u0401'],\r\n ['1', '!'],\r\n ['2', '\"'],\r\n ['3', '\\u2116'],\r\n ['4', ';'],\r\n ['5', '%'],\r\n ['6', ':'],\r\n ['7', '?'],\r\n ['8', '*'],\r\n ['9', '('],\r\n ['0', ')'],\r\n ['\\u0493', '\\u0492'],\r\n ['\\u04B3', '\\u04B2'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u0439', '\\u0419'],\r\n ['\\u0446', '\\u0426'],\r\n ['\\u0443', '\\u0423'],\r\n ['\\u043A', '\\u041A'],\r\n ['\\u0435', '\\u0415'],\r\n ['\\u043D', '\\u041D'],\r\n ['\\u0433', '\\u0413'],\r\n ['\\u0448', '\\u0428'],\r\n ['\\u045E', '\\u040E'],\r\n ['\\u0437', '\\u0417'],\r\n ['\\u0445', '\\u0425'],\r\n ['\\u044A', '\\u042A'],\r\n ['\\\\', '/']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u0444', '\\u0424'],\r\n ['\\u049B', '\\u049A'],\r\n ['\\u0432', '\\u0412'],\r\n ['\\u0430', '\\u0410'],\r\n ['\\u043F', '\\u041F'],\r\n ['\\u0440', '\\u0420'],\r\n ['\\u043E', '\\u041E'],\r\n ['\\u043B', '\\u041B'],\r\n ['\\u0434', '\\u0414'],\r\n ['\\u0436', '\\u0416'],\r\n ['\\u044D', '\\u042D'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u044F', '\\u042F'],\r\n ['\\u0447', '\\u0427'],\r\n ['\\u0441', '\\u0421'],\r\n ['\\u043C', '\\u041C'],\r\n ['\\u0438', '\\u0418'],\r\n ['\\u0442', '\\u0422'],\r\n ['\\u044C', '\\u042C'],\r\n ['\\u0431', '\\u0411'],\r\n ['\\u044E', '\\u042E'],\r\n ['.', ','],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['uz']\r\n },\r\n '\\u05d9\\u05d9\\u05b4\\u05d3\\u05d9\\u05e9': {\r\n 'name': 'Yiddish',\r\n 'keys': [\r\n [\r\n [';', '~', '\\u05B0'],\r\n ['1', '!', '\\u05B1'],\r\n ['2', '@', '\\u05B2'],\r\n ['3', '#', '\\u05B3'],\r\n ['4', '$', '\\u05B4'],\r\n ['5', '%', '\\u05B5'],\r\n ['6', '^', '\\u05B6'],\r\n ['7', '*', '\\u05B7'],\r\n ['8', '&', '\\u05B8'],\r\n ['9', '(', '\\u05C2'],\r\n ['0', ')', '\\u05C1'],\r\n ['-', '_', '\\u05B9'],\r\n ['=', '+', '\\u05BC'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['/', '\\u201F', '\\u201F'],\r\n ['\\'', '\\u201E', '\\u201E'],\r\n ['\\u05E7', '`', '`'],\r\n ['\\u05E8', '\\uFB2F', '\\uFB2F'],\r\n ['\\u05D0', '\\uFB2E', '\\uFB2E'],\r\n ['\\u05D8', '\\u05F0', '\\u05F0'],\r\n ['\\u05D5', '\\uFB35', '\\uFB35'],\r\n ['\\u05DF', '\\uFB4B', '\\uFB4B'],\r\n ['\\u05DD', '\\uFB4E', '\\uFB4E'],\r\n ['\\u05E4', '\\uFB44', '\\uFB44'],\r\n ['[', '{', '\\u05BD'],\r\n [']', '}', '\\u05BF'],\r\n ['\\\\', '|', '\\u05BB']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u05E9', '\\uFB2A', '\\uFB2A'],\r\n ['\\u05D3', '\\uFB2B', '\\uFB2B'],\r\n ['\\u05D2'],\r\n ['\\u05DB', '\\uFB3B', '\\uFB3B'],\r\n ['\\u05E2', '\\u05F1', '\\u05F1'],\r\n ['\\u05D9', '\\uFB1D', '\\uFB1D'],\r\n ['\\u05D7', '\\uFF1F', '\\uFF1F'],\r\n ['\\u05DC', '\\u05F2', '\\u05F2'],\r\n ['\\u05DA'],\r\n ['\\u05E3', ':', '\\u05C3'],\r\n [',', '\"', '\\u05C0'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u05D6', '\\u2260', '\\u2260'],\r\n ['\\u05E1', '\\uFB4C', '\\uFB4C'],\r\n ['\\u05D1', '\\uFB31', '\\uFB31'],\r\n ['\\u05D4', '\\u05BE', '\\u05BE'],\r\n ['\\u05E0', '\\u2013', '\\u2013'],\r\n ['\\u05DE', '\\u2014', '\\u2014'],\r\n ['\\u05E6', '\\uFB4A', '\\uFB4A'],\r\n ['\\u05EA', '<', '\\u05F3'],\r\n ['\\u05E5', '>', '\\u05F4'],\r\n ['.', '?', '\\u20AA'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['yi']\r\n },\r\n '\\u05d9\\u05d9\\u05b4\\u05d3\\u05d9\\u05e9 \\u05dc\\u05e2\\u05d1\\u05d8': {\r\n 'name': 'Yiddish (Yidish Lebt)',\r\n 'keys': [\r\n [\r\n [';', '~'],\r\n ['1', '!', '\\u05B2', '\\u05B2'],\r\n ['2', '@', '\\u05B3', '\\u05B3'],\r\n ['3', '#', '\\u05B1', '\\u05B1'],\r\n ['4', '$', '\\u05B4', '\\u05B4'],\r\n ['5', '%', '\\u05B5', '\\u05B5'],\r\n ['6', '^', '\\u05B7', '\\u05B7'],\r\n ['7', '&', '\\u05B8', '\\u05B8'],\r\n ['8', '*', '\\u05BB', '\\u05BB'],\r\n ['9', ')', '\\u05B6', '\\u05B6'],\r\n ['0', '(', '\\u05B0', '\\u05B0'],\r\n ['-', '_', '\\u05BF', '\\u05BF'],\r\n ['=', '+', '\\u05B9', '\\u05B9'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['/', '', '\\u05F4', '\\u05F4'],\r\n ['\\'', '', '\\u05F3', '\\u05F3'],\r\n ['\\u05E7', '', '\\u20AC'],\r\n ['\\u05E8'],\r\n ['\\u05D0', '', '\\u05D0\\u05B7', '\\uFB2E'],\r\n ['\\u05D8', '', '\\u05D0\\u05B8', '\\uFB2F'],\r\n ['\\u05D5', '\\u05D5\\u05B9', '\\u05D5\\u05BC', '\\uFB35'],\r\n ['\\u05DF', '', '\\u05D5\\u05D5', '\\u05F0'],\r\n ['\\u05DD', '', '\\u05BC'],\r\n ['\\u05E4', '', '\\u05E4\\u05BC', '\\uFB44'],\r\n [']', '}', '\\u201E', '\\u201D'],\r\n ['[', '{', '\\u201A', '\\u2019'],\r\n ['\\\\', '|', '\\u05BE', '\\u05BE']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u05E9', '\\u05E9\\u05C1', '\\u05E9\\u05C2', '\\uFB2B'],\r\n ['\\u05D3', '', '\\u20AA'],\r\n ['\\u05D2', '\\u201E'],\r\n ['\\u05DB', '', '\\u05DB\\u05BC', '\\uFB3B'],\r\n ['\\u05E2', '', '', '\\uFB20'],\r\n ['\\u05D9', '', '\\u05D9\\u05B4', '\\uFB1D'],\r\n ['\\u05D7', '', '\\u05F2\\u05B7', '\\uFB1F'],\r\n ['\\u05DC', '\\u05DC\\u05B9', '\\u05D5\\u05D9', '\\u05F1'],\r\n ['\\u05DA', '', '', '\\u05F2'],\r\n ['\\u05E3', ':', '\\u05E4\\u05BF', '\\uFB4E'],\r\n [',', '\"', ';', '\\u05B2'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u05D6', '', '\\u2013', '\\u2013'],\r\n ['\\u05E1', '', '\\u2014', '\\u2014'],\r\n ['\\u05D1', '\\u05DC\\u05B9', '\\u05D1\\u05BF', '\\uFB4C'],\r\n ['\\u05D4', '', '\\u201D', '\\u201C'],\r\n ['\\u05E0', '', '\\u059C', '\\u059E'],\r\n ['\\u05DE', '', '\\u2019', '\\u2018'],\r\n ['\\u05E6', '', '\\u05E9\\u05C1', '\\uFB2A'],\r\n ['\\u05EA', '>', '\\u05EA\\u05BC', '\\uFB4A'],\r\n ['\\u05E5', '<'],\r\n ['.', '?', '\\u2026'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space],\r\n [KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt, KeyboardClassKey.Alt]\r\n ]\r\n ],\r\n 'lang': ['yi']\r\n },\r\n '\\u4e2d\\u6587\\u6ce8\\u97f3\\u7b26\\u53f7': {\r\n 'name': 'Chinese Bopomofo IME',\r\n 'keys': [\r\n [\r\n ['\\u20AC', '~'],\r\n ['\\u3105', '!'],\r\n ['\\u3109', '@'],\r\n ['\\u02C7', '#'],\r\n ['\\u02CB', '$'],\r\n ['\\u3113', '%'],\r\n ['\\u02CA', '^'],\r\n ['\\u02D9', '&'],\r\n ['\\u311A', '*'],\r\n ['\\u311E', ')'],\r\n ['\\u3122', '('],\r\n ['\\u3126', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u3106', 'q'],\r\n ['\\u310A', 'w'],\r\n ['\\u310D', 'e'],\r\n ['\\u3110', 'r'],\r\n ['\\u3114', 't'],\r\n ['\\u3117', 'y'],\r\n ['\\u3127', 'u'],\r\n ['\\u311B', 'i'],\r\n ['\\u311F', 'o'],\r\n ['\\u3123', 'p'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u3107', 'a'],\r\n ['\\u310B', 's'],\r\n ['\\u310E', 'd'],\r\n ['\\u3111', 'f'],\r\n ['\\u3115', 'g'],\r\n ['\\u3118', 'h'],\r\n ['\\u3128', 'j'],\r\n ['\\u311C', 'k'],\r\n ['\\u3120', 'l'],\r\n ['\\u3124', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\u3108', 'z'],\r\n ['\\u310C', 'x'],\r\n ['\\u310F', 'c'],\r\n ['\\u3112', 'v'],\r\n ['\\u3116', 'b'],\r\n ['\\u3119', 'n'],\r\n ['\\u3129', 'm'],\r\n ['\\u311D', '<'],\r\n ['\\u3121', '>'],\r\n ['\\u3125', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['zh-BOPO']\r\n },\r\n '\\u4e2d\\u6587\\u4ed3\\u9889\\u8f93\\u5165\\u6cd5': {\r\n 'name': 'Chinese Cangjie IME',\r\n 'keys': [\r\n [\r\n ['\\u20AC', '~'],\r\n ['1', '!'],\r\n ['2', '@'],\r\n ['3', '#'],\r\n ['4', '$'],\r\n ['5', '%'],\r\n ['6', '^'],\r\n ['7', '&'],\r\n ['8', '*'],\r\n ['9', ')'],\r\n ['0', '('],\r\n ['-', '_'],\r\n ['=', '+'],\r\n [KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp, KeyboardClassKey.Bksp]\r\n ],\r\n [\r\n [KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab, KeyboardClassKey.Tab],\r\n ['\\u624B', 'q'],\r\n ['\\u7530', 'w'],\r\n ['\\u6C34', 'e'],\r\n ['\\u53E3', 'r'],\r\n ['\\u5EFF', 't'],\r\n ['\\u535C', 'y'],\r\n ['\\u5C71', 'u'],\r\n ['\\u6208', 'i'],\r\n ['\\u4EBA', 'o'],\r\n ['\\u5FC3', 'p'],\r\n ['[', '{'],\r\n [']', '}'],\r\n ['\\\\', '|']\r\n ],\r\n [\r\n [KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps, KeyboardClassKey.Caps],\r\n ['\\u65E5', 'a'],\r\n ['\\u5C38', 's'],\r\n ['\\u6728', 'd'],\r\n ['\\u706B', 'f'],\r\n ['\\u571F', 'g'],\r\n ['\\u7AF9', 'h'],\r\n ['\\u5341', 'j'],\r\n ['\\u5927', 'k'],\r\n ['\\u4E2D', 'l'],\r\n [';', ':'],\r\n ['\\'', '\"'],\r\n [KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter, KeyboardClassKey.Enter]\r\n ],\r\n [\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift],\r\n ['\\uFF3A', 'z'],\r\n ['\\u96E3', 'x'],\r\n ['\\u91D1', 'c'],\r\n ['\\u5973', 'v'],\r\n ['\\u6708', 'b'],\r\n ['\\u5F13', 'n'],\r\n ['\\u4E00', 'm'],\r\n [',', '<'],\r\n ['.', '>'],\r\n ['/', '?'],\r\n [KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift, KeyboardClassKey.Shift]\r\n ],\r\n [\r\n [KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space, KeyboardClassKey.Space]\r\n ]\r\n ],\r\n 'lang': ['zh']\r\n }\r\n};\r\n// aliases\r\nkeyboardLayouts['Hrvatski'] = {\r\n 'name': 'Croatian',\r\n 'keys': keyboardLayouts['Bosanski'].keys.slice(0),\r\n 'lang': ['hr']\r\n};\r\nkeyboardLayouts['Sloven\\u0161\\u010dina'] = {\r\n 'name': 'Slovenian',\r\n 'keys': keyboardLayouts['Bosanski'].keys.slice(0),\r\n 'lang': ['sl']\r\n};\r\nkeyboardLayouts['Srpski'] = {\r\n 'name': 'Serbian Latin',\r\n 'keys': keyboardLayouts['Bosanski'].keys.slice(0),\r\n 'lang': ['sr']\r\n};\n\nclass MatKeyboardConfig {\r\n constructor() {\r\n /** The politeness level for the MatAriaLiveAnnouncer announcement. */\r\n this.politeness = 'assertive';\r\n /** Message to be announced by the MatAriaLiveAnnouncer */\r\n this.announcementMessage = '';\r\n /** The view container to place the overlay for the keyboard into. */\r\n this.viewContainerRef = null;\r\n /** The length of time in milliseconds to wait before automatically dismissing the keyboard after blur. */\r\n this.duration = 0;\r\n /** Enable a dark keyboard */\r\n this.darkTheme = null;\r\n /** Enable the debug view */\r\n this.isDebug = false;\r\n /** Custom icon overrides */\r\n this.customIcons = {};\r\n }\r\n}\n\n/**\r\n * Applies default options to the keyboard configs.\r\n * @param config The configuration to which the defaults will be applied.\r\n * @returns The new configuration object with defaults applied.\r\n */\r\nfunction _applyConfigDefaults(config) {\r\n return Object.assign(new MatKeyboardConfig(), config);\r\n}\r\n/**\r\n * Applies available layouts.\r\n * @param layouts\r\n */\r\nfunction _applyAvailableLayouts(layouts) {\r\n const _availableLocales = {};\r\n Object\r\n .keys(layouts)\r\n .filter((layout) => 'lang' in layouts[layout])\r\n .forEach((layout) => {\r\n layouts[layout].lang.forEach((lang) => {\r\n _availableLocales[lang] = layout;\r\n });\r\n });\r\n return _availableLocales;\r\n}\n\n/**\r\n * Service to dispatch Material Design keyboard.\r\n */\r\nclass MatKeyboardService {\r\n constructor(_overlay, _live, _defaultLocale, _layouts, _parentKeyboard) {\r\n this._overlay = _overlay;\r\n this._live = _live;\r\n this._defaultLocale = _defaultLocale;\r\n this._layouts = _layouts;\r\n this._parentKeyboard = _parentKeyboard;\r\n /**\r\n * Reference to the current keyboard in the view *at this level* (in the Angular injector tree).\r\n * If there is a parent keyboard service, all operations should delegate to that parent\r\n * via `_openedKeyboardRef`.\r\n */\r\n this._keyboardRefAtThisLevel = null;\r\n this._availableLocales = {};\r\n // prepare available layouts mapping\r\n this._availableLocales = _applyAvailableLayouts(_layouts);\r\n }\r\n /** Reference to the currently opened keyboard at *any* level. */\r\n get _openedKeyboardRef() {\r\n const parent = this._parentKeyboard;\r\n return parent ? parent._openedKeyboardRef : this._keyboardRefAtThisLevel;\r\n }\r\n set _openedKeyboardRef(value) {\r\n if (this._parentKeyboard) {\r\n this._parentKeyboard._openedKeyboardRef = value;\r\n }\r\n else {\r\n this._keyboardRefAtThisLevel = value;\r\n }\r\n }\r\n get availableLocales() {\r\n return this._availableLocales;\r\n }\r\n get isOpened() {\r\n return !!this._openedKeyboardRef;\r\n }\r\n /**\r\n * Creates and dispatches a keyboard with a custom component for the content, removing any\r\n * currently opened keyboards.\r\n *\r\n * @param layoutOrLocale layout or locale to use.\r\n * @param config Extra configuration for the keyboard.\r\n */\r\n openFromComponent(layoutOrLocale, config) {\r\n const keyboardRef = this._attachKeyboardContent(config);\r\n keyboardRef.instance.darkTheme = config.darkTheme;\r\n keyboardRef.instance.isDebug = config.isDebug;\r\n // a locale is provided\r\n if (this.availableLocales[layoutOrLocale]) {\r\n keyboardRef.instance.locale = layoutOrLocale;\r\n keyboardRef.instance.layout = this.getLayoutForLocale(layoutOrLocale);\r\n }\r\n // a layout name is provided\r\n if (this._layouts[layoutOrLocale]) {\r\n keyboardRef.instance.layout = this._layouts[layoutOrLocale];\r\n keyboardRef.instance.locale = this._layouts[layoutOrLocale].lang && this._layouts[layoutOrLocale].lang.pop();\r\n }\r\n if (config.customIcons) {\r\n keyboardRef.instance.icons = config.customIcons;\r\n }\r\n // When the keyboard is dismissed, lower the keyboard counter.\r\n keyboardRef\r\n .afterDismissed()\r\n .subscribe(() => {\r\n // Clear the keyboard ref if it hasn't already been replaced by a newer keyboard.\r\n if (this._openedKeyboardRef === keyboardRef) {\r\n this._openedKeyboardRef = null;\r\n }\r\n });\r\n if (this._openedKeyboardRef) {\r\n // If a keyboard is already in view, dismiss it and enter the\r\n // new keyboard after exit animation is complete.\r\n this._openedKeyboardRef\r\n .afterDismissed()\r\n .subscribe(() => {\r\n keyboardRef.containerInstance.enter();\r\n });\r\n this._openedKeyboardRef.dismiss();\r\n }\r\n else {\r\n // If no keyboard is in view, enter the new keyboard.\r\n keyboardRef.containerInstance.enter();\r\n }\r\n // If a dismiss timeout is provided, set up dismiss based on after the keyboard is opened.\r\n // if (configs.duration > 0) {\r\n // keyboardRef.afterOpened().subscribe(() => {\r\n // setTimeout(() => keyboardRef.dismiss(), configs.duration);\r\n // });\r\n // }\r\n if (config.announcementMessage) {\r\n this._live.announce(config.announcementMessage, config.politeness);\r\n }\r\n this._openedKeyboardRef = keyboardRef;\r\n return this._openedKeyboardRef;\r\n }\r\n /**\r\n * Opens a keyboard with a message and an optional action.\r\n * @param layoutOrLocale A string representing the locale or the layout name to be used.\r\n * @param config Additional configuration options for the keyboard.\r\n */\r\n open(layoutOrLocale = this._defaultLocale, config = {}) {\r\n const _config = _applyConfigDefaults(config);\r\n return this.openFromComponent(layoutOrLocale, _config);\r\n }\r\n /**\r\n * Dismisses the currently-visible keyboard.\r\n */\r\n dismiss() {\r\n if (this._openedKeyboardRef) {\r\n this._openedKeyboardRef.dismiss();\r\n }\r\n }\r\n /**\r\n * Map a given locale to a layout name.\r\n * @param locale The layout name\r\n */\r\n mapLocale(locale = this._defaultLocale) {\r\n let layout;\r\n const country = locale\r\n .split('-')\r\n .shift();\r\n // search for layout matching the\r\n // first part, the country code\r\n if (this.availableLocales[country]) {\r\n layout = this.availableLocales[locale];\r\n }\r\n // look if the detailed locale matches any layout\r\n if (this.availableLocales[locale]) {\r\n layout = this.availableLocales[locale];\r\n }\r\n if (!layout) {\r\n throw Error(`No layout found for locale ${locale}`);\r\n }\r\n return layout;\r\n }\r\n getLayoutForLocale(locale) {\r\n return this._layouts[this.mapLocale(locale)];\r\n }\r\n /**\r\n * Attaches the keyboard container component to the overlay.\r\n */\r\n _attachKeyboardContainer(overlayRef, config) {\r\n const containerPortal = new ComponentPortal(MatKeyboardContainerComponent, config.viewContainerRef);\r\n const containerRef = overlayRef.attach(containerPortal);\r\n // set config\r\n containerRef.instance.keyboardConfig = config;\r\n return containerRef.instance;\r\n }\r\n /**\r\n * Places a new component as the content of the keyboard container.\r\n */\r\n _attachKeyboardContent(config) {\r\n const overlayRef = this._createOverlay();\r\n const container = this._attachKeyboardContainer(overlayRef, config);\r\n const portal = new ComponentPortal(MatKeyboardComponent);\r\n const contentRef = container.attachComponentPortal(portal);\r\n return new MatKeyboardRef(contentRef.instance, container, overlayRef);\r\n }\r\n /**\r\n * Creates a new overlay and places it in the correct location.\r\n */\r\n _createOverlay() {\r\n const state = new OverlayConfig({\r\n width: '100%'\r\n });\r\n state.positionStrategy = this._overlay\r\n .position()\r\n .global()\r\n .centerHorizontally()\r\n .bottom('0');\r\n return this._overlay.create(state);\r\n }\r\n}\nMatKeyboardService.ɵfac = function MatKeyboardService_Factory(t) { return new (t || MatKeyboardService)(ɵngcc0.ɵɵinject(ɵngcc2.Overlay), ɵngcc0.ɵɵinject(ɵngcc3.LiveAnnouncer), ɵngcc0.ɵɵinject(LOCALE_ID), ɵngcc0.ɵɵinject(MAT_KEYBOARD_LAYOUTS), ɵngcc0.ɵɵinject(MatKeyboardService, 12)); };\nMatKeyboardService.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: MatKeyboardService, factory: MatKeyboardService.ɵfac });\r\nMatKeyboardService.ctorParameters = () => [\r\n { type: Overlay },\r\n { type: LiveAnnouncer },\r\n { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },\r\n { type: undefined, decorators: [{ type: Inject, args: [MAT_KEYBOARD_LAYOUTS,] }] },\r\n { type: MatKeyboardService, decorators: [{ type: Optional }, { type: SkipSelf }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardService, [{\n type: Injectable\n }], function () { return [{ type: ɵngcc2.Overlay }, { type: ɵngcc3.LiveAnnouncer }, { type: String, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_KEYBOARD_LAYOUTS]\n }] }, { type: MatKeyboardService, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }]; }, null); })();\n\n// - Lay out each dead key set as an object of property/value\r\nconst MAT_KEYBOARD_DEADKEYS = new InjectionToken('keyboard-deadkey.config');\r\nconst keyboardDeadkeys = {\r\n '\"': {\r\n 'a': '\\u00e4',\r\n 'e': '\\u00eb',\r\n 'i': '\\u00ef',\r\n 'o': '\\u00f6',\r\n 'u': '\\u00fc',\r\n 'y': '\\u00ff',\r\n '\\u03b9': '\\u03ca',\r\n '\\u03c5': '\\u03cb',\r\n '\\u016B': '\\u01D6',\r\n '\\u00FA': '\\u01D8',\r\n '\\u01D4': '\\u01DA',\r\n '\\u00F9': '\\u01DC',\r\n 'A': '\\u00c4',\r\n 'E': '\\u00cb',\r\n 'I': '\\u00cf',\r\n 'O': '\\u00d6',\r\n 'U': '\\u00dc',\r\n 'Y': '\\u0178',\r\n '\\u0399': '\\u03aa',\r\n '\\u03a5': '\\u03ab',\r\n '\\u016A': '\\u01D5',\r\n '\\u00DA': '\\u01D7',\r\n '\\u01D3': '\\u01D9',\r\n '\\u00D9': '\\u01DB',\r\n '\\u304b': '\\u304c',\r\n '\\u304d': '\\u304e',\r\n '\\u304f': '\\u3050',\r\n '\\u3051': '\\u3052',\r\n '\\u3053': '\\u3054',\r\n '\\u305f': '\\u3060',\r\n '\\u3061': '\\u3062',\r\n '\\u3064': '\\u3065',\r\n '\\u3066': '\\u3067',\r\n '\\u3068': '\\u3069',\r\n '\\u3055': '\\u3056',\r\n '\\u3057': '\\u3058',\r\n '\\u3059': '\\u305a',\r\n '\\u305b': '\\u305c',\r\n '\\u305d': '\\u305e',\r\n '\\u306f': '\\u3070',\r\n '\\u3072': '\\u3073',\r\n '\\u3075': '\\u3076',\r\n '\\u3078': '\\u3079',\r\n '\\u307b': '\\u307c',\r\n '\\u30ab': '\\u30ac',\r\n '\\u30ad': '\\u30ae',\r\n '\\u30af': '\\u30b0',\r\n '\\u30b1': '\\u30b2',\r\n '\\u30b3': '\\u30b4',\r\n '\\u30bf': '\\u30c0',\r\n '\\u30c1': '\\u30c2',\r\n '\\u30c4': '\\u30c5',\r\n '\\u30c6': '\\u30c7',\r\n '\\u30c8': '\\u30c9',\r\n '\\u30b5': '\\u30b6',\r\n '\\u30b7': '\\u30b8',\r\n '\\u30b9': '\\u30ba',\r\n '\\u30bb': '\\u30bc',\r\n '\\u30bd': '\\u30be',\r\n '\\u30cf': '\\u30d0',\r\n '\\u30d2': '\\u30d3',\r\n '\\u30d5': '\\u30d6',\r\n '\\u30d8': '\\u30d9',\r\n '\\u30db': '\\u30dc'\r\n },\r\n '~': {\r\n 'a': '\\u00e3', 'l': '\\u0142', 'n': '\\u00f1', 'o': '\\u00f5',\r\n 'A': '\\u00c3', 'L': '\\u0141', 'N': '\\u00d1', 'O': '\\u00d5'\r\n },\r\n '^': {\r\n 'a': '\\u00e2', 'e': '\\u00ea', 'i': '\\u00ee', 'o': '\\u00f4', 'u': '\\u00fb', 'w': '\\u0175', 'y': '\\u0177',\r\n 'A': '\\u00c2', 'E': '\\u00ca', 'I': '\\u00ce', 'O': '\\u00d4', 'U': '\\u00db', 'W': '\\u0174', 'Y': '\\u0176'\r\n },\r\n '\\u02c7': {\r\n 'c': '\\u010D',\r\n 'd': '\\u010f',\r\n 'e': '\\u011b',\r\n 's': '\\u0161',\r\n 'l': '\\u013e',\r\n 'n': '\\u0148',\r\n 'r': '\\u0159',\r\n 't': '\\u0165',\r\n 'u': '\\u01d4',\r\n 'z': '\\u017E',\r\n '\\u00fc': '\\u01da',\r\n 'C': '\\u010C',\r\n 'D': '\\u010e',\r\n 'E': '\\u011a',\r\n 'S': '\\u0160',\r\n 'L': '\\u013d',\r\n 'N': '\\u0147',\r\n 'R': '\\u0158',\r\n 'T': '\\u0164',\r\n 'U': '\\u01d3',\r\n 'Z': '\\u017D',\r\n '\\u00dc': '\\u01d9'\r\n },\r\n '\\u02d8': {\r\n 'a': '\\u0103', 'g': '\\u011f',\r\n 'A': '\\u0102', 'G': '\\u011e'\r\n },\r\n '-': {\r\n 'a': '\\u0101',\r\n 'e': '\\u0113',\r\n 'i': '\\u012b',\r\n 'o': '\\u014d',\r\n 'u': '\\u016B',\r\n 'y': '\\u0233',\r\n '\\u00fc': '\\u01d6',\r\n 'A': '\\u0100',\r\n 'E': '\\u0112',\r\n 'I': '\\u012a',\r\n 'O': '\\u014c',\r\n 'U': '\\u016A',\r\n 'Y': '\\u0232',\r\n '\\u00dc': '\\u01d5'\r\n },\r\n '`': {\r\n 'a': '\\u00e0', 'e': '\\u00e8', 'i': '\\u00ec', 'o': '\\u00f2', 'u': '\\u00f9', '\\u00fc': '\\u01dc',\r\n 'A': '\\u00c0', 'E': '\\u00c8', 'I': '\\u00cc', 'O': '\\u00d2', 'U': '\\u00d9', '\\u00dc': '\\u01db'\r\n },\r\n '\\'': {\r\n 'a': '\\u00e1',\r\n 'e': '\\u00e9',\r\n 'i': '\\u00ed',\r\n 'o': '\\u00f3',\r\n 'u': '\\u00fa',\r\n 'y': '\\u00fd',\r\n '\\u03b1': '\\u03ac',\r\n '\\u03b5': '\\u03ad',\r\n '\\u03b7': '\\u03ae',\r\n '\\u03b9': '\\u03af',\r\n '\\u03bf': '\\u03cc',\r\n '\\u03c5': '\\u03cd',\r\n '\\u03c9': '\\u03ce',\r\n '\\u00fc': '\\u01d8',\r\n 'A': '\\u00c1',\r\n 'E': '\\u00c9',\r\n 'I': '\\u00cd',\r\n 'O': '\\u00d3',\r\n 'U': '\\u00da',\r\n 'Y': '\\u00dd',\r\n '\\u0391': '\\u0386',\r\n '\\u0395': '\\u0388',\r\n '\\u0397': '\\u0389',\r\n '\\u0399': '\\u038a',\r\n '\\u039f': '\\u038c',\r\n '\\u03a5': '\\u038e',\r\n '\\u03a9': '\\u038f',\r\n '\\u00dc': '\\u01d7'\r\n },\r\n '\\u02dd': {\r\n 'o': '\\u0151', 'u': '\\u0171',\r\n 'O': '\\u0150', 'U': '\\u0170'\r\n },\r\n '\\u0385': {\r\n '\\u03b9': '\\u0390', '\\u03c5': '\\u03b0'\r\n },\r\n '\\u00b0': {\r\n 'a': '\\u00e5', 'u': '\\u016f',\r\n 'A': '\\u00c5', 'U': '\\u016e'\r\n },\r\n '\\u02DB': {\r\n 'a': '\\u0106', 'e': '\\u0119', 'i': '\\u012f', 'o': '\\u01eb', 'u': '\\u0173', 'y': '\\u0177',\r\n 'A': '\\u0105', 'E': '\\u0118', 'I': '\\u012e', 'O': '\\u01ea', 'U': '\\u0172', 'Y': '\\u0176'\r\n },\r\n '\\u02D9': {\r\n 'c': '\\u010B', 'e': '\\u0117', 'g': '\\u0121', 'z': '\\u017C',\r\n 'C': '\\u010A', 'E': '\\u0116', 'G': '\\u0120', 'Z': '\\u017B'\r\n },\r\n '\\u00B8': {\r\n 'c': '\\u00e7', 's': '\\u015F',\r\n 'C': '\\u00c7', 'S': '\\u015E'\r\n },\r\n /*',': { // Comma\r\n 's': (this.VKI_isIElt8) ? '\\u015F' : '\\u0219', 't': (this.VKI_isIElt8) ? '\\u0163' : '\\u021B',\r\n 'S': (this.VKI_isIElt8) ? '\\u015E' : '\\u0218', 'T': (this.VKI_isIElt8) ? '\\u0162' : '\\u021A'\r\n },*/\r\n '\\u3002': {\r\n '\\u306f': '\\u3071', '\\u3072': '\\u3074', '\\u3075': '\\u3077', '\\u3078': '\\u307a', '\\u307b': '\\u307d',\r\n '\\u30cf': '\\u30d1', '\\u30d2': '\\u30d4', '\\u30d5': '\\u30d7', '\\u30d8': '\\u30da', '\\u30db': '\\u30dd'\r\n }\r\n};\r\n// aliases\r\n// Macron\r\nkeyboardDeadkeys['\\u00af'] = keyboardDeadkeys['-'];\r\n// Umlaut / Diaeresis / Greek Dialytika / Hiragana/Katakana Voiced Sound Mark\r\nkeyboardDeadkeys['\\u00a8'] = keyboardDeadkeys['\\u309B'] = keyboardDeadkeys['\"'];\r\n// Acute / Greek Tonos\r\nkeyboardDeadkeys['\\u00b4'] = keyboardDeadkeys['\\u0384'] = keyboardDeadkeys['\\''];\r\n// Ring\r\nkeyboardDeadkeys['\\u00ba'] = keyboardDeadkeys['\\u00b0'];\r\nkeyboardDeadkeys['\\u201a'] = keyboardDeadkeys['\\u00B8'];\n\nconst VALUE_NEWLINE = '\\n\\r';\r\nconst VALUE_SPACE = ' ';\r\nconst VALUE_TAB = '\\t';\r\nconst REPEAT_TIMEOUT = 500;\r\nconst REPEAT_INTERVAL = 100;\r\nclass MatKeyboardKeyComponent {\r\n // Inject dependencies\r\n constructor(_deadkeys) {\r\n this._deadkeys = _deadkeys;\r\n this._deadkeyKeys = [];\r\n this._repeatState = false; // true if repeating, false if waiting\r\n this.active$ = new BehaviorSubject(false);\r\n this.pressed$ = new BehaviorSubject(false);\r\n this.genericClick = new EventEmitter();\r\n this.enterClick = new EventEmitter();\r\n this.bkspClick = new EventEmitter();\r\n this.capsClick = new EventEmitter();\r\n this.altClick = new EventEmitter();\r\n this.shiftClick = new EventEmitter();\r\n this.spaceClick = new EventEmitter();\r\n this.tabClick = new EventEmitter();\r\n this.keyClick = new EventEmitter();\r\n }\r\n set active(active) {\r\n this.active$.next(active);\r\n }\r\n get active() {\r\n return this.active$.getValue();\r\n }\r\n set pressed(pressed) {\r\n this.pressed$.next(pressed);\r\n }\r\n get pressed() {\r\n return this.pressed$.getValue();\r\n }\r\n get lowerKey() {\r\n return `${this.key}`.toLowerCase();\r\n }\r\n get charCode() {\r\n return `${this.key}`.charCodeAt(0);\r\n }\r\n get isClassKey() {\r\n return this.key in KeyboardClassKey;\r\n }\r\n get isDeadKey() {\r\n return this._deadkeyKeys.some((deadKey) => deadKey === `${this.key}`);\r\n }\r\n get hasIcon() {\r\n return this.icon !== undefined && this.icon !== null;\r\n }\r\n get iconName() {\r\n return this.icon.name || '';\r\n }\r\n get fontSet() {\r\n return this.icon.fontSet || '';\r\n }\r\n get fontIcon() {\r\n return this.icon.fontIcon || '';\r\n }\r\n get svgIcon() {\r\n return this.icon.svgIcon || '';\r\n }\r\n get cssClass() {\r\n const classes = [];\r\n if (this.hasIcon) {\r\n classes.push('mat-keyboard-key-modifier');\r\n classes.push(`mat-keyboard-key-${this.lowerKey}`);\r\n }\r\n if (this.isDeadKey) {\r\n classes.push('mat-keyboard-key-deadkey');\r\n }\r\n return classes.join(' ');\r\n }\r\n get inputValue() {\r\n if (this.control) {\r\n return this.control.value;\r\n }\r\n else if (this.input && this.input.nativeElement && this.input.nativeElement.value) {\r\n return this.input.nativeElement.value;\r\n }\r\n else {\r\n return '';\r\n }\r\n }\r\n set inputValue(inputValue) {\r\n if (this.control) {\r\n this.control.setValue(inputValue);\r\n }\r\n else if (this.input && this.input.nativeElement) {\r\n this.input.nativeElement.value = inputValue;\r\n }\r\n }\r\n ngOnInit() {\r\n // read the deadkeys\r\n this._deadkeyKeys = Object.keys(this._deadkeys);\r\n }\r\n ngOnDestroy() {\r\n this.cancelRepeat();\r\n }\r\n onClick(event) {\r\n // Trigger generic click event\r\n this.genericClick.emit(event);\r\n // Do not execute keypress if key is currently repeating\r\n if (this._repeatState) {\r\n return;\r\n }\r\n // Trigger a global key event. TODO: investigate\r\n // this._triggerKeyEvent();\r\n // Manipulate the focused input / textarea value\r\n const caret = this.input ? this._getCursorPosition() : 0;\r\n let char;\r\n switch (this.key) {\r\n // this keys have no actions yet\r\n // TODO: add deadkeys and modifiers\r\n case KeyboardClassKey.Alt:\r\n case KeyboardClassKey.AltGr:\r\n case KeyboardClassKey.AltLk:\r\n this.altClick.emit(event);\r\n break;\r\n case KeyboardClassKey.Bksp:\r\n this.deleteSelectedText();\r\n this.bkspClick.emit(event);\r\n break;\r\n case KeyboardClassKey.Caps:\r\n this.capsClick.emit(event);\r\n break;\r\n case KeyboardClassKey.Enter:\r\n if (this._isTextarea()) {\r\n char = VALUE_NEWLINE;\r\n }\r\n else {\r\n this.enterClick.emit(event);\r\n // TODO: trigger submit / onSubmit / ngSubmit properly (for the time being this has to be handled by the user himself)\r\n // console.log(this.control.ngControl.control.root)\r\n // this.input.nativeElement.form.submit();\r\n }\r\n break;\r\n case KeyboardClassKey.Shift:\r\n this.shiftClick.emit(event);\r\n break;\r\n case KeyboardClassKey.Space:\r\n char = VALUE_SPACE;\r\n this.spaceClick.emit(event);\r\n break;\r\n case KeyboardClassKey.Tab:\r\n char = VALUE_TAB;\r\n this.tabClick.emit(event);\r\n break;\r\n default:\r\n // the key is not mapped or a string\r\n char = `${this.key}`;\r\n this.keyClick.emit(event);\r\n break;\r\n }\r\n if (char && this.input) {\r\n this.replaceSelectedText(char);\r\n this._setCursorPosition(caret + 1);\r\n }\r\n // Dispatch Input Event for Angular to register a change\r\n if (this.input && this.input.nativeElement) {\r\n setTimeout(() => {\r\n this.input.nativeElement.dispatchEvent(new Event('input', { bubbles: true }));\r\n });\r\n }\r\n }\r\n // Handle repeating keys. Keypress logic derived from onClick()\r\n onPointerDown() {\r\n this.cancelRepeat();\r\n this._repeatState = false;\r\n this._repeatTimeoutHandler = setTimeout(() => {\r\n // Initialize keypress variables\r\n let char;\r\n let keyFn;\r\n switch (this.key) {\r\n // Ignore non-repeating keys\r\n case KeyboardClassKey.Alt:\r\n case KeyboardClassKey.AltGr:\r\n case KeyboardClassKey.AltLk:\r\n case KeyboardClassKey.Caps:\r\n case KeyboardClassKey.Enter:\r\n case KeyboardClassKey.Shift:\r\n return;\r\n case KeyboardClassKey.Bksp:\r\n keyFn = () => {\r\n this.deleteSelectedText();\r\n this.bkspClick.emit();\r\n };\r\n break;\r\n case KeyboardClassKey.Space:\r\n char = VALUE_SPACE;\r\n keyFn = () => this.spaceClick.emit();\r\n break;\r\n case KeyboardClassKey.Tab:\r\n char = VALUE_TAB;\r\n keyFn = () => this.tabClick.emit();\r\n break;\r\n default:\r\n char = `${this.key}`;\r\n keyFn = () => this.keyClick.emit();\r\n break;\r\n }\r\n // Execute repeating keypress\r\n this._repeatIntervalHandler = setInterval(() => {\r\n const caret = this.input ? this._getCursorPosition() : 0;\r\n this._repeatState = true;\r\n if (keyFn) {\r\n keyFn();\r\n }\r\n if (char && this.input) {\r\n this.replaceSelectedText(char);\r\n this._setCursorPosition(caret + 1);\r\n }\r\n if (this.input && this.input.nativeElement) {\r\n setTimeout(() => this.input.nativeElement.dispatchEvent(new Event('input', { bubbles: true })));\r\n }\r\n }, REPEAT_INTERVAL);\r\n }, REPEAT_TIMEOUT);\r\n }\r\n cancelRepeat() {\r\n if (this._repeatTimeoutHandler) {\r\n clearTimeout(this._repeatTimeoutHandler);\r\n this._repeatTimeoutHandler = null;\r\n }\r\n if (this._repeatIntervalHandler) {\r\n clearInterval(this._repeatIntervalHandler);\r\n this._repeatIntervalHandler = null;\r\n }\r\n }\r\n deleteSelectedText() {\r\n const value = this.inputValue ? this.inputValue.toString() : '';\r\n let caret = this.input ? this._getCursorPosition() : 0;\r\n let selectionLength = this._getSelectionLength();\r\n if (selectionLength === 0) {\r\n if (caret === 0) {\r\n return;\r\n }\r\n caret--;\r\n selectionLength = 1;\r\n }\r\n const headPart = value.slice(0, caret);\r\n const endPart = value.slice(caret + selectionLength);\r\n this.inputValue = [headPart, endPart].join('');\r\n this._setCursorPosition(caret);\r\n }\r\n replaceSelectedText(char) {\r\n const value = this.inputValue ? this.inputValue.toString() : '';\r\n const caret = this.input ? this._getCursorPosition() : 0;\r\n const selectionLength = this._getSelectionLength();\r\n const headPart = value.slice(0, caret);\r\n const endPart = value.slice(caret + selectionLength);\r\n this.inputValue = [headPart, char, endPart].join('');\r\n }\r\n // TODO: Include for repeating keys as well (if this gets implemented)\r\n // private _triggerKeyEvent(): Event {\r\n // const keyboardEvent = new KeyboardEvent('keydown');\r\n // //\r\n // // keyboardEvent[initMethod](\r\n // // true, // bubbles\r\n // // true, // cancelable\r\n // // window, // viewArg: should be window\r\n // // false, // ctrlKeyArg\r\n // // false, // altKeyArg\r\n // // false, // shiftKeyArg\r\n // // false, // metaKeyArg\r\n // // this.charCode, // keyCodeArg : unsigned long - the virtual key code, else 0\r\n // // 0 // charCodeArgs : unsigned long - the Unicode character associated with the depressed key, else 0\r\n // // );\r\n // //\r\n // // window.document.dispatchEvent(keyboardEvent);\r\n // return keyboardEvent;\r\n // }\r\n // inspired by:\r\n // ref https://stackoverflow.com/a/2897510/1146207\r\n _getCursorPosition() {\r\n if (!this.input) {\r\n return;\r\n }\r\n if ('selectionStart' in this.input.nativeElement) {\r\n // Standard-compliant browsers\r\n return this.input.nativeElement.selectionStart;\r\n }\r\n else if ('selection' in window.document) {\r\n // IE\r\n this.input.nativeElement.focus();\r\n const selection = window.document['selection'];\r\n const sel = selection.createRange();\r\n const selLen = selection.createRange().text.length;\r\n sel.moveStart('character', -this.control.value.length);\r\n return sel.text.length - selLen;\r\n }\r\n }\r\n _getSelectionLength() {\r\n if (!this.input) {\r\n return;\r\n }\r\n if ('selectionEnd' in this.input.nativeElement) {\r\n // Standard-compliant browsers\r\n return this.input.nativeElement.selectionEnd - this.input.nativeElement.selectionStart;\r\n }\r\n if ('selection' in window.document) {\r\n // IE\r\n this.input.nativeElement.focus();\r\n const selection = window.document['selection'];\r\n return selection.createRange().text.length;\r\n }\r\n }\r\n // inspired by:\r\n // ref https://stackoverflow.com/a/12518737/1146207\r\n // tslint:disable one-line\r\n _setCursorPosition(position) {\r\n if (!this.input) {\r\n return;\r\n }\r\n this.inputValue = this.control.value;\r\n // ^ this is used to not only get \"focus\", but\r\n // to make sure we don't have it everything -selected-\r\n // (it causes an issue in chrome, and having it doesn't hurt any other browser)\r\n if ('createTextRange' in this.input.nativeElement) {\r\n const range = this.input.nativeElement.createTextRange();\r\n range.move('character', position);\r\n range.select();\r\n return true;\r\n }\r\n else {\r\n // (el.selectionStart === 0 added for Firefox bug)\r\n if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {\r\n this.input.nativeElement.focus();\r\n this.input.nativeElement.setSelectionRange(position, position);\r\n return true;\r\n }\r\n // fail city, fortunately this never happens (as far as I've tested) :)\r\n else {\r\n this.input.nativeElement.focus();\r\n return false;\r\n }\r\n }\r\n }\r\n _isTextarea() {\r\n return this.input && this.input.nativeElement && this.input.nativeElement.tagName === 'TEXTAREA';\r\n }\r\n}\nMatKeyboardKeyComponent.ɵfac = function MatKeyboardKeyComponent_Factory(t) { return new (t || MatKeyboardKeyComponent)(ɵngcc0.ɵɵdirectiveInject(MAT_KEYBOARD_DEADKEYS)); };\nMatKeyboardKeyComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatKeyboardKeyComponent, selectors: [[\"mat-keyboard-key\"]], inputs: { active: \"active\", pressed: \"pressed\", key: \"key\", icon: \"icon\", input: \"input\", control: \"control\" }, outputs: { genericClick: \"genericClick\", enterClick: \"enterClick\", bkspClick: \"bkspClick\", capsClick: \"capsClick\", altClick: \"altClick\", shiftClick: \"shiftClick\", spaceClick: \"spaceClick\", tabClick: \"tabClick\", keyClick: \"keyClick\" }, decls: 6, vars: 11, consts: [[\"mat-raised-button\", \"\", \"tabindex\", \"-1\", 1, \"mat-keyboard-key\", 3, \"ngClass\", \"click\", \"pointerdown\", \"pointerleave\", \"pointerup\"], [3, \"fontSet\", \"fontIcon\", \"svgIcon\", 4, \"ngIf\", \"ngIfElse\"], [\"noIcon\", \"\"], [3, \"fontSet\", \"fontIcon\", \"svgIcon\"]], template: function MatKeyboardKeyComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"button\", 0);\n ɵngcc0.ɵɵlistener(\"click\", function MatKeyboardKeyComponent_Template_button_click_0_listener($event) { return ctx.onClick($event); })(\"pointerdown\", function MatKeyboardKeyComponent_Template_button_pointerdown_0_listener() { return ctx.onPointerDown(); })(\"pointerleave\", function MatKeyboardKeyComponent_Template_button_pointerleave_0_listener() { return ctx.cancelRepeat(); })(\"pointerup\", function MatKeyboardKeyComponent_Template_button_pointerup_0_listener() { return ctx.cancelRepeat(); });\n ɵngcc0.ɵɵpipe(1, \"async\");\n ɵngcc0.ɵɵpipe(2, \"async\");\n ɵngcc0.ɵɵtemplate(3, MatKeyboardKeyComponent_mat_icon_3_Template, 2, 4, \"mat-icon\", 1);\n ɵngcc0.ɵɵtemplate(4, MatKeyboardKeyComponent_ng_template_4_Template, 1, 1, \"ng-template\", null, 2, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n const _r1 = ɵngcc0.ɵɵreference(5);\n ɵngcc0.ɵɵclassProp(\"mat-keyboard-key-active\", ɵngcc0.ɵɵpipeBind1(1, 7, ctx.active$))(\"mat-keyboard-key-pressed\", ɵngcc0.ɵɵpipeBind1(2, 9, ctx.pressed$));\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx.cssClass);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.hasIcon)(\"ngIfElse\", _r1);\n } }, directives: [ɵngcc4.MatButton, ɵngcc5.NgClass, ɵngcc5.NgIf, ɵngcc6.MatIcon], pipes: [ɵngcc5.AsyncPipe], styles: [\"@charset \\\"UTF-8\\\";[_nghost-%COMP%]{display:flex;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;justify-content:space-between;line-height:20px}.mat-keyboard-key[_ngcontent-%COMP%]{min-width:0;width:100%}.mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#e0e0e0}.mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#bdbdbd}.mat-keyboard-key-capslock[_ngcontent-%COMP%]{background-color:#fff}.mat-keyboard-key-capslock[_ngcontent-%COMP%]:before{background-color:#bdbdbd;border-radius:100%;content:\\\"\\\";display:inline-block;height:3px;left:5px;position:absolute;top:5px;transition:.4s cubic-bezier(.25,.8,.25,1);transition-property:background-color,box-shadow;width:3px}.mat-keyboard-key-capslock.mat-keyboard-key-active[_ngcontent-%COMP%]:before{background-color:#0f0;box-shadow:0 0 \\u00A7px #adff2f}.dark-theme[_nghost-%COMP%] .mat-keyboard-key[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .mat-keyboard-key[_ngcontent-%COMP%]{background-color:#616161;color:#f5f5f5}.dark-theme[_nghost-%COMP%] .mat-keyboard-key-active[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#9e9e9e}.dark-theme[_nghost-%COMP%] .mat-keyboard-key-pressed[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#757575}.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%]{background-color:#5f9ea0}.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-active[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#6fa8aa}.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-pressed[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#7fb1b3}.debug[_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%]{background-color:#7fffd4}.debug[_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-active[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#9fd}.debug[_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-pressed[_ngcontent-%COMP%], .debug [_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#b2ffe5}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%]{background-color:#639}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-active[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#7339ac}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-pressed[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-deadkey.mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#8040bf}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%]{background-color:#9370db}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-active[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-active[_ngcontent-%COMP%]{background-color:#a284e0}.dark-theme.debug[_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-pressed[_ngcontent-%COMP%], .dark-theme.debug [_nghost-%COMP%] .mat-keyboard-key-modifier.mat-keyboard-key-pressed[_ngcontent-%COMP%]{background-color:#b299e5}\"], changeDetection: 0 });\r\nMatKeyboardKeyComponent.ctorParameters = () => [\r\n { type: undefined, decorators: [{ type: Inject, args: [MAT_KEYBOARD_DEADKEYS,] }] }\r\n];\r\nMatKeyboardKeyComponent.propDecorators = {\r\n key: [{ type: Input }],\r\n icon: [{ type: Input }],\r\n active: [{ type: Input }],\r\n pressed: [{ type: Input }],\r\n input: [{ type: Input }],\r\n control: [{ type: Input }],\r\n genericClick: [{ type: Output }],\r\n enterClick: [{ type: Output }],\r\n bkspClick: [{ type: Output }],\r\n capsClick: [{ type: Output }],\r\n altClick: [{ type: Output }],\r\n shiftClick: [{ type: Output }],\r\n spaceClick: [{ type: Output }],\r\n tabClick: [{ type: Output }],\r\n keyClick: [{ type: Output }]\r\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardKeyComponent, [{\n type: Component,\n args: [{\n selector: 'mat-keyboard-key',\n template: \"<button mat-raised-button\\r\\n class=\\\"mat-keyboard-key\\\"\\r\\n tabindex=\\\"-1\\\"\\r\\n [class.mat-keyboard-key-active]=\\\"active$ | async\\\"\\r\\n [class.mat-keyboard-key-pressed]=\\\"pressed$ | async\\\"\\r\\n [ngClass]=\\\"cssClass\\\"\\r\\n (click)=\\\"onClick($event)\\\"\\r\\n (pointerdown)=\\\"onPointerDown()\\\"\\r\\n (pointerleave)=\\\"cancelRepeat()\\\"\\r\\n (pointerup)=\\\"cancelRepeat()\\\"\\r\\n>\\r\\n <mat-icon *ngIf=\\\"hasIcon; else noIcon\\\" [fontSet]=\\\"fontSet\\\" [fontIcon]=\\\"fontIcon\\\" [svgIcon]=\\\"svgIcon\\\">{{ iconName }}</mat-icon>\\r\\n <ng-template #noIcon>{{ key }}</ng-template>\\r\\n</button>\\r\\n\",\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n styles: [\"@charset \\\"UTF-8\\\";:host{display:flex;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;justify-content:space-between;line-height:20px}.mat-keyboard-key{min-width:0;width:100%}.mat-keyboard-key-active{background-color:#e0e0e0}.mat-keyboard-key-pressed{background-color:#bdbdbd}.mat-keyboard-key-capslock{background-color:#fff}.mat-keyboard-key-capslock:before{background-color:#bdbdbd;border-radius:100%;content:\\\"\\\";display:inline-block;height:3px;left:5px;position:absolute;top:5px;transition:.4s cubic-bezier(.25,.8,.25,1);transition-property:background-color,box-shadow;width:3px}.mat-keyboard-key-capslock.mat-keyboard-key-active:before{background-color:#0f0;box-shadow:0 0 \\u00A7px #adff2f}:host-context(.dark-theme) .mat-keyboard-key{background-color:#616161;color:#f5f5f5}:host-context(.dark-theme) .mat-keyboard-key-active{background-color:#9e9e9e}:host-context(.dark-theme) .mat-keyboard-key-pressed{background-color:#757575}:host-context(.debug) .mat-keyboard-key-deadkey{background-color:#5f9ea0}:host-context(.debug) .mat-keyboard-key-deadkey.mat-keyboard-key-active{background-color:#6fa8aa}:host-context(.debug) .mat-keyboard-key-deadkey.mat-keyboard-key-pressed{background-color:#7fb1b3}:host-context(.debug) .mat-keyboard-key-modifier{background-color:#7fffd4}:host-context(.debug) .mat-keyboard-key-modifier.mat-keyboard-key-active{background-color:#9fd}:host-context(.debug) .mat-keyboard-key-modifier.mat-keyboard-key-pressed{background-color:#b2ffe5}:host-context(.dark-theme.debug) .mat-keyboard-key-deadkey{background-color:#639}:host-context(.dark-theme.debug) .mat-keyboard-key-deadkey.mat-keyboard-key-active{background-color:#7339ac}:host-context(.dark-theme.debug) .mat-keyboard-key-deadkey.mat-keyboard-key-pressed{background-color:#8040bf}:host-context(.dark-theme.debug) .mat-keyboard-key-modifier{background-color:#9370db}:host-context(.dark-theme.debug) .mat-keyboard-key-modifier.mat-keyboard-key-active{background-color:#a284e0}:host-context(.dark-theme.debug) .mat-keyboard-key-modifier.mat-keyboard-key-pressed{background-color:#b299e5}\"]\n }]\n }], function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [MAT_KEYBOARD_DEADKEYS]\n }] }]; }, { genericClick: [{\n type: Output\n }], enterClick: [{\n type: Output\n }], bkspClick: [{\n type: Output\n }], capsClick: [{\n type: Output\n }], altClick: [{\n type: Output\n }], shiftClick: [{\n type: Output\n }], spaceClick: [{\n type: Output\n }], tabClick: [{\n type: Output\n }], keyClick: [{\n type: Output\n }], active: [{\n type: Input\n }], pressed: [{\n type: Input\n }], key: [{\n type: Input\n }], icon: [{\n type: Input\n }], input: [{\n type: Input\n }], control: [{\n type: Input\n }] }); })();\n\n/**\r\n * A component used to open as the default keyboard, matching material spec.\r\n * This should only be used internally by the keyboard service.\r\n */\r\nclass MatKeyboardComponent {\r\n // inject dependencies\r\n constructor(_locale, _keyboardService) {\r\n this._locale = _locale;\r\n this._keyboardService = _keyboardService;\r\n this._darkTheme = new BehaviorSubject(false);\r\n this._isDebug = new BehaviorSubject(false);\r\n this._inputInstance$ = new BehaviorSubject(null);\r\n this._modifier = KeyboardModifier.None;\r\n this._capsLocked = false;\r\n this._icons = KEYBOARD_ICONS;\r\n this.cssClass = true;\r\n this.enterClick = new EventEmitter();\r\n this.capsClick = new EventEmitter();\r\n this.altClick = new EventEmitter();\r\n this.shiftClick = new EventEmitter();\r\n }\r\n // returns an observable of the input instance\r\n get inputInstance() {\r\n return this._inputInstance$.asObservable();\r\n }\r\n set icons(icons) {\r\n Object.assign(this._icons, icons);\r\n }\r\n set darkTheme(darkTheme) {\r\n if (this._darkTheme.getValue() !== darkTheme) {\r\n this._darkTheme.next(darkTheme);\r\n }\r\n }\r\n set isDebug(isDebug) {\r\n if (this._isDebug.getValue() !== isDebug) {\r\n this._isDebug.next(isDebug);\r\n }\r\n }\r\n get darkTheme$() {\r\n return this._darkTheme.asObservable();\r\n }\r\n get isDebug$() {\r\n return this._isDebug.asObservable();\r\n }\r\n setInputInstance(inputInstance) {\r\n this._inputInstance$.next(inputInstance);\r\n }\r\n attachControl(control) {\r\n this.control = control;\r\n }\r\n ngOnInit() {\r\n // set a fallback using the locale\r\n if (!this.layout) {\r\n this.locale = this._keyboardService.mapLocale(this._locale) ? this._locale : 'en-US';\r\n this.layout = this._keyboardService.getLayoutForLocale(this.locale);\r\n }\r\n }\r\n /**\r\n * dismisses the keyboard\r\n */\r\n dismiss() {\r\n this.keyboardRef.dismiss();\r\n }\r\n /**\r\n * checks if a given key is currently pressed\r\n * @param key\r\n * @param\r\n */\r\n isActive(key) {\r\n const modifiedKey = this.getModifiedKey(key);\r\n const isActiveCapsLock = modifiedKey === KeyboardClassKey.Caps && this._capsLocked;\r\n const isActiveModifier = modifiedKey === KeyboardModifier[this._modifier];\r\n return isActiveCapsLock || isActiveModifier;\r\n }\r\n // retrieves modified key\r\n getModifiedKey(key) {\r\n let modifier = this._modifier;\r\n // `CapsLock` inverts the meaning of `Shift`\r\n if (this._capsLocked) {\r\n modifier = this._invertShiftModifier(this._modifier);\r\n }\r\n return key[modifier];\r\n }\r\n // retrieves icon for given key\r\n getKeyIcon(key) {\r\n return this._icons[key[KeyboardModifier.None]];\r\n }\r\n /**\r\n * listens to users keyboard inputs to simulate on virtual keyboard, too\r\n * @param event\r\n */\r\n onKeyDown(event) {\r\n // 'activate' corresponding key\r\n this._keys\r\n .filter((key) => key.key === event.key)\r\n .forEach((key) => {\r\n key.pressed = true;\r\n });\r\n // simulate modifier press\r\n if (event.key === KeyboardClassKey.Caps) {\r\n this.onCapsClick(event.getModifierState(KeyboardClassKey.Caps));\r\n }\r\n if (event.key === KeyboardClassKey.Alt && this._modifier !== KeyboardModifier.Alt && this._modifier !== KeyboardModifier.ShiftAlt) {\r\n this.onAltClick();\r\n }\r\n if (event.key === KeyboardClassKey.Shift && this._modifier !== KeyboardModifier.Shift && this._modifier !== KeyboardModifier.ShiftAlt) {\r\n this.onShiftClick();\r\n }\r\n }\r\n /**\r\n * listens to users keyboard inputs to simulate on virtual keyboard, too\r\n * @param event\r\n */\r\n onKeyUp(event) {\r\n // 'deactivate' corresponding key\r\n this._keys\r\n .filter((key) => key.key === event.key)\r\n .forEach((key) => {\r\n key.pressed = false;\r\n });\r\n // simulate modifier release\r\n if (event.key === KeyboardClassKey.Alt && (this._modifier === KeyboardModifier.Alt || this._modifier === KeyboardModifier.ShiftAlt)) {\r\n this.onAltClick();\r\n }\r\n if (event.key === KeyboardClassKey.Shift && (this._modifier === KeyboardModifier.Shift || this._modifier === KeyboardModifier.ShiftAlt)) {\r\n this.onShiftClick();\r\n }\r\n }\r\n /**\r\n * bubbles event if submit is potentially triggered\r\n */\r\n onEnterClick() {\r\n // notify subscribers\r\n this.enterClick.next();\r\n }\r\n /**\r\n * simulates clicking `CapsLock` key\r\n * @param targetState\r\n */\r\n onCapsClick(targetState = !this._capsLocked) {\r\n // not implemented\r\n this._capsLocked = targetState;\r\n // notify subscribers\r\n this.capsClick.next();\r\n }\r\n /*\r\n * non-modifier keys are clicked\r\n */\r\n onKeyClick() {\r\n if (this._modifier === KeyboardModifier.Shift || this._modifier === KeyboardModifier.ShiftAlt) {\r\n this._modifier = this._invertShiftModifier(this._modifier);\r\n }\r\n if (this._modifier === KeyboardModifier.Alt || this._modifier === KeyboardModifier.ShiftAlt) {\r\n this._modifier = this._invertAltModifier(this._modifier);\r\n }\r\n }\r\n /**\r\n * simulates clicking `Alt` key\r\n */\r\n onAltClick() {\r\n // invert modifier meaning\r\n this._modifier = this._invertAltModifier(this._modifier);\r\n // notify subscribers\r\n this.altClick.next();\r\n }\r\n /**\r\n * simulates clicking `Shift` key\r\n */\r\n onShiftClick() {\r\n // invert modifier meaning\r\n this._modifier = this._invertShiftModifier(this._modifier);\r\n // notify subscribers\r\n this.shiftClick.next();\r\n }\r\n _invertAltModifier(modifier) {\r\n switch (modifier) {\r\n case KeyboardModifier.None:\r\n return KeyboardModifier.Alt;\r\n case KeyboardModifier.Shift:\r\n return KeyboardModifier.ShiftAlt;\r\n case KeyboardModifier.ShiftAlt:\r\n return KeyboardModifier.Shift;\r\n case KeyboardModifier.Alt:\r\n return KeyboardModifier.None;\r\n }\r\n }\r\n _invertShiftModifier(modifier) {\r\n switch (modifier) {\r\n case KeyboardModifier.None:\r\n return KeyboardModifier.Shift;\r\n case KeyboardModifier.Alt:\r\n return KeyboardModifier.ShiftAlt;\r\n case KeyboardModifier.ShiftAlt:\r\n return KeyboardModifier.Alt;\r\n case KeyboardModifier.Shift:\r\n return KeyboardModifier.None;\r\n }\r\n }\r\n}\nMatKeyboardComponent.ɵfac = function MatKeyboardComponent_Factory(t) { return new (t || MatKeyboardComponent)(ɵngcc0.ɵɵdirectiveInject(LOCALE_ID), ɵngcc0.ɵɵdirectiveInject(MatKeyboardService)); };\nMatKeyboardComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MatKeyboardComponent, selectors: [[\"mat-keyboard\"]], viewQuery: function MatKeyboardComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(MatKeyboardKeyComponent, 5);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx._keys = _t);\n } }, hostVars: 2, hostBindings: function MatKeyboardComponent_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"keydown\", function MatKeyboardComponent_keydown_HostBindingHandler($event) { return ctx.onKeyDown($event); }, false, ɵngcc0.ɵɵresolveDocument)(\"keyup\", function MatKeyboardComponent_keyup_HostBindingHandler($event) { return ctx.onKeyUp($event); }, false, ɵngcc0.ɵɵresolveDocument);\n } if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"mat-keyboard\", ctx.cssClass);\n } }, decls: 5, vars: 9, consts: [[1, \"mat-keyboard-wrapper\"], [1, \"mat-keyboard-layout\"], [\"class\", \"mat-keyboard-row\", 4, \"ngFor\", \"ngForOf\"], [1, \"mat-keyboard-row\"], [4, \"ngFor\", \"ngForOf\"], [\"class\", \"mat-keyboard-col\", 3, \"key\", \"icon\", \"active\", \"input\", \"control\", \"enterClick\", \"capsClick\", \"altClick\", \"shiftClick\", \"keyClick\", 4, \"ngIf\"], [1, \"mat-keyboard-col\", 3, \"key\", \"icon\", \"active\", \"input\", \"control\", \"enterClick\", \"capsClick\", \"altClick\", \"shiftClick\", \"keyClick\"]], template: function MatKeyboardComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 0);\n ɵngcc0.ɵɵpipe(1, \"async\");\n ɵngcc0.ɵɵpipe(2, \"async\");\n ɵngcc0.ɵɵelementStart(3, \"nav\", 1);\n ɵngcc0.ɵɵtemplate(4, MatKeyboardComponent_div_4_Template, 2, 1, \"div\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"dark-theme\", ɵngcc0.ɵɵpipeBind1(1, 5, ctx.darkTheme$))(\"debug\", ɵngcc0.ɵɵpipeBind1(2, 7, ctx.isDebug$));\n ɵngcc0.ɵɵadvance(4);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.layout.keys);\n } }, directives: [ɵngcc5.NgForOf, ɵngcc5.NgIf, MatKeyboardKeyComponent], pipes: [ɵngcc5.AsyncPipe], styles: [\".mat-keyboard-wrapper[_ngcontent-%COMP%]{background-color:#f5f5f5;border-radius:2px;display:flex;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;justify-content:space-between;line-height:20px;padding:14px 24px}.mat-keyboard-wrapper.dark-theme[_ngcontent-%COMP%]{background-color:#424242}.mat-keyboard-action[_ngcontent-%COMP%]{background:none;color:inherit;flex-shrink:0;font-family:inherit;font-size:inherit;font-weight:600;line-height:1;margin-left:8px;text-transform:uppercase}.dark-theme[_nghost-%COMP%] .mat-keyboard-action[_ngcontent-%COMP%]{color:#f5f5f5}.mat-keyboard-layout[_ngcontent-%COMP%]{width:100%}.mat-keyboard-row[_ngcontent-%COMP%]{align-items:stretch;display:flex;flex-direction:row;flex-wrap:nowrap}.mat-keyboard-col[_ngcontent-%COMP%]{box-sizing:border-box;flex:1 1 auto;padding:4px}.mat-keyboard-key[_ngcontent-%COMP%]{min-width:0;width:100%}.dark-theme[_nghost-%COMP%] .mat-keyboard-key[_ngcontent-%COMP%]{background-color:#616161;color:#f5f5f5}.debug[_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%]{background-color:#5f9ea0}.debug[_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%]{background-color:#7fffd4}.debug.dark-theme[_nghost-%COMP%] .mat-keyboard-key-deadkey[_ngcontent-%COMP%]{background-color:#639}.debug.dark-theme[_nghost-%COMP%] .mat-keyboard-key-modifier[_ngcontent-%COMP%]{background-color:#9370db}\"], changeDetection: 0 });\r\nMatKeyboardComponent.ctorParameters = () => [\r\n { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] },\r\n { type: MatKeyboardService }\r\n];\r\nMatKeyboardComponent.propDecorators = {\r\n _keys: [{ type: ViewChildren, args: [MatKeyboardKeyComponent,] }],\r\n cssClass: [{ type: HostBinding, args: ['class.mat-keyboard',] }],\r\n onKeyDown: [{ type: HostListener, args: ['document:keydown', ['$event'],] }],\r\n onKeyUp: [{ type: HostListener, args: ['document:keyup', ['$event'],] }]\r\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardComponent, [{\n type: Component,\n args: [{\n selector: 'mat-keyboard',\n template: \"<div class=\\\"mat-keyboard-wrapper\\\"\\r\\n [class.dark-theme]=\\\"darkTheme$ | async\\\"\\r\\n [class.debug]=\\\"isDebug$ | async\\\"\\r\\n>\\r\\n <nav class=\\\"mat-keyboard-layout\\\">\\r\\n <div class=\\\"mat-keyboard-row\\\"\\r\\n *ngFor=\\\"let row of layout.keys\\\"\\r\\n >\\r\\n <ng-container *ngFor=\\\"let key of row\\\">\\r\\n <mat-keyboard-key class=\\\"mat-keyboard-col\\\"\\r\\n *ngIf=\\\"getModifiedKey(key)\\\"\\r\\n [key]=\\\"getModifiedKey(key)\\\"\\r\\n [icon]=\\\"getKeyIcon(key)\\\"\\r\\n [active]=\\\"isActive(key)\\\"\\r\\n [input]=\\\"inputInstance | async\\\"\\r\\n [control]=\\\"control\\\"\\r\\n (enterClick)=\\\"onEnterClick()\\\"\\r\\n (capsClick)=\\\"onCapsClick()\\\"\\r\\n (altClick)=\\\"onAltClick()\\\"\\r\\n (shiftClick)=\\\"onShiftClick()\\\"\\r\\n (keyClick)=\\\"onKeyClick()\\\"\\r\\n ></mat-keyboard-key>\\r\\n </ng-container>\\r\\n </div>\\r\\n </nav>\\r\\n</div>\\r\\n\",\n changeDetection: ChangeDetectionStrategy.OnPush,\n preserveWhitespaces: false,\n styles: [\".mat-keyboard-wrapper{background-color:#f5f5f5;border-radius:2px;display:flex;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;justify-content:space-between;line-height:20px;padding:14px 24px}.mat-keyboard-wrapper.dark-theme{background-color:#424242}.mat-keyboard-action{background:none;color:inherit;flex-shrink:0;font-family:inherit;font-size:inherit;font-weight:600;line-height:1;margin-left:8px;text-transform:uppercase}:host(.dark-theme) .mat-keyboard-action{color:#f5f5f5}.mat-keyboard-layout{width:100%}.mat-keyboard-row{align-items:stretch;display:flex;flex-direction:row;flex-wrap:nowrap}.mat-keyboard-col{box-sizing:border-box;flex:1 1 auto;padding:4px}.mat-keyboard-key{min-width:0;width:100%}:host(.dark-theme) .mat-keyboard-key{background-color:#616161;color:#f5f5f5}:host(.debug) .mat-keyboard-key-deadkey{background-color:#5f9ea0}:host(.debug) .mat-keyboard-key-modifier{background-color:#7fffd4}:host(.debug.dark-theme) .mat-keyboard-key-deadkey{background-color:#639}:host(.debug.dark-theme) .mat-keyboard-key-modifier{background-color:#9370db}\"]\n }]\n }], function () { return [{ type: String, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: MatKeyboardService }]; }, { cssClass: [{\n type: HostBinding,\n args: ['class.mat-keyboard']\n }], \n /**\n * listens to users keyboard inputs to simulate on virtual keyboard, too\n * @param event\n */\n onKeyDown: [{\n type: HostListener,\n args: ['document:keydown', ['$event']]\n }], \n /**\n * listens to users keyboard inputs to simulate on virtual keyboard, too\n * @param event\n */\n onKeyUp: [{\n type: HostListener,\n args: ['document:keyup', ['$event']]\n }], _keys: [{\n type: ViewChildren,\n args: [MatKeyboardKeyComponent]\n }] }); })();\n\nclass MatKeyboardDirective {\r\n constructor(_elementRef, _keyboardService, _control) {\r\n this._elementRef = _elementRef;\r\n this._keyboardService = _keyboardService;\r\n this._control = _control;\r\n this.enterClick = new EventEmitter();\r\n this.capsClick = new EventEmitter();\r\n this.altClick = new EventEmitter();\r\n this.shiftClick = new EventEmitter();\r\n }\r\n ngOnDestroy() {\r\n this.hideKeyboard();\r\n }\r\n showKeyboard() {\r\n this._keyboardRef = this._keyboardService.open(this.matKeyboard, {\r\n darkTheme: this.darkTheme,\r\n duration: this.duration,\r\n isDebug: this.isDebug\r\n });\r\n // reference the input element\r\n this._keyboardRef.instance.setInputInstance(this._elementRef);\r\n // set control if given, cast to smth. non-abstract\r\n if (this._control) {\r\n this._keyboardRef.instance.attachControl(this._control.control);\r\n }\r\n // connect outputs\r\n this._keyboardRef.instance.enterClick.subscribe(() => this.enterClick.next());\r\n this._keyboardRef.instance.capsClick.subscribe(() => this.capsClick.next());\r\n this._keyboardRef.instance.altClick.subscribe(() => this.altClick.next());\r\n this._keyboardRef.instance.shiftClick.subscribe(() => this.shiftClick.next());\r\n }\r\n hideKeyboard() {\r\n if (this._keyboardRef) {\r\n this._keyboardRef.dismiss();\r\n }\r\n }\r\n}\nMatKeyboardDirective.ɵfac = function MatKeyboardDirective_Factory(t) { return new (t || MatKeyboardDirective)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef), ɵngcc0.ɵɵdirectiveInject(MatKeyboardService), ɵngcc0.ɵɵdirectiveInject(ɵngcc7.NgControl, 10)); };\nMatKeyboardDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: MatKeyboardDirective, selectors: [[\"input\", \"matKeyboard\", \"\"], [\"textarea\", \"matKeyboard\", \"\"]], hostBindings: function MatKeyboardDirective_HostBindings(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵlistener(\"focus\", function MatKeyboardDirective_focus_HostBindingHandler($event) { return ctx.showKeyboard($event); })(\"blur\", function MatKeyboardDirective_blur_HostBindingHandler($event) { return ctx.hideKeyboard($event); });\n } }, inputs: { matKeyboard: \"matKeyboard\", darkTheme: \"darkTheme\", duration: \"duration\", isDebug: \"isDebug\" }, outputs: { enterClick: \"enterClick\", capsClick: \"capsClick\", altClick: \"altClick\", shiftClick: \"shiftClick\" } });\r\nMatKeyboardDirective.ctorParameters = () => [\r\n { type: ElementRef },\r\n { type: MatKeyboardService },\r\n { type: NgControl, decorators: [{ type: Optional }, { type: Self }] }\r\n];\r\nMatKeyboardDirective.propDecorators = {\r\n matKeyboard: [{ type: Input }],\r\n darkTheme: [{ type: Input }],\r\n duration: [{ type: Input }],\r\n isDebug: [{ type: Input }],\r\n enterClick: [{ type: Output }],\r\n capsClick: [{ type: Output }],\r\n altClick: [{ type: Output }],\r\n shiftClick: [{ type: Output }],\r\n showKeyboard: [{ type: HostListener, args: ['focus', ['$event'],] }],\r\n hideKeyboard: [{ type: HostListener, args: ['blur', ['$event'],] }]\r\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardDirective, [{\n type: Directive,\n args: [{\n selector: 'input[matKeyboard], textarea[matKeyboard]'\n }]\n }], function () { return [{ type: ɵngcc0.ElementRef }, { type: MatKeyboardService }, { type: ɵngcc7.NgControl, decorators: [{\n type: Optional\n }, {\n type: Self\n }] }]; }, { enterClick: [{\n type: Output\n }], capsClick: [{\n type: Output\n }], altClick: [{\n type: Output\n }], shiftClick: [{\n type: Output\n }], showKeyboard: [{\n type: HostListener,\n args: ['focus', ['$event']]\n }], hideKeyboard: [{\n type: HostListener,\n args: ['blur', ['$event']]\n }], matKeyboard: [{\n type: Input\n }], darkTheme: [{\n type: Input\n }], duration: [{\n type: Input\n }], isDebug: [{\n type: Input\n }] }); })();\n\nclass MatKeyboardKebabCasePipe {\r\n transform(value) {\r\n return value.replace(/([a-z])([A-Z])/g, '$1-$2')\r\n .replace(/\\s+/g, '-')\r\n .toLowerCase();\r\n }\r\n}\nMatKeyboardKebabCasePipe.ɵfac = function MatKeyboardKebabCasePipe_Factory(t) { return new (t || MatKeyboardKebabCasePipe)(); };\nMatKeyboardKebabCasePipe.ɵpipe = /*@__PURE__*/ ɵngcc0.ɵɵdefinePipe({ name: \"matKeyboardKebabCase\", type: MatKeyboardKebabCasePipe, pure: false });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardKebabCasePipe, [{\n type: Pipe,\n args: [{\n name: 'matKeyboardKebabCase',\n pure: false\n }]\n }], null, null); })();\n\n// External modules\r\nconst ɵ0 = keyboardDeadkeys, ɵ1 = keyboardLayouts;\r\nclass MatKeyboardModule {\r\n}\nMatKeyboardModule.ɵfac = function MatKeyboardModule_Factory(t) { return new (t || MatKeyboardModule)(); };\nMatKeyboardModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: MatKeyboardModule });\nMatKeyboardModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ providers: [\n MatKeyboardService,\n { provide: MAT_KEYBOARD_DEADKEYS, useValue: ɵ0 },\n { provide: MAT_KEYBOARD_LAYOUTS, useValue: ɵ1 }\n ], imports: [[\n // Angular modules\n CommonModule,\n OverlayModule,\n // Cdk modules\n PortalModule,\n // Material modules\n MatButtonModule,\n MatCommonModule,\n MatIconModule,\n MatInputModule\n ]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MatKeyboardModule, [{\n type: NgModule,\n args: [{\n imports: [\n // Angular modules\n CommonModule,\n OverlayModule,\n // Cdk modules\n PortalModule,\n // Material modules\n MatButtonModule,\n MatCommonModule,\n MatIconModule,\n MatInputModule\n ],\n exports: [\n MatKeyboardComponent,\n MatKeyboardContainerComponent,\n MatKeyboardKeyComponent,\n MatKeyboardDirective\n ],\n declarations: [\n MatKeyboardKebabCasePipe,\n MatKeyboardComponent,\n MatKeyboardContainerComponent,\n MatKeyboardKeyComponent,\n MatKeyboardDirective\n ],\n entryComponents: [\n MatKeyboardComponent,\n MatKeyboardContainerComponent,\n MatKeyboardKeyComponent\n ],\n providers: [\n MatKeyboardService,\n { provide: MAT_KEYBOARD_DEADKEYS, useValue: ɵ0 },\n { provide: MAT_KEYBOARD_LAYOUTS, useValue: ɵ1 }\n ]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(MatKeyboardModule, { declarations: function () { return [MatKeyboardKebabCasePipe, MatKeyboardComponent, MatKeyboardContainerComponent, MatKeyboardKeyComponent, MatKeyboardDirective]; }, imports: function () { return [\n // Angular modules\n CommonModule,\n OverlayModule,\n // Cdk modules\n PortalModule,\n // Material modules\n MatButtonModule,\n MatCommonModule,\n MatIconModule,\n MatInputModule]; }, exports: function () { return [MatKeyboardComponent, MatKeyboardContainerComponent, MatKeyboardKeyComponent, MatKeyboardDirective]; } }); })();\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { HIDE_ANIMATION, KEYBOARD_ICONS, KeyboardAnimationState, KeyboardAnimationTransition, KeyboardClassKey, KeyboardModifier, MAT_KEYBOARD_DEADKEYS, MAT_KEYBOARD_LAYOUTS, MatKeyboardComponent, MatKeyboardConfig, MatKeyboardContainerComponent, MatKeyboardDirective, MatKeyboardKebabCasePipe, MatKeyboardKeyComponent, MatKeyboardModule, MatKeyboardRef, MatKeyboardService, SHOW_ANIMATION, VALUE_NEWLINE, VALUE_SPACE, VALUE_TAB, _applyAvailableLayouts, _applyConfigDefaults, keyboardDeadkeys, keyboardLayouts, ɵ0, ɵ1 };\n\n","import { Component, OnInit, OnDestroy } from '@angular/core';\n\nimport { FieldType } from '@ngx-formly/material/form-field';\nimport { first } from 'rxjs/operators';\nimport { Subscription, Subject } from 'rxjs';\n\n@Component({\n selector: 'app-russian-keyboard',\n templateUrl: './russian-keyboard.component.html',\n styleUrls: ['./russian-keyboard.component.scss']\n})\nexport class RussianKeyboardComponent extends FieldType\n implements OnInit, OnDestroy {\n private subscription: Subscription;\n private subject: Subject<string>;\n\n constructor() {\n super();\n this.subject = new Subject();\n }\n\n ngOnInit() {\n this.subscription = this.subject\n .pipe(first())\n .subscribe(() => this.formControl.patchValue(''));\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n onFocus() {\n const value = this.formControl.value;\n if (value === undefined || value === null) {\n this.subject.next();\n }\n }\n}\n","<input\n matInput\n matKeyboard=\"ru\"\n name=\"russianKeyboard\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (focus)=\"onFocus()\"\n/>\n","/*!\n* Pintura v8.71.5 \n* (c) 2018-2024 PQINA Inc. - All Rights Reserved\n* License: https://pqina.nl/pintura/license/\n*/\n/* eslint-disable */\n\nconst JFIF_MARKER = 0xffe0;\nconst EXIF_MARKER = 0xffe1;\nconst SOS_MARKER = 0xffda;\nconst XMP_MARKER = 0xffe1;\nconst MPF_MARKER = 0xffe2;\nconst Markers = [\n { value: JFIF_MARKER, name: 'jfif' },\n { value: SOS_MARKER, name: 'sos' },\n { value: EXIF_MARKER, subvalue: 0x4578, name: 'exif' },\n { value: XMP_MARKER, subvalue: 0x6874, name: 'xmp' },\n { value: MPF_MARKER, subvalue: 0x4d50, name: 'mpf' },\n];\nconst JPEG_SOI_MARKER = 0xffd8; // start of JPEG\nconst JPEG_MARKER_PREFIX = 0xff;\nvar dataViewGetApplicationMarkers = (view) => {\n // If no SOI marker exit here because we're not going to find the APP1 header in a non-jpeg file\n if (view.getUint16(0) !== JPEG_SOI_MARKER)\n return undefined;\n const length = view.byteLength; // cache the length here\n let offset = 2; // start at 2 as we skip the SOI marker\n let marker; // this will hold the current marker\n // resulting markers\n let res = undefined;\n while (offset < length) {\n // test if marker is valid JPEG marker (starts with ff)\n if (view.getUint8(offset) !== JPEG_MARKER_PREFIX)\n break;\n // let's read the full marker\n marker = view.getUint16(offset);\n // read marker if included in marker types\n const markerDescription = Markers.find((descriptor) => {\n if (descriptor.value === marker) {\n if (descriptor.subvalue)\n return descriptor.subvalue === view.getUint16(offset + 2 + 2);\n return true;\n }\n return false;\n });\n if (markerDescription) {\n const { name } = markerDescription;\n if (!res)\n res = {};\n // prevent overwriting by double markers\n if (!res[name]) {\n res[name] = {\n offset,\n size: view.getUint16(offset + 2),\n };\n }\n }\n // Image stream starts here, no markers found\n if (marker === SOS_MARKER)\n break;\n // next offset is 2 to skip over marker type and then we add marker data size to skip to next marker\n offset += 2 + view.getUint16(offset + 2);\n }\n // no APP markers found\n return res;\n};\n\nconst APP1_MARKER = 0xffe1;\nconst APP1_EXIF_IDENTIFIER = 0x45786966;\nconst TIFF_MARKER = 0x002a;\nconst BYTE_ALIGN_MOTOROLA = 0x4d4d;\nconst BYTE_ALIGN_INTEL = 0x4949;\n// offset = start of APP1_MARKER\nvar dataViewGetExifTags = (view, offset) => {\n // If no APP1 marker exit here because we're not going to find the EXIF id header outside of APP1\n if (view.getUint16(offset) !== APP1_MARKER)\n return undefined;\n // get marker size\n const size = view.getUint16(offset + 2); // 14197\n // Let's skip over app1 marker and size marker (2 + 2 bytes)\n offset += 4;\n // We're now at the EXIF header marker (we'll only check the first 4 bytes, reads \"exif\"), if not there, exit\n if (view.getUint32(offset) !== APP1_EXIF_IDENTIFIER)\n return undefined;\n // Let's skip over 6 byte EXIF marker\n offset += 6;\n // Read byte alignment\n const byteAlignment = view.getUint16(offset);\n if (byteAlignment !== BYTE_ALIGN_INTEL && byteAlignment !== BYTE_ALIGN_MOTOROLA)\n return undefined;\n const storedAsLittleEndian = byteAlignment === BYTE_ALIGN_INTEL;\n // Skip over byte alignment\n offset += 2;\n // Test if valid tiff marker data, should always be 0x002a\n if (view.getUint16(offset, storedAsLittleEndian) !== TIFF_MARKER)\n return undefined;\n // Skip to first IDF, position of IDF is read after tiff marker (offset 2)\n offset += view.getUint32(offset + 2, storedAsLittleEndian);\n // helper method to find tag offset by marker\n const getTagOffsets = (marker) => {\n const offsets = [];\n let i = offset;\n const max = Math.min(view.byteLength, offset + size - 16);\n for (; i < max; i += 12) {\n const tagOffset = i;\n // see if is match, if not, next entry\n if (view.getUint16(tagOffset, storedAsLittleEndian) !== marker)\n continue;\n // add offset\n offsets.push(tagOffset);\n }\n return offsets;\n };\n return {\n read: (address) => {\n const tagOffsets = getTagOffsets(address);\n if (!tagOffsets.length)\n return undefined;\n // only return first found tag\n return view.getUint16(tagOffsets[0] + 8, storedAsLittleEndian);\n },\n write: (address, value) => {\n const tagOffsets = getTagOffsets(address);\n if (!tagOffsets.length)\n return false;\n // overwrite all found tags (sometimes images can have multiple tags with the same value, let's make sure they're all set)\n tagOffsets.forEach((offset) => view.setUint16(offset + 8, value, storedAsLittleEndian));\n return true;\n },\n };\n};\n\nconst ORIENTATION_TAG = 0x0112;\nvar arrayBufferImageExif = (data, key, value) => {\n // no data, no go!\n if (!data)\n return;\n const view = new DataView(data);\n // Get app1 header offset\n const markers = dataViewGetApplicationMarkers(view);\n if (!markers || !markers.exif)\n return;\n // Get EXIF tags read/writer\n const tags = dataViewGetExifTags(view, markers.exif.offset);\n if (!tags)\n return;\n // Read the exif orientation marker\n return value === undefined ? tags.read(key) : tags.write(key, value);\n};\n\nconst backup = '__pqina_webapi__';\nvar getNativeAPIRef = (API) => (window[backup] ? window[backup][API] : window[API]);\n\nvar noop$1 = (...args) => { };\n\nconst FileReaderDataFormat = {\n ArrayBuffer: 'readAsArrayBuffer',\n};\nvar readFile = (file, onprogress = noop$1, options = {}) => new Promise((resolve, reject) => {\n const { dataFormat = FileReaderDataFormat.ArrayBuffer } = options;\n const reader = new (getNativeAPIRef('FileReader'))();\n reader.onload = () => resolve(reader.result);\n reader.onerror = () => reject(reader.error);\n reader.onprogress = onprogress;\n reader[dataFormat](file);\n});\n\nvar blobReadSection = async (blob, slice = [0, blob.size], onprogress) => (await readFile(blob.slice(...slice), onprogress));\n\nvar getImageOrientationFromFile = async (file, onprogress) => {\n // 64 * 4096 should be plenty to find extract header\n // Exif metadata are restricted in size to 64 kB in JPEG images because\n // according to the specification this information must be contained within a single JPEG APP1 segment.\n const head = await blobReadSection(file, [0, 64 * 4096], onprogress);\n return arrayBufferImageExif(head, ORIENTATION_TAG) || 1;\n};\n\nlet result$c = null;\nvar isBrowser = () => {\n if (result$c === null)\n result$c = typeof window !== 'undefined' && typeof window.document !== 'undefined';\n return result$c;\n};\n\nlet result$b = null;\nvar canOrientImages = () => new Promise((resolve) => {\n if (result$b === null) {\n // 2x1 pixel image 90CW rotated with orientation EXIF header\n const testSrc = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';\n let testImage = isBrowser() ? new Image() : {};\n testImage.onload = () => {\n // should correct orientation if is presented in landscape,\n // in which case the browser doesn't autocorrect\n result$b = testImage.naturalWidth === 1;\n testImage = undefined;\n resolve(result$b);\n };\n testImage.src = testSrc;\n return;\n }\n return resolve(result$b);\n});\n\nvar canvasToImageData = (canvas) => {\n const imageData = canvas\n .getContext('2d')\n .getImageData(0, 0, canvas.width, canvas.height);\n return imageData;\n};\n\nvar h = (name, attributes, children = []) => {\n const el = document.createElement(name);\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(el.__proto__);\n for (const key in attributes) {\n if (key === 'style') {\n el.style.cssText = attributes[key];\n }\n else if ((descriptors[key] && descriptors[key].set) ||\n /textContent|innerHTML/.test(key) ||\n typeof attributes[key] === 'function') {\n el[key] = attributes[key];\n }\n else {\n el.setAttribute(key, attributes[key]);\n }\n }\n children.forEach((child) => el.appendChild(child));\n return el;\n};\n\nconst MATRICES = {\n 1: () => [1, 0, 0, 1, 0, 0],\n 2: (width) => [-1, 0, 0, 1, width, 0],\n 3: (width, height) => [-1, 0, 0, -1, width, height],\n 4: (width, height) => [1, 0, 0, -1, 0, height],\n 5: () => [0, 1, 1, 0, 0, 0],\n 6: (width, height) => [0, 1, -1, 0, height, 0],\n 7: (width, height) => [0, -1, -1, 0, height, width],\n 8: (width) => [0, -1, 1, 0, 0, width],\n};\nvar getImageOrientationMatrix = (width, height, orientation = -1) => {\n if (orientation === -1)\n orientation = 1;\n return MATRICES[orientation](width, height);\n};\n\nvar releaseCanvas = (canvas) => {\n canvas.width = 1;\n canvas.height = 1;\n const ctx = canvas.getContext('2d');\n ctx && ctx.clearRect(0, 0, 1, 1);\n};\n\nvar isImageData = (obj) => 'data' in obj;\n\nvar isUserAgent = (test) => isBrowser() ? RegExp(test).test(window.navigator.userAgent) : undefined;\n\nlet result$a = null;\nvar isAndroid = () => {\n if (result$a === null)\n result$a = isUserAgent(/Android/);\n return result$a;\n};\n\nvar canvasClone = (canvas, options) => {\n const clone = h('canvas', { width: canvas.width, height: canvas.height });\n clone.getContext('2d', options).drawImage(canvas, 0, 0);\n return clone;\n};\n\nvar imageDataToCanvas = async (imageData, orientation = 1) => {\n const canOrient = await canOrientImages();\n const [width, height] = canOrient || orientation < 5\n ? [imageData.width, imageData.height]\n : [imageData.height, imageData.width];\n const canvas = h('canvas', { width, height });\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n // transform image data ojects into in memory canvas elements so we can transform them (putImageData isn't affect by transforms)\n if (isImageData(imageData) && !canOrient && orientation > 1) {\n const inMemoryCanvas = h('canvas', {\n width: imageData.width,\n height: imageData.height,\n });\n const ctx = inMemoryCanvas.getContext('2d', { willReadFrequently: true });\n ctx.putImageData(imageData, 0, 0);\n imageData = inMemoryCanvas;\n }\n // get base transformation matrix\n if (!canOrient && orientation > 1) {\n ctx.transform.apply(ctx, getImageOrientationMatrix(imageData.width, imageData.height, orientation));\n }\n // can't test for instanceof ImageBitmap as Safari doesn't support it\n // if still imageData object by this point, we'll use put\n if (isImageData(imageData)) {\n ctx.putImageData(imageData, 0, 0);\n // Somehow on Android + Intel (not on M1) a toBlob call on the current canvas won't return a valid image blob, for some reason duplicating the canvas solves it #882\n if (isAndroid())\n return canvasClone(canvas);\n }\n else {\n ctx.drawImage(imageData, 0, 0);\n }\n // if image data is of type canvas, clean it up\n if (imageData instanceof HTMLCanvasElement)\n releaseCanvas(imageData);\n return canvas;\n};\n\nvar orientImageData = async (imageData, orientation = 1) => {\n if (orientation === 1)\n return imageData;\n // correct image data for when the browser does not correctly read exif orientation headers\n if (!(await canOrientImages()))\n return canvasToImageData(await imageDataToCanvas(imageData, orientation));\n return imageData;\n};\n\nvar isObject = (v) => typeof v === 'object';\n\nconst copy = (val) => {\n // don't clone html elements\n if (val instanceof HTMLElement)\n return val;\n // clone objects\n return isObject(val) ? deepCopy(val) : val;\n};\nconst deepCopy = (src) => {\n let dst;\n if (Array.isArray(src)) {\n dst = [];\n src.forEach((val, i) => {\n dst[i] = copy(val);\n });\n }\n else {\n dst = {};\n Object.keys(src).forEach((key) => {\n const val = src[key];\n dst[key] = copy(val);\n });\n }\n return dst;\n};\n\nvar isString = (v) => typeof v === 'string';\n\nvar isFunction = (v) => typeof v === 'function';\n\nvar imageToCanvas = (image, { width, height, canvasMemoryLimit, contextOptions }) => {\n let canvasWidth = width || image.naturalWidth;\n let canvasHeight = height || image.naturalHeight;\n // if no width and no height use defaults\n if (!canvasWidth && !canvasHeight) {\n // if these are 0 it's possible that we're trying to convert an SVG that doesn't have width or height attributes\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1328124\n canvasWidth = 300;\n canvasHeight = 150;\n }\n // determine if requires more memory than limit, if so limit target size\n const requiredCanvasMemory = canvasWidth * canvasHeight;\n if (canvasMemoryLimit && requiredCanvasMemory > canvasMemoryLimit) {\n const canvasScalar = Math.sqrt(canvasMemoryLimit) / Math.sqrt(requiredCanvasMemory);\n canvasWidth = Math.floor(canvasWidth * canvasScalar);\n canvasHeight = Math.floor(canvasHeight * canvasScalar);\n }\n // create new canvas element\n const canvas = h('canvas');\n canvas.width = canvasWidth;\n canvas.height = canvasHeight;\n const ctx = canvas.getContext('2d', contextOptions);\n ctx.drawImage(image, 0, 0, canvasWidth, canvasHeight);\n return canvas;\n};\n\n// turns image into canvas only after it's fully loaded\nvar imageToCanvasSafe = (image, options) => new Promise((resolve, reject) => {\n const ready = () => resolve(imageToCanvas(image, options));\n if (image.complete && image.width) {\n // need to test for image.width, on ie11 it will be 0 for object urls\n ready();\n }\n else {\n image.onload = ready;\n image.onerror = () => reject(new Error('Failed to load image'));\n }\n});\n\nvar blobToCanvas = async (imageBlob, options) => {\n const imageElement = h('img', {\n src: URL.createObjectURL(imageBlob),\n });\n const canvas = await imageToCanvasSafe(imageElement, options);\n URL.revokeObjectURL(imageElement.src);\n return canvas;\n};\n\nvar canCreateImageBitmap = () => 'createImageBitmap' in window;\n\nvar canCreateOffscreenCanvas = () => 'OffscreenCanvas' in window;\n\nvar isSVGFile = (blob) => /svg/.test(blob.type);\n\nvar getUniqueId = () => Math.random().toString(36).substring(2, 9);\n\nvar functionToBlob = (fn) => new Blob(['(', typeof fn === 'function' ? fn.toString() : fn, ')()'], {\n type: 'application/javascript',\n});\n\nconst wrapFunction = (fn) => `function () {self.onmessage = function (message) {(${fn.toString()}).apply(null, message.data.content.concat([function (err, response) {\n response = response || {};\n const transfer = 'data' in response ? [response.data.buffer] : 'width' in response ? [response] : [];\n return self.postMessage({ id: message.data.id, content: response, error: err }, transfer);\n}]))}}`;\nconst workerPool = new Map();\nvar thread = (fn, args, transferList) => new Promise((resolve, reject) => {\n const workerKey = fn.toString();\n let pooledWorker = workerPool.get(workerKey);\n if (!pooledWorker) {\n // create worker for this function\n const workerFn = wrapFunction(fn);\n // create a new web worker\n const url = URL.createObjectURL(functionToBlob(workerFn));\n const messages = new Map();\n const worker = new Worker(url);\n // create a pooled worker, this object will contain the worker and active messages\n pooledWorker = {\n url,\n worker,\n messages,\n terminationTimeout: undefined,\n terminate: () => {\n clearTimeout(pooledWorker.terminationTimeout);\n pooledWorker.worker.terminate();\n URL.revokeObjectURL(url);\n workerPool.delete(workerKey);\n },\n };\n // handle received messages\n worker.onmessage = function (e) {\n // should receive message id and message\n const { id, content, error } = e.data;\n // automatically clean up workers after half a second\n clearTimeout(pooledWorker.terminationTimeout);\n pooledWorker.terminationTimeout = setTimeout(() => {\n if (messages.size > 0)\n return;\n pooledWorker.terminate();\n }, 500);\n // message route no longer valid\n if (!messages.has(id))\n return;\n // get related thread and resolve with returned content\n const message = messages.get(id);\n // remove thread from threads cache\n messages.delete(id);\n // resolve or reject message based on response from worker\n error != null ? message.reject(error) : message.resolve(content);\n };\n // pool this worker\n workerPool.set(workerKey, pooledWorker);\n }\n // we need a way to remember this message so we generate a unique id and use that as a key for this request, that way we can link the response back to request in the pooledWorker.onmessage handler\n const messageId = getUniqueId();\n pooledWorker.messages.set(messageId, { resolve, reject });\n // use pooled worker and await response\n pooledWorker.worker.postMessage({ id: messageId, content: args }, transferList);\n});\n\nlet result$9 = null;\nvar isFirefox = () => {\n if (result$9 === null)\n result$9 = isUserAgent(/Firefox/);\n return result$9;\n};\n\nvar blobToImageData = async (imageBlob, canvasMemoryLimit) => {\n const mainThreadBlobToImageData = async () => {\n const canvas = await blobToCanvas(imageBlob, {\n canvasMemoryLimit,\n contextOptions: { willReadFrequently: true },\n });\n const imageData = canvasToImageData(canvas);\n releaseCanvas(canvas);\n return imageData;\n };\n // somehow there's a weird issue with Android where when it uses offscreen canvas\n // the imagedata gets \"lost\" when turning a canvas with that imagedata back into a blob\n // for now we can circumvent the issue by creating the imagedata in the main thread\n // if we do this on Firefox we get a black image so we exclude firefox on android\n if (isAndroid() && !isFirefox()) {\n return await mainThreadBlobToImageData();\n }\n let imageData;\n // if can use OffscreenCanvas let's go for it as it will mean we can run this operation on a separate thread\n if (canCreateImageBitmap() && !isSVGFile(imageBlob) && canCreateOffscreenCanvas()) {\n try {\n imageData = await thread((file, canvasMemoryLimit, done) => {\n createImageBitmap(file)\n .then((bitmap) => {\n let canvasWidth = bitmap.width;\n let canvasHeight = bitmap.height;\n // determine if requires more memory than limit, if so limit target size\n const requiredCanvasMemory = canvasWidth * canvasHeight;\n if (canvasMemoryLimit && requiredCanvasMemory > canvasMemoryLimit) {\n const canvasScalar = Math.sqrt(canvasMemoryLimit) / Math.sqrt(requiredCanvasMemory);\n canvasWidth = Math.floor(canvasWidth * canvasScalar);\n canvasHeight = Math.floor(canvasHeight * canvasScalar);\n }\n const canvas = new OffscreenCanvas(canvasWidth, canvasHeight);\n const ctx = canvas.getContext('2d', {\n // we're going to read from this canvas, don't hardware accelerate\n willReadFrequently: true,\n });\n ctx.drawImage(bitmap, 0, 0, canvasWidth, canvasHeight);\n const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n done(null, imageData);\n })\n .catch((err) => {\n // fail silently\n done(err);\n });\n }, [imageBlob, canvasMemoryLimit]);\n }\n catch (err) {\n // fails silently on purpose, we'll try to turn the blob into image data in the main thread\n // console.error(err);\n }\n }\n // use main thread to generate ImageData\n if (!imageData || !imageData.width)\n return await mainThreadBlobToImageData();\n return imageData;\n};\n\nvar canvasToBlob = (canvas, mimeType = undefined, quality = undefined) => new Promise((resolve, reject) => {\n try {\n canvas.toBlob((blob) => {\n if (!blob)\n return reject(new Error('Failed to create blob'));\n resolve(blob);\n }, mimeType, quality);\n }\n catch (err) {\n reject(err);\n }\n});\n\nvar imageDataToBlob = async (imageData, mimeType, quality) => {\n const canvas = await imageDataToCanvas(imageData);\n const blob = await canvasToBlob(canvas, mimeType, quality);\n releaseCanvas(canvas);\n return blob;\n};\n\nvar blobWriteSection = (blob, section, slice = [0, blob.size]) => {\n if (!section)\n return blob;\n return new Blob([section, blob.slice(...slice)], { type: blob.type });\n};\n\nconst mimeTypes = {\n matroska: 'mkv',\n};\nvar getExtensionFromMimeType = (mimeType) => {\n const ext = (mimeType.match(/\\/([a-z0-9]+)/) || [])[1];\n if (/^x/.test(ext)) {\n const [, post = ''] = mimeType.split('/x-');\n return mimeTypes[post];\n }\n return ext;\n};\n\nvar getFilenameWithoutExtension = (name) => name.substr(0, name.lastIndexOf('.')) || name;\n\nvar getExtensionFromFilename = (filename) => filename.split('.').pop();\n\nconst ImageExtensionsRegex = /avif|bmp|gif|jpg|jpeg|jpe|jif|jfif|png|svg|tiff|webp/;\n/*\nSupport image mime types\n- image/webp\n- image/gif\n- image/avif\n- image/jpeg\n- image/png\n- image/bmp\n- image/svg+xml\n*/\nvar getMimeTypeFromExtension = (ext) => {\n // empty string returned if extension not found\n if (!ImageExtensionsRegex.test(ext))\n return '';\n // return MimeType for this extension\n return 'image/' + (/jfif|jif|jpe|jpg/.test(ext) ? 'jpeg' : ext === 'svg' ? 'svg+xml' : ext);\n};\n\nvar getMimeTypeFromFilename = (name) => name && getMimeTypeFromExtension(getExtensionFromFilename(name).toLowerCase());\n\nvar matchFilenameToMimeType = (filename, mimeType) => {\n // get the mime type that matches this extension\n const fileMimeType = getMimeTypeFromFilename(filename);\n // test if type already matches current mime type, no need to change name\n if (fileMimeType === mimeType)\n return filename;\n // get the extension for this mimetype (gets all characters after the \"image/\" part)\n // if mimeType doesn't yield an extension, use the fileMimeType\n const targetMimeTypeExtension = getExtensionFromMimeType(mimeType) || fileMimeType;\n return `${getFilenameWithoutExtension(filename)}.${targetMimeTypeExtension}`;\n};\n\nvar blobToFile = (blob, filename, mimetype) => {\n const lastModified = new Date().getTime();\n const blobHasMimeType = blob.type.length && !/null|text/.test(blob.type);\n const blobMimeType = blobHasMimeType ? blob.type : mimetype;\n const name = matchFilenameToMimeType(filename, blobMimeType);\n try {\n return new (getNativeAPIRef('File'))([blob], name, {\n lastModified,\n type: blobHasMimeType ? blob.type : blobMimeType,\n });\n }\n catch (err) {\n const file = blobHasMimeType ? blob.slice() : blob.slice(0, blob.size, blobMimeType);\n file.lastModified = lastModified;\n file.name = name;\n return file;\n }\n};\n\nvar getAspectRatio = (w, h) => w / h;\n\nvar passthrough = (v) => (v);\n\nconst PI = Math.PI;\nconst HALF_PI = Math.PI / 2;\nconst QUART_PI = HALF_PI / 2;\n\nvar isRotatedSideways = (a) => {\n const rotationLimited = Math.abs(a) % Math.PI;\n return rotationLimited > QUART_PI && rotationLimited < Math.PI - QUART_PI;\n};\n\n// enum Direction {\n// Top = 't',\n// Right = 'r',\n// Bottom = 'b',\n// Left = 'l',\n// TopLeft = 'tl',\n// TopRight = 'tr',\n// BottomRight = 'br',\n// BottomLeft = 'bl',\n// }\n// export const { Top, Right, Bottom, Left, TopLeft, TopRight, BottomRight, BottomLeft } = Direction;\n// export default Direction;\nconst Direction = {\n Top: 't',\n Right: 'r',\n Bottom: 'b',\n Left: 'l',\n TopLeft: 'tl',\n TopRight: 'tr',\n BottomRight: 'br',\n BottomLeft: 'bl',\n};\nconst { Top, Right, Bottom, Left, TopLeft, TopRight, BottomRight, BottomLeft } = Direction;\n\nvar DirectionCoordinateTable = {\n [Top]: [0.5, 0],\n [Right]: [1, 0.5],\n [Bottom]: [0.5, 1],\n [Left]: [0, 0.5],\n [TopLeft]: [0, 0],\n [TopRight]: [1, 0],\n [BottomRight]: [1, 1],\n [BottomLeft]: [0, 1],\n};\n\nvar fixPrecision = (value, precision = 12) => parseFloat(value.toFixed(precision));\n\n//\n// generic\n//\nconst scale = (value, scalar, pivot) => pivot + (value - pivot) * scalar;\nconst ellipseCreateFromRect = (rect) => ({\n x: rect.x + rect.width * 0.5,\n y: rect.y + rect.height * 0.5,\n rx: rect.width * 0.5,\n ry: rect.height * 0.5,\n});\n//\n// vector\n//\nconst vectorCreateEmpty = () => vectorCreate(0, 0);\nconst vectorCreate = (x, y) => ({ x, y });\nconst vectorCreateFromSize = (size) => vectorCreate(size.width, size.height);\nconst vectorCreateFromAny = (obj) => vectorCreate(obj.x, obj.y);\nconst vectorCreateFromPointerEvent = (e) => vectorCreate(e.pageX, e.pageY);\nconst vectorCreateFromPointerEventOffset = (e) => vectorCreate(e.offsetX, e.offsetY);\nconst vectorClone = (v) => vectorCreate(v.x, v.y);\nconst vectorUpdate = (v, x, y) => {\n v.x = x;\n v.y = y;\n return v;\n};\nconst vectorInvert = (v) => {\n v.x = -v.x;\n v.y = -v.y;\n return v;\n};\nconst vectorPerpendicular = (v) => {\n const x = v.x;\n v.x = -v.y;\n v.y = x;\n return v;\n};\nconst vectorRotate = (v, radians, pivot = vectorCreateEmpty()) => {\n const cos = Math.cos(radians);\n const sin = Math.sin(radians);\n const tx = v.x - pivot.x;\n const ty = v.y - pivot.y;\n v.x = pivot.x + cos * tx - sin * ty;\n v.y = pivot.y + sin * tx + cos * ty;\n return v;\n};\nconst vectorLength = (v) => Math.sqrt(v.x * v.x + v.y * v.y);\nconst vectorNormalize = (v) => {\n const length = Math.sqrt(v.x * v.x + v.y * v.y);\n if (length === 0)\n return vectorCreateEmpty();\n v.x /= length;\n v.y /= length;\n return v;\n};\nconst vectorAngle = (v) => Math.atan2(v.y, v.x);\nconst vectorAngleBetween = (a, b) => Math.atan2(b.y - a.y, b.x - a.x);\nconst vectorEqual = (a, b) => a.x === b.x && a.y === b.y;\nconst vectorApply = (v, fn) => {\n v.x = fn(v.x);\n v.y = fn(v.y);\n return v;\n};\nconst vectorInSize = (v, size) => {\n return v.x >= 0 && v.y >= 0 && v.x <= size.width && v.y <= size.height;\n};\nconst vectorAdd = (a, b) => {\n a.x += b.x;\n a.y += b.y;\n return a;\n};\nconst vectorSubtract = (a, b) => {\n a.x -= b.x;\n a.y -= b.y;\n return a;\n};\nconst vectorDivide = (v, l) => {\n v.x /= l;\n v.y /= l;\n return v;\n};\nconst vectorMultiply = (v, f) => {\n v.x *= f;\n v.y *= f;\n return v;\n};\nconst vectorDot = (a, b) => a.x * b.x + a.y * b.y;\nconst vectorCross = (a, b) => a.x * b.y - a.y * b.x;\nconst vectorDistanceSquared = (a, b = vectorCreateEmpty()) => {\n const x = a.x - b.x;\n const y = a.y - b.y;\n return x * x + y * y;\n};\nconst vectorDistance = (a, b = vectorCreateEmpty()) => Math.sqrt(vectorDistanceSquared(a, b));\nconst vectorScale = (v, scalar, pivot) => {\n v.x = scale(v.x, scalar, pivot.x);\n v.y = scale(v.y, scalar, pivot.y);\n return v;\n};\nconst vectorCenter = (v) => {\n let x = 0;\n let y = 0;\n v.forEach((v) => {\n x += v.x;\n y += v.y;\n });\n return vectorCreate(x / v.length, y / v.length);\n};\nconst vectorsFlip = (points, flipX, flipY, cx, cy) => {\n points.forEach((point) => {\n point.x = flipX ? cx - (point.x - cx) : point.x;\n point.y = flipY ? cy - (point.y - cy) : point.y;\n });\n return points;\n};\nconst vectorsRotate = (points, angle, cx, cy) => {\n const s = Math.sin(angle);\n const c = Math.cos(angle);\n points.forEach((p) => {\n p.x -= cx;\n p.y -= cy;\n const rx = p.x * c - p.y * s;\n const ry = p.x * s + p.y * c;\n p.x = cx + rx;\n p.y = cy + ry;\n });\n return points;\n};\n//\n// size\n//\nconst toSize = (width, height) => ({ width, height });\nconst sizeClone = (size) => toSize(size.width, size.height);\nconst sizeCreateFromAny = (obj) => toSize(obj.width, obj.height);\nconst sizeCreateFromRect = (r) => toSize(r.width, r.height);\nconst sizeCreateFromArray = (a) => toSize(a[0], a[1]);\nconst sizeCreateFromImageNaturalSize = (image) => toSize(image.naturalWidth, image.naturalHeight);\nconst sizeCreateFromElement = (element) => {\n if (/img/i.test(element.nodeName)) {\n return sizeCreateFromImageNaturalSize(element);\n }\n return sizeCreateFromAny(element);\n};\nconst sizeCreate = (width, height) => toSize(width, height);\nconst sizeEqual = (a, b, format = passthrough) => format(a.width) === format(b.width) && format(a.height) === format(b.height);\nconst sizeScale = (size, scalar) => {\n size.width *= scalar;\n size.height *= scalar;\n return size;\n};\nconst sizeCenter = (size) => vectorCreate(size.width * 0.5, size.height * 0.5);\nconst sizeRotate = (size, radians) => {\n const r = Math.abs(radians);\n const cos = Math.abs(Math.cos(r));\n const sin = Math.abs(Math.sin(r));\n const w = cos * size.width + sin * size.height;\n const h = sin * size.width + cos * size.height;\n size.width = w;\n size.height = h;\n return size;\n};\nconst sizeTurn = (size, radians) => {\n const w = size.width;\n const h = size.height;\n if (isRotatedSideways(radians)) {\n size.width = h;\n size.height = w;\n }\n return size;\n};\nconst sizeContains = (a, b) => a.width >= b.width && a.height >= b.height;\nconst sizeApply = (size, fn) => {\n size.width = fn(size.width);\n size.height = fn(size.height);\n return size;\n};\nconst sizeHypotenuse = (size) => Math.sqrt(size.width * size.width + size.height * size.height);\nconst sizeMin = (a, b) => sizeCreate(Math.min(a.width, b.width), Math.min(a.height, b.height));\n//\n// line\n//\nconst lineCreate = (start, end) => ({ start, end });\nconst lineClone = (line) => lineCreate(vectorClone(line.start), vectorClone(line.end));\nconst lineExtend = (line, amount) => {\n if (amount === 0)\n return line;\n const v = vectorCreate(line.start.x - line.end.x, line.start.y - line.end.y);\n const n = vectorNormalize(v);\n const m = vectorMultiply(n, amount);\n line.start.x += m.x;\n line.start.y += m.y;\n line.end.x -= m.x;\n line.end.y -= m.y;\n return line;\n};\nconst lineMultiply = (line, amount) => {\n if (amount === 0)\n return line;\n const v = vectorCreate(line.start.x - line.end.x, line.start.y - line.end.y);\n const n = vectorNormalize(v);\n const m = vectorMultiply(n, amount);\n line.end.x += m.x;\n line.end.y += m.y;\n return line;\n};\nconst lineExtrude = ({ start, end }, amount) => {\n if (amount === 0)\n return [\n vectorCreate(start.x, start.y),\n vectorCreate(start.x, start.y),\n vectorCreate(end.x, end.y),\n vectorCreate(end.x, end.y),\n ];\n const a = Math.atan2(end.y - start.y, end.x - start.x);\n const sina = Math.sin(a) * amount;\n const cosa = Math.cos(a) * amount;\n return [\n vectorCreate(sina + start.x, -cosa + start.y),\n vectorCreate(-sina + start.x, cosa + start.y),\n vectorCreate(-sina + end.x, cosa + end.y),\n vectorCreate(sina + end.x, -cosa + end.y),\n ];\n};\n//\n// rect\n//\nconst CornerSigns = [\n vectorCreate(-1, -1),\n vectorCreate(-1, 1),\n vectorCreate(1, 1),\n vectorCreate(1, -1),\n];\nconst toRect = (x, y, width, height) => ({\n x,\n y,\n width,\n height,\n});\nconst rectClone$1 = (rect) => toRect(rect.x, rect.y, rect.width, rect.height);\nconst rectCreateEmpty = () => toRect(0, 0, 0, 0);\nconst rectCreateFromDimensions = (width, height) => toRect(0, 0, width, height);\nconst rectCreateFromSize = (size) => toRect(0, 0, size.width, size.height);\nconst rectCreateFromBounds = (bounds) => toRect(bounds[3], bounds[0], bounds[1] - bounds[3], bounds[2] - bounds[0]);\nconst rectCreateFromAny = (obj) => toRect(obj.x || 0, obj.y || 0, obj.width || 0, obj.height || 0);\nconst rectCreateFromPoints = (points) => {\n let xMin = points[0].x;\n let xMax = points[0].x;\n let yMin = points[0].y;\n let yMax = points[0].y;\n points.forEach((point) => {\n xMin = Math.min(xMin, point.x);\n xMax = Math.max(xMax, point.x);\n yMin = Math.min(yMin, point.y);\n yMax = Math.max(yMax, point.y);\n });\n return toRect(xMin, yMin, xMax - xMin, yMax - yMin);\n};\nconst rectCreateFromEllipse = (ellipse) => rectCreate(ellipse.x - ellipse.rx, ellipse.y - ellipse.ry, ellipse.rx * 2, ellipse.ry * 2);\nconst rectCreateWithCenter = (center, size) => toRect(center.x - size.width * 0.5, center.y - size.height * 0.5, size.width, size.height);\nconst rectCreate = (x, y, width, height) => toRect(x, y, width, height);\nconst rectCenter = (rect) => vectorCreate(rect.x + rect.width * 0.5, rect.y + rect.height * 0.5);\nconst rectTranslate$1 = (rect, t) => {\n rect.x += t.x;\n rect.y += t.y;\n return rect;\n};\nconst rectScale$1 = (rect, scalar, pivot) => {\n pivot = pivot || rectCenter(rect);\n rect.x = scalar * (rect.x - pivot.x) + pivot.x;\n rect.y = scalar * (rect.y - pivot.y) + pivot.y;\n rect.width = scalar * rect.width;\n rect.height = scalar * rect.height;\n return rect;\n};\nconst rectClamp = (rect, sizeMin, sizeMax, pivot) => {\n const x = (pivot.x - rect.x) / rect.width;\n const y = (pivot.y - rect.y) / rect.height;\n let width = Math.max(sizeMin.width, rect.width);\n let height = Math.max(sizeMin.height, rect.height);\n width = Math.min(sizeMax.width, width);\n height = Math.min(sizeMax.height, height);\n rect.x = pivot.x - x * width;\n rect.y = pivot.y - y * height;\n rect.width = width;\n rect.height = height;\n return rect;\n};\nconst rectGetCornerByTarget = (rect, target) => {\n const [xf, yf] = DirectionCoordinateTable[target];\n const x = xf * rect.width;\n const y = yf * rect.height;\n return vectorCreate(rect.x + x, rect.y + y);\n};\nconst rectMultiply = (rect, factor) => {\n rect.x *= factor;\n rect.y *= factor;\n rect.width *= factor;\n rect.height *= factor;\n return rect;\n};\nconst rectDivide = (rect, factor) => {\n rect.x /= factor;\n rect.y /= factor;\n rect.width /= factor;\n rect.height /= factor;\n return rect;\n};\nconst rectSubtract = (a, b) => {\n a.x -= b.x;\n a.y -= b.y;\n a.width -= b.width;\n a.height -= b.height;\n return a;\n};\nconst rectAdd = (a, b) => {\n a.x += b.x;\n a.y += b.y;\n a.width += b.width;\n a.height += b.height;\n return a;\n};\nconst rectEqual = (a, b, format = passthrough) => format(a.x) === format(b.x) &&\n format(a.y) === format(b.y) &&\n format(a.width) === format(b.width) &&\n format(a.height) === format(b.height);\nconst rectAspectRatio = (rect) => getAspectRatio(rect.width, rect.height);\nconst rectUpdate = (rect, x, y, width, height) => {\n rect.x = x;\n rect.y = y;\n rect.width = width;\n rect.height = height;\n return rect;\n};\nconst rectUpdateWithRect = (a, b) => {\n a.x = b.x;\n a.y = b.y;\n a.width = b.width;\n a.height = b.height;\n return a;\n};\nconst rectRotate = (rect, radians, pivot) => {\n if (!pivot)\n pivot = rectCenter(rect);\n return rectGetCorners(rect).map((vertex) => vectorRotate(vertex, radians, pivot));\n};\nconst rectCenterRect = (a, b) => toRect(a.width * 0.5 - b.width * 0.5, a.height * 0.5 - b.height * 0.5, b.width, b.height);\nconst rectContainsPoint = (rect, point) => {\n if (point.x < rect.x)\n return false;\n if (point.y < rect.y)\n return false;\n if (point.x > rect.x + rect.width)\n return false;\n if (point.y > rect.y + rect.height)\n return false;\n return true;\n};\nconst rectCoverRect = (rect, aspectRatio, offset = vectorCreateEmpty()) => {\n if (rect.width === 0 || rect.height === 0)\n return rectCreateEmpty();\n const inputAspectRatio = rectAspectRatio(rect);\n if (!aspectRatio)\n aspectRatio = inputAspectRatio;\n let width = rect.width;\n let height = rect.height;\n if (aspectRatio > inputAspectRatio) {\n // height remains the same, width is expanded\n width = height * aspectRatio;\n }\n else {\n // width remains the same, height is expanded\n height = width / aspectRatio;\n }\n return toRect(offset.x + (rect.width - width) * 0.5, offset.y + (rect.height - height) * 0.5, width, height);\n};\nconst rectLimitInRect = (childRect, parentRect, aspectRatio) => {\n const [t, r, b, l] = rectToBounds(childRect);\n const rectOrigin = { ...childRect };\n if (t < parentRect.y) {\n childRect.height = childRect.height - (parentRect.y - t);\n childRect.y = parentRect.y;\n }\n if (r > parentRect.x + parentRect.width) {\n childRect.width = parentRect.x + parentRect.width - childRect.x;\n }\n if (b > parentRect.y + parentRect.height) {\n childRect.height = parentRect.y + parentRect.height - childRect.y;\n }\n if (l < parentRect.x) {\n childRect.width = childRect.width - (parentRect.x - l);\n childRect.x = parentRect.x;\n }\n if (aspectRatio) {\n // scalar\n const scalar = Math.min(1, rectOrigin.width / childRect.width, rectOrigin.height / childRect.height);\n return rectMultiply(rectOrigin, scalar);\n }\n return childRect;\n};\nconst rectOffsetInRect = (childRect, parentRect) => {\n const [t, r, b, l] = rectToBounds(childRect);\n if (t < parentRect.y)\n childRect.y = Math.max(parentRect.y, childRect.y);\n if (r > parentRect.width)\n childRect.x = parentRect.width - childRect.width;\n if (b > parentRect.height)\n childRect.y = parentRect.height - childRect.height;\n if (l < parentRect.x)\n childRect.x = Math.max(parentRect.x, childRect.x);\n return childRect;\n};\nconst rectContainRect = (rect, aspectRatio = rectAspectRatio(rect), offset = vectorCreateEmpty()) => {\n if (rect.width === 0 || rect.height === 0)\n return rectCreateEmpty();\n let width = rect.width;\n let height = width / aspectRatio;\n if (height > rect.height) {\n height = rect.height;\n width = height * aspectRatio;\n }\n return toRect(offset.x + (rect.width - width) * 0.5, offset.y + (rect.height - height) * 0.5, width, height);\n};\nconst rectToBounds = (rect) => [\n Math.min(rect.y, rect.y + rect.height),\n Math.max(rect.x, rect.x + rect.width),\n Math.max(rect.y, rect.y + rect.height),\n Math.min(rect.x, rect.x + rect.width), // left\n];\nconst rectGetCorners = (rect) => [\n vectorCreate(rect.x, rect.y),\n vectorCreate(rect.x + rect.width, rect.y),\n vectorCreate(rect.x + rect.width, rect.y + rect.height),\n vectorCreate(rect.x, rect.y + rect.height),\n];\nconst rectApply = (rect, fn) => {\n if (!rect)\n return;\n rect.x = fn(rect.x);\n rect.y = fn(rect.y);\n rect.width = fn(rect.width);\n rect.height = fn(rect.height);\n return rect;\n};\nconst rectApplyPerspective = (rect, perspective, pivot = rectCenter(rect)) => rectGetCorners(rect).map((corner, index) => {\n const sign = CornerSigns[index];\n return vectorCreate(scale(corner.x, 1.0 + sign.x * perspective.x, pivot.x), scale(corner.y, 1.0 + sign.y * perspective.y, pivot.y));\n});\nconst rectNormalizeOffset = (rect) => {\n rect.x = 0;\n rect.y = 0;\n return rect;\n};\nconst convexPolyCentroid = (vertices) => {\n const first = vertices[0];\n const last = vertices[vertices.length - 1];\n // make sure is closed loop\n vertices = vectorEqual(first, last) ? vertices : [...vertices, first];\n const fx = first.x;\n const fy = first.y;\n let twiceArea = 0;\n let i = 0;\n let x = 0;\n let y = 0;\n let a;\n let b;\n let f;\n const l = vertices.length;\n for (; i < l; i++) {\n // current vertex\n a = vertices[i];\n // next vertex\n b = vertices[i + 1 > l - 1 ? 0 : i + 1];\n f = (a.y - fy) * (b.x - fx) - (b.y - fy) * (a.x - fx);\n twiceArea += f;\n x += (a.x + b.x - 2 * fx) * f;\n y += (a.y + b.y - 2 * fy) * f;\n }\n f = twiceArea * 3;\n return vectorCreate(fx + x / f, fy + y / f);\n};\nconst lineLineIntersection = (a, b) => getLineLineIntersectionPoint(a.start, a.end, b.start, b.end);\nconst getLineLineIntersectionPoint = (a, b, c, d) => {\n const denominator = (d.y - c.y) * (b.x - a.x) - (d.x - c.x) * (b.y - a.y);\n // lines are parallel\n if (denominator === 0)\n return undefined;\n const uA = ((d.x - c.x) * (a.y - c.y) - (d.y - c.y) * (a.x - c.x)) / denominator;\n const uB = ((b.x - a.x) * (a.y - c.y) - (b.y - a.y) * (a.x - c.x)) / denominator;\n // intersection is not on the line itself\n if (uA < 0 || uA > 1 || uB < 0 || uB > 1)\n return undefined;\n // return intersection point\n return vectorCreate(a.x + uA * (b.x - a.x), a.y + uA * (b.y - a.y));\n};\n// checks if line intersects with one of the lines that can be drawn between the points (in sequence)\nconst linePointsIntersection = (line, points, { ignoreIdenticalLines = false, breakOnIntersection = false } = {}) => {\n const l = points.length;\n const intersections = [];\n for (let i = 0; i < l - 1; i++) {\n if (ignoreIdenticalLines &&\n (vectorEqual(line.start, points[i]) ||\n vectorEqual(line.start, points[i + 1]) ||\n vectorEqual(line.end, points[i]) ||\n vectorEqual(line.end, points[i + 1])))\n continue;\n const intersection = getLineLineIntersectionPoint(line.start, line.end, points[i], points[i + 1]);\n if (!intersection)\n continue;\n if (breakOnIntersection)\n return [intersection];\n intersections.push(intersection);\n }\n return intersections.length ? intersections : undefined;\n};\nconst pointInPoly$1 = (point, vertices) => {\n let i = 0;\n let j = 0;\n let c = false;\n const l = vertices.length;\n for (i = 0, j = l - 1; i < l; j = i++) {\n if (vertices[i].y > point.y != vertices[j].y > point.y &&\n point.x <\n ((vertices[j].x - vertices[i].x) * (point.y - vertices[i].y)) /\n (vertices[j].y - vertices[i].y) +\n vertices[i].x) {\n c = !c;\n }\n }\n return c;\n};\n// first tests if points of a are to be found in b, then does the reverse\nconst polyIntersectsWithPoly = (a, b) => {\n const bContainsCornerOfA = a.find((corner) => pointInPoly$1(corner, b));\n if (bContainsCornerOfA)\n return true;\n const aContainsCornerOfB = b.find((corner) => pointInPoly$1(corner, a));\n if (aContainsCornerOfB)\n return true;\n return false;\n};\nconst quadLines = (vertices) => {\n const arr = [];\n for (let i = 0; i < vertices.length; i++) {\n let next = i + 1;\n if (next === vertices.length)\n next = 0;\n arr.push(lineCreate(vectorClone(vertices[i]), vectorClone(vertices[next])));\n }\n return arr;\n};\nconst quadToLines = (vertices, extension = 0) => quadLines(vertices)\n // extend the poly lines a tiny bit so we\n // don't shoot rays between line gaps at corners\n // this caused one intersection to be missing resulting\n // in error while manipulating crop edges\n // (rotate image 90degrees -> drag bottom edge) (2021-04-09)\n .map((line) => lineExtend(line, extension));\nconst ellipseToPolygon = (center, rx, ry, rotation = 0, flipX = false, flipY = false, resolution = 12) => {\n const points = [];\n for (let i = 0; i < resolution; i++) {\n points.push(vectorCreate(center.x + rx * Math.cos((i * (Math.PI * 2)) / resolution), center.y + ry * Math.sin((i * (Math.PI * 2)) / resolution)));\n }\n if (flipX || flipY)\n vectorsFlip(points, flipX, flipY, center.x, center.y);\n if (rotation)\n vectorsRotate(points, rotation, center.x, center.y);\n return points;\n};\n// markup editor shape helpers\nconst circleOverlapsWithLine = (point, radius, from, to) => {\n const ac = vectorCreate(point.x - from.x, point.y - from.y);\n const ab = vectorCreate(to.x - from.x, to.y - from.y);\n const ab2 = vectorDot(ab, ab);\n const acab = vectorDot(ac, ab);\n let t = acab / ab2;\n t = t < 0 ? 0 : t;\n t = t > 1 ? 1 : t;\n const h = vectorCreate(ab.x * t + from.x - point.x, ab.y * t + from.y - point.y);\n const h2 = vectorDot(h, h);\n return h2 <= radius * radius;\n};\nconst circleOverlapsWithPath = (position, radius, points) => {\n const l = points.length;\n for (let i = 0; i < l - 1; i++) {\n if (circleOverlapsWithLine(position, radius, points[i], points[i + 1]))\n return true;\n }\n return false;\n};\nconst circleOverlapsWithPolygon = (position, radius, points) => {\n if (pointInPoly$1(position, points))\n return true;\n if (circleOverlapsWithPath(position, radius, points))\n return true;\n return circleOverlapsWithLine(position, radius, points[0], points[points.length - 1]);\n};\nconst circleOverlapsWithEllipse = (position, radius, ellipse, rotation, flipX, flipY) => {\n const points = ellipseToPolygon(vectorCreate(ellipse.x, ellipse.y), ellipse.rx, ellipse.ry, rotation, flipX, flipY, 12);\n return circleOverlapsWithPolygon(position, radius, points);\n};\nconst circleOverlapsWithRect = (position, radius, rect, rotation, pivot) => circleOverlapsWithPolygon(position, radius, rectRotate(rect, rotation, pivot || rectCenter(rect)));\n\nvar getImageTransformedRect = (imageSize, imageRotation) => {\n const imageRect = rectCreateFromSize(imageSize);\n const imageCenter = rectCenter(imageRect);\n const imageTransformedVertices = rectRotate(imageRect, imageRotation, imageCenter);\n return rectNormalizeOffset(rectCreateFromPoints(imageTransformedVertices));\n};\n\nvar isElement = (v, name) => v instanceof HTMLElement && (name ? new RegExp(`^${name}$`, 'i').test(v.nodeName) : true);\n\nvar isFile = (v) => v instanceof File;\n\nvar canvasToFile = async (canvas, mimeType, quality) => {\n const blob = await canvasToBlob(canvas, mimeType, quality);\n return blobToFile(blob, 'canvas');\n};\n\nvar getFilenameFromURL = (url) => url\n .split('/')\n .pop()\n .split(/\\?|\\#/)\n .shift();\n\n// @ts-ignore\nconst supportsReplaceChildren = isBrowser() && !!Node.prototype.replaceChildren;\nconst fn$1 = supportsReplaceChildren\n ? // @ts-ignore\n (parent, newChildren) => parent.replaceChildren(newChildren)\n : (parent, newChildren) => {\n while (parent.lastChild) {\n parent.removeChild(parent.lastChild);\n }\n if (newChildren !== undefined) {\n parent.append(newChildren);\n }\n };\n\nconst container = isBrowser() &&\n h('div', {\n class: 'PinturaMeasure',\n style: 'position:absolute;left:0;top:0;width:99999px;height:0;pointer-events:none;contain:strict;margin:0;padding:0;',\n });\nlet timeoutId;\nvar appendForMeasuring = (element) => {\n // replace element children with this child\n fn$1(container, element);\n // append to DOM if not in it atm\n if (!container.parentNode)\n document.body.append(container);\n // auto detach from DOM after it isn't used for a little while\n clearTimeout(timeoutId);\n timeoutId = setTimeout(() => {\n container.remove();\n }, 500);\n // return added element for measuring\n return element;\n};\n\nlet result$8 = null;\nvar isSafari = () => {\n if (result$8 === null)\n result$8 =\n isBrowser() && /^((?!chrome|android).)*(safari|iphone|ipad)/i.test(navigator.userAgent); // added |iphone|ipad as safari is not present in WebView on React Native\n return result$8;\n};\n\nvar getImageElementSize = (imageElement) => new Promise((resolve, reject) => {\n let shouldAutoRemove = false;\n // test if image is attached to DOM, if not attached, attach so measurement is correct on Safari\n if (!imageElement.parentNode && isSafari()) {\n shouldAutoRemove = true;\n // has width 0 and height 0 to prevent rendering very big SVGs (without width and height) that will for one frame overflow the window and show a scrollbar\n imageElement.style.cssText = `position:absolute;visibility:hidden;pointer-events:none;left:0;top:0;width:0;height:0;`;\n appendForMeasuring(imageElement);\n }\n // start testing size\n const measure = () => {\n const width = imageElement.naturalWidth;\n const height = imageElement.naturalHeight;\n const hasSize = width && height;\n if (!hasSize)\n return;\n // clean up image if was attached for measuring\n if (shouldAutoRemove)\n imageElement.remove();\n clearInterval(intervalId);\n resolve({ width, height });\n };\n imageElement.onerror = (err) => {\n clearInterval(intervalId);\n reject(err);\n };\n const intervalId = setInterval(measure, 1);\n measure();\n});\n\nvar getVideoElementSize = (element) => new Promise((resolve, reject) => {\n const done = () => {\n resolve({\n width: element.videoWidth,\n height: element.videoHeight,\n });\n };\n if (element.readyState >= 1)\n return done();\n element.onloadedmetadata = done;\n element.onerror = () => reject(element.error);\n});\n\nvar isImage = (file) => /^image/.test(file.type);\n\nvar getAsVideoOrImageElement = (src) => new Promise((resolve) => {\n // undetermined or is video\n const elementSrc = (isString(src) ? src : URL.createObjectURL(src));\n const createImage = () => {\n const image = new Image();\n image.src = elementSrc;\n resolve(image);\n };\n // we can already know it's an image\n if (src instanceof Blob && isImage(src))\n return createImage();\n // try video first\n const element = document.createElement('video');\n element.preload = 'metadata';\n element.onloadedmetadata = () => resolve(element);\n // when errors we switch to image\n element.onerror = createImage;\n element.src = elementSrc;\n});\n\nvar isVideoElement = (element) => element.nodeName === 'VIDEO';\n\n// TODO: video rename function\nvar getImageSize = async (src) => {\n // the image element we'll use to load the image\n let mediaElement;\n // if is not an image or video element, it must be a valid image or video source\n if (!src['src']) {\n mediaElement = await getAsVideoOrImageElement(src);\n }\n else {\n mediaElement = src;\n }\n let size;\n try {\n size = isVideoElement(mediaElement)\n ? await getVideoElementSize(mediaElement)\n : await getImageElementSize(mediaElement);\n }\n finally {\n isFile(src) && URL.revokeObjectURL(mediaElement.src);\n }\n return size;\n};\n\nconst awaitComplete = (image) => new Promise((resolve, reject) => {\n if (image.complete)\n return resolve(image);\n image.onload = () => resolve(image);\n image.onerror = () => reject(new Error('Failed to load image'));\n});\nvar imageToFile = async (imageElement) => {\n const size = await getImageSize(imageElement);\n const image = await awaitComplete(imageElement);\n const canvas = h('canvas', size);\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n ctx.drawImage(image, 0, 0);\n const blob = await canvasToBlob(canvas);\n return blobToFile(blob, getFilenameFromURL(image.src));\n};\n\nvar isDataURI = (str) => /^data:/.test(str);\n\nvar createProgressEvent = (loaded = 0, lengthComputable = true) => new (getNativeAPIRef('ProgressEvent'))('progress', {\n loaded: loaded * 100,\n total: 100,\n lengthComputable,\n});\n\nvar dataURIToFile = async (dataURI, filename = 'data-uri', onprogress = noop$1) => {\n // basic loader, no size info\n onprogress(createProgressEvent(0));\n const res = await fetch(dataURI);\n onprogress(createProgressEvent(0.33));\n const blob = await res.blob();\n let mimeType;\n if (!isImage(blob))\n mimeType = `image/${dataURI.includes(',/9j/') ? 'jpeg' : 'png'}`;\n onprogress(createProgressEvent(0.66));\n const file = blobToFile(blob, filename, mimeType);\n onprogress(createProgressEvent(1));\n return file;\n};\n\nvar getResponseHeader = (xhr, header, parse = (header) => header) => xhr.getAllResponseHeaders().indexOf(header) >= 0\n ? parse(xhr.getResponseHeader(header))\n : undefined;\n\nvar getFilenameFromContentDisposition = (header) => {\n if (!header)\n return null;\n const matches = header.split(/filename=|filename\\*=.+''/)\n .splice(1)\n .map(name => name.trim().replace(/^[\"']|[;\"']{0,2}$/g, ''))\n .filter(name => name.length);\n return matches.length ? decodeURI(matches[matches.length - 1]) : null;\n};\n\nconst EditorErrorCode = {\n URL_REQUEST: 'URL_REQUEST',\n DOCTYPE_MISSING: 'DOCTYPE_MISSING',\n};\nclass EditorError extends Error {\n constructor(message, code, metadata) {\n super(message);\n this.name = 'EditorError';\n this.code = code;\n this.metadata = metadata;\n }\n}\n\n// should be called after xhr.open\nvar configureXHR = (xhr, options) => {\n // https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters\n // only handles headers and credentials for now\n const { headers = {}, credentials } = options || {};\n // apply options to xhr\n Object.entries(headers).forEach(([header, value]) => xhr.setRequestHeader(header, value));\n // set xhr withCredentials\n if (credentials)\n xhr.withCredentials = credentials !== 'omit';\n};\n\nvar fetchFile = (url, onprogress, options) => new Promise((resolve, reject) => {\n const handleError = () => reject(new EditorError('Error fetching image', EditorErrorCode.URL_REQUEST, xhr));\n const xhr = new XMLHttpRequest();\n xhr.onprogress = onprogress;\n (xhr.onerror = handleError),\n (xhr.onload = () => {\n if (!xhr.response || xhr.status >= 300 || xhr.status < 200)\n return handleError();\n // we store the response mime type so we can add it to the blob later on, if it's missing (happens on Safari 10)\n const mimetype = getResponseHeader(xhr, 'Content-Type');\n // try to get filename and any file instructions as well\n const filename = getResponseHeader(xhr, 'Content-Disposition', getFilenameFromContentDisposition) || getFilenameFromURL(url);\n // convert to actual file if possible\n resolve(blobToFile(xhr.response, filename, mimetype || getMimeTypeFromFilename(filename)));\n });\n // get helper\n const { willRequest } = options;\n Promise.resolve(willRequest && willRequest(url, { resourceType: 'image' }))\n .then((requestInit) => {\n // don't load image\n if (requestInit === false)\n return reject('Image load rejected');\n // we're good to go\n xhr.open('GET', url);\n // set props\n configureXHR(xhr, requestInit);\n // fire xhr\n xhr.responseType = 'blob';\n xhr.send();\n })\n .catch(console.error);\n});\n\nvar urlToFile = (url, onprogress, options) => {\n // use fetch to create blob from data uri\n if (isDataURI(url))\n return dataURIToFile(url, undefined, onprogress);\n // load file from url\n return fetchFile(url, onprogress, options);\n};\n\nvar isBlob = (v) => v instanceof Blob && !(v instanceof File);\n\nvar isImageBitmap = (obj) => 'close' in obj;\n\nvar srcToFile = async (src, onprogress, options) => {\n if (isFile(src) || isBlob(src))\n return src;\n else if (isString(src))\n return await urlToFile(src, onprogress, options);\n else if (isElement(src, 'canvas'))\n return await canvasToFile(src);\n else if (isElement(src, 'img'))\n return await imageToFile(src);\n else if (isImageData(src) || isImageBitmap(src))\n return await canvasToFile(await imageDataToCanvas(src));\n else {\n throw new EditorError('Invalid image source', 'invalid-image-source');\n }\n};\n\nlet result$7 = null;\nvar isMac = () => {\n if (result$7 === null)\n result$7 = isBrowser() && /^mac/i.test(navigator.platform);\n return result$7;\n};\n\nlet result$6 = null;\nvar isIOS = () => {\n if (result$6 === null)\n // first part is for iPhones and iPads iOS 12 and below second part is for iPads with iOS 13 and up\n result$6 =\n isBrowser() &&\n (isUserAgent(/iPhone|iPad|iPod/) || (isMac() && navigator.maxTouchPoints >= 1));\n return result$6;\n};\n\nvar orientImageSize = async (size, orientation = 1) => {\n // browser can handle image orientation\n if ((await canOrientImages()) || isIOS())\n return size;\n // no need to correct size\n if (orientation < 5)\n return size;\n // correct image size\n return sizeCreate(size.height, size.width);\n};\n\nvar isJPEG = (file) => /jpeg/.test(file.type);\n\nvar isPlainObject = (obj) => typeof obj == 'object' && obj.constructor == Object;\n\nvar stringify = (value) => (!isPlainObject(value) ? value : JSON.stringify(value));\n\nvar post = (url, dataset, options) => new Promise((resolve, reject) => {\n const { token = {}, beforeSend = noop$1, onprogress = noop$1 } = options;\n token.cancel = () => request.abort();\n const request = new XMLHttpRequest();\n request.upload.onprogress = onprogress;\n request.onload = () => request.status >= 200 && request.status < 300 ? resolve(request) : reject(request);\n request.onerror = () => reject(request);\n request.ontimeout = () => reject(request);\n request.open('POST', encodeURI(url));\n beforeSend(request);\n request.send(\n // if is FormData, we use that\n dataset instanceof FormData\n ? dataset\n : // reduce the dataset to FormData\n dataset.reduce((formData, args) => {\n // @ts-ignore\n formData.append(...args.map(stringify));\n return formData;\n }, new FormData()));\n});\n\nvar ctxRotate = (ctx, rotation = 0, pivot) => {\n if (rotation === 0)\n return ctx;\n ctx.translate(pivot.x, pivot.y);\n ctx.rotate(rotation);\n ctx.translate(-pivot.x, -pivot.y);\n return ctx;\n};\n\nvar ctxTranslate = (ctx, x, y) => {\n ctx.translate(x, y);\n return ctx;\n};\n\nvar ctxScale = (ctx, x, y) => {\n ctx.scale(x, y);\n return ctx;\n};\n\nvar cropImageData = async (imageData, options = {}) => {\n const { flipX, flipY, rotation, crop } = options;\n const imageSize = sizeCreateFromAny(imageData);\n const shouldFlip = flipX || flipY;\n const shouldRotate = !!rotation;\n const cropDefined = crop && (crop.x || crop.y || crop.width || crop.height);\n const cropCoversImage = cropDefined && rectEqual(crop, rectCreateFromSize(imageSize));\n const shouldCrop = cropDefined && !cropCoversImage;\n // skip!\n if (!shouldFlip && !shouldRotate && !shouldCrop)\n return imageData;\n // create drawing context\n let imageDataOut;\n let image = h('canvas', {\n width: imageData.width,\n height: imageData.height,\n });\n image.getContext('2d', { willReadFrequently: true }).putImageData(imageData, 0, 0);\n // flip image data\n if (shouldFlip) {\n const ctx = h('canvas', {\n width: image.width,\n height: image.height,\n }).getContext('2d', { willReadFrequently: true });\n ctxScale(ctx, flipX ? -1 : 1, flipY ? -1 : 1);\n ctx.drawImage(image, flipX ? -image.width : 0, flipY ? -image.height : 0);\n ctx.restore();\n releaseCanvas(image);\n image = ctx.canvas;\n }\n // rotate image data\n if (shouldRotate) {\n // if shouldRotate is true we also receive a crop rect\n const outputSize = sizeApply(sizeCreateFromRect(rectCreateFromPoints(rectRotate(rectCreateFromAny(image), rotation))), Math.floor);\n const ctx = h('canvas', {\n width: crop.width,\n height: crop.height,\n }).getContext('2d', { willReadFrequently: true });\n ctxTranslate(ctx, -crop.x, -crop.y);\n ctxRotate(ctx, rotation, sizeCenter(outputSize));\n ctx.drawImage(image, (outputSize.width - image.width) * 0.5, (outputSize.height - image.height) * 0.5);\n ctx.restore();\n releaseCanvas(image);\n image = ctx.canvas;\n }\n // crop image data\n else if (shouldCrop) {\n const ctx = image.getContext('2d', { willReadFrequently: true });\n imageDataOut = ctx.getImageData(crop.x, crop.y, crop.width, crop.height);\n releaseCanvas(image);\n return imageDataOut;\n }\n // done, return resulting image data\n const ctx = image.getContext('2d', { willReadFrequently: true });\n imageDataOut = ctx.getImageData(0, 0, image.width, image.height);\n releaseCanvas(image);\n return imageDataOut;\n};\n\nvar resizeTransform = (options, done) => {\n const { imageData, width, height } = options;\n const inputWidth = imageData.width;\n const inputHeight = imageData.height;\n const outputWidth = Math.round(width);\n const outputHeight = Math.round(height);\n const inputData = imageData.data;\n const outputData = new Uint8ClampedArray(outputWidth * outputHeight * 4);\n const scaleX = inputWidth / outputWidth;\n const scaleY = inputHeight / outputHeight;\n const scaleXHalf = Math.ceil(scaleX * 0.5);\n const scaleYHalf = Math.ceil(scaleY * 0.5);\n for (let j = 0; j < outputHeight; j++) {\n for (let i = 0; i < outputWidth; i++) {\n const x2 = (i + j * outputWidth) * 4;\n let weight = 0;\n let weights = 0;\n let weightsAlpha = 0;\n let r = 0;\n let g = 0;\n let b = 0;\n let a = 0;\n const centerY = (j + 0.5) * scaleY;\n for (let yy = Math.floor(j * scaleY); yy < (j + 1) * scaleY; yy++) {\n const dy = Math.abs(centerY - (yy + 0.5)) / scaleYHalf;\n const centerX = (i + 0.5) * scaleX;\n const w0 = dy * dy;\n for (let xx = Math.floor(i * scaleX); xx < (i + 1) * scaleX; xx++) {\n let dx = Math.abs(centerX - (xx + 0.5)) / scaleXHalf;\n const w = Math.sqrt(w0 + dx * dx);\n if (w < -1 || w > 1)\n continue;\n weight = 2 * w * w * w - 3 * w * w + 1;\n if (weight <= 0)\n continue;\n dx = 4 * (xx + yy * inputWidth);\n const ref = inputData[dx + 3];\n a += weight * ref;\n weightsAlpha += weight;\n if (ref < 255) {\n weight = (weight * ref) / 250;\n }\n r += weight * inputData[dx];\n g += weight * inputData[dx + 1];\n b += weight * inputData[dx + 2];\n weights += weight;\n }\n }\n outputData[x2] = r / weights;\n outputData[x2 + 1] = g / weights;\n outputData[x2 + 2] = b / weights;\n outputData[x2 + 3] = a / weightsAlpha;\n }\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: outputWidth,\n height: outputHeight,\n });\n};\n\nvar imageDataObjectToImageData = (obj) => {\n if (obj instanceof ImageData) {\n return obj;\n }\n let imageData;\n try {\n imageData = new ImageData(obj.width, obj.height);\n }\n catch (err) {\n // IE + Old EDGE (tested on 12)\n const canvas = h('canvas');\n imageData = canvas.getContext('2d').createImageData(obj.width, obj.height);\n }\n imageData.data.set(obj.data);\n return imageData;\n};\n\nvar resizeImageData = async (imageData, options = {}, resizeImageData) => {\n const { width, height, fit, upscale } = options;\n // no need to rescale\n if (!width && !height)\n return imageData;\n let targetWidth = width;\n let targetHeight = height;\n if (!width) {\n targetWidth = height;\n }\n else if (!height) {\n targetHeight = width;\n }\n if (fit !== 'force') {\n const scalarWidth = targetWidth / imageData.width;\n const scalarHeight = targetHeight / imageData.height;\n let scalar = 1;\n if (fit === 'cover') {\n scalar = Math.max(scalarWidth, scalarHeight);\n }\n else if (fit === 'contain') {\n scalar = Math.min(scalarWidth, scalarHeight);\n }\n // if image is too small, exit here with original image\n if (scalar > 1 && upscale === false)\n return imageData;\n targetWidth = Math.round(imageData.width * scalar);\n targetHeight = Math.round(imageData.height * scalar);\n }\n // make sure canvas has a size\n targetWidth = Math.max(targetWidth, 1);\n targetHeight = Math.max(targetHeight, 1);\n // no need to resize?\n if (imageData.width === targetWidth && imageData.height === targetHeight)\n return imageData;\n // run custom image data resizer if defined\n if (resizeImageData)\n return resizeImageData(imageData, targetWidth, targetHeight);\n // let's use the included resize method\n imageData = await thread(resizeTransform, [\n {\n imageData: imageData,\n width: targetWidth,\n height: targetHeight,\n },\n ], [imageData.data.buffer]);\n // the resizer returns a plain object, not an actual image data object, lets create one\n return imageDataObjectToImageData(imageData);\n};\n\nvar colorEffect = (options, done) => {\n const { imageData, matrix } = options;\n if (!matrix)\n return done(null, imageData);\n const outputData = new Uint8ClampedArray(imageData.width * imageData.height * 4);\n const data = imageData.data;\n const l = data.length;\n const m11 = matrix[0];\n const m12 = matrix[1];\n const m13 = matrix[2];\n const m14 = matrix[3];\n const m15 = matrix[4];\n const m21 = matrix[5];\n const m22 = matrix[6];\n const m23 = matrix[7];\n const m24 = matrix[8];\n const m25 = matrix[9];\n const m31 = matrix[10];\n const m32 = matrix[11];\n const m33 = matrix[12];\n const m34 = matrix[13];\n const m35 = matrix[14];\n const m41 = matrix[15];\n const m42 = matrix[16];\n const m43 = matrix[17];\n const m44 = matrix[18];\n const m45 = matrix[19];\n let index = 0;\n let r = 0.0;\n let g = 0.0;\n let b = 0.0;\n let a = 0.0;\n let mr = 0.0;\n let mg = 0.0;\n let mb = 0.0;\n let ma = 0.0;\n let or = 0.0;\n let og = 0.0;\n let ob = 0.0;\n for (; index < l; index += 4) {\n r = data[index] / 255;\n g = data[index + 1] / 255;\n b = data[index + 2] / 255;\n a = data[index + 3] / 255;\n mr = r * m11 + g * m12 + b * m13 + a * m14 + m15;\n mg = r * m21 + g * m22 + b * m23 + a * m24 + m25;\n mb = r * m31 + g * m32 + b * m33 + a * m34 + m35;\n ma = r * m41 + g * m42 + b * m43 + a * m44 + m45;\n or = Math.max(0, mr * ma) + (1.0 - ma);\n og = Math.max(0, mg * ma) + (1.0 - ma);\n ob = Math.max(0, mb * ma) + (1.0 - ma);\n outputData[index] = Math.max(0.0, Math.min(1.0, or)) * 255;\n outputData[index + 1] = Math.max(0.0, Math.min(1.0, og)) * 255;\n outputData[index + 2] = Math.max(0.0, Math.min(1.0, ob)) * 255;\n outputData[index + 3] = a * 255;\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: imageData.width,\n height: imageData.height,\n });\n};\n\nvar convolutionEffect = (options, done) => {\n const { imageData, matrix } = options;\n if (!matrix)\n return done(null, imageData);\n // calculate kernel weight\n let kernelWeight = matrix.reduce((prev, curr) => prev + curr);\n kernelWeight = kernelWeight <= 0 ? 1 : kernelWeight;\n // input info\n const inputWidth = imageData.width;\n const inputHeight = imageData.height;\n const inputData = imageData.data;\n let i = 0;\n let x = 0;\n let y = 0;\n const side = Math.round(Math.sqrt(matrix.length));\n const sideHalf = Math.floor(side / 2);\n let r = 0, g = 0, b = 0, a = 0, cx = 0, cy = 0, scy = 0, scx = 0, srcOff = 0, weight = 0;\n const outputData = new Uint8ClampedArray(inputWidth * inputHeight * 4);\n for (y = 0; y < inputHeight; y++) {\n for (x = 0; x < inputWidth; x++) {\n // calculate the weighed sum of the source image pixels that\n // fall under the convolution matrix\n r = 0;\n g = 0;\n b = 0;\n a = 0;\n for (cy = 0; cy < side; cy++) {\n for (cx = 0; cx < side; cx++) {\n scy = y + cy - sideHalf;\n scx = x + cx - sideHalf;\n if (scy < 0) {\n scy = inputHeight - 1;\n }\n if (scy >= inputHeight) {\n scy = 0;\n }\n if (scx < 0) {\n scx = inputWidth - 1;\n }\n if (scx >= inputWidth) {\n scx = 0;\n }\n srcOff = (scy * inputWidth + scx) * 4;\n weight = matrix[cy * side + cx];\n r += inputData[srcOff] * weight;\n g += inputData[srcOff + 1] * weight;\n b += inputData[srcOff + 2] * weight;\n a += inputData[srcOff + 3] * weight;\n }\n }\n outputData[i] = r / kernelWeight;\n outputData[i + 1] = g / kernelWeight;\n outputData[i + 2] = b / kernelWeight;\n outputData[i + 3] = a / kernelWeight;\n i += 4;\n }\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: inputWidth,\n height: inputHeight,\n });\n};\n\nvar vignetteEffect = (options, done) => {\n let { imageData, strength } = options;\n if (!strength)\n return done(null, imageData);\n const outputData = new Uint8ClampedArray(imageData.width * imageData.height * 4);\n const inputWidth = imageData.width;\n const inputHeight = imageData.height;\n const inputData = imageData.data;\n const dist = (x, y) => {\n dx = x - cx;\n dy = y - cy;\n return Math.sqrt(dx * dx + dy * dy);\n };\n let x = 0;\n let y = 0;\n let cx = inputWidth * 0.5;\n let cy = inputHeight * 0.5;\n let dx;\n let dy;\n let dm = dist(0, 0);\n let fr, fg, fb;\n let br, bg, bb, ba;\n let fa;\n let ca;\n const blend = (index, input, output, alpha) => {\n br = input[index] / 255;\n bg = input[index + 1] / 255;\n bb = input[index + 2] / 255;\n ba = input[index + 3] / 255;\n fa = 1.0 - alpha;\n ca = fa * ba + alpha;\n output[index] = ((fa * ba * br + alpha * fr) / ca) * 255;\n output[index + 1] = ((fa * ba * bg + alpha * fg) / ca) * 255;\n output[index + 2] = ((fa * ba * bb + alpha * fb) / ca) * 255;\n output[index + 3] = ca * 255;\n };\n if (strength > 0) {\n fr = 0;\n fg = 0;\n fb = 0;\n }\n else {\n strength = Math.abs(strength);\n fr = 1;\n fg = 1;\n fb = 1;\n }\n for (y = 0; y < inputHeight; y++) {\n for (x = 0; x < inputWidth; x++) {\n blend(\n // index\n (x + y * inputWidth) * 4, \n // data in\n inputData, \n // data out\n outputData, \n // opacity\n (dist(x, y) * strength) / dm);\n }\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: imageData.width,\n height: imageData.height,\n });\n};\n\nvar noiseEffect = (options, done) => {\n const { imageData, level, monochrome = false } = options;\n if (!level)\n return done(null, imageData);\n const outputData = new Uint8ClampedArray(imageData.width * imageData.height * 4);\n const data = imageData.data;\n const l = data.length;\n let index = 0;\n let r;\n let g;\n let b;\n const rand = () => (-1 + Math.random() * 2) * 255 * level;\n const pixel = monochrome\n ? () => {\n const average = rand();\n return [average, average, average];\n }\n : () => {\n return [rand(), rand(), rand()];\n };\n for (; index < l; index += 4) {\n [r, g, b] = pixel();\n outputData[index] = data[index] + r;\n outputData[index + 1] = data[index + 1] + g;\n outputData[index + 2] = data[index + 2] + b;\n outputData[index + 3] = data[index + 3];\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: imageData.width,\n height: imageData.height,\n });\n};\n\nvar gammaEffect = (options, done) => {\n const { imageData, level } = options;\n if (!level)\n return done(null, imageData);\n const outputData = new Uint8ClampedArray(imageData.width * imageData.height * 4);\n const data = imageData.data;\n const l = data.length;\n let index = 0;\n let r;\n let g;\n let b;\n for (; index < l; index += 4) {\n r = data[index] / 255;\n g = data[index + 1] / 255;\n b = data[index + 2] / 255;\n outputData[index] = Math.pow(r, level) * 255;\n outputData[index + 1] = Math.pow(g, level) * 255;\n outputData[index + 2] = Math.pow(b, level) * 255;\n outputData[index + 3] = data[index + 3];\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: imageData.width,\n height: imageData.height,\n });\n};\n\nvar isIdentityMatrix = (matrix) => {\n /*\n [\n 1, 0, 0, 0, 0\n 0, 1, 0, 0, 0\n 0, 0, 1, 0, 0\n 0, 0, 0, 1, 0\n ]\n */\n const l = matrix.length;\n let v;\n const s = l >= 20 ? 6 : l >= 16 ? 5 : 3;\n for (let i = 0; i < l; i++) {\n v = matrix[i];\n if (v === 1 && i % s !== 0)\n return false;\n else if (v !== 0 && v !== 1)\n return false;\n }\n return true;\n};\n\nvar filterImageData = async (imageData, options = {}) => {\n const { colorMatrix, convolutionMatrix, gamma: gammaLevel, noise: noiseLevel, vignette: vignetteStrength, } = options;\n // filters\n const filters = [];\n // apply convolution matrix\n if (convolutionMatrix) {\n filters.push([convolutionEffect, { matrix: convolutionMatrix.clarity }]);\n }\n // apply noise\n if (gammaLevel > 0) {\n filters.push([gammaEffect, { level: 1.0 / gammaLevel }]);\n }\n // apply color matrix\n if (colorMatrix && !isIdentityMatrix(colorMatrix)) {\n filters.push([colorEffect, { matrix: colorMatrix }]);\n }\n // apply noise\n if (noiseLevel > 0 || noiseLevel < 0) {\n filters.push([noiseEffect, { level: noiseLevel }]);\n }\n // apply vignette\n if (vignetteStrength > 0 || vignetteStrength < 0) {\n filters.push([vignetteEffect, { strength: vignetteStrength }]);\n }\n // no changes\n if (!filters.length)\n return imageData;\n // builds effect chain\n const chain = (transforms, i) => `(err, imageData) => {\n (${transforms[i][0].toString()})(Object.assign({ imageData: imageData }, filterInstructions[${i}]), \n ${transforms[i + 1] ? chain(transforms, i + 1) : 'done'})\n }`;\n const filterChain = `function (options, done) {\n const filterInstructions = options.filterInstructions;\n const imageData = options.imageData;\n (${chain(filters, 0)})(null, imageData)\n }`;\n imageData = await thread(filterChain, [\n {\n imageData: imageData,\n filterInstructions: filters.map((t) => t[1]),\n },\n ], [imageData.data.buffer]);\n // the resizer returns a plain object, not an actual image data object, lets create one\n return imageDataObjectToImageData(imageData);\n};\n\nvar isNumber = (v) => typeof v === 'number';\n\nvar isEmoji = (str) => isString(str) &&\n str.match(/(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\u0023-\\u0039]\\ufe0f?\\u20e3|\\u3299|\\u3297|\\u303d|\\u3030|\\u24c2|\\ud83c[\\udd70-\\udd71]|\\ud83c[\\udd7e-\\udd7f]|\\ud83c\\udd8e|\\ud83c[\\udd91-\\udd9a]|\\ud83c[\\udde6-\\uddff]|\\ud83c[\\ude01-\\ude02]|\\ud83c\\ude1a|\\ud83c\\ude2f|\\ud83c[\\ude32-\\ude3a]|\\ud83c[\\ude50-\\ude51]|\\u203c|\\u2049|[\\u25aa-\\u25ab]|\\u25b6|\\u25c0|[\\u25fb-\\u25fe]|\\u00a9|\\u00ae|\\u2122|\\u2139|\\ud83c\\udc04|[\\u2600-\\u26FF]|\\u2b05|\\u2b06|\\u2b07|\\u2b1b|\\u2b1c|\\u2b50|\\u2b55|\\u231a|\\u231b|\\u2328|\\u23cf|[\\u23e9-\\u23f3]|[\\u23f8-\\u23fa]|\\ud83c\\udccf|\\u2934|\\u2935|[\\u2190-\\u21ff])/g) !== null;\n\nvar hasProp = (obj, key) => obj.hasOwnProperty(key);\n\nvar isArray = (arr) => Array.isArray(arr);\n\nvar isApple = () => isIOS() || isMac();\n\nvar isWindows = () => /^win/i.test(navigator.platform);\n\n// macos: font-size: 123, x: 63.5, y: 110\n// windows: font-size: 112, x: 64, y: 103\n// android: font-size: 112, x: 64, y: 102\nlet x = 64;\nlet y = 102;\nlet fontSize = 112;\nlet hasSetValues = false;\nvar getEmojiSVG = (emoji, alt) => {\n if (!hasSetValues && isBrowser()) {\n if (isWindows())\n y = 103;\n if (isApple()) {\n x = 63.5;\n y = 110;\n fontSize = 123;\n }\n hasSetValues = true;\n }\n return `<svg${alt ? ` aria-label=\"${alt}\"` : ''} width=\"128\" height=\"128\" viewBox=\"0 0 128 128\" preserveAspectRatio=\"xMinYMin meet\" xmlns=\"http://www.w3.org/2000/svg\"><text x=\"${x}\" y=\"${y}\" alignment-baseline=\"text-top\" dominant-baseline=\"text-top\" text-anchor=\"middle\" font-size=\"${fontSize}px\">${emoji}</text></svg>`;\n};\n\nvar SVGToDataURL = (svg) => `data:image/svg+xml,${svg.replace('<', '%3C').replace('>', '%3E')}`;\n\nvar isBinary = (v) => v instanceof Blob;\n\nvar toPercentage = (value, total) => `${(value / total) * 100}%`;\n\nvar colorArrayToRGBA = (color) => `rgba(${Math.round(color[0] * 255)}, ${Math.round(color[1] * 255)}, ${Math.round(color[2] * 255)}, ${isNumber(color[3]) ? color[3] : 1})`;\n\n// tested and this seems a tiny bit faster than JSON.stringify\nvar objectUID = (obj) => Object.values(obj).join('_');\n\nvar timeout = (timeout = 0) => new Promise((resolve) => {\n setTimeout(resolve, timeout);\n});\n\n// cannot use a ObjectURL because of a webkit bug (throws error in chrome / safari)\n// returns true if every pixel's uint32 representation is 0 (or \"blank\")\nconst isContextBlank = (ctx) => {\n const buffer = new Uint32Array(ctx.getImageData(0, 0, ctx.canvas.width, ctx.canvas.height).data.buffer);\n return !buffer.some((color) => color !== 0);\n};\nconst width = 80;\nconst height = 80;\nconst whenSVGSafeForDrawing = async (img, delay = 0) => {\n // Safari has some trouble with custom fonts\n const canvas = h('canvas', { width, height });\n const ctx = canvas.getContext('2d');\n // always wait a short while because it's never ready on first draw\n await timeout(delay);\n // we draw the image so we can test if the content is drawn. If custom font isn't ready the canvas will be empty\n ctx.drawImage(img, 0, 0, width, height);\n if (isContextBlank(ctx) && delay <= 256)\n return await whenSVGSafeForDrawing(img, delay + 16);\n return true;\n};\n// store cached draw cycles here\nconst safariDrawCache = new Map();\nvar svgToImage = (svg, { safariCacheKey = '*' } = {}) => new Promise((resolve, reject) => {\n const img = new Image();\n img.onerror = () => reject(new Error('Failed to load SVG'));\n img.onload = () => {\n // uncomment to test difference between SVG as dataURL and SVG in page\n // if (document.getElementById('svgdiv')) document.getElementById('svgdiv').remove();\n // document.body.append(\n // h('div', {\n // id: 'svgdiv',\n // style: `\n // position:absolute;\n // top:0;\n // left:0;\n // display:flex;\n // pointer-events:none;\n // z-index:99999999999999;\n // filter:invert(100%);\n // opacity:.5;\n // outline:1px solid green;`,\n // innerHTML: svg,\n // })\n // );\n // We done!\n if (!isSafari() || !svg.includes('@font-face') || safariDrawCache.has(safariCacheKey)) {\n return resolve(img);\n }\n // wait for embedded fonts to load\n whenSVGSafeForDrawing(img).then(() => {\n safariDrawCache.set(safariCacheKey, true);\n resolve(img);\n });\n };\n img.src = 'data:image/svg+xml,' + svg;\n // uncomment to test difference between SVG as dataURL and SVG in page\n // const dupe = img.cloneNode() as HTMLElement;\n // if (document.getElementById('svgimage')) document.getElementById('svgimage').remove();\n // document.body.append(dupe);\n // dupe.id = 'svgimage';\n // dupe.style.cssText = `\n // pointer-events:none;\n // z-index:99999999999999;\n // position:absolute;\n // top:0;\n // left:0;\n // outline:1px solid purple;`;\n});\n\nvar blobToDataURL = (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onerror = () => reject(reader.error);\n reader.onload = () => resolve(reader.result);\n reader.readAsDataURL(blob);\n});\n\nvar pubsub = () => {\n let subs = [];\n return {\n sub: (event, callback) => {\n subs.push({ event, callback });\n return () => (subs = subs.filter((subscriber) => subscriber.event !== event || subscriber.callback !== callback));\n },\n pub: (event, value) => {\n subs\n .filter((sub) => sub.event === event)\n .forEach((sub) => sub.callback(value));\n }\n };\n};\n\n// used to make sure text is drawn outside of element in a correct way\nconst TextPadding = 32;\nconst textGetInitialLineOffset = ({ fontSize = 16, lineHeight = 20 } = {}) => Math.max(0, fontSize - lineHeight) * 0.5;\nconst textGetLineCount = (text = '') => text.split('\\n').length;\nconst textGetStyles = ({ color = [0, 0, 0], fontSize = 16, fontFamily = 'sans-serif', fontVariant = 'normal', fontWeight = 'normal', fontStyle = 'normal', textAlign = 'left', letterSpacing = 'normal', lineHeight = 20, }, scalar = 1) => `font-size:${fontSize * scalar}px;font-style:${fontStyle};font-weight:${fontWeight};font-family:${fontFamily};font-variant:${fontVariant};line-height:${lineHeight * scalar}px;text-align:${textAlign};letter-spacing:${isNumber(letterSpacing) ? letterSpacing + 'px' : 'normal'};color:${colorArrayToRGBA(color)};`;\nconst textGetContentEditableStyles = (text, options, scalar = 1) => {\n const { width, height, disableNewline } = options;\n const isAutoWidth = !width;\n const allowNewline = disableNewline === false ? textGetLineCount(text) : undefined;\n const widthValue = isAutoWidth ? 'auto' : `${width * scalar}px`;\n const heightValue = height ? `${height * scalar}px` : 'auto';\n const wordBreak = isAutoWidth ? 'normal' : 'break-word';\n const whiteSpace = isAutoWidth && !allowNewline ? 'nowrap' : 'pre-line';\n const paddingTop = textGetInitialLineOffset(options) * scalar;\n return `max-width:none;min-width:auto;width:${widthValue};height:${heightValue};margin-top:0;margin-bottom:0;padding-top:${paddingTop}px;word-break:${wordBreak};word-wrap:normal;white-space:${whiteSpace};`;\n};\nconst TextMeasureCache = new Map();\nconst toParts = (node) => {\n const parts = [];\n for (const childNode of Array.from(node.childNodes)) {\n if (childNode.nodeType === Node.TEXT_NODE) {\n parts.push(textToLines(childNode));\n }\n else {\n parts.push(...toParts(childNode));\n }\n }\n return parts;\n};\nconst MeasureStyles = 'pointer-events:none;visibility:hidden;position:absolute;left:0;top:0;';\nconst textMeasure = (text = '', options) => {\n // gather props that impact size and test if can be found in cache\n let { width = 0, height = 'auto', fontSize, fontFamily, lineHeight, fontWeight, fontStyle, fontVariant, letterSpacing, } = options;\n const uid = objectUID({\n text,\n fontFamily,\n fontWeight,\n fontStyle,\n fontVariant,\n fontSize,\n lineHeight,\n letterSpacing,\n width,\n height,\n });\n let measurement = TextMeasureCache.get(uid);\n if (measurement)\n return measurement;\n // firefox limits font size to 1000px, so if we're above, we scale down before measuring and then scale up after measuring\n let fontScalar = 1;\n if (fontSize > 1000 && isFirefox()) {\n fontScalar = fontSize / 1000;\n fontSize = 1000;\n lineHeight = lineHeight * fontScalar;\n }\n const element = appendForMeasuring(h('pre', {\n contenteditable: 'true',\n spellcheck: 'false',\n style: `${MeasureStyles}${textGetStyles({\n fontFamily,\n fontWeight,\n fontStyle,\n fontVariant,\n fontSize,\n letterSpacing,\n lineHeight,\n })};${textGetContentEditableStyles(text, options)}\"`,\n innerHTML: text,\n }));\n const elementRect = element.getBoundingClientRect();\n // @ts-ignore\n const elementTextParts = toParts(element).flat();\n measurement = {\n // @ts-ignore\n signature: elementTextParts.map((line) => line.text).join('_;_'),\n textSize: sizeApply(sizeCreateFromAny(elementRect), (v) => Math.ceil(v * fontScalar)),\n };\n TextMeasureCache.set(uid, measurement);\n // clean up measured elements\n element.remove();\n return measurement;\n};\nconst textToLines = (node) => {\n const text = node.nodeValue;\n if (!text)\n return [];\n const textLength = text.length;\n const range = document.createRange();\n range.selectNodeContents(node);\n const lines = [];\n for (let i = 0; i < textLength; i++) {\n range.setStart(node, 0);\n range.setEnd(node, i + 1);\n // which line are we at\n const lineIndex = range.getClientRects().length - 1;\n // get current character\n const char = text.charAt(i);\n // new line, or add to current line\n if (!lines[lineIndex])\n lines.push(char);\n else\n lines[lineIndex] += char;\n }\n // merge text and rects\n const clientRects = range.getClientRects();\n return lines.map((line, index) => ({\n rect: clientRects[index],\n text: line,\n }));\n};\nconst TextSizeCache = new Map();\nconst textToSize = (text = '', options) => {\n const { width = 0, height = 0 } = options;\n if (width && height)\n return sizeCreate(width, height);\n // gather props that impact size and test if can be found in cache\n let { fontSize = 16, fontFamily, lineHeight = 20, fontWeight, fontStyle, fontVariant, letterSpacing, } = options;\n const uid = objectUID({\n text,\n fontFamily,\n fontWeight,\n fontStyle,\n fontVariant,\n fontSize,\n letterSpacing,\n lineHeight,\n width,\n });\n let size = TextSizeCache.get(uid);\n if (size)\n return size;\n // firefox limits font size to 1000px, so if we're above, we scale down before measuring and then scale up after measuring\n let fontScalar = 1;\n if (fontSize > 1000 && isFirefox()) {\n fontScalar = fontSize / 1000;\n fontSize = 1000;\n lineHeight = lineHeight / fontScalar;\n }\n // new measurement needed\n const element = appendForMeasuring(h('pre', {\n contenteditable: 'true',\n spellcheck: 'false',\n style: `${MeasureStyles}${textGetStyles({\n ...options,\n fontSize,\n lineHeight,\n })};${textGetContentEditableStyles(text, options)}\"`,\n innerHTML: text,\n }));\n const rect = element.getBoundingClientRect();\n size = sizeCreateFromAny(rect);\n // add additional height to prevent cutting off footer\n size.height += Math.max(0, fontSize - lineHeight);\n // cache measurement for next query\n size = sizeApply(size, (v) => v * fontScalar);\n // use fixed width if supplied\n if (width)\n size.width = width;\n TextSizeCache.set(uid, size);\n return size;\n};\nconst getPathFromURL = (url) => url.pathname.split('/').slice(0, -1).join('/');\nconst createStyleSheetLoader = (url, willRequest) => {\n const { sub, pub } = pubsub();\n let text;\n let error;\n Promise.resolve(willRequest && willRequest(url, { resourceType: 'stylesheet' })).then((requestInit) => {\n // prevent load\n if (requestInit === false) {\n error = 'requestPrevented';\n return pub('error', error);\n }\n // get props\n const { headers, credentials } = requestInit || {};\n // fetching\n fetch(url, { headers, credentials })\n .then((res) => res.text())\n .then((txt) => {\n text = txt;\n pub('load', text);\n })\n .catch((err) => {\n error = err;\n pub('error', error);\n });\n });\n return {\n sub: (event, cb) => {\n if (event === 'load' && text)\n return cb(text);\n if (event === 'error' && error)\n return cb(error);\n sub(event, cb);\n },\n };\n};\nconst StyleSheetLoaders = new Map();\nconst loadStylesheet = (url, willRequest) => new Promise((resolve, reject) => {\n let loader = StyleSheetLoaders.get(url);\n if (typeof loader === 'undefined') {\n loader = createStyleSheetLoader(url, willRequest);\n StyleSheetLoaders.set(url, loader);\n }\n loader.sub('load', resolve);\n loader.sub('error', reject);\n});\n// use this method to access rules because when accessing third party stylesheetes like google fonts it will throw a warning\nconst getRulesRemote = async (src, willRequest) => {\n // could not access, let's try to load\n let styleSheetContent;\n try {\n styleSheetContent = await loadStylesheet(src, willRequest);\n }\n catch (err) {\n return [];\n }\n const style = h('style', {\n innerHTML: styleSheetContent,\n id: getUniqueId(),\n });\n document.head.append(style);\n const tempStyleSheet = Array.from(document.styleSheets).find((styleSheet) => {\n const node = styleSheet.ownerNode;\n return node.id === style.id;\n });\n style.remove();\n return Array.from(tempStyleSheet.cssRules);\n};\nconst RemoteStyleSheetRulesCache = new Map();\nconst filterFontFaceRules = (rules) => rules.filter((rule) => rule instanceof CSSFontFaceRule);\nconst filterImportRules = (rules) => rules.filter((rule) => rule instanceof CSSImportRule);\nconst getFontFaceRulesSafe = async (styleSheet, willRequest) => {\n // if cached rules, return\n if (RemoteStyleSheetRulesCache.has(styleSheet.href))\n return RemoteStyleSheetRulesCache.get(styleSheet.href);\n // try to get rules\n let rules;\n try {\n // get all rules\n rules = Array.from(styleSheet.cssRules);\n // get @imports\n for (const importRule of filterImportRules(rules)) {\n const url = importRule.href;\n // already loaded this one before\n if (RemoteStyleSheetRulesCache.has(url)) {\n const remoteRules = RemoteStyleSheetRulesCache.get(url);\n rules = [...rules, ...remoteRules];\n continue;\n }\n // get remote rules for this @import\n const remoteRules = await getRulesRemote(url, willRequest);\n // remember returned rules for next run\n RemoteStyleSheetRulesCache.set(url, remoteRules);\n // add found rules\n rules = [...rules, ...remoteRules];\n }\n }\n catch (err) {\n const url = styleSheet.href;\n // this tries to load the styles with `fetch`\n rules = await getRulesRemote(url, willRequest);\n // remember returned rules for next run\n RemoteStyleSheetRulesCache.set(url, rules);\n }\n // only interested in font face rules\n return filterFontFaceRules(rules);\n};\nconst getCSSPropertyValue = (rule, name) => rule.style.getPropertyValue(name);\nconst isMatchingFontRule = (rule, fontFamily) => {\n if (!rule.style)\n return false;\n const family = getCSSPropertyValue(rule, 'font-family').replace(/^\"|\"$/g, '');\n return family == fontFamily;\n};\nconst getMatchingFontRule = (rules, fontFamily) => {\n const res = [];\n for (const fontRule of rules) {\n const isMatch = isMatchingFontRule(fontRule, fontFamily);\n if (!isMatch)\n continue;\n res.push(fontRule);\n }\n return res;\n};\nconst getDocumentStylesheetFontFaceRules = async (willRequest) => {\n const styleSheets = Array.from(document.styleSheets).map((styleSheet) => getFontFaceRulesSafe(styleSheet, willRequest));\n const ruleSets = await Promise.all(styleSheets);\n const rules = [];\n ruleSets.forEach((ruleSet) => rules.push(...ruleSet));\n return rules;\n};\nconst getFontSources = async (fontFamily, willRequest) => {\n // get matching font face rules\n const fontFaceRules = await getDocumentStylesheetFontFaceRules(willRequest);\n // rules matching this font\n const matchingRules = getMatchingFontRule(fontFaceRules, fontFamily);\n if (!matchingRules.length)\n return [];\n return matchingRules.map((rule) => {\n // create stylesheet root path so we can determine font path\n const url = rule.parentStyleSheet.href && new URL(rule.parentStyleSheet.href);\n const styleSheetPath = url ? url.origin + getPathFromURL(url) + '/' : '';\n // create font source\n const fontSources = rule.style.getPropertyValue('src');\n const fontSrcFirst = fontSources.match(/url\\(\"?(.*?)\"?\\)/)[1];\n // get styles\n const fontProps = Array.from(rule.style)\n .filter((prop) => prop != 'src')\n .reduce((props, key) => {\n props += key + ':' + getCSSPropertyValue(rule, key) + ';';\n return props;\n }, '');\n // merge together to create path (Safari font URL is absolute so if it is we only use that url)\n return [\n /^http/.test(fontSrcFirst) ? fontSrcFirst : styleSheetPath + fontSrcFirst,\n fontProps,\n ];\n });\n};\nconst FontLocal = new Map();\nconst FontCache = new Map();\n// application/x-font-ttf\n// application/x-font-truetype\n// application/x-font-opentype\n// application/font-woff\n// application/font-woff2\n// font/otf\n// font/ttf\n// font/woff\n// font/woff2\nconst getFontFormatByMimeType = (type) => {\n if (!type || /woff2/.test(type))\n return 'woff2';\n if (/woff/.test(type))\n return 'woff';\n if (/ttf|truetype/.test(type))\n return 'truetype';\n if (/otf|opentype/.test(type))\n return 'opentype';\n if (/svg/.test(type))\n return 'svg';\n return 'woff2';\n};\nconst getFontFaceEmbed = async (fontFamily, willRequest) => {\n // todo test if is local font\n if (FontLocal.get(fontFamily))\n return;\n let fontStyles = FontCache.get(fontFamily);\n if (!fontStyles) {\n // not cached yet, let's find the font source and turn it into a dataURL\n const fontSources = await getFontSources(fontFamily, willRequest);\n // no source found, is local font\n if (!fontSources.length) {\n FontLocal.set(fontFamily, true);\n return;\n }\n const fontFaces = [];\n for (const [fontSource, fontProps] of fontSources) {\n const blob = await fetch(fontSource).then((res) => res.blob());\n const dataType = getFontFormatByMimeType(blob.type);\n const dataURL = await blobToDataURL(blob);\n fontFaces.push(`@font-face { src:url(${dataURL}) format('${dataType}');${fontProps};font-display:block; }`);\n }\n fontStyles = fontFaces.join('');\n // cache the font so it's super fast in next request\n FontCache.set(fontFamily, fontStyles);\n }\n return fontStyles;\n};\nvar textToImage = async (text = '', options) => {\n // exit if no text\n if (!text.length)\n return;\n let { color, imageWidth = 300, imageHeight = 150, paddingTop = 0, paddingRight = TextPadding, paddingBottom = 0, paddingLeft = TextPadding, fontFamily, fontSize, pixelRatio = 1, willRequest, outline, blur, } = options;\n // manage high font-size on firefox, don't blanket handle it here as Chrome has trouble scaling svg context\n let fontScalar = 1;\n let fontScalarStyles = '';\n if (fontSize > 1000 && isFirefox()) {\n fontScalar = fontSize / 1000;\n fontScalarStyles = `transform-origin:0 0;transform:scale(${fontScalar})`;\n }\n const computedScalar = pixelRatio / fontScalar;\n const width = (imageWidth + paddingLeft + paddingRight) * pixelRatio;\n const height = (imageHeight + paddingBottom + paddingTop) * pixelRatio;\n const fontEmbed = await getFontFaceEmbed(fontFamily, willRequest);\n // make sure text is encoded as characters before rendering in our SVG\n let textEncoded = text\n // these characters need to be encoded in an SVG dataURL\n .replace(/%/g, '%25')\n .replace(/#/g, '%23')\n .replace(/ /g, '\\u00a0')\n // replace non escaped ampersands\n .replace(/&(?!#\\d{4};|[a-z]+;)/gi, '&');\n // no non-closing tags allowed in foreignObject as is xhtml namespace, safari and firefox don't draw newline character so replace with <br/>\n const textFinal = textEncoded.replace(/<br>|\\n/g, '<br/>');\n const computedPaddingTop = paddingTop * computedScalar;\n const computedPaddingRight = paddingRight * computedScalar;\n const computedPaddingBottom = paddingBottom * computedScalar;\n const computedPaddingLeft = paddingLeft * computedScalar;\n // define padding style\n const paddingStyles = `top:${computedPaddingTop}px;right:${computedPaddingRight}px;bottom:${computedPaddingBottom}px;left:${computedPaddingLeft}px`;\n // if shadow or outline\n let fontColor = color;\n let outlineStyles = '';\n let blurStyles = '';\n if (outline || blur) {\n const computedColor = colorArrayToRGBA(color);\n if (outline) {\n // we hide text\n fontColor = [0, 0, 0, 0];\n // we use text color for outline\n outlineStyles = `-webkit-text-stroke: ${outline * 2 * computedScalar}px ${computedColor}`;\n }\n if (blur) {\n if (isSafari()) {\n // Safari: somehow a text-shadow with a blur doesn't work when drawing the final image, so instead we use the blur()filter. The .4 approximates the amount of blur when using text-shadow.\n blurStyles = `filter:blur(${blur * computedScalar * 0.4}px)`;\n }\n else {\n // we hide text\n fontColor = [0, 0, 0, 0];\n // we use text color for shadow\n blurStyles = `text-shadow: 0 0 ${blur * computedScalar}px ${computedColor}`;\n }\n }\n }\n const textStyles = textGetStyles({ ...options, color: fontColor, fontSize }, computedScalar);\n const textContentEditableStyles = textGetContentEditableStyles(text, options, computedScalar);\n // build svg string\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${width}\" height=\"${height}\" viewBox=\"0 0 ${width} ${height}\"><foreignObject x=\"0\" y=\"0\" width=\"${width}\" height=\"${height}\"><div xmlns=\"http://www.w3.org/1999/xhtml\">${fontEmbed ? `<style>${fontEmbed}</style>` : ''}<pre contenteditable=\"true\" spellcheck=\"false\" style=\"position:absolute;${paddingStyles};${textStyles};${textContentEditableStyles};${fontScalarStyles};${outlineStyles};${blurStyles}\">${textFinal}</pre></div></foreignObject></svg>`;\n return svgToImage(svg, { safariCacheKey: fontFamily });\n};\n\nconst shapeEqual = (a, b) => {\n return JSON.stringify(a) === JSON.stringify(b);\n};\nconst shapeDeepCopy = (shape) => {\n const shapeShallowCopy = { ...shape };\n const shapeDeepCopy = deepCopy(shapeShallowCopy);\n return shapeDeepCopy;\n};\nconst getContextSize = (context, size = {}) => {\n const contextAspectRatio = rectAspectRatio(context);\n let xOut;\n let yOut;\n const xIn = size.width || size.rx;\n const yIn = size.height || size.ry;\n if (xIn && yIn)\n return sizeClone(size);\n if (xIn || yIn) {\n xOut = parseFloat(xIn || Number.MAX_SAFE_INTEGER);\n yOut = parseFloat(yIn || Number.MAX_SAFE_INTEGER);\n const min = Math.min(xOut, yOut);\n if (isString(xIn) || isString(yIn)) {\n xOut = `${min}%`;\n yOut = `${min * contextAspectRatio}%`;\n }\n else {\n xOut = min;\n yOut = min;\n }\n }\n else {\n const min = 10;\n xOut = `${min}%`;\n yOut = `${min * contextAspectRatio}%`;\n }\n const xProp = size.width ? 'width' : size.rx ? 'rx' : undefined;\n const yProp = size.width ? 'height' : size.rx ? 'ry' : undefined;\n return {\n [xProp || 'width']: xOut,\n [yProp || 'height']: yOut,\n };\n};\nconst shapeCreateFromEmoji = (emoji, props = {}) => {\n return {\n width: undefined,\n height: undefined,\n ...props,\n aspectRatio: 1,\n backgroundImage: SVGToDataURL(getEmojiSVG(emoji)),\n };\n};\nconst shapeCreateFromImage = (src, shapeProps = {}) => {\n const shapeDefaultLayout = shapeIsEllipse(shapeProps)\n ? {}\n : {\n width: undefined,\n height: undefined,\n aspectRatio: undefined,\n };\n const shape = {\n // required/default image shape props\n backgroundColor: [0, 0, 0, 0],\n // set default layout props\n ...shapeDefaultLayout,\n // merge with custom props\n ...shapeProps,\n // set image\n backgroundImage: \n // is svg or URL\n isString(src) ? src : isBinary(src) ? URL.createObjectURL(src) : src,\n };\n return shape;\n};\nconst shapeCreateFromPreset = (preset, parentRect) => {\n let shape;\n if (isString(preset) || isBinary(preset)) {\n // default props for \"quick\" preset\n const shapeOptions = {\n ...getContextSize(parentRect),\n backgroundSize: 'contain',\n };\n // if is emoji, create default markup,\n if (isEmoji(preset)) {\n shape = shapeCreateFromEmoji(preset, shapeOptions);\n }\n // is URL, create default markup for image\n else {\n shape = shapeCreateFromImage(preset, shapeOptions);\n }\n }\n else {\n // is using src shortcut\n if (preset.src) {\n const contextSize = getContextSize(parentRect, preset.shape || preset);\n // shape options\n const shapeOptions = {\n // default shape styles\n ...preset.shape,\n // precalcualte size of shape in context\n ...contextSize,\n };\n // should auto-fix aspect ratio\n if (preset.width && preset.height && !hasProp(shapeOptions, 'aspectRatio')) {\n const width = shapeGetPropPixelValue(contextSize, 'width', parentRect);\n const height = shapeGetPropPixelValue(contextSize, 'height', parentRect);\n shapeOptions.aspectRatio = getAspectRatio(width, height);\n }\n // should auto-contain sticker in container\n if (!shapeOptions.backgroundSize && !preset.shape && (!preset.width || !preset.height))\n shapeOptions.backgroundSize = 'contain';\n // emoji markup\n if (isEmoji(preset.src)) {\n shape = shapeCreateFromEmoji(preset.src, shapeOptions);\n }\n // is url\n else {\n shape = shapeCreateFromImage(preset.src, shapeOptions);\n }\n }\n // should have markup defined\n else if (preset.shape) {\n shape = shapeDeepCopy(preset.shape);\n }\n }\n if (hasProp(shape, 'backgroundImage')) {\n // set transparent background if no background color defined\n if (!hasProp(shape, 'backgroundColor')) {\n shape.backgroundColor = [0, 0, 0, 0];\n }\n // for rectangles with image presets, disable these styles by default\n if (!hasProp(shape, 'disableStyle')) {\n shape.disableStyle = ['cornerRadius', 'backgroundColor', 'strokeColor', 'strokeWidth'];\n }\n }\n return parentRect ? shapeComputeDisplay(shape, parentRect) : shape;\n};\nconst shapeLineGetStartPoint = (line) => vectorCreate(line.x1, line.y1);\nconst shapeLineGetEndPoint = (line) => vectorCreate(line.x2, line.y2);\n//#endregion\n//#region shape testing\n// shape types\nconst shapeIsText = (shape) => hasProp(shape, 'text');\nconst shapeIsTextBlock = (shape) => shapeIsText(shape) && !(shapeHasRelativeSize(shape) || hasProp(shape, 'width'));\nconst shapeIsTextBox = (shape) => shapeIsText(shape) && (shapeHasRelativeSize(shape) || hasProp(shape, 'width'));\nconst shapeIsRect = (shape) => !shapeIsText(shape) && shapeHasComputedSize(shape);\nconst shapeIsEllipse = (shape) => hasProp(shape, 'rx');\nconst shapeIsLine = (shape) => hasProp(shape, 'x1');\nconst shapeIsPath = (shape) => hasProp(shape, 'points');\n// shape state\nconst shapeIsTextEmpty = (shape) => shapeIsText(shape) && !shape.text.length;\nconst shapeIsTextEditing = (shape) => shapeIsText(shape) && shape.isEditing;\nconst shapeIsVisible = (shape) => hasProp(shape, 'opacity') ? shape.opacity > 0 : true;\nconst shapeIsSelected = (shape) => shape.isSelected;\nconst shapeIsEditing = (shape) => shape.isEditing;\nconst shapeIsDraft = (shape) => shape._isDraft;\nconst shapeHasSize = (shape) => hasProp(shape, 'width') && hasProp(shape, 'height');\nconst shapeHasNumericStroke = (shape) => isNumber(shape.strokeWidth) && shape.strokeWidth > 0; // only relevant if is bigger than 0\nconst shapeHasRelativePosition = (shape) => {\n const hasRight = hasProp(shape, 'right');\n const hasBottom = hasProp(shape, 'bottom');\n return hasRight || hasBottom;\n};\nconst shapeHasTexture = (shape) => hasProp(shape, 'backgroundImage') || hasProp(shape, 'text');\nconst shapeHasRelativeSize = (shape) => ((hasProp(shape, 'x') || hasProp(shape, 'left')) && hasProp(shape, 'right')) ||\n ((hasProp(shape, 'y') || hasProp(shape, 'top')) && hasProp(shape, 'bottom'));\nconst shapeHasComputedSize = (shape) => shapeHasSize(shape) || shapeHasRelativeSize(shape);\nconst shapeIsVisibleColor = (shape, colorProp) => {\n const value = shape[colorProp];\n if (!value)\n return false;\n if (value.length === 3)\n return true;\n return value[3] > 0;\n};\nconst shapeHasStroke = (shape) => shape.strokeWidth && shapeIsVisibleColor(shape, 'strokeColor');\n// actions\nconst shapeSelect = (shape) => {\n shape.isSelected = true;\n return shape;\n};\nconst shapeMakeDraft = (shape) => {\n shape._isDraft = true;\n return shape;\n};\nconst shapeMakeFinal = (shape) => {\n shape._isDraft = false;\n return shape;\n};\n// rights\nconst shapeCanStyle = (shape, style) => {\n if (shape.disableStyle === true)\n return false;\n if (isArray(shape.disableStyle) && style) {\n return !shape.disableStyle.includes(style);\n }\n return true;\n};\nconst shapeCanSelect = (shape) => shape.disableSelect !== true;\nconst shapeCanRemove = (shape) => shape.disableRemove !== true;\nconst shapeCanDuplicate = (shape) => shape.disableDuplicate !== true && shapeCanMove(shape);\nconst shapeCanReorder = (shape) => shape.disableReorder !== true;\nconst shapeCanFlip = (shape) => {\n if (shape.disableFlip)\n return false;\n if (shapeIsDraft(shape) || shapeHasRelativePosition(shape))\n return false;\n return shapeHasTexture(shape);\n};\nconst shapeCanInput = (shape, input) => {\n if (!shapeIsText(shape))\n return false;\n if (shape.disableInput === true)\n return false;\n if (isFunction(shape.disableInput))\n return shape.disableInput(input != null ? input : shape.text);\n return input || true;\n};\nconst shapeCanChangeTextLayout = (shape, layout) => {\n if (shape.disableTextLayout === true)\n return false;\n if (isArray(shape.disableTextLayout) && layout) {\n return !shape.disableTextLayout.includes(layout);\n }\n return true;\n};\nconst shapeCanManipulate = (shape) => shape.disableManipulate !== true && !shapeIsDraft(shape) && !shapeHasRelativePosition(shape);\nconst shapeCanMove = (shape) => shapeCanManipulate(shape) && shape.disableMove !== true;\nconst shapeCanResize = (shape) => shapeCanManipulate(shape) &&\n shapeCanMove(shape) &&\n shape.disableResize !== true &&\n (shapeHasSize(shape) ||\n shapeIsTextBox(shape) ||\n shapeIsEllipse(shape) ||\n shapeIsLine(shape) ||\n (shapeIsPath(shape) && hasProp(shape, 'pathClose')));\nconst shapeCanRotate = (shape) => shapeCanManipulate(shape) &&\n shape.disableRotate !== true &&\n (shapeHasSize(shape) || hasProp(shape, 'text') || shapeIsEllipse(shape));\n//#endregion\n//#region shape formatting\nconst shapeDeleteRelativeProps = (shape) => {\n delete shape.left;\n delete shape.right;\n delete shape.top;\n delete shape.bottom;\n return shape;\n};\nconst shapeDeleteTransformProps = (shape) => {\n delete shape.rotation;\n return shape;\n};\nconst shapeFormatStroke = (shape) => {\n shape.strokeWidth = shape.strokeWidth || 1;\n shape.strokeColor = shape.strokeColor || [0, 0, 0];\n return shape;\n};\nconst shapeFormatFill = (shape) => {\n shape.backgroundColor = shape.backgroundColor\n ? shape.backgroundColor\n : shape.strokeWidth || shape.backgroundImage\n ? undefined\n : [0, 0, 0];\n return shape;\n};\n// encode illegal characters\n// first replace entities, then encode characters that are left, then replace entities\nconst shapeFormatHTMLText = (shape) => {\n let text = shape.text;\n text = text.replace(/&(#[0-9]+|[a-z]+);/gi, (_, value) => `___${value}___`);\n text = text.replace(/&/, '&');\n shape.text = text.replace(/___(#[0-9]+|[a-z]+)___/gi, (_, value) => `&${value};`);\n};\nconst shapeFormatPlainText = (shape) => {\n shapeFormatHTMLText(shape);\n let text = shape.text;\n text = text.replace(/</g, '>');\n text = text.replace(/>/g, '<');\n shape.text = text;\n};\nconst shapeFormatText = (shape) => {\n shape.fontSize = shape.fontSize || '4%';\n shape.fontFamily = shape.fontFamily || 'sans-serif';\n shape.fontWeight = shape.fontWeight || 'normal';\n shape.fontStyle = shape.fontStyle || 'normal';\n shape.fontVariant = shape.fontVariant || 'normal';\n shape.lineHeight = shape.lineHeight || '120%';\n shape.color = shape.color || [0, 0, 0];\n shape.format = shape.format === 'html' ? 'html' : 'text';\n if (shape.textShadow) {\n const [x, y, blur, color] = shape.textShadow;\n shape.textShadowX = x;\n shape.textShadowY = y;\n shape.textShadowBlur = blur;\n shape.textShadowColor = color;\n delete shape.textShadow;\n }\n if (shape.textOutline) {\n const [width, color] = shape.textOutline;\n shape.textOutlineWidth = width;\n shape.textOutlineColor = color;\n delete shape.textOutline;\n }\n if (shape.format === 'html')\n shapeFormatHTMLText(shape);\n else\n shapeFormatPlainText(shape);\n return shapeIsTextBlock(shape) ? shapeFormatTextBlock(shape) : shapeFormatTextBox(shape);\n};\nconst shapeFormatTextBlock = (shape) => {\n // for now can't align if not allowed to use newlines\n if (shape.disableNewline !== false) {\n delete shape.textAlign;\n shape.text = shape.text.replace(/\\n/g, ' ');\n }\n return shapeDeleteRelativeProps(shape);\n};\nconst shapeFormatTextBox = (shape) => {\n shape.textAlign = shape.textAlign || 'left';\n return shape;\n};\nconst shapeFormatRect = (shape) => {\n shape.cornerRadius = shape.cornerRadius || 0;\n shape.strokeWidth = shape.strokeWidth || 0;\n shape.strokeColor = shape.strokeColor || [0, 0, 0];\n return shapeFormatFill(shape);\n};\nconst shapeFormatEllipse = (shape) => {\n shape.strokeWidth = shape.strokeWidth || 0;\n shape.strokeColor = shape.strokeColor || [0, 0, 0];\n return shapeFormatFill(shape);\n};\nconst shapeFormatPath = (shape) => {\n shapeFormatStroke(shape);\n shapeDeleteTransformProps(shape);\n if (!hasProp(shape, 'pathClose')) {\n shape.disableResize = true;\n if (!hasProp(shape, 'disableMove')) {\n shape.disableMove = true;\n }\n }\n return shapeDeleteRelativeProps(shape);\n};\nconst shapeFormatLine = (shape) => {\n shapeFormatStroke(shape);\n shape.lineStart = shape.lineStart || undefined;\n shape.lineEnd = shape.lineEnd || undefined;\n shapeDeleteTransformProps(shape);\n return shapeDeleteRelativeProps(shape);\n};\nconst shapeFormatDefaults = (shape) => {\n if (!isString(shape.id))\n shape.id = getUniqueId();\n if (!hasProp(shape, 'rotation'))\n shape.rotation = 0;\n if (!hasProp(shape, 'opacity'))\n shape.opacity = 1;\n if (!hasProp(shape, 'disableErase'))\n shape.disableErase = true;\n};\nconst shapeFormat = (shape) => {\n shapeFormatDefaults(shape);\n if (shapeIsText(shape)) {\n shapeFormatText(shape);\n }\n else if (shapeIsRect(shape)) {\n shapeFormatRect(shape);\n }\n else if (shapeIsPath(shape)) {\n shapeFormatPath(shape);\n }\n else if (shapeIsLine(shape)) {\n shapeFormatLine(shape);\n }\n else if (shapeIsEllipse(shape)) {\n shapeFormatEllipse(shape);\n }\n return shape;\n};\nconst shapeGetDescription = (shape) => {\n if (shapeIsText(shape))\n return 'text';\n if (shapeIsRect(shape))\n return 'rectangle';\n if (shapeIsPath(shape))\n return 'path';\n if (shapeIsLine(shape))\n return 'line';\n if (shapeIsEllipse(shape))\n return 'ellipse';\n return;\n};\n//#endregion\nconst toPixelValue = (percentage, total) => (parseFloat(percentage) / 100) * total;\n//#region shape transforming\nconst xRegExp = new RegExp(/^x|left|right|^width|rx|fontSize|eraseRadius|feather|cornerRadius|strokeWidth|strokeDash/, 'i');\nconst yRegExp = new RegExp(/^y|top|bottom|^height|ry/, 'i');\nconst compute = (key, value, { width, height }) => {\n // handle array of percentage values\n if (Array.isArray(value)) {\n return value.map((v) => {\n if (isObject(v)) {\n // update the object itself\n computeProps(v, { width, height });\n }\n if (isString(v)) {\n v = compute(key, v, { width, height });\n }\n return v;\n });\n }\n // no need to compute (test with typeof instead of for perf)\n if (typeof value !== 'string')\n return value;\n if (!value.endsWith('%'))\n return value;\n const f = parseFloat(value) / 100;\n if (xRegExp.test(key))\n return fixPrecision(width * f, 6);\n if (yRegExp.test(key))\n return fixPrecision(height * f, 6);\n // dont auto-compute\n return value;\n};\nconst shapeComputeProp = compute;\nconst computeRelativeToValue = (percentage, value) => {\n return Math.round(value * (parseFloat(percentage) / 100));\n};\nconst PROPS_RELATIVE_TO_FONT_SIZE = [\n 'lineHeight',\n 'textOutlineWidth',\n 'textShadowX',\n 'textShadowY',\n 'textShadowBlur',\n];\nconst computeProps = (obj, context) => {\n Object.entries(obj).map(([key, value]) => {\n obj[key] = compute(key, value, context);\n });\n // no text, skip\n if (!obj.text)\n return;\n // calculate props relative to font size\n PROPS_RELATIVE_TO_FONT_SIZE.filter((key) => isString(obj[key])).forEach((key) => {\n obj[key] = computeRelativeToValue(obj[key], obj.fontSize);\n });\n};\nconst shapeComputeDisplay = (shape, context) => {\n computeProps(shape, context);\n shapeComputeRect(shape, context);\n return shape;\n};\nconst shapeGetPropPixelTotal = (prop, parentRect) => {\n let total;\n if (/^x|width|rx|fontSize|strokeWidth|cornerRadius/.test(prop)) {\n total = parentRect.width;\n }\n else if (/^y|height|ry/.test(prop)) {\n total = parentRect.height;\n }\n return total;\n};\nconst shapeUpdateProp = (shape, prop, value, parentRect) => {\n if (!isString(shape[prop])) {\n shape[prop] = value;\n return shape;\n }\n const total = shapeGetPropPixelTotal(prop, parentRect);\n shape[prop] = total === undefined ? value : toPercentage(value, total);\n return shape;\n};\nconst shapeGetPropPixelValue = (shape, prop, parentRect) => {\n if (Array.isArray(shape[prop]))\n return shape[prop].map((item) => {\n return Object.entries(item).reduce((mapped, [key, value]) => {\n mapped[key] = isString(value)\n ? toPixelValue(value, shapeGetPropPixelTotal(key, parentRect))\n : value;\n return mapped;\n }, {});\n });\n if (!isString(shape[prop]))\n return shape[prop];\n return toPixelValue(shape[prop], shapeGetPropPixelTotal(prop, parentRect));\n};\nconst shapeGetPropsPixelValues = (shape, props, parentRect) => {\n return props.reduce((prev, prop) => {\n const value = shapeGetPropPixelValue(shape, prop, parentRect);\n prev[prop] = value;\n return prev;\n }, {});\n};\nconst shapeUpdateProps = (shape, props, parentRect) => {\n Object.keys(props).forEach((key) => shapeUpdateProp(shape, key, props[key], parentRect));\n return shape;\n};\nconst shapeBounds = (shape) => {\n const rect = rectCreateEmpty();\n const strokeWidth = shape.strokeWidth || 0;\n if (shapeIsRect(shape)) {\n rect.x = shape.x - strokeWidth * 0.5;\n rect.y = shape.y - strokeWidth * 0.5;\n rect.width = shape.width + strokeWidth;\n rect.height = shape.height + strokeWidth;\n }\n else if (shapeIsLine(shape)) {\n const { x1, y1, x2, y2 } = shape;\n const left = Math.abs(Math.min(x1, x2));\n const right = Math.abs(Math.max(x1, x2));\n const top = Math.abs(Math.min(y1, y2));\n const bottom = Math.abs(Math.min(y1, y2));\n rect.x = left + strokeWidth * 0.5;\n rect.y = right + strokeWidth * 0.5;\n rect.width = right - left + strokeWidth;\n rect.height = bottom - top + strokeWidth;\n }\n else if (shapeIsEllipse(shape)) {\n rect.x = shape.x - shape.rx + strokeWidth * 0.5;\n rect.y = shape.y - shape.ry + strokeWidth * 0.5;\n rect.width = shape.rx * 2 + strokeWidth;\n rect.height = shape.ry * 2 + strokeWidth;\n }\n if (rect && hasProp(shape, 'rotation')) {\n rectRotate(rect, shape.rotation);\n }\n return rectToBounds(rect);\n};\nconst shapesBounds = (shapes, parentRect) => {\n const bounds = shapes\n .filter((shape) => shape.x < 0 || shape.y < 0 || shape.x1 < 0 || shape.y1 < 0)\n .reduce((bounds, shape) => {\n const [top, right, bottom, left] = shapeBounds(shape);\n bounds.top = Math.min(top, bounds.top);\n bounds.left = Math.min(left, bounds.left);\n bounds.bottom = Math.max(bottom, bounds.bottom);\n bounds.right = Math.max(right, bounds.right);\n return bounds;\n }, {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n });\n if (bounds.right > 0)\n bounds.right -= parentRect.width;\n if (bounds.bottom > 0)\n bounds.bottom -= parentRect.height;\n return bounds;\n};\nconst shapesFromCompositShape = (shape, parentRect, parser) => {\n const shapeCopy = shapeDeepCopy(shape);\n shapeComputeDisplay(shapeCopy, parentRect);\n const shapes = parser(shapeCopy);\n return Array.isArray(shapes) ? shapes : [shapes];\n};\nconst shapeComputeRect = (shape, context) => {\n if (hasProp(shape, 'left'))\n shape.x = shape.left;\n if (hasProp(shape, 'right') && !isString(shape.right)) {\n const r = context.width - shape.right;\n if (hasProp(shape, 'left')) {\n shape.x = shape.left;\n shape.width = Math.max(0, r - shape.left);\n }\n else if (hasProp(shape, 'width')) {\n shape.x = r - shape.width;\n }\n }\n if (hasProp(shape, 'top'))\n shape.y = shape.top;\n if (hasProp(shape, 'bottom') && !isString(shape.bottom)) {\n const b = context.height - shape.bottom;\n if (hasProp(shape, 'top')) {\n shape.y = shape.top;\n shape.height = Math.max(0, b - shape.top);\n }\n else if (hasProp(shape, 'height')) {\n shape.y = b - shape.height;\n }\n }\n return shape;\n};\n// currently only used for drawing to canvas in output\nconst shapeScale = (shape, scale) => {\n if (shapeIsPath(shape)) {\n shape.points\n .filter((point) => isNumber(point.x))\n .forEach((point) => {\n point.x *= scale;\n point.y *= scale;\n });\n }\n if (shapeIsLine(shape) && isNumber(shape.x1)) {\n shape.x1 *= scale;\n shape.y1 *= scale;\n shape.x2 *= scale;\n shape.y2 *= scale;\n }\n if (isNumber(shape.x) && isNumber(shape.y)) {\n shape.x *= scale;\n shape.y *= scale;\n }\n if (isNumber(shape.width) && isNumber(shape.height)) {\n shape.width *= scale;\n shape.height *= scale;\n }\n if (isNumber(shape.rx) && isNumber(shape.ry)) {\n shape.rx *= scale;\n shape.ry *= scale;\n }\n if (shapeHasNumericStroke(shape)) {\n shape.strokeWidth *= scale;\n }\n if (shapeIsText(shape)) {\n shape._scale = scale;\n if (isNumber(shape.fontSize)) {\n shape.fontSize *= scale;\n }\n if (isNumber(shape.lineHeight)) {\n shape.lineHeight *= scale;\n }\n if (isNumber(shape.width) && !isNumber(shape.height))\n shape.width *= scale;\n }\n if (hasProp(shape, 'cornerRadius') && isNumber(shape.cornerRadius)) {\n shape.cornerRadius *= scale;\n }\n return shape;\n};\nconst shapeGetLength = (shape) => {\n if (!shape.x1)\n return;\n return vectorDistance(vectorCreate(shape.x1, shape.y1), vectorCreate(shape.x2, shape.y2));\n};\nconst shapeGetCenter = (shape) => {\n if (shapeIsRect(shape)) {\n return vectorCreate(shape.x + shape.width * 0.5, shape.y + shape.height * 0.5);\n }\n if (shapeIsEllipse(shape)) {\n return vectorCreate(shape.x, shape.y);\n }\n if (shape.text) {\n // if is text box we try to use width & height values\n if (shapeIsTextBox(shape)) {\n const height = shape.height || textToSize(shape.text, shape).height;\n return vectorCreate(shape.x + shape.width * 0.5, shape.y + height * 0.5);\n }\n // else we calculate text size\n const size = textToSize(shape.text, shape);\n return vectorCreate(shape.x + size.width * 0.5, shape.y + size.height * 0.5);\n }\n if (shapeIsPath(shape)) {\n return vectorCenter(shape.points);\n }\n if (shapeIsLine(shape)) {\n return vectorCenter([\n shapeLineGetStartPoint(shape),\n shapeLineGetEndPoint(shape),\n ]);\n }\n return undefined;\n};\n//#endregion\nconst shapeGetLevel = (shapeInitialState, imageCurrentState) => {\n let flipX = false;\n if (imageCurrentState.flipX && shapeInitialState.flipX) {\n flipX = true;\n }\n else if (!imageCurrentState.flipX && shapeInitialState.flipX) {\n flipX = false;\n }\n else if (imageCurrentState.flipX && !shapeInitialState.flipX) {\n flipX = true;\n }\n let flipY = false;\n if (imageCurrentState.flipY && shapeInitialState.flipY) {\n flipY = true;\n }\n else if (!imageCurrentState.flipY && shapeInitialState.flipY) {\n flipY = false;\n }\n else if (imageCurrentState.flipY && !shapeInitialState.flipY) {\n flipY = true;\n }\n let rotation = -imageCurrentState.rotation;\n if ((flipX || flipY) && !(flipX && flipY))\n rotation = -rotation;\n return {\n flipX,\n flipY,\n rotation,\n };\n};\n\nvar ctxRoundRect = (ctx, x, y, width, height, radius) => {\n if (width < 2 * radius)\n radius = width / 2;\n if (height < 2 * radius)\n radius = height / 2;\n ctx.beginPath();\n ctx.moveTo(x + radius, y);\n ctx.arcTo(x + width, y, x + width, y + height, radius);\n ctx.arcTo(x + width, y + height, x, y + height, radius);\n ctx.arcTo(x, y + height, x, y, radius);\n ctx.arcTo(x, y, x + width, y, radius);\n ctx.closePath();\n return ctx;\n};\n\nvar isCanvas = (element) => /canvas/i.test(element.nodeName);\n\nvar isRemoteURL = (url) => new URL(url, location.href).origin !== location.origin;\n\nvar loadImage = (image, onSize = undefined) => new Promise((resolve, reject) => {\n // the image element we'll use to load the image\n let imageElement = image;\n let sizeCalculated = false;\n const reportSize = () => {\n if (sizeCalculated)\n return;\n sizeCalculated = true;\n isFunction(onSize) &&\n /* Use Promise.resolve to make async but place before resolve of parent promise */\n Promise.resolve().then(() => onSize(sizeCreate(imageElement.naturalWidth, imageElement.naturalHeight)));\n };\n // if is not an image element, it must be a valid image source\n if (!imageElement.src) {\n imageElement = new Image();\n // if is remote image, set crossOrigin\n // why not always set crossOrigin? -> because when set this fires two requests,\n // one for asking permission and one for downloading the image\n if (isString(image) && isRemoteURL(image))\n imageElement.crossOrigin = 'anonymous';\n imageElement.src = isString(image) ? image : URL.createObjectURL(image);\n }\n if (imageElement.complete) {\n reportSize();\n return resolve(imageElement);\n }\n // try to calculate size faster\n if (isFunction(onSize))\n getImageElementSize(imageElement).then(reportSize).catch(reject);\n imageElement.onload = () => {\n reportSize();\n resolve(imageElement);\n };\n imageElement.onerror = () => reject(new Error('Failed to load image'));\n});\n\nconst cache = new Map([]);\nconst getImage = (src, options = {}) => new Promise((resolve, reject) => {\n const { onMetadata = noop$1, onLoad = resolve, onError = reject, onComplete = noop$1, } = options;\n let imageLoadState = cache.get(src);\n // start loading\n if (!imageLoadState) {\n imageLoadState = {\n loading: false,\n complete: false,\n error: false,\n image: undefined,\n size: undefined,\n bus: pubsub(),\n };\n // store\n cache.set(src, imageLoadState);\n }\n // wait for load\n imageLoadState.bus.sub('meta', onMetadata);\n imageLoadState.bus.sub('load', onLoad);\n imageLoadState.bus.sub('error', onError);\n imageLoadState.bus.sub('complete', onComplete);\n // if is canvas, it's already done\n if (isCanvas(src)) {\n const canvas = src;\n // get image\n const image = canvas.cloneNode();\n // update state\n imageLoadState.complete = true;\n imageLoadState.image = image;\n imageLoadState.size = sizeCreateFromElement(canvas);\n }\n // already loaded\n if (imageLoadState.complete) {\n imageLoadState.bus.pub('meta', { size: imageLoadState.size });\n if (imageLoadState.error) {\n imageLoadState.bus.pub('error', imageLoadState.error);\n }\n else {\n imageLoadState.bus.pub('load', imageLoadState.image);\n }\n imageLoadState.bus.pub('complete');\n // reset subscribers\n imageLoadState.bus = pubsub();\n return;\n }\n // already loading, exit here\n if (imageLoadState.loading)\n return;\n // now loading\n imageLoadState.loading = true;\n // resource needs to be loaded\n loadImage(src, (size) => {\n imageLoadState.size = size;\n imageLoadState.bus.pub('meta', { size });\n })\n .then((image) => {\n imageLoadState.image = image;\n imageLoadState.bus.pub('load', image);\n })\n .catch((err) => {\n imageLoadState.error = err;\n imageLoadState.bus.pub('error', err);\n })\n .finally(() => {\n imageLoadState.complete = true;\n imageLoadState.loading = false;\n imageLoadState.bus.pub('complete');\n // reset subscribers\n imageLoadState.bus = pubsub();\n });\n});\n\nconst drawCanvas = (ctx, image, srcRect, destRect) => ctx.drawImage(image, srcRect.x, srcRect.x, srcRect.width, srcRect.height, destRect.x, destRect.y, destRect.width, destRect.height);\nvar ctxDrawImage = async (ctx, image, srcRect, destRect, draw = drawCanvas, options) => {\n ctx.save();\n ctx.clip();\n await draw(ctx, image, srcRect, destRect, options);\n ctx.restore();\n};\nconst getDrawImageParams = (container, backgroundSize, imageSize, backgroundCorners, backgroundPosition) => {\n // target is container\n const destRect = rectClone$1(container);\n // texture mapping\n if (backgroundCorners) {\n const srcRect = rectApply(rectCreateFromPoints(backgroundCorners), fixPrecision);\n srcRect.x *= imageSize.width;\n srcRect.width *= imageSize.width;\n srcRect.y *= imageSize.height;\n srcRect.height *= imageSize.height;\n return {\n srcRect,\n destRect,\n };\n }\n // by default use entire image\n const srcRect = rectCreate(0, 0, imageSize.width, imageSize.height);\n // css background positioning\n if (backgroundSize === 'contain') {\n const rect = rectContainRect(container, rectAspectRatio(srcRect));\n destRect.width = rect.width;\n destRect.height = rect.height;\n if (backgroundPosition) {\n destRect.x += backgroundPosition.x;\n destRect.y += backgroundPosition.y;\n }\n else {\n destRect.x += rect.x;\n destRect.y += rect.y;\n }\n }\n else if (backgroundSize === 'cover') {\n const relativeRect = rectCoverRect(destRect, srcRect.width / srcRect.height);\n destRect.width = relativeRect.width;\n destRect.height = relativeRect.height;\n if (backgroundPosition) {\n destRect.x += backgroundPosition.x;\n destRect.y += backgroundPosition.y;\n }\n else {\n destRect.x += relativeRect.x;\n destRect.y += relativeRect.y;\n }\n }\n else if (backgroundSize) {\n destRect.width = backgroundSize.width;\n destRect.height = backgroundSize.height;\n if (backgroundPosition) {\n destRect.x += backgroundPosition.x;\n destRect.y += backgroundPosition.y;\n }\n }\n else if (backgroundPosition) {\n destRect.width = imageSize.width;\n destRect.height = imageSize.height;\n destRect.x += backgroundPosition.x;\n destRect.y += backgroundPosition.y;\n }\n return {\n srcRect,\n destRect,\n };\n};\n\nconst defineRectShape = (ctx, shape) => {\n shape.cornerRadius > 0\n ? ctxRoundRect(ctx, shape.x, shape.y, shape.width, shape.height, shape.cornerRadius)\n : ctx.rect(shape.x, shape.y, shape.width, shape.height);\n return ctx;\n};\nconst fillRectShape = (ctx, shape) => {\n shape.backgroundColor && ctx.fill();\n return ctx;\n};\nconst strokeRectShape = (ctx, shape) => {\n shape.strokeWidth && ctx.stroke();\n return ctx;\n};\nvar drawRect = async (ctx, shape, options = {}) => {\n const { drawImage } = options;\n ctx.lineWidth = shape.strokeWidth ? shape.strokeWidth : 1; // 1 is default value for lineWidth prop\n ctx.strokeStyle = shape.strokeColor ? colorArrayToRGBA(shape.strokeColor) : 'none';\n ctx.fillStyle = shape.backgroundColor ? colorArrayToRGBA(shape.backgroundColor) : 'none';\n ctx.globalAlpha = shape.opacity;\n if (shape.backgroundImage) {\n let image;\n if (isCanvas(shape.backgroundImage)) {\n image = shape.backgroundImage;\n }\n else {\n image = await getImage(shape.backgroundImage);\n }\n // draw background color first\n defineRectShape(ctx, shape);\n fillRectShape(ctx, shape);\n // draw pattern OR draw normal image\n if (shape.backgroundRepeat === 'repeat') {\n const backgroundPosition = shape.backgroundPosition || { x: 0, y: 0 };\n const { srcRect, destRect } = getDrawImageParams(shape, shape.backgroundSize || sizeCreateFromElement(image), sizeCreateFromElement(image), shape.backgroundCorners, { x: 0, y: 0 });\n // create pattern canvas so we can scale image before creating pattern\n const patternCanvas = document.createElement('canvas');\n patternCanvas.width = destRect.width;\n patternCanvas.height = destRect.height;\n const patternCtx = patternCanvas.getContext('2d', {\n willReadFrequently: false,\n desynchronized: true,\n });\n await drawImage(patternCtx, image, srcRect, { ...destRect, x: 0, y: 0 });\n // fill context with pattern\n const pattern = ctx.createPattern(patternCanvas, 'repeat');\n ctx.fillStyle = pattern;\n ctx.save();\n ctx.beginPath();\n ctx.rect(shape.x + backgroundPosition.x, shape.y + backgroundPosition.y, shape.width - backgroundPosition.x, shape.height - backgroundPosition.y);\n ctx.clip();\n ctx.translate(destRect.x + backgroundPosition.x, destRect.y + backgroundPosition.y);\n ctx.fill();\n // release pattern canvas\n releaseCanvas(patternCanvas);\n ctx.restore();\n }\n else {\n const { srcRect, destRect } = getDrawImageParams(shape, shape.backgroundSize, sizeCreateFromElement(image), shape.backgroundCorners, shape.backgroundPosition);\n await ctxDrawImage(ctx, image, srcRect, destRect, drawImage, {\n feather: shape.feather,\n });\n }\n ctx.beginPath();\n defineRectShape(ctx, shape);\n strokeRectShape(ctx, shape);\n return [];\n }\n // no image, only draw fill and stroke\n defineRectShape(ctx, shape);\n fillRectShape(ctx, shape);\n strokeRectShape(ctx, shape);\n return [];\n};\n\nvar drawEllipse = async (ctx, shape, options = {}) => new Promise(async (resolve, reject) => {\n const { drawImage } = options;\n ctx.lineWidth = shape.strokeWidth || 1; // 1 is default value for lineWidth prop\n ctx.strokeStyle = shape.strokeColor ? colorArrayToRGBA(shape.strokeColor) : 'none';\n ctx.fillStyle = shape.backgroundColor ? colorArrayToRGBA(shape.backgroundColor) : 'none';\n ctx.globalAlpha = shape.opacity;\n ctx.ellipse(shape.x, shape.y, shape.rx, shape.ry, 0, 0, Math.PI * 2);\n shape.backgroundColor && ctx.fill();\n if (shape.backgroundImage) {\n let image;\n try {\n image = await getImage(shape.backgroundImage);\n }\n catch (err) {\n reject(err);\n }\n const bounds = rectCreate(shape.x - shape.rx, shape.y - shape.ry, shape.rx * 2, shape.ry * 2);\n const { srcRect, destRect } = getDrawImageParams(bounds, shape.backgroundSize, sizeCreateFromElement(image), shape.backgroundCorners, shape.backgroundPosition);\n // @ts-ignore\n await ctxDrawImage(ctx, image, srcRect, destRect, drawImage);\n shape.strokeWidth && ctx.stroke();\n resolve([]);\n }\n else {\n shape.strokeWidth && ctx.stroke();\n resolve([]);\n }\n});\n\nvar drawText = async (ctx, shape, options) => {\n // get text size\n const size = shape.width && shape.height\n ? sizeCreateFromAny(shape)\n : textToSize(shape.text, shape);\n const rect = {\n x: shape.x,\n y: shape.y,\n width: size.width,\n height: size.height,\n };\n drawRect(ctx, {\n ...shape,\n ...rect,\n options,\n });\n // skip if no text\n if (!shape.text.length)\n return [];\n // draw text effects first\n const { textOutlineWidth = 0, textShadowX = 0, textShadowY = 0, textShadowBlur = 0, textShadowColor, \n // remove outline and blur so don't interfere with text shape rendering\n outline, blur, \n // remaining styles for final text shape\n ...plaintTextShape } = shape;\n // if height set, clip to text box\n if (shape.height) {\n ctx.rect(rect.x - textOutlineWidth + Math.min(textShadowX, 0), rect.y - textOutlineWidth + Math.min(textShadowY, 0), rect.width +\n textOutlineWidth +\n textOutlineWidth +\n Math.abs(textShadowX) +\n textShadowBlur, rect.height + textOutlineWidth + Math.abs(textShadowY) + textShadowBlur);\n ctx.save();\n ctx.clip();\n }\n // draw shadow\n if (textShadowX || textShadowY || textShadowBlur) {\n ctx.save();\n // move translation based on text shadow\n ctx.translate(textShadowX, textShadowY);\n // draw base shadow\n await drawTextImage(ctx, rect, shape, {\n ...options,\n paddingLeft: TextPadding + textShadowBlur,\n paddingRight: TextPadding + textShadowBlur,\n paddingTop: textShadowBlur,\n paddingBottom: textShadowBlur,\n shapeExtendedProps: {\n color: textShadowColor,\n blur: textShadowBlur,\n },\n });\n ctx.restore();\n }\n // draw outline\n if (textOutlineWidth) {\n await drawTextImage(ctx, rect, shape, {\n ...options,\n paddingLeft: TextPadding + textOutlineWidth,\n paddingRight: TextPadding + textOutlineWidth,\n paddingTop: textOutlineWidth,\n paddingBottom: textOutlineWidth,\n shapeExtendedProps: {\n color: shape.textOutlineColor,\n outline: textOutlineWidth,\n },\n });\n }\n // restore text clipping\n if (shape.height) {\n ctx.restore();\n }\n // draw text\n await drawTextImage(ctx, rect, plaintTextShape, {\n ...options,\n paddingLeft: TextPadding,\n paddingRight: TextPadding,\n paddingTop: 0,\n paddingBottom: 0,\n });\n return [];\n};\nconst drawTextImage = async (ctx, rect, shape, options) => {\n const { willRequest, shapeExtendedProps, paddingLeft, paddingRight, paddingTop, paddingBottom, } = options;\n // maybe in future use same pixel ratio as device to better match preview text texture?\n const image = await textToImage(shape.text, {\n ...shape,\n ...shapeExtendedProps,\n ...rect,\n paddingLeft,\n paddingRight,\n paddingTop,\n paddingBottom,\n imageWidth: rect.width,\n imageHeight: rect.height,\n willRequest,\n });\n ctx.drawImage(image, shape.x - paddingLeft, shape.y - paddingTop, image.width, image.height);\n};\n\nvar drawLine = async (ctx, shape) => new Promise(async (resolve) => {\n ctx.lineWidth = shape.strokeWidth || 1; // 1 is default value for lineWidth prop\n ctx.strokeStyle = shape.strokeColor ? colorArrayToRGBA(shape.strokeColor) : 'none';\n ctx.globalAlpha = shape.opacity;\n let lineStartPosition = shapeLineGetStartPoint(shape);\n let lineEndPosition = shapeLineGetEndPoint(shape);\n // draw line\n ctx.moveTo(lineStartPosition.x, lineStartPosition.y);\n ctx.lineTo(lineEndPosition.x, lineEndPosition.y);\n shape.strokeWidth && ctx.stroke();\n // draw other shapes\n resolve([]);\n});\n\nvar drawPath = async (ctx, shape) => new Promise((resolve, reject) => {\n // let's draw a dot instead\n if (shape.bitmap && shape.points.length === 1) {\n drawEllipse(ctx, {\n x: shape.points[0].x,\n y: shape.points[0].y,\n rx: shape.strokeWidth * 0.5,\n ry: shape.strokeWidth * 0.5,\n backgroundColor: shape.strokeColor,\n }).then(() => resolve([]));\n return;\n }\n ctx.lineWidth = shape.strokeWidth || 1; // 1 is default value for lineWidth prop\n ctx.strokeStyle = shape.strokeColor ? colorArrayToRGBA(shape.strokeColor) : 'none';\n ctx.fillStyle = shape.backgroundColor ? colorArrayToRGBA(shape.backgroundColor) : 'none';\n ctx.globalAlpha = shape.opacity;\n // draw line\n const { points } = shape;\n ctx.lineCap = shape.strokeCap;\n ctx.lineJoin = shape.strokeJoin;\n ctx.setLineDash(shape.strokeDash || []);\n if (shape.pathClose)\n ctx.beginPath();\n ctx.moveTo(points[0].x, points[0].y);\n const l = points.length;\n for (let i = 1; i < l; i++) {\n ctx.lineTo(points[i].x, points[i].y);\n }\n if (shape.pathClose)\n ctx.closePath();\n shape.strokeWidth && ctx.stroke();\n shape.backgroundColor && ctx.fill();\n resolve([]);\n});\n\nvar ctxFlip = (ctx, flipX, flipY, pivot) => {\n if (!flipX && !flipY)\n return ctx;\n ctx.translate(pivot.x, pivot.y);\n ctx.scale(flipX ? -1 : 1, flipY ? -1 : 1);\n ctx.translate(-pivot.x, -pivot.y);\n return ctx;\n};\n\nconst drawShape = async (ctx, shape, options) => {\n // add or subtract\n ctx.globalCompositeOperation =\n shape.drawMode === 'subtract' ? 'destination-out' : 'source-over';\n // center, needed for transforms\n const center = shapeGetCenter(shape);\n // rotate context\n ctxRotate(ctx, shape.rotation, center);\n // flip context\n ctxFlip(ctx, shape.flipX, shape.flipY, center);\n let fn;\n if (shapeIsRect(shape)) {\n fn = drawRect;\n }\n else if (shapeIsEllipse(shape)) {\n fn = drawEllipse;\n }\n else if (shapeIsLine(shape)) {\n fn = drawLine;\n }\n else if (shapeIsPath(shape)) {\n fn = drawPath;\n }\n else if (shapeIsText(shape)) {\n fn = drawText;\n }\n if (fn) {\n const subShapes = await fn(ctx, shape, options);\n if (!subShapes.length)\n return [];\n const shapes = await drawShapes(ctx, subShapes, options);\n return [shape, ...shapes];\n }\n return [];\n};\n\nvar drawShapes = async (ctx, shapes, options) => {\n let drawnShapes = [];\n for (const shape of shapes) {\n ctx.save();\n // clears previous shape's path\n ctx.beginPath();\n // wait for shape to draw before drawing next shape\n drawnShapes = [...drawnShapes, ...(await drawShape(ctx, shape, options))];\n ctx.restore();\n }\n return drawnShapes;\n};\n\nvar drawImageData = async (imageData, options = {}) => {\n const { shapes = [], contextBounds = imageData, transform = noop$1, drawImage, willRequest, canvasMemoryLimit, computeShape = passthrough, preprocessShape = passthrough, } = options;\n // no shapes to draw\n if (!shapes.length)\n return imageData;\n // create drawing context\n const canvas = h('canvas');\n canvas.width = contextBounds.width;\n canvas.height = contextBounds.height;\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n ctx.putImageData(imageData, contextBounds.x || 0, contextBounds.y || 0);\n // compute the position of all shapes\n const computedShapes = shapes.map(shapeDeepCopy).map(computeShape).map(preprocessShape).flat();\n // compute transforms for context\n transform(ctx);\n // draw shapes to canvas\n await drawShapes(ctx, computedShapes, {\n drawImage,\n canvasMemoryLimit,\n willRequest,\n });\n const imageDataOut = ctx.getImageData(0, 0, canvas.width, canvas.height);\n releaseCanvas(canvas);\n return imageDataOut;\n};\n\nvar fillImageData = async (imageData, options = {}) => {\n const { backgroundColor, backgroundImage } = options;\n const hasBackgroundColor = !(!backgroundColor || (backgroundColor && backgroundColor[3] === 0));\n // no background set\n if (!backgroundImage && !hasBackgroundColor)\n return imageData;\n // canvas to fill\n const image = h('canvas');\n image.width = imageData.width;\n image.height = imageData.height;\n const ctx = image.getContext('2d', { willReadFrequently: true });\n ctx.putImageData(imageData, 0, 0);\n // fill behind image\n ctx.globalCompositeOperation = 'destination-over';\n if (hasBackgroundColor) {\n ctx.fillStyle = colorArrayToRGBA(backgroundColor);\n ctx.fillRect(0, 0, image.width, image.height);\n }\n if (backgroundImage) {\n let image;\n if (isCanvas(backgroundImage)) {\n image = backgroundImage;\n }\n else {\n image = await getImage(backgroundImage);\n }\n const { srcRect, destRect } = getDrawImageParams({\n x: 0,\n y: 0,\n width: imageData.width,\n height: imageData.height,\n }, 'cover', {\n width: image.width,\n height: image.height,\n });\n ctx.drawImage(image, srcRect.x, srcRect.y, srcRect.width, srcRect.height, destRect.x, destRect.y, destRect.width, destRect.height);\n }\n const imageDataOut = ctx.getImageData(0, 0, image.width, image.height);\n releaseCanvas(image);\n return imageDataOut;\n};\n\nvar dotColorMatrix = (a, b) => {\n const res = new Array(20);\n // R\n res[0] = a[0] * b[0] + a[1] * b[5] + a[2] * b[10] + a[3] * b[15];\n res[1] = a[0] * b[1] + a[1] * b[6] + a[2] * b[11] + a[3] * b[16];\n res[2] = a[0] * b[2] + a[1] * b[7] + a[2] * b[12] + a[3] * b[17];\n res[3] = a[0] * b[3] + a[1] * b[8] + a[2] * b[13] + a[3] * b[18];\n res[4] = a[0] * b[4] + a[1] * b[9] + a[2] * b[14] + a[3] * b[19] + a[4];\n // G\n res[5] = a[5] * b[0] + a[6] * b[5] + a[7] * b[10] + a[8] * b[15];\n res[6] = a[5] * b[1] + a[6] * b[6] + a[7] * b[11] + a[8] * b[16];\n res[7] = a[5] * b[2] + a[6] * b[7] + a[7] * b[12] + a[8] * b[17];\n res[8] = a[5] * b[3] + a[6] * b[8] + a[7] * b[13] + a[8] * b[18];\n res[9] = a[5] * b[4] + a[6] * b[9] + a[7] * b[14] + a[8] * b[19] + a[9];\n // B\n res[10] = a[10] * b[0] + a[11] * b[5] + a[12] * b[10] + a[13] * b[15];\n res[11] = a[10] * b[1] + a[11] * b[6] + a[12] * b[11] + a[13] * b[16];\n res[12] = a[10] * b[2] + a[11] * b[7] + a[12] * b[12] + a[13] * b[17];\n res[13] = a[10] * b[3] + a[11] * b[8] + a[12] * b[13] + a[13] * b[18];\n res[14] = a[10] * b[4] + a[11] * b[9] + a[12] * b[14] + a[13] * b[19] + a[14];\n // A\n res[15] = a[15] * b[0] + a[16] * b[5] + a[17] * b[10] + a[18] * b[15];\n res[16] = a[15] * b[1] + a[16] * b[6] + a[17] * b[11] + a[18] * b[16];\n res[17] = a[15] * b[2] + a[16] * b[7] + a[17] * b[12] + a[18] * b[17];\n res[18] = a[15] * b[3] + a[16] * b[8] + a[17] * b[13] + a[18] * b[18];\n res[19] = a[15] * b[4] + a[16] * b[9] + a[17] * b[14] + a[18] * b[19] + a[19];\n return res;\n};\n\nvar getColorMatrixFromColorMatrices = (colorMatrices) => colorMatrices.length\n ? colorMatrices.reduce((previous, current) => dotColorMatrix([...previous], current), colorMatrices.shift())\n : [];\n\nvar roundFraction = (value, fr = 2) => Math.round(value * fr) / fr;\n\nvar getImageRedactionScaleFactor = (imageSize, redactionShapes) => {\n const imageRes = imageSize.width * imageSize.height;\n const maxShapeSize = redactionShapes.reduce((max, shape) => {\n if (shape.width > max.width && shape.height > max.height) {\n max.width = shape.width;\n max.height = shape.height;\n }\n return max;\n }, { width: 0, height: 0 });\n const maxShapeRes = maxShapeSize.width * maxShapeSize.height;\n const fraction = Math.max(0.5, 0.5 + (1 - maxShapeRes / imageRes) / 2);\n return roundFraction(fraction, 5);\n};\n\nfunction noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[key]);\n });\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n else\n this.e = element(target.nodeName);\n this.t = target;\n this.c(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction construct_svelte_component(component, props) {\n return new component(props);\n}\n\n// we need to store the information for multiple documents because a Svelte application could also contain iframes\n// https://github.com/sveltejs/svelte/issues/3624\nconst managed_styles = new Map();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_style_information(doc, node) {\n const info = { stylesheet: append_empty_stylesheet(node), rules: {} };\n managed_styles.set(doc, info);\n return info;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = get_root_for_style(node);\n const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);\n if (!rules[name]) {\n rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n managed_styles.forEach(info => {\n const { ownerNode } = info.stylesheet;\n // there is no ownerNode if it runs on jsdom.\n if (ownerNode)\n detach(ownerNode);\n });\n managed_styles.clear();\n });\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\n/**\n * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.\n * It must be called during the component's initialisation (but doesn't need to live *inside* the component;\n * it can be called from an external module).\n *\n * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).\n *\n * https://svelte.dev/docs#run-time-svelte-onmount\n */\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\n/**\n * Schedules a callback to run immediately after the component has been updated.\n *\n * The first time the callback runs will be after the initial `onMount`\n */\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\n/**\n * Schedules a callback to run immediately before the component is unmounted.\n *\n * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the\n * only one that runs inside a server-side component.\n *\n * https://svelte.dev/docs#run-time-svelte-ondestroy\n */\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\n/**\n * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).\n * Event dispatchers are functions that can take two arguments: `name` and `detail`.\n *\n * Component events created with `createEventDispatcher` create a\n * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).\n * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).\n * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)\n * property and can contain any type of data.\n *\n * https://svelte.dev/docs#run-time-svelte-createeventdispatcher\n */\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail, { cancelable = false } = {}) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail, { cancelable });\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n return !event.defaultPrevented;\n }\n return true;\n };\n}\n/**\n * Associates an arbitrary `context` object with the current component and the specified `key`\n * and returns that object. The context is then available to children of the component\n * (including slotted content) with `getContext`.\n *\n * Like lifecycle functions, this must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-setcontext\n */\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n return context;\n}\n/**\n * Retrieves the context that belongs to the closest parent component with the specified `key`.\n * Must be called during component initialisation.\n *\n * https://svelte.dev/docs#run-time-svelte-getcontext\n */\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n/**\n * Retrieves the whole context map that belongs to the closest parent component.\n * Must be called during component initialisation. Useful, for example, if you\n * programmatically create a component and want to pass the existing context to it.\n *\n * https://svelte.dev/docs#run-time-svelte-getallcontexts\n */\nfunction getAllContexts() {\n return get_current_component().$$.context;\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick$1() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\n// flush() calls callbacks in this order:\n// 1. All beforeUpdate callbacks, in order: parents before children\n// 2. All bind:this callbacks, in reverse order: children before parents.\n// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT\n// for afterUpdates called during the initial onMount, which are called in\n// reverse order: children before parents.\n// Since callbacks might update component values, which could trigger another\n// call to flush(), the following steps guard against this:\n// 1. During beforeUpdate, any updated components will be added to the\n// dirty_components array and will cause a reentrant call to flush(). Because\n// the flush index is kept outside the function, the reentrant call will pick\n// up where the earlier call left off and go through all dirty components. The\n// current_component value is saved and restored so that the reentrant call will\n// not interfere with the \"parent\" flush() call.\n// 2. bind:this callbacks cannot trigger new flush() calls.\n// 3. During afterUpdate, any updated components will NOT have their afterUpdate\n// callback called a second time; the seen_callbacks set, outside the flush()\n// function, guarantees this behavior.\nconst seen_callbacks = new Set();\nlet flushidx = 0; // Do *not* move this inside the flush() function\nfunction flush() {\n const saved_component = current_component;\n do {\n // first, call beforeUpdate functions\n // and update components\n while (flushidx < dirty_components.length) {\n const component = dirty_components[flushidx];\n flushidx++;\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n flushidx = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n seen_callbacks.clear();\n set_current_component(saved_component);\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n else if (callback) {\n callback();\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = (program.b - t);\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n // if the component was destroyed immediately\n // it will update the `$$.on_destroy` reference to `null`.\n // the destructured on_destroy may still reference to the old array\n if (component.$$.on_destroy) {\n component.$$.on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: [],\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false,\n root: options.target || parent_component.$$.root\n };\n append_styles && append_styles($$.root);\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n if (!is_function(callback)) {\n return noop;\n }\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = new Set();\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (const subscriber of subscribers) {\n subscriber[1]();\n subscriber_queue.push(subscriber, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.add(subscriber);\n if (subscribers.size === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n subscribers.delete(subscriber);\n if (subscribers.size === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nvar mergeObjects = (objects) => objects.reduce((prev, curr) => Object.assign(prev, curr), {});\n\n// @ts-ignore\nconst UPDATE_VALUE = (updateValue) => ({ updateValue });\nconst DEFAULT_VALUE = (defaultValue) => ({ defaultValue });\nconst CUSTOM_STORE = (fn) => ({ store: fn });\n// @ts-ignore (fixes error thrown in karma typescript)\nconst DERIVED_STORE = (fn) => ({ store: (defaultValue, stores) => derived(...fn(stores)) });\nconst UNIQUE_DERIVED_STORE = (fn) => ({\n store: (defaultValue, stores) => {\n const [selectedStores, update, isEqual = () => false] = fn(stores);\n let isFirst = true;\n let currentValue;\n return derived(selectedStores, (storeValues, set) => {\n update(storeValues, (value) => {\n if (!isFirst && isEqual(currentValue, value))\n return;\n currentValue = value;\n isFirst = false;\n set(value);\n });\n });\n },\n});\nconst MAP_STORE = (fn) => ({\n store: (defaultValue, stores) => {\n const [valueMapper, observedStores = {}, sorter = undefined] = fn(stores);\n let storedItems = [];\n const $observedStores = {};\n const mapValue = (item) => valueMapper(item, $observedStores);\n // set default properties for each item\n const setValue = (items) => {\n // was empty, still empty\n if (!storedItems.length && !items.length)\n return;\n // update value\n storedItems = items;\n updateValue();\n };\n const updateValue = () => {\n const mappedItems = storedItems.map(mapValue);\n if (sorter)\n mappedItems.sort(sorter);\n storedItems = [...mappedItems];\n set(mappedItems);\n };\n // TODO: need to at some point unsub from these stores\n Object.entries(observedStores).map(([name, store]) => {\n return store.subscribe((value) => {\n $observedStores[name] = value;\n if (!value)\n return;\n updateValue();\n });\n });\n const { subscribe, set } = writable(defaultValue || []);\n return {\n set: setValue,\n update: (fn) => setValue(fn(storedItems)),\n subscribe,\n };\n },\n});\nconst createStore$1 = (accessors, stores, options) => {\n const { store = (defaultValue) => writable(defaultValue), defaultValue = noop$1, // should be a function returning the default value\n updateValue = undefined, } = options;\n // create our private store\n const storeInstance = store(defaultValue(), stores, accessors);\n const { subscribe, update = noop$1 } = storeInstance; // update = noop because not all stores can be updated\n // on update private store\n let unsub;\n const onUpdate = (cb) => {\n let ignoreFirstCallback = true;\n if (unsub)\n unsub();\n unsub = subscribe((value) => {\n // need to ignore first callback because that returns current value\n if (ignoreFirstCallback)\n return (ignoreFirstCallback = false);\n // now we have the newly assigned value\n cb(value);\n unsub();\n unsub = undefined;\n });\n };\n // create the value updater function, needs access to stores so can read all store values\n const updateStoreValue = updateValue ? updateValue(accessors) : passthrough;\n // set and validate value\n storeInstance.set = (nextValue) => update((previousValue) => updateStoreValue(nextValue, previousValue, onUpdate));\n // set default value for external reference\n storeInstance.defaultValue = defaultValue;\n // expose store api\n return storeInstance;\n};\nvar createStores = (props) => {\n const stores = {};\n const accessors = {};\n props.forEach(([name, ...options]) => {\n const opts = mergeObjects(options);\n const store = (stores[name] = createStore$1(accessors, stores, opts));\n const property = {\n get: () => get_store_value(store),\n set: store.set,\n };\n Object.defineProperty(accessors, name, property);\n });\n return {\n stores,\n accessors,\n };\n};\n\n// custom source store so we only trigger update when src changes\nconst sourceStore = () => {\n // inner value\n let value;\n const { subscribe, set } = writable();\n const _set = (newValue) => {\n // is equal, bounce!\n if (value === newValue)\n return;\n value = newValue;\n set(value);\n };\n const _update = (fn) => _set(fn(value));\n return {\n set: _set,\n subscribe,\n update: _update,\n };\n};\nvar props = [\n // io\n ['src', CUSTOM_STORE(sourceStore)],\n ['imageReader'],\n ['imageWriter'],\n // will scramble image data for use with image redaction logic\n ['imageScrambler'],\n // should we render a smooth or pixelated redaction\n ['imageRedactionRendering', DEFAULT_VALUE(() => 'pixelated')],\n // current images\n ['images', DEFAULT_VALUE(() => [])],\n // will process markup items before rendering, used by arrows and frames\n ['shapePreprocessor'],\n // will be called when requesting a resource, return false to prevent loading, receives URL and XHR\n ['willRequestResource'] /* deprecated */,\n // will be called when requesting a resource, receives URL and requestType\n // return false to prevent loading\n // return object with options to update request\n // return undefined to continue as normal\n ['willRequest'],\n];\n\nvar capitalizeFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);\n\nvar defineMethods = (object, api) => {\n Object.keys(api).forEach((name) => {\n const descriptor = isFunction(api[name])\n ? {\n value: api[name],\n writable: false,\n }\n : api[name];\n Object.defineProperty(object, name, descriptor);\n });\n};\n\n// TODO: replace with pointInPoly from geom, this function works correctly with \"offsetRectToFitPolygon\" but doesn't always work correctly, the pointInPoly from geom does work correctly but causes offsetRectToFitPolygon to sometimes work incorrectly, needs to be cleaned up in the future\nconst pointInPoly = (point, vertices) => {\n let i;\n let a;\n let b;\n let aX;\n let aY;\n let bX;\n let bY;\n let edgeX;\n let edgeY;\n let d;\n const l = vertices.length;\n for (i = 0; i < l; i++) {\n // current vertex\n a = vertices[i];\n // next vertex\n b = vertices[i + 1 > l - 1 ? 0 : i + 1];\n // translate so that point is the origin of the calculation\n aX = a.x - point.x;\n aY = a.y - point.y;\n bX = b.x - point.x;\n bY = b.y - point.y;\n edgeX = aX - bX;\n edgeY = aY - bY;\n d = edgeX * aY - edgeY * aX;\n // 0 is ON the edge, but we check for -0.00001 to fix floating point errors\n if (d < -0.00001)\n return false;\n }\n return true;\n};\nconst scalar = 10000;\nvar offsetRectToFitPolygon = (rect, poly) => {\n const polyLines = quadLines(poly);\n const offset = vectorCreateEmpty();\n const rectVertexes = rectGetCorners(rect);\n // we can fit it\n rectVertexes.forEach((vertex) => {\n // we update each corner by adding the current offset\n vectorAdd(vertex, offset);\n // test if point lies in polygon, if so, all is fine and we can exit\n if (pointInPoly(vertex, poly))\n return;\n polyLines.forEach((line) => {\n // get angle of edge and draw a ray from the corner perpendicular to the edge\n const a = Math.atan2(line.start.y - line.end.y, line.start.x - line.end.x);\n const x = Math.sin(Math.PI - a) * scalar;\n const y = Math.cos(Math.PI - a) * scalar;\n const ray = vectorCreate(vertex.x + x, vertex.y + y);\n // extend the poly line so even if we overshoot the polygon we hit it\n const lineExtended = lineExtend(lineClone(line), scalar);\n // get the resulting intersection (there's always an intersection)\n const intersection = lineLineIntersection(lineCreate(vertex, ray), lineExtended);\n // no intersection, no need to do anything\n if (!intersection)\n return;\n // update offset to move towards image\n vectorAdd(offset, vectorSubtract(vectorClone(intersection), vertex));\n });\n });\n // test if any vertexes still fall outside of poly, if so, we can't fit the rect\n const rectOffset = rectClone$1(rect);\n vectorAdd(rectOffset, offset);\n const rectOffsetVertices = rectGetCorners(rectOffset);\n const fits = rectOffsetVertices.every((vertex) => pointInPoly(vertex, poly));\n if (fits) {\n rectUpdateWithRect(rect, rectOffset);\n return true;\n }\n return false;\n};\n\nvar limitCropRectToImage = (rect, poly) => {\n // get crop rect polygon vertexes\n const rectVertexes = rectGetCorners(rect);\n // if we end up here it doesn't fit, we might need to adjust\n const polyLines = quadToLines(poly, 5);\n const rectCenterPosition = rectCenter(rect);\n const intersections = [];\n rectVertexes.forEach((rectVertex) => {\n const ray = lineMultiply(lineCreate(vectorClone(rectCenterPosition), vectorClone(rectVertex)), 1000000);\n let intersectionFound = false;\n polyLines.map(lineClone).forEach((line) => {\n const intersection = lineLineIntersection(ray, line);\n if (!intersection || intersectionFound)\n return;\n intersections.push(intersection);\n intersectionFound = true;\n });\n });\n // top left -> bottom right\n const tlbr = vectorDistance(intersections[0], intersections[2]);\n // top right -> bottom left\n const trbl = vectorDistance(intersections[1], intersections[3]);\n // calculate smallest rectangle we can make, use that\n const rectLimitedVertices = tlbr < trbl ? [intersections[0], intersections[2]] : [intersections[1], intersections[3]];\n const rectLimitedToPolygon = rectCreateFromPoints(rectLimitedVertices);\n // only use our fitted crop rectangle if it's smaller than our current rectangle,\n // this would mean that our current rectangle couldn't be moved to make it fit\n if (rectLimitedToPolygon.width < rect.width) {\n // need to center on previous rect\n rectUpdateWithRect(rect, rectLimitedToPolygon);\n return true;\n }\n return false;\n};\n\nvar getImagePolygon = (image, imageRotation, imagePerspective = { x: 0, y: 0 }) => {\n const imageRect = rectCreateFromSize(image);\n const imageCenter = rectCenter(imageRect);\n const imagePoly = rectApplyPerspective(imageRect, imagePerspective, imageCenter).map((imageVertex) => vectorRotate(imageVertex, imageRotation, imageCenter));\n // get image poly bounds, we need this to offset the poly vertices from 0,0\n const imagePolyBounds = rectCreateFromPoints(imagePoly);\n // get image polygon vertexes\n return imagePoly.map((imageVertex) => vectorSubtract(imageVertex, imagePolyBounds));\n};\n\nvar getMaxSizeInRect = (size, rotation = 0, aspectRatio = rectAspectRatio(size)) => {\n let width;\n let height;\n if (rotation !== 0) {\n const innerAngle = Math.atan2(1, aspectRatio);\n const rotationSigned = Math.sign(rotation) * rotation;\n const rotationSignedMod = rotationSigned % Math.PI;\n const rotationSignedModHalf = rotationSigned % HALF_PI;\n // determine if is turned on side\n let r;\n if (rotationSignedMod > QUART_PI && rotationSignedMod < HALF_PI + QUART_PI) {\n r = rotationSignedModHalf > QUART_PI ? rotationSigned : HALF_PI - rotationSignedModHalf;\n }\n else {\n r = rotationSignedModHalf > QUART_PI ? HALF_PI - rotationSignedModHalf : rotationSigned;\n }\n const hyp = Math.min(Math.abs(size.height / Math.sin(innerAngle + r)), Math.abs(size.width / Math.cos(innerAngle - r)));\n width = Math.cos(innerAngle) * hyp;\n height = width / aspectRatio;\n }\n else {\n width = size.width;\n height = width / aspectRatio;\n if (height > size.height) {\n height = size.height;\n width = height * aspectRatio;\n }\n }\n return sizeCreate(width, height);\n};\n\nvar limitRectToImage = (rect, imageSize, imageRotation = 0, imagePerspective = vectorCreateEmpty(), minSize) => {\n // rotation and/or perspective, let's use the \"advanced\" collision detection method\n if ((isNumber(imageRotation) && imageRotation !== 0) ||\n imagePerspective.x ||\n imagePerspective.y) {\n const inputAspectRatio = rectAspectRatio(rect);\n // test if crop can fit image, if it can, offset the crop so it fits\n const imagePolygon = getImagePolygon(imageSize, imageRotation, imagePerspective);\n const maxSizeInRect = getMaxSizeInRect(imageSize, imageRotation, inputAspectRatio);\n const canFit = rect.width < maxSizeInRect.width && rect.height < maxSizeInRect.height;\n if (!canFit) {\n const dx = rect.width * 0.5 - maxSizeInRect.width * 0.5;\n const dy = rect.height * 0.5 - maxSizeInRect.height * 0.5;\n // adjust crop rect to max size\n if (rect.width > maxSizeInRect.width) {\n rect.width = maxSizeInRect.width;\n rect.x += dx;\n }\n if (rect.height > maxSizeInRect.height) {\n rect.height = maxSizeInRect.height;\n rect.y += dy;\n }\n // test if has exceeded min size, if so we need to limit the size and recalculate the other edge\n /*\n -\\\n / ---\\\n h2 ---\\\n / ---\\\n +--------w---------+\\\n /| | ---\\\n / | | ---\\\n / | | ---\\\n / | | --\n h1 | | /\n / | | /\n / | | /\n -\\ | | /\n ---\\ | | /\n --+------------------+ /\n ---\\ /\n --\\ /\n ---\\ /\n ---\\ /\n ---\\ /\n --\n */\n }\n offsetRectToFitPolygon(rect, imagePolygon);\n const wasLimited = limitCropRectToImage(rect, imagePolygon);\n // this makes sure that after limiting the size, the crop rect is moved to a position that is inside the image\n if (wasLimited)\n offsetRectToFitPolygon(rect, imagePolygon);\n }\n // no rotation, no perspective, use simple bounds method\n else {\n // remember intended aspect ratio so we can try and recreate it\n const intendedAspectRatio = rectAspectRatio(rect);\n // limit to image size first, can never exceed that\n rect.width = Math.min(rect.width, imageSize.width);\n rect.height = Math.min(rect.height, imageSize.height);\n // reposition rect so it's always inside image bounds\n rect.x = Math.max(rect.x, 0);\n if (rect.x + rect.width > imageSize.width) {\n rect.x -= rect.x + rect.width - imageSize.width;\n }\n rect.y = Math.max(rect.y, 0);\n if (rect.y + rect.height > imageSize.height) {\n rect.y -= rect.y + rect.height - imageSize.height;\n }\n // we get the center of the current rect so we can center the contained rect to it\n const intendedCenter = rectCenter(rect);\n // make sure still adheres to aspect ratio\n const containedRect = rectContainRect(rect, intendedAspectRatio);\n containedRect.width = Math.max(minSize.width, containedRect.width);\n containedRect.height = Math.max(minSize.height, containedRect.height);\n containedRect.x = intendedCenter.x - containedRect.width * 0.5;\n containedRect.y = intendedCenter.y - containedRect.height * 0.5;\n rectUpdateWithRect(rect, containedRect);\n }\n};\n\nvar applyCropRectAction = (cropRectPrevious, cropRectNext, imageSize, imageRotation, imagePerspective, cropLimitToImageBounds, cropMinSize, cropMaxSize) => {\n // clone\n const minSize = sizeClone(cropMinSize);\n // set upper bounds to crop max size\n const maxSize = sizeClone(cropMaxSize);\n // limit max size (more important that min size is respected so first limit max size)\n const maxScalar = fixPrecision(Math.max(cropRectNext.width / maxSize.width, cropRectNext.height / maxSize.height));\n const minScalar = fixPrecision(Math.min(cropRectNext.width / minSize.width, cropRectNext.height / minSize.height));\n // clone for resulting crop rect\n const cropRectOut = rectClone$1(cropRectNext);\n //\n // if exceeds min or max scale correct next crop rectangle to conform to bounds\n //\n if (minScalar < 1 || maxScalar > 1) {\n // center of both previous and next crop rects\n const previousCropRectCenter = rectCenter(cropRectPrevious);\n const nextCropRectCenter = rectCenter(cropRectNext);\n // calculate scales\n const scalar = minScalar < 1 ? minScalar : maxScalar;\n const cx = (nextCropRectCenter.x + previousCropRectCenter.x) / 2;\n const cy = (nextCropRectCenter.y + previousCropRectCenter.y) / 2;\n const cw = cropRectOut.width / scalar;\n const ch = cropRectOut.height / scalar;\n rectUpdate(cropRectOut, cx - cw * 0.5, cy - ch * 0.5, cw, ch);\n }\n // no need to limit to bounds, let's go!\n if (!cropLimitToImageBounds)\n return {\n crop: cropRectOut,\n };\n //\n // make sure the crop is made inside the bounds of the image\n //\n limitRectToImage(cropRectOut, imageSize, imageRotation, imagePerspective, minSize);\n return {\n crop: cropRectOut,\n };\n};\n\nvar getBaseCropRect = (imageSize, transformedCropRect, imageRotation) => {\n const imageRect = rectCreateFromSize(imageSize);\n const imageCenter = rectCenter(imageRect);\n const imageTransformedVertices = rectRotate(imageRect, imageRotation, imageCenter);\n // get the rotated image bounds center (offset isn't relevant as crop is relative to top left image position)\n const imageRotatedBoundsCenter = rectCenter(rectNormalizeOffset(rectCreateFromPoints(imageTransformedVertices)));\n // get the center of the crop inside the rotated image\n const cropCenterInTransformedImage = rectCenter(transformedCropRect);\n // invert the rotation of the crop center around the rotated image center\n const deRotatedCropCenter = vectorRotate(cropCenterInTransformedImage, -imageRotation, imageRotatedBoundsCenter);\n // calculate crop distance from rotated image center\n const cropFromCenterOfTransformedImage = vectorSubtract(deRotatedCropCenter, imageRotatedBoundsCenter);\n // calculate original crop offset (from untransformed image)\n const originalCropCenterOffset = vectorApply(vectorAdd(imageCenter, cropFromCenterOfTransformedImage), fixPrecision);\n return rectCreate(originalCropCenterOffset.x - transformedCropRect.width * 0.5, originalCropCenterOffset.y - transformedCropRect.height * 0.5, transformedCropRect.width, transformedCropRect.height);\n};\n\nvar clamp = (value, min, max) => Math.max(min, Math.min(value, max));\n\nvar applyRotationAction = (imageRotationPrevious, imageRotation, imageRotationRange, cropRect, imageSize, imagePerspective, cropLimitToImageBounds, cropRectOrigin, cropMinSize, cropMaxSize) => {\n // clone\n const minSize = sizeClone(cropMinSize);\n // set upper bounds to crop max size if image is bigger than max size,\n // else if should limit to image bounds use image size as limit\n const maxSize = sizeClone(cropMaxSize);\n if (cropLimitToImageBounds) {\n maxSize.width = Math.min(cropMaxSize.width, imageSize.width);\n maxSize.height = Math.min(cropMaxSize.height, imageSize.height);\n }\n let didAttemptDoubleTurn = false;\n const rotate = (rotationPrevious, rotation) => {\n // get the base crop rect (position of crop rect in untransformed image)\n // if we have the base crop rect we can apply the new rotation to it\n const cropRectBase = getBaseCropRect(imageSize, cropRect, rotationPrevious);\n // calculate transforms based on new rotation and base crop rect\n const imageRect = rectCreateFromSize(imageSize);\n const imageCenter = rectCenter(imageRect);\n const imageTransformedCorners = rectApplyPerspective(imageRect, imagePerspective, imageCenter);\n // need this to correct for perspective centroid displacement\n const perspectiveOffset = vectorSubtract(vectorClone(imageCenter), convexPolyCentroid(imageTransformedCorners));\n // rotate around center of image\n const cropCenter = vectorRotate(rectCenter(cropRectBase), rotation, imageCenter);\n const rotateCropOffset = vectorSubtract(vectorClone(imageCenter), cropCenter);\n // get center of image bounds and move to correct position\n imageTransformedCorners.forEach((imageVertex) => vectorRotate(imageVertex, rotation, imageCenter));\n const imageBoundsRect = rectCreateFromPoints(imageTransformedCorners);\n const imageCentroid = convexPolyCentroid(imageTransformedCorners);\n const cropOffset = vectorAdd(vectorSubtract(vectorSubtract(imageCentroid, rotateCropOffset), imageBoundsRect), perspectiveOffset);\n // create output cropRect\n const cropRectOut = rectCreate(cropOffset.x - cropRectBase.width * 0.5, cropOffset.y - cropRectBase.height * 0.5, cropRectBase.width, cropRectBase.height);\n // if has size target, scale croprect to target size\n if (cropRectOrigin) {\n rectScale$1(cropRectOut, cropRectOrigin.width / cropRectOut.width);\n }\n // if should limit to image bounds\n if (cropLimitToImageBounds) {\n const imagePoly = getImagePolygon(imageSize, rotation, imagePerspective);\n // offsetRectToFitPolygon(cropRectOut, imagePoly);\n // commenting this fixes poly sliding problem when adjusting rotation\n limitCropRectToImage(cropRectOut, imagePoly);\n }\n //#region if exceeds min or max adjust rotation to conform to bounds\n const minScalar = fixPrecision(Math.min(cropRectOut.width / minSize.width, cropRectOut.height / minSize.height), 8);\n const maxScalar = fixPrecision(Math.max(cropRectOut.width / maxSize.width, cropRectOut.height / maxSize.height), 8);\n if (minScalar < 1 || maxScalar > 1) {\n // determine if is full image turn\n const isTurn = fixPrecision(Math.abs(rotation - rotationPrevious)) === fixPrecision(Math.PI / 2);\n // try another turn if is turning image\n if (isTurn && !didAttemptDoubleTurn) {\n didAttemptDoubleTurn = true;\n return rotate(imageRotationPrevious, imageRotationPrevious + Math.sign(rotation - rotationPrevious) * Math.PI);\n }\n }\n //#endregion\n return {\n rotation,\n crop: rectApply(cropRectOut, (v) => fixPrecision(v, 8)),\n };\n };\n // amount of turns applied, we need this to correctly determine the allowed rotation range\n const imageTurns = Math.sign(imageRotation) * Math.round(Math.abs(imageRotation) / HALF_PI) * HALF_PI;\n const imageRotationClamped = clamp(imageRotation, imageTurns + imageRotationRange[0], imageTurns + imageRotationRange[1]);\n // set new crop position\n return rotate(imageRotationPrevious, imageRotationClamped);\n};\n\n// @ts-ignore\nconst ORDERED_STATE_PROPS = [\n // requirements\n 'cropLimitToImage',\n 'cropMinSize',\n 'cropMaxSize',\n 'cropAspectRatio',\n // selection -> flip -> rotate -> (perspective ->) crop\n 'flipX',\n 'flipY',\n 'rotation',\n 'crop',\n // effects\n 'colorMatrix',\n 'convolutionMatrix',\n 'gamma',\n 'vignette',\n // 'noise',\n // shapes\n 'manipulation',\n 'redaction',\n 'annotation',\n 'decoration',\n 'selection',\n 'frame',\n // other\n 'backgroundColor',\n 'backgroundImage',\n 'targetSize',\n 'metadata',\n // video\n 'trim',\n 'volume',\n 'minDuration',\n 'maxDuration',\n];\nconst clone = (value) => {\n if (isArray(value)) {\n return value.map(clone);\n }\n else if (isBlob(value) || isFile(value)) {\n return value;\n }\n else if (isObject(value)) {\n return { ...value };\n }\n return value;\n};\nconst filterShapeState = (shapes) => shapes.map((shape) => Object.entries(shape).reduce((copy, [key, value]) => {\n if (key.startsWith('_'))\n return copy;\n copy[key] = value;\n return copy;\n}, {}));\nvar stateStore = (_, stores, accessors) => {\n const observedStores = ORDERED_STATE_PROPS.map((key) => stores[key]);\n // used to wait with deriving state until new state is fully assigned\n let isAssigningState = false;\n const forceState = writable({});\n // can only subscribe, setting is done directly through store accessors\n // @ts-ignore (fixes error thrown in karma typescript)\n const { subscribe } = derived([...observedStores, forceState], (values, set) => {\n // is setting state\n if (isAssigningState)\n return;\n // create new state by looping over props in certain order\n const state = ORDERED_STATE_PROPS.reduce((prev, curr, i) => {\n prev[curr] = clone(values[i]);\n return prev;\n }, {});\n // round crop if defined\n state.crop && rectApply(state.crop, Math.round);\n // remove internal state props from decoration and annotation\n state.manipulation = state.manipulation && filterShapeState(state.manipulation);\n state.redaction = state.redaction && filterShapeState(state.redaction);\n state.annotation = state.annotation && filterShapeState(state.annotation);\n state.decoration = state.decoration && filterShapeState(state.decoration);\n state.selection = state.selection && filterShapeState(state.selection);\n // set new state\n set(state);\n });\n const setState = (state) => {\n // requires at least some state to be supplied\n if (!state)\n return;\n // now assigning state so don't derive state object untill done\n isAssigningState = true;\n // make sure crop origin is reset\n accessors.cropOrigin = undefined;\n // apply new values\n ORDERED_STATE_PROPS\n // remove keys that weren't set\n .filter((key) => hasProp(state, key))\n // apply each key in order\n .forEach((key) => {\n const value = state[key];\n accessors[key] = value === null ? undefined : clone(value);\n });\n // now refresh state\n isAssigningState = false;\n forceState.set({});\n };\n return {\n set: setState,\n update: (fn) => setState(fn(null)),\n subscribe,\n };\n};\n\nvar toNumericAspectRatio = (v) => {\n if (!v)\n return undefined;\n if (/:/.test(v)) {\n const [w, h] = v.split(':');\n return w / h;\n }\n return parseFloat(v);\n};\n\nconst simpleEqual = (a, b) => a === b;\nvar arrayEqual = (a, b, itemEqual = simpleEqual) => {\n // if length is different, it's always changed\n if (a.length !== b.length)\n return false;\n // need to test item equality\n for (let i = 0; i < a.length; i++) {\n if (!itemEqual(a[i], b[i]))\n return false;\n }\n return true;\n};\n\nvar padColorArray = (color = [0, 0, 0, 0], opacity = 1.0) => color.length === 4 ? color : [...color, opacity];\n\n//\n// helper methods\n//\nconst isCropCentered = (crop, imageSize, imageRotation) => {\n const cropCenter = vectorApply(rectCenter(crop), (v) => fixPrecision(v, 8));\n const imageRect = rectCreateFromSize(imageSize);\n const imageCenter = rectCenter(imageRect);\n const imageRotatedVertices = rectRotate(imageRect, imageRotation, imageCenter);\n const imageBoundsCenter = vectorApply(sizeCenter(rectCreateFromPoints(imageRotatedVertices)), (v) => fixPrecision(v, 8));\n const dx = Math.abs(imageBoundsCenter.x - cropCenter.x);\n const dy = Math.abs(imageBoundsCenter.y - cropCenter.y);\n return dx < 1 && dy < 1;\n};\nconst isCropMaxSize = (cropRect, imageSize, rotation) => {\n const maxSize = getMaxSizeInRect(imageSize, rotation, rectAspectRatio(cropRect));\n return sizeEqual(sizeApply(maxSize, Math.round), sizeApply(sizeClone(cropRect), Math.round));\n};\n//\n// updater methods\n//\nconst updateCropRect = (props) => (cropNext, cropPrevious = cropNext) => {\n // wait for image to load\n const { loadState, size, cropMinSize, cropMaxSize, cropLimitToImage, cropAspectRatio, rotation, perspective, } = props;\n // image hasn't loaded yet, use supplied crop rect\n if ((!cropNext && !cropPrevious) || !loadState || !loadState.beforeComplete)\n return cropNext;\n // crop previous set, crop next set to undefined, set crop to fit image\n if (!cropNext)\n cropNext = rectCreateFromSize(getMaxSizeInRect(size, rotation, cropAspectRatio || rectAspectRatio(size)));\n // apply the action\n const res = applyCropRectAction(cropPrevious, cropNext, size, rotation, perspective, cropLimitToImage, cropMinSize, cropMaxSize);\n const cropOut = rectApply(res.crop, (v) => fixPrecision(v, 8));\n if (rectEqual(cropPrevious, cropOut))\n return cropPrevious;\n return cropOut;\n};\nconst updateCropAspectRatio = (props) => (aspectRatioNext, aspectRatioPrevious) => {\n const { loadState, crop, size, rotation, cropLimitToImage } = props;\n const aspectRatio = toNumericAspectRatio(aspectRatioNext);\n // no aspect ratio means custom aspect ratio so set to undefined\n if (!aspectRatio)\n return undefined;\n // can't update crop if not defined yet\n if (!crop || !loadState || !loadState.beforeComplete)\n return aspectRatio;\n // calculate difference between aspect ratios, if big difference, re-align in image\n const aspectRatioDist = aspectRatioPrevious\n ? Math.abs(aspectRatioNext - aspectRatioPrevious)\n : 1;\n // if crop centered scale up\n if (isCropCentered(crop, size, rotation) && cropLimitToImage && aspectRatioDist >= 0.1) {\n const imageSize = sizeTurn(sizeClone(size), rotation);\n props.crop = rectApply(rectContainRect(rectCreateFromSize(imageSize), aspectRatioNext), fixPrecision);\n }\n else {\n const cropSize = {\n width: crop.height * aspectRatio,\n height: crop.height,\n };\n const tx = (crop.width - cropSize.width) * 0.5;\n const ty = (crop.height - cropSize.height) * 0.5;\n props.crop = rectApply(rectCreate(crop.x + tx, crop.y + ty, cropSize.width, cropSize.height), fixPrecision);\n }\n return aspectRatio;\n};\nconst updateCropLimitToImage = (props) => (limitToImageNext, limitToImagePrevious, onUpdate) => {\n // skip if no crop defined\n const { crop } = props;\n if (!crop)\n return limitToImageNext;\n // if was not limiting previously and now set limiting make sure crop fits bounds\n if (!limitToImagePrevious && limitToImageNext) {\n onUpdate(() => (props.crop = rectClone$1(props.crop)));\n }\n return limitToImageNext;\n};\nconst updateRotation = (props) => (rotationNext, rotationPrevious, onUpdate) => {\n // when image rotation is updated we need to adjust the\n // cropRect offset so rotation happens from cropRect center\n // no change\n if (rotationNext === rotationPrevious)\n return rotationNext;\n // get relevant data from store state\n const { loadState, size, rotationRange, cropMinSize, cropMaxSize, crop, perspective, cropLimitToImage, cropOrigin, } = props;\n // image not ready, exit!\n if (!crop || !loadState || !loadState.beforeComplete)\n return rotationNext;\n // remember if current crop was at max size and centered, if so, resulting crop should also be at max size\n const cropWasAtMaxSize = cropLimitToImage && isCropMaxSize(crop, size, rotationPrevious);\n const cropWasCentered = cropLimitToImage && isCropCentered(crop, size, rotationPrevious);\n // get new state\n const res = applyRotationAction(rotationPrevious, rotationNext, rotationRange, crop, size, perspective, cropLimitToImage, cropOrigin, cropMinSize, cropMaxSize);\n // if is centered, and initial crop was at max size expand crop to max size\n if (cropWasAtMaxSize && cropWasCentered) {\n const rect = getMaxSizeInRect(size, rotationNext, rectAspectRatio(res.crop));\n // move top left corner\n res.crop.x += res.crop.width * 0.5;\n res.crop.y += res.crop.height * 0.5;\n res.crop.x -= rect.width * 0.5;\n res.crop.y -= rect.height * 0.5;\n // update size to max size\n res.crop.width = rect.width;\n res.crop.height = rect.height;\n }\n // return validated rotation value, then, after we assign that value, we update the crop rect\n // we may only call onUpdate if a change was made\n onUpdate(() => {\n props.crop = rectApply(res.crop, (v) => fixPrecision(v, 8));\n });\n // return result rotation (might have been rotated twice to fit crop rectangle)\n return res.rotation;\n};\n// updates the range of valid rotation input\nconst updateRotationRange = (imageSize, imageIsRotatedSideways, cropMinSize, cropSize, cropLimitToImage) => {\n if (!cropLimitToImage)\n return [-Infinity, Infinity];\n /*\n - 'a' is angle between diagonal and image height\n - 'b' is angle between diagonal and crop height\n - 'c' is angle between diagonal and image width\n - resulting range is then a - b\n +----------/\\------------------------+\n | / \\ \\ |\n | / \\ \\ |\n | / \\ \\ |\n | \\ \\ \\ |\n | \\ \\ \\ |\n | \\ \\ \\ |\n | \\ \\ / |\n | \\ \\ / |\n | \\ \\ / |\n | \\\\a/b |\n +---------------------\\--------------+\n */\n const scalar = Math.max(cropMinSize.width / cropSize.width, cropMinSize.height / cropSize.height);\n const minSize = sizeCreate(cropSize.width * scalar, cropSize.height * scalar);\n // the hypotenus is the length of the diagonal of the min crop size\n const requiredSpace = sizeHypotenuse(minSize);\n // minimum space available in horizontal / vertical direction\n const availableSpace = Math.min(imageSize.width, imageSize.height);\n // if there's enough space available, we can return the max range\n if (requiredSpace < availableSpace)\n return [-Infinity, Infinity];\n // if the image is turned we need to swap the width and height\n const imageWidth = imageIsRotatedSideways ? imageSize.height : imageSize.width;\n const imageHeight = imageIsRotatedSideways ? imageSize.width : imageSize.height;\n // subtracting the angle between the hypotenuse and the crop itself\n const a = Math.acos(minSize.height / requiredSpace);\n const b = Math.acos(imageHeight / requiredSpace);\n const c = Math.asin(imageWidth / requiredSpace);\n const rangeHorizontal = a - b;\n const rangeVertical = c - a;\n // range is not a number, it means we can rotate as much as we want\n if (Number.isNaN(rangeHorizontal) && Number.isNaN(rangeVertical))\n return [-Infinity, Infinity];\n // get minimum range\n const range = Number.isNaN(rangeHorizontal)\n ? rangeVertical\n : Number.isNaN(rangeVertical)\n ? rangeHorizontal\n : Math.min(rangeHorizontal, rangeVertical);\n // if not, limit range to min and max rotation\n return [-range, range];\n};\n// updates the range of valid crop rectangle input\nconst updateCropRange = (imageSize, rotation, cropAspectRatio, cropMinSize, cropMaxSize, cropLimitToImage) => {\n // ! rotation doesn't affect min size, only max size\n // set lower bounds to crop min size\n const minSize = sizeClone(cropMinSize);\n // set upper bounds to crop max size\n const maxSize = sizeClone(cropMaxSize);\n // now we got basic bounds, let's see if we should limit to the image bounds, else we done\n if (!cropLimitToImage)\n return [minSize, maxSize];\n return [minSize, sizeApply(getMaxSizeInRect(imageSize, rotation, cropAspectRatio), Math.round)];\n};\nconst formatShape = (shape, options) => {\n const { context, props } = options;\n // only auto-format once\n if (!shape._isFormatted) {\n shape = shapeFormat(shape);\n shape._isFormatted = true;\n Object.assign(shape, props);\n }\n // we need to make sure shape is still correctly positioned relative to parent context\n // draft cannot be relative\n // if context changed\n // if has left top right or bottom\n if (!shape._isDraft &&\n shapeHasRelativeSize(shape) &&\n (!shape._context || !rectEqual(context, shape._context))) {\n shapeComputeRect(shape, context);\n shape._context = { ...context };\n }\n return shape;\n};\nconst formatSelectionShape = (shape, options) => {\n if (!shape._isFormatted) {\n shape.disableMove = true;\n shape.disableSelect = true;\n shape.disableResize = true;\n shape.disableRotate = true;\n }\n return formatShape(shape, options);\n};\nconst updateFrame = () => (frameShapeNext) => {\n if (!frameShapeNext)\n return;\n const shape = {\n frameStyle: undefined,\n x: 0,\n y: 0,\n width: '100%',\n height: '100%',\n disableStyle: ['backgroundColor', 'strokeColor', 'strokeWidth'],\n };\n if (isString(frameShapeNext)) {\n shape.frameStyle = frameShapeNext;\n }\n else {\n Object.assign(shape, frameShapeNext);\n }\n return shape;\n};\nvar ImageStorePropDescriptors = [\n // media info received from read\n ['file'],\n ['size'],\n // loading and processing state\n ['loadState'],\n ['processState'],\n // derived info\n [\n 'aspectRatio',\n DERIVED_STORE(({ size }) => [\n size,\n ($size) => ($size ? rectAspectRatio($size) : undefined),\n ]),\n ],\n // image modifications\n ['perspectiveX', DEFAULT_VALUE(() => 0)],\n ['perspectiveY', DEFAULT_VALUE(() => 0)],\n [\n 'perspective',\n DERIVED_STORE(({ perspectiveX, perspectiveY }) => [\n [perspectiveX, perspectiveY],\n ([x, y]) => ({ x, y }),\n ]),\n ],\n ['rotation', DEFAULT_VALUE(() => 0), UPDATE_VALUE(updateRotation)],\n ['flipX', DEFAULT_VALUE(() => false)],\n ['flipY', DEFAULT_VALUE(() => false)],\n ['flip', DERIVED_STORE(({ flipX, flipY }) => [[flipX, flipY], ([x, y]) => ({ x, y })])],\n [\n 'isRotatedSideways',\n UNIQUE_DERIVED_STORE(({ rotation }) => [\n [rotation],\n ([$rotation], set) => set(isRotatedSideways($rotation)),\n (prevValue, nextValue) => prevValue !== nextValue,\n ]),\n ],\n ['crop', UPDATE_VALUE(updateCropRect)],\n ['cropAspectRatio', UPDATE_VALUE(updateCropAspectRatio)],\n ['cropOrigin'],\n ['cropMinSize', DEFAULT_VALUE(() => ({ width: 1, height: 1 }))],\n ['cropMaxSize', DEFAULT_VALUE(() => ({ width: 32768, height: 32768 }))],\n ['cropLimitToImage', DEFAULT_VALUE(() => true), UPDATE_VALUE(updateCropLimitToImage)],\n [\n 'cropSize',\n UNIQUE_DERIVED_STORE(({ crop }) => [\n [crop],\n ([$crop], set) => {\n if (!$crop)\n return;\n set(sizeCreate($crop.width, $crop.height));\n },\n // if is same as previous size, don't trigger update (happens when updating only the crop offset)\n (prevValue, nextValue) => sizeEqual(prevValue, nextValue),\n ]),\n ],\n [\n 'cropRectAspectRatio',\n DERIVED_STORE(({ cropSize }) => [\n [cropSize],\n ([$cropSize], set) => {\n if (!$cropSize)\n return;\n set(fixPrecision(rectAspectRatio($cropSize), 5));\n },\n ]),\n ],\n [\n 'cropRange',\n UNIQUE_DERIVED_STORE(({ size, rotation, cropRectAspectRatio, cropMinSize, cropMaxSize, cropLimitToImage, }) => [\n [size, rotation, cropRectAspectRatio, cropMinSize, cropMaxSize, cropLimitToImage],\n ([$size, $rotation, $cropRectAspectRatio, $cropMinSize, $cropMaxSize, $cropLimitToImage,], set) => {\n // wait for image size\n if (!$size)\n return;\n const range = updateCropRange($size, $rotation, $cropRectAspectRatio, $cropMinSize, $cropMaxSize, $cropLimitToImage);\n set(range);\n },\n // if is same range as previous range, don't trigger update\n (prevRange, nextRange) => arrayEqual(prevRange, nextRange),\n ]),\n ],\n [\n 'rotationRange',\n UNIQUE_DERIVED_STORE(({ size, isRotatedSideways, cropMinSize, cropSize, cropLimitToImage }) => [\n [size, isRotatedSideways, cropMinSize, cropSize, cropLimitToImage],\n ([$size, $isRotatedSideways, $cropMinSize, $cropSize, $cropLimitToImage], set) => {\n // wait for image size\n if (!$size || !$cropSize)\n return;\n const range = updateRotationRange($size, $isRotatedSideways, $cropMinSize, $cropSize, $cropLimitToImage);\n set(range);\n },\n // if is same range as previous range, don't trigger update\n (prevRange, nextRange) => arrayEqual(prevRange, nextRange),\n ]),\n ],\n // canvas\n ['backgroundColor', UPDATE_VALUE(() => (color) => padColorArray(color))],\n ['backgroundImage'],\n // size\n ['targetSize'],\n // effects\n ['colorMatrix'],\n ['convolutionMatrix'],\n ['gamma'],\n ['noise'],\n ['vignette'],\n // video\n ['duration'],\n ['minDuration', DEFAULT_VALUE(() => 1 / 24)],\n ['maxDuration', DEFAULT_VALUE(() => Infinity)],\n ['trim'],\n ['volume', DEFAULT_VALUE(() => 1)],\n // redaction lives in image space\n ['redaction', MAP_STORE(({ size }) => [formatShape, { context: size }])],\n // modification lives in image space\n ['manipulation', MAP_STORE(({ size }) => [formatShape, { context: size }])],\n // annotation lives in image space\n ['annotation', MAP_STORE(({ size }) => [formatShape, { context: size }])],\n // decoration lives in crop space\n ['decoration', MAP_STORE(({ crop }) => [formatShape, { context: crop }])],\n // image selection\n ['selection', MAP_STORE(({ size }) => [formatSelectionShape, { context: size }])],\n // frame to render on top of the image (or outside)\n ['frame', UPDATE_VALUE(updateFrame)],\n // custom metadata\n ['metadata'],\n // state of image, used to restore a previous state or request the current state\n ['state', CUSTOM_STORE(stateStore)],\n];\n\nvar process = async (value, chainTasks, chainOptions = {}, processOptions) => {\n // options relevant to the process method itself\n const { ontaskstart, ontaskprogress, ontaskend, token } = processOptions;\n // has been cancelled\n let cancelled = false;\n // create token to pass to tasks\n const taskCancelToken = {\n cancel: noop$1,\n };\n // set cancel handler method\n token.cancel = () => {\n // cancel called from outside of the process method\n cancelled = true;\n // assign cancel method to task\n taskCancelToken.cancel();\n };\n // step through chain\n for (const [index, task] of chainTasks.entries()) {\n // exit when cancelled\n if (cancelled)\n return;\n // get the task function and the id so we can notify the callee of the task that is being started\n const [fn, id] = task;\n // start task\n ontaskstart(index, id);\n try {\n value = await fn(value, { ...chainOptions, taskCancelToken }, (event) => ontaskprogress(index, id, event));\n }\n catch (err) {\n // stop processing more items in the chain\n cancelled = true;\n // pass error back to parent\n throw err;\n }\n ontaskend(index, id);\n }\n return value;\n};\n\n// TODO: find better location for minSize / file load validation\nvar createImageCore = ({ minSize = { width: 1, height: 1 }, minDuration = 0 } = {}) => {\n // create default store\n const { stores, accessors } = createStores(ImageStorePropDescriptors);\n // pub/sub\n const { pub, sub } = pubsub();\n // processing handler\n const createProcessingHandler = (stateProp, eventKey) => {\n const getStore = () => accessors[stateProp] || {};\n const setStore = (obj) => {\n accessors[stateProp] = {\n ...getStore(),\n ...obj,\n timeStamp: Date.now(),\n };\n };\n const hasError = () => getStore().error;\n const handleError = (error) => {\n if (hasError())\n return;\n setStore({\n error: error,\n });\n pub(`${eventKey}error`, { ...getStore() });\n };\n return {\n start() {\n pub(`${eventKey}start`);\n },\n onabort() {\n setStore({\n abort: true,\n });\n pub(`${eventKey}abort`, { ...getStore() });\n },\n ontaskstart(index, id) {\n if (hasError())\n return;\n setStore({\n index,\n task: id,\n taskProgress: undefined,\n taskLengthComputable: undefined,\n });\n pub(`${eventKey}taskstart`, { ...getStore() });\n },\n ontaskprogress(index, id, event) {\n if (hasError())\n return;\n setStore({\n index,\n task: id,\n taskProgress: event.loaded / event.total,\n taskLengthComputable: event.lengthComputable,\n });\n pub(`${eventKey}taskprogress`, { ...getStore() });\n pub(`${eventKey}progress`, { ...getStore() });\n },\n ontaskend(index, id) {\n if (hasError())\n return;\n setStore({\n index,\n task: id,\n });\n pub(`${eventKey}taskend`, { ...getStore() });\n },\n ontaskerror(error) {\n handleError(error);\n },\n error(error) {\n handleError(error);\n },\n beforeComplete(data) {\n if (hasError())\n return;\n setStore({ beforeComplete: true });\n pub(`before${eventKey}`, data);\n },\n complete(data) {\n if (hasError())\n return;\n setStore({ complete: true });\n pub(eventKey, data);\n },\n };\n };\n //#region read image\n const read = (src, { reader }, readerOptions = {}) => {\n // exit if no reader supplied\n if (!reader)\n return;\n // reset file data to undefined as we're loading a new image\n Object.assign(accessors, {\n file: undefined,\n size: undefined,\n loadState: undefined,\n });\n // our cancel token so we can abort load if needed, cancel will be set by process\n let imageReadToken = { cancel: noop$1 };\n let imageReadCancelled = false;\n const imageReadHandler = createProcessingHandler('loadState', 'load');\n const processOptions = {\n token: imageReadToken,\n ...imageReadHandler,\n };\n const readerState = {\n src,\n size: undefined,\n dest: undefined,\n duration: undefined,\n };\n // wait a tick before starting image read so the read can be cancelled in loadstart\n Promise.resolve().then(async () => {\n try {\n imageReadHandler.start();\n if (imageReadCancelled)\n return imageReadHandler.onabort();\n const output = (await process(readerState, reader, readerOptions, processOptions));\n // was cancelled\n if (imageReadCancelled)\n return imageReadHandler.onabort();\n // get shortcuts for validation\n const { size, duration, dest } = output || {};\n // if we don't have a size\n if (!size || !size.width || !size.height)\n throw new EditorError('Image size missing', 'IMAGE_SIZE_MISSING', output);\n // if we have a duration and minDuration\n if (duration > 0 && duration < minDuration)\n throw new EditorError('Video too short', 'VIDEO_TOO_SHORT', {\n ...output,\n minDuration,\n });\n // size of image is too small\n if (size.width < minSize.width || size.height < minSize.height)\n throw new EditorError('Image too small', 'IMAGE_TOO_SMALL', {\n ...output,\n minWidth: minSize.width,\n minHeight: minSize.height,\n });\n // update internal data\n Object.assign(accessors, {\n file: dest,\n size,\n duration,\n });\n // before load complete\n imageReadHandler.beforeComplete(output);\n // done loading image\n imageReadHandler.complete(output);\n }\n catch (err) {\n imageReadHandler.error(err);\n }\n finally {\n imageReadToken = undefined;\n }\n });\n // call to abort load\n return () => {\n imageReadCancelled = true;\n imageReadToken && imageReadToken.cancel();\n imageReadHandler.onabort();\n };\n };\n //#endregion\n //#region write image\n const write = (writer, options) => {\n // not ready to start processing\n if (!accessors.loadState.complete)\n return;\n // reset process state to undefined\n accessors.processState = undefined;\n const imageWriteHandler = createProcessingHandler('processState', 'process');\n const writerState = {\n src: accessors.file,\n imageState: accessors.state,\n dest: undefined,\n };\n // writer is function, let's get the actual writer\n if (isFunction(writer)) {\n writer = writer(accessors.file, accessors.state);\n }\n // willProcessImageState\n if (!writer) {\n imageWriteHandler.start();\n imageWriteHandler.complete(writerState);\n return;\n }\n // we need this token to be a blet to cancel the processing operation\n let imageWriteToken = { cancel: noop$1 };\n let imageWriteCancelled = false;\n const writerOptions = options;\n const processOptions = {\n token: imageWriteToken,\n ...imageWriteHandler,\n };\n // wait a tick before starting image write so the write can be cancelled in processtart\n Promise.resolve().then(async () => {\n try {\n imageWriteHandler.start();\n // could be cancelled before processing started\n if (imageWriteCancelled)\n return imageWriteHandler.onabort();\n const output = (await process(writerState, writer, writerOptions, processOptions));\n // cancelled during processing\n if (imageWriteCancelled)\n return imageWriteHandler.onabort();\n imageWriteHandler.complete(output);\n }\n catch (err) {\n imageWriteHandler.error(err);\n }\n finally {\n imageWriteToken = undefined;\n }\n });\n // call to abort processing\n return () => {\n imageWriteCancelled = true;\n imageWriteToken && imageWriteToken.cancel();\n };\n };\n //#endregion\n //#region api\n defineMethods(accessors, {\n read,\n write,\n on: sub,\n });\n //#endregion\n // expose store API\n return {\n accessors,\n stores,\n };\n};\n\n// @ts-ignore\nconst editorEventsToBubble = [\n 'loadstart',\n 'loadabort',\n 'loaderror',\n 'loadprogress',\n 'load',\n 'processstart',\n 'processabort',\n 'processerror',\n 'processprogress',\n 'process',\n];\nconst imagePrivateProps = [\n 'flip',\n 'cropOrigin',\n 'isRotatedSideways',\n 'perspective',\n 'perspectiveX',\n 'perspectiveY',\n 'cropRange',\n];\nconst editorPrivateProps = ['images'];\nconst imagePublicProps = ImageStorePropDescriptors\n .map(([prop]) => prop)\n .filter((prop) => !imagePrivateProps.includes(prop));\nconst getImagePropGroupedName = (prop) => `image${capitalizeFirstLetter(prop)}`;\nconst getEditorProps$1 = () => {\n const imageProperties = imagePublicProps.map(getImagePropGroupedName);\n const editorProperties = props\n .map(([prop]) => prop)\n .filter((prop) => !editorPrivateProps.includes(prop));\n return imageProperties.concat(editorProperties);\n};\nconst isImageSource = (src) => isString(src) || isBinary(src) || isElement(src);\nconst isImageState = (obj) => hasProp(obj, 'crop');\nvar createImageEditor = () => {\n // create default stores\n const { stores, accessors } = createStores(props);\n // set up pub/sub for the app layer\n const { sub, pub } = pubsub();\n const bubble = (name) => (value) => pub(name, value);\n // helper method\n const getImageObjSafe = () => (accessors.images ? accessors.images[0] : {});\n // initialImageProps is the list of transforms to apply when the image loads\n let initialImageProps = {};\n const initialImagePropsBackup = {};\n // create shortcuts to image props : `crop` -> `imageCrop`\n imagePublicProps.forEach((prop) => {\n Object.defineProperty(accessors, getImagePropGroupedName(prop), {\n get: () => {\n // no image, can't get\n const image = getImageObjSafe();\n if (!image)\n return;\n // return from image state\n return image.accessors[prop];\n },\n set: (value) => {\n // always use as initial prop when loading a new image without reset\n initialImageProps[getImagePropGroupedName(prop)] = value;\n // set to props backup so we can read it later when loading a new image\n initialImagePropsBackup[getImagePropGroupedName(prop)] = value;\n // no image, we can't update\n const image = getImageObjSafe();\n if (!image)\n return;\n // update the image immidiately\n image.accessors[prop] = value;\n },\n });\n });\n // internal helper method to get active image\n const getImage = () => accessors.images && accessors.images[0];\n // handling loading an image if a src is set\n const unsubSrc = stores.src.subscribe((src) => {\n // no image set, means clear active image\n if (!src)\n return (accessors.images = []);\n // exit here if we don't have an imageReader we'll wait for an imageReader to be defined\n if (!accessors.imageReader)\n return;\n // reset initial image props if an image is already loaded, so props applied to previous image aren't applied to the new one\n if (accessors.images.length)\n initialImageProps = {};\n // load image in src prop\n loadSrc(src);\n });\n const unsubReader = stores.imageReader.subscribe((reader) => {\n // can't do anything without an image reader\n if (!reader)\n return;\n // an image has already been loaded no need to load images that were set earlier\n if (accessors.images.length)\n return;\n // no image to load, we'll wait for images to be set to the `src` prop\n if (!accessors.src)\n return;\n // src is waiting to be loaded so let's pick it up,\n loadSrc(accessors.src);\n });\n const loadSrc = (src) => {\n // push it back a tick so we know initialImageProps are set\n Promise.resolve()\n .then(() => {\n // load with initial props\n return loadImage(src, initialImageProps);\n })\n .catch(() => {\n // fail silently, any errors are handled with 'loaderror' event\n });\n };\n //#endregion\n //#region public method (note that these are also called from UI, name of method is name of dispatched event in UI)\n const applyImageOptionsOrState = (image, options) => {\n // test if options is image state, if so, apply and exit\n if (isImageState(options)) {\n accessors.imageState = options;\n return;\n }\n // create an initial crop rect if no crop supplied\n if (!options.imageCrop) {\n const imageSize = image.accessors.size;\n const imageRotation = options.imageRotation || 0;\n const imageRotatedSize = sizeRotate(sizeClone(imageSize), imageRotation);\n const cropRect = rectCreateFromSize(imageRotatedSize);\n // prevent negative width/height\n cropRect.width = fixPrecision(Math.abs(cropRect.width), 6);\n cropRect.height = fixPrecision(Math.abs(cropRect.height), 6);\n const aspectRatio = options.imageCropAspectRatio ||\n (options.imageCropLimitToImage\n ? rectAspectRatio(imageSize) // use image size if should limit to image\n : rectAspectRatio(cropRect)); // use rotated crop rect bounds if no limit\n let crop;\n if (options.imageCropLimitToImage) {\n crop = rectContainRect(cropRect, aspectRatio);\n }\n else {\n crop = rectCoverRect(cropRect, aspectRatio);\n // center the image in the crop rectangle\n crop.x = (imageSize.width - crop.width) / 2;\n crop.y = (imageSize.height - crop.height) / 2;\n }\n options.imageCrop = crop;\n }\n // trim not set, let's make sure we respect max duration\n if (image.accessors.duration && !options.imageTrim && options.imageMaxDuration) {\n const { duration } = image.accessors;\n // if duration is longer than max duration we need to set a trim\n options.imageTrim = [[0, Math.min(options.imageMaxDuration / duration, 1)]];\n }\n // we need to apply these props in the correct order\n const propKeys = [\n 'imageCropLimitToImage',\n 'imageCrop',\n 'imageCropAspectRatio',\n 'imageRotation',\n ];\n propKeys\n .filter((prop) => hasProp(options, prop))\n .forEach((prop) => {\n // assign to `image`\n accessors[prop] = options[prop];\n // remove from normalizedOptions so it's not set twice\n delete options[prop];\n });\n // don't set the above options for a second time\n const filteredOptions = Object.keys(options)\n .filter((key) => !propKeys.includes(key))\n .reduce((filtered, prop) => {\n filtered[prop] = options[prop];\n return filtered;\n }, {});\n // trigger setState\n Object.assign(accessors, filteredOptions);\n };\n // load image, resolve when image is loaded\n let imageLoadAbort;\n const loadImage = (src, options = {}) => new Promise((resolve, reject) => {\n // get current image\n let image = getImage();\n // determine min defined image size (is crop min size)\n const cropLimitedToImage = !(options.cropLimitToImage === false ||\n options.imageCropLimitToImage === false ||\n initialImagePropsBackup.imageCropLmitedToImage === false);\n const cropMinSize = options.cropMinSize ||\n options.imageCropMinSize ||\n initialImagePropsBackup.imageCropMinSize;\n const minImageSize = cropLimitedToImage\n ? cropMinSize\n : image && image.accessors.cropMinSize;\n const minVideoDuration = options.minDuration || options.imageMinDuration;\n // if already has image, remove existing image\n if (image)\n removeImage();\n // access image props and stores\n image = createImageCore({ minSize: minImageSize, minDuration: minVideoDuration });\n editorEventsToBubble.map((event) => image.accessors.on(event, bubble(event)));\n // done, clean up listeners\n const fin = () => {\n // reset initial props (as now applied)\n initialImageProps = {};\n unsubs.forEach((unsub) => unsub());\n };\n const unsubs = [];\n unsubs.push(image.accessors.on('loaderror', (error) => {\n fin();\n reject(error);\n }));\n unsubs.push(image.accessors.on('loadabort', () => {\n fin();\n reject({ name: 'AbortError' });\n }));\n unsubs.push(image.accessors.on('load', (output) => {\n imageLoadAbort = undefined;\n fin();\n resolve(output);\n }));\n unsubs.push(image.accessors.on('beforeload', () => applyImageOptionsOrState(image, options)));\n // set new image\n accessors.images = [image];\n // assign passed options to editor accessors, we ignore 'src'\n if (options.imageReader)\n accessors.imageReader = options.imageReader;\n if (options.imageWriter)\n accessors.imageWriter = options.imageWriter;\n // start reading image\n imageLoadAbort = image.accessors.read(src, {\n reader: accessors.imageReader,\n }, {\n willRequest: accessors.willRequest,\n });\n });\n // start processing a loaded image, resolve when image is processed\n let imageProcessAbort;\n const processImage = (src, options) => new Promise((resolve, reject) => {\n try {\n const unsubs = [];\n // done, clean up listeners\n const fin = () => {\n imageProcessAbort = undefined;\n unsubs.forEach((unsub) => unsub());\n };\n (async () => {\n // if src supplied, first load src, then process\n if (isImageSource(src)) {\n try {\n await loadImage(src, options);\n }\n catch (err) {\n reject(err);\n }\n }\n // if first argument is not `src` but is set it's an options object, so we'll update the options before generating the image\n else if (src) {\n if (isImageState(src)) {\n accessors.imageState = src;\n }\n else {\n Object.assign(accessors, src);\n }\n }\n // get current active image\n const image = getImage();\n // needs image for processing\n if (!image)\n return reject('no image');\n unsubs.push(image.accessors.on('processerror', (error) => {\n fin();\n reject(error);\n }));\n unsubs.push(image.accessors.on('processabort', () => {\n fin();\n reject({ name: 'AbortError' });\n }));\n unsubs.push(image.accessors.on('process', (output) => {\n fin();\n resolve(output);\n }));\n imageProcessAbort = image.accessors.write(accessors.imageWriter, {\n redactionRenderStyle: accessors.imageRedactionRendering,\n shapePreprocessor: accessors.shapePreprocessor || passthrough,\n imageScrambler: accessors.imageScrambler,\n willRequest: accessors.willRequest,\n willRequestResource: accessors.willRequestResource, // deprecated\n });\n })();\n }\n catch (err) {\n reject(err);\n }\n });\n const abortProcessImage = () => {\n const image = getImage();\n if (!image)\n return;\n if (imageProcessAbort)\n imageProcessAbort();\n image.accessors.processState = undefined;\n };\n // used internally (triggered by 'x' button when error loading image in UI)\n const abortLoadImage = () => {\n if (imageLoadAbort)\n imageLoadAbort();\n accessors.images = [];\n };\n // edit image, loads an image and resolve when image is processed\n const editImage = (src, options) => new Promise((resolve, reject) => {\n loadImage(src, options)\n .then(() => {\n // access image props and stores\n const { images } = accessors;\n const image = images[0];\n // done, clean up listeners\n const done = () => {\n unsubReject();\n unsubResolve();\n };\n const unsubReject = image.accessors.on('processerror', (error) => {\n done();\n reject(error);\n });\n const unsubResolve = image.accessors.on('process', (output) => {\n done();\n resolve(output);\n });\n })\n .catch(reject);\n });\n const removeImage = () => {\n // no images, nothing to remove\n const image = getImage();\n if (!image)\n return;\n // try to abort image load\n if (imageLoadAbort)\n imageLoadAbort();\n image.accessors.loadState = undefined;\n // clear images\n accessors.images = [];\n };\n //#endregion\n Object.defineProperty(accessors, 'stores', {\n get: () => stores,\n });\n //#region API\n defineMethods(accessors, {\n on: sub,\n loadImage,\n abortLoadImage,\n editImage,\n removeImage,\n processImage,\n abortProcessImage,\n destroy: () => {\n unsubSrc && unsubSrc();\n unsubReader && unsubReader();\n },\n });\n return accessors;\n //#endregion\n};\n\nconst processImage = (src, options) => {\n const { processImage } = createImageEditor();\n return processImage(src, options);\n};\n\nvar getCanvasMemoryLimit = () => {\n if (!isSafari())\n return Infinity;\n if (isIOS()) {\n // limit resolution a little bit further to prevent drawing issues on iOS Safari 15 and 16\n if (/15_|16_/.test(navigator.userAgent))\n return 3840 * 3840;\n // old iOS can deal with 4096 * 4096 without issues\n return 4096 * 4096;\n }\n // limit resolution a little bit further to prevent drawing issues on MacOS Safari 15 (no problems on 16)\n return /15_/.test(navigator.userAgent) ? 4096 * 4096 : Infinity;\n};\n\nvar filterObjectProperties = (obj, props) => Object.keys(obj)\n .filter((key) => !props.includes(key))\n .reduce((prev, curr) => {\n prev[curr] = obj[curr];\n return prev;\n}, {});\n\nvar videoFixDuration = (video) => new Promise((resolve) => {\n // https://bugs.chromium.org/p/chromium/issues/detail?id=656426\n // https://bugs.chromium.org/p/chromium/issues/detail?id=642012\n if (video.duration === Infinity) {\n video.ontimeupdate = () => {\n video.ontimeupdate = undefined;\n resolve(video);\n };\n video.currentTime = Number.MAX_SAFE_INTEGER;\n return;\n }\n resolve(video);\n});\n\nvar getVideoElementDuration = (element) => new Promise((resolve, reject) => {\n const done = () => {\n videoFixDuration(element).then(() => {\n resolve(element.duration);\n });\n };\n if (element.readyState >= 1)\n return done();\n element.onloadedmetadata = done;\n element.onerror = () => reject(element.error);\n});\n\nvar arrayFlatten = (arr) => arr.reduce((flat, item) => {\n const arr = Array.isArray(item) ? [...item] : [item];\n return [...flat, ...arr];\n}, []);\n\n// custom method to draw images\nconst createCanvasImageDrawer = ({ imageDataResizer, canvasMemoryLimit } = {}) => async (ctx, image, srcRect, destRect, options) => {\n // min size of src is 1x1\n srcRect.width = Math.max(srcRect.width, 1);\n srcRect.height = Math.max(srcRect.height, 1);\n // min size of dest is 1x1\n destRect.width = Math.max(destRect.width, 1);\n destRect.height = Math.max(destRect.height, 1);\n // get resized image\n const { dest } = await processImage(image, {\n imageReader: createDefaultImageReader$1(),\n imageWriter: createDefaultImageWriter$1({\n format: 'canvas',\n targetSize: {\n ...destRect,\n upscale: true,\n },\n imageDataResizer,\n canvasMemoryLimit,\n }),\n imageCrop: srcRect,\n });\n // feather the canvas\n const { feather = 0 } = options || {};\n if (feather > 0) {\n const featherCanvas = h('canvas');\n featherCanvas.width = dest.width;\n featherCanvas.height = dest.height;\n const featherCtx = featherCanvas.getContext('2d', {\n // this prevents Chrome issue where Chrome doesn't correctly apply the mask in composition operation\n willReadFrequently: true,\n });\n const opacityStep = 1 / feather;\n let i = 0;\n for (i = 0; i < feather; i++) {\n const opacity = i * opacityStep;\n featherCtx.strokeStyle = `rgba(0,0,0,${opacity * opacity})`;\n featherCtx.strokeRect(i + 0.5, i + 0.5, dest.width - i * 2 - 1.0, dest.height - i * 2 - 1.0);\n }\n featherCtx.fillStyle = '#000';\n featherCtx.fillRect(i, i, dest.width + 0.5 - i * 2, dest.height + 0.5 - i * 2);\n const destCtx = dest.getContext('2d');\n destCtx.globalCompositeOperation = 'destination-in';\n destCtx.drawImage(featherCanvas, 0, 0);\n // release image canvas to free up memory\n releaseCanvas(featherCanvas);\n }\n // draw processed image\n ctx.drawImage(dest, destRect.x, destRect.y, destRect.width, destRect.height);\n // release image canvas to free up memory\n releaseCanvas(dest);\n};\n// connect function in process chain\nconst connect = (fn, getter = (...args) => args, setter) => async (state, options, onprogress) => {\n // will hold function result\n // at this point we don't know if the length of this task can be computed\n onprogress(createProgressEvent(0, false));\n // try to run the function\n let progressUpdated = false;\n const res = await fn(...getter(state, options, (event) => {\n progressUpdated = true;\n onprogress(event);\n }));\n // a setter isn't required\n setter && setter(state, res);\n // if progress was updated, we expect the connected function to fire the 1/1 event, else we fire it here\n if (!progressUpdated)\n onprogress(createProgressEvent(1, false));\n return state;\n};\n//\n// Reader/Writer Presets\n//\nconst AnyToFile = ({ willRequest = undefined, srcProp = 'src', destProp = 'dest' } = {}) => [\n connect(srcToFile, (state, options, onprogress) => [\n state[srcProp],\n onprogress,\n { ...options, willRequest },\n ], (state, file) => (state[destProp] = file)),\n 'any-to-file',\n];\nconst BlobGuardMimeType = ({ srcProp = 'dest', destProp = 'dest' } = {}) => [\n connect(async (src) => {\n // attempt to fix octet stream\n if (/octet-stream/.test(src.type)) {\n console.warn(`Pintura: File has unknown mime type \"${src.type}\", make sure your server sets the correct Content-Type header.`);\n // assume is image\n let mediaType = 'image';\n // test if is possibly video\n const el = await getAsVideoOrImageElement(src);\n if (/video/i.test(el.nodeName))\n mediaType = 'video';\n // set unknown media type\n const propertyBag = { type: mediaType + '/unknown' };\n return isFile(src)\n ? new File([src], src.name, {\n ...propertyBag,\n lastModified: src.lastModified,\n })\n : new Blob([src], propertyBag);\n }\n // return original file\n return src;\n }, (state) => [state[srcProp]], (state, file) => (state[destProp] = file)),\n 'any-to-file',\n];\nconst BlobReadImageSize = ({ srcProp = 'src', destProp = 'size' } = {}) => [\n connect(getImageSize, (state) => [state[srcProp]], (state, size) => (state[destProp] = size)),\n 'read-image-size',\n];\nconst getMediaDuration = async (src) => {\n const mediaElement = await getAsVideoOrImageElement(src);\n if (isVideoElement(mediaElement))\n return await getVideoElementDuration(mediaElement);\n return undefined;\n};\nconst BlobReadMediaDuration = ({ srcProp = 'src', destProp = 'duration' } = {}) => [\n connect(getMediaDuration, (state) => [state[srcProp]], (state, duration) => (state[destProp] = duration)),\n 'read-media-duration',\n];\nconst ImageSizeMatchOrientation = ({ srcSize = 'size', srcOrientation = 'orientation', destSize = 'size', } = {}) => [\n connect(orientImageSize, (state) => [state[srcSize], state[srcOrientation]], (state, size) => (state[destSize] = size)),\n 'image-size-match-orientation',\n];\nconst BlobReadImageHead = ({ srcProp = 'src', destProp = 'head' } = {}) => [\n connect((blob, slice) => (isJPEG(blob) ? blobReadSection(blob, slice) : undefined), \n // 64 * 4096 should be plenty to find extract header\n // Exif metadata are restricted in size to 64 kB in JPEG images because\n // according to the specification this information must be contained within a single JPEG APP1 segment.\n (state) => [state[srcProp], [0, 64 * 4096], onprogress], (state, head) => (state[destProp] = head)),\n 'read-image-head',\n];\nconst ImageHeadReadExifOrientationTag = ({ srcProp = 'head', destProp = 'orientation', } = {}) => [\n connect(arrayBufferImageExif, (state) => [state[srcProp], ORIENTATION_TAG], (state, orientation = 1) => (state[destProp] = orientation)),\n 'read-exif-orientation-tag',\n];\nconst ImageHeadClearExifOrientationTag = ({ srcProp = 'head' } = {}) => [\n connect(arrayBufferImageExif, (state) => [state[srcProp], ORIENTATION_TAG, 1]),\n 'clear-exif-orientation-tag',\n];\nconst CalculateCanvasScalar = ({ srcImageSize = 'size', srcCanvasSize = 'imageData', srcImageState = 'imageState', destImageSize = 'size', destScalar = 'scalar', } = {}) => [\n connect((naturalSize, canvasSize) => {\n return [\n Math.min(canvasSize.width / naturalSize.width, canvasSize.height / naturalSize.height),\n sizeCreateFromAny(canvasSize),\n ];\n }, (state) => [state[srcImageSize], state[srcCanvasSize], state[srcImageState]], (state, [scalar, imageSize]) => {\n state[destScalar] = scalar;\n state[destImageSize] = imageSize;\n }),\n 'calculate-canvas-scalar',\n];\nconst BlobToImageData = ({ srcProp = 'src', destProp = 'imageData', canvasMemoryLimit = undefined, } = {}) => [\n connect(blobToImageData, (state) => [state[srcProp], canvasMemoryLimit], (state, imageData) => (state[destProp] = imageData)),\n 'blob-to-image-data',\n];\nconst ImageDataMatchOrientation = ({ srcImageData = 'imageData', srcOrientation = 'orientation', } = {}) => [\n connect(orientImageData, (state) => [state[srcImageData], state[srcOrientation]], (state, imageData) => (state.imageData = imageData)),\n 'image-data-match-orientation',\n];\nconst ImageDataFill = ({ srcImageData = 'imageData', srcImageState = 'imageState' } = {}) => [\n connect(fillImageData, (state) => [\n state[srcImageData],\n {\n backgroundColor: state[srcImageState].backgroundColor,\n backgroundImage: state[srcImageState].backgroundImage,\n },\n ], (state, imageData) => (state.imageData = imageData)),\n 'image-data-fill',\n];\nconst ImageDataCrop = ({ srcImageData = 'imageData', srcImageState = 'imageState', destScalar = 'scalar', } = {}) => [\n connect(cropImageData, (state) => {\n // scale crop if needed\n const scalar = state[destScalar];\n let { crop } = state[srcImageState];\n if (crop && scalar !== 1) {\n crop = rectScale$1(rectClone$1(crop), scalar, vectorCreateEmpty());\n }\n // apply crop\n return [\n state[srcImageData],\n {\n crop,\n rotation: state[srcImageState].rotation,\n flipX: state[srcImageState].flipX,\n flipY: state[srcImageState].flipY,\n },\n ];\n }, (state, imageData) => (state.imageData = imageData)),\n 'image-data-crop',\n];\nconst hasTargetSize = (imageState) => !!((imageState.targetSize && imageState.targetSize.width) ||\n (imageState.targetSize && imageState.targetSize.height));\nconst ImageDataResize = ({ targetSize = {\n width: undefined,\n height: undefined,\n fit: undefined,\n upscale: undefined,\n}, imageDataResizer = undefined, srcProp = 'imageData', srcImageState = 'imageState', destImageScaledSize = 'imageScaledSize', }) => [\n connect(resizeImageData, (state) => {\n const width = Math.min(targetSize.width || Number.MAX_SAFE_INTEGER, (state[srcImageState].targetSize && state[srcImageState].targetSize.width) ||\n Number.MAX_SAFE_INTEGER);\n const height = Math.min(targetSize.height || Number.MAX_SAFE_INTEGER, (state[srcImageState].targetSize && state[srcImageState].targetSize.height) ||\n Number.MAX_SAFE_INTEGER);\n return [\n state[srcProp],\n {\n width,\n height,\n fit: targetSize.fit || 'contain',\n upscale: hasTargetSize(state[srcImageState])\n ? true\n : targetSize.upscale || false,\n },\n imageDataResizer,\n ];\n }, (state, imageData) => {\n if (!sizeEqual(state.imageData, imageData))\n state[destImageScaledSize] = sizeCreateFromAny(imageData);\n state.imageData = imageData;\n }),\n 'image-data-resize',\n];\nconst ImageDataFilter = ({ srcImageData = 'imageData', srcImageState = 'imageState', destImageData = 'imageData', } = {}) => [\n connect(filterImageData, (state) => {\n const { colorMatrix } = state[srcImageState];\n const colorMatrices = colorMatrix &&\n Object.keys(colorMatrix)\n .map((name) => colorMatrix[name])\n .filter(Boolean);\n return [\n state[srcImageData],\n {\n colorMatrix: colorMatrices && getColorMatrixFromColorMatrices(colorMatrices),\n convolutionMatrix: state[srcImageState].convolutionMatrix,\n gamma: state[srcImageState].gamma,\n noise: state[srcImageState].noise,\n vignette: state[srcImageState].vignette,\n },\n ];\n }, (state, imageData) => (state[destImageData] = imageData)),\n 'image-data-filter',\n];\nconst ImageDataRedact = ({ srcImageData = 'imageData', srcImageState = 'imageState', destImageData = 'imageData', destScalar = 'scalar', } = {}) => [\n connect(async (imageData, imageScrambler, imageBackgroundColor, shapes, scalar, redactionRenderStyle) => {\n // skip!\n if (!imageScrambler || !shapes.length)\n return imageData;\n // create scrambled texture version\n let scrambledCanvas;\n try {\n const options = {\n dataSizeScalar: getImageRedactionScaleFactor(imageData, shapes),\n };\n if (imageBackgroundColor && imageBackgroundColor[3] > 0) {\n options.backgroundColor = [...imageBackgroundColor];\n }\n scrambledCanvas = await imageScrambler(imageData, options);\n }\n catch (err) {\n // log to console for debugging purposes\n }\n // create drawing context\n const canvas = h('canvas');\n canvas.width = imageData.width;\n canvas.height = imageData.height;\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n ctx.putImageData(imageData, 0, 0);\n // blur\n if (redactionRenderStyle === 'auto') {\n const size = Math.sqrt(imageData.width * imageData.height);\n ctx.filter = `blur(${Math.round(size / 100)}px)`;\n }\n // set up a clip path so we only draw scrambled image within path\n const path = new Path2D();\n shapes.forEach((shape) => {\n const rect = rectCreate(shape.x, shape.y, shape.width, shape.height);\n rectMultiply(rect, scalar);\n const corners = rectRotate(rectClone$1(rect), shape.rotation);\n const poly = new Path2D();\n corners.forEach((corner, i) => {\n if (i === 0)\n return poly.moveTo(corner.x, corner.y);\n poly.lineTo(corner.x, corner.y);\n });\n path.addPath(poly);\n });\n ctx.clip(path, 'nonzero');\n ctx.imageSmoothingEnabled = false;\n ctx.drawImage(scrambledCanvas, 0, 0, canvas.width, canvas.height);\n releaseCanvas(scrambledCanvas);\n // done\n const imageDataOut = ctx.getImageData(0, 0, canvas.width, canvas.height);\n // clean up memory usage\n releaseCanvas(canvas);\n return imageDataOut;\n }, (state, { imageScrambler, redactionRenderStyle }) => [\n state[srcImageData],\n imageScrambler,\n state[srcImageState].backgroundColor,\n state[srcImageState].redaction,\n state[destScalar],\n redactionRenderStyle,\n ], (state, imageData) => (state[destImageData] = imageData)),\n 'image-data-redact',\n];\nconst ImageDataAnnotate = ({ srcImageData = 'imageData', srcSize = 'size', srcImageState = 'imageState', srcShapes = 'annotation', destImageData = 'imageData', destImageScaledSize = 'imageScaledSize', destScalar = 'scalar', imageDataResizer = undefined, canvasMemoryLimit = undefined, } = {}) => [\n connect(drawImageData, (state, { shapePreprocessor, willRequestResource, willRequest }) => {\n // scale annotations if needed\n const shapes = state[srcImageState][srcShapes];\n // skip if no annotations\n if (!shapes.length)\n return [state[srcImageData]];\n const canvasScalar = state[destScalar];\n const { crop } = state[srcImageState];\n const imageSize = state[srcSize];\n // image is scaled\n let imageSizeScalar = canvasScalar;\n const imageTargetSize = state[destImageScaledSize];\n if (imageTargetSize) {\n // calculate shapes scalar\n imageSizeScalar = Math.min(imageTargetSize.width / crop.width, imageTargetSize.height / crop.height);\n }\n const imageSizeScaled = {\n width: imageSize.width / canvasScalar,\n height: imageSize.height / canvasScalar,\n };\n // go\n return [\n state[srcImageData],\n {\n shapes,\n computeShape: (shape) => {\n shape = shapeComputeDisplay(shape, imageSizeScaled);\n shape = filterObjectProperties(shape, ['left', 'right', 'top', 'bottom']);\n shape = shapeScale(shape, imageSizeScalar);\n return shape;\n },\n transform: (ctx) => {\n const imageSize = state[srcSize];\n const { rotation = 0, flipX, flipY, cropLimitToImage, } = state[srcImageState];\n // scale crop\n const canvasScalar = state[destScalar];\n // scale crop if needed\n const { crop = rectCreateFromSize(imageSize) } = state[srcImageState];\n // calculate image scalar so we can scale annotations accordingly\n const scaledSize = state[destImageScaledSize];\n const scalar = scaledSize\n ? Math.min(scaledSize.width / crop.width, scaledSize.height / crop.height)\n : 1;\n const imageScaledSize = {\n width: (imageSize.width / canvasScalar) * scalar,\n height: (imageSize.height / canvasScalar) * scalar,\n };\n const rotatedRect = getImageTransformedRect(imageScaledSize, rotation);\n const rotatedSize = {\n width: rotatedRect.width,\n height: rotatedRect.height,\n };\n // calculate center\n const dx = imageScaledSize.width * 0.5 - rotatedSize.width * 0.5;\n const dy = imageScaledSize.height * 0.5 - rotatedSize.height * 0.5;\n const center = sizeCenter(imageScaledSize);\n // offset\n ctx.translate(-dx, -dy);\n ctx.translate(-crop.x * scalar, -crop.y * scalar);\n // rotation\n ctx.translate(center.x, center.y);\n ctx.rotate(rotation);\n ctx.translate(-center.x, -center.y);\n // flipping\n ctx.scale(flipX ? -1 : 1, flipY ? -1 : 1);\n ctx.translate(flipX ? -imageScaledSize.width : 0, flipY ? -imageScaledSize.height : 0);\n // annotations are clipped to image\n if (cropLimitToImage) {\n ctx.rect(0, 0, imageScaledSize.width, imageScaledSize.height);\n ctx.clip();\n }\n },\n drawImage: createCanvasImageDrawer({ imageDataResizer, canvasMemoryLimit }),\n preprocessShape: (shape) => shapePreprocessor(shape, { isPreview: false, ...state[srcImageState] }),\n canvasMemoryLimit,\n willRequest: willRequest || willRequestResource,\n },\n ];\n }, (state, imageData) => (state[destImageData] = imageData)),\n 'image-data-annotate',\n];\nconst ImageDataDecorate = ({ srcImageData = 'imageData', srcImageState = 'imageState', destImageData = 'imageData', destImageScaledSize = 'imageScaledSize', imageDataResizer = undefined, canvasMemoryLimit = undefined, destScalar = 'scalar', } = {}) => [\n connect(drawImageData, (state, { shapePreprocessor, willRequestResource, willRequest }) => {\n // scale annotations if needed\n // is `let` on purpose\n let { decoration } = state[srcImageState];\n // skip if no annotations\n if (!decoration.length)\n return [state[srcImageData]];\n // scale decoration and crop if needed\n let scalar = state[destScalar];\n const { crop } = state[srcImageState];\n // image is scaled\n const imageTargetSize = state[destImageScaledSize];\n if (imageTargetSize) {\n const imageSizeScalar = Math.min(imageTargetSize.width / crop.width, imageTargetSize.height / crop.height);\n scalar = imageSizeScalar;\n }\n // go\n return [\n state[srcImageData],\n {\n shapes: decoration,\n drawImage: createCanvasImageDrawer({ imageDataResizer, canvasMemoryLimit }),\n computeShape: (shape) => {\n shape = shapeComputeDisplay(shape, crop);\n shape = filterObjectProperties(shape, ['left', 'right', 'top', 'bottom']);\n shape = shapeScale(shape, scalar);\n return shape;\n },\n preprocessShape: (shape) => shapePreprocessor(shape, { isPreview: false, ...state[srcImageState] }),\n canvasMemoryLimit,\n willRequest: willRequest || willRequestResource,\n },\n ];\n }, (state, imageData) => (state[destImageData] = imageData)),\n 'image-data-decorate',\n];\nconst ImageDataFrame = ({ srcImageData = 'imageData', srcImageState = 'imageState', destImageData = 'imageData', destImageScaledSize = 'imageScaledSize', imageDataResizer = undefined, canvasMemoryLimit = undefined, destScalar = 'scalar', } = {}) => [\n connect(drawImageData, (state, { shapePreprocessor, willRequestResource, willRequest }) => {\n const frame = state[srcImageState].frame;\n if (!frame)\n return [state[srcImageData]];\n // scale crop if needed\n const scalar = state[destScalar];\n let { crop } = state[srcImageState];\n if (crop && scalar !== 1) {\n crop = rectScale$1(rectClone$1(crop), scalar, vectorCreateEmpty());\n }\n const context = { ...crop };\n const bounds = shapesBounds(shapesFromCompositShape(frame, context, shapePreprocessor), context);\n context.x = Math.abs(bounds.left);\n context.y = Math.abs(bounds.top);\n context.width += Math.abs(bounds.left) + Math.abs(bounds.right);\n context.height += Math.abs(bounds.top) + Math.abs(bounds.bottom);\n const scaledSize = state[destImageScaledSize];\n const contaxtScalar = scaledSize\n ? Math.min(scaledSize.width / crop.width, scaledSize.height / crop.height)\n : 1;\n rectMultiply(context, contaxtScalar);\n // use floor because we can't fill up half pixels\n context.x = Math.floor(context.x);\n context.y = Math.floor(context.y);\n context.width = Math.floor(context.width);\n context.height = Math.floor(context.height);\n return [\n state[srcImageData],\n {\n shapes: [frame],\n contextBounds: context,\n computeShape: (shape) => shapeComputeDisplay(shape, state[srcImageData]),\n transform: (ctx) => {\n ctx.translate(context.x, context.y);\n },\n drawImage: createCanvasImageDrawer({ imageDataResizer, canvasMemoryLimit }),\n preprocessShape: (shape) => shapePreprocessor(shape, { isPreview: false, ...state[srcImageState] }),\n canvasMemoryLimit,\n willRequest: willRequest || willRequestResource,\n },\n ];\n }, (state, imageData) => (state[destImageData] = imageData)),\n 'image-data-frame',\n];\nconst ImageDataToBlob = ({ mimeType = undefined, quality = undefined, srcImageData = 'imageData', srcFile = 'src', destBlob = 'blob', } = {}) => [\n connect(imageDataToBlob, (state) => [\n state[srcImageData],\n mimeType || getMimeTypeFromFilename(state[srcFile].name) || state[srcFile].type,\n quality,\n ], (state, blob) => (state[destBlob] = blob)),\n 'image-data-to-blob',\n];\nconst ImageDataToCanvas = ({ srcImageData = 'imageData', srcOrientation = 'orientation', destCanvas = 'dest', } = {}) => [\n connect(imageDataToCanvas, (state) => [state[srcImageData], state[srcOrientation]], (state, canvas) => (state[destCanvas] = canvas)),\n 'image-data-to-canvas',\n];\nconst writeImageHead = async (blob, head) => {\n if (!isJPEG(blob) || !head)\n return blob;\n // get exif section\n const view = new DataView(head);\n const markers = dataViewGetApplicationMarkers(view);\n // no markers found\n if (!markers || !markers.exif)\n return blob;\n const headEnd = ['exif', 'mpf', 'xmp'].reduce((max, key) => {\n return markers[key] ? Math.max(max, markers[key].offset + markers[key].size) : max;\n }, 0);\n // from byte 0 to end of exif header\n const headBuffer = head.slice(0, headEnd + 2);\n return blobWriteSection(blob, \n // insert head buffer into blob\n headBuffer, \n // current blob doesn't have exif header (as outputted by canvas), so we insert ours in\n // (jpeg header 2) + (jfif size 16) + (app1 header 2)\n [20]);\n};\nconst BlobWriteImageHead = (srcBlob = 'blob', srcHead = 'head', destBlob = 'blob') => [\n connect(writeImageHead, (state) => [state[srcBlob], state[srcHead]], (state, blob) => (state[destBlob] = blob)),\n 'blob-write-image-head',\n];\nconst BlobToFile = ({ renameFile = undefined, srcBlob = 'blob', srcFile = 'src', destFile = 'dest', defaultFilename = undefined, } = {}) => [\n connect(blobToFile, (state) => [\n state[srcBlob],\n renameFile\n ? renameFile(state[srcFile])\n : state[srcFile].name ||\n `${defaultFilename}.${getExtensionFromMimeType(state[srcBlob].type)}`,\n ], (state, file) => (state[destFile] = file)),\n 'blob-to-file',\n];\nconst Store = ({ url = './', dataset = (state) => [\n ['dest', state.dest, state.dest.name],\n ['imageState', state.imageState],\n], destStore = 'store', credentials, headers = {}, }) => [\n connect(\n // upload function\n async (dataset, onprogress) => await post(url, dataset, {\n onprogress,\n beforeSend: (xhr) => configureXHR(xhr, { headers, credentials }),\n }), \n // get state values\n (state, options, onprogress) => [\n dataset(state),\n onprogress,\n ], \n // set state values\n (state, xhr) => (state[destStore] = xhr) // logs XHR request returned by `post`\n ),\n 'store',\n];\nconst PropFilter = (allowlist) => [\n connect((state) => {\n // if no allowlist suppleid or is empty array we don't filter\n if (!allowlist || !allowlist.length)\n return state;\n // else we only allow the props defined in the list and delete non matching props\n Object.keys(state).forEach((key) => {\n if (allowlist.includes(key))\n return;\n delete state[key];\n });\n return state;\n }),\n 'prop-filter',\n];\n// Generic image reader, suitable for most use cases\nconst createDefaultImageReader$1 = (options = {}) => {\n const { \n // add xhr Promise intercept here\n orientImage = true, outputProps = ['src', 'dest', 'size', 'duration'], preprocessImageFile, request = {}, } = options;\n return [\n // can read most source files and turn them into blobs\n AnyToFile({ willRequest: () => request }),\n // test if supported mime/type\n BlobGuardMimeType(),\n // called when file created, can be used to read unrecognized files\n preprocessImageFile && [\n connect(preprocessImageFile, (state, options, onprogress) => [\n state.dest,\n options,\n onprogress,\n ], (state, file) => (state.dest = file)),\n 'preprocess-image-file',\n ],\n // quickly read size (only reads first part of image)\n BlobReadImageSize({ srcProp: 'dest' }),\n // quickly read duration\n BlobReadMediaDuration({ srcProp: 'dest' }),\n // fix image orientation\n orientImage && BlobReadImageHead({ srcProp: 'dest' }),\n orientImage && ImageHeadReadExifOrientationTag(),\n orientImage && ImageSizeMatchOrientation(),\n // remove unwanted props\n PropFilter(outputProps),\n ].filter(Boolean);\n};\nconst createStore = (store) => store &&\n (isString(store)\n ? // a basic store to post to\n Store({ url: store })\n : // see if is fully custom or store config\n isFunction(store)\n ? // fully custom store function\n [store, 'store']\n : // a store configuration object\n Store(store));\nconst createDefaultImageWriter$1 = (options = {}) => (src, imageState, genericOptions = {}) => {\n // not a video, skip\n if (!isImage(src))\n return;\n // let's go!\n let { canvasMemoryLimit = getCanvasMemoryLimit(), orientImage = true, copyImageHead = true, mimeType = undefined, quality = undefined, renameFile = undefined, targetSize = undefined, imageDataResizer = undefined, store = undefined, format = 'file', outputProps = ['src', 'dest', 'imageState', 'store'], preprocessImageSource = undefined, preprocessImageState = undefined, postprocessImageData = undefined, postprocessImageBlob = undefined, } = { ...options, ...genericOptions };\n // use file format if defined as blob\n if (format === 'blob')\n format = 'file';\n return [\n // allow preprocessing of image blob, should return a new blob, for example to automatically make image background transparent\n preprocessImageSource && [\n connect(preprocessImageSource, (state, options, onprogress) => [state.src, options, onprogress, state.imageState], (state, src) => (state.src = src)),\n 'preprocess-image-source',\n ],\n // get orientation info (if is jpeg)\n (orientImage || copyImageHead) && BlobReadImageHead(),\n orientImage && ImageHeadReadExifOrientationTag(),\n // get image size\n BlobReadImageSize(),\n // allow preproccesing of image state for example to replace placeholders\n preprocessImageState && [\n connect(preprocessImageState, (state, options, onprogress, metadata) => [\n state.imageState,\n options,\n onprogress,\n { size: state.size, orientation: state.orientation },\n ], (state, imageState) => (state.imageState = imageState)),\n 'preprocess-image-state',\n ],\n // get image data\n BlobToImageData({ canvasMemoryLimit }),\n // fix image orientation\n orientImage && ImageSizeMatchOrientation(),\n orientImage && ImageDataMatchOrientation(),\n // apply canvas scalar to data\n CalculateCanvasScalar(),\n // apply image state\n ImageDataRedact(),\n ImageDataCrop(),\n ImageDataResize({ imageDataResizer, targetSize }),\n ImageDataAnnotate({ imageDataResizer, canvasMemoryLimit, srcShapes: 'manipulation' }),\n ImageDataFilter(),\n ImageDataFill(),\n ImageDataAnnotate({ imageDataResizer, canvasMemoryLimit, srcShapes: 'annotation' }),\n ImageDataDecorate({ imageDataResizer, canvasMemoryLimit }),\n ImageDataFrame({ imageDataResizer, canvasMemoryLimit }),\n // run post processing on image data, for example to apply circular crop\n postprocessImageData && [\n connect(postprocessImageData, (state, options, onprogress) => [state.imageData, options, onprogress], (state, imageData) => (state.imageData = imageData)),\n 'postprocess-image-data',\n ],\n // convert to correct output format\n format === 'file'\n ? ImageDataToBlob({ mimeType, quality })\n : format === 'canvas'\n ? ImageDataToCanvas()\n : [\n (state) => {\n state.dest = state.imageData;\n return state;\n },\n ],\n // we overwite the exif orientation tag so the image is oriented correctly\n format === 'file' && orientImage && ImageHeadClearExifOrientationTag(),\n // we write the new image head to the target blob\n format === 'file' && copyImageHead && BlobWriteImageHead(),\n // allow converting the blob to a different format\n postprocessImageBlob && [\n connect(postprocessImageBlob, ({ blob, imageData, src }, options, onprogress) => [{ blob, imageData, src }, options, onprogress], (state, blob) => (state.blob = blob)),\n 'postprocess-image-file',\n ],\n // turn the image blob into a file, will also rename the file\n format === 'file' && BlobToFile({ defaultFilename: 'image', renameFile }),\n // upload or process data if is a file\n format === 'file'\n ? // used for file output formats\n createStore(store)\n : // used for imageData and canvas output formats\n isFunction(store) && [store, 'store'],\n // remove unwanted props\n PropFilter(outputProps),\n ].filter(Boolean);\n};\nconst isWriter = (param) => Array.isArray(param) || isFunction(param);\nconst createDefaultMediaWriter$1 = (genericWriterOptions, ...writers) => (src, imageState) => {\n // no generic options passed\n if (isWriter(genericWriterOptions))\n writers = [genericWriterOptions, ...writers];\n const genericOptions = isObject(genericWriterOptions) ? genericWriterOptions : {};\n // currently assigned writers\n writers = Array.isArray(writers) ? arrayFlatten(writers) : writers;\n // loop over writers and return first that is a match\n for (let i = 0; i < writers.length; i++) {\n const res = writers[i](src, imageState, genericOptions);\n if (Array.isArray(res))\n return res;\n }\n};\n\nvar calculateImageTransforms = (stageRect, rootRect, imageSize, cropRect, imageSelectionRect, imageSelectionRectScalar, imageSelectionRectTranslation, imageScale, imageRotation, imageFlipX, imageFlipY) => {\n if (!stageRect || !rootRect || !imageSize || !cropRect || !imageScale)\n return undefined;\n // scale presentation\n imageScale *= imageSelectionRectScalar;\n const viewRect = rectNormalizeOffset(rectClone$1(rootRect));\n const viewCenter = rectCenter(viewRect);\n const stageCenter = rectCenter(stageRect);\n const imageRect = rectCreateFromSize(imageSize);\n const imageCenter = rectCenter(imageRect);\n // get base crop rect so we can correctly apply transforms\n const cropRectBase = getBaseCropRect(imageSize, cropRect, imageRotation);\n const cropRectBaseCenter = rectCenter(cropRectBase);\n const imageTranslation = vectorSubtract(vectorClone(imageCenter), cropRectBaseCenter);\n // calculate stage center offset from view center\n const imageOffset = vectorSubtract(vectorClone(stageCenter), viewCenter);\n // correct for stage offset\n imageTranslation.x += imageOffset.x;\n imageTranslation.y += imageOffset.y;\n // set origin of translation (so rotates around center of selection)\n const imageOrigin = vectorInvert(vectorClone(imageTranslation));\n // correct for stage offset\n imageOrigin.x += imageOffset.x;\n imageOrigin.y += imageOffset.y;\n // correct for image selection offset relative to view\n const imageSelectionCenter = rectCenter(rectTranslate$1(rectTranslate$1(rectClone$1(imageSelectionRect), imageSelectionRectTranslation), stageRect));\n const imageSelectionOffset = vectorSubtract(imageSelectionCenter, stageCenter);\n vectorAdd(imageTranslation, imageSelectionOffset);\n return {\n origin: imageOrigin,\n translation: imageTranslation,\n rotation: {\n x: imageFlipY ? Math.PI : 0,\n y: imageFlipX ? Math.PI : 0,\n z: imageRotation,\n },\n scale: imageScale,\n };\n};\n\nlet result$5 = null;\nvar supportsWebGL2 = () => {\n if (result$5 === null) {\n if ('WebGL2RenderingContext' in window) {\n let canvas;\n try {\n canvas = h('canvas');\n result$5 = !!canvas.getContext('webgl2');\n }\n catch (err) {\n result$5 = false;\n }\n canvas && releaseCanvas(canvas);\n canvas = undefined;\n }\n else {\n result$5 = false;\n }\n }\n return result$5;\n};\n\nvar isPowerOf2 = (value) => (value & (value - 1)) === 0;\n\nvar stringReplace = (str, entries = {}, prefix = '', postfix = '') => {\n return Object.keys(entries)\n .filter((key) => !isObject(entries[key]))\n .reduce((prev, curr) => {\n return prev.replace(new RegExp(prefix + curr + postfix), entries[curr]);\n }, str);\n};\n\nvar SHADER_FRAG_HEAD = \"#version 300 es\\nprecision highp float;\\n\\nout vec4 fragColor;\"; // eslint-disable-line\n\nvar SHADER_FRAG_INIT = \"\\nfloat a=1.0;vec4 fillColor=uColor;vec4 textureColor=texture(uTexture,vTexCoord);textureColor*=(1.0-step(uRepeat.y,vTexCoord.y))*step(0.0,vTexCoord.y)*(1.0-step(uRepeat.x,vTexCoord.x))*step(0.0,vTexCoord.x);\"; // eslint-disable-line\n\nvar SHADER_FRAG_MASK = \"\\nuniform float uMaskFeather[8];uniform float uMaskBounds[4];uniform float uMaskOpacity;float mask(float x,float y,float bounds[4],float opacity){return 1.0-(1.0-(smoothstep(bounds[3],bounds[3]+1.0,x)*(1.0-smoothstep(bounds[1]-1.0,bounds[1],x))*(1.0-step(bounds[0],y))*step(bounds[2],y)))*(1.0-opacity);}\"; // eslint-disable-line\n\nvar SHADER_FRAG_MASK_APPLY = \"\\nfloat m=mask(gl_FragCoord.x,gl_FragCoord.y,uMaskBounds,uMaskOpacity);\"; // eslint-disable-line\n\nvar SHADER_FRAG_MASK_FEATHER_APPLY = \"\\nfloat leftFeatherOpacity=step(uMaskFeather[1],gl_FragCoord.x)*uMaskFeather[0]+((1.0-uMaskFeather[0])*smoothstep(uMaskFeather[1],uMaskFeather[3],gl_FragCoord.x));float rightFeatherOpacity=(1.0-step(uMaskFeather[7],gl_FragCoord.x))*uMaskFeather[4]+((1.0-uMaskFeather[4])*smoothstep(uMaskFeather[7],uMaskFeather[5],gl_FragCoord.x));a*=leftFeatherOpacity*rightFeatherOpacity;\"; // eslint-disable-line\n\nvar SHADER_FRAG_RECT_AA = \"\\nvec2 scaledPoint=vec2(vRectCoord.x*uSize.x,vRectCoord.y*uSize.y);a*=smoothstep(0.0,uEdgeFeather,uSize.x-scaledPoint.x);a*=smoothstep(0.0,uEdgeFeather,uSize.y-scaledPoint.y);a*=smoothstep(0.0,uEdgeFeather,scaledPoint.x);a*=smoothstep(0.0,uEdgeFeather,scaledPoint.y);\"; // eslint-disable-line\n\nvar SHADER_FRAG_CORNER_RADIUS = \"\\nvec2 s=(uSize-2.0)*.5;vec2 r=(vRectCoord*uSize)-1.0;vec2 p=r-s;float cornerRadius=uCornerRadius[0];bool left=r.x<s.x;bool top=r.y<s.y;if(!left&&top){cornerRadius=uCornerRadius[1];}if(!left&&!top){cornerRadius=uCornerRadius[3];}if(left&&!top){cornerRadius=uCornerRadius[2];}a*=1.0-clamp(length(max(abs(p)-(s-cornerRadius),0.0))-cornerRadius,0.0,1.0);\"; // eslint-disable-line\n\nvar SHADER_FRAG_SHAPE_BLEND_COLOR = \"\\nif(m<=0.0)discard;fillColor.a*=a;fillColor.rgb*=fillColor.a;fillColor.rgb*=m;fillColor.rgb+=(1.0-m)*(uCanvasColor.rgb*fillColor.a);textureColor*=uTextureOpacity;textureColor.a*=a;textureColor.rgb*=m*a;textureColor.rgb+=(1.0-m)*(uCanvasColor.rgb*textureColor.a);fragColor=textureColor+(fillColor*(1.0-textureColor.a));\"; // eslint-disable-line\n\nvar SHADER_FRAG_TEXTURE_COLORIZE = \"\\nif(uTextureColor.a!=0.0&&textureColor.a>0.0){vec3 colorFlattened=textureColor.rgb/textureColor.a;if(colorFlattened.r>=.9999&&colorFlattened.g==0.0&&colorFlattened.b>=.9999){textureColor.rgb=uTextureColor.rgb*textureColor.a;}textureColor*=uTextureColor.a;}\"; // eslint-disable-line\n\nvar SHADER_VERT_HEAD = \"#version 300 es\\n\\nin vec4 aPosition;uniform mat4 uMatrix;\"; // eslint-disable-line\n\nvar SHADER_VERT_MULTIPLY_MATRUX = \"\\ngl_Position=uMatrix*vec4(aPosition.x,aPosition.y,0,1);\"; // eslint-disable-line\n\nvar SHADER_VERT_TEXTURE = \"\\nin vec2 aTexCoord;out vec2 vTexCoord;\"; // eslint-disable-line\n\nconst SHADER_VERT_SNIPPETS = {\n head: SHADER_VERT_HEAD,\n text: SHADER_VERT_TEXTURE,\n matrix: SHADER_VERT_MULTIPLY_MATRUX,\n};\nconst SHADER_FRAG_SNIPPETS = {\n head: SHADER_FRAG_HEAD,\n mask: SHADER_FRAG_MASK,\n init: SHADER_FRAG_INIT,\n colorize: SHADER_FRAG_TEXTURE_COLORIZE,\n maskapply: SHADER_FRAG_MASK_APPLY,\n maskfeatherapply: SHADER_FRAG_MASK_FEATHER_APPLY,\n rectaa: SHADER_FRAG_RECT_AA,\n cornerradius: SHADER_FRAG_CORNER_RADIUS,\n fragcolor: SHADER_FRAG_SHAPE_BLEND_COLOR,\n};\nconst transpileShader = (gl, src, type) => {\n src = stringReplace(src, type === gl.VERTEX_SHADER ? SHADER_VERT_SNIPPETS : SHADER_FRAG_SNIPPETS, '##').trim();\n // ready if supports webgl\n if (supportsWebGL2())\n return src;\n src = src.replace(/#version.+/gm, '').trim();\n src = src.replace(/^\\/\\/\\#/gm, '#');\n if (type === gl.VERTEX_SHADER) {\n src = src.replace(/in /gm, 'attribute ').replace(/out /g, 'varying ');\n }\n if (type === gl.FRAGMENT_SHADER) {\n src = src\n .replace(/in /gm, 'varying ')\n .replace(/out.*?;/gm, '')\n .replace(/texture\\(/g, 'texture2D(')\n .replace(/fragColor/g, 'gl_FragColor');\n }\n return `${src}`;\n};\nconst compileShader = (gl, src, type) => {\n const shader = gl.createShader(type);\n const transpiledSrc = transpileShader(gl, src, type);\n gl.shaderSource(shader, transpiledSrc);\n gl.compileShader(shader);\n if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\n console.error(gl.getShaderInfoLog(shader));\n }\n return shader;\n};\nconst createShader = (gl, vertexShaderCode, fragmentShaderCode, attribs, uniforms) => {\n const vertexShader = compileShader(gl, vertexShaderCode, gl.VERTEX_SHADER);\n const fragmentShader = compileShader(gl, fragmentShaderCode, gl.FRAGMENT_SHADER);\n const program = gl.createProgram();\n gl.attachShader(program, vertexShader);\n gl.attachShader(program, fragmentShader);\n gl.linkProgram(program);\n const locations = {};\n attribs.forEach((name) => {\n locations[name] = gl.getAttribLocation(program, name);\n });\n uniforms.forEach((name) => {\n locations[name] = gl.getUniformLocation(program, name);\n });\n return {\n program,\n locations,\n destroy() {\n gl.detachShader(program, vertexShader);\n gl.detachShader(program, fragmentShader);\n gl.deleteShader(vertexShader);\n gl.deleteShader(fragmentShader);\n gl.deleteProgram(program);\n },\n };\n};\nconst canMipMap = (source) => {\n if (source['nodeName'] === 'VIDEO')\n return false;\n if (supportsWebGL2())\n return true;\n return isPowerOf2(source.width) && isPowerOf2(source.height);\n};\nconst applyTextureProperties = (gl, source, options) => {\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, canMipMap(source) ? gl.LINEAR_MIPMAP_LINEAR : gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, options.filterParam);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, options.wrapParam);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, options.wrapParam);\n if (canMipMap(source))\n gl.generateMipmap(gl.TEXTURE_2D);\n};\nconst updateTexture = (gl, texture, source, options) => {\n gl.bindTexture(gl.TEXTURE_2D, texture);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, source);\n applyTextureProperties(gl, source, options);\n gl.bindTexture(gl.TEXTURE_2D, null);\n return texture;\n};\nconst applyOpacity = (color, opacity = 1) => color\n ? [color[0], color[1], color[2], isNumber(color[3]) ? opacity * color[3] : opacity]\n : [0, 0, 0, 0];\n\nconst mat4Create = () => {\n const mat = new Float32Array(16);\n mat[0] = 1;\n mat[5] = 1;\n mat[10] = 1;\n mat[15] = 1;\n return mat;\n};\nconst mat4Perspective = (mat, fovy, aspect, near, far) => {\n const f = 1.0 / Math.tan(fovy / 2);\n const nf = 1 / (near - far);\n mat[0] = f / aspect;\n mat[1] = 0;\n mat[2] = 0;\n mat[3] = 0;\n mat[4] = 0;\n mat[5] = f;\n mat[6] = 0;\n mat[7] = 0;\n mat[8] = 0;\n mat[9] = 0;\n mat[10] = (far + near) * nf;\n mat[11] = -1;\n mat[12] = 0;\n mat[13] = 0;\n mat[14] = 2 * far * near * nf;\n mat[15] = 0;\n};\nconst mat4Ortho = (mat, left, right, bottom, top, near, far) => {\n const lr = 1 / (left - right);\n const bt = 1 / (bottom - top);\n const nf = 1 / (near - far);\n mat[0] = -2 * lr;\n mat[1] = 0;\n mat[2] = 0;\n mat[3] = 0;\n mat[4] = 0;\n mat[5] = -2 * bt;\n mat[6] = 0;\n mat[7] = 0;\n mat[8] = 0;\n mat[9] = 0;\n mat[10] = 2 * nf;\n mat[11] = 0;\n mat[12] = (left + right) * lr;\n mat[13] = (top + bottom) * bt;\n mat[14] = (far + near) * nf;\n mat[15] = 1;\n};\nconst mat4Translate = (mat, x, y, z) => {\n mat[12] = mat[0] * x + mat[4] * y + mat[8] * z + mat[12];\n mat[13] = mat[1] * x + mat[5] * y + mat[9] * z + mat[13];\n mat[14] = mat[2] * x + mat[6] * y + mat[10] * z + mat[14];\n mat[15] = mat[3] * x + mat[7] * y + mat[11] * z + mat[15];\n};\nconst mat4Scale = (mat, s) => {\n mat[0] *= s;\n mat[1] *= s;\n mat[2] *= s;\n mat[3] *= s;\n mat[4] *= s;\n mat[5] *= s;\n mat[6] *= s;\n mat[7] *= s;\n mat[8] *= s;\n mat[9] *= s;\n mat[10] *= s;\n mat[11] *= s;\n};\nconst mat4ScaleX = (mat, s) => {\n mat[0] *= s;\n mat[1] *= s;\n mat[2] *= s;\n mat[3] *= s;\n};\nconst mat4ScaleY = (mat, s) => {\n mat[4] *= s;\n mat[5] *= s;\n mat[6] *= s;\n mat[7] *= s;\n};\nconst mat4RotateX = (mat, rad) => {\n const s = Math.sin(rad);\n const c = Math.cos(rad);\n const a10 = mat[4];\n const a11 = mat[5];\n const a12 = mat[6];\n const a13 = mat[7];\n const a20 = mat[8];\n const a21 = mat[9];\n const a22 = mat[10];\n const a23 = mat[11];\n mat[4] = a10 * c + a20 * s;\n mat[5] = a11 * c + a21 * s;\n mat[6] = a12 * c + a22 * s;\n mat[7] = a13 * c + a23 * s;\n mat[8] = a20 * c - a10 * s;\n mat[9] = a21 * c - a11 * s;\n mat[10] = a22 * c - a12 * s;\n mat[11] = a23 * c - a13 * s;\n};\nconst mat4RotateY = (mat, rad) => {\n const s = Math.sin(rad);\n const c = Math.cos(rad);\n const a00 = mat[0];\n const a01 = mat[1];\n const a02 = mat[2];\n const a03 = mat[3];\n const a20 = mat[8];\n const a21 = mat[9];\n const a22 = mat[10];\n const a23 = mat[11];\n mat[0] = a00 * c - a20 * s;\n mat[1] = a01 * c - a21 * s;\n mat[2] = a02 * c - a22 * s;\n mat[3] = a03 * c - a23 * s;\n mat[8] = a00 * s + a20 * c;\n mat[9] = a01 * s + a21 * c;\n mat[10] = a02 * s + a22 * c;\n mat[11] = a03 * s + a23 * c;\n};\nconst mat4RotateZ = (mat, rad) => {\n const s = Math.sin(rad);\n const c = Math.cos(rad);\n const a00 = mat[0];\n const a01 = mat[1];\n const a02 = mat[2];\n const a03 = mat[3];\n const a10 = mat[4];\n const a11 = mat[5];\n const a12 = mat[6];\n const a13 = mat[7];\n mat[0] = a00 * c + a10 * s;\n mat[1] = a01 * c + a11 * s;\n mat[2] = a02 * c + a12 * s;\n mat[3] = a03 * c + a13 * s;\n mat[4] = a10 * c - a00 * s;\n mat[5] = a11 * c - a01 * s;\n mat[6] = a12 * c - a02 * s;\n mat[7] = a13 * c - a03 * s;\n};\n\nvar degToRad = (degrees) => degrees * Math.PI / 180;\n\nvar getWebGLContext = (canvas, attrs) => {\n if (supportsWebGL2())\n return canvas.getContext('webgl2', attrs);\n return (canvas.getContext('webgl', attrs) ||\n canvas.getContext('experimental-webgl', attrs));\n};\n\nvar imageFragmentShader = \"\\n##head\\nin vec2 vTexCoord;uniform sampler2D uTexture;uniform sampler2D uTextureOverlay;uniform sampler2D uTextureBlend;uniform vec2 uTextureSize;uniform float uOpacity;uniform int uAntialias;uniform vec4 uOverlayColor;uniform mat4 uColorMatrix;uniform vec4 uColorOffset;uniform float uClarityKernel[9];uniform float uClarityKernelWeight;uniform float uColorGamma;uniform float uColorVignette;uniform float uMaskClip;uniform float uMaskOpacity;uniform float uMaskBounds[4];uniform float uMaskCornerRadius[4];uniform float uMaskFeather[8];vec4 applyGamma(vec4 c,float g){c.r=pow(c.r,g);c.g=pow(c.g,g);c.b=pow(c.b,g);return c;}vec4 applyColorMatrix(vec4 c,mat4 m,vec4 o){return(c*m)+(o*c.a);}vec4 applyConvolutionMatrix(vec4 c,float k0,float k1,float k2,float k3,float k4,float k5,float k6,float k7,float k8,float w){vec2 pixel=vec2(1)/uTextureSize;vec4 colorSum=texture(uTexture,vTexCoord-pixel)*k0+texture(uTexture,vTexCoord+pixel*vec2(0.0,-1.0))*k1+texture(uTexture,vTexCoord+pixel*vec2(1.0,-1.0))*k2+texture(uTexture,vTexCoord+pixel*vec2(-1.0,0.0))*k3+texture(uTexture,vTexCoord)*k4+texture(uTexture,vTexCoord+pixel*vec2(1.0,0.0))*k5+texture(uTexture,vTexCoord+pixel*vec2(-1.0,1.0))*k6+texture(uTexture,vTexCoord+pixel*vec2(0.0,1.0))*k7+texture(uTexture,vTexCoord+pixel)*k8;vec4 color=vec4(clamp((colorSum/w),0.0,1.0).rgb,c.a);return color;}vec4 applyVignette(vec4 c,vec2 pos,vec2 center,float v){float d=distance(pos,center)/length(center);float f=1.0-(d*abs(v));if(v>0.0){c.rgb*=f;}else if(v<0.0){c.rgb+=(1.0-f)*(1.0-c.rgb);}return c;}vec4 blendPremultipliedAlpha(vec4 back,vec4 front){return front+(back*(1.0-front.a));}void main(){float x=gl_FragCoord.x;float y=gl_FragCoord.y;float a=1.0;float maskTop=uMaskBounds[0];float maskRight=uMaskBounds[1];float maskBottom=uMaskBounds[2];float maskLeft=uMaskBounds[3];float leftFeatherOpacity=step(uMaskFeather[1],x)*uMaskFeather[0]+((1.0-uMaskFeather[0])*smoothstep(uMaskFeather[1],uMaskFeather[3],x));float rightFeatherOpacity=(1.0-step(uMaskFeather[7],x))*uMaskFeather[4]+((1.0-uMaskFeather[4])*smoothstep(uMaskFeather[7],uMaskFeather[5],x));a*=leftFeatherOpacity*rightFeatherOpacity;float overlayColorAlpha=(smoothstep(maskLeft,maskLeft+1.0,x)*(1.0-smoothstep(maskRight-1.0,maskRight,x))*(1.0-step(maskTop,y))*step(maskBottom,y));if(uOverlayColor.a==0.0){a*=overlayColorAlpha;}vec2 offset=vec2(maskLeft,maskBottom);vec2 size=vec2(maskRight-maskLeft,maskTop-maskBottom)*.5;vec2 center=offset.xy+size.xy;int pixelX=int(step(center.x,x));int pixelY=int(step(y,center.y));float cornerRadius=0.0;if(pixelX==0&&pixelY==0)cornerRadius=uMaskCornerRadius[0];if(pixelX==1&&pixelY==0)cornerRadius=uMaskCornerRadius[1];if(pixelX==0&&pixelY==1)cornerRadius=uMaskCornerRadius[2];if(pixelX==1&&pixelY==1)cornerRadius=uMaskCornerRadius[3];float cornerOffset=sign(cornerRadius)*length(max(abs(gl_FragCoord.xy-size-offset)-size+cornerRadius,0.0))-cornerRadius;float cornerOpacity=1.0-smoothstep(0.0,1.0,cornerOffset);a*=cornerOpacity;if(uAntialias==1){vec2 scaledPoint=vec2(vTexCoord.x*uTextureSize.x,vTexCoord.y*uTextureSize.y);a*=smoothstep(0.0,1.0,uTextureSize.x-scaledPoint.x);a*=smoothstep(0.0,1.0,uTextureSize.y-scaledPoint.y);a*=smoothstep(0.0,1.0,scaledPoint.x);a*=smoothstep(0.0,1.0,scaledPoint.y);}vec4 color=texture(uTexture,vTexCoord);if(uClarityKernelWeight!=-1.0){color=applyConvolutionMatrix(color,uClarityKernel[0],uClarityKernel[1],uClarityKernel[2],uClarityKernel[3],uClarityKernel[4],uClarityKernel[5],uClarityKernel[6],uClarityKernel[7],uClarityKernel[8],uClarityKernelWeight);}color=blendPremultipliedAlpha(color,texture(uTextureBlend,vTexCoord));color=applyGamma(color,uColorGamma);color=applyColorMatrix(color,uColorMatrix,uColorOffset);color*=a;if(uColorVignette!=0.0){vec2 pos=gl_FragCoord.xy-offset;color=applyVignette(color,pos,center-offset,uColorVignette);}color=blendPremultipliedAlpha(color,texture(uTextureOverlay,vTexCoord));if(overlayColorAlpha<=0.0){color*=1.0-uOverlayColor.a;}color*=uOpacity;fragColor=color;}\"; // eslint-disable-line\n\nvar imageVertexShader = \"\\n##head\\n##text\\nvoid main(){vTexCoord=aTexCoord;gl_Position=uMatrix*aPosition;}\"; // eslint-disable-line\n\nvar pathVertexShader = \"#version 300 es\\n\\nin vec4 aPosition;in vec2 aNormal;in float aMiter;out vec2 vNormal;out float vMiter;out float vWidth;uniform float uWidth;uniform float uSharpness;uniform mat4 uMatrix;void main(){vMiter=aMiter;vNormal=aNormal;vWidth=(uWidth*.5)+uSharpness;gl_Position=uMatrix*vec4(aPosition.x+(aNormal.x*vWidth*aMiter),aPosition.y+(aNormal.y*vWidth*aMiter),0,1);}\"; // eslint-disable-line\n\nvar pathFragmentShader = \"\\n##head\\n##mask\\nin vec2 vNormal;in float vMiter;in float vWidth;uniform float uWidth;uniform vec4 uColor;uniform vec4 uCanvasColor;void main(){vec4 fillColor=uColor;float m=mask(gl_FragCoord.x,gl_FragCoord.y,uMaskBounds,uMaskOpacity);if(m<=0.0)discard;fillColor.a*=clamp(smoothstep(vWidth-.5,vWidth-1.0,abs(vMiter)*vWidth),0.0,1.0);fillColor.rgb*=fillColor.a;fillColor.rgb*=m;fillColor.rgb+=(1.0-m)*(uCanvasColor.rgb*fillColor.a);fragColor=fillColor;}\"; // eslint-disable-line\n\nvar rectVertexShader = \"\\n##head\\n##text\\nin vec2 aRectCoord;out vec2 vRectCoord;void main(){vTexCoord=aTexCoord;vRectCoord=aRectCoord;\\n##matrix\\n}\"; // eslint-disable-line\n\nvar rectFragmentShader = \"\\n##head\\n##mask\\nin vec2 vTexCoord;in vec2 vRectCoord;uniform sampler2D uTexture;uniform vec4 uTextureColor;uniform float uTextureOpacity;uniform vec2 uRepeat;uniform vec4 uColor;uniform float uCornerRadius[4];uniform vec2 uSize;uniform vec2 uPosition;uniform vec4 uCanvasColor;uniform int uInverted;uniform float uEdgeFeather;void main(){\\n##init\\n##colorize\\n##rectaa\\n##cornerradius\\n##maskfeatherapply\\nif(uInverted==1)a=1.0-a;\\n##maskapply\\n##fragcolor\\n}\"; // eslint-disable-line\n\nvar ellipseVertexShader = \"\\n##head\\n##text\\nout vec2 vTexCoordDouble;void main(){vTexCoordDouble=vec2(aTexCoord.x*2.0-1.0,aTexCoord.y*2.0-1.0);vTexCoord=aTexCoord;\\n##matrix\\n}\"; // eslint-disable-line\n\nvar ellipseFragmentShader = \"\\n##head\\n##mask\\nin vec2 vTexCoord;in vec2 vTexCoordDouble;uniform sampler2D uTexture;uniform float uTextureOpacity;uniform vec2 uRepeat;uniform vec2 uRadius;uniform vec4 uColor;uniform int uInverted;uniform vec4 uCanvasColor;void main(){\\n##init\\nfloat ar=uRadius.x/uRadius.y;vec2 rAA=vec2(uRadius.x-1.0,uRadius.y-(1.0/ar));vec2 scaledPointSq=vec2((vTexCoordDouble.x*uRadius.x)*(vTexCoordDouble.x*uRadius.x),(vTexCoordDouble.y*uRadius.y)*(vTexCoordDouble.y*uRadius.y));float p=(scaledPointSq.x/(uRadius.x*uRadius.x))+(scaledPointSq.y/(uRadius.y*uRadius.y));float pAA=(scaledPointSq.x/(rAA.x*rAA.x))+(scaledPointSq.y/(rAA.y*rAA.y));a=smoothstep(1.0,p/pAA,p);if(uInverted==1)a=1.0-a;\\n##maskapply\\n##fragcolor\\n}\"; // eslint-disable-line\n\nvar triangleVertexShader = \"\\n##head\\nvoid main(){\\n##matrix\\n}\"; // eslint-disable-line\n\nvar triangleFragmentShader = \"\\n##head\\n##mask\\nuniform vec4 uColor;uniform vec4 uCanvasColor;void main(){vec4 fillColor=uColor;\\n##maskapply\\nfillColor.rgb*=fillColor.a;fillColor.rgb*=m;fillColor.rgb+=(1.0-m)*(uCanvasColor.rgb*fillColor.a);fragColor=fillColor;}\"; // eslint-disable-line\n\nconst getIndex = (arr, index) => {\n const l = arr.length;\n if (index >= l)\n return arr[index % l];\n if (index < 0)\n return arr[(index % l) + l];\n return arr[index];\n};\nconst getPolygonArea = (vertices) => {\n let area = 0, i, va, vb, w, h;\n const l = vertices.length;\n for (i = 0; i < l; i++) {\n va = vertices[i];\n vb = vertices[(i + 1) % l];\n w = vb.x - va.x;\n h = (vb.y + va.y) / 2;\n area += w * h;\n }\n return area;\n};\nconst isPointInTriangle = (p, a, b, c) => {\n const ab = vectorCreate(b.x - a.x, b.y - a.y);\n const bc = vectorCreate(c.x - b.x, c.y - b.y);\n const ca = vectorCreate(a.x - c.x, a.y - c.y);\n const ap = vectorCreate(p.x - a.x, p.y - a.y);\n const bp = vectorCreate(p.x - b.x, p.y - b.y);\n const cp = vectorCreate(p.x - c.x, p.y - c.y);\n const c1 = vectorCross(ab, ap);\n const c2 = vectorCross(bc, bp);\n const c3 = vectorCross(ca, cp);\n return c1 <= 0 && c2 <= 0 && c3 <= 0;\n};\nconst isIntersectingSelf = (vertices) => {\n // test if lines intersect\n const l = vertices.length;\n for (let i = 0; i < l; i++) {\n const line = lineCreate(vertices[i], getIndex(vertices, i + 1));\n const intersections = linePointsIntersection(line, vertices, {\n ignoreIdenticalLines: true,\n breakOnIntersection: true,\n });\n // is intersecting\n if (intersections)\n return true;\n }\n return false;\n};\nconst triangulate = (vertices) => {\n // not enough vertices\n if (vertices.length < 3)\n return [];\n // test if is simple polygon\n if (isIntersectingSelf(vertices))\n return [];\n // if vertices aren't clockwise, reverse\n if (getPolygonArea(vertices) < 0)\n vertices.reverse();\n // TODO: remove 180 degree corners, vertices should either be convex (< 180) or reflex (> 180), this happens when three vertices are in the same line\n // triangulate\n const totalVertices = vertices.length;\n const indexList = [...Array(totalVertices).keys()];\n const triangles = [];\n // faster to declare vars out of loop\n let i, j, a, b, c, va, vb, vc, vaToVb, vaToVc, isEar, p;\n let safe = 128;\n while (indexList.length > 3) {\n // safeguard against infinite loops\n if (safe <= 0)\n return [];\n // lower safeguard\n safe--;\n // start calculating triangles\n for (i = 0; i < indexList.length; i++) {\n a = indexList[i];\n b = getIndex(indexList, i - 1);\n c = getIndex(indexList, i + 1);\n va = vertices[a];\n vb = vertices[b];\n vc = vertices[c];\n vaToVb = vectorCreate(vb.x - va.x, vb.y - va.y);\n vaToVc = vectorCreate(vc.x - va.x, vc.y - va.y);\n // is not an ear if is reflex corner (angle > 180)\n if (vectorCross(vaToVb, vaToVc) < 0)\n continue;\n isEar = true;\n for (j = 0; j < totalVertices; j++) {\n // skip as is me\n if (j === a || j === b || j === c)\n continue;\n // is not an ear if another vertex falls in this triangle\n p = vertices[j];\n if (isPointInTriangle(p, vb, va, vc)) {\n isEar = false;\n break;\n }\n }\n // skip\n if (!isEar)\n continue;\n // found ear\n triangles.push([vb, va, vc]);\n // no longer interested in this index\n indexList.splice(i, 1);\n break;\n }\n }\n // finale triangle\n triangles.push([vertices[indexList[0]], vertices[indexList[1]], vertices[indexList[2]]]);\n return triangles;\n};\nconst createPathSegment = (vertices, index, a, b, c) => {\n const ab = vectorNormalize(vectorCreate(b.x - a.x, b.y - a.y));\n const bc = vectorNormalize(vectorCreate(c.x - b.x, c.y - b.y));\n const tangent = vectorNormalize(vectorCreate(ab.x + bc.x, ab.y + bc.y));\n const miter = vectorCreate(-tangent.y, tangent.x);\n const normal = vectorCreate(-ab.y, ab.x);\n // limit miter length (TEMP fix to prevent spikes, should eventually add caps)\n const miterLength = Math.min(1 / vectorDot(miter, normal), 5);\n vertices[index] = b.x;\n vertices[index + 1] = b.y;\n vertices[index + 2] = miter.x * miterLength;\n vertices[index + 3] = miter.y * miterLength;\n vertices[index + 4] = -1;\n vertices[index + 5] = b.x;\n vertices[index + 6] = b.y;\n vertices[index + 7] = miter.x * miterLength;\n vertices[index + 8] = miter.y * miterLength;\n vertices[index + 9] = 1;\n};\nconst createPathVertices = (points, close) => {\n let a, b, c, i = 0;\n const l = points.length;\n const stride = 10;\n const vertices = new Float32Array((close ? l + 1 : l) * stride);\n const first = points[0];\n const last = points[l - 1];\n for (i = 0; i < l; i++) {\n a = points[i - 1];\n b = points[i];\n c = points[i + 1];\n // if previous point not available use inverse vector to next point\n if (!a)\n a = close ? last : vectorCreate(b.x + (b.x - c.x), b.y + (b.y - c.y));\n // if next point not available use inverse vector from previous point\n if (!c)\n c = close ? first : vectorCreate(b.x + (b.x - a.x), b.y + (b.y - a.y));\n createPathSegment(vertices, i * stride, a, b, c);\n }\n if (close)\n createPathSegment(vertices, l * stride, last, first, points[1]);\n return vertices;\n};\nconst rectPointsToVertices = (points) => {\n // [tl, tr, br, bl]\n // B D\n // | \\ |\n // A C\n const vertices = new Float32Array(8);\n vertices[0] = points[3].x;\n vertices[1] = points[3].y;\n vertices[2] = points[0].x;\n vertices[3] = points[0].y;\n vertices[4] = points[2].x;\n vertices[5] = points[2].y;\n vertices[6] = points[1].x;\n vertices[7] = points[1].y;\n return vertices;\n};\nconst createRectPoints = (rect, rotation = 0, flipX, flipY) => {\n const corners = rectGetCorners(rect);\n const cx = rect.x + rect.width * 0.5;\n const cy = rect.y + rect.height * 0.5;\n if (flipX || flipY)\n vectorsFlip(corners, flipX, flipY, cx, cy);\n if (rotation !== 0)\n vectorsRotate(corners, rotation, cx, cy);\n return corners;\n};\nconst createEllipseOutline = (x, y, width, height, rotation, flipX, flipY) => {\n const rx = Math.abs(width) * 0.5;\n const ry = Math.abs(height) * 0.5;\n const size = Math.abs(width) + Math.abs(height);\n const precision = Math.max(20, Math.round(size / 6));\n return ellipseToPolygon(vectorCreate(x + rx, y + ry), rx, ry, rotation, flipX, flipY, precision);\n};\nconst createRectOutline = (x, y, width, height, rotation, cornerRadius, flipX, flipY) => {\n const points = [];\n if (cornerRadius.every((v) => v === 0)) {\n points.push(vectorCreate(x, y), // top left corner\n vectorCreate(x + width, y), // top right corner\n vectorCreate(x + width, y + height), // bottom right corner\n vectorCreate(x, y + height) // bottom left corner\n );\n }\n else {\n const [tl, tr, bl, br] = cornerRadius;\n const l = x;\n const r = x + width;\n const t = y;\n const b = y + height;\n // start at end of top left corner\n points.push(vectorCreate(l + tl, t));\n pushRectCornerPoints(points, r - tr, t + tr, tr, -1);\n // move to bottom right corner\n points.push(vectorCreate(r, t + tr));\n pushRectCornerPoints(points, r - br, b - br, br, 0);\n // move to bottom left corner\n points.push(vectorCreate(r - br, b));\n pushRectCornerPoints(points, l + bl, b - bl, bl, 1);\n // move to top left corner\n points.push(vectorCreate(l, b - bl));\n pushRectCornerPoints(points, l + tl, t + tl, tl, 2);\n }\n if (flipX || flipY)\n vectorsFlip(points, flipX, flipY, x + width * 0.5, y + height * 0.5);\n if (rotation)\n vectorsRotate(points, rotation, x + width * 0.5, y + height * 0.5);\n return points;\n};\nconst pushRectCornerPoints = (points, x, y, radius, offset) => {\n const precision = Math.min(20, Math.max(4, Math.round(radius / 2)));\n let p = 0;\n let s = 0;\n let rx = 0;\n let ry = 0;\n let i = 0;\n for (; i < precision; i++) {\n p = i / precision;\n s = offset * HALF_PI + p * HALF_PI;\n rx = radius * Math.cos(s);\n ry = radius * Math.sin(s);\n points.push(vectorCreate(x + rx, y + ry));\n }\n};\n\nlet limit = null;\nvar getWebGLTextureSizeLimit = () => {\n if (limit !== null)\n return limit;\n let canvas = h('canvas');\n const gl = getWebGLContext(canvas);\n limit = gl ? gl.getParameter(gl.MAX_TEXTURE_SIZE) : undefined;\n releaseCanvas(canvas);\n canvas = undefined;\n return limit;\n};\n\nvar isChrome = () => isBrowser() && !!window['chrome'];\n\n// prettier-ignore\n// B D\n// | \\ |\n// A C\nconst RECT_UV = new Float32Array([\n 0.0, 1.0,\n 0.0, 0.0,\n 1.0, 1.0,\n 1.0, 0.0, // D\n]);\n// prettier-ignore\n// BROWSER BUG FIX: Here to fix Firefox video texture rotation issue\nconst RECT_UV_ROTATED = new Float32Array([\n 1.0, 0.0,\n 0.0, 0.0,\n 1.0, 1.0,\n 0.0, 1.0, // D\n]);\nconst SHOULD_APPLY_ROTATED_UV_TO_VIDEO_TEXTURES = isBrowser() && isFirefox();\nconst CLARITY_IDENTITY = [0, 0, 0, 0, 1, 0, 0, 0, 0];\nconst COLOR_MATRIX_IDENTITY$1 = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];\nconst TEXTURE_TRANSPARENT_INDEX = 0;\nconst TEXTURE_PREVIEW_BLEND_INDEX = 1;\nconst TEXTURE_PREVIEW_OVERLAY_INDEX = 2;\nconst TEXTURE_PREVIEW_INDEX = 3;\nconst TEXTURE_SHAPE_INDEX = 4;\nconst COLOR_TRANSPARENT = [0, 0, 0, 0];\nconst NO_CORNERS = [0, 0, 0, 0];\nconst calculateBackgroundUVMap = (width, height, backgroundSize, backgroundPosition, viewPixelDensity) => {\n if (!backgroundSize || !backgroundPosition)\n return RECT_UV;\n let x = backgroundPosition.x / backgroundSize.width;\n let y = backgroundPosition.y / backgroundSize.height;\n let w = width / backgroundSize.width / viewPixelDensity;\n let h = height / backgroundSize.height / viewPixelDensity;\n w -= x;\n h -= y;\n // prettier-ignore\n // B D\n // | \\ |\n // A C\n // bottom left\n const ax = -x;\n const ay = h;\n // top left\n const bx = -x;\n const by = -y;\n // bottom right\n const cx = w;\n const cy = h;\n // top right\n const dx = w;\n const dy = -y;\n return new Float32Array([\n ax,\n ay,\n bx,\n by,\n cx,\n cy,\n dx,\n dy, // D\n ]);\n};\nconst limitCornerRadius = (r, size) => {\n return Math.floor(clamp(r, 0, Math.min((size.width - 1) * 0.5, (size.height - 1) * 0.5)));\n};\nvar createWebGLCanvas = (canvas, options = {}) => {\n // defaults\n const { alpha = false } = options;\n // go\n const viewSize = { width: 0, height: 0 };\n const viewSizeVisual = { width: 0, height: 0 };\n const textureSizeLimit = getWebGLTextureSizeLimit() || 1024;\n let viewAspectRatio;\n let viewPixelDensity;\n let pathSharpness;\n const overlayMatrixCanvas = mat4Create();\n const imageFrameBuffer = mat4Create();\n let overlayMatrix;\n let maskTop;\n let maskRight;\n let maskBottom;\n let maskLeft;\n let maskOpacity;\n let maskBounds;\n let IMAGE_MASK_FEATHER; // updated when viewport is resized\n let RECT_MASK_FEATHER;\n let CANVAS_COLOR_R = 0;\n let CANVAS_COLOR_G = 0;\n let CANVAS_COLOR_B = 0;\n let CANVAS_COLOR_A = 1;\n const indexTextureMap = new Map([]);\n // resize view\n const resize = (width, height, pixelDensity) => {\n // density\n viewPixelDensity = pixelDensity;\n // set path sharpness factor so paths look a little nicer on low res displays\n pathSharpness = viewPixelDensity === 1 ? 0.75 : 1;\n // visual size\n viewSizeVisual.width = width;\n viewSizeVisual.height = height;\n // size\n viewSize.width = width * viewPixelDensity;\n viewSize.height = height * viewPixelDensity;\n // calculate the aspect ratio, we use this to determine quad size\n viewAspectRatio = getAspectRatio(viewSize.width, viewSize.height);\n // sync dimensions with image data\n canvas.width = viewSize.width;\n canvas.height = viewSize.height;\n // update canvas markup matrix\n mat4Ortho(overlayMatrixCanvas, 0, viewSize.width, viewSize.height, 0, -1, 1);\n IMAGE_MASK_FEATHER = [1, 0, 1, 0, 1, viewSizeVisual.width, 1, viewSizeVisual.width];\n };\n const enablePreviewStencil = () => {\n gl.stencilOp(gl.KEEP, gl.KEEP, gl.REPLACE);\n gl.stencilFunc(gl.ALWAYS, 1, 0xff);\n gl.stencilMask(0xff);\n };\n const applyPreviewStencil = () => {\n gl.stencilFunc(gl.EQUAL, 1, 0xff);\n gl.stencilMask(0x00);\n };\n const disablePreviewStencil = () => {\n gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP);\n gl.stencilFunc(gl.ALWAYS, 1, 0xff);\n gl.stencilMask(0xff);\n };\n // fov is fixed\n const FOV = degToRad(30);\n const FOV_TAN_HALF = Math.tan(FOV / 2);\n // get gl drawing context\n const gl = getWebGLContext(canvas, {\n alpha,\n antialias: false,\n premultipliedAlpha: true,\n stencil: true,\n });\n // no drawing context received, exit\n if (!gl)\n return;\n // enable derivatives\n gl.getExtension('OES_standard_derivatives');\n // toggle gl settings\n gl.disable(gl.DEPTH_TEST);\n // need stencil to draw overlay on preview only\n gl.enable(gl.STENCIL_TEST);\n // set blend mode, we need it for alpha blending\n gl.enable(gl.BLEND);\n /*\n https://webglfundamentals.org/webgl/lessons/webgl-and-alpha.html\n most if not all Canvas 2D implementations work with pre-multiplied alpha.\n That means when you transfer them to WebGL and UNPACK_PREMULTIPLY_ALPHA_WEBGL\n is false WebGL will convert them back to un-premultipiled.\n With pre-multiplied alpha on, [1, .5, .5, 0] does not exist, it's always [0, 0, 0, 0]\n */\n gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !alpha && isFirefox() ? false : true);\n // something to look into:\n // gl.UNPACK_COLORSPACE_CONVERSION_WEBGL\n // stencil test always passes\n disablePreviewStencil();\n // let's create textures\n const transparentTexture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, transparentTexture);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, // width\n 1, // height\n 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array(COLOR_TRANSPARENT) // transparent background\n );\n indexTextureMap.set(TEXTURE_TRANSPARENT_INDEX, transparentTexture);\n // create image markup texture and framebuffer\n const imageOverlayTexture = gl.createTexture();\n indexTextureMap.set(TEXTURE_PREVIEW_OVERLAY_INDEX, imageOverlayTexture);\n const overlayFramebuffer = gl.createFramebuffer();\n // create image blend texture and framebuffer\n const imageBlendTexture = gl.createTexture();\n indexTextureMap.set(TEXTURE_PREVIEW_BLEND_INDEX, imageBlendTexture);\n const blendFramebuffer = gl.createFramebuffer();\n // #region image\n // create default pixel drawing program, supports what we need\n const imageShader = createShader(gl, imageVertexShader, imageFragmentShader, ['aPosition', 'aTexCoord'], [\n 'uMatrix',\n 'uTexture',\n 'uTextureBlend',\n 'uTextureOverlay',\n 'uTextureSize',\n 'uColorGamma',\n 'uColorVignette',\n 'uColorOffset',\n 'uColorMatrix',\n 'uClarityKernel',\n 'uClarityKernelWeight',\n 'uOpacity',\n 'uMaskOpacity',\n 'uMaskBounds',\n 'uMaskCornerRadius',\n 'uMaskFeather',\n 'uOverlayColor',\n 'uAntialias',\n ]);\n // create image buffers\n const imagePositionsBuffer = gl.createBuffer();\n const texturePositionsBuffer = gl.createBuffer();\n gl.bindBuffer(gl.ARRAY_BUFFER, texturePositionsBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, RECT_UV, gl.STATIC_DRAW);\n // BROWSER BUG FIX: here to fix firefox video texture rotation issue\n const texturePositionsRotatedBuffer = gl.createBuffer();\n gl.bindBuffer(gl.ARRAY_BUFFER, texturePositionsRotatedBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, RECT_UV_ROTATED, gl.STATIC_DRAW);\n const drawImage = (texture, textureSize, originX, originY, translateX, translateY, rotateX, rotateY, rotateZ, scale, colorMatrix = COLOR_MATRIX_IDENTITY$1, opacity = 1, clarity, gamma = 1, vignette = 0, maskFeather = IMAGE_MASK_FEATHER, maskCornerRadius = NO_CORNERS, imageOverlayColor = COLOR_TRANSPARENT, enableOverlay = false, enableBlend = false, enableAntialiasing = true) => {\n // update image texture\n const imageWidth = textureSize.width * viewPixelDensity;\n const imageHeight = textureSize.height * viewPixelDensity;\n const l = imageWidth * -0.5;\n const t = imageHeight * 0.5;\n const r = imageWidth * 0.5;\n const b = imageHeight * -0.5;\n // prettier-ignore\n // B D\n // | \\ |\n // A C\n const imagePositions = new Float32Array([\n l, b, 0,\n l, t, 0,\n r, b, 0,\n r, t, 0, // D\n ]);\n gl.bindBuffer(gl.ARRAY_BUFFER, imagePositionsBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, imagePositions, gl.STATIC_DRAW);\n // move image backwards so it's presented in actual pixel size\n const viewZ = // 1. we calculate the z offset required to have the\n \n // image height match the view height\n /* /|\n / |\n / | height / 2\n / |\n f / 2 /__z_|\n \\ |\n \\ |\n \\ |\n \\ |\n \\|\n */\n (textureSize.height / 2 / FOV_TAN_HALF) *\n // 2. we want to render the image at the actual height, viewsize / height gets us results in a 1:1 presentation\n (viewSize.height / textureSize.height) *\n // 3. z has to be negative, therefor multiply by -1\n -1;\n // convert to pixel density\n translateX *= viewPixelDensity;\n translateY *= viewPixelDensity;\n originX *= viewPixelDensity;\n originY *= viewPixelDensity;\n // get shader params\n const { program, locations } = imageShader;\n // apply\n const matrix = mat4Create();\n mat4Perspective(matrix, FOV, viewAspectRatio, 1, -viewZ * 2);\n // move image\n mat4Translate(matrix, translateX, -translateY, viewZ);\n // set rotation origin in view\n mat4Translate(matrix, originX, -originY, 0);\n // rotate image\n mat4RotateZ(matrix, -rotateZ);\n // resize\n mat4Scale(matrix, scale);\n // reset rotation origin\n mat4Translate(matrix, -originX, originY, 0);\n // flip\n mat4RotateY(matrix, rotateY);\n mat4RotateX(matrix, rotateX);\n //\n // tell context to draw preview\n //\n gl.useProgram(program);\n gl.enableVertexAttribArray(locations.aPosition);\n gl.enableVertexAttribArray(locations.aTexCoord);\n // set up texture\n gl.uniform1i(locations.uTexture, TEXTURE_PREVIEW_INDEX);\n gl.uniform2f(locations.uTextureSize, textureSize.width, textureSize.height);\n gl.activeTexture(gl.TEXTURE0 + TEXTURE_PREVIEW_INDEX);\n gl.bindTexture(gl.TEXTURE_2D, texture);\n // set up blend texture\n const blendTextureIndex = enableBlend\n ? TEXTURE_PREVIEW_BLEND_INDEX\n : TEXTURE_TRANSPARENT_INDEX;\n const blendTexture = indexTextureMap.get(blendTextureIndex);\n gl.uniform1i(locations.uTextureBlend, blendTextureIndex);\n gl.activeTexture(gl.TEXTURE0 + blendTextureIndex);\n gl.bindTexture(gl.TEXTURE_2D, blendTexture);\n // set up markup texture\n const overlayTextureIndex = enableOverlay\n ? TEXTURE_PREVIEW_OVERLAY_INDEX\n : TEXTURE_TRANSPARENT_INDEX;\n const overlayTexture = indexTextureMap.get(overlayTextureIndex);\n gl.uniform1i(locations.uTextureOverlay, overlayTextureIndex);\n gl.activeTexture(gl.TEXTURE0 + overlayTextureIndex);\n gl.bindTexture(gl.TEXTURE_2D, overlayTexture);\n // set up buffers\n gl.bindBuffer(gl.ARRAY_BUFFER, imagePositionsBuffer);\n gl.vertexAttribPointer(locations.aPosition, 3, gl.FLOAT, false, 0, 0);\n // BROWSER BUG FIX: Here to fix Firefox bug with rotated video textures\n const rotateUV = SHOULD_APPLY_ROTATED_UV_TO_VIDEO_TEXTURES && textureIsRotatedVideo(texture);\n gl.bindBuffer(gl.ARRAY_BUFFER, rotateUV ? texturePositionsRotatedBuffer : texturePositionsBuffer);\n gl.vertexAttribPointer(locations.aTexCoord, 2, gl.FLOAT, false, 0, 0);\n // update matrix\n gl.uniformMatrix4fv(locations.uMatrix, false, matrix);\n // overlay color\n gl.uniform4fv(locations.uOverlayColor, imageOverlayColor);\n // convolution\n let clarityWeight;\n if (!clarity || arrayEqual(clarity, CLARITY_IDENTITY)) {\n clarity = CLARITY_IDENTITY;\n clarityWeight = -1;\n }\n else {\n clarityWeight = clarity.reduce((prev, curr) => prev + curr, 0);\n clarityWeight = clarityWeight <= 0 ? 1 : clarityWeight;\n }\n gl.uniform1fv(locations.uClarityKernel, clarity);\n gl.uniform1f(locations.uClarityKernelWeight, clarityWeight);\n gl.uniform1f(locations.uColorGamma, 1.0 / gamma);\n gl.uniform1f(locations.uColorVignette, vignette);\n gl.uniform1i(locations.uAntialias, enableAntialiasing ? 1 : 0);\n // set color matrix values\n gl.uniform4f(locations.uColorOffset, colorMatrix[4], colorMatrix[9], colorMatrix[14], colorMatrix[19]);\n gl.uniformMatrix4fv(locations.uColorMatrix, false, [\n colorMatrix[0],\n colorMatrix[1],\n colorMatrix[2],\n colorMatrix[3],\n colorMatrix[5],\n colorMatrix[6],\n colorMatrix[7],\n colorMatrix[8],\n colorMatrix[10],\n colorMatrix[11],\n colorMatrix[12],\n colorMatrix[13],\n colorMatrix[15],\n colorMatrix[16],\n colorMatrix[17],\n colorMatrix[18],\n ]);\n // opacity level\n gl.uniform1f(locations.uOpacity, opacity);\n // mask\n gl.uniform1f(locations.uMaskOpacity, maskOpacity);\n gl.uniform1fv(locations.uMaskBounds, maskBounds);\n gl.uniform1fv(locations.uMaskCornerRadius, maskCornerRadius.map((v) => v * viewPixelDensity));\n gl.uniform1fv(locations.uMaskFeather, maskFeather.map((v, i) => (i % 2 === 0 ? v : v * viewPixelDensity)));\n gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);\n gl.disableVertexAttribArray(locations.aPosition);\n gl.disableVertexAttribArray(locations.aTexCoord);\n };\n //#endregion\n // #region path\n const pathShader = createShader(gl, pathVertexShader, pathFragmentShader, ['aPosition', 'aNormal', 'aMiter'], ['uColor', 'uCanvasColor', 'uMatrix', 'uWidth', 'uSharpness', 'uMaskBounds', 'uMaskOpacity']);\n const pathBuffer = gl.createBuffer();\n // this fixes a render issue with Chrome 113 (#1176)\n // issue was that a line is drawn from crop corner to top left\n if (isChrome()) {\n gl.bindBuffer(gl.ARRAY_BUFFER, pathBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, 1, gl.DYNAMIC_DRAW);\n }\n const strokePath = (points, width, color, close = false) => {\n const { program, locations } = pathShader;\n gl.useProgram(program);\n gl.enableVertexAttribArray(locations.aPosition);\n gl.enableVertexAttribArray(locations.aNormal);\n gl.enableVertexAttribArray(locations.aMiter);\n const vertices = createPathVertices(points, close);\n const stride = Float32Array.BYTES_PER_ELEMENT * 5;\n const normalOffset = Float32Array.BYTES_PER_ELEMENT * 2; // at position 2\n const miterOffset = Float32Array.BYTES_PER_ELEMENT * 4; // at position 4\n gl.uniform1f(locations.uWidth, width);\n gl.uniform1f(locations.uSharpness, pathSharpness);\n gl.uniform4fv(locations.uColor, color);\n gl.uniformMatrix4fv(locations.uMatrix, false, overlayMatrix);\n gl.uniform4f(locations.uCanvasColor, CANVAS_COLOR_R, CANVAS_COLOR_G, CANVAS_COLOR_B, CANVAS_COLOR_A);\n gl.uniform1fv(locations.uMaskBounds, maskBounds);\n gl.uniform1f(locations.uMaskOpacity, maskOpacity);\n gl.bindBuffer(gl.ARRAY_BUFFER, pathBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aPosition, 2, gl.FLOAT, false, stride, 0);\n gl.vertexAttribPointer(locations.aNormal, 2, gl.FLOAT, false, stride, normalOffset);\n gl.vertexAttribPointer(locations.aMiter, 1, gl.FLOAT, false, stride, miterOffset);\n gl.drawArrays(gl.TRIANGLE_STRIP, 0, vertices.length / 5);\n gl.disableVertexAttribArray(locations.aPosition);\n gl.disableVertexAttribArray(locations.aNormal);\n gl.disableVertexAttribArray(locations.aMiter);\n };\n //#endregion\n // #region triangle\n const triangleShader = createShader(gl, triangleVertexShader, triangleFragmentShader, ['aPosition'], ['uColor', 'uCanvasColor', 'uMatrix', 'uMaskBounds', 'uMaskOpacity']);\n const trianglesBuffer = gl.createBuffer();\n const fillTriangles = (vertices, backgroundColor) => {\n const { program, locations } = triangleShader;\n gl.useProgram(program);\n gl.enableVertexAttribArray(locations.aPosition);\n gl.uniform4fv(locations.uColor, backgroundColor);\n gl.uniformMatrix4fv(locations.uMatrix, false, overlayMatrix);\n gl.uniform1fv(locations.uMaskBounds, maskBounds);\n gl.uniform1f(locations.uMaskOpacity, maskOpacity);\n gl.uniform4f(locations.uCanvasColor, CANVAS_COLOR_R, CANVAS_COLOR_G, CANVAS_COLOR_B, CANVAS_COLOR_A);\n gl.bindBuffer(gl.ARRAY_BUFFER, trianglesBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aPosition, 2, gl.FLOAT, false, 0, 0);\n gl.drawArrays(gl.TRIANGLES, 0, vertices.length / 2);\n gl.disableVertexAttribArray(locations.aPosition);\n return vertices;\n };\n // const fillTriangles: (vertices: Float32Array, backgroundColor: number[]) => {};\n //#endregion\n // #region rect\n const rectShaderAttributes = ['aPosition', 'aTexCoord', 'aRectCoord'];\n const rectShaderUniforms = [\n 'uTexture',\n 'uColor',\n 'uMatrix',\n 'uCanvasColor',\n 'uTextureColor',\n 'uTextureOpacity',\n 'uRepeat',\n 'uPosition',\n 'uSize',\n 'uMaskBounds',\n 'uMaskOpacity',\n 'uMaskFeather',\n 'uCornerRadius',\n 'uInverted',\n 'uEdgeFeather',\n ];\n const rectShader = createShader(gl, rectVertexShader, rectFragmentShader, rectShaderAttributes, rectShaderUniforms);\n const rectBuffer = gl.createBuffer();\n const rectTextureBuffer = gl.createBuffer();\n const rectCornerBuffer = gl.createBuffer();\n const fillRect = (vertices, width, height, cornerRadius, backgroundColor, backgroundImage = transparentTexture, backgroundRepeat, opacity = 1.0, colorFilter = COLOR_TRANSPARENT, uv = RECT_UV, maskFeather = RECT_MASK_FEATHER, feather = 1, inverted) => {\n const { program, locations } = rectShader;\n gl.useProgram(program);\n gl.enableVertexAttribArray(locations.aPosition);\n gl.enableVertexAttribArray(locations.aTexCoord);\n gl.enableVertexAttribArray(locations.aRectCoord);\n gl.uniform4fv(locations.uColor, backgroundColor);\n gl.uniform2fv(locations.uSize, [width, height]);\n gl.uniform2fv(locations.uPosition, [vertices[2], vertices[3]]);\n gl.uniform2fv(locations.uRepeat, backgroundRepeat);\n gl.uniform1i(locations.uInverted, inverted ? 1 : 0);\n gl.uniform1fv(locations.uCornerRadius, cornerRadius);\n gl.uniform4f(locations.uCanvasColor, CANVAS_COLOR_R, CANVAS_COLOR_G, CANVAS_COLOR_B, CANVAS_COLOR_A);\n // mask\n gl.uniform1fv(locations.uMaskFeather, maskFeather.map((v, i) => (i % 2 === 0 ? v : v * viewPixelDensity)));\n gl.uniform1fv(locations.uMaskBounds, maskBounds);\n gl.uniform1f(locations.uMaskOpacity, maskOpacity);\n gl.uniform1f(locations.uEdgeFeather, Math.max(0, feather));\n gl.uniformMatrix4fv(locations.uMatrix, false, overlayMatrix);\n gl.uniform1i(locations.uTexture, TEXTURE_SHAPE_INDEX);\n gl.uniform4fv(locations.uTextureColor, colorFilter);\n gl.uniform1f(locations.uTextureOpacity, opacity);\n gl.activeTexture(gl.TEXTURE0 + TEXTURE_SHAPE_INDEX);\n gl.bindTexture(gl.TEXTURE_2D, backgroundImage);\n gl.bindBuffer(gl.ARRAY_BUFFER, rectTextureBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, uv, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aTexCoord, 2, gl.FLOAT, false, 0, 0);\n // we use these coordinates combined with the size of the rect to interpolate and alias edges\n gl.bindBuffer(gl.ARRAY_BUFFER, rectCornerBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, RECT_UV, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aRectCoord, 2, gl.FLOAT, false, 0, 0);\n gl.bindBuffer(gl.ARRAY_BUFFER, rectBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aPosition, 2, gl.FLOAT, false, 0, 0);\n gl.drawArrays(gl.TRIANGLE_STRIP, 0, vertices.length / 2);\n gl.disableVertexAttribArray(locations.aPosition);\n gl.disableVertexAttribArray(locations.aTexCoord);\n gl.disableVertexAttribArray(locations.aRectCoord);\n return vertices;\n };\n //#endregion\n // #region ellipse\n const ellipseShader = createShader(gl, ellipseVertexShader, ellipseFragmentShader, ['aPosition', 'aTexCoord'], [\n 'uTexture',\n 'uTextureOpacity',\n 'uRepeat',\n 'uColor',\n 'uCanvasColor',\n 'uMatrix',\n 'uRadius',\n 'uInverted',\n 'uMaskBounds',\n 'uMaskOpacity',\n ]);\n const ellipseBuffer = gl.createBuffer();\n const ellipseTextureBuffer = gl.createBuffer();\n const fillEllipse = (vertices, width, height, backgroundColor, backgroundImage = transparentTexture, uv = RECT_UV, opacity = 1.0, inverted = false) => {\n const { program, locations } = ellipseShader;\n gl.useProgram(program);\n gl.enableVertexAttribArray(locations.aPosition);\n gl.enableVertexAttribArray(locations.aTexCoord);\n gl.uniformMatrix4fv(locations.uMatrix, false, overlayMatrix);\n gl.uniform2fv(locations.uRadius, [width * 0.5, height * 0.5]);\n gl.uniform1i(locations.uInverted, inverted ? 1 : 0);\n gl.uniform4fv(locations.uColor, backgroundColor);\n gl.uniform4f(locations.uCanvasColor, CANVAS_COLOR_R, CANVAS_COLOR_G, CANVAS_COLOR_B, CANVAS_COLOR_A);\n gl.uniform2fv(locations.uRepeat, [1, 1]);\n gl.uniform1fv(locations.uMaskBounds, maskBounds);\n gl.uniform1f(locations.uMaskOpacity, maskOpacity);\n gl.uniform1i(locations.uTexture, TEXTURE_SHAPE_INDEX);\n gl.uniform1f(locations.uTextureOpacity, opacity);\n gl.activeTexture(gl.TEXTURE0 + TEXTURE_SHAPE_INDEX);\n gl.bindTexture(gl.TEXTURE_2D, backgroundImage);\n gl.bindBuffer(gl.ARRAY_BUFFER, ellipseTextureBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, uv, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aTexCoord, 2, gl.FLOAT, false, 0, 0);\n gl.bindBuffer(gl.ARRAY_BUFFER, ellipseBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n gl.vertexAttribPointer(locations.aPosition, 2, gl.FLOAT, false, 0, 0);\n gl.drawArrays(gl.TRIANGLE_STRIP, 0, vertices.length / 2);\n gl.disableVertexAttribArray(locations.aPosition);\n gl.disableVertexAttribArray(locations.aTexCoord);\n };\n //#endregion\n //\n // draw calls\n //\n const drawPath = (points, rotation = 0, // not implemented yet\n flipX = false, // not implemented yet\n flipY = false, // not implemented yet\n strokeWidth, strokeColor, strokeClose, backgroundColor, opacity) => {\n // is no line\n if (points.length < 2)\n return;\n // manipulate points\n const computedPoints = points.map((p) => ({\n x: p.x * viewPixelDensity,\n y: p.y * viewPixelDensity,\n }));\n // const center = convexPolyCentroid(clonedPoints);\n // if (flipX || flipY) vectorsFlip(clonedPoints, flipX, flipY, center.x, center.y);\n // if (rotation !== 0) vectorsRotate(clonedPoints, rotation, center.x, center.y);\n const computedStrokeWidth = strokeWidth * viewPixelDensity;\n // stroke\n if (computedStrokeWidth > 0)\n strokePath(computedPoints, computedStrokeWidth, applyOpacity(strokeColor, opacity), strokeClose);\n // need to fill polygon?\n if (computedPoints.length < 3 ||\n !backgroundColor ||\n backgroundColor[3] === 0 ||\n !strokeClose)\n return;\n const triangles = triangulate(computedPoints);\n const vertices = new Float32Array(triangles.length * 6);\n triangles.forEach(([a, b, c], i) => {\n const index = i * 6;\n vertices[index + 0] = a.x;\n vertices[index + 1] = a.y;\n vertices[index + 2] = b.x;\n vertices[index + 3] = b.y;\n vertices[index + 4] = c.x;\n vertices[index + 5] = c.y;\n });\n fillTriangles(vertices, applyOpacity(backgroundColor, opacity));\n };\n const drawRect = (rect, rotation = 0, flipX = false, flipY = false, cornerRadius, backgroundColor, backgroundImage, backgroundSize = undefined, backgroundPosition = undefined, backgroundRepeat = false, backgroundUVMap = undefined, strokeWidth, strokeColor, opacity, maskFeather = undefined, feather = 1 / viewPixelDensity, colorize, inverted) => {\n // clone first\n const rectOut = rectMultiply(rectClone$1(rect), viewPixelDensity);\n // has radius, doesn't matter for coordinates\n const cornerRadiusOut = cornerRadius\n .map((r) => limitCornerRadius(r || 0, rect))\n .map((r) => r * viewPixelDensity);\n // should fill\n if (backgroundColor || backgroundImage) {\n // adjust for edge anti-aliasing, if we don't do this the\n // visible rectangle will be 1 pixel smaller than the actual rectangle\n const rectFill = rectClone$1(rectOut);\n rectFill.x -= 0.5;\n rectFill.y -= 0.5;\n rectFill.width += 1;\n rectFill.height += 1;\n const points = createRectPoints(rectFill, rotation, flipX, flipY);\n const vertices = rectPointsToVertices(points);\n let color;\n if (colorize) {\n color = applyOpacity(colorize);\n // as 0 transparancy is used to test if the colorize filter should be applied we set it to 0.001\n if (color[3] === 0)\n color[3] = 0.001;\n }\n // calculate repeat count\n const fillRepeat = backgroundSize && backgroundRepeat\n ? [\n rectFill.width / backgroundSize.width,\n rectFill.height / backgroundSize.height,\n ]\n : [1, 1];\n fillRect(vertices, rectFill.width, rectFill.height, cornerRadiusOut, applyOpacity(backgroundColor, opacity), backgroundImage, fillRepeat, opacity, color, backgroundUVMap\n ? new Float32Array(backgroundUVMap)\n : calculateBackgroundUVMap(rectFill.width, rectFill.height, backgroundSize, backgroundPosition, viewPixelDensity), maskFeather, feather * viewPixelDensity, inverted);\n }\n // should draw outline\n if (strokeWidth) {\n // fixes issue where stroke would render weirdly\n strokeWidth = Math.min(strokeWidth, rectOut.width, rectOut.height);\n strokePath(\n // rect out is already multiplied by pixel density\n createRectOutline(rectOut.x, rectOut.y, rectOut.width, rectOut.height, rotation, cornerRadiusOut, flipX, flipY), strokeWidth * viewPixelDensity, applyOpacity(strokeColor, opacity), true);\n }\n };\n const drawEllipse = (center, rx, ry, rotation, flipX, flipY, backgroundColor, backgroundImage, backgroundSize = undefined, backgroundPosition = undefined, backgroundUVMap = undefined, strokeWidth, strokeColor, opacity, inverted) => {\n const rectOut = rectMultiply(rectCreate(center.x - rx, center.y - ry, rx * 2, ry * 2), viewPixelDensity);\n if (backgroundColor || backgroundImage) {\n // adjust for edge anti-aliasing, if we don't do this the\n // visible rectangle will be 1 pixel smaller than the actual rectangle\n const rectFill = rectClone$1(rectOut);\n rectFill.x -= 0.5;\n rectFill.y -= 0.5;\n rectFill.width += 1.0;\n rectFill.height += 1.0;\n const points = createRectPoints(rectFill, rotation, flipX, flipY);\n const vertices = rectPointsToVertices(points);\n fillEllipse(vertices, rectFill.width, rectFill.height, applyOpacity(backgroundColor, opacity), backgroundImage, backgroundUVMap\n ? new Float32Array(backgroundUVMap)\n : calculateBackgroundUVMap(rectFill.width, rectFill.height, backgroundSize, backgroundPosition, viewPixelDensity), opacity, inverted);\n }\n if (strokeWidth) {\n strokePath(\n // rect out is already multiplied by pixeldensity\n createEllipseOutline(rectOut.x, rectOut.y, rectOut.width, rectOut.height, rotation, flipX, flipY), strokeWidth * viewPixelDensity, applyOpacity(strokeColor, opacity), true);\n }\n };\n //#endregion\n const glTextures = new Map();\n const imageFramebufferSize = {};\n imageFramebufferSize[TEXTURE_PREVIEW_OVERLAY_INDEX] = { width: 0, height: 0 };\n imageFramebufferSize[TEXTURE_PREVIEW_BLEND_INDEX] = { width: 0, height: 0 };\n const imageFrameBufferMaxSize = 4096;\n const drawToImageFramebuffer = (index, buffer, imageSize, pixelDensity = 1) => {\n const textureScalar = Math.min(Math.min(imageFrameBufferMaxSize, textureSizeLimit) / imageSize.width, Math.min(imageFrameBufferMaxSize, textureSizeLimit) / imageSize.height, pixelDensity);\n const textureWidth = Math.floor(textureScalar * imageSize.width);\n const textureHeight = Math.floor(textureScalar * imageSize.height);\n if (!sizeEqual(imageSize, imageFramebufferSize[index])) {\n // update preview markup texture\n gl.bindTexture(gl.TEXTURE_2D, indexTextureMap.get(index));\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, textureWidth, textureHeight, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n // set the filtering, we don't need mips\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n gl.bindFramebuffer(gl.FRAMEBUFFER, buffer);\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, indexTextureMap.get(index), 0);\n // remember so we know when to update the framebuffer\n imageFramebufferSize[index] = imageSize;\n }\n else {\n gl.bindFramebuffer(gl.FRAMEBUFFER, buffer);\n }\n // switch transformMatrix\n const w = imageSize.width * viewPixelDensity;\n const h = imageSize.height * viewPixelDensity;\n mat4Ortho(imageFrameBuffer, 0, w, h, 0, -1, 1);\n mat4Translate(imageFrameBuffer, 0, h, 0);\n mat4ScaleX(imageFrameBuffer, 1);\n mat4ScaleY(imageFrameBuffer, -1);\n overlayMatrix = imageFrameBuffer;\n // framebuffer lives in image space\n gl.viewport(0, 0, textureWidth, textureHeight);\n // always transparent\n gl.colorMask(true, true, true, true);\n gl.clearColor(0, 0, 0, 0);\n gl.clear(gl.COLOR_BUFFER_BIT);\n // update rect mask\n RECT_MASK_FEATHER = [\n 1,\n 0,\n 1,\n 0,\n 1,\n Math.max(viewSize.width, imageSize.width),\n 1,\n Math.max(viewSize.width, imageSize.width),\n ];\n };\n const textureDelete = (texture, options) => {\n const { forceRelease = false } = options || {};\n const { src } = glTextures.get(texture);\n // need to force release canvas elements when they're no longer used\n if (src instanceof HTMLCanvasElement) {\n if (!forceRelease && !src.dataset.retain) {\n releaseCanvas(src);\n }\n }\n glTextures.delete(texture);\n gl.deleteTexture(texture);\n };\n const resetCanvasMatrix = () => {\n mat4Ortho(overlayMatrixCanvas, 0, viewSize.width, viewSize.height, 0, -1, 1);\n };\n const textureIsRotatedVideo = (texture) => glTextures.get(texture).isRotatedVideo;\n return {\n // draw api\n drawPath,\n drawRect,\n drawEllipse,\n drawImage,\n // texture filters\n textureFilterNearest: gl.NEAREST,\n textureFilterLinear: gl.LINEAR,\n textureClamp: gl.CLAMP_TO_EDGE,\n textureRepeat: gl.REPEAT,\n //#region texture management\n textureCreate: () => {\n return gl.createTexture();\n },\n textureUpdate: (texture, source, options) => {\n glTextures.set(texture, {\n src: source,\n options,\n isRotatedVideo: source.nodeName === 'VIDEO' &&\n ((source.dataset && source.dataset.rotation == 90) ||\n source.dataset.rotation == 270),\n });\n return updateTexture(gl, texture, source, options);\n },\n textureGetSize: (texture) => {\n const { src, options } = glTextures.get(texture);\n const size = sizeCreateFromAny(src);\n if (options.scalar)\n return sizeApply(size, (v) => v / options.scalar);\n return size;\n },\n textureDelete,\n //#endregion\n enablePreviewStencil,\n applyPreviewStencil,\n disablePreviewStencil,\n setCanvasColor(color) {\n CANVAS_COLOR_R = color[0];\n CANVAS_COLOR_G = color[1];\n CANVAS_COLOR_B = color[2];\n CANVAS_COLOR_A = alpha ? color[3] : 1;\n gl.clear(gl.COLOR_BUFFER_BIT);\n },\n resetCanvasMatrix,\n updateCanvasMatrix(imageSize, origin, translation, scale, rotate) {\n const imageWidth = imageSize.width;\n const imageHeight = imageSize.height;\n const originX = viewSize.width * (0.5 / viewPixelDensity);\n const originY = viewSize.height * (0.5 / viewPixelDensity);\n const imageOrigin = {\n x: originX + (translation.x + origin.x),\n y: originY + (translation.y + origin.y),\n };\n const imageVisualCenter = {\n x: imageOrigin.x - origin.x,\n y: imageOrigin.y - origin.y,\n };\n const imageAbsoluteCenter = {\n x: imageWidth * 0.5,\n y: imageHeight * 0.5,\n };\n vectorRotate(imageVisualCenter, rotate.z, imageOrigin);\n vectorScale(imageVisualCenter, scale, imageOrigin);\n const imageTranslation = {\n x: imageVisualCenter.x - imageAbsoluteCenter.x,\n y: imageVisualCenter.y - imageAbsoluteCenter.y,\n };\n mat4Translate(overlayMatrixCanvas, imageTranslation.x * viewPixelDensity, imageTranslation.y * viewPixelDensity, 0);\n // we apply transforms from center of image\n mat4Translate(overlayMatrixCanvas, imageAbsoluteCenter.x * viewPixelDensity, imageAbsoluteCenter.y * viewPixelDensity, 0);\n mat4RotateZ(overlayMatrixCanvas, rotate.z);\n const flipX = rotate.x > Math.PI / 2;\n mat4RotateX(overlayMatrixCanvas, flipX ? Math.PI : 0);\n const flipY = rotate.y > Math.PI / 2;\n mat4RotateY(overlayMatrixCanvas, flipY ? Math.PI : 0);\n mat4Scale(overlayMatrixCanvas, scale);\n mat4Translate(overlayMatrixCanvas, -imageAbsoluteCenter.x * viewPixelDensity, -imageAbsoluteCenter.y * viewPixelDensity, 0);\n },\n drawToCanvas() {\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n // switch transformMatrix\n overlayMatrix = overlayMatrixCanvas;\n // tell webgl about the viewport\n gl.viewport(0, 0, gl.drawingBufferWidth, gl.drawingBufferHeight);\n // black (or other color depending on background)\n gl.colorMask(true, true, true, true);\n gl.clearColor(CANVAS_COLOR_R, CANVAS_COLOR_G, CANVAS_COLOR_B, CANVAS_COLOR_A);\n // gl.clearColor(0.25, 0.25, 0.25, 1); // for debugging\n gl.clear(gl.COLOR_BUFFER_BIT);\n // update rect mask\n RECT_MASK_FEATHER = [1, 0, 1, 0, 1, viewSize.width, 1, viewSize.width];\n },\n drawToImageBlendBuffer(imageSize, pixelDensity) {\n drawToImageFramebuffer(TEXTURE_PREVIEW_BLEND_INDEX, blendFramebuffer, imageSize, pixelDensity);\n },\n drawToImageOverlayBuffer(imageSize, pixelDensity) {\n drawToImageFramebuffer(TEXTURE_PREVIEW_OVERLAY_INDEX, overlayFramebuffer, imageSize, pixelDensity);\n },\n // set mask\n enableMask(rect, opacity) {\n const maskX = rect.x * viewPixelDensity;\n const maskY = rect.y * viewPixelDensity;\n const maskWidth = rect.width * viewPixelDensity;\n const maskHeight = rect.height * viewPixelDensity;\n maskLeft = maskX;\n maskRight = maskLeft + maskWidth;\n maskTop = viewSize.height - maskY;\n maskBottom = viewSize.height - (maskY + maskHeight);\n maskOpacity = 1.0 - opacity;\n maskBounds = [maskTop, maskRight, maskBottom, maskLeft];\n },\n disableMask() {\n maskLeft = 0;\n maskRight = viewSize.width;\n maskTop = viewSize.height;\n maskBottom = 0;\n maskOpacity = 1;\n maskBounds = [maskTop, maskRight, maskBottom, maskLeft];\n },\n // canvas\n resize,\n release() {\n // remove all stored textures\n const textures = Array.from(glTextures.keys());\n textures.forEach((texture) => textureDelete(texture, { forceRelease: true }));\n glTextures.clear();\n // remove indexed textures\n indexTextureMap.forEach((texture) => {\n gl.deleteTexture(texture);\n });\n indexTextureMap.clear();\n // clean up shaders\n imageShader.destroy();\n pathShader.destroy();\n triangleShader.destroy();\n rectShader.destroy();\n ellipseShader.destroy();\n // clear canvas\n canvas.width = 1;\n canvas.height = 1;\n canvas = undefined;\n },\n };\n};\n\nvar numberToEven = (n) => (n % 2 == 0 ? n : n + 1);\n\n// quickly reads canvas data to editor state, replaces createDefaultImageReader\nconst createCanvasReader = () => {\n return [\n [\n async (state, options, onprogress) => {\n const { src } = state;\n const width = parseInt(src.width, 10);\n const height = parseInt(src.height, 10);\n const dest = await canvasToBlob(src);\n return {\n ...state,\n dest,\n size: {\n width,\n height,\n },\n };\n },\n 'read-canvas',\n ],\n ];\n};\nvar imageStateToCanvas = (src, imageState, options) => {\n const { targetCanvas, targetSize, disableDraw = false, shapePreprocessor } = options || {};\n const canvas = targetCanvas || document.createElement('canvas');\n const { crop, colorMatrix, convolutionMatrix } = imageState;\n const isVideoSrc = isVideoElement(src);\n const srcSize = {\n width: isVideoSrc ? src.videoWidth : src.width,\n height: isVideoSrc ? src.videoHeight : src.height,\n };\n // calculate target bounds dimensions\n const { upscale = false, fit = 'contain', width: targetWidth, height: targetHeight, } = targetSize || {};\n // scale canvas\n let canvasScalar = 1;\n if (fit === 'contain') {\n canvasScalar = Math.min((targetWidth || Number.MAX_SAFE_INTEGER) / crop.width, (targetHeight || Number.MAX_SAFE_INTEGER) / crop.height);\n }\n else if (fit === 'cover') {\n canvasScalar = Math.max((targetWidth || crop.width) / crop.width, (targetHeight || crop.height) / crop.height);\n }\n // can't upscale, let's limit scalar to 1\n if (!upscale)\n canvasScalar = Math.min(canvasScalar, 1);\n const canvasScaledWidth = Math.floor(crop.width * canvasScalar);\n const canvasScaledHeight = Math.floor(crop.height * canvasScalar);\n const canvasWidth = isVideoSrc ? numberToEven(canvasScaledWidth) : canvasScaledWidth;\n const canvasHeight = isVideoSrc ? numberToEven(canvasScaledHeight) : canvasScaledHeight;\n const glCanvas = createWebGLCanvas(canvas, { alpha: true });\n glCanvas.resize(canvasWidth, canvasHeight, 1);\n const glTexture = glCanvas.textureCreate();\n glCanvas.setCanvasColor([0, 0, 0, 0]);\n glCanvas.drawToCanvas();\n glCanvas.disableMask();\n glCanvas.disablePreviewStencil();\n // color matrix\n let computedColorMatrix;\n {\n const colorMatrices = Object.values(colorMatrix || {}).filter(Boolean);\n if (colorMatrices.length)\n computedColorMatrix = getColorMatrixFromColorMatrices(colorMatrices);\n }\n const canvasRect = { x: 0, y: 0, width: canvasWidth, height: canvasHeight };\n const { origin, translation, rotation, scale } = calculateImageTransforms(canvasRect, canvasRect, srcSize, crop, {\n x: 0,\n y: 0,\n width: canvasWidth,\n height: canvasHeight,\n }, canvasScalar, { x: 0, y: 0 }, 1, imageState.rotation, imageState.flipX, imageState.flipY);\n const glTransforms = [\n srcSize,\n origin.x,\n origin.y,\n translation.x,\n translation.y,\n rotation.x,\n rotation.y,\n rotation.z,\n scale,\n computedColorMatrix,\n 1,\n // @ts-ignore\n convolutionMatrix && convolutionMatrix.clarity,\n isNumber(imageState.gamma) ? imageState.gamma : 1,\n imageState.vignette || 0,\n [1, 0, 1, 0, 1, canvasHeight, 1, canvasWidth],\n undefined,\n undefined,\n undefined,\n undefined,\n false,\n ];\n // shapes\n let shapesOverlayDrawn = false;\n const hasShapes = imageState.decoration.length || imageState.annotation.length;\n const glShapeTexture = hasShapes && glCanvas.textureCreate();\n // api\n const updateTexture = () => {\n glCanvas.textureUpdate(glTexture, src, {\n filterParam: glCanvas.textureFilterLinear,\n wrapParam: glCanvas.textureClamp,\n });\n };\n const draw = () => {\n // make sure texture is at the correct frame when it's a video\n updateTexture();\n // draw to the canvas\n glCanvas.drawImage(glTexture, ...glTransforms);\n // draw to the canvas\n if (!hasShapes || !shapesOverlayDrawn)\n return;\n glCanvas.drawRect(canvasRect, 0, false, false, [0, 0, 0, 0], undefined, glShapeTexture);\n };\n const prepare = async () => {\n if (!hasShapes)\n return;\n // draw shapes on transparent canvas that has size of input\n const { dest } = await processImage(h('canvas', srcSize), {\n shapePreprocessor,\n imageReader: createCanvasReader(),\n imageWriter: createDefaultImageWriter$1({\n format: 'canvas',\n }),\n imageState: {\n ...imageState,\n redaction: [],\n frame: undefined,\n gamma: undefined,\n convolutionMatrix: undefined,\n colorMatrix: undefined,\n backgroundColor: [0, 0, 0, 0],\n backgroundImage: undefined,\n trim: undefined,\n vignette: undefined,\n volume: undefined,\n },\n });\n // only needs to run once\n glCanvas.textureUpdate(glShapeTexture, dest, {\n filterParam: glCanvas.textureFilterLinear,\n wrapParam: glCanvas.textureClamp,\n });\n // now ready to draw shapes texture\n shapesOverlayDrawn = true;\n // first draw\n !disableDraw && draw();\n };\n // load texture\n updateTexture();\n // first draw\n !disableDraw && draw();\n return {\n canvas,\n prepare,\n redraw: draw,\n destroy: () => {\n glCanvas.release();\n },\n };\n};\n\nvar scrambleEffect = (options, done) => {\n const { imageData, amount = 1 } = options;\n const intensity = Math.round(Math.max(1, amount) * 2);\n const range = Math.round(intensity * 0.5);\n const inputWidth = imageData.width;\n const inputHeight = imageData.height;\n const outputData = new Uint8ClampedArray(inputWidth * inputHeight * 4);\n const inputData = imageData.data;\n let randomData;\n let i = 0, x, y, r;\n let xoffset = 0;\n let yoffset = 0;\n let index;\n const l = inputWidth * inputHeight * 4 - 4;\n for (y = 0; y < inputHeight; y++) {\n randomData = crypto.getRandomValues(new Uint8ClampedArray(inputHeight));\n for (x = 0; x < inputWidth; x++) {\n r = randomData[y] / 255;\n xoffset = 0;\n yoffset = 0;\n if (r < 0.5) {\n xoffset = (-range + Math.round(Math.random() * intensity)) * 4;\n }\n if (r > 0.5) {\n yoffset = (-range + Math.round(Math.random() * intensity)) * (inputWidth * 4);\n }\n // limit to image data\n index = Math.min(Math.max(0, i + xoffset + yoffset), l);\n outputData[i] = inputData[index];\n outputData[i + 1] = inputData[index + 1];\n outputData[i + 2] = inputData[index + 2];\n outputData[i + 3] = inputData[index + 3];\n i += 4;\n }\n }\n // @ts-ignore\n done(null, {\n data: outputData,\n width: imageData.width,\n height: imageData.height,\n });\n};\n\n// basic blur covolution matrix\nconst BLUR_MATRIX = [0.0625, 0.125, 0.0625, 0.125, 0.25, 0.125, 0.0625, 0.125, 0.0625];\nvar imageDataScramble = async (inputData, options = {}) => {\n if (!inputData)\n return;\n const { width, height } = inputData;\n const { dataSize = 96, dataSizeScalar = 1, scrambleAmount = 4, blurAmount = 6, outputFormat = 'canvas', backgroundColor = [0, 0, 0], } = options;\n const size = Math.round(dataSize * dataSizeScalar);\n const scalar = Math.min(size / width, size / height);\n const outputWidth = Math.floor(width * scalar);\n const outputHeight = Math.floor(height * scalar);\n // draw low res preview, add margin so blur isn't transparent\n const scaledOutputCanvas = (h('canvas', { width: outputWidth, height: outputHeight }));\n const ctx = scaledOutputCanvas.getContext('2d', { willReadFrequently: true });\n // fill background on transparent images\n backgroundColor.length = 3; // prevent transparent colors\n ctx.fillStyle = colorArrayToRGBA(backgroundColor);\n ctx.fillRect(0, 0, outputWidth, outputHeight);\n if (isImageData(inputData)) {\n // temporarily draw to canvas so we can draw image data to scaled context\n const transferCanvas = h('canvas', { width, height });\n transferCanvas\n .getContext('2d', { willReadFrequently: true })\n .putImageData(inputData, 0, 0);\n // draw to scaled context\n ctx.drawImage(transferCanvas, 0, 0, outputWidth, outputHeight);\n // release memory\n releaseCanvas(transferCanvas);\n }\n else {\n // bitmap data\n ctx.drawImage(inputData, 0, 0, outputWidth, outputHeight);\n }\n // get scaled image data for scrambling\n const imageData = ctx.getImageData(0, 0, outputWidth, outputHeight);\n // filters to apply\n const filters = [];\n // add scramble filter\n if (scrambleAmount > 0)\n filters.push([scrambleEffect, { amount: scrambleAmount }]);\n // add blur filters\n if (blurAmount > 0)\n for (let i = 0; i < blurAmount; i++) {\n filters.push([convolutionEffect, { matrix: BLUR_MATRIX }]);\n }\n let imageDataScrambled;\n if (filters.length) {\n // builds effect chain\n const chain = (transforms, i) => `(err, imageData) => {\n(${transforms[i][0].toString()})(Object.assign({ imageData: imageData }, filterInstructions[${i}]), \n${transforms[i + 1] ? chain(transforms, i + 1) : 'done'})\n}`;\n const filterChain = `function (options, done) {\nconst filterInstructions = options.filterInstructions;\nconst imageData = options.imageData;\n(${chain(filters, 0)})(null, imageData)\n}`;\n // scramble image data in separate thread\n const imageDataObjectScrambled = await thread(filterChain, [\n {\n imageData: imageData,\n filterInstructions: filters.map((t) => t[1]),\n },\n ], [imageData.data.buffer]);\n imageDataScrambled = imageDataObjectToImageData(imageDataObjectScrambled);\n }\n else {\n imageDataScrambled = imageData;\n }\n if (outputFormat === 'canvas') {\n // put back scrambled data\n ctx.putImageData(imageDataScrambled, 0, 0);\n // return canvas\n return scaledOutputCanvas;\n }\n return imageDataScrambled;\n};\n\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nfunction is_date(obj) {\n return Object.prototype.toString.call(obj) === '[object Date]';\n}\n\nfunction get_interpolator(a, b) {\n if (a === b || a !== a)\n return () => a;\n const type = typeof a;\n if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {\n throw new Error('Cannot interpolate values of different type');\n }\n if (Array.isArray(a)) {\n const arr = b.map((bi, i) => {\n return get_interpolator(a[i], bi);\n });\n return t => arr.map(fn => fn(t));\n }\n if (type === 'object') {\n if (!a || !b)\n throw new Error('Object cannot be null');\n if (is_date(a) && is_date(b)) {\n a = a.getTime();\n b = b.getTime();\n const delta = b - a;\n return t => new Date(a + t * delta);\n }\n const keys = Object.keys(b);\n const interpolators = {};\n keys.forEach(key => {\n interpolators[key] = get_interpolator(a[key], b[key]);\n });\n return t => {\n const result = {};\n keys.forEach(key => {\n result[key] = interpolators[key](t);\n });\n return result;\n };\n }\n if (type === 'number') {\n const delta = b - a;\n return t => a + t * delta;\n }\n throw new Error(`Cannot interpolate ${type} values`);\n}\nfunction tweened(value, defaults = {}) {\n const store = writable(value);\n let task;\n let target_value = value;\n function set(new_value, opts) {\n if (value == null) {\n store.set(value = new_value);\n return Promise.resolve();\n }\n target_value = new_value;\n let previous_task = task;\n let started = false;\n let { delay = 0, duration = 400, easing = identity, interpolate = get_interpolator } = assign(assign({}, defaults), opts);\n if (duration === 0) {\n if (previous_task) {\n previous_task.abort();\n previous_task = null;\n }\n store.set(value = target_value);\n return Promise.resolve();\n }\n const start = now() + delay;\n let fn;\n task = loop(now => {\n if (now < start)\n return true;\n if (!started) {\n fn = interpolate(value, new_value);\n if (typeof duration === 'function')\n duration = duration(value, new_value);\n started = true;\n }\n if (previous_task) {\n previous_task.abort();\n previous_task = null;\n }\n const elapsed = now - start;\n if (elapsed > duration) {\n store.set(value = new_value);\n return false;\n }\n // @ts-ignore\n store.set(value = fn(easing(elapsed / duration)));\n return true;\n });\n return task.promise;\n }\n return {\n set,\n update: (fn, opts) => set(fn(target_value, value), opts),\n subscribe: store.subscribe\n };\n}\n\n// @ts-ignore\nfunction tick_spring(ctx, last_value, current_value, target_value) {\n if (typeof current_value === 'number') {\n // @ts-ignore\n const delta = target_value - current_value;\n // @ts-ignore\n const velocity = (current_value - last_value) / (ctx.dt || 1 / 60); // guard div by 0\n const spring = ctx.opts.stiffness * delta;\n const damper = ctx.opts.damping * velocity;\n const acceleration = (spring - damper) * ctx.inv_mass;\n const d = (velocity + acceleration) * ctx.dt;\n if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) {\n return target_value; // settled\n }\n else {\n ctx.settled = false; // signal loop to keep ticking\n // @ts-ignore\n return current_value + d;\n }\n }\n else if (isArray(current_value)) {\n // @ts-ignore\n return current_value.map((_, i) => tick_spring(ctx, last_value[i], current_value[i], target_value[i]));\n }\n else if (typeof current_value === 'object') {\n const next_value = {};\n // @ts-ignore\n for (const k in current_value) {\n // @ts-ignore\n next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);\n }\n // @ts-ignore\n return next_value;\n }\n else {\n throw new Error(`Cannot spring ${typeof current_value} values`);\n }\n}\n// export interface Spring {\n// set: (new_value: any, opts?: SpringUpdateOpts) => Promise<void>;\n// update: (fn: Function, opts?: SpringUpdateOpts) => Promise<void>;\n// subscribe: Function;\n// precision: number;\n// damping: number;\n// stiffness: number;\n// }\nfunction spring(value, opts = {}) {\n const store = writable(value);\n const { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;\n let last_time;\n let task;\n let current_token;\n let last_value = value;\n let target_value = value;\n let inv_mass = 1;\n let inv_mass_recovery_rate = 0;\n let cancel_task = false;\n function set(new_value, opts = {}) {\n target_value = new_value;\n const token = (current_token = {});\n if (value == null || opts.hard || (spring.stiffness >= 1 && spring.damping >= 1)) {\n cancel_task = true; // cancel any running animation\n last_time = null;\n last_value = new_value;\n store.set((value = target_value));\n return Promise.resolve();\n }\n else if (opts.soft) {\n const rate = opts.soft === true ? 0.5 : +opts.soft;\n inv_mass_recovery_rate = 1 / (rate * 60);\n inv_mass = 0; // infinite mass, unaffected by spring forces\n }\n if (!task) {\n last_time = null;\n cancel_task = false;\n const ctx = {\n inv_mass: undefined,\n opts: spring,\n settled: true,\n dt: undefined,\n };\n task = loop((now) => {\n if (last_time === null)\n last_time = now;\n if (cancel_task) {\n cancel_task = false;\n task = null;\n return false;\n }\n inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);\n // altered so doesn't create a new object\n ctx.inv_mass = inv_mass;\n ctx.opts = spring;\n ctx.settled = true; // tick_spring may signal false\n ctx.dt = ((now - last_time) * 60) / 1000;\n const next_value = tick_spring(ctx, last_value, value, target_value);\n last_time = now;\n last_value = value;\n store.set((value = next_value));\n if (ctx.settled)\n task = null;\n return !ctx.settled;\n });\n }\n return new Promise((fulfil) => {\n task.promise.then(() => {\n if (token === current_token)\n fulfil();\n });\n });\n }\n const spring = {\n set,\n update: (fn, opts) => set(fn(target_value, value), opts),\n subscribe: store.subscribe,\n stiffness,\n damping,\n precision,\n };\n return spring;\n}\n\nvar prefersReducedMotion = readable(false, (set) => {\n const mql = window.matchMedia('(prefers-reduced-motion:reduce)');\n const test = () => set(mql.matches);\n test();\n mql.addListener(test);\n return () => mql.removeListener(test);\n});\n\nvar hasResizeObserver = () => 'ResizeObserver' in window;\n\n//\nconst rectNext = rectCreateEmpty();\nconst updateNodeRect = (node, x, y, width, height) => {\n if (!node.rect)\n node.rect = rectCreateEmpty();\n const rect = node.rect;\n rectUpdate(rectNext, x, y, width, height);\n if (rectEqual(rect, rectNext))\n return;\n rectUpdateWithRect(rect, rectNext);\n node.dispatchEvent(new CustomEvent('measure', { detail: rect }));\n};\n// measures the element\nconst r = Math.round;\nconst measureViewRect = (node) => {\n const clientRect = node.getBoundingClientRect();\n // no frame because root has zero size\n if (!frame)\n return;\n updateNodeRect(node, r(clientRect.x), r(clientRect.y), r(clientRect.width), r(clientRect.height));\n};\nconst measureOffset = (node) => {\n // no frame because root has zero size\n if (!frame)\n return;\n updateNodeRect(node, node.offsetLeft, node.offsetTop, node.offsetWidth, node.offsetHeight);\n};\n// holds all the elements to measure using requestAnimationFrame\nconst elements = [];\n// draw loop\nlet frame = undefined; /* is false when paused, is undefined when not initialised */\nfunction tick() {\n if (!elements.length) {\n frame = undefined;\n return;\n }\n elements.forEach((node) => node.measure(node));\n frame = requestAnimationFrame(tick);\n}\nlet observer; // ResizeObserver API not known by TypeScript\n// root observer\nlet rootObserver;\nlet rootRects = new Map([]);\nlet observedRoots = 0;\n// total observed elements so we know when we can unload observer\nlet observedNodes = 0;\nvar measurable = (node, options = {}) => {\n const { observePosition = false, observeViewRect = false, once = false, disabled = false, isMeasureRoot = false, } = options;\n // if is measure root we pause all measuring if this element doesn't have a size and no other roots actively measuring\n if (hasResizeObserver() && isMeasureRoot) {\n if (!rootObserver) {\n rootObserver = new ResizeObserver((entries) => {\n // update root rects\n entries.forEach((entry) => {\n rootRects.set(entry.target, entry.contentRect);\n });\n // loop over all observed roots, if all roots don't have a size we pause measuring\n const someVisible = Array.from(rootRects.values()).some(({ width, height }) => {\n return width > 0 && height > 0;\n });\n // if no roots visible, halt draw loop\n if (!someVisible) {\n frame && cancelAnimationFrame(frame);\n frame = false;\n }\n // if no draw loop and a root became visible\n else if (someVisible && frame === false) {\n tick();\n }\n });\n }\n // increase amount of observed roots so we know when no more roots are observed\n rootObserver.observe(node);\n observedRoots++;\n }\n // exit\n if (disabled)\n return;\n // use resize observe if available\n if (hasResizeObserver() && !observePosition && !observeViewRect) {\n // we only create one observer, it will observe all registered elements\n if (!observer) {\n observer = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n // no frame because root has zero size\n if (!frame)\n return;\n measureOffset(entry.target);\n });\n });\n }\n // start observing this node\n observer.observe(node);\n // measure our node for the first time\n measureOffset(node);\n // if should only measure once, remove now\n if (once) {\n observer.unobserve(node);\n }\n else {\n observedNodes++;\n }\n // and we done, need to return a clean up method for when our node is destroyed\n return {\n destroy() {\n // if is root\n if (isMeasureRoot && rootObserver) {\n rootRects.delete(node);\n rootObserver.unobserve(node);\n observedRoots--;\n if (observedRoots === 0) {\n rootObserver.disconnect();\n rootObserver = undefined;\n }\n }\n // already unobserved this node\n if (once)\n return;\n // stop observing this node\n observer.unobserve(node);\n // test if all nodes have been removed, if so, remove observer\n observedNodes--;\n if (observedNodes === 0) {\n observer.disconnect();\n observer = undefined;\n }\n },\n };\n }\n // set measure function\n node.measure = observeViewRect ? measureViewRect : measureOffset;\n // add so the element is measured\n elements.push(node);\n // start measuring on next frame, we set up a single measure loop,\n // the loop will check if there's still elements that need to be measured,\n // else it will stop running\n if (frame === undefined)\n frame = requestAnimationFrame(tick);\n // measure this element now\n node.measure(node);\n // remove method\n return {\n destroy() {\n // if is root\n if (isMeasureRoot && rootObserver) {\n rootRects.delete(node);\n rootObserver.unobserve(node);\n observedRoots--;\n if (observedRoots === 0) {\n rootObserver.disconnect();\n rootObserver = undefined;\n }\n }\n // clean up element\n const index = elements.indexOf(node);\n elements.splice(index, 1);\n delete node.measure;\n },\n };\n};\n\nvar focusvisible = (element) => {\n let isKeyboardInteraction = false;\n const handlePointerdown = () => {\n isKeyboardInteraction = false;\n };\n const handleKeydown = () => {\n isKeyboardInteraction = true;\n };\n const handleKeyup = () => {\n isKeyboardInteraction = false;\n };\n const handleFocus = (e) => {\n if (!isKeyboardInteraction)\n return;\n e.target.dataset.focusVisible = '';\n };\n const handleBlur = (e) => {\n delete e.target.dataset.focusVisible;\n };\n const map = {\n pointerdown: handlePointerdown,\n keydown: handleKeydown,\n keyup: handleKeyup,\n focus: handleFocus,\n blur: handleBlur,\n };\n Object.keys(map).forEach((event) => element.addEventListener(event, map[event], true));\n return {\n destroy() {\n Object.keys(map).forEach((event) => element.removeEventListener(event, map[event], true));\n },\n };\n};\n\nconst getResourceFromItem = async (item) => new Promise((resolve) => {\n if (item.kind === 'file')\n return resolve(item.getAsFile());\n item.getAsString(resolve);\n});\nconst getResourcesFromEvent = (e) => new Promise((resolve, reject) => {\n const { items } = e.dataTransfer;\n if (!items)\n return resolve([]);\n Promise.all(Array.from(items).map(getResourceFromItem))\n .then((res) => {\n resolve(res.filter((item) => (isBinary(item) && isImage(item)) || /^http/.test(item)));\n })\n .catch(reject);\n});\nvar dropable = (node, options = {}) => {\n const handleDragOver = (e) => {\n // need to be prevent default to allow drop\n e.preventDefault();\n };\n const handleDrop = async (e) => {\n e.preventDefault();\n e.stopPropagation(); // prevents parents from catching this drop\n try {\n const resources = await getResourcesFromEvent(e);\n node.dispatchEvent(new CustomEvent('dropfiles', {\n detail: {\n event: e,\n resources,\n },\n ...options,\n }));\n }\n catch (err) {\n // silent, wasn't able to catch\n }\n };\n node.addEventListener('drop', handleDrop);\n node.addEventListener('dragover', handleDragOver);\n // remove method\n return {\n destroy() {\n node.removeEventListener('drop', handleDrop);\n node.removeEventListener('dragover', handleDragOver);\n },\n };\n};\n\nlet result$4 = null;\nvar isSoftwareRendering = () => {\n if (result$4 === null) {\n if (isBrowser()) {\n const canvas = h('canvas');\n result$4 = !getWebGLContext(canvas, {\n failIfMajorPerformanceCaveat: true,\n });\n releaseCanvas(canvas);\n }\n else {\n result$4 = false;\n }\n }\n return result$4;\n};\n\nvar createTransparencyGrid = (size) => {\n const sizeHalf = size * 0.5;\n const canvas = h('canvas', {\n 'data-retain': true,\n width: size,\n height: size,\n });\n const ctx = canvas.getContext('2d');\n ctx.fillStyle = '#f0f';\n ctx.fillRect(0, 0, sizeHalf, sizeHalf);\n ctx.fillRect(sizeHalf, sizeHalf, sizeHalf, sizeHalf);\n return canvas;\n};\n\nvar durationToMilliseconds = (duration) => {\n let f = parseFloat(duration);\n if (/^[0-9]+s$/.test(duration))\n return f * 1000;\n return f;\n};\n\nvar isTexture = (texture) => texture instanceof WebGLTexture;\n\nvar backgroundCornersToUVMap = ([tl, tr, br, bl]) => {\n // tl, tr, br, bl -> bl, tl, br, tr\n // prettier-ignore\n // B D\n // | \\ |\n // A C\n return [\n bl.x,\n bl.y,\n tl.x,\n tl.y,\n br.x,\n br.y,\n tr.x,\n tr.y\n ];\n};\n\nvar isVideoPlaying = (video) => video.currentTime > 0 && !video.paused && !video.ended && video.readyState > 2;\n\nvar ctxDrawSelection = (ctx, shapes, options) => {\n const { selectionColor = [1, 1, 1], scalar = 1 } = options || {};\n let didDraw = false;\n for (const shape of shapes) {\n const shouldSubtract = shape.drawMode === 'subtract';\n // skip if can't subtract (this prevents first shape from drawing when subtract is set to true)\n if (shouldSubtract && !didDraw)\n continue;\n ctx.globalCompositeOperation = shouldSubtract ? 'destination-out' : 'source-over';\n // remember context state\n ctx.save();\n // clears previous shape's path\n ctx.beginPath();\n // center, needed for transforms\n const center = shapeGetCenter(shape);\n // scale context so we adjust for scaled down selection canvas (2048 max size)\n ctxScale(ctx, scalar, scalar);\n // rotate context\n ctxRotate(ctx, shape.rotation, center);\n // flip context\n ctxFlip(ctx, shape.flipX, shape.flipY, center);\n // draw rect\n if (shape.width) {\n drawRect(ctx, { ...shape, backgroundColor: selectionColor });\n }\n // draw line\n else if (shape.points) {\n drawPath(ctx, Object.assign({}, shape, shape.pathClose\n ? { backgroundColor: selectionColor, strokeColor: [0, 0, 0, 0] }\n : { strokeColor: selectionColor, strokeJoin: 'round', strokeCap: 'round' }));\n }\n // draw circle\n else if (shape.rx) {\n drawEllipse(ctx, {\n ...shape,\n backgroundColor: selectionColor,\n strokeColor: [0, 0, 0, 0],\n strokeJoin: 'round',\n strokeCap: 'round',\n });\n }\n ctx.restore();\n didDraw = true;\n }\n};\n\n/* src/core/ui/components/Canvas.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$T(ctx) {\n\tlet div;\n\tlet canvas_1;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcanvas_1 = element(\"canvas\");\n\t\t\tattr(div, \"class\", \"PinturaCanvas\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, canvas_1);\n\t\t\t/*canvas_1_binding*/ ctx[36](canvas_1);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(canvas_1, \"measure\", /*measure_handler*/ ctx[37]),\n\t\t\t\t\taction_destroyer(measurable.call(null, canvas_1))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp: noop,\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*canvas_1_binding*/ ctx[36](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst SELECTION_MAX_SIZE = 2048;\nlet throttledMinRedrawDist = 48;\n\nfunction instance$U($$self, $$props, $$invalidate) {\n\tlet canDraw;\n\tlet drawUpdate;\n\tlet $maskFrameOpacityStore;\n\tlet $imageOverlayColor;\n\tlet $maskOpacityStore;\n\tlet $mask;\n\tlet $background;\n\tconst Vec4Empty = [0, 0, 0, 0];\n\n\t// just so we can re-use one empty vector\n\tconst EmptyVector = vectorCreateEmpty();\n\n\t// create grid texture\n\tconst TransparencyGrid = isBrowser() && createTransparencyGrid(128);\n\n\t// used to dispatch the 'measure' event\n\tconst dispatch = createEventDispatcher();\n\n\tlet { isAnimated } = $$props;\n\tlet { isTransparent } = $$props;\n\tlet { maskRect } = $$props;\n\tlet { maskOpacity = 1 } = $$props;\n\tlet { maskFrameOpacity = 0.95 } = $$props;\n\tlet { maskMarkupOpacity = 1 } = $$props;\n\tlet { clipAnnotationsToImage = true } = $$props;\n\tlet { pixelRatio = 1 } = $$props;\n\tlet { textPixelRatio = pixelRatio } = $$props;\n\tlet { backgroundColor } = $$props;\n\tlet { willRender = passthrough } = $$props;\n\tlet { didRender = passthrough } = $$props;\n\tlet { willRequest = undefined } = $$props;\n\tlet { loadImageData = passthrough } = $$props;\n\tlet { enableGrid = false } = $$props;\n\tlet { gridColors = undefined } = $$props;\n\tlet { gridSize = undefined } = $$props;\n\tlet { gridOpacity = 0 } = $$props;\n\tlet { images = [] } = $$props;\n\tlet { interfaceImages = [] } = $$props;\n\tlet { selectionColor = undefined } = $$props;\n\n\t// internal props\n\tlet canvas;\n\n\tlet canvasGL = null;\n\tlet width = null;\n\tlet height = null;\n\n\t// springyness for main preview\n\tconst updateSpring = (spring, value) => spring.set(value, { hard: !isAnimated });\n\n\tconst SPRING_PROPS = { precision: 0.0001 };\n\tconst SPRING_PROPS_FRACTION = { precision: SPRING_PROPS.precision * 0.01 };\n\n\t// Editor UI\n\tlet backgroundColorAnimationDuration = 0;\n\n\tconst background = tweened(undefined, { duration: 0 });\n\tcomponent_subscribe($$self, background, value => $$invalidate(35, $background = value));\n\tconst maskOpacityStore = spring(1, SPRING_PROPS_FRACTION);\n\tcomponent_subscribe($$self, maskOpacityStore, value => $$invalidate(34, $maskOpacityStore = value));\n\tconst maskFrameOpacityStore = spring(1, SPRING_PROPS_FRACTION);\n\tcomponent_subscribe($$self, maskFrameOpacityStore, value => $$invalidate(50, $maskFrameOpacityStore = value));\n\tconst mask = writable();\n\tcomponent_subscribe($$self, mask, value => $$invalidate(52, $mask = value));\n\tconst imageOverlayColor = writable();\n\tcomponent_subscribe($$self, imageOverlayColor, value => $$invalidate(51, $imageOverlayColor = value));\n\n\t//#region selection\n\tconst selectionCache = {};\n\n\tconst shouldRedrawSelection = (previousActions, currentActions) => {\n\t\t// length change, always redraw\n\t\tif (previousActions.total !== currentActions.length) return true;\n\n\t\t// we only have to compare last shape\n\t\tconst previousLast = previousActions.last;\n\n\t\tconst currentLast = currentActions[currentActions.length - 1];\n\n\t\t// if not the same shape, redraw\n\t\tif (previousLast.drawMode !== currentLast.drawMode) return true;\n\n\t\tif (shapeIsRect(previousLast) && (!shapeIsRect(currentLast) || !rectEqual(previousLast, currentLast))) return true;\n\t\tif (shapeIsEllipse(previousLast) && (!shapeIsEllipse(currentLast) || !(previousLast.x === currentLast.x && previousLast.y === currentLast.y && previousLast.rx === currentLast.rx && previousLast.ry === currentLast.ry))) return true;\n\t\tif (shapeIsPath(previousLast) && (!shapeIsPath(currentLast) || currentLast.points.length !== previousLast.points.length)) return true;\n\n\t\t// no change\n\t\treturn false;\n\t};\n\n\tconst mapSelectionToShape = (selection, imageSize) => {\n\t\t// reference to cached state\n\t\tlet cachedSelection = selectionCache[selection.id];\n\n\t\t// calculate selection scalar, this speeds up performance\n\t\tconst scalar = Math.min(1, SELECTION_MAX_SIZE / imageSize.width);\n\n\t\tlet selectionCanvas = cachedSelection\n\t\t? cachedSelection.element\n\t\t: h('canvas', {\n\t\t\t\twidth: imageSize.width * scalar,\n\t\t\t\theight: imageSize.height * scalar,\n\t\t\t\t'data-retain': true\n\t\t\t});\n\n\t\t// new actions, need to redraw\n\t\tif (!cachedSelection || shouldRedrawSelection(cachedSelection, selection.actions)) {\n\t\t\t// clone so texture is redrawn (TODO: make live canvas texture possible)\n\t\t\tselectionCanvas = selectionCanvas.cloneNode();\n\n\t\t\t// draw actions\n\t\t\tctxDrawSelection(selectionCanvas.getContext('2d'), selection.actions, {\n\t\t\t\t// magenta, is replaced in webgl layer\n\t\t\t\tselectionColor: [1, 0, 1],\n\t\t\t\t// scale of canvas relative to image\n\t\t\t\tscalar\n\t\t\t});\n\n\t\t\t// store for next draw\n\t\t\tconst total = selection.actions.length;\n\n\t\t\tselectionCache[selection.id] = {\n\t\t\t\ttotal,\n\t\t\t\tlast: { ...selection.actions[total - 1] },\n\t\t\t\telement: selectionCanvas\n\t\t\t};\n\t\t}\n\n\t\t// create shape to hold texture\n\t\treturn {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\t...imageSize,\n\t\t\tfillColor: selection.color || [1, 1, 1],\n\t\t\tbackgroundImage: selectionCanvas\n\t\t};\n\t};\n\n\t//#endregion\n\t//#region texture loading and binding\n\tlet redrawRequest;\n\n\tconst requestRedraw = () => {\n\t\tcancelAnimationFrame(redrawRequest);\n\n\t\tredrawRequest = requestAnimationFrame(() => {\n\t\t\t// this triggers redraw of items marked as non-dirty\n\t\t\tredrawForce = true;\n\n\t\t\t// this makes sure delayed redraw also works\n\t\t\tthrottledLastDrawTime = 0;\n\n\t\t\t// draw the update\n\t\t\tdrawUpdate();\n\t\t});\n\t};\n\n\tconst Textures = new Map([]);\n\tconst PlaceholderTextures = new Map([]);\n\n\tconst isTextureResourceLoaded = resource => // not is url or dataurl\n\t!isString(resource) && (// is something that is accepted as webgl texture\n\tisImageBitmap(resource) || isImageData(resource) || isCanvas(resource) || isVideoElement(resource));\n\n\tconst getTextureParams = (imageRendering, textureWrapping) => {\n\t\t// get texture filter mode\n\t\tconst filterParam = imageRendering === 'pixelated'\n\t\t? canvasGL.textureFilterNearest\n\t\t: canvasGL.textureFilterLinear;\n\n\t\tconst wrapParam = textureWrapping === 'repeat'\n\t\t? canvasGL.textureRepeat\n\t\t: canvasGL.textureClamp;\n\n\t\treturn { filterParam, wrapParam };\n\t};\n\n\tconst getImageTexture = (image, imageRendering, textureWrapping) => {\n\t\t// no texture yet for this source\n\t\tif (!Textures.has(image)) {\n\t\t\t// is in loading state when is same as source\n\t\t\tTextures.set(image, image);\n\n\t\t\t// get texture filter mode\n\t\t\tconst textureParams = getTextureParams(imageRendering, textureWrapping);\n\n\t\t\t// already loaded\n\t\t\tif (isTextureResourceLoaded(image)) {\n\t\t\t\t// create texture\n\t\t\t\tconst texture = canvasGL.textureCreate();\n\n\t\t\t\t// udpate texture in gl canvas\n\t\t\t\tcanvasGL.textureUpdate(texture, image, textureParams);\n\n\t\t\t\t// update state we now have a texture\n\t\t\t\tTextures.set(image, texture);\n\t\t\t} else // need to load the image\n\t\t\t{\n\t\t\t\t// start loading the image\n\t\t\t\tloadImageData(image).then(data => {\n\t\t\t\t\t// canvas destroyed while loading texture data, or no data returned\n\t\t\t\t\tif (!canvasGL || !data) return;\n\n\t\t\t\t\t// create texture\n\t\t\t\t\tconst texture = canvasGL.textureCreate();\n\n\t\t\t\t\t// udpate texture in gl canvas\n\t\t\t\t\tcanvasGL.textureUpdate(texture, data, textureParams);\n\n\t\t\t\t\t// update state we now have a texture\n\t\t\t\t\tTextures.set(image, texture);\n\n\t\t\t\t\t// need to redraw because texture is now available\n\t\t\t\t\trequestRedraw();\n\t\t\t\t}).catch(err => {\n\t\t\t\t\tTextures.set(image, err);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t// texture is a video and should be updated\n\t\tif (isVideoElement(image) && (isVideoPlaying(image) || image.dataset.redraw === 'true')) {\n\t\t\tconst texture = Textures.get(image);\n\n\t\t\t// get texture filter mode\n\t\t\tconst textureParams = getTextureParams(imageRendering, textureWrapping);\n\n\t\t\t// udpate texture in gl canvas\n\t\t\tcanvasGL.textureUpdate(texture, image, textureParams);\n\n\t\t\t// done drawing\n\t\t\timage.dataset.redraw = false;\n\n\t\t\t// done!\n\t\t\treturn texture;\n\t\t}\n\n\t\t// get texture to return\n\t\treturn Textures.get(image);\n\t};\n\n\tconst getTextTexture = (shape, shapeExtendedProps = {}) => {\n\t\t// this allows setting a custom id (for use with shadow and outline)\n\t\tconst shapeId = shapeExtendedProps.id || shape.id;\n\n\t\t// no text, texture not necessary\n\t\tif (!shape.text.length) {\n\t\t\tPlaceholderTextures.delete(shapeId);\n\t\t\treturn undefined;\n\t\t}\n\n\t\tlet { text, textAlign, fontFamily, fontSize = 16, fontWeight, fontVariant, fontStyle, letterSpacing, lineHeight = fontSize, width, height } = shape;\n\t\tlet { outline = 0, blur = 0, paddingTop = 0, paddingRight = TextPadding, paddingBottom = 0, paddingLeft = TextPadding } = shapeExtendedProps;\n\n\t\t// this is the same as how contenteditable floors width/height\n\t\twidth = isNumber(width) ? Math.floor(width) : width;\n\n\t\theight = isNumber(height) ? Math.floor(height) : height;\n\t\tconst { textSize, signature } = textMeasure(text, { ...shape, width, height });\n\n\t\tconst textUID = objectUID({\n\t\t\ttext,\n\t\t\ttextAlign,\n\t\t\tfontFamily,\n\t\t\tfontSize,\n\t\t\tfontWeight,\n\t\t\tfontVariant,\n\t\t\tfontStyle,\n\t\t\tlineHeight,\n\t\t\tletterSpacing,\n\t\t\toutline,\n\t\t\tblur,\n\t\t\tsignature\n\t\t});\n\n\t\t// get texture unit assigned to this specific text shape\n\t\tif (!Textures.has(textUID)) {\n\t\t\t// is in loading state when is same as source\n\t\t\tTextures.set(textUID, text);\n\n\t\t\t// defined size of text box\n\t\t\t// - line: undefined, undefined\n\t\t\t// - auto: width, undefined\n\t\t\t// - box: width, height\n\t\t\tconst imageWidth = Math.ceil(textSize.width);\n\n\t\t\tconst imageHeight = Math.ceil(textSize.height / lineHeight) * lineHeight; // so lines at end of text box are not cut of\n\n\t\t\t// skip\n\t\t\tif (imageWidth === 0 || imageHeight === 0) return;\n\n\t\t\t// check if needs to scale texture\n\t\t\tconst textureSizeLimit = getWebGLTextureSizeLimit();\n\n\t\t\tconst textureSizeScalar = Math.min(\n\t\t\t\t1,\n\t\t\t\t// x\n\t\t\t\t(textureSizeLimit - (paddingLeft + paddingRight) * textPixelRatio) / (imageWidth * textPixelRatio),\n\t\t\t\t// y\n\t\t\t\t(textureSizeLimit - (paddingTop + paddingBottom) * textPixelRatio) / (imageHeight * textPixelRatio)\n\t\t\t);\n\n\t\t\t// create texture\n\t\t\ttextToImage(text, {\n\t\t\t\tfontSize,\n\t\t\t\tfontFamily,\n\t\t\t\tfontWeight,\n\t\t\t\tfontVariant,\n\t\t\t\tfontStyle,\n\t\t\t\tletterSpacing,\n\t\t\t\ttextAlign,\n\t\t\t\tlineHeight,\n\t\t\t\twidth,\n\t\t\t\theight,\n\t\t\t\timageWidth,\n\t\t\t\timageHeight,\n\t\t\t\tpaddingLeft,\n\t\t\t\tpaddingTop,\n\t\t\t\tpaddingRight,\n\t\t\t\tpaddingBottom,\n\t\t\t\tpixelRatio: textPixelRatio * textureSizeScalar,\n\t\t\t\twillRequest,\n\t\t\t\toutline,\n\t\t\t\tblur,\n\t\t\t\tcolor: [1, 0, 1], // purple will be replaced in render method\n\t\t\t\t\n\t\t\t}).then(image => {\n\t\t\t\t// canvas destroyed while loading texture data\n\t\t\t\tif (!canvasGL) return;\n\n\t\t\t\t// create texture\n\t\t\t\tconst texture = canvasGL.textureCreate();\n\n\t\t\t\t// update texture in gl canvas\n\t\t\t\tcanvasGL.textureUpdate(texture, image, {\n\t\t\t\t\tfilterParam: canvasGL.textureFilterLinear,\n\t\t\t\t\twrapParam: canvasGL.textureClamp,\n\t\t\t\t\tscalar: textureSizeScalar\n\t\t\t\t});\n\n\t\t\t\t// update state we now have a texture\n\t\t\t\tTextures.set(textUID, texture);\n\n\t\t\t\t// use as fallback texture for next update\n\t\t\t\tPlaceholderTextures.set(shapeId, texture);\n\n\t\t\t\t// need to redraw because texture is now available\n\t\t\t\trequestRedraw();\n\t\t\t}).catch(console.error);\n\t\t}\n\n\t\tconst texture = Textures.get(textUID);\n\n\t\treturn isTexture(texture)\n\t\t? texture\n\t\t: PlaceholderTextures.get(shapeId);\n\t};\n\n\tconst canvasCache = new Map();\n\n\tconst getBitmapTexture = shape => {\n\t\tconst { id, points, strokeWidth, strokeCap, strokeJoin, strokeColor } = shape;\n\t\tlet texture = Textures.get(id);\n\t\tlet canvasState = canvasCache.get(id);\n\n\t\t// unique id for shape (currently only supports path)\n\t\tconst hash = objectUID({\n\t\t\tpoints: points.map(p => `${p.x},${p.y}`).join(','),\n\t\t\tstrokeWidth,\n\t\t\tstrokeCap,\n\t\t\tstrokeJoin,\n\t\t\tstrokeColor\n\t\t});\n\n\t\t// test if should redraw\n\t\tif (canvasState) {\n\t\t\tconst { hash: previousHash } = canvasState;\n\n\t\t\t// it's possible the texture has been removed so in that case\n\t\t\t// we need to reset canvas state so the texture is recreated\n\t\t\tif (!Textures.has(id)) {\n\t\t\t\tcanvasState = undefined;\n\t\t\t} else // same texture\n\t\t\tif (hash === previousHash) {\n\t\t\t\treturn Textures.get(id);\n\t\t\t}\n\t\t}\n\n\t\t// if is new bitmap shape we need to add a canvas\n\t\tif (!canvasState) {\n\t\t\t// initial canvas\n\t\t\tconst canvas = h('canvas', { width: 1, height: 1 });\n\n\t\t\tcanvasState = { canvas, hash: undefined };\n\n\t\t\t// remember\n\t\t\tcanvasCache.set(shape.id, canvasState);\n\n\t\t\t// create texture\n\t\t\ttexture = canvasGL.textureCreate();\n\n\t\t\t// udpate texture in gl canvas\n\t\t\tcanvasGL.textureUpdate(texture, canvas, {\n\t\t\t\tfilterParam: canvasGL.textureFilterLinear,\n\t\t\t\twrapParam: canvasGL.textureClamp\n\t\t\t});\n\n\t\t\t// store texture\n\t\t\tTextures.set(id, texture);\n\t\t}\n\n\t\t// get canvas reference\n\t\tconst { canvas } = canvasState;\n\n\t\t// calculate canvas rectangle\n\t\tconst padding = Math.ceil(shape.strokeWidth);\n\n\t\tconst rect = rectCreateFromPoints(points);\n\t\tconst x = Math.floor(rect.x) - padding * 0.5;\n\t\tconst y = Math.floor(rect.y) - padding * 0.5;\n\t\tconst width = Math.ceil(rect.width + padding);\n\t\tconst height = Math.ceil(rect.height + padding);\n\t\tcanvas.width = Math.max(width, 1);\n\t\tcanvas.height = Math.max(height, 1);\n\t\tconst ctx = canvas.getContext('2d');\n\t\tctx.clearRect(0, 0, canvas.width, canvas.height);\n\n\t\tif (width >= 1 && height >= 1) {\n\t\t\tctx.translate(-x, -y);\n\t\t\tdrawPath(ctx, shape);\n\t\t\tctx.resetTransform();\n\t\t}\n\n\t\t// redraw texture in webgl\n\t\tcanvasGL.textureUpdate(texture, canvas, {\n\t\t\tfilterParam: canvasGL.textureFilterLinear,\n\t\t\twrapParam: canvasGL.textureClamp\n\t\t});\n\n\t\t// cache new state\n\t\tcanvasCache.set(id, { canvas, hash });\n\n\t\treturn Textures.get(id);\n\t};\n\n\tconst getShapeTexture = (shape, shapeExtendedProps) => {\n\t\tlet texture;\n\n\t\t// let's create textures for backgrounds and texts\n\t\tif (shape.backgroundImage) {\n\t\t\ttexture = getImageTexture(shape.backgroundImage, shape.backgroundImageRendering, shape.backgroundRepeat === 'repeat'\n\t\t\t? 'repeat'\n\t\t\t: undefined);\n\t\t} else // is text texture\n\t\tif (isString(shape.text)) {\n\t\t\tif (shape.width && shape.width < 1 || shape.height && shape.height < 1) return undefined;\n\t\t\ttexture = getTextTexture(shape, shapeExtendedProps);\n\t\t} else // is bitmap drawn shape (path only for now)\n\t\tif (shape.bitmap && shape.points) {\n\t\t\ttexture = getBitmapTexture(shape);\n\t\t}\n\n\t\treturn texture;\n\t};\n\n\tconst releaseUnusedTextures = usedTextures => {\n\t\tTextures.forEach((registeredTexture, key) => {\n\t\t\tconst isUsed = !!usedTextures.find(usedTexture => usedTexture === registeredTexture);\n\n\t\t\t// stil used, no need to release\n\t\t\tif (isUsed || !isTexture(registeredTexture)) return;\n\n\t\t\t// skip if used as placeholder texture\n\t\t\tif (Array.from(PlaceholderTextures.values()).includes(registeredTexture)) return;\n\n\t\t\t// remove this texture\n\t\t\tTextures.delete(key);\n\n\t\t\tcanvasGL.textureDelete(registeredTexture);\n\t\t});\n\t};\n\n\t//#endregion\n\t//#region drawing\n\tconst drawImage = ({ texture, size, origin, translation, rotation, scale, colorMatrix, opacity, convolutionMatrix, gamma, vignette, maskFeather, maskCornerRadius, overlayColor, enableOverlay, enableManipulation, enableAntialiasing }) => {\n\t\t// this makes sure the image renders extra crisp on low res screens\n\t\tlet sharpenOffsetX = 0;\n\n\t\tlet sharpenOffsetY = 0;\n\n\t\tif (pixelRatio === 1) {\n\t\t\tconst atActualSize = Math.abs(1 - scale) < Number.EPSILON;\n\t\t\tsharpenOffsetX = atActualSize && width % 2 !== 0 ? 0.5 : 0;\n\t\t\tsharpenOffsetY = atActualSize && height % 2 !== 0 ? 0.5 : 0;\n\t\t}\n\n\t\t// draw the image\n\t\tcanvasGL.drawImage(texture, size, origin.x, origin.y, translation.x + sharpenOffsetX, translation.y + sharpenOffsetY, rotation.x, rotation.y, rotation.z, scale, colorMatrix, clamp(opacity, 0, 1), convolutionMatrix, gamma, vignette, maskFeather, maskCornerRadius, overlayColor, enableOverlay, enableManipulation, enableAntialiasing);\n\n\t\treturn texture;\n\t};\n\n\tconst calculateTextShapeProps = (shape, currentShapeRect, scalar, fontScalar, textureSize, paddingTop, paddingRight, paddingBottom, paddingLeft) => {\n\t\tconst rect = { ...currentShapeRect };\n\n\t\tconst computedTextureSize = {\n\t\t\twidth: textureSize.width / textPixelRatio * scalar,\n\t\t\theight: textureSize.height / textPixelRatio * scalar\n\t\t};\n\n\t\t// position texture based on text alignment\n\t\tconst backgroundPosition = vectorCreate(0, 0);\n\n\t\tconst backgroundSize = {\n\t\t\twidth: computedTextureSize.width,\n\t\t\theight: computedTextureSize.height\n\t\t};\n\n\t\t// Apply padding so text doesn't clip on left and right edges\n\t\trect.x -= paddingLeft * scalar;\n\n\t\trect.y -= paddingTop * scalar;\n\n\t\t// adjust width\n\t\tif (shape.width) {\n\t\t\t// auto scale height if is auto-height field\n\t\t\trect.height = rect.height\n\t\t\t? rect.height + paddingTop * scalar / fontScalar\n\t\t\t: computedTextureSize.height;\n\n\t\t\t// adjust width so we can still render characters outside of box\n\t\t\trect.width += (paddingLeft + paddingRight) * scalar / fontScalar;\n\n\t\t\t// adjust when text alignment is different\n\t\t\tif (shape.textAlign === 'center') {\n\t\t\t\tbackgroundPosition.x = (rect.width - backgroundSize.width / fontScalar) * 0.5;\n\t\t\t} else if (shape.textAlign === 'right') {\n\t\t\t\tbackgroundPosition.x = rect.width - backgroundSize.width / fontScalar;\n\t\t\t}\n\t\t} else // calculate width\n\t\t{\n\t\t\trect.width = computedTextureSize.width;\n\t\t\trect.height = computedTextureSize.height;\n\t\t}\n\n\t\treturn { rect, backgroundPosition, backgroundSize };\n\t};\n\n\tconst drawShapes = (shapes = [], usedTextures) => {\n\t\t// return\n\t\tshapes.forEach(shape => {\n\t\t\t// only show texture if shape is finished loading\n\t\t\tlet shapeTexture = getShapeTexture(shape);\n\n\t\t\t// is loading texture\n\t\t\tconst isLoadingBackgroundImage = shape.status === 'loading'\n\t\t\t? true\n\t\t\t: shape.backgroundImage && shapeTexture === shape.backgroundImage;\n\n\t\t\tif (isLoadingBackgroundImage) requestRedraw();\n\n\t\t\tconst isBackgroundLoadError = shape.status === 'error'\n\t\t\t? true\n\t\t\t: shape.backgroundImage && shapeTexture instanceof Error;\n\n\t\t\t// get the webgl texture\n\t\t\tlet texture = isTexture(shapeTexture) ? shapeTexture : undefined;\n\n\t\t\t// transforms\n\t\t\tconst scalar = shape._scale || 1;\n\n\t\t\tconst translation = shape._translate || EmptyVector;\n\n\t\t\t// scale stroke width\n\t\t\tconst strokeWidth = shape.strokeWidth && shape.strokeWidth * scalar;\n\n\t\t\tconst isRect = !!shape.width;\n\t\t\tconst isText = !isRect && isString(shape.text) && texture;\n\t\t\tconst isPath = isArray(shape.points);\n\t\t\tconst isEllipse = shapeIsEllipse(shape);\n\n\t\t\tif (isPath) {\n\t\t\t\t// transform points\n\t\t\t\tconst points = shape.points.map(point => vectorCreate(point.x * scalar + translation.x, point.y * scalar + translation.y));\n\n\t\t\t\t// if is bitmap\n\t\t\t\tif (shape.bitmap) {\n\t\t\t\t\t// need to add to used textures so we can know when no longer used\n\t\t\t\t\tif (shapeTexture) usedTextures.push(shapeTexture);\n\n\t\t\t\t\tconst rect = rectCreateFromPoints(points);\n\t\t\t\t\tconst padding = Math.ceil(shape.strokeWidth * scalar);\n\n\t\t\t\t\tcanvasGL.drawRect(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tx: Math.floor(rect.x) - padding * 0.5,\n\t\t\t\t\t\t\ty: Math.floor(rect.y) - padding * 0.5,\n\t\t\t\t\t\t\twidth: Math.ceil(rect.width + padding),\n\t\t\t\t\t\t\theight: Math.ceil(rect.height + padding)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tshape.rotation,\n\t\t\t\t\t\tshape.flipX,\n\t\t\t\t\t\tshape.flipY,\n\t\t\t\t\t\t[0, 0, 0, 0],\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\ttexture,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tshape.opacity,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tundefined,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tcanvasGL.drawPath(points, shape.rotation, shape.flipX, shape.flipY, strokeWidth, shape.strokeColor, shape.pathClose, shape.backgroundColor, shape.opacity);\n\t\t\t\t}\n\t\t\t} else if (isEllipse) {\n\t\t\t\tlet x = shape.x;\n\t\t\t\tlet y = shape.y;\n\t\t\t\tx *= scalar;\n\t\t\t\ty *= scalar;\n\t\t\t\tx += translation.x;\n\t\t\t\ty += translation.y;\n\t\t\t\tconst center = vectorCreate(x, y);\n\t\t\t\tcanvasGL.drawEllipse(center, shape.rx * scalar, shape.ry * scalar, shape.rotation, shape.flipX, shape.flipY, shape.backgroundColor, texture, undefined, undefined, shape.backgroundCorners && backgroundCornersToUVMap(shape.backgroundCorners), strokeWidth, shape.strokeColor, shape.opacity, shape.inverted);\n\n\t\t\t\t// need to add to used textures so we can know when no longer used\n\t\t\t\tif (shapeTexture) usedTextures.push(shapeTexture);\n\n\t\t\t\t// draw loading indicator\n\t\t\t\tif (isLoadingBackgroundImage || isBackgroundLoadError) {\n\t\t\t\t\tif (!shape.backgroundColor && (!shape.strokeColor || !shape.strokeWidth)) {\n\t\t\t\t\t\tcanvasGL.drawEllipse(center, shape.rx * scalar, shape.ry * scalar, shape.rotation, shape.flipX, shape.flipY, isBackgroundLoadError\n\t\t\t\t\t\t? [1, 0, 0, 0.25 * shape.opacity]\n\t\t\t\t\t\t: [0, 0, 0, 0.25 * shape.opacity]);\n\t\t\t\t\t}\n\n\t\t\t\t\tisBackgroundLoadError && drawErrorIndicator(center);\n\t\t\t\t\tisLoadingBackgroundImage && drawLoadingIndicator(center);\n\t\t\t\t}\n\t\t\t} else if (isText || isRect) {\n\t\t\t\tconst textureSize = texture && canvasGL.textureGetSize(texture);\n\t\t\t\tlet colorize = shape.fillColor;\n\t\t\t\tlet shapeBackgroundColor = shape.backgroundColor;\n\t\t\t\tlet shapeStrokeColor = shape.strokeColor;\n\t\t\t\tlet shapeRect;\n\n\t\t\t\tlet shapeCornerRadius = [\n\t\t\t\t\tshape.cornerRadius,\n\t\t\t\t\tshape.cornerRadius,\n\t\t\t\t\tshape.cornerRadius,\n\t\t\t\t\tshape.cornerRadius\n\t\t\t\t].map(v => v * scalar);\n\n\t\t\t\tif (shape.width) {\n\t\t\t\t\tshapeRect = rectCreateFromAny(shape);\n\t\t\t\t} else {\n\t\t\t\t\tshapeRect = { x: shape.x, y: shape.y, ...textureSize };\n\t\t\t\t}\n\n\t\t\t\t// apply shape transforms\n\t\t\t\tif (scalar && translation) {\n\t\t\t\t\tshapeRect.x *= scalar;\n\t\t\t\t\tshapeRect.y *= scalar;\n\t\t\t\t\tshapeRect.x += translation.x;\n\t\t\t\t\tshapeRect.y += translation.y;\n\t\t\t\t\tshapeRect.width *= scalar;\n\t\t\t\t\tshapeRect.height *= scalar;\n\t\t\t\t}\n\n\t\t\t\t// need to add to used textures so we can know when no longer used\n\t\t\t\tif (shapeTexture) {\n\t\t\t\t\tusedTextures.push(shapeTexture);\n\t\t\t\t}\n\n\t\t\t\t// get texture\n\t\t\t\tlet backgroundSize;\n\n\t\t\t\tlet backgroundPosition;\n\t\t\t\tconst { backgroundRepeat = 'no-repeat' } = shape;\n\n\t\t\t\tif (textureSize) {\n\t\t\t\t\t// background should be scaled\n\t\t\t\t\tif (shape.backgroundImage && (shape.backgroundSize || shape.backgroundPosition || shape.backgroundRepeat)) {\n\t\t\t\t\t\t// always respect texture aspect ratio\n\t\t\t\t\t\tconst textureAspectRatio = getAspectRatio(textureSize.width, textureSize.height);\n\n\t\t\t\t\t\t// if repeat is set, set position to 0,0 and size to textures size\n\t\t\t\t\t\tif (shape.backgroundRepeat === 'repeat') {\n\t\t\t\t\t\t\tbackgroundSize = { ...textureSize };\n\t\t\t\t\t\t\tbackgroundPosition = { x: 0, y: 0 };\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// adjust position of background\n\t\t\t\t\t\tif (shape.backgroundSize === 'contain') {\n\t\t\t\t\t\t\tconst rect = rectContainRect(shapeRect, textureAspectRatio, shapeRect);\n\t\t\t\t\t\t\tbackgroundSize = sizeCreateFromRect(rect);\n\n\t\t\t\t\t\t\tif (shape.backgroundPosition) {\n\t\t\t\t\t\t\t\tbackgroundPosition = shape.backgroundPosition;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tbackgroundPosition = vectorCreate((shapeRect.width - backgroundSize.width) * 0.5, (shapeRect.height - backgroundSize.height) * 0.5);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (shape.backgroundSize === 'cover') {\n\t\t\t\t\t\t\tconst rect = rectCoverRect(shapeRect, textureAspectRatio, shapeRect);\n\t\t\t\t\t\t\tbackgroundSize = sizeCreateFromRect(rect);\n\n\t\t\t\t\t\t\tif (shape.backgroundPosition) {\n\t\t\t\t\t\t\t\tbackgroundPosition = shape.backgroundPosition;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tbackgroundPosition = vectorCreate(rect.x, rect.y);\n\t\t\t\t\t\t\t\tbackgroundPosition = vectorCreate((shapeRect.width - backgroundSize.width) * 0.5, (shapeRect.height - backgroundSize.height) * 0.5);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else // fixed size\n\t\t\t\t\t\tif (shape.backgroundSize) {\n\t\t\t\t\t\t\tbackgroundSize = shape.backgroundSize;\n\t\t\t\t\t\t\tbackgroundPosition = shape.backgroundPosition || { x: 0, y: 0 };\n\t\t\t\t\t\t} else // no size set but position is set\n\t\t\t\t\t\tif (shape.backgroundPosition) {\n\t\t\t\t\t\t\tbackgroundSize = { ...textureSize };\n\t\t\t\t\t\t\tbackgroundPosition = shape.backgroundPosition;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else // is text, \"background\" should be texture size and be positioned based on alignment\n\t\t\t\t\tif (shape.text) {\n\t\t\t\t\t\t// so we can retain the main rect\n\t\t\t\t\t\tconst textShapeRect = { ...shapeRect };\n\n\t\t\t\t\t\t// draw background (done)\n\t\t\t\t\t\tif (shape.backgroundColor || shape.strokeColor) {\n\t\t\t\t\t\t\t// remove background for text rendering draw call\n\t\t\t\t\t\t\tshapeBackgroundColor = undefined;\n\n\t\t\t\t\t\t\tshapeStrokeColor = undefined;\n\n\t\t\t\t\t\t\t// get width and height of shape\n\t\t\t\t\t\t\tconst pixelTextureSize = {\n\t\t\t\t\t\t\t\twidth: textureSize.width / textPixelRatio * scalar,\n\t\t\t\t\t\t\t\theight: textureSize.height / textPixelRatio * scalar\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tconst width = (shape.width || pixelTextureSize.width - TextPadding * 2) * scalar;\n\t\t\t\t\t\t\tconst height = (shape.height || pixelTextureSize.height) * scalar;\n\n\t\t\t\t\t\t\t// draw background\n\t\t\t\t\t\t\tcanvasGL.drawRect({ ...shapeRect, width, height }, shape.rotation, shape.flipX, shape.flipY, shapeCornerRadius, shape.backgroundColor, undefined, undefined, undefined, false, undefined, strokeWidth, shape.strokeColor, shape.opacity, undefined, undefined, undefined, shape.inverted);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// adjust offset scalar\n\t\t\t\t\t\tlet fontScalar = 1;\n\n\t\t\t\t\t\tif (shape.fontSize > 1000 && isFirefox()) {\n\t\t\t\t\t\t\tfontScalar = shape.fontSize / 1000;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// The text texture needs to be colorized\n\t\t\t\t\t\tcolorize = shape.color || [0, 0, 0];\n\n\t\t\t\t\t\t// If we're pre-rendering we do request drawing the texture but we hide it from view\n\t\t\t\t\t\tif (shape._prerender) colorize[3] = 0;\n\n\t\t\t\t\t\t// now calculate text rect\n\t\t\t\t\t\tconst textShapeProps = calculateTextShapeProps(\n\t\t\t\t\t\t\tshape,\n\t\t\t\t\t\t\ttextShapeRect,\n\t\t\t\t\t\t\tscalar,\n\t\t\t\t\t\t\tfontScalar,\n\t\t\t\t\t\t\ttextureSize,\n\t\t\t\t\t\t\t// padding top right bottom left\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\tTextPadding,\n\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\tTextPadding\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tshapeRect = textShapeProps.rect;\n\t\t\t\t\t\tbackgroundPosition = textShapeProps.backgroundPosition;\n\t\t\t\t\t\tbackgroundSize = textShapeProps.backgroundSize;\n\n\t\t\t\t\t\t// has shadow\n\t\t\t\t\t\tconst { textShadowX, textShadowY, textShadowBlur } = shape;\n\n\t\t\t\t\t\tif (textShadowX || textShadowY || textShadowBlur) {\n\t\t\t\t\t\t\tconst textShadowBlurHalf = Math.ceil(textShadowBlur * 0.5);\n\t\t\t\t\t\t\tconst paddingTop = textShadowBlurHalf;\n\t\t\t\t\t\t\tconst paddingRight = Math.max(TextPadding, textShadowBlurHalf);\n\t\t\t\t\t\t\tconst paddingBottom = textShadowBlurHalf;\n\t\t\t\t\t\t\tconst paddingLeft = Math.max(TextPadding, textShadowBlurHalf);\n\n\t\t\t\t\t\t\tconst shadowTexture = getShapeTexture(shape, {\n\t\t\t\t\t\t\t\tid: shape.id + 'shadow',\n\t\t\t\t\t\t\t\tblur: textShadowBlur,\n\t\t\t\t\t\t\t\tpaddingTop,\n\t\t\t\t\t\t\t\tpaddingRight,\n\t\t\t\t\t\t\t\tpaddingBottom,\n\t\t\t\t\t\t\t\tpaddingLeft\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tif (shadowTexture && !shape._prerender) {\n\t\t\t\t\t\t\t\tusedTextures.push(shadowTexture);\n\t\t\t\t\t\t\t\tconst shadowTextureSize = canvasGL.textureGetSize(shadowTexture);\n\n\t\t\t\t\t\t\t\t// now calculate text rect\n\t\t\t\t\t\t\t\tconst { rect, backgroundPosition, backgroundSize } = calculateTextShapeProps(shape, textShapeRect, scalar, fontScalar, shadowTextureSize, paddingTop, paddingRight, paddingBottom, paddingLeft);\n\n\t\t\t\t\t\t\t\tconst shapeRectCenter = rectCenter(shapeRect);\n\t\t\t\t\t\t\t\tconst shadowRectUnrotatedCenter = rectCenter(rect);\n\t\t\t\t\t\t\t\tshadowRectUnrotatedCenter.x += textShadowX;\n\t\t\t\t\t\t\t\tshadowRectUnrotatedCenter.y += textShadowY;\n\t\t\t\t\t\t\t\tconst shadowRectCenter = vectorRotate(shadowRectUnrotatedCenter, shape.rotation, shapeRectCenter);\n\n\t\t\t\t\t\t\t\tconst shadowRect = {\n\t\t\t\t\t\t\t\t\tx: shadowRectCenter.x - rect.width * 0.5,\n\t\t\t\t\t\t\t\t\ty: shadowRectCenter.y - rect.height * 0.5,\n\t\t\t\t\t\t\t\t\twidth: rect.width,\n\t\t\t\t\t\t\t\t\theight: rect.height\n\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\t// make sure respects height of shape\n\t\t\t\t\t\t\t\tif (shape.height) shadowRect.height -= textShadowY;\n\n\t\t\t\t\t\t\t\tcanvasGL.drawRect(shadowRect, shape.rotation, shape.flipX, shape.flipY, [0, 0, 0, 0], undefined, shadowTexture, backgroundSize, backgroundPosition, false, undefined, undefined, undefined, shape.opacity, undefined, 0, shape.textShadowColor); //[3]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// has outline\n\t\t\t\t\t\tif (shape.textOutlineWidth) {\n\t\t\t\t\t\t\tconst textOutlineWidthHalf = Math.ceil(shape.textOutlineWidth * 0.5);\n\t\t\t\t\t\t\tconst paddingTop = textOutlineWidthHalf;\n\t\t\t\t\t\t\tconst paddingRight = TextPadding + textOutlineWidthHalf;\n\t\t\t\t\t\t\tconst paddingBottom = textOutlineWidthHalf;\n\t\t\t\t\t\t\tconst paddingLeft = TextPadding + textOutlineWidthHalf;\n\n\t\t\t\t\t\t\tconst outlineTexture = getShapeTexture(shape, {\n\t\t\t\t\t\t\t\tid: shape.id + 'outline',\n\t\t\t\t\t\t\t\toutline: shape.textOutlineWidth,\n\t\t\t\t\t\t\t\tpaddingTop,\n\t\t\t\t\t\t\t\tpaddingRight,\n\t\t\t\t\t\t\t\tpaddingBottom,\n\t\t\t\t\t\t\t\tpaddingLeft\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tif (outlineTexture && !shape._prerender) {\n\t\t\t\t\t\t\t\tconst outlineTextureSize = canvasGL.textureGetSize(outlineTexture);\n\t\t\t\t\t\t\t\tusedTextures.push(outlineTexture);\n\n\t\t\t\t\t\t\t\t// now calculate text rect\n\t\t\t\t\t\t\t\tconst { rect, backgroundPosition, backgroundSize } = calculateTextShapeProps(shape, textShapeRect, scalar, fontScalar, outlineTextureSize, paddingTop, paddingRight, paddingBottom, paddingLeft);\n\n\t\t\t\t\t\t\t\tcanvasGL.drawRect(rect, shape.rotation, shape.flipX, shape.flipY, [0, 0, 0, 0], undefined, outlineTexture, backgroundSize, backgroundPosition, false, undefined, undefined, undefined, shape.opacity, undefined, 0, shape.textOutlineColor);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcanvasGL.drawRect(shapeRect, shape.rotation, shape.flipX, shape.flipY, shapeCornerRadius, shapeBackgroundColor, texture, backgroundSize, backgroundPosition, backgroundRepeat === 'repeat', shape.backgroundCorners && backgroundCornersToUVMap(shape.backgroundCorners), strokeWidth, shapeStrokeColor, shape.opacity, undefined, shape.feather, colorize, shape.inverted);\n\n\t\t\t\t// draw loading indicator\n\t\t\t\tif (isLoadingBackgroundImage || isBackgroundLoadError) {\n\t\t\t\t\tif ((!shape.backgroundColor || shape.backgroundColor[3] === 0) && (!shape.strokeColor || !shape.strokeWidth)) {\n\t\t\t\t\t\tcanvasGL.drawRect(shapeRect, shape.rotation, shape.flipX, shape.flipY, shapeCornerRadius, isBackgroundLoadError\n\t\t\t\t\t\t? [1, 0.2549, 0.2118, 0.25 * shape.opacity]\n\t\t\t\t\t\t: [0, 0, 0, 0.25 * shape.opacity]);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst position = rectCenter(shapeRect);\n\t\t\t\t\tisBackgroundLoadError && drawErrorIndicator(position);\n\t\t\t\t\tisLoadingBackgroundImage && drawLoadingIndicator(position);\n\t\t\t\t}\n\t\t\t} else if (shapeTexture) {\n\t\t\t\t// rect might have no width but we still want to remember texture for when it has a width in next draw cycle\n\t\t\t\tusedTextures.push(shapeTexture);\n\t\t\t}\n\t\t});\n\t};\n\n\t// loading indicator\n\tlet spinnerRotation = 0;\n\n\tconst errorPointsTLBR = [{ x: -5, y: -5 }, { x: 5, y: 5 }];\n\tconst errorPointsTRBL = [{ x: 5, y: -5 }, { x: -5, y: 5 }];\n\tconst spinnerPoints = ellipseToPolygon({ x: 0, y: 0 }, 10, 10, 0, false, false, 16);\n\tspinnerPoints.length = 9;\n\n\tconst drawLoadingIndicator = position => {\n\t\t// rotate based on date offset\n\t\tspinnerRotation = Date.now() / 50;\n\n\t\t// background fill\n\t\tcanvasGL.drawEllipse(position, 15, 15, 0, false, false, [0, 0, 0, 0.5]);\n\n\t\t// animate infinity spinner points positions\n\t\tconst points = vectorsRotate(spinnerPoints.map(p => ({ x: p.x + position.x, y: p.y + position.y })), spinnerRotation, position.x, position.y);\n\n\t\t// draw the points\n\t\tcanvasGL.drawPath(points, 0, false, false, 2, [1, 1, 1]);\n\t};\n\n\tconst drawErrorIndicator = position => {\n\t\t// background fill\n\t\tcanvasGL.drawEllipse(position, 13, 13, 0, false, false, [1, 0.2549, 0.2118, 0.75]);\n\n\t\tconst tlbr = errorPointsTLBR.map(p => ({ x: p.x + position.x, y: p.y + position.y }));\n\t\tconst trbl = errorPointsTRBL.map(p => ({ x: p.x + position.x, y: p.y + position.y }));\n\n\t\t// draw the points\n\t\tcanvasGL.drawPath(tlbr, 0, false, false, 3, [1, 1, 1]);\n\n\t\tcanvasGL.drawPath(trbl, 0, false, false, 3, [1, 1, 1]);\n\t};\n\n\tconst drawTransparencyGridLayer = (texture, rect, pos, size, color, opacity) => canvasGL.drawRect(\n\t\trect,\n\t\t0,\n\t\tfalse,\n\t\tfalse,\n\t\tVec4Empty,\n\t\tVec4Empty,\n\t\ttexture,\n\t\t// size\n\t\tsize,\n\t\t// pos\n\t\tpos,\n\t\t// repeat\n\t\ttrue,\n\t\tundefined,\n\t\t0,\n\t\tundefined,\n\t\topacity,\n\t\tundefined,\n\t\tundefined,\n\t\tcolor\n\t);\n\n\tconst drawTransparencyGrid = (rect, gridSize, colorEven, colorOdd, opacity) => {\n\t\tconst size = sizeCreate(gridSize, gridSize);\n\t\tconst texture = getImageTexture(TransparencyGrid, 'pixelated', 'repeat');\n\t\tconst posA = vectorCreate(-rect.x % gridSize, -rect.y % gridSize);\n\t\tconst posB = vectorCreate(posA.x + size.width * 0.5, posA.y);\n\t\tdrawTransparencyGridLayer(texture, rect, posA, size, colorEven, opacity);\n\t\tdrawTransparencyGridLayer(texture, rect, posB, size, colorOdd, opacity);\n\t};\n\n\t// redraws state\n\tlet redrawForce = false; // forces a redraw of dirty shapes\n\n\tlet isFirstDraw = true;\n\tlet wasFlipping = false;\n\n\t// textures\n\tconst usedManipulationTextures = [];\n\n\tconst usedAnnotationTextures = [];\n\tconst usedTextures = [];\n\n\tconst redraw = () => {\n\t\t// reset array of textures used in this draw call\n\t\tusedTextures.length = 0;\n\n\t\t// get top image shortcut\n\t\tconst imagesTop = images[0];\n\n\t\t// allow dev to inject more shapes\n\t\tconst { manipulationShapes, manipulationShapesDirty, annotationShapes, annotationShapesDirty, interfaceShapes, decorationShapes, frameShapes, selectionShapes } = willRender({\n\t\t\t// top image state shortcut\n\t\t\topacity: imagesTop.opacity,\n\t\t\trotation: imagesTop.rotation,\n\t\t\tscale: imagesTop.scale,\n\t\t\t// active images\n\t\t\timages,\n\t\t\t// canvas size\n\t\t\tsize: sizeCreate(width, height),\n\t\t\t// canvas background\n\t\t\tbackgroundColor: [...$background],\n\t\t\t// preview selection rect\n\t\t\tselectionRect: $mask\n\t\t});\n\n\t\tconst canvasBackgroundColor = [...$background];\n\n\t\t// adjust mask a bit so bacckground color doesn't bleed through\n\t\tconst imagesMask = $mask;\n\n\t\tconst imagesMaskOpacity = clamp($maskOpacityStore, 0, 1);\n\t\tconst imagesOverlayColor = $imageOverlayColor;\n\t\tconst xFlipProgress = Math.abs(-1 + imagesTop.rotation.x / Math.PI * 2);\n\t\tconst yFlipProgress = Math.abs(-1 + imagesTop.rotation.y / Math.PI * 2);\n\t\tconst isFlipping = xFlipProgress < 0.99 || yFlipProgress < 0.99;\n\t\tconst imagesSize = { ...imagesTop.size };\n\t\tconst imagesBackgroundColor = imagesTop.backgroundColor;\n\t\tconst imagesBackgroundImage = imagesTop.backgroundImage;\n\n\t\t// no need to draw to blend framebuffer if no redactions\n\t\tconst hasManipulationShapes = manipulationShapes.length > 0;\n\n\t\t// no need to draw to markup framebuffer if no annotations\n\t\tconst hasAnnotations = annotationShapes.length > 0;\n\n\t\t// if image has background color\n\t\tconst hasImageBackgroundColor = imagesBackgroundColor[3] > 0.0;\n\n\t\t// if the overlay is transparent so we can see the canvas\n\t\tconst hasTransparentOverlay = imagesMaskOpacity < 1.0;\n\n\t\t// should mask annotations outside of preview\n\t\tconst hasPreviewStencil = clipAnnotationsToImage ? maskMarkupOpacity >= 1 : false; //clipAnnotationsToImage || maskMarkupOpacity >= 1;\n\n\t\t// set canvas background color to image background color if is defined\n\t\tif (hasTransparentOverlay && hasImageBackgroundColor) {\n\t\t\tconst backR = canvasBackgroundColor[0];\n\t\t\tconst backG = canvasBackgroundColor[1];\n\t\t\tconst backB = canvasBackgroundColor[2];\n\t\t\tconst frontA = 1.0 - imagesMaskOpacity;\n\t\t\tconst frontR = imagesBackgroundColor[0] * frontA;\n\t\t\tconst frontG = imagesBackgroundColor[1] * frontA;\n\t\t\tconst frontB = imagesBackgroundColor[2] * frontA;\n\t\t\tconst fA = 1.0 - frontA;\n\t\t\tcanvasBackgroundColor[0] = frontR + backR * fA;\n\t\t\tcanvasBackgroundColor[1] = frontG + backG * fA;\n\t\t\tcanvasBackgroundColor[2] = frontB + backB * fA;\n\t\t\tcanvasBackgroundColor[3] = 1;\n\t\t}\n\n\t\t// make background transparent\n\t\tcanvasGL.setCanvasColor(isTransparent ? Vec4Empty : canvasBackgroundColor);\n\n\t\t// if has blend shapes draw blend shapes to framebuffer\n\t\tconst shouldDrawManipulations = hasManipulationShapes && (manipulationShapesDirty || redrawForce);\n\n\t\tif (shouldDrawManipulations) {\n\t\t\tcanvasGL.disableMask();\n\t\t\tcanvasGL.drawToImageBlendBuffer(imagesSize);\n\t\t\tusedManipulationTextures.length = 0;\n\t\t\tdrawShapes(manipulationShapes, usedManipulationTextures);\n\t\t} else if (!hasManipulationShapes) {\n\t\t\tusedManipulationTextures.length = 0;\n\t\t}\n\n\t\tusedTextures.push(...usedManipulationTextures);\n\n\t\t// prepare overlay frame buffer\n\t\tif (isFirstDraw) {\n\t\t\tcanvasGL.drawToImageOverlayBuffer(imagesSize, textPixelRatio);\n\t\t\tisFirstDraw = false;\n\t\t}\n\n\t\t// if has annotations draw annotation shapes to framebuffer\n\t\tconst shouldDrawAnnotations = hasAnnotations && (annotationShapesDirty || redrawForce);\n\n\t\tif (isFlipping) {\n\t\t\tif (shouldDrawAnnotations || !wasFlipping) {\n\t\t\t\tcanvasGL.disableMask();\n\t\t\t\tcanvasGL.drawToImageOverlayBuffer(imagesSize, textPixelRatio);\n\t\t\t\tusedAnnotationTextures.length = 0;\n\t\t\t\tdrawShapes(annotationShapes, usedAnnotationTextures);\n\t\t\t} else if (!hasAnnotations) {\n\t\t\t\tusedAnnotationTextures.length = 0;\n\t\t\t}\n\n\t\t\t// we use wasFlipping so we know when we should redraw the overlay framebuffer\n\t\t\twasFlipping = true;\n\t\t} else {\n\t\t\twasFlipping = false;\n\t\t}\n\n\t\t// switch to canvas drawing for other elements\n\t\tcanvasGL.drawToCanvas();\n\n\t\tcanvasGL.enableMask(imagesMask, imagesMaskOpacity);\n\n\t\tif (enableGrid && gridSize >= 1 && gridColors.length === 2 && gridOpacity) {\n\t\t\tdrawTransparencyGrid(imagesMask, gridSize, gridColors[0], gridColors[1], gridOpacity);\n\t\t}\n\n\t\t// draw a colored rectangle behind main preview image\n\t\tif (hasImageBackgroundColor) {\n\t\t\tcanvasGL.drawRect(imagesMask, 0, false, false, Vec4Empty, imagesBackgroundColor);\n\t\t}\n\n\t\tif (imagesBackgroundImage) {\n\t\t\t// hide background image outside of crop area\n\t\t\tcanvasGL.enableMask(imagesMask, 1.0);\n\n\t\t\tconst scalar = Math.max(maskRect.width / imagesBackgroundImage.width, maskRect.height / imagesBackgroundImage.height);\n\t\t\tconst width = imagesBackgroundImage.width * scalar;\n\t\t\tconst height = imagesBackgroundImage.height * scalar;\n\n\t\t\tconst rect = {\n\t\t\t\tx: maskRect.x + maskRect.width * 0.5 - width * 0.5,\n\t\t\t\ty: maskRect.y + maskRect.height * 0.5 - height * 0.5,\n\t\t\t\twidth,\n\t\t\t\theight\n\t\t\t};\n\n\t\t\tcanvasGL.drawRect(rect, 0, false, false, Vec4Empty, Vec4Empty, getImageTexture(imagesBackgroundImage, 'linear'));\n\t\t\tcanvasGL.enableMask(imagesMask, imagesMaskOpacity);\n\t\t}\n\n\t\thasPreviewStencil && canvasGL.enablePreviewStencil();\n\n\t\t// draw main image(s)\n\t\tusedTextures.push(...[...images].reverse().map(image => {\n\t\t\treturn drawImage({\n\t\t\t\t...image,\n\t\t\t\t// the image texture\n\t\t\t\ttexture: getImageTexture(image.data),\n\t\t\t\t// enable drawing markup if defined\n\t\t\t\tenableOverlay: isFlipping && hasAnnotations,\n\t\t\t\t// enable drawing redactions if defined\n\t\t\t\tenableManipulation: hasManipulationShapes,\n\t\t\t\t// antialias image edges\n\t\t\t\tenableAntialiasing: true,\n\t\t\t\t// mask and overlay positions\n\t\t\t\tmask: imagesMask,\n\t\t\t\tmaskOpacity: imagesMaskOpacity,\n\t\t\t\t// overlay\n\t\t\t\toverlayColor: imagesOverlayColor\n\t\t\t});\n\t\t}));\n\n\t\t// TODO: move vignette here (draw with colorized circular gradient texture instead of in shader)\n\t\t// set markup mask\n\t\tcanvasGL.enableMask(imagesMask, maskMarkupOpacity);\n\n\t\t// draw shapes in UI instead of framebuffer\n\t\tif (!isFlipping) {\n\t\t\t// only draw in image area\n\t\t\thasPreviewStencil && canvasGL.applyPreviewStencil();\n\n\t\t\t// draw shapes\n\t\t\tcanvasGL.resetCanvasMatrix();\n\n\t\t\tcanvasGL.updateCanvasMatrix(imagesSize, imagesTop.origin, imagesTop.translation, imagesTop.scale, imagesTop.rotation);\n\n\t\t\t// draw shapes\n\t\t\tusedAnnotationTextures.length = 0;\n\n\t\t\tdrawShapes(annotationShapes, usedAnnotationTextures);\n\n\t\t\t// stencil no longer needed\n\t\t\thasPreviewStencil && canvasGL.disablePreviewStencil();\n\t\t}\n\n\t\tusedTextures.push(...usedAnnotationTextures);\n\n\t\t// draw decorations shapes relative to crop\n\t\tcanvasGL.resetCanvasMatrix();\n\n\t\tcanvasGL.enableMask(imagesMask, maskMarkupOpacity);\n\t\tdrawShapes(decorationShapes, usedTextures);\n\n\t\t// draw frames\n\t\tif (frameShapes.length) {\n\t\t\t// set frame mask\n\t\t\tcanvasGL.enableMask(imagesMask, 1);\n\n\t\t\tconst shapesInside = frameShapes.filter(shape => !shape.expandsCanvas);\n\t\t\tconst shapesOutside = frameShapes.filter(shape => shape.expandsCanvas);\n\n\t\t\tif (shapesInside.length) {\n\t\t\t\tdrawShapes(shapesInside, usedTextures);\n\t\t\t}\n\n\t\t\tif (shapesOutside.length) {\n\t\t\t\t// the half pixel helps mask the outside shapes at the correct position\n\t\t\t\tcanvasGL.enableMask(\n\t\t\t\t\t{\n\t\t\t\t\t\tx: imagesMask.x + 0.5,\n\t\t\t\t\t\ty: imagesMask.y + 0.5,\n\t\t\t\t\t\twidth: imagesMask.width - 1,\n\t\t\t\t\t\theight: imagesMask.height - 1\n\t\t\t\t\t},\n\t\t\t\t\t$maskFrameOpacityStore\n\t\t\t\t);\n\n\t\t\t\tdrawShapes(shapesOutside, usedTextures);\n\t\t\t}\n\t\t}\n\n\t\t// draw selection (but not when flipping)\n\t\tif (selectionColor && selectionShapes.length && !isFlipping) {\n\t\t\t// draw shapes\n\t\t\tcanvasGL.resetCanvasMatrix();\n\n\t\t\tcanvasGL.updateCanvasMatrix(imagesSize, imagesTop.origin, imagesTop.translation, imagesTop.scale, imagesTop.rotation);\n\n\t\t\t// selection color\n\t\t\tconst color = [...selectionColor];\n\n\t\t\tcolor[3] = 0.5;\n\n\t\t\t// convert selections to shapes\n\t\t\tconst selectionRectShapes = [\n\t\t\t\t{\n\t\t\t\t\tid: 'selection',\n\t\t\t\t\tcolor,\n\t\t\t\t\tactions: [...selectionShapes]\n\t\t\t\t}\n\t\t\t].map(selectionGroup => mapSelectionToShape(selectionGroup, imagesSize));\n\n\t\t\t// draw selections\n\t\t\tdrawShapes(selectionRectShapes, usedTextures);\n\n\t\t\t// done\n\t\t\tcanvasGL.resetCanvasMatrix();\n\t\t}\n\n\t\t// crop mask not used for interface\n\t\tcanvasGL.disableMask();\n\n\t\t// frames rendered on the outside\n\t\t// draw custom interface shapes\n\t\tdrawShapes(interfaceShapes, usedTextures);\n\n\t\t// draw preview images (filters and video frame previews)\n\t\tinterfaceImages.forEach(image => {\n\t\t\tcanvasGL.enableMask(image.mask, image.maskOpacity);\n\n\t\t\t// draw background fill\n\t\t\tif (image.backgroundColor) {\n\t\t\t\t// calculate background image cover rect\n\t\t\t\tconst backgroundRect = imagesBackgroundImage && rectCoverRect({ ...image.mask }, imagesBackgroundImage.width / imagesBackgroundImage.height);\n\n\t\t\t\tconst backgroundImage = imagesBackgroundImage && getImageTexture(imagesBackgroundImage, 'linear');\n\t\t\t\tcanvasGL.drawRect(image.mask, 0, false, false, image.maskCornerRadius, image.backgroundColor, backgroundImage, backgroundRect, backgroundRect, undefined, undefined, undefined, undefined, image.opacity, image.maskFeather);\n\t\t\t\tbackgroundImage && usedTextures.push(backgroundImage);\n\t\t\t}\n\n\t\t\t// draw image\n\t\t\tconst texture = drawImage({\n\t\t\t\t...image,\n\t\t\t\ttexture: getImageTexture(image.data),\n\t\t\t\t// antialias edges\n\t\t\t\tenableAntialiasing: false,\n\t\t\t\t// update translation to apply `offset` from top left\n\t\t\t\ttranslation: {\n\t\t\t\t\tx: image.translation.x + image.offset.x - width * 0.5,\n\t\t\t\t\ty: image.translation.y + image.offset.y - height * 0.5\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tusedTextures.push(texture);\n\t\t});\n\n\t\tcanvasGL.disableMask();\n\n\t\t// determine which textures can be dropped\n\t\treleaseUnusedTextures(usedTextures);\n\n\t\t// done rendering\n\t\tdidRender();\n\n\t\t// redraw force flag\n\t\tredrawForce = false;\n\t};\n\n\t//#endregion\n\t//#region set up\n\t// throttled redrawer\n\tlet throttledLastDrawTime = 0;\n\n\tlet throttledFinalRedrawTimeout;\n\n\tconst redrawThrottled = () => {\n\t\tclearTimeout(throttledFinalRedrawTimeout);\n\t\tconst now = Date.now();\n\t\tconst dist = now - throttledLastDrawTime;\n\n\t\tif (dist < throttledMinRedrawDist) {\n\t\t\tthrottledFinalRedrawTimeout = setTimeout(redrawThrottled, throttledMinRedrawDist);\n\t\t\treturn;\n\t\t}\n\n\t\tthrottledLastDrawTime = now;\n\t\tredraw();\n\t};\n\n\t// returns the render function to use for this browser context\n\tconst selectFittingRenderFunction = () => isSoftwareRendering() ? redrawThrottled : redraw;\n\n\t// after DOM has been altered, redraw to canvas\n\tafterUpdate(() => drawUpdate());\n\n\t// hook up canvas to WebGL drawer\n\tonMount(() => $$invalidate(30, canvasGL = createWebGLCanvas(canvas, { alpha: isTransparent })));\n\n\t// clean up canvas\n\tonDestroy(() => {\n\t\t// if canvas wasn't created we don't need to release it\n\t\tif (!canvasGL) return;\n\n\t\t// clear canvas cache\n\t\tcanvasCache.forEach(({ canvas }) => releaseCanvas(canvas));\n\n\t\tcanvasCache.clear();\n\n\t\t// done drawing\n\t\tcanvasGL.release();\n\n\t\t// remove reference\n\t\t$$invalidate(30, canvasGL = undefined);\n\n\t\t$$invalidate(0, canvas = undefined);\n\t});\n\n\tfunction canvas_1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tcanvas = $$value;\n\t\t\t$$invalidate(0, canvas);\n\t\t});\n\t}\n\n\tconst measure_handler = e => {\n\t\t$$invalidate(1, width = e.detail.width);\n\t\t$$invalidate(2, height = e.detail.height);\n\t\tdispatch('measure', { width, height });\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('isAnimated' in $$props) $$invalidate(9, isAnimated = $$props.isAnimated);\n\t\tif ('isTransparent' in $$props) $$invalidate(10, isTransparent = $$props.isTransparent);\n\t\tif ('maskRect' in $$props) $$invalidate(11, maskRect = $$props.maskRect);\n\t\tif ('maskOpacity' in $$props) $$invalidate(12, maskOpacity = $$props.maskOpacity);\n\t\tif ('maskFrameOpacity' in $$props) $$invalidate(13, maskFrameOpacity = $$props.maskFrameOpacity);\n\t\tif ('maskMarkupOpacity' in $$props) $$invalidate(14, maskMarkupOpacity = $$props.maskMarkupOpacity);\n\t\tif ('clipAnnotationsToImage' in $$props) $$invalidate(15, clipAnnotationsToImage = $$props.clipAnnotationsToImage);\n\t\tif ('pixelRatio' in $$props) $$invalidate(16, pixelRatio = $$props.pixelRatio);\n\t\tif ('textPixelRatio' in $$props) $$invalidate(17, textPixelRatio = $$props.textPixelRatio);\n\t\tif ('backgroundColor' in $$props) $$invalidate(18, backgroundColor = $$props.backgroundColor);\n\t\tif ('willRender' in $$props) $$invalidate(19, willRender = $$props.willRender);\n\t\tif ('didRender' in $$props) $$invalidate(20, didRender = $$props.didRender);\n\t\tif ('willRequest' in $$props) $$invalidate(21, willRequest = $$props.willRequest);\n\t\tif ('loadImageData' in $$props) $$invalidate(22, loadImageData = $$props.loadImageData);\n\t\tif ('enableGrid' in $$props) $$invalidate(23, enableGrid = $$props.enableGrid);\n\t\tif ('gridColors' in $$props) $$invalidate(24, gridColors = $$props.gridColors);\n\t\tif ('gridSize' in $$props) $$invalidate(25, gridSize = $$props.gridSize);\n\t\tif ('gridOpacity' in $$props) $$invalidate(26, gridOpacity = $$props.gridOpacity);\n\t\tif ('images' in $$props) $$invalidate(27, images = $$props.images);\n\t\tif ('interfaceImages' in $$props) $$invalidate(28, interfaceImages = $$props.interfaceImages);\n\t\tif ('selectionColor' in $$props) $$invalidate(29, selectionColor = $$props.selectionColor);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*canvas*/ 1) {\n\t\t\tif (canvas) {\n\t\t\t\tconst propertyValue = getComputedStyle(canvas).getPropertyValue('--color-transition-duration');\n\t\t\t\t$$invalidate(31, backgroundColorAnimationDuration = durationToMilliseconds(propertyValue));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*backgroundColor, isAnimated*/ 262656 | $$self.$$.dirty[1] & /*backgroundColorAnimationDuration*/ 1) {\n\t\t\tbackgroundColor && background.set(backgroundColor, {\n\t\t\t\tduration: isAnimated ? backgroundColorAnimationDuration : 0\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*maskOpacity*/ 4096) {\n\t\t\tupdateSpring(maskOpacityStore, isNumber(maskOpacity) ? maskOpacity : 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*maskFrameOpacity*/ 8192) {\n\t\t\tupdateSpring(maskFrameOpacityStore, isNumber(maskFrameOpacity) ? maskFrameOpacity : 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*maskRect*/ 2048) {\n\t\t\tmaskRect && mask.set(maskRect);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$background, $maskOpacityStore*/ 24) {\n\t\t\t$background && imageOverlayColor.set([\n\t\t\t\t$background[0],\n\t\t\t\t$background[1],\n\t\t\t\t$background[2],\n\t\t\t\tclamp($maskOpacityStore, 0, 1)\n\t\t\t]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*canvasGL, width, height, images*/ 1207959558) {\n\t\t\t// can draw view\n\t\t\t$$invalidate(33, canDraw = !!(canvasGL && width && height && images.length));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*width, height, canvasGL, pixelRatio*/ 1073807366) {\n\t\t\t// observe width and height changes and resize the canvas proportionally\n\t\t\tif (width && height && canvasGL) {\n\t\t\t\t// need to reset last draw date so throttled redraw always runs redraw logic after resize\n\t\t\t\tthrottledLastDrawTime = 0;\n\n\t\t\t\t// resize canvas\n\t\t\t\tcanvasGL.resize(width, height, pixelRatio);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canDraw*/ 4) {\n\t\t\t// switch to draw method when can draw\n\t\t\t$$invalidate(32, drawUpdate = canDraw ? selectFittingRenderFunction() : noop$1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canDraw, drawUpdate*/ 6) {\n\t\t\t// if can draw state is updated and we have a draw update function, time to redraw\n\t\t\tcanDraw && drawUpdate && drawUpdate();\n\t\t}\n\t};\n\n\treturn [\n\t\tcanvas,\n\t\twidth,\n\t\theight,\n\t\tdispatch,\n\t\tbackground,\n\t\tmaskOpacityStore,\n\t\tmaskFrameOpacityStore,\n\t\tmask,\n\t\timageOverlayColor,\n\t\tisAnimated,\n\t\tisTransparent,\n\t\tmaskRect,\n\t\tmaskOpacity,\n\t\tmaskFrameOpacity,\n\t\tmaskMarkupOpacity,\n\t\tclipAnnotationsToImage,\n\t\tpixelRatio,\n\t\ttextPixelRatio,\n\t\tbackgroundColor,\n\t\twillRender,\n\t\tdidRender,\n\t\twillRequest,\n\t\tloadImageData,\n\t\tenableGrid,\n\t\tgridColors,\n\t\tgridSize,\n\t\tgridOpacity,\n\t\timages,\n\t\tinterfaceImages,\n\t\tselectionColor,\n\t\tcanvasGL,\n\t\tbackgroundColorAnimationDuration,\n\t\tdrawUpdate,\n\t\tcanDraw,\n\t\t$maskOpacityStore,\n\t\t$background,\n\t\tcanvas_1_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Canvas extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$U,\n\t\t\tcreate_fragment$T,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tisAnimated: 9,\n\t\t\t\tisTransparent: 10,\n\t\t\t\tmaskRect: 11,\n\t\t\t\tmaskOpacity: 12,\n\t\t\t\tmaskFrameOpacity: 13,\n\t\t\t\tmaskMarkupOpacity: 14,\n\t\t\t\tclipAnnotationsToImage: 15,\n\t\t\t\tpixelRatio: 16,\n\t\t\t\ttextPixelRatio: 17,\n\t\t\t\tbackgroundColor: 18,\n\t\t\t\twillRender: 19,\n\t\t\t\tdidRender: 20,\n\t\t\t\twillRequest: 21,\n\t\t\t\tloadImageData: 22,\n\t\t\t\tenableGrid: 23,\n\t\t\t\tgridColors: 24,\n\t\t\t\tgridSize: 25,\n\t\t\t\tgridOpacity: 26,\n\t\t\t\timages: 27,\n\t\t\t\tinterfaceImages: 28,\n\t\t\t\tselectionColor: 29\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1]\n\t\t);\n\t}\n}\n\nvar arrayJoin = (arr, filter = Boolean, str = ' ') => arr.filter(filter).join(str);\n\n/* src/core/ui/components/TabList.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$8(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[17] = list[i];\n\treturn child_ctx;\n}\n\nconst get_default_slot_changes$1 = dirty => ({ tab: dirty & /*tabNodes*/ 4 });\nconst get_default_slot_context$1 = ctx => ({ tab: /*tab*/ ctx[17] });\n\n// (52:0) {#if shouldRender}\nfunction create_if_block$l(ctx) {\n\tlet ul;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet ul_class_value;\n\tlet current;\n\tlet each_value = /*tabNodes*/ ctx[2];\n\tconst get_key = ctx => /*tab*/ ctx[17].id;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$8(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tul = element(\"ul\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(ul, \"class\", ul_class_value = arrayJoin(['PinturaTabList', /*klass*/ ctx[0]]));\n\t\t\tattr(ul, \"role\", \"tablist\");\n\t\t\tattr(ul, \"data-layout\", /*layout*/ ctx[1]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, ul, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(ul, null);\n\t\t\t}\n\n\t\t\t/*ul_binding*/ ctx[14](ul);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*tabNodes, handleKeyTab, handleClickTab, $$scope*/ 1124) {\n\t\t\t\teach_value = /*tabNodes*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, outro_and_destroy_block, create_each_block$8, null, get_each_context$8);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 1 && ul_class_value !== (ul_class_value = arrayJoin(['PinturaTabList', /*klass*/ ctx[0]]))) {\n\t\t\t\tattr(ul, \"class\", ul_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*layout*/ 2) {\n\t\t\t\tattr(ul, \"data-layout\", /*layout*/ ctx[1]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(ul);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\t/*ul_binding*/ ctx[14](null);\n\t\t}\n\t};\n}\n\n// (59:8) {#each tabNodes as tab (tab.id)}\nfunction create_each_block$8(key_1, ctx) {\n\tlet li;\n\tlet button;\n\tlet button_disabled_value;\n\tlet t;\n\tlet li_aria_controls_value;\n\tlet li_id_value;\n\tlet li_aria_selected_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[11].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[10], get_default_slot_context$1);\n\n\tfunction keydown_handler(...args) {\n\t\treturn /*keydown_handler*/ ctx[12](/*tab*/ ctx[17], ...args);\n\t}\n\n\tfunction click_handler(...args) {\n\t\treturn /*click_handler*/ ctx[13](/*tab*/ ctx[17], ...args);\n\t}\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tbutton = element(\"button\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tt = space();\n\t\t\tattr(button, \"type\", \"button\");\n\t\t\tbutton.disabled = button_disabled_value = /*tab*/ ctx[17].disabled;\n\t\t\tattr(li, \"role\", \"tab\");\n\t\t\tattr(li, \"aria-controls\", li_aria_controls_value = /*tab*/ ctx[17].href.substr(1));\n\t\t\tattr(li, \"id\", li_id_value = /*tab*/ ctx[17].tabId);\n\t\t\tattr(li, \"aria-selected\", li_aria_selected_value = /*tab*/ ctx[17].selected);\n\t\t\tthis.first = li;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\t\t\tappend(li, button);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(button, null);\n\t\t\t}\n\n\t\t\tappend(li, t);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(button, \"keydown\", keydown_handler),\n\t\t\t\t\tlisten(button, \"click\", click_handler)\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope, tabNodes*/ 1028)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[10],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[10])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[10], dirty, get_default_slot_changes$1),\n\t\t\t\t\t\tget_default_slot_context$1\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*tabNodes*/ 4 && button_disabled_value !== (button_disabled_value = /*tab*/ ctx[17].disabled)) {\n\t\t\t\tbutton.disabled = button_disabled_value;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*tabNodes*/ 4 && li_aria_controls_value !== (li_aria_controls_value = /*tab*/ ctx[17].href.substr(1))) {\n\t\t\t\tattr(li, \"aria-controls\", li_aria_controls_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*tabNodes*/ 4 && li_id_value !== (li_id_value = /*tab*/ ctx[17].tabId)) {\n\t\t\t\tattr(li, \"id\", li_id_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*tabNodes*/ 4 && li_aria_selected_value !== (li_aria_selected_value = /*tab*/ ctx[17].selected)) {\n\t\t\t\tattr(li, \"aria-selected\", li_aria_selected_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$S(ctx) {\n\tlet if_block_anchor;\n\tlet current;\n\tlet if_block = /*shouldRender*/ ctx[4] && create_if_block$l(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (/*shouldRender*/ ctx[4]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*shouldRender*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$l(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$T($$self, $$props, $$invalidate) {\n\tlet tabNodes;\n\tlet shouldRender;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet root;\n\tlet { class: klass = undefined } = $$props;\n\tlet { name } = $$props;\n\tlet { selected } = $$props;\n\tlet { tabs = [] } = $$props;\n\tlet { layout = undefined } = $$props;\n\tconst dispatch = createEventDispatcher();\n\n\tconst focusTab = index => {\n\t\tconst tab = root.querySelectorAll('[role=\"tab\"] button')[index];\n\t\tif (!tab) return;\n\t\ttab.focus();\n\t};\n\n\tconst handleClickTab = (e, id) => {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tdispatch('select', id);\n\t};\n\n\tconst handleKeyTab = ({ key }, id) => {\n\t\tif (!(/arrow/i).test(key)) return;\n\t\tconst index = tabs.findIndex(tab => tab.id === id);\n\n\t\t// next\n\t\tif ((/right|down/i).test(key)) return focusTab(index < tabs.length - 1 ? index + 1 : 0);\n\n\t\t// prev\n\t\tif ((/left|up/i).test(key)) return focusTab(index > 0 ? index - 1 : tabs.length - 1);\n\t};\n\n\tconst keydown_handler = (tab, e) => handleKeyTab(e, tab.id);\n\tconst click_handler = (tab, e) => handleClickTab(e, tab.id);\n\n\tfunction ul_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(3, root);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('name' in $$props) $$invalidate(7, name = $$props.name);\n\t\tif ('selected' in $$props) $$invalidate(8, selected = $$props.selected);\n\t\tif ('tabs' in $$props) $$invalidate(9, tabs = $$props.tabs);\n\t\tif ('layout' in $$props) $$invalidate(1, layout = $$props.layout);\n\t\tif ('$$scope' in $$props) $$invalidate(10, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*tabs, selected, name*/ 896) {\n\t\t\t$$invalidate(2, tabNodes = tabs.map(tab => {\n\t\t\t\tconst isActive = tab.id === selected;\n\n\t\t\t\treturn {\n\t\t\t\t\t...tab,\n\t\t\t\t\ttabId: `tab-${name}-${tab.id}`,\n\t\t\t\t\thref: `#panel-${name}-${tab.id}`,\n\t\t\t\t\tselected: isActive\n\t\t\t\t};\n\t\t\t}));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*tabNodes*/ 4) {\n\t\t\t$$invalidate(4, shouldRender = tabNodes.length > 1);\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\tlayout,\n\t\ttabNodes,\n\t\troot,\n\t\tshouldRender,\n\t\thandleClickTab,\n\t\thandleKeyTab,\n\t\tname,\n\t\tselected,\n\t\ttabs,\n\t\t$$scope,\n\t\tslots,\n\t\tkeydown_handler,\n\t\tclick_handler,\n\t\tul_binding\n\t];\n}\n\nclass TabList extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$T, create_fragment$S, safe_not_equal, {\n\t\t\tclass: 0,\n\t\t\tname: 7,\n\t\t\tselected: 8,\n\t\t\ttabs: 9,\n\t\t\tlayout: 1\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/TabPanels.svelte generated by Svelte v3.52.0 */\nconst get_default_slot_changes_1 = dirty => ({ panel: dirty & /*panelNodes*/ 16 });\n\nconst get_default_slot_context_1 = ctx => ({\n\tpanel: /*panelNodes*/ ctx[4][0].id,\n\tpanelIsActive: true\n});\n\nfunction get_each_context$7(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i].id;\n\tchild_ctx[15] = list[i].shouldDraw;\n\tchild_ctx[16] = list[i].panelId;\n\tchild_ctx[17] = list[i].tabindex;\n\tchild_ctx[18] = list[i].labelledBy;\n\tchild_ctx[19] = list[i].isActive;\n\tchild_ctx[20] = list[i].hidden;\n\tchild_ctx[3] = list[i].visible;\n\treturn child_ctx;\n}\n\nconst get_default_slot_changes = dirty => ({\n\tpanel: dirty & /*panelNodes*/ 16,\n\tpanelIsActive: dirty & /*panelNodes*/ 16\n});\n\nconst get_default_slot_context = ctx => ({\n\tpanel: /*id*/ ctx[14],\n\tpanelIsActive: /*isActive*/ ctx[19]\n});\n\n// (60:0) {:else}\nfunction create_else_block$8(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div0_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[11].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[10], get_default_slot_context_1);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", div0_class_value = arrayJoin([/*panelClass*/ ctx[1]]));\n\t\t\tattr(div1, \"class\", /*klass*/ ctx[0]);\n\t\t\tattr(div1, \"style\", /*style*/ ctx[2]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div1, \"measure\", /*measure_handler_1*/ ctx[13]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div1))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope, panelNodes*/ 1040)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[10],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[10])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[10], dirty, get_default_slot_changes_1),\n\t\t\t\t\t\tget_default_slot_context_1\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelClass*/ 2 && div0_class_value !== (div0_class_value = arrayJoin([/*panelClass*/ ctx[1]]))) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 1) {\n\t\t\t\tattr(div1, \"class\", /*klass*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 4) {\n\t\t\t\tattr(div1, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (39:0) {#if shouldRender}\nfunction create_if_block$k(ctx) {\n\tlet div;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*panelNodes*/ ctx[4];\n\tconst get_key = ctx => /*id*/ ctx[14];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$7(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$7(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = arrayJoin(['PinturaTabPanels', /*klass*/ ctx[0]]));\n\t\t\tattr(div, \"style\", /*style*/ ctx[2]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler*/ ctx[12]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div, { observePosition: true }))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*arrayJoin, panelClass, panelNodes, $$scope*/ 1042) {\n\t\t\t\teach_value = /*panelNodes*/ ctx[4];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$7, null, get_each_context$7);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 1 && div_class_value !== (div_class_value = arrayJoin(['PinturaTabPanels', /*klass*/ ctx[0]]))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 4) {\n\t\t\t\tattr(div, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (56:16) {#if shouldDraw}\nfunction create_if_block_1$f(ctx) {\n\tlet current;\n\tconst default_slot_template = /*#slots*/ ctx[11].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[10], get_default_slot_context);\n\n\treturn {\n\t\tc() {\n\t\t\tif (default_slot) default_slot.c();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(target, anchor);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope, panelNodes*/ 1040)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[10],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[10])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[10], dirty, get_default_slot_changes),\n\t\t\t\t\t\tget_default_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t}\n\t};\n}\n\n// (47:8) {#each panelNodes as { id, shouldDraw, panelId, tabindex, labelledBy, isActive, hidden, visible }\nfunction create_each_block$7(key_1, ctx) {\n\tlet div;\n\tlet t;\n\tlet div_class_value;\n\tlet div_hidden_value;\n\tlet div_id_value;\n\tlet div_tabindex_value;\n\tlet div_aria_labelledby_value;\n\tlet div_data_inert_value;\n\tlet current;\n\tlet if_block = /*shouldDraw*/ ctx[15] && create_if_block_1$f(ctx);\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tattr(div, \"class\", div_class_value = arrayJoin(['PinturaTabPanel', /*panelClass*/ ctx[1]]));\n\t\t\tdiv.hidden = div_hidden_value = /*hidden*/ ctx[20];\n\t\t\tattr(div, \"id\", div_id_value = /*panelId*/ ctx[16]);\n\t\t\tattr(div, \"tabindex\", div_tabindex_value = /*tabindex*/ ctx[17]);\n\t\t\tattr(div, \"aria-labelledby\", div_aria_labelledby_value = /*labelledBy*/ ctx[18]);\n\t\t\tattr(div, \"data-inert\", div_data_inert_value = !/*visible*/ ctx[3]);\n\t\t\tthis.first = div;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\tappend(div, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (/*shouldDraw*/ ctx[15]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*panelNodes*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_1$f(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelClass*/ 2 && div_class_value !== (div_class_value = arrayJoin(['PinturaTabPanel', /*panelClass*/ ctx[1]]))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelNodes*/ 16 && div_hidden_value !== (div_hidden_value = /*hidden*/ ctx[20])) {\n\t\t\t\tdiv.hidden = div_hidden_value;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelNodes*/ 16 && div_id_value !== (div_id_value = /*panelId*/ ctx[16])) {\n\t\t\t\tattr(div, \"id\", div_id_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelNodes*/ 16 && div_tabindex_value !== (div_tabindex_value = /*tabindex*/ ctx[17])) {\n\t\t\t\tattr(div, \"tabindex\", div_tabindex_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelNodes*/ 16 && div_aria_labelledby_value !== (div_aria_labelledby_value = /*labelledBy*/ ctx[18])) {\n\t\t\t\tattr(div, \"aria-labelledby\", div_aria_labelledby_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*panelNodes*/ 16 && div_data_inert_value !== (div_data_inert_value = !/*visible*/ ctx[3])) {\n\t\t\t\tattr(div, \"data-inert\", div_data_inert_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\nfunction create_fragment$R(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block$k, create_else_block$8];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*shouldRender*/ ctx[5]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$S($$self, $$props, $$invalidate) {\n\tlet panelNodes;\n\tlet shouldRender;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet { name } = $$props;\n\tlet { selected } = $$props;\n\tlet { panelClass = undefined } = $$props;\n\tlet { panels = [] } = $$props;\n\tlet { visible = undefined } = $$props;\n\tlet { style = undefined } = $$props;\n\tconst drawCache = {};\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction measure_handler_1(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('name' in $$props) $$invalidate(6, name = $$props.name);\n\t\tif ('selected' in $$props) $$invalidate(7, selected = $$props.selected);\n\t\tif ('panelClass' in $$props) $$invalidate(1, panelClass = $$props.panelClass);\n\t\tif ('panels' in $$props) $$invalidate(8, panels = $$props.panels);\n\t\tif ('visible' in $$props) $$invalidate(3, visible = $$props.visible);\n\t\tif ('style' in $$props) $$invalidate(2, style = $$props.style);\n\t\tif ('$$scope' in $$props) $$invalidate(10, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*panels, selected, visible, name, drawCache*/ 968) {\n\t\t\t$$invalidate(4, panelNodes = panels.map(id => {\n\t\t\t\tconst isActive = id === selected;\n\n\t\t\t\t// remember that this tab was active so we keep drawing it even when it's inactive, speeds up page rendering\n\t\t\t\tif (isActive) $$invalidate(9, drawCache[id] = true, drawCache);\n\n\t\t\t\tconst isVisible = visible ? visible.indexOf(id) !== -1 : isActive;\n\n\t\t\t\treturn {\n\t\t\t\t\tid,\n\t\t\t\t\tpanelId: `panel-${name}-${id}`,\n\t\t\t\t\tlabelledBy: `tab-${name}-${id}`,\n\t\t\t\t\tisActive,\n\t\t\t\t\thidden: !isActive,\n\t\t\t\t\tvisible: isVisible,\n\t\t\t\t\ttabindex: isActive ? 0 : -1,\n\t\t\t\t\tshouldDraw: isActive || drawCache[id]\n\t\t\t\t};\n\t\t\t}));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*panelNodes*/ 16) {\n\t\t\t$$invalidate(5, shouldRender = panelNodes.length > 1);\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\tpanelClass,\n\t\tstyle,\n\t\tvisible,\n\t\tpanelNodes,\n\t\tshouldRender,\n\t\tname,\n\t\tselected,\n\t\tpanels,\n\t\tdrawCache,\n\t\t$$scope,\n\t\tslots,\n\t\tmeasure_handler,\n\t\tmeasure_handler_1\n\t];\n}\n\nclass TabPanels extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$S, create_fragment$R, safe_not_equal, {\n\t\t\tclass: 0,\n\t\t\tname: 6,\n\t\t\tselected: 7,\n\t\t\tpanelClass: 1,\n\t\t\tpanels: 8,\n\t\t\tvisible: 3,\n\t\t\tstyle: 2\n\t\t});\n\t}\n}\n\nvar getComponentExportedProps = (Component) => {\n const descriptors = Object.getOwnPropertyDescriptors(Component.prototype);\n return Object.keys(descriptors).filter((key) => !!descriptors[key]['get']);\n};\n\n/* src/core/ui/components/UtilPanel.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block$j(ctx) {\n\tlet switch_instance;\n\tlet updating_name;\n\tlet switch_instance_anchor;\n\tlet current;\n\tconst switch_instance_spread_levels = [/*componentProps*/ ctx[4]];\n\n\tfunction switch_instance_name_binding(value) {\n\t\t/*switch_instance_name_binding*/ ctx[22](value);\n\t}\n\n\tvar switch_value = /*ComponentView*/ ctx[10];\n\n\tfunction switch_props(ctx) {\n\t\tlet switch_instance_props = {};\n\n\t\tfor (let i = 0; i < switch_instance_spread_levels.length; i += 1) {\n\t\t\tswitch_instance_props = assign(switch_instance_props, switch_instance_spread_levels[i]);\n\t\t}\n\n\t\tif (/*panelName*/ ctx[2] !== void 0) {\n\t\t\tswitch_instance_props.name = /*panelName*/ ctx[2];\n\t\t}\n\n\t\treturn { props: switch_instance_props };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\tbinding_callbacks.push(() => bind(switch_instance, 'name', switch_instance_name_binding));\n\t\t/*switch_instance_binding*/ ctx[23](switch_instance);\n\t\tswitch_instance.$on(\"measure\", /*handleMeasure*/ ctx[11]);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tswitch_instance_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (switch_instance) mount_component(switch_instance, target, anchor);\n\t\t\tinsert(target, switch_instance_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst switch_instance_changes = (dirty[0] & /*componentProps*/ 16)\n\t\t\t? get_spread_update(switch_instance_spread_levels, [get_spread_object(/*componentProps*/ ctx[4])])\n\t\t\t: {};\n\n\t\t\tif (!updating_name && dirty[0] & /*panelName*/ 4) {\n\t\t\t\tupdating_name = true;\n\t\t\t\tswitch_instance_changes.name = /*panelName*/ ctx[2];\n\t\t\t\tadd_flush_callback(() => updating_name = false);\n\t\t\t}\n\n\t\t\tif (switch_value !== (switch_value = /*ComponentView*/ ctx[10])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n\t\t\t\t\tbinding_callbacks.push(() => bind(switch_instance, 'name', switch_instance_name_binding));\n\t\t\t\t\t/*switch_instance_binding*/ ctx[23](switch_instance);\n\t\t\t\t\tswitch_instance.$on(\"measure\", /*handleMeasure*/ ctx[11]);\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*switch_instance_binding*/ ctx[23](null);\n\t\t\tif (detaching) detach(switch_instance_anchor);\n\t\t\tif (switch_instance) destroy_component(switch_instance, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$Q(ctx) {\n\tlet div;\n\tlet div_class_value;\n\tlet current;\n\tlet if_block = /*isLocal*/ ctx[5] && create_if_block$j(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(div, \"data-util\", /*panelName*/ ctx[2]);\n\t\t\tattr(div, \"class\", div_class_value = arrayJoin(['PinturaUtilPanel', /*klass*/ ctx[1]]));\n\t\t\tattr(div, \"style\", /*style*/ ctx[6]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\t/*div_binding*/ ctx[24](div);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*isLocal*/ ctx[5]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*isLocal*/ 32) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$j(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*panelName*/ 4) {\n\t\t\t\tattr(div, \"data-util\", /*panelName*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*klass*/ 2 && div_class_value !== (div_class_value = arrayJoin(['PinturaUtilPanel', /*klass*/ ctx[1]]))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 64) {\n\t\t\t\tattr(div, \"style\", /*style*/ ctx[6]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t\t/*div_binding*/ ctx[24](null);\n\t\t}\n\t};\n}\n\nfunction instance$R($$self, $$props, $$invalidate) {\n\tlet style;\n\tlet componentProps;\n\tlet isLocal;\n\tlet $isActivePrivateStore;\n\tlet $opacityClamped;\n\tlet $isAnimated;\n\tconst dispatch = createEventDispatcher();\n\tlet { isActive = true } = $$props;\n\tlet { stores } = $$props;\n\tlet { content } = $$props;\n\tlet { component } = $$props;\n\tlet { locale } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\n\t// context\n\tconst isAnimated = getContext('isAnimated');\n\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(21, $isAnimated = value));\n\n\t// we remember the view rect in this variable\n\tlet rect;\n\n\tconst opacity = spring(0);\n\tconst opacityClamped = derived(opacity, $opacity => clamp($opacity, 0, 1));\n\tcomponent_subscribe($$self, opacityClamped, value => $$invalidate(20, $opacityClamped = value));\n\n\t// throw hide / show events\n\tlet isHidden = !isActive;\n\n\t// create active store so can be used in derived stores\n\tconst isActivePrivateStore = writable(isActive);\n\n\tcomponent_subscribe($$self, isActivePrivateStore, value => $$invalidate(25, $isActivePrivateStore = value));\n\n\tconst stateProps = {\n\t\t// derived store to make isActive private\n\t\tisActive: derived(isActivePrivateStore, async ($isActivePrivateStore, set) => {\n\t\t\t// set to false immidiately\n\t\t\tif (!$isActivePrivateStore) return set($isActivePrivateStore);\n\n\t\t\t// wait for next tick when setting to true, this helps deactivating\n\t\t\t// current panel before activing next one\n\t\t\tawait tick$1();\n\n\t\t\tset($isActivePrivateStore);\n\t\t}),\n\t\tisActiveFraction: derived(opacityClamped, $opacityClamped => $opacityClamped),\n\t\tisVisible: derived(opacityClamped, $opacityClamped => $opacityClamped > 0)\n\t};\n\n\t// build the component props\n\tconst ComponentView = content.view;\n\n\tconst componentExportedProps = getComponentExportedProps(ComponentView);\n\n\tconst componentComputedProps = Object.keys(content.props || {}).reduce(\n\t\t(computedProps, key) => {\n\t\t\tif (!componentExportedProps.includes(key)) return computedProps;\n\t\t\tcomputedProps[key] = content.props[key];\n\t\t\treturn computedProps;\n\t\t},\n\t\t{}\n\t);\n\n\tconst componentComputedStateProps = Object.keys(stateProps).reduce(\n\t\t(computedStateProps, key) => {\n\t\t\tif (!componentExportedProps.includes(key)) return computedStateProps;\n\t\t\tcomputedStateProps[key] = stateProps[key];\n\t\t\treturn computedStateProps;\n\t\t},\n\t\t{}\n\t);\n\n\t// class used on panel element\n\tlet panelName;\n\n\t// used when loading external plugin\n\tlet rootElement;\n\n\tconst handleMeasure = e => {\n\t\t// not fully hidden, so store rect for next render\n\t\t$$invalidate(17, rect = { ...e.detail });\n\n\t\tif (!hasBeenMounted || !isActive) return;\n\t\tdispatch('measure', { ...rect });\n\t};\n\n\t// we expose measurable in the context map\n\tsetContext('measurable', measurable);\n\n\t// we get all context so we can pass them to external plugins\n\tconst contextMap = getAllContexts();\n\n\t// we use the `hasBeenMounted` bool to block rect updates until the entire panel is ready\n\tlet hasBeenMounted = false;\n\n\tonMount(() => {\n\t\t$$invalidate(19, hasBeenMounted = true);\n\n\t\t// no special needs for local modules\n\t\tif (isLocal) return;\n\n\t\t$$invalidate(0, component = new ComponentView({\n\t\t\t\ttarget: rootElement,\n\t\t\t\t// pass custom props to external plugin\n\t\t\t\tprops: { ...componentProps },\n\t\t\t\t// pass context to external plugin\n\t\t\t\tcontext: contextMap\n\t\t\t}));\n\n\t\t$$invalidate(2, panelName = component.name);\n\t\tconst unsub = component.$on('measure', handleMeasure);\n\n\t\treturn () => {\n\t\t\tunsub();\n\t\t\tcomponent.$destroy();\n\t\t};\n\t});\n\n\tfunction switch_instance_name_binding(value) {\n\t\tpanelName = value;\n\t\t$$invalidate(2, panelName);\n\t}\n\n\tfunction switch_instance_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tcomponent = $$value;\n\t\t\t$$invalidate(0, component);\n\t\t});\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trootElement = $$value;\n\t\t\t$$invalidate(3, rootElement);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(12, isActive = $$props.isActive);\n\t\tif ('stores' in $$props) $$invalidate(13, stores = $$props.stores);\n\t\tif ('content' in $$props) $$invalidate(14, content = $$props.content);\n\t\tif ('component' in $$props) $$invalidate(0, component = $$props.component);\n\t\tif ('locale' in $$props) $$invalidate(15, locale = $$props.locale);\n\t\tif ('class' in $$props) $$invalidate(1, klass = $$props.class);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*rect, isActive, component*/ 135169) {\n\t\t\t// when the view rect changes and the panel is in active state or became active, dispatch measure event\n\t\t\tif (rect && isActive && component) dispatch('measure', rect);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive, $isAnimated*/ 2101248) {\n\t\t\topacity.set(isActive ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$opacityClamped, isHidden*/ 1310720) {\n\t\t\tif ($opacityClamped <= 0 && !isHidden) {\n\t\t\t\t$$invalidate(18, isHidden = true);\n\t\t\t} else if ($opacityClamped > 0 && isHidden) {\n\t\t\t\t$$invalidate(18, isHidden = false);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*hasBeenMounted, isHidden*/ 786432) {\n\t\t\thasBeenMounted && dispatch(isHidden ? 'hide' : 'show');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$opacityClamped*/ 1048576) {\n\t\t\tdispatch('fade', $opacityClamped);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$opacityClamped*/ 1048576) {\n\t\t\t// only set opacity prop if is below 0\n\t\t\t$$invalidate(6, style = $opacityClamped < 1\n\t\t\t? `opacity: ${$opacityClamped}`\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 4096) {\n\t\t\tset_store_value(isActivePrivateStore, $isActivePrivateStore = isActive, $isActivePrivateStore);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stores, locale*/ 40960) {\n\t\t\t$$invalidate(4, componentProps = {\n\t\t\t\t...componentComputedProps,\n\t\t\t\t...componentComputedStateProps,\n\t\t\t\tstores,\n\t\t\t\tlocale\n\t\t\t});\n\t\t}\n\t};\n\n\t$$invalidate(5, isLocal = !componentExportedProps.includes('external'));\n\n\treturn [\n\t\tcomponent,\n\t\tklass,\n\t\tpanelName,\n\t\trootElement,\n\t\tcomponentProps,\n\t\tisLocal,\n\t\tstyle,\n\t\tisAnimated,\n\t\topacityClamped,\n\t\tisActivePrivateStore,\n\t\tComponentView,\n\t\thandleMeasure,\n\t\tisActive,\n\t\tstores,\n\t\tcontent,\n\t\tlocale,\n\t\topacity,\n\t\trect,\n\t\tisHidden,\n\t\thasBeenMounted,\n\t\t$opacityClamped,\n\t\t$isAnimated,\n\t\tswitch_instance_name_binding,\n\t\tswitch_instance_binding,\n\t\tdiv_binding\n\t];\n}\n\nclass UtilPanel extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$R,\n\t\t\tcreate_fragment$Q,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tisActive: 12,\n\t\t\t\tstores: 13,\n\t\t\t\tcontent: 14,\n\t\t\t\tcomponent: 0,\n\t\t\t\tlocale: 15,\n\t\t\t\tclass: 1,\n\t\t\t\topacity: 16\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget opacity() {\n\t\treturn this.$$.ctx[16];\n\t}\n}\n\n/* src/core/ui/components/Icon.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$P(ctx) {\n\tlet svg;\n\tlet svg_viewBox_value;\n\tlet current;\n\tconst default_slot_template = /*#slots*/ ctx[5].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);\n\n\treturn {\n\t\tc() {\n\t\t\tsvg = svg_element(\"svg\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(svg, \"class\", /*klass*/ ctx[3]);\n\t\t\tattr(svg, \"style\", /*style*/ ctx[2]);\n\t\t\tattr(svg, \"width\", /*width*/ ctx[0]);\n\t\t\tattr(svg, \"height\", /*height*/ ctx[1]);\n\t\t\tattr(svg, \"viewBox\", svg_viewBox_value = \"0 0 \" + /*width*/ ctx[0] + \"\\n \" + /*height*/ ctx[1]);\n\t\t\tattr(svg, \"xmlns\", \"http://www.w3.org/2000/svg\");\n\t\t\tattr(svg, \"aria-hidden\", \"true\");\n\t\t\tattr(svg, \"focusable\", \"false\");\n\t\t\tattr(svg, \"stroke-linecap\", \"round\");\n\t\t\tattr(svg, \"stroke-linejoin\", \"round\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, svg, anchor);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(svg, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[4],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[4])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 8) {\n\t\t\t\tattr(svg, \"class\", /*klass*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 4) {\n\t\t\t\tattr(svg, \"style\", /*style*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*width*/ 1) {\n\t\t\t\tattr(svg, \"width\", /*width*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*height*/ 2) {\n\t\t\t\tattr(svg, \"height\", /*height*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*width, height*/ 3 && svg_viewBox_value !== (svg_viewBox_value = \"0 0 \" + /*width*/ ctx[0] + \"\\n \" + /*height*/ ctx[1])) {\n\t\t\t\tattr(svg, \"viewBox\", svg_viewBox_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(svg);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t}\n\t};\n}\n\nfunction instance$Q($$self, $$props, $$invalidate) {\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { width = 24 } = $$props;\n\tlet { height = 24 } = $$props;\n\tlet { style = undefined } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('width' in $$props) $$invalidate(0, width = $$props.width);\n\t\tif ('height' in $$props) $$invalidate(1, height = $$props.height);\n\t\tif ('style' in $$props) $$invalidate(2, style = $$props.style);\n\t\tif ('class' in $$props) $$invalidate(3, klass = $$props.class);\n\t\tif ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);\n\t};\n\n\treturn [width, height, style, klass, $$scope, slots];\n}\n\nclass Icon extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$Q, create_fragment$P, safe_not_equal, { width: 0, height: 1, style: 2, class: 3 });\n\t}\n}\n\nvar isEventTarget = (e, element) => element === e.target || element.contains(e.target);\n\nvar toKeyboardShortcut = (keys) => keys.map((key) => (key === 'CMD' ? (isMac() ? '⌘' : 'Ctrl') : key)).join('+');\n\n/**\n * @param { string } label\n * @param { string } title\n * @param { string[] } shortcut\n * @returns { string }\n */\nvar toTitle = (label, title, shortcut) => (isString(title) ? title : label) + (shortcut ? ` (${toKeyboardShortcut(shortcut)})` : '');\n\n/* src/core/ui/components/Button.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block_1$e(ctx) {\n\tlet icon_1;\n\tlet current;\n\n\ticon_1 = new Icon({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaButtonIcon\",\n\t\t\t\t$$slots: { default: [create_default_slot$h] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_1_changes = {};\n\n\t\t\tif (dirty & /*$$scope, icon*/ 536870920) {\n\t\t\t\ticon_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon_1.$set(icon_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon_1, detaching);\n\t\t}\n\t};\n}\n\n// (82:16) <Icon class=\"PinturaButtonIcon\">\nfunction create_default_slot$h(ctx) {\n\tlet g;\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = /*icon*/ ctx[3];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*icon*/ 8) g.innerHTML = /*icon*/ ctx[3];\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (88:12) {#if label}\nfunction create_if_block$i(ctx) {\n\tlet span;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tattr(span, \"class\", /*elLabelClass*/ ctx[11]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tspan.innerHTML = /*label*/ ctx[0];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*label*/ 1) span.innerHTML = /*label*/ ctx[0];\n\t\t\tif (dirty & /*elLabelClass*/ 2048) {\n\t\t\t\tattr(span, \"class\", /*elLabelClass*/ ctx[11]);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (79:10) \nfunction fallback_block$2(ctx) {\n\tlet span;\n\tlet t;\n\tlet current;\n\tlet if_block0 = /*icon*/ ctx[3] && create_if_block_1$e(ctx);\n\tlet if_block1 = /*label*/ ctx[0] && create_if_block$i(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(span, \"class\", /*elButtonInnerClass*/ ctx[13]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tif (if_block0) if_block0.m(span, null);\n\t\t\tappend(span, t);\n\t\t\tif (if_block1) if_block1.m(span, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*icon*/ ctx[3]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*icon*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_1$e(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(span, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*label*/ ctx[0]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$i(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(span, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*elButtonInnerClass*/ 8192) {\n\t\t\t\tattr(span, \"class\", /*elButtonInnerClass*/ ctx[13]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\nfunction create_fragment$O(ctx) {\n\tlet button;\n\tlet button_title_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[27].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[29], null);\n\tconst default_slot_or_fallback = default_slot || fallback_block$2(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tbutton = element(\"button\");\n\t\t\tif (default_slot_or_fallback) default_slot_or_fallback.c();\n\t\t\tattr(button, \"type\", /*type*/ ctx[6]);\n\t\t\tattr(button, \"style\", /*style*/ ctx[4]);\n\t\t\tbutton.disabled = /*disabled*/ ctx[5];\n\t\t\tattr(button, \"class\", /*elButtonClass*/ ctx[12]);\n\t\t\tattr(button, \"title\", button_title_value = toTitle(/*label*/ ctx[0], /*title*/ ctx[1], /*shortcut*/ ctx[2]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button, anchor);\n\n\t\t\tif (default_slot_or_fallback) {\n\t\t\t\tdefault_slot_or_fallback.m(button, null);\n\t\t\t}\n\n\t\t\t/*button_binding*/ ctx[28](button);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(button, \"keydown\", function () {\n\t\t\t\t\t\tif (is_function(/*onkeydown*/ ctx[8])) /*onkeydown*/ ctx[8].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(button, \"click\", function () {\n\t\t\t\t\t\tif (is_function(/*onclick*/ ctx[7])) /*onclick*/ ctx[7].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(button, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*handleDown*/ ctx[14])) /*handleDown*/ ctx[14].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(/*action*/ ctx[9].call(null, button))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 536870912)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[29],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[29])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[29], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (default_slot_or_fallback && default_slot_or_fallback.p && (!current || dirty & /*elButtonInnerClass, elLabelClass, label, icon*/ 10249)) {\n\t\t\t\t\tdefault_slot_or_fallback.p(ctx, !current ? -1 : dirty);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*type*/ 64) {\n\t\t\t\tattr(button, \"type\", /*type*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 16) {\n\t\t\t\tattr(button, \"style\", /*style*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*disabled*/ 32) {\n\t\t\t\tbutton.disabled = /*disabled*/ ctx[5];\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*elButtonClass*/ 4096) {\n\t\t\t\tattr(button, \"class\", /*elButtonClass*/ ctx[12]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*label, title, shortcut*/ 7 && button_title_value !== (button_title_value = toTitle(/*label*/ ctx[0], /*title*/ ctx[1], /*shortcut*/ ctx[2]))) {\n\t\t\t\tattr(button, \"title\", button_title_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot_or_fallback, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot_or_fallback, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button);\n\t\t\tif (default_slot_or_fallback) default_slot_or_fallback.d(detaching);\n\t\t\t/*button_binding*/ ctx[28](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$P($$self, $$props, $$invalidate) {\n\tlet handleDown;\n\tlet handleUp;\n\tlet elButtonInnerClass;\n\tlet elButtonClass;\n\tlet elLabelClass;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet { label = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { shortcut = undefined } = $$props;\n\tlet { labelClass = undefined } = $$props;\n\tlet { innerClass = undefined } = $$props;\n\tlet { hideLabel = false } = $$props;\n\tlet { icon = undefined } = $$props;\n\tlet { style = undefined } = $$props;\n\tlet { disabled = undefined } = $$props;\n\tlet { type = 'button' } = $$props;\n\tlet { onclick = undefined } = $$props;\n\tlet { onkeydown = undefined } = $$props;\n\tlet { onhold = undefined } = $$props;\n\n\tlet { action = () => {\n\t\t\n\t} } = $$props;\n\n\tlet { holdThreshold = 500 } = $$props;\n\tlet { holdSpeedUpFactor = 0.5 } = $$props;\n\tlet { holdSpeedMin = 20 } = $$props;\n\tlet holdTimer;\n\n\tconst hold = holdStep => {\n\t\t$$invalidate(25, holdTimer = setTimeout(\n\t\t\t() => {\n\t\t\t\tonhold();\n\t\t\t\thold(Math.max(holdStep * holdSpeedUpFactor, holdSpeedMin));\n\t\t\t},\n\t\t\tholdStep\n\t\t));\n\t};\n\n\tlet root;\n\tconst isEventTarget$1 = e => isEventTarget(e, root);\n\tconst getElement = () => root;\n\n\tfunction button_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(10, root);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(15, klass = $$props.class);\n\t\tif ('label' in $$props) $$invalidate(0, label = $$props.label);\n\t\tif ('title' in $$props) $$invalidate(1, title = $$props.title);\n\t\tif ('shortcut' in $$props) $$invalidate(2, shortcut = $$props.shortcut);\n\t\tif ('labelClass' in $$props) $$invalidate(16, labelClass = $$props.labelClass);\n\t\tif ('innerClass' in $$props) $$invalidate(17, innerClass = $$props.innerClass);\n\t\tif ('hideLabel' in $$props) $$invalidate(18, hideLabel = $$props.hideLabel);\n\t\tif ('icon' in $$props) $$invalidate(3, icon = $$props.icon);\n\t\tif ('style' in $$props) $$invalidate(4, style = $$props.style);\n\t\tif ('disabled' in $$props) $$invalidate(5, disabled = $$props.disabled);\n\t\tif ('type' in $$props) $$invalidate(6, type = $$props.type);\n\t\tif ('onclick' in $$props) $$invalidate(7, onclick = $$props.onclick);\n\t\tif ('onkeydown' in $$props) $$invalidate(8, onkeydown = $$props.onkeydown);\n\t\tif ('onhold' in $$props) $$invalidate(19, onhold = $$props.onhold);\n\t\tif ('action' in $$props) $$invalidate(9, action = $$props.action);\n\t\tif ('holdThreshold' in $$props) $$invalidate(20, holdThreshold = $$props.holdThreshold);\n\t\tif ('holdSpeedUpFactor' in $$props) $$invalidate(21, holdSpeedUpFactor = $$props.holdSpeedUpFactor);\n\t\tif ('holdSpeedMin' in $$props) $$invalidate(22, holdSpeedMin = $$props.holdSpeedMin);\n\t\tif ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*onhold, holdTimer, handleUp*/ 101187584) {\n\t\t\t$$invalidate(26, handleUp = onhold\n\t\t\t? () => {\n\t\t\t\t\tif (!holdTimer) return;\n\n\t\t\t\t\t// clean up\n\t\t\t\t\tclearTimeout(holdTimer);\n\n\t\t\t\t\t$$invalidate(25, holdTimer = undefined);\n\n\t\t\t\t\t// no longer holder\n\t\t\t\t\tdocument.documentElement.removeEventListener('pointerup', handleUp);\n\t\t\t\t}\n\t\t\t: noop$1);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*onhold, handleUp, holdThreshold*/ 68681728) {\n\t\t\t$$invalidate(14, handleDown = onhold\n\t\t\t? () => {\n\t\t\t\t\tdocument.documentElement.addEventListener('pointerup', handleUp);\n\t\t\t\t\thold(holdThreshold);\n\t\t\t\t}\n\t\t\t: noop$1);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*innerClass*/ 131072) {\n\t\t\t$$invalidate(13, elButtonInnerClass = arrayJoin(['PinturaButtonInner', innerClass]));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*hideLabel, klass*/ 294912) {\n\t\t\t$$invalidate(12, elButtonClass = arrayJoin(['PinturaButton', hideLabel && 'PinturaButtonIconOnly', klass]));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*hideLabel, labelClass*/ 327680) {\n\t\t\t$$invalidate(11, elLabelClass = arrayJoin([hideLabel ? 'implicit' : 'PinturaButtonLabel', labelClass]));\n\t\t}\n\t};\n\n\treturn [\n\t\tlabel,\n\t\ttitle,\n\t\tshortcut,\n\t\ticon,\n\t\tstyle,\n\t\tdisabled,\n\t\ttype,\n\t\tonclick,\n\t\tonkeydown,\n\t\taction,\n\t\troot,\n\t\telLabelClass,\n\t\telButtonClass,\n\t\telButtonInnerClass,\n\t\thandleDown,\n\t\tklass,\n\t\tlabelClass,\n\t\tinnerClass,\n\t\thideLabel,\n\t\tonhold,\n\t\tholdThreshold,\n\t\tholdSpeedUpFactor,\n\t\tholdSpeedMin,\n\t\tisEventTarget$1,\n\t\tgetElement,\n\t\tholdTimer,\n\t\thandleUp,\n\t\tslots,\n\t\tbutton_binding,\n\t\t$$scope\n\t];\n}\n\nclass Button extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$P, create_fragment$O, safe_not_equal, {\n\t\t\tclass: 15,\n\t\t\tlabel: 0,\n\t\t\ttitle: 1,\n\t\t\tshortcut: 2,\n\t\t\tlabelClass: 16,\n\t\t\tinnerClass: 17,\n\t\t\thideLabel: 18,\n\t\t\ticon: 3,\n\t\t\tstyle: 4,\n\t\t\tdisabled: 5,\n\t\t\ttype: 6,\n\t\t\tonclick: 7,\n\t\t\tonkeydown: 8,\n\t\t\tonhold: 19,\n\t\t\taction: 9,\n\t\t\tholdThreshold: 20,\n\t\t\tholdSpeedUpFactor: 21,\n\t\t\tholdSpeedMin: 22,\n\t\t\tisEventTarget: 23,\n\t\t\tgetElement: 24\n\t\t});\n\t}\n\n\tget isEventTarget() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tget getElement() {\n\t\treturn this.$$.ctx[24];\n\t}\n}\n\nvar arrayRemove = (array, predicate) => {\n const index = array.findIndex(predicate);\n if (index >= 0)\n return array.splice(index, 1);\n return undefined;\n};\n\n// svelte\n// constants\nconst INERTIA_THRESHOLD = 0.25; // when force of velocity exceeds this value we drift\nconst INERTIA_DISTANCE_MULTIPLIER = 50;\nconst INERTIA_DURATION_MULTIPLIER = 80;\nconst TAP_DURATION_MAX = 300;\nconst TAP_DISTANCE_MAX = 64;\nconst DOUBLE_TAP_DURATION_MAX = 700;\nconst DOUBLE_TAP_DISTANCE_MAX = 128;\nconst isContextMenuAction = (e) => isNumber(e.button) && e.button !== 0;\nvar interactable = (node, options = {}) => {\n // set defaults\n const { inertia = false, inertiaDurationMultiplier = INERTIA_DURATION_MULTIPLIER, shouldStartInteraction = () => true, pinch = false, multiTouch = undefined, getEventPosition = (e) => vectorCreate(e.clientX, e.clientY), observeKeys = false, } = options;\n //\n // helpers\n //\n function dispatch(type, detail) {\n node.dispatchEvent(new CustomEvent(type, { detail }));\n }\n function resetInertia() {\n if (inertiaTweenUnsubscribe)\n inertiaTweenUnsubscribe();\n inertiaTweenUnsubscribe = undefined;\n }\n //#region pointer registry\n const pointers = [];\n const getPointerTimestamp = (e) => {\n return e.timeStamp === 0 ? Date.now() : e.timeStamp;\n };\n const addPointer = (e) => {\n const timeStamp = getPointerTimestamp(e);\n const pointer = {\n timeStamp,\n timeStampInitial: timeStamp,\n position: getEventPosition(e),\n origin: getEventPosition(e),\n velocity: vectorCreateEmpty(),\n velocityHistory: [],\n velocityAverage: vectorCreateEmpty(),\n translation: vectorCreateEmpty(),\n interactionState: undefined,\n event: e,\n };\n pointers.push(pointer);\n pointer.interactionState = getInteractionState(pointers);\n };\n const removePointer = (e) => {\n const pointer = arrayRemove(pointers, (pointer) => pointer.event.pointerId === e.pointerId);\n if (pointer)\n return pointer[0];\n };\n const removePointers = () => {\n pointers.length = 0;\n };\n const getPointerIndex = (e) => pointers.findIndex((pointer) => pointer.event.pointerId === e.pointerId);\n const getPointersCenter = () => {\n const position = vectorClone(pointers[0].position);\n if (pointers[1]) {\n const dx = (pointers[1].position.x - position.x) * 0.5;\n const dy = (pointers[1].position.y - position.y) * 0.5;\n position.x += dx;\n position.y += dy;\n }\n return position;\n };\n const flattenPointerOrigin = (pointer) => {\n pointer.origin.x = pointer.position.x;\n pointer.origin.y = pointer.position.y;\n pointer.translation.x = 0;\n pointer.translation.y = 0;\n };\n const updatePointer = (e) => {\n const pointer = getPointer(e);\n if (!pointer)\n return;\n const timeStamp = getPointerTimestamp(e);\n // position\n const eventPosition = getEventPosition(e);\n // duration between previous interaction and new interaction, an interaction duration cannot be faster than 1 millisecond\n const interactionDuration = Math.max(1, timeStamp - pointer.timeStamp);\n // calculate velocity\n pointer.velocity.x = (eventPosition.x - pointer.position.x) / interactionDuration;\n pointer.velocity.y = (eventPosition.y - pointer.position.y) / interactionDuration;\n pointer.velocityHistory.push(vectorClone(pointer.velocity));\n pointer.velocityHistory = pointer.velocityHistory.slice(-3);\n pointer.velocityAverage = pointer.velocityHistory.reduce((v, c, index, arr) => {\n v.x += c.x / arr.length;\n v.y += c.y / arr.length;\n return v;\n }, vectorCreateEmpty());\n // update the translation\n pointer.translation.x = eventPosition.x - pointer.origin.x;\n pointer.translation.y = eventPosition.y - pointer.origin.y;\n // set new state\n pointer.timeStamp = timeStamp;\n pointer.position.x = eventPosition.x;\n pointer.position.y = eventPosition.y;\n pointer.event = e;\n };\n const getPointer = (e) => {\n const i = getPointerIndex(e);\n if (i < 0)\n return;\n return pointers[i];\n };\n const isSingleTouching = () => pointers.length === 1;\n const isMultiTouching = () => pointers.length === 2;\n const getDistance = (pointers, position) => {\n const distanceTotal = pointers.reduce((prev, curr) => {\n prev += vectorDistance(position, curr.position);\n return prev;\n }, 0);\n return distanceTotal / pointers.length;\n };\n const getInteractionState = (pointers) => {\n const center = vectorCenter(pointers.map((pointer) => pointer.position));\n const distance = getDistance(pointers, center);\n return {\n center,\n distance,\n velocity: vectorCenter(pointers.map((pointer) => pointer.velocity)),\n translation: vectorCenter(pointers.map((pointer) => pointer.translation)),\n };\n };\n //#endregion\n let inertiaTween;\n let inertiaOrigin;\n let inertiaTranslation;\n let inertiaTweenUnsubscribe;\n let pinchOffsetDistance;\n let currentTranslation;\n let currentScale;\n let isGesture;\n let lastTapTimeStamp = 0;\n let lastTapPosition = undefined;\n // start handling interactions\n node.addEventListener('pointerdown', handlePointerdown);\n // if keys\n const RelevantKeys = ['Meta', 'Control', 'Alt', 'Shift'];\n function handleKeys(e) {\n if (!RelevantKeys.includes(e.key))\n return;\n const { metaKey, ctrlKey, altKey, shiftKey } = e;\n onPointerUpdated({ metaKey, ctrlKey, altKey, shiftKey });\n }\n let lastPointerUpdate = Date.now();\n const onPointerUpdated = (pressedKeys) => {\n const translation = vectorClone(pointers[0].translation);\n let scalar = currentScale;\n if (pinch && isMultiTouching()) {\n // current pinch distance\n const pinchCurrentDistance = vectorDistance(pointers[0].position, pointers[1].position);\n // to find out scalar we calculate the difference between the pinch offset and the new pinch\n const pinchScalar = pinchCurrentDistance / pinchOffsetDistance;\n // add to existing scalar\n scalar *= pinchScalar;\n // current offset\n vectorAdd(translation, pointers[1].translation);\n }\n vectorAdd(translation, currentTranslation);\n // skip update event if last interaction was less than 16 ms ago\n const now = Date.now();\n const dist = now - lastPointerUpdate;\n if (dist < 16)\n return;\n lastPointerUpdate = now;\n dispatch('interactionupdate', {\n position: getPointersCenter(),\n translation: translation,\n scalar: pinch ? scalar : undefined,\n isMultiTouching: isMultiTouching(),\n ...pressedKeys,\n });\n };\n function handlePointerdown(e) {\n // ignore more than two pointers for now\n if (isMultiTouching())\n return;\n // not interested in context menu\n if (isContextMenuAction(e))\n return;\n // target should equal node, if it doesn't user might have clicked one of the nodes children\n if (!shouldStartInteraction(e, node))\n return;\n // stop any previous inertia tweens\n resetInertia();\n // register this pointer\n addPointer(e);\n // listen for keys if needed\n if (observeKeys) {\n window.addEventListener('keydown', handleKeys);\n window.addEventListener('keyup', handleKeys);\n }\n // if is first pointer we need to init the drag gesture\n if (isSingleTouching()) {\n // handle pointer events\n document.documentElement.addEventListener('pointermove', handlePointermove);\n document.documentElement.addEventListener('pointerup', handlePointerup);\n document.documentElement.addEventListener('pointercancel', handlePointerup);\n document.addEventListener('visibilitychange', handleVisibilityChange);\n // clear vars\n isGesture = false;\n currentScale = 1;\n currentTranslation = vectorCreateEmpty();\n pinchOffsetDistance = undefined;\n dispatch('interactionstart', {\n origin: vectorClone(getPointer(e).origin),\n });\n }\n // is pinch\n else if (pinch) {\n isGesture = true;\n pinchOffsetDistance = vectorDistance(pointers[0].position, pointers[1].position);\n currentTranslation.x += pointers[0].translation.x;\n currentTranslation.y += pointers[0].translation.y;\n flattenPointerOrigin(pointers[0]);\n }\n // is multitouch and we're not allowed to multitouch\n else if (multiTouch === false) {\n // remove all pointers\n removePointers();\n // clean up\n unlisten();\n // cancelled\n return dispatch('interactioncancel');\n }\n }\n //\n // pointer move can only be a primary event (other pointers are not handled)\n //\n function handlePointermove(e) {\n // prevent selection of text (Safari)\n e.preventDefault();\n // update pointer state\n updatePointer(e);\n const { metaKey = false, ctrlKey = false, altKey = false, shiftKey = false, } = observeKeys ? e : {};\n onPointerUpdated({ metaKey, ctrlKey, altKey, shiftKey });\n }\n //\n // pointer up can only be a primary event (other pointers are not handled)\n //\n function handlePointerup(e) {\n // test if is my pointer that was released, as we're listining on document it could be other pointers\n if (!getPointer(e))\n return;\n // calculate center between active pointers\n const centerBetweenPointers = getPointersCenter();\n // remove pointer from active pointers array\n const removedPointer = removePointer(e);\n // store current size\n if (pinch && isSingleTouching()) {\n // calculate current scale\n const pinchCurrentDistance = vectorDistance(pointers[0].position, removedPointer.position);\n currentScale *= pinchCurrentDistance / pinchOffsetDistance;\n currentTranslation.x += pointers[0].translation.x + removedPointer.translation.x;\n currentTranslation.y += pointers[0].translation.y + removedPointer.translation.y;\n flattenPointerOrigin(pointers[0]);\n }\n // check if this was a tap\n let isTap = false;\n let isDoubleTap = false;\n if (!isGesture && removedPointer) {\n const interactionEnd = performance.now();\n const interactionDuration = interactionEnd - removedPointer.timeStampInitial;\n const interactionDistanceSquared = vectorDistanceSquared(removedPointer.translation);\n isTap =\n interactionDistanceSquared < TAP_DISTANCE_MAX &&\n interactionDuration < TAP_DURATION_MAX;\n isDoubleTap = !!(lastTapPosition &&\n isTap &&\n interactionEnd - lastTapTimeStamp < DOUBLE_TAP_DURATION_MAX &&\n vectorDistanceSquared(lastTapPosition, removedPointer.position) <\n DOUBLE_TAP_DISTANCE_MAX);\n if (isTap) {\n lastTapPosition = vectorClone(removedPointer.position);\n lastTapTimeStamp = interactionEnd;\n }\n }\n // we wait till last multi-touch interaction is finished, all pointers need to be de-registered before proceeding\n if (pointers.length > 0)\n return;\n // stop listening\n unlisten();\n const translation = vectorClone(removedPointer.translation);\n const velocity = vectorClone(removedPointer.velocityAverage);\n // allows cancelling inertia from release handler\n let inertiaPrevented = false;\n // user has released interaction\n dispatch('interactionrelease', {\n isTap,\n isDoubleTap,\n position: centerBetweenPointers,\n translation,\n scalar: currentScale,\n preventInertia: () => (inertiaPrevented = true),\n });\n // stop intantly if not a lot of force applied\n const force = vectorDistance(velocity);\n if (inertiaPrevented || !inertia || force < INERTIA_THRESHOLD) {\n return handleEnd(translation, { isTap, isDoubleTap });\n }\n // drift\n inertiaOrigin = vectorClone(centerBetweenPointers);\n inertiaTranslation = vectorClone(translation);\n inertiaTween = tweened(vectorClone(translation), {\n easing: circOut,\n duration: force * inertiaDurationMultiplier,\n });\n inertiaTween\n .set({\n x: translation.x + velocity.x * INERTIA_DISTANCE_MULTIPLIER,\n y: translation.y + velocity.y * INERTIA_DISTANCE_MULTIPLIER,\n })\n .then(() => {\n // if has unsubscribed (tween was reset)\n if (!inertiaTweenUnsubscribe)\n return;\n // go!\n handleEnd(get_store_value(inertiaTween), { isTap, isDoubleTap });\n });\n inertiaTweenUnsubscribe = inertiaTween.subscribe(handleInertiaUpdate);\n }\n function handleInertiaUpdate(translation) {\n // if is same as previous position, ignore\n if (!translation)\n return;\n // this will handle drift interactions\n dispatch('interactionupdate', {\n position: vectorCreate(inertiaOrigin.x + (translation.x - inertiaTranslation.x), inertiaOrigin.y + (translation.y - inertiaTranslation.y)),\n translation: translation,\n scalar: pinch ? currentScale : undefined,\n });\n }\n function handleVisibilityChange(e) {\n if (document.visibilityState === 'visible' || !pointers.length)\n return;\n const state = getInteractionState(pointers);\n // done\n resetInertia();\n // done\n dispatch('interactionend', {\n ...state,\n });\n // reset pointers so we can try again\n pointers.length = 0;\n // document hidden, let's clean up\n unlisten();\n }\n function handleEnd(translation, tapState) {\n resetInertia();\n dispatch('interactionend', {\n ...tapState,\n translation,\n scalar: pinch ? currentScale : undefined,\n });\n }\n function unlisten() {\n if (observeKeys)\n window.removeEventListener('keydown', handleKeys);\n if (observeKeys)\n window.removeEventListener('keyup', handleKeys);\n document.documentElement.removeEventListener('pointermove', handlePointermove);\n document.documentElement.removeEventListener('pointerup', handlePointerup);\n document.documentElement.removeEventListener('pointercancel', handlePointerup);\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n return {\n destroy() {\n resetInertia();\n node.removeEventListener('pointerdown', handlePointerdown);\n },\n };\n};\n\nvar nudgeable = (element, options = {}) => {\n // if added as action on non focusable element you should add tabindex=0 attribute\n const { direction = undefined, shiftMultiplier = 10, bubbles = false, preventDefault = false, stopKeydownPropagation = true, } = options;\n const isHorizontalDirection = direction === 'horizontal';\n const isVerticalDirection = direction === 'vertical';\n const handleKeydown = (e) => {\n const { key } = e;\n const isShift = e.shiftKey;\n const isVerticalAction = /up|down/i.test(key);\n const isHorizontalAction = /left|right/i.test(key);\n // no directional key\n if (!isHorizontalAction && !isVerticalAction)\n return;\n // is horizontal but up or down pressed\n if (isHorizontalDirection && isVerticalAction)\n return;\n // is vertical but left or right pressed\n if (isVerticalDirection && isHorizontalAction)\n return;\n // if holding shift move by a factor 10\n const multiplier = isShift ? shiftMultiplier : 1;\n if (stopKeydownPropagation)\n e.stopPropagation();\n if (preventDefault)\n e.preventDefault();\n element.dispatchEvent(new CustomEvent('nudge', {\n bubbles,\n detail: vectorCreate((/left/i.test(key) ? -1 : /right/i.test(key) ? 1 : 0) * multiplier, (/up/i.test(key) ? -1 : /down/i.test(key) ? 1 : 0) * multiplier),\n }));\n };\n element.addEventListener('keydown', handleKeydown);\n return {\n destroy() {\n element.removeEventListener('keydown', handleKeydown);\n },\n };\n};\n\nfunction elastify(translation, dist) {\n return dist\n ? dist * Math.sign(translation) * Math.log10(1 + Math.abs(translation) / dist)\n : translation;\n}\nconst elastifyRects = (a, b, dist) => {\n if (!b || !dist)\n return { ...a };\n const left = a.x + elastify(b.x - a.x, dist);\n const right = a.x + a.width + elastify(b.x + b.width - (a.x + a.width), dist);\n const top = a.y + elastify(b.y - a.y, dist);\n const bottom = a.y + a.height + elastify(b.y + b.height - (a.y + a.height), dist);\n return {\n x: left,\n y: top,\n width: right - left,\n height: bottom - top,\n };\n};\nconst elastifyVectors = (a, b, dist) => {\n if (!b || !dist)\n return { ...a };\n return vectorCreate(a.x + elastify(b.x - a.x, dist), a.y + elastify(b.y - a.y, dist));\n};\n\nvar unitToPixels = (value, element) => {\n if (!value)\n return;\n if (/em/.test(value))\n return parseInt(value, 10) * 16;\n if (/px/.test(value))\n return parseInt(value, 10);\n};\n\nvar getWheelDelta = (e) => {\n let d = e.detail || 0;\n const { deltaX, deltaY, wheelDelta, wheelDeltaX, wheelDeltaY } = e;\n // \"detect\" x axis interaction for MacOS trackpad\n if (isNumber(wheelDeltaX) && Math.abs(wheelDeltaX) > Math.abs(wheelDeltaY)) {\n // blink & webkit\n d = wheelDeltaX / -120;\n }\n else if (isNumber(deltaX) && Math.abs(deltaX) > Math.abs(deltaY)) {\n // quantum\n d = deltaX / 20;\n }\n else if (wheelDelta || wheelDeltaY) {\n // blink & webkit\n d = (wheelDelta || wheelDeltaY) / -120;\n }\n if (!d) {\n // quantum\n d = deltaY / 20;\n }\n // speed up wheel/touch interactions on firefox and safari as chrome is more snappy\n if (isFirefox() || isSafari()) {\n d *= 2;\n }\n return d;\n};\n\n/* src/core/ui/components/Scrollable.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$N(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet div1_class_value;\n\tlet nudgeable_action;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[36].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[35], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"style\", /*childStyle*/ ctx[5]);\n\t\t\tattr(div1, \"class\", div1_class_value = arrayJoin(['PinturaScrollable', /*klass*/ ctx[0]]));\n\t\t\tattr(div1, \"style\", /*overflowStyle*/ ctx[4]);\n\t\t\tattr(div1, \"data-direction\", /*scrollDirection*/ ctx[1]);\n\t\t\tattr(div1, \"data-state\", /*containerState*/ ctx[6]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\t/*div1_binding*/ ctx[38](div1);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"interactionstart\", /*handleDragStart*/ ctx[8]),\n\t\t\t\t\tlisten(div0, \"interactionupdate\", /*handleDragMove*/ ctx[10]),\n\t\t\t\t\tlisten(div0, \"interactionend\", /*handleDragEnd*/ ctx[11]),\n\t\t\t\t\tlisten(div0, \"interactionrelease\", /*handleDragRelease*/ ctx[9]),\n\t\t\t\t\taction_destroyer(interactable.call(null, div0, { inertia: true })),\n\t\t\t\t\tlisten(div0, \"measure\", /*measure_handler*/ ctx[37]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div0)),\n\t\t\t\t\tlisten(div1, \"wheel\", /*handleWheel*/ ctx[13], { passive: false }),\n\t\t\t\t\tlisten(div1, \"scroll\", /*handleScroll*/ ctx[15]),\n\t\t\t\t\tlisten(div1, \"focusin\", /*handleFocus*/ ctx[14]),\n\t\t\t\t\tlisten(div1, \"nudge\", /*handleNudge*/ ctx[16]),\n\t\t\t\t\tlisten(div1, \"measure\", /*handleResizeScrollContainer*/ ctx[12]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div1, { observePosition: true })),\n\t\t\t\t\taction_destroyer(nudgeable_action = nudgeable.call(null, div1, {\n\t\t\t\t\t\tdirection: /*scrollDirection*/ ctx[1] === 'x'\n\t\t\t\t\t\t? 'horizontal'\n\t\t\t\t\t\t: 'vertical',\n\t\t\t\t\t\tstopKeydownPropagation: false\n\t\t\t\t\t}))\n\t\t\t\t]; // preventDefault is not enabled as keyboard interaction is needed to select nodes\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty[1] & /*$$scope*/ 16)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[35],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[35])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[35], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*childStyle*/ 32) {\n\t\t\t\tattr(div0, \"style\", /*childStyle*/ ctx[5]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*klass*/ 1 && div1_class_value !== (div1_class_value = arrayJoin(['PinturaScrollable', /*klass*/ ctx[0]]))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*overflowStyle*/ 16) {\n\t\t\t\tattr(div1, \"style\", /*overflowStyle*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*scrollDirection*/ 2) {\n\t\t\t\tattr(div1, \"data-direction\", /*scrollDirection*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*containerState*/ 64) {\n\t\t\t\tattr(div1, \"data-state\", /*containerState*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (nudgeable_action && is_function(nudgeable_action.update) && dirty[0] & /*scrollDirection*/ 2) nudgeable_action.update.call(null, {\n\t\t\t\tdirection: /*scrollDirection*/ ctx[1] === 'x'\n\t\t\t\t? 'horizontal'\n\t\t\t\t: 'vertical',\n\t\t\t\tstopKeydownPropagation: false\n\t\t\t}); // preventDefault is not enabled as keyboard interaction is needed to select nodes\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\t/*div1_binding*/ ctx[38](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$O($$self, $$props, $$invalidate) {\n\tlet size;\n\tlet axis;\n\tlet containerStyle;\n\tlet containerFeatherSize;\n\tlet overflows;\n\tlet containerState;\n\tlet childStyle;\n\tlet $scrollOffset;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tconst dispatch = createEventDispatcher();\n\tlet scrollState = 'idle';\n\tlet scrollOrigin;\n\tlet scrollRect;\n\tlet scrollContainerRect;\n\tlet scrollReleased;\n\tlet scrollOffset = spring(0);\n\tcomponent_subscribe($$self, scrollOffset, value => $$invalidate(34, $scrollOffset = value));\n\tlet { class: klass = undefined } = $$props;\n\tlet { scrollBlockInteractionDist = 5 } = $$props;\n\tlet { scrollStep = 10 } = $$props;\n\tlet { scrollFocusMargin = 64 } = $$props;\n\tlet { scrollDirection = 'x' } = $$props;\n\tlet { scrollAutoCancel = false } = $$props;\n\tlet { elasticity = 0 } = $$props;\n\tlet { onscroll = noop$1 } = $$props;\n\tlet { maskFeatherSize = undefined } = $$props;\n\tlet { maskFeatherStartOpacity = undefined } = $$props;\n\tlet { maskFeatherEndOpacity = undefined } = $$props;\n\tlet { scroll = undefined } = $$props;\n\n\t// logic\n\tlet container;\n\n\tlet overflowStyle = '';\n\n\t// is scroll in reset state\n\tlet scrollAtRest = true;\n\n\t// triggers onscroll callback\n\tconst scrollOffsetUnsub = scrollOffset.subscribe(value => {\n\t\tconst pos = vectorCreateEmpty();\n\t\tpos[scrollDirection] = value;\n\t\tonscroll(pos);\n\t});\n\n\tconst limitOffsetToContainer = offset => Math.max(Math.min(0, offset), scrollContainerRect[size] - scrollRect[size]);\n\tlet scrollFirstMove;\n\tlet scrollCancelled;\n\tlet scrollTranslationPrev;\n\n\tconst isHorizontalTranslation = translation => {\n\t\tconst velocity = vectorApply(vectorCreate(translation.x - scrollTranslationPrev.x, translation.y - scrollTranslationPrev.y), Math.abs);\n\t\tscrollTranslationPrev = vectorClone(translation);\n\t\tconst speed = vectorDistanceSquared(velocity);\n\t\tconst diff = velocity.x - velocity.y;\n\t\treturn !(speed > 1 && diff < -0.5);\n\t};\n\n\tconst handleDragStart = () => {\n\t\t// not overflowing so no need to handle\n\t\tif (!overflows) return;\n\n\t\tscrollCancelled = false;\n\t\tscrollFirstMove = true;\n\t\tscrollTranslationPrev = vectorCreate(0, 0);\n\t\tscrollReleased = false;\n\t\t$$invalidate(27, scrollState = 'idle');\n\t\tscrollOrigin = get_store_value(scrollOffset);\n\t};\n\n\tconst handleDragRelease = ({ detail }) => {\n\t\tif (!overflows) return;\n\t\tscrollReleased = true;\n\t\t$$invalidate(27, scrollState = 'idle');\n\t};\n\n\tconst handleDragMove = ({ detail }) => {\n\t\tif (!overflows) return;\n\t\tif (scrollCancelled) return;\n\n\t\t// fixes problem with single move event fired when clicking\n\t\tif (scrollFirstMove) {\n\t\t\tscrollFirstMove = false;\n\t\t\tif (vectorDistanceSquared(detail.translation) < 0.1) return;\n\t\t}\n\n\t\tif (scrollAutoCancel && scrollDirection === 'x' && !isHorizontalTranslation(detail.translation)) {\n\t\t\tscrollCancelled = true;\n\t\t\treturn;\n\t\t}\n\n\t\tsetScrollOffset(scrollOrigin + detail.translation[scrollDirection], { elastic: true });\n\t};\n\n\tconst handleDragEnd = ({ detail }) => {\n\t\tif (!overflows) return;\n\t\tif (scrollCancelled) return;\n\t\tconst offset = scrollOrigin + detail.translation[scrollDirection];\n\t\tconst offsetLimited = limitOffsetToContainer(offset);\n\t\tscrollAtRest = false;\n\n\t\tscrollOffset.set(offsetLimited).then(res => {\n\t\t\tif (!scrollReleased) return;\n\t\t\tscrollAtRest = true;\n\t\t});\n\t};\n\n\tconst handleResizeScrollContainer = ({ detail }) => {\n\t\t$$invalidate(28, scrollContainerRect = detail);\n\n\t\tdispatch('measure', {\n\t\t\tx: detail.x,\n\t\t\ty: detail.y,\n\t\t\twidth: detail.width,\n\t\t\theight: detail.height\n\t\t});\n\t};\n\n\tconst setScrollOffset = (offset, options = {}) => {\n\t\tconst { elastic = false, animate = false, preventScrollState = false } = options;\n\n\t\t// prevents clicks on child elements if the container is being scrolled\n\t\tif (Math.abs(offset - scrollOrigin) > scrollBlockInteractionDist && scrollState === 'idle' && !scrollReleased && !preventScrollState) {\n\t\t\t$$invalidate(27, scrollState = 'scrolling');\n\t\t}\n\n\t\tconst offsetLimited = limitOffsetToContainer(offset);\n\n\t\tconst offsetVisual = elastic && elasticity && !scrollReleased\n\t\t? offsetLimited + elastify(offset - offsetLimited, elasticity)\n\t\t: offsetLimited;\n\n\t\tlet snapToPosition = true;\n\n\t\tif (animate) {\n\t\t\tsnapToPosition = false;\n\t\t} else if (!scrollAtRest) {\n\t\t\tsnapToPosition = !scrollReleased;\n\t\t}\n\n\t\tscrollAtRest = false;\n\n\t\tscrollOffset.set(offsetVisual, { hard: snapToPosition }).then(res => {\n\t\t\tif (!scrollReleased) return;\n\t\t\tscrollAtRest = true;\n\t\t});\n\t};\n\n\tconst handleWheel = e => {\n\t\t// don't do anything if isn't overflowing\n\t\tif (!overflows) return;\n\n\t\t// hold shift scroll up -> move to begin\n\t\t// hold shift scroll down -> move to end\n\t\t// scroll down -> move to right/down\n\t\t// scroll up -> move to left/up\n\t\t// don't run default actions, prevent other actions from running\n\t\te.preventDefault();\n\n\t\te.stopPropagation();\n\n\t\t// detect if is holding shift\n\t\tconst isHoldingShift = e.shiftKey;\n\n\t\t// apply wheel delta to offset\n\t\tconst delta = getWheelDelta(e) * (isHoldingShift ? -1 : 1);\n\n\t\tconst offset = get_store_value(scrollOffset);\n\t\tsetScrollOffset(offset + delta * scrollStep, { animate: true });\n\t};\n\n\tconst handleFocus = e => {\n\t\t// don't do anything if isn't overflowing\n\t\tif (!overflows) return;\n\n\t\t// ignore this handler if is dragging\n\t\tif (!scrollReleased) return;\n\n\t\t// ignore this handler if is pressing arrow key\n\t\t// disabled for now as prevents scrolling filter list\n\t\t// if ($keysPressedStore.some((key) => ArrowKeyCodes.includes(key))) return;\n\t\tlet target = e.target;\n\n\t\t// when a target is marked as implicit we use its parent elemetn\n\t\tif (e.target.classList.contains('implicit')) target = target.parentNode;\n\n\t\t// get bounds\n\t\tconst start = target[scrollDirection === 'x' ? 'offsetLeft' : 'offsetTop']; //.offsetLeft;\n\n\t\tconst space = target[scrollDirection === 'x' ? 'offsetWidth' : 'offsetHeight']; //.offsetWidth;\n\t\tconst end = start + space;\n\n\t\t// we need to know the current offset of the scroll so we can determine if the target is in view\n\t\tconst currentScrollOffset = get_store_value(scrollOffset);\n\n\t\t// the margin around elements to keep in mind when focussing items\n\t\tconst margin = scrollFocusMargin + maskFeatherSize;\n\n\t\tif (currentScrollOffset + start < margin) {\n\t\t\tsetScrollOffset(-start + margin);\n\t\t} else if (currentScrollOffset + end > scrollContainerRect[size] - margin) {\n\t\t\tsetScrollOffset(scrollContainerRect[size] - end - margin, { animate: true });\n\t\t}\n\t};\n\n\tconst handleScroll = () => {\n\t\t// the scroll handler corrects auto browser scroll,\n\t\t// is triggered when browser tries to focus an\n\t\t// element outside of the scrollcontiner\n\t\t$$invalidate(3, container[scrollDirection === 'x' ? 'scrollLeft' : 'scrollTop'] = 0, container);\n\t};\n\n\tconst handleNudge = ({ detail }) => {\n\t\t// no nudging if arrows are used to switch between buttons\n\t\tif (container.querySelector('[data-focus-visible]')) return;\n\n\t\t// apply nudge\n\t\tconst delta = -2 * detail[scrollDirection];\n\n\t\tconst offset = get_store_value(scrollOffset);\n\t\tsetScrollOffset(offset + delta * scrollStep, { animate: true, preventScrollState: true });\n\t};\n\n\tonDestroy(() => {\n\t\tscrollOffsetUnsub();\n\t});\n\n\tconst measure_handler = e => $$invalidate(2, scrollRect = e.detail);\n\n\tfunction div1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tcontainer = $$value;\n\t\t\t$$invalidate(3, container);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('scrollBlockInteractionDist' in $$props) $$invalidate(20, scrollBlockInteractionDist = $$props.scrollBlockInteractionDist);\n\t\tif ('scrollStep' in $$props) $$invalidate(21, scrollStep = $$props.scrollStep);\n\t\tif ('scrollFocusMargin' in $$props) $$invalidate(22, scrollFocusMargin = $$props.scrollFocusMargin);\n\t\tif ('scrollDirection' in $$props) $$invalidate(1, scrollDirection = $$props.scrollDirection);\n\t\tif ('scrollAutoCancel' in $$props) $$invalidate(23, scrollAutoCancel = $$props.scrollAutoCancel);\n\t\tif ('elasticity' in $$props) $$invalidate(24, elasticity = $$props.elasticity);\n\t\tif ('onscroll' in $$props) $$invalidate(25, onscroll = $$props.onscroll);\n\t\tif ('maskFeatherSize' in $$props) $$invalidate(19, maskFeatherSize = $$props.maskFeatherSize);\n\t\tif ('maskFeatherStartOpacity' in $$props) $$invalidate(17, maskFeatherStartOpacity = $$props.maskFeatherStartOpacity);\n\t\tif ('maskFeatherEndOpacity' in $$props) $$invalidate(18, maskFeatherEndOpacity = $$props.maskFeatherEndOpacity);\n\t\tif ('scroll' in $$props) $$invalidate(26, scroll = $$props.scroll);\n\t\tif ('$$scope' in $$props) $$invalidate(35, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*scrollDirection*/ 2) {\n\t\t\t$$invalidate(31, size = scrollDirection === 'x' ? 'width' : 'height');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*scrollDirection*/ 2) {\n\t\t\t$$invalidate(29, axis = scrollDirection.toUpperCase());\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*container*/ 8) {\n\t\t\t$$invalidate(33, containerStyle = container && getComputedStyle(container));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*container*/ 8 | $$self.$$.dirty[1] & /*containerStyle*/ 4) {\n\t\t\t$$invalidate(32, containerFeatherSize = containerStyle && unitToPixels(containerStyle.getPropertyValue('--scrollable-feather-size')));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*scrollContainerRect, scrollRect, maskFeatherStartOpacity, maskFeatherEndOpacity*/ 268828676 | $$self.$$.dirty[1] & /*$scrollOffset, containerFeatherSize, size*/ 11) {\n\t\t\tif ($scrollOffset != null && scrollContainerRect && containerFeatherSize != null && scrollRect) {\n\t\t\t\tconst startOffset = -1 * $scrollOffset / containerFeatherSize;\n\t\t\t\tconst endOffset = -(scrollContainerRect[size] - scrollRect[size] - $scrollOffset) / containerFeatherSize;\n\t\t\t\t$$invalidate(17, maskFeatherStartOpacity = clamp(1 - startOffset, 0, 1));\n\t\t\t\t$$invalidate(18, maskFeatherEndOpacity = clamp(1 - endOffset, 0, 1));\n\t\t\t\t$$invalidate(19, maskFeatherSize = containerFeatherSize);\n\t\t\t\t$$invalidate(4, overflowStyle = `--scrollable-feather-start-opacity: ${maskFeatherStartOpacity};--scrollable-feather-end-opacity: ${maskFeatherEndOpacity}`);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*container, scroll*/ 67108872) {\n\t\t\t// update scroll position\n\t\t\tif (container && scroll !== undefined) {\n\t\t\t\tif (isNumber(scroll)) setScrollOffset(scroll); else setScrollOffset(scroll.scrollOffset, scroll);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*scrollContainerRect, scrollRect*/ 268435460 | $$self.$$.dirty[1] & /*size*/ 1) {\n\t\t\t$$invalidate(30, overflows = scrollContainerRect && scrollRect\n\t\t\t? scrollRect[size] > scrollContainerRect[size]\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*scrollState, overflows*/ 1207959552) {\n\t\t\t$$invalidate(6, containerState = arrayJoin([scrollState, overflows ? 'overflows' : undefined]));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*overflows, axis*/ 1610612736 | $$self.$$.dirty[1] & /*$scrollOffset*/ 8) {\n\t\t\t$$invalidate(5, childStyle = overflows\n\t\t\t? `transform: translate${axis}(${$scrollOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\tscrollDirection,\n\t\tscrollRect,\n\t\tcontainer,\n\t\toverflowStyle,\n\t\tchildStyle,\n\t\tcontainerState,\n\t\tscrollOffset,\n\t\thandleDragStart,\n\t\thandleDragRelease,\n\t\thandleDragMove,\n\t\thandleDragEnd,\n\t\thandleResizeScrollContainer,\n\t\thandleWheel,\n\t\thandleFocus,\n\t\thandleScroll,\n\t\thandleNudge,\n\t\tmaskFeatherStartOpacity,\n\t\tmaskFeatherEndOpacity,\n\t\tmaskFeatherSize,\n\t\tscrollBlockInteractionDist,\n\t\tscrollStep,\n\t\tscrollFocusMargin,\n\t\tscrollAutoCancel,\n\t\telasticity,\n\t\tonscroll,\n\t\tscroll,\n\t\tscrollState,\n\t\tscrollContainerRect,\n\t\taxis,\n\t\toverflows,\n\t\tsize,\n\t\tcontainerFeatherSize,\n\t\tcontainerStyle,\n\t\t$scrollOffset,\n\t\t$$scope,\n\t\tslots,\n\t\tmeasure_handler,\n\t\tdiv1_binding\n\t];\n}\n\nclass Scrollable extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$O,\n\t\t\tcreate_fragment$N,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tclass: 0,\n\t\t\t\tscrollBlockInteractionDist: 20,\n\t\t\t\tscrollStep: 21,\n\t\t\t\tscrollFocusMargin: 22,\n\t\t\t\tscrollDirection: 1,\n\t\t\t\tscrollAutoCancel: 23,\n\t\t\t\telasticity: 24,\n\t\t\t\tonscroll: 25,\n\t\t\t\tmaskFeatherSize: 19,\n\t\t\t\tmaskFeatherStartOpacity: 17,\n\t\t\t\tmaskFeatherEndOpacity: 18,\n\t\t\t\tscroll: 26\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\nfunction fade$1(node, { delay = 0, duration = 400, easing = identity } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\n\n/* src/core/ui/components/StatusMessage.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$M(ctx) {\n\tlet span;\n\tlet span_transition;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tattr(span, \"class\", \"PinturaStatusMessage\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tspan.innerHTML = /*text*/ ctx[0];\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(span, \"measure\", function () {\n\t\t\t\t\t\tif (is_function(/*onmeasure*/ ctx[1])) /*onmeasure*/ ctx[1].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(measurable.call(null, span))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\t\t\tif (!current || dirty & /*text*/ 1) span.innerHTML = /*text*/ ctx[0];\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tadd_render_callback(() => {\n\t\t\t\tif (!span_transition) span_transition = create_bidirectional_transition(span, fade$1, { duration: 500 }, true);\n\t\t\t\tspan_transition.run(1);\n\t\t\t});\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (!span_transition) span_transition = create_bidirectional_transition(span, fade$1, { duration: 500 }, false);\n\t\t\tspan_transition.run(0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif (detaching && span_transition) span_transition.end();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$N($$self, $$props, $$invalidate) {\n\tlet { text } = $$props;\n\tlet { onmeasure = noop$1 } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('text' in $$props) $$invalidate(0, text = $$props.text);\n\t\tif ('onmeasure' in $$props) $$invalidate(1, onmeasure = $$props.onmeasure);\n\t};\n\n\treturn [text, onmeasure];\n}\n\nclass StatusMessage extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$N, create_fragment$M, safe_not_equal, { text: 0, onmeasure: 1 });\n\t}\n}\n\n/* src/core/ui/components/ProgressIndicator.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$L(ctx) {\n\tlet span1;\n\tlet svg;\n\tlet g;\n\tlet circle0;\n\tlet circle1;\n\tlet t0;\n\tlet span0;\n\tlet t1;\n\tlet span1_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tspan1 = element(\"span\");\n\t\t\tsvg = svg_element(\"svg\");\n\t\t\tg = svg_element(\"g\");\n\t\t\tcircle0 = svg_element(\"circle\");\n\t\t\tcircle1 = svg_element(\"circle\");\n\t\t\tt0 = space();\n\t\t\tspan0 = element(\"span\");\n\t\t\tt1 = text(/*formattedValue*/ ctx[3]);\n\t\t\tattr(circle0, \"class\", \"PinturaProgressIndicatorBar\");\n\t\t\tattr(circle0, \"r\", \"8.5\");\n\t\t\tattr(circle0, \"cx\", \"10\");\n\t\t\tattr(circle0, \"cy\", \"10\");\n\t\t\tattr(circle0, \"stroke-linecap\", \"round\");\n\t\t\tattr(circle0, \"opacity\", \".25\");\n\t\t\tattr(circle1, \"class\", \"PinturaProgressIndicatorFill\");\n\t\t\tattr(circle1, \"r\", \"8.5\");\n\t\t\tattr(circle1, \"stroke-dasharray\", /*circleValue*/ ctx[2]);\n\t\t\tattr(circle1, \"cx\", \"10\");\n\t\t\tattr(circle1, \"cy\", \"10\");\n\t\t\tattr(circle1, \"transform\", \"rotate(-90) translate(-20)\");\n\t\t\tattr(g, \"fill\", \"none\");\n\t\t\tattr(g, \"stroke\", \"currentColor\");\n\t\t\tattr(g, \"stroke-width\", \"2.5\");\n\t\t\tattr(g, \"stroke-linecap\", \"round\");\n\t\t\tattr(g, \"opacity\", /*circleOpacity*/ ctx[1]);\n\t\t\tattr(svg, \"width\", \"20\");\n\t\t\tattr(svg, \"height\", \"20\");\n\t\t\tattr(svg, \"viewBox\", \"0 0 20 20\");\n\t\t\tattr(svg, \"xmlns\", \"http://www.w3.org/2000/svg\");\n\t\t\tattr(svg, \"aria-hidden\", \"true\");\n\t\t\tattr(svg, \"focusable\", \"false\");\n\t\t\tattr(span0, \"class\", \"implicit\");\n\t\t\tattr(span1, \"class\", \"PinturaProgressIndicator\");\n\t\t\tattr(span1, \"data-status\", /*status*/ ctx[0]);\n\t\t\tattr(span1, \"style\", span1_style_value = `opacity:${/*$componentOpacity*/ ctx[4]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span1, anchor);\n\t\t\tappend(span1, svg);\n\t\t\tappend(svg, g);\n\t\t\tappend(g, circle0);\n\t\t\tappend(g, circle1);\n\t\t\tappend(span1, t0);\n\t\t\tappend(span1, span0);\n\t\t\tappend(span0, t1);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*circleValue*/ 4) {\n\t\t\t\tattr(circle1, \"stroke-dasharray\", /*circleValue*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (dirty & /*circleOpacity*/ 2) {\n\t\t\t\tattr(g, \"opacity\", /*circleOpacity*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (dirty & /*formattedValue*/ 8) set_data(t1, /*formattedValue*/ ctx[3]);\n\n\t\t\tif (dirty & /*status*/ 1) {\n\t\t\t\tattr(span1, \"data-status\", /*status*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (dirty & /*$componentOpacity*/ 16 && span1_style_value !== (span1_style_value = `opacity:${/*$componentOpacity*/ ctx[4]}`)) {\n\t\t\t\tattr(span1, \"style\", span1_style_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span1);\n\t\t}\n\t};\n}\n\nfunction instance$M($$self, $$props, $$invalidate) {\n\tlet formattedValue;\n\tlet circleValue;\n\tlet circleOpacity;\n\tlet status;\n\tlet $animatedOpacity;\n\tlet $animatedProgressClamped;\n\tlet $componentOpacity;\n\tconst dispatch = createEventDispatcher();\n\tlet { progress } = $$props;\n\tlet { min = 0 } = $$props;\n\tlet { max = 100 } = $$props;\n\tlet { labelBusy = 'Busy' } = $$props;\n\tlet { opacity = undefined } = $$props;\n\tconst componentOpacity = spring(opacity, { precision: 0.01 });\n\tcomponent_subscribe($$self, componentOpacity, value => $$invalidate(4, $componentOpacity = value));\n\tconst animatedValue = spring(0, { precision: 0.01 });\n\tconst animatedOpacity = spring(0, { precision: 0.01 });\n\tcomponent_subscribe($$self, animatedOpacity, value => $$invalidate(13, $animatedOpacity = value));\n\tconst animatedProgressClamped = derived([animatedValue], $animatedValue => clamp($animatedValue, min, max));\n\tcomponent_subscribe($$self, animatedProgressClamped, value => $$invalidate(14, $animatedProgressClamped = value));\n\n\tconst animatedProgressClampedUnsub = animatedProgressClamped.subscribe(value => {\n\t\tif (progress === 1 && Math.round(value) >= 100) dispatch('complete');\n\t});\n\n\tonMount(() => {\n\t\tanimatedOpacity.set(1);\n\t});\n\n\tonDestroy(() => {\n\t\tanimatedProgressClampedUnsub();\n\t});\n\n\t$$self.$$set = $$props => {\n\t\tif ('progress' in $$props) $$invalidate(8, progress = $$props.progress);\n\t\tif ('min' in $$props) $$invalidate(9, min = $$props.min);\n\t\tif ('max' in $$props) $$invalidate(10, max = $$props.max);\n\t\tif ('labelBusy' in $$props) $$invalidate(11, labelBusy = $$props.labelBusy);\n\t\tif ('opacity' in $$props) $$invalidate(12, opacity = $$props.opacity);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*opacity*/ 4096) {\n\t\t\tisNumber(opacity) && componentOpacity.set(opacity);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*progress*/ 256) {\n\t\t\tprogress && progress !== Infinity && animatedValue.set(progress * 100);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*progress, labelBusy, $animatedProgressClamped*/ 18688) {\n\t\t\t$$invalidate(3, formattedValue = progress === Infinity\n\t\t\t? labelBusy\n\t\t\t: `${Math.round($animatedProgressClamped)}%`);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*progress, $animatedProgressClamped*/ 16640) {\n\t\t\t$$invalidate(2, circleValue = progress === Infinity\n\t\t\t? '26.5 53'\n\t\t\t: `${$animatedProgressClamped / 100 * 53} 53`);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$animatedOpacity*/ 8192) {\n\t\t\t$$invalidate(1, circleOpacity = $animatedOpacity); // Math.min(1, progress === Infinity ? 1 : $animatedProgressClamped / 10);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*progress*/ 256) {\n\t\t\t$$invalidate(0, status = progress === Infinity ? 'busy' : 'loading');\n\t\t}\n\t};\n\n\treturn [\n\t\tstatus,\n\t\tcircleOpacity,\n\t\tcircleValue,\n\t\tformattedValue,\n\t\t$componentOpacity,\n\t\tcomponentOpacity,\n\t\tanimatedOpacity,\n\t\tanimatedProgressClamped,\n\t\tprogress,\n\t\tmin,\n\t\tmax,\n\t\tlabelBusy,\n\t\topacity,\n\t\t$animatedOpacity,\n\t\t$animatedProgressClamped\n\t];\n}\n\nclass ProgressIndicator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$M, create_fragment$L, safe_not_equal, {\n\t\t\tprogress: 8,\n\t\t\tmin: 9,\n\t\t\tmax: 10,\n\t\t\tlabelBusy: 11,\n\t\t\topacity: 12\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/StatusAside.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$K(ctx) {\n\tlet span;\n\tlet span_class_value;\n\tlet current;\n\tconst default_slot_template = /*#slots*/ ctx[5].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(span, \"class\", span_class_value = `PinturaStatusAside ${/*klass*/ ctx[0]}`);\n\t\t\tattr(span, \"style\", /*style*/ ctx[1]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(span, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[4],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[4])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 1 && span_class_value !== (span_class_value = `PinturaStatusAside ${/*klass*/ ctx[0]}`)) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 2) {\n\t\t\t\tattr(span, \"style\", /*style*/ ctx[1]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t}\n\t};\n}\n\nfunction instance$L($$self, $$props, $$invalidate) {\n\tlet style;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { offset = 0 } = $$props;\n\tlet { opacity = 0 } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('offset' in $$props) $$invalidate(2, offset = $$props.offset);\n\t\tif ('opacity' in $$props) $$invalidate(3, opacity = $$props.opacity);\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*offset, opacity*/ 12) {\n\t\t\t$$invalidate(1, style = `transform:translateX(${offset}px);opacity:${opacity}`);\n\t\t}\n\t};\n\n\treturn [klass, style, offset, opacity, $$scope, slots];\n}\n\nclass StatusAside extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$L, create_fragment$K, safe_not_equal, { offset: 2, opacity: 3, class: 0 });\n\t}\n}\n\n/* src/core/ui/components/ImageButton.svelte generated by Svelte v3.52.0 */\n\nconst { document: document_1$1 } = globals;\n\nfunction create_fragment$J(ctx) {\n\tlet t;\n\tlet button;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tt = space();\n\t\t\tbutton = element(\"button\");\n\t\t\tattr(button, \"class\", \"PinturaImageButton\");\n\t\t\tattr(button, \"type\", \"button\");\n\t\t\tattr(button, \"title\", /*title*/ ctx[1]);\n\t\t\tbutton.disabled = /*disabled*/ ctx[2];\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, t, anchor);\n\t\t\tinsert(target, button, anchor);\n\t\t\tbutton.innerHTML = /*html*/ ctx[0];\n\t\t\t/*button_binding*/ ctx[11](button);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(document_1$1.body, \"load\", /*handleLoad*/ ctx[5], true),\n\t\t\t\t\tlisten(document_1$1.body, \"error\", /*handleError*/ ctx[6], true),\n\t\t\t\t\tlisten(button, \"pointerdown\", /*handleDown*/ ctx[4])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*html*/ 1) button.innerHTML = /*html*/ ctx[0];\n\t\t\tif (dirty & /*title*/ 2) {\n\t\t\t\tattr(button, \"title\", /*title*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (dirty & /*disabled*/ 4) {\n\t\t\t\tbutton.disabled = /*disabled*/ ctx[2];\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(t);\n\t\t\tif (detaching) detach(button);\n\t\t\t/*button_binding*/ ctx[11](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$K($$self, $$props, $$invalidate) {\n\tlet { html } = $$props;\n\tlet { title } = $$props;\n\tlet { onclick } = $$props;\n\tlet { disabled = false } = $$props;\n\tlet { ongrab = noop$1 } = $$props;\n\tlet { ondrag = noop$1 } = $$props;\n\tlet { ondrop = noop$1 } = $$props;\n\tlet element;\n\tconst isOverButton = e => vectorDistanceSquared(downPosition, vectorCreate(e.pageX, e.pageY)) < 256;\n\tlet downPosition;\n\n\tconst handleDown = e => {\n\t\tdownPosition = vectorCreate(e.pageX, e.pageY);\n\t\tongrab(e);\n\t\tdocument.documentElement.addEventListener('pointermove', handleMove);\n\t\tdocument.documentElement.addEventListener('pointerup', handleUp);\n\t};\n\n\tconst handleUp = e => {\n\t\tdocument.documentElement.removeEventListener('pointermove', handleMove);\n\t\tdocument.documentElement.removeEventListener('pointerup', handleUp);\n\t\tconst upPosition = vectorCreate(e.pageX, e.pageY);\n\n\t\t// must have moved enough distance to drop\n\t\tif (vectorDistanceSquared(downPosition, upPosition) < 32) return onclick(e);\n\n\t\t// cant drop in button\n\t\tif (isOverButton(e)) return;\n\n\t\t// was dragging\n\t\tondrop(e);\n\t};\n\n\tconst handleMove = e => {\n\t\t// must have moved enough distance from button\n\t\tif (isOverButton(e)) return;\n\n\t\t// dragging out of button\n\t\tondrag(e);\n\t};\n\n\t// image loading\n\tconst isImageTarget = target => element && element.contains(target) && target.nodeName === 'IMG';\n\n\tconst handleLoad = ({ target }) => {\n\t\tif (!isImageTarget(target)) return;\n\t\t$$invalidate(3, element.dataset.load = true, element);\n\t};\n\n\tconst handleError = ({ target }) => {\n\t\tif (!isImageTarget(target)) return;\n\t\t$$invalidate(3, element.dataset.error = true, element);\n\t};\n\n\tfunction button_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\telement = $$value;\n\t\t\t$$invalidate(3, element);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('html' in $$props) $$invalidate(0, html = $$props.html);\n\t\tif ('title' in $$props) $$invalidate(1, title = $$props.title);\n\t\tif ('onclick' in $$props) $$invalidate(7, onclick = $$props.onclick);\n\t\tif ('disabled' in $$props) $$invalidate(2, disabled = $$props.disabled);\n\t\tif ('ongrab' in $$props) $$invalidate(8, ongrab = $$props.ongrab);\n\t\tif ('ondrag' in $$props) $$invalidate(9, ondrag = $$props.ondrag);\n\t\tif ('ondrop' in $$props) $$invalidate(10, ondrop = $$props.ondrop);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*element*/ 8) {\n\t\t\tif (element && element.querySelector('img')) $$invalidate(3, element.dataset.loader = true, element);\n\t\t}\n\t};\n\n\treturn [\n\t\thtml,\n\t\ttitle,\n\t\tdisabled,\n\t\telement,\n\t\thandleDown,\n\t\thandleLoad,\n\t\thandleError,\n\t\tonclick,\n\t\tongrab,\n\t\tondrag,\n\t\tondrop,\n\t\tbutton_binding\n\t];\n}\n\nclass ImageButton extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$K, create_fragment$J, safe_not_equal, {\n\t\t\thtml: 0,\n\t\t\ttitle: 1,\n\t\t\tonclick: 7,\n\t\t\tdisabled: 2,\n\t\t\tongrab: 8,\n\t\t\tondrag: 9,\n\t\t\tondrop: 10\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/ImageButtonList.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$6(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i];\n\treturn child_ctx;\n}\n\n// (24:4) {#each items as item (item.id)}\nfunction create_each_block$6(key_1, ctx) {\n\tlet li;\n\tlet imagebutton;\n\tlet t;\n\tlet didMountAction_action;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction func() {\n\t\treturn /*func*/ ctx[10](/*item*/ ctx[14]);\n\t}\n\n\tfunction func_1(...args) {\n\t\treturn /*func_1*/ ctx[11](/*item*/ ctx[14], ...args);\n\t}\n\n\tfunction func_2(...args) {\n\t\treturn /*func_2*/ ctx[12](/*item*/ ctx[14], ...args);\n\t}\n\n\tfunction func_3(...args) {\n\t\treturn /*func_3*/ ctx[13](/*item*/ ctx[14], ...args);\n\t}\n\n\timagebutton = new ImageButton({\n\t\t\tprops: {\n\t\t\t\tonclick: func,\n\t\t\t\tongrab: func_1,\n\t\t\t\tondrag: func_2,\n\t\t\t\tondrop: func_3,\n\t\t\t\tdisabled: /*disabled*/ ctx[1] || /*item*/ ctx[14].disabled,\n\t\t\t\ttitle: /*item*/ ctx[14].title,\n\t\t\t\thtml: /*item*/ ctx[14].thumb\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tcreate_component(imagebutton.$$.fragment);\n\t\t\tt = space();\n\t\t\tattr(li, \"style\", /*style*/ ctx[6]);\n\t\t\tthis.first = li;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\t\t\tmount_component(imagebutton, li, null);\n\t\t\tappend(li, t);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = action_destroyer(didMountAction_action = /*didMountAction*/ ctx[8].call(null, li, /*item*/ ctx[14]));\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst imagebutton_changes = {};\n\t\t\tif (dirty & /*onclickitem, items*/ 5) imagebutton_changes.onclick = func;\n\t\t\tif (dirty & /*ongrabitem, items*/ 9) imagebutton_changes.ongrab = func_1;\n\t\t\tif (dirty & /*ondragitem, items*/ 17) imagebutton_changes.ondrag = func_2;\n\t\t\tif (dirty & /*ondropitem, items*/ 33) imagebutton_changes.ondrop = func_3;\n\t\t\tif (dirty & /*disabled, items*/ 3) imagebutton_changes.disabled = /*disabled*/ ctx[1] || /*item*/ ctx[14].disabled;\n\t\t\tif (dirty & /*items*/ 1) imagebutton_changes.title = /*item*/ ctx[14].title;\n\t\t\tif (dirty & /*items*/ 1) imagebutton_changes.html = /*item*/ ctx[14].thumb;\n\t\t\timagebutton.$set(imagebutton_changes);\n\n\t\t\tif (!current || dirty & /*style*/ 64) {\n\t\t\t\tattr(li, \"style\", /*style*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (didMountAction_action && is_function(didMountAction_action.update) && dirty & /*items*/ 1) didMountAction_action.update.call(null, /*item*/ ctx[14]);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(imagebutton.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(imagebutton.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tdestroy_component(imagebutton);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction create_fragment$I(ctx) {\n\tlet ul;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet current;\n\tlet each_value = /*items*/ ctx[0];\n\tconst get_key = ctx => /*item*/ ctx[14].id;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$6(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$6(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tul = element(\"ul\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(ul, \"class\", \"PinturaImageButtonList\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, ul, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(ul, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*style, items, onclickitem, ongrabitem, ondragitem, ondropitem, disabled*/ 127) {\n\t\t\t\teach_value = /*items*/ ctx[0];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, outro_and_destroy_block, create_each_block$6, null, get_each_context$6);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(ul);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\nfunction instance$J($$self, $$props, $$invalidate) {\n\tlet style;\n\tlet $opacity;\n\tlet { items } = $$props;\n\tlet { disabled = undefined } = $$props;\n\tlet { onclickitem } = $$props;\n\tlet { ongrabitem = undefined } = $$props;\n\tlet { ondragitem = undefined } = $$props;\n\tlet { ondropitem = undefined } = $$props;\n\tconst opacity = spring(0, { stiffness: 0.25, damping: 0.9 });\n\tcomponent_subscribe($$self, opacity, value => $$invalidate(9, $opacity = value));\n\tconst didMountAction = (element, item) => item.mount && item.mount(element.firstChild, item);\n\tonMount(() => opacity.set(1));\n\tconst func = item => onclickitem(item.id);\n\tconst func_1 = (item, e) => ongrabitem && ongrabitem(item.id, e);\n\tconst func_2 = (item, e) => ondragitem && ondragitem(item.id, e);\n\tconst func_3 = (item, e) => ondropitem && ondropitem(item.id, e);\n\n\t$$self.$$set = $$props => {\n\t\tif ('items' in $$props) $$invalidate(0, items = $$props.items);\n\t\tif ('disabled' in $$props) $$invalidate(1, disabled = $$props.disabled);\n\t\tif ('onclickitem' in $$props) $$invalidate(2, onclickitem = $$props.onclickitem);\n\t\tif ('ongrabitem' in $$props) $$invalidate(3, ongrabitem = $$props.ongrabitem);\n\t\tif ('ondragitem' in $$props) $$invalidate(4, ondragitem = $$props.ondragitem);\n\t\tif ('ondropitem' in $$props) $$invalidate(5, ondropitem = $$props.ondropitem);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$opacity*/ 512) {\n\t\t\t$$invalidate(6, style = `opacity:${$opacity}`);\n\t\t}\n\t};\n\n\treturn [\n\t\titems,\n\t\tdisabled,\n\t\tonclickitem,\n\t\tongrabitem,\n\t\tondragitem,\n\t\tondropitem,\n\t\tstyle,\n\t\topacity,\n\t\tdidMountAction,\n\t\t$opacity,\n\t\tfunc,\n\t\tfunc_1,\n\t\tfunc_2,\n\t\tfunc_3\n\t];\n}\n\nclass ImageButtonList extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$J, create_fragment$I, safe_not_equal, {\n\t\t\titems: 0,\n\t\t\tdisabled: 1,\n\t\t\tonclickitem: 2,\n\t\t\tongrabitem: 3,\n\t\t\tondragitem: 4,\n\t\t\tondropitem: 5\n\t\t});\n\t}\n}\n\nvar getDevicePixelRatio = () => (isBrowser() && window.devicePixelRatio) || 1;\n\n// if this is a non retina display snap to pixel\nlet fn = null;\nvar snapToPixel = (v) => {\n if (fn === null)\n fn = getDevicePixelRatio() === 1 ? Math.round : (v) => v;\n return fn(v);\n};\n\nvar focus = (element, options = {}) => {\n if (!element)\n return;\n if (options.preventScroll && isSafari()) {\n const scrollTop = document.body.scrollTop;\n element.focus();\n document.body.scrollTop = scrollTop;\n return;\n }\n element.focus(options);\n};\n\nvar isTextarea = (element) => /textarea/i.test(element.nodeName);\n\nvar isTextInput = (node) => /date|email|number|search|text|url/.test(node.type);\n\nvar isTextField = (node) => isTextarea(node) || isTextInput(node) || node.isContentEditable;\n\n/* src/core/ui/components/Panel.svelte generated by Svelte v3.52.0 */\nconst get_details_slot_changes = dirty => ({});\nconst get_details_slot_context = ctx => ({});\nconst get_label_slot_changes = dirty => ({});\nconst get_label_slot_context = ctx => ({});\n\n// (231:0) {:else}\nfunction create_else_block$7(ctx) {\n\tlet button;\n\tlet current;\n\tconst button_spread_levels = [/*buttonProps*/ ctx[7]];\n\n\tlet button_props = {\n\t\t$$slots: { default: [create_default_slot$g] },\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < button_spread_levels.length; i += 1) {\n\t\tbutton_props = assign(button_props, button_spread_levels[i]);\n\t}\n\n\tbutton = new Button({ props: button_props });\n\t/*button_binding_1*/ ctx[46](button);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = (dirty[0] & /*buttonProps*/ 128)\n\t\t\t? get_spread_update(button_spread_levels, [get_spread_object(/*buttonProps*/ ctx[7])])\n\t\t\t: {};\n\n\t\t\tif (dirty[1] & /*$$scope*/ 524288) {\n\t\t\t\tbutton_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*button_binding_1*/ ctx[46](null);\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\n// (229:0) {#if buttonLabel}\nfunction create_if_block_2$a(ctx) {\n\tlet button;\n\tlet current;\n\tconst button_spread_levels = [/*buttonProps*/ ctx[7]];\n\tlet button_props = {};\n\n\tfor (let i = 0; i < button_spread_levels.length; i += 1) {\n\t\tbutton_props = assign(button_props, button_spread_levels[i]);\n\t}\n\n\tbutton = new Button({ props: button_props });\n\t/*button_binding*/ ctx[45](button);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = (dirty[0] & /*buttonProps*/ 128)\n\t\t\t? get_spread_update(button_spread_levels, [get_spread_object(/*buttonProps*/ ctx[7])])\n\t\t\t: {};\n\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*button_binding*/ ctx[45](null);\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\n// (232:4) <Button bind:this={buttonComponent} {...buttonProps}>\nfunction create_default_slot$g(ctx) {\n\tlet current;\n\tconst label_slot_template = /*#slots*/ ctx[44].label;\n\tconst label_slot = create_slot(label_slot_template, ctx, /*$$scope*/ ctx[50], get_label_slot_context);\n\n\treturn {\n\t\tc() {\n\t\t\tif (label_slot) label_slot.c();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (label_slot) {\n\t\t\t\tlabel_slot.m(target, anchor);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (label_slot) {\n\t\t\t\tif (label_slot.p && (!current || dirty[1] & /*$$scope*/ 524288)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tlabel_slot,\n\t\t\t\t\t\tlabel_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[50],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[50])\n\t\t\t\t\t\t: get_slot_changes(label_slot_template, /*$$scope*/ ctx[50], dirty, get_label_slot_changes),\n\t\t\t\t\t\tget_label_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(label_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(label_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (label_slot) label_slot.d(detaching);\n\t\t}\n\t};\n}\n\n// (237:0) {#if isVisible}\nfunction create_if_block_1$d(ctx) {\n\tlet div;\n\tlet t;\n\tlet span;\n\tlet div_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst details_slot_template = /*#slots*/ ctx[44].details;\n\tconst details_slot = create_slot(details_slot_template, ctx, /*$$scope*/ ctx[50], get_details_slot_context);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (details_slot) details_slot.c();\n\t\t\tt = space();\n\t\t\tspan = element(\"span\");\n\t\t\tattr(span, \"class\", \"PinturaPanelTip\");\n\t\t\tattr(span, \"style\", /*tipStyle*/ ctx[10]);\n\t\t\tattr(div, \"class\", div_class_value = arrayJoin(['PinturaPanel', 'pintura-editor-panel', /*panelClass*/ ctx[2]]));\n\t\t\tattr(div, \"tabindex\", \"-1\");\n\t\t\tattr(div, \"style\", /*style*/ ctx[11]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (details_slot) {\n\t\t\t\tdetails_slot.m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tappend(div, span);\n\t\t\t/*div_binding*/ ctx[47](div);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"close\", /*close_handler*/ ctx[48]),\n\t\t\t\t\tlisten(div, \"keydown\", /*handlePanelKeydown*/ ctx[18]),\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler*/ ctx[49]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (details_slot) {\n\t\t\t\tif (details_slot.p && (!current || dirty[1] & /*$$scope*/ 524288)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdetails_slot,\n\t\t\t\t\t\tdetails_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[50],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[50])\n\t\t\t\t\t\t: get_slot_changes(details_slot_template, /*$$scope*/ ctx[50], dirty, get_details_slot_changes),\n\t\t\t\t\t\tget_details_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*tipStyle*/ 1024) {\n\t\t\t\tattr(span, \"style\", /*tipStyle*/ ctx[10]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*panelClass*/ 4 && div_class_value !== (div_class_value = arrayJoin(['PinturaPanel', 'pintura-editor-panel', /*panelClass*/ ctx[2]]))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 2048) {\n\t\t\t\tattr(div, \"style\", /*style*/ ctx[11]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(details_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(details_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (details_slot) details_slot.d(detaching);\n\t\t\t/*div_binding*/ ctx[47](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$H(ctx) {\n\tlet t0;\n\tlet current_block_type_index;\n\tlet if_block0;\n\tlet t1;\n\tlet t2;\n\tlet if_block2_anchor;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst if_block_creators = [create_if_block_2$a, create_else_block$7];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*buttonLabel*/ ctx[1]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\tlet if_block1 = /*isVisible*/ ctx[6] && create_if_block_1$d(ctx);\n\tlet if_block2 = false ;\n\n\treturn {\n\t\tc() {\n\t\t\tt0 = space();\n\t\t\tif_block0.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt2 = space();\n\t\t\tif_block2_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, t2, anchor);\n\t\t\tinsert(target, if_block2_anchor, anchor);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(document.body, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*handleDown*/ ctx[9])) /*handleDown*/ ctx[9].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(document.body, \"pointerup\", function () {\n\t\t\t\t\t\tif (is_function(/*handleUp*/ ctx[8])) /*handleUp*/ ctx[8].apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block0 = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block0) {\n\t\t\t\t\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\tif_block0.m(t1.parentNode, t1);\n\t\t\t}\n\n\t\t\tif (/*isVisible*/ ctx[6]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*isVisible*/ 64) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1$d(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(t2.parentNode, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(t0);\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(t2);\n\t\t\tif (detaching) detach(if_block2_anchor);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nlet panelMargin = 12;\n\nfunction instance$I($$self, $$props, $$invalidate) {\n\tlet buttonElement;\n\tlet offsetProgress;\n\tlet isVisible;\n\tlet isAnimating;\n\tlet transform;\n\tlet maxHeight;\n\tlet style;\n\tlet tipScale;\n\tlet tipOpacity;\n\tlet tipStyle;\n\tlet handleDown;\n\tlet handleUp;\n\tlet buttonProps;\n\tlet $portal;\n\tlet $position;\n\tlet $opacity;\n\tlet $portalRootRect;\n\tlet $offset;\n\tlet $isAnimated;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { buttonClass = undefined } = $$props;\n\tlet { buttonLabel = undefined } = $$props;\n\tlet { buttonLabelClass = undefined } = $$props;\n\tlet { buttonHideLabel = undefined } = $$props;\n\tlet { buttonIcon = undefined } = $$props;\n\tlet { buttonTitle = undefined } = $$props;\n\tlet { panelClass = undefined } = $$props;\n\tlet { isActive = false } = $$props;\n\tlet { onshow = ({ panel }) => focus(panel, { preventScroll: true }) } = $$props;\n\tlet { onhide = noop$1 } = $$props;\n\tconst isAnimated = getContext('isAnimated');\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(43, $isAnimated = value));\n\tconst portal = getContext('rootPortal');\n\tcomponent_subscribe($$self, portal, value => $$invalidate(38, $portal = value));\n\tconst portalRootRect = getContext('rootRect');\n\tcomponent_subscribe($$self, portalRootRect, value => $$invalidate(41, $portalRootRect = value));\n\tlet panelSize;\n\tlet buttonComponent;\n\tlet buttonRect;\n\tconst syncButtonRect = () => $$invalidate(26, buttonRect = buttonElement && buttonElement.getBoundingClientRect());\n\tlet dir = vectorCreateEmpty();\n\tlet opacity = spring(0);\n\tcomponent_subscribe($$self, opacity, value => $$invalidate(40, $opacity = value));\n\tlet shift = vectorCreateEmpty();\n\tconst position = writable({ x: 0, y: 0 });\n\tcomponent_subscribe($$self, position, value => $$invalidate(39, $position = value));\n\n\tconst offset = spring(-5, {\n\t\tstiffness: 0.1,\n\t\tdamping: 0.35,\n\t\tprecision: 0.001\n\t});\n\n\tcomponent_subscribe($$self, offset, value => $$invalidate(42, $offset = value));\n\tlet showPanelTip = true;\n\tconst isTargetSelf = e => isEventTarget(e, $portal) || buttonComponent.isEventTarget(e);\n\tlet downOutsidePanel = false;\n\n\t// move detail panel to portal\n\tlet detailPanel;\n\n\tlet trigger;\n\n\t// test keydown press to open\n\tconst handleClick = e => {\n\t\tif (isTextField(e.target)) return;\n\t\tif (!isActive) syncButtonRect();\n\t\t$$invalidate(31, trigger = e);\n\t\t$$invalidate(0, isActive = !isActive);\n\t};\n\n\tconst handleButtonKeydown = e => {\n\t\tif (!(/down/i).test(e.key)) return;\n\t\t$$invalidate(0, isActive = true);\n\t\t$$invalidate(31, trigger = e);\n\t};\n\n\tconst handlePanelKeydown = e => {\n\t\tif (!(/esc/i).test(e.key)) return;\n\t\t$$invalidate(0, isActive = false);\n\t\tbuttonElement.focus();\n\t};\n\n\t// clean up panel if it was appended to a portal\n\tonDestroy(() => {\n\t\t// no panel or portal, exit\n\t\tif (!$portal) return;\n\n\t\tif (!detailPanel) return;\n\n\t\t// store a ref\n\t\tconst detailPanelRef = detailPanel;\n\n\t\t// clean up \"manually\" if svelte failed to detach, this sometimes happens if parent element is removed from DOM\n\t\ttick$1().then(() => {\n\t\t\tif (!detailPanelRef.parentNode) return;\n\t\t\tdetailPanelRef.remove();\n\t\t});\n\t});\n\n\tfunction button_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tbuttonComponent = $$value;\n\t\t\t$$invalidate(4, buttonComponent);\n\t\t});\n\t}\n\n\tfunction button_binding_1($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tbuttonComponent = $$value;\n\t\t\t$$invalidate(4, buttonComponent);\n\t\t});\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tdetailPanel = $$value;\n\t\t\t$$invalidate(5, detailPanel);\n\t\t});\n\t}\n\n\tconst close_handler = e => {\n\t\te.stopPropagation();\n\t\t$$invalidate(0, isActive = false);\n\t};\n\n\tconst measure_handler = e => $$invalidate(3, panelSize = sizeCreateFromAny(e.detail));\n\n\t$$self.$$set = $$props => {\n\t\tif ('buttonClass' in $$props) $$invalidate(19, buttonClass = $$props.buttonClass);\n\t\tif ('buttonLabel' in $$props) $$invalidate(1, buttonLabel = $$props.buttonLabel);\n\t\tif ('buttonLabelClass' in $$props) $$invalidate(20, buttonLabelClass = $$props.buttonLabelClass);\n\t\tif ('buttonHideLabel' in $$props) $$invalidate(21, buttonHideLabel = $$props.buttonHideLabel);\n\t\tif ('buttonIcon' in $$props) $$invalidate(22, buttonIcon = $$props.buttonIcon);\n\t\tif ('buttonTitle' in $$props) $$invalidate(23, buttonTitle = $$props.buttonTitle);\n\t\tif ('panelClass' in $$props) $$invalidate(2, panelClass = $$props.panelClass);\n\t\tif ('isActive' in $$props) $$invalidate(0, isActive = $$props.isActive);\n\t\tif ('onshow' in $$props) $$invalidate(24, onshow = $$props.onshow);\n\t\tif ('onhide' in $$props) $$invalidate(25, onhide = $$props.onhide);\n\t\tif ('$$scope' in $$props) $$invalidate(50, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*buttonComponent*/ 16) {\n\t\t\tbuttonElement = buttonComponent && buttonComponent.getElement();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive, downOutsidePanel*/ 1073741825) {\n\t\t\t$$invalidate(8, handleUp = isActive\n\t\t\t? e => {\n\t\t\t\t\tif (!downOutsidePanel) return;\n\t\t\t\t\t$$invalidate(30, downOutsidePanel = false);\n\t\t\t\t\tif (isTargetSelf(e)) return;\n\t\t\t\t\t$$invalidate(0, isActive = false);\n\t\t\t\t}\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 1 | $$self.$$.dirty[1] & /*$isAnimated*/ 4096) {\n\t\t\topacity.set(isActive ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 1 | $$self.$$.dirty[1] & /*$isAnimated*/ 4096) {\n\t\t\toffset.set(isActive ? 0 : -5, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$offset*/ 2048) {\n\t\t\t$$invalidate(34, offsetProgress = 1 - $offset / -5);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 1 | $$self.$$.dirty[1] & /*$portalRootRect*/ 1024) {\n\t\t\tif ($portalRootRect && isActive) syncButtonRect();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*panelSize, buttonRect, isActive*/ 67108873 | $$self.$$.dirty[1] & /*$portalRootRect*/ 1024) {\n\t\t\tif ($portalRootRect && panelSize && buttonRect && isActive) {\n\t\t\t\t$$invalidate(29, showPanelTip = true);\n\n\t\t\t\t// as a starting point we'll align panel to center of button and position below\n\t\t\t\tlet x = buttonRect.x - $portalRootRect.x + buttonRect.width * 0.5 - panelSize.width * 0.5;\n\n\t\t\t\tlet y = buttonRect.y - $portalRootRect.y + buttonRect.height;\n\t\t\t\tconst parentLeft = panelMargin;\n\t\t\t\tconst parentTop = panelMargin;\n\t\t\t\tconst parentRight = $portalRootRect.width - panelMargin;\n\t\t\t\tconst parentBottom = $portalRootRect.height - panelMargin;\n\t\t\t\tconst panelLeft = x;\n\t\t\t\tconst panelTop = y;\n\t\t\t\tconst panelRight = panelLeft + panelSize.width;\n\t\t\t\tconst panelBottom = panelTop + panelSize.height;\n\n\t\t\t\t// move to right\n\t\t\t\tif (panelLeft < parentLeft) {\n\t\t\t\t\t$$invalidate(28, shift.x = panelLeft - parentLeft, shift);\n\t\t\t\t\tx = parentLeft;\n\t\t\t\t}\n\n\t\t\t\t// move to left\n\t\t\t\tif (panelRight > parentRight) {\n\t\t\t\t\t$$invalidate(28, shift.x = panelRight - parentRight, shift);\n\t\t\t\t\tx = parentRight - panelSize.width;\n\t\t\t\t}\n\n\t\t\t\tif (panelBottom > parentBottom) {\n\t\t\t\t\t// doesn't fit vertically, push up\n\t\t\t\t\t$$invalidate(27, dir.y = -1, dir);\n\n\t\t\t\t\tconst positionedAboveButtonY = y - panelSize.height - buttonRect.height;\n\t\t\t\t\tconst panelFitsAboveButton = parentTop < positionedAboveButtonY;\n\n\t\t\t\t\tif (panelFitsAboveButton) {\n\t\t\t\t\t\t$$invalidate(28, shift.y = 0, shift);\n\t\t\t\t\t\ty -= panelSize.height + buttonRect.height;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// overlap with button\n\t\t\t\t\t\t$$invalidate(28, shift.y = y - (panelBottom - parentBottom), shift);\n\n\t\t\t\t\t\ty -= panelBottom - parentBottom - panelMargin;\n\t\t\t\t\t\t$$invalidate(29, showPanelTip = false);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// all is fine\n\t\t\t\t\t$$invalidate(27, dir.y = 1, dir);\n\t\t\t\t}\n\n\t\t\t\tset_store_value(position, $position = vectorApply(vectorCreate(x, y), snapToPixel), $position);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$opacity*/ 512) {\n\t\t\t$$invalidate(6, isVisible = $opacity > 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$opacity*/ 512) {\n\t\t\t$$invalidate(37, isAnimating = $opacity < 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*dir*/ 134217728 | $$self.$$.dirty[1] & /*$position, $offset*/ 2304) {\n\t\t\t$$invalidate(36, transform = `translateX(${Math.round($position.x) + dir.x * panelMargin}px) translateY(${Math.round($position.y) + dir.y * panelMargin + dir.y * $offset}px)`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$portalRootRect*/ 1024) {\n\t\t\t$$invalidate(35, maxHeight = `--panel-max-height:${$portalRootRect.height - panelMargin * 2}px`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isAnimating, $opacity, transform, maxHeight*/ 624) {\n\t\t\t$$invalidate(11, style = isAnimating\n\t\t\t? `opacity: ${$opacity}; pointer-events: ${$opacity < 1 ? 'none' : 'all'}; transform: ${transform};${maxHeight}`\n\t\t\t: `transform: ${transform};${maxHeight}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*offsetProgress*/ 8) {\n\t\t\t$$invalidate(32, tipScale = 0.5 + offsetProgress * 0.5);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*offsetProgress*/ 8) {\n\t\t\t$$invalidate(33, tipOpacity = offsetProgress);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*panelSize, showPanelTip, dir, shift*/ 939524104 | $$self.$$.dirty[1] & /*$position, tipOpacity, tipScale*/ 262) {\n\t\t\t$$invalidate(10, tipStyle = $position && panelSize && `opacity:${showPanelTip ? tipOpacity : 0};transform:scaleX(${tipScale})rotate(45deg);top:${dir.y < 0 ? shift.y + panelSize.height : 0}px;left:${shift.x + panelSize.width * 0.5}px`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 1) {\n\t\t\t$$invalidate(9, handleDown = isActive\n\t\t\t? e => {\n\t\t\t\t\tif (isTargetSelf(e)) return;\n\t\t\t\t\t$$invalidate(30, downOutsidePanel = true);\n\t\t\t\t}\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isVisible, detailPanel*/ 96 | $$self.$$.dirty[1] & /*$portal*/ 128) {\n\t\t\tif (isVisible && $portal && detailPanel && detailPanel.parentNode !== $portal) $portal.append(detailPanel);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive*/ 1) {\n\t\t\tif (!isActive) {\n\t\t\t\t$$invalidate(31, trigger = undefined);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isActive, isVisible, detailPanel, onshow*/ 16777313 | $$self.$$.dirty[1] & /*trigger*/ 1) {\n\t\t\tif (isActive && isVisible && detailPanel) {\n\t\t\t\tonshow({ e: trigger, panel: detailPanel });\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isVisible, isActive, onhide*/ 33554497) {\n\t\t\tif (isVisible && !isActive) {\n\t\t\t\tonhide();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*buttonLabel, buttonIcon, buttonClass, buttonHideLabel, buttonLabelClass, buttonTitle*/ 16252930) {\n\t\t\t// calculate button props for both types of buttons\n\t\t\t$$invalidate(7, buttonProps = {\n\t\t\t\tlabel: buttonLabel,\n\t\t\t\ticon: buttonIcon,\n\t\t\t\tclass: arrayJoin(['PinturaPanelButton', buttonClass]),\n\t\t\t\tonkeydown: handleButtonKeydown,\n\t\t\t\tonclick: handleClick,\n\t\t\t\thideLabel: buttonHideLabel,\n\t\t\t\tlabelClass: buttonLabelClass,\n\t\t\t\ttitle: buttonTitle\n\t\t\t});\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tbuttonLabel,\n\t\tpanelClass,\n\t\tpanelSize,\n\t\tbuttonComponent,\n\t\tdetailPanel,\n\t\tisVisible,\n\t\tbuttonProps,\n\t\thandleUp,\n\t\thandleDown,\n\t\ttipStyle,\n\t\tstyle,\n\t\tisAnimated,\n\t\tportal,\n\t\tportalRootRect,\n\t\topacity,\n\t\tposition,\n\t\toffset,\n\t\thandlePanelKeydown,\n\t\tbuttonClass,\n\t\tbuttonLabelClass,\n\t\tbuttonHideLabel,\n\t\tbuttonIcon,\n\t\tbuttonTitle,\n\t\tonshow,\n\t\tonhide,\n\t\tbuttonRect,\n\t\tdir,\n\t\tshift,\n\t\tshowPanelTip,\n\t\tdownOutsidePanel,\n\t\ttrigger,\n\t\ttipScale,\n\t\ttipOpacity,\n\t\toffsetProgress,\n\t\tmaxHeight,\n\t\ttransform,\n\t\tisAnimating,\n\t\t$portal,\n\t\t$position,\n\t\t$opacity,\n\t\t$portalRootRect,\n\t\t$offset,\n\t\t$isAnimated,\n\t\tslots,\n\t\tbutton_binding,\n\t\tbutton_binding_1,\n\t\tdiv_binding,\n\t\tclose_handler,\n\t\tmeasure_handler,\n\t\t$$scope\n\t];\n}\n\nclass Panel extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$I,\n\t\t\tcreate_fragment$H,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tbuttonClass: 19,\n\t\t\t\tbuttonLabel: 1,\n\t\t\t\tbuttonLabelClass: 20,\n\t\t\t\tbuttonHideLabel: 21,\n\t\t\t\tbuttonIcon: 22,\n\t\t\t\tbuttonTitle: 23,\n\t\t\t\tpanelClass: 2,\n\t\t\t\tisActive: 0,\n\t\t\t\tonshow: 24,\n\t\t\t\tonhide: 25\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\nvar ArrowKeys = {\n Up: 38,\n Down: 40,\n Left: 37,\n Right: 39,\n};\n\n/* src/core/ui/components/RadioItem.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$G(ctx) {\n\tlet li;\n\tlet input;\n\tlet t;\n\tlet label_1;\n\tlet li_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[15].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[14], null);\n\n\treturn {\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tinput = element(\"input\");\n\t\t\tt = space();\n\t\t\tlabel_1 = element(\"label\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(input, \"type\", \"radio\");\n\t\t\tattr(input, \"class\", \"implicit\");\n\t\t\tattr(input, \"id\", /*inputId*/ ctx[7]);\n\t\t\tattr(input, \"name\", /*name*/ ctx[0]);\n\t\t\tinput.value = /*value*/ ctx[3];\n\t\t\tinput.disabled = /*disabled*/ ctx[6];\n\t\t\tinput.hidden = /*hidden*/ ctx[5];\n\t\t\tinput.checked = /*checked*/ ctx[4];\n\t\t\tattr(label_1, \"for\", /*inputId*/ ctx[7]);\n\t\t\tattr(label_1, \"title\", /*label*/ ctx[2]);\n\t\t\tattr(li, \"class\", li_class_value = arrayJoin(['PinturaRadioGroupOption', /*klass*/ ctx[1]]));\n\t\t\tattr(li, \"data-hidden\", /*hidden*/ ctx[5]);\n\t\t\tattr(li, \"data-disabled\", /*disabled*/ ctx[6]);\n\t\t\tattr(li, \"data-selected\", /*checked*/ ctx[4]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\t\t\tappend(li, input);\n\t\t\tappend(li, t);\n\t\t\tappend(li, label_1);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(label_1, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(input, \"change\", stop_propagation(/*change_handler*/ ctx[16])),\n\t\t\t\t\tlisten(input, \"keydown\", /*handleKeydown*/ ctx[9]),\n\t\t\t\t\tlisten(input, \"click\", /*handleClick*/ ctx[10])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (!current || dirty & /*inputId*/ 128) {\n\t\t\t\tattr(input, \"id\", /*inputId*/ ctx[7]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*name*/ 1) {\n\t\t\t\tattr(input, \"name\", /*name*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*value*/ 8) {\n\t\t\t\tinput.value = /*value*/ ctx[3];\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*disabled*/ 64) {\n\t\t\t\tinput.disabled = /*disabled*/ ctx[6];\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*hidden*/ 32) {\n\t\t\t\tinput.hidden = /*hidden*/ ctx[5];\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*checked*/ 16) {\n\t\t\t\tinput.checked = /*checked*/ ctx[4];\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 16384)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[14],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[14])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[14], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*inputId*/ 128) {\n\t\t\t\tattr(label_1, \"for\", /*inputId*/ ctx[7]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*label*/ 4) {\n\t\t\t\tattr(label_1, \"title\", /*label*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 2 && li_class_value !== (li_class_value = arrayJoin(['PinturaRadioGroupOption', /*klass*/ ctx[1]]))) {\n\t\t\t\tattr(li, \"class\", li_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*hidden*/ 32) {\n\t\t\t\tattr(li, \"data-hidden\", /*hidden*/ ctx[5]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*disabled*/ 64) {\n\t\t\t\tattr(li, \"data-disabled\", /*disabled*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*checked*/ 16) {\n\t\t\t\tattr(li, \"data-selected\", /*checked*/ ctx[4]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$H($$self, $$props, $$invalidate) {\n\tlet inputId;\n\tlet $keysPressedStored;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { name } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet { label } = $$props;\n\tlet { id } = $$props;\n\tlet { value } = $$props;\n\tlet { checked } = $$props;\n\tlet { onkeydown } = $$props;\n\tlet { onclick } = $$props;\n\tlet { hidden = false } = $$props;\n\tlet { disabled = false } = $$props;\n\tconst ArrowKeyCodes = Object.values(ArrowKeys);\n\tconst keysPressedStored = getContext('keysPressed');\n\tcomponent_subscribe($$self, keysPressedStored, value => $$invalidate(17, $keysPressedStored = value));\n\n\tconst handleKeydown = e => {\n\t\tonkeydown(e);\n\t};\n\n\tconst handleClick = e => {\n\t\t// if pressed arrow key -> ignore so navigation with arrow keys works\n\t\tif ($keysPressedStored.some(key => ArrowKeyCodes.includes(key))) return;\n\n\t\t// just a normal click\n\t\tonclick(e);\n\t};\n\n\tfunction change_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('name' in $$props) $$invalidate(0, name = $$props.name);\n\t\tif ('class' in $$props) $$invalidate(1, klass = $$props.class);\n\t\tif ('label' in $$props) $$invalidate(2, label = $$props.label);\n\t\tif ('id' in $$props) $$invalidate(11, id = $$props.id);\n\t\tif ('value' in $$props) $$invalidate(3, value = $$props.value);\n\t\tif ('checked' in $$props) $$invalidate(4, checked = $$props.checked);\n\t\tif ('onkeydown' in $$props) $$invalidate(12, onkeydown = $$props.onkeydown);\n\t\tif ('onclick' in $$props) $$invalidate(13, onclick = $$props.onclick);\n\t\tif ('hidden' in $$props) $$invalidate(5, hidden = $$props.hidden);\n\t\tif ('disabled' in $$props) $$invalidate(6, disabled = $$props.disabled);\n\t\tif ('$$scope' in $$props) $$invalidate(14, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*name, id*/ 2049) {\n\t\t\t$$invalidate(7, inputId = `${name}-${id}`);\n\t\t}\n\t};\n\n\treturn [\n\t\tname,\n\t\tklass,\n\t\tlabel,\n\t\tvalue,\n\t\tchecked,\n\t\thidden,\n\t\tdisabled,\n\t\tinputId,\n\t\tkeysPressedStored,\n\t\thandleKeydown,\n\t\thandleClick,\n\t\tid,\n\t\tonkeydown,\n\t\tonclick,\n\t\t$$scope,\n\t\tslots,\n\t\tchange_handler\n\t];\n}\n\nclass RadioItem extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$H, create_fragment$G, safe_not_equal, {\n\t\t\tname: 0,\n\t\t\tclass: 1,\n\t\t\tlabel: 2,\n\t\t\tid: 11,\n\t\t\tvalue: 3,\n\t\t\tchecked: 4,\n\t\t\tonkeydown: 12,\n\t\t\tonclick: 13,\n\t\t\thidden: 5,\n\t\t\tdisabled: 6\n\t\t});\n\t}\n}\n\nvar flattenOptions = (options = []) => options.reduce((prev, current) => {\n const isGroup = isArray(current) ? isArray(current[1]) : !!current.options;\n if (isGroup) {\n return prev.concat(isArray(current) ? current[1] : current.options);\n }\n prev.push(current);\n return prev;\n}, []);\n\nconst mapOption = (option, index, optionMapper) => {\n let mappedOption;\n if (isArray(option)) {\n mappedOption = {\n id: index,\n value: option[0],\n label: option[1],\n ...(option[2] || {}),\n };\n }\n else {\n mappedOption = option;\n mappedOption.id = mappedOption.id != null ? mappedOption.id : index;\n }\n return optionMapper ? optionMapper(mappedOption) : mappedOption;\n};\nvar mapOptions = (options = [], optionMapper) => {\n let index = 0;\n return options.map((option) => {\n index++;\n if (isArray(option)) {\n // is either [label, options] or [value, label]\n if (isArray(option[1])) {\n return {\n id: index,\n label: option[0],\n options: option[1].map((option) => mapOption(option, ++index, optionMapper)),\n };\n }\n return mapOption(option, index, optionMapper);\n }\n else {\n // is either { id?, label, options } or { id?, value, label }\n if (option.options) {\n return {\n id: option.id || index,\n label: option.label,\n options: option.options.map((option) => mapOption(option, ++index, optionMapper)),\n };\n }\n return mapOption(option, index, optionMapper);\n }\n });\n};\n\nvar opop = (fn, ...args) => fn && fn(...args);\n\nvar localize = (prop, locale, params) => isFunction(prop) ? prop(locale, params) : prop;\n\nconst localizeOptions = (options, locale) => options.map(([value, label, props]) => {\n if (isArray(label)) {\n return [localize(value, locale), localizeOptions(label, locale)];\n }\n else {\n const res = [value, localize(label, locale)];\n if (props) {\n let obj = { ...props };\n if (props.icon)\n obj.icon = localize(props.icon, locale);\n res.push(obj);\n }\n return res;\n }\n});\nvar localizeOptions$1 = (options, locale) => localizeOptions(options, locale);\n\nvar isConfirmKey = (key) => /enter| /i.test(key);\n\nvar isDeepEqual = (a, b) => {\n if (Array.isArray(a) && Array.isArray(b))\n return arrayEqual(a, b);\n return a === b;\n};\n\n/* src/core/ui/components/RadioGroup.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$5(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[27] = list[i];\n\treturn child_ctx;\n}\n\nconst get_option_slot_changes_1 = dirty => ({\n\toption: dirty[0] & /*mappedOptions*/ 1024\n});\n\nconst get_option_slot_context_1 = ctx => ({ option: /*option*/ ctx[27] });\n\nfunction get_each_context_1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[27] = list[i];\n\treturn child_ctx;\n}\n\nconst get_option_slot_changes = dirty => ({\n\toption: dirty[0] & /*mappedOptions*/ 1024\n});\n\nconst get_option_slot_context = ctx => ({ option: /*option*/ ctx[27] });\n\nconst get_group_slot_changes = dirty => ({\n\toption: dirty[0] & /*mappedOptions*/ 1024\n});\n\nconst get_group_slot_context = ctx => ({ option: /*option*/ ctx[27] });\n\n// (78:0) {#if localizedOptions.length}\nfunction create_if_block_1$c(ctx) {\n\tlet fieldset;\n\tlet t;\n\tlet ul;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet fieldset_class_value;\n\tlet current;\n\tlet if_block = /*label*/ ctx[1] && create_if_block_7$2(ctx);\n\tlet each_value = /*mappedOptions*/ ctx[10];\n\tconst get_key = ctx => /*option*/ ctx[27].id;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$5(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$5(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfieldset = element(\"fieldset\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tul = element(\"ul\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(ul, \"class\", \"PinturaRadioGroupOptions\");\n\t\t\tattr(fieldset, \"class\", fieldset_class_value = arrayJoin(['PinturaRadioGroup', /*klass*/ ctx[3]]));\n\t\t\tattr(fieldset, \"data-layout\", /*layout*/ ctx[5]);\n\t\t\tattr(fieldset, \"title\", /*title*/ ctx[7]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, fieldset, anchor);\n\t\t\tif (if_block) if_block.m(fieldset, null);\n\t\t\tappend(fieldset, t);\n\t\t\tappend(fieldset, ul);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(ul, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*label*/ ctx[1]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_7$2(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(fieldset, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*optionGroupClass, mappedOptions, name, optionClass, getOptionIndex, selectedIndex, handleRadioKeydown, handleRadioClick, optionLabelClass, $$scope*/ 8419153) {\n\t\t\t\teach_value = /*mappedOptions*/ ctx[10];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, outro_and_destroy_block, create_each_block$5, null, get_each_context$5);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*klass*/ 8 && fieldset_class_value !== (fieldset_class_value = arrayJoin(['PinturaRadioGroup', /*klass*/ ctx[3]]))) {\n\t\t\t\tattr(fieldset, \"class\", fieldset_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*layout*/ 32) {\n\t\t\t\tattr(fieldset, \"data-layout\", /*layout*/ ctx[5]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*title*/ 128) {\n\t\t\t\tattr(fieldset, \"title\", /*title*/ ctx[7]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(fieldset);\n\t\t\tif (if_block) if_block.d();\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\n// (80:8) {#if label}\nfunction create_if_block_7$2(ctx) {\n\tlet legend;\n\tlet t;\n\tlet legend_class_value;\n\n\treturn {\n\t\tc() {\n\t\t\tlegend = element(\"legend\");\n\t\t\tt = text(/*label*/ ctx[1]);\n\t\t\tattr(legend, \"class\", legend_class_value = /*hideLabel*/ ctx[2] && 'implicit');\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, legend, anchor);\n\t\t\tappend(legend, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*label*/ 2) set_data(t, /*label*/ ctx[1]);\n\n\t\t\tif (dirty[0] & /*hideLabel*/ 4 && legend_class_value !== (legend_class_value = /*hideLabel*/ ctx[2] && 'implicit')) {\n\t\t\t\tattr(legend, \"class\", legend_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(legend);\n\t\t}\n\t};\n}\n\n// (116:16) {:else}\nfunction create_else_block$6(ctx) {\n\tlet radioitem;\n\tlet current;\n\n\tradioitem = new RadioItem({\n\t\t\tprops: {\n\t\t\t\tname: /*name*/ ctx[4],\n\t\t\t\tlabel: /*option*/ ctx[27].label,\n\t\t\t\tid: /*option*/ ctx[27].id,\n\t\t\t\tvalue: /*option*/ ctx[27].value,\n\t\t\t\tdisabled: /*option*/ ctx[27].disabled,\n\t\t\t\thidden: /*option*/ ctx[27].hidden,\n\t\t\t\tclass: /*optionClass*/ ctx[8],\n\t\t\t\tchecked: /*getOptionIndex*/ ctx[12](/*option*/ ctx[27]) === /*selectedIndex*/ ctx[0],\n\t\t\t\tonkeydown: /*handleRadioKeydown*/ ctx[13](/*option*/ ctx[27]),\n\t\t\t\tonclick: /*handleRadioClick*/ ctx[14](/*option*/ ctx[27]),\n\t\t\t\t$$slots: { default: [create_default_slot_2$5] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radioitem.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radioitem, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radioitem_changes = {};\n\t\t\tif (dirty[0] & /*name*/ 16) radioitem_changes.name = /*name*/ ctx[4];\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.label = /*option*/ ctx[27].label;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.id = /*option*/ ctx[27].id;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.value = /*option*/ ctx[27].value;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.disabled = /*option*/ ctx[27].disabled;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.hidden = /*option*/ ctx[27].hidden;\n\t\t\tif (dirty[0] & /*optionClass*/ 256) radioitem_changes.class = /*optionClass*/ ctx[8];\n\t\t\tif (dirty[0] & /*mappedOptions, selectedIndex*/ 1025) radioitem_changes.checked = /*getOptionIndex*/ ctx[12](/*option*/ ctx[27]) === /*selectedIndex*/ ctx[0];\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.onkeydown = /*handleRadioKeydown*/ ctx[13](/*option*/ ctx[27]);\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.onclick = /*handleRadioClick*/ ctx[14](/*option*/ ctx[27]);\n\n\t\t\tif (dirty[0] & /*$$scope, optionLabelClass, mappedOptions*/ 8389696) {\n\t\t\t\tradioitem_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradioitem.$set(radioitem_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radioitem.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radioitem.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radioitem, detaching);\n\t\t}\n\t};\n}\n\n// (85:16) {#if option.options}\nfunction create_if_block_2$9(ctx) {\n\tlet li;\n\tlet t0;\n\tlet ul;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet t1;\n\tlet li_class_value;\n\tlet current;\n\tconst group_slot_template = /*#slots*/ ctx[22].group;\n\tconst group_slot = create_slot(group_slot_template, ctx, /*$$scope*/ ctx[23], get_group_slot_context);\n\tconst group_slot_or_fallback = group_slot || fallback_block_1(ctx);\n\tlet each_value_1 = /*option*/ ctx[27].options;\n\tconst get_key = ctx => /*option*/ ctx[27].id;\n\n\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\tlet child_ctx = get_each_context_1(ctx, each_value_1, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block_1(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tif (group_slot_or_fallback) group_slot_or_fallback.c();\n\t\t\tt0 = space();\n\t\t\tul = element(\"ul\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt1 = space();\n\t\t\tattr(ul, \"class\", \"PinturaRadioGroupOptions\");\n\t\t\tattr(li, \"class\", li_class_value = arrayJoin(['PinturaRadioGroupOptionGroup', /*optionGroupClass*/ ctx[9]]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\n\t\t\tif (group_slot_or_fallback) {\n\t\t\t\tgroup_slot_or_fallback.m(li, null);\n\t\t\t}\n\n\t\t\tappend(li, t0);\n\t\t\tappend(li, ul);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(ul, null);\n\t\t\t}\n\n\t\t\tappend(li, t1);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (group_slot) {\n\t\t\t\tif (group_slot.p && (!current || dirty[0] & /*$$scope, mappedOptions*/ 8389632)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tgroup_slot,\n\t\t\t\t\t\tgroup_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[23],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[23])\n\t\t\t\t\t\t: get_slot_changes(group_slot_template, /*$$scope*/ ctx[23], dirty, get_group_slot_changes),\n\t\t\t\t\t\tget_group_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (group_slot_or_fallback && group_slot_or_fallback.p && (!current || dirty[0] & /*mappedOptions*/ 1024)) {\n\t\t\t\t\tgroup_slot_or_fallback.p(ctx, !current ? [-1, -1] : dirty);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*name, mappedOptions, optionClass, getOptionIndex, selectedIndex, handleRadioKeydown, handleRadioClick, optionLabelClass, $$scope*/ 8418641) {\n\t\t\t\teach_value_1 = /*option*/ ctx[27].options;\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, ul, outro_and_destroy_block, create_each_block_1, null, get_each_context_1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*optionGroupClass*/ 512 && li_class_value !== (li_class_value = arrayJoin(['PinturaRadioGroupOptionGroup', /*optionGroupClass*/ ctx[9]]))) {\n\t\t\t\tattr(li, \"class\", li_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(group_slot_or_fallback, local);\n\n\t\t\tfor (let i = 0; i < each_value_1.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(group_slot_or_fallback, local);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tif (group_slot_or_fallback) group_slot_or_fallback.d(detaching);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\n// (129:28) {#if option.icon}\nfunction create_if_block_6$3(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_3$3] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[0] & /*$$scope, mappedOptions*/ 8389632) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (130:32) <Icon>\nfunction create_default_slot_3$3(ctx) {\n\tlet g;\n\tlet raw_value = /*option*/ ctx[27].icon + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024 && raw_value !== (raw_value = /*option*/ ctx[27].icon + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (132:28) {#if !option.hideLabel}\nfunction create_if_block_5$5(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[27].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", /*optionLabelClass*/ ctx[6]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024 && t_value !== (t_value = /*option*/ ctx[27].label + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*optionLabelClass*/ 64) {\n\t\t\t\tattr(span, \"class\", /*optionLabelClass*/ ctx[6]);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (128:54) \nfunction fallback_block_2(ctx) {\n\tlet t0;\n\tlet t1;\n\tlet current;\n\tlet if_block0 = /*option*/ ctx[27].icon && create_if_block_6$3(ctx);\n\tlet if_block1 = !/*option*/ ctx[27].hideLabel && create_if_block_5$5(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*option*/ ctx[27].icon) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_6$3(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t0.parentNode, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!/*option*/ ctx[27].hideLabel) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_5$5(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t}\n\t};\n}\n\n// (117:20) <RadioItem {name} label={option.label} id={option.id} value={option.value} disabled={option.disabled} hidden={option.hidden} class={optionClass} checked={getOptionIndex(option) === selectedIndex} onkeydown={handleRadioKeydown(option)} onclick={handleRadioClick(option)} >\nfunction create_default_slot_2$5(ctx) {\n\tlet current;\n\tconst option_slot_template = /*#slots*/ ctx[22].option;\n\tconst option_slot = create_slot(option_slot_template, ctx, /*$$scope*/ ctx[23], get_option_slot_context_1);\n\tconst option_slot_or_fallback = option_slot || fallback_block_2(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (option_slot_or_fallback) option_slot_or_fallback.c();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (option_slot_or_fallback) {\n\t\t\t\toption_slot_or_fallback.m(target, anchor);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (option_slot) {\n\t\t\t\tif (option_slot.p && (!current || dirty[0] & /*$$scope, mappedOptions*/ 8389632)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\toption_slot,\n\t\t\t\t\t\toption_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[23],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[23])\n\t\t\t\t\t\t: get_slot_changes(option_slot_template, /*$$scope*/ ctx[23], dirty, get_option_slot_changes_1),\n\t\t\t\t\t\tget_option_slot_context_1\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (option_slot_or_fallback && option_slot_or_fallback.p && (!current || dirty[0] & /*optionLabelClass, mappedOptions*/ 1088)) {\n\t\t\t\t\toption_slot_or_fallback.p(ctx, !current ? [-1, -1] : dirty);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(option_slot_or_fallback, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(option_slot_or_fallback, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (option_slot_or_fallback) option_slot_or_fallback.d(detaching);\n\t\t}\n\t};\n}\n\n// (88:29) <span class=\"PinturaRadioGroupOptionGroupLabel\">\nfunction fallback_block_1(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[27].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", \"PinturaRadioGroupOptionGroupLabel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024 && t_value !== (t_value = /*option*/ ctx[27].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (105:40) {#if option.icon}\nfunction create_if_block_4$7(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_1$7] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[0] & /*$$scope, mappedOptions*/ 8389632) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (106:44) <Icon>\nfunction create_default_slot_1$7(ctx) {\n\tlet g;\n\tlet raw_value = /*option*/ ctx[27].icon + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024 && raw_value !== (raw_value = /*option*/ ctx[27].icon + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (108:40) {#if !option.hideLabel}\nfunction create_if_block_3$8(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[27].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", /*optionLabelClass*/ ctx[6]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024 && t_value !== (t_value = /*option*/ ctx[27].label + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty[0] & /*optionLabelClass*/ 64) {\n\t\t\t\tattr(span, \"class\", /*optionLabelClass*/ ctx[6]);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (104:66) \nfunction fallback_block$1(ctx) {\n\tlet t0;\n\tlet t1;\n\tlet current;\n\tlet if_block0 = /*option*/ ctx[27].icon && create_if_block_4$7(ctx);\n\tlet if_block1 = !/*option*/ ctx[27].hideLabel && create_if_block_3$8(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*option*/ ctx[27].icon) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_4$7(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t0.parentNode, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!/*option*/ ctx[27].hideLabel) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_3$8(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t}\n\t};\n}\n\n// (93:32) <RadioItem {name} label={option.label} id={option.id} value={option.value} disabled={option.disabled} hidden={option.hidden} class={optionClass} checked={getOptionIndex(option) === selectedIndex} onkeydown={handleRadioKeydown(option)} onclick={handleRadioClick(option)} >\nfunction create_default_slot$f(ctx) {\n\tlet current;\n\tconst option_slot_template = /*#slots*/ ctx[22].option;\n\tconst option_slot = create_slot(option_slot_template, ctx, /*$$scope*/ ctx[23], get_option_slot_context);\n\tconst option_slot_or_fallback = option_slot || fallback_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (option_slot_or_fallback) option_slot_or_fallback.c();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (option_slot_or_fallback) {\n\t\t\t\toption_slot_or_fallback.m(target, anchor);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (option_slot) {\n\t\t\t\tif (option_slot.p && (!current || dirty[0] & /*$$scope, mappedOptions*/ 8389632)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\toption_slot,\n\t\t\t\t\t\toption_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[23],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[23])\n\t\t\t\t\t\t: get_slot_changes(option_slot_template, /*$$scope*/ ctx[23], dirty, get_option_slot_changes),\n\t\t\t\t\t\tget_option_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (option_slot_or_fallback && option_slot_or_fallback.p && (!current || dirty[0] & /*optionLabelClass, mappedOptions*/ 1088)) {\n\t\t\t\t\toption_slot_or_fallback.p(ctx, !current ? [-1, -1] : dirty);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(option_slot_or_fallback, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(option_slot_or_fallback, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (option_slot_or_fallback) option_slot_or_fallback.d(detaching);\n\t\t}\n\t};\n}\n\n// (92:28) {#each option.options as option (option.id)}\nfunction create_each_block_1(key_1, ctx) {\n\tlet first;\n\tlet radioitem;\n\tlet current;\n\n\tradioitem = new RadioItem({\n\t\t\tprops: {\n\t\t\t\tname: /*name*/ ctx[4],\n\t\t\t\tlabel: /*option*/ ctx[27].label,\n\t\t\t\tid: /*option*/ ctx[27].id,\n\t\t\t\tvalue: /*option*/ ctx[27].value,\n\t\t\t\tdisabled: /*option*/ ctx[27].disabled,\n\t\t\t\thidden: /*option*/ ctx[27].hidden,\n\t\t\t\tclass: /*optionClass*/ ctx[8],\n\t\t\t\tchecked: /*getOptionIndex*/ ctx[12](/*option*/ ctx[27]) === /*selectedIndex*/ ctx[0],\n\t\t\t\tonkeydown: /*handleRadioKeydown*/ ctx[13](/*option*/ ctx[27]),\n\t\t\t\tonclick: /*handleRadioClick*/ ctx[14](/*option*/ ctx[27]),\n\t\t\t\t$$slots: { default: [create_default_slot$f] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(radioitem.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(radioitem, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst radioitem_changes = {};\n\t\t\tif (dirty[0] & /*name*/ 16) radioitem_changes.name = /*name*/ ctx[4];\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.label = /*option*/ ctx[27].label;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.id = /*option*/ ctx[27].id;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.value = /*option*/ ctx[27].value;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.disabled = /*option*/ ctx[27].disabled;\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.hidden = /*option*/ ctx[27].hidden;\n\t\t\tif (dirty[0] & /*optionClass*/ 256) radioitem_changes.class = /*optionClass*/ ctx[8];\n\t\t\tif (dirty[0] & /*mappedOptions, selectedIndex*/ 1025) radioitem_changes.checked = /*getOptionIndex*/ ctx[12](/*option*/ ctx[27]) === /*selectedIndex*/ ctx[0];\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.onkeydown = /*handleRadioKeydown*/ ctx[13](/*option*/ ctx[27]);\n\t\t\tif (dirty[0] & /*mappedOptions*/ 1024) radioitem_changes.onclick = /*handleRadioClick*/ ctx[14](/*option*/ ctx[27]);\n\n\t\t\tif (dirty[0] & /*$$scope, optionLabelClass, mappedOptions*/ 8389696) {\n\t\t\t\tradioitem_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradioitem.$set(radioitem_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radioitem.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radioitem.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(radioitem, detaching);\n\t\t}\n\t};\n}\n\n// (84:12) {#each mappedOptions as option (option.id)}\nfunction create_each_block$5(key_1, ctx) {\n\tlet first;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_2$9, create_else_block$6];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*option*/ ctx[27].options) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment$F(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*localizedOptions*/ ctx[11].length && create_if_block_1$c(ctx);\n\tlet if_block1 = false ;\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*localizedOptions*/ ctx[11].length) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*localizedOptions*/ 2048) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_1$c(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$G($$self, $$props, $$invalidate) {\n\tlet localizedOptions;\n\tlet mappedOptions;\n\tlet flattenedOptions;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tconst dispatch = createEventDispatcher();\n\tlet { label = undefined } = $$props;\n\tlet { hideLabel = true } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet { name = `radio-group-${getUniqueId()}` } = $$props;\n\tlet { selectedIndex = -1 } = $$props;\n\tlet { options = [] } = $$props;\n\tlet { onchange = undefined } = $$props;\n\tlet { layout = undefined } = $$props;\n\tlet { optionMapper = undefined } = $$props;\n\tlet { optionFilter = undefined } = $$props;\n\tlet { value = undefined } = $$props;\n\tlet { optionLabelClass = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { locale = undefined } = $$props;\n\tlet { optionClass = undefined } = $$props;\n\tlet { optionGroupClass = undefined } = $$props;\n\tconst getUndefinedOptionIndex = options => options.findIndex(option => option[0] === undefined);\n\tconst getOptionIndex = option => flattenedOptions.findIndex(flattenedOption => flattenedOption.id === option.id);\n\n\tconst changeSelection = (option, e) => {\n\t\t$$invalidate(0, selectedIndex = getOptionIndex(option));\n\t\tconst payload = { index: selectedIndex, ...option };\n\t\topop(onchange, payload, e);\n\t\tdispatch('change', payload);\n\t};\n\n\tconst handleRadioKeydown = option => e => {\n\t\t// is confirm key ([enter] or [space])\n\t\tif (!isConfirmKey(e.key)) return;\n\n\t\tchangeSelection(option, e);\n\t};\n\n\tconst handleRadioClick = option => e => {\n\t\tchangeSelection(option, e);\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('label' in $$props) $$invalidate(1, label = $$props.label);\n\t\tif ('hideLabel' in $$props) $$invalidate(2, hideLabel = $$props.hideLabel);\n\t\tif ('class' in $$props) $$invalidate(3, klass = $$props.class);\n\t\tif ('name' in $$props) $$invalidate(4, name = $$props.name);\n\t\tif ('selectedIndex' in $$props) $$invalidate(0, selectedIndex = $$props.selectedIndex);\n\t\tif ('options' in $$props) $$invalidate(15, options = $$props.options);\n\t\tif ('onchange' in $$props) $$invalidate(16, onchange = $$props.onchange);\n\t\tif ('layout' in $$props) $$invalidate(5, layout = $$props.layout);\n\t\tif ('optionMapper' in $$props) $$invalidate(17, optionMapper = $$props.optionMapper);\n\t\tif ('optionFilter' in $$props) $$invalidate(18, optionFilter = $$props.optionFilter);\n\t\tif ('value' in $$props) $$invalidate(19, value = $$props.value);\n\t\tif ('optionLabelClass' in $$props) $$invalidate(6, optionLabelClass = $$props.optionLabelClass);\n\t\tif ('title' in $$props) $$invalidate(7, title = $$props.title);\n\t\tif ('locale' in $$props) $$invalidate(20, locale = $$props.locale);\n\t\tif ('optionClass' in $$props) $$invalidate(8, optionClass = $$props.optionClass);\n\t\tif ('optionGroupClass' in $$props) $$invalidate(9, optionGroupClass = $$props.optionGroupClass);\n\t\tif ('$$scope' in $$props) $$invalidate(23, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*optionFilter, options, locale*/ 1343488) {\n\t\t\t$$invalidate(11, localizedOptions = localizeOptions$1(optionFilter ? options.filter(optionFilter) : options, locale));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*localizedOptions, optionMapper*/ 133120) {\n\t\t\t$$invalidate(10, mappedOptions = mapOptions(localizedOptions, optionMapper));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*mappedOptions*/ 1024) {\n\t\t\t$$invalidate(21, flattenedOptions = flattenOptions(mappedOptions));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*selectedIndex, flattenedOptions, value, options*/ 2654209) {\n\t\t\t// can optionally pass value to have radio button group try to auto-select the right option\n\t\t\tif (selectedIndex < 0) {\n\t\t\t\t$$invalidate(0, selectedIndex = flattenedOptions.findIndex(option => isDeepEqual(option.value, value)));\n\n\t\t\t\tif (selectedIndex < 0) {\n\t\t\t\t\t$$invalidate(0, selectedIndex = getUndefinedOptionIndex(options));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tselectedIndex,\n\t\tlabel,\n\t\thideLabel,\n\t\tklass,\n\t\tname,\n\t\tlayout,\n\t\toptionLabelClass,\n\t\ttitle,\n\t\toptionClass,\n\t\toptionGroupClass,\n\t\tmappedOptions,\n\t\tlocalizedOptions,\n\t\tgetOptionIndex,\n\t\thandleRadioKeydown,\n\t\thandleRadioClick,\n\t\toptions,\n\t\tonchange,\n\t\toptionMapper,\n\t\toptionFilter,\n\t\tvalue,\n\t\tlocale,\n\t\tflattenedOptions,\n\t\tslots,\n\t\t$$scope\n\t];\n}\n\nclass RadioGroup extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$G,\n\t\t\tcreate_fragment$F,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tlabel: 1,\n\t\t\t\thideLabel: 2,\n\t\t\t\tclass: 3,\n\t\t\t\tname: 4,\n\t\t\t\tselectedIndex: 0,\n\t\t\t\toptions: 15,\n\t\t\t\tonchange: 16,\n\t\t\t\tlayout: 5,\n\t\t\t\toptionMapper: 17,\n\t\t\t\toptionFilter: 18,\n\t\t\t\tvalue: 19,\n\t\t\t\toptionLabelClass: 6,\n\t\t\t\ttitle: 7,\n\t\t\t\tlocale: 20,\n\t\t\t\toptionClass: 8,\n\t\t\t\toptionGroupClass: 9\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* src/core/ui/components/Input.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block$h(ctx) {\n\tlet div;\n\tlet button0;\n\tlet t0;\n\tlet button0_aria_label_value;\n\tlet t1;\n\tlet button1;\n\tlet t2;\n\tlet button1_aria_label_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tbutton0 = element(\"button\");\n\t\t\tt0 = text(\"▲\");\n\t\t\tt1 = space();\n\t\t\tbutton1 = element(\"button\");\n\t\t\tt2 = text(\"▼\");\n\t\t\tattr(button0, \"type\", \"button\");\n\t\t\tattr(button0, \"tabindex\", \"-1\");\n\t\t\tattr(button0, \"aria-label\", button0_aria_label_value = `increase ${/*title*/ ctx[7]}`);\n\t\t\tattr(button1, \"type\", \"button\");\n\t\t\tattr(button1, \"tabindex\", \"-1\");\n\t\t\tattr(button1, \"aria-label\", button1_aria_label_value = `decrease ${/*title*/ ctx[7]}`);\n\t\t\tattr(div, \"class\", \"PinturaInputSpinners\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, button0);\n\t\t\tappend(button0, t0);\n\t\t\tappend(div, t1);\n\t\t\tappend(div, button1);\n\t\t\tappend(button1, t2);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(button0, \"click\", /*handleIncrease*/ ctx[17]),\n\t\t\t\t\tlisten(button1, \"click\", /*handleDecrease*/ ctx[18])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*title*/ 128 && button0_aria_label_value !== (button0_aria_label_value = `increase ${/*title*/ ctx[7]}`)) {\n\t\t\t\tattr(button0, \"aria-label\", button0_aria_label_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*title*/ 128 && button1_aria_label_value !== (button1_aria_label_value = `decrease ${/*title*/ ctx[7]}`)) {\n\t\t\t\tattr(button1, \"aria-label\", button1_aria_label_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$E(ctx) {\n\tlet div;\n\tlet input_1;\n\tlet input_1_value_value;\n\tlet t;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = /*type*/ ctx[1] === 'number' && /*enableSpinButtons*/ ctx[9] && create_if_block$h(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tinput_1 = element(\"input\");\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(input_1, \"class\", \"PinturaInputField\");\n\t\t\tattr(input_1, \"title\", /*title*/ ctx[7]);\n\t\t\tattr(input_1, \"type\", /*type*/ ctx[1]);\n\t\t\tattr(input_1, \"min\", /*min*/ ctx[4]);\n\t\t\tattr(input_1, \"max\", /*max*/ ctx[5]);\n\t\t\tattr(input_1, \"step\", /*step*/ ctx[6]);\n\t\t\tattr(input_1, \"inputmode\", /*inputmode*/ ctx[3]);\n\n\t\t\tinput_1.value = input_1_value_value = /*isClamped*/ ctx[14]\n\t\t\t? /*currentValue*/ ctx[13]\n\t\t\t: /*value*/ ctx[0];\n\n\t\t\tattr(input_1, \"style\", /*style*/ ctx[11]);\n\t\t\tattr(input_1, \"placeholder\", /*placeholder*/ ctx[8]);\n\t\t\tattr(input_1, \"maxlength\", /*maxlength*/ ctx[12]);\n\t\t\tinput_1.disabled = /*disabled*/ ctx[2];\n\t\t\tattr(input_1, \"spellcheck\", \"false\");\n\t\t\tattr(input_1, \"autocorrect\", \"off\");\n\t\t\tattr(input_1, \"autocapitalize\", \"off\");\n\t\t\tattr(div, \"class\", \"PinturaInput\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, input_1);\n\t\t\t/*input_1_binding*/ ctx[26](input_1);\n\t\t\tappend(div, t);\n\t\t\tif (if_block) if_block.m(div, null);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(input_1, \"input\", /*handleInput*/ ctx[16]),\n\t\t\t\t\tlisten(input_1, \"blur\", function () {\n\t\t\t\t\t\tif (is_function(/*isClamped*/ ctx[14] && /*handleBlur*/ ctx[15])) (/*isClamped*/ ctx[14] && /*handleBlur*/ ctx[15]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(input_1, \"keydown\", /*handleKeydown*/ ctx[19]),\n\t\t\t\t\tlisten(input_1, \"keyup\", /*handleKeyup*/ ctx[20])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty & /*title*/ 128) {\n\t\t\t\tattr(input_1, \"title\", /*title*/ ctx[7]);\n\t\t\t}\n\n\t\t\tif (dirty & /*type*/ 2) {\n\t\t\t\tattr(input_1, \"type\", /*type*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (dirty & /*min*/ 16) {\n\t\t\t\tattr(input_1, \"min\", /*min*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (dirty & /*max*/ 32) {\n\t\t\t\tattr(input_1, \"max\", /*max*/ ctx[5]);\n\t\t\t}\n\n\t\t\tif (dirty & /*step*/ 64) {\n\t\t\t\tattr(input_1, \"step\", /*step*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (dirty & /*inputmode*/ 8) {\n\t\t\t\tattr(input_1, \"inputmode\", /*inputmode*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (dirty & /*isClamped, currentValue, value*/ 24577 && input_1_value_value !== (input_1_value_value = /*isClamped*/ ctx[14]\n\t\t\t? /*currentValue*/ ctx[13]\n\t\t\t: /*value*/ ctx[0]) && input_1.value !== input_1_value_value) {\n\t\t\t\tinput_1.value = input_1_value_value;\n\t\t\t}\n\n\t\t\tif (dirty & /*style*/ 2048) {\n\t\t\t\tattr(input_1, \"style\", /*style*/ ctx[11]);\n\t\t\t}\n\n\t\t\tif (dirty & /*placeholder*/ 256) {\n\t\t\t\tattr(input_1, \"placeholder\", /*placeholder*/ ctx[8]);\n\t\t\t}\n\n\t\t\tif (dirty & /*maxlength*/ 4096) {\n\t\t\t\tattr(input_1, \"maxlength\", /*maxlength*/ ctx[12]);\n\t\t\t}\n\n\t\t\tif (dirty & /*disabled*/ 4) {\n\t\t\t\tinput_1.disabled = /*disabled*/ ctx[2];\n\t\t\t}\n\n\t\t\tif (/*type*/ ctx[1] === 'number' && /*enableSpinButtons*/ ctx[9]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$h(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*input_1_binding*/ ctx[26](null);\n\t\t\tif (if_block) if_block.d();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$F($$self, $$props, $$invalidate) {\n\tlet isClamped;\n\tlet currentValue;\n\tlet maxCharCount;\n\tlet maxlength;\n\tlet style;\n\tlet { value = undefined } = $$props;\n\tlet { type = 'text' } = $$props;\n\tlet { disabled = false } = $$props;\n\tlet { inputmode = undefined } = $$props;\n\tlet { min = undefined } = $$props;\n\tlet { max = undefined } = $$props;\n\tlet { step = undefined } = $$props;\n\tlet { onchange = noop$1 } = $$props;\n\tlet { onkeydown = noop$1 } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { stepMultiplier = 10 } = $$props;\n\tlet { placeholder = undefined } = $$props;\n\tlet { enableSpinButtons = true } = $$props;\n\tlet input;\n\tlet isShiftPressed;\n\n\tconst getFormattedValue = () => {\n\t\tlet value = input.value;\n\n\t\tif (type === 'number') {\n\t\t\tvalue = inputmode === 'numeric'\n\t\t\t? parseInt(value, 10)\n\t\t\t: parseFloat(value);\n\n\t\t\tif (!isNumber(value) || Number.isNaN(value)) {\n\t\t\t\tvalue = min || 0;\n\t\t\t} else if (isClamped) {\n\t\t\t\tvalue = clamp(value, min, max);\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t};\n\n\tconst handleBlur = () => {\n\t\t// make sure value is valid\n\t\t$$invalidate(24, inputValue = getFormattedValue());\n\n\t\tonchange(value);\n\t};\n\n\tlet inputValue = value;\n\n\tconst handleInput = () => {\n\t\t$$invalidate(24, inputValue = input.value);\n\t\tonchange(getFormattedValue());\n\t};\n\n\tconst handleIncrease = () => {\n\t\tconst newValue = clamp(getFormattedValue() + (isShiftPressed ? step * stepMultiplier : step), min, max);\n\t\tif (newValue === value) return;\n\t\t$$invalidate(24, inputValue = newValue);\n\t\t$$invalidate(0, value = newValue);\n\t\tonchange(value);\n\t};\n\n\tconst handleDecrease = () => {\n\t\tconst newValue = clamp(getFormattedValue() - (isShiftPressed ? step * stepMultiplier : step), min, max);\n\t\tif (newValue === value) return;\n\t\t$$invalidate(24, inputValue = newValue);\n\t\t$$invalidate(0, value = newValue);\n\t\tonchange(value);\n\t};\n\n\tconst handleKeydown = e => {\n\t\tisShiftPressed = e.shiftKey;\n\t\tonkeydown(e);\n\t\tconst { key } = e;\n\t\tif (!(/up|down/i).test(key)) return;\n\t\tif ((/up/i).test(key)) handleIncrease();\n\t\tif ((/down/i).test(key)) handleDecrease();\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t};\n\n\tconst handleKeyup = e => {\n\t\tconst { key } = e;\n\t\tif (!(/up|down/i).test(key)) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t};\n\n\tfunction input_1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tinput = $$value;\n\t\t\t$$invalidate(10, input);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('value' in $$props) $$invalidate(0, value = $$props.value);\n\t\tif ('type' in $$props) $$invalidate(1, type = $$props.type);\n\t\tif ('disabled' in $$props) $$invalidate(2, disabled = $$props.disabled);\n\t\tif ('inputmode' in $$props) $$invalidate(3, inputmode = $$props.inputmode);\n\t\tif ('min' in $$props) $$invalidate(4, min = $$props.min);\n\t\tif ('max' in $$props) $$invalidate(5, max = $$props.max);\n\t\tif ('step' in $$props) $$invalidate(6, step = $$props.step);\n\t\tif ('onchange' in $$props) $$invalidate(21, onchange = $$props.onchange);\n\t\tif ('onkeydown' in $$props) $$invalidate(22, onkeydown = $$props.onkeydown);\n\t\tif ('title' in $$props) $$invalidate(7, title = $$props.title);\n\t\tif ('stepMultiplier' in $$props) $$invalidate(23, stepMultiplier = $$props.stepMultiplier);\n\t\tif ('placeholder' in $$props) $$invalidate(8, placeholder = $$props.placeholder);\n\t\tif ('enableSpinButtons' in $$props) $$invalidate(9, enableSpinButtons = $$props.enableSpinButtons);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*min, max*/ 48) {\n\t\t\t$$invalidate(14, isClamped = isNumber(min) && isNumber(max));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*input, inputValue, value*/ 16778241) {\n\t\t\t$$invalidate(13, currentValue = input === document.activeElement ? inputValue : value);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*max*/ 32) {\n\t\t\t$$invalidate(25, maxCharCount = max ? (max + '').length : undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*inputmode, maxCharCount*/ 33554440) {\n\t\t\t$$invalidate(12, maxlength = inputmode === 'numeric' && maxCharCount\n\t\t\t? maxCharCount\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*maxCharCount*/ 33554432) {\n\t\t\t$$invalidate(11, style = maxCharCount ? `min-width:${maxCharCount}em` : undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tvalue,\n\t\ttype,\n\t\tdisabled,\n\t\tinputmode,\n\t\tmin,\n\t\tmax,\n\t\tstep,\n\t\ttitle,\n\t\tplaceholder,\n\t\tenableSpinButtons,\n\t\tinput,\n\t\tstyle,\n\t\tmaxlength,\n\t\tcurrentValue,\n\t\tisClamped,\n\t\thandleBlur,\n\t\thandleInput,\n\t\thandleIncrease,\n\t\thandleDecrease,\n\t\thandleKeydown,\n\t\thandleKeyup,\n\t\tonchange,\n\t\tonkeydown,\n\t\tstepMultiplier,\n\t\tinputValue,\n\t\tmaxCharCount,\n\t\tinput_1_binding\n\t];\n}\n\nclass Input extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$F, create_fragment$E, safe_not_equal, {\n\t\t\tvalue: 0,\n\t\t\ttype: 1,\n\t\t\tdisabled: 2,\n\t\t\tinputmode: 3,\n\t\t\tmin: 4,\n\t\t\tmax: 5,\n\t\t\tstep: 6,\n\t\t\tonchange: 21,\n\t\t\tonkeydown: 22,\n\t\t\ttitle: 7,\n\t\t\tstepMultiplier: 23,\n\t\t\tplaceholder: 8,\n\t\t\tenableSpinButtons: 9\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/Dropdown.svelte generated by Svelte v3.52.0 */\nconst get_controls_slot_changes = dirty => ({});\nconst get_controls_slot_context = ctx => ({});\n\n// (113:8) {:else}\nfunction create_else_block$5(ctx) {\n\tlet t;\n\tlet span;\n\tlet raw_value = (/*label*/ ctx[2] || /*selectedLabel*/ ctx[21]) + \"\";\n\tlet span_class_value;\n\tlet current;\n\tlet if_block = /*icon*/ ctx[6] && create_if_block_4$6(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tspan = element(\"span\");\n\n\t\t\tattr(span, \"class\", span_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonLabel',\n\t\t\t\t/*labelClass*/ ctx[3],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'implicit'\n\t\t\t]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tinsert(target, span, anchor);\n\t\t\tspan.innerHTML = raw_value;\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*icon*/ ctx[6]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*icon*/ 64) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_4$6(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif ((!current || dirty[0] & /*label, selectedLabel*/ 2097156) && raw_value !== (raw_value = (/*label*/ ctx[2] || /*selectedLabel*/ ctx[21]) + \"\")) span.innerHTML = raw_value;\n\t\t\tif (!current || dirty[0] & /*labelClass, hideLabel*/ 40 && span_class_value !== (span_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonLabel',\n\t\t\t\t/*labelClass*/ ctx[3],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'implicit'\n\t\t\t]))) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (99:8) {#if enableInput}\nfunction create_if_block_3$7(ctx) {\n\tlet input;\n\tlet current;\n\n\tinput = new Input({\n\t\t\tprops: {\n\t\t\t\tvalue: /*value*/ ctx[10],\n\t\t\t\tonchange: /*onchange*/ ctx[17],\n\t\t\t\ttype: \"number\",\n\t\t\t\tinputmode: \"numeric\",\n\t\t\t\tmin: /*options*/ ctx[8].reduce(func, Infinity),\n\t\t\t\tmax: /*options*/ ctx[8].reduce(func_1, -Infinity),\n\t\t\t\tenableSpinButtons: false\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(input.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(input, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst input_changes = {};\n\t\t\tif (dirty[0] & /*value*/ 1024) input_changes.value = /*value*/ ctx[10];\n\t\t\tif (dirty[0] & /*onchange*/ 131072) input_changes.onchange = /*onchange*/ ctx[17];\n\t\t\tif (dirty[0] & /*options*/ 256) input_changes.min = /*options*/ ctx[8].reduce(func, Infinity);\n\t\t\tif (dirty[0] & /*options*/ 256) input_changes.max = /*options*/ ctx[8].reduce(func_1, -Infinity);\n\t\t\tinput.$set(input_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(input.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(input.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(input, detaching);\n\t\t}\n\t};\n}\n\n// (114:12) {#if icon}\nfunction create_if_block_4$6(ctx) {\n\tlet icon_1;\n\tlet current;\n\n\ticon_1 = new Icon({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaButtonIcon\",\n\t\t\t\t$$slots: { default: [create_default_slot_1$6] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_1_changes = {};\n\n\t\t\tif (dirty[0] & /*$$scope, icon*/ 536870976) {\n\t\t\t\ticon_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon_1.$set(icon_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon_1, detaching);\n\t\t}\n\t};\n}\n\n// (115:16) <Icon class=\"PinturaButtonIcon\">\nfunction create_default_slot_1$6(ctx) {\n\tlet g;\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = /*icon*/ ctx[6];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*icon*/ 64) g.innerHTML = /*icon*/ ctx[6];\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (94:4) \nfunction create_label_slot$2(ctx) {\n\tlet span;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet span_title_value;\n\tlet span_class_value;\n\tlet current;\n\tconst if_block_creators = [create_if_block_3$7, create_else_block$5];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*enableInput*/ ctx[18]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tif_block.c();\n\t\t\tattr(span, \"slot\", \"label\");\n\t\t\tattr(span, \"title\", span_title_value = localize(/*title*/ ctx[1], /*locale*/ ctx[16]));\n\n\t\t\tattr(span, \"class\", span_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonInner',\n\t\t\t\t/*enableInput*/ ctx[18] && 'PinturaComboBox',\n\t\t\t\t/*innerClass*/ ctx[4]\n\t\t\t]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tif_blocks[current_block_type_index].m(span, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(span, null);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*title, locale*/ 65538 && span_title_value !== (span_title_value = localize(/*title*/ ctx[1], /*locale*/ ctx[16]))) {\n\t\t\t\tattr(span, \"title\", span_title_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*enableInput, innerClass*/ 262160 && span_class_value !== (span_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonInner',\n\t\t\t\t/*enableInput*/ ctx[18] && 'PinturaComboBox',\n\t\t\t\t/*innerClass*/ ctx[4]\n\t\t\t]))) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif_blocks[current_block_type_index].d();\n\t\t}\n\t};\n}\n\n// (139:12) \nfunction create_group_slot$1(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[31].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"slot\", \"group\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1 && t_value !== (t_value = /*option*/ ctx[31].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (141:16) {#if option.icon}\nfunction create_if_block_2$8(ctx) {\n\tlet icon_1;\n\tlet current;\n\n\ticon_1 = new Icon({\n\t\t\tprops: {\n\t\t\t\tstyle: isFunction(/*optionIconStyle*/ ctx[14])\n\t\t\t\t? /*optionIconStyle*/ ctx[14](/*option*/ ctx[31].value)\n\t\t\t\t: /*optionIconStyle*/ ctx[14],\n\t\t\t\t$$slots: { default: [create_default_slot$e] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_1_changes = {};\n\n\t\t\tif (dirty[0] & /*optionIconStyle*/ 16384 | dirty[1] & /*option*/ 1) icon_1_changes.style = isFunction(/*optionIconStyle*/ ctx[14])\n\t\t\t? /*optionIconStyle*/ ctx[14](/*option*/ ctx[31].value)\n\t\t\t: /*optionIconStyle*/ ctx[14];\n\n\t\t\tif (dirty[0] & /*$$scope*/ 536870912 | dirty[1] & /*option*/ 1) {\n\t\t\t\ticon_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon_1.$set(icon_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon_1, detaching);\n\t\t}\n\t};\n}\n\n// (142:20) <Icon style={isFunction(optionIconStyle) ? optionIconStyle(option.value) : optionIconStyle}>\nfunction create_default_slot$e(ctx) {\n\tlet g;\n\tlet raw_value = /*option*/ ctx[31].icon + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1 && raw_value !== (raw_value = /*option*/ ctx[31].icon + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (148:16) {#if !option.hideLabel}\nfunction create_if_block$g(ctx) {\n\tlet span;\n\tlet html_tag;\n\tlet raw_value = /*option*/ ctx[31].label + \"\";\n\tlet t;\n\tlet span_style_value;\n\tlet span_class_value;\n\tlet if_block = /*option*/ ctx[31].sublabel && create_if_block_1$b(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\thtml_tag = new HtmlTag(false);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\thtml_tag.a = t;\n\n\t\t\tattr(span, \"style\", span_style_value = isFunction(/*optionLabelStyle*/ ctx[15])\n\t\t\t? /*optionLabelStyle*/ ctx[15](/*option*/ ctx[31].value)\n\t\t\t: /*optionLabelStyle*/ ctx[15]);\n\n\t\t\tattr(span, \"class\", span_class_value = arrayJoin(['PinturaDropdownOptionLabel', /*optionLabelClass*/ ctx[11]]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\thtml_tag.m(raw_value, span);\n\t\t\tappend(span, t);\n\t\t\tif (if_block) if_block.m(span, null);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1 && raw_value !== (raw_value = /*option*/ ctx[31].label + \"\")) html_tag.p(raw_value);\n\n\t\t\tif (/*option*/ ctx[31].sublabel) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_1$b(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(span, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*optionLabelStyle*/ 32768 | dirty[1] & /*option*/ 1 && span_style_value !== (span_style_value = isFunction(/*optionLabelStyle*/ ctx[15])\n\t\t\t? /*optionLabelStyle*/ ctx[15](/*option*/ ctx[31].value)\n\t\t\t: /*optionLabelStyle*/ ctx[15])) {\n\t\t\t\tattr(span, \"style\", span_style_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*optionLabelClass*/ 2048 && span_class_value !== (span_class_value = arrayJoin(['PinturaDropdownOptionLabel', /*optionLabelClass*/ ctx[11]]))) {\n\t\t\t\tattr(span, \"class\", span_class_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\n// (156:24) {#if option.sublabel}\nfunction create_if_block_1$b(ctx) {\n\tlet span;\n\tlet raw_value = /*option*/ ctx[31].sublabel + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tattr(span, \"class\", \"PinturaDropdownOptionSublabel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tspan.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1 && raw_value !== (raw_value = /*option*/ ctx[31].sublabel + \"\")) span.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (140:12) \nfunction create_option_slot$5(ctx) {\n\tlet span;\n\tlet t;\n\tlet current;\n\tlet if_block0 = /*option*/ ctx[31].icon && create_if_block_2$8(ctx);\n\tlet if_block1 = !/*option*/ ctx[31].hideLabel && create_if_block$g(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(span, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tif (if_block0) if_block0.m(span, null);\n\t\t\tappend(span, t);\n\t\t\tif (if_block1) if_block1.m(span, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*option*/ ctx[31].icon) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*option*/ 1) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2$8(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(span, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!/*option*/ ctx[31].hideLabel) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$g(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(span, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\n// (123:4) \nfunction create_details_slot$3(ctx) {\n\tlet div;\n\tlet t;\n\tlet radiogroup;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst controls_slot_template = /*#slots*/ ctx[27].controls;\n\tconst controls_slot = create_slot(controls_slot_template, ctx, /*$$scope*/ ctx[29], get_controls_slot_context);\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaOptionsList PinturaScrollableContent\",\n\t\t\t\tname: /*name*/ ctx[7],\n\t\t\t\tvalue: /*value*/ ctx[10],\n\t\t\t\tselectedIndex: /*selectedIndex*/ ctx[9],\n\t\t\t\toptionFilter: /*optionFilter*/ ctx[12],\n\t\t\t\toptionMapper: /*optionMapper*/ ctx[13],\n\t\t\t\toptionLabelClass: arrayJoin(['PinturaDropdownOptionLabel', /*optionLabelClass*/ ctx[11]]),\n\t\t\t\toptionGroupClass: \"PinturaListOptionGroup\",\n\t\t\t\toptionClass: \"PinturaListOption\",\n\t\t\t\toptions: /*localizedOptions*/ ctx[19],\n\t\t\t\tonchange: /*handleSelect*/ ctx[22],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot$5,\n\t\t\t\t\t\t({ option }) => ({ 31: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 1 : 0]\n\t\t\t\t\t],\n\t\t\t\t\tgroup: [\n\t\t\t\t\t\tcreate_group_slot$1,\n\t\t\t\t\t\t({ option }) => ({ 31: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 1 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (controls_slot) controls_slot.c();\n\t\t\tt = space();\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t\tattr(div, \"slot\", \"details\");\n\t\t\tattr(div, \"class\", \"PinturaOptionsListWrapper\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (controls_slot) {\n\t\t\t\tcontrols_slot.m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tmount_component(radiogroup, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"keydown\", /*handleKeydown*/ ctx[24]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (controls_slot) {\n\t\t\t\tif (controls_slot.p && (!current || dirty[0] & /*$$scope*/ 536870912)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tcontrols_slot,\n\t\t\t\t\t\tcontrols_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[29],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[29])\n\t\t\t\t\t\t: get_slot_changes(controls_slot_template, /*$$scope*/ ctx[29], dirty, get_controls_slot_changes),\n\t\t\t\t\t\tget_controls_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*name*/ 128) radiogroup_changes.name = /*name*/ ctx[7];\n\t\t\tif (dirty[0] & /*value*/ 1024) radiogroup_changes.value = /*value*/ ctx[10];\n\t\t\tif (dirty[0] & /*selectedIndex*/ 512) radiogroup_changes.selectedIndex = /*selectedIndex*/ ctx[9];\n\t\t\tif (dirty[0] & /*optionFilter*/ 4096) radiogroup_changes.optionFilter = /*optionFilter*/ ctx[12];\n\t\t\tif (dirty[0] & /*optionMapper*/ 8192) radiogroup_changes.optionMapper = /*optionMapper*/ ctx[13];\n\t\t\tif (dirty[0] & /*optionLabelClass*/ 2048) radiogroup_changes.optionLabelClass = arrayJoin(['PinturaDropdownOptionLabel', /*optionLabelClass*/ ctx[11]]);\n\t\t\tif (dirty[0] & /*localizedOptions*/ 524288) radiogroup_changes.options = /*localizedOptions*/ ctx[19];\n\n\t\t\tif (dirty[0] & /*$$scope, optionLabelStyle, optionLabelClass, optionIconStyle*/ 536922112 | dirty[1] & /*option*/ 1) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(controls_slot, local);\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(controls_slot, local);\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (controls_slot) controls_slot.d(detaching);\n\t\t\tdestroy_component(radiogroup);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction create_fragment$D(ctx) {\n\tlet panel;\n\tlet updating_isActive;\n\tlet current;\n\n\tfunction panel_isActive_binding(value) {\n\t\t/*panel_isActive_binding*/ ctx[28](value);\n\t}\n\n\tlet panel_props = {\n\t\tonshow: /*handleShowPanel*/ ctx[23],\n\t\tbuttonClass: arrayJoin([\n\t\t\t'PinturaDropdownButton',\n\t\t\t/*klass*/ ctx[0],\n\t\t\t/*hideLabel*/ ctx[5] && 'PinturaDropdownIconOnly'\n\t\t]),\n\t\t$$slots: {\n\t\t\tdetails: [create_details_slot$3],\n\t\t\tlabel: [create_label_slot$2]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tif (/*dropdownVisible*/ ctx[20] !== void 0) {\n\t\tpanel_props.isActive = /*dropdownVisible*/ ctx[20];\n\t}\n\n\tpanel = new Panel({ props: panel_props });\n\tbinding_callbacks.push(() => bind(panel, 'isActive', panel_isActive_binding));\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(panel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(panel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst panel_changes = {};\n\n\t\t\tif (dirty[0] & /*klass, hideLabel*/ 33) panel_changes.buttonClass = arrayJoin([\n\t\t\t\t'PinturaDropdownButton',\n\t\t\t\t/*klass*/ ctx[0],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'PinturaDropdownIconOnly'\n\t\t\t]);\n\n\t\t\tif (dirty[0] & /*$$scope, name, value, selectedIndex, optionFilter, optionMapper, optionLabelClass, localizedOptions, optionLabelStyle, optionIconStyle, title, locale, enableInput, innerClass, onchange, options, labelClass, hideLabel, label, selectedLabel, icon*/ 540016638) {\n\t\t\t\tpanel_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tif (!updating_isActive && dirty[0] & /*dropdownVisible*/ 1048576) {\n\t\t\t\tupdating_isActive = true;\n\t\t\t\tpanel_changes.isActive = /*dropdownVisible*/ ctx[20];\n\t\t\t\tadd_flush_callback(() => updating_isActive = false);\n\t\t\t}\n\n\t\t\tpanel.$set(panel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(panel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(panel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(panel, detaching);\n\t\t}\n\t};\n}\n\nconst func = (min, [v]) => {\n\treturn v < min ? v : min;\n};\n\nconst func_1 = (max, [v]) => {\n\treturn v > max ? v : max;\n};\n\nfunction instance$E($$self, $$props, $$invalidate) {\n\tlet localizedOptions;\n\tlet selectedLabel;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { label = undefined } = $$props;\n\tlet { labelClass = undefined } = $$props;\n\tlet { innerClass = undefined } = $$props;\n\tlet { hideLabel = false } = $$props;\n\tlet { icon = undefined } = $$props;\n\tlet { name = undefined } = $$props;\n\tlet { options = [] } = $$props;\n\tlet { selectedIndex = -1 } = $$props;\n\tlet { value = undefined } = $$props;\n\tlet { optionLabelClass = undefined } = $$props;\n\tlet { optionFilter = undefined } = $$props;\n\tlet { optionMapper = undefined } = $$props;\n\tlet { optionIconStyle = undefined } = $$props;\n\tlet { optionLabelStyle = undefined } = $$props;\n\tlet { locale = undefined } = $$props;\n\tlet { onchange = noop$1 } = $$props;\n\tlet { onload = noop$1 } = $$props;\n\tlet { ondestroy = noop$1 } = $$props;\n\tlet { enableInput = false } = $$props;\n\n\tconst getUndefinedOptionLabel = options => {\n\t\tconst option = options.find(option => option[0] === undefined);\n\t\tif (!option) return undefined;\n\t\treturn option[1];\n\t};\n\n\tlet dropdownVisible;\n\n\tconst handleSelect = detail => {\n\t\t// triggers label update\n\t\t$$invalidate(21, selectedLabel = detail.value);\n\n\t\t// update value\n\t\tonchange(detail);\n\n\t\t// hide details\n\t\t$$invalidate(20, dropdownVisible = false);\n\t};\n\n\tconst handleShowPanel = ({ e, panel }) => {\n\t\tif (e && e.key && (/up|down/i).test(e.key)) return focus(panel.querySelector('input:not([disabled])'));\n\t\tfocus(panel.querySelector('fieldset'));\n\t};\n\n\tconst handleKeydown = e => {\n\t\t// don't allow tabbing ([tab] is also blocked in normal <select>)\n\t\tif ((/tab/i).test(e.key)) e.preventDefault();\n\t};\n\n\tonMount(() => onload({ options }));\n\tonDestroy(() => ondestroy({ options }));\n\n\tfunction panel_isActive_binding(value) {\n\t\tdropdownVisible = value;\n\t\t$$invalidate(20, dropdownVisible);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('title' in $$props) $$invalidate(1, title = $$props.title);\n\t\tif ('label' in $$props) $$invalidate(2, label = $$props.label);\n\t\tif ('labelClass' in $$props) $$invalidate(3, labelClass = $$props.labelClass);\n\t\tif ('innerClass' in $$props) $$invalidate(4, innerClass = $$props.innerClass);\n\t\tif ('hideLabel' in $$props) $$invalidate(5, hideLabel = $$props.hideLabel);\n\t\tif ('icon' in $$props) $$invalidate(6, icon = $$props.icon);\n\t\tif ('name' in $$props) $$invalidate(7, name = $$props.name);\n\t\tif ('options' in $$props) $$invalidate(8, options = $$props.options);\n\t\tif ('selectedIndex' in $$props) $$invalidate(9, selectedIndex = $$props.selectedIndex);\n\t\tif ('value' in $$props) $$invalidate(10, value = $$props.value);\n\t\tif ('optionLabelClass' in $$props) $$invalidate(11, optionLabelClass = $$props.optionLabelClass);\n\t\tif ('optionFilter' in $$props) $$invalidate(12, optionFilter = $$props.optionFilter);\n\t\tif ('optionMapper' in $$props) $$invalidate(13, optionMapper = $$props.optionMapper);\n\t\tif ('optionIconStyle' in $$props) $$invalidate(14, optionIconStyle = $$props.optionIconStyle);\n\t\tif ('optionLabelStyle' in $$props) $$invalidate(15, optionLabelStyle = $$props.optionLabelStyle);\n\t\tif ('locale' in $$props) $$invalidate(16, locale = $$props.locale);\n\t\tif ('onchange' in $$props) $$invalidate(17, onchange = $$props.onchange);\n\t\tif ('onload' in $$props) $$invalidate(25, onload = $$props.onload);\n\t\tif ('ondestroy' in $$props) $$invalidate(26, ondestroy = $$props.ondestroy);\n\t\tif ('enableInput' in $$props) $$invalidate(18, enableInput = $$props.enableInput);\n\t\tif ('$$scope' in $$props) $$invalidate(29, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*locale, options*/ 65792) {\n\t\t\t$$invalidate(19, localizedOptions = locale ? localizeOptions$1(options, locale) : options);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*localizedOptions, value*/ 525312) {\n\t\t\t$$invalidate(21, selectedLabel = localizedOptions.reduce(\n\t\t\t\t(prev, curr) => {\n\t\t\t\t\tif (prev) return prev;\n\t\t\t\t\tconst item = Array.isArray(curr) ? curr : [curr, curr];\n\t\t\t\t\tconst [optionValue, optionLabel] = item;\n\t\t\t\t\tif (isDeepEqual(optionValue, value)) return optionLabel;\n\t\t\t\t},\n\t\t\t\tundefined\n\t\t\t) || getUndefinedOptionLabel(localizedOptions) || value);\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\ttitle,\n\t\tlabel,\n\t\tlabelClass,\n\t\tinnerClass,\n\t\thideLabel,\n\t\ticon,\n\t\tname,\n\t\toptions,\n\t\tselectedIndex,\n\t\tvalue,\n\t\toptionLabelClass,\n\t\toptionFilter,\n\t\toptionMapper,\n\t\toptionIconStyle,\n\t\toptionLabelStyle,\n\t\tlocale,\n\t\tonchange,\n\t\tenableInput,\n\t\tlocalizedOptions,\n\t\tdropdownVisible,\n\t\tselectedLabel,\n\t\thandleSelect,\n\t\thandleShowPanel,\n\t\thandleKeydown,\n\t\tonload,\n\t\tondestroy,\n\t\tslots,\n\t\tpanel_isActive_binding,\n\t\t$$scope\n\t];\n}\n\nclass Dropdown extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$E,\n\t\t\tcreate_fragment$D,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tclass: 0,\n\t\t\t\ttitle: 1,\n\t\t\t\tlabel: 2,\n\t\t\t\tlabelClass: 3,\n\t\t\t\tinnerClass: 4,\n\t\t\t\thideLabel: 5,\n\t\t\t\ticon: 6,\n\t\t\t\tname: 7,\n\t\t\t\toptions: 8,\n\t\t\t\tselectedIndex: 9,\n\t\t\t\tvalue: 10,\n\t\t\t\toptionLabelClass: 11,\n\t\t\t\toptionFilter: 12,\n\t\t\t\toptionMapper: 13,\n\t\t\t\toptionIconStyle: 14,\n\t\t\t\toptionLabelStyle: 15,\n\t\t\t\tlocale: 16,\n\t\t\t\tonchange: 17,\n\t\t\t\tonload: 25,\n\t\t\t\tondestroy: 26,\n\t\t\t\tenableInput: 18\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* src/core/ui/components/DynamicPanel.svelte generated by Svelte v3.52.0 */\n\nfunction create_details_slot$2(ctx) {\n\tlet div;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"slot\", \"details\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\t/*div_binding*/ ctx[14](div);\n\t\t},\n\t\tp: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[14](null);\n\t\t}\n\t};\n}\n\nfunction create_fragment$C(ctx) {\n\tlet panel;\n\tlet updating_isActive;\n\tlet current;\n\n\tfunction panel_isActive_binding(value) {\n\t\t/*panel_isActive_binding*/ ctx[15](value);\n\t}\n\n\tlet panel_props = {\n\t\tbuttonLabel: /*buttonLabel*/ ctx[0],\n\t\tbuttonClass: /*buttonClass*/ ctx[1],\n\t\tbuttonIcon: /*buttonIcon*/ ctx[2],\n\t\tbuttonHideLabel: /*buttonHideLabel*/ ctx[3],\n\t\tbuttonTitle: /*buttonTitle*/ ctx[4],\n\t\tbuttonLabelClass: /*buttonLabelClass*/ ctx[5],\n\t\tonshow: /*onshow*/ ctx[6],\n\t\tonhide: /*onhide*/ ctx[7],\n\t\t$$slots: { details: [create_details_slot$2] },\n\t\t$$scope: { ctx }\n\t};\n\n\tif (/*isActive*/ ctx[9] !== void 0) {\n\t\tpanel_props.isActive = /*isActive*/ ctx[9];\n\t}\n\n\tpanel = new Panel({ props: panel_props });\n\tbinding_callbacks.push(() => bind(panel, 'isActive', panel_isActive_binding));\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(panel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(panel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst panel_changes = {};\n\t\t\tif (dirty & /*buttonLabel*/ 1) panel_changes.buttonLabel = /*buttonLabel*/ ctx[0];\n\t\t\tif (dirty & /*buttonClass*/ 2) panel_changes.buttonClass = /*buttonClass*/ ctx[1];\n\t\t\tif (dirty & /*buttonIcon*/ 4) panel_changes.buttonIcon = /*buttonIcon*/ ctx[2];\n\t\t\tif (dirty & /*buttonHideLabel*/ 8) panel_changes.buttonHideLabel = /*buttonHideLabel*/ ctx[3];\n\t\t\tif (dirty & /*buttonTitle*/ 16) panel_changes.buttonTitle = /*buttonTitle*/ ctx[4];\n\t\t\tif (dirty & /*buttonLabelClass*/ 32) panel_changes.buttonLabelClass = /*buttonLabelClass*/ ctx[5];\n\t\t\tif (dirty & /*onshow*/ 64) panel_changes.onshow = /*onshow*/ ctx[6];\n\t\t\tif (dirty & /*onhide*/ 128) panel_changes.onhide = /*onhide*/ ctx[7];\n\n\t\t\tif (dirty & /*$$scope, container*/ 65792) {\n\t\t\t\tpanel_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tif (!updating_isActive && dirty & /*isActive*/ 512) {\n\t\t\t\tupdating_isActive = true;\n\t\t\t\tpanel_changes.isActive = /*isActive*/ ctx[9];\n\t\t\t\tadd_flush_callback(() => updating_isActive = false);\n\t\t\t}\n\n\t\t\tpanel.$set(panel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(panel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(panel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(panel, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$D($$self, $$props, $$invalidate) {\n\tlet { buttonLabel = undefined } = $$props;\n\tlet { buttonClass = undefined } = $$props;\n\tlet { buttonIcon = undefined } = $$props;\n\tlet { buttonHideLabel = undefined } = $$props;\n\tlet { buttonTitle = undefined } = $$props;\n\tlet { buttonLabelClass = undefined } = $$props;\n\tlet { root = undefined } = $$props;\n\tlet { ondestroy = noop$1 } = $$props;\n\tlet { onshow = noop$1 } = $$props;\n\tlet { onhide = noop$1 } = $$props;\n\tconst hide = () => $$invalidate(9, isActive = false);\n\tconst show = () => $$invalidate(9, isActive = true);\n\tlet container;\n\tlet isActive = false;\n\tonDestroy(ondestroy);\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tcontainer = $$value;\n\t\t\t$$invalidate(8, container);\n\t\t});\n\t}\n\n\tfunction panel_isActive_binding(value) {\n\t\tisActive = value;\n\t\t$$invalidate(9, isActive);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('buttonLabel' in $$props) $$invalidate(0, buttonLabel = $$props.buttonLabel);\n\t\tif ('buttonClass' in $$props) $$invalidate(1, buttonClass = $$props.buttonClass);\n\t\tif ('buttonIcon' in $$props) $$invalidate(2, buttonIcon = $$props.buttonIcon);\n\t\tif ('buttonHideLabel' in $$props) $$invalidate(3, buttonHideLabel = $$props.buttonHideLabel);\n\t\tif ('buttonTitle' in $$props) $$invalidate(4, buttonTitle = $$props.buttonTitle);\n\t\tif ('buttonLabelClass' in $$props) $$invalidate(5, buttonLabelClass = $$props.buttonLabelClass);\n\t\tif ('root' in $$props) $$invalidate(10, root = $$props.root);\n\t\tif ('ondestroy' in $$props) $$invalidate(11, ondestroy = $$props.ondestroy);\n\t\tif ('onshow' in $$props) $$invalidate(6, onshow = $$props.onshow);\n\t\tif ('onhide' in $$props) $$invalidate(7, onhide = $$props.onhide);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*container, root*/ 1280) {\n\t\t\tif (container && root && container.firstChild !== root) {\n\t\t\t\tcontainer.hasChildNodes()\n\t\t\t\t? container.replaceChild(root, container.firstChild)\n\t\t\t\t: container.append(root);\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tbuttonLabel,\n\t\tbuttonClass,\n\t\tbuttonIcon,\n\t\tbuttonHideLabel,\n\t\tbuttonTitle,\n\t\tbuttonLabelClass,\n\t\tonshow,\n\t\tonhide,\n\t\tcontainer,\n\t\tisActive,\n\t\troot,\n\t\tondestroy,\n\t\thide,\n\t\tshow,\n\t\tdiv_binding,\n\t\tpanel_isActive_binding\n\t];\n}\n\nclass DynamicPanel extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$D, create_fragment$C, safe_not_equal, {\n\t\t\tbuttonLabel: 0,\n\t\t\tbuttonClass: 1,\n\t\t\tbuttonIcon: 2,\n\t\t\tbuttonHideLabel: 3,\n\t\t\tbuttonTitle: 4,\n\t\t\tbuttonLabelClass: 5,\n\t\t\troot: 10,\n\t\t\tondestroy: 11,\n\t\t\tonshow: 6,\n\t\t\tonhide: 7,\n\t\t\thide: 12,\n\t\t\tshow: 13\n\t\t});\n\t}\n\n\tget hide() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tget show() {\n\t\treturn this.$$.ctx[13];\n\t}\n}\n\nvar numberRoundTo = (value, fraction) => {\n fraction = 1 / fraction;\n return Math.round(value * fraction) / fraction;\n};\n\nvar toFraction = (value, min, max) => (value - min) / (max - min);\n\n/* src/core/ui/components/Slider.svelte generated by Svelte v3.52.0 */\nconst get_knob_slot_changes = dirty => ({});\nconst get_knob_slot_context = ctx => ({});\n\n// (237:4) {#if enableSpinButtons}\nfunction create_if_block$f(ctx) {\n\tlet button0;\n\tlet icon0;\n\tlet t;\n\tlet button1;\n\tlet icon1;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\ticon0 = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_1$5] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\ticon1 = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot$d] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tbutton0 = element(\"button\");\n\t\t\tcreate_component(icon0.$$.fragment);\n\t\t\tt = space();\n\t\t\tbutton1 = element(\"button\");\n\t\t\tcreate_component(icon1.$$.fragment);\n\t\t\tattr(button0, \"type\", \"button\");\n\t\t\tattr(button0, \"aria-label\", \"Increase\");\n\t\t\tattr(button1, \"type\", \"button\");\n\t\t\tattr(button1, \"aria-label\", \"Decrease\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, button0, anchor);\n\t\t\tmount_component(icon0, button0, null);\n\t\t\tinsert(target, t, anchor);\n\t\t\tinsert(target, button1, anchor);\n\t\t\tmount_component(icon1, button1, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(button0, \"pointerdown\", /*handleUpdaterDown*/ ctx[20](1)),\n\t\t\t\t\tlisten(button1, \"pointerdown\", /*handleUpdaterDown*/ ctx[20](-1))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon0_changes = {};\n\n\t\t\tif (dirty[1] & /*$$scope*/ 128) {\n\t\t\t\ticon0_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon0.$set(icon0_changes);\n\t\t\tconst icon1_changes = {};\n\n\t\t\tif (dirty[1] & /*$$scope*/ 128) {\n\t\t\t\ticon1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon1.$set(icon1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon0.$$.fragment, local);\n\t\t\ttransition_in(icon1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon0.$$.fragment, local);\n\t\t\ttransition_out(icon1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(button0);\n\t\t\tdestroy_component(icon0);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (detaching) detach(button1);\n\t\t\tdestroy_component(icon1);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (239:12) <Icon>\nfunction create_default_slot_1$5(ctx) {\n\tlet path;\n\n\treturn {\n\t\tc() {\n\t\t\tpath = svg_element(\"path\");\n\t\t\tattr(path, \"d\", \"M8 12 h8 M12 8 v8\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, path, anchor);\n\t\t},\n\t\tp: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(path);\n\t\t}\n\t};\n}\n\n// (242:12) <Icon>\nfunction create_default_slot$d(ctx) {\n\tlet path;\n\n\treturn {\n\t\tc() {\n\t\t\tpath = svg_element(\"path\");\n\t\t\tattr(path, \"d\", \"M9 12 h6\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, path, anchor);\n\t\t},\n\t\tp: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(path);\n\t\t}\n\t};\n}\n\nfunction create_fragment$B(ctx) {\n\tlet div4;\n\tlet div3;\n\tlet input_1;\n\tlet input_1_style_value;\n\tlet t0;\n\tlet div0;\n\tlet div0_class_value;\n\tlet t1;\n\tlet div2;\n\tlet div1;\n\tlet div1_class_value;\n\tlet div3_style_value;\n\tlet t2;\n\tlet div4_class_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[36].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[38], null);\n\tconst knob_slot_template = /*#slots*/ ctx[36].knob;\n\tconst knob_slot = create_slot(knob_slot_template, ctx, /*$$scope*/ ctx[38], get_knob_slot_context);\n\tlet if_block = /*enableSpinButtons*/ ctx[9] && create_if_block$f(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv4 = element(\"div\");\n\t\t\tdiv3 = element(\"div\");\n\t\t\tinput_1 = element(\"input\");\n\t\t\tt0 = space();\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tt1 = space();\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (knob_slot) knob_slot.c();\n\t\t\tt2 = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(input_1, \"type\", \"range\");\n\t\t\tattr(input_1, \"id\", /*id*/ ctx[3]);\n\t\t\tattr(input_1, \"min\", /*min*/ ctx[0]);\n\t\t\tattr(input_1, \"max\", /*max*/ ctx[1]);\n\t\t\tattr(input_1, \"step\", /*step*/ ctx[2]);\n\t\t\tinput_1.value = /*numberValue*/ ctx[14];\n\n\t\t\tattr(input_1, \"style\", input_1_style_value = /*enableForceUseKnob*/ ctx[10]\n\t\t\t? 'pointer-events:none'\n\t\t\t: '');\n\n\t\t\tattr(div0, \"class\", div0_class_value = arrayJoin(['PinturaSliderTrack', /*trackClass*/ ctx[5]]));\n\t\t\tattr(div0, \"style\", /*trackStyle*/ ctx[4]);\n\t\t\tattr(div1, \"class\", div1_class_value = arrayJoin(['PinturaSliderKnob', /*knobClass*/ ctx[7]]));\n\t\t\tattr(div1, \"style\", /*knobStyle*/ ctx[6]);\n\t\t\tattr(div2, \"class\", \"PinturaSliderKnobController\");\n\t\t\tattr(div2, \"style\", /*knobControllerStyle*/ ctx[17]);\n\t\t\tattr(div3, \"class\", \"PinturaSliderControl\");\n\t\t\tattr(div3, \"style\", div3_style_value = `--slider-position:${Math.round(/*position*/ ctx[15])}`);\n\t\t\tattr(div4, \"class\", div4_class_value = arrayJoin(['PinturaSlider', /*klass*/ ctx[12]]));\n\t\t\tattr(div4, \"data-direction\", /*direction*/ ctx[8]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div4, anchor);\n\t\t\tappend(div4, div3);\n\t\t\tappend(div3, input_1);\n\t\t\t/*input_1_binding*/ ctx[37](input_1);\n\t\t\tappend(div3, t0);\n\t\t\tappend(div3, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div3, t1);\n\t\t\tappend(div3, div2);\n\t\t\tappend(div2, div1);\n\n\t\t\tif (knob_slot) {\n\t\t\t\tknob_slot.m(div1, null);\n\t\t\t}\n\n\t\t\tappend(div4, t2);\n\t\t\tif (if_block) if_block.m(div4, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(input_1, \"input\", /*handleInput*/ ctx[18]),\n\t\t\t\t\tlisten(input_1, \"nudge\", /*handleNudge*/ ctx[19]),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, input_1)),\n\t\t\t\t\tlisten(div3, \"pointerdown\", function () {\n\t\t\t\t\t\tif (is_function(/*enablePointerdownListener*/ ctx[11] && /*handlePointerDown*/ ctx[13])) (/*enablePointerdownListener*/ ctx[11] && /*handlePointerDown*/ ctx[13]).apply(this, arguments);\n\t\t\t\t\t})\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (!current || dirty[0] & /*id*/ 8) {\n\t\t\t\tattr(input_1, \"id\", /*id*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*min*/ 1) {\n\t\t\t\tattr(input_1, \"min\", /*min*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*max*/ 2) {\n\t\t\t\tattr(input_1, \"max\", /*max*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*step*/ 4) {\n\t\t\t\tattr(input_1, \"step\", /*step*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*numberValue*/ 16384) {\n\t\t\t\tinput_1.value = /*numberValue*/ ctx[14];\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*enableForceUseKnob*/ 1024 && input_1_style_value !== (input_1_style_value = /*enableForceUseKnob*/ ctx[10]\n\t\t\t? 'pointer-events:none'\n\t\t\t: '')) {\n\t\t\t\tattr(input_1, \"style\", input_1_style_value);\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty[1] & /*$$scope*/ 128)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[38],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[38])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[38], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*trackClass*/ 32 && div0_class_value !== (div0_class_value = arrayJoin(['PinturaSliderTrack', /*trackClass*/ ctx[5]]))) {\n\t\t\t\tattr(div0, \"class\", div0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*trackStyle*/ 16) {\n\t\t\t\tattr(div0, \"style\", /*trackStyle*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (knob_slot) {\n\t\t\t\tif (knob_slot.p && (!current || dirty[1] & /*$$scope*/ 128)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tknob_slot,\n\t\t\t\t\t\tknob_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[38],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[38])\n\t\t\t\t\t\t: get_slot_changes(knob_slot_template, /*$$scope*/ ctx[38], dirty, get_knob_slot_changes),\n\t\t\t\t\t\tget_knob_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*knobClass*/ 128 && div1_class_value !== (div1_class_value = arrayJoin(['PinturaSliderKnob', /*knobClass*/ ctx[7]]))) {\n\t\t\t\tattr(div1, \"class\", div1_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*knobStyle*/ 64) {\n\t\t\t\tattr(div1, \"style\", /*knobStyle*/ ctx[6]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*knobControllerStyle*/ 131072) {\n\t\t\t\tattr(div2, \"style\", /*knobControllerStyle*/ ctx[17]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*position*/ 32768 && div3_style_value !== (div3_style_value = `--slider-position:${Math.round(/*position*/ ctx[15])}`)) {\n\t\t\t\tattr(div3, \"style\", div3_style_value);\n\t\t\t}\n\n\t\t\tif (/*enableSpinButtons*/ ctx[9]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*enableSpinButtons*/ 512) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$f(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div4, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*klass*/ 4096 && div4_class_value !== (div4_class_value = arrayJoin(['PinturaSlider', /*klass*/ ctx[12]]))) {\n\t\t\t\tattr(div4, \"class\", div4_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*direction*/ 256) {\n\t\t\t\tattr(div4, \"data-direction\", /*direction*/ ctx[8]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\ttransition_in(knob_slot, local);\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\ttransition_out(knob_slot, local);\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div4);\n\t\t\t/*input_1_binding*/ ctx[37](null);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tif (knob_slot) knob_slot.d(detaching);\n\t\t\tif (if_block) if_block.d();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$C($$self, $$props, $$invalidate) {\n\tlet numberValue;\n\tlet range;\n\tlet fraction;\n\tlet position;\n\tlet axis;\n\tlet dimension;\n\tlet offsetSizeProp;\n\tlet pageAxisProp;\n\tlet knobControllerStyle;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { min = 0 } = $$props;\n\tlet { max = 100 } = $$props;\n\tlet { step = 1 } = $$props;\n\tlet { id = undefined } = $$props;\n\tlet { value = 0 } = $$props;\n\tlet { valueMin = undefined } = $$props;\n\tlet { valueMax = undefined } = $$props;\n\tlet { trackStyle = undefined } = $$props;\n\tlet { trackClass = undefined } = $$props;\n\tlet { knobStyle = undefined } = $$props;\n\tlet { knobClass = undefined } = $$props;\n\tlet { ongrab = noop$1 } = $$props;\n\tlet { onchange = noop$1 } = $$props;\n\tlet { onrelease = noop$1 } = $$props;\n\tlet { onexceed = noop$1 } = $$props;\n\tlet { direction = 'x' } = $$props;\n\tlet { getValue = passthrough } = $$props;\n\tlet { setValue = passthrough } = $$props;\n\tlet { enableSpinButtons = true } = $$props;\n\tlet { enableForceUseKnob = false } = $$props;\n\tlet { enableStopPropagation = true } = $$props;\n\tlet { enablePointerdownListener = true } = $$props;\n\tlet { maxInteractionDistance = 6 } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet input;\n\tlet inputSize;\n\tlet inputOffset;\n\tlet pageOffset;\n\tlet valuePrev;\n\tlet valuePrevIntended;\n\tconst formatValue = v => setValue(numberRoundTo(clamp(v, min, max), step), value);\n\n\tconst setValueByOffset = (offset, size, options = {}) => {\n\t\tconst { grabbed = false, released = false } = options;\n\t\tconst intendedValue = formatValue(min + offset / size * range);\n\t\tconst minValue = valueMin || min;\n\t\tconst maxValue = valueMax || max;\n\n\t\t$$invalidate(21, value = isString(intendedValue)\n\t\t? intendedValue\n\t\t: clamp(intendedValue, minValue, maxValue));\n\n\t\t// skip\n\t\tif (valuePrevIntended === intendedValue) return;\n\n\t\tvaluePrevIntended = intendedValue;\n\n\t\tif (!isString(intendedValue) && (intendedValue < minValue || intendedValue > maxValue)) {\n\t\t\tonexceed(value, intendedValue);\n\t\t}\n\n\t\tif (value === valuePrev) {\n\t\t\treturn;\n\t\t}\n\n\t\tvaluePrev = value;\n\t\tif (grabbed) ongrab(value);\n\t\tonchange(value);\n\t\tif (released) onrelease(value);\n\t};\n\n\tconst handleInput = e => {\n\t\t// already handled by pointer events\n\t\tif (inputSize) return;\n\n\t\t$$invalidate(21, value = setValue(parseFloat(e.target.value)));\n\t\tif (value === valuePrev) return;\n\t\tvaluePrev = value;\n\t\tonchange(value);\n\t};\n\n\tlet nudgeTimer;\n\n\tconst handleNudge = e => {\n\t\tconst size = input[offsetSizeProp];\n\t\tconst offset = numberValue / range * size;\n\t\tsetValueByOffset(offset + e.detail[direction], size);\n\t\tclearTimeout(nudgeTimer);\n\n\t\tnudgeTimer = setTimeout(\n\t\t\t() => {\n\t\t\t\tonrelease(value);\n\t\t\t},\n\t\t\t250\n\t\t);\n\t};\n\n\tconst eventDistanceToKnob = e => {\n\t\tconst clientRect = input.getBoundingClientRect();\n\t\tconst pageOffset = e[pageAxisProp];\n\t\tconst inputOffset = pageOffset - clientRect[direction];\n\t\tconst inputSize = input[offsetSizeProp];\n\t\treturn Math.abs(inputOffset - fraction * inputSize);\n\t};\n\n\tconst handlePointerDown = e => {\n\t\tlet stopPropagation = false;\n\t\tenableStopPropagation && e.stopPropagation();\n\t\tclearTimeout(nudgeTimer);\n\t\tconst clientRect = input.getBoundingClientRect();\n\t\tinputSize = input[offsetSizeProp];\n\t\tpageOffset = e[pageAxisProp];\n\t\tinputOffset = pageOffset - clientRect[direction];\n\n\t\tif (enableForceUseKnob) {\n\t\t\tconst dist = Math.abs(inputOffset - fraction * inputSize);\n\t\t\tif (dist > maxInteractionDistance) return;\n\t\t\tstopPropagation = true;\n\t\t\te.stopPropagation();\n\t\t}\n\n\t\tif (document.activeElement !== input) input.focus();\n\t\tsetValueByOffset(inputOffset, inputSize, { grabbed: true });\n\t\tdocument.documentElement.addEventListener('pointermove', handlePointerMove);\n\t\tdocument.documentElement.addEventListener('pointerup', handlePointerUp);\n\t\treturn stopPropagation;\n\t};\n\n\tconst handlePointerMove = e => {\n\t\tconst d = e[pageAxisProp] - pageOffset;\n\t\tsetValueByOffset(inputOffset + d, inputSize);\n\t};\n\n\tconst handlePointerUp = e => {\n\t\tinputSize = undefined;\n\t\tdocument.documentElement.removeEventListener('pointermove', handlePointerMove);\n\t\tdocument.documentElement.removeEventListener('pointerup', handlePointerUp);\n\t\tonchange(value);\n\t\tonrelease(value);\n\t};\n\n\tconst update = () => {\n\t\t$$invalidate(21, value = formatValue(numberValue + updateDir * step));\n\t\tonchange(value);\n\t};\n\n\tlet updateTimer;\n\tlet updateDir = 1;\n\tlet didUpdate = false;\n\n\tconst handleUpdaterDown = dir => e => {\n\t\tclearTimeout(nudgeTimer);\n\t\tupdateDir = dir;\n\t\tdidUpdate = false;\n\n\t\tupdateTimer = setInterval(\n\t\t\t() => {\n\t\t\t\tdidUpdate = true;\n\t\t\t\tupdate();\n\t\t\t},\n\t\t\t100\n\t\t);\n\n\t\tdocument.addEventListener('pointercancel', handleUpdaterUp);\n\t\tdocument.addEventListener('pointerup', handleUpdaterUp);\n\t};\n\n\tconst handleUpdaterUp = e => {\n\t\tclearTimeout(updateTimer);\n\t\tif (!didUpdate) update();\n\t\tonrelease(value);\n\t\tdocument.removeEventListener('pointerup', handleUpdaterUp);\n\t};\n\n\tfunction input_1_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tinput = $$value;\n\t\t\t$$invalidate(16, input);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('min' in $$props) $$invalidate(0, min = $$props.min);\n\t\tif ('max' in $$props) $$invalidate(1, max = $$props.max);\n\t\tif ('step' in $$props) $$invalidate(2, step = $$props.step);\n\t\tif ('id' in $$props) $$invalidate(3, id = $$props.id);\n\t\tif ('value' in $$props) $$invalidate(21, value = $$props.value);\n\t\tif ('valueMin' in $$props) $$invalidate(22, valueMin = $$props.valueMin);\n\t\tif ('valueMax' in $$props) $$invalidate(23, valueMax = $$props.valueMax);\n\t\tif ('trackStyle' in $$props) $$invalidate(4, trackStyle = $$props.trackStyle);\n\t\tif ('trackClass' in $$props) $$invalidate(5, trackClass = $$props.trackClass);\n\t\tif ('knobStyle' in $$props) $$invalidate(6, knobStyle = $$props.knobStyle);\n\t\tif ('knobClass' in $$props) $$invalidate(7, knobClass = $$props.knobClass);\n\t\tif ('ongrab' in $$props) $$invalidate(24, ongrab = $$props.ongrab);\n\t\tif ('onchange' in $$props) $$invalidate(25, onchange = $$props.onchange);\n\t\tif ('onrelease' in $$props) $$invalidate(26, onrelease = $$props.onrelease);\n\t\tif ('onexceed' in $$props) $$invalidate(27, onexceed = $$props.onexceed);\n\t\tif ('direction' in $$props) $$invalidate(8, direction = $$props.direction);\n\t\tif ('getValue' in $$props) $$invalidate(28, getValue = $$props.getValue);\n\t\tif ('setValue' in $$props) $$invalidate(29, setValue = $$props.setValue);\n\t\tif ('enableSpinButtons' in $$props) $$invalidate(9, enableSpinButtons = $$props.enableSpinButtons);\n\t\tif ('enableForceUseKnob' in $$props) $$invalidate(10, enableForceUseKnob = $$props.enableForceUseKnob);\n\t\tif ('enableStopPropagation' in $$props) $$invalidate(30, enableStopPropagation = $$props.enableStopPropagation);\n\t\tif ('enablePointerdownListener' in $$props) $$invalidate(11, enablePointerdownListener = $$props.enablePointerdownListener);\n\t\tif ('maxInteractionDistance' in $$props) $$invalidate(31, maxInteractionDistance = $$props.maxInteractionDistance);\n\t\tif ('class' in $$props) $$invalidate(12, klass = $$props.class);\n\t\tif ('$$scope' in $$props) $$invalidate(38, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*value, getValue*/ 270532608) {\n\t\t\t$$invalidate(14, numberValue = value !== undefined ? getValue(value) : 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*max, min*/ 3) {\n\t\t\trange = max - min;\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*numberValue, min, max*/ 16387) {\n\t\t\t$$invalidate(33, fraction = toFraction(numberValue, min, max));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*fraction*/ 4) {\n\t\t\t$$invalidate(15, position = fraction * 100);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*direction*/ 256) {\n\t\t\t$$invalidate(34, axis = direction.toUpperCase());\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*direction*/ 256) {\n\t\t\t$$invalidate(35, dimension = direction === 'x' ? 'Width' : 'Height');\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*dimension*/ 16) {\n\t\t\toffsetSizeProp = `offset${dimension}`;\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*axis*/ 8) ;\n\n\t\tif ($$self.$$.dirty[1] & /*axis*/ 8) {\n\t\t\tpageAxisProp = `page${axis}`;\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*position*/ 32768 | $$self.$$.dirty[1] & /*axis*/ 8) {\n\t\t\t$$invalidate(17, knobControllerStyle = `transform: translate${axis}(${position}%)`);\n\t\t}\n\t};\n\n\treturn [\n\t\tmin,\n\t\tmax,\n\t\tstep,\n\t\tid,\n\t\ttrackStyle,\n\t\ttrackClass,\n\t\tknobStyle,\n\t\tknobClass,\n\t\tdirection,\n\t\tenableSpinButtons,\n\t\tenableForceUseKnob,\n\t\tenablePointerdownListener,\n\t\tklass,\n\t\thandlePointerDown,\n\t\tnumberValue,\n\t\tposition,\n\t\tinput,\n\t\tknobControllerStyle,\n\t\thandleInput,\n\t\thandleNudge,\n\t\thandleUpdaterDown,\n\t\tvalue,\n\t\tvalueMin,\n\t\tvalueMax,\n\t\tongrab,\n\t\tonchange,\n\t\tonrelease,\n\t\tonexceed,\n\t\tgetValue,\n\t\tsetValue,\n\t\tenableStopPropagation,\n\t\tmaxInteractionDistance,\n\t\teventDistanceToKnob,\n\t\tfraction,\n\t\taxis,\n\t\tdimension,\n\t\tslots,\n\t\tinput_1_binding,\n\t\t$$scope\n\t];\n}\n\nclass Slider extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$C,\n\t\t\tcreate_fragment$B,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 1,\n\t\t\t\tstep: 2,\n\t\t\t\tid: 3,\n\t\t\t\tvalue: 21,\n\t\t\t\tvalueMin: 22,\n\t\t\t\tvalueMax: 23,\n\t\t\t\ttrackStyle: 4,\n\t\t\t\ttrackClass: 5,\n\t\t\t\tknobStyle: 6,\n\t\t\t\tknobClass: 7,\n\t\t\t\tongrab: 24,\n\t\t\t\tonchange: 25,\n\t\t\t\tonrelease: 26,\n\t\t\t\tonexceed: 27,\n\t\t\t\tdirection: 8,\n\t\t\t\tgetValue: 28,\n\t\t\t\tsetValue: 29,\n\t\t\t\tenableSpinButtons: 9,\n\t\t\t\tenableForceUseKnob: 10,\n\t\t\t\tenableStopPropagation: 30,\n\t\t\t\tenablePointerdownListener: 11,\n\t\t\t\tmaxInteractionDistance: 31,\n\t\t\t\tclass: 12,\n\t\t\t\teventDistanceToKnob: 32,\n\t\t\t\thandlePointerDown: 13\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget eventDistanceToKnob() {\n\t\treturn this.$$.ctx[32];\n\t}\n\n\tget handlePointerDown() {\n\t\treturn this.$$.ctx[13];\n\t}\n}\n\n/* src/core/ui/components/ToggleSlider.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block_1$a(ctx) {\n\tlet icon_1;\n\tlet current;\n\n\ticon_1 = new Icon({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaButtonIcon\",\n\t\t\t\t$$slots: { default: [create_default_slot$c] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon_1.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon_1, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_1_changes = {};\n\n\t\t\tif (dirty & /*$$scope, icon*/ 1048580) {\n\t\t\t\ticon_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon_1.$set(icon_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon_1, detaching);\n\t\t}\n\t};\n}\n\n// (57:12) <Icon class=\"PinturaButtonIcon\">\nfunction create_default_slot$c(ctx) {\n\tlet g;\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = /*icon*/ ctx[2];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*icon*/ 4) g.innerHTML = /*icon*/ ctx[2];\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (59:8) {#if labelPrefix}\nfunction create_if_block$e(ctx) {\n\tlet span;\n\tlet t_value = localize(/*labelPrefix*/ ctx[8], /*locale*/ ctx[6]) + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", \"PinturaButtonLabelPrefix\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*labelPrefix, locale*/ 320 && t_value !== (t_value = localize(/*labelPrefix*/ ctx[8], /*locale*/ ctx[6]) + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (51:4) \nfunction create_label_slot$1(ctx) {\n\tlet span1;\n\tlet t0;\n\tlet t1;\n\tlet span0;\n\tlet t2;\n\tlet span0_class_value;\n\tlet span1_title_value;\n\tlet span1_class_value;\n\tlet current;\n\tlet if_block0 = /*icon*/ ctx[2] && create_if_block_1$a(ctx);\n\tlet if_block1 = /*labelPrefix*/ ctx[8] && create_if_block$e(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan1 = element(\"span\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tspan0 = element(\"span\");\n\t\t\tt2 = text(/*currentLabel*/ ctx[9]);\n\n\t\t\tattr(span0, \"class\", span0_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonLabel',\n\t\t\t\t/*labelClass*/ ctx[3],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'implicit'\n\t\t\t]));\n\n\t\t\tattr(span1, \"slot\", \"label\");\n\t\t\tattr(span1, \"title\", span1_title_value = localize(/*title*/ ctx[1], /*locale*/ ctx[6]));\n\t\t\tattr(span1, \"class\", span1_class_value = arrayJoin(['PinturaButtonInner', /*innerClass*/ ctx[4]]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span1, anchor);\n\t\t\tif (if_block0) if_block0.m(span1, null);\n\t\t\tappend(span1, t0);\n\t\t\tif (if_block1) if_block1.m(span1, null);\n\t\t\tappend(span1, t1);\n\t\t\tappend(span1, span0);\n\t\t\tappend(span0, t2);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*icon*/ ctx[2]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*icon*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_1$a(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(span1, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*labelPrefix*/ ctx[8]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$e(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(span1, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*currentLabel*/ 512) set_data(t2, /*currentLabel*/ ctx[9]);\n\n\t\t\tif (!current || dirty & /*labelClass, hideLabel*/ 40 && span0_class_value !== (span0_class_value = arrayJoin([\n\t\t\t\t'PinturaButtonLabel',\n\t\t\t\t/*labelClass*/ ctx[3],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'implicit'\n\t\t\t]))) {\n\t\t\t\tattr(span0, \"class\", span0_class_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*title, locale*/ 66 && span1_title_value !== (span1_title_value = localize(/*title*/ ctx[1], /*locale*/ ctx[6]))) {\n\t\t\t\tattr(span1, \"title\", span1_title_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*innerClass*/ 16 && span1_class_value !== (span1_class_value = arrayJoin(['PinturaButtonInner', /*innerClass*/ ctx[4]]))) {\n\t\t\t\tattr(span1, \"class\", span1_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span1);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\n// (67:4) \nfunction create_details_slot$1(ctx) {\n\tlet div;\n\tlet slider;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tconst slider_spread_levels = [\n\t\t/*$$restProps*/ ctx[12],\n\t\t{ value: /*value*/ ctx[7] },\n\t\t{ onchange: /*handleChangeValue*/ ctx[11] }\n\t];\n\n\tlet slider_props = {};\n\n\tfor (let i = 0; i < slider_spread_levels.length; i += 1) {\n\t\tslider_props = assign(slider_props, slider_spread_levels[i]);\n\t}\n\n\tslider = new Slider({ props: slider_props });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(slider.$$.fragment);\n\t\t\tattr(div, \"slot\", \"details\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(slider, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"keydown\", /*handleKeydown*/ ctx[10]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst slider_changes = (dirty & /*$$restProps, value, handleChangeValue*/ 6272)\n\t\t\t? get_spread_update(slider_spread_levels, [\n\t\t\t\t\tdirty & /*$$restProps*/ 4096 && get_spread_object(/*$$restProps*/ ctx[12]),\n\t\t\t\t\tdirty & /*value*/ 128 && { value: /*value*/ ctx[7] },\n\t\t\t\t\tdirty & /*handleChangeValue*/ 2048 && { onchange: /*handleChangeValue*/ ctx[11] }\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tslider.$set(slider_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(slider.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(slider.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(slider);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction create_fragment$A(ctx) {\n\tlet panel;\n\tlet current;\n\n\tpanel = new Panel({\n\t\t\tprops: {\n\t\t\t\tpanelClass: \"PinturaSliderPanel\",\n\t\t\t\tbuttonClass: arrayJoin([\n\t\t\t\t\t'PinturaSliderButton',\n\t\t\t\t\t/*klass*/ ctx[0],\n\t\t\t\t\t/*hideLabel*/ ctx[5] && 'PinturaSliderIconOnly'\n\t\t\t\t]),\n\t\t\t\t$$slots: {\n\t\t\t\t\tdetails: [create_details_slot$1],\n\t\t\t\t\tlabel: [create_label_slot$1]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(panel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(panel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst panel_changes = {};\n\n\t\t\tif (dirty & /*klass, hideLabel*/ 33) panel_changes.buttonClass = arrayJoin([\n\t\t\t\t'PinturaSliderButton',\n\t\t\t\t/*klass*/ ctx[0],\n\t\t\t\t/*hideLabel*/ ctx[5] && 'PinturaSliderIconOnly'\n\t\t\t]);\n\n\t\t\tif (dirty & /*$$scope, $$restProps, value, title, locale, innerClass, labelClass, hideLabel, currentLabel, labelPrefix, icon*/ 1053694) {\n\t\t\t\tpanel_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tpanel.$set(panel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(panel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(panel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(panel, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$B($$self, $$props, $$invalidate) {\n\tconst omit_props_names = [\n\t\t\"class\",\"title\",\"label\",\"icon\",\"labelClass\",\"innerClass\",\"hideLabel\",\"locale\",\"value\",\"onchange\",\"labelPrefix\"\n\t];\n\n\tlet $$restProps = compute_rest_props($$props, omit_props_names);\n\tlet { class: klass = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { label = Math.round } = $$props;\n\tlet { icon = undefined } = $$props;\n\tlet { labelClass = undefined } = $$props;\n\tlet { innerClass = undefined } = $$props;\n\tlet { hideLabel = false } = $$props;\n\tlet { locale = undefined } = $$props;\n\tlet { value = undefined } = $$props;\n\tlet { onchange = noop$1 } = $$props;\n\tlet { labelPrefix = undefined } = $$props;\n\tconst { min, max, getValue = passthrough } = $$restProps;\n\tlet currentLabel;\n\n\tconst handleKeydown = e => {\n\t\t// don't allow tabbing ([tab] is also blocked in normal <select>)\n\t\tif ((/tab/i).test(e.key)) e.preventDefault();\n\t};\n\n\tconst getLabel = value => isFunction(label)\n\t? label(getValue(value), min, max, value)\n\t: label;\n\n\tconst handleChangeValue = value => {\n\t\tsyncLabel(value);\n\t\tonchange(value);\n\t};\n\n\tconst syncLabel = value => $$invalidate(9, currentLabel = getLabel(value));\n\n\t$$self.$$set = $$new_props => {\n\t\t$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));\n\t\t$$invalidate(12, $$restProps = compute_rest_props($$props, omit_props_names));\n\t\tif ('class' in $$new_props) $$invalidate(0, klass = $$new_props.class);\n\t\tif ('title' in $$new_props) $$invalidate(1, title = $$new_props.title);\n\t\tif ('label' in $$new_props) $$invalidate(13, label = $$new_props.label);\n\t\tif ('icon' in $$new_props) $$invalidate(2, icon = $$new_props.icon);\n\t\tif ('labelClass' in $$new_props) $$invalidate(3, labelClass = $$new_props.labelClass);\n\t\tif ('innerClass' in $$new_props) $$invalidate(4, innerClass = $$new_props.innerClass);\n\t\tif ('hideLabel' in $$new_props) $$invalidate(5, hideLabel = $$new_props.hideLabel);\n\t\tif ('locale' in $$new_props) $$invalidate(6, locale = $$new_props.locale);\n\t\tif ('value' in $$new_props) $$invalidate(7, value = $$new_props.value);\n\t\tif ('onchange' in $$new_props) $$invalidate(14, onchange = $$new_props.onchange);\n\t\tif ('labelPrefix' in $$new_props) $$invalidate(8, labelPrefix = $$new_props.labelPrefix);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*value, label*/ 8320) {\n\t\t\tsyncLabel(value);\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\ttitle,\n\t\ticon,\n\t\tlabelClass,\n\t\tinnerClass,\n\t\thideLabel,\n\t\tlocale,\n\t\tvalue,\n\t\tlabelPrefix,\n\t\tcurrentLabel,\n\t\thandleKeydown,\n\t\thandleChangeValue,\n\t\t$$restProps,\n\t\tlabel,\n\t\tonchange\n\t];\n}\n\nclass ToggleSlider extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$B, create_fragment$A, safe_not_equal, {\n\t\t\tclass: 0,\n\t\t\ttitle: 1,\n\t\t\tlabel: 13,\n\t\t\ticon: 2,\n\t\t\tlabelClass: 3,\n\t\t\tinnerClass: 4,\n\t\t\thideLabel: 5,\n\t\t\tlocale: 6,\n\t\t\tvalue: 7,\n\t\t\tonchange: 14,\n\t\t\tlabelPrefix: 8\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/ShapeStyle.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block$d(ctx) {\n\tlet span;\n\tlet t_value = localize(/*title*/ ctx[0], /*locale*/ ctx[1]) + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", /*klass*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*title, locale*/ 3 && t_value !== (t_value = localize(/*title*/ ctx[0], /*locale*/ ctx[1]) + \"\")) set_data(t, t_value);\n\n\t\t\tif (dirty & /*klass*/ 8) {\n\t\t\t\tattr(span, \"class\", /*klass*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\nfunction create_fragment$z(ctx) {\n\tlet li;\n\tlet t;\n\tlet dynamiccomponenttree;\n\tlet current;\n\tlet if_block = /*title*/ ctx[0] && create_if_block$d(ctx);\n\tdynamiccomponenttree = new DynamicComponentTree_1({ props: { items: /*items*/ ctx[2] } });\n\n\treturn {\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(li, \"class\", \"PinturaShapeStyle\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\t\t\tif (if_block) if_block.m(li, null);\n\t\t\tappend(li, t);\n\t\t\tmount_component(dynamiccomponenttree, li, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (/*title*/ ctx[0]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$d(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(li, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*items*/ 4) dynamiccomponenttree_changes.items = /*items*/ ctx[2];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tif (if_block) if_block.d();\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t}\n\t};\n}\n\nfunction instance$A($$self, $$props, $$invalidate) {\n\tlet klass;\n\tlet { title } = $$props;\n\tlet { locale } = $$props;\n\tlet { items } = $$props;\n\tlet { hideTitle = false } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('title' in $$props) $$invalidate(0, title = $$props.title);\n\t\tif ('locale' in $$props) $$invalidate(1, locale = $$props.locale);\n\t\tif ('items' in $$props) $$invalidate(2, items = $$props.items);\n\t\tif ('hideTitle' in $$props) $$invalidate(4, hideTitle = $$props.hideTitle);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*hideTitle*/ 16) {\n\t\t\t$$invalidate(3, klass = 'PinturaShapeStyleLabel' + (hideTitle ? ' implicit' : ''));\n\t\t}\n\t};\n\n\treturn [title, locale, items, klass, hideTitle];\n}\n\nclass ShapeStyle extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$A, create_fragment$z, safe_not_equal, {\n\t\t\ttitle: 0,\n\t\t\tlocale: 1,\n\t\t\titems: 2,\n\t\t\thideTitle: 4\n\t\t});\n\t}\n}\n\nvar RGBToHSV = (r, g, b) => {\n let v = Math.max(r, g, b), n = v - Math.min(r, g, b);\n let h = n && (v == r ? (g - b) / n : v == g ? 2 + (b - r) / n : 4 + (r - g) / n);\n return [(60 * (h < 0 ? h + 6 : h)) / 360, v && n / v, v];\n};\n\nvar HSVToRGB = (h, s, v) => {\n let r, g, b;\n const i = Math.floor(h * 6);\n const f = h * 6 - i;\n const p = v * (1 - s);\n const q = v * (1 - f * s);\n const t = v * (1 - (1 - f) * s);\n switch (i % 6) {\n case 0:\n (r = v), (g = t), (b = p);\n break;\n case 1:\n (r = q), (g = v), (b = p);\n break;\n case 2:\n (r = p), (g = v), (b = t);\n break;\n case 3:\n (r = p), (g = q), (b = v);\n break;\n case 4:\n (r = t), (g = p), (b = v);\n break;\n case 5:\n (r = v), (g = p), (b = q);\n break;\n }\n return [r, g, b];\n};\n\n/* src/core/ui/components/ColorPreview.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$y(ctx) {\n\tlet div;\n\tlet span;\n\tlet div_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tspan = element(\"span\");\n\t\t\tattr(div, \"class\", \"PinturaColorPreview\");\n\t\t\tattr(div, \"title\", /*title*/ ctx[0]);\n\t\t\tattr(div, \"style\", div_style_value = `--color:${/*colorValue*/ ctx[1]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, span);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*title*/ 1) {\n\t\t\t\tattr(div, \"title\", /*title*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (dirty & /*colorValue*/ 2 && div_style_value !== (div_style_value = `--color:${/*colorValue*/ ctx[1]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction instance$z($$self, $$props, $$invalidate) {\n\tlet colorValue;\n\tlet { color = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('color' in $$props) $$invalidate(2, color = $$props.color);\n\t\tif ('title' in $$props) $$invalidate(0, title = $$props.title);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*color*/ 4) {\n\t\t\t$$invalidate(1, colorValue = color ? colorArrayToRGBA(color) : 'transparent');\n\t\t}\n\t};\n\n\treturn [title, colorValue, color];\n}\n\nclass ColorPreview extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$z, create_fragment$y, safe_not_equal, { color: 2, title: 0 });\n\t}\n}\n\nvar hexToRGB = (str) => {\n const [, q, w, e, f] = str.split('');\n // is shorthand hex #f00(f) (last is opacity) convert to hex\n str =\n str.length >= 4 && str.length <= 5\n ? `#${q}${q}${w}${w}${e}${e}${f ? `${f}${f}` : ''}`\n : str;\n // split normalized hex into parts\n const [match, r, g, b, a] = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})?$/i.exec(str) || [];\n if (!match)\n return;\n return [r, g, b, a].filter((v) => v !== undefined).map((v) => parseInt(v, 16) / 255);\n};\n\nvar colorStringToColorArray = (color) => {\n color = color.trim();\n // if rgba(128, 128, 128, .5)\n if (/^rgba/.test(color)) {\n return color\n .substr(5)\n .split(',')\n .map(parseFloat)\n .map((v, i) => v / (i === 3 ? 1 : 255));\n }\n // if rgb(128, 128, 128)\n if (/^rgb/.test(color)) {\n return color\n .substr(4)\n .split(',')\n .map(parseFloat)\n .map((v) => v / 255);\n }\n // if #777\n if (/^#/.test(color)) {\n return hexToRGB(color);\n }\n // is possibly 255, 0, 0\n if (/[0-9]{1,3}\\s?,\\s?[0-9]{1,3}\\s?,\\s?[0-9]{1,3}/.test(color)) {\n return color\n .split(',')\n .map((v) => parseInt(v, 10))\n .map((v) => v / 255);\n }\n // undefined if no idea\n};\n\n/* src/core/ui/components/ColorPicker.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block_5$4(ctx) {\n\tlet span;\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(/*label*/ ctx[0]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*label*/ 1) set_data(t, /*label*/ ctx[0]);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (226:4) \nfunction create_label_slot(ctx) {\n\tlet span;\n\tlet colorpreview;\n\tlet t;\n\tlet current;\n\n\tcolorpreview = new ColorPreview({\n\t\t\tprops: {\n\t\t\t\tcolor: /*value*/ ctx[4],\n\t\t\t\ttitle: localize(/*title*/ ctx[8], /*locale*/ ctx[10])\n\t\t\t}\n\t\t});\n\n\tlet if_block = !/*hidePresetLabel*/ ctx[9] && create_if_block_5$4(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tcreate_component(colorpreview.$$.fragment);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(span, \"slot\", \"label\");\n\t\t\tattr(span, \"class\", \"PinturaButtonLabel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tmount_component(colorpreview, span, null);\n\t\t\tappend(span, t);\n\t\t\tif (if_block) if_block.m(span, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst colorpreview_changes = {};\n\t\t\tif (dirty[0] & /*value*/ 16) colorpreview_changes.color = /*value*/ ctx[4];\n\t\t\tif (dirty[0] & /*title, locale*/ 1280) colorpreview_changes.title = localize(/*title*/ ctx[8], /*locale*/ ctx[10]);\n\t\t\tcolorpreview.$set(colorpreview_changes);\n\n\t\t\tif (!/*hidePresetLabel*/ ctx[9]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_5$4(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(span, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(colorpreview.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(colorpreview.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tdestroy_component(colorpreview);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\n// (237:8) {#if enablePicker}\nfunction create_if_block_2$7(ctx) {\n\tlet div3;\n\tlet div2;\n\tlet div1;\n\tlet div0;\n\tlet div0_style_value;\n\tlet div1_style_value;\n\tlet div2_style_value;\n\tlet t0;\n\tlet slider;\n\tlet t1;\n\tlet t2;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tslider = new Slider({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaHuePicker\",\n\t\t\t\tknobStyle: `background-color:${/*valueAsRGBAFullySaturated*/ ctx[20]}`,\n\t\t\t\tonchange: /*updateHue*/ ctx[26],\n\t\t\t\tvalue: /*hue*/ ctx[15],\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 1,\n\t\t\t\tstep: 0.01\n\t\t\t}\n\t\t});\n\n\tlet if_block0 = /*enableOpacity*/ ctx[11] && create_if_block_4$5(ctx);\n\tlet if_block1 = /*enableInput*/ ctx[14] && create_if_block_3$6(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv3 = element(\"div\");\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\t\t\tcreate_component(slider.$$.fragment);\n\t\t\tt1 = space();\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt2 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(div0, \"role\", \"button\");\n\t\t\tattr(div0, \"aria-label\", \"Saturation slider\");\n\t\t\tattr(div0, \"class\", \"PinturaPickerKnob\");\n\t\t\tattr(div0, \"tabindex\", \"0\");\n\t\t\tattr(div0, \"style\", div0_style_value = `background-color:${/*valueAsRGBAFullyOpaque*/ ctx[19]};`);\n\t\t\tattr(div1, \"class\", \"PinturaPickerKnobController\");\n\t\t\tattr(div1, \"style\", div1_style_value = `transform:translate(${/*sx*/ ctx[24]}%,${/*sy*/ ctx[23]}%)`);\n\t\t\tattr(div2, \"class\", \"PinturaSaturationPicker\");\n\t\t\tattr(div2, \"style\", div2_style_value = `background-color: ${/*valueAsRGBAFullySaturated*/ ctx[20]}`);\n\t\t\tattr(div3, \"class\", \"PinturaPicker\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div3, anchor);\n\t\t\tappend(div3, div2);\n\t\t\tappend(div2, div1);\n\t\t\tappend(div1, div0);\n\t\t\t/*div2_binding*/ ctx[37](div2);\n\t\t\tappend(div3, t0);\n\t\t\tmount_component(slider, div3, null);\n\t\t\tappend(div3, t1);\n\t\t\tif (if_block0) if_block0.m(div3, null);\n\t\t\tappend(div3, t2);\n\t\t\tif (if_block1) if_block1.m(div3, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"nudge\", /*handleNudge*/ ctx[29]),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div0, { preventDefault: true })),\n\t\t\t\t\tlisten(div2, \"pointerdown\", /*handlePointerDown*/ ctx[28])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (!current || dirty[0] & /*valueAsRGBAFullyOpaque*/ 524288 && div0_style_value !== (div0_style_value = `background-color:${/*valueAsRGBAFullyOpaque*/ ctx[19]};`)) {\n\t\t\t\tattr(div0, \"style\", div0_style_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*sx, sy*/ 25165824 && div1_style_value !== (div1_style_value = `transform:translate(${/*sx*/ ctx[24]}%,${/*sy*/ ctx[23]}%)`)) {\n\t\t\t\tattr(div1, \"style\", div1_style_value);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*valueAsRGBAFullySaturated*/ 1048576 && div2_style_value !== (div2_style_value = `background-color: ${/*valueAsRGBAFullySaturated*/ ctx[20]}`)) {\n\t\t\t\tattr(div2, \"style\", div2_style_value);\n\t\t\t}\n\n\t\t\tconst slider_changes = {};\n\t\t\tif (dirty[0] & /*valueAsRGBAFullySaturated*/ 1048576) slider_changes.knobStyle = `background-color:${/*valueAsRGBAFullySaturated*/ ctx[20]}`;\n\t\t\tif (dirty[0] & /*hue*/ 32768) slider_changes.value = /*hue*/ ctx[15];\n\t\t\tslider.$set(slider_changes);\n\n\t\t\tif (/*enableOpacity*/ ctx[11]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*enableOpacity*/ 2048) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_4$5(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div3, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*enableInput*/ ctx[14]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_3$6(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(div3, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(slider.$$.fragment, local);\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(slider.$$.fragment, local);\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div3);\n\t\t\t/*div2_binding*/ ctx[37](null);\n\t\t\tdestroy_component(slider);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (271:16) {#if enableOpacity}\nfunction create_if_block_4$5(ctx) {\n\tlet slider;\n\tlet current;\n\n\tslider = new Slider({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaOpacityPicker\",\n\t\t\t\tknobStyle: `background-color:${/*valueAsRGBA*/ ctx[17]}`,\n\t\t\t\ttrackStyle: `background-image:linear-gradient(to right,${/*valueAsRGBAFullyTransparent*/ ctx[18]},${/*valueAsRGBAFullyOpaque*/ ctx[19]})`,\n\t\t\t\tonchange: /*updateOpacity*/ ctx[27],\n\t\t\t\tvalue: /*opacity*/ ctx[16],\n\t\t\t\tmin: 0,\n\t\t\t\tmax: 1,\n\t\t\t\tstep: 0.01\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(slider.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(slider, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst slider_changes = {};\n\t\t\tif (dirty[0] & /*valueAsRGBA*/ 131072) slider_changes.knobStyle = `background-color:${/*valueAsRGBA*/ ctx[17]}`;\n\t\t\tif (dirty[0] & /*valueAsRGBAFullyTransparent, valueAsRGBAFullyOpaque*/ 786432) slider_changes.trackStyle = `background-image:linear-gradient(to right,${/*valueAsRGBAFullyTransparent*/ ctx[18]},${/*valueAsRGBAFullyOpaque*/ ctx[19]})`;\n\t\t\tif (dirty[0] & /*opacity*/ 65536) slider_changes.value = /*opacity*/ ctx[16];\n\t\t\tslider.$set(slider_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(slider.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(slider.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(slider, detaching);\n\t\t}\n\t};\n}\n\n// (284:16) {#if enableInput}\nfunction create_if_block_3$6(ctx) {\n\tlet input_1;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tinput_1 = element(\"input\");\n\t\t\tattr(input_1, \"class\", \"PinturaColorPickerInput\");\n\t\t\tattr(input_1, \"type\", \"text\");\n\t\t\tinput_1.value = /*valueAsHex*/ ctx[22];\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, input_1, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(input_1, \"input\", /*handleInput*/ ctx[30]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*valueAsHex*/ 4194304 && input_1.value !== /*valueAsHex*/ ctx[22]) {\n\t\t\t\tinput_1.value = /*valueAsHex*/ ctx[22];\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(input_1);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (296:8) {#if enablePresets}\nfunction create_if_block$c(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlabel: localize(/*locale*/ ctx[10].labelColorPalette, /*locale*/ ctx[10]),\n\t\t\t\tclass: arrayJoin([\n\t\t\t\t\t'PinturaColorPresets',\n\t\t\t\t\t/*hidePresetLabel*/ ctx[9]\n\t\t\t\t\t? 'PinturaColorPresetsGrid'\n\t\t\t\t\t: 'PinturaColorPresetsList'\n\t\t\t\t]),\n\t\t\t\thideLabel: false,\n\t\t\t\tname: /*name*/ ctx[1],\n\t\t\t\tvalue: /*value*/ ctx[4],\n\t\t\t\toptionGroupClass: \"PinturaListOptionGroup\",\n\t\t\t\toptionClass: \"PinturaListOption\",\n\t\t\t\toptions: /*options*/ ctx[2].map(/*func*/ ctx[38]),\n\t\t\t\tselectedIndex: /*selectedIndex*/ ctx[3],\n\t\t\t\toptionMapper: /*optionMapper*/ ctx[7],\n\t\t\t\toptionLabelClass: /*optionLabelClass*/ ctx[6],\n\t\t\t\tonchange: /*func_1*/ ctx[39],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot$4,\n\t\t\t\t\t\t({ option }) => ({ 51: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 1048576 : 0]\n\t\t\t\t\t],\n\t\t\t\t\tgroup: [\n\t\t\t\t\t\tcreate_group_slot,\n\t\t\t\t\t\t({ option }) => ({ 51: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 1048576 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 1024) radiogroup_changes.label = localize(/*locale*/ ctx[10].labelColorPalette, /*locale*/ ctx[10]);\n\n\t\t\tif (dirty[0] & /*hidePresetLabel*/ 512) radiogroup_changes.class = arrayJoin([\n\t\t\t\t'PinturaColorPresets',\n\t\t\t\t/*hidePresetLabel*/ ctx[9]\n\t\t\t\t? 'PinturaColorPresetsGrid'\n\t\t\t\t: 'PinturaColorPresetsList'\n\t\t\t]);\n\n\t\t\tif (dirty[0] & /*name*/ 2) radiogroup_changes.name = /*name*/ ctx[1];\n\t\t\tif (dirty[0] & /*value*/ 16) radiogroup_changes.value = /*value*/ ctx[4];\n\t\t\tif (dirty[0] & /*options, locale*/ 1028) radiogroup_changes.options = /*options*/ ctx[2].map(/*func*/ ctx[38]);\n\t\t\tif (dirty[0] & /*selectedIndex*/ 8) radiogroup_changes.selectedIndex = /*selectedIndex*/ ctx[3];\n\t\t\tif (dirty[0] & /*optionMapper*/ 128) radiogroup_changes.optionMapper = /*optionMapper*/ ctx[7];\n\t\t\tif (dirty[0] & /*optionLabelClass*/ 64) radiogroup_changes.optionLabelClass = /*optionLabelClass*/ ctx[6];\n\n\t\t\tif (dirty[0] & /*hidePresetLabel*/ 512 | dirty[1] & /*$$scope, option*/ 3145728) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (318:16) \nfunction create_group_slot(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[51].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"slot\", \"group\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1048576 && t_value !== (t_value = /*option*/ ctx[51].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (323:20) {#if !hidePresetLabel}\nfunction create_if_block_1$9(ctx) {\n\tlet span;\n\tlet t_value = /*option*/ ctx[51].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t\tattr(span, \"class\", \"PinturaButtonLabel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 1048576 && t_value !== (t_value = /*option*/ ctx[51].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (321:16) \nfunction create_option_slot$4(ctx) {\n\tlet span;\n\tlet colorpreview;\n\tlet t;\n\tlet current;\n\n\tcolorpreview = new ColorPreview({\n\t\t\tprops: {\n\t\t\t\ttitle: /*option*/ ctx[51].label,\n\t\t\t\tcolor: /*option*/ ctx[51].value\n\t\t\t}\n\t\t});\n\n\tlet if_block = !/*hidePresetLabel*/ ctx[9] && create_if_block_1$9(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tcreate_component(colorpreview.$$.fragment);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(span, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tmount_component(colorpreview, span, null);\n\t\t\tappend(span, t);\n\t\t\tif (if_block) if_block.m(span, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst colorpreview_changes = {};\n\t\t\tif (dirty[1] & /*option*/ 1048576) colorpreview_changes.title = /*option*/ ctx[51].label;\n\t\t\tif (dirty[1] & /*option*/ 1048576) colorpreview_changes.color = /*option*/ ctx[51].value;\n\t\t\tcolorpreview.$set(colorpreview_changes);\n\n\t\t\tif (!/*hidePresetLabel*/ ctx[9]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_1$9(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(span, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(colorpreview.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(colorpreview.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t\tdestroy_component(colorpreview);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\n// (235:4) \nfunction create_details_slot(ctx) {\n\tlet div;\n\tlet t;\n\tlet current;\n\tlet if_block0 = /*enablePicker*/ ctx[13] && create_if_block_2$7(ctx);\n\tlet if_block1 = /*enablePresets*/ ctx[12] && create_if_block$c(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(div, \"slot\", \"details\");\n\t\t\tattr(div, \"class\", \"PinturaColorPickerPanel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block0) if_block0.m(div, null);\n\t\t\tappend(div, t);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*enablePicker*/ ctx[13]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*enablePicker*/ 8192) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2$7(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*enablePresets*/ ctx[12]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*enablePresets*/ 4096) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$c(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\nfunction create_fragment$x(ctx) {\n\tlet panel;\n\tlet current;\n\n\tpanel = new Panel({\n\t\t\tprops: {\n\t\t\t\tbuttonClass: arrayJoin(['PinturaColorPickerButton', /*buttonClass*/ ctx[5]]),\n\t\t\t\t$$slots: {\n\t\t\t\t\tdetails: [create_details_slot],\n\t\t\t\t\tlabel: [create_label_slot]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(panel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(panel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst panel_changes = {};\n\t\t\tif (dirty[0] & /*buttonClass*/ 32) panel_changes.buttonClass = arrayJoin(['PinturaColorPickerButton', /*buttonClass*/ ctx[5]]);\n\n\t\t\tif (dirty[0] & /*locale, hidePresetLabel, name, value, options, selectedIndex, optionMapper, optionLabelClass, enablePresets, valueAsHex, enableInput, valueAsRGBA, valueAsRGBAFullyTransparent, valueAsRGBAFullyOpaque, opacity, enableOpacity, valueAsRGBAFullySaturated, hue, input, sx, sy, enablePicker, label, title*/ 33554399 | dirty[1] & /*$$scope*/ 2097152) {\n\t\t\t\tpanel_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tpanel.$set(panel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(panel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(panel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(panel, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$y($$self, $$props, $$invalidate) {\n\tlet sx;\n\tlet sy;\n\tlet isPossibleShortHand;\n\tlet valueAsHex;\n\tlet { label = undefined } = $$props;\n\tlet { name = undefined } = $$props;\n\tlet { options = [] } = $$props;\n\tlet { selectedIndex = -1 } = $$props;\n\tlet { value = undefined } = $$props;\n\tlet { buttonClass = undefined } = $$props;\n\tlet { optionLabelClass = undefined } = $$props;\n\tlet { optionMapper = undefined } = $$props;\n\tlet { onchange = undefined } = $$props;\n\tlet { title = undefined } = $$props;\n\tlet { hidePresetLabel = true } = $$props;\n\tlet { locale = undefined } = $$props;\n\tlet { enableOpacity = true } = $$props;\n\tlet { enablePresets = true } = $$props;\n\tlet { enablePicker = true } = $$props;\n\tlet { enableInput = false } = $$props;\n\n\t// inputs\n\tlet hue;\n\n\tlet saturation;\n\tlet brightness;\n\tlet opacity;\n\n\t// shortcuts\n\tlet valueAsRGB;\n\n\tlet valueAsRGBA;\n\tlet valueAsRGBAFullyTransparent;\n\tlet valueAsRGBAFullyOpaque;\n\tlet valueAsRGBAFullySaturated;\n\n\t// remember previous value\n\tlet valuePrev;\n\n\tconst updateProps = (color, syncControls) => {\n\t\tvalueAsRGB = [color[0], color[1], color[2]];\n\n\t\tif (syncControls) {\n\t\t\tlet valueAsHSV = RGBToHSV(...valueAsRGB);\n\t\t\t$$invalidate(15, hue = valueAsHSV[0]);\n\t\t\t$$invalidate(32, saturation = valueAsHSV[1]);\n\t\t\t$$invalidate(33, brightness = valueAsHSV[2]);\n\t\t\t$$invalidate(16, opacity = isNumber(color[3]) ? color[3] : 1);\n\t\t}\n\n\t\t$$invalidate(17, valueAsRGBA = colorArrayToRGBA(color));\n\t\t$$invalidate(18, valueAsRGBAFullyTransparent = colorArrayToRGBA([...valueAsRGB, 0]));\n\t\t$$invalidate(19, valueAsRGBAFullyOpaque = colorArrayToRGBA([...valueAsRGB, 1]));\n\t\t$$invalidate(20, valueAsRGBAFullySaturated = colorArrayToRGBA(HSVToRGB(hue, 1, 1)));\n\t};\n\n\tconst update = () => {\n\t\tconst rgb = HSVToRGB(hue, saturation, brightness);\n\t\tconst rgba = [...rgb, opacity];\n\t\tupdateProps(rgba);\n\t\tonchange(rgba);\n\t};\n\n\tconst updateColorArray = arr => {\n\t\tconst rgba = arr.length === 3 ? [...arr, 1] : arr;\n\t\tupdateProps(rgba, true);\n\t\tonchange(rgba);\n\t};\n\n\tconst updateHue = h => {\n\t\t$$invalidate(15, hue = h);\n\t\tif (opacity === 0) $$invalidate(16, opacity = 1);\n\t\tupdate();\n\t};\n\n\tconst updateSaturationAndBrightness = (s, b) => {\n\t\t$$invalidate(32, saturation = s);\n\t\t$$invalidate(33, brightness = b);\n\t\tif (opacity === 0) $$invalidate(16, opacity = 1);\n\t\tupdate();\n\t};\n\n\tconst updateOpacity = o => {\n\t\t$$invalidate(16, opacity = o);\n\t\tupdate();\n\t};\n\n\tconst setValueByOffset = (offset, inputSize) => {\n\t\tconst x = clamp(offset.x / inputSize.width, 0, 1);\n\t\tconst y = clamp(offset.y / inputSize.height, 0, 1);\n\t\tupdateSaturationAndBrightness(x, 1 - y);\n\t};\n\n\tlet input;\n\tlet inputSize;\n\tlet inputOffset;\n\tlet inputPageOffset;\n\n\tconst handlePointerDown = e => {\n\t\te.stopPropagation();\n\t\tinputSize = sizeCreate(input.offsetWidth, input.offsetHeight);\n\t\tinputOffset = vectorCreateFromPointerEventOffset(e);\n\t\tinputPageOffset = vectorCreateFromPointerEvent(e);\n\t\tsetValueByOffset(inputOffset, inputSize);\n\t\tdocument.documentElement.addEventListener('pointermove', handlePointerMove);\n\t\tdocument.documentElement.addEventListener('pointerup', handlePointerUp);\n\t};\n\n\tconst handlePointerMove = e => {\n\t\tconst d = vectorSubtract(vectorCreateFromPointerEvent(e), inputPageOffset);\n\t\tsetValueByOffset(vectorAdd(vectorClone(inputOffset), d), inputSize);\n\t};\n\n\tconst handlePointerUp = e => {\n\t\tinputSize = undefined;\n\t\tdocument.documentElement.removeEventListener('pointermove', handlePointerMove);\n\t\tdocument.documentElement.removeEventListener('pointerup', handlePointerUp);\n\t};\n\n\tconst handleNudge = e => {\n\t\tinputSize = sizeCreate(input.offsetWidth, input.offsetHeight);\n\t\tconst x = sx / 100 * inputSize.width;\n\t\tconst y = sy / 100 * inputSize.height;\n\t\tsetValueByOffset({ x: x + e.detail.x, y: y + e.detail.y }, inputSize);\n\t};\n\n\t//\n\t// hex input\n\t//\n\tlet currentInput;\n\n\tconst colorArrayToHex = (color, opacityEnabled, isShorthand) => {\n\t\tlet parts = color.map(v => Math.round(v * 255).toString(16).toLowerCase().padStart(2, '0'));\n\t\tif (!opacityEnabled && parts.length > 3 || parts[3] === 'ff') parts.pop();\n\t\tif (isShorthand) parts = parts.map(p => p.substring(0, 1));\n\t\treturn `#${parts.join('')}`;\n\t};\n\n\t/*\n#f -> false\n#f0 -> false\n#f00 → true (l=4)\n#f009 → true (l=5)\n#f0099 → false\n#ff0000 → true (l=7)\n#ff00009 → false\n#ff000099 → true (l=9)\n*/\n\tconst handleInput = e => {\n\t\tconst { value } = e.target;\n\n\t\t// no # at start or is invalid length\n\t\tconst l = value.length;\n\n\t\tif (!value.startsWith('#') || l < 4 || l === 6 || l === 8 || l > 9) return;\n\n\t\t// can't handle opacity input\n\t\tif (!enableOpacity && l > 7) return;\n\n\t\t// convert to rgba\n\t\tconst rgba = colorStringToColorArray(value);\n\n\t\tif (!rgba) return;\n\n\t\t// store current value so we know if we are typing a short hand\n\t\t$$invalidate(35, currentInput = value);\n\n\t\tupdateProps(rgba);\n\t\tonchange(rgba);\n\t};\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tinput = $$value;\n\t\t\t$$invalidate(21, input);\n\t\t});\n\t}\n\n\tconst func = ([color, label]) => [color, isFunction(label) ? label(locale) : label];\n\tconst func_1 = detail => updateColorArray(detail.value);\n\n\t$$self.$$set = $$props => {\n\t\tif ('label' in $$props) $$invalidate(0, label = $$props.label);\n\t\tif ('name' in $$props) $$invalidate(1, name = $$props.name);\n\t\tif ('options' in $$props) $$invalidate(2, options = $$props.options);\n\t\tif ('selectedIndex' in $$props) $$invalidate(3, selectedIndex = $$props.selectedIndex);\n\t\tif ('value' in $$props) $$invalidate(4, value = $$props.value);\n\t\tif ('buttonClass' in $$props) $$invalidate(5, buttonClass = $$props.buttonClass);\n\t\tif ('optionLabelClass' in $$props) $$invalidate(6, optionLabelClass = $$props.optionLabelClass);\n\t\tif ('optionMapper' in $$props) $$invalidate(7, optionMapper = $$props.optionMapper);\n\t\tif ('onchange' in $$props) $$invalidate(31, onchange = $$props.onchange);\n\t\tif ('title' in $$props) $$invalidate(8, title = $$props.title);\n\t\tif ('hidePresetLabel' in $$props) $$invalidate(9, hidePresetLabel = $$props.hidePresetLabel);\n\t\tif ('locale' in $$props) $$invalidate(10, locale = $$props.locale);\n\t\tif ('enableOpacity' in $$props) $$invalidate(11, enableOpacity = $$props.enableOpacity);\n\t\tif ('enablePresets' in $$props) $$invalidate(12, enablePresets = $$props.enablePresets);\n\t\tif ('enablePicker' in $$props) $$invalidate(13, enablePicker = $$props.enablePicker);\n\t\tif ('enableInput' in $$props) $$invalidate(14, enableInput = $$props.enableInput);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*value*/ 16 | $$self.$$.dirty[1] & /*valuePrev*/ 8) {\n\t\t\t// update initial value if supplied\n\t\t\tif (value && (!valuePrev || !arrayEqual(value, valuePrev))) {\n\t\t\t\t$$invalidate(34, valuePrev = [...value]);\n\t\t\t\tupdateProps(value, true);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*saturation*/ 2) {\n\t\t\t$$invalidate(24, sx = saturation * 100);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*brightness*/ 4) {\n\t\t\t$$invalidate(23, sy = 100 - brightness * 100);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*currentInput*/ 16) {\n\t\t\t$$invalidate(36, isPossibleShortHand = currentInput\n\t\t\t? currentInput.length >= 4 && currentInput.length <= 5\n\t\t\t: false);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*enableInput, value, enableOpacity*/ 18448 | $$self.$$.dirty[1] & /*isPossibleShortHand*/ 32) {\n\t\t\t$$invalidate(22, valueAsHex = enableInput && value\n\t\t\t? colorArrayToHex(value, enableOpacity, isPossibleShortHand)\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tlabel,\n\t\tname,\n\t\toptions,\n\t\tselectedIndex,\n\t\tvalue,\n\t\tbuttonClass,\n\t\toptionLabelClass,\n\t\toptionMapper,\n\t\ttitle,\n\t\thidePresetLabel,\n\t\tlocale,\n\t\tenableOpacity,\n\t\tenablePresets,\n\t\tenablePicker,\n\t\tenableInput,\n\t\thue,\n\t\topacity,\n\t\tvalueAsRGBA,\n\t\tvalueAsRGBAFullyTransparent,\n\t\tvalueAsRGBAFullyOpaque,\n\t\tvalueAsRGBAFullySaturated,\n\t\tinput,\n\t\tvalueAsHex,\n\t\tsy,\n\t\tsx,\n\t\tupdateColorArray,\n\t\tupdateHue,\n\t\tupdateOpacity,\n\t\thandlePointerDown,\n\t\thandleNudge,\n\t\thandleInput,\n\t\tonchange,\n\t\tsaturation,\n\t\tbrightness,\n\t\tvaluePrev,\n\t\tcurrentInput,\n\t\tisPossibleShortHand,\n\t\tdiv2_binding,\n\t\tfunc,\n\t\tfunc_1\n\t];\n}\n\nclass ColorPicker extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$y,\n\t\t\tcreate_fragment$x,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tlabel: 0,\n\t\t\t\tname: 1,\n\t\t\t\toptions: 2,\n\t\t\t\tselectedIndex: 3,\n\t\t\t\tvalue: 4,\n\t\t\t\tbuttonClass: 5,\n\t\t\t\toptionLabelClass: 6,\n\t\t\t\toptionMapper: 7,\n\t\t\t\tonchange: 31,\n\t\t\t\ttitle: 8,\n\t\t\t\thidePresetLabel: 9,\n\t\t\t\tlocale: 10,\n\t\t\t\tenableOpacity: 11,\n\t\t\t\tenablePresets: 12,\n\t\t\t\tenablePicker: 13,\n\t\t\t\tenableInput: 14\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\n/* src/core/ui/components/ShorthandControl.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$w(ctx) {\n\tlet div;\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*subcontrolLinked*/ ctx[0] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaShorthandControl PinturaShapeStyle\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(dynamiccomponenttree, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*subcontrolLinked*/ 1) dynamiccomponenttree_changes.items = /*subcontrolLinked*/ ctx[0];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t}\n\t};\n}\n\nfunction instance$x($$self, $$props, $$invalidate) {\n\tlet subcontrolProps;\n\tlet subcontrolLinked;\n\tlet { value } = $$props;\n\tlet { onchange } = $$props;\n\tlet { controls = [] } = $$props;\n\n\tconst filterSubcontrolProps = props => {\n\t\tconst { controls, ...filteredProps } = props;\n\t\treturn filteredProps;\n\t};\n\n\t$$self.$$set = $$new_props => {\n\t\t$$invalidate(6, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));\n\t\tif ('value' in $$new_props) $$invalidate(1, value = $$new_props.value);\n\t\tif ('onchange' in $$new_props) $$invalidate(2, onchange = $$new_props.onchange);\n\t\tif ('controls' in $$new_props) $$invalidate(3, controls = $$new_props.controls);\n\t};\n\n\t$$self.$$.update = () => {\n\t\t$$invalidate(4, subcontrolProps = filterSubcontrolProps($$props));\n\n\t\tif ($$self.$$.dirty & /*controls, subcontrolProps, value, onchange*/ 30) {\n\t\t\t$$invalidate(0, subcontrolLinked = controls.map((control, index) => {\n\t\t\t\tconst [id, name, props] = control;\n\n\t\t\t\treturn [\n\t\t\t\t\tid,\n\t\t\t\t\tname,\n\t\t\t\t\t{\n\t\t\t\t\t\t...subcontrolProps,\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tvalue: value[index],\n\t\t\t\t\t\tonchange: controlValue => {\n\t\t\t\t\t\t\tconst newValue = [...value];\n\t\t\t\t\t\t\tnewValue[index] = controlValue;\n\t\t\t\t\t\t\tonchange(newValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t];\n\t\t\t}));\n\t\t}\n\t};\n\n\t$$props = exclude_internal_props($$props);\n\treturn [subcontrolLinked, value, onchange, controls, subcontrolProps];\n}\n\nclass ShorthandControl extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$x, create_fragment$w, safe_not_equal, { value: 1, onchange: 2, controls: 3 });\n\t}\n}\n\n/* src/core/ui/components/DynamicComponentTree.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$4(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[9] = list[i][0];\n\tchild_ctx[0] = list[i][1];\n\tchild_ctx[10] = list[i][2];\n\tchild_ctx[2] = list[i][3];\n\treturn child_ctx;\n}\n\n// (74:4) {:else}\nfunction create_else_block$4(ctx) {\n\tlet switch_instance;\n\tlet switch_instance_anchor;\n\tlet current;\n\tconst switch_instance_spread_levels = [/*props*/ ctx[10]];\n\tvar switch_value = /*ComponentMap*/ ctx[3][/*node*/ ctx[9]] || /*node*/ ctx[9];\n\n\tfunction switch_props(ctx) {\n\t\tlet switch_instance_props = {};\n\n\t\tfor (let i = 0; i < switch_instance_spread_levels.length; i += 1) {\n\t\t\tswitch_instance_props = assign(switch_instance_props, switch_instance_spread_levels[i]);\n\t\t}\n\n\t\treturn { props: switch_instance_props };\n\t}\n\n\tif (switch_value) {\n\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (switch_instance) create_component(switch_instance.$$.fragment);\n\t\t\tswitch_instance_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (switch_instance) mount_component(switch_instance, target, anchor);\n\t\t\tinsert(target, switch_instance_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst switch_instance_changes = (dirty & /*children*/ 4)\n\t\t\t? get_spread_update(switch_instance_spread_levels, [get_spread_object(/*props*/ ctx[10])])\n\t\t\t: {};\n\n\t\t\tif (switch_value !== (switch_value = /*ComponentMap*/ ctx[3][/*node*/ ctx[9]] || /*node*/ ctx[9])) {\n\t\t\t\tif (switch_instance) {\n\t\t\t\t\tgroup_outros();\n\t\t\t\t\tconst old_component = switch_instance;\n\n\t\t\t\t\ttransition_out(old_component.$$.fragment, 1, 0, () => {\n\t\t\t\t\t\tdestroy_component(old_component, 1);\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (switch_value) {\n\t\t\t\t\tswitch_instance = construct_svelte_component(switch_value, switch_props());\n\t\t\t\t\tcreate_component(switch_instance.$$.fragment);\n\t\t\t\t\ttransition_in(switch_instance.$$.fragment, 1);\n\t\t\t\t\tmount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tswitch_instance = null;\n\t\t\t\t}\n\t\t\t} else if (switch_value) {\n\t\t\t\tswitch_instance.$set(switch_instance_changes);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\tif (switch_instance) transition_in(switch_instance.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tif (switch_instance) transition_out(switch_instance.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(switch_instance_anchor);\n\t\t\tif (switch_instance) destroy_component(switch_instance, detaching);\n\t\t}\n\t};\n}\n\n// (64:4) {#if !isComponent(node)}\nfunction create_if_block$b(ctx) {\n\tlet previous_tag = /*node*/ ctx[9];\n\tlet svelte_element_anchor;\n\tlet svelte_element = /*node*/ ctx[9] && create_dynamic_element(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (svelte_element) svelte_element.c();\n\t\t\tsvelte_element_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (svelte_element) svelte_element.m(target, anchor);\n\t\t\tinsert(target, svelte_element_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*node*/ ctx[9]) {\n\t\t\t\tif (!previous_tag) {\n\t\t\t\t\tsvelte_element = create_dynamic_element(ctx);\n\t\t\t\t\tsvelte_element.c();\n\t\t\t\t\tsvelte_element.m(svelte_element_anchor.parentNode, svelte_element_anchor);\n\t\t\t\t} else if (safe_not_equal(previous_tag, /*node*/ ctx[9])) {\n\t\t\t\t\tsvelte_element.d(1);\n\t\t\t\t\tsvelte_element = create_dynamic_element(ctx);\n\t\t\t\t\tsvelte_element.c();\n\t\t\t\t\tsvelte_element.m(svelte_element_anchor.parentNode, svelte_element_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tsvelte_element.p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else if (previous_tag) {\n\t\t\t\tsvelte_element.d(1);\n\t\t\t\tsvelte_element = null;\n\t\t\t}\n\n\t\t\tprevious_tag = /*node*/ ctx[9];\n\t\t},\n\t\ti: noop,\n\t\to(local) {\n\t\t\ttransition_out(svelte_element);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(svelte_element_anchor);\n\t\t\tif (svelte_element) svelte_element.d(detaching);\n\t\t}\n\t};\n}\n\n// (70:38) \nfunction create_if_block_3$5(ctx) {\n\tlet html_tag;\n\tlet raw_value = /*props*/ ctx[10].innerHTML + \"\";\n\tlet html_anchor;\n\n\treturn {\n\t\tc() {\n\t\t\thtml_tag = new HtmlTag(false);\n\t\t\thtml_anchor = empty();\n\t\t\thtml_tag.a = html_anchor;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\thtml_tag.m(raw_value, target, anchor);\n\t\t\tinsert(target, html_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*children*/ 4 && raw_value !== (raw_value = /*props*/ ctx[10].innerHTML + \"\")) html_tag.p(raw_value);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(html_anchor);\n\t\t\tif (detaching) html_tag.d();\n\t\t}\n\t};\n}\n\n// (68:40) \nfunction create_if_block_2$6(ctx) {\n\tlet t_value = /*props*/ ctx[10].textContent + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, t, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*children*/ 4 && t_value !== (t_value = /*props*/ ctx[10].textContent + \"\")) set_data(t, t_value);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(t);\n\t\t}\n\t};\n}\n\n// (66:12) {#if children && children.length}\nfunction create_if_block_1$8(ctx) {\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: {\n\t\t\t\titems: /*children*/ ctx[2],\n\t\t\t\tdiscardEmptyItems: true\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*children*/ 4) dynamiccomponenttree_changes.items = /*children*/ ctx[2];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t}\n\t};\n}\n\n// (65:8) <svelte:element this={node} {...getElementAttributes(props)}>\nfunction create_dynamic_element(ctx) {\n\tlet svelte_element;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet t;\n\tlet current;\n\tconst if_block_creators = [create_if_block_1$8, create_if_block_2$6, create_if_block_3$5];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*children*/ ctx[2] && /*children*/ ctx[2].length) return 0;\n\t\tif (/*props*/ ctx[10].textContent) return 1;\n\t\tif (/*props*/ ctx[10].innerHTML) return 2;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type_1(ctx))) {\n\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\tlet svelte_element_levels = [/*getElementAttributes*/ ctx[4](/*props*/ ctx[10])];\n\tlet svelte_element_data = {};\n\n\tfor (let i = 0; i < svelte_element_levels.length; i += 1) {\n\t\tsvelte_element_data = assign(svelte_element_data, svelte_element_levels[i]);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tsvelte_element = element(/*node*/ ctx[9]);\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\n\t\t\tif ((/-/).test(/*node*/ ctx[9])) {\n\t\t\t\tset_custom_element_data_map(svelte_element, svelte_element_data);\n\t\t\t} else {\n\t\t\t\tset_attributes(svelte_element, svelte_element_data);\n\t\t\t}\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, svelte_element, anchor);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(svelte_element, null);\n\t\t\t}\n\n\t\t\tappend(svelte_element, t);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block) {\n\t\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(svelte_element, t);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsvelte_element_data = get_spread_update(svelte_element_levels, [\n\t\t\t\tdirty & /*children*/ 4 && /*getElementAttributes*/ ctx[4](/*props*/ ctx[10])\n\t\t\t]);\n\n\t\t\tif ((/-/).test(/*node*/ ctx[9])) {\n\t\t\t\tset_custom_element_data_map(svelte_element, svelte_element_data);\n\t\t\t} else {\n\t\t\t\tset_attributes(svelte_element, svelte_element_data);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(svelte_element);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\n// (63:0) {#each children as [node, key, props, children] (key + treeUniqueKey)}\nfunction create_each_block$4(key_2, ctx) {\n\tlet first;\n\tlet show_if;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block$b, create_else_block$4];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (dirty & /*children*/ 4) show_if = null;\n\t\tif (show_if == null) show_if = !!!/*isComponent*/ ctx[5](/*node*/ ctx[9]);\n\t\tif (show_if) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx, -1);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tkey: key_2,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx, dirty);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction create_fragment$v(ctx) {\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet each_1_anchor;\n\tlet current;\n\tlet each_value = /*children*/ ctx[2];\n\tconst get_key = ctx => /*key*/ ctx[0] + /*treeUniqueKey*/ ctx[1];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$4(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*getElementAttributes, children, isComponent, ComponentMap, treeUniqueKey*/ 62) {\n\t\t\t\teach_value = /*children*/ ctx[2];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, outro_and_destroy_block, create_each_block$4, each_1_anchor, get_each_context$4);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$w($$self, $$props, $$invalidate) {\n\tlet treeUniqueKey;\n\tlet children;\n\tlet { items } = $$props;\n\tlet { discardEmptyItems = true } = $$props;\n\tlet { key = '' } = $$props;\n\n\tconst ComponentMap = {\n\t\tButton,\n\t\tImageButton,\n\t\tImageButtonList,\n\t\tDropdown,\n\t\tRadioGroup,\n\t\tInput,\n\t\tPanel: DynamicPanel,\n\t\tProgressIndicator,\n\t\tShapeStyle,\n\t\tToggleSlider,\n\t\tColorPicker,\n\t\tShorthandControl\n\t};\n\n\tconst getElementAttributes = (props = {}) => {\n\t\tconst { textContent, innerHTML, ...attributes } = props;\n\t\treturn attributes;\n\t};\n\n\tconst isComponent = node => !isString(node) || !!ComponentMap[node];\n\n\tconst shouldRenderItem = item => {\n\t\t// don't render falsy items\n\t\tif (!item) return false;\n\n\t\t// get relevant props\n\t\tconst [node, ,props, children = []] = item;\n\n\t\t// if item is component, we always render it\n\t\tif (isComponent(node)) return true;\n\n\t\t// item is tag, we have to check if it has content\n\t\treturn children.some(shouldRenderItem) || props.textContent || props.innerHTML;\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('items' in $$props) $$invalidate(6, items = $$props.items);\n\t\tif ('discardEmptyItems' in $$props) $$invalidate(7, discardEmptyItems = $$props.discardEmptyItems);\n\t\tif ('key' in $$props) $$invalidate(0, key = $$props.key);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*key*/ 1) {\n\t\t\t$$invalidate(1, treeUniqueKey = key);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*items, discardEmptyItems*/ 192) {\n\t\t\t$$invalidate(2, children = (items && discardEmptyItems\n\t\t\t? items.filter(shouldRenderItem)\n\t\t\t: items) || []);\n\t\t}\n\t};\n\n\treturn [\n\t\tkey,\n\t\ttreeUniqueKey,\n\t\tchildren,\n\t\tComponentMap,\n\t\tgetElementAttributes,\n\t\tisComponent,\n\t\titems,\n\t\tdiscardEmptyItems\n\t];\n}\n\nclass DynamicComponentTree_1 extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$w, create_fragment$v, safe_not_equal, { items: 6, discardEmptyItems: 7, key: 0 });\n\t}\n}\n\nvar cursorMoveToEnd = (field) => (field.selectionStart = field.selectionEnd = field.value.length);\n\nlet result$3 = null;\nvar supportsVisualViewport = () => {\n if (result$3 === null) {\n result$3 = isBrowser() && 'visualViewport' in window;\n }\n return result$3;\n};\n\nvar createSoftKeyboardObserver = (cb) => {\n if (!supportsVisualViewport())\n return false;\n const heightNormal = visualViewport.height;\n const testState = () => {\n cb(visualViewport.height < heightNormal ? 'visible' : 'hidden');\n };\n visualViewport.addEventListener('resize', testState);\n return () => visualViewport.removeEventListener('resize', testState);\n};\n\n/* src/core/ui/components/InputForm.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block_1$7(ctx) {\n\tlet button;\n\tlet current;\n\tconst button_spread_levels = [{ onclick: /*oncancel*/ ctx[1] }, /*buttonCancel*/ ctx[3]];\n\tlet button_props = {};\n\n\tfor (let i = 0; i < button_spread_levels.length; i += 1) {\n\t\tbutton_props = assign(button_props, button_spread_levels[i]);\n\t}\n\n\tbutton = new Button({ props: button_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = (dirty[0] & /*oncancel, buttonCancel*/ 10)\n\t\t\t? get_spread_update(button_spread_levels, [\n\t\t\t\t\tdirty[0] & /*oncancel*/ 2 && { onclick: /*oncancel*/ ctx[1] },\n\t\t\t\t\tdirty[0] & /*buttonCancel*/ 8 && get_spread_object(/*buttonCancel*/ ctx[3])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\n// (251:8) {#if buttonConfirm}\nfunction create_if_block$a(ctx) {\n\tlet button;\n\tlet current;\n\n\tconst button_spread_levels = [\n\t\t{ onclick: /*onconfirm*/ ctx[0] },\n\t\t{ class: \"PinturaInputFormButtonConfirm\" },\n\t\t/*buttonConfirm*/ ctx[2]\n\t];\n\n\tlet button_props = {};\n\n\tfor (let i = 0; i < button_spread_levels.length; i += 1) {\n\t\tbutton_props = assign(button_props, button_spread_levels[i]);\n\t}\n\n\tbutton = new Button({ props: button_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = (dirty[0] & /*onconfirm, buttonConfirm*/ 5)\n\t\t\t? get_spread_update(button_spread_levels, [\n\t\t\t\t\tdirty[0] & /*onconfirm*/ 1 && { onclick: /*onconfirm*/ ctx[0] },\n\t\t\t\t\tbutton_spread_levels[1],\n\t\t\t\t\tdirty[0] & /*buttonConfirm*/ 4 && get_spread_object(/*buttonConfirm*/ ctx[2])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$u(ctx) {\n\tlet div2;\n\tlet div1;\n\tlet t0;\n\tlet div0;\n\tlet t1;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block0 = /*buttonCancel*/ ctx[3] && create_if_block_1$7(ctx);\n\tconst default_slot_template = /*#slots*/ ctx[24].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[23], null);\n\tlet if_block1 = /*buttonConfirm*/ ctx[2] && create_if_block$a(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv2 = element(\"div\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(div0, \"class\", \"PinturaInputFormFields\");\n\t\t\tattr(div1, \"class\", \"PinturaInputFormInner\");\n\t\t\tattr(div2, \"class\", \"PinturaInputForm\");\n\t\t\tattr(div2, \"data-layout\", /*layout*/ ctx[4]);\n\t\t\tattr(div2, \"style\", /*style*/ ctx[6]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div2, anchor);\n\t\t\tappend(div2, div1);\n\t\t\tif (if_block0) if_block0.m(div1, null);\n\t\t\tappend(div1, t0);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tappend(div1, t1);\n\t\t\tif (if_block1) if_block1.m(div1, null);\n\t\t\t/*div2_binding*/ ctx[25](div2);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"keydown\", /*handleKeydown*/ ctx[10]),\n\t\t\t\t\tlisten(div2, \"focusin\", /*handleFocusIn*/ ctx[7]),\n\t\t\t\t\tlisten(div2, \"focusout\", /*handleFocusOut*/ ctx[8]),\n\t\t\t\t\tlisten(div2, \"measure\", /*handleMeasure*/ ctx[9]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div2))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*buttonCancel*/ ctx[3]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*buttonCancel*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_1$7(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div1, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty[0] & /*$$scope*/ 8388608)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[23],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[23])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[23], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (/*buttonConfirm*/ ctx[2]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*buttonConfirm*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$a(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div1, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*layout*/ 16) {\n\t\t\t\tattr(div2, \"data-layout\", /*layout*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*style*/ 64) {\n\t\t\t\tattr(div2, \"style\", /*style*/ ctx[6]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(default_slot, local);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(default_slot, local);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div2);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tif (if_block1) if_block1.d();\n\t\t\t/*div2_binding*/ ctx[25](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst panelDelay = 200;\n\nfunction instance$v($$self, $$props, $$invalidate) {\n\tlet panelForcedPosition;\n\tlet computedStyle;\n\tlet shouldStickToKeyboard;\n\tlet style;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { onconfirm } = $$props;\n\tlet { oncancel } = $$props;\n\tlet { autoFocus = true } = $$props;\n\tlet { autoPositionCursor = true } = $$props;\n\tlet { buttonConfirm = undefined } = $$props;\n\tlet { buttonCancel = undefined } = $$props;\n\tlet { layout = 'stack' } = $$props;\n\tlet { parentRect = undefined } = $$props;\n\tlet { align = undefined } = $$props;\n\tlet { justify = undefined } = $$props;\n\tlet { parentMargin = 16 } = $$props;\n\tlet { panelOffset = vectorCreateEmpty() } = $$props;\n\tlet panelVisible = false;\n\tlet panelSize = undefined;\n\tlet panelRevealTimeout = undefined;\n\tlet panelPositionStyle = '';\n\tlet panelOpacityStyle = 0;\n\tlet root;\n\n\tconst getForcedPosition = (parentRect, panelSize, align, justify, margin) => {\n\t\tlet x;\n\t\tlet y;\n\n\t\tif (justify === 'center') {\n\t\t\tx = parentRect.x + parentRect.width * 0.5 - panelSize.width * 0.5;\n\t\t} else if (justify === 'right') {\n\t\t\tx = parentRect.x + parentRect.width - panelSize.width - margin;\n\t\t} else {\n\t\t\tx = parentRect.x + margin;\n\t\t}\n\n\t\tif (align === 'center') {\n\t\t\ty = parentRect.y + parentRect.height * 0.5 - panelSize.height * 0.5;\n\t\t} else if (align === 'bottom') {\n\t\t\ty = parentRect.y + parentRect.height - panelSize.height - margin;\n\t\t} else {\n\t\t\ty = parentRect.y + margin;\n\t\t}\n\n\t\treturn `left:${x}px;top:${y}px;right:auto;bottom:auto;`;\n\t};\n\n\tconst isTextarea = element => (/textarea/i).test(element);\n\n\tconst preventTextAreaScrollingOnIOS = element => {\n\t\t// preventsDefault on textarea events when can no longer scroll up or down in textarea\n\t\tlet lastScreenY;\n\n\t\tconst handleTouchStart = e => lastScreenY = e.touches[0].screenY;\n\n\t\tconst handleTouchMove = e => {\n\t\t\tconst currentScreenY = e.touches[0].screenY;\n\t\t\tconst target = e.target;\n\n\t\t\tif ((/textarea/i).test(target.nodeName)) {\n\t\t\t\t// moving down\n\t\t\t\tif (currentScreenY > lastScreenY) {\n\t\t\t\t\tif (target.scrollTop == 0) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t} else // moving up\n\t\t\t\tif (currentScreenY < lastScreenY) {\n\t\t\t\t\tif (target.scrollTop + target.offsetHeight == target.scrollHeight) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t}\n\n\t\t\t\tlastScreenY = currentScreenY;\n\t\t\t} else {\n\t\t\t\te.preventDefault();\n\t\t\t}\n\t\t};\n\n\t\telement.addEventListener('touchstart', handleTouchStart);\n\t\telement.addEventListener('touchmove', handleTouchMove);\n\n\t\treturn () => {\n\t\t\telement.removeEventListener('touchstart', handleTouchStart);\n\t\t\telement.removeEventListener('touchmove', handleTouchMove);\n\t\t};\n\t};\n\n\tconst focus = () => {\n\t\t// focus field\n\t\tconst field = root.querySelector('input, textarea');\n\n\t\tfield.focus();\n\n\t\t// only select when showing for first time\n\t\tif (panelOpacityStyle >= 1) return;\n\n\t\tfield.select();\n\t};\n\n\tconst show = () => {\n\t\tpanelVisible = true;\n\n\t\t// browser does not support keyboard listener, place modal at top of view\n\t\tif (!unsubSoftKeyboardListener && (isIOS() || isAndroid())) {\n\t\t\t$$invalidate(19, panelPositionStyle = 'top:1em;bottom:auto;');\n\t\t}\n\n\t\t// prevent interacting with the root element\n\t\tif (isIOS()) preventTextAreaScrollingOnIOS(root);\n\n\t\t// reveal\n\t\t$$invalidate(20, panelOpacityStyle = 1);\n\t};\n\n\tconst hide = () => {\n\t\tpanelVisible = false;\n\t\t$$invalidate(20, panelOpacityStyle = 0);\n\t};\n\n\tconst handleSoftKeyboard = keyboardState => {\n\t\t// shouldn't stick, we'll stick it to the top of the viewport so the keyboard doesn't obscure the input field\n\t\tif (!shouldStickToKeyboard) {\n\t\t\t$$invalidate(19, panelPositionStyle = `top: 4.5em; bottom: auto`);\n\t\t\treturn;\n\t\t}\n\n\t\t// no need to continue, already hidden\n\t\tif (keyboardState === 'hidden' && !panelVisible) {\n\t\t\tfocus();\n\t\t\treturn;\n\t\t}\n\n\t\t// gonna update position here\n\t\tclearTimeout(panelRevealTimeout);\n\n\t\tpanelRevealTimeout = undefined;\n\n\t\t// position\n\t\t$$invalidate(19, panelPositionStyle = `top:${visualViewport.height - panelSize.height - panelOffset.y}px`);\n\n\t\t// if a soft keyboard is detected, turn into modal mode\n\t\tif (keyboardState === 'visible') {\n\t\t\t// stick to keyboard\n\t\t\t$$invalidate(5, root.dataset.stick = true, root);\n\n\t\t\t// need to refocus\n\t\t\tfocus();\n\n\t\t\t// place above keyboard\n\t\t\tshow();\n\t\t} else // keyboard is hidden\n\t\t{\n\t\t\thide();\n\t\t}\n\t};\n\n\tlet focusDateTime;\n\n\tconst handleFocusIn = e => {\n\t\tif (!isTextarea(e.target) && !isTextInput(e.target)) return;\n\n\t\t// we need to remember focus time so we can detect unrealistic blur event caused by soft keyboard shenanigans\n\t\tfocusDateTime = Date.now();\n\n\t\t// move cursor\n\t\tif (autoPositionCursor) cursorMoveToEnd(e.target);\n\n\t\t// wait a couple milliseconds\n\t\tclearTimeout(panelRevealTimeout);\n\n\t\tpanelRevealTimeout = setTimeout(show, panelDelay);\n\t};\n\n\tconst handleFocusOut = e => {\n\t\tconst focusDuration = Date.now() - focusDateTime;\n\t\tif (focusDuration > 50) return;\n\n\t\t// unrealistic blur, refocus\n\t\te.stopPropagation();\n\n\t\tfocus();\n\t};\n\n\tconst unsubSoftKeyboardListener = createSoftKeyboardObserver(handleSoftKeyboard);\n\n\tconst handleMeasure = ({ detail }) => {\n\t\t$$invalidate(18, panelSize = {\n\t\t\twidth: detail.width,\n\t\t\theight: detail.height\n\t\t});\n\t};\n\n\tconst handleKeydown = e => {\n\t\tif (e.key === 'Enter') return onconfirm();\n\t\tif (e.key === 'Escape') return oncancel();\n\t};\n\n\tonMount(() => {\n\t\tif (!autoFocus) return;\n\t\tfocus();\n\t});\n\n\tonDestroy(() => {\n\t\tunsubSoftKeyboardListener && unsubSoftKeyboardListener();\n\t});\n\n\tfunction div2_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(5, root);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('onconfirm' in $$props) $$invalidate(0, onconfirm = $$props.onconfirm);\n\t\tif ('oncancel' in $$props) $$invalidate(1, oncancel = $$props.oncancel);\n\t\tif ('autoFocus' in $$props) $$invalidate(11, autoFocus = $$props.autoFocus);\n\t\tif ('autoPositionCursor' in $$props) $$invalidate(12, autoPositionCursor = $$props.autoPositionCursor);\n\t\tif ('buttonConfirm' in $$props) $$invalidate(2, buttonConfirm = $$props.buttonConfirm);\n\t\tif ('buttonCancel' in $$props) $$invalidate(3, buttonCancel = $$props.buttonCancel);\n\t\tif ('layout' in $$props) $$invalidate(4, layout = $$props.layout);\n\t\tif ('parentRect' in $$props) $$invalidate(13, parentRect = $$props.parentRect);\n\t\tif ('align' in $$props) $$invalidate(14, align = $$props.align);\n\t\tif ('justify' in $$props) $$invalidate(15, justify = $$props.justify);\n\t\tif ('parentMargin' in $$props) $$invalidate(16, parentMargin = $$props.parentMargin);\n\t\tif ('panelOffset' in $$props) $$invalidate(17, panelOffset = $$props.panelOffset);\n\t\tif ('$$scope' in $$props) $$invalidate(23, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*parentRect, panelSize, align, justify, parentMargin*/ 385024) {\n\t\t\t$$invalidate(21, panelForcedPosition = parentRect && panelSize\n\t\t\t? getForcedPosition(parentRect, panelSize, align, justify, parentMargin)\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 32) {\n\t\t\t$$invalidate(22, computedStyle = root && getComputedStyle(root));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*computedStyle*/ 4194304) {\n\t\t\tshouldStickToKeyboard = computedStyle && computedStyle.getPropertyValue('--editor-modal') === '1';\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*panelOpacityStyle, panelForcedPosition, panelPositionStyle*/ 3670016) {\n\t\t\t$$invalidate(6, style = `opacity:${panelOpacityStyle};${panelForcedPosition || panelPositionStyle}`);\n\t\t}\n\t};\n\n\treturn [\n\t\tonconfirm,\n\t\toncancel,\n\t\tbuttonConfirm,\n\t\tbuttonCancel,\n\t\tlayout,\n\t\troot,\n\t\tstyle,\n\t\thandleFocusIn,\n\t\thandleFocusOut,\n\t\thandleMeasure,\n\t\thandleKeydown,\n\t\tautoFocus,\n\t\tautoPositionCursor,\n\t\tparentRect,\n\t\talign,\n\t\tjustify,\n\t\tparentMargin,\n\t\tpanelOffset,\n\t\tpanelSize,\n\t\tpanelPositionStyle,\n\t\tpanelOpacityStyle,\n\t\tpanelForcedPosition,\n\t\tcomputedStyle,\n\t\t$$scope,\n\t\tslots,\n\t\tdiv2_binding\n\t];\n}\n\nclass InputForm extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$v,\n\t\t\tcreate_fragment$u,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tonconfirm: 0,\n\t\t\t\toncancel: 1,\n\t\t\t\tautoFocus: 11,\n\t\t\t\tautoPositionCursor: 12,\n\t\t\t\tbuttonConfirm: 2,\n\t\t\t\tbuttonCancel: 3,\n\t\t\t\tlayout: 4,\n\t\t\t\tparentRect: 13,\n\t\t\t\talign: 14,\n\t\t\t\tjustify: 15,\n\t\t\t\tparentMargin: 16,\n\t\t\t\tpanelOffset: 17\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\nvar fastSeek = (video, time) => {\n if (video.fastSeek) {\n video.fastSeek(time);\n }\n video.currentTime = time;\n};\n\n// these are derived stores, we can filter them out\nconst ImagePropsDerived = ['aspectRatio', 'isRotatedSideways', 'flip', 'cropSize'];\n// map descriptors to props\nconst ImageStoreProps = ImageStorePropDescriptors.map(([name]) => name).filter((name) => !ImagePropsDerived.includes(name));\nconst proxy = function (get, set, update) {\n let subscribers = [];\n return {\n set,\n update,\n publish: (value) => {\n subscribers.forEach((cb) => cb(value));\n },\n subscribe: (cb) => {\n subscribers.push(cb);\n get(cb);\n return () => {\n subscribers = subscribers.filter((item) => item !== cb);\n };\n },\n };\n};\nvar createImageProxy = () => {\n let unsubs;\n let image;\n const proxyStores = ImageStoreProps.reduce((prev, curr) => {\n prev[curr] = proxy(\n // getter\n (cb) => {\n // subscribe\n if (!image)\n return cb();\n const unsub = image.stores[curr].subscribe(cb);\n unsub();\n }, \n // setter\n (value) => {\n // set value on actual store if is defined\n if (!image)\n return;\n image.stores[curr].set(value);\n }, \n // updater\n (cb) => {\n if (!image)\n return;\n image.stores[curr].update(cb);\n });\n return prev;\n }, {});\n const update = (newImage) => {\n image = newImage;\n if (unsubs) {\n // remove subscribers\n unsubs.forEach((unsub) => unsub());\n unsubs = undefined;\n }\n if (!newImage) {\n // need to reset load state\n proxyStores['file'].publish(undefined);\n proxyStores['loadState'].publish(undefined);\n return;\n }\n unsubs = ImageStoreProps.map((prop) => newImage.stores[prop].subscribe((value) => {\n proxyStores[prop].publish(value);\n }));\n };\n return {\n update,\n stores: proxyStores,\n destroy: () => {\n if (unsubs)\n unsubs.forEach((unsub) => unsub());\n },\n };\n};\n\nvar createPingRouter = (route, cancel = true) => (e) => {\n if (e.type !== 'ping')\n return;\n if (cancel)\n e.stopPropagation();\n route(e.detail.type, e.detail.data);\n};\n\nvar createPing = (type, data) => new CustomEvent('ping', {\n detail: {\n type,\n data,\n },\n cancelable: true,\n bubbles: true,\n});\n\nvar toKebabCase = (str, abbr) => {\n return (abbr ? stringReplace(str, abbr) : str)\n .replace(/([a-z])([A-Z])/g, '$1-$2')\n .replace(/\\s+/g, '-')\n .toLowerCase();\n};\n\nvar matchMedia$1 = (query, cb) => {\n const mql = matchMedia(query);\n mql.addListener(cb);\n cb(mql);\n return {\n get matches() { return mql.matches; },\n destroy: () => mql.removeListener(cb)\n };\n};\n\nvar mediaQueryStore = (query, formatValue = passthrough) => {\n const { subscribe, set } = writable(undefined);\n const mm = matchMedia$1(query, ({ matches }) => set(formatValue(matches)));\n return {\n subscribe,\n destroy: mm.destroy,\n };\n};\n\nvar canPreventNavSwipe = () => {\n // if not iOS we can't prevent swipe because it probably isn't a thing\n if (!isIOS())\n return false;\n // extract version number\n const matches = navigator.userAgent.match(/OS (\\d+)_(\\d+)_?(\\d+)?/i) || [];\n const [, major, minor] = matches.map((v) => parseInt(v, 10) || 0);\n // is atleast version 13.4+\n return major > 13 || (major === 13 && minor >= 4);\n};\n\n// @ts-ignore\nvar historyCreate = (getState, setState) => {\n // set up pub/sub for history object\n const { sub, pub } = pubsub();\n // current history state\n const entries = [];\n const index = writable(0);\n const subs = [];\n const updateSubs = () => subs.forEach((cb) => cb({ index: get_store_value(index), length: entries.length }));\n const history = {\n get index() {\n return get_store_value(index);\n },\n set index(i) {\n // validate new index\n i = Number.isInteger(i) ? i : 0;\n i = clamp(i, 0, entries.length - 1);\n // remember\n index.set(i);\n setState(entries[history.index]);\n // update subs\n updateSubs();\n },\n get state() {\n return entries[entries.length - 1];\n },\n length() {\n return entries.length;\n },\n undo() {\n const newIndex = history.index--;\n pub('undo', newIndex);\n return newIndex;\n },\n redo() {\n const newIndex = history.index++;\n pub('redo', history.index);\n return newIndex;\n },\n revert() {\n entries.length = 1; // retain first state\n history.index = 0;\n pub('revert');\n },\n write(state) {\n // write history entry\n if (state) {\n setState({\n ...getState(),\n ...state,\n });\n }\n const newState = getState();\n const lastState = entries[entries.length - 1];\n // don't update if new state isn't different\n if (JSON.stringify(newState) === JSON.stringify(lastState))\n return;\n // reset length to current index\n entries.length = history.index + 1;\n // add new entry\n entries.push(newState);\n // move pointer to last added index\n index.set(entries.length - 1);\n updateSubs();\n pub('writehistory');\n },\n set(state = {}) {\n // set clears all entries\n entries.length = 0;\n history.index = 0;\n // set new entries\n const newStateEntries = !Array.isArray(state) ? [state] : state;\n // add new entries\n entries.push(...newStateEntries);\n // move pointer to last added index\n history.index = entries.length - 1;\n },\n get() {\n return [...entries];\n },\n subscribe(cb) {\n subs.push(cb);\n cb({ index: history.index, length: entries.length });\n return () => subs.splice(subs.indexOf(cb), 1);\n },\n on: sub,\n };\n return history;\n};\n\nvar imageBitmapToImageData = async (imageBitmap) => canvasToImageData(await imageDataToCanvas(imageBitmap));\n\nvar isVideoFile = (blob) => /video/.test(blob.type);\n\n// TODO: VIDEO cleanup?\nconst videoToImageData = (file) => new Promise((resolve, reject) => {\n const video = h('video');\n video.onseeked = () => {\n const frame = h('canvas');\n getVideoElementSize(video).then(({ width, height }) => {\n frame.width = width;\n frame.height = height;\n const ctx = frame.getContext('2d', {\n // we're going to read from this canvas, no need to hardware accelerate it\n willReadFrequently: true,\n });\n const drawFrame = () => {\n ctx.drawImage(video, 0, 0, frame.width, frame.height);\n const imageData = ctx.getImageData(0, 0, frame.width, frame.height);\n releaseCanvas(frame);\n URL.revokeObjectURL(video.src);\n resolve(imageData);\n };\n // if we don't use setTimeout for safari sometimes it doesn't draw the frame\n isSafari() ? setTimeout(drawFrame, 16) : drawFrame();\n });\n };\n video.onloadeddata = () => {\n // if we use onloadedmetadata safari doesn't render the frame\n video.currentTime = 0;\n };\n video.onerror = (e) => {\n console.error(e);\n reject(video.error);\n };\n video.src = URL.createObjectURL(file);\n video.load(); // needed to make video show up on iOS\n});\nvar blobToImageBitmap = (file, ImageOrienter, canvasMemoryLimit) => new Promise((resolve, reject) => {\n (async () => {\n if (isVideoFile(file))\n resolve(await videoToImageData(file));\n // get orientation of image, should return 1 for normal orientation\n const orientation = await ImageOrienter.read(file);\n // helper method to apply orientation fix if needed\n const toImageData = (file) => blobToImageData(file, canvasMemoryLimit)\n .then((imageData) => ImageOrienter.apply(imageData, orientation))\n .then(resolve)\n .catch(reject);\n // if cannot create image bitmaps in worker\n // Safari 15 cannot correctly apply orientation, also it will choke on very big images\n // when trying to createImageBitmap in thread, so lets just do it on the main thread\n // we'll ignore Safari and iOS for now\n if (isSVGFile(file) || !canCreateImageBitmap() || isSafari() || isIOS())\n return toImageData(file);\n // create image bitmap in thread\n let imageBitmap;\n try {\n imageBitmap = await thread((file, done) => createImageBitmap(file)\n .then((bitmap) => done(null, bitmap))\n .catch(done), [file]);\n }\n catch (err) {\n // fails silently on purpose, we'll try to turn the blob into image data in the main thread\n // console.error(err);\n }\n // no bitmap returned, something went wrong in `createImageBitmap` logic\n if (!imageBitmap || !imageBitmap.width)\n return toImageData(file);\n // if the browser can't orient images, we need to correct the orientation now\n if (!(await canOrientImages()))\n return resolve(ImageOrienter.apply(imageBitmap, orientation));\n // need to convert so oriented image can be used as WebGL texture\n // converting ImageBitmap to <canvas> (and then optionally to image data) fixes a Chrome render bug where the\n // ImageBitmap when used in WebGL doesn't render in the correct orientation\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1082451&q=orientation%20imagebitmap&can=2\n if (isChrome() && orientation > 1)\n return resolve(await imageBitmapToImageData(imageBitmap));\n // yay we got our bitmap\n resolve(imageBitmap);\n })();\n});\n\nvar imageDataContain = (imageData, size) => new Promise(async (resolve) => {\n if (imageData.width < size.width && imageData.height < size.height)\n return resolve(imageData);\n const scalar = Math.min(size.width / imageData.width, size.height / imageData.height);\n // scale\n const targetWidth = scalar * imageData.width;\n const targetHeight = scalar * imageData.height;\n const canvas = h('canvas', {\n width: targetWidth,\n height: targetHeight,\n });\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n const data = isImageData(imageData)\n ? (await imageDataToCanvas(imageData))\n : imageData;\n ctx.drawImage(data, 0, 0, targetWidth, targetHeight);\n resolve(canvasToImageData(canvas));\n});\n\nlet result$2 = null;\nvar supportsWebGL = () => {\n if (result$2 === null) {\n let canvas = h('canvas');\n result$2 = !!getWebGLContext(canvas);\n releaseCanvas(canvas);\n canvas = undefined;\n }\n return result$2;\n};\n\nvar isBitmap = (file) => /^image/.test(file.type) && !/svg/.test(file.type);\n\n// @ts-ignore\nconst COLOR_MATRIX_IDENTITY = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];\nconst SPRING_PROPS = { precision: 0.0001 };\nconst SPRING_PROPS_FRACTION = { precision: SPRING_PROPS.precision * 0.01 };\nvar createImage = (data, size, options = {}) => {\n const { resize: resizeInitial = 1, opacity: opacityInitial = 0 } = options;\n const stores = {\n // interface\n opacity: [spring(opacityInitial, { ...SPRING_PROPS, stiffness: 0.1 }), passthrough],\n resize: [spring(resizeInitial, { ...SPRING_PROPS, stiffness: 0.1 }), passthrough],\n // transforms\n translation: [spring(undefined, SPRING_PROPS), passthrough],\n rotation: [spring(undefined, SPRING_PROPS_FRACTION), passthrough],\n origin: [spring(undefined, SPRING_PROPS), passthrough],\n scale: [spring(undefined, SPRING_PROPS_FRACTION), passthrough],\n gamma: [spring(undefined, SPRING_PROPS_FRACTION), (v) => v || 1],\n vignette: [spring(undefined, SPRING_PROPS_FRACTION), (v) => v || 0],\n colorMatrix: [\n spring([...COLOR_MATRIX_IDENTITY], SPRING_PROPS),\n (v) => v || [...COLOR_MATRIX_IDENTITY],\n ],\n convolutionMatrix: [writable(undefined), (v) => (v && v.clarity) || undefined],\n backgroundColor: [\n spring(undefined, SPRING_PROPS),\n (newValue, currentValue, setHard) => {\n if (!Array.isArray(newValue))\n return undefined;\n // makes sure\n if (Array.isArray(currentValue)) {\n const newColor = [...newValue];\n // if going from transparent to opaque\n if (currentValue[3] === 0) {\n newColor[3] = 0;\n setHard(newColor);\n }\n // if going from opaque to transparent\n else if (newColor[3] === 0) {\n newValue = [...currentValue];\n newValue[3] = 0;\n }\n }\n return newValue;\n },\n ],\n backgroundImage: [writable(undefined), passthrough],\n };\n // shortcut to quickly get all stores from the stores object\n const storeEntries = Object.entries(stores).map(([key, value]) => [key, value[0]]);\n const storeArray = storeEntries.map(([, store]) => store);\n // create quick accessors to store value setter functions, best to do ones on creation instead of on each update\n const storeSetters = Object.entries(stores).reduce((prev, [key, value]) => {\n const [store, getValue] = value;\n prev[key] = (value, opts) => store.set(getValue(value, stateCache[key], (value) => {\n store.set(value, { hard: true });\n }), opts);\n return prev;\n }, {});\n // holds current derived state so can be easily read from from the outside\n let stateCache;\n //\n const state = derived(storeArray, (storeValues) => {\n // get new state\n stateCache = storeValues.reduce((calculatedState, value, index) => {\n const key = storeEntries[index][0];\n calculatedState[key] = value;\n return calculatedState;\n }, {});\n // set base image props\n stateCache.data = data;\n stateCache.size = size;\n // apply resize modifier (is at index 1 of storeValues)\n stateCache.scale *= storeValues[1];\n return stateCache;\n });\n state.get = () => stateCache;\n state.set = (props, animate) => {\n const opts = { hard: !animate };\n Object.entries(props).forEach(([key, value]) => {\n if (!storeSetters[key])\n return;\n storeSetters[key](value, opts);\n });\n };\n return state;\n};\n\nvar storeList = () => {\n const stores = [];\n const subscribers = [];\n const state = [];\n const storeDidUpdate = (store, value) => {\n const index = stores.indexOf(store);\n if (index < 0)\n return;\n state[index] = value;\n triggerUpdate();\n };\n const triggerUpdate = () => {\n subscribers.forEach((fn) => fn(state));\n };\n const addStore = (store) => {\n store.unsub = store.subscribe((value) => storeDidUpdate(store, value));\n triggerUpdate();\n };\n const unshift = (store) => {\n stores.unshift(store);\n addStore(store);\n };\n const push = (store) => {\n stores.push(store);\n addStore(store);\n };\n const clear = () => {\n stores.forEach((store) => store.unsub());\n stores.length = 0;\n state.length = 0;\n };\n const remove = (store) => {\n store.unsub();\n const index = stores.indexOf(store);\n stores.splice(index, 1);\n state.splice(index, 1);\n };\n const subscribe = (fn) => {\n subscribers.push(fn);\n fn(state);\n return () => {\n subscribers.splice(subscribers.indexOf(fn), 1);\n };\n };\n const forEach = (fn) => stores.forEach(fn);\n const filter = (fn) => stores.filter(fn);\n const get = (index) => stores[index];\n return {\n get length() {\n return stores.length;\n },\n clear,\n unshift,\n get,\n push,\n remove,\n forEach,\n filter,\n subscribe,\n };\n};\n\nvar isDarkColor = (color) => color[0] < 0.25 && color[1] < 0.25 && color[2] < 0.25;\n\nvar browse = (options = {}) => new Promise((resolve) => {\n // can now pass options\n const { accept = 'image/*' } = options;\n // create file input box\n const fileInput = h('input', {\n style: 'position:absolute;visibility:hidden;width:0;height:0;',\n type: 'file',\n accept,\n });\n // listen for file changes on input\n const handleFileChange = () => {\n // get file, if one was selected\n const [file] = fileInput.files;\n // clean up\n fileInput.parentNode && fileInput.remove();\n fileInput.removeEventListener('change', handleFileChange);\n // done\n resolve(file);\n };\n // listen for changes\n fileInput.addEventListener('change', handleFileChange);\n // need to attach to DOM for Safari 15+\n isIOS() && document.body.append(fileInput);\n // open browse window\n fileInput.click();\n // there is no way to reliably detect \"cancel\" event on browsers so we'll leave it be for now\n});\n\nvar runSafe = (cb) => {\n try {\n return cb();\n }\n catch (err) {\n console.error(err);\n }\n};\n\nvar getRangeCenter = ([min, max]) => min + (max - min) * 0.5;\n\nvar toPercentageNumber = (v) => Math.round(v * 100);\n\nvar getEventPositionInViewport = (e) => vectorCreate(e.clientX, e.clientY);\n\nvar getEventPositionInStage = (e, viewOffset, stageOffset) => {\n const positionInViewport = getEventPositionInViewport(e);\n return vectorSubtract(vectorSubtract(positionInViewport, viewOffset), stageOffset);\n};\n\n/* src/core/ui/components/CanvasPanAndZoom.svelte generated by Svelte v3.52.0 */\n\nfunction instance$u($$self, $$props, $$invalidate) {\n\tlet canZoom;\n\tlet canPan;\n\tlet imageFitsOnStage;\n\tlet zoomLevels;\n\tlet zoomMin;\n\tlet zoomMax;\n\tlet zoomLevelSelectedIndex;\n\tlet zoomLevelCurrent;\n\tlet zoomLevelLabel;\n\tlet $imageSelectionZoom;\n\tlet $imageSelectionPan;\n\tlet $imageSelectionStageFitScalar;\n\tlet $imagePreviewUpscale;\n\tlet $stageRect;\n\tlet $rootRect;\n\tlet $imageSelectionRect;\n\tlet $isInteracting;\n\tlet $stageScalar;\n\tlet $isAnimated;\n\tlet $imageSelectionStoredState;\n\tlet { root } = $$props;\n\tlet { locale } = $$props;\n\tlet { stores } = $$props;\n\tlet { allowPan = true } = $$props;\n\tlet { allowZoom = true } = $$props;\n\tlet { enablePan = true } = $$props;\n\tlet { enableZoom = true } = $$props;\n\tlet { enableZoomControls = enableZoom } = $$props;\n\tlet { enableZoomInput = true } = $$props;\n\tlet { enablePanInput = true } = $$props;\n\tlet { enablePanLimit = true } = $$props;\n\tlet { panLimitGutterScalar = 0 } = $$props;\n\tlet { zoomOptions = [0.25, 0.5, 1, 1.25, 1.5, 2, 3, 4, 6, 8, 16] } = $$props;\n\tlet { zoomAdjustStep = 0.25 } = $$props;\n\tlet { zoomAdjustFactor = 0.1 } = $$props;\n\tlet { zoomAdjustWheelFactor = 1 } = $$props;\n\tlet { elasticity = 5 } = $$props;\n\tlet { imageSelectionRectCentered = undefined } = $$props;\n\tlet { imageSelectionRectScalar = undefined } = $$props;\n\tlet { zoomLevel = null } = $$props;\n\tlet { zoomControls } = $$props;\n\tlet { zoomMultiTouching = false } = $$props;\n\tconst { isAnimated, isInteracting, rootRect, stageRect, stageScalar, imageSelectionPan, imageSelectionZoom, imageSelectionStageFitScalar, imageSelectionRect, imageSelectionStoredState, imagePreviewUpscale } = stores;\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(68, $isAnimated = value));\n\tcomponent_subscribe($$self, isInteracting, value => $$invalidate(67, $isInteracting = value));\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(65, $rootRect = value));\n\tcomponent_subscribe($$self, stageRect, value => $$invalidate(64, $stageRect = value));\n\tcomponent_subscribe($$self, stageScalar, value => $$invalidate(45, $stageScalar = value));\n\tcomponent_subscribe($$self, imageSelectionPan, value => $$invalidate(63, $imageSelectionPan = value));\n\tcomponent_subscribe($$self, imageSelectionZoom, value => $$invalidate(42, $imageSelectionZoom = value));\n\tcomponent_subscribe($$self, imageSelectionStageFitScalar, value => $$invalidate(43, $imageSelectionStageFitScalar = value));\n\tcomponent_subscribe($$self, imageSelectionRect, value => $$invalidate(66, $imageSelectionRect = value));\n\tcomponent_subscribe($$self, imageSelectionStoredState, value => $$invalidate(69, $imageSelectionStoredState = value));\n\tcomponent_subscribe($$self, imagePreviewUpscale, value => $$invalidate(44, $imagePreviewUpscale = value));\n\n\t// to toggle mouse cursor\n\tlet isPanning = false;\n\n\tlet panOrigin = undefined;\n\tlet zoomOrigin = undefined;\n\tlet isPanningToCenter = undefined;\n\tlet currentDistanceToCenter = undefined;\n\n\tconst shouldStartInteraction = e => {\n\t\t// currently active stage panel\n\t\tconst main = root.querySelector('.PinturaMain > .PinturaUtilMain') || root.querySelector('div[tabindex=\"0\"] .PinturaUtilMain');\n\n\t\t// somehow main not found\n\t\tif (!main) return false;\n\n\t\t// only handle if is interaction in main stage\n\t\tif (!main.contains(e.target)) return false;\n\n\t\t// never on text fields\n\t\tif (isTextField(e.target)) return false;\n\n\t\treturn true;\n\t};\n\n\tconst storePanAndZoom = (options = {}) => {\n\t\tconst { pan = $imageSelectionPan, zoom = $imageSelectionZoom } = options;\n\t\tset_store_value(imageSelectionStoredState, $imageSelectionStoredState = { translation: pan, zoom }, $imageSelectionStoredState);\n\t};\n\n\tconst isImageSelectionPanCentered = () => $imageSelectionPan && $imageSelectionPan.x === 0 && $imageSelectionPan.y === 0;\n\n\tconst resetPanToCenter = () => {\n\t\tif (isImageSelectionPanCentered()) return;\n\t\tset_store_value(imageSelectionPan, $imageSelectionPan = vectorCreateEmpty(), $imageSelectionPan);\n\t};\n\n\tconst restorePanAndZoom = () => {\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = enableZoom ? $imageSelectionStoredState.zoom : undefined, $imageSelectionZoom);\n\n\t\tset_store_value(\n\t\t\timageSelectionPan,\n\t\t\t$imageSelectionPan = enablePan\n\t\t\t? vectorClone($imageSelectionStoredState.translation)\n\t\t\t: isImageSelectionPanCentered()\n\t\t\t\t? $imageSelectionPan\n\t\t\t\t: vectorCreateEmpty(),\n\t\t\t$imageSelectionPan\n\t\t);\n\n\t\tzoomAdjust.set($imageSelectionZoom);\n\t};\n\n\tconst resetPanAndZoom = () => {\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = undefined, $imageSelectionZoom);\n\t\tresetPanToCenter();\n\t\tzoomAdjust.set(undefined, { hard: true });\n\t};\n\n\tconst snapToCenter = () => {\n\t\tresetPanAndZoom();\n\t\tstorePanAndZoom();\n\t};\n\n\t// this smoothens updates to the zoom level\n\tconst zoomAdjust = spring(undefined, { precision: 0.01 });\n\n\tzoomAdjust.subscribe(newValue => {\n\t\t// no value yet, wait\n\t\tif (newValue === undefined) {\n\t\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = undefined, $imageSelectionZoom);\n\t\t\tif (!isImageSelectionPanCentered()) set_store_value(imageSelectionPan, $imageSelectionPan = vectorCreateEmpty(), $imageSelectionPan);\n\t\t\treturn;\n\t\t}\n\n\t\tconst currentValue = $imageSelectionZoom;\n\n\t\tif (newValue <= 1) {\n\t\t\tif (!isImageSelectionPanCentered()) set_store_value(imageSelectionPan, $imageSelectionPan = vectorCreateEmpty(), $imageSelectionPan);\n\t\t} else if (newValue <= currentValue) {\n\t\t\tset_store_value(imageSelectionPan, $imageSelectionPan = vectorMultiply($imageSelectionPan, 0.8), $imageSelectionPan);\n\t\t}\n\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = newValue, $imageSelectionZoom);\n\t});\n\n\tconst updateZoomAdjust = update => {\n\t\tzoomAdjust.update(currentValue => {\n\t\t\tconst newValue = update(currentValue || $imageSelectionStageFitScalar);\n\n\t\t\t// remember new value\n\t\t\tstorePanAndZoom({ zoom: newValue });\n\n\t\t\treturn newValue;\n\t\t});\n\t};\n\n\tconst setZoomAdjust = newValue => {\n\t\tif (!newValue) {\n\t\t\tnewValue = undefined;\n\t\t\tzoomAdjust.set(undefined, { hard: true });\n\t\t} else {\n\t\t\tzoomAdjust.set(newValue, { hard: $isAnimated === false });\n\t\t}\n\n\t\t// update zoom\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = newValue, $imageSelectionZoom);\n\n\t\t// remember\n\t\tstorePanAndZoom({ zoom: newValue });\n\t};\n\n\tconst getSelectedZoomLevel = (levels, currentScalar) => levels.findIndex(level => level === currentScalar);\n\n\t//\n\t// interaction\n\t//\n\tconst getPanLimitedTranslation = (pan, zoom) => {\n\t\tconst scalar = imageSelectionRectScalar * zoom;\n\n\t\t// this is the current image centered on the stage which we'll use as drag bounds\n\t\tconst safeRect = { ...imageSelectionRectCentered };\n\n\t\t// apply gutter\n\t\tconst gutterScalar = 1.0 - clamp(panLimitGutterScalar, 0.0, 1.0);\n\n\t\trectScale$1(safeRect, scalar < gutterScalar ? scalar : gutterScalar);\n\n\t\t// here we need to\n\t\tconst nextRect = { ...imageSelectionRectCentered };\n\n\t\trectScale$1(nextRect, scalar);\n\t\trectTranslate$1(nextRect, pan);\n\t\tconst nextRectLimited = { ...nextRect };\n\t\tif (nextRect.x > safeRect.x) nextRectLimited.x = safeRect.x;\n\t\tif (nextRect.y > safeRect.y) nextRectLimited.y = safeRect.y;\n\t\tif (nextRect.x + nextRect.width < safeRect.x + safeRect.width) nextRectLimited.x = safeRect.x + safeRect.width - nextRect.width;\n\t\tif (nextRect.y + nextRect.height < safeRect.y + safeRect.height) nextRectLimited.y = safeRect.y + safeRect.height - nextRect.height;\n\t\treturn vectorSubtract(rectCenter(nextRectLimited), rectCenter(safeRect));\n\t};\n\n\tconst manipulatePan = ({ translation, zoom = 1, elastify = true }) => {\n\t\tif (!panOrigin) return;\n\t\tlet panTranslation = translation;\n\t\tconst nextPan = vectorCreate(panOrigin.x + panTranslation.x, panOrigin.y + panTranslation.y);\n\t\tif (!enablePanLimit) return nextPan;\n\t\tconst nextPanLimited = getPanLimitedTranslation(nextPan, zoom);\n\n\t\treturn elastify\n\t\t? elastifyVectors(nextPanLimited, nextPan, elasticity)\n\t\t: nextPanLimited;\n\t};\n\n\tlet didPan;\n\tlet lastDragInteraction;\n\n\tconst handleDragStart = () => {\n\t\tlastDragInteraction = undefined;\n\n\t\t// set to true so updates aren't animated\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\n\t\t// set to true so grab cursor is shown\n\t\t$$invalidate(33, isPanning = enablePanInput);\n\n\t\t// did interact with canvas\n\t\tdidPan = false;\n\n\t\t// we need to determine if panning to center so we can snap zoom\n\t\tisPanningToCenter = false;\n\n\t\t// so we can correctly apply drag translation\n\t\tpanOrigin = { ...$imageSelectionPan };\n\n\t\t// so we can correctly apply zoom adjustment\n\t\tzoomOrigin = $imagePreviewUpscale\n\t\t? $imageSelectionZoom || $imageSelectionStageFitScalar\n\t\t: imageFitsOnStage\n\t\t\t? $imageSelectionZoom || 1\n\t\t\t: $imageSelectionZoom || $imageSelectionStageFitScalar;\n\t};\n\n\tconst handleDrag = e => {\n\t\tconst { scalar, translation, isMultiTouching } = e.detail;\n\t\tif (!panOrigin || !(isMultiTouching || enablePanInput)) return;\n\n\t\t// TODO: research why this is needed. this makes movement of image better align with touch,\n\t\t// misalignment problem originates in `interactable`\n\t\t// this \"fix\" works here because we can only multitouch, it doesn't work in crop util because user can switch between single and multi input\n\t\tisMultiTouching && vectorMultiply(translation, 0.5);\n\n\t\tif (enablePanInput || isMultiTouching) didPan = true;\n\n\t\t// set to true when multiple fingers detected\n\t\tif (!zoomMultiTouching) $$invalidate(12, zoomMultiTouching = isMultiTouching);\n\n\t\t// next zoom\n\t\tconst nextZoom = canZoom\n\t\t? clamp(zoomOrigin * scalar, zoomMin, zoomMax)\n\t\t: 1;\n\n\t\t// need this info to determine if we're panning to center\n\t\tconst nextPan = manipulatePan({\n\t\t\ttranslation,\n\t\t\tzoom: nextZoom,\n\t\t\telastify: true\n\t\t});\n\n\t\t// calculate if is panning to center, we'll look at the result when user is done interacting with the canvas\n\t\tconst nextDistanceToCenter = vectorLength(nextPan);\n\n\t\tconst currentPan = $imageSelectionPan;\n\t\tcurrentDistanceToCenter = vectorLength(currentPan);\n\t\tisPanningToCenter = nextDistanceToCenter < currentDistanceToCenter;\n\n\t\t// assign new pan/zoom values\n\t\tif (canZoom) imageSelectionZoom.set(nextZoom);\n\n\t\timageSelectionPan.set(nextPan);\n\n\t\tlastDragInteraction = zoomMultiTouching && {\n\t\t\ttranslation: e.detail.translation,\n\t\t\tscalar\n\t\t};\n\t};\n\n\tconst handleDragRelease = e => {\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\t\t$$invalidate(33, isPanning = false);\n\t\t$$invalidate(12, zoomMultiTouching = false);\n\n\t\t// if is panning to center snap to center\n\t\tif (isPanningToCenter && currentDistanceToCenter < 50) {\n\t\t\t// stop drag action\n\t\t\tpanOrigin = undefined;\n\n\t\t\tzoomOrigin = undefined;\n\t\t\timageSelectionPan.set(vectorCreateEmpty());\n\t\t}\n\t};\n\n\tconst handleDragEnd = e => {\n\t\t// done interacting\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// clean up\n\t\t$$invalidate(33, isPanning = false);\n\n\t\t$$invalidate(12, zoomMultiTouching = false);\n\n\t\t// to make sure interaction is turned off before pan is updated we set it on next tick\n\t\t// this is a bit of a hack.\n\t\t// TODO: look into queueing interaction and ui updates so we can reliably disable/enable isInteracting and then run ui updates so they're properly animated\n\t\tPromise.resolve().then(() => {\n\t\t\tif (didPan && panOrigin) {\n\t\t\t\tconst interaction = lastDragInteraction || e.detail;\n\n\t\t\t\t// next zoom\n\t\t\t\tconst nextZoom = canZoom\n\t\t\t\t? clamp(zoomOrigin * interaction.scalar, zoomMin, zoomMax)\n\t\t\t\t: 1;\n\n\t\t\t\t// snap back to center if needed\n\t\t\t\tconst nextPan = manipulatePan({\n\t\t\t\t\telastify: false,\n\t\t\t\t\ttranslation: interaction.translation,\n\t\t\t\t\tzoom: nextZoom\n\t\t\t\t});\n\n\t\t\t\timageSelectionPan.set(nextPan);\n\t\t\t}\n\n\t\t\tpanOrigin = undefined;\n\t\t\tzoomOrigin = undefined;\n\n\t\t\t// reset zoom\n\t\t\tif (enablePanInput && e.detail.isDoubleTap) snapToCenter();\n\n\t\t\t// store for future\n\t\t\tstorePanAndZoom();\n\t\t});\n\t};\n\n\t// wheel input\n\tlet lastWheelEventTimestamp = Date.now();\n\n\tlet wheelSnapZoomTimer;\n\tlet wheelFastZoomCounter = 0;\n\tlet wheelFastZoomShouldHandle = false;\n\tlet didSnap = false;\n\n\tconst handleWheel = e => {\n\t\t// determine if wheel position is over image, else ignore\n\t\tif (!shouldStartInteraction(e)) return;\n\n\t\t// don't run default actions, prevent other actions from running\n\t\te.preventDefault();\n\n\t\te.stopPropagation();\n\t\tif (didSnap) return;\n\t\tclearTimeout(wheelSnapZoomTimer);\n\n\t\t// convert wheel delta to scalar\n\t\tconst wheelDelta = getWheelDelta(e);\n\n\t\t// for determining if fast zooming\n\t\tconst now = Date.now();\n\n\t\tconst wheelInterval = now - lastWheelEventTimestamp;\n\t\tlastWheelEventTimestamp = now;\n\t\tconst isZoomingFast = Math.abs(wheelDelta / wheelInterval) > 0.2;\n\t\twheelFastZoomCounter = isZoomingFast ? wheelFastZoomCounter + 1 : 0;\n\t\tconst delta = wheelDelta * -1 * zoomAdjustWheelFactor;\n\t\tconst scalar = 1 + delta / (isZoomingFast ? 50 : 100);\n\t\tconst stageWheelPosition = getEventPositionInStage(e, $rootRect, $stageRect);\n\n\t\t// update zoom\n\t\tupdateZoom(stageWheelPosition, scalar, { isZoomingFast });\n\t};\n\n\tconst updateZoom = (stagePosition, scalar, { isZoomingFast }) => {\n\t\tconst currentZoom = $imagePreviewUpscale\n\t\t? $imageSelectionZoom || $imageSelectionStageFitScalar\n\t\t: imageFitsOnStage\n\t\t\t? $imageSelectionZoom || 1\n\t\t\t: $imageSelectionZoom || $imageSelectionStageFitScalar;\n\n\t\tconst nextZoom = currentZoom * scalar;\n\t\tconst newTranslation = vectorCreateEmpty();\n\t\tconst currentTranslation = $imageSelectionPan;\n\n\t\tconst zoomCenter = $imagePreviewUpscale\n\t\t? $imageSelectionStageFitScalar\n\t\t: imageFitsOnStage ? 1 : $imageSelectionStageFitScalar;\n\n\t\tconst nextZoomDistanceToCenter = Math.abs(nextZoom - zoomCenter);\n\n\t\t// zoom state\n\t\tconst isZoomedIn = currentZoom > zoomCenter;\n\n\t\tconst isZoomedOut = currentZoom < zoomCenter;\n\t\tconst isZoomingIn = nextZoom > currentZoom;\n\t\tconst isZoomingOut = nextZoom < currentZoom;\n\t\tconst isZoomingToCenter = isZoomedIn && isZoomingOut || isZoomedOut && isZoomingIn;\n\t\tconst isZoomingFlick = wheelFastZoomCounter >= 5;\n\n\t\tif (!isZoomingFast) {\n\t\t\twheelFastZoomShouldHandle = false;\n\t\t}\n\n\t\tif (wheelFastZoomCounter > 0 && !wheelFastZoomShouldHandle) {\n\t\t\twheelFastZoomShouldHandle = isZoomingToCenter;\n\t\t}\n\n\t\t// quick snap to place\n\t\tif (isZoomingFlick && wheelFastZoomShouldHandle) {\n\t\t\tsnapToCenter();\n\t\t\tdidSnap = true;\n\n\t\t\tsetTimeout(\n\t\t\t\t() => {\n\t\t\t\t\tdidSnap = false;\n\t\t\t\t},\n\t\t\t\t100\n\t\t\t);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// stop here, if flicks wheel we're not going to handle it\n\t\tif (isZoomingFlick) return;\n\n\t\t// snap when positioned very close to center\n\t\tif (!isZoomingFast && isZoomingToCenter && nextZoomDistanceToCenter <= 0.05) {\n\t\t\twheelSnapZoomTimer = setTimeout(\n\t\t\t\t() => {\n\t\t\t\t\tsnapToCenter();\n\t\t\t\t},\n\t\t\t\t250\n\t\t\t);\n\t\t}\n\n\t\t// update zoom\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = clamp(nextZoom, zoomMin, zoomMax), $imageSelectionZoom);\n\n\t\t// get wheel position so we can zoom to specific area of image\n\t\tconst originSelectionRect = rectClone$1($imageSelectionRect);\n\n\t\trectScale$1(originSelectionRect, currentZoom);\n\t\trectTranslate$1(originSelectionRect, currentTranslation);\n\t\tconst originSelectionRectCenter = rectCenter(originSelectionRect);\n\t\tconst zoomedSelectionRect = rectClone$1(originSelectionRect);\n\t\trectScale$1(zoomedSelectionRect, 1 + ($imageSelectionZoom - currentZoom), stagePosition);\n\t\tconst zoomedSelectionRectCenter = rectCenter(zoomedSelectionRect);\n\t\tconst rectTranslation = vectorDivide(vectorSubtract(zoomedSelectionRectCenter, originSelectionRectCenter), currentZoom);\n\t\tvectorUpdate(newTranslation, currentTranslation.x + rectTranslation.x, currentTranslation.y + rectTranslation.y);\n\n\t\t// if zooming out fast move to center\n\t\tif (isZoomingOut && isZoomingFast) {\n\t\t\tset_store_value(imageSelectionPan, $imageSelectionPan = vectorMultiply(vectorClone($imageSelectionPan), 0.85), $imageSelectionPan);\n\t\t} else {\n\t\t\tset_store_value(imageSelectionPan, $imageSelectionPan = getPanLimitedTranslation(newTranslation, currentZoom), $imageSelectionPan);\n\t\t}\n\n\t\t// store for future\n\t\tstorePanAndZoom();\n\t};\n\n\t// toggle listeners\n\tconst getListenerFunction = enable => {\n\t\treturn (enable ? 'add' : 'remove') + 'EventListener';\n\t};\n\n\tlet gestureZoomOffset;\n\tlet gesturePanOffset;\n\tlet gestureStagePosition;\n\tlet gestureSelectionRect;\n\n\tconst handleGestureStart = e => {\n\t\te.preventDefault();\n\n\t\t// so we can correctly apply drag translation\n\t\tgesturePanOffset = { ...$imageSelectionPan };\n\n\t\tgestureSelectionRect = rectClone$1($imageSelectionRect);\n\t\tgestureStagePosition = getEventPositionInStage(e, $rootRect, $stageRect);\n\n\t\tgestureZoomOffset = $imagePreviewUpscale\n\t\t? $imageSelectionZoom || $imageSelectionStageFitScalar\n\t\t: imageFitsOnStage\n\t\t\t? $imageSelectionZoom || 1\n\t\t\t: $imageSelectionZoom || $imageSelectionStageFitScalar;\n\t};\n\n\tconst handleGesture = e => {\n\t\te.preventDefault();\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = clamp(e.scale * gestureZoomOffset, zoomMin, zoomMax), $imageSelectionZoom);\n\t\tconst originSelectionRect = rectClone$1(gestureSelectionRect);\n\t\trectScale$1(originSelectionRect, gestureZoomOffset);\n\t\trectTranslate$1(originSelectionRect, gesturePanOffset);\n\t\tconst originSelectionRectCenter = rectCenter(originSelectionRect);\n\t\tconst zoomedSelectionRect = rectClone$1(originSelectionRect);\n\t\trectScale$1(zoomedSelectionRect, 1 + ($imageSelectionZoom - gestureZoomOffset), gestureStagePosition);\n\t\tconst zoomedSelectionRectCenter = rectCenter(zoomedSelectionRect);\n\t\tconst rectTranslation = vectorDivide(vectorSubtract(zoomedSelectionRectCenter, originSelectionRectCenter), gestureZoomOffset);\n\n\t\tconst pan = {\n\t\t\tx: gesturePanOffset.x + rectTranslation.x,\n\t\t\ty: gesturePanOffset.y + rectTranslation.y\n\t\t};\n\n\t\tset_store_value(imageSelectionPan, $imageSelectionPan = getPanLimitedTranslation(pan, $imageSelectionZoom), $imageSelectionPan);\n\t};\n\n\tconst handleGestureEnd = e => {\n\t\te.preventDefault();\n\t};\n\n\tconst toggleZoomInput = enable => {\n\t\t// wheel zooming\n\t\troot[getListenerFunction(enable)]('wheel', handleWheel);\n\n\t\t// macos touchpad zooming, not on iOS as will conflict with handling of multitouch pointer events\n\t\tif (isIOS()) return;\n\n\t\troot[getListenerFunction(enable)]('gesturestart', handleGestureStart);\n\t\troot[getListenerFunction(enable)]('gesturechange', handleGesture);\n\t\troot[getListenerFunction(enable)]('gestureend', handleGestureEnd);\n\t};\n\n\tconst togglePanInput = enable => {\n\t\tconst fn = getListenerFunction(enable);\n\t\troot[fn]('interactionstart', handleDragStart);\n\t\troot[fn]('interactionupdate', handleDrag);\n\t\troot[fn]('interactionrelease', handleDragRelease);\n\t\troot[fn]('interactionend', handleDragEnd);\n\t};\n\n\t// mount & destroy\n\tlet interactableInstance;\n\n\tonMount(() => {\n\t\tinteractableInstance = interactable(root, {\n\t\t\tdrag: true,\n\t\t\tpinch: true,\n\t\t\tinertia: true,\n\t\t\tinertiaDurationMultiplier: 10,\n\t\t\tshouldStartInteraction\n\t\t});\n\t});\n\n\tonDestroy(() => {\n\t\ttoggleZoomInput(false);\n\t\ttogglePanInput(false);\n\t\tinteractableInstance.destroy();\n\t\tinteractableInstance = undefined;\n\t});\n\n\t$$self.$$set = $$props => {\n\t\tif ('root' in $$props) $$invalidate(13, root = $$props.root);\n\t\tif ('locale' in $$props) $$invalidate(14, locale = $$props.locale);\n\t\tif ('stores' in $$props) $$invalidate(15, stores = $$props.stores);\n\t\tif ('allowPan' in $$props) $$invalidate(16, allowPan = $$props.allowPan);\n\t\tif ('allowZoom' in $$props) $$invalidate(17, allowZoom = $$props.allowZoom);\n\t\tif ('enablePan' in $$props) $$invalidate(18, enablePan = $$props.enablePan);\n\t\tif ('enableZoom' in $$props) $$invalidate(19, enableZoom = $$props.enableZoom);\n\t\tif ('enableZoomControls' in $$props) $$invalidate(20, enableZoomControls = $$props.enableZoomControls);\n\t\tif ('enableZoomInput' in $$props) $$invalidate(21, enableZoomInput = $$props.enableZoomInput);\n\t\tif ('enablePanInput' in $$props) $$invalidate(22, enablePanInput = $$props.enablePanInput);\n\t\tif ('enablePanLimit' in $$props) $$invalidate(23, enablePanLimit = $$props.enablePanLimit);\n\t\tif ('panLimitGutterScalar' in $$props) $$invalidate(24, panLimitGutterScalar = $$props.panLimitGutterScalar);\n\t\tif ('zoomOptions' in $$props) $$invalidate(25, zoomOptions = $$props.zoomOptions);\n\t\tif ('zoomAdjustStep' in $$props) $$invalidate(26, zoomAdjustStep = $$props.zoomAdjustStep);\n\t\tif ('zoomAdjustFactor' in $$props) $$invalidate(27, zoomAdjustFactor = $$props.zoomAdjustFactor);\n\t\tif ('zoomAdjustWheelFactor' in $$props) $$invalidate(28, zoomAdjustWheelFactor = $$props.zoomAdjustWheelFactor);\n\t\tif ('elasticity' in $$props) $$invalidate(29, elasticity = $$props.elasticity);\n\t\tif ('imageSelectionRectCentered' in $$props) $$invalidate(30, imageSelectionRectCentered = $$props.imageSelectionRectCentered);\n\t\tif ('imageSelectionRectScalar' in $$props) $$invalidate(31, imageSelectionRectScalar = $$props.imageSelectionRectScalar);\n\t\tif ('zoomLevel' in $$props) $$invalidate(32, zoomLevel = $$props.zoomLevel);\n\t\tif ('zoomControls' in $$props) $$invalidate(11, zoomControls = $$props.zoomControls);\n\t\tif ('zoomMultiTouching' in $$props) $$invalidate(12, zoomMultiTouching = $$props.zoomMultiTouching);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*allowZoom, enableZoom, enableZoomInput*/ 2752512) {\n\t\t\t$$invalidate(35, canZoom = allowZoom && enableZoom && enableZoomInput);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*allowPan, enablePan*/ 327680) {\n\t\t\t$$invalidate(34, canPan = allowPan && enablePan);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*allowPan, allowZoom*/ 196608) {\n\t\t\t// restore when becomes active\n\t\t\tallowPan || allowZoom\n\t\t\t? restorePanAndZoom()\n\t\t\t: resetPanAndZoom();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$stageScalar*/ 16384) {\n\t\t\timageFitsOnStage = $stageScalar >= 1;\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale, zoomOptions*/ 33570816 | $$self.$$.dirty[1] & /*$imagePreviewUpscale, $stageScalar, $imageSelectionStageFitScalar*/ 28672) {\n\t\t\t// the list of zoom levels\n\t\t\t$$invalidate(39, zoomLevels = [\n\t\t\t\t// zoom level need to fit to view\n\t\t\t\t($imagePreviewUpscale || $stageScalar < 1) && [\n\t\t\t\t\t$imageSelectionStageFitScalar,\n\t\t\t\t\ttoPercentageNumber($imageSelectionStageFitScalar) + '%',\n\t\t\t\t\t{ sublabel: locale.labelZoomFit }\n\t\t\t\t],\n\t\t\t\t// custom zoom levels\n\t\t\t\t...zoomOptions.map(value => [value, toPercentageNumber(value) + '%'])\n\t\t\t].filter(Boolean).map(level => {\n\t\t\t\tif (level[0] === 1) level[2] = { sublabel: locale.labelZoomActual };\n\t\t\t\treturn level;\n\t\t\t}).sort((a, b) => {\n\t\t\t\tconst av = a[0] || $imageSelectionStageFitScalar;\n\t\t\t\tconst bv = b[0] || $imageSelectionStageFitScalar;\n\t\t\t\tif (av < bv) return -1;\n\t\t\t\tif (bv < av) return 1;\n\t\t\t\treturn 0;\n\t\t\t}));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomLevels, $imageSelectionStageFitScalar*/ 4352) {\n\t\t\t$$invalidate(37, zoomMin = Math.min(zoomLevels.reduce((min, [level]) => level < min ? level : min, Number.MAX_SAFE_INTEGER), $imageSelectionStageFitScalar));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomLevels*/ 256) {\n\t\t\t$$invalidate(36, zoomMax = zoomLevels.reduce((max, [level]) => level > max ? level : max, Number.MIN_SAFE_INTEGER));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomLevel*/ 2) {\n\t\t\tzoomLevel !== null && setZoomAdjust(zoomLevel);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageSelectionZoom, $imagePreviewUpscale, $stageScalar, $imageSelectionStageFitScalar*/ 30720) {\n\t\t\t$$invalidate(41, zoomLevelCurrent = $imageSelectionZoom\n\t\t\t? $imageSelectionZoom\n\t\t\t: $imagePreviewUpscale || $stageScalar < 1\n\t\t\t\t? $imageSelectionStageFitScalar\n\t\t\t\t: 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomLevels, zoomLevelCurrent*/ 1280) {\n\t\t\t$$invalidate(38, zoomLevelSelectedIndex = getSelectedZoomLevel(zoomLevels.map(([level]) => level), zoomLevelCurrent));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomLevelCurrent*/ 1024) {\n\t\t\t$$invalidate(40, zoomLevelLabel = toPercentageNumber(zoomLevelCurrent) + '%');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*allowZoom, enableZoomControls, locale, zoomAdjustStep, zoomAdjustFactor*/ 202522624 | $$self.$$.dirty[1] & /*$imageSelectionZoom, zoomMin, zoomLevelLabel, zoomLevels, zoomLevelSelectedIndex, zoomMax*/ 3040) {\n\t\t\t$$invalidate(11, zoomControls = (allowZoom || allowZoom) && enableZoomControls\n\t\t\t? [\n\t\t\t\t\t[\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'zoom-out',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thideLabel: true,\n\t\t\t\t\t\t\tlabel: locale.labelZoomOut,\n\t\t\t\t\t\t\ticon: locale.iconZoomOut,\n\t\t\t\t\t\t\tdisabled: $imageSelectionZoom === zoomMin,\n\t\t\t\t\t\t\tonclick: () => updateZoomAdjust(value => Math.max(zoomMin, value - zoomAdjustStep)),\n\t\t\t\t\t\t\tonhold: () => updateZoomAdjust(value => Math.max(zoomMin, value * (1 - zoomAdjustFactor)))\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'Dropdown',\n\t\t\t\t\t\t'zoom-level',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: zoomLevelLabel,\n\t\t\t\t\t\t\tlabelClass: 'PinturaFixedWidthCharacters',\n\t\t\t\t\t\t\toptions: zoomLevels,\n\t\t\t\t\t\t\tselectedIndex: zoomLevelSelectedIndex,\n\t\t\t\t\t\t\tonchange: item => setZoomAdjust(item.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'zoom-in',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thideLabel: true,\n\t\t\t\t\t\t\tlabel: locale.labelZoomIn,\n\t\t\t\t\t\t\ticon: locale.iconZoomIn,\n\t\t\t\t\t\t\tdisabled: $imageSelectionZoom === zoomMax,\n\t\t\t\t\t\t\tonclick: () => updateZoomAdjust(value => Math.min(zoomMax, value + zoomAdjustStep)),\n\t\t\t\t\t\t\tonhold: () => updateZoomAdjust(value => Math.min(zoomMax, value * (1 + zoomAdjustFactor)))\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 8192 | $$self.$$.dirty[1] & /*canZoom*/ 16) {\n\t\t\troot && toggleZoomInput(canZoom);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 8192 | $$self.$$.dirty[1] & /*canPan*/ 8) {\n\t\t\troot && togglePanInput(canPan);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root, enablePanInput*/ 4202496 | $$self.$$.dirty[1] & /*canPan, isPanning*/ 12) {\n\t\t\troot && root.style.setProperty('--cursor', canPan && enablePanInput\n\t\t\t? isPanning ? 'grabbing' : 'grab'\n\t\t\t: '');\n\t\t}\n\t};\n\n\treturn [\n\t\tisAnimated,\n\t\tisInteracting,\n\t\trootRect,\n\t\tstageRect,\n\t\tstageScalar,\n\t\timageSelectionPan,\n\t\timageSelectionZoom,\n\t\timageSelectionStageFitScalar,\n\t\timageSelectionRect,\n\t\timageSelectionStoredState,\n\t\timagePreviewUpscale,\n\t\tzoomControls,\n\t\tzoomMultiTouching,\n\t\troot,\n\t\tlocale,\n\t\tstores,\n\t\tallowPan,\n\t\tallowZoom,\n\t\tenablePan,\n\t\tenableZoom,\n\t\tenableZoomControls,\n\t\tenableZoomInput,\n\t\tenablePanInput,\n\t\tenablePanLimit,\n\t\tpanLimitGutterScalar,\n\t\tzoomOptions,\n\t\tzoomAdjustStep,\n\t\tzoomAdjustFactor,\n\t\tzoomAdjustWheelFactor,\n\t\telasticity,\n\t\timageSelectionRectCentered,\n\t\timageSelectionRectScalar,\n\t\tzoomLevel,\n\t\tisPanning,\n\t\tcanPan,\n\t\tcanZoom,\n\t\tzoomMax,\n\t\tzoomMin,\n\t\tzoomLevelSelectedIndex,\n\t\tzoomLevels,\n\t\tzoomLevelLabel,\n\t\tzoomLevelCurrent,\n\t\t$imageSelectionZoom,\n\t\t$imageSelectionStageFitScalar,\n\t\t$imagePreviewUpscale,\n\t\t$stageScalar\n\t];\n}\n\nclass CanvasPanAndZoom extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$u,\n\t\t\tnull,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\troot: 13,\n\t\t\t\tlocale: 14,\n\t\t\t\tstores: 15,\n\t\t\t\tallowPan: 16,\n\t\t\t\tallowZoom: 17,\n\t\t\t\tenablePan: 18,\n\t\t\t\tenableZoom: 19,\n\t\t\t\tenableZoomControls: 20,\n\t\t\t\tenableZoomInput: 21,\n\t\t\t\tenablePanInput: 22,\n\t\t\t\tenablePanLimit: 23,\n\t\t\t\tpanLimitGutterScalar: 24,\n\t\t\t\tzoomOptions: 25,\n\t\t\t\tzoomAdjustStep: 26,\n\t\t\t\tzoomAdjustFactor: 27,\n\t\t\t\tzoomAdjustWheelFactor: 28,\n\t\t\t\telasticity: 29,\n\t\t\t\timageSelectionRectCentered: 30,\n\t\t\t\timageSelectionRectScalar: 31,\n\t\t\t\tzoomLevel: 32,\n\t\t\t\tzoomControls: 11,\n\t\t\t\tzoomMultiTouching: 12\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1]\n\t\t);\n\t}\n}\n\nvar getVideoFileRotationMetadata = async (file) => {\n const buffer = await blobToArrayBuffer(file);\n const view = new DataView(buffer);\n return getRotationMetadataInDataView(view);\n};\nconst blobToArrayBuffer = (blob) => new Promise((resolve) => {\n const reader = new FileReader();\n reader.onload = () => resolve(reader.result);\n reader.readAsArrayBuffer(blob);\n});\n//#region mp4\nconst getRotationMetadataInMP4 = (view, offset, limit) => {\n // Bytes for degree metadata\n // 0 degrees\n // 00010000 00000000 00000000 00000000\n // 00010000 00000000 00000000 00000000\n // 40\n // 90 degrees\n // 00000000 00010000 00000000 FFFF0000\n // 00000000 00000000 00000000 00000000\n // 40\n // 180 degrees\n // FFFF0000 00000000 00000000 00000000\n // FFFF0000 00000000 00000000 00000000\n // 40\n // 270 degrees\n // 00000000 FFFF0000 00000000 00010000\n // 00000000 00000000 00000000 00000000\n // 40\n const TRAK_MARKER = 0x7472616b; // Video track\n const ROTA_MARKER = 0x40; // Rotation byte\n let inTrack = false;\n // rotation marker offset\n let r = -1;\n for (let i = offset; i < limit; i++) {\n // find start of video track\n if (!inTrack && view.getUint32(i) === TRAK_MARKER) {\n inTrack = true;\n i += 4;\n }\n // not found yet, skip to next byte\n if (!inTrack)\n continue;\n // found, let's search rotation marker\n const value = view.getUint8(i);\n // now looking for rotation marker offset\n if (value == ROTA_MARKER) {\n r = i;\n break;\n }\n }\n // rotation marker not found, exit\n if (r < 0)\n return 0;\n // Let's read bytes preceding the rotation marker entry to check rotation value\n const B = view.getUint32(r - 28);\n const D = view.getUint32(r - 20);\n const A = view.getUint32(r - 32);\n const E = view.getUint32(r - 16);\n if (B === 0x00010000 && D === 0xffff0000)\n return 90;\n else if (A === 0xffff0000 && E === 0xffff0000)\n return 180;\n else if (B === 0xffff0000 && D === 0x00010000)\n return 270;\n return 0;\n};\n//#endregion\n//#region mov\nconst MOOV_ATOM = 0x6d6f6f76;\nconst MVHD_ATOM = 0x6d766864;\nconst TKHD_ATOM = 0x746b6864;\nconst TRAK_ATOM = 0x7472616b;\nconst getAtoms = (view, offset = 0, size = view.byteLength) => {\n const atoms = [];\n const end = offset + size;\n while (offset < end) {\n const size = view.getUint32(offset);\n if (size < 0)\n break;\n const type = view.getUint32(offset + 4);\n atoms.push({\n type,\n size,\n offset,\n bodyOffset: offset + 8,\n bodySize: size - 8,\n });\n if (size < 8)\n break;\n offset += size;\n }\n return atoms;\n};\nconst getRotationMetadataInMOV = (view) => {\n // find container atoms\n const atoms = getAtoms(view);\n // exit no moov atom find\n const moov = atoms.find((atom) => atom.type === MOOV_ATOM);\n if (!moov)\n return 0;\n // get moov child atoms\n const moovChildAtoms = getAtoms(view, moov.bodyOffset, moov.bodySize);\n // get all relevant atoms\n moovChildAtoms\n .filter((atom) => atom.type === TRAK_ATOM)\n .forEach((atom) => {\n moovChildAtoms.push(...getAtoms(view, atom.bodyOffset, atom.bodySize));\n });\n // filter out irrelevant atoms\n const neededAtoms = [MVHD_ATOM, TKHD_ATOM];\n const relevantAtoms = moovChildAtoms.filter((atom) => neededAtoms.includes(atom.type));\n for (const { type, bodyOffset } of relevantAtoms) {\n // read first byte of body to get version\n const version = view.getUint8(bodyOffset);\n // skip version/tags header\n let offset = bodyOffset + 4;\n // move pointer based on atom type and version\n offset += type === MVHD_ATOM ? 32 : 36; // 'mvhd'\n offset += version === 1 ? 12 : 0;\n // get relevant part of matrix\n const A = view.getInt32(offset);\n const B = view.getInt32(offset + 4);\n if (A === 0 && B > 0)\n return 90;\n if (A < 0 && B === 0)\n return 180;\n if (A === 0 && B < 0)\n return 270;\n }\n return 0;\n};\n//#endregion\nconst getRotationMetadataInDataView = (view, { limit = 1024 } = {}) => {\n const FTYP_MARKER = 0x66747970; // QuickTime Container File Type\n const MP42_MARKER = 0x6d703432; // MP4 format\n const QT_MARKER = 0x71742020; // QT format\n let offset = 0;\n offset += 4;\n const container = view.getUint32(offset);\n if (container !== FTYP_MARKER)\n return 0;\n offset += 4;\n const format = view.getUint32(offset);\n if (format === MP42_MARKER)\n return getRotationMetadataInMP4(view, offset, limit);\n if (format === QT_MARKER)\n return getRotationMetadataInMOV(view);\n return 0;\n};\n\n/* src/core/ui/index.svelte generated by Svelte v3.52.0 */\n\nconst { window: window_1$1 } = globals;\n\nfunction create_if_block_2$5(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*isStatusVisible*/ ctx[42] && create_if_block_7$1(ctx);\n\tlet if_block1 = /*isReady*/ ctx[39] && create_if_block_3$4(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*isStatusVisible*/ ctx[42]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*isStatusVisible*/ 2048) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_7$1(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*isReady*/ ctx[39]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*isReady*/ 256) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_3$4(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(if_block1_anchor.parentNode, if_block1_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\n// (3672:8) {#if isStatusVisible}\nfunction create_if_block_7$1(ctx) {\n\tlet div;\n\tlet p;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet div_style_value;\n\tlet current;\n\tconst if_block_creators = [create_if_block_8$1, create_if_block_9$1];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*isSupportsError*/ ctx[40]) return 0;\n\t\tif (/*statusState*/ ctx[35]) return 1;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type(ctx))) {\n\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tp = element(\"p\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(p, \"style\", /*statusTransform*/ ctx[73]);\n\t\t\tattr(div, \"class\", \"PinturaStatus\");\n\t\t\tattr(div, \"style\", div_style_value = `opacity: ${/*$statusOpacity*/ ctx[55]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, p);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(p, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block) {\n\t\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(p, null);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty[2] & /*statusTransform*/ 2048) {\n\t\t\t\tattr(p, \"style\", /*statusTransform*/ ctx[73]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[1] & /*$statusOpacity*/ 16777216 && div_style_value !== (div_style_value = `opacity: ${/*$statusOpacity*/ ctx[55]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\n// (3685:42) \nfunction create_if_block_9$1(ctx) {\n\tlet statusmessage;\n\tlet t;\n\tlet if_block_anchor;\n\tlet current;\n\n\tstatusmessage = new StatusMessage({\n\t\t\tprops: {\n\t\t\t\ttext: /*statusState*/ ctx[35].text || '',\n\t\t\t\tonmeasure: /*offsetAside*/ ctx[214]\n\t\t\t}\n\t\t});\n\n\tlet if_block = /*statusState*/ ctx[35].aside && create_if_block_10$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(statusmessage.$$.fragment);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(statusmessage, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst statusmessage_changes = {};\n\t\t\tif (dirty[1] & /*statusState*/ 16) statusmessage_changes.text = /*statusState*/ ctx[35].text || '';\n\t\t\tstatusmessage.$set(statusmessage_changes);\n\n\t\t\tif (/*statusState*/ ctx[35].aside) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*statusState*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_10$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(statusmessage.$$.fragment, local);\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(statusmessage.$$.fragment, local);\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(statusmessage, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (3675:20) {#if isSupportsError}\nfunction create_if_block_8$1(ctx) {\n\tlet statusmessage;\n\tlet t;\n\tlet statusaside;\n\tlet current;\n\n\tstatusmessage = new StatusMessage({\n\t\t\tprops: {\n\t\t\t\ttext: /*isSupportsError*/ ctx[40],\n\t\t\t\tonmeasure: /*offsetAside*/ ctx[214]\n\t\t\t}\n\t\t});\n\n\tstatusaside = new StatusAside({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaStatusIcon\",\n\t\t\t\toffset: /*$asideOffset*/ ctx[83],\n\t\t\t\topacity: /*$asideOpacity*/ ctx[84],\n\t\t\t\t$$slots: { default: [create_default_slot_5$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(statusmessage.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(statusaside.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(statusmessage, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(statusaside, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst statusmessage_changes = {};\n\t\t\tif (dirty[1] & /*isSupportsError*/ 512) statusmessage_changes.text = /*isSupportsError*/ ctx[40];\n\t\t\tstatusmessage.$set(statusmessage_changes);\n\t\t\tconst statusaside_changes = {};\n\t\t\tif (dirty[2] & /*$asideOffset*/ 2097152) statusaside_changes.offset = /*$asideOffset*/ ctx[83];\n\t\t\tif (dirty[2] & /*$asideOpacity*/ 4194304) statusaside_changes.opacity = /*$asideOpacity*/ ctx[84];\n\n\t\t\tif (dirty[0] & /*locale*/ 8 | dirty[18] & /*$$scope*/ 536870912) {\n\t\t\t\tstatusaside_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tstatusaside.$set(statusaside_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(statusmessage.$$.fragment, local);\n\t\t\ttransition_in(statusaside.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(statusmessage.$$.fragment, local);\n\t\t\ttransition_out(statusaside.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(statusmessage, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(statusaside, detaching);\n\t\t}\n\t};\n}\n\n// (3688:24) {#if statusState.aside}\nfunction create_if_block_10$1(ctx) {\n\tlet statusaside;\n\tlet current;\n\n\tstatusaside = new StatusAside({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaStatusButton\",\n\t\t\t\toffset: /*$asideOffset*/ ctx[83],\n\t\t\t\topacity: /*$asideOpacity*/ ctx[84],\n\t\t\t\t$$slots: { default: [create_default_slot_7] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(statusaside.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(statusaside, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst statusaside_changes = {};\n\t\t\tif (dirty[2] & /*$asideOffset*/ 2097152) statusaside_changes.offset = /*$asideOffset*/ ctx[83];\n\t\t\tif (dirty[2] & /*$asideOpacity*/ 4194304) statusaside_changes.opacity = /*$asideOpacity*/ ctx[84];\n\n\t\t\tif (dirty[1] & /*statusState*/ 16 | dirty[18] & /*$$scope*/ 536870912) {\n\t\t\t\tstatusaside_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tstatusaside.$set(statusaside_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(statusaside.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(statusaside.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(statusaside, detaching);\n\t\t}\n\t};\n}\n\n// (3694:32) {#if statusState.progressIndicator.visible}\nfunction create_if_block_12(ctx) {\n\tlet progressindicator;\n\tlet current;\n\n\tprogressindicator = new ProgressIndicator({\n\t\t\tprops: {\n\t\t\t\tprogress: /*statusState*/ ctx[35].progressIndicator.progress\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(progressindicator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(progressindicator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst progressindicator_changes = {};\n\t\t\tif (dirty[1] & /*statusState*/ 16) progressindicator_changes.progress = /*statusState*/ ctx[35].progressIndicator.progress;\n\t\t\tprogressindicator.$set(progressindicator_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(progressindicator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(progressindicator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(progressindicator, detaching);\n\t\t}\n\t};\n}\n\n// (3700:32) {#if statusState.closeButton && statusState.text}\nfunction create_if_block_11$1(ctx) {\n\tlet button;\n\tlet current;\n\tconst button_spread_levels = [/*statusState*/ ctx[35].closeButton, { hideLabel: true }];\n\tlet button_props = {};\n\n\tfor (let i = 0; i < button_spread_levels.length; i += 1) {\n\t\tbutton_props = assign(button_props, button_spread_levels[i]);\n\t}\n\n\tbutton = new Button({ props: button_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = (dirty[1] & /*statusState*/ 16)\n\t\t\t? get_spread_update(button_spread_levels, [\n\t\t\t\t\tget_spread_object(/*statusState*/ ctx[35].closeButton),\n\t\t\t\t\tbutton_spread_levels[1]\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\n// (3689:28) <StatusAside class=\"PinturaStatusButton\" offset={$asideOffset} opacity={$asideOpacity} >\nfunction create_default_slot_7(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*statusState*/ ctx[35].progressIndicator.visible && create_if_block_12(ctx);\n\tlet if_block1 = /*statusState*/ ctx[35].closeButton && /*statusState*/ ctx[35].text && create_if_block_11$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*statusState*/ ctx[35].progressIndicator.visible) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*statusState*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_12(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*statusState*/ ctx[35].closeButton && /*statusState*/ ctx[35].text) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*statusState*/ 16) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_11$1(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(if_block1_anchor.parentNode, if_block1_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\n// (3683:28) <Icon>\nfunction create_default_slot_6(ctx) {\n\tlet g;\n\tlet raw_value = /*locale*/ ctx[3].iconSupportError + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*locale*/ 8 && raw_value !== (raw_value = /*locale*/ ctx[3].iconSupportError + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (3678:24) <StatusAside class=\"PinturaStatusIcon\" offset={$asideOffset} opacity={$asideOpacity} >\nfunction create_default_slot_5$1(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_6] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[0] & /*locale*/ 8 | dirty[18] & /*$$scope*/ 536870912) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (3710:8) {#if isReady}\nfunction create_if_block_3$4(ctx) {\n\tlet t0;\n\tlet t1;\n\tlet current_block_type_index;\n\tlet if_block2;\n\tlet t2;\n\tlet canvas;\n\tlet t3;\n\tlet div;\n\tlet t4;\n\tlet canvaspanandzoom;\n\tlet updating_zoomLevel;\n\tlet updating_zoomControls;\n\tlet updating_zoomMultiTouching;\n\tlet current;\n\tlet if_block0 = /*enableToolbar*/ ctx[10] && create_if_block_6$2(ctx);\n\tlet if_block1 = /*shouldRenderTabs*/ ctx[46] && /*showUtils*/ ctx[45] && create_if_block_5$3(ctx);\n\tconst if_block_creators = [create_if_block_4$4, create_else_block$3];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*shouldRenderTabs*/ ctx[46]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_1(ctx);\n\tif_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\tcanvas = new Canvas({\n\t\t\tprops: {\n\t\t\t\tisAnimated: /*$isAnimated*/ ctx[54],\n\t\t\t\tisTransparent: /*enableCanvasAlpha*/ ctx[20],\n\t\t\t\tpixelRatio: /*$pixelRatio*/ ctx[58],\n\t\t\t\ttextPixelRatio: /*previewImageTextPixelRatio*/ ctx[6],\n\t\t\t\tbackgroundColor: /*$rootBackgroundColor*/ ctx[57],\n\t\t\t\tmaskRect: /*$imageSelectionRectPresentation*/ ctx[59],\n\t\t\t\tmaskOpacity: /*imageCanvasState*/ ctx[74]\n\t\t\t\t? /*imageCanvasState*/ ctx[74].maskOpacity\n\t\t\t\t: 1,\n\t\t\t\tmaskMarkupOpacity: /*markupMaskOpacity*/ ctx[7],\n\t\t\t\tmaskFrameOpacity: /*previewMaskOpacity*/ ctx[5],\n\t\t\t\tclipAnnotationsToImage: /*$imageCropLimitToImage*/ ctx[86],\n\t\t\t\timages: /*$activeImages*/ ctx[56],\n\t\t\t\tinterfaceImages: /*$interfaceImages*/ ctx[87],\n\t\t\t\tloadImageData: /*imageSourceToImageData*/ ctx[28],\n\t\t\t\tenableGrid: /*enableTransparencyGrid*/ ctx[11],\n\t\t\t\tgridSize: /*$gridSize*/ ctx[88],\n\t\t\t\tgridColors: [/*$gridColorEven*/ ctx[89], /*$gridColorOdd*/ ctx[90]],\n\t\t\t\tgridOpacity: /*$gridOpacity*/ ctx[91],\n\t\t\t\tselectionColor: /*$rootColorPrimary*/ ctx[92],\n\t\t\t\twillRequest: /*$willRequest*/ ctx[82] || /*$willRequestResource*/ ctx[93],\n\t\t\t\twillRender: /*func_2*/ ctx[424],\n\t\t\t\tdidRender: /*func_3*/ ctx[425]\n\t\t\t}\n\t\t});\n\n\tfunction canvaspanandzoom_zoomLevel_binding(value) {\n\t\t/*canvaspanandzoom_zoomLevel_binding*/ ctx[427](value);\n\t}\n\n\tfunction canvaspanandzoom_zoomControls_binding(value) {\n\t\t/*canvaspanandzoom_zoomControls_binding*/ ctx[428](value);\n\t}\n\n\tfunction canvaspanandzoom_zoomMultiTouching_binding(value) {\n\t\t/*canvaspanandzoom_zoomMultiTouching_binding*/ ctx[429](value);\n\t}\n\n\tlet canvaspanandzoom_props = {\n\t\troot: /*root*/ ctx[2],\n\t\tlocale: /*locale*/ ctx[3],\n\t\tstores: /*utilStores*/ ctx[200],\n\t\tallowPan: /*$allowPan*/ ctx[95],\n\t\tenablePan: /*enablePan*/ ctx[17],\n\t\tenablePanLimit: /*enablePanLimit*/ ctx[21],\n\t\tpanLimitGutterScalar: /*panLimitGutterScalar*/ ctx[22],\n\t\tenablePanInput: /*$enablePanInputStatus*/ ctx[96],\n\t\tallowZoom: /*$allowZoom*/ ctx[97],\n\t\tenableZoom: /*enableZoom*/ ctx[18],\n\t\tenableZoomInput: /*enableZoomInput*/ ctx[19] !== undefined\n\t\t? /*enableZoomInput*/ ctx[19]\n\t\t: /*$enableZoomInputStore*/ ctx[98],\n\t\tenableZoomControls: /*$enableZoomControlsProp*/ ctx[99],\n\t\tzoomOptions: /*markupEditorZoomLevels*/ ctx[13] || /*zoomPresetOptions*/ ctx[23],\n\t\tzoomAdjustStep: /*markupEditorZoomAdjustStep*/ ctx[14] || /*zoomAdjustStep*/ ctx[24],\n\t\tzoomAdjustFactor: /*markupEditorZoomAdjustFactor*/ ctx[15] || /*zoomAdjustFactor*/ ctx[25],\n\t\tzoomAdjustWheelFactor: /*markupEditorZoomAdjustWheelFactor*/ ctx[16] || /*zoomAdjustWheelFactor*/ ctx[26],\n\t\timageSelectionRectCentered: /*$imageSelectionRectCentered*/ ctx[100],\n\t\timageSelectionRectScalar: /*$imageSelectionRectScalar*/ ctx[101],\n\t\telasticity: imageSelectionRectElasticity * /*elasticityMultiplier*/ ctx[8]\n\t};\n\n\tif (/*zoomLevel*/ ctx[0] !== void 0) {\n\t\tcanvaspanandzoom_props.zoomLevel = /*zoomLevel*/ ctx[0];\n\t}\n\n\tif (/*zoomControls*/ ctx[33] !== void 0) {\n\t\tcanvaspanandzoom_props.zoomControls = /*zoomControls*/ ctx[33];\n\t}\n\n\tif (/*zoomMultiTouching*/ ctx[34] !== void 0) {\n\t\tcanvaspanandzoom_props.zoomMultiTouching = /*zoomMultiTouching*/ ctx[34];\n\t}\n\n\tcanvaspanandzoom = new CanvasPanAndZoom({ props: canvaspanandzoom_props });\n\tbinding_callbacks.push(() => bind(canvaspanandzoom, 'zoomLevel', canvaspanandzoom_zoomLevel_binding));\n\tbinding_callbacks.push(() => bind(canvaspanandzoom, 'zoomControls', canvaspanandzoom_zoomControls_binding));\n\tbinding_callbacks.push(() => bind(canvaspanandzoom, 'zoomMultiTouching', canvaspanandzoom_zoomMultiTouching_binding));\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tif_block2.c();\n\t\t\tt2 = space();\n\t\t\tcreate_component(canvas.$$.fragment);\n\t\t\tt3 = space();\n\t\t\tdiv = element(\"div\");\n\t\t\tt4 = space();\n\t\t\tcreate_component(canvaspanandzoom.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaRootPortal\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, t2, anchor);\n\t\t\tmount_component(canvas, target, anchor);\n\t\t\tinsert(target, t3, anchor);\n\t\t\tinsert(target, div, anchor);\n\t\t\t/*div_binding*/ ctx[426](div);\n\t\t\tinsert(target, t4, anchor);\n\t\t\tmount_component(canvaspanandzoom, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*enableToolbar*/ ctx[10]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*enableToolbar*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_6$2(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t0.parentNode, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*shouldRenderTabs*/ ctx[46] && /*showUtils*/ ctx[45]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*shouldRenderTabs, showUtils*/ 49152) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_5$3(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(t1.parentNode, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block2 = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block2) {\n\t\t\t\t\tif_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block2.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block2.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\tif_block2.m(t2.parentNode, t2);\n\t\t\t}\n\n\t\t\tconst canvas_changes = {};\n\t\t\tif (dirty[1] & /*$isAnimated*/ 8388608) canvas_changes.isAnimated = /*$isAnimated*/ ctx[54];\n\t\t\tif (dirty[0] & /*enableCanvasAlpha*/ 1048576) canvas_changes.isTransparent = /*enableCanvasAlpha*/ ctx[20];\n\t\t\tif (dirty[1] & /*$pixelRatio*/ 134217728) canvas_changes.pixelRatio = /*$pixelRatio*/ ctx[58];\n\t\t\tif (dirty[0] & /*previewImageTextPixelRatio*/ 64) canvas_changes.textPixelRatio = /*previewImageTextPixelRatio*/ ctx[6];\n\t\t\tif (dirty[1] & /*$rootBackgroundColor*/ 67108864) canvas_changes.backgroundColor = /*$rootBackgroundColor*/ ctx[57];\n\t\t\tif (dirty[1] & /*$imageSelectionRectPresentation*/ 268435456) canvas_changes.maskRect = /*$imageSelectionRectPresentation*/ ctx[59];\n\n\t\t\tif (dirty[2] & /*imageCanvasState*/ 4096) canvas_changes.maskOpacity = /*imageCanvasState*/ ctx[74]\n\t\t\t? /*imageCanvasState*/ ctx[74].maskOpacity\n\t\t\t: 1;\n\n\t\t\tif (dirty[0] & /*markupMaskOpacity*/ 128) canvas_changes.maskMarkupOpacity = /*markupMaskOpacity*/ ctx[7];\n\t\t\tif (dirty[0] & /*previewMaskOpacity*/ 32) canvas_changes.maskFrameOpacity = /*previewMaskOpacity*/ ctx[5];\n\t\t\tif (dirty[2] & /*$imageCropLimitToImage*/ 16777216) canvas_changes.clipAnnotationsToImage = /*$imageCropLimitToImage*/ ctx[86];\n\t\t\tif (dirty[1] & /*$activeImages*/ 33554432) canvas_changes.images = /*$activeImages*/ ctx[56];\n\t\t\tif (dirty[2] & /*$interfaceImages*/ 33554432) canvas_changes.interfaceImages = /*$interfaceImages*/ ctx[87];\n\t\t\tif (dirty[0] & /*imageSourceToImageData*/ 268435456) canvas_changes.loadImageData = /*imageSourceToImageData*/ ctx[28];\n\t\t\tif (dirty[0] & /*enableTransparencyGrid*/ 2048) canvas_changes.enableGrid = /*enableTransparencyGrid*/ ctx[11];\n\t\t\tif (dirty[2] & /*$gridSize*/ 67108864) canvas_changes.gridSize = /*$gridSize*/ ctx[88];\n\t\t\tif (dirty[2] & /*$gridColorEven, $gridColorOdd*/ 402653184) canvas_changes.gridColors = [/*$gridColorEven*/ ctx[89], /*$gridColorOdd*/ ctx[90]];\n\t\t\tif (dirty[2] & /*$gridOpacity*/ 536870912) canvas_changes.gridOpacity = /*$gridOpacity*/ ctx[91];\n\t\t\tif (dirty[2] & /*$rootColorPrimary*/ 1073741824) canvas_changes.selectionColor = /*$rootColorPrimary*/ ctx[92];\n\t\t\tif (dirty[2] & /*$willRequest*/ 1048576 | dirty[3] & /*$willRequestResource*/ 1) canvas_changes.willRequest = /*$willRequest*/ ctx[82] || /*$willRequestResource*/ ctx[93];\n\t\t\tif (dirty[0] & /*willRenderCanvas*/ 512 | dirty[1] & /*$redrawTrigger, $imageAnnotation, $imageDecoration, $imageFrame, $imageSelection, manipulationShapes*/ 541982784 | dirty[3] & /*$imageOverlay*/ 2) canvas_changes.willRender = /*func_2*/ ctx[424];\n\t\t\tif (dirty[2] & /*imageAnnotationShapesDirty, imageAnnotationRequiresPreprocessing, imageDecorationShapesDirty, imageFrameShapesDirty, imageManipulationShapesDirty*/ 124) canvas_changes.didRender = /*func_3*/ ctx[425];\n\t\t\tcanvas.$set(canvas_changes);\n\t\t\tconst canvaspanandzoom_changes = {};\n\t\t\tif (dirty[0] & /*root*/ 4) canvaspanandzoom_changes.root = /*root*/ ctx[2];\n\t\t\tif (dirty[0] & /*locale*/ 8) canvaspanandzoom_changes.locale = /*locale*/ ctx[3];\n\t\t\tif (dirty[3] & /*$allowPan*/ 4) canvaspanandzoom_changes.allowPan = /*$allowPan*/ ctx[95];\n\t\t\tif (dirty[0] & /*enablePan*/ 131072) canvaspanandzoom_changes.enablePan = /*enablePan*/ ctx[17];\n\t\t\tif (dirty[0] & /*enablePanLimit*/ 2097152) canvaspanandzoom_changes.enablePanLimit = /*enablePanLimit*/ ctx[21];\n\t\t\tif (dirty[0] & /*panLimitGutterScalar*/ 4194304) canvaspanandzoom_changes.panLimitGutterScalar = /*panLimitGutterScalar*/ ctx[22];\n\t\t\tif (dirty[3] & /*$enablePanInputStatus*/ 8) canvaspanandzoom_changes.enablePanInput = /*$enablePanInputStatus*/ ctx[96];\n\t\t\tif (dirty[3] & /*$allowZoom*/ 16) canvaspanandzoom_changes.allowZoom = /*$allowZoom*/ ctx[97];\n\t\t\tif (dirty[0] & /*enableZoom*/ 262144) canvaspanandzoom_changes.enableZoom = /*enableZoom*/ ctx[18];\n\n\t\t\tif (dirty[0] & /*enableZoomInput*/ 524288 | dirty[3] & /*$enableZoomInputStore*/ 32) canvaspanandzoom_changes.enableZoomInput = /*enableZoomInput*/ ctx[19] !== undefined\n\t\t\t? /*enableZoomInput*/ ctx[19]\n\t\t\t: /*$enableZoomInputStore*/ ctx[98];\n\n\t\t\tif (dirty[3] & /*$enableZoomControlsProp*/ 64) canvaspanandzoom_changes.enableZoomControls = /*$enableZoomControlsProp*/ ctx[99];\n\t\t\tif (dirty[0] & /*markupEditorZoomLevels, zoomPresetOptions*/ 8396800) canvaspanandzoom_changes.zoomOptions = /*markupEditorZoomLevels*/ ctx[13] || /*zoomPresetOptions*/ ctx[23];\n\t\t\tif (dirty[0] & /*markupEditorZoomAdjustStep, zoomAdjustStep*/ 16793600) canvaspanandzoom_changes.zoomAdjustStep = /*markupEditorZoomAdjustStep*/ ctx[14] || /*zoomAdjustStep*/ ctx[24];\n\t\t\tif (dirty[0] & /*markupEditorZoomAdjustFactor, zoomAdjustFactor*/ 33587200) canvaspanandzoom_changes.zoomAdjustFactor = /*markupEditorZoomAdjustFactor*/ ctx[15] || /*zoomAdjustFactor*/ ctx[25];\n\t\t\tif (dirty[0] & /*markupEditorZoomAdjustWheelFactor, zoomAdjustWheelFactor*/ 67174400) canvaspanandzoom_changes.zoomAdjustWheelFactor = /*markupEditorZoomAdjustWheelFactor*/ ctx[16] || /*zoomAdjustWheelFactor*/ ctx[26];\n\t\t\tif (dirty[3] & /*$imageSelectionRectCentered*/ 128) canvaspanandzoom_changes.imageSelectionRectCentered = /*$imageSelectionRectCentered*/ ctx[100];\n\t\t\tif (dirty[3] & /*$imageSelectionRectScalar*/ 256) canvaspanandzoom_changes.imageSelectionRectScalar = /*$imageSelectionRectScalar*/ ctx[101];\n\t\t\tif (dirty[0] & /*elasticityMultiplier*/ 256) canvaspanandzoom_changes.elasticity = imageSelectionRectElasticity * /*elasticityMultiplier*/ ctx[8];\n\n\t\t\tif (!updating_zoomLevel && dirty[0] & /*zoomLevel*/ 1) {\n\t\t\t\tupdating_zoomLevel = true;\n\t\t\t\tcanvaspanandzoom_changes.zoomLevel = /*zoomLevel*/ ctx[0];\n\t\t\t\tadd_flush_callback(() => updating_zoomLevel = false);\n\t\t\t}\n\n\t\t\tif (!updating_zoomControls && dirty[1] & /*zoomControls*/ 4) {\n\t\t\t\tupdating_zoomControls = true;\n\t\t\t\tcanvaspanandzoom_changes.zoomControls = /*zoomControls*/ ctx[33];\n\t\t\t\tadd_flush_callback(() => updating_zoomControls = false);\n\t\t\t}\n\n\t\t\tif (!updating_zoomMultiTouching && dirty[1] & /*zoomMultiTouching*/ 8) {\n\t\t\t\tupdating_zoomMultiTouching = true;\n\t\t\t\tcanvaspanandzoom_changes.zoomMultiTouching = /*zoomMultiTouching*/ ctx[34];\n\t\t\t\tadd_flush_callback(() => updating_zoomMultiTouching = false);\n\t\t\t}\n\n\t\t\tcanvaspanandzoom.$set(canvaspanandzoom_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\ttransition_in(canvas.$$.fragment, local);\n\t\t\ttransition_in(canvaspanandzoom.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\ttransition_out(canvas.$$.fragment, local);\n\t\t\ttransition_out(canvaspanandzoom.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(t1);\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(t2);\n\t\t\tdestroy_component(canvas, detaching);\n\t\t\tif (detaching) detach(t3);\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[426](null);\n\t\t\tif (detaching) detach(t4);\n\t\t\tdestroy_component(canvaspanandzoom, detaching);\n\t\t}\n\t};\n}\n\n// (3711:12) {#if enableToolbar}\nfunction create_if_block_6$2(ctx) {\n\tlet div;\n\tlet dynamiccomponenttree;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*toolbarItems*/ ctx[70] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaNav PinturaNavTools\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(dynamiccomponenttree, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler*/ ctx[411]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty[2] & /*toolbarItems*/ 256) dynamiccomponenttree_changes.items = /*toolbarItems*/ ctx[70];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (3721:12) {#if shouldRenderTabs && showUtils}\nfunction create_if_block_5$3(ctx) {\n\tlet div;\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\telasticity: /*elasticityMultiplier*/ ctx[8] * scrollElasticity,\n\t\t\t\tscrollDirection: /*isLandscape*/ ctx[76] ? 'y' : 'x',\n\t\t\t\t$$slots: { default: [create_default_slot_2$4] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaNav PinturaNavMain\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[0] & /*elasticityMultiplier*/ 256) scrollable_changes.elasticity = /*elasticityMultiplier*/ ctx[8] * scrollElasticity;\n\t\t\tif (dirty[2] & /*isLandscape*/ 16384) scrollable_changes.scrollDirection = /*isLandscape*/ ctx[76] ? 'y' : 'x';\n\n\t\t\tif (dirty[1] & /*utilSelected*/ 8192 | dirty[2] & /*tabsConfig, tabs*/ 393216 | dirty[18] & /*$$scope*/ 536870912) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(scrollable);\n\t\t}\n\t};\n}\n\n// (3733:28) <Icon>\nfunction create_default_slot_4$2(ctx) {\n\tlet g;\n\tlet raw_value = /*tab*/ ctx[586].icon + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[18] & /*tab*/ 268435456 && raw_value !== (raw_value = /*tab*/ ctx[586].icon + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (3727:24) <TabList {...tabsConfig} {tabs} on:select={({ detail }) => (utilSelected = detail)} let:tab >\nfunction create_default_slot_3$2(ctx) {\n\tlet icon;\n\tlet t0;\n\tlet span;\n\tlet t1_value = /*tab*/ ctx[586].label + \"\";\n\tlet t1;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_4$2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt1 = text(t1_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t1);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[18] & /*$$scope, tab*/ 805306368) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t\tif ((!current || dirty[18] & /*tab*/ 268435456) && t1_value !== (t1_value = /*tab*/ ctx[586].label + \"\")) set_data(t1, t1_value);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (3723:20) <Scrollable elasticity={elasticityMultiplier * scrollElasticity} scrollDirection={isLandscape ? 'y' : 'x'} >\nfunction create_default_slot_2$4(ctx) {\n\tlet tablist;\n\tlet current;\n\tconst tablist_spread_levels = [/*tabsConfig*/ ctx[80], { tabs: /*tabs*/ ctx[79] }];\n\n\tlet tablist_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot_3$2,\n\t\t\t\t({ tab }) => ({ 586: tab }),\n\t\t\t\t({ tab }) => [\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\ttab ? 268435456 : 0\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tablist_spread_levels.length; i += 1) {\n\t\ttablist_props = assign(tablist_props, tablist_spread_levels[i]);\n\t}\n\n\ttablist = new TabList({ props: tablist_props });\n\ttablist.$on(\"select\", /*select_handler*/ ctx[412]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(tablist.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(tablist, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst tablist_changes = (dirty[2] & /*tabsConfig, tabs*/ 393216)\n\t\t\t? get_spread_update(tablist_spread_levels, [\n\t\t\t\t\tdirty[2] & /*tabsConfig*/ 262144 && get_spread_object(/*tabsConfig*/ ctx[80]),\n\t\t\t\t\tdirty[2] & /*tabs*/ 131072 && { tabs: /*tabs*/ ctx[79] }\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[18] & /*$$scope, tab*/ 805306368) {\n\t\t\t\ttablist_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttablist.$set(tablist_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(tablist.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(tablist.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(tablist, detaching);\n\t\t}\n\t};\n}\n\n// (3766:12) {:else}\nfunction create_else_block$3(ctx) {\n\tlet utilpanel;\n\tlet updating_component;\n\tlet current;\n\n\tfunction utilpanel_component_binding_1(value) {\n\t\t/*utilpanel_component_binding_1*/ ctx[420](value);\n\t}\n\n\tlet utilpanel_props = {\n\t\tclass: \"PinturaMain\",\n\t\tcontent: {\n\t\t\t.../*utilsMerged*/ ctx[47].find(/*func_1*/ ctx[419]),\n\t\t\tprops: /*pluginOptions*/ ctx[27][/*utilSelected*/ ctx[44]]\n\t\t},\n\t\tlocale: /*locale*/ ctx[3],\n\t\tstores: /*utilStores*/ ctx[200]\n\t};\n\n\tif (/*pluginInterface*/ ctx[1][/*utilSelected*/ ctx[44]] !== void 0) {\n\t\tutilpanel_props.component = /*pluginInterface*/ ctx[1][/*utilSelected*/ ctx[44]];\n\t}\n\n\tutilpanel = new UtilPanel({ props: utilpanel_props });\n\tbinding_callbacks.push(() => bind(utilpanel, 'component', utilpanel_component_binding_1));\n\tutilpanel.$on(\"measure\", /*handleMeasureUtil*/ ctx[226]);\n\tutilpanel.$on(\"show\", /*show_handler_1*/ ctx[421]);\n\tutilpanel.$on(\"hide\", /*hide_handler_1*/ ctx[422]);\n\tutilpanel.$on(\"fade\", /*fade_handler_1*/ ctx[423]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(utilpanel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(utilpanel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst utilpanel_changes = {};\n\n\t\t\tif (dirty[0] & /*pluginOptions*/ 134217728 | dirty[1] & /*utilsMerged, utilSelected*/ 73728) utilpanel_changes.content = {\n\t\t\t\t.../*utilsMerged*/ ctx[47].find(/*func_1*/ ctx[419]),\n\t\t\t\tprops: /*pluginOptions*/ ctx[27][/*utilSelected*/ ctx[44]]\n\t\t\t};\n\n\t\t\tif (dirty[0] & /*locale*/ 8) utilpanel_changes.locale = /*locale*/ ctx[3];\n\n\t\t\tif (!updating_component && dirty[0] & /*pluginInterface*/ 2 | dirty[1] & /*utilSelected*/ 8192) {\n\t\t\t\tupdating_component = true;\n\t\t\t\tutilpanel_changes.component = /*pluginInterface*/ ctx[1][/*utilSelected*/ ctx[44]];\n\t\t\t\tadd_flush_callback(() => updating_component = false);\n\t\t\t}\n\n\t\t\tutilpanel.$set(utilpanel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(utilpanel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(utilpanel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(utilpanel, detaching);\n\t\t}\n\t};\n}\n\n// (3740:12) {#if shouldRenderTabs}\nfunction create_if_block_4$4(ctx) {\n\tlet tabpanels;\n\tlet current;\n\n\tconst tabpanels_spread_levels = [\n\t\t{ class: \"PinturaMain\" },\n\t\t{ visible: /*utilsVisible*/ ctx[63] },\n\t\t/*tabsConfig*/ ctx[80],\n\t\t{ panels: /*panels*/ ctx[78] }\n\t];\n\n\tlet tabpanels_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot_1$4,\n\t\t\t\t({ panel, panelIsActive }) => ({ 584: panel, 585: panelIsActive }),\n\t\t\t\t({ panel, panelIsActive }) => [\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t0,\n\t\t\t\t\t(panel ? 67108864 : 0) | (panelIsActive ? 134217728 : 0)\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tabpanels_spread_levels.length; i += 1) {\n\t\ttabpanels_props = assign(tabpanels_props, tabpanels_spread_levels[i]);\n\t}\n\n\ttabpanels = new TabPanels({ props: tabpanels_props });\n\ttabpanels.$on(\"measure\", /*measure_handler_1*/ ctx[418]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(tabpanels.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(tabpanels, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst tabpanels_changes = (dirty[2] & /*utilsVisible, tabsConfig, panels*/ 327682)\n\t\t\t? get_spread_update(tabpanels_spread_levels, [\n\t\t\t\t\ttabpanels_spread_levels[0],\n\t\t\t\t\tdirty[2] & /*utilsVisible*/ 2 && { visible: /*utilsVisible*/ ctx[63] },\n\t\t\t\t\tdirty[2] & /*tabsConfig*/ 262144 && get_spread_object(/*tabsConfig*/ ctx[80]),\n\t\t\t\t\tdirty[2] & /*panels*/ 65536 && { panels: /*panels*/ ctx[78] }\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[0] & /*pluginOptions, locale, pluginInterface*/ 134217738 | dirty[1] & /*utilsMerged, utilsVisibleFraction*/ 65664 | dirty[2] & /*utilsVisible*/ 2 | dirty[18] & /*$$scope, panel, panelIsActive*/ 738197504) {\n\t\t\t\ttabpanels_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttabpanels.$set(tabpanels_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(tabpanels.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(tabpanels.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(tabpanels, detaching);\n\t\t}\n\t};\n}\n\n// (3741:16) <TabPanels class=\"PinturaMain\" visible={utilsVisible} {...tabsConfig} {panels} let:panel let:panelIsActive on:measure={(e) => ($tabRect = e.detail)} >\nfunction create_default_slot_1$4(ctx) {\n\tlet utilpanel;\n\tlet updating_component;\n\tlet current;\n\n\tfunction func(...args) {\n\t\treturn /*func*/ ctx[413](/*panel*/ ctx[584], ...args);\n\t}\n\n\tfunction utilpanel_component_binding(value) {\n\t\t/*utilpanel_component_binding*/ ctx[414](value, /*panel*/ ctx[584]);\n\t}\n\n\tfunction show_handler() {\n\t\treturn /*show_handler*/ ctx[415](/*panel*/ ctx[584]);\n\t}\n\n\tfunction hide_handler() {\n\t\treturn /*hide_handler*/ ctx[416](/*panel*/ ctx[584]);\n\t}\n\n\tfunction fade_handler(...args) {\n\t\treturn /*fade_handler*/ ctx[417](/*panel*/ ctx[584], ...args);\n\t}\n\n\tlet utilpanel_props = {\n\t\tcontent: {\n\t\t\t.../*utilsMerged*/ ctx[47].find(func),\n\t\t\tprops: /*pluginOptions*/ ctx[27][/*panel*/ ctx[584]]\n\t\t},\n\t\tlocale: /*locale*/ ctx[3],\n\t\tisActive: /*panelIsActive*/ ctx[585],\n\t\tstores: /*utilStores*/ ctx[200]\n\t};\n\n\tif (/*pluginInterface*/ ctx[1][/*panel*/ ctx[584]] !== void 0) {\n\t\tutilpanel_props.component = /*pluginInterface*/ ctx[1][/*panel*/ ctx[584]];\n\t}\n\n\tutilpanel = new UtilPanel({ props: utilpanel_props });\n\tbinding_callbacks.push(() => bind(utilpanel, 'component', utilpanel_component_binding));\n\tutilpanel.$on(\"measure\", /*handleMeasureUtil*/ ctx[226]);\n\tutilpanel.$on(\"show\", show_handler);\n\tutilpanel.$on(\"hide\", hide_handler);\n\tutilpanel.$on(\"fade\", fade_handler);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(utilpanel.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(utilpanel, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst utilpanel_changes = {};\n\n\t\t\tif (dirty[0] & /*pluginOptions*/ 134217728 | dirty[1] & /*utilsMerged*/ 65536 | dirty[18] & /*panel*/ 67108864) utilpanel_changes.content = {\n\t\t\t\t.../*utilsMerged*/ ctx[47].find(func),\n\t\t\t\tprops: /*pluginOptions*/ ctx[27][/*panel*/ ctx[584]]\n\t\t\t};\n\n\t\t\tif (dirty[0] & /*locale*/ 8) utilpanel_changes.locale = /*locale*/ ctx[3];\n\t\t\tif (dirty[18] & /*panelIsActive*/ 134217728) utilpanel_changes.isActive = /*panelIsActive*/ ctx[585];\n\n\t\t\tif (!updating_component && dirty[0] & /*pluginInterface*/ 2 | dirty[18] & /*panel*/ 67108864) {\n\t\t\t\tupdating_component = true;\n\t\t\t\tutilpanel_changes.component = /*pluginInterface*/ ctx[1][/*panel*/ ctx[584]];\n\t\t\t\tadd_flush_callback(() => updating_component = false);\n\t\t\t}\n\n\t\t\tutilpanel.$set(utilpanel_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(utilpanel.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(utilpanel.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(utilpanel, detaching);\n\t\t}\n\t};\n}\n\n// (3881:4) {#if $disabledTransition > 0}\nfunction create_if_block_1$6(ctx) {\n\tlet span;\n\tlet span_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tattr(span, \"class\", \"PinturaEditorOverlay\");\n\t\t\tattr(span, \"style\", span_style_value = `opacity:${/*$disabledTransition*/ ctx[102]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[3] & /*$disabledTransition*/ 512 && span_style_value !== (span_style_value = `opacity:${/*$disabledTransition*/ ctx[102]}`)) {\n\t\t\t\tattr(span, \"style\", span_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (3884:4) {#if userTextInput}\nfunction create_if_block$9(ctx) {\n\tlet inputform;\n\tlet current;\n\n\tconst inputform_spread_levels = [\n\t\t{ layout: 'row' },\n\t\t{ parentRect: /*$stageRect*/ ctx[51] },\n\t\t/*userTextInput*/ ctx[61]\n\t];\n\n\tlet inputform_props = {\n\t\t$$slots: { default: [create_default_slot$b] },\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < inputform_spread_levels.length; i += 1) {\n\t\tinputform_props = assign(inputform_props, inputform_spread_levels[i]);\n\t}\n\n\tinputform = new InputForm({ props: inputform_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(inputform.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(inputform, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst inputform_changes = (dirty[1] & /*$stageRect, userTextInput*/ 1074790400)\n\t\t\t? get_spread_update(inputform_spread_levels, [\n\t\t\t\t\tinputform_spread_levels[0],\n\t\t\t\t\tdirty[1] & /*$stageRect*/ 1048576 && { parentRect: /*$stageRect*/ ctx[51] },\n\t\t\t\t\tdirty[1] & /*userTextInput*/ 1073741824 && get_spread_object(/*userTextInput*/ ctx[61])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[1] & /*userTextInput*/ 1073741824 | dirty[2] & /*userTextInputField*/ 1 | dirty[18] & /*$$scope*/ 536870912) {\n\t\t\t\tinputform_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tinputform.$set(inputform_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(inputform.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(inputform.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(inputform, detaching);\n\t\t}\n\t};\n}\n\n// (3885:8) <InputForm layout={'row'} parentRect={$stageRect} {...userTextInput}>\nfunction create_default_slot$b(ctx) {\n\tlet input;\n\tlet input_value_value;\n\tlet input_placeholder_value;\n\n\treturn {\n\t\tc() {\n\t\t\tinput = element(\"input\");\n\t\t\tinput.value = input_value_value = /*userTextInput*/ ctx[61].text;\n\t\t\tattr(input, \"placeholder\", input_placeholder_value = /*userTextInput*/ ctx[61].placeholder);\n\t\t\tattr(input, \"type\", \"text\");\n\t\t\tattr(input, \"spellcheck\", \"false\");\n\t\t\tattr(input, \"autocorrect\", \"off\");\n\t\t\tattr(input, \"autocapitalize\", \"off\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, input, anchor);\n\t\t\t/*input_binding*/ ctx[430](input);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*userTextInput*/ 1073741824 && input_value_value !== (input_value_value = /*userTextInput*/ ctx[61].text) && input.value !== input_value_value) {\n\t\t\t\tinput.value = input_value_value;\n\t\t\t}\n\n\t\t\tif (dirty[1] & /*userTextInput*/ 1073741824 && input_placeholder_value !== (input_placeholder_value = /*userTextInput*/ ctx[61].placeholder)) {\n\t\t\t\tattr(input, \"placeholder\", input_placeholder_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(input);\n\t\t\t/*input_binding*/ ctx[430](null);\n\t\t}\n\t};\n}\n\nfunction create_fragment$t(ctx) {\n\tlet div;\n\tlet t0;\n\tlet t1;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tadd_render_callback(/*onwindowresize*/ ctx[410]);\n\tlet if_block0 = /*canRender*/ ctx[41] && create_if_block_2$5(ctx);\n\tlet if_block1 = /*$disabledTransition*/ ctx[102] > 0 && create_if_block_1$6(ctx);\n\tlet if_block2 = /*userTextInput*/ ctx[61] && create_if_block$9(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tattr(div, \"id\", /*id*/ ctx[4]);\n\t\t\tattr(div, \"class\", /*className*/ ctx[77]);\n\t\t\tattr(div, \"data-env\", /*envStr*/ ctx[75]);\n\t\t\tattr(div, \"dir\", /*textDirection*/ ctx[12]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block0) if_block0.m(div, null);\n\t\t\tappend(div, t0);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tappend(div, t1);\n\t\t\tif (if_block2) if_block2.m(div, null);\n\t\t\t/*div_binding_1*/ ctx[431](div);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window_1$1, \"keydown\", /*handleKeydown*/ ctx[217]),\n\t\t\t\t\tlisten(window_1$1, \"keyup\", /*handleKeyup*/ ctx[218]),\n\t\t\t\t\tlisten(window_1$1, \"blur\", /*handleWindowBlur*/ ctx[219]),\n\t\t\t\t\tlisten(window_1$1, \"paste\", /*handlePaste*/ ctx[223]),\n\t\t\t\t\tlisten(window_1$1, \"resize\", /*onwindowresize*/ ctx[410]),\n\t\t\t\t\tlisten(div, \"ping\", function () {\n\t\t\t\t\t\tif (is_function(/*routePing*/ ctx[69])) /*routePing*/ ctx[69].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"contextmenu\", /*handleContextMenu*/ ctx[220]),\n\t\t\t\t\tlisten(div, \"touchstart\", /*handleTouchStart*/ ctx[215], { passive: false }),\n\t\t\t\t\tlisten(div, \"touchmove\", function () {\n\t\t\t\t\t\tif (is_function(/*handleTouchMove*/ ctx[72])) /*handleTouchMove*/ ctx[72].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"pointermove\", function () {\n\t\t\t\t\t\tif (is_function(/*handlePointerMove*/ ctx[71])) /*handlePointerMove*/ ctx[71].apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"transitionend\", /*handleTransitionEnd*/ ctx[205]),\n\t\t\t\t\tlisten(div, \"dropfiles\", /*handleDropFiles*/ ctx[221]),\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler_2*/ ctx[432]),\n\t\t\t\t\tlisten(div, \"click\", function () {\n\t\t\t\t\t\tif (is_function(/*isWaitingForImage*/ ctx[43]\n\t\t\t\t\t\t? /*browseFileSystem*/ ctx[222]\n\t\t\t\t\t\t: noop$1)) (/*isWaitingForImage*/ ctx[43]\n\t\t\t\t\t\t? /*browseFileSystem*/ ctx[222]\n\t\t\t\t\t\t: noop$1).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(measurable.call(null, div, {\n\t\t\t\t\t\tobserveViewRect: true,\n\t\t\t\t\t\tisMeasureRoot: true\n\t\t\t\t\t})),\n\t\t\t\t\taction_destroyer(focusvisible.call(null, div)),\n\t\t\t\t\taction_destroyer(dropable.call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (/*canRender*/ ctx[41]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*canRender*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2$5(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*$disabledTransition*/ ctx[102] > 0) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1$6(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(div, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\n\t\t\tif (/*userTextInput*/ ctx[61]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif_block2.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*userTextInput*/ 1073741824) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block$9(ctx);\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*id*/ 16) {\n\t\t\t\tattr(div, \"id\", /*id*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[2] & /*className*/ 32768) {\n\t\t\t\tattr(div, \"class\", /*className*/ ctx[77]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[2] & /*envStr*/ 8192) {\n\t\t\t\tattr(div, \"data-env\", /*envStr*/ ctx[75]);\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*textDirection*/ 4096) {\n\t\t\t\tattr(div, \"dir\", /*textDirection*/ ctx[12]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t\tif (if_block2) if_block2.d();\n\t\t\t/*div_binding_1*/ ctx[431](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nlet frameUpdateRequestDist = 16;\n\n// dragging & zooming / the inteded crop rect, combined with actual crop rect, used to render elasticity visualisation\nconst imageCropRectElasticity = 5;\n\n// updating crop selection / the intended selection rect, combined with actual selection rect, used to render elasticity visualisation\nconst imageSelectionRectElasticity = 1;\n\nconst OVERLAY_ID = 'stage-overlay';\nconst OVERLAY_OPACITY_TWEEN_DIST = 64;\nconst scrollElasticity = 10;\nconst rangeInputElasticity = 5;\n\nfunction instance$t($$self, $$props, $$invalidate) {\n\tlet isTrimPluginLoaded;\n\tlet isVideoSupported;\n\tlet videoFrameOffsetFixed;\n\tlet videoTrim;\n\tlet videoTrimFirst;\n\tlet videoTrimLast;\n\tlet videoTrimFixed;\n\tlet videoTrimCurrentIndex;\n\tlet videoTrimNextIndex;\n\tlet isOverlayModeEnabled;\n\tlet showUtils;\n\tlet maxImageDataSize;\n\tlet preprocessShape;\n\tlet supportsAnimations;\n\tlet canAnimate;\n\tlet acceptsAnimations;\n\tlet OVERLAY_OPACITY_MAX;\n\tlet overlayMin;\n\tlet overlayOverlap;\n\tlet overlayLeft;\n\tlet overlayTop;\n\tlet overlayRight;\n\tlet overlayBottom;\n\tlet gradientOverlays;\n\tlet imageTransformsSnapPixels;\n\tlet canUndo;\n\tlet canRedo;\n\tlet utilsFiltered;\n\tlet utilsAvailable;\n\tlet utilsDefined;\n\tlet utilsMerged;\n\tlet utilSelected;\n\tlet utilsVisibleFraction;\n\tlet tabsConfig;\n\tlet tabs;\n\tlet panels;\n\tlet shouldRenderTabs;\n\tlet className;\n\tlet horizontalSpace;\n\tlet hasLimitedSpace;\n\tlet verticalSpace;\n\tlet isModal;\n\tlet isCenteredHorizontally;\n\tlet isCenteredVertically;\n\tlet isCentered;\n\tlet isTransparent;\n\tlet isNarrow;\n\tlet orientation;\n\tlet isLandscape;\n\tlet isCompact;\n\tlet hasSwipeNavigation;\n\tlet activeUtilTools;\n\tlet navigationHorizontalPreference;\n\tlet navigationVerticalPreference;\n\tlet toolbarVerticalPreference;\n\tlet controlGroupsVerticalPreference;\n\tlet controlTabsVerticalpreference;\n\tlet rootRectDefined;\n\tlet rootElementComputedStyle;\n\tlet envStr;\n\tlet imageCanvasState;\n\tlet hasProps;\n\tlet missingFeatures;\n\tlet isSupportsError;\n\tlet isStartLoadingImageSource;\n\tlet isImageLoadError;\n\tlet isWaitingForImage;\n\tlet imageLoadProgress;\n\tlet isLoadingImageData;\n\tlet isCreatingImagePreview;\n\tlet isProcessingImage;\n\tlet imageLoadShowProgressIndicator;\n\tlet imageLoadStatusLabel;\n\tlet imageProcessStatusLabel;\n\tlet imageProcessProgress;\n\tlet imageProcessShowProgressIndicator;\n\tlet isImageProcessingError;\n\tlet isCustomStatus;\n\tlet isStatusActive;\n\tlet isStatusVisible;\n\tlet hasAside;\n\tlet statusIndent;\n\tlet statusTransform;\n\tlet needsInteractionLock;\n\tlet preventTouchHandler;\n\tlet handleTouchMove;\n\tlet handlePointerMove;\n\tlet toolbarItems;\n\tlet hasClientRect;\n\tlet canRender;\n\tlet hasImageRedaction;\n\tlet imageRedactionScalar;\n\tlet manipulationShapes;\n\tlet routePing;\n\tlet isReady;\n\tlet $utilRect;\n\n\tlet $imagePreview,\n\t\t$$unsubscribe_imagePreview = noop,\n\t\t$$subscribe_imagePreview = () => ($$unsubscribe_imagePreview(), $$unsubscribe_imagePreview = subscribe(imagePreview, $$value => $$invalidate(354, $imagePreview = $$value)), imagePreview);\n\n\tlet $imageFrame;\n\tlet $imageDecoration;\n\tlet $imageSize;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $imageRotation;\n\tlet $imageAnnotation;\n\tlet $stageRect;\n\tlet $rootRect;\n\tlet $isInteractingFraction;\n\tlet $isInteracting;\n\tlet $rootLineColor;\n\tlet $rootForegroundColor;\n\tlet $imageManipulation;\n\tlet $imageRedaction;\n\tlet $imageRedactionRendering;\n\tlet $imageBackgroundColor;\n\tlet $imageScrambler;\n\tlet $pressedKeysStore;\n\tlet $allowPlayPause;\n\tlet $clientRect;\n\tlet $env;\n\tlet $redrawTrigger;\n\tlet $imageProcessingPreparing;\n\tlet $isAnimated;\n\tlet $statusOffset;\n\tlet $asideWidth;\n\tlet $statusWidth;\n\tlet $statusOpacity;\n\tlet $wasProcessingImage;\n\tlet $imageVisualLoadComplete;\n\tlet $imageProcessState;\n\tlet $imageLoadState;\n\tlet $imagePreviewSource;\n\tlet $activeImages;\n\tlet $imageProps;\n\tlet $shouldAnimate;\n\tlet $imagePreviewModifiers;\n\tlet $imageTransforms;\n\tlet $pointerHoverable;\n\tlet $pointerAccuracy;\n\tlet $utilTools;\n\tlet $imageFile;\n\tlet $previewShouldUpscale;\n\n\tlet $history,\n\t\t$$unsubscribe_history = noop,\n\t\t$$subscribe_history = () => ($$unsubscribe_history(), $$unsubscribe_history = subscribe(history, $$value => $$invalidate(384, $history = $$value)), history);\n\n\tlet $imageState;\n\tlet $tabRect;\n\tlet $imageOverlayMarkup;\n\tlet $overlayBottomRect;\n\tlet $overlayOpacity;\n\tlet $rootBackgroundColor;\n\tlet $overlayRightRect;\n\tlet $overlayTopRect;\n\tlet $overlayLeftRect;\n\tlet $pixelRatio;\n\tlet $imageSelectionRectPresentation;\n\tlet $stagePadding;\n\tlet $stagePadded;\n\tlet $imageSelectionRectStaticScalar;\n\tlet $imageSelectionRect;\n\tlet $imageCropRect;\n\tlet $imageStaticBounds;\n\tlet $imageCropRectIntent;\n\tlet $imageSelectionRectSnapshot;\n\tlet $imageIsStatic;\n\tlet $imageCropRectSnapshot;\n\tlet $presentationScalar;\n\tlet $stageScalar;\n\tlet $imageSelectionScalar;\n\tlet $imageSelectionPan;\n\tlet $imageSelectionRectIntent;\n\tlet $imageSelectionRectOffset;\n\tlet $imageSelectionZoom;\n\tlet $prefersReducedMotion;\n\tlet $rootInsetTop;\n\tlet $imageCropAspectRatio;\n\tlet $enablePanInputStore;\n\tlet $enablePanInputProp;\n\tlet $allowZoomControls;\n\tlet $imageSelection;\n\tlet $shapePreprocessor;\n\tlet $images;\n\tlet $mediaTrim;\n\tlet $willRequest;\n\tlet $elasticityMultiplierStore;\n\tlet $mediaVolume;\n\tlet $isMuted;\n\tlet $videoFramePeekOffset;\n\tlet $videoFrameOffset;\n\tlet $mediaDuration;\n\tlet $mediaMaxDuration;\n\tlet $asideOffset;\n\tlet $asideOpacity;\n\tlet $toolRect;\n\tlet $imageCropLimitToImage;\n\tlet $interfaceImages;\n\tlet $gridSize;\n\tlet $gridColorEven;\n\tlet $gridColorOdd;\n\tlet $gridOpacity;\n\tlet $rootColorPrimary;\n\tlet $willRequestResource;\n\tlet $imageOverlay;\n\tlet $allowPan;\n\tlet $enablePanInputStatus;\n\tlet $allowZoom;\n\tlet $enableZoomInputStore;\n\tlet $enableZoomControlsProp;\n\tlet $imageSelectionRectCentered;\n\tlet $imageSelectionRectScalar;\n\tlet $disabledTransition;\n\tcomponent_subscribe($$self, prefersReducedMotion, $$value => $$invalidate(398, $prefersReducedMotion = $$value));\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_imagePreview());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_history());\n\tconst eventProxy = pubsub();\n\tconst dispatch = createEventDispatcher();\n\tlet { class: klass = undefined } = $$props;\n\tlet { layout: layoutMode = undefined } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = undefined } = $$props;\n\tlet { id = undefined } = $$props;\n\tlet { util = undefined } = $$props;\n\tlet { utils = undefined } = $$props;\n\tlet { animations = 'auto' } = $$props;\n\tlet { disabled = false } = $$props;\n\tlet { status = undefined } = $$props;\n\tlet { previewUpscale = false } = $$props;\n\tlet { previewPad = false } = $$props;\n\tlet { previewMaskOpacity = 0.95 } = $$props;\n\tlet { previewImageDataMaxSize = undefined } = $$props;\n\tlet { previewImageTextPixelRatio = undefined } = $$props;\n\tlet { markupMaskOpacity = 1 } = $$props;\n\tlet { zoomMaskOpacity = 0.85 } = $$props;\n\tlet { elasticityMultiplier = 10 } = $$props;\n\tlet { willRevert = () => Promise.resolve(true) } = $$props;\n\tlet { willProcessImage = () => Promise.resolve(true) } = $$props;\n\tlet { willRenderCanvas = passthrough } = $$props;\n\tlet { willRenderToolbar = passthrough } = $$props;\n\tlet { willSetHistoryInitialState = passthrough } = $$props;\n\tlet { enableButtonExport = true } = $$props;\n\tlet { enableButtonRevert = true } = $$props;\n\tlet { enableNavigateHistory = true } = $$props;\n\tlet { enableToolbar = true } = $$props;\n\tlet { enableUtils = true } = $$props;\n\tlet { enableButtonClose = false } = $$props;\n\tlet { enableDropImage = false } = $$props;\n\tlet { enablePasteImage = false } = $$props;\n\tlet { enableBrowseImage = false } = $$props;\n\tlet { enableTransparencyGrid = false } = $$props;\n\tlet { layoutDirectionPreference = 'auto' } = $$props;\n\tlet { layoutHorizontalUtilsPreference = 'left' } = $$props;\n\tlet { layoutVerticalUtilsPreference = 'bottom' } = $$props;\n\tlet { layoutVerticalToolbarPreference = 'top' } = $$props;\n\tlet { layoutVerticalControlGroupsPreference = 'bottom' } = $$props;\n\tlet { layoutVerticalControlTabsPreference = 'bottom' } = $$props;\n\tlet { textDirection = undefined } = $$props;\n\tlet { markupEditorZoomLevel = null } = $$props;\n\tlet { markupEditorZoomLevels = undefined } = $$props;\n\tlet { markupEditorZoomAdjustStep = undefined } = $$props;\n\tlet { markupEditorZoomAdjustFactor = undefined } = $$props;\n\tlet { markupEditorZoomAdjustWheelFactor = undefined } = $$props;\n\tlet { markupEditorInteractionMode = false } = $$props;\n\tlet { muteAudio = true } = $$props;\n\tlet { willSetMediaInitialTimeOffset = (duration, trim) => duration * getRangeCenter(trim[0]) } = $$props;\n\tlet { enablePan = true } = $$props;\n\tlet { enableZoom = true } = $$props;\n\tlet { enableZoomControls = true } = $$props;\n\tlet { enableZoomInput = undefined } = $$props;\n\tlet { enablePanInput = undefined } = $$props;\n\tlet { enableCanvasAlpha = false } = $$props;\n\tlet { enablePanLimit = undefined } = $$props;\n\tlet { panLimitGutterScalar = undefined } = $$props;\n\tlet { zoomPresetOptions = [0.25, 0.5, 1, 1.25, 1.5, 2, 3, 4, 6, 8, 16] } = $$props;\n\tlet { zoomAdjustStep = 0.25 } = $$props;\n\tlet { zoomAdjustFactor = 0.1 } = $$props;\n\tlet { zoomAdjustWheelFactor = 1 } = $$props;\n\tlet { zoomLevel = null } = $$props;\n\n\t// toggle text input\n\tlet userTextInput;\n\n\tlet userTextInputField;\n\tconst hideTextInput = () => $$invalidate(61, userTextInput = undefined);\n\n\tconst showTextInput = (confirm, cancel, options) => {\n\t\tconst { text = '', placeholder = '', autoClose = true, align = 'top', justify = 'center', buttonConfirm, buttonCancel } = options;\n\n\t\t$$invalidate(61, userTextInput = {\n\t\t\t// settings\n\t\t\talign,\n\t\t\tjustify,\n\t\t\ttext,\n\t\t\tplaceholder,\n\t\t\tbuttonConfirm,\n\t\t\tbuttonCancel,\n\t\t\t// resolve with entered text\n\t\t\tonconfirm: () => {\n\t\t\t\t// no error, pass text\n\t\t\t\tconfirm(userTextInputField.value);\n\n\t\t\t\tif (autoClose) $$invalidate(61, userTextInput = undefined);\n\t\t\t},\n\t\t\t// close on reject\n\t\t\toncancel: () => {\n\t\t\t\t// no error, pass undefined for cancel\n\t\t\t\tcancel(undefined);\n\n\t\t\t\t// always auto closes on cancel\n\t\t\t\t$$invalidate(61, userTextInput = undefined);\n\t\t\t}\n\t\t});\n\t};\n\n\tlet { imagePreviewSrc = undefined } = $$props;\n\tlet { imageOrienter = { read: () => 1, apply: v => v } } = $$props;\n\tlet { pluginComponents = undefined } = $$props;\n\tlet { pluginOptions = {} } = $$props;\n\tconst sub = eventProxy.sub;\n\tconst pluginInterface = {};\n\tlet { root } = $$props;\n\n\t// used to update the image preview texture to show the current frame\n\tconst redrawPreview = () => {\n\t\t$imagePreview.setAttribute('data-redraw', 'true');\n\t\tredrawTrigger.set({});\n\t};\n\n\tconst allowPlayPause = writable(true);\n\tcomponent_subscribe($$self, allowPlayPause, value => $$invalidate(464, $allowPlayPause = value));\n\tconst videoFramePeekOffset = writable(undefined);\n\tcomponent_subscribe($$self, videoFramePeekOffset, value => $$invalidate(406, $videoFramePeekOffset = value));\n\tconst videoFrameOffset = writable(0);\n\tcomponent_subscribe($$self, videoFrameOffset, value => $$invalidate(407, $videoFrameOffset = value));\n\tconst videoCurrentTime = writable(0);\n\tconst videoIsPlaying = writable(false);\n\tconst initFrameOffset = () => videoFrameOffset.set(getCurrentTime() / getDuration());\n\n\tconst updatePlayState = e => {\n\t\tvideoIsPlaying.set(e.type === 'play');\n\t\teventProxy.pub(e.type);\n\t};\n\n\tlet prevTime;\n\tlet prevUpdateFrameRequestTimestamp;\n\n\tconst didUpdateFrame = offset => {\n\t\t// in play mode updating the frame is done without seeking\n\t\tif (!isPaused()) return;\n\n\t\tconst updateFrameRequestTimestamp = Date.now();\n\t\tif (prevUpdateFrameRequestTimestamp && updateFrameRequestTimestamp - prevUpdateFrameRequestTimestamp < frameUpdateRequestDist) return;\n\t\tprevUpdateFrameRequestTimestamp = updateFrameRequestTimestamp;\n\n\t\t// selected time in video\n\t\tconst time = $mediaDuration * offset;\n\n\t\t// only accept frame offset with a certain precision\n\t\tif (time.toFixed(1) === prevTime) return;\n\n\t\t// remember so we can skip duplicate offsets\n\t\tprevTime = time.toFixed(1);\n\n\t\t// when frame found, update preview\n\t\tconst video = $imagePreview;\n\n\t\tconst onseeked = () => {\n\t\t\tvideo.removeEventListener('seeked', onseeked);\n\t\t\tredrawPreview();\n\t\t};\n\n\t\tvideo.addEventListener('seeked', onseeked);\n\n\t\t// seek new point\n\t\tfastSeek(video, time);\n\t};\n\n\tlet videoDidEnterClip = false;\n\tlet videoAnimationFrame;\n\tlet videoPlayStartClipIndex;\n\n\tconst play = () => {\n\t\tif (!isVideoSupported || !isPaused()) return;\n\n\t\t// we store this so we know if we need to stop when reaching end of clip\n\t\tvideoPlayStartClipIndex = videoTrimCurrentIndex;\n\n\t\t// stop using peek offset\n\t\tset_store_value(videoFramePeekOffset, $videoFramePeekOffset = undefined, $videoFramePeekOffset);\n\n\t\t// reference to prevent issues with svelte set store value function\n\t\tconst video = $imagePreview;\n\n\t\t// start outside clip if current clip index is not set\n\t\tvideoDidEnterClip = false;\n\n\t\t// start from beginning if is at the end of video clip when pressing play\n\t\tconst frameDist = 1 / 24;\n\n\t\tconst duration = getDuration();\n\t\tconst isAtEdgeOfLastTrim = Math.abs(videoTrimLast * duration - $videoFrameOffset * duration) <= frameDist;\n\t\tconst isAtEndOfVideo = duration - duration * $videoFrameOffset <= frameDist;\n\n\t\tif (isAtEdgeOfLastTrim || isAtEndOfVideo) {\n\t\t\tset_store_value(videoFrameOffset, $videoFrameOffset = videoTrimFirst, $videoFrameOffset);\n\t\t}\n\n\t\t// skip to frame location\n\t\tsetCurrentTime(getDuration() * $videoFrameOffset);\n\n\t\t// start playing\n\t\tvideo.play().catch(() => {\n\t\t\t\n\t\t}); // paused before could start playing, silence this error for now\n\n\t\t// draw loop\n\t\tconst draw = () => {\n\t\t\t// is paused\n\t\t\tif (isPaused()) return;\n\n\t\t\t// next loop\n\t\t\tvideoAnimationFrame = requestAnimationFrame(draw);\n\n\t\t\t// update ui\n\t\t\tset_store_value(videoFrameOffset, $videoFrameOffset = getCurrentTime() / getDuration(), $videoFrameOffset);\n\n\t\t\t// pause when hits last frame\n\t\t\tif (videoPlayStartClipIndex >= 0 && $videoFrameOffset >= videoTrimLast) {\n\t\t\t\tset_store_value(videoFrameOffset, $videoFrameOffset = videoTrimLast, $videoFrameOffset);\n\t\t\t\tpause();\n\t\t\t}\n\n\t\t\t// we played a clip so we'll now skip to next clips when reaching end of clip\n\t\t\tif (videoTrimCurrentIndex > -1) videoDidEnterClip = true;\n\n\t\t\t// skip to next clip if at end of current clip\n\t\t\tif (videoDidEnterClip && videoTrimCurrentIndex === -1 && videoTrimNextIndex > 0) {\n\t\t\t\tset_store_value(videoFrameOffset, $videoFrameOffset = videoTrim[videoTrimNextIndex][0], $videoFrameOffset);\n\t\t\t\tsetCurrentTime($videoFrameOffset * getDuration());\n\t\t\t}\n\n\t\t\t// draw frame\n\t\t\tredrawPreview();\n\t\t};\n\n\t\t// go!\n\t\tdraw();\n\t};\n\n\tconst pause = () => {\n\t\tif (!isVideoSupported || isPaused()) return;\n\t\tset_store_value(videoFramePeekOffset, $videoFramePeekOffset = undefined, $videoFramePeekOffset);\n\t\tvideoPlayStartClipIndex = undefined;\n\t\t$imagePreview.pause();\n\t\tcancelAnimationFrame(videoAnimationFrame);\n\t\tredrawPreview();\n\t};\n\n\tconst isPaused = () => $imagePreview && $imagePreview.paused;\n\n\tconst togglePlayPause = () => {\n\t\tif (!isVideoSupported) return;\n\t\treturn isPaused() ? play() : pause();\n\t};\n\n\tconst mute = () => {\n\t\tif (!isVideoSupported) return;\n\t\tconst video = $imagePreview;\n\t\tvideo.muted = true;\n\t};\n\n\tconst unmute = () => {\n\t\tif (!isVideoSupported) return;\n\t\tconst video = $imagePreview;\n\t\tvideo.muted = false;\n\t};\n\n\tconst toggleMute = () => {\n\t\tif (!isVideoSupported) return;\n\t\tset_store_value(isMuted, $isMuted = !$isMuted, $isMuted);\n\t};\n\n\tconst isMuted = writable(muteAudio);\n\tcomponent_subscribe($$self, isMuted, value => $$invalidate(405, $isMuted = value));\n\n\tconst getDuration = () => {\n\t\tif (!isVideoSupported) return;\n\t\treturn $imagePreview.duration;\n\t};\n\n\tconst getCurrentTime = () => {\n\t\tif (!isVideoSupported) return;\n\t\tconst video = $imagePreview;\n\t\treturn video.currentTime;\n\t};\n\n\tconst setCurrentTime = time => {\n\t\tif (!isVideoSupported) return;\n\t\tconst video = $imagePreview;\n\t\tvideo.currentTime = time;\n\t\tvideoCurrentTime.set(time);\n\t};\n\n\tconst setVolume = volume => {\n\t\tif (!isVideoSupported) return;\n\t\tconst video = $imagePreview;\n\t\tvideo.volume = Math.min(1, volume);\n\t};\n\n\tsetContext('previewcontrols', {\n\t\tplay,\n\t\tpause,\n\t\ttogglePlayPause,\n\t\tmute,\n\t\tunmute,\n\t\ttoggleMute,\n\t\tsetCurrentTime,\n\t\tgetCurrentTime,\n\t\tgetDuration,\n\t\tcurrentTime: videoCurrentTime,\n\t\tframeOffset: videoFrameOffset,\n\t\tframePeekOffset: videoFramePeekOffset,\n\t\tisPlaying: videoIsPlaying,\n\t\tisMuted\n\t});\n\n\t// setup redraw store\n\tconst redrawTrigger = writable({});\n\n\tcomponent_subscribe($$self, redrawTrigger, value => $$invalidate(53, $redrawTrigger = value));\n\tsetContext('redrawTrigger', redrawTrigger);\n\tconst elasticityMultiplierStore = writable(elasticityMultiplier);\n\tcomponent_subscribe($$self, elasticityMultiplierStore, value => $$invalidate(480, $elasticityMultiplierStore = value));\n\tsetContext('elasticityMultiplier', elasticityMultiplierStore);\n\tlet registeredPluginsComponents = [];\n\n\t// editor disabled spring for animating in and out disabled state\n\tconst disabledTransition = spring();\n\n\tcomponent_subscribe($$self, disabledTransition, value => $$invalidate(102, $disabledTransition = value));\n\n\t// this method is used to read image resources (preview image / shape images)\n\tconst glMaxTextureSize = getWebGLTextureSizeLimit() || 1024;\n\n\tconst maxTextureSize = sizeCreate(glMaxTextureSize, glMaxTextureSize);\n\tconst canvasMemoryLimit = getCanvasMemoryLimit();\n\n\tconst fetchSrc = src => Promise.resolve($willRequest && $willRequest(src, { resourceType: 'image' })).then(requestInit => {\n\t\t// do something with options\n\t\tif (requestInit === false) return;\n\n\t\t// get props\n\t\tconst { headers, credentials } = requestInit || {};\n\n\t\t// fetch\n\t\treturn fetch(src, { headers, credentials }).then(res => {\n\t\t\tif (res.status !== 200) throw `${res.status} (${res.statusText})`;\n\t\t\treturn res.blob();\n\t\t}).then(blob => blobToImageBitmap(blob, imageOrienter, canvasMemoryLimit)).then(imageData => imageDataContain(imageData, maxImageDataSize));\n\t});\n\n\tlet { imageSourceToImageData = src => isString(src)\n\t? // it's a url src\n\t\tfetchSrc(src)\n\t: isElement(src)\n\t\t? // assume src is a <canvas>\n\t\t\tnew Promise(resolve => resolve(canvasToImageData(src)))\n\t\t: // assume src is a File or Blob\n\t\t\tisBlob(src) || isFile(src)\n\t\t\t? blobToImageBitmap(src, imageOrienter, canvasMemoryLimit).then(imageData => imageDataContain(imageData, maxImageDataSize))\n\t\t\t: undefined } = $$props;\n\n\tconst imageProxy = createImageProxy();\n\tconst { file: imageFile, size: imageSize, duration: mediaDuration, trim: mediaTrim, volume: mediaVolume, minDuration: mediaMinDuration, maxDuration: mediaMaxDuration, loadState: imageLoadState, processState: imageProcessState, cropAspectRatio: imageCropAspectRatio, cropLimitToImage: imageCropLimitToImage, crop: imageCropRect, cropMinSize: imageCropMinSize, cropMaxSize: imageCropMaxSize, cropRange: imageCropRange, cropOrigin: imageCropRectOrigin, cropRectAspectRatio: imageCropRectAspectRatio, rotation: imageRotation, rotationRange: imageRotationRange, targetSize: imageOutputSize, flipX: imageFlipX, flipY: imageFlipY, backgroundColor: imageBackgroundColor, backgroundImage: imageBackgroundImageSrc, colorMatrix: imageColorMatrix, convolutionMatrix: imageConvolutionMatrix, gamma: imageGamma, vignette: imageVignette, noise: imageNoise, decoration: imageDecoration, annotation: imageAnnotation, manipulation: imageManipulation, redaction: imageRedaction, frame: imageFrame, selection: imageSelection, state: imageState } = imageProxy.stores;\n\tcomponent_subscribe($$self, imageFile, value => $$invalidate(382, $imageFile = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(355, $imageSize = value));\n\tcomponent_subscribe($$self, mediaDuration, value => $$invalidate(408, $mediaDuration = value));\n\tcomponent_subscribe($$self, mediaTrim, value => $$invalidate(403, $mediaTrim = value));\n\tcomponent_subscribe($$self, mediaVolume, value => $$invalidate(404, $mediaVolume = value));\n\tcomponent_subscribe($$self, mediaMaxDuration, value => $$invalidate(409, $mediaMaxDuration = value));\n\tcomponent_subscribe($$self, imageLoadState, value => $$invalidate(374, $imageLoadState = value));\n\tcomponent_subscribe($$self, imageProcessState, value => $$invalidate(373, $imageProcessState = value));\n\tcomponent_subscribe($$self, imageCropAspectRatio, value => $$invalidate(477, $imageCropAspectRatio = value));\n\tcomponent_subscribe($$self, imageCropLimitToImage, value => $$invalidate(86, $imageCropLimitToImage = value));\n\tcomponent_subscribe($$self, imageCropRect, value => $$invalidate(393, $imageCropRect = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(358, $imageRotation = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(357, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(356, $imageFlipY = value));\n\tcomponent_subscribe($$self, imageBackgroundColor, value => $$invalidate(364, $imageBackgroundColor = value));\n\tcomponent_subscribe($$self, imageDecoration, value => $$invalidate(49, $imageDecoration = value));\n\tcomponent_subscribe($$self, imageAnnotation, value => $$invalidate(50, $imageAnnotation = value));\n\tcomponent_subscribe($$self, imageManipulation, value => $$invalidate(361, $imageManipulation = value));\n\tcomponent_subscribe($$self, imageRedaction, value => $$invalidate(362, $imageRedaction = value));\n\tcomponent_subscribe($$self, imageFrame, value => $$invalidate(48, $imageFrame = value));\n\tcomponent_subscribe($$self, imageSelection, value => $$invalidate(60, $imageSelection = value));\n\tcomponent_subscribe($$self, imageState, value => $$invalidate(466, $imageState = value));\n\n\tconst createImageSrcLoader = (src, token, minDuration = 0) => new Promise((resolve, reject) => {\n\t\t\t// is a video\n\t\t\tif (isVideoFile(src)) {\n\t\t\t\tconst metadataReader = isFirefox()\n\t\t\t\t? getVideoFileRotationMetadata(src)\n\t\t\t\t: Promise.resolve();\n\n\t\t\t\tmetadataReader.then(rotation => {\n\t\t\t\t\t// let's load this source as a video file\n\t\t\t\t\tconst video = document.createElement('video');\n\n\t\t\t\t\tvideo.onerror = () => console.error(video.error);\n\t\t\t\t\tvideo.playsInline = true;\n\t\t\t\t\tvideo.preload = 'auto';\n\n\t\t\t\t\tvideo.onloadeddata = () => {\n\t\t\t\t\t\tvideo.onloadeddata = undefined;\n\t\t\t\t\t\tvideo.dataset.rotation = rotation || '0';\n\n\t\t\t\t\t\tvideoFixDuration(video).then(() => {\n\t\t\t\t\t\t\tconst time = willSetMediaInitialTimeOffset(video.duration, $mediaTrim || [[0, 1]]);\n\n\t\t\t\t\t\t\t// need to wait till seeked to center pos\n\t\t\t\t\t\t\tif (time > 0) {\n\t\t\t\t\t\t\t\tvideo.onseeked = () => {\n\t\t\t\t\t\t\t\t\tvideo.onseeked = undefined;\n\t\t\t\t\t\t\t\t\tresolve(video);\n\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t\tvideo.currentTime = time;\n\t\t\t\t\t\t\t} else // can just get started right away\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tvideo.currentTime = time;\n\t\t\t\t\t\t\t\tresolve(video);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\n\t\t\t\t\tvideo.src = URL.createObjectURL(src);\n\n\t\t\t\t\t// this is needed to trigger load on iOS Safari\n\t\t\t\t\tvideo.load();\n\t\t\t\t});\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlet cancelled = false;\n\t\t\tlet timer;\n\t\t\ttoken.cancel = () => cancelled = true;\n\t\t\tconst now = Date.now();\n\n\t\t\timageSourceToImageData(src).then(imageData => {\n\t\t\t\tconst dist = Date.now() - now;\n\t\t\t\tclearTimeout(timer);\n\n\t\t\t\ttimer = setTimeout(\n\t\t\t\t\t() => {\n\t\t\t\t\t\tif (cancelled) return;\n\t\t\t\t\t\tresolve(imageData);\n\t\t\t\t\t},\n\t\t\t\t\tMath.max(0, minDuration - dist)\n\t\t\t\t);\n\t\t\t}).catch(reject);\n\t\t});\n\n\tconst { images, shapePreprocessor, imageScrambler, imageRedactionRendering, willRequest, willRequestResource } = stores;\n\tcomponent_subscribe($$self, images, value => $$invalidate(402, $images = value));\n\tcomponent_subscribe($$self, shapePreprocessor, value => $$invalidate(401, $shapePreprocessor = value));\n\tcomponent_subscribe($$self, imageScrambler, value => $$invalidate(365, $imageScrambler = value));\n\tcomponent_subscribe($$self, imageRedactionRendering, value => $$invalidate(363, $imageRedactionRendering = value));\n\tcomponent_subscribe($$self, willRequest, value => $$invalidate(82, $willRequest = value));\n\tcomponent_subscribe($$self, willRequestResource, value => $$invalidate(93, $willRequestResource = value));\n\tlet backgroundImageDataCancelToken;\n\n\tconst imageBackgroundImageData = derived(imageBackgroundImageSrc, ($backgroundImageSrc, set) => {\n\t\tif (!$backgroundImageSrc) return set(undefined);\n\n\t\t// cancel existing loader\n\t\tif (backgroundImageDataCancelToken) {\n\t\t\tbackgroundImageDataCancelToken.cancel();\n\t\t\tbackgroundImageDataCancelToken = undefined;\n\t\t}\n\n\t\t// new cancel token\n\t\tbackgroundImageDataCancelToken = { cancel: noop$1 };\n\n\t\tcreateImageSrcLoader($backgroundImageSrc, backgroundImageDataCancelToken).then(set).catch(err => {\n\t\t\t// log to console for debugging purposes\n\t\t});\n\t});\n\n\t// let the world know about state changes\n\tconst imageStateUnsub = imageState.subscribe(state => eventProxy.pub('update', state));\n\n\t// this will hold the currently selected util\n\tconst utilSelectedStore = writable();\n\n\t// current editor UI state\n\tconst uiState = writable({});\n\n\tsetContext('ui', uiState);\n\n\t// image selection state\n\tsetContext('selection', imageSelection);\n\n\t// utils can toggle pan and zoom\n\tconst allowPan = writable(true);\n\n\tcomponent_subscribe($$self, allowPan, value => $$invalidate(95, $allowPan = value));\n\tconst allowZoom = writable(true);\n\tcomponent_subscribe($$self, allowZoom, value => $$invalidate(97, $allowZoom = value));\n\tconst allowZoomControls = writable(true);\n\tcomponent_subscribe($$self, allowZoomControls, value => $$invalidate(400, $allowZoomControls = value));\n\tconst enablePanInputStore = writable(true);\n\tcomponent_subscribe($$self, enablePanInputStore, value => $$invalidate(478, $enablePanInputStore = value));\n\tconst enableZoomInputStore = writable(true);\n\tcomponent_subscribe($$self, enableZoomInputStore, value => $$invalidate(98, $enableZoomInputStore = value));\n\n\t// so controls can be disabled from other component\n\tconst enableZoomControlsProp = writable();\n\n\tcomponent_subscribe($$self, enableZoomControlsProp, value => $$invalidate(99, $enableZoomControlsProp = value));\n\n\t// so we can derive pan input status\n\tconst enablePanInputProp = writable();\n\n\tcomponent_subscribe($$self, enablePanInputProp, value => $$invalidate(479, $enablePanInputProp = value));\n\n\t// current pan input status\n\tconst enablePanInputStatus = derived([enablePanInputProp, enablePanInputStore], (() => $enablePanInputProp !== undefined\n\t? $enablePanInputProp\n\t: $enablePanInputStore));\n\n\tcomponent_subscribe($$self, enablePanInputStatus, value => $$invalidate(96, $enablePanInputStatus = value));\n\n\t//\n\t// handles the view rect size, makes sure it is offset from the top\n\t//\n\t// root element reference used to read styles\n\tconst rootBackgroundColor = writable([0, 0, 0]);\n\n\tcomponent_subscribe($$self, rootBackgroundColor, value => $$invalidate(57, $rootBackgroundColor = value));\n\tconst rootForegroundColor = writable([1, 1, 1]);\n\tcomponent_subscribe($$self, rootForegroundColor, value => $$invalidate(462, $rootForegroundColor = value));\n\tconst rootLineColor = spring([1, 1, 1]);\n\tcomponent_subscribe($$self, rootLineColor, value => $$invalidate(461, $rootLineColor = value));\n\tconst rootColorPrimary = writable();\n\tcomponent_subscribe($$self, rootColorPrimary, value => $$invalidate(92, $rootColorPrimary = value));\n\tconst rootColorSecondary = writable();\n\n\t// client rect is the editor rect excluding scroll offset\n\tconst clientRect = writable();\n\n\tcomponent_subscribe($$self, clientRect, value => $$invalidate(52, $clientRect = value));\n\n\t// root rect is the editor rect including scroll offset\n\tconst rootRect = writable();\n\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(359, $rootRect = value));\n\n\t// when in overlay mode force aspect ratio to aspect ratio of editor root\n\tconst syncRootAspectRatio = () => {\n\t\t// get current aspect ratio and get next aspect ratio, compare, if different, reset\n\t\tconst currentAspectRatio = $imageCropAspectRatio;\n\n\t\tconst nextAspectRatio = rectAspectRatio($rootRect);\n\t\tif (currentAspectRatio && currentAspectRatio === nextAspectRatio) return;\n\n\t\t// set aspect ratio\n\t\timageCropAspectRatio.set(rectAspectRatio($rootRect));\n\n\t\t// need to set history 0 point to this state\n\t\tsetInitialHistoryState();\n\t};\n\n\tconst tabRect = writable(rectCreateEmpty());\n\tcomponent_subscribe($$self, tabRect, value => $$invalidate(81, $tabRect = value));\n\tconst rootInsetTop = writable(0);\n\tcomponent_subscribe($$self, rootInsetTop, value => $$invalidate(399, $rootInsetTop = value));\n\n\t// const rootInsetBottom = writable(0); // not needed yet\n\tconst toolRect = writable(rectCreateEmpty());\n\n\tcomponent_subscribe($$self, toolRect, value => $$invalidate(85, $toolRect = value));\n\tconst utilRect = writable(); // is undefined because we wait till util is set before defining stage rect\n\tcomponent_subscribe($$self, utilRect, value => $$invalidate(459, $utilRect = value));\n\n\t//\n\t// environment\n\t//\n\tconst pointerAccuracy = mediaQueryStore('(pointer: fine)', matches => matches ? 'pointer-fine' : 'pointer-coarse');\n\n\tcomponent_subscribe($$self, pointerAccuracy, value => $$invalidate(380, $pointerAccuracy = value));\n\tconst pointerHoverable = mediaQueryStore('(hover: hover)', matches => matches ? 'pointer-hover' : 'pointer-no-hover');\n\tcomponent_subscribe($$self, pointerHoverable, value => $$invalidate(379, $pointerHoverable = value));\n\n\t//\n\t// app API\n\t//\n\tconst isTransformingImage = writable(false);\n\n\tconst isInteracting = writable(false);\n\tcomponent_subscribe($$self, isInteracting, value => $$invalidate(360, $isInteracting = value));\n\n\tconst isInteractingFraction = readable(undefined, set => {\n\t\tconst animator = spring(0);\n\n\t\tconst updater = value => {\n\t\t\tanimator.set(value ? 1 : 0);\n\t\t};\n\n\t\tconst subs = [isInteracting.subscribe(updater), animator.subscribe(set)];\n\n\t\t// destroy subs\n\t\treturn () => subs.forEach(unsub => unsub());\n\t});\n\n\tcomponent_subscribe($$self, isInteractingFraction, value => $$invalidate(460, $isInteractingFraction = value));\n\n\t// create animation stores\n\tconst shouldAnimate = writable();\n\n\tcomponent_subscribe($$self, shouldAnimate, value => $$invalidate(465, $shouldAnimate = value));\n\tconst isAnimated = writable();\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(54, $isAnimated = value));\n\n\t// Animations based on prefers-reduced-motion, automatically checks if user prefers reduced animations\n\tsetContext('isAnimated', isAnimated);\n\n\t// this makes sure animations don't run right after the editor is recovering from zero size state\n\tlet canRenderDelayed;\n\n\tconst previewShouldUpscale = writable(previewUpscale);\n\tcomponent_subscribe($$self, previewShouldUpscale, value => $$invalidate(383, $previewShouldUpscale = value));\n\n\t//\n\t// image related\n\t//\n\tconst imageIsStatic = writable(false); // if is set to true image is selection is dragged\n\n\tcomponent_subscribe($$self, imageIsStatic, value => $$invalidate(471, $imageIsStatic = value));\n\tsetContext('imageIsStatic', imageIsStatic);\n\tconst imageCropRectSnapshot = writable();\n\tcomponent_subscribe($$self, imageCropRectSnapshot, value => $$invalidate(472, $imageCropRectSnapshot = value));\n\tconst imageCropRectIntent = writable(); // should always be set before setting `imageCropRect`\n\tcomponent_subscribe($$self, imageCropRectIntent, value => $$invalidate(469, $imageCropRectIntent = value));\n\n\tconst imageCropRectPresentation = readable(undefined, set => {\n\t\tconst animator = writable(undefined);\n\n\t\tconst update = () => {\n\t\t\tif (!$imageCropRect) return;\n\n\t\t\t// no elasticity needed when dragging crop selection\n\t\t\tif ($imageIsStatic) return animator.set(rectClone$1($imageCropRect));\n\n\t\t\t// apply elasticity\n\t\t\tconst elasticRect = elastifyRects($imageCropRect, $imageCropRectIntent, imageCropRectElasticity * elasticityMultiplier);\n\n\t\t\tanimator.set(elasticRect);\n\t\t};\n\n\t\tconst subs = [\n\t\t\t// need to update presentation rect when crop rect is updated\n\t\t\timageCropRect.subscribe(update),\n\t\t\t// update parent store\n\t\t\tanimator.subscribe(set)\n\t\t];\n\n\t\treturn () => subs.forEach(unsub => unsub());\n\t});\n\n\tconst imageSelectionRect = writable();\n\tcomponent_subscribe($$self, imageSelectionRect, value => $$invalidate(468, $imageSelectionRect = value));\n\tconst imageSelectionRectSnapshot = writable();\n\tcomponent_subscribe($$self, imageSelectionRectSnapshot, value => $$invalidate(470, $imageSelectionRectSnapshot = value));\n\tconst imageSelectionRectIntent = writable(undefined); // should always be set before setting `imageSelectionRect`\n\tcomponent_subscribe($$self, imageSelectionRectIntent, value => $$invalidate(475, $imageSelectionRectIntent = value));\n\tconst imageSelectionRectOffset = writable(vectorCreateEmpty());\n\tcomponent_subscribe($$self, imageSelectionRectOffset, value => $$invalidate(476, $imageSelectionRectOffset = value));\n\n\tconst getFrameOutset = (presentationRect, imageFrame) => {\n\t\tif (!imageFrame || !presentationRect) return { top: 0, right: 0, bottom: 0, left: 0 };\n\t\tconst shapes = shapesFromCompositShape(imageFrame, presentationRect, preprocessShape);\n\t\tconst bounds = shapesBounds(shapes, presentationRect);\n\n\t\treturn {\n\t\t\ttop: Math.abs(bounds.top),\n\t\t\tright: Math.abs(bounds.right),\n\t\t\tbottom: Math.abs(bounds.bottom),\n\t\t\tleft: Math.abs(bounds.left)\n\t\t};\n\t};\n\n\t// let stageRecenterPrev;\n\tconst stageRecenter = writable({});\n\n\tconst stageRectBase = derived([utilRect, tabRect, toolRect, stageRecenter], ([$utilRect, $tabRect, $toolRect, $stageRecenter], set) => {\n\t\tif (!$utilRect) return set(undefined);\n\t\tlet utilOffsetY = 0;\n\n\t\t// if only one util active, we don't have util tabs, so add additional offset\n\t\tif (utilsFiltered.length === 1 && !isOverlayModeEnabled && layoutVerticalToolbarPreference !== 'bottom') {\n\t\t\tutilOffsetY = $toolRect.y + $toolRect.height;\n\t\t}\n\n\t\tset(rectCreate($utilRect.x + $tabRect.x, $utilRect.y + $tabRect.y + utilOffsetY, $utilRect.width, $utilRect.height));\n\t});\n\n\tlet prevStagePadding = { left: 0, right: 0, top: 0, bottom: 0 };\n\tconst shouldPadPreview = writable(false);\n\n\tconst stagePadding = derived([shouldPadPreview, imageFrame, stageRectBase, isInteracting], ([$shouldPadPreview, $imageFrame, $stageRectBase, $isInteracting], set) => {\n\t\tif (!$stageRectBase) {\n\t\t\treturn set({ left: 0, right: 0, top: 0, bottom: 0 });\n\t\t}\n\n\t\t// exit\n\t\tif (!$shouldPadPreview) return;\n\n\t\t// a sane default padding around a frame\n\t\tconst size = Math.min($stageRectBase.width, $stageRectBase.height);\n\n\t\t// set frame padding\n\t\tconst newStagePadding = getFrameOutset({ width: size, height: size }, $imageFrame);\n\n\t\t// exit if no value changes\n\t\tif (fixPrecision(prevStagePadding.top, 4) === fixPrecision(newStagePadding.top, 4) && fixPrecision(prevStagePadding.bottom, 4) === fixPrecision(newStagePadding.bottom, 4) && fixPrecision(prevStagePadding.right, 4) === fixPrecision(newStagePadding.right, 4) && fixPrecision(prevStagePadding.left, 4) === fixPrecision(newStagePadding.left, 4)) return;\n\n\t\tprevStagePadding = newStagePadding;\n\t\tset(newStagePadding);\n\t});\n\n\tcomponent_subscribe($$self, stagePadding, value => $$invalidate(391, $stagePadding = value));\n\n\tconst stagePadded = derived([shouldPadPreview, stagePadding], ([$shouldPadPreview, $stagePadding], set) => {\n\t\tif (!$shouldPadPreview) return set(false);\n\t\tset(Object.values($stagePadding).some(value => value > 0));\n\t});\n\n\tcomponent_subscribe($$self, stagePadded, value => $$invalidate(392, $stagePadded = value));\n\n\tconst utilRectPadded = derived([shouldPadPreview, utilRect, stagePadded, stagePadding], ([$shouldPadPreview, $utilRect, $stagePadded, $stagePadding], set) => {\n\t\tif (!$utilRect) return;\n\t\tif (!$shouldPadPreview || !$stagePadded) return set({ ...$utilRect });\n\t\tset(rectCreate($utilRect.x + $stagePadding.left, $utilRect.y + $stagePadding.top, $utilRect.width - $stagePadding.left - $stagePadding.right, $utilRect.height - $stagePadding.top - $stagePadding.bottom));\n\t});\n\n\tconst stageRect = derived([stageRectBase, stagePadded, stagePadding], ([$stageRectBase, $stagePadded, $stagePadding], set) => {\n\t\tif (!$stageRectBase) return set(undefined);\n\t\tif (!$stagePadded) return set($stageRectBase);\n\t\tset(rectCreate($stageRectBase.x + $stagePadding.left, $stageRectBase.y + $stagePadding.top, $stageRectBase.width - $stagePadding.left - $stagePadding.right, $stageRectBase.height - $stagePadding.top - $stagePadding.bottom));\n\t});\n\n\tcomponent_subscribe($$self, stageRect, value => $$invalidate(51, $stageRect = value));\n\n\tconst imageStaticCorners = derived([imageIsStatic, imageSize, imageRotation], ([$imageIsStatic, $imageSize, $imageRotation], set) => {\n\t\t// no need for bounds measuring if is not static image\n\t\tif (!$imageIsStatic || !$imageSize) return set(undefined);\n\n\t\tconst rect = rectCreateFromSize($imageSize);\n\t\tconst rectRotatedCorners = rectRotate(rect, $imageRotation);\n\t\tset(rectRotatedCorners);\n\t});\n\n\tconst imageStaticBounds = derived([imageStaticCorners], ([$imageStaticCorners], set) => {\n\t\tif (!$imageStaticCorners) return set(undefined);\n\t\tconst rectRotated = rectCreateFromPoints($imageStaticCorners);\n\t\tset(rectNormalizeOffset(rectRotated));\n\t});\n\n\tcomponent_subscribe($$self, imageStaticBounds, value => $$invalidate(394, $imageStaticBounds = value));\n\n\tconst stageScalar = derived([stageRect, imageCropRect, imageStaticBounds, previewShouldUpscale], ([$stageRect, $imageCropRect, $imageStaticBounds, $previewShouldUpscale], set) => {\n\t\tconst isManipulatingImageCropRect = !!($imageCropRectSnapshot || $imageCropRectIntent);\n\n\t\t// update stage scalar, the crop output size relative to the stage, if image fits it's 1\n\t\tif (!$stageRect || !$imageCropRect || isManipulatingImageCropRect) return;\n\n\t\t// use image bounds instead of crop\n\t\tconst { width, height } = $imageStaticBounds || $imageCropRect;\n\n\t\t// calculate scale factor needed to fit crop rect to stage\n\t\tconst scalar = Math.min($stageRect.width / width, $stageRect.height / height);\n\n\t\t// always scaled down to fit stage, if is allowed to upscale, zoom to fit stage\n\t\tconst scale = $previewShouldUpscale ? scalar : Math.min(1, scalar);\n\n\t\tset(scale);\n\t});\n\n\tcomponent_subscribe($$self, stageScalar, value => $$invalidate(395, $stageScalar = value));\n\n\tconst imageStaticVisualCorners = derived([imageIsStatic, imageSize, imageRotation, stageRect, utilRect, stageScalar], ([\n\t\t\t$imageIsStatic,\n\t\t\t$imageSize,\n\t\t\t$imageRotation,\n\t\t\t$stageRect,\n\t\t\t$utilRect,\n\t\t\t$stageScalar\n\t\t], set) => {\n\t\t// no need for bounds measuring if is not static image\n\t\tif (!$imageIsStatic || !$stageRect || !$utilRect || !$imageSize) return set(undefined);\n\n\t\tconst rect = rectCreateFromSize($imageSize);\n\t\tconst rectScaled = rectNormalizeOffset(rectScale$1(rect, $stageScalar));\n\t\tconst rectCentered = rectCenterRect($stageRect, rectScaled);\n\t\trectScaled.x = rectCentered.x;\n\t\trectScaled.y = rectCentered.y;\n\t\tconst rectRotatedCorners = rectRotate(rectScaled, $imageRotation);\n\t\tset(rectRotatedCorners);\n\t});\n\n\tsetContext('imageStaticVisualCorners', imageStaticVisualCorners);\n\n\t//\n\t// Image selection\n\t//\n\tconst imageSelectionZoom = writable(undefined);\n\n\tcomponent_subscribe($$self, imageSelectionZoom, value => $$invalidate(397, $imageSelectionZoom = value));\n\n\tconst imageSelectionStageFitScalar = derived([imageCropRect, stageRect], ([$imageCropRect, $stageRect]) => {\n\t\t// wait a bit\n\t\tif (!$stageRect || !$imageCropRect) return undefined;\n\n\t\treturn Math.min($stageRect.width / $imageCropRect.width, $stageRect.height / $imageCropRect.height);\n\t});\n\n\tconst imageSelectionRectScalar = derived([imageCropRect, imageSelectionRect], ([$imageCropRect, $imageSelectionRect]) => {\n\t\t// wait a bit\n\t\tif (!$imageCropRect || !$imageSelectionRect) return 1;\n\n\t\treturn Math.min($imageCropRect.width / $imageSelectionRect.width, $imageCropRect.height / $imageSelectionRect.height);\n\t});\n\n\tcomponent_subscribe($$self, imageSelectionRectScalar, value => $$invalidate(101, $imageSelectionRectScalar = value));\n\n\tconst imageSelectionScalar = derived([imageSelectionZoom, imageSelectionRectScalar], ([$imageSelectionZoom, $imageSelectionRectScalar]) => {\n\t\t// wait a bit\n\t\tif (!$imageSelectionZoom || !$imageSelectionRectScalar) return 1;\n\n\t\t// calculate scalar to get actual image size\n\t\treturn $imageSelectionRectScalar * $imageSelectionZoom;\n\t});\n\n\tcomponent_subscribe($$self, imageSelectionScalar, value => $$invalidate(474, $imageSelectionScalar = value));\n\tconst imageSelectionPan = writable(vectorCreateEmpty());\n\tcomponent_subscribe($$self, imageSelectionPan, value => $$invalidate(396, $imageSelectionPan = value));\n\n\tconst imageSelectionStoredState = writable({\n\t\tscalar: $imageSelectionScalar,\n\t\ttranslation: $imageSelectionPan\n\t});\n\n\tconst imageSelectionStoredStateReset = () => {\n\t\timageSelectionStoredState.set({\n\t\t\tscalar: undefined,\n\t\t\ttranslation: vectorCreateEmpty()\n\t\t});\n\t};\n\n\tconst imageSelectionRectPresentation = readable(undefined, set => {\n\t\tconst animator = spring(undefined, { precision: 0.0001 });\n\n\t\tconst snapPixels = getDevicePixelRatio() === 1\n\t\t? rect => rectApply(rect, Math.round)\n\t\t: passthrough;\n\n\t\tconst updater = () => {\n\t\t\tif (!$imageSelectionRect) return;\n\t\t\tconst instantUpdate = $isInteracting || !$shouldAnimate;\n\n\t\t\t// no elasticity needed if image is fixed\n\t\t\tif ($imageIsStatic) {\n\t\t\t\tconst rect = rectClone$1($imageSelectionRect);\n\t\t\t\trectTranslate$1(rect, $imageSelectionRectOffset);\n\t\t\t\trectTranslate$1(rect, $stageRect);\n\t\t\t\treturn animator.set(rect, { hard: instantUpdate });\n\t\t\t}\n\n\t\t\tconst elasticRect = elastifyRects($imageSelectionRect, $imageSelectionRectIntent, imageSelectionRectElasticity * elasticityMultiplier);\n\n\t\t\t// prevent negative size (can happen because of elastics)\n\t\t\tif (elasticRect.width < 0) {\n\t\t\t\telasticRect.width = 0;\n\t\t\t\telasticRect.x = $imageSelectionRect.x;\n\t\t\t}\n\n\t\t\tif (elasticRect.height < 0) {\n\t\t\t\telasticRect.height = 0;\n\t\t\t\telasticRect.y = $imageSelectionRect.y;\n\t\t\t}\n\n\t\t\t// translate elastic rect x,y by stage rect x,y\n\t\t\trectTranslate$1(elasticRect, $stageRect);\n\n\t\t\t// translate\n\t\t\trectTranslate$1(elasticRect, $imageSelectionPan);\n\n\t\t\t// scale to zoom in view\n\t\t\trectScale$1(elasticRect, $imageSelectionScalar);\n\n\t\t\t// round to pixels on low res displays\n\t\t\t!instantUpdate && snapPixels(elasticRect);\n\n\t\t\tanimator.set(elasticRect, { hard: instantUpdate });\n\t\t};\n\n\t\tconst subs = [\n\t\t\t// need to update selection rect when stage is resized\n\t\t\tstageRect.subscribe(updater),\n\t\t\t// listen for selection rect changes (as is assigned rect will always trigger, even if assigned same rect, this is needed to also update when intent changes)\n\t\t\timageSelectionRect.subscribe(updater),\n\t\t\t// if selection scalar changes need to update presentation\n\t\t\timageSelectionScalar.subscribe(updater),\n\t\t\timageSelectionPan.subscribe(updater),\n\t\t\t// need to update if frame exceeds bounds\n\t\t\timageFrame.subscribe(updater),\n\t\t\t// update parent store\n\t\t\tanimator.subscribe(set)\n\t\t];\n\n\t\t// destroy subs\n\t\treturn () => subs.forEach(unsub => unsub());\n\t});\n\n\tcomponent_subscribe($$self, imageSelectionRectPresentation, value => $$invalidate(59, $imageSelectionRectPresentation = value));\n\tconst imageSelectionRectStaticScalar = writable(1);\n\tcomponent_subscribe($$self, imageSelectionRectStaticScalar, value => $$invalidate(467, $imageSelectionRectStaticScalar = value));\n\n\tconst centerImageStaticBounds = () => {\n\t\tif (!$imageCropRect || !$stageRect) return;\n\t\tlet rect = rectMultiply(rectClone$1($imageCropRect), $stageScalar || 1);\n\t\tconst rectOffset = rectCenterRect($stageRect, rectMultiply(rectClone$1($imageStaticBounds), $stageScalar));\n\t\trectTranslate$1(rect, rectOffset);\n\t\tconst selectionScaledWidth = $utilRect.width / rect.width;\n\t\tconst selectionScaledHeight = $utilRect.height / rect.height;\n\t\tconst scalar = Math.min(1, selectionScaledWidth, selectionScaledHeight);\n\t\timageSelectionRectStaticScalar.set(scalar);\n\t\trectScale$1(rect, scalar);\n\n\t\t// limit selection rect to util bounds\n\t\trectOffsetInRect(rect, { ...$utilRect, x: 0, y: 0 });\n\n\t\timageSelectionRect.set(rect);\n\t};\n\n\t//\n\tconst imageSelectionRectCentered = derived([stageRect, stageScalar, imageCropRect, imageSize], ([$stageRect, $stageScalar, $imageCropRect, $imageSize], set) => {\n\t\t// not ready yet\n\t\tif (!$stageRect || !$imageCropRect && !$imageSize) return;\n\n\t\tset(getImageSelectionRectCentered($stageRect, $stageScalar || 1, $imageCropRect || $imageSize));\n\t});\n\n\tcomponent_subscribe($$self, imageSelectionRectCentered, value => $$invalidate(100, $imageSelectionRectCentered = value));\n\n\tconst getImageSelectionRectCentered = (stageRect, stageScalar, cropRect) => {\n\t\tconst imageCropRectFitsStage = cropRect.width <= stageRect.width && cropRect.height <= stageRect.height;\n\n\t\t// if we have a crop rect and it fits the stage, center it\n\t\treturn imageCropRectFitsStage\n\t\t? // center the crop rectangle to the stage\n\t\t\trectCenterRect(stageRect, rectMultiply(rectClone$1(cropRect), stageScalar))\n\t\t: // render a rectangle based on the fixed crop aspect ratio, or the aspect ratio of the current crop rectangle, or as a last resort the input image\n\t\t\trectContainRect(stageRect, rectAspectRatio(cropRect));\n\t};\n\n\t// when scaling the stage we need to recenter the image selection\n\tlet stageRectPrev;\n\n\tlet stageScalePrev;\n\n\tconst calculateImageSelectionRect = stageRectCurrent => {\n\t\t// don't recalculate if no change\n\t\tif (isOverlayModeEnabled && stageRectPrev && rectEqual(stageRectPrev, stageRectCurrent) && stageScalePrev === $stageScalar) return;\n\n\t\t// position relative to image itself\n\t\tif ($imageIsStatic) return centerImageStaticBounds();\n\n\t\t// remember so we can compare later on if has changed\n\t\tstageRectPrev = stageRectCurrent;\n\n\t\tstageScalePrev = $stageScalar;\n\t\tconst centeredImageSelectionRect = getImageSelectionRectCentered(stageRectCurrent, $stageScalar, $imageCropRect || $imageSize);\n\t\timageSelectionRect.set(centeredImageSelectionRect);\n\t};\n\n\t// this runs once so we use the correct scale for the initial image selection rect\n\tlet hasSetInitialStageScalar = false;\n\n\tconst stageScalarUnsub = stageScalar.subscribe(scalar => {\n\t\t// can't recalculate without these prosp\n\t\tif (hasSetInitialStageScalar || scalar === undefined || !$imageCropRect) return;\n\n\t\tcalculateImageSelectionRect($stageRect);\n\t\thasSetInitialStageScalar = true;\n\t});\n\n\t// this recenters the crop when the window/stage is resized\n\tconst stageRectUnsub = stageRect.subscribe(rect => {\n\t\t// can't recalculate without these prosp\n\t\tif (!rect || $stageScalar === undefined || !$imageCropRect) return;\n\n\t\tcalculateImageSelectionRect(rect);\n\t});\n\n\tconst imageIsStaticUnsub = imageIsStatic.subscribe(isStatic => {\n\t\tif (!isStatic && $stageRect) calculateImageSelectionRect($stageRect);\n\t});\n\n\t// if we've taken a snapshot of the selection, also take a snapshot of the crop rect and the presentationScalar\n\t// - cropRect so we can adjust it based on the adjustments to the imageSelectionRect\n\t// - presentationScalar so we can use the snapshot for the calculation of the cropRect scale relative to the original imageSelectionRect (if we use the live $presentationScalar small rounding errors of the scalar result in weird glitches)\n\tlet presentationScalarSnapshot;\n\n\tconst imageSelectionRectSnapshotUnsub = imageSelectionRectSnapshot.subscribe(rect => {\n\t\tif (!rect) {\n\t\t\tpresentationScalarSnapshot = undefined;\n\t\t\tset_store_value(imageCropRectSnapshot, $imageCropRectSnapshot = undefined, $imageCropRectSnapshot);\n\t\t\treturn;\n\t\t}\n\n\t\tpresentationScalarSnapshot = $presentationScalar;\n\t\tconst cropRectClone = rectClone$1($imageCropRect);\n\t\timageCropRectSnapshot.set(cropRectClone);\n\t});\n\n\t// if image selection rect is being manipulated, and imageSelectionRectSnapshot has been defined, we also need to update the crop rect\n\tconst imageSelectionRectUnsub = imageSelectionRect.subscribe(rect => {\n\t\t// only sync crop rect with image selection rect when no longer manipulating\n\t\tif (!rect || !$imageSelectionRectSnapshot) return;\n\n\t\tconst offset = rectSubtract(rectClone$1(rect), $imageSelectionRectSnapshot);\n\t\trectDivide(offset, presentationScalarSnapshot);\n\t\tconst crop = rectAdd(rectClone$1($imageCropRectSnapshot), offset);\n\t\timageCropRect.set(crop);\n\t});\n\n\tconst updateImageSelectionRect = rect => {\n\t\t// if no rect, we can't do anything\n\t\t// if no selection rect yet, we wait for a selection rect to be loaded\n\t\tif (!rect || !$imageSelectionRect) return;\n\n\t\t// if image is static we only have to keep centering it\n\t\tif ($imageIsStatic) {\n\t\t\t// keep centering\n\t\t\tif (!$imageSelectionRectSnapshot) centerImageStaticBounds();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// don't update image selection rect while we're intertacting with the view, this prevents feedback loop from cropRect model updates\n\t\tif ($isInteracting || $imageSelectionRectSnapshot || $imageCropRectIntent) return;\n\n\t\t// only if crop aspect ratio differs from image selection aspect ratio we update image selection rectangle\n\t\tconst imageSelectionRectAspectRatio = rectAspectRatio($imageSelectionRect);\n\n\t\tconst cropRectAspectRatio = rectAspectRatio(rect);\n\t\tif (fixPrecision(imageSelectionRectAspectRatio, 6) === fixPrecision(cropRectAspectRatio, 6)) return;\n\n\t\t// TEMP DUPLICATE OF STAGESCALAR DERIVED STORE TO FIX ZOOM OUT AFTER WHEEL ISSUE\n\t\t// reproduce -> crop view => resize selection rect vertically, tap recenter, zoom out with scroll wheel\n\t\tconst { width, height } = $imageStaticBounds || $imageCropRect;\n\n\t\tconst scalar = Math.min($stageRect.width / width, $stageRect.height / height);\n\t\tconst size = sizeCreate(rect.width * scalar, rect.height * scalar);\n\t\tconst tx = ($imageSelectionRect.width - size.width) * 0.5;\n\t\tconst ty = ($imageSelectionRect.height - size.height) * 0.5;\n\t\tconst selectionRect = rectCreate($imageSelectionRect.x + tx, $imageSelectionRect.y + ty, size.width, size.height);\n\t\timageSelectionRect.set(selectionRect);\n\t};\n\n\tconst imageCropRectUnsub = imageCropRect.subscribe(updateImageSelectionRect);\n\n\tconst imageScalar = derived([stageScalar, imageCropRect, imageSelectionRect, imageIsStatic], ([$stageScalar, $imageCropRect, $imageSelectionRect, $imageIsStatic], set) => {\n\t\t// update the image scalar, the image zoom calculated by the image selection and the actual crop coordinates\n\t\tif (!$stageScalar || !$imageCropRect || !$imageSelectionRect) return;\n\n\t\t// if image static bound set, the image is always centered in view\n\t\tif ($imageIsStatic) return set($imageSelectionRectStaticScalar);\n\n\t\tconst selectionScaledWidth = $imageSelectionRect.width / $imageCropRect.width;\n\t\tconst selectionScaledHeight = $imageSelectionRect.height / $imageCropRect.height;\n\t\tconst scalar = Math.max(selectionScaledWidth, selectionScaledHeight) / $stageScalar;\n\t\tset(scalar);\n\t});\n\n\tconst presentationScalar = derived([stageScalar, imageScalar], ([$stageScalar, $imageScalar], set) => {\n\t\t// can't scale presentation if no image scalar defined\n\t\tif (!$imageScalar) return;\n\n\t\tconst scalar = $stageScalar * $imageScalar;\n\t\tset(scalar);\n\t});\n\n\tcomponent_subscribe($$self, presentationScalar, value => $$invalidate(473, $presentationScalar = value));\n\n\t//\n\t// UI Elements\n\t//\n\tlet prevFrameOutset = { left: 0, right: 0, top: 0, bottom: 0 };\n\n\tconst frameOutset = derived([imageFrame, imageSelectionRect], ([$imageFrame, $imageSelectionRect], set) => {\n\t\t// exit\n\t\tif (!$imageSelectionRect) return set(prevFrameOutset);\n\n\t\t// set frame padding\n\t\tconst newFrameOutset = getFrameOutset($imageSelectionRect, $imageFrame);\n\n\t\t// exit if no value changes\n\t\tif (fixPrecision(prevFrameOutset.top, 4) === fixPrecision(newFrameOutset.top, 4) && fixPrecision(prevFrameOutset.bottom, 4) === fixPrecision(newFrameOutset.bottom, 4) && fixPrecision(prevFrameOutset.right, 4) === fixPrecision(newFrameOutset.right, 4) && fixPrecision(prevFrameOutset.left, 4) === fixPrecision(newFrameOutset.left, 4)) return;\n\n\t\tprevFrameOutset = newFrameOutset;\n\t\tset(newFrameOutset);\n\t});\n\n\tconst frameHasOutset = derived([frameOutset], ([$frameOutset], set) => {\n\t\tset(Object.values($frameOutset).some(value => value > 0));\n\t});\n\n\tconst imageOutlineOpacity = spring(0.075, {\n\t\tstiffness: 0.03,\n\t\tdamping: 0.4,\n\t\tprecision: 0.001\n\t});\n\n\tconst imageOutline = derived(\n\t\t[\n\t\t\trootLineColor,\n\t\t\trootBackgroundColor,\n\t\t\timageOutlineOpacity,\n\t\t\timageSelectionRectPresentation,\n\t\t\timageSelectionScalar,\n\t\t\timageFrame,\n\t\t\tframeHasOutset,\n\t\t\tframeOutset,\n\t\t\tstagePadded\n\t\t],\n\t\t([\n\t\t\t\t$rootLineColor,\n\t\t\t\t$rootBackgroundColor,\n\t\t\t\t$colorOpacity,\n\t\t\t\t$rect,\n\t\t\t\t$rectScalar,\n\t\t\t\t$imageFrame,\n\t\t\t\t$frameHasOutset,\n\t\t\t\t$frameOutset,\n\t\t\t\t$stagePadded\n\t\t\t], set) => {\n\t\t\tif (!$rect || isOverlayModeEnabled) return set([]);\n\t\t\tlet { x, y, width, height } = $rect;\n\t\t\tx += 0.5;\n\t\t\ty += 0.5;\n\t\t\twidth -= 0.5;\n\t\t\theight -= 0.5;\n\t\t\tconst shapes = [];\n\n\t\t\tif ($imageFrame) {\n\t\t\t\t// draw dark or bright line around frame to make it stand out from background\n\t\t\t\tif ($frameHasOutset) {\n\t\t\t\t\tlet { left, right, top, bottom } = $frameOutset;\n\t\t\t\t\tleft *= $rectScalar;\n\t\t\t\t\tright *= $rectScalar;\n\t\t\t\t\ttop *= $rectScalar;\n\t\t\t\t\tbottom *= $rectScalar;\n\t\t\t\t\tconst isDarkBackground = isDarkColor($rootBackgroundColor);\n\t\t\t\t\tconst shadeColor = isDarkBackground ? [1, 1, 1, 0.125] : [0, 0, 0, 0.075];\n\n\t\t\t\t\tshapes.push({\n\t\t\t\t\t\tx: x - left - 0.5,\n\t\t\t\t\t\ty: y - top - 0.5,\n\t\t\t\t\t\twidth: width + left + right + 1,\n\t\t\t\t\t\theight: height + top + bottom + 1,\n\t\t\t\t\t\tstrokeWidth: 1,\n\t\t\t\t\t\tstrokeColor: shadeColor,\n\t\t\t\t\t\topacity: $stagePadded ? 1 : 0.5\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// draw extra shading around edge so crop controls are extra visible\n\t\t\t\tconst isDarkOutline = isDarkColor($rootLineColor);\n\n\t\t\t\tconst isDarkFrame = $imageFrame && $imageFrame.frameColor && isDarkColor($imageFrame.frameColor);\n\n\t\t\t\tif (!isDarkFrame && !isDarkOutline) {\n\t\t\t\t\tshapes.push({\n\t\t\t\t\t\tx: x - 1,\n\t\t\t\t\t\ty: y - 1,\n\t\t\t\t\t\twidth: width + 2,\n\t\t\t\t\t\theight: height + 2,\n\t\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\t\tstrokeColor: [0, 0, 0, 0.1],\n\t\t\t\t\t\topacity: $colorOpacity\n\t\t\t\t\t});\n\n\t\t\t\t\tshapes.push({\n\t\t\t\t\t\tx: x + 1,\n\t\t\t\t\t\ty: y + 1,\n\t\t\t\t\t\twidth: width - 2,\n\t\t\t\t\t\theight: height - 2,\n\t\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\t\tstrokeColor: [0, 0, 0, 0.1],\n\t\t\t\t\t\topacity: $colorOpacity\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tset([\n\t\t\t\t// added shapes\n\t\t\t\t...shapes,\n\t\t\t\t// default outline\n\t\t\t\t{\n\t\t\t\t\tx,\n\t\t\t\t\ty,\n\t\t\t\t\twidth,\n\t\t\t\t\theight,\n\t\t\t\t\tstrokeWidth: 1,\n\t\t\t\t\tstrokeColor: $rootLineColor,\n\t\t\t\t\topacity: $colorOpacity\n\t\t\t\t}\n\t\t\t]);\n\t\t}\n\t);\n\n\t// custom markup rendered on top of image\n\tconst imageOverlayMarkup = writable([]);\n\n\tcomponent_subscribe($$self, imageOverlayMarkup, value => $$invalidate(385, $imageOverlayMarkup = value));\n\n\t// the resulting overlay markup\n\tconst imageOverlay = derived([imageOutline, imageOverlayMarkup], ([$imageOutline, $imageOverlayMarkup], set) => {\n\t\tset([...$imageOutline, ...$imageOverlayMarkup]);\n\t});\n\n\tcomponent_subscribe($$self, imageOverlay, value => $$invalidate(94, $imageOverlay = value));\n\n\t//\n\t// Stage overlay\n\t//\n\tconst overlayOpacity = spring(0, { precision: 0.001 });\n\n\tcomponent_subscribe($$self, overlayOpacity, value => $$invalidate(387, $overlayOpacity = value));\n\tconst overlayLeftRect = spring();\n\tcomponent_subscribe($$self, overlayLeftRect, value => $$invalidate(390, $overlayLeftRect = value));\n\tconst overlayTopRect = spring();\n\tcomponent_subscribe($$self, overlayTopRect, value => $$invalidate(389, $overlayTopRect = value));\n\tconst overlayRightRect = spring();\n\tcomponent_subscribe($$self, overlayRightRect, value => $$invalidate(388, $overlayRightRect = value));\n\tconst overlayBottomRect = spring();\n\tcomponent_subscribe($$self, overlayBottomRect, value => $$invalidate(386, $overlayBottomRect = value));\n\n\t//\n\t// Loading the preview\n\t//\n\tconst imageVisualLoadComplete = writable(false);\n\n\tcomponent_subscribe($$self, imageVisualLoadComplete, value => $$invalidate(372, $imageVisualLoadComplete = value));\n\tconst imagePreviewSource = writable();\n\tcomponent_subscribe($$self, imagePreviewSource, value => $$invalidate(375, $imagePreviewSource = value));\n\tlet imagePreviewLoaderCancelToken;\n\n\tconst imagePreview = derived([imageVisualLoadComplete, imagePreviewSource], ([$imageVisualLoadComplete, $imagePreviewSource], set) => {\n\t\t// no data, reset preview data\n\t\tif (!$imageVisualLoadComplete || !$imagePreviewSource) {\n\t\t\tset(undefined);\n\t\t\treturn;\n\t\t}\n\n\t\t// cancel existing loader\n\t\tif (imagePreviewLoaderCancelToken) {\n\t\t\timagePreviewLoaderCancelToken.cancel();\n\t\t\t$$invalidate(282, imagePreviewLoaderCancelToken = undefined);\n\t\t}\n\n\t\t// if image preview source is a canvas we can update immediately\n\t\tif (isCanvas($imagePreviewSource)) {\n\t\t\t// update image preview to canvas\n\t\t\treturn set(canvasClone($imagePreviewSource));\n\t\t}\n\n\t\t// try not to show preview loader if updating active images array\n\t\tconst minPreviewLoaderDuration = activeImages.length ? 0 : $isAnimated ? 250 : 0;\n\n\t\t// load preview\n\t\t$$invalidate(282, imagePreviewLoaderCancelToken = { cancel: noop$1 });\n\n\t\tcreateImageSrcLoader($imagePreviewSource, imagePreviewLoaderCancelToken, minPreviewLoaderDuration).then(set).catch(err => {\n\t\t\t// update load state\n\t\t\tset_store_value(imageLoadState, $imageLoadState.error = err, $imageLoadState);\n\n\t\t\t// log to console for debugging purposes\n\t\t}).finally(() => {\n\t\t\t// no longer loading\n\t\t\t$$invalidate(282, imagePreviewLoaderCancelToken = undefined);\n\t\t});\n\t});\n\n\t$$subscribe_imagePreview();\n\tlet { imagePreviewCurrent = undefined } = $$props;\n\n\t//\n\t// Calculates the image transforms and effects necessary for the preview\n\t//\n\tconst imagePreviewModifiers = writable({});\n\n\tcomponent_subscribe($$self, imagePreviewModifiers, value => $$invalidate(377, $imagePreviewModifiers = value));\n\tconst interfaceImages = writable([]);\n\tcomponent_subscribe($$self, interfaceImages, value => $$invalidate(87, $interfaceImages = value));\n\n\t// reset image UI previews when new file is loaded\n\tconst resetPreviews = () => {\n\t\timageSelectionPan.set(vectorCreateEmpty());\n\t\timageSelectionZoom.set(undefined);\n\t\timageSelectionStoredStateReset();\n\t\tinterfaceImages.set([]);\n\t};\n\n\tconst imageTransforms = derived(\n\t\t[\n\t\t\tstageRect,\n\t\t\trootRect,\n\t\t\timageSize,\n\t\t\timageCropRectPresentation,\n\t\t\timageSelectionRect,\n\t\t\tpresentationScalar,\n\t\t\timageRotation,\n\t\t\timageFlipX,\n\t\t\timageFlipY,\n\t\t\timageSelectionScalar,\n\t\t\timageSelectionPan,\n\t\t\tisTransformingImage\n\t\t],\n\t\t([\n\t\t\t\t$stageRect,\n\t\t\t\t$rootRect,\n\t\t\t\t$imageSize,\n\t\t\t\t$imageCropRectPresentation,\n\t\t\t\t$imageSelectionRect,\n\t\t\t\t$presentationScalar,\n\t\t\t\t$imageRotation,\n\t\t\t\t$imageFlipX,\n\t\t\t\t$imageFlipY,\n\t\t\t\t$imageSelectionScalar,\n\t\t\t\t$imageSelectionPan,\n\t\t\t\t$isTransformingImage\n\t\t\t], set) => {\n\t\t\tif (!$stageRect || !$imageSelectionRect) return;\n\t\t\tconst imageTransforms = calculateImageTransforms($stageRect, $rootRect, $imageSize, $imageCropRectPresentation, $imageSelectionRect, $imageSelectionScalar, $imageSelectionPan, $presentationScalar, $imageRotation, $imageFlipX, $imageFlipY);\n\t\t\t!$isTransformingImage && imageTransformsSnapPixels(imageTransforms);\n\t\t\tset(imageTransforms);\n\t\t}\n\t);\n\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(378, $imageTransforms = value));\n\n\tconst imageEffects = derived(\n\t\t[\n\t\t\timageColorMatrix,\n\t\t\timageConvolutionMatrix,\n\t\t\timageGamma,\n\t\t\timageVignette,\n\t\t\timageNoise\n\t\t],\n\t\t([$colorMatrix, $convolutionMatrix, $gamma, $vignette, $noise], set) => {\n\t\t\tconst colorMatrices = $colorMatrix && Object.keys($colorMatrix).map(name => $colorMatrix[name]).filter(Boolean);\n\n\t\t\tconst effects = {\n\t\t\t\tgamma: $gamma || undefined,\n\t\t\t\tvignette: $vignette || undefined,\n\t\t\t\tnoise: $noise || undefined,\n\t\t\t\tconvolutionMatrix: $convolutionMatrix || undefined,\n\t\t\t\tcolorMatrix: colorMatrices && colorMatrices.length && getColorMatrixFromColorMatrices(colorMatrices)\n\t\t\t};\n\n\t\t\tset(effects);\n\t\t}\n\t);\n\n\t//\n\t// current environment variables\n\t//\n\tlet windowWidth;\n\n\tlet windowHeight;\n\tconst shouldPreventSwipe = canPreventNavSwipe();\n\tconst env = writable({});\n\tcomponent_subscribe($$self, env, value => $$invalidate(366, $env = value));\n\tsetContext('env', env);\n\tconst initialPixelRatio = getDevicePixelRatio();\n\n\tconst pixelRatio = readable(initialPixelRatio, set => {\n\t\tconst handleResolutionChange = () => set(getDevicePixelRatio());\n\t\tconst resolutionObserver = matchMedia(`(resolution: ${initialPixelRatio}dppx)`);\n\t\tresolutionObserver.addListener(handleResolutionChange);\n\t\treturn () => resolutionObserver.removeListener(handleResolutionChange);\n\t});\n\n\tcomponent_subscribe($$self, pixelRatio, value => $$invalidate(58, $pixelRatio = value));\n\n\tconst history = historyCreate(\n\t\t() => {\n\t\t\t// $imageState is always a clone of the current state\n\t\t\treturn $imageState;\n\t\t},\n\t\tstate => {\n\t\t\t// set new state from history, $imageState will store a clone of the received state\n\t\t\tset_store_value(imageState, $imageState = state, $imageState);\n\n\t\t\t// trigger recenter of image selection rect\n\t\t\ttabRect.set($tabRect);\n\t\t}\n\t);\n\n\t$$subscribe_history();\n\n\tconst setInitialHistoryState = () => {\n\t\t// set history state\n\t\tconst baseRect = { x: 0, y: 0, ...$imageSize };\n\n\t\tconst baseCropRect = rectApply(rectContainRect(baseRect, $imageState.cropAspectRatio), Math.round);\n\n\t\t// note:\n\t\t//\n\t\t// currently undo doesn't step back to base state,\n\t\t// that's why the hook willSetHistoryInitialState below as introduced\n\t\t// will be fixed in version next major release of the editor\n\t\t//\n\t\tconst baseEditorState = willSetHistoryInitialState(\n\t\t\t{\n\t\t\t\t// the base state is the image state but the `rotation` and `crop` are reset\n\t\t\t\t...$imageState, //\n\t\t\t\t// should be read from imageInitialProps?\n\t\t\t\trotation: 0,\n\t\t\t\tcrop: baseCropRect\n\t\t\t},\n\t\t\t// add other reset values here?\n\t\t\t//\n\t\t\t// see note above\n\t\t\t$imageState\n\t\t); //\n\n\t\t// this will be the base state\n\t\tconst editorInitialHistoryState = [baseEditorState];\n\n\t\t// only add additional entry if base state and current state are different\n\t\tif (JSON.stringify(baseEditorState) !== JSON.stringify($imageState)) {\n\t\t\teditorInitialHistoryState.push({ ...$imageState });\n\t\t}\n\n\t\t// loading done, set this as base state\n\t\thistory.set(editorInitialHistoryState);\n\t};\n\n\tconst imageLoadStateUnsub = imageLoadState.subscribe(state => {\n\t\t// no state yet\n\t\tif (!state) return;\n\n\t\t// not ready yet\n\t\tif (!state.complete) return;\n\n\t\t// set initial state after image load has completed\n\t\tsetInitialHistoryState();\n\t});\n\n\tconst revert = () => willRevert().then(shouldReset => shouldReset && history.revert());\n\n\t//\n\t// Visual processing of the image\n\t//\n\tconst imageProcessingPreparing = writable(false);\n\n\tcomponent_subscribe($$self, imageProcessingPreparing, value => $$invalidate(367, $imageProcessingPreparing = value));\n\n\tconst handleExport = () => {\n\t\t// this will trigger status overlay fade in\n\t\tset_store_value(imageProcessingPreparing, $imageProcessingPreparing = true, $imageProcessingPreparing);\n\n\t\twillProcessImage().then(shouldProcess => {\n\t\t\t// nope, restore hide processing overlay and back to editing\n\t\t\tif (!shouldProcess) {\n\t\t\t\tset_store_value(imageProcessingPreparing, $imageProcessingPreparing = false, $imageProcessingPreparing);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// wait for status to be done fading in, then requests image writing\n\t\t\tlet unsub;\n\n\t\t\tunsub = statusOpacity.subscribe(value => {\n\t\t\t\tif (value !== 1) return;\n\n\t\t\t\t// stop listening for\n\t\t\t\tunsub && unsub();\n\n\t\t\t\t// request write image\n\t\t\t\tdispatch('processImage');\n\t\t\t});\n\t\t});\n\t};\n\n\tconst imageProcessStateUnsub = imageProcessState.subscribe(state => {\n\t\tif (!state) {\n\t\t\tset_store_value(imageProcessingPreparing, $imageProcessingPreparing = false, $imageProcessingPreparing);\n\t\t\treturn;\n\t\t}\n\n\t\tset_store_value(imageProcessingPreparing, $imageProcessingPreparing = true, $imageProcessingPreparing);\n\t\tconst { complete, abort } = state;\n\t\tif (complete || abort) set_store_value(imageProcessingPreparing, $imageProcessingPreparing = false, $imageProcessingPreparing);\n\t});\n\n\tconst activeImages = storeList();\n\tcomponent_subscribe($$self, activeImages, value => $$invalidate(56, $activeImages = value));\n\n\tconst imageTransformsInterpolated = derived([activeImages], ([$activeImages], set) => {\n\t\tif (!$activeImages.length) return set();\n\t\tconst { origin, translation, rotation, scale } = $activeImages[0];\n\t\tset({ origin, translation, rotation, scale });\n\t});\n\n\tconst utilTools = writable();\n\tcomponent_subscribe($$self, utilTools, value => $$invalidate(381, $utilTools = value));\n\n\t// bind from pan/zoom control\n\tlet zoomControls = [];\n\n\t// bind from pan/zoom control\n\tlet zoomMultiTouching;\n\n\tconst imageSelectionMultiTouching = writable();\n\tconst imagePreviewUpscale = writable();\n\n\tconst imageSelectionZoomCurrent = derived(\n\t\t[\n\t\t\timageSelectionZoom,\n\t\t\timagePreviewUpscale,\n\t\t\tstageScalar,\n\t\t\timageSelectionStageFitScalar\n\t\t],\n\t\t([\n\t\t\t\t$imageSelectionZoom,\n\t\t\t\t$imagePreviewUpscale,\n\t\t\t\t$stageScalar,\n\t\t\t\t$imageSelectionStageFitScalar\n\t\t\t]) => {\n\t\t\treturn $imageSelectionZoom\n\t\t\t? $imageSelectionZoom\n\t\t\t: $imagePreviewUpscale || $stageScalar < 1\n\t\t\t\t? $imageSelectionStageFitScalar\n\t\t\t\t: 1;\n\t\t}\n\t);\n\n\t//\n\t// Configure the available views\n\t//\n\tconst utilStores = {\n\t\t// model stores\n\t\t...stores,\n\t\t// image\n\t\timageFile,\n\t\timageSize,\n\t\t// video / animated gif\n\t\tmediaDuration,\n\t\tmediaMinDuration,\n\t\tmediaMaxDuration,\n\t\tmediaTrim,\n\t\timageBackgroundColor,\n\t\timageBackgroundImage: imageBackgroundImageSrc,\n\t\timageCropAspectRatio,\n\t\timageCropMinSize,\n\t\timageCropMaxSize,\n\t\timageCropLimitToImage,\n\t\timageCropRect,\n\t\timageCropRectOrigin,\n\t\timageCropRectSnapshot,\n\t\timageCropRectAspectRatio,\n\t\timageCropRange,\n\t\timageRotation,\n\t\timageRotationRange,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageOutputSize,\n\t\t// effects\n\t\timageColorMatrix,\n\t\timageConvolutionMatrix,\n\t\timageGamma,\n\t\timageVignette,\n\t\timageNoise,\n\t\t// markup\n\t\timageManipulation,\n\t\timageDecoration,\n\t\timageAnnotation,\n\t\timageRedaction,\n\t\timageFrame,\n\t\t// image preview for utils that need access to pixel data\n\t\timagePreview,\n\t\t// image preview source so utils can update preview\n\t\timagePreviewSource,\n\t\t// top left position of image preview\n\t\timageTransforms,\n\t\t// allows utils to control how the preview is presented (for example more opacity for mask)\n\t\timagePreviewModifiers,\n\t\t// history state and update\n\t\thistory,\n\t\t// static env info\n\t\tanimation: shouldAnimate,\n\t\tpixelRatio,\n\t\telasticityMultiplier,\n\t\tscrollElasticity,\n\t\trangeInputElasticity,\n\t\tredrawTrigger,\n\t\t// dynamic env info\n\t\tpointerAccuracy,\n\t\tpointerHoverable,\n\t\tenv,\n\t\trootRect,\n\t\tstageRect,\n\t\tstageRectBase,\n\t\tstageRecenter,\n\t\tstageScalar,\n\t\tstagePadding,\n\t\tstagePadded,\n\t\tpresentationScalar,\n\t\timagePreviewUpscale,\n\t\tutilRect,\n\t\tutilRectPadded,\n\t\tallowPlayPause,\n\t\tallowPan,\n\t\tallowZoom,\n\t\tallowZoomControls,\n\t\tenableZoomInput: enableZoomInputStore,\n\t\tenablePanInput: enablePanInputStore,\n\t\tenablePanInputStatus,\n\t\timageSelectionMultiTouching,\n\t\trootBackgroundColor,\n\t\trootForegroundColor,\n\t\trootLineColor,\n\t\trootColorSecondary,\n\t\timageOutlineOpacity,\n\t\t// add tools to interface\n\t\tutilTools,\n\t\t// interaction\n\t\timageSelectionPan,\n\t\timageSelectionZoom,\n\t\timageSelectionZoomCurrent,\n\t\timageSelectionStageFitScalar,\n\t\timageSelectionStoredState,\n\t\t// toggle audio\n\t\t// muteAudioStore,\n\t\t// (write) add guides to ui (for example is used by markup util to add lines for shape manipulator)\n\t\timageOverlayMarkup,\n\t\t// (write) interface images to render\n\t\tinterfaceImages,\n\t\t// (write) set to true to disable animations\n\t\tisInteracting,\n\t\t// (write) set to true when transforming image (move, translate, scale, rotate)\n\t\tisTransformingImage,\n\t\t// (read) goes from 0 to 1 while interacting\n\t\tisInteractingFraction,\n\t\t// (write) the current intended crop rect\n\t\timageCropRectIntent,\n\t\t// (read) the current presented crop rect\n\t\timageCropRectPresentation,\n\t\t// (write) the current limited size of the image selection rect\n\t\timageSelectionRect,\n\t\t// (write) the inteded rectangle by the user\n\t\timageSelectionRectIntent,\n\t\t// (read) the current presentation of the image selection rect, includes elasticity etc.\n\t\timageSelectionRectPresentation,\n\t\t// (read) a snapshot of the image selection rectangle, use to store the rectangle before manipulation so alterations to the rectangle can be applied to the snapshot\n\t\timageSelectionRectSnapshot,\n\t\t// scalar of image in view\n\t\timageScalar,\n\t\t// current image interpolated state\n\t\timageTransformsInterpolated,\n\t\t// effects applied to the image\n\t\timageEffects\n\t};\n\n\t// don't expose image store\n\tdelete utilStores.image;\n\n\tconst utilsUniqueId = `util-${getUniqueId()}`;\n\tlet previousUtilsAvailable = [];\n\n\tconst getAvailableUtils = (utils, pluginComponents, pluginOptions, props) => {\n\t\tconst utilsAvailable = pluginComponents.filter(([id]) => utils.includes(id)).filter(([id, { isSupported }]) => isSupported({ ...props, ...pluginOptions[id] })).map(([id, util]) => [id, util.Component]);\n\n\t\tconst isEqualToPreviousUtils = arrayEqual(utilsAvailable, previousUtilsAvailable, (a, b) => {\n\t\t\treturn a[0] === b[0] && a[1] === b[1];\n\t\t});\n\n\t\tif (isEqualToPreviousUtils) return previousUtilsAvailable;\n\t\tpreviousUtilsAvailable = utilsAvailable;\n\t\treturn utilsAvailable;\n\t};\n\n\tconst getAvailableUtilById = utilId => utilsAvailable.find(([id]) => utilId === id);\n\tconst getFirstAvailableUtil = () => utilsAvailable[0][0];\n\tlet utilsVisible = [];\n\n\t// env\n\tlet iOS = isIOS();\n\n\tconst getOrientation = (rect, layoutPreference) => {\n\t\tif (!$rootRect) return 'landscape';\n\t\tif (layoutPreference === 'auto') return rect.width > rect.height ? 'landscape' : 'portrait';\n\t\tif (layoutPreference === 'horizontal') return rect.width < 500 ? 'portrait' : 'landscape';\n\t\tif (layoutPreference === 'vertical') return rect.height < 400 ? 'landscape' : 'portrait';\n\t};\n\n\tconst getColorPropertyValue = name => {\n\t\tconst colorString = rootElementComputedStyle.getPropertyValue(name);\n\t\treturn colorStringToColorArray(colorString);\n\t};\n\n\tconst syncValue = (name, store, parseValue) => {\n\t\tlet value = rootElementComputedStyle.getPropertyValue(name);\n\n\t\tvalue = parseValue\n\t\t? parseValue(value)\n\t\t: (/^[0-9]+$/).test(value) ? parseFloat(value) : undefined;\n\n\t\tstore.set(value, { hard: !$isAnimated });\n\t};\n\n\tconst syncColor = (property, store, enableAlpha = false) => {\n\t\tconst colorArray = getColorPropertyValue(property);\n\n\t\t// hide transparent color\n\t\tif (!colorArray || colorArray[3] === 0) return;\n\n\t\t// limit to opaque colors\n\t\tif (!enableAlpha) colorArray.length = 3;\n\n\t\t// update store\n\t\tstore.set(colorArray, { hard: !$isAnimated });\n\t};\n\n\tconst gridSize = writable();\n\tcomponent_subscribe($$self, gridSize, value => $$invalidate(88, $gridSize = value));\n\tconst gridColorEven = writable();\n\tcomponent_subscribe($$self, gridColorEven, value => $$invalidate(89, $gridColorEven = value));\n\tconst gridColorOdd = writable();\n\tcomponent_subscribe($$self, gridColorOdd, value => $$invalidate(90, $gridColorOdd = value));\n\tconst gridOpacity = spring(0, { damping: 0.9 });\n\tcomponent_subscribe($$self, gridOpacity, value => $$invalidate(91, $gridOpacity = value));\n\n\tconst syncCSSProps = () => {\n\t\tsyncColor('color', rootForegroundColor);\n\n\t\tenableCanvasAlpha\n\t\t? syncColor('--color-background', rootBackgroundColor)\n\t\t: syncColor('background-color', rootBackgroundColor);\n\n\t\tsyncColor('outline-color', rootLineColor);\n\t\tsyncColor('--color-primary', rootColorPrimary);\n\t\tsyncColor('--color-secondary', rootColorSecondary);\n\t\tsyncColor('--grid-color-even', gridColorEven, true);\n\t\tsyncColor('--grid-color-odd', gridColorOdd, true);\n\t\tsyncValue('--grid-size', gridSize);\n\t\tsyncValue('--editor-inset-top', rootInsetTop, v => parseInt(v, 10));\n\t};\n\n\tconst handleTransitionEnd = ({ target, propertyName }) => {\n\t\tif (target !== root || !(/background|outline/).test(propertyName)) return;\n\t\tif (rootElementComputedStyle) syncCSSProps();\n\t};\n\n\tconst imageProps = derived([imageTransforms, imageEffects, imageBackgroundColor, imageBackgroundImageData], ([$imageTransforms, $imageEffects, backgroundColor, backgroundImageData]) => {\n\t\treturn $imageTransforms && {\n\t\t\t...$imageTransforms,\n\t\t\t...$imageEffects,\n\t\t\tbackgroundColor,\n\t\t\tbackgroundImage: backgroundImageData\n\t\t};\n\t});\n\n\tcomponent_subscribe($$self, imageProps, value => $$invalidate(376, $imageProps = value));\n\n\tconst addImagePreview = () => {\n\t\t// if is first image scale up slightly on entrance\n\t\tconst imageIntro = activeImages.length ? undefined : { resize: 1.05 };\n\n\t\t// create the new image\n\t\tconst image = createImage($imagePreview, $imageSize, imageIntro);\n\n\t\t// new image on top\n\t\tactiveImages.unshift(image);\n\n\t\t// update images in activeImages array\n\t\tupdateImagePreviews($imageProps);\n\t};\n\n\tconst updateImagePreviews = currentImageProps => {\n\t\tactiveImages.forEach((image, index) => {\n\t\t\tconst opacity = index === 0 ? 1 : 0;\n\t\t\tconst resize = 1;\n\t\t\timage.set({ ...currentImageProps, opacity, resize }, $shouldAnimate);\n\t\t});\n\t};\n\n\t// if image preview changes, push it on the stack\n\tlet lastImagePreview;\n\n\tconst statusOpacity = tweened(undefined, { duration: 500 });\n\tcomponent_subscribe($$self, statusOpacity, value => $$invalidate(55, $statusOpacity = value));\n\tlet loadTimer;\n\n\t// this adds a little delay to the status fade out after an image was processed\n\t// needed because when the modal fades out this would otherwise create a weird flash (modal fade out, but status fade out as well showing interface)\n\tconst wasProcessingImage = writable(false);\n\n\tcomponent_subscribe($$self, wasProcessingImage, value => $$invalidate(371, $wasProcessingImage = value));\n\tlet statusState;\n\n\tconst asideOffset = spring(undefined, {\n\t\tstiffness: 0.1,\n\t\tdamping: 0.7,\n\t\tprecision: 0.25\n\t});\n\n\tcomponent_subscribe($$self, asideOffset, value => $$invalidate(83, $asideOffset = value));\n\tconst asideOpacity = spring(0, { stiffness: 0.1, precision: 0.05 });\n\tcomponent_subscribe($$self, asideOpacity, value => $$invalidate(84, $asideOpacity = value));\n\n\tconst asideWidth = spring(0, {\n\t\tstiffness: 0.02,\n\t\tdamping: 0.5,\n\t\tprecision: 0.25\n\t});\n\n\tcomponent_subscribe($$self, asideWidth, value => $$invalidate(369, $asideWidth = value));\n\n\tconst statusWidth = spring(undefined, {\n\t\tstiffness: 0.02,\n\t\tdamping: 0.5,\n\t\tprecision: 0.25\n\t});\n\n\tcomponent_subscribe($$self, statusWidth, value => $$invalidate(370, $statusWidth = value));\n\n\tconst statusOffset = spring(undefined, {\n\t\tstiffness: 0.02,\n\t\tdamping: 0.5,\n\t\tprecision: 0.25\n\t});\n\n\tcomponent_subscribe($$self, statusOffset, value => $$invalidate(368, $statusOffset = value));\n\tlet asideWidthUpdateTimer;\n\n\tconst offsetAside = e => {\n\t\t// if error occured, or not animating, snap in possition\n\t\tconst hard = !!(statusState && statusState.closeButton) || !$isAnimated;\n\n\t\t// where to render the progress indicator or close button\n\t\tstatusWidth.set(e.detail.width, { hard });\n\n\t\t// offsets text so it's better centered to the viewport\n\t\tstatusOffset.set(Math.round(-e.detail.width * 0.5), { hard });\n\t};\n\n\tconst handleCloseImageLoadError = () => {\n\t\tdispatch('abortLoadImage');\n\t};\n\n\tconst handleCloseImageProcessError = () => {\n\t\tdispatch('abortProcessImage');\n\t\tset_store_value(imageProcessingPreparing, $imageProcessingPreparing = false, $imageProcessingPreparing);\n\t};\n\n\t// helper to block iOS and Firefox Android events so don't toggle nav\n\tconst preventDefault = e => {\n\t\tif (e.target && e.target.dataset.touchScroll === 'true') return;\n\t\te.preventDefault();\n\t};\n\n\t// prevents swipe to navigate back on iOS >= 13.4+\n\tconst handleTouchStart = shouldPreventSwipe\n\t? e => {\n\t\t\t// get touch or event itself (fixes issue with chrome dev tools)\n\t\t\tconst event = e.touches ? e.touches[0] : e;\n\n\t\t\t// if is not an attempt to swipe back or forward\n\t\t\tif (event.pageX > 20 && event.pageX < window.innerWidth - 20) return;\n\n\t\t\t// stop the navigation attempt\n\t\t\tpreventDefault(e);\n\t\t}\n\t: noop$1;\n\n\t// context for children to know if a key is down\n\tconst pressedKeysStore = writable([]);\n\n\tcomponent_subscribe($$self, pressedKeysStore, value => $$invalidate(463, $pressedKeysStore = value));\n\tsetContext('keysPressed', pressedKeysStore);\n\n\tconst handleKeydown = e => {\n\t\tconst { keyCode, metaKey, ctrlKey, shiftKey } = e;\n\n\t\t// prevent tabbing through fields if editor is disabled\n\t\tif (keyCode === 9 && disabled) {\n\t\t\te.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\t// prevent spacebar from scrolling page\n\t\tif (e.target && keyCode === 32 && root.contains(e.target) && !isTextField(e.target)) {\n\t\t\tif ($allowPlayPause && isVideoSupported) togglePlayPause();\n\t\t\te.preventDefault();\n\t\t}\n\n\t\t// undo/redo\n\t\tif (keyCode === 90 && (metaKey || ctrlKey)) {\n\t\t\tif (shiftKey && metaKey) {\n\t\t\t\t// redo on MacOS\n\t\t\t\thistory.redo();\n\t\t\t} else {\n\t\t\t\t// undo\n\t\t\t\thistory.undo();\n\t\t\t}\n\n\t\t\treturn;\n\t\t} else if (keyCode === 89 && ctrlKey) {\n\t\t\t// redo on Windows\n\t\t\thistory.redo();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// ignore IME popup keycode, fixes keycode 229 sticking around, as it's not triggered in keyup \"If an Input Method Editor is processing key input and the event is keydown, return 229.\"\n\t\t// https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html\n\t\tif (keyCode === 229) return;\n\n\t\t// if (metaKey || ctrlKey) return;\n\t\t// add to set\n\t\tconst keySet = new Set([...$pressedKeysStore, keyCode]);\n\n\t\tpressedKeysStore.set(Array.from(keySet));\n\t};\n\n\tconst handleKeyup = ({ key, keyCode }) => {\n\t\t// this prevents holding the command key while panning image from resutling in sticky keys\n\t\tif (key === 'Meta') return pressedKeysStore.set([]);\n\n\t\tpressedKeysStore.set($pressedKeysStore.filter(pressedKey => pressedKey !== keyCode));\n\t};\n\n\t// so no keys get stuck when user cmd-tabs out of the window, or when dev-tools open by key-press\n\tconst handleWindowBlur = () => {\n\t\tpressedKeysStore.set([]);\n\t};\n\n\t// block context menu on everything but text input fields\n\tconst handleContextMenu = e => {\n\t\tif (isTextField(e.target)) return;\n\t\te.preventDefault();\n\t};\n\n\t// handle files being dropped on the editor\n\tconst handleUserFile = file => {\n\t\t// no file received, isn't an image file, is not a URL\n\t\tif (// no file received\n\t\t!file || // if it's a file object it should be a bitmap\n\t\tisBinary(file) && !isBitmap(file) || // if it's not a file object it should be a URL\n\t\t!isBinary(file) && !(/^http/).test(file)) return;\n\n\t\t// request load image\n\t\tdispatch('loadImage', file);\n\t};\n\n\tconst handleDropFiles = e => {\n\t\t// not allowed to drop\n\t\tif (!enableDropImage) return;\n\n\t\thandleUserFile(e.detail.resources[0]);\n\t};\n\n\tconst handleSelectFile = file => {\n\t\tif (!file) return;\n\t\thandleUserFile(file);\n\t};\n\n\tconst browseFileSystem = () => {\n\t\tif (!enableBrowseImage) return;\n\t\tbrowse().then(handleSelectFile);\n\t};\n\n\tconst handlePaste = e => {\n\t\t// not allowed to paste\n\t\tif (!enablePasteImage) return;\n\n\t\t// calculate percentage of editor that is in view\n\t\tconst xPercentage = clamp((window.innerWidth - Math.abs($rootRect.x)) / $rootRect.width, 0, 1);\n\n\t\tconst yPercentage = clamp((window.innerHeight - Math.abs($rootRect.y)) / $rootRect.height, 0, 1);\n\n\t\t// editor needs to be in view\n\t\tif (xPercentage < 0.75 && yPercentage < 0.75) return;\n\n\t\t// request load image\n\t\thandleUserFile((e.clipboardData || window.clipboardData).files[0]);\n\t};\n\n\t//\n\t// canvas drawing\n\t//\n\tlet scrambledPreviewImage = undefined;\n\n\tconst updateScrambledPreview = (imagePreviewData, imageScrambler, imageRedactionScalar, imageBackgroundColor) => {\n\t\tif (!imageScrambler) return;\n\n\t\t// remove transparency\n\t\tconst scrambleOptions = { dataSizeScalar: imageRedactionScalar };\n\n\t\tif (imageBackgroundColor && imageBackgroundColor[3] > 0) {\n\t\t\tscrambleOptions.backgroundColor = [...imageBackgroundColor];\n\t\t}\n\n\t\timageScrambler(imagePreviewData, scrambleOptions).then(scrambledCanvas => {\n\t\t\t// we've created a new scrambled preview so force release memory of old one\n\t\t\tif (scrambledPreviewImage) {\n\t\t\t\treleaseCanvas(scrambledPreviewImage);\n\t\t\t}\n\n\t\t\t// update scrambled preview with new image\n\t\t\t$$invalidate(286, scrambledPreviewImage = scrambledCanvas);\n\t\t});\n\t};\n\n\tlet computedRedactionShapes = [];\n\n\t// setup root portal for detail panel dropdown\n\tlet rootPortal;\n\n\tconst rootPortalStore = writable();\n\tsetContext('rootPortal', rootPortalStore);\n\n\t// setup root rect store for global access\n\tsetContext('rootRect', rootRect);\n\n\tconst getStageState = () => ({\n\t\t// add foreground color\n\t\tforegroundColor: [...$rootForegroundColor],\n\t\t// add line color\n\t\tlineColor: [...$rootLineColor],\n\t\t// add information on which util is active\n\t\tutilVisibility: { ...utilsVisibleFraction },\n\t\t// used to fade in elements when interacting\n\t\tisInteracting: $isInteracting,\n\t\tisInteractingFraction: $isInteractingFraction,\n\t\t// add the root rectangle so will render can use width/height of root element\n\t\trootRect: rectClone$1($rootRect),\n\t\t// add the stage rectangle so will render knows where stage starts and ends\n\t\tstageRect: rectClone$1($stageRect),\n\t\t// allows overriding dirty state\n\t\tmanipulationShapesDirty: imageManipulationShapesDirty,\n\t\tannotationShapesDirty: imageAnnotationShapesDirty,\n\t\tdecorationShapesDirty: imageDecorationShapesDirty,\n\t\tframeShapesDirty: imageFrameShapesDirty\n\t});\n\n\t// test if some shapes have left/top/bottom/right offsets, if so, convert to crop space\n\t// updates original shape (which at this point is a flattened shape (clone))\n\tconst positionDecorationShape = (shape, selectionRect, scale) => {\n\t\t// need to calculate intermediate sizes so relative shapes are animated when the interface updates\n\t\t// this calculation should result in a \"springed\" $imageCropRect\n\t\treturn shapeComputeDisplay(shape, sizeCreate(selectionRect.width / scale, selectionRect.height / scale));\n\t};\n\n\t// decoration is drawn relative to view space, so we need to translate relative to crop presentation rect\n\tconst transformDecorationShape = (shape, selectionRect, scale) => {\n\t\tshape._translate = vectorCreateFromAny(selectionRect);\n\t\tshape._scale = scale;\n\t\treturn shape;\n\t};\n\n\tconst flattenShapes = shapes => {\n\t\tconst flattenedShapes = [];\n\t\tshapes.forEach(shape => flattenedShapes.push(flattenShape(shape)));\n\t\treturn flattenedShapes.filter(Boolean);\n\t};\n\n\tconst flattenShape = shape => {\n\t\t// at this point shape is a copy of the original shape\n\t\tif (shapeIsLine(shape)) {\n\t\t\tshape.points = [vectorCreate(shape.x1, shape.y1), vectorCreate(shape.x2, shape.y2)];\n\t\t\treturn shape;\n\t\t}\n\n\t\t// is empty text\n\t\tif (shapeIsTextEmpty(shape) && (!shape.backgroundColor || shape.backgroundColor[3] === 0)) {\n\t\t\t// make sure shape is still visible\n\t\t\tif (shapeIsTextBlock(shape)) {\n\t\t\t\tshape.width = 5;\n\t\t\t\tshape.height = shape.lineHeight;\n\t\t\t}\n\n\t\t\t// set to empty text style\n\t\t\tshape.strokeWidth = 1;\n\n\t\t\tshape.strokeColor = [1, 1, 1, 0.5];\n\t\t\tshape.backgroundColor = [0, 0, 0, 0.1];\n\t\t\treturn shape;\n\t\t}\n\n\t\treturn shape;\n\t};\n\n\t// these hold computes shapes, so we don't have to compute on each frame if no changes\n\tlet canvasComputedAnnotationBaseShapes = [];\n\n\tlet canvasComputedAnnotationShapes = [];\n\tlet canvasComputedManipulationShapes = [];\n\tlet canvasComputedDecorationShapes = [];\n\tlet canvasComputedFrameShapes = [];\n\tlet canvasComputedScale;\n\tlet canvasComputedSelectionRect = {};\n\n\tconst createCanvasState = (canvasState, manipulationShapesToDraw, annotationShapesToDraw, decorationShapesToDraw, interfaceShapesToDraw, frameShapesToDraw, selectionShapes) => {\n\t\tconst { manipulationShapesDirty, annotationShapesDirty, decorationShapesDirty, frameShapesDirty, selectionRect, scale } = canvasState;\n\n\t\t// determine if canvas is dirty, if so, we need to recalculate shapes that rely on canvas\n\t\tconst canvasScaleChanged = canvasComputedScale !== scale;\n\n\t\tconst canvasDirty = canvasScaleChanged || !rectEqual(canvasComputedSelectionRect, selectionRect);\n\n\t\t// remember dirty state so we can compare next draw\n\t\tif (canvasDirty) {\n\t\t\tcanvasComputedScale = scale;\n\t\t\tcanvasComputedSelectionRect = selectionRect;\n\t\t}\n\n\t\t// blend shapes changed\n\t\tif (manipulationShapesDirty) {\n\t\t\tcanvasComputedManipulationShapes = manipulationShapesToDraw.filter(shapeIsVisible).map(shapeDeepCopy).map(shape => shapeComputeDisplay(shape, $imageSize));\n\t\t}\n\n\t\t// annotation shapes changed, or user changed annotation shapes in willRenderCanvas hook\n\t\tif (annotationShapesDirty || annotationShapesToDraw !== $imageAnnotation) {\n\t\t\tcanvasComputedAnnotationBaseShapes = annotationShapesToDraw.filter(shapeIsVisible).map(shapeDeepCopy).sort((a, b) => {\n\t\t\t\tif (a.alwaysOnTop) return 1;\n\t\t\t\tif (b.alwaysOnTop) return -1;\n\t\t\t\treturn 0;\n\t\t\t}).map(shape => shapeComputeDisplay(shape, $imageSize));\n\t\t}\n\n\t\tif (canvasScaleChanged || imageAnnotationRequiresPreprocessing || annotationShapesDirty || annotationShapesToDraw !== $imageAnnotation) {\n\t\t\tcanvasComputedAnnotationShapes = flattenShapes(canvasComputedAnnotationBaseShapes.map(shape => preprocessShape(shape, {\n\t\t\t\tflipX: $imageFlipX,\n\t\t\t\tflipY: $imageFlipY,\n\t\t\t\trotation: $imageRotation,\n\t\t\t\tscale,\n\t\t\t\tcontext: rectCreateFromSize($imageSize)\n\t\t\t})).flat());\n\t\t}\n\n\t\t// decoration shapes changed, or user changed decoration shapes in willRenderCanvs hook, or canvas updated and decorations need to be recomputed\n\t\tif (decorationShapesDirty || decorationShapesToDraw !== $imageDecoration || canvasDirty) {\n\t\t\tcanvasComputedDecorationShapes = flattenShapes(decorationShapesToDraw.filter(shapeIsVisible).map(shapeDeepCopy).sort((a, b) => {\n\t\t\t\tif (a.alwaysOnTop) return 1;\n\t\t\t\tif (b.alwaysOnTop) return -1;\n\t\t\t\treturn 0;\n\t\t\t}).map(shape => positionDecorationShape(shape, selectionRect, scale)).map(shape => preprocessShape(shape, { context: selectionRect })).flat().map(shape => transformDecorationShape(shape, selectionRect, scale)));\n\t\t}\n\n\t\t// only recompute frame shapes if frame changed or selection rect changed\n\t\tif (frameShapesDirty || frameShapesToDraw !== $imageFrame || canvasDirty) {\n\t\t\tcanvasComputedFrameShapes = frameShapesToDraw\n\t\t\t? flattenShapes([frameShapesToDraw].map(shapeDeepCopy).map(shape => positionDecorationShape(shape, selectionRect, scale)).map(preprocessShape).flat().map(shape => transformDecorationShape(shape, selectionRect, scale)))\n\t\t\t: [];\n\t\t}\n\n\t\tlet canvasComputedInterfaceShapes = flattenShapes(interfaceShapesToDraw.filter(shapeIsVisible));\n\n\t\treturn {\n\t\t\t// only redraw if annotations are dirty\n\t\t\tmanipulationShapesDirty,\n\t\t\tmanipulationShapes: canvasComputedManipulationShapes,\n\t\t\t// only redraw if annotations are dirty\n\t\t\tannotationShapesDirty,\n\t\t\tannotationShapes: canvasComputedAnnotationShapes,\n\t\t\t// prepare decoration shapes (percentages to absolute values)\n\t\t\tdecorationShapesDirty,\n\t\t\tdecorationShapes: canvasComputedDecorationShapes,\n\t\t\t// prepare frame shapes (percentages to absolute values)\n\t\t\tframeShapesDirty,\n\t\t\tframeShapes: canvasComputedFrameShapes,\n\t\t\t// prepare interface shapes (percentages to absolute values)\n\t\t\tinterfaceShapes: canvasComputedInterfaceShapes,\n\t\t\t// selection\n\t\t\tselectionShapes: selectionShapes.map(shapeDeepCopy).map(shape => shapeComputeDisplay(shape, $imageSize))\n\t\t};\n\t};\n\n\t//\n\t// for optimizing canvas calls\n\t//\n\t// mark image annotations as dirrty if the image annotations array is changed\n\tlet imageAnnotationShapesDirty = true;\n\n\tconst markAnnotationShapesAsDirty = () => $$invalidate(64, imageAnnotationShapesDirty = true);\n\tlet imageAnnotationRequiresPreprocessing = true;\n\tconst markAnnotationRequiresPreprocessing = () => $$invalidate(65, imageAnnotationRequiresPreprocessing = true);\n\n\t// mark image decorations as dirty if the image decorations array is changed\n\tlet imageDecorationShapesDirty = true;\n\n\tconst markDecorationShapesAsDirty = () => $$invalidate(66, imageDecorationShapesDirty = true);\n\n\t// mark image frames as dirrty if the image frames array is changed\n\tlet imageFrameShapesDirty = true;\n\n\tconst markFrameShapesAsDirty = () => $$invalidate(67, imageFrameShapesDirty = true);\n\n\t// mark blend shapes as dirty if the image blend shapes array is changed\n\tlet imageManipulationShapesDirty = true;\n\n\tconst markManipulationShapesAsDirty = () => $$invalidate(68, imageManipulationShapesDirty = true);\n\n\t// clean up so memory is released correctly\n\tonDestroy(() => {\n\t\t// make sure video is paused\n\t\tpause();\n\n\t\t// if image preview src is an object url we need to release it\n\t\tif ($imagePreview && isString($imagePreview.src) && (/^blob:/).test($imagePreview.src)) {\n\t\t\tURL.revokeObjectURL($imagePreview.src);\n\t\t}\n\n\t\timageStateUnsub();\n\t\tstageRectUnsub();\n\t\tstageScalarUnsub();\n\t\timageIsStaticUnsub();\n\t\timageSelectionRectSnapshotUnsub();\n\t\timageSelectionRectUnsub();\n\t\timageCropRectUnsub();\n\t\timageLoadStateUnsub();\n\t\timageProcessStateUnsub();\n\t\tpointerAccuracy.destroy();\n\t\tpointerHoverable.destroy();\n\t\timageProxy.destroy();\n\t\tactiveImages.clear();\n\n\t\t// clear shape cache\n\t\tcanvasComputedAnnotationBaseShapes.length = 0;\n\n\t\tcanvasComputedAnnotationShapes.length = 0;\n\t\tcanvasComputedManipulationShapes.length = 0;\n\t\tcanvasComputedDecorationShapes.length = 0;\n\t\tcanvasComputedFrameShapes.length = 0;\n\n\t\ttry {\n\t\t\t$$invalidate(228, imagePreviewCurrent = undefined);\n\t\t\t$$invalidate(283, lastImagePreview = undefined);\n\t\t} catch(err) {\n\t\t\t\n\t\t} // this sometimes throws a Svelte $$invalidate error, not sure why\n\t});\n\n\tconst handleMeasureUtil = e => {\n\t\t// no change\n\t\tif ($utilRect && rectEqual(e.detail, $utilRect)) return;\n\n\t\t// update rect\n\t\tset_store_value(utilRect, $utilRect = e.detail, $utilRect);\n\t};\n\n\tfunction onwindowresize() {\n\t\t$$invalidate(31, windowWidth = window_1$1.innerWidth);\n\t\t$$invalidate(32, windowHeight = window_1$1.innerHeight);\n\t}\n\n\tconst measure_handler = e => set_store_value(toolRect, $toolRect = e.detail, $toolRect);\n\tconst select_handler = ({ detail }) => $$invalidate(44, utilSelected = detail);\n\tconst func = (panel, util) => util.id === panel;\n\n\tfunction utilpanel_component_binding(value, panel) {\n\t\tif ($$self.$$.not_equal(pluginInterface[panel], value)) {\n\t\t\tpluginInterface[panel] = value;\n\t\t\t(($$invalidate(1, pluginInterface), $$invalidate(268, pluginComponents)), $$invalidate(27, pluginOptions));\n\t\t}\n\t}\n\n\tconst show_handler = panel => $$invalidate(63, utilsVisible = utilsVisible.concat(panel));\n\tconst hide_handler = panel => $$invalidate(63, utilsVisible = utilsVisible.filter(util => util !== panel));\n\tconst fade_handler = (panel, { detail }) => $$invalidate(38, utilsVisibleFraction[panel] = detail, utilsVisibleFraction);\n\tconst measure_handler_1 = e => set_store_value(tabRect, $tabRect = e.detail, $tabRect);\n\tconst func_1 = util => util.id === utilSelected;\n\n\tfunction utilpanel_component_binding_1(value) {\n\t\tif ($$self.$$.not_equal(pluginInterface[utilSelected], value)) {\n\t\t\tpluginInterface[utilSelected] = value;\n\t\t\t(($$invalidate(1, pluginInterface), $$invalidate(268, pluginComponents)), $$invalidate(27, pluginOptions));\n\t\t}\n\t}\n\n\tconst show_handler_1 = () => $$invalidate(63, utilsVisible = utilsVisible.concat(utilSelected));\n\tconst hide_handler_1 = () => $$invalidate(63, utilsVisible = utilsVisible.filter(util => util !== utilSelected));\n\tconst fade_handler_1 = ({ detail }) => $$invalidate(38, utilsVisibleFraction[utilSelected] = detail, utilsVisibleFraction);\n\n\tconst func_2 = canvasState => {\n\n\t\t// current draw state\n\t\tconst drawState = { ...canvasState, ...getStageState() };\n\n\t\t// allow devs to add custom overlay to `imageOverlay`\n\t\tconst { annotationShapes, decorationShapes, interfaceShapes, frameShapes, selectionShapes } = willRenderCanvas(\n\t\t\t{\n\t\t\t\tannotationShapes: $imageAnnotation,\n\t\t\t\tdecorationShapes: $imageDecoration,\n\t\t\t\tinterfaceShapes: $imageOverlay,\n\t\t\t\tframeShapes: $imageFrame,\n\t\t\t\tselectionShapes: $imageSelection\n\t\t\t},\n\t\t\tdrawState\n\t\t);\n\n\t\t// need to map shapes\n\t\treturn createCanvasState(drawState, manipulationShapes, annotationShapes, decorationShapes, interfaceShapes, frameShapes, selectionShapes);\n\t};\n\n\tconst func_3 = () => {\n\t\t// we've just drawn the shapes so mark as clean\n\t\t$$invalidate(64, imageAnnotationShapesDirty = false);\n\n\t\t$$invalidate(65, imageAnnotationRequiresPreprocessing = false);\n\t\t$$invalidate(66, imageDecorationShapesDirty = false);\n\t\t$$invalidate(67, imageFrameShapesDirty = false);\n\t\t$$invalidate(68, imageManipulationShapesDirty = false);\n\t};\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\trootPortal = $$value;\n\t\t\t$$invalidate(36, rootPortal);\n\t\t});\n\t}\n\n\tfunction canvaspanandzoom_zoomLevel_binding(value) {\n\t\tzoomLevel = value;\n\t\t($$invalidate(0, zoomLevel), $$invalidate(258, markupEditorZoomLevel));\n\t}\n\n\tfunction canvaspanandzoom_zoomControls_binding(value) {\n\t\tzoomControls = value;\n\t\t$$invalidate(33, zoomControls);\n\t}\n\n\tfunction canvaspanandzoom_zoomMultiTouching_binding(value) {\n\t\tzoomMultiTouching = value;\n\t\t$$invalidate(34, zoomMultiTouching);\n\t}\n\n\tfunction input_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tuserTextInputField = $$value;\n\t\t\t$$invalidate(62, userTextInputField);\n\t\t});\n\t}\n\n\tfunction div_binding_1($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(2, root);\n\t\t});\n\t}\n\n\tconst measure_handler_2 = e => set_store_value(clientRect, $clientRect = e.detail, $clientRect);\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(229, klass = $$props.class);\n\t\tif ('layout' in $$props) $$invalidate(230, layoutMode = $$props.layout);\n\t\tif ('stores' in $$props) $$invalidate(231, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(3, locale = $$props.locale);\n\t\tif ('id' in $$props) $$invalidate(4, id = $$props.id);\n\t\tif ('util' in $$props) $$invalidate(232, util = $$props.util);\n\t\tif ('utils' in $$props) $$invalidate(233, utils = $$props.utils);\n\t\tif ('animations' in $$props) $$invalidate(234, animations = $$props.animations);\n\t\tif ('disabled' in $$props) $$invalidate(235, disabled = $$props.disabled);\n\t\tif ('status' in $$props) $$invalidate(227, status = $$props.status);\n\t\tif ('previewUpscale' in $$props) $$invalidate(236, previewUpscale = $$props.previewUpscale);\n\t\tif ('previewPad' in $$props) $$invalidate(237, previewPad = $$props.previewPad);\n\t\tif ('previewMaskOpacity' in $$props) $$invalidate(5, previewMaskOpacity = $$props.previewMaskOpacity);\n\t\tif ('previewImageDataMaxSize' in $$props) $$invalidate(238, previewImageDataMaxSize = $$props.previewImageDataMaxSize);\n\t\tif ('previewImageTextPixelRatio' in $$props) $$invalidate(6, previewImageTextPixelRatio = $$props.previewImageTextPixelRatio);\n\t\tif ('markupMaskOpacity' in $$props) $$invalidate(7, markupMaskOpacity = $$props.markupMaskOpacity);\n\t\tif ('zoomMaskOpacity' in $$props) $$invalidate(239, zoomMaskOpacity = $$props.zoomMaskOpacity);\n\t\tif ('elasticityMultiplier' in $$props) $$invalidate(8, elasticityMultiplier = $$props.elasticityMultiplier);\n\t\tif ('willRevert' in $$props) $$invalidate(240, willRevert = $$props.willRevert);\n\t\tif ('willProcessImage' in $$props) $$invalidate(241, willProcessImage = $$props.willProcessImage);\n\t\tif ('willRenderCanvas' in $$props) $$invalidate(9, willRenderCanvas = $$props.willRenderCanvas);\n\t\tif ('willRenderToolbar' in $$props) $$invalidate(242, willRenderToolbar = $$props.willRenderToolbar);\n\t\tif ('willSetHistoryInitialState' in $$props) $$invalidate(243, willSetHistoryInitialState = $$props.willSetHistoryInitialState);\n\t\tif ('enableButtonExport' in $$props) $$invalidate(244, enableButtonExport = $$props.enableButtonExport);\n\t\tif ('enableButtonRevert' in $$props) $$invalidate(245, enableButtonRevert = $$props.enableButtonRevert);\n\t\tif ('enableNavigateHistory' in $$props) $$invalidate(246, enableNavigateHistory = $$props.enableNavigateHistory);\n\t\tif ('enableToolbar' in $$props) $$invalidate(10, enableToolbar = $$props.enableToolbar);\n\t\tif ('enableUtils' in $$props) $$invalidate(247, enableUtils = $$props.enableUtils);\n\t\tif ('enableButtonClose' in $$props) $$invalidate(248, enableButtonClose = $$props.enableButtonClose);\n\t\tif ('enableDropImage' in $$props) $$invalidate(249, enableDropImage = $$props.enableDropImage);\n\t\tif ('enablePasteImage' in $$props) $$invalidate(250, enablePasteImage = $$props.enablePasteImage);\n\t\tif ('enableBrowseImage' in $$props) $$invalidate(251, enableBrowseImage = $$props.enableBrowseImage);\n\t\tif ('enableTransparencyGrid' in $$props) $$invalidate(11, enableTransparencyGrid = $$props.enableTransparencyGrid);\n\t\tif ('layoutDirectionPreference' in $$props) $$invalidate(252, layoutDirectionPreference = $$props.layoutDirectionPreference);\n\t\tif ('layoutHorizontalUtilsPreference' in $$props) $$invalidate(253, layoutHorizontalUtilsPreference = $$props.layoutHorizontalUtilsPreference);\n\t\tif ('layoutVerticalUtilsPreference' in $$props) $$invalidate(254, layoutVerticalUtilsPreference = $$props.layoutVerticalUtilsPreference);\n\t\tif ('layoutVerticalToolbarPreference' in $$props) $$invalidate(255, layoutVerticalToolbarPreference = $$props.layoutVerticalToolbarPreference);\n\t\tif ('layoutVerticalControlGroupsPreference' in $$props) $$invalidate(256, layoutVerticalControlGroupsPreference = $$props.layoutVerticalControlGroupsPreference);\n\t\tif ('layoutVerticalControlTabsPreference' in $$props) $$invalidate(257, layoutVerticalControlTabsPreference = $$props.layoutVerticalControlTabsPreference);\n\t\tif ('textDirection' in $$props) $$invalidate(12, textDirection = $$props.textDirection);\n\t\tif ('markupEditorZoomLevel' in $$props) $$invalidate(258, markupEditorZoomLevel = $$props.markupEditorZoomLevel);\n\t\tif ('markupEditorZoomLevels' in $$props) $$invalidate(13, markupEditorZoomLevels = $$props.markupEditorZoomLevels);\n\t\tif ('markupEditorZoomAdjustStep' in $$props) $$invalidate(14, markupEditorZoomAdjustStep = $$props.markupEditorZoomAdjustStep);\n\t\tif ('markupEditorZoomAdjustFactor' in $$props) $$invalidate(15, markupEditorZoomAdjustFactor = $$props.markupEditorZoomAdjustFactor);\n\t\tif ('markupEditorZoomAdjustWheelFactor' in $$props) $$invalidate(16, markupEditorZoomAdjustWheelFactor = $$props.markupEditorZoomAdjustWheelFactor);\n\t\tif ('markupEditorInteractionMode' in $$props) $$invalidate(259, markupEditorInteractionMode = $$props.markupEditorInteractionMode);\n\t\tif ('muteAudio' in $$props) $$invalidate(260, muteAudio = $$props.muteAudio);\n\t\tif ('willSetMediaInitialTimeOffset' in $$props) $$invalidate(261, willSetMediaInitialTimeOffset = $$props.willSetMediaInitialTimeOffset);\n\t\tif ('enablePan' in $$props) $$invalidate(17, enablePan = $$props.enablePan);\n\t\tif ('enableZoom' in $$props) $$invalidate(18, enableZoom = $$props.enableZoom);\n\t\tif ('enableZoomControls' in $$props) $$invalidate(262, enableZoomControls = $$props.enableZoomControls);\n\t\tif ('enableZoomInput' in $$props) $$invalidate(19, enableZoomInput = $$props.enableZoomInput);\n\t\tif ('enablePanInput' in $$props) $$invalidate(263, enablePanInput = $$props.enablePanInput);\n\t\tif ('enableCanvasAlpha' in $$props) $$invalidate(20, enableCanvasAlpha = $$props.enableCanvasAlpha);\n\t\tif ('enablePanLimit' in $$props) $$invalidate(21, enablePanLimit = $$props.enablePanLimit);\n\t\tif ('panLimitGutterScalar' in $$props) $$invalidate(22, panLimitGutterScalar = $$props.panLimitGutterScalar);\n\t\tif ('zoomPresetOptions' in $$props) $$invalidate(23, zoomPresetOptions = $$props.zoomPresetOptions);\n\t\tif ('zoomAdjustStep' in $$props) $$invalidate(24, zoomAdjustStep = $$props.zoomAdjustStep);\n\t\tif ('zoomAdjustFactor' in $$props) $$invalidate(25, zoomAdjustFactor = $$props.zoomAdjustFactor);\n\t\tif ('zoomAdjustWheelFactor' in $$props) $$invalidate(26, zoomAdjustWheelFactor = $$props.zoomAdjustWheelFactor);\n\t\tif ('zoomLevel' in $$props) $$invalidate(0, zoomLevel = $$props.zoomLevel);\n\t\tif ('imagePreviewSrc' in $$props) $$invalidate(266, imagePreviewSrc = $$props.imagePreviewSrc);\n\t\tif ('imageOrienter' in $$props) $$invalidate(267, imageOrienter = $$props.imageOrienter);\n\t\tif ('pluginComponents' in $$props) $$invalidate(268, pluginComponents = $$props.pluginComponents);\n\t\tif ('pluginOptions' in $$props) $$invalidate(27, pluginOptions = $$props.pluginOptions);\n\t\tif ('root' in $$props) $$invalidate(2, root = $$props.root);\n\t\tif ('imageSourceToImageData' in $$props) $$invalidate(28, imageSourceToImageData = $$props.imageSourceToImageData);\n\t\tif ('imagePreviewCurrent' in $$props) $$invalidate(228, imagePreviewCurrent = $$props.imagePreviewCurrent);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*zoomLevel*/ 1 | $$self.$$.dirty[8] & /*markupEditorZoomLevel*/ 1024) {\n\t\t\t// @deprecated, remove in v9\n\t\t\t$$invalidate(0, zoomLevel = zoomLevel === null ? markupEditorZoomLevel : zoomLevel);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*pluginInterface*/ 2 | $$self.$$.dirty[8] & /*pluginComponents*/ 1048576) {\n\t\t\t{\n\t\t\t\tlet changed = false;\n\n\t\t\t\t// create plugin interfaces\n\t\t\t\tpluginComponents.forEach(([key]) => {\n\t\t\t\t\tif (pluginInterface[key]) return;\n\t\t\t\t\t$$invalidate(1, pluginInterface[key] = {}, pluginInterface);\n\t\t\t\t\tchanged = true;\n\t\t\t\t});\n\n\t\t\t\tif (changed) {\n\t\t\t\t\t$$invalidate(280, registeredPluginsComponents = [...pluginComponents]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[7] & /*utils*/ 65536 | $$self.$$.dirty[9] & /*registeredPluginsComponents*/ 2) {\n\t\t\t$$invalidate(335, utilsFiltered = locale && registeredPluginsComponents.length\n\t\t\t? utils || registeredPluginsComponents.map(([id]) => id)\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*pluginOptions*/ 134217728 | $$self.$$.dirty[9] & /*registeredPluginsComponents*/ 2 | $$self.$$.dirty[10] & /*utilsFiltered*/ 33554432 | $$self.$$.dirty[12] & /*$imageFile*/ 1024) {\n\t\t\t$$invalidate(336, utilsAvailable = getAvailableUtils(utilsFiltered, registeredPluginsComponents, pluginOptions, { src: $imageFile }));\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*utilsAvailable*/ 67108864) {\n\t\t\t$$invalidate(291, utilsDefined = utilsAvailable.length);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[9] & /*utilsDefined*/ 4096 | $$self.$$.dirty[10] & /*utilsFiltered*/ 33554432) {\n\t\t\t$$invalidate(47, utilsMerged = utilsDefined && utilsFiltered.map(utilId => {\n\t\t\t\tconst util = getAvailableUtilById(utilId);\n\t\t\t\tif (!util) return;\n\n\t\t\t\treturn {\n\t\t\t\t\tid: utilId,\n\t\t\t\t\tview: util[1],\n\t\t\t\t\ttabIcon: locale[`${utilId}Icon`],\n\t\t\t\t\ttabLabel: locale[`${utilId}Label`]\n\t\t\t\t};\n\t\t\t}).filter(Boolean) || []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilsMerged*/ 65536) {\n\t\t\t// is video content\n\t\t\t$$invalidate(353, isTrimPluginLoaded = !!utilsMerged.find(util => util.id === 'trim'));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imagePreview, isTrimPluginLoaded*/ 12288 | $$self.$$.dirty[13] & /*$mediaDuration*/ 32) {\n\t\t\t$$invalidate(290, isVideoSupported = !!($mediaDuration && $imagePreview && isTrimPluginLoaded));\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*util*/ 32768 | $$self.$$.dirty[9] & /*utilsDefined*/ 4096) {\n\t\t\t$$invalidate(44, utilSelected = utilsDefined && util && typeof util === 'string' && getAvailableUtilById(util)\n\t\t\t? util\n\t\t\t: utilsDefined > 0 ? getFirstAvailableUtil() : undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilSelected*/ 8192 | $$self.$$.dirty[9] & /*isVideoSupported*/ 2048) {\n\t\t\t// pause video when util changes\n\t\t\tif (isVideoSupported && utilSelected) pause();\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*isVideoSupported*/ 2048 | $$self.$$.dirty[11] & /*$imagePreview*/ 8192) {\n\t\t\t// handle video events\n\t\t\tif (isVideoSupported) {\n\t\t\t\t$imagePreview.addEventListener('play', updatePlayState);\n\t\t\t\t$imagePreview.addEventListener('pause', updatePlayState);\n\t\t\t} else if ($imagePreview && $imagePreview.nodeName === 'video') {\n\t\t\t\t$imagePreview.removeEventListener('play', updatePlayState);\n\t\t\t\t$imagePreview.removeEventListener('pause', updatePlayState);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*isVideoSupported*/ 2048) {\n\t\t\tif (isVideoSupported) initFrameOffset();\n\t\t}\n\n\t\tif ($$self.$$.dirty[13] & /*$videoFramePeekOffset, $videoFrameOffset*/ 24) {\n\t\t\tdidUpdateFrame($videoFramePeekOffset || $videoFrameOffset);\n\t\t}\n\n\t\tif ($$self.$$.dirty[13] & /*$videoFrameOffset*/ 16) {\n\t\t\t$$invalidate(351, videoFrameOffsetFixed = $videoFrameOffset && fixPrecision($videoFrameOffset, 6));\n\t\t}\n\n\t\tif ($$self.$$.dirty[13] & /*$mediaTrim, $mediaDuration, $mediaMaxDuration*/ 97) {\n\t\t\t$$invalidate(349, videoTrim = $mediaTrim || [[0, Math.min($mediaDuration, $mediaMaxDuration) / $mediaDuration]]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*videoTrim*/ 256) {\n\t\t\tvideoTrimFirst = videoTrim[0][0];\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*videoTrim*/ 256) {\n\t\t\tvideoTrimLast = videoTrim[videoTrim.length - 1][1];\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*videoTrim*/ 256) {\n\t\t\t$$invalidate(352, videoTrimFixed = videoTrim.map(([from, to]) => [fixPrecision(from, 6), fixPrecision(to, 6)]));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*videoTrimFixed, videoFrameOffsetFixed*/ 3072) {\n\t\t\t$$invalidate(350, videoTrimCurrentIndex = videoTrimFixed.findIndex(([from, to]) => {\n\t\t\t\treturn videoFrameOffsetFixed >= from && videoFrameOffsetFixed <= to;\n\t\t\t}));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*videoTrimCurrentIndex, videoTrimFixed, videoFrameOffsetFixed*/ 3584) {\n\t\t\tvideoTrimNextIndex = videoTrimCurrentIndex === -1 && videoTrimFixed.findIndex((currentClip, index, arr) => {\n\t\t\t\tconst prevClip = arr[index - 1];\n\n\t\t\t\tif (!prevClip) {\n\t\t\t\t\treturn videoFrameOffsetFixed <= currentClip[0];\n\t\t\t\t}\n\n\t\t\t\treturn videoFrameOffsetFixed <= currentClip[0] && videoFrameOffsetFixed >= prevClip[1];\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*muteAudio*/ 4096) {\n\t\t\tisMuted.set(muteAudio);\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imagePreview*/ 8192 | $$self.$$.dirty[13] & /*$isMuted*/ 4) {\n\t\t\t$imagePreview && $isMuted ? mute() : unmute();\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imagePreview*/ 8192 | $$self.$$.dirty[13] & /*$mediaVolume*/ 2) {\n\t\t\t$imagePreview && setVolume($mediaVolume);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*elasticityMultiplier*/ 256) {\n\t\t\tset_store_value(elasticityMultiplierStore, $elasticityMultiplierStore = elasticityMultiplier, $elasticityMultiplierStore);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*layoutMode*/ 8192) {\n\t\t\t// set to new object to force redraw\n\t\t\t$$invalidate(345, isOverlayModeEnabled = layoutMode === 'overlay');\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*enableUtils*/ 1073741824 | $$self.$$.dirty[11] & /*isOverlayModeEnabled*/ 16) {\n\t\t\t$$invalidate(45, showUtils = enableUtils && !isOverlayModeEnabled);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*pluginOptions, pluginInterface*/ 134217730) {\n\t\t\t// map plugin options to plugin interface\n\t\t\tif (pluginOptions) {\n\t\t\t\t// for every plugin in plugin options\n\t\t\t\tObject.entries(pluginOptions).forEach(([name, plugin]) => {\n\t\t\t\t\t// for every prop defined for this plugin\n\t\t\t\t\tObject.entries(plugin).forEach(([prop, value]) => {\n\t\t\t\t\t\t// set value to interface if available\n\t\t\t\t\t\tif (!pluginInterface[name]) return;\n\n\t\t\t\t\t\t// set prop value\n\t\t\t\t\t\t$$invalidate(1, pluginInterface[name][prop] = value, pluginInterface);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*disabled*/ 262144) {\n\t\t\tdisabledTransition.set(disabled ? 1 : 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*previewImageDataMaxSize*/ 2097152) {\n\t\t\tmaxImageDataSize = previewImageDataMaxSize\n\t\t\t? sizeMin(previewImageDataMaxSize, maxTextureSize)\n\t\t\t: maxTextureSize;\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$images*/ 1073741824) {\n\t\t\timageProxy.update($images[0]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$shapePreprocessor*/ 536870912) {\n\t\t\tpreprocessShape = $shapePreprocessor\n\t\t\t? (shape, options) => $shapePreprocessor(shape, {\n\t\t\t\t\tflipX: undefined,\n\t\t\t\t\tflipY: undefined,\n\t\t\t\t\trotation: undefined,\n\t\t\t\t\t...options,\n\t\t\t\t\tisPreview: true\n\t\t\t\t})\n\t\t\t: passthrough;\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageSelection*/ 536870912) {\n\t\t\tArray.isArray($imageSelection) && dispatch('selectionchange', [...$imageSelection]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*enableZoomControls*/ 16384 | $$self.$$.dirty[12] & /*$allowZoomControls*/ 268435456) {\n\t\t\tenableZoomControlsProp.set($allowZoomControls && enableZoomControls);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*markupEditorInteractionMode, enablePanInput*/ 34816) {\n\t\t\tenablePanInputProp.set(markupEditorInteractionMode === 'pan'\n\t\t\t? true\n\t\t\t: enablePanInput);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$clientRect*/ 2097152) {\n\t\t\t$clientRect && rootRect.set(rectCreate($clientRect.x, $clientRect.y, $clientRect.width, $clientRect.height));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$rootRect, isOverlayModeEnabled*/ 262160 | $$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$rootRect && isOverlayModeEnabled && $imageLoadState && $imageLoadState.complete && syncRootAspectRatio();\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*utilsFiltered*/ 33554432) {\n\t\t\t$$invalidate(46, shouldRenderTabs = utilsFiltered.length > 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*shouldRenderTabs*/ 32768) {\n\t\t\tif (!shouldRenderTabs) tabRect.set(rectCreateEmpty());\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*enableToolbar*/ 1024 | $$self.$$.dirty[12] & /*$rootInsetTop*/ 134217728) {\n\t\t\tif (!enableToolbar) toolRect.set(rectCreate(0, $rootInsetTop, 0, 0));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$isInteracting, supportsAnimations*/ 524352) {\n\t\t\t$$invalidate(348, canAnimate = !$isInteracting && supportsAnimations);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$prefersReducedMotion*/ 67108864) {\n\t\t\t$$invalidate(346, acceptsAnimations = !$prefersReducedMotion);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$clientRect*/ 2097152) {\n\t\t\t$$invalidate(292, hasClientRect = $clientRect && $clientRect.width > 0 && $clientRect.height > 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[9] & /*hasClientRect, utilsDefined*/ 12288) {\n\t\t\t$$invalidate(41, canRender = hasClientRect && locale && !!utilsDefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canRender*/ 1024) {\n\t\t\tsetTimeout(() => $$invalidate(281, canRenderDelayed = canRender), 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*animations*/ 131072 | $$self.$$.dirty[9] & /*canRenderDelayed*/ 4 | $$self.$$.dirty[11] & /*canAnimate, acceptsAnimations*/ 160) {\n\t\t\t// if the dev wants to run animations\n\t\t\tset_store_value(\n\t\t\t\tshouldAnimate,\n\t\t\t\t$shouldAnimate = animations === 'always'\n\t\t\t\t? canAnimate\n\t\t\t\t: animations === 'never'\n\t\t\t\t\t? false\n\t\t\t\t\t: canAnimate && canRenderDelayed && acceptsAnimations,\n\t\t\t\t$shouldAnimate\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*animations*/ 131072 | $$self.$$.dirty[11] & /*supportsAnimations, acceptsAnimations*/ 96) {\n\t\t\t// if the browser _can_ run animations when the dev wants to run animations\n\t\t\tset_store_value(\n\t\t\t\tisAnimated,\n\t\t\t\t$isAnimated = animations === 'always'\n\t\t\t\t? supportsAnimations\n\t\t\t\t: animations === 'never'\n\t\t\t\t\t? false\n\t\t\t\t\t: supportsAnimations && acceptsAnimations,\n\t\t\t\t$isAnimated\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*previewUpscale*/ 524288 | $$self.$$.dirty[11] & /*isOverlayModeEnabled*/ 16) {\n\t\t\tpreviewShouldUpscale.set(previewUpscale || isOverlayModeEnabled);\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*previewPad*/ 1048576) {\n\t\t\tshouldPadPreview.set(previewPad);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[12] & /*$imageSelectionZoom, $stageScalar*/ 41943040) {\n\t\t\tif (root) {\n\t\t\t\troot.dispatchEvent(createPing('markupzoom', $imageSelectionZoom)); // @deprecated\n\n\t\t\t\troot.dispatchEvent(createPing('zoom', isNumber($imageSelectionZoom)\n\t\t\t\t? $imageSelectionZoom\n\t\t\t\t: $stageScalar));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[12] & /*$imageSelectionPan*/ 16777216) {\n\t\t\tif (root) {\n\t\t\t\troot.dispatchEvent(createPing('markuppan', $imageSelectionPan)); // @deprecated\n\t\t\t\troot.dispatchEvent(createPing('pan', $imageSelectionPan));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageCropRect*/ 2097152) {\n\t\t\t// reset selection stored state when crop rect is updated\n\t\t\tif ($imageCropRect) imageSelectionStoredStateReset();\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageStaticBounds*/ 4194304) {\n\t\t\t$imageStaticBounds && centerImageStaticBounds();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilSelected, $isAnimated*/ 8396800) {\n\t\t\tutilSelected && imageOutlineOpacity.set(0.075, { hard: !$isAnimated });\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*zoomMaskOpacity*/ 4194304) {\n\t\t\t$$invalidate(343, OVERLAY_OPACITY_MAX = zoomMaskOpacity);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$stagePadded, $stagePadding*/ 1572864) {\n\t\t\t$$invalidate(344, overlayMin = $stagePadded\n\t\t\t? -Math.max(...Object.values($stagePadding))\n\t\t\t: 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageSelectionRectPresentation, $stageRect, $isAnimated*/ 277872640 | $$self.$$.dirty[11] & /*overlayMin, OVERLAY_OPACITY_MAX*/ 12) {\n\t\t\tif ($imageSelectionRectPresentation) {\n\t\t\t\tlet l = $imageSelectionRectPresentation.x - $stageRect.x;\n\t\t\t\tlet r = $stageRect.x + $stageRect.width - ($imageSelectionRectPresentation.x + $imageSelectionRectPresentation.width);\n\t\t\t\tlet t = $imageSelectionRectPresentation.y - $stageRect.y;\n\t\t\t\tlet b = $stageRect.y + $stageRect.height - ($imageSelectionRectPresentation.y + $imageSelectionRectPresentation.height);\n\t\t\t\tlet d = Math.min(l, t, r, b);\n\n\t\t\t\toverlayOpacity.set(\n\t\t\t\t\td > overlayMin\n\t\t\t\t\t? 0\n\t\t\t\t\t: Math.min(OVERLAY_OPACITY_MAX, Math.abs(d / OVERLAY_OPACITY_TWEEN_DIST)),\n\t\t\t\t\t{ hard: !$isAnimated }\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$pixelRatio*/ 134217728) {\n\t\t\t// this slightly overlaps the overlay parts preventing bright background colors from shining through\n\t\t\t$$invalidate(342, overlayOverlap = 0.55 / $pixelRatio);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$stageRect, $isAnimated*/ 9437184 | $$self.$$.dirty[11] & /*overlayOverlap*/ 2) {\n\t\t\t$stageRect && overlayLeftRect.set(\n\t\t\t\t{\n\t\t\t\t\tx: 0,\n\t\t\t\t\ty: $stageRect.y,\n\t\t\t\t\twidth: $stageRect.x < OVERLAY_OPACITY_TWEEN_DIST\n\t\t\t\t\t? 0\n\t\t\t\t\t: $stageRect.x,\n\t\t\t\t\theight: $stageRect.height + overlayOverlap\n\t\t\t\t},\n\t\t\t\t{ hard: !$isAnimated }\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$stageRect, $isAnimated*/ 9437184 | $$self.$$.dirty[11] & /*$rootRect, overlayOverlap*/ 262146) {\n\t\t\t$stageRect && overlayTopRect.set(\n\t\t\t\t{\n\t\t\t\t\tx: 0,\n\t\t\t\t\ty: 0,\n\t\t\t\t\twidth: $rootRect.width,\n\t\t\t\t\theight: $stageRect.y + overlayOverlap\n\t\t\t\t},\n\t\t\t\t{ hard: !$isAnimated }\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$stageRect, $isAnimated*/ 9437184 | $$self.$$.dirty[11] & /*$rootRect, overlayOverlap*/ 262146) {\n\t\t\tif ($stageRect) {\n\t\t\t\tlet x = $stageRect.x + $stageRect.width;\n\t\t\t\tlet width = $rootRect.width - ($stageRect.x + $stageRect.width);\n\n\t\t\t\tif (width < OVERLAY_OPACITY_TWEEN_DIST) {\n\t\t\t\t\tx += width;\n\t\t\t\t\twidth = 0;\n\t\t\t\t}\n\n\t\t\t\toverlayRightRect.set(\n\t\t\t\t\t{\n\t\t\t\t\t\tx,\n\t\t\t\t\t\ty: $stageRect.y,\n\t\t\t\t\t\twidth,\n\t\t\t\t\t\theight: $stageRect.height + overlayOverlap\n\t\t\t\t\t},\n\t\t\t\t\t{ hard: !$isAnimated }\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$stageRect, $isAnimated*/ 9437184 | $$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$stageRect && overlayBottomRect.set(\n\t\t\t\t{\n\t\t\t\t\tx: 0,\n\t\t\t\t\ty: $stageRect.y + $stageRect.height,\n\t\t\t\t\twidth: $rootRect.width,\n\t\t\t\t\theight: $rootRect.height - ($stageRect.y + $stageRect.height)\n\t\t\t\t},\n\t\t\t\t{ hard: !$isAnimated }\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$rootBackgroundColor*/ 67108864 | $$self.$$.dirty[12] & /*$overlayLeftRect, $overlayOpacity*/ 294912) {\n\t\t\t$$invalidate(338, overlayLeft = $overlayLeftRect && {\n\t\t\t\tid: OVERLAY_ID,\n\t\t\t\tbackgroundColor: $rootBackgroundColor,\n\t\t\t\topacity: $overlayOpacity,\n\t\t\t\t...$overlayLeftRect\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$rootBackgroundColor*/ 67108864 | $$self.$$.dirty[12] & /*$overlayTopRect, $overlayOpacity*/ 163840) {\n\t\t\t$$invalidate(341, overlayTop = $overlayTopRect && {\n\t\t\t\tid: OVERLAY_ID,\n\t\t\t\tbackgroundColor: $rootBackgroundColor,\n\t\t\t\topacity: $overlayOpacity,\n\t\t\t\t...$overlayTopRect\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$rootBackgroundColor*/ 67108864 | $$self.$$.dirty[12] & /*$overlayRightRect, $overlayOpacity*/ 98304) {\n\t\t\t$$invalidate(340, overlayRight = $overlayRightRect && {\n\t\t\t\tid: OVERLAY_ID,\n\t\t\t\tbackgroundColor: $rootBackgroundColor,\n\t\t\t\topacity: $overlayOpacity,\n\t\t\t\t...$overlayRightRect\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$rootBackgroundColor*/ 67108864 | $$self.$$.dirty[12] & /*$overlayBottomRect, $overlayOpacity*/ 49152) {\n\t\t\t$$invalidate(339, overlayBottom = $overlayBottomRect && {\n\t\t\t\tid: OVERLAY_ID,\n\t\t\t\tbackgroundColor: $rootBackgroundColor,\n\t\t\t\topacity: $overlayOpacity,\n\t\t\t\t...$overlayBottomRect\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*overlayRight, overlayBottom, overlayLeft*/ 1879048192 | $$self.$$.dirty[11] & /*overlayTop*/ 1) {\n\t\t\t$$invalidate(337, gradientOverlays = [overlayTop, overlayRight, overlayBottom, overlayLeft].filter(Boolean));\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*gradientOverlays*/ 134217728 | $$self.$$.dirty[12] & /*$imageOverlayMarkup*/ 8192) {\n\t\t\t// if overlay top changes\n\t\t\tif (gradientOverlays && $imageOverlayMarkup) {\n\t\t\t\timageOverlayMarkup.update(shapes => {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...shapes.filter(markup => markup.id !== OVERLAY_ID),\n\t\t\t\t\t\t...gradientOverlays\n\t\t\t\t\t];\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*imagePreviewSrc*/ 262144 | $$self.$$.dirty[12] & /*$imageFile*/ 1024) {\n\t\t\timagePreviewSource.set(imagePreviewSrc\n\t\t\t? imagePreviewSrc\n\t\t\t: $imageFile || undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[7] & /*imagePreviewCurrent*/ 2048 | $$self.$$.dirty[11] & /*$imagePreview*/ 8192) {\n\t\t\t{\n\t\t\t\t$$invalidate(228, imagePreviewCurrent = $imagePreview);\n\t\t\t\tif ($imagePreview) root.dispatchEvent(createPing('loadpreview', imagePreviewCurrent));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imagePreviewSource*/ 8) {\n\t\t\tif ($imagePreviewSource) resetPreviews();\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$history*/ 4096) {\n\t\t\t$$invalidate(296, canUndo = $history.index > 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$history*/ 4096) {\n\t\t\t$$invalidate(295, canRedo = $history.index < $history.length - 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomMultiTouching*/ 8) {\n\t\t\timageSelectionMultiTouching.set(zoomMultiTouching);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$previewShouldUpscale*/ 2048) {\n\t\t\timagePreviewUpscale.set($previewShouldUpscale);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilSelected*/ 8192) {\n\t\t\tutilSelectedStore.set(utilSelected);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilsMerged, utilsVisibleFraction*/ 65664) {\n\t\t\t$$invalidate(38, utilsVisibleFraction = utilsMerged.reduce(\n\t\t\t\t(prev, curr) => {\n\t\t\t\t\tprev[curr.id] = utilsVisibleFraction && utilsVisibleFraction[curr.id] || 0;\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilSelected*/ 8192) {\n\t\t\t$$invalidate(80, tabsConfig = {\n\t\t\t\tname: utilsUniqueId,\n\t\t\t\tselected: utilSelected\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilsMerged*/ 65536) {\n\t\t\t$$invalidate(79, tabs = utilsMerged.map(util => ({\n\t\t\t\tid: util.id,\n\t\t\t\ticon: util.tabIcon,\n\t\t\t\tlabel: util.tabLabel\n\t\t\t})));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilsMerged*/ 65536) {\n\t\t\t$$invalidate(78, panels = utilsMerged.map(util => util.id));\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*klass*/ 4096) {\n\t\t\t$$invalidate(77, className = arrayJoin(['PinturaRoot', 'PinturaRootComponent', klass]));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(331, horizontalSpace = $rootRect && ($rootRect.width > 1000\n\t\t\t? 'wide'\n\t\t\t: $rootRect.width < 600 ? 'narrow' : undefined));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(318, hasLimitedSpace = $rootRect && ($rootRect.width <= 320 || $rootRect.height <= 460));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(330, verticalSpace = $rootRect && ($rootRect.height > 1000\n\t\t\t? 'tall'\n\t\t\t: $rootRect.height < 600 ? 'short' : undefined));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4) {\n\t\t\t$$invalidate(298, isModal = root && root.parentNode && root.parentNode.classList.contains('PinturaModal'));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*windowWidth*/ 1 | $$self.$$.dirty[9] & /*isModal*/ 524288 | $$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(323, isCenteredHorizontally = isModal && $rootRect && windowWidth > $rootRect.width);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*windowHeight*/ 2 | $$self.$$.dirty[9] & /*isModal*/ 524288 | $$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(322, isCenteredVertically = isModal && $rootRect && windowHeight > $rootRect.height);\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*isCenteredHorizontally, isCenteredVertically*/ 12288) {\n\t\t\t$$invalidate(324, isCentered = isCenteredHorizontally && isCenteredVertically);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*enableCanvasAlpha*/ 1048576) {\n\t\t\t$$invalidate(321, isTransparent = enableCanvasAlpha);\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*horizontalSpace*/ 2097152) {\n\t\t\t$$invalidate(293, isNarrow = horizontalSpace === 'narrow');\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutDirectionPreference*/ 16 | $$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(332, orientation = getOrientation($rootRect, layoutDirectionPreference));\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*orientation*/ 4194304) {\n\t\t\t$$invalidate(76, isLandscape = orientation === 'landscape');\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*isNarrow*/ 16384 | $$self.$$.dirty[10] & /*verticalSpace*/ 1048576) {\n\t\t\t$$invalidate(320, isCompact = isNarrow || verticalSpace === 'short');\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*windowWidth*/ 1 | $$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t$$invalidate(319, hasSwipeNavigation = iOS && $rootRect && windowWidth === $rootRect.width && !shouldPreventSwipe);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*zoomControls*/ 4 | $$self.$$.dirty[12] & /*$utilTools*/ 512) {\n\t\t\t$$invalidate(294, activeUtilTools = [...$utilTools || [], ...zoomControls].filter(Boolean));\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutHorizontalUtilsPreference*/ 32) {\n\t\t\t$$invalidate(329, navigationHorizontalPreference = `has-navigation-preference-${layoutHorizontalUtilsPreference}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutVerticalUtilsPreference*/ 64) {\n\t\t\t$$invalidate(328, navigationVerticalPreference = `has-navigation-preference-${layoutVerticalUtilsPreference}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutVerticalToolbarPreference*/ 128) {\n\t\t\t$$invalidate(325, toolbarVerticalPreference = `has-toolbar-preference-${layoutVerticalToolbarPreference}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutVerticalControlGroupsPreference*/ 256) {\n\t\t\t$$invalidate(327, controlGroupsVerticalPreference = `has-controlgroups-preference-${layoutVerticalControlGroupsPreference}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[8] & /*layoutVerticalControlTabsPreference*/ 512) {\n\t\t\t$$invalidate(326, controlTabsVerticalpreference = `has-controltabs-preference-${layoutVerticalControlTabsPreference}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$rootRect*/ 262144) {\n\t\t\t// will update when root element is available (computed style is live, so is updated when the style is updated)\n\t\t\t$$invalidate(334, rootRectDefined = $rootRect !== undefined && $rootRect.width > 0 && $rootRect.height > 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[10] & /*rootRectDefined*/ 16777216) {\n\t\t\t$$invalidate(333, rootElementComputedStyle = rootRectDefined && root && getComputedStyle(root));\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*rootElementComputedStyle*/ 8388608) {\n\t\t\t// sync for first time\n\t\t\tif (rootElementComputedStyle) syncCSSProps();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*enableToolbar*/ 1024 | $$self.$$.dirty[1] & /*$isAnimated, shouldRenderTabs, showUtils*/ 8437760 | $$self.$$.dirty[7] & /*layoutMode, disabled*/ 270336 | $$self.$$.dirty[9] & /*isModal*/ 524288 | $$self.$$.dirty[10] & /*orientation, horizontalSpace, verticalSpace, navigationHorizontalPreference, navigationVerticalPreference, controlGroupsVerticalPreference, controlTabsVerticalpreference, toolbarVerticalPreference, isCentered, isCenteredHorizontally, isCenteredVertically, isTransparent, isCompact, hasSwipeNavigation, hasLimitedSpace*/ 8388352 | $$self.$$.dirty[11] & /*$env*/ 33554432 | $$self.$$.dirty[12] & /*$pointerAccuracy, $pointerHoverable*/ 384) {\n\t\t\tenv.set({\n\t\t\t\t...$env,\n\t\t\t\tlayoutMode,\n\t\t\t\torientation,\n\t\t\t\thorizontalSpace,\n\t\t\t\tverticalSpace,\n\t\t\t\tnavigationHorizontalPreference,\n\t\t\t\tnavigationVerticalPreference,\n\t\t\t\tcontrolGroupsVerticalPreference,\n\t\t\t\tcontrolTabsVerticalpreference,\n\t\t\t\ttoolbarVerticalPreference,\n\t\t\t\tisModal,\n\t\t\t\tisDisabled: disabled,\n\t\t\t\tisCentered,\n\t\t\t\tisCenteredHorizontally,\n\t\t\t\tisCenteredVertically,\n\t\t\t\tisAnimated: $isAnimated,\n\t\t\t\tisTransparent,\n\t\t\t\tpointerAccuracy: $pointerAccuracy,\n\t\t\t\tpointerHoverable: $pointerHoverable,\n\t\t\t\tisCompact,\n\t\t\t\thasSwipeNavigation,\n\t\t\t\thasLimitedSpace,\n\t\t\t\thasToolbar: enableToolbar,\n\t\t\t\thasNavigation: shouldRenderTabs && showUtils,\n\t\t\t\tisIOS: iOS,\n\t\t\t\tbrowserVersion: isChrome()\n\t\t\t\t? `chrome-${(navigator.userAgent.match(/Chrome\\/([0-9]+)/) || [])[1]}`\n\t\t\t\t: undefined\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$env*/ 33554432) {\n\t\t\t$$invalidate(75, envStr = Object.entries($env).map(([key, value]) => {\n\t\t\t\t// is true boolean prop, use key\n\t\t\t\tif ((/^is|has/).test(key)) {\n\t\t\t\t\treturn value ? toKebabCase(key) : undefined;\n\t\t\t\t}\n\n\t\t\t\t// use value\n\t\t\t\treturn value;\n\t\t\t}).filter(Boolean).join(' '));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*utilSelected*/ 8192) {\n\t\t\t// clear util tools when selected tool changes, when tool becomes active it will update the tools (if needed)\n\t\t\tutilSelected && utilTools.set([]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageTransforms, $imagePreviewModifiers*/ 96) {\n\t\t\t$$invalidate(74, imageCanvasState = $imageTransforms && Object.entries($imagePreviewModifiers).filter(([,value]) => value != null).reduce(\n\t\t\t\t(prev, [,value]) => {\n\t\t\t\t\tprev = { ...prev, ...value };\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t//\n\t\t\t// loading status\n\t\t\t//\n\t\t\t$$invalidate(315, isStartLoadingImageSource = $imageLoadState && $imageLoadState.task === 'any-to-file');\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*isStartLoadingImageSource*/ 32) {\n\t\t\t// reset active images when loading a new image source\n\t\t\tif (isStartLoadingImageSource && activeImages) {\n\t\t\t\tactiveImages.clear();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageProps*/ 16) {\n\t\t\t// if image props are ready\n\t\t\t$$invalidate(317, hasProps = !!$imageProps && !!$imageProps.translation);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*lastImagePreview*/ 16 | $$self.$$.dirty[10] & /*hasProps*/ 128 | $$self.$$.dirty[11] & /*$imagePreview*/ 8192) {\n\t\t\tif (hasProps && $imagePreview && $imagePreview !== lastImagePreview) {\n\t\t\t\t$$invalidate(283, lastImagePreview = $imagePreview);\n\t\t\t\taddImagePreview();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*hasProps*/ 128 | $$self.$$.dirty[12] & /*$imageProps*/ 16) {\n\t\t\t// update images when image props change\n\t\t\thasProps && updateImagePreviews($imageProps);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$activeImages*/ 33554432) {\n\t\t\t// clean active images array, removes 'inactive' images when their opacity is 0\n\t\t\tif ($activeImages && $activeImages.length > 1) {\n\t\t\t\tlet imagesToRemove = [];\n\n\t\t\t\tactiveImages.forEach((image, index) => {\n\t\t\t\t\tif (index === 0) return;\n\t\t\t\t\tif (image.get().opacity <= 0) imagesToRemove.push(image);\n\t\t\t\t});\n\n\t\t\t\timagesToRemove.forEach(image => activeImages.remove(image));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[10] & /*missingFeatures*/ 64) {\n\t\t\t$$invalidate(40, isSupportsError = locale && missingFeatures.length && locale.labelSupportError(missingFeatures));\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$$invalidate(307, isImageLoadError = $imageLoadState && !!$imageLoadState.error);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$$invalidate(43, isWaitingForImage = !$imageLoadState || !$imageLoadState.complete && $imageLoadState.task === undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$$invalidate(308, imageLoadProgress = $imageLoadState && ($imageLoadState.taskLengthComputable\n\t\t\t? $imageLoadState.taskProgress\n\t\t\t: Infinity));\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*isStartLoadingImageSource*/ 32) {\n\t\t\tif (isStartLoadingImageSource) set_store_value(imageVisualLoadComplete, $imageVisualLoadComplete = false, $imageVisualLoadComplete);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isAnimated*/ 8388608 | $$self.$$.dirty[9] & /*loadTimer*/ 32 | $$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\tif ($imageLoadState && $imageLoadState.complete) {\n\t\t\t\tconst minLoaderDuration = $isAnimated ? 250 : 0;\n\n\t\t\t\t// TODO: derive visual load complete from interface rest state instead of arbitrary timer\n\t\t\t\tclearTimeout(loadTimer);\n\n\t\t\t\t$$invalidate(284, loadTimer = setTimeout(\n\t\t\t\t\t() => {\n\t\t\t\t\t\tset_store_value(imageVisualLoadComplete, $imageVisualLoadComplete = true, $imageVisualLoadComplete);\n\t\t\t\t\t},\n\t\t\t\t\tminLoaderDuration\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isWaitingForImage*/ 4096 | $$self.$$.dirty[9] & /*isImageLoadError*/ 268435456 | $$self.$$.dirty[12] & /*$imageLoadState, $imageVisualLoadComplete*/ 5) {\n\t\t\t$$invalidate(312, isLoadingImageData = $imageLoadState && !isImageLoadError && !isWaitingForImage && !$imageVisualLoadComplete);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*imagePreviewLoaderCancelToken*/ 8 | $$self.$$.dirty[11] & /*$imagePreview*/ 8192 | $$self.$$.dirty[12] & /*$imagePreviewSource*/ 8) {\n\t\t\t// is creating a preview while an image source is set and the preview isn't ready or when a cancel token is found\n\t\t\t$$invalidate(311, isCreatingImagePreview = !!$imagePreviewSource && (!$imagePreview || !!imagePreviewLoaderCancelToken));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isAnimated*/ 8388608 | $$self.$$.dirty[12] & /*$imageVisualLoadComplete*/ 1) {\n\t\t\tif ($imageVisualLoadComplete) {\n\t\t\t\tconst gridOpacityFadeDuration = $isAnimated ? 500 : 0;\n\t\t\t\tsetTimeout(() => gridOpacity.set(1), gridOpacityFadeDuration);\n\t\t\t} else {\n\t\t\t\tgridOpacity.set(0);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imageProcessingPreparing*/ 67108864 | $$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\t//\n\t\t\t// processing status\n\t\t\t//\n\t\t\t$$invalidate(306, isProcessingImage = !!($imageProcessingPreparing || $imageProcessState && $imageProcessState.progress !== undefined && !$imageProcessState.complete));\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*isProcessingImage*/ 134217728) {\n\t\t\tif (isProcessingImage) pause();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isWaitingForImage*/ 4096 | $$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$$invalidate(309, imageLoadShowProgressIndicator = $imageLoadState && !($imageLoadState.error || isWaitingForImage));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[12] & /*$imageLoadState*/ 4) {\n\t\t\t$$invalidate(310, imageLoadStatusLabel = locale && (!$imageLoadState\n\t\t\t? locale.statusLabelLoadImage($imageLoadState)\n\t\t\t: !$imageLoadState.complete || $imageLoadState.error\n\t\t\t\t? stringReplace(locale.statusLabelLoadImage($imageLoadState), $imageLoadState.error && $imageLoadState.error.metadata, '{', '}')\n\t\t\t\t: locale.statusLabelLoadImage({\n\t\t\t\t\t\tprogress: Infinity,\n\t\t\t\t\t\ttask: 'blob-to-bitmap'\n\t\t\t\t\t})));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\t$$invalidate(305, imageProcessStatusLabel = $imageProcessState && locale && locale.statusLabelProcessImage($imageProcessState));\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\t$$invalidate(303, imageProcessProgress = $imageProcessState && ($imageProcessState.taskLengthComputable\n\t\t\t? $imageProcessState.taskProgress\n\t\t\t: Infinity));\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\t$$invalidate(304, imageProcessShowProgressIndicator = $imageProcessState && !$imageProcessState.error);\n\t\t}\n\n\t\tif ($$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\t$$invalidate(302, isImageProcessingError = !!($imageProcessState && $imageProcessState.error));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[1] & /*isWaitingForImage*/ 4096 | $$self.$$.dirty[7] & /*status*/ 1024 | $$self.$$.dirty[9] & /*isImageLoadError, imageLoadShowProgressIndicator, imageLoadProgress, isProcessingImage, imageProcessStatusLabel, isImageProcessingError, imageProcessShowProgressIndicator, imageProcessProgress*/ 2139095040 | $$self.$$.dirty[10] & /*isLoadingImageData, isCreatingImagePreview, imageLoadStatusLabel*/ 7) {\n\t\t\tif (status) {\n\t\t\t\tlet label;\n\t\t\t\tlet progress;\n\t\t\t\tlet showProgress;\n\t\t\t\tlet isError;\n\t\t\t\tlet errorCallback;\n\t\t\t\tif (isString(status)) label = status;\n\n\t\t\t\tif (isNumber(status)) progress = status; else if (Array.isArray(status)) {\n\t\t\t\t\t[label, progress, errorCallback] = status;\n\t\t\t\t\tif (progress === false) isError = true;\n\t\t\t\t\tif (isNumber(progress)) showProgress = true;\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(35, statusState = (label || progress) && {\n\t\t\t\t\ttext: label,\n\t\t\t\t\taside: isError || showProgress,\n\t\t\t\t\tprogressIndicator: { visible: showProgress, progress },\n\t\t\t\t\tcloseButton: isError && {\n\t\t\t\t\t\tlabel: locale.statusLabelButtonClose,\n\t\t\t\t\t\ticon: locale.statusIconButtonClose,\n\t\t\t\t\t\tonclick: errorCallback || (() => $$invalidate(227, status = undefined))\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (locale && isWaitingForImage || isImageLoadError || isLoadingImageData || isCreatingImagePreview) {\n\t\t\t\t$$invalidate(35, statusState = {\n\t\t\t\t\ttext: imageLoadStatusLabel,\n\t\t\t\t\taside: isImageLoadError || imageLoadShowProgressIndicator,\n\t\t\t\t\tprogressIndicator: {\n\t\t\t\t\t\tvisible: imageLoadShowProgressIndicator,\n\t\t\t\t\t\tprogress: imageLoadProgress\n\t\t\t\t\t},\n\t\t\t\t\tcloseButton: isImageLoadError && {\n\t\t\t\t\t\tlabel: locale.statusLabelButtonClose,\n\t\t\t\t\t\ticon: locale.statusIconButtonClose,\n\t\t\t\t\t\tonclick: handleCloseImageLoadError\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else if (locale && isProcessingImage && imageProcessStatusLabel) {\n\t\t\t\t$$invalidate(35, statusState = {\n\t\t\t\t\ttext: imageProcessStatusLabel,\n\t\t\t\t\taside: isImageProcessingError || imageProcessShowProgressIndicator,\n\t\t\t\t\tprogressIndicator: {\n\t\t\t\t\t\tvisible: imageProcessShowProgressIndicator,\n\t\t\t\t\t\tprogress: imageProcessProgress\n\t\t\t\t\t},\n\t\t\t\t\tcloseButton: isImageProcessingError && {\n\t\t\t\t\t\tlabel: locale.statusLabelButtonClose,\n\t\t\t\t\t\ticon: locale.statusIconButtonClose,\n\t\t\t\t\t\tonclick: handleCloseImageProcessError\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t$$invalidate(35, statusState = undefined);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[7] & /*status*/ 1024) {\n\t\t\t$$invalidate(314, isCustomStatus = status !== undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isAnimated*/ 8388608 | $$self.$$.dirty[9] & /*isModal*/ 524288 | $$self.$$.dirty[12] & /*$imageProcessState*/ 2) {\n\t\t\tif (isModal && $imageProcessState && $imageProcessState.complete) {\n\t\t\t\twasProcessingImage.set(true);\n\t\t\t\tsetTimeout(() => wasProcessingImage.set(false), $isAnimated ? 100 : 0);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[1] & /*utilSelected*/ 8192 | $$self.$$.dirty[12] & /*$imageVisualLoadComplete*/ 1) {\n\t\t\t$imageVisualLoadComplete && root && root.dispatchEvent(createPing('selectutil', utilSelected));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isSupportsError, isWaitingForImage*/ 4608 | $$self.$$.dirty[9] & /*isImageLoadError, isProcessingImage*/ 402653184 | $$self.$$.dirty[10] & /*isLoadingImageData, isCreatingImagePreview, isCustomStatus*/ 22 | $$self.$$.dirty[11] & /*$wasProcessingImage*/ 1073741824) {\n\t\t\t$$invalidate(313, isStatusActive = $wasProcessingImage || isSupportsError || isWaitingForImage || isImageLoadError || isLoadingImageData || isCreatingImagePreview || isProcessingImage || isCustomStatus);\n\t\t}\n\n\t\tif ($$self.$$.dirty[10] & /*isStatusActive*/ 8) {\n\t\t\tset_store_value(statusOpacity, $statusOpacity = isStatusActive ? 1 : 0, $statusOpacity);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isAnimated*/ 8388608 | $$self.$$.dirty[10] & /*isStatusActive*/ 8) {\n\t\t\tstatusOpacity.set(isStatusActive ? 1 : 0, { duration: $isAnimated ? 500 : 1 });\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$statusOpacity*/ 16777216) {\n\t\t\t$$invalidate(42, isStatusVisible = $statusOpacity > 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*statusState*/ 16) {\n\t\t\t$$invalidate(301, hasAside = !!(statusState && statusState.aside));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isStatusVisible, statusState, $isAnimated*/ 8390672 | $$self.$$.dirty[9] & /*asideWidthUpdateTimer, hasAside*/ 4194368 | $$self.$$.dirty[11] & /*$statusWidth*/ 536870912) {\n\t\t\tif (isStatusVisible && statusState) {\n\t\t\t\tclearTimeout(asideWidthUpdateTimer);\n\t\t\t\tconst springProps = { hard: $isAnimated === false };\n\n\t\t\t\t// has aside\n\t\t\t\tif (hasAside) {\n\t\t\t\t\t// if error occured, or not animating, snap in possition\n\t\t\t\t\tconst hard = !!statusState.error || !$isAnimated;\n\n\t\t\t\t\tasideOpacity.set(1, springProps);\n\n\t\t\t\t\t// update offset of aside\n\t\t\t\t\tasideOffset.set($statusWidth, { hard });\n\n\t\t\t\t\t// update width of aside, this pushes message to left so it stays centered\n\t\t\t\t\t$$invalidate(285, asideWidthUpdateTimer = setTimeout(\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tasideWidth.set(16, springProps);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1\n\t\t\t\t\t));\n\t\t\t\t} else {\n\t\t\t\t\tasideOpacity.set(0, springProps);\n\n\t\t\t\t\t$$invalidate(285, asideWidthUpdateTimer = setTimeout(\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tasideWidth.set(0, springProps);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isStatusVisible*/ 2048) {\n\t\t\tif (!isStatusVisible) {\n\t\t\t\tstatusOffset.set(undefined, { hard: true });\n\t\t\t\tasideOffset.set(undefined, { hard: true });\n\t\t\t\tasideWidth.set(0, { hard: true });\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$asideWidth*/ 268435456) {\n\t\t\t$$invalidate(300, statusIndent = $asideWidth * 0.5);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*statusIndent*/ 2097152 | $$self.$$.dirty[11] & /*$statusOffset*/ 134217728) {\n\t\t\t$$invalidate(73, statusTransform = `transform: translateX(${$statusOffset - statusIndent}px)`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isSupportsError*/ 512 | $$self.$$.dirty[11] & /*$imagePreview*/ 8192) {\n\t\t\t// ready bool\n\t\t\t$$invalidate(39, isReady = $imagePreview && !isSupportsError);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*isReady*/ 256 | $$self.$$.dirty[9] & /*needsInteractionLock, isModal*/ 1572864) {\n\t\t\t$$invalidate(297, preventTouchHandler = needsInteractionLock && (isReady || isModal)\n\t\t\t? preventDefault\n\t\t\t: noop$1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*preventTouchHandler*/ 262144) {\n\t\t\t$$invalidate(72, handleTouchMove = preventTouchHandler);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*preventTouchHandler*/ 262144) {\n\t\t\t$$invalidate(71, handlePointerMove = preventTouchHandler);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 8 | $$self.$$.dirty[1] & /*$redrawTrigger*/ 4194304 | $$self.$$.dirty[7] & /*willRenderToolbar, enableButtonRevert, enableNavigateHistory, enableButtonExport*/ 973078528 | $$self.$$.dirty[8] & /*enableButtonClose*/ 1 | $$self.$$.dirty[9] & /*canUndo, canRedo, activeUtilTools, isNarrow*/ 245760 | $$self.$$.dirty[11] & /*$env*/ 33554432) {\n\t\t\t// dynamic IO menu\n\t\t\t$$invalidate(70, toolbarItems = locale && $redrawTrigger && runSafe(() => willRenderToolbar(\n\t\t\t\t[\n\t\t\t\t\t[\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t'alpha',\n\t\t\t\t\t\t{ class: 'PinturaNavGroup' },\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'alpha-set',\n\t\t\t\t\t\t\t\t{ class: 'PinturaNavSet' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t// button close\n\t\t\t\t\t\t\t\t\tenableButtonClose && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'close',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.labelClose,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.iconButtonClose,\n\t\t\t\t\t\t\t\t\t\t\tonclick: () => dispatch('close'),\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t// button revert\n\t\t\t\t\t\t\t\t\tenableButtonRevert && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'revert',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.labelButtonRevert,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.iconButtonRevert,\n\t\t\t\t\t\t\t\t\t\t\tdisabled: !canUndo,\n\t\t\t\t\t\t\t\t\t\t\tonclick: revert,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t'beta',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclass: 'PinturaNavGroup PinturaNavGroupFloat'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\tenableNavigateHistory && [\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'history',\n\t\t\t\t\t\t\t\t{ class: 'PinturaNavSet' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'undo',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.labelButtonUndo,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.iconButtonUndo,\n\t\t\t\t\t\t\t\t\t\t\tdisabled: !canUndo,\n\t\t\t\t\t\t\t\t\t\t\tonclick: history.undo,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'redo',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.labelButtonRedo,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.iconButtonRedo,\n\t\t\t\t\t\t\t\t\t\t\tdisabled: !canRedo,\n\t\t\t\t\t\t\t\t\t\t\tonclick: history.redo,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tactiveUtilTools.length && [\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'plugin-tools',\n\t\t\t\t\t\t\t\t{ class: 'PinturaNavSet' },\n\t\t\t\t\t\t\t\tactiveUtilTools.filter(Boolean).map(// in\n\t\t\t\t\t\t\t\t([component, key, props]) => // out\n\t\t\t\t\t\t\t\t[component, key, { ...props }])\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t'gamma',\n\t\t\t\t\t\t{ class: 'PinturaNavGroup' },\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\tenableButtonExport && [\n\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t'export',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlabel: locale.labelButtonExport,\n\t\t\t\t\t\t\t\t\ticon: isNarrow && locale.iconButtonExport,\n\t\t\t\t\t\t\t\t\tclass: 'PinturaButtonExport',\n\t\t\t\t\t\t\t\t\tonclick: handleExport,\n\t\t\t\t\t\t\t\t\thideLabel: isNarrow\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t]\n\t\t\t\t],\n\t\t\t\t{ ...$env },\n\t\t\t\t() => redrawTrigger.set({})\n\t\t\t)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imageRedaction*/ 2097152) {\n\t\t\t// toggles on/off depending on active redaction shapes\n\t\t\t$$invalidate(289, hasImageRedaction = $imageRedaction && !!$imageRedaction.length);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*hasImageRedaction*/ 1024 | $$self.$$.dirty[11] & /*$imageSize, $imageRedaction*/ 2113536) {\n\t\t\t// scales down resolution of scrambled image if redaction takes up more than half of view\n\t\t\t$$invalidate(288, imageRedactionScalar = hasImageRedaction && getImageRedactionScaleFactor($imageSize, $imageRedaction));\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*hasImageRedaction, imageRedactionScalar*/ 1536 | $$self.$$.dirty[11] & /*$imagePreview, $imageScrambler, $imageBackgroundColor*/ 25174016) {\n\t\t\t// only update/render preview if image redaction shapes are found\n\t\t\thasImageRedaction && updateScrambledPreview($imagePreview, $imageScrambler, imageRedactionScalar, $imageBackgroundColor);\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*scrambledPreviewImage*/ 128 | $$self.$$.dirty[11] & /*$imageRedaction, $imageSize, $imageRedactionRendering*/ 6307840) {\n\t\t\tif ($imageRedaction && scrambledPreviewImage && $imageSize) {\n\t\t\t\t// used to calculate fraction x y coordinates of shape corners\n\t\t\t\tconst { width, height } = $imageSize;\n\n\t\t\t\t// set rendering for redactions\n\t\t\t\tconst backgroundImageRendering = isSafari()\n\t\t\t\t? 'pixelated'\n\t\t\t\t: $imageRedactionRendering === 'auto'\n\t\t\t\t\t? 'auto'\n\t\t\t\t\t: 'pixelated';\n\n\t\t\t\t// to blended shapes\n\t\t\t\t$$invalidate(287, computedRedactionShapes = $imageRedaction.map(shape => {\n\t\t\t\t\t// calculate shapes\n\t\t\t\t\tconst rect = rectCreate(shape.x, shape.y, shape.width, shape.height);\n\n\t\t\t\t\tconst corners = rectRotate(rectClone$1(rect), shape.rotation);\n\t\t\t\t\tconst backgroundCorners = corners.map(corner => vectorCreate(corner.x / width, corner.y / height));\n\n\t\t\t\t\t// new shape\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...shape,\n\t\t\t\t\t\tid: 'redaction',\n\t\t\t\t\t\tflipX: false,\n\t\t\t\t\t\tflipY: false,\n\t\t\t\t\t\tcornerRadius: 0,\n\t\t\t\t\t\tstrokeWidth: 0,\n\t\t\t\t\t\tstrokeColor: undefined,\n\t\t\t\t\t\tbackgroundColor: [0, 0, 0, 0],\n\t\t\t\t\t\tbackgroundImage: scrambledPreviewImage,\n\t\t\t\t\t\tbackgroundImageRendering,\n\t\t\t\t\t\tbackgroundCorners\n\t\t\t\t\t};\n\t\t\t\t}));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[9] & /*computedRedactionShapes*/ 256 | $$self.$$.dirty[11] & /*$imageManipulation*/ 1048576) {\n\t\t\t// merge redaction and manipulation\n\t\t\t$$invalidate(37, manipulationShapes = [...computedRedactionShapes, ...$imageManipulation || []]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*rootPortal*/ 32) {\n\t\t\trootPortal && rootPortalStore.set(rootPortal);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*root*/ 4 | $$self.$$.dirty[1] & /*isReady*/ 256) {\n\t\t\t// now ready for interaction\n\t\t\tisReady && root.dispatchEvent(createPing('ready'));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageAnnotation*/ 524288) {\n\t\t\tmarkAnnotationShapesAsDirty();\n\t\t}\n\n\t\tif ($$self.$$.dirty[11] & /*$imageRotation, $imageFlipX, $imageFlipY, $imageSize*/ 245760) {\n\t\t\tmarkAnnotationRequiresPreprocessing();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageDecoration*/ 262144) {\n\t\t\tmarkDecorationShapesAsDirty();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageFrame*/ 131072) {\n\t\t\tmarkFrameShapesAsDirty();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*manipulationShapes*/ 64) {\n\t\t\tmarkManipulationShapesAsDirty();\n\t\t}\n\t};\n\n\t$$invalidate(347, supportsAnimations = !isSoftwareRendering());\n\n\timageTransformsSnapPixels = getDevicePixelRatio() === 1\n\t? transforms => {\n\t\t\tif (!transforms) return;\n\t\t\tvectorApply(transforms.origin, Math.round);\n\t\t\tvectorApply(transforms.translation, Math.round);\n\t\t}\n\t: passthrough;\n\n\t//\n\t// support test status\n\t//\n\t$$invalidate(316, missingFeatures = [!supportsWebGL() && 'WebGL'].filter(Boolean));\n\n\t// These are again needed since iOS 15 (was needed for 12 and lower, but wasn't needed for 13, 14)\n\t// Now also needed for Firefox on Android\n\t$$invalidate(299, needsInteractionLock = isIOS() || isAndroid() && isFirefox());\n\n\t// used to route ping events\n\t$$invalidate(69, routePing = createPingRouter(eventProxy.pub));\n\n\treturn [\n\t\tzoomLevel,\n\t\tpluginInterface,\n\t\troot,\n\t\tlocale,\n\t\tid,\n\t\tpreviewMaskOpacity,\n\t\tpreviewImageTextPixelRatio,\n\t\tmarkupMaskOpacity,\n\t\telasticityMultiplier,\n\t\twillRenderCanvas,\n\t\tenableToolbar,\n\t\tenableTransparencyGrid,\n\t\ttextDirection,\n\t\tmarkupEditorZoomLevels,\n\t\tmarkupEditorZoomAdjustStep,\n\t\tmarkupEditorZoomAdjustFactor,\n\t\tmarkupEditorZoomAdjustWheelFactor,\n\t\tenablePan,\n\t\tenableZoom,\n\t\tenableZoomInput,\n\t\tenableCanvasAlpha,\n\t\tenablePanLimit,\n\t\tpanLimitGutterScalar,\n\t\tzoomPresetOptions,\n\t\tzoomAdjustStep,\n\t\tzoomAdjustFactor,\n\t\tzoomAdjustWheelFactor,\n\t\tpluginOptions,\n\t\timageSourceToImageData,\n\t\timagePreview,\n\t\thistory,\n\t\twindowWidth,\n\t\twindowHeight,\n\t\tzoomControls,\n\t\tzoomMultiTouching,\n\t\tstatusState,\n\t\trootPortal,\n\t\tmanipulationShapes,\n\t\tutilsVisibleFraction,\n\t\tisReady,\n\t\tisSupportsError,\n\t\tcanRender,\n\t\tisStatusVisible,\n\t\tisWaitingForImage,\n\t\tutilSelected,\n\t\tshowUtils,\n\t\tshouldRenderTabs,\n\t\tutilsMerged,\n\t\t$imageFrame,\n\t\t$imageDecoration,\n\t\t$imageAnnotation,\n\t\t$stageRect,\n\t\t$clientRect,\n\t\t$redrawTrigger,\n\t\t$isAnimated,\n\t\t$statusOpacity,\n\t\t$activeImages,\n\t\t$rootBackgroundColor,\n\t\t$pixelRatio,\n\t\t$imageSelectionRectPresentation,\n\t\t$imageSelection,\n\t\tuserTextInput,\n\t\tuserTextInputField,\n\t\tutilsVisible,\n\t\timageAnnotationShapesDirty,\n\t\timageAnnotationRequiresPreprocessing,\n\t\timageDecorationShapesDirty,\n\t\timageFrameShapesDirty,\n\t\timageManipulationShapesDirty,\n\t\troutePing,\n\t\ttoolbarItems,\n\t\thandlePointerMove,\n\t\thandleTouchMove,\n\t\tstatusTransform,\n\t\timageCanvasState,\n\t\tenvStr,\n\t\tisLandscape,\n\t\tclassName,\n\t\tpanels,\n\t\ttabs,\n\t\ttabsConfig,\n\t\t$tabRect,\n\t\t$willRequest,\n\t\t$asideOffset,\n\t\t$asideOpacity,\n\t\t$toolRect,\n\t\t$imageCropLimitToImage,\n\t\t$interfaceImages,\n\t\t$gridSize,\n\t\t$gridColorEven,\n\t\t$gridColorOdd,\n\t\t$gridOpacity,\n\t\t$rootColorPrimary,\n\t\t$willRequestResource,\n\t\t$imageOverlay,\n\t\t$allowPan,\n\t\t$enablePanInputStatus,\n\t\t$allowZoom,\n\t\t$enableZoomInputStore,\n\t\t$enableZoomControlsProp,\n\t\t$imageSelectionRectCentered,\n\t\t$imageSelectionRectScalar,\n\t\t$disabledTransition,\n\t\tallowPlayPause,\n\t\tvideoFramePeekOffset,\n\t\tvideoFrameOffset,\n\t\tisMuted,\n\t\tredrawTrigger,\n\t\telasticityMultiplierStore,\n\t\tdisabledTransition,\n\t\timageFile,\n\t\timageSize,\n\t\tmediaDuration,\n\t\tmediaTrim,\n\t\tmediaVolume,\n\t\tmediaMaxDuration,\n\t\timageLoadState,\n\t\timageProcessState,\n\t\timageCropAspectRatio,\n\t\timageCropLimitToImage,\n\t\timageCropRect,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageBackgroundColor,\n\t\timageDecoration,\n\t\timageAnnotation,\n\t\timageManipulation,\n\t\timageRedaction,\n\t\timageFrame,\n\t\timageSelection,\n\t\timageState,\n\t\timages,\n\t\tshapePreprocessor,\n\t\timageScrambler,\n\t\timageRedactionRendering,\n\t\twillRequest,\n\t\twillRequestResource,\n\t\tallowPan,\n\t\tallowZoom,\n\t\tallowZoomControls,\n\t\tenablePanInputStore,\n\t\tenableZoomInputStore,\n\t\tenableZoomControlsProp,\n\t\tenablePanInputProp,\n\t\tenablePanInputStatus,\n\t\trootBackgroundColor,\n\t\trootForegroundColor,\n\t\trootLineColor,\n\t\trootColorPrimary,\n\t\tclientRect,\n\t\trootRect,\n\t\ttabRect,\n\t\trootInsetTop,\n\t\ttoolRect,\n\t\tutilRect,\n\t\tpointerAccuracy,\n\t\tpointerHoverable,\n\t\tisInteracting,\n\t\tisInteractingFraction,\n\t\tshouldAnimate,\n\t\tisAnimated,\n\t\tpreviewShouldUpscale,\n\t\timageIsStatic,\n\t\timageCropRectSnapshot,\n\t\timageCropRectIntent,\n\t\timageSelectionRect,\n\t\timageSelectionRectSnapshot,\n\t\timageSelectionRectIntent,\n\t\timageSelectionRectOffset,\n\t\tstagePadding,\n\t\tstagePadded,\n\t\tstageRect,\n\t\timageStaticBounds,\n\t\tstageScalar,\n\t\timageSelectionZoom,\n\t\timageSelectionRectScalar,\n\t\timageSelectionScalar,\n\t\timageSelectionPan,\n\t\timageSelectionRectPresentation,\n\t\timageSelectionRectStaticScalar,\n\t\timageSelectionRectCentered,\n\t\tpresentationScalar,\n\t\timageOverlayMarkup,\n\t\timageOverlay,\n\t\toverlayOpacity,\n\t\toverlayLeftRect,\n\t\toverlayTopRect,\n\t\toverlayRightRect,\n\t\toverlayBottomRect,\n\t\timageVisualLoadComplete,\n\t\timagePreviewSource,\n\t\timagePreviewModifiers,\n\t\tinterfaceImages,\n\t\timageTransforms,\n\t\tenv,\n\t\tpixelRatio,\n\t\timageProcessingPreparing,\n\t\tactiveImages,\n\t\tutilTools,\n\t\tutilStores,\n\t\tgridSize,\n\t\tgridColorEven,\n\t\tgridColorOdd,\n\t\tgridOpacity,\n\t\thandleTransitionEnd,\n\t\timageProps,\n\t\tstatusOpacity,\n\t\twasProcessingImage,\n\t\tasideOffset,\n\t\tasideOpacity,\n\t\tasideWidth,\n\t\tstatusWidth,\n\t\tstatusOffset,\n\t\toffsetAside,\n\t\thandleTouchStart,\n\t\tpressedKeysStore,\n\t\thandleKeydown,\n\t\thandleKeyup,\n\t\thandleWindowBlur,\n\t\thandleContextMenu,\n\t\thandleDropFiles,\n\t\tbrowseFileSystem,\n\t\thandlePaste,\n\t\tgetStageState,\n\t\tcreateCanvasState,\n\t\thandleMeasureUtil,\n\t\tstatus,\n\t\timagePreviewCurrent,\n\t\tklass,\n\t\tlayoutMode,\n\t\tstores,\n\t\tutil,\n\t\tutils,\n\t\tanimations,\n\t\tdisabled,\n\t\tpreviewUpscale,\n\t\tpreviewPad,\n\t\tpreviewImageDataMaxSize,\n\t\tzoomMaskOpacity,\n\t\twillRevert,\n\t\twillProcessImage,\n\t\twillRenderToolbar,\n\t\twillSetHistoryInitialState,\n\t\tenableButtonExport,\n\t\tenableButtonRevert,\n\t\tenableNavigateHistory,\n\t\tenableUtils,\n\t\tenableButtonClose,\n\t\tenableDropImage,\n\t\tenablePasteImage,\n\t\tenableBrowseImage,\n\t\tlayoutDirectionPreference,\n\t\tlayoutHorizontalUtilsPreference,\n\t\tlayoutVerticalUtilsPreference,\n\t\tlayoutVerticalToolbarPreference,\n\t\tlayoutVerticalControlGroupsPreference,\n\t\tlayoutVerticalControlTabsPreference,\n\t\tmarkupEditorZoomLevel,\n\t\tmarkupEditorInteractionMode,\n\t\tmuteAudio,\n\t\twillSetMediaInitialTimeOffset,\n\t\tenableZoomControls,\n\t\tenablePanInput,\n\t\thideTextInput,\n\t\tshowTextInput,\n\t\timagePreviewSrc,\n\t\timageOrienter,\n\t\tpluginComponents,\n\t\tsub,\n\t\tplay,\n\t\tpause,\n\t\tisPaused,\n\t\ttogglePlayPause,\n\t\tmute,\n\t\tunmute,\n\t\ttoggleMute,\n\t\tgetDuration,\n\t\tgetCurrentTime,\n\t\tsetCurrentTime,\n\t\tregisteredPluginsComponents,\n\t\tcanRenderDelayed,\n\t\timagePreviewLoaderCancelToken,\n\t\tlastImagePreview,\n\t\tloadTimer,\n\t\tasideWidthUpdateTimer,\n\t\tscrambledPreviewImage,\n\t\tcomputedRedactionShapes,\n\t\timageRedactionScalar,\n\t\thasImageRedaction,\n\t\tisVideoSupported,\n\t\tutilsDefined,\n\t\thasClientRect,\n\t\tisNarrow,\n\t\tactiveUtilTools,\n\t\tcanRedo,\n\t\tcanUndo,\n\t\tpreventTouchHandler,\n\t\tisModal,\n\t\tneedsInteractionLock,\n\t\tstatusIndent,\n\t\thasAside,\n\t\tisImageProcessingError,\n\t\timageProcessProgress,\n\t\timageProcessShowProgressIndicator,\n\t\timageProcessStatusLabel,\n\t\tisProcessingImage,\n\t\tisImageLoadError,\n\t\timageLoadProgress,\n\t\timageLoadShowProgressIndicator,\n\t\timageLoadStatusLabel,\n\t\tisCreatingImagePreview,\n\t\tisLoadingImageData,\n\t\tisStatusActive,\n\t\tisCustomStatus,\n\t\tisStartLoadingImageSource,\n\t\tmissingFeatures,\n\t\thasProps,\n\t\thasLimitedSpace,\n\t\thasSwipeNavigation,\n\t\tisCompact,\n\t\tisTransparent,\n\t\tisCenteredVertically,\n\t\tisCenteredHorizontally,\n\t\tisCentered,\n\t\ttoolbarVerticalPreference,\n\t\tcontrolTabsVerticalpreference,\n\t\tcontrolGroupsVerticalPreference,\n\t\tnavigationVerticalPreference,\n\t\tnavigationHorizontalPreference,\n\t\tverticalSpace,\n\t\thorizontalSpace,\n\t\torientation,\n\t\trootElementComputedStyle,\n\t\trootRectDefined,\n\t\tutilsFiltered,\n\t\tutilsAvailable,\n\t\tgradientOverlays,\n\t\toverlayLeft,\n\t\toverlayBottom,\n\t\toverlayRight,\n\t\toverlayTop,\n\t\toverlayOverlap,\n\t\tOVERLAY_OPACITY_MAX,\n\t\toverlayMin,\n\t\tisOverlayModeEnabled,\n\t\tacceptsAnimations,\n\t\tsupportsAnimations,\n\t\tcanAnimate,\n\t\tvideoTrim,\n\t\tvideoTrimCurrentIndex,\n\t\tvideoFrameOffsetFixed,\n\t\tvideoTrimFixed,\n\t\tisTrimPluginLoaded,\n\t\t$imagePreview,\n\t\t$imageSize,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\t$imageRotation,\n\t\t$rootRect,\n\t\t$isInteracting,\n\t\t$imageManipulation,\n\t\t$imageRedaction,\n\t\t$imageRedactionRendering,\n\t\t$imageBackgroundColor,\n\t\t$imageScrambler,\n\t\t$env,\n\t\t$imageProcessingPreparing,\n\t\t$statusOffset,\n\t\t$asideWidth,\n\t\t$statusWidth,\n\t\t$wasProcessingImage,\n\t\t$imageVisualLoadComplete,\n\t\t$imageProcessState,\n\t\t$imageLoadState,\n\t\t$imagePreviewSource,\n\t\t$imageProps,\n\t\t$imagePreviewModifiers,\n\t\t$imageTransforms,\n\t\t$pointerHoverable,\n\t\t$pointerAccuracy,\n\t\t$utilTools,\n\t\t$imageFile,\n\t\t$previewShouldUpscale,\n\t\t$history,\n\t\t$imageOverlayMarkup,\n\t\t$overlayBottomRect,\n\t\t$overlayOpacity,\n\t\t$overlayRightRect,\n\t\t$overlayTopRect,\n\t\t$overlayLeftRect,\n\t\t$stagePadding,\n\t\t$stagePadded,\n\t\t$imageCropRect,\n\t\t$imageStaticBounds,\n\t\t$stageScalar,\n\t\t$imageSelectionPan,\n\t\t$imageSelectionZoom,\n\t\t$prefersReducedMotion,\n\t\t$rootInsetTop,\n\t\t$allowZoomControls,\n\t\t$shapePreprocessor,\n\t\t$images,\n\t\t$mediaTrim,\n\t\t$mediaVolume,\n\t\t$isMuted,\n\t\t$videoFramePeekOffset,\n\t\t$videoFrameOffset,\n\t\t$mediaDuration,\n\t\t$mediaMaxDuration,\n\t\tonwindowresize,\n\t\tmeasure_handler,\n\t\tselect_handler,\n\t\tfunc,\n\t\tutilpanel_component_binding,\n\t\tshow_handler,\n\t\thide_handler,\n\t\tfade_handler,\n\t\tmeasure_handler_1,\n\t\tfunc_1,\n\t\tutilpanel_component_binding_1,\n\t\tshow_handler_1,\n\t\thide_handler_1,\n\t\tfade_handler_1,\n\t\tfunc_2,\n\t\tfunc_3,\n\t\tdiv_binding,\n\t\tcanvaspanandzoom_zoomLevel_binding,\n\t\tcanvaspanandzoom_zoomControls_binding,\n\t\tcanvaspanandzoom_zoomMultiTouching_binding,\n\t\tinput_binding,\n\t\tdiv_binding_1,\n\t\tmeasure_handler_2\n\t];\n}\n\nclass Ui extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$t,\n\t\t\tcreate_fragment$t,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tclass: 229,\n\t\t\t\tlayout: 230,\n\t\t\t\tstores: 231,\n\t\t\t\tlocale: 3,\n\t\t\t\tid: 4,\n\t\t\t\tutil: 232,\n\t\t\t\tutils: 233,\n\t\t\t\tanimations: 234,\n\t\t\t\tdisabled: 235,\n\t\t\t\tstatus: 227,\n\t\t\t\tpreviewUpscale: 236,\n\t\t\t\tpreviewPad: 237,\n\t\t\t\tpreviewMaskOpacity: 5,\n\t\t\t\tpreviewImageDataMaxSize: 238,\n\t\t\t\tpreviewImageTextPixelRatio: 6,\n\t\t\t\tmarkupMaskOpacity: 7,\n\t\t\t\tzoomMaskOpacity: 239,\n\t\t\t\telasticityMultiplier: 8,\n\t\t\t\twillRevert: 240,\n\t\t\t\twillProcessImage: 241,\n\t\t\t\twillRenderCanvas: 9,\n\t\t\t\twillRenderToolbar: 242,\n\t\t\t\twillSetHistoryInitialState: 243,\n\t\t\t\tenableButtonExport: 244,\n\t\t\t\tenableButtonRevert: 245,\n\t\t\t\tenableNavigateHistory: 246,\n\t\t\t\tenableToolbar: 10,\n\t\t\t\tenableUtils: 247,\n\t\t\t\tenableButtonClose: 248,\n\t\t\t\tenableDropImage: 249,\n\t\t\t\tenablePasteImage: 250,\n\t\t\t\tenableBrowseImage: 251,\n\t\t\t\tenableTransparencyGrid: 11,\n\t\t\t\tlayoutDirectionPreference: 252,\n\t\t\t\tlayoutHorizontalUtilsPreference: 253,\n\t\t\t\tlayoutVerticalUtilsPreference: 254,\n\t\t\t\tlayoutVerticalToolbarPreference: 255,\n\t\t\t\tlayoutVerticalControlGroupsPreference: 256,\n\t\t\t\tlayoutVerticalControlTabsPreference: 257,\n\t\t\t\ttextDirection: 12,\n\t\t\t\tmarkupEditorZoomLevel: 258,\n\t\t\t\tmarkupEditorZoomLevels: 13,\n\t\t\t\tmarkupEditorZoomAdjustStep: 14,\n\t\t\t\tmarkupEditorZoomAdjustFactor: 15,\n\t\t\t\tmarkupEditorZoomAdjustWheelFactor: 16,\n\t\t\t\tmarkupEditorInteractionMode: 259,\n\t\t\t\tmuteAudio: 260,\n\t\t\t\twillSetMediaInitialTimeOffset: 261,\n\t\t\t\tenablePan: 17,\n\t\t\t\tenableZoom: 18,\n\t\t\t\tenableZoomControls: 262,\n\t\t\t\tenableZoomInput: 19,\n\t\t\t\tenablePanInput: 263,\n\t\t\t\tenableCanvasAlpha: 20,\n\t\t\t\tenablePanLimit: 21,\n\t\t\t\tpanLimitGutterScalar: 22,\n\t\t\t\tzoomPresetOptions: 23,\n\t\t\t\tzoomAdjustStep: 24,\n\t\t\t\tzoomAdjustFactor: 25,\n\t\t\t\tzoomAdjustWheelFactor: 26,\n\t\t\t\tzoomLevel: 0,\n\t\t\t\thideTextInput: 264,\n\t\t\t\tshowTextInput: 265,\n\t\t\t\timagePreviewSrc: 266,\n\t\t\t\timageOrienter: 267,\n\t\t\t\tpluginComponents: 268,\n\t\t\t\tpluginOptions: 27,\n\t\t\t\tsub: 269,\n\t\t\t\tpluginInterface: 1,\n\t\t\t\troot: 2,\n\t\t\t\tplay: 270,\n\t\t\t\tpause: 271,\n\t\t\t\tisPaused: 272,\n\t\t\t\ttogglePlayPause: 273,\n\t\t\t\tmute: 274,\n\t\t\t\tunmute: 275,\n\t\t\t\ttoggleMute: 276,\n\t\t\t\tgetDuration: 277,\n\t\t\t\tgetCurrentTime: 278,\n\t\t\t\tsetCurrentTime: 279,\n\t\t\t\timageSourceToImageData: 28,\n\t\t\t\timagePreview: 29,\n\t\t\t\timagePreviewCurrent: 228,\n\t\t\t\thistory: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget class() {\n\t\treturn this.$$.ctx[229];\n\t}\n\n\tset class(klass) {\n\t\tthis.$$set({ class: klass });\n\t\tflush();\n\t}\n\n\tget layout() {\n\t\treturn this.$$.ctx[230];\n\t}\n\n\tset layout(layoutMode) {\n\t\tthis.$$set({ layout: layoutMode });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[231];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget id() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset id(id) {\n\t\tthis.$$set({ id });\n\t\tflush();\n\t}\n\n\tget util() {\n\t\treturn this.$$.ctx[232];\n\t}\n\n\tset util(util) {\n\t\tthis.$$set({ util });\n\t\tflush();\n\t}\n\n\tget utils() {\n\t\treturn this.$$.ctx[233];\n\t}\n\n\tset utils(utils) {\n\t\tthis.$$set({ utils });\n\t\tflush();\n\t}\n\n\tget animations() {\n\t\treturn this.$$.ctx[234];\n\t}\n\n\tset animations(animations) {\n\t\tthis.$$set({ animations });\n\t\tflush();\n\t}\n\n\tget disabled() {\n\t\treturn this.$$.ctx[235];\n\t}\n\n\tset disabled(disabled) {\n\t\tthis.$$set({ disabled });\n\t\tflush();\n\t}\n\n\tget status() {\n\t\treturn this.$$.ctx[227];\n\t}\n\n\tset status(status) {\n\t\tthis.$$set({ status });\n\t\tflush();\n\t}\n\n\tget previewUpscale() {\n\t\treturn this.$$.ctx[236];\n\t}\n\n\tset previewUpscale(previewUpscale) {\n\t\tthis.$$set({ previewUpscale });\n\t\tflush();\n\t}\n\n\tget previewPad() {\n\t\treturn this.$$.ctx[237];\n\t}\n\n\tset previewPad(previewPad) {\n\t\tthis.$$set({ previewPad });\n\t\tflush();\n\t}\n\n\tget previewMaskOpacity() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset previewMaskOpacity(previewMaskOpacity) {\n\t\tthis.$$set({ previewMaskOpacity });\n\t\tflush();\n\t}\n\n\tget previewImageDataMaxSize() {\n\t\treturn this.$$.ctx[238];\n\t}\n\n\tset previewImageDataMaxSize(previewImageDataMaxSize) {\n\t\tthis.$$set({ previewImageDataMaxSize });\n\t\tflush();\n\t}\n\n\tget previewImageTextPixelRatio() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset previewImageTextPixelRatio(previewImageTextPixelRatio) {\n\t\tthis.$$set({ previewImageTextPixelRatio });\n\t\tflush();\n\t}\n\n\tget markupMaskOpacity() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset markupMaskOpacity(markupMaskOpacity) {\n\t\tthis.$$set({ markupMaskOpacity });\n\t\tflush();\n\t}\n\n\tget zoomMaskOpacity() {\n\t\treturn this.$$.ctx[239];\n\t}\n\n\tset zoomMaskOpacity(zoomMaskOpacity) {\n\t\tthis.$$set({ zoomMaskOpacity });\n\t\tflush();\n\t}\n\n\tget elasticityMultiplier() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset elasticityMultiplier(elasticityMultiplier) {\n\t\tthis.$$set({ elasticityMultiplier });\n\t\tflush();\n\t}\n\n\tget willRevert() {\n\t\treturn this.$$.ctx[240];\n\t}\n\n\tset willRevert(willRevert) {\n\t\tthis.$$set({ willRevert });\n\t\tflush();\n\t}\n\n\tget willProcessImage() {\n\t\treturn this.$$.ctx[241];\n\t}\n\n\tset willProcessImage(willProcessImage) {\n\t\tthis.$$set({ willProcessImage });\n\t\tflush();\n\t}\n\n\tget willRenderCanvas() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset willRenderCanvas(willRenderCanvas) {\n\t\tthis.$$set({ willRenderCanvas });\n\t\tflush();\n\t}\n\n\tget willRenderToolbar() {\n\t\treturn this.$$.ctx[242];\n\t}\n\n\tset willRenderToolbar(willRenderToolbar) {\n\t\tthis.$$set({ willRenderToolbar });\n\t\tflush();\n\t}\n\n\tget willSetHistoryInitialState() {\n\t\treturn this.$$.ctx[243];\n\t}\n\n\tset willSetHistoryInitialState(willSetHistoryInitialState) {\n\t\tthis.$$set({ willSetHistoryInitialState });\n\t\tflush();\n\t}\n\n\tget enableButtonExport() {\n\t\treturn this.$$.ctx[244];\n\t}\n\n\tset enableButtonExport(enableButtonExport) {\n\t\tthis.$$set({ enableButtonExport });\n\t\tflush();\n\t}\n\n\tget enableButtonRevert() {\n\t\treturn this.$$.ctx[245];\n\t}\n\n\tset enableButtonRevert(enableButtonRevert) {\n\t\tthis.$$set({ enableButtonRevert });\n\t\tflush();\n\t}\n\n\tget enableNavigateHistory() {\n\t\treturn this.$$.ctx[246];\n\t}\n\n\tset enableNavigateHistory(enableNavigateHistory) {\n\t\tthis.$$set({ enableNavigateHistory });\n\t\tflush();\n\t}\n\n\tget enableToolbar() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset enableToolbar(enableToolbar) {\n\t\tthis.$$set({ enableToolbar });\n\t\tflush();\n\t}\n\n\tget enableUtils() {\n\t\treturn this.$$.ctx[247];\n\t}\n\n\tset enableUtils(enableUtils) {\n\t\tthis.$$set({ enableUtils });\n\t\tflush();\n\t}\n\n\tget enableButtonClose() {\n\t\treturn this.$$.ctx[248];\n\t}\n\n\tset enableButtonClose(enableButtonClose) {\n\t\tthis.$$set({ enableButtonClose });\n\t\tflush();\n\t}\n\n\tget enableDropImage() {\n\t\treturn this.$$.ctx[249];\n\t}\n\n\tset enableDropImage(enableDropImage) {\n\t\tthis.$$set({ enableDropImage });\n\t\tflush();\n\t}\n\n\tget enablePasteImage() {\n\t\treturn this.$$.ctx[250];\n\t}\n\n\tset enablePasteImage(enablePasteImage) {\n\t\tthis.$$set({ enablePasteImage });\n\t\tflush();\n\t}\n\n\tget enableBrowseImage() {\n\t\treturn this.$$.ctx[251];\n\t}\n\n\tset enableBrowseImage(enableBrowseImage) {\n\t\tthis.$$set({ enableBrowseImage });\n\t\tflush();\n\t}\n\n\tget enableTransparencyGrid() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset enableTransparencyGrid(enableTransparencyGrid) {\n\t\tthis.$$set({ enableTransparencyGrid });\n\t\tflush();\n\t}\n\n\tget layoutDirectionPreference() {\n\t\treturn this.$$.ctx[252];\n\t}\n\n\tset layoutDirectionPreference(layoutDirectionPreference) {\n\t\tthis.$$set({ layoutDirectionPreference });\n\t\tflush();\n\t}\n\n\tget layoutHorizontalUtilsPreference() {\n\t\treturn this.$$.ctx[253];\n\t}\n\n\tset layoutHorizontalUtilsPreference(layoutHorizontalUtilsPreference) {\n\t\tthis.$$set({ layoutHorizontalUtilsPreference });\n\t\tflush();\n\t}\n\n\tget layoutVerticalUtilsPreference() {\n\t\treturn this.$$.ctx[254];\n\t}\n\n\tset layoutVerticalUtilsPreference(layoutVerticalUtilsPreference) {\n\t\tthis.$$set({ layoutVerticalUtilsPreference });\n\t\tflush();\n\t}\n\n\tget layoutVerticalToolbarPreference() {\n\t\treturn this.$$.ctx[255];\n\t}\n\n\tset layoutVerticalToolbarPreference(layoutVerticalToolbarPreference) {\n\t\tthis.$$set({ layoutVerticalToolbarPreference });\n\t\tflush();\n\t}\n\n\tget layoutVerticalControlGroupsPreference() {\n\t\treturn this.$$.ctx[256];\n\t}\n\n\tset layoutVerticalControlGroupsPreference(layoutVerticalControlGroupsPreference) {\n\t\tthis.$$set({ layoutVerticalControlGroupsPreference });\n\t\tflush();\n\t}\n\n\tget layoutVerticalControlTabsPreference() {\n\t\treturn this.$$.ctx[257];\n\t}\n\n\tset layoutVerticalControlTabsPreference(layoutVerticalControlTabsPreference) {\n\t\tthis.$$set({ layoutVerticalControlTabsPreference });\n\t\tflush();\n\t}\n\n\tget textDirection() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset textDirection(textDirection) {\n\t\tthis.$$set({ textDirection });\n\t\tflush();\n\t}\n\n\tget markupEditorZoomLevel() {\n\t\treturn this.$$.ctx[258];\n\t}\n\n\tset markupEditorZoomLevel(markupEditorZoomLevel) {\n\t\tthis.$$set({ markupEditorZoomLevel });\n\t\tflush();\n\t}\n\n\tget markupEditorZoomLevels() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset markupEditorZoomLevels(markupEditorZoomLevels) {\n\t\tthis.$$set({ markupEditorZoomLevels });\n\t\tflush();\n\t}\n\n\tget markupEditorZoomAdjustStep() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset markupEditorZoomAdjustStep(markupEditorZoomAdjustStep) {\n\t\tthis.$$set({ markupEditorZoomAdjustStep });\n\t\tflush();\n\t}\n\n\tget markupEditorZoomAdjustFactor() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset markupEditorZoomAdjustFactor(markupEditorZoomAdjustFactor) {\n\t\tthis.$$set({ markupEditorZoomAdjustFactor });\n\t\tflush();\n\t}\n\n\tget markupEditorZoomAdjustWheelFactor() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset markupEditorZoomAdjustWheelFactor(markupEditorZoomAdjustWheelFactor) {\n\t\tthis.$$set({ markupEditorZoomAdjustWheelFactor });\n\t\tflush();\n\t}\n\n\tget markupEditorInteractionMode() {\n\t\treturn this.$$.ctx[259];\n\t}\n\n\tset markupEditorInteractionMode(markupEditorInteractionMode) {\n\t\tthis.$$set({ markupEditorInteractionMode });\n\t\tflush();\n\t}\n\n\tget muteAudio() {\n\t\treturn this.$$.ctx[260];\n\t}\n\n\tset muteAudio(muteAudio) {\n\t\tthis.$$set({ muteAudio });\n\t\tflush();\n\t}\n\n\tget willSetMediaInitialTimeOffset() {\n\t\treturn this.$$.ctx[261];\n\t}\n\n\tset willSetMediaInitialTimeOffset(willSetMediaInitialTimeOffset) {\n\t\tthis.$$set({ willSetMediaInitialTimeOffset });\n\t\tflush();\n\t}\n\n\tget enablePan() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset enablePan(enablePan) {\n\t\tthis.$$set({ enablePan });\n\t\tflush();\n\t}\n\n\tget enableZoom() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset enableZoom(enableZoom) {\n\t\tthis.$$set({ enableZoom });\n\t\tflush();\n\t}\n\n\tget enableZoomControls() {\n\t\treturn this.$$.ctx[262];\n\t}\n\n\tset enableZoomControls(enableZoomControls) {\n\t\tthis.$$set({ enableZoomControls });\n\t\tflush();\n\t}\n\n\tget enableZoomInput() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset enableZoomInput(enableZoomInput) {\n\t\tthis.$$set({ enableZoomInput });\n\t\tflush();\n\t}\n\n\tget enablePanInput() {\n\t\treturn this.$$.ctx[263];\n\t}\n\n\tset enablePanInput(enablePanInput) {\n\t\tthis.$$set({ enablePanInput });\n\t\tflush();\n\t}\n\n\tget enableCanvasAlpha() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset enableCanvasAlpha(enableCanvasAlpha) {\n\t\tthis.$$set({ enableCanvasAlpha });\n\t\tflush();\n\t}\n\n\tget enablePanLimit() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset enablePanLimit(enablePanLimit) {\n\t\tthis.$$set({ enablePanLimit });\n\t\tflush();\n\t}\n\n\tget panLimitGutterScalar() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tset panLimitGutterScalar(panLimitGutterScalar) {\n\t\tthis.$$set({ panLimitGutterScalar });\n\t\tflush();\n\t}\n\n\tget zoomPresetOptions() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tset zoomPresetOptions(zoomPresetOptions) {\n\t\tthis.$$set({ zoomPresetOptions });\n\t\tflush();\n\t}\n\n\tget zoomAdjustStep() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tset zoomAdjustStep(zoomAdjustStep) {\n\t\tthis.$$set({ zoomAdjustStep });\n\t\tflush();\n\t}\n\n\tget zoomAdjustFactor() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tset zoomAdjustFactor(zoomAdjustFactor) {\n\t\tthis.$$set({ zoomAdjustFactor });\n\t\tflush();\n\t}\n\n\tget zoomAdjustWheelFactor() {\n\t\treturn this.$$.ctx[26];\n\t}\n\n\tset zoomAdjustWheelFactor(zoomAdjustWheelFactor) {\n\t\tthis.$$set({ zoomAdjustWheelFactor });\n\t\tflush();\n\t}\n\n\tget zoomLevel() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset zoomLevel(zoomLevel) {\n\t\tthis.$$set({ zoomLevel });\n\t\tflush();\n\t}\n\n\tget hideTextInput() {\n\t\treturn this.$$.ctx[264];\n\t}\n\n\tget showTextInput() {\n\t\treturn this.$$.ctx[265];\n\t}\n\n\tget imagePreviewSrc() {\n\t\treturn this.$$.ctx[266];\n\t}\n\n\tset imagePreviewSrc(imagePreviewSrc) {\n\t\tthis.$$set({ imagePreviewSrc });\n\t\tflush();\n\t}\n\n\tget imageOrienter() {\n\t\treturn this.$$.ctx[267];\n\t}\n\n\tset imageOrienter(imageOrienter) {\n\t\tthis.$$set({ imageOrienter });\n\t\tflush();\n\t}\n\n\tget pluginComponents() {\n\t\treturn this.$$.ctx[268];\n\t}\n\n\tset pluginComponents(pluginComponents) {\n\t\tthis.$$set({ pluginComponents });\n\t\tflush();\n\t}\n\n\tget pluginOptions() {\n\t\treturn this.$$.ctx[27];\n\t}\n\n\tset pluginOptions(pluginOptions) {\n\t\tthis.$$set({ pluginOptions });\n\t\tflush();\n\t}\n\n\tget sub() {\n\t\treturn this.$$.ctx[269];\n\t}\n\n\tget pluginInterface() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tget root() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset root(root) {\n\t\tthis.$$set({ root });\n\t\tflush();\n\t}\n\n\tget play() {\n\t\treturn this.$$.ctx[270];\n\t}\n\n\tget pause() {\n\t\treturn this.$$.ctx[271];\n\t}\n\n\tget isPaused() {\n\t\treturn this.$$.ctx[272];\n\t}\n\n\tget togglePlayPause() {\n\t\treturn this.$$.ctx[273];\n\t}\n\n\tget mute() {\n\t\treturn this.$$.ctx[274];\n\t}\n\n\tget unmute() {\n\t\treturn this.$$.ctx[275];\n\t}\n\n\tget toggleMute() {\n\t\treturn this.$$.ctx[276];\n\t}\n\n\tget getDuration() {\n\t\treturn this.$$.ctx[277];\n\t}\n\n\tget getCurrentTime() {\n\t\treturn this.$$.ctx[278];\n\t}\n\n\tget setCurrentTime() {\n\t\treturn this.$$.ctx[279];\n\t}\n\n\tget imageSourceToImageData() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tset imageSourceToImageData(imageSourceToImageData) {\n\t\tthis.$$set({ imageSourceToImageData });\n\t\tflush();\n\t}\n\n\tget imagePreview() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tget imagePreviewCurrent() {\n\t\treturn this.$$.ctx[228];\n\t}\n\n\tset imagePreviewCurrent(imagePreviewCurrent) {\n\t\tthis.$$set({ imagePreviewCurrent });\n\t\tflush();\n\t}\n\n\tget history() {\n\t\treturn this.$$.ctx[30];\n\t}\n}\n\n// which props to filter out of exported props\nconst utilPrivateProps = ['klass', 'stores', 'isVisible', 'isActive', 'isActiveFraction', 'locale'];\nconst viewPrivateProps = [\n // methods\n 'history',\n // props\n 'klass',\n 'stores',\n 'navButtons',\n 'pluginComponents',\n 'pluginInterface',\n 'pluginOptions',\n 'sub',\n 'imagePreviewSrc',\n 'imagePreview',\n 'imagePreviewCurrent',\n];\n// properties that should be merged with current value if set\nconst mergeProps = ['locale'];\n// view options array\nlet editorProps;\nconst pluginProps = new Set([]);\nconst propPluginRef = {};\n// loops over plugins and registers all available options so we can define getters/setters\nconst pluginComponents = new Map();\nconst setEditorViewPlugins = (...args) => {\n args\n // remove invalid plugins\n .filter((plugin) => !!plugin.util)\n // register valid plugins\n .forEach((plugin) => {\n const [id, Component, isSupported = () => true] = plugin.util;\n // already set\n if (pluginComponents.has(id))\n return;\n // store\n pluginComponents.set(id, { Component, isSupported });\n // get props\n getComponentExportedProps(Component)\n .filter((prop) => !utilPrivateProps.includes(prop))\n .forEach((prop) => {\n pluginProps.add(prop);\n if (propPluginRef[prop]) {\n propPluginRef[prop].push(id);\n return;\n }\n propPluginRef[prop] = [id];\n });\n });\n};\nconst getEditorViewProps = () => {\n editorProps = new Set(getComponentExportedProps(Ui).filter((prop) => !viewPrivateProps.includes(prop)));\n return [...editorProps, ...pluginProps];\n};\nconst attachEditorView = (target, stores) => {\n const accessors = {};\n // creates the editor component instance\n const editor = new Ui({\n target,\n props: {\n stores,\n pluginComponents: Array.from(pluginComponents),\n },\n });\n // destroys the editor component instance\n let isDestroyed = false;\n const destroy = () => {\n if (isDestroyed)\n return;\n if (isBrowser())\n window.removeEventListener('pagehide', destroy);\n if (!editor)\n return;\n isDestroyed = true;\n editor.$destroy();\n };\n // set up accessors for editor props\n if (!editorProps)\n editorProps = new Set(getComponentExportedProps(Ui).filter((prop) => !viewPrivateProps.includes(prop)));\n editorProps.forEach((prop) => {\n Object.defineProperty(accessors, prop, {\n get: () => editor[prop],\n set: mergeProps.includes(prop)\n ? // merge new value with existing value\n (value) => {\n editor[prop] = {\n ...editor[prop],\n ...value,\n };\n }\n : // overwrite current value\n (value) => (editor[prop] = value),\n });\n });\n // this reads the imagePreview store so third parties can interact with image data\n Object.defineProperty(accessors, 'previewImageData', {\n get: () => editor.imagePreviewCurrent,\n });\n // set up accessors for plugin props\n pluginProps.forEach((prop) => {\n const plugins = propPluginRef[prop];\n const plugin = plugins[0]; // will always get value from first plugin, when plugins share a property the value will be in sync when set\n Object.defineProperty(accessors, prop, {\n get: () => editor.pluginInterface[plugin][prop],\n set: (value) => {\n const opts = plugins.reduce((prev, plugin) => {\n prev[plugin] = {\n ...editor.pluginOptions[plugin],\n [prop]: value,\n };\n return prev;\n }, {});\n editor.pluginOptions = {\n ...editor.pluginOptions,\n ...opts,\n };\n },\n });\n });\n // add `element` root query\n Object.defineProperty(accessors, 'element', {\n get: () => editor.root,\n set: () => undefined,\n });\n // history shortcut\n const history = editor.history;\n defineMethods(accessors, {\n on: (event, cb) => {\n // exit if editor was destroyed, will return stub function so unsubs can be called without issues\n if (isDestroyed)\n return () => {\n // Do nothing\n };\n // catch history events and route to history object\n if (/undo|redo|revert|writehistory/.test(event))\n return history.on(event, cb);\n // gather unsub methods\n const unsubs = [\n editor.sub(event, cb),\n editor.$on(event, (e) => cb(e instanceof CustomEvent && !e.detail ? undefined : e)),\n ].filter(Boolean);\n // set up unsubscribe group\n return () => unsubs.forEach((unsub) => unsub());\n },\n updateImagePreview: (src) => {\n editor.imagePreviewSrc = src;\n },\n close: () => !isDestroyed && editor.pub('close'),\n destroy,\n });\n Object.defineProperty(accessors, 'history', {\n get: () => ({\n undo: () => history.undo(),\n redo: () => history.redo(),\n revert: () => history.revert(),\n get: () => history.get(),\n getCollapsed: () => {\n const entries = history.get();\n return entries.splice(0, history.index + 1);\n },\n set: (entries) => history.set(entries),\n write: (state) => history.write(state),\n get length() {\n return history.length();\n },\n get index() {\n return history.index;\n },\n set index(index) {\n history.index = index;\n },\n }),\n });\n // clean up on window unload\n if (isBrowser())\n window.addEventListener('pagehide', destroy);\n return accessors;\n};\n\nvar editorEvents = [\n // core editor events that should be re-dispatched\n ...editorEventsToBubble,\n // ui editor events\n 'init',\n 'update',\n 'undo',\n 'redo',\n 'revert',\n 'writehistory',\n 'destroy',\n 'show',\n 'hide',\n 'close',\n 'ready',\n 'zoom',\n 'pan',\n 'loadpreview',\n 'selectshape',\n 'blurshape',\n 'updateshape',\n 'addshape',\n 'removeshape',\n 'selectstyle',\n 'markuptap',\n 'markupzoom',\n 'markuppan',\n 'selectutil',\n 'selectcontrol',\n 'selectiondown',\n 'selectionup',\n 'selectionchange',\n];\n\nconst dispatchElementEvent = (target, event, detail) => target.dispatchEvent(new CustomEvent(event, { detail, bubbles: true, cancelable: true }));\nvar dispatchEditorEvents = (editor, handler, options = {}) => {\n const { prefix = 'pintura:' } = options;\n return editorEvents.map((event) => editor.on(event, (value) => isElement(handler)\n ? dispatchElementEvent(handler, `${prefix}${event}`, value)\n : handler(event, value)));\n};\n\nvar naturalAspectRatioToNumber = (value) => {\n // already valid value\n if (value === undefined || isNumber(value))\n return value;\n // invalid\n if (!isString(value))\n return false;\n // convert string to aspect ratio fraction\n const str = value;\n // we interpret empty string as undefined\n if (!str.length)\n return undefined;\n // get numbers\n const [w, h] = str\n .split(/\\/|:/g)\n .map((value) => parseFloat(value.replace(/,/, '.')))\n .filter(Boolean);\n // invalid\n if (!w)\n return false;\n // single value received\n if (!h)\n return w;\n // lets convert to fraction\n return Math.abs(w / h);\n};\n\nvar arrayInsert = (array, index, item) => {\n array.splice(index, 0, item);\n return array;\n};\n\n// first index is always id, so if is string, it's a node\nconst isNode = (item) => isString(item[0]);\n// if it's not a node, it's a nodelist\nconst isNodeList = (item) => !isNode(item);\nconst getNodeId = (node) => node[1];\nconst getNodeChildren = (node) => node[3] || [];\nfunction createNode(instance, id, props, children) {\n // if three arguments received, props can be children\n if (Array.isArray(props)) {\n children = props;\n props = {};\n }\n // node is always array of four entries\n return [instance, id, props || {}, children || []];\n}\nconst insertNode = (node, needle, haystack, getIndex = (index) => index) => {\n const nodeList = findNodeList(needle, haystack);\n const targetIndex = nodeList.findIndex((item) => getNodeId(item) === needle);\n arrayInsert(nodeList, getIndex(targetIndex), node);\n};\nconst insertNodeBefore = (node, needle, haystack) => insertNode(node, needle, haystack);\nconst insertNodeAfter = (node, needle, haystack) => insertNode(node, needle, haystack, (index) => index + 1);\nconst appendNode = (node, haystack) => {\n // if is list, add to list\n if (isNodeList(haystack))\n return haystack.push(node);\n // else it's a node, add to node children\n haystack[3] = [...getNodeChildren(haystack), node];\n};\nconst removeNode = (needle, haystack) => {\n const nodeList = findNodeList(needle, haystack);\n arrayRemove(nodeList, (item) => getNodeId(item) === needle);\n return nodeList;\n};\nconst findNode = (needle, haystack) => {\n if (!haystack || !haystack.length)\n return;\n // haystack is a node, maybe node is a match or one of children is a match\n if (isNode(haystack)) {\n if (getNodeId(haystack) === needle) {\n return haystack;\n }\n const res = findNode(needle, getNodeChildren(haystack));\n if (res)\n return res;\n }\n if (isNodeList(haystack)) {\n for (const child of haystack) {\n const res = findNode(needle, child);\n if (res)\n return res;\n }\n }\n};\nconst findNodeList = (needle, haystack) => {\n // haystack is node list\n if (isNodeList(haystack)) {\n // lets search nodes in this haystack\n if (haystack.find((item) => getNodeId(item) === needle))\n return haystack;\n // not found, lets move the search to the childnodes\n const item = haystack.find((item) => findNodeList(needle, getNodeChildren(item)));\n return item && item[3];\n }\n // is node, lets find in children\n return findNodeList(needle, getNodeChildren(haystack));\n};\nconst updateNode = (node, props) => {\n const [, , nodeProps] = node;\n Object.assign(nodeProps, props);\n};\n\nconst pastel = () => \n// prettier-ignore\n[\n 0.75, 0.25, 0.25, 0, 0,\n 0.25, 0.75, 0.25, 0, 0,\n 0.25, 0.25, 0.75, 0, 0,\n 0, 0, 0, 1, 0\n];\nconst chrome = () => \n// prettier-ignore\n[\n 1.398, -0.316, 0.065, -0.273, 0.201,\n -0.051, 1.278, -0.080, -0.273, 0.201,\n -0.051, 0.119, 1.151, -0.290, 0.215,\n 0, 0, 0, 1, 0\n];\nconst fade = () => \n// prettier-ignore\n[\n 1.073, -0.015, 0.092, -0.115, -0.017,\n 0.107, 0.859, 0.184, -0.115, -0.017,\n 0.015, 0.077, 1.104, -0.115, -0.017,\n 0, 0, 0, 1, 0\n];\nconst warm = () => \n// prettier-ignore\n[\n 1.06, 0, 0, 0, 0,\n 0, 1.01, 0, 0, 0,\n 0, 0, 0.93, 0, 0,\n 0, 0, 0, 1, 0,\n];\nconst cold = () => \n// prettier-ignore\n[\n 1.1, 0, 0, 0, -.1,\n 0, 1.1, 0, 0, -.1,\n 0, 0, 1.2, 0, -.1,\n 0, 0, 0, 1, 0,\n];\nconst invert = () => \n// prettier-ignore\n[\n -1, 0, 0, 1, 0,\n 0, -1, 0, 1, 0,\n 0, 0, -1, 1, 0,\n 0, 0, 0, 1, 0,\n];\nconst monoDefault = () => \n// prettier-ignore\n[\n 0.212, 0.715, 0.114, 0, 0,\n 0.212, 0.715, 0.114, 0, 0,\n 0.212, 0.715, 0.114, 0, 0,\n 0, 0, 0, 1, 0\n];\nconst monoNoir = () => \n// prettier-ignore\n[\n 0.15, 1.3, -0.25, 0.1, -0.2,\n 0.15, 1.3, -0.25, 0.1, -0.2,\n 0.15, 1.3, -0.25, 0.1, -0.2,\n 0, 0, 0, 1, 0\n];\nconst monoWash = () => \n// prettier-ignore\n[\n 0.163, 0.518, 0.084, -0.010, 0.208,\n 0.163, 0.529, 0.082, -0.020, 0.210,\n 0.171, 0.529, 0.084, 0.000, 0.214,\n 0, 0, 0, 1, 0\n];\nconst monoStark = () => \n// prettier-ignore\n[\n 0.338, 0.991, 0.117, 0.093, -0.196,\n 0.302, 1.049, 0.096, 0.078, -0.196,\n 0.286, 1.016, 0.146, 0.101, -0.196,\n 0, 0, 0, 1, 0\n];\nconst sepiaDefault = () => \n// prettier-ignore\n[\n 0.393, 0.768, 0.188, 0, 0,\n 0.349, 0.685, 0.167, 0, 0,\n 0.272, 0.533, 0.130, 0, 0,\n 0, 0, 0, 1, 0,\n];\nconst sepiaBlues = () => \n// prettier-ignore\n[\n 0.289, 0.620, 0.185, 0.000, 0.077,\n 0.257, 0.566, 0.163, 0.000, 0.115,\n 0.200, 0.430, 0.128, 0.000, 0.188,\n 0, 0, 0, 1, 0\n];\nconst sepiaRust = () => \n// prettier-ignore\n[\n 0.269, 0.764, 0.172, 0.050, 0.100,\n 0.239, 0.527, 0.152, 0.000, 0.176,\n 0.186, 0.400, 0.119, 0.000, 0.159,\n 0, 0, 0, 1, 0\n];\nconst sepiaColor = () => \n// prettier-ignore\n[\n 0.547, 0.764, 0.134, 0.000, -0.147,\n 0.281, 0.925, 0.120, 0.000, -0.135,\n 0.225, 0.558, 0.330, 0.000, -0.113,\n 0, 0, 0, 1, 0\n];\n//\n// default filter set\n//\nconst filterFunctionsDefault = {\n chrome,\n fade,\n pastel,\n cold,\n warm,\n monoDefault,\n monoWash,\n monoNoir,\n monoStark,\n sepiaDefault,\n sepiaRust,\n sepiaBlues,\n sepiaColor,\n};\nconst filterOptionsDefault = [\n ['Default', [[undefined, (locale) => locale.labelDefault]]],\n [\n 'Classic',\n [\n ['chrome', (locale) => locale.filterLabelChrome],\n ['fade', (locale) => locale.filterLabelFade],\n ['cold', (locale) => locale.filterLabelCold],\n ['warm', (locale) => locale.filterLabelWarm],\n ['pastel', (locale) => locale.filterLabelPastel],\n ],\n ],\n [\n 'Monochrome',\n [\n ['monoDefault', (locale) => locale.filterLabelMonoDefault],\n ['monoNoir', (locale) => locale.filterLabelMonoNoir],\n ['monoStark', (locale) => locale.filterLabelMonoStark],\n ['monoWash', (locale) => locale.filterLabelMonoWash],\n ],\n ],\n [\n 'Sepia',\n [\n ['sepiaDefault', (locale) => locale.filterLabelSepiaDefault],\n ['sepiaRust', (locale) => locale.filterLabelSepiaRust],\n ['sepiaBlues', (locale) => locale.filterLabelSepiaBlues],\n ['sepiaColor', (locale) => locale.filterLabelSepiaColor],\n ],\n ],\n];\nvar _plugin_filter_defaults = {\n filterFunctions: filterFunctionsDefault,\n filterOptions: filterOptionsDefault,\n};\n\n//#region markup\nconst propertyMap = {\n borderColor: 'strokeColor',\n borderWidth: 'strokeWidth',\n lineWidth: 'strokeWidth',\n fontColor: 'color',\n lineColor: 'strokeColor',\n src: 'backgroundImage',\n fit: 'backgroundSize',\n};\nconst convertValue = (value) => {\n if (value === 0)\n return 0;\n if (value === '0%')\n return 0;\n if (value === '0px')\n return 0;\n if (/px$/.test(value))\n return parseInt(value, 10);\n if (/\\%$/.test(value))\n return value;\n if (value <= 1)\n return `${value * 100}%`;\n};\nconst addValues = (a, b) => {\n let _a, _b;\n if (/%$/.test(a)) {\n _a = parseFloat(a);\n _b = parseFloat(b);\n return `${_a + _b}%`;\n }\n if (/px$/.test(a)) {\n _a = parseInt(a, 10);\n _b = parseInt(b, 10);\n return `${_a + _b}px`;\n }\n};\nconst shapeFromLegacyMarkup = (crop, type, style) => {\n const shape = Object.keys(style).reduce((res, prop) => {\n let value = style[prop];\n // rename prop\n prop = propertyMap[prop] || prop;\n // if is px value\n if (/px$/.test(value)) {\n value = convertValue(value);\n }\n // if is number convert to percentage\n else if (/^(?:x|y|left|right|top|bottom|width|height|fontSize|borderWidth|strokeWidth)$/.test(prop) &&\n typeof value === 'number') {\n // except for widths and font sizes, change to those to absolute values\n if (prop === 'strokeWidth' || prop === 'borderWidth' || prop === 'fontSize') {\n const minAxis = Math.min(crop.width, crop.height);\n value = `${minAxis * value}px`;\n }\n value = convertValue(value);\n }\n // if is color value\n if (/color/i.test(prop) && value)\n value = colorStringToColorArray(value);\n if (value === null)\n value = undefined;\n res[prop] = value;\n return res;\n }, {});\n if (type === 'line') {\n if (shape.lineDecoration.length >= 1)\n shape.lineEnd = 'arrow';\n if (shape.lineDecoration.length === 2)\n shape.lineStart = 'arrow';\n shape.x1 = shape.x;\n shape.y1 = shape.y;\n shape.x2 = addValues(shape.x, shape.width);\n shape.y2 = addValues(shape.y, shape.height);\n delete shape.x;\n delete shape.y;\n delete shape.width;\n delete shape.height;\n delete shape.lineDecoration;\n delete shape.lineStyle;\n }\n if (type === 'text') {\n // need y to be absolute to calculate correct sizes\n if (!isNumber(shape.y)) {\n const minAxis = Math.min(crop.width, crop.height);\n shape.y = minAxis * (parseFloat(shape.y) / 100);\n }\n shape.y = shape.y - shape.fontSize;\n delete shape.width;\n delete shape.height;\n delete shape.borderStyle;\n shape.lineHeight = shape.lineHeight || '120%';\n }\n if (type === 'ellipse') {\n let w, h;\n // calculate `rx` and `ry` based on `width` and `h`eight`\n if (/%$/.test(shape.width)) {\n w = parseFloat(shape.width) / 100;\n h = parseFloat(shape.height) / 100;\n const widthAbsolute = w * crop.width;\n const heightAbsolute = h * crop.height;\n w = (widthAbsolute / crop.width) * 100;\n h = (heightAbsolute / crop.height) * 100;\n }\n else {\n w = shape.width;\n h = shape.height;\n }\n shape.rx = w * 0.5;\n shape.ry = h * 0.5;\n if (/%$/.test(shape.width)) {\n shape.rx += '%';\n shape.ry += '%';\n }\n shape.x = addValues(shape.x, shape.rx);\n shape.y = addValues(shape.y, shape.ry);\n delete shape.width;\n delete shape.height;\n delete shape.borderStyle;\n }\n if (type === 'rect') {\n delete shape.borderStyle;\n }\n if (type === 'path') {\n // remove points that are too close\n let out = [];\n let lastAdded;\n for (const point of shape.points) {\n // always add first\n if (!lastAdded) {\n out.push(point);\n lastAdded = point;\n continue;\n }\n // if too far, skip\n const dist = vectorDistanceSquared(lastAdded, point);\n if (dist < 0.000000001)\n continue;\n // add!\n out.push(point);\n lastAdded = point;\n // set new last point\n lastAdded = point;\n }\n //\n shape.points = out.map((point) => {\n return {\n x: convertValue(point.x),\n y: convertValue(point.y),\n };\n });\n }\n return shape;\n};\n//#endregion\n//#region crop\nconst getOffsetPointOnEdge = (length, rotation) => {\n const a = length;\n const A = 1.5707963267948966;\n const B = rotation;\n const C = 1.5707963267948966 - rotation;\n const sinA = Math.sin(A);\n const sinB = Math.sin(B);\n const sinC = Math.sin(C);\n const cosC = Math.cos(C);\n const ratio = a / sinA;\n const b = ratio * sinB;\n const c = ratio * sinC;\n return vectorCreate(cosC * b, cosC * c);\n};\nconst getRotatedRectSize = (rect, rotation) => {\n const w = rect.width;\n const h = rect.height;\n const hor = getOffsetPointOnEdge(w, rotation);\n const ver = getOffsetPointOnEdge(h, rotation);\n const tl = vectorCreate(rect.x + Math.abs(hor.x), rect.y - Math.abs(hor.y));\n const tr = vectorCreate(rect.x + rect.width + Math.abs(ver.y), rect.y + Math.abs(ver.x));\n const bl = vectorCreate(rect.x - Math.abs(ver.y), rect.y + rect.height - Math.abs(ver.x));\n return {\n width: vectorDistance(tl, tr),\n height: vectorDistance(tl, bl),\n };\n};\nconst getBoundsAroundCenter = (imageSize, center) => {\n const cx = center.x > 0.5 ? 1 - center.x : center.x;\n const cy = center.y > 0.5 ? 1 - center.y : center.y;\n return sizeCreate(cx * 2 * imageSize.width, cy * 2 * imageSize.height);\n};\nconst getCanvasSize = (imageSize, canvasAspectRatio, zoom = 1) => {\n const imageAspectRatio = imageSize.height / imageSize.width;\n // determine actual pixels on x and y axis\n const canvasWidth = 1;\n const canvasHeight = canvasAspectRatio;\n let imgWidth = 1;\n let imgHeight = imageAspectRatio;\n if (imgHeight > canvasHeight) {\n imgHeight = canvasHeight;\n imgWidth = imgHeight / imageAspectRatio;\n }\n const scalar = Math.max(canvasWidth / imgWidth, canvasHeight / imgHeight);\n const width = imageSize.width / (zoom * scalar * imgWidth);\n const height = width * canvasAspectRatio;\n return {\n width: width,\n height: height,\n };\n};\nconst getCenteredCropRect = (imageSize, aspectRatio) => {\n let width = imageSize.width;\n let height = width * aspectRatio;\n if (height > imageSize.height) {\n height = imageSize.height;\n width = height / aspectRatio;\n }\n const x = (imageSize.width - width) * 0.5;\n const y = (imageSize.height - height) * 0.5;\n return rectCreate(x, y, width, height);\n};\nconst getCorrectedLegacyAspectRatio = (imageSize, aspectRatio) => aspectRatio != null\n ? // fix the aspect ratio\n 1 / aspectRatio\n : // set image aspect ratio\n imageSize.width / imageSize.height;\nconst imagePropertiesFromLegacyCrop = (imageSize, { flip, aspectRatio, rotation, center, zoom, scaleToFit }) => {\n const res = {\n flipX: false,\n flipY: false,\n };\n // is centered crop\n const isCenteredCrop = !center || (center && center.x === 0.5 && center.y === 0.5);\n // handle basic props\n if (flip && flip.horizontal)\n res.flipX = flip.horizontal;\n if (flip && flip.vertical)\n res.flipY = flip.vertical;\n // fix aspect ratio, in FilePond and editor v6 it's height/width instead of width/height\n const correctedAspectRatio = getCorrectedLegacyAspectRatio(imageSize, aspectRatio);\n // image bounds\n const cropLimit = !(scaleToFit === false);\n const canvasSize = getCanvasSize(imageSize, aspectRatio, zoom);\n const cropSize = isCenteredCrop\n ? imageSize\n : getBoundsAroundCenter(imageSize, cropLimit ? center : { x: 0.5, y: 0.5 });\n const cropCentered = getCenteredCropRect(imageSize, aspectRatio);\n // has different aspect ratio than image\n if (aspectRatio || !isCenteredCrop || zoom) {\n res.crop = rectContainRect(rectCreateFromSize(cropSize), correctedAspectRatio);\n }\n if (typeof rotation === 'number' && rotation !== null && rotation !== 0) {\n if (rotation != null)\n res.rotation = rotation;\n const rotatedCropSize = getRotatedRectSize(cropCentered, rotation);\n const scalar = Math.max(rotatedCropSize.width / cropSize.width, rotatedCropSize.height / cropSize.height);\n // crop position in non-rotated image\n const cropCenter = vectorCreate(center.x * imageSize.width, center.y * imageSize.height);\n // get rotated image center\n const rotatedImageSize = getImageTransformedRect(imageSize, rotation);\n const rotatedImageCenter = sizeCenter(rotatedImageSize);\n const rotatedImageOffset = vectorCreate((rotatedImageSize.width - imageSize.width) * 0.5, (rotatedImageSize.height - imageSize.height) * 0.5);\n const cropPoints = rectRotate({\n x: rotatedImageOffset.x + cropCenter.x - (canvasSize.width / scalar) * 0.5,\n y: rotatedImageOffset.y + cropCenter.y - (canvasSize.height / scalar) * 0.5,\n width: canvasSize.width / scalar,\n height: canvasSize.height / scalar,\n }, rotation);\n const cropBoundsPoints = vectorsRotate(cropPoints.map(vectorClone), rotation, rotatedImageCenter.x, rotatedImageCenter.y);\n const cropBoundsPointsCenter = rectCenter(rectCreateFromPoints(cropBoundsPoints));\n const deRotatedCropBoundsPoints = vectorsRotate(cropBoundsPoints.map(vectorClone), -(rotation * 2), cropBoundsPointsCenter.x, cropBoundsPointsCenter.y);\n res.crop = rectCreateFromPoints(deRotatedCropBoundsPoints);\n }\n else if (zoom != null) {\n rectScale$1(res.crop, 1 / zoom);\n }\n if (!cropLimit) {\n res.cropLimitToImage = false;\n }\n return res;\n};\n//#endregion\nconst isLegacyData = (data = {}) => {\n if ('markup' in data || 'color' in data || 'filter' in data)\n return true;\n const { crop } = data;\n if (crop && ('flip' in crop || 'center' in crop || 'aspectRatio' in crop || 'rotation' in crop))\n return true;\n return false;\n};\nvar legacyDataToImageState = (editor, imageSize, data = {}) => {\n const res = {};\n // test if isn't legacy data\n if (!isLegacyData(data))\n return data;\n if (data.crop) {\n Object.assign(res, imagePropertiesFromLegacyCrop(imageSize, data.crop));\n }\n if (data.markup) {\n const markup = Array.isArray(data.markup) ? data.markup : Object.values(data.markup);\n res.decoration = markup.map((markup) => shapeFromLegacyMarkup(res.crop || imageSize, markup[0], markup[1]));\n }\n if (data.color || data.colors) {\n const colors = data.color || data.colors;\n Object.keys(colors)\n .filter((key) => colors[key])\n .map((key) => [\n key,\n Array.isArray(colors[key].matrix)\n ? colors[key].matrix\n : Object.values(colors[key].matrix),\n ])\n .forEach(([key, value]) => {\n if (!res.colorMatrix)\n res.colorMatrix = {};\n res.colorMatrix[key] = value;\n });\n }\n if (data.filter || data.filters) {\n const filter = data.filters || data.filter;\n if (!res.colorMatrix)\n res.colorMatrix = {};\n const filterFunctions = editor ? editor['filterFunctions'] : filterFunctionsDefault;\n res.colorMatrix.filter =\n typeof filter === 'string' && filterFunctions[filter]\n ? filterFunctions[filter]()\n : filter.matrix;\n }\n const resize = data.size ? data.size : data.resize ? data.resize.size : false;\n if (resize && resize.width && resize.height) {\n res.targetSize = {\n width: resize.width,\n height: resize.height,\n };\n }\n return res;\n};\n\nconst isOperaMini = () => Object.prototype.toString.call(window['operamini']) === '[object OperaMini]';\nconst hasPromises = () => 'Promise' in window;\nconst hasCreateObjectURL = () => 'URL' in window && 'createObjectURL' in window.URL;\nconst hasVisibility = () => 'visibilityState' in document;\nconst hasTiming = () => 'performance' in window; // iOS 8.x\nconst hasFileConstructor = () => 'File' in window; // excludes IE11\nlet result$1 = null;\nvar isModernBrowser = () => {\n if (result$1 === null)\n result$1 =\n isBrowser() &&\n // Can't run on Opera Mini due to lack of everything\n !isOperaMini() &&\n // Require these APIs to feature detect a modern browser\n hasVisibility() &&\n hasPromises() &&\n hasFileConstructor() &&\n hasCreateObjectURL() &&\n hasTiming();\n return result$1;\n};\n\nconst brightness = {\n base: 0,\n min: -0.25,\n max: 0.25,\n getLabel: (value) => toPercentageNumber(value / 0.25),\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.brightness)\n return;\n return store.brightness[4];\n },\n setValue: (store, v) => store.update((matrices) => ({\n // clone existing matrices\n ...matrices,\n // prettier-ignore\n brightness: [\n 1, 0, 0, 0, v,\n 0, 1, 0, 0, v,\n 0, 0, 1, 0, v,\n 0, 0, 0, 1, 0\n ],\n })),\n};\nconst contrast = {\n base: 1,\n min: 0.5,\n max: 1.5,\n getLabel: (value) => toPercentageNumber(-1 + (value - 0.5) * 2),\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.contrast)\n return;\n return store.contrast[0];\n },\n setValue: (store, v) => store.update((matrices) => ({\n // clone existing matrices\n ...matrices,\n // prettier-ignore\n contrast: [\n v, 0, 0, 0, .5 * (1 - v),\n 0, v, 0, 0, .5 * (1 - v),\n 0, 0, v, 0, .5 * (1 - v),\n 0, 0, 0, 1, 0\n ],\n })),\n};\nconst saturation = {\n base: 1,\n min: 0,\n max: 2,\n getLabel: (value) => toPercentageNumber(value - 1),\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.saturation)\n return;\n return (store.saturation[0] - 0.213) / 0.787;\n },\n setValue: (store, v) => store.update((matrices) => ({\n ...matrices,\n // prettier-ignore\n saturation: [\n .213 + .787 * v, .715 - .715 * v, .072 - .072 * v, 0, 0,\n .213 - .213 * v, .715 + .285 * v, .072 - .072 * v, 0, 0,\n .213 - .213 * v, .715 - .715 * v, .072 + .928 * v, 0, 0,\n 0, 0, 0, 1, 0\n ],\n })),\n};\nconst exposure = {\n base: 1,\n min: 0.5,\n max: 1.5,\n getLabel: (value) => toPercentageNumber(-1 + (value - 0.5) * 2),\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.exposure)\n return;\n return store.exposure[0];\n },\n setValue: (store, v) => store.update((matrices) => ({\n ...matrices,\n // prettier-ignore\n exposure: [\n v, 0, 0, 0, 0,\n 0, v, 0, 0, 0,\n 0, 0, v, 0, 0,\n 0, 0, 0, 1, 0\n ],\n })),\n};\nconst gamma = {\n base: 1,\n min: 0.15,\n max: 4,\n getLabel: (value) => {\n if (value < 1) {\n return toPercentageNumber((value - 0.15) / 0.85 - 1);\n }\n return toPercentageNumber((value - 1) / 3);\n },\n getStore: ({ imageGamma }) => imageGamma,\n};\nconst vignette = {\n base: 0,\n min: -1,\n max: 1,\n getStore: ({ imageVignette }) => imageVignette,\n};\nconst clarity = {\n base: 0,\n min: -1,\n max: 1,\n getStore: ({ imageConvolutionMatrix }) => imageConvolutionMatrix,\n getValue: (store) => {\n if (!store.clarity)\n return;\n if (store.clarity[0] === 0) {\n return store.clarity[1] / -1;\n }\n else {\n return store.clarity[1] / -2;\n }\n },\n setValue: (store, v) => {\n store.update((matrices) => ({\n ...matrices,\n // prettier-ignore\n clarity: v >= 0\n ? [0, -1 * v, 0,\n -1 * v, 1 + 4 * v, -1 * v,\n 0, -1 * v, 0\n ]\n : [-1 * v, -2 * v, -1 * v,\n -2 * v, 1 + -3 * v, -2 * v,\n -1 * v, -2 * v, -1 * v\n ],\n }));\n },\n};\nconst temperature = {\n base: 0,\n min: -1,\n max: 1,\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.temperature)\n return;\n const v = store.temperature[0];\n if (v >= 1) {\n return (v - 1) / 0.1;\n }\n return (1 - v) / -0.15;\n },\n setValue: (store, v) => store.update((matrices) => ({\n ...matrices,\n // prettier-ignore\n temperature: v > 0 ? [\n 1 + (v * .1), 0, 0, 0, 0,\n 0, 1, 0, 0, 0,\n 0, 0, 1 + (-v * .1), 0, 0,\n 0, 0, 0, 1, 0\n ] : [\n 1 + (v * .15), 0, 0, 0, 0,\n 0, 1 + (v * .05), 0, 0, 0,\n 0, 0, 1 + (-v * .15), 0, 0,\n 0, 0, 0, 1, 0\n ],\n })),\n};\nconst finetuneControlConfigurationDefault = {\n gamma,\n brightness,\n contrast,\n saturation,\n exposure,\n temperature,\n clarity,\n vignette,\n};\nconst finetuneOptionsDefault = [\n ['brightness', (locale) => locale.finetuneLabelBrightness],\n ['contrast', (locale) => locale.finetuneLabelContrast],\n ['saturation', (locale) => locale.finetuneLabelSaturation],\n ['exposure', (locale) => locale.finetuneLabelExposure],\n ['temperature', (locale) => locale.finetuneLabelTemperature],\n ['gamma', (locale) => locale.finetuneLabelGamma],\n !isSoftwareRendering() && ['clarity', (locale) => locale.finetuneLabelClarity],\n ['vignette', (locale) => locale.finetuneLabelVignette],\n].filter(Boolean);\nvar _plugin_finetune_defaults = {\n finetuneControlConfiguration: finetuneControlConfigurationDefault,\n finetuneOptions: finetuneOptionsDefault,\n};\n/*\nTODO: fix inverse fn in getValue\nexport const hue = {\n base: 0,\n min: 0,\n max: Math.PI,\n getStore: ({ imageColorMatrix }) => imageColorMatrix,\n getValue: (store) => {\n if (!store.hue) return;\n\n const v = store.hue[1];\n\n const o = -(Math.acos((0.715 - v) / Math.sqrt(2) / 0.715) - Math.PI / 4);\n\n return o;\n },\n setValue: (store, v: number) => {\n store.update((matrices) => {\n // const value = v * (Math.PI);\n\n const cos = Math.cos(v);\n const sin = Math.sin(v);\n\n const a00 = 0.213 + cos * 0.787 - sin * 0.213;\n const a01 = 0.715 - cos * 0.715 - sin * 0.715;\n const a02 = 0.072 - cos * 0.072 + sin * 0.928;\n const a10 = 0.213 - cos * 0.213 + sin * 0.143;\n const a11 = 0.715 + cos * 0.285 + sin * 0.14;\n const a12 = 0.072 - cos * 0.072 - sin * 0.283;\n const a20 = 0.213 - cos * 0.213 - sin * 0.787;\n const a21 = 0.715 - cos * 0.715 + sin * 0.715;\n const a22 = 0.072 + cos * 0.928 + sin * 0.072;\n\n return {\n ...matrices,\n\n // prettier-ignore\n hue: [\n a00, a01, a02, 0, 0,\n a10, a11, a12, 0, 0,\n a20, a21, a22, 0, 0,\n 0, 0, 0, 1, 0,\n ]\n };\n });\n },\n};\n*/\n\nconst solidSharp = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'solid',\n frameSize: '2.5%',\n },\n thumb: '<rect stroke-width=\"5\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\"/>',\n};\nconst solidRound = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'solid',\n frameSize: '2.5%',\n frameRound: true,\n },\n thumb: '<rect stroke-width=\"5\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" rx=\"12%\"/>',\n};\nconst lineSingle = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'line',\n frameInset: '2.5%',\n frameSize: '.3125%',\n frameRadius: 0,\n },\n thumb: '<div style=\"top:.5em;left:.5em;right:.5em;bottom:.5em;box-shadow:inset 0 0 0 1px currentColor\"></div>',\n};\nconst lineMultiple = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'line',\n frameAmount: 2,\n frameInset: '2.5%',\n frameSize: '.3125%',\n frameOffset: '1.25%',\n frameRadius: 0,\n },\n thumb: '<div style=\"top:.75em;left:.75em;right:.75em;bottom:.75em; outline: 3px double\"></div>',\n};\nconst edgeSeparate = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'edge',\n frameInset: '2.5%',\n frameOffset: '5%',\n frameSize: '.3125%',\n },\n thumb: '<div style=\"top:.75em;left:.5em;bottom:.75em;border-left:1px solid\"></div><div style=\"top:.75em;right:.5em;bottom:.75em;border-right:1px solid\"></div><div style=\"top:.5em;left:.75em;right:.75em;border-top:1px solid\"></div><div style=\"bottom:.5em;left:.75em;right:.75em;border-bottom:1px solid\"></div>',\n};\nconst edgeCross = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'edge',\n frameInset: '2.5%',\n frameSize: '.3125%',\n },\n thumb: '<div style=\"top:-.5em;left:.5em;right:.5em;bottom:-.5em; box-shadow: inset 0 0 0 1px currentColor\"></div><div style=\"top:.5em;left:-.5em;right:-.5em;bottom:.5em;box-shadow:inset 0 0 0 1px currentColor\"></div>',\n};\nconst edgeOverlap = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'edge',\n frameOffset: '1.5%',\n frameSize: '.3125%',\n },\n thumb: '<div style=\"top:.3125em;left:.5em;bottom:.3125em;border-left:1px solid\"></div><div style=\"top:.3125em;right:.5em;bottom:.3125em;border-right:1px solid\"></div><div style=\"top:.5em;left:.3125em;right:.3125em;border-top:1px solid\"></div><div style=\"bottom:.5em;left:.3125em;right:.3125em;border-bottom:1px solid\"></div>',\n};\nconst hook = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'hook',\n frameInset: '2.5%',\n frameSize: '.3125%',\n frameLength: '5%',\n },\n thumb: '<div style=\"top:.5em;left:.5em;width:.75em;height:.75em; border-left: 1px solid;border-top: 1px solid;\"></div><div style=\"top:.5em;right:.5em;width:.75em;height:.75em; border-right: 1px solid;border-top: 1px solid;\"></div><div style=\"bottom:.5em;left:.5em;width:.75em;height:.75em; border-left: 1px solid;border-bottom: 1px solid;\"></div><div style=\"bottom:.5em;right:.5em;width:.75em;height:.75em; border-right: 1px solid;border-bottom: 1px solid;\"></div>',\n};\nconst polaroid = {\n shape: {\n frameColor: [1, 1, 1],\n frameStyle: 'polaroid',\n },\n thumb: '<rect stroke-width=\"20%\" x=\"-5%\" y=\"-5%\" width=\"110%\" height=\"96%\"/>',\n};\nconst frameStylesDefault = {\n solidSharp,\n solidRound,\n lineSingle,\n lineMultiple,\n edgeSeparate,\n edgeCross,\n edgeOverlap,\n hook,\n polaroid,\n};\nconst frameOptionsDefault = [\n [undefined, (locale) => locale.labelNone],\n ['solidSharp', (locale) => locale.frameLabelMatSharp],\n ['solidRound', (locale) => locale.frameLabelMatRound],\n ['lineSingle', (locale) => locale.frameLabelLineSingle],\n ['lineMultiple', (locale) => locale.frameLabelLineMultiple],\n ['edgeCross', (locale) => locale.frameLabelEdgeCross],\n ['edgeSeparate', (locale) => locale.frameLabelEdgeSeparate],\n ['edgeOverlap', (locale) => locale.frameLabelEdgeOverlap],\n ['hook', (locale) => locale.frameLabelCornerHooks],\n ['polaroid', (locale) => locale.frameLabelPolaroid],\n];\nvar _plugin_frame_defaults = {\n frameStyles: frameStylesDefault,\n frameOptions: frameOptionsDefault,\n};\n\nvar upperCaseFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);\n\nlet result = null;\nvar canCheckFontAvailability = () => {\n if (result === null) {\n if (!isBrowser())\n result = false;\n else {\n try {\n // if browser can detect font as non existend then it supports font checking (only chrome)\n // @ts-ignore\n result = document.fonts.check('16px TestNonExistingFont') === false;\n }\n catch (err) {\n // if throws assume can't check\n result = false;\n }\n }\n }\n return result;\n};\n\nconst toLocaleFn = (key, localePrefix) => (locale) => locale[localePrefix ? `${localePrefix}${upperCaseFirstLetter(key)}` : key];\nconst mapToSizeOption = (v) => [v, `${v}`];\nconst createLocaleMapper = (options, localePrefix) => (key) => [options[key], toLocaleFn(key, localePrefix)];\nconst autoFormatNumberItems = (arr) => arr.map(mapToSizeOption);\nconst maybeAutoFormatNumberItems = (items) => {\n if (Array.isArray(items) && items.every(isNumber)) {\n return autoFormatNumberItems(items);\n }\n return items;\n};\nconst toolColorDefault = [1, 0.2549, 0.2118];\nconst toolStrokeWidthDefault = '0.5%';\nconst toolStrokeColorDefault = [1, 1, 1, 0];\n//#region selection\nconst SELECTION_TOOL_DEFAULTS = {\n brush: [\n 'path',\n {\n bitmap: true,\n drawMode: 'add',\n strokeWidth: '5%',\n // cursor is circle\n cursorStyle: 'ellipse',\n cursorSize: 'strokeWidth',\n // can't adjust color\n disableStyle: ['strokeColor'],\n // use brush size control\n settings: {\n strokeWidth: {\n control: 'brushSize',\n },\n },\n },\n ],\n lassoo: [\n 'path',\n {\n drawMode: 'add',\n disableStyle: ['strokeWidth', 'strokeColor'],\n pathClose: true,\n },\n ],\n rectangle: [\n 'rectangle',\n {\n disableStyle: ['backgroundColor', 'strokeWidth', 'strokeColor', 'cornerRadius'],\n drawMode: 'add',\n },\n ],\n ellipse: [\n 'ellipse',\n {\n disableStyle: ['backgroundColor', 'strokeWidth', 'strokeColor'],\n drawMode: 'add',\n },\n ],\n};\nconst SELECTION_TOOL_DEFAULT_LIST = ['brush', 'lassoo', 'rectangle', 'ellipse'];\nconst createSelectionToolStyles = (action, options) => {\n const { tools = SELECTION_TOOL_DEFAULT_LIST } = options || {};\n const res = tools.reduce((res, tool) => {\n const [shape, style] = SELECTION_TOOL_DEFAULTS[tool];\n const toolStyle = createToolStyle(shape, { ...style, action }, {\n position: 'absolute',\n isSelection: true,\n });\n return Object.assign(res, {\n [`selection-${tool}-${action}`]: toolStyle,\n });\n }, {});\n return res;\n};\nconst createSelectionTools = (action, options) => {\n const { tools = SELECTION_TOOL_DEFAULT_LIST, hideLabel = true } = options || {};\n return tools.map((tool) => {\n return [\n `selection-${tool}-${action}`,\n toLocaleFn(tool, 'shapeLabelToolSelection'),\n {\n hideLabel,\n icon: toLocaleFn(tool, 'shapeIconToolSelection'),\n },\n ];\n });\n};\nconst createSelectionModeControl = (options) => {\n const { hideLabel = true } = options || {};\n return createOptionControl(['new', 'add', 'subtract'].map((key) => [\n key,\n toLocaleFn(key, 'shapeLabelSelectionMode'),\n { icon: toLocaleFn(key, 'shapeIconSelectionMode'), hideLabel },\n ]), {\n title: (locale) => locale.shapeTitleSelectionMode,\n layout: 'radio',\n });\n};\nconst createBrushSizeControl = (items) => createStrokeWidthControl(items, {\n title: (locale) => locale.shapeTitleBrushSize,\n layout: 'radio',\n optionHideLabel: true,\n optionIcon: (_, fraction) => `<circle fill=\"currentColor\" stroke-width=\".05em\" stroke=\"currentColor\" fill-opacity=\".25\" cx=\"12\" cy=\"12\" r=\"${2 + fraction * 8}\"/>`,\n});\n//#endregion\n//#region tools\nconst toolShapeDefaults = {\n eraser: () => ({\n eraseRadius: 8,\n cursorStyle: 'ellipse',\n cursorSize: 'eraseRadius',\n }),\n path: () => ({\n points: [],\n }),\n line: () => ({\n x1: 0,\n y1: 0,\n x2: 0,\n y2: 0,\n disableErase: false,\n }),\n rectangle: () => ({\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n }),\n ellipse: () => ({\n x: 0,\n y: 0,\n rx: 0,\n ry: 0,\n }),\n text: () => ({\n x: 0,\n y: 0,\n text: 'Text',\n }),\n};\nconst createToolStyle = (type, shape = {}, options) => {\n if (!toolShapeDefaults[type])\n return;\n const { position = 'relative', inputMode = 'drag', isSelection = false } = options || {};\n const shapeDef = {\n ...toolShapeDefaults[type](),\n ...shape,\n };\n return [shapeDef, { position, inputMode, isSelection }];\n};\nconst createToolStyles = (tools) => ({\n sharpie: createToolStyle('path', {\n bitmap: true,\n strokeJoin: 'round',\n strokeCap: 'round',\n strokeWidth: toolStrokeWidthDefault,\n strokeColor: [...toolColorDefault],\n cursorStyle: 'ellipse',\n cursorSize: 'strokeWidth',\n disableErase: false,\n disableResize: true,\n disableMove: true,\n }),\n eraser: createToolStyle('eraser'),\n path: createToolStyle('path', {\n pathClose: undefined,\n strokeWidth: toolStrokeWidthDefault,\n strokeColor: [...toolColorDefault],\n backgroundColor: [0, 0, 0, 0],\n }, {\n inputMode: 'step',\n }),\n line: createToolStyle('line', {\n strokeColor: [...toolColorDefault],\n strokeWidth: toolStrokeWidthDefault,\n }),\n arrow: createToolStyle('line', {\n lineStart: 'none',\n lineEnd: 'arrow-solid',\n strokeColor: [...toolColorDefault],\n strokeWidth: toolStrokeWidthDefault,\n }),\n rectangle: createToolStyle('rectangle', {\n strokeColor: [...toolStrokeColorDefault],\n backgroundColor: [...toolColorDefault],\n }),\n ellipse: createToolStyle('ellipse', {\n strokeColor: [...toolStrokeColorDefault],\n backgroundColor: [...toolColorDefault],\n }),\n text: createToolStyle('text', {\n color: [...toolColorDefault],\n fontSize: '2%',\n }),\n ...tools,\n});\n//#endregion\n//#region toolbar\nconst createToolbarItem = (tool, label, props) => [\n tool,\n label || toLocaleFn(tool, 'shapeLabelTool'),\n {\n icon: toLocaleFn(tool, 'shapeIconTool'),\n ...props,\n },\n];\nconst createToolbar = (tools = [\n 'move',\n 'view',\n 'sharpie',\n 'eraser',\n 'path',\n 'line',\n 'arrow',\n 'rectangle',\n 'ellipse',\n 'text',\n 'preset',\n]) => tools\n .map((tool) => {\n // default tool definition, assume locale in\n if (isString(tool))\n return createToolbarItem(tool);\n // tool def with propery\n if (Array.isArray(tool)) {\n // state update of tool with key in locale object\n if (isObject(tool[1]))\n return createToolbarItem(tool[0], undefined, tool[1]);\n // should be string, string\n return createToolbarItem(tool[0], tool[1], tool[2]);\n }\n})\n .filter(Boolean);\n//#endregion\n//#region style option defaults\nconst createDefaultColorOptions = () => ({\n transparent: [1, 1, 1, 0],\n white: [1, 1, 1],\n silver: [0.8667, 0.8667, 0.8667],\n gray: [0.6667, 0.6667, 0.6667],\n black: [0, 0, 0],\n navy: [0, 0.1216, 0.2471],\n blue: [0, 0.4549, 0.851],\n aqua: [0.498, 0.8588, 1],\n teal: [0.2235, 0.8, 0.8],\n olive: [0.2392, 0.6, 0.4392],\n green: [0.1804, 0.8, 0.251],\n yellow: [1, 0.8627, 0],\n orange: [1, 0.5216, 0.1059],\n red: [1, 0.2549, 0.2118],\n maroon: [0.5216, 0.0784, 0.2941],\n fuchsia: [0.9412, 0.0706, 0.7451],\n purple: [0.6941, 0.051, 0.7882],\n});\nconst createDefaultFontSizeOptions = () => [\n 16, 18, 20, 24, 30, 36, 48, 64, 72, 96, 128, 144,\n];\nconst createDefaultLineHeightOptions = createDefaultFontSizeOptions;\nconst createDefaultFontScaleOptions = () => ({\n extraSmall: '2%',\n small: '4%',\n mediumSmall: '8%',\n medium: '10%',\n mediumLarge: '15%',\n large: '20%',\n extraLarge: '25%',\n});\nconst createDefaultLineHeightScaleOptions = () => ({\n extraSmall: '40%',\n small: '60%',\n mediumSmall: '100%',\n medium: '120%',\n mediumLarge: '140%',\n large: '180%',\n extraLarge: '220%',\n});\nconst createDefaultStrokeWidthOptions = () => [\n 1, 2, 3, 4, 6, 8, 12, 16, 20, 24, 32, 48, 64,\n];\nconst createDefaultStrokeScaleOptions = () => ({\n extraSmall: '0.25%',\n small: '0.5%',\n mediumSmall: '1%',\n medium: '1.75%',\n mediumLarge: '2.5%',\n large: '3.5%',\n extraLarge: '5%',\n});\nconst createDefaultLineEndStyleOptions = () => [\n 'bar',\n 'arrow',\n 'arrowSolid',\n 'circle',\n 'circleSolid',\n 'square',\n 'squareSolid',\n];\nconst createDefaultFontFamilyOptions = () => [\n [`Helvetica, Arial, Verdana, 'Droid Sans', sans-serif`, 'Sans Serif'],\n [`'Arial Black', 'Avenir-Black', 'Arial Bold'`, 'Black'],\n [`'Arial Narrow', 'Futura-CondensedMedium'`, 'Narrow'],\n [`'Trebuchet MS'`, 'Humanist'],\n [`Georgia, 'Avenir-Black', 'Times New Roman', 'Droid Serif', serif`, 'Serif'],\n [`Palatino`, 'Old-Style'],\n [`'Times New Roman', 'TimesNewRomanPSMT'`, 'Transitional'],\n [`Menlo, Monaco, 'Lucida Console', monospace`, 'Monospaced'],\n [`'Courier New', monospace`, 'Slab Serif'],\n];\nconst createDefaultTextAlignOptions = () => ['left', 'center', 'right'];\nconst createDefaultFontStyleOptions = () => [\n ['normal', 'bold'],\n ['italic', 'normal'],\n ['italic', 'bold'],\n];\n//#endregion\n//#region style options\nconst createColorOptions = (colors) => Object.keys(colors).map(createLocaleMapper(colors, 'shapeTitleColor'));\nconst createFontSizeOptions = (sizes) => sizes.map(mapToSizeOption);\nconst createFontScaleOptions = (scales) => Object.keys(scales).map(createLocaleMapper(scales, 'labelSize'));\nconst createLineHeightOptions = (sizes) => sizes.map(mapToSizeOption);\nconst createLineHeightScaleOptions = (scales) => Object.keys(scales).map(createLocaleMapper(scales, 'labelSize'));\nconst createStrokeWidthOptions = (sizes) => sizes.map(mapToSizeOption);\nconst createStrokeScaleOptions = (scales) => Object.keys(scales).map(createLocaleMapper(scales, 'labelSize'));\nconst createFontFamilyOptions = (fonts) => [...fonts];\nconst createFontStyleOptions = (styles) => styles.map((style) => [\n style,\n (locale) => locale[`shapeLabelFontStyle${style\n .filter((v) => v !== 'normal')\n .map(upperCaseFirstLetter)\n .join('')}`],\n]);\nconst createLineEndStyleOptions = (styles) => styles.map((style) => [\n toKebabCase(style),\n (locale) => locale[`shapeTitleLineDecoration${upperCaseFirstLetter(style)}`],\n { icon: (locale) => locale[`shapeIconLineDecoration${upperCaseFirstLetter(style)}`] },\n]);\nconst createTextAlignOptions = (options) => options.map((align) => [\n align,\n (locale) => locale[`shapeTitleTextAlign${upperCaseFirstLetter(align)}`],\n {\n hideLabel: true,\n icon: (locale) => locale[`shapeIconTextAlign${upperCaseFirstLetter(align)}`],\n },\n]);\nconst createControlOptions = (items, options) => {\n const { defaultKey, defaultValue, defaultOptions } = options || {};\n const arr = [];\n if (defaultKey)\n arr[0] = [defaultValue, (locale) => locale[defaultKey], { ...defaultOptions }];\n return [...arr, ...items];\n};\n//#endregion\n//#region shape style controls\nconst someFontsAvailableInStack = (stack) => stack\n .split(',')\n .map((name) => name.trim())\n .some((name) => {\n return document.fonts.check(`16px ${name}`);\n});\nconst createSliderControl = (options = {}) => [\n 'ToggleSlider',\n {\n ...options,\n },\n];\nconst createOptionsControl = (items, options = {}) => [\n 'Dropdown',\n { ...options, options: items },\n];\nconst FontTestClass = 'PinturaFontTest';\nconst createFontFamilyControl = (fontFamilies, options = { defaultKey: 'labelDefault' }) => [\n 'Dropdown',\n {\n title: (locale) => locale.shapeTitleFontFamily,\n onload: ({ options = [] }) => {\n // can't check for font availability so don't try\n if (!canCheckFontAvailability())\n return;\n options\n // map to font stack (option value)\n .map(([stack]) => stack)\n // filter out undefined\n .filter(Boolean)\n // filter out fonts that are available\n .filter((stack) => !someFontsAvailableInStack(stack))\n // remaining fonts should have dom elements for future check\n .forEach((stack) => {\n // get as id\n const testId = `${FontTestClass}-${stack\n .replace(/[^a-zA-Z0-9]+/g, '')\n .toLowerCase()}`;\n // already added this tester\n if (document.getElementById(testId))\n return;\n // add font tester, this triggers browser to download font\n document.body.append(h('span', {\n textContent: ' ',\n id: testId,\n class: FontTestClass,\n style: `font-family:${stack};font-size:0;color:transparent;`,\n }));\n });\n },\n ondestroy: () => {\n // can't check for font availability so no need to clean up\n if (!canCheckFontAvailability())\n return;\n // clean up testers\n const testers = document.querySelectorAll('.PinturaFontTest');\n testers.forEach((tester) => tester.remove());\n },\n optionLabelStyle: (value) => `font-family: ${value}`,\n options: createControlOptions(fontFamilies, options),\n optionFilter: (fontFamilyOption) => {\n // don't filter if not in browser context\n if (!canCheckFontAvailability())\n return true;\n // get font stack\n const [stack] = fontFamilyOption;\n // allow if undefined\n if (!stack)\n return true;\n // filter out fonts that aren't available\n const res = someFontsAvailableInStack(stack);\n return res;\n },\n },\n];\nconst createColorPickerControl = (items, options = {}) => [\n 'ColorPicker',\n {\n options: createControlOptions(items),\n ...options,\n },\n];\nconst createColorControl = (items, options = {}) => createColorPickerControl(items, {\n title: (locale) => locale.labelColor,\n ...options,\n});\nconst createBackgroundColorControl = (items, options = {}) => createColorPickerControl(items, {\n title: (locale) => locale.shapeTitleBackgroundColor,\n ...options,\n});\nconst createStrokeColorControl = (items, options = {}) => createColorPickerControl(items, {\n title: (locale) => locale.shapeTitleStrokeColor,\n options: createControlOptions(items),\n buttonClass: 'PinturaColorPickerButtonStroke',\n onchange: (value, shape) => {\n // get shape strokeWidth as number\n const strokeWidth = shape.strokeWidth;\n const strokeWidthParsed = isNumber(strokeWidth) || isString(strokeWidth) ? parseFloat(strokeWidth) : 0;\n // already has outline\n if (strokeWidthParsed > 0)\n return;\n // set outline to first stroke width\n shape.strokeWidth = (options && options.defaultStrokeWidth) || '0.5%';\n },\n ...options,\n});\nconst createStrokeWidthControl = (items, options) => {\n const { title, optionHideLabel: hideLabel = false, layout, optionIcon = false } = options || {};\n const formattedItems = maybeAutoFormatNumberItems(items);\n // get as numbers so we can correctly scale dynamic icons\n const itemsAsNumbers = items.map(([value]) => (isString(value) ? parseFloat(value) : value));\n const itemsMaxValue = Math.max(...itemsAsNumbers);\n const itemsMinValue = Math.min(...itemsAsNumbers);\n const itemsRange = itemsMaxValue - itemsMinValue;\n return [\n layout === 'radio' ? 'RadioGroup' : 'Dropdown',\n {\n title: title === false\n ? undefined\n : title\n ? title\n : (locale) => locale.shapeTitleStrokeWidth,\n options: (shape) => {\n const mappedItems = options\n ? formattedItems.map((item) => {\n // @ts-ignore\n const [value, label, itemOptions = {}] = item;\n const itemValue = isString(value) ? parseFloat(value) : value;\n const itemFraction = (itemValue - itemsMinValue) / itemsRange;\n let icon = undefined;\n if (optionIcon === 'line') {\n icon = `<path stroke=\"currentColor\" stroke-linecap=\"square\" stroke-width=\"${0.1 + itemFraction * 0.875}em\" d=\"M3,12 H20\"/>`;\n }\n else if (optionIcon === 'dot') {\n icon = `<circle fill=\"currentColor\" cx=\"12\" cy=\"12\" r=\"${2 + itemFraction * 8}\"/>`;\n }\n else if (isString(optionIcon)) {\n icon = optionIcon;\n }\n else if (isFunction(optionIcon)) {\n icon = optionIcon(itemValue, itemFraction);\n }\n return [\n value,\n label,\n {\n icon,\n hideLabel,\n ...itemOptions,\n },\n ];\n })\n : formattedItems;\n if (hasProp(shape, 'backgroundColor'))\n return createControlOptions(mappedItems, {\n defaultKey: 'shapeLabelStrokeNone',\n });\n return createControlOptions(mappedItems);\n },\n onchange: (value, shape) => {\n // no width selected\n if (!value)\n return;\n // get shape strokeColor\n const strokeColor = shape.strokeColor || [];\n // already has visible stroke color or has no stroke color\n if (strokeColor[3])\n return;\n // duplicate color and assign to shape\n const color = [...strokeColor];\n color[3] = 1;\n shape.strokeColor = color;\n },\n },\n ];\n};\nconst createOptionControl = (items, options) => {\n const { title, layout } = options || {};\n return [\n layout === 'radio' ? 'RadioGroup' : 'Dropdown',\n {\n title,\n options: createControlOptions(items),\n },\n ];\n};\nconst createLineControl = (items, titleKey, optionIconStyle) => [\n 'Dropdown',\n {\n title: (locale) => locale[titleKey],\n options: createControlOptions(items, {\n defaultKey: 'labelNone',\n defaultOptions: {\n icon: `<g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\".125em\"><path d=\"M5,12 H14\"/></g>`,\n },\n }),\n optionIconStyle,\n },\n];\nconst createLineStartStyleControl = (items) => createLineControl(items, 'shapeTitleLineStart', `transform: scaleX(-1)`);\nconst createLineEndStyleControl = (items) => createLineControl(items, 'shapeTitleLineEnd');\nconst createFontColorControl = (items) => createColorPickerControl(items, {\n title: (locale) => locale.shapeTitleTextColor,\n options: createControlOptions(items),\n});\nconst createFontStyleControl = (items) => [\n 'Dropdown',\n {\n title: (locale) => locale.shapeTitleFontStyle,\n optionLabelStyle: (value) => value && `font-style:${value[0]};font-weight:${value[1]}`,\n options: createControlOptions(items, {\n defaultKey: 'shapeLabelFontStyleNormal',\n }),\n },\n];\nconst createShorthandControl = (options) => ['ShorthandControl', options];\nconst createSizeControl = (items, title, defaultValue, options) => {\n if (!options && !items.find(([value]) => value === defaultValue)) {\n options = { defaultKey: 'labelAuto', defaultValue };\n }\n const formattedItems = maybeAutoFormatNumberItems(items);\n return [\n 'Dropdown',\n {\n title,\n options: createControlOptions(formattedItems, options),\n ...options,\n },\n ];\n};\nconst createFontSizeControl = (items, options) => {\n // TODO: remove percentage value from this control\n return createSizeControl(items, (locale) => locale.shapeTitleFontSize, '4%', options);\n};\nconst createLineHeightControl = (items, options) => \n// TODO: remove percentage value from this control\ncreateSizeControl(items, (locale) => locale.shapeTitleLineHeight, '120%', options);\nconst createTextAlignControl = (items) => [\n 'RadioGroup',\n {\n title: (locale) => locale.shapeTitleTextAlign,\n options: createControlOptions(items),\n },\n];\n// export const createSizeControl = (items: unknown[], title: string): [unknown, unknown] => [\n// 'Dropdown',\n// {\n// title,\n// options: (shape) => {\n// if (hasProp(shape, 'backgroundColor'))\n// return createControlOptions(items, {\n// defaultKey: 'shapeLabelStrokeNone',\n// });\n// return createControlOptions(items);\n// },\n// },\n// ];\n// these create default options\nconst DefaultShapeOptionFactories = {\n colorOptions: () => createColorOptions(createDefaultColorOptions()),\n lineEndStyleOptions: () => createLineEndStyleOptions(createDefaultLineEndStyleOptions()),\n fontFamilyOptions: () => createFontFamilyOptions(createDefaultFontFamilyOptions()),\n fontStyleOptions: () => createFontStyleOptions(createDefaultFontStyleOptions()),\n textAlignOptions: () => createTextAlignOptions(createDefaultTextAlignOptions()),\n strokeWidthOptions: () => createStrokeScaleOptions(createDefaultStrokeScaleOptions()),\n brushSizeOptions: () => createStrokeScaleOptions(Object.entries(createDefaultStrokeScaleOptions()).reduce((res, [key, value]) => {\n res[key] = `${parseFloat(value) * 2}%`;\n return res;\n }, {})),\n fontSizeOptions: () => createFontScaleOptions(createDefaultFontScaleOptions()),\n lineHeightOptions: () => createLineHeightScaleOptions(createDefaultLineHeightScaleOptions()),\n};\n// Outline / Shadow sliders\nconst sliderNumberFormatter = new Intl.NumberFormat('default', {\n minimumFractionDigits: 1,\n maximumFractionDigits: 1,\n});\nconst setSliderOptionalPercentageValue = (value, inputValue) => {\n return isString(inputValue) ? `${value}%` : value;\n};\nconst getSliderOptionalPercentageLabel = (value, _, max, inputValue) => {\n if (isString(inputValue)) {\n return `${Math.round((value / max) * 100)}%`;\n }\n return `${sliderNumberFormatter.format(value)}`;\n};\nconst TextShadowSliderOptions = {\n getValue: (value) => parseFloat(value),\n setValue: setSliderOptionalPercentageValue,\n label: getSliderOptionalPercentageLabel,\n step: 0.05,\n labelClass: 'PinturaPercentageLabel',\n};\nconst TextShadowControl = {\n factory: createShorthandControl,\n options: {\n title: 'Text shadow',\n controls: [\n [\n 'ToggleSlider',\n 'x',\n {\n ...TextShadowSliderOptions,\n min: -100,\n max: 100,\n labelPrefix: 'X',\n },\n ],\n [\n 'ToggleSlider',\n 'y',\n {\n ...TextShadowSliderOptions,\n min: -100,\n max: 100,\n labelPrefix: 'Y',\n },\n ],\n [\n 'ToggleSlider',\n 'blur',\n {\n ...TextShadowSliderOptions,\n min: 0,\n max: 25,\n labelPrefix: (locale) => locale.shapeTitleTextShadowBlur,\n },\n ],\n [\n 'ColorPicker',\n 'color',\n {\n enablePresets: false,\n },\n ],\n ],\n },\n};\nconst TextOutlineControl = {\n factory: createShorthandControl,\n options: {\n title: 'Text outline',\n controls: [\n [\n 'ToggleSlider',\n 'width',\n {\n getValue: (value) => parseFloat(value),\n setValue: setSliderOptionalPercentageValue,\n label: getSliderOptionalPercentageLabel,\n min: 0,\n max: 15,\n step: 0.05,\n labelClass: 'PinturaPercentageLabel',\n labelPrefix: (locale) => locale.shapeTitleTextOutlineWidth,\n },\n ],\n [\n 'ColorPicker',\n 'color',\n {\n enablePresets: false,\n },\n ],\n ],\n },\n};\nconst DefaultShapeControls = {\n defaultColor: {\n factory: createColorControl,\n items: 'colorOptions',\n },\n defaultNumber: { factory: createSliderControl },\n defaultPercentage: {\n factory: createSliderControl,\n options: {\n getValue: (value) => parseFloat(value),\n setValue: (value) => `${value}%`,\n step: 0.05,\n label: (value, min, max) => `${Math.round((value / max) * 100)}%`,\n labelClass: 'PinturaPercentageLabel',\n },\n },\n backgroundColor: {\n items: 'colorOptions',\n factory: createBackgroundColorControl,\n },\n strokeColor: {\n items: 'colorOptions',\n factory: createStrokeColorControl,\n },\n strokeWidth: {\n items: 'strokeWidthOptions',\n factory: createStrokeWidthControl,\n },\n brushSize: {\n items: 'brushSizeOptions',\n factory: createBrushSizeControl,\n },\n drawMode: {\n factory: createSelectionModeControl,\n },\n lineStart: {\n items: 'lineEndStyleOptions',\n factory: createLineStartStyleControl,\n },\n lineEnd: {\n items: 'lineEndStyleOptions',\n factory: createLineEndStyleControl,\n },\n color: {\n items: 'colorOptions',\n factory: createFontColorControl,\n },\n fontFamily: {\n items: 'fontFamilyOptions',\n factory: createFontFamilyControl,\n },\n fontStyle_fontWeight: {\n items: 'fontStyleOptions',\n factory: createFontStyleControl,\n },\n fontSize: {\n items: 'fontSizeOptions',\n factory: createFontSizeControl,\n },\n lineHeight: {\n items: 'lineHeightOptions',\n factory: createLineHeightControl,\n },\n textAlign: {\n items: 'textAlignOptions',\n factory: createTextAlignControl,\n },\n textShadowX_textShadowY_textShadowBlur_textShadowColor: TextShadowControl,\n textOutlineWidth_textOutlineColor: TextOutlineControl,\n cornerRadius: {\n factory: 'defaultPercentage',\n options: {\n min: 0,\n max: 50,\n title: (locale) => locale.shapeTitleCornerRadius,\n },\n },\n frameColor: {\n factory: 'defaultColor',\n },\n frameSize: {\n factory: 'defaultPercentage',\n options: {\n min: 0.2,\n max: 10,\n title: (locale) => locale.labelSize,\n },\n },\n frameInset: {\n factory: 'defaultPercentage',\n options: { min: 0.5, max: 10, title: (locale) => locale.labelOffset },\n },\n frameOffset: {\n factory: 'defaultPercentage',\n options: { min: 0.5, max: 10, title: (locale) => locale.labelOffset },\n },\n frameRadius: {\n factory: 'defaultPercentage',\n options: { min: 0.5, max: 10, title: (locale) => locale.labelRadius },\n },\n frameAmount: {\n factory: 'defaultNumber',\n options: { min: 1, max: 5, step: 1, title: (locale) => locale.labelAmount },\n },\n};\nconst createShapeStyleControls = (options = {}) => {\n // default controls\n const input = {\n ...DefaultShapeControls,\n ...options,\n };\n // resulting controls\n const output = {};\n // assign custom entries (eraseRadius), maybe expand in future to assign all items this way\n Object.entries(input).forEach(([key, value]) => {\n // skip options shorthand\n if (/Options$/.test(key))\n return;\n // is control\n if (DefaultShapeControls[key] && isObject(value) && !isArray(value)) {\n const { component, factory, items, options = {} } = input[key];\n // this is a reference to another component\n if (isString(factory)) {\n output[key] = [factory, options];\n }\n // this is a factory or custom component\n else {\n // get default items key\n const defaultItems = DefaultShapeControls[key].items;\n let factoryItems = isString(defaultItems)\n ? input[defaultItems] || DefaultShapeOptionFactories[defaultItems]()\n : undefined;\n if (isString(items) && DefaultShapeOptionFactories[items]) {\n if (input[items]) {\n if (input[items].every((item) => !Array.isArray(item))) {\n factoryItems = input[items].map((item) => [item, item]);\n }\n else {\n factoryItems = input[items];\n }\n }\n else {\n factoryItems = DefaultShapeOptionFactories[items]();\n }\n }\n // else override with custom items\n else if (items || options.items) {\n factoryItems = items || options.items;\n }\n // fallback to default factory if not supplied\n let factoryFn = factory || DefaultShapeControls[key].factory;\n // is default factory\n if (isFunction(factoryFn)) {\n output[key] = factoryItems\n ? factoryFn(factoryItems, options)\n : factoryFn(options);\n }\n // use custom component\n else if (component) {\n output[key] = [\n component,\n {\n ...options,\n items,\n },\n ];\n }\n }\n }\n else {\n output[key] = value;\n }\n });\n return output;\n};\n//#endregion\n\n/* src/core/ui/components/Toolbar.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$s(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[7].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div0, \"class\", \"PinturaToolbarInner\");\n\t\t\tattr(div1, \"class\", \"PinturaToolbar\");\n\t\t\tattr(div1, \"data-layout\", /*layout*/ ctx[1]);\n\t\t\tattr(div1, \"data-overflow\", /*overflow*/ ctx[0]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div0, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"measure\", /*handleChildResizeEvent*/ ctx[3]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div0)),\n\t\t\t\t\tlisten(div1, \"measure\", /*handleParentResizeEvent*/ ctx[2]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div1))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 64)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[6],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[6])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[6], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*layout*/ 2) {\n\t\t\t\tattr(div1, \"data-layout\", /*layout*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*overflow*/ 1) {\n\t\t\t\tattr(div1, \"data-overflow\", /*overflow*/ ctx[0]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$s($$self, $$props, $$invalidate) {\n\tlet layout;\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet childWidth = 0;\n\tlet childMaxWidth = 0;\n\tlet parentWidth = 0;\n\tlet overflow;\n\n\tconst testOverflow = () => {\n\t\t$$invalidate(0, overflow = layout === 'compact' && childWidth > parentWidth\n\t\t? 'overflow'\n\t\t: undefined);\n\t};\n\n\tconst handleParentResizeEvent = ({ detail }) => {\n\t\tconst { width } = detail;\n\t\t$$invalidate(5, parentWidth = width);\n\t\ttestOverflow();\n\t};\n\n\tconst handleChildResizeEvent = ({ detail }) => {\n\t\tconst { width } = detail;\n\n\t\tif (width > childMaxWidth) {\n\t\t\t$$invalidate(4, childMaxWidth = width);\n\t\t}\n\n\t\tchildWidth = width;\n\t\tif (!overflow) testOverflow();\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('$$scope' in $$props) $$invalidate(6, $$scope = $$props.$$scope);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*childMaxWidth, parentWidth*/ 48) {\n\t\t\t$$invalidate(1, layout = childMaxWidth > parentWidth ? 'compact' : 'default');\n\t\t}\n\t};\n\n\treturn [\n\t\toverflow,\n\t\tlayout,\n\t\thandleParentResizeEvent,\n\t\thandleChildResizeEvent,\n\t\tchildMaxWidth,\n\t\tparentWidth,\n\t\t$$scope,\n\t\tslots\n\t];\n}\n\nclass Toolbar extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$s, create_fragment$s, safe_not_equal, {});\n\t}\n}\n\n/* src/core/ui/components/Measure.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$r(ctx) {\n\tlet div;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tconst default_slot_template = /*#slots*/ ctx[5].default;\n\tconst default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (default_slot) default_slot.c();\n\t\t\tattr(div, \"class\", /*klass*/ ctx[0]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (default_slot) {\n\t\t\t\tdefault_slot.m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"measure\", function () {\n\t\t\t\t\t\tif (is_function(/*didMount*/ ctx[1] && /*handleResize*/ ctx[3])) (/*didMount*/ ctx[1] && /*handleResize*/ ctx[3]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(/*measurable*/ ctx[2].call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, [dirty]) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (default_slot) {\n\t\t\t\tif (default_slot.p && (!current || dirty & /*$$scope*/ 16)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tdefault_slot,\n\t\t\t\t\t\tdefault_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[4],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[4])\n\t\t\t\t\t\t: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null),\n\t\t\t\t\t\tnull\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*klass*/ 1) {\n\t\t\t\tattr(div, \"class\", /*klass*/ ctx[0]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(default_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(default_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (default_slot) default_slot.d(detaching);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$r($$self, $$props, $$invalidate) {\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tconst dispatch = createEventDispatcher();\n\tlet { class: klass = null } = $$props;\n\n\t// context\n\tconst measurable = getContext('measurable');\n\n\tlet didMount = false;\n\tconst handleResize = ({ detail }) => dispatch('measure', detail);\n\tonMount(() => $$invalidate(1, didMount = true));\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('$$scope' in $$props) $$invalidate(4, $$scope = $$props.$$scope);\n\t};\n\n\treturn [klass, didMount, measurable, handleResize, $$scope, slots];\n}\n\nclass Measure extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$r, create_fragment$r, safe_not_equal, { class: 0 });\n\t}\n}\n\n/* src/core/ui/components/Util.svelte generated by Svelte v3.52.0 */\nconst get_footer_slot_changes = dirty => ({});\nconst get_footer_slot_context = ctx => ({});\nconst get_main_slot_changes = dirty => ({});\nconst get_main_slot_context = ctx => ({});\nconst get_header_slot_changes = dirty => ({});\nconst get_header_slot_context = ctx => ({});\n\n// (10:0) {#if hasHeader}\nfunction create_if_block_2$4(ctx) {\n\tlet div;\n\tlet current;\n\tconst header_slot_template = /*#slots*/ ctx[4].header;\n\tconst header_slot = create_slot(header_slot_template, ctx, /*$$scope*/ ctx[3], get_header_slot_context);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (header_slot) header_slot.c();\n\t\t\tattr(div, \"class\", \"PinturaUtilHeader\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (header_slot) {\n\t\t\t\theader_slot.m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (header_slot) {\n\t\t\t\tif (header_slot.p && (!current || dirty & /*$$scope*/ 8)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\theader_slot,\n\t\t\t\t\t\theader_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[3],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[3])\n\t\t\t\t\t\t: get_slot_changes(header_slot_template, /*$$scope*/ ctx[3], dirty, get_header_slot_changes),\n\t\t\t\t\t\tget_header_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(header_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(header_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (header_slot) header_slot.d(detaching);\n\t\t}\n\t};\n}\n\n// (17:22) <Measure class=\"PinturaStage\" on:measure />\nfunction fallback_block(ctx) {\n\tlet measure;\n\tlet current;\n\tmeasure = new Measure({ props: { class: \"PinturaStage\" } });\n\tmeasure.$on(\"measure\", /*measure_handler*/ ctx[5]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(measure.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(measure, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp: noop,\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(measure.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(measure.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(measure, detaching);\n\t\t}\n\t};\n}\n\n// (20:0) {#if hasFooter}\nfunction create_if_block_1$5(ctx) {\n\tlet div;\n\tlet current;\n\tconst footer_slot_template = /*#slots*/ ctx[4].footer;\n\tconst footer_slot = create_slot(footer_slot_template, ctx, /*$$scope*/ ctx[3], get_footer_slot_context);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (footer_slot) footer_slot.c();\n\t\t\tattr(div, \"class\", \"PinturaUtilFooter\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (footer_slot) {\n\t\t\t\tfooter_slot.m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (footer_slot) {\n\t\t\t\tif (footer_slot.p && (!current || dirty & /*$$scope*/ 8)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tfooter_slot,\n\t\t\t\t\t\tfooter_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[3],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[3])\n\t\t\t\t\t\t: get_slot_changes(footer_slot_template, /*$$scope*/ ctx[3], dirty, get_footer_slot_changes),\n\t\t\t\t\t\tget_footer_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(footer_slot, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(footer_slot, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (footer_slot) footer_slot.d(detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$q(ctx) {\n\tlet t0;\n\tlet div;\n\tlet t1;\n\tlet t2;\n\tlet if_block2_anchor;\n\tlet current;\n\tlet if_block0 = /*hasHeader*/ ctx[1] && create_if_block_2$4(ctx);\n\tconst main_slot_template = /*#slots*/ ctx[4].main;\n\tconst main_slot = create_slot(main_slot_template, ctx, /*$$scope*/ ctx[3], get_main_slot_context);\n\tconst main_slot_or_fallback = main_slot || fallback_block(ctx);\n\tlet if_block1 = /*hasFooter*/ ctx[2] && create_if_block_1$5(ctx);\n\tlet if_block2 = false ;\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tdiv = element(\"div\");\n\t\t\tif (main_slot_or_fallback) main_slot_or_fallback.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt2 = space();\n\t\t\tif_block2_anchor = empty();\n\t\t\tattr(div, \"class\", \"PinturaUtilMain\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t0, anchor);\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (main_slot_or_fallback) {\n\t\t\t\tmain_slot_or_fallback.m(div, null);\n\t\t\t}\n\n\t\t\t/*div_binding*/ ctx[6](div);\n\t\t\tinsert(target, t1, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, t2, anchor);\n\t\t\tinsert(target, if_block2_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (/*hasHeader*/ ctx[1]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*hasHeader*/ 2) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_2$4(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t0.parentNode, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (main_slot) {\n\t\t\t\tif (main_slot.p && (!current || dirty & /*$$scope*/ 8)) {\n\t\t\t\t\tupdate_slot_base(\n\t\t\t\t\t\tmain_slot,\n\t\t\t\t\t\tmain_slot_template,\n\t\t\t\t\t\tctx,\n\t\t\t\t\t\t/*$$scope*/ ctx[3],\n\t\t\t\t\t\t!current\n\t\t\t\t\t\t? get_all_dirty_from_scope(/*$$scope*/ ctx[3])\n\t\t\t\t\t\t: get_slot_changes(main_slot_template, /*$$scope*/ ctx[3], dirty, get_main_slot_changes),\n\t\t\t\t\t\tget_main_slot_context\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (/*hasFooter*/ ctx[2]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*hasFooter*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1$5(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(t2.parentNode, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(main_slot_or_fallback, local);\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(main_slot_or_fallback, local);\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t0);\n\t\t\tif (detaching) detach(div);\n\t\t\tif (main_slot_or_fallback) main_slot_or_fallback.d(detaching);\n\t\t\t/*div_binding*/ ctx[6](null);\n\t\t\tif (detaching) detach(t1);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(t2);\n\t\t\tif (detaching) detach(if_block2_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$q($$self, $$props, $$invalidate) {\n\tlet { $$slots: slots = {}, $$scope } = $$props;\n\tlet { hasHeader = !!$$props.$$slots.header } = $$props;\n\tlet { hasFooter = !!$$props.$$slots.footer } = $$props;\n\tlet { root = undefined } = $$props;\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(0, root);\n\t\t});\n\t}\n\n\t$$self.$$set = $$new_props => {\n\t\t$$invalidate(7, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));\n\t\tif ('hasHeader' in $$new_props) $$invalidate(1, hasHeader = $$new_props.hasHeader);\n\t\tif ('hasFooter' in $$new_props) $$invalidate(2, hasFooter = $$new_props.hasFooter);\n\t\tif ('root' in $$new_props) $$invalidate(0, root = $$new_props.root);\n\t\tif ('$$scope' in $$new_props) $$invalidate(3, $$scope = $$new_props.$$scope);\n\t};\n\n\t$$props = exclude_internal_props($$props);\n\treturn [root, hasHeader, hasFooter, $$scope, slots, measure_handler, div_binding];\n}\n\nclass Util extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$q, create_fragment$q, safe_not_equal, { hasHeader: 1, hasFooter: 2, root: 0 });\n\t}\n}\n\n/* src/core/ui/components/RangeInput.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block$8(ctx) {\n\tlet div;\n\tlet div_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", \"PinturaRangeInputMeter\");\n\t\t\tattr(div, \"style\", div_style_value = `transform: translateX(${/*$position*/ ctx[9].x - /*svgPadding*/ ctx[11].x}px) translateY(${/*$position*/ ctx[9].y - /*svgPadding*/ ctx[11].y}px)`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tdiv.innerHTML = /*svg*/ ctx[7];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*svg*/ 128) div.innerHTML = /*svg*/ ctx[7];\n\t\t\tif (dirty[0] & /*$position*/ 512 && div_style_value !== (div_style_value = `transform: translateX(${/*$position*/ ctx[9].x - /*svgPadding*/ ctx[11].x}px) translateY(${/*$position*/ ctx[9].y - /*svgPadding*/ ctx[11].y}px)`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction create_fragment$p(ctx) {\n\tlet div1;\n\tlet span;\n\tlet t0;\n\tlet button;\n\tlet t1;\n\tlet button_disabled_value;\n\tlet t2;\n\tlet div0;\n\tlet interactable_action;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = /*$position*/ ctx[9] && create_if_block$8(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tspan = element(\"span\");\n\t\t\tt0 = space();\n\t\t\tbutton = element(\"button\");\n\t\t\tt1 = text(/*labelReset*/ ctx[1]);\n\t\t\tt2 = space();\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(span, \"class\", \"PinturaRangeInputValue\");\n\t\t\tattr(button, \"class\", \"PinturaRangeInputReset\");\n\t\t\tattr(button, \"type\", \"button\");\n\t\t\tbutton.disabled = button_disabled_value = /*value*/ ctx[0] === /*base*/ ctx[2];\n\t\t\tattr(div0, \"class\", \"PinturaRangeInputInner\");\n\t\t\tattr(div0, \"style\", /*rangeMask*/ ctx[8]);\n\t\t\tattr(div0, \"data-value-limited\", /*isLimited*/ ctx[5]);\n\t\t\tattr(div1, \"class\", \"PinturaRangeInput\");\n\t\t\tattr(div1, \"tabindex\", \"0\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, span);\n\t\t\tspan.innerHTML = /*valueLabel*/ ctx[3];\n\t\t\tappend(div1, t0);\n\t\t\tappend(div1, button);\n\t\t\tappend(button, t1);\n\t\t\tappend(div1, t2);\n\t\t\tappend(div1, div0);\n\t\t\tif (if_block) if_block.m(div0, null);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(button, \"click\", /*handleReset*/ ctx[16]),\n\t\t\t\t\tlisten(div0, \"interactionstart\", /*handleDragStart*/ ctx[12]),\n\t\t\t\t\tlisten(div0, \"interactionupdate\", /*handleDragMove*/ ctx[14]),\n\t\t\t\t\tlisten(div0, \"interactionend\", /*handleDragEnd*/ ctx[15]),\n\t\t\t\t\tlisten(div0, \"interactionrelease\", /*handleDragRelease*/ ctx[13]),\n\t\t\t\t\taction_destroyer(interactable_action = interactable.call(null, div0, { inertia: /*$isAnimated*/ ctx[6] })),\n\t\t\t\t\tlisten(div0, \"measure\", /*measure_handler*/ ctx[36]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div0)),\n\t\t\t\t\tlisten(div1, \"wheel\", /*handleWheel*/ ctx[18], { passive: false }),\n\t\t\t\t\tlisten(div1, \"nudge\", /*handleNudge*/ ctx[19]),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div1, {\n\t\t\t\t\t\tdirection: 'horizontal',\n\t\t\t\t\t\tpreventDefault: true\n\t\t\t\t\t}))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*valueLabel*/ 8) span.innerHTML = /*valueLabel*/ ctx[3];\t\t\tif (dirty[0] & /*labelReset*/ 2) set_data(t1, /*labelReset*/ ctx[1]);\n\n\t\t\tif (dirty[0] & /*value, base*/ 5 && button_disabled_value !== (button_disabled_value = /*value*/ ctx[0] === /*base*/ ctx[2])) {\n\t\t\t\tbutton.disabled = button_disabled_value;\n\t\t\t}\n\n\t\t\tif (/*$position*/ ctx[9]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$8(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(div0, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*rangeMask*/ 256) {\n\t\t\t\tattr(div0, \"style\", /*rangeMask*/ ctx[8]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*isLimited*/ 32) {\n\t\t\t\tattr(div0, \"data-value-limited\", /*isLimited*/ ctx[5]);\n\t\t\t}\n\n\t\t\tif (interactable_action && is_function(interactable_action.update) && dirty[0] & /*$isAnimated*/ 64) interactable_action.update.call(null, { inertia: /*$isAnimated*/ ctx[6] });\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (if_block) if_block.d();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst radiusBig = 2; // 2\nconst radiusSmall = 0.75; // .75\nconst indicatorSpacing = 10;\nconst indicatorInterval = 5;\nconst indicatorCount = 40; // must be even\n\nfunction instance$p($$self, $$props, $$invalidate) {\n\tlet range;\n\tlet valueMinLimited;\n\tlet valueMaxLimited;\n\tlet barSize;\n\tlet baseFraction;\n\tlet isLimited;\n\tlet rangeMask;\n\tlet $isAnimated;\n\tlet $position;\n\tlet { labelReset = 'Reset' } = $$props;\n\tlet { direction = 'x' } = $$props;\n\tlet { min = 0 } = $$props;\n\tlet { max = 1 } = $$props;\n\tlet { base = min } = $$props;\n\tlet { value = 0 } = $$props;\n\tlet { valueLabel = 0 } = $$props;\n\tlet { valueMin = undefined } = $$props;\n\tlet { valueMax = undefined } = $$props;\n\tlet { oninputstart = noop$1 } = $$props;\n\tlet { oninputmove = noop$1 } = $$props;\n\tlet { oninputend = noop$1 } = $$props;\n\tlet { elasticity = 0 } = $$props;\n\tlet { nudgeMultiplier = undefined } = $$props;\n\tlet { step = 8 } = $$props;\n\n\t//\n\t// context\n\t//\n\tconst isAnimated = getContext('isAnimated');\n\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(6, $isAnimated = value));\n\tconst round = (number, increment, offset) => Math.ceil((number - offset) / increment) * increment + offset;\n\tlet size;\n\tlet svg;\n\tlet svgSize;\n\tconst svgPadding = { x: 2, y: 0 };\n\tconst createPathCircle = (cx, cy, r) => `M ${cx - r} ${cy} a ${r} ${r} 0 1 0 0 -1`;\n\n\tfunction getMask(limitedMin, limitedMax) {\n\t\tconst step = 1 / indicatorCount;\n\t\tconst from = toFraction(limitedMin, min, max);\n\t\tconst to = toFraction(limitedMax, min, max);\n\t\tconst fromSnapped = fixPrecision(round(from, step, 0) - step * 0.5);\n\t\tconst toSnapped = fixPrecision(round(to, step, 0) - step * 0.5);\n\t\treturn `--range-mask-from:${fromSnapped * 100}%;--range-mask-to:${toSnapped * 100}%`;\n\t}\n\n\t//\n\t// Dragging related\n\t//\n\tlet interactionOrigin = undefined;\n\n\tlet interactionReleased = false;\n\tlet interactionRange;\n\tlet interactionOptions = { snap: false, elastic: false };\n\n\tconst handleDragStart = () => {\n\t\tinteractionReleased = false;\n\t\tinteractionOrigin = get_store_value(position);\n\n\t\tinteractionRange = [\n\t\t\tvalueToPosition(valueMin != null ? valueMin : min, direction),\n\t\t\tvalueToPosition(valueMax != null ? valueMax : max, direction)\n\t\t];\n\n\t\toninputstart();\n\t};\n\n\tconst handleDragRelease = () => {\n\t\tinteractionReleased = true;\n\t};\n\n\tconst handleDragMove = ({ detail }) => {\n\t\tinteractionOptions.snap = !interactionReleased;\n\t\tinteractionOptions.elastic = !interactionReleased;\n\t\ttranslatePosition(interactionOrigin, detail.translation, interactionOptions);\n\t};\n\n\tconst handleDragEnd = ({ detail }) => {\n\t\tinteractionOptions.snap = false;\n\t\tinteractionOptions.elastic = false;\n\t\tconst valueAtPosition = translatePosition(interactionOrigin, detail.translation, interactionOptions);\n\t\tinteractionOrigin = undefined;\n\t\tinteractionRange = undefined;\n\n\t\t// if is near base position, set to base\n\t\tif (Math.abs(valueAtPosition - base) < 0.01) return oninputend(base);\n\n\t\toninputend(valueAtPosition);\n\t};\n\n\tconst translatePosition = (origin, translation, options) => {\n\t\tconst target = origin[direction] + translation[direction];\n\t\tconst targetLimited = clamp(target, interactionRange[1][direction], interactionRange[0][direction]);\n\n\t\tconst targetElastic = elasticity\n\t\t? targetLimited + elastify(target - targetLimited, elasticity)\n\t\t: targetLimited;\n\n\t\tconst targetVisual = options.elastic ? targetElastic : targetLimited;\n\n\t\t// set position\n\t\tconst targetValid = vectorCreate(0, 0);\n\n\t\ttargetValid[direction] = targetVisual;\n\t\tposition.set(targetValid, { hard: options.snap });\n\t\treturn clamp(positionToValue(targetValid, direction), min, max);\n\t};\n\n\tconst handleReset = () => {\n\t\t$$invalidate(0, value = clamp(base, valueMinLimited, valueMaxLimited));\n\t\toninputstart();\n\t\toninputend(value);\n\t};\n\n\t//\n\t// Meter position and value updates\n\t//\n\tconst position = spring();\n\n\tcomponent_subscribe($$self, position, value => $$invalidate(9, $position = value));\n\n\tconst valueToPosition = (value, axis) => {\n\t\tconst offset = (size[axis] - barSize[axis]) * 0.5;\n\t\tconst fraction = toFraction(value, min, max);\n\t\tconst v = fraction * barSize[axis] - barSize[axis] * 0.5;\n\t\tconst pos = offset - v;\n\n\t\treturn {\n\t\t\tx: axis === 'x' ? pos : 0,\n\t\t\ty: axis === 'y' ? pos : 0\n\t\t};\n\t};\n\n\tconst positionToValue = (position, axis) => {\n\t\tconst dist = position[axis] - size[axis] * 0.5;\n\t\tconst fraction = -(dist / barSize[axis]);\n\t\treturn min + fraction * range;\n\t};\n\n\tconst positionUnsub = position.subscribe(currentPosition => {\n\t\t// if not positioned yet or is not interacting we're not interested in this event\n\t\tif (!currentPosition || !interactionOrigin) return;\n\n\t\toninputmove(clamp(positionToValue(currentPosition, direction), min, max));\n\t});\n\n\tconst updatePosition = value => {\n\t\tconst interactionRange = [\n\t\t\tvalueToPosition(valueMin != null ? valueMin : min, direction),\n\t\t\tvalueToPosition(valueMax != null ? valueMax : max, direction)\n\t\t];\n\n\t\tconst target = {\n\t\t\tx: direction === 'x' ? $position.x + value : 0,\n\t\t\ty: direction === 'y' ? $position.y + value : 0\n\t\t};\n\n\t\tconst targetLimited = clamp(target[direction], interactionRange[1][direction], interactionRange[0][direction]);\n\t\tconst positionTarget = { ...$position, [direction]: targetLimited };\n\t\tset_store_value(position, $position = positionTarget, $position);\n\t\tconst result = clamp(positionToValue(positionTarget, direction), min, max);\n\t\toninputstart();\n\t\toninputmove(result);\n\t\toninputend(result);\n\t};\n\n\tconst handleWheel = e => {\n\t\t// don't run default actions, prevent other actions from running\n\t\te.preventDefault();\n\n\t\te.stopPropagation();\n\n\t\t// apply wheel delta to offset\n\t\tconst delta = getWheelDelta(e) * step;\n\n\t\tupdatePosition(delta);\n\t};\n\n\tconst handleNudge = ({ detail }) => {\n\t\tupdatePosition(detail[direction] * Math.abs(nudgeMultiplier || 8));\n\t};\n\n\tonDestroy(() => {\n\t\tpositionUnsub();\n\t});\n\n\tconst measure_handler = e => $$invalidate(4, size = vectorCreateFromSize(e.detail));\n\n\t$$self.$$set = $$props => {\n\t\tif ('labelReset' in $$props) $$invalidate(1, labelReset = $$props.labelReset);\n\t\tif ('direction' in $$props) $$invalidate(20, direction = $$props.direction);\n\t\tif ('min' in $$props) $$invalidate(21, min = $$props.min);\n\t\tif ('max' in $$props) $$invalidate(22, max = $$props.max);\n\t\tif ('base' in $$props) $$invalidate(2, base = $$props.base);\n\t\tif ('value' in $$props) $$invalidate(0, value = $$props.value);\n\t\tif ('valueLabel' in $$props) $$invalidate(3, valueLabel = $$props.valueLabel);\n\t\tif ('valueMin' in $$props) $$invalidate(23, valueMin = $$props.valueMin);\n\t\tif ('valueMax' in $$props) $$invalidate(24, valueMax = $$props.valueMax);\n\t\tif ('oninputstart' in $$props) $$invalidate(25, oninputstart = $$props.oninputstart);\n\t\tif ('oninputmove' in $$props) $$invalidate(26, oninputmove = $$props.oninputmove);\n\t\tif ('oninputend' in $$props) $$invalidate(27, oninputend = $$props.oninputend);\n\t\tif ('elasticity' in $$props) $$invalidate(28, elasticity = $$props.elasticity);\n\t\tif ('nudgeMultiplier' in $$props) $$invalidate(29, nudgeMultiplier = $$props.nudgeMultiplier);\n\t\tif ('step' in $$props) $$invalidate(30, step = $$props.step);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*max, min*/ 6291456) {\n\t\t\t//\n\t\t\t// derived\n\t\t\t//\n\t\t\t$$invalidate(32, range = max - min);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*valueMin, min*/ 10485760) {\n\t\t\t$$invalidate(34, valueMinLimited = valueMin != null ? Math.max(valueMin, min) : min);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*valueMax, max*/ 20971520) {\n\t\t\t$$invalidate(33, valueMaxLimited = valueMax != null ? Math.min(valueMax, max) : max);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*base, min, max*/ 6291460) {\n\t\t\t$$invalidate(35, baseFraction = toFraction(base, min, max));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*size*/ 16 | $$self.$$.dirty[1] & /*baseFraction*/ 16) {\n\t\t\tif (size) {\n\t\t\t\tconst centerY = size.y * 0.5;\n\t\t\t\tlet indicatorCenter = indicatorCount * baseFraction;\n\t\t\t\tlet d = '';\n\t\t\t\tlet svgWidth;\n\t\t\t\tlet svgHeight = size.y;\n\t\t\t\tlet centerShape = '';\n\n\t\t\t\tfor (let i = 0; i <= indicatorCount; i++) {\n\t\t\t\t\tconst x = svgPadding.x + i * indicatorSpacing;\n\t\t\t\t\tconst y = centerY;\n\t\t\t\t\tconst r = i % indicatorInterval === 0 ? radiusBig : radiusSmall;\n\t\t\t\t\td += createPathCircle(x, y, r) + ' ';\n\t\t\t\t\tsvgWidth = x + svgPadding.x;\n\n\t\t\t\t\tif (i === indicatorCenter) {\n\t\t\t\t\t\tcenterShape = `<path d=\"M${x} ${y - 4} l2 3 l-2 -1 l-2 1 z\"/>`;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$$invalidate(7, svg = `<svg width=\"${svgWidth}\" height=\"${svgHeight}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 ${svgWidth} ${svgHeight}\" aria-hidden=\"true\" focusable=\"false\">\n ${centerShape}\n <rect rx=\"4\" ry=\"4\" y=\"${centerY - 4}\"\" height=\"8\"/>\n <path fill-rule=\"evenodd\" d=\"${d.trim()}\"/></svg>`);\n\n\t\t\t\t$$invalidate(31, svgSize = {\n\t\t\t\t\tx: svgWidth - svgPadding.x * 2,\n\t\t\t\t\ty: svgHeight\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*size*/ 16 | $$self.$$.dirty[1] & /*svgSize*/ 1) {\n\t\t\tbarSize = size && svgSize;\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*min, max*/ 6291456 | $$self.$$.dirty[1] & /*valueMinLimited, valueMaxLimited*/ 12) {\n\t\t\t$$invalidate(5, isLimited = valueMinLimited !== min || valueMaxLimited !== max);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isLimited*/ 32 | $$self.$$.dirty[1] & /*valueMinLimited, valueMaxLimited*/ 12) {\n\t\t\t$$invalidate(8, rangeMask = isLimited\n\t\t\t? getMask(valueMinLimited, valueMaxLimited)\n\t\t\t: '');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*size, value, direction, $isAnimated*/ 1048657 | $$self.$$.dirty[1] & /*range*/ 2) {\n\t\t\t// if has size (range is in here so the position is updated if the range is changed)\n\t\t\tif (range && size && size.x && size.y) {\n\t\t\t\tposition.set(valueToPosition(value, direction), { hard: $isAnimated === false });\n\t\t\t}\n\t\t}\n\t};\n\n\treturn [\n\t\tvalue,\n\t\tlabelReset,\n\t\tbase,\n\t\tvalueLabel,\n\t\tsize,\n\t\tisLimited,\n\t\t$isAnimated,\n\t\tsvg,\n\t\trangeMask,\n\t\t$position,\n\t\tisAnimated,\n\t\tsvgPadding,\n\t\thandleDragStart,\n\t\thandleDragRelease,\n\t\thandleDragMove,\n\t\thandleDragEnd,\n\t\thandleReset,\n\t\tposition,\n\t\thandleWheel,\n\t\thandleNudge,\n\t\tdirection,\n\t\tmin,\n\t\tmax,\n\t\tvalueMin,\n\t\tvalueMax,\n\t\toninputstart,\n\t\toninputmove,\n\t\toninputend,\n\t\telasticity,\n\t\tnudgeMultiplier,\n\t\tstep,\n\t\tsvgSize,\n\t\trange,\n\t\tvalueMaxLimited,\n\t\tvalueMinLimited,\n\t\tbaseFraction,\n\t\tmeasure_handler\n\t];\n}\n\nclass RangeInput extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$p,\n\t\t\tcreate_fragment$p,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tlabelReset: 1,\n\t\t\t\tdirection: 20,\n\t\t\t\tmin: 21,\n\t\t\t\tmax: 22,\n\t\t\t\tbase: 2,\n\t\t\t\tvalue: 0,\n\t\t\t\tvalueLabel: 3,\n\t\t\t\tvalueMin: 23,\n\t\t\t\tvalueMax: 24,\n\t\t\t\toninputstart: 25,\n\t\t\t\toninputmove: 26,\n\t\t\t\toninputend: 27,\n\t\t\t\telasticity: 28,\n\t\t\t\tnudgeMultiplier: 29,\n\t\t\t\tstep: 30\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\nvar DirectionRectMap = {\n [Top]: (rect) => ({ x: rect.x, y: rect.y }),\n [TopRight]: (rect) => ({ x: rect.x + rect.width, y: rect.y }),\n [Right]: (rect) => ({ x: rect.x + rect.width, y: rect.y }),\n [BottomRight]: (rect) => ({ x: rect.x + rect.width, y: rect.y + rect.height }),\n [Bottom]: (rect) => ({ x: rect.x, y: rect.y + rect.height }),\n [BottomLeft]: (rect) => ({ x: rect.x, y: rect.y + rect.height }),\n [Left]: (rect) => ({ x: rect.x, y: rect.y }),\n [TopLeft]: (rect) => ({ x: rect.x, y: rect.y }),\n};\n\n/* src/core/ui/components/RectManipulator.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$3(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[14] = list[i].key;\n\tchild_ctx[15] = list[i].translate;\n\tchild_ctx[16] = list[i].scale;\n\tchild_ctx[17] = list[i].type;\n\tchild_ctx[18] = list[i].opacity;\n\treturn child_ctx;\n}\n\n// (110:0) {#each mappedDirections as { key, translate, scale, type, opacity }\nfunction create_each_block$3(key_1, ctx) {\n\tlet div;\n\tlet div_aria_label_value;\n\tlet div_tabindex_value;\n\tlet div_data_direction_value;\n\tlet div_data_shape_value;\n\tlet div_style_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"role\", \"button\");\n\t\t\tattr(div, \"aria-label\", div_aria_label_value = `Drag ${/*type*/ ctx[17]} ${/*key*/ ctx[14]}`);\n\t\t\tattr(div, \"tabindex\", div_tabindex_value = /*type*/ ctx[17] === 'edge' ? -1 : 0);\n\t\t\tattr(div, \"class\", \"PinturaRectManipulator\");\n\t\t\tattr(div, \"data-direction\", div_data_direction_value = /*key*/ ctx[14]);\n\n\t\t\tattr(div, \"data-shape\", div_data_shape_value = `${/*type*/ ctx[17] === 'edge'\n\t\t\t? 'edge'\n\t\t\t: `${/*style*/ ctx[0]}`}`);\n\n\t\t\tattr(div, \"style\", div_style_value = `--tx:${/*translate*/ ctx[15].x};--ty:${/*translate*/ ctx[15].y};--sx:${/*scale*/ ctx[16].x};--sy:${/*scale*/ ctx[16].y};opacity:${/*opacity*/ ctx[18]}`);\n\t\t\tthis.first = div;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"nudge\", function () {\n\t\t\t\t\t\tif (is_function(/*nudge*/ ctx[6](/*key*/ ctx[14]))) /*nudge*/ ctx[6](/*key*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div, { preventDefault: true })),\n\t\t\t\t\tlisten(div, \"interactionstart\", function () {\n\t\t\t\t\t\tif (is_function(/*route*/ ctx[5]('resizestart', /*key*/ ctx[14]))) /*route*/ ctx[5]('resizestart', /*key*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionupdate\", function () {\n\t\t\t\t\t\tif (is_function(/*route*/ ctx[5]('resizemove', /*key*/ ctx[14]))) /*route*/ ctx[5]('resizemove', /*key*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionend\", function () {\n\t\t\t\t\t\tif (is_function(/*route*/ ctx[5]('resizeend', /*key*/ ctx[14]))) /*route*/ ctx[5]('resizeend', /*key*/ ctx[14]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(interactable.call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty & /*mappedDirections*/ 2 && div_aria_label_value !== (div_aria_label_value = `Drag ${/*type*/ ctx[17]} ${/*key*/ ctx[14]}`)) {\n\t\t\t\tattr(div, \"aria-label\", div_aria_label_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*mappedDirections*/ 2 && div_tabindex_value !== (div_tabindex_value = /*type*/ ctx[17] === 'edge' ? -1 : 0)) {\n\t\t\t\tattr(div, \"tabindex\", div_tabindex_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*mappedDirections*/ 2 && div_data_direction_value !== (div_data_direction_value = /*key*/ ctx[14])) {\n\t\t\t\tattr(div, \"data-direction\", div_data_direction_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*mappedDirections, style*/ 3 && div_data_shape_value !== (div_data_shape_value = `${/*type*/ ctx[17] === 'edge'\n\t\t\t? 'edge'\n\t\t\t: `${/*style*/ ctx[0]}`}`)) {\n\t\t\t\tattr(div, \"data-shape\", div_data_shape_value);\n\t\t\t}\n\n\t\t\tif (dirty & /*mappedDirections*/ 2 && div_style_value !== (div_style_value = `--tx:${/*translate*/ ctx[15].x};--ty:${/*translate*/ ctx[15].y};--sx:${/*scale*/ ctx[16].x};--sy:${/*scale*/ ctx[16].y};opacity:${/*opacity*/ ctx[18]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$o(ctx) {\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet each_1_anchor;\n\tlet each_value = /*mappedDirections*/ ctx[1];\n\tconst get_key = ctx => /*key*/ ctx[14];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$3(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\teach_1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, each_1_anchor, anchor);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*mappedDirections, style, nudge, route*/ 99) {\n\t\t\t\teach_value = /*mappedDirections*/ ctx[1];\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block$3, each_1_anchor, get_each_context$3);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(each_1_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$o($$self, $$props, $$invalidate) {\n\tlet mappedDirections;\n\tlet $selectionOpacity;\n\tlet $selectionScale;\n\tlet $isAnimated;\n\tlet { rect = null } = $$props;\n\tlet { visible = false } = $$props;\n\tlet { style = undefined } = $$props;\n\n\t// contex\n\tconst isAnimated = getContext('isAnimated');\n\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(11, $isAnimated = value));\n\n\t// is `undefined` to prevent bounce when first rendering view\n\tconst selectionScale = spring(undefined, {\n\t\tprecision: 0.0001,\n\t\tstiffness: 0.2,\n\t\tdamping: 0.4\n\t});\n\n\tcomponent_subscribe($$self, selectionScale, value => $$invalidate(10, $selectionScale = value));\n\tconst selectionOpacity = spring(0, { precision: 0.001 });\n\tcomponent_subscribe($$self, selectionOpacity, value => $$invalidate(9, $selectionOpacity = value));\n\n\t//\n\t// dragging\n\t//\n\tlet currentDirection;\n\n\tconst dispatch = createEventDispatcher();\n\n\tconst route = (type, direction) => ({ detail }) => {\n\t\t// don't handle other interactions while manipulating on axis\n\t\tif (currentDirection && direction !== currentDirection) return;\n\n\t\t// ignore move and end events if no direction has been set\n\t\tif (type !== 'resizestart' && currentDirection === undefined) return;\n\n\t\t// set new direction\n\t\tif (type === 'resizestart') currentDirection = direction;\n\n\t\t// release direction\n\t\tif (type === 'resizeend') currentDirection = undefined;\n\n\t\tdispatch(type, {\n\t\t\tdirection,\n\t\t\ttranslation: detail && detail.translation\n\t\t});\n\t};\n\n\tconst nudge = direction => ({ detail }) => {\n\t\tdispatch(`resizestart`, { direction, translation: { x: 0, y: 0 } });\n\t\tdispatch(`resizemove`, { direction, translation: detail });\n\t\tdispatch(`resizeend`, { direction, translation: { x: 0, y: 0 } });\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('rect' in $$props) $$invalidate(7, rect = $$props.rect);\n\t\tif ('visible' in $$props) $$invalidate(8, visible = $$props.visible);\n\t\tif ('style' in $$props) $$invalidate(0, style = $$props.style);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*visible, $isAnimated*/ 2304) {\n\t\t\tselectionScale.set(visible ? 1 : 0.5, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*visible, $isAnimated*/ 2304) {\n\t\t\tselectionOpacity.set(visible ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rect, $selectionScale, $selectionOpacity*/ 1664) {\n\t\t\t//\n\t\t\t// rendering\n\t\t\t//\n\t\t\t$$invalidate(1, mappedDirections = Object.keys(Direction).map((key, i) => {\n\t\t\t\t// get direction enum\n\t\t\t\tconst direction = Direction[key];\n\n\t\t\t\t// get position from direction\n\t\t\t\tconst position = DirectionRectMap[direction](rect);\n\n\t\t\t\t// corner or edge\n\t\t\t\tconst type = direction.length === 1 ? 'edge' : 'corner';\n\n\t\t\t\tconst isCorner = type === 'corner';\n\n\t\t\t\treturn {\n\t\t\t\t\tkey: direction,\n\t\t\t\t\ttype,\n\t\t\t\t\tscale: {\n\t\t\t\t\t\tx: (/^(t|b)$/).test(direction)\n\t\t\t\t\t\t? rect.width\n\t\t\t\t\t\t: isCorner ? clamp($selectionScale, 0.5, 1.25) : 1,\n\t\t\t\t\t\ty: (/^(r|l)$/).test(direction)\n\t\t\t\t\t\t? rect.height\n\t\t\t\t\t\t: isCorner ? clamp($selectionScale, 0.5, 1.25) : 1\n\t\t\t\t\t},\n\t\t\t\t\ttranslate: { x: position.x, y: position.y },\n\t\t\t\t\topacity: $selectionOpacity\n\t\t\t\t};\n\t\t\t}));\n\t\t}\n\t};\n\n\treturn [\n\t\tstyle,\n\t\tmappedDirections,\n\t\tisAnimated,\n\t\tselectionScale,\n\t\tselectionOpacity,\n\t\troute,\n\t\tnudge,\n\t\trect,\n\t\tvisible,\n\t\t$selectionOpacity,\n\t\t$selectionScale,\n\t\t$isAnimated\n\t];\n}\n\nclass RectManipulator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$o, create_fragment$o, safe_not_equal, { rect: 7, visible: 8, style: 0 });\n\t}\n}\n\nvar gesturable = (element) => {\n function dispatch(type, detail) {\n element.dispatchEvent(new CustomEvent(type, { detail }));\n }\n const handleGestureStart = (e) => {\n e.preventDefault();\n element.addEventListener('gesturechange', handleGestureChange);\n element.addEventListener('gestureend', handleGestureEnd);\n dispatch('gesturedown');\n };\n const handleGestureChange = (e) => {\n e.preventDefault();\n dispatch('gestureupdate', e.scale);\n };\n const handleGestureEnd = (e) => {\n dispatch('gestureup', e.scale);\n e.preventDefault();\n clean();\n };\n const clean = () => {\n element.removeEventListener('gesturechange', handleGestureChange);\n element.removeEventListener('gestureend', handleGestureEnd);\n };\n element.addEventListener('gesturestart', handleGestureStart);\n return {\n destroy: () => {\n clean();\n element.removeEventListener('gesturestart', handleGestureStart);\n },\n };\n};\n\nvar DirectionInversionTable = {\n [Top]: Bottom,\n [Right]: Left,\n [Bottom]: Top,\n [Left]: Right,\n [TopLeft]: BottomRight,\n [TopRight]: BottomLeft,\n [BottomRight]: TopLeft,\n [BottomLeft]: TopRight,\n};\n\nvar getTranslationInfo = (target) => {\n const translateToRight = target === Right || target === TopRight || target === BottomRight;\n const translateToLeft = target === Left || target === BottomLeft || target === TopLeft;\n const translateToTop = target === Top || target === TopRight || target === TopLeft;\n const translateToBottom = target === Bottom || target === BottomRight || target === BottomLeft;\n const translateHorizontally = target === Left || target === Right;\n const translateVertically = target === Top || target === Bottom;\n const translateAxis = translateHorizontally || translateVertically;\n return [\n translateToRight,\n translateToLeft,\n translateToTop,\n translateToBottom,\n translateHorizontally,\n translateVertically,\n translateAxis,\n ];\n};\n\nvar limitRectDirectionTranslation = (rect, transform, bounds, options = {}) => {\n // the transforms to apply\n const { target, translate } = transform;\n // the transform requirements\n const { aspectRatio, minSize, maxSize } = options;\n // get anchor coordinates and x,y position we need this for relative scaling of the view rectangle\n const anchor = DirectionInversionTable[target];\n const anchorDirectionCoordinates = DirectionCoordinateTable[anchor];\n const anchorPosition = vectorAdd(vectorCreate(rect.x, rect.y), vectorCreate(anchorDirectionCoordinates[0] * rect.width, anchorDirectionCoordinates[1] * rect.height));\n // get coordinate of direction\n const targetDirectionCoordinates = DirectionCoordinateTable[target];\n const targetPosition = vectorAdd(rectClone$1(rect), vectorCreate(targetDirectionCoordinates[0] * rect.width, targetDirectionCoordinates[1] * rect.height));\n // bools to determine which direction the interaction is moving in\n const [translateToRight, translateToLeft, translateToTop, translateToBottom, translateHorizontally, translateVertically, translateAxis,] = getTranslationInfo(target);\n let tx = translate.x;\n let ty = translate.y;\n if (translateHorizontally)\n ty = 0;\n else if (translateVertically)\n tx = 0;\n const { inner: innerBounds, outer: outerBounds } = getInteractionBounds(anchorPosition, target, bounds, {\n aspectRatio,\n minSize,\n maxSize,\n });\n // current bounds\n let [t, r, b, l] = rectToBounds(rect);\n // update view bounds with anchor based on translation direction (one side is always locked)\n if (translateToRight)\n l = anchorPosition.x;\n else if (translateToLeft)\n r = anchorPosition.x;\n if (translateToBottom)\n t = anchorPosition.y;\n else if (translateToTop)\n b = anchorPosition.y;\n // update view bounds with interaction limits\n if (translateToRight) {\n const innerR = innerBounds.x + innerBounds.width;\n const outerR = outerBounds.x + outerBounds.width;\n r = clamp(targetPosition.x + tx, innerR, outerR);\n }\n else if (translateToLeft) {\n const innerL = outerBounds.x;\n const outerL = innerBounds.x;\n l = clamp(targetPosition.x + tx, innerL, outerL);\n }\n if (translateToBottom) {\n const innerB = innerBounds.y + innerBounds.height;\n const outerB = outerBounds.y + outerBounds.height;\n b = clamp(targetPosition.y + ty, innerB, outerB);\n }\n else if (translateToTop) {\n const innerT = outerBounds.y;\n const outerT = innerBounds.y;\n t = clamp(targetPosition.y + ty, innerT, outerT);\n }\n // min size is respected\n if (l > innerBounds.x) {\n l = innerBounds.x;\n }\n if (r < innerBounds.x + innerBounds.width) {\n r = innerBounds.x + innerBounds.width;\n }\n if (t > innerBounds.y) {\n t = innerBounds.y;\n }\n if (b < innerBounds.y + innerBounds.height) {\n b = innerBounds.y + innerBounds.height;\n }\n // max size is respected\n if (l < outerBounds.x) {\n const dx = outerBounds.x - l;\n l = outerBounds.x;\n r += dx;\n }\n if (r > outerBounds.x + outerBounds.width) {\n const dx = r - (outerBounds.x + outerBounds.width);\n r = outerBounds.x + outerBounds.width;\n l -= dx;\n }\n if (t < outerBounds.y) {\n const dy = outerBounds.y - t;\n t = outerBounds.y;\n b += dy;\n }\n if (b > outerBounds.y + outerBounds.height) {\n const dy = b - (outerBounds.y + outerBounds.height);\n b = outerBounds.y + outerBounds.height;\n t -= dy;\n }\n // if aspect ratio is set we need to scale both axis\n if (aspectRatio) {\n // if translating over horizontal or vertical axis we need to update the other axis based on the aspect ratio as well\n if (translateAxis) {\n let dx = r - l;\n let dy = b - t;\n if (translateHorizontally) {\n dy = dx / aspectRatio;\n t = anchorPosition.y - dy * 0.5;\n b = anchorPosition.y + dy * 0.5;\n }\n else if (translateVertically) {\n dx = dy * aspectRatio;\n l = anchorPosition.x - dx * 0.5;\n r = anchorPosition.x + dx * 0.5;\n }\n }\n // we're translating one of the corners in both the x and y direction, need to make sure it conforms to aspect ratio\n else {\n const pointer = vectorCreate(targetPosition.x + tx - anchorPosition.x, targetPosition.y + ty - anchorPosition.y);\n // translations cannot be inverted, limited by anchor position\n if (target === TopRight) {\n pointer.x = Math.max(0, pointer.x);\n pointer.y = Math.min(0, pointer.y);\n }\n else if (target === BottomRight) {\n pointer.x = Math.max(0, pointer.x);\n pointer.y = Math.max(0, pointer.y);\n }\n else if (target === BottomLeft) {\n pointer.x = Math.min(0, pointer.x);\n pointer.y = Math.max(0, pointer.y);\n }\n else if (target === TopLeft) {\n pointer.x = Math.min(0, pointer.x);\n pointer.y = Math.min(0, pointer.y);\n }\n // calculate the translation pointer, then get its length, now create a new pointer based on the aspect ratio, and scale it based on the original (limited) length\n const pointerLength = vectorLength(pointer);\n const pointerLengthMin = vectorLength(vectorCreate(innerBounds.width, innerBounds.height));\n const pointerLengthMax = vectorLength(vectorCreate(outerBounds.width, outerBounds.height));\n const pointerLengthLimited = clamp(pointerLength, pointerLengthMin, pointerLengthMax);\n const pointerAspectRatio = vectorCreate(aspectRatio, 1);\n const pointerScaled = vectorMultiply(vectorNormalize(pointerAspectRatio), pointerLengthLimited);\n if (target === TopRight) {\n r = anchorPosition.x + pointerScaled.x;\n t = anchorPosition.y - pointerScaled.y;\n }\n else if (target === BottomRight) {\n r = anchorPosition.x + pointerScaled.x;\n b = anchorPosition.y + pointerScaled.y;\n }\n else if (target === BottomLeft) {\n l = anchorPosition.x - pointerScaled.x;\n b = anchorPosition.y + pointerScaled.y;\n }\n else if (target === TopLeft) {\n l = anchorPosition.x - pointerScaled.x;\n t = anchorPosition.y - pointerScaled.y;\n }\n }\n }\n return rectCreate(l, t, r - l, b - t);\n};\nconst getInteractionBounds = (anchor, dir, bounds, options) => {\n const { aspectRatio, minSize, maxSize } = options;\n const translateToRight = dir === Right || dir === TopRight || dir === BottomRight;\n const translateToLeft = dir === Left || dir === BottomLeft || dir === TopLeft;\n const translateToTop = dir === Top || dir === TopRight || dir === TopLeft;\n const translateToBottom = dir === Bottom || dir === BottomRight || dir === BottomLeft;\n const translateHorizontally = dir === Left || dir === Right;\n const translateVertically = dir === Top || dir === Bottom;\n // limit bounds based on anchor and direction\n const limitedBounds = rectClone$1(bounds);\n if (translateToRight) {\n limitedBounds.x = anchor.x;\n limitedBounds.width -= anchor.x;\n }\n else if (translateToLeft) {\n limitedBounds.width = anchor.x;\n }\n if (translateToBottom) {\n limitedBounds.y = anchor.y;\n limitedBounds.height -= anchor.y;\n }\n else if (translateToTop) {\n limitedBounds.height = anchor.y;\n }\n // limit max size based on bounds\n const maxSizeLimitedToBounds = rectCreateFromDimensions(Math.min(limitedBounds.width, maxSize.width), Math.min(limitedBounds.height, maxSize.height));\n if (aspectRatio) {\n // limit height\n if (translateHorizontally) {\n const verticalSpace = Math.min(anchor.y, bounds.height - anchor.y);\n maxSizeLimitedToBounds.height = Math.min(verticalSpace * 2, maxSizeLimitedToBounds.height);\n }\n // limit width\n else if (translateVertically) {\n const horizontalSpace = Math.min(anchor.x, bounds.width - anchor.x);\n maxSizeLimitedToBounds.width = Math.min(horizontalSpace * 2, maxSizeLimitedToBounds.width);\n }\n }\n const minSizeLimited = aspectRatio\n ? sizeCreateFromRect(rectCoverRect(rectCreateFromSize(minSize), aspectRatio))\n : minSize;\n const maxSizeLimited = aspectRatio\n ? sizeCreateFromRect(rectContainRect(maxSizeLimitedToBounds, aspectRatio))\n : maxSizeLimitedToBounds;\n let l, r, t, b;\n // set bounds\n if (translateToRight)\n l = anchor.x;\n else if (translateToLeft)\n r = anchor.x;\n if (translateToBottom)\n t = anchor.y;\n else if (translateToTop)\n b = anchor.y;\n // inner\n if (translateToRight) {\n r = l + minSizeLimited.width;\n }\n else if (translateToLeft) {\n l = r - minSizeLimited.width;\n }\n if (translateToBottom) {\n b = t + minSizeLimited.height;\n }\n else if (translateToTop) {\n t = b - minSizeLimited.height;\n }\n if (translateHorizontally) {\n t = anchor.y - minSizeLimited.height * 0.5;\n b = anchor.y + minSizeLimited.height * 0.5;\n }\n else if (translateVertically) {\n l = anchor.x - minSizeLimited.width * 0.5;\n r = anchor.x + minSizeLimited.width * 0.5;\n }\n const inner = rectCreateFromPoints([vectorCreate(l, t), vectorCreate(r, b)]);\n // outer\n if (translateToRight) {\n r = l + maxSizeLimited.width;\n }\n else if (translateToLeft) {\n l = r - maxSizeLimited.width;\n }\n if (translateToBottom) {\n b = t + maxSizeLimited.height;\n }\n else if (translateToTop) {\n t = b - maxSizeLimited.height;\n }\n if (translateHorizontally) {\n t = anchor.y - maxSizeLimited.height * 0.5;\n b = anchor.y + maxSizeLimited.height * 0.5;\n }\n else if (translateVertically) {\n l = anchor.x - maxSizeLimited.width * 0.5;\n r = anchor.x + maxSizeLimited.width * 0.5;\n }\n // limit outer to stage\n l = Math.max(bounds.x, l);\n r = Math.min(bounds.x + bounds.width, r);\n t = Math.max(bounds.y, t);\n b = Math.min(bounds.y + bounds.height, b);\n const outer = rectCreateFromPoints([vectorCreate(l, t), vectorCreate(r, b)]);\n return {\n inner,\n outer,\n };\n};\n\nvar applyRectDirectionTranslation = (rect, transform, options = {}) => {\n // the transforms to apply\n const { target, translate } = transform;\n // the transform requirements\n const { aspectRatio, minSize } = options;\n // get anchor coordinates and x,y position we need this for relative scaling of the view rectangle\n const anchor = DirectionInversionTable[target];\n const anchorDirectionCoordinates = DirectionCoordinateTable[anchor];\n const anchorPosition = vectorAdd(rectClone$1(rect), vectorCreate(anchorDirectionCoordinates[0] * rect.width, anchorDirectionCoordinates[1] * rect.height));\n // get coordinate of direction\n const targetDirectionCoordinates = DirectionCoordinateTable[target];\n const targetPosition = vectorAdd(rectClone$1(rect), vectorCreate(targetDirectionCoordinates[0] * rect.width, targetDirectionCoordinates[1] * rect.height));\n // bools to determine which direction the interaction is moving in\n const [translateToRight, translateToLeft, translateToTop, translateToBottom, translateHorizontally, translateVertically, translateAxis,] = getTranslationInfo(target);\n let tx = translate.x;\n let ty = translate.y;\n if (translateHorizontally)\n ty = 0;\n else if (translateVertically)\n tx = 0;\n // current bounds\n let [t, r, b, l] = rectToBounds(rect);\n // update view bounds with anchor based on translation direction (one side is always locked)\n if (translateToRight)\n l = anchorPosition.x;\n else if (translateToLeft)\n r = anchorPosition.x;\n if (translateToBottom)\n t = anchorPosition.y;\n else if (translateToTop)\n b = anchorPosition.y;\n // update view bounds with interaction limits\n if (translateToRight) {\n r = targetPosition.x + tx;\n }\n else if (translateToLeft) {\n l = targetPosition.x + tx;\n }\n if (translateToBottom) {\n b = targetPosition.y + ty;\n }\n else if (translateToTop) {\n t = targetPosition.y + ty;\n }\n if (minSize && translateHorizontally && b - t < minSize.height) {\n const dy = minSize.height - (b - t);\n t -= dy * 0.5;\n b += dy * 0.5;\n }\n // make sure min size is respected\n if (minSize && translateVertically && r - l < minSize.width) {\n const dx = minSize.width - (r - l);\n l -= dx * 0.5;\n r += dx * 0.5;\n }\n // if aspect ratio is set we need to scale both axis\n if (aspectRatio) {\n // if translating over horizontal or vertical axis we need to update the other axis based on the aspect ratio as well\n if (translateAxis) {\n let dx = r - l;\n let dy = b - t;\n if (translateHorizontally) {\n dy = dx / aspectRatio;\n t = anchorPosition.y - dy * 0.5;\n b = anchorPosition.y + dy * 0.5;\n }\n else if (translateVertically) {\n dx = dy * aspectRatio;\n l = anchorPosition.x - dx * 0.5;\n r = anchorPosition.x + dx * 0.5;\n }\n }\n // we're translating one of the corners in both the x and y direction, need to make sure it conforms to aspect ratio\n else {\n const pointer = vectorCreate(targetPosition.x + tx - anchorPosition.x, targetPosition.y + ty - anchorPosition.y);\n // translations cannot be inverted, limited by anchor position\n if (target === TopRight) {\n pointer.x = Math.max(0, pointer.x);\n pointer.y = Math.min(0, pointer.y);\n }\n else if (target === BottomRight) {\n pointer.x = Math.max(0, pointer.x);\n pointer.y = Math.max(0, pointer.y);\n }\n else if (target === BottomLeft) {\n pointer.x = Math.min(0, pointer.x);\n pointer.y = Math.max(0, pointer.y);\n }\n else if (target === TopLeft) {\n pointer.x = Math.min(0, pointer.x);\n pointer.y = Math.min(0, pointer.y);\n }\n // calculate the translation pointer, then get its length, now create a new pointer based on the aspect ratio, and scale it based on the original (limited) length\n const pointerLength = vectorLength(pointer);\n const pointerAspectRatio = vectorCreate(aspectRatio, 1);\n const pointerScaled = vectorMultiply(vectorNormalize(pointerAspectRatio), pointerLength);\n if (target === TopRight) {\n r = anchorPosition.x + pointerScaled.x;\n t = anchorPosition.y - pointerScaled.y;\n }\n else if (target === BottomRight) {\n r = anchorPosition.x + pointerScaled.x;\n b = anchorPosition.y + pointerScaled.y;\n }\n else if (target === BottomLeft) {\n l = anchorPosition.x - pointerScaled.x;\n b = anchorPosition.y + pointerScaled.y;\n }\n else if (target === TopLeft) {\n l = anchorPosition.x - pointerScaled.x;\n t = anchorPosition.y - pointerScaled.y;\n }\n }\n }\n return rectCreate(l, t, r - l, b - t);\n};\n\nvar radToDeg = (rad) => rad * 180 / Math.PI;\n\n/* src/core/ui/plugins/crop/components/ImageRotator.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$n(ctx) {\n\tlet div;\n\tlet rangeinput;\n\tlet current;\n\n\trangeinput = new RangeInput({\n\t\t\tprops: {\n\t\t\t\telasticity: /*elasticity*/ ctx[5],\n\t\t\t\tmin: /*min*/ ctx[9],\n\t\t\t\tmax: /*max*/ ctx[10],\n\t\t\t\tvalue: /*value*/ ctx[11],\n\t\t\t\tvalueMin: Math.max(/*min*/ ctx[9], /*valueMin*/ ctx[0]),\n\t\t\t\tvalueMax: Math.min(/*max*/ ctx[10], /*valueMax*/ ctx[1]),\n\t\t\t\tlabelReset: /*labelReset*/ ctx[6],\n\t\t\t\tbase: /*center*/ ctx[12],\n\t\t\t\tvalueLabel: `${Math.round(radToDeg(/*value*/ ctx[11]))}°`,\n\t\t\t\toninputstart: /*oninputstart*/ ctx[2],\n\t\t\t\toninputmove: /*func*/ ctx[17],\n\t\t\t\toninputend: /*func_1*/ ctx[18]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(rangeinput.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaImageRotator\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(rangeinput, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst rangeinput_changes = {};\n\t\t\tif (dirty & /*elasticity*/ 32) rangeinput_changes.elasticity = /*elasticity*/ ctx[5];\n\t\t\tif (dirty & /*min*/ 512) rangeinput_changes.min = /*min*/ ctx[9];\n\t\t\tif (dirty & /*max*/ 1024) rangeinput_changes.max = /*max*/ ctx[10];\n\t\t\tif (dirty & /*value*/ 2048) rangeinput_changes.value = /*value*/ ctx[11];\n\t\t\tif (dirty & /*min, valueMin*/ 513) rangeinput_changes.valueMin = Math.max(/*min*/ ctx[9], /*valueMin*/ ctx[0]);\n\t\t\tif (dirty & /*max, valueMax*/ 1026) rangeinput_changes.valueMax = Math.min(/*max*/ ctx[10], /*valueMax*/ ctx[1]);\n\t\t\tif (dirty & /*labelReset*/ 64) rangeinput_changes.labelReset = /*labelReset*/ ctx[6];\n\t\t\tif (dirty & /*center*/ 4096) rangeinput_changes.base = /*center*/ ctx[12];\n\t\t\tif (dirty & /*value*/ 2048) rangeinput_changes.valueLabel = `${Math.round(radToDeg(/*value*/ ctx[11]))}°`;\n\t\t\tif (dirty & /*oninputstart*/ 4) rangeinput_changes.oninputstart = /*oninputstart*/ ctx[2];\n\t\t\tif (dirty & /*oninputmove, sign, turns*/ 392) rangeinput_changes.oninputmove = /*func*/ ctx[17];\n\t\t\tif (dirty & /*oninputend, sign, turns*/ 400) rangeinput_changes.oninputend = /*func_1*/ ctx[18];\n\t\t\trangeinput.$set(rangeinput_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(rangeinput.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(rangeinput.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(rangeinput);\n\t\t}\n\t};\n}\n\nconst MARGIN = 0.000000001;\n\nfunction instance$n($$self, $$props, $$invalidate) {\n\tlet min;\n\tlet max;\n\tlet center;\n\tlet range;\n\tlet sign;\n\tlet turns;\n\tlet value;\n\tlet { rotation } = $$props;\n\tlet { valueMin } = $$props;\n\tlet { valueMax } = $$props;\n\tlet { oninputstart = noop$1 } = $$props;\n\tlet { oninputmove = noop$1 } = $$props;\n\tlet { oninputend = noop$1 } = $$props;\n\tlet { elasticity = 0 } = $$props;\n\tlet { labelReset = undefined } = $$props;\n\tlet { rotationMin = undefined } = $$props;\n\tlet { rotationMax = undefined } = $$props;\n\tconst func = value => oninputmove(sign * turns + value);\n\tconst func_1 = value => oninputend(sign * turns + value);\n\n\t$$self.$$set = $$props => {\n\t\tif ('rotation' in $$props) $$invalidate(13, rotation = $$props.rotation);\n\t\tif ('valueMin' in $$props) $$invalidate(0, valueMin = $$props.valueMin);\n\t\tif ('valueMax' in $$props) $$invalidate(1, valueMax = $$props.valueMax);\n\t\tif ('oninputstart' in $$props) $$invalidate(2, oninputstart = $$props.oninputstart);\n\t\tif ('oninputmove' in $$props) $$invalidate(3, oninputmove = $$props.oninputmove);\n\t\tif ('oninputend' in $$props) $$invalidate(4, oninputend = $$props.oninputend);\n\t\tif ('elasticity' in $$props) $$invalidate(5, elasticity = $$props.elasticity);\n\t\tif ('labelReset' in $$props) $$invalidate(6, labelReset = $$props.labelReset);\n\t\tif ('rotationMin' in $$props) $$invalidate(14, rotationMin = $$props.rotationMin);\n\t\tif ('rotationMax' in $$props) $$invalidate(15, rotationMax = $$props.rotationMax);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*rotationMin*/ 16384) {\n\t\t\t$$invalidate(9, min = rotationMin + MARGIN);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rotationMax*/ 32768) {\n\t\t\t$$invalidate(10, max = rotationMax - MARGIN);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*min, max*/ 1536) {\n\t\t\t$$invalidate(12, center = min + (max - min) * 0.5);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rotationMax*/ 32768) {\n\t\t\t$$invalidate(16, range = rotationMax * 2);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rotation*/ 8192) {\n\t\t\t$$invalidate(8, sign = Math.sign(rotation));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rotation, range*/ 73728) {\n\t\t\t$$invalidate(7, turns = Math.round(Math.abs(rotation) / range) * range);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*rotation, sign, turns*/ 8576) {\n\t\t\t$$invalidate(11, value = rotation - sign * turns);\n\t\t}\n\t};\n\n\treturn [\n\t\tvalueMin,\n\t\tvalueMax,\n\t\toninputstart,\n\t\toninputmove,\n\t\toninputend,\n\t\telasticity,\n\t\tlabelReset,\n\t\tturns,\n\t\tsign,\n\t\tmin,\n\t\tmax,\n\t\tvalue,\n\t\tcenter,\n\t\trotation,\n\t\trotationMin,\n\t\trotationMax,\n\t\trange,\n\t\tfunc,\n\t\tfunc_1\n\t];\n}\n\nclass ImageRotator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$n, create_fragment$n, safe_not_equal, {\n\t\t\trotation: 13,\n\t\t\tvalueMin: 0,\n\t\t\tvalueMax: 1,\n\t\t\toninputstart: 2,\n\t\t\toninputmove: 3,\n\t\t\toninputend: 4,\n\t\t\telasticity: 5,\n\t\t\tlabelReset: 6,\n\t\t\trotationMin: 14,\n\t\t\trotationMax: 15\n\t\t});\n\t}\n}\n\n/* src/core/ui/plugins/crop/components/ImageInfo.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$m(ctx) {\n\tlet div;\n\tlet p;\n\tlet t0;\n\tlet t1;\n\tlet t2;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tp = element(\"p\");\n\t\t\tt0 = text(/*width*/ ctx[0]);\n\t\t\tt1 = text(\" × \");\n\t\t\tt2 = text(/*height*/ ctx[1]);\n\t\t\tattr(div, \"class\", \"PinturaImageInfo\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, p);\n\t\t\tappend(p, t0);\n\t\t\tappend(p, t1);\n\t\t\tappend(p, t2);\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*width*/ 1) set_data(t0, /*width*/ ctx[0]);\n\t\t\tif (dirty & /*height*/ 2) set_data(t2, /*height*/ ctx[1]);\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\nfunction instance$m($$self, $$props, $$invalidate) {\n\tlet { width } = $$props;\n\tlet { height } = $$props;\n\n\t$$self.$$set = $$props => {\n\t\tif ('width' in $$props) $$invalidate(0, width = $$props.width);\n\t\tif ('height' in $$props) $$invalidate(1, height = $$props.height);\n\t};\n\n\treturn [width, height];\n}\n\nclass ImageInfo extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tinit(this, options, instance$m, create_fragment$m, safe_not_equal, { width: 0, height: 1 });\n\t}\n}\n\nvar getSelectionPresetOptionIcon = (value, options = {}) => {\n const { width = 24, height = 24, bounds = 16, radius = 3 } = options;\n let aspectRatio = isArray(value) ? getAspectRatio(value[0], value[1]) : value;\n let aspectRatioDefined = !!aspectRatio;\n aspectRatio = aspectRatioDefined ? aspectRatio : 1;\n let x;\n let y;\n let w;\n let h;\n w = aspectRatio > 1 ? bounds : aspectRatio * bounds;\n h = w / aspectRatio;\n x = Math.round((width - w) * 0.5);\n y = Math.round((height - h) * 0.5);\n const fill = aspectRatioDefined ? 'currentColor' : 'none';\n const stroke = aspectRatioDefined ? 'none' : 'currentColor';\n const strokeWidth = width / 16;\n const strokeDashArray = [width / 12, width / 6].join(' ');\n return `<rect fill=\"${fill}\" stroke=\"${stroke}\" stroke-width=\"${strokeWidth}\" stroke-dasharray=\"${strokeDashArray}\" x=\"${x}\" y=\"${y}\" width=\"${w}\" height=\"${h}\" rx=\"${radius}\"/>`;\n};\n\n/* src/core/ui/plugins/crop/components/CropPresetList.svelte generated by Svelte v3.52.0 */\n\nfunction create_controls_slot(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaPresetListFilter\",\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*filterOptions*/ ctx[8],\n\t\t\t\tselectedIndex: /*selectedFilterIndex*/ ctx[7],\n\t\t\t\tonchange: /*handleChangeFilter*/ ctx[10]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty & /*filterOptions*/ 256) radiogroup_changes.options = /*filterOptions*/ ctx[8];\n\t\t\tif (dirty & /*selectedFilterIndex*/ 128) radiogroup_changes.selectedIndex = /*selectedFilterIndex*/ ctx[7];\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$l(ctx) {\n\tlet dropdown;\n\tlet current;\n\n\tdropdown = new Dropdown({\n\t\t\tprops: {\n\t\t\t\ticon: /*icon*/ ctx[0],\n\t\t\t\tlabel: /*label*/ ctx[1],\n\t\t\t\tlabelClass: /*labelClass*/ ctx[2],\n\t\t\t\thideLabel: /*hideLabel*/ ctx[3],\n\t\t\t\toptions: /*filteredOptions*/ ctx[9],\n\t\t\t\tselectedIndex: /*selectedIndex*/ ctx[4],\n\t\t\t\tonchange: /*onchange*/ ctx[5],\n\t\t\t\toptionMapper: /*optionMapper*/ ctx[6],\n\t\t\t\t$$slots: { controls: [create_controls_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dropdown.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dropdown, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst dropdown_changes = {};\n\t\t\tif (dirty & /*icon*/ 1) dropdown_changes.icon = /*icon*/ ctx[0];\n\t\t\tif (dirty & /*label*/ 2) dropdown_changes.label = /*label*/ ctx[1];\n\t\t\tif (dirty & /*labelClass*/ 4) dropdown_changes.labelClass = /*labelClass*/ ctx[2];\n\t\t\tif (dirty & /*hideLabel*/ 8) dropdown_changes.hideLabel = /*hideLabel*/ ctx[3];\n\t\t\tif (dirty & /*filteredOptions*/ 512) dropdown_changes.options = /*filteredOptions*/ ctx[9];\n\t\t\tif (dirty & /*selectedIndex*/ 16) dropdown_changes.selectedIndex = /*selectedIndex*/ ctx[4];\n\t\t\tif (dirty & /*onchange*/ 32) dropdown_changes.onchange = /*onchange*/ ctx[5];\n\t\t\tif (dirty & /*optionMapper*/ 64) dropdown_changes.optionMapper = /*optionMapper*/ ctx[6];\n\n\t\t\tif (dirty & /*$$scope, filterOptions, selectedFilterIndex*/ 262528) {\n\t\t\t\tdropdown_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tdropdown.$set(dropdown_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dropdown.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dropdown.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dropdown, detaching);\n\t\t}\n\t};\n}\n\nconst style = 'fill=\"none\" stroke=\"currentColor\"';\n\nfunction instance$l($$self, $$props, $$invalidate) {\n\tlet filteredOptions;\n\tlet selectedFilterIndex;\n\tlet filterOptions;\n\tlet { icon } = $$props;\n\tlet { label } = $$props;\n\tlet { labelClass } = $$props;\n\tlet { hideLabel } = $$props;\n\tlet { options } = $$props;\n\tlet { selectedIndex } = $$props;\n\tlet { onchange } = $$props;\n\tlet { optionMapper } = $$props;\n\tlet { filter = 'landscape' } = $$props;\n\tlet { onfilterchange = noop$1 } = $$props;\n\n\tconst getIcon = (x, y, width, height, r) => `\n <rect ${style} x=\"${x}\" y=\"${y}\" width=\"${width}\" height=\"${height}\" rx=\"${r}\"/>`;\n\n\tconst getCheckmark = (x, y) => `<path ${style} d=\"M${x} ${y} l2 2 l3 -4\"/>`;\n\n\tconst mapGroupedOptions = (options, map) => (options || []).map(option => {\n\t\t// group\n\t\tif (isString(option[0])) {\n\t\t\toption[1] = option[1].map(map);\n\t\t\treturn option;\n\t\t}\n\n\t\t// single\n\t\treturn map(option);\n\t});\n\n\tconst createOptionMapper = filter => item => {\n\t\tconst [value, label, options = {}] = item;\n\n\t\tif (isNumber(value)) {\n\t\t\toptions.hidden = filter === 'landscape' ? value < 1 : value > 1;\n\t\t}\n\n\t\treturn [value, label, options];\n\t};\n\n\tconst handleChangeFilter = item => {\n\t\t$$invalidate(11, filter = item.value);\n\t\tonfilterchange(item.value);\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('icon' in $$props) $$invalidate(0, icon = $$props.icon);\n\t\tif ('label' in $$props) $$invalidate(1, label = $$props.label);\n\t\tif ('labelClass' in $$props) $$invalidate(2, labelClass = $$props.labelClass);\n\t\tif ('hideLabel' in $$props) $$invalidate(3, hideLabel = $$props.hideLabel);\n\t\tif ('options' in $$props) $$invalidate(12, options = $$props.options);\n\t\tif ('selectedIndex' in $$props) $$invalidate(4, selectedIndex = $$props.selectedIndex);\n\t\tif ('onchange' in $$props) $$invalidate(5, onchange = $$props.onchange);\n\t\tif ('optionMapper' in $$props) $$invalidate(6, optionMapper = $$props.optionMapper);\n\t\tif ('filter' in $$props) $$invalidate(11, filter = $$props.filter);\n\t\tif ('onfilterchange' in $$props) $$invalidate(13, onfilterchange = $$props.onfilterchange);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*options, filter*/ 6144) {\n\t\t\t$$invalidate(9, filteredOptions = mapGroupedOptions(options, createOptionMapper(filter)));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*filter*/ 2048) {\n\t\t\t$$invalidate(7, selectedFilterIndex = filter === 'landscape' ? 0 : 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*selectedFilterIndex*/ 128) {\n\t\t\t$$invalidate(8, filterOptions = [\n\t\t\t\t[\n\t\t\t\t\t'landscape',\n\t\t\t\t\t'Landscape',\n\t\t\t\t\t{\n\t\t\t\t\t\thideLabel: true,\n\t\t\t\t\t\ticon: getIcon(2, 6, 19, 12, 2) + (selectedFilterIndex === 0 ? getCheckmark(9, 12) : '')\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'portrait',\n\t\t\t\t\t'Portrait',\n\t\t\t\t\t{\n\t\t\t\t\t\thideLabel: true,\n\t\t\t\t\t\ticon: getIcon(5, 3, 13, 18, 2) + (selectedFilterIndex === 1 ? getCheckmark(9, 12) : '')\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t]);\n\t\t}\n\t};\n\n\treturn [\n\t\ticon,\n\t\tlabel,\n\t\tlabelClass,\n\t\thideLabel,\n\t\tselectedIndex,\n\t\tonchange,\n\t\toptionMapper,\n\t\tselectedFilterIndex,\n\t\tfilterOptions,\n\t\tfilteredOptions,\n\t\thandleChangeFilter,\n\t\tfilter,\n\t\toptions,\n\t\tonfilterchange\n\t];\n}\n\nclass CropPresetList extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$l, create_fragment$l, safe_not_equal, {\n\t\t\ticon: 0,\n\t\t\tlabel: 1,\n\t\t\tlabelClass: 2,\n\t\t\thideLabel: 3,\n\t\t\toptions: 12,\n\t\t\tselectedIndex: 4,\n\t\t\tonchange: 5,\n\t\t\toptionMapper: 6,\n\t\t\tfilter: 11,\n\t\t\tonfilterchange: 13\n\t\t});\n\t}\n}\n\n// this makes sure that the new rectangle doesn't have corners outside of the quad\nconst EDGE_DISTANCE_FACTOR = 0.9999;\nconst PRECISION = 6;\nconst fixVectorPrecision = (v) => vectorApply(v, (v) => fixPrecision(v, PRECISION));\nconst rectFixPrecision = (r) => rectApply(r, (v) => fixPrecision(v, PRECISION));\nconst quadFixPrecision = (q) => q.map(fixVectorPrecision);\nconst floatEquals = (a, b, margin = 0.0001) => Math.abs(a - b) < margin;\nvar getRectLimitedToQuad = (rectOrigin, rectTarget, transform, quad, options = {}) => {\n const { aspectRatio } = options;\n rectOrigin = rectFixPrecision(rectOrigin);\n quad = quadFixPrecision(quad);\n const anchor = rectGetCornerByTarget(rectOrigin, DirectionInversionTable[transform.target]);\n const anchorFixed = vectorApply(anchor, (v) => fixPrecision(v, PRECISION));\n const minSize = aspectRatio ? rectCoverRect(options.minSize, aspectRatio) : options.minSize;\n const maxSize = aspectRatio ? rectContainRect(options.maxSize, aspectRatio) : options.maxSize;\n const rectTargetCorner = rectGetCornerByTarget(rectTarget, transform.target);\n // prevent scaling the target size smaller than 0\n const dist = vectorDistance(rectTargetCorner, anchor);\n if (dist < 1) {\n rectTarget = rectClone$1(rectOrigin);\n const scalar = Math.min(minSize.width / rectOrigin.width, minSize.height / rectOrigin.height);\n rectScale$1(rectTarget, scalar, anchor);\n }\n // clamp between min and max size\n rectTarget = rectClamp(rectClone$1(rectTarget), minSize, maxSize, anchor);\n let rect = rectClone$1(rectTarget);\n rectTarget = rectFixPrecision(rectTarget);\n const quadEdges = quadToLines(quad, 1);\n const cornersOrigin = rectGetCorners(rectOrigin);\n const cornersTarget = rectGetCorners(rectTarget);\n const anchorIndex = cornersOrigin.findIndex((corner) => vectorEqual(vectorApply(corner, (v) => fixPrecision(v, PRECISION)), anchorFixed));\n const getLineIntersectionWithQuad = (line) => quadEdges\n .map((quadEdge) => lineLineIntersection(quadEdge, line))\n .filter(Boolean)\n .pop();\n // when aspect ratio is locked we can scale the original rectangle relatively to closest intersectionpoint\n if (aspectRatio) {\n const intersections = cornersTarget\n .map((target, index) => {\n // skip anchor\n if (index === anchorIndex)\n return;\n // start ray slightly away from anchor so we don't intersect with quad edge\n const dir = vectorCreate(anchor.x - target.x, anchor.y - target.y);\n vectorNormalize(dir);\n vectorMultiply(dir, 0.5);\n // draw line from anchor to target to find intersection with quad edge\n const rayOrigin = vectorCreate(anchor.x - dir.x, anchor.y - dir.y);\n const ray = lineCreate(rayOrigin, fixVectorPrecision(target));\n const intersection = getLineIntersectionWithQuad(ray);\n if (!intersection)\n return;\n const origin = cornersOrigin[index];\n return {\n intersection,\n cornerDist: vectorDistance(anchor, origin),\n intersectionDist: vectorDistance(anchor, intersection),\n };\n })\n .filter(Boolean);\n if (intersections.length) {\n const scalar = intersections.reduce((scalar, current) => {\n const currentScalar = current.intersectionDist / current.cornerDist;\n return currentScalar < scalar ? currentScalar : scalar;\n }, Number.MAX_SAFE_INTEGER);\n rect = rectClone$1(rectOrigin);\n rectScale$1(rect, scalar, anchor);\n }\n }\n else {\n // if not a fixed aspect ratio\n const isManipulatingEdge = transform.target.length === 1;\n // is true if quad is rotated\n const isRotated = !(quad[0].y === quad[1].y || quad[0].x === quad[1].x);\n // get intersections\n const intersections = cornersOrigin\n .map((cornerOrigin, index) => {\n // skip anchor\n if (index === anchorIndex)\n return;\n const cornerTarget = cornersTarget[index];\n const isDiagonal = !floatEquals(cornerTarget.x, anchorFixed.x) &&\n !floatEquals(cornerTarget.y, anchorFixed.y);\n // we ignore the diagonal ray if the quad isn't rotated this makes for better ux\n if (!isManipulatingEdge && !isRotated && isDiagonal)\n return;\n if (isManipulatingEdge &&\n (floatEquals(cornerTarget.x, anchorFixed.x) ||\n floatEquals(cornerTarget.y, anchorFixed.y)))\n return;\n const rayOrigin = vectorClone(isManipulatingEdge ? cornerOrigin : anchor);\n // start ray slightly away from anchor so we don't intersect with quad edge\n const dir = vectorSubtract(vectorClone(rayOrigin), cornerTarget);\n vectorNormalize(dir);\n vectorMultiply(dir, 0.5);\n if (isManipulatingEdge) {\n vectorAdd(rayOrigin, dir);\n }\n else {\n vectorSubtract(rayOrigin, dir);\n }\n const ray = lineCreate(rayOrigin, cornerTarget);\n const intersection = getLineIntersectionWithQuad(ray);\n if (!intersection)\n return;\n return intersection;\n })\n .filter(Boolean);\n if (intersections.length) {\n const [translateToRight, translateToLeft, translateToTop, translateToBottom] = getTranslationInfo(transform.target);\n let [t, r, b, l] = rectToBounds(rectTarget);\n intersections.forEach(({ x, y }) => {\n const pX = fixPrecision(x, PRECISION);\n const pY = fixPrecision(y, PRECISION);\n if (translateToTop && !floatEquals(pY, anchorFixed.y)) {\n t = Math.max(t, y);\n }\n if (translateToRight && !floatEquals(pX, anchorFixed.x)) {\n r = Math.min(r, x);\n }\n if (translateToBottom && !floatEquals(pY, anchorFixed.y)) {\n b = Math.min(b, y);\n }\n if (translateToLeft && !floatEquals(pX, anchorFixed.x)) {\n l = Math.max(l, x);\n }\n });\n // new rect\n rect = rectCreateFromBounds([t, r, b, l]);\n // scale back a bit so doesn't overlap with quad\n rectScale$1(rect, EDGE_DISTANCE_FACTOR, anchor);\n }\n }\n // make sure is at least one pixel wide and high\n rectClamp(rect, minSize, maxSize, anchor);\n return rect;\n};\n\n/* src/core/ui/plugins/crop/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_default_slot_2$3(ctx) {\n\tlet dynamiccomponenttree;\n\tlet current;\n\tdynamiccomponenttree = new DynamicComponentTree_1({ props: { items: /*cropTools*/ ctx[11] } });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty[0] & /*cropTools*/ 2048) dynamiccomponenttree_changes.items = /*cropTools*/ ctx[11];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t}\n\t};\n}\n\n// (1536:4) \nfunction create_header_slot$1(ctx) {\n\tlet div;\n\tlet toolbar;\n\tlet current;\n\n\ttoolbar = new Toolbar({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_2$3] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(toolbar.$$.fragment);\n\t\t\tattr(div, \"slot\", \"header\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(toolbar, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst toolbar_changes = {};\n\n\t\t\tif (dirty[0] & /*cropTools*/ 2048 | dirty[7] & /*$$scope*/ 1) {\n\t\t\t\ttoolbar_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttoolbar.$set(toolbar_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(toolbar.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(toolbar.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(toolbar);\n\t\t}\n\t};\n}\n\n// (1566:12) {#if shouldRenderImageSelection && shouldRenderImageSelectionRecenterButton}\nfunction create_if_block_5$2(ctx) {\n\tlet button;\n\tlet current;\n\n\tbutton = new Button({\n\t\t\tprops: {\n\t\t\t\tonclick: /*handleRecenterAction*/ ctx[87],\n\t\t\t\tlabel: /*locale*/ ctx[4].cropLabelButtonRecenter,\n\t\t\t\ticon: /*locale*/ ctx[4].cropIconButtonRecenter,\n\t\t\t\tclass: \"PinturaButtonCenter\",\n\t\t\t\tdisabled: !/*canCenter*/ ctx[9],\n\t\t\t\thideLabel: true,\n\t\t\t\tstyle: `opacity: ${/*$recenterOpacity*/ ctx[29]}; transform: translate3d(${/*$recenterOffset*/ ctx[30].x}px, ${/*$recenterOffset*/ ctx[30].y}px, 0)`\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(button.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(button, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst button_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) button_changes.label = /*locale*/ ctx[4].cropLabelButtonRecenter;\n\t\t\tif (dirty[0] & /*locale*/ 16) button_changes.icon = /*locale*/ ctx[4].cropIconButtonRecenter;\n\t\t\tif (dirty[0] & /*canCenter*/ 512) button_changes.disabled = !/*canCenter*/ ctx[9];\n\t\t\tif (dirty[0] & /*$recenterOpacity, $recenterOffset*/ 1610612736) button_changes.style = `opacity: ${/*$recenterOpacity*/ ctx[29]}; transform: translate3d(${/*$recenterOffset*/ ctx[30].x}px, ${/*$recenterOffset*/ ctx[30].y}px, 0)`;\n\t\t\tbutton.$set(button_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(button, detaching);\n\t\t}\n\t};\n}\n\n// (1578:12) {#if shouldRenderImageSelection}\nfunction create_if_block_4$3(ctx) {\n\tlet rectmanipulator;\n\tlet current;\n\n\trectmanipulator = new RectManipulator({\n\t\t\tprops: {\n\t\t\t\trect: /*imageSelectionRectOffset*/ ctx[8],\n\t\t\t\tvisible: /*$isActive*/ ctx[12],\n\t\t\t\tstyle: /*cropImageSelectionCornerStyle*/ ctx[1]\n\t\t\t}\n\t\t});\n\n\trectmanipulator.$on(\"resizestart\", /*handleSelectionGrab*/ ctx[67]);\n\trectmanipulator.$on(\"resizemove\", /*handleSelectionDrag*/ ctx[68]);\n\trectmanipulator.$on(\"resizeend\", /*handleSelectionRelease*/ ctx[69]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(rectmanipulator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(rectmanipulator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst rectmanipulator_changes = {};\n\t\t\tif (dirty[0] & /*imageSelectionRectOffset*/ 256) rectmanipulator_changes.rect = /*imageSelectionRectOffset*/ ctx[8];\n\t\t\tif (dirty[0] & /*$isActive*/ 4096) rectmanipulator_changes.visible = /*$isActive*/ ctx[12];\n\t\t\tif (dirty[0] & /*cropImageSelectionCornerStyle*/ 2) rectmanipulator_changes.style = /*cropImageSelectionCornerStyle*/ ctx[1];\n\t\t\trectmanipulator.$set(rectmanipulator_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(rectmanipulator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(rectmanipulator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(rectmanipulator, detaching);\n\t\t}\n\t};\n}\n\n// (1591:8) {#if shouldRenderInfoIndicator}\nfunction create_if_block_3$3(ctx) {\n\tlet imageinfo;\n\tlet current;\n\n\timageinfo = new ImageInfo({\n\t\t\tprops: {\n\t\t\t\twidth: Math.round(/*$imageCropRect*/ ctx[13].width),\n\t\t\t\theight: Math.round(/*$imageCropRect*/ ctx[13].height)\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(imageinfo.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(imageinfo, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst imageinfo_changes = {};\n\t\t\tif (dirty[0] & /*$imageCropRect*/ 8192) imageinfo_changes.width = Math.round(/*$imageCropRect*/ ctx[13].width);\n\t\t\tif (dirty[0] & /*$imageCropRect*/ 8192) imageinfo_changes.height = Math.round(/*$imageCropRect*/ ctx[13].height);\n\t\t\timageinfo.$set(imageinfo_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(imageinfo.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(imageinfo.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(imageinfo, detaching);\n\t\t}\n\t};\n}\n\n// (1542:4) \nfunction create_main_slot$1(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet t0;\n\tlet interactable_action;\n\tlet t1;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block0 = /*shouldRenderImageSelection*/ ctx[21] && /*shouldRenderImageSelectionRecenterButton*/ ctx[10] && create_if_block_5$2(ctx);\n\tlet if_block1 = /*shouldRenderImageSelection*/ ctx[21] && create_if_block_4$3(ctx);\n\tlet if_block2 = /*shouldRenderInfoIndicator*/ ctx[22] && create_if_block_3$3(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt0 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tattr(div0, \"class\", \"PinturaStage\");\n\t\t\tattr(div1, \"slot\", \"main\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tif (if_block0) if_block0.m(div0, null);\n\t\t\tappend(div0, t0);\n\t\t\tif (if_block1) if_block1.m(div0, null);\n\t\t\t/*div0_binding*/ ctx[161](div0);\n\t\t\tappend(div1, t1);\n\t\t\tif (if_block2) if_block2.m(div1, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\taction_destroyer(measurable.call(null, div0)),\n\t\t\t\t\tlisten(div0, \"measure\", /*measure_handler_1*/ ctx[159]),\n\t\t\t\t\tlisten(\n\t\t\t\t\t\tdiv0,\n\t\t\t\t\t\t\"wheel\",\n\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\tif (is_function(/*cropEnableZoom*/ ctx[2] && /*handleWheel*/ ctx[86])) (/*cropEnableZoom*/ ctx[2] && /*handleWheel*/ ctx[86]).apply(this, arguments);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{ passive: false }\n\t\t\t\t\t),\n\t\t\t\t\tlisten(div0, \"interactionstart\", /*handleImageDragStart*/ ctx[73]),\n\t\t\t\t\tlisten(div0, \"interactionupdate\", /*handleImageDrag*/ ctx[74]),\n\t\t\t\t\tlisten(div0, \"interactionrelease\", /*handleImageDragRelease*/ ctx[76]),\n\t\t\t\t\tlisten(div0, \"interactionend\", /*handleImageDragEnd*/ ctx[75]),\n\t\t\t\t\taction_destroyer(interactable_action = interactable.call(null, div0, {\n\t\t\t\t\t\tdrag: true,\n\t\t\t\t\t\tinertia: true,\n\t\t\t\t\t\tpinch: /*cropEnableZoom*/ ctx[2],\n\t\t\t\t\t\tshouldStartInteraction: interactable_function$1,\n\t\t\t\t\t\tgetEventPosition: /*interactable_function_1*/ ctx[162]\n\t\t\t\t\t})),\n\t\t\t\t\tlisten(div0, \"gesturedown\", /*handleGestureStart*/ ctx[83]),\n\t\t\t\t\tlisten(div0, \"gestureupdate\", /*handleGestureUpdate*/ ctx[84]),\n\t\t\t\t\tlisten(div0, \"gestureup\", /*handleGestureEnd*/ ctx[85]),\n\t\t\t\t\taction_destroyer(gesturable.call(null, div0))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (/*shouldRenderImageSelection*/ ctx[21] && /*shouldRenderImageSelectionRecenterButton*/ ctx[10]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderImageSelection, shouldRenderImageSelectionRecenterButton*/ 2098176) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_5$2(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div0, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*shouldRenderImageSelection*/ ctx[21]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderImageSelection*/ 2097152) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_4$3(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div0, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (interactable_action && is_function(interactable_action.update) && dirty[0] & /*cropEnableZoom, $rootRect*/ 16777220) interactable_action.update.call(null, {\n\t\t\t\tdrag: true,\n\t\t\t\tinertia: true,\n\t\t\t\tpinch: /*cropEnableZoom*/ ctx[2],\n\t\t\t\tshouldStartInteraction: interactable_function$1,\n\t\t\t\tgetEventPosition: /*interactable_function_1*/ ctx[162]\n\t\t\t});\n\n\t\t\tif (/*shouldRenderInfoIndicator*/ ctx[22]) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif_block2.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderInfoIndicator*/ 4194304) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block_3$3(ctx);\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div1, null);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t\t/*div0_binding*/ ctx[161](null);\n\t\t\tif (if_block2) if_block2.d();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (1599:8) {#if shouldRenderFooter}\nfunction create_if_block$7(ctx) {\n\tlet tablist;\n\tlet t;\n\tlet tabpanels;\n\tlet current;\n\n\tconst tablist_spread_levels = [\n\t\t{ class: \"PinturaControlList\" },\n\t\t{ tabs: /*tabs*/ ctx[7] },\n\t\t/*tabsConfig*/ ctx[18]\n\t];\n\n\tlet tablist_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot_1$3,\n\t\t\t\t({ tab }) => ({ 216: tab }),\n\t\t\t\t({ tab }) => [0, 0, 0, 0, 0, 0, tab ? 1073741824 : 0]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tablist_spread_levels.length; i += 1) {\n\t\ttablist_props = assign(tablist_props, tablist_spread_levels[i]);\n\t}\n\n\ttablist = new TabList({ props: tablist_props });\n\ttablist.$on(\"select\", /*select_handler*/ ctx[160]);\n\n\tconst tabpanels_spread_levels = [\n\t\t{ class: \"PinturaControlPanels\" },\n\t\t{ panelClass: \"PinturaControlPanel\" },\n\t\t{ panels: /*panels*/ ctx[17] },\n\t\t/*tabsConfig*/ ctx[18]\n\t];\n\n\tlet tabpanels_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot$a,\n\t\t\t\t({ panel }) => ({ 215: panel }),\n\t\t\t\t({ panel }) => [0, 0, 0, 0, 0, 0, panel ? 536870912 : 0]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tabpanels_spread_levels.length; i += 1) {\n\t\ttabpanels_props = assign(tabpanels_props, tabpanels_spread_levels[i]);\n\t}\n\n\ttabpanels = new TabPanels({ props: tabpanels_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(tablist.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(tabpanels.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(tablist, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(tabpanels, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst tablist_changes = (dirty[0] & /*tabs, tabsConfig*/ 262272)\n\t\t\t? get_spread_update(tablist_spread_levels, [\n\t\t\t\t\ttablist_spread_levels[0],\n\t\t\t\t\tdirty[0] & /*tabs*/ 128 && { tabs: /*tabs*/ ctx[7] },\n\t\t\t\t\tdirty[0] & /*tabsConfig*/ 262144 && get_spread_object(/*tabsConfig*/ ctx[18])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[6] & /*tab*/ 1073741824 | dirty[7] & /*$$scope*/ 1) {\n\t\t\t\ttablist_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttablist.$set(tablist_changes);\n\n\t\t\tconst tabpanels_changes = (dirty[0] & /*panels, tabsConfig*/ 393216)\n\t\t\t? get_spread_update(tabpanels_spread_levels, [\n\t\t\t\t\ttabpanels_spread_levels[0],\n\t\t\t\t\ttabpanels_spread_levels[1],\n\t\t\t\t\tdirty[0] & /*panels*/ 131072 && { panels: /*panels*/ ctx[17] },\n\t\t\t\t\tdirty[0] & /*tabsConfig*/ 262144 && get_spread_object(/*tabsConfig*/ ctx[18])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[0] & /*$elasticityMultiplier, $imageRotation, locale, $imageRotationRange, cropRotationRange, imageZoomLevelMin, $imageZoomLevelRange, $imageZoomLevel*/ 511721496 | dirty[6] & /*panel*/ 536870912 | dirty[7] & /*$$scope*/ 1) {\n\t\t\t\ttabpanels_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttabpanels.$set(tabpanels_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(tablist.$$.fragment, local);\n\t\t\ttransition_in(tabpanels.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(tablist.$$.fragment, local);\n\t\t\ttransition_out(tabpanels.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(tablist, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(tabpanels, detaching);\n\t\t}\n\t};\n}\n\n// (1600:12) <TabList class=\"PinturaControlList\" {tabs} {...tabsConfig} on:select={({ detail }) => (transformSelected = detail)} let:tab >\nfunction create_default_slot_1$3(ctx) {\n\tlet span;\n\tlet t_value = /*tab*/ ctx[216].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[6] & /*tab*/ 1073741824 && t_value !== (t_value = /*tab*/ ctx[216].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (1630:59) \nfunction create_if_block_2$3(ctx) {\n\tlet rangeinput;\n\tlet current;\n\n\trangeinput = new RangeInput({\n\t\t\tprops: {\n\t\t\t\telasticity: /*$elasticityMultiplier*/ ctx[25] * /*rangeInputElasticity*/ ctx[43],\n\t\t\t\tbase: imageZoomLevelBase,\n\t\t\t\tmin: /*imageZoomLevelMin*/ ctx[23],\n\t\t\t\tmax: imageZoomLevelMax,\n\t\t\t\tvalueMin: /*$imageZoomLevelRange*/ ctx[27][0],\n\t\t\t\tvalueMax: /*$imageZoomLevelRange*/ ctx[27][1],\n\t\t\t\tvalue: /*$imageZoomLevel*/ ctx[28],\n\t\t\t\tlabelReset: /*locale*/ ctx[4].labelReset,\n\t\t\t\tvalueLabel: `${Math.round(/*$imageZoomLevel*/ ctx[28] * 100)}%`,\n\t\t\t\toninputstart: /*handleResizeStart*/ ctx[80],\n\t\t\t\toninputmove: /*handleResizeMove*/ ctx[81],\n\t\t\t\toninputend: /*handleResizeEnd*/ ctx[82]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(rangeinput.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(rangeinput, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst rangeinput_changes = {};\n\t\t\tif (dirty[0] & /*$elasticityMultiplier*/ 33554432) rangeinput_changes.elasticity = /*$elasticityMultiplier*/ ctx[25] * /*rangeInputElasticity*/ ctx[43];\n\t\t\tif (dirty[0] & /*imageZoomLevelMin*/ 8388608) rangeinput_changes.min = /*imageZoomLevelMin*/ ctx[23];\n\t\t\tif (dirty[0] & /*$imageZoomLevelRange*/ 134217728) rangeinput_changes.valueMin = /*$imageZoomLevelRange*/ ctx[27][0];\n\t\t\tif (dirty[0] & /*$imageZoomLevelRange*/ 134217728) rangeinput_changes.valueMax = /*$imageZoomLevelRange*/ ctx[27][1];\n\t\t\tif (dirty[0] & /*$imageZoomLevel*/ 268435456) rangeinput_changes.value = /*$imageZoomLevel*/ ctx[28];\n\t\t\tif (dirty[0] & /*locale*/ 16) rangeinput_changes.labelReset = /*locale*/ ctx[4].labelReset;\n\t\t\tif (dirty[0] & /*$imageZoomLevel*/ 268435456) rangeinput_changes.valueLabel = `${Math.round(/*$imageZoomLevel*/ ctx[28] * 100)}%`;\n\t\t\trangeinput.$set(rangeinput_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(rangeinput.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(rangeinput.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(rangeinput, detaching);\n\t\t}\n\t};\n}\n\n// (1617:16) {#if panel === cropUniqueId + '-rotation'}\nfunction create_if_block_1$4(ctx) {\n\tlet imagerotator;\n\tlet current;\n\n\timagerotator = new ImageRotator({\n\t\t\tprops: {\n\t\t\t\telasticity: /*$elasticityMultiplier*/ ctx[25] * /*rangeInputElasticity*/ ctx[43],\n\t\t\t\trotation: /*$imageRotation*/ ctx[14],\n\t\t\t\tlabelReset: /*locale*/ ctx[4].labelReset,\n\t\t\t\tvalueMin: /*$imageRotationRange*/ ctx[26][0],\n\t\t\t\tvalueMax: /*$imageRotationRange*/ ctx[26][1],\n\t\t\t\trotationMin: -/*cropRotationRange*/ ctx[3],\n\t\t\t\trotationMax: /*cropRotationRange*/ ctx[3],\n\t\t\t\toninputstart: /*handleRotateStart*/ ctx[70],\n\t\t\t\toninputmove: /*handleRotateMove*/ ctx[71],\n\t\t\t\toninputend: /*handleRotateEnd*/ ctx[72]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(imagerotator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(imagerotator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst imagerotator_changes = {};\n\t\t\tif (dirty[0] & /*$elasticityMultiplier*/ 33554432) imagerotator_changes.elasticity = /*$elasticityMultiplier*/ ctx[25] * /*rangeInputElasticity*/ ctx[43];\n\t\t\tif (dirty[0] & /*$imageRotation*/ 16384) imagerotator_changes.rotation = /*$imageRotation*/ ctx[14];\n\t\t\tif (dirty[0] & /*locale*/ 16) imagerotator_changes.labelReset = /*locale*/ ctx[4].labelReset;\n\t\t\tif (dirty[0] & /*$imageRotationRange*/ 67108864) imagerotator_changes.valueMin = /*$imageRotationRange*/ ctx[26][0];\n\t\t\tif (dirty[0] & /*$imageRotationRange*/ 67108864) imagerotator_changes.valueMax = /*$imageRotationRange*/ ctx[26][1];\n\t\t\tif (dirty[0] & /*cropRotationRange*/ 8) imagerotator_changes.rotationMin = -/*cropRotationRange*/ ctx[3];\n\t\t\tif (dirty[0] & /*cropRotationRange*/ 8) imagerotator_changes.rotationMax = /*cropRotationRange*/ ctx[3];\n\t\t\timagerotator.$set(imagerotator_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(imagerotator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(imagerotator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(imagerotator, detaching);\n\t\t}\n\t};\n}\n\n// (1610:12) <TabPanels class=\"PinturaControlPanels\" panelClass=\"PinturaControlPanel\" {panels} {...tabsConfig} let:panel >\nfunction create_default_slot$a(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_1$4, create_if_block_2$3];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*panel*/ ctx[215] === /*cropUniqueId*/ ctx[92] + '-rotation') return 0;\n\t\tif (/*panel*/ ctx[215] === /*cropUniqueId*/ ctx[92] + '-zoom') return 1;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type(ctx))) {\n\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block) {\n\t\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (1598:4) \nfunction create_footer_slot$6(ctx) {\n\tlet div;\n\tlet current;\n\tlet if_block = /*shouldRenderFooter*/ ctx[19] && create_if_block$7(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[16]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*shouldRenderFooter*/ ctx[19]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderFooter*/ 524288) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$7(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 65536) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[16]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\nfunction create_fragment$k(ctx) {\n\tlet util;\n\tlet updating_root;\n\tlet current;\n\n\tfunction util_root_binding(value) {\n\t\t/*util_root_binding*/ ctx[163](value);\n\t}\n\n\tlet util_props = {\n\t\thasHeader: /*shouldRenderToolbar*/ ctx[20],\n\t\t$$slots: {\n\t\t\tfooter: [create_footer_slot$6],\n\t\t\tmain: [create_main_slot$1],\n\t\t\theader: [create_header_slot$1]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tif (/*root*/ ctx[15] !== void 0) {\n\t\tutil_props.root = /*root*/ ctx[15];\n\t}\n\n\tutil = new Util({ props: util_props });\n\tbinding_callbacks.push(() => bind(util, 'root', util_root_binding));\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[164]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\t\t\tif (dirty[0] & /*shouldRenderToolbar*/ 1048576) util_changes.hasHeader = /*shouldRenderToolbar*/ ctx[20];\n\n\t\t\tif (dirty[0] & /*footerStyle, panels, tabsConfig, $elasticityMultiplier, $imageRotation, locale, $imageRotationRange, cropRotationRange, imageZoomLevelMin, $imageZoomLevelRange, $imageZoomLevel, tabs, transformSelected, shouldRenderFooter, $imageCropRect, shouldRenderInfoIndicator, stageRef, cropEnableZoom, $rootRect, imageSelectionRectOffset, $isActive, cropImageSelectionCornerStyle, shouldRenderImageSelection, canCenter, $recenterOpacity, $recenterOffset, shouldRenderImageSelectionRecenterButton, cropTools*/ 2146402302 | dirty[7] & /*$$scope*/ 1) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tif (!updating_root && dirty[0] & /*root*/ 32768) {\n\t\t\t\tupdating_root = true;\n\t\t\t\tutil_changes.root = /*root*/ ctx[15];\n\t\t\t\tadd_flush_callback(() => updating_root = false);\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nconst imageZoomLevelMax = 1;\nconst imageZoomLevelBase = 0;\nconst interactable_function$1 = (e, element) => e.target === element;\n\nfunction instance$k($$self, $$props, $$invalidate) {\n\tlet hasCropSelectPresetOptions;\n\tlet cropTools;\n\tlet imageZoomLevelMin;\n\tlet imageSelectionOffset;\n\tlet imageSelectionCenter;\n\tlet imageSelectionCenteredRect;\n\tlet isImageSelectionDisplayed;\n\tlet isImageSelectionCentered;\n\tlet isResizingSelection;\n\tlet isMaxSelectionRect;\n\tlet isOverlayMode;\n\tlet canZoomToCenter;\n\tlet canCenter;\n\tlet shouldRenderInfoIndicator;\n\tlet shouldRenderImageSelection;\n\tlet shouldRenderImageSelectionRecenterButton;\n\tlet imageSelectionRectOffset;\n\tlet hasPlentyVerticalSpace;\n\tlet shouldRenderPresetSelect;\n\tlet shouldRenderToolbar;\n\tlet couldRenderZoomInput;\n\tlet shouldRenderZoomInput;\n\tlet shouldRenderFooter;\n\tlet tabsConfig;\n\tlet tabs;\n\tlet panels;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(12, $isActive = $$value)), isActive);\n\n\tlet $isAnimated;\n\tlet $env;\n\tlet $imageSelectionGuides;\n\tlet $stagePadded;\n\tlet $imagePreviewModifiers;\n\tlet $imageSelectionRectPresentation;\n\tlet $isInteracting;\n\tlet $imageIsStatic;\n\tlet $imageCropRect;\n\tlet $imageScalar;\n\tlet $presentationScalar;\n\tlet $utilRectPadded;\n\tlet $imageSelectionRectSnapshot;\n\tlet $imageSelectionRect;\n\tlet $stageRect;\n\tlet $isTransformingImage;\n\tlet $imageCropRangeAspectRatio;\n\tlet $imageSize;\n\tlet $imageRotation;\n\tlet $imageCropLimitToImage;\n\tlet $imageCropMinSize;\n\tlet $rootRect;\n\tlet $imageCropRectIntent;\n\tlet $imageCropRange;\n\tlet $imageCropRectOrigin;\n\tlet $imageCropAspectRatio;\n\tlet $imageCropMaxSize;\n\tlet $imageStaticVisualCorners;\n\tlet $imageSelectionRectIntent;\n\tlet $utilTools;\n\tlet $imageOutputSize;\n\tlet $selectedPresetIndex;\n\tlet $formattedCropPresetOptions;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $redrawTrigger;\n\tlet $elasticityMultiplier;\n\tlet $imageRotationRange;\n\tlet $imageZoomLevelRange;\n\tlet $imageZoomLevel;\n\tlet $recenterOpacity;\n\tlet $recenterOffset;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\tconst name = 'crop';\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { stores } = $$props;\n\tlet { cropImageSelectionCornerStyle = 'circle' } = $$props;\n\n\tlet { cropWillRenderImageSelectionGuides = (interaction, interactionFraction) => {\n\t\tconst isRotating = interaction == 'rotate';\n\n\t\treturn {\n\t\t\trows: isRotating ? 5 : 3,\n\t\t\tcols: isRotating ? 5 : 3,\n\t\t\topacity: interactionFraction * 0.25\n\t\t};\n\t} } = $$props;\n\n\tlet { cropAutoCenterImageSelectionTimeout = undefined } = $$props;\n\tlet { cropEnableZoomMatchImageAspectRatio = true } = $$props;\n\tlet { cropEnableRotateMatchImageAspectRatio = 'never' } = $$props;\n\tlet { cropEnableRotationInput = true } = $$props;\n\tlet { cropEnableZoom = true } = $$props;\n\tlet { cropEnableZoomInput = true } = $$props;\n\tlet { cropEnableZoomAutoHide = true } = $$props;\n\tlet { cropEnableImageSelection = true } = $$props;\n\tlet { cropEnableInfoIndicator = false } = $$props;\n\tlet { cropEnableZoomTowardsWheelPosition = true } = $$props;\n\tlet { cropEnableLimitWheelInputToCropSelection = true } = $$props;\n\tlet { cropEnableCenterImageSelection = true } = $$props;\n\tlet { cropEnableButtonRotateLeft = true } = $$props;\n\tlet { cropEnableButtonRotateRight = false } = $$props;\n\tlet { cropEnableButtonFlipHorizontal = true } = $$props;\n\tlet { cropEnableButtonFlipVertical = false } = $$props;\n\tlet { cropSelectPresetOptions = undefined } = $$props;\n\tlet { cropEnableSelectPreset = true } = $$props;\n\tlet { cropEnableFilterMatchAspectRatio = true } = $$props;\n\tlet { cropSelectPresetFilter = false } = $$props;\n\tlet { cropEnableButtonToggleCropLimit = false } = $$props;\n\tlet { cropWillRenderTools = passthrough } = $$props;\n\tlet { cropActiveTransformTool = 'rotation' } = $$props;\n\tlet { cropMinimizeToolbar = 'auto' } = $$props;\n\tlet { cropInteractionFocus = 'image' } = $$props;\n\tlet { cropRotationRange = QUART_PI } = $$props;\n\tlet { cropMaskOpacity = 0.85 } = $$props;\n\tlet { locale = {} } = $$props;\n\n\t// context\n\tconst isAnimated = getContext('isAnimated');\n\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(138, $isAnimated = value));\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(25, $elasticityMultiplier = value));\n\tconst redrawTrigger = getContext('redrawTrigger');\n\tcomponent_subscribe($$self, redrawTrigger, value => $$invalidate(158, $redrawTrigger = value));\n\tconst imageIsStatic = getContext('imageIsStatic');\n\tcomponent_subscribe($$self, imageIsStatic, value => $$invalidate(144, $imageIsStatic = value));\n\tconst imageStaticVisualCorners = getContext('imageStaticVisualCorners');\n\tcomponent_subscribe($$self, imageStaticVisualCorners, value => $$invalidate(179, $imageStaticVisualCorners = value));\n\n\t// state\n\tlet interaction = 'idle';\n\n\t// formatted crop select options\n\tconst formattedCropPresetOptions = writable();\n\n\tcomponent_subscribe($$self, formattedCropPresetOptions, value => $$invalidate(155, $formattedCropPresetOptions = value));\n\n\t// #region helpers\n\tconst isCustomCrop = () => $imageCropAspectRatio === undefined;\n\n\tconst turnAspectRatio = aspectRatio => 1 / aspectRatio;\n\n\tconst applyCropPresetFilter = filter => {\n\t\t// no change\n\t\tif (!cropEnableFilterMatchAspectRatio || cropSelectPresetFilter === filter) return;\n\n\t\t// change\n\t\t$$invalidate(94, cropSelectPresetFilter = filter);\n\n\t\t// square or free, exit\n\t\tif (!$imageCropAspectRatio || $imageCropAspectRatio === 1) return;\n\n\t\tif (!hasValidRotatedCropAspectRatio()) return;\n\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = turnAspectRatio($imageCropAspectRatio), $imageCropAspectRatio);\n\t};\n\n\tconst hasValidRotatedCropAspectRatio = () => {\n\t\t// no options available, forced crop aspect ratio\n\t\tif ($imageCropAspectRatio === 1 || !hasCropSelectPresetOptions) return false;\n\n\t\t// get rotated\n\t\tconst rotatedImageCropAspectRatio = turnAspectRatio($imageCropAspectRatio);\n\n\t\t// options available but no valid option in list\n\t\tif (!flattenOptions($formattedCropPresetOptions).find(([aspectRatio]) => aspectRatio === rotatedImageCropAspectRatio)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t};\n\n\tconst isCropMaxSize = (imageCropRect, imageSize, imageRotation) => isRotatedSideways(imageRotation)\n\t? imageSize.width === Math.round(imageCropRect.height) || imageSize.height === Math.round(imageCropRect.width)\n\t: imageSize.width === Math.round(imageCropRect.width) || imageSize.height === Math.round(imageCropRect.height);\n\n\tconst isCropCentered = (imageCropRect, imageSize, imageRotation) => {\n\t\tconst imageSizeRotated = sizeApply(sizeRotate(sizeClone(imageSize), imageRotation), v => Math.abs(Math.round(v)));\n\t\tconst imageCenter = sizeCenter(imageSizeRotated);\n\t\tconst cropCenter = rectCenter(imageCropRect);\n\t\treturn vectorEqual(imageCenter, cropCenter);\n\t};\n\n\tconst canMatchCropAspectRatioToRotation = () => // is custom crop mode\n\t(isCustomCrop() || // can match preset crop and preset is available\n\tcropEnableRotateMatchImageAspectRatio === 'always' && hasValidRotatedCropAspectRatio()) && isCropCentered($imageCropRect, $imageSize, $imageRotation) && isCropMaxSize($imageCropRect, $imageSize, $imageRotation);\n\n\tconst applyRotation = value => {\n\t\tif (cropEnableRotateMatchImageAspectRatio !== 'never' && canMatchCropAspectRatioToRotation()) {\n\t\t\tset_store_value(imageRotation, $imageRotation += value, $imageRotation);\n\t\t\tconst isRotated = isRotatedSideways($imageRotation);\n\t\t\tconst w = isRotated ? $imageSize.height : $imageSize.width;\n\t\t\tconst h = isRotated ? $imageSize.width : $imageSize.height;\n\t\t\tset_store_value(imageCropRect, $imageCropRect = rectCreate(0, 0, w, h), $imageCropRect);\n\t\t\tif (!isCustomCrop()) set_store_value(imageCropAspectRatio, $imageCropAspectRatio = getAspectRatio(w, h), $imageCropAspectRatio);\n\t\t} else {\n\t\t\tset_store_value(imageRotation, $imageRotation += value, $imageRotation);\n\t\t}\n\t};\n\n\t//#endregion\n\tconst { history, env, isInteracting, isInteractingFraction, isTransformingImage, rootRect, stageRect, utilRect, utilRectPadded, rootLineColor, allowPan, allowZoom, allowPlayPause, rangeInputElasticity, presentationScalar, utilTools, // effect filtering\n\timagePreviewModifiers, imageOutlineOpacity, // crop selection\n\timageFlipX, imageFlipY, imageRotation, imageRotationRange, imageOutputSize, imageSelectionRect, imageSelectionRectSnapshot, imageSelectionRectIntent, imageSelectionRectPresentation, imageCropRectIntent, imageCropRectOrigin, imageCropRect, imageCropMinSize, imageCropMaxSize, imageCropRange, imageCropAspectRatio, imageCropLimitToImage, imageSize, imageScalar, imageOverlayMarkup, stagePadded, stageRecenter } = stores;\n\n\tcomponent_subscribe($$self, env, value => $$invalidate(139, $env = value));\n\tcomponent_subscribe($$self, isInteracting, value => $$invalidate(143, $isInteracting = value));\n\tcomponent_subscribe($$self, isTransformingImage, value => $$invalidate(172, $isTransformingImage = value));\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(24, $rootRect = value));\n\tcomponent_subscribe($$self, stageRect, value => $$invalidate(150, $stageRect = value));\n\tcomponent_subscribe($$self, utilRectPadded, value => $$invalidate(147, $utilRectPadded = value));\n\tcomponent_subscribe($$self, presentationScalar, value => $$invalidate(146, $presentationScalar = value));\n\tcomponent_subscribe($$self, utilTools, value => $$invalidate(181, $utilTools = value));\n\tcomponent_subscribe($$self, imagePreviewModifiers, value => $$invalidate(171, $imagePreviewModifiers = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(157, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(156, $imageFlipY = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(14, $imageRotation = value));\n\tcomponent_subscribe($$self, imageRotationRange, value => $$invalidate(26, $imageRotationRange = value));\n\tcomponent_subscribe($$self, imageOutputSize, value => $$invalidate(182, $imageOutputSize = value));\n\tcomponent_subscribe($$self, imageSelectionRect, value => $$invalidate(149, $imageSelectionRect = value));\n\tcomponent_subscribe($$self, imageSelectionRectSnapshot, value => $$invalidate(148, $imageSelectionRectSnapshot = value));\n\tcomponent_subscribe($$self, imageSelectionRectIntent, value => $$invalidate(180, $imageSelectionRectIntent = value));\n\tcomponent_subscribe($$self, imageSelectionRectPresentation, value => $$invalidate(142, $imageSelectionRectPresentation = value));\n\tcomponent_subscribe($$self, imageCropRectIntent, value => $$invalidate(174, $imageCropRectIntent = value));\n\tcomponent_subscribe($$self, imageCropRectOrigin, value => $$invalidate(176, $imageCropRectOrigin = value));\n\tcomponent_subscribe($$self, imageCropRect, value => $$invalidate(13, $imageCropRect = value));\n\tcomponent_subscribe($$self, imageCropMinSize, value => $$invalidate(153, $imageCropMinSize = value));\n\tcomponent_subscribe($$self, imageCropMaxSize, value => $$invalidate(178, $imageCropMaxSize = value));\n\tcomponent_subscribe($$self, imageCropRange, value => $$invalidate(175, $imageCropRange = value));\n\tcomponent_subscribe($$self, imageCropAspectRatio, value => $$invalidate(177, $imageCropAspectRatio = value));\n\tcomponent_subscribe($$self, imageCropLimitToImage, value => $$invalidate(152, $imageCropLimitToImage = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(151, $imageSize = value));\n\tcomponent_subscribe($$self, imageScalar, value => $$invalidate(145, $imageScalar = value));\n\tcomponent_subscribe($$self, stagePadded, value => $$invalidate(141, $stagePadded = value));\n\n\t// #endregion\n\t// #region adjusting crop selection\n\t// let presentationScalarSnapshot;\n\t// let imageSelectionRectMinSize;\n\t// let imageSelectionRectMaxSize;\n\tlet imageSelectionTranslator;\n\n\tconst handleSelectionGrab = () => {\n\t\tinteraction = 'select';\n\n\t\t// now interacting\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\n\t\t// we remember the current view rect and crop rect, because that is the crop rect we use as a starting point to transform while dragging\n\t\tset_store_value(imageSelectionRectSnapshot, $imageSelectionRectSnapshot = rectClone$1($imageSelectionRect), $imageSelectionRectSnapshot);\n\n\t\t// which translator to use\n\t\timageSelectionTranslator = $imageIsStatic\n\t\t? translateStaticSelection\n\t\t: translateImageSelection;\n\t};\n\n\tconst handleSelectionDrag = ({ detail }) => {\n\t\tconst { boundsLimited, boundsIntent } = imageSelectionTranslator(detail.direction, detail.translation);\n\n\t\t// now transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = true, $isTransformingImage);\n\n\t\t// update actual image selection rectangle\n\t\tset_store_value(imageSelectionRectIntent, $imageSelectionRectIntent = boundsIntent, $imageSelectionRectIntent); // intent needs to be updated first because has no listeners attached\n\n\t\tset_store_value(imageSelectionRect, $imageSelectionRect = boundsLimited, $imageSelectionRect);\n\t};\n\n\tconst handleSelectionRelease = ({ detail }) => {\n\t\tconst { boundsLimited } = imageSelectionTranslator(detail.direction, detail.translation);\n\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// we're no longer interacting with the image selection, we need to set this here so the image selection presentation is animated when applying the new bounds below\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// no more intent as we're finalizing the selection, so before setting the final selection, we set this to undefined | intent needs to be updated first because has no listeners attached\n\t\tset_store_value(imageSelectionRectIntent, $imageSelectionRectIntent = undefined, $imageSelectionRectIntent);\n\n\t\t// confirm the limited rect if actually made a change\n\t\tif (vectorLength(detail.translation)) {\n\t\t\tset_store_value(imageSelectionRect, $imageSelectionRect = boundsLimited, $imageSelectionRect);\n\t\t\thistory.write();\n\t\t}\n\n\t\t// need to set this to undefined after setting the final rect, the snapshot is used to calculate the crop rect transform\n\t\tset_store_value(imageSelectionRectSnapshot, $imageSelectionRectSnapshot = undefined, $imageSelectionRectSnapshot);\n\n\t\t// done interacting with selection\n\t\tinteraction = undefined;\n\t};\n\n\tconst translateStaticSelection = (target, translate) => {\n\t\t// - selection may grow to max bounds (util bounds when _not_ static image)\n\t\t// - when image is static selection may grow to image polygon edges\n\t\t// - when not static image the image preview(!) is scaled to fit the selection, actual image size is not affected\n\t\t// - we always need to make sure the selection adheres to the aspect ratio of the min size\n\t\tconst directionTranslation = { target, translate };\n\n\t\tconst imageSelectionRectMinSize = sizeScale(sizeClone($imageCropMinSize), $presentationScalar);\n\t\tconst imageSelectionRectMaxSize = sizeScale(sizeClone($imageCropMaxSize), $presentationScalar);\n\n\t\t// make sure not smaller\n\t\tlet rectIntended = limitRectDirectionTranslation($imageSelectionRectSnapshot, directionTranslation, { ...$utilRectPadded, x: 0, y: 0 }, {\n\t\t\taspectRatio: $imageCropAspectRatio,\n\t\t\tminSize: imageSelectionRectMinSize,\n\t\t\tmaxSize: imageSelectionRectMaxSize\n\t\t});\n\n\t\t// limit selection rect to util bounds\n\t\trectIntended = rectLimitInRect(rectIntended, { ...$utilRectPadded, x: 0, y: 0 }, $imageCropAspectRatio);\n\n\t\t// no limits\n\t\tif (!$imageCropLimitToImage) {\n\t\t\treturn {\n\t\t\t\tboundsLimited: rectIntended,\n\t\t\t\tboundsIntent: rectIntended\n\t\t\t};\n\t\t}\n\n\t\t// limit to image\n\t\tlet rectLimited = getRectLimitedToQuad($imageSelectionRectSnapshot, rectIntended, directionTranslation, $imageStaticVisualCorners, {\n\t\t\taspectRatio: $imageCropAspectRatio,\n\t\t\tminSize: imageSelectionRectMinSize,\n\t\t\tmaxSize: imageSelectionRectMaxSize\n\t\t});\n\n\t\treturn {\n\t\t\tboundsLimited: rectLimited,\n\t\t\tboundsIntent: rectLimited\n\t\t};\n\t};\n\n\tconst translateImageSelection = (target, translate) => {\n\t\tconst directionTranslation = { target, translate };\n\t\tconst imageSelectionRectMinSize = sizeScale(sizeClone($imageCropMinSize), $presentationScalar);\n\t\tconst imageSelectionRectMaxSize = sizeScale(sizeClone($imageCropMaxSize), $presentationScalar);\n\n\t\tconst rectIntended = applyRectDirectionTranslation($imageSelectionRectSnapshot, directionTranslation, {\n\t\t\taspectRatio: $imageCropAspectRatio,\n\t\t\t// used to make sure that min size is respected when dragging from centered anchor point (dragging edge), if we don't do this we get unwanted elastic effects when the presented image is scaled while dragging an edge\n\t\t\tminSize: imageSelectionRectMinSize\n\t\t});\n\n\t\t// limit rectangle to util bounds\n\t\tconst rectLimited = limitRectDirectionTranslation($imageSelectionRectSnapshot, directionTranslation, { ...$utilRectPadded, x: 0, y: 0 }, {\n\t\t\taspectRatio: $imageCropAspectRatio,\n\t\t\tminSize: imageSelectionRectMinSize,\n\t\t\tmaxSize: imageSelectionRectMaxSize\n\t\t});\n\n\t\treturn {\n\t\t\tboundsLimited: rectLimited,\n\t\t\tboundsIntent: rectIntended\n\t\t};\n\t};\n\n\t// #endregion\n\t// #region rotating\n\tconst handleRotateStart = () => {\n\t\tinteraction = 'rotate';\n\n\t\t// now interacting with view\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\n\t\t// we need to know the origin of the crop so we can \"shrink\" the image to fit the crop rect while rotating\n\t\tset_store_value(imageCropRectOrigin, $imageCropRectOrigin = rectClone$1($imageCropRect), $imageCropRectOrigin);\n\t};\n\n\tconst handleRotateMove = value => {\n\t\t// now transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = true, $isTransformingImage);\n\n\t\tset_store_value(imageRotation, $imageRotation = value, $imageRotation); // will auto validate\n\t};\n\n\tconst handleRotateEnd = value => {\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// we're done interacting\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// apply our final rotation value\n\t\tset_store_value(imageRotation, $imageRotation = value, $imageRotation);\n\n\t\thistory.write();\n\n\t\t// done, so we no longer need to \"shrink\" the image\n\t\tset_store_value(imageCropRectOrigin, $imageCropRectOrigin = undefined, $imageCropRectOrigin);\n\t};\n\n\t// #endregion\n\t// #region moving\n\tlet interactionCropRect = undefined;\n\n\tlet interactionCropRectForce = undefined;\n\n\tconst handleImageDragStart = () => {\n\t\tinteraction = 'pan';\n\t\tinteractionCropRectForce = undefined;\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\t\tinteractionCropRect = rectClone$1($imageCropRect);\n\t};\n\n\tconst handleImageDrag = ({ detail }) => {\n\t\t// now transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = true, $isTransformingImage);\n\n\t\tmanipulateImage(detail);\n\t};\n\n\tconst handleImageDragEnd = ({ detail }) => {\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// done interacting\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// apply translation to the crop rect only if did make changes\n\t\tif (vectorLength(detail.translation) > 0 || detail.scalar !== 0) {\n\t\t\tmanipulateImage(detail);\n\t\t\thistory.write();\n\t\t}\n\n\t\t// no intent (needs to be set before crop rect is updated)\n\t\tset_store_value(imageCropRectIntent, $imageCropRectIntent = undefined, $imageCropRectIntent);\n\n\t\t// now done\n\t\tinteractionCropRect = undefined;\n\t};\n\n\tconst handleImageDragRelease = ({ detail: { translation } }) => {\n\t\t// flip translation direction as we are dragging crop selection\n\t\tif ($imageIsStatic) translation = vectorInvert(vectorClone(translation));\n\n\t\tinteractionCropRectForce = translation;\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\t};\n\n\tconst manipulateImage = ({ translation, scalar }) => {\n\t\t// flip translation direction as we are dragging crop selection\n\t\tif ($imageIsStatic) {\n\t\t\tscalar = 1;\n\t\t\ttranslation = vectorInvert(vectorClone(translation));\n\t\t}\n\n\t\tconst imageSelectionRectZoomFactor = Math.min($imageSelectionRect.width / $imageCropRect.width, $imageSelectionRect.height / $imageCropRect.height);\n\t\tconst scaledTranslation = vectorMultiply(vectorClone(translation), 1 / imageSelectionRectZoomFactor);\n\n\t\t// while we're interacting we apply changes to the original crop rectangle, after we apply a force\n\t\tlet cropIntent;\n\n\t\tif (!interactionCropRectForce) {\n\t\t\tcropIntent = rectTranslate$1(rectClone$1(interactionCropRect), vectorInvert(vectorClone(scaledTranslation)));\n\t\t\tif (scalar !== undefined) rectScale$1(cropIntent, 1 / scalar);\n\t\t} else {\n\t\t\t// we apply the force to the existing crop rect so animation is not borked\n\t\t\tconst forceTranslation = vectorSubtract(vectorClone(interactionCropRectForce), translation);\n\n\t\t\tinteractionCropRectForce = translation;\n\t\t\tcropIntent = rectTranslate$1(rectClone$1($imageCropRect), forceTranslation);\n\t\t}\n\n\t\t// update crop rect\n\t\tset_store_value(imageCropRectIntent, $imageCropRectIntent = cropIntent, $imageCropRectIntent); // auto calculates an elastic effect if bounds exceeded (needs to be set before crop rect is updated)\n\n\t\tset_store_value(imageCropRect, $imageCropRect = cropIntent, $imageCropRect); // auto limits to bounds if needed\n\t};\n\n\t// #endregion\n\t// #region resize with range input\n\tconst IMAGE_ZOOM_LEVEL_MIN = -1;\n\n\tconst calculateZoomLevel = (imageSize, size, imageRotation) => {\n\t\tif (isRotatedSideways(imageRotation)) {\n\t\t\treturn 1 - 1 / Math.min(imageSize.height / size.width, imageSize.width / size.height);\n\t\t}\n\n\t\treturn 1 - 1 / Math.min(imageSize.width / size.width, imageSize.height / size.height);\n\t};\n\n\tconst imageCropRangeAspectRatio = derived([imageCropRange, imageCropRect], ([$imageCropRange, $imageCropRect], set) => {\n\t\tif (!$imageCropRect) return;\n\t\tconst [minSize, maxSize] = $imageCropRange;\n\t\tconst aspectRatio = rectAspectRatio($imageCropRect);\n\n\t\tset([\n\t\t\tsizeCreateFromRect(rectApply(rectCoverRect(minSize, aspectRatio), fixPrecision)),\n\t\t\tsizeCreateFromRect(rectApply(rectContainRect(maxSize, aspectRatio), fixPrecision))\n\t\t]);\n\t});\n\n\tcomponent_subscribe($$self, imageCropRangeAspectRatio, value => $$invalidate(173, $imageCropRangeAspectRatio = value));\n\n\t// this is the max value range that can be set (triggers white range indicator bar)\n\tconst imageZoomLevelRange = derived(\n\t\t[\n\t\t\timageSize,\n\t\t\timageCropLimitToImage,\n\t\t\timageCropMinSize,\n\t\t\timageCropMaxSize,\n\t\t\timageCropRange,\n\t\t\timageRotation\n\t\t],\n\t\t([\n\t\t\t\t$imageSize,\n\t\t\t\t$imageCropLimitToImage,\n\t\t\t\t$imageCropMinSize,\n\t\t\t\t$imageCropMaxSize,\n\t\t\t\t$imageCropRange,\n\t\t\t\t$imageRotation\n\t\t\t], set) => {\n\t\t\tif (!$imageSize) return;\n\t\t\tconst rangeMinSize = $imageCropRange[0];\n\t\t\tconst rangeMaxSize = $imageCropRange[1];\n\t\t\tlet minZoom;\n\t\t\tlet maxZoom;\n\n\t\t\t// can't zoom out\n\t\t\tif ($imageCropLimitToImage) {\n\t\t\t\tminZoom = calculateZoomLevel($imageSize, rangeMaxSize, $imageRotation);\n\t\t\t\tmaxZoom = Math.min(rangeMinSize.width / $imageCropMinSize.width, rangeMinSize.height / $imageCropMinSize.height);\n\t\t\t} else {\n\t\t\t\tminZoom = IMAGE_ZOOM_LEVEL_MIN;\n\t\t\t\tmaxZoom = 1;\n\t\t\t}\n\n\t\t\tconst range = [minZoom, maxZoom].map(v => fixPrecision(v));\n\t\t\tset(range);\n\t\t}\n\t);\n\n\tcomponent_subscribe($$self, imageZoomLevelRange, value => $$invalidate(27, $imageZoomLevelRange = value));\n\n\tconst imageZoomLevel = derived([imageSize, imageCropRect, imageCropRange, imageRotation], ([$imageSize, $imageCropRect, $imageCropRange, $imageRotation], set) => {\n\t\t// need to check if this value is set, could be that it's empty while loading a new image\n\t\tif (!$imageSize || !$imageCropRect) return set(0);\n\n\t\tlet z;\n\t\tconst rangeMinSize = $imageCropRange[0];\n\t\tconst rangeMaxSize = $imageCropRange[1];\n\t\tconst currentCropWidth = $imageCropRect.width;\n\t\tconst currentCropHeight = $imageCropRect.height;\n\t\tconst currentCropAspectRatio = rectAspectRatio($imageCropRect);\n\n\t\tconst imageRect = isRotatedSideways($imageRotation)\n\t\t? sizeCreate($imageSize.height, $imageSize.width)\n\t\t: $imageSize;\n\n\t\tconst imageCropMaxRect = rectContainRect(imageRect, currentCropAspectRatio);\n\n\t\tif (currentCropWidth <= imageCropMaxRect.width || currentCropHeight <= imageCropMaxRect.height) {\n\t\t\t// zoomed in\n\t\t\tconst w = imageCropMaxRect.width - rangeMinSize.width;\n\n\t\t\tconst h = imageCropMaxRect.height - rangeMinSize.height;\n\n\t\t\t// cannot zoom in\n\t\t\tif (w === 0 || h === 0) {\n\t\t\t\tz = 1;\n\t\t\t} else {\n\t\t\t\tz = 1 - Math.min((currentCropWidth - rangeMinSize.width) / w, (currentCropHeight - rangeMinSize.height) / h);\n\t\t\t}\n\t\t} else {\n\t\t\t// zoomed out\n\t\t\tconst w = rangeMaxSize.width - imageCropMaxRect.width;\n\n\t\t\tconst h = rangeMaxSize.height - imageCropMaxRect.height;\n\t\t\tconst r = rectContainRect({ width: w, height: h }, currentCropAspectRatio);\n\t\t\tz = -Math.min((currentCropWidth - imageCropMaxRect.width) / r.width, (currentCropHeight - imageCropMaxRect.height) / r.height);\n\t\t}\n\n\t\tset(z);\n\t});\n\n\tcomponent_subscribe($$self, imageZoomLevel, value => $$invalidate(28, $imageZoomLevel = value));\n\n\tconst snapshotCropRect = () => {\n\t\tinteractionCropRect = rectClone$1($imageCropRect);\n\t};\n\n\tconst resizeImage = zoom => {\n\t\tconst aspectRatio = rectAspectRatio(interactionCropRect);\n\t\tlet targetWidth;\n\t\tlet targetHeight;\n\t\tlet r;\n\n\t\tconst imageRect = isRotatedSideways($imageRotation)\n\t\t? sizeCreate($imageSize.height, $imageSize.width)\n\t\t: $imageSize;\n\n\t\tconst imageCropMaxRect = rectContainRect(imageRect, aspectRatio);\n\n\t\tif (zoom >= 0) {\n\t\t\t// zoom in\n\t\t\tconst rangeWidth = imageCropMaxRect.width - $imageCropRange[0].width;\n\n\t\t\tconst rangeHeight = imageCropMaxRect.height - $imageCropRange[0].height;\n\t\t\ttargetWidth = imageCropMaxRect.width - rangeWidth * zoom;\n\t\t\ttargetHeight = imageCropMaxRect.height - rangeHeight * zoom;\n\t\t\tr = rectCoverRect({ width: targetWidth, height: targetHeight }, aspectRatio);\n\t\t} else {\n\t\t\t// zoom out\n\t\t\tconst rangeWidth = $imageCropRange[1].width - imageCropMaxRect.width;\n\n\t\t\tconst rangeHeight = $imageCropRange[1].height - imageCropMaxRect.height;\n\t\t\ttargetWidth = imageCropMaxRect.width + rangeWidth * -zoom;\n\t\t\ttargetHeight = imageCropMaxRect.height + rangeHeight * -zoom;\n\t\t\tr = rectContainRect({ width: targetWidth, height: targetHeight }, aspectRatio);\n\t\t}\n\n\t\ttargetWidth = r.width;\n\t\ttargetHeight = r.height;\n\t\tconst targetX = interactionCropRect.x + interactionCropRect.width * 0.5 - targetWidth * 0.5;\n\t\tconst targetY = interactionCropRect.y + interactionCropRect.height * 0.5 - targetHeight * 0.5;\n\n\t\tset_store_value(\n\t\t\timageCropRect,\n\t\t\t$imageCropRect = {\n\t\t\t\tx: targetX,\n\t\t\t\ty: targetY,\n\t\t\t\twidth: targetWidth,\n\t\t\t\theight: targetHeight\n\t\t\t},\n\t\t\t$imageCropRect\n\t\t);\n\t};\n\n\tconst handleResizeStart = () => {\n\t\tinteraction = 'zoom';\n\n\t\t// now interacting with view\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\n\t\tsnapshotCropRect();\n\t};\n\n\tconst handleResizeMove = value => {\n\t\t// now transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// value range from 0 (no zoom) to 1 (100% zoom, 1x1 pixel)\n\t\tresizeImage(value);\n\t};\n\n\tconst handleResizeEnd = value => {\n\t\tresizeImage(value);\n\t\thistory.write();\n\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// we're done interacting\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// now done\n\t\tinteractionCropRect = undefined;\n\t};\n\n\t//#endregion\n\t// #region resize with gesture (MacBook trackpad Safari)\n\tlet gestureOriginCropRect;\n\n\tconst handleGestureStart = () => {\n\t\tinteraction = 'zoom';\n\n\t\t// don't handle gesture as we're already handling input with interactable\n\t\tif (interactionCropRect) return;\n\n\t\tgestureOriginCropRect = rectClone$1($imageCropRect);\n\n\t\t// now interacting\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\t};\n\n\tconst handleGestureUpdate = ({ detail }) => {\n\t\t// don't handle gesture as we're already handling input with interactable\n\t\tif (!gestureOriginCropRect) return;\n\n\t\t// now transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = true, $isTransformingImage);\n\n\t\thandleScaleGesture(detail);\n\t};\n\n\tconst handleScaleGesture = scale => {\n\t\tconst cropIntent = rectScale$1(rectClone$1(gestureOriginCropRect), 1 / scale);\n\t\tset_store_value(imageCropRectIntent, $imageCropRectIntent = cropIntent, $imageCropRectIntent);\n\t\tset_store_value(imageCropRect, $imageCropRect = cropIntent, $imageCropRect);\n\t};\n\n\tconst handleGestureEnd = ({ detail }) => {\n\t\t// don't handle gesture as we're already handling input with interactable\n\t\tif (!gestureOriginCropRect) return;\n\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// no longer interacting\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\thandleScaleGesture(detail);\n\n\t\t// no intent (needs to be set before crop rect is updated)\n\t\tset_store_value(imageCropRectIntent, $imageCropRectIntent = undefined, $imageCropRectIntent);\n\n\t\tgestureOriginCropRect = undefined;\n\t\thistory.write();\n\t};\n\n\t// #endregion\n\t// #region resizing with wheel\n\tlet zoomHistoryTimeoutId;\n\n\tconst handleWheel = e => {\n\t\tconst stageWheelPosition = getEventPositionInStage(e, $rootRect, $stageRect);\n\n\t\t// only block input if wheel is used within image rectangle\n\t\tif (cropEnableLimitWheelInputToCropSelection && !rectContainsPoint($imageSelectionRect, stageWheelPosition)) return;\n\n\t\tinteraction = 'zoom';\n\n\t\t// now interacting\n\t\tset_store_value(isInteracting, $isInteracting = true, $isInteracting);\n\n\t\t// transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = true, $isTransformingImage);\n\n\t\t// don't run default actions, prevent other actions from running\n\t\te.preventDefault();\n\n\t\te.stopPropagation();\n\n\t\t// convert wheel delta to scalar\n\t\tconst delta = getWheelDelta(e);\n\n\t\tconst scalar = 1 + delta / 100;\n\n\t\t// get current crop rect\n\t\tconst currentCropRect = rectClone$1($imageCropRect);\n\n\t\t// if already zoomed in, block further zoom in instructions\n\t\tconst isMinSize = Math.min($imageCropRect.width / $imageCropMinSize.width, $imageCropRect.height / $imageCropMinSize.height) === 1;\n\n\t\t// if is fully zoomed out and trying to zoom out more and crop shape is free, fit image aspect ratio\n\t\tif (cropEnableZoomMatchImageAspectRatio && $imageCropLimitToImage) {\n\t\t\tconst isAtMaxCropSize = isCropMaxSize($imageCropRect, $imageSize, $imageRotation);\n\n\t\t\tif (isCustomCrop() && isAtMaxCropSize && delta > 0 && isImageSelectionCentered) {\n\t\t\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t\t\t// no longer transforming image\n\t\t\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t\t\tconst newCropRect = isRotatedSideways($imageRotation)\n\t\t\t\t? rectCreateFromSize({\n\t\t\t\t\t\theight: $imageSize.width,\n\t\t\t\t\t\twidth: $imageSize.height\n\t\t\t\t\t})\n\t\t\t\t: rectCreateFromSize($imageSize);\n\n\t\t\t\t// no change, exit\n\t\t\t\tif (rectEqual(currentCropRect, newCropRect)) return;\n\n\t\t\t\t// if we were previously zooming in we need to clear the timeout to prevent two history entries\n\t\t\t\tclearTimeout(zoomHistoryTimeoutId);\n\n\t\t\t\t// test if crop rect in history is same as new crop rect, this is possible when zooming in and out real quick\n\t\t\t\tif (rectEqual(history.state.crop, newCropRect)) return;\n\n\t\t\t\t// store new crop rect\n\t\t\t\tset_store_value(imageCropRect, $imageCropRect = newCropRect, $imageCropRect);\n\n\t\t\t\thistory.write();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// by default when zooming, zoom from center of crop rectangle\n\t\tlet origin = rectCenter($imageCropRect);\n\n\t\t// when zooming in, zoom in on the part of the image below the mouse cursor\n\t\tconst shouldZoomTowardsWheelPosition = cropEnableZoomTowardsWheelPosition && cropInteractionFocus !== 'selection';\n\n\t\tif (shouldZoomTowardsWheelPosition && delta < 0 && !isMinSize) {\n\t\t\tconst selectionOffset = vectorSubtract(vectorClone(stageWheelPosition), $imageSelectionRect);\n\t\t\tconst imageSelectionScale = Math.min($imageSelectionRect.width / $imageCropRect.width, $imageSelectionRect.height / $imageCropRect.height);\n\n\t\t\t// if wheel is inside image selection rectangle (slightly expanded version), we zoom based on position in the rectangle, if not, we use the selection center\n\t\t\tconst expandedImageSelection = rectScale$1(rectClone$1($imageSelectionRect), 1.1);\n\n\t\t\torigin = rectContainsPoint(expandedImageSelection, stageWheelPosition)\n\t\t\t? vectorAdd(rectClone$1($imageCropRect), vectorMultiply(selectionOffset, 1 / imageSelectionScale))\n\t\t\t: origin;\n\t\t}\n\n\t\tlet newCropRect = rectScale$1(rectClone$1($imageCropRect), scalar, origin);\n\n\t\t// determin if is new crop rect exceeds min or max size, if so, limit\n\t\tif (!sizeContains($imageCropRangeAspectRatio[1], newCropRect)) {\n\t\t\t// exceeds max size, limit to max size and position at new crop rect center\n\t\t\tnewCropRect = rectCreateWithCenter(rectCenter(newCropRect), $imageCropRangeAspectRatio[1]);\n\t\t}\n\n\t\tif (!sizeContains(newCropRect, $imageCropRangeAspectRatio[0])) {\n\t\t\t// exceeds min size, limit to min size and position at new crop rect center\n\t\t\tnewCropRect = rectCreateWithCenter(rectCenter(newCropRect), $imageCropRangeAspectRatio[0]);\n\t\t}\n\n\t\t// no change, exit\n\t\tif (rectEqual(currentCropRect, newCropRect, fixPrecision)) {\n\t\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t\t// no longer transforming image\n\t\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// attempt to update the rectangle, we use fixPrecision so the width and height are nice integers when at max zoom (this makes sure the `isMinSize` variable is set to true at this point)\n\t\tset_store_value(imageCropRect, $imageCropRect = rectApply(newCropRect, v => fixPrecision(v, 5)), $imageCropRect);\n\n\t\t// done!\n\t\tset_store_value(isInteracting, $isInteracting = false, $isInteracting);\n\n\t\t// no longer transforming image\n\t\tset_store_value(isTransformingImage, $isTransformingImage = false, $isTransformingImage);\n\n\t\t// write history timer\n\t\tclearTimeout(zoomHistoryTimeoutId);\n\n\t\tzoomHistoryTimeoutId = setTimeout(\n\t\t\t() => {\n\t\t\t\thistory.write();\n\t\t\t},\n\t\t\t500\n\t\t);\n\t};\n\n\t// #endregion\n\t// #region recenter\n\t// triggers the editor to center and scale up the crop\n\tconst handleRecenterAction = () => {\n\t\t// force recenter\n\t\tstageRecenter.set({});\n\t};\n\n\t// auto recenter after timeout\n\tlet cropAutoCenterImageSelectionTimeoutId;\n\n\t// animations\n\tconst recenterOpacity = spring(0, { precision: 0.0001 });\n\n\tcomponent_subscribe($$self, recenterOpacity, value => $$invalidate(29, $recenterOpacity = value));\n\tconst recenterOffset = spring();\n\tcomponent_subscribe($$self, recenterOffset, value => $$invalidate(30, $recenterOffset = value));\n\n\t//\n\t// enable seeing the image outside of the crop area, and disable the vignette effect\n\t//\n\tconst setPreviewModifiers = () => {\n\t\tset_store_value(\n\t\t\timagePreviewModifiers,\n\t\t\t$imagePreviewModifiers['crop'] = {\n\t\t\t\tmaskOpacity: cropMaskOpacity,\n\t\t\t\tmaskMarkupOpacity: cropMaskOpacity\n\t\t\t},\n\t\t\t$imagePreviewModifiers\n\t\t);\n\n\t\t// trigger store update\n\t\timagePreviewModifiers.set($imagePreviewModifiers);\n\t};\n\n\tconst clearPreviewModifiers = () => {\n\t\tdelete $imagePreviewModifiers['crop'];\n\n\t\t// trigger store update\n\t\timagePreviewModifiers.set($imagePreviewModifiers);\n\t};\n\n\t// #region crop selection presets\n\tconst selectedPresetIndex = derived([imageCropAspectRatio, imageOutputSize, formattedCropPresetOptions], ([$cropAspectRatio, $imageOutputSize, $formattedCropPresetOptions], set) => {\n\t\tif (!hasCropSelectPresetOptions) return;\n\t\tconst options = flattenOptions($formattedCropPresetOptions);\n\n\t\tconst matchedOptionValue = [...options].// to value\n\t\tmap(option => option[0]).// sort sizes first\n\t\tsort((a, b) => {\n\t\t\tif (isArray(a[0]) && !isArray(b[0])) return 1;\n\t\t\treturn -1;\n\t\t}).// match value\n\t\tfind(value => {\n\t\t\tif (isArray(value) && $imageOutputSize) {\n\t\t\t\t// size + aspect ratio\n\t\t\t\tconst [width, height] = value;\n\n\t\t\t\tconst outputSizeMatches = $imageOutputSize.width === width && $imageOutputSize.height === height;\n\t\t\t\tconst aspectRatioMatches = $cropAspectRatio === getAspectRatio(width, height);\n\t\t\t\treturn outputSizeMatches && aspectRatioMatches;\n\t\t\t}\n\n\t\t\t// aspect ratio\n\t\t\treturn value === $cropAspectRatio;\n\t\t});\n\n\t\t// no options found, exit\n\t\tif (!matchedOptionValue) return set(undefined);\n\n\t\tconst index = options.// to value\n\t\tmap(option => option[0]).// find index of matching value\n\t\tfindIndex(value => isArray(value)\n\t\t? arrayEqual(value, matchedOptionValue)\n\t\t: value === matchedOptionValue);\n\n\t\tset(index);\n\t});\n\n\tcomponent_subscribe($$self, selectedPresetIndex, value => $$invalidate(154, $selectedPresetIndex = value));\n\n\tconst getAspectRatioBySelectedIndex = (selectedIndex, options) => {\n\t\tif (!hasCropSelectPresetOptions || selectedIndex === -1 || selectedIndex === undefined) return;\n\t\tconst selectedValue = flattenOptions(options)[selectedIndex][0];\n\n\t\treturn !selectedValue\n\t\t? undefined\n\t\t: isArray(selectedValue)\n\t\t\t? getAspectRatio(selectedValue[0], selectedValue[1])\n\t\t\t: selectedValue;\n\t};\n\n\t// #endregion\n\t// #region crop guides\n\tconst imageSelectionGuides = derived([rootLineColor, imageSelectionRectPresentation, isInteractingFraction], ([$rootLineColor, $rect, $isInteractingFraction], set) => {\n\t\tconst { rows, cols, opacity } = cropWillRenderImageSelectionGuides(interaction, $isInteractingFraction);\n\t\tif (!$rect || opacity <= 0) return set([]);\n\t\tconst { x, y, width, height } = $rect;\n\t\tconst w = width / cols;\n\t\tconst h = height / rows;\n\t\tconst shapes = [];\n\n\t\t// rows\n\t\tfor (let r = 1; r <= rows - 1; r++) {\n\t\t\tconst yo = y + h * r;\n\n\t\t\tshapes.push({\n\t\t\t\tid: `image-selection-guide-row-${r}`,\n\t\t\t\tpoints: [vectorCreate(x, yo), vectorCreate(x + width, yo)],\n\t\t\t\topacity,\n\t\t\t\tstrokeWidth: 1,\n\t\t\t\tstrokeColor: $rootLineColor\n\t\t\t});\n\t\t}\n\n\t\t// cols\n\t\tfor (let c = 1; c <= cols - 1; c++) {\n\t\t\tconst xo = x + w * c;\n\n\t\t\tshapes.push({\n\t\t\t\tid: `image-selection-guide-col-${c}`,\n\t\t\t\tpoints: [vectorCreate(xo, y), vectorCreate(xo, y + height)],\n\t\t\t\topacity,\n\t\t\t\tstrokeWidth: 1,\n\t\t\t\tstrokeColor: $rootLineColor\n\t\t\t});\n\t\t}\n\n\t\tset(shapes);\n\t});\n\n\tcomponent_subscribe($$self, imageSelectionGuides, value => $$invalidate(140, $imageSelectionGuides = value));\n\n\tconst syncGuides = () => {\n\t\t// remove existing guides\n\t\timageOverlayMarkup.update(shapes => {\n\t\t\tconst overlayMarkup = shapes.filter(markup => !(/^image\\-selection\\-guide/).test(markup.id));\n\n\t\t\tif ($isActive) {\n\t\t\t\treturn [...overlayMarkup, ...$imageSelectionGuides];\n\t\t\t}\n\n\t\t\treturn overlayMarkup;\n\t\t});\n\t}; // const overlayMarkup = $imageOverlayMarkup.filter(\n\t// (markup) => !/^image\\-selection\\-guide/.test(markup.id)\n\t// );\n\t// if ($isActive) {\n\n\tconst cropUniqueId = `crop-${getUniqueId()}`;\n\n\tlet transformInitial = cropEnableRotationInput\n\t? cropActiveTransformTool\n\t: 'zoom';\n\n\tlet transformToolInitial = cropUniqueId + '-' + transformInitial;\n\tlet transformSelected = transformToolInitial;\n\tlet root = undefined;\n\n\t// fixes rendering issue with stage being empty in overlay mode, this basically redispatches the measure event so the stage is correctly measured\n\tlet stageRef;\n\n\tconst footerOffset = spring($isAnimated ? 20 : 0);\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(137, $footerOffset = value));\n\n\tfunction measure_handler_1(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tconst select_handler = ({ detail }) => $$invalidate(5, transformSelected = detail);\n\n\tfunction div0_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tstageRef = $$value;\n\t\t\t$$invalidate(6, stageRef);\n\t\t});\n\t}\n\n\tconst interactable_function_1 = e => getEventPositionInViewport(e);\n\n\tfunction util_root_binding(value) {\n\t\troot = value;\n\t\t$$invalidate(15, root);\n\t}\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('stores' in $$props) $$invalidate(96, stores = $$props.stores);\n\t\tif ('cropImageSelectionCornerStyle' in $$props) $$invalidate(1, cropImageSelectionCornerStyle = $$props.cropImageSelectionCornerStyle);\n\t\tif ('cropWillRenderImageSelectionGuides' in $$props) $$invalidate(97, cropWillRenderImageSelectionGuides = $$props.cropWillRenderImageSelectionGuides);\n\t\tif ('cropAutoCenterImageSelectionTimeout' in $$props) $$invalidate(98, cropAutoCenterImageSelectionTimeout = $$props.cropAutoCenterImageSelectionTimeout);\n\t\tif ('cropEnableZoomMatchImageAspectRatio' in $$props) $$invalidate(99, cropEnableZoomMatchImageAspectRatio = $$props.cropEnableZoomMatchImageAspectRatio);\n\t\tif ('cropEnableRotateMatchImageAspectRatio' in $$props) $$invalidate(100, cropEnableRotateMatchImageAspectRatio = $$props.cropEnableRotateMatchImageAspectRatio);\n\t\tif ('cropEnableRotationInput' in $$props) $$invalidate(101, cropEnableRotationInput = $$props.cropEnableRotationInput);\n\t\tif ('cropEnableZoom' in $$props) $$invalidate(2, cropEnableZoom = $$props.cropEnableZoom);\n\t\tif ('cropEnableZoomInput' in $$props) $$invalidate(102, cropEnableZoomInput = $$props.cropEnableZoomInput);\n\t\tif ('cropEnableZoomAutoHide' in $$props) $$invalidate(103, cropEnableZoomAutoHide = $$props.cropEnableZoomAutoHide);\n\t\tif ('cropEnableImageSelection' in $$props) $$invalidate(104, cropEnableImageSelection = $$props.cropEnableImageSelection);\n\t\tif ('cropEnableInfoIndicator' in $$props) $$invalidate(105, cropEnableInfoIndicator = $$props.cropEnableInfoIndicator);\n\t\tif ('cropEnableZoomTowardsWheelPosition' in $$props) $$invalidate(106, cropEnableZoomTowardsWheelPosition = $$props.cropEnableZoomTowardsWheelPosition);\n\t\tif ('cropEnableLimitWheelInputToCropSelection' in $$props) $$invalidate(107, cropEnableLimitWheelInputToCropSelection = $$props.cropEnableLimitWheelInputToCropSelection);\n\t\tif ('cropEnableCenterImageSelection' in $$props) $$invalidate(108, cropEnableCenterImageSelection = $$props.cropEnableCenterImageSelection);\n\t\tif ('cropEnableButtonRotateLeft' in $$props) $$invalidate(109, cropEnableButtonRotateLeft = $$props.cropEnableButtonRotateLeft);\n\t\tif ('cropEnableButtonRotateRight' in $$props) $$invalidate(110, cropEnableButtonRotateRight = $$props.cropEnableButtonRotateRight);\n\t\tif ('cropEnableButtonFlipHorizontal' in $$props) $$invalidate(111, cropEnableButtonFlipHorizontal = $$props.cropEnableButtonFlipHorizontal);\n\t\tif ('cropEnableButtonFlipVertical' in $$props) $$invalidate(112, cropEnableButtonFlipVertical = $$props.cropEnableButtonFlipVertical);\n\t\tif ('cropSelectPresetOptions' in $$props) $$invalidate(113, cropSelectPresetOptions = $$props.cropSelectPresetOptions);\n\t\tif ('cropEnableSelectPreset' in $$props) $$invalidate(114, cropEnableSelectPreset = $$props.cropEnableSelectPreset);\n\t\tif ('cropEnableFilterMatchAspectRatio' in $$props) $$invalidate(115, cropEnableFilterMatchAspectRatio = $$props.cropEnableFilterMatchAspectRatio);\n\t\tif ('cropSelectPresetFilter' in $$props) $$invalidate(94, cropSelectPresetFilter = $$props.cropSelectPresetFilter);\n\t\tif ('cropEnableButtonToggleCropLimit' in $$props) $$invalidate(116, cropEnableButtonToggleCropLimit = $$props.cropEnableButtonToggleCropLimit);\n\t\tif ('cropWillRenderTools' in $$props) $$invalidate(117, cropWillRenderTools = $$props.cropWillRenderTools);\n\t\tif ('cropActiveTransformTool' in $$props) $$invalidate(118, cropActiveTransformTool = $$props.cropActiveTransformTool);\n\t\tif ('cropMinimizeToolbar' in $$props) $$invalidate(119, cropMinimizeToolbar = $$props.cropMinimizeToolbar);\n\t\tif ('cropInteractionFocus' in $$props) $$invalidate(120, cropInteractionFocus = $$props.cropInteractionFocus);\n\t\tif ('cropRotationRange' in $$props) $$invalidate(3, cropRotationRange = $$props.cropRotationRange);\n\t\tif ('cropMaskOpacity' in $$props) $$invalidate(121, cropMaskOpacity = $$props.cropMaskOpacity);\n\t\tif ('locale' in $$props) $$invalidate(4, locale = $$props.locale);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096 | $$self.$$.dirty[3] & /*cropInteractionFocus*/ 134217728) {\n\t\t\timageIsStatic.set(cropInteractionFocus === 'selection' && $isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropSelectPresetOptions*/ 1048576) {\n\t\t\t$$invalidate(128, hasCropSelectPresetOptions = cropSelectPresetOptions && Array.isArray(cropSelectPresetOptions) && cropSelectPresetOptions.length);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropSelectPresetOptions*/ 1048576 | $$self.$$.dirty[4] & /*hasCropSelectPresetOptions*/ 16) {\n\t\t\tformattedCropPresetOptions.set(hasCropSelectPresetOptions\n\t\t\t? cropSelectPresetOptions\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096) {\n\t\t\t$isActive && imageOutlineOpacity.set(1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096) {\n\t\t\t// fully disable pan and zoom when crop tool is active\n\t\t\tallowPan.set(!$isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096) {\n\t\t\tallowZoom.set(!$isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096) {\n\t\t\t$isActive && allowPlayPause.set(true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$env*/ 32768) {\n\t\t\t$$invalidate(123, isOverlayMode = $env.layoutMode === 'overlay');\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropEnableSelectPreset, isOverlayMode*/ 1075838976) {\n\t\t\t$$invalidate(127, shouldRenderPresetSelect = cropEnableSelectPreset && !isOverlayMode);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$utilRectPadded, $imageSelectionRect*/ 41943040) {\n\t\t\t// determine if we can center the crop, if we can, show the crop center button\n\t\t\t$$invalidate(136, imageSelectionCenteredRect = $utilRectPadded && $imageSelectionRect && rectCenterRect($utilRectPadded, $imageSelectionRect));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageSelectionRect, imageSelectionCenteredRect*/ 33558528) {\n\t\t\t$$invalidate(134, isImageSelectionDisplayed = !!($imageSelectionRect && imageSelectionCenteredRect));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*isImageSelectionDisplayed, $imageSelectionRect, imageSelectionCenteredRect*/ 33559552) {\n\t\t\t$$invalidate(132, isImageSelectionCentered = isImageSelectionDisplayed && rectEqual($imageSelectionRect, imageSelectionCenteredRect, value => fixPrecision(value, 5)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale, $imageRotation*/ 16400 | $$self.$$.dirty[3] & /*cropWillRenderTools, cropEnableButtonRotateLeft, cropEnableButtonRotateRight, cropEnableButtonFlipHorizontal, cropEnableButtonFlipVertical, cropSelectPresetFilter, cropEnableButtonToggleCropLimit*/ 26148866 | $$self.$$.dirty[4] & /*shouldRenderPresetSelect, hasCropSelectPresetOptions, $selectedPresetIndex, isImageSelectionCentered, $imageSize, $imageCropMinSize, $imageCropLimitToImage, $env*/ 2013298968 | $$self.$$.dirty[5] & /*$redrawTrigger, $imageFlipY, $imageFlipX, $formattedCropPresetOptions*/ 15) {\n\t\t\t// #region dynamic toolbar\n\t\t\t$$invalidate(11, cropTools = $redrawTrigger && cropWillRenderTools(\n\t\t\t\t[\n\t\t\t\t\tcropEnableButtonRotateLeft && [\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'rotate-left',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: locale.cropLabelButtonRotateLeft,\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\ticon: locale.cropIconButtonRotateLeft,\n\t\t\t\t\t\t\tonclick: () => {\n\t\t\t\t\t\t\t\tapplyRotation(-Math.PI / 2);\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcropEnableButtonRotateRight && [\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'rotate-right',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: locale.cropLabelButtonRotateRight,\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\ticon: locale.cropIconButtonRotateRight,\n\t\t\t\t\t\t\tonclick: () => {\n\t\t\t\t\t\t\t\tapplyRotation(Math.PI / 2);\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcropEnableButtonFlipHorizontal && [\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'flip-horizontal',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: locale.cropLabelButtonFlipHorizontal,\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\ticon: locale.cropIconButtonFlipHorizontal,\n\t\t\t\t\t\t\tonclick: () => {\n\t\t\t\t\t\t\t\tif (isRotatedSideways($imageRotation)) {\n\t\t\t\t\t\t\t\t\tset_store_value(imageFlipY, $imageFlipY = !$imageFlipY, $imageFlipY);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tset_store_value(imageFlipX, $imageFlipX = !$imageFlipX, $imageFlipX);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcropEnableButtonFlipVertical && [\n\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t'flip-vertical',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: locale.cropLabelButtonFlipVertical,\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\ticon: locale.cropIconButtonFlipVertical,\n\t\t\t\t\t\t\tonclick: () => {\n\t\t\t\t\t\t\t\tif (isRotatedSideways($imageRotation)) {\n\t\t\t\t\t\t\t\t\tset_store_value(imageFlipX, $imageFlipX = !$imageFlipX, $imageFlipX);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tset_store_value(imageFlipY, $imageFlipY = !$imageFlipY, $imageFlipY);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tshouldRenderPresetSelect && hasCropSelectPresetOptions && [\n\t\t\t\t\t\tcropSelectPresetFilter === false\n\t\t\t\t\t\t? 'Dropdown'\n\t\t\t\t\t\t: CropPresetList,\n\t\t\t\t\t\t'select-preset',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ticon: localize(locale.cropIconSelectPreset, locale, getAspectRatioBySelectedIndex($selectedPresetIndex, $formattedCropPresetOptions)),\n\t\t\t\t\t\t\tlabel: localize(locale.cropLabelSelectPreset, locale, getAspectRatioBySelectedIndex($selectedPresetIndex, $formattedCropPresetOptions)),\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\toptions: $formattedCropPresetOptions,\n\t\t\t\t\t\t\tfilter: cropSelectPresetFilter,\n\t\t\t\t\t\t\tonfilterchange: applyCropPresetFilter,\n\t\t\t\t\t\t\tselectedIndex: $selectedPresetIndex,\n\t\t\t\t\t\t\tonchange: ({ value }) => {\n\t\t\t\t\t\t\t\tif (isArray(value)) {\n\t\t\t\t\t\t\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = getAspectRatio(value[0], value[1]), $imageCropAspectRatio);\n\t\t\t\t\t\t\t\t\tset_store_value(imageOutputSize, $imageOutputSize = sizeCreateFromArray(value), $imageOutputSize);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = value, $imageCropAspectRatio);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (isImageSelectionCentered) {\n\t\t\t\t\t\t\t\t\thandleRecenterAction();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\toptionMapper: option => {\n\t\t\t\t\t\t\t\t// if no aspect ratio found we enable the option by default\n\t\t\t\t\t\t\t\tlet disabled = false;\n\n\t\t\t\t\t\t\t\t// get aspect ratio for this option\n\t\t\t\t\t\t\t\tconst optionAspectRatio = isArray(option.value)\n\t\t\t\t\t\t\t\t? option.value[0] / option.value[1]\n\t\t\t\t\t\t\t\t: option.value;\n\n\t\t\t\t\t\t\t\t// can be undefined in which case we don't need to check anything\n\t\t\t\t\t\t\t\tif (optionAspectRatio) {\n\t\t\t\t\t\t\t\t\tconst maxCropSize = getMaxSizeInRect($imageSize, $imageRotation, optionAspectRatio);\n\t\t\t\t\t\t\t\t\tdisabled = maxCropSize.width < $imageCropMinSize.width || maxCropSize.height < $imageCropMinSize.height;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// add icon for this option\n\t\t\t\t\t\t\t\toption.icon = getSelectionPresetOptionIcon(option.value, { bounds: 14 });\n\n\t\t\t\t\t\t\t\treturn { ...option, disabled };\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcropEnableButtonToggleCropLimit && [\n\t\t\t\t\t\t'Dropdown',\n\t\t\t\t\t\t'select-crop-limit',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ticon: localize(locale.cropIconCropBoundary, locale, $imageCropLimitToImage),\n\t\t\t\t\t\t\tlabel: locale.cropLabelCropBoundary,\n\t\t\t\t\t\t\tlabelClass: 'PinturaToolbarContentWide',\n\t\t\t\t\t\t\tonchange: ({ value }) => {\n\t\t\t\t\t\t\t\tset_store_value(imageCropLimitToImage, $imageCropLimitToImage = value, $imageCropLimitToImage);\n\t\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t\t\tlocale.cropLabelCropBoundaryEdge,\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ticon: localize(locale.cropIconCropBoundary, locale, true)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\tfalse,\n\t\t\t\t\t\t\t\t\tlocale.cropLabelCropBoundaryNone,\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ticon: localize(locale.cropIconCropBoundary, locale, false)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t].filter(Boolean),\n\t\t\t\t$env,\n\t\t\t\t() => redrawTrigger.set({})\n\t\t\t).filter(Boolean));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive, cropTools*/ 6144 | $$self.$$.dirty[3] & /*cropMinimizeToolbar, isOverlayMode*/ 1140850688 | $$self.$$.dirty[4] & /*$env*/ 32768) {\n\t\t\tset_store_value(\n\t\t\t\tutilTools,\n\t\t\t\t$utilTools = $isActive && // should always minimize OR no room OR is overlay mode\n\t\t\t\tcropMinimizeToolbar !== 'never' && (cropMinimizeToolbar === 'always' || $env.verticalSpace === 'short' || isOverlayMode)\n\t\t\t\t? cropTools.map(([name, id, props]) => {\n\t\t\t\t\t\t// is node children\n\t\t\t\t\t\tif (Array.isArray(props)) return [name, id, props];\n\n\t\t\t\t\t\t// is props\n\t\t\t\t\t\treturn [name, id, { ...props, hideLabel: true }];\n\t\t\t\t\t})\n\t\t\t\t: [],\n\t\t\t\t$utilTools\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageCropLimitToImage*/ 268435456) {\n\t\t\t$$invalidate(23, imageZoomLevelMin = $imageCropLimitToImage ? 0 : IMAGE_ZOOM_LEVEL_MIN);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$utilRectPadded, $stageRect*/ 75497472) {\n\t\t\t// #endregion\n\t\t\t$$invalidate(129, imageSelectionOffset = $utilRectPadded && vectorCreate(-($stageRect.x - $utilRectPadded.x), -($stageRect.y - $utilRectPadded.y)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageSelectionRectPresentation, imageSelectionOffset*/ 262176) {\n\t\t\t// normalized crop bounds, we use these to limit the crop interactions to the view\n\t\t\t$$invalidate(130, imageSelectionCenter = $imageSelectionRectPresentation && vectorCreate(snapToPixel($imageSelectionRectPresentation.x + $imageSelectionRectPresentation.width * 0.5 + imageSelectionOffset.x), snapToPixel($imageSelectionRectPresentation.y + $imageSelectionRectPresentation.height * 0.5 + imageSelectionOffset.y)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageSelectionRectSnapshot*/ 16777216) {\n\t\t\t$$invalidate(133, isResizingSelection = $imageSelectionRectSnapshot != null);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$utilRectPadded, imageSelectionCenteredRect*/ 8392704) {\n\t\t\t$$invalidate(135, isMaxSelectionRect = $utilRectPadded && imageSelectionCenteredRect && (imageSelectionCenteredRect.height === $utilRectPadded.height || imageSelectionCenteredRect.width === $utilRectPadded.width));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*isMaxSelectionRect, $presentationScalar, $imageScalar*/ 6293504) {\n\t\t\t$$invalidate(131, canZoomToCenter = !isMaxSelectionRect && $presentationScalar < 1 && $imageScalar < 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*isImageSelectionDisplayed, isResizingSelection, isImageSelectionCentered, canZoomToCenter*/ 1920) {\n\t\t\t$$invalidate(9, canCenter = isImageSelectionDisplayed && !isResizingSelection && (!isImageSelectionCentered || canZoomToCenter));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$imageCropRect*/ 8192 | $$self.$$.dirty[3] & /*cropEnableInfoIndicator, isOverlayMode*/ 1073745920) {\n\t\t\t$$invalidate(22, shouldRenderInfoIndicator = cropEnableInfoIndicator && !!$imageCropRect && !isOverlayMode);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageSelectionRectPresentation, imageSelectionOffset*/ 262176) {\n\t\t\t$$invalidate(8, imageSelectionRectOffset = $imageSelectionRectPresentation && imageSelectionOffset && {\n\t\t\t\tx: $imageSelectionRectPresentation.x + imageSelectionOffset.x,\n\t\t\t\ty: $imageSelectionRectPresentation.y + imageSelectionOffset.y,\n\t\t\t\twidth: $imageSelectionRectPresentation.width,\n\t\t\t\theight: $imageSelectionRectPresentation.height\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*imageSelectionRectOffset*/ 256 | $$self.$$.dirty[3] & /*cropEnableImageSelection, isOverlayMode*/ 1073743872) {\n\t\t\t$$invalidate(21, shouldRenderImageSelection = cropEnableImageSelection && !!imageSelectionRectOffset && !isOverlayMode);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropEnableCenterImageSelection, cropAutoCenterImageSelectionTimeout*/ 32800 | $$self.$$.dirty[4] & /*imageSelectionCenter, $imageIsStatic*/ 1048640) {\n\t\t\t$$invalidate(10, shouldRenderImageSelectionRecenterButton = cropEnableCenterImageSelection && !!imageSelectionCenter && !cropAutoCenterImageSelectionTimeout && !$imageIsStatic);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*canCenter*/ 512 | $$self.$$.dirty[3] & /*cropAutoCenterImageSelectionTimeout, cropAutoCenterImageSelectionTimeoutId*/ 536870944 | $$self.$$.dirty[4] & /*$isInteracting*/ 524288) {\n\t\t\tif (canCenter && cropAutoCenterImageSelectionTimeout && !$isInteracting) {\n\t\t\t\tclearTimeout(cropAutoCenterImageSelectionTimeoutId);\n\t\t\t\t$$invalidate(122, cropAutoCenterImageSelectionTimeoutId = setTimeout(handleRecenterAction, cropAutoCenterImageSelectionTimeout));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropAutoCenterImageSelectionTimeoutId*/ 536870912 | $$self.$$.dirty[4] & /*$isInteracting*/ 524288) {\n\t\t\tif ($isInteracting) clearTimeout(cropAutoCenterImageSelectionTimeoutId);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderImageSelectionRecenterButton, canCenter*/ 1536 | $$self.$$.dirty[4] & /*$isAnimated*/ 16384) {\n\t\t\trecenterOpacity.set(\n\t\t\t\tshouldRenderImageSelectionRecenterButton && canCenter\n\t\t\t\t? 1\n\t\t\t\t: 0,\n\t\t\t\t{ hard: $isAnimated === false }\n\t\t\t);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*imageSelectionCenter, $isAnimated*/ 16448) {\n\t\t\trecenterOffset.set(imageSelectionCenter, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096 | $$self.$$.dirty[4] & /*$stagePadded*/ 131072) {\n\t\t\tif ($isActive && !$stagePadded) {\n\t\t\t\tsetPreviewModifiers();\n\t\t\t} else {\n\t\t\t\tclearPreviewModifiers();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$imageSelectionGuides*/ 65536) {\n\t\t\t// $imageOverlayMarkup = [...overlayMarkup, ...$imageSelectionGuides];\n\t\t\t// } else {\n\t\t\t// $imageOverlayMarkup = overlayMarkup;\n\t\t\t// }\n\t\t\t// if overlay top changes\n\t\t\t$imageSelectionGuides && syncGuides();\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$env*/ 32768) {\n\t\t\t// #endregion\n\t\t\t//\n\t\t\t// Transform tabs\n\t\t\t//\n\t\t\t$$invalidate(126, hasPlentyVerticalSpace = $env.verticalSpace !== 'short');\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropMinimizeToolbar, isOverlayMode*/ 1140850688 | $$self.$$.dirty[4] & /*hasPlentyVerticalSpace*/ 4) {\n\t\t\t$$invalidate(20, shouldRenderToolbar = // should show if is not allowed to hide and is not in overlay mode\n\t\t\tcropMinimizeToolbar === 'never' && !isOverlayMode || // or if plenty space and should not force hide\n\t\t\thasPlentyVerticalSpace && cropMinimizeToolbar !== 'always');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*cropEnableZoom*/ 4 | $$self.$$.dirty[3] & /*cropEnableZoomInput*/ 512) {\n\t\t\t$$invalidate(125, couldRenderZoomInput = cropEnableZoom && cropEnableZoomInput);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropEnableZoomAutoHide*/ 1024 | $$self.$$.dirty[4] & /*hasPlentyVerticalSpace, couldRenderZoomInput*/ 6) {\n\t\t\t$$invalidate(124, shouldRenderZoomInput = cropEnableZoomAutoHide\n\t\t\t? hasPlentyVerticalSpace && couldRenderZoomInput\n\t\t\t: couldRenderZoomInput);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*cropEnableRotationInput*/ 256 | $$self.$$.dirty[4] & /*shouldRenderZoomInput*/ 1) {\n\t\t\t$$invalidate(19, shouldRenderFooter = cropEnableRotationInput || shouldRenderZoomInput);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*shouldRenderZoomInput*/ 1) {\n\t\t\tif (!shouldRenderZoomInput) {\n\t\t\t\t$$invalidate(5, transformSelected = transformToolInitial);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*transformSelected*/ 32) {\n\t\t\t$$invalidate(18, tabsConfig = {\n\t\t\t\tname: cropUniqueId,\n\t\t\t\tselected: transformSelected\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 16 | $$self.$$.dirty[3] & /*cropEnableRotationInput*/ 256 | $$self.$$.dirty[4] & /*shouldRenderZoomInput*/ 1) {\n\t\t\t$$invalidate(7, tabs = [\n\t\t\t\tcropEnableRotationInput && {\n\t\t\t\t\tid: cropUniqueId + '-rotation',\n\t\t\t\t\tlabel: locale.cropLabelTabRotation\n\t\t\t\t},\n\t\t\t\tshouldRenderZoomInput && {\n\t\t\t\t\tid: cropUniqueId + '-zoom',\n\t\t\t\t\tlabel: locale.cropLabelTabZoom\n\t\t\t\t}\n\t\t\t].filter(Boolean));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*tabs*/ 128) {\n\t\t\t$$invalidate(17, panels = tabs.map(tab => tab.id));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stageRef*/ 64 | $$self.$$.dirty[3] & /*isOverlayMode*/ 1073741824) {\n\t\t\tif (stageRef && !stageRef.children.length && isOverlayMode) {\n\t\t\t\tstageRef.dispatchEvent(new CustomEvent('measure', { detail: stageRef.rect }));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 4096 | $$self.$$.dirty[4] & /*$isAnimated*/ 16384) {\n\t\t\t$isAnimated && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$footerOffset*/ 8192) {\n\t\t\t$$invalidate(16, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tcropImageSelectionCornerStyle,\n\t\tcropEnableZoom,\n\t\tcropRotationRange,\n\t\tlocale,\n\t\ttransformSelected,\n\t\tstageRef,\n\t\ttabs,\n\t\timageSelectionRectOffset,\n\t\tcanCenter,\n\t\tshouldRenderImageSelectionRecenterButton,\n\t\tcropTools,\n\t\t$isActive,\n\t\t$imageCropRect,\n\t\t$imageRotation,\n\t\troot,\n\t\tfooterStyle,\n\t\tpanels,\n\t\ttabsConfig,\n\t\tshouldRenderFooter,\n\t\tshouldRenderToolbar,\n\t\tshouldRenderImageSelection,\n\t\tshouldRenderInfoIndicator,\n\t\timageZoomLevelMin,\n\t\t$rootRect,\n\t\t$elasticityMultiplier,\n\t\t$imageRotationRange,\n\t\t$imageZoomLevelRange,\n\t\t$imageZoomLevel,\n\t\t$recenterOpacity,\n\t\t$recenterOffset,\n\t\tisAnimated,\n\t\telasticityMultiplier,\n\t\tredrawTrigger,\n\t\timageIsStatic,\n\t\timageStaticVisualCorners,\n\t\tformattedCropPresetOptions,\n\t\tenv,\n\t\tisInteracting,\n\t\tisTransformingImage,\n\t\trootRect,\n\t\tstageRect,\n\t\tutilRectPadded,\n\t\trangeInputElasticity,\n\t\tpresentationScalar,\n\t\tutilTools,\n\t\timagePreviewModifiers,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageRotation,\n\t\timageRotationRange,\n\t\timageOutputSize,\n\t\timageSelectionRect,\n\t\timageSelectionRectSnapshot,\n\t\timageSelectionRectIntent,\n\t\timageSelectionRectPresentation,\n\t\timageCropRectIntent,\n\t\timageCropRectOrigin,\n\t\timageCropRect,\n\t\timageCropMinSize,\n\t\timageCropMaxSize,\n\t\timageCropRange,\n\t\timageCropAspectRatio,\n\t\timageCropLimitToImage,\n\t\timageSize,\n\t\timageScalar,\n\t\tstagePadded,\n\t\thandleSelectionGrab,\n\t\thandleSelectionDrag,\n\t\thandleSelectionRelease,\n\t\thandleRotateStart,\n\t\thandleRotateMove,\n\t\thandleRotateEnd,\n\t\thandleImageDragStart,\n\t\thandleImageDrag,\n\t\thandleImageDragEnd,\n\t\thandleImageDragRelease,\n\t\timageCropRangeAspectRatio,\n\t\timageZoomLevelRange,\n\t\timageZoomLevel,\n\t\thandleResizeStart,\n\t\thandleResizeMove,\n\t\thandleResizeEnd,\n\t\thandleGestureStart,\n\t\thandleGestureUpdate,\n\t\thandleGestureEnd,\n\t\thandleWheel,\n\t\thandleRecenterAction,\n\t\trecenterOpacity,\n\t\trecenterOffset,\n\t\tselectedPresetIndex,\n\t\timageSelectionGuides,\n\t\tcropUniqueId,\n\t\tfooterOffset,\n\t\tcropSelectPresetFilter,\n\t\tname,\n\t\tstores,\n\t\tcropWillRenderImageSelectionGuides,\n\t\tcropAutoCenterImageSelectionTimeout,\n\t\tcropEnableZoomMatchImageAspectRatio,\n\t\tcropEnableRotateMatchImageAspectRatio,\n\t\tcropEnableRotationInput,\n\t\tcropEnableZoomInput,\n\t\tcropEnableZoomAutoHide,\n\t\tcropEnableImageSelection,\n\t\tcropEnableInfoIndicator,\n\t\tcropEnableZoomTowardsWheelPosition,\n\t\tcropEnableLimitWheelInputToCropSelection,\n\t\tcropEnableCenterImageSelection,\n\t\tcropEnableButtonRotateLeft,\n\t\tcropEnableButtonRotateRight,\n\t\tcropEnableButtonFlipHorizontal,\n\t\tcropEnableButtonFlipVertical,\n\t\tcropSelectPresetOptions,\n\t\tcropEnableSelectPreset,\n\t\tcropEnableFilterMatchAspectRatio,\n\t\tcropEnableButtonToggleCropLimit,\n\t\tcropWillRenderTools,\n\t\tcropActiveTransformTool,\n\t\tcropMinimizeToolbar,\n\t\tcropInteractionFocus,\n\t\tcropMaskOpacity,\n\t\tcropAutoCenterImageSelectionTimeoutId,\n\t\tisOverlayMode,\n\t\tshouldRenderZoomInput,\n\t\tcouldRenderZoomInput,\n\t\thasPlentyVerticalSpace,\n\t\tshouldRenderPresetSelect,\n\t\thasCropSelectPresetOptions,\n\t\timageSelectionOffset,\n\t\timageSelectionCenter,\n\t\tcanZoomToCenter,\n\t\tisImageSelectionCentered,\n\t\tisResizingSelection,\n\t\tisImageSelectionDisplayed,\n\t\tisMaxSelectionRect,\n\t\timageSelectionCenteredRect,\n\t\t$footerOffset,\n\t\t$isAnimated,\n\t\t$env,\n\t\t$imageSelectionGuides,\n\t\t$stagePadded,\n\t\t$imageSelectionRectPresentation,\n\t\t$isInteracting,\n\t\t$imageIsStatic,\n\t\t$imageScalar,\n\t\t$presentationScalar,\n\t\t$utilRectPadded,\n\t\t$imageSelectionRectSnapshot,\n\t\t$imageSelectionRect,\n\t\t$stageRect,\n\t\t$imageSize,\n\t\t$imageCropLimitToImage,\n\t\t$imageCropMinSize,\n\t\t$selectedPresetIndex,\n\t\t$formattedCropPresetOptions,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\t$redrawTrigger,\n\t\tmeasure_handler_1,\n\t\tselect_handler,\n\t\tdiv0_binding,\n\t\tinteractable_function_1,\n\t\tutil_root_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Crop extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$k,\n\t\t\tcreate_fragment$k,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 95,\n\t\t\t\tisActive: 0,\n\t\t\t\tstores: 96,\n\t\t\t\tcropImageSelectionCornerStyle: 1,\n\t\t\t\tcropWillRenderImageSelectionGuides: 97,\n\t\t\t\tcropAutoCenterImageSelectionTimeout: 98,\n\t\t\t\tcropEnableZoomMatchImageAspectRatio: 99,\n\t\t\t\tcropEnableRotateMatchImageAspectRatio: 100,\n\t\t\t\tcropEnableRotationInput: 101,\n\t\t\t\tcropEnableZoom: 2,\n\t\t\t\tcropEnableZoomInput: 102,\n\t\t\t\tcropEnableZoomAutoHide: 103,\n\t\t\t\tcropEnableImageSelection: 104,\n\t\t\t\tcropEnableInfoIndicator: 105,\n\t\t\t\tcropEnableZoomTowardsWheelPosition: 106,\n\t\t\t\tcropEnableLimitWheelInputToCropSelection: 107,\n\t\t\t\tcropEnableCenterImageSelection: 108,\n\t\t\t\tcropEnableButtonRotateLeft: 109,\n\t\t\t\tcropEnableButtonRotateRight: 110,\n\t\t\t\tcropEnableButtonFlipHorizontal: 111,\n\t\t\t\tcropEnableButtonFlipVertical: 112,\n\t\t\t\tcropSelectPresetOptions: 113,\n\t\t\t\tcropEnableSelectPreset: 114,\n\t\t\t\tcropEnableFilterMatchAspectRatio: 115,\n\t\t\t\tcropSelectPresetFilter: 94,\n\t\t\t\tcropEnableButtonToggleCropLimit: 116,\n\t\t\t\tcropWillRenderTools: 117,\n\t\t\t\tcropActiveTransformTool: 118,\n\t\t\t\tcropMinimizeToolbar: 119,\n\t\t\t\tcropInteractionFocus: 120,\n\t\t\t\tcropRotationRange: 3,\n\t\t\t\tcropMaskOpacity: 121,\n\t\t\t\tlocale: 4\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1, -1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[95];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[96];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget cropImageSelectionCornerStyle() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset cropImageSelectionCornerStyle(cropImageSelectionCornerStyle) {\n\t\tthis.$$set({ cropImageSelectionCornerStyle });\n\t\tflush();\n\t}\n\n\tget cropWillRenderImageSelectionGuides() {\n\t\treturn this.$$.ctx[97];\n\t}\n\n\tset cropWillRenderImageSelectionGuides(cropWillRenderImageSelectionGuides) {\n\t\tthis.$$set({ cropWillRenderImageSelectionGuides });\n\t\tflush();\n\t}\n\n\tget cropAutoCenterImageSelectionTimeout() {\n\t\treturn this.$$.ctx[98];\n\t}\n\n\tset cropAutoCenterImageSelectionTimeout(cropAutoCenterImageSelectionTimeout) {\n\t\tthis.$$set({ cropAutoCenterImageSelectionTimeout });\n\t\tflush();\n\t}\n\n\tget cropEnableZoomMatchImageAspectRatio() {\n\t\treturn this.$$.ctx[99];\n\t}\n\n\tset cropEnableZoomMatchImageAspectRatio(cropEnableZoomMatchImageAspectRatio) {\n\t\tthis.$$set({ cropEnableZoomMatchImageAspectRatio });\n\t\tflush();\n\t}\n\n\tget cropEnableRotateMatchImageAspectRatio() {\n\t\treturn this.$$.ctx[100];\n\t}\n\n\tset cropEnableRotateMatchImageAspectRatio(cropEnableRotateMatchImageAspectRatio) {\n\t\tthis.$$set({ cropEnableRotateMatchImageAspectRatio });\n\t\tflush();\n\t}\n\n\tget cropEnableRotationInput() {\n\t\treturn this.$$.ctx[101];\n\t}\n\n\tset cropEnableRotationInput(cropEnableRotationInput) {\n\t\tthis.$$set({ cropEnableRotationInput });\n\t\tflush();\n\t}\n\n\tget cropEnableZoom() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset cropEnableZoom(cropEnableZoom) {\n\t\tthis.$$set({ cropEnableZoom });\n\t\tflush();\n\t}\n\n\tget cropEnableZoomInput() {\n\t\treturn this.$$.ctx[102];\n\t}\n\n\tset cropEnableZoomInput(cropEnableZoomInput) {\n\t\tthis.$$set({ cropEnableZoomInput });\n\t\tflush();\n\t}\n\n\tget cropEnableZoomAutoHide() {\n\t\treturn this.$$.ctx[103];\n\t}\n\n\tset cropEnableZoomAutoHide(cropEnableZoomAutoHide) {\n\t\tthis.$$set({ cropEnableZoomAutoHide });\n\t\tflush();\n\t}\n\n\tget cropEnableImageSelection() {\n\t\treturn this.$$.ctx[104];\n\t}\n\n\tset cropEnableImageSelection(cropEnableImageSelection) {\n\t\tthis.$$set({ cropEnableImageSelection });\n\t\tflush();\n\t}\n\n\tget cropEnableInfoIndicator() {\n\t\treturn this.$$.ctx[105];\n\t}\n\n\tset cropEnableInfoIndicator(cropEnableInfoIndicator) {\n\t\tthis.$$set({ cropEnableInfoIndicator });\n\t\tflush();\n\t}\n\n\tget cropEnableZoomTowardsWheelPosition() {\n\t\treturn this.$$.ctx[106];\n\t}\n\n\tset cropEnableZoomTowardsWheelPosition(cropEnableZoomTowardsWheelPosition) {\n\t\tthis.$$set({ cropEnableZoomTowardsWheelPosition });\n\t\tflush();\n\t}\n\n\tget cropEnableLimitWheelInputToCropSelection() {\n\t\treturn this.$$.ctx[107];\n\t}\n\n\tset cropEnableLimitWheelInputToCropSelection(cropEnableLimitWheelInputToCropSelection) {\n\t\tthis.$$set({ cropEnableLimitWheelInputToCropSelection });\n\t\tflush();\n\t}\n\n\tget cropEnableCenterImageSelection() {\n\t\treturn this.$$.ctx[108];\n\t}\n\n\tset cropEnableCenterImageSelection(cropEnableCenterImageSelection) {\n\t\tthis.$$set({ cropEnableCenterImageSelection });\n\t\tflush();\n\t}\n\n\tget cropEnableButtonRotateLeft() {\n\t\treturn this.$$.ctx[109];\n\t}\n\n\tset cropEnableButtonRotateLeft(cropEnableButtonRotateLeft) {\n\t\tthis.$$set({ cropEnableButtonRotateLeft });\n\t\tflush();\n\t}\n\n\tget cropEnableButtonRotateRight() {\n\t\treturn this.$$.ctx[110];\n\t}\n\n\tset cropEnableButtonRotateRight(cropEnableButtonRotateRight) {\n\t\tthis.$$set({ cropEnableButtonRotateRight });\n\t\tflush();\n\t}\n\n\tget cropEnableButtonFlipHorizontal() {\n\t\treturn this.$$.ctx[111];\n\t}\n\n\tset cropEnableButtonFlipHorizontal(cropEnableButtonFlipHorizontal) {\n\t\tthis.$$set({ cropEnableButtonFlipHorizontal });\n\t\tflush();\n\t}\n\n\tget cropEnableButtonFlipVertical() {\n\t\treturn this.$$.ctx[112];\n\t}\n\n\tset cropEnableButtonFlipVertical(cropEnableButtonFlipVertical) {\n\t\tthis.$$set({ cropEnableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget cropSelectPresetOptions() {\n\t\treturn this.$$.ctx[113];\n\t}\n\n\tset cropSelectPresetOptions(cropSelectPresetOptions) {\n\t\tthis.$$set({ cropSelectPresetOptions });\n\t\tflush();\n\t}\n\n\tget cropEnableSelectPreset() {\n\t\treturn this.$$.ctx[114];\n\t}\n\n\tset cropEnableSelectPreset(cropEnableSelectPreset) {\n\t\tthis.$$set({ cropEnableSelectPreset });\n\t\tflush();\n\t}\n\n\tget cropEnableFilterMatchAspectRatio() {\n\t\treturn this.$$.ctx[115];\n\t}\n\n\tset cropEnableFilterMatchAspectRatio(cropEnableFilterMatchAspectRatio) {\n\t\tthis.$$set({ cropEnableFilterMatchAspectRatio });\n\t\tflush();\n\t}\n\n\tget cropSelectPresetFilter() {\n\t\treturn this.$$.ctx[94];\n\t}\n\n\tset cropSelectPresetFilter(cropSelectPresetFilter) {\n\t\tthis.$$set({ cropSelectPresetFilter });\n\t\tflush();\n\t}\n\n\tget cropEnableButtonToggleCropLimit() {\n\t\treturn this.$$.ctx[116];\n\t}\n\n\tset cropEnableButtonToggleCropLimit(cropEnableButtonToggleCropLimit) {\n\t\tthis.$$set({ cropEnableButtonToggleCropLimit });\n\t\tflush();\n\t}\n\n\tget cropWillRenderTools() {\n\t\treturn this.$$.ctx[117];\n\t}\n\n\tset cropWillRenderTools(cropWillRenderTools) {\n\t\tthis.$$set({ cropWillRenderTools });\n\t\tflush();\n\t}\n\n\tget cropActiveTransformTool() {\n\t\treturn this.$$.ctx[118];\n\t}\n\n\tset cropActiveTransformTool(cropActiveTransformTool) {\n\t\tthis.$$set({ cropActiveTransformTool });\n\t\tflush();\n\t}\n\n\tget cropMinimizeToolbar() {\n\t\treturn this.$$.ctx[119];\n\t}\n\n\tset cropMinimizeToolbar(cropMinimizeToolbar) {\n\t\tthis.$$set({ cropMinimizeToolbar });\n\t\tflush();\n\t}\n\n\tget cropInteractionFocus() {\n\t\treturn this.$$.ctx[120];\n\t}\n\n\tset cropInteractionFocus(cropInteractionFocus) {\n\t\tthis.$$set({ cropInteractionFocus });\n\t\tflush();\n\t}\n\n\tget cropRotationRange() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset cropRotationRange(cropRotationRange) {\n\t\tthis.$$set({ cropRotationRange });\n\t\tflush();\n\t}\n\n\tget cropMaskOpacity() {\n\t\treturn this.$$.ctx[121];\n\t}\n\n\tset cropMaskOpacity(cropMaskOpacity) {\n\t\tthis.$$set({ cropMaskOpacity });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_crop = { util: ['crop', Crop] };\n\n/* src/core/ui/plugins/filter/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_option_slot$3(ctx) {\n\tlet div1;\n\tlet div0;\n\tlet option = /*option*/ ctx[77];\n\tlet t0;\n\tlet span;\n\n\tlet t1_value = (isFunction(/*option*/ ctx[77].label)\n\t? /*option*/ ctx[77].label(/*locale*/ ctx[2])\n\t: /*option*/ ctx[77].label) + \"\";\n\n\tlet t1;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction measure_handler_1(...args) {\n\t\treturn /*measure_handler_1*/ ctx[51](/*option*/ ctx[77], ...args);\n\t}\n\n\tconst assign_div0 = () => /*div0_binding*/ ctx[52](div0, option);\n\tconst unassign_div0 = () => /*div0_binding*/ ctx[52](null, option);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv1 = element(\"div\");\n\t\t\tdiv0 = element(\"div\");\n\t\t\tt0 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt1 = text(t1_value);\n\t\t\tattr(div0, \"class\", FILTER_PREVIEW_CLASS_NAME);\n\t\t\tattr(div1, \"slot\", \"option\");\n\t\t\tattr(div1, \"class\", \"PinturaFilterOption\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div1, anchor);\n\t\t\tappend(div1, div0);\n\t\t\tassign_div0();\n\t\t\tappend(div1, t0);\n\t\t\tappend(div1, span);\n\t\t\tappend(span, t1);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"measure\", measure_handler_1),\n\t\t\t\t\taction_destroyer(measurable.call(null, div0))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (option !== /*option*/ ctx[77]) {\n\t\t\t\tunassign_div0();\n\t\t\t\toption = /*option*/ ctx[77];\n\t\t\t\tassign_div0();\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*locale*/ 4 | dirty[2] & /*option*/ 32768 && t1_value !== (t1_value = (isFunction(/*option*/ ctx[77].label)\n\t\t\t? /*option*/ ctx[77].label(/*locale*/ ctx[2])\n\t\t\t: /*option*/ ctx[77].label) + \"\")) set_data(t1, t1_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div1);\n\t\t\tunassign_div0();\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (390:8) <Scrollable elasticity={$elasticityMultiplier * scrollElasticity} onscroll={(offset) => (tileScrollOffset = offset)} bind:maskFeatherStartOpacity={tileLeftOpacity} bind:maskFeatherEndOpacity={tileRightOpacity} bind:maskFeatherSize={tileMargin} on:measure={(e) => (tileScrollContainerRect = e.detail)} >\nfunction create_default_slot$9(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[2],\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*filterOptions*/ ctx[3],\n\t\t\t\tselectedIndex: /*selectedFilterIndex*/ ctx[12],\n\t\t\t\tonchange: /*handleChangeFilter*/ ctx[32],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot$3,\n\t\t\t\t\t\t({ option }) => ({ 77: option }),\n\t\t\t\t\t\t({ option }) => [0, 0, option ? 32768 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 4) radiogroup_changes.locale = /*locale*/ ctx[2];\n\t\t\tif (dirty[0] & /*filterOptions*/ 8) radiogroup_changes.options = /*filterOptions*/ ctx[3];\n\t\t\tif (dirty[0] & /*selectedFilterIndex*/ 4096) radiogroup_changes.selectedIndex = /*selectedFilterIndex*/ ctx[12];\n\n\t\t\tif (dirty[0] & /*locale, tileElements*/ 1028 | dirty[2] & /*$$scope, option*/ 98304) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (381:4) \nfunction create_footer_slot$5(ctx) {\n\tlet div;\n\tlet scrollable;\n\tlet updating_maskFeatherStartOpacity;\n\tlet updating_maskFeatherEndOpacity;\n\tlet updating_maskFeatherSize;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction scrollable_maskFeatherStartOpacity_binding(value) {\n\t\t/*scrollable_maskFeatherStartOpacity_binding*/ ctx[54](value);\n\t}\n\n\tfunction scrollable_maskFeatherEndOpacity_binding(value) {\n\t\t/*scrollable_maskFeatherEndOpacity_binding*/ ctx[55](value);\n\t}\n\n\tfunction scrollable_maskFeatherSize_binding(value) {\n\t\t/*scrollable_maskFeatherSize_binding*/ ctx[56](value);\n\t}\n\n\tlet scrollable_props = {\n\t\telasticity: /*$elasticityMultiplier*/ ctx[13] * /*scrollElasticity*/ ctx[19],\n\t\tonscroll: /*func*/ ctx[53],\n\t\t$$slots: { default: [create_default_slot$9] },\n\t\t$$scope: { ctx }\n\t};\n\n\tif (/*tileLeftOpacity*/ ctx[4] !== void 0) {\n\t\tscrollable_props.maskFeatherStartOpacity = /*tileLeftOpacity*/ ctx[4];\n\t}\n\n\tif (/*tileRightOpacity*/ ctx[5] !== void 0) {\n\t\tscrollable_props.maskFeatherEndOpacity = /*tileRightOpacity*/ ctx[5];\n\t}\n\n\tif (/*tileMargin*/ ctx[6] !== void 0) {\n\t\tscrollable_props.maskFeatherSize = /*tileMargin*/ ctx[6];\n\t}\n\n\tscrollable = new Scrollable({ props: scrollable_props });\n\tbinding_callbacks.push(() => bind(scrollable, 'maskFeatherStartOpacity', scrollable_maskFeatherStartOpacity_binding));\n\tbinding_callbacks.push(() => bind(scrollable, 'maskFeatherEndOpacity', scrollable_maskFeatherEndOpacity_binding));\n\tbinding_callbacks.push(() => bind(scrollable, 'maskFeatherSize', scrollable_maskFeatherSize_binding));\n\tscrollable.$on(\"measure\", /*measure_handler_2*/ ctx[57]);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[11]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"transitionend\", /*handleTransitionEnd*/ ctx[30]),\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler_3*/ ctx[58]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div, { observePosition: true }))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[0] & /*$elasticityMultiplier*/ 8192) scrollable_changes.elasticity = /*$elasticityMultiplier*/ ctx[13] * /*scrollElasticity*/ ctx[19];\n\t\t\tif (dirty[0] & /*tileScrollOffset*/ 128) scrollable_changes.onscroll = /*func*/ ctx[53];\n\n\t\t\tif (dirty[0] & /*locale, filterOptions, selectedFilterIndex, tileElements*/ 5132 | dirty[2] & /*$$scope*/ 65536) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tif (!updating_maskFeatherStartOpacity && dirty[0] & /*tileLeftOpacity*/ 16) {\n\t\t\t\tupdating_maskFeatherStartOpacity = true;\n\t\t\t\tscrollable_changes.maskFeatherStartOpacity = /*tileLeftOpacity*/ ctx[4];\n\t\t\t\tadd_flush_callback(() => updating_maskFeatherStartOpacity = false);\n\t\t\t}\n\n\t\t\tif (!updating_maskFeatherEndOpacity && dirty[0] & /*tileRightOpacity*/ 32) {\n\t\t\t\tupdating_maskFeatherEndOpacity = true;\n\t\t\t\tscrollable_changes.maskFeatherEndOpacity = /*tileRightOpacity*/ ctx[5];\n\t\t\t\tadd_flush_callback(() => updating_maskFeatherEndOpacity = false);\n\t\t\t}\n\n\t\t\tif (!updating_maskFeatherSize && dirty[0] & /*tileMargin*/ 64) {\n\t\t\t\tupdating_maskFeatherSize = true;\n\t\t\t\tscrollable_changes.maskFeatherSize = /*tileMargin*/ ctx[6];\n\t\t\t\tadd_flush_callback(() => updating_maskFeatherSize = false);\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 2048) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[11]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(scrollable);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$j(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\t$$slots: { footer: [create_footer_slot$5] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[59]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\n\t\t\tif (dirty[0] & /*footerStyle, footerRect, $elasticityMultiplier, tileScrollOffset, tileLeftOpacity, tileRightOpacity, tileMargin, tileScrollContainerRect, locale, filterOptions, selectedFilterIndex, tileElements*/ 16380 | dirty[2] & /*$$scope*/ 65536) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nlet FILTER_PREVIEW_CLASS_NAME = 'PinturaFilterPreview';\n\nfunction instance$j($$self, $$props, $$invalidate) {\n\tlet filterOptionsFlattened;\n\tlet selectedFilterIndex;\n\tlet footerStyle;\n\tlet $footerOffset;\n\tlet $imageColorMatrix;\n\tlet $imageTiles;\n\tlet $imagePreview;\n\n\tlet $isActiveFraction,\n\t\t$$unsubscribe_isActiveFraction = noop,\n\t\t$$subscribe_isActiveFraction = () => ($$unsubscribe_isActiveFraction(), $$unsubscribe_isActiveFraction = subscribe(isActiveFraction, $$value => $$invalidate(43, $isActiveFraction = $$value)), isActiveFraction);\n\n\tlet $interfaceImages;\n\tlet $imageBackgroundColor;\n\tlet $imageSize;\n\tlet $imageGamma;\n\tlet $imageTransforms;\n\tlet $tileRects;\n\tlet $utilRect;\n\tlet $stageRectBase;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(49, $isActive = $$value)), isActive);\n\n\tlet $animation;\n\tlet $canvasSize;\n\tlet $elasticityMultiplier;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActiveFraction());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\tconst name = 'filter';\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { isActiveFraction } = $$props;\n\t$$subscribe_isActiveFraction();\n\tlet { stores } = $$props;\n\tlet { locale } = $$props;\n\tlet { filterFunctions } = $$props;\n\tlet { filterOptions } = $$props;\n\n\t// context\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(13, $elasticityMultiplier = value));\n\n\t// connect filter choice to stores\n\tconst { history, interfaceImages, stageRectBase, utilRect, animation, scrollElasticity, imageSize, imagePreview, imageCropRect, imageRotation, imageFlipX, imageFlipY, imageBackgroundColor, imageGamma, imageColorMatrix, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\n\tcomponent_subscribe($$self, interfaceImages, value => $$invalidate(60, $interfaceImages = value));\n\tcomponent_subscribe($$self, stageRectBase, value => $$invalidate(48, $stageRectBase = value));\n\tcomponent_subscribe($$self, utilRect, value => $$invalidate(47, $utilRect = value));\n\tcomponent_subscribe($$self, animation, value => $$invalidate(50, $animation = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(62, $imageSize = value));\n\tcomponent_subscribe($$self, imagePreview, value => $$invalidate(42, $imagePreview = value));\n\tcomponent_subscribe($$self, imageBackgroundColor, value => $$invalidate(61, $imageBackgroundColor = value));\n\tcomponent_subscribe($$self, imageGamma, value => $$invalidate(44, $imageGamma = value));\n\tcomponent_subscribe($$self, imageColorMatrix, value => $$invalidate(40, $imageColorMatrix = value));\n\n\tconst getFilterIndex = (imageColorMatrix, filterOptionsFlattened) => {\n\t\tif (!imageColorMatrix || !imageColorMatrix['filter'] || !filterOptionsFlattened) return 0;\n\t\tconst filterColorMatrix = imageColorMatrix['filter'];\n\n\t\treturn filterOptionsFlattened.// get id and compare matrices\n\t\tfindIndex(([id]) => {\n\t\t\tif (!filterFunctions[id]) return false;\n\t\t\tconst matrix = filterFunctions[id]();\n\t\t\treturn arrayEqual(matrix, filterColorMatrix);\n\t\t});\n\t};\n\n\tconst tileRects = writable({});\n\tcomponent_subscribe($$self, tileRects, value => $$invalidate(46, $tileRects = value));\n\tconst handleTileResize = (item, rect) => set_store_value(tileRects, $tileRects[item.value] = rect, $tileRects);\n\n\tconst canvasSize = derived(tileRects, $tileRects => {\n\t\tif (!$tileRects[undefined]) return;\n\t\tconst tileRectFirst = $tileRects[undefined];\n\t\tif ($canvasSize && sizeEqual($canvasSize, tileRectFirst)) return $canvasSize;\n\t\treturn sizeClone(tileRectFirst);\n\t});\n\n\tcomponent_subscribe($$self, canvasSize, value => $$invalidate(63, $canvasSize = value));\n\n\tconst imageTransforms = derived(\n\t\t[\n\t\t\tisActive,\n\t\t\tcanvasSize,\n\t\t\timageCropRect,\n\t\t\timageSize,\n\t\t\timageRotation,\n\t\t\timageFlipX,\n\t\t\timageFlipY\n\t\t],\n\t\t([\n\t\t\t\t$isActive,\n\t\t\t\t$canvasSize,\n\t\t\t\t$imageCropRect,\n\t\t\t\t$imageSize,\n\t\t\t\t$imageRotation,\n\t\t\t\t$imageFlipX,\n\t\t\t\t$imageFlipY\n\t\t\t], set) => {\n\t\t\tif (!$isActive || !$canvasSize || !$imageSize) return $imageTransforms;\n\t\t\tconst imageRect = rectCreateFromSize($imageSize);\n\t\t\tconst imageCenter = rectCenter(imageRect);\n\n\t\t\t// get base crop rect so we can correctly apply transforms\n\t\t\tconst cropRectBase = getBaseCropRect($imageSize, $imageCropRect, $imageRotation);\n\n\t\t\tconst cropRectBaseCenter = rectCenter(cropRectBase);\n\t\t\tconst imageTranslation = vectorSubtract(vectorClone(imageCenter), cropRectBaseCenter);\n\t\t\tconst imageOrigin = vectorInvert(vectorClone(imageTranslation));\n\n\t\t\t// scalar\n\t\t\tconst imageScalar = Math.max($canvasSize.width / $imageCropRect.width, $canvasSize.height / $imageCropRect.height);\n\n\t\t\t// update preview transforms\n\t\t\tset({\n\t\t\t\torigin: imageOrigin,\n\t\t\t\ttranslation: imageTranslation,\n\t\t\t\trotation: {\n\t\t\t\t\tx: $imageFlipY ? Math.PI : 0,\n\t\t\t\t\ty: $imageFlipX ? Math.PI : 0,\n\t\t\t\t\tz: $imageRotation\n\t\t\t\t},\n\t\t\t\tscale: imageScalar\n\t\t\t});\n\t\t}\n\t);\n\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(45, $imageTransforms = value));\n\n\tconst cloneImageTransforms = imageTransforms => ({\n\t\torigin: vectorClone(imageTransforms.origin),\n\t\ttranslation: vectorClone(imageTransforms.translation),\n\t\trotation: { ...imageTransforms.rotation },\n\t\t// perspective: vectorClone(imageTransforms.perspective),\n\t\tscale: imageTransforms.scale\n\t});\n\n\t//\n\t// Footer\n\t//\n\tconst footerOffset = spring($animation ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(39, $footerOffset = value));\n\tlet tileCornerRadius;\n\tconst tileElements = {};\n\n\tconst handleTransitionEnd = e => {\n\t\tif (e.target.className !== FILTER_PREVIEW_CLASS_NAME) return;\n\n\t\t$$invalidate(36, tileCornerRadius = Object.keys(tileElements).reduce(\n\t\t\t(prev, curr) => {\n\t\t\t\tconst element = tileElements[curr];\n\t\t\t\tconst style = getComputedStyle(element);\n\n\t\t\t\tconst corners = ['top-left', 'top-right', 'bottom-left', 'bottom-right'].map(corner => style.getPropertyValue(`border-${corner}-radius`)).map(unitToPixels).// this better aligns WebGL rounded corner with css rounded corner\n\t\t\t\tmap(v => v * 1.25);\n\n\t\t\t\tprev[curr] = corners;\n\t\t\t\treturn prev;\n\t\t\t},\n\t\t\t{}\n\t\t));\n\t};\n\n\tlet tileLeftOpacity; // set by Scrollable\n\tlet tileRightOpacity; // set by Scrollable\n\tlet tileMargin; // set by Scrollable\n\tlet tileScrollOffset = { x: 0, y: 0 };\n\tlet tileScrollContainerRect;\n\tlet tileWrapperOffset;\n\tlet footerRect;\n\tconst imageTiles = writable([]);\n\tcomponent_subscribe($$self, imageTiles, value => $$invalidate(41, $imageTiles = value));\n\n\t// clones an image tile for use in canvas\n\tconst cloneImageTile = tile => {\n\t\tconst clone = {\n\t\t\t// doesn't clone everything but should be enough\n\t\t\t...tile,\n\t\t\tdata: $imagePreview,\n\t\t\tsize: $imageSize,\n\t\t\toffset: { ...tile.offset },\n\t\t\tmask: { ...tile.mask },\n\t\t\tbackgroundColor: $imageBackgroundColor\n\t\t};\n\n\t\tclone.opacity = $isActiveFraction;\n\t\tclone.offset.y += $footerOffset;\n\t\tclone.mask.y += $footerOffset;\n\t\tclone.id = 'filter';\n\t\treturn clone;\n\t};\n\n\tconst filterInterfaceImages = () => $interfaceImages.filter(tile => tile.id !== 'filter');\n\n\tconst handleChangeFilter = ({ value }) => {\n\t\tset_store_value(\n\t\t\timageColorMatrix,\n\t\t\t$imageColorMatrix = {\n\t\t\t\t...$imageColorMatrix,\n\t\t\t\tfilter: isFunction(filterFunctions[value])\n\t\t\t\t? filterFunctions[value]()\n\t\t\t\t: undefined\n\t\t\t},\n\t\t\t$imageColorMatrix\n\t\t);\n\n\t\thistory.write();\n\t};\n\n\t// when destroyed we need to make sure all filter image previews are cleared\n\tonDestroy(() => {\n\t\tinterfaceImages.set([]);\n\t});\n\n\tconst measure_handler_1 = (option, e) => handleTileResize(option, e.detail);\n\n\tfunction div0_binding($$value, option) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\ttileElements[option.value] = $$value;\n\t\t\t$$invalidate(10, tileElements);\n\t\t});\n\t}\n\n\tconst func = offset => $$invalidate(7, tileScrollOffset = offset);\n\n\tfunction scrollable_maskFeatherStartOpacity_binding(value) {\n\t\ttileLeftOpacity = value;\n\t\t$$invalidate(4, tileLeftOpacity);\n\t}\n\n\tfunction scrollable_maskFeatherEndOpacity_binding(value) {\n\t\ttileRightOpacity = value;\n\t\t$$invalidate(5, tileRightOpacity);\n\t}\n\n\tfunction scrollable_maskFeatherSize_binding(value) {\n\t\ttileMargin = value;\n\t\t$$invalidate(6, tileMargin);\n\t}\n\n\tconst measure_handler_2 = e => $$invalidate(8, tileScrollContainerRect = e.detail);\n\tconst measure_handler_3 = e => $$invalidate(9, footerRect = e.detail);\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('isActiveFraction' in $$props) $$subscribe_isActiveFraction($$invalidate(1, isActiveFraction = $$props.isActiveFraction));\n\t\tif ('stores' in $$props) $$invalidate(34, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(2, locale = $$props.locale);\n\t\tif ('filterFunctions' in $$props) $$invalidate(35, filterFunctions = $$props.filterFunctions);\n\t\tif ('filterOptions' in $$props) $$invalidate(3, filterOptions = $$props.filterOptions);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\t// enable pan and zoom\n\t\t\tallowPan.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\tallowZoom.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\tallowZoomControls.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\t$isActive && allowPlayPause.set(false);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*filterOptions*/ 8) {\n\t\t\t$$invalidate(38, filterOptionsFlattened = flattenOptions(filterOptions));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageColorMatrix, filterOptionsFlattened*/ 640) {\n\t\t\t$$invalidate(12, selectedFilterIndex = getFilterIndex($imageColorMatrix, filterOptionsFlattened));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$animation, $isActive*/ 786432) {\n\t\t\t$animation && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*footerRect*/ 512 | $$self.$$.dirty[1] & /*$isActive, $utilRect, $stageRectBase*/ 458752) {\n\t\t\tif ($isActive && $utilRect && $stageRectBase && footerRect) {\n\t\t\t\t$$invalidate(37, tileWrapperOffset = {\n\t\t\t\t\tx: $stageRectBase.x - $utilRect.x,\n\t\t\t\t\ty: $stageRectBase.y - $utilRect.y + footerRect.y\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*tileScrollOffset, tileScrollContainerRect, tileMargin, tileLeftOpacity, tileRightOpacity*/ 496 | $$self.$$.dirty[1] & /*$imageTransforms, tileWrapperOffset, tileCornerRadius, filterOptionsFlattened, $tileRects, $imageColorMatrix, filterFunctions, $imageGamma*/ 58096) {\n\t\t\tif ($imageTransforms && tileWrapperOffset && tileScrollOffset && tileScrollContainerRect && tileCornerRadius) {\n\t\t\t\tconst boundsX = tileWrapperOffset.x + tileScrollContainerRect.x;\n\t\t\t\tconst offsetX = boundsX + tileScrollOffset.x;\n\t\t\t\tconst offsetY = tileWrapperOffset.y;\n\t\t\t\tconst containerLeft = tileScrollContainerRect.x + tileWrapperOffset.x;\n\t\t\t\tconst containerRight = containerLeft + tileScrollContainerRect.width;\n\n\t\t\t\timageTiles.set(filterOptionsFlattened.map(([id], i) => {\n\t\t\t\t\tconst tileRect = $tileRects[id];\n\n\t\t\t\t\t// test if is outside of view\n\t\t\t\t\tconst tileLeft = tileScrollOffset.x + tileRect.x;\n\n\t\t\t\t\tconst tileRight = tileLeft + tileRect.width;\n\t\t\t\t\tif (tileRight < 0 || tileLeft > tileScrollContainerRect.width) return false;\n\t\t\t\t\tconst x = offsetX + tileRect.x;\n\t\t\t\t\tconst y = offsetY + tileRect.y;\n\t\t\t\t\tconst preview = cloneImageTransforms($imageTransforms);\n\t\t\t\t\tpreview.offset = vectorCreate(tileRect.width * 0.5 + x, tileRect.height * 0.5 + y);\n\t\t\t\t\tlet clipX = 0;\n\t\t\t\t\tlet clipWidth = 0;\n\t\t\t\t\tpreview.maskOpacity = 1;\n\t\t\t\t\tpreview.mask = rectCreate(x + clipX, y, tileRect.width + clipWidth, tileRect.height);\n\t\t\t\t\tpreview.maskFeather = [1, 0, 1, 0, 1, containerRight, 1, containerRight];\n\n\t\t\t\t\tif (tileLeft < tileMargin && tileLeftOpacity < 1) {\n\t\t\t\t\t\tpreview.maskFeather[0] = tileLeftOpacity;\n\t\t\t\t\t\tpreview.maskFeather[1] = containerLeft;\n\t\t\t\t\t\tpreview.maskFeather[2] = 1;\n\t\t\t\t\t\tpreview.maskFeather[3] = containerLeft + tileMargin;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (tileRight > tileScrollContainerRect.width - tileMargin && tileRightOpacity < 1) {\n\t\t\t\t\t\tpreview.maskFeather[4] = tileRightOpacity;\n\t\t\t\t\t\tpreview.maskFeather[5] = containerRight - tileMargin;\n\t\t\t\t\t\tpreview.maskFeather[6] = 1;\n\t\t\t\t\t\tpreview.maskFeather[7] = containerRight;\n\t\t\t\t\t}\n\n\t\t\t\t\tpreview.maskCornerRadius = tileCornerRadius[id];\n\t\t\t\t\tlet colorMatrices = $imageColorMatrix && Object.keys($imageColorMatrix).filter(name => name != 'filter').map(name => $imageColorMatrix[name]) || [];\n\n\t\t\t\t\tif (isFunction(filterFunctions[id])) {\n\t\t\t\t\t\tcolorMatrices.push(filterFunctions[id]());\n\t\t\t\t\t}\n\n\t\t\t\t\tpreview.colorMatrix = colorMatrices.length\n\t\t\t\t\t? getColorMatrixFromColorMatrices(colorMatrices)\n\t\t\t\t\t: undefined;\n\n\t\t\t\t\tpreview.gamma = $imageGamma;\n\t\t\t\t\treturn preview;\n\t\t\t\t}).filter(Boolean));\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActiveFraction, $imageTiles, $footerOffset, $imagePreview*/ 7424) {\n\t\t\t// Will update `interfaceImages` store when\n\t\t\t// - $isActiveFraction is updated\n\t\t\t// - $imageTiles is updated\n\t\t\t// - $footerOffset is updated\n\t\t\tif ($isActiveFraction > 0 && $imageTiles) {\n\n\t\t\t\tconst images = [\n\t\t\t\t\t// remove filter tiles\n\t\t\t\t\t...filterInterfaceImages(),\n\t\t\t\t\t// add new filter tiles\n\t\t\t\t\t...$imageTiles.map(cloneImageTile)\n\t\t\t\t];\n\n\t\t\t\t// images\n\t\t\t\tinterfaceImages.set(images);\n\t\t\t} else {\n\t\t\t\tinterfaceImages.set(// remove filter tiles\n\t\t\t\tfilterInterfaceImages());\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$footerOffset*/ 256) {\n\t\t\t$$invalidate(11, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tlocale,\n\t\tfilterOptions,\n\t\ttileLeftOpacity,\n\t\ttileRightOpacity,\n\t\ttileMargin,\n\t\ttileScrollOffset,\n\t\ttileScrollContainerRect,\n\t\tfooterRect,\n\t\ttileElements,\n\t\tfooterStyle,\n\t\tselectedFilterIndex,\n\t\t$elasticityMultiplier,\n\t\telasticityMultiplier,\n\t\tinterfaceImages,\n\t\tstageRectBase,\n\t\tutilRect,\n\t\tanimation,\n\t\tscrollElasticity,\n\t\timageSize,\n\t\timagePreview,\n\t\timageBackgroundColor,\n\t\timageGamma,\n\t\timageColorMatrix,\n\t\ttileRects,\n\t\thandleTileResize,\n\t\tcanvasSize,\n\t\timageTransforms,\n\t\tfooterOffset,\n\t\thandleTransitionEnd,\n\t\timageTiles,\n\t\thandleChangeFilter,\n\t\tname,\n\t\tstores,\n\t\tfilterFunctions,\n\t\ttileCornerRadius,\n\t\ttileWrapperOffset,\n\t\tfilterOptionsFlattened,\n\t\t$footerOffset,\n\t\t$imageColorMatrix,\n\t\t$imageTiles,\n\t\t$imagePreview,\n\t\t$isActiveFraction,\n\t\t$imageGamma,\n\t\t$imageTransforms,\n\t\t$tileRects,\n\t\t$utilRect,\n\t\t$stageRectBase,\n\t\t$isActive,\n\t\t$animation,\n\t\tmeasure_handler_1,\n\t\tdiv0_binding,\n\t\tfunc,\n\t\tscrollable_maskFeatherStartOpacity_binding,\n\t\tscrollable_maskFeatherEndOpacity_binding,\n\t\tscrollable_maskFeatherSize_binding,\n\t\tmeasure_handler_2,\n\t\tmeasure_handler_3,\n\t\tmeasure_handler\n\t];\n}\n\nclass Filter extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$j,\n\t\t\tcreate_fragment$j,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 33,\n\t\t\t\tisActive: 0,\n\t\t\t\tisActiveFraction: 1,\n\t\t\t\tstores: 34,\n\t\t\t\tlocale: 2,\n\t\t\t\tfilterFunctions: 35,\n\t\t\t\tfilterOptions: 3\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[33];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget filterFunctions() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tset filterFunctions(filterFunctions) {\n\t\tthis.$$set({ filterFunctions });\n\t\tflush();\n\t}\n\n\tget filterOptions() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset filterOptions(filterOptions) {\n\t\tthis.$$set({ filterOptions });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_filter = { util: ['filter', Filter] };\n\n/* src/core/ui/plugins/finetune/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_default_slot_2$2(ctx) {\n\tlet span;\n\tlet t_value = /*tab*/ ctx[43].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*tab*/ 4096 && t_value !== (t_value = /*tab*/ ctx[43].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (162:8) <Scrollable elasticity={$elasticityMultiplier * scrollElasticity} class=\"PinturaControlListScroller\" >\nfunction create_default_slot_1$2(ctx) {\n\tlet tablist;\n\tlet current;\n\n\tconst tablist_spread_levels = [\n\t\t{ class: \"PinturaControlList\" },\n\t\t{ tabs: /*tabs*/ ctx[1] },\n\t\t/*tabsConfig*/ ctx[5]\n\t];\n\n\tlet tablist_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot_2$2,\n\t\t\t\t({ tab }) => ({ 43: tab }),\n\t\t\t\t({ tab }) => [0, tab ? 4096 : 0]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tablist_spread_levels.length; i += 1) {\n\t\ttablist_props = assign(tablist_props, tablist_spread_levels[i]);\n\t}\n\n\ttablist = new TabList({ props: tablist_props });\n\ttablist.$on(\"select\", /*select_handler*/ ctx[24]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(tablist.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(tablist, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst tablist_changes = (dirty[0] & /*tabs, tabsConfig*/ 34)\n\t\t\t? get_spread_update(tablist_spread_levels, [\n\t\t\t\t\ttablist_spread_levels[0],\n\t\t\t\t\tdirty[0] & /*tabs*/ 2 && { tabs: /*tabs*/ ctx[1] },\n\t\t\t\t\tdirty[0] & /*tabsConfig*/ 32 && get_spread_object(/*tabsConfig*/ ctx[5])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[1] & /*$$scope, tab*/ 12288) {\n\t\t\t\ttablist_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttablist.$set(tablist_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(tablist.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(tablist.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(tablist, detaching);\n\t\t}\n\t};\n}\n\n// (177:8) <TabPanels class=\"PinturaControlPanels\" panelClass=\"PinturaControlPanel\" {panels} {...tabsConfig} let:panel >\nfunction create_default_slot$8(ctx) {\n\tlet rangeinput;\n\tlet current;\n\tconst rangeinput_spread_levels = [/*$rangeInputConfig*/ ctx[7][/*panel*/ ctx[42]]];\n\tlet rangeinput_props = {};\n\n\tfor (let i = 0; i < rangeinput_spread_levels.length; i += 1) {\n\t\trangeinput_props = assign(rangeinput_props, rangeinput_spread_levels[i]);\n\t}\n\n\trangeinput = new RangeInput({ props: rangeinput_props });\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(rangeinput.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(rangeinput, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst rangeinput_changes = (dirty[0] & /*$rangeInputConfig*/ 128 | dirty[1] & /*panel*/ 2048)\n\t\t\t? get_spread_update(rangeinput_spread_levels, [get_spread_object(/*$rangeInputConfig*/ ctx[7][/*panel*/ ctx[42]])])\n\t\t\t: {};\n\n\t\t\trangeinput.$set(rangeinput_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(rangeinput.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(rangeinput.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(rangeinput, detaching);\n\t\t}\n\t};\n}\n\n// (161:4) \nfunction create_footer_slot$4(ctx) {\n\tlet div;\n\tlet scrollable;\n\tlet t;\n\tlet tabpanels;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\telasticity: /*$elasticityMultiplier*/ ctx[6] * /*scrollElasticity*/ ctx[9],\n\t\t\t\tclass: \"PinturaControlListScroller\",\n\t\t\t\t$$slots: { default: [create_default_slot_1$2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tconst tabpanels_spread_levels = [\n\t\t{ class: \"PinturaControlPanels\" },\n\t\t{ panelClass: \"PinturaControlPanel\" },\n\t\t{ panels: /*panels*/ ctx[4] },\n\t\t/*tabsConfig*/ ctx[5]\n\t];\n\n\tlet tabpanels_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot$8,\n\t\t\t\t({ panel }) => ({ 42: panel }),\n\t\t\t\t({ panel }) => [0, panel ? 2048 : 0]\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tabpanels_spread_levels.length; i += 1) {\n\t\ttabpanels_props = assign(tabpanels_props, tabpanels_spread_levels[i]);\n\t}\n\n\ttabpanels = new TabPanels({ props: tabpanels_props });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(tabpanels.$$.fragment);\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tappend(div, t);\n\t\t\tmount_component(tabpanels, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[0] & /*$elasticityMultiplier*/ 64) scrollable_changes.elasticity = /*$elasticityMultiplier*/ ctx[6] * /*scrollElasticity*/ ctx[9];\n\n\t\t\tif (dirty[0] & /*tabs, tabsConfig, tabSelected*/ 38 | dirty[1] & /*$$scope*/ 8192) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\n\t\t\tconst tabpanels_changes = (dirty[0] & /*panels, tabsConfig*/ 48)\n\t\t\t? get_spread_update(tabpanels_spread_levels, [\n\t\t\t\t\ttabpanels_spread_levels[0],\n\t\t\t\t\ttabpanels_spread_levels[1],\n\t\t\t\t\tdirty[0] & /*panels*/ 16 && { panels: /*panels*/ ctx[4] },\n\t\t\t\t\tdirty[0] & /*tabsConfig*/ 32 && get_spread_object(/*tabsConfig*/ ctx[5])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty[0] & /*$rangeInputConfig*/ 128 | dirty[1] & /*$$scope, panel*/ 10240) {\n\t\t\t\ttabpanels_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttabpanels.$set(tabpanels_changes);\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 8) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\ttransition_in(tabpanels.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\ttransition_out(tabpanels.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(scrollable);\n\t\t\tdestroy_component(tabpanels);\n\t\t}\n\t};\n}\n\nfunction create_fragment$i(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\t$$slots: { footer: [create_footer_slot$4] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[25]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\n\t\t\tif (dirty[0] & /*footerStyle, panels, tabsConfig, $rangeInputConfig, $elasticityMultiplier, tabs, tabSelected*/ 254 | dirty[1] & /*$$scope*/ 8192) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$i($$self, $$props, $$invalidate) {\n\tlet tabs;\n\tlet tabSelected;\n\tlet tabsConfig;\n\tlet panels;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(21, $isActive = $$value)), isActive);\n\n\tlet $animation;\n\tlet $panelValues;\n\tlet $elasticityMultiplier;\n\tlet $rangeInputConfig;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\tconst name = 'finetune';\n\tlet { stores } = $$props;\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { locale = {} } = $$props;\n\tlet { finetuneControlConfiguration } = $$props;\n\tlet { finetuneOptions } = $$props;\n\tlet { finetuneNudgePrecision = undefined } = $$props;\n\tconst { history, animation, scrollElasticity, rangeInputElasticity, imageColorMatrix, imageConvolutionMatrix, imageGamma, imageVignette, imageNoise, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\tcomponent_subscribe($$self, animation, value => $$invalidate(22, $animation = value));\n\n\tconst imageEffectStores = {\n\t\timageColorMatrix,\n\t\timageConvolutionMatrix,\n\t\timageGamma,\n\t\timageVignette,\n\t\timageNoise\n\t};\n\n\t//\n\t// context\n\t//\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(6, $elasticityMultiplier = value));\n\n\t//\n\t// Tabs\n\t//\n\tconst uid = `finetune-${getUniqueId()}`;\n\n\t//\n\t// Range inputs\n\t//\n\tconst panelValues = writable({});\n\n\tcomponent_subscribe($$self, panelValues, value => $$invalidate(23, $panelValues = value));\n\tconst rangeInputConfig = writable({});\n\tcomponent_subscribe($$self, rangeInputConfig, value => $$invalidate(7, $rangeInputConfig = value));\n\n\tconst updateRangeInputState = () => {\n\t\tset_store_value(\n\t\t\trangeInputConfig,\n\t\t\t$rangeInputConfig = Object.keys($panelValues).reduce(\n\t\t\t\t(config, id) => {\n\t\t\t\t\tconst { base, min, max, getLabel, getStore, setValue = (store, v) => store.set(v) } = finetuneControlConfiguration[id];\n\t\t\t\t\tconst store = getStore(imageEffectStores);\n\t\t\t\t\tconst value = $panelValues[id] != null ? $panelValues[id] : base;\n\n\t\t\t\t\tconfig[id] = {\n\t\t\t\t\t\tbase,\n\t\t\t\t\t\tmin,\n\t\t\t\t\t\tmax,\n\t\t\t\t\t\tvalue,\n\t\t\t\t\t\tvalueLabel: getLabel\n\t\t\t\t\t\t? getLabel(value, min, max, max - min)\n\t\t\t\t\t\t: Math.round(100 * value),\n\t\t\t\t\t\toninputmove: v => {\n\t\t\t\t\t\t\tsetValue(store, v);\n\t\t\t\t\t\t},\n\t\t\t\t\t\toninputend: v => {\n\t\t\t\t\t\t\tsetValue(store, v);\n\t\t\t\t\t\t\thistory.write();\n\t\t\t\t\t\t},\n\t\t\t\t\t\telasticity: $elasticityMultiplier * rangeInputElasticity,\n\t\t\t\t\t\tlabelReset: locale.labelReset,\n\t\t\t\t\t\tnudgeMultiplier: finetuneNudgePrecision\n\t\t\t\t\t};\n\n\t\t\t\t\treturn config;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t),\n\t\t\t$rangeInputConfig\n\t\t);\n\t};\n\n\t// need to unsubscribe when redrawing vie\n\tlet unsubs = [];\n\n\tconst subscribePanelStores = config => {\n\t\tif (unsubs) unsubs.forEach(unsub => unsub());\n\n\t\tunsubs = panels.map(id => {\n\t\t\tconst { getStore, getValue = passthrough } = config[id];\n\t\t\tconst store = getStore(imageEffectStores);\n\n\t\t\treturn store.subscribe(value => {\n\t\t\t\tconst currentValue = value != null ? getValue(value) : value;\n\t\t\t\tset_store_value(panelValues, $panelValues = { ...$panelValues, [id]: currentValue }, $panelValues);\n\t\t\t});\n\t\t});\n\t};\n\n\t//\n\t// Footer\n\t//\n\tconst footerOffset = spring($animation ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(20, $footerOffset = value));\n\tconst select_handler = ({ detail }) => $$invalidate(2, tabSelected = detail);\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('stores' in $$props) $$invalidate(15, stores = $$props.stores);\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('locale' in $$props) $$invalidate(16, locale = $$props.locale);\n\t\tif ('finetuneControlConfiguration' in $$props) $$invalidate(17, finetuneControlConfiguration = $$props.finetuneControlConfiguration);\n\t\tif ('finetuneOptions' in $$props) $$invalidate(18, finetuneOptions = $$props.finetuneOptions);\n\t\tif ('finetuneNudgePrecision' in $$props) $$invalidate(19, finetuneNudgePrecision = $$props.finetuneNudgePrecision);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 2097152) {\n\t\t\t// enable pan and zoom\n\t\t\tallowPan.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 2097152) {\n\t\t\tallowZoom.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 2097152) {\n\t\t\tallowZoomControls.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 2097152) {\n\t\t\t$isActive && allowPlayPause.set(true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*finetuneOptions, locale*/ 327680) {\n\t\t\t$$invalidate(1, tabs = finetuneOptions\n\t\t\t? finetuneOptions.map(([id, label]) => ({\n\t\t\t\t\tid,\n\t\t\t\t\tlabel: isFunction(label) ? label(locale) : label\n\t\t\t\t}))\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*tabs*/ 2) {\n\t\t\t$$invalidate(2, tabSelected = tabs.length && tabs[0].id);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*tabSelected*/ 4) {\n\t\t\t$$invalidate(5, tabsConfig = { name: uid, selected: tabSelected });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*tabs*/ 2) {\n\t\t\t$$invalidate(4, panels = tabs.map(tab => tab.id));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*finetuneControlConfiguration*/ 131072) {\n\t\t\tfinetuneControlConfiguration && subscribePanelStores(finetuneControlConfiguration);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*finetuneControlConfiguration, $panelValues*/ 8519680) {\n\t\t\tfinetuneControlConfiguration && $panelValues && updateRangeInputState();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$animation, $isActive*/ 6291456) {\n\t\t\t$animation && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$footerOffset*/ 1048576) {\n\t\t\t$$invalidate(3, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\ttabs,\n\t\ttabSelected,\n\t\tfooterStyle,\n\t\tpanels,\n\t\ttabsConfig,\n\t\t$elasticityMultiplier,\n\t\t$rangeInputConfig,\n\t\tanimation,\n\t\tscrollElasticity,\n\t\telasticityMultiplier,\n\t\tpanelValues,\n\t\trangeInputConfig,\n\t\tfooterOffset,\n\t\tname,\n\t\tstores,\n\t\tlocale,\n\t\tfinetuneControlConfiguration,\n\t\tfinetuneOptions,\n\t\tfinetuneNudgePrecision,\n\t\t$footerOffset,\n\t\t$isActive,\n\t\t$animation,\n\t\t$panelValues,\n\t\tselect_handler,\n\t\tmeasure_handler\n\t];\n}\n\nclass Finetune extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$i,\n\t\t\tcreate_fragment$i,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 14,\n\t\t\t\tstores: 15,\n\t\t\t\tisActive: 0,\n\t\t\t\tlocale: 16,\n\t\t\t\tfinetuneControlConfiguration: 17,\n\t\t\t\tfinetuneOptions: 18,\n\t\t\t\tfinetuneNudgePrecision: 19\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget finetuneControlConfiguration() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset finetuneControlConfiguration(finetuneControlConfiguration) {\n\t\tthis.$$set({ finetuneControlConfiguration });\n\t\tflush();\n\t}\n\n\tget finetuneOptions() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset finetuneOptions(finetuneOptions) {\n\t\tthis.$$set({ finetuneOptions });\n\t\tflush();\n\t}\n\n\tget finetuneNudgePrecision() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset finetuneNudgePrecision(finetuneNudgePrecision) {\n\t\tthis.$$set({ finetuneNudgePrecision });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_finetune = { util: ['finetune', Finetune] };\n\nvar arrayIndexWrap = (index, arr) => {\n const l = arr.length;\n if (index < 0)\n return (index % l) + l;\n if (index >= l)\n return index % l;\n return index;\n};\n\n/* src/core/ui/components/ShapeManipulator.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$2(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[45] = list[i].key;\n\tchild_ctx[46] = list[i].index;\n\tchild_ctx[47] = list[i].translate;\n\tchild_ctx[48] = list[i].scale;\n\tchild_ctx[12] = list[i].rotate;\n\tchild_ctx[49] = list[i].dir;\n\tchild_ctx[50] = list[i].center;\n\tchild_ctx[51] = list[i].type;\n\tchild_ctx[2] = list[i].visible;\n\treturn child_ctx;\n}\n\n// (254:4) {#if type === 'edge' && visible}\nfunction create_if_block_1$3(ctx) {\n\tlet div;\n\tlet div_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", \"PinturaShapeManipulator\");\n\t\t\tattr(div, \"data-control\", \"point\");\n\t\t\tattr(div, \"style\", div_style_value = `pointer-events:none;transform: translate3d(${/*center*/ ctx[50].x}px, ${/*center*/ ctx[50].y}px, 0) scale(${/*$selectionScale*/ ctx[5]}, ${/*$selectionScale*/ ctx[5]}); opacity: ${/*$selectionOpacity*/ ctx[4]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*resizeControls, $selectionScale, $selectionOpacity*/ 56 && div_style_value !== (div_style_value = `pointer-events:none;transform: translate3d(${/*center*/ ctx[50].x}px, ${/*center*/ ctx[50].y}px, 0) scale(${/*$selectionScale*/ ctx[5]}, ${/*$selectionScale*/ ctx[5]}); opacity: ${/*$selectionOpacity*/ ctx[4]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (233:0) {#each resizeControls as { key, index, translate, scale, rotate, dir, center, type, visible }\nfunction create_each_block$2(key_1, ctx) {\n\tlet div;\n\tlet div_aria_label_value;\n\tlet div_tabindex_value;\n\tlet div_data_control_value;\n\tlet div_style_value;\n\tlet t;\n\tlet if_block_anchor;\n\tlet mounted;\n\tlet dispose;\n\n\tfunction nudge_handler(...args) {\n\t\treturn /*nudge_handler*/ ctx[17](/*index*/ ctx[46], ...args);\n\t}\n\n\tlet if_block = /*type*/ ctx[51] === 'edge' && /*visible*/ ctx[2] && create_if_block_1$3(ctx);\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t\tattr(div, \"role\", \"button\");\n\t\t\tattr(div, \"aria-label\", div_aria_label_value = `Drag ${/*type*/ ctx[51]} ${/*key*/ ctx[45]}`);\n\t\t\tattr(div, \"tabindex\", div_tabindex_value = /*type*/ ctx[51] === 'edge' ? -1 : 0);\n\t\t\tattr(div, \"class\", \"PinturaShapeManipulator\");\n\t\t\tattr(div, \"data-control\", div_data_control_value = /*type*/ ctx[51]);\n\n\t\t\tattr(div, \"style\", div_style_value = `cursor:${/*dir*/ ctx[49] ? /*dir*/ ctx[49] + '-resize' : 'move'};opacity:${/*$selectionOpacity*/ ctx[4]};--tx:${/*translate*/ ctx[47].x};--ty:${/*translate*/ ctx[47].y};--r:${/*type*/ ctx[51] === 'edge' ? /*rotate*/ ctx[12] : 0}rad;--sx:${/*type*/ ctx[51] === 'point'\n\t\t\t? /*$selectionScale*/ ctx[5]\n\t\t\t: /*scale*/ ctx[48].x};--sy:${/*type*/ ctx[51] === 'point'\n\t\t\t? /*$selectionScale*/ ctx[5]\n\t\t\t: /*scale*/ ctx[48].y};`);\n\n\t\t\tthis.first = div;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"nudge\", nudge_handler),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div, { preventDefault: true })),\n\t\t\t\t\tlisten(div, \"interactionstart\", function () {\n\t\t\t\t\t\tif (is_function(/*resize*/ ctx[9]('start', /*index*/ ctx[46]))) /*resize*/ ctx[9]('start', /*index*/ ctx[46]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionupdate\", function () {\n\t\t\t\t\t\tif (is_function(/*resize*/ ctx[9]('move', /*index*/ ctx[46]))) /*resize*/ ctx[9]('move', /*index*/ ctx[46]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionend\", function () {\n\t\t\t\t\t\tif (is_function(/*resize*/ ctx[9]('end', /*index*/ ctx[46]))) /*resize*/ ctx[9]('end', /*index*/ ctx[46]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(interactable.call(null, div, { observeKeys: true }))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*resizeControls*/ 8 && div_aria_label_value !== (div_aria_label_value = `Drag ${/*type*/ ctx[51]} ${/*key*/ ctx[45]}`)) {\n\t\t\t\tattr(div, \"aria-label\", div_aria_label_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*resizeControls*/ 8 && div_tabindex_value !== (div_tabindex_value = /*type*/ ctx[51] === 'edge' ? -1 : 0)) {\n\t\t\t\tattr(div, \"tabindex\", div_tabindex_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*resizeControls*/ 8 && div_data_control_value !== (div_data_control_value = /*type*/ ctx[51])) {\n\t\t\t\tattr(div, \"data-control\", div_data_control_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*resizeControls, $selectionOpacity, $selectionScale*/ 56 && div_style_value !== (div_style_value = `cursor:${/*dir*/ ctx[49] ? /*dir*/ ctx[49] + '-resize' : 'move'};opacity:${/*$selectionOpacity*/ ctx[4]};--tx:${/*translate*/ ctx[47].x};--ty:${/*translate*/ ctx[47].y};--r:${/*type*/ ctx[51] === 'edge' ? /*rotate*/ ctx[12] : 0}rad;--sx:${/*type*/ ctx[51] === 'point'\n\t\t\t? /*$selectionScale*/ ctx[5]\n\t\t\t: /*scale*/ ctx[48].x};--sy:${/*type*/ ctx[51] === 'point'\n\t\t\t? /*$selectionScale*/ ctx[5]\n\t\t\t: /*scale*/ ctx[48].y};`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\n\t\t\tif (/*type*/ ctx[51] === 'edge' && /*visible*/ ctx[2]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_1$3(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (264:0) {#if enableRotatePoints}\nfunction create_if_block$6(ctx) {\n\tlet div;\n\tlet div_style_value;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"role\", \"button\");\n\t\t\tattr(div, \"aria-label\", \"Drag rotator\");\n\t\t\tattr(div, \"tabindex\", \"0\");\n\t\t\tattr(div, \"class\", \"PinturaShapeManipulator\");\n\t\t\tattr(div, \"data-control\", \"rotate\");\n\t\t\tattr(div, \"style\", div_style_value = `transform: translate3d(${/*rotatorPoint*/ ctx[0].x}px, ${/*rotatorPoint*/ ctx[0].y}px, 0) scale(${/*$selectionScale*/ ctx[5]}, ${/*$selectionScale*/ ctx[5]}); opacity: ${/*$selectionOpacity*/ ctx[4]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"nudge\", /*handleRotateNudge*/ ctx[11]),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div, { preventDefault: true })),\n\t\t\t\t\tlisten(div, \"interactionstart\", /*rotate*/ ctx[12]('start')),\n\t\t\t\t\tlisten(div, \"interactionupdate\", /*rotate*/ ctx[12]('move')),\n\t\t\t\t\tlisten(div, \"interactionend\", /*rotate*/ ctx[12]('end')),\n\t\t\t\t\taction_destroyer(interactable.call(null, div, { observeKeys: true }))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*rotatorPoint, $selectionScale, $selectionOpacity*/ 49 && div_style_value !== (div_style_value = `transform: translate3d(${/*rotatorPoint*/ ctx[0].x}px, ${/*rotatorPoint*/ ctx[0].y}px, 0) scale(${/*$selectionScale*/ ctx[5]}, ${/*$selectionScale*/ ctx[5]}); opacity: ${/*$selectionOpacity*/ ctx[4]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$h(ctx) {\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet t;\n\tlet if_block_anchor;\n\tlet each_value = /*resizeControls*/ ctx[3];\n\tconst get_key = ctx => /*key*/ ctx[45];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$2(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));\n\t}\n\n\tlet if_block = /*enableRotatePoints*/ ctx[1] && create_if_block$6(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*resizeControls, $selectionScale, $selectionOpacity, handleResizeNudge, resize*/ 1592) {\n\t\t\t\teach_value = /*resizeControls*/ ctx[3];\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, t.parentNode, destroy_block, create_each_block$2, t, get_each_context$2);\n\t\t\t}\n\n\t\t\tif (/*enableRotatePoints*/ ctx[1]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$6(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\nfunction instance$h($$self, $$props, $$invalidate) {\n\tlet resizeControls;\n\tlet $isAnimated;\n\tlet $selectionOpacity;\n\tlet $selectionScale;\n\tconst dispatch = createEventDispatcher();\n\n\t// which cursor to render\n\tconst EIGTH_PI = QUART_PI * 0.5;\n\n\tconst N = HALF_PI;\n\tconst N0 = N - EIGTH_PI;\n\tconst N1 = N + EIGTH_PI;\n\tconst S = -HALF_PI;\n\tconst S0 = S - EIGTH_PI;\n\tconst S1 = S + EIGTH_PI;\n\tconst E = PI;\n\tconst E0 = E - EIGTH_PI;\n\tconst E1 = -PI + EIGTH_PI;\n\tconst W0 = EIGTH_PI;\n\tconst W1 = -EIGTH_PI;\n\tconst NW = N - QUART_PI;\n\tconst NW0 = NW - EIGTH_PI;\n\tconst NW1 = NW + EIGTH_PI;\n\tconst NE = PI - QUART_PI;\n\tconst NE0 = NE - EIGTH_PI;\n\tconst NE1 = NE + EIGTH_PI;\n\tconst SE = S - QUART_PI;\n\tconst SE0 = SE + EIGTH_PI;\n\tconst SE1 = SE - EIGTH_PI;\n\tconst SW = S + QUART_PI;\n\tconst SW0 = SW + EIGTH_PI;\n\tconst SW1 = SW - EIGTH_PI;\n\tlet { visible = false } = $$props;\n\tlet { points = [] } = $$props;\n\tlet { rotatorPoint = undefined } = $$props;\n\tlet { enableDragEdges = true } = $$props;\n\tlet { enableDragPoints = true } = $$props;\n\tlet { enableRotatePoints = true } = $$props;\n\n\t// contex\n\tconst isAnimated = getContext('isAnimated');\n\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(16, $isAnimated = value));\n\n\t// state\n\tconst selectionScale = spring(0.5, {\n\t\tprecision: 0.0001,\n\t\tstiffness: 0.3,\n\t\tdamping: 0.7\n\t});\n\n\tcomponent_subscribe($$self, selectionScale, value => $$invalidate(5, $selectionScale = value));\n\n\tconst selectionOpacity = spring(0, {\n\t\tprecision: 0.001,\n\t\tstiffness: 0.3,\n\t\tdamping: 0.7\n\t});\n\n\tcomponent_subscribe($$self, selectionOpacity, value => $$invalidate(4, $selectionOpacity = value));\n\n\tconst rotate = type => ({ detail }) => {\n\t\t// always make sure we have a translation to work with\n\t\tconst translation = detail && detail.translation\n\t\t? detail.translation\n\t\t: vectorCreate(0, 0);\n\n\t\tdispatch(`rotate${type}`, { ...detail, translation });\n\t};\n\n\tconst resize = (type, indexes) => ({ detail }) => {\n\t\t// always make sure we have a translation to work with\n\t\tconst translation = detail && detail.translation\n\t\t? detail.translation\n\t\t: vectorCreate(0, 0);\n\n\t\t// done transforming the points\n\t\tdispatch(`resize${type}`, { ...detail, indexes, translation });\n\t};\n\n\t// https://en.wikipedia.org/wiki/Radian#/media/File:Degree-Radian_Conversion.svg\n\tconst getDirectionByAngle = angle => {\n\t\tlet dir = '';\n\t\tconst isNorth = angle <= N1 && angle >= N0;\n\t\tconst isSouth = angle >= S0 && angle <= S1;\n\t\tconst isEast = angle <= E1 || angle >= E0;\n\t\tconst isWest = angle >= W1 && angle <= W0;\n\t\tconst isNorthEast = angle >= NE0 && angle <= NE1;\n\t\tconst isNorthWest = angle >= NW0 && angle <= NW1;\n\t\tconst isSouthEast = angle <= SE0 && angle >= SE1;\n\t\tconst isSouthWest = angle <= SW0 && angle >= SW1;\n\t\tif (isNorth || isSouth) dir = 'ns';\n\t\tif (isEast || isWest) dir = 'ew';\n\t\tif (isNorthEast || isSouthWest) dir = 'nesw';\n\t\tif (isNorthWest || isSouthEast) dir = 'nwse';\n\t\treturn dir;\n\t};\n\n\t// 2 points -> [corner, corner]\n\t// 3 points => [corner, edge, corner, edge, corner, edge],\n\t// 4 points => [corner, edge, corner, edge, corner, edge, corner, edge]\n\tconst mapPointsToControls = (points, axis) => {\n\t\tlet i = 0;\n\t\tconst center = vectorCenter(points);\n\t\tconst out = [];\n\t\tconst l = points.length;\n\n\t\t// const isLine = l === 2 || l > 4;\n\t\t// const isAxisLimited = axis !== 'both';\n\t\tfor (; i < l; i++) {\n\t\t\tconst i0 = arrayIndexWrap(i - 1, points);\n\n\t\t\t// const i1 = i;\n\t\t\tconst i2 = arrayIndexWrap(i + 1, points);\n\n\t\t\tconst p0 = points[i0];\n\t\t\tconst p1 = points[i];\n\t\t\tconst p2 = points[i2];\n\t\t\tconst dir = Math.atan2(p2.y - p1.y, p2.x - p1.x);\n\n\t\t\t// can drag vertices\n\t\t\tif (enableDragPoints) {\n\t\t\t\tconst a = vectorNormalize(vectorCreate(p0.x - p1.x, p0.y - p1.y));\n\t\t\t\tconst b = vectorNormalize(vectorCreate(p2.x - p1.x, p2.y - p1.y));\n\t\t\t\tconst cornerVector = vectorCreate(a.x + b.x, a.y + b.y);\n\n\t\t\t\tconst dir = !enableDragEdges\n\t\t\t\t? undefined\n\t\t\t\t: enableDragPoints && getDirectionByAngle(Math.atan2(cornerVector.y, cornerVector.x));\n\n\t\t\t\tout.push({\n\t\t\t\t\tindex: [i],\n\t\t\t\t\tkey: `point-${i}`,\n\t\t\t\t\ttype: 'point',\n\t\t\t\t\tscale: { x: 1, y: 1 },\n\t\t\t\t\ttranslate: { x: p1.x, y: p1.y },\n\t\t\t\t\tangle: undefined,\n\t\t\t\t\trotate: enableRotatePoints,\n\t\t\t\t\tcenter: p1,\n\t\t\t\t\tdir\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// skip edge dragging\n\t\t\tif (!enableDragEdges) continue;\n\n\t\t\tif (Array.isArray(enableDragEdges) && !enableDragEdges.some(([indexFrom, indexTo]) => {\n\t\t\t\treturn i === indexFrom && i2 === indexTo;\n\t\t\t})) continue;\n\n\t\t\tconst mid = vectorCreate(p1.x + (p2.x - p1.x) * 0.5, p1.y + (p2.y - p1.y) * 0.5);\n\n\t\t\t// create edge\n\t\t\tout.push({\n\t\t\t\tindex: [i, i2],\n\t\t\t\tkey: `edge-${i}`,\n\t\t\t\ttype: 'edge',\n\t\t\t\tscale: { x: vectorDistance(p1, p2), y: 1 },\n\t\t\t\ttranslate: { x: p1.x, y: p1.y },\n\t\t\t\tangle: dir,\n\t\t\t\trotate: dir,\n\t\t\t\tcenter: mid,\n\t\t\t\tvisible: Array.isArray(enableDragEdges),\n\t\t\t\tdir: getDirectionByAngle(Math.atan2(center.y - mid.y, center.x - mid.x))\n\t\t\t});\n\t\t}\n\n\t\treturn out;\n\t};\n\n\tconst handleResizeNudge = (indexes, translation) => {\n\t\tdispatch(`resizestart`, {\n\t\t\tindexes,\n\t\t\ttranslation: vectorCreateEmpty()\n\t\t});\n\n\t\tdispatch(`resizemove`, { indexes, translation });\n\n\t\tdispatch(`resizeend`, {\n\t\t\tindexes,\n\t\t\ttranslation: vectorCreateEmpty()\n\t\t});\n\t};\n\n\tconst handleRotateNudge = ({ detail }) => {\n\t\tdispatch(`rotatestart`, { translation: vectorCreateEmpty() });\n\t\tdispatch(`rotatemove`, { translation: detail });\n\t\tdispatch(`rotateend`, { translation: vectorCreateEmpty() });\n\t};\n\n\tconst nudge_handler = (index, { detail }) => handleResizeNudge(index, detail);\n\n\t$$self.$$set = $$props => {\n\t\tif ('visible' in $$props) $$invalidate(2, visible = $$props.visible);\n\t\tif ('points' in $$props) $$invalidate(13, points = $$props.points);\n\t\tif ('rotatorPoint' in $$props) $$invalidate(0, rotatorPoint = $$props.rotatorPoint);\n\t\tif ('enableDragEdges' in $$props) $$invalidate(14, enableDragEdges = $$props.enableDragEdges);\n\t\tif ('enableDragPoints' in $$props) $$invalidate(15, enableDragPoints = $$props.enableDragPoints);\n\t\tif ('enableRotatePoints' in $$props) $$invalidate(1, enableRotatePoints = $$props.enableRotatePoints);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*visible, $isAnimated*/ 65540) {\n\t\t\tselectionScale.set(visible ? 1 : 0.5, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*visible, $isAnimated*/ 65540) {\n\t\t\tselectionOpacity.set(visible ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*points*/ 8192) {\n\t\t\t$$invalidate(3, resizeControls = mapPointsToControls(points));\n\t\t}\n\t};\n\n\treturn [\n\t\trotatorPoint,\n\t\tenableRotatePoints,\n\t\tvisible,\n\t\tresizeControls,\n\t\t$selectionOpacity,\n\t\t$selectionScale,\n\t\tisAnimated,\n\t\tselectionScale,\n\t\tselectionOpacity,\n\t\tresize,\n\t\thandleResizeNudge,\n\t\thandleRotateNudge,\n\t\trotate,\n\t\tpoints,\n\t\tenableDragEdges,\n\t\tenableDragPoints,\n\t\t$isAnimated,\n\t\tnudge_handler\n\t];\n}\n\nclass ShapeManipulator extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$h,\n\t\t\tcreate_fragment$h,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tvisible: 2,\n\t\t\t\tpoints: 13,\n\t\t\t\trotatorPoint: 0,\n\t\t\t\tenableDragEdges: 14,\n\t\t\t\tenableDragPoints: 15,\n\t\t\t\tenableRotatePoints: 1\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n}\n\nvar getEventPositionInEditor = (e, viewOffset) => {\n const positionInViewport = getEventPositionInViewport(e);\n return vectorSubtract(positionInViewport, viewOffset);\n};\n\nvar t = (text) => document.createTextNode(text);\n\nvar replaceDivWithBr = (html) => (isSafari() && html.endsWith('<div><br></div>')\n ? html.replace(/<div><br><\\/div>$/, '<br><br>')\n : html)\n .replace(/<div><br><\\/div>/g, '<br>')\n .replace(/<\\/div>/g, '')\n .replace(/<div>/g, '<br>');\n\n/* src/core/ui/components/ContentEditable.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block$5(ctx) {\n\tlet pre;\n\tlet pre_style_value;\n\n\treturn {\n\t\tc() {\n\t\t\tpre = element(\"pre\");\n\t\t\tattr(pre, \"class\", \"PinturaContentEditable\");\n\t\t\tattr(pre, \"style\", pre_style_value = `${/*contentStyle*/ ctx[7]};position:absolute;z-index:-1;pointer-events:none;`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, pre, anchor);\n\t\t\tpre.innerHTML = /*innerHTML*/ ctx[0];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*innerHTML*/ 1) pre.innerHTML = /*innerHTML*/ ctx[0];\n\t\t\tif (dirty[0] & /*contentStyle*/ 128 && pre_style_value !== (pre_style_value = `${/*contentStyle*/ ctx[7]};position:absolute;z-index:-1;pointer-events:none;`)) {\n\t\t\t\tattr(pre, \"style\", pre_style_value);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(pre);\n\t\t}\n\t};\n}\n\nfunction create_fragment$g(ctx) {\n\tlet t_1;\n\tlet pre;\n\tlet pre_data_wrap_content_value;\n\tlet pre_style_value;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = /*shouldSimulateTextEffects*/ ctx[8] && create_if_block$5(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tt_1 = space();\n\t\t\tpre = element(\"pre\");\n\t\t\tattr(pre, \"class\", \"PinturaContentEditable\");\n\n\t\t\tattr(pre, \"data-wrap-content\", pre_data_wrap_content_value = !/*wrapLines*/ ctx[4] && !/*allowNewline*/ ctx[5]\n\t\t\t? 'nowrap'\n\t\t\t: 'wrap');\n\n\t\t\tattr(pre, \"contenteditable\", \"\");\n\t\t\tattr(pre, \"spellcheck\", /*spellcheck*/ ctx[1]);\n\t\t\tattr(pre, \"autocorrect\", /*autocorrect*/ ctx[2]);\n\t\t\tattr(pre, \"autocapitalize\", /*autocapitalize*/ ctx[3]);\n\n\t\t\tattr(pre, \"style\", pre_style_value = /*shouldSimulateTextEffects*/ ctx[8]\n\t\t\t? /*removeTextEffects*/ ctx[15](/*contentStyle*/ ctx[7])\n\t\t\t: /*contentStyle*/ ctx[7]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t_1, anchor);\n\t\t\tinsert(target, pre, anchor);\n\t\t\t/*pre_binding*/ ctx[26](pre);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(pre, \"input\", /*handleInput*/ ctx[13]),\n\t\t\t\t\tlisten(pre, \"compositionend\", /*handleCompositionEnd*/ ctx[12]),\n\t\t\t\t\tlisten(pre, \"paste\", /*handlePaste*/ ctx[14]),\n\t\t\t\t\tlisten(pre, \"keydown\", /*handleKeydown*/ ctx[10]),\n\t\t\t\t\tlisten(pre, \"keyup\", /*handleKeyup*/ ctx[11]),\n\t\t\t\t\tlisten(pre, \"blur\", /*handleBlur*/ ctx[9])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*shouldSimulateTextEffects*/ ctx[8]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block$5(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(t_1.parentNode, t_1);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*wrapLines, allowNewline*/ 48 && pre_data_wrap_content_value !== (pre_data_wrap_content_value = !/*wrapLines*/ ctx[4] && !/*allowNewline*/ ctx[5]\n\t\t\t? 'nowrap'\n\t\t\t: 'wrap')) {\n\t\t\t\tattr(pre, \"data-wrap-content\", pre_data_wrap_content_value);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*spellcheck*/ 2) {\n\t\t\t\tattr(pre, \"spellcheck\", /*spellcheck*/ ctx[1]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*autocorrect*/ 4) {\n\t\t\t\tattr(pre, \"autocorrect\", /*autocorrect*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*autocapitalize*/ 8) {\n\t\t\t\tattr(pre, \"autocapitalize\", /*autocapitalize*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*shouldSimulateTextEffects, contentStyle*/ 384 && pre_style_value !== (pre_style_value = /*shouldSimulateTextEffects*/ ctx[8]\n\t\t\t? /*removeTextEffects*/ ctx[15](/*contentStyle*/ ctx[7])\n\t\t\t: /*contentStyle*/ ctx[7])) {\n\t\t\t\tattr(pre, \"style\", pre_style_value);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t_1);\n\t\t\tif (detaching) detach(pre);\n\t\t\t/*pre_binding*/ ctx[26](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance$g($$self, $$props, $$invalidate) {\n\tlet isReady;\n\tlet shouldSimulateTextEffects;\n\tlet { spellcheck = 'false' } = $$props;\n\tlet { autocorrect = 'off' } = $$props;\n\tlet { autocapitalize = 'off' } = $$props;\n\tlet { wrapLines = true } = $$props;\n\tlet { allowNewline = true } = $$props;\n\tlet { textFormat = 'text' } = $$props;\n\tlet { formatInput = passthrough } = $$props;\n\tlet { formatPaste = passthrough } = $$props;\n\tlet { style = undefined } = $$props;\n\tlet { innerHTML = undefined } = $$props;\n\tlet { oninput = noop$1 } = $$props;\n\tlet { enableTextStyleShortcuts = false } = $$props;\n\tconst confirm = () => confirmInputState();\n\tconst focus = () => element && element.focus();\n\n\tconst select = () => {\n\t\tif (!element) return;\n\t\tconst range = document.createRange();\n\t\trange.selectNodeContents(element);\n\t\tconst selection = getSelectionSafe();\n\t\tselection.removeAllRanges();\n\t\tselection.addRange(range);\n\t};\n\n\t// events\n\tconst dispatchEvent = createEventDispatcher();\n\n\t// reference to contenteditable element\n\tlet element;\n\n\t// use <br> for line breaks\n\tdocument.execCommand('defaultParagraphSeparator', false, 'br');\n\n\tconst setInnerHTML = html => {\n\t\tif (html === element.innerHTML) return;\n\t\t$$invalidate(6, element.innerHTML = html, element);\n\t\tif (element === document.activeElement) select();\n\t};\n\n\tconst removeTextStyles = html => {\n\t\treturn html.replace(/<\\/?(?:i|b|em|u|s|strike|strong|font)>/, '').replace(/style=\".*?\"/g, '').replace(/\\n/gim, '<br>');\n\t};\n\n\tconst updateInnerHTML = () => {\n\t\t// sync property\n\t\t$$invalidate(0, innerHTML = element.innerHTML);\n\n\t\t// let others know\n\t\tconst currentValue = replaceDivWithBr(innerHTML);\n\n\t\tdispatchEvent('input', currentValue);\n\t\toninput(currentValue);\n\n\t\t// always scroll to top\n\t\trequestAnimationFrame(() => element && element.scrollTo(0, 0));\n\t};\n\n\tconst confirmInputState = () => {\n\t\t// bookmark caret positions\n\t\tinsertBookmarks(element);\n\n\t\t// remove styles\n\t\tconst html = textFormat === 'html'\n\t\t? element.innerHTML\n\t\t: removeTextStyles(element.innerHTML);\n\n\t\t// update HTML (don't remove caret positions)\n\t\t$$invalidate(6, element.innerHTML = formatInput(html), element);\n\n\t\t// select bookmarks and remove from DOM\n\t\tselectBookmarks(element);\n\n\t\t// content updated\n\t\tupdateInnerHTML();\n\t};\n\n\tconst handleBlur = () => {\n\t\tdispatchEvent('blur');\n\t};\n\n\tconst handleConfirm = () => {\n\t\tdispatchEvent('confirm');\n\t};\n\n\tconst handleCancel = () => {\n\t\tdispatchEvent('cancel');\n\t};\n\n\tconst styleKeys = {\n\t\tb: 'bold',\n\t\ti: 'italic',\n\t\tu: 'underline',\n\t\ts: 'strikethrough'\n\t};\n\n\tconst handleStyleShortcut = key => {\n\t\tconst cmd = styleKeys[key];\n\t\tcmd && document.execCommand(cmd);\n\t};\n\n\tconst handleKeydown = e => {\n\t\t// is escape key, cancel\n\t\tif ((/escape/i).test(e.code)) {\n\t\t\te.stopPropagation();\n\t\t\treturn handleCancel();\n\t\t}\n\n\t\tconst cmdPressed = e.ctrlKey || e.metaKey;\n\n\t\t// prevent text style keys\n\t\tif (textFormat === 'html' && cmdPressed) {\n\t\t\tif ((/b|i|u|s/).test(e.key)) {\n\t\t\t\tenableTextStyleShortcuts && handleStyleShortcut(e.key);\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// stop here\n\t\tif (!(/enter/i).test(e.code)) return;\n\n\t\t// don't let others handle return while in text area\n\t\te.stopPropagation();\n\n\t\t// is enter but is composing (confirm predictive selection)\n\t\tif (e.isComposing) return;\n\n\t\t// is cmd + enter or ctrl + enter\n\t\tif (cmdPressed) return handleConfirm();\n\n\t\t// block return when newlines not allowed\n\t\tif (!allowNewline) e.preventDefault();\n\n\t\tdocument.execCommand('insertLineBreak');\n\t\te.preventDefault();\n\t};\n\n\tconst handleKeyup = () => {\n\t\t\n\t}; // intentionally blank for now\n\n\tconst handleCompositionEnd = e => {\n\t\tif (e.data === '') return;\n\t\tconfirmInputState();\n\t};\n\n\tconst handleInput = e => {\n\t\tconst { inputType } = e;\n\n\t\t// more info on when inputType is which value\n\t\t// https://rawgit.com/w3c/input-events/v1/index.html#interface-InputEvent-Attributes\n\t\tif (inputType === 'insertCompositionText' || inputType === 'deleteCompositionText') {\n\t\t\t// we're composing (to for example write é, or Japanese characters),\n\t\t\t// if so, wait for composition end before formatting content\n\t\t\treturn;\n\t\t}\n\n\t\tconfirmInputState();\n\t};\n\n\tconst handlePaste = e => {\n\t\te.preventDefault();\n\n\t\t// remove styles\n\t\tconst plainText = e.clipboardData.getData('text/plain');\n\n\t\tconst html = textFormat === 'html'\n\t\t? plainText\n\t\t: removeTextStyles(plainText);\n\n\t\t// format the pasted text before adding\n\t\tconst text = formatPaste(html);\n\n\t\tif (!text.length) return;\n\n\t\t// get range for current selection and replace with text\n\t\tconst range = getSelectionSafe().getRangeAt(0);\n\n\t\trange.deleteContents();\n\t\trange.insertNode(document.createTextNode(text));\n\n\t\t// content updated\n\t\tupdateInnerHTML();\n\t};\n\n\t//#region bookmarks\n\tconst createBookmark = name => {\n\t\tconst bookmarkNode = h('span');\n\t\tbookmarkNode.dataset.bookmark = name;\n\t\treturn bookmarkNode;\n\t};\n\n\tconst insertBookmark = (node, offset, name) => {\n\t\t// create the bookmark element\n\t\tconst bookmarkNode = createBookmark(name);\n\n\t\t// split up in two text nodes and insert\n\t\tif (node.nodeType === Node.TEXT_NODE) {\n\t\t\tconst text = node.textContent;\n\n\t\t\tif (name === 'start') {\n\t\t\t\tconst before = t(text.substr(0, offset));\n\t\t\t\tconst after = t(text.substr(offset));\n\t\t\t\tnode.replaceWith(before, bookmarkNode, after);\n\t\t\t} else {\n\t\t\t\tconst before = t(text.substr(0, offset));\n\t\t\t\tconst after = t(text.substr(offset));\n\t\t\t\tnode.replaceWith(before, bookmarkNode, after);\n\t\t\t}\n\t\t} else // is node\n\t\tif (node.nodeType === Node.ELEMENT_NODE) {\n\t\t\tnode.insertBefore(bookmarkNode, node.childNodes[offset]);\n\t\t}\n\t};\n\n\tconst getSelectionSafe = () => {\n\t\tconst root = element.getRootNode();\n\n\t\t// chrome needs to select from shadowRoot if in Shadow DOM\n\t\t// firefox can select from document and doesn't have getSelection support on shadowRoot\n\t\t// safari cannot deal with text selection in shadowRoot at this time (MacOS Safari 16)\n\t\treturn 'getSelection' in root\n\t\t? root.getSelection()\n\t\t: document.getSelection();\n\t};\n\n\tconst insertBookmarks = element => {\n\t\tconst selection = getSelectionSafe();\n\t\tif (!(selection.getRangeAt && selection.rangeCount)) return;\n\t\tconst range = selection.getRangeAt(0);\n\t\tconst { startOffset, endOffset, startContainer, endContainer } = range;\n\n\t\t// range needs to be in element\n\t\tif (!element.contains(range.startContainer) || !element.contains(range.endContainer)) return;\n\n\t\t// should break up one text container\n\t\tif (startContainer.nodeType === Node.TEXT_NODE && startContainer === endContainer) {\n\t\t\tconst text = startContainer.textContent;\n\t\t\tconst before = text.substr(0, startOffset);\n\t\t\tconst bookmarkStart = createBookmark('start');\n\n\t\t\tconst selected = endOffset - startOffset > 0\n\t\t\t? text.substr(startOffset, endOffset)\n\t\t\t: '';\n\n\t\t\tconst bookmarkEnd = createBookmark('end');\n\t\t\tconst after = text.substr(endOffset);\n\t\t\tstartContainer.replaceWith(before, bookmarkStart, selected, bookmarkEnd, after);\n\t\t} else // should add to separate containers\n\t\t{\n\t\t\tinsertBookmark(startContainer, startOffset, 'start');\n\n\t\t\tinsertBookmark(\n\t\t\t\tendContainer,\n\t\t\t\t// if is same container need to move to next index as we've just added start bookmark\n\t\t\t\tendOffset + (startContainer === endContainer ? 1 : 0),\n\t\t\t\t'end'\n\t\t\t);\n\t\t}\n\t};\n\n\tconst selectBookmarks = element => {\n\t\t// get locations of bookmarks\n\t\tconst bookmarkStart = findBookmark(element, 'start');\n\n\t\tconst bookmarkEnd = findBookmark(element, 'end');\n\n\t\t// remove bookmarks (if found)\n\t\tif (!bookmarkStart || !bookmarkEnd) return;\n\n\t\t// set caret positions\n\t\tconst range = document.createRange();\n\n\t\trange.setStart(bookmarkStart, 0);\n\t\trange.setEnd(bookmarkEnd, 0);\n\t\tconst selection = getSelectionSafe();\n\t\tselection.removeAllRanges();\n\t\tselection.addRange(range);\n\n\t\t// remove bookmarks\n\t\tbookmarkStart.remove();\n\n\t\tbookmarkEnd.remove();\n\t};\n\n\tconst findBookmark = (element, name) => {\n\t\tconst children = element.children;\n\n\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\tconst node = children[i];\n\t\t\tif (node.dataset.bookmark === name) return node;\n\n\t\t\tif (node.children.length) {\n\t\t\t\tconst bookmarkNode = findBookmark(node, name);\n\t\t\t\tif (bookmarkNode) return bookmarkNode;\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t};\n\n\t// add extra space on left or right side of content input so special symbols\n\t// are rendered on correct line while waiting for completion\n\tlet contentStyle;\n\n\t// we \"disable\" shadow and text styles because both are drawn in the stroke layer\n\tconst removeTextEffects = str => str.replace('-webkit-text-stroke', '--text-stroke').replace('text-shadow', '--text-shadow');\n\n\tfunction pre_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\telement = $$value;\n\t\t\t$$invalidate(6, element);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('spellcheck' in $$props) $$invalidate(1, spellcheck = $$props.spellcheck);\n\t\tif ('autocorrect' in $$props) $$invalidate(2, autocorrect = $$props.autocorrect);\n\t\tif ('autocapitalize' in $$props) $$invalidate(3, autocapitalize = $$props.autocapitalize);\n\t\tif ('wrapLines' in $$props) $$invalidate(4, wrapLines = $$props.wrapLines);\n\t\tif ('allowNewline' in $$props) $$invalidate(5, allowNewline = $$props.allowNewline);\n\t\tif ('textFormat' in $$props) $$invalidate(16, textFormat = $$props.textFormat);\n\t\tif ('formatInput' in $$props) $$invalidate(17, formatInput = $$props.formatInput);\n\t\tif ('formatPaste' in $$props) $$invalidate(18, formatPaste = $$props.formatPaste);\n\t\tif ('style' in $$props) $$invalidate(19, style = $$props.style);\n\t\tif ('innerHTML' in $$props) $$invalidate(0, innerHTML = $$props.innerHTML);\n\t\tif ('oninput' in $$props) $$invalidate(20, oninput = $$props.oninput);\n\t\tif ('enableTextStyleShortcuts' in $$props) $$invalidate(21, enableTextStyleShortcuts = $$props.enableTextStyleShortcuts);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*element*/ 64) {\n\t\t\t// set value when html property is set and element reference is bound\n\t\t\t$$invalidate(25, isReady = !!element);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*isReady, innerHTML*/ 33554433) {\n\t\t\tif (isReady && innerHTML) setInnerHTML(innerHTML);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*wrapLines, allowNewline, style*/ 524336) {\n\t\t\tif (!wrapLines && allowNewline) {\n\t\t\t\t// TODO: no fix for center text yet\n\t\t\t\tconst contentStyleAdditional = style.includes(':right')\n\t\t\t\t? 'text-indent:-100px!important'\n\t\t\t\t: !style.includes(':center')\n\t\t\t\t\t? 'min-width:calc(100% + 100px)!important'\n\t\t\t\t\t: '';\n\n\t\t\t\t$$invalidate(7, contentStyle = style + ';overflow:visible;' + contentStyleAdditional);\n\t\t\t} else {\n\t\t\t\t$$invalidate(7, contentStyle = style);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*style*/ 524288) {\n\t\t\t//#endregion\n\t\t\t// if text-stroke is set we need to render an extra text layer to simulate an outside stroke effect\n\t\t\t$$invalidate(8, shouldSimulateTextEffects = style.includes('text-stroke'));\n\t\t}\n\t};\n\n\treturn [\n\t\tinnerHTML,\n\t\tspellcheck,\n\t\tautocorrect,\n\t\tautocapitalize,\n\t\twrapLines,\n\t\tallowNewline,\n\t\telement,\n\t\tcontentStyle,\n\t\tshouldSimulateTextEffects,\n\t\thandleBlur,\n\t\thandleKeydown,\n\t\thandleKeyup,\n\t\thandleCompositionEnd,\n\t\thandleInput,\n\t\thandlePaste,\n\t\tremoveTextEffects,\n\t\ttextFormat,\n\t\tformatInput,\n\t\tformatPaste,\n\t\tstyle,\n\t\toninput,\n\t\tenableTextStyleShortcuts,\n\t\tconfirm,\n\t\tfocus,\n\t\tselect,\n\t\tisReady,\n\t\tpre_binding\n\t];\n}\n\nclass ContentEditable extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$g,\n\t\t\tcreate_fragment$g,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tspellcheck: 1,\n\t\t\t\tautocorrect: 2,\n\t\t\t\tautocapitalize: 3,\n\t\t\t\twrapLines: 4,\n\t\t\t\tallowNewline: 5,\n\t\t\t\ttextFormat: 16,\n\t\t\t\tformatInput: 17,\n\t\t\t\tformatPaste: 18,\n\t\t\t\tstyle: 19,\n\t\t\t\tinnerHTML: 0,\n\t\t\t\toninput: 20,\n\t\t\t\tenableTextStyleShortcuts: 21,\n\t\t\t\tconfirm: 22,\n\t\t\t\tfocus: 23,\n\t\t\t\tselect: 24\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget spellcheck() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset spellcheck(spellcheck) {\n\t\tthis.$$set({ spellcheck });\n\t\tflush();\n\t}\n\n\tget autocorrect() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset autocorrect(autocorrect) {\n\t\tthis.$$set({ autocorrect });\n\t\tflush();\n\t}\n\n\tget autocapitalize() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset autocapitalize(autocapitalize) {\n\t\tthis.$$set({ autocapitalize });\n\t\tflush();\n\t}\n\n\tget wrapLines() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset wrapLines(wrapLines) {\n\t\tthis.$$set({ wrapLines });\n\t\tflush();\n\t}\n\n\tget allowNewline() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset allowNewline(allowNewline) {\n\t\tthis.$$set({ allowNewline });\n\t\tflush();\n\t}\n\n\tget textFormat() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset textFormat(textFormat) {\n\t\tthis.$$set({ textFormat });\n\t\tflush();\n\t}\n\n\tget formatInput() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset formatInput(formatInput) {\n\t\tthis.$$set({ formatInput });\n\t\tflush();\n\t}\n\n\tget formatPaste() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset formatPaste(formatPaste) {\n\t\tthis.$$set({ formatPaste });\n\t\tflush();\n\t}\n\n\tget style() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset style(style) {\n\t\tthis.$$set({ style });\n\t\tflush();\n\t}\n\n\tget innerHTML() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset innerHTML(innerHTML) {\n\t\tthis.$$set({ innerHTML });\n\t\tflush();\n\t}\n\n\tget oninput() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset oninput(oninput) {\n\t\tthis.$$set({ oninput });\n\t\tflush();\n\t}\n\n\tget enableTextStyleShortcuts() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset enableTextStyleShortcuts(enableTextStyleShortcuts) {\n\t\tthis.$$set({ enableTextStyleShortcuts });\n\t\tflush();\n\t}\n\n\tget confirm() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tget focus() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tget select() {\n\t\treturn this.$$.ctx[24];\n\t}\n}\n\nconst DefaultFormattingTags = ['i', 'b', 'u', 'strike'].map((tag) => ({\n tag,\n tagOpen: new RegExp(`<${tag}>`, 'g'),\n tagClose: new RegExp(`<\\/${tag}>`, 'g'),\n placeholderOpen: new RegExp(`___${tag}O___`, 'g'),\n placeholderClose: new RegExp(`___${tag}C___`, 'g'),\n}));\nconst replaceFormattingTags = (str, tags = DefaultFormattingTags) => {\n tags.forEach(({ tag, tagOpen, tagClose }) => {\n str = str.replace(tagOpen, `___${tag}O___`).replace(tagClose, `___${tag}C___`);\n });\n return str;\n};\nconst restoreFormattingTags = (str, tags = DefaultFormattingTags) => {\n tags.forEach(({ tag, placeholderOpen, placeholderClose }) => {\n str = str.replace(placeholderOpen, `<${tag}>`).replace(placeholderClose, `</${tag}>`);\n });\n return str;\n};\nvar textToHTML = (text) => {\n // temporary replace bold italic\n text = replaceFormattingTags(text);\n // now encode\n text = text\n // collapse space sequences\n .replace(/ {2,}/g, ' ')\n // handle non breaking space characters\n .replace(/\\u00a0/g, ' ')\n // lines\n .split('\\n')\n // to br's\n .join('<br>');\n // put back bold and italic\n text = restoreFormattingTags(text);\n return text;\n};\n\nvar htmlToText = (html) => {\n const lines = replaceDivWithBr(html).split(/<br>|<br\\/>/g);\n return lines\n .join('\\n')\n .replace(/ /g, String.fromCharCode(160))\n .replace(/&/g, '&');\n};\n\nvar fromPercentage = (value, context) => isString(value) ? (parseFloat(value) / 100) * context : value;\n\nvar toPercentagePoint = (point, context) => ({\n x: toPercentage(point.x, context.width),\n y: toPercentage(point.y, context.height),\n});\n\n/* src/core/ui/components/ShapeLayoutEditor.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context$1(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[276] = list[i];\n\tchild_ctx[278] = i;\n\treturn child_ctx;\n}\n\n// (4519:12) {#each shapeNavList as item, index (item.id)}\nfunction create_each_block$1(key_1, ctx) {\n\tlet li;\n\tlet button;\n\tlet colorpreview;\n\tlet t0;\n\tlet span;\n\tlet t1_value = /*item*/ ctx[276].name + \"\";\n\tlet t1;\n\tlet button_aria_label_value;\n\tlet t2;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tcolorpreview = new ColorPreview({\n\t\t\tprops: { color: /*item*/ ctx[276].color }\n\t\t});\n\n\tfunction click_handler() {\n\t\treturn /*click_handler*/ ctx[180](/*index*/ ctx[278]);\n\t}\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tli = element(\"li\");\n\t\t\tbutton = element(\"button\");\n\t\t\tcreate_component(colorpreview.$$.fragment);\n\t\t\tt0 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt1 = text(t1_value);\n\t\t\tt2 = space();\n\t\t\tattr(button, \"class\", \"PinturaShapeListItem\");\n\t\t\tattr(button, \"type\", \"button\");\n\t\t\tattr(button, \"aria-label\", button_aria_label_value = \"Select shape \" + /*item*/ ctx[276].name);\n\t\t\tthis.first = li;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, li, anchor);\n\t\t\tappend(li, button);\n\t\t\tmount_component(colorpreview, button, null);\n\t\t\tappend(button, t0);\n\t\t\tappend(button, span);\n\t\t\tappend(span, t1);\n\t\t\tappend(li, t2);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(button, \"click\", click_handler);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst colorpreview_changes = {};\n\t\t\tif (dirty[0] & /*shapeNavList*/ 1048576) colorpreview_changes.color = /*item*/ ctx[276].color;\n\t\t\tcolorpreview.$set(colorpreview_changes);\n\t\t\tif ((!current || dirty[0] & /*shapeNavList*/ 1048576) && t1_value !== (t1_value = /*item*/ ctx[276].name + \"\")) set_data(t1, t1_value);\n\n\t\t\tif (!current || dirty[0] & /*shapeNavList*/ 1048576 && button_aria_label_value !== (button_aria_label_value = \"Select shape \" + /*item*/ ctx[276].name)) {\n\t\t\t\tattr(button, \"aria-label\", button_aria_label_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(colorpreview.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(colorpreview.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(li);\n\t\t\tdestroy_component(colorpreview);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (4535:4) {#if shouldRenderShapeManipulator}\nfunction create_if_block_4$2(ctx) {\n\tlet shapemanipulator;\n\tlet current;\n\n\tshapemanipulator = new ShapeManipulator({\n\t\t\tprops: {\n\t\t\t\tvisible: true,\n\t\t\t\tpoints: /*shapeManipulatorPoints*/ ctx[12],\n\t\t\t\trotatorPoint: /*shapeManipulatorRotationPointPosition*/ ctx[26],\n\t\t\t\tenableDragEdges: /*allowEdgeControls*/ ctx[16],\n\t\t\t\tenableDragPoints: /*allowCornerControls*/ ctx[28],\n\t\t\t\tenableRotatePoints: /*allowRotateControls*/ ctx[14]\n\t\t\t}\n\t\t});\n\n\tshapemanipulator.$on(\"resizestart\", /*handleManipulatorResizeGrab*/ ctx[37]);\n\tshapemanipulator.$on(\"resizemove\", /*handleManipulatorResizeDrag*/ ctx[38]);\n\tshapemanipulator.$on(\"resizeend\", /*handleManipulatorResizeEnd*/ ctx[39]);\n\tshapemanipulator.$on(\"rotatestart\", /*handleManipulatorRotateGrab*/ ctx[40]);\n\tshapemanipulator.$on(\"rotatemove\", /*handleManipulatorRotateDrag*/ ctx[41]);\n\tshapemanipulator.$on(\"rotateend\", /*handleManipulatorRotateEnd*/ ctx[42]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapemanipulator.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapemanipulator, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapemanipulator_changes = {};\n\t\t\tif (dirty[0] & /*shapeManipulatorPoints*/ 4096) shapemanipulator_changes.points = /*shapeManipulatorPoints*/ ctx[12];\n\t\t\tif (dirty[0] & /*shapeManipulatorRotationPointPosition*/ 67108864) shapemanipulator_changes.rotatorPoint = /*shapeManipulatorRotationPointPosition*/ ctx[26];\n\t\t\tif (dirty[0] & /*allowEdgeControls*/ 65536) shapemanipulator_changes.enableDragEdges = /*allowEdgeControls*/ ctx[16];\n\t\t\tif (dirty[0] & /*allowCornerControls*/ 268435456) shapemanipulator_changes.enableDragPoints = /*allowCornerControls*/ ctx[28];\n\t\t\tif (dirty[0] & /*allowRotateControls*/ 16384) shapemanipulator_changes.enableRotatePoints = /*allowRotateControls*/ ctx[14];\n\t\t\tshapemanipulator.$set(shapemanipulator_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapemanipulator.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapemanipulator.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapemanipulator, detaching);\n\t\t}\n\t};\n}\n\n// (4552:4) {#if shouldRenderTextInput}\nfunction create_if_block_1$2(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_2$2, create_if_block_3$2];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*textInputMode*/ ctx[4] === 'modal') return 0;\n\t\tif (/*textInputMode*/ ctx[4] === 'inline') return 1;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type(ctx))) {\n\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\t}\n\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block) {\n\t\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\t}\n\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (4581:45) \nfunction create_if_block_3$2(ctx) {\n\tlet div;\n\tlet contenteditable;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tlet contenteditable_props = {\n\t\tformatInput: /*formatContentEditable*/ ctx[44],\n\t\twrapLines: !!/*activeMarkupComputed*/ ctx[13].width,\n\t\ttextFormat: /*activeMarkupComputed*/ ctx[13].format,\n\t\tenableTextStyleShortcuts: /*enableTextStyleControls*/ ctx[5],\n\t\tallowNewline: /*shapeAllowNewline*/ ctx[27],\n\t\tstyle: /*textInputTextStyles*/ ctx[25]\n\t};\n\n\tcontenteditable = new ContentEditable({ props: contenteditable_props });\n\t/*contenteditable_binding*/ ctx[183](contenteditable);\n\tcontenteditable.$on(\"input\", /*handleTextInput*/ ctx[45]);\n\tcontenteditable.$on(\"keyup\", /*handleTextInputKeyUp*/ ctx[48]);\n\tcontenteditable.$on(\"cancel\", /*handleTextCancel*/ ctx[50]);\n\tcontenteditable.$on(\"confirm\", /*handleTextConfirm*/ ctx[49]);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(contenteditable.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaInlineInput\");\n\t\t\tattr(div, \"style\", /*textInputPositionStyles*/ ctx[24]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(contenteditable, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(div, \"focusout\", /*focusout_handler*/ ctx[184]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst contenteditable_changes = {};\n\t\t\tif (dirty[0] & /*activeMarkupComputed*/ 8192) contenteditable_changes.wrapLines = !!/*activeMarkupComputed*/ ctx[13].width;\n\t\t\tif (dirty[0] & /*activeMarkupComputed*/ 8192) contenteditable_changes.textFormat = /*activeMarkupComputed*/ ctx[13].format;\n\t\t\tif (dirty[0] & /*enableTextStyleControls*/ 32) contenteditable_changes.enableTextStyleShortcuts = /*enableTextStyleControls*/ ctx[5];\n\t\t\tif (dirty[0] & /*shapeAllowNewline*/ 134217728) contenteditable_changes.allowNewline = /*shapeAllowNewline*/ ctx[27];\n\t\t\tif (dirty[0] & /*textInputTextStyles*/ 33554432) contenteditable_changes.style = /*textInputTextStyles*/ ctx[25];\n\t\t\tcontenteditable.$set(contenteditable_changes);\n\n\t\t\tif (!current || dirty[0] & /*textInputPositionStyles*/ 16777216) {\n\t\t\t\tattr(div, \"style\", /*textInputPositionStyles*/ ctx[24]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(contenteditable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(contenteditable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\t/*contenteditable_binding*/ ctx[183](null);\n\t\t\tdestroy_component(contenteditable);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\n// (4553:8) {#if textInputMode === 'modal'}\nfunction create_if_block_2$2(ctx) {\n\tlet inputform;\n\tlet current;\n\n\tinputform = new InputForm({\n\t\t\tprops: {\n\t\t\t\tpanelOffset: /*offset*/ ctx[2],\n\t\t\t\tonconfirm: /*handleTextConfirm*/ ctx[49],\n\t\t\t\toncancel: /*handleTextCancel*/ ctx[50],\n\t\t\t\tbuttonCancel: {\n\t\t\t\t\ticon: /*locale*/ ctx[6].shapeIconInputCancel,\n\t\t\t\t\tlabel: /*locale*/ ctx[6].shapeLabelInputCancel\n\t\t\t\t},\n\t\t\t\tbuttonConfirm: {\n\t\t\t\t\ticon: /*locale*/ ctx[6].shapeLabelInputConfirm,\n\t\t\t\t\tlabel: /*locale*/ ctx[6].shapeIconInputConfirm,\n\t\t\t\t\thideLabel: true\n\t\t\t\t},\n\t\t\t\t$$slots: { default: [create_default_slot$7] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(inputform.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(inputform, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst inputform_changes = {};\n\t\t\tif (dirty[0] & /*offset*/ 4) inputform_changes.panelOffset = /*offset*/ ctx[2];\n\n\t\t\tif (dirty[0] & /*locale*/ 64) inputform_changes.buttonCancel = {\n\t\t\t\ticon: /*locale*/ ctx[6].shapeIconInputCancel,\n\t\t\t\tlabel: /*locale*/ ctx[6].shapeLabelInputCancel\n\t\t\t};\n\n\t\t\tif (dirty[0] & /*locale*/ 64) inputform_changes.buttonConfirm = {\n\t\t\t\ticon: /*locale*/ ctx[6].shapeLabelInputConfirm,\n\t\t\t\tlabel: /*locale*/ ctx[6].shapeIconInputConfirm,\n\t\t\t\thideLabel: true\n\t\t\t};\n\n\t\t\tif (dirty[0] & /*textInputTextStyles, textInput, textInputText*/ 41943296 | dirty[9] & /*$$scope*/ 1) {\n\t\t\t\tinputform_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tinputform.$set(inputform_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(inputform.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(inputform.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(inputform, detaching);\n\t\t}\n\t};\n}\n\n// (4554:12) <InputForm panelOffset={offset} onconfirm={handleTextConfirm} oncancel={handleTextCancel} buttonCancel={{ icon: locale.shapeIconInputCancel, label: locale.shapeLabelInputCancel, }} buttonConfirm={{ icon: locale.shapeLabelInputConfirm, label: locale.shapeIconInputConfirm, hideLabel: true, }} >\nfunction create_default_slot$7(ctx) {\n\tlet textarea;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\ttextarea = element(\"textarea\");\n\t\t\tattr(textarea, \"spellcheck\", \"false\");\n\t\t\tattr(textarea, \"autocorrect\", \"off\");\n\t\t\tattr(textarea, \"autocapitalize\", \"off\");\n\t\t\tattr(textarea, \"style\", /*textInputTextStyles*/ ctx[25]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, textarea, anchor);\n\t\t\t/*textarea_binding*/ ctx[181](textarea);\n\t\t\tset_input_value(textarea, /*textInputText*/ ctx[23]);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(textarea, \"keydown\", /*handleTextInputKeyDown*/ ctx[47]),\n\t\t\t\t\tlisten(textarea, \"keypress\", /*handleTextInputAttempt*/ ctx[46]),\n\t\t\t\t\tlisten(textarea, \"keyup\", /*handleTextInputKeyUp*/ ctx[48]),\n\t\t\t\t\tlisten(textarea, \"input\", /*handleTextInput*/ ctx[45]),\n\t\t\t\t\tlisten(textarea, \"input\", /*textarea_input_handler*/ ctx[182])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*textInputTextStyles*/ 33554432) {\n\t\t\t\tattr(textarea, \"style\", /*textInputTextStyles*/ ctx[25]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*textInputText*/ 8388608) {\n\t\t\t\tset_input_value(textarea, /*textInputText*/ ctx[23]);\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(textarea);\n\t\t\t/*textarea_binding*/ ctx[181](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (4607:4) {#if $markupControlsOpacity > 0}\nfunction create_if_block$4(ctx) {\n\tlet div;\n\tlet dynamiccomponenttree;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: {\n\t\t\t\titems: /*shapeControls*/ ctx[21],\n\t\t\t\tkey: /*activeShapeId*/ ctx[10]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaShapeControls\");\n\t\t\tattr(div, \"style\", /*markupControlsStyle*/ ctx[22]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(dynamiccomponenttree, div, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler_1*/ ctx[185]),\n\t\t\t\t\taction_destroyer(measurable.call(null, div))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty[0] & /*shapeControls*/ 2097152) dynamiccomponenttree_changes.items = /*shapeControls*/ ctx[21];\n\t\t\tif (dirty[0] & /*activeShapeId*/ 1024) dynamiccomponenttree_changes.key = /*activeShapeId*/ ctx[10];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\n\t\t\tif (!current || dirty[0] & /*markupControlsStyle*/ 4194304) {\n\t\t\t\tattr(div, \"style\", /*markupControlsStyle*/ ctx[22]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$f(ctx) {\n\tlet div;\n\tlet nav;\n\tlet ul;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet t0;\n\tlet t1;\n\tlet t2;\n\tlet interactable_action;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet each_value = /*shapeNavList*/ ctx[20];\n\tconst get_key = ctx => /*item*/ ctx[276].id;\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context$1(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));\n\t}\n\n\tlet if_block0 = /*shouldRenderShapeManipulator*/ ctx[15] && create_if_block_4$2(ctx);\n\tlet if_block1 = /*shouldRenderTextInput*/ ctx[11] && create_if_block_1$2(ctx);\n\tlet if_block2 = /*$markupControlsOpacity*/ ctx[17] > 0 && create_if_block$4(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tnav = element(\"nav\");\n\t\t\tul = element(\"ul\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tt0 = space();\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt1 = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tt2 = space();\n\t\t\tif (if_block2) if_block2.c();\n\t\t\tattr(nav, \"class\", \"PinturaShapeList\");\n\t\t\tattr(nav, \"data-visible\", /*showShapeList*/ ctx[18]);\n\t\t\tattr(div, \"class\", \"PinturaShapeEditor\");\n\t\t\tattr(div, \"tabindex\", \"0\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, nav);\n\t\t\tappend(nav, ul);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(ul, null);\n\t\t\t}\n\n\t\t\tappend(div, t0);\n\t\t\tif (if_block0) if_block0.m(div, null);\n\t\t\tappend(div, t1);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tappend(div, t2);\n\t\t\tif (if_block2) if_block2.m(div, null);\n\t\t\t/*div_binding*/ ctx[186](div);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(nav, \"focusin\", /*handleFocusIn*/ ctx[53]),\n\t\t\t\t\tlisten(nav, \"focusout\", /*handleFocusOut*/ ctx[54]),\n\t\t\t\t\tlisten(div, \"keydown\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0] ? noop$1 : /*handleKeyDown*/ ctx[43])) (/*disabled*/ ctx[0] ? noop$1 : /*handleKeyDown*/ ctx[43]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"nudge\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0] ? noop$1 : /*handleNudge*/ ctx[52])) (/*disabled*/ ctx[0] ? noop$1 : /*handleNudge*/ ctx[52]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler*/ ctx[179]),\n\t\t\t\t\tlisten(div, \"pointermove\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handlePointerMove*/ ctx[55])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handlePointerMove*/ ctx[55]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"pointerleave\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handlePointerLeave*/ ctx[56])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handlePointerLeave*/ ctx[56]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionstart\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionStart*/ ctx[31])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionStart*/ ctx[31]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionupdate\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionUpdate*/ ctx[33])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionUpdate*/ ctx[33]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactioncancel\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionCancel*/ ctx[32])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionCancel*/ ctx[32]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionrelease\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionRelease*/ ctx[34])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionRelease*/ ctx[34]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"interactionend\", function () {\n\t\t\t\t\t\tif (is_function(/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionEnd*/ ctx[35])) (/*disabled*/ ctx[0]\n\t\t\t\t\t\t? noop$1\n\t\t\t\t\t\t: /*handleInteractionEnd*/ ctx[35]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(measurable.call(null, div)),\n\t\t\t\t\taction_destroyer(nudgeable.call(null, div)),\n\t\t\t\t\taction_destroyer(interactable_action = interactable.call(null, div, {\n\t\t\t\t\t\tdrag: true,\n\t\t\t\t\t\tinertia: true,\n\t\t\t\t\t\tmultiTouch: false,\n\t\t\t\t\t\tobserveKeys: true,\n\t\t\t\t\t\tshouldStartInteraction: interactable_function,\n\t\t\t\t\t\tgetEventPosition: /*interactable_function_1*/ ctx[187]\n\t\t\t\t\t}))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*shapeNavList, selectShape, shapes*/ 1048706) {\n\t\t\t\teach_value = /*shapeNavList*/ ctx[20];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, outro_and_destroy_block, create_each_block$1, null, get_each_context$1);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[0] & /*showShapeList*/ 262144) {\n\t\t\t\tattr(nav, \"data-visible\", /*showShapeList*/ ctx[18]);\n\t\t\t}\n\n\t\t\tif (/*shouldRenderShapeManipulator*/ ctx[15]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderShapeManipulator*/ 32768) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_4$2(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div, t1);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*shouldRenderTextInput*/ ctx[11]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*shouldRenderTextInput*/ 2048) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_1$2(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div, t2);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*$markupControlsOpacity*/ ctx[17] > 0) {\n\t\t\t\tif (if_block2) {\n\t\t\t\t\tif_block2.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*$markupControlsOpacity*/ 131072) {\n\t\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block2 = create_if_block$4(ctx);\n\t\t\t\t\tif_block2.c();\n\t\t\t\t\ttransition_in(if_block2, 1);\n\t\t\t\t\tif_block2.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block2) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block2, 1, 1, () => {\n\t\t\t\t\tif_block2 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (interactable_action && is_function(interactable_action.update) && dirty[0] & /*rootRect*/ 8) interactable_action.update.call(null, {\n\t\t\t\tdrag: true,\n\t\t\t\tinertia: true,\n\t\t\t\tmultiTouch: false,\n\t\t\t\tobserveKeys: true,\n\t\t\t\tshouldStartInteraction: interactable_function,\n\t\t\t\tgetEventPosition: /*interactable_function_1*/ ctx[187]\n\t\t\t});\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\ttransition_in(if_block2);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\ttransition_out(if_block2);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t\tif (if_block2) if_block2.d();\n\t\t\t/*div_binding*/ ctx[186](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nconst POLYGON_END_PATH_DISTANCE_SQUARED = 256;\nconst POLYGON_VERTEX_MIN_DISTANCE_SQUARED = 100;\nconst ROTATION_CONTROL_OFFSET = 20;\nconst MIN_TEXT_MARKUP_WIDTH = 10;\n\n// UI hover shapes\nconst HoverShapeId = 'markup-hover';\n\nconst shapeControlDist = 16;\nconst interactable_function = (e, element) => e.target === element;\n\nfunction instance$f($$self, $$props, $$invalidate) {\n\tlet gridRect;\n\tlet activeMarkup;\n\tlet activeMarkupSelected;\n\tlet activeShapeIsDraft;\n\tlet activeShapeId;\n\tlet activeMarkupComputed;\n\tlet activeMarkupItemIsDraft;\n\tlet shapeActivePoints;\n\tlet allowResizeControls;\n\tlet allowRotateControls;\n\tlet allowEdgeControls;\n\tlet allowCornerControls;\n\tlet shouldRenderShapeManipulator;\n\tlet shapeActiveScreenPoints;\n\tlet shapeManipulatorPoints;\n\tlet shapeAllowNewline;\n\tlet shapeManipulatorRotationPoint;\n\tlet shapeManipulatorRotationPointPosition;\n\tlet shouldSnapPointer;\n\tlet isHoveringShape;\n\tlet isManagingShape;\n\tlet disableSnapping;\n\tlet isTextMarkupSelected;\n\tlet shouldRenderTextInput;\n\tlet textShapeOrigin;\n\tlet textShapeDisplayOrigin;\n\tlet textSizeDisplayOrigin;\n\tlet textRectDisplayOrigin;\n\tlet textInputText;\n\tlet activeTextShapeComputed;\n\tlet textInputTextStyles;\n\tlet textInputPositionStyles;\n\tlet caretColorRGBA;\n\tlet controlledMarkupItem;\n\tlet allowShapeFlip;\n\tlet allowShapeChangeTextLayout;\n\tlet allowShapeDuplicate;\n\tlet allowShapeRemove;\n\tlet allowShapeReorder;\n\tlet allowShapeInput;\n\tlet allowShapeAdjustOpacity;\n\tlet allowShapeStyleText;\n\tlet shouldShowMarkupControls;\n\tlet markupControlsAnchorPosition;\n\tlet shapeControlsPosition;\n\tlet markupControlsStyle;\n\tlet shapeControlsMode;\n\tlet shapeControls;\n\tlet shapeNavList;\n\n\tlet $shapes,\n\t\t$$unsubscribe_shapes = noop,\n\t\t$$subscribe_shapes = () => ($$unsubscribe_shapes(), $$unsubscribe_shapes = subscribe(shapes, $$value => $$invalidate(175, $shapes = $$value)), shapes);\n\n\tlet $markupControlsOpacity;\n\tlet $isAnimated;\n\tlet $keysPressedStored;\n\tlet $gridOpacity;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_shapes());\n\tlet { uid = getUniqueId() } = $$props;\n\tlet { ui } = $$props;\n\tlet { disabled = false } = $$props;\n\tlet { shapes } = $$props;\n\t$$subscribe_shapes();\n\tlet { selection } = $$props;\n\tlet { offset } = $$props;\n\tlet { contextRotation = 0 } = $$props;\n\tlet { contextFlipX = false } = $$props;\n\tlet { contextFlipY = false } = $$props;\n\tlet { contextZoom = 1 } = $$props;\n\tlet { active = false } = $$props;\n\tlet { opacity = 1 } = $$props;\n\tlet { parentRect } = $$props;\n\tlet { rootRect } = $$props;\n\tlet { utilRect } = $$props;\n\tlet { hoverColor } = $$props;\n\tlet { caretColor } = $$props;\n\tlet { gridColor } = $$props;\n\tlet { snapColor } = $$props;\n\tlet { textInputMode = 'inline' } = $$props;\n\tlet { oninteractionstart = noop$1 } = $$props;\n\tlet { oninteractionupdate = noop$1 } = $$props;\n\tlet { oninteractionrelease = noop$1 } = $$props;\n\tlet { oninteractionend = noop$1 } = $$props;\n\tlet { oninteractioncancel = noop$1 } = $$props;\n\tlet { onaddshape = noop$1 } = $$props;\n\tlet { onupdateshape = noop$1 } = $$props;\n\tlet { onselectshape = noop$1 } = $$props;\n\tlet { onblurshape = noop$1 } = $$props;\n\tlet { onremoveshape = noop$1 } = $$props;\n\tlet { ontapshape = noop$1 } = $$props;\n\tlet { onhovershape = noop$1 } = $$props;\n\tlet { onhovercanvas = noop$1 } = $$props;\n\tlet { ontapcanvas = noop$1 } = $$props;\n\tlet { onleavecanvas = noop$1 } = $$props;\n\tlet { beforeSelectShape = () => true } = $$props;\n\tlet { beforeDeselectShape = () => true } = $$props;\n\tlet { beforeRemoveShape = () => true } = $$props;\n\tlet { beforeUpdateShape = (shape, props) => props } = $$props;\n\tlet { willRenderShapeControls = passthrough } = $$props;\n\tlet { willRenderShapeTextControls = passthrough } = $$props;\n\tlet { willStartInteraction = (position, rect) => true } = $$props;\n\tlet { mapEditorPointToImagePoint } = $$props;\n\tlet { mapImagePointToEditorPoint } = $$props;\n\tlet { eraseRadius = undefined } = $$props;\n\tlet { selectRadius = undefined } = $$props;\n\tlet { enableButtonFlipVertical = false } = $$props;\n\tlet { enableTapToAddText = true } = $$props;\n\tlet { enableTextStyleControls = true } = $$props;\n\tlet { locale } = $$props;\n\tlet { snapThreshold = 0 } = $$props;\n\tlet { snapPointer = true } = $$props;\n\tlet { enableSnapToContext = true } = $$props;\n\tlet { gridSize = 0 } = $$props;\n\n\t// returns currently relevant snap targets, excludes \"excludedShape\" from targets\n\tconst getSnapTargets = excludedShape => {\n\t\t// no targets if not snapping\n\t\tif (snapThreshold === 0) return [];\n\n\t\t// create context\n\t\tlet contextShape;\n\n\t\tif (enableSnapToContext) {\n\t\t\tcontextShape = { ...parentRect, x: 0, y: 0 };\n\t\t}\n\n\t\treturn [\n\t\t\t// exclude interaction shape\n\t\t\t...$shapes.// don't include self\n\t\t\tfilter(shape => shape !== excludedShape).// don't include drafts\n\t\t\tfilter(shape => !shapeIsDraft(shape)).// only useful when we have computed shapes\n\t\t\tmap(shape => shapeComputeDisplay({ ...shape }, parentRect)),\n\t\t\t// also snap to context edges and center\n\t\t\tcontextShape\n\t\t].filter(Boolean);\n\t};\n\n\t// helper function to get snap options when resizing or translating shapes\n\tconst getSnapOptions = (snapThreshold, gridSize, gridRect, excludedShape) => {\n\t\t// no snapping\n\t\tif (snapThreshold === 0) return { snapTargets: [] };\n\n\t\t// let's define snap options\n\t\treturn {\n\t\t\tsnapThreshold,\n\t\t\tgridSize,\n\t\t\tgridRect,\n\t\t\tsnapTargets: getSnapTargets(excludedShape)\n\t\t};\n\t};\n\n\tconst isAnimated = getContext('isAnimated');\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(176, $isAnimated = value));\n\tconst syncShapeCollection = collection => collection.set(get_store_value(collection));\n\tconst getShapeDraft = collection => get_store_value(collection).find(shapeIsDraft);\n\n\tconst addShapeDraft = (shape, collection) => {\n\t\t// collection already contains a shape, exit\n\t\tif (getShapeDraft(collection)) return;\n\n\t\t// turn shape intro draft\n\t\tshapeMakeDraft(shape);\n\n\t\t// add to collection\n\t\treturn addShape(shape, collection);\n\t};\n\n\tconst discardShapeDraft = collection => {\n\t\t// don't trigger update if no draft in array\n\t\tif (!getShapeDraft(collection)) return;\n\n\t\t// update!\n\t\tcollection.update(items => items.filter(shape => !shapeIsDraft(shape)));\n\t};\n\n\tconst confirmShapeDraft = collection => {\n\t\t// don't trigger update if no draft in array\n\t\tconst draft = getShapeDraft(collection);\n\n\t\tif (!draft) return;\n\t\tshapeMakeFinal(draft);\n\t\tsyncShapeCollection(collection);\n\t\treturn draft;\n\t};\n\n\tconst updateShapeDraft = (props, collection, update = (item, props) => ({ ...item, ...props })) => {\n\t\t// don't trigger update if no draft in array\n\t\tconst draft = getShapeDraft(collection);\n\n\t\tif (!draft) return;\n\n\t\tcollection.update(items => items.map(item => {\n\t\t\tif (!shapeIsDraft(item)) return item;\n\t\t\treturn update(item, props);\n\t\t}));\n\t};\n\n\tconst addShape = (shape, collection = shapes) => {\n\t\tcollection.update(items => [...items, shape]);\n\t\treturn shape;\n\t};\n\n\t// helpers\n\tconst updateShape = (shape, props, parentRect) => {\n\t\tconst propsToUpdate = beforeUpdateShape({ ...shape }, props, { ...parentRect });\n\t\tshapeUpdateProps(shape, propsToUpdate, parentRect);\n\t\treturn shape;\n\t};\n\n\tconst positionRelativeToAnchor = (anchor, target) => {\n\t\tconst length = vectorDistance(anchor, target);\n\t\tconst angle = vectorAngleBetween(anchor, target);\n\t\tconst angleSnapInterval = Math.PI / 8;\n\t\tconst angleSnapped = angleSnapInterval * Math.round(angle / angleSnapInterval) - contextRotation % angleSnapInterval;\n\t\ttarget.x = anchor.x + length * Math.cos(angleSnapped);\n\t\ttarget.y = anchor.y + length * Math.sin(angleSnapped);\n\t};\n\n\tconst shapeToPoly = (computedShape, resolution = 12) => {\n\t\t// rect to poly\n\t\tif (shapeIsRect(computedShape)) {\n\t\t\treturn rectRotate(computedShape, computedShape.rotation, rectCenter(computedShape));\n\t\t} else // text to poly\n\t\tif (shapeIsText(computedShape)) {\n\t\t\tconst computedRect = getMarkupShapeRect(computedShape);\n\t\t\treturn rectRotate(computedRect, computedShape.rotation, rectCenter(computedRect));\n\t\t} else // ellipse\n\t\tif (shapeIsEllipse(computedShape)) {\n\t\t\treturn ellipseToPolygon(vectorCreate(computedShape.x, computedShape.y), computedShape.rx, computedShape.ry, computedShape.rotation, computedShape.flipX, computedShape.flipY, resolution);\n\t\t}\n\n\t\treturn [];\n\t};\n\n\t//#region createShape eraseShape\n\tconst keysPressedStored = getContext('keysPressed');\n\n\tcomponent_subscribe($$self, keysPressedStored, value => $$invalidate(177, $keysPressedStored = value));\n\n\t// draw shape manipulator edges\n\tconst getShapeUpdateRotation = (rotation, flipX, flipY) => {\n\t\tif (rotation === 0) return rotation;\n\t\tif (flipX && flipY) return rotation;\n\t\tif (flipX) return -rotation;\n\t\tif (flipY) return -rotation;\n\t\treturn rotation;\n\t};\n\n\tconst setInteractionSnapLines = snapLines => {\n\t\tif (snapLines.x === null && snapLines.y === null) return clearInteractionSnapLines();\n\t\tif (snapLines.x) $$invalidate(138, interactionSnapLineX = mapEditorPointToImagePoint({ x: snapLines.x, y: 0 }).x);\n\t\tif (snapLines.y) $$invalidate(139, interactionSnapLineY = mapEditorPointToImagePoint({ x: 0, y: snapLines.y }).y);\n\t};\n\n\tconst clearInteractionSnapLines = () => {\n\t\t$$invalidate(138, interactionSnapLineX = null);\n\t\t$$invalidate(139, interactionSnapLineY = null);\n\t};\n\n\tlet interactionSnapLineX = null;\n\tlet interactionSnapLineY = null;\n\n\tconst createShape = (shapeDefault, options = {}) => {\n\n\t\tlet interactionOrigin;\n\t\tlet interactionRadius;\n\t\tlet interactionPosition;\n\t\tlet isEllipse = shapeIsEllipse(shapeDefault);\n\t\tlet isText = shapeIsText(shapeDefault);\n\t\tlet isRelative = options.position === 'relative';\n\n\t\t// get snap targets\n\t\tconst snapTargets = getSnapTargets();\n\n\t\t// snap point to targets\n\t\tconst snapPoint = point => {\n\t\t\t// do nothing if doens't need to snap\n\t\t\tif (!snapThreshold) return point;\n\n\t\t\t// snap point to shapes/grid\n\t\t\tconst imagePoint = mapEditorPointToImagePoint(point);\n\n\t\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(getShapeSnapLines(imagePoint), snapTargets, snapThreshold, gridSize, gridRect);\n\t\t\tupdateWithSnapTranslation(point, snapTranslation);\n\t\t\tsetInteractionSnapLines(snapLines);\n\t\t\treturn point;\n\t\t};\n\n\t\t// a shape is selected\n\t\tconst hasSelectedShape = !!getSelectedShape();\n\n\t\t// target shapes list or collection\n\t\tconst collection = options.isSelection ? selection : shapes;\n\n\t\tconst isSteppedInputMode = options.inputMode === 'step';\n\n\t\tif (shapeIsPath(shapeDefault)) {\n\t\t\t// stepped input mode\n\t\t\tif (isSteppedInputMode) {\n\t\t\t\tlet isFirstPoint = false;\n\n\t\t\t\tconst getPoint = (previousPoint, pointerPosition) => {\n\t\t\t\t\t// has started drawing? only handle end\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\n\t\t\t\t\t// if has previous point\n\t\t\t\t\tconst previousPointComputed = previousPoint && vectorCreate(fromPercentage(previousPoint.x, parentRect.width), fromPercentage(previousPoint.y, parentRect.height));\n\n\t\t\t\t\t// point in editor view\n\t\t\t\t\tconst previousPointInEditor = previousPointComputed && mapImagePointToEditorPoint(previousPointComputed);\n\n\t\t\t\t\t// if shift is held snap to last point\n\t\t\t\t\tif ($keysPressedStored.includes(16) && previousPointInEditor) positionRelativeToAnchor(previousPointInEditor, pointerPosition);\n\n\t\t\t\t\tconst currentPoint = mapEditorPointToImagePoint(pointerPosition);\n\n\t\t\t\t\t// get first point as absolute\n\t\t\t\t\tconst originPoint = draft.points.length ? draft.points[0] : currentPoint;\n\n\t\t\t\t\tconst originPointComputed = vectorCreate(fromPercentage(originPoint.x, parentRect.width), fromPercentage(originPoint.y, parentRect.height));\n\n\t\t\t\t\t// point in editor view\n\t\t\t\t\tconst originPointInEditor = mapImagePointToEditorPoint(originPointComputed);\n\n\t\t\t\t\t// distance between origin and new point\n\t\t\t\t\tconst distFromOriginSquared = vectorDistanceSquared(originPointInEditor, pointerPosition);\n\n\t\t\t\t\t// clicked second point at same location, discard draft\n\t\t\t\t\tif (!isFirstPoint && draft.points.length === 1 && distFromOriginSquared < 36) {\n\t\t\t\t\t\treturn discardShapeDraft(collection);\n\t\t\t\t\t}\n\n\t\t\t\t\t// minimum of three points to create a polygon\n\t\t\t\t\tif (draft.points.length > 2 && distFromOriginSquared <= POLYGON_END_PATH_DISTANCE_SQUARED) {\n\t\t\t\t\t\tdraft.pathClose = true;\n\n\t\t\t\t\t\t// select the draft\n\t\t\t\t\t\tshapeCanSelect(draft) && selectShape(draft);\n\n\t\t\t\t\t\tconst shape = confirmShapeDraft(collection);\n\t\t\t\t\t\tonaddshape(shape);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// clicked at same location as previous point, confirm as line\n\t\t\t\t\tconst hasVisibleStroke = draft.strokeWidth && draft.strokeColor && (draft.strokeColor[3] === undefined || draft.strokeColor[3] > 0);\n\n\t\t\t\t\tconst distFromPreviousSquared = vectorDistanceSquared(previousPointInEditor, pointerPosition);\n\n\t\t\t\t\tif (hasVisibleStroke && draft.points.length > 1 && distFromPreviousSquared < POLYGON_END_PATH_DISTANCE_SQUARED) {\n\t\t\t\t\t\t// open path\n\t\t\t\t\t\tdraft.pathClose = false;\n\n\t\t\t\t\t\tdraft.backgroundColor = [0, 0, 0, 0];\n\n\t\t\t\t\t\t// select the draft\n\t\t\t\t\t\tshapeCanSelect(draft) && selectShape(draft);\n\n\t\t\t\t\t\tconst shape = confirmShapeDraft(collection);\n\t\t\t\t\t\tonaddshape(shape);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// distance between previous and new point needs to be sufficient\n\t\t\t\t\tif (draft.points.length > 0) {\n\t\t\t\t\t\tif (distFromPreviousSquared < POLYGON_VERTEX_MIN_DISTANCE_SQUARED) return;\n\t\t\t\t\t}\n\n\t\t\t\t\t// return new point!\n\t\t\t\t\treturn isRelative\n\t\t\t\t\t? toPercentagePoint(currentPoint, parentRect)\n\t\t\t\t\t: currentPoint;\n\t\t\t\t};\n\n\t\t\t\treturn {\n\t\t\t\t\tstart: e => {\n\t\t\t\t\t\tconst draft = getShapeDraft(collection);\n\t\t\t\t\t\tconst { origin } = e.detail;\n\t\t\t\t\t\tinteractionRadius = 4;\n\t\t\t\t\t\tinteractionOrigin = snapPoint(vectorClone(origin));\n\t\t\t\t\t\tinteractionPosition = vectorClone(interactionOrigin);\n\n\t\t\t\t\t\t// has started drawing? only handle end\n\t\t\t\t\t\tif (draft) {\n\t\t\t\t\t\t\t// add next point\n\t\t\t\t\t\t\tconst previousPoint = draft.points[draft.points.length - 1];\n\n\t\t\t\t\t\t\tconst computedPoint = getPoint(previousPoint, interactionOrigin);\n\t\t\t\t\t\t\tif (computedPoint) draft.points = [...draft.points, computedPoint];\n\t\t\t\t\t\t\tupdateShapeDraft({ points: draft.points }, collection);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// first point\n\t\t\t\t\t\tisFirstPoint = true;\n\t\t\t\t\t},\n\t\t\t\t\tupdate: e => {\n\t\t\t\t\t\t// this only runs for first point so we can drag to start AND tap to start a path\n\t\t\t\t\t\tif (!isFirstPoint) return;\n\n\t\t\t\t\t\t// get draft ref\n\t\t\t\t\t\tconst draft = getShapeDraft(collection);\n\n\t\t\t\t\t\tif (!draft) return;\n\n\t\t\t\t\t\t// get next point\n\t\t\t\t\t\tconst previousPoint = draft.points[0];\n\n\t\t\t\t\t\tconst computedPoint = getPoint(previousPoint, vectorCreate(interactionOrigin.x + e.detail.translation.x, interactionOrigin.y + e.detail.translation.y));\n\t\t\t\t\t\tif (!computedPoint) return;\n\n\t\t\t\t\t\t// first point is pointerdown, keep overwriting next point\n\t\t\t\t\t\tdraft.points[1] = computedPoint;\n\n\t\t\t\t\t\tupdateShapeDraft({ points: draft.points }, collection);\n\t\t\t\t\t},\n\t\t\t\t\trelease: e => e.detail.preventInertia(),\n\t\t\t\t\tend: e => {\n\t\t\t\t\t\tif (!isFirstPoint) return;\n\n\t\t\t\t\t\t// hasn't started drawing yet, let's add origin\n\t\t\t\t\t\tconst originPoint = mapEditorPointToImagePoint(interactionOrigin);\n\n\t\t\t\t\t\tconst computedPoint = isRelative\n\t\t\t\t\t\t? toPercentagePoint(originPoint, parentRect)\n\t\t\t\t\t\t: originPoint;\n\n\t\t\t\t\t\t// if is tap\n\t\t\t\t\t\tconst { isTap } = e.detail;\n\n\t\t\t\t\t\tif (isTap) {\n\t\t\t\t\t\t\t// if any shape below pointer select the shape and discard the path\n\t\t\t\t\t\t\tconst foundShapes = getShapesNearPosition($shapes, originPoint, 0, shapeCanSelect);\n\n\t\t\t\t\t\t\tif (foundShapes.length) return discardShapeDraft(collection);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// add to markup so it's drawn\n\t\t\t\t\t\taddShapeDraft({ ...shapeDefault, points: [computedPoint] }, collection);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// drag input mode\n\t\t\treturn {\n\t\t\t\tstart: e => {\n\t\t\t\t\tconst { origin } = e.detail;\n\t\t\t\t\tinteractionRadius = 4;\n\t\t\t\t\tinteractionOrigin = vectorClone(origin);\n\t\t\t\t\tinteractionPosition = vectorClone(interactionOrigin);\n\t\t\t\t\tconst originPoint = mapEditorPointToImagePoint(interactionOrigin);\n\n\t\t\t\t\tconst computedPoint = isRelative\n\t\t\t\t\t? toPercentagePoint(originPoint, parentRect)\n\t\t\t\t\t: originPoint;\n\n\t\t\t\t\t// add to markup so it's drawn\n\t\t\t\t\taddShapeDraft({ ...shapeDefault, points: [computedPoint] }, collection);\n\t\t\t\t},\n\t\t\t\tupdate: e => {\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\t\t\t\t\tconst { translation } = e.detail;\n\n\t\t\t\t\t// position\n\t\t\t\t\tconst pointerPosition = vectorCreate(interactionOrigin.x + translation.x, interactionOrigin.y + translation.y);\n\n\t\t\t\t\t// distance between interaction and pointer if it's too close, we don't draw this point\n\t\t\t\t\tconst dist = vectorDistance(interactionPosition, pointerPosition);\n\n\t\t\t\t\tif (fixPrecision(dist, 5) <= interactionRadius) return;\n\n\t\t\t\t\t// get angle between interaction and pointer\n\t\t\t\t\tconst angle = vectorAngleBetween(pointerPosition, interactionPosition);\n\n\t\t\t\t\t// move brush towards pointer at angle\n\t\t\t\t\tconst moveDist = interactionRadius - dist;\n\n\t\t\t\t\tinteractionPosition.x += moveDist * Math.cos(angle);\n\t\t\t\t\tinteractionPosition.y += moveDist * Math.sin(angle);\n\n\t\t\t\t\t// create point\n\t\t\t\t\tconst point = mapEditorPointToImagePoint(interactionPosition);\n\n\t\t\t\t\tconst computedPoint = isRelative\n\t\t\t\t\t? toPercentagePoint(point, parentRect)\n\t\t\t\t\t: point;\n\n\t\t\t\t\tupdateShapeDraft(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpoints: draft.points.concat(computedPoint)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcollection\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\trelease: e => e.detail.preventInertia(),\n\t\t\t\tcancel: () => {\n\t\t\t\t\tdiscardShapeDraft(collection);\n\t\t\t\t},\n\t\t\t\tend: e => {\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\n\t\t\t\t\t// if is bitmap we've just drawn a dot\n\t\t\t\t\tif (e.detail.isTap) {\n\t\t\t\t\t\tlet shouldDiscard = false;\n\n\t\t\t\t\t\t// if is bitmap can draw dots\n\t\t\t\t\t\tif (draft.bitmap) {\n\t\t\t\t\t\t\tif (interactionTarget) shouldDiscard = true;\n\t\t\t\t\t\t\tif (hasSelectedShape) shouldDiscard = true;\n\t\t\t\t\t\t} else // non-bitmap cannot create 1 point lines\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tshouldDiscard = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (shouldDiscard) return discardShapeDraft(collection);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst shape = confirmShapeDraft(collection);\n\t\t\t\t\tonaddshape(shape);\n\t\t\t\t}\n\t\t\t};\n\t\t} else if (isEllipse || isText || shapeIsRect(shapeDefault)) {\n\t\t\treturn {\n\t\t\t\tstart: e => {\n\t\t\t\t\tconst { origin } = e.detail;\n\n\t\t\t\t\t// need to remember origin so we can correctly apply interaction translation\n\t\t\t\t\tinteractionOrigin = snapPoint(vectorClone(origin));\n\n\t\t\t\t\tconst mappedOriginPosition = mapEditorPointToImagePoint(interactionOrigin);\n\n\t\t\t\t\tconst computedOriginPosition = isRelative\n\t\t\t\t\t? toPercentagePoint(mappedOriginPosition, parentRect)\n\t\t\t\t\t: mappedOriginPosition;\n\n\t\t\t\t\tconst rotation = -1 * getShapeUpdateRotation(contextRotation, contextFlipX, contextFlipY);\n\n\t\t\t\t\t// add to markup so it's drawn\n\t\t\t\t\tconst draft = {\n\t\t\t\t\t\t...shapeDefault,\n\t\t\t\t\t\trotation,\n\t\t\t\t\t\t...computedOriginPosition\n\t\t\t\t\t};\n\n\t\t\t\t\t// de-flip shape\n\t\t\t\t\tdraft.flipX = contextFlipX;\n\n\t\t\t\t\tdraft.flipY = contextFlipY;\n\n\t\t\t\t\t// remove position\n\t\t\t\t\tdelete draft.position;\n\n\t\t\t\t\t// hide initially\n\t\t\t\t\tdraft.opacity = 0;\n\n\t\t\t\t\t// set base position props\n\t\t\t\t\tconst initProps = isEllipse ? ['rx', 'ry'] : ['width', 'height'];\n\n\t\t\t\t\tinitProps.forEach(prop => {\n\t\t\t\t\t\t// set base props\n\t\t\t\t\t\tdraft[prop] = isRelative ? '0%' : 0;\n\t\t\t\t\t});\n\n\t\t\t\t\taddShapeDraft(draft, collection);\n\t\t\t\t},\n\t\t\t\tupdate: e => {\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\t\t\t\t\tdraft.opacity = 1;\n\t\t\t\t\tlet { aspectRatio } = draft;\n\t\t\t\t\tlet { translation, shiftKey, ctrlKey } = e.detail;\n\n\t\t\t\t\t// always draw squares when holding shift\n\t\t\t\t\tif (!aspectRatio && shiftKey) aspectRatio = 1;\n\n\t\t\t\t\t// position\n\t\t\t\t\tconst pointerPosition = snapPoint(vectorCreate(interactionOrigin.x + translation.x, interactionOrigin.y + translation.y));\n\n\t\t\t\t\tconst mappedOriginPosition = mapEditorPointToImagePoint(interactionOrigin);\n\t\t\t\t\tconst mappedPointerPosition = mapEditorPointToImagePoint(pointerPosition);\n\n\t\t\t\t\t// force pointer position to fixed aspect ratio\n\t\t\t\t\tif (aspectRatio) {\n\t\t\t\t\t\tconst pointerArea = rectCreateFromPoints([mappedOriginPosition, mappedPointerPosition]);\n\t\t\t\t\t\tconst pointerAreaSnapped = rectContainRect(pointerArea, aspectRatio);\n\t\t\t\t\t\tmappedPointerPosition.x = mappedOriginPosition.x + pointerAreaSnapped.width;\n\t\t\t\t\t\tmappedPointerPosition.y = mappedOriginPosition.y + pointerAreaSnapped.height;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst pivot = {\n\t\t\t\t\t\tx: mappedOriginPosition.x + (mappedPointerPosition.x - mappedOriginPosition.x) * 0.5,\n\t\t\t\t\t\ty: mappedOriginPosition.y + (mappedPointerPosition.y - mappedOriginPosition.y) * 0.5\n\t\t\t\t\t};\n\n\t\t\t\t\tconst rotation = getShapeUpdateRotation(contextRotation, contextFlipX, contextFlipY);\n\t\t\t\t\tvectorRotate(mappedOriginPosition, rotation, pivot);\n\t\t\t\t\tvectorRotate(mappedPointerPosition, rotation, pivot);\n\t\t\t\t\tconst l = Math.min(mappedOriginPosition.x, mappedPointerPosition.x);\n\t\t\t\t\tconst t = Math.min(mappedOriginPosition.y, mappedPointerPosition.y);\n\t\t\t\t\tconst r = Math.max(mappedOriginPosition.x, mappedPointerPosition.x);\n\t\t\t\t\tconst b = Math.max(mappedOriginPosition.y, mappedPointerPosition.y);\n\t\t\t\t\tlet width = r - l;\n\t\t\t\t\tlet height = b - t;\n\t\t\t\t\tlet props = {};\n\n\t\t\t\t\tif (isEllipse) {\n\t\t\t\t\t\tif (ctrlKey) {\n\t\t\t\t\t\t\tprops.x = mappedOriginPosition.x;\n\t\t\t\t\t\t\tprops.y = mappedOriginPosition.y;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprops.x = l + width * 0.5;\n\t\t\t\t\t\t\tprops.y = t + height * 0.5;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprops.rx = width * 0.5;\n\t\t\t\t\t\tprops.ry = height * 0.5;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (ctrlKey) {\n\t\t\t\t\t\t\tprops.x = mappedOriginPosition.x - width * 0.5;\n\t\t\t\t\t\t\tprops.y = mappedOriginPosition.y - height * 0.5;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprops.x = l;\n\t\t\t\t\t\t\tprops.y = t;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprops.width = width;\n\t\t\t\t\t\tprops.height = height;\n\t\t\t\t\t}\n\n\t\t\t\t\tupdateShapeDraft(props, collection, (item, props) => {\n\t\t\t\t\t\treturn updateShape(item, props, parentRect);\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\trelease: e => {\n\t\t\t\t\te.detail.preventInertia();\n\t\t\t\t},\n\t\t\t\tcancel: e => {\n\t\t\t\t\tdiscardShapeDraft(collection);\n\t\t\t\t},\n\t\t\t\tend: e => {\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\n\t\t\t\t\tif (e.detail.isTap) {\n\t\t\t\t\t\t// will discard a new text shape when created by tap and a previous text shape was just confirmed\n\t\t\t\t\t\tif (shapeIsText(draft) && enableTapToAddText && interactionShapeWasConfirmed) {\n\t\t\t\t\t\t\treturn discardShapeDraft(collection);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// will cancel if is not text shape\n\t\t\t\t\t\tif (!shapeIsText(draft) || !enableTapToAddText || interactionTarget) {\n\t\t\t\t\t\t\treturn discardShapeDraft(collection);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// will add 'auto' text shape if not targetting other shape\n\t\t\t\t\t\tdelete draft.width;\n\n\t\t\t\t\t\tdelete draft.height;\n\t\t\t\t\t\tif (draft.disableNewline !== false) delete draft.textAlign;\n\n\t\t\t\t\t\t// position the shape correctly\n\t\t\t\t\t\tconst draftComputedShape = shapeComputeDisplay({ ...draft }, parentRect);\n\n\t\t\t\t\t\tconst size = textToSize(draft.text, draftComputedShape);\n\n\t\t\t\t\t\tconst mappedOriginPosition = mapEditorPointToImagePoint({\n\t\t\t\t\t\t\tx: interactionOrigin.x,\n\t\t\t\t\t\t\ty: interactionOrigin.y - size.height * 0.5\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tconst mappedPointerPosition = mapEditorPointToImagePoint({\n\t\t\t\t\t\t\tx: interactionOrigin.x + size.width,\n\t\t\t\t\t\t\ty: interactionOrigin.y + size.height * 0.5\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tconst pivot = {\n\t\t\t\t\t\t\tx: mappedOriginPosition.x + (mappedPointerPosition.x - mappedOriginPosition.x) * 0.5,\n\t\t\t\t\t\t\ty: mappedOriginPosition.y + (mappedPointerPosition.y - mappedOriginPosition.y) * 0.5\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tconst rotation = getShapeUpdateRotation(contextRotation, contextFlipX, contextFlipY);\n\t\t\t\t\t\tvectorRotate(mappedOriginPosition, rotation, pivot);\n\t\t\t\t\t\tvectorRotate(mappedPointerPosition, rotation, pivot);\n\t\t\t\t\t\tlet l = Math.min(mappedOriginPosition.x, mappedPointerPosition.x);\n\t\t\t\t\t\tlet t = Math.min(mappedOriginPosition.y, mappedPointerPosition.y);\n\t\t\t\t\t\tif (l < 0) l = 0;\n\t\t\t\t\t\tif (t < 0) t = 0;\n\t\t\t\t\t\tif (l + size.width > parentRect.width) l = parentRect.width - size.width;\n\t\t\t\t\t\tif (t + size.height > parentRect.height) t = parentRect.height - size.height;\n\n\t\t\t\t\t\tdraft.x = isString(draft.x)\n\t\t\t\t\t\t? toPercentage(l, parentRect.width)\n\t\t\t\t\t\t: l;\n\n\t\t\t\t\t\tdraft.y = isString(draft.y)\n\t\t\t\t\t\t? toPercentage(t, parentRect.height)\n\t\t\t\t\t\t: t;\n\t\t\t\t\t}\n\n\t\t\t\t\t// reveal\n\t\t\t\t\tdraft.opacity = 1;\n\n\t\t\t\t\t// finish markup\n\t\t\t\t\tif (!shapeIsText(draft)) {\n\t\t\t\t\t\tconst shape = confirmShapeDraft(collection);\n\t\t\t\t\t\tonaddshape(shape);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonaddshape(draft);\n\t\t\t\t\t}\n\n\t\t\t\t\t// select the draft\n\t\t\t\t\tshapeCanSelect(draft) && selectShape(draft);\n\n\t\t\t\t\t// also enable editing the text\n\t\t\t\t\tif (shapeIsText(draft)) editMarkupItem(draft);\n\t\t\t\t}\n\t\t\t};\n\t\t} else if (shapeIsLine(shapeDefault)) {\n\t\t\treturn {\n\t\t\t\tstart: e => {\n\t\t\t\t\tconst { origin } = e.detail;\n\t\t\t\t\tconst originMapped = mapEditorPointToImagePoint(snapPoint(origin));\n\t\t\t\t\tconst originSnapped = vectorApply(originMapped, snapToPixel);\n\t\t\t\t\tinteractionOrigin = vectorClone(origin);\n\n\t\t\t\t\t// add to markup so it's drawn\n\t\t\t\t\taddShapeDraft(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t...shapeDefault,\n\t\t\t\t\t\t\tx1: isRelative\n\t\t\t\t\t\t\t? toPercentage(originSnapped.x, parentRect.width)\n\t\t\t\t\t\t\t: originSnapped.x,\n\t\t\t\t\t\t\ty1: isRelative\n\t\t\t\t\t\t\t? toPercentage(originSnapped.y, parentRect.height)\n\t\t\t\t\t\t\t: originSnapped.y,\n\t\t\t\t\t\t\tx2: isRelative\n\t\t\t\t\t\t\t? toPercentage(originSnapped.x, parentRect.width)\n\t\t\t\t\t\t\t: originSnapped.x,\n\t\t\t\t\t\t\ty2: isRelative\n\t\t\t\t\t\t\t? toPercentage(originSnapped.y, parentRect.height)\n\t\t\t\t\t\t\t: originSnapped.y,\n\t\t\t\t\t\t\topacity: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcollection\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tupdate: e => {\n\t\t\t\t\t// const draft = getShapeDraft(collection);\n\t\t\t\t\tconst { translation } = e.detail;\n\n\t\t\t\t\tconst interactionTarget = snapPoint(vectorAdd(vectorClone(interactionOrigin), translation));\n\n\t\t\t\t\t// shift pressed\n\t\t\t\t\tif ($keysPressedStored.includes(16)) {\n\t\t\t\t\t\tconst length = vectorDistance(interactionOrigin, interactionTarget);\n\t\t\t\t\t\tconst angle = vectorAngleBetween(interactionOrigin, interactionTarget);\n\t\t\t\t\t\tconst angleSnapInterval = Math.PI / 4;\n\t\t\t\t\t\tconst angleSnapped = angleSnapInterval * Math.round(angle / angleSnapInterval);\n\t\t\t\t\t\tinteractionTarget.x = interactionOrigin.x + length * Math.cos(angleSnapped);\n\t\t\t\t\t\tinteractionTarget.y = interactionOrigin.y + length * Math.sin(angleSnapped);\n\t\t\t\t\t}\n\n\t\t\t\t\t// update line end position\n\t\t\t\t\tconst point = mapEditorPointToImagePoint(interactionTarget);\n\n\t\t\t\t\tupdateShapeDraft(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tx2: isRelative\n\t\t\t\t\t\t\t? toPercentage(point.x, parentRect.width)\n\t\t\t\t\t\t\t: point.x,\n\t\t\t\t\t\t\ty2: isRelative\n\t\t\t\t\t\t\t? toPercentage(point.y, parentRect.height)\n\t\t\t\t\t\t\t: point.y,\n\t\t\t\t\t\t\topacity: 1\n\t\t\t\t\t\t},\n\t\t\t\t\t\tcollection\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\trelease: e => e.detail.preventInertia(),\n\t\t\t\tcancel: e => {\n\t\t\t\t\tdiscardShapeDraft(collection);\n\t\t\t\t},\n\t\t\t\tend: e => {\n\t\t\t\t\tconst draft = getShapeDraft(collection);\n\t\t\t\t\tif (e.detail.isTap) return discardShapeDraft(collection);\n\t\t\t\t\tdraft.opacity = 1;\n\n\t\t\t\t\t// finish markup\n\t\t\t\t\tconst shape = confirmShapeDraft(collection);\n\n\t\t\t\t\tonaddshape(shape);\n\n\t\t\t\t\t// select the draft\n\t\t\t\t\tshapeCanSelect(draft) && selectShape(shape);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t};\n\n\tconst eraseShape = () => {\n\t\tlet origin;\n\t\tlet positionPrevious;\n\t\tconst eraseRadiusSquared = eraseRadius * eraseRadius;\n\n\t\tconst erase = (positionA, positionB, forceErase = false) => {\n\t\t\tconst d2 = vectorDistanceSquared(positionA, positionB);\n\n\t\t\t// skip, too close to previous point\n\t\t\tif (!forceErase && d2 < 2) return false;\n\n\t\t\tconst shapesThatCanBeErased = $shapes.filter(shape => !shape.disableErase);\n\n\t\t\t// if line is shorter than radius do simple erase operation, find all points within range from current position\n\t\t\tlet shapesFound;\n\n\t\t\tif (d2 < eraseRadiusSquared) {\n\t\t\t\tshapesFound = getShapesNearPosition($shapes, mapEditorPointToImagePoint(positionB), eraseRadius);\n\t\t\t} else {\n\t\t\t\tshapesFound = getShapesBetweenPoints(shapesThatCanBeErased, mapEditorPointToImagePoint(positionA), mapEditorPointToImagePoint(positionB), eraseRadius);\n\t\t\t}\n\n\t\t\tconst shapesRemoved = removeMarkupItems(shapesFound);\n\t\t\tshapesRemoved.forEach(onremoveshape);\n\t\t\treturn true;\n\t\t};\n\n\t\treturn {\n\t\t\tstart: e => {\n\t\t\t\torigin = vectorCreate(Math.round(e.detail.origin.x), Math.round(e.detail.origin.y));\n\t\t\t\terase(origin, origin, true);\n\t\t\t\tpositionPrevious = origin;\n\t\t\t},\n\t\t\tupdate: e => {\n\t\t\t\tconst { translation } = e.detail;\n\t\t\t\tconst positionCurrent = vectorCreate(Math.round(origin.x + translation.x), Math.round(origin.y + translation.y));\n\n\t\t\t\tif (erase(positionPrevious, positionCurrent)) {\n\t\t\t\t\tpositionPrevious = vectorClone(positionCurrent);\n\t\t\t\t}\n\t\t\t},\n\t\t\trelease: e => e.detail.preventInertia(),\n\t\t\tend: () => {\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t};\n\n\t//#endregion\n\t//\n\t// Mapping coordinates\n\t//\n\tconst getImagePointWithScreenTranslation = (point, translation) => {\n\t\tconst pointInScreenSpace = mapImagePointToEditorPoint(point);\n\t\treturn mapEditorPointToImagePoint(vectorAdd(pointInScreenSpace, translation));\n\t};\n\n\tconst getNumberSequence = (interval, min, max) => {\n\t\tconst length = (max - min) / interval + 1;\n\t\treturn Array.from({ length }, (_, i) => min + i * interval);\n\t};\n\n\tconst getShapeSnapLines = shape => {\n\t\tlet linesX = [];\n\t\tlet linesY = [];\n\n\t\t// Handle line as points\n\t\tlet points = shape.points;\n\n\t\tif (shape.x1 !== undefined) {\n\t\t\tpoints = [{ x: shape.x1, y: shape.y1 }, { x: shape.x2, y: shape.y2 }];\n\t\t}\n\n\t\t// Path → start & end + bounds + center\n\t\tif (points) {\n\t\t\tconst mappedPoints = points.map(mapImagePointToEditorPoint);\n\t\t\tconst rect = rectCreateFromPoints(mappedPoints);\n\t\t\tconst firstPoint = mappedPoints[0];\n\t\t\tconst lastPoint = mappedPoints[mappedPoints.length - 1];\n\n\t\t\tlinesX = [\n\t\t\t\trect.x,\n\t\t\t\trect.x + rect.width * 0.5,\n\t\t\t\trect.x + rect.width,\n\t\t\t\tfirstPoint.x,\n\t\t\t\tlastPoint.x\n\t\t\t];\n\n\t\t\tlinesY = [\n\t\t\t\trect.y,\n\t\t\t\trect.y + rect.height * 0.5,\n\t\t\t\trect.y + rect.height,\n\t\t\t\tfirstPoint.y,\n\t\t\t\tlastPoint.y\n\t\t\t];\n\t\t} else // Rect → bounds + center\n\t\tif (shape.text || shape.width !== undefined || shape.rx !== undefined) {\n\t\t\t// make sure is rect\n\t\t\tlet rect;\n\n\t\t\tif (shape.text && shape.height === undefined) {\n\t\t\t\t// calculate rect\n\t\t\t\tconst size = textToSize(shape.text, shape);\n\n\t\t\t\trect = rectCreate(shape.x, shape.y, size.width, size.height);\n\t\t\t} else {\n\t\t\t\t// ellipse and rectangle\n\t\t\t\trect = shape.width !== undefined\n\t\t\t\t? rectCreateFromAny(shape)\n\t\t\t\t: rectCreateFromAny({\n\t\t\t\t\t\tx: shape.x - shape.rx,\n\t\t\t\t\t\ty: shape.y - shape.ry,\n\t\t\t\t\t\twidth: shape.rx * 2,\n\t\t\t\t\t\theight: shape.ry * 2\n\t\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst rectAlignedCorners = rectGetCorners(rect).map(mapImagePointToEditorPoint);\n\n\t\t\tconst rectRotatedCorners = Math.abs(shape.rotation) > 0\n\t\t\t? rectRotate(rect, shape.rotation).map(mapImagePointToEditorPoint)\n\t\t\t: rectAlignedCorners;\n\n\t\t\tconst rectBounds = rectCreateFromPoints(rectRotatedCorners);\n\t\t\tconst center = rectCenter(rectBounds);\n\t\t\tconst width = rectBounds.width;\n\t\t\tconst height = rectBounds.height;\n\t\t\tconst cw = width * 0.5;\n\t\t\tconst ch = height * 0.5;\n\t\t\tlinesX = [center.x - cw, center.x, center.x + cw];\n\t\t\tlinesY = [center.y - ch, center.y, center.y + ch];\n\t\t} else // Just a point\n\t\tif (shape.x !== undefined) {\n\t\t\tconst point = mapImagePointToEditorPoint(shape);\n\t\t\tlinesX = [point.x];\n\t\t\tlinesY = [point.y];\n\t\t}\n\n\t\treturn { x: linesX, y: linesY };\n\t};\n\n\tconst getSnapTarget = (originLines, targetLines, snapThreshold) => {\n\t\tlet dist;\n\t\tlet previousSnapDist = Number.Infinity;\n\t\tlet origin = null;\n\t\tlet target = null;\n\t\tlet a, b;\n\n\t\tfor (let i = 0; i < originLines.length; i++) {\n\t\t\ta = originLines[i];\n\n\t\t\tfor (let j = 0; j < targetLines.length; j++) {\n\t\t\t\tb = targetLines[j];\n\t\t\t\tdist = Math.abs(a - b);\n\n\t\t\t\tif (dist < snapThreshold && (target === null || dist < previousSnapDist)) {\n\t\t\t\t\tpreviousSnapDist = dist;\n\t\t\t\t\torigin = a;\n\t\t\t\t\ttarget = b;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn { origin, target };\n\t};\n\n\tconst snapToShape = (originSnapLines, targetSnapLines, snapThreshold) => {\n\t\tconst snapLine = { x: null, y: null };\n\t\tconst snapTranslation = { x: null, y: null };\n\t\tconst snapX = getSnapTarget(originSnapLines.x, targetSnapLines.x, snapThreshold);\n\n\t\tif (snapX.target !== null) {\n\t\t\tsnapLine.x = snapX.target;\n\t\t\tsnapTranslation.x = snapX.target - snapX.origin;\n\t\t}\n\n\t\tconst snapY = getSnapTarget(originSnapLines.y, targetSnapLines.y, snapThreshold);\n\n\t\tif (snapY.target !== null) {\n\t\t\tsnapLine.y = snapY.target;\n\t\t\tsnapTranslation.y = snapY.target - snapY.origin;\n\t\t}\n\n\t\treturn { snapTranslation, snapLine };\n\t};\n\n\tconst snapLinesToTargets = (snapLines, snapTargets, snapThreshold, gridSize, gridRect) => {\n\t\tconst lines = { x: null, y: null };\n\t\tconst translation = { x: null, y: null };\n\n\t\t// create snap lines\n\t\tconst targetSnapLines = snapTargets.map(getShapeSnapLines);\n\n\t\t// add grid snapping\n\t\tif (gridSize > 0) {\n\t\t\tconst editorPointA = mapImagePointToEditorPoint({ x: 0, y: 0 });\n\t\t\tconst editorPointB = mapImagePointToEditorPoint({ x: gridSize, y: gridSize });\n\t\t\tconst editorPointC = mapImagePointToEditorPoint({ x: gridRect.width, y: gridRect.height });\n\t\t\tconst projectedSize = editorPointB.x - editorPointA.x;\n\t\t\tconst linesX = getNumberSequence(projectedSize, editorPointA.x, editorPointC.x);\n\t\t\tconst linesY = getNumberSequence(projectedSize, editorPointA.y, editorPointC.y);\n\t\t\ttargetSnapLines.push({ x: linesX, y: linesY });\n\t\t}\n\n\t\t// snap to targets\n\t\ttargetSnapLines.forEach(targetSnapLines => {\n\t\t\t// get snap results\n\t\t\tconst { snapTranslation, snapLine } = snapToShape(snapLines, targetSnapLines, snapThreshold);\n\n\t\t\t// determine if results are better than previous snap results\n\t\t\tif (snapTranslation.x !== null && (translation.x === null || Math.abs(snapTranslation.x) < Math.abs(translation.x))) {\n\t\t\t\ttranslation.x = snapTranslation.x || 0;\n\t\t\t\tlines.x = snapLine.x;\n\t\t\t}\n\n\t\t\tif (snapTranslation.y !== null && (translation.y === null || Math.abs(snapTranslation.y) < Math.abs(translation.y))) {\n\t\t\t\ttranslation.y = snapTranslation.y || 0;\n\t\t\t\tlines.y = snapLine.y;\n\t\t\t}\n\t\t});\n\n\t\treturn {\n\t\t\tsnapTranslation: translation,\n\t\t\tsnapLines: lines\n\t\t};\n\t};\n\n\tconst updateWithSnapTranslation = (vector, translation) => {\n\t\tif (translation.x !== null) vector.x += translation.x;\n\t\tif (translation.y !== null) vector.y += translation.y;\n\t\treturn vector;\n\t};\n\n\t//\n\t// Interaction\n\t//\n\t//#region translateShape rotateShape resizeShape\n\tconst translateShape = (shapeCurrent, shapeOriginComputed, translation, options) => {\n\t\t// get snap info\n\t\tconst { snapThreshold = 0, gridSize = 0, gridRect, snapTargets = [] } = options || {};\n\n\t\t// will hold props we will update in target shape\n\t\tlet propsToUpdate = null;\n\n\t\t// if is line\n\t\tif (shapeIsLine(shapeCurrent)) {\n\t\t\tif (snapThreshold) {\n\t\t\t\tconst shapeComputed = shapeComputeDisplay({ ...shapeCurrent }, parentRect);\n\t\t\t\tconst beginImageOffset = getImagePointWithScreenTranslation(shapeLineGetStartPoint(shapeOriginComputed), translation);\n\t\t\t\tconst endImageOffset = getImagePointWithScreenTranslation(shapeLineGetEndPoint(shapeOriginComputed), translation);\n\n\t\t\t\tconst shapeSnapLines = getShapeSnapLines({\n\t\t\t\t\t...shapeComputed,\n\t\t\t\t\tx1: beginImageOffset.x,\n\t\t\t\t\ty1: beginImageOffset.y,\n\t\t\t\t\tx2: endImageOffset.x,\n\t\t\t\t\ty2: endImageOffset.y\n\t\t\t\t});\n\n\t\t\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(shapeSnapLines, snapTargets, snapThreshold, gridSize, gridRect);\n\t\t\t\tupdateWithSnapTranslation(translation, snapTranslation);\n\t\t\t\tsetInteractionSnapLines(snapLines);\n\t\t\t}\n\n\t\t\tconst beginImageOffset = getImagePointWithScreenTranslation(shapeLineGetStartPoint(shapeOriginComputed), translation);\n\t\t\tconst endImageOffset = getImagePointWithScreenTranslation(shapeLineGetEndPoint(shapeOriginComputed), translation);\n\n\t\t\t// move shape\n\t\t\tpropsToUpdate = {\n\t\t\t\tx1: beginImageOffset.x,\n\t\t\t\ty1: beginImageOffset.y,\n\t\t\t\tx2: endImageOffset.x,\n\t\t\t\ty2: endImageOffset.y\n\t\t\t};\n\t\t} else if (shapeCurrent.points) {\n\t\t\t// snap it!\n\t\t\tif (snapThreshold) {\n\t\t\t\tconst shapeComputed = shapeComputeDisplay({ ...shapeCurrent }, parentRect);\n\n\t\t\t\tconst shapeSnapLines = getShapeSnapLines({\n\t\t\t\t\t...shapeComputed,\n\t\t\t\t\tpoints: shapeOriginComputed.points.map(point => getImagePointWithScreenTranslation(point, translation))\n\t\t\t\t});\n\n\t\t\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(shapeSnapLines, snapTargets, snapThreshold, gridSize, gridRect);\n\t\t\t\tupdateWithSnapTranslation(translation, snapTranslation);\n\t\t\t\tsetInteractionSnapLines(snapLines);\n\t\t\t}\n\n\t\t\tpropsToUpdate = {\n\t\t\t\tpoints: shapeOriginComputed.points.map(point => getImagePointWithScreenTranslation(point, translation))\n\t\t\t};\n\t\t} else if (shapeIsRect(shapeCurrent) || shapeIsText(shapeCurrent) || shapeIsEllipse(shapeCurrent)) {\n\t\t\tif (snapThreshold) {\n\t\t\t\tconst shapeComputed = shapeComputeDisplay({ ...shapeCurrent }, parentRect);\n\t\t\t\tconst shapeTranslatedPosition = getImagePointWithScreenTranslation(shapeOriginComputed, translation);\n\n\t\t\t\tconst shapeSnapLines = getShapeSnapLines({\n\t\t\t\t\t...shapeComputed,\n\t\t\t\t\t...shapeTranslatedPosition\n\t\t\t\t});\n\n\t\t\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(shapeSnapLines, snapTargets, snapThreshold, gridSize, gridRect);\n\t\t\t\tupdateWithSnapTranslation(translation, snapTranslation);\n\t\t\t\tsetInteractionSnapLines(snapLines);\n\t\t\t}\n\n\t\t\tpropsToUpdate = getImagePointWithScreenTranslation(shapeOriginComputed, translation);\n\t\t}\n\n\t\tif (!propsToUpdate) return;\n\t\tupdateShape(shapeCurrent, propsToUpdate, parentRect);\n\t\tsyncShapes();\n\t};\n\n\tconst IndexFlipXMap = { 0: 1, 1: 0, 2: 3, 3: 2 };\n\tconst IndexFlipYMap = { 0: 3, 1: 2, 2: 1, 3: 0 };\n\n\tconst resizeShape = (shapeCurrent, shapeOriginComputed, indexes, translation, options) => {\n\t\tconst { snapThreshold = 0, gridSize = 0, gridRect, snapTargets = [] } = options || {};\n\n\t\t// snap point\n\t\tconst snapPoint = snapThreshold\n\t\t? (point, translation, getPoint) => {\n\t\t\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(getShapeSnapLines(point), snapTargets, snapThreshold, gridSize, gridRect);\n\t\t\t\tupdateWithSnapTranslation(translation, snapTranslation);\n\t\t\t\tsetInteractionSnapLines(snapLines);\n\t\t\t\tconst snappedPoint = getImagePointWithScreenTranslation(getPoint(), translation);\n\t\t\t\tpoint.x = snappedPoint.x;\n\t\t\t\tpoint.y = snappedPoint.y;\n\t\t\t}\n\t\t: noop$1;\n\n\t\t// is a line of points\n\t\tif (shapeIsLine(shapeCurrent) || shapeIsPath(shapeCurrent) && hasProp(shapeCurrent, 'pathClose')) {\n\t\t\tconst [targetIndex] = indexes;\n\n\t\t\t// shift pressed\n\t\t\tconst anchor = $keysPressedStored.includes(16)\n\t\t\t? positionRelativeToAnchor\n\t\t\t: (_, target) => target;\n\n\t\t\tlet getPoint;\n\t\t\tlet anchorPoint;\n\t\t\tlet setPoint;\n\n\t\t\tif (shapeIsLine(shapeCurrent)) {\n\t\t\t\t// start\n\t\t\t\tif (targetIndex === 0) {\n\t\t\t\t\tgetPoint = () => shapeLineGetStartPoint(shapeOriginComputed);\n\n\t\t\t\t\t// snap angle relative to opposite point\n\t\t\t\t\tanchorPoint = point => anchor(shapeLineGetEndPoint(shapeOriginComputed), point);\n\n\t\t\t\t\tsetPoint = (shape, point) => {\n\t\t\t\t\t\tshape.x1 = point.x;\n\t\t\t\t\t\tshape.y1 = point.y;\n\t\t\t\t\t};\n\t\t\t\t} else // end\n\t\t\t\tif (targetIndex === 1) {\n\t\t\t\t\tgetPoint = () => shapeLineGetEndPoint(shapeOriginComputed);\n\n\t\t\t\t\t// snap angle relative to opposite point\n\t\t\t\t\tanchorPoint = point => anchor(shapeLineGetStartPoint(shapeOriginComputed), point);\n\n\t\t\t\t\tsetPoint = (shape, point) => {\n\t\t\t\t\t\tshape.x2 = point.x;\n\t\t\t\t\t\tshape.y2 = point.y;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst computedPoints = shapeOriginComputed.points;\n\t\t\t\tgetPoint = () => ({ ...computedPoints[targetIndex] });\n\n\t\t\t\tanchorPoint = point => {\n\t\t\t\t\tconst pointBefore = computedPoints[arrayIndexWrap(targetIndex - 1, computedPoints)];\n\t\t\t\t\tconst pointAfter = computedPoints[arrayIndexWrap(targetIndex + 1, computedPoints)];\n\t\t\t\t\tanchor(pointBefore, point);\n\t\t\t\t\tanchor(pointAfter, point);\n\t\t\t\t};\n\n\t\t\t\tsetPoint = (shape, point) => shape.points = shape.points.map((p, index) => {\n\t\t\t\t\tif (targetIndex === index) return point;\n\t\t\t\t\treturn p;\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst point = getImagePointWithScreenTranslation(getPoint(), translation);\n\t\t\tsnapPoint(point, translation, getPoint);\n\t\t\tanchorPoint(point);\n\t\t\tsetPoint(shapeCurrent, point);\n\t\t} else // is a box\n\t\tif (shapeHasSize(shapeCurrent) || shapeIsEllipse(shapeCurrent) || shapeIsTextBox(shapeCurrent)) {\n\t\t\tlet hasAutoHeight = false;\n\t\t\tlet shapeOriginRect;\n\n\t\t\tif (shapeIsEllipse(shapeCurrent)) {\n\t\t\t\tshapeOriginRect = rectCreateFromEllipse(shapeOriginComputed);\n\t\t\t} else if (shapeHasSize(shapeCurrent)) {\n\t\t\t\tshapeOriginRect = rectCreateFromAny(shapeOriginComputed);\n\t\t\t} else {\n\t\t\t\t// is text with 'width' only\n\t\t\t\thasAutoHeight = true;\n\n\t\t\t\tshapeOriginRect = rectCreateFromAny(shapeOriginComputed);\n\t\t\t\tconst size = textToSize(shapeOriginComputed.text, shapeOriginComputed);\n\t\t\t\tshapeOriginRect.height = size.height;\n\t\t\t}\n\n\t\t\tlet shapeAspectRatio;\n\n\t\t\tif (shapeCurrent.aspectRatio) {\n\t\t\t\tshapeAspectRatio = shapeCurrent.aspectRatio;\n\t\t\t} else if (options.shiftKey && !hasAutoHeight) {\n\t\t\t\tshapeAspectRatio = shapeOriginRect.width / shapeOriginRect.height;\n\t\t\t}\n\n\t\t\t// current shape\n\t\t\tconst rectAligned = rectCreateFromAny(shapeOriginRect);\n\n\t\t\tconst rectAlignedCenterPosition = rectCenter(rectAligned);\n\t\t\tconst rectRotation = shapeCurrent.rotation;\n\t\t\tconst rectAlignedCorners = rectGetCorners(rectAligned);\n\t\t\tconst rectCorners = rectRotate(rectAligned, rectRotation);\n\n\t\t\t// is translating one corner\n\t\t\tif (indexes.length === 1) {\n\t\t\t\t// corner\n\t\t\t\tlet cornerIndex = indexes[0];\n\n\t\t\t\tif (shapeCurrent.flipX) cornerIndex = IndexFlipXMap[cornerIndex];\n\t\t\t\tif (shapeCurrent.flipY) cornerIndex = IndexFlipYMap[cornerIndex];\n\t\t\t\tconst [tl, tr, br, bl] = rectAlignedCorners;\n\t\t\t\tconst screenCornerPosition = mapImagePointToEditorPoint(rectCorners[cornerIndex]);\n\t\t\t\tconst screenTargetPosition = vectorAdd({ ...screenCornerPosition }, translation);\n\t\t\t\tconst imageTargetPosition = mapEditorPointToImagePoint(screenTargetPosition);\n\t\t\t\tsnapPoint(imageTargetPosition, translation, () => mapEditorPointToImagePoint(screenCornerPosition));\n\t\t\t\tconst imageTargetTranslation = vectorCreate(imageTargetPosition.x - rectCorners[cornerIndex].x, imageTargetPosition.y - rectCorners[cornerIndex].y);\n\t\t\t\tconst imageTargetTranslationAligned = vectorRotate(vectorClone(imageTargetTranslation), -rectRotation);\n\t\t\t\tconst imageTargetPositionAligned = vectorCreate(rectAlignedCorners[cornerIndex].x + imageTargetTranslationAligned.x, rectAlignedCorners[cornerIndex].y + imageTargetTranslationAligned.y);\n\t\t\t\tlet anchor;\n\t\t\t\tif (cornerIndex === 0) anchor = br;\n\t\t\t\tif (cornerIndex === 1) anchor = bl;\n\t\t\t\tif (cornerIndex === 2) anchor = tl;\n\t\t\t\tif (cornerIndex === 3) anchor = tr;\n\n\t\t\t\t// create an aligned and updated rectangle\n\t\t\t\tconst rectAlignedResized = rectCreateFromPoints([anchor, imageTargetPositionAligned]);\n\n\t\t\t\t// limit rect\n\t\t\t\tif (shapeAspectRatio) {\n\t\t\t\t\t// get size that adheres to aspect ratio but still fits current rectangle\n\t\t\t\t\tconst { width, height } = rectContainRect(rectAlignedResized, shapeAspectRatio);\n\n\t\t\t\t\tconst [t, r, b, l] = rectToBounds(rectAlignedResized);\n\n\t\t\t\t\t// update size\n\t\t\t\t\trectAlignedResized.width = width;\n\n\t\t\t\t\trectAlignedResized.height = height;\n\n\t\t\t\t\t// align to anchor\n\t\t\t\t\tif (imageTargetPositionAligned.y < anchor.y) {\n\t\t\t\t\t\trectAlignedResized.y = b - height;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (imageTargetPositionAligned.x < anchor.x) {\n\t\t\t\t\t\trectAlignedResized.x = r - width;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// rotate the aligned rectangle around it's original pivot point\n\t\t\t\tconst rr = rectRotate(rectAlignedResized, rectRotation, rectAlignedCenterPosition);\n\n\t\t\t\t// now calculate the new center and then rotate the tl and br corners around that center to find their new positions\n\t\t\t\tconst rrc = vectorCenter(rr);\n\n\t\t\t\tconst p1 = vectorRotate(rr[0], -rectRotation, rrc);\n\t\t\t\tconst p2 = vectorRotate(rr[2], -rectRotation, rrc);\n\t\t\t\tconst rectUpdated = rectCreateFromPoints([p1, p2]);\n\n\t\t\t\tupdateShape(\n\t\t\t\t\tshapeCurrent,\n\t\t\t\t\tshapeIsEllipse(shapeCurrent)\n\t\t\t\t\t? ellipseCreateFromRect(rectUpdated)\n\t\t\t\t\t: rectUpdated,\n\t\t\t\t\tparentRect\n\t\t\t\t);\n\t\t\t} else // is translating two corner points\n\t\t\t{\n\t\t\t\t// 0-1 -> 2-3\n\t\t\t\t// 1-2 -> 3-0\n\t\t\t\t// 2-3 -> 0-1\n\t\t\t\t// 3-0 -> 1-2\n\t\t\t\tindexes = indexes.map(index => {\n\t\t\t\t\tif (shapeCurrent.flipX) index = IndexFlipXMap[index];\n\t\t\t\t\tif (shapeCurrent.flipY) index = IndexFlipYMap[index];\n\t\t\t\t\treturn index;\n\t\t\t\t});\n\n\t\t\t\tconst [cornerA, cornerB] = indexes.map(index => rectCorners[index]);\n\n\t\t\t\tconst mid = {\n\t\t\t\t\tx: cornerA.x + (cornerB.x - cornerA.x) * 0.5,\n\t\t\t\t\ty: cornerA.y + (cornerB.y - cornerA.y) * 0.5\n\t\t\t\t};\n\n\t\t\t\tconst [cornerAlignedA, cornerAlignedB] = indexes.map(index => rectAlignedCorners[index]);\n\n\t\t\t\tconst [cornerAlignedC, cornerAlignedD] = indexes.map(index => {\n\t\t\t\t\tconst mappedIndex = index + 2;\n\t\t\t\t\tif (mappedIndex < 4) return rectAlignedCorners[mappedIndex];\n\t\t\t\t\treturn rectAlignedCorners[mappedIndex - 4];\n\t\t\t\t});\n\n\t\t\t\t// const midAligned = {\n\t\t\t\t// x: cornerAlignedA.x + (cornerAlignedB.x - cornerAlignedA.x) * .5,\n\t\t\t\t// y: cornerAlignedA.y + (cornerAlignedB.y - cornerAlignedA.y) * .5\n\t\t\t\t// };\n\t\t\t\tconst midAnchorAligned = {\n\t\t\t\t\tx: cornerAlignedC.x + (cornerAlignedD.x - cornerAlignedC.x) * 0.5,\n\t\t\t\t\ty: cornerAlignedC.y + (cornerAlignedD.y - cornerAlignedC.y) * 0.5\n\t\t\t\t};\n\n\t\t\t\tconst screenMidPosition = mapImagePointToEditorPoint(mid);\n\t\t\t\tconst screenTargetPosition = vectorAdd({ ...screenMidPosition }, translation);\n\t\t\t\tconst imageTargetPosition = mapEditorPointToImagePoint(screenTargetPosition);\n\t\t\t\tsnapPoint(imageTargetPosition, translation, () => mapEditorPointToImagePoint(screenMidPosition));\n\t\t\t\tconst imageTargetTranslation = vectorCreate(imageTargetPosition.x - mid.x, imageTargetPosition.y - mid.y);\n\t\t\t\tconst imageTargetTranslationAligned = vectorRotate(vectorClone(imageTargetTranslation), -rectRotation);\n\t\t\t\tconst d = vectorSubtract(vectorClone(cornerAlignedA), cornerAlignedB);\n\t\t\t\tconst f = vectorApply(d, v => 1 - Math.abs(Math.sign(v)));\n\t\t\t\tconst t = vectorCreate(imageTargetTranslationAligned.x * f.x, imageTargetTranslationAligned.y * f.y);\n\t\t\t\tvectorAdd(cornerAlignedA, t);\n\t\t\t\tvectorAdd(cornerAlignedB, t);\n\t\t\t\tconst rectAlignedResized = rectCreateFromPoints(rectAlignedCorners);\n\n\t\t\t\t// limit rect\n\t\t\t\tif (shapeAspectRatio) {\n\t\t\t\t\tlet width = rectAlignedResized.width;\n\t\t\t\t\tlet height = rectAlignedResized.height;\n\n\t\t\t\t\tif (f.y === 0) {\n\t\t\t\t\t\theight = width / shapeAspectRatio;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twidth = height * shapeAspectRatio;\n\t\t\t\t\t}\n\n\t\t\t\t\t// update size\n\t\t\t\t\trectAlignedResized.width = width;\n\n\t\t\t\t\trectAlignedResized.height = height;\n\n\t\t\t\t\t// align to anchor\n\t\t\t\t\tif (f.y === 0) {\n\t\t\t\t\t\trectAlignedResized.y = midAnchorAligned.y - height * 0.5;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trectAlignedResized.x = midAnchorAligned.x - width * 0.5;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// rotate the aligned rectangle around it's original pivot point\n\t\t\t\tconst rr = rectRotate(rectAlignedResized, rectRotation, rectAlignedCenterPosition);\n\n\t\t\t\t// now calculate the new center and then rotate the tl and br corners around that center to find their new positions\n\t\t\t\tconst rrc = vectorCenter(rr);\n\n\t\t\t\tconst p1 = vectorRotate(rr[0], -rectRotation, rrc);\n\t\t\t\tconst p2 = vectorRotate(rr[2], -rectRotation, rrc);\n\t\t\t\tconst rectUpdated = rectCreateFromPoints([p1, p2]);\n\t\t\t\tlet props;\n\n\t\t\t\tif (shapeIsEllipse(shapeCurrent)) {\n\t\t\t\t\tprops = ellipseCreateFromRect(rectUpdated);\n\t\t\t\t} else if (shapeHasSize(shapeCurrent)) {\n\t\t\t\t\tprops = rectUpdated;\n\t\t\t\t} else if (hasAutoHeight) {\n\t\t\t\t\tprops = {\n\t\t\t\t\t\tx: rectUpdated.x,\n\t\t\t\t\t\ty: rectUpdated.y,\n\t\t\t\t\t\twidth: rectUpdated.width\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tupdateShape(shapeCurrent, props, parentRect);\n\t\t\t}\n\t\t}\n\n\t\t// redraw\n\t\tsyncShapes();\n\t};\n\n\tlet rotatorInitialPosition;\n\n\tconst rotateShape = (shapeCurrent, shapeOriginComputed, translation, options) => {\n\t\t// calculate angle between translated rotation control and origin\n\t\tconst shapeRect = getMarkupShapeRect(shapeComputeDisplay(shapeDeepCopy(shapeCurrent), parentRect));\n\n\t\tconst shapeCenter = rectCenter(shapeRect);\n\t\tconst p = getImagePointWithScreenTranslation(rotatorInitialPosition, translation);\n\t\tlet shapeRotation = vectorAngleBetween(p, shapeCenter) + Math.PI / 2;\n\n\t\tif (options.shiftKey) {\n\t\t\tconst rotatorSnapInterval = Math.PI / 16;\n\t\t\tshapeRotation = rotatorSnapInterval * Math.round(shapeRotation / rotatorSnapInterval) - contextRotation % rotatorSnapInterval;\n\t\t}\n\n\t\tupdateShape(shapeCurrent, { rotation: shapeRotation }, parentRect);\n\t\tsyncShapes();\n\t};\n\n\tconst getMarkupItemDraft = () => {\n\t\tif (!$shapes.length) return;\n\t\treturn $shapes.find(shapeIsDraft);\n\t};\n\n\tconst getMarkupItemDraftIndex = () => {\n\t\tif (!$shapes.length) return;\n\t\treturn $shapes.findIndex(shapeIsDraft);\n\t};\n\n\tconst addMarkupItemDraft = shape => {\n\t\tif (getMarkupItemDraft()) return;\n\t\tshapeMakeDraft(shape);\n\t\treturn addShape(shape);\n\t};\n\n\tconst confirmMarkupItemDraft = () => {\n\t\tconst markupItem = getMarkupItemDraft();\n\t\tif (!markupItem) return;\n\t\tshapeMakeFinal(markupItem);\n\t\tsyncShapes();\n\t\treturn markupItem;\n\t};\n\n\tconst discardMarkupItemDraft = () => {\n\t\tif (!getMarkupItemDraft()) return;\n\t\tconst arrayClone = [...$shapes];\n\t\tarrayClone.splice(getMarkupItemDraftIndex(), 1);\n\t\tshapes.set(arrayClone);\n\t};\n\n\tconst createMarkupItem = (props = {}) => ({ id: getUniqueId(), ...props });\n\n\tconst syncShapes = () => {\n\t\tshapes.set($shapes);\n\t};\n\n\tconst removeMarkupShapeProps = (shape, props = [], sync = true) => {\n\t\tprops.filter(Boolean).forEach(prop => delete shape[prop]);\n\n\t\t// sync markup array\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst updateMarkupShape = (shape, props, sync = true) => {\n\t\t// update markup\n\t\tshape = Object.assign(shape, props);\n\n\t\t// sync markup array\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst updateMarkupShapeProperty = (shape, name, value, sync = true) => {\n\t\tshape[name] = value;\n\n\t\t// sync markup array\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst updateMarkupItemsShapeProperty = (name, value, sync = true) => {\n\t\t$shapes.forEach(shape => updateMarkupShapeProperty(shape, name, value, false));\n\n\t\t// sync markup array\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst updateMarkupShapeItems = (props, sync = true) => {\n\t\t$shapes.forEach(markupItem => updateMarkupShape(markupItem, props, false));\n\n\t\t// sync markup array\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst getActiveMarkupItem = () => [...$shapes].reverse().find(shapeIsSelected);\n\tconst hasActiveMarkupItem = () => !!getActiveMarkupItem();\n\n\tconst removeShape = shapeToRemove => {\n\t\tif (!beforeRemoveShape(shapeToRemove)) return false;\n\t\tshapes.set($shapes.filter(shape => shape !== shapeToRemove));\n\t\tonremoveshape(shapeToRemove);\n\t};\n\n\tconst removeActiveMarkupItem = () => {\n\t\tconst activeShape = getActiveMarkupItem();\n\t\tif (!activeShape) return;\n\n\t\t// get removable markup items,\n\t\tconst removableShapes = $shapes.filter(shape => shapeCanRemove(shape) && shapeCanSelect(shape));\n\n\t\t// find index of active shape so we can select the next active shape on removal\n\t\tconst index = removableShapes.findIndex(shape => shape === activeShape);\n\n\t\t// remove the active ship from the shape array\n\t\tconst didRemove = removeShape(activeShape);\n\n\t\tif (didRemove === false) return;\n\n\t\t// remember selection\n\t\tpreviousSelectedShape = activeShape;\n\n\t\t// if no more markup items, release active shape\n\t\tif (removableShapes.length - 1 <= 0) return blurShapes();\n\n\t\t// select next active markup item\n\t\tconst indexNext = index - 1 < 0 ? removableShapes.length - 1 : index - 1;\n\n\t\tselectShape(removableShapes[indexNext]);\n\t};\n\n\tlet previousSelectedShape = undefined;\n\n\tconst blurShapes = (options = {}) => {\n\t\tconst { storePrevious = true } = options;\n\n\t\t// clear text state cache, when a text shape is blurred the changes are confirmed\n\t\tObject.keys(ShapeTextStateCache).forEach(key => ShapeTextStateCache[key] = {});\n\n\t\t// get selected shape\n\t\tconst selectedShape = getSelectedShape();\n\n\t\t// remember shape\n\t\tif (storePrevious) previousSelectedShape = selectedShape;\n\n\t\tupdateMarkupShapeItems({\n\t\t\tisSelected: false,\n\t\t\tisEditing: false,\n\t\t\t_prerender: false\n\t\t});\n\n\t\tselectedShape && onblurshape(selectedShape);\n\t};\n\n\tconst getSelectedShape = () => $shapes.find(shapeIsSelected);\n\n\tconst selectShape = (shape, sync = true) => {\n\t\t// can't select draft\n\t\tif (shapeIsDraft(shape)) return;\n\n\t\t// get currently selected shape\n\t\tconst selectedShapeCurrent = getSelectedShape();\n\n\t\tconst selectedShape = selectedShapeCurrent || previousSelectedShape;\n\n\t\t// was already selected\n\t\tconst wasSelectedShape = shapeIsSelected(shape);\n\n\t\t// reset previous selected shape\n\t\tpreviousSelectedShape = undefined;\n\n\t\t// if is returned false will cancel select operation\n\t\tif (!beforeSelectShape(selectedShape, shape)) return;\n\n\t\t// remove selected state from other markup\n\t\tblurShapes();\n\n\t\t// select\n\t\tshapeSelect(shape);\n\n\t\t// selected this shape\n\t\t!wasSelectedShape && onselectshape(shape);\n\n\t\t// sync\n\t\tif (!sync) return;\n\n\t\tsyncShapes();\n\t};\n\n\tconst deselectMarkupItem = markupItem => {\n\t\t// we're blurring an active text field, should confirm state if inline text editing\n\t\tif (textInput && textInput.confirm && markupItem.isEditing) textInput.confirm();\n\n\t\tupdateMarkupShape(markupItem, {\n\t\t\tisSelected: false,\n\t\t\tisEditing: false,\n\t\t\t_prerender: false\n\t\t});\n\n\t\tonblurshape(markupItem);\n\t};\n\n\tconst editMarkupItem = markupItem => {\n\t\tupdateMarkupShape(markupItem, {\n\t\t\tisSelected: true,\n\t\t\tisEditing: true,\n\t\t\t_prerender: textInputMode === 'inline'\n\t\t});\n\t};\n\n\tconst finishEditMarkupItem = markupItem => {\n\t\tupdateMarkupShape(markupItem, {\n\t\t\tisSelected: true,\n\t\t\tisEditing: false,\n\t\t\t_prerender: false\n\t\t});\n\t};\n\n\tconst removeMarkupItems = shapesToRemove => {\n\t\tif (!shapesToRemove.length) return [];\n\t\tconst shapesToRemoveFiltered = shapesToRemove.filter(beforeRemoveShape);\n\t\tshapes.set($shapes.filter(shape => !shapesToRemoveFiltered.includes(shape)));\n\t\treturn shapesToRemoveFiltered;\n\t};\n\n\tconst getTextShapeRect = shape => {\n\t\tconst size = textToSize(shape.text, shape);\n\n\t\treturn rectCreate(\n\t\t\tshape.x,\n\t\t\tshape.y,\n\t\t\tshape.width\n\t\t\t? Math.min(shape.width, size.width)\n\t\t\t: size.width,\n\t\t\tshape.height\n\t\t\t? Math.min(shape.height, size.height)\n\t\t\t: size.height\n\t\t);\n\t};\n\n\tconst getMarkupShapeRect = shape => {\n\t\t// has own rect\n\t\tif (shapeHasSize(shape)) return rectCreateFromAny(shape);\n\n\t\tif (shapeIsEllipse(shape)) return rectCreateFromEllipse(shape);\n\n\t\t// calculate the size on canvas\n\t\tconst rect = getTextShapeRect(shape);\n\n\t\trect.width = Math.max(MIN_TEXT_MARKUP_WIDTH, shape.width || rect.width);\n\t\treturn rect;\n\t};\n\n\tconst getShapesNearPosition = (shapes, position, range = 0, shapeFilter = () => true) => [...shapes].// reverse the array, want to select from top to bottom\n\treverse().// filter out shapes we're not interested in\n\tfilter(shapeFilter).// need priority indicator\n\tmap(shape => ({ shape, priority: 1 })).// find markup near pointer\n\tfilter(result => {\n\t\t// get shape\n\t\tconst { shape } = result;\n\n\t\t// we need to know where the shape will end up\n\t\tconst computedShape = shapeComputeDisplay(shapeDeepCopy(shape), parentRect);\n\n\t\t// add stroke width to range\n\t\tconst r = range + (computedShape.strokeWidth || 0) * 0.5;\n\n\t\t// test if clicked in rect\n\t\tif (shapeIsRect(computedShape)) {\n\t\t\treturn circleOverlapsWithRect(position, r, computedShape, shape.rotation);\n\t\t}\n\n\t\t// test if clicked on text\n\t\tif (shapeIsText(computedShape)) {\n\t\t\tconst shapeRect = getMarkupShapeRect(computedShape);\n\t\t\tconst isPositionInBounds = circleOverlapsWithRect(position, r, shapeRect, shape.rotation);\n\t\t\tlet isPositionInVisual = false;\n\n\t\t\tif (isPositionInBounds && !shapeIsSelected(shape)) {\n\t\t\t\tconst visualRect = getTextShapeRect(computedShape);\n\n\t\t\t\tif (shape.textAlign === 'right' && !shape.flipX) {\n\t\t\t\t\tvisualRect.x = shapeRect.x + shapeRect.width - visualRect.width;\n\t\t\t\t}\n\n\t\t\t\tif (shape.textAlign === 'center') {\n\t\t\t\t\tvisualRect.x = shapeRect.x + shapeRect.width * 0.5 - visualRect.width * 0.5;\n\t\t\t\t}\n\n\t\t\t\tisPositionInVisual = circleOverlapsWithRect(position, r, visualRect, shape.rotation, rectCenter(shapeRect));\n\t\t\t\tif (!isPositionInVisual) result.priority = -1;\n\t\t\t}\n\n\t\t\treturn isPositionInBounds;\n\t\t}\n\n\t\t// test if click on ellipse\n\t\tif (shapeIsEllipse(computedShape)) {\n\t\t\treturn circleOverlapsWithEllipse(position, r, computedShape, shape.rotation, shape.flipX, shape.flipY);\n\t\t}\n\n\t\t// test if clicked on line\n\t\tif (shapeIsLine(computedShape)) {\n\t\t\t// radius around click position, test if line intersects\n\t\t\treturn circleOverlapsWithLine(position, Math.max(16, r), shapeLineGetStartPoint(computedShape), shapeLineGetEndPoint(computedShape)); // always increase range when selecting lines\n\t\t}\n\n\t\t// test if clicked inside polygon\n\t\tif (shapeIsPath(computedShape) && computedShape.pathClose) {\n\t\t\treturn circleOverlapsWithPolygon(position, r, computedShape.points);\n\t\t}\n\n\t\t// test if clicked on path\n\t\tif (shapeIsPath(computedShape)) {\n\t\t\t// is a dot\n\t\t\tif (computedShape.points.length === 1) {\n\t\t\t\treturn vectorDistanceSquared(position, computedShape.points[0]) < r * r;\n\t\t\t}\n\n\t\t\t// radius around click position, test if line intersects\n\t\t\treturn circleOverlapsWithPath(position, Math.max(16, r), computedShape.points); // always increase range when selecting lines\n\t\t}\n\n\t\treturn false;\n\t}).sort((a, b) => {\n\t\tif (a.priority < b.priority) return 1;\n\t\tif (a.priority > b.priority) return -1;\n\t\treturn 0;\n\t}).map(item => item.shape);\n\n\tconst getShapesBetweenPoints = (shapes, a, b, range = 0) => {\n\t\t// make sure range is not negative\n\t\tconst r = Math.abs(range);\n\n\t\t// create line\n\t\tconst line = lineCreate(a, b);\n\n\t\t// eraseLine should be in image space\n\t\tconst eraseLine = lineExtend(line, r);\n\n\t\t// create line polygon\n\t\tconst erasePoly = lineExtrude(eraseLine, r);\n\n\t\t// loop over shapes and find intersecting shapes\n\t\tconst res = shapes.filter(shape => {\n\t\t\tconst computedShape = shapeComputeDisplay(shapeDeepCopy(shape), parentRect);\n\n\t\t\t// if shape is line or path\n\t\t\tif (shapeIsLine(computedShape) || shapeIsPath(computedShape)) {\n\t\t\t\tconst points = computedShape.points\n\t\t\t\t? [...computedShape.points]\n\t\t\t\t: [\n\t\t\t\t\t\tshapeLineGetStartPoint(computedShape),\n\t\t\t\t\t\tshapeLineGetEndPoint(computedShape)\n\t\t\t\t\t];\n\n\t\t\t\treturn !!linePointsIntersection(eraseLine, points);\n\t\t\t}\n\n\t\t\t// else turn into polygon and compare polygons\n\t\t\treturn polyIntersectsWithPoly(erasePoly, shapeToPoly(computedShape));\n\t\t});\n\n\t\treturn res;\n\t};\n\n\t//#region shape base interaction\n\tlet interactionPoint = undefined;\n\n\tlet interactionTimer = undefined;\n\tlet interactionTarget = undefined;\n\tlet interactionShape = undefined;\n\tlet interactionShapeOrigin = undefined;\n\tlet interactionShapeOriginComputed = undefined;\n\tlet interactionShapeWasSelected = false;\n\tlet interactionShapeWasConfirmed = false;\n\tlet isInteracting = false;\n\n\tconst handleInteractionStart = e => {\n\t\tconst { origin } = e.detail;\n\t\t$$invalidate(140, interactionShape = undefined);\n\t\tinteractionShapeOrigin = undefined;\n\t\tinteractionShapeOriginComputed = undefined;\n\t\tinteractionShapeWasSelected = false;\n\t\tinteractionTarget = undefined;\n\t\tinteractionShapeWasConfirmed = false;\n\t\tclearInteractionSnapLines();\n\t\tclearTimeout(interactionTimer);\n\t\tinteractionTimer = setTimeout(() => $$invalidate(141, isInteracting = true), 250);\n\n\t\t// if is editing text\n\t\tconst draft = getMarkupItemDraft();\n\n\t\tif (draft && !(shapeIsPath(draft) && hasProp(draft, 'pathClose'))) confirmMarkupItemDraft();\n\n\t\t// test if target is a shape, if not, run interaction handler\n\t\tinteractionPoint = mapEditorPointToImagePoint(vectorClone(origin));\n\n\t\t// if is shape path, we need to first finish path before we can do other actions\n\t\tif (draft && shapeIsPath(draft) && hasProp(draft, 'pathClose')) {\n\t\t\treturn oninteractionstart(e);\n\t\t}\n\n\t\tconst foundShapes = getShapesNearPosition($shapes, interactionPoint, selectRadius, shape => shapeCanSelect(shape));\n\t\tconst targettedMarkupItem = foundShapes.length && foundShapes.shift();\n\n\t\t// confirm text when moving between shapes\n\t\tif (activeMarkup && shapeIsTextEditing(activeMarkup)) {\n\t\t\thandleTextConfirm();\n\n\t\t\t// don't add new text shape when just confirmed another inline text shape\n\t\t\tif (enableTapToAddText) {\n\t\t\t\tinteractionShapeWasConfirmed = true;\n\t\t\t}\n\t\t}\n\n\t\t// deselect\n\t\tif (!targettedMarkupItem && activeMarkup && shapeIsTextEditing(activeMarkup)) {\n\t\t\tdeselectMarkupItem(activeMarkup);\n\t\t}\n\n\t\t// if is clicking outside of canvas, don't create new shape\n\t\tif (!willStartInteraction(origin)) return;\n\n\t\t// check if markup was targetted\n\t\tif (targettedMarkupItem && shapeIsSelected(targettedMarkupItem)) {\n\t\t\tinteractionShapeWasSelected = true;\n\t\t\t$$invalidate(140, interactionShape = targettedMarkupItem);\n\n\t\t\t// create a deep copy so we can check on end interaction if the shape was changed\n\t\t\tinteractionShapeOrigin = shapeDeepCopy(interactionShape);\n\n\t\t\t// clone shape we're interacting with so we can update it properly\n\t\t\tinteractionShapeOriginComputed = shapeComputeDisplay(shapeDeepCopy(interactionShape), parentRect);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// set target\n\t\tinteractionTarget = targettedMarkupItem || undefined;\n\n\t\t// started interacting\n\t\tconst didStartInteraction = oninteractionstart(e);\n\n\t\t// drag current targetted it as fallback interaction,\n\t\t// helps make sticker interaction easier\n\t\tif (!didStartInteraction && targettedMarkupItem) {\n\t\t\t// select\n\t\t\tselectShape(targettedMarkupItem);\n\n\t\t\t$$invalidate(140, interactionShape = targettedMarkupItem);\n\n\t\t\t// create a deep copy so we can check on end interaction if the shape was changed\n\t\t\tinteractionShapeOrigin = shapeDeepCopy(interactionShape);\n\n\t\t\t// clone shape we're interacting with so we can update it properly\n\t\t\tinteractionShapeOriginComputed = shapeComputeDisplay(shapeDeepCopy(interactionShape), parentRect);\n\t\t}\n\t};\n\n\tconst resetInteraction = () => {\n\t\tclearTimeout(interactionTimer);\n\t\tinteractionTimer = undefined;\n\t\t$$invalidate(141, isInteracting = false);\n\t\tclearInteractionSnapLines();\n\t};\n\n\tconst handleInteractionCancel = e => {\n\t\tresetInteraction();\n\t\toninteractioncancel(e);\n\t};\n\n\tlet axisOverride = null;\n\n\tconst handleInteractionUpdate = e => {\n\t\tconst { translation, ctrlKey, metaKey, shiftKey, position } = e.detail;\n\n\t\t// is interacting with shape\n\t\tif (interactionShape) {\n\t\t\t// prevent moving if not allowed\n\t\t\tif (!shapeCanMove(interactionShape)) return;\n\n\t\t\t// prevent moving if is editing text\n\t\t\tif (shapeIsTextEditing(interactionShape)) return;\n\n\t\t\t// if shift pressed, we pick biggest axis translation and use that\n\t\t\tif (shiftKey) {\n\t\t\t\tlet tx = Math.abs(translation.x);\n\t\t\t\tlet ty = Math.abs(translation.y);\n\t\t\t\tif (axisOverride === 'x') ty -= 64;\n\t\t\t\tif (axisOverride === 'y') tx -= 64;\n\n\t\t\t\tif (tx > ty) {\n\t\t\t\t\ttranslation.y = 0;\n\t\t\t\t\taxisOverride = 'x';\n\t\t\t\t} else if (ty > tx) {\n\t\t\t\t\ttranslation.x = 0;\n\t\t\t\t\taxisOverride = 'y';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\taxisOverride = null;\n\t\t\t}\n\n\t\t\t// if control or cmd pressed, prevent snapping\n\t\t\tconst preventSnap = ctrlKey || metaKey;\n\n\t\t\treturn translateShape(interactionShape, interactionShapeOriginComputed, translation, {\n\t\t\t\t...getSnapOptions(preventSnap ? 0 : snapThreshold, gridSize, gridRect, interactionShape)\n\t\t\t});\n\t\t}\n\n\t\toninteractionupdate(e);\n\t};\n\n\tconst handleInteractionRelease = e => {\n\t\tresetInteraction();\n\n\t\t// test if is text and if we double tapped, if so, switch to text edit mode\n\t\tif (interactionShape) {\n\t\t\tif (shapeIsTextEditing(interactionShape)) {\n\t\t\t\thandleTextCancel();\n\t\t\t} else // if tapped shape, and shape is text, and shape was selected\n\t\t\tif (e.detail.isTap && interactionShapeWasSelected && shapeIsText(interactionShape) && shapeCanInput(interactionShape) !== false) {\n\t\t\t\teditMarkupItem(interactionShape);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\toninteractionrelease(e);\n\t};\n\n\tconst handleInteractionEnd = e => {\n\t\tconst isSelectInteraction = interactionTarget && e.detail.isTap;\n\n\t\tif (e.detail.isTap) {\n\t\t\tsetTimeout(() => {\n\t\t\t\tontapcanvas(\n\t\t\t\t\t{\n\t\t\t\t\t\ttarget: interactionShape || interactionTarget,\n\t\t\t\t\t\tposition: interactionPoint\n\t\t\t\t\t},\n\t\t\t\t\t0\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\n\t\t// shape remains active so user can resize, rotate\n\t\tif (interactionShape) {\n\t\t\tontapshape(interactionShape);\n\n\t\t\tif (!shapeEqual(interactionShape, interactionShapeOrigin)) {\n\t\t\t\tonupdateshape(interactionShape);\n\t\t\t}\n\n\t\t\t$$invalidate(140, interactionShape = undefined);\n\t\t\treturn;\n\t\t}\n\n\t\t// can we deselect the current shape?\n\t\tconst currentSelectedShape = getSelectedShape();\n\n\t\tconst allowDeselectShape = currentSelectedShape\n\t\t? beforeDeselectShape(currentSelectedShape, interactionTarget || undefined)\n\t\t: true;\n\n\t\tif (allowDeselectShape) {\n\t\t\tblurShapes({ storePrevious: false });\n\t\t}\n\n\t\toninteractionend(e);\n\n\t\tif (allowDeselectShape && isSelectInteraction) {\n\t\t\tselectShape(interactionTarget);\n\t\t}\n\t};\n\n\t//#endregion\n\t//\n\t// Shape manipulation\n\t//\n\tconst getMarkupShapePoints = shape => {\n\t\tconst hasRotation = isNumber(shape.rotation) && shape.rotation !== 0;\n\n\t\tif (shapeIsRect(shape)) {\n\t\t\t// too small to draw\n\t\t\tif (shape.width < 1 && shape.height < 1) return;\n\n\t\t\tconst center = rectCenter(shape);\n\t\t\tconst points = rectGetCorners(shape);\n\n\t\t\tif (shape.flipX || shape.flipY) {\n\t\t\t\tvectorsFlip(points, shape.flipX, shape.flipY, center.x, center.y);\n\t\t\t}\n\n\t\t\treturn hasRotation\n\t\t\t? vectorsRotate(points, shape.rotation, center.x, center.y)\n\t\t\t: points;\n\t\t}\n\n\t\tif (shapeIsEllipse(shape)) {\n\t\t\tif (shape.rx < 1 && shape.ry < 1) return;\n\t\t\tconst center = shape;\n\t\t\tconst points = rectGetCorners(rectCreateFromEllipse(shape));\n\n\t\t\tif (shape.flipX || shape.flipY) {\n\t\t\t\tvectorsFlip(points, shape.flipX, shape.flipY, center.x, center.y);\n\t\t\t}\n\n\t\t\treturn hasRotation\n\t\t\t? vectorsRotate(points, shape.rotation, center.x, center.y)\n\t\t\t: points;\n\t\t}\n\n\t\tif (shapeIsLine(shape)) {\n\t\t\treturn [shapeLineGetStartPoint(shape), shapeLineGetEndPoint(shape)];\n\t\t}\n\n\t\tif (shapeIsPath(shape)) {\n\t\t\tif (shape.bitmap && !shape.pathClose) {\n\t\t\t\tconst rect = rectCreateFromPoints(shape.points);\n\t\t\t\trect.x -= shape.strokeWidth * 0.5;\n\t\t\t\trect.y -= shape.strokeWidth * 0.5;\n\t\t\t\trect.width += shape.strokeWidth;\n\t\t\t\trect.height += shape.strokeWidth;\n\t\t\t\tconst points = getMarkupShapePoints({ ...shape, ...rect });\n\t\t\t\treturn points;\n\t\t\t}\n\n\t\t\treturn [...shape.points];\n\t\t}\n\n\t\tif (shapeIsText(shape)) {\n\t\t\t// too small to draw\n\t\t\tif (shape.width < 5 && shape.height < 5) return;\n\n\t\t\tconst rect = getMarkupShapeRect(shape);\n\t\t\trect.width = Math.max(MIN_TEXT_MARKUP_WIDTH, rect.width);\n\t\t\tconst center = rectCenter(rect);\n\t\t\tconst points = rectGetCorners(rect);\n\n\t\t\tif (shape.flipX || shape.flipY) {\n\t\t\t\tvectorsFlip(points, shape.flipX, shape.flipY, center.x, center.y);\n\t\t\t}\n\n\t\t\treturn hasRotation\n\t\t\t? vectorsRotate(points, shape.rotation, center.x, center.y)\n\t\t\t: points;\n\t\t}\n\n\t\treturn [];\n\t};\n\n\tconst getShapeRotationPoint = shape => {\n\t\tconst points = getMarkupShapePoints(shape);\n\t\tlet origin;\n\t\tlet dir;\n\n\t\tif (shape.flipY) {\n\t\t\torigin = vectorCenter([points[0], points[1]]);\n\t\t\tdir = vectorNormalize(vectorCreate(points[1].x - points[2].x, points[1].y - points[2].y));\n\t\t} else {\n\t\t\torigin = vectorCenter([points[2], points[3]]);\n\t\t\tdir = vectorNormalize(vectorCreate(points[2].x - points[1].x, points[2].y - points[1].y));\n\t\t}\n\n\t\tvectorMultiply(dir, ROTATION_CONTROL_OFFSET / contextZoom);\n\t\treturn { origin, dir };\n\t};\n\n\tconst getShapeRotationPointOnScreen = shape => {\n\t\tconst markupPoint = getShapeRotationPoint(shape);\n\n\t\tconst screenPosition = mapImagePointToEditorPoint({\n\t\t\tx: markupPoint.origin.x + markupPoint.dir.x,\n\t\t\ty: markupPoint.origin.y + markupPoint.dir.y\n\t\t});\n\n\t\tconst screenOrigin = mapImagePointToEditorPoint(markupPoint.origin);\n\n\t\treturn {\n\t\t\torigin: screenOrigin,\n\t\t\tposition: screenPosition\n\t\t};\n\t};\n\n\t// UI manipulator functions\n\tconst createIsNotComparison = fn => shape => !fn(shape);\n\n\tconst createShapeComparison = id => shape => shape.id === id;\n\n\tconst createShapeFilter = id => {\n\t\tconst isShapeMatchingId = createShapeComparison(id);\n\t\treturn shapes => shapes.filter(createIsNotComparison(isShapeMatchingId));\n\t};\n\n\tconst createShapeRemover = id => {\n\t\tconst isShapeMatchingId = createShapeComparison(id);\n\t\tconst shapeFilter = createShapeFilter(id);\n\n\t\treturn () => ui.update(shapes => {\n\t\t\tif (!shapes.some(isShapeMatchingId)) return shapes;\n\t\t\treturn shapeFilter(shapes);\n\t\t});\n\t};\n\n\tconst createShapePusher = id => {\n\t\tconst shapeFilter = createShapeFilter(id);\n\n\t\treturn (...newShapes) => {\n\t\t\tui.update(shapes => [...shapeFilter(shapes), ...newShapes.filter(Boolean)]);\n\t\t};\n\t};\n\n\tconst popHoverShapes = createShapeRemover(HoverShapeId);\n\tconst pushHoverShapes = createShapePusher(HoverShapeId);\n\n\tconst redrawHoverShapes = shape => {\n\t\tconst shapePoints = getMarkupShapePoints(shapeComputeDisplay(shapeDeepCopy(shape), parentRect));\n\t\tif (!shapePoints) return;\n\t\tconst screenPoints = shapePoints.map(mapImagePointToEditorPoint);\n\n\t\tconst pathClose = shape.pathClose\n\t\t? true\n\t\t: !shape.bitmap && (shapeIsPath(shape) || shapeIsLine(shape))\n\t\t\t? false\n\t\t\t: true;\n\n\t\tconst isHookStyle = shape.selectionStyle === 'hook';\n\n\t\tconst outlineShadow = isHookStyle\n\t\t? screenPoints.map((p, index, arr) => ({\n\t\t\t\tid: HoverShapeId,\n\t\t\t\tpoints: getManipulatorSelectionHookShape(arr, index),\n\t\t\t\tstrokeColor: [0, 0, 0, 0.1],\n\t\t\t\tstrokeWidth: 2\n\t\t\t}))\n\t\t: [\n\t\t\t\t{\n\t\t\t\t\tid: HoverShapeId,\n\t\t\t\t\tpoints: screenPoints.map(p => vectorCreate(p.x + 1, p.y + 1)),\n\t\t\t\t\tstrokeColor: [0, 0, 0, 0.1],\n\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\tpathClose\n\t\t\t\t}\n\t\t\t];\n\n\t\tconst outline = isHookStyle\n\t\t? screenPoints.map((p, index, arr) => ({\n\t\t\t\tid: HoverShapeId,\n\t\t\t\tpoints: getManipulatorSelectionHookShape(arr, index),\n\t\t\t\tstrokeColor: hoverColor,\n\t\t\t\tstrokeWidth: 2\n\t\t\t}))\n\t\t: [\n\t\t\t\t{\n\t\t\t\t\tid: HoverShapeId,\n\t\t\t\t\tpoints: screenPoints,\n\t\t\t\t\tstrokeColor: hoverColor,\n\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\tpathClose\n\t\t\t\t}\n\t\t\t];\n\n\t\tpushHoverShapes(...outlineShadow, ...outline);\n\t}; // ui.update((shapes) => [...filterHoverShapes(shapes), ...outlineShadow, ...outline]);\n\n\tlet hoverShape;\n\n\t// draw shape manipulator edges\n\tconst ManipulatorShapeId = `markup-manipulator-segment-` + uid;\n\n\tconst getManipulatorSelectionHookShape = (points, index) => {\n\t\tconst currentPoint = points[index];\n\n\t\tconst previousPoint = index - 1 < 0\n\t\t? points[points.length - 1]\n\t\t: points[index - 1];\n\n\t\tconst nextPoint = index + 1 < points.length\n\t\t? points[index + 1]\n\t\t: points[0];\n\n\t\t// line from currentPoint to previous point\n\t\tconst cp = vectorSubtract(vectorClone(previousPoint), currentPoint);\n\n\t\tvectorNormalize(cp);\n\t\tconst start = vectorAdd(vectorMultiply(cp, 10), currentPoint);\n\n\t\t// line from currentPoint to next point\n\t\tconst cn = vectorSubtract(vectorClone(nextPoint), currentPoint);\n\n\t\tvectorNormalize(cn);\n\t\tconst end = vectorAdd(vectorMultiply(cn, 10), currentPoint);\n\t\treturn [start, currentPoint, end];\n\t};\n\n\tconst popManipulatorShapes = createShapeRemover(ManipulatorShapeId);\n\tconst pushManipulatorShapes = createShapePusher(ManipulatorShapeId);\n\n\tconst redrawManipulatorShapes = (opacity, shape, pointerPosition) => {\n\t\tif (!shapeCanSelect(shape)) return;\n\t\tconst isPath = shapeIsPath(shape);\n\t\tconst isPolygon = isPath && hasProp(shape, 'pathClose');\n\t\tconst hasStroke = isPolygon && shapeHasStroke(shape);\n\t\tconst isDraft = shapeIsDraft(shape);\n\t\tconst isTextEditing = shapeIsTextEditing(shape);\n\t\tconst isHookStyle = shape.selectionStyle === 'hook';\n\t\tconst { selectionOpacity = 1 } = shape;\n\n\t\t// don't draw line manipulator on sharpie draft\n\t\tif (isDraft && isPath && !isPolygon) return;\n\n\t\t// create manipulator outline segments\n\t\tconst segments = [];\n\n\t\tconst screenPoints = [...shapeActiveScreenPoints];\n\t\tconst screenPointsLast = screenPoints[screenPoints.length - 1];\n\t\tconst screenPointsFirst = screenPoints[0];\n\t\tconst shadowOpacity = (isTextEditing ? 0.05 : 0.1) * opacity * selectionOpacity;\n\t\tconst shadowVisible = shadowOpacity > 0;\n\t\tconst lineOpacity = (isTextEditing ? 0.5 : 1) * opacity * selectionOpacity;\n\t\tconst lineVisible = lineOpacity > 0;\n\t\tconst strokeColorShadow = [0, 0, 0];\n\t\tconst strokeColor = [1, 1, 1];\n\t\tconst strokeWidth = isTextEditing ? 1 : 1.5;\n\n\t\t// if shift is held snap to last point\n\t\tif ($keysPressedStored.includes(16) && screenPointsLast && pointerPosition) positionRelativeToAnchor(screenPointsLast, pointerPosition);\n\n\t\tconst distToOriginSquared = screenPoints.length && isPolygon && isDraft && pointerPosition\n\t\t? vectorDistanceSquared(screenPointsFirst, pointerPosition)\n\t\t: Infinity;\n\n\t\tconst distToLastSquared = screenPoints.length && isPolygon && isDraft && pointerPosition\n\t\t? vectorDistanceSquared(screenPointsLast, pointerPosition)\n\t\t: Infinity;\n\n\t\tconst canClosePath = distToOriginSquared <= POLYGON_END_PATH_DISTANCE_SQUARED;\n\t\tconst canEndPath = distToLastSquared <= POLYGON_END_PATH_DISTANCE_SQUARED;\n\n\t\t// if we can't close the path we draw a line from the last point to the pointer position\n\t\tif (!canClosePath && pointerPosition) screenPoints.push(pointerPosition);\n\n\t\tconst canDrawLine = screenPoints.length > 1;\n\n\t\tconst closeSelectionPath = shape.pathClose\n\t\t? true\n\t\t: !shape.bitmap && (shapeIsPath(shape) || shapeIsLine(shape))\n\t\t\t? screenPoints.length > 2 && canClosePath\n\t\t\t: true;\n\n\t\t// shadows\n\t\tif (canDrawLine && shadowVisible) {\n\t\t\t// draw corner hooks\n\t\t\tisHookStyle\n\t\t\t? segments.push(...screenPoints.map((p, index, arr) => ({\n\t\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t\tpoints: getManipulatorSelectionHookShape(arr, index),\n\t\t\t\t\tstrokeColor: strokeColorShadow,\n\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\topacity: shadowOpacity\n\t\t\t\t})))\n\t\t\t: // draw rectangle\n\t\t\t\tsegments.push({\n\t\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t\tpoints: screenPoints.map(p => vectorCreate(p.x + 1, p.y + 1)),\n\t\t\t\t\tpathClose: closeSelectionPath,\n\t\t\t\t\tstrokeColor: strokeColorShadow,\n\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\topacity: shadowOpacity\n\t\t\t\t});\n\t\t}\n\n\t\tisPolygon && shadowVisible && segments.push(...screenPoints.map(point => {\n\t\t\treturn {\n\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t...point,\n\t\t\t\trx: strokeWidth * 2,\n\t\t\t\try: strokeWidth * 2,\n\t\t\t\tbackgroundColor: strokeColorShadow,\n\t\t\t\topacity: shadowOpacity\n\t\t\t};\n\t\t}));\n\n\t\tif (shapeManipulatorRotationPoint && shadowVisible) {\n\t\t\t// add rotator line shadow\n\t\t\tsegments.push({\n\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\tpoints: [\n\t\t\t\t\tvectorCreate(shapeManipulatorRotationPoint.origin.x + 1, shapeManipulatorRotationPoint.origin.y + 1),\n\t\t\t\t\tvectorCreate(shapeManipulatorRotationPoint.position.x + 1, shapeManipulatorRotationPoint.position.y + 1)\n\t\t\t\t],\n\t\t\t\tstrokeColor: strokeColorShadow,\n\t\t\t\tstrokeWidth: 2,\n\t\t\t\topacity: shadowOpacity\n\t\t\t});\n\t\t}\n\n\t\t// lines\n\t\tif (canDrawLine && lineVisible) {\n\t\t\t// draw corner hooks\n\t\t\tisHookStyle\n\t\t\t? segments.push(...screenPoints.map((p, index, arr) => ({\n\t\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t\tpoints: getManipulatorSelectionHookShape(arr, index),\n\t\t\t\t\tstrokeColor,\n\t\t\t\t\tstrokeWidth,\n\t\t\t\t\topacity: lineOpacity\n\t\t\t\t})))\n\t\t\t: // draw rectangle\n\t\t\t\tsegments.push({\n\t\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t\tpoints: screenPoints,\n\t\t\t\t\tpathClose: closeSelectionPath,\n\t\t\t\t\tstrokeColor,\n\t\t\t\t\tstrokeWidth,\n\t\t\t\t\tbackgroundColor: isDraft && isPolygon && shape.backgroundColor && shape.backgroundColor[3] > 0\n\t\t\t\t\t? shape.backgroundColor\n\t\t\t\t\t: [0, 0, 0, 0],\n\t\t\t\t\topacity: lineOpacity\n\t\t\t\t});\n\t\t}\n\n\t\tisPolygon && segments.push(...screenPoints.map(point => {\n\t\t\treturn {\n\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\t...point,\n\t\t\t\trx: strokeWidth * 3,\n\t\t\t\try: strokeWidth * 3,\n\t\t\t\tbackgroundColor: [0.5, 0.5, 0.5],\n\t\t\t\tstrokeWidth,\n\t\t\t\tstrokeColor\n\t\t\t};\n\t\t}));\n\n\t\tisPolygon && isDraft && shapeActiveScreenPoints.length >= 3 && segments.push({\n\t\t\t...screenPointsFirst,\n\t\t\tid: ManipulatorShapeId,\n\t\t\trx: strokeWidth * (canClosePath ? 5 : 4),\n\t\t\try: strokeWidth * (canClosePath ? 5 : 4),\n\t\t\tbackgroundColor: canClosePath ? hoverColor : [0.5, 0.5, 0.5],\n\t\t\tstrokeWidth,\n\t\t\tstrokeColor\n\t\t});\n\n\t\tisPolygon && isDraft && hasStroke && !canClosePath && shapeActivePoints.length >= 2 && segments.push({\n\t\t\t...screenPointsLast,\n\t\t\tid: ManipulatorShapeId,\n\t\t\trx: strokeWidth * (canEndPath ? 5 : 4),\n\t\t\try: strokeWidth * (canEndPath ? 5 : 4),\n\t\t\tbackgroundColor: canEndPath ? hoverColor : [0.5, 0.5, 0.5],\n\t\t\tstrokeWidth,\n\t\t\tstrokeColor\n\t\t});\n\n\t\tif (shapeManipulatorRotationPoint && lineVisible && !isHookStyle) {\n\t\t\t// add rotator line\n\t\t\tsegments.push({\n\t\t\t\tid: ManipulatorShapeId,\n\t\t\t\tpoints: [\n\t\t\t\t\t{\n\t\t\t\t\t\tx: shapeManipulatorRotationPoint.origin.x,\n\t\t\t\t\t\ty: shapeManipulatorRotationPoint.origin.y\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tx: shapeManipulatorRotationPoint.position.x,\n\t\t\t\t\t\ty: shapeManipulatorRotationPoint.position.y\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\tstrokeColor,\n\t\t\t\tstrokeWidth,\n\t\t\t\topacity: lineOpacity\n\t\t\t});\n\t\t}\n\n\t\t// replace existing segments\n\t\tpushManipulatorShapes(...segments);\n\t};\n\n\t// snap pointer so we can show where initial point is going to be\n\tconst snapPointerPosition = (pointerPosition, disableSnapping) => {\n\t\tif (snapThreshold <= 0) return pointerPosition;\n\n\t\tif (disableSnapping) {\n\t\t\tclearInteractionSnapLines();\n\t\t\treturn pointerPosition;\n\t\t}\n\n\t\tconst imagePoint = mapEditorPointToImagePoint(pointerPosition);\n\t\tconst snapTargets = getSnapTargets();\n\t\tconst { snapTranslation, snapLines } = snapLinesToTargets(getShapeSnapLines(imagePoint), snapTargets, snapThreshold, gridSize, gridRect);\n\t\tsetInteractionSnapLines(snapLines);\n\t\tupdateWithSnapTranslation(pointerPosition, snapTranslation);\n\t\treturn pointerPosition;\n\t};\n\n\t// draw grid lines\n\tconst gridOpacity = spring(0);\n\n\tcomponent_subscribe($$self, gridOpacity, value => $$invalidate(178, $gridOpacity = value));\n\tconst GridShapeId = `markup-grid-line-${uid}`;\n\tconst popGridShapes = createShapeRemover(GridShapeId);\n\tconst pushGridShapes = createShapePusher(GridShapeId);\n\n\tconst redrawGridShapes = (cellSize, gridRect, strokeColor, opacity) => {\n\t\tconst editorPointA = mapImagePointToEditorPoint({ x: 0, y: 0 });\n\t\tconst editorPointB = mapImagePointToEditorPoint({ x: cellSize, y: cellSize });\n\t\tconst editorPointC = mapImagePointToEditorPoint({ x: gridRect.width, y: gridRect.height });\n\t\tconst projectedCellSize = editorPointB.x - editorPointA.x;\n\n\t\t// animate grid opacity\n\t\tgridOpacity.set(projectedCellSize > 6 ? 1 : 0);\n\n\t\t// no need tor ender\n\t\tif (opacity <= 0) return popGridShapes();\n\n\t\tconst linesVertical = getNumberSequence(projectedCellSize, editorPointA.x, editorPointC.x).map(line => ({\n\t\t\tid: GridShapeId,\n\t\t\topacity,\n\t\t\tpoints: [{ x: line, y: editorPointA.y }, { x: line, y: editorPointC.y }],\n\t\t\tstrokeWidth: 1,\n\t\t\tstrokeColor\n\t\t}));\n\n\t\tconst linesHorizontal = getNumberSequence(projectedCellSize, editorPointA.y, editorPointC.y).map(line => ({\n\t\t\tid: GridShapeId,\n\t\t\topacity,\n\t\t\tpoints: [{ x: editorPointA.x, y: line }, { x: editorPointC.x, y: line }],\n\t\t\tstrokeWidth: 1,\n\t\t\tstrokeColor\n\t\t}));\n\n\t\t// update UI\n\t\tpushGridShapes(...linesHorizontal, ...linesVertical);\n\t}; // ui.update((shapes) => [...filterGridLines(shapes), ...linesHorizontal, ...linesVertical]);\n\n\t//#region snap lines\n\tconst SnapShapeId = `markup-snap-line`;\n\n\tconst popSnapShapes = createShapeRemover(SnapShapeId);\n\tconst pushSnapShapes = createShapePusher(SnapShapeId);\n\n\tconst redrawSnapShapes = (linesX, linesY, strokeColor) => {\n\t\tif (linesX === null && linesY === null) {\n\t\t\treturn popSnapShapes();\n\t\t}\n\n\t\tlet xLine;\n\t\tlet yLine;\n\n\t\tif (linesX !== null) {\n\t\t\txLine = {\n\t\t\t\tid: SnapShapeId,\n\t\t\t\tstrokeColor,\n\t\t\t\tstrokeWidth: 1.5,\n\t\t\t\tpoints: [\n\t\t\t\t\tmapImagePointToEditorPoint({ x: linesX, y: 0 }),\n\t\t\t\t\tmapImagePointToEditorPoint({ x: linesX, y: parentRect.height })\n\t\t\t\t]\n\t\t\t};\n\t\t}\n\n\t\tif (linesY !== null) {\n\t\t\tyLine = {\n\t\t\t\tid: SnapShapeId,\n\t\t\t\tstrokeColor,\n\t\t\t\tstrokeWidth: 1.5,\n\t\t\t\tpoints: [\n\t\t\t\t\tmapImagePointToEditorPoint({ x: 0, y: linesY }),\n\t\t\t\t\tmapImagePointToEditorPoint({ x: parentRect.width, y: linesY })\n\t\t\t\t]\n\t\t\t};\n\t\t}\n\n\t\tpushSnapShapes(xLine, yLine);\n\t};\n\n\t//#endregion\n\tconst togglePrerender = isActive => {\n\t\tif (!isActive) return updateMarkupShapeItems({ _prerender: false });\n\t\tconst shape = $shapes.find(markupItem => markupItem.isEditing);\n\t\tif (!shape) return;\n\t\tupdateMarkupShape(shape, { _prerender: textInputMode === 'inline' });\n\t};\n\n\tconst handleManipulatorResizeGrab = e => {\n\t\t$$invalidate(141, isInteracting = true);\n\t\t$$invalidate(140, interactionShape = activeMarkup);\n\t\tinteractionShapeOriginComputed = activeMarkupComputed;\n\t};\n\n\tconst handleManipulatorResizeDrag = e => {\n\t\t// is possible when using multiple fingers (scale canvas + drag / resize)\n\t\tif (!interactionShape) {\n\t\t\t$$invalidate(141, isInteracting = false);\n\t\t\treturn;\n\t\t}\n\n\t\tconst { translation, indexes, shiftKey, ctrlKey, metaKey } = e.detail;\n\n\t\t// if control or cmd pressed, prevent snapping\n\t\tconst preventSnap = ctrlKey || metaKey;\n\n\t\tresizeShape(interactionShape, interactionShapeOriginComputed, indexes, translation, {\n\t\t\t// anchor to opposite point\n\t\t\tshiftKey,\n\t\t\t// snap\n\t\t\t...getSnapOptions(preventSnap ? 0 : snapThreshold, gridSize, gridRect, interactionShape)\n\t\t});\n\t};\n\n\tconst handleManipulatorResizeEnd = e => {\n\t\t// is possible when using multiple fingers (scale canvas + drag / resize)\n\t\tif (!interactionShape) {\n\t\t\t$$invalidate(141, isInteracting = false);\n\t\t\treturn;\n\t\t}\n\n\t\tselectShape(interactionShape);\n\t\tconst { isTap } = e.detail;\n\t\tif (isTap) ontapshape(interactionShape);\n\t\t$$invalidate(140, interactionShape = undefined);\n\t\t$$invalidate(141, isInteracting = false);\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleManipulatorRotateGrab = e => {\n\t\trotatorInitialPosition = getShapeRotationPoint(activeMarkupComputed).origin;\n\t\t$$invalidate(141, isInteracting = true);\n\t\t$$invalidate(140, interactionShape = activeMarkup);\n\t\tinteractionShapeOriginComputed = activeMarkupComputed;\n\t};\n\n\tconst handleManipulatorRotateDrag = e => {\n\t\t// is possible when using multiple fingers (scale canvas + drag / resize)\n\t\tif (!interactionShape) {\n\t\t\t$$invalidate(141, isInteracting = false);\n\t\t\treturn;\n\t\t}\n\n\t\tconst { translation, shiftKey } = e.detail;\n\t\trotateShape(interactionShape, interactionShapeOriginComputed, translation, { shiftKey });\n\t};\n\n\tconst handleManipulatorRotateEnd = () => {\n\t\t// is possible when using multiple fingers (scale canvas + drag / resize)\n\t\tif (!interactionShape) {\n\t\t\t$$invalidate(141, isInteracting = false);\n\t\t\treturn;\n\t\t}\n\n\t\tselectShape(interactionShape);\n\t\t$$invalidate(140, interactionShape = undefined);\n\t\t$$invalidate(141, isInteracting = false);\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleKeyPressedStore = () => {\n\t\tconst [keyCode] = $keysPressedStored;\n\n\t\t// is not backspace or delete\n\t\tif (keyCode !== 8 && keyCode !== 46) return;\n\n\t\t// only handle key input if a shape has been selected\n\t\tif (!hasActiveMarkupItem()) return;\n\n\t\t// dont remove if is editing\n\t\tif (activeMarkup.isEditing) return;\n\n\t\t// remove item\n\t\tsetTimeout(() => removeActiveMarkupItem(), 0);\n\t};\n\n\tconst handleKeyDown = e => {\n\t\t// get key type\n\t\tconst { key } = e;\n\n\t\tconst isEscape = (/escape/i).test(key);\n\n\t\t// only handle key input if a shape has been selected\n\t\tif (!hasActiveMarkupItem()) return;\n\n\t\t// if is escape deselect active item\n\t\tif (isEscape) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\treturn deselectMarkupItem(activeMarkup);\n\t\t}\n\n\t\t// if is duplicate active shape keyboard shortcut\n\t\tif (allowShapeDuplicate && key === 'd' && (e.metaKey || e.ctrlKey)) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tduplicateActiveMarkup();\n\t\t}\n\t};\n\n\t//\n\t// Text input\n\t//\n\tlet textInput;\n\n\tconst getTextShapeOriginSnapshot = () => ({ ...activeMarkup });\n\n\tconst getTextInputTextStyles = (shapeComputed, mode) => {\n\t\tconst { textAlign = 'left', fontFamily = 'sans-serif', fontWeight = 'normal', fontStyle = 'normal', letterSpacing = 'normal', textShadowX = 0, textShadowY = 0, textShadowBlur = 0, textShadowColor = undefined, textOutlineWidth = 0, textOutlineColor = undefined } = shapeComputed;\n\t\tconst imp = '!important';\n\n\t\tconst cosmetic = `caret-color:${caretColorRGBA};text-align:${textAlign}${imp};font-family:${fontFamily}${imp};font-weight:${fontWeight}${imp};font-style:${fontStyle}${imp};letter-spacing:${isNumber(letterSpacing)\n\t\t? letterSpacing + 'px'\n\t\t: 'normal'}${imp}`;\n\n\t\tif (mode === 'modal') return cosmetic;\n\n\t\tconst textOutline = textOutlineWidth\n\t\t? `;-webkit-text-stroke:${textOutlineWidth * 2}px ${colorArrayToRGBA(textOutlineColor)} ${imp}`\n\t\t: '';\n\n\t\tconst textShadow = textShadowBlur || textShadowX || textShadowY\n\t\t? `;text-shadow:${textShadowX}px ${textShadowY}px ${textShadowBlur}px ${colorArrayToRGBA(textShadowColor)} ${imp}`\n\t\t: '';\n\n\t\tlet fontSize = shapeComputed.fontSize;\n\n\t\t// this is to work around Firefox 1000px limit on font-size\n\t\tlet fontScalar = 1;\n\n\t\tlet fontScalarStyles = '';\n\n\t\tif (fontSize > 1000 && isFirefox()) {\n\t\t\tfontScalar = fontSize / 1000;\n\t\t\tfontScalarStyles = `transform-origin:0 0;transform:scale(${fontScalar})`;\n\t\t\tfontSize = 1000;\n\t\t}\n\n\t\tlet lineHeight = shapeComputed.lineHeight / fontScalar;\n\t\tconst color = colorArrayToRGBA(shapeComputed.color);\n\t\tconst initialLineOffset = Math.max(0, fontSize - lineHeight) * 0.5;\n\t\treturn `--font-scalar:${fontScalar};--bottom-inset:${initialLineOffset}px;padding:${initialLineOffset}px 0 0${imp};color:${color}${imp};font-size:${fontSize}px${imp};line-height:${lineHeight}px${imp};${cosmetic};${fontScalarStyles}${textOutline}${textShadow}`;\n\t};\n\n\tconst getTextInputPositionStyles = (shapeComputed, offset, contextZoom, contextRotation) => {\n\t\tlet center;\n\t\tlet size;\n\n\t\tif (shapeComputed.width && shapeComputed.height) {\n\t\t\t// text box\n\t\t\tcenter = rectCenter(shapeComputed);\n\n\t\t\tsize = sizeCreateFromAny(shapeComputed);\n\t\t} else {\n\t\t\t// text line\n\t\t\tsize = textToSize(activeMarkup.text, activeMarkupComputed);\n\n\t\t\t// if has fix width, we'll use that\n\t\t\tsize.width = activeMarkupComputed.width || size.width;\n\n\t\t\tcenter = vectorCreate(shapeComputed.x + size.width * 0.5, shapeComputed.y + size.height * 0.5);\n\t\t}\n\n\t\tconst lineHeight = Math.max(0, shapeComputed.fontSize - shapeComputed.lineHeight) + shapeComputed.lineHeight;\n\t\tconst position = mapImagePointToEditorPoint(center);\n\t\tlet tx = position.x - offset.x - size.width * 0.5;\n\t\tlet ty = position.y - offset.y - size.height * 0.5;\n\t\tlet flipX = shapeComputed.flipX;\n\t\tlet flipY = shapeComputed.flipY;\n\t\tlet r = shapeComputed.rotation;\n\n\t\tif (contextFlipX && contextFlipY) {\n\t\t\tflipX = !flipX;\n\t\t\tflipY = !flipY;\n\t\t} else if (contextFlipX) {\n\t\t\tflipX = !flipX;\n\t\t\tr = -r;\n\t\t} else if (contextFlipY) {\n\t\t\tflipY = !flipY;\n\t\t\tr = -r;\n\t\t}\n\n\t\tr += contextRotation;\n\t\tconst sx = contextZoom * (flipX ? -1 : 1);\n\t\tconst sy = contextZoom * (flipY ? -1 : 1);\n\t\treturn `--line-height:${lineHeight}px;width:${size.width}px;height:${size.height}px;transform:translate(${tx}px,${ty}px) rotate(${r}rad) scale(${sx}, ${sy})`;\n\t};\n\n\t// sets the contenteditable text when user clicks text shape\n\tconst syncTextInput = () => updateTextInputValue(textInputText);\n\n\tconst updateTextInputValue = text => {\n\t\t$$invalidate(8, textInput.innerHTML = textToHTML(text), textInput);\n\t};\n\n\t// cleans up single line text\n\tconst removeLineBreaks = text => {\n\t\tconst lines = text.// split on lines so we can create compressed normal line of text\n\t\tsplit(/[\\n\\r]/g);\n\n\t\tif (lines.length > 1) {\n\t\t\treturn lines.// remove spaces around lines\n\t\t\tmap(str => str.trim()).// remove empty strings\n\t\t\tfilter(str => str.length).// create new line\n\t\t\tjoin(' ');\n\t\t}\n\n\t\t// just return line\n\t\treturn lines[0];\n\t};\n\n\tconst getTextInputValue = element => {\n\t\tconst elementValue = element.value === undefined\n\t\t? element.innerHTML\n\t\t: element.value;\n\n\t\tconst elementValueClean = activeMarkup.format === 'text'\n\t\t? htmlToText(elementValue)\n\t\t: elementValue;\n\n\t\tconst value = shapeIsTextBlock(activeMarkup) && activeMarkup.disableNewline !== false\n\t\t? removeLineBreaks(elementValueClean)\n\t\t: elementValueClean;\n\n\t\treturn value;\n\t};\n\n\tconst formatContentEditable = html => {\n\t\t// check if can input\n\t\tconst canInput = shapeCanInput(activeMarkup, html);\n\n\t\treturn canInput === true ? html : canInput;\n\t};\n\n\tconst handleTextInput = () => {\n\t\tconst value = getTextInputValue(textInput);\n\t\tconst canInput = shapeCanInput(activeMarkup, value);\n\t\tconst text = canInput === true ? value : canInput;\n\t\tlet x = textShapeDisplayOrigin.x;\n\t\tlet y = textShapeDisplayOrigin.y;\n\n\t\t// if does not have height we need to adjust offset if is rotated\n\t\tif (!activeMarkup.height) {\n\t\t\t// draw origin rect\n\t\t\tconst originRotatedRect = rectRotate({ ...textRectDisplayOrigin }, activeMarkup.rotation);\n\n\t\t\t// draw current rect\n\t\t\tconst size = textToSize(text, activeMarkupComputed);\n\n\t\t\tconst currentRotatedRect = rectRotate({ x, y, ...size }, activeMarkup.rotation);\n\t\t\tconst [originTopLeft, ,originBottomRight] = originRotatedRect;\n\t\t\tconst [currentTopLeft, ,currentBottomRight] = currentRotatedRect;\n\t\t\tlet a = originTopLeft;\n\t\t\tlet b = currentTopLeft;\n\n\t\t\t// if flipped we need to 'extend' the text field in the opposite direction\n\t\t\tif (activeMarkup.flipX) {\n\t\t\t\ta = originBottomRight;\n\t\t\t\tb = currentBottomRight;\n\t\t\t}\n\n\t\t\t// move\n\t\t\tconst d = vectorSubtract(vectorClone(a), b);\n\n\t\t\tx += d.x;\n\t\t\ty += d.y;\n\t\t}\n\n\t\tupdateMarkupShape(activeMarkup, {\n\t\t\tx: isString(textShapeOrigin.x)\n\t\t\t? toPercentage(x, parentRect.width)\n\t\t\t: x,\n\t\t\ty: isString(textShapeOrigin.y)\n\t\t\t? toPercentage(y, parentRect.height)\n\t\t\t: y,\n\t\t\ttext\n\t\t});\n\t};\n\n\tconst handleTextInputAttempt = e => {\n\t\tconst { target, key } = e;\n\t\tconst currentValue = target.value || target.innerText;\n\t\tconst selectionStart = target.selectionStart || 0;\n\t\tconst selectionEnd = target.selectionEnd || currentValue.length;\n\t\tconst currentValueStart = currentValue.substring(0, selectionStart);\n\t\tconst currentValueEnd = currentValue.substring(selectionEnd);\n\t\tconst intendedValue = currentValueStart + key + currentValueEnd;\n\t\tconst filteredValue = shapeCanInput(activeMarkup, intendedValue);\n\t\tif (filteredValue !== intendedValue) return e.preventDefault();\n\t};\n\n\t// prevent moving shape when focusing text field, and close field if escape pressed\n\tconst handleTextInputKeyDown = e => {\n\t\t// block newlines for auto width text that doesn't allow newlines\n\t\tif (shapeIsTextBlock(activeMarkup) && (/enter/i).test(e.code) && activeMarkup.disableNewline !== false) return e.preventDefault();\n\n\t\tif ((/arrow/i).test(e.code)) return e.stopPropagation();\n\t\tif ((/escape/i).test(e.key)) return handleTextCancel();\n\t};\n\n\t// handle alt/ctrl/cmd + return\n\tconst handleTextInputKeyUp = e => {\n\t\t// get key type\n\t\tconst { key, ctrlKey, altKey } = e;\n\n\t\t// confirm multi line text elements\n\t\tif ((/enter/i).test(key) && (ctrlKey || altKey)) return handleTextConfirm();\n\t};\n\n\tconst handleTextConfirm = () => {\n\t\t// if was draft, now need to confirm\n\t\t// let wasDraft = activeShapeIsDraft;\n\t\tif (activeShapeIsDraft) confirmMarkupItemDraft();\n\n\t\t// final text input check\n\t\ttextInput && textInput.confirm && textInput.confirm();\n\n\t\thandleTextInput();\n\n\t\t// done\n\t\tfinishEditMarkupItem(activeMarkup);\n\n\t\t// if (wasDraft) onaddshape(activeMarkup);\n\t\t// else\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleTextCancel = () => {\n\t\tif (activeShapeIsDraft) {\n\t\t\tdiscardMarkupItemDraft();\n\t\t} else {\n\t\t\tupdateMarkupShape(activeMarkup, {\n\t\t\t\ttext: textShapeOrigin.text,\n\t\t\t\tx: textShapeOrigin.x,\n\t\t\t\ty: textShapeOrigin.y\n\t\t\t});\n\n\t\t\tfinishEditMarkupItem(activeMarkup);\n\t\t}\n\t};\n\n\t//#region shape popup menu actions\n\tconst getShapeSizeTranslation = (originRect, targetRect, { flipX, flipY, rotation }, anchor = 'top left') => {\n\t\tlet a, b;\n\n\t\t// draw origin rect\n\t\tconst [originTopLeft, originTopRight, originBottomRight, originBottomLeft] = rectRotate(originRect, rotation);\n\n\t\t// draw target rect\n\t\tconst [targetTopLeft, targetTopRight, targetBottomRight, targetBottomLeft] = rectRotate(targetRect, rotation);\n\n\t\tif (anchor === 'top center') {\n\t\t\t// for now doesn't matter if it's flipped horizontal\n\t\t\tconst originMid = vectorCenter(flipY\n\t\t\t? [originBottomLeft, originBottomRight]\n\t\t\t: [originTopLeft, originTopRight]);\n\n\t\t\tconst targetMid = vectorCenter(flipY\n\t\t\t? [targetBottomLeft, targetBottomRight]\n\t\t\t: [targetTopLeft, targetTopRight]);\n\n\t\t\ta = originMid;\n\t\t\tb = targetMid;\n\t\t} else if (anchor === 'top right' && !flipX || anchor === 'top left' && flipX) {\n\t\t\t// tr\n\t\t\ta = flipY ? originBottomRight : originTopRight;\n\n\t\t\tb = flipY ? targetBottomRight : targetTopRight;\n\t\t} else {\n\t\t\t// tl\n\t\t\ta = flipY ? originBottomLeft : originTopLeft;\n\n\t\t\tb = flipY ? targetBottomLeft : targetTopLeft;\n\t\t}\n\n\t\treturn vectorSubtract(vectorClone(a), b);\n\t};\n\n\tconst translateRelative = (current, position, translation) => vectorCreate(\n\t\tisString(current.x)\n\t\t? toPercentage(position.x + translation.x, parentRect.width)\n\t\t: position.x + translation.x,\n\t\tisString(current.y)\n\t\t? toPercentage(position.y + translation.y, parentRect.height)\n\t\t: position.y + translation.y\n\t);\n\n\tconst ShapeTextStateCache = {};\n\tconst handleEditTextActiveMarkup = () => editMarkupItem(activeMarkup);\n\n\tconst handleTextSwitchLayout = () => {\n\t\tconst shapeTextSize = sizeApply(textToSize(activeMarkup.text, activeMarkupComputed), v => Math.ceil(v));\n\t\tconst isFixedBox = hasProp(activeMarkup, 'height');\n\t\tconst isAutoHeightBox = !isFixedBox && hasProp(activeMarkup, 'width');\n\n\t\t// set/get cache entries for this text shape\n\t\tconst key = activeMarkup.id;\n\n\t\tlet cache = ShapeTextStateCache[key];\n\n\t\tif (!cache) {\n\t\t\tShapeTextStateCache[key] = {};\n\t\t\tcache = ShapeTextStateCache[key];\n\t\t}\n\n\t\tconst toAutoWidth = sizeFrom => {\n\t\t\t// remove width prop\n\t\t\tconst { width, ...autoSizeProps } = activeMarkupComputed;\n\n\t\t\tconst sizeTo = textToSize(activeMarkup.text, autoSizeProps);\n\n\t\t\t// this will change dimensions so if rotated we have to calculate new position\n\t\t\tconst translation = getShapeSizeTranslation(rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeFrom.width, sizeFrom.height), rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeTo.width, sizeTo.height), activeMarkupComputed, `top ${activeMarkup.textAlign}`);\n\n\t\t\tconst shouldRemoveTextAlign = activeMarkupComputed.disableNewline !== false;\n\n\t\t\t// switch to auto mode\n\t\t\tremoveMarkupShapeProps(activeMarkup, ['width', 'height', shouldRemoveTextAlign && 'textAlign']);\n\n\t\t\t// update position based on size translation\n\t\t\tupdateMarkupShape(activeMarkup, {\n\t\t\t\t...translateRelative(activeMarkup, activeMarkupComputed, translation)\n\t\t\t});\n\t\t};\n\n\t\tconst toAutoHeight = sizeFrom => {\n\t\t\t// -> switch to auto height mode\n\t\t\tconst sizeTo = sizeCreate(cache.width || activeMarkupComputed.width || shapeTextSize.width, shapeTextSize.height);\n\n\t\t\tconst textAlign = cache.textAlign || 'left';\n\n\t\t\t// this will change dimensions so if rotated we have to calculate new position\n\t\t\tconst translation = getShapeSizeTranslation(rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeFrom.width, sizeFrom.height), rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeTo.width, sizeTo.height), activeMarkupComputed, `top ${textAlign}`);\n\n\t\t\t// switch to auto-height mode\n\t\t\tremoveMarkupShapeProps(activeMarkup, ['height']);\n\n\t\t\t// update position based on size translation\n\t\t\tupdateMarkupShape(activeMarkup, {\n\t\t\t\t...translateRelative(activeMarkup, activeMarkupComputed, translation),\n\t\t\t\twidth: isString(activeMarkup.width)\n\t\t\t\t? toPercentage(sizeTo.width, parentRect.width)\n\t\t\t\t: sizeTo.width,\n\t\t\t\ttextAlign\n\t\t\t});\n\t\t};\n\n\t\tconst toFixedSize = sizeFrom => {\n\t\t\t// this can change dimensions so we need to recalculate position\n\t\t\tconst sizeTo = sizeCreate(cache.width || shapeTextSize.width, cache.height || shapeTextSize.height);\n\n\t\t\tconst textAlign = cache.textAlign || 'left';\n\n\t\t\t// this will change dimensions so if rotated we have to calculate new position\n\t\t\tconst translation = getShapeSizeTranslation(rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeFrom.width, sizeFrom.height), rectCreate(activeMarkupComputed.x, activeMarkupComputed.y, sizeTo.width, sizeTo.height), activeMarkupComputed, `top ${textAlign}`);\n\n\t\t\t// switch to fixed box, use stored alignment or default to left text align\n\t\t\tupdateMarkupShape(activeMarkup, {\n\t\t\t\t...translateRelative(activeMarkup, activeMarkupComputed, translation),\n\t\t\t\twidth: isString(activeMarkup.width)\n\t\t\t\t? toPercentage(sizeTo.width, parentRect.width)\n\t\t\t\t: sizeTo.width,\n\t\t\t\theight: isString(activeMarkup.width)\n\t\t\t\t? toPercentage(sizeTo.height, parentRect.height)\n\t\t\t\t: sizeTo.height,\n\t\t\t\ttextAlign\n\t\t\t});\n\t\t};\n\n\t\tif (isFixedBox) {\n\t\t\t// store size so we can restore it later\n\t\t\tcache.textAlign = activeMarkup.textAlign;\n\n\t\t\tcache.width = activeMarkupComputed.width;\n\t\t\tcache.height = activeMarkupComputed.height;\n\t\t\tconst sizeFrom = sizeCreate(activeMarkupComputed.width, activeMarkupComputed.height);\n\n\t\t\tif (shapeCanChangeTextLayout(activeMarkup, 'auto-height')) {\n\t\t\t\ttoAutoHeight(sizeFrom);\n\t\t\t} else if (shapeCanChangeTextLayout(activeMarkup, 'auto-width')) {\n\t\t\t\ttoAutoWidth(sizeFrom);\n\t\t\t}\n\t\t} else if (isAutoHeightBox) {\n\t\t\t// store alignment so we can restore it later\n\t\t\tcache.textAlign = activeMarkup.textAlign;\n\n\t\t\tcache.width = activeMarkupComputed.width;\n\n\t\t\t// -> switch to auto width\n\t\t\tconst sizeFrom = sizeCreate(activeMarkupComputed.width, shapeTextSize.height);\n\n\t\t\tif (shapeCanChangeTextLayout(activeMarkup, 'auto-width')) {\n\t\t\t\ttoAutoWidth(sizeFrom);\n\t\t\t} else if (shapeCanChangeTextLayout(activeMarkup, 'fixed-size')) {\n\t\t\t\ttoFixedSize(sizeFrom);\n\t\t\t}\n\t\t} else {\n\t\t\t// -> switch to fixed size or auto height\n\t\t\tcache.textAlign = activeMarkup.textAlign;\n\n\t\t\tconst sizeFrom = sizeCreate(Math.ceil(shapeTextSize.width), Math.ceil(shapeTextSize.height));\n\n\t\t\tif (shapeCanChangeTextLayout(activeMarkup, 'fixed-size')) {\n\t\t\t\ttoFixedSize(sizeFrom);\n\t\t\t} else if (shapeCanChangeTextLayout(activeMarkup, 'auto-height')) {\n\t\t\t\ttoAutoHeight(sizeFrom);\n\t\t\t}\n\t\t}\n\t};\n\n\tconst handleFlipX = e => {\n\t\te.stopPropagation();\n\t\tconst flipX = activeMarkup.flipX || false;\n\t\tupdateMarkupShapeProperty(activeMarkup, 'flipX', !flipX);\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleFlipY = e => {\n\t\te.stopPropagation();\n\t\tconst flipY = activeMarkup.flipY || false;\n\t\tupdateMarkupShapeProperty(activeMarkup, 'flipY', !flipY);\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleAdjustOpacity = value => {\n\t\tupdateMarkupShapeProperty(activeMarkup, 'opacity', value);\n\t};\n\n\tconst handleConfirmOpacity = value => {\n\t\thandleAdjustOpacity(value);\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleRemoveActiveMarkup = e => {\n\t\te.stopPropagation();\n\t\te.target.blur(); // cancels focus of remove button\n\t\tremoveActiveMarkupItem();\n\t};\n\n\tconst handleMoveToFrontActiveMarkup = e => {\n\t\te.stopPropagation();\n\n\t\t// test if is not already at top of stack, if so, exit\n\t\tconst index = $shapes.findIndex(shape => shape === activeMarkup);\n\n\t\tif (index === $shapes.length - 1) return;\n\n\t\t// add to last index\n\t\tshapes.set($shapes.filter(markupItem => markupItem !== activeMarkup).concat([activeMarkup]));\n\n\t\tonupdateshape(activeMarkup);\n\t};\n\n\tconst handleDuplicateActiveMarkup = e => {\n\t\te.stopPropagation();\n\t\tduplicateActiveMarkup();\n\t};\n\n\tconst duplicateActiveMarkup = () => {\n\t\t// create clone\n\t\tconst clone = shapeDeepCopy(activeMarkup);\n\n\t\tclone.id = getUniqueId();\n\t\tconst duplicationOffset = vectorCreate(50, -50);\n\n\t\t// offset\n\t\tif (hasProp(clone, 'points')) {\n\t\t\tconst computedProps = shapeGetPropsPixelValues(clone, ['points'], parentRect);\n\n\t\t\tcomputedProps.points.forEach(point => {\n\t\t\t\tpoint.x += duplicationOffset.x;\n\t\t\t\tpoint.y += duplicationOffset.y;\n\t\t\t});\n\n\t\t\tshapeUpdateProps(clone, computedProps, parentRect);\n\t\t} else if (shapeIsLine(clone)) {\n\t\t\tconst computedProps = shapeGetPropsPixelValues(clone, ['x1', 'y1', 'x2', 'y2'], parentRect);\n\t\t\tcomputedProps.x1 += duplicationOffset.x;\n\t\t\tcomputedProps.y1 += duplicationOffset.y;\n\t\t\tcomputedProps.x2 += duplicationOffset.x;\n\t\t\tcomputedProps.y2 += duplicationOffset.y;\n\t\t\tshapeUpdateProps(clone, computedProps, parentRect);\n\t\t} else {\n\t\t\tconst currentPosition = shapeGetPropsPixelValues(clone, ['x', 'y'], parentRect);\n\t\t\tcurrentPosition.x += 50;\n\t\t\tcurrentPosition.y -= 50;\n\t\t\tshapeUpdateProps(clone, currentPosition, parentRect);\n\t\t}\n\n\t\t// add clone\n\t\tshapes.set([...$shapes, clone]);\n\n\t\t// added\n\t\tonaddshape(clone);\n\n\t\t// select clone\n\t\tselectShape(clone);\n\t};\n\n\t//#endregion\n\tconst getMarkupControlsAnchorPosition = rect => vectorApply(vectorCreate(rect.x + rect.width * 0.5, rect.y), snapToPixel);\n\n\t//\n\t// show & position markup controls panel\n\t//\n\tconst markupControlsOpacity = spring(0, { stiffness: 0.2, damping: 0.7 });\n\n\tcomponent_subscribe($$self, markupControlsOpacity, value => $$invalidate(17, $markupControlsOpacity = value));\n\tlet shapeControlsSize;\n\n\tconst getShapeControlPositionOnCanvas = position => {\n\t\tconst left = utilRect.x;\n\t\tconst top = utilRect.y;\n\t\tconst right = left + utilRect.width;\n\t\tlet x = Math.max(position.x - shapeControlsSize.width * 0.5, left);\n\t\tlet y = Math.max(position.y - shapeControlsSize.height - shapeControlDist, top);\n\t\tif (x + shapeControlsSize.width > right) x = right - shapeControlsSize.width;\n\t\treturn vectorCreate(x, y);\n\t};\n\n\tconst TextLayoutChangeIcon = (locale, shape) => {\n\t\tconst { disableTextLayout = [] } = shape;\n\n\t\t// is fixed size\n\t\tif ('height' in shape) {\n\t\t\tif (disableTextLayout.includes('auto-height')) {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeIconButtonTextLayoutAutoWidth;\n\t\t\t} else {\n\t\t\t\t// next is auto-height\n\t\t\t\treturn locale.shapeIconButtonTextLayoutAutoHeight;\n\t\t\t}\n\t\t} else // is auto-height\n\t\tif ('width' in shape) {\n\t\t\tif (disableTextLayout.includes('auto-width')) {\n\t\t\t\t// next is fixed-size\n\t\t\t\treturn locale.shapeIconButtonTextLayoutFixedSize;\n\t\t\t} else {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeIconButtonTextLayoutAutoWidth;\n\t\t\t}\n\t\t} else // is auto-width\n\t\t{\n\t\t\t// next is fixed-size\n\t\t\tif (disableTextLayout.includes('fixed-size')) {\n\t\t\t\t// next is fixed-size\n\t\t\t\treturn locale.shapeIconButtonTextLayoutAutoHeight;\n\t\t\t} else {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeIconButtonTextLayoutFixedSize;\n\t\t\t}\n\t\t}\n\t};\n\n\tconst TextLayoutChangeLabel = (locale, shape) => {\n\t\tconst { disableTextLayout = [] } = shape;\n\n\t\t// is fixed size\n\t\tif ('height' in shape) {\n\t\t\tif (disableTextLayout.includes('auto-height')) {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutAutoWidth;\n\t\t\t} else {\n\t\t\t\t// next is auto-height\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutAutoHeight;\n\t\t\t}\n\t\t} else // is auto-height\n\t\tif ('width' in shape) {\n\t\t\tif (disableTextLayout.includes('auto-width')) {\n\t\t\t\t// next is fixed-size\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutFixedSize;\n\t\t\t} else {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutAutoWidth;\n\t\t\t}\n\t\t} else // is auto-width\n\t\t{\n\t\t\t// next is fixed-size\n\t\t\tif (disableTextLayout.includes('fixed-size')) {\n\t\t\t\t// next is fixed-size\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutAutoHeight;\n\t\t\t} else {\n\t\t\t\t// next is auto-width, no need to set as is empty\n\t\t\t\treturn locale.shapeTitleButtonTextLayoutFixedSize;\n\t\t\t}\n\t\t}\n\t};\n\n\tconst handleNudge = e => {\n\t\tconst shape = getActiveMarkupItem();\n\t\tif (!shape) return;\n\t\tif (shapeIsTextEditing(shape)) return;\n\t\tif (!shapeCanMove(shape)) return;\n\t\t$$invalidate(140, interactionShape = shape);\n\t\tinteractionShapeOriginComputed = shapeComputeDisplay(shapeDeepCopy(interactionShape), parentRect);\n\t\ttranslateShape(interactionShape, interactionShapeOriginComputed, e.detail);\n\t};\n\n\t// shape navigator\n\tlet showShapeList = false;\n\n\tconst handleFocusIn = e => {\n\t\t$$invalidate(18, showShapeList = true);\n\t};\n\n\tconst handleFocusOut = ({ relatedTarget }) => {\n\t\t// still in list\n\t\tif (relatedTarget && relatedTarget.classList.contains('shape-selector__button')) return;\n\n\t\t$$invalidate(18, showShapeList = false);\n\t};\n\n\t// change cursor style\n\tlet lastImagePosition = vectorCreateEmpty();\n\n\tlet pointerPositionInEditor = undefined;\n\n\tconst handlePointerMove = e => {\n\t\t// not handled for touch interaction\n\t\tif (e.pointerType === 'touch' || e.target.className !== 'PinturaShapeEditor') {\n\t\t\tonleavecanvas();\n\t\t\treturn;\n\t\t}\n\n\t\t// if interactionTimer is set an interaction was started\n\t\tif (isInteracting || interactionTimer) setHoverShape(undefined);\n\n\t\tconst editorPosition = getEventPositionInEditor(e, rootRect);\n\n\t\t// current position in editor\n\t\t$$invalidate(143, pointerPositionInEditor = vectorClone(editorPosition));\n\n\t\tconst imagePosition = vectorApply(mapEditorPointToImagePoint(editorPosition), v => Math.round(v));\n\t\tif (vectorEqual(imagePosition, lastImagePosition)) return;\n\t\tlastImagePosition = vectorClone(imagePosition);\n\t\tonhovercanvas(isInteracting, editorPosition, imagePosition);\n\t\tif (isInteracting || interactionTimer) return;\n\n\t\t// no hover effect when creating markup\n\t\tif (activeMarkupItemIsDraft) return;\n\n\t\tconst [shape] = getShapesNearPosition($shapes, imagePosition, 0, shapeCanSelect);\n\n\t\t// can't hover draft\n\t\tif (shape && shapeIsDraft(shape)) return;\n\n\t\tsetHoverShape(shape);\n\t};\n\n\tconst setHoverShape = shape => {\n\t\t// let others know we're hovering this shape\n\t\tonhovershape(shape);\n\n\t\t// update interface\n\t\t$$invalidate(142, hoverShape = shape);\n\t};\n\n\tconst handlePointerLeave = e => {\n\t\t// not handled for touch interaction\n\t\tif (e.pointerType === 'touch') return;\n\n\t\tonleavecanvas();\n\t};\n\n\t// clean up\n\tonDestroy(() => {\n\t\tpopSnapShapes();\n\t\tpopGridShapes();\n\t\tpopManipulatorShapes();\n\t\tpopHoverShapes();\n\t});\n\n\t// element ref\n\tlet element;\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tconst click_handler = index => selectShape(shapes[index]);\n\n\tfunction textarea_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\ttextInput = $$value;\n\t\t\t$$invalidate(8, textInput);\n\t\t});\n\t}\n\n\tfunction textarea_input_handler() {\n\t\ttextInputText = this.value;\n\t\t((((($$invalidate(23, textInputText), $$invalidate(11, shouldRenderTextInput)), $$invalidate(146, activeMarkup)), $$invalidate(164, isTextMarkupSelected)), $$invalidate(0, disabled)), $$invalidate(175, $shapes));\n\t}\n\n\tfunction contenteditable_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\ttextInput = $$value;\n\t\t\t$$invalidate(8, textInput);\n\t\t});\n\t}\n\n\tconst focusout_handler = () => {\n\t\t// need to focus root shape editor node as otherwise next escape press closes modal when in modal\n\t\telement && element.focus();\n\t};\n\n\tconst measure_handler_1 = e => $$invalidate(9, shapeControlsSize = e.detail);\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\telement = $$value;\n\t\t\t$$invalidate(19, element);\n\t\t});\n\t}\n\n\tconst interactable_function_1 = e => getEventPositionInEditor(e, rootRect);\n\n\t$$self.$$set = $$props => {\n\t\tif ('uid' in $$props) $$invalidate(57, uid = $$props.uid);\n\t\tif ('ui' in $$props) $$invalidate(58, ui = $$props.ui);\n\t\tif ('disabled' in $$props) $$invalidate(0, disabled = $$props.disabled);\n\t\tif ('shapes' in $$props) $$subscribe_shapes($$invalidate(1, shapes = $$props.shapes));\n\t\tif ('selection' in $$props) $$invalidate(59, selection = $$props.selection);\n\t\tif ('offset' in $$props) $$invalidate(2, offset = $$props.offset);\n\t\tif ('contextRotation' in $$props) $$invalidate(60, contextRotation = $$props.contextRotation);\n\t\tif ('contextFlipX' in $$props) $$invalidate(61, contextFlipX = $$props.contextFlipX);\n\t\tif ('contextFlipY' in $$props) $$invalidate(62, contextFlipY = $$props.contextFlipY);\n\t\tif ('contextZoom' in $$props) $$invalidate(63, contextZoom = $$props.contextZoom);\n\t\tif ('active' in $$props) $$invalidate(64, active = $$props.active);\n\t\tif ('opacity' in $$props) $$invalidate(65, opacity = $$props.opacity);\n\t\tif ('parentRect' in $$props) $$invalidate(66, parentRect = $$props.parentRect);\n\t\tif ('rootRect' in $$props) $$invalidate(3, rootRect = $$props.rootRect);\n\t\tif ('utilRect' in $$props) $$invalidate(67, utilRect = $$props.utilRect);\n\t\tif ('hoverColor' in $$props) $$invalidate(68, hoverColor = $$props.hoverColor);\n\t\tif ('caretColor' in $$props) $$invalidate(69, caretColor = $$props.caretColor);\n\t\tif ('gridColor' in $$props) $$invalidate(70, gridColor = $$props.gridColor);\n\t\tif ('snapColor' in $$props) $$invalidate(71, snapColor = $$props.snapColor);\n\t\tif ('textInputMode' in $$props) $$invalidate(4, textInputMode = $$props.textInputMode);\n\t\tif ('oninteractionstart' in $$props) $$invalidate(72, oninteractionstart = $$props.oninteractionstart);\n\t\tif ('oninteractionupdate' in $$props) $$invalidate(73, oninteractionupdate = $$props.oninteractionupdate);\n\t\tif ('oninteractionrelease' in $$props) $$invalidate(74, oninteractionrelease = $$props.oninteractionrelease);\n\t\tif ('oninteractionend' in $$props) $$invalidate(75, oninteractionend = $$props.oninteractionend);\n\t\tif ('oninteractioncancel' in $$props) $$invalidate(76, oninteractioncancel = $$props.oninteractioncancel);\n\t\tif ('onaddshape' in $$props) $$invalidate(77, onaddshape = $$props.onaddshape);\n\t\tif ('onupdateshape' in $$props) $$invalidate(78, onupdateshape = $$props.onupdateshape);\n\t\tif ('onselectshape' in $$props) $$invalidate(79, onselectshape = $$props.onselectshape);\n\t\tif ('onblurshape' in $$props) $$invalidate(80, onblurshape = $$props.onblurshape);\n\t\tif ('onremoveshape' in $$props) $$invalidate(81, onremoveshape = $$props.onremoveshape);\n\t\tif ('ontapshape' in $$props) $$invalidate(82, ontapshape = $$props.ontapshape);\n\t\tif ('onhovershape' in $$props) $$invalidate(83, onhovershape = $$props.onhovershape);\n\t\tif ('onhovercanvas' in $$props) $$invalidate(84, onhovercanvas = $$props.onhovercanvas);\n\t\tif ('ontapcanvas' in $$props) $$invalidate(85, ontapcanvas = $$props.ontapcanvas);\n\t\tif ('onleavecanvas' in $$props) $$invalidate(86, onleavecanvas = $$props.onleavecanvas);\n\t\tif ('beforeSelectShape' in $$props) $$invalidate(87, beforeSelectShape = $$props.beforeSelectShape);\n\t\tif ('beforeDeselectShape' in $$props) $$invalidate(88, beforeDeselectShape = $$props.beforeDeselectShape);\n\t\tif ('beforeRemoveShape' in $$props) $$invalidate(89, beforeRemoveShape = $$props.beforeRemoveShape);\n\t\tif ('beforeUpdateShape' in $$props) $$invalidate(90, beforeUpdateShape = $$props.beforeUpdateShape);\n\t\tif ('willRenderShapeControls' in $$props) $$invalidate(91, willRenderShapeControls = $$props.willRenderShapeControls);\n\t\tif ('willRenderShapeTextControls' in $$props) $$invalidate(92, willRenderShapeTextControls = $$props.willRenderShapeTextControls);\n\t\tif ('willStartInteraction' in $$props) $$invalidate(93, willStartInteraction = $$props.willStartInteraction);\n\t\tif ('mapEditorPointToImagePoint' in $$props) $$invalidate(94, mapEditorPointToImagePoint = $$props.mapEditorPointToImagePoint);\n\t\tif ('mapImagePointToEditorPoint' in $$props) $$invalidate(95, mapImagePointToEditorPoint = $$props.mapImagePointToEditorPoint);\n\t\tif ('eraseRadius' in $$props) $$invalidate(96, eraseRadius = $$props.eraseRadius);\n\t\tif ('selectRadius' in $$props) $$invalidate(97, selectRadius = $$props.selectRadius);\n\t\tif ('enableButtonFlipVertical' in $$props) $$invalidate(98, enableButtonFlipVertical = $$props.enableButtonFlipVertical);\n\t\tif ('enableTapToAddText' in $$props) $$invalidate(99, enableTapToAddText = $$props.enableTapToAddText);\n\t\tif ('enableTextStyleControls' in $$props) $$invalidate(5, enableTextStyleControls = $$props.enableTextStyleControls);\n\t\tif ('locale' in $$props) $$invalidate(6, locale = $$props.locale);\n\t\tif ('snapThreshold' in $$props) $$invalidate(100, snapThreshold = $$props.snapThreshold);\n\t\tif ('snapPointer' in $$props) $$invalidate(101, snapPointer = $$props.snapPointer);\n\t\tif ('enableSnapToContext' in $$props) $$invalidate(102, enableSnapToContext = $$props.enableSnapToContext);\n\t\tif ('gridSize' in $$props) $$invalidate(103, gridSize = $$props.gridSize);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[2] & /*parentRect*/ 16 | $$self.$$.dirty[3] & /*gridSize*/ 1024) {\n\t\t\t// redraw grid lines\n\t\t\t$$invalidate(166, gridRect = gridSize > 0 ? { x: 0, y: 0, ...parentRect } : undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*disabled*/ 1 | $$self.$$.dirty[5] & /*$shapes*/ 1048576) {\n\t\t\t$$invalidate(146, activeMarkup = !disabled && $shapes && (getMarkupItemDraft() || getActiveMarkupItem()));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(173, activeMarkupSelected = !!activeMarkup);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(160, activeShapeIsDraft = activeMarkup && shapeIsDraft(activeMarkup));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*activeShapeIsDraft*/ 32) {\n\t\t\t$$invalidate(10, activeShapeId = activeMarkup && !activeShapeIsDraft\n\t\t\t? activeMarkup.id\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*rootRect*/ 8 | $$self.$$.dirty[2] & /*parentRect*/ 16 | $$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t// rootRect is in there so it recomputes the shape when the editor is resized\n\t\t\t$$invalidate(13, activeMarkupComputed = rootRect && activeMarkup && shapeComputeDisplay(shapeDeepCopy(activeMarkup), parentRect));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*activeShapeIsDraft*/ 32) {\n\t\t\t$$invalidate(144, activeMarkupItemIsDraft = !!(activeMarkup && activeShapeIsDraft));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*activeMarkupComputed*/ 8192 | $$self.$$.dirty[2] & /*opacity*/ 8 | $$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t// $: shapeProps = activeMarkup || undefined;\n\t\t\t// TODO: we use opacity to trigger a redraw of the active points, this should be changed to the image zoom factor in a future release\n\t\t\t// && !shapeIsPath(activeMarkupComputed)\n\t\t\t$$invalidate(172, shapeActivePoints = activeMarkup && opacity && getMarkupShapePoints(activeMarkupComputed) || []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(174, allowResizeControls = activeMarkup && shapeCanResize(activeMarkup) && !shapeIsTextEditing(activeMarkup));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(14, allowRotateControls = activeMarkup && shapeCanRotate(activeMarkup) && !shapeIsTextEditing(activeMarkup));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*allowResizeControls*/ 524288) {\n\t\t\t$$invalidate(16, allowEdgeControls = allowResizeControls && hasProp(activeMarkup, 'text') && !activeMarkup.height\n\t\t\t? [[1, 2], [3, 0]]\n\t\t\t: activeMarkup && (shapeIsLine(activeMarkup) || shapeIsPath(activeMarkup))\n\t\t\t\t? false\n\t\t\t\t: allowResizeControls);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*allowEdgeControls*/ 65536 | $$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*allowResizeControls*/ 524288) {\n\t\t\t$$invalidate(28, allowCornerControls = activeMarkup\n\t\t\t? Array.isArray(allowEdgeControls)\n\t\t\t\t? false\n\t\t\t\t: allowResizeControls\n\t\t\t: false);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*shapeActivePoints*/ 131072) {\n\t\t\t$$invalidate(15, shouldRenderShapeManipulator = activeMarkup && shapeActivePoints.length > 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*mapImagePointToEditorPoint*/ 4 | $$self.$$.dirty[5] & /*shapeActivePoints*/ 131072) {\n\t\t\t$$invalidate(170, shapeActiveScreenPoints = shapeActivePoints.map(mapImagePointToEditorPoint));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*offset*/ 4 | $$self.$$.dirty[5] & /*shapeActiveScreenPoints*/ 32768) {\n\t\t\t$$invalidate(12, shapeManipulatorPoints = shapeActiveScreenPoints.map(point => vectorCreate(point.x - offset.x, point.y - offset.y)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*activeMarkupSelected*/ 262144) {\n\t\t\t$$invalidate(27, shapeAllowNewline = activeMarkupSelected && (shapeIsTextBox(activeMarkup)\n\t\t\t? // has selected text box, if text box has disableNewline property, follow setting, else allow new lines\n\t\t\t\thasProp(activeMarkup, 'disableNewline')\n\t\t\t\t? !activeMarkup.disableNewline\n\t\t\t\t: true\n\t\t\t: // has selected something else, only disable new lines if disableNewline is explicitly set to false\n\t\t\t\tactiveMarkup.disableNewline === false));\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*mapImagePointToEditorPoint*/ 4 | $$self.$$.dirty[4] & /*hoverShape*/ 262144) {\n\t\t\thoverShape && mapImagePointToEditorPoint && !shapeIsSelected(hoverShape) && shapeCanSelect(hoverShape)\n\t\t\t? redrawHoverShapes(hoverShape)\n\t\t\t: popHoverShapes();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderShapeManipulator, allowRotateControls, shapeManipulatorPoints, activeMarkupComputed*/ 61440 | $$self.$$.dirty[2] & /*opacity*/ 8) {\n\t\t\t// TODO: we use opacity to trigger a redraw of the active points,\n\t\t\t// this should be changed to the image zoom factor in a future release\n\t\t\t$$invalidate(171, shapeManipulatorRotationPoint = shouldRenderShapeManipulator && allowRotateControls && opacity && shapeManipulatorPoints && getShapeRotationPointOnScreen(activeMarkupComputed));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*offset*/ 4 | $$self.$$.dirty[5] & /*shapeManipulatorRotationPoint*/ 65536) {\n\t\t\t$$invalidate(26, shapeManipulatorRotationPointPosition = shapeManipulatorRotationPoint && vectorCreate(shapeManipulatorRotationPoint.position.x - offset.x, shapeManipulatorRotationPoint.position.y - offset.y));\n\t\t}\n\n\t\tif ($$self.$$.dirty[5] & /*$keysPressedStored*/ 4194304) {\n\t\t\t// hold cmd or control to disable snapping\n\t\t\t$$invalidate(165, disableSnapping = !!($keysPressedStored || []).find(keyCode => [91, 93, 17].includes(keyCode)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*snapPointer*/ 256 | $$self.$$.dirty[5] & /*disableSnapping*/ 1024) {\n\t\t\t$$invalidate(167, shouldSnapPointer = !(disableSnapping || !snapPointer));\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*opacity*/ 8 | $$self.$$.dirty[4] & /*activeMarkup, pointerPositionInEditor*/ 4718592 | $$self.$$.dirty[5] & /*shapeActiveScreenPoints, activeShapeIsDraft, shouldSnapPointer*/ 36896) {\n\t\t\t// add contextPresentationRect so we redraw active markup each frame\n\t\t\tif (activeMarkup && shapeActiveScreenPoints && opacity > 0) {\n\t\t\t\tredrawManipulatorShapes(opacity, activeMarkup, // use snapped pointer position when we're drawing path\n\t\t\t\tactiveShapeIsDraft && shapeIsPath(activeMarkup)\n\t\t\t\t? snapPointerPosition({ ...pointerPositionInEditor }, !shouldSnapPointer)\n\t\t\t\t: undefined);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\tif (!activeMarkup) {\n\t\t\t\tpopManipulatorShapes();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*hoverShape*/ 262144) {\n\t\t\t$$invalidate(168, isHoveringShape = !!hoverShape);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*interactionShape*/ 65536) {\n\t\t\t$$invalidate(169, isManagingShape = !!interactionShape);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*pointerPositionInEditor*/ 524288 | $$self.$$.dirty[5] & /*isManagingShape, isHoveringShape, shouldSnapPointer*/ 28672) {\n\t\t\tif (// when pointer is available / updated\n\t\t\tpointerPositionInEditor && // when we're not interacting\n\t\t\t!isManagingShape && // and not hovering shape\n\t\t\t!isHoveringShape) {\n\t\t\t\tsnapPointerPosition({ ...pointerPositionInEditor }, !shouldSnapPointer);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*gridColor*/ 256 | $$self.$$.dirty[3] & /*gridSize, mapImagePointToEditorPoint*/ 1028 | $$self.$$.dirty[5] & /*gridRect, $gridOpacity*/ 8390656) {\n\t\t\tif (gridSize > 0 && gridRect && mapImagePointToEditorPoint) {\n\t\t\t\tredrawGridShapes(gridSize, gridRect, gridColor, $gridOpacity);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*snapColor*/ 512 | $$self.$$.dirty[3] & /*mapImagePointToEditorPoint*/ 4 | $$self.$$.dirty[4] & /*interactionSnapLineX, interactionSnapLineY*/ 49152 | $$self.$$.dirty[5] & /*disableSnapping*/ 1024) {\n\t\t\tif (mapImagePointToEditorPoint) {\n\t\t\t\tif (disableSnapping) {\n\t\t\t\t\tpopSnapShapes();\n\t\t\t\t} else {\n\t\t\t\t\tredrawSnapShapes(interactionSnapLineX, interactionSnapLineY, snapColor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*active*/ 4) {\n\t\t\ttogglePrerender(active);\n\t\t}\n\n\t\tif ($$self.$$.dirty[5] & /*$keysPressedStored*/ 4194304) {\n\t\t\t//\n\t\t\t// Keyboard\n\t\t\t//\n\t\t\tif ($keysPressedStored && $keysPressedStored.length) handleKeyPressedStore();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*textInput, textInputMode*/ 272) {\n\t\t\t// auto focus text input when created and in inline mode\n\t\t\tif (textInput && textInputMode === 'inline') textInput.focus();\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(164, isTextMarkupSelected = activeMarkup && shapeIsText(activeMarkup));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304 | $$self.$$.dirty[5] & /*isTextMarkupSelected*/ 512) {\n\t\t\t$$invalidate(11, shouldRenderTextInput = isTextMarkupSelected && shapeCanInput(activeMarkup) !== false && shapeIsTextEditing(activeMarkup));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput*/ 2048) {\n\t\t\t$$invalidate(159, textShapeOrigin = shouldRenderTextInput\n\t\t\t? getTextShapeOriginSnapshot()\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*parentRect*/ 16 | $$self.$$.dirty[5] & /*textShapeOrigin*/ 16) {\n\t\t\t$$invalidate(161, textShapeDisplayOrigin = textShapeOrigin && shapeComputeDisplay({ ...textShapeOrigin }, parentRect));\n\t\t}\n\n\t\tif ($$self.$$.dirty[5] & /*textShapeDisplayOrigin*/ 64) {\n\t\t\t$$invalidate(163, textSizeDisplayOrigin = textShapeDisplayOrigin && textToSize(textShapeDisplayOrigin.text, textShapeDisplayOrigin));\n\t\t}\n\n\t\tif ($$self.$$.dirty[5] & /*textShapeDisplayOrigin, textSizeDisplayOrigin*/ 320) {\n\t\t\ttextRectDisplayOrigin = textShapeDisplayOrigin && rectCreate(textShapeDisplayOrigin.x, textShapeDisplayOrigin.y, textSizeDisplayOrigin.width, textSizeDisplayOrigin.height);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput*/ 2048 | $$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(23, textInputText = shouldRenderTextInput ? activeMarkup.text : '');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*rootRect, shouldRenderTextInput*/ 2056 | $$self.$$.dirty[2] & /*parentRect*/ 16 | $$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(162, activeTextShapeComputed = rootRect && activeMarkup && shouldRenderTextInput && shapeComputeDisplay(\n\t\t\t\t{\n\t\t\t\t\t...shapeDeepCopy(activeMarkup),\n\t\t\t\t\t// this is the same as how canvas floors shape width/height\n\t\t\t\t\twidth: isNumber(activeMarkup.width)\n\t\t\t\t\t? Math.floor(activeMarkup.width)\n\t\t\t\t\t: undefined,\n\t\t\t\t\theight: isNumber(activeMarkup.height)\n\t\t\t\t\t? Math.floor(activeMarkup.height)\n\t\t\t\t\t: undefined\n\t\t\t\t},\n\t\t\t\tparentRect\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput, textInputMode*/ 2064 | $$self.$$.dirty[5] & /*activeTextShapeComputed*/ 128) {\n\t\t\t$$invalidate(25, textInputTextStyles = shouldRenderTextInput && getTextInputTextStyles(activeTextShapeComputed, textInputMode));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput, offset*/ 2052 | $$self.$$.dirty[1] & /*contextRotation*/ 536870912 | $$self.$$.dirty[2] & /*contextZoom*/ 2 | $$self.$$.dirty[5] & /*activeTextShapeComputed*/ 128) {\n\t\t\t$$invalidate(24, textInputPositionStyles = shouldRenderTextInput && getTextInputPositionStyles(activeTextShapeComputed, offset, contextZoom, contextRotation));\n\t\t}\n\n\t\tif ($$self.$$.dirty[2] & /*caretColor*/ 128) {\n\t\t\tcaretColorRGBA = caretColor ? colorArrayToRGBA(caretColor) : 'auto';\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput, textInput, textInputMode*/ 2320) {\n\t\t\tif (shouldRenderTextInput && textInput && textInputMode === 'inline') syncTextInput();\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup, activeMarkupItemIsDraft, controlledMarkupItem*/ 72351744) {\n\t\t\t$$invalidate(150, controlledMarkupItem = activeMarkup && !activeMarkupItemIsDraft\n\t\t\t? activeMarkup\n\t\t\t: controlledMarkupItem);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(152, allowShapeFlip = controlledMarkupItem && shapeCanFlip(controlledMarkupItem));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(147, allowShapeChangeTextLayout = controlledMarkupItem && shapeCanChangeTextLayout(controlledMarkupItem));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(149, allowShapeDuplicate = controlledMarkupItem && shapeCanDuplicate(controlledMarkupItem));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(148, allowShapeRemove = controlledMarkupItem && shapeCanRemove(controlledMarkupItem));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(151, allowShapeReorder = controlledMarkupItem && shapeCanReorder(controlledMarkupItem));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(145, allowShapeInput = controlledMarkupItem && shapeCanInput(controlledMarkupItem) !== false);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*controlledMarkupItem*/ 67108864) {\n\t\t\t$$invalidate(153, allowShapeAdjustOpacity = controlledMarkupItem && hasProp(controlledMarkupItem, 'backgroundImage') && shapeCanStyle(controlledMarkupItem, 'opacity'));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup*/ 4194304) {\n\t\t\t$$invalidate(155, allowShapeStyleText = activeMarkup && activeMarkup.format === 'html');\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*activeMarkup, activeMarkupItemIsDraft*/ 5242880 | $$self.$$.dirty[5] & /*allowShapeStyleText*/ 1) {\n\t\t\t$$invalidate(158, shouldShowMarkupControls = activeMarkup && (!activeMarkupItemIsDraft || allowShapeStyleText));\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*isInteracting*/ 131072 | $$self.$$.dirty[5] & /*shouldShowMarkupControls, $isAnimated*/ 2097160) {\n\t\t\t// show controls if markup is active, but not in draft mode, except for when editing text\n\t\t\tmarkupControlsOpacity.set(shouldShowMarkupControls && !isInteracting ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shapeManipulatorPoints*/ 4096 | $$self.$$.dirty[5] & /*shouldShowMarkupControls, markupControlsAnchorPosition*/ 12) {\n\t\t\t$$invalidate(157, markupControlsAnchorPosition = shouldShowMarkupControls && shapeManipulatorPoints.length\n\t\t\t? getMarkupControlsAnchorPosition(rectCreateFromPoints(shapeManipulatorPoints))\n\t\t\t: markupControlsAnchorPosition);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shapeControlsSize*/ 512 | $$self.$$.dirty[2] & /*utilRect*/ 32 | $$self.$$.dirty[5] & /*markupControlsAnchorPosition*/ 4) {\n\t\t\t$$invalidate(156, shapeControlsPosition = markupControlsAnchorPosition && shapeControlsSize && utilRect && getShapeControlPositionOnCanvas(markupControlsAnchorPosition));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$markupControlsOpacity*/ 131072 | $$self.$$.dirty[5] & /*shapeControlsPosition*/ 2) {\n\t\t\t$$invalidate(22, markupControlsStyle = shapeControlsPosition && `transform: translate(${shapeControlsPosition.x}px, ${shapeControlsPosition.y}px);opacity:${$markupControlsOpacity}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shouldRenderTextInput*/ 2048) {\n\t\t\t$$invalidate(154, shapeControlsMode = shouldRenderTextInput ? 'text' : 'shape');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*activeShapeId, locale*/ 1088 | $$self.$$.dirty[2] & /*willRenderShapeTextControls, willRenderShapeControls*/ 1610612736 | $$self.$$.dirty[3] & /*enableButtonFlipVertical*/ 32 | $$self.$$.dirty[4] & /*shapeControlsMode, allowShapeAdjustOpacity, activeMarkup, allowShapeFlip, allowShapeReorder, controlledMarkupItem, allowShapeDuplicate, allowShapeRemove, allowShapeInput, allowShapeChangeTextLayout*/ 2145386496 | $$self.$$.dirty[5] & /*allowShapeStyleText, $shapes*/ 1048577) {\n\t\t\t$$invalidate(21, shapeControls = // render text controls\n\t\t\tshapeControlsMode === 'text' && willRenderShapeTextControls && allowShapeStyleText\n\t\t\t? runSafe(() => willRenderShapeTextControls(\n\t\t\t\t\t[\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t'text-styles',\n\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t...[\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'bold',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: 'B',\n\t\t\t\t\t\t\t\t\t\t\tstyle: 'font-weight:900;',\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Bold',\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['CMD', 'B']\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'italic',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: 'I',\n\t\t\t\t\t\t\t\t\t\t\tstyle: 'font-family:Times New Roman;font-style:italic;',\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Italic',\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['CMD', 'I']\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'underline',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: 'U',\n\t\t\t\t\t\t\t\t\t\t\tstyle: 'text-decoration:underline;',\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Underline',\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['CMD', 'U']\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'strikeThrough',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: 'S',\n\t\t\t\t\t\t\t\t\t\t\tstyle: 'text-decoration:line-through;',\n\t\t\t\t\t\t\t\t\t\t\ttitle: 'Strikethrough',\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['CMD', 'S']\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t].map(([style, props]) => {\n\t\t\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'style-' + style,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: () => document.execCommand(style),\n\t\t\t\t\t\t\t\t\t\t\t...props,\n\t\t\t\t\t\t\t\t\t\t\tstyle: 'font-size:1.25em;text-underline-offset:1px;text-decoration-thickness:1.5px;font-weight:400;' + props.style\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t],\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t'text-reset',\n\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t'style-reset',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tonclick: () => document.execCommand('removeFormat'),\n\t\t\t\t\t\t\t\t\t\tstyle: 'font-weight:400;',\n\t\t\t\t\t\t\t\t\t\tlabel: '<span style=\"font-size:1.25em;font-style:italic;font-family:Times New Roman;text-decoration:underline;\">T</span><span style=\"position:relative;top:.175rem;\">×</span>',\n\t\t\t\t\t\t\t\t\t\ttitle: 'Remove styles'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t]\n\t\t\t\t\t],\n\t\t\t\t\tactiveShapeId\n\t\t\t\t))\n\t\t\t: // render shape controls\n\t\t\t\tshapeControlsMode === 'shape' && willRenderShapeControls && activeShapeId\n\t\t\t\t? runSafe(() => willRenderShapeControls(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\tallowShapeAdjustOpacity && [\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'alpha',\n\t\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'ToggleSlider',\n\t\t\t\t\t\t\t\t\t\t'adjust-opacity',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonrelease: handleConfirmOpacity,\n\t\t\t\t\t\t\t\t\t\t\tonchange: handleAdjustOpacity,\n\t\t\t\t\t\t\t\t\t\t\tstep: 0.01,\n\t\t\t\t\t\t\t\t\t\t\tvalue: hasProp(activeMarkup, 'opacity')\n\t\t\t\t\t\t\t\t\t\t\t? activeMarkup.opacity\n\t\t\t\t\t\t\t\t\t\t\t: 1,\n\t\t\t\t\t\t\t\t\t\t\tlabel: (value, min, max) => `${Math.round(value / max * 100)}%`,\n\t\t\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\t\t\tmax: 1,\n\t\t\t\t\t\t\t\t\t\t\tdirection: 'x'\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'beta',\n\t\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\tallowShapeFlip && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'flip-horizontal',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleFlipX,\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeTitleButtonFlipHorizontal,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.shapeIconButtonFlipHorizontal,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tallowShapeFlip && enableButtonFlipVertical && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'flip-vertical',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleFlipY,\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeTitleButtonFlipVertical,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.shapeIconButtonFlipVertical,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tallowShapeReorder && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'to-front',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleMoveToFrontActiveMarkup,\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeTitleButtonMoveToFront,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.shapeIconButtonMoveToFront,\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true,\n\t\t\t\t\t\t\t\t\t\t\tdisabled: $shapes[$shapes.length - 1] === controlledMarkupItem\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tallowShapeDuplicate && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'duplicate',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleDuplicateActiveMarkup,\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeTitleButtonDuplicate,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.shapeIconButtonDuplicate,\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['CMD', 'D'],\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tallowShapeRemove && [\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'remove',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleRemoveActiveMarkup,\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeTitleButtonRemove,\n\t\t\t\t\t\t\t\t\t\t\ticon: locale.shapeIconButtonRemove,\n\t\t\t\t\t\t\t\t\t\t\tshortcut: ['Backspace'],\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t].filter(Boolean)\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tallowShapeInput && allowShapeChangeTextLayout && [\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'gamma',\n\t\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'text-layout',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleTextSwitchLayout,\n\t\t\t\t\t\t\t\t\t\t\tlabel: localize(TextLayoutChangeLabel, locale, activeMarkup),\n\t\t\t\t\t\t\t\t\t\t\ticon: localize(TextLayoutChangeIcon, locale, activeMarkup),\n\t\t\t\t\t\t\t\t\t\t\thideLabel: true\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tallowShapeInput && [\n\t\t\t\t\t\t\t\t'div',\n\t\t\t\t\t\t\t\t'delta',\n\t\t\t\t\t\t\t\t{ class: 'PinturaShapeControlsGroup' },\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t'Button',\n\t\t\t\t\t\t\t\t\t\t'edit-text',\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tlabel: locale.shapeLabelInputText,\n\t\t\t\t\t\t\t\t\t\t\tonclick: handleEditTextActiveMarkup\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t].filter(Boolean),\n\t\t\t\t\t\tactiveShapeId\n\t\t\t\t\t))\n\t\t\t\t: // fallback to empty array\n\t\t\t\t\t[]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale*/ 64 | $$self.$$.dirty[5] & /*$shapes*/ 1048576) {\n\t\t\t$$invalidate(20, shapeNavList = $shapes.filter(shapeCanSelect).filter(shape => shape.id).filter(shape => !shapeIsDraft(shape)).map(shape => ({\n\t\t\t\tid: shape.id,\n\t\t\t\tcolor: shapeIsText(shape)\n\t\t\t\t? shape.color\n\t\t\t\t: shapeIsLine(shape)\n\t\t\t\t\t? shape.strokeColor\n\t\t\t\t\t: shape.backgroundColor,\n\t\t\t\tname: shape.name || locale[`shapeLabelTool${capitalizeFirstLetter(shapeGetDescription(shape))}`]\n\t\t\t})));\n\t\t}\n\t};\n\n\treturn [\n\t\tdisabled,\n\t\tshapes,\n\t\toffset,\n\t\trootRect,\n\t\ttextInputMode,\n\t\tenableTextStyleControls,\n\t\tlocale,\n\t\tselectShape,\n\t\ttextInput,\n\t\tshapeControlsSize,\n\t\tactiveShapeId,\n\t\tshouldRenderTextInput,\n\t\tshapeManipulatorPoints,\n\t\tactiveMarkupComputed,\n\t\tallowRotateControls,\n\t\tshouldRenderShapeManipulator,\n\t\tallowEdgeControls,\n\t\t$markupControlsOpacity,\n\t\tshowShapeList,\n\t\telement,\n\t\tshapeNavList,\n\t\tshapeControls,\n\t\tmarkupControlsStyle,\n\t\ttextInputText,\n\t\ttextInputPositionStyles,\n\t\ttextInputTextStyles,\n\t\tshapeManipulatorRotationPointPosition,\n\t\tshapeAllowNewline,\n\t\tallowCornerControls,\n\t\tisAnimated,\n\t\tkeysPressedStored,\n\t\thandleInteractionStart,\n\t\thandleInteractionCancel,\n\t\thandleInteractionUpdate,\n\t\thandleInteractionRelease,\n\t\thandleInteractionEnd,\n\t\tgridOpacity,\n\t\thandleManipulatorResizeGrab,\n\t\thandleManipulatorResizeDrag,\n\t\thandleManipulatorResizeEnd,\n\t\thandleManipulatorRotateGrab,\n\t\thandleManipulatorRotateDrag,\n\t\thandleManipulatorRotateEnd,\n\t\thandleKeyDown,\n\t\tformatContentEditable,\n\t\thandleTextInput,\n\t\thandleTextInputAttempt,\n\t\thandleTextInputKeyDown,\n\t\thandleTextInputKeyUp,\n\t\thandleTextConfirm,\n\t\thandleTextCancel,\n\t\tmarkupControlsOpacity,\n\t\thandleNudge,\n\t\thandleFocusIn,\n\t\thandleFocusOut,\n\t\thandlePointerMove,\n\t\thandlePointerLeave,\n\t\tuid,\n\t\tui,\n\t\tselection,\n\t\tcontextRotation,\n\t\tcontextFlipX,\n\t\tcontextFlipY,\n\t\tcontextZoom,\n\t\tactive,\n\t\topacity,\n\t\tparentRect,\n\t\tutilRect,\n\t\thoverColor,\n\t\tcaretColor,\n\t\tgridColor,\n\t\tsnapColor,\n\t\toninteractionstart,\n\t\toninteractionupdate,\n\t\toninteractionrelease,\n\t\toninteractionend,\n\t\toninteractioncancel,\n\t\tonaddshape,\n\t\tonupdateshape,\n\t\tonselectshape,\n\t\tonblurshape,\n\t\tonremoveshape,\n\t\tontapshape,\n\t\tonhovershape,\n\t\tonhovercanvas,\n\t\tontapcanvas,\n\t\tonleavecanvas,\n\t\tbeforeSelectShape,\n\t\tbeforeDeselectShape,\n\t\tbeforeRemoveShape,\n\t\tbeforeUpdateShape,\n\t\twillRenderShapeControls,\n\t\twillRenderShapeTextControls,\n\t\twillStartInteraction,\n\t\tmapEditorPointToImagePoint,\n\t\tmapImagePointToEditorPoint,\n\t\teraseRadius,\n\t\tselectRadius,\n\t\tenableButtonFlipVertical,\n\t\tenableTapToAddText,\n\t\tsnapThreshold,\n\t\tsnapPointer,\n\t\tenableSnapToContext,\n\t\tgridSize,\n\t\tsyncShapeCollection,\n\t\tgetShapeDraft,\n\t\taddShapeDraft,\n\t\tdiscardShapeDraft,\n\t\tconfirmShapeDraft,\n\t\tupdateShapeDraft,\n\t\taddShape,\n\t\tcreateShape,\n\t\teraseShape,\n\t\tgetMarkupItemDraft,\n\t\tgetMarkupItemDraftIndex,\n\t\taddMarkupItemDraft,\n\t\tconfirmMarkupItemDraft,\n\t\tdiscardMarkupItemDraft,\n\t\tcreateMarkupItem,\n\t\tsyncShapes,\n\t\tremoveMarkupShapeProps,\n\t\tupdateMarkupShape,\n\t\tupdateMarkupShapeProperty,\n\t\tupdateMarkupItemsShapeProperty,\n\t\tupdateMarkupShapeItems,\n\t\tgetActiveMarkupItem,\n\t\thasActiveMarkupItem,\n\t\tremoveShape,\n\t\tremoveActiveMarkupItem,\n\t\tblurShapes,\n\t\tdeselectMarkupItem,\n\t\teditMarkupItem,\n\t\tfinishEditMarkupItem,\n\t\tremoveMarkupItems,\n\t\tgetTextShapeRect,\n\t\tgetMarkupShapeRect,\n\t\tgetShapesNearPosition,\n\t\tgetShapesBetweenPoints,\n\t\tinteractionSnapLineX,\n\t\tinteractionSnapLineY,\n\t\tinteractionShape,\n\t\tisInteracting,\n\t\thoverShape,\n\t\tpointerPositionInEditor,\n\t\tactiveMarkupItemIsDraft,\n\t\tallowShapeInput,\n\t\tactiveMarkup,\n\t\tallowShapeChangeTextLayout,\n\t\tallowShapeRemove,\n\t\tallowShapeDuplicate,\n\t\tcontrolledMarkupItem,\n\t\tallowShapeReorder,\n\t\tallowShapeFlip,\n\t\tallowShapeAdjustOpacity,\n\t\tshapeControlsMode,\n\t\tallowShapeStyleText,\n\t\tshapeControlsPosition,\n\t\tmarkupControlsAnchorPosition,\n\t\tshouldShowMarkupControls,\n\t\ttextShapeOrigin,\n\t\tactiveShapeIsDraft,\n\t\ttextShapeDisplayOrigin,\n\t\tactiveTextShapeComputed,\n\t\ttextSizeDisplayOrigin,\n\t\tisTextMarkupSelected,\n\t\tdisableSnapping,\n\t\tgridRect,\n\t\tshouldSnapPointer,\n\t\tisHoveringShape,\n\t\tisManagingShape,\n\t\tshapeActiveScreenPoints,\n\t\tshapeManipulatorRotationPoint,\n\t\tshapeActivePoints,\n\t\tactiveMarkupSelected,\n\t\tallowResizeControls,\n\t\t$shapes,\n\t\t$isAnimated,\n\t\t$keysPressedStored,\n\t\t$gridOpacity,\n\t\tmeasure_handler,\n\t\tclick_handler,\n\t\ttextarea_binding,\n\t\ttextarea_input_handler,\n\t\tcontenteditable_binding,\n\t\tfocusout_handler,\n\t\tmeasure_handler_1,\n\t\tdiv_binding,\n\t\tinteractable_function_1\n\t];\n}\n\nclass ShapeLayoutEditor extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$f,\n\t\t\tcreate_fragment$f,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tuid: 57,\n\t\t\t\tui: 58,\n\t\t\t\tdisabled: 0,\n\t\t\t\tshapes: 1,\n\t\t\t\tselection: 59,\n\t\t\t\toffset: 2,\n\t\t\t\tcontextRotation: 60,\n\t\t\t\tcontextFlipX: 61,\n\t\t\t\tcontextFlipY: 62,\n\t\t\t\tcontextZoom: 63,\n\t\t\t\tactive: 64,\n\t\t\t\topacity: 65,\n\t\t\t\tparentRect: 66,\n\t\t\t\trootRect: 3,\n\t\t\t\tutilRect: 67,\n\t\t\t\thoverColor: 68,\n\t\t\t\tcaretColor: 69,\n\t\t\t\tgridColor: 70,\n\t\t\t\tsnapColor: 71,\n\t\t\t\ttextInputMode: 4,\n\t\t\t\toninteractionstart: 72,\n\t\t\t\toninteractionupdate: 73,\n\t\t\t\toninteractionrelease: 74,\n\t\t\t\toninteractionend: 75,\n\t\t\t\toninteractioncancel: 76,\n\t\t\t\tonaddshape: 77,\n\t\t\t\tonupdateshape: 78,\n\t\t\t\tonselectshape: 79,\n\t\t\t\tonblurshape: 80,\n\t\t\t\tonremoveshape: 81,\n\t\t\t\tontapshape: 82,\n\t\t\t\tonhovershape: 83,\n\t\t\t\tonhovercanvas: 84,\n\t\t\t\tontapcanvas: 85,\n\t\t\t\tonleavecanvas: 86,\n\t\t\t\tbeforeSelectShape: 87,\n\t\t\t\tbeforeDeselectShape: 88,\n\t\t\t\tbeforeRemoveShape: 89,\n\t\t\t\tbeforeUpdateShape: 90,\n\t\t\t\twillRenderShapeControls: 91,\n\t\t\t\twillRenderShapeTextControls: 92,\n\t\t\t\twillStartInteraction: 93,\n\t\t\t\tmapEditorPointToImagePoint: 94,\n\t\t\t\tmapImagePointToEditorPoint: 95,\n\t\t\t\teraseRadius: 96,\n\t\t\t\tselectRadius: 97,\n\t\t\t\tenableButtonFlipVertical: 98,\n\t\t\t\tenableTapToAddText: 99,\n\t\t\t\tenableTextStyleControls: 5,\n\t\t\t\tlocale: 6,\n\t\t\t\tsnapThreshold: 100,\n\t\t\t\tsnapPointer: 101,\n\t\t\t\tenableSnapToContext: 102,\n\t\t\t\tgridSize: 103,\n\t\t\t\tsyncShapeCollection: 104,\n\t\t\t\tgetShapeDraft: 105,\n\t\t\t\taddShapeDraft: 106,\n\t\t\t\tdiscardShapeDraft: 107,\n\t\t\t\tconfirmShapeDraft: 108,\n\t\t\t\tupdateShapeDraft: 109,\n\t\t\t\taddShape: 110,\n\t\t\t\tcreateShape: 111,\n\t\t\t\teraseShape: 112,\n\t\t\t\tgetMarkupItemDraft: 113,\n\t\t\t\tgetMarkupItemDraftIndex: 114,\n\t\t\t\taddMarkupItemDraft: 115,\n\t\t\t\tconfirmMarkupItemDraft: 116,\n\t\t\t\tdiscardMarkupItemDraft: 117,\n\t\t\t\tcreateMarkupItem: 118,\n\t\t\t\tsyncShapes: 119,\n\t\t\t\tremoveMarkupShapeProps: 120,\n\t\t\t\tupdateMarkupShape: 121,\n\t\t\t\tupdateMarkupShapeProperty: 122,\n\t\t\t\tupdateMarkupItemsShapeProperty: 123,\n\t\t\t\tupdateMarkupShapeItems: 124,\n\t\t\t\tgetActiveMarkupItem: 125,\n\t\t\t\thasActiveMarkupItem: 126,\n\t\t\t\tremoveShape: 127,\n\t\t\t\tremoveActiveMarkupItem: 128,\n\t\t\t\tblurShapes: 129,\n\t\t\t\tselectShape: 7,\n\t\t\t\tdeselectMarkupItem: 130,\n\t\t\t\teditMarkupItem: 131,\n\t\t\t\tfinishEditMarkupItem: 132,\n\t\t\t\tremoveMarkupItems: 133,\n\t\t\t\tgetTextShapeRect: 134,\n\t\t\t\tgetMarkupShapeRect: 135,\n\t\t\t\tgetShapesNearPosition: 136,\n\t\t\t\tgetShapesBetweenPoints: 137\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget syncShapeCollection() {\n\t\treturn this.$$.ctx[104];\n\t}\n\n\tget getShapeDraft() {\n\t\treturn this.$$.ctx[105];\n\t}\n\n\tget addShapeDraft() {\n\t\treturn this.$$.ctx[106];\n\t}\n\n\tget discardShapeDraft() {\n\t\treturn this.$$.ctx[107];\n\t}\n\n\tget confirmShapeDraft() {\n\t\treturn this.$$.ctx[108];\n\t}\n\n\tget updateShapeDraft() {\n\t\treturn this.$$.ctx[109];\n\t}\n\n\tget addShape() {\n\t\treturn this.$$.ctx[110];\n\t}\n\n\tget createShape() {\n\t\treturn this.$$.ctx[111];\n\t}\n\n\tget eraseShape() {\n\t\treturn this.$$.ctx[112];\n\t}\n\n\tget getMarkupItemDraft() {\n\t\treturn this.$$.ctx[113];\n\t}\n\n\tget getMarkupItemDraftIndex() {\n\t\treturn this.$$.ctx[114];\n\t}\n\n\tget addMarkupItemDraft() {\n\t\treturn this.$$.ctx[115];\n\t}\n\n\tget confirmMarkupItemDraft() {\n\t\treturn this.$$.ctx[116];\n\t}\n\n\tget discardMarkupItemDraft() {\n\t\treturn this.$$.ctx[117];\n\t}\n\n\tget createMarkupItem() {\n\t\treturn this.$$.ctx[118];\n\t}\n\n\tget syncShapes() {\n\t\treturn this.$$.ctx[119];\n\t}\n\n\tget removeMarkupShapeProps() {\n\t\treturn this.$$.ctx[120];\n\t}\n\n\tget updateMarkupShape() {\n\t\treturn this.$$.ctx[121];\n\t}\n\n\tget updateMarkupShapeProperty() {\n\t\treturn this.$$.ctx[122];\n\t}\n\n\tget updateMarkupItemsShapeProperty() {\n\t\treturn this.$$.ctx[123];\n\t}\n\n\tget updateMarkupShapeItems() {\n\t\treturn this.$$.ctx[124];\n\t}\n\n\tget getActiveMarkupItem() {\n\t\treturn this.$$.ctx[125];\n\t}\n\n\tget hasActiveMarkupItem() {\n\t\treturn this.$$.ctx[126];\n\t}\n\n\tget removeShape() {\n\t\treturn this.$$.ctx[127];\n\t}\n\n\tget removeActiveMarkupItem() {\n\t\treturn this.$$.ctx[128];\n\t}\n\n\tget blurShapes() {\n\t\treturn this.$$.ctx[129];\n\t}\n\n\tget selectShape() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tget deselectMarkupItem() {\n\t\treturn this.$$.ctx[130];\n\t}\n\n\tget editMarkupItem() {\n\t\treturn this.$$.ctx[131];\n\t}\n\n\tget finishEditMarkupItem() {\n\t\treturn this.$$.ctx[132];\n\t}\n\n\tget removeMarkupItems() {\n\t\treturn this.$$.ctx[133];\n\t}\n\n\tget getTextShapeRect() {\n\t\treturn this.$$.ctx[134];\n\t}\n\n\tget getMarkupShapeRect() {\n\t\treturn this.$$.ctx[135];\n\t}\n\n\tget getShapesNearPosition() {\n\t\treturn this.$$.ctx[136];\n\t}\n\n\tget getShapesBetweenPoints() {\n\t\treturn this.$$.ctx[137];\n\t}\n}\n\n/* src/core/ui/components/ShapeStyleControls.svelte generated by Svelte v3.52.0 */\n\nfunction create_else_block$2(ctx) {\n\tlet ul;\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*mappedControls*/ ctx[2] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tul = element(\"ul\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(ul, \"class\", \"PinturaShapeStyleList\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, ul, anchor);\n\t\t\tmount_component(dynamiccomponenttree, ul, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*mappedControls*/ 4) dynamiccomponenttree_changes.items = /*mappedControls*/ ctx[2];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(ul);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t}\n\t};\n}\n\n// (46:4) {#if scrollEnable}\nfunction create_if_block$3(ctx) {\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaShapeStyles\",\n\t\t\t\telasticity: /*scrollElasticity*/ ctx[0],\n\t\t\t\t$$slots: { default: [create_default_slot$6] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(scrollable, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty & /*scrollElasticity*/ 1) scrollable_changes.elasticity = /*scrollElasticity*/ ctx[0];\n\n\t\t\tif (dirty & /*$$scope, mappedControls*/ 131076) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(scrollable, detaching);\n\t\t}\n\t};\n}\n\n// (47:8) <Scrollable class=\"PinturaShapeStyles\" elasticity={scrollElasticity}>\nfunction create_default_slot$6(ctx) {\n\tlet ul;\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*mappedControls*/ ctx[2] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tul = element(\"ul\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tattr(ul, \"class\", \"PinturaShapeStyleList\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, ul, anchor);\n\t\t\tmount_component(dynamiccomponenttree, ul, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*mappedControls*/ 4) dynamiccomponenttree_changes.items = /*mappedControls*/ ctx[2];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(ul);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t}\n\t};\n}\n\nfunction create_fragment$e(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet current;\n\tconst if_block_creators = [create_if_block$3, create_else_block$2];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*scrollEnable*/ ctx[1]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif_block.c();\n\t\t\tattr(div, \"style\", /*style*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(div, null);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*style*/ 8) {\n\t\t\t\tattr(div, \"style\", /*style*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif_blocks[current_block_type_index].d();\n\t\t}\n\t};\n}\n\nfunction instance$e($$self, $$props, $$invalidate) {\n\tlet style;\n\tlet mappedControls;\n\tlet $env;\n\tlet $redrawTrigger;\n\tlet $opacity;\n\tlet $isAnimated;\n\tlet { isActive = false } = $$props;\n\tlet { controls = [] } = $$props;\n\tlet { locale } = $$props;\n\tlet { scrollElasticity } = $$props;\n\tlet { scrollEnable = true } = $$props;\n\tlet { hideTitles = false } = $$props;\n\tlet { willRenderControls = passthrough } = $$props;\n\n\t// context\n\tconst redrawTrigger = getContext('redrawTrigger');\n\n\tcomponent_subscribe($$self, redrawTrigger, value => $$invalidate(14, $redrawTrigger = value));\n\tconst env = getContext('env');\n\tcomponent_subscribe($$self, env, value => $$invalidate(13, $env = value));\n\tconst isAnimated = getContext('isAnimated');\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(16, $isAnimated = value));\n\tconst opacity = spring(0, { stiffness: 0.25, damping: 0.9 });\n\tcomponent_subscribe($$self, opacity, value => $$invalidate(15, $opacity = value));\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(8, isActive = $$props.isActive);\n\t\tif ('controls' in $$props) $$invalidate(9, controls = $$props.controls);\n\t\tif ('locale' in $$props) $$invalidate(10, locale = $$props.locale);\n\t\tif ('scrollElasticity' in $$props) $$invalidate(0, scrollElasticity = $$props.scrollElasticity);\n\t\tif ('scrollEnable' in $$props) $$invalidate(1, scrollEnable = $$props.scrollEnable);\n\t\tif ('hideTitles' in $$props) $$invalidate(11, hideTitles = $$props.hideTitles);\n\t\tif ('willRenderControls' in $$props) $$invalidate(12, willRenderControls = $$props.willRenderControls);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*isActive, $isAnimated*/ 65792) {\n\t\t\topacity.set(isActive ? 1 : 0, { hard: $isAnimated === false });\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$opacity, isActive*/ 33024) {\n\t\t\t$$invalidate(3, style = `opacity:${$opacity};${!isActive ? 'pointer-events:none;' : ''}${$opacity <= 0 ? 'visibility:hidden' : ''}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$redrawTrigger, willRenderControls, controls, locale, hideTitles, $env*/ 32256) {\n\t\t\t$$invalidate(2, mappedControls = $redrawTrigger && willRenderControls(\n\t\t\t\tcontrols.map(control => [\n\t\t\t\t\t'ShapeStyle',\n\t\t\t\t\tcontrol.id,\n\t\t\t\t\t{\n\t\t\t\t\t\ttitle: control.componentProps.title,\n\t\t\t\t\t\tlocale,\n\t\t\t\t\t\thideTitle: hideTitles,\n\t\t\t\t\t\titems: [[control.component, control.id, control.componentProps]]\n\t\t\t\t\t}\n\t\t\t\t]),\n\t\t\t\t$env,\n\t\t\t\t() => redrawTrigger.set({})\n\t\t\t));\n\t\t}\n\t};\n\n\treturn [\n\t\tscrollElasticity,\n\t\tscrollEnable,\n\t\tmappedControls,\n\t\tstyle,\n\t\tredrawTrigger,\n\t\tenv,\n\t\tisAnimated,\n\t\topacity,\n\t\tisActive,\n\t\tcontrols,\n\t\tlocale,\n\t\thideTitles,\n\t\twillRenderControls,\n\t\t$env,\n\t\t$redrawTrigger,\n\t\t$opacity,\n\t\t$isAnimated\n\t];\n}\n\nclass ShapeStyleControls extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$e, create_fragment$e, safe_not_equal, {\n\t\t\tisActive: 8,\n\t\t\tcontrols: 9,\n\t\t\tlocale: 10,\n\t\t\tscrollElasticity: 0,\n\t\t\tscrollEnable: 1,\n\t\t\thideTitles: 11,\n\t\t\twillRenderControls: 12\n\t\t});\n\t}\n}\n\n/* src/core/ui/components/ShapeStyleEditor.svelte generated by Svelte v3.52.0 */\n\nfunction get_each_context(ctx, list, i) {\n\tconst child_ctx = ctx.slice();\n\tchild_ctx[15] = list[i].key;\n\tchild_ctx[6] = list[i].controls;\n\tchild_ctx[16] = list[i].isActive;\n\treturn child_ctx;\n}\n\n// (175:4) {#each currentStyleControlSets as { key, controls, isActive }\nfunction create_each_block(key_1, ctx) {\n\tlet first;\n\tlet shapestylecontrols;\n\tlet current;\n\n\tshapestylecontrols = new ShapeStyleControls({\n\t\t\tprops: {\n\t\t\t\tisActive: /*isActive*/ ctx[16],\n\t\t\t\tcontrols: /*controls*/ ctx[6],\n\t\t\t\tlocale: /*locale*/ ctx[1],\n\t\t\t\tscrollElasticity: /*scrollElasticity*/ ctx[2],\n\t\t\t\tscrollEnable: /*scrollEnable*/ ctx[3],\n\t\t\t\thideTitles: /*hideTitles*/ ctx[4],\n\t\t\t\twillRenderControls: /*willRenderControls*/ ctx[5]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tkey: key_1,\n\t\tfirst: null,\n\t\tc() {\n\t\t\tfirst = empty();\n\t\t\tcreate_component(shapestylecontrols.$$.fragment);\n\t\t\tthis.first = first;\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, first, anchor);\n\t\t\tmount_component(shapestylecontrols, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\t\t\tconst shapestylecontrols_changes = {};\n\t\t\tif (dirty & /*currentStyleControlSets*/ 128) shapestylecontrols_changes.isActive = /*isActive*/ ctx[16];\n\t\t\tif (dirty & /*currentStyleControlSets*/ 128) shapestylecontrols_changes.controls = /*controls*/ ctx[6];\n\t\t\tif (dirty & /*locale*/ 2) shapestylecontrols_changes.locale = /*locale*/ ctx[1];\n\t\t\tif (dirty & /*scrollElasticity*/ 4) shapestylecontrols_changes.scrollElasticity = /*scrollElasticity*/ ctx[2];\n\t\t\tif (dirty & /*scrollEnable*/ 8) shapestylecontrols_changes.scrollEnable = /*scrollEnable*/ ctx[3];\n\t\t\tif (dirty & /*hideTitles*/ 16) shapestylecontrols_changes.hideTitles = /*hideTitles*/ ctx[4];\n\t\t\tif (dirty & /*willRenderControls*/ 32) shapestylecontrols_changes.willRenderControls = /*willRenderControls*/ ctx[5];\n\t\t\tshapestylecontrols.$set(shapestylecontrols_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapestylecontrols.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapestylecontrols.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(first);\n\t\t\tdestroy_component(shapestylecontrols, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$d(ctx) {\n\tlet div;\n\tlet each_blocks = [];\n\tlet each_1_lookup = new Map();\n\tlet div_class_value;\n\tlet current;\n\tlet each_value = /*currentStyleControlSets*/ ctx[7];\n\tconst get_key = ctx => /*key*/ ctx[15];\n\n\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\tlet child_ctx = get_each_context(ctx, each_value, i);\n\t\tlet key = get_key(child_ctx);\n\t\teach_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].c();\n\t\t\t}\n\n\t\t\tattr(div, \"class\", div_class_value = arrayJoin([\n\t\t\t\t'PinturaShapeStyleEditor',\n\t\t\t\t!/*scrollEnable*/ ctx[3] && 'PinturaShapeStyleEditorOverflow',\n\t\t\t\t/*klass*/ ctx[0]\n\t\t\t]));\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*currentStyleControlSets, locale, scrollElasticity, scrollEnable, hideTitles, willRenderControls*/ 190) {\n\t\t\t\teach_value = /*currentStyleControlSets*/ ctx[7];\n\t\t\t\tgroup_outros();\n\t\t\t\teach_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block, null, get_each_context);\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*scrollEnable, klass*/ 9 && div_class_value !== (div_class_value = arrayJoin([\n\t\t\t\t'PinturaShapeStyleEditor',\n\t\t\t\t!/*scrollEnable*/ ctx[3] && 'PinturaShapeStyleEditorOverflow',\n\t\t\t\t/*klass*/ ctx[0]\n\t\t\t]))) {\n\t\t\t\tattr(div, \"class\", div_class_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\n\t\t\tfor (let i = 0; i < each_value.length; i += 1) {\n\t\t\t\ttransition_in(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\ttransition_out(each_blocks[i]);\n\t\t\t}\n\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tfor (let i = 0; i < each_blocks.length; i += 1) {\n\t\t\t\teach_blocks[i].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\nfunction instance$d($$self, $$props, $$invalidate) {\n\tlet controlKeys;\n\tlet activeControls;\n\tlet currentStyleControlSets;\n\tlet { class: klass = undefined } = $$props;\n\tlet { controls = {} } = $$props;\n\tlet { shape = undefined } = $$props;\n\tlet { onchange } = $$props;\n\tlet { locale } = $$props;\n\tlet { scrollElasticity } = $$props;\n\tlet { scrollEnable = true } = $$props;\n\tlet { hideTitles = false } = $$props;\n\tlet { willRenderControls } = $$props;\n\n\tconst getShapeControls = shape => {\n\t\tconst activeControls = controlKeys.filter(styleKey => styleKey.split('_').every(styleKey => // shape needs to have the property\n\t\thasProp(shape, styleKey) && // shape needs to be able to style the property\n\t\tshapeCanStyle(shape, styleKey))).map(styleKey => {\n\t\t\t// map to controlKey\n\t\t\tconst styleSettings = shape.settings && shape.settings[styleKey] || {};\n\n\t\t\tconst controlKey = styleSettings.control || styleKey;\n\n\t\t\t// handle multistyle keys\n\t\t\tconst styleKeys = styleKey.split('_');\n\n\t\t\tconst currentValue = styleKeys.length > 1\n\t\t\t? styleKeys.map(key => shape[key])\n\t\t\t: shape[styleKey];\n\n\t\t\t// get control\n\t\t\tif (isFunction(controls[controlKey])) {\n\t\t\t\tconst { title, component } = controls[controlKey](\n\t\t\t\t\tcurrentValue,\n\t\t\t\t\tnewValue => {\n\t\t\t\t\t\tonchange({ [styleKey]: newValue });\n\t\t\t\t\t},\n\t\t\t\t\t{ selectedShapeId: shape.id }\n\t\t\t\t);\n\n\t\t\t\treturn {\n\t\t\t\t\tid: controlKey,\n\t\t\t\t\tcomponent: DynamicComponentTree_1,\n\t\t\t\t\tcomponentProps: { title, items: component }\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tlet [component, componentProps] = controls[controlKey];\n\n\t\t\t// is reference to other control or string representation of component\n\t\t\tif (isString(component)) {\n\t\t\t\t// exif if not a valid default control\n\t\t\t\tif (controls[component]) {\n\t\t\t\t\t// create component based on reference\n\t\t\t\t\tconst componentCustomProps = { ...componentProps };\n\n\t\t\t\t\t[component, componentProps] = controls[component];\n\n\t\t\t\t\tcomponentProps = {\n\t\t\t\t\t\t...componentProps,\n\t\t\t\t\t\t...componentCustomProps\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst options = isFunction(componentProps.options)\n\t\t\t? componentProps.options(shape)\n\t\t\t: componentProps.options;\n\n\t\t\treturn {\n\t\t\t\tid: controlKey,\n\t\t\t\tcomponent,\n\t\t\t\tcomponentProps: {\n\t\t\t\t\t...componentProps,\n\t\t\t\t\t// set the options prop\n\t\t\t\t\toptions,\n\t\t\t\t\t// defaults\n\t\t\t\t\tlocale,\n\t\t\t\t\tvalue: currentValue,\n\t\t\t\t\toptionLabelClass: 'PinturaButtonLabel',\n\t\t\t\t\tonchange: detail => {\n\t\t\t\t\t\tconst value = isObject(detail) && !isArray(detail)\n\t\t\t\t\t\t? detail.value\n\t\t\t\t\t\t: detail;\n\n\t\t\t\t\t\t// allow custom changes\n\t\t\t\t\t\tif (componentProps.onchange) componentProps.onchange(value, shape);\n\n\t\t\t\t\t\t// internal change\n\t\t\t\t\t\tconst props = styleKeys.length > 1\n\t\t\t\t\t\t? styleKeys.reduce(\n\t\t\t\t\t\t\t\t(prev, key, index) => {\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t...prev,\n\t\t\t\t\t\t\t\t\t\t[key]: Array.isArray(value) ? value[index] : value\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t: { [styleKey]: value };\n\n\t\t\t\t\t\tonchange(props);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}).filter(Boolean);\n\n\t\treturn activeControls;\n\t};\n\n\tconst styleControlSets = [];\n\n\tconst getStyleControlSets = (key, controls) => {\n\t\tlet controlSet = styleControlSets.find(controlSet => controlSet.key === key);\n\n\t\tif (!controlSet) {\n\t\t\t// create\n\t\t\tcontrolSet = { key, controls };\n\n\t\t\t// add\n\t\t\tstyleControlSets.push(controlSet);\n\t\t}\n\n\t\t// hide all\n\t\tstyleControlSets.forEach(controlSet => controlSet.isActive = false);\n\n\t\t// update active controls\n\t\tcontrolSet.controls = controls;\n\n\t\t// show active\n\t\tcontrolSet.isActive = true;\n\n\t\treturn styleControlSets;\n\t};\n\n\t$$self.$$set = $$props => {\n\t\tif ('class' in $$props) $$invalidate(0, klass = $$props.class);\n\t\tif ('controls' in $$props) $$invalidate(6, controls = $$props.controls);\n\t\tif ('shape' in $$props) $$invalidate(8, shape = $$props.shape);\n\t\tif ('onchange' in $$props) $$invalidate(9, onchange = $$props.onchange);\n\t\tif ('locale' in $$props) $$invalidate(1, locale = $$props.locale);\n\t\tif ('scrollElasticity' in $$props) $$invalidate(2, scrollElasticity = $$props.scrollElasticity);\n\t\tif ('scrollEnable' in $$props) $$invalidate(3, scrollEnable = $$props.scrollEnable);\n\t\tif ('hideTitles' in $$props) $$invalidate(4, hideTitles = $$props.hideTitles);\n\t\tif ('willRenderControls' in $$props) $$invalidate(5, willRenderControls = $$props.willRenderControls);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*controls*/ 64) {\n\t\t\t// finds the controls needed to style the selected shape\n\t\t\t$$invalidate(11, controlKeys = Object.keys(controls).filter(key => controls[key]));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*shape, controlKeys*/ 2304) {\n\t\t\t$$invalidate(10, activeControls = shape && Object.keys(shape).length && controlKeys && shapeCanStyle(shape)\n\t\t\t? getShapeControls(shape)\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*shape, activeControls*/ 1280) {\n\t\t\t$$invalidate(7, currentStyleControlSets = getStyleControlSets(\n\t\t\t\tshape && Object.keys(shape).length\n\t\t\t\t? Object.keys(shape).join('_')\n\t\t\t\t: 'none',\n\t\t\t\tactiveControls || []\n\t\t\t));\n\t\t}\n\t};\n\n\treturn [\n\t\tklass,\n\t\tlocale,\n\t\tscrollElasticity,\n\t\tscrollEnable,\n\t\thideTitles,\n\t\twillRenderControls,\n\t\tcontrols,\n\t\tcurrentStyleControlSets,\n\t\tshape,\n\t\tonchange,\n\t\tactiveControls,\n\t\tcontrolKeys\n\t];\n}\n\nclass ShapeStyleEditor extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$d, create_fragment$d, safe_not_equal, {\n\t\t\tclass: 0,\n\t\t\tcontrols: 6,\n\t\t\tshape: 8,\n\t\t\tonchange: 9,\n\t\t\tlocale: 1,\n\t\t\tscrollElasticity: 2,\n\t\t\tscrollEnable: 3,\n\t\t\thideTitles: 4,\n\t\t\twillRenderControls: 5\n\t\t});\n\t}\n}\n\nvar isSVGMarkup = (str) => /<svg /.test(str);\n\n/* src/core/ui/components/ShapePresetsPalette.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block_6$1(ctx) {\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*presetToolbar*/ ctx[10] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*presetToolbar*/ 1024) dynamiccomponenttree_changes.items = /*presetToolbar*/ ctx[10];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t}\n\t};\n}\n\n// (159:4) {#if shouldRenderPresets}\nfunction create_if_block$2(ctx) {\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet if_block_anchor;\n\tlet current;\n\tconst if_block_creators = [create_if_block_1$1, create_else_block$1];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*shouldGroupPresets*/ ctx[8]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_1(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif_block.c();\n\t\t\tif_block_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif_blocks[current_block_type_index].m(target, anchor);\n\t\t\tinsert(target, if_block_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(if_block_anchor.parentNode, if_block_anchor);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif_blocks[current_block_type_index].d(detaching);\n\t\t\tif (detaching) detach(if_block_anchor);\n\t\t}\n\t};\n}\n\n// (208:8) {:else}\nfunction create_else_block$1(ctx) {\n\tlet div;\n\tlet t;\n\tlet scrollable;\n\tlet current;\n\tlet if_block = /*presetToolbar*/ ctx[10] && create_if_block_5$1(ctx);\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\tscrollAutoCancel: /*shouldRenderPresets*/ ctx[9],\n\t\t\t\telasticity: /*scrollElasticity*/ ctx[0],\n\t\t\t\t$$slots: { default: [create_default_slot_5] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaShapePresetsFlat\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\tappend(div, t);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*presetToolbar*/ ctx[10]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*presetToolbar*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_5$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty & /*shouldRenderPresets*/ 512) scrollable_changes.scrollAutoCancel = /*shouldRenderPresets*/ ctx[9];\n\t\t\tif (dirty & /*scrollElasticity*/ 1) scrollable_changes.elasticity = /*scrollElasticity*/ ctx[0];\n\n\t\t\tif (dirty & /*$$scope, presetsMapped, onaddpreset, ongrabpreset, ondragpreset, ondroppreset*/ 536871070) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t\tdestroy_component(scrollable);\n\t\t}\n\t};\n}\n\n// (161:8) {#if shouldGroupPresets}\nfunction create_if_block_1$1(ctx) {\n\tlet div;\n\tlet scrollable;\n\tlet t;\n\tlet tabpanels;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\telasticity: /*scrollElasticity*/ ctx[0],\n\t\t\t\tclass: \"PinturaShapePresetsGroups\",\n\t\t\t\t$$slots: { default: [create_default_slot_2$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tconst tabpanels_spread_levels = [\n\t\t{ class: \"PinturaControlPanels\" },\n\t\t{ panelClass: \"PinturaControlPanel\" },\n\t\t{ panels: /*panels*/ ctx[11] },\n\t\t/*tabsConfig*/ ctx[12]\n\t];\n\n\tlet tabpanels_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot$5,\n\t\t\t\t({ panel, panelIsActive }) => ({ 26: panel, 27: panelIsActive }),\n\t\t\t\t({ panel, panelIsActive }) => (panel ? 67108864 : 0) | (panelIsActive ? 134217728 : 0)\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tabpanels_spread_levels.length; i += 1) {\n\t\ttabpanels_props = assign(tabpanels_props, tabpanels_spread_levels[i]);\n\t}\n\n\ttabpanels = new TabPanels({ props: tabpanels_props });\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(tabpanels.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaShapePresetsGrouped\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tappend(div, t);\n\t\t\tmount_component(tabpanels, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty & /*scrollElasticity*/ 1) scrollable_changes.elasticity = /*scrollElasticity*/ ctx[0];\n\n\t\t\tif (dirty & /*$$scope, tabs, tabsConfig, tabSelected, presetToolbar*/ 536876128) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\n\t\t\tconst tabpanels_changes = (dirty & /*panels, tabsConfig*/ 6144)\n\t\t\t? get_spread_update(tabpanels_spread_levels, [\n\t\t\t\t\ttabpanels_spread_levels[0],\n\t\t\t\t\ttabpanels_spread_levels[1],\n\t\t\t\t\tdirty & /*panels*/ 2048 && { panels: /*panels*/ ctx[11] },\n\t\t\t\t\tdirty & /*tabsConfig*/ 4096 && get_spread_object(/*tabsConfig*/ ctx[12])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty & /*$$scope, panelIsActive, shouldRenderPresets, scrollElasticity, presetTabs, panel, onaddpreset, ongrabpreset, ondragpreset, ondroppreset*/ 738206239) {\n\t\t\t\ttabpanels_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttabpanels.$set(tabpanels_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\ttransition_in(tabpanels.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\ttransition_out(tabpanels.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(scrollable);\n\t\t\tdestroy_component(tabpanels);\n\t\t}\n\t};\n}\n\n// (211:16) {#if presetToolbar}\nfunction create_if_block_5$1(ctx) {\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*presetToolbar*/ ctx[10] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*presetToolbar*/ 1024) dynamiccomponenttree_changes.items = /*presetToolbar*/ ctx[10];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t}\n\t};\n}\n\n// (215:16) <Scrollable scrollAutoCancel={shouldRenderPresets} elasticity={scrollElasticity}>\nfunction create_default_slot_5(ctx) {\n\tlet imagebuttonlist;\n\tlet current;\n\n\timagebuttonlist = new ImageButtonList({\n\t\t\tprops: {\n\t\t\t\titems: /*presetsMapped*/ ctx[7],\n\t\t\t\tonclickitem: /*onaddpreset*/ ctx[1],\n\t\t\t\tongrabitem: /*ongrabpreset*/ ctx[2],\n\t\t\t\tondragitem: /*ondragpreset*/ ctx[3],\n\t\t\t\tondropitem: /*ondroppreset*/ ctx[4]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(imagebuttonlist.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(imagebuttonlist, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst imagebuttonlist_changes = {};\n\t\t\tif (dirty & /*presetsMapped*/ 128) imagebuttonlist_changes.items = /*presetsMapped*/ ctx[7];\n\t\t\tif (dirty & /*onaddpreset*/ 2) imagebuttonlist_changes.onclickitem = /*onaddpreset*/ ctx[1];\n\t\t\tif (dirty & /*ongrabpreset*/ 4) imagebuttonlist_changes.ongrabitem = /*ongrabpreset*/ ctx[2];\n\t\t\tif (dirty & /*ondragpreset*/ 8) imagebuttonlist_changes.ondragitem = /*ondragpreset*/ ctx[3];\n\t\t\tif (dirty & /*ondroppreset*/ 16) imagebuttonlist_changes.ondropitem = /*ondroppreset*/ ctx[4];\n\t\t\timagebuttonlist.$set(imagebuttonlist_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(imagebuttonlist.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(imagebuttonlist.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(imagebuttonlist, detaching);\n\t\t}\n\t};\n}\n\n// (164:20) {#if presetToolbar}\nfunction create_if_block_4$1(ctx) {\n\tlet dynamiccomponenttree;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*presetToolbar*/ ctx[10] }\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty & /*presetToolbar*/ 1024) dynamiccomponenttree_changes.items = /*presetToolbar*/ ctx[10];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t}\n\t};\n}\n\n// (175:24) {#if tab.icon}\nfunction create_if_block_3$1(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_4$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty & /*$$scope, tab*/ 805306368) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (176:28) <Icon>\nfunction create_default_slot_4$1(ctx) {\n\tlet g;\n\tlet raw_value = /*tab*/ ctx[28].icon + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*tab*/ 268435456 && raw_value !== (raw_value = /*tab*/ ctx[28].icon + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (178:24) {#if !tab.hideLabel}\nfunction create_if_block_2$1(ctx) {\n\tlet span;\n\tlet t_value = /*tab*/ ctx[28].label + \"\";\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*tab*/ 268435456 && t_value !== (t_value = /*tab*/ ctx[28].label + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (167:20) <TabList class=\"PinturaControlList\" {tabs} {...tabsConfig} layout=\"compact\" on:select={({ detail }) => (tabSelected = detail)} let:tab >\nfunction create_default_slot_3$1(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*tab*/ ctx[28].icon && create_if_block_3$1(ctx);\n\tlet if_block1 = !/*tab*/ ctx[28].hideLabel && create_if_block_2$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*tab*/ ctx[28].icon) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*tab*/ 268435456) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_3$1(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!/*tab*/ ctx[28].hideLabel) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_2$1(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(if_block1_anchor.parentNode, if_block1_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\n// (163:16) <Scrollable elasticity={scrollElasticity} class=\"PinturaShapePresetsGroups\">\nfunction create_default_slot_2$1(ctx) {\n\tlet t;\n\tlet tablist;\n\tlet current;\n\tlet if_block = /*presetToolbar*/ ctx[10] && create_if_block_4$1(ctx);\n\n\tconst tablist_spread_levels = [\n\t\t{ class: \"PinturaControlList\" },\n\t\t{ tabs: /*tabs*/ ctx[5] },\n\t\t/*tabsConfig*/ ctx[12],\n\t\t{ layout: \"compact\" }\n\t];\n\n\tlet tablist_props = {\n\t\t$$slots: {\n\t\t\tdefault: [\n\t\t\t\tcreate_default_slot_3$1,\n\t\t\t\t({ tab }) => ({ 28: tab }),\n\t\t\t\t({ tab }) => tab ? 268435456 : 0\n\t\t\t]\n\t\t},\n\t\t$$scope: { ctx }\n\t};\n\n\tfor (let i = 0; i < tablist_spread_levels.length; i += 1) {\n\t\ttablist_props = assign(tablist_props, tablist_spread_levels[i]);\n\t}\n\n\ttablist = new TabList({ props: tablist_props });\n\ttablist.$on(\"select\", /*select_handler*/ ctx[18]);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block) if_block.c();\n\t\t\tt = space();\n\t\t\tcreate_component(tablist.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block) if_block.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(tablist, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*presetToolbar*/ ctx[10]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty & /*presetToolbar*/ 1024) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_4$1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tconst tablist_changes = (dirty & /*tabs, tabsConfig*/ 4128)\n\t\t\t? get_spread_update(tablist_spread_levels, [\n\t\t\t\t\ttablist_spread_levels[0],\n\t\t\t\t\tdirty & /*tabs*/ 32 && { tabs: /*tabs*/ ctx[5] },\n\t\t\t\t\tdirty & /*tabsConfig*/ 4096 && get_spread_object(/*tabsConfig*/ ctx[12]),\n\t\t\t\t\ttablist_spread_levels[3]\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tif (dirty & /*$$scope, tab*/ 805306368) {\n\t\t\t\ttablist_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttablist.$set(tablist_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\ttransition_in(tablist.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\ttransition_out(tablist.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block) if_block.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(tablist, detaching);\n\t\t}\n\t};\n}\n\n// (192:20) <Scrollable scroll={panelIsActive ? { scrollOffset: 0, animate: false } : undefined} scrollAutoCancel={shouldRenderPresets} elasticity={scrollElasticity} >\nfunction create_default_slot_1$1(ctx) {\n\tlet imagebuttonlist;\n\tlet current;\n\n\timagebuttonlist = new ImageButtonList({\n\t\t\tprops: {\n\t\t\t\titems: /*presetTabs*/ ctx[13][/*panel*/ ctx[26]].items,\n\t\t\t\tdisabled: /*presetTabs*/ ctx[13][/*panel*/ ctx[26]].disabled,\n\t\t\t\tonclickitem: /*onaddpreset*/ ctx[1],\n\t\t\t\tongrabitem: /*ongrabpreset*/ ctx[2],\n\t\t\t\tondragitem: /*ondragpreset*/ ctx[3],\n\t\t\t\tondropitem: /*ondroppreset*/ ctx[4]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(imagebuttonlist.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(imagebuttonlist, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst imagebuttonlist_changes = {};\n\t\t\tif (dirty & /*presetTabs, panel*/ 67117056) imagebuttonlist_changes.items = /*presetTabs*/ ctx[13][/*panel*/ ctx[26]].items;\n\t\t\tif (dirty & /*presetTabs, panel*/ 67117056) imagebuttonlist_changes.disabled = /*presetTabs*/ ctx[13][/*panel*/ ctx[26]].disabled;\n\t\t\tif (dirty & /*onaddpreset*/ 2) imagebuttonlist_changes.onclickitem = /*onaddpreset*/ ctx[1];\n\t\t\tif (dirty & /*ongrabpreset*/ 4) imagebuttonlist_changes.ongrabitem = /*ongrabpreset*/ ctx[2];\n\t\t\tif (dirty & /*ondragpreset*/ 8) imagebuttonlist_changes.ondragitem = /*ondragpreset*/ ctx[3];\n\t\t\tif (dirty & /*ondroppreset*/ 16) imagebuttonlist_changes.ondropitem = /*ondroppreset*/ ctx[4];\n\t\t\timagebuttonlist.$set(imagebuttonlist_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(imagebuttonlist.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(imagebuttonlist.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(imagebuttonlist, detaching);\n\t\t}\n\t};\n}\n\n// (184:16) <TabPanels class=\"PinturaControlPanels\" panelClass=\"PinturaControlPanel\" {panels} {...tabsConfig} let:panel let:panelIsActive >\nfunction create_default_slot$5(ctx) {\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\tscroll: /*panelIsActive*/ ctx[27]\n\t\t\t\t? { scrollOffset: 0, animate: false }\n\t\t\t\t: undefined,\n\t\t\t\tscrollAutoCancel: /*shouldRenderPresets*/ ctx[9],\n\t\t\t\telasticity: /*scrollElasticity*/ ctx[0],\n\t\t\t\t$$slots: { default: [create_default_slot_1$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(scrollable, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\n\t\t\tif (dirty & /*panelIsActive*/ 134217728) scrollable_changes.scroll = /*panelIsActive*/ ctx[27]\n\t\t\t? { scrollOffset: 0, animate: false }\n\t\t\t: undefined;\n\n\t\t\tif (dirty & /*shouldRenderPresets*/ 512) scrollable_changes.scrollAutoCancel = /*shouldRenderPresets*/ ctx[9];\n\t\t\tif (dirty & /*scrollElasticity*/ 1) scrollable_changes.elasticity = /*scrollElasticity*/ ctx[0];\n\n\t\t\tif (dirty & /*$$scope, presetTabs, panel, onaddpreset, ongrabpreset, ondragpreset, ondroppreset*/ 603987998) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(scrollable, detaching);\n\t\t}\n\t};\n}\n\nfunction create_fragment$c(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet current;\n\tconst if_block_creators = [create_if_block$2, create_if_block_6$1];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*shouldRenderPresets*/ ctx[9]) return 0;\n\t\tif (/*presetToolbar*/ ctx[10]) return 1;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type(ctx))) {\n\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(div, \"class\", \"PinturaShapePresetsPalette\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\t}\n\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block) {\n\t\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = null;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d();\n\t\t\t}\n\t\t}\n\t};\n}\n\nfunction instance$c($$self, $$props, $$invalidate) {\n\tlet presetsMapped;\n\tlet shouldRenderPresets;\n\tlet shouldGroupPresets;\n\tlet tabs;\n\tlet presetTabs;\n\tlet tabSelected;\n\tlet tabsConfig;\n\tlet panels;\n\tlet presetToolbar;\n\tlet { locale } = $$props;\n\tlet { presets } = $$props;\n\tlet { scrollElasticity } = $$props;\n\tlet { enableSelectImage = true } = $$props;\n\tlet { willRenderPresetToolbar = passthrough } = $$props;\n\tlet { onaddpreset = noop$1 } = $$props;\n\tlet { ongrabpreset = undefined } = $$props;\n\tlet { ondragpreset = undefined } = $$props;\n\tlet { ondroppreset = undefined } = $$props;\n\tconst uid = `presets-${getUniqueId()}`;\n\tconst isPresetGroup = item => isArray(item) && isString(item[0]) && isArray(item[1]);\n\n\tconst getPresetThumb = (value, alt = '') => {\n\t\t// could be svg\n\t\tif (isSVGMarkup(value)) return value;\n\n\t\t// test if is emoji\n\t\tif (isEmoji(value)) return getEmojiSVG(value, alt);\n\n\t\t// must be URL\n\t\treturn `<img src=\"${value}\" alt=\"${alt}\"/>`;\n\t};\n\n\tconst getAltFromSrc = src => getFilenameWithoutExtension(getFilenameFromURL(src));\n\tconst excludedStickerItemProps = ['src', 'alt', 'thumb', 'shape', 'id', 'mount', 'disabled'];\n\n\tconst mapPreset = item => {\n\t\tlet id = item;\n\t\tlet src;\n\t\tlet shape;\n\t\tlet shapeProps;\n\t\tlet thumb;\n\t\tlet alt;\n\t\tlet mount;\n\t\tlet disabled;\n\n\t\t// if item is a string, it's either an emoji or a URL\n\t\tif (isString(item)) {\n\t\t\t// is emoji\n\t\t\tif (isEmoji(item)) {\n\t\t\t\tsrc = item;\n\t\t\t\talt = item;\n\t\t\t\tthumb = getPresetThumb(src, alt);\n\t\t\t} else // must be URL\n\t\t\t{\n\t\t\t\tsrc = item;\n\t\t\t\talt = getAltFromSrc(src);\n\t\t\t\tthumb = getPresetThumb(src, alt);\n\t\t\t}\n\t\t} else {\n\t\t\t// set custom thumbnail if defined\n\t\t\tsrc = item.src;\n\n\t\t\talt = item.alt || (isString(src)\n\t\t\t? getAltFromSrc(src)\n\t\t\t: isString(item.thumb)\n\t\t\t\t? getAltFromSrc(item.thumb)\n\t\t\t\t: undefined);\n\n\t\t\tthumb = getPresetThumb(item.thumb || src, alt);\n\t\t\tshape = item.shape;\n\t\t\tmount = item.mount;\n\t\t\tdisabled = item.disabled;\n\n\t\t\tshapeProps = Object.keys(item).reduce(\n\t\t\t\t(prev, curr) => {\n\t\t\t\t\tif (excludedStickerItemProps.includes(curr)) return prev;\n\t\t\t\t\tprev[curr] = item[curr];\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tid,\n\t\t\tsrc,\n\t\t\tthumb,\n\t\t\tshape,\n\t\t\tshapeProps,\n\t\t\talt,\n\t\t\ttitle: alt,\n\t\t\tmount,\n\t\t\tdisabled\n\t\t};\n\t};\n\n\tconst mapPresets = items => items.map(item => {\n\t\tif (isPresetGroup(item)) {\n\t\t\treturn {\n\t\t\t\t...item[2],\n\t\t\t\tid: `${uid}-${item[0].toLowerCase()}`,\n\t\t\t\tlabel: item[0],\n\t\t\t\titems: mapPresets(item[1])\n\t\t\t};\n\t\t}\n\n\t\treturn mapPreset(item);\n\t});\n\n\tconst select_handler = ({ detail }) => $$invalidate(6, tabSelected = detail);\n\n\t$$self.$$set = $$props => {\n\t\tif ('locale' in $$props) $$invalidate(14, locale = $$props.locale);\n\t\tif ('presets' in $$props) $$invalidate(15, presets = $$props.presets);\n\t\tif ('scrollElasticity' in $$props) $$invalidate(0, scrollElasticity = $$props.scrollElasticity);\n\t\tif ('enableSelectImage' in $$props) $$invalidate(16, enableSelectImage = $$props.enableSelectImage);\n\t\tif ('willRenderPresetToolbar' in $$props) $$invalidate(17, willRenderPresetToolbar = $$props.willRenderPresetToolbar);\n\t\tif ('onaddpreset' in $$props) $$invalidate(1, onaddpreset = $$props.onaddpreset);\n\t\tif ('ongrabpreset' in $$props) $$invalidate(2, ongrabpreset = $$props.ongrabpreset);\n\t\tif ('ondragpreset' in $$props) $$invalidate(3, ondragpreset = $$props.ondragpreset);\n\t\tif ('ondroppreset' in $$props) $$invalidate(4, ondroppreset = $$props.ondroppreset);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*presets*/ 32768) {\n\t\t\t$$invalidate(7, presetsMapped = mapPresets(presets));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*presetsMapped*/ 128) {\n\t\t\t$$invalidate(9, shouldRenderPresets = presetsMapped.length);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*shouldRenderPresets, presetsMapped*/ 640) {\n\t\t\t$$invalidate(8, shouldGroupPresets = shouldRenderPresets && presetsMapped.some(preset => !!preset.items));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*shouldGroupPresets, presetsMapped*/ 384) {\n\t\t\t$$invalidate(5, tabs = shouldGroupPresets && presetsMapped);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*shouldGroupPresets, presetsMapped*/ 384) {\n\t\t\t$$invalidate(13, presetTabs = shouldGroupPresets && presetsMapped.reduce(\n\t\t\t\t(prev, curr) => {\n\t\t\t\t\tprev[curr.id] = curr;\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*tabSelected, tabs*/ 96) {\n\t\t\t$$invalidate(6, tabSelected = tabSelected || tabs && (tabs.find(tab => !tab.disabled) || {}).id);\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*tabSelected*/ 64) {\n\t\t\t$$invalidate(12, tabsConfig = { name: uid, selected: tabSelected });\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*tabs*/ 32) {\n\t\t\t$$invalidate(11, panels = tabs && tabs.map(tab => tab.id));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*locale, willRenderPresetToolbar, enableSelectImage, onaddpreset*/ 212994) {\n\t\t\t$$invalidate(10, presetToolbar = locale && willRenderPresetToolbar([\n\t\t\t\tenableSelectImage && [\n\t\t\t\t\t'Button',\n\t\t\t\t\t'browse',\n\t\t\t\t\t{\n\t\t\t\t\t\tlabel: locale.shapeLabelButtonSelectSticker,\n\t\t\t\t\t\ticon: locale.shapeIconButtonSelectSticker,\n\t\t\t\t\t\tonclick: () => {\n\t\t\t\t\t\t\tbrowse().then(file => {\n\t\t\t\t\t\t\t\tif (!file) return;\n\t\t\t\t\t\t\t\tonaddpreset(file);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t]));\n\t\t}\n\t};\n\n\treturn [\n\t\tscrollElasticity,\n\t\tonaddpreset,\n\t\tongrabpreset,\n\t\tondragpreset,\n\t\tondroppreset,\n\t\ttabs,\n\t\ttabSelected,\n\t\tpresetsMapped,\n\t\tshouldGroupPresets,\n\t\tshouldRenderPresets,\n\t\tpresetToolbar,\n\t\tpanels,\n\t\ttabsConfig,\n\t\tpresetTabs,\n\t\tlocale,\n\t\tpresets,\n\t\tenableSelectImage,\n\t\twillRenderPresetToolbar,\n\t\tselect_handler\n\t];\n}\n\nclass ShapePresetsPalette extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$c, create_fragment$c, safe_not_equal, {\n\t\t\tlocale: 14,\n\t\t\tpresets: 15,\n\t\t\tscrollElasticity: 0,\n\t\t\tenableSelectImage: 16,\n\t\t\twillRenderPresetToolbar: 17,\n\t\t\tonaddpreset: 1,\n\t\t\tongrabpreset: 2,\n\t\t\tondragpreset: 3,\n\t\t\tondroppreset: 4\n\t\t});\n\t}\n}\n\nvar createPingDispatcher = (node) => (type, data) => {\n node.dispatchEvent(createPing(type, data));\n};\n\n/* src/core/ui/components/ShapeUtil.svelte generated by Svelte v3.52.0 */\n\nfunction create_default_slot_4(ctx) {\n\tlet dynamiccomponenttree;\n\tlet t;\n\tlet shapestyleeditor;\n\tlet current;\n\n\tdynamiccomponenttree = new DynamicComponentTree_1({\n\t\t\tprops: { items: /*headerTools*/ ctx[29] }\n\t\t});\n\n\tshapestyleeditor = new ShapeStyleEditor({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tshape: /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49],\n\t\t\t\tonchange: /*handleUpdateSelectedMarkupShape*/ ctx[86],\n\t\t\t\tcontrols: /*shapeControls*/ ctx[9],\n\t\t\t\tscrollEnable: false,\n\t\t\t\thideTitles: true,\n\t\t\t\twillRenderControls: /*func_9*/ ctx[163]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(shapestyleeditor.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(dynamiccomponenttree, target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tmount_component(shapestyleeditor, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty[0] & /*headerTools*/ 536870912) dynamiccomponenttree_changes.items = /*headerTools*/ ctx[29];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t\tconst shapestyleeditor_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) shapestyleeditor_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[1] & /*markupShapeSelected, markupDraft*/ 262145) shapestyleeditor_changes.shape = /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49];\n\t\t\tif (dirty[0] & /*shapeControls*/ 512) shapestyleeditor_changes.controls = /*shapeControls*/ ctx[9];\n\t\t\tshapestyleeditor.$set(shapestyleeditor_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\ttransition_in(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\ttransition_out(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(dynamiccomponenttree, detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tdestroy_component(shapestyleeditor, detaching);\n\t\t}\n\t};\n}\n\n// (1263:4) \nfunction create_header_slot(ctx) {\n\tlet div;\n\tlet toolbar_1;\n\tlet current;\n\n\ttoolbar_1 = new Toolbar({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_4] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(toolbar_1.$$.fragment);\n\t\t\tattr(div, \"slot\", \"header\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(toolbar_1, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst toolbar_1_changes = {};\n\n\t\t\tif (dirty[0] & /*locale, shapeControls, headerTools*/ 536871440 | dirty[1] & /*markupShapeSelected, markupDraft*/ 262145 | dirty[6] & /*$$scope*/ 262144) {\n\t\t\t\ttoolbar_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ttoolbar_1.$set(toolbar_1_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(toolbar_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(toolbar_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(toolbar_1);\n\t\t}\n\t};\n}\n\n// (1290:8) {#if shouldRenderShapeEditor}\nfunction create_if_block_11(ctx) {\n\tlet shapelayouteditor;\n\tlet current;\n\n\tconst shapelayouteditor_spread_levels = [\n\t\t{ locale: /*locale*/ ctx[4] },\n\t\t{ ui: /*imageOverlayMarkup*/ ctx[69] },\n\t\t{ shapes: /*shapes*/ ctx[5] },\n\t\t{ selection: /*selection*/ ctx[58] },\n\t\t{ uid: /*utilKey*/ ctx[19] },\n\t\t{ parentRect: /*$parentRect*/ ctx[37] },\n\t\t{ rootRect: /*$rootRect*/ ctx[55] },\n\t\t{ utilRect: /*$utilRectPadded*/ ctx[39] },\n\t\t{ offset: /*markupOffset*/ ctx[50] },\n\t\t{\n\t\t\tdisabled: /*$enablePanInputStatus*/ ctx[38]\n\t\t},\n\t\t{\n\t\t\tcontextRotation: /*imageRotation*/ ctx[22]\n\t\t},\n\t\t{ contextFlipX: /*imageFlipX*/ ctx[23] },\n\t\t{ contextFlipY: /*imageFlipY*/ ctx[24] },\n\t\t{\n\t\t\tcontextZoom: /*$imageTransformsInterpolated*/ ctx[36].scale\n\t\t},\n\t\t{ active: /*$isActive*/ ctx[35] },\n\t\t{ opacity: /*$isActiveFraction*/ ctx[56] },\n\t\t{\n\t\t\thoverColor: /*$rootColorSecondary*/ ctx[57]\n\t\t},\n\t\t{\n\t\t\tcaretColor: /*$rootColorSecondary*/ ctx[57]\n\t\t},\n\t\t{\n\t\t\tsnapColor: /*$rootColorSecondary*/ ctx[57]\n\t\t},\n\t\t{ gridColor: [1, 1, 1, 0.125] },\n\t\t{ eraseRadius: /*toolEraseRadius*/ ctx[47] },\n\t\t{\n\t\t\tselectRadius: /*toolSelectRadius*/ ctx[6]\n\t\t},\n\t\t{\n\t\t\tenableButtonFlipVertical: /*enableButtonFlipVertical*/ ctx[10]\n\t\t},\n\t\t{\n\t\t\tmapEditorPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[20]\n\t\t},\n\t\t{\n\t\t\tmapImagePointToEditorPoint: /*mapImagePointToScreenPoint*/ ctx[21]\n\t\t},\n\t\t{\n\t\t\tenableTapToAddText: /*enableTapToAddText*/ ctx[13]\n\t\t},\n\t\t{ textInputMode: /*textInputMode*/ ctx[8] },\n\t\t{ snapThreshold: /*snapThreshold*/ ctx[15] },\n\t\t{\n\t\t\tsnapPointer: !/*preventPointerSnapping*/ ctx[48]\n\t\t},\n\t\t{\n\t\t\tenableSnapToContext: /*enableSnapToContext*/ ctx[16]\n\t\t},\n\t\t{ gridSize: /*gridSize*/ ctx[14] },\n\t\t{\n\t\t\twillStartInteraction: /*handleWillStartInteraction*/ ctx[96]\n\t\t},\n\t\t{\n\t\t\toninteractionstart: /*handleInteractionStart*/ ctx[80]\n\t\t},\n\t\t{\n\t\t\toninteractionupdate: /*handleInteractionUpdate*/ ctx[81]\n\t\t},\n\t\t{\n\t\t\toninteractionrelease: /*handleInteractionRelease*/ ctx[82]\n\t\t},\n\t\t{\n\t\t\toninteractionend: /*handleInteractionEnd*/ ctx[84]\n\t\t},\n\t\t{\n\t\t\toninteractioncancel: /*handleInteractionCancel*/ ctx[83]\n\t\t},\n\t\t{\n\t\t\tonleavecanvas: /*handleLeaveCanvas*/ ctx[88]\n\t\t},\n\t\t{\n\t\t\tonhovercanvas: /*handleHoverCanvas*/ ctx[87]\n\t\t},\n\t\t{\n\t\t\tonhovershape: /*handleHoverShape*/ ctx[90]\n\t\t},\n\t\t{ ontapcanvas: /*handleTapCanvas*/ ctx[89] },\n\t\t{ onaddshape: /*func_3*/ ctx[155] },\n\t\t{ onselectshape: /*func_4*/ ctx[156] },\n\t\t{ onblurshape: /*func_5*/ ctx[157] },\n\t\t{ ontapshape: /*func_6*/ ctx[158] },\n\t\t{ onupdateshape: /*func_7*/ ctx[159] },\n\t\t{ onremoveshape: /*func_8*/ ctx[160] },\n\t\t/*layoutEditorHooks*/ ctx[42]\n\t];\n\n\tlet shapelayouteditor_props = {};\n\n\tfor (let i = 0; i < shapelayouteditor_spread_levels.length; i += 1) {\n\t\tshapelayouteditor_props = assign(shapelayouteditor_props, shapelayouteditor_spread_levels[i]);\n\t}\n\n\tshapelayouteditor = new ShapeLayoutEditor({ props: shapelayouteditor_props });\n\t/*shapelayouteditor_binding*/ ctx[161](shapelayouteditor);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapelayouteditor.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapelayouteditor, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapelayouteditor_changes = (dirty[0] & /*locale, shapes, utilKey, imageRotation, imageFlipX, imageFlipY, toolSelectRadius, enableButtonFlipVertical, mapScreenPointToImagePoint, mapImagePointToScreenPoint, enableTapToAddText, textInputMode, snapThreshold, enableSnapToContext, gridSize, ping*/ 1106896240 | dirty[1] & /*selection, $parentRect, $rootRect, $utilRectPadded, markupOffset, $enablePanInputStatus, $imageTransformsInterpolated, $isActive, $isActiveFraction, $rootColorSecondary, toolEraseRadius, preventPointerSnapping, layoutEditorHooks*/ 252381680 | dirty[2] & /*imageOverlayMarkup, handleInteractionStart, handleInteractionUpdate, handleInteractionRelease, handleInteractionEnd, handleInteractionCancel, handleLeaveCanvas, handleHoverCanvas, handleHoverShape, handleTapCanvas*/ 511443072 | dirty[3] & /*handleWillStartInteraction, handleMarkupUpdate*/ 24)\n\t\t\t? get_spread_update(shapelayouteditor_spread_levels, [\n\t\t\t\t\tdirty[0] & /*locale*/ 16 && { locale: /*locale*/ ctx[4] },\n\t\t\t\t\tdirty[2] & /*imageOverlayMarkup*/ 128 && { ui: /*imageOverlayMarkup*/ ctx[69] },\n\t\t\t\t\tdirty[0] & /*shapes*/ 32 && { shapes: /*shapes*/ ctx[5] },\n\t\t\t\t\tdirty[1] & /*selection*/ 134217728 && { selection: /*selection*/ ctx[58] },\n\t\t\t\t\tdirty[0] & /*utilKey*/ 524288 && { uid: /*utilKey*/ ctx[19] },\n\t\t\t\t\tdirty[1] & /*$parentRect*/ 64 && { parentRect: /*$parentRect*/ ctx[37] },\n\t\t\t\t\tdirty[1] & /*$rootRect*/ 16777216 && { rootRect: /*$rootRect*/ ctx[55] },\n\t\t\t\t\tdirty[1] & /*$utilRectPadded*/ 256 && { utilRect: /*$utilRectPadded*/ ctx[39] },\n\t\t\t\t\tdirty[1] & /*markupOffset*/ 524288 && { offset: /*markupOffset*/ ctx[50] },\n\t\t\t\t\tdirty[1] & /*$enablePanInputStatus*/ 128 && {\n\t\t\t\t\t\tdisabled: /*$enablePanInputStatus*/ ctx[38]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*imageRotation*/ 4194304 && {\n\t\t\t\t\t\tcontextRotation: /*imageRotation*/ ctx[22]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*imageFlipX*/ 8388608 && { contextFlipX: /*imageFlipX*/ ctx[23] },\n\t\t\t\t\tdirty[0] & /*imageFlipY*/ 16777216 && { contextFlipY: /*imageFlipY*/ ctx[24] },\n\t\t\t\t\tdirty[1] & /*$imageTransformsInterpolated*/ 32 && {\n\t\t\t\t\t\tcontextZoom: /*$imageTransformsInterpolated*/ ctx[36].scale\n\t\t\t\t\t},\n\t\t\t\t\tdirty[1] & /*$isActive*/ 16 && { active: /*$isActive*/ ctx[35] },\n\t\t\t\t\tdirty[1] & /*$isActiveFraction*/ 33554432 && { opacity: /*$isActiveFraction*/ ctx[56] },\n\t\t\t\t\tdirty[1] & /*$rootColorSecondary*/ 67108864 && {\n\t\t\t\t\t\thoverColor: /*$rootColorSecondary*/ ctx[57]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[1] & /*$rootColorSecondary*/ 67108864 && {\n\t\t\t\t\t\tcaretColor: /*$rootColorSecondary*/ ctx[57]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[1] & /*$rootColorSecondary*/ 67108864 && {\n\t\t\t\t\t\tsnapColor: /*$rootColorSecondary*/ ctx[57]\n\t\t\t\t\t},\n\t\t\t\t\tshapelayouteditor_spread_levels[19],\n\t\t\t\t\tdirty[1] & /*toolEraseRadius*/ 65536 && { eraseRadius: /*toolEraseRadius*/ ctx[47] },\n\t\t\t\t\tdirty[0] & /*toolSelectRadius*/ 64 && {\n\t\t\t\t\t\tselectRadius: /*toolSelectRadius*/ ctx[6]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*enableButtonFlipVertical*/ 1024 && {\n\t\t\t\t\t\tenableButtonFlipVertical: /*enableButtonFlipVertical*/ ctx[10]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*mapScreenPointToImagePoint*/ 1048576 && {\n\t\t\t\t\t\tmapEditorPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[20]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*mapImagePointToScreenPoint*/ 2097152 && {\n\t\t\t\t\t\tmapImagePointToEditorPoint: /*mapImagePointToScreenPoint*/ ctx[21]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*enableTapToAddText*/ 8192 && {\n\t\t\t\t\t\tenableTapToAddText: /*enableTapToAddText*/ ctx[13]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*textInputMode*/ 256 && { textInputMode: /*textInputMode*/ ctx[8] },\n\t\t\t\t\tdirty[0] & /*snapThreshold*/ 32768 && { snapThreshold: /*snapThreshold*/ ctx[15] },\n\t\t\t\t\tdirty[1] & /*preventPointerSnapping*/ 131072 && {\n\t\t\t\t\t\tsnapPointer: !/*preventPointerSnapping*/ ctx[48]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*enableSnapToContext*/ 65536 && {\n\t\t\t\t\t\tenableSnapToContext: /*enableSnapToContext*/ ctx[16]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[0] & /*gridSize*/ 16384 && { gridSize: /*gridSize*/ ctx[14] },\n\t\t\t\t\tdirty[3] & /*handleWillStartInteraction*/ 8 && {\n\t\t\t\t\t\twillStartInteraction: /*handleWillStartInteraction*/ ctx[96]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleInteractionStart*/ 262144 && {\n\t\t\t\t\t\toninteractionstart: /*handleInteractionStart*/ ctx[80]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleInteractionUpdate*/ 524288 && {\n\t\t\t\t\t\toninteractionupdate: /*handleInteractionUpdate*/ ctx[81]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleInteractionRelease*/ 1048576 && {\n\t\t\t\t\t\toninteractionrelease: /*handleInteractionRelease*/ ctx[82]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleInteractionEnd*/ 4194304 && {\n\t\t\t\t\t\toninteractionend: /*handleInteractionEnd*/ ctx[84]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleInteractionCancel*/ 2097152 && {\n\t\t\t\t\t\toninteractioncancel: /*handleInteractionCancel*/ ctx[83]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleLeaveCanvas*/ 67108864 && {\n\t\t\t\t\t\tonleavecanvas: /*handleLeaveCanvas*/ ctx[88]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleHoverCanvas*/ 33554432 && {\n\t\t\t\t\t\tonhovercanvas: /*handleHoverCanvas*/ ctx[87]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleHoverShape*/ 268435456 && {\n\t\t\t\t\t\tonhovershape: /*handleHoverShape*/ ctx[90]\n\t\t\t\t\t},\n\t\t\t\t\tdirty[2] & /*handleTapCanvas*/ 134217728 && { ontapcanvas: /*handleTapCanvas*/ ctx[89] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 | dirty[3] & /*handleMarkupUpdate*/ 16 && { onaddshape: /*func_3*/ ctx[155] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 && { onselectshape: /*func_4*/ ctx[156] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 && { onblurshape: /*func_5*/ ctx[157] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 && { ontapshape: /*func_6*/ ctx[158] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 | dirty[3] & /*handleMarkupUpdate*/ 16 && { onupdateshape: /*func_7*/ ctx[159] },\n\t\t\t\t\tdirty[0] & /*ping*/ 1073741824 | dirty[3] & /*handleMarkupUpdate*/ 16 && { onremoveshape: /*func_8*/ ctx[160] },\n\t\t\t\t\tdirty[1] & /*layoutEditorHooks*/ 2048 && get_spread_object(/*layoutEditorHooks*/ ctx[42])\n\t\t\t\t])\n\t\t\t: {};\n\n\t\t\tshapelayouteditor.$set(shapelayouteditor_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapelayouteditor.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapelayouteditor.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\t/*shapelayouteditor_binding*/ ctx[161](null);\n\t\t\tdestroy_component(shapelayouteditor, detaching);\n\t\t}\n\t};\n}\n\n// (1280:4) \nfunction create_main_slot(ctx) {\n\tlet div;\n\tlet div_style_value;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tlet if_block = /*shouldRenderShapeEditor*/ ctx[51] && create_if_block_11(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tattr(div, \"slot\", \"main\");\n\t\t\tattr(div, \"style\", div_style_value = `cursor:${/*cursorStyle*/ ctx[46]}`);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\t/*div_binding*/ ctx[162](div);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div, \"keydown\", /*handleKey*/ ctx[85]),\n\t\t\t\t\taction_destroyer(dropable.call(null, div)),\n\t\t\t\t\tlisten(div, \"dropfiles\", function () {\n\t\t\t\t\t\tif (is_function(/*enablePresetDropImage*/ ctx[12]\n\t\t\t\t\t\t? /*handleDropFiles*/ ctx[95]\n\t\t\t\t\t\t: noop$1)) (/*enablePresetDropImage*/ ctx[12]\n\t\t\t\t\t\t? /*handleDropFiles*/ ctx[95]\n\t\t\t\t\t\t: noop$1).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\taction_destroyer(measurable.call(null, div)),\n\t\t\t\t\tlisten(div, \"measure\", /*measure_handler_1*/ ctx[151])\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (/*shouldRenderShapeEditor*/ ctx[51]) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*shouldRenderShapeEditor*/ 1048576) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_11(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[1] & /*cursorStyle*/ 32768 && div_style_value !== (div_style_value = `cursor:${/*cursorStyle*/ ctx[46]}`)) {\n\t\t\t\tattr(div, \"style\", div_style_value);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t\t/*div_binding*/ ctx[162](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\n// (1455:38) \nfunction create_if_block_10(ctx) {\n\tlet shapepresetspalette;\n\tlet current;\n\n\tshapepresetspalette = new ShapePresetsPalette({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tpresets: /*shapePresets*/ ctx[18],\n\t\t\t\tenableSelectImage: /*enablePresetSelectImage*/ ctx[11],\n\t\t\t\twillRenderPresetToolbar: /*runWillRenderPresetToolbarHook*/ ctx[43],\n\t\t\t\tonaddpreset: /*handleAddPreset*/ ctx[94],\n\t\t\t\tongrabpreset: /*handleGrabPreset*/ ctx[91],\n\t\t\t\tondragpreset: /*handleDragPreset*/ ctx[92],\n\t\t\t\tondroppreset: /*handleDropPreset*/ ctx[93],\n\t\t\t\tscrollElasticity: /*computedScrollElasticity*/ ctx[44]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapepresetspalette.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapepresetspalette, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapepresetspalette_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) shapepresetspalette_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[0] & /*shapePresets*/ 262144) shapepresetspalette_changes.presets = /*shapePresets*/ ctx[18];\n\t\t\tif (dirty[0] & /*enablePresetSelectImage*/ 2048) shapepresetspalette_changes.enableSelectImage = /*enablePresetSelectImage*/ ctx[11];\n\t\t\tif (dirty[1] & /*runWillRenderPresetToolbarHook*/ 4096) shapepresetspalette_changes.willRenderPresetToolbar = /*runWillRenderPresetToolbarHook*/ ctx[43];\n\t\t\tif (dirty[1] & /*computedScrollElasticity*/ 8192) shapepresetspalette_changes.scrollElasticity = /*computedScrollElasticity*/ ctx[44];\n\t\t\tshapepresetspalette.$set(shapepresetspalette_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapepresetspalette.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapepresetspalette.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapepresetspalette, detaching);\n\t\t}\n\t};\n}\n\n// (1365:8) {#if shouldRenderControls}\nfunction create_if_block_2(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*toolbarLayout*/ ctx[7] === 'stack' && create_if_block_8(ctx);\n\tlet if_block1 = (/*showToolbar*/ ctx[53] && /*hasMultipleTools*/ ctx[34] || /*toolbarLayout*/ ctx[7] === 'row') && create_if_block_3(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*toolbarLayout*/ ctx[7] === 'stack') {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*toolbarLayout*/ 128) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_8(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*showToolbar*/ ctx[53] && /*hasMultipleTools*/ ctx[34] || /*toolbarLayout*/ ctx[7] === 'row') {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*toolbarLayout*/ 128 | dirty[1] & /*showToolbar, hasMultipleTools*/ 4194312) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_3(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(if_block1_anchor.parentNode, if_block1_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\n// (1366:12) {#if toolbarLayout === 'stack'}\nfunction create_if_block_8(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block;\n\tlet current;\n\tconst if_block_creators = [create_if_block_9, create_else_block];\n\tconst if_blocks = [];\n\n\tfunction select_block_type_1(ctx, dirty) {\n\t\tif (/*shouldRenderPresets*/ ctx[45]) return 0;\n\t\treturn 1;\n\t}\n\n\tcurrent_block_type_index = select_block_type_1(ctx);\n\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif_block.c();\n\t\t\tattr(div, \"class\", \"PinturaControlPanels\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type_1(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t} else {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t\tif_block = if_blocks[current_block_type_index];\n\n\t\t\t\tif (!if_block) {\n\t\t\t\t\tif_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t} else {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t}\n\n\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\tif_block.m(div, null);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif_blocks[current_block_type_index].d();\n\t\t}\n\t};\n}\n\n// (1382:20) {:else}\nfunction create_else_block(ctx) {\n\tlet div;\n\tlet shapestyleeditor;\n\tlet current;\n\n\tshapestyleeditor = new ShapeStyleEditor({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tshape: /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49],\n\t\t\t\tonchange: /*handleUpdateSelectedMarkupShape*/ ctx[86],\n\t\t\t\tcontrols: /*shapeControls*/ ctx[9],\n\t\t\t\tscrollElasticity: /*computedScrollElasticity*/ ctx[44],\n\t\t\t\twillRenderControls: /*willRenderShapeStyleControls*/ ctx[17]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(shapestyleeditor.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaControlPanel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(shapestyleeditor, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapestyleeditor_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) shapestyleeditor_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[1] & /*markupShapeSelected, markupDraft*/ 262145) shapestyleeditor_changes.shape = /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49];\n\t\t\tif (dirty[0] & /*shapeControls*/ 512) shapestyleeditor_changes.controls = /*shapeControls*/ ctx[9];\n\t\t\tif (dirty[1] & /*computedScrollElasticity*/ 8192) shapestyleeditor_changes.scrollElasticity = /*computedScrollElasticity*/ ctx[44];\n\t\t\tif (dirty[0] & /*willRenderShapeStyleControls*/ 131072) shapestyleeditor_changes.willRenderControls = /*willRenderShapeStyleControls*/ ctx[17];\n\t\t\tshapestyleeditor.$set(shapestyleeditor_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(shapestyleeditor);\n\t\t}\n\t};\n}\n\n// (1368:20) {#if shouldRenderPresets}\nfunction create_if_block_9(ctx) {\n\tlet div;\n\tlet shapepresetspalette;\n\tlet current;\n\n\tshapepresetspalette = new ShapePresetsPalette({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tpresets: /*shapePresets*/ ctx[18],\n\t\t\t\tenableSelectImage: /*enablePresetSelectImage*/ ctx[11],\n\t\t\t\twillRenderPresetToolbar: /*runWillRenderPresetToolbarHook*/ ctx[43],\n\t\t\t\tonaddpreset: /*handleAddPreset*/ ctx[94],\n\t\t\t\tongrabpreset: /*handleGrabPreset*/ ctx[91],\n\t\t\t\tondragpreset: /*handleDragPreset*/ ctx[92],\n\t\t\t\tondroppreset: /*handleDropPreset*/ ctx[93],\n\t\t\t\tscrollElasticity: /*computedScrollElasticity*/ ctx[44]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(shapepresetspalette.$$.fragment);\n\t\t\tattr(div, \"class\", \"PinturaControlPanel\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(shapepresetspalette, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapepresetspalette_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) shapepresetspalette_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[0] & /*shapePresets*/ 262144) shapepresetspalette_changes.presets = /*shapePresets*/ ctx[18];\n\t\t\tif (dirty[0] & /*enablePresetSelectImage*/ 2048) shapepresetspalette_changes.enableSelectImage = /*enablePresetSelectImage*/ ctx[11];\n\t\t\tif (dirty[1] & /*runWillRenderPresetToolbarHook*/ 4096) shapepresetspalette_changes.willRenderPresetToolbar = /*runWillRenderPresetToolbarHook*/ ctx[43];\n\t\t\tif (dirty[1] & /*computedScrollElasticity*/ 8192) shapepresetspalette_changes.scrollElasticity = /*computedScrollElasticity*/ ctx[44];\n\t\t\tshapepresetspalette.$set(shapepresetspalette_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapepresetspalette.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapepresetspalette.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(shapepresetspalette);\n\t\t}\n\t};\n}\n\n// (1396:12) {#if (showToolbar && hasMultipleTools) || toolbarLayout === 'row'}\nfunction create_if_block_3(ctx) {\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaControlListScroller\",\n\t\t\t\telasticity: /*computedScrollElasticity*/ ctx[44],\n\t\t\t\t$$slots: { default: [create_default_slot_2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(scrollable, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[1] & /*computedScrollElasticity*/ 8192) scrollable_changes.elasticity = /*computedScrollElasticity*/ ctx[44];\n\n\t\t\tif (dirty[0] & /*locale, shapeControls, willRenderShapeStyleControls, toolbarLayout, toolActive*/ 131729 | dirty[1] & /*markupShapeSelected, markupDraft, toolsFiltered, hasMultipleTools*/ 262155 | dirty[6] & /*$$scope*/ 262144) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(scrollable, detaching);\n\t\t}\n\t};\n}\n\n// (1401:20) {#if hasMultipleTools}\nfunction create_if_block_5(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tclass: \"PinturaControlList\",\n\t\t\t\toptionClass: \"PinturaControlListOption\",\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*toolsFiltered*/ ctx[32],\n\t\t\t\tselectedIndex: /*toolsFiltered*/ ctx[32].findIndex(/*func*/ ctx[152]),\n\t\t\t\tonchange: /*updateActiveTool*/ ctx[79],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot_1,\n\t\t\t\t\t\t({ option }) => ({ 203: option }),\n\t\t\t\t\t\t({ option }) => [0, 0, 0, 0, 0, 0, option ? 131072 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) radiogroup_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[1] & /*toolsFiltered*/ 2) radiogroup_changes.options = /*toolsFiltered*/ ctx[32];\n\t\t\tif (dirty[0] & /*toolActive*/ 1 | dirty[1] & /*toolsFiltered*/ 2) radiogroup_changes.selectedIndex = /*toolsFiltered*/ ctx[32].findIndex(/*func*/ ctx[152]);\n\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*$$scope, option*/ 393216) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (1415:32) {#if option.icon}\nfunction create_if_block_7(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_3] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*$$scope, option*/ 393216) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (1416:36) <Icon >\nfunction create_default_slot_3(ctx) {\n\tlet g;\n\n\tlet raw_value = (isFunction(/*option*/ ctx[203].icon)\n\t? /*option*/ ctx[203].icon(/*locale*/ ctx[4])\n\t: /*option*/ ctx[203].icon) + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*option*/ 131072 && raw_value !== (raw_value = (isFunction(/*option*/ ctx[203].icon)\n\t\t\t? /*option*/ ctx[203].icon(/*locale*/ ctx[4])\n\t\t\t: /*option*/ ctx[203].icon) + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (1424:32) {#if !option.hideLabel}\nfunction create_if_block_6(ctx) {\n\tlet span;\n\n\tlet t_value = (isFunction(/*option*/ ctx[203].label)\n\t? /*option*/ ctx[203].label(/*locale*/ ctx[4])\n\t: /*option*/ ctx[203].label) + \"\";\n\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*option*/ 131072 && t_value !== (t_value = (isFunction(/*option*/ ctx[203].label)\n\t\t\t? /*option*/ ctx[203].label(/*locale*/ ctx[4])\n\t\t\t: /*option*/ ctx[203].label) + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (1414:28) \nfunction create_option_slot_1(ctx) {\n\tlet div;\n\tlet t;\n\tlet current;\n\tlet if_block0 = /*option*/ ctx[203].icon && create_if_block_7(ctx);\n\tlet if_block1 = !/*option*/ ctx[203].hideLabel && create_if_block_6(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(div, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block0) if_block0.m(div, null);\n\t\t\tappend(div, t);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*option*/ ctx[203].icon) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[6] & /*option*/ 131072) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_7(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!/*option*/ ctx[203].hideLabel) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_6(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\tif_block1.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tif_block1.d(1);\n\t\t\t\tif_block1 = null;\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block0) if_block0.d();\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\n// (1435:20) {#if toolbarLayout === 'row'}\nfunction create_if_block_4(ctx) {\n\tlet shapestyleeditor;\n\tlet current;\n\n\tshapestyleeditor = new ShapeStyleEditor({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tshape: /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49],\n\t\t\t\tonchange: /*handleUpdateSelectedMarkupShape*/ ctx[86],\n\t\t\t\tcontrols: /*shapeControls*/ ctx[9],\n\t\t\t\tscrollEnable: false,\n\t\t\t\thideTitles: true,\n\t\t\t\twillRenderControls: /*func_1*/ ctx[153]\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapestyleeditor.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapestyleeditor, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapestyleeditor_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) shapestyleeditor_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[1] & /*markupShapeSelected, markupDraft*/ 262145) shapestyleeditor_changes.shape = /*markupShapeSelected*/ ctx[31] || /*markupDraft*/ ctx[49];\n\t\t\tif (dirty[0] & /*shapeControls*/ 512) shapestyleeditor_changes.controls = /*shapeControls*/ ctx[9];\n\t\t\tif (dirty[0] & /*willRenderShapeStyleControls*/ 131072) shapestyleeditor_changes.willRenderControls = /*func_1*/ ctx[153];\n\t\t\tshapestyleeditor.$set(shapestyleeditor_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapestyleeditor.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapestyleeditor, detaching);\n\t\t}\n\t};\n}\n\n// (1397:16) <Scrollable class=\"PinturaControlListScroller\" elasticity={computedScrollElasticity} >\nfunction create_default_slot_2(ctx) {\n\tlet t;\n\tlet if_block1_anchor;\n\tlet current;\n\tlet if_block0 = /*hasMultipleTools*/ ctx[34] && create_if_block_5(ctx);\n\tlet if_block1 = /*toolbarLayout*/ ctx[7] === 'row' && create_if_block_4(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tif_block1_anchor = empty();\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tif (if_block0) if_block0.m(target, anchor);\n\t\t\tinsert(target, t, anchor);\n\t\t\tif (if_block1) if_block1.m(target, anchor);\n\t\t\tinsert(target, if_block1_anchor, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*hasMultipleTools*/ ctx[34]) {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tif_block0.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*hasMultipleTools*/ 8) {\n\t\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = create_if_block_5(ctx);\n\t\t\t\t\tif_block0.c();\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(t.parentNode, t);\n\t\t\t\t}\n\t\t\t} else if (if_block0) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block0, 1, 1, () => {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (/*toolbarLayout*/ ctx[7] === 'row') {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[0] & /*toolbarLayout*/ 128) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block_4(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(if_block1_anchor.parentNode, if_block1_anchor);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (if_block0) if_block0.d(detaching);\n\t\t\tif (detaching) detach(t);\n\t\t\tif (if_block1) if_block1.d(detaching);\n\t\t\tif (detaching) detach(if_block1_anchor);\n\t\t}\n\t};\n}\n\n// (1468:8) {#if hasToolbarGroups}\nfunction create_if_block$1(ctx) {\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\tclass: \"PinturaControlListScroller\",\n\t\t\t\telasticity: /*computedScrollElasticity*/ ctx[44],\n\t\t\t\t$$slots: { default: [create_default_slot$4] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(scrollable, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[1] & /*computedScrollElasticity*/ 8192) scrollable_changes.elasticity = /*computedScrollElasticity*/ ctx[44];\n\n\t\t\tif (dirty[0] & /*locale, toolGroupActiveIndex*/ 67108880 | dirty[1] & /*toolbarGroups*/ 8388608 | dirty[6] & /*$$scope*/ 262144) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(scrollable, detaching);\n\t\t}\n\t};\n}\n\n// (1483:24) {#if option.icon}\nfunction create_if_block_1(ctx) {\n\tlet icon;\n\tlet current;\n\n\ticon = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot_1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(icon.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(icon, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst icon_changes = {};\n\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*$$scope, option*/ 393216) {\n\t\t\t\ticon_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon.$set(icon_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(icon, detaching);\n\t\t}\n\t};\n}\n\n// (1484:28) <Icon >\nfunction create_default_slot_1(ctx) {\n\tlet g;\n\n\tlet raw_value = (isFunction(/*option*/ ctx[203].icon)\n\t? /*option*/ ctx[203].icon(/*locale*/ ctx[4])\n\t: /*option*/ ctx[203].icon) + \"\";\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = raw_value;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*option*/ 131072 && raw_value !== (raw_value = (isFunction(/*option*/ ctx[203].icon)\n\t\t\t? /*option*/ ctx[203].icon(/*locale*/ ctx[4])\n\t\t\t: /*option*/ ctx[203].icon) + \"\")) g.innerHTML = raw_value;\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\n// (1482:20) \nfunction create_option_slot$2(ctx) {\n\tlet div;\n\tlet t0;\n\tlet span;\n\n\tlet t1_value = (isFunction(/*option*/ ctx[203].label)\n\t? /*option*/ ctx[203].label(/*locale*/ ctx[4])\n\t: /*option*/ ctx[203].label) + \"\";\n\n\tlet t1;\n\tlet current;\n\tlet if_block = /*option*/ ctx[203].icon && create_if_block_1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block) if_block.c();\n\t\t\tt0 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt1 = text(t1_value);\n\t\t\tattr(div, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t\tappend(div, t0);\n\t\t\tappend(div, span);\n\t\t\tappend(span, t1);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (/*option*/ ctx[203].icon) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[6] & /*option*/ 131072) {\n\t\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block_1(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\ttransition_in(if_block, 1);\n\t\t\t\t\tif_block.m(div, t0);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block, 1, 1, () => {\n\t\t\t\t\tif_block = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif ((!current || dirty[0] & /*locale*/ 16 | dirty[6] & /*option*/ 131072) && t1_value !== (t1_value = (isFunction(/*option*/ ctx[203].label)\n\t\t\t? /*option*/ ctx[203].label(/*locale*/ ctx[4])\n\t\t\t: /*option*/ ctx[203].label) + \"\")) set_data(t1, t1_value);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\n// (1469:12) <Scrollable class=\"PinturaControlListScroller\" elasticity={computedScrollElasticity}>\nfunction create_default_slot$4(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tclass: \"PinturaControlList\",\n\t\t\t\toptionClass: \"PinturaControlListOption\",\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*toolbarGroups*/ ctx[54],\n\t\t\t\tselectedIndex: /*toolbarGroups*/ ctx[54].findIndex(/*func_2*/ ctx[154]),\n\t\t\t\tonchange: /*updateActiveToolGroup*/ ctx[78],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot$2,\n\t\t\t\t\t\t({ option }) => ({ 203: option }),\n\t\t\t\t\t\t({ option }) => [0, 0, 0, 0, 0, 0, option ? 131072 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 16) radiogroup_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[1] & /*toolbarGroups*/ 8388608) radiogroup_changes.options = /*toolbarGroups*/ ctx[54];\n\t\t\tif (dirty[0] & /*toolGroupActiveIndex*/ 67108864 | dirty[1] & /*toolbarGroups*/ 8388608) radiogroup_changes.selectedIndex = /*toolbarGroups*/ ctx[54].findIndex(/*func_2*/ ctx[154]);\n\n\t\t\tif (dirty[0] & /*locale*/ 16 | dirty[6] & /*$$scope, option*/ 393216) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (1364:4) \nfunction create_footer_slot$3(ctx) {\n\tlet div;\n\tlet current_block_type_index;\n\tlet if_block0;\n\tlet t;\n\tlet current;\n\tconst if_block_creators = [create_if_block_2, create_if_block_10];\n\tconst if_blocks = [];\n\n\tfunction select_block_type(ctx, dirty) {\n\t\tif (/*shouldRenderControls*/ ctx[52]) return 0;\n\t\tif (/*shouldRenderPresets*/ ctx[45]) return 1;\n\t\treturn -1;\n\t}\n\n\tif (~(current_block_type_index = select_block_type(ctx))) {\n\t\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t}\n\n\tlet if_block1 = /*hasToolbarGroups*/ ctx[33] && create_if_block$1(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tif (if_block0) if_block0.c();\n\t\t\tt = space();\n\t\t\tif (if_block1) if_block1.c();\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[40]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].m(div, null);\n\t\t\t}\n\n\t\t\tappend(div, t);\n\t\t\tif (if_block1) if_block1.m(div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tlet previous_block_index = current_block_type_index;\n\t\t\tcurrent_block_type_index = select_block_type(ctx);\n\n\t\t\tif (current_block_type_index === previous_block_index) {\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_blocks[current_block_type_index].p(ctx, dirty);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (if_block0) {\n\t\t\t\t\tgroup_outros();\n\n\t\t\t\t\ttransition_out(if_blocks[previous_block_index], 1, 1, () => {\n\t\t\t\t\t\tif_blocks[previous_block_index] = null;\n\t\t\t\t\t});\n\n\t\t\t\t\tcheck_outros();\n\t\t\t\t}\n\n\t\t\t\tif (~current_block_type_index) {\n\t\t\t\t\tif_block0 = if_blocks[current_block_type_index];\n\n\t\t\t\t\tif (!if_block0) {\n\t\t\t\t\t\tif_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n\t\t\t\t\t\tif_block0.c();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif_block0.p(ctx, dirty);\n\t\t\t\t\t}\n\n\t\t\t\t\ttransition_in(if_block0, 1);\n\t\t\t\t\tif_block0.m(div, t);\n\t\t\t\t} else {\n\t\t\t\t\tif_block0 = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (/*hasToolbarGroups*/ ctx[33]) {\n\t\t\t\tif (if_block1) {\n\t\t\t\t\tif_block1.p(ctx, dirty);\n\n\t\t\t\t\tif (dirty[1] & /*hasToolbarGroups*/ 4) {\n\t\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif_block1 = create_if_block$1(ctx);\n\t\t\t\t\tif_block1.c();\n\t\t\t\t\ttransition_in(if_block1, 1);\n\t\t\t\t\tif_block1.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block1) {\n\t\t\t\tgroup_outros();\n\n\t\t\t\ttransition_out(if_block1, 1, 1, () => {\n\t\t\t\t\tif_block1 = null;\n\t\t\t\t});\n\n\t\t\t\tcheck_outros();\n\t\t\t}\n\n\t\t\tif (!current || dirty[1] & /*footerStyle*/ 512) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[40]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(if_block0);\n\t\t\ttransition_in(if_block1);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(if_block0);\n\t\t\ttransition_out(if_block1);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\n\t\t\tif (~current_block_type_index) {\n\t\t\t\tif_blocks[current_block_type_index].d();\n\t\t\t}\n\n\t\t\tif (if_block1) if_block1.d();\n\t\t}\n\t};\n}\n\nfunction create_fragment$b(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\thasHeader: /*shouldRenderHeaderTools*/ ctx[41],\n\t\t\t\t$$slots: {\n\t\t\t\t\tfooter: [create_footer_slot$3],\n\t\t\t\t\tmain: [create_main_slot],\n\t\t\t\t\theader: [create_header_slot]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[164]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\t\t\tif (dirty[1] & /*shouldRenderHeaderTools*/ 1024) util_changes.hasHeader = /*shouldRenderHeaderTools*/ ctx[41];\n\n\t\t\tif (dirty[0] & /*locale, toolGroupActiveIndex, shapeControls, willRenderShapeStyleControls, toolbarLayout, toolActive, shapePresets, enablePresetSelectImage, pingHub, enablePresetDropImage, shapes, utilKey, imageRotation, imageFlipX, imageFlipY, toolSelectRadius, enableButtonFlipVertical, mapScreenPointToImagePoint, mapImagePointToScreenPoint, enableTapToAddText, textInputMode, snapThreshold, enableSnapToContext, gridSize, ping, markupEditor, headerTools*/ 2113929201 | dirty[1] & /*footerStyle, computedScrollElasticity, toolbarGroups, hasToolbarGroups, markupShapeSelected, markupDraft, toolsFiltered, hasMultipleTools, showToolbar, runWillRenderPresetToolbarHook, shouldRenderPresets, shouldRenderControls, cursorStyle, $parentRect, $rootRect, $utilRectPadded, markupOffset, $enablePanInputStatus, $imageTransformsInterpolated, $isActive, $isActiveFraction, $rootColorSecondary, toolEraseRadius, preventPointerSnapping, layoutEditorHooks, shouldRenderShapeEditor*/ 134216703 | dirty[6] & /*$$scope*/ 262144) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nlet isPanning = false;\n\nfunction instance$b($$self, $$props, $$invalidate) {\n\tlet holdingOptionKey;\n\tlet hasToolbarGroups;\n\tlet toolbarGroups;\n\tlet activeToolbar;\n\tlet toolsFiltered;\n\tlet hasShapeControls;\n\tlet hasMultipleTools;\n\tlet hasTools;\n\tlet showToolbar;\n\tlet hasActiveTool;\n\tlet shouldRenderControls;\n\tlet toolOptions;\n\tlet interactionMode;\n\tlet shouldRenderShapeEditor;\n\tlet markupOffset;\n\tlet markupShapeKeys;\n\tlet markupSelected;\n\tlet markupEditing;\n\tlet markupDraft;\n\tlet markupToolShape;\n\tlet markupToolStylesComputed;\n\tlet markupShapeSelected;\n\tlet preventPointerSnapping;\n\tlet toolEraseRadius;\n\tlet userEnabledPanModeWithKeyboard;\n\tlet userEnabledPanModeWithButton;\n\tlet enablePanMode;\n\tlet isEditingText;\n\tlet customCursor;\n\tlet isHoveringOverImage;\n\tlet cursorStyle;\n\tlet shouldRenderPresets;\n\tlet shouldStickToImage;\n\tlet ping;\n\tlet computedScrollElasticity;\n\tlet runWillRenderPresetToolbarHook;\n\tlet layoutEditorHooks;\n\tlet headerTools;\n\tlet shouldRenderHeaderTools;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(35, $isActive = $$value)), isActive);\n\n\tlet $isAnimated;\n\tlet $env;\n\tlet $redrawTrigger;\n\n\tlet $shapes,\n\t\t$$unsubscribe_shapes = noop,\n\t\t$$subscribe_shapes = () => ($$unsubscribe_shapes(), $$unsubscribe_shapes = subscribe(shapes, $$value => $$invalidate(142, $shapes = $$value)), shapes);\n\n\tlet $elasticityMultiplier;\n\tlet $stageRect;\n\tlet $imageTransformsInterpolated;\n\tlet $imageSelectionPan;\n\tlet $stageScalar;\n\tlet $imageSelectionRect;\n\n\tlet $parentRect,\n\t\t$$unsubscribe_parentRect = noop,\n\t\t$$subscribe_parentRect = () => ($$unsubscribe_parentRect(), $$unsubscribe_parentRect = subscribe(parentRect, $$value => $$invalidate(37, $parentRect = $$value)), parentRect);\n\n\tlet $imageCropRect;\n\tlet $enablePanInputStatus;\n\tlet $imageSize;\n\tlet $keysPressedStore;\n\tlet $shapePreprocessor;\n\tlet $selection;\n\tlet $ui;\n\tlet $utilRectPadded;\n\n\tlet $isVisible,\n\t\t$$unsubscribe_isVisible = noop,\n\t\t$$subscribe_isVisible = () => ($$unsubscribe_isVisible(), $$unsubscribe_isVisible = subscribe(isVisible, $$value => $$invalidate(149, $isVisible = $$value)), isVisible);\n\n\tlet $imagePreviewModifiers;\n\tlet $rootRect;\n\n\tlet $isActiveFraction,\n\t\t$$unsubscribe_isActiveFraction = noop,\n\t\t$$subscribe_isActiveFraction = () => ($$unsubscribe_isActiveFraction(), $$unsubscribe_isActiveFraction = subscribe(isActiveFraction, $$value => $$invalidate(56, $isActiveFraction = $$value)), isActiveFraction);\n\n\tlet $rootColorSecondary;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_shapes());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_parentRect());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isVisible());\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActiveFraction());\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { isActiveFraction } = $$props;\n\t$$subscribe_isActiveFraction();\n\tlet { isVisible } = $$props;\n\t$$subscribe_isVisible();\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { shapes } = $$props;\n\t$$subscribe_shapes();\n\tlet { toolbar = [] } = $$props;\n\tlet { toolShapes = {} } = $$props;\n\tlet { toolActive = undefined } = $$props;\n\tlet { toolSelectRadius = undefined } = $$props;\n\tlet { toolRetainStyles = false } = $$props;\n\tlet { toolbarLayout = 'stack' } = $$props;\n\tlet { textInputMode = undefined } = $$props;\n\tlet { shapeControls = {} } = $$props;\n\tlet { enableButtonFlipVertical = false } = $$props;\n\tlet { enablePresetSelectImage = true } = $$props;\n\tlet { enablePresetDropImage = true } = $$props;\n\tlet { enableSelectToolToAddShape = false } = $$props;\n\tlet { enableAutoSelectMoveTool = ['line', 'arrow', 'path', 'rectangle', 'ellipse', 'text'] } = $$props;\n\tlet { enableTapToAddText = false } = $$props;\n\tlet { enableMoveTool = false } = $$props;\n\tlet { enableViewTool = false } = $$props;\n\tlet { enableToolShareStyles = true } = $$props;\n\tlet { gridSize = 0 } = $$props;\n\tlet { snapThreshold = 0 } = $$props;\n\tlet { enableSnapToContext = true } = $$props;\n\tlet { willRenderHeaderTools = passthrough } = $$props;\n\tlet { willRenderPresetToolbar = undefined } = $$props;\n\tlet { willRenderShapeStyleControls = undefined } = $$props;\n\tlet { willStartInteraction = undefined } = $$props;\n\tlet { shapePresets = [] } = $$props;\n\tlet { utilKey } = $$props;\n\tlet { mapScreenPointToImagePoint } = $$props;\n\tlet { mapImagePointToScreenPoint } = $$props;\n\tlet { imageRotation = 0 } = $$props;\n\tlet { imageFlipX = false } = $$props;\n\tlet { imageFlipY = false } = $$props;\n\tlet { parentRect } = $$props;\n\t$$subscribe_parentRect();\n\tlet { hooks = {} } = $$props;\n\n\t// context\n\tconst selection = getContext('selection');\n\n\tcomponent_subscribe($$self, selection, value => $$invalidate(148, $selection = value));\n\tconst isAnimated = getContext('isAnimated');\n\tcomponent_subscribe($$self, isAnimated, value => $$invalidate(139, $isAnimated = value));\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(143, $elasticityMultiplier = value));\n\tconst ui = getContext('ui');\n\tcomponent_subscribe($$self, ui, value => $$invalidate(174, $ui = value));\n\tconst keysPressedStore = getContext('keysPressed');\n\tcomponent_subscribe($$self, keysPressedStore, value => $$invalidate(146, $keysPressedStore = value));\n\n\t// this makes sure tool shapes are only updated when a new tool shapes object is set\n\tlet activeToolShapes;\n\n\t// stores\n\tconst { env, history, rootRect, rootColorSecondary, enablePanInput, enablePanInputStatus, enableZoomInput, stageRect, utilRectPadded, scrollElasticity, imageOverlayMarkup, imagePreviewModifiers, imageCropRect, shapePreprocessor, stageScalar, imageSelectionRect, imageTransformsInterpolated, imageSelectionPan, imageSize, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\n\tcomponent_subscribe($$self, env, value => $$invalidate(140, $env = value));\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(55, $rootRect = value));\n\tcomponent_subscribe($$self, rootColorSecondary, value => $$invalidate(57, $rootColorSecondary = value));\n\tcomponent_subscribe($$self, enablePanInputStatus, value => $$invalidate(38, $enablePanInputStatus = value));\n\tcomponent_subscribe($$self, stageRect, value => $$invalidate(144, $stageRect = value));\n\tcomponent_subscribe($$self, utilRectPadded, value => $$invalidate(39, $utilRectPadded = value));\n\tcomponent_subscribe($$self, imagePreviewModifiers, value => $$invalidate(150, $imagePreviewModifiers = value));\n\tcomponent_subscribe($$self, imageCropRect, value => $$invalidate(173, $imageCropRect = value));\n\tcomponent_subscribe($$self, shapePreprocessor, value => $$invalidate(147, $shapePreprocessor = value));\n\tcomponent_subscribe($$self, stageScalar, value => $$invalidate(171, $stageScalar = value));\n\tcomponent_subscribe($$self, imageSelectionRect, value => $$invalidate(172, $imageSelectionRect = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(36, $imageTransformsInterpolated = value));\n\tcomponent_subscribe($$self, imageSelectionPan, value => $$invalidate(170, $imageSelectionPan = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(145, $imageSize = value));\n\n\t// remove presets tool if no shape presets defined\n\tconst filterToolbarItems = (toolbarItems, { willRenderPresetToolbar, shapePresets, enableViewTool, enableMoveTool }) => {\n\t\tlet tools = shapePresets.length === 0 && !willRenderPresetToolbar\n\t\t? toolbarItems.filter(tool => tool[0] !== 'preset')\n\t\t: toolbarItems;\n\n\t\tif (hasToolbarGroups) {\n\t\t\ttools = [\n\t\t\t\t// add move tool\n\t\t\t\t[\n\t\t\t\t\t'move',\n\t\t\t\t\tlocale => locale['shapeLabelToolMove'],\n\t\t\t\t\t{\n\t\t\t\t\t\ticon: locale => locale['shapeIconToolMove']\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t// add view tool\n\t\t\t\t[\n\t\t\t\t\t'view',\n\t\t\t\t\tlocale => locale['shapeLabelToolView'],\n\t\t\t\t\t{\n\t\t\t\t\t\ticon: locale => locale['shapeIconToolView']\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t// rest of tools\n\t\t\t\t...tools\n\t\t\t];\n\t\t}\n\n\t\t// filter move tool\n\t\ttools = enableMoveTool\n\t\t? tools\n\t\t: tools.filter(tool => tool[0] !== 'move');\n\n\t\t// filter view tool\n\t\treturn enableViewTool\n\t\t? tools\n\t\t: tools.filter(tool => tool[0] !== 'view');\n\t};\n\n\tlet toolGroupActiveIndex = 0;\n\tlet groupToolActive = {};\n\n\tconst updateActiveToolGroup = ({ index }, event) => {\n\t\t$$invalidate(26, toolGroupActiveIndex = index);\n\t\t$$invalidate(0, toolActive = groupToolActive[index]);\n\t};\n\n\tconst updateActiveTool = ({ value }, event) => {\n\t\t$$invalidate(0, toolActive = value);\n\n\t\t// if is keyboard navigating or should add shape\n\t\tif (enableSelectToolToAddShape || (/enter/i).test(event.key)) {\n\t\t\tAddToolDefaultShape(value);\n\t\t}\n\t};\n\n\tconst AddToolDefaultShape = tool => {\n\t\tconst [shape, options] = activeToolShapes[tool];\n\t\tlet isRelative = options.position === 'relative';\n\t\tlet shapeToAdd;\n\t\tlet size;\n\t\tconst x = isRelative ? '0%' : 0;\n\t\tconst y = isRelative ? '0%' : 0;\n\n\t\tif (shapeIsRect(shape) || shapeIsText(shape)) {\n\t\t\tsize = isRelative ? '20%' : $parentRect.width * 0.2;\n\t\t\tshapeToAdd = shapeDeepCopy(shape);\n\t\t\tshapeToAdd.x = x;\n\t\t\tshapeToAdd.y = y;\n\t\t\tshapeUpdateProps(shapeToAdd, { width: size, height: size }, $parentRect);\n\t\t} else if (shapeIsEllipse(shape)) {\n\t\t\tsize = isRelative ? '10%' : $parentRect.width * 0.1;\n\t\t\tshapeToAdd = shapeDeepCopy(shape);\n\t\t\tshapeToAdd.x = x;\n\t\t\tshapeToAdd.y = y;\n\t\t\tshapeUpdateProps(shapeToAdd, { rx: size, ry: size }, $parentRect);\n\t\t} else if (shapeIsLine(shape)) {\n\t\t\tsize = isRelative ? '10%' : $parentRect.width * 0.1;\n\t\t\tshapeToAdd = shapeDeepCopy(shape);\n\t\t\tshapeToAdd.x1 = x;\n\t\t\tshapeToAdd.y1 = y;\n\t\t\tshapeToAdd.x2 = x;\n\t\t\tshapeToAdd.y2 = y;\n\t\t}\n\n\t\tif (!shapeToAdd) return;\n\n\t\tPromise.resolve().then(() => {\n\t\t\taddShape(createShapeAtPosition(shapeToAdd, undefined, size));\n\t\t});\n\t};\n\n\tconst mapScreenEventToImagePoint = e => mapScreenPointToImagePoint(getEventPositionInEditor(e, $rootRect));\n\n\t// A reference to the markup editor, we need this so we can call exported functions\n\tlet markupEditor;\n\n\t// the current tool styles\n\tlet markupToolStyles = {};\n\n\t// toggle seleciton remove mode\n\tlet storedSelectionMode;\n\n\tconst toggleSelectionDraftRemoveMode = isRemoveMode => {\n\t\tif (!markupEditor) return;\n\t\tconst draft = markupEditor.getShapeDraft(selection);\n\t\tif (!draft) return;\n\n\t\tif (isRemoveMode) {\n\t\t\tstoredSelectionMode = draft.drawMode;\n\t\t}\n\n\t\tmarkupEditor.updateShapeDraft(\n\t\t\t{\n\t\t\t\tdrawMode: isRemoveMode ? 'subtract' : storedSelectionMode\n\t\t\t},\n\t\t\tselection\n\t\t);\n\t};\n\n\t//\n\t// Create new shape\n\t//\n\tlet interactionHandler;\n\n\tconst handleInteractionStart = e => {\n\t\t// is erasing\n\t\tif (toolActive === 'eraser') {\n\t\t\tinteractionHandler = markupEditor.eraseShape();\n\t\t} else // is creating or extending shapes\n\t\tif (toolActive && activeToolShapes[toolActive]) {\n\t\t\tconst [shape, options = {}] = activeToolShapes[toolActive];\n\n\t\t\t// if is new selection we need to clear target list\n\t\t\tconst { drawMode } = markupShapeSelected;\n\n\t\t\tif (interactionMode === 'selection' && drawMode === 'new') {\n\t\t\t\t// clear selection\n\t\t\t\tselection.set([]);\n\t\t\t}\n\n\t\t\tlet shapeOverrides = {};\n\n\t\t\tif (interactionMode === 'selection') {\n\t\t\t\tping('selectiondown', [...$selection]);\n\n\t\t\t\t// adjust shape if option key held down\n\t\t\t\tif (holdingOptionKey) {\n\t\t\t\t\tstoredSelectionMode = shape.drawMode;\n\t\t\t\t\tshapeOverrides.drawMode = 'subtract';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// start creating shape\n\t\t\tinteractionHandler = markupEditor.createShape(\n\t\t\t\t{\n\t\t\t\t\t...shape,\n\t\t\t\t\t...markupToolStylesComputed,\n\t\t\t\t\t...shapeOverrides\n\t\t\t\t},\n\t\t\t\toptions\n\t\t\t);\n\t\t} else // something else\n\t\t{\n\t\t\tinteractionHandler = undefined;\n\t\t}\n\n\t\tif (!interactionHandler) return false;\n\t\tinteractionHandler.start(e);\n\t\treturn true;\n\t};\n\n\tconst handleInteractionUpdate = e => {\n\t\tif (!interactionHandler) return false;\n\t\tinteractionHandler.update(e);\n\t\treturn true;\n\t};\n\n\tconst handleInteractionRelease = e => {\n\t\tif (!interactionHandler) return false;\n\t\tinteractionHandler.release(e);\n\t\treturn true;\n\t};\n\n\tconst handleInteractionCancel = e => {\n\t\tif (!interactionHandler) return false;\n\t\tinteractionHandler.cancel(e);\n\t\tinteractionHandler = undefined;\n\t\treturn true;\n\t};\n\n\tconst handleInteractionEnd = e => {\n\t\tif (!interactionHandler) return false;\n\t\tinteractionHandler.end(e);\n\t\tinteractionHandler = undefined;\n\n\t\tif (interactionMode === 'selection') {\n\t\t\t// clear selection if not is brush\n\t\t\tif (e.detail.isTap) {\n\t\t\t\tconst [shape] = activeToolShapes[toolActive];\n\t\t\t\tif (!shape.bitmap) selection.set([]);\n\t\t\t}\n\n\t\t\t// selection up\n\t\t\tping('selectionup', [...$selection]);\n\t\t}\n\n\t\t// when a shape is built with multiple clicks a draft might still be active\n\t\tconst draft = markupEditor.getMarkupItemDraft();\n\n\t\t// always fall back to move when done with current tool\n\t\tconst canSwitchToMoveTool = enableMoveTool && (enableAutoSelectMoveTool === true || Array.isArray(enableAutoSelectMoveTool) && enableAutoSelectMoveTool.includes(toolActive));\n\n\t\t// should switch back to move tool if draft is finished OR if draft is there and is text editing\n\t\tif ((!draft || draft.isEditing) && canSwitchToMoveTool) {\n\t\t\t$$invalidate(0, toolActive = 'move');\n\t\t}\n\n\t\treturn true;\n\t};\n\n\tconst confirmDraft = draft => {\n\t\tconst isPolygon = shapeIsPath(draft) && hasProp(draft, 'pathClose');\n\t\tif (!isPolygon) return;\n\n\t\t// show stroke color\n\t\tconst strokeColor = [...draft.strokeColor];\n\n\t\tstrokeColor[3] = 1;\n\n\t\t// update the draft shape\n\t\tmarkupEditor.updateMarkupShape(\n\t\t\tdraft,\n\t\t\t{\n\t\t\t\t// don't close this path\n\t\t\t\tpathClose: false, // wait with sync till confirm\n\t\t\t\t// set opaque stroke color\n\t\t\t\tstrokeColor\n\t\t\t},\n\t\t\tfalse\n\t\t); // wait with sync till confirm\n\n\t\tmarkupEditor.removeMarkupShapeProps(draft, ['backgroundColor'], false); // wait with sync till confirm\n\t\tmarkupEditor.confirmMarkupItemDraft();\n\t\tmarkupEditor.selectShape(draft);\n\t};\n\n\tconst handleKey = e => {\n\t\tconst { key } = e;\n\t\tconst draft = markupEditor.getMarkupItemDraft();\n\n\t\tif ((/escape/i).test(key) && draft) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tmarkupEditor.discardMarkupItemDraft();\n\t\t\tinteractionHandler = undefined;\n\t\t}\n\n\t\tif ((/enter/i).test(key) && draft) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tconfirmDraft(draft);\n\t\t\tinteractionHandler = undefined;\n\t\t}\n\t};\n\n\tconst blurOnToolSwitch = () => {\n\t\tif (!markupEditor || toolActive === 'move') return;\n\t\tmarkupEditor.blurShapes();\n\t};\n\n\tconst getStoredStyles = () => {\n\t\treturn $ui[utilKey] ? $ui[utilKey][toolActive] : {};\n\t};\n\n\t// if toolShapes are updated we reset the current tool styles as chose by the user, this allows us to set styles programatically\n\tconst didUpdateToolShapes = () => {\n\t\t$$invalidate(116, markupToolStyles = {});\n\t};\n\n\tconst updateInterfaceState = (util, tool, computedStyles) => {\n\t\tconst utilObj = $ui[util];\n\t\tconst toolObj = utilObj ? utilObj[tool] : {};\n\n\t\tui.set({\n\t\t\t...$ui,\n\t\t\t[util]: {\n\t\t\t\t...utilObj,\n\t\t\t\t[tool]: { ...toolObj, ...computedStyles }\n\t\t\t}\n\t\t});\n\t};\n\n\tconst resetInterfaceState = util => {\n\t\tui.set({ [util]: {} });\n\t};\n\n\tlet updateWriteHistoryTimeoutId;\n\n\tfunction handleUpdateSelectedMarkupShape(props) {\n\t\t// remember style for when creating or styling other element\n\t\tObject.keys(props).forEach(key => {\n\t\t\tconst { retain = true, share = true } = markupToolShape.settings && markupToolShape.settings[key] || {};\n\n\t\t\t// don't save this style\n\t\t\tif (!retain) return;\n\n\t\t\t// should we share this style with other tools? by setting `share` to false we can exclude specific styles\n\t\t\tif (enableToolShareStyles && share) {\n\t\t\t\t$$invalidate(116, markupToolStyles[key] = props[key], markupToolStyles);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// create tool styles island\n\t\t\tif (!markupToolStyles[toolActive]) $$invalidate(116, markupToolStyles[toolActive] = {}, markupToolStyles);\n\n\t\t\t// save style\n\t\t\t$$invalidate(116, markupToolStyles[toolActive][key] = props[key], markupToolStyles);\n\t\t});\n\n\t\t// fire event\n\t\tping('selectstyle', props);\n\n\t\t// it's possible we're only updating tool styles\n\t\tif (!markupSelected) return;\n\n\t\t// update element\n\t\tmarkupEditor.updateMarkupShape(markupSelected, props);\n\n\t\t// update markup style with delay so we don't write every state change to history (mainly relevant for color changes when dragging color)\n\t\tclearTimeout(updateWriteHistoryTimeoutId);\n\n\t\tupdateWriteHistoryTimeoutId = setTimeout(\n\t\t\t() => {\n\t\t\t\thandleMarkupUpdate();\n\t\t\t},\n\t\t\t200\n\t\t);\n\t}\n\n\t// eraser\n\tconst getValueInContext = (value, context) => {\n\t\tif (isNumber(value)) {\n\t\t\treturn value;\n\t\t}\n\n\t\tif (value.endsWith('%')) {\n\t\t\tconst f = parseFloat(value) / 100;\n\t\t\treturn f * context.width;\n\t\t}\n\n\t\treturn undefined;\n\t};\n\n\tlet shapeUnderPointer = undefined;\n\tlet canvasHoverPosition = undefined;\n\tlet imageHoverPosition = undefined;\n\n\tconst updateCustomCursor = cursorShapes => {\n\t\timageOverlayMarkup.update(shapes => {\n\t\t\treturn [\n\t\t\t\t// remove previous cursor shapes\n\t\t\t\t...shapes.filter(shape => shape.id !== `cursor-${utilKey}`),\n\t\t\t\t// add new cursor shapes\n\t\t\t\t...cursorShapes\n\t\t\t];\n\t\t});\n\t};\n\n\tconst removeCustomCursor = () => {\n\t\timageOverlayMarkup.update(shapes => {\n\t\t\treturn shapes.filter(shape => shape.id !== `cursor-${utilKey}`);\n\t\t});\n\t};\n\n\tconst handleHoverCanvas = (_, canvasPosition, imagePosition) => {\n\t\t$$invalidate(118, canvasHoverPosition = canvasPosition);\n\t\t$$invalidate(119, imageHoverPosition = imagePosition);\n\t};\n\n\tconst handleLeaveCanvas = () => {\n\t\t$$invalidate(119, imageHoverPosition = undefined);\n\t\t$$invalidate(118, canvasHoverPosition = undefined);\n\t};\n\n\tconst getCustomCursorDescription = ({ cursorStyle, cursorSize }, computedToolStyles, context) => {\n\t\tlet size;\n\t\tconst propValue = computedToolStyles[cursorSize];\n\n\t\t// cursor size itself is percentage\n\t\tif (propValue === undefined) {\n\t\t\tsize = getValueInContext(cursorSize, context);\n\t\t} else // cursor size prop has pixel value\n\t\tif (isNumber(propValue)) {\n\t\t\tsize = propValue;\n\t\t} else // cursor size prop has percentage, compute value based on key\n\t\tif (isString(propValue)) {\n\t\t\tsize = shapeComputeProp(cursorSize, computedToolStyles[cursorSize], context);\n\n\t\t\tif (cursorSize === 'strokeWidth') {\n\t\t\t\tsize *= 0.5;\n\t\t\t}\n\t\t}\n\n\t\t// no size\n\t\tif (size <= 0 || size === undefined) return;\n\n\t\treturn { size, style: cursorStyle };\n\t};\n\n\tconst getCursorStyle = (customCursor, shapeUnderPointer, shapeSelected, panInputEnabled, isPanning, currentTool) => {\n\t\t// hide cursor if eraser radius is set\n\t\tif (panInputEnabled) return isPanning ? 'grabbing' : 'grab';\n\n\t\t// hide cursor\n\t\tif (customCursor && !shapeUnderPointer) return 'none';\n\n\t\t// no shape, return crosshair\n\t\tif (!shapeUnderPointer) return currentTool === 'move' ? 'default' : 'crosshair';\n\n\t\t// treat both as the same shape\n\t\tlet shape = shapeUnderPointer || shapeSelected;\n\n\t\t// can select (else won't hover)\n\t\tif (!shapeIsSelected(shape)) return 'default';\n\n\t\t// show text input cursor\n\t\tif (shapeIsEditing(shape)) {\n\t\t\tif (textInputMode === 'modal') return 'default';\n\t\t\treturn 'text';\n\t\t}\n\n\t\t// show move cursor\n\t\tif (shapeCanMove(shape)) return 'move';\n\n\t\t// can't move\n\t\treturn 'default';\n\t};\n\n\t//#endregion\n\tconst handleTapCanvas = details => {\n\t\tping('markuptap', details);\n\t};\n\n\tconst handleHoverShape = shape => $$invalidate(117, shapeUnderPointer = shape);\n\n\tconst createShapeAtPosition = (shape, position, size) => {\n\t\t// position defaults to crop center\n\t\tlet positionIsCenter = false;\n\n\t\tif (!position) {\n\t\t\t// is centering to stage\n\t\t\tpositionIsCenter = true;\n\n\t\t\t// calculate image or rect position\n\t\t\tposition = shouldStickToImage\n\t\t\t? mapScreenPointToImagePoint(rectCenter($stageRect))\n\t\t\t: rectCenter($imageCropRect);\n\t\t}\n\n\t\t// adjust offset if parent rect is image crop rect\n\t\tposition.x -= $parentRect.x || 0;\n\n\t\tposition.y -= $parentRect.y || 0;\n\n\t\t// de-flip shape\n\t\tif (imageFlipX || imageFlipY) {\n\t\t\tshape.flipX = imageFlipX;\n\t\t\tshape.flipY = imageFlipY;\n\t\t}\n\n\t\t// reposition if there's already shapes at position and shape isn't full screen\n\t\tconst shapesAlreadyAtPosition = markupEditor.getShapesNearPosition($shapes, position);\n\n\t\tif (positionIsCenter && shapesAlreadyAtPosition.length) {\n\t\t\tconst dist = Math.min($imageCropRect.width, $imageCropRect.height) * 0.1;\n\t\t\tposition.x += Math.round(-dist + Math.random() * dist * 2);\n\t\t\tposition.y += Math.round(-dist + Math.random() * dist * 2);\n\t\t}\n\n\t\t// de-rotate shape\n\t\tif (imageRotation !== 0) {\n\t\t\tif (imageFlipX && imageFlipY) shape.rotation = -imageRotation; else if (imageFlipX) shape.rotation = imageRotation; else if (imageFlipY) shape.rotation = imageRotation; else shape.rotation = -imageRotation;\n\t\t}\n\n\t\tif (hasProp(shape, 'width') && hasProp(shape, 'height')) {\n\t\t\tconst { width, height } = shapeGetPropsPixelValues(shape, ['width', 'height'], $parentRect);\n\n\t\t\tshapeUpdateProps(\n\t\t\t\tshape,\n\t\t\t\t{\n\t\t\t\t\tx: position.x - width * 0.5,\n\t\t\t\t\ty: position.y - height * 0.5\n\t\t\t\t},\n\t\t\t\t$parentRect\n\t\t\t);\n\t\t} else if (shapeIsEllipse(shape)) {\n\t\t\tshapeUpdateProps(shape, { x: position.x, y: position.y }, $parentRect);\n\t\t} else if (shapeIsLine(shape)) {\n\t\t\tconst { x1, y1, x2, y2 } = shapeGetPropsPixelValues(shape, ['x1', 'y1', 'x2', 'y2'], $parentRect);\n\t\t\tconst dist = vectorDistance(vectorCreate(x1, y1), vectorCreate(x2, y2));\n\n\t\t\tconst l = isString(size)\n\t\t\t? toPixelValue(size, $parentRect.width)\n\t\t\t: dist;\n\n\t\t\tshapeUpdateProps(\n\t\t\t\tshape,\n\t\t\t\t{\n\t\t\t\t\tx1: position.x - l,\n\t\t\t\t\ty1: position.y + l,\n\t\t\t\t\tx2: position.x + l,\n\t\t\t\t\ty2: position.y - l\n\t\t\t\t},\n\t\t\t\t$parentRect\n\t\t\t);\n\t\t} else if (shapeIsPath(shape)) {\n\t\t\tconst { points } = shapeGetPropsPixelValues(shape, ['points'], $parentRect);\n\t\t\tconst center = vectorCenter(points);\n\n\t\t\tshapeUpdateProps(\n\t\t\t\tshape,\n\t\t\t\t{\n\t\t\t\t\tpoints: points.map(point => ({\n\t\t\t\t\t\tx: point.x + position.x - center.x,\n\t\t\t\t\t\ty: point.y + position.y - center.y\n\t\t\t\t\t}))\n\t\t\t\t},\n\t\t\t\t$parentRect\n\t\t\t);\n\t\t}\n\n\t\treturn shape;\n\t};\n\n\tconst addPreset = (preset, position) => {\n\t\tconst shape = createShapeAtPosition(shapeCreateFromPreset(preset, $imageCropRect), position);\n\n\t\t// force position\n\t\tif (preset.shape) {\n\t\t\tif (hasProp(preset.shape, 'x')) shape.x = preset.shape.x;\n\t\t\tif (hasProp(preset.shape, 'y')) shape.y = preset.shape.y;\n\t\t}\n\n\t\treturn addShape(shape);\n\t};\n\n\tconst addShape = shape => {\n\t\tconst { beforeAddShape = () => true } = hooks;\n\t\tif (!beforeAddShape(shape)) return;\n\t\tmarkupEditor.addShape(shape);\n\t\tmarkupEditor.selectShape(shape);\n\t\tping('addshape', shape);\n\t\thistory.write();\n\t\treturn shape;\n\t};\n\n\tlet dragCancelled = false;\n\n\tconst handleGrabPreset = () => {\n\t\tdragCancelled = false;\n\t};\n\n\tconst handleDragPreset = (preset, e) => {\n\t\tif (dragCancelled) return;\n\t\tconst { beforeAddShape = () => true } = hooks;\n\t\tconst position = mapScreenEventToImagePoint(e);\n\n\t\t// create or update if is inside image\n\t\tconst draft = markupEditor.getMarkupItemDraft();\n\n\t\tconst inCropRect = rectContainsPoint($imageCropRect, {\n\t\t\t// adjust offset if parent rect is image crop rect\n\t\t\tx: position.x + ($parentRect.x || 0),\n\t\t\ty: position.y + ($parentRect.y || 0)\n\t\t});\n\n\t\t// remove draft if not dragging inside image\n\t\tif (draft && !inCropRect) markupEditor.discardMarkupItemDraft();\n\n\t\t// stop here if we're not in the crop rect\n\t\tif (!inCropRect) return;\n\n\t\t// create draft shape\n\t\tif (!draft) {\n\t\t\tconst presetShape = shapeCreateFromPreset(preset, $imageCropRect);\n\t\t\tconst shape = createShapeAtPosition(presetShape, position);\n\n\t\t\tif (!beforeAddShape(shape)) {\n\t\t\t\tdragCancelled = true;\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tshapeMakeDraft(shape);\n\t\t\tmarkupEditor.addShape(shape);\n\t\t\treturn;\n\t\t}\n\n\t\t// center shape on pointer if it has dimensions\n\t\tif (shapeIsRect(draft)) {\n\t\t\tposition.x -= draft.width * 0.5;\n\t\t\tposition.y -= draft.height * 0.5;\n\t\t}\n\n\t\t// force position\n\t\tif (preset.shape) {\n\t\t\tif (hasProp(preset.shape, 'x')) position.x = preset.shape.x;\n\t\t\tif (hasProp(preset.shape, 'y')) position.y = preset.shape.y;\n\t\t}\n\n\t\t// update the draft shape\n\t\tmarkupEditor.updateMarkupShape(draft, position);\n\t};\n\n\tconst handleDropPreset = (_, e) => {\n\t\tif (dragCancelled) return;\n\t\tconst position = mapScreenEventToImagePoint(e);\n\n\t\tif (!rectContainsPoint($imageCropRect, {\n\t\t\tx: position.x + ($parentRect.x || 0),\n\t\t\ty: position.y + ($parentRect.y || 0)\n\t\t})) {\n\t\t\tmarkupEditor.discardMarkupItemDraft();\n\t\t\treturn;\n\t\t}\n\n\t\t// confirm shape\n\t\tconst shape = markupEditor.confirmMarkupItemDraft();\n\n\t\tmarkupEditor.selectShape(shape);\n\n\t\t// shape added\n\t\tping('addshape', shape);\n\n\t\t// update history\n\t\thistory.write();\n\t};\n\n\tconst handleAddPreset = preset => addPreset(preset);\n\tconst handleAddFiles = (files, position) => files.forEach(file => addPreset(file, position));\n\tconst handleDropFiles = e => handleAddFiles(e.detail.resources, mapScreenEventToImagePoint(e.detail.event));\n\n\tconst handleWillStartInteraction = position => {\n\t\tif (!willStartInteraction) return true;\n\n\t\t// calculate current image selection rect\n\t\tconst selectionRect = rectClone($imageSelectionRect);\n\n\t\trectScale(selectionRect, 1 / $stageScalar);\n\t\trectTranslate(selectionRect, $imageSelectionPan);\n\t\trectScale(selectionRect, $imageTransformsInterpolated.scale);\n\n\t\t// should return true if interaction is allowed\n\t\treturn willStartInteraction(position, {\n\t\t\t...selectionRect,\n\t\t\tx: selectionRect.x + $stageRect.x,\n\t\t\ty: selectionRect.y + $stageRect.y\n\t\t});\n\t};\n\n\t//\n\t// History\n\t//\n\tconst handleMarkupUpdate = () => {\n\t\thistory.write();\n\t};\n\n\t// used to fire ping events from\n\tlet pingHub;\n\n\t//\n\t// preset toolbar\n\t//\n\tconst redrawTrigger = getContext('redrawTrigger');\n\n\tcomponent_subscribe($$self, redrawTrigger, value => $$invalidate(141, $redrawTrigger = value));\n\n\t//\n\t// confirm draft text when leaving view\n\t//\n\tconst toggleShapePrerendering = active => {\n\t\tif (!$shapes) return;\n\n\t\tshapes.update(shapes => {\n\t\t\treturn shapes.map(shape => {\n\t\t\t\tshape._prerender = active ? shapeIsEditing(shape) : false;\n\t\t\t\treturn shape;\n\t\t\t});\n\t\t});\n\t};\n\n\t//\n\t// Header style\n\t//\n\tconst headerToolbarStyles = [];\n\n\t//\n\t// Footer style\n\t//\n\tconst footerOffset = spring($isAnimated ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(138, $footerOffset = value));\n\n\tfunction measure_handler_1(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\tconst func = option => option[0] === toolActive;\n\n\tconst func_1 = (controls, env, redraw) => {\n\t\tconst filteredControls = controls.filter(([,key]) => !headerToolbarStyles.includes(key));\n\n\t\treturn willRenderShapeStyleControls\n\t\t? willRenderShapeStyleControls(filteredControls, env, redraw)\n\t\t: filteredControls;\n\t};\n\n\tconst func_2 = option => option[0] === toolGroupActiveIndex;\n\n\tconst func_3 = shape => {\n\t\tPromise.resolve().then(() => {\n\t\t\tping('addshape', shape);\n\t\t\thandleMarkupUpdate();\n\t\t});\n\t};\n\n\tconst func_4 = shape => {\n\t\tping('selectshape', shape);\n\t};\n\n\tconst func_5 = shape => {\n\t\tPromise.resolve().then(() => {\n\t\t\tping('blurshape', shape);\n\t\t});\n\t};\n\n\tconst func_6 = shape => {\n\t\tping('tapshape', shape);\n\t};\n\n\tconst func_7 = shape => {\n\t\tping('updateshape', shape);\n\t\thandleMarkupUpdate();\n\t};\n\n\tconst func_8 = shape => {\n\t\tping('removeshape', shape);\n\t\thandleMarkupUpdate();\n\t};\n\n\tfunction shapelayouteditor_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tmarkupEditor = $$value;\n\t\t\t$$invalidate(27, markupEditor);\n\t\t});\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tpingHub = $$value;\n\t\t\t$$invalidate(28, pingHub);\n\t\t});\n\t}\n\n\tconst func_9 = controls => {\n\t\treturn controls.filter(([,key]) => headerToolbarStyles.includes(key));\n\t};\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(1, isActive = $$props.isActive));\n\t\tif ('isActiveFraction' in $$props) $$subscribe_isActiveFraction($$invalidate(2, isActiveFraction = $$props.isActiveFraction));\n\t\tif ('isVisible' in $$props) $$subscribe_isVisible($$invalidate(3, isVisible = $$props.isVisible));\n\t\tif ('stores' in $$props) $$invalidate(101, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(4, locale = $$props.locale);\n\t\tif ('shapes' in $$props) $$subscribe_shapes($$invalidate(5, shapes = $$props.shapes));\n\t\tif ('toolbar' in $$props) $$invalidate(102, toolbar = $$props.toolbar);\n\t\tif ('toolShapes' in $$props) $$invalidate(103, toolShapes = $$props.toolShapes);\n\t\tif ('toolActive' in $$props) $$invalidate(0, toolActive = $$props.toolActive);\n\t\tif ('toolSelectRadius' in $$props) $$invalidate(6, toolSelectRadius = $$props.toolSelectRadius);\n\t\tif ('toolRetainStyles' in $$props) $$invalidate(104, toolRetainStyles = $$props.toolRetainStyles);\n\t\tif ('toolbarLayout' in $$props) $$invalidate(7, toolbarLayout = $$props.toolbarLayout);\n\t\tif ('textInputMode' in $$props) $$invalidate(8, textInputMode = $$props.textInputMode);\n\t\tif ('shapeControls' in $$props) $$invalidate(9, shapeControls = $$props.shapeControls);\n\t\tif ('enableButtonFlipVertical' in $$props) $$invalidate(10, enableButtonFlipVertical = $$props.enableButtonFlipVertical);\n\t\tif ('enablePresetSelectImage' in $$props) $$invalidate(11, enablePresetSelectImage = $$props.enablePresetSelectImage);\n\t\tif ('enablePresetDropImage' in $$props) $$invalidate(12, enablePresetDropImage = $$props.enablePresetDropImage);\n\t\tif ('enableSelectToolToAddShape' in $$props) $$invalidate(105, enableSelectToolToAddShape = $$props.enableSelectToolToAddShape);\n\t\tif ('enableAutoSelectMoveTool' in $$props) $$invalidate(106, enableAutoSelectMoveTool = $$props.enableAutoSelectMoveTool);\n\t\tif ('enableTapToAddText' in $$props) $$invalidate(13, enableTapToAddText = $$props.enableTapToAddText);\n\t\tif ('enableMoveTool' in $$props) $$invalidate(107, enableMoveTool = $$props.enableMoveTool);\n\t\tif ('enableViewTool' in $$props) $$invalidate(108, enableViewTool = $$props.enableViewTool);\n\t\tif ('enableToolShareStyles' in $$props) $$invalidate(109, enableToolShareStyles = $$props.enableToolShareStyles);\n\t\tif ('gridSize' in $$props) $$invalidate(14, gridSize = $$props.gridSize);\n\t\tif ('snapThreshold' in $$props) $$invalidate(15, snapThreshold = $$props.snapThreshold);\n\t\tif ('enableSnapToContext' in $$props) $$invalidate(16, enableSnapToContext = $$props.enableSnapToContext);\n\t\tif ('willRenderHeaderTools' in $$props) $$invalidate(110, willRenderHeaderTools = $$props.willRenderHeaderTools);\n\t\tif ('willRenderPresetToolbar' in $$props) $$invalidate(111, willRenderPresetToolbar = $$props.willRenderPresetToolbar);\n\t\tif ('willRenderShapeStyleControls' in $$props) $$invalidate(17, willRenderShapeStyleControls = $$props.willRenderShapeStyleControls);\n\t\tif ('willStartInteraction' in $$props) $$invalidate(112, willStartInteraction = $$props.willStartInteraction);\n\t\tif ('shapePresets' in $$props) $$invalidate(18, shapePresets = $$props.shapePresets);\n\t\tif ('utilKey' in $$props) $$invalidate(19, utilKey = $$props.utilKey);\n\t\tif ('mapScreenPointToImagePoint' in $$props) $$invalidate(20, mapScreenPointToImagePoint = $$props.mapScreenPointToImagePoint);\n\t\tif ('mapImagePointToScreenPoint' in $$props) $$invalidate(21, mapImagePointToScreenPoint = $$props.mapImagePointToScreenPoint);\n\t\tif ('imageRotation' in $$props) $$invalidate(22, imageRotation = $$props.imageRotation);\n\t\tif ('imageFlipX' in $$props) $$invalidate(23, imageFlipX = $$props.imageFlipX);\n\t\tif ('imageFlipY' in $$props) $$invalidate(24, imageFlipY = $$props.imageFlipY);\n\t\tif ('parentRect' in $$props) $$subscribe_parentRect($$invalidate(25, parentRect = $$props.parentRect));\n\t\tif ('hooks' in $$props) $$invalidate(113, hooks = $$props.hooks);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[4] & /*$keysPressedStore*/ 4194304) {\n\t\t\t// is holding option key so we can invert selection controls\n\t\t\t$$invalidate(123, holdingOptionKey = $keysPressedStore.includes(18));\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*activeToolShapes, toolShapes*/ 2098176) {\n\t\t\tif (!activeToolShapes || toolShapes !== activeToolShapes) {\n\t\t\t\t$$invalidate(114, activeToolShapes = toolShapes);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\t// enable pan and zoom for shape manipulation plugins\n\t\t\tallowPan.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\tallowZoom.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\tallowZoomControls.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*toolbar*/ 512) {\n\t\t\t$$invalidate(33, hasToolbarGroups = Array.isArray(toolbar) && toolbar.length > 1 && Array.isArray(toolbar[0][1]));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*hasToolbarGroups*/ 4 | $$self.$$.dirty[3] & /*toolbar*/ 512) {\n\t\t\t$$invalidate(54, toolbarGroups = hasToolbarGroups\n\t\t\t? toolbar.map((item, index) => [index, item[0]])\n\t\t\t: []);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolGroupActiveIndex*/ 67108864 | $$self.$$.dirty[1] & /*hasToolbarGroups*/ 4 | $$self.$$.dirty[3] & /*toolbar*/ 512) {\n\t\t\t$$invalidate(137, activeToolbar = hasToolbarGroups\n\t\t\t? toolbar[toolGroupActiveIndex][1]\n\t\t\t: toolbar);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shapePresets*/ 262144 | $$self.$$.dirty[3] & /*willRenderPresetToolbar, enableMoveTool, enableViewTool*/ 311296 | $$self.$$.dirty[4] & /*activeToolbar*/ 8192) {\n\t\t\t$$invalidate(32, toolsFiltered = filterToolbarItems(activeToolbar, {\n\t\t\t\twillRenderPresetToolbar,\n\t\t\t\tshapePresets,\n\t\t\t\tenableMoveTool,\n\t\t\t\tenableViewTool\n\t\t\t}));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*toolsFiltered*/ 2) {\n\t\t\t$$invalidate(135, hasTools = !!toolsFiltered.length);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[1] & /*toolsFiltered*/ 2 | $$self.$$.dirty[4] & /*hasTools*/ 2048) {\n\t\t\t// set to first tool in tool bar list if not defined\n\t\t\tif (hasTools && toolActive === undefined) {\n\t\t\t\t$$invalidate(0, toolActive = toolsFiltered[0][0]);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolGroupActiveIndex, toolActive*/ 67108865 | $$self.$$.dirty[1] & /*hasToolbarGroups*/ 4 | $$self.$$.dirty[3] & /*groupToolActive*/ 4194304 | $$self.$$.dirty[4] & /*activeToolbar*/ 8192) {\n\t\t\tif (hasToolbarGroups) {\n\t\t\t\t$$invalidate(115, groupToolActive = {\n\t\t\t\t\t...groupToolActive,\n\t\t\t\t\t[toolGroupActiveIndex]: activeToolbar.map(([key]) => key).includes(toolActive)\n\t\t\t\t\t? // use active tool key\n\t\t\t\t\t\ttoolActive\n\t\t\t\t\t: // the currently selected tool in this group OR the first tool key we find\n\t\t\t\t\t\tgroupToolActive[toolGroupActiveIndex] || activeToolbar[0][0]\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shapeControls*/ 512) {\n\t\t\t$$invalidate(134, hasShapeControls = !!Object.keys(shapeControls).length);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*toolsFiltered*/ 2) {\n\t\t\t$$invalidate(34, hasMultipleTools = toolsFiltered.length > 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*hasMultipleTools, hasToolbarGroups*/ 12) {\n\t\t\t$$invalidate(53, showToolbar = hasMultipleTools || hasToolbarGroups);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1) {\n\t\t\t$$invalidate(136, hasActiveTool = toolActive !== undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*hasActiveTool, hasTools, hasShapeControls*/ 7168) {\n\t\t\t$$invalidate(52, shouldRenderControls = (!hasActiveTool || hasTools) && hasShapeControls);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*pingHub*/ 268435456) {\n\t\t\t$$invalidate(30, ping = pingHub && createPingDispatcher(pingHub));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*ping, toolActive*/ 1073741825 | $$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\t$isActive && ping && ping('selectcontrol', toolActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*utilKey*/ 524288 | $$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$imagePreviewModifiers*/ 67108864) {\n\t\t\t//\n\t\t\t// enable seeing the markup outlines outside of the crop area\n\t\t\t//\n\t\t\tif ($isActive) {\n\t\t\t\tset_store_value(imagePreviewModifiers, $imagePreviewModifiers[utilKey] = { maskMarkupOpacity: 0.85 }, $imagePreviewModifiers);\n\t\t\t} else {\n\t\t\t\tdelete $imagePreviewModifiers[utilKey];\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[3] & /*activeToolShapes*/ 2097152) {\n\t\t\t//\n\t\t\t// Select correct shape collection\n\t\t\t//\n\t\t\t$$invalidate(133, toolOptions = toolActive && activeToolShapes[toolActive]\n\t\t\t? activeToolShapes[toolActive][1]\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*toolOptions*/ 512) {\n\t\t\t$$invalidate(124, interactionMode = toolOptions && toolOptions.isSelection\n\t\t\t? 'selection'\n\t\t\t: 'shapes');\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*holdingOptionKey*/ 1073741824 | $$self.$$.dirty[4] & /*interactionMode*/ 1) {\n\t\t\ttoggleSelectionDraftRemoveMode(interactionMode === 'selection' && holdingOptionKey);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive, markupEditor*/ 134217729) {\n\t\t\tif (toolActive && markupEditor) {\n\t\t\t\tconst draft = markupEditor.getMarkupItemDraft();\n\t\t\t\tif (draft) confirmDraft(draft);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1) {\n\t\t\tif (toolActive) blurOnToolSwitch();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$isVisible*/ 33554432) {\n\t\t\t$$invalidate(51, shouldRenderShapeEditor = $isVisible && $isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$utilRectPadded*/ 256 | $$self.$$.dirty[4] & /*$stageRect*/ 1048576) {\n\t\t\t$$invalidate(50, markupOffset = $utilRectPadded && vectorCreate($stageRect.x - $utilRectPadded.x, $stageRect.y - $utilRectPadded.y));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*shapeControls*/ 512) {\n\t\t\t$$invalidate(132, markupShapeKeys = Object.keys(shapeControls));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$shapes*/ 262144) {\n\t\t\t$$invalidate(120, markupSelected = $isActive && $shapes.filter(shapeIsSelected)[0]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$shapes*/ 262144) {\n\t\t\t$$invalidate(129, markupEditing = $isActive && $shapes.find(shape => shapeIsEditing(shape)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$shapes*/ 262144) {\n\t\t\t$$invalidate(49, markupDraft = $isActive && $shapes.find(shape => shapeIsDraft(shape)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[3] & /*activeToolShapes*/ 2097152) {\n\t\t\t$$invalidate(126, markupToolShape = $isActive && activeToolShapes[toolActive]\n\t\t\t? shapeFormat(shapeDeepCopy({\n\t\t\t\t\t...activeToolShapes[toolActive][0],\n\t\t\t\t\t...getStoredStyles()\n\t\t\t\t}))\n\t\t\t: {});\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*activeToolShapes*/ 2097152) {\n\t\t\tif (activeToolShapes) didUpdateToolShapes();\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[3] & /*markupToolStyles, enableToolShareStyles*/ 8454144 | $$self.$$.dirty[4] & /*markupToolShape, markupShapeKeys*/ 260) {\n\t\t\t// compute markup styles\n\t\t\t$$invalidate(125, markupToolStylesComputed = markupToolShape && Object.keys(markupToolShape).reduce(\n\t\t\t\t(prev, key) => {\n\t\t\t\t\t// is styling prevented\n\t\t\t\t\tconst isDisableStyleProp = key === 'disableStyle';\n\n\t\t\t\t\tconst isStyleSettingsProp = key === 'settings';\n\n\t\t\t\t\t// can this prop be styled\n\t\t\t\t\tconst isStylableProp = !!markupShapeKeys.find(shapeKey => shapeKey.split('_').includes(key));\n\n\t\t\t\t\t// skip props that can't be styled, but keep all `disable` props\n\t\t\t\t\tif (!isDisableStyleProp && !isStyleSettingsProp && !isStylableProp) return prev;\n\n\t\t\t\t\t// skip props that are set to undefined, this means they won't auto-inherit current styles (line won't inherit line ends)\n\t\t\t\t\tif (markupToolShape[key] === undefined) return prev;\n\n\t\t\t\t\t// if all styling is disabled we use original shape value\n\t\t\t\t\tif (markupToolShape.disableStyle === true) return prev;\n\n\t\t\t\t\t// if this style key is in disabled list we always use original value\n\t\t\t\t\tif (markupToolShape.disableStyle && markupToolShape.disableStyle.includes(key)) return prev;\n\n\t\t\t\t\t// if is trying to assign undefined strokeWidth to path\n\t\t\t\t\tif (key === 'strokeWidth' && Object.keys(markupToolStyles).includes('strokeWidth') && markupToolStyles[key] === undefined && hasProp(markupToolShape, 'points')) {\n\t\t\t\t\t\tprev[key] = markupToolShape[key];\n\t\t\t\t\t\treturn prev;\n\t\t\t\t\t}\n\n\t\t\t\t\t// get options for this style\n\t\t\t\t\tconst { share = true } = markupToolShape.settings && markupToolShape.settings[key] || {};\n\n\t\t\t\t\t// where to get styles\n\t\t\t\t\tconst styles = enableToolShareStyles && share\n\t\t\t\t\t? markupToolStyles\n\t\t\t\t\t: markupToolStyles[toolActive] || {};\n\n\t\t\t\t\t// set style\n\t\t\t\t\tprev[key] = hasProp(styles, key)\n\t\t\t\t\t? // use merged styles\n\t\t\t\t\t\tstyles[key]\n\t\t\t\t\t: // tool default styles\n\t\t\t\t\t\tmarkupToolShape[key];\n\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*utilKey, toolActive*/ 524289 | $$self.$$.dirty[3] & /*toolRetainStyles*/ 2048 | $$self.$$.dirty[4] & /*markupToolStylesComputed*/ 2) {\n\t\t\ttoolRetainStyles\n\t\t\t? updateInterfaceState(utilKey, toolActive, markupToolStylesComputed)\n\t\t\t: resetInterfaceState(utilKey);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[3] & /*markupSelected*/ 134217728 | $$self.$$.dirty[4] & /*$selection, markupToolStylesComputed*/ 16777218) {\n\t\t\t$$invalidate(31, markupShapeSelected = $selection && $isActive\n\t\t\t? markupSelected || markupToolStylesComputed\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*markupShapeSelected*/ 1 | $$self.$$.dirty[4] & /*$shapePreprocessor*/ 8388608) {\n\t\t\t// TODO: remove temporary warning while everyone switches to 8.7.0+\n\t\t\tif (markupShapeSelected && markupShapeSelected.lineEnd && !$shapePreprocessor) {\n\t\t\t\tconsole.warn(`Set shapePreprocessor property to draw lineStart and lineEnd styles.\\nhttps://pqina.nl/pintura/docs/v8/api/exports/#createshapepreprocessor`);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[4] & /*markupToolShape*/ 4) {\n\t\t\t// don't enable snapping for eraser\n\t\t\t$$invalidate(48, preventPointerSnapping = hasProp(markupToolShape, 'eraseRadius') || hasProp(markupToolShape, 'points') && !hasProp(markupToolShape, 'pathClose') || toolActive === 'move' || toolActive === 'view');\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$parentRect*/ 64 | $$self.$$.dirty[4] & /*markupToolShape*/ 4) {\n\t\t\t$$invalidate(47, toolEraseRadius = markupToolShape && markupToolShape.eraseRadius !== undefined\n\t\t\t? getValueInContext(markupToolShape.eraseRadius, $parentRect)\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$keysPressedStore*/ 4194304) {\n\t\t\t//#region Pan and Zoom\n\t\t\t$$invalidate(130, userEnabledPanModeWithKeyboard = $isActive && $keysPressedStore.includes(32)); // is holding space\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\t$$invalidate(131, userEnabledPanModeWithButton = $isActive && toolActive === 'view');\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*userEnabledPanModeWithButton, userEnabledPanModeWithKeyboard*/ 192) {\n\t\t\t$$invalidate(128, enablePanMode = userEnabledPanModeWithButton || userEnabledPanModeWithKeyboard);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*enablePanMode, markupEditing*/ 48) {\n\t\t\t$$invalidate(127, isEditingText = enablePanMode\n\t\t\t? !!markupEditing || isTextField(document.activeElement)\n\t\t\t: false);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*enablePanMode, isEditingText*/ 24) {\n\t\t\tenablePanInput.set($isActive ? enablePanMode && !isEditingText : true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*isEditingText*/ 8) {\n\t\t\tenableZoomInput.set($isActive ? !isEditingText : true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$parentRect*/ 64 | $$self.$$.dirty[4] & /*markupToolShape, markupToolStylesComputed*/ 6) {\n\t\t\t$$invalidate(121, customCursor = markupToolShape.cursorStyle\n\t\t\t? getCustomCursorDescription(\n\t\t\t\t\tmarkupToolShape,\n\t\t\t\t\t{\n\t\t\t\t\t\t...markupToolShape,\n\t\t\t\t\t\t...markupToolStylesComputed\n\t\t\t\t\t},\n\t\t\t\t\t$parentRect\n\t\t\t\t)\n\t\t\t: undefined);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*imageHoverPosition*/ 67108864 | $$self.$$.dirty[4] & /*$imageSize*/ 2097152) {\n\t\t\t$$invalidate(122, isHoveringOverImage = imageHoverPosition && vectorInSize(imageHoverPosition, $imageSize));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*utilKey*/ 524288 | $$self.$$.dirty[1] & /*$enablePanInputStatus, $imageTransformsInterpolated*/ 160 | $$self.$$.dirty[3] & /*isHoveringOverImage, shapeUnderPointer, customCursor, canvasHoverPosition, holdingOptionKey*/ 1929379840 | $$self.$$.dirty[4] & /*interactionMode*/ 1) {\n\t\t\tif (isHoveringOverImage && !shapeUnderPointer && customCursor && !$enablePanInputStatus) {\n\t\t\t\tconst size = customCursor.size * $imageTransformsInterpolated.scale;\n\n\t\t\t\tconst shape = {\n\t\t\t\t\tid: `cursor-${utilKey}`,\n\t\t\t\t\tx: canvasHoverPosition.x,\n\t\t\t\t\ty: canvasHoverPosition.y,\n\t\t\t\t\tstrokeWidth: 0.5,\n\t\t\t\t\tstrokeColor: [0, 0, 0]\n\t\t\t\t};\n\n\t\t\t\tif (customCursor.style === 'ellipse') {\n\t\t\t\t\tshape.rx = size;\n\t\t\t\t\tshape.ry = size;\n\t\t\t\t}\n\n\t\t\t\tconst shadowShape = {\n\t\t\t\t\tstrokeWidth: 2.5,\n\t\t\t\t\tstrokeColor: [1, 1, 1],\n\t\t\t\t\topacity: 0.75\n\t\t\t\t};\n\n\t\t\t\tconst shadow = { ...shape, ...shadowShape };\n\t\t\t\tconst cursorShapes = [shadow, shape];\n\n\t\t\t\tif (interactionMode === 'selection' && holdingOptionKey) {\n\t\t\t\t\tconst s = size;\n\t\t\t\t\tconst x = canvasHoverPosition.x + s;\n\t\t\t\t\tconst y = canvasHoverPosition.y + s + 4;\n\n\t\t\t\t\tconst minus = {\n\t\t\t\t\t\tid: `cursor-${utilKey}`,\n\t\t\t\t\t\tstrokeWidth: 0.75,\n\t\t\t\t\t\tstrokeColor: [0, 0, 0],\n\t\t\t\t\t\tpoints: [{ x, y }, { x: x + 4, y }]\n\t\t\t\t\t};\n\n\t\t\t\t\tcursorShapes.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t...minus,\n\t\t\t\t\t\t\t...shadowShape,\n\t\t\t\t\t\t\tstrokeWidth: 2,\n\t\t\t\t\t\t\tpoints: [{ x: x - 0.5, y }, { x: x + 4.5, y }]\n\t\t\t\t\t\t},\n\t\t\t\t\t\tminus\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tupdateCustomCursor(cursorShapes);\n\t\t\t} else {\n\t\t\t\tremoveCustomCursor();\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive*/ 1 | $$self.$$.dirty[1] & /*$enablePanInputStatus*/ 128 | $$self.$$.dirty[3] & /*isHoveringOverImage, customCursor, shapeUnderPointer, markupSelected*/ 956301312) {\n\t\t\t$$invalidate(46, cursorStyle = isHoveringOverImage\n\t\t\t? getCursorStyle(customCursor, shapeUnderPointer, markupSelected, $enablePanInputStatus, isPanning, toolActive)\n\t\t\t: // render default cursor\n\t\t\t\t'default');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*toolActive, shapePresets, enablePresetSelectImage*/ 264193 | $$self.$$.dirty[3] & /*willRenderPresetToolbar*/ 262144) {\n\t\t\t//\n\t\t\t// presets\n\t\t\t//\n\t\t\t$$invalidate(45, shouldRenderPresets = toolActive === 'preset' && (shapePresets.length > 0 || enablePresetSelectImage || willRenderPresetToolbar));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$parentRect*/ 64) {\n\t\t\t// if parent rect is a `Size` we're sticking presets to the image context\n\t\t\tshouldStickToImage = !hasProp($parentRect, 'x') && !hasProp($parentRect, 'y');\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$elasticityMultiplier*/ 524288) {\n\t\t\t//\n\t\t\t// scroll components\n\t\t\t//\n\t\t\t$$invalidate(44, computedScrollElasticity = $elasticityMultiplier * scrollElasticity);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*willRenderPresetToolbar*/ 262144 | $$self.$$.dirty[4] & /*$redrawTrigger, $env*/ 196608) {\n\t\t\t$$invalidate(43, runWillRenderPresetToolbarHook = $redrawTrigger && willRenderPresetToolbar\n\t\t\t? items => runSafe(() => willRenderPresetToolbar(items, addPreset, { ...$env }, () => redrawTrigger.set({})))\n\t\t\t: passthrough);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*hooks*/ 1048576) {\n\t\t\t//\n\t\t\t// filter out beforeAdd hook\n\t\t\t//\n\t\t\t$$invalidate(42, layoutEditorHooks = Object.keys(hooks).reduce(\n\t\t\t\t(prev, curr) => {\n\t\t\t\t\tif (curr === 'beforeAddShape' || hooks[curr] === undefined) return prev;\n\t\t\t\t\tprev[curr] = hooks[curr];\n\t\t\t\t\treturn prev;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16) {\n\t\t\ttoggleShapePrerendering($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[3] & /*willRenderHeaderTools*/ 131072 | $$self.$$.dirty[4] & /*$redrawTrigger, $env*/ 196608) {\n\t\t\t$$invalidate(29, headerTools = $redrawTrigger && willRenderHeaderTools([], $env, () => redrawTrigger.set({})));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*headerTools, shapeControls*/ 536871424) {\n\t\t\t// we should render the header if header tools are defined or if a shape style has been propagated to the toolbar\n\t\t\t$$invalidate(41, shouldRenderHeaderTools = !!headerTools.length || !!Object.keys(shapeControls).some(key => headerToolbarStyles.includes(key)));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 16 | $$self.$$.dirty[4] & /*$isAnimated*/ 32768) {\n\t\t\t$isAnimated && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[4] & /*$footerOffset*/ 16384) {\n\t\t\t$$invalidate(40, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\tallowPlayPause.set(false);\n\n\treturn [\n\t\ttoolActive,\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tlocale,\n\t\tshapes,\n\t\ttoolSelectRadius,\n\t\ttoolbarLayout,\n\t\ttextInputMode,\n\t\tshapeControls,\n\t\tenableButtonFlipVertical,\n\t\tenablePresetSelectImage,\n\t\tenablePresetDropImage,\n\t\tenableTapToAddText,\n\t\tgridSize,\n\t\tsnapThreshold,\n\t\tenableSnapToContext,\n\t\twillRenderShapeStyleControls,\n\t\tshapePresets,\n\t\tutilKey,\n\t\tmapScreenPointToImagePoint,\n\t\tmapImagePointToScreenPoint,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\tparentRect,\n\t\ttoolGroupActiveIndex,\n\t\tmarkupEditor,\n\t\tpingHub,\n\t\theaderTools,\n\t\tping,\n\t\tmarkupShapeSelected,\n\t\ttoolsFiltered,\n\t\thasToolbarGroups,\n\t\thasMultipleTools,\n\t\t$isActive,\n\t\t$imageTransformsInterpolated,\n\t\t$parentRect,\n\t\t$enablePanInputStatus,\n\t\t$utilRectPadded,\n\t\tfooterStyle,\n\t\tshouldRenderHeaderTools,\n\t\tlayoutEditorHooks,\n\t\trunWillRenderPresetToolbarHook,\n\t\tcomputedScrollElasticity,\n\t\tshouldRenderPresets,\n\t\tcursorStyle,\n\t\ttoolEraseRadius,\n\t\tpreventPointerSnapping,\n\t\tmarkupDraft,\n\t\tmarkupOffset,\n\t\tshouldRenderShapeEditor,\n\t\tshouldRenderControls,\n\t\tshowToolbar,\n\t\ttoolbarGroups,\n\t\t$rootRect,\n\t\t$isActiveFraction,\n\t\t$rootColorSecondary,\n\t\tselection,\n\t\tisAnimated,\n\t\telasticityMultiplier,\n\t\tui,\n\t\tkeysPressedStore,\n\t\tenv,\n\t\trootRect,\n\t\trootColorSecondary,\n\t\tenablePanInputStatus,\n\t\tstageRect,\n\t\tutilRectPadded,\n\t\timageOverlayMarkup,\n\t\timagePreviewModifiers,\n\t\timageCropRect,\n\t\tshapePreprocessor,\n\t\tstageScalar,\n\t\timageSelectionRect,\n\t\timageTransformsInterpolated,\n\t\timageSelectionPan,\n\t\timageSize,\n\t\tupdateActiveToolGroup,\n\t\tupdateActiveTool,\n\t\thandleInteractionStart,\n\t\thandleInteractionUpdate,\n\t\thandleInteractionRelease,\n\t\thandleInteractionCancel,\n\t\thandleInteractionEnd,\n\t\thandleKey,\n\t\thandleUpdateSelectedMarkupShape,\n\t\thandleHoverCanvas,\n\t\thandleLeaveCanvas,\n\t\thandleTapCanvas,\n\t\thandleHoverShape,\n\t\thandleGrabPreset,\n\t\thandleDragPreset,\n\t\thandleDropPreset,\n\t\thandleAddPreset,\n\t\thandleDropFiles,\n\t\thandleWillStartInteraction,\n\t\thandleMarkupUpdate,\n\t\tredrawTrigger,\n\t\theaderToolbarStyles,\n\t\tfooterOffset,\n\t\tstores,\n\t\ttoolbar,\n\t\ttoolShapes,\n\t\ttoolRetainStyles,\n\t\tenableSelectToolToAddShape,\n\t\tenableAutoSelectMoveTool,\n\t\tenableMoveTool,\n\t\tenableViewTool,\n\t\tenableToolShareStyles,\n\t\twillRenderHeaderTools,\n\t\twillRenderPresetToolbar,\n\t\twillStartInteraction,\n\t\thooks,\n\t\tactiveToolShapes,\n\t\tgroupToolActive,\n\t\tmarkupToolStyles,\n\t\tshapeUnderPointer,\n\t\tcanvasHoverPosition,\n\t\timageHoverPosition,\n\t\tmarkupSelected,\n\t\tcustomCursor,\n\t\tisHoveringOverImage,\n\t\tholdingOptionKey,\n\t\tinteractionMode,\n\t\tmarkupToolStylesComputed,\n\t\tmarkupToolShape,\n\t\tisEditingText,\n\t\tenablePanMode,\n\t\tmarkupEditing,\n\t\tuserEnabledPanModeWithKeyboard,\n\t\tuserEnabledPanModeWithButton,\n\t\tmarkupShapeKeys,\n\t\ttoolOptions,\n\t\thasShapeControls,\n\t\thasTools,\n\t\thasActiveTool,\n\t\tactiveToolbar,\n\t\t$footerOffset,\n\t\t$isAnimated,\n\t\t$env,\n\t\t$redrawTrigger,\n\t\t$shapes,\n\t\t$elasticityMultiplier,\n\t\t$stageRect,\n\t\t$imageSize,\n\t\t$keysPressedStore,\n\t\t$shapePreprocessor,\n\t\t$selection,\n\t\t$isVisible,\n\t\t$imagePreviewModifiers,\n\t\tmeasure_handler_1,\n\t\tfunc,\n\t\tfunc_1,\n\t\tfunc_2,\n\t\tfunc_3,\n\t\tfunc_4,\n\t\tfunc_5,\n\t\tfunc_6,\n\t\tfunc_7,\n\t\tfunc_8,\n\t\tshapelayouteditor_binding,\n\t\tdiv_binding,\n\t\tfunc_9,\n\t\tmeasure_handler\n\t];\n}\n\nclass ShapeUtil extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$b,\n\t\t\tcreate_fragment$b,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tisActive: 1,\n\t\t\t\tisActiveFraction: 2,\n\t\t\t\tisVisible: 3,\n\t\t\t\tstores: 101,\n\t\t\t\tlocale: 4,\n\t\t\t\tshapes: 5,\n\t\t\t\ttoolbar: 102,\n\t\t\t\ttoolShapes: 103,\n\t\t\t\ttoolActive: 0,\n\t\t\t\ttoolSelectRadius: 6,\n\t\t\t\ttoolRetainStyles: 104,\n\t\t\t\ttoolbarLayout: 7,\n\t\t\t\ttextInputMode: 8,\n\t\t\t\tshapeControls: 9,\n\t\t\t\tenableButtonFlipVertical: 10,\n\t\t\t\tenablePresetSelectImage: 11,\n\t\t\t\tenablePresetDropImage: 12,\n\t\t\t\tenableSelectToolToAddShape: 105,\n\t\t\t\tenableAutoSelectMoveTool: 106,\n\t\t\t\tenableTapToAddText: 13,\n\t\t\t\tenableMoveTool: 107,\n\t\t\t\tenableViewTool: 108,\n\t\t\t\tenableToolShareStyles: 109,\n\t\t\t\tgridSize: 14,\n\t\t\t\tsnapThreshold: 15,\n\t\t\t\tenableSnapToContext: 16,\n\t\t\t\twillRenderHeaderTools: 110,\n\t\t\t\twillRenderPresetToolbar: 111,\n\t\t\t\twillRenderShapeStyleControls: 17,\n\t\t\t\twillStartInteraction: 112,\n\t\t\t\tshapePresets: 18,\n\t\t\t\tutilKey: 19,\n\t\t\t\tmapScreenPointToImagePoint: 20,\n\t\t\t\tmapImagePointToScreenPoint: 21,\n\t\t\t\timageRotation: 22,\n\t\t\t\timageFlipX: 23,\n\t\t\t\timageFlipY: 24,\n\t\t\t\tparentRect: 25,\n\t\t\t\thooks: 113\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[101];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget shapes() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset shapes(shapes) {\n\t\tthis.$$set({ shapes });\n\t\tflush();\n\t}\n\n\tget toolbar() {\n\t\treturn this.$$.ctx[102];\n\t}\n\n\tset toolbar(toolbar) {\n\t\tthis.$$set({ toolbar });\n\t\tflush();\n\t}\n\n\tget toolShapes() {\n\t\treturn this.$$.ctx[103];\n\t}\n\n\tset toolShapes(toolShapes) {\n\t\tthis.$$set({ toolShapes });\n\t\tflush();\n\t}\n\n\tget toolActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset toolActive(toolActive) {\n\t\tthis.$$set({ toolActive });\n\t\tflush();\n\t}\n\n\tget toolSelectRadius() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset toolSelectRadius(toolSelectRadius) {\n\t\tthis.$$set({ toolSelectRadius });\n\t\tflush();\n\t}\n\n\tget toolRetainStyles() {\n\t\treturn this.$$.ctx[104];\n\t}\n\n\tset toolRetainStyles(toolRetainStyles) {\n\t\tthis.$$set({ toolRetainStyles });\n\t\tflush();\n\t}\n\n\tget toolbarLayout() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset toolbarLayout(toolbarLayout) {\n\t\tthis.$$set({ toolbarLayout });\n\t\tflush();\n\t}\n\n\tget textInputMode() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset textInputMode(textInputMode) {\n\t\tthis.$$set({ textInputMode });\n\t\tflush();\n\t}\n\n\tget shapeControls() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset shapeControls(shapeControls) {\n\t\tthis.$$set({ shapeControls });\n\t\tflush();\n\t}\n\n\tget enableButtonFlipVertical() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset enableButtonFlipVertical(enableButtonFlipVertical) {\n\t\tthis.$$set({ enableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget enablePresetSelectImage() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset enablePresetSelectImage(enablePresetSelectImage) {\n\t\tthis.$$set({ enablePresetSelectImage });\n\t\tflush();\n\t}\n\n\tget enablePresetDropImage() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset enablePresetDropImage(enablePresetDropImage) {\n\t\tthis.$$set({ enablePresetDropImage });\n\t\tflush();\n\t}\n\n\tget enableSelectToolToAddShape() {\n\t\treturn this.$$.ctx[105];\n\t}\n\n\tset enableSelectToolToAddShape(enableSelectToolToAddShape) {\n\t\tthis.$$set({ enableSelectToolToAddShape });\n\t\tflush();\n\t}\n\n\tget enableAutoSelectMoveTool() {\n\t\treturn this.$$.ctx[106];\n\t}\n\n\tset enableAutoSelectMoveTool(enableAutoSelectMoveTool) {\n\t\tthis.$$set({ enableAutoSelectMoveTool });\n\t\tflush();\n\t}\n\n\tget enableTapToAddText() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset enableTapToAddText(enableTapToAddText) {\n\t\tthis.$$set({ enableTapToAddText });\n\t\tflush();\n\t}\n\n\tget enableMoveTool() {\n\t\treturn this.$$.ctx[107];\n\t}\n\n\tset enableMoveTool(enableMoveTool) {\n\t\tthis.$$set({ enableMoveTool });\n\t\tflush();\n\t}\n\n\tget enableViewTool() {\n\t\treturn this.$$.ctx[108];\n\t}\n\n\tset enableViewTool(enableViewTool) {\n\t\tthis.$$set({ enableViewTool });\n\t\tflush();\n\t}\n\n\tget enableToolShareStyles() {\n\t\treturn this.$$.ctx[109];\n\t}\n\n\tset enableToolShareStyles(enableToolShareStyles) {\n\t\tthis.$$set({ enableToolShareStyles });\n\t\tflush();\n\t}\n\n\tget gridSize() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset gridSize(gridSize) {\n\t\tthis.$$set({ gridSize });\n\t\tflush();\n\t}\n\n\tget snapThreshold() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset snapThreshold(snapThreshold) {\n\t\tthis.$$set({ snapThreshold });\n\t\tflush();\n\t}\n\n\tget enableSnapToContext() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset enableSnapToContext(enableSnapToContext) {\n\t\tthis.$$set({ enableSnapToContext });\n\t\tflush();\n\t}\n\n\tget willRenderHeaderTools() {\n\t\treturn this.$$.ctx[110];\n\t}\n\n\tset willRenderHeaderTools(willRenderHeaderTools) {\n\t\tthis.$$set({ willRenderHeaderTools });\n\t\tflush();\n\t}\n\n\tget willRenderPresetToolbar() {\n\t\treturn this.$$.ctx[111];\n\t}\n\n\tset willRenderPresetToolbar(willRenderPresetToolbar) {\n\t\tthis.$$set({ willRenderPresetToolbar });\n\t\tflush();\n\t}\n\n\tget willRenderShapeStyleControls() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset willRenderShapeStyleControls(willRenderShapeStyleControls) {\n\t\tthis.$$set({ willRenderShapeStyleControls });\n\t\tflush();\n\t}\n\n\tget willStartInteraction() {\n\t\treturn this.$$.ctx[112];\n\t}\n\n\tset willStartInteraction(willStartInteraction) {\n\t\tthis.$$set({ willStartInteraction });\n\t\tflush();\n\t}\n\n\tget shapePresets() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset shapePresets(shapePresets) {\n\t\tthis.$$set({ shapePresets });\n\t\tflush();\n\t}\n\n\tget utilKey() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset utilKey(utilKey) {\n\t\tthis.$$set({ utilKey });\n\t\tflush();\n\t}\n\n\tget mapScreenPointToImagePoint() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset mapScreenPointToImagePoint(mapScreenPointToImagePoint) {\n\t\tthis.$$set({ mapScreenPointToImagePoint });\n\t\tflush();\n\t}\n\n\tget mapImagePointToScreenPoint() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset mapImagePointToScreenPoint(mapImagePointToScreenPoint) {\n\t\tthis.$$set({ mapImagePointToScreenPoint });\n\t\tflush();\n\t}\n\n\tget imageRotation() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tset imageRotation(imageRotation) {\n\t\tthis.$$set({ imageRotation });\n\t\tflush();\n\t}\n\n\tget imageFlipX() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tset imageFlipX(imageFlipX) {\n\t\tthis.$$set({ imageFlipX });\n\t\tflush();\n\t}\n\n\tget imageFlipY() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tset imageFlipY(imageFlipY) {\n\t\tthis.$$set({ imageFlipY });\n\t\tflush();\n\t}\n\n\tget parentRect() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tset parentRect(parentRect) {\n\t\tthis.$$set({ parentRect });\n\t\tflush();\n\t}\n\n\tget hooks() {\n\t\treturn this.$$.ctx[113];\n\t}\n\n\tset hooks(hooks) {\n\t\tthis.$$set({ hooks });\n\t\tflush();\n\t}\n}\n\nvar _mapImagePointToScreenPoint = (imagePoint, canvasSize, imageSize, imageOrigin, imageTranslation, imageRotation, imageScalar, imageFlipX, imageFlipY) => {\n const mappedPoint = vectorClone(imagePoint);\n const imageCenterX = imageSize.width * 0.5;\n const imageCenterY = imageSize.height * 0.5;\n const canvasCenterX = canvasSize.width * 0.5;\n const canvasCenterY = canvasSize.height * 0.5;\n const imageOffsetX = imageTranslation.x + imageOrigin.x;\n const imageOffsetY = imageTranslation.y + imageOrigin.y;\n if (imageFlipX)\n mappedPoint.x = imageSize.width - mappedPoint.x;\n if (imageFlipY)\n mappedPoint.y = imageSize.height - mappedPoint.y;\n // rotate around image center based on if image is rotated\n const c = Math.cos(imageRotation);\n const s = Math.sin(imageRotation);\n mappedPoint.x -= imageCenterX;\n mappedPoint.y -= imageCenterY;\n const rx = mappedPoint.x * c - mappedPoint.y * s;\n const ry = mappedPoint.x * s + mappedPoint.y * c;\n mappedPoint.x = imageCenterX + rx;\n mappedPoint.y = imageCenterY + ry;\n // position based on screen transforms\n mappedPoint.x *= imageScalar;\n mappedPoint.y *= imageScalar;\n mappedPoint.x += canvasCenterX;\n mappedPoint.y += canvasCenterY;\n mappedPoint.x += imageOffsetX;\n mappedPoint.y += imageOffsetY;\n mappedPoint.x -= imageCenterX * imageScalar;\n mappedPoint.y -= imageCenterY * imageScalar;\n const tx = (imageTranslation.x - imageOffsetX) * imageScalar;\n const ty = (imageTranslation.y - imageOffsetY) * imageScalar;\n const rtx = tx * c - ty * s;\n const rty = tx * s + ty * c;\n mappedPoint.x += rtx;\n mappedPoint.y += rty;\n return mappedPoint;\n};\n\nvar _mapScreenPointToImagePoint = (screenPoint, canvasSize, imageSize, imageOrigin, imageTranslation, imageRotation, imageScalar, imageFlipX, imageFlipY) => {\n const mappedPoint = vectorClone(screenPoint);\n const imageCenter = sizeCenter(imageSize);\n const canvasCenter = sizeCenter(canvasSize);\n const imageOffset = vectorCreate(imageTranslation.x + imageOrigin.x, imageTranslation.y + imageOrigin.y);\n const c = Math.cos(imageRotation);\n const s = Math.sin(imageRotation);\n mappedPoint.x -= canvasCenter.x;\n mappedPoint.y -= canvasCenter.y;\n const tx = (imageTranslation.x - imageOffset.x) * imageScalar;\n const ty = (imageTranslation.y - imageOffset.y) * imageScalar;\n const rtx = tx * c - ty * s;\n const rty = tx * s + ty * c;\n mappedPoint.x -= rtx;\n mappedPoint.y -= rty;\n mappedPoint.x -= imageOffset.x;\n mappedPoint.y -= imageOffset.y;\n mappedPoint.x /= imageScalar;\n mappedPoint.y /= imageScalar;\n const rx = mappedPoint.x * c + mappedPoint.y * s;\n const ry = mappedPoint.x * s - mappedPoint.y * c;\n mappedPoint.x = rx;\n mappedPoint.y = -ry;\n mappedPoint.x += imageCenter.x;\n mappedPoint.y += imageCenter.y;\n if (imageFlipX)\n mappedPoint.x = imageSize.width - mappedPoint.x;\n if (imageFlipY)\n mappedPoint.y = imageSize.height - mappedPoint.y;\n return mappedPoint;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\n/* src/core/ui/plugins/annotate/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$a(ctx) {\n\tlet shapeutil;\n\tlet updating_toolActive;\n\tlet current;\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\t/*shapeutil_toolActive_binding*/ ctx[58](value);\n\t}\n\n\tlet shapeutil_props = {\n\t\tutilKey: 'annotate',\n\t\tstores: /*stores*/ ctx[4],\n\t\tlocale: /*locale*/ ctx[5],\n\t\tisActive: /*isActive*/ ctx[1],\n\t\tisActiveFraction: /*isActiveFraction*/ ctx[2],\n\t\tisVisible: /*isVisible*/ ctx[3],\n\t\tmapScreenPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[43],\n\t\tmapImagePointToScreenPoint: /*mapImagePointToScreenPoint*/ ctx[42],\n\t\timageRotation: /*$imageRotation*/ ctx[44],\n\t\timageFlipX: /*$imageFlipX*/ ctx[41],\n\t\timageFlipY: /*$imageFlipY*/ ctx[40],\n\t\tshapes: /*imageAnnotation*/ ctx[46],\n\t\ttoolbar: /*annotateTools*/ ctx[20] || /*markupEditorToolbar*/ ctx[6],\n\t\ttoolShapes: /*annotateToolShapes*/ ctx[21] || /*markupEditorToolStyles*/ ctx[7],\n\t\ttoolRetainStyles: /*markupEditorToolRetainStyles*/ ctx[8],\n\t\tenableSelectToolToAddShape: /*enableSelectToolToAddShape*/ ctx[29],\n\t\tenableTapToAddText: /*enableTapToAddText*/ ctx[30],\n\t\tenableViewTool: /*enableViewTool*/ ctx[28],\n\t\tenableMoveTool: /*enableMoveTool*/ ctx[32],\n\t\tenableAutoSelectMoveTool: /*enableAutoSelectMoveTool*/ ctx[31],\n\t\tsnapThreshold: /*markupEditorSnapThreshold*/ ctx[15],\n\t\tgridSize: isNumber(/*annotateGridSize*/ ctx[17])\n\t\t? /*annotateGridSize*/ ctx[17]\n\t\t: /*markupEditorGridSize*/ ctx[14],\n\t\tenableSnapToContext: isBoolean(/*annotateSnapToContext*/ ctx[18])\n\t\t? /*annotateSnapToContext*/ ctx[18]\n\t\t: /*markupEditorSnapToContext*/ ctx[16],\n\t\tenableToolShareStyles: /*markupEditorToolShareStyles*/ ctx[12],\n\t\tshapeControls: /*annotateShapeControls*/ ctx[22] || /*markupEditorShapeStyleControls*/ ctx[9],\n\t\tshapePresets: /*annotatePresets*/ ctx[26],\n\t\tenableButtonFlipVertical: /*annotateEnableButtonFlipVertical*/ ctx[23],\n\t\tparentRect: /*imageSize*/ ctx[47],\n\t\tenablePresetDropImage: /*annotateEnableDropImagePreset*/ ctx[25],\n\t\tenablePresetSelectImage: /*annotateEnableSelectImagePreset*/ ctx[24],\n\t\ttoolSelectRadius: /*markupEditorToolSelectRadius*/ ctx[10],\n\t\ttextInputMode: /*markupEditorTextInputMode*/ ctx[11],\n\t\twillStartInteraction: /*markupEditorWillStartInteraction*/ ctx[13],\n\t\twillRenderPresetToolbar: /*annotateWillRenderShapePresetToolbar*/ ctx[27] || /*willRenderShapePresetToolbar*/ ctx[19],\n\t\thooks: {\n\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[33],\n\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[34],\n\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[35],\n\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[36],\n\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[37],\n\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[38],\n\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[39]\n\t\t}\n\t};\n\n\tif (/*annotateActiveTool*/ ctx[0] !== void 0) {\n\t\tshapeutil_props.toolActive = /*annotateActiveTool*/ ctx[0];\n\t}\n\n\tshapeutil = new ShapeUtil({ props: shapeutil_props });\n\tbinding_callbacks.push(() => bind(shapeutil, 'toolActive', shapeutil_toolActive_binding));\n\tshapeutil.$on(\"measure\", /*measure_handler*/ ctx[59]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapeutil.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapeutil, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapeutil_changes = {};\n\t\t\tif (dirty[0] & /*stores*/ 16) shapeutil_changes.stores = /*stores*/ ctx[4];\n\t\t\tif (dirty[0] & /*locale*/ 32) shapeutil_changes.locale = /*locale*/ ctx[5];\n\t\t\tif (dirty[0] & /*isActive*/ 2) shapeutil_changes.isActive = /*isActive*/ ctx[1];\n\t\t\tif (dirty[0] & /*isActiveFraction*/ 4) shapeutil_changes.isActiveFraction = /*isActiveFraction*/ ctx[2];\n\t\t\tif (dirty[0] & /*isVisible*/ 8) shapeutil_changes.isVisible = /*isVisible*/ ctx[3];\n\t\t\tif (dirty[1] & /*mapScreenPointToImagePoint*/ 4096) shapeutil_changes.mapScreenPointToImagePoint = /*mapScreenPointToImagePoint*/ ctx[43];\n\t\t\tif (dirty[1] & /*mapImagePointToScreenPoint*/ 2048) shapeutil_changes.mapImagePointToScreenPoint = /*mapImagePointToScreenPoint*/ ctx[42];\n\t\t\tif (dirty[1] & /*$imageRotation*/ 8192) shapeutil_changes.imageRotation = /*$imageRotation*/ ctx[44];\n\t\t\tif (dirty[1] & /*$imageFlipX*/ 1024) shapeutil_changes.imageFlipX = /*$imageFlipX*/ ctx[41];\n\t\t\tif (dirty[1] & /*$imageFlipY*/ 512) shapeutil_changes.imageFlipY = /*$imageFlipY*/ ctx[40];\n\t\t\tif (dirty[0] & /*annotateTools, markupEditorToolbar*/ 1048640) shapeutil_changes.toolbar = /*annotateTools*/ ctx[20] || /*markupEditorToolbar*/ ctx[6];\n\t\t\tif (dirty[0] & /*annotateToolShapes, markupEditorToolStyles*/ 2097280) shapeutil_changes.toolShapes = /*annotateToolShapes*/ ctx[21] || /*markupEditorToolStyles*/ ctx[7];\n\t\t\tif (dirty[0] & /*markupEditorToolRetainStyles*/ 256) shapeutil_changes.toolRetainStyles = /*markupEditorToolRetainStyles*/ ctx[8];\n\t\t\tif (dirty[0] & /*enableSelectToolToAddShape*/ 536870912) shapeutil_changes.enableSelectToolToAddShape = /*enableSelectToolToAddShape*/ ctx[29];\n\t\t\tif (dirty[0] & /*enableTapToAddText*/ 1073741824) shapeutil_changes.enableTapToAddText = /*enableTapToAddText*/ ctx[30];\n\t\t\tif (dirty[0] & /*enableViewTool*/ 268435456) shapeutil_changes.enableViewTool = /*enableViewTool*/ ctx[28];\n\t\t\tif (dirty[1] & /*enableMoveTool*/ 2) shapeutil_changes.enableMoveTool = /*enableMoveTool*/ ctx[32];\n\t\t\tif (dirty[1] & /*enableAutoSelectMoveTool*/ 1) shapeutil_changes.enableAutoSelectMoveTool = /*enableAutoSelectMoveTool*/ ctx[31];\n\t\t\tif (dirty[0] & /*markupEditorSnapThreshold*/ 32768) shapeutil_changes.snapThreshold = /*markupEditorSnapThreshold*/ ctx[15];\n\n\t\t\tif (dirty[0] & /*annotateGridSize, markupEditorGridSize*/ 147456) shapeutil_changes.gridSize = isNumber(/*annotateGridSize*/ ctx[17])\n\t\t\t? /*annotateGridSize*/ ctx[17]\n\t\t\t: /*markupEditorGridSize*/ ctx[14];\n\n\t\t\tif (dirty[0] & /*annotateSnapToContext, markupEditorSnapToContext*/ 327680) shapeutil_changes.enableSnapToContext = isBoolean(/*annotateSnapToContext*/ ctx[18])\n\t\t\t? /*annotateSnapToContext*/ ctx[18]\n\t\t\t: /*markupEditorSnapToContext*/ ctx[16];\n\n\t\t\tif (dirty[0] & /*markupEditorToolShareStyles*/ 4096) shapeutil_changes.enableToolShareStyles = /*markupEditorToolShareStyles*/ ctx[12];\n\t\t\tif (dirty[0] & /*annotateShapeControls, markupEditorShapeStyleControls*/ 4194816) shapeutil_changes.shapeControls = /*annotateShapeControls*/ ctx[22] || /*markupEditorShapeStyleControls*/ ctx[9];\n\t\t\tif (dirty[0] & /*annotatePresets*/ 67108864) shapeutil_changes.shapePresets = /*annotatePresets*/ ctx[26];\n\t\t\tif (dirty[0] & /*annotateEnableButtonFlipVertical*/ 8388608) shapeutil_changes.enableButtonFlipVertical = /*annotateEnableButtonFlipVertical*/ ctx[23];\n\t\t\tif (dirty[0] & /*annotateEnableDropImagePreset*/ 33554432) shapeutil_changes.enablePresetDropImage = /*annotateEnableDropImagePreset*/ ctx[25];\n\t\t\tif (dirty[0] & /*annotateEnableSelectImagePreset*/ 16777216) shapeutil_changes.enablePresetSelectImage = /*annotateEnableSelectImagePreset*/ ctx[24];\n\t\t\tif (dirty[0] & /*markupEditorToolSelectRadius*/ 1024) shapeutil_changes.toolSelectRadius = /*markupEditorToolSelectRadius*/ ctx[10];\n\t\t\tif (dirty[0] & /*markupEditorTextInputMode*/ 2048) shapeutil_changes.textInputMode = /*markupEditorTextInputMode*/ ctx[11];\n\t\t\tif (dirty[0] & /*markupEditorWillStartInteraction*/ 8192) shapeutil_changes.willStartInteraction = /*markupEditorWillStartInteraction*/ ctx[13];\n\t\t\tif (dirty[0] & /*annotateWillRenderShapePresetToolbar, willRenderShapePresetToolbar*/ 134742016) shapeutil_changes.willRenderPresetToolbar = /*annotateWillRenderShapePresetToolbar*/ ctx[27] || /*willRenderShapePresetToolbar*/ ctx[19];\n\n\t\t\tif (dirty[1] & /*willRenderShapeControls, willRenderShapeTextControls, beforeAddShape, beforeRemoveShape, beforeDeselectShape, beforeSelectShape, beforeUpdateShape*/ 508) shapeutil_changes.hooks = {\n\t\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[33],\n\t\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[34],\n\t\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[35],\n\t\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[36],\n\t\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[37],\n\t\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[38],\n\t\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[39]\n\t\t\t};\n\n\t\t\tif (!updating_toolActive && dirty[0] & /*annotateActiveTool*/ 1) {\n\t\t\t\tupdating_toolActive = true;\n\t\t\t\tshapeutil_changes.toolActive = /*annotateActiveTool*/ ctx[0];\n\t\t\t\tadd_flush_callback(() => updating_toolActive = false);\n\t\t\t}\n\n\t\t\tshapeutil.$set(shapeutil_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapeutil.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapeutil.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapeutil, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$a($$self, $$props, $$invalidate) {\n\tlet mapScreenPointToImagePoint;\n\tlet mapImagePointToScreenPoint;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $imageTransformsInterpolated;\n\tlet $imageTransforms;\n\tlet $imageSize;\n\tlet $rootRect;\n\tlet $imageRotation;\n\tconst name = 'annotate';\n\tlet { isActive } = $$props;\n\tlet { isActiveFraction } = $$props;\n\tlet { isVisible } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { markupEditorToolbar = undefined } = $$props;\n\tlet { markupEditorToolStyles = undefined } = $$props;\n\tlet { markupEditorToolRetainStyles = undefined } = $$props;\n\tlet { markupEditorShapeStyleControls = undefined } = $$props;\n\tlet { markupEditorToolSelectRadius = undefined } = $$props;\n\tlet { markupEditorTextInputMode = undefined } = $$props;\n\tlet { markupEditorToolShareStyles = undefined } = $$props;\n\tlet { markupEditorWillStartInteraction = undefined } = $$props;\n\tlet { markupEditorGridSize = 0 } = $$props;\n\tlet { markupEditorSnapThreshold = 0 } = $$props;\n\tlet { markupEditorSnapToContext = false } = $$props;\n\tlet { annotateGridSize = undefined } = $$props;\n\tlet { annotateSnapToContext = undefined } = $$props;\n\tlet { willRenderShapePresetToolbar = undefined } = $$props;\n\tlet { annotateTools = undefined } = $$props;\n\tlet { annotateToolShapes = undefined } = $$props;\n\tlet { annotateShapeControls = undefined } = $$props;\n\tlet { annotateActiveTool = undefined } = $$props;\n\tlet { annotateEnableButtonFlipVertical = false } = $$props;\n\tlet { annotateEnableSelectImagePreset = false } = $$props;\n\tlet { annotateEnableDropImagePreset = true } = $$props;\n\tlet { annotatePresets = [] } = $$props;\n\tlet { annotateWillRenderShapePresetToolbar = undefined } = $$props;\n\tlet { enableViewTool = undefined } = $$props;\n\tlet { enableSelectToolToAddShape = undefined } = $$props;\n\tlet { enableTapToAddText = undefined } = $$props;\n\tlet { enableAutoSelectMoveTool = undefined } = $$props;\n\tlet { enableMoveTool = undefined } = $$props;\n\tlet { willRenderShapeControls = undefined } = $$props;\n\tlet { willRenderShapeTextControls = undefined } = $$props;\n\tlet { beforeAddShape = undefined } = $$props;\n\tlet { beforeRemoveShape = undefined } = $$props;\n\tlet { beforeDeselectShape = undefined } = $$props;\n\tlet { beforeSelectShape = undefined } = $$props;\n\tlet { beforeUpdateShape = undefined } = $$props;\n\n\t// connect filter choice to stores\n\tconst { rootRect, imageAnnotation, imageSize, imageRotation, imageFlipX, imageFlipY, imageTransforms, imageTransformsInterpolated } = stores;\n\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(57, $rootRect = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(56, $imageSize = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(44, $imageRotation = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(41, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(40, $imageFlipY = value));\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(55, $imageTransforms = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(54, $imageTransformsInterpolated = value));\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\tannotateActiveTool = value;\n\t\t$$invalidate(0, annotateActiveTool);\n\t}\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(1, isActive = $$props.isActive);\n\t\tif ('isActiveFraction' in $$props) $$invalidate(2, isActiveFraction = $$props.isActiveFraction);\n\t\tif ('isVisible' in $$props) $$invalidate(3, isVisible = $$props.isVisible);\n\t\tif ('stores' in $$props) $$invalidate(4, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(5, locale = $$props.locale);\n\t\tif ('markupEditorToolbar' in $$props) $$invalidate(6, markupEditorToolbar = $$props.markupEditorToolbar);\n\t\tif ('markupEditorToolStyles' in $$props) $$invalidate(7, markupEditorToolStyles = $$props.markupEditorToolStyles);\n\t\tif ('markupEditorToolRetainStyles' in $$props) $$invalidate(8, markupEditorToolRetainStyles = $$props.markupEditorToolRetainStyles);\n\t\tif ('markupEditorShapeStyleControls' in $$props) $$invalidate(9, markupEditorShapeStyleControls = $$props.markupEditorShapeStyleControls);\n\t\tif ('markupEditorToolSelectRadius' in $$props) $$invalidate(10, markupEditorToolSelectRadius = $$props.markupEditorToolSelectRadius);\n\t\tif ('markupEditorTextInputMode' in $$props) $$invalidate(11, markupEditorTextInputMode = $$props.markupEditorTextInputMode);\n\t\tif ('markupEditorToolShareStyles' in $$props) $$invalidate(12, markupEditorToolShareStyles = $$props.markupEditorToolShareStyles);\n\t\tif ('markupEditorWillStartInteraction' in $$props) $$invalidate(13, markupEditorWillStartInteraction = $$props.markupEditorWillStartInteraction);\n\t\tif ('markupEditorGridSize' in $$props) $$invalidate(14, markupEditorGridSize = $$props.markupEditorGridSize);\n\t\tif ('markupEditorSnapThreshold' in $$props) $$invalidate(15, markupEditorSnapThreshold = $$props.markupEditorSnapThreshold);\n\t\tif ('markupEditorSnapToContext' in $$props) $$invalidate(16, markupEditorSnapToContext = $$props.markupEditorSnapToContext);\n\t\tif ('annotateGridSize' in $$props) $$invalidate(17, annotateGridSize = $$props.annotateGridSize);\n\t\tif ('annotateSnapToContext' in $$props) $$invalidate(18, annotateSnapToContext = $$props.annotateSnapToContext);\n\t\tif ('willRenderShapePresetToolbar' in $$props) $$invalidate(19, willRenderShapePresetToolbar = $$props.willRenderShapePresetToolbar);\n\t\tif ('annotateTools' in $$props) $$invalidate(20, annotateTools = $$props.annotateTools);\n\t\tif ('annotateToolShapes' in $$props) $$invalidate(21, annotateToolShapes = $$props.annotateToolShapes);\n\t\tif ('annotateShapeControls' in $$props) $$invalidate(22, annotateShapeControls = $$props.annotateShapeControls);\n\t\tif ('annotateActiveTool' in $$props) $$invalidate(0, annotateActiveTool = $$props.annotateActiveTool);\n\t\tif ('annotateEnableButtonFlipVertical' in $$props) $$invalidate(23, annotateEnableButtonFlipVertical = $$props.annotateEnableButtonFlipVertical);\n\t\tif ('annotateEnableSelectImagePreset' in $$props) $$invalidate(24, annotateEnableSelectImagePreset = $$props.annotateEnableSelectImagePreset);\n\t\tif ('annotateEnableDropImagePreset' in $$props) $$invalidate(25, annotateEnableDropImagePreset = $$props.annotateEnableDropImagePreset);\n\t\tif ('annotatePresets' in $$props) $$invalidate(26, annotatePresets = $$props.annotatePresets);\n\t\tif ('annotateWillRenderShapePresetToolbar' in $$props) $$invalidate(27, annotateWillRenderShapePresetToolbar = $$props.annotateWillRenderShapePresetToolbar);\n\t\tif ('enableViewTool' in $$props) $$invalidate(28, enableViewTool = $$props.enableViewTool);\n\t\tif ('enableSelectToolToAddShape' in $$props) $$invalidate(29, enableSelectToolToAddShape = $$props.enableSelectToolToAddShape);\n\t\tif ('enableTapToAddText' in $$props) $$invalidate(30, enableTapToAddText = $$props.enableTapToAddText);\n\t\tif ('enableAutoSelectMoveTool' in $$props) $$invalidate(31, enableAutoSelectMoveTool = $$props.enableAutoSelectMoveTool);\n\t\tif ('enableMoveTool' in $$props) $$invalidate(32, enableMoveTool = $$props.enableMoveTool);\n\t\tif ('willRenderShapeControls' in $$props) $$invalidate(33, willRenderShapeControls = $$props.willRenderShapeControls);\n\t\tif ('willRenderShapeTextControls' in $$props) $$invalidate(34, willRenderShapeTextControls = $$props.willRenderShapeTextControls);\n\t\tif ('beforeAddShape' in $$props) $$invalidate(35, beforeAddShape = $$props.beforeAddShape);\n\t\tif ('beforeRemoveShape' in $$props) $$invalidate(36, beforeRemoveShape = $$props.beforeRemoveShape);\n\t\tif ('beforeDeselectShape' in $$props) $$invalidate(37, beforeDeselectShape = $$props.beforeDeselectShape);\n\t\tif ('beforeSelectShape' in $$props) $$invalidate(38, beforeSelectShape = $$props.beforeSelectShape);\n\t\tif ('beforeUpdateShape' in $$props) $$invalidate(39, beforeUpdateShape = $$props.beforeUpdateShape);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, $imageFlipX, $imageFlipY*/ 125830656) {\n\t\t\t//\n\t\t\t// Mapping coordinates\n\t\t\t//\n\t\t\t$$invalidate(43, mapScreenPointToImagePoint = point => _mapScreenPointToImagePoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, $imageFlipX, $imageFlipY*/ 125830656) {\n\t\t\t$$invalidate(42, mapImagePointToScreenPoint = point => _mapImagePointToScreenPoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\t};\n\n\treturn [\n\t\tannotateActiveTool,\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tstores,\n\t\tlocale,\n\t\tmarkupEditorToolbar,\n\t\tmarkupEditorToolStyles,\n\t\tmarkupEditorToolRetainStyles,\n\t\tmarkupEditorShapeStyleControls,\n\t\tmarkupEditorToolSelectRadius,\n\t\tmarkupEditorTextInputMode,\n\t\tmarkupEditorToolShareStyles,\n\t\tmarkupEditorWillStartInteraction,\n\t\tmarkupEditorGridSize,\n\t\tmarkupEditorSnapThreshold,\n\t\tmarkupEditorSnapToContext,\n\t\tannotateGridSize,\n\t\tannotateSnapToContext,\n\t\twillRenderShapePresetToolbar,\n\t\tannotateTools,\n\t\tannotateToolShapes,\n\t\tannotateShapeControls,\n\t\tannotateEnableButtonFlipVertical,\n\t\tannotateEnableSelectImagePreset,\n\t\tannotateEnableDropImagePreset,\n\t\tannotatePresets,\n\t\tannotateWillRenderShapePresetToolbar,\n\t\tenableViewTool,\n\t\tenableSelectToolToAddShape,\n\t\tenableTapToAddText,\n\t\tenableAutoSelectMoveTool,\n\t\tenableMoveTool,\n\t\twillRenderShapeControls,\n\t\twillRenderShapeTextControls,\n\t\tbeforeAddShape,\n\t\tbeforeRemoveShape,\n\t\tbeforeDeselectShape,\n\t\tbeforeSelectShape,\n\t\tbeforeUpdateShape,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\tmapImagePointToScreenPoint,\n\t\tmapScreenPointToImagePoint,\n\t\t$imageRotation,\n\t\trootRect,\n\t\timageAnnotation,\n\t\timageSize,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageTransforms,\n\t\timageTransformsInterpolated,\n\t\tname,\n\t\t$imageTransformsInterpolated,\n\t\t$imageTransforms,\n\t\t$imageSize,\n\t\t$rootRect,\n\t\tshapeutil_toolActive_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Annotate extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$a,\n\t\t\tcreate_fragment$a,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 53,\n\t\t\t\tisActive: 1,\n\t\t\t\tisActiveFraction: 2,\n\t\t\t\tisVisible: 3,\n\t\t\t\tstores: 4,\n\t\t\t\tlocale: 5,\n\t\t\t\tmarkupEditorToolbar: 6,\n\t\t\t\tmarkupEditorToolStyles: 7,\n\t\t\t\tmarkupEditorToolRetainStyles: 8,\n\t\t\t\tmarkupEditorShapeStyleControls: 9,\n\t\t\t\tmarkupEditorToolSelectRadius: 10,\n\t\t\t\tmarkupEditorTextInputMode: 11,\n\t\t\t\tmarkupEditorToolShareStyles: 12,\n\t\t\t\tmarkupEditorWillStartInteraction: 13,\n\t\t\t\tmarkupEditorGridSize: 14,\n\t\t\t\tmarkupEditorSnapThreshold: 15,\n\t\t\t\tmarkupEditorSnapToContext: 16,\n\t\t\t\tannotateGridSize: 17,\n\t\t\t\tannotateSnapToContext: 18,\n\t\t\t\twillRenderShapePresetToolbar: 19,\n\t\t\t\tannotateTools: 20,\n\t\t\t\tannotateToolShapes: 21,\n\t\t\t\tannotateShapeControls: 22,\n\t\t\t\tannotateActiveTool: 0,\n\t\t\t\tannotateEnableButtonFlipVertical: 23,\n\t\t\t\tannotateEnableSelectImagePreset: 24,\n\t\t\t\tannotateEnableDropImagePreset: 25,\n\t\t\t\tannotatePresets: 26,\n\t\t\t\tannotateWillRenderShapePresetToolbar: 27,\n\t\t\t\tenableViewTool: 28,\n\t\t\t\tenableSelectToolToAddShape: 29,\n\t\t\t\tenableTapToAddText: 30,\n\t\t\t\tenableAutoSelectMoveTool: 31,\n\t\t\t\tenableMoveTool: 32,\n\t\t\t\twillRenderShapeControls: 33,\n\t\t\t\twillRenderShapeTextControls: 34,\n\t\t\t\tbeforeAddShape: 35,\n\t\t\t\tbeforeRemoveShape: 36,\n\t\t\t\tbeforeDeselectShape: 37,\n\t\t\t\tbeforeSelectShape: 38,\n\t\t\t\tbeforeUpdateShape: 39\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[53];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget markupEditorToolbar() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset markupEditorToolbar(markupEditorToolbar) {\n\t\tthis.$$set({ markupEditorToolbar });\n\t\tflush();\n\t}\n\n\tget markupEditorToolStyles() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset markupEditorToolStyles(markupEditorToolStyles) {\n\t\tthis.$$set({ markupEditorToolStyles });\n\t\tflush();\n\t}\n\n\tget markupEditorToolRetainStyles() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset markupEditorToolRetainStyles(markupEditorToolRetainStyles) {\n\t\tthis.$$set({ markupEditorToolRetainStyles });\n\t\tflush();\n\t}\n\n\tget markupEditorShapeStyleControls() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset markupEditorShapeStyleControls(markupEditorShapeStyleControls) {\n\t\tthis.$$set({ markupEditorShapeStyleControls });\n\t\tflush();\n\t}\n\n\tget markupEditorToolSelectRadius() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset markupEditorToolSelectRadius(markupEditorToolSelectRadius) {\n\t\tthis.$$set({ markupEditorToolSelectRadius });\n\t\tflush();\n\t}\n\n\tget markupEditorTextInputMode() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset markupEditorTextInputMode(markupEditorTextInputMode) {\n\t\tthis.$$set({ markupEditorTextInputMode });\n\t\tflush();\n\t}\n\n\tget markupEditorToolShareStyles() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset markupEditorToolShareStyles(markupEditorToolShareStyles) {\n\t\tthis.$$set({ markupEditorToolShareStyles });\n\t\tflush();\n\t}\n\n\tget markupEditorWillStartInteraction() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset markupEditorWillStartInteraction(markupEditorWillStartInteraction) {\n\t\tthis.$$set({ markupEditorWillStartInteraction });\n\t\tflush();\n\t}\n\n\tget markupEditorGridSize() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset markupEditorGridSize(markupEditorGridSize) {\n\t\tthis.$$set({ markupEditorGridSize });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapThreshold() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset markupEditorSnapThreshold(markupEditorSnapThreshold) {\n\t\tthis.$$set({ markupEditorSnapThreshold });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapToContext() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset markupEditorSnapToContext(markupEditorSnapToContext) {\n\t\tthis.$$set({ markupEditorSnapToContext });\n\t\tflush();\n\t}\n\n\tget annotateGridSize() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset annotateGridSize(annotateGridSize) {\n\t\tthis.$$set({ annotateGridSize });\n\t\tflush();\n\t}\n\n\tget annotateSnapToContext() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset annotateSnapToContext(annotateSnapToContext) {\n\t\tthis.$$set({ annotateSnapToContext });\n\t\tflush();\n\t}\n\n\tget willRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset willRenderShapePresetToolbar(willRenderShapePresetToolbar) {\n\t\tthis.$$set({ willRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget annotateTools() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset annotateTools(annotateTools) {\n\t\tthis.$$set({ annotateTools });\n\t\tflush();\n\t}\n\n\tget annotateToolShapes() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset annotateToolShapes(annotateToolShapes) {\n\t\tthis.$$set({ annotateToolShapes });\n\t\tflush();\n\t}\n\n\tget annotateShapeControls() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tset annotateShapeControls(annotateShapeControls) {\n\t\tthis.$$set({ annotateShapeControls });\n\t\tflush();\n\t}\n\n\tget annotateActiveTool() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset annotateActiveTool(annotateActiveTool) {\n\t\tthis.$$set({ annotateActiveTool });\n\t\tflush();\n\t}\n\n\tget annotateEnableButtonFlipVertical() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tset annotateEnableButtonFlipVertical(annotateEnableButtonFlipVertical) {\n\t\tthis.$$set({ annotateEnableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget annotateEnableSelectImagePreset() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tset annotateEnableSelectImagePreset(annotateEnableSelectImagePreset) {\n\t\tthis.$$set({ annotateEnableSelectImagePreset });\n\t\tflush();\n\t}\n\n\tget annotateEnableDropImagePreset() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tset annotateEnableDropImagePreset(annotateEnableDropImagePreset) {\n\t\tthis.$$set({ annotateEnableDropImagePreset });\n\t\tflush();\n\t}\n\n\tget annotatePresets() {\n\t\treturn this.$$.ctx[26];\n\t}\n\n\tset annotatePresets(annotatePresets) {\n\t\tthis.$$set({ annotatePresets });\n\t\tflush();\n\t}\n\n\tget annotateWillRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[27];\n\t}\n\n\tset annotateWillRenderShapePresetToolbar(annotateWillRenderShapePresetToolbar) {\n\t\tthis.$$set({ annotateWillRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget enableViewTool() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tset enableViewTool(enableViewTool) {\n\t\tthis.$$set({ enableViewTool });\n\t\tflush();\n\t}\n\n\tget enableSelectToolToAddShape() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tset enableSelectToolToAddShape(enableSelectToolToAddShape) {\n\t\tthis.$$set({ enableSelectToolToAddShape });\n\t\tflush();\n\t}\n\n\tget enableTapToAddText() {\n\t\treturn this.$$.ctx[30];\n\t}\n\n\tset enableTapToAddText(enableTapToAddText) {\n\t\tthis.$$set({ enableTapToAddText });\n\t\tflush();\n\t}\n\n\tget enableAutoSelectMoveTool() {\n\t\treturn this.$$.ctx[31];\n\t}\n\n\tset enableAutoSelectMoveTool(enableAutoSelectMoveTool) {\n\t\tthis.$$set({ enableAutoSelectMoveTool });\n\t\tflush();\n\t}\n\n\tget enableMoveTool() {\n\t\treturn this.$$.ctx[32];\n\t}\n\n\tset enableMoveTool(enableMoveTool) {\n\t\tthis.$$set({ enableMoveTool });\n\t\tflush();\n\t}\n\n\tget willRenderShapeControls() {\n\t\treturn this.$$.ctx[33];\n\t}\n\n\tset willRenderShapeControls(willRenderShapeControls) {\n\t\tthis.$$set({ willRenderShapeControls });\n\t\tflush();\n\t}\n\n\tget willRenderShapeTextControls() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tset willRenderShapeTextControls(willRenderShapeTextControls) {\n\t\tthis.$$set({ willRenderShapeTextControls });\n\t\tflush();\n\t}\n\n\tget beforeAddShape() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tset beforeAddShape(beforeAddShape) {\n\t\tthis.$$set({ beforeAddShape });\n\t\tflush();\n\t}\n\n\tget beforeRemoveShape() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tset beforeRemoveShape(beforeRemoveShape) {\n\t\tthis.$$set({ beforeRemoveShape });\n\t\tflush();\n\t}\n\n\tget beforeDeselectShape() {\n\t\treturn this.$$.ctx[37];\n\t}\n\n\tset beforeDeselectShape(beforeDeselectShape) {\n\t\tthis.$$set({ beforeDeselectShape });\n\t\tflush();\n\t}\n\n\tget beforeSelectShape() {\n\t\treturn this.$$.ctx[38];\n\t}\n\n\tset beforeSelectShape(beforeSelectShape) {\n\t\tthis.$$set({ beforeSelectShape });\n\t\tflush();\n\t}\n\n\tget beforeUpdateShape() {\n\t\treturn this.$$.ctx[39];\n\t}\n\n\tset beforeUpdateShape(beforeUpdateShape) {\n\t\tthis.$$set({ beforeUpdateShape });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_annotate = { util: ['annotate', Annotate] };\n\n/* src/core/ui/plugins/decorate/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$9(ctx) {\n\tlet shapeutil;\n\tlet updating_toolActive;\n\tlet current;\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\t/*shapeutil_toolActive_binding*/ ctx[50](value);\n\t}\n\n\tlet shapeutil_props = {\n\t\tstores: /*stores*/ ctx[4],\n\t\tlocale: /*locale*/ ctx[5],\n\t\tisActive: /*isActive*/ ctx[1],\n\t\tisActiveFraction: /*isActiveFraction*/ ctx[2],\n\t\tisVisible: /*isVisible*/ ctx[3],\n\t\tmapScreenPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[41],\n\t\tmapImagePointToScreenPoint: /*mapImagePointToScreenPoint*/ ctx[40],\n\t\tutilKey: 'decorate',\n\t\tshapes: /*imageDecoration*/ ctx[43],\n\t\ttoolbar: /*decorateTools*/ ctx[19] || /*markupEditorToolbar*/ ctx[6],\n\t\ttoolShapes: /*decorateToolShapes*/ ctx[20] || /*markupEditorToolStyles*/ ctx[7],\n\t\ttoolRetainStyles: /*markupEditorToolRetainStyles*/ ctx[8],\n\t\tshapeControls: /*decorateShapeControls*/ ctx[21] || /*markupEditorShapeStyleControls*/ ctx[9],\n\t\tshapePresets: /*decoratePresets*/ ctx[25],\n\t\tenableSelectToolToAddShape: /*enableSelectToolToAddShape*/ ctx[27],\n\t\tenableTapToAddText: /*enableTapToAddText*/ ctx[28],\n\t\tenableViewTool: /*enableViewTool*/ ctx[29],\n\t\tenableMoveTool: /*enableMoveTool*/ ctx[30],\n\t\tenableAutoSelectMoveTool: /*enableAutoSelectMoveTool*/ ctx[31],\n\t\tsnapThreshold: /*markupEditorSnapThreshold*/ ctx[15],\n\t\tgridSize: isNumber(/*decorateGridSize*/ ctx[17])\n\t\t? /*decorateGridSize*/ ctx[17]\n\t\t: /*markupEditorGridSize*/ ctx[14],\n\t\tenableSnapToContext: isBoolean(/*decorateSnapToContext*/ ctx[18])\n\t\t? /*decorateSnapToContext*/ ctx[18]\n\t\t: /*markupEditorSnapToContext*/ ctx[16],\n\t\tenableToolShareStyles: /*markupEditorToolShareStyles*/ ctx[12],\n\t\tenablePresetSelectImage: /*decorateEnableSelectImagePreset*/ ctx[23],\n\t\tenablePresetDropImage: /*decorateEnableDropImagePreset*/ ctx[24],\n\t\tenableButtonFlipVertical: /*decorateEnableButtonFlipVertical*/ ctx[22],\n\t\tparentRect: /*imageCropRect*/ ctx[42],\n\t\ttoolSelectRadius: /*markupEditorToolSelectRadius*/ ctx[10],\n\t\ttextInputMode: /*markupEditorTextInputMode*/ ctx[11],\n\t\twillStartInteraction: /*markupEditorWillStartInteraction*/ ctx[39],\n\t\twillRenderPresetToolbar: /*decorateWillRenderShapePresetToolbar*/ ctx[26] || /*willRenderShapePresetToolbar*/ ctx[13],\n\t\thooks: {\n\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[32],\n\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[33],\n\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[34],\n\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[35],\n\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[36],\n\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[37],\n\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[38]\n\t\t}\n\t};\n\n\tif (/*decorateActiveTool*/ ctx[0] !== void 0) {\n\t\tshapeutil_props.toolActive = /*decorateActiveTool*/ ctx[0];\n\t}\n\n\tshapeutil = new ShapeUtil({ props: shapeutil_props });\n\tbinding_callbacks.push(() => bind(shapeutil, 'toolActive', shapeutil_toolActive_binding));\n\tshapeutil.$on(\"measure\", /*measure_handler*/ ctx[51]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapeutil.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapeutil, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapeutil_changes = {};\n\t\t\tif (dirty[0] & /*stores*/ 16) shapeutil_changes.stores = /*stores*/ ctx[4];\n\t\t\tif (dirty[0] & /*locale*/ 32) shapeutil_changes.locale = /*locale*/ ctx[5];\n\t\t\tif (dirty[0] & /*isActive*/ 2) shapeutil_changes.isActive = /*isActive*/ ctx[1];\n\t\t\tif (dirty[0] & /*isActiveFraction*/ 4) shapeutil_changes.isActiveFraction = /*isActiveFraction*/ ctx[2];\n\t\t\tif (dirty[0] & /*isVisible*/ 8) shapeutil_changes.isVisible = /*isVisible*/ ctx[3];\n\t\t\tif (dirty[1] & /*mapScreenPointToImagePoint*/ 1024) shapeutil_changes.mapScreenPointToImagePoint = /*mapScreenPointToImagePoint*/ ctx[41];\n\t\t\tif (dirty[1] & /*mapImagePointToScreenPoint*/ 512) shapeutil_changes.mapImagePointToScreenPoint = /*mapImagePointToScreenPoint*/ ctx[40];\n\t\t\tif (dirty[0] & /*decorateTools, markupEditorToolbar*/ 524352) shapeutil_changes.toolbar = /*decorateTools*/ ctx[19] || /*markupEditorToolbar*/ ctx[6];\n\t\t\tif (dirty[0] & /*decorateToolShapes, markupEditorToolStyles*/ 1048704) shapeutil_changes.toolShapes = /*decorateToolShapes*/ ctx[20] || /*markupEditorToolStyles*/ ctx[7];\n\t\t\tif (dirty[0] & /*markupEditorToolRetainStyles*/ 256) shapeutil_changes.toolRetainStyles = /*markupEditorToolRetainStyles*/ ctx[8];\n\t\t\tif (dirty[0] & /*decorateShapeControls, markupEditorShapeStyleControls*/ 2097664) shapeutil_changes.shapeControls = /*decorateShapeControls*/ ctx[21] || /*markupEditorShapeStyleControls*/ ctx[9];\n\t\t\tif (dirty[0] & /*decoratePresets*/ 33554432) shapeutil_changes.shapePresets = /*decoratePresets*/ ctx[25];\n\t\t\tif (dirty[0] & /*enableSelectToolToAddShape*/ 134217728) shapeutil_changes.enableSelectToolToAddShape = /*enableSelectToolToAddShape*/ ctx[27];\n\t\t\tif (dirty[0] & /*enableTapToAddText*/ 268435456) shapeutil_changes.enableTapToAddText = /*enableTapToAddText*/ ctx[28];\n\t\t\tif (dirty[0] & /*enableViewTool*/ 536870912) shapeutil_changes.enableViewTool = /*enableViewTool*/ ctx[29];\n\t\t\tif (dirty[0] & /*enableMoveTool*/ 1073741824) shapeutil_changes.enableMoveTool = /*enableMoveTool*/ ctx[30];\n\t\t\tif (dirty[1] & /*enableAutoSelectMoveTool*/ 1) shapeutil_changes.enableAutoSelectMoveTool = /*enableAutoSelectMoveTool*/ ctx[31];\n\t\t\tif (dirty[0] & /*markupEditorSnapThreshold*/ 32768) shapeutil_changes.snapThreshold = /*markupEditorSnapThreshold*/ ctx[15];\n\n\t\t\tif (dirty[0] & /*decorateGridSize, markupEditorGridSize*/ 147456) shapeutil_changes.gridSize = isNumber(/*decorateGridSize*/ ctx[17])\n\t\t\t? /*decorateGridSize*/ ctx[17]\n\t\t\t: /*markupEditorGridSize*/ ctx[14];\n\n\t\t\tif (dirty[0] & /*decorateSnapToContext, markupEditorSnapToContext*/ 327680) shapeutil_changes.enableSnapToContext = isBoolean(/*decorateSnapToContext*/ ctx[18])\n\t\t\t? /*decorateSnapToContext*/ ctx[18]\n\t\t\t: /*markupEditorSnapToContext*/ ctx[16];\n\n\t\t\tif (dirty[0] & /*markupEditorToolShareStyles*/ 4096) shapeutil_changes.enableToolShareStyles = /*markupEditorToolShareStyles*/ ctx[12];\n\t\t\tif (dirty[0] & /*decorateEnableSelectImagePreset*/ 8388608) shapeutil_changes.enablePresetSelectImage = /*decorateEnableSelectImagePreset*/ ctx[23];\n\t\t\tif (dirty[0] & /*decorateEnableDropImagePreset*/ 16777216) shapeutil_changes.enablePresetDropImage = /*decorateEnableDropImagePreset*/ ctx[24];\n\t\t\tif (dirty[0] & /*decorateEnableButtonFlipVertical*/ 4194304) shapeutil_changes.enableButtonFlipVertical = /*decorateEnableButtonFlipVertical*/ ctx[22];\n\t\t\tif (dirty[0] & /*markupEditorToolSelectRadius*/ 1024) shapeutil_changes.toolSelectRadius = /*markupEditorToolSelectRadius*/ ctx[10];\n\t\t\tif (dirty[0] & /*markupEditorTextInputMode*/ 2048) shapeutil_changes.textInputMode = /*markupEditorTextInputMode*/ ctx[11];\n\t\t\tif (dirty[1] & /*markupEditorWillStartInteraction*/ 256) shapeutil_changes.willStartInteraction = /*markupEditorWillStartInteraction*/ ctx[39];\n\t\t\tif (dirty[0] & /*decorateWillRenderShapePresetToolbar, willRenderShapePresetToolbar*/ 67117056) shapeutil_changes.willRenderPresetToolbar = /*decorateWillRenderShapePresetToolbar*/ ctx[26] || /*willRenderShapePresetToolbar*/ ctx[13];\n\n\t\t\tif (dirty[1] & /*willRenderShapeControls, willRenderShapeTextControls, beforeAddShape, beforeRemoveShape, beforeDeselectShape, beforeSelectShape, beforeUpdateShape*/ 254) shapeutil_changes.hooks = {\n\t\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[32],\n\t\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[33],\n\t\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[34],\n\t\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[35],\n\t\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[36],\n\t\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[37],\n\t\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[38]\n\t\t\t};\n\n\t\t\tif (!updating_toolActive && dirty[0] & /*decorateActiveTool*/ 1) {\n\t\t\t\tupdating_toolActive = true;\n\t\t\t\tshapeutil_changes.toolActive = /*decorateActiveTool*/ ctx[0];\n\t\t\t\tadd_flush_callback(() => updating_toolActive = false);\n\t\t\t}\n\n\t\t\tshapeutil.$set(shapeutil_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapeutil.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapeutil.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapeutil, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$9($$self, $$props, $$invalidate) {\n\tlet presentationZoom;\n\tlet mapScreenPointToImagePoint;\n\tlet mapImagePointToScreenPoint;\n\tlet $imageSelectionRectPresentation;\n\tlet $imageTransformsInterpolated;\n\tconst name = 'decorate';\n\tlet { isActive } = $$props;\n\tlet { isActiveFraction } = $$props;\n\tlet { isVisible } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { markupEditorToolbar = undefined } = $$props;\n\tlet { markupEditorToolStyles = undefined } = $$props;\n\tlet { markupEditorToolRetainStyles = undefined } = $$props;\n\tlet { markupEditorShapeStyleControls = undefined } = $$props;\n\tlet { markupEditorToolSelectRadius = undefined } = $$props;\n\tlet { markupEditorTextInputMode = undefined } = $$props;\n\tlet { markupEditorToolShareStyles = undefined } = $$props;\n\tlet { willRenderShapePresetToolbar = undefined } = $$props;\n\tlet { markupEditorGridSize = undefined } = $$props;\n\tlet { markupEditorSnapThreshold = undefined } = $$props;\n\tlet { markupEditorSnapToContext = true } = $$props;\n\tlet { decorateGridSize = undefined } = $$props;\n\tlet { decorateSnapToContext = undefined } = $$props;\n\tlet { decorateTools = undefined } = $$props;\n\tlet { decorateToolShapes = undefined } = $$props;\n\tlet { decorateShapeControls = undefined } = $$props;\n\tlet { decorateActiveTool = undefined } = $$props;\n\tlet { decorateEnableButtonFlipVertical = false } = $$props;\n\tlet { decorateEnableSelectImagePreset = false } = $$props;\n\tlet { decorateEnableDropImagePreset = true } = $$props;\n\tlet { decoratePresets = [] } = $$props;\n\tlet { decorateWillRenderShapePresetToolbar = undefined } = $$props;\n\tlet { enableSelectToolToAddShape = undefined } = $$props;\n\tlet { enableTapToAddText = undefined } = $$props;\n\tlet { enableViewTool = undefined } = $$props;\n\tlet { enableMoveTool = undefined } = $$props;\n\tlet { enableAutoSelectMoveTool = undefined } = $$props;\n\tlet { willRenderShapeControls = undefined } = $$props;\n\tlet { willRenderShapeTextControls = undefined } = $$props;\n\tlet { beforeAddShape = undefined } = $$props;\n\tlet { beforeRemoveShape = undefined } = $$props;\n\tlet { beforeDeselectShape = undefined } = $$props;\n\tlet { beforeSelectShape = undefined } = $$props;\n\tlet { beforeUpdateShape = undefined } = $$props;\n\tlet { markupEditorWillStartInteraction = undefined } = $$props;\n\tconst { imageCropRect, imageDecoration, imageSelectionRectPresentation, imageTransformsInterpolated } = stores;\n\tcomponent_subscribe($$self, imageSelectionRectPresentation, value => $$invalidate(48, $imageSelectionRectPresentation = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(49, $imageTransformsInterpolated = value));\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\tdecorateActiveTool = value;\n\t\t$$invalidate(0, decorateActiveTool);\n\t}\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(1, isActive = $$props.isActive);\n\t\tif ('isActiveFraction' in $$props) $$invalidate(2, isActiveFraction = $$props.isActiveFraction);\n\t\tif ('isVisible' in $$props) $$invalidate(3, isVisible = $$props.isVisible);\n\t\tif ('stores' in $$props) $$invalidate(4, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(5, locale = $$props.locale);\n\t\tif ('markupEditorToolbar' in $$props) $$invalidate(6, markupEditorToolbar = $$props.markupEditorToolbar);\n\t\tif ('markupEditorToolStyles' in $$props) $$invalidate(7, markupEditorToolStyles = $$props.markupEditorToolStyles);\n\t\tif ('markupEditorToolRetainStyles' in $$props) $$invalidate(8, markupEditorToolRetainStyles = $$props.markupEditorToolRetainStyles);\n\t\tif ('markupEditorShapeStyleControls' in $$props) $$invalidate(9, markupEditorShapeStyleControls = $$props.markupEditorShapeStyleControls);\n\t\tif ('markupEditorToolSelectRadius' in $$props) $$invalidate(10, markupEditorToolSelectRadius = $$props.markupEditorToolSelectRadius);\n\t\tif ('markupEditorTextInputMode' in $$props) $$invalidate(11, markupEditorTextInputMode = $$props.markupEditorTextInputMode);\n\t\tif ('markupEditorToolShareStyles' in $$props) $$invalidate(12, markupEditorToolShareStyles = $$props.markupEditorToolShareStyles);\n\t\tif ('willRenderShapePresetToolbar' in $$props) $$invalidate(13, willRenderShapePresetToolbar = $$props.willRenderShapePresetToolbar);\n\t\tif ('markupEditorGridSize' in $$props) $$invalidate(14, markupEditorGridSize = $$props.markupEditorGridSize);\n\t\tif ('markupEditorSnapThreshold' in $$props) $$invalidate(15, markupEditorSnapThreshold = $$props.markupEditorSnapThreshold);\n\t\tif ('markupEditorSnapToContext' in $$props) $$invalidate(16, markupEditorSnapToContext = $$props.markupEditorSnapToContext);\n\t\tif ('decorateGridSize' in $$props) $$invalidate(17, decorateGridSize = $$props.decorateGridSize);\n\t\tif ('decorateSnapToContext' in $$props) $$invalidate(18, decorateSnapToContext = $$props.decorateSnapToContext);\n\t\tif ('decorateTools' in $$props) $$invalidate(19, decorateTools = $$props.decorateTools);\n\t\tif ('decorateToolShapes' in $$props) $$invalidate(20, decorateToolShapes = $$props.decorateToolShapes);\n\t\tif ('decorateShapeControls' in $$props) $$invalidate(21, decorateShapeControls = $$props.decorateShapeControls);\n\t\tif ('decorateActiveTool' in $$props) $$invalidate(0, decorateActiveTool = $$props.decorateActiveTool);\n\t\tif ('decorateEnableButtonFlipVertical' in $$props) $$invalidate(22, decorateEnableButtonFlipVertical = $$props.decorateEnableButtonFlipVertical);\n\t\tif ('decorateEnableSelectImagePreset' in $$props) $$invalidate(23, decorateEnableSelectImagePreset = $$props.decorateEnableSelectImagePreset);\n\t\tif ('decorateEnableDropImagePreset' in $$props) $$invalidate(24, decorateEnableDropImagePreset = $$props.decorateEnableDropImagePreset);\n\t\tif ('decoratePresets' in $$props) $$invalidate(25, decoratePresets = $$props.decoratePresets);\n\t\tif ('decorateWillRenderShapePresetToolbar' in $$props) $$invalidate(26, decorateWillRenderShapePresetToolbar = $$props.decorateWillRenderShapePresetToolbar);\n\t\tif ('enableSelectToolToAddShape' in $$props) $$invalidate(27, enableSelectToolToAddShape = $$props.enableSelectToolToAddShape);\n\t\tif ('enableTapToAddText' in $$props) $$invalidate(28, enableTapToAddText = $$props.enableTapToAddText);\n\t\tif ('enableViewTool' in $$props) $$invalidate(29, enableViewTool = $$props.enableViewTool);\n\t\tif ('enableMoveTool' in $$props) $$invalidate(30, enableMoveTool = $$props.enableMoveTool);\n\t\tif ('enableAutoSelectMoveTool' in $$props) $$invalidate(31, enableAutoSelectMoveTool = $$props.enableAutoSelectMoveTool);\n\t\tif ('willRenderShapeControls' in $$props) $$invalidate(32, willRenderShapeControls = $$props.willRenderShapeControls);\n\t\tif ('willRenderShapeTextControls' in $$props) $$invalidate(33, willRenderShapeTextControls = $$props.willRenderShapeTextControls);\n\t\tif ('beforeAddShape' in $$props) $$invalidate(34, beforeAddShape = $$props.beforeAddShape);\n\t\tif ('beforeRemoveShape' in $$props) $$invalidate(35, beforeRemoveShape = $$props.beforeRemoveShape);\n\t\tif ('beforeDeselectShape' in $$props) $$invalidate(36, beforeDeselectShape = $$props.beforeDeselectShape);\n\t\tif ('beforeSelectShape' in $$props) $$invalidate(37, beforeSelectShape = $$props.beforeSelectShape);\n\t\tif ('beforeUpdateShape' in $$props) $$invalidate(38, beforeUpdateShape = $$props.beforeUpdateShape);\n\t\tif ('markupEditorWillStartInteraction' in $$props) $$invalidate(39, markupEditorWillStartInteraction = $$props.markupEditorWillStartInteraction);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*$imageTransformsInterpolated*/ 262144) {\n\t\t\t$$invalidate(47, presentationZoom = $imageTransformsInterpolated\n\t\t\t? $imageTransformsInterpolated.scale\n\t\t\t: 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$imageSelectionRectPresentation, presentationZoom*/ 196608) {\n\t\t\t$$invalidate(41, mapScreenPointToImagePoint = screenPoint => {\n\t\t\t\tconst mappedPoint = vectorClone(screenPoint);\n\t\t\t\tmappedPoint.x -= $imageSelectionRectPresentation.x;\n\t\t\t\tmappedPoint.y -= $imageSelectionRectPresentation.y;\n\t\t\t\tmappedPoint.x /= presentationZoom;\n\t\t\t\tmappedPoint.y /= presentationZoom;\n\t\t\t\treturn mappedPoint;\n\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*presentationZoom, $imageSelectionRectPresentation*/ 196608) {\n\t\t\t$$invalidate(40, mapImagePointToScreenPoint = imagePoint => {\n\t\t\t\tconst mappedPoint = vectorClone(imagePoint);\n\t\t\t\tmappedPoint.x *= presentationZoom;\n\t\t\t\tmappedPoint.y *= presentationZoom;\n\t\t\t\tmappedPoint.x += $imageSelectionRectPresentation.x;\n\t\t\t\tmappedPoint.y += $imageSelectionRectPresentation.y;\n\t\t\t\treturn mappedPoint;\n\t\t\t});\n\t\t}\n\t};\n\n\treturn [\n\t\tdecorateActiveTool,\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tstores,\n\t\tlocale,\n\t\tmarkupEditorToolbar,\n\t\tmarkupEditorToolStyles,\n\t\tmarkupEditorToolRetainStyles,\n\t\tmarkupEditorShapeStyleControls,\n\t\tmarkupEditorToolSelectRadius,\n\t\tmarkupEditorTextInputMode,\n\t\tmarkupEditorToolShareStyles,\n\t\twillRenderShapePresetToolbar,\n\t\tmarkupEditorGridSize,\n\t\tmarkupEditorSnapThreshold,\n\t\tmarkupEditorSnapToContext,\n\t\tdecorateGridSize,\n\t\tdecorateSnapToContext,\n\t\tdecorateTools,\n\t\tdecorateToolShapes,\n\t\tdecorateShapeControls,\n\t\tdecorateEnableButtonFlipVertical,\n\t\tdecorateEnableSelectImagePreset,\n\t\tdecorateEnableDropImagePreset,\n\t\tdecoratePresets,\n\t\tdecorateWillRenderShapePresetToolbar,\n\t\tenableSelectToolToAddShape,\n\t\tenableTapToAddText,\n\t\tenableViewTool,\n\t\tenableMoveTool,\n\t\tenableAutoSelectMoveTool,\n\t\twillRenderShapeControls,\n\t\twillRenderShapeTextControls,\n\t\tbeforeAddShape,\n\t\tbeforeRemoveShape,\n\t\tbeforeDeselectShape,\n\t\tbeforeSelectShape,\n\t\tbeforeUpdateShape,\n\t\tmarkupEditorWillStartInteraction,\n\t\tmapImagePointToScreenPoint,\n\t\tmapScreenPointToImagePoint,\n\t\timageCropRect,\n\t\timageDecoration,\n\t\timageSelectionRectPresentation,\n\t\timageTransformsInterpolated,\n\t\tname,\n\t\tpresentationZoom,\n\t\t$imageSelectionRectPresentation,\n\t\t$imageTransformsInterpolated,\n\t\tshapeutil_toolActive_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Decorate extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$9,\n\t\t\tcreate_fragment$9,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 46,\n\t\t\t\tisActive: 1,\n\t\t\t\tisActiveFraction: 2,\n\t\t\t\tisVisible: 3,\n\t\t\t\tstores: 4,\n\t\t\t\tlocale: 5,\n\t\t\t\tmarkupEditorToolbar: 6,\n\t\t\t\tmarkupEditorToolStyles: 7,\n\t\t\t\tmarkupEditorToolRetainStyles: 8,\n\t\t\t\tmarkupEditorShapeStyleControls: 9,\n\t\t\t\tmarkupEditorToolSelectRadius: 10,\n\t\t\t\tmarkupEditorTextInputMode: 11,\n\t\t\t\tmarkupEditorToolShareStyles: 12,\n\t\t\t\twillRenderShapePresetToolbar: 13,\n\t\t\t\tmarkupEditorGridSize: 14,\n\t\t\t\tmarkupEditorSnapThreshold: 15,\n\t\t\t\tmarkupEditorSnapToContext: 16,\n\t\t\t\tdecorateGridSize: 17,\n\t\t\t\tdecorateSnapToContext: 18,\n\t\t\t\tdecorateTools: 19,\n\t\t\t\tdecorateToolShapes: 20,\n\t\t\t\tdecorateShapeControls: 21,\n\t\t\t\tdecorateActiveTool: 0,\n\t\t\t\tdecorateEnableButtonFlipVertical: 22,\n\t\t\t\tdecorateEnableSelectImagePreset: 23,\n\t\t\t\tdecorateEnableDropImagePreset: 24,\n\t\t\t\tdecoratePresets: 25,\n\t\t\t\tdecorateWillRenderShapePresetToolbar: 26,\n\t\t\t\tenableSelectToolToAddShape: 27,\n\t\t\t\tenableTapToAddText: 28,\n\t\t\t\tenableViewTool: 29,\n\t\t\t\tenableMoveTool: 30,\n\t\t\t\tenableAutoSelectMoveTool: 31,\n\t\t\t\twillRenderShapeControls: 32,\n\t\t\t\twillRenderShapeTextControls: 33,\n\t\t\t\tbeforeAddShape: 34,\n\t\t\t\tbeforeRemoveShape: 35,\n\t\t\t\tbeforeDeselectShape: 36,\n\t\t\t\tbeforeSelectShape: 37,\n\t\t\t\tbeforeUpdateShape: 38,\n\t\t\t\tmarkupEditorWillStartInteraction: 39\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[46];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget markupEditorToolbar() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset markupEditorToolbar(markupEditorToolbar) {\n\t\tthis.$$set({ markupEditorToolbar });\n\t\tflush();\n\t}\n\n\tget markupEditorToolStyles() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset markupEditorToolStyles(markupEditorToolStyles) {\n\t\tthis.$$set({ markupEditorToolStyles });\n\t\tflush();\n\t}\n\n\tget markupEditorToolRetainStyles() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset markupEditorToolRetainStyles(markupEditorToolRetainStyles) {\n\t\tthis.$$set({ markupEditorToolRetainStyles });\n\t\tflush();\n\t}\n\n\tget markupEditorShapeStyleControls() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset markupEditorShapeStyleControls(markupEditorShapeStyleControls) {\n\t\tthis.$$set({ markupEditorShapeStyleControls });\n\t\tflush();\n\t}\n\n\tget markupEditorToolSelectRadius() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset markupEditorToolSelectRadius(markupEditorToolSelectRadius) {\n\t\tthis.$$set({ markupEditorToolSelectRadius });\n\t\tflush();\n\t}\n\n\tget markupEditorTextInputMode() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset markupEditorTextInputMode(markupEditorTextInputMode) {\n\t\tthis.$$set({ markupEditorTextInputMode });\n\t\tflush();\n\t}\n\n\tget markupEditorToolShareStyles() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset markupEditorToolShareStyles(markupEditorToolShareStyles) {\n\t\tthis.$$set({ markupEditorToolShareStyles });\n\t\tflush();\n\t}\n\n\tget willRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset willRenderShapePresetToolbar(willRenderShapePresetToolbar) {\n\t\tthis.$$set({ willRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget markupEditorGridSize() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset markupEditorGridSize(markupEditorGridSize) {\n\t\tthis.$$set({ markupEditorGridSize });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapThreshold() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset markupEditorSnapThreshold(markupEditorSnapThreshold) {\n\t\tthis.$$set({ markupEditorSnapThreshold });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapToContext() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset markupEditorSnapToContext(markupEditorSnapToContext) {\n\t\tthis.$$set({ markupEditorSnapToContext });\n\t\tflush();\n\t}\n\n\tget decorateGridSize() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset decorateGridSize(decorateGridSize) {\n\t\tthis.$$set({ decorateGridSize });\n\t\tflush();\n\t}\n\n\tget decorateSnapToContext() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset decorateSnapToContext(decorateSnapToContext) {\n\t\tthis.$$set({ decorateSnapToContext });\n\t\tflush();\n\t}\n\n\tget decorateTools() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset decorateTools(decorateTools) {\n\t\tthis.$$set({ decorateTools });\n\t\tflush();\n\t}\n\n\tget decorateToolShapes() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset decorateToolShapes(decorateToolShapes) {\n\t\tthis.$$set({ decorateToolShapes });\n\t\tflush();\n\t}\n\n\tget decorateShapeControls() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset decorateShapeControls(decorateShapeControls) {\n\t\tthis.$$set({ decorateShapeControls });\n\t\tflush();\n\t}\n\n\tget decorateActiveTool() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset decorateActiveTool(decorateActiveTool) {\n\t\tthis.$$set({ decorateActiveTool });\n\t\tflush();\n\t}\n\n\tget decorateEnableButtonFlipVertical() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tset decorateEnableButtonFlipVertical(decorateEnableButtonFlipVertical) {\n\t\tthis.$$set({ decorateEnableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget decorateEnableSelectImagePreset() {\n\t\treturn this.$$.ctx[23];\n\t}\n\n\tset decorateEnableSelectImagePreset(decorateEnableSelectImagePreset) {\n\t\tthis.$$set({ decorateEnableSelectImagePreset });\n\t\tflush();\n\t}\n\n\tget decorateEnableDropImagePreset() {\n\t\treturn this.$$.ctx[24];\n\t}\n\n\tset decorateEnableDropImagePreset(decorateEnableDropImagePreset) {\n\t\tthis.$$set({ decorateEnableDropImagePreset });\n\t\tflush();\n\t}\n\n\tget decoratePresets() {\n\t\treturn this.$$.ctx[25];\n\t}\n\n\tset decoratePresets(decoratePresets) {\n\t\tthis.$$set({ decoratePresets });\n\t\tflush();\n\t}\n\n\tget decorateWillRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[26];\n\t}\n\n\tset decorateWillRenderShapePresetToolbar(decorateWillRenderShapePresetToolbar) {\n\t\tthis.$$set({ decorateWillRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget enableSelectToolToAddShape() {\n\t\treturn this.$$.ctx[27];\n\t}\n\n\tset enableSelectToolToAddShape(enableSelectToolToAddShape) {\n\t\tthis.$$set({ enableSelectToolToAddShape });\n\t\tflush();\n\t}\n\n\tget enableTapToAddText() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tset enableTapToAddText(enableTapToAddText) {\n\t\tthis.$$set({ enableTapToAddText });\n\t\tflush();\n\t}\n\n\tget enableViewTool() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tset enableViewTool(enableViewTool) {\n\t\tthis.$$set({ enableViewTool });\n\t\tflush();\n\t}\n\n\tget enableMoveTool() {\n\t\treturn this.$$.ctx[30];\n\t}\n\n\tset enableMoveTool(enableMoveTool) {\n\t\tthis.$$set({ enableMoveTool });\n\t\tflush();\n\t}\n\n\tget enableAutoSelectMoveTool() {\n\t\treturn this.$$.ctx[31];\n\t}\n\n\tset enableAutoSelectMoveTool(enableAutoSelectMoveTool) {\n\t\tthis.$$set({ enableAutoSelectMoveTool });\n\t\tflush();\n\t}\n\n\tget willRenderShapeControls() {\n\t\treturn this.$$.ctx[32];\n\t}\n\n\tset willRenderShapeControls(willRenderShapeControls) {\n\t\tthis.$$set({ willRenderShapeControls });\n\t\tflush();\n\t}\n\n\tget willRenderShapeTextControls() {\n\t\treturn this.$$.ctx[33];\n\t}\n\n\tset willRenderShapeTextControls(willRenderShapeTextControls) {\n\t\tthis.$$set({ willRenderShapeTextControls });\n\t\tflush();\n\t}\n\n\tget beforeAddShape() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tset beforeAddShape(beforeAddShape) {\n\t\tthis.$$set({ beforeAddShape });\n\t\tflush();\n\t}\n\n\tget beforeRemoveShape() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tset beforeRemoveShape(beforeRemoveShape) {\n\t\tthis.$$set({ beforeRemoveShape });\n\t\tflush();\n\t}\n\n\tget beforeDeselectShape() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tset beforeDeselectShape(beforeDeselectShape) {\n\t\tthis.$$set({ beforeDeselectShape });\n\t\tflush();\n\t}\n\n\tget beforeSelectShape() {\n\t\treturn this.$$.ctx[37];\n\t}\n\n\tset beforeSelectShape(beforeSelectShape) {\n\t\tthis.$$set({ beforeSelectShape });\n\t\tflush();\n\t}\n\n\tget beforeUpdateShape() {\n\t\treturn this.$$.ctx[38];\n\t}\n\n\tset beforeUpdateShape(beforeUpdateShape) {\n\t\tthis.$$set({ beforeUpdateShape });\n\t\tflush();\n\t}\n\n\tget markupEditorWillStartInteraction() {\n\t\treturn this.$$.ctx[39];\n\t}\n\n\tset markupEditorWillStartInteraction(markupEditorWillStartInteraction) {\n\t\tthis.$$set({ markupEditorWillStartInteraction });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_decorate = { util: ['decorate', Decorate] };\n\n/* src/core/ui/plugins/sticker/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$8(ctx) {\n\tlet shapeutil;\n\tlet current;\n\n\tshapeutil = new ShapeUtil({\n\t\t\tprops: {\n\t\t\t\tstores: /*stores*/ ctx[3],\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tisActive: /*isActive*/ ctx[0],\n\t\t\t\tisActiveFraction: /*isActiveFraction*/ ctx[1],\n\t\t\t\tisVisible: /*isVisible*/ ctx[2],\n\t\t\t\tmapScreenPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[25],\n\t\t\t\tmapImagePointToScreenPoint: /*mapImagePointToScreenPoint*/ ctx[24],\n\t\t\t\tutilKey: 'sticker',\n\t\t\t\tshapePresets: /*stickers*/ ctx[5],\n\t\t\t\tshapes: /*stickerStickToImage*/ ctx[6]\n\t\t\t\t? /*imageAnnotation*/ ctx[34]\n\t\t\t\t: /*imageDecoration*/ ctx[35],\n\t\t\t\ttoolActive: 'preset',\n\t\t\t\timageFlipX: /*stickerStickToImage*/ ctx[6]\n\t\t\t\t? /*$imageFlipX*/ ctx[23]\n\t\t\t\t: false,\n\t\t\t\timageFlipY: /*stickerStickToImage*/ ctx[6]\n\t\t\t\t? /*$imageFlipY*/ ctx[22]\n\t\t\t\t: false,\n\t\t\t\timageRotation: /*stickerStickToImage*/ ctx[6]\n\t\t\t\t? /*$imageRotation*/ ctx[30]\n\t\t\t\t: 0,\n\t\t\t\tparentRect: /*stickerStickToImage*/ ctx[6]\n\t\t\t\t? /*imageSize*/ ctx[36]\n\t\t\t\t: /*imageCropRect*/ ctx[32],\n\t\t\t\tsnapThreshold: /*snapThreshold*/ ctx[28],\n\t\t\t\tgridSize: /*gridSize*/ ctx[27],\n\t\t\t\tenableSnapToContext: /*enableSnapToContext*/ ctx[26],\n\t\t\t\tenablePresetDropImage: /*stickerEnableDropImagePreset*/ ctx[7],\n\t\t\t\tenablePresetSelectImage: /*enablePresetSelectImage*/ ctx[29],\n\t\t\t\tenableButtonFlipVertical: /*stickersEnableButtonFlipVertical*/ ctx[10] || /*stickerEnableButtonFlipVertical*/ ctx[8],\n\t\t\t\ttoolSelectRadius: /*markupEditorToolSelectRadius*/ ctx[14],\n\t\t\t\twillStartInteraction: /*markupEditorWillStartInteraction*/ ctx[21],\n\t\t\t\twillRenderPresetToolbar: /*stickersWillRenderShapePresetToolbar*/ ctx[11] || /*stickerWillRenderShapePresetToolbar*/ ctx[9] || /*willRenderShapePresetToolbar*/ ctx[15],\n\t\t\t\thooks: {\n\t\t\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[12],\n\t\t\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[13],\n\t\t\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[16],\n\t\t\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[17],\n\t\t\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[18],\n\t\t\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[19],\n\t\t\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[20]\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\tshapeutil.$on(\"measure\", /*measure_handler*/ ctx[59]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapeutil.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapeutil, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapeutil_changes = {};\n\t\t\tif (dirty[0] & /*stores*/ 8) shapeutil_changes.stores = /*stores*/ ctx[3];\n\t\t\tif (dirty[0] & /*locale*/ 16) shapeutil_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty[0] & /*isActive*/ 1) shapeutil_changes.isActive = /*isActive*/ ctx[0];\n\t\t\tif (dirty[0] & /*isActiveFraction*/ 2) shapeutil_changes.isActiveFraction = /*isActiveFraction*/ ctx[1];\n\t\t\tif (dirty[0] & /*isVisible*/ 4) shapeutil_changes.isVisible = /*isVisible*/ ctx[2];\n\t\t\tif (dirty[0] & /*mapScreenPointToImagePoint*/ 33554432) shapeutil_changes.mapScreenPointToImagePoint = /*mapScreenPointToImagePoint*/ ctx[25];\n\t\t\tif (dirty[0] & /*mapImagePointToScreenPoint*/ 16777216) shapeutil_changes.mapImagePointToScreenPoint = /*mapImagePointToScreenPoint*/ ctx[24];\n\t\t\tif (dirty[0] & /*stickers*/ 32) shapeutil_changes.shapePresets = /*stickers*/ ctx[5];\n\n\t\t\tif (dirty[0] & /*stickerStickToImage*/ 64) shapeutil_changes.shapes = /*stickerStickToImage*/ ctx[6]\n\t\t\t? /*imageAnnotation*/ ctx[34]\n\t\t\t: /*imageDecoration*/ ctx[35];\n\n\t\t\tif (dirty[0] & /*stickerStickToImage, $imageFlipX*/ 8388672) shapeutil_changes.imageFlipX = /*stickerStickToImage*/ ctx[6]\n\t\t\t? /*$imageFlipX*/ ctx[23]\n\t\t\t: false;\n\n\t\t\tif (dirty[0] & /*stickerStickToImage, $imageFlipY*/ 4194368) shapeutil_changes.imageFlipY = /*stickerStickToImage*/ ctx[6]\n\t\t\t? /*$imageFlipY*/ ctx[22]\n\t\t\t: false;\n\n\t\t\tif (dirty[0] & /*stickerStickToImage, $imageRotation*/ 1073741888) shapeutil_changes.imageRotation = /*stickerStickToImage*/ ctx[6]\n\t\t\t? /*$imageRotation*/ ctx[30]\n\t\t\t: 0;\n\n\t\t\tif (dirty[0] & /*stickerStickToImage*/ 64) shapeutil_changes.parentRect = /*stickerStickToImage*/ ctx[6]\n\t\t\t? /*imageSize*/ ctx[36]\n\t\t\t: /*imageCropRect*/ ctx[32];\n\n\t\t\tif (dirty[0] & /*snapThreshold*/ 268435456) shapeutil_changes.snapThreshold = /*snapThreshold*/ ctx[28];\n\t\t\tif (dirty[0] & /*gridSize*/ 134217728) shapeutil_changes.gridSize = /*gridSize*/ ctx[27];\n\t\t\tif (dirty[0] & /*enableSnapToContext*/ 67108864) shapeutil_changes.enableSnapToContext = /*enableSnapToContext*/ ctx[26];\n\t\t\tif (dirty[0] & /*stickerEnableDropImagePreset*/ 128) shapeutil_changes.enablePresetDropImage = /*stickerEnableDropImagePreset*/ ctx[7];\n\t\t\tif (dirty[0] & /*enablePresetSelectImage*/ 536870912) shapeutil_changes.enablePresetSelectImage = /*enablePresetSelectImage*/ ctx[29];\n\t\t\tif (dirty[0] & /*stickersEnableButtonFlipVertical, stickerEnableButtonFlipVertical*/ 1280) shapeutil_changes.enableButtonFlipVertical = /*stickersEnableButtonFlipVertical*/ ctx[10] || /*stickerEnableButtonFlipVertical*/ ctx[8];\n\t\t\tif (dirty[0] & /*markupEditorToolSelectRadius*/ 16384) shapeutil_changes.toolSelectRadius = /*markupEditorToolSelectRadius*/ ctx[14];\n\t\t\tif (dirty[0] & /*markupEditorWillStartInteraction*/ 2097152) shapeutil_changes.willStartInteraction = /*markupEditorWillStartInteraction*/ ctx[21];\n\t\t\tif (dirty[0] & /*stickersWillRenderShapePresetToolbar, stickerWillRenderShapePresetToolbar, willRenderShapePresetToolbar*/ 35328) shapeutil_changes.willRenderPresetToolbar = /*stickersWillRenderShapePresetToolbar*/ ctx[11] || /*stickerWillRenderShapePresetToolbar*/ ctx[9] || /*willRenderShapePresetToolbar*/ ctx[15];\n\n\t\t\tif (dirty[0] & /*willRenderShapeControls, willRenderShapeTextControls, beforeAddShape, beforeRemoveShape, beforeDeselectShape, beforeSelectShape, beforeUpdateShape*/ 2043904) shapeutil_changes.hooks = {\n\t\t\t\twillRenderShapeControls: /*willRenderShapeControls*/ ctx[12],\n\t\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[13],\n\t\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[16],\n\t\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[17],\n\t\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[18],\n\t\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[19],\n\t\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[20]\n\t\t\t};\n\n\t\t\tshapeutil.$set(shapeutil_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapeutil.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapeutil.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapeutil, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$8($$self, $$props, $$invalidate) {\n\tlet presentationZoom;\n\tlet enablePresetSelectImage;\n\tlet snapThreshold;\n\tlet gridSize;\n\tlet enableSnapToContext;\n\tlet mapScreenPointToImagePoint;\n\tlet mapImagePointToScreenPoint;\n\tlet $imageSelectionRectPresentation;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $imageTransformsInterpolated;\n\tlet $imageTransforms;\n\tlet $imageSize;\n\tlet $rootRect;\n\tlet $imageRotation;\n\tconst name = 'sticker';\n\tlet { isActive } = $$props;\n\tlet { isActiveFraction } = $$props;\n\tlet { isVisible } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { stickers = [] } = $$props;\n\tlet { stickerForceEnable = false } = $$props;\n\tlet { stickerStickToImage = false } = $$props;\n\tlet { stickerEnableSelectImagePreset = true } = $$props;\n\tlet { stickerEnableDropImagePreset = true } = $$props;\n\tlet { stickerEnableButtonFlipVertical = false } = $$props;\n\tlet { stickerWillRenderShapePresetToolbar = undefined } = $$props;\n\tlet { stickerEnableSelectImage = true } = $$props;\n\tlet { stickersEnableButtonFlipVertical = false } = $$props;\n\tlet { stickersWillRenderShapePresetToolbar = undefined } = $$props;\n\tlet { markupEditorGridSize = 0 } = $$props;\n\tlet { markupEditorSnapThreshold = 0 } = $$props;\n\tlet { markupEditorSnapToContext = false } = $$props;\n\tlet { annotateGridSize = undefined } = $$props;\n\tlet { annotateSnapToContext = undefined } = $$props;\n\tlet { decorateGridSize = undefined } = $$props;\n\tlet { decorateSnapToContext = undefined } = $$props;\n\tlet { willRenderShapeControls = undefined } = $$props;\n\tlet { willRenderShapeTextControls = undefined } = $$props;\n\tlet { markupEditorToolSelectRadius = undefined } = $$props;\n\tlet { willRenderShapePresetToolbar = undefined } = $$props;\n\tlet { beforeAddShape = undefined } = $$props;\n\tlet { beforeRemoveShape = undefined } = $$props;\n\tlet { beforeDeselectShape = undefined } = $$props;\n\tlet { beforeSelectShape = undefined } = $$props;\n\tlet { beforeUpdateShape = undefined } = $$props;\n\tlet { markupEditorWillStartInteraction = undefined } = $$props;\n\n\t// connect filter choice to stores\n\tconst { rootRect, imageCropRect, imageSelectionRectPresentation, imageAnnotation, imageDecoration, imageSize, imageTransforms, imageTransformsInterpolated, imageRotation, imageFlipX, imageFlipY } = stores;\n\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(58, $rootRect = value));\n\tcomponent_subscribe($$self, imageSelectionRectPresentation, value => $$invalidate(54, $imageSelectionRectPresentation = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(57, $imageSize = value));\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(56, $imageTransforms = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(55, $imageTransformsInterpolated = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(30, $imageRotation = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(23, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(22, $imageFlipY = value));\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(0, isActive = $$props.isActive);\n\t\tif ('isActiveFraction' in $$props) $$invalidate(1, isActiveFraction = $$props.isActiveFraction);\n\t\tif ('isVisible' in $$props) $$invalidate(2, isVisible = $$props.isVisible);\n\t\tif ('stores' in $$props) $$invalidate(3, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(4, locale = $$props.locale);\n\t\tif ('stickers' in $$props) $$invalidate(5, stickers = $$props.stickers);\n\t\tif ('stickerForceEnable' in $$props) $$invalidate(43, stickerForceEnable = $$props.stickerForceEnable);\n\t\tif ('stickerStickToImage' in $$props) $$invalidate(6, stickerStickToImage = $$props.stickerStickToImage);\n\t\tif ('stickerEnableSelectImagePreset' in $$props) $$invalidate(44, stickerEnableSelectImagePreset = $$props.stickerEnableSelectImagePreset);\n\t\tif ('stickerEnableDropImagePreset' in $$props) $$invalidate(7, stickerEnableDropImagePreset = $$props.stickerEnableDropImagePreset);\n\t\tif ('stickerEnableButtonFlipVertical' in $$props) $$invalidate(8, stickerEnableButtonFlipVertical = $$props.stickerEnableButtonFlipVertical);\n\t\tif ('stickerWillRenderShapePresetToolbar' in $$props) $$invalidate(9, stickerWillRenderShapePresetToolbar = $$props.stickerWillRenderShapePresetToolbar);\n\t\tif ('stickerEnableSelectImage' in $$props) $$invalidate(45, stickerEnableSelectImage = $$props.stickerEnableSelectImage);\n\t\tif ('stickersEnableButtonFlipVertical' in $$props) $$invalidate(10, stickersEnableButtonFlipVertical = $$props.stickersEnableButtonFlipVertical);\n\t\tif ('stickersWillRenderShapePresetToolbar' in $$props) $$invalidate(11, stickersWillRenderShapePresetToolbar = $$props.stickersWillRenderShapePresetToolbar);\n\t\tif ('markupEditorGridSize' in $$props) $$invalidate(46, markupEditorGridSize = $$props.markupEditorGridSize);\n\t\tif ('markupEditorSnapThreshold' in $$props) $$invalidate(47, markupEditorSnapThreshold = $$props.markupEditorSnapThreshold);\n\t\tif ('markupEditorSnapToContext' in $$props) $$invalidate(48, markupEditorSnapToContext = $$props.markupEditorSnapToContext);\n\t\tif ('annotateGridSize' in $$props) $$invalidate(49, annotateGridSize = $$props.annotateGridSize);\n\t\tif ('annotateSnapToContext' in $$props) $$invalidate(50, annotateSnapToContext = $$props.annotateSnapToContext);\n\t\tif ('decorateGridSize' in $$props) $$invalidate(51, decorateGridSize = $$props.decorateGridSize);\n\t\tif ('decorateSnapToContext' in $$props) $$invalidate(52, decorateSnapToContext = $$props.decorateSnapToContext);\n\t\tif ('willRenderShapeControls' in $$props) $$invalidate(12, willRenderShapeControls = $$props.willRenderShapeControls);\n\t\tif ('willRenderShapeTextControls' in $$props) $$invalidate(13, willRenderShapeTextControls = $$props.willRenderShapeTextControls);\n\t\tif ('markupEditorToolSelectRadius' in $$props) $$invalidate(14, markupEditorToolSelectRadius = $$props.markupEditorToolSelectRadius);\n\t\tif ('willRenderShapePresetToolbar' in $$props) $$invalidate(15, willRenderShapePresetToolbar = $$props.willRenderShapePresetToolbar);\n\t\tif ('beforeAddShape' in $$props) $$invalidate(16, beforeAddShape = $$props.beforeAddShape);\n\t\tif ('beforeRemoveShape' in $$props) $$invalidate(17, beforeRemoveShape = $$props.beforeRemoveShape);\n\t\tif ('beforeDeselectShape' in $$props) $$invalidate(18, beforeDeselectShape = $$props.beforeDeselectShape);\n\t\tif ('beforeSelectShape' in $$props) $$invalidate(19, beforeSelectShape = $$props.beforeSelectShape);\n\t\tif ('beforeUpdateShape' in $$props) $$invalidate(20, beforeUpdateShape = $$props.beforeUpdateShape);\n\t\tif ('markupEditorWillStartInteraction' in $$props) $$invalidate(21, markupEditorWillStartInteraction = $$props.markupEditorWillStartInteraction);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*$imageTransformsInterpolated*/ 16777216) {\n\t\t\t$$invalidate(53, presentationZoom = $imageTransformsInterpolated\n\t\t\t? $imageTransformsInterpolated.scale\n\t\t\t: 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*stickerEnableSelectImagePreset, stickerEnableSelectImage*/ 24576) {\n\t\t\t$$invalidate(29, enablePresetSelectImage = stickerEnableSelectImagePreset === false\n\t\t\t? false\n\t\t\t: stickerEnableSelectImage);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*markupEditorSnapThreshold*/ 65536) {\n\t\t\t// props\n\t\t\t$$invalidate(28, snapThreshold = markupEditorSnapThreshold);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stickerStickToImage*/ 64 | $$self.$$.dirty[1] & /*annotateGridSize, markupEditorGridSize, decorateGridSize*/ 1343488) {\n\t\t\t$$invalidate(27, gridSize = stickerStickToImage\n\t\t\t? isNumber(annotateGridSize)\n\t\t\t\t? annotateGridSize\n\t\t\t\t: markupEditorGridSize\n\t\t\t: isNumber(decorateGridSize)\n\t\t\t\t? decorateGridSize\n\t\t\t\t: markupEditorGridSize);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stickerStickToImage*/ 64 | $$self.$$.dirty[1] & /*annotateSnapToContext, markupEditorSnapToContext, decorateSnapToContext*/ 2752512) {\n\t\t\t$$invalidate(26, enableSnapToContext = stickerStickToImage\n\t\t\t? isBoolean(annotateSnapToContext)\n\t\t\t\t? annotateSnapToContext\n\t\t\t\t: markupEditorSnapToContext\n\t\t\t: isBoolean(decorateSnapToContext)\n\t\t\t\t? decorateSnapToContext\n\t\t\t\t: markupEditorSnapToContext);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stickerStickToImage, $imageFlipX, $imageFlipY*/ 12582976 | $$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, $imageSelectionRectPresentation, presentationZoom*/ 264241152) {\n\t\t\t//\n\t\t\t// Mapping coordinates\n\t\t\t//\n\t\t\t$$invalidate(25, mapScreenPointToImagePoint = stickerStickToImage\n\t\t\t? point => _mapScreenPointToImagePoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY)\n\t\t\t: point => {\n\t\t\t\t\tconst mappedPoint = vectorClone(point);\n\t\t\t\t\tmappedPoint.x -= $imageSelectionRectPresentation.x;\n\t\t\t\t\tmappedPoint.y -= $imageSelectionRectPresentation.y;\n\t\t\t\t\tmappedPoint.x /= presentationZoom;\n\t\t\t\t\tmappedPoint.y /= presentationZoom;\n\t\t\t\t\treturn mappedPoint;\n\t\t\t\t});\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*stickerStickToImage, $imageFlipX, $imageFlipY*/ 12582976 | $$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, presentationZoom, $imageSelectionRectPresentation*/ 264241152) {\n\t\t\t$$invalidate(24, mapImagePointToScreenPoint = stickerStickToImage\n\t\t\t? point => _mapImagePointToScreenPoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY)\n\t\t\t: point => {\n\t\t\t\t\tconst mappedPoint = vectorClone(point);\n\t\t\t\t\tmappedPoint.x *= presentationZoom;\n\t\t\t\t\tmappedPoint.y *= presentationZoom;\n\t\t\t\t\tmappedPoint.x += $imageSelectionRectPresentation.x;\n\t\t\t\t\tmappedPoint.y += $imageSelectionRectPresentation.y;\n\t\t\t\t\treturn mappedPoint;\n\t\t\t\t});\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tstores,\n\t\tlocale,\n\t\tstickers,\n\t\tstickerStickToImage,\n\t\tstickerEnableDropImagePreset,\n\t\tstickerEnableButtonFlipVertical,\n\t\tstickerWillRenderShapePresetToolbar,\n\t\tstickersEnableButtonFlipVertical,\n\t\tstickersWillRenderShapePresetToolbar,\n\t\twillRenderShapeControls,\n\t\twillRenderShapeTextControls,\n\t\tmarkupEditorToolSelectRadius,\n\t\twillRenderShapePresetToolbar,\n\t\tbeforeAddShape,\n\t\tbeforeRemoveShape,\n\t\tbeforeDeselectShape,\n\t\tbeforeSelectShape,\n\t\tbeforeUpdateShape,\n\t\tmarkupEditorWillStartInteraction,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\tmapImagePointToScreenPoint,\n\t\tmapScreenPointToImagePoint,\n\t\tenableSnapToContext,\n\t\tgridSize,\n\t\tsnapThreshold,\n\t\tenablePresetSelectImage,\n\t\t$imageRotation,\n\t\trootRect,\n\t\timageCropRect,\n\t\timageSelectionRectPresentation,\n\t\timageAnnotation,\n\t\timageDecoration,\n\t\timageSize,\n\t\timageTransforms,\n\t\timageTransformsInterpolated,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\tname,\n\t\tstickerForceEnable,\n\t\tstickerEnableSelectImagePreset,\n\t\tstickerEnableSelectImage,\n\t\tmarkupEditorGridSize,\n\t\tmarkupEditorSnapThreshold,\n\t\tmarkupEditorSnapToContext,\n\t\tannotateGridSize,\n\t\tannotateSnapToContext,\n\t\tdecorateGridSize,\n\t\tdecorateSnapToContext,\n\t\tpresentationZoom,\n\t\t$imageSelectionRectPresentation,\n\t\t$imageTransformsInterpolated,\n\t\t$imageTransforms,\n\t\t$imageSize,\n\t\t$rootRect,\n\t\tmeasure_handler\n\t];\n}\n\nclass Sticker extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$8,\n\t\t\tcreate_fragment$8,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 42,\n\t\t\t\tisActive: 0,\n\t\t\t\tisActiveFraction: 1,\n\t\t\t\tisVisible: 2,\n\t\t\t\tstores: 3,\n\t\t\t\tlocale: 4,\n\t\t\t\tstickers: 5,\n\t\t\t\tstickerForceEnable: 43,\n\t\t\t\tstickerStickToImage: 6,\n\t\t\t\tstickerEnableSelectImagePreset: 44,\n\t\t\t\tstickerEnableDropImagePreset: 7,\n\t\t\t\tstickerEnableButtonFlipVertical: 8,\n\t\t\t\tstickerWillRenderShapePresetToolbar: 9,\n\t\t\t\tstickerEnableSelectImage: 45,\n\t\t\t\tstickersEnableButtonFlipVertical: 10,\n\t\t\t\tstickersWillRenderShapePresetToolbar: 11,\n\t\t\t\tmarkupEditorGridSize: 46,\n\t\t\t\tmarkupEditorSnapThreshold: 47,\n\t\t\t\tmarkupEditorSnapToContext: 48,\n\t\t\t\tannotateGridSize: 49,\n\t\t\t\tannotateSnapToContext: 50,\n\t\t\t\tdecorateGridSize: 51,\n\t\t\t\tdecorateSnapToContext: 52,\n\t\t\t\twillRenderShapeControls: 12,\n\t\t\t\twillRenderShapeTextControls: 13,\n\t\t\t\tmarkupEditorToolSelectRadius: 14,\n\t\t\t\twillRenderShapePresetToolbar: 15,\n\t\t\t\tbeforeAddShape: 16,\n\t\t\t\tbeforeRemoveShape: 17,\n\t\t\t\tbeforeDeselectShape: 18,\n\t\t\t\tbeforeSelectShape: 19,\n\t\t\t\tbeforeUpdateShape: 20,\n\t\t\t\tmarkupEditorWillStartInteraction: 21\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[42];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget stickers() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset stickers(stickers) {\n\t\tthis.$$set({ stickers });\n\t\tflush();\n\t}\n\n\tget stickerForceEnable() {\n\t\treturn this.$$.ctx[43];\n\t}\n\n\tset stickerForceEnable(stickerForceEnable) {\n\t\tthis.$$set({ stickerForceEnable });\n\t\tflush();\n\t}\n\n\tget stickerStickToImage() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset stickerStickToImage(stickerStickToImage) {\n\t\tthis.$$set({ stickerStickToImage });\n\t\tflush();\n\t}\n\n\tget stickerEnableSelectImagePreset() {\n\t\treturn this.$$.ctx[44];\n\t}\n\n\tset stickerEnableSelectImagePreset(stickerEnableSelectImagePreset) {\n\t\tthis.$$set({ stickerEnableSelectImagePreset });\n\t\tflush();\n\t}\n\n\tget stickerEnableDropImagePreset() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset stickerEnableDropImagePreset(stickerEnableDropImagePreset) {\n\t\tthis.$$set({ stickerEnableDropImagePreset });\n\t\tflush();\n\t}\n\n\tget stickerEnableButtonFlipVertical() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset stickerEnableButtonFlipVertical(stickerEnableButtonFlipVertical) {\n\t\tthis.$$set({ stickerEnableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget stickerWillRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset stickerWillRenderShapePresetToolbar(stickerWillRenderShapePresetToolbar) {\n\t\tthis.$$set({ stickerWillRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget stickerEnableSelectImage() {\n\t\treturn this.$$.ctx[45];\n\t}\n\n\tset stickerEnableSelectImage(stickerEnableSelectImage) {\n\t\tthis.$$set({ stickerEnableSelectImage });\n\t\tflush();\n\t}\n\n\tget stickersEnableButtonFlipVertical() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset stickersEnableButtonFlipVertical(stickersEnableButtonFlipVertical) {\n\t\tthis.$$set({ stickersEnableButtonFlipVertical });\n\t\tflush();\n\t}\n\n\tget stickersWillRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset stickersWillRenderShapePresetToolbar(stickersWillRenderShapePresetToolbar) {\n\t\tthis.$$set({ stickersWillRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget markupEditorGridSize() {\n\t\treturn this.$$.ctx[46];\n\t}\n\n\tset markupEditorGridSize(markupEditorGridSize) {\n\t\tthis.$$set({ markupEditorGridSize });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapThreshold() {\n\t\treturn this.$$.ctx[47];\n\t}\n\n\tset markupEditorSnapThreshold(markupEditorSnapThreshold) {\n\t\tthis.$$set({ markupEditorSnapThreshold });\n\t\tflush();\n\t}\n\n\tget markupEditorSnapToContext() {\n\t\treturn this.$$.ctx[48];\n\t}\n\n\tset markupEditorSnapToContext(markupEditorSnapToContext) {\n\t\tthis.$$set({ markupEditorSnapToContext });\n\t\tflush();\n\t}\n\n\tget annotateGridSize() {\n\t\treturn this.$$.ctx[49];\n\t}\n\n\tset annotateGridSize(annotateGridSize) {\n\t\tthis.$$set({ annotateGridSize });\n\t\tflush();\n\t}\n\n\tget annotateSnapToContext() {\n\t\treturn this.$$.ctx[50];\n\t}\n\n\tset annotateSnapToContext(annotateSnapToContext) {\n\t\tthis.$$set({ annotateSnapToContext });\n\t\tflush();\n\t}\n\n\tget decorateGridSize() {\n\t\treturn this.$$.ctx[51];\n\t}\n\n\tset decorateGridSize(decorateGridSize) {\n\t\tthis.$$set({ decorateGridSize });\n\t\tflush();\n\t}\n\n\tget decorateSnapToContext() {\n\t\treturn this.$$.ctx[52];\n\t}\n\n\tset decorateSnapToContext(decorateSnapToContext) {\n\t\tthis.$$set({ decorateSnapToContext });\n\t\tflush();\n\t}\n\n\tget willRenderShapeControls() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset willRenderShapeControls(willRenderShapeControls) {\n\t\tthis.$$set({ willRenderShapeControls });\n\t\tflush();\n\t}\n\n\tget willRenderShapeTextControls() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset willRenderShapeTextControls(willRenderShapeTextControls) {\n\t\tthis.$$set({ willRenderShapeTextControls });\n\t\tflush();\n\t}\n\n\tget markupEditorToolSelectRadius() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset markupEditorToolSelectRadius(markupEditorToolSelectRadius) {\n\t\tthis.$$set({ markupEditorToolSelectRadius });\n\t\tflush();\n\t}\n\n\tget willRenderShapePresetToolbar() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset willRenderShapePresetToolbar(willRenderShapePresetToolbar) {\n\t\tthis.$$set({ willRenderShapePresetToolbar });\n\t\tflush();\n\t}\n\n\tget beforeAddShape() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset beforeAddShape(beforeAddShape) {\n\t\tthis.$$set({ beforeAddShape });\n\t\tflush();\n\t}\n\n\tget beforeRemoveShape() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset beforeRemoveShape(beforeRemoveShape) {\n\t\tthis.$$set({ beforeRemoveShape });\n\t\tflush();\n\t}\n\n\tget beforeDeselectShape() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset beforeDeselectShape(beforeDeselectShape) {\n\t\tthis.$$set({ beforeDeselectShape });\n\t\tflush();\n\t}\n\n\tget beforeSelectShape() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset beforeSelectShape(beforeSelectShape) {\n\t\tthis.$$set({ beforeSelectShape });\n\t\tflush();\n\t}\n\n\tget beforeUpdateShape() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset beforeUpdateShape(beforeUpdateShape) {\n\t\tthis.$$set({ beforeUpdateShape });\n\t\tflush();\n\t}\n\n\tget markupEditorWillStartInteraction() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset markupEditorWillStartInteraction(markupEditorWillStartInteraction) {\n\t\tthis.$$set({ markupEditorWillStartInteraction });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_sticker = {\n util: [\n 'sticker',\n Sticker,\n ({ stickers, stickerEnableSelectImage, stickerEnableSelectImagePreset, stickerEnableDropImagePreset, stickerForceEnable, }) => (stickers && stickers.length) ||\n stickerEnableSelectImage ||\n stickerEnableSelectImagePreset ||\n stickerEnableDropImagePreset ||\n stickerForceEnable,\n ],\n};\n\n/* src/core/ui/plugins/frame/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_option_slot$1(ctx) {\n\tlet div;\n\tlet html_tag;\n\tlet raw_value = (/*getOptionThumb*/ ctx[14](/*option*/ ctx[34].value) || '') + \"\";\n\tlet t0;\n\tlet span;\n\n\tlet t1_value = (isFunction(/*option*/ ctx[34].label)\n\t? /*option*/ ctx[34].label(/*locale*/ ctx[1])\n\t: /*option*/ ctx[34].label) + \"\";\n\n\tlet t1;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\thtml_tag = new HtmlTag(false);\n\t\t\tt0 = space();\n\t\t\tspan = element(\"span\");\n\t\t\tt1 = text(t1_value);\n\t\t\thtml_tag.a = t0;\n\t\t\tattr(div, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\thtml_tag.m(raw_value, div);\n\t\t\tappend(div, t0);\n\t\t\tappend(div, span);\n\t\t\tappend(span, t1);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 8 && raw_value !== (raw_value = (/*getOptionThumb*/ ctx[14](/*option*/ ctx[34].value) || '') + \"\")) html_tag.p(raw_value);\n\n\t\t\tif (dirty[0] & /*locale*/ 2 | dirty[1] & /*option*/ 8 && t1_value !== (t1_value = (isFunction(/*option*/ ctx[34].label)\n\t\t\t? /*option*/ ctx[34].label(/*locale*/ ctx[1])\n\t\t\t: /*option*/ ctx[34].label) + \"\")) set_data(t1, t1_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t}\n\t};\n}\n\n// (159:8) <Scrollable elasticity={scrollElasticity}>\nfunction create_default_slot$3(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[1],\n\t\t\t\tclass: \"PinturaControlList\",\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*frameOptions*/ ctx[2],\n\t\t\t\tselectedIndex: /*selectedFrameIndex*/ ctx[6],\n\t\t\t\tonchange: /*handleChangeFrame*/ ctx[12],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot$1,\n\t\t\t\t\t\t({ option }) => ({ 34: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 8 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 2) radiogroup_changes.locale = /*locale*/ ctx[1];\n\t\t\tif (dirty[0] & /*frameOptions*/ 4) radiogroup_changes.options = /*frameOptions*/ ctx[2];\n\t\t\tif (dirty[0] & /*selectedFrameIndex*/ 64) radiogroup_changes.selectedIndex = /*selectedFrameIndex*/ ctx[6];\n\n\t\t\tif (dirty[0] & /*locale*/ 2 | dirty[1] & /*$$scope, option*/ 24) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (150:4) \nfunction create_footer_slot$2(ctx) {\n\tlet div;\n\tlet shapestyleeditor;\n\tlet t;\n\tlet scrollable;\n\tlet current;\n\n\tshapestyleeditor = new ShapeStyleEditor({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[1],\n\t\t\t\tclass: \"PinturaControlPanels\",\n\t\t\t\tshape: /*$imageFrame*/ ctx[4],\n\t\t\t\tonchange: /*handleUpdateSelectedFrameShape*/ ctx[13],\n\t\t\t\tcontrols: /*markupEditorShapeStyleControls*/ ctx[3],\n\t\t\t\tscrollElasticity: /*computedScrollElasticity*/ ctx[7]\n\t\t\t}\n\t\t});\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\telasticity: /*scrollElasticity*/ ctx[10],\n\t\t\t\t$$slots: { default: [create_default_slot$3] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(shapestyleeditor.$$.fragment);\n\t\t\tt = space();\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[5]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(shapestyleeditor, div, null);\n\t\t\tappend(div, t);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapestyleeditor_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 2) shapestyleeditor_changes.locale = /*locale*/ ctx[1];\n\t\t\tif (dirty[0] & /*$imageFrame*/ 16) shapestyleeditor_changes.shape = /*$imageFrame*/ ctx[4];\n\t\t\tif (dirty[0] & /*markupEditorShapeStyleControls*/ 8) shapestyleeditor_changes.controls = /*markupEditorShapeStyleControls*/ ctx[3];\n\t\t\tif (dirty[0] & /*computedScrollElasticity*/ 128) shapestyleeditor_changes.scrollElasticity = /*computedScrollElasticity*/ ctx[7];\n\t\t\tshapestyleeditor.$set(shapestyleeditor_changes);\n\t\t\tconst scrollable_changes = {};\n\n\t\t\tif (dirty[0] & /*locale, frameOptions, selectedFrameIndex*/ 70 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 32) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[5]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapestyleeditor.$$.fragment, local);\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapestyleeditor.$$.fragment, local);\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(shapestyleeditor);\n\t\t\tdestroy_component(scrollable);\n\t\t}\n\t};\n}\n\nfunction create_fragment$7(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\t$$slots: { footer: [create_footer_slot$2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[23]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\n\t\t\tif (dirty[0] & /*footerStyle, locale, frameOptions, selectedFrameIndex, $imageFrame, markupEditorShapeStyleControls, computedScrollElasticity*/ 254 | dirty[1] & /*$$scope*/ 16) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$7($$self, $$props, $$invalidate) {\n\tlet computedScrollElasticity;\n\tlet selectedFrameIndex;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(20, $isActive = $$value)), isActive);\n\n\tlet $animation;\n\tlet $imageFrame;\n\tlet $elasticityMultiplier;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\tconst name = 'frame';\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { frameStyles = {} } = $$props;\n\tlet { frameOptions = [] } = $$props;\n\tlet { markupEditorShapeStyleControls = undefined } = $$props;\n\n\t//\n\t// context\n\t//\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(22, $elasticityMultiplier = value));\n\n\t// connect filter choice to stores\n\tconst { history, animation, scrollElasticity, imageFrame, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\n\tcomponent_subscribe($$self, animation, value => $$invalidate(21, $animation = value));\n\tcomponent_subscribe($$self, imageFrame, value => $$invalidate(4, $imageFrame = value));\n\n\t// default frame styles\n\tlet frameActiveStyles = {};\n\n\tconst handleChangeFrame = ({ value }) => {\n\t\t// get new frame\n\t\tconst frameBase = frameStyles[value];\n\n\t\t// no new frame selected\n\t\tif (!frameBase || !frameBase.shape) {\n\t\t\timageFrame.set(undefined);\n\t\t\thistory.write();\n\t\t\treturn;\n\t\t}\n\n\t\tconst { shape } = frameBase;\n\n\t\t// create new base frame\n\t\tconst frame = {\n\t\t\tid: value,\n\t\t\t// copy the frame base, it's possible that this frame has a different layout\n\t\t\t...shapeDeepCopy(shape),\n\t\t\t// set base styles\n\t\t\t...Object.keys(frameActiveStyles).reduce(\n\t\t\t\t(frameStyles, prop) => {\n\t\t\t\t\tif (!shape[prop]) return frameStyles;\n\t\t\t\t\tframeStyles[prop] = frameActiveStyles[prop];\n\t\t\t\t\treturn frameStyles;\n\t\t\t\t},\n\t\t\t\t{}\n\t\t\t)\n\t\t};\n\n\t\timageFrame.set(frame);\n\t\thistory.write();\n\t};\n\n\tlet updateWriteHistoryTimeoutId;\n\n\tfunction handleUpdateSelectedFrameShape(props) {\n\t\t// remember color style for when creating or styling other element\n\t\tif (hasProp(props, 'frameColor')) frameActiveStyles.frameColor = props.frameColor;\n\n\t\t// it's possible we're only updating default styles\n\t\tif (!$imageFrame) return;\n\n\t\t// frameSelected\n\t\tshapeUpdateProps($imageFrame, props);\n\n\t\t// update shape so ui shape controls are updated\n\t\timageFrame.set($imageFrame);\n\n\t\t// so we don't write every state change to history\n\t\tclearTimeout(updateWriteHistoryTimeoutId);\n\n\t\tupdateWriteHistoryTimeoutId = setTimeout(\n\t\t\t() => {\n\t\t\t\thistory.write();\n\t\t\t},\n\t\t\t200\n\t\t);\n\t}\n\n\tconst isIncompleteSVGMarkup = str => (/rect|path|circle|line|<g>/i).test(str);\n\tconst isHTML = str => (/div/i).test(str);\n\n\tconst getThumb = value => {\n\t\tif (isHTML(value)) return value;\n\n\t\t// could be full svg\n\t\tif (isSVGMarkup(value)) return value;\n\n\t\t// could be a partial svg in which case we turn it into a full svg\n\t\tif (isIncompleteSVGMarkup(value)) return `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" stroke-width=\"1\" stroke=\"currentColor\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${value}</svg>`;\n\n\t\t// if not, must be URL\n\t\treturn `<img src=\"${value}\" alt=\"\"/>`;\n\t};\n\n\tconst getOptionThumb = key => {\n\t\tconst frameStyle = frameStyles[key];\n\t\tif (!frameStyle || !frameStyle.thumb) return;\n\t\treturn getThumb(frameStyle.thumb);\n\t};\n\n\t//\n\t// Footer style\n\t//\n\tconst footerOffset = spring($animation ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(19, $footerOffset = value));\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('stores' in $$props) $$invalidate(17, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(1, locale = $$props.locale);\n\t\tif ('frameStyles' in $$props) $$invalidate(18, frameStyles = $$props.frameStyles);\n\t\tif ('frameOptions' in $$props) $$invalidate(2, frameOptions = $$props.frameOptions);\n\t\tif ('markupEditorShapeStyleControls' in $$props) $$invalidate(3, markupEditorShapeStyleControls = $$props.markupEditorShapeStyleControls);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 1048576) {\n\t\t\t// enable pan and zoom\n\t\t\tallowPan.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 1048576) {\n\t\t\tallowZoom.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 1048576) {\n\t\t\tallowZoomControls.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 1048576) {\n\t\t\t$isActive && allowPlayPause.set(true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$elasticityMultiplier*/ 4194304) {\n\t\t\t//\n\t\t\t// scroll components\n\t\t\t//\n\t\t\t$$invalidate(7, computedScrollElasticity = $elasticityMultiplier * scrollElasticity);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$imageFrame, frameOptions*/ 20) {\n\t\t\t// current index in frame list\n\t\t\t$$invalidate(6, selectedFrameIndex = $imageFrame\n\t\t\t? frameOptions.findIndex(([id]) => id === $imageFrame.id)\n\t\t\t: 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$animation, $isActive*/ 3145728) {\n\t\t\t$animation && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$footerOffset*/ 524288) {\n\t\t\t$$invalidate(5, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tlocale,\n\t\tframeOptions,\n\t\tmarkupEditorShapeStyleControls,\n\t\t$imageFrame,\n\t\tfooterStyle,\n\t\tselectedFrameIndex,\n\t\tcomputedScrollElasticity,\n\t\telasticityMultiplier,\n\t\tanimation,\n\t\tscrollElasticity,\n\t\timageFrame,\n\t\thandleChangeFrame,\n\t\thandleUpdateSelectedFrameShape,\n\t\tgetOptionThumb,\n\t\tfooterOffset,\n\t\tname,\n\t\tstores,\n\t\tframeStyles,\n\t\t$footerOffset,\n\t\t$isActive,\n\t\t$animation,\n\t\t$elasticityMultiplier,\n\t\tmeasure_handler\n\t];\n}\n\nclass Frame extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$7,\n\t\t\tcreate_fragment$7,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 16,\n\t\t\t\tisActive: 0,\n\t\t\t\tstores: 17,\n\t\t\t\tlocale: 1,\n\t\t\t\tframeStyles: 18,\n\t\t\t\tframeOptions: 2,\n\t\t\t\tmarkupEditorShapeStyleControls: 3\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget frameStyles() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset frameStyles(frameStyles) {\n\t\tthis.$$set({ frameStyles });\n\t\tflush();\n\t}\n\n\tget frameOptions() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset frameOptions(frameOptions) {\n\t\tthis.$$set({ frameOptions });\n\t\tflush();\n\t}\n\n\tget markupEditorShapeStyleControls() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset markupEditorShapeStyleControls(markupEditorShapeStyleControls) {\n\t\tthis.$$set({ markupEditorShapeStyleControls });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_frame = { util: ['frame', Frame, ({ src }) => src && !isVideoFile(src)] };\n\n/* src/core/ui/plugins/resize/DimensionInput.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$6(ctx) {\n\tlet div;\n\tlet input;\n\tlet input_value_value;\n\tlet t0;\n\tlet label_1;\n\tlet t1;\n\tlet mounted;\n\tlet dispose;\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tinput = element(\"input\");\n\t\t\tt0 = space();\n\t\t\tlabel_1 = element(\"label\");\n\t\t\tt1 = text(/*label*/ ctx[1]);\n\t\t\tattr(input, \"id\", /*id*/ ctx[0]);\n\t\t\tattr(input, \"type\", \"number\");\n\t\t\tattr(input, \"min\", \"1\");\n\t\t\tattr(input, \"inputmode\", \"numeric\");\n\t\t\tattr(input, \"pattern\", \"[0-9]*\");\n\t\t\tattr(input, \"data-state\", /*state*/ ctx[3]);\n\t\t\tattr(input, \"autocomplete\", \"off\");\n\t\t\tattr(input, \"placeholder\", /*placeholder*/ ctx[4]);\n\n\t\t\tinput.value = input_value_value = /*value*/ ctx[5] === undefined\n\t\t\t? ''\n\t\t\t: /*format*/ ctx[7](/*value*/ ctx[5] + '');\n\n\t\t\tattr(label_1, \"for\", /*id*/ ctx[0]);\n\t\t\tattr(label_1, \"title\", /*title*/ ctx[2]);\n\t\t\tattr(label_1, \"aria-label\", /*title*/ ctx[2]);\n\t\t\tattr(div, \"class\", \"PinturaInputDimension\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, input);\n\t\t\tappend(div, t0);\n\t\t\tappend(div, label_1);\n\t\t\tappend(label_1, t1);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(input, \"input\", /*input_handler*/ ctx[8]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (dirty & /*id*/ 1) {\n\t\t\t\tattr(input, \"id\", /*id*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (dirty & /*state*/ 8) {\n\t\t\t\tattr(input, \"data-state\", /*state*/ ctx[3]);\n\t\t\t}\n\n\t\t\tif (dirty & /*placeholder*/ 16) {\n\t\t\t\tattr(input, \"placeholder\", /*placeholder*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (dirty & /*value, format*/ 160 && input_value_value !== (input_value_value = /*value*/ ctx[5] === undefined\n\t\t\t? ''\n\t\t\t: /*format*/ ctx[7](/*value*/ ctx[5] + '')) && input.value !== input_value_value) {\n\t\t\t\tinput.value = input_value_value;\n\t\t\t}\n\n\t\t\tif (dirty & /*label*/ 2) set_data(t1, /*label*/ ctx[1]);\n\n\t\t\tif (dirty & /*id*/ 1) {\n\t\t\t\tattr(label_1, \"for\", /*id*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (dirty & /*title*/ 4) {\n\t\t\t\tattr(label_1, \"title\", /*title*/ ctx[2]);\n\t\t\t}\n\n\t\t\tif (dirty & /*title*/ 4) {\n\t\t\t\tattr(label_1, \"aria-label\", /*title*/ ctx[2]);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$6($$self, $$props, $$invalidate) {\n\tlet { id } = $$props;\n\tlet { label } = $$props;\n\tlet { title } = $$props;\n\tlet { state } = $$props;\n\tlet { placeholder } = $$props;\n\tlet { value } = $$props;\n\tlet { onchange } = $$props;\n\tlet { format = str => str.replace(/\\D/g, '') } = $$props;\n\tconst input_handler = e => onchange(format(e.currentTarget.value));\n\n\t$$self.$$set = $$props => {\n\t\tif ('id' in $$props) $$invalidate(0, id = $$props.id);\n\t\tif ('label' in $$props) $$invalidate(1, label = $$props.label);\n\t\tif ('title' in $$props) $$invalidate(2, title = $$props.title);\n\t\tif ('state' in $$props) $$invalidate(3, state = $$props.state);\n\t\tif ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);\n\t\tif ('value' in $$props) $$invalidate(5, value = $$props.value);\n\t\tif ('onchange' in $$props) $$invalidate(6, onchange = $$props.onchange);\n\t\tif ('format' in $$props) $$invalidate(7, format = $$props.format);\n\t};\n\n\treturn [id, label, title, state, placeholder, value, onchange, format, input_handler];\n}\n\nclass DimensionInput extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$6, create_fragment$6, safe_not_equal, {\n\t\t\tid: 0,\n\t\t\tlabel: 1,\n\t\t\ttitle: 2,\n\t\t\tstate: 3,\n\t\t\tplaceholder: 4,\n\t\t\tvalue: 5,\n\t\t\tonchange: 6,\n\t\t\tformat: 7\n\t\t});\n\t}\n}\n\n/* src/core/ui/plugins/resize/DimensionLock.svelte generated by Svelte v3.52.0 */\n\nfunction create_default_slot$2(ctx) {\n\tlet g;\n\n\treturn {\n\t\tc() {\n\t\t\tg = svg_element(\"g\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, g, anchor);\n\t\t\tg.innerHTML = /*icon*/ ctx[2];\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty & /*icon*/ 4) g.innerHTML = /*icon*/ ctx[2];\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(g);\n\t\t}\n\t};\n}\n\nfunction create_fragment$5(ctx) {\n\tlet div;\n\tlet input;\n\tlet t;\n\tlet label;\n\tlet icon_1;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\n\ticon_1 = new Icon({\n\t\t\tprops: {\n\t\t\t\t$$slots: { default: [create_default_slot$2] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tinput = element(\"input\");\n\t\t\tt = space();\n\t\t\tlabel = element(\"label\");\n\t\t\tcreate_component(icon_1.$$.fragment);\n\t\t\tattr(input, \"id\", /*id*/ ctx[0]);\n\t\t\tattr(input, \"class\", \"implicit\");\n\t\t\tattr(input, \"type\", \"checkbox\");\n\t\t\tinput.checked = /*locked*/ ctx[1];\n\t\t\tattr(label, \"for\", /*id*/ ctx[0]);\n\t\t\tattr(label, \"title\", /*title*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tappend(div, input);\n\t\t\tappend(div, t);\n\t\t\tappend(div, label);\n\t\t\tmount_component(icon_1, label, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = listen(input, \"change\", /*change_handler*/ ctx[5]);\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tif (!current || dirty & /*id*/ 1) {\n\t\t\t\tattr(input, \"id\", /*id*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*locked*/ 2) {\n\t\t\t\tinput.checked = /*locked*/ ctx[1];\n\t\t\t}\n\n\t\t\tconst icon_1_changes = {};\n\n\t\t\tif (dirty & /*$$scope, icon*/ 68) {\n\t\t\t\ticon_1_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\ticon_1.$set(icon_1_changes);\n\n\t\t\tif (!current || dirty & /*id*/ 1) {\n\t\t\t\tattr(label, \"for\", /*id*/ ctx[0]);\n\t\t\t}\n\n\t\t\tif (!current || dirty & /*title*/ 8) {\n\t\t\t\tattr(label, \"title\", /*title*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(icon_1.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(icon_1.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(icon_1);\n\t\t\tmounted = false;\n\t\t\tdispose();\n\t\t}\n\t};\n}\n\nfunction instance$5($$self, $$props, $$invalidate) {\n\tlet { id } = $$props;\n\tlet { locked } = $$props;\n\tlet { icon } = $$props;\n\tlet { title } = $$props;\n\tlet { onchange } = $$props;\n\tconst change_handler = e => onchange(e.currentTarget.checked);\n\n\t$$self.$$set = $$props => {\n\t\tif ('id' in $$props) $$invalidate(0, id = $$props.id);\n\t\tif ('locked' in $$props) $$invalidate(1, locked = $$props.locked);\n\t\tif ('icon' in $$props) $$invalidate(2, icon = $$props.icon);\n\t\tif ('title' in $$props) $$invalidate(3, title = $$props.title);\n\t\tif ('onchange' in $$props) $$invalidate(4, onchange = $$props.onchange);\n\t};\n\n\treturn [id, locked, icon, title, onchange, change_handler];\n}\n\nclass DimensionLock extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$5, create_fragment$5, safe_not_equal, {\n\t\t\tid: 0,\n\t\t\tlocked: 1,\n\t\t\ticon: 2,\n\t\t\ttitle: 3,\n\t\t\tonchange: 4\n\t\t});\n\t}\n}\n\n/* src/core/ui/plugins/resize/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_default_slot$1(ctx) {\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tt = text(\"Save\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, t, anchor);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(t);\n\t\t}\n\t};\n}\n\n// (599:4) \nfunction create_footer_slot$1(ctx) {\n\tlet form;\n\tlet div1;\n\tlet fieldset;\n\tlet legend;\n\tlet t0_value = /*locale*/ ctx[1].resizeLabelFormCaption + \"\";\n\tlet t0;\n\tlet t1;\n\tlet div0;\n\tlet dynamiccomponenttree;\n\tlet t2;\n\tlet button;\n\tlet current;\n\tlet mounted;\n\tlet dispose;\n\tdynamiccomponenttree = new DynamicComponentTree_1({ props: { items: /*tools*/ ctx[4] } });\n\n\tbutton = new Button({\n\t\t\tprops: {\n\t\t\t\ttype: \"submit\",\n\t\t\t\tclass: \"implicit\",\n\t\t\t\t$$slots: { default: [create_default_slot$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tform = element(\"form\");\n\t\t\tdiv1 = element(\"div\");\n\t\t\tfieldset = element(\"fieldset\");\n\t\t\tlegend = element(\"legend\");\n\t\t\tt0 = text(t0_value);\n\t\t\tt1 = space();\n\t\t\tdiv0 = element(\"div\");\n\t\t\tcreate_component(dynamiccomponenttree.$$.fragment);\n\t\t\tt2 = space();\n\t\t\tcreate_component(button.$$.fragment);\n\t\t\tattr(legend, \"class\", \"implicit\");\n\t\t\tattr(div0, \"class\", \"PinturaFieldsetInner\");\n\t\t\tattr(div1, \"class\", \"PinturaFormInner\");\n\t\t\tattr(form, \"slot\", \"footer\");\n\t\t\tattr(form, \"style\", /*footerStyle*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, form, anchor);\n\t\t\tappend(form, div1);\n\t\t\tappend(div1, fieldset);\n\t\t\tappend(fieldset, legend);\n\t\t\tappend(legend, t0);\n\t\t\tappend(fieldset, t1);\n\t\t\tappend(fieldset, div0);\n\t\t\tmount_component(dynamiccomponenttree, div0, null);\n\t\t\t/*div0_binding*/ ctx[65](div0);\n\t\t\tappend(div1, t2);\n\t\t\tmount_component(button, div1, null);\n\t\t\tcurrent = true;\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(div0, \"focusin\", /*handleFocusIn*/ ctx[15]),\n\t\t\t\t\tlisten(div0, \"focusout\", /*handleFocusOut*/ ctx[16]),\n\t\t\t\t\tlisten(form, \"submit\", prevent_default(/*handleSubmit*/ ctx[17]))\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif ((!current || dirty[0] & /*locale*/ 2) && t0_value !== (t0_value = /*locale*/ ctx[1].resizeLabelFormCaption + \"\")) set_data(t0, t0_value);\n\t\t\tconst dynamiccomponenttree_changes = {};\n\t\t\tif (dirty[0] & /*tools*/ 16) dynamiccomponenttree_changes.items = /*tools*/ ctx[4];\n\t\t\tdynamiccomponenttree.$set(dynamiccomponenttree_changes);\n\t\t\tconst button_changes = {};\n\n\t\t\tif (dirty[3] & /*$$scope*/ 16) {\n\t\t\t\tbutton_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tbutton.$set(button_changes);\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 8) {\n\t\t\t\tattr(form, \"style\", /*footerStyle*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(dynamiccomponenttree.$$.fragment, local);\n\t\t\ttransition_in(button.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(dynamiccomponenttree.$$.fragment, local);\n\t\t\ttransition_out(button.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(form);\n\t\t\tdestroy_component(dynamiccomponenttree);\n\t\t\t/*div0_binding*/ ctx[65](null);\n\t\t\tdestroy_component(button);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction create_fragment$4(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\t$$slots: { footer: [create_footer_slot$1] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[66]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\n\t\t\tif (dirty[0] & /*footerStyle, fieldsGroup, tools, locale*/ 30 | dirty[3] & /*$$scope*/ 16) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$4($$self, $$props, $$invalidate) {\n\tlet sizePresetLabel;\n\tlet widthPresetLabel;\n\tlet heightPresetLabel;\n\tlet canRenderSizePresets;\n\tlet canRenderWidthPresets;\n\tlet canRenderHeightPresets;\n\tlet canRenderSizeInputs;\n\tlet tools;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(49, $isActive = $$value)), isActive);\n\n\tlet $animation;\n\tlet $env;\n\tlet $imageCropRect;\n\tlet $imageCropRectAspectRatio;\n\tlet $iconActiveFraction;\n\tlet $heightPresetSelectedIndex;\n\tlet $formattedResizeHeightPresetOptions;\n\tlet $widthPresetSelectedIndex;\n\tlet $formattedResizeWidthPresetOptions;\n\tlet $sizePresetSelectedIndex;\n\tlet $formattedResizeSizePresetOptions;\n\tlet $imageOutputSize;\n\tlet $imageCropAspectRatio;\n\tlet $formattedResizeHeightPresetOptionsFlattened;\n\tlet $formattedResizeWidthPresetOptionsFlattened;\n\tlet $formattedResizeSizePresetOptionsFlattened;\n\tlet $imageSize;\n\tlet $imageSelectionZoom;\n\tlet $imageSelectionPan;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\n\tconst formatValue = (value, min = 0, max = 9999) => {\n\t\tif (isString(value)) {\n\t\t\tvalue = value.replace(/\\D/g, '');\n\t\t\tif (!value.length) return;\n\t\t}\n\n\t\tconst v = Math.round(value);\n\t\tif (Number.isNaN(v)) return;\n\t\treturn clamp(v, min, max);\n\t};\n\n\tconst name = 'resize';\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { resizeMinSize = sizeCreate(1, 1) } = $$props;\n\tlet { resizeMaxSize = sizeCreate(9999, 9999) } = $$props;\n\tlet { resizeAspectRatioLocked = false } = $$props;\n\tlet { resizeEnableButtonLockAspectRatio = true } = $$props;\n\tlet { resizeSizePresetOptions = undefined } = $$props;\n\tlet { resizeWidthPresetOptions = undefined } = $$props;\n\tlet { resizeHeightPresetOptions = undefined } = $$props;\n\tlet { resizeWillRenderFooter = passthrough } = $$props;\n\n\t// offset\n\tconst iconActiveFraction = spring(0, { stiffness: 0.15, damping: 0.3 });\n\n\tcomponent_subscribe($$self, iconActiveFraction, value => $$invalidate(54, $iconActiveFraction = value));\n\tconst { animation, imageSize, imageCropRect, imageCropRectAspectRatio, imageCropAspectRatio, imageOutputSize, imageSelectionZoom, imageSelectionPan, history, env, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\tcomponent_subscribe($$self, animation, value => $$invalidate(50, $animation = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(73, $imageSize = value));\n\tcomponent_subscribe($$self, imageCropRect, value => $$invalidate(52, $imageCropRect = value));\n\tcomponent_subscribe($$self, imageCropRectAspectRatio, value => $$invalidate(53, $imageCropRectAspectRatio = value));\n\tcomponent_subscribe($$self, imageCropAspectRatio, value => $$invalidate(72, $imageCropAspectRatio = value));\n\tcomponent_subscribe($$self, imageOutputSize, value => $$invalidate(61, $imageOutputSize = value));\n\tcomponent_subscribe($$self, imageSelectionZoom, value => $$invalidate(74, $imageSelectionZoom = value));\n\tcomponent_subscribe($$self, imageSelectionPan, value => $$invalidate(75, $imageSelectionPan = value));\n\tcomponent_subscribe($$self, env, value => $$invalidate(51, $env = value));\n\tconst formId = getUniqueId();\n\tlet fieldsGroup;\n\tlet width;\n\tlet height;\n\tlet activeField;\n\tlet lastActiveField;\n\tlet storedImageSelectionPan = vectorCreateEmpty();\n\tlet storedImageSelectionZoom;\n\n\tconst rememberPanZoom = () => {\n\t\tstoredImageSelectionPan = $imageSelectionPan;\n\t\tstoredImageSelectionZoom = $imageSelectionZoom;\n\t};\n\n\t// zoom image preview so it scales to show the actual image output size\n\tconst updateSelectionScale = outputSize => {\n\t\t// always reset to center\n\t\tset_store_value(imageSelectionPan, $imageSelectionPan = vectorCreateEmpty(), $imageSelectionPan);\n\n\t\t// no resizing, zoom to actual size\n\t\tif (!outputSize || !$imageCropRect) {\n\t\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = 1, $imageSelectionZoom);\n\t\t\treturn;\n\t\t}\n\n\t\t// zoom image to fit image target size\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = outputSize.width / $imageCropRect.width || outputSize.height / $imageCropRect.height, $imageSelectionZoom);\n\t};\n\n\tconst resetSelectionScale = () => {\n\t\tset_store_value(imageSelectionPan, $imageSelectionPan = storedImageSelectionPan, $imageSelectionPan);\n\t\tset_store_value(imageSelectionZoom, $imageSelectionZoom = storedImageSelectionZoom, $imageSelectionZoom);\n\t};\n\n\tconst getState = (value, field, activeField, resizeMinSize, resizeMaxSize) => value != null && activeField !== field\n\t? value >= resizeMinSize[field] && value <= resizeMaxSize[field]\n\t\t? 'valid'\n\t\t: 'invalid'\n\t: 'undetermined';\n\n\tconst getWidthPlaceholder = (value, cropAspectRatio, cropRect) => Math.round(value != null ? value * cropAspectRatio : cropRect.width);\n\n\tconst getHeightPlaceholder = (value, cropAspectRatio, cropRect) => Math.round(value != null\n\t? value / cropAspectRatio\n\t: cropRect.height);\n\n\t// populate active field\n\tconst handleFocusIn = e => {\n\t\tconst id = e.target.id;\n\n\t\tif ((/width/).test(id)) {\n\t\t\t$$invalidate(40, activeField = 'width');\n\t\t} else if ((/height/).test(id)) {\n\t\t\t$$invalidate(40, activeField = 'height');\n\t\t} else if ((/aspectRatio/i).test(id)) {\n\t\t\t$$invalidate(40, activeField = 'lock');\n\t\t} else {\n\t\t\t$$invalidate(40, activeField = undefined);\n\t\t}\n\t};\n\n\tconst handleFocusOut = e => {\n\t\tif (!fieldsGroup.contains(e.relatedTarget)) handleSubmit();\n\t\t$$invalidate(40, activeField = undefined);\n\t};\n\n\t// sync fields if one has a value and aspect ratio should be maintained\n\tconst syncFields = () => {\n\t\tif (!resizeAspectRatioLocked || !width || !height) return;\n\n\t\tif (activeField === 'width') {\n\t\t\t// sync height field\n\t\t\t$$invalidate(39, height = Math.round(width / $imageCropRectAspectRatio));\n\t\t} else if (activeField === 'height') {\n\t\t\t// sync width field\n\t\t\t$$invalidate(38, width = Math.round(height * $imageCropRectAspectRatio));\n\t\t} else {\n\t\t\tif (lastActiveField === 'width') {\n\t\t\t\t$$invalidate(39, height = Math.round(width / $imageCropRectAspectRatio));\n\t\t\t} else if (lastActiveField === 'height') {\n\t\t\t\t$$invalidate(38, width = Math.round(height * $imageCropRectAspectRatio));\n\t\t\t}\n\n\t\t\tconsolidateSize();\n\t\t}\n\t};\n\n\tconst consolidateSize = forcedAspectRatio => {\n\t\t// first need to limit values\n\t\tlet inputWidth = formatValue(width);\n\n\t\tlet inputHeight = formatValue(height);\n\t\tlet currentWidth = inputWidth;\n\t\tlet currentHeight = inputHeight;\n\t\tlet bothAxisDefined = currentWidth && currentHeight;\n\t\tlet aspectRatio = forcedAspectRatio || $imageCropRectAspectRatio;\n\n\t\t// done, no consolidation needed\n\t\tif (!currentWidth && !currentHeight) return;\n\n\t\t// need to fill in missing values\n\t\tif (currentWidth && !currentHeight) {\n\t\t\tcurrentHeight = Math.round(currentWidth / aspectRatio);\n\t\t} else if (currentHeight && !currentWidth) {\n\t\t\tcurrentWidth = Math.round(currentHeight * aspectRatio);\n\t\t}\n\n\t\taspectRatio = forcedAspectRatio || bothAxisDefined\n\t\t? getAspectRatio(currentWidth, currentHeight)\n\t\t: $imageCropRectAspectRatio;\n\n\t\t// now we have both width and height let's re-fit the min max size\n\t\tlet currentSize = sizeCreate(currentWidth, currentHeight);\n\n\t\tif (!sizeContains(resizeMaxSize, currentSize)) {\n\t\t\t// too big\n\t\t\tcurrentSize = rectContainRect(resizeMaxSize, aspectRatio);\n\t\t}\n\n\t\tif (!sizeContains(currentSize, resizeMinSize)) {\n\t\t\t// too small\n\t\t\tcurrentSize = rectCoverRect(resizeMinSize, aspectRatio);\n\t\t}\n\n\t\t$$invalidate(38, width = inputWidth != null\n\t\t? Math.round(currentSize.width)\n\t\t: undefined);\n\n\t\t$$invalidate(39, height = inputHeight != null\n\t\t? Math.round(currentSize.height)\n\t\t: undefined);\n\t};\n\n\tconst handleSubmit = () => {\n\t\t// calculate correct values\n\t\tconsolidateSize();\n\n\t\t// get curent values so we can check if they were changed (if not, no need to write history or update)\n\t\tconst { width: currentWidth, height: currentHeight } = $imageOutputSize || {};\n\n\t\t// no need to update\n\t\tif (currentWidth === width && currentHeight === height) return;\n\n\t\t// update state\n\t\tif (!width && !height) {\n\t\t\t// reset image crop\n\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = $imageSize.width / $imageSize.height, $imageCropAspectRatio);\n\n\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = undefined, $imageCropAspectRatio);\n\n\t\t\t// reset output size\n\t\t\tset_store_value(imageOutputSize, $imageOutputSize = undefined, $imageOutputSize);\n\t\t} else {\n\t\t\tif (width && height) set_store_value(imageCropAspectRatio, $imageCropAspectRatio = width / height, $imageCropAspectRatio);\n\t\t\tset_store_value(imageOutputSize, $imageOutputSize = sizeCreate(width, height), $imageOutputSize);\n\t\t}\n\n\t\thistory.write();\n\t};\n\n\t// handle external updates to outputSize\n\tconst imageOutputSizeUnsub = imageOutputSize.subscribe(size => {\n\t\tif (!size) {\n\t\t\t$$invalidate(38, width = undefined);\n\t\t\t$$invalidate(39, height = undefined);\n\t\t\treturn;\n\t\t}\n\n\t\t$$invalidate(38, width = size.width);\n\t\t$$invalidate(39, height = size.height);\n\n\t\t// make sure the size conforms to min max\n\t\tconsolidateSize();\n\t});\n\n\t// if the crop aspect ratio is changed we need to align width/height\n\tconst imageCropAspectRatioUnsub = imageCropAspectRatio.subscribe(cropAspectRatio => {\n\t\t// exit if no dimensions supplied\n\t\tif (!width && !height) return;\n\n\t\t// no crop aspect ratio has been selected, so all is fine\n\t\tif (!cropAspectRatio) return;\n\n\t\t// fix size to match new aspect ratio of the crop\n\t\tif (width && height && getAspectRatio(width, height) !== cropAspectRatio) {\n\t\t\t$$invalidate(39, height = width / cropAspectRatio);\n\t\t\tconsolidateSize(cropAspectRatio);\n\t\t} else {\n\t\t\tconsolidateSize();\n\t\t}\n\t});\n\n\t//\n\t// size presets\n\t//\n\tconst formatPresetDimensionOption = option => {\n\t\tif (isString(option[0])) {\n\t\t\toption[1] = option[1].map(formatPresetDimensionOption);\n\t\t\treturn option;\n\t\t}\n\n\t\treturn isNumber(option) ? [option, '' + option] : option;\n\t};\n\n\tconst formatPresetSizeOption = option => {\n\t\tif (isString(option[0])) {\n\t\t\toption[1] = option[1].map(formatPresetSizeOption);\n\t\t\treturn option;\n\t\t}\n\n\t\tlet [value, label] = option;\n\n\t\t// Size only\n\t\tif (isNumber(value) && isNumber(label)) {\n\t\t\tconst [w, h] = [value, label];\n\t\t\tlabel = `${w} × ${h}`;\n\t\t\tvalue = [w, h];\n\t\t}\n\n\t\treturn [value, label];\n\t};\n\n\tconst formattedResizeSizePresetOptions = writable();\n\tcomponent_subscribe($$self, formattedResizeSizePresetOptions, value => $$invalidate(60, $formattedResizeSizePresetOptions = value));\n\tconst formattedResizeSizePresetOptionsFlattened = writable();\n\tcomponent_subscribe($$self, formattedResizeSizePresetOptionsFlattened, value => $$invalidate(64, $formattedResizeSizePresetOptionsFlattened = value));\n\tconst formattedResizeWidthPresetOptions = writable();\n\tcomponent_subscribe($$self, formattedResizeWidthPresetOptions, value => $$invalidate(58, $formattedResizeWidthPresetOptions = value));\n\tconst formattedResizeWidthPresetOptionsFlattened = writable();\n\tcomponent_subscribe($$self, formattedResizeWidthPresetOptionsFlattened, value => $$invalidate(63, $formattedResizeWidthPresetOptionsFlattened = value));\n\tconst formattedResizeHeightPresetOptions = writable();\n\tcomponent_subscribe($$self, formattedResizeHeightPresetOptions, value => $$invalidate(56, $formattedResizeHeightPresetOptions = value));\n\tconst formattedResizeHeightPresetOptionsFlattened = writable();\n\tcomponent_subscribe($$self, formattedResizeHeightPresetOptionsFlattened, value => $$invalidate(62, $formattedResizeHeightPresetOptionsFlattened = value));\n\n\tconst sizePresetSelectedIndex = derived([imageOutputSize, formattedResizeSizePresetOptionsFlattened], ([$imageOutputSize, $formattedResizeSizePresetOptionsFlattened], set) => {\n\t\tif (!$formattedResizeSizePresetOptionsFlattened) return set(-1);\n\n\t\tconst index = $formattedResizeSizePresetOptionsFlattened.findIndex(([value]) => {\n\t\t\tif (!value && !$imageOutputSize) return true;\n\t\t\tif (!value) return false;\n\t\t\tconst [width, height] = value;\n\t\t\treturn $imageOutputSize.width === width && $imageOutputSize.height === height;\n\t\t});\n\n\t\tset(index < 0 ? 0 : index);\n\t});\n\n\tcomponent_subscribe($$self, sizePresetSelectedIndex, value => $$invalidate(59, $sizePresetSelectedIndex = value));\n\n\tconst widthPresetSelectedIndex = derived([imageOutputSize, formattedResizeWidthPresetOptionsFlattened], ([$imageOutputSize, $formattedResizeWidthPresetOptionsFlattened], set) => {\n\t\tif (!$formattedResizeWidthPresetOptionsFlattened) return set(-1);\n\n\t\tconst index = $formattedResizeWidthPresetOptionsFlattened.findIndex(([value]) => {\n\t\t\tif (!value && !$imageOutputSize) return true;\n\t\t\tif (!value) return false;\n\t\t\treturn $imageOutputSize.width === value;\n\t\t});\n\n\t\tset(index < 0 ? 0 : index);\n\t});\n\n\tcomponent_subscribe($$self, widthPresetSelectedIndex, value => $$invalidate(57, $widthPresetSelectedIndex = value));\n\n\tconst heightPresetSelectedIndex = derived([imageOutputSize, formattedResizeHeightPresetOptionsFlattened], ([$imageOutputSize, $formattedResizeHeightPresetOptionsFlattened], set) => {\n\t\tif (!$formattedResizeHeightPresetOptionsFlattened) return set(-1);\n\n\t\tconst index = $formattedResizeHeightPresetOptionsFlattened.findIndex(([value]) => {\n\t\t\tif (!value && !$imageOutputSize) return true;\n\t\t\tif (!value) return false;\n\t\t\treturn $imageOutputSize.height === value;\n\t\t});\n\n\t\tset(index < 0 ? 0 : index);\n\t});\n\n\tcomponent_subscribe($$self, heightPresetSelectedIndex, value => $$invalidate(55, $heightPresetSelectedIndex = value));\n\tlet storedCropRect = undefined;\n\tlet storedCropAspectRatio = undefined;\n\n\tconst setImageOutputSizeWithArray = size => {\n\t\tif (size && !storedCropRect) {\n\t\t\tstoredCropRect = { ...$imageCropRect };\n\t\t\tstoredCropAspectRatio = $imageCropAspectRatio;\n\t\t}\n\n\t\tif (!size) {\n\t\t\tset_store_value(imageCropRect, $imageCropRect = storedCropRect, $imageCropRect);\n\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = storedCropAspectRatio, $imageCropAspectRatio);\n\t\t\tset_store_value(imageOutputSize, $imageOutputSize = undefined, $imageOutputSize);\n\t\t\tstoredCropRect = undefined;\n\t\t\tstoredCropAspectRatio = undefined;\n\t\t} else {\n\t\t\tset_store_value(imageCropAspectRatio, $imageCropAspectRatio = getAspectRatio(size[0], size[1]), $imageCropAspectRatio);\n\t\t\tset_store_value(imageOutputSize, $imageOutputSize = sizeCreateFromArray(size), $imageOutputSize);\n\t\t}\n\n\t\thistory.write();\n\t};\n\n\t//\n\t// toolbar\n\t//\n\tconst redrawTrigger = getContext('redrawTrigger');\n\n\t//\n\t// Footer\n\t//\n\tconst footerOffset = spring($animation ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(48, $footerOffset = value));\n\n\t//\n\t// Clean up\n\t//\n\tonDestroy(() => {\n\t\timageOutputSizeUnsub();\n\t\timageCropAspectRatioUnsub();\n\t});\n\n\tfunction div0_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\tfieldsGroup = $$value;\n\t\t\t$$invalidate(2, fieldsGroup);\n\t\t});\n\t}\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('stores' in $$props) $$invalidate(30, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(1, locale = $$props.locale);\n\t\tif ('resizeMinSize' in $$props) $$invalidate(31, resizeMinSize = $$props.resizeMinSize);\n\t\tif ('resizeMaxSize' in $$props) $$invalidate(32, resizeMaxSize = $$props.resizeMaxSize);\n\t\tif ('resizeAspectRatioLocked' in $$props) $$invalidate(28, resizeAspectRatioLocked = $$props.resizeAspectRatioLocked);\n\t\tif ('resizeEnableButtonLockAspectRatio' in $$props) $$invalidate(33, resizeEnableButtonLockAspectRatio = $$props.resizeEnableButtonLockAspectRatio);\n\t\tif ('resizeSizePresetOptions' in $$props) $$invalidate(34, resizeSizePresetOptions = $$props.resizeSizePresetOptions);\n\t\tif ('resizeWidthPresetOptions' in $$props) $$invalidate(35, resizeWidthPresetOptions = $$props.resizeWidthPresetOptions);\n\t\tif ('resizeHeightPresetOptions' in $$props) $$invalidate(36, resizeHeightPresetOptions = $$props.resizeHeightPresetOptions);\n\t\tif ('resizeWillRenderFooter' in $$props) $$invalidate(37, resizeWillRenderFooter = $$props.resizeWillRenderFooter);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\t// fully disable pan and zoom when resize tool is active\n\t\t\tallowPan.set(!$isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\tallowZoom.set(!$isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\tallowZoomControls.set(!$isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\t$isActive && allowPlayPause.set(true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*resizeSizePresetOptions, $formattedResizeSizePresetOptions*/ 536870920) {\n\t\t\tif (resizeSizePresetOptions) {\n\t\t\t\tset_store_value(formattedResizeSizePresetOptions, $formattedResizeSizePresetOptions = resizeSizePresetOptions.map(formatPresetSizeOption), $formattedResizeSizePresetOptions);\n\t\t\t\tset_store_value(formattedResizeSizePresetOptionsFlattened, $formattedResizeSizePresetOptionsFlattened = flattenOptions($formattedResizeSizePresetOptions), $formattedResizeSizePresetOptionsFlattened);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$formattedResizeSizePresetOptions*/ 536870912) {\n\t\t\t//\n\t\t\t// helper bools\n\t\t\t//\n\t\t\t$$invalidate(47, canRenderSizePresets = !!$formattedResizeSizePresetOptions);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$sizePresetSelectedIndex*/ 268435456 | $$self.$$.dirty[2] & /*$formattedResizeSizePresetOptionsFlattened*/ 4) {\n\t\t\t$$invalidate(46, sizePresetLabel = $sizePresetSelectedIndex > -1 && $formattedResizeSizePresetOptionsFlattened[$sizePresetSelectedIndex][1]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*resizeWidthPresetOptions, $formattedResizeWidthPresetOptions*/ 134217744) {\n\t\t\tif (resizeWidthPresetOptions) {\n\t\t\t\tset_store_value(formattedResizeWidthPresetOptions, $formattedResizeWidthPresetOptions = resizeWidthPresetOptions.map(formatPresetDimensionOption), $formattedResizeWidthPresetOptions);\n\t\t\t\tset_store_value(formattedResizeWidthPresetOptionsFlattened, $formattedResizeWidthPresetOptionsFlattened = flattenOptions($formattedResizeWidthPresetOptions), $formattedResizeWidthPresetOptionsFlattened);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canRenderSizePresets, $formattedResizeWidthPresetOptions*/ 134283264) {\n\t\t\t$$invalidate(44, canRenderWidthPresets = !canRenderSizePresets && $formattedResizeWidthPresetOptions);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$widthPresetSelectedIndex*/ 67108864 | $$self.$$.dirty[2] & /*$formattedResizeWidthPresetOptionsFlattened*/ 2) {\n\t\t\t$$invalidate(45, widthPresetLabel = $widthPresetSelectedIndex > -1 && $formattedResizeWidthPresetOptionsFlattened[$widthPresetSelectedIndex][1]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*resizeHeightPresetOptions, $formattedResizeHeightPresetOptions*/ 33554464) {\n\t\t\tif (resizeHeightPresetOptions) {\n\t\t\t\tset_store_value(formattedResizeHeightPresetOptions, $formattedResizeHeightPresetOptions = resizeHeightPresetOptions.map(formatPresetDimensionOption), $formattedResizeHeightPresetOptions);\n\t\t\t\tset_store_value(formattedResizeHeightPresetOptionsFlattened, $formattedResizeHeightPresetOptionsFlattened = flattenOptions($formattedResizeHeightPresetOptions), $formattedResizeHeightPresetOptionsFlattened);\n\t\t\t}\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canRenderSizePresets, $formattedResizeHeightPresetOptions*/ 33619968) {\n\t\t\t$$invalidate(43, canRenderHeightPresets = !canRenderSizePresets && $formattedResizeHeightPresetOptions);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$heightPresetSelectedIndex*/ 16777216 | $$self.$$.dirty[2] & /*$formattedResizeHeightPresetOptionsFlattened*/ 1) {\n\t\t\t$$invalidate(42, heightPresetLabel = $heightPresetSelectedIndex > -1 && $formattedResizeHeightPresetOptionsFlattened[$heightPresetSelectedIndex][1]);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*canRenderSizePresets, canRenderWidthPresets, canRenderHeightPresets*/ 77824) {\n\t\t\t$$invalidate(41, canRenderSizeInputs = !canRenderSizePresets && !canRenderWidthPresets && !canRenderHeightPresets);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*locale, resizeAspectRatioLocked*/ 268435458 | $$self.$$.dirty[1] & /*resizeWillRenderFooter, canRenderSizePresets, sizePresetLabel, $formattedResizeSizePresetOptions, $sizePresetSelectedIndex, canRenderWidthPresets, widthPresetLabel, $formattedResizeWidthPresetOptions, $widthPresetSelectedIndex, canRenderHeightPresets, heightPresetLabel, $formattedResizeHeightPresetOptions, $heightPresetSelectedIndex, canRenderSizeInputs, height, $imageCropRectAspectRatio, $imageCropRect, width, activeField, resizeMinSize, resizeMaxSize, resizeEnableButtonLockAspectRatio, $iconActiveFraction, $env*/ 1072824263) {\n\t\t\t$$invalidate(4, tools = redrawTrigger && runSafe(() => resizeWillRenderFooter(\n\t\t\t\t[\n\t\t\t\t\tcanRenderSizePresets && [\n\t\t\t\t\t\t'Dropdown',\n\t\t\t\t\t\t'size-presets',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: sizePresetLabel,\n\t\t\t\t\t\t\toptions: $formattedResizeSizePresetOptions,\n\t\t\t\t\t\t\tonchange: item => setImageOutputSizeWithArray(item.value),\n\t\t\t\t\t\t\tselectedIndex: $sizePresetSelectedIndex\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderWidthPresets && [\n\t\t\t\t\t\t'Dropdown',\n\t\t\t\t\t\t'width-presets',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: widthPresetLabel,\n\t\t\t\t\t\t\toptions: $formattedResizeWidthPresetOptions,\n\t\t\t\t\t\t\tonchange: item => {\n\t\t\t\t\t\t\t\t$$invalidate(38, width = item.value);\n\t\t\t\t\t\t\t\thandleSubmit();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tselectedIndex: $widthPresetSelectedIndex\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderWidthPresets && canRenderHeightPresets && [\n\t\t\t\t\t\t'span',\n\t\t\t\t\t\t'times',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tclass: 'PinturaResizeLabel',\n\t\t\t\t\t\t\tinnerHTML: '×'\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderHeightPresets && [\n\t\t\t\t\t\t'Dropdown',\n\t\t\t\t\t\t'height-presets',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: heightPresetLabel,\n\t\t\t\t\t\t\toptions: $formattedResizeHeightPresetOptions,\n\t\t\t\t\t\t\tonchange: item => {\n\t\t\t\t\t\t\t\t$$invalidate(39, height = item.value);\n\t\t\t\t\t\t\t\thandleSubmit();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tselectedIndex: $heightPresetSelectedIndex\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderSizeInputs && [\n\t\t\t\t\t\tDimensionInput,\n\t\t\t\t\t\t'width-input',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: `width-${formId}`,\n\t\t\t\t\t\t\ttitle: locale.resizeTitleInputWidth,\n\t\t\t\t\t\t\tlabel: locale.resizeLabelInputWidth,\n\t\t\t\t\t\t\tplaceholder: getWidthPlaceholder(formatValue(height), $imageCropRectAspectRatio, $imageCropRect),\n\t\t\t\t\t\t\tvalue: width,\n\t\t\t\t\t\t\tstate: getState(formatValue(width), 'width', activeField, resizeMinSize, resizeMaxSize),\n\t\t\t\t\t\t\tonchange: value => {\n\t\t\t\t\t\t\t\t$$invalidate(38, width = value);\n\t\t\t\t\t\t\t\tsyncFields();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderSizeInputs && resizeEnableButtonLockAspectRatio && [\n\t\t\t\t\t\tDimensionLock,\n\t\t\t\t\t\t'aspect-ratio-lock',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: `aspect-ratio-lock-${formId}`,\n\t\t\t\t\t\t\ttitle: locale.resizeTitleButtonMaintainAspectRatio,\n\t\t\t\t\t\t\ticon: isString(locale.resizeIconButtonMaintainAspectRatio)\n\t\t\t\t\t\t\t? locale.resizeIconButtonMaintainAspectRatio\n\t\t\t\t\t\t\t: locale.resizeIconButtonMaintainAspectRatio(resizeAspectRatioLocked, $iconActiveFraction),\n\t\t\t\t\t\t\tlocked: resizeAspectRatioLocked,\n\t\t\t\t\t\t\tonchange: locked => {\n\t\t\t\t\t\t\t\t$$invalidate(28, resizeAspectRatioLocked = locked);\n\t\t\t\t\t\t\t\tsyncFields();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\tcanRenderSizeInputs && [\n\t\t\t\t\t\tDimensionInput,\n\t\t\t\t\t\t'height-input',\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: `height-${formId}`,\n\t\t\t\t\t\t\ttitle: locale.resizeTitleInputHeight,\n\t\t\t\t\t\t\tlabel: locale.resizeLabelInputHeight,\n\t\t\t\t\t\t\tplaceholder: getHeightPlaceholder(formatValue(width), $imageCropRectAspectRatio, $imageCropRect),\n\t\t\t\t\t\t\tvalue: height,\n\t\t\t\t\t\t\tstate: getState(formatValue(height), 'height', activeField, resizeMinSize, resizeMaxSize),\n\t\t\t\t\t\t\tonchange: value => {\n\t\t\t\t\t\t\t\t$$invalidate(39, height = value);\n\t\t\t\t\t\t\t\tsyncFields();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t].filter(Boolean),\n\t\t\t\t{ ...$env },\n\t\t\t\t() => redrawTrigger.set({})\n\t\t\t)).filter(Boolean));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*resizeAspectRatioLocked*/ 268435456) {\n\t\t\ticonActiveFraction.set(resizeAspectRatioLocked ? 1 : 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*activeField*/ 512) {\n\t\t\tif (activeField) lastActiveField = activeField;\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive*/ 262144) {\n\t\t\tif ($isActive) rememberPanZoom();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$isActive, $imageOutputSize*/ 1074003968) {\n\t\t\t$isActive\n\t\t\t? updateSelectionScale($imageOutputSize)\n\t\t\t: resetSelectionScale();\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$animation, $isActive*/ 786432) {\n\t\t\t$animation && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[1] & /*$footerOffset*/ 131072) {\n\t\t\t$$invalidate(3, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tlocale,\n\t\tfieldsGroup,\n\t\tfooterStyle,\n\t\ttools,\n\t\ticonActiveFraction,\n\t\tanimation,\n\t\timageSize,\n\t\timageCropRect,\n\t\timageCropRectAspectRatio,\n\t\timageCropAspectRatio,\n\t\timageOutputSize,\n\t\timageSelectionZoom,\n\t\timageSelectionPan,\n\t\tenv,\n\t\thandleFocusIn,\n\t\thandleFocusOut,\n\t\thandleSubmit,\n\t\tformattedResizeSizePresetOptions,\n\t\tformattedResizeSizePresetOptionsFlattened,\n\t\tformattedResizeWidthPresetOptions,\n\t\tformattedResizeWidthPresetOptionsFlattened,\n\t\tformattedResizeHeightPresetOptions,\n\t\tformattedResizeHeightPresetOptionsFlattened,\n\t\tsizePresetSelectedIndex,\n\t\twidthPresetSelectedIndex,\n\t\theightPresetSelectedIndex,\n\t\tfooterOffset,\n\t\tresizeAspectRatioLocked,\n\t\tname,\n\t\tstores,\n\t\tresizeMinSize,\n\t\tresizeMaxSize,\n\t\tresizeEnableButtonLockAspectRatio,\n\t\tresizeSizePresetOptions,\n\t\tresizeWidthPresetOptions,\n\t\tresizeHeightPresetOptions,\n\t\tresizeWillRenderFooter,\n\t\twidth,\n\t\theight,\n\t\tactiveField,\n\t\tcanRenderSizeInputs,\n\t\theightPresetLabel,\n\t\tcanRenderHeightPresets,\n\t\tcanRenderWidthPresets,\n\t\twidthPresetLabel,\n\t\tsizePresetLabel,\n\t\tcanRenderSizePresets,\n\t\t$footerOffset,\n\t\t$isActive,\n\t\t$animation,\n\t\t$env,\n\t\t$imageCropRect,\n\t\t$imageCropRectAspectRatio,\n\t\t$iconActiveFraction,\n\t\t$heightPresetSelectedIndex,\n\t\t$formattedResizeHeightPresetOptions,\n\t\t$widthPresetSelectedIndex,\n\t\t$formattedResizeWidthPresetOptions,\n\t\t$sizePresetSelectedIndex,\n\t\t$formattedResizeSizePresetOptions,\n\t\t$imageOutputSize,\n\t\t$formattedResizeHeightPresetOptionsFlattened,\n\t\t$formattedResizeWidthPresetOptionsFlattened,\n\t\t$formattedResizeSizePresetOptionsFlattened,\n\t\tdiv0_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Resize extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$4,\n\t\t\tcreate_fragment$4,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 29,\n\t\t\t\tisActive: 0,\n\t\t\t\tstores: 30,\n\t\t\t\tlocale: 1,\n\t\t\t\tresizeMinSize: 31,\n\t\t\t\tresizeMaxSize: 32,\n\t\t\t\tresizeAspectRatioLocked: 28,\n\t\t\t\tresizeEnableButtonLockAspectRatio: 33,\n\t\t\t\tresizeSizePresetOptions: 34,\n\t\t\t\tresizeWidthPresetOptions: 35,\n\t\t\t\tresizeHeightPresetOptions: 36,\n\t\t\t\tresizeWillRenderFooter: 37\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1, -1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[29];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[30];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget resizeMinSize() {\n\t\treturn this.$$.ctx[31];\n\t}\n\n\tset resizeMinSize(resizeMinSize) {\n\t\tthis.$$set({ resizeMinSize });\n\t\tflush();\n\t}\n\n\tget resizeMaxSize() {\n\t\treturn this.$$.ctx[32];\n\t}\n\n\tset resizeMaxSize(resizeMaxSize) {\n\t\tthis.$$set({ resizeMaxSize });\n\t\tflush();\n\t}\n\n\tget resizeAspectRatioLocked() {\n\t\treturn this.$$.ctx[28];\n\t}\n\n\tset resizeAspectRatioLocked(resizeAspectRatioLocked) {\n\t\tthis.$$set({ resizeAspectRatioLocked });\n\t\tflush();\n\t}\n\n\tget resizeEnableButtonLockAspectRatio() {\n\t\treturn this.$$.ctx[33];\n\t}\n\n\tset resizeEnableButtonLockAspectRatio(resizeEnableButtonLockAspectRatio) {\n\t\tthis.$$set({ resizeEnableButtonLockAspectRatio });\n\t\tflush();\n\t}\n\n\tget resizeSizePresetOptions() {\n\t\treturn this.$$.ctx[34];\n\t}\n\n\tset resizeSizePresetOptions(resizeSizePresetOptions) {\n\t\tthis.$$set({ resizeSizePresetOptions });\n\t\tflush();\n\t}\n\n\tget resizeWidthPresetOptions() {\n\t\treturn this.$$.ctx[35];\n\t}\n\n\tset resizeWidthPresetOptions(resizeWidthPresetOptions) {\n\t\tthis.$$set({ resizeWidthPresetOptions });\n\t\tflush();\n\t}\n\n\tget resizeHeightPresetOptions() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tset resizeHeightPresetOptions(resizeHeightPresetOptions) {\n\t\tthis.$$set({ resizeHeightPresetOptions });\n\t\tflush();\n\t}\n\n\tget resizeWillRenderFooter() {\n\t\treturn this.$$.ctx[37];\n\t}\n\n\tset resizeWillRenderFooter(resizeWillRenderFooter) {\n\t\tthis.$$set({ resizeWillRenderFooter });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_resize = { util: ['resize', Resize, ({ src }) => src && !isVideoFile(src)] };\n\n/* src/core/ui/plugins/redact/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$3(ctx) {\n\tlet shapeutil;\n\tlet current;\n\n\tshapeutil = new ShapeUtil({\n\t\t\tprops: {\n\t\t\t\tstores: /*stores*/ ctx[3],\n\t\t\t\tlocale: /*locale*/ ctx[4],\n\t\t\t\tisActive: /*isActive*/ ctx[0],\n\t\t\t\tisActiveFraction: /*isActiveFraction*/ ctx[1],\n\t\t\t\tisVisible: /*isVisible*/ ctx[2],\n\t\t\t\tmapScreenPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[9],\n\t\t\t\tmapImagePointToScreenPoint: /*mapImagePointToScreenPoint*/ ctx[8],\n\t\t\t\tutilKey: 'redact',\n\t\t\t\timageRotation: /*$imageRotation*/ ctx[10],\n\t\t\t\timageFlipX: /*$imageFlipX*/ ctx[7],\n\t\t\t\timageFlipY: /*$imageFlipY*/ ctx[6],\n\t\t\t\tshapes: /*imageRedaction*/ ctx[11],\n\t\t\t\ttoolbar: ['rect'],\n\t\t\t\ttoolShapes: {\n\t\t\t\t\trectangle: [{ x: 0, y: 0, width: 0, height: 0 }]\n\t\t\t\t},\n\t\t\t\ttoolActive: 'rectangle',\n\t\t\t\tparentRect: /*imageSize*/ ctx[13],\n\t\t\t\tenablePresetDropImage: false,\n\t\t\t\tenablePresetSelectImage: false,\n\t\t\t\twillStartInteraction: /*markupEditorWillStartInteraction*/ ctx[5],\n\t\t\t\thooks: {\n\t\t\t\t\twillRenderShapeControls: /*func*/ ctx[24]\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\tshapeutil.$on(\"measure\", /*measure_handler*/ ctx[25]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapeutil.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapeutil, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, [dirty]) {\n\t\t\tconst shapeutil_changes = {};\n\t\t\tif (dirty & /*stores*/ 8) shapeutil_changes.stores = /*stores*/ ctx[3];\n\t\t\tif (dirty & /*locale*/ 16) shapeutil_changes.locale = /*locale*/ ctx[4];\n\t\t\tif (dirty & /*isActive*/ 1) shapeutil_changes.isActive = /*isActive*/ ctx[0];\n\t\t\tif (dirty & /*isActiveFraction*/ 2) shapeutil_changes.isActiveFraction = /*isActiveFraction*/ ctx[1];\n\t\t\tif (dirty & /*isVisible*/ 4) shapeutil_changes.isVisible = /*isVisible*/ ctx[2];\n\t\t\tif (dirty & /*mapScreenPointToImagePoint*/ 512) shapeutil_changes.mapScreenPointToImagePoint = /*mapScreenPointToImagePoint*/ ctx[9];\n\t\t\tif (dirty & /*mapImagePointToScreenPoint*/ 256) shapeutil_changes.mapImagePointToScreenPoint = /*mapImagePointToScreenPoint*/ ctx[8];\n\t\t\tif (dirty & /*$imageRotation*/ 1024) shapeutil_changes.imageRotation = /*$imageRotation*/ ctx[10];\n\t\t\tif (dirty & /*$imageFlipX*/ 128) shapeutil_changes.imageFlipX = /*$imageFlipX*/ ctx[7];\n\t\t\tif (dirty & /*$imageFlipY*/ 64) shapeutil_changes.imageFlipY = /*$imageFlipY*/ ctx[6];\n\t\t\tif (dirty & /*markupEditorWillStartInteraction*/ 32) shapeutil_changes.willStartInteraction = /*markupEditorWillStartInteraction*/ ctx[5];\n\t\t\tshapeutil.$set(shapeutil_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapeutil.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapeutil.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapeutil, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$3($$self, $$props, $$invalidate) {\n\tlet mapScreenPointToImagePoint;\n\tlet mapImagePointToScreenPoint;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $imageTransformsInterpolated;\n\tlet $imageTransforms;\n\tlet $imageSize;\n\tlet $rootRect;\n\tlet $imageRotation;\n\tconst name = 'redact';\n\tlet { isActive } = $$props;\n\tlet { isActiveFraction } = $$props;\n\tlet { isVisible } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { markupEditorWillStartInteraction = undefined } = $$props;\n\n\t// connect filter choice to stores\n\tconst { imageRedaction, rootRect, imageSize, imageRotation, imageFlipX, imageFlipY, imageTransforms, imageTransformsInterpolated } = stores;\n\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(23, $rootRect = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(22, $imageSize = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(10, $imageRotation = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(7, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(6, $imageFlipY = value));\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(21, $imageTransforms = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(20, $imageTransformsInterpolated = value));\n\n\tconst func = controls => {\n\t\tconst children = getNodeChildren(controls[0]);\n\t\tremoveNode('to-front', children);\n\t\treturn controls;\n\t};\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(0, isActive = $$props.isActive);\n\t\tif ('isActiveFraction' in $$props) $$invalidate(1, isActiveFraction = $$props.isActiveFraction);\n\t\tif ('isVisible' in $$props) $$invalidate(2, isVisible = $$props.isVisible);\n\t\tif ('stores' in $$props) $$invalidate(3, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(4, locale = $$props.locale);\n\t\tif ('markupEditorWillStartInteraction' in $$props) $$invalidate(5, markupEditorWillStartInteraction = $$props.markupEditorWillStartInteraction);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, $imageFlipX, $imageFlipY*/ 15728832) {\n\t\t\t//\n\t\t\t// Mapping coordinates\n\t\t\t//\n\t\t\t$$invalidate(9, mapScreenPointToImagePoint = point => _mapScreenPointToImagePoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\n\t\tif ($$self.$$.dirty & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms, $imageFlipX, $imageFlipY*/ 15728832) {\n\t\t\t$$invalidate(8, mapImagePointToScreenPoint = point => _mapImagePointToScreenPoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tstores,\n\t\tlocale,\n\t\tmarkupEditorWillStartInteraction,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\tmapImagePointToScreenPoint,\n\t\tmapScreenPointToImagePoint,\n\t\t$imageRotation,\n\t\timageRedaction,\n\t\trootRect,\n\t\timageSize,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageTransforms,\n\t\timageTransformsInterpolated,\n\t\tname,\n\t\t$imageTransformsInterpolated,\n\t\t$imageTransforms,\n\t\t$imageSize,\n\t\t$rootRect,\n\t\tfunc,\n\t\tmeasure_handler\n\t];\n}\n\nclass Redact extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(this, options, instance$3, create_fragment$3, safe_not_equal, {\n\t\t\tname: 19,\n\t\t\tisActive: 0,\n\t\t\tisActiveFraction: 1,\n\t\t\tisVisible: 2,\n\t\t\tstores: 3,\n\t\t\tlocale: 4,\n\t\t\tmarkupEditorWillStartInteraction: 5\n\t\t});\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget markupEditorWillStartInteraction() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset markupEditorWillStartInteraction(markupEditorWillStartInteraction) {\n\t\tthis.$$set({ markupEditorWillStartInteraction });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_redact = { util: ['redact', Redact, ({ src }) => src && !isVideoFile(src)] };\n\n/* src/core/ui/plugins/fill/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_if_block(ctx) {\n\tlet span;\n\n\tlet t_value = (isFunction(/*option*/ ctx[32].label)\n\t? /*option*/ ctx[32].label(/*locale*/ ctx[1])\n\t: /*option*/ ctx[32].label) + \"\";\n\n\tlet t;\n\n\treturn {\n\t\tc() {\n\t\t\tspan = element(\"span\");\n\t\t\tt = text(t_value);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, span, anchor);\n\t\t\tappend(span, t);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[0] & /*locale*/ 2 | dirty[1] & /*option*/ 2 && t_value !== (t_value = (isFunction(/*option*/ ctx[32].label)\n\t\t\t? /*option*/ ctx[32].label(/*locale*/ ctx[1])\n\t\t\t: /*option*/ ctx[32].label) + \"\")) set_data(t, t_value);\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(span);\n\t\t}\n\t};\n}\n\n// (137:16) \nfunction create_option_slot(ctx) {\n\tlet div;\n\tlet html_tag;\n\tlet raw_value = (/*getOptionThumb*/ ctx[11](/*option*/ ctx[32].value) || '') + \"\";\n\tlet t;\n\tlet if_block = /*option*/ ctx[32].label && create_if_block(ctx);\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\thtml_tag = new HtmlTag(false);\n\t\t\tt = space();\n\t\t\tif (if_block) if_block.c();\n\t\t\thtml_tag.a = t;\n\t\t\tattr(div, \"slot\", \"option\");\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\thtml_tag.m(raw_value, div);\n\t\t\tappend(div, t);\n\t\t\tif (if_block) if_block.m(div, null);\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tif (dirty[1] & /*option*/ 2 && raw_value !== (raw_value = (/*getOptionThumb*/ ctx[11](/*option*/ ctx[32].value) || '') + \"\")) html_tag.p(raw_value);\n\n\t\t\tif (/*option*/ ctx[32].label) {\n\t\t\t\tif (if_block) {\n\t\t\t\t\tif_block.p(ctx, dirty);\n\t\t\t\t} else {\n\t\t\t\t\tif_block = create_if_block(ctx);\n\t\t\t\t\tif_block.c();\n\t\t\t\t\tif_block.m(div, null);\n\t\t\t\t}\n\t\t\t} else if (if_block) {\n\t\t\t\tif_block.d(1);\n\t\t\t\tif_block = null;\n\t\t\t}\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tif (if_block) if_block.d();\n\t\t}\n\t};\n}\n\n// (127:8) <Scrollable elasticity={computedScrollElasticity}>\nfunction create_default_slot(ctx) {\n\tlet radiogroup;\n\tlet current;\n\n\tradiogroup = new RadioGroup({\n\t\t\tprops: {\n\t\t\t\tlocale: /*locale*/ ctx[1],\n\t\t\t\tclass: \"PinturaControlList\",\n\t\t\t\tlayout: \"row\",\n\t\t\t\toptions: /*fillOptionsMapped*/ ctx[2],\n\t\t\t\tselectedIndex: /*selectedFillIndex*/ ctx[4],\n\t\t\t\tonchange: /*handleChangeFill*/ ctx[10],\n\t\t\t\t$$slots: {\n\t\t\t\t\toption: [\n\t\t\t\t\t\tcreate_option_slot,\n\t\t\t\t\t\t({ option }) => ({ 32: option }),\n\t\t\t\t\t\t({ option }) => [0, option ? 2 : 0]\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(radiogroup.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(radiogroup, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst radiogroup_changes = {};\n\t\t\tif (dirty[0] & /*locale*/ 2) radiogroup_changes.locale = /*locale*/ ctx[1];\n\t\t\tif (dirty[0] & /*fillOptionsMapped*/ 4) radiogroup_changes.options = /*fillOptionsMapped*/ ctx[2];\n\t\t\tif (dirty[0] & /*selectedFillIndex*/ 16) radiogroup_changes.selectedIndex = /*selectedFillIndex*/ ctx[4];\n\n\t\t\tif (dirty[0] & /*locale*/ 2 | dirty[1] & /*$$scope, option*/ 6) {\n\t\t\t\tradiogroup_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tradiogroup.$set(radiogroup_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(radiogroup.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(radiogroup.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(radiogroup, detaching);\n\t\t}\n\t};\n}\n\n// (126:4) \nfunction create_footer_slot(ctx) {\n\tlet div;\n\tlet scrollable;\n\tlet current;\n\n\tscrollable = new Scrollable({\n\t\t\tprops: {\n\t\t\t\telasticity: /*computedScrollElasticity*/ ctx[5],\n\t\t\t\t$$slots: { default: [create_default_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\treturn {\n\t\tc() {\n\t\t\tdiv = element(\"div\");\n\t\t\tcreate_component(scrollable.$$.fragment);\n\t\t\tattr(div, \"slot\", \"footer\");\n\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[3]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, div, anchor);\n\t\t\tmount_component(scrollable, div, null);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst scrollable_changes = {};\n\t\t\tif (dirty[0] & /*computedScrollElasticity*/ 32) scrollable_changes.elasticity = /*computedScrollElasticity*/ ctx[5];\n\n\t\t\tif (dirty[0] & /*locale, fillOptionsMapped, selectedFillIndex*/ 22 | dirty[1] & /*$$scope*/ 4) {\n\t\t\t\tscrollable_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tscrollable.$set(scrollable_changes);\n\n\t\t\tif (!current || dirty[0] & /*footerStyle*/ 8) {\n\t\t\t\tattr(div, \"style\", /*footerStyle*/ ctx[3]);\n\t\t\t}\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(scrollable.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(scrollable.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tif (detaching) detach(div);\n\t\t\tdestroy_component(scrollable);\n\t\t}\n\t};\n}\n\nfunction create_fragment$2(ctx) {\n\tlet util;\n\tlet current;\n\n\tutil = new Util({\n\t\t\tprops: {\n\t\t\t\t$$slots: { footer: [create_footer_slot] },\n\t\t\t\t$$scope: { ctx }\n\t\t\t}\n\t\t});\n\n\tutil.$on(\"measure\", /*measure_handler*/ ctx[22]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(util.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(util, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst util_changes = {};\n\n\t\t\tif (dirty[0] & /*footerStyle, computedScrollElasticity, locale, fillOptionsMapped, selectedFillIndex*/ 62 | dirty[1] & /*$$scope*/ 4) {\n\t\t\t\tutil_changes.$$scope = { dirty, ctx };\n\t\t\t}\n\n\t\t\tutil.$set(util_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(util.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(util.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(util, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$2($$self, $$props, $$invalidate) {\n\tlet fillOptionsMapped;\n\tlet computedScrollElasticity;\n\tlet selectedFillIndex;\n\tlet footerStyle;\n\tlet $footerOffset;\n\n\tlet $isActive,\n\t\t$$unsubscribe_isActive = noop,\n\t\t$$subscribe_isActive = () => ($$unsubscribe_isActive(), $$unsubscribe_isActive = subscribe(isActive, $$value => $$invalidate(17, $isActive = $$value)), isActive);\n\n\tlet $animation;\n\tlet $imageBackgroundImage;\n\tlet $imageBackgroundColor;\n\tlet $elasticityMultiplier;\n\t$$self.$$.on_destroy.push(() => $$unsubscribe_isActive());\n\tconst name = 'fill';\n\tlet { isActive } = $$props;\n\t$$subscribe_isActive();\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { fillOptions = [] } = $$props;\n\tconst isItemGroup = item => isArray(item) && isString(item[0]) && isArray(item[1]);\n\n\tconst mapItem = item => [\n\t\t// to rgba color\n\t\tArray.isArray(item) && item.length === 3\n\t\t? [...item, 1]\n\t\t: item,\n\t\tundefined,\n\t\t{ disabled: false }\n\t];\n\n\tconst mapItems = items => items.map(item => {\n\t\tif (isItemGroup(item)) {\n\t\t\treturn [item[0], mapItems(item[1]), item[2]];\n\t\t}\n\n\t\treturn mapItem(item);\n\t});\n\n\t//\n\t// context\n\t//\n\tconst elasticityMultiplier = getContext('elasticityMultiplier');\n\n\tcomponent_subscribe($$self, elasticityMultiplier, value => $$invalidate(21, $elasticityMultiplier = value));\n\n\t// connect filter choice to stores\n\tconst { history, animation, scrollElasticity, imageBackgroundColor, imageBackgroundImage, allowPan, allowZoom, allowZoomControls, allowPlayPause } = stores;\n\n\tcomponent_subscribe($$self, animation, value => $$invalidate(18, $animation = value));\n\tcomponent_subscribe($$self, imageBackgroundColor, value => $$invalidate(20, $imageBackgroundColor = value));\n\tcomponent_subscribe($$self, imageBackgroundImage, value => $$invalidate(19, $imageBackgroundImage = value));\n\n\tconst handleChangeFill = ({ value }) => {\n\t\tif (isString(value)) {\n\t\t\tset_store_value(imageBackgroundColor, $imageBackgroundColor = undefined, $imageBackgroundColor);\n\t\t\tset_store_value(imageBackgroundImage, $imageBackgroundImage = value, $imageBackgroundImage);\n\t\t}\n\n\t\tif (isArray(value)) {\n\t\t\tset_store_value(imageBackgroundColor, $imageBackgroundColor = value, $imageBackgroundColor);\n\t\t\tset_store_value(imageBackgroundImage, $imageBackgroundImage = undefined, $imageBackgroundImage);\n\t\t}\n\n\t\t// store\n\t\thistory.write();\n\t};\n\n\tconst getOptionThumb = value => {\n\t\tif (isString(value)) {\n\t\t\treturn `<div class=\"PinturaFillTile\"><img src=\"${value}\" alt=\"\" width=\"48\" height=\"64\"/></div>`;\n\t\t}\n\n\t\tif (isArray(value)) {\n\t\t\tconst [r, g, b, a] = value.map((v, i) => i < 3 ? Math.round(v * 255) : v);\n\t\t\treturn `<div class=\"PinturaFillTile\" data-transparent=\"${a < 1}\"><div style=\"background-color:rgba(${r},${g},${b},${a})\"></div></div>`;\n\t\t}\n\n\t\treturn `<div></div>`;\n\t};\n\n\t//\n\t// Footer style\n\t//\n\tconst footerOffset = spring($animation ? 20 : 0);\n\n\tcomponent_subscribe($$self, footerOffset, value => $$invalidate(16, $footerOffset = value));\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$subscribe_isActive($$invalidate(0, isActive = $$props.isActive));\n\t\tif ('stores' in $$props) $$invalidate(14, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(1, locale = $$props.locale);\n\t\tif ('fillOptions' in $$props) $$invalidate(15, fillOptions = $$props.fillOptions);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*fillOptions*/ 32768) {\n\t\t\t$$invalidate(2, fillOptionsMapped = mapItems(fillOptions));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 131072) {\n\t\t\t// enable pan and zoom\n\t\t\tallowPan.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 131072) {\n\t\t\tallowZoom.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 131072) {\n\t\t\tallowZoomControls.set($isActive);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$isActive*/ 131072) {\n\t\t\t$isActive && allowPlayPause.set(true);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$elasticityMultiplier*/ 2097152) {\n\t\t\t//\n\t\t\t// scroll components\n\t\t\t//\n\t\t\t$$invalidate(5, computedScrollElasticity = $elasticityMultiplier * scrollElasticity);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*fillOptionsMapped, $imageBackgroundImage, $imageBackgroundColor*/ 1572868) {\n\t\t\t// we check background image first as [0,0,0,0] is background color default value so otherwise images are never selected\n\t\t\t$$invalidate(4, selectedFillIndex = fillOptionsMapped.findIndex(([value]) => {\n\t\t\t\tif ($imageBackgroundImage) {\n\t\t\t\t\treturn value === $imageBackgroundImage;\n\t\t\t\t}\n\n\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\treturn arrayEqual(value, $imageBackgroundColor);\n\t\t\t\t}\n\t\t\t}) || 0);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$animation, $isActive*/ 393216) {\n\t\t\t$animation && footerOffset.set($isActive ? 0 : 20);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$footerOffset*/ 65536) {\n\t\t\t$$invalidate(3, footerStyle = $footerOffset\n\t\t\t? `transform: translateY(${$footerOffset}px)`\n\t\t\t: undefined);\n\t\t}\n\t};\n\n\treturn [\n\t\tisActive,\n\t\tlocale,\n\t\tfillOptionsMapped,\n\t\tfooterStyle,\n\t\tselectedFillIndex,\n\t\tcomputedScrollElasticity,\n\t\telasticityMultiplier,\n\t\tanimation,\n\t\timageBackgroundColor,\n\t\timageBackgroundImage,\n\t\thandleChangeFill,\n\t\tgetOptionThumb,\n\t\tfooterOffset,\n\t\tname,\n\t\tstores,\n\t\tfillOptions,\n\t\t$footerOffset,\n\t\t$isActive,\n\t\t$animation,\n\t\t$imageBackgroundImage,\n\t\t$imageBackgroundColor,\n\t\t$elasticityMultiplier,\n\t\tmeasure_handler\n\t];\n}\n\nclass Fill extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$2,\n\t\t\tcreate_fragment$2,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 13,\n\t\t\t\tisActive: 0,\n\t\t\t\tstores: 14,\n\t\t\t\tlocale: 1,\n\t\t\t\tfillOptions: 15\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget fillOptions() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset fillOptions(fillOptions) {\n\t\tthis.$$set({ fillOptions });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_fill = {\n util: [\n 'fill',\n Fill,\n ({ src, fillOptions }) => \n // src needs to be an image\n src &&\n !isVideoFile(src) &&\n // fill options need to be defined\n fillOptions &&\n fillOptions.length,\n ],\n};\n\n/* src/core/ui/plugins/retouch/index.svelte generated by Svelte v3.52.0 */\n\nfunction create_fragment$1(ctx) {\n\tlet shapeutil;\n\tlet updating_toolActive;\n\tlet current;\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\t/*shapeutil_toolActive_binding*/ ctx[41](value);\n\t}\n\n\tlet shapeutil_props = {\n\t\tutilKey: 'retouch',\n\t\tstores: /*stores*/ ctx[4],\n\t\tlocale: /*locale*/ ctx[5],\n\t\tisActive: /*isActive*/ ctx[1],\n\t\tisActiveFraction: /*isActiveFraction*/ ctx[2],\n\t\tisVisible: /*isVisible*/ ctx[3],\n\t\tmapScreenPointToImagePoint: /*mapScreenPointToImagePoint*/ ctx[26],\n\t\tmapImagePointToScreenPoint: /*mapImagePointToScreenPoint*/ ctx[25],\n\t\timageRotation: /*$imageRotation*/ ctx[27],\n\t\timageFlipX: /*$imageFlipX*/ ctx[24],\n\t\timageFlipY: /*$imageFlipY*/ ctx[23],\n\t\ttoolbar: /*retouchTools*/ ctx[6],\n\t\ttoolbarLayout: 'stack',\n\t\tshapes: /*imageManipulation*/ ctx[29],\n\t\ttoolShapes: /*retouchToolShapes*/ ctx[7],\n\t\tenableViewTool: /*retouchEnableViewTool*/ ctx[14],\n\t\tenableMoveTool: /*retouchEnableMoveTool*/ ctx[13],\n\t\tenableToolShareStyles: false,\n\t\tshapeControls: /*retouchShapeControls*/ ctx[8],\n\t\tenablePresetSelectImage: false,\n\t\tenablePresetDropImage: false,\n\t\tparentRect: /*imageSize*/ ctx[30],\n\t\twillStartInteraction: /*markupEditorWillStartInteraction*/ ctx[12],\n\t\twillRenderHeaderTools: /*retouchWillRenderHeaderTools*/ ctx[10] || /*willRenderHeaderTools*/ ctx[17],\n\t\twillRenderShapeStyleControls: /*retouchWillRenderShapeStyleControls*/ ctx[9],\n\t\thooks: {\n\t\t\twillRenderShapeControls: /*retouchWillRenderShapeControls*/ ctx[11] || /*willRenderShapeControls*/ ctx[15],\n\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[16],\n\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[18],\n\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[19],\n\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[20],\n\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[21],\n\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[22]\n\t\t}\n\t};\n\n\tif (/*retouchActiveTool*/ ctx[0] !== void 0) {\n\t\tshapeutil_props.toolActive = /*retouchActiveTool*/ ctx[0];\n\t}\n\n\tshapeutil = new ShapeUtil({ props: shapeutil_props });\n\tbinding_callbacks.push(() => bind(shapeutil, 'toolActive', shapeutil_toolActive_binding));\n\tshapeutil.$on(\"measure\", /*measure_handler*/ ctx[42]);\n\n\treturn {\n\t\tc() {\n\t\t\tcreate_component(shapeutil.$$.fragment);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tmount_component(shapeutil, target, anchor);\n\t\t\tcurrent = true;\n\t\t},\n\t\tp(ctx, dirty) {\n\t\t\tconst shapeutil_changes = {};\n\t\t\tif (dirty[0] & /*stores*/ 16) shapeutil_changes.stores = /*stores*/ ctx[4];\n\t\t\tif (dirty[0] & /*locale*/ 32) shapeutil_changes.locale = /*locale*/ ctx[5];\n\t\t\tif (dirty[0] & /*isActive*/ 2) shapeutil_changes.isActive = /*isActive*/ ctx[1];\n\t\t\tif (dirty[0] & /*isActiveFraction*/ 4) shapeutil_changes.isActiveFraction = /*isActiveFraction*/ ctx[2];\n\t\t\tif (dirty[0] & /*isVisible*/ 8) shapeutil_changes.isVisible = /*isVisible*/ ctx[3];\n\t\t\tif (dirty[0] & /*mapScreenPointToImagePoint*/ 67108864) shapeutil_changes.mapScreenPointToImagePoint = /*mapScreenPointToImagePoint*/ ctx[26];\n\t\t\tif (dirty[0] & /*mapImagePointToScreenPoint*/ 33554432) shapeutil_changes.mapImagePointToScreenPoint = /*mapImagePointToScreenPoint*/ ctx[25];\n\t\t\tif (dirty[0] & /*$imageRotation*/ 134217728) shapeutil_changes.imageRotation = /*$imageRotation*/ ctx[27];\n\t\t\tif (dirty[0] & /*$imageFlipX*/ 16777216) shapeutil_changes.imageFlipX = /*$imageFlipX*/ ctx[24];\n\t\t\tif (dirty[0] & /*$imageFlipY*/ 8388608) shapeutil_changes.imageFlipY = /*$imageFlipY*/ ctx[23];\n\t\t\tif (dirty[0] & /*retouchTools*/ 64) shapeutil_changes.toolbar = /*retouchTools*/ ctx[6];\n\t\t\tif (dirty[0] & /*retouchToolShapes*/ 128) shapeutil_changes.toolShapes = /*retouchToolShapes*/ ctx[7];\n\t\t\tif (dirty[0] & /*retouchEnableViewTool*/ 16384) shapeutil_changes.enableViewTool = /*retouchEnableViewTool*/ ctx[14];\n\t\t\tif (dirty[0] & /*retouchEnableMoveTool*/ 8192) shapeutil_changes.enableMoveTool = /*retouchEnableMoveTool*/ ctx[13];\n\t\t\tif (dirty[0] & /*retouchShapeControls*/ 256) shapeutil_changes.shapeControls = /*retouchShapeControls*/ ctx[8];\n\t\t\tif (dirty[0] & /*markupEditorWillStartInteraction*/ 4096) shapeutil_changes.willStartInteraction = /*markupEditorWillStartInteraction*/ ctx[12];\n\t\t\tif (dirty[0] & /*retouchWillRenderHeaderTools, willRenderHeaderTools*/ 132096) shapeutil_changes.willRenderHeaderTools = /*retouchWillRenderHeaderTools*/ ctx[10] || /*willRenderHeaderTools*/ ctx[17];\n\t\t\tif (dirty[0] & /*retouchWillRenderShapeStyleControls*/ 512) shapeutil_changes.willRenderShapeStyleControls = /*retouchWillRenderShapeStyleControls*/ ctx[9];\n\n\t\t\tif (dirty[0] & /*retouchWillRenderShapeControls, willRenderShapeControls, willRenderShapeTextControls, beforeAddShape, beforeRemoveShape, beforeDeselectShape, beforeSelectShape, beforeUpdateShape*/ 8226816) shapeutil_changes.hooks = {\n\t\t\t\twillRenderShapeControls: /*retouchWillRenderShapeControls*/ ctx[11] || /*willRenderShapeControls*/ ctx[15],\n\t\t\t\twillRenderShapeTextControls: /*willRenderShapeTextControls*/ ctx[16],\n\t\t\t\tbeforeAddShape: /*beforeAddShape*/ ctx[18],\n\t\t\t\tbeforeRemoveShape: /*beforeRemoveShape*/ ctx[19],\n\t\t\t\tbeforeDeselectShape: /*beforeDeselectShape*/ ctx[20],\n\t\t\t\tbeforeSelectShape: /*beforeSelectShape*/ ctx[21],\n\t\t\t\tbeforeUpdateShape: /*beforeUpdateShape*/ ctx[22]\n\t\t\t};\n\n\t\t\tif (!updating_toolActive && dirty[0] & /*retouchActiveTool*/ 1) {\n\t\t\t\tupdating_toolActive = true;\n\t\t\t\tshapeutil_changes.toolActive = /*retouchActiveTool*/ ctx[0];\n\t\t\t\tadd_flush_callback(() => updating_toolActive = false);\n\t\t\t}\n\n\t\t\tshapeutil.$set(shapeutil_changes);\n\t\t},\n\t\ti(local) {\n\t\t\tif (current) return;\n\t\t\ttransition_in(shapeutil.$$.fragment, local);\n\t\t\tcurrent = true;\n\t\t},\n\t\to(local) {\n\t\t\ttransition_out(shapeutil.$$.fragment, local);\n\t\t\tcurrent = false;\n\t\t},\n\t\td(detaching) {\n\t\t\tdestroy_component(shapeutil, detaching);\n\t\t}\n\t};\n}\n\nfunction instance$1($$self, $$props, $$invalidate) {\n\tlet mapScreenPointToImagePoint;\n\tlet mapImagePointToScreenPoint;\n\tlet $imageFlipY;\n\tlet $imageFlipX;\n\tlet $imageTransformsInterpolated;\n\tlet $imageTransforms;\n\tlet $imageSize;\n\tlet $rootRect;\n\tlet $imageRotation;\n\tconst name = 'retouch';\n\tlet { isActive } = $$props;\n\tlet { isActiveFraction } = $$props;\n\tlet { isVisible } = $$props;\n\tlet { stores } = $$props;\n\tlet { locale = {} } = $$props;\n\tlet { retouchTools = undefined } = $$props;\n\tlet { retouchToolShapes = undefined } = $$props;\n\tlet { retouchShapeControls = undefined } = $$props;\n\tlet { retouchActiveTool = undefined } = $$props;\n\tlet { retouchWillRenderShapeStyleControls = undefined } = $$props;\n\tlet { retouchWillRenderHeaderTools = undefined } = $$props;\n\tlet { retouchWillRenderShapeControls = undefined } = $$props;\n\tlet { markupEditorWillStartInteraction = undefined } = $$props;\n\tlet { retouchEnableMoveTool = undefined } = $$props;\n\tlet { retouchEnableViewTool = undefined } = $$props;\n\tlet { willRenderShapeControls = undefined } = $$props;\n\tlet { willRenderShapeTextControls = undefined } = $$props;\n\tlet { willRenderHeaderTools = undefined } = $$props;\n\tlet { beforeAddShape = undefined } = $$props;\n\tlet { beforeRemoveShape = undefined } = $$props;\n\tlet { beforeDeselectShape = undefined } = $$props;\n\tlet { beforeSelectShape = undefined } = $$props;\n\tlet { beforeUpdateShape = undefined } = $$props;\n\n\t// connect filter choice to stores\n\tconst { rootRect, imageManipulation, imageSize, imageRotation, imageFlipX, imageFlipY, imageTransforms, imageTransformsInterpolated } = stores;\n\n\tcomponent_subscribe($$self, rootRect, value => $$invalidate(40, $rootRect = value));\n\tcomponent_subscribe($$self, imageSize, value => $$invalidate(39, $imageSize = value));\n\tcomponent_subscribe($$self, imageRotation, value => $$invalidate(27, $imageRotation = value));\n\tcomponent_subscribe($$self, imageFlipX, value => $$invalidate(24, $imageFlipX = value));\n\tcomponent_subscribe($$self, imageFlipY, value => $$invalidate(23, $imageFlipY = value));\n\tcomponent_subscribe($$self, imageTransforms, value => $$invalidate(38, $imageTransforms = value));\n\tcomponent_subscribe($$self, imageTransformsInterpolated, value => $$invalidate(37, $imageTransformsInterpolated = value));\n\n\tfunction shapeutil_toolActive_binding(value) {\n\t\tretouchActiveTool = value;\n\t\t$$invalidate(0, retouchActiveTool);\n\t}\n\n\tfunction measure_handler(event) {\n\t\tbubble.call(this, $$self, event);\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('isActive' in $$props) $$invalidate(1, isActive = $$props.isActive);\n\t\tif ('isActiveFraction' in $$props) $$invalidate(2, isActiveFraction = $$props.isActiveFraction);\n\t\tif ('isVisible' in $$props) $$invalidate(3, isVisible = $$props.isVisible);\n\t\tif ('stores' in $$props) $$invalidate(4, stores = $$props.stores);\n\t\tif ('locale' in $$props) $$invalidate(5, locale = $$props.locale);\n\t\tif ('retouchTools' in $$props) $$invalidate(6, retouchTools = $$props.retouchTools);\n\t\tif ('retouchToolShapes' in $$props) $$invalidate(7, retouchToolShapes = $$props.retouchToolShapes);\n\t\tif ('retouchShapeControls' in $$props) $$invalidate(8, retouchShapeControls = $$props.retouchShapeControls);\n\t\tif ('retouchActiveTool' in $$props) $$invalidate(0, retouchActiveTool = $$props.retouchActiveTool);\n\t\tif ('retouchWillRenderShapeStyleControls' in $$props) $$invalidate(9, retouchWillRenderShapeStyleControls = $$props.retouchWillRenderShapeStyleControls);\n\t\tif ('retouchWillRenderHeaderTools' in $$props) $$invalidate(10, retouchWillRenderHeaderTools = $$props.retouchWillRenderHeaderTools);\n\t\tif ('retouchWillRenderShapeControls' in $$props) $$invalidate(11, retouchWillRenderShapeControls = $$props.retouchWillRenderShapeControls);\n\t\tif ('markupEditorWillStartInteraction' in $$props) $$invalidate(12, markupEditorWillStartInteraction = $$props.markupEditorWillStartInteraction);\n\t\tif ('retouchEnableMoveTool' in $$props) $$invalidate(13, retouchEnableMoveTool = $$props.retouchEnableMoveTool);\n\t\tif ('retouchEnableViewTool' in $$props) $$invalidate(14, retouchEnableViewTool = $$props.retouchEnableViewTool);\n\t\tif ('willRenderShapeControls' in $$props) $$invalidate(15, willRenderShapeControls = $$props.willRenderShapeControls);\n\t\tif ('willRenderShapeTextControls' in $$props) $$invalidate(16, willRenderShapeTextControls = $$props.willRenderShapeTextControls);\n\t\tif ('willRenderHeaderTools' in $$props) $$invalidate(17, willRenderHeaderTools = $$props.willRenderHeaderTools);\n\t\tif ('beforeAddShape' in $$props) $$invalidate(18, beforeAddShape = $$props.beforeAddShape);\n\t\tif ('beforeRemoveShape' in $$props) $$invalidate(19, beforeRemoveShape = $$props.beforeRemoveShape);\n\t\tif ('beforeDeselectShape' in $$props) $$invalidate(20, beforeDeselectShape = $$props.beforeDeselectShape);\n\t\tif ('beforeSelectShape' in $$props) $$invalidate(21, beforeSelectShape = $$props.beforeSelectShape);\n\t\tif ('beforeUpdateShape' in $$props) $$invalidate(22, beforeUpdateShape = $$props.beforeUpdateShape);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*$imageFlipX, $imageFlipY*/ 25165824 | $$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms*/ 960) {\n\t\t\t//\n\t\t\t// Mapping coordinates\n\t\t\t//\n\t\t\t$$invalidate(26, mapScreenPointToImagePoint = point => _mapScreenPointToImagePoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*$imageFlipX, $imageFlipY*/ 25165824 | $$self.$$.dirty[1] & /*$rootRect, $imageSize, $imageTransformsInterpolated, $imageTransforms*/ 960) {\n\t\t\t$$invalidate(25, mapImagePointToScreenPoint = point => _mapImagePointToScreenPoint(point, $rootRect, $imageSize, $imageTransformsInterpolated.origin, $imageTransformsInterpolated.translation, $imageTransforms.rotation.z, $imageTransformsInterpolated.scale, $imageFlipX, $imageFlipY));\n\t\t}\n\t};\n\n\treturn [\n\t\tretouchActiveTool,\n\t\tisActive,\n\t\tisActiveFraction,\n\t\tisVisible,\n\t\tstores,\n\t\tlocale,\n\t\tretouchTools,\n\t\tretouchToolShapes,\n\t\tretouchShapeControls,\n\t\tretouchWillRenderShapeStyleControls,\n\t\tretouchWillRenderHeaderTools,\n\t\tretouchWillRenderShapeControls,\n\t\tmarkupEditorWillStartInteraction,\n\t\tretouchEnableMoveTool,\n\t\tretouchEnableViewTool,\n\t\twillRenderShapeControls,\n\t\twillRenderShapeTextControls,\n\t\twillRenderHeaderTools,\n\t\tbeforeAddShape,\n\t\tbeforeRemoveShape,\n\t\tbeforeDeselectShape,\n\t\tbeforeSelectShape,\n\t\tbeforeUpdateShape,\n\t\t$imageFlipY,\n\t\t$imageFlipX,\n\t\tmapImagePointToScreenPoint,\n\t\tmapScreenPointToImagePoint,\n\t\t$imageRotation,\n\t\trootRect,\n\t\timageManipulation,\n\t\timageSize,\n\t\timageRotation,\n\t\timageFlipX,\n\t\timageFlipY,\n\t\timageTransforms,\n\t\timageTransformsInterpolated,\n\t\tname,\n\t\t$imageTransformsInterpolated,\n\t\t$imageTransforms,\n\t\t$imageSize,\n\t\t$rootRect,\n\t\tshapeutil_toolActive_binding,\n\t\tmeasure_handler\n\t];\n}\n\nclass Retouch extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance$1,\n\t\t\tcreate_fragment$1,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\tname: 36,\n\t\t\t\tisActive: 1,\n\t\t\t\tisActiveFraction: 2,\n\t\t\t\tisVisible: 3,\n\t\t\t\tstores: 4,\n\t\t\t\tlocale: 5,\n\t\t\t\tretouchTools: 6,\n\t\t\t\tretouchToolShapes: 7,\n\t\t\t\tretouchShapeControls: 8,\n\t\t\t\tretouchActiveTool: 0,\n\t\t\t\tretouchWillRenderShapeStyleControls: 9,\n\t\t\t\tretouchWillRenderHeaderTools: 10,\n\t\t\t\tretouchWillRenderShapeControls: 11,\n\t\t\t\tmarkupEditorWillStartInteraction: 12,\n\t\t\t\tretouchEnableMoveTool: 13,\n\t\t\t\tretouchEnableViewTool: 14,\n\t\t\t\twillRenderShapeControls: 15,\n\t\t\t\twillRenderShapeTextControls: 16,\n\t\t\t\twillRenderHeaderTools: 17,\n\t\t\t\tbeforeAddShape: 18,\n\t\t\t\tbeforeRemoveShape: 19,\n\t\t\t\tbeforeDeselectShape: 20,\n\t\t\t\tbeforeSelectShape: 21,\n\t\t\t\tbeforeUpdateShape: 22\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget name() {\n\t\treturn this.$$.ctx[36];\n\t}\n\n\tget isActive() {\n\t\treturn this.$$.ctx[1];\n\t}\n\n\tset isActive(isActive) {\n\t\tthis.$$set({ isActive });\n\t\tflush();\n\t}\n\n\tget isActiveFraction() {\n\t\treturn this.$$.ctx[2];\n\t}\n\n\tset isActiveFraction(isActiveFraction) {\n\t\tthis.$$set({ isActiveFraction });\n\t\tflush();\n\t}\n\n\tget isVisible() {\n\t\treturn this.$$.ctx[3];\n\t}\n\n\tset isVisible(isVisible) {\n\t\tthis.$$set({ isVisible });\n\t\tflush();\n\t}\n\n\tget stores() {\n\t\treturn this.$$.ctx[4];\n\t}\n\n\tset stores(stores) {\n\t\tthis.$$set({ stores });\n\t\tflush();\n\t}\n\n\tget locale() {\n\t\treturn this.$$.ctx[5];\n\t}\n\n\tset locale(locale) {\n\t\tthis.$$set({ locale });\n\t\tflush();\n\t}\n\n\tget retouchTools() {\n\t\treturn this.$$.ctx[6];\n\t}\n\n\tset retouchTools(retouchTools) {\n\t\tthis.$$set({ retouchTools });\n\t\tflush();\n\t}\n\n\tget retouchToolShapes() {\n\t\treturn this.$$.ctx[7];\n\t}\n\n\tset retouchToolShapes(retouchToolShapes) {\n\t\tthis.$$set({ retouchToolShapes });\n\t\tflush();\n\t}\n\n\tget retouchShapeControls() {\n\t\treturn this.$$.ctx[8];\n\t}\n\n\tset retouchShapeControls(retouchShapeControls) {\n\t\tthis.$$set({ retouchShapeControls });\n\t\tflush();\n\t}\n\n\tget retouchActiveTool() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset retouchActiveTool(retouchActiveTool) {\n\t\tthis.$$set({ retouchActiveTool });\n\t\tflush();\n\t}\n\n\tget retouchWillRenderShapeStyleControls() {\n\t\treturn this.$$.ctx[9];\n\t}\n\n\tset retouchWillRenderShapeStyleControls(retouchWillRenderShapeStyleControls) {\n\t\tthis.$$set({ retouchWillRenderShapeStyleControls });\n\t\tflush();\n\t}\n\n\tget retouchWillRenderHeaderTools() {\n\t\treturn this.$$.ctx[10];\n\t}\n\n\tset retouchWillRenderHeaderTools(retouchWillRenderHeaderTools) {\n\t\tthis.$$set({ retouchWillRenderHeaderTools });\n\t\tflush();\n\t}\n\n\tget retouchWillRenderShapeControls() {\n\t\treturn this.$$.ctx[11];\n\t}\n\n\tset retouchWillRenderShapeControls(retouchWillRenderShapeControls) {\n\t\tthis.$$set({ retouchWillRenderShapeControls });\n\t\tflush();\n\t}\n\n\tget markupEditorWillStartInteraction() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset markupEditorWillStartInteraction(markupEditorWillStartInteraction) {\n\t\tthis.$$set({ markupEditorWillStartInteraction });\n\t\tflush();\n\t}\n\n\tget retouchEnableMoveTool() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset retouchEnableMoveTool(retouchEnableMoveTool) {\n\t\tthis.$$set({ retouchEnableMoveTool });\n\t\tflush();\n\t}\n\n\tget retouchEnableViewTool() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset retouchEnableViewTool(retouchEnableViewTool) {\n\t\tthis.$$set({ retouchEnableViewTool });\n\t\tflush();\n\t}\n\n\tget willRenderShapeControls() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset willRenderShapeControls(willRenderShapeControls) {\n\t\tthis.$$set({ willRenderShapeControls });\n\t\tflush();\n\t}\n\n\tget willRenderShapeTextControls() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tset willRenderShapeTextControls(willRenderShapeTextControls) {\n\t\tthis.$$set({ willRenderShapeTextControls });\n\t\tflush();\n\t}\n\n\tget willRenderHeaderTools() {\n\t\treturn this.$$.ctx[17];\n\t}\n\n\tset willRenderHeaderTools(willRenderHeaderTools) {\n\t\tthis.$$set({ willRenderHeaderTools });\n\t\tflush();\n\t}\n\n\tget beforeAddShape() {\n\t\treturn this.$$.ctx[18];\n\t}\n\n\tset beforeAddShape(beforeAddShape) {\n\t\tthis.$$set({ beforeAddShape });\n\t\tflush();\n\t}\n\n\tget beforeRemoveShape() {\n\t\treturn this.$$.ctx[19];\n\t}\n\n\tset beforeRemoveShape(beforeRemoveShape) {\n\t\tthis.$$set({ beforeRemoveShape });\n\t\tflush();\n\t}\n\n\tget beforeDeselectShape() {\n\t\treturn this.$$.ctx[20];\n\t}\n\n\tset beforeDeselectShape(beforeDeselectShape) {\n\t\tthis.$$set({ beforeDeselectShape });\n\t\tflush();\n\t}\n\n\tget beforeSelectShape() {\n\t\treturn this.$$.ctx[21];\n\t}\n\n\tset beforeSelectShape(beforeSelectShape) {\n\t\tthis.$$set({ beforeSelectShape });\n\t\tflush();\n\t}\n\n\tget beforeUpdateShape() {\n\t\treturn this.$$.ctx[22];\n\t}\n\n\tset beforeUpdateShape(beforeUpdateShape) {\n\t\tthis.$$set({ beforeUpdateShape });\n\t\tflush();\n\t}\n}\n\n// @ts-ignore\nvar _plugin_retouch = {\n util: ['retouch', Retouch, ({ src }) => src && !isVideoFile(src)],\n};\n\nconst IconCross =\n '<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M18 6L6 18M6 6l12 12\"></path></path></g>';\n\nconst CharacterA =\n '<path fill=\"none\" d=\"M9 15 L12 9 L15 15 M10 13.5 h3\" stroke=\"currentColor\" stroke-width=\".125em\"/>';\n\nvar _locale_en_gb = {\n // generic\n labelReset: 'Reset',\n labelDefault: 'Default',\n labelAuto: 'Auto',\n labelNone: 'None',\n labelEdit: 'Edit',\n labelClose: 'Close',\n labelSupportError: (features) => `${features.join(', ')} not supported on this browser`,\n\n // defaults\n labelColor: 'Color',\n labelWidth: 'Width',\n labelSize: 'Size',\n labelOffset: 'Offset',\n labelAmount: 'Amount',\n labelInset: 'Inset',\n labelRadius: 'Radius',\n\n // controls\n labelColorPalette: 'Color palette',\n\n // sizes\n labelSizeExtraSmall: 'Extra small',\n labelSizeSmall: 'Small',\n labelSizeMediumSmall: 'Medium small',\n labelSizeMedium: 'Medium',\n labelSizeMediumLarge: 'Medium large',\n labelSizeLarge: 'Large',\n labelSizeExtraLarge: 'Extra large',\n\n // default buttons\n\n labelButtonCancel: 'Cancel',\n labelButtonUndo: 'Undo',\n labelButtonRedo: 'Redo',\n labelButtonRevert: 'Revert',\n labelButtonExport: 'Done',\n\n // zoom\n labelZoomIn: 'Zoom in',\n labelZoomOut: 'Zoom out',\n labelZoomFit: 'Fit to view',\n labelZoomActual: 'Actual size',\n iconZoomIn: '<path stroke=\"currentColor\" stroke-width=\".125em\" d=\"M8 12 h8 M12 8 v8\" />',\n iconZoomOut: '<path stroke=\"currentColor\" stroke-width=\".125em\" d=\"M9 12 h6\" />',\n\n // icons\n iconSupportError: `<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/><g><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"/></g>`,\n iconButtonClose: IconCross,\n iconButtonRevert: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M7.388 18.538a8 8 0 10-2.992-9.03\"/><path fill=\"currentColor\" d=\"M2.794 11.696L2.37 6.714l5.088 3.18z\"/><path d=\"M12 8v4M12 12l4 2\"/></g>`,\n iconButtonUndo: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M10 8h4c2.485 0 5 2 5 5s-2.515 5-5 5h-4\"/><path fill=\"currentColor\" d=\"M5 8l4-3v6z\"/></g>`,\n iconButtonRedo: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M14 8h-4c-2.485 0-5 2-5 5s2.515 5 5 5h4\"/><path fill=\"currentColor\" d=\"M19 8l-4-3v6z\"/></g>`,\n iconButtonExport: `<polyline points=\"20 6 9 17 4 12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\".125em\"></polyline>`,\n\n // status\n statusLabelButtonClose: 'Close',\n statusIconButtonClose: IconCross,\n statusLabelLoadImage: (state) => {\n if (!state || !state.task) return 'Waiting for image';\n if (state.error)\n return state.error.code === 'IMAGE_TOO_SMALL'\n ? 'Minimum image size is {minWidth} × {minHeight}'\n : 'Error loading image';\n if (state.task === 'blob-to-bitmap') return 'Preparing image…';\n return 'Loading image…';\n },\n\n // processing status message\n statusLabelProcessImage: (state) => {\n if (!state || !state.task) return undefined;\n if (state.task === 'store') {\n if (state.error) return 'Error uploading image';\n return 'Uploading image…';\n }\n if (state.error) return 'Error processing image';\n return 'Processing image…';\n },\n};\n\nconst MarkupEditor = {\n shapeLabelButtonSelectSticker: 'Select image',\n shapeIconButtonSelectSticker: `<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"0.0625em\"><path d=\"M8 21 L15 11 L19 15\"/><path d=\"M15 2 v5 h5\"/><path d=\"M8 2 h8 l4 4 v12 q0 4 -4 4 h-8 q-4 0 -4 -4 v-12 q0 -4 4 -4z\"/></g><circle fill=\"currentColor\" cx=\"10\" cy=\"8\" r=\"1.5\"/>`,\n\n shapeIconButtonFlipHorizontal: `<g stroke=\"currentColor\" stroke-width=\".125em\"><path fill=\"none\" d=\"M6 6.5h5v11H6z\"/><path fill=\"currentColor\" d=\"M15 6.5h3v11h-3z\"/><path d=\"M11 4v16\" fill=\"currentColor\"/></g>`,\n shapeIconButtonFlipVertical: `<g stroke=\"currentColor\" stroke-width=\".125em\"><rect x=\"7\" y=\"8\" width=\"11\" height=\"5\" fill=\"none\"/><rect x=\"7\" y=\"17\" width=\"11\" height=\"2\" fill=\"currentColor\"/><line x1=\"5\" y1=\"13\" x2=\"20\" y2=\"13\"/></g>`,\n shapeIconButtonRemove: `<g fill=\"none\" fill-rule=\"evenodd\"><path stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M7.5 7h9z\"/><path d=\"M7.916 9h8.168a1 1 0 01.99 1.14l-.972 6.862a2 2 0 01-1.473 1.653c-.877.23-1.753.345-2.629.345-.876 0-1.752-.115-2.628-.345a2 2 0 01-1.473-1.653l-.973-6.862A1 1 0 017.916 9z\" fill=\"currentColor\"/><rect fill=\"currentColor\" x=\"10\" y=\"5\" width=\"4\" height=\"3\" rx=\"1\"/></g>`,\n shapeIconButtonDuplicate: `<g fill=\"none\" fill-rule=\"evenodd\"><path d=\"M15 13.994V16a2 2 0 01-2 2H8a2 2 0 01-2-2v-5a2 2 0 012-2h2.142\" stroke=\"currentColor\" stroke-width=\".125em\"/><path d=\"M15 9V8a1 1 0 00-2 0v1h-1a1 1 0 000 2h1v1a1 1 0 002 0v-1h1a1 1 0 000-2h-1zm-4-4h6a2 2 0 012 2v6a2 2 0 01-2 2h-6a2 2 0 01-2-2V7a2 2 0 012-2z\" fill=\"currentColor\"/></g>`,\n shapeIconButtonMoveToFront: `<g fill=\"none\" fill-rule=\"evenodd\"><rect fill=\"currentColor\" x=\"11\" y=\"13\" width=\"8\" height=\"2\" rx=\"1\"/><rect fill=\"currentColor\" x=\"9\" y=\"17\" width=\"10\" height=\"2\" rx=\"1\"/><path d=\"M11.364 8H10a5 5 0 000 10M12 6.5L14.5 8 12 9.5z\" stroke=\"currentColor\" stroke-width=\".125em\" stroke-linecap=\"round\"/></g>`,\n\n shapeIconButtonTextLayoutAutoWidth: `${CharacterA}`,\n shapeIconButtonTextLayoutAutoHeight: `<g fill=\"currentColor\"><circle cx=\"4\" cy=\"12\" r=\"1.5\"/><circle cx=\"20\" cy=\"12\" r=\"1.5\"/></g>${CharacterA}`,\n shapeIconButtonTextLayoutFixedSize: `<g fill=\"currentColor\"><circle cx=\"5\" cy=\"6\" r=\"1.5\"/><circle cx=\"19\" cy=\"6\" r=\"1.5\"/><circle cx=\"19\" cy=\"19\" r=\"1.5\"/><circle cx=\"5\" cy=\"19\" r=\"1.5\"/></g>${CharacterA}`,\n\n shapeTitleButtonTextLayoutAutoWidth: 'Auto width',\n shapeTitleButtonTextLayoutAutoHeight: 'Auto height',\n shapeTitleButtonTextLayoutFixedSize: 'Fixed size',\n\n shapeTitleButtonFlipHorizontal: 'Flip Horizontal',\n shapeTitleButtonFlipVertical: 'Flip Vertical',\n shapeTitleButtonRemove: 'Remove',\n shapeTitleButtonDuplicate: 'Duplicate',\n shapeTitleButtonMoveToFront: 'Move to front',\n\n shapeLabelInputText: 'Edit text',\n\n shapeIconInputCancel: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M18 6L6 18M6 6l12 12\"/></g>`,\n shapeIconInputConfirm: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><polyline points=\"20 6 9 17 4 12\"/></g>`,\n shapeLabelInputCancel: 'Cancel',\n shapeLabelInputConfirm: 'Confirm',\n\n shapeLabelStrokeNone: 'No outline',\n\n shapeLabelFontStyleNormal: 'Normal',\n shapeLabelFontStyleBold: 'Bold',\n shapeLabelFontStyleItalic: 'Italic',\n shapeLabelFontStyleItalicBold: 'Bold Italic',\n\n shapeTitleBackgroundColor: 'Fill color',\n\n shapeTitleCornerRadius: 'Corner radius',\n\n shapeTitleFontFamily: 'Font',\n shapeTitleFontSize: 'Font size',\n shapeTitleFontStyle: 'Font style',\n shapeTitleLineHeight: 'Line height',\n\n shapeTitleLineStart: 'Start',\n shapeTitleLineEnd: 'End',\n shapeTitleStrokeWidth: 'Line width',\n shapeTitleStrokeColor: 'Line color',\n\n shapeTitleLineDecorationBar: 'Bar',\n shapeTitleLineDecorationCircle: 'Circle',\n shapeTitleLineDecorationSquare: 'Square',\n shapeTitleLineDecorationArrow: 'Arrow',\n shapeTitleLineDecorationCircleSolid: 'Circle solid',\n shapeTitleLineDecorationSquareSolid: 'Square solid',\n shapeTitleLineDecorationArrowSolid: 'Arrow solid',\n\n shapeIconLineDecorationBar: `<g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\".125em\"><path d=\"M5,12 H16\"/><path d=\"M16,8 V16\"/></g>`,\n shapeIconLineDecorationCircle: `<g stroke=\"currentColor\" stroke-linecap=\"round\"><path stroke-width=\".125em\" d=\"M5,12 H12\"/><circle fill=\"none\" stroke-width=\".125em\" cx=\"16\" cy=\"12\" r=\"4\"/></g>`,\n shapeIconLineDecorationSquare: `<g stroke=\"currentColor\" stroke-linecap=\"round\"><path stroke-width=\".125em\" d=\"M5,12 H12\"/><rect fill=\"none\" stroke-width=\".125em\" x=\"12\" y=\"8\" width=\"8\" height=\"8\"/></g>`,\n shapeIconLineDecorationArrow: `<g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\".125em\"><path d=\"M5,12 H16 M13,7 l6,5 l-6,5\" fill=\"none\"/></g>`,\n shapeIconLineDecorationCircleSolid: `<g stroke=\"currentColor\" stroke-linecap=\"round\"><path stroke-width=\".125em\" d=\"M5,12 H12\"/><circle fill=\"currentColor\" cx=\"16\" cy=\"12\" r=\"4\"/></g>`,\n shapeIconLineDecorationSquareSolid: `<g stroke=\"currentColor\" stroke-linecap=\"round\"><path stroke-width=\".125em\" d=\"M5,12 H12\"/><rect fill=\"currentColor\" x=\"12\" y=\"8\" width=\"8\" height=\"8\"/></g>`,\n shapeIconLineDecorationArrowSolid: `<g stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\".125em\"><path d=\"M5,12 H16\"/><path d=\"M13,7 l6,5 l-6,5z\" fill=\"currentColor\"/></g>`,\n\n shapeTitleColorTransparent: 'Transparent',\n shapeTitleColorWhite: 'White',\n shapeTitleColorSilver: 'Silver',\n shapeTitleColorGray: 'Gray',\n shapeTitleColorBlack: 'Black',\n shapeTitleColorNavy: 'Navy',\n shapeTitleColorBlue: 'Blue',\n shapeTitleColorAqua: 'Aqua',\n shapeTitleColorTeal: 'Teal',\n shapeTitleColorOlive: 'Olive',\n shapeTitleColorGreen: 'Green',\n shapeTitleColorYellow: 'Yellow',\n shapeTitleColorOrange: 'Orange',\n shapeTitleColorRed: 'Red',\n shapeTitleColorMaroon: 'Maroon',\n shapeTitleColorFuchsia: 'Fuchsia',\n shapeTitleColorPurple: 'Purple',\n\n shapeTitleTextOutline: 'Text outline',\n shapeTitleTextOutlineWidth: 'Width',\n\n shapeTitleTextShadow: 'Text shadow',\n shapeTitleTextShadowBlur: 'Blur',\n\n shapeTitleTextColor: 'Font color',\n shapeTitleTextAlign: 'Text align',\n shapeTitleTextAlignLeft: 'Left align text',\n shapeTitleTextAlignCenter: 'Center align text',\n shapeTitleTextAlignRight: 'Right align text',\n\n shapeIconTextAlignLeft: `<g stroke-width=\".125em\" stroke=\"currentColor\"><line x1=\"5\" y1=\"8\" x2=\"15\" y2=\"8\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/><line x1=\"5\" y1=\"16\" x2=\"14\" y2=\"16\"/></g>`,\n shapeIconTextAlignCenter: `<g stroke-width=\".125em\" stroke=\"currentColor\"><line x1=\"7\" y1=\"8\" x2=\"17\" y2=\"8\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/><line x1=\"8\" y1=\"16\" x2=\"16\" y2=\"16\"/></g>`,\n shapeIconTextAlignRight: `<g stroke-width=\".125em\" stroke=\"currentColor\"><line x1=\"9\" y1=\"8\" x2=\"19\" y2=\"8\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/><line x1=\"11\" y1=\"16\" x2=\"19\" y2=\"16\"/></g>`,\n\n shapeLabelToolMove: 'Move',\n shapeLabelToolView: 'View',\n shapeLabelToolSharpie: 'Sharpie',\n shapeLabelToolEraser: 'Eraser',\n shapeLabelToolPath: 'Path',\n shapeLabelToolRectangle: 'Rectangle',\n shapeLabelToolEllipse: 'Ellipse',\n shapeLabelToolArrow: 'Arrow',\n shapeLabelToolLine: 'Line',\n shapeLabelToolText: 'Text',\n shapeLabelToolPreset: 'Stickers',\n\n shapeIconToolView: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.98 9.703V2.567c0-1.19 1.19-1.785 1.784-1.785.595 0 1.784.595 1.784 1.785v3.568\"/><path d=\"M14.548 9.703V4.35c0-1.19 1.19-1.784 1.784-1.784.595 0 1.784.594 1.784 1.784v2.973\"/><path d=\"M18.116 10.244V7.271c0-1.19 1.19-1.784 1.784-1.784.595 0 1.785.595 1.785 1.784 0 1.19 0 8.92-1.19 12.488-1.19 3.569-10.704 4.758-13.678 0-2.973-4.757-2.973-4.757-4.163-6.541-1.189-1.784-1.153-2.974-.594-3.568.558-.595 1.784-1.19 2.973.594 1.277 1.916 2.07 2.907 2.379 2.974V5.487c0-1.19 1.19-1.784 1.784-1.784.595 0 1.784.595 1.784 1.784V8.46\"/></g>`,\n shapeIconToolMove: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M6 2 L6 19 L18 13 Z M13 18 L16 24\" stroke=\"currentColor\" stroke-width=\".125em\" fill=\"none\" fill-rule=\"evenodd\" stroke-linejoin=\"round\"/></g>`,\n shapeIconToolSharpie: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M2.025 5c5.616-2.732 8.833-3.857 9.65-3.374C12.903 2.351.518 12.666 2.026 14 3.534 15.334 16.536.566 17.73 2.566 18.924 4.566 3.98 17.187 4.831 18c.851.813 9.848-6 11.643-6 1.087 0-2.53 5.11-2.92 7-.086.41 3.323-1.498 4.773-1 .494.17.64 2.317 1.319 3 .439.443 1.332.776 2.679 1\" stroke=\"currentColor\" stroke-width=\".125em\" fill=\"none\" fill-rule=\"evenodd\" stroke-linejoin=\"round\"/></g>`,\n shapeIconToolEraser: `<g stroke-width=\".125em\" stroke=\"currentColor\" stroke-linecap=\"round\" fill=\"none\"><g transform=\"translate(3, 15) rotate(-45)\"><rect x=\"0\" y=\"0\" width=\"18\" height=\"10\" rx=\"3\"/></g><line x1=\"11\" y1=\"21\" x2=\"18\" y2=\"21\"/><line x1=\"20\" y1=\"21\" x2=\"22\" y2=\"21\"/></g>`,\n shapeIconToolPath: `<g stroke-width=\".125em\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill=\"none\"><circle cx=\"21\" cy=\"3\" r=\"2\"/><circle cx=\"9\" cy=\"9\" r=\"2\"/><circle cx=\"3\" cy=\"21\" r=\"2\"/><path d=\"M19 4 11 8 M8 11 4 19\"/></g>`,\n shapeIconToolRectangle: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><rect x=\"1\" y=\"1\" width=\"22\" height=\"22\" rx=\"4\"/></g>`,\n shapeIconToolEllipse: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><circle cx=\"12\" cy=\"12\" r=\"11\"/></g>`,\n shapeIconToolArrow: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><line x1=\"20\" y1=\"3\" x2=\"6\" y2=\"21\"/><path d=\"m10 6 L21.5 1 L20 13.5\" fill=\"currentColor\" stroke=\"none\"/></g>`,\n shapeIconToolLine: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><line x1=\"20\" y1=\"3\" x2=\"6\" y2=\"21\"/></g>`,\n shapeIconToolText: `<g stroke=\"none\" fill=\"currentColor\" transform=\"translate(6,0)\"><path d=\"M8.14 20.085c.459 0 .901-.034 1.329-.102a8.597 8.597 0 001.015-.21v1.984c-.281.135-.695.247-1.242.336a9.328 9.328 0 01-1.477.133c-3.312 0-4.968-1.745-4.968-5.235V6.804H.344v-1.25l2.453-1.078L3.89.819h1.5v3.97h4.97v2.015H5.39v10.078c0 1.031.245 1.823.735 2.375s1.161.828 2.015.828z\"/>`,\n shapeIconToolPreset: `<g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M12 22c2.773 0 1.189-5.177 3-7 1.796-1.808 7-.25 7-3 0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10z\"></path><path d=\"M20 17c-3 3-5 5-8 5\"></path></g>`,\n\n shapeTitleSelectionMode: 'Selection mode',\n shapeTitleBrushSize: 'Brush size',\n\n shapeLabelSelectionModeNew: 'New',\n shapeLabelSelectionModeAdd: 'Add',\n shapeLabelSelectionModeSubtract: 'Remove',\n\n shapeLabelToolSelectionBrush: 'Brush',\n shapeLabelToolSelectionLassoo: 'Lassoo',\n shapeLabelToolSelectionRectangle: 'Rectangle marquee',\n shapeLabelToolSelectionEllipse: 'Ellipse marquee',\n\n shapeIconSelectionModeNew: `<g fill=\"none\" fill-rule=\"evenodd\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 17H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1.5\"/><rect width=\"12\" height=\"12\" x=\"9\" y=\"9\" fill=\"currentColor\" fill-opacity=\".25\" rx=\"2\"/></g>`,\n shapeIconSelectionModeAdd: `<g fill=\"none\" fill-rule=\"evenodd\" stroke=\"currentColor\"><path fill=\"currentColor\" fill-opacity=\".25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 3a2 2 0 0 1 2 2v4h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10Z\"/><path d=\"M13 15h4M15 13v4\"/></g>`,\n shapeIconSelectionModeSubtract: `<g fill=\"none\" fill-rule=\"evenodd\" stroke=\"currentColor\"><path fill=\"currentColor\" fill-opacity=\".25\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M15 3a2 2 0 0 1 2 2v4h-6a2 2 0 0 0-1.995 1.85L9 11v6H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10Z\"/><rect width=\"12\" height=\"12\" x=\"9\" y=\"9\" stroke-linecap=\"round\" stroke-linejoin=\"round\" rx=\"2\"/><path d=\"M13 15h4\"/></g>`,\n shapeIconToolSelectionBrush: `<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M2.025 5c5.616-2.732 8.833-3.857 9.65-3.374C12.903 2.351.518 12.666 2.026 14 3.534 15.334 16.536.566 17.73 2.566 18.924 4.566 3.98 17.187 4.831 18c.851.813 9.848-6 11.643-6 1.087 0-2.53 5.11-2.92 7-.086.41 3.323-1.498 4.773-1 .494.17.64 2.317 1.319 3 .439.443 1.332.776 2.679 1\" stroke=\"currentColor\" fill-rule=\"evenodd\" stroke-linejoin=\"round\"/></g>`,\n shapeIconToolSelectionLassoo: `<g fill=\"none\" fill-rule=\"evenodd\" stroke-width=\".125em\" stroke=\"currentColor\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M11.428 17.702a18.46 18.46 0 0 0 4.085-1.595c5.851-3.112 9.019-8.599 7.074-12.256-1.945-3.657-8.265-4.1-14.116-.988C2.619 5.974-.55 11.46 1.396 15.118c.63 1.186 1.72 2.033 3.105 2.532\"/><ellipse cx=\"8\" cy=\"18.5\" rx=\"3.5\" ry=\"2.833\" transform=\"rotate(-15 8 18.5)\"/><path stroke-linecap=\"round\" d=\"M5 18c3.347 1.048 5.514 1.881 6.5 2.5.859.54 1.517.994 1.5 2.364\"/></g>`,\n shapeIconToolSelectionRectangle: `<g stroke-width=\".125em\" stroke=\"currentColor\"><path d=\"M9 1 h6 m4 0 h4v4 m0 4 v6 m0 4 v4h-4 m-4 0 h-6 m-4 0 h-4v-4 m0 -4 v-6 m0 -4 v-4h4\" fill=\"none\" /></g>`,\n shapeIconToolSelectionEllipse: `<path stroke-width=\".125em\" stroke=\"currentColor\" d=\"M1.21 9.853a11.054 11.054 0 0 0 0 4.294m1.643 3.965a11.054 11.054 0 0 0 3.035 3.035m3.965 1.644a11.054 11.054 0 0 0 4.294 0m3.965-1.644a11.054 11.054 0 0 0 3.035-3.035m1.644-3.965a11.054 11.054 0 0 0 0-4.294m-1.644-3.965a11.054 11.054 0 0 0-3.035-3.035m-3.965-1.644a11.054 11.054 0 0 0-4.294 0M5.888 2.853a11.054 11.054 0 0 0-3.035 3.035\"/>`,\n};\n\nvar _plugin_crop_locale_en_gb = {\n cropLabel: 'Crop',\n cropIcon:\n '<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M23 17H9a2 2 0 0 1-2-2v-5m0-3V1 M1 7h14a2 2 0 0 1 2 2v7m0 4v3\"/></g>',\n cropIconButtonRecenter: `<path stroke=\"currentColor\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"bevel\" d=\"M1.5 7.5v-6h6M1.5 16.5v6h6M22.5 16.5v6h-6M22.5 7.5v-6h-6\"/><circle cx=\"12\" cy=\"12\" r=\"3.5\" fill=\"currentColor\" stroke=\"none\"/>`,\n cropIconButtonRotateLeft:\n '<g stroke=\"none\" fill=\"currentColor\"><path fill=\"none\" d=\"M-1-1h582v402H-1z\"/><rect x=\"3\" rx=\"1\" height=\"12\" width=\"12\" y=\"9\"/><path d=\"M15 5h-1a5 5 0 015 5 1 1 0 002 0 7 7 0 00-7-7h-1.374l.747-.747A1 1 0 0011.958.84L9.603 3.194a1 1 0 000 1.415l2.355 2.355a1 1 0 001.415-1.414l-.55-.55H15z\"/></g>',\n cropIconButtonRotateRight:\n '<g stroke=\"none\" fill=\"currentColor\"><path fill=\"none\" d=\"M-1-1h582v402H-1z\"/><path d=\"M11.177 5H10a5 5 0 00-5 5 1 1 0 01-2 0 7 7 0 017-7h1.374l-.747-.747A1 1 0 0112.042.84l2.355 2.355a1 1 0 010 1.415l-2.355 2.354a1 1 0 01-1.415-1.414l.55-.55z\"/><rect rx=\"1\" height=\"12\" width=\"12\" y=\"9\" x=\"9\"/></g>',\n cropIconButtonFlipVertical:\n '<g stroke=\"none\" fill=\"currentColor\"><path d=\"M19.993 12.143H7a1 1 0 0 1-1-1V5.994a1 1 0 0 1 1.368-.93l12.993 5.15a1 1 0 0 1-.368 1.93z\"/><path d=\"M19.993 14a1 1 0 0 1 .368 1.93L7.368 21.078A1 1 0 0 1 6 20.148V15a1 1 0 0 1 1-1h12.993z\" opacity=\".6\"/></g>',\n cropIconButtonFlipHorizontal:\n '<g stroke=\"none\" fill=\"currentColor\"><path d=\"M11.93 7.007V20a1 1 0 0 1-1 1H5.78a1 1 0 0 1-.93-1.368l5.15-12.993a1 1 0 0 1 1.929.368z\"/><path d=\"M14 7.007V20a1 1 0 0 0 1 1h5.149a1 1 0 0 0 .93-1.368l-5.15-12.993A1 1 0 0 0 14 7.007z\" opacity=\".6\"/></g>',\n\n cropIconSelectPreset: (locale, aspectRatio) => {\n const [a, b, c] = !aspectRatio\n ? [0.2, 0.3, 0.4]\n : [\n aspectRatio < 1 ? 1 : 0.3,\n aspectRatio === 1 ? 0.85 : 0.5,\n aspectRatio > 1 ? 1 : 0.3,\n ];\n return `<g fill=\"currentColor\">\n <rect opacity=\"${a}\" x=\"2\" y=\"4\" width=\"10\" height=\"18\" rx=\"1\"/>\n <rect opacity=\"${b}\" x=\"4\" y=\"8\" width=\"14\" height=\"14\" rx=\"1\"/>\n <rect opacity=\"${c}\" x=\"6\" y=\"12\" width=\"17\" height=\"10\" rx=\"1\"/>\n </g>`;\n },\n\n cropIconCropBoundary: (locale, isBoundToImage) => {\n const [a, b, c, d] = isBoundToImage ? [0.3, 1, 0, 0] : [0, 0, 0.3, 1];\n return `<g fill=\"currentColor\">\n <rect opacity=\"${a}\" x=\"2\" y=\"3\" width=\"20\" height=\"20\" rx=\"1\"/>\n <rect opacity=\"${b}\" x=\"7\" y=\"8\" width=\"10\" height=\"10\" rx=\"1\"/>\n <rect opacity=\"${c}\" x=\"4\" y=\"8\" width=\"14\" height=\"14\" rx=\"1\"/>\n <rect opacity=\"${d}\" x=\"12\" y=\"4\" width=\"10\" height=\"10\" rx=\"1\"/>\n </g>`;\n },\n\n cropLabelButtonRecenter: 'Recenter',\n cropLabelButtonRotateLeft: 'Rotate left',\n cropLabelButtonRotateRight: 'Rotate right',\n cropLabelButtonFlipHorizontal: 'Flip horizontal',\n cropLabelButtonFlipVertical: 'Flip vertical',\n\n cropLabelSelectPreset: 'Crop shape',\n\n cropLabelCropBoundary: 'Crop boundary',\n cropLabelCropBoundaryEdge: 'Edge of image',\n cropLabelCropBoundaryNone: 'None',\n\n cropLabelTabRotation: 'Rotation',\n cropLabelTabZoom: 'Scale',\n};\n\nvar _plugin_fill_locale_en_gb = {\n fillLabel: 'Fill',\n fillIcon: `\n <g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\">\n <g transform=\"rotate(60, 12, 12)\">\n <rect x=\"4\" y=\"4\" width=\"14\" height=\"16\" rx=\"3\"/>\n </g>\n <path d=\"M21 13 L21 21\"></path>\n <path d=\"M4.5 12.5 L19 12.5\"></path>\n </g>\n `,\n};\n\nvar _plugin_filter_locale_en_gb = {\n filterLabel: 'Filter',\n filterIcon:\n '<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M18.347 9.907a6.5 6.5 0 1 0-1.872 3.306M3.26 11.574a6.5 6.5 0 1 0 2.815-1.417 M10.15 17.897A6.503 6.503 0 0 0 16.5 23a6.5 6.5 0 1 0-6.183-8.51\"/></g>',\n filterLabelChrome: 'Chrome',\n filterLabelFade: 'Fade',\n filterLabelCold: 'Cold',\n filterLabelWarm: 'Warm',\n filterLabelPastel: 'Pastel',\n filterLabelMonoDefault: 'Mono',\n filterLabelMonoNoir: 'Noir',\n filterLabelMonoWash: 'Wash',\n filterLabelMonoStark: 'Stark',\n filterLabelSepiaDefault: 'Sepia',\n filterLabelSepiaBlues: 'Blues',\n filterLabelSepiaRust: 'Rust',\n filterLabelSepiaColor: 'Color',\n};\n\nvar _plugin_finetune_locale_en_gb = {\n finetuneLabel: 'Finetune',\n finetuneIcon:\n '<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M4 1v5.5m0 3.503V23M12 1v10.5m0 3.5v8M20 1v15.5m0 3.5v3M2 7h4M10 12h4M18 17h4\"/></g>',\n\n finetuneLabelBrightness: 'Brightness',\n finetuneLabelContrast: 'Contrast',\n finetuneLabelSaturation: 'Saturation',\n finetuneLabelExposure: 'Exposure',\n finetuneLabelTemperature: 'Temperature',\n finetuneLabelGamma: 'Gamma',\n finetuneLabelClarity: 'Clarity',\n finetuneLabelVignette: 'Vignette',\n};\n\nvar _plugin_resize_locale_en_gb = {\n resizeLabel: 'Resize',\n resizeIcon:\n '<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><rect x=\"2\" y=\"12\" width=\"10\" height=\"10\" rx=\"2\"/><path d=\"M4 11.5V4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5\"/><path d=\"M14 10l3.365-3.365M14 6h4v4\"/></g>',\n\n resizeLabelFormCaption: 'Image output size',\n\n resizeLabelInputWidth: 'w',\n resizeTitleInputWidth: 'Width',\n resizeLabelInputHeight: 'h',\n resizeTitleInputHeight: 'Height',\n\n resizeTitleButtonMaintainAspectRatio: 'Maintain aspectratio',\n\n resizeIconButtonMaintainAspectRatio: (active, activeFraction) =>\n `<defs><mask id=\"mask1\" x=\"0\" y=\"0\" width=\"24\" height=\"24\" ><rect x=\"0\" y=\"0\" width=\"24\" height=\"10\" fill=\"#fff\" stroke=\"none\"/></mask></defs><g fill=\"none\" fill-rule=\"evenodd\"><g mask=\"url(#mask1)\"><path transform=\"translate(0 ${\n (activeFraction - 1) * 3\n })\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" d=\"M9.401 10.205v-.804a2.599 2.599 0 0 1 5.198 0V17\"/></g><rect fill=\"currentColor\" x=\"7\" y=\"10\" width=\"10\" height=\"7\" rx=\"1.5\"/></g>`,\n};\n\nvar _plugin_decorate_locale_en_gb = {\n decorateLabel: 'Decorate',\n decorateIcon:\n '<g fill=\"none\" fill-rule=\"evenodd\"><path stroke=\"currentColor\" stroke-width=\".125em\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 18.5l-6.466 3.4 1.235-7.2-5.23-5.1 7.228-1.05L12 2l3.233 6.55 7.229 1.05-5.231 5.1 1.235 7.2z\"/></g>',\n};\n\nvar _plugin_annotate_locale_en_gb = {\n annotateLabel: 'Annotate',\n annotateIcon:\n '<g stroke-width=\".125em\" stroke=\"currentColor\" fill=\"none\"><path d=\"M17.086 2.914a2.828 2.828 0 1 1 4 4l-14.5 14.5-5.5 1.5 1.5-5.5 14.5-14.5z\"/></g>',\n};\n\nvar _plugin_sticker_locale_en_gb = {\n stickerLabel: 'Sticker',\n stickerIcon:\n '<g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M12 22c2.773 0 1.189-5.177 3-7 1.796-1.808 7-.25 7-3 0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10z\"/><path d=\"M20 17c-3 3-5 5-8 5\"/></g>',\n};\n\nvar _plugin_frame_locale_en_gb = {\n frameLabel: 'Frame',\n frameIcon: `<g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\">\n <rect x=\"2\" y=\"2\" width=\"20\" height=\"20\" rx=\"4\"/>\n <rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"1\"/>\n </g>`,\n\n frameLabelMatSharp: 'Mat',\n frameLabelMatRound: 'Bevel',\n frameLabelLineSingle: 'Line',\n frameLabelLineMultiple: 'Zebra',\n frameLabelEdgeSeparate: 'Inset',\n frameLabelEdgeOverlap: 'Plus',\n frameLabelEdgeCross: 'Lumber',\n frameLabelCornerHooks: 'Hook',\n frameLabelPolaroid: 'Polaroid',\n};\n\nvar _plugin_redact_locale_en_gb = {\n redactLabel: 'Redact',\n redactIcon: `<g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\" stroke-width=\".125em\"><path d=\"M 4 5 l 1 -1\"/><path d=\"M 4 10 l 6 -6\"/><path d=\"M 4 15 l 11 -11\"/><path d=\"M 4 20 l 16 -16\"/><path d=\"M 9 20 l 11 -11\"/><path d=\"M 14 20 l 6 -6\"/><path d=\"M 19 20 l 1 -1\"/></g>`,\n};\n\nvar _plugin_retouch_locale_en_gb = {\n retouchLabel: 'Retouch',\n retouchIcon: `\n <g fill=\"none\" fill-rule=\"evenodd\"><path fill=\"currentColor\" d=\"m17 6-2-1-2 1 1-2-1-2 2 1 2-1-1 2zM5.5 5.5 3 4 .5 5.5 2 3 .5.5 3 2 5.5.5 4 3zM9 21l-3-1.5L3 21l1.5-3L3 15l3 1.5L9 15l-1.5 3z\"/><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"m9.266 6.705 13.529 13.529c-.071.78-.34 1.371-.765 1.796-.425.425-1.015.694-1.796.765h0L6.705 9.266c.071-.78.34-1.371.765-1.796.425-.425 1.015-.694 1.796-.765h0Z\"/><path stroke=\"currentColor\" stroke-width=\"1.5\" d=\"M12 9.5c-.657.323-1.157.657-1.5 1-.343.343-.677.843-1 1.5\"/></g>\n `,\n};\n\nvar hasDefinedCustomElement = (name) => document.createElement(name).constructor !== HTMLElement;\n\nvar linkAccessors = (destination, origin) => {\n const descriptors = Object.getOwnPropertyDescriptors(destination);\n Object.keys(descriptors).forEach((key) => {\n // props, set new setter and getter\n if (!!descriptors[key]['get']) {\n Object.defineProperty(origin, key, {\n get: () => destination[key],\n set: (value) => (destination[key] = value),\n });\n }\n // method, copy reference\n else {\n origin[key] = destination[key];\n }\n });\n};\n\nvar hasDoctype = () => isBrowser() && document.doctype !== null;\n\nvar initEditorView = (target) => {\n const accessors = {};\n const { sub, pub } = pubsub();\n // catch missing doctype\n if (!hasDoctype())\n console.warn('Browser is in quirks mode, add <!DOCTYPE html> to page to fix render issues');\n // create editor core\n const core = createImageEditor();\n linkAccessors(core, accessors);\n // create editor view\n const view = attachEditorView(target, core.stores);\n linkAccessors(view, accessors);\n // listen for UI interaction and link to editor API (internals)\n const unsubs = ['loadImage', 'processImage', 'abortProcessImage', 'abortLoadImage'].map((event) => view.on(event, (e) => {\n // run core method, if returns a promise, we silence errors as those are passed to the UI via stores\n const returned = core[event](e && e.detail);\n if (returned instanceof Promise)\n returned.catch(noop$1);\n }));\n // auto subscribes on each possible publisher\n const subscribe = (event, cb) => {\n const unsubInit = sub(event, cb);\n const unsubCore = core.on(event, cb);\n const unsubView = view.on(event, cb);\n return () => {\n unsubInit();\n unsubCore();\n unsubView();\n };\n };\n // handles every event, useful for routing events from the options object\n accessors.handleEvent = noop$1;\n const handleEventUnsubs = editorEvents.map((type) => subscribe(type, (res) => accessors.handleEvent(type, res)));\n // set up new api\n defineMethods(accessors, {\n on: subscribe,\n updateImage: (src) => new Promise((resolve, reject) => {\n // save history\n const storedHistory = accessors.history.get();\n const storedHistoryIndex = accessors.history.index;\n // save state\n const storedState = accessors.imageState;\n // update image\n core.loadImage(src)\n .then((res) => {\n // restore history\n accessors.history.set(storedHistory);\n accessors.history.index = storedHistoryIndex;\n // restore state\n accessors.imageState = storedState;\n // done!\n resolve(res);\n })\n .catch(reject);\n }),\n close: () => {\n pub('close');\n },\n destroy: () => {\n // unsub\n [...unsubs, ...handleEventUnsubs].forEach((unsub) => unsub());\n // destroy\n view.destroy();\n core.destroy();\n // destroyed\n pub('destroy');\n },\n });\n setTimeout(() => pub('init', accessors), 0);\n return accessors;\n};\n\nconst TAG = 'pintura-editor';\nvar _defineCustomElements = () => new Promise((resolve) => {\n if (!PinturaImageEditorElement)\n return resolve([]);\n !hasDefinedCustomElement(TAG) && customElements.define(TAG, PinturaImageEditorElement);\n customElements.whenDefined(TAG).then(() => resolve(document.querySelectorAll(TAG)));\n});\nconst PinturaImageEditorElement = isBrowser() &&\n class extends HTMLElement {\n constructor() {\n super();\n this._editor = undefined;\n this._unsubs = undefined;\n }\n static get observedAttributes() {\n return ['src'];\n }\n attributeChangedCallback(attrName, oldValue, newValue) {\n this[attrName] = newValue;\n }\n connectedCallback() {\n this._editor = initEditorView(this);\n linkAccessors(this._editor, this);\n this._editor.src = this.getAttribute('src');\n this._unsubs = dispatchEditorEvents(this._editor, this);\n }\n disconnectedCallback() {\n this._editor.destroy();\n this._unsubs.forEach((unsub) => unsub());\n }\n };\n\nconst CSS_CLASS_NAME = 'pintura-editor';\nvar _appendEditor = (target, options = {}) => {\n const element = isString(target)\n ? document.querySelector(target)\n : target;\n if (!isElement(element))\n return undefined;\n options.class = options.class ? `${CSS_CLASS_NAME} ${options.class}` : CSS_CLASS_NAME;\n const accessors = initEditorView(element);\n return Object.assign(accessors, options);\n};\n\n/* src/core/ui/modal/index.svelte generated by Svelte v3.52.0 */\n\nconst { document: document_1, window: window_1 } = globals;\n\nfunction create_fragment(ctx) {\n\tlet t;\n\tlet div;\n\tlet mounted;\n\tlet dispose;\n\tadd_render_callback(/*onwindowresize*/ ctx[27]);\n\n\treturn {\n\t\tc() {\n\t\t\tt = space();\n\t\t\tdiv = element(\"div\");\n\t\t\tattr(div, \"class\", /*className*/ ctx[4]);\n\t\t\tattr(div, \"style\", /*style*/ ctx[5]);\n\t\t},\n\t\tm(target, anchor) {\n\t\t\tinsert(target, t, anchor);\n\t\t\tinsert(target, div, anchor);\n\t\t\t/*div_binding*/ ctx[28](div);\n\n\t\t\tif (!mounted) {\n\t\t\t\tdispose = [\n\t\t\t\t\tlisten(window_1, \"keydown\", /*handleKey*/ ctx[10]),\n\t\t\t\t\tlisten(window_1, \"orientationchange\", /*spawnMeasureElement*/ ctx[11]),\n\t\t\t\t\tlisten(window_1, \"resize\", /*onwindowresize*/ ctx[27]),\n\t\t\t\t\tlisten(document_1.body, \"focusin\", function () {\n\t\t\t\t\t\tif (is_function(!/*hidden*/ ctx[1] && /*handleFocusIn*/ ctx[7])) (!/*hidden*/ ctx[1] && /*handleFocusIn*/ ctx[7]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(document_1.body, \"focusout\", function () {\n\t\t\t\t\t\tif (is_function(/*hasFocussedTextField*/ ctx[2] && /*handleFocusOut*/ ctx[8])) (/*hasFocussedTextField*/ ctx[2] && /*handleFocusOut*/ ctx[8]).apply(this, arguments);\n\t\t\t\t\t}),\n\t\t\t\t\tlisten(div, \"wheel\", /*handleWheel*/ ctx[9], { passive: false })\n\t\t\t\t];\n\n\t\t\t\tmounted = true;\n\t\t\t}\n\t\t},\n\t\tp(new_ctx, dirty) {\n\t\t\tctx = new_ctx;\n\n\t\t\tif (dirty[0] & /*className*/ 16) {\n\t\t\t\tattr(div, \"class\", /*className*/ ctx[4]);\n\t\t\t}\n\n\t\t\tif (dirty[0] & /*style*/ 32) {\n\t\t\t\tattr(div, \"style\", /*style*/ ctx[5]);\n\t\t\t}\n\t\t},\n\t\ti: noop,\n\t\to: noop,\n\t\td(detaching) {\n\t\t\tif (detaching) detach(t);\n\t\t\tif (detaching) detach(div);\n\t\t\t/*div_binding*/ ctx[28](null);\n\t\t\tmounted = false;\n\t\t\trun_all(dispose);\n\t\t}\n\t};\n}\n\nfunction instance($$self, $$props, $$invalidate) {\n\tlet o;\n\tlet viewportRules;\n\tlet isOpaque;\n\tlet isIOSFooterVisible;\n\tlet style;\n\tlet className;\n\tlet scrollsBodyOnInteraction;\n\tlet $opacity;\n\tconst dispatch = createEventDispatcher();\n\tlet { root } = $$props;\n\tlet { preventZoomViewport = true } = $$props;\n\tlet { preventScrollBodyIfNeeded = true } = $$props;\n\tlet { preventFooterOverlapIfNeeded = true } = $$props;\n\tlet { class: klass = undefined } = $$props;\n\tlet hidden = true;\n\tlet hiding = false;\n\tlet showing = false;\n\tlet doc = isBrowser() && document.documentElement;\n\tlet body = isBrowser() && document.body;\n\tlet head = isBrowser() && document.head;\n\tconst opacity = spring(0, { precision: 0.001, damping: 0.5 });\n\tcomponent_subscribe($$self, opacity, value => $$invalidate(26, $opacity = value));\n\n\t// animate hide and show\n\tconst opacityUnsub = opacity.subscribe(o => {\n\t\tif (showing && o >= 1) {\n\t\t\t$$invalidate(19, showing = false); // now shown\n\t\t\t$$invalidate(1, hidden = false);\n\t\t\tdispatch('show');\n\t\t} else if (hiding && o <= 0) {\n\t\t\t$$invalidate(18, hiding = false); // now hidden\n\t\t\t$$invalidate(1, hidden = true);\n\t\t\tdispatch('hide');\n\t\t}\n\t});\n\n\tlet hasFocussedTextField = false;\n\tlet viewportDefaults = undefined;\n\tlet themeDefaults = undefined;\n\tlet showTimeoutId = undefined;\n\tconst getViewPortElement = () => document.querySelector('meta[name=viewport]');\n\tconst getThemeElements = () => Array.from(document.querySelectorAll('meta[name=theme-color]'));\n\n\tconst show = () => {\n\t\t// is visible, or busy becoming visible\n\t\tif (showing || !hidden) return;\n\n\t\t// now in 'showing' transition\n\t\t$$invalidate(19, showing = true);\n\n\t\t// store default viewport element values\n\t\tconst viewportElement = getViewPortElement() || h('meta', { name: 'viewport' });\n\n\t\tviewportDefaults = !viewportDefaults && viewportElement.getAttribute('content');\n\n\t\tviewportElement.setAttribute('content', viewportRules + ((/cover/).test(viewportDefaults)\n\t\t? ',viewport-fit=cover'\n\t\t: ''));\n\n\t\tif (!viewportElement.parentNode) head.append(viewportElement);\n\n\t\t// store default theme element values\n\t\tconst backgroundColor = getComputedStyle(root).getPropertyValue('--color-background');\n\n\t\tconst themeElements = getThemeElements();\n\n\t\tif (themeElements.length) {\n\t\t\t// store defaults\n\t\t\tthemeDefaults = themeElements.map(element => element.getAttribute('content'));\n\t\t} else {\n\t\t\t// create element\n\t\t\tconst themeElement = h('meta', { name: 'theme-color' });\n\n\t\t\thead.append(themeElement);\n\t\t\tthemeElements.push(themeElement);\n\t\t}\n\n\t\t// update colors\n\t\tthemeElements.forEach(element => element.setAttribute('content', `rgb(${backgroundColor})`));\n\n\t\tclearTimeout(showTimeoutId);\n\t\tshowTimeoutId = setTimeout(() => opacity.set(1), 250);\n\t};\n\n\tconst hide = () => {\n\t\t// is hiding or already hidden\n\t\tif (hiding || hidden) return;\n\n\t\t// if previous command was show, we need to prevent the timeout from kicking off\n\t\tclearTimeout(showTimeoutId);\n\n\t\t// now in 'hiding' transition\n\t\t$$invalidate(18, hiding = true);\n\n\t\t// get a reference to the viewport element, it should be there as we created it earlier,\n\t\t// we restore defaults if the viewport metatag was defined, if not, we destroy it\n\t\tconst viewportElement = getViewPortElement();\n\n\t\tif (viewportDefaults) viewportElement.setAttribute('content', viewportDefaults); else viewportElement.remove();\n\n\t\t// restore colors\n\t\tconst themeElements = getThemeElements();\n\n\t\tif (themeDefaults) {\n\t\t\tthemeElements.forEach((element, index) => {\n\t\t\t\telement.setAttribute('content', themeDefaults[index]);\n\t\t\t});\n\t\t} else themeElements.forEach(element => element.remove());\n\n\t\t// let's hide!\n\t\topacity.set(0);\n\t};\n\n\t//\n\t// handle soft keyboard impact on window height\n\t//\n\tlet focusOutTimer;\n\n\tlet focusInWindowHeight;\n\n\tconst handleFocusIn = e => {\n\t\t// test if is text input element\n\t\tif (!isTextField(e.target)) return;\n\n\t\t// now focussing a field\n\t\t$$invalidate(2, hasFocussedTextField = true);\n\n\t\tfocusInWindowHeight = windowHeight;\n\t};\n\n\tconst handleFocusOut = e => {\n\t\t// test if is text input element\n\t\tif (!isTextField(e.target)) return;\n\n\t\t// prevent accidentally setting two timers\n\t\tclearTimeout(focusOutTimer);\n\n\t\t// test if window height changed, if not, no soft keyboard appeared and we can set false to focus state immidiately\n\t\tif (focusInWindowHeight === windowHeight) {\n\t\t\t$$invalidate(2, hasFocussedTextField = false);\n\t\t} else // soft keyboard might have appeared, test for window height change before setting unfocus state\n\t\t{\n\t\t\tconst windowCurrentHeight = windowHeight;\n\t\t\trunWhen(() => windowHeight !== windowCurrentHeight, () => $$invalidate(2, hasFocussedTextField = false));\n\t\t}\n\t};\n\n\tconst runWhen = (test, cb) => {\n\t\tconst frame = () => {\n\t\t\tif (test()) {\n\t\t\t\tcb();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\trequestAnimationFrame(frame);\n\t\t};\n\n\t\trequestAnimationFrame(frame);\n\t};\n\n\t//\n\t// end soft keyboard logic\n\t//\n\t// prevent mousewheel from scrolling content behind modal\n\tconst handleWheel = e => {\n\t\tif (e.target && (/PinturaStage/).test(e.target.className)) e.preventDefault();\n\t};\n\n\t// handle escape to close modal\n\tconst handleKey = e => {\n\t\t// get key type\n\t\tconst { key } = e;\n\n\t\t// only deal with escape key\n\t\tif (!(/escape/i).test(key)) return;\n\n\t\t// don't close when in an input or textuarea\n\t\tconst targetElement = e.target;\n\n\t\tif (targetElement && (/input|textarea/i).test(targetElement.nodeName)) return;\n\n\t\t// only close if I'm the top modal\n\t\tconst modals = document.querySelectorAll('.PinturaModal');\n\n\t\tif (modals[modals.length - 1] !== root) return;\n\n\t\t// request close\n\t\tdispatch('close');\n\t};\n\n\t// this logic scales modal to fit viewport height\n\tlet windowHeight = 0;\n\n\tlet windowHeightComputed;\n\n\t// iOS measure actual page height so we can make optional use of available space\n\tlet measureElement;\n\n\tlet measureElementHeight = undefined;\n\n\tconst spawnMeasureElement = () => {\n\t\t// can't spawn more than one\n\t\tif (measureElement) return;\n\n\t\t// create measure element and append to body\n\t\tmeasureElement = h('div', {\n\t\t\tstyle: 'position:fixed;height:100vh;top:0'\n\t\t});\n\n\t\tbody.append(measureElement);\n\t};\n\n\tonMount(() => {\n\t\t// no need to run this logic if is not on iOS\n\t\tif (!preventFooterOverlapIfNeeded || !isIOS()) return;\n\n\t\t// will be used in first read to determine page height and bottom padding\n\t\tspawnMeasureElement();\n\t});\n\n\tafterUpdate(() => {\n\t\t// will only run on iOS\n\t\tif (!measureElement) return;\n\n\t\t// get height and store\n\t\t$$invalidate(21, measureElementHeight = measureElement.offsetHeight);\n\n\t\t// remove measure element\n\t\tmeasureElement.remove();\n\n\t\tmeasureElement = undefined;\n\t});\n\n\t//\n\t// document lock style for iOS 15.0\n\t//\n\tlet scrollOffsetY = undefined;\n\n\t// syncs height of doc lock with window\n\tconst syncHeight = () => doc.style.setProperty('--pintura-document-height', `${window.innerHeight}px`);\n\n\tconst toggleDocumentLock = isOpaque => {\n\t\tif (isOpaque) {\n\t\t\tscrollOffsetY = window.scrollY;\n\n\t\t\t// prevents safari on iOS 15.0 from scrolling body and showing footer on drag interaction\n\t\t\tdoc.classList.add('PinturaDocumentLock');\n\n\t\t\t// need to do this to sync height of initial window\n\t\t\tsyncHeight();\n\n\t\t\t// also sync on resize\n\t\t\twindow.addEventListener('resize', syncHeight);\n\t\t} else {\n\t\t\t// stop syncing height\n\t\t\twindow.removeEventListener('resize', syncHeight);\n\n\t\t\t// clean up\n\t\t\tdoc.classList.remove('PinturaDocumentLock');\n\n\t\t\tisNumber(scrollOffsetY) && window.scrollTo(0, scrollOffsetY);\n\t\t\tscrollOffsetY = undefined;\n\t\t}\n\t};\n\n\t//\n\t// clean up when removed\n\t//\n\tonDestroy(() => {\n\t\t// make sure no longer locking body element\n\t\tdoc.classList.remove('PinturaModalBodyLock');\n\n\t\t// clean up subs\n\t\topacityUnsub();\n\t});\n\n\tfunction onwindowresize() {\n\t\t$$invalidate(3, windowHeight = window_1.innerHeight);\n\t}\n\n\tfunction div_binding($$value) {\n\t\tbinding_callbacks[$$value ? 'unshift' : 'push'](() => {\n\t\t\troot = $$value;\n\t\t\t$$invalidate(0, root);\n\t\t});\n\t}\n\n\t$$self.$$set = $$props => {\n\t\tif ('root' in $$props) $$invalidate(0, root = $$props.root);\n\t\tif ('preventZoomViewport' in $$props) $$invalidate(12, preventZoomViewport = $$props.preventZoomViewport);\n\t\tif ('preventScrollBodyIfNeeded' in $$props) $$invalidate(13, preventScrollBodyIfNeeded = $$props.preventScrollBodyIfNeeded);\n\t\tif ('preventFooterOverlapIfNeeded' in $$props) $$invalidate(14, preventFooterOverlapIfNeeded = $$props.preventFooterOverlapIfNeeded);\n\t\tif ('class' in $$props) $$invalidate(15, klass = $$props.class);\n\t};\n\n\t$$self.$$.update = () => {\n\t\tif ($$self.$$.dirty[0] & /*showing, hiding, $opacity, hidden*/ 67895298) {\n\t\t\t$$invalidate(25, o = showing || hiding ? $opacity : hidden ? 0 : 1);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*preventZoomViewport*/ 4096) {\n\t\t\tviewportRules = 'width=device-width,height=device-height,initial-scale=1' + (preventZoomViewport\n\t\t\t? ',maximum-scale=1,user-scalable=0'\n\t\t\t: '');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*showing, hidden, hiding*/ 786434) {\n\t\t\t$$invalidate(22, isOpaque = !showing && !hidden && !hiding);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*hasFocussedTextField, windowHeight*/ 12) {\n\t\t\tif (!hasFocussedTextField) $$invalidate(20, windowHeightComputed = windowHeight);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*measureElementHeight, windowHeight*/ 2097160) {\n\t\t\t$$invalidate(24, isIOSFooterVisible = isNumber(measureElementHeight)\n\t\t\t? `--viewport-pad-footer:${measureElementHeight > windowHeight ? 0 : 1}`\n\t\t\t: '');\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*o, windowHeightComputed, isIOSFooterVisible*/ 51380224) {\n\t\t\t$$invalidate(5, style = `opacity:${o};height:${windowHeightComputed}px;--editor-modal:1;${isIOSFooterVisible}`);\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*klass*/ 32768) {\n\t\t\t$$invalidate(4, className = arrayJoin(['pintura-editor', 'PinturaModal', klass]));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*preventScrollBodyIfNeeded*/ 8192) {\n\t\t\t$$invalidate(23, scrollsBodyOnInteraction = preventScrollBodyIfNeeded && isIOS() && (/15_/).test(navigator.userAgent));\n\t\t}\n\n\t\tif ($$self.$$.dirty[0] & /*scrollsBodyOnInteraction, isOpaque*/ 12582912) {\n\t\t\tscrollsBodyOnInteraction && toggleDocumentLock(isOpaque);\n\t\t}\n\t};\n\n\treturn [\n\t\troot,\n\t\thidden,\n\t\thasFocussedTextField,\n\t\twindowHeight,\n\t\tclassName,\n\t\tstyle,\n\t\topacity,\n\t\thandleFocusIn,\n\t\thandleFocusOut,\n\t\thandleWheel,\n\t\thandleKey,\n\t\tspawnMeasureElement,\n\t\tpreventZoomViewport,\n\t\tpreventScrollBodyIfNeeded,\n\t\tpreventFooterOverlapIfNeeded,\n\t\tklass,\n\t\tshow,\n\t\thide,\n\t\thiding,\n\t\tshowing,\n\t\twindowHeightComputed,\n\t\tmeasureElementHeight,\n\t\tisOpaque,\n\t\tscrollsBodyOnInteraction,\n\t\tisIOSFooterVisible,\n\t\to,\n\t\t$opacity,\n\t\tonwindowresize,\n\t\tdiv_binding\n\t];\n}\n\nclass Modal extends SvelteComponent {\n\tconstructor(options) {\n\t\tsuper();\n\n\t\tinit(\n\t\t\tthis,\n\t\t\toptions,\n\t\t\tinstance,\n\t\t\tcreate_fragment,\n\t\t\tsafe_not_equal,\n\t\t\t{\n\t\t\t\troot: 0,\n\t\t\t\tpreventZoomViewport: 12,\n\t\t\t\tpreventScrollBodyIfNeeded: 13,\n\t\t\t\tpreventFooterOverlapIfNeeded: 14,\n\t\t\t\tclass: 15,\n\t\t\t\tshow: 16,\n\t\t\t\thide: 17\n\t\t\t},\n\t\t\tnull,\n\t\t\t[-1, -1]\n\t\t);\n\t}\n\n\tget root() {\n\t\treturn this.$$.ctx[0];\n\t}\n\n\tset root(root) {\n\t\tthis.$$set({ root });\n\t\tflush();\n\t}\n\n\tget preventZoomViewport() {\n\t\treturn this.$$.ctx[12];\n\t}\n\n\tset preventZoomViewport(preventZoomViewport) {\n\t\tthis.$$set({ preventZoomViewport });\n\t\tflush();\n\t}\n\n\tget preventScrollBodyIfNeeded() {\n\t\treturn this.$$.ctx[13];\n\t}\n\n\tset preventScrollBodyIfNeeded(preventScrollBodyIfNeeded) {\n\t\tthis.$$set({ preventScrollBodyIfNeeded });\n\t\tflush();\n\t}\n\n\tget preventFooterOverlapIfNeeded() {\n\t\treturn this.$$.ctx[14];\n\t}\n\n\tset preventFooterOverlapIfNeeded(preventFooterOverlapIfNeeded) {\n\t\tthis.$$set({ preventFooterOverlapIfNeeded });\n\t\tflush();\n\t}\n\n\tget class() {\n\t\treturn this.$$.ctx[15];\n\t}\n\n\tset class(klass) {\n\t\tthis.$$set({ class: klass });\n\t\tflush();\n\t}\n\n\tget show() {\n\t\treturn this.$$.ctx[16];\n\t}\n\n\tget hide() {\n\t\treturn this.$$.ctx[17];\n\t}\n}\n\n// we export a function that renders the view as to not export svelte component related code to outside the ui dir\nvar createModal = (options = {}, parent) => new Modal({\n target: parent || document.body,\n props: {\n class: options.class,\n preventZoomViewport: options.preventZoomViewport,\n preventScrollBodyIfNeeded: options.preventScrollBodyIfNeeded,\n preventFooterOverlapIfNeeded: options.preventFooterOverlapIfNeeded,\n },\n});\n\nvar _openEditor = (options = {}, parent) => {\n // set up pub/sub for the app layer\n const { sub, pub } = pubsub();\n const accessors = {};\n const modal = createModal(options, parent);\n const hide = () => {\n if (!modal.hide)\n return; // was destroyed\n modal.hide();\n };\n const show = () => {\n if (!modal.show)\n return; // was destroyed\n modal.show();\n };\n const view = initEditorView(modal.root);\n linkAccessors(view, accessors);\n // link up handle event\n accessors.handleEvent = noop$1;\n view.handleEvent = (type, detail) => {\n // need to do this so we pass correct accessors\n if (type === 'init')\n return accessors.handleEvent(type, accessors);\n // other events\n accessors.handleEvent(type, detail);\n };\n // route close request from view to modal\n view.on('close', async () => {\n const { willClose } = options;\n if (!willClose)\n return hide();\n const shouldClose = await willClose();\n if (shouldClose)\n hide();\n });\n const subscribe = (event, cb) => {\n // capture modal related events\n if (/show|hide/.test(event))\n return sub(event, cb);\n // route rest of events to view\n return view.on(event, cb);\n };\n const modalHandleEventUnsubs = ['show', 'hide'].map((type) => subscribe(type, (detail) => accessors.handleEvent(type, detail)));\n // cleans up view\n const destroy = () => {\n // unsub\n modalHandleEventUnsubs.forEach((unsub) => unsub());\n // remove\n hide();\n modal.$destroy();\n view.destroy();\n };\n defineMethods(accessors, {\n on: subscribe,\n destroy,\n hide,\n show,\n });\n // add element root query\n Object.defineProperty(accessors, 'modal', {\n get: () => modal.root,\n set: () => undefined,\n });\n // route modal events\n modal.$on('close', view.close);\n modal.$on('show', () => pub('show'));\n modal.$on('hide', () => {\n pub('hide');\n if (options.enableAutoDestroy !== false)\n destroy();\n });\n // modal behavior\n if (options.enableAutoHide !== false)\n view.on('process', hide);\n view.on('loadstart', show);\n // test if should\n if (options.enableButtonClose !== false)\n options.enableButtonClose = true;\n // delete class\n delete options.class;\n // update props\n Object.assign(accessors, options);\n return accessors;\n};\n\nvar _overlayEditor = (target, options) => {\n const editor = _appendEditor(target, {\n ...options,\n layout: 'overlay',\n });\n return editor;\n};\n\n// helper method to calculate end style params that are passed to lineEnd style functions\nconst getLineEndParams = (start, end, strokeWidth, isSolid) => {\n const direction = vectorCreate(end.x - start.x, end.y - start.y);\n const normal = vectorNormalize(direction);\n const scaledSize = 5 * strokeWidth;\n let scaledSizeHalf;\n // solid\n if (isSolid) {\n scaledSizeHalf = scaledSize * 0.5;\n }\n // stroke\n else {\n scaledSizeHalf = Math.ceil((scaledSize - 1) * 0.5);\n }\n const offset = vectorMultiply(vectorClone(normal), scaledSizeHalf);\n return {\n anchor: vectorClone(start),\n offset,\n normal,\n solid: isSolid,\n size: scaledSize,\n sizeHalf: scaledSizeHalf,\n };\n};\n// various available styles\nconst lineEndStyleArrow = ({ anchor, solid, normal, offset, size, sizeHalf, strokeWidth, strokeColor, strokeJoin, strokeCap, bitmap, }, anchorRef) => {\n const x = anchor.x;\n const y = anchor.y;\n const tipOffset = vectorMultiply(vectorClone(normal), size);\n const inset = vectorCreate(x + tipOffset.x, y + tipOffset.y);\n vectorMultiply(tipOffset, 0.55);\n if (solid) {\n // move back so arrow triangle overlaps with end of line (otherwise line sticks out of triangle tip)\n vectorAdd(anchorRef, offset);\n const arrowOffset = vectorMultiply(vectorClone(normal), sizeHalf * 0.5);\n return [\n {\n points: [\n vectorCreate(x - arrowOffset.x, y - arrowOffset.y),\n vectorCreate(inset.x - tipOffset.y, inset.y + tipOffset.x),\n vectorCreate(inset.x + tipOffset.y, inset.y - tipOffset.x),\n ],\n pathClose: true,\n backgroundColor: strokeColor,\n },\n ];\n }\n else {\n // this prevents trouble with sharp line rendering in webgl\n const p = vectorMultiply(vectorPerpendicular(vectorClone(normal)), 0.5);\n const tipLeft = vectorCreate(x - p.x, y - p.y);\n const tipRight = vectorCreate(x + p.x, y + p.y);\n return [\n {\n points: [\n vectorCreate(inset.x + tipOffset.y, inset.y - tipOffset.x),\n tipLeft,\n vectorCreate(x, y),\n tipRight,\n vectorCreate(inset.x - tipOffset.y, inset.y + tipOffset.x),\n ],\n pathClose: false,\n strokeWidth,\n strokeColor,\n strokeJoin,\n strokeCap,\n bitmap,\n },\n ];\n }\n};\nconst lineEndStyleCircle = ({ anchor, solid, offset, normal, sizeHalf, strokeWidth, strokeColor }, anchorRef) => {\n // update anchor point position\n vectorAdd(anchorRef, offset);\n // if solid, move line slightly towards circle as to make them overlap\n if (solid)\n vectorAdd(anchorRef, vectorInvert(vectorClone(normal)));\n return [\n {\n x: anchor.x,\n y: anchor.y,\n rx: sizeHalf,\n ry: sizeHalf,\n backgroundColor: solid ? strokeColor : undefined,\n strokeWidth: solid ? undefined : strokeWidth,\n strokeColor: solid ? undefined : strokeColor,\n },\n ];\n};\nconst lineEndStyleBar = ({ anchor, offset, strokeWidth, strokeColor, strokeJoin, strokeCap, bitmap, }) => {\n return [\n {\n points: [\n vectorCreate(anchor.x - offset.y, anchor.y + offset.x),\n vectorCreate(anchor.x + offset.y, anchor.y - offset.x),\n ],\n strokeWidth,\n strokeColor,\n strokeJoin,\n strokeCap,\n bitmap,\n },\n ];\n};\nconst lineEndStyleSquare = ({ anchor, solid, offset, normal, sizeHalf, strokeWidth, strokeColor }, anchorRef) => {\n // update anchor point position\n vectorAdd(anchorRef, offset);\n return [\n {\n x: anchor.x - sizeHalf,\n y: anchor.y - sizeHalf,\n width: sizeHalf * 2,\n height: sizeHalf * 2,\n rotation: vectorAngle(normal),\n backgroundColor: solid ? strokeColor : undefined,\n strokeWidth: solid ? undefined : strokeWidth,\n strokeColor: solid ? undefined : strokeColor,\n },\n ];\n};\n// this method parses the shape and checks if lineStart or lineEnd is being used\nconst createLineEndProcessor = (styles = {}) => (shape) => {\n if (!shape.lineStart && !shape.lineEnd)\n return;\n // resulting shapes\n const res = [];\n const { lineStart, lineEnd, strokeWidth, strokeColor, strokeJoin, strokeCap, bitmap } = shape;\n const start = vectorCreate(shape.x1, shape.y1);\n const end = vectorCreate(shape.x2, shape.y2);\n const points = [start, end];\n // handle lineStart\n if (lineStart) {\n const [style, solid] = lineStart.split('-');\n const process = styles[style];\n if (process) {\n const params = getLineEndParams(start, end, strokeWidth, !!solid);\n res.push(...process({\n ...params,\n strokeColor,\n strokeWidth,\n strokeJoin,\n strokeCap,\n bitmap,\n }, start));\n }\n }\n // handle lineEnd\n if (lineEnd) {\n const [style, solid] = lineEnd.split('-');\n const process = styles[style];\n if (process) {\n const params = getLineEndParams(end, start, strokeWidth, !!solid);\n res.push(...process({\n ...params,\n strokeColor,\n strokeWidth,\n strokeJoin,\n strokeCap,\n bitmap,\n }, end));\n }\n }\n return [\n // return inner path\n {\n points,\n strokeWidth,\n strokeColor,\n strokeJoin,\n strokeCap,\n bitmap,\n },\n // add line end styles\n ...res,\n ];\n};\n// the default line end styles available, can import and extend\nconst createDefaultLineEndStyles = () => ({\n arrow: lineEndStyleArrow,\n circle: lineEndStyleCircle,\n square: lineEndStyleSquare,\n bar: lineEndStyleBar,\n});\n\nconst safeFactor = (value, factor) => {\n const v = parseFloat(value) * factor;\n return isString(value) ? `${v}%` : v;\n};\nconst toValue = (value, total) => (isString(value) ? toPixelValue(value, total) : value);\nconst frameStyleSolid = (shape) => [\n {\n ...shape,\n frameStyle: 'line',\n frameInset: 0,\n frameOffset: 0,\n frameSize: shape.frameSize ? safeFactor(shape.frameSize, 2) : '2.5%',\n frameRadius: shape.frameRound ? safeFactor(shape.frameSize, 2) : 0,\n },\n];\nconst frameStyleNine = ({ width: contextWidth, height: contextHeight, frameImage, frameSize = '15%', frameOutset = 0, frameSlices = {\n x1: 0.15,\n y1: 0.15,\n x2: 0.85,\n y2: 0.85,\n}, }, { isPreview }) => {\n // need a frame image to render a frame\n if (!frameImage)\n return [];\n const contextSize = Math.sqrt(contextWidth * contextHeight);\n const size = toValue(frameSize, contextSize);\n const width = isPreview ? size : Math.round(size);\n const height = width;\n const outset = toValue(frameOutset, contextSize);\n const outsetDouble = outset * 2;\n const { x1, x2, y1, y2 } = frameSlices;\n const shapeCoordinates = {\n x0: 0,\n y0: 0,\n x1: width,\n y1: height,\n x2: contextWidth - width,\n y2: contextHeight - height,\n x3: contextWidth,\n y3: contextHeight,\n cw: width,\n ch: height,\n ew: contextWidth - width - width,\n eh: contextHeight - height - height,\n };\n const overlap = isPreview ? 1 : 0;\n const overlapDouble = overlap * 2;\n const expandsCanvas = outset > 0;\n const cornerGeneric = {\n expandsCanvas,\n width: shapeCoordinates.cw,\n height: shapeCoordinates.ch,\n backgroundImage: frameImage,\n };\n return [\n // edges\n {\n // t\n expandsCanvas,\n x: shapeCoordinates.x1 - overlap - outset,\n y: shapeCoordinates.y0 - outset,\n width: shapeCoordinates.ew + overlapDouble + outsetDouble,\n height: shapeCoordinates.ch,\n backgroundCorners: [\n { x: x1, y: 0 },\n { x: x2, y: 0 },\n { x: x2, y: y1 },\n { x: x1, y: y1 },\n ],\n backgroundImage: frameImage,\n },\n {\n // b\n expandsCanvas,\n x: shapeCoordinates.x1 - overlap - outset,\n y: shapeCoordinates.y2 + outset,\n width: shapeCoordinates.ew + overlapDouble + outsetDouble,\n height: shapeCoordinates.ch,\n backgroundCorners: [\n { x: x1, y: y2 },\n { x: x2, y: y2 },\n { x: x2, y: 1 },\n { x: x1, y: 1 },\n ],\n backgroundImage: frameImage,\n },\n {\n // l\n expandsCanvas,\n x: shapeCoordinates.x0 - outset,\n y: shapeCoordinates.y1 - overlap - outset,\n width: shapeCoordinates.cw,\n height: shapeCoordinates.eh + overlapDouble + outsetDouble,\n backgroundCorners: [\n { x: 0, y: y1 },\n { x: x1, y: y1 },\n { x: x1, y: y2 },\n { x: 0, y: y2 },\n ],\n backgroundImage: frameImage,\n },\n {\n // r\n expandsCanvas,\n x: shapeCoordinates.x2 + outset,\n y: shapeCoordinates.y1 - overlap - outset,\n width: shapeCoordinates.cw,\n height: shapeCoordinates.eh + overlapDouble + outsetDouble,\n backgroundCorners: [\n { x: x2, y: y1 },\n { x: 1, y: y1 },\n { x: 1, y: y2 },\n { x: x2, y: y2 },\n ],\n backgroundImage: frameImage,\n },\n // corners\n {\n // tl\n ...cornerGeneric,\n x: shapeCoordinates.x0 - outset,\n y: shapeCoordinates.y0 - outset,\n backgroundCorners: [\n { x: 0, y: 0 },\n { x: x1, y: 0 },\n { x: x1, y: y1 },\n { x: 0, y: y1 },\n ],\n },\n {\n // tr\n ...cornerGeneric,\n x: shapeCoordinates.x2 + outset,\n y: shapeCoordinates.y0 - outset,\n backgroundCorners: [\n { x: x2, y: 0 },\n { x: 1, y: 0 },\n { x: 1, y: y1 },\n { x: x2, y: y1 },\n ],\n },\n {\n // br\n ...cornerGeneric,\n x: shapeCoordinates.x2 + outset,\n y: shapeCoordinates.y2 + outset,\n backgroundCorners: [\n { x: x2, y: y2 },\n { x: 1, y: y2 },\n { x: 1, y: 1 },\n { x: x2, y: 1 },\n ],\n },\n {\n // bl\n ...cornerGeneric,\n x: shapeCoordinates.x0 - outset,\n y: shapeCoordinates.y2 + outset,\n backgroundCorners: [\n { x: 0, y: y2 },\n { x: x1, y: y2 },\n { x: x1, y: 1 },\n { x: 0, y: 1 },\n ],\n },\n ];\n};\nconst frameStyleLine = ({ x, y, width, height, frameInset = '3.5%', frameSize = '.25%', frameColor = [1, 1, 1], frameOffset = '5%', frameAmount = 1, frameRadius = 0, expandsCanvas = false, }, { isPreview }) => {\n const size = Math.sqrt(width * height);\n let frameSizeValue = toValue(frameSize, size);\n const frameInsetValue = toValue(frameInset, size);\n const frameOffsetValue = toValue(frameOffset, size);\n let center = 0;\n if (!isPreview) {\n frameSizeValue = Math.max(1, Math.round(frameSizeValue));\n center = frameSizeValue % 2 == 0 ? 0 : 0.5;\n }\n const r = toValue(safeFactor(frameRadius, frameAmount), size);\n return new Array(frameAmount).fill(undefined).map((_, index) => {\n const offset = frameOffsetValue * index;\n let left = x + frameInsetValue + offset;\n let top = y + frameInsetValue + offset;\n let right = x + width - frameInsetValue - offset;\n let bottom = y + height - frameInsetValue - offset;\n if (!isPreview) {\n left = Math.round(left);\n top = Math.round(top);\n right = Math.round(right);\n bottom = Math.round(bottom);\n }\n const radius = r > 0 ? r - offset : 0;\n return {\n x: left + center,\n y: top + center,\n width: right - left,\n height: bottom - top,\n cornerRadius: radius,\n strokeWidth: frameSizeValue,\n strokeColor: frameColor,\n expandsCanvas,\n };\n });\n};\nconst frameStyleEdge = ({ x, y, width, height, frameSize = '.25%', frameOffset = 0, frameInset = '2.5%', frameColor = [1, 1, 1], }, { isPreview }) => {\n const size = Math.sqrt(width * height);\n let frameSizeValue = toValue(frameSize, size);\n let frameInsetValue = toValue(frameInset, size);\n let frameOffsetValue = toValue(frameOffset, size);\n let center = 0;\n if (!isPreview) {\n frameSizeValue = Math.max(1, Math.round(frameSizeValue));\n frameInsetValue = Math.round(frameInsetValue);\n frameOffsetValue = Math.round(frameOffsetValue);\n center = frameSizeValue % 2 == 0 ? 0 : 0.5;\n }\n const offset = frameOffsetValue - frameInsetValue;\n const left = x + frameInsetValue + center;\n const top = y + frameInsetValue + center;\n const right = x + width - frameInsetValue - center;\n const bottom = y + height - frameInsetValue - center;\n return [\n // top\n {\n points: [vectorCreate(left + offset, top), vectorCreate(right - offset, top)],\n },\n {\n points: [vectorCreate(right, top + offset), vectorCreate(right, bottom - offset)],\n },\n {\n points: [vectorCreate(right - offset, bottom), vectorCreate(left + offset, bottom)],\n },\n {\n points: [vectorCreate(left, bottom - offset), vectorCreate(left, top + offset)],\n },\n ].map((shape) => {\n shape.strokeWidth = frameSizeValue;\n shape.strokeColor = frameColor;\n return shape;\n });\n};\nconst frameStyleHook = ({ x, y, width, height, frameSize = '.25%', frameInset = '2.5%', frameLength = '2.5%', frameColor = [1, 1, 1], }, { isPreview }) => {\n const size = Math.sqrt(width * height);\n let frameSizeValue = toValue(frameSize, size);\n let frameInsetValue = toValue(frameInset, size);\n let frameLengthValue = toValue(frameLength, size);\n let center = 0;\n if (!isPreview) {\n frameSizeValue = Math.max(1, Math.round(frameSizeValue));\n frameInsetValue = Math.round(frameInsetValue);\n frameLengthValue = Math.round(frameLengthValue);\n center = frameSizeValue % 2 == 0 ? 0 : 0.5;\n }\n const left = x + frameInsetValue + center;\n const top = y + frameInsetValue + center;\n const right = x + width - frameInsetValue - center;\n const bottom = y + height - frameInsetValue - center;\n return [\n // top\n {\n points: [\n vectorCreate(left, top + frameLengthValue),\n vectorCreate(left, top),\n vectorCreate(left + frameLengthValue, top),\n ],\n },\n {\n points: [\n vectorCreate(right - frameLengthValue, top),\n vectorCreate(right, top),\n vectorCreate(right, top + frameLengthValue),\n ],\n },\n {\n points: [\n vectorCreate(right, bottom - frameLengthValue),\n vectorCreate(right, bottom),\n vectorCreate(right - frameLengthValue, bottom),\n ],\n },\n {\n points: [\n vectorCreate(left + frameLengthValue, bottom),\n vectorCreate(left, bottom),\n vectorCreate(left, bottom - frameLengthValue),\n ],\n },\n ].map((shape) => {\n shape.strokeWidth = frameSizeValue;\n shape.strokeColor = frameColor;\n return shape;\n });\n};\nconst frameStylePolaroid = ({ x, y, width, height, frameColor = [1, 1, 1] }, { isPreview }) => {\n const size = Math.sqrt(width * height);\n const borderWidth = 0.1 * size;\n let chinHeight = 0.2 * size;\n let overlap = 0;\n const borderWidthHalf = 0.5 * borderWidth;\n if (!isPreview) {\n chinHeight = Math.ceil(chinHeight);\n }\n else {\n overlap = 1;\n }\n // always remove opacity\n frameColor.length = 3;\n return [\n // border\n {\n id: 'border',\n x: x - borderWidthHalf + overlap,\n y: y - borderWidthHalf + overlap,\n width: width + borderWidth - overlap * 2,\n height: height + chinHeight - overlap * 2,\n frameStyle: 'line',\n frameInset: 0,\n frameOffset: 0,\n frameSize: borderWidth,\n frameColor,\n expandsCanvas: true,\n },\n // chin\n {\n id: 'chin',\n x: x - borderWidthHalf,\n y: height - overlap,\n width: width + borderWidth,\n height: chinHeight,\n backgroundColor: frameColor,\n expandsCanvas: true,\n },\n ].filter(Boolean);\n};\nconst createFrameStyleProcessor = (styles = {}) => (shape, options) => {\n // handle solid frameStyle\n if (!hasProp(shape, 'frameStyle'))\n return;\n const style = shape.frameStyle;\n // get parser for style\n const process = styles[style];\n if (!process)\n return;\n // remove frameStyle property so we don't get endless loops\n const { frameStyle, ...shapeReadyToParse } = shape;\n return process(shapeReadyToParse, options);\n};\n// the default frame styles available, can import and extend\nconst createDefaultFrameStyles = () => ({\n solid: frameStyleSolid,\n hook: frameStyleHook,\n line: frameStyleLine,\n edge: frameStyleEdge,\n polaroid: frameStylePolaroid,\n nine: frameStyleNine,\n});\n\n// the default lineEnd parser to use\nconst createDefaultLineEndProcessors = () => createLineEndProcessor(createDefaultLineEndStyles());\nconst createDefaultFrameStyleProcessor = () => createFrameStyleProcessor(createDefaultFrameStyles());\nconst createDefaultShapeProcessors = () => [\n createDefaultFrameStyleProcessor(),\n createDefaultLineEndProcessors(),\n];\nconst createShapePreprocessor$1 = (processors) => {\n const processShape = (shape, options = { isPreview: true }) => {\n const res = processors\n .map((process) => {\n const res = process(shape, options);\n // processor wasn't a match?\n if (!res)\n return;\n return res.map((shape) => processShape(shape, options));\n })\n .filter(Boolean)\n .flat();\n return !res.length\n ? shape\n : res.flat().map((subshape, index) => {\n subshape.id = shape.id + '_' + index;\n return subshape;\n });\n };\n return processShape;\n};\n\n// prettier-ignore\n\nconst createDefaultImageReader = createDefaultImageReader$1;\nconst createDefaultImageWriter = createDefaultImageWriter$1;\nconst createDefaultMediaWriter = createDefaultMediaWriter$1;\n\nconst createDefaultImageOrienter = () => ({\n read: getImageOrientationFromFile,\n apply: orientImageData,\n});\nconst createDefaultImageScrambler = (configurationOptions = {}) => {\n // default configuration\n const { blurAmount, dataSizeScalar, scrambleAmount, backgroundColor } = configurationOptions;\n\n // as called from editor ui\n return (imageData, uiOptions) => {\n return imageDataScramble(imageData, {\n blurAmount,\n scrambleAmount,\n backgroundColor,\n ...uiOptions,\n dataSizeScalar: dataSizeScalar || uiOptions.dataSizeScalar,\n });\n };\n};\nconst createEditor = createImageEditor;\nconst getEditorProps = () => getEditorProps$1().concat(getEditorViewProps()); // private api for framework components\n\nconst createMarkupEditorToolbar = createToolbar;\nconst createMarkupEditorToolStyles = createToolStyles;\n\n// markup editor style controls\nconst createMarkupEditorShapeStyleControls = createShapeStyleControls;\n\n// a set of helper methods to handle shapes in a shape list\nconst getShapeById = (shapeList, shapeId) => shapeList.find((shape) => shape.id === shapeId);\n\nconst updateShapeById = (shapeList, shapeId, updater) =>\n shapeList.map((shape) => {\n if (shape.id !== shapeId) return shape;\n return updater(shape);\n });\n\nconst markup_editor_defaults = {\n markupEditorToolbar: createToolbar(),\n markupEditorToolStyles: createToolStyles(),\n markupEditorShapeStyleControls: createShapeStyleControls(),\n};\nconst setPlugins = setEditorViewPlugins;\n\nconst plugin_crop = _plugin_crop;\nconst plugin_filter = _plugin_filter;\nconst plugin_finetune = _plugin_finetune;\nconst plugin_annotate = _plugin_annotate;\nconst plugin_decorate = _plugin_decorate;\nconst plugin_sticker = _plugin_sticker;\nconst plugin_frame = _plugin_frame;\nconst plugin_redact = _plugin_redact;\nconst plugin_resize = _plugin_resize;\nconst plugin_fill = _plugin_fill;\nconst plugin_retouch = _plugin_retouch;\n\nconst plugin_finetune_defaults = _plugin_finetune_defaults;\nconst plugin_filter_defaults = _plugin_filter_defaults;\nconst plugin_frame_defaults = _plugin_frame_defaults;\n\nconst locale_en_gb = _locale_en_gb;\nconst markup_editor_locale_en_gb = MarkupEditor;\n\nconst plugin_crop_locale_en_gb = _plugin_crop_locale_en_gb;\nconst plugin_fill_locale_en_gb = _plugin_fill_locale_en_gb;\nconst plugin_filter_locale_en_gb = _plugin_filter_locale_en_gb;\nconst plugin_finetune_locale_en_gb = _plugin_finetune_locale_en_gb;\nconst plugin_resize_locale_en_gb = _plugin_resize_locale_en_gb;\nconst plugin_decorate_locale_en_gb = _plugin_decorate_locale_en_gb;\nconst plugin_annotate_locale_en_gb = _plugin_annotate_locale_en_gb;\nconst plugin_sticker_locale_en_gb = _plugin_sticker_locale_en_gb;\nconst plugin_frame_locale_en_gb = _plugin_frame_locale_en_gb;\nconst plugin_redact_locale_en_gb = _plugin_redact_locale_en_gb;\nconst plugin_retouch_locale_en_gb = _plugin_retouch_locale_en_gb;\n\nconst elementsToEditor = (factory, targets, options = {}) => {\n const elements = isString(targets) ? Array.from(document.querySelectorAll(targets)) : targets;\n return elements.filter(Boolean).map((element) => factory(element, deepCopy(options)));\n};\n\nconst appendEditor = _appendEditor;\nconst openEditor = _openEditor;\nconst overlayEditor = _overlayEditor;\nconst appendEditors = (targets, options) => elementsToEditor(appendEditor, targets, options);\n\nconst createShapePreprocessor = createShapePreprocessor$1;\n\nconst createDefaultShapePreprocessor = (customProcessors = []) => {\n return createShapePreprocessor$1([...createDefaultShapeProcessors(), ...customProcessors]);\n};\n\n//\n// creating default editors\n//\n\nconst getEditorDefaultReadWriteOptions = (options = {}) => {\n let readerProps = undefined;\n if (!Array.isArray(options.imageReader)) {\n readerProps = options.imageReader;\n delete options.imageReader;\n }\n\n let imageWriter;\n if (!Array.isArray(options.imageWriter)) {\n if (isFunction(options.imageWriter)) {\n imageWriter = options.imageWriter;\n } else {\n imageWriter = createDefaultImageWriter(options.imageWriter);\n }\n delete options.imageWriter;\n } else {\n imageWriter = createDefaultImageWriter();\n }\n\n let scramblerProps = undefined;\n if (!isFunction(options.imageScrambler)) {\n scramblerProps = options.imageScrambler;\n delete options.imageScrambler;\n }\n\n return {\n // default handling of images\n imageReader: createDefaultImageReader(readerProps),\n imageWriter,\n imageOrienter: createDefaultImageOrienter(),\n imageScrambler: createDefaultImageScrambler(scramblerProps),\n };\n};\n\nconst processDefaultImage = (src, options = {}) => {\n // get default read/write options object\n const defaultReadWriteOptions = getEditorDefaultReadWriteOptions(options);\n\n // handle custom shape preprocessorss\n const shapePreprocessor =\n typeof options.shapePreprocessor === 'function'\n ? options.shapePreprocessor\n : createDefaultShapePreprocessor(options.shapePreprocessor);\n delete options.shapePreprocessor;\n\n // create huge config object\n options = mergeObjects([\n {\n // set reader / writer / orienter\n ...defaultReadWriteOptions,\n\n // shape preprocessor\n shapePreprocessor,\n\n // stickers stick to image by default\n stickerStickToImage: true,\n },\n options,\n ]);\n return processImage(src, options);\n};\n\nconst getEditorDefaults = (options = {}) => {\n // load all plugins\n setEditorViewPlugins(\n plugin_crop,\n plugin_filter,\n plugin_finetune,\n plugin_annotate,\n plugin_decorate,\n plugin_sticker,\n plugin_frame,\n plugin_redact,\n plugin_resize,\n plugin_fill\n );\n\n const utils = [\n 'trim',\n 'crop',\n 'filter',\n 'finetune',\n 'retouch',\n 'annotate',\n 'decorate',\n 'sticker',\n 'fill',\n 'frame',\n 'redact',\n 'resize',\n ];\n\n // get default read/write options object\n const defaultReadWriteOptions = getEditorDefaultReadWriteOptions(options);\n\n // locale\n const locale = {\n ...locale_en_gb,\n ...markup_editor_locale_en_gb,\n ...plugin_crop_locale_en_gb,\n ...plugin_fill_locale_en_gb,\n ...plugin_filter_locale_en_gb,\n ...plugin_finetune_locale_en_gb,\n ...plugin_frame_locale_en_gb,\n ...plugin_redact_locale_en_gb,\n ...plugin_resize_locale_en_gb,\n ...plugin_decorate_locale_en_gb,\n ...plugin_annotate_locale_en_gb,\n ...plugin_sticker_locale_en_gb,\n ...options.locale,\n };\n delete options.locale;\n\n // handle custom shape preprocessorss\n const shapePreprocessor =\n typeof options.shapePreprocessor === 'function'\n ? options.shapePreprocessor\n : createDefaultShapePreprocessor(options.shapePreprocessor);\n delete options.shapePreprocessor;\n\n // no functions in markupEditorShapeStyleControls, need to init\n if (options.markupEditorShapeStyleControls) {\n // is shorthand when every value is either an array (item, options) or object and all options are non functions\n const isShorthand = Object.entries(options.markupEditorShapeStyleControls).every(\n ([key, value]) => /Options$/.test(key) || !Array.isArray(value)\n );\n\n if (isShorthand) {\n options.markupEditorShapeStyleControls = createMarkupEditorShapeStyleControls({\n ...options.markupEditorShapeStyleControls,\n });\n }\n }\n\n // create huge config object\n return mergeObjects([\n {\n // set reader / writer / orienter\n ...defaultReadWriteOptions,\n\n // shape preprocessor\n shapePreprocessor,\n\n // default utils\n utils,\n\n // default plugin options\n ...plugin_finetune_defaults,\n ...plugin_filter_defaults,\n ...plugin_frame_defaults,\n ...markup_editor_defaults,\n\n // stickers stick to image by default\n stickerStickToImage: true,\n\n // locale\n locale,\n },\n options,\n ]);\n};\n\nconst defineCustomElements = async (options = {}) => {\n const elements = await _defineCustomElements();\n elements.forEach((editor) => Object.assign(editor, deepCopy(options)));\n return elements;\n};\n\nconst defineDefaultCustomElements = (options) =>\n defineCustomElements(getEditorDefaults(options));\n\nconst openDefaultEditor = (options, parent) =>\n openEditor(getEditorDefaults(options), parent);\n\nconst appendDefaultEditor = (element, options) =>\n appendEditor(element, getEditorDefaults(options));\n\nconst overlayDefaultEditor = (element, options) =>\n overlayEditor(element, getEditorDefaults(options));\n\nconst appendDefaultEditors = (targets, options) =>\n elementsToEditor(appendDefaultEditor, targets, options);\n\n// selection to mask related\nconst toSelectionShape = (shape, scalar, fill) => {\n const clone = { ...shape };\n shapeScale(clone, scalar);\n if (clone.width || clone.rx) {\n clone.backgroundColor = fill;\n } else if (clone.points && !clone.pathClose) {\n clone.strokeJoin = 'round';\n clone.strokeCap = 'round';\n clone.strokeColor = fill;\n } else if (clone.points) {\n clone.backgroundColor = fill;\n clone.strokeColor = [0, 0, 0, 0];\n }\n return clone;\n};\n\nconst selectionToMask = (selection, imageSize, imageState, options) =>\n new Promise(async (resolve, reject) => {\n const {\n // or 'blob'\n format = 'canvas',\n\n // default black background\n backgroundColor = [0, 0, 0],\n\n // default white fill, set to undefined or [x,x,x,0] for transparent\n foregroundColor = [1, 1, 1],\n\n // if is 'mask' returns mask canvas, if is 'image', returns image size canvas\n scope = 'mask',\n\n // no padding around mask\n padding = 0,\n\n // maximum size of the mask image\n maxSize = imageSize,\n\n // resize to this size\n targetSize = undefined,\n\n // force output to square\n forceSquareCanvas = false,\n\n // higher is faster but less precise\n precision = 7,\n } = options || {};\n\n const { flipX, flipY, rotation } = imageState;\n\n const SELECTION_MAX_SIZE = 2048;\n const selectionScalar = Math.min(1, SELECTION_MAX_SIZE / imageSize.width);\n\n const imageSizeScaled = sizeScale({ ...imageSize }, selectionScalar);\n\n const rotatedSize = sizeRotate({ ...imageSize }, rotation);\n\n const rotatedSizeScaled = sizeRotate({ ...imageSizeScaled }, rotation);\n\n const rotatedCrop = {\n x: (imageSizeScaled.width - rotatedSizeScaled.width) * 0.5,\n y: (imageSizeScaled.height - rotatedSizeScaled.height) * 0.5,\n ...rotatedSizeScaled,\n };\n\n // shared canvas options\n const isTransparentMaskFill = foregroundColor === undefined || foregroundColor[3] === 0;\n const selectionFill = isTransparentMaskFill ? [1, 1, 1] : foregroundColor;\n const canvasOptions = {\n imageAnnotation: selection.map((shape) =>\n toSelectionShape(shape, selectionScalar, selectionFill)\n ),\n imageBackgroundColor: scope === 'image' ? [0, 0, 0] : undefined,\n imageCropLimitToImage: false,\n imageCrop: rotatedCrop,\n imageFlipX: flipX,\n imageFlipY: flipY,\n imageRotation: rotation,\n imageWriter: {\n format: 'canvas',\n },\n };\n\n const { dest: canvas } = await processDefaultImage(h('canvas', imageSizeScaled), {\n ...canvasOptions,\n });\n\n const ctx = canvas.getContext('2d', {\n desynchronized: true,\n willReadFrequently: true,\n });\n\n // get rect bounds\n let maskRect;\n {\n const MSI = Number.MAX_SAFE_INTEGER;\n\n const { width, height } = canvas;\n const imageData = ctx.getImageData(0, 0, width, height);\n const data = imageData.data;\n\n let p = Math.max(1, parseInt(precision, 10));\n let y, x;\n let xMax = width - p;\n let yMax = height - p;\n let [t, r, b, l] = [MSI, -MSI, -MSI, MSI];\n\n for (y = 0; y <= yMax; y += p) {\n for (x = 0; x <= xMax; x += p) {\n const index = (x + y * width) * 4;\n const a = data[index + 3];\n\n // is transparent skip to next pixel (use 32 because 0 is too strict when taking into account Pintura watermark)\n if (a <= 32) continue;\n\n // opaque\n if (x < l) l = x;\n else if (x > r) r = x;\n if (y < t) t = y;\n else if (y > b) b = y;\n }\n }\n\n const boundsRect = rectCreateFromBounds([\n t - precision,\n r + precision,\n b + precision,\n l - precision,\n ]);\n\n const boundsRectCenter = rectCenter(boundsRect);\n\n const maskWidth = Math.min(boundsRect.width, maxSize.width);\n const maskHeight = Math.min(boundsRect.height, maxSize.height);\n\n maskRect = rectCreate(\n boundsRectCenter.x - maskWidth * 0.5,\n boundsRectCenter.y - maskHeight * 0.5,\n maskWidth,\n maskHeight\n );\n }\n\n // scale\n rectScale$1(maskRect, 1 / selectionScalar, vectorCreateEmpty());\n\n let outputCanvas;\n let paddingX = padding;\n let paddingY = padding;\n\n if (scope === 'mask') {\n // create mask canvas for rect\n const canvasSize = sizeCreateFromRect(maskRect);\n\n // apply default padding\n canvasSize.width += paddingX * 2;\n canvasSize.height += paddingY * 2;\n\n // should force canvas to square\n if (forceSquareCanvas) {\n const size = Math.max(canvasSize.width, canvasSize.height);\n paddingX += (size - canvasSize.width) * 0.5;\n paddingY += (size - canvasSize.height) * 0.5;\n canvasSize.width = size;\n canvasSize.height = size;\n }\n\n // scale mask rect\n let scalar = 1;\n if (targetSize) {\n scalar = Math.min(\n targetSize.width / canvasSize.width,\n targetSize.height / canvasSize.height,\n 1\n );\n }\n\n sizeScale(canvasSize, scalar);\n const maskCanvas = h('canvas', canvasSize);\n const maskCtx = maskCanvas.getContext('2d');\n maskCtx.fillStyle = colorArrayToRGBA(backgroundColor);\n maskCtx.fillRect(0, 0, maskCanvas.width, maskCanvas.height);\n if (isTransparentMaskFill) maskCtx.globalCompositeOperation = 'destination-out';\n maskCtx.scale(scalar, scalar);\n maskCtx.drawImage(\n canvas,\n -maskRect.x + paddingX,\n -maskRect.y + paddingY,\n rotatedSize.width,\n rotatedSize.height\n );\n outputCanvas = maskCanvas;\n } else {\n // use image as mask\n outputCanvas = canvas;\n }\n\n const sizeRect = rectCreateFromSize(imageSize);\n sizeRect.x += (rotatedSize.width - imageSize.width) * 0.5;\n sizeRect.y += (rotatedSize.height - imageSize.height) * 0.5;\n const [tl] = rectRotate(sizeRect, rotation);\n const maskRectCenter = rectCenter({ ...maskRect });\n const maskRectOffset = vectorCreate(maskRectCenter.x - tl.x, maskRectCenter.y - tl.y);\n\n maskRect.x =\n Math.cos(rotation) * maskRectOffset.x +\n Math.sin(rotation) * maskRectOffset.y -\n maskRect.width * 0.5;\n\n maskRect.y =\n Math.cos(rotation) * maskRectOffset.y -\n Math.sin(rotation) * maskRectOffset.x -\n maskRect.height * 0.5;\n\n // Now create shape\n const maskShape = { ...maskRect };\n maskShape.x = maskRect.x;\n maskShape.y = maskRect.y;\n\n // Apply flip and rotation\n if (flipX && flipY) {\n maskShape.flipX = true;\n maskShape.flipY = true;\n maskShape.rotation = -rotation;\n } else if (flipX) {\n maskShape.flipX = true;\n maskShape.rotation = rotation;\n } else if (flipY) {\n maskShape.flipY = true;\n maskShape.rotation = rotation;\n } else {\n maskShape.rotation = -rotation;\n }\n\n // Correct offset based on flip\n if (flipX || flipY) {\n const computedMaskRectCenter = {\n x: maskShape.x + maskShape.width * 0.5,\n y: maskShape.y + maskShape.height * 0.5,\n };\n\n if (flipX) {\n computedMaskRectCenter.x = Math.abs(imageSize.width - computedMaskRectCenter.x);\n maskShape.x = computedMaskRectCenter.x - maskShape.width * 0.5; // maskShape.flipX = true;\n }\n\n if (flipY) {\n computedMaskRectCenter.y = Math.abs(imageSize.height - computedMaskRectCenter.y);\n maskShape.y = computedMaskRectCenter.y - maskShape.height * 0.5;\n }\n }\n\n // apply padding\n if (paddingX || paddingY) {\n const xo = paddingX / (maskRect.width + paddingX * 2);\n const yo = paddingY / (maskRect.height + paddingY * 2);\n\n maskShape.backgroundCorners = [\n { x: xo, y: yo },\n { x: 1 - xo, y: yo },\n { x: 1 - xo, y: 1 - yo },\n { x: xo, y: 1 - yo },\n ];\n\n maskRect.x -= paddingX;\n maskRect.y -= paddingY;\n maskRect.width += paddingX * 2;\n maskRect.height += paddingY * 2;\n }\n\n // result\n const res = {\n canvas: outputCanvas,\n rect: maskRect,\n shape: maskShape,\n };\n\n // return as blob\n if (format === 'blob') {\n outputCanvas.toBlob((blob) =>\n resolve({\n ...res,\n blob,\n })\n );\n return;\n }\n\n // restore\n resolve({\n ...res,\n blob: undefined,\n });\n });\n\nconst createRetouchShapeDraft = (id = undefined, rect = {}) => ({\n // id of shape\n id,\n\n // set rect to bounds of selection\n ...rect,\n\n // style of selection\n selectionStyle: 'hook',\n\n // disable everything\n disableStyle: ['backgroundColor', 'cornerRadius', 'opacity', 'strokeWidth', 'strokeColor'],\n disableFlip: true,\n disableReorder: true,\n disableMove: true,\n disableRotate: true,\n disableDuplicate: true,\n disableSelect: true,\n});\n\nconst applyLoadStartState = (shape) => {\n // now loading\n Object.assign(shape, {\n status: 'loading',\n cornerRadius: 15,\n strokeWidth: 1.5,\n strokeColor: [0, 0, 0, 0.25],\n backgroundColor: [0, 0, 0, 0.1],\n selectionOpacity: 0,\n });\n\n return shape;\n};\n\nconst applyLoadCompleteState = (shape) => {\n Object.assign(shape, {\n selectionOpacity: 1,\n cornerRadius: 0,\n strokeWidth: 0,\n strokeColor: [0, 0, 0, 0],\n backgroundColor: [0, 0, 0, 0],\n });\n\n // status no longer needed\n if (shape.status !== 'error') delete shape.status;\n\n return shape;\n};\n\nconst createRetouchShape = async (\n imageFile,\n imageSize,\n imageState,\n selection,\n inpaint,\n options\n) => {\n const {\n // current\n retouches = [],\n\n // limit mask to this size (from center of mask shapes)\n maxSize = imageSize,\n\n // resize mask to this size if is bigger\n targetSize = undefined,\n\n // extra padding around mask area\n padding = 0,\n\n // image format (png or empty for use input)\n mimeType = undefined,\n\n // foreground color of mask\n foregroundColor,\n\n // mask format\n maskFormat = 'blob', // or 'canvas'\n\n // image format\n imageFormat = 'blob', // or 'canvas'\n\n // enforces a square image data canvas\n forceSquareCanvas = false,\n\n // hooks for ui updates\n didCreateDraft = () => undefined,\n } = options || {};\n\n const imageSelection = [...selection];\n const imageRetouches = [...retouches];\n\n // so we can cancel the process\n const controller = new AbortController();\n\n // draw mask\n const {\n blob: maskBlob,\n canvas: maskCanvas,\n rect: computedMaskRect,\n shape: maskShape,\n } = await selectionToMask(imageSelection, imageSize, imageState, {\n scope: 'mask',\n format: maskFormat,\n padding,\n maxSize,\n targetSize,\n forceSquareCanvas,\n foregroundColor,\n });\n\n const retouchShape = createRetouchShapeDraft(getUniqueId(), {\n ...maskShape,\n });\n\n applyLoadStartState(retouchShape);\n\n // shape is ready\n didCreateDraft(retouchShape, {\n selection: imageSelection,\n });\n\n // format\n let imageWriterDefinition = {};\n if (mimeType || targetSize || imageFormat === 'canvas') {\n imageWriterDefinition = {\n imageWriter: {},\n };\n if (mimeType) imageWriterDefinition.imageWriter.mimeType = mimeType;\n if (targetSize) imageWriterDefinition.imageWriter.targetSize = targetSize;\n if (imageFormat) imageWriterDefinition.imageWriter.format = imageFormat;\n }\n\n // generate image\n const { flipX, flipY, rotation } = imageState;\n const { dest: imageOutput } = await processDefaultImage(imageFile, {\n // need to apply transforms so image data is oriented correctly (might impact inpainting)\n imageFlipX: flipX,\n imageFlipY: flipY,\n imageRotation: rotation,\n\n // rect to crop\n imageCrop: computedMaskRect,\n\n // we draw current manipulation shapes\n imageManipulation: imageRetouches,\n\n // can crop outside image\n imageCropLimitToImage: false,\n\n // optional image writer\n ...imageWriterDefinition,\n });\n\n // get results\n let status;\n try {\n await inpaint(imageOutput, maskBlob || maskCanvas, {\n shape: retouchShape,\n controller,\n });\n status = 'ok';\n } catch {\n status = 'error';\n }\n\n // done!\n return applyLoadCompleteState({\n ...retouchShape,\n\n // now ready\n status,\n\n // can now select the shape\n disableSelect: false,\n });\n};\n\nexport { appendDefaultEditor, appendDefaultEditors, appendEditor, appendEditors, appendNode, blobToFile, canvasToBlob, colorStringToColorArray, createDefaultColorOptions, createDefaultFontFamilyOptions, createDefaultFontScaleOptions, createDefaultFontSizeOptions, createDefaultFontStyleOptions, createDefaultFrameStyles, createDefaultImageOrienter, createDefaultImageReader, createDefaultImageScrambler, createDefaultImageWriter, createDefaultLineEndStyleOptions, createDefaultLineEndStyles, createDefaultLineHeightOptions, createDefaultLineHeightScaleOptions, createDefaultMediaWriter, createDefaultShapePreprocessor, createDefaultStrokeScaleOptions, createDefaultStrokeWidthOptions, createDefaultTextAlignOptions, createEditor, createFrameStyleProcessor, createLineEndProcessor, createBackgroundColorControl as createMarkupEditorBackgroundColorControl, createBrushSizeControl as createMarkupEditorBrushSizeControl, createColorControl as createMarkupEditorColorControl, createColorOptions as createMarkupEditorColorOptions, createFontColorControl as createMarkupEditorFontColorControl, createFontFamilyControl as createMarkupEditorFontFamilyControl, createFontFamilyOptions as createMarkupEditorFontFamilyOptions, createFontScaleOptions as createMarkupEditorFontScaleOptions, createFontSizeControl as createMarkupEditorFontSizeControl, createFontSizeOptions as createMarkupEditorFontSizeOptions, createFontStyleControl as createMarkupEditorFontStyleControl, createFontStyleOptions as createMarkupEditorFontStyleOptions, createLineEndStyleControl as createMarkupEditorLineEndStyleControl, createLineEndStyleOptions as createMarkupEditorLineEndStyleOptions, createLineHeightControl as createMarkupEditorLineHeightControl, createLineHeightOptions as createMarkupEditorLineHeightOptions, createLineHeightScaleOptions as createMarkupEditorLineHeightScaleOptions, createLineStartStyleControl as createMarkupEditorLineStartStyleControl, createOptionControl as createMarkupEditorOptionControl, createOptionsControl as createMarkupEditorOptionsControl, createSelectionModeControl as createMarkupEditorSelectionModeControl, createSelectionToolStyles as createMarkupEditorSelectionToolStyles, createSelectionTools as createMarkupEditorSelectionTools, createMarkupEditorShapeStyleControls, createStrokeColorControl as createMarkupEditorStrokeColorControl, createStrokeScaleOptions as createMarkupEditorStrokeScaleOptions, createStrokeWidthControl as createMarkupEditorStrokeWidthControl, createStrokeWidthOptions as createMarkupEditorStrokeWidthOptions, createTextAlignControl as createMarkupEditorTextAlignControl, createToolStyle as createMarkupEditorToolStyle, createMarkupEditorToolStyles, createMarkupEditorToolbar, createNode, createRetouchShape, createShapePreprocessor, defineCustomElements, defineDefaultCustomElements, degToRad, dispatchEditorEvents, brightness as effectBrightness, clarity as effectClarity, contrast as effectContrast, exposure as effectExposure, gamma as effectGamma, saturation as effectSaturation, temperature as effectTemperature, vignette as effectVignette, chrome as filterChrome, cold as filterCold, fade as filterFade, invert as filterInvert, monoDefault as filterMonoDefault, monoNoir as filterMonoNoir, monoStark as filterMonoStark, monoWash as filterMonoWash, pastel as filterPastel, sepiaBlues as filterSepiaBlues, sepiaColor as filterSepiaColor, sepiaDefault as filterSepiaDefault, sepiaRust as filterSepiaRust, warm as filterWarm, findNode, edgeCross as frameEdgeCross, edgeOverlap as frameEdgeOverlap, edgeSeparate as frameEdgeSeparate, hook as frameHook, lineMultiple as frameLineMultiple, lineSingle as frameLineSingle, polaroid as framePolaroid, solidRound as frameSolidRound, solidSharp as frameSolidSharp, getEditorDefaults, getEditorProps, getShapeById, getUniqueId, imageStateToCanvas, insertNodeAfter, insertNodeBefore, isModernBrowser as isSupported, legacyDataToImageState, locale_en_gb, markup_editor_defaults, markup_editor_locale_en_gb, naturalAspectRatioToNumber, openDefaultEditor, openEditor, overlayDefaultEditor, overlayEditor, plugin_annotate, plugin_annotate_locale_en_gb, plugin_crop, plugin_crop_locale_en_gb, plugin_decorate, plugin_decorate_locale_en_gb, plugin_fill, plugin_fill_locale_en_gb, plugin_filter, plugin_filter_defaults, plugin_filter_locale_en_gb, plugin_finetune, plugin_finetune_defaults, plugin_finetune_locale_en_gb, plugin_frame, plugin_frame_defaults, plugin_frame_locale_en_gb, plugin_redact, plugin_redact_locale_en_gb, plugin_resize, plugin_resize_locale_en_gb, plugin_retouch, plugin_retouch_locale_en_gb, plugin_sticker, plugin_sticker_locale_en_gb, processDefaultImage, processImage, removeNode, selectionToMask, setPlugins, shapeGetCenter, shapeGetLength, shapeGetLevel, supportsWebGL, updateNode, updateShapeById };\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';\nimport { dispatchEditorEvents, appendEditor, openEditor, overlayEditor } from '@pqina/pintura';\n\nclass PinturaEditorAbstractComponent {\n constructor(element, zone) {\n this.unsubs = [];\n // A shortcut to assign multiple props at once\n this.options = undefined;\n // Events\n this.init = new EventEmitter();\n this.loadstart = new EventEmitter();\n this.loadabort = new EventEmitter();\n this.loaderror = new EventEmitter();\n this.loadprogress = new EventEmitter();\n this.load = new EventEmitter();\n this.processstart = new EventEmitter();\n this.processabort = new EventEmitter();\n this.processerror = new EventEmitter();\n this.processprogress = new EventEmitter();\n this.process = new EventEmitter();\n this.update = new EventEmitter();\n this.undo = new EventEmitter();\n this.redo = new EventEmitter();\n this.revert = new EventEmitter();\n this.writehistory = new EventEmitter();\n this.destroy = new EventEmitter();\n this.show = new EventEmitter();\n this.hide = new EventEmitter();\n this.close = new EventEmitter();\n this.ready = new EventEmitter();\n this.loadpreview = new EventEmitter();\n this.addshape = new EventEmitter();\n this.selectshape = new EventEmitter();\n this.updateshape = new EventEmitter();\n this.removeshape = new EventEmitter();\n this.markuptap = new EventEmitter();\n this.markupzoom = new EventEmitter();\n this.markuppan = new EventEmitter();\n this.zoom = new EventEmitter();\n this.pan = new EventEmitter();\n this.selectstyle = new EventEmitter();\n this.selectutil = new EventEmitter();\n this.selectcontrol = new EventEmitter();\n // EventHandlerNonNull\n this.routeEvent = (e) => {\n // @ts-ignore\n const emitter = this[e.type.split(':')[1]];\n if (!emitter)\n return;\n emitter.emit(e.detail);\n };\n this._initialChanges = {};\n this.element = element;\n this.zone = zone;\n }\n get history() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.history;\n }\n get imageSize() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageSize;\n }\n get imageAspectRatio() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageAspectRatio;\n }\n get imageCropSize() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageCropSize;\n }\n get imageCropRectAspectRatio() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageCropRectAspectRatio;\n }\n get imageFile() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageFile;\n }\n get imageLoadState() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageLoadState;\n }\n get imageProcessState() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageProcessState;\n }\n get imageRotationRange() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.imageRotationRange;\n }\n // map functions\n loadImage(src, options) {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.loadImage(src, options);\n }\n editImage(src, options) {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.editImage(src, options);\n }\n updateImage(src) {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.updateImage(src);\n }\n updateImagePreview(src) {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.updateImagePreview(src);\n }\n abortLoadImage() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.abortLoadImage();\n }\n removeImage() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.removeImage();\n }\n processImage(src, options) {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.processImage(src, options);\n }\n abortProcessImage() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.abortProcessImage();\n }\n closeEditor() {\n var _a;\n return (_a = this.editor) === null || _a === void 0 ? void 0 : _a.close();\n }\n initEditor(element, props) {\n // @ts-ignore\n return;\n }\n ngAfterViewInit() {\n this.element.nativeElement.classList.add('PinturaRootWrapper');\n // will block angular from listening to events inside the editor\n this.zone.runOutsideAngular(() => {\n // create editor instance\n this.editor = this.initEditor(this.element.nativeElement, Object.assign({}, \n // deprecated options object\n this.options, \n // new changes object\n this._initialChanges));\n // route events to component native element\n this.unsubs = dispatchEditorEvents(this.editor, this.element.nativeElement);\n });\n // route events\n Object.keys(this)\n // @ts-ignore\n .filter((key) => this[key] instanceof EventEmitter)\n .forEach((key) => {\n this.element.nativeElement.addEventListener(`pintura:${key}`, this.routeEvent);\n });\n }\n ngOnChanges(changes) {\n // turn into options object ready to be assigned to editor\n const options = Object.entries(changes).reduce((options, [prop, change]) => {\n // @ts-ignore\n options[prop] = change.currentValue;\n return options;\n }, {});\n // no editor yet, let's store the object for when the editor loads\n if (!this.editor) {\n this._initialChanges = options;\n return;\n }\n // an editor is active, let's assign the options to the editor\n Object.assign(this.editor, \n // old options object\n this.options, \n // new merged changes\n options);\n }\n ngOnDestroy() {\n this._initialChanges = {};\n if (!this.editor)\n return;\n this.editor.destroy();\n // unsubscribe\n this.unsubs.forEach((unsub) => unsub());\n this.unsubs = [];\n // unroute events\n Object.keys(this)\n // @ts-ignore\n .filter((key) => this[key] instanceof EventEmitter)\n .forEach((key) => {\n this.element.nativeElement.removeEventListener(`pintura:${key}`, this.routeEvent);\n });\n this.editor = undefined;\n }\n ngOnInit() {\n // Do nothing\n }\n}\nPinturaEditorAbstractComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorAbstractComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nPinturaEditorAbstractComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.4.0\", type: PinturaEditorAbstractComponent, selector: \"ng-component\", inputs: { options: \"options\", id: \"id\", class: \"class\", animations: \"animations\", src: \"src\", util: \"util\", utils: \"utils\", disabled: \"disabled\", status: \"status\", elasticityMultiplier: \"elasticityMultiplier\", layoutDirectionPreference: \"layoutDirectionPreference\", layoutVerticalUtilsPreference: \"layoutVerticalUtilsPreference\", layoutHorizontalUtilsPreference: \"layoutHorizontalUtilsPreference\", layoutVerticalControlGroupsPreference: \"layoutVerticalControlGroupsPreference\", layoutVerticalControlTabsPreference: \"layoutVerticalControlTabsPreference\", layoutVerticalToolbarPreference: \"layoutVerticalToolbarPreference\", imageSourceToImageData: \"imageSourceToImageData\", previewImageData: \"previewImageData\", previewImageDataMaxSize: \"previewImageDataMaxSize\", previewUpscale: \"previewUpscale\", previewPad: \"previewPad\", previewMaskOpacity: \"previewMaskOpacity\", shapePreprocessor: \"shapePreprocessor\", enableCanvasAlpha: \"enableCanvasAlpha\", enableButtonClose: \"enableButtonClose\", enableButtonExport: \"enableButtonExport\", enableButtonResetHistory: \"enableButtonResetHistory\", enableButtonRevert: \"enableButtonRevert\", enableNavigateHistory: \"enableNavigateHistory\", enableToolbar: \"enableToolbar\", enableUtils: \"enableUtils\", enableDropImage: \"enableDropImage\", enablePasteImage: \"enablePasteImage\", enableZoom: \"enableZoom\", enableZoomControls: \"enableZoomControls\", enablePan: \"enablePan\", zoomLevel: \"zoomLevel\", zoomPresetOptions: \"zoomPresetOptions\", zoomAdjustStep: \"zoomAdjustStep\", zoomAdjustFactor: \"zoomAdjustFactor\", zoomAdjustWheelFactor: \"zoomAdjustWheelFactor\", enablePanInput: \"enablePanInput\", enableZoomInput: \"enableZoomInput\", willSetMediaInitialTimeOffset: \"willSetMediaInitialTimeOffset\", muteAudio: \"muteAudio\", handleEvent: \"handleEvent\", willRequestResource: \"willRequestResource\", willClose: \"willClose\", willRevert: \"willRevert\", willProcessImage: \"willProcessImage\", willRenderCanvas: \"willRenderCanvas\", willSetHistoryInitialState: \"willSetHistoryInitialState\", willRenderToolbar: \"willRenderToolbar\", beforeSelectShape: \"beforeSelectShape\", beforeDeselectShape: \"beforeDeselectShape\", beforeAddShape: \"beforeAddShape\", beforeRemoveShape: \"beforeRemoveShape\", beforeUpdateShape: \"beforeUpdateShape\", willRenderShapeControls: \"willRenderShapeControls\", willRenderShapePresetToolbar: \"willRenderShapePresetToolbar\", locale: \"locale\", imageReader: \"imageReader\", imageWriter: \"imageWriter\", imageOrienter: \"imageOrienter\", imageScrambler: \"imageScrambler\", imageBackgroundColor: \"imageBackgroundColor\", imageBackgroundImage: \"imageBackgroundImage\", imageColorMatrix: \"imageColorMatrix\", imageConvolutionMatrix: \"imageConvolutionMatrix\", imageCrop: \"imageCrop\", imageCropAspectRatio: \"imageCropAspectRatio\", imageCropLimitToImage: \"imageCropLimitToImage\", imageCropMaxSize: \"imageCropMaxSize\", imageCropMinSize: \"imageCropMinSize\", imageRedaction: \"imageRedaction\", imageAnnotation: \"imageAnnotation\", imageDecoration: \"imageDecoration\", imageFlipX: \"imageFlipX\", imageFlipY: \"imageFlipY\", imageGamma: \"imageGamma\", imageNoise: \"imageNoise\", imageRotation: \"imageRotation\", imageVignette: \"imageVignette\", imageTargetSize: \"imageTargetSize\", imageFrame: \"imageFrame\", imageMetadata: \"imageMetadata\", imageState: \"imageState\", imageDuration: \"imageDuration\", imageTrim: \"imageTrim\", imageVolume: \"imageVolume\", enableSelectToolToAddShape: \"enableSelectToolToAddShape\", enableTapToAddText: \"enableTapToAddText\", markupEditorToolbar: \"markupEditorToolbar\", markupEditorToolStyles: \"markupEditorToolStyles\", markupEditorShapeStyleControls: \"markupEditorShapeStyleControls\", markupEditorToolSelectRadius: \"markupEditorToolSelectRadius\", markupEditorTextInputMode: \"markupEditorTextInputMode\", markupEditorZoomLevels: \"markupEditorZoomLevels\", markupEditorZoomAdjustStep: \"markupEditorZoomAdjustStep\", markupEditorZoomAdjustFactor: \"markupEditorZoomAdjustFactor\", markupEditorZoomAdjustWheelFactor: \"markupEditorZoomAdjustWheelFactor\", markupEditorZoomLevel: \"markupEditorZoomLevel\", markupEditorToolRetainStyles: \"markupEditorToolRetainStyles\", markupEditorWillStartInteraction: \"markupEditorWillStartInteraction\", cropAutoCenterImageSelectionTimeout: \"cropAutoCenterImageSelectionTimeout\", cropWillRenderImageSelectionGuides: \"cropWillRenderImageSelectionGuides\", cropEnableButtonFlipHorizontal: \"cropEnableButtonFlipHorizontal\", cropEnableButtonFlipVertical: \"cropEnableButtonFlipVertical\", cropEnableButtonRotateLeft: \"cropEnableButtonRotateLeft\", cropEnableButtonRotateRight: \"cropEnableButtonRotateRight\", cropEnableButtonToggleCropLimit: \"cropEnableButtonToggleCropLimit\", cropEnableCenterImageSelection: \"cropEnableCenterImageSelection\", cropEnableImageSelection: \"cropEnableImageSelection\", cropEnableInfoIndicator: \"cropEnableInfoIndicator\", cropEnableLimitWheelInputToCropSelection: \"cropEnableLimitWheelInputToCropSelection\", cropEnableRotationInput: \"cropEnableRotationInput\", cropEnableSelectPreset: \"cropEnableSelectPreset\", cropEnableZoomInput: \"cropEnableZoomInput\", cropEnableZoomMatchImageAspectRatio: \"cropEnableZoomMatchImageAspectRatio\", cropEnableZoomTowardsWheelPosition: \"cropEnableZoomTowardsWheelPosition\", cropEnableZoomAutoHide: \"cropEnableZoomAutoHide\", cropImageSelectionCornerStyle: \"cropImageSelectionCornerStyle\", cropSelectPresetOptions: \"cropSelectPresetOptions\", cropSelectPresetFilter: \"cropSelectPresetFilter\", cropEnableRotateMatchImageAspectRatio: \"cropEnableRotateMatchImageAspectRatio\", cropMinimizeToolbar: \"cropMinimizeToolbar\", cropWillRenderTools: \"cropWillRenderTools\", annotateActiveTool: \"annotateActiveTool\", annotateEnableButtonFlipVertical: \"annotateEnableButtonFlipVertical\", annotatePresets: \"annotatePresets\", decorateActiveTool: \"decorateActiveTool\", decorateEnableButtonFlipVertical: \"decorateEnableButtonFlipVertical\", decoratePresets: \"decoratePresets\", filterFunctions: \"filterFunctions\", filterOptions: \"filterOptions\", finetuneControlConfiguration: \"finetuneControlConfiguration\", finetuneOptions: \"finetuneOptions\", resizeMaxSize: \"resizeMaxSize\", resizeMinSize: \"resizeMinSize\", resizeSizePresetOptions: \"resizeSizePresetOptions\", resizeWidthPresetOptions: \"resizeWidthPresetOptions\", resizeHeightPresetOptions: \"resizeHeightPresetOptions\", resizeWillRenderFooter: \"resizeWillRenderFooter\", frameStyles: \"frameStyles\", frameOptions: \"frameOptions\", fillOptions: \"fillOptions\", stickers: \"stickers\", stickerStickToImage: \"stickerStickToImage\", stickersEnableButtonFlipVertical: \"stickersEnableButtonFlipVertical\" }, outputs: { init: \"init\", loadstart: \"loadstart\", loadabort: \"loadabort\", loaderror: \"loaderror\", loadprogress: \"loadprogress\", load: \"load\", processstart: \"processstart\", processabort: \"processabort\", processerror: \"processerror\", processprogress: \"processprogress\", process: \"process\", update: \"update\", undo: \"undo\", redo: \"redo\", revert: \"revert\", writehistory: \"writehistory\", destroy: \"destroy\", show: \"show\", hide: \"hide\", close: \"close\", ready: \"ready\", loadpreview: \"loadpreview\", addshape: \"addshape\", selectshape: \"selectshape\", updateshape: \"updateshape\", removeshape: \"removeshape\", markuptap: \"markuptap\", markupzoom: \"markupzoom\", markuppan: \"markuppan\", zoom: \"zoom\", pan: \"pan\", selectstyle: \"selectstyle\", selectutil: \"selectutil\", selectcontrol: \"selectcontrol\" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorAbstractComponent, decorators: [{\n type: Component,\n args: [{\n template: '',\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { options: [{\n type: Input\n }], id: [{\n type: Input\n }], class: [{\n type: Input\n }], animations: [{\n type: Input\n }], src: [{\n type: Input\n }], util: [{\n type: Input\n }], utils: [{\n type: Input\n }], disabled: [{\n type: Input\n }], status: [{\n type: Input\n }], elasticityMultiplier: [{\n type: Input\n }], layoutDirectionPreference: [{\n type: Input\n }], layoutVerticalUtilsPreference: [{\n type: Input\n }], layoutHorizontalUtilsPreference: [{\n type: Input\n }], layoutVerticalControlGroupsPreference: [{\n type: Input\n }], layoutVerticalControlTabsPreference: [{\n type: Input\n }], layoutVerticalToolbarPreference: [{\n type: Input\n }], imageSourceToImageData: [{\n type: Input\n }], previewImageData: [{\n type: Input\n }], previewImageDataMaxSize: [{\n type: Input\n }], previewUpscale: [{\n type: Input\n }], previewPad: [{\n type: Input\n }], previewMaskOpacity: [{\n type: Input\n }], shapePreprocessor: [{\n type: Input\n }], enableCanvasAlpha: [{\n type: Input\n }], enableButtonClose: [{\n type: Input\n }], enableButtonExport: [{\n type: Input\n }], enableButtonResetHistory: [{\n type: Input\n }], enableButtonRevert: [{\n type: Input\n }], enableNavigateHistory: [{\n type: Input\n }], enableToolbar: [{\n type: Input\n }], enableUtils: [{\n type: Input\n }], enableDropImage: [{\n type: Input\n }], enablePasteImage: [{\n type: Input\n }], enableZoom: [{\n type: Input\n }], enableZoomControls: [{\n type: Input\n }], enablePan: [{\n type: Input\n }], zoomLevel: [{\n type: Input\n }], zoomPresetOptions: [{\n type: Input\n }], zoomAdjustStep: [{\n type: Input\n }], zoomAdjustFactor: [{\n type: Input\n }], zoomAdjustWheelFactor: [{\n type: Input\n }], enablePanInput: [{\n type: Input\n }], enableZoomInput: [{\n type: Input\n }], willSetMediaInitialTimeOffset: [{\n type: Input\n }], muteAudio: [{\n type: Input\n }], handleEvent: [{\n type: Input\n }], willRequestResource: [{\n type: Input\n }], willClose: [{\n type: Input\n }], willRevert: [{\n type: Input\n }], willProcessImage: [{\n type: Input\n }], willRenderCanvas: [{\n type: Input\n }], willSetHistoryInitialState: [{\n type: Input\n }], willRenderToolbar: [{\n type: Input\n }], beforeSelectShape: [{\n type: Input\n }], beforeDeselectShape: [{\n type: Input\n }], beforeAddShape: [{\n type: Input\n }], beforeRemoveShape: [{\n type: Input\n }], beforeUpdateShape: [{\n type: Input\n }], willRenderShapeControls: [{\n type: Input\n }], willRenderShapePresetToolbar: [{\n type: Input\n }], locale: [{\n type: Input\n }], imageReader: [{\n type: Input\n }], imageWriter: [{\n type: Input\n }], imageOrienter: [{\n type: Input\n }], imageScrambler: [{\n type: Input\n }], imageBackgroundColor: [{\n type: Input\n }], imageBackgroundImage: [{\n type: Input\n }], imageColorMatrix: [{\n type: Input\n }], imageConvolutionMatrix: [{\n type: Input\n }], imageCrop: [{\n type: Input\n }], imageCropAspectRatio: [{\n type: Input\n }], imageCropLimitToImage: [{\n type: Input\n }], imageCropMaxSize: [{\n type: Input\n }], imageCropMinSize: [{\n type: Input\n }], imageRedaction: [{\n type: Input\n }], imageAnnotation: [{\n type: Input\n }], imageDecoration: [{\n type: Input\n }], imageFlipX: [{\n type: Input\n }], imageFlipY: [{\n type: Input\n }], imageGamma: [{\n type: Input\n }], imageNoise: [{\n type: Input\n }], imageRotation: [{\n type: Input\n }], imageVignette: [{\n type: Input\n }], imageTargetSize: [{\n type: Input\n }], imageFrame: [{\n type: Input\n }], imageMetadata: [{\n type: Input\n }], imageState: [{\n type: Input\n }], imageDuration: [{\n type: Input\n }], imageTrim: [{\n type: Input\n }], imageVolume: [{\n type: Input\n }], enableSelectToolToAddShape: [{\n type: Input\n }], enableTapToAddText: [{\n type: Input\n }], markupEditorToolbar: [{\n type: Input\n }], markupEditorToolStyles: [{\n type: Input\n }], markupEditorShapeStyleControls: [{\n type: Input\n }], markupEditorToolSelectRadius: [{\n type: Input\n }], markupEditorTextInputMode: [{\n type: Input\n }], markupEditorZoomLevels: [{\n type: Input\n }], markupEditorZoomAdjustStep: [{\n type: Input\n }], markupEditorZoomAdjustFactor: [{\n type: Input\n }], markupEditorZoomAdjustWheelFactor: [{\n type: Input\n }], markupEditorZoomLevel: [{\n type: Input\n }], markupEditorToolRetainStyles: [{\n type: Input\n }], markupEditorWillStartInteraction: [{\n type: Input\n }], cropAutoCenterImageSelectionTimeout: [{\n type: Input\n }], cropWillRenderImageSelectionGuides: [{\n type: Input\n }], cropEnableButtonFlipHorizontal: [{\n type: Input\n }], cropEnableButtonFlipVertical: [{\n type: Input\n }], cropEnableButtonRotateLeft: [{\n type: Input\n }], cropEnableButtonRotateRight: [{\n type: Input\n }], cropEnableButtonToggleCropLimit: [{\n type: Input\n }], cropEnableCenterImageSelection: [{\n type: Input\n }], cropEnableImageSelection: [{\n type: Input\n }], cropEnableInfoIndicator: [{\n type: Input\n }], cropEnableLimitWheelInputToCropSelection: [{\n type: Input\n }], cropEnableRotationInput: [{\n type: Input\n }], cropEnableSelectPreset: [{\n type: Input\n }], cropEnableZoomInput: [{\n type: Input\n }], cropEnableZoomMatchImageAspectRatio: [{\n type: Input\n }], cropEnableZoomTowardsWheelPosition: [{\n type: Input\n }], cropEnableZoomAutoHide: [{\n type: Input\n }], cropImageSelectionCornerStyle: [{\n type: Input\n }], cropSelectPresetOptions: [{\n type: Input\n }], cropSelectPresetFilter: [{\n type: Input\n }], cropEnableRotateMatchImageAspectRatio: [{\n type: Input\n }], cropMinimizeToolbar: [{\n type: Input\n }], cropWillRenderTools: [{\n type: Input\n }], annotateActiveTool: [{\n type: Input\n }], annotateEnableButtonFlipVertical: [{\n type: Input\n }], annotatePresets: [{\n type: Input\n }], decorateActiveTool: [{\n type: Input\n }], decorateEnableButtonFlipVertical: [{\n type: Input\n }], decoratePresets: [{\n type: Input\n }], filterFunctions: [{\n type: Input\n }], filterOptions: [{\n type: Input\n }], finetuneControlConfiguration: [{\n type: Input\n }], finetuneOptions: [{\n type: Input\n }], resizeMaxSize: [{\n type: Input\n }], resizeMinSize: [{\n type: Input\n }], resizeSizePresetOptions: [{\n type: Input\n }], resizeWidthPresetOptions: [{\n type: Input\n }], resizeHeightPresetOptions: [{\n type: Input\n }], resizeWillRenderFooter: [{\n type: Input\n }], frameStyles: [{\n type: Input\n }], frameOptions: [{\n type: Input\n }], fillOptions: [{\n type: Input\n }], stickers: [{\n type: Input\n }], stickerStickToImage: [{\n type: Input\n }], stickersEnableButtonFlipVertical: [{\n type: Input\n }], init: [{\n type: Output\n }], loadstart: [{\n type: Output\n }], loadabort: [{\n type: Output\n }], loaderror: [{\n type: Output\n }], loadprogress: [{\n type: Output\n }], load: [{\n type: Output\n }], processstart: [{\n type: Output\n }], processabort: [{\n type: Output\n }], processerror: [{\n type: Output\n }], processprogress: [{\n type: Output\n }], process: [{\n type: Output\n }], update: [{\n type: Output\n }], undo: [{\n type: Output\n }], redo: [{\n type: Output\n }], revert: [{\n type: Output\n }], writehistory: [{\n type: Output\n }], destroy: [{\n type: Output\n }], show: [{\n type: Output\n }], hide: [{\n type: Output\n }], close: [{\n type: Output\n }], ready: [{\n type: Output\n }], loadpreview: [{\n type: Output\n }], addshape: [{\n type: Output\n }], selectshape: [{\n type: Output\n }], updateshape: [{\n type: Output\n }], removeshape: [{\n type: Output\n }], markuptap: [{\n type: Output\n }], markupzoom: [{\n type: Output\n }], markuppan: [{\n type: Output\n }], zoom: [{\n type: Output\n }], pan: [{\n type: Output\n }], selectstyle: [{\n type: Output\n }], selectutil: [{\n type: Output\n }], selectcontrol: [{\n type: Output\n }] } });\n\nclass PinturaEditorComponent extends PinturaEditorAbstractComponent {\n initEditor(element, props) {\n return appendEditor(element, props);\n }\n}\nPinturaEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\nPinturaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.4.0\", type: PinturaEditorComponent, selector: \"pintura-editor\", usesInheritance: true, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'pintura-editor',\n template: ` <ng-content></ng-content> `,\n styles: [],\n }]\n }] });\n\nclass PinturaEditorModalComponent extends PinturaEditorAbstractComponent {\n get modal() {\n return this.editor.modal;\n }\n initEditor(element, props) {\n return openEditor(props);\n }\n showEditor() {\n this.editor.show();\n }\n hideEditor() {\n this.editor.hide();\n }\n ngOnDestroy() {\n if (!this.editor)\n return;\n this.editor = undefined;\n }\n}\nPinturaEditorModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorModalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\nPinturaEditorModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.4.0\", type: PinturaEditorModalComponent, selector: \"pintura-editor-modal\", inputs: { preventZoomViewport: \"preventZoomViewport\", preventScrollBodyIfNeeded: \"preventScrollBodyIfNeeded\", preventFooterOverlapIfNeeded: \"preventFooterOverlapIfNeeded\", enableAutoHide: \"enableAutoHide\", enableAutoDestroy: \"enableAutoDestroy\" }, usesInheritance: true, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorModalComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'pintura-editor-modal',\n template: ` <ng-content></ng-content> `,\n styles: [],\n }]\n }], propDecorators: { preventZoomViewport: [{\n type: Input\n }], preventScrollBodyIfNeeded: [{\n type: Input\n }], preventFooterOverlapIfNeeded: [{\n type: Input\n }], enableAutoHide: [{\n type: Input\n }], enableAutoDestroy: [{\n type: Input\n }] } });\n\nclass PinturaEditorOverlayComponent extends PinturaEditorAbstractComponent {\n initEditor(element, props) {\n return overlayEditor(element, props);\n }\n}\nPinturaEditorOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorOverlayComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\nPinturaEditorOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.4.0\", type: PinturaEditorOverlayComponent, selector: \"pintura-editor-overlay\", usesInheritance: true, ngImport: i0, template: ` <ng-content></ng-content> `, isInline: true });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: PinturaEditorOverlayComponent, decorators: [{\n type: Component,\n args: [{\n selector: 'pintura-editor-overlay',\n template: ` <ng-content></ng-content> `,\n styles: [],\n }]\n }] });\n\nclass AngularPinturaModule {\n}\nAngularPinturaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: AngularPinturaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nAngularPinturaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: AngularPinturaModule, declarations: [PinturaEditorAbstractComponent,\n PinturaEditorComponent,\n PinturaEditorModalComponent,\n PinturaEditorOverlayComponent], exports: [PinturaEditorAbstractComponent,\n PinturaEditorComponent,\n PinturaEditorModalComponent,\n PinturaEditorOverlayComponent] });\nAngularPinturaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: AngularPinturaModule, imports: [[]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.4.0\", ngImport: i0, type: AngularPinturaModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [\n PinturaEditorAbstractComponent,\n PinturaEditorComponent,\n PinturaEditorModalComponent,\n PinturaEditorOverlayComponent,\n ],\n imports: [],\n exports: [\n PinturaEditorAbstractComponent,\n PinturaEditorComponent,\n PinturaEditorModalComponent,\n PinturaEditorOverlayComponent,\n ],\n }]\n }] });\n\n/*\n * Public API Surface of angular-pintura\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngularPinturaModule, PinturaEditorAbstractComponent, PinturaEditorComponent, PinturaEditorModalComponent, PinturaEditorOverlayComponent };\n","<button mat-icon-button mat-dialog-close class=\"mat-dialog-btn__close\">\n <mat-icon>close</mat-icon>\n</button>\n<div *ngIf=\"showWebcam\">\n <div class=\"mt-2\" *ngIf=\"errors.length === 0\">\n <webcam\n [trigger]=\"triggerObservable\"\n (imageCapture)=\"handleImage($event)\"\n [allowCameraSwitch]=\"allowCameraSwitch\"\n [switchCamera]=\"nextWebcamObservable\"\n (cameraSwitched)=\"cameraWasSwitched($event)\"\n (initError)=\"handleInitError($event)\"\n >\n </webcam>\n </div>\n <div class=\"mt-2\" *ngIf=\"errors.length > 0 && accessDenied\">\n <div><strong>Access denied</strong></div>\n <p class=\"my-5\">\n Access to the camera has been blocked. To take the photo, you should\n enable this page to access the camera on your browser.\n </p>\n </div>\n <div class=\"mt-3\" *ngIf=\"errors.length > 0 && !accessDenied\">\n <ul *ngFor=\"let error of errors\">\n <li>{{ error | json }}</li>\n </ul>\n </div>\n <div class=\"mat-dialog-actions\">\n <button\n class=\"branding-color\"\n mat-dialog-close\n mat-stroked-button\n color=\"primary\"\n >\n {{ 'form.cancel' | translate }}\n </button>\n <button\n class=\"branding-bg\"\n mat-flat-button\n color=\"primary\"\n (click)=\"triggerSnapshot()\"\n [disabled]=\"errors.length > 0 && accessDenied\"\n >\n {{ 'form.take-photo' | translate }}\n </button>\n </div>\n</div>\n\n<div class=\"snapshot\" *ngIf=\"webcamImage\">\n <div style=\"height: 600px\">\n <pintura-editor\n [src]=\"webcamImage.imageAsDataUrl\"\n [options]=\"options\"\n (process)=\"handleModalProcess($event)\"\n ></pintura-editor>\n\n <br /> \n </div>\n</div>\n","import { Component, OnInit, Inject, ViewChild } from '@angular/core';\nimport { Subject, Observable } from 'rxjs';\nimport { WebcamImage, WebcamInitError } from 'ngx-webcam';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { PinturaEditorComponent } from '@pqina/angular-pintura';\nimport {\n createDefaultImageReader,\n createDefaultImageWriter,\n setPlugins,\n plugin_crop,\n locale_en_gb,\n plugin_crop_locale_en_gb,\n markup_editor_locale_en_gb,\n createDefaultShapePreprocessor,\n} from '@pqina/pintura'; \n\nsetPlugins(plugin_crop);\n\n@Component({\n selector: 'app-camera',\n templateUrl: './camera.component.html',\n styleUrls: ['./camera.component.scss']\n})\nexport class CameraComponent implements OnInit {\n @ViewChild('inlineEditor') inlineEditor?: PinturaEditorComponent<any> = undefined;\n // toggle webcam on/off\n public showWebcam = true;\n public allowCameraSwitch = true;\n public multipleWebcamsAvailable = false;\n public deviceId: string;\n // public videoOptions: MediaTrackConstraints = {\n // width: { ideal: 320 },\n // height: { ideal: 240 }\n // };\n public errors: WebcamInitError[] = [];\n public webcamImage!: WebcamImage;\n public imageData;\n // webcam snapshot trigger\n private trigger: Subject<void> = new Subject<void>();\n // switch to next / previous / specific webcam; true/false: forward/backwards, string: deviceId\n private nextWebcam: Subject<boolean | string> = new Subject<\n boolean | string\n >();\n options: any = {\n imageReader: createDefaultImageReader(),\n imageWriter: createDefaultImageWriter(),\n shapePreprocessor: createDefaultShapePreprocessor(),\n imageCropAspectRatio: 3 / 4,\n locale: {\n ...locale_en_gb,\n ...plugin_crop_locale_en_gb,\n ...markup_editor_locale_en_gb,\n },\n };\n constructor(\n public dialogRef: MatDialogRef<CameraComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) {}\n\n public ngOnInit(): void {\n this.multipleWebcamsAvailable = this.data.numberOfCameras.length > 1;\n }\n\n public triggerSnapshot(): void {\n this.trigger.next();\n }\n\n public toggleWebcam(): void {\n this.showWebcam = !this.showWebcam;\n }\n\n public handleInitError(error: WebcamInitError): void {\n this.errors.push(error);\n }\n\n public showNextWebcam(directionOrDeviceId: boolean | string): void {\n // true => move forward through devices\n // false => move backwards through devices\n // string => move to device with given deviceId\n this.nextWebcam.next(directionOrDeviceId);\n }\n\n public accessDenied() {\n return (\n this.errors.length > 0 &&\n this.errors.filter((x) => x.message === 'Permission denied').length > 0\n );\n }\n\n public handleImage(webcamImage: WebcamImage): void {\n this.toggleWebcam();\n this.webcamImage = webcamImage;\n }\n\n public cameraWasSwitched(deviceId: string): void {\n this.deviceId = deviceId;\n }\n\n public get triggerObservable(): Observable<void> {\n return this.trigger.asObservable();\n }\n\n public get nextWebcamObservable(): Observable<boolean | string> {\n return this.nextWebcam.asObservable();\n }\n\n handleModalProcess($event: any) {\n this.fileToDataURL($event.dest).then((dataURL) => {\n if(dataURL){\n const img = new WebcamImage( dataURL.toString(),'image/jpeg', null);\n this.dialogRef.close(img);\n }\n });\n }\n\n fileToDataURL = (file: File) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => resolve(reader.result);\n reader.onerror = reject;\n reader.readAsDataURL(file);\n });\n}\n","import { Site } from '@back-office/models/site.model';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport class GetSites {\n static readonly type = '[Sites] Try to load Sites';\n constructor() {}\n}\n\nexport class GetSitesSuccess {\n static readonly type = '[Sites] Success in loading Sites';\n constructor(public sites: Site[]) {}\n}\n\nexport class GetSitesFailed {\n static readonly type = '[Sites] loading Sites failed';\n constructor(public error: HttpErrorResponse) {}\n}\n\nexport class AddSiteToSelectedSites {\n static readonly type = '[Site] Add site to selected Sites';\n constructor(public site: Site) {}\n}\n\nexport class RemoveSite {\n static readonly type = '[Site] Try to Remove Site';\n constructor(public site: Site) {}\n}\n\nexport class SetSelectedSite {\n static readonly type = '[Site] Setting Selected Site';\n constructor(public readonly site: Site) {}\n}\n\nexport class SelectAllSites {\n static readonly type = '[Site] Setting Selected all Sites';\n constructor() {}\n}\n\nexport class DeselectAllSites {\n static readonly type = '[Site] Setting Unselected all Sites';\n constructor() {}\n}\n","import { ConfigState } from '@back-office/store/states/config.state';\nimport { Site } from '@back-office/models/site.model';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngxs/store';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SitesForInvitationService {\n private httpUrl: string;\n constructor(private store: Store, private httpClient: HttpClient) {}\n\n public getSites(eventId: string): Observable<Site[]> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n this.httpUrl = config.apiUrl + '/sites/target/';\n\n return this.httpClient.get<Site[]>(this.httpUrl + eventId);\n }\n}\n","import { HttpErrorResponse } from '@angular/common/http';\nimport { Store } from '@ngxs/store';\nimport { Navigate } from '@ngxs/router-plugin';\nimport { Injectable } from '@angular/core';\nimport { SendErrorMessage } from '@projects-shared/app-message/app-message.actions';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class BackOfficeErrorService {\n constructor(private store: Store) {}\n\n public redirectToErrorPage(error: HttpErrorResponse): void {\n if (error.status >= 500) {\n this.store.dispatch(new Navigate(['/error']));\n } else if (error.status === 404) {\n this.store.dispatch(new Navigate(['/not-found']));\n } else if (error.status === 400) {\n this.store.dispatch(new SendErrorMessage(error.error.Message));\n } else {\n console.error(error);\n }\n }\n}\n","import { BackOfficeErrorService } from '@back-office/services/bo-error.service';\nimport {\n GetSites,\n GetSitesSuccess,\n GetSitesFailed,\n AddSiteToSelectedSites,\n RemoveSite,\n SetSelectedSite,\n SelectAllSites,\n DeselectAllSites,\n} from '@back-office/store/actions/sites-for-invitation.actions';\nimport { Site } from '@back-office/models/site.model';\nimport { Store, Selector, StateContext, Action, State } from '@ngxs/store';\nimport { SitesForInvitationService } from '@back-office/services/sites-for-invitation.service';\nimport { map, catchError } from 'rxjs/operators';\nimport { RouterState } from '@ngxs/router-plugin';\nimport { Injectable } from '@angular/core';\n\nexport interface SiteStateModel {\n sites: Site[];\n selectedSites: Site[];\n}\n\n@State<SiteStateModel>({\n name: 'sites',\n defaults: {\n sites: [],\n selectedSites: [],\n },\n})\n@Injectable()\nexport class SiteState {\n constructor(\n private store: Store,\n private siteService: SitesForInvitationService,\n private boErrorService: BackOfficeErrorService\n ) {}\n\n @Selector()\n static getAllSites(model: SiteStateModel) {\n return model.sites;\n }\n\n @Selector()\n static selectedSites(model: SiteStateModel) {\n return model.selectedSites;\n }\n\n @Action(GetSites)\n getSites(ctx: StateContext<SiteStateModel>) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n return this.siteService.getSites(url.params.eventId).pipe(\n map((res) => {\n ctx.dispatch(new GetSitesSuccess(res));\n }),\n catchError((err) => ctx.dispatch(new GetSitesFailed(err)))\n );\n }\n\n @Action(GetSitesSuccess, { cancelUncompleted: true })\n getSitesSuccessAction(\n ctx: StateContext<SiteStateModel>,\n { sites: sites }: GetSitesSuccess\n ) {\n ctx.patchState({ sites });\n }\n\n @Action(GetSitesFailed, { cancelUncompleted: true })\n getSitesFailAction(\n ctx: StateContext<SiteStateModel>,\n action: GetSitesFailed\n ) {\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(AddSiteToSelectedSites)\n addSiteToSelectedSites(\n ctx: StateContext<SiteStateModel>,\n action: AddSiteToSelectedSites\n ) {\n const currentState = ctx.getState();\n if (\n currentState.selectedSites.length === 0 ||\n currentState.selectedSites.filter((c) => c.id === action.site.id)\n .length === 0\n ) {\n ctx.patchState({\n selectedSites: [...currentState.selectedSites, action.site],\n });\n }\n }\n\n @Action(RemoveSite)\n removeSelectedSites(ctx: StateContext<SiteStateModel>, action: RemoveSite) {\n const currentState = ctx.getState();\n const array = [...currentState.selectedSites]; // make a separate copy of the array\n const index = array.findIndex((c) => c.id === action.site.id);\n if (index !== -1) {\n array.splice(index, 1);\n }\n ctx.patchState({ selectedSites: array });\n }\n\n @Action(SetSelectedSite)\n setSelectedSite(ctx: StateContext<SiteStateModel>, action: SetSelectedSite) {\n ctx.patchState({ selectedSites: [action.site] });\n }\n\n @Action(SelectAllSites)\n selectAllSites(ctx: StateContext<SiteStateModel>) {\n ctx.patchState({ selectedSites: ctx.getState().sites });\n }\n\n @Action(DeselectAllSites)\n deselectAllSites(ctx: StateContext<SiteStateModel>) {\n ctx.patchState({ selectedSites: [] });\n }\n}\n","import { AccreditationRequestOutput } from '@back-office/models/accreditation-request.model';\nimport { DeleteAccreditationsOutput } from '@back-office/models/delete-accreditations-output.model';\nimport { TermsAndConditions } from '@back-office/models/terms-and-conditions.model';\nimport {\n BasicInvitation,\n Invitation\n} from '@back-office/models/invitation.model';\nimport { Category } from '@back-office/models/category.model';\nimport { SubCategory } from '@back-office/models/sub-category.model';\nimport { AccreditationType } from '@back-office/models/accreditation-type.model';\nimport { AccreditationRequestInput } from '@back-office/models/accreditation-request.model';\nimport { GetAccreditationModel } from '@back-office/models/get-accreditations.model';\nimport { DeleteAccreditationsInput } from '@back-office/models/delete-accreditations-input.model';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Sort } from '@angular/material/sort';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { TableConfigurationOutput } from '@back-office/models/table-configuration.model';\nimport { ExportInvitationReportResponse } from '@back-office/models/export-invitations.model';\n\nexport class ResetAccreditations {\n static readonly type = '[Request-Accreditation] Reset accreditations';\n constructor() { }\n}\n\nexport class GetAccreditations {\n static readonly type = '[Request-Accreditation] Try to load accreditations';\n constructor(public showLoading: boolean = true) { }\n}\n\nexport class GetAccreditationsSuccess {\n static readonly type =\n '[Request-Accreditation] Success in loading accreditations';\n constructor(public getAccreditationModel: GetAccreditationModel) { }\n}\n\nexport class GetAccreditationsFailed {\n static readonly type =\n '[Request-Accreditation] loading accreditations failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class GetAccreditationsByInvitationId {\n static readonly type =\n '[Request-Accreditation] Try to load accreditations by invitation';\n constructor(public showLoading: boolean = true, public id?: string) { }\n}\n\nexport class GetAccreditationsByInvitationIdSuccess {\n static readonly type =\n '[Request-Accreditation] Success in loading accreditations by invitation';\n constructor(public getAccreditationModel: GetAccreditationModel) { }\n}\n\nexport class GetAccreditationsByInvitationIdFailed {\n static readonly type =\n '[Request-Accreditation] loading accreditations by invitation failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class SetSelectedPersonForAccreditation {\n static readonly type =\n '[Request-Accreditation] Set Selected Persons For Accreditation';\n constructor(public list: BasicInvitation[] | Invitation[]) { }\n}\n\nexport class GetCompletedPersonInvitationWithoutSelected {\n static readonly type =\n '[Request-Accreditation] Get Completed Persons Invitation without selected';\n}\n\nexport class AddMorePersonsToAccreditationRequest {\n static readonly type =\n '[Request-Accreditation] Add More Persons For Accreditation Request';\n constructor(public list: BasicInvitation[]) { }\n}\n\nexport class GetCategories {\n static readonly type = '[Request-Accreditation] Getting Categories';\n constructor(public appFunctionName: string) { }\n}\n\nexport class GetCategoriesSuccess {\n static readonly type = '[Request-Accreditation] Get Categories Succeeded';\n constructor(public categories: Category[]) { }\n}\n\nexport class GetCategoriesFailed {\n static readonly type = '[Request-Accreditation] Get Categories Failed';\n}\n\nexport class GetSubCategoriesOfCategory {\n static readonly type =\n '[Request-Accreditation] Getting SubCategories Of Category';\n constructor(public appFunctionName: string, public categoryId: number) { }\n}\n\nexport class GetSubCategoriesOfCategorySuccess {\n static readonly type =\n '[Request-Accreditation] Getting SubCategories Of Category succeeded';\n constructor(public readonly subcategories: SubCategory[]) { }\n}\n\nexport class GetSubCategoriesOfCategoryFailed {\n static readonly type =\n '[Request-Accreditation] Getting SubCategories Of Category failed';\n}\n\nexport class GetTermsAndConditions {\n static readonly type = '[Request-Accreditation] Getting Terms And Conditions';\n}\n\nexport class GetTermsAndConditionsSuccess {\n static readonly type =\n '[Request-Accreditation] Getting Terms And Conditions succeeded';\n constructor(public readonly tac: TermsAndConditions) { }\n}\n\nexport class GetTermsAndConditionsFailed {\n static readonly type =\n '[Request-Accreditation] Getting Terms And Conditions failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class GetAccreditationTypes {\n static readonly type = '[Request-Accreditation] Getting Accreditation Types';\n constructor(\n public readonly categoryId: number,\n public readonly subcategoryId: number\n ) { }\n}\n\nexport class GetAccreditationTypesSuccess {\n static readonly type =\n '[Request-Accreditation] Getting Accreditation Types succeeded';\n constructor(public readonly types: AccreditationType[]) { }\n}\n\nexport class GetAccreditationTypesFailed {\n static readonly type =\n '[Request-Accreditation] Getting Accreditation Types failed';\n}\n\nexport class CreateAccreditationRequests {\n static readonly type =\n '[Request-Accreditation] Create Accreditation Requests';\n constructor(public readonly input: AccreditationRequestInput) { }\n}\n\nexport class CreateAccreditationRequestsSuccess {\n static readonly type =\n '[Request-Accreditation] Create Accreditation Requests succeeded';\n}\n\nexport class CreateAccreditationRequestsFailed {\n static readonly type =\n '[Request-Accreditation] Create Accreditation Requests failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class RemoveAccreditationRequests {\n static readonly type =\n '[Request-Accreditation] Remove Accreditation Requests Action';\n constructor(public readonly input: DeleteAccreditationsInput) { }\n}\nexport class RemoveAccreditationRequestsSuccess {\n static readonly type =\n '[Request-Accreditation] Remove Accreditation Requests Success Action';\n constructor(public result: DeleteAccreditationsOutput) { }\n}\n\nexport class RemoveAccreditationRequestsFailed {\n static readonly type =\n '[Request-Accreditation] Remove Accreditation Requests Failed Action';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class AddAccreditationRequestForDelete {\n static readonly type =\n '[Request-Accreditation] Add Request-Accreditation For Delete';\n constructor(public accreditation: AccreditationRequestOutput[]) { }\n}\n\nexport class ResetFilters {\n static readonly type = '[Request-Accreditation] Reset Filters';\n}\n\nexport class ApplyFilters {\n static readonly type = '[Request-Accreditation] Apply Filters';\n constructor(\n public sites: number[] = [],\n public invitationOption: number = 0,\n public accRequestOption: number = 0\n ) { }\n}\n\nexport class SetFiltersApplied {\n static readonly type = '[Request-Accreditation] Set Filters Applied';\n constructor(public state: boolean) { }\n}\n\nexport class SetPage {\n static readonly type = '[Request-Accreditation] Set Page';\n constructor(public pageEvent: PageEvent) { }\n}\n\nexport class GetAccreditationTypesByEvent {\n static readonly type =\n '[Request-Accreditation] Getting Accreditation Types By Event';\n constructor(public readonly eventId: string) { }\n}\n\nexport class GetAccreditationTypesByEventSuccess {\n static readonly type =\n '[Request-Accreditation] Getting Accreditation Types By Event succeeded';\n constructor(public readonly types: AccreditationType[]) { }\n}\n\nexport class GetAccreditationTypesByEventFailed {\n static readonly type =\n '[Request-Accreditation] Getting Accreditation Types by Event failed';\n}\n\nexport class RetryAccreditationRequestById {\n static readonly type =\n '[Request-Accreditation] Retry Accreditation Request By Id';\n constructor(\n public readonly eventId: string,\n public readonly accreditationRequestId: string\n ) { }\n}\n\nexport class RetryAccreditationRequestWentOnError {\n static readonly type =\n '[Request-Accreditation] Retry Accreditation Request Went On Error';\n constructor(\n public readonly eventId: string\n ) { }\n}\n\nexport class RetryAccreditationRequestByIdSuccess {\n static readonly type =\n '[Request-Accreditation] Retry Accreditation Request By Id succeeded';\n constructor(public readonly types: AccreditationType[]) { }\n}\n\nexport class RetryAccreditationRequestByIdFailed {\n static readonly type =\n '[Request-Accreditation] Retry Accreditation Request By Id failed';\n}\n\nexport class ResetAccreditationsFilters {\n static readonly type = '[Request-Accreditation] Reset Accreditations Filters';\n}\n\nexport class ApplyAccreditationsFilters {\n static readonly type = '[Request-Accreditation] Apply Accreditations Filters';\n constructor(\n public accreditationTypes: number[] = [],\n public accreditationStatuses: number[] = [],\n public organizationId: number = 0,\n public matchDay: number = 0,\n public match: number = 0\n ) { }\n}\n\nexport class SetAccreditationsFiltersApplied {\n static readonly type =\n '[Request-Accreditation] Set Accreditations Filters Applied';\n constructor(public state: boolean) { }\n}\n\nexport class ResetSelectedPersons {\n static readonly type = '[Request-Accreditation] Reset Selected Persons';\n}\n\nexport class ClearInvitationsOption {\n static readonly type = '[Request-Accreditation] ClearInvitationsOption';\n}\n\nexport class ClearRequestsOption {\n static readonly type = '[Request-Accreditation] ClearRequestsOption';\n}\n\nexport class ClearOrganisationOption {\n static readonly type = '[Request-Accreditation] ClearOrganisationOption';\n}\n\nexport class SetInvitationsOption {\n static readonly type = '[Request-Accreditation] SetInvitationsOption';\n constructor(public state: number) { }\n}\n\nexport class SetRequestsOption {\n static readonly type = '[Request-Accreditation] SetRequestsOption';\n constructor(public state: number) { }\n}\n\nexport class AccrReqChangePage {\n static readonly type =\n '[Request-Accreditation] Accreditation Request Change Page';\n constructor(public page: PageEvent) { }\n}\n\nexport class AccrReqByInvitationChangePage {\n static readonly type =\n '[Request-Accreditation] Accreditation Requests by Invitation Change Page';\n constructor(public page: PageEvent) { }\n}\n\nexport class SetLastNameOption {\n static readonly type = '[Request-Accreditation] Set Last Name Option';\n constructor(public text: string = '') { }\n}\n\nexport class SetFirstNameOption {\n static readonly type = '[Request-Accreditation] Set First Name Option';\n constructor(public text: string = '') { }\n}\n\nexport class SetAccreditationIdOption {\n static readonly type = '[Request-Accreditation] Set Accreditation Id Option';\n constructor(public accrId: number) { }\n}\n\nexport class SetAccrSort {\n static readonly type = '[Request-Accreditation] Set Accreditation Sorting';\n constructor(public readonly sort: Sort) { }\n}\nexport class SetAccrByInvitationSort {\n static readonly type =\n '[Request-Accreditation] Set Accreditations by invitation Sorting';\n constructor(public readonly sort: Sort) { }\n}\n\nexport class ClearAccrByInvitationState {\n static readonly type =\n '[Request-Accreditation] Clearing Accreditations By Invitation State';\n}\n\nexport class SetInvitationSearchText {\n static readonly type = '[Request-Accreditation] Set Invitation Search Text';\n constructor(public readonly text: string) { }\n}\n\nexport class SetInvitationSearchSites {\n static readonly type =\n '[Request-Accreditation] Set Invitation Sites for search';\n constructor(public readonly sites: number[]) { }\n}\n\nexport class ClearMatchDay {\n static readonly type = '[Request-Accreditation] ClearMatchDay';\n}\n\nexport class ClearMatch {\n static readonly type = '[Request-Accreditation] ClearMatch';\n}\n\nexport class SetMatchDay {\n static readonly type = '[Request-Accreditation] SetMatchday';\n constructor(public state: number) { }\n}\n\nexport class SetMatch {\n static readonly type = '[Request-Accreditation] SetMatch';\n constructor(public state: number) { }\n}\n\nexport class SetOrganizationFilter {\n static readonly type = '[Request-Accreditation] SetOrganizationFilter';\n constructor(public state: number) { }\n}\n\nexport class GetAccrColumnsToDisplay {\n static readonly type = '[Request-Accreditation] get columns to display';\n constructor(public eventId: string) { }\n}\n\nexport class GetAccrColumnsToDisplaySuccess {\n static readonly type =\n '[Request-Accreditation] get columns to display success';\n constructor(public configuration: TableConfigurationOutput) { }\n}\n\nexport class GetAccrColumnsToDisplayFailed {\n static readonly type =\n '[Request-Accreditation] get columns to display failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class ExportFilteredAccreditations {\n static readonly type = '[Request-Accreditation] Export Accreditations';\n}\n\nexport class ExportFilteredAccreditationsFailed {\n static readonly type = '[Request-Accreditation] Export Accreditations Failed';\n constructor(public readonly error: HttpErrorResponse) { }\n}\n\nexport class ExportFilteredAccreditationsSuccess {\n static readonly type = '[Request-Accreditation] Export Accreditations Success';\n constructor(public readonly result: ExportInvitationReportResponse) { }\n}\n\nexport class ExportFilteredAccreditationsCompleted {\n static readonly type = '[Request-Accreditation] Export Accreditations Completed';\n constructor(public readonly url: string, public readonly exportReportId: string) { }\n}\n","import { DeleteAccreditationsInput } from '@back-office/models/delete-accreditations-input.model';\nimport { AccreditationType } from '@back-office/models/accreditation-type.model';\nimport { AccreditationRequestInput } from '@back-office/models/accreditation-request.model';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngxs/store';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { ConfigState } from '@back-office/store/states/config.state';\nimport { Category } from '@back-office/models/category.model';\nimport { SubCategory } from '@back-office/models/sub-category.model';\nimport { TermsAndConditions } from '@back-office/models/terms-and-conditions.model';\nimport { GetAccreditationModel } from '@back-office/models/get-accreditations.model';\nimport { DeleteAccreditationsOutput } from '@back-office/models/delete-accreditations-output.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AccreditationService {\n constructor(private store: Store, private httpClient: HttpClient) { }\n\n httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n public getAccreditations(\n eventId: string,\n skip: number,\n take: number,\n firstName: string,\n lastName: string,\n accrId: number,\n sort: string,\n order: string,\n accreditationStatuses: number[],\n accreditationTypes: number[],\n organizationId: number,\n matchDay: number,\n match: number,\n paginationToken: string,\n searchAfter: boolean = true\n ): Observable<GetAccreditationModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n const url = `${config.apiUrl}/accreditation-requests/event/${eventId}`;\n\n const params: any = {};\n\n if (!!skip) {\n params.skip = skip.toString();\n }\n\n if (!!firstName) {\n params.firstName = firstName;\n }\n\n if (!!lastName) {\n params.lastName = lastName;\n }\n\n if (!!accrId) {\n params.accreditationId = accrId.toString();\n }\n\n if (!!take) {\n params.take = take.toString();\n }\n\n if (!!sort) {\n params.sort = sort;\n }\n\n if (!!order) {\n params.order = order;\n }\n\n if (!!match && match !== 0) {\n params.match = match;\n }\n\n if (!!matchDay && matchDay !== 0) {\n params.matchDay = matchDay;\n }\n\n if (!!organizationId && organizationId !== 0) {\n params.organizationId = organizationId;\n }\n\n if (!!accreditationStatuses && accreditationStatuses.length > 0) {\n params.accreditationStatuses = accreditationStatuses;\n }\n\n if (!!accreditationTypes && accreditationTypes.length > 0) {\n params.accreditationTypes = accreditationTypes;\n }\n\n if (!!paginationToken) {\n params.paginationToken = paginationToken;\n }\n\n params.searchAfter = searchAfter;\n\n return this.httpClient.get<GetAccreditationModel>(url, { params });\n }\n\n public getAccreditationsByInvitationId(\n eventId: string,\n invitationId: string,\n skip: number,\n take: number,\n sort: string,\n order: string\n ): Observable<GetAccreditationModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl =\n config.apiUrl +\n `/accreditation-requests/events/${eventId}/invitation/${invitationId}`;\n\n const params: any = {};\n\n if (!!skip) {\n params.skip = skip.toString();\n }\n\n if (!!take) {\n params.take = take.toString();\n }\n\n if (!!sort) {\n params.sort = sort;\n }\n\n if (!!order) {\n params.order = order;\n }\n\n return this.httpClient.get<GetAccreditationModel>(httpUrl, { params });\n }\n\n public getPersonCategories(\n eventId: number,\n appFunctionId: number\n ): Observable<Category[]> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = config.apiUrl + '/accreditation-requests/';\n return this.httpClient.get<Category[]>(\n `${httpUrl}event/${eventId}/categories/appfunction/${appFunctionId}`\n );\n }\n\n public getPersonSubCategories(\n eventId: number,\n appFunctionId: number,\n categoryId: number\n ): Observable<SubCategory[]> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = config.apiUrl + '/accreditation-requests/';\n return this.httpClient.get<SubCategory[]>(\n `${httpUrl}event/${eventId}/categories/${categoryId}/appfunction/${appFunctionId}`\n );\n }\n\n public getTermsAndConditions(\n eventId: number\n ): Observable<TermsAndConditions> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = config.apiUrl + '/accreditation-requests/';\n return this.httpClient.get<TermsAndConditions>(\n `${httpUrl}event/${eventId}/terms-and-conditions`\n );\n }\n\n public getAccreditationTypes(\n eventId: number,\n categoryId: number,\n subCategoryId: number,\n subEventId: number\n ): Observable<AccreditationType[]> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n // eslint-disable-next-line max-len\n const httpUrl = `${config.apiUrl}/accreditation-requests/event/${eventId}/categories/${categoryId}/subcategories/${subCategoryId}/accreditation-types`;\n\n const params = !!subEventId ? { subEventId: subEventId.toString() } : {};\n\n return this.httpClient.get<AccreditationType[]>(httpUrl, { params });\n }\n\n public createAccreditation(\n input: AccreditationRequestInput\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = `${config.apiUrl}/accreditation-requests/events/${input.eventId}`;\n\n return this.httpClient.post(httpUrl, input, this.httpOptions);\n }\n\n public deleteAccreditations(\n input: DeleteAccreditationsInput\n ): Observable<DeleteAccreditationsOutput> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = `${config.apiUrl}/accreditation-requests/delete`;\n\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n body: input\n };\n\n return this.httpClient.delete<DeleteAccreditationsOutput>(httpUrl, options);\n }\n\n public getAccreditationTypesByEvent(\n eventId: string\n ): Observable<AccreditationType[]> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = `${config.apiUrl}/accreditation-requests/event/${eventId}/accreditation-types`;\n\n return this.httpClient.get<AccreditationType[]>(httpUrl);\n }\n\n public retryAccreditationRequestById(\n evId: string,\n requestId: string\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = `${config.apiUrl}/accreditation-requests/retry`;\n\n return this.httpClient.post<any>(\n httpUrl,\n { eventId: evId, accreditationRequestId: requestId },\n this.httpOptions\n );\n }\n\n public retryAllAccreditationsRequestInError(\n evId: string\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const httpUrl = `${config.apiUrl}/accreditation-requests/retry/all`;\n\n return this.httpClient.post<any>(\n httpUrl,\n evId,\n this.httpOptions\n );\n }\n}\n","import { BackOfficeErrorService } from '@back-office/services/bo-error.service';\nimport { AccreditationRequestOutput } from '@back-office/models/accreditation-request.model';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Sort } from '@angular/material/sort';\nimport { State, Store, Selector, Action, StateContext } from '@ngxs/store';\nimport {\n GetAccreditationsByInvitationId,\n GetAccreditationsByInvitationIdSuccess,\n GetAccreditationsByInvitationIdFailed,\n AccrReqByInvitationChangePage,\n SetAccrByInvitationSort,\n ClearAccrByInvitationState,\n} from '@back-office/store/actions/request-accreditation.actions';\nimport { RouterState } from '@ngxs/router-plugin';\nimport { AccreditationService } from '@back-office/services/accreditation.service';\nimport { catchError, map } from 'rxjs/operators';\nimport * as _ from 'lodash';\nimport { Injectable } from '@angular/core';\n\nexport interface RequestAccreditationByInvitationStateModel {\n accreditationsByInvitation: AccreditationRequestOutput[];\n byInvTotal: number;\n totalForEvent: number;\n byInvLoading: boolean;\n byInvPage: PageEvent;\n byInvSort?: Sort;\n}\n\n@State<RequestAccreditationByInvitationStateModel>({\n name: 'byInvitation',\n\n defaults: {\n accreditationsByInvitation: [],\n byInvTotal: 0,\n totalForEvent: 0,\n byInvLoading: false,\n byInvPage: { pageIndex: 0, pageSize: 50, length: 0 },\n },\n})\n@Injectable()\nexport class RequestAccreditationByInvitationState {\n constructor(\n private store: Store,\n private accreditationService: AccreditationService,\n private boErrorService: BackOfficeErrorService\n ) {}\n\n @Selector()\n static accreditationsByInvitation(\n state: RequestAccreditationByInvitationStateModel\n ) {\n return state.accreditationsByInvitation;\n }\n\n @Selector()\n static total(state: RequestAccreditationByInvitationStateModel) {\n return state.byInvTotal;\n }\n\n @Selector()\n static totalForEvent(state: RequestAccreditationByInvitationStateModel) {\n return state.totalForEvent;\n }\n\n @Selector()\n static page(state: RequestAccreditationByInvitationStateModel) {\n return state.byInvPage;\n }\n\n @Selector()\n static loading(state: RequestAccreditationByInvitationStateModel) {\n return state.byInvLoading;\n }\n\n @Action(GetAccreditationsByInvitationId)\n getAccreditationsListByInvitationId(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>,\n action: GetAccreditationsByInvitationId\n ) {\n if (action.showLoading) {\n ctx.patchState({ byInvLoading: true });\n }\n const url: any = this.store.selectSnapshot(RouterState.state);\n const invitationId = action.id ? action.id : url.params && url.params.id;\n const eventId = url.params && url.params.eventId;\n\n const state = ctx.getState();\n return this.accreditationService\n .getAccreditationsByInvitationId(\n eventId,\n invitationId,\n state.byInvPage.pageIndex * state.byInvPage.pageSize,\n state.byInvPage.pageSize,\n state.byInvSort && state.byInvSort.active,\n state.byInvSort && state.byInvSort.direction\n )\n .pipe(\n map((res) => {\n ctx.dispatch(new GetAccreditationsByInvitationIdSuccess(res));\n }),\n catchError((err) =>\n ctx.dispatch(new GetAccreditationsByInvitationIdFailed(err))\n )\n );\n }\n\n @Action(GetAccreditationsByInvitationIdSuccess, { cancelUncompleted: true })\n getAccreditationsByInvitationIdSuccess(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>,\n action: GetAccreditationsByInvitationIdSuccess\n ) {\n ctx.patchState({\n accreditationsByInvitation: action.getAccreditationModel.accreditations,\n byInvTotal: action.getAccreditationModel.total,\n totalForEvent: action.getAccreditationModel.totalForEvent,\n byInvLoading: false,\n });\n }\n\n @Action(GetAccreditationsByInvitationIdFailed, { cancelUncompleted: true })\n getAccreditationsByInvitationIdFail(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>,\n action: GetAccreditationsByInvitationIdFailed\n ) {\n ctx.patchState({ byInvLoading: false });\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(AccrReqByInvitationChangePage, { cancelUncompleted: true })\n accrReqByInvitationChangePage(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>,\n action: AccrReqByInvitationChangePage\n ) {\n ctx.patchState({ byInvPage: action.page });\n }\n\n @Action(SetAccrByInvitationSort)\n setAccrByInvitationSort(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>,\n action: SetAccrByInvitationSort\n ) {\n const byInvPage = _.cloneDeep(ctx.getState().byInvPage);\n byInvPage.pageIndex = 0;\n ctx.patchState({ byInvSort: action.sort, byInvPage });\n }\n\n @Action(ClearAccrByInvitationState)\n clearAccrByInvitationState(\n ctx: StateContext<RequestAccreditationByInvitationStateModel>\n ) {\n ctx.setState({\n accreditationsByInvitation: [],\n byInvTotal: 0,\n totalForEvent: 0,\n byInvLoading: false,\n byInvPage: { pageIndex: 0, pageSize: 50, length: 0 },\n });\n }\n}\n","import { BasicInvitation } from '@back-office/models/invitation.model';\nimport { PageEvent } from '@angular/material/paginator';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { TableConfigurationOutput } from '@back-office/models/table-configuration.model';\nimport { ExportInvitationReportResponse } from '@back-office/models/export-invitations.model';\n\nexport class ResetInvitations {\n static readonly type = '[Invitations] Reset invitations';\n constructor() { }\n}\n\nexport class GetInvitations {\n static readonly type = '[Invitations] Get Invitations Action';\n constructor(public showLoading: boolean = true) { }\n}\n\nexport class ExportIdScanningLogs {\n static readonly type = '[Id Scanning] Export Logs';\n}\n\nexport class ExportIdScanningLogsFailed {\n static readonly type = '[Id Scanning] Export Logs Failed';\n constructor(public readonly error: HttpErrorResponse) { }\n}\n\nexport class ExportIdScanningLogsSuccess {\n static readonly type = '[Id Scanning] Export Logs Success';\n constructor(public readonly result: ExportInvitationReportResponse) { }\n}\n\nexport class ExportIdScanningLogsCompleted {\n static readonly type = '[Id Scanning] Export Logs Completed';\n constructor(public readonly url: string, public readonly exportReportId: string) { }\n}\n\nexport class ExportFilteredInvitations {\n static readonly type = '[Invitations] Export Invitations';\n}\n\nexport class ExportFilteredInvitationsFailed {\n static readonly type = '[Invitations] Export Invitations Failed';\n constructor(public readonly error: HttpErrorResponse) { }\n}\n\nexport class ExportFilteredInvitationsSuccess {\n static readonly type = '[Invitations] Export Invitations Success';\n constructor(public readonly result: ExportInvitationReportResponse) { }\n}\n\nexport class ExportFilteredInvitationsCompleted {\n static readonly type = '[Invitations] Export Invitations Completed';\n constructor(public readonly url: string, public readonly exportReportId: string) { }\n}\n\nexport class DownloadBulkInvitationTemplate {\n static readonly type =\n '[BulkInvitation] Downloading Bulk Invitation Template';\n}\n\nexport class SetPage {\n static readonly type = '[Invitations] Set Page';\n constructor(public pageEvent: PageEvent) { }\n}\n\nexport class SortInvitations {\n static readonly type = '[Invitations] Sort Invitations';\n constructor(public sort: string, public order: string) { }\n}\n\nexport class SetLastNameOption {\n static readonly type = '[Invitations] Set Last Name Option';\n constructor(public text: string = '') { }\n}\n\nexport class SetFirstNameOption {\n static readonly type = '[Invitations] Set First Name Option';\n constructor(public text: string = '') { }\n}\n\nexport class FilterByFormStatus {\n static readonly type = '[Invitations] Filter By Form Status';\n constructor(public formStatus: string) { }\n}\n\nexport class FilterByInvitationStatus {\n static readonly type = '[Invitations] Filter By Invitation Status';\n constructor(public invitationStatus: string) { }\n}\n\nexport class FilterByFormStatusExcludeSelected {\n static readonly type = '[Invitations] Filter By Form Status';\n constructor(public formStatus: string, public selected: BasicInvitation[]) { }\n}\n\nexport class RemoveInvitations {\n static readonly type = '[Invitations] Remove Invitations Action';\n constructor(\n public eventId: string,\n public ids: string[],\n public notificationMessage: string\n ) { }\n}\n\nexport class SendReminderForInvitations {\n static readonly type = '[Invitations] Send Reminder for Invitations';\n constructor(\n public eventId: string,\n public ids: string[],\n public notificationMessage: string\n ) { }\n}\n\nexport class AddPersonsForDeleteOrReminder {\n static readonly type = '[Invitations] Add Invitation For Delete Or Reminder';\n constructor(public invitations: BasicInvitation[]) { }\n}\n\nexport class ResetFilters {\n static readonly type = '[Invitations] Reset Filters';\n constructor(public getInvitations: boolean = true) { }\n}\n\nexport class ApplyFilters {\n static readonly type = '[Invitations] Apply Filters';\n constructor(\n public sites: number[] = [],\n public invitationOption: number = 0,\n public profileOption: number = 0,\n public accRequestOption: number = 0,\n public organisationOption: number = 0\n ) { }\n}\n\nexport class SetFiltersApplied {\n static readonly type = '[Invitations] Set Filters Applied';\n constructor(public state: boolean) { }\n}\n\nexport class ClearProfileOption {\n static readonly type = '[Invitations] ClearProfileOption';\n}\n\nexport class ClearInvitationsOption {\n static readonly type = '[Invitations] ClearInvitationsOption';\n}\n\nexport class ClearRequestsOption {\n static readonly type = '[Invitations] ClearRequestsOption';\n}\n\nexport class ClearOrganisationOption {\n static readonly type = '[Invitations] ClearOrganisationOption';\n}\n\nexport class SetInvitationsOption {\n static readonly type = '[Invitations] SetInvitationsOption';\n constructor(public state: number) { }\n}\n\nexport class SetProfilesOption {\n static readonly type = '[Invitations] SetProfilesOption';\n constructor(public state: number) { }\n}\n\nexport class SetRequestsOption {\n static readonly type = '[Invitations] SetRequestsOption';\n constructor(public state: number) { }\n}\nexport class SetOrganisationOption {\n static readonly type = '[Invitations] SetOrganisationOption';\n constructor(public state: number) { }\n}\nexport class RefreshInvitations {\n static readonly type = '[Invitations] Refresh Invitations for notification';\n constructor(public invitationId: string) { }\n}\n\nexport class CheckIfEmailBtnVisible {\n static readonly type = '[Invitations] Check If Email Button is Visible';\n}\n\nexport class GetInvColumnsToDisplay {\n static readonly type = '[Invitations] get columns to display';\n constructor(public eventId: string) { }\n}\n\nexport class GetInvColumnsToDisplaySuccess {\n static readonly type = '[Invitations] get columns to display success';\n constructor(public configuration: TableConfigurationOutput) { }\n}\n\nexport class GetinvColumnsToDisplayFailed {\n static readonly type = '[Invitations] get columns to display failed';\n constructor(public error: HttpErrorResponse) { }\n}\n\nexport class SetFilterPanelVisible {\n static readonly type = '[Invitations] set filter panel visible';\n constructor(public state: boolean) { }\n}\n","import { GetInvitationsModel } from '@back-office/models/get-invitations.model';\nimport { HttpHeaders, HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngxs/store';\nimport { Observable } from 'rxjs';\nimport { Invitation } from '@back-office/models/invitation.model';\nimport { ConfigState } from '@back-office/store/states/config.state';\nimport { GetFormModel } from '@projects-shared/models/get-form.model';\nimport { DeleteInvitationResponse } from '@back-office/models/delete-invitations.model';\nimport { Site } from '@back-office/models/site.model';\n\nconst httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n};\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FormService {\n constructor(private store: Store, private http: HttpClient) {}\n\n private readonly httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n getFormTemplate(eventId: number): Observable<GetFormModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.get<GetFormModel>(\n `${config.apiUrl}/forms/events/${eventId}/template`,\n this.httpOptions\n );\n }\n\n public getInvitations(\n eventId: string,\n skip: number,\n take: number,\n sort: string,\n order: string,\n organizationId: number,\n firstName: string,\n lastName: string,\n paginationToken: string,\n ids?: string[],\n invitationOption: number = 1,\n profileOption: number = 1,\n accRequestOption: number = 1,\n sitesOption: number[] = [],\n searchAfter : boolean = true\n ): Observable<GetInvitationsModel> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n const url = `${\n config.apiUrl\n // eslint-disable-next-line max-len\n }/forms/events/${eventId}/invitations`;\n\n const params: any = {};\n\n if (!!skip) {\n params.skip = skip.toString();\n }\n\n if (!!take) {\n params.take = take.toString();\n }\n\n if (!!sort) {\n params.sort = sort;\n }\n\n if (!!order) {\n params.order = order;\n }\n\n if (!!firstName) {\n params.firstName = firstName;\n }\n\n if (!!lastName) {\n params.lastName = lastName;\n }\n\n if (!!ids && ids.length > 0) {\n params.ids = ids;\n }\n\n if (!!invitationOption && invitationOption !== 1) {\n params.invitationOption = invitationOption;\n }\n\n if (!!profileOption && profileOption !== 1) {\n params.profileOption = profileOption;\n }\n\n if (!!accRequestOption && accRequestOption !== 1) {\n params.accRequestOption = accRequestOption;\n }\n\n if (!!sitesOption && sitesOption.length > 0) {\n params.sites = sitesOption;\n }\n\n if (!!organizationId && organizationId !== 0) {\n params.organizationId = organizationId;\n }\n\n if(!!paginationToken){\n params.paginationToken = paginationToken;\n }\n\n params.searchAfter = searchAfter;\n\n return this.http.get<GetInvitationsModel>(url, { params });\n }\n\n public getInvitation(id: string, eventId: string): Observable<Invitation> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${config.apiUrl}/forms/events/${eventId}/invitations/${id}`;\n return this.http.get<Invitation>(url);\n }\n\n updatePerson(\n id: string,\n eventId: string,\n answers: Map<string, any>\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n return this.http.put(\n `${config.apiUrl}/forms/events/${eventId}/${id}`,\n answers,\n this.httpOptions\n );\n }\n\n updateInvitationSites(\n invitationId: string,\n sites: Site[],\n isFormValid: boolean\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const input = { sites, isFormValid };\n return this.http.put(\n `${config.apiUrl}/forms/sites/${invitationId}`,\n input,\n this.httpOptions\n );\n }\n\n createPerson(\n eventId: string,\n answers: Map<string, any>,\n sites: Site[],\n organizationId: number\n ): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const input = { answers, sites, organizationId };\n return this.http.post(\n `${config.apiUrl}/forms/events/${eventId}`,\n input,\n this.httpOptions\n );\n }\n\n deleteInvitations(\n eventId: string,\n ids: string[]\n ): Observable<DeleteInvitationResponse> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${\n config.apiUrl\n // eslint-disable-next-line max-len\n }/forms/events/${eventId}/invitations`;\n\n const params: any = {};\n\n if (!!ids && ids.length > 0) {\n params.ids = ids;\n }\n\n return this.http.delete<DeleteInvitationResponse>(url, { params });\n }\n\n sendRemindersForInvitations(eventId: string, ids: string[]): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${\n config.apiUrl\n // eslint-disable-next-line max-len\n }/forms/events/${eventId}/reminders`;\n\n return this.http.post<any>(url, ids, httpOptions);\n }\n}\n","import {\n ResetSelectedPersons,\n CreateAccreditationRequestsSuccess,\n AddMorePersonsToAccreditationRequest,\n SetSelectedPersonForAccreditation,\n SetInvitationSearchText\n} from '@back-office/store/actions/request-accreditation.actions';\nimport { PageEvent } from '@angular/material/paginator';\nimport { State, Store, Selector, Action, StateContext } from '@ngxs/store';\nimport {\n GetCompletedPersonInvitationWithoutSelected,\n SetPage\n} from '@back-office/store/actions/request-accreditation.actions';\nimport { RouterState } from '@ngxs/router-plugin';\nimport * as _ from 'lodash';\nimport {\n BasicInvitation,\n InvitationCoreData,\n Invitation\n} from '@back-office/models/invitation.model';\nimport { FormService } from '@back-office/services/form.service';\nimport { Injectable } from '@angular/core';\n\nexport interface RequestAccreditationAddInvitationStateModel {\n completedWithoutSelected: BasicInvitation[];\n completedWithoutSelectedTotal: number;\n loading: boolean;\n invitationPage: PageEvent;\n filterKeyword: string;\n selectedPersons: BasicInvitation[] | Invitation[];\n}\n\n@State<RequestAccreditationAddInvitationStateModel>({\n name: 'addInvitations',\n\n defaults: {\n completedWithoutSelected: [],\n completedWithoutSelectedTotal: 0,\n loading: false,\n invitationPage: { pageIndex: 0, pageSize: 50, length: 0 },\n filterKeyword: '',\n selectedPersons: []\n }\n})\n@Injectable()\nexport class RequestAccreditationAddInvitationState {\n constructor(private store: Store, private formService: FormService) { }\n\n @Selector()\n static completedWithoutSelected(\n state: RequestAccreditationAddInvitationStateModel\n ) {\n return state.completedWithoutSelected;\n }\n\n @Selector()\n static completedWithoutSelectedTotal(\n state: RequestAccreditationAddInvitationStateModel\n ) {\n return state.completedWithoutSelectedTotal;\n }\n\n @Selector()\n static loading(state: RequestAccreditationAddInvitationStateModel) {\n return state.loading;\n }\n\n @Action(GetCompletedPersonInvitationWithoutSelected)\n async getCompletedPersonInvitationWithoutSelected(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>,\n action: GetCompletedPersonInvitationWithoutSelected\n ) {\n const state = ctx.getState();\n\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n ctx.patchState({\n loading: true\n });\n\n const ids = (state.selectedPersons as InvitationCoreData[]).map(\n (c) => c.id\n );\n\n const data = await this.formService\n .getInvitations(\n eventId,\n state.invitationPage.pageIndex * state.invitationPage.pageSize,\n state.invitationPage.pageSize,\n null,\n null,\n null,\n state.filterKeyword,\n '',\n '',\n ids,\n null,\n 2,\n null,\n null\n )\n .toPromise();\n\n ctx.patchState({\n completedWithoutSelected: data.invitations,\n completedWithoutSelectedTotal: data.total,\n loading: false\n });\n }\n\n @Action(SetPage)\n async setPage(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>,\n action: SetPage\n ) {\n ctx.patchState({\n invitationPage: action.pageEvent\n });\n\n ctx.dispatch(new GetCompletedPersonInvitationWithoutSelected());\n }\n\n @Action(ResetSelectedPersons)\n resetSelectedPersons(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>\n ) {\n ctx.patchState({ selectedPersons: [] });\n }\n\n @Action(CreateAccreditationRequestsSuccess)\n createAccreditationRequestsSuccess(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>\n ) {\n ctx.setState({\n completedWithoutSelected: [],\n completedWithoutSelectedTotal: 0,\n loading: false,\n invitationPage: { pageIndex: 0, pageSize: 50, length: 0 },\n filterKeyword: '',\n selectedPersons: []\n });\n }\n\n @Action(AddMorePersonsToAccreditationRequest)\n addMorePersonsToAccreditationRequest(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>,\n action: AddMorePersonsToAccreditationRequest\n ) {\n const selectedClone = _.cloneDeep(ctx.getState().selectedPersons);\n\n action.list.forEach((element) => {\n (selectedClone as BasicInvitation[]).push(element);\n });\n\n ctx.patchState({ selectedPersons: selectedClone });\n }\n\n @Action(SetSelectedPersonForAccreditation)\n setSelectedPersonForAccreditation(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>,\n action: SetSelectedPersonForAccreditation\n ) {\n ctx.patchState({ selectedPersons: action.list });\n }\n\n @Action(SetInvitationSearchText)\n setInvitationSearchText(\n ctx: StateContext<RequestAccreditationAddInvitationStateModel>,\n action: SetInvitationSearchText\n ) {\n ctx.patchState({ filterKeyword: action.text });\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Store } from '@ngxs/store';\nimport { ConfigState } from '@back-office/store/states/config.state';\n\n@Injectable()\nexport class AuthorizationService {\n private appFunctionMapping: any = {\n 'AAA.Formconfiguration': 700015,\n 'AAA.Invitations': 700016,\n 'AAA.Persons': 700017,\n 'AAA.Accreditation': 700018,\n 'AAA.EmailLog': 700019,\n 'AAA.BulkUpload': 800003,\n 'AAA.SkipDeadlines': 2008091,\n 'AAA.DeletePerson': 19050011\n };\n\n constructor(private store: Store, private httpClient: HttpClient) {\n }\n\n getAppFunctionId(key: string): number {\n const appFunctionId = this.appFunctionMapping[key];\n if (!appFunctionId) {\n throw new Error(`Cannot find mapping for AppFunction: ${key}`);\n }\n\n return this.appFunctionMapping[key];\n }\n\n checkUserAuthorizations(\n appFunctionName: string,\n eventId: number\n ): Observable<boolean> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const appFunctionId = this.getAppFunctionId(appFunctionName);\n const url = `${config.apiUrl}/account-bo/authorization/check/appfunctionid/${appFunctionId}/event/${eventId}`;\n\n return this.httpClient.get<boolean>(url);\n }\n\n isUserBlockedByDeadline(\n eventId: number\n ): Observable<boolean> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const url = `${config.apiUrl}/account-bo/authorization/events/${eventId}/user-blocked-by-deadline`;\n return this.httpClient.get<boolean>(url);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Store } from '@ngxs/store';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport {\n TableConfigurationOutput,\n TableConfigurationInput\n} from '@back-office/models/table-configuration.model';\nimport { ConfigState } from '@back-office/store/states/config.state';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TableCustomizationService {\n constructor(private store: Store, private httpClient: HttpClient) {}\n\n httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n getTablesConfiguration(eventId: string) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n const url = `${config.apiUrl}/events/${eventId}/tables-customization`;\n return this.httpClient.get<TableConfigurationOutput>(url, this.httpOptions);\n }\n\n getTablesDefaultConfiguration(eventId: string) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n const url = `${config.apiUrl}/events/${eventId}/tables-customization/default`;\n return this.httpClient.get<TableConfigurationOutput>(url, this.httpOptions);\n }\n\n saveTablesConfiguration(input: TableConfigurationInput) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n const url = `${config.apiUrl}/events/${input.eventId}/tables-customization`;\n return this.httpClient.put(url, input, this.httpOptions);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';\nimport { Store } from '@ngxs/store';\nimport { ConfigState } from '@back-office/store/states/config.state';\nimport { ExportInvitationReportResponse } from '@back-office/models/export-invitations.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ExportInvitationsService {\n constructor(private store: Store, private http: HttpClient) { }\n\n private readonly httpOptions = {\n headers: new HttpHeaders({ 'Content-Type': 'application/json' })\n };\n\n exportFilteredPersons(\n eventId: string,\n firstName: string,\n lastName: string,\n invitationOption: number = 1,\n profileOption: number = 1,\n accRequestOption: number = 1,\n sitesOption: number[] = [],\n organisationOption: number\n ) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const paramsFilter: any = {};\n\n if (!!firstName) {\n paramsFilter.firstName = firstName;\n }\n\n if (!!lastName) {\n paramsFilter.lastName = lastName;\n }\n\n if (!!invitationOption && invitationOption !== 1) {\n paramsFilter.invitationOption = invitationOption;\n }\n\n if (!!profileOption && profileOption !== 1) {\n paramsFilter.profileOption = profileOption;\n }\n\n if (!!accRequestOption && accRequestOption !== 1) {\n paramsFilter.accRequestOption = accRequestOption;\n }\n\n if (!!sitesOption && sitesOption.length > 0) {\n paramsFilter.sites = sitesOption;\n }\n\n if (!!organisationOption && organisationOption !== 0) {\n paramsFilter.organizationId = organisationOption;\n }\n\n return this.http.get<ExportInvitationReportResponse>(\n `${config.apiUrl}/export/invitations/${eventId}/persons`,\n {\n headers: this.httpOptions.headers,\n params: paramsFilter\n }\n );\n }\n\n exportFilteredAccreditationRequests(\n eventId: string,\n firstName: string,\n lastName: string,\n accreditationId: number,\n accreditationStatuses: number[],\n accreditationTypes: number[],\n organizationId: number,\n matchDay: number,\n match: number\n ) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const paramsFilter: any = {};\n\n if (!!firstName) {\n paramsFilter.firstName = firstName;\n }\n\n \n if (!!lastName) {\n paramsFilter.lastName = lastName;\n }\n\n if (!!accreditationId) {\n paramsFilter.accreditationId = accreditationId;\n }\n\n\n if (!!match && match !== 0) {\n paramsFilter.match = match;\n }\n\n if (!!matchDay && matchDay !== 0) {\n paramsFilter.matchDay = matchDay;\n }\n\n if (!!organizationId && organizationId !== 0) {\n paramsFilter.organizationId = organizationId;\n }\n\n if (!!accreditationStatuses && accreditationStatuses.length > 0) {\n paramsFilter.accreditationStatuses = accreditationStatuses;\n }\n\n if (!!accreditationTypes && accreditationTypes.length > 0) {\n paramsFilter.accreditationTypes = accreditationTypes;\n }\n\n return this.http.get<ExportInvitationReportResponse>(\n `${config.apiUrl}/export/invitations/${eventId}/accreditation-requests`,\n {\n headers: this.httpOptions.headers,\n params: paramsFilter\n }\n );\n }\n\n\n exportIdScanningLogs(\n eventId: string\n ) {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n return this.http.get<ExportInvitationReportResponse>(\n `${config.apiUrl}/export/id-scanning/${eventId}`,\n {\n headers: this.httpOptions.headers\n }\n );\n }\n}\n","import { TableCustomizationService } from './../../services/table-customization.service';\nimport {\n FetchLegalConditions,\n SetLegalConditions\n} from './../../../../../shared/store/actions/legal-conditions.actions';\nimport { BackOfficeErrorService } from '@back-office/services/bo-error.service';\nimport { RequestAccreditationByInvitationState } from './request-accreditation-by-invitation.state';\nimport {\n AddAccreditationRequestForDelete,\n ResetFilters,\n ResetAccreditationsFilters,\n ApplyAccreditationsFilters,\n SetAccreditationsFiltersApplied,\n ResetSelectedPersons,\n AccrReqChangePage,\n SetAccrSort,\n ClearMatchDay,\n ClearMatch,\n SetMatchDay,\n SetMatch,\n ResetAccreditations,\n RetryAccreditationRequestWentOnError,\n RetryAccreditationRequestById,\n RetryAccreditationRequestByIdSuccess,\n RetryAccreditationRequestByIdFailed,\n SetOrganizationFilter,\n GetAccrColumnsToDisplay,\n GetAccrColumnsToDisplaySuccess,\n GetAccrColumnsToDisplayFailed,\n SetFirstNameOption,\n SetLastNameOption,\n SetAccreditationIdOption\n} from '@back-office/store/actions/request-accreditation.actions';\nimport {\n BasicInvitation,\n Invitation\n} from '@back-office/models/invitation.model';\nimport { Store, StateContext, State, Selector, Action } from '@ngxs/store';\nimport {\n SetSelectedPersonForAccreditation,\n AddMorePersonsToAccreditationRequest,\n GetTermsAndConditions,\n GetTermsAndConditionsFailed,\n GetTermsAndConditionsSuccess,\n GetAccreditationTypes,\n GetAccreditationTypesSuccess,\n GetAccreditationTypesFailed,\n GetAccreditationTypesByEvent,\n GetAccreditationTypesByEventSuccess,\n GetAccreditationTypesByEventFailed,\n CreateAccreditationRequests,\n CreateAccreditationRequestsSuccess,\n CreateAccreditationRequestsFailed,\n GetAccreditationsSuccess,\n GetAccreditationsFailed,\n GetAccreditations,\n RemoveAccreditationRequests,\n RemoveAccreditationRequestsSuccess,\n RemoveAccreditationRequestsFailed,\n ExportFilteredAccreditations,\n ExportFilteredAccreditationsFailed,\n ExportFilteredAccreditationsSuccess,\n ExportFilteredAccreditationsCompleted\n} from '@back-office/store/actions/request-accreditation.actions';\nimport {\n GetCategories,\n GetCategoriesSuccess,\n GetCategoriesFailed,\n GetSubCategoriesOfCategory,\n GetSubCategoriesOfCategoryFailed,\n GetSubCategoriesOfCategorySuccess\n} from '@back-office/store/actions/request-accreditation.actions';\nimport { Category } from '@back-office/models/category.model';\nimport {\n SendErrorMessage,\n SendOkMessage\n} from '@projects-shared/app-message/app-message.actions';\nimport { AuthorizationService } from '@back-office/services/authorization.service';\nimport { AccreditationService } from '@back-office/services/accreditation.service';\nimport { map, catchError } from 'rxjs/operators';\nimport { RouterState, Navigate } from '@ngxs/router-plugin';\nimport { SubCategory } from '@back-office/models/sub-category.model';\nimport { TermsAndConditions } from '@back-office/models/terms-and-conditions.model';\nimport { AccreditationType } from '@back-office/models/accreditation-type.model';\nimport { AccreditationRequestOutput } from '@back-office/models/accreditation-request.model';\nimport * as _ from 'lodash';\nimport { PageEvent } from '@angular/material/paginator';\nimport { Sort } from '@angular/material/sort';\nimport { GetInvitations } from '@back-office/store/actions/invitation.actions';\nimport { AccreditationFilter } from '@back-office/models/accreditation-filter.model';\nimport { RequestAccreditationAddInvitationState } from './request-accreditation-add-invitation.state';\nimport { Injectable } from '@angular/core';\nimport { EMPTY } from 'rxjs';\nimport { ExportInvitationsService } from '../../services/export-invitations.service';\nimport { DatePipe } from '@angular/common';\nimport { saveAs } from 'file-saver';\nimport { patch } from '@ngxs/store/operators';\n\nexport interface RequestAccreditationStateModel {\n selectedPersons: BasicInvitation[] | Invitation[];\n availableCategories: Category[];\n availableSubCategories: SubCategory[];\n termsAndConditions?: TermsAndConditions;\n availableAccreditationTypes: AccreditationType[];\n availableAccreditationTypesByEvent: AccreditationType[];\n accreditations: AccreditationRequestOutput[];\n selectedForDeletion: AccreditationRequestOutput[];\n total: number;\n totalForEvent: number;\n loading: boolean;\n accrReqPage: PageEvent;\n accrFilter: AccreditationFilter;\n accrFirstName?: string;\n accrLastName?: string;\n accrId?: number;\n accrSort?: Sort;\n columnsToDisplay: string[];\n downloading: boolean;\n downloadingId: string;\n paginationToken: string;\n}\n\n@State<RequestAccreditationStateModel>({\n name: 'requestaccreditation',\n\n defaults: {\n selectedPersons: [],\n availableCategories: [],\n availableSubCategories: [],\n availableAccreditationTypes: [],\n availableAccreditationTypesByEvent: [],\n accreditations: [],\n selectedForDeletion: [],\n total: 0,\n totalForEvent: 0,\n loading: false,\n accrReqPage: { pageIndex: 0, pageSize: 50, length: 0, previousPageIndex: 0 },\n accrFilter: {\n isApplied: false,\n option: 1,\n types: [],\n statuses: [],\n organizationId: 0,\n matchDay: 0,\n match: 0\n },\n columnsToDisplay: [],\n downloading: false,\n downloadingId: '',\n paginationToken: ''\n },\n children: [\n RequestAccreditationByInvitationState,\n RequestAccreditationAddInvitationState\n ]\n})\n@Injectable()\nexport class RequestAccreditationState {\n constructor(\n private store: Store,\n private authorizationService: AuthorizationService,\n private accreditationService: AccreditationService,\n private boErrorService: BackOfficeErrorService,\n private tableCustomizationService: TableCustomizationService,\n private exportInvitationsService: ExportInvitationsService,\n private datePipe: DatePipe\n ) { }\n\n @Selector()\n static selectedPersons(state: RequestAccreditationStateModel) {\n return state.selectedPersons;\n }\n\n @Selector()\n static personCategories(state: RequestAccreditationStateModel) {\n return state.availableCategories;\n }\n\n @Selector()\n static personSubCategories(state: RequestAccreditationStateModel) {\n return state.availableSubCategories;\n }\n\n @Selector()\n static termsAndConditions(state: RequestAccreditationStateModel) {\n return state.termsAndConditions;\n }\n\n @Selector()\n static accreditationTypes(state: RequestAccreditationStateModel) {\n return state.availableAccreditationTypes;\n }\n\n @Selector()\n static accreditationTypesByEvent(state: RequestAccreditationStateModel) {\n return state.availableAccreditationTypesByEvent;\n }\n\n @Selector()\n static getAllAccreditations(model: RequestAccreditationStateModel) {\n return model.accreditations;\n }\n\n @Selector()\n static selectedForDeletion(state: RequestAccreditationStateModel) {\n return state.selectedForDeletion;\n }\n\n @Selector()\n static total(state: RequestAccreditationStateModel) {\n return state.total;\n }\n\n @Selector()\n static totalForEvent(state: RequestAccreditationStateModel) {\n return state.totalForEvent;\n }\n\n @Selector()\n static loading(state: RequestAccreditationStateModel) {\n return state.loading;\n }\n\n @Selector()\n static downloading(state: RequestAccreditationStateModel) {\n return state.downloading;\n }\n\n @Selector()\n static accreditationsFilter(state: RequestAccreditationStateModel) {\n return state.accrFilter;\n }\n\n @Selector()\n static accreditationRequestPage(state: RequestAccreditationStateModel) {\n return state.accrReqPage;\n }\n\n @Selector()\n static columnsToDisplay(state: RequestAccreditationStateModel) {\n return state.columnsToDisplay;\n }\n\n @Action(ResetAccreditations)\n resetAccreditations(ctx: StateContext<RequestAccreditationStateModel>) {\n ctx.patchState({\n accreditations: [],\n totalForEvent: undefined,\n total: undefined\n });\n }\n\n @Action(SetSelectedPersonForAccreditation)\n setSelectedPersonForAccreditation(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetSelectedPersonForAccreditation\n ) {\n ctx.patchState({ selectedPersons: action.list });\n }\n\n @Action(AddMorePersonsToAccreditationRequest)\n addMorePersonsToAccreditationRequest(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: AddMorePersonsToAccreditationRequest\n ) {\n const state = ctx.getState();\n let selected = [];\n selected = state.selectedPersons;\n\n const newData = Object.assign([], selected);\n\n action.list.forEach((element) => {\n newData.push(element);\n });\n\n ctx.patchState({ selectedPersons: newData });\n\n ctx.dispatch(new ResetFilters());\n }\n\n @Action(GetCategories)\n getCategories(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetCategories\n ) {\n ctx.patchState({\n availableAccreditationTypes: [],\n availableSubCategories: [],\n loading: true\n });\n const appFuncId = this.authorizationService.getAppFunctionId(\n action.appFunctionName\n );\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n return this.accreditationService\n .getPersonCategories(eventId as number, appFuncId)\n .pipe(\n map((res) => ctx.dispatch(new GetCategoriesSuccess(res))),\n catchError((err) => ctx.dispatch(new GetCategoriesFailed()))\n );\n }\n\n @Action(GetCategoriesSuccess)\n getCategoriesSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetCategoriesSuccess\n ) {\n const availableCategories: Category[] = action.categories;\n ctx.patchState({ availableCategories, loading: false });\n }\n\n @Action(GetCategoriesFailed)\n getCategoriesFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetCategoriesFailed\n ) {\n ctx.patchState({ loading: false });\n this.store.dispatch(\n new SendErrorMessage('Failed to load person categories')\n );\n }\n\n @Action(GetSubCategoriesOfCategory)\n getSubCategoriesOfCategory(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetSubCategoriesOfCategory\n ) {\n ctx.patchState({ availableAccreditationTypes: [], loading: true });\n const appFuncId = this.authorizationService.getAppFunctionId(\n action.appFunctionName\n );\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n return this.accreditationService\n .getPersonSubCategories(eventId as number, appFuncId, action.categoryId)\n .pipe(\n map((res) => ctx.dispatch(new GetSubCategoriesOfCategorySuccess(res))),\n catchError((err) =>\n ctx.dispatch(new GetSubCategoriesOfCategoryFailed())\n )\n );\n }\n\n @Action(GetSubCategoriesOfCategorySuccess)\n getSubCategoriesOfCategorySuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetSubCategoriesOfCategorySuccess\n ) {\n const availableSubCategories: SubCategory[] = action.subcategories;\n ctx.patchState({ availableSubCategories, loading: false });\n }\n\n @Action(GetSubCategoriesOfCategoryFailed)\n getSubCategoriesOfCategoryFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetSubCategoriesOfCategoryFailed\n ) {\n ctx.patchState({ loading: false });\n this.store.dispatch(\n new SendErrorMessage('Failed to load person sub-categories')\n );\n }\n\n @Action(GetTermsAndConditions)\n getTermsAndConditions(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetTermsAndConditions\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n return this.accreditationService\n .getTermsAndConditions(eventId as number)\n .pipe(\n map((res) => ctx.dispatch(new GetTermsAndConditionsSuccess(res))),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new GetTermsAndConditionsFailed(err));\n })\n );\n }\n\n @Action(GetTermsAndConditionsSuccess)\n getTermsAndConditionsSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetTermsAndConditionsSuccess\n ) {\n const termsAndConditions = action.tac;\n ctx.patchState({ termsAndConditions });\n ctx.dispatch(new SetLegalConditions(termsAndConditions));\n }\n\n @Action(GetTermsAndConditionsFailed)\n getTermsAndConditionsFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n { error }: GetTermsAndConditionsFailed\n ) {\n this.store.dispatch(\n new SendErrorMessage(\n error.error && error.error.Message ? error.error.Message : error.message\n )\n );\n this.boErrorService.redirectToErrorPage(error);\n }\n\n @Action(FetchLegalConditions)\n fetchLegalConditions(ctx: StateContext<RequestAccreditationStateModel>) {\n ctx.dispatch(new GetTermsAndConditions());\n }\n\n @Action(GetAccreditationTypes)\n getAccreditationTypes(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypes\n ) {\n ctx.patchState({ loading: true });\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n return this.accreditationService\n .getAccreditationTypes(\n eventId as number,\n action.categoryId,\n action.subcategoryId,\n null\n )\n .pipe(\n map((res) => ctx.dispatch(new GetAccreditationTypesSuccess(res))),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new GetAccreditationTypesFailed());\n })\n );\n }\n\n @Action(GetAccreditationTypesSuccess)\n getAccreditationTypesSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypesSuccess\n ) {\n const availableAccreditationTypes = action.types;\n ctx.patchState({ availableAccreditationTypes, loading: false });\n }\n\n @Action(GetAccreditationTypesFailed)\n getAccreditationTypesFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypesFailed\n ) {\n ctx.patchState({ loading: false });\n this.store.dispatch(\n new SendErrorMessage('Failed to get the accreditation types')\n );\n }\n\n @Action(CreateAccreditationRequests)\n createAccreditationRequests(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: CreateAccreditationRequests\n ) {\n ctx.patchState({ loading: true });\n return this.accreditationService.createAccreditation(action.input).pipe(\n map((res) => ctx.dispatch(new CreateAccreditationRequestsSuccess())),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new CreateAccreditationRequestsFailed(err));\n })\n );\n }\n\n @Action(CreateAccreditationRequestsSuccess)\n createAccreditationRequestsSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: CreateAccreditationRequestsSuccess\n ) {\n const s = ctx.getState();\n const numberOfPersons = s.selectedPersons;\n ctx.patchState({ loading: false, selectedPersons: [] });\n if (numberOfPersons.length > 1) {\n this.store.dispatch(new SendOkMessage('Accreditation requests created'));\n } else {\n this.store.dispatch(new SendOkMessage('Accreditation request created'));\n }\n ctx.dispatch(\n new Navigate(\n [\n 'invitations',\n (this.store.selectSnapshot(RouterState.state) as any).params.eventId\n ],\n { tab: '1' }\n )\n );\n }\n\n @Action(CreateAccreditationRequestsFailed)\n createAccreditationRequestsFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: CreateAccreditationRequestsFailed\n ) {\n ctx.patchState({ loading: false });\n this.store.dispatch(new SendErrorMessage(action.error.error.Message));\n }\n\n @Action(GetAccreditations)\n getAccreditationsList(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditations\n ) {\n if (action.showLoading) {\n ctx.patchState({\n loading: true,\n });\n }\n\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n if (!eventId) {\n return EMPTY;\n }\n\n const state = ctx.getState();\n return this.accreditationService\n .getAccreditations(\n eventId,\n state.paginationToken?.length > 0 ? ((Math.abs(state.accrReqPage.pageIndex - state.accrReqPage.previousPageIndex) - 1) * state.accrReqPage.pageSize) : state.accrReqPage.pageIndex * state.accrReqPage.pageSize,\n state.accrReqPage.pageSize,\n state.accrFirstName,\n state.accrLastName,\n state.accrId,\n state.accrSort && state.accrSort.active,\n state.accrSort && state.accrSort.direction,\n state.accrFilter.statuses,\n state.accrFilter.types,\n state.accrFilter.organizationId,\n state.accrFilter.matchDay,\n state.accrFilter.match,\n state.paginationToken,\n state.accrReqPage.pageIndex == 0 ? true : (state.accrReqPage.pageIndex >= state.accrReqPage.previousPageIndex)\n )\n .pipe(\n map((res) => {\n ctx.dispatch(new GetAccreditationsSuccess(res));\n }),\n catchError((err) => ctx.dispatch(new GetAccreditationsFailed(err)))\n );\n }\n\n @Action(GetAccreditationsSuccess, { cancelUncompleted: true })\n getAccreditationsSuccessAction(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationsSuccess\n ) {\n ctx.patchState({\n accreditations: action.getAccreditationModel.accreditations,\n total: action.getAccreditationModel.total,\n totalForEvent: action.getAccreditationModel.totalForEvent,\n loading: false\n });\n }\n\n @Action(GetAccreditationsFailed, { cancelUncompleted: true })\n getAccreditationsFailAction(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationsFailed\n ) {\n ctx.patchState({\n loading: false\n });\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(RemoveAccreditationRequests)\n removeAccreditations(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: RemoveAccreditationRequests\n ) {\n return this.accreditationService.deleteAccreditations(action.input).pipe(\n map((res) => {\n ctx.dispatch(new RemoveAccreditationRequestsSuccess(res));\n ctx.dispatch(new GetAccreditations());\n }),\n catchError((err) =>\n ctx.dispatch(new RemoveAccreditationRequestsFailed(err))\n )\n );\n }\n\n @Action(RemoveAccreditationRequestsSuccess, { cancelUncompleted: true })\n removeAccreditationsSuccessAction(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: RemoveAccreditationRequestsSuccess\n ) {\n ctx.dispatch(new GetInvitations());\n if (action.result.deleted >= 1) {\n this.store.dispatch(\n new SendOkMessage(\n `${action.result.deleted} accreditation have been requested to be deleted.`\n )\n );\n }\n\n ctx.patchState({ selectedForDeletion: [] });\n }\n\n @Action(RemoveAccreditationRequestsFailed, { cancelUncompleted: true })\n removeAccreditationsFailAction(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: RemoveAccreditationRequestsFailed\n ) {\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(AddAccreditationRequestForDelete)\n async addPersonForDelete(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: AddAccreditationRequestForDelete\n ) {\n ctx.patchState({ selectedForDeletion: action.accreditation });\n }\n\n private changeStatusOfAccreditationRequestTo(\n status: string,\n accreditations: AccreditationRequestOutput[],\n accrReqId: string\n ) {\n return _.cloneDeep(accreditations).map((a: AccreditationRequestOutput) => {\n if (a.id === accrReqId) {\n a.accreditationStatus = status;\n }\n return a;\n });\n }\n\n @Action(GetAccreditationTypesByEvent)\n getAccreditationTypesByEvent(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypesByEvent\n ) {\n return this.accreditationService\n .getAccreditationTypesByEvent(action.eventId)\n .pipe(\n map((res) =>\n ctx.dispatch(new GetAccreditationTypesByEventSuccess(res))\n ),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new GetAccreditationTypesByEventFailed());\n })\n );\n }\n\n @Action(GetAccreditationTypesByEventSuccess)\n getAccreditationTypesByEventSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypesByEventSuccess\n ) {\n const availableAccreditationTypes = action.types;\n ctx.patchState({\n availableAccreditationTypesByEvent: availableAccreditationTypes\n });\n }\n\n @Action(GetAccreditationTypesByEventFailed)\n getAccreditationTypesByEventFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: GetAccreditationTypesByEventFailed\n ) {\n this.store.dispatch(\n new SendErrorMessage('Failed to get the accreditation types by event')\n );\n }\n\n @Action(RetryAccreditationRequestWentOnError)\n retryAllAccreditationRequestOnError(\n ctx: StateContext<boolean>,\n action: RetryAccreditationRequestWentOnError\n ) {\n return this.accreditationService.retryAllAccreditationsRequestInError(\n action.eventId\n );\n }\n\n @Action(RetryAccreditationRequestById)\n retryAccreditationRequestById(\n ctx: StateContext<boolean>,\n action: RetryAccreditationRequestById\n ) {\n return this.accreditationService\n .retryAccreditationRequestById(\n action.eventId,\n action.accreditationRequestId\n )\n .pipe(\n map((res) =>\n ctx.dispatch(new RetryAccreditationRequestByIdSuccess(res))\n ),\n catchError((err) => {\n console.error(err);\n return ctx.dispatch(new RetryAccreditationRequestByIdFailed());\n })\n );\n }\n\n @Action(RetryAccreditationRequestByIdFailed)\n retryAccreditationRequestByIdFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: RetryAccreditationRequestByIdFailed\n ) {\n this.store.dispatch(new SendErrorMessage('Failed to request'));\n }\n\n @Action(ResetAccreditationsFilters)\n resetAccreditationsFilters(\n ctx: StateContext<RequestAccreditationStateModel>\n ) {\n const accrFilter: AccreditationFilter = _.cloneDeep(\n ctx.getState().accrFilter\n );\n accrFilter.types = accrFilter.statuses = [];\n accrFilter.matchDay = accrFilter.match = 0;\n accrFilter.isApplied = false;\n accrFilter.organizationId = accrFilter.organizationId = 0;\n ctx.patchState({ accrFilter });\n\n ctx.dispatch(new GetAccreditations());\n }\n\n @Action(ApplyAccreditationsFilters)\n async applyAccreditationsFilters(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: ApplyAccreditationsFilters\n ) {\n const {\n accrFilter,\n accrReqPage\n }: {\n accrFilter: AccreditationFilter;\n accrReqPage: PageEvent;\n } = _.cloneDeep({\n accrFilter: ctx.getState().accrFilter,\n accrReqPage: ctx.getState().accrReqPage\n });\n accrFilter.isApplied = true;\n accrFilter.types = action.accreditationTypes;\n accrFilter.statuses = action.accreditationStatuses;\n accrFilter.matchDay = action.matchDay;\n accrFilter.organizationId = action.organizationId;\n accrFilter.match = action.match;\n\n accrReqPage.pageIndex = 0;\n\n ctx.patchState({ accrFilter, accrReqPage, paginationToken: '' });\n ctx.dispatch(new GetAccreditations());\n }\n\n @Action(SetAccreditationsFiltersApplied)\n async setAccreditationsFiltersApplied(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetAccreditationsFiltersApplied\n ) {\n const accrFilter: AccreditationFilter = _.cloneDeep(\n ctx.getState().accrFilter\n );\n accrFilter.isApplied = action.state;\n ctx.patchState({\n accrFilter\n });\n }\n\n @Action(ResetSelectedPersons)\n resetSelectedPersons(ctx: StateContext<RequestAccreditationStateModel>) {\n ctx.patchState({ selectedPersons: [] });\n }\n\n @Action(AccrReqChangePage)\n accrReqChangePage(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: AccrReqChangePage\n ) {\n const currentState = ctx.getState();\n ctx.patchState({\n\n accrReqPage: action.page,\n paginationToken: action.page.pageIndex == 0 ? '' : (action.page.pageIndex >= action.page.previousPageIndex) ? currentState.accreditations[currentState.accreditations.length - 1].paginationToken : currentState.accreditations[0].paginationToken\n\n });\n }\n\n @Action(SetFirstNameOption)\n async setFirstNameOption(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetFirstNameOption\n ) {\n const accrReqPage = _.cloneDeep(ctx.getState().accrReqPage);\n accrReqPage.pageIndex = 0;\n ctx.patchState({\n accrFirstName: action.text,\n accrReqPage,\n paginationToken: ''\n });\n }\n\n @Action(SetLastNameOption)\n async setLastNameOption(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetLastNameOption\n ) {\n const accrReqPage = _.cloneDeep(ctx.getState().accrReqPage);\n accrReqPage.pageIndex = 0;\n ctx.patchState({\n accrLastName: action.text,\n accrReqPage,\n paginationToken: ''\n });\n }\n\n @Action(SetAccreditationIdOption)\n async setAccreditationIdOption(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetAccreditationIdOption\n ) {\n const accrReqPage = _.cloneDeep(ctx.getState().accrReqPage);\n accrReqPage.pageIndex = 0;\n ctx.patchState({\n accrId: action.accrId,\n accrReqPage,\n paginationToken: ''\n });\n }\n\n\n @Action(SetAccrSort)\n setAccrSort(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetAccrSort\n ) {\n const accrReqPage = _.cloneDeep(ctx.getState().accrReqPage);\n accrReqPage.pageIndex = 0;\n ctx.patchState({ accrSort: action.sort, accrReqPage });\n }\n\n @Action(ClearMatchDay)\n async ClearMatchDay(ctx: StateContext<RequestAccreditationStateModel>) {\n const accrFilter: AccreditationFilter = _.cloneDeep(\n ctx.getState().accrFilter\n );\n accrFilter.matchDay = 0;\n ctx.patchState({\n accrFilter\n });\n }\n\n @Action(ClearMatch)\n async ClearMatch(ctx: StateContext<RequestAccreditationStateModel>) {\n const accrFilter: AccreditationFilter = _.cloneDeep(\n ctx.getState().accrFilter\n );\n accrFilter.match = 0;\n ctx.patchState({\n accrFilter\n });\n }\n\n @Action(SetMatchDay)\n async setMatchday(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetMatchDay\n ) {\n const {\n accrFilter\n }: {\n accrFilter: AccreditationFilter;\n } = _.cloneDeep({\n accrFilter: ctx.getState().accrFilter\n });\n accrFilter.matchDay = action.state;\n\n ctx.patchState({ accrFilter });\n }\n\n @Action(SetMatch)\n async setMatch(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetMatch\n ) {\n const {\n accrFilter\n }: {\n accrFilter: AccreditationFilter;\n } = _.cloneDeep({\n accrFilter: ctx.getState().accrFilter\n });\n accrFilter.match = action.state;\n\n ctx.patchState({ accrFilter });\n }\n\n @Action(SetOrganizationFilter)\n async setOrganizationFilter(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: SetOrganizationFilter\n ) {\n const {\n accrFilter\n }: {\n accrFilter: AccreditationFilter;\n } = _.cloneDeep({\n accrFilter: ctx.getState().accrFilter\n });\n accrFilter.organizationId = action.state;\n ctx.patchState({ accrFilter });\n }\n\n @Action(GetAccrColumnsToDisplay)\n getColumnsToDisplay(\n ctx: StateContext<RequestAccreditationStateModel>,\n { eventId }: GetAccrColumnsToDisplay\n ) {\n return this.tableCustomizationService.getTablesConfiguration(eventId).pipe(\n map((response) =>\n ctx.dispatch(new GetAccrColumnsToDisplaySuccess(response))\n ),\n catchError((error) =>\n ctx.dispatch(new GetAccrColumnsToDisplayFailed(error))\n )\n );\n }\n\n @Action(GetAccrColumnsToDisplaySuccess)\n getColumnsToDisplaySuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n { configuration }: GetAccrColumnsToDisplaySuccess\n ) {\n ctx.patchState({\n columnsToDisplay: [\n 'select',\n ...configuration.accreditationsVisibleColumns\n ]\n });\n }\n\n @Action(GetAccrColumnsToDisplayFailed)\n getColumnsToDisplayFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n { error }: GetAccrColumnsToDisplayFailed\n ) {\n this.boErrorService.redirectToErrorPage(error);\n }\n\n @Action(ExportFilteredAccreditations)\n exportFilteredAccreditations(\n ctx: StateContext<RequestAccreditationStateModel>\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const state = ctx.getState();\n ctx.patchState({ downloading: true });\n\n return this.exportInvitationsService\n .exportFilteredAccreditationRequests(\n url.params.eventId,\n state.accrFirstName,\n state.accrLastName,\n state.accrId,\n state.accrFilter.statuses,\n state.accrFilter.types,\n state.accrFilter.organizationId,\n state.accrFilter.matchDay,\n state.accrFilter.match\n )\n .pipe(\n map((res) =>\n ctx.dispatch(new ExportFilteredAccreditationsSuccess(res))\n ),\n catchError((err) =>\n ctx.dispatch(new ExportFilteredAccreditationsFailed(err))\n )\n );\n }\n\n @Action(ExportFilteredAccreditationsSuccess)\n exportFilteredAccreditationsSuccess(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: ExportFilteredAccreditationsSuccess\n ) {\n if (!action.result.success) {\n ctx.patchState({ downloading: false });\n this.store.dispatch(\n new SendErrorMessage('Export configuration is missing.')\n );\n } else {\n ctx.patchState({ downloadingId: action.result.exportReportId });\n this.store.dispatch(\n new SendOkMessage('Accreditations list export has been scheduled.')\n );\n }\n }\n\n @Action(ExportFilteredAccreditationsFailed)\n exportFilteredAccreditationsFailed(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: ExportFilteredAccreditationsFailed\n ) {\n ctx.patchState({ downloading: false });\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(ExportFilteredAccreditationsCompleted)\n exportFilteredAccreditationsCompleted(\n ctx: StateContext<RequestAccreditationStateModel>,\n action: ExportFilteredAccreditationsCompleted\n ) {\n const state = ctx.getState();\n if (state.downloadingId === action.exportReportId) {\n ctx.patchState({\n downloading: false,\n downloadingId: ''\n });\n\n let fileName = new Date().toString();\n fileName = this.datePipe\n .transform(fileName, 'yyyy-MM-dd HH.mm')\n .concat(' - AAP Filtered accreditations export.xlsx');\n\n saveAs(action.url, fileName);\n }\n }\n}\n","import {\n FindOrganizationsModel,\n Organization\n} from '@back-office/models/organization.model';\n\nexport class LoadOrganizations {\n static readonly type = '[Organizations] Try to load organizations for BO';\n constructor(\n public params: FindOrganizationsModel,\n public take?: number,\n public skip?: number,\n public reset?: boolean,\n public type?: string\n ) { }\n}\n\nexport class SetOrganization {\n static readonly type = '[Organizations] Try to set organization';\n constructor(public model: Organization) { }\n}\n\nexport class RemoveOrganization {\n static readonly type = '[Organizations] Try to remove organization';\n constructor() { }\n}\n\nexport class ResetOrganizations {\n static readonly type = '[Organizations] Try to reset organizations state';\n constructor() { }\n}\n","import { ConfigState } from '@back-office/store/states/config.state';\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngxs/store';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport {\n Organization,\n FindOrganizationsModel,\n OrganizationResponse\n} from '@back-office/models/organization.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class OrganizationService {\n private httpUrl: string;\n constructor(private store: Store, private httpClient: HttpClient) { }\n\n public getOrganisations(\n eventId: string,\n input: FindOrganizationsModel,\n take: number,\n skip: number,\n type: string = \"\"\n ): Observable<OrganizationResponse> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n this.httpUrl = config.apiUrl + '/organizations/';\n\n const params: any = {};\n for (const field of Object.keys(input)) {\n params[field] = input[field].toString();\n }\n\n if (!!take) {\n params.take = take.toString();\n }\n\n if (!!skip) {\n params.skip = skip.toString();\n }\n\n return this.httpClient.get<OrganizationResponse>(this.httpUrl + eventId + (type.length > 0 ? \"/\" + type : \"\"), {\n params\n });\n }\n}\n","import { Selector, Action, StateContext, State, Store } from '@ngxs/store';\nimport { Organization } from '@back-office/models/organization.model';\nimport {\n LoadOrganizations,\n SetOrganization,\n RemoveOrganization,\n ResetOrganizations\n} from '@back-office/store/actions/organizations.actions';\nimport { OrganizationService } from '@back-office/services/organization.service';\nimport { RouterState, Navigate } from '@ngxs/router-plugin';\nimport { BackOfficeErrorService } from '../../services/bo-error.service';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\nexport interface OrganizationsStateModel {\n loading: boolean;\n organizations: Organization[];\n total: number;\n selectedOrganization: Organization;\n visible?: boolean;\n type: string;\n}\n\n@State<OrganizationsStateModel>({\n name: 'organizations',\n defaults: {\n loading: false,\n organizations: null,\n total: 0,\n selectedOrganization: null,\n type: \"\"\n }\n})\n@Injectable()\nexport class OrganizationsState {\n constructor(\n private store: Store,\n private orgService: OrganizationService,\n private boErrorService: BackOfficeErrorService\n ) { }\n\n @Selector()\n static loading(state: OrganizationsStateModel) {\n return state.loading;\n }\n\n @Selector()\n static organizations(state: OrganizationsStateModel) {\n return state.organizations;\n }\n\n @Selector()\n static total(state: OrganizationsStateModel) {\n return state.total;\n }\n\n @Selector()\n static selectedOrganization(state: OrganizationsStateModel) {\n return state.selectedOrganization;\n }\n\n @Selector()\n static visible(state: OrganizationsStateModel) {\n return state.visible;\n }\n\n @Action(LoadOrganizations, { cancelUncompleted: true })\n async GetOrganisations(\n ctx: StateContext<OrganizationsStateModel>,\n action: LoadOrganizations\n ) {\n if (action.reset) {\n ctx.patchState({ organizations: [] });\n }\n ctx.patchState({ loading: true });\n\n const data = await this.orgService\n .getOrganisations(\n action.params.eventId,\n action.params,\n action.take,\n action.skip,\n action.type\n )\n .toPromise()\n .catch((err) => {\n console.error(err);\n this.boErrorService.redirectToErrorPage(\n new HttpErrorResponse({ status: 500 })\n );\n });\n\n const state = ctx.getState();\n let available = true;\n\n if (Object.keys(action.params).length === 1) {\n available = (data ? data.total : 0) > 1;\n\n if (data && !available && data.results.length === 1) {\n ctx.patchState({ selectedOrganization: data.results[0] });\n }\n }\n\n if (state.organizations) {\n ctx.patchState({\n organizations: data\n ? appendNoDuplicatesOrgs(state.organizations, data.results)\n : null,\n loading: false,\n total: data ? data.total : 0,\n visible: available\n });\n } else {\n ctx.patchState({\n organizations: data ? data.results : null,\n loading: false,\n total: data ? data.total : 0,\n visible: available\n });\n }\n\n if (data && data.noTargetOrgAssociated) {\n ctx.dispatch(new Navigate(['/no-target-orgs']));\n }\n }\n\n @Action(SetOrganization)\n SetSelectedOrganization(\n ctx: StateContext<OrganizationsStateModel>,\n action: SetOrganization\n ) {\n ctx.patchState({ selectedOrganization: action.model });\n }\n\n @Action(RemoveOrganization)\n removeSelectedOrganization(\n ctx: StateContext<OrganizationsStateModel>,\n action: RemoveOrganization\n ) {\n ctx.patchState({ selectedOrganization: null });\n }\n\n @Action(ResetOrganizations)\n resetState(\n ctx: StateContext<OrganizationsStateModel>,\n action: ResetOrganizations\n ) {\n ctx.patchState({ organizations: [], total: 0 });\n }\n}\n\nfunction appendNoDuplicatesOrgs(\n currentOrgs: Organization[],\n orgsToAppend: Organization[]\n): Organization[] {\n const newCurrentOrgs = [...currentOrgs];\n for (const o of orgsToAppend) {\n if (!newCurrentOrgs.some((n) => n.id === o.id)) {\n newCurrentOrgs.push(o);\n }\n }\n return newCurrentOrgs;\n}\n","import { BackOfficeErrorService } from '@back-office/services/bo-error.service';\nimport { SiteState } from './sites-for-invitation.state';\nimport { SendOkMessage } from '@projects-shared/app-message/app-message.actions';\nimport { TranslateService } from '@ngx-translate/core';\nimport { FormService } from '@back-office/services/form.service';\nimport {\n LoadFormTemplateForBoSuccess,\n LoadFormTemplateForBoFailed,\n CreatePerson,\n UpdatePerson,\n CreatePersonSuccess,\n CreatePersonFailed,\n UpdatePersonFailed,\n UpdatePersonSuccess,\n GetInvitation,\n RefreshAccreditations,\n UpdateInvitationSites,\n UpdateInvitationSitesSuccess,\n UpdateInvitationSitesFailed,\n LoadAutoFillModelForBoSuccess\n} from '@back-office/store/actions/form.actions';\nimport { LoadFormTemplateForBo } from '@back-office/store/actions/form.actions';\nimport * as _ from 'lodash';\nimport { RouterState } from '@ngxs/router-plugin';\nimport { UserStateModel } from '@back-office/store/states/user.state';\n\nimport { FormModel } from '@projects-shared/models/form.model';\nimport { FormTheme } from '@projects-shared/models/form-theme.model';\nimport {\n Invitation,\n BasicInvitation\n} from '@back-office/models/invitation.model';\nimport { State, Store, Selector, Action, StateContext } from '@ngxs/store';\nimport { SetSelectedInvitation } from '@back-office/store/actions/form.actions';\nimport { catchError, map } from 'rxjs/operators';\nimport { StoreImageTaken } from '@projects-shared/store/actions/profile-picture.actions';\nimport { WebcamImage } from 'ngx-webcam';\nimport { Router } from '@angular/router';\nimport { FormConfigToFormlyService } from '@projects-shared/services/form-config-to-formly.service';\nimport { GeoInfoService } from '@projects-shared/services/geo-info.service';\nimport { ConfigState } from './config.state';\nimport {\n GetAccreditations,\n GetAccreditationsByInvitationId\n} from '@back-office/store/actions/request-accreditation.actions';\nimport { RequestAccreditationState } from './request-accreditation.state';\nimport { RequestAccreditationByInvitationState } from './request-accreditation-by-invitation.state';\nimport { OrganizationsState } from './organizations.state';\nimport { Site } from '@back-office/models/site.model';\nimport { Injectable } from '@angular/core';\n\nexport interface FormStateModel {\n forms: FormModel[];\n theme?: FormTheme;\n invitations: Invitation[];\n total: number;\n selectedInvitationNavSide?: BasicInvitation;\n selectedInvitationDetails?: Invitation;\n sidebarClosed: boolean;\n previousModel?: any;\n isCreatingPerson: boolean;\n autoFillModel?: any;\n}\n\n@State<FormStateModel>({\n name: 'forms',\n defaults: {\n forms: [],\n invitations: [],\n total: 0,\n sidebarClosed: true,\n isCreatingPerson: false\n }\n})\n@Injectable()\nexport class FormState {\n constructor(\n private store: Store,\n private formService: FormService,\n private translate: TranslateService,\n private router: Router,\n private formConfigToFormlyService: FormConfigToFormlyService,\n private geoInfoService: GeoInfoService,\n private boErrorService: BackOfficeErrorService\n ) { }\n\n @Selector()\n static selectedInvitationNavSide(model: FormStateModel) {\n return model.selectedInvitationNavSide;\n }\n\n @Selector()\n static seletAutoFillModel(model: FormStateModel) {\n return model.autoFillModel;\n }\n\n @Selector()\n static selectedInvitationDetails(model: FormStateModel) {\n return model.selectedInvitationDetails;\n }\n\n @Selector()\n static previousModel(model: FormStateModel) {\n return model.previousModel;\n }\n\n @Selector()\n static accreditationForm(model: FormStateModel) {\n return model.forms;\n }\n\n @Selector()\n static selectedFormTheme(model: FormStateModel) {\n return model.theme;\n }\n\n @Selector()\n static isCreatingPerson(model: FormStateModel) {\n return model.isCreatingPerson;\n }\n\n @Action(LoadFormTemplateForBo)\n loadForm(ctx: StateContext<FormStateModel>, action: LoadFormTemplateForBo) {\n const formId = action.eventId;\n return this.formService.getFormTemplate(formId).pipe(\n map((res) => {\n ctx.dispatch(new LoadFormTemplateForBoSuccess(res));\n }),\n catchError((err) => ctx.dispatch(new LoadFormTemplateForBoFailed(err)))\n );\n }\n\n @Action(LoadFormTemplateForBoSuccess)\n async loadFormSuccess(\n ctx: StateContext<FormStateModel>,\n action: LoadFormTemplateForBoSuccess\n ) {\n ctx.patchState({ theme: action.formModel && action.formModel.theme });\n let forms: FormModel[] = action.formModel && action.formModel.sections;\n\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const countries = await this.geoInfoService\n .getCountries(config)\n .toPromise();\n\n const nationalities = await this.geoInfoService\n .getNationalities(config)\n .toPromise();\n\n forms = this.formConfigToFormlyService.getFormForFormly(\n forms,\n countries,\n nationalities\n );\n ctx.patchState({ forms });\n }\n\n @Action(LoadFormTemplateForBoFailed)\n loadFormTemplateForBoFailed(\n ctx: StateContext<FormStateModel>,\n action: LoadFormTemplateForBoFailed\n ) {\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(SetSelectedInvitation)\n async setSelectedInvitation(\n ctx: StateContext<FormStateModel>,\n action: SetSelectedInvitation\n ) {\n ctx.patchState({ selectedInvitationNavSide: action.selected });\n }\n\n @Action(CreatePerson)\n createPerson(ctx: StateContext<FormStateModel>, action: CreatePerson) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n const userState: UserStateModel = Object.assign(\n {},\n this.store.selectSnapshot((state) => state.user)\n );\n\n const user = userState.user;\n const answers = action.answersMap;\n\n const allSites: Site[] = this.store.selectSnapshot(SiteState.getAllSites);\n\n const sites = Object.keys(answers.sites).map((item) => {\n return allSites.find((el) => el.id === Number(item));\n });\n\n const answersStringified: any = Object.keys(answers).reduce((acc, key) => {\n if (key === 'picture') {\n acc[key] = this.store.selectSnapshot((state) =>\n !!state.profilePicture ? state.profilePicture.imageData : ''\n );\n } else {\n if (answers[key] && typeof answers[key] !== 'string') {\n acc[key] = JSON.stringify(answers[key]);\n } else {\n acc[key] = answers[key];\n }\n }\n return acc;\n }, {});\n\n delete answersStringified.organization;\n delete answersStringified.idscanning\n\n const org = this.store.selectSnapshot(\n OrganizationsState.selectedOrganization\n );\n\n ctx.patchState({ isCreatingPerson: true });\n\n return this.formService\n .createPerson(\n eventId,\n answersStringified as Map<string, any>,\n sites,\n org.id\n )\n .pipe(\n map(() => ctx.dispatch(new CreatePersonSuccess())),\n catchError((error) => ctx.dispatch(new CreatePersonFailed(error)))\n );\n }\n\n @Action(UpdateInvitationSites)\n updateInvitationSites(\n ctx: StateContext<FormStateModel>,\n { sites, invitationId, isFormValid }: UpdateInvitationSites\n ) {\n\n return this.formService.updateInvitationSites(invitationId, sites, isFormValid).pipe(\n map(() => ctx.dispatch(new UpdateInvitationSitesSuccess(true))),\n catchError((error) => ctx.dispatch(new UpdateInvitationSitesFailed(error)))\n );\n }\n\n @Action(UpdatePerson)\n updatePerson(\n ctx: StateContext<FormStateModel>,\n { answersMap, eventId }: UpdatePerson\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const id = url.params && url.params.id;\n const urlEventId = url.params && url.params.eventId;\n const userState: UserStateModel = Object.assign(\n {},\n this.store.selectSnapshot((state) => state.user)\n );\n\n const user = userState.user;\n\n const answers = _.cloneDeep(answersMap);\n\n delete answers.idscanning;\n\n Object.keys(answers).forEach((key) => {\n if (key === 'picture') {\n answers[key] = this.store.selectSnapshot((state) =>\n !!state.profilePicture ? state.profilePicture.imageData : ''\n );\n } else {\n if (answers[key] && typeof answers[key] !== 'string') {\n answers[key] = JSON.stringify(answers[key]);\n }\n }\n });\n\n return this.formService.updatePerson(id, urlEventId, answers).pipe(\n map(() => ctx.dispatch(new UpdatePersonSuccess(eventId))),\n catchError((error) => ctx.dispatch(new UpdatePersonFailed(error)))\n );\n }\n @Action(CreatePersonFailed)\n createPersonFailed(\n ctx: StateContext<FormStateModel>,\n action: CreatePersonFailed\n ) {\n ctx.patchState({ isCreatingPerson: false });\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(CreatePersonSuccess)\n createPersonSuccess(ctx: StateContext<FormStateModel>) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n this.router.navigate([`/invitations/${eventId}`]);\n ctx.patchState({ isCreatingPerson: false });\n ctx.dispatch(new SendOkMessage('Created new person successfully.'));\n }\n\n @Action(UpdatePersonSuccess)\n updatePersonSuccess(ctx: StateContext<FormStateModel>) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n\n this.router.navigate([`/invitations/${eventId}`]);\n ctx.dispatch(new SendOkMessage('Updated person successfully.'));\n }\n\n @Action(UpdatePersonFailed)\n updatePersonFailed(\n ctx: StateContext<FormStateModel>,\n action: UpdatePersonFailed\n ) {\n this.boErrorService.redirectToErrorPage(action.error);\n }\n\n @Action(GetInvitation)\n async getInvitation(\n ctx: StateContext<FormStateModel>,\n action: GetInvitation\n ) {\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n const data = await this.formService\n .getInvitation(action.id, eventId)\n .toPromise();\n\n ctx.patchState({ selectedInvitationDetails: data });\n\n let answersMap: any;\n answersMap = data.answers;\n const answersMapCopy = _.cloneDeep(answersMap);\n const base64img = answersMap.picture;\n\n Object.keys(answersMap).forEach((keyName: string, index: number) => {\n if (keyName === 'picture') {\n this.store.dispatch(\n new StoreImageTaken(\n new WebcamImage(`data:image/jpeg;base64,${base64img}`, null, null)\n )\n );\n answersMapCopy.picture = { picture: { picture: {} } };\n } else {\n try {\n const jsonParsed = JSON.parse(answersMap[keyName]);\n answersMapCopy[keyName] =\n typeof jsonParsed === 'number' ? answersMap[keyName] : jsonParsed;\n } catch {\n answersMapCopy[keyName] = answersMap[keyName];\n }\n }\n });\n\n ctx.patchState({ previousModel: answersMapCopy });\n }\n\n @Action(RefreshAccreditations)\n refreshAccreditations(\n ctx: StateContext<FormStateModel>,\n action: RefreshAccreditations\n ) {\n const accreditations = this.store.selectSnapshot(\n RequestAccreditationState.getAllAccreditations\n );\n\n const accreditationByInvId = this.store.selectSnapshot(\n RequestAccreditationByInvitationState.accreditationsByInvitation\n );\n\n this.store.dispatch(new GetAccreditations(false));\n\n const url: any = this.store.selectSnapshot(RouterState.state);\n const eventId = url.params && url.params.eventId;\n const invitationId = url.params && url.params.id;\n\n if (!!eventId || !!invitationId) {\n if (\n !!eventId &&\n accreditations.some(\n (value) => value.id === action.accreditationRequestId\n )\n ) {\n this.store.dispatch(new GetAccreditations(false));\n this.store.dispatch(new SendOkMessage('Accreditations data refreshed'));\n }\n\n if (\n !!invitationId &&\n accreditationByInvId.some(\n (value) => value.id === action.accreditationRequestId\n )\n ) {\n this.store.dispatch(new GetAccreditationsByInvitationId(false));\n this.store.dispatch(new SendOkMessage('Accreditations data refreshed'));\n }\n }\n }\n\n @Action(LoadAutoFillModelForBoSuccess)\n async loadAutoFillForm(\n ctx: StateContext<FormStateModel>,\n action: LoadAutoFillModelForBoSuccess\n ) {\n ctx.patchState({ autoFillModel: action });\n }\n\n getTitle(firstname: string, lastname: string) {\n if (!!firstname && !!lastname) {\n return `${firstname}, ${lastname}`;\n }\n return '--';\n }\n}\n","import { Directive, HostListener } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: 'input[type=file]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: FileValueAccessorDirective,\n multi: true\n }\n ]\n})\nexport class FileValueAccessorDirective implements ControlValueAccessor {\n @HostListener('change', ['$event.target.files']) onChange = _ => {};\n @HostListener('blur') onTouched = () => {};\n\n writeValue(value) {}\n registerOnChange(fn: any) {\n this.onChange = fn;\n }\n registerOnTouched(fn: any) {\n this.onTouched = fn;\n }\n}\n","<ng-container\n class=\"profile-picture\"\n *ngLet=\"{\n imgUrl: imageUrl$ | async,\n error: errorMessage$ | async,\n cameras: cameras$ | async\n } as state\"\n>\n <div class=\"container\">\n <div class=\"avatar text-center\">\n <div class=\"avatar--img-wrap\">\n <img\n class=\"avatar--img\"\n [ngClass]=\"isHorizontally ? 'horizontal' : 'vertical'\"\n *ngIf=\"state.imgUrl && !checkForEmptyPhoto(state.imgUrl); else empty\"\n [src]=\"state.imgUrl\"\n width=\"200px\"\n />\n </div>\n\n <ng-template #empty>\n <div class=\"avatar--img__fallback\">\n <!-- <img src=\"./assets/images/content-picture.svg\" alt=\"\" /> -->\n <svg\n class=\"avatar--svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n >\n <path\n fill=\"currentColor\"\n d=\"M1.5 1.5V18H15V1.5H1.5zm0-1.5H15a1.5 1.5 0 0 1 1.5 1.5V18a1.5 1.5 0 0 1-1.5 1.5H1.5A1.5 1.5 0 0 1 0 18V1.5A1.5 1.5 0 0 1 1.5 0zm17.018 6.943a.75.75 0 1 1 .474-1.424l3.982 1.328a1.5 1.5 0 0 1 .949 1.897l-4.744 14.23a1.5 1.5 0 0 1-1.897.949l-6.27-2.09a.75.75 0 0 1 .475-1.423l6.27 2.09L22.5 8.27l-3.982-1.327zM6.539 9.285a3.375 3.375 0 1 1 3.421 0 5.252 5.252 0 0 1 3.54 4.965.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75c0-2.3 1.48-4.256 3.54-4.965zM8.25 8.25a1.875 1.875 0 1 0 0-3.75 1.875 1.875 0 0 0 0 3.75zm3.675 5.25a3.751 3.751 0 0 0-7.35 0h7.35z\"\n />\n </svg>\n </div>\n </ng-template>\n <div class=\"btn-group d-md-flex m-0 justify-content-center\">\n <button\n mat-flat-button\n class=\"branding-bg btn-small btn__192 m-md-1\"\n type=\"button\"\n color=\"primary\"\n (click)=\"openWebCamDialog()\"\n *ngIf=\"state.cameras?.length\"\n [disabled]=\"formControl.disabled\"\n >\n {{ 'form.take-photo' | translate }}\n </button>\n <button\n mat-stroked-button\n class=\"btn__192 branding-color btn-small ml-0 m-md-1\"\n type=\"button\"\n color=\"primary\"\n (click)=\"fileInput.click()\"\n [disabled]=\"formControl.disabled\"\n >\n {{ 'form.upload-photo' | translate }}\n </button>\n <button\n *ngIf=\"state.imgUrl && !checkForEmptyPhoto(state.imgUrl)\"\n class=\"btn__192 branding-color btn-small ml-0 m-md-1\"\n mat-stroked-button\n color=\"warn\"\n type=\"button\"\n (click)=\"removePhoto()\"\n [disabled]=\"formControl.disabled\"\n >\n {{ 'form.remove-photo' | translate }}\n </button>\n </div>\n <input\n #fileInput\n hidden\n type=\"file\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n accept=\".jpg,.jpeg,.png\"\n (change)=\"onFileChange($event)\"\n />\n </div>\n <!-- <div class=\"example\">\n <img src=\"/assets/images/example.png\"/>\n </div> -->\n </div>\n <p class=\"mat-error\" *ngIf=\"state.error\">{{ state.error }}</p>\n</ng-container>\n","import { CameraComponent } from './../camera/camera.component';\nimport {\n Component,\n OnInit,\n ViewChild,\n OnDestroy,\n ElementRef\n} from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\nimport { Observable } from 'rxjs';\nimport { MatDialog } from '@angular/material/dialog';\nimport { Select, Store } from '@ngxs/store';\nimport { Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\nimport { ProfilePictureState } from '@projects-shared/store/states/profile-picture.state';\nimport {\n GetAvailableVideoInputs,\n StoreImageTaken,\n UploadImage,\n RemoveImageTakenLocally\n} from '@projects-shared/store/actions/profile-picture.actions';\n\nimport { FormTheme } from '@projects-shared/models/form-theme.model';\nimport { FormState } from '@back-office/store/states/form.state';\nimport { WebcamImage } from 'ngx-webcam';\n\n@Component({\n selector: 'app-profile-picture',\n templateUrl: './profile-picture.component.html',\n styleUrls: ['./profile-picture.component.scss']\n})\nexport class ProfilePictureComponent\n extends FieldType\n implements OnInit, OnDestroy {\n @Select(ProfilePictureState.cameras) cameras$: Observable<MediaDeviceInfo[]>;\n\n @Select(ProfilePictureState.imageUrl) imageUrl$: Observable<string>;\n\n @Select(ProfilePictureState.errorMessage) errorMessage$: Observable<string>;\n\n @Select(FormState.selectedFormTheme)\n formtheme$: Observable<FormTheme>;\n\n @ViewChild('fileInput') fileInput: ElementRef;\n\n private subscription: Subscription;\n private dialogCssThemeClass: string;\n private numberOfCameras: number;\n public emptyPhoto = 'data:image/jpeg;base64,';\n\n isHorizontally = false;\n\n constructor(private matDialog: MatDialog, private store: Store) {\n super();\n this.subscription = new Subscription();\n }\n\n ngOnInit() {\n this.store.dispatch(new GetAvailableVideoInputs());\n\n this.subscription.add(\n this.errorMessage$.subscribe((message) =>\n this.field.formControl.setErrors(!!message ? { error: message } : null)\n )\n );\n\n this.subscription.add(\n this.cameras$.subscribe(\n (cams) => (this.numberOfCameras = cams && cams.length)\n )\n );\n\n this.subscription.add(\n this.imageUrl$.subscribe((c) => {\n if (c) {\n const img = new Image();\n img.onload = () => {\n this.isHorizontally = img.width > img.height;\n };\n img.src = c.toString();\n }\n })\n );\n\n this.subscription.add(\n this.formtheme$.subscribe((x) => {\n if (!!x && !!x.abbr) {\n this.dialogCssThemeClass = `${x.abbr}-theme`;\n } else {\n this.dialogCssThemeClass = `corp-theme`;\n }\n })\n );\n }\n\n private resetFileInput(): void {\n this.fileInput.nativeElement.value = '';\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n openWebCamDialog() {\n const ref = this.matDialog.open(CameraComponent, {\n maxWidth: '100%',\n panelClass: [`camera-panel`, `${this.dialogCssThemeClass}`],\n data: {\n numberOfCameras: this.numberOfCameras\n }\n });\n\n this.subscription.add(\n ref\n .afterClosed()\n .pipe(filter((image) => !!image))\n .subscribe((image) => {\n this.store.dispatch(new StoreImageTaken(image));\n this.field.formControl.setValue({}); // now required is satisfied\n })\n );\n }\n\n removePhoto() {\n const emptyImg = new WebcamImage('', '', new ImageData(1, 1));\n this.store.dispatch(new RemoveImageTakenLocally());\n this.store.dispatch(new StoreImageTaken(emptyImg));\n this.field.formControl.reset();\n this.resetFileInput();\n }\n checkForEmptyPhoto(img: string) {\n\n return img === this.emptyPhoto ? true : false;\n\n }\n\n onFileChange(event: Event): void {\n const files = (event.target as HTMLInputElement).files;\n if (files && files[0]) {\n this.store.dispatch(new UploadImage(files[0]));\n this.resetFileInput();\n }\n }\n}\n","<perfect-scrollbar class=\"legal--wrap\">\n <div class=\"legal--content\">\n <ng-container *ngLet=\"terms$ | async as termsAndConditions\">\n <div\n [innerHTML]=\"termsAndConditions\"\n *ngIf=\"termsAndConditions; else loading\"\n ></div\n ></ng-container>\n <ng-template #loading>\n <mat-spinner style=\"margin: 0 auto;\"></mat-spinner>\n </ng-template>\n </div>\n</perfect-scrollbar>\n","import { Component, OnInit } from '@angular/core';\nimport { Subscription, Observable } from 'rxjs';\nimport { Select, Store } from '@ngxs/store';\nimport { RequestAccreditationState } from '@back-office/store/states/request-accreditation.state';\nimport { SafeHtml } from '@angular/platform-browser';\nimport { FetchLegalConditions } from '@projects-shared/store/actions/legal-conditions.actions';\nimport { LegalConditionsState } from '@projects-shared/store/states/legal-conditions.state';\nimport { TermsAndConditions } from '@projects-shared/models/terms-and-conditions.model';\nimport { map } from 'rxjs/operators';\n\n@Component({\n selector: 'app-legal-condition',\n templateUrl: './legal-condition.component.html',\n styleUrls: ['./legal-condition.component.scss']\n})\nexport class LegalConditionComponent implements OnInit {\n subscription: Subscription;\n\n @Select(LegalConditionsState.termsAndConditions)\n termsAndConditions$: Observable<TermsAndConditions>;\n terms$: Observable<SafeHtml>;\n constructor(private store: Store) {\n this.subscription = new Subscription();\n }\n ngOnInit(): void {\n this.store.dispatch(new FetchLegalConditions());\n this.terms$ = this.termsAndConditions$.pipe(\n map((terms) => (terms ? terms.body : ''))\n );\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Inject, InjectionToken, EventEmitter, Directive, Optional, Input, Output, NgModule } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A pending copy-to-clipboard operation.\n *\n * The implementation of copying text to the clipboard modifies the DOM and\n * forces a relayout. This relayout can take too long if the string is large,\n * causing the execCommand('copy') to happen too long after the user clicked.\n * This results in the browser refusing to copy. This object lets the\n * relayout happen in a separate tick from copying by providing a copy function\n * that can be called later.\n *\n * Destroy must be called when no longer in use, regardless of whether `copy` is\n * called.\n */\nclass PendingCopy {\n constructor(text, _document) {\n this._document = _document;\n const textarea = (this._textarea = this._document.createElement('textarea'));\n const styles = textarea.style;\n // Hide the element for display and accessibility. Set a fixed position so the page layout\n // isn't affected. We use `fixed` with `top: 0`, because focus is moved into the textarea\n // for a split second and if it's off-screen, some browsers will attempt to scroll it into view.\n styles.position = 'fixed';\n styles.top = styles.opacity = '0';\n styles.left = '-999em';\n textarea.setAttribute('aria-hidden', 'true');\n textarea.value = text;\n this._document.body.appendChild(textarea);\n }\n /** Finishes copying the text. */\n copy() {\n const textarea = this._textarea;\n let successful = false;\n try {\n // Older browsers could throw if copy is not supported.\n if (textarea) {\n const currentFocus = this._document.activeElement;\n textarea.select();\n textarea.setSelectionRange(0, textarea.value.length);\n successful = this._document.execCommand('copy');\n if (currentFocus) {\n currentFocus.focus();\n }\n }\n }\n catch (_a) {\n // Discard error.\n // Initial setting of {@code successful} will represent failure here.\n }\n return successful;\n }\n /** Cleans up DOM changes used to perform the copy operation. */\n destroy() {\n const textarea = this._textarea;\n if (textarea) {\n textarea.remove();\n this._textarea = undefined;\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A service for copying text to the clipboard.\n */\nclass Clipboard {\n constructor(document) {\n this._document = document;\n }\n /**\n * Copies the provided text into the user's clipboard.\n *\n * @param text The string to copy.\n * @returns Whether the operation was successful.\n */\n copy(text) {\n const pendingCopy = this.beginCopy(text);\n const successful = pendingCopy.copy();\n pendingCopy.destroy();\n return successful;\n }\n /**\n * Prepares a string to be copied later. This is useful for large strings\n * which take too long to successfully render and be copied in the same tick.\n *\n * The caller must call `destroy` on the returned `PendingCopy`.\n *\n * @param text The string to copy.\n * @returns the pending copy operation.\n */\n beginCopy(text) {\n return new PendingCopy(text, this._document);\n }\n}\nClipboard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Clipboard, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nClipboard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Clipboard, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: Clipboard, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */\nconst CDK_COPY_TO_CLIPBOARD_CONFIG = new InjectionToken('CDK_COPY_TO_CLIPBOARD_CONFIG');\n/**\n * Provides behavior for a button that when clicked copies content into user's\n * clipboard.\n */\nclass CdkCopyToClipboard {\n constructor(_clipboard, _ngZone, config) {\n this._clipboard = _clipboard;\n this._ngZone = _ngZone;\n /** Content to be copied. */\n this.text = '';\n /**\n * How many times to attempt to copy the text. This may be necessary for longer text, because\n * the browser needs time to fill an intermediate textarea element and copy the content.\n */\n this.attempts = 1;\n /**\n * Emits when some text is copied to the clipboard. The\n * emitted value indicates whether copying was successful.\n */\n this.copied = new EventEmitter();\n /** Copies that are currently being attempted. */\n this._pending = new Set();\n if (config && config.attempts != null) {\n this.attempts = config.attempts;\n }\n }\n /** Copies the current text to the clipboard. */\n copy(attempts = this.attempts) {\n if (attempts > 1) {\n let remainingAttempts = attempts;\n const pending = this._clipboard.beginCopy(this.text);\n this._pending.add(pending);\n const attempt = () => {\n const successful = pending.copy();\n if (!successful && --remainingAttempts && !this._destroyed) {\n // We use 1 for the timeout since it's more predictable when flushing in unit tests.\n this._currentTimeout = this._ngZone.runOutsideAngular(() => setTimeout(attempt, 1));\n }\n else {\n this._currentTimeout = null;\n this._pending.delete(pending);\n pending.destroy();\n this.copied.emit(successful);\n }\n };\n attempt();\n }\n else {\n this.copied.emit(this._clipboard.copy(this.text));\n }\n }\n ngOnDestroy() {\n if (this._currentTimeout) {\n clearTimeout(this._currentTimeout);\n }\n this._pending.forEach(copy => copy.destroy());\n this._pending.clear();\n this._destroyed = true;\n }\n}\nCdkCopyToClipboard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCopyToClipboard, deps: [{ token: Clipboard }, { token: i0.NgZone }, { token: CDK_COPY_TO_CLIPBOARD_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCopyToClipboard.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkCopyToClipboard, selector: \"[cdkCopyToClipboard]\", inputs: { text: [\"cdkCopyToClipboard\", \"text\"], attempts: [\"cdkCopyToClipboardAttempts\", \"attempts\"] }, outputs: { copied: \"cdkCopyToClipboardCopied\" }, host: { listeners: { \"click\": \"copy()\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCopyToClipboard, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkCopyToClipboard]',\n host: {\n '(click)': 'copy()',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: Clipboard }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CDK_COPY_TO_CLIPBOARD_CONFIG]\n }] }];\n }, propDecorators: { text: [{\n type: Input,\n args: ['cdkCopyToClipboard']\n }], attempts: [{\n type: Input,\n args: ['cdkCopyToClipboardAttempts']\n }], copied: [{\n type: Output,\n args: ['cdkCopyToClipboardCopied']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass ClipboardModule {\n}\nClipboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ClipboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nClipboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ClipboardModule, declarations: [CdkCopyToClipboard], exports: [CdkCopyToClipboard] });\nClipboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ClipboardModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: ClipboardModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [CdkCopyToClipboard],\n exports: [CdkCopyToClipboard],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CDK_COPY_TO_CLIPBOARD_CONFIG, CdkCopyToClipboard, Clipboard, ClipboardModule, PendingCopy };\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { ConfigResolverService } from './config-resolver.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UrlShortenerService {\n constructor(\n private httpClient: HttpClient,\n private configResolver: ConfigResolverService\n ) {}\n\n private shortenUrlApi = '';\n\n /**\n * Get shortened url.\n *\n * @param fullUrl FullUrl that needs shortening.\n * @returns Promise that holds shortUrl\n */\n async getShortenedURL(fullUrl: string) {\n this.shortenUrlApi =\n (await this.configResolver.getConfig()).apiUrl +\n '/url-shortener/shorten-url';\n\n return this.httpClient\n .post(this.shortenUrlApi, { OriginalUrl: fullUrl })\n .toPromise();\n }\n}\n","import { Injectable } from '@angular/core';\n@Injectable({\n providedIn: 'root'\n})\nexport class PreviewService {\n\n isPreview = false;\n \n constructor() {\n }\n\n \n setAsPreview(){\n this.isPreview = true;\n }\n\n}\n","import { __awaiter } from 'tslib';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, NgModule } from '@angular/core';\nimport * as QRCode from '@cordobo/qrcode';\nimport * as i1 from '@angular/platform-browser';\n\nclass QRCodeComponent {\n constructor(renderer, sanitizer) {\n this.renderer = renderer;\n this.sanitizer = sanitizer;\n this.allowEmptyString = false;\n this.colorDark = \"#000000ff\";\n this.colorLight = \"#ffffffff\";\n this.cssClass = \"qrcode\";\n this.elementType = \"canvas\";\n this.errorCorrectionLevel = \"M\";\n this.margin = 4;\n this.qrdata = \"\";\n this.scale = 4;\n this.width = 10;\n this.qrCodeURL = new EventEmitter();\n this.context = null;\n }\n ngOnChanges() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.createQRCode();\n });\n }\n isValidQrCodeText(data) {\n if (this.allowEmptyString === false) {\n return !(typeof data === \"undefined\" ||\n data === \"\" ||\n data === \"null\" ||\n data === null);\n }\n return !(typeof data === \"undefined\");\n }\n toDataURL(qrCodeConfig) {\n return new Promise((resolve, reject) => {\n QRCode.toDataURL(this.qrdata, qrCodeConfig, (err, url) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(url);\n }\n });\n });\n }\n toCanvas(canvas, qrCodeConfig) {\n return new Promise((resolve, reject) => {\n QRCode.toCanvas(canvas, this.qrdata, qrCodeConfig, (error) => {\n if (error) {\n reject(error);\n }\n else {\n resolve(\"success\");\n }\n });\n });\n }\n toSVG(qrCodeConfig) {\n return new Promise((resolve, reject) => {\n QRCode.toString(this.qrdata, qrCodeConfig, (err, url) => {\n if (err) {\n reject(err);\n }\n else {\n resolve(url);\n }\n });\n });\n }\n renderElement(element) {\n for (const node of this.qrcElement.nativeElement.childNodes) {\n this.renderer.removeChild(this.qrcElement.nativeElement, node);\n }\n this.renderer.appendChild(this.qrcElement.nativeElement, element);\n }\n createQRCode() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.version && this.version > 40) {\n console.warn(\"[angularx-qrcode] max value for `version` is 40\");\n this.version = 40;\n }\n else if (this.version && this.version < 1) {\n console.warn(\"[angularx-qrcode]`min value for `version` is 1\");\n this.version = 1;\n }\n else if (this.version !== undefined && isNaN(this.version)) {\n console.warn(\"[angularx-qrcode] version should be a number, defaulting to auto.\");\n this.version = undefined;\n }\n try {\n if (!this.isValidQrCodeText(this.qrdata)) {\n throw new Error(\"[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\\\"true\\\"' to overwrite this behaviour.\");\n }\n if (this.isValidQrCodeText(this.qrdata) && this.qrdata === \"\") {\n this.qrdata = \" \";\n }\n const config = {\n color: {\n dark: this.colorDark,\n light: this.colorLight,\n },\n errorCorrectionLevel: this.errorCorrectionLevel,\n margin: this.margin,\n scale: this.scale,\n type: this.elementType,\n version: this.version,\n width: this.width,\n };\n const centerImageSrc = this.imageSrc;\n const centerImageHeight = this.imageHeight || 40;\n const centerImageWidth = this.imageWidth || 40;\n switch (this.elementType) {\n case \"canvas\":\n const canvasElement = this.renderer.createElement(\"canvas\");\n this.context = canvasElement.getContext(\"2d\");\n this.toCanvas(canvasElement, config)\n .then(() => {\n if (this.ariaLabel) {\n this.renderer.setAttribute(canvasElement, \"aria-label\", `${this.ariaLabel}`);\n }\n if (this.title) {\n this.renderer.setAttribute(canvasElement, \"title\", `${this.title}`);\n }\n if (centerImageSrc && this.context) {\n this.centerImage = new Image(centerImageWidth, centerImageHeight);\n if (centerImageSrc !== this.centerImage.src) {\n this.centerImage.src = centerImageSrc;\n }\n if (centerImageHeight !== this.centerImage.height) {\n this.centerImage.height = centerImageHeight;\n }\n if (centerImageWidth !== this.centerImage.width) {\n this.centerImage.width = centerImageWidth;\n }\n const centerImage = this.centerImage;\n if (centerImage) {\n centerImage.onload = () => {\n var _a;\n (_a = this.context) === null || _a === void 0 ? void 0 : _a.drawImage(centerImage, canvasElement.width / 2 - centerImageWidth / 2, canvasElement.height / 2 - centerImageHeight / 2, centerImageWidth, centerImageHeight);\n };\n }\n }\n this.renderElement(canvasElement);\n this.emitQRCodeURL(canvasElement);\n })\n .catch((e) => {\n console.error(\"[angularx-qrcode] canvas error:\", e);\n });\n break;\n case \"svg\":\n const svgParentElement = this.renderer.createElement(\"div\");\n this.toSVG(config)\n .then((svgString) => {\n this.renderer.setProperty(svgParentElement, \"innerHTML\", svgString);\n const svgElement = svgParentElement.firstChild;\n this.renderer.setAttribute(svgElement, \"height\", `${this.width}`);\n this.renderer.setAttribute(svgElement, \"width\", `${this.width}`);\n this.renderElement(svgElement);\n this.emitQRCodeURL(svgElement);\n })\n .catch((e) => {\n console.error(\"[angularx-qrcode] svg error:\", e);\n });\n break;\n case \"url\":\n case \"img\":\n default:\n const imgElement = this.renderer.createElement(\"img\");\n this.toDataURL(config)\n .then((dataUrl) => {\n if (this.alt) {\n imgElement.setAttribute(\"alt\", this.alt);\n }\n if (this.ariaLabel) {\n imgElement.setAttribute(\"aria-label\", this.ariaLabel);\n }\n imgElement.setAttribute(\"src\", dataUrl);\n if (this.title) {\n imgElement.setAttribute(\"title\", this.title);\n }\n this.renderElement(imgElement);\n this.emitQRCodeURL(imgElement);\n })\n .catch((e) => {\n console.error(\"[angularx-qrcode] img/url error:\", e);\n });\n }\n }\n catch (e) {\n console.error(\"[angularx-qrcode] Error generating QR Code:\", e.message);\n }\n });\n }\n emitQRCodeURL(element) {\n const className = element.constructor.name;\n if (className === SVGSVGElement.name) {\n const svgHTML = element.outerHTML;\n const blob = new Blob([svgHTML], { type: \"image/svg+xml\" });\n const urlSvg = URL.createObjectURL(blob);\n const urlSanitized = this.sanitizer.bypassSecurityTrustUrl(urlSvg);\n this.qrCodeURL.emit(urlSanitized);\n return;\n }\n let urlImage = \"\";\n if (className === HTMLCanvasElement.name) {\n urlImage = element.toDataURL(\"image/png\");\n }\n if (className === HTMLImageElement.name) {\n urlImage = element.src;\n }\n fetch(urlImage)\n .then((urlResponse) => urlResponse.blob())\n .then((blob) => URL.createObjectURL(blob))\n .then((url) => this.sanitizer.bypassSecurityTrustUrl(url))\n .then((urlSanitized) => {\n this.qrCodeURL.emit(urlSanitized);\n })\n .catch((error) => {\n console.error(\"[angularx-qrcode] Error when fetching image/png URL: \" + error);\n });\n }\n}\nQRCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeComponent, deps: [{ token: i0.Renderer2 }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });\nQRCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.1\", type: QRCodeComponent, selector: \"qrcode\", inputs: { allowEmptyString: \"allowEmptyString\", colorDark: \"colorDark\", colorLight: \"colorLight\", cssClass: \"cssClass\", elementType: \"elementType\", errorCorrectionLevel: \"errorCorrectionLevel\", imageSrc: \"imageSrc\", imageHeight: \"imageHeight\", imageWidth: \"imageWidth\", margin: \"margin\", qrdata: \"qrdata\", scale: \"scale\", version: \"version\", width: \"width\", alt: \"alt\", ariaLabel: \"ariaLabel\", title: \"title\" }, outputs: { qrCodeURL: \"qrCodeURL\" }, viewQueries: [{ propertyName: \"qrcElement\", first: true, predicate: [\"qrcElement\"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `<div #qrcElement [class]=\"cssClass\"></div>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeComponent, decorators: [{\n type: Component,\n args: [{\n selector: \"qrcode\",\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<div #qrcElement [class]=\"cssClass\"></div>`,\n }]\n }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1.DomSanitizer }]; }, propDecorators: { allowEmptyString: [{\n type: Input\n }], colorDark: [{\n type: Input\n }], colorLight: [{\n type: Input\n }], cssClass: [{\n type: Input\n }], elementType: [{\n type: Input\n }], errorCorrectionLevel: [{\n type: Input\n }], imageSrc: [{\n type: Input\n }], imageHeight: [{\n type: Input\n }], imageWidth: [{\n type: Input\n }], margin: [{\n type: Input\n }], qrdata: [{\n type: Input\n }], scale: [{\n type: Input\n }], version: [{\n type: Input\n }], width: [{\n type: Input\n }], alt: [{\n type: Input\n }], ariaLabel: [{\n type: Input\n }], title: [{\n type: Input\n }], qrCodeURL: [{\n type: Output\n }], qrcElement: [{\n type: ViewChild,\n args: [\"qrcElement\", { static: true }]\n }] } });\n\nclass QRCodeModule {\n}\nQRCodeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nQRCodeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeModule, declarations: [QRCodeComponent], exports: [QRCodeComponent] });\nQRCodeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeModule, providers: [] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: QRCodeModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [],\n declarations: [QRCodeComponent],\n exports: [QRCodeComponent],\n }]\n }] });\n\nexport { QRCodeComponent, QRCodeModule };\n","<div *ngIf=\"scanningStatus==scanningStatusEnum.Pending\">\n <h4 class=\"id-scanning-title\">{{'idScanning.idscanning-title-'+deviceType | translate}}</h4>\n <p class=\"id-scanning-subtitle\">{{'idScanning.idscanning-intro-'+deviceType | translate}}</p>\n</div>\n\n<div *ngIf=\"isMobileDevice==true else desktopDevice\">\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Success\">\n <img src=\"/assets/images/id-scanning/id-uploaded.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.iduploaded-title-mobile' | translate }}</p>\n <p>{{'idScanning.iduploaded-subtitle-mobile' | translate }}</p>\n </div>\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Error\">\n <img src=\"/assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.error-title-mobile' | translate }}</p>\n <p >{{'idScanning.error-subtitle-mobile' | translate }}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.UnsupportedDocument\">\n <img src=\"/assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.error-unsupported-mobile' | translate }}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n <div *ngIf=\"scanningStatus!= scanningStatusEnum.Success && scanningStatus!= scanningStatusEnum.Error && scanningStatus!= scanningStatusEnum.UnsupportedDocument\">\n <app-regula-doc-reader [eventId]=\"eventIdParam\" (regulaDocReaderEvent)=\"docReaderEvent($event)\" (regulaDocReaderErrorEvent)=\"docReaderError($event)\" (regulaDocReaderSuccessEvent)=\"docReaderSuccess($event)\" [locale]=\"currentLanguage\">\n </app-regula-doc-reader>\n <p *ngIf=\"scanningStatus != scanningStatusEnum.Success\" class=\"id-scanning-skip\">{{'idScanning.idscanning-skip-mobile' |translate}}<a (click)=\"onSkip();docReaderEvent('Id Scanning Skipped');\" class=\"d-block\"> {{'idScanning.idscanning-skiplinked-mobile' |translate}}</a> </p>\n </div>\n \n</div>\n<ng-template #desktopDevice>\n <div *ngIf=\"scanningStatus!=scanningStatusEnum.Pending else notStartedScanning\" class=\"scanning-started\">\n \n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Initialized\">\n <img src=\"/assets/images/id-scanning/scan-sync.svg\" class=\"icon img-animation-rotation\" />\n <p class=\"title\">{{'idScanning.sync-title-pc' | translate }}</p>\n <p class=\"subtitle\">{{'idScanning.sync-subtitle-pc' | translate }}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Success\">\n <img src=\"/assets/images/id-scanning/id-uploaded.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.iduploaded-title-pc' | translate }}</p>\n <p class=\"subtitle\">{{'idScanning.iduploaded-subtitle-pc' | translate }}</p>\n </div>\n\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Error\">\n <img src=\"/assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.error-title-pc' | translate }}</p>\n <p class=\"subtitle\">{{'idScanning.error-subtitle-pc' | translate }}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.Uploading\">\n <img src=\"/assets/images/id-scanning/scan-uploading.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.iduploading-title-pc' | translate }}</p>\n <p class=\"subtitle\">{{'idScanning.iduploading-subtitle-pc' | translate }}</p>\n </div>\n\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.UnsupportedDocument\">\n <img src=\"/assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.error-unsupported-pc' | translate}}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n\n <div class=\"id-scanning-status\" *ngIf=\"scanningStatus == scanningStatusEnum.UnsupportedDocumentType\">\n <img src=\"/assets/images/id-scanning/scan-error.svg\" class=\"icon\" />\n <p class=\"title\">{{'idScanning.error-unsupported-document-type' | translate}}</p>\n <a (click)=\"cancelScanning()\">{{'idScanning.cancel' | translate}}</a>\n </div>\n </div>\n <ng-template #notStartedScanning>\n <div class=\"flex-container\">\n <div class=\"container-content-left\">\n <div style=\"display: flex;\">\n <img src=\"/assets/images/qr-code.svg\" class=\"icon\" />\n <div>\n <p class=\"id-scanning-qrcode-title\"> {{'idScanning.idscanning-qrcode-title' | translate }} </p>\n <p class=\"id-scanning-qrcode-subtitle\"> {{'idScanning.idscanning-qrcode-subtitle' | translate }} </p>\n </div>\n </div>\n <qrcode allowEmptyString=\"true\" [qrdata]=\"qrCodeValue\" [width]=\"227\" [errorCorrectionLevel]=\"'M'\" (click)=\"copyToClipboard()\"></qrcode>\n <p class=\"id-scanning-qrcode-text\">{{'idScanning.idscanning-qrcode-text' | translate}}</p>\n </div>\n <div class=\"splitter\">\n </div>\n <div class=\"container-content-right\">\n <div style=\"display: flex;\">\n <img src=\"/assets/images/id-card.svg\" class=\"icon\" />\n <div>\n <p class=\"id-scanning-qrcode-title\">{{'idScanning.idscanning-uploadpicture-title' | translate}}</p>\n <p class=\"id-scanning-qrcode-subtitle\">{{'idScanning.idscanning-uploadpicture-subtitle' | translate}}</p>\n </div>\n\n </div>\n <p >{{'idScanning.idscanning-uploadpicture-text' | translate}}</p>\n <button [disabled]=\"this.previewService.isPreview\" mat-stroked-button class=\"btn__192 branding-color btn-small ml-0 m-md-1\" type=\"button\"\n color=\"primary\" (click)=\"fileInput.click()\">\n {{ 'idScanning.idscanning-uploadpicture-button' | translate }}\n </button>\n <input #fileInput hidden type=\"file\" [formControl]=\"formControl\" [formlyAttributes]=\"field\" multiple=\"true\"\n accept=\".jpg,.jpeg,.png,.pdf\" (click)=\"docReaderEvent('File Upload Desktop')\" (change)=\"onFileChange($event)\" />\n <p class=\"mat-error\" *ngIf=\"fileUploadError\">{{ fileUploadError }}</p>\n </div>\n </div>\n </ng-template>\n\n <p *ngIf=\"scanningStatus != scanningStatusEnum.Success\" class=\"id-scanning-skip\">{{'idScanning.idscanning-skip-pc' |translate}} <a (click)=\"onSkip();docReaderEvent('Id Scanning Skipped');\"> {{'idScanning.idscanning-skiplinked-pc' |translate}}</a> </p>\n</ng-template>","import {\n Component,\n HostListener,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport { ActivatedRoute, Params } from '@angular/router';\nimport { FieldType } from '@ngx-formly/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Select, Store } from '@ngxs/store';\nimport { DocumentScanningModel } from '@projects-shared/models/document-scanning.model';\nimport { RegulaImageResult } from '@projects-shared/models/regula-image-result.model';\nimport DeviceDetectorService from '@projects-shared/services/device-detector.service';\nimport { DocReaderSignalRService } from '@projects-shared/services/doc-reader-signalr.service';\nimport { ScanningStatus } from '@projects-shared/models/scanning-status.model';\nimport {\n StartAnalyzeDocument,\n StartAnalyzeDocumentError,\n StartAnalyzeDocumentSuccess\n} from '@projects-shared/store/actions/document-scanning.actions';\nimport { Clipboard } from '@angular/cdk/clipboard';\nimport { IdScanningSkipEventService } from '@projects-shared/services/id-scanning-skip-event.service';\nimport { DocumentScanningState } from '@projects-shared/store/states/document-scanning.state';\nimport { Observable } from 'rxjs';\nimport { filter } from 'rxjs/operators';\nimport { UrlShortenerService } from '@projects-shared/services/url-shortener.service';\nimport { PreviewService } from '@projects-shared/services/preview.service';\nimport { IdScanningLogModel } from '@projects-shared/models/id-scanning-log.model';\nimport { IdScanningLogsService } from '@projects-shared/services/id-scanning-logs.service';\n\n@Component({\n selector: 'app-id-scanning-device-detector',\n templateUrl: './id-scanning-device-detector.component.html',\n styleUrls: ['./id-scanning-device-detector.component.scss']\n})\nexport class IdScanningDeviceDetectorComponent\n extends FieldType\n implements OnInit, OnDestroy\n{\n @Select(DocumentScanningState.scanningStatus)\n scanningStatus$: Observable<ScanningStatus>;\n\n isMobileDevice: boolean = false;\n deviceType: string = '';\n scanningInProgress: boolean = false;\n qrCodeValue: string = '';\n currentLanguage: string = 'en';\n eventIdParam = '';\n scanningStatus = 0;\n scanningStatusEnum = ScanningStatus;\n\n scanningUpdateSubscription: any;\n scanningResultsSubscription: any;\n refreshQrSubscription: any;\n\n signalREventsRegistered = false;\n fullUrl = '';\n formId = '';\n\n fileUploadError = '';\n fileSizeLimit = 4 * 1048576;\n\n constructor(\n private deviceDetector: DeviceDetectorService,\n private route: ActivatedRoute,\n private translateService: TranslateService,\n private docReaderSignalR: DocReaderSignalRService,\n private clipboard: Clipboard,\n private store: Store,\n private idScanningSkipEventService: IdScanningSkipEventService,\n private urlShortenerService: UrlShortenerService,\n private previewService: PreviewService,\n private idScanningLogSrv: IdScanningLogsService\n ) {\n super();\n }\n ngOnInit(): void {\n this.currentLanguage = this.translateService.currentLang;\n this.isMobileDevice = this.deviceDetector.detectIsMobileDevice();\n this.deviceType = this.isMobileDevice ? 'mobile' : 'pc';\n\n if (this.previewService.isPreview) {\n this.qrCodeValue = 'https://www.uefa.com/';\n } else {\n if (!this.isMobileDevice) {\n this.route.params.subscribe((params: Params) => {\n this.eventIdParam = params.eventId;\n\n // Front office\n if (params.id) {\n this.formId = params.id;\n\n this.fullUrl =\n window.location.origin +\n '/id-scanning' +\n '?locale=' +\n this.currentLanguage +\n '&eventId=' +\n params.eventId +\n '&formId=' +\n this.formId +\n '#id_token=' +\n sessionStorage.getItem('id_token');\n } else {\n // Get shortened URL\n this.fullUrl =\n window.location.origin +\n '/id-scanning' +\n '?locale=' +\n this.currentLanguage +\n '&eventId=' +\n params.eventId;\n }\n\n this.getShortUrl();\n });\n\n this.docReaderSignalR.initializeSignalr();\n this.docReaderSignalR.connectionEstablished.subscribe(\n (connected: boolean) => {\n if (connected) {\n if (!this.signalREventsRegistered) {\n this.docReaderSignalR.registerOnScanningUpdate();\n this.docReaderSignalR.registerOnScanResults();\n this.docReaderSignalR.registerOnRefreshQr();\n this.signalREventsRegistered = true;\n }\n\n this.scanningUpdateSubscription =\n this.docReaderSignalR.onScanningUpdate.subscribe(\n (data: number) => {\n this.scanningStatus = data;\n\n if (this.scanningStatus == this.scanningStatusEnum.Closed) {\n this.scanningStatus = ScanningStatus.Pending;\n }\n }\n );\n\n this.scanningResultsSubscription =\n this.docReaderSignalR.onScanningResults.subscribe(\n (data: any) => {\n if (\n data &&\n Object.keys(data).length > 0 &&\n typeof data != 'string'\n ) {\n this.store.dispatch(\n new StartAnalyzeDocumentSuccess(data)\n );\n } else {\n this.store.dispatch(new StartAnalyzeDocumentError(data));\n }\n }\n );\n\n this.refreshQrSubscription =\n this.docReaderSignalR.onQrRefresh.subscribe(() => {\n this.getShortUrl();\n });\n } else {\n this.scanningUpdateSubscription.unsubscribe();\n this.scanningResultsSubscription.unsubscribe();\n this.refreshQrSubscription.unsubscribe();\n }\n }\n );\n }\n\n // Change detection currently for errors , we can use it to handle the rest of the changes at a later stage\n this.scanningStatus$\n .pipe(filter((f) => f != undefined))\n .subscribe((status) => {\n if (status == ScanningStatus.Error) {\n this.scanningStatus = ScanningStatus.Error;\n }\n\n if (status == ScanningStatus.UnsupportedDocument) {\n this.scanningStatus = ScanningStatus.UnsupportedDocument;\n }\n\n if (status == ScanningStatus.UnsupportedDocumentType) {\n this.scanningStatus = ScanningStatus.UnsupportedDocumentType;\n }\n\n if (status == ScanningStatus.Success) {\n this.scanningStatus = ScanningStatus.Success;\n setTimeout(() => {\n this.onSkip(true);\n }, 1000);\n }\n });\n\n this.eventIdParam = this.route.snapshot.paramMap.get('eventId');\n }\n this.formControl.setValue(true);\n }\n\n public getShortUrl() {\n this.urlShortenerService\n .getShortenedURL(this.fullUrl)\n .then((result: any) => {\n this.qrCodeValue = result.shortUrl;\n })\n .catch((error) => {\n console.log(error);\n });\n }\n\n public docReaderSuccess(event) {\n this.scanningStatus = ScanningStatus.Success;\n event.EventID = this.eventIdParam;\n\n var document = new DocumentScanningModel(\n this.eventIdParam,\n event.ImageResults,\n event.TextResults\n );\n this.store.dispatch(\n new StartAnalyzeDocument(\n document,\n this.currentLanguage,\n this.formId,\n this.isMobileDevice\n )\n );\n }\n\n public async onFileChange(event) {\n try {\n this.fileUploadError = '';\n\n const files = (event.target as HTMLInputElement).files;\n let images: Array<RegulaImageResult> = [];\n let fileReaderPromises = [];\n\n if (files && files[0]) {\n // File count check\n if (files.length > 2) {\n this.fileUploadError = this.translateService.instant(\n 'idScanning.error-file-number-exceeded'\n );\n this.docReaderEvent(\n this.fileUploadError + '. Uploaded files : ' + files.length,\n true\n );\n return;\n }\n\n for (let i = 0; i < files.length; i++) {\n let currentFile = files.item(i);\n\n // Size check\n if (currentFile.size > this.fileSizeLimit) {\n this.fileUploadError = this.translateService.instant(\n 'idScanning.error-file-size-exceeded'\n );\n await this.docReaderEvent(\n this.fileUploadError +\n '. Selected file size: ' +\n currentFile.size,\n true\n );\n return;\n }\n\n if (\n currentFile.type.includes('image/png') ||\n currentFile.type.includes('image/jpg') ||\n currentFile.type.includes('image/jpeg') ||\n currentFile.type.includes('application/pdf')\n ) {\n fileReaderPromises.push(this.fileToBase64(currentFile));\n } else {\n this.fileUploadError = this.translateService.instant(\n 'idScanning.error-file-format-unsupported'\n );\n await this.docReaderEvent(\n this.fileUploadError +\n '. Selected file type: ' +\n currentFile.type,\n true\n );\n return;\n }\n }\n\n Promise.all(fileReaderPromises).then((imgs) => {\n images = imgs.map(\n (imgbase64: string) => new RegulaImageResult(null, imgbase64)\n );\n var document = new DocumentScanningModel(\n this.eventIdParam,\n images,\n []\n );\n this.scanningStatus = ScanningStatus.Uploading;\n this.store.dispatch(\n new StartAnalyzeDocument(\n document,\n this.currentLanguage,\n this.formId\n )\n );\n });\n } else {\n throw 'File not recognized';\n }\n this.formControl.setValue(true);\n this.scanningInProgress = false;\n } catch (error) {\n console.log(error);\n this.docReaderEvent(error, true);\n this.store.dispatch(new StartAnalyzeDocumentError());\n }\n }\n\n public async fileToBase64(file) {\n let fileReader = new FileReader();\n return new Promise((resolve) => {\n fileReader.readAsDataURL(file);\n\n (fileReader.onload = () => {\n let base64result = fileReader.result.toString().split(',')[1];\n resolve(base64result);\n }),\n (reject) => {\n fileReader.onerror = (err) => {\n reject(err);\n };\n };\n });\n }\n\n public onSkip(isSuccessful = false) {\n if (this.docReaderSignalR.connectionIsEstablished) {\n if (isSuccessful) {\n this.docReaderSignalR.sendScanningProcessUpdate(ScanningStatus.Success);\n this.scanningStatus = ScanningStatus.Pending;\n } else {\n this.cancelScanning();\n }\n } else {\n this.scanningStatus = ScanningStatus.Pending;\n }\n\n this.idScanningSkipEventService.navigateToForm();\n }\n\n public cancelScanning() {\n this.docReaderSignalR.sendScanningProcessUpdate(ScanningStatus.Cancelled);\n this.scanningStatus = ScanningStatus.Pending;\n }\n public copyToClipboard() {\n this.clipboard.copy(this.qrCodeValue);\n }\n\n @HostListener('window:beforeunload')\n async ngOnDestroy() {\n console.log(\"DocReader Hub connection active: \", this.docReaderSignalR.connectionIsEstablished);\n if (this.docReaderSignalR.connectionIsEstablished) {\n await this.docReaderSignalR.sendScanningProcessUpdate(\n ScanningStatus.Cancelled\n );\n\n this.docReaderSignalR.attemptReconnect = false;\n await this.docReaderSignalR.stopConnection();\n }\n }\n\n public async docReaderError(event) {\n this.scanningStatus = ScanningStatus.Error;\n\n this.store.dispatch(new StartAnalyzeDocumentError());\n }\n\n public async docReaderEvent(event, isFailure: boolean = false) {\n let idScanningLog = new IdScanningLogModel(\n this.eventIdParam,\n this.formId,\n this.currentLanguage,\n event,\n isFailure\n );\n\n this.idScanningLogSrv.logEvent(idScanningLog);\n }\n}\n","<span class=\"mat-form--optional\" *ngIf=\"!to.required\">{{ 'form.optional' | translate }}</span>\n<ng-container #fieldComponent></ng-container>\n","import { Component, OnInit, ViewChild, ViewContainerRef } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'app-optional-label-wrapper',\n templateUrl: './optional-label-wrapper.component.html',\n styleUrls: ['./optional-label-wrapper.component.scss']\n})\nexport class OptionalLabelWrapperComponent extends FieldWrapper {\n @ViewChild('fieldComponent', { read: ViewContainerRef, static: true })\n fieldComponent: ViewContainerRef;\n}\n","import { Directive, HostListener, Output, EventEmitter } from '@angular/core';\n\n@Directive({\n selector: '[numberField]'\n})\n\nexport class NumberFieldDirective {\n constructor() { }\n\n @HostListener('keydown', ['$event'])\n onKeydown(event: KeyboardEvent) {\n const value: string = (event.target as any).value;\n const startCursor: number = (event.target as any).selectionStart;\n const endCursor: number = (event.target as any).selectionEnd;\n if (event.key.startsWith('-')) {\n return false;\n }\n if (\n event.key === 'Backspace') {\n return true;\n }\n if (value.length === 11 && startCursor === endCursor) {\n return false;\n }\n return true;\n }\n}\n","import { Component } from '@angular/core';\nimport { FieldType } from '@ngx-formly/material';\n\n@Component({\n selector: 'app-number-input',\n templateUrl: './number-input.component.html'\n})\nexport class NumberInputComponent extends FieldType {}\n","<input matInput placeholder=\"{{ field.templateOptions.placeholder }}\" type=\"input\" [formControl]=\"formControl\"\n [formlyAttributes]=\"field\" numberField />\n","import { Component, OnInit, OnDestroy } from '@angular/core';\n\nimport { FieldType } from '@ngx-formly/material/form-field';\nimport { first } from 'rxjs/operators';\nimport { Subscription, Subject } from 'rxjs';\n\n@Component({\n selector: 'app-azeri-keyboard',\n templateUrl: './azeri-keyboard.component.html',\n styleUrls: ['./azeri-keyboard.component.scss']\n})\nexport class AzeriKeyboardComponent extends FieldType\n implements OnInit, OnDestroy {\n private subscription: Subscription;\n private subject: Subject<string>;\n\n constructor() {\n super();\n this.subject = new Subject();\n }\n\n ngOnInit() {\n this.subscription = this.subject\n .pipe(first())\n .subscribe(() => this.formControl.patchValue(''));\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n onFocus() {\n const value = this.formControl.value;\n if (value === undefined || value === null) {\n this.subject.next();\n }\n }\n}\n","<input\n matInput\n matKeyboard=\"az\"\n name=\"azeriKeyboard\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (focus)=\"onFocus()\"\n/>\n","import { Component, OnInit } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'app-contact-details-title',\n templateUrl: './contact-details-title.component.html'\n})\nexport class ContactDetailsTitleComponent extends FieldType implements OnInit {\n\n constructor() { super(); }\n\n ngOnInit(): void {\n this.field.className = \"form-field__contactdetails\";\n }\n}\n","<div [innerHTML]=\"'form.contact-details' | translate\"></div>\n","import { Component, OnInit } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'app-personal-details-title',\n templateUrl: './personal-details-title.component.html'\n})\nexport class PersonalDetailsTitleComponent extends FieldType implements OnInit {\n\n constructor() {\n super();\n }\n\n ngOnInit(): void {\n this.field.className = \"form-field__personaldetails\";\n }\n\n}\n","<div [innerHTML]=\"'form.personal-details' | translate\"></div>\n","import { Component, OnInit } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'app-picture-requirements',\n templateUrl: './picture-requirements.component.html',\n styleUrls: ['./picture-requirements.component.scss']\n})\nexport class PictureRequirementsComponent extends FieldType implements OnInit {\n\n constructor() { \n super();\n }\n\n ngOnInit(): void {\n }\n\n}\n"," <h4 id=\"pic-requirement-title\" [innerHTML]=\"'form.text-ppsection' | translate\"></h4>\n\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppapproved.svg\" />\n <br>\n <p class=\"pic-label approved\" [innerHTML]=\"'form.text-ppapproved' | translate\"></p>\n </div>\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppaway.svg\" />\n <br>\n <p class=\"pic-label declined ppaway\" [innerHTML]=\"'form.text-ppaway' | translate\"></p>\n </div>\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppfashion.svg\" />\n <br>\n <p class=\"pic-label declined\" [innerHTML]=\"'form.text-ppfashion' | translate\"></p>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppblurry.svg\" />\n <br>\n <p class=\"pic-label declined\" [innerHTML]=\"'form.text-ppblurry' | translate\"></p>\n </div>\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppfacecovered.svg\" />\n <br>\n <p class=\"pic-label declined\" [innerHTML]=\"'form.text-ppfacecovered' | translate\"></p>\n </div>\n <div class=\"col\">\n <img src=\"../../../assets/images/picture-requirements/ppabackground.svg\" />\n\n <br>\n <p class=\"pic-label declined ppabackground\" [innerHTML]=\"'form.text-ppabackground' | translate\"></p>\n </div>\n </div>\n </div>\n","import { ConfigOption } from '@ngx-formly/core';\n\nimport { DateInputComponent } from '@projects-shared/components/formly-custom-fields/date-input/date-input.component';\nimport { DateFutureInputComponent } from '@projects-shared/components/formly-custom-fields/date-future-input/date-future-input.component';\n// eslint-disable-next-line max-len\nimport { RussianKeyboardComponent } from '@projects-shared/components/formly-custom-fields/russian-keyboard/russian-keyboard.component';\nimport { ProfilePictureComponent } from '@projects-shared/components/formly-custom-fields/profile-picture/profile-picture.component';\nimport { LegalConditionComponent } from '@projects-shared/components/formly-custom-fields/legal-condition/legal-condition.component';\nimport { IdScanningDeviceDetectorComponent } from '@projects-shared/components/formly-custom-fields/id-scanning/id-scanning-device-detector.component';\n// eslint-disable-next-line max-len\nimport { OptionalLabelWrapperComponent } from '@projects-shared/components/formly-custom-wrappers/optional-label-wrapper/optional-label-wrapper.component';\nimport { NumberInputComponent } from '@projects-shared/components/formly-custom-fields/number-input/number-input.component';\nimport { Validators } from '@angular/forms';\nimport { AzeriKeyboardComponent } from '@projects-shared/components/formly-custom-fields/azeri-keyboard/azeri-keyboard.component';\nimport { ContactDetailsTitleComponent } from '@projects-shared/components/formly-custom-fields/contact-details-title/contact-details-title.component';\nimport { PersonalDetailsTitleComponent } from '@projects-shared/components/formly-custom-fields/personal-details-title/personal-details-title.component';\nimport { PictureRequirementsComponent } from '@projects-shared/components/formly-custom-fields/picture-requirements/picture-requirements.component';\n\nexport const FIELD_TYPE_COMPONENTS = [\n // types\n DateInputComponent,\n ProfilePictureComponent,\n LegalConditionComponent,\n IdScanningDeviceDetectorComponent,\n NumberInputComponent,\n ContactDetailsTitleComponent,\n PersonalDetailsTitleComponent,\n PictureRequirementsComponent\n];\n\nexport const FORMLY_CONFIG: ConfigOption = {\n types: [\n {\n name: 'date',\n component: DateInputComponent,\n extends: 'input',\n wrappers: ['form-field', 'optional-label-wrapper']\n },\n {\n name: 'date-future',\n component: DateFutureInputComponent,\n extends: 'input',\n wrappers: ['form-field', 'optional-label-wrapper']\n },\n {\n name: 'pic',\n component: ProfilePictureComponent\n },\n {\n name: 'russian-keyboard',\n component: RussianKeyboardComponent,\n wrappers: ['form-field'],\n defaultOptions: {\n templateOptions: {\n mask: ''\n }\n }\n },\n {\n name: 'azeri-keyboard',\n component: AzeriKeyboardComponent,\n wrappers: ['form-field'],\n defaultOptions: {\n templateOptions: {\n mask: ''\n }\n }\n },\n {\n name: 'number-input',\n extends: 'input',\n component: NumberInputComponent,\n wrappers: ['form-field', 'optional-label-wrapper']\n },\n {\n name: 'legalcondition',\n component: LegalConditionComponent\n },\n {\n name: 'id-scanning-device-detector',\n component: IdScanningDeviceDetectorComponent\n },\n {\n name: 'contact-details-title',\n component: ContactDetailsTitleComponent\n },\n {\n name: 'personal-details-title',\n component: PersonalDetailsTitleComponent\n },\n {\n name: 'pic-requirements',\n component: PictureRequirementsComponent\n },\n ],\n validationMessages: [\n { name: 'required', message: 'This field is required' },\n { name: 'pattern', message: 'MESSAGE.CRT_InvalidFormat' },\n { name: 'value', message: 'MESSAGE.CRT_InvalidValue' }\n ],\n validators: [{ name: 'requiredTrue', validation: Validators.requiredTrue }],\n wrappers: [\n { name: 'optional-label-wrapper', component: OptionalLabelWrapperComponent }\n ]\n};\n","import {\n HttpErrorResponse,\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n HttpResponse\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { tap } from 'rxjs/operators';\nimport { Store } from '@ngxs/store';\nimport { Navigate, RouterState } from '@ngxs/router-plugin';\n\n@Injectable()\nexport class Http401Interceptor implements HttpInterceptor {\n constructor(private store: Store) {}\n\n intercept(\n request: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n return next.handle(request).pipe(\n tap(\n (event: HttpEvent<any>) => {\n if (event instanceof HttpResponse) {\n // do stuff with response if you want\n }\n },\n (err: any) => {\n if (err instanceof HttpErrorResponse) {\n if (err.status === 401) {\n const routerState: any = this.store.selectSnapshot(\n RouterState.state\n );\n const invitationId =\n routerState.queryParams && routerState.queryParams.invitationId;\n this.store.dispatch(new Navigate(['/landing'], { invitationId }));\n // window.location.href = 'https://localhost:4200/landing';\n }\n }\n }\n )\n );\n }\n}\n","import { LoadConfig } from '@front-office/store/actions/config.actions';\nimport { Injectable } from '@angular/core';\nimport { Navigate, RouterState } from '@ngxs/router-plugin';\nimport { Store } from '@ngxs/store';\nimport {\n LoadUserAction,\n LoginUserAction,\n} from '@front-office/store/actions/user.actions';\nimport { UserState } from '@front-office/store/states/user.state';\nimport { ConfigState } from '@front-office/store/states/config.state';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AppInitService {\n constructor(private store: Store) {} // private router: Router\n\n async init() {\n if (location.hash.length > 0) {\n debugger \n sessionStorage.setItem(\n 'id_token',\n location.hash.replace('#id_token=', '')\n );\n //If the pathname is id-scanning and there is a token presented do not change location\n if (location.pathname !== \"/id-scanning\" && location.pathname !== \"/scan-expired\")\n history.replaceState(null, null, ' ');\n }\n\n await this.store.dispatch(new LoadConfig()).toPromise();\n\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n\n if (window.IdpManager) {\n window.IdpManager.init({ apiKey: config.gigyaApiKey });\n\n const eventEmitter = window.IdpManager.getEventEmitter();\n this.emmitEvent(eventEmitter);\n }\n\n await this.store.dispatch(new LoadUserAction()).toPromise();\n }\n\n private emmitEvent(emmiter: IdpEventEmitter) {\n emmiter.on('login', async (event) => {\n await this.store.dispatch(new LoginUserAction(event.user)).toPromise();\n\n await this.store.dispatch(new LoadUserAction()).toPromise();\n\n const userFromState = this.store.selectSnapshot(UserState.getUser);\n const routerState: any = this.store.selectSnapshot(RouterState.state);\n const invitationId =\n routerState.queryParams && routerState.queryParams.invitationId;\n\n if (userFromState && userFromState.uid) {\n this.store.dispatch(new Navigate(['/home'], { invitationId }));\n }\n });\n }\n}\n","import { Params, RouterStateSnapshot } from '@angular/router';\nimport { RouterStateSerializer } from '@ngxs/router-plugin';\nimport { Injectable } from '@angular/core';\n\nexport interface RouterStateParams {\n url: string;\n params: Params;\n queryParams: Params;\n}\n\n// Map the router snapshot to { url, params, queryParams }\n@Injectable()\nexport class CustomRouterStateSerializer\n implements RouterStateSerializer<RouterStateParams> {\n serialize(routerState: RouterStateSnapshot): RouterStateParams {\n const {\n url,\n root: { queryParams },\n } = routerState;\n\n let { root: route } = routerState;\n while (route.firstChild) {\n route = route.firstChild;\n }\n\n const { params } = route;\n\n return { url, params, queryParams };\n }\n}\n","import { Injectable } from '@angular/core';\nimport { TranslateLoader } from '@ngx-translate/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Store } from '@ngxs/store';\nimport { Observable } from 'rxjs';\nimport { ConfigState } from '@front-office/store/states/config.state';\nimport { RouterState, Navigate } from '@ngxs/router-plugin';\n\n@Injectable()\nexport class CustomTranslateService implements TranslateLoader {\n constructor(private store: Store, public http: HttpClient) {}\n\n getTranslation(lang: string): Observable<any> {\n const config = this.store.selectSnapshot(ConfigState.getConfig);\n const urlStore: any = this.store.selectSnapshot(RouterState.state);\n let eventId = urlStore && urlStore.params && urlStore.params.eventId;\n if (eventId === undefined) {\n var queryParams = new URLSearchParams(location.search);\n eventId = queryParams.get(\"eventId\")\n }\n const url =\n (eventId === undefined || eventId === null)\n ? `${config.apiUrl}/translations/${lang}`\n : `${config.apiUrl}/translations/event/${eventId}/${lang}`;\n return this.http.get(url);\n }\n}\n","import * as i1$1 from '@angular/cdk/overlay';\nimport { OverlayModule, OverlayConfig } from '@angular/cdk/overlay';\nimport * as i4 from '@angular/cdk/portal';\nimport { BasePortalOutlet, CdkPortalOutlet, PortalModule, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, ViewChild, NgModule, TemplateRef, Injector, InjectFlags, Injectable, SkipSelf } from '@angular/core';\nimport { AnimationDurations, AnimationCurves, MatCommonModule } from '@angular/material/core';\nimport { coerceArray } from '@angular/cdk/coercion';\nimport * as i2 from '@angular/cdk/layout';\nimport { Breakpoints } from '@angular/cdk/layout';\nimport { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';\nimport { DOCUMENT } from '@angular/common';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i1 from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { Subject, merge, of } from 'rxjs';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { filter, take } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Animations used by the Material bottom sheet. */\nconst matBottomSheetAnimations = {\n /** Animation that shows and hides a bottom sheet. */\n bottomSheetState: trigger('state', [\n state('void, hidden', style({ transform: 'translateY(100%)' })),\n state('visible', style({ transform: 'translateY(0%)' })),\n transition('visible => void, visible => hidden', animate(`${AnimationDurations.COMPLEX} ${AnimationCurves.ACCELERATION_CURVE}`)),\n transition('void => visible', animate(`${AnimationDurations.EXITING} ${AnimationCurves.DECELERATION_CURVE}`)),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to access the data that was passed in to a bottom sheet. */\nconst MAT_BOTTOM_SHEET_DATA = new InjectionToken('MatBottomSheetData');\n/**\n * Configuration used when opening a bottom sheet.\n */\nclass MatBottomSheetConfig {\n constructor() {\n /** Data being injected into the child component. */\n this.data = null;\n /** Whether the bottom sheet has a backdrop. */\n this.hasBackdrop = true;\n /** Whether the user can use escape or clicking outside to close the bottom sheet. */\n this.disableClose = false;\n /** Aria label to assign to the bottom sheet element. */\n this.ariaLabel = null;\n /**\n * Whether the bottom sheet should close when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.closeOnNavigation = true;\n // Note that this is set to 'dialog' by default, because while the a11y recommendations\n // are to focus the first focusable element, doing so prevents screen readers from reading out the\n // rest of the bottom sheet content.\n /**\n * Where the bottom sheet should focus on open.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or\n * AutoFocusTarget instead.\n */\n this.autoFocus = 'dialog';\n /**\n * Whether the bottom sheet should restore focus to the\n * previously-focused element, after it's closed.\n */\n this.restoreFocus = true;\n }\n}\n\n// TODO(crisbeto): consolidate some logic between this, MatDialog and MatSnackBar\n/**\n * Internal component that wraps user-provided bottom sheet content.\n * @docs-private\n */\nclass MatBottomSheetContainer extends BasePortalOutlet {\n constructor(_elementRef, _changeDetectorRef, _focusTrapFactory, _interactivityChecker, _ngZone, breakpointObserver, document, \n /** The bottom sheet configuration. */\n bottomSheetConfig) {\n super();\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._focusTrapFactory = _focusTrapFactory;\n this._interactivityChecker = _interactivityChecker;\n this._ngZone = _ngZone;\n this.bottomSheetConfig = bottomSheetConfig;\n /** The state of the bottom sheet animations. */\n this._animationState = 'void';\n /** Emits whenever the state of the animation changes. */\n this._animationStateChanged = new EventEmitter();\n /** Element that was focused before the bottom sheet was opened. */\n this._elementFocusedBeforeOpened = null;\n /**\n * Attaches a DOM portal to the bottom sheet container.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = (portal) => {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachDomPortal(portal);\n };\n this._document = document;\n this._breakpointSubscription = breakpointObserver\n .observe([Breakpoints.Medium, Breakpoints.Large, Breakpoints.XLarge])\n .subscribe(() => {\n this._toggleClass('mat-bottom-sheet-container-medium', breakpointObserver.isMatched(Breakpoints.Medium));\n this._toggleClass('mat-bottom-sheet-container-large', breakpointObserver.isMatched(Breakpoints.Large));\n this._toggleClass('mat-bottom-sheet-container-xlarge', breakpointObserver.isMatched(Breakpoints.XLarge));\n });\n }\n /** Attach a component portal as content to this bottom sheet container. */\n attachComponentPortal(portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachComponentPortal(portal);\n }\n /** Attach a template portal as content to this bottom sheet container. */\n attachTemplatePortal(portal) {\n this._validatePortalAttached();\n this._setPanelClass();\n this._savePreviouslyFocusedElement();\n return this._portalOutlet.attachTemplatePortal(portal);\n }\n /** Begin animation of bottom sheet entrance into view. */\n enter() {\n if (!this._destroyed) {\n this._animationState = 'visible';\n this._changeDetectorRef.detectChanges();\n }\n }\n /** Begin animation of the bottom sheet exiting from view. */\n exit() {\n if (!this._destroyed) {\n this._animationState = 'hidden';\n this._changeDetectorRef.markForCheck();\n }\n }\n ngOnDestroy() {\n this._breakpointSubscription.unsubscribe();\n this._destroyed = true;\n }\n _onAnimationDone(event) {\n if (event.toState === 'hidden') {\n this._restoreFocus();\n }\n else if (event.toState === 'visible') {\n this._trapFocus();\n }\n this._animationStateChanged.emit(event);\n }\n _onAnimationStart(event) {\n this._animationStateChanged.emit(event);\n }\n _toggleClass(cssClass, add) {\n this._elementRef.nativeElement.classList.toggle(cssClass, add);\n }\n _validatePortalAttached() {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Attempting to attach bottom sheet content after content is already attached');\n }\n }\n _setPanelClass() {\n const element = this._elementRef.nativeElement;\n element.classList.add(...coerceArray(this.bottomSheetConfig.panelClass || []));\n }\n /**\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\n * @param element The element to focus.\n */\n _forceFocus(element, options) {\n if (!this._interactivityChecker.isFocusable(element)) {\n element.tabIndex = -1;\n // The tabindex attribute should be removed to avoid navigating to that element again\n this._ngZone.runOutsideAngular(() => {\n element.addEventListener('blur', () => element.removeAttribute('tabindex'));\n element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));\n });\n }\n element.focus(options);\n }\n /**\n * Focuses the first element that matches the given selector within the focus trap.\n * @param selector The CSS selector for the element to set focus to.\n */\n _focusByCssSelector(selector, options) {\n let elementToFocus = this._elementRef.nativeElement.querySelector(selector);\n if (elementToFocus) {\n this._forceFocus(elementToFocus, options);\n }\n }\n /**\n * Moves the focus inside the focus trap. When autoFocus is not set to 'bottom-sheet',\n * if focus cannot be moved then focus will go to the bottom sheet container.\n */\n _trapFocus() {\n const element = this._elementRef.nativeElement;\n if (!this._focusTrap) {\n this._focusTrap = this._focusTrapFactory.create(element);\n }\n // If were to attempt to focus immediately, then the content of the bottom sheet would not\n // yet be ready in instances where change detection has to run first. To deal with this,\n // we simply wait for the microtask queue to be empty when setting focus when autoFocus\n // isn't set to bottom sheet. If the element inside the bottom sheet can't be focused,\n // then the container is focused so the user can't tab into other elements behind it.\n switch (this.bottomSheetConfig.autoFocus) {\n case false:\n case 'dialog':\n const activeElement = _getFocusedElementPierceShadowDom();\n // Ensure that focus is on the bottom sheet container. It's possible that a different\n // component tried to move focus while the open animation was running. See:\n // https://github.com/angular/components/issues/16215. Note that we only want to do this\n // if the focus isn't inside the bottom sheet already, because it's possible that the\n // consumer specified `autoFocus` in order to move focus themselves.\n if (activeElement !== element && !element.contains(activeElement)) {\n element.focus();\n }\n break;\n case true:\n case 'first-tabbable':\n this._focusTrap.focusInitialElementWhenReady();\n break;\n case 'first-heading':\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\n break;\n default:\n this._focusByCssSelector(this.bottomSheetConfig.autoFocus);\n break;\n }\n }\n /** Restores focus to the element that was focused before the bottom sheet was opened. */\n _restoreFocus() {\n const toFocus = this._elementFocusedBeforeOpened;\n // We need the extra check, because IE can set the `activeElement` to null in some cases.\n if (this.bottomSheetConfig.restoreFocus && toFocus && typeof toFocus.focus === 'function') {\n const activeElement = _getFocusedElementPierceShadowDom();\n const element = this._elementRef.nativeElement;\n // Make sure that focus is still inside the bottom sheet or is on the body (usually because a\n // non-focusable element like the backdrop was clicked) before moving it. It's possible that\n // the consumer moved it themselves before the animation was done, in which case we shouldn't\n // do anything.\n if (!activeElement ||\n activeElement === this._document.body ||\n activeElement === element ||\n element.contains(activeElement)) {\n toFocus.focus();\n }\n }\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n }\n /** Saves a reference to the element that was focused before the bottom sheet was opened. */\n _savePreviouslyFocusedElement() {\n this._elementFocusedBeforeOpened = _getFocusedElementPierceShadowDom();\n // The `focus` method isn't available during server-side rendering.\n if (this._elementRef.nativeElement.focus) {\n this._ngZone.runOutsideAngular(() => {\n Promise.resolve().then(() => this._elementRef.nativeElement.focus());\n });\n }\n }\n}\nMatBottomSheetContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetContainer, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.FocusTrapFactory }, { token: i1.InteractivityChecker }, { token: i0.NgZone }, { token: i2.BreakpointObserver }, { token: DOCUMENT, optional: true }, { token: MatBottomSheetConfig }], target: i0.ɵɵFactoryTarget.Component });\nMatBottomSheetContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatBottomSheetContainer, selector: \"mat-bottom-sheet-container\", host: { attributes: { \"tabindex\": \"-1\", \"role\": \"dialog\", \"aria-modal\": \"true\" }, listeners: { \"@state.start\": \"_onAnimationStart($event)\", \"@state.done\": \"_onAnimationDone($event)\" }, properties: { \"attr.aria-label\": \"bottomSheetConfig?.ariaLabel\", \"@state\": \"_animationState\" }, classAttribute: \"mat-bottom-sheet-container\" }, viewQueries: [{ propertyName: \"_portalOutlet\", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: \"<ng-template cdkPortalOutlet></ng-template>\\r\\n\", styles: [\".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\\n\"], directives: [{ type: i4.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [matBottomSheetAnimations.bottomSheetState], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-bottom-sheet-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [matBottomSheetAnimations.bottomSheetState], host: {\n 'class': 'mat-bottom-sheet-container',\n 'tabindex': '-1',\n 'role': 'dialog',\n 'aria-modal': 'true',\n '[attr.aria-label]': 'bottomSheetConfig?.ariaLabel',\n '[@state]': '_animationState',\n '(@state.start)': '_onAnimationStart($event)',\n '(@state.done)': '_onAnimationDone($event)',\n }, template: \"<ng-template cdkPortalOutlet></ng-template>\\r\\n\", styles: [\".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.FocusTrapFactory }, { type: i1.InteractivityChecker }, { type: i0.NgZone }, { type: i2.BreakpointObserver }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: MatBottomSheetConfig }];\n }, propDecorators: { _portalOutlet: [{\n type: ViewChild,\n args: [CdkPortalOutlet, { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatBottomSheetModule {\n}\nMatBottomSheetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatBottomSheetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetModule, declarations: [MatBottomSheetContainer], imports: [OverlayModule, MatCommonModule, PortalModule], exports: [MatBottomSheetContainer, MatCommonModule] });\nMatBottomSheetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetModule, imports: [[OverlayModule, MatCommonModule, PortalModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheetModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [OverlayModule, MatCommonModule, PortalModule],\n exports: [MatBottomSheetContainer, MatCommonModule],\n declarations: [MatBottomSheetContainer],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Reference to a bottom sheet dispatched from the bottom sheet service.\n */\nclass MatBottomSheetRef {\n constructor(containerInstance, _overlayRef) {\n this._overlayRef = _overlayRef;\n /** Subject for notifying the user that the bottom sheet has been dismissed. */\n this._afterDismissed = new Subject();\n /** Subject for notifying the user that the bottom sheet has opened and appeared. */\n this._afterOpened = new Subject();\n this.containerInstance = containerInstance;\n this.disableClose = containerInstance.bottomSheetConfig.disableClose;\n // Emit when opening animation completes\n containerInstance._animationStateChanged\n .pipe(filter(event => event.phaseName === 'done' && event.toState === 'visible'), take(1))\n .subscribe(() => {\n this._afterOpened.next();\n this._afterOpened.complete();\n });\n // Dispose overlay when closing animation is complete\n containerInstance._animationStateChanged\n .pipe(filter(event => event.phaseName === 'done' && event.toState === 'hidden'), take(1))\n .subscribe(() => {\n clearTimeout(this._closeFallbackTimeout);\n _overlayRef.dispose();\n });\n _overlayRef\n .detachments()\n .pipe(take(1))\n .subscribe(() => {\n this._afterDismissed.next(this._result);\n this._afterDismissed.complete();\n });\n merge(_overlayRef.backdropClick(), _overlayRef.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE))).subscribe(event => {\n if (!this.disableClose &&\n (event.type !== 'keydown' || !hasModifierKey(event))) {\n event.preventDefault();\n this.dismiss();\n }\n });\n }\n /**\n * Dismisses the bottom sheet.\n * @param result Data to be passed back to the bottom sheet opener.\n */\n dismiss(result) {\n if (!this._afterDismissed.closed) {\n // Transition the backdrop in parallel to the bottom sheet.\n this.containerInstance._animationStateChanged\n .pipe(filter(event => event.phaseName === 'start'), take(1))\n .subscribe(event => {\n // The logic that disposes of the overlay depends on the exit animation completing, however\n // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback\n // timeout which will clean everything up if the animation hasn't fired within the specified\n // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the\n // vast majority of cases the timeout will have been cleared before it has fired.\n this._closeFallbackTimeout = setTimeout(() => {\n this._overlayRef.dispose();\n }, event.totalTime + 100);\n this._overlayRef.detachBackdrop();\n });\n this._result = result;\n this.containerInstance.exit();\n }\n }\n /** Gets an observable that is notified when the bottom sheet is finished closing. */\n afterDismissed() {\n return this._afterDismissed;\n }\n /** Gets an observable that is notified when the bottom sheet has opened and appeared. */\n afterOpened() {\n return this._afterOpened;\n }\n /**\n * Gets an observable that emits when the overlay's backdrop has been clicked.\n */\n backdropClick() {\n return this._overlayRef.backdropClick();\n }\n /**\n * Gets an observable that emits when keydown events are targeted on the overlay.\n */\n keydownEvents() {\n return this._overlayRef.keydownEvents();\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token that can be used to specify default bottom sheet options. */\nconst MAT_BOTTOM_SHEET_DEFAULT_OPTIONS = new InjectionToken('mat-bottom-sheet-default-options');\n/**\n * Service to trigger Material Design bottom sheets.\n */\nclass MatBottomSheet {\n constructor(_overlay, _injector, _parentBottomSheet, _defaultOptions) {\n this._overlay = _overlay;\n this._injector = _injector;\n this._parentBottomSheet = _parentBottomSheet;\n this._defaultOptions = _defaultOptions;\n this._bottomSheetRefAtThisLevel = null;\n }\n /** Reference to the currently opened bottom sheet. */\n get _openedBottomSheetRef() {\n const parent = this._parentBottomSheet;\n return parent ? parent._openedBottomSheetRef : this._bottomSheetRefAtThisLevel;\n }\n set _openedBottomSheetRef(value) {\n if (this._parentBottomSheet) {\n this._parentBottomSheet._openedBottomSheetRef = value;\n }\n else {\n this._bottomSheetRefAtThisLevel = value;\n }\n }\n open(componentOrTemplateRef, config) {\n const _config = _applyConfigDefaults(this._defaultOptions || new MatBottomSheetConfig(), config);\n const overlayRef = this._createOverlay(_config);\n const container = this._attachContainer(overlayRef, _config);\n const ref = new MatBottomSheetRef(container, overlayRef);\n if (componentOrTemplateRef instanceof TemplateRef) {\n container.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, {\n $implicit: _config.data,\n bottomSheetRef: ref,\n }));\n }\n else {\n const portal = new ComponentPortal(componentOrTemplateRef, undefined, this._createInjector(_config, ref));\n const contentRef = container.attachComponentPortal(portal);\n ref.instance = contentRef.instance;\n }\n // When the bottom sheet is dismissed, clear the reference to it.\n ref.afterDismissed().subscribe(() => {\n // Clear the bottom sheet ref if it hasn't already been replaced by a newer one.\n if (this._openedBottomSheetRef == ref) {\n this._openedBottomSheetRef = null;\n }\n });\n if (this._openedBottomSheetRef) {\n // If a bottom sheet is already in view, dismiss it and enter the\n // new bottom sheet after exit animation is complete.\n this._openedBottomSheetRef.afterDismissed().subscribe(() => ref.containerInstance.enter());\n this._openedBottomSheetRef.dismiss();\n }\n else {\n // If no bottom sheet is in view, enter the new bottom sheet.\n ref.containerInstance.enter();\n }\n this._openedBottomSheetRef = ref;\n return ref;\n }\n /**\n * Dismisses the currently-visible bottom sheet.\n * @param result Data to pass to the bottom sheet instance.\n */\n dismiss(result) {\n if (this._openedBottomSheetRef) {\n this._openedBottomSheetRef.dismiss(result);\n }\n }\n ngOnDestroy() {\n if (this._bottomSheetRefAtThisLevel) {\n this._bottomSheetRefAtThisLevel.dismiss();\n }\n }\n /**\n * Attaches the bottom sheet container component to the overlay.\n */\n _attachContainer(overlayRef, config) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const injector = Injector.create({\n parent: userInjector || this._injector,\n providers: [{ provide: MatBottomSheetConfig, useValue: config }],\n });\n const containerPortal = new ComponentPortal(MatBottomSheetContainer, config.viewContainerRef, injector);\n const containerRef = overlayRef.attach(containerPortal);\n return containerRef.instance;\n }\n /**\n * Creates a new overlay and places it in the correct location.\n * @param config The user-specified bottom sheet config.\n */\n _createOverlay(config) {\n const overlayConfig = new OverlayConfig({\n direction: config.direction,\n hasBackdrop: config.hasBackdrop,\n disposeOnNavigation: config.closeOnNavigation,\n maxWidth: '100%',\n scrollStrategy: config.scrollStrategy || this._overlay.scrollStrategies.block(),\n positionStrategy: this._overlay.position().global().centerHorizontally().bottom('0'),\n });\n if (config.backdropClass) {\n overlayConfig.backdropClass = config.backdropClass;\n }\n return this._overlay.create(overlayConfig);\n }\n /**\n * Creates an injector to be used inside of a bottom sheet component.\n * @param config Config that was used to create the bottom sheet.\n * @param bottomSheetRef Reference to the bottom sheet.\n */\n _createInjector(config, bottomSheetRef) {\n const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;\n const providers = [\n { provide: MatBottomSheetRef, useValue: bottomSheetRef },\n { provide: MAT_BOTTOM_SHEET_DATA, useValue: config.data },\n ];\n if (config.direction &&\n (!userInjector ||\n !userInjector.get(Directionality, null, InjectFlags.Optional))) {\n providers.push({\n provide: Directionality,\n useValue: { value: config.direction, change: of() },\n });\n }\n return Injector.create({ parent: userInjector || this._injector, providers });\n }\n}\nMatBottomSheet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheet, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }, { token: MatBottomSheet, optional: true, skipSelf: true }, { token: MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nMatBottomSheet.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheet, providedIn: MatBottomSheetModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatBottomSheet, decorators: [{\n type: Injectable,\n args: [{ providedIn: MatBottomSheetModule }]\n }], ctorParameters: function () {\n return [{ type: i1$1.Overlay }, { type: i0.Injector }, { type: MatBottomSheet, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }, { type: MatBottomSheetConfig, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_BOTTOM_SHEET_DEFAULT_OPTIONS]\n }] }];\n } });\n/**\n * Applies default options to the bottom sheet config.\n * @param defaults Object containing the default values to which to fall back.\n * @param config The configuration to which the defaults will be applied.\n * @returns The new configuration object with defaults applied.\n */\nfunction _applyConfigDefaults(defaults, config) {\n return Object.assign(Object.assign({}, defaults), config);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_BOTTOM_SHEET_DATA, MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, MatBottomSheet, MatBottomSheetConfig, MatBottomSheetContainer, MatBottomSheetModule, MatBottomSheetRef, matBottomSheetAnimations };\n","import * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { MatCommonModule } from '@angular/material/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatDivider {\n constructor() {\n this._vertical = false;\n this._inset = false;\n }\n /** Whether the divider is vertically aligned. */\n get vertical() {\n return this._vertical;\n }\n set vertical(value) {\n this._vertical = coerceBooleanProperty(value);\n }\n /** Whether the divider is an inset divider. */\n get inset() {\n return this._inset;\n }\n set inset(value) {\n this._inset = coerceBooleanProperty(value);\n }\n}\nMatDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });\nMatDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDivider, selector: \"mat-divider\", inputs: { vertical: \"vertical\", inset: \"inset\" }, host: { attributes: { \"role\": \"separator\" }, properties: { \"attr.aria-orientation\": \"vertical ? \\\"vertical\\\" : \\\"horizontal\\\"\", \"class.mat-divider-vertical\": \"vertical\", \"class.mat-divider-horizontal\": \"!vertical\", \"class.mat-divider-inset\": \"inset\" }, classAttribute: \"mat-divider\" }, ngImport: i0, template: '', isInline: true, styles: [\".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDivider, decorators: [{\n type: Component,\n args: [{ selector: 'mat-divider', host: {\n 'role': 'separator',\n '[attr.aria-orientation]': 'vertical ? \"vertical\" : \"horizontal\"',\n '[class.mat-divider-vertical]': 'vertical',\n '[class.mat-divider-horizontal]': '!vertical',\n '[class.mat-divider-inset]': 'inset',\n 'class': 'mat-divider',\n }, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\\n\"] }]\n }], propDecorators: { vertical: [{\n type: Input\n }], inset: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatDividerModule {\n}\nMatDividerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDividerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatDividerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDividerModule, declarations: [MatDivider], imports: [MatCommonModule], exports: [MatDivider, MatCommonModule] });\nMatDividerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDividerModule, imports: [[MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDividerModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatCommonModule],\n exports: [MatDivider, MatCommonModule],\n declarations: [MatDivider],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatDivider, MatDividerModule };\n","import * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Optional, Inject, ContentChildren, ContentChild, Input, forwardRef, EventEmitter, Output, ViewChild, Attribute, NgModule } from '@angular/core';\nimport * as i1 from '@angular/material/core';\nimport { mixinDisabled, mixinDisableRipple, setLines, MatLine, MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Subject } from 'rxjs';\nimport { takeUntil, startWith } from 'rxjs/operators';\nimport * as i3 from '@angular/cdk/a11y';\nimport { FocusKeyManager } from '@angular/cdk/a11y';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { hasModifierKey, A, ENTER, SPACE, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { MatDividerModule } from '@angular/material/divider';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatList.\n/** @docs-private */\nconst _MatListBase = mixinDisabled(mixinDisableRipple(class {\n}));\n// Boilerplate for applying mixins to MatListItem.\n/** @docs-private */\nconst _MatListItemMixinBase = mixinDisableRipple(class {\n});\n/**\n * Injection token that can be used to inject instances of `MatList`. It serves as\n * alternative token to the actual `MatList` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\nconst MAT_LIST = new InjectionToken('MatList');\n/**\n * Injection token that can be used to inject instances of `MatNavList`. It serves as\n * alternative token to the actual `MatNavList` class which could cause unnecessary\n * retention of the class and its component metadata.\n */\nconst MAT_NAV_LIST = new InjectionToken('MatNavList');\nclass MatNavList extends _MatListBase {\n constructor() {\n super(...arguments);\n /** Emits when the state of the list changes. */\n this._stateChanges = new Subject();\n }\n ngOnChanges() {\n this._stateChanges.next();\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n}\nMatNavList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNavList, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatNavList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatNavList, selector: \"mat-nav-list\", inputs: { disableRipple: \"disableRipple\", disabled: \"disabled\" }, host: { attributes: { \"role\": \"navigation\" }, classAttribute: \"mat-nav-list mat-list-base\" }, providers: [{ provide: MAT_NAV_LIST, useExisting: MatNavList }], exportAs: [\"matNavList\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"<ng-content></ng-content>\\n\\n\", styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNavList, decorators: [{\n type: Component,\n args: [{ selector: 'mat-nav-list', exportAs: 'matNavList', host: {\n 'role': 'navigation',\n 'class': 'mat-nav-list mat-list-base',\n }, inputs: ['disableRipple', 'disabled'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: MAT_NAV_LIST, useExisting: MatNavList }], template: \"<ng-content></ng-content>\\n\\n\", styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"] }]\n }] });\nclass MatList extends _MatListBase {\n constructor(_elementRef) {\n super();\n this._elementRef = _elementRef;\n /** Emits when the state of the list changes. */\n this._stateChanges = new Subject();\n if (this._getListType() === 'action-list') {\n _elementRef.nativeElement.classList.add('mat-action-list');\n }\n }\n _getListType() {\n const nodeName = this._elementRef.nativeElement.nodeName.toLowerCase();\n if (nodeName === 'mat-list') {\n return 'list';\n }\n if (nodeName === 'mat-action-list') {\n return 'action-list';\n }\n return null;\n }\n ngOnChanges() {\n this._stateChanges.next();\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n}\nMatList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatList, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });\nMatList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatList, selector: \"mat-list, mat-action-list\", inputs: { disableRipple: \"disableRipple\", disabled: \"disabled\" }, host: { classAttribute: \"mat-list mat-list-base\" }, providers: [{ provide: MAT_LIST, useExisting: MatList }], exportAs: [\"matList\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"<ng-content></ng-content>\\n\\n\", styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatList, decorators: [{\n type: Component,\n args: [{ selector: 'mat-list, mat-action-list', exportAs: 'matList', host: {\n 'class': 'mat-list mat-list-base',\n }, inputs: ['disableRipple', 'disabled'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: MAT_LIST, useExisting: MatList }], template: \"<ng-content></ng-content>\\n\\n\", styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"] }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatListAvatarCssMatStyler {\n}\nMatListAvatarCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListAvatarCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatListAvatarCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatListAvatarCssMatStyler, selector: \"[mat-list-avatar], [matListAvatar]\", host: { classAttribute: \"mat-list-avatar\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListAvatarCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-list-avatar], [matListAvatar]',\n host: { 'class': 'mat-list-avatar' },\n }]\n }] });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatListIconCssMatStyler {\n}\nMatListIconCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListIconCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatListIconCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatListIconCssMatStyler, selector: \"[mat-list-icon], [matListIcon]\", host: { classAttribute: \"mat-list-icon\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListIconCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-list-icon], [matListIcon]',\n host: { 'class': 'mat-list-icon' },\n }]\n }] });\n/**\n * Directive whose purpose is to add the mat- CSS styling to this selector.\n * @docs-private\n */\nclass MatListSubheaderCssMatStyler {\n}\nMatListSubheaderCssMatStyler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListSubheaderCssMatStyler, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatListSubheaderCssMatStyler.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatListSubheaderCssMatStyler, selector: \"[mat-subheader], [matSubheader]\", host: { classAttribute: \"mat-subheader\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListSubheaderCssMatStyler, decorators: [{\n type: Directive,\n args: [{\n selector: '[mat-subheader], [matSubheader]',\n host: { 'class': 'mat-subheader' },\n }]\n }] });\n/** An item within a Material Design list. */\nclass MatListItem extends _MatListItemMixinBase {\n constructor(_element, _changeDetectorRef, navList, list) {\n super();\n this._element = _element;\n this._isInteractiveList = false;\n this._destroyed = new Subject();\n this._disabled = false;\n this._isInteractiveList = !!(navList || (list && list._getListType() === 'action-list'));\n this._list = navList || list;\n // If no type attribute is specified for <button>, set it to \"button\".\n // If a type attribute is already specified, do nothing.\n const element = this._getHostElement();\n if (element.nodeName.toLowerCase() === 'button' && !element.hasAttribute('type')) {\n element.setAttribute('type', 'button');\n }\n if (this._list) {\n // React to changes in the state of the parent list since\n // some of the item's properties depend on it (e.g. `disableRipple`).\n this._list._stateChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {\n _changeDetectorRef.markForCheck();\n });\n }\n }\n /** Whether the option is disabled. */\n get disabled() {\n return this._disabled || !!(this._list && this._list.disabled);\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n ngAfterContentInit() {\n setLines(this._lines, this._element);\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Whether this list item should show a ripple effect when clicked. */\n _isRippleDisabled() {\n return (!this._isInteractiveList || this.disableRipple || !!(this._list && this._list.disableRipple));\n }\n /** Retrieves the DOM element of the component host. */\n _getHostElement() {\n return this._element.nativeElement;\n }\n}\nMatListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListItem, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MAT_NAV_LIST, optional: true }, { token: MAT_LIST, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatListItem, selector: \"mat-list-item, a[mat-list-item], button[mat-list-item]\", inputs: { disableRipple: \"disableRipple\", disabled: \"disabled\" }, host: { properties: { \"class.mat-list-item-disabled\": \"disabled\", \"class.mat-list-item-avatar\": \"_avatar || _icon\", \"class.mat-list-item-with-avatar\": \"_avatar || _icon\" }, classAttribute: \"mat-list-item mat-focus-indicator\" }, queries: [{ propertyName: \"_avatar\", first: true, predicate: MatListAvatarCssMatStyler, descendants: true }, { propertyName: \"_icon\", first: true, predicate: MatListIconCssMatStyler, descendants: true }, { propertyName: \"_lines\", predicate: MatLine, descendants: true }], exportAs: [\"matListItem\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-list-item-content\\\">\\n <div class=\\\"mat-list-item-ripple\\\" mat-ripple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\">\\n </div>\\n\\n <ng-content select=\\\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\\\">\\n </ng-content>\\n\\n <div class=\\\"mat-list-text\\\"><ng-content select=\\\"[mat-line], [matLine]\\\"></ng-content></div>\\n\\n <ng-content></ng-content>\\n</div>\\n\", directives: [{ type: i1.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListItem, decorators: [{\n type: Component,\n args: [{ selector: 'mat-list-item, a[mat-list-item], button[mat-list-item]', exportAs: 'matListItem', host: {\n 'class': 'mat-list-item mat-focus-indicator',\n '[class.mat-list-item-disabled]': 'disabled',\n // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`.\n '[class.mat-list-item-avatar]': '_avatar || _icon',\n '[class.mat-list-item-with-avatar]': '_avatar || _icon',\n }, inputs: ['disableRipple'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-list-item-content\\\">\\n <div class=\\\"mat-list-item-ripple\\\" mat-ripple\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\">\\n </div>\\n\\n <ng-content select=\\\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\\\">\\n </ng-content>\\n\\n <div class=\\\"mat-list-text\\\"><ng-content select=\\\"[mat-line], [matLine]\\\"></ng-content></div>\\n\\n <ng-content></ng-content>\\n</div>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MatNavList, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_NAV_LIST]\n }] }, { type: MatList, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_LIST]\n }] }];\n }, propDecorators: { _lines: [{\n type: ContentChildren,\n args: [MatLine, { descendants: true }]\n }], _avatar: [{\n type: ContentChild,\n args: [MatListAvatarCssMatStyler]\n }], _icon: [{\n type: ContentChild,\n args: [MatListIconCssMatStyler]\n }], disabled: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst _MatSelectionListBase = mixinDisableRipple(class {\n});\nconst _MatListOptionBase = mixinDisableRipple(class {\n});\n/** @docs-private */\nconst MAT_SELECTION_LIST_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MatSelectionList),\n multi: true,\n};\n/** Change event that is being fired whenever the selected state of an option changes. */\nclass MatSelectionListChange {\n constructor(\n /** Reference to the selection list that emitted the event. */\n source, \n /**\n * Reference to the option that has been changed.\n * @deprecated Use `options` instead, because some events may change more than one option.\n * @breaking-change 12.0.0\n */\n option, \n /** Reference to the options that have been changed. */\n options) {\n this.source = source;\n this.option = option;\n this.options = options;\n }\n}\n/**\n * Component for list-options of selection-list. Each list-option can automatically\n * generate a checkbox and can put current item into the selectionModel of selection-list\n * if the current item is selected.\n */\nclass MatListOption extends _MatListOptionBase {\n constructor(_element, _changeDetector, \n /** @docs-private */\n selectionList) {\n super();\n this._element = _element;\n this._changeDetector = _changeDetector;\n this.selectionList = selectionList;\n this._selected = false;\n this._disabled = false;\n this._hasFocus = false;\n /**\n * Emits when the selected state of the option has changed.\n * Use to facilitate two-data binding to the `selected` property.\n * @docs-private\n */\n this.selectedChange = new EventEmitter();\n /** Whether the label should appear before or after the checkbox. Defaults to 'after' */\n this.checkboxPosition = 'after';\n /**\n * This is set to true after the first OnChanges cycle so we don't clear the value of `selected`\n * in the first cycle.\n */\n this._inputsInitialized = false;\n }\n /** Theme color of the list option. This sets the color of the checkbox. */\n get color() {\n return this._color || this.selectionList.color;\n }\n set color(newValue) {\n this._color = newValue;\n }\n /** Value of the option */\n get value() {\n return this._value;\n }\n set value(newValue) {\n if (this.selected &&\n !this.selectionList.compareWith(newValue, this.value) &&\n this._inputsInitialized) {\n this.selected = false;\n }\n this._value = newValue;\n }\n /** Whether the option is disabled. */\n get disabled() {\n return this._disabled || (this.selectionList && this.selectionList.disabled);\n }\n set disabled(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._disabled) {\n this._disabled = newValue;\n this._changeDetector.markForCheck();\n }\n }\n /** Whether the option is selected. */\n get selected() {\n return this.selectionList.selectedOptions.isSelected(this);\n }\n set selected(value) {\n const isSelected = coerceBooleanProperty(value);\n if (isSelected !== this._selected) {\n this._setSelected(isSelected);\n if (isSelected || this.selectionList.multiple) {\n this.selectionList._reportValueChange();\n }\n }\n }\n ngOnInit() {\n const list = this.selectionList;\n if (list._value && list._value.some(value => list.compareWith(value, this._value))) {\n this._setSelected(true);\n }\n const wasSelected = this._selected;\n // List options that are selected at initialization can't be reported properly to the form\n // control. This is because it takes some time until the selection-list knows about all\n // available options. Also it can happen that the ControlValueAccessor has an initial value\n // that should be used instead. Deferring the value change report to the next tick ensures\n // that the form control value is not being overwritten.\n Promise.resolve().then(() => {\n if (this._selected || wasSelected) {\n this.selected = true;\n this._changeDetector.markForCheck();\n }\n });\n this._inputsInitialized = true;\n }\n ngAfterContentInit() {\n setLines(this._lines, this._element);\n }\n ngOnDestroy() {\n if (this.selected) {\n // We have to delay this until the next tick in order\n // to avoid changed after checked errors.\n Promise.resolve().then(() => {\n this.selected = false;\n });\n }\n const hadFocus = this._hasFocus;\n const newActiveItem = this.selectionList._removeOptionFromList(this);\n // Only move focus if this option was focused at the time it was destroyed.\n if (hadFocus && newActiveItem) {\n newActiveItem.focus();\n }\n }\n /** Toggles the selection state of the option. */\n toggle() {\n this.selected = !this.selected;\n }\n /** Allows for programmatic focusing of the option. */\n focus() {\n this._element.nativeElement.focus();\n }\n /**\n * Returns the list item's text label. Implemented as a part of the FocusKeyManager.\n * @docs-private\n */\n getLabel() {\n return this._text ? this._text.nativeElement.textContent || '' : '';\n }\n /** Whether this list item should show a ripple effect when clicked. */\n _isRippleDisabled() {\n return this.disabled || this.disableRipple || this.selectionList.disableRipple;\n }\n _handleClick() {\n if (!this.disabled && (this.selectionList.multiple || !this.selected)) {\n this.toggle();\n // Emit a change event if the selected state of the option changed through user interaction.\n this.selectionList._emitChangeEvent([this]);\n }\n }\n _handleFocus() {\n this.selectionList._setFocusedOption(this);\n this._hasFocus = true;\n }\n _handleBlur() {\n this.selectionList._onTouched();\n this._hasFocus = false;\n }\n /** Retrieves the DOM element of the component host. */\n _getHostElement() {\n return this._element.nativeElement;\n }\n /** Sets the selected state of the option. Returns whether the value has changed. */\n _setSelected(selected) {\n if (selected === this._selected) {\n return false;\n }\n this._selected = selected;\n if (selected) {\n this.selectionList.selectedOptions.select(this);\n }\n else {\n this.selectionList.selectedOptions.deselect(this);\n }\n this.selectedChange.emit(selected);\n this._changeDetector.markForCheck();\n return true;\n }\n /**\n * Notifies Angular that the option needs to be checked in the next change detection run. Mainly\n * used to trigger an update of the list option if the disabled state of the selection list\n * changed.\n */\n _markForCheck() {\n this._changeDetector.markForCheck();\n }\n}\nMatListOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: forwardRef(() => MatSelectionList) }], target: i0.ɵɵFactoryTarget.Component });\nMatListOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatListOption, selector: \"mat-list-option\", inputs: { disableRipple: \"disableRipple\", checkboxPosition: \"checkboxPosition\", color: \"color\", value: \"value\", disabled: \"disabled\", selected: \"selected\" }, outputs: { selectedChange: \"selectedChange\" }, host: { attributes: { \"role\": \"option\" }, listeners: { \"focus\": \"_handleFocus()\", \"blur\": \"_handleBlur()\", \"click\": \"_handleClick()\" }, properties: { \"class.mat-list-item-disabled\": \"disabled\", \"class.mat-list-item-with-avatar\": \"_avatar || _icon\", \"class.mat-primary\": \"color === \\\"primary\\\"\", \"class.mat-accent\": \"color !== \\\"primary\\\" && color !== \\\"warn\\\"\", \"class.mat-warn\": \"color === \\\"warn\\\"\", \"class.mat-list-single-selected-option\": \"selected && !selectionList.multiple\", \"attr.aria-selected\": \"selected\", \"attr.aria-disabled\": \"disabled\", \"attr.tabindex\": \"-1\" }, classAttribute: \"mat-list-item mat-list-option mat-focus-indicator\" }, queries: [{ propertyName: \"_avatar\", first: true, predicate: MatListAvatarCssMatStyler, descendants: true }, { propertyName: \"_icon\", first: true, predicate: MatListIconCssMatStyler, descendants: true }, { propertyName: \"_lines\", predicate: MatLine, descendants: true }], viewQueries: [{ propertyName: \"_text\", first: true, predicate: [\"text\"], descendants: true }], exportAs: [\"matListOption\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-list-item-content\\\"\\n [class.mat-list-item-content-reverse]=\\\"checkboxPosition == 'after'\\\">\\n\\n <div mat-ripple\\n class=\\\"mat-list-item-ripple\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"></div>\\n\\n <mat-pseudo-checkbox\\n *ngIf=\\\"selectionList.multiple\\\"\\n [state]=\\\"selected ? 'checked' : 'unchecked'\\\"\\n [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n <div class=\\\"mat-list-text\\\" #text><ng-content></ng-content></div>\\n\\n <ng-content select=\\\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\\\">\\n </ng-content>\\n\\n</div>\\n\", components: [{ type: i1.MatPseudoCheckbox, selector: \"mat-pseudo-checkbox\", inputs: [\"state\", \"disabled\"] }], directives: [{ type: i1.MatRipple, selector: \"[mat-ripple], [matRipple]\", inputs: [\"matRippleColor\", \"matRippleUnbounded\", \"matRippleCentered\", \"matRippleRadius\", \"matRippleAnimation\", \"matRippleDisabled\", \"matRippleTrigger\"], exportAs: [\"matRipple\"] }, { type: i2.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListOption, decorators: [{\n type: Component,\n args: [{ selector: 'mat-list-option', exportAs: 'matListOption', inputs: ['disableRipple'], host: {\n 'role': 'option',\n 'class': 'mat-list-item mat-list-option mat-focus-indicator',\n '(focus)': '_handleFocus()',\n '(blur)': '_handleBlur()',\n '(click)': '_handleClick()',\n '[class.mat-list-item-disabled]': 'disabled',\n '[class.mat-list-item-with-avatar]': '_avatar || _icon',\n // Manually set the \"primary\" or \"warn\" class if the color has been explicitly\n // set to \"primary\" or \"warn\". The pseudo checkbox picks up these classes for\n // its theme.\n '[class.mat-primary]': 'color === \"primary\"',\n // Even though accent is the default, we need to set this class anyway, because the list might\n // be placed inside a parent that has one of the other colors with a higher specificity.\n '[class.mat-accent]': 'color !== \"primary\" && color !== \"warn\"',\n '[class.mat-warn]': 'color === \"warn\"',\n '[class.mat-list-single-selected-option]': 'selected && !selectionList.multiple',\n '[attr.aria-selected]': 'selected',\n '[attr.aria-disabled]': 'disabled',\n '[attr.tabindex]': '-1',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-list-item-content\\\"\\n [class.mat-list-item-content-reverse]=\\\"checkboxPosition == 'after'\\\">\\n\\n <div mat-ripple\\n class=\\\"mat-list-item-ripple\\\"\\n [matRippleTrigger]=\\\"_getHostElement()\\\"\\n [matRippleDisabled]=\\\"_isRippleDisabled()\\\"></div>\\n\\n <mat-pseudo-checkbox\\n *ngIf=\\\"selectionList.multiple\\\"\\n [state]=\\\"selected ? 'checked' : 'unchecked'\\\"\\n [disabled]=\\\"disabled\\\"></mat-pseudo-checkbox>\\n\\n <div class=\\\"mat-list-text\\\" #text><ng-content></ng-content></div>\\n\\n <ng-content select=\\\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\\\">\\n </ng-content>\\n\\n</div>\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: MatSelectionList, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatSelectionList)]\n }] }];\n }, propDecorators: { _avatar: [{\n type: ContentChild,\n args: [MatListAvatarCssMatStyler]\n }], _icon: [{\n type: ContentChild,\n args: [MatListIconCssMatStyler]\n }], _lines: [{\n type: ContentChildren,\n args: [MatLine, { descendants: true }]\n }], selectedChange: [{\n type: Output\n }], _text: [{\n type: ViewChild,\n args: ['text']\n }], checkboxPosition: [{\n type: Input\n }], color: [{\n type: Input\n }], value: [{\n type: Input\n }], disabled: [{\n type: Input\n }], selected: [{\n type: Input\n }] } });\n/**\n * Material Design list component where each item is a selectable option. Behaves as a listbox.\n */\nclass MatSelectionList extends _MatSelectionListBase {\n constructor(_element, \n // @breaking-change 11.0.0 Remove `tabIndex` parameter.\n tabIndex, _changeDetector, \n // @breaking-change 11.0.0 `_focusMonitor` parameter to become required.\n _focusMonitor) {\n super();\n this._element = _element;\n this._changeDetector = _changeDetector;\n this._focusMonitor = _focusMonitor;\n this._multiple = true;\n this._contentInitialized = false;\n /** Emits a change event whenever the selected state of an option changes. */\n this.selectionChange = new EventEmitter();\n /**\n * Tabindex of the selection list.\n * @breaking-change 11.0.0 Remove `tabIndex` input.\n */\n this.tabIndex = 0;\n /** Theme color of the selection list. This sets the checkbox color for all list options. */\n this.color = 'accent';\n /**\n * Function used for comparing an option against the selected value when determining which\n * options should appear as selected. The first argument is the value of an options. The second\n * one is a value from the selected value. A boolean must be returned.\n */\n this.compareWith = (a1, a2) => a1 === a2;\n this._disabled = false;\n /** The currently selected options. */\n this.selectedOptions = new SelectionModel(this._multiple);\n /** The tabindex of the selection list. */\n this._tabIndex = -1;\n /** View to model callback that should be called whenever the selected options change. */\n this._onChange = (_) => { };\n /** Emits when the list has been destroyed. */\n this._destroyed = new Subject();\n /** View to model callback that should be called if the list or its options lost focus. */\n this._onTouched = () => { };\n }\n /** Whether the selection list is disabled. */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n // The `MatSelectionList` and `MatListOption` are using the `OnPush` change detection\n // strategy. Therefore the options will not check for any changes if the `MatSelectionList`\n // changed its state. Since we know that a change to `disabled` property of the list affects\n // the state of the options, we manually mark each option for check.\n this._markOptionsForCheck();\n }\n /** Whether selection is limited to one or multiple items (default multiple). */\n get multiple() {\n return this._multiple;\n }\n set multiple(value) {\n const newValue = coerceBooleanProperty(value);\n if (newValue !== this._multiple) {\n if (this._contentInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw new Error('Cannot change `multiple` mode of mat-selection-list after initialization.');\n }\n this._multiple = newValue;\n this.selectedOptions = new SelectionModel(this._multiple, this.selectedOptions.selected);\n }\n }\n ngAfterContentInit() {\n var _a;\n this._contentInitialized = true;\n this._keyManager = new FocusKeyManager(this.options)\n .withWrap()\n .withTypeAhead()\n .withHomeAndEnd()\n // Allow disabled items to be focusable. For accessibility reasons, there must be a way for\n // screenreader users, that allows reading the different options of the list.\n .skipPredicate(() => false)\n .withAllowedModifierKeys(['shiftKey']);\n if (this._value) {\n this._setOptionsFromValues(this._value);\n }\n // If the user attempts to tab out of the selection list, allow focus to escape.\n this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._allowFocusEscape();\n });\n // When the number of options change, update the tabindex of the selection list.\n this.options.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {\n this._updateTabIndex();\n });\n // Sync external changes to the model back to the options.\n this.selectedOptions.changed.pipe(takeUntil(this._destroyed)).subscribe(event => {\n if (event.added) {\n for (let item of event.added) {\n item.selected = true;\n }\n }\n if (event.removed) {\n for (let item of event.removed) {\n item.selected = false;\n }\n }\n });\n // @breaking-change 11.0.0 Remove null assertion once _focusMonitor is required.\n (_a = this._focusMonitor) === null || _a === void 0 ? void 0 : _a.monitor(this._element).pipe(takeUntil(this._destroyed)).subscribe(origin => {\n var _a;\n if (origin === 'keyboard' || origin === 'program') {\n let toFocus = 0;\n for (let i = 0; i < this.options.length; i++) {\n if ((_a = this.options.get(i)) === null || _a === void 0 ? void 0 : _a.selected) {\n toFocus = i;\n break;\n }\n }\n this._keyManager.setActiveItem(toFocus);\n }\n });\n }\n ngOnChanges(changes) {\n const disableRippleChanges = changes['disableRipple'];\n const colorChanges = changes['color'];\n if ((disableRippleChanges && !disableRippleChanges.firstChange) ||\n (colorChanges && !colorChanges.firstChange)) {\n this._markOptionsForCheck();\n }\n }\n ngOnDestroy() {\n var _a;\n // @breaking-change 11.0.0 Remove null assertion once _focusMonitor is required.\n (_a = this._focusMonitor) === null || _a === void 0 ? void 0 : _a.stopMonitoring(this._element);\n this._destroyed.next();\n this._destroyed.complete();\n this._isDestroyed = true;\n }\n /** Focuses the selection list. */\n focus(options) {\n this._element.nativeElement.focus(options);\n }\n /** Selects all of the options. Returns the options that changed as a result. */\n selectAll() {\n return this._setAllOptionsSelected(true);\n }\n /** Deselects all of the options. Returns the options that changed as a result. */\n deselectAll() {\n return this._setAllOptionsSelected(false);\n }\n /** Sets the focused option of the selection-list. */\n _setFocusedOption(option) {\n this._keyManager.updateActiveItem(option);\n }\n /**\n * Removes an option from the selection list and updates the active item.\n * @returns Currently-active item.\n */\n _removeOptionFromList(option) {\n const optionIndex = this._getOptionIndex(option);\n if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) {\n // Check whether the option is the last item\n if (optionIndex > 0) {\n this._keyManager.updateActiveItem(optionIndex - 1);\n }\n else if (optionIndex === 0 && this.options.length > 1) {\n this._keyManager.updateActiveItem(Math.min(optionIndex + 1, this.options.length - 1));\n }\n }\n return this._keyManager.activeItem;\n }\n /** Passes relevant key presses to our key manager. */\n _keydown(event) {\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n const previousFocusIndex = manager.activeItemIndex;\n const hasModifier = hasModifierKey(event);\n switch (keyCode) {\n case SPACE:\n case ENTER:\n if (!hasModifier && !manager.isTyping()) {\n this._toggleFocusedOption();\n // Always prevent space from scrolling the page since the list has focus\n event.preventDefault();\n }\n break;\n default:\n // The \"A\" key gets special treatment, because it's used for the \"select all\" functionality.\n if (keyCode === A &&\n this.multiple &&\n hasModifierKey(event, 'ctrlKey') &&\n !manager.isTyping()) {\n const shouldSelect = this.options.some(option => !option.disabled && !option.selected);\n this._setAllOptionsSelected(shouldSelect, true, true);\n event.preventDefault();\n }\n else {\n manager.onKeydown(event);\n }\n }\n if (this.multiple &&\n (keyCode === UP_ARROW || keyCode === DOWN_ARROW) &&\n event.shiftKey &&\n manager.activeItemIndex !== previousFocusIndex) {\n this._toggleFocusedOption();\n }\n }\n /** Reports a value change to the ControlValueAccessor */\n _reportValueChange() {\n // Stop reporting value changes after the list has been destroyed. This avoids\n // cases where the list might wrongly reset its value once it is removed, but\n // the form control is still live.\n if (this.options && !this._isDestroyed) {\n const value = this._getSelectedOptionValues();\n this._onChange(value);\n this._value = value;\n }\n }\n /** Emits a change event if the selected state of an option changed. */\n _emitChangeEvent(options) {\n this.selectionChange.emit(new MatSelectionListChange(this, options[0], options));\n }\n /** Implemented as part of ControlValueAccessor. */\n writeValue(values) {\n this._value = values;\n if (this.options) {\n this._setOptionsFromValues(values || []);\n }\n }\n /** Implemented as a part of ControlValueAccessor. */\n setDisabledState(isDisabled) {\n this.disabled = isDisabled;\n }\n /** Implemented as part of ControlValueAccessor. */\n registerOnChange(fn) {\n this._onChange = fn;\n }\n /** Implemented as part of ControlValueAccessor. */\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n /** Sets the selected options based on the specified values. */\n _setOptionsFromValues(values) {\n this.options.forEach(option => option._setSelected(false));\n values.forEach(value => {\n const correspondingOption = this.options.find(option => {\n // Skip options that are already in the model. This allows us to handle cases\n // where the same primitive value is selected multiple times.\n return option.selected ? false : this.compareWith(option.value, value);\n });\n if (correspondingOption) {\n correspondingOption._setSelected(true);\n }\n });\n }\n /** Returns the values of the selected options. */\n _getSelectedOptionValues() {\n return this.options.filter(option => option.selected).map(option => option.value);\n }\n /** Toggles the state of the currently focused option if enabled. */\n _toggleFocusedOption() {\n let focusedIndex = this._keyManager.activeItemIndex;\n if (focusedIndex != null && this._isValidIndex(focusedIndex)) {\n let focusedOption = this.options.toArray()[focusedIndex];\n if (focusedOption && !focusedOption.disabled && (this._multiple || !focusedOption.selected)) {\n focusedOption.toggle();\n // Emit a change event because the focused option changed its state through user\n // interaction.\n this._emitChangeEvent([focusedOption]);\n }\n }\n }\n /**\n * Sets the selected state on all of the options\n * and emits an event if anything changed.\n */\n _setAllOptionsSelected(isSelected, skipDisabled, isUserInput) {\n // Keep track of whether anything changed, because we only want to\n // emit the changed event when something actually changed.\n const changedOptions = [];\n this.options.forEach(option => {\n if ((!skipDisabled || !option.disabled) && option._setSelected(isSelected)) {\n changedOptions.push(option);\n }\n });\n if (changedOptions.length) {\n this._reportValueChange();\n if (isUserInput) {\n this._emitChangeEvent(changedOptions);\n }\n }\n return changedOptions;\n }\n /**\n * Utility to ensure all indexes are valid.\n * @param index The index to be checked.\n * @returns True if the index is valid for our list of options.\n */\n _isValidIndex(index) {\n return index >= 0 && index < this.options.length;\n }\n /** Returns the index of the specified list option. */\n _getOptionIndex(option) {\n return this.options.toArray().indexOf(option);\n }\n /** Marks all the options to be checked in the next change detection run. */\n _markOptionsForCheck() {\n if (this.options) {\n this.options.forEach(option => option._markForCheck());\n }\n }\n /**\n * Removes the tabindex from the selection list and resets it back afterwards, allowing the user\n * to tab out of it. This prevents the list from capturing focus and redirecting it back within\n * the list, creating a focus trap if it user tries to tab away.\n */\n _allowFocusEscape() {\n this._tabIndex = -1;\n setTimeout(() => {\n this._tabIndex = 0;\n this._changeDetector.markForCheck();\n });\n }\n /** Updates the tabindex based upon if the selection list is empty. */\n _updateTabIndex() {\n this._tabIndex = this.options.length === 0 ? -1 : 0;\n }\n}\nMatSelectionList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectionList, deps: [{ token: i0.ElementRef }, { token: 'tabindex', attribute: true }, { token: i0.ChangeDetectorRef }, { token: i3.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });\nMatSelectionList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSelectionList, selector: \"mat-selection-list\", inputs: { disableRipple: \"disableRipple\", tabIndex: \"tabIndex\", color: \"color\", compareWith: \"compareWith\", disabled: \"disabled\", multiple: \"multiple\" }, outputs: { selectionChange: \"selectionChange\" }, host: { attributes: { \"role\": \"listbox\" }, listeners: { \"keydown\": \"_keydown($event)\" }, properties: { \"attr.aria-multiselectable\": \"multiple\", \"attr.aria-disabled\": \"disabled.toString()\", \"attr.tabindex\": \"_tabIndex\" }, classAttribute: \"mat-selection-list mat-list-base\" }, providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR], queries: [{ propertyName: \"options\", predicate: MatListOption, descendants: true }], exportAs: [\"matSelectionList\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSelectionList, decorators: [{\n type: Component,\n args: [{ selector: 'mat-selection-list', exportAs: 'matSelectionList', inputs: ['disableRipple'], host: {\n 'role': 'listbox',\n 'class': 'mat-selection-list mat-list-base',\n '(keydown)': '_keydown($event)',\n '[attr.aria-multiselectable]': 'multiple',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.tabindex]': '_tabIndex',\n }, template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, styles: [\".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\\\"\\\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }, { type: i0.ChangeDetectorRef }, { type: i3.FocusMonitor }];\n }, propDecorators: { options: [{\n type: ContentChildren,\n args: [MatListOption, { descendants: true }]\n }], selectionChange: [{\n type: Output\n }], tabIndex: [{\n type: Input\n }], color: [{\n type: Input\n }], compareWith: [{\n type: Input\n }], disabled: [{\n type: Input\n }], multiple: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatListModule {\n}\nMatListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListModule, declarations: [MatList,\n MatNavList,\n MatListItem,\n MatListAvatarCssMatStyler,\n MatListIconCssMatStyler,\n MatListSubheaderCssMatStyler,\n MatSelectionList,\n MatListOption], imports: [MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, CommonModule], exports: [MatList,\n MatNavList,\n MatListItem,\n MatListAvatarCssMatStyler,\n MatLineModule,\n MatCommonModule,\n MatListIconCssMatStyler,\n MatListSubheaderCssMatStyler,\n MatPseudoCheckboxModule,\n MatSelectionList,\n MatListOption,\n MatDividerModule] });\nMatListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListModule, imports: [[MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, CommonModule], MatLineModule,\n MatCommonModule,\n MatPseudoCheckboxModule,\n MatDividerModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatListModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, CommonModule],\n exports: [\n MatList,\n MatNavList,\n MatListItem,\n MatListAvatarCssMatStyler,\n MatLineModule,\n MatCommonModule,\n MatListIconCssMatStyler,\n MatListSubheaderCssMatStyler,\n MatPseudoCheckboxModule,\n MatSelectionList,\n MatListOption,\n MatDividerModule,\n ],\n declarations: [\n MatList,\n MatNavList,\n MatListItem,\n MatListAvatarCssMatStyler,\n MatListIconCssMatStyler,\n MatListSubheaderCssMatStyler,\n MatSelectionList,\n MatListOption,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_LIST, MAT_NAV_LIST, MAT_SELECTION_LIST_VALUE_ACCESSOR, MatList, MatListAvatarCssMatStyler, MatListIconCssMatStyler, MatListItem, MatListModule, MatListOption, MatListSubheaderCssMatStyler, MatNavList, MatSelectionList, MatSelectionListChange };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, inject, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, Input, ViewChild, Output, NgModule } from '@angular/core';\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport { mixinColor, MatCommonModule } from '@angular/material/core';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { Subscription, fromEvent } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Boilerplate for applying mixins to MatProgressBar.\n/** @docs-private */\nconst _MatProgressBarBase = mixinColor(class {\n constructor(_elementRef) {\n this._elementRef = _elementRef;\n }\n}, 'primary');\n/**\n * Injection token used to provide the current location to `MatProgressBar`.\n * Used to handle server-side rendering and to stub out during unit tests.\n * @docs-private\n */\nconst MAT_PROGRESS_BAR_LOCATION = new InjectionToken('mat-progress-bar-location', { providedIn: 'root', factory: MAT_PROGRESS_BAR_LOCATION_FACTORY });\n/** @docs-private */\nfunction MAT_PROGRESS_BAR_LOCATION_FACTORY() {\n const _document = inject(DOCUMENT);\n const _location = _document ? _document.location : null;\n return {\n // Note that this needs to be a function, rather than a property, because Angular\n // will only resolve it once, but we want the current path on each call.\n getPathname: () => (_location ? _location.pathname + _location.search : ''),\n };\n}\n/** Injection token to be used to override the default options for `mat-progress-bar`. */\nconst MAT_PROGRESS_BAR_DEFAULT_OPTIONS = new InjectionToken('MAT_PROGRESS_BAR_DEFAULT_OPTIONS');\n/** Counter used to generate unique IDs for progress bars. */\nlet progressbarId = 0;\n/**\n * `<mat-progress-bar>` component.\n */\nclass MatProgressBar extends _MatProgressBarBase {\n constructor(elementRef, _ngZone, _animationMode, \n /**\n * @deprecated `location` parameter to be made required.\n * @breaking-change 8.0.0\n */\n location, defaults) {\n super(elementRef);\n this._ngZone = _ngZone;\n this._animationMode = _animationMode;\n /** Flag that indicates whether NoopAnimations mode is set to true. */\n this._isNoopAnimation = false;\n this._value = 0;\n this._bufferValue = 0;\n /**\n * Event emitted when animation of the primary progress bar completes. This event will not\n * be emitted when animations are disabled, nor will it be emitted for modes with continuous\n * animations (indeterminate and query).\n */\n this.animationEnd = new EventEmitter();\n /** Reference to animation end subscription to be unsubscribed on destroy. */\n this._animationEndSubscription = Subscription.EMPTY;\n /**\n * Mode of the progress bar.\n *\n * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to\n * 'determinate'.\n * Mirrored to mode attribute.\n */\n this.mode = 'determinate';\n /** ID of the progress bar. */\n this.progressbarId = `mat-progress-bar-${progressbarId++}`;\n // We need to prefix the SVG reference with the current path, otherwise they won't work\n // in Safari if the page has a `<base>` tag. Note that we need quotes inside the `url()`,\n // because named route URLs can contain parentheses (see #12338). Also we don't use since\n // we can't tell the difference between whether\n // the consumer is using the hash location strategy or not, because `Location` normalizes\n // both `/#/foo/bar` and `/foo/bar` to the same thing.\n const path = location ? location.getPathname().split('#')[0] : '';\n this._rectangleFillValue = `url('${path}#${this.progressbarId}')`;\n this._isNoopAnimation = _animationMode === 'NoopAnimations';\n if (defaults) {\n if (defaults.color) {\n this.color = this.defaultColor = defaults.color;\n }\n this.mode = defaults.mode || this.mode;\n }\n }\n /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */\n get value() {\n return this._value;\n }\n set value(v) {\n this._value = clamp(coerceNumberProperty(v) || 0);\n }\n /** Buffer value of the progress bar. Defaults to zero. */\n get bufferValue() {\n return this._bufferValue;\n }\n set bufferValue(v) {\n this._bufferValue = clamp(v || 0);\n }\n /** Gets the current transform value for the progress bar's primary indicator. */\n _primaryTransform() {\n // We use a 3d transform to work around some rendering issues in iOS Safari. See #19328.\n const scale = this.value / 100;\n return { transform: `scale3d(${scale}, 1, 1)` };\n }\n /**\n * Gets the current transform value for the progress bar's buffer indicator. Only used if the\n * progress mode is set to buffer, otherwise returns an undefined, causing no transformation.\n */\n _bufferTransform() {\n if (this.mode === 'buffer') {\n // We use a 3d transform to work around some rendering issues in iOS Safari. See #19328.\n const scale = this.bufferValue / 100;\n return { transform: `scale3d(${scale}, 1, 1)` };\n }\n return null;\n }\n ngAfterViewInit() {\n // Run outside angular so change detection didn't get triggered on every transition end\n // instead only on the animation that we care about (primary value bar's transitionend)\n this._ngZone.runOutsideAngular(() => {\n const element = this._primaryValueBar.nativeElement;\n this._animationEndSubscription = fromEvent(element, 'transitionend')\n .pipe(filter((e) => e.target === element))\n .subscribe(() => {\n if (this.mode === 'determinate' || this.mode === 'buffer') {\n this._ngZone.run(() => this.animationEnd.next({ value: this.value }));\n }\n });\n });\n }\n ngOnDestroy() {\n this._animationEndSubscription.unsubscribe();\n }\n}\nMatProgressBar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBar, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_PROGRESS_BAR_LOCATION, optional: true }, { token: MAT_PROGRESS_BAR_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatProgressBar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatProgressBar, selector: \"mat-progress-bar\", inputs: { color: \"color\", value: \"value\", bufferValue: \"bufferValue\", mode: \"mode\" }, outputs: { animationEnd: \"animationEnd\" }, host: { attributes: { \"role\": \"progressbar\", \"aria-valuemin\": \"0\", \"aria-valuemax\": \"100\", \"tabindex\": \"-1\" }, properties: { \"attr.aria-valuenow\": \"(mode === \\\"indeterminate\\\" || mode === \\\"query\\\") ? null : value\", \"attr.mode\": \"mode\", \"class._mat-animation-noopable\": \"_isNoopAnimation\" }, classAttribute: \"mat-progress-bar\" }, viewQueries: [{ propertyName: \"_primaryValueBar\", first: true, predicate: [\"primaryValueBar\"], descendants: true }], exportAs: [\"matProgressBar\"], usesInheritance: true, ngImport: i0, template: \"<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<div aria-hidden=\\\"true\\\">\\n <svg width=\\\"100%\\\" height=\\\"4\\\" focusable=\\\"false\\\" class=\\\"mat-progress-bar-background mat-progress-bar-element\\\">\\n <defs>\\n <pattern [id]=\\\"progressbarId\\\" x=\\\"4\\\" y=\\\"0\\\" width=\\\"8\\\" height=\\\"4\\\" patternUnits=\\\"userSpaceOnUse\\\">\\n <circle cx=\\\"2\\\" cy=\\\"2\\\" r=\\\"2\\\"/>\\n </pattern>\\n </defs>\\n <rect [attr.fill]=\\\"_rectangleFillValue\\\" width=\\\"100%\\\" height=\\\"100%\\\"/>\\n </svg>\\n <!--\\n The background div is named as such because it appears below the other divs and is not sized based\\n on values.\\n -->\\n <div class=\\\"mat-progress-bar-buffer mat-progress-bar-element\\\" [ngStyle]=\\\"_bufferTransform()\\\"></div>\\n <div class=\\\"mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element\\\" [ngStyle]=\\\"_primaryTransform()\\\" #primaryValueBar></div>\\n <div class=\\\"mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element\\\"></div>\\n</div>\\n\", styles: [\".mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:\\\"\\\";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\\n\"], directives: [{ type: i1.NgStyle, selector: \"[ngStyle]\", inputs: [\"ngStyle\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBar, decorators: [{\n type: Component,\n args: [{ selector: 'mat-progress-bar', exportAs: 'matProgressBar', host: {\n 'role': 'progressbar',\n 'aria-valuemin': '0',\n 'aria-valuemax': '100',\n // set tab index to -1 so screen readers will read the aria-label\n // Note: there is a known issue with JAWS that does not read progressbar aria labels on FireFox\n 'tabindex': '-1',\n '[attr.aria-valuenow]': '(mode === \"indeterminate\" || mode === \"query\") ? null : value',\n '[attr.mode]': 'mode',\n 'class': 'mat-progress-bar',\n '[class._mat-animation-noopable]': '_isNoopAnimation',\n }, inputs: ['color'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<!--\\n All children need to be hidden for screen readers in order to support ChromeVox.\\n More context in the issue: https://github.com/angular/components/issues/22165.\\n-->\\n<div aria-hidden=\\\"true\\\">\\n <svg width=\\\"100%\\\" height=\\\"4\\\" focusable=\\\"false\\\" class=\\\"mat-progress-bar-background mat-progress-bar-element\\\">\\n <defs>\\n <pattern [id]=\\\"progressbarId\\\" x=\\\"4\\\" y=\\\"0\\\" width=\\\"8\\\" height=\\\"4\\\" patternUnits=\\\"userSpaceOnUse\\\">\\n <circle cx=\\\"2\\\" cy=\\\"2\\\" r=\\\"2\\\"/>\\n </pattern>\\n </defs>\\n <rect [attr.fill]=\\\"_rectangleFillValue\\\" width=\\\"100%\\\" height=\\\"100%\\\"/>\\n </svg>\\n <!--\\n The background div is named as such because it appears below the other divs and is not sized based\\n on values.\\n -->\\n <div class=\\\"mat-progress-bar-buffer mat-progress-bar-element\\\" [ngStyle]=\\\"_bufferTransform()\\\"></div>\\n <div class=\\\"mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element\\\" [ngStyle]=\\\"_primaryTransform()\\\" #primaryValueBar></div>\\n <div class=\\\"mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element\\\"></div>\\n</div>\\n\", styles: [\".mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:\\\"\\\";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_PROGRESS_BAR_LOCATION]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_PROGRESS_BAR_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { value: [{\n type: Input\n }], bufferValue: [{\n type: Input\n }], _primaryValueBar: [{\n type: ViewChild,\n args: ['primaryValueBar']\n }], animationEnd: [{\n type: Output\n }], mode: [{\n type: Input\n }] } });\n/** Clamps a value to be between two numbers, by default 0 and 100. */\nfunction clamp(v, min = 0, max = 100) {\n return Math.max(min, Math.min(max, v));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatProgressBarModule {\n}\nMatProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBarModule, declarations: [MatProgressBar], imports: [CommonModule, MatCommonModule], exports: [MatProgressBar, MatCommonModule] });\nMatProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBarModule, imports: [[CommonModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatProgressBarModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule],\n exports: [MatProgressBar, MatCommonModule],\n declarations: [MatProgressBar],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MAT_PROGRESS_BAR_LOCATION, MAT_PROGRESS_BAR_LOCATION_FACTORY, MatProgressBar, MatProgressBarModule };\n","import * as i3 from '@angular/cdk/platform';\nimport { PlatformModule } from '@angular/cdk/platform';\nimport * as i1 from '@angular/cdk/scrolling';\nimport { CdkScrollable, CdkScrollableModule } from '@angular/cdk/scrolling';\nimport * as i5 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, EventEmitter, Optional, Input, Output, QueryList, ContentChildren, ContentChild, ViewChild, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { Subject, fromEvent, merge } from 'rxjs';\nimport { filter, map, mapTo, takeUntil, distinctUntilChanged, take, startWith, debounceTime } from 'rxjs/operators';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport * as i2 from '@angular/cdk/a11y';\nimport * as i4 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Animations used by the Material drawers.\n * @docs-private\n */\nconst matDrawerAnimations = {\n /** Animation that slides a drawer in and out. */\n transformDrawer: trigger('transform', [\n // We remove the `transform` here completely, rather than setting it to zero, because:\n // 1. Having a transform can cause elements with ripples or an animated\n // transform to shift around in Chrome with an RTL layout (see #10023).\n // 2. 3d transforms causes text to appear blurry on IE and Edge.\n state('open, open-instant', style({\n 'transform': 'none',\n 'visibility': 'visible',\n })),\n state('void', style({\n // Avoids the shadow showing up when closed in SSR.\n 'box-shadow': 'none',\n 'visibility': 'hidden',\n })),\n transition('void => open-instant', animate('0ms')),\n transition('void <=> open, open-instant => void', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')),\n ]),\n};\n\n/**\n * Throws an exception when two MatDrawer are matching the same position.\n * @docs-private\n */\nfunction throwMatDuplicatedDrawerError(position) {\n throw Error(`A drawer was already declared for 'position=\"${position}\"'`);\n}\n/** Configures whether drawers should use auto sizing by default. */\nconst MAT_DRAWER_DEFAULT_AUTOSIZE = new InjectionToken('MAT_DRAWER_DEFAULT_AUTOSIZE', {\n providedIn: 'root',\n factory: MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,\n});\n/**\n * Used to provide a drawer container to a drawer while avoiding circular references.\n * @docs-private\n */\nconst MAT_DRAWER_CONTAINER = new InjectionToken('MAT_DRAWER_CONTAINER');\n/** @docs-private */\nfunction MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY() {\n return false;\n}\nclass MatDrawerContent extends CdkScrollable {\n constructor(_changeDetectorRef, _container, elementRef, scrollDispatcher, ngZone) {\n super(elementRef, scrollDispatcher, ngZone);\n this._changeDetectorRef = _changeDetectorRef;\n this._container = _container;\n }\n ngAfterContentInit() {\n this._container._contentMarginChanges.subscribe(() => {\n this._changeDetectorRef.markForCheck();\n });\n }\n}\nMatDrawerContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawerContent, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => MatDrawerContainer) }, { token: i0.ElementRef }, { token: i1.ScrollDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawerContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDrawerContent, selector: \"mat-drawer-content\", host: { properties: { \"style.margin-left.px\": \"_container._contentMargins.left\", \"style.margin-right.px\": \"_container._contentMargins.right\" }, classAttribute: \"mat-drawer-content\" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawerContent, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-drawer-content',\n template: '<ng-content></ng-content>',\n host: {\n 'class': 'mat-drawer-content',\n '[style.margin-left.px]': '_container._contentMargins.left',\n '[style.margin-right.px]': '_container._contentMargins.right',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: MatDrawerContainer, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatDrawerContainer)]\n }] }, { type: i0.ElementRef }, { type: i1.ScrollDispatcher }, { type: i0.NgZone }];\n } });\n/**\n * This component corresponds to a drawer that can be opened on the drawer container.\n */\nclass MatDrawer {\n constructor(_elementRef, _focusTrapFactory, _focusMonitor, _platform, _ngZone, _interactivityChecker, _doc, _container) {\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this._focusMonitor = _focusMonitor;\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._interactivityChecker = _interactivityChecker;\n this._doc = _doc;\n this._container = _container;\n this._elementFocusedBeforeDrawerWasOpened = null;\n /** Whether the drawer is initialized. Used for disabling the initial animation. */\n this._enableAnimations = false;\n this._position = 'start';\n this._mode = 'over';\n this._disableClose = false;\n this._opened = false;\n /** Emits whenever the drawer has started animating. */\n this._animationStarted = new Subject();\n /** Emits whenever the drawer is done animating. */\n this._animationEnd = new Subject();\n /** Current state of the sidenav animation. */\n this._animationState = 'void';\n /** Event emitted when the drawer open state is changed. */\n this.openedChange =\n // Note this has to be async in order to avoid some issues with two-bindings (see #8872).\n new EventEmitter(/* isAsync */ true);\n /** Event emitted when the drawer has been opened. */\n this._openedStream = this.openedChange.pipe(filter(o => o), map(() => { }));\n /** Event emitted when the drawer has started opening. */\n this.openedStart = this._animationStarted.pipe(filter(e => e.fromState !== e.toState && e.toState.indexOf('open') === 0), mapTo(undefined));\n /** Event emitted when the drawer has been closed. */\n this._closedStream = this.openedChange.pipe(filter(o => !o), map(() => { }));\n /** Event emitted when the drawer has started closing. */\n this.closedStart = this._animationStarted.pipe(filter(e => e.fromState !== e.toState && e.toState === 'void'), mapTo(undefined));\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Event emitted when the drawer's position changes. */\n // tslint:disable-next-line:no-output-on-prefix\n this.onPositionChanged = new EventEmitter();\n /**\n * An observable that emits when the drawer mode changes. This is used by the drawer container to\n * to know when to when the mode changes so it can adapt the margins on the content.\n */\n this._modeChanged = new Subject();\n this.openedChange.subscribe((opened) => {\n if (opened) {\n if (this._doc) {\n this._elementFocusedBeforeDrawerWasOpened = this._doc.activeElement;\n }\n this._takeFocus();\n }\n else if (this._isFocusWithinDrawer()) {\n this._restoreFocus(this._openedVia || 'program');\n }\n });\n /**\n * Listen to `keydown` events outside the zone so that change detection is not run every\n * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed\n * and we don't have close disabled.\n */\n this._ngZone.runOutsideAngular(() => {\n fromEvent(this._elementRef.nativeElement, 'keydown')\n .pipe(filter(event => {\n return event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event);\n }), takeUntil(this._destroyed))\n .subscribe(event => this._ngZone.run(() => {\n this.close();\n event.stopPropagation();\n event.preventDefault();\n }));\n });\n // We need a Subject with distinctUntilChanged, because the `done` event\n // fires twice on some browsers. See https://github.com/angular/angular/issues/24084\n this._animationEnd\n .pipe(distinctUntilChanged((x, y) => {\n return x.fromState === y.fromState && x.toState === y.toState;\n }))\n .subscribe((event) => {\n const { fromState, toState } = event;\n if ((toState.indexOf('open') === 0 && fromState === 'void') ||\n (toState === 'void' && fromState.indexOf('open') === 0)) {\n this.openedChange.emit(this._opened);\n }\n });\n }\n /** The side that the drawer is attached to. */\n get position() {\n return this._position;\n }\n set position(value) {\n // Make sure we have a valid value.\n value = value === 'end' ? 'end' : 'start';\n if (value != this._position) {\n this._position = value;\n this.onPositionChanged.emit();\n }\n }\n /** Mode of the drawer; one of 'over', 'push' or 'side'. */\n get mode() {\n return this._mode;\n }\n set mode(value) {\n this._mode = value;\n this._updateFocusTrapState();\n this._modeChanged.next();\n }\n /** Whether the drawer can be closed with the escape key or by clicking on the backdrop. */\n get disableClose() {\n return this._disableClose;\n }\n set disableClose(value) {\n this._disableClose = coerceBooleanProperty(value);\n }\n /**\n * Whether the drawer should focus the first focusable element automatically when opened.\n * Defaults to false in when `mode` is set to `side`, otherwise defaults to `true`. If explicitly\n * enabled, focus will be moved into the sidenav in `side` mode as well.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or AutoFocusTarget\n * instead.\n */\n get autoFocus() {\n const value = this._autoFocus;\n // Note that usually we don't allow autoFocus to be set to `first-tabbable` in `side` mode,\n // because we don't know how the sidenav is being used, but in some cases it still makes\n // sense to do it. The consumer can explicitly set `autoFocus`.\n if (value == null) {\n if (this.mode === 'side') {\n return 'dialog';\n }\n else {\n return 'first-tabbable';\n }\n }\n return value;\n }\n set autoFocus(value) {\n if (value === 'true' || value === 'false' || value == null) {\n value = coerceBooleanProperty(value);\n }\n this._autoFocus = value;\n }\n /**\n * Whether the drawer is opened. We overload this because we trigger an event when it\n * starts or end.\n */\n get opened() {\n return this._opened;\n }\n set opened(value) {\n this.toggle(coerceBooleanProperty(value));\n }\n /**\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\n * @param element The element to focus.\n */\n _forceFocus(element, options) {\n if (!this._interactivityChecker.isFocusable(element)) {\n element.tabIndex = -1;\n // The tabindex attribute should be removed to avoid navigating to that element again\n this._ngZone.runOutsideAngular(() => {\n element.addEventListener('blur', () => element.removeAttribute('tabindex'));\n element.addEventListener('mousedown', () => element.removeAttribute('tabindex'));\n });\n }\n element.focus(options);\n }\n /**\n * Focuses the first element that matches the given selector within the focus trap.\n * @param selector The CSS selector for the element to set focus to.\n */\n _focusByCssSelector(selector, options) {\n let elementToFocus = this._elementRef.nativeElement.querySelector(selector);\n if (elementToFocus) {\n this._forceFocus(elementToFocus, options);\n }\n }\n /**\n * Moves focus into the drawer. Note that this works even if\n * the focus trap is disabled in `side` mode.\n */\n _takeFocus() {\n if (!this._focusTrap) {\n return;\n }\n const element = this._elementRef.nativeElement;\n // When autoFocus is not on the sidenav, if the element cannot be focused or does\n // not exist, focus the sidenav itself so the keyboard navigation still works.\n // We need to check that `focus` is a function due to Universal.\n switch (this.autoFocus) {\n case false:\n case 'dialog':\n return;\n case true:\n case 'first-tabbable':\n this._focusTrap.focusInitialElementWhenReady().then(hasMovedFocus => {\n if (!hasMovedFocus && typeof this._elementRef.nativeElement.focus === 'function') {\n element.focus();\n }\n });\n break;\n case 'first-heading':\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\n break;\n default:\n this._focusByCssSelector(this.autoFocus);\n break;\n }\n }\n /**\n * Restores focus to the element that was originally focused when the drawer opened.\n * If no element was focused at that time, the focus will be restored to the drawer.\n */\n _restoreFocus(focusOrigin) {\n if (this.autoFocus === 'dialog') {\n return;\n }\n if (this._elementFocusedBeforeDrawerWasOpened) {\n this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened, focusOrigin);\n }\n else {\n this._elementRef.nativeElement.blur();\n }\n this._elementFocusedBeforeDrawerWasOpened = null;\n }\n /** Whether focus is currently within the drawer. */\n _isFocusWithinDrawer() {\n var _a;\n const activeEl = (_a = this._doc) === null || _a === void 0 ? void 0 : _a.activeElement;\n return !!activeEl && this._elementRef.nativeElement.contains(activeEl);\n }\n ngAfterContentInit() {\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n this._updateFocusTrapState();\n }\n ngAfterContentChecked() {\n // Enable the animations after the lifecycle hooks have run, in order to avoid animating\n // drawers that are open by default. When we're on the server, we shouldn't enable the\n // animations, because we don't want the drawer to animate the first time the user sees\n // the page.\n if (this._platform.isBrowser) {\n this._enableAnimations = true;\n }\n }\n ngOnDestroy() {\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n this._animationStarted.complete();\n this._animationEnd.complete();\n this._modeChanged.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /**\n * Open the drawer.\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\n * Used for focus management after the sidenav is closed.\n */\n open(openedVia) {\n return this.toggle(true, openedVia);\n }\n /** Close the drawer. */\n close() {\n return this.toggle(false);\n }\n /** Closes the drawer with context that the backdrop was clicked. */\n _closeViaBackdropClick() {\n // If the drawer is closed upon a backdrop click, we always want to restore focus. We\n // don't need to check whether focus is currently in the drawer, as clicking on the\n // backdrop causes blurs the active element.\n return this._setOpen(/* isOpen */ false, /* restoreFocus */ true, 'mouse');\n }\n /**\n * Toggle this drawer.\n * @param isOpen Whether the drawer should be open.\n * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.\n * Used for focus management after the sidenav is closed.\n */\n toggle(isOpen = !this.opened, openedVia) {\n // If the focus is currently inside the drawer content and we are closing the drawer,\n // restore the focus to the initially focused element (when the drawer opened).\n if (isOpen && openedVia) {\n this._openedVia = openedVia;\n }\n const result = this._setOpen(isOpen, \n /* restoreFocus */ !isOpen && this._isFocusWithinDrawer(), this._openedVia || 'program');\n if (!isOpen) {\n this._openedVia = null;\n }\n return result;\n }\n /**\n * Toggles the opened state of the drawer.\n * @param isOpen Whether the drawer should open or close.\n * @param restoreFocus Whether focus should be restored on close.\n * @param focusOrigin Origin to use when restoring focus.\n */\n _setOpen(isOpen, restoreFocus, focusOrigin) {\n this._opened = isOpen;\n if (isOpen) {\n this._animationState = this._enableAnimations ? 'open' : 'open-instant';\n }\n else {\n this._animationState = 'void';\n if (restoreFocus) {\n this._restoreFocus(focusOrigin);\n }\n }\n this._updateFocusTrapState();\n return new Promise(resolve => {\n this.openedChange.pipe(take(1)).subscribe(open => resolve(open ? 'open' : 'close'));\n });\n }\n _getWidth() {\n return this._elementRef.nativeElement ? this._elementRef.nativeElement.offsetWidth || 0 : 0;\n }\n /** Updates the enabled state of the focus trap. */\n _updateFocusTrapState() {\n if (this._focusTrap) {\n // The focus trap is only enabled when the drawer is open in any mode other than side.\n this._focusTrap.enabled = this.opened && this.mode !== 'side';\n }\n }\n}\nMatDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawer, deps: [{ token: i0.ElementRef }, { token: i2.FocusTrapFactory }, { token: i2.FocusMonitor }, { token: i3.Platform }, { token: i0.NgZone }, { token: i2.InteractivityChecker }, { token: DOCUMENT, optional: true }, { token: MAT_DRAWER_CONTAINER, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDrawer, selector: \"mat-drawer\", inputs: { position: \"position\", mode: \"mode\", disableClose: \"disableClose\", autoFocus: \"autoFocus\", opened: \"opened\" }, outputs: { openedChange: \"openedChange\", _openedStream: \"opened\", openedStart: \"openedStart\", _closedStream: \"closed\", closedStart: \"closedStart\", onPositionChanged: \"positionChanged\" }, host: { attributes: { \"tabIndex\": \"-1\" }, listeners: { \"@transform.start\": \"_animationStarted.next($event)\", \"@transform.done\": \"_animationEnd.next($event)\" }, properties: { \"attr.align\": \"null\", \"class.mat-drawer-end\": \"position === \\\"end\\\"\", \"class.mat-drawer-over\": \"mode === \\\"over\\\"\", \"class.mat-drawer-push\": \"mode === \\\"push\\\"\", \"class.mat-drawer-side\": \"mode === \\\"side\\\"\", \"class.mat-drawer-opened\": \"opened\", \"@transform\": \"_animationState\" }, classAttribute: \"mat-drawer\" }, exportAs: [\"matDrawer\"], ngImport: i0, template: \"<div class=\\\"mat-drawer-inner-container\\\" cdkScrollable>\\r\\n <ng-content></ng-content>\\r\\n</div>\\r\\n\", directives: [{ type: i1.CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\" }], animations: [matDrawerAnimations.transformDrawer], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-drawer', exportAs: 'matDrawer', animations: [matDrawerAnimations.transformDrawer], host: {\n 'class': 'mat-drawer',\n // must prevent the browser from aligning text based on value\n '[attr.align]': 'null',\n '[class.mat-drawer-end]': 'position === \"end\"',\n '[class.mat-drawer-over]': 'mode === \"over\"',\n '[class.mat-drawer-push]': 'mode === \"push\"',\n '[class.mat-drawer-side]': 'mode === \"side\"',\n '[class.mat-drawer-opened]': 'opened',\n 'tabIndex': '-1',\n '[@transform]': '_animationState',\n '(@transform.start)': '_animationStarted.next($event)',\n '(@transform.done)': '_animationEnd.next($event)',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"mat-drawer-inner-container\\\" cdkScrollable>\\r\\n <ng-content></ng-content>\\r\\n</div>\\r\\n\" }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i2.FocusTrapFactory }, { type: i2.FocusMonitor }, { type: i3.Platform }, { type: i0.NgZone }, { type: i2.InteractivityChecker }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: MatDrawerContainer, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_DRAWER_CONTAINER]\n }] }];\n }, propDecorators: { position: [{\n type: Input\n }], mode: [{\n type: Input\n }], disableClose: [{\n type: Input\n }], autoFocus: [{\n type: Input\n }], opened: [{\n type: Input\n }], openedChange: [{\n type: Output\n }], _openedStream: [{\n type: Output,\n args: ['opened']\n }], openedStart: [{\n type: Output\n }], _closedStream: [{\n type: Output,\n args: ['closed']\n }], closedStart: [{\n type: Output\n }], onPositionChanged: [{\n type: Output,\n args: ['positionChanged']\n }] } });\n/**\n * `<mat-drawer-container>` component.\n *\n * This is the parent component to one or two `<mat-drawer>`s that validates the state internally\n * and coordinates the backdrop and content styling.\n */\nclass MatDrawerContainer {\n constructor(_dir, _element, _ngZone, _changeDetectorRef, viewportRuler, defaultAutosize = false, _animationMode) {\n this._dir = _dir;\n this._element = _element;\n this._ngZone = _ngZone;\n this._changeDetectorRef = _changeDetectorRef;\n this._animationMode = _animationMode;\n /** Drawers that belong to this container. */\n this._drawers = new QueryList();\n /** Event emitted when the drawer backdrop is clicked. */\n this.backdropClick = new EventEmitter();\n /** Emits when the component is destroyed. */\n this._destroyed = new Subject();\n /** Emits on every ngDoCheck. Used for debouncing reflows. */\n this._doCheckSubject = new Subject();\n /**\n * Margins to be applied to the content. These are used to push / shrink the drawer content when a\n * drawer is open. We use margin rather than transform even for push mode because transform breaks\n * fixed position elements inside of the transformed element.\n */\n this._contentMargins = { left: null, right: null };\n this._contentMarginChanges = new Subject();\n // If a `Dir` directive exists up the tree, listen direction changes\n // and update the left/right properties to point to the proper start/end.\n if (_dir) {\n _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => {\n this._validateDrawers();\n this.updateContentMargins();\n });\n }\n // Since the minimum width of the sidenav depends on the viewport width,\n // we need to recompute the margins if the viewport changes.\n viewportRuler\n .change()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this.updateContentMargins());\n this._autosize = defaultAutosize;\n }\n /** The drawer child with the `start` position. */\n get start() {\n return this._start;\n }\n /** The drawer child with the `end` position. */\n get end() {\n return this._end;\n }\n /**\n * Whether to automatically resize the container whenever\n * the size of any of its drawers changes.\n *\n * **Use at your own risk!** Enabling this option can cause layout thrashing by measuring\n * the drawers on every change detection cycle. Can be configured globally via the\n * `MAT_DRAWER_DEFAULT_AUTOSIZE` token.\n */\n get autosize() {\n return this._autosize;\n }\n set autosize(value) {\n this._autosize = coerceBooleanProperty(value);\n }\n /**\n * Whether the drawer container should have a backdrop while one of the sidenavs is open.\n * If explicitly set to `true`, the backdrop will be enabled for drawers in the `side`\n * mode as well.\n */\n get hasBackdrop() {\n if (this._backdropOverride == null) {\n return !this._start || this._start.mode !== 'side' || !this._end || this._end.mode !== 'side';\n }\n return this._backdropOverride;\n }\n set hasBackdrop(value) {\n this._backdropOverride = value == null ? null : coerceBooleanProperty(value);\n }\n /** Reference to the CdkScrollable instance that wraps the scrollable content. */\n get scrollable() {\n return this._userContent || this._content;\n }\n ngAfterContentInit() {\n this._allDrawers.changes\n .pipe(startWith(this._allDrawers), takeUntil(this._destroyed))\n .subscribe((drawer) => {\n this._drawers.reset(drawer.filter(item => !item._container || item._container === this));\n this._drawers.notifyOnChanges();\n });\n this._drawers.changes.pipe(startWith(null)).subscribe(() => {\n this._validateDrawers();\n this._drawers.forEach((drawer) => {\n this._watchDrawerToggle(drawer);\n this._watchDrawerPosition(drawer);\n this._watchDrawerMode(drawer);\n });\n if (!this._drawers.length ||\n this._isDrawerOpen(this._start) ||\n this._isDrawerOpen(this._end)) {\n this.updateContentMargins();\n }\n this._changeDetectorRef.markForCheck();\n });\n // Avoid hitting the NgZone through the debounce timeout.\n this._ngZone.runOutsideAngular(() => {\n this._doCheckSubject\n .pipe(debounceTime(10), // Arbitrary debounce time, less than a frame at 60fps\n takeUntil(this._destroyed))\n .subscribe(() => this.updateContentMargins());\n });\n }\n ngOnDestroy() {\n this._contentMarginChanges.complete();\n this._doCheckSubject.complete();\n this._drawers.destroy();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Calls `open` of both start and end drawers */\n open() {\n this._drawers.forEach(drawer => drawer.open());\n }\n /** Calls `close` of both start and end drawers */\n close() {\n this._drawers.forEach(drawer => drawer.close());\n }\n /**\n * Recalculates and updates the inline styles for the content. Note that this should be used\n * sparingly, because it causes a reflow.\n */\n updateContentMargins() {\n // 1. For drawers in `over` mode, they don't affect the content.\n // 2. For drawers in `side` mode they should shrink the content. We do this by adding to the\n // left margin (for left drawer) or right margin (for right the drawer).\n // 3. For drawers in `push` mode the should shift the content without resizing it. We do this by\n // adding to the left or right margin and simultaneously subtracting the same amount of\n // margin from the other side.\n let left = 0;\n let right = 0;\n if (this._left && this._left.opened) {\n if (this._left.mode == 'side') {\n left += this._left._getWidth();\n }\n else if (this._left.mode == 'push') {\n const width = this._left._getWidth();\n left += width;\n right -= width;\n }\n }\n if (this._right && this._right.opened) {\n if (this._right.mode == 'side') {\n right += this._right._getWidth();\n }\n else if (this._right.mode == 'push') {\n const width = this._right._getWidth();\n right += width;\n left -= width;\n }\n }\n // If either `right` or `left` is zero, don't set a style to the element. This\n // allows users to specify a custom size via CSS class in SSR scenarios where the\n // measured widths will always be zero. Note that we reset to `null` here, rather\n // than below, in order to ensure that the types in the `if` below are consistent.\n left = left || null;\n right = right || null;\n if (left !== this._contentMargins.left || right !== this._contentMargins.right) {\n this._contentMargins = { left, right };\n // Pull back into the NgZone since in some cases we could be outside. We need to be careful\n // to do it only when something changed, otherwise we can end up hitting the zone too often.\n this._ngZone.run(() => this._contentMarginChanges.next(this._contentMargins));\n }\n }\n ngDoCheck() {\n // If users opted into autosizing, do a check every change detection cycle.\n if (this._autosize && this._isPushed()) {\n // Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop.\n this._ngZone.runOutsideAngular(() => this._doCheckSubject.next());\n }\n }\n /**\n * Subscribes to drawer events in order to set a class on the main container element when the\n * drawer is open and the backdrop is visible. This ensures any overflow on the container element\n * is properly hidden.\n */\n _watchDrawerToggle(drawer) {\n drawer._animationStarted\n .pipe(filter((event) => event.fromState !== event.toState), takeUntil(this._drawers.changes))\n .subscribe((event) => {\n // Set the transition class on the container so that the animations occur. This should not\n // be set initially because animations should only be triggered via a change in state.\n if (event.toState !== 'open-instant' && this._animationMode !== 'NoopAnimations') {\n this._element.nativeElement.classList.add('mat-drawer-transition');\n }\n this.updateContentMargins();\n this._changeDetectorRef.markForCheck();\n });\n if (drawer.mode !== 'side') {\n drawer.openedChange\n .pipe(takeUntil(this._drawers.changes))\n .subscribe(() => this._setContainerClass(drawer.opened));\n }\n }\n /**\n * Subscribes to drawer onPositionChanged event in order to\n * re-validate drawers when the position changes.\n */\n _watchDrawerPosition(drawer) {\n if (!drawer) {\n return;\n }\n // NOTE: We need to wait for the microtask queue to be empty before validating,\n // since both drawers may be swapping positions at the same time.\n drawer.onPositionChanged.pipe(takeUntil(this._drawers.changes)).subscribe(() => {\n this._ngZone.onMicrotaskEmpty.pipe(take(1)).subscribe(() => {\n this._validateDrawers();\n });\n });\n }\n /** Subscribes to changes in drawer mode so we can run change detection. */\n _watchDrawerMode(drawer) {\n if (drawer) {\n drawer._modeChanged\n .pipe(takeUntil(merge(this._drawers.changes, this._destroyed)))\n .subscribe(() => {\n this.updateContentMargins();\n this._changeDetectorRef.markForCheck();\n });\n }\n }\n /** Toggles the 'mat-drawer-opened' class on the main 'mat-drawer-container' element. */\n _setContainerClass(isAdd) {\n const classList = this._element.nativeElement.classList;\n const className = 'mat-drawer-container-has-open';\n if (isAdd) {\n classList.add(className);\n }\n else {\n classList.remove(className);\n }\n }\n /** Validate the state of the drawer children components. */\n _validateDrawers() {\n this._start = this._end = null;\n // Ensure that we have at most one start and one end drawer.\n this._drawers.forEach(drawer => {\n if (drawer.position == 'end') {\n if (this._end != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDuplicatedDrawerError('end');\n }\n this._end = drawer;\n }\n else {\n if (this._start != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatDuplicatedDrawerError('start');\n }\n this._start = drawer;\n }\n });\n this._right = this._left = null;\n // Detect if we're LTR or RTL.\n if (this._dir && this._dir.value === 'rtl') {\n this._left = this._end;\n this._right = this._start;\n }\n else {\n this._left = this._start;\n this._right = this._end;\n }\n }\n /** Whether the container is being pushed to the side by one of the drawers. */\n _isPushed() {\n return ((this._isDrawerOpen(this._start) && this._start.mode != 'over') ||\n (this._isDrawerOpen(this._end) && this._end.mode != 'over'));\n }\n _onBackdropClicked() {\n this.backdropClick.emit();\n this._closeModalDrawersViaBackdrop();\n }\n _closeModalDrawersViaBackdrop() {\n // Close all open drawers where closing is not disabled and the mode is not `side`.\n [this._start, this._end]\n .filter(drawer => drawer && !drawer.disableClose && this._canHaveBackdrop(drawer))\n .forEach(drawer => drawer._closeViaBackdropClick());\n }\n _isShowingBackdrop() {\n return ((this._isDrawerOpen(this._start) && this._canHaveBackdrop(this._start)) ||\n (this._isDrawerOpen(this._end) && this._canHaveBackdrop(this._end)));\n }\n _canHaveBackdrop(drawer) {\n return drawer.mode !== 'side' || !!this._backdropOverride;\n }\n _isDrawerOpen(drawer) {\n return drawer != null && drawer.opened;\n }\n}\nMatDrawerContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawerContainer, deps: [{ token: i4.Directionality, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.ViewportRuler }, { token: MAT_DRAWER_DEFAULT_AUTOSIZE }, { token: ANIMATION_MODULE_TYPE, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatDrawerContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatDrawerContainer, selector: \"mat-drawer-container\", inputs: { autosize: \"autosize\", hasBackdrop: \"hasBackdrop\" }, outputs: { backdropClick: \"backdropClick\" }, host: { properties: { \"class.mat-drawer-container-explicit-backdrop\": \"_backdropOverride\" }, classAttribute: \"mat-drawer-container\" }, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatDrawerContainer,\n },\n ], queries: [{ propertyName: \"_content\", first: true, predicate: MatDrawerContent, descendants: true }, { propertyName: \"_allDrawers\", predicate: MatDrawer, descendants: true }], viewQueries: [{ propertyName: \"_userContent\", first: true, predicate: MatDrawerContent, descendants: true }], exportAs: [\"matDrawerContainer\"], ngImport: i0, template: \"<div class=\\\"mat-drawer-backdrop\\\" (click)=\\\"_onBackdropClicked()\\\" *ngIf=\\\"hasBackdrop\\\"\\n [class.mat-drawer-shown]=\\\"_isShowingBackdrop()\\\"></div>\\n\\n<ng-content select=\\\"mat-drawer\\\"></ng-content>\\n\\n<ng-content select=\\\"mat-drawer-content\\\">\\n</ng-content>\\n<mat-drawer-content *ngIf=\\\"!_content\\\">\\n <ng-content></ng-content>\\n</mat-drawer-content>\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\\n\"], components: [{ type: MatDrawerContent, selector: \"mat-drawer-content\" }], directives: [{ type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatDrawerContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-drawer-container', exportAs: 'matDrawerContainer', host: {\n 'class': 'mat-drawer-container',\n '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatDrawerContainer,\n },\n ], template: \"<div class=\\\"mat-drawer-backdrop\\\" (click)=\\\"_onBackdropClicked()\\\" *ngIf=\\\"hasBackdrop\\\"\\n [class.mat-drawer-shown]=\\\"_isShowingBackdrop()\\\"></div>\\n\\n<ng-content select=\\\"mat-drawer\\\"></ng-content>\\n\\n<ng-content select=\\\"mat-drawer-content\\\">\\n</ng-content>\\n<mat-drawer-content *ngIf=\\\"!_content\\\">\\n <ng-content></ng-content>\\n</mat-drawer-content>\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i4.Directionality, decorators: [{\n type: Optional\n }] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.ViewportRuler }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_DRAWER_DEFAULT_AUTOSIZE]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }];\n }, propDecorators: { _allDrawers: [{\n type: ContentChildren,\n args: [MatDrawer, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }], _content: [{\n type: ContentChild,\n args: [MatDrawerContent]\n }], _userContent: [{\n type: ViewChild,\n args: [MatDrawerContent]\n }], autosize: [{\n type: Input\n }], hasBackdrop: [{\n type: Input\n }], backdropClick: [{\n type: Output\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSidenavContent extends MatDrawerContent {\n constructor(changeDetectorRef, container, elementRef, scrollDispatcher, ngZone) {\n super(changeDetectorRef, container, elementRef, scrollDispatcher, ngZone);\n }\n}\nMatSidenavContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavContent, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => MatSidenavContainer) }, { token: i0.ElementRef }, { token: i1.ScrollDispatcher }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\nMatSidenavContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSidenavContent, selector: \"mat-sidenav-content\", host: { properties: { \"style.margin-left.px\": \"_container._contentMargins.left\", \"style.margin-right.px\": \"_container._contentMargins.right\" }, classAttribute: \"mat-drawer-content mat-sidenav-content\" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavContent, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-sidenav-content',\n template: '<ng-content></ng-content>',\n host: {\n 'class': 'mat-drawer-content mat-sidenav-content',\n '[style.margin-left.px]': '_container._contentMargins.left',\n '[style.margin-right.px]': '_container._contentMargins.right',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ChangeDetectorRef }, { type: MatSidenavContainer, decorators: [{\n type: Inject,\n args: [forwardRef(() => MatSidenavContainer)]\n }] }, { type: i0.ElementRef }, { type: i1.ScrollDispatcher }, { type: i0.NgZone }];\n } });\nclass MatSidenav extends MatDrawer {\n constructor() {\n super(...arguments);\n this._fixedInViewport = false;\n this._fixedTopGap = 0;\n this._fixedBottomGap = 0;\n }\n /** Whether the sidenav is fixed in the viewport. */\n get fixedInViewport() {\n return this._fixedInViewport;\n }\n set fixedInViewport(value) {\n this._fixedInViewport = coerceBooleanProperty(value);\n }\n /**\n * The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed\n * mode.\n */\n get fixedTopGap() {\n return this._fixedTopGap;\n }\n set fixedTopGap(value) {\n this._fixedTopGap = coerceNumberProperty(value);\n }\n /**\n * The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in\n * fixed mode.\n */\n get fixedBottomGap() {\n return this._fixedBottomGap;\n }\n set fixedBottomGap(value) {\n this._fixedBottomGap = coerceNumberProperty(value);\n }\n}\nMatSidenav.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenav, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSidenav.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSidenav, selector: \"mat-sidenav\", inputs: { fixedInViewport: \"fixedInViewport\", fixedTopGap: \"fixedTopGap\", fixedBottomGap: \"fixedBottomGap\" }, host: { attributes: { \"tabIndex\": \"-1\" }, properties: { \"attr.align\": \"null\", \"class.mat-drawer-end\": \"position === \\\"end\\\"\", \"class.mat-drawer-over\": \"mode === \\\"over\\\"\", \"class.mat-drawer-push\": \"mode === \\\"push\\\"\", \"class.mat-drawer-side\": \"mode === \\\"side\\\"\", \"class.mat-drawer-opened\": \"opened\", \"class.mat-sidenav-fixed\": \"fixedInViewport\", \"style.top.px\": \"fixedInViewport ? fixedTopGap : null\", \"style.bottom.px\": \"fixedInViewport ? fixedBottomGap : null\" }, classAttribute: \"mat-drawer mat-sidenav\" }, exportAs: [\"matSidenav\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-drawer-inner-container\\\" cdkScrollable>\\r\\n <ng-content></ng-content>\\r\\n</div>\\r\\n\", directives: [{ type: i1.CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\" }], animations: [matDrawerAnimations.transformDrawer], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenav, decorators: [{\n type: Component,\n args: [{ selector: 'mat-sidenav', exportAs: 'matSidenav', animations: [matDrawerAnimations.transformDrawer], host: {\n 'class': 'mat-drawer mat-sidenav',\n 'tabIndex': '-1',\n // must prevent the browser from aligning text based on value\n '[attr.align]': 'null',\n '[class.mat-drawer-end]': 'position === \"end\"',\n '[class.mat-drawer-over]': 'mode === \"over\"',\n '[class.mat-drawer-push]': 'mode === \"push\"',\n '[class.mat-drawer-side]': 'mode === \"side\"',\n '[class.mat-drawer-opened]': 'opened',\n '[class.mat-sidenav-fixed]': 'fixedInViewport',\n '[style.top.px]': 'fixedInViewport ? fixedTopGap : null',\n '[style.bottom.px]': 'fixedInViewport ? fixedBottomGap : null',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: \"<div class=\\\"mat-drawer-inner-container\\\" cdkScrollable>\\r\\n <ng-content></ng-content>\\r\\n</div>\\r\\n\" }]\n }], propDecorators: { fixedInViewport: [{\n type: Input\n }], fixedTopGap: [{\n type: Input\n }], fixedBottomGap: [{\n type: Input\n }] } });\nclass MatSidenavContainer extends MatDrawerContainer {\n}\nMatSidenavContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatSidenavContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSidenavContainer, selector: \"mat-sidenav-container\", host: { properties: { \"class.mat-drawer-container-explicit-backdrop\": \"_backdropOverride\" }, classAttribute: \"mat-drawer-container mat-sidenav-container\" }, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatSidenavContainer,\n },\n ], queries: [{ propertyName: \"_content\", first: true, predicate: MatSidenavContent, descendants: true }, { propertyName: \"_allDrawers\", predicate: MatSidenav, descendants: true }], exportAs: [\"matSidenavContainer\"], usesInheritance: true, ngImport: i0, template: \"<div class=\\\"mat-drawer-backdrop\\\" (click)=\\\"_onBackdropClicked()\\\" *ngIf=\\\"hasBackdrop\\\"\\n [class.mat-drawer-shown]=\\\"_isShowingBackdrop()\\\"></div>\\n\\n<ng-content select=\\\"mat-sidenav\\\"></ng-content>\\n\\n<ng-content select=\\\"mat-sidenav-content\\\">\\n</ng-content>\\n<mat-sidenav-content *ngIf=\\\"!_content\\\" cdkScrollable>\\n <ng-content></ng-content>\\n</mat-sidenav-content>\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\\n\"], components: [{ type: MatSidenavContent, selector: \"mat-sidenav-content\" }], directives: [{ type: i5.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i1.CdkScrollable, selector: \"[cdk-scrollable], [cdkScrollable]\" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavContainer, decorators: [{\n type: Component,\n args: [{ selector: 'mat-sidenav-container', exportAs: 'matSidenavContainer', host: {\n 'class': 'mat-drawer-container mat-sidenav-container',\n '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride',\n }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [\n {\n provide: MAT_DRAWER_CONTAINER,\n useExisting: MatSidenavContainer,\n },\n ], template: \"<div class=\\\"mat-drawer-backdrop\\\" (click)=\\\"_onBackdropClicked()\\\" *ngIf=\\\"hasBackdrop\\\"\\n [class.mat-drawer-shown]=\\\"_isShowingBackdrop()\\\"></div>\\n\\n<ng-content select=\\\"mat-sidenav\\\"></ng-content>\\n\\n<ng-content select=\\\"mat-sidenav-content\\\">\\n</ng-content>\\n<mat-sidenav-content *ngIf=\\\"!_content\\\" cdkScrollable>\\n <ng-content></ng-content>\\n</mat-sidenav-content>\\n\", styles: [\".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\\n\"] }]\n }], propDecorators: { _allDrawers: [{\n type: ContentChildren,\n args: [MatSidenav, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }], _content: [{\n type: ContentChild,\n args: [MatSidenavContent]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSidenavModule {\n}\nMatSidenavModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSidenavModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavModule, declarations: [MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent], imports: [CommonModule, MatCommonModule, PlatformModule, CdkScrollableModule], exports: [CdkScrollableModule,\n MatCommonModule,\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent] });\nMatSidenavModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavModule, imports: [[CommonModule, MatCommonModule, PlatformModule, CdkScrollableModule], CdkScrollableModule,\n MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSidenavModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule, PlatformModule, CdkScrollableModule],\n exports: [\n CdkScrollableModule,\n MatCommonModule,\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent,\n ],\n declarations: [\n MatDrawer,\n MatDrawerContainer,\n MatDrawerContent,\n MatSidenav,\n MatSidenavContainer,\n MatSidenavContent,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_DRAWER_DEFAULT_AUTOSIZE, MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY, MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, matDrawerAnimations, throwMatDuplicatedDrawerError };\n","import * as i0 from '@angular/core';\nimport { Injectable, Optional, SkipSelf, InjectionToken, EventEmitter, Directive, Inject, Input, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { SPACE, ENTER } from '@angular/cdk/keycodes';\nimport { AnimationDurations, AnimationCurves, mixinInitialized, mixinDisabled, MatCommonModule } from '@angular/material/core';\nimport { Subject, merge } from 'rxjs';\nimport { trigger, state, style, transition, animate, keyframes, query, animateChild } from '@angular/animations';\nimport * as i3 from '@angular/cdk/a11y';\nimport * as i4 from '@angular/common';\nimport { CommonModule } from '@angular/common';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SORT_ANIMATION_TRANSITION = AnimationDurations.ENTERING + ' ' + AnimationCurves.STANDARD_CURVE;\n/**\n * Animations used by MatSort.\n * @docs-private\n */\nconst matSortAnimations = {\n /** Animation that moves the sort indicator. */\n indicator: trigger('indicator', [\n state('active-asc, asc', style({ transform: 'translateY(0px)' })),\n // 10px is the height of the sort indicator, minus the width of the pointers\n state('active-desc, desc', style({ transform: 'translateY(10px)' })),\n transition('active-asc <=> active-desc', animate(SORT_ANIMATION_TRANSITION)),\n ]),\n /** Animation that rotates the left pointer of the indicator based on the sorting direction. */\n leftPointer: trigger('leftPointer', [\n state('active-asc, asc', style({ transform: 'rotate(-45deg)' })),\n state('active-desc, desc', style({ transform: 'rotate(45deg)' })),\n transition('active-asc <=> active-desc', animate(SORT_ANIMATION_TRANSITION)),\n ]),\n /** Animation that rotates the right pointer of the indicator based on the sorting direction. */\n rightPointer: trigger('rightPointer', [\n state('active-asc, asc', style({ transform: 'rotate(45deg)' })),\n state('active-desc, desc', style({ transform: 'rotate(-45deg)' })),\n transition('active-asc <=> active-desc', animate(SORT_ANIMATION_TRANSITION)),\n ]),\n /** Animation that controls the arrow opacity. */\n arrowOpacity: trigger('arrowOpacity', [\n state('desc-to-active, asc-to-active, active', style({ opacity: 1 })),\n state('desc-to-hint, asc-to-hint, hint', style({ opacity: 0.54 })),\n state('hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void', style({ opacity: 0 })),\n // Transition between all states except for immediate transitions\n transition('* => asc, * => desc, * => active, * => hint, * => void', animate('0ms')),\n transition('* <=> *', animate(SORT_ANIMATION_TRANSITION)),\n ]),\n /**\n * Animation for the translation of the arrow as a whole. States are separated into two\n * groups: ones with animations and others that are immediate. Immediate states are asc, desc,\n * peek, and active. The other states define a specific animation (source-to-destination)\n * and are determined as a function of their prev user-perceived state and what the next state\n * should be.\n */\n arrowPosition: trigger('arrowPosition', [\n // Hidden Above => Hint Center\n transition('* => desc-to-hint, * => desc-to-active', animate(SORT_ANIMATION_TRANSITION, keyframes([style({ transform: 'translateY(-25%)' }), style({ transform: 'translateY(0)' })]))),\n // Hint Center => Hidden Below\n transition('* => hint-to-desc, * => active-to-desc', animate(SORT_ANIMATION_TRANSITION, keyframes([style({ transform: 'translateY(0)' }), style({ transform: 'translateY(25%)' })]))),\n // Hidden Below => Hint Center\n transition('* => asc-to-hint, * => asc-to-active', animate(SORT_ANIMATION_TRANSITION, keyframes([style({ transform: 'translateY(25%)' }), style({ transform: 'translateY(0)' })]))),\n // Hint Center => Hidden Above\n transition('* => hint-to-asc, * => active-to-asc', animate(SORT_ANIMATION_TRANSITION, keyframes([style({ transform: 'translateY(0)' }), style({ transform: 'translateY(-25%)' })]))),\n state('desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active', style({ transform: 'translateY(0)' })),\n state('hint-to-desc, active-to-desc, desc', style({ transform: 'translateY(-25%)' })),\n state('hint-to-asc, active-to-asc, asc', style({ transform: 'translateY(25%)' })),\n ]),\n /** Necessary trigger that calls animate on children animations. */\n allowChildren: trigger('allowChildren', [\n transition('* <=> *', [query('@*', animateChild(), { optional: true })]),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @docs-private */\nfunction getSortDuplicateSortableIdError(id) {\n return Error(`Cannot have two MatSortables with the same id (${id}).`);\n}\n/** @docs-private */\nfunction getSortHeaderNotContainedWithinSortError() {\n return Error(`MatSortHeader must be placed within a parent element with the MatSort directive.`);\n}\n/** @docs-private */\nfunction getSortHeaderMissingIdError() {\n return Error(`MatSortHeader must be provided with a unique id.`);\n}\n/** @docs-private */\nfunction getSortInvalidDirectionError(direction) {\n return Error(`${direction} is not a valid sort direction ('asc' or 'desc').`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and\n * include it in a custom provider.\n */\nclass MatSortHeaderIntl {\n constructor() {\n /**\n * Stream that emits whenever the labels here are changed. Use this to notify\n * components if the labels have changed after initialization.\n */\n this.changes = new Subject();\n }\n}\nMatSortHeaderIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortHeaderIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nMatSortHeaderIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortHeaderIntl, providedIn: 'root' });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortHeaderIntl, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n/** @docs-private */\nfunction MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl) {\n return parentIntl || new MatSortHeaderIntl();\n}\n/** @docs-private */\nconst MAT_SORT_HEADER_INTL_PROVIDER = {\n // If there is already an MatSortHeaderIntl available, use that. Otherwise, provide a new one.\n provide: MatSortHeaderIntl,\n deps: [[new Optional(), new SkipSelf(), MatSortHeaderIntl]],\n useFactory: MAT_SORT_HEADER_INTL_PROVIDER_FACTORY,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Injection token to be used to override the default options for `mat-sort`. */\nconst MAT_SORT_DEFAULT_OPTIONS = new InjectionToken('MAT_SORT_DEFAULT_OPTIONS');\n// Boilerplate for applying mixins to MatSort.\n/** @docs-private */\nconst _MatSortBase = mixinInitialized(mixinDisabled(class {\n}));\n/** Container for MatSortables to manage the sort state and provide default sort parameters. */\nclass MatSort extends _MatSortBase {\n constructor(_defaultOptions) {\n super();\n this._defaultOptions = _defaultOptions;\n /** Collection of all registered sortables that this directive manages. */\n this.sortables = new Map();\n /** Used to notify any child components listening to state changes. */\n this._stateChanges = new Subject();\n /**\n * The direction to set when an MatSortable is initially sorted.\n * May be overriden by the MatSortable's sort start.\n */\n this.start = 'asc';\n this._direction = '';\n /** Event emitted when the user changes either the active sort or sort direction. */\n this.sortChange = new EventEmitter();\n }\n /** The sort direction of the currently active MatSortable. */\n get direction() {\n return this._direction;\n }\n set direction(direction) {\n if (direction &&\n direction !== 'asc' &&\n direction !== 'desc' &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getSortInvalidDirectionError(direction);\n }\n this._direction = direction;\n }\n /**\n * Whether to disable the user from clearing the sort by finishing the sort direction cycle.\n * May be overriden by the MatSortable's disable clear input.\n */\n get disableClear() {\n return this._disableClear;\n }\n set disableClear(v) {\n this._disableClear = coerceBooleanProperty(v);\n }\n /**\n * Register function to be used by the contained MatSortables. Adds the MatSortable to the\n * collection of MatSortables.\n */\n register(sortable) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!sortable.id) {\n throw getSortHeaderMissingIdError();\n }\n if (this.sortables.has(sortable.id)) {\n throw getSortDuplicateSortableIdError(sortable.id);\n }\n }\n this.sortables.set(sortable.id, sortable);\n }\n /**\n * Unregister function to be used by the contained MatSortables. Removes the MatSortable from the\n * collection of contained MatSortables.\n */\n deregister(sortable) {\n this.sortables.delete(sortable.id);\n }\n /** Sets the active sort id and determines the new sort direction. */\n sort(sortable) {\n if (this.active != sortable.id) {\n this.active = sortable.id;\n this.direction = sortable.start ? sortable.start : this.start;\n }\n else {\n this.direction = this.getNextSortDirection(sortable);\n }\n this.sortChange.emit({ active: this.active, direction: this.direction });\n }\n /** Returns the next sort direction of the active sortable, checking for potential overrides. */\n getNextSortDirection(sortable) {\n var _a, _b, _c;\n if (!sortable) {\n return '';\n }\n // Get the sort direction cycle with the potential sortable overrides.\n const disableClear = (_b = (_a = sortable === null || sortable === void 0 ? void 0 : sortable.disableClear) !== null && _a !== void 0 ? _a : this.disableClear) !== null && _b !== void 0 ? _b : !!((_c = this._defaultOptions) === null || _c === void 0 ? void 0 : _c.disableClear);\n let sortDirectionCycle = getSortDirectionCycle(sortable.start || this.start, disableClear);\n // Get and return the next direction in the cycle\n let nextDirectionIndex = sortDirectionCycle.indexOf(this.direction) + 1;\n if (nextDirectionIndex >= sortDirectionCycle.length) {\n nextDirectionIndex = 0;\n }\n return sortDirectionCycle[nextDirectionIndex];\n }\n ngOnInit() {\n this._markInitialized();\n }\n ngOnChanges() {\n this._stateChanges.next();\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n }\n}\nMatSort.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSort, deps: [{ token: MAT_SORT_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatSort.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSort, selector: \"[matSort]\", inputs: { disabled: [\"matSortDisabled\", \"disabled\"], active: [\"matSortActive\", \"active\"], start: [\"matSortStart\", \"start\"], direction: [\"matSortDirection\", \"direction\"], disableClear: [\"matSortDisableClear\", \"disableClear\"] }, outputs: { sortChange: \"matSortChange\" }, host: { classAttribute: \"mat-sort\" }, exportAs: [\"matSort\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSort, decorators: [{\n type: Directive,\n args: [{\n selector: '[matSort]',\n exportAs: 'matSort',\n host: { 'class': 'mat-sort' },\n inputs: ['disabled: matSortDisabled'],\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [MAT_SORT_DEFAULT_OPTIONS]\n }] }];\n }, propDecorators: { active: [{\n type: Input,\n args: ['matSortActive']\n }], start: [{\n type: Input,\n args: ['matSortStart']\n }], direction: [{\n type: Input,\n args: ['matSortDirection']\n }], disableClear: [{\n type: Input,\n args: ['matSortDisableClear']\n }], sortChange: [{\n type: Output,\n args: ['matSortChange']\n }] } });\n/** Returns the sort direction cycle to use given the provided parameters of order and clear. */\nfunction getSortDirectionCycle(start, disableClear) {\n let sortOrder = ['asc', 'desc'];\n if (start == 'desc') {\n sortOrder.reverse();\n }\n if (!disableClear) {\n sortOrder.push('');\n }\n return sortOrder;\n}\n\n// Boilerplate for applying mixins to the sort header.\n/** @docs-private */\nconst _MatSortHeaderBase = mixinDisabled(class {\n});\n/**\n * Applies sorting behavior (click to change sort) and styles to an element, including an\n * arrow to display the current sort direction.\n *\n * Must be provided with an id and contained within a parent MatSort directive.\n *\n * If used on header cells in a CdkTable, it will automatically default its id from its containing\n * column definition.\n */\nclass MatSortHeader extends _MatSortHeaderBase {\n constructor(\n /**\n * @deprecated `_intl` parameter isn't being used anymore and it'll be removed.\n * @breaking-change 13.0.0\n */\n _intl, _changeDetectorRef, \n // `MatSort` is not optionally injected, but just asserted manually w/ better error.\n // tslint:disable-next-line: lightweight-tokens\n _sort, _columnDef, _focusMonitor, _elementRef, \n /** @breaking-change 14.0.0 _ariaDescriber will be required. */\n _ariaDescriber) {\n // Note that we use a string token for the `_columnDef`, because the value is provided both by\n // `material/table` and `cdk/table` and we can't have the CDK depending on Material,\n // and we want to avoid having the sort header depending on the CDK table because\n // of this single reference.\n super();\n this._intl = _intl;\n this._changeDetectorRef = _changeDetectorRef;\n this._sort = _sort;\n this._columnDef = _columnDef;\n this._focusMonitor = _focusMonitor;\n this._elementRef = _elementRef;\n this._ariaDescriber = _ariaDescriber;\n /**\n * Flag set to true when the indicator should be displayed while the sort is not active. Used to\n * provide an affordance that the header is sortable by showing on focus and hover.\n */\n this._showIndicatorHint = false;\n /**\n * The view transition state of the arrow (translation/ opacity) - indicates its `from` and `to`\n * position through the animation. If animations are currently disabled, the fromState is removed\n * so that there is no animation displayed.\n */\n this._viewState = {};\n /** The direction the arrow should be facing according to the current state. */\n this._arrowDirection = '';\n /**\n * Whether the view state animation should show the transition between the `from` and `to` states.\n */\n this._disableViewStateAnimation = false;\n /** Sets the position of the arrow that displays when sorted. */\n this.arrowPosition = 'after';\n // Default the action description to \"Sort\" because it's better than nothing.\n // Without a description, the button's label comes from the sort header text content,\n // which doesn't give any indication that it performs a sorting operation.\n this._sortActionDescription = 'Sort';\n if (!_sort && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getSortHeaderNotContainedWithinSortError();\n }\n this._handleStateChanges();\n }\n /**\n * Description applied to MatSortHeader's button element with aria-describedby. This text should\n * describe the action that will occur when the user clicks the sort header.\n */\n get sortActionDescription() {\n return this._sortActionDescription;\n }\n set sortActionDescription(value) {\n this._updateSortActionDescription(value);\n }\n /** Overrides the disable clear value of the containing MatSort for this MatSortable. */\n get disableClear() {\n return this._disableClear;\n }\n set disableClear(v) {\n this._disableClear = coerceBooleanProperty(v);\n }\n ngOnInit() {\n if (!this.id && this._columnDef) {\n this.id = this._columnDef.name;\n }\n // Initialize the direction of the arrow and set the view state to be immediately that state.\n this._updateArrowDirection();\n this._setAnimationTransitionState({\n toState: this._isSorted() ? 'active' : this._arrowDirection,\n });\n this._sort.register(this);\n this._sortButton = this._elementRef.nativeElement.querySelector('[role=\"button\"]');\n this._updateSortActionDescription(this._sortActionDescription);\n }\n ngAfterViewInit() {\n // We use the focus monitor because we also want to style\n // things differently based on the focus origin.\n this._focusMonitor.monitor(this._elementRef, true).subscribe(origin => {\n const newState = !!origin;\n if (newState !== this._showIndicatorHint) {\n this._setIndicatorHintVisible(newState);\n this._changeDetectorRef.markForCheck();\n }\n });\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n this._sort.deregister(this);\n this._rerenderSubscription.unsubscribe();\n }\n /**\n * Sets the \"hint\" state such that the arrow will be semi-transparently displayed as a hint to the\n * user showing what the active sort will become. If set to false, the arrow will fade away.\n */\n _setIndicatorHintVisible(visible) {\n // No-op if the sort header is disabled - should not make the hint visible.\n if (this._isDisabled() && visible) {\n return;\n }\n this._showIndicatorHint = visible;\n if (!this._isSorted()) {\n this._updateArrowDirection();\n if (this._showIndicatorHint) {\n this._setAnimationTransitionState({ fromState: this._arrowDirection, toState: 'hint' });\n }\n else {\n this._setAnimationTransitionState({ fromState: 'hint', toState: this._arrowDirection });\n }\n }\n }\n /**\n * Sets the animation transition view state for the arrow's position and opacity. If the\n * `disableViewStateAnimation` flag is set to true, the `fromState` will be ignored so that\n * no animation appears.\n */\n _setAnimationTransitionState(viewState) {\n this._viewState = viewState || {};\n // If the animation for arrow position state (opacity/translation) should be disabled,\n // remove the fromState so that it jumps right to the toState.\n if (this._disableViewStateAnimation) {\n this._viewState = { toState: viewState.toState };\n }\n }\n /** Triggers the sort on this sort header and removes the indicator hint. */\n _toggleOnInteraction() {\n this._sort.sort(this);\n // Do not show the animation if the header was already shown in the right position.\n if (this._viewState.toState === 'hint' || this._viewState.toState === 'active') {\n this._disableViewStateAnimation = true;\n }\n }\n _handleClick() {\n if (!this._isDisabled()) {\n this._sort.sort(this);\n }\n }\n _handleKeydown(event) {\n if (!this._isDisabled() && (event.keyCode === SPACE || event.keyCode === ENTER)) {\n event.preventDefault();\n this._toggleOnInteraction();\n }\n }\n /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */\n _isSorted() {\n return (this._sort.active == this.id &&\n (this._sort.direction === 'asc' || this._sort.direction === 'desc'));\n }\n /** Returns the animation state for the arrow direction (indicator and pointers). */\n _getArrowDirectionState() {\n return `${this._isSorted() ? 'active-' : ''}${this._arrowDirection}`;\n }\n /** Returns the arrow position state (opacity, translation). */\n _getArrowViewState() {\n const fromState = this._viewState.fromState;\n return (fromState ? `${fromState}-to-` : '') + this._viewState.toState;\n }\n /**\n * Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be\n * facing the start direction. Otherwise if it is sorted, the arrow should point in the currently\n * active sorted direction. The reason this is updated through a function is because the direction\n * should only be changed at specific times - when deactivated but the hint is displayed and when\n * the sort is active and the direction changes. Otherwise the arrow's direction should linger\n * in cases such as the sort becoming deactivated but we want to animate the arrow away while\n * preserving its direction, even though the next sort direction is actually different and should\n * only be changed once the arrow displays again (hint or activation).\n */\n _updateArrowDirection() {\n this._arrowDirection = this._isSorted() ? this._sort.direction : this.start || this._sort.start;\n }\n _isDisabled() {\n return this._sort.disabled || this.disabled;\n }\n /**\n * Gets the aria-sort attribute that should be applied to this sort header. If this header\n * is not sorted, returns null so that the attribute is removed from the host element. Aria spec\n * says that the aria-sort property should only be present on one header at a time, so removing\n * ensures this is true.\n */\n _getAriaSortAttribute() {\n if (!this._isSorted()) {\n return 'none';\n }\n return this._sort.direction == 'asc' ? 'ascending' : 'descending';\n }\n /** Whether the arrow inside the sort header should be rendered. */\n _renderArrow() {\n return !this._isDisabled() || this._isSorted();\n }\n _updateSortActionDescription(newDescription) {\n var _a, _b;\n // We use AriaDescriber for the sort button instead of setting an `aria-label` because some\n // screen readers (notably VoiceOver) will read both the column header *and* the button's label\n // for every *cell* in the table, creating a lot of unnecessary noise.\n // If _sortButton is undefined, the component hasn't been initialized yet so there's\n // nothing to update in the DOM.\n if (this._sortButton) {\n // removeDescription will no-op if there is no existing message.\n // TODO(jelbourn): remove optional chaining when AriaDescriber is required.\n (_a = this._ariaDescriber) === null || _a === void 0 ? void 0 : _a.removeDescription(this._sortButton, this._sortActionDescription);\n (_b = this._ariaDescriber) === null || _b === void 0 ? void 0 : _b.describe(this._sortButton, newDescription);\n }\n this._sortActionDescription = newDescription;\n }\n /** Handles changes in the sorting state. */\n _handleStateChanges() {\n this._rerenderSubscription = merge(this._sort.sortChange, this._sort._stateChanges, this._intl.changes).subscribe(() => {\n if (this._isSorted()) {\n this._updateArrowDirection();\n // Do not show the animation if the header was already shown in the right position.\n if (this._viewState.toState === 'hint' || this._viewState.toState === 'active') {\n this._disableViewStateAnimation = true;\n }\n this._setAnimationTransitionState({ fromState: this._arrowDirection, toState: 'active' });\n this._showIndicatorHint = false;\n }\n // If this header was recently active and now no longer sorted, animate away the arrow.\n if (!this._isSorted() && this._viewState && this._viewState.toState === 'active') {\n this._disableViewStateAnimation = false;\n this._setAnimationTransitionState({ fromState: 'active', toState: this._arrowDirection });\n }\n this._changeDetectorRef.markForCheck();\n });\n }\n}\nMatSortHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortHeader, deps: [{ token: MatSortHeaderIntl }, { token: i0.ChangeDetectorRef }, { token: MatSort, optional: true }, { token: 'MAT_SORT_HEADER_COLUMN_DEF', optional: true }, { token: i3.FocusMonitor }, { token: i0.ElementRef }, { token: i3.AriaDescriber, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatSortHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatSortHeader, selector: \"[mat-sort-header]\", inputs: { disabled: \"disabled\", id: [\"mat-sort-header\", \"id\"], arrowPosition: \"arrowPosition\", start: \"start\", sortActionDescription: \"sortActionDescription\", disableClear: \"disableClear\" }, host: { listeners: { \"click\": \"_handleClick()\", \"keydown\": \"_handleKeydown($event)\", \"mouseenter\": \"_setIndicatorHintVisible(true)\", \"mouseleave\": \"_setIndicatorHintVisible(false)\" }, properties: { \"attr.aria-sort\": \"_getAriaSortAttribute()\", \"class.mat-sort-header-disabled\": \"_isDisabled()\" }, classAttribute: \"mat-sort-header\" }, exportAs: [\"matSortHeader\"], usesInheritance: true, ngImport: i0, template: \"<!--\\n We set the `tabindex` on an element inside the table header, rather than the header itself,\\n because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the\\n table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both\\n be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach\\n over having a button with an `aria-label` inside the header, because the button's `aria-label`\\n will be read out as the user is navigating the table's cell (see #13012).\\n\\n The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid\\n-->\\n<div class=\\\"mat-sort-header-container mat-focus-indicator\\\"\\n [class.mat-sort-header-sorted]=\\\"_isSorted()\\\"\\n [class.mat-sort-header-position-before]=\\\"arrowPosition == 'before'\\\"\\n [attr.tabindex]=\\\"_isDisabled() ? null : 0\\\"\\n role=\\\"button\\\">\\n\\n <!--\\n TODO(crisbeto): this div isn't strictly necessary, but we have to keep it due to a large\\n number of screenshot diff failures. It should be removed eventually. Note that the difference\\n isn't visible with a shorter header, but once it breaks up into multiple lines, this element\\n causes it to be center-aligned, whereas removing it will keep the text to the left.\\n -->\\n <div class=\\\"mat-sort-header-content\\\">\\n <ng-content></ng-content>\\n </div>\\n\\n <!-- Disable animations while a current animation is running -->\\n <div class=\\\"mat-sort-header-arrow\\\"\\n *ngIf=\\\"_renderArrow()\\\"\\n [@arrowOpacity]=\\\"_getArrowViewState()\\\"\\n [@arrowPosition]=\\\"_getArrowViewState()\\\"\\n [@allowChildren]=\\\"_getArrowDirectionState()\\\"\\n (@arrowPosition.start)=\\\"_disableViewStateAnimation = true\\\"\\n (@arrowPosition.done)=\\\"_disableViewStateAnimation = false\\\">\\n <div class=\\\"mat-sort-header-stem\\\"></div>\\n <div class=\\\"mat-sort-header-indicator\\\" [@indicator]=\\\"_getArrowDirectionState()\\\">\\n <div class=\\\"mat-sort-header-pointer-left\\\" [@leftPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-right\\\" [@rightPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-middle\\\"></div>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\\n\"], directives: [{ type: i4.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [\n matSortAnimations.indicator,\n matSortAnimations.leftPointer,\n matSortAnimations.rightPointer,\n matSortAnimations.arrowOpacity,\n matSortAnimations.arrowPosition,\n matSortAnimations.allowChildren,\n ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortHeader, decorators: [{\n type: Component,\n args: [{ selector: '[mat-sort-header]', exportAs: 'matSortHeader', host: {\n 'class': 'mat-sort-header',\n '(click)': '_handleClick()',\n '(keydown)': '_handleKeydown($event)',\n '(mouseenter)': '_setIndicatorHintVisible(true)',\n '(mouseleave)': '_setIndicatorHintVisible(false)',\n '[attr.aria-sort]': '_getAriaSortAttribute()',\n '[class.mat-sort-header-disabled]': '_isDisabled()',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], animations: [\n matSortAnimations.indicator,\n matSortAnimations.leftPointer,\n matSortAnimations.rightPointer,\n matSortAnimations.arrowOpacity,\n matSortAnimations.arrowPosition,\n matSortAnimations.allowChildren,\n ], template: \"<!--\\n We set the `tabindex` on an element inside the table header, rather than the header itself,\\n because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the\\n table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both\\n be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach\\n over having a button with an `aria-label` inside the header, because the button's `aria-label`\\n will be read out as the user is navigating the table's cell (see #13012).\\n\\n The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid\\n-->\\n<div class=\\\"mat-sort-header-container mat-focus-indicator\\\"\\n [class.mat-sort-header-sorted]=\\\"_isSorted()\\\"\\n [class.mat-sort-header-position-before]=\\\"arrowPosition == 'before'\\\"\\n [attr.tabindex]=\\\"_isDisabled() ? null : 0\\\"\\n role=\\\"button\\\">\\n\\n <!--\\n TODO(crisbeto): this div isn't strictly necessary, but we have to keep it due to a large\\n number of screenshot diff failures. It should be removed eventually. Note that the difference\\n isn't visible with a shorter header, but once it breaks up into multiple lines, this element\\n causes it to be center-aligned, whereas removing it will keep the text to the left.\\n -->\\n <div class=\\\"mat-sort-header-content\\\">\\n <ng-content></ng-content>\\n </div>\\n\\n <!-- Disable animations while a current animation is running -->\\n <div class=\\\"mat-sort-header-arrow\\\"\\n *ngIf=\\\"_renderArrow()\\\"\\n [@arrowOpacity]=\\\"_getArrowViewState()\\\"\\n [@arrowPosition]=\\\"_getArrowViewState()\\\"\\n [@allowChildren]=\\\"_getArrowDirectionState()\\\"\\n (@arrowPosition.start)=\\\"_disableViewStateAnimation = true\\\"\\n (@arrowPosition.done)=\\\"_disableViewStateAnimation = false\\\">\\n <div class=\\\"mat-sort-header-stem\\\"></div>\\n <div class=\\\"mat-sort-header-indicator\\\" [@indicator]=\\\"_getArrowDirectionState()\\\">\\n <div class=\\\"mat-sort-header-pointer-left\\\" [@leftPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-right\\\" [@rightPointer]=\\\"_getArrowDirectionState()\\\"></div>\\n <div class=\\\"mat-sort-header-pointer-middle\\\"></div>\\n </div>\\n </div>\\n</div>\\n\", styles: [\".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatSortHeaderIntl }, { type: i0.ChangeDetectorRef }, { type: MatSort, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: ['MAT_SORT_HEADER_COLUMN_DEF']\n }, {\n type: Optional\n }] }, { type: i3.FocusMonitor }, { type: i0.ElementRef }, { type: i3.AriaDescriber, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { id: [{\n type: Input,\n args: ['mat-sort-header']\n }], arrowPosition: [{\n type: Input\n }], start: [{\n type: Input\n }], sortActionDescription: [{\n type: Input\n }], disableClear: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatSortModule {\n}\nMatSortModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatSortModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortModule, declarations: [MatSort, MatSortHeader], imports: [CommonModule, MatCommonModule], exports: [MatSort, MatSortHeader] });\nMatSortModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortModule, providers: [MAT_SORT_HEADER_INTL_PROVIDER], imports: [[CommonModule, MatCommonModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatSortModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule],\n exports: [MatSort, MatSortHeader],\n declarations: [MatSort, MatSortHeader],\n providers: [MAT_SORT_HEADER_INTL_PROVIDER],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_SORT_DEFAULT_OPTIONS, MAT_SORT_HEADER_INTL_PROVIDER, MAT_SORT_HEADER_INTL_PROVIDER_FACTORY, MatSort, MatSortHeader, MatSortHeaderIntl, MatSortModule, matSortAnimations };\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, isDataSource, _DisposeViewRepeaterStrategy } from '@angular/cdk/collections';\nexport { DataSource } from '@angular/cdk/collections';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, Input, ContentChild, Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, EmbeddedViewRef, EventEmitter, Attribute, SkipSelf, Output, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { Subject, from, BehaviorSubject, isObservable, of } from 'rxjs';\nimport { takeUntil, take } from 'rxjs/operators';\nimport * as i1 from '@angular/cdk/bidi';\nimport * as i2 from '@angular/cdk/platform';\nimport * as i3 from '@angular/cdk/scrolling';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Mixin to provide a directive with a function that checks if the sticky input has been\n * changed since the last time the function was called. Essentially adds a dirty-check to the\n * sticky value.\n * @docs-private\n */\nfunction mixinHasStickyInput(base) {\n return class extends base {\n constructor(...args) {\n super(...args);\n this._sticky = false;\n /** Whether the sticky input has changed since it was last checked. */\n this._hasStickyChanged = false;\n }\n /** Whether sticky positioning should be applied. */\n get sticky() {\n return this._sticky;\n }\n set sticky(v) {\n const prevValue = this._sticky;\n this._sticky = coerceBooleanProperty(v);\n this._hasStickyChanged = prevValue !== this._sticky;\n }\n /** Whether the sticky value has changed since this was last called. */\n hasStickyChanged() {\n const hasStickyChanged = this._hasStickyChanged;\n this._hasStickyChanged = false;\n return hasStickyChanged;\n }\n /** Resets the dirty check for cases where the sticky state has been used without checking. */\n resetStickyChanged() {\n this._hasStickyChanged = false;\n }\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Used to provide a table to some of the sub-components without causing a circular dependency.\n * @docs-private\n */\nconst CDK_TABLE = new InjectionToken('CDK_TABLE');\n/** Injection token that can be used to specify the text column options. */\nconst TEXT_COLUMN_OPTIONS = new InjectionToken('text-column-options');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Cell definition for a CDK table.\n * Captures the template of a column's data row cell as well as cell-specific properties.\n */\nclass CdkCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkCellDef, selector: \"[cdkCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n/**\n * Header cell definition for a CDK table.\n * Captures the template of a column's header cell and as well as cell-specific properties.\n */\nclass CdkHeaderCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkHeaderCellDef, selector: \"[cdkHeaderCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkHeaderCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n/**\n * Footer cell definition for a CDK table.\n * Captures the template of a column's footer cell and as well as cell-specific properties.\n */\nclass CdkFooterCellDef {\n constructor(/** @docs-private */ template) {\n this.template = template;\n }\n}\nCdkFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterCellDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkFooterCellDef, selector: \"[cdkFooterCellDef]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterCellDef, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkFooterCellDef]' }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n// Boilerplate for applying mixins to CdkColumnDef.\n/** @docs-private */\nclass CdkColumnDefBase {\n}\nconst _CdkColumnDefBase = mixinHasStickyInput(CdkColumnDefBase);\n/**\n * Column definition for the CDK table.\n * Defines a set of cells available for a table column.\n */\nclass CdkColumnDef extends _CdkColumnDefBase {\n constructor(_table) {\n super();\n this._table = _table;\n this._stickyEnd = false;\n }\n /** Unique name for this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._setNameInput(name);\n }\n /**\n * Whether this column should be sticky positioned on the end of the row. Should make sure\n * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value\n * has been changed.\n */\n get stickyEnd() {\n return this._stickyEnd;\n }\n set stickyEnd(v) {\n const prevValue = this._stickyEnd;\n this._stickyEnd = coerceBooleanProperty(v);\n this._hasStickyChanged = prevValue !== this._stickyEnd;\n }\n /**\n * Overridable method that sets the css classes that will be added to every cell in this\n * column.\n * In the future, columnCssClassName will change from type string[] to string and this\n * will set a single string value.\n * @docs-private\n */\n _updateColumnCssClassName() {\n this._columnCssClassName = [`cdk-column-${this.cssClassFriendlyName}`];\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setNameInput(value) {\n // If the directive is set without a name (updated programmatically), then this setter will\n // trigger with an empty string and should not overwrite the programmatically set value.\n if (value) {\n this._name = value;\n this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/gi, '-');\n this._updateColumnCssClassName();\n }\n }\n}\nCdkColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkColumnDef, deps: [{ token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkColumnDef, selector: \"[cdkColumnDef]\", inputs: { sticky: \"sticky\", name: [\"cdkColumnDef\", \"name\"], stickyEnd: \"stickyEnd\" }, providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }], queries: [{ propertyName: \"cell\", first: true, predicate: CdkCellDef, descendants: true }, { propertyName: \"headerCell\", first: true, predicate: CdkHeaderCellDef, descendants: true }, { propertyName: \"footerCell\", first: true, predicate: CdkFooterCellDef, descendants: true }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkColumnDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkColumnDef]',\n inputs: ['sticky'],\n providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { name: [{\n type: Input,\n args: ['cdkColumnDef']\n }], stickyEnd: [{\n type: Input,\n args: ['stickyEnd']\n }], cell: [{\n type: ContentChild,\n args: [CdkCellDef]\n }], headerCell: [{\n type: ContentChild,\n args: [CdkHeaderCellDef]\n }], footerCell: [{\n type: ContentChild,\n args: [CdkFooterCellDef]\n }] } });\n/** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */\nclass BaseCdkCell {\n constructor(columnDef, elementRef) {\n // If IE 11 is dropped before we switch to setting a single class name, change to multi param\n // with destructuring.\n const classList = elementRef.nativeElement.classList;\n for (const className of columnDef._columnCssClassName) {\n classList.add(className);\n }\n }\n}\n/** Header cell template container that adds the right classes and role. */\nclass CdkHeaderCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n super(columnDef, elementRef);\n }\n}\nCdkHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkHeaderCell, selector: \"cdk-header-cell, th[cdk-header-cell]\", host: { attributes: { \"role\": \"columnheader\" }, classAttribute: \"cdk-header-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-header-cell, th[cdk-header-cell]',\n host: {\n 'class': 'cdk-header-cell',\n 'role': 'columnheader',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n/** Footer cell template container that adds the right classes and role. */\nclass CdkFooterCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n var _a;\n super(columnDef, elementRef);\n if (((_a = columnDef._table) === null || _a === void 0 ? void 0 : _a._elementRef.nativeElement.nodeType) === 1) {\n const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');\n const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';\n elementRef.nativeElement.setAttribute('role', role);\n }\n }\n}\nCdkFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkFooterCell, selector: \"cdk-footer-cell, td[cdk-footer-cell]\", host: { classAttribute: \"cdk-footer-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-footer-cell, td[cdk-footer-cell]',\n host: {\n 'class': 'cdk-footer-cell',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n/** Cell template container that adds the right classes and role. */\nclass CdkCell extends BaseCdkCell {\n constructor(columnDef, elementRef) {\n var _a;\n super(columnDef, elementRef);\n if (((_a = columnDef._table) === null || _a === void 0 ? void 0 : _a._elementRef.nativeElement.nodeType) === 1) {\n const tableRole = columnDef._table._elementRef.nativeElement.getAttribute('role');\n const role = tableRole === 'grid' || tableRole === 'treegrid' ? 'gridcell' : 'cell';\n elementRef.nativeElement.setAttribute('role', role);\n }\n }\n}\nCdkCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCell, deps: [{ token: CdkColumnDef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkCell, selector: \"cdk-cell, td[cdk-cell]\", host: { classAttribute: \"cdk-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-cell, td[cdk-cell]',\n host: {\n 'class': 'cdk-cell',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkColumnDef }, { type: i0.ElementRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @docs-private\n */\nclass _Schedule {\n constructor() {\n this.tasks = [];\n this.endTasks = [];\n }\n}\n/** Injection token used to provide a coalesced style scheduler. */\nconst _COALESCED_STYLE_SCHEDULER = new InjectionToken('_COALESCED_STYLE_SCHEDULER');\n/**\n * Allows grouping up CSSDom mutations after the current execution context.\n * This can significantly improve performance when separate consecutive functions are\n * reading from the CSSDom and then mutating it.\n *\n * @docs-private\n */\nclass _CoalescedStyleScheduler {\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n this._currentSchedule = null;\n this._destroyed = new Subject();\n }\n /**\n * Schedules the specified task to run at the end of the current VM turn.\n */\n schedule(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.tasks.push(task);\n }\n /**\n * Schedules the specified task to run after other scheduled tasks at the end of the current\n * VM turn.\n */\n scheduleEnd(task) {\n this._createScheduleIfNeeded();\n this._currentSchedule.endTasks.push(task);\n }\n /** Prevent any further tasks from running. */\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }\n _createScheduleIfNeeded() {\n if (this._currentSchedule) {\n return;\n }\n this._currentSchedule = new _Schedule();\n this._getScheduleObservable()\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => {\n while (this._currentSchedule.tasks.length || this._currentSchedule.endTasks.length) {\n const schedule = this._currentSchedule;\n // Capture new tasks scheduled by the current set of tasks.\n this._currentSchedule = new _Schedule();\n for (const task of schedule.tasks) {\n task();\n }\n for (const task of schedule.endTasks) {\n task();\n }\n }\n this._currentSchedule = null;\n });\n }\n _getScheduleObservable() {\n // Use onStable when in the context of an ongoing change detection cycle so that we\n // do not accidentally trigger additional cycles.\n return this._ngZone.isStable\n ? from(Promise.resolve(undefined))\n : this._ngZone.onStable.pipe(take(1));\n }\n}\n_CoalescedStyleScheduler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _CoalescedStyleScheduler, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });\n_CoalescedStyleScheduler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _CoalescedStyleScheduler });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: _CoalescedStyleScheduler, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The row template that can be used by the mat-table. Should not be used outside of the\n * material library.\n */\nconst CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;\n/**\n * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs\n * for changes and notifying the table.\n */\nclass BaseRowDef {\n constructor(\n /** @docs-private */ template, _differs) {\n this.template = template;\n this._differs = _differs;\n }\n ngOnChanges(changes) {\n // Create a new columns differ if one does not yet exist. Initialize it based on initial value\n // of the columns property or an empty array if none is provided.\n if (!this._columnsDiffer) {\n const columns = (changes['columns'] && changes['columns'].currentValue) || [];\n this._columnsDiffer = this._differs.find(columns).create();\n this._columnsDiffer.diff(columns);\n }\n }\n /**\n * Returns the difference between the current columns and the columns from the last diff, or null\n * if there is no difference.\n */\n getColumnsDiff() {\n return this._columnsDiffer.diff(this.columns);\n }\n /** Gets this row def's relevant cell template from the provided column def. */\n extractCellTemplate(column) {\n if (this instanceof CdkHeaderRowDef) {\n return column.headerCell.template;\n }\n if (this instanceof CdkFooterRowDef) {\n return column.footerCell.template;\n }\n else {\n return column.cell.template;\n }\n }\n}\nBaseRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BaseRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nBaseRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: BaseRowDef, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: BaseRowDef, decorators: [{\n type: Directive\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }]; } });\n// Boilerplate for applying mixins to CdkHeaderRowDef.\n/** @docs-private */\nclass CdkHeaderRowDefBase extends BaseRowDef {\n}\nconst _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);\n/**\n * Header row definition for the CDK table.\n * Captures the header row's template and other header properties such as the columns to display.\n */\nclass CdkHeaderRowDef extends _CdkHeaderRowDefBase {\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.\n // Explicitly define it so that the method is called as part of the Angular lifecycle.\n ngOnChanges(changes) {\n super.ngOnChanges(changes);\n }\n}\nCdkHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkHeaderRowDef, selector: \"[cdkHeaderRowDef]\", inputs: { columns: [\"cdkHeaderRowDef\", \"columns\"], sticky: [\"cdkHeaderRowDefSticky\", \"sticky\"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkHeaderRowDef]',\n inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }];\n } });\n// Boilerplate for applying mixins to CdkFooterRowDef.\n/** @docs-private */\nclass CdkFooterRowDefBase extends BaseRowDef {\n}\nconst _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);\n/**\n * Footer row definition for the CDK table.\n * Captures the footer row's template and other footer properties such as the columns to display.\n */\nclass CdkFooterRowDef extends _CdkFooterRowDefBase {\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.\n // Explicitly define it so that the method is called as part of the Angular lifecycle.\n ngOnChanges(changes) {\n super.ngOnChanges(changes);\n }\n}\nCdkFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkFooterRowDef, selector: \"[cdkFooterRowDef]\", inputs: { columns: [\"cdkFooterRowDef\", \"columns\"], sticky: [\"cdkFooterRowDefSticky\", \"sticky\"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkFooterRowDef]',\n inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }];\n } });\n/**\n * Data row definition for the CDK table.\n * Captures the header row's template and other row properties such as the columns to display and\n * a when predicate that describes when this row should be used.\n */\nclass CdkRowDef extends BaseRowDef {\n // TODO(andrewseguin): Add an input for providing a switch function to determine\n // if this template should be used.\n constructor(template, _differs, _table) {\n super(template, _differs);\n this._table = _table;\n }\n}\nCdkRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRowDef, deps: [{ token: i0.TemplateRef }, { token: i0.IterableDiffers }, { token: CDK_TABLE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkRowDef, selector: \"[cdkRowDef]\", inputs: { columns: [\"cdkRowDefColumns\", \"columns\"], when: [\"cdkRowDefWhen\", \"when\"] }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkRowDef]',\n inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.TemplateRef }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TABLE]\n }, {\n type: Optional\n }] }];\n } });\n/**\n * Outlet for rendering cells inside of a row or header row.\n * @docs-private\n */\nclass CdkCellOutlet {\n constructor(_viewContainer) {\n this._viewContainer = _viewContainer;\n CdkCellOutlet.mostRecentCellOutlet = this;\n }\n ngOnDestroy() {\n // If this was the last outlet being rendered in the view, remove the reference\n // from the static property after it has been destroyed to avoid leaking memory.\n if (CdkCellOutlet.mostRecentCellOutlet === this) {\n CdkCellOutlet.mostRecentCellOutlet = null;\n }\n }\n}\n/**\n * Static property containing the latest constructed instance of this class.\n * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using\n * createEmbeddedView. After one of these components are created, this property will provide\n * a handle to provide that component's cells and context. After init, the CdkCellOutlet will\n * construct the cells with the provided context.\n */\nCdkCellOutlet.mostRecentCellOutlet = null;\nCdkCellOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCellOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkCellOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkCellOutlet, selector: \"[cdkCellOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkCellOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[cdkCellOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });\n/** Header template container that contains the cell outlet. Adds the right class and role. */\nclass CdkHeaderRow {\n}\nCdkHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkHeaderRow, selector: \"cdk-header-row, tr[cdk-header-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-header-row\" }, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkHeaderRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-header-row, tr[cdk-header-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-header-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Footer template container that contains the cell outlet. Adds the right class and role. */\nclass CdkFooterRow {\n}\nCdkFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkFooterRow, selector: \"cdk-footer-row, tr[cdk-footer-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-footer-row\" }, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkFooterRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-footer-row, tr[cdk-footer-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-footer-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Data row template container that contains the cell outlet. Adds the right class and role. */\nclass CdkRow {\n}\nCdkRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRow, deps: [], target: i0.ɵɵFactoryTarget.Component });\nCdkRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkRow, selector: \"cdk-row, tr[cdk-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"cdk-row\" }, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRow, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-row, tr[cdk-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n }]\n }] });\n/** Row that can be used to display a message when no data is shown in the table. */\nclass CdkNoDataRow {\n constructor(templateRef) {\n this.templateRef = templateRef;\n this._contentClassName = 'cdk-no-data-row';\n }\n}\nCdkNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkNoDataRow, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkNoDataRow, selector: \"ng-template[cdkNoDataRow]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkNoDataRow, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[cdkNoDataRow]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * List of all possible directions that can be used for sticky positioning.\n * @docs-private\n */\nconst STICKY_DIRECTIONS = ['top', 'bottom', 'left', 'right'];\n/**\n * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.\n * @docs-private\n */\nclass StickyStyler {\n /**\n * @param _isNativeHtmlTable Whether the sticky logic should be based on a table\n * that uses the native `<table>` element.\n * @param _stickCellCss The CSS class that will be applied to every row/cell that has\n * sticky positioning applied.\n * @param direction The directionality context of the table (ltr/rtl); affects column positioning\n * by reversing left/right positions.\n * @param _isBrowser Whether the table is currently being rendered on the server or the client.\n * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells\n * using inline styles. If false, it is assumed that position: sticky is included in\n * the component stylesheet for _stickCellCss.\n * @param _positionListener A listener that is notified of changes to sticky rows/columns\n * and their dimensions.\n */\n constructor(_isNativeHtmlTable, _stickCellCss, direction, _coalescedStyleScheduler, _isBrowser = true, _needsPositionStickyOnElement = true, _positionListener) {\n this._isNativeHtmlTable = _isNativeHtmlTable;\n this._stickCellCss = _stickCellCss;\n this.direction = direction;\n this._coalescedStyleScheduler = _coalescedStyleScheduler;\n this._isBrowser = _isBrowser;\n this._needsPositionStickyOnElement = _needsPositionStickyOnElement;\n this._positionListener = _positionListener;\n this._cachedCellWidths = [];\n this._borderCellCss = {\n 'top': `${_stickCellCss}-border-elem-top`,\n 'bottom': `${_stickCellCss}-border-elem-bottom`,\n 'left': `${_stickCellCss}-border-elem-left`,\n 'right': `${_stickCellCss}-border-elem-right`,\n };\n }\n /**\n * Clears the sticky positioning styles from the row and its cells by resetting the `position`\n * style, setting the zIndex to 0, and unsetting each provided sticky direction.\n * @param rows The list of rows that should be cleared from sticking in the provided directions\n * @param stickyDirections The directions that should no longer be set as sticky on the rows.\n */\n clearStickyPositioning(rows, stickyDirections) {\n const elementsToClear = [];\n for (const row of rows) {\n // If the row isn't an element (e.g. if it's an `ng-container`),\n // it won't have inline styles or `children` so we skip it.\n if (row.nodeType !== row.ELEMENT_NODE) {\n continue;\n }\n elementsToClear.push(row);\n for (let i = 0; i < row.children.length; i++) {\n elementsToClear.push(row.children[i]);\n }\n }\n // Coalesce with sticky row/column updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n for (const element of elementsToClear) {\n this._removeStickyStyle(element, stickyDirections);\n }\n });\n }\n /**\n * Applies sticky left and right positions to the cells of each row according to the sticky\n * states of the rendered column definitions.\n * @param rows The rows that should have its set of cells stuck according to the sticky states.\n * @param stickyStartStates A list of boolean states where each state represents whether the cell\n * in this index position should be stuck to the start of the row.\n * @param stickyEndStates A list of boolean states where each state represents whether the cell\n * in this index position should be stuck to the end of the row.\n * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each\n * column cell. If `false` cached widths will be used instead.\n */\n updateStickyColumns(rows, stickyStartStates, stickyEndStates, recalculateCellWidths = true) {\n if (!rows.length ||\n !this._isBrowser ||\n !(stickyStartStates.some(state => state) || stickyEndStates.some(state => state))) {\n if (this._positionListener) {\n this._positionListener.stickyColumnsUpdated({ sizes: [] });\n this._positionListener.stickyEndColumnsUpdated({ sizes: [] });\n }\n return;\n }\n const firstRow = rows[0];\n const numCells = firstRow.children.length;\n const cellWidths = this._getCellWidths(firstRow, recalculateCellWidths);\n const startPositions = this._getStickyStartColumnPositions(cellWidths, stickyStartStates);\n const endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates);\n const lastStickyStart = stickyStartStates.lastIndexOf(true);\n const firstStickyEnd = stickyEndStates.indexOf(true);\n // Coalesce with sticky row updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n const isRtl = this.direction === 'rtl';\n const start = isRtl ? 'right' : 'left';\n const end = isRtl ? 'left' : 'right';\n for (const row of rows) {\n for (let i = 0; i < numCells; i++) {\n const cell = row.children[i];\n if (stickyStartStates[i]) {\n this._addStickyStyle(cell, start, startPositions[i], i === lastStickyStart);\n }\n if (stickyEndStates[i]) {\n this._addStickyStyle(cell, end, endPositions[i], i === firstStickyEnd);\n }\n }\n }\n if (this._positionListener) {\n this._positionListener.stickyColumnsUpdated({\n sizes: lastStickyStart === -1\n ? []\n : cellWidths\n .slice(0, lastStickyStart + 1)\n .map((width, index) => (stickyStartStates[index] ? width : null)),\n });\n this._positionListener.stickyEndColumnsUpdated({\n sizes: firstStickyEnd === -1\n ? []\n : cellWidths\n .slice(firstStickyEnd)\n .map((width, index) => (stickyEndStates[index + firstStickyEnd] ? width : null))\n .reverse(),\n });\n }\n });\n }\n /**\n * Applies sticky positioning to the row's cells if using the native table layout, and to the\n * row itself otherwise.\n * @param rowsToStick The list of rows that should be stuck according to their corresponding\n * sticky state and to the provided top or bottom position.\n * @param stickyStates A list of boolean states where each state represents whether the row\n * should be stuck in the particular top or bottom position.\n * @param position The position direction in which the row should be stuck if that row should be\n * sticky.\n *\n */\n stickRows(rowsToStick, stickyStates, position) {\n // Since we can't measure the rows on the server, we can't stick the rows properly.\n if (!this._isBrowser) {\n return;\n }\n // If positioning the rows to the bottom, reverse their order when evaluating the sticky\n // position such that the last row stuck will be \"bottom: 0px\" and so on. Note that the\n // sticky states need to be reversed as well.\n const rows = position === 'bottom' ? rowsToStick.slice().reverse() : rowsToStick;\n const states = position === 'bottom' ? stickyStates.slice().reverse() : stickyStates;\n // Measure row heights all at once before adding sticky styles to reduce layout thrashing.\n const stickyOffsets = [];\n const stickyCellHeights = [];\n const elementsToStick = [];\n for (let rowIndex = 0, stickyOffset = 0; rowIndex < rows.length; rowIndex++) {\n if (!states[rowIndex]) {\n continue;\n }\n stickyOffsets[rowIndex] = stickyOffset;\n const row = rows[rowIndex];\n elementsToStick[rowIndex] = this._isNativeHtmlTable\n ? Array.from(row.children)\n : [row];\n const height = row.getBoundingClientRect().height;\n stickyOffset += height;\n stickyCellHeights[rowIndex] = height;\n }\n const borderedRowIndex = states.lastIndexOf(true);\n // Coalesce with other sticky row updates (top/bottom), sticky columns updates\n // (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n var _a, _b;\n for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {\n if (!states[rowIndex]) {\n continue;\n }\n const offset = stickyOffsets[rowIndex];\n const isBorderedRowIndex = rowIndex === borderedRowIndex;\n for (const element of elementsToStick[rowIndex]) {\n this._addStickyStyle(element, position, offset, isBorderedRowIndex);\n }\n }\n if (position === 'top') {\n (_a = this._positionListener) === null || _a === void 0 ? void 0 : _a.stickyHeaderRowsUpdated({\n sizes: stickyCellHeights,\n offsets: stickyOffsets,\n elements: elementsToStick,\n });\n }\n else {\n (_b = this._positionListener) === null || _b === void 0 ? void 0 : _b.stickyFooterRowsUpdated({\n sizes: stickyCellHeights,\n offsets: stickyOffsets,\n elements: elementsToStick,\n });\n }\n });\n }\n /**\n * When using the native table in Safari, sticky footer cells do not stick. The only way to stick\n * footer rows is to apply sticky styling to the tfoot container. This should only be done if\n * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from\n * the tfoot element.\n */\n updateStickyFooterContainer(tableElement, stickyStates) {\n if (!this._isNativeHtmlTable) {\n return;\n }\n const tfoot = tableElement.querySelector('tfoot');\n // Coalesce with other sticky updates (and potentially other changes like column resize).\n this._coalescedStyleScheduler.schedule(() => {\n if (stickyStates.some(state => !state)) {\n this._removeStickyStyle(tfoot, ['bottom']);\n }\n else {\n this._addStickyStyle(tfoot, 'bottom', 0, false);\n }\n });\n }\n /**\n * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating\n * the zIndex, removing each of the provided sticky directions, and removing the\n * sticky position if there are no more directions.\n */\n _removeStickyStyle(element, stickyDirections) {\n for (const dir of stickyDirections) {\n element.style[dir] = '';\n element.classList.remove(this._borderCellCss[dir]);\n }\n // If the element no longer has any more sticky directions, remove sticky positioning and\n // the sticky CSS class.\n // Short-circuit checking element.style[dir] for stickyDirections as they\n // were already removed above.\n const hasDirection = STICKY_DIRECTIONS.some(dir => stickyDirections.indexOf(dir) === -1 && element.style[dir]);\n if (hasDirection) {\n element.style.zIndex = this._getCalculatedZIndex(element);\n }\n else {\n // When not hasDirection, _getCalculatedZIndex will always return ''.\n element.style.zIndex = '';\n if (this._needsPositionStickyOnElement) {\n element.style.position = '';\n }\n element.classList.remove(this._stickCellCss);\n }\n }\n /**\n * Adds the sticky styling to the element by adding the sticky style class, changing position\n * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky\n * direction and value.\n */\n _addStickyStyle(element, dir, dirValue, isBorderElement) {\n element.classList.add(this._stickCellCss);\n if (isBorderElement) {\n element.classList.add(this._borderCellCss[dir]);\n }\n element.style[dir] = `${dirValue}px`;\n element.style.zIndex = this._getCalculatedZIndex(element);\n if (this._needsPositionStickyOnElement) {\n element.style.cssText += 'position: -webkit-sticky; position: sticky; ';\n }\n }\n /**\n * Calculate what the z-index should be for the element, depending on what directions (top,\n * bottom, left, right) have been set. It should be true that elements with a top direction\n * should have the highest index since these are elements like a table header. If any of those\n * elements are also sticky in another direction, then they should appear above other elements\n * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements\n * (e.g. footer rows) should then be next in the ordering such that they are below the header\n * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)\n * should minimally increment so that they are above non-sticky elements but below top and bottom\n * elements.\n */\n _getCalculatedZIndex(element) {\n const zIndexIncrements = {\n top: 100,\n bottom: 10,\n left: 1,\n right: 1,\n };\n let zIndex = 0;\n // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n for (const dir of STICKY_DIRECTIONS) {\n if (element.style[dir]) {\n zIndex += zIndexIncrements[dir];\n }\n }\n return zIndex ? `${zIndex}` : '';\n }\n /** Gets the widths for each cell in the provided row. */\n _getCellWidths(row, recalculateCellWidths = true) {\n if (!recalculateCellWidths && this._cachedCellWidths.length) {\n return this._cachedCellWidths;\n }\n const cellWidths = [];\n const firstRowCells = row.children;\n for (let i = 0; i < firstRowCells.length; i++) {\n let cell = firstRowCells[i];\n cellWidths.push(cell.getBoundingClientRect().width);\n }\n this._cachedCellWidths = cellWidths;\n return cellWidths;\n }\n /**\n * Determines the left and right positions of each sticky column cell, which will be the\n * accumulation of all sticky column cell widths to the left and right, respectively.\n * Non-sticky cells do not need to have a value set since their positions will not be applied.\n */\n _getStickyStartColumnPositions(widths, stickyStates) {\n const positions = [];\n let nextPosition = 0;\n for (let i = 0; i < widths.length; i++) {\n if (stickyStates[i]) {\n positions[i] = nextPosition;\n nextPosition += widths[i];\n }\n }\n return positions;\n }\n /**\n * Determines the left and right positions of each sticky column cell, which will be the\n * accumulation of all sticky column cell widths to the left and right, respectively.\n * Non-sticky cells do not need to have a value set since their positions will not be applied.\n */\n _getStickyEndColumnPositions(widths, stickyStates) {\n const positions = [];\n let nextPosition = 0;\n for (let i = widths.length; i > 0; i--) {\n if (stickyStates[i]) {\n positions[i] = nextPosition;\n nextPosition += widths[i];\n }\n }\n return positions;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an error to be thrown when attempting to find an unexisting column.\n * @param id Id whose lookup failed.\n * @docs-private\n */\nfunction getTableUnknownColumnError(id) {\n return Error(`Could not find column with id \"${id}\".`);\n}\n/**\n * Returns an error to be thrown when two column definitions have the same name.\n * @docs-private\n */\nfunction getTableDuplicateColumnNameError(name) {\n return Error(`Duplicate column definition name provided: \"${name}\".`);\n}\n/**\n * Returns an error to be thrown when there are multiple rows that are missing a when function.\n * @docs-private\n */\nfunction getTableMultipleDefaultRowDefsError() {\n return Error(`There can only be one default row without a when predicate function.`);\n}\n/**\n * Returns an error to be thrown when there are no matching row defs for a particular set of data.\n * @docs-private\n */\nfunction getTableMissingMatchingRowDefError(data) {\n return Error(`Could not find a matching row definition for the` +\n `provided row data: ${JSON.stringify(data)}`);\n}\n/**\n * Returns an error to be thrown when there is no row definitions present in the content.\n * @docs-private\n */\nfunction getTableMissingRowDefsError() {\n return Error('Missing definitions for header, footer, and row; ' +\n 'cannot determine which columns should be rendered.');\n}\n/**\n * Returns an error to be thrown when the data source does not match the compatible types.\n * @docs-private\n */\nfunction getTableUnknownDataSourceError() {\n return Error(`Provided data source did not match an array, Observable, or DataSource`);\n}\n/**\n * Returns an error to be thrown when the text column cannot find a parent table to inject.\n * @docs-private\n */\nfunction getTableTextColumnMissingParentTableError() {\n return Error(`Text column could not find a parent table for registration.`);\n}\n/**\n * Returns an error to be thrown when a table text column doesn't have a name.\n * @docs-private\n */\nfunction getTableTextColumnMissingNameError() {\n return Error(`Table text column must have a name.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** The injection token used to specify the StickyPositioningListener. */\nconst STICKY_POSITIONING_LISTENER = new InjectionToken('CDK_SPL');\n\n/**\n * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with\n * tables that animate rows.\n */\nclass CdkRecycleRows {\n}\nCdkRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkRecycleRows, selector: \"cdk-table[recycleRows], table[cdk-table][recycleRows]\", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkRecycleRows, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-table[recycleRows], table[cdk-table][recycleRows]',\n providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n }]\n }] });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert data rows.\n * @docs-private\n */\nclass DataRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: DataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: DataRowOutlet, selector: \"[rowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: DataRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[rowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert the header.\n * @docs-private\n */\nclass HeaderRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nHeaderRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: HeaderRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nHeaderRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: HeaderRowOutlet, selector: \"[headerRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: HeaderRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[headerRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert the footer.\n * @docs-private\n */\nclass FooterRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nFooterRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FooterRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nFooterRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: FooterRowOutlet, selector: \"[footerRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: FooterRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[footerRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * Provides a handle for the table to grab the view\n * container's ng-container to insert the no data row.\n * @docs-private\n */\nclass NoDataRowOutlet {\n constructor(viewContainer, elementRef) {\n this.viewContainer = viewContainer;\n this.elementRef = elementRef;\n }\n}\nNoDataRowOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NoDataRowOutlet, deps: [{ token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });\nNoDataRowOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: NoDataRowOutlet, selector: \"[noDataRowOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: NoDataRowOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[noDataRowOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ElementRef }]; } });\n/**\n * The table template that can be used by the mat-table. Should not be used outside of the\n * material library.\n * @docs-private\n */\nconst CDK_TABLE_TEMPLATE = \n// Note that according to MDN, the `caption` element has to be projected as the **first**\n// element in the table. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption\n`\n <ng-content select=\"caption\"></ng-content>\n <ng-content select=\"colgroup, col\"></ng-content>\n <ng-container headerRowOutlet></ng-container>\n <ng-container rowOutlet></ng-container>\n <ng-container noDataRowOutlet></ng-container>\n <ng-container footerRowOutlet></ng-container>\n`;\n/**\n * Class used to conveniently type the embedded view ref for rows with a context.\n * @docs-private\n */\nclass RowViewRef extends EmbeddedViewRef {\n}\n/**\n * A data table that can render a header row, data rows, and a footer row.\n * Uses the dataSource input to determine the data to be rendered. The data can be provided either\n * as a data array, an Observable stream that emits the data array to render, or a DataSource with a\n * connect function that will return an Observable stream that emits the data array to render.\n */\nclass CdkTable {\n constructor(_differs, _changeDetectorRef, _elementRef, role, _dir, _document, _platform, _viewRepeater, _coalescedStyleScheduler, _viewportRuler, \n /**\n * @deprecated `_stickyPositioningListener` parameter to become required.\n * @breaking-change 13.0.0\n */\n _stickyPositioningListener) {\n this._differs = _differs;\n this._changeDetectorRef = _changeDetectorRef;\n this._elementRef = _elementRef;\n this._dir = _dir;\n this._platform = _platform;\n this._viewRepeater = _viewRepeater;\n this._coalescedStyleScheduler = _coalescedStyleScheduler;\n this._viewportRuler = _viewportRuler;\n this._stickyPositioningListener = _stickyPositioningListener;\n /** Subject that emits when the component has been destroyed. */\n this._onDestroy = new Subject();\n /**\n * Map of all the user's defined columns (header, data, and footer cell template) identified by\n * name. Collection populated by the column definitions gathered by `ContentChildren` as well as\n * any custom column definitions added to `_customColumnDefs`.\n */\n this._columnDefsByName = new Map();\n /**\n * Column definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * column definitions as *its* content child.\n */\n this._customColumnDefs = new Set();\n /**\n * Data row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * built-in data rows as *its* content child.\n */\n this._customRowDefs = new Set();\n /**\n * Header row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has\n * built-in header rows as *its* content child.\n */\n this._customHeaderRowDefs = new Set();\n /**\n * Footer row definitions that were defined outside of the direct content children of the table.\n * These will be defined when, e.g., creating a wrapper around the cdkTable that has a\n * built-in footer row as *its* content child.\n */\n this._customFooterRowDefs = new Set();\n /**\n * Whether the header row definition has been changed. Triggers an update to the header row after\n * content is checked. Initialized as true so that the table renders the initial set of rows.\n */\n this._headerRowDefChanged = true;\n /**\n * Whether the footer row definition has been changed. Triggers an update to the footer row after\n * content is checked. Initialized as true so that the table renders the initial set of rows.\n */\n this._footerRowDefChanged = true;\n /**\n * Whether the sticky column styles need to be updated. Set to `true` when the visible columns\n * change.\n */\n this._stickyColumnStylesNeedReset = true;\n /**\n * Whether the sticky styler should recalculate cell widths when applying sticky styles. If\n * `false`, cached values will be used instead. This is only applicable to tables with\n * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.\n */\n this._forceRecalculateCellWidths = true;\n /**\n * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing\n * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with\n * the cached `RenderRow` objects when possible, the row identity is preserved when the data\n * and row template matches, which allows the `IterableDiffer` to check rows by reference\n * and understand which rows are added/moved/removed.\n *\n * Implemented as a map of maps where the first key is the `data: T` object and the second is the\n * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that\n * contains an array of created pairs. The array is necessary to handle cases where the data\n * array contains multiple duplicate data objects and each instantiated `RenderRow` must be\n * stored.\n */\n this._cachedRenderRowsMap = new Map();\n /**\n * CSS class added to any row or cell that has sticky positioning applied. May be overriden by\n * table subclasses.\n */\n this.stickyCssClass = 'cdk-table-sticky';\n /**\n * Whether to manually add positon: sticky to all sticky cell elements. Not needed if\n * the position is set in a selector associated with the value of stickyCssClass. May be\n * overridden by table subclasses\n */\n this.needsPositionStickyOnElement = true;\n /** Whether the no data row is currently showing anything. */\n this._isShowingNoDataRow = false;\n this._multiTemplateDataRows = false;\n this._fixedLayout = false;\n /**\n * Emits when the table completes rendering a set of data rows based on the latest data from the\n * data source, even if the set of rows is empty.\n */\n this.contentChanged = new EventEmitter();\n // TODO(andrewseguin): Remove max value as the end index\n // and instead calculate the view on init and scroll.\n /**\n * Stream containing the latest information on what rows are being displayed on screen.\n * Can be used by the data source to as a heuristic of what data should be provided.\n *\n * @docs-private\n */\n this.viewChange = new BehaviorSubject({\n start: 0,\n end: Number.MAX_VALUE,\n });\n if (!role) {\n this._elementRef.nativeElement.setAttribute('role', 'table');\n }\n this._document = _document;\n this._isNativeHtmlTable = this._elementRef.nativeElement.nodeName === 'TABLE';\n }\n /**\n * Tracking function that will be used to check the differences in data changes. Used similarly\n * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data\n * relative to the function to know if a row should be added/removed/moved.\n * Accepts a function that takes two parameters, `index` and `item`.\n */\n get trackBy() {\n return this._trackByFn;\n }\n set trackBy(fn) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`);\n }\n this._trackByFn = fn;\n }\n /**\n * The table's source of data, which can be provided in three ways (in order of complexity):\n * - Simple data array (each object represents one table row)\n * - Stream that emits a data array each time the array changes\n * - `DataSource` object that implements the connect/disconnect interface.\n *\n * If a data array is provided, the table must be notified when the array's objects are\n * added, removed, or moved. This can be done by calling the `renderRows()` function which will\n * render the diff since the last table render. If the data array reference is changed, the table\n * will automatically trigger an update to the rows.\n *\n * When providing an Observable stream, the table will trigger an update automatically when the\n * stream emits a new array of data.\n *\n * Finally, when providing a `DataSource` object, the table will use the Observable stream\n * provided by the connect function and trigger updates when that stream emits new data array\n * values. During the table's ngOnDestroy or when the data source is removed from the table, the\n * table will call the DataSource's `disconnect` function (may be useful for cleaning up any\n * subscriptions registered during the connect process).\n */\n get dataSource() {\n return this._dataSource;\n }\n set dataSource(dataSource) {\n if (this._dataSource !== dataSource) {\n this._switchDataSource(dataSource);\n }\n }\n /**\n * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'\n * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each\n * dataobject will render the first row that evaluates its when predicate to true, in the order\n * defined in the table, or otherwise the default row which does not have a when predicate.\n */\n get multiTemplateDataRows() {\n return this._multiTemplateDataRows;\n }\n set multiTemplateDataRows(v) {\n this._multiTemplateDataRows = coerceBooleanProperty(v);\n // In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),\n // this setter will be invoked before the row outlet has been defined hence the null check.\n if (this._rowOutlet && this._rowOutlet.viewContainer.length) {\n this._forceRenderDataRows();\n this.updateStickyColumnStyles();\n }\n }\n /**\n * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths\n * and optimize rendering sticky styles for native tables. No-op for flex tables.\n */\n get fixedLayout() {\n return this._fixedLayout;\n }\n set fixedLayout(v) {\n this._fixedLayout = coerceBooleanProperty(v);\n // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.\n this._forceRecalculateCellWidths = true;\n this._stickyColumnStylesNeedReset = true;\n }\n ngOnInit() {\n this._setupStickyStyler();\n if (this._isNativeHtmlTable) {\n this._applyNativeTableSections();\n }\n // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If\n // the user has provided a custom trackBy, return the result of that function as evaluated\n // with the values of the `RenderRow`'s data and index.\n this._dataDiffer = this._differs.find([]).create((_i, dataRow) => {\n return this.trackBy ? this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;\n });\n this._viewportRuler\n .change()\n .pipe(takeUntil(this._onDestroy))\n .subscribe(() => {\n this._forceRecalculateCellWidths = true;\n });\n }\n ngAfterContentChecked() {\n // Cache the row and column definitions gathered by ContentChildren and programmatic injection.\n this._cacheRowDefs();\n this._cacheColumnDefs();\n // Make sure that the user has at least added header, footer, or data row def.\n if (!this._headerRowDefs.length &&\n !this._footerRowDefs.length &&\n !this._rowDefs.length &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMissingRowDefsError();\n }\n // Render updates if the list of columns have been changed for the header, row, or footer defs.\n const columnsChanged = this._renderUpdatedColumns();\n const rowDefsChanged = columnsChanged || this._headerRowDefChanged || this._footerRowDefChanged;\n // Ensure sticky column styles are reset if set to `true` elsewhere.\n this._stickyColumnStylesNeedReset = this._stickyColumnStylesNeedReset || rowDefsChanged;\n this._forceRecalculateCellWidths = rowDefsChanged;\n // If the header row definition has been changed, trigger a render to the header row.\n if (this._headerRowDefChanged) {\n this._forceRenderHeaderRows();\n this._headerRowDefChanged = false;\n }\n // If the footer row definition has been changed, trigger a render to the footer row.\n if (this._footerRowDefChanged) {\n this._forceRenderFooterRows();\n this._footerRowDefChanged = false;\n }\n // If there is a data source and row definitions, connect to the data source unless a\n // connection has already been made.\n if (this.dataSource && this._rowDefs.length > 0 && !this._renderChangeSubscription) {\n this._observeRenderChanges();\n }\n else if (this._stickyColumnStylesNeedReset) {\n // In the above case, _observeRenderChanges will result in updateStickyColumnStyles being\n // called when it row data arrives. Otherwise, we need to call it proactively.\n this.updateStickyColumnStyles();\n }\n this._checkStickyStates();\n }\n ngOnDestroy() {\n this._rowOutlet.viewContainer.clear();\n this._noDataRowOutlet.viewContainer.clear();\n this._headerRowOutlet.viewContainer.clear();\n this._footerRowOutlet.viewContainer.clear();\n this._cachedRenderRowsMap.clear();\n this._onDestroy.next();\n this._onDestroy.complete();\n if (isDataSource(this.dataSource)) {\n this.dataSource.disconnect(this);\n }\n }\n /**\n * Renders rows based on the table's latest set of data, which was either provided directly as an\n * input or retrieved through an Observable stream (directly or from a DataSource).\n * Checks for differences in the data since the last diff to perform only the necessary\n * changes (add/remove/move rows).\n *\n * If the table's data source is a DataSource or Observable, this will be invoked automatically\n * each time the provided Observable stream emits a new data array. Otherwise if your data is\n * an array, this function will need to be called to render any changes.\n */\n renderRows() {\n this._renderRows = this._getAllRenderRows();\n const changes = this._dataDiffer.diff(this._renderRows);\n if (!changes) {\n this._updateNoDataRow();\n this.contentChanged.next();\n return;\n }\n const viewContainer = this._rowOutlet.viewContainer;\n this._viewRepeater.applyChanges(changes, viewContainer, (record, _adjustedPreviousIndex, currentIndex) => this._getEmbeddedViewArgs(record.item, currentIndex), record => record.item.data, (change) => {\n if (change.operation === 1 /* INSERTED */ && change.context) {\n this._renderCellTemplateForItem(change.record.item.rowDef, change.context);\n }\n });\n // Update the meta context of a row's context data (index, count, first, last, ...)\n this._updateRowIndexContext();\n // Update rows that did not get added/removed/moved but may have had their identity changed,\n // e.g. if trackBy matched data on some property but the actual data reference changed.\n changes.forEachIdentityChange((record) => {\n const rowView = viewContainer.get(record.currentIndex);\n rowView.context.$implicit = record.item.data;\n });\n this._updateNoDataRow();\n this.updateStickyColumnStyles();\n this.contentChanged.next();\n }\n /** Adds a column definition that was not included as part of the content children. */\n addColumnDef(columnDef) {\n this._customColumnDefs.add(columnDef);\n }\n /** Removes a column definition that was not included as part of the content children. */\n removeColumnDef(columnDef) {\n this._customColumnDefs.delete(columnDef);\n }\n /** Adds a row definition that was not included as part of the content children. */\n addRowDef(rowDef) {\n this._customRowDefs.add(rowDef);\n }\n /** Removes a row definition that was not included as part of the content children. */\n removeRowDef(rowDef) {\n this._customRowDefs.delete(rowDef);\n }\n /** Adds a header row definition that was not included as part of the content children. */\n addHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.add(headerRowDef);\n this._headerRowDefChanged = true;\n }\n /** Removes a header row definition that was not included as part of the content children. */\n removeHeaderRowDef(headerRowDef) {\n this._customHeaderRowDefs.delete(headerRowDef);\n this._headerRowDefChanged = true;\n }\n /** Adds a footer row definition that was not included as part of the content children. */\n addFooterRowDef(footerRowDef) {\n this._customFooterRowDefs.add(footerRowDef);\n this._footerRowDefChanged = true;\n }\n /** Removes a footer row definition that was not included as part of the content children. */\n removeFooterRowDef(footerRowDef) {\n this._customFooterRowDefs.delete(footerRowDef);\n this._footerRowDefChanged = true;\n }\n /** Sets a no data row definition that was not included as a part of the content children. */\n setNoDataRow(noDataRow) {\n this._customNoDataRow = noDataRow;\n }\n /**\n * Updates the header sticky styles. First resets all applied styles with respect to the cells\n * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is\n * automatically called when the header row changes its displayed set of columns, or if its\n * sticky input changes. May be called manually for cases where the cell content changes outside\n * of these events.\n */\n updateStickyHeaderRowStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const tableElement = this._elementRef.nativeElement;\n // Hide the thead element if there are no header rows. This is necessary to satisfy\n // overzealous a11y checkers that fail because the `rowgroup` element does not contain\n // required child `row`.\n const thead = tableElement.querySelector('thead');\n if (thead) {\n thead.style.display = headerRows.length ? '' : 'none';\n }\n const stickyStates = this._headerRowDefs.map(def => def.sticky);\n this._stickyStyler.clearStickyPositioning(headerRows, ['top']);\n this._stickyStyler.stickRows(headerRows, stickyStates, 'top');\n // Reset the dirty state of the sticky input change since it has been used.\n this._headerRowDefs.forEach(def => def.resetStickyChanged());\n }\n /**\n * Updates the footer sticky styles. First resets all applied styles with respect to the cells\n * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is\n * automatically called when the footer row changes its displayed set of columns, or if its\n * sticky input changes. May be called manually for cases where the cell content changes outside\n * of these events.\n */\n updateStickyFooterRowStyles() {\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n const tableElement = this._elementRef.nativeElement;\n // Hide the tfoot element if there are no footer rows. This is necessary to satisfy\n // overzealous a11y checkers that fail because the `rowgroup` element does not contain\n // required child `row`.\n const tfoot = tableElement.querySelector('tfoot');\n if (tfoot) {\n tfoot.style.display = footerRows.length ? '' : 'none';\n }\n const stickyStates = this._footerRowDefs.map(def => def.sticky);\n this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']);\n this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom');\n this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates);\n // Reset the dirty state of the sticky input change since it has been used.\n this._footerRowDefs.forEach(def => def.resetStickyChanged());\n }\n /**\n * Updates the column sticky styles. First resets all applied styles with respect to the cells\n * sticking to the left and right. Then sticky styles are added for the left and right according\n * to the column definitions for each cell in each row. This is automatically called when\n * the data source provides a new set of data or when a column definition changes its sticky\n * input. May be called manually for cases where the cell content changes outside of these events.\n */\n updateStickyColumnStyles() {\n const headerRows = this._getRenderedRows(this._headerRowOutlet);\n const dataRows = this._getRenderedRows(this._rowOutlet);\n const footerRows = this._getRenderedRows(this._footerRowOutlet);\n // For tables not using a fixed layout, the column widths may change when new rows are rendered.\n // In a table using a fixed layout, row content won't affect column width, so sticky styles\n // don't need to be cleared unless either the sticky column config changes or one of the row\n // defs change.\n if ((this._isNativeHtmlTable && !this._fixedLayout) || this._stickyColumnStylesNeedReset) {\n // Clear the left and right positioning from all columns in the table across all rows since\n // sticky columns span across all table sections (header, data, footer)\n this._stickyStyler.clearStickyPositioning([...headerRows, ...dataRows, ...footerRows], ['left', 'right']);\n this._stickyColumnStylesNeedReset = false;\n }\n // Update the sticky styles for each header row depending on the def's sticky state\n headerRows.forEach((headerRow, i) => {\n this._addStickyColumnStyles([headerRow], this._headerRowDefs[i]);\n });\n // Update the sticky styles for each data row depending on its def's sticky state\n this._rowDefs.forEach(rowDef => {\n // Collect all the rows rendered with this row definition.\n const rows = [];\n for (let i = 0; i < dataRows.length; i++) {\n if (this._renderRows[i].rowDef === rowDef) {\n rows.push(dataRows[i]);\n }\n }\n this._addStickyColumnStyles(rows, rowDef);\n });\n // Update the sticky styles for each footer row depending on the def's sticky state\n footerRows.forEach((footerRow, i) => {\n this._addStickyColumnStyles([footerRow], this._footerRowDefs[i]);\n });\n // Reset the dirty state of the sticky input change since it has been used.\n Array.from(this._columnDefsByName.values()).forEach(def => def.resetStickyChanged());\n }\n /**\n * Get the list of RenderRow objects to render according to the current list of data and defined\n * row definitions. If the previous list already contained a particular pair, it should be reused\n * so that the differ equates their references.\n */\n _getAllRenderRows() {\n const renderRows = [];\n // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the\n // new cache while unused ones can be picked up by garbage collection.\n const prevCachedRenderRows = this._cachedRenderRowsMap;\n this._cachedRenderRowsMap = new Map();\n // For each data object, get the list of rows that should be rendered, represented by the\n // respective `RenderRow` object which is the pair of `data` and `CdkRowDef`.\n for (let i = 0; i < this._data.length; i++) {\n let data = this._data[i];\n const renderRowsForData = this._getRenderRowsForData(data, i, prevCachedRenderRows.get(data));\n if (!this._cachedRenderRowsMap.has(data)) {\n this._cachedRenderRowsMap.set(data, new WeakMap());\n }\n for (let j = 0; j < renderRowsForData.length; j++) {\n let renderRow = renderRowsForData[j];\n const cache = this._cachedRenderRowsMap.get(renderRow.data);\n if (cache.has(renderRow.rowDef)) {\n cache.get(renderRow.rowDef).push(renderRow);\n }\n else {\n cache.set(renderRow.rowDef, [renderRow]);\n }\n renderRows.push(renderRow);\n }\n }\n return renderRows;\n }\n /**\n * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that\n * should be rendered for this data. Reuses the cached RenderRow objects if they match the same\n * `(T, CdkRowDef)` pair.\n */\n _getRenderRowsForData(data, dataIndex, cache) {\n const rowDefs = this._getRowDefs(data, dataIndex);\n return rowDefs.map(rowDef => {\n const cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];\n if (cachedRenderRows.length) {\n const dataRow = cachedRenderRows.shift();\n dataRow.dataIndex = dataIndex;\n return dataRow;\n }\n else {\n return { data, rowDef, dataIndex };\n }\n });\n }\n /** Update the map containing the content's column definitions. */\n _cacheColumnDefs() {\n this._columnDefsByName.clear();\n const columnDefs = mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs), this._customColumnDefs);\n columnDefs.forEach(columnDef => {\n if (this._columnDefsByName.has(columnDef.name) &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableDuplicateColumnNameError(columnDef.name);\n }\n this._columnDefsByName.set(columnDef.name, columnDef);\n });\n }\n /** Update the list of all available row definitions that can be used. */\n _cacheRowDefs() {\n this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);\n this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);\n this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);\n // After all row definitions are determined, find the row definition to be considered default.\n const defaultRowDefs = this._rowDefs.filter(def => !def.when);\n if (!this.multiTemplateDataRows &&\n defaultRowDefs.length > 1 &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMultipleDefaultRowDefsError();\n }\n this._defaultRowDef = defaultRowDefs[0];\n }\n /**\n * Check if the header, data, or footer rows have changed what columns they want to display or\n * whether the sticky states have changed for the header or footer. If there is a diff, then\n * re-render that section.\n */\n _renderUpdatedColumns() {\n const columnsDiffReducer = (acc, def) => acc || !!def.getColumnsDiff();\n // Force re-render data rows if the list of column definitions have changed.\n const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);\n if (dataColumnsChanged) {\n this._forceRenderDataRows();\n }\n // Force re-render header/footer rows if the list of column definitions have changed.\n const headerColumnsChanged = this._headerRowDefs.reduce(columnsDiffReducer, false);\n if (headerColumnsChanged) {\n this._forceRenderHeaderRows();\n }\n const footerColumnsChanged = this._footerRowDefs.reduce(columnsDiffReducer, false);\n if (footerColumnsChanged) {\n this._forceRenderFooterRows();\n }\n return dataColumnsChanged || headerColumnsChanged || footerColumnsChanged;\n }\n /**\n * Switch to the provided data source by resetting the data and unsubscribing from the current\n * render change subscription if one exists. If the data source is null, interpret this by\n * clearing the row outlet. Otherwise start listening for new data.\n */\n _switchDataSource(dataSource) {\n this._data = [];\n if (isDataSource(this.dataSource)) {\n this.dataSource.disconnect(this);\n }\n // Stop listening for data from the previous data source.\n if (this._renderChangeSubscription) {\n this._renderChangeSubscription.unsubscribe();\n this._renderChangeSubscription = null;\n }\n if (!dataSource) {\n if (this._dataDiffer) {\n this._dataDiffer.diff([]);\n }\n this._rowOutlet.viewContainer.clear();\n }\n this._dataSource = dataSource;\n }\n /** Set up a subscription for the data provided by the data source. */\n _observeRenderChanges() {\n // If no data source has been set, there is nothing to observe for changes.\n if (!this.dataSource) {\n return;\n }\n let dataStream;\n if (isDataSource(this.dataSource)) {\n dataStream = this.dataSource.connect(this);\n }\n else if (isObservable(this.dataSource)) {\n dataStream = this.dataSource;\n }\n else if (Array.isArray(this.dataSource)) {\n dataStream = of(this.dataSource);\n }\n if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownDataSourceError();\n }\n this._renderChangeSubscription = dataStream\n .pipe(takeUntil(this._onDestroy))\n .subscribe(data => {\n this._data = data || [];\n this.renderRows();\n });\n }\n /**\n * Clears any existing content in the header row outlet and creates a new embedded view\n * in the outlet using the header row definition.\n */\n _forceRenderHeaderRows() {\n // Clear the header row outlet if any content exists.\n if (this._headerRowOutlet.viewContainer.length > 0) {\n this._headerRowOutlet.viewContainer.clear();\n }\n this._headerRowDefs.forEach((def, i) => this._renderRow(this._headerRowOutlet, def, i));\n this.updateStickyHeaderRowStyles();\n }\n /**\n * Clears any existing content in the footer row outlet and creates a new embedded view\n * in the outlet using the footer row definition.\n */\n _forceRenderFooterRows() {\n // Clear the footer row outlet if any content exists.\n if (this._footerRowOutlet.viewContainer.length > 0) {\n this._footerRowOutlet.viewContainer.clear();\n }\n this._footerRowDefs.forEach((def, i) => this._renderRow(this._footerRowOutlet, def, i));\n this.updateStickyFooterRowStyles();\n }\n /** Adds the sticky column styles for the rows according to the columns' stick states. */\n _addStickyColumnStyles(rows, rowDef) {\n const columnDefs = Array.from(rowDef.columns || []).map(columnName => {\n const columnDef = this._columnDefsByName.get(columnName);\n if (!columnDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownColumnError(columnName);\n }\n return columnDef;\n });\n const stickyStartStates = columnDefs.map(columnDef => columnDef.sticky);\n const stickyEndStates = columnDefs.map(columnDef => columnDef.stickyEnd);\n this._stickyStyler.updateStickyColumns(rows, stickyStartStates, stickyEndStates, !this._fixedLayout || this._forceRecalculateCellWidths);\n }\n /** Gets the list of rows that have been rendered in the row outlet. */\n _getRenderedRows(rowOutlet) {\n const renderedRows = [];\n for (let i = 0; i < rowOutlet.viewContainer.length; i++) {\n const viewRef = rowOutlet.viewContainer.get(i);\n renderedRows.push(viewRef.rootNodes[0]);\n }\n return renderedRows;\n }\n /**\n * Get the matching row definitions that should be used for this row data. If there is only\n * one row definition, it is returned. Otherwise, find the row definitions that has a when\n * predicate that returns true with the data. If none return true, return the default row\n * definition.\n */\n _getRowDefs(data, dataIndex) {\n if (this._rowDefs.length == 1) {\n return [this._rowDefs[0]];\n }\n let rowDefs = [];\n if (this.multiTemplateDataRows) {\n rowDefs = this._rowDefs.filter(def => !def.when || def.when(dataIndex, data));\n }\n else {\n let rowDef = this._rowDefs.find(def => def.when && def.when(dataIndex, data)) || this._defaultRowDef;\n if (rowDef) {\n rowDefs.push(rowDef);\n }\n }\n if (!rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMissingMatchingRowDefError(data);\n }\n return rowDefs;\n }\n _getEmbeddedViewArgs(renderRow, index) {\n const rowDef = renderRow.rowDef;\n const context = { $implicit: renderRow.data };\n return {\n templateRef: rowDef.template,\n context,\n index,\n };\n }\n /**\n * Creates a new row template in the outlet and fills it with the set of cell templates.\n * Optionally takes a context to provide to the row and cells, as well as an optional index\n * of where to place the new row template in the outlet.\n */\n _renderRow(outlet, rowDef, index, context = {}) {\n // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView\n const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);\n this._renderCellTemplateForItem(rowDef, context);\n return view;\n }\n _renderCellTemplateForItem(rowDef, context) {\n for (let cellTemplate of this._getCellTemplates(rowDef)) {\n if (CdkCellOutlet.mostRecentCellOutlet) {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);\n }\n }\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Updates the index-related context for each row to reflect any changes in the index of the rows,\n * e.g. first/last/even/odd.\n */\n _updateRowIndexContext() {\n const viewContainer = this._rowOutlet.viewContainer;\n for (let renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) {\n const viewRef = viewContainer.get(renderIndex);\n const context = viewRef.context;\n context.count = count;\n context.first = renderIndex === 0;\n context.last = renderIndex === count - 1;\n context.even = renderIndex % 2 === 0;\n context.odd = !context.even;\n if (this.multiTemplateDataRows) {\n context.dataIndex = this._renderRows[renderIndex].dataIndex;\n context.renderIndex = renderIndex;\n }\n else {\n context.index = this._renderRows[renderIndex].dataIndex;\n }\n }\n }\n /** Gets the column definitions for the provided row def. */\n _getCellTemplates(rowDef) {\n if (!rowDef || !rowDef.columns) {\n return [];\n }\n return Array.from(rowDef.columns, columnId => {\n const column = this._columnDefsByName.get(columnId);\n if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableUnknownColumnError(columnId);\n }\n return rowDef.extractCellTemplate(column);\n });\n }\n /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */\n _applyNativeTableSections() {\n const documentFragment = this._document.createDocumentFragment();\n const sections = [\n { tag: 'thead', outlets: [this._headerRowOutlet] },\n { tag: 'tbody', outlets: [this._rowOutlet, this._noDataRowOutlet] },\n { tag: 'tfoot', outlets: [this._footerRowOutlet] },\n ];\n for (const section of sections) {\n const element = this._document.createElement(section.tag);\n element.setAttribute('role', 'rowgroup');\n for (const outlet of section.outlets) {\n element.appendChild(outlet.elementRef.nativeElement);\n }\n documentFragment.appendChild(element);\n }\n // Use a DocumentFragment so we don't hit the DOM on each iteration.\n this._elementRef.nativeElement.appendChild(documentFragment);\n }\n /**\n * Forces a re-render of the data rows. Should be called in cases where there has been an input\n * change that affects the evaluation of which rows should be rendered, e.g. toggling\n * `multiTemplateDataRows` or adding/removing row definitions.\n */\n _forceRenderDataRows() {\n this._dataDiffer.diff([]);\n this._rowOutlet.viewContainer.clear();\n this.renderRows();\n }\n /**\n * Checks if there has been a change in sticky states since last check and applies the correct\n * sticky styles. Since checking resets the \"dirty\" state, this should only be performed once\n * during a change detection and after the inputs are settled (after content check).\n */\n _checkStickyStates() {\n const stickyCheckReducer = (acc, d) => {\n return acc || d.hasStickyChanged();\n };\n // Note that the check needs to occur for every definition since it notifies the definition\n // that it can reset its dirty state. Using another operator like `some` may short-circuit\n // remaining definitions and leave them in an unchecked state.\n if (this._headerRowDefs.reduce(stickyCheckReducer, false)) {\n this.updateStickyHeaderRowStyles();\n }\n if (this._footerRowDefs.reduce(stickyCheckReducer, false)) {\n this.updateStickyFooterRowStyles();\n }\n if (Array.from(this._columnDefsByName.values()).reduce(stickyCheckReducer, false)) {\n this._stickyColumnStylesNeedReset = true;\n this.updateStickyColumnStyles();\n }\n }\n /**\n * Creates the sticky styler that will be used for sticky rows and columns. Listens\n * for directionality changes and provides the latest direction to the styler. Re-applies column\n * stickiness when directionality changes.\n */\n _setupStickyStyler() {\n const direction = this._dir ? this._dir.value : 'ltr';\n this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement, this._stickyPositioningListener);\n (this._dir ? this._dir.change : of())\n .pipe(takeUntil(this._onDestroy))\n .subscribe(value => {\n this._stickyStyler.direction = value;\n this.updateStickyColumnStyles();\n });\n }\n /** Filters definitions that belong to this table from a QueryList. */\n _getOwnDefs(items) {\n return items.filter(item => !item._table || item._table === this);\n }\n /** Creates or removes the no data row, depending on whether any data is being shown. */\n _updateNoDataRow() {\n const noDataRow = this._customNoDataRow || this._noDataRow;\n if (!noDataRow) {\n return;\n }\n const shouldShow = this._rowOutlet.viewContainer.length === 0;\n if (shouldShow === this._isShowingNoDataRow) {\n return;\n }\n const container = this._noDataRowOutlet.viewContainer;\n if (shouldShow) {\n const view = container.createEmbeddedView(noDataRow.templateRef);\n const rootNode = view.rootNodes[0];\n // Only add the attributes if we have a single root node since it's hard\n // to figure out which one to add it to when there are multiple.\n if (view.rootNodes.length === 1 && (rootNode === null || rootNode === void 0 ? void 0 : rootNode.nodeType) === this._document.ELEMENT_NODE) {\n rootNode.setAttribute('role', 'row');\n rootNode.classList.add(noDataRow._contentClassName);\n }\n }\n else {\n container.clear();\n }\n this._isShowingNoDataRow = shouldShow;\n }\n}\nCdkTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTable, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: 'role', attribute: true }, { token: i1.Directionality, optional: true }, { token: DOCUMENT }, { token: i2.Platform }, { token: _VIEW_REPEATER_STRATEGY }, { token: _COALESCED_STYLE_SCHEDULER }, { token: i3.ViewportRuler }, { token: STICKY_POSITIONING_LISTENER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTable, selector: \"cdk-table, table[cdk-table]\", inputs: { trackBy: \"trackBy\", dataSource: \"dataSource\", multiTemplateDataRows: \"multiTemplateDataRows\", fixedLayout: \"fixedLayout\" }, outputs: { contentChanged: \"contentChanged\" }, host: { properties: { \"class.cdk-table-fixed-layout\": \"fixedLayout\" }, classAttribute: \"cdk-table\" }, providers: [\n { provide: CDK_TABLE, useExisting: CdkTable },\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], queries: [{ propertyName: \"_noDataRow\", first: true, predicate: CdkNoDataRow, descendants: true }, { propertyName: \"_contentColumnDefs\", predicate: CdkColumnDef, descendants: true }, { propertyName: \"_contentRowDefs\", predicate: CdkRowDef, descendants: true }, { propertyName: \"_contentHeaderRowDefs\", predicate: CdkHeaderRowDef, descendants: true }, { propertyName: \"_contentFooterRowDefs\", predicate: CdkFooterRowDef, descendants: true }], viewQueries: [{ propertyName: \"_rowOutlet\", first: true, predicate: DataRowOutlet, descendants: true, static: true }, { propertyName: \"_headerRowOutlet\", first: true, predicate: HeaderRowOutlet, descendants: true, static: true }, { propertyName: \"_footerRowOutlet\", first: true, predicate: FooterRowOutlet, descendants: true, static: true }, { propertyName: \"_noDataRowOutlet\", first: true, predicate: NoDataRowOutlet, descendants: true, static: true }], exportAs: [\"cdkTable\"], ngImport: i0, template: \"\\n <ng-content select=\\\"caption\\\"></ng-content>\\n <ng-content select=\\\"colgroup, col\\\"></ng-content>\\n <ng-container headerRowOutlet></ng-container>\\n <ng-container rowOutlet></ng-container>\\n <ng-container noDataRowOutlet></ng-container>\\n <ng-container footerRowOutlet></ng-container>\\n\", isInline: true, styles: [\".cdk-table-fixed-layout{table-layout:fixed}\\n\"], directives: [{ type: HeaderRowOutlet, selector: \"[headerRowOutlet]\" }, { type: DataRowOutlet, selector: \"[rowOutlet]\" }, { type: NoDataRowOutlet, selector: \"[noDataRowOutlet]\" }, { type: FooterRowOutlet, selector: \"[footerRowOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTable, decorators: [{\n type: Component,\n args: [{ selector: 'cdk-table, table[cdk-table]', exportAs: 'cdkTable', template: CDK_TABLE_TEMPLATE, host: {\n 'class': 'cdk-table',\n '[class.cdk-table-fixed-layout]': 'fixedLayout',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [\n { provide: CDK_TABLE, useExisting: CdkTable },\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], styles: [\".cdk-table-fixed-layout{table-layout:fixed}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['role']\n }] }, { type: i1.Directionality, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: i2.Platform }, { type: undefined, decorators: [{\n type: Inject,\n args: [_VIEW_REPEATER_STRATEGY]\n }] }, { type: _CoalescedStyleScheduler, decorators: [{\n type: Inject,\n args: [_COALESCED_STYLE_SCHEDULER]\n }] }, { type: i3.ViewportRuler }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }, {\n type: Inject,\n args: [STICKY_POSITIONING_LISTENER]\n }] }];\n }, propDecorators: { trackBy: [{\n type: Input\n }], dataSource: [{\n type: Input\n }], multiTemplateDataRows: [{\n type: Input\n }], fixedLayout: [{\n type: Input\n }], contentChanged: [{\n type: Output\n }], _rowOutlet: [{\n type: ViewChild,\n args: [DataRowOutlet, { static: true }]\n }], _headerRowOutlet: [{\n type: ViewChild,\n args: [HeaderRowOutlet, { static: true }]\n }], _footerRowOutlet: [{\n type: ViewChild,\n args: [FooterRowOutlet, { static: true }]\n }], _noDataRowOutlet: [{\n type: ViewChild,\n args: [NoDataRowOutlet, { static: true }]\n }], _contentColumnDefs: [{\n type: ContentChildren,\n args: [CdkColumnDef, { descendants: true }]\n }], _contentRowDefs: [{\n type: ContentChildren,\n args: [CdkRowDef, { descendants: true }]\n }], _contentHeaderRowDefs: [{\n type: ContentChildren,\n args: [CdkHeaderRowDef, {\n descendants: true,\n }]\n }], _contentFooterRowDefs: [{\n type: ContentChildren,\n args: [CdkFooterRowDef, {\n descendants: true,\n }]\n }], _noDataRow: [{\n type: ContentChild,\n args: [CdkNoDataRow]\n }] } });\n/** Utility function that gets a merged list of the entries in an array and values of a Set. */\nfunction mergeArrayAndSet(array, set) {\n return array.concat(Array.from(set));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the header text and data property accessor.\n * The header text can be overridden with the `headerText` input. Cell values can be overridden with\n * the `dataAccessor` input. Change the text justification to the start or end using the `justify`\n * input.\n */\nclass CdkTextColumn {\n constructor(\n // `CdkTextColumn` is always requiring a table, but we just assert it manually\n // for better error reporting.\n // tslint:disable-next-line: lightweight-tokens\n _table, _options) {\n this._table = _table;\n this._options = _options;\n /** Alignment of the cell values. */\n this.justify = 'start';\n this._options = _options || {};\n }\n /** Column name that should be used to reference this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._name = name;\n // With Ivy, inputs can be initialized before static query results are\n // available. In that case, we defer the synchronization until \"ngOnInit\" fires.\n this._syncColumnDefName();\n }\n ngOnInit() {\n this._syncColumnDefName();\n if (this.headerText === undefined) {\n this.headerText = this._createDefaultHeaderText();\n }\n if (!this.dataAccessor) {\n this.dataAccessor =\n this._options.defaultDataAccessor || ((data, name) => data[name]);\n }\n if (this._table) {\n // Provide the cell and headerCell directly to the table with the static `ViewChild` query,\n // since the columnDef will not pick up its content by the time the table finishes checking\n // its content and initializing the rows.\n this.columnDef.cell = this.cell;\n this.columnDef.headerCell = this.headerCell;\n this._table.addColumnDef(this.columnDef);\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw getTableTextColumnMissingParentTableError();\n }\n }\n ngOnDestroy() {\n if (this._table) {\n this._table.removeColumnDef(this.columnDef);\n }\n }\n /**\n * Creates a default header text. Use the options' header text transformation function if one\n * has been provided. Otherwise simply capitalize the column name.\n */\n _createDefaultHeaderText() {\n const name = this.name;\n if (!name && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableTextColumnMissingNameError();\n }\n if (this._options && this._options.defaultHeaderTextTransform) {\n return this._options.defaultHeaderTextTransform(name);\n }\n return name[0].toUpperCase() + name.slice(1);\n }\n /** Synchronizes the column definition name with the text column name. */\n _syncColumnDefName() {\n if (this.columnDef) {\n this.columnDef.name = this.name;\n }\n }\n}\nCdkTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTextColumn, deps: [{ token: CdkTable, optional: true }, { token: TEXT_COLUMN_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nCdkTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTextColumn, selector: \"cdk-text-column\", inputs: { name: \"name\", headerText: \"headerText\", dataAccessor: \"dataAccessor\", justify: \"justify\" }, viewQueries: [{ propertyName: \"columnDef\", first: true, predicate: CdkColumnDef, descendants: true, static: true }, { propertyName: \"cell\", first: true, predicate: CdkCellDef, descendants: true, static: true }, { propertyName: \"headerCell\", first: true, predicate: CdkHeaderCellDef, descendants: true, static: true }], ngImport: i0, template: `\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n `, isInline: true, directives: [{ type: CdkColumnDef, selector: \"[cdkColumnDef]\", inputs: [\"sticky\", \"cdkColumnDef\", \"stickyEnd\"] }, { type: CdkHeaderCellDef, selector: \"[cdkHeaderCellDef]\" }, { type: CdkHeaderCell, selector: \"cdk-header-cell, th[cdk-header-cell]\" }, { type: CdkCellDef, selector: \"[cdkCellDef]\" }, { type: CdkCell, selector: \"cdk-cell, td[cdk-cell]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTextColumn, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-text-column',\n template: `\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n `,\n encapsulation: ViewEncapsulation.None,\n // Change detection is intentionally not set to OnPush. This component's template will be provided\n // to the table to be inserted into its view. This is problematic when change detection runs since\n // the bindings in this template will be evaluated _after_ the table's view is evaluated, which\n // mean's the template in the table's view will not have the updated value (and in fact will cause\n // an ExpressionChangedAfterItHasBeenCheckedError).\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n }]\n }], ctorParameters: function () {\n return [{ type: CdkTable, decorators: [{\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [TEXT_COLUMN_OPTIONS]\n }] }];\n }, propDecorators: { name: [{\n type: Input\n }], headerText: [{\n type: Input\n }], dataAccessor: [{\n type: Input\n }], justify: [{\n type: Input\n }], columnDef: [{\n type: ViewChild,\n args: [CdkColumnDef, { static: true }]\n }], cell: [{\n type: ViewChild,\n args: [CdkCellDef, { static: true }]\n }], headerCell: [{\n type: ViewChild,\n args: [CdkHeaderCellDef, { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet,\n];\nclass CdkTableModule {\n}\nCdkTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTableModule, declarations: [CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet], imports: [ScrollingModule], exports: [CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkFooterCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkFooterCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n CdkFooterRow,\n CdkFooterRowDef,\n DataRowOutlet,\n HeaderRowOutlet,\n FooterRowOutlet,\n CdkTextColumn,\n CdkNoDataRow,\n CdkRecycleRows,\n NoDataRowOutlet] });\nCdkTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTableModule, imports: [[ScrollingModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTableModule, decorators: [{\n type: NgModule,\n args: [{\n exports: EXPORTED_DECLARATIONS,\n declarations: EXPORTED_DECLARATIONS,\n imports: [ScrollingModule],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseCdkCell, BaseRowDef, CDK_ROW_TEMPLATE, CDK_TABLE, CDK_TABLE_TEMPLATE, CdkCell, CdkCellDef, CdkCellOutlet, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkFooterRow, CdkFooterRowDef, CdkHeaderCell, CdkHeaderCellDef, CdkHeaderRow, CdkHeaderRowDef, CdkNoDataRow, CdkRecycleRows, CdkRow, CdkRowDef, CdkTable, CdkTableModule, CdkTextColumn, DataRowOutlet, FooterRowOutlet, HeaderRowOutlet, NoDataRowOutlet, STICKY_DIRECTIONS, STICKY_POSITIONING_LISTENER, StickyStyler, TEXT_COLUMN_OPTIONS, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, _Schedule, mixinHasStickyInput };\n","import * as i0 from '@angular/core';\nimport { Directive, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';\nimport * as i1 from '@angular/cdk/table';\nimport { CdkTable, CDK_TABLE, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, STICKY_POSITIONING_LISTENER, CDK_TABLE_TEMPLATE, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkHeaderCell, CdkFooterCell, CdkCell, CdkHeaderRowDef, CdkFooterRowDef, CdkRowDef, CdkHeaderRow, CDK_ROW_TEMPLATE, CdkFooterRow, CdkRow, CdkNoDataRow, CdkTextColumn, CdkTableModule, DataSource } from '@angular/cdk/table';\nimport { _VIEW_REPEATER_STRATEGY, _RecycleViewRepeaterStrategy, _DisposeViewRepeaterStrategy } from '@angular/cdk/collections';\nimport { MatCommonModule } from '@angular/material/core';\nimport { _isNumberValue } from '@angular/cdk/coercion';\nimport { BehaviorSubject, Subject, merge, of, combineLatest } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Enables the recycle view repeater strategy, which reduces rendering latency. Not compatible with\n * tables that animate rows.\n */\nclass MatRecycleRows {\n}\nMatRecycleRows.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRecycleRows, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatRecycleRows.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRecycleRows, selector: \"mat-table[recycleRows], table[mat-table][recycleRows]\", providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRecycleRows, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-table[recycleRows], table[mat-table][recycleRows]',\n providers: [{ provide: _VIEW_REPEATER_STRATEGY, useClass: _RecycleViewRepeaterStrategy }],\n }]\n }] });\n/**\n * Wrapper for the CdkTable with Material design styles.\n */\nclass MatTable extends CdkTable {\n constructor() {\n super(...arguments);\n /** Overrides the sticky CSS class set by the `CdkTable`. */\n this.stickyCssClass = 'mat-table-sticky';\n /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */\n this.needsPositionStickyOnElement = false;\n }\n}\nMatTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTable, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatTable.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTable, selector: \"mat-table, table[mat-table]\", host: { properties: { \"class.mat-table-fixed-layout\": \"fixedLayout\" }, classAttribute: \"mat-table\" }, providers: [\n // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code\n // is only included in the build if used.\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: CdkTable, useExisting: MatTable },\n { provide: CDK_TABLE, useExisting: MatTable },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], exportAs: [\"matTable\"], usesInheritance: true, ngImport: i0, template: \"\\n <ng-content select=\\\"caption\\\"></ng-content>\\n <ng-content select=\\\"colgroup, col\\\"></ng-content>\\n <ng-container headerRowOutlet></ng-container>\\n <ng-container rowOutlet></ng-container>\\n <ng-container noDataRowOutlet></ng-container>\\n <ng-container footerRowOutlet></ng-container>\\n\", isInline: true, styles: [\"mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\\\"\\\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\\n\"], directives: [{ type: i1.HeaderRowOutlet, selector: \"[headerRowOutlet]\" }, { type: i1.DataRowOutlet, selector: \"[rowOutlet]\" }, { type: i1.NoDataRowOutlet, selector: \"[noDataRowOutlet]\" }, { type: i1.FooterRowOutlet, selector: \"[footerRowOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTable, decorators: [{\n type: Component,\n args: [{ selector: 'mat-table, table[mat-table]', exportAs: 'matTable', template: CDK_TABLE_TEMPLATE, host: {\n 'class': 'mat-table',\n '[class.mat-table-fixed-layout]': 'fixedLayout',\n }, providers: [\n // TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code\n // is only included in the build if used.\n { provide: _VIEW_REPEATER_STRATEGY, useClass: _DisposeViewRepeaterStrategy },\n { provide: CdkTable, useExisting: MatTable },\n { provide: CDK_TABLE, useExisting: MatTable },\n { provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },\n // Prevent nested tables from seeing this table's StickyPositioningListener.\n { provide: STICKY_POSITIONING_LISTENER, useValue: null },\n ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, styles: [\"mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\\\"\\\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\\n\"] }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Cell definition for the mat-table.\n * Captures the template of a column's data row cell as well as cell-specific properties.\n */\nclass MatCellDef extends CdkCellDef {\n}\nMatCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCellDef, selector: \"[matCellDef]\", providers: [{ provide: CdkCellDef, useExisting: MatCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matCellDef]',\n providers: [{ provide: CdkCellDef, useExisting: MatCellDef }],\n }]\n }] });\n/**\n * Header cell definition for the mat-table.\n * Captures the template of a column's header cell and as well as cell-specific properties.\n */\nclass MatHeaderCellDef extends CdkHeaderCellDef {\n}\nMatHeaderCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHeaderCellDef, selector: \"[matHeaderCellDef]\", providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matHeaderCellDef]',\n providers: [{ provide: CdkHeaderCellDef, useExisting: MatHeaderCellDef }],\n }]\n }] });\n/**\n * Footer cell definition for the mat-table.\n * Captures the template of a column's footer cell and as well as cell-specific properties.\n */\nclass MatFooterCellDef extends CdkFooterCellDef {\n}\nMatFooterCellDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterCellDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterCellDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFooterCellDef, selector: \"[matFooterCellDef]\", providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterCellDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matFooterCellDef]',\n providers: [{ provide: CdkFooterCellDef, useExisting: MatFooterCellDef }],\n }]\n }] });\n/**\n * Column definition for the mat-table.\n * Defines a set of cells available for a table column.\n */\nclass MatColumnDef extends CdkColumnDef {\n /** Unique name for this column. */\n get name() {\n return this._name;\n }\n set name(name) {\n this._setNameInput(name);\n }\n /**\n * Add \"mat-column-\" prefix in addition to \"cdk-column-\" prefix.\n * In the future, this will only add \"mat-column-\" and columnCssClassName\n * will change from type string[] to string.\n * @docs-private\n */\n _updateColumnCssClassName() {\n super._updateColumnCssClassName();\n this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`);\n }\n}\nMatColumnDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatColumnDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatColumnDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatColumnDef, selector: \"[matColumnDef]\", inputs: { sticky: \"sticky\", name: [\"matColumnDef\", \"name\"] }, providers: [\n { provide: CdkColumnDef, useExisting: MatColumnDef },\n { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },\n ], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatColumnDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matColumnDef]',\n inputs: ['sticky'],\n providers: [\n { provide: CdkColumnDef, useExisting: MatColumnDef },\n { provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: MatColumnDef },\n ],\n }]\n }], propDecorators: { name: [{\n type: Input,\n args: ['matColumnDef']\n }] } });\n/** Header cell template container that adds the right classes and role. */\nclass MatHeaderCell extends CdkHeaderCell {\n}\nMatHeaderCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHeaderCell, selector: \"mat-header-cell, th[mat-header-cell]\", host: { attributes: { \"role\": \"columnheader\" }, classAttribute: \"mat-header-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-header-cell, th[mat-header-cell]',\n host: {\n 'class': 'mat-header-cell',\n 'role': 'columnheader',\n },\n }]\n }] });\n/** Footer cell template container that adds the right classes and role. */\nclass MatFooterCell extends CdkFooterCell {\n}\nMatFooterCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFooterCell, selector: \"mat-footer-cell, td[mat-footer-cell]\", host: { attributes: { \"role\": \"gridcell\" }, classAttribute: \"mat-footer-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-footer-cell, td[mat-footer-cell]',\n host: {\n 'class': 'mat-footer-cell',\n 'role': 'gridcell',\n },\n }]\n }] });\n/** Cell template container that adds the right classes and role. */\nclass MatCell extends CdkCell {\n}\nMatCell.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCell, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatCell.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatCell, selector: \"mat-cell, td[mat-cell]\", host: { attributes: { \"role\": \"gridcell\" }, classAttribute: \"mat-cell\" }, usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatCell, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-cell, td[mat-cell]',\n host: {\n 'class': 'mat-cell',\n 'role': 'gridcell',\n },\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Header row definition for the mat-table.\n * Captures the header row's template and other header properties such as the columns to display.\n */\nclass MatHeaderRowDef extends CdkHeaderRowDef {\n}\nMatHeaderRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatHeaderRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHeaderRowDef, selector: \"[matHeaderRowDef]\", inputs: { columns: [\"matHeaderRowDef\", \"columns\"], sticky: [\"matHeaderRowDefSticky\", \"sticky\"] }, providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matHeaderRowDef]',\n providers: [{ provide: CdkHeaderRowDef, useExisting: MatHeaderRowDef }],\n inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky'],\n }]\n }] });\n/**\n * Footer row definition for the mat-table.\n * Captures the footer row's template and other footer properties such as the columns to display.\n */\nclass MatFooterRowDef extends CdkFooterRowDef {\n}\nMatFooterRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatFooterRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFooterRowDef, selector: \"[matFooterRowDef]\", inputs: { columns: [\"matFooterRowDef\", \"columns\"], sticky: [\"matFooterRowDefSticky\", \"sticky\"] }, providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matFooterRowDef]',\n providers: [{ provide: CdkFooterRowDef, useExisting: MatFooterRowDef }],\n inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky'],\n }]\n }] });\n/**\n * Data row definition for the mat-table.\n * Captures the data row's template and other properties such as the columns to display and\n * a when predicate that describes when this row should be used.\n */\nclass MatRowDef extends CdkRowDef {\n}\nMatRowDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRowDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatRowDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRowDef, selector: \"[matRowDef]\", inputs: { columns: [\"matRowDefColumns\", \"columns\"], when: [\"matRowDefWhen\", \"when\"] }, providers: [{ provide: CdkRowDef, useExisting: MatRowDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRowDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matRowDef]',\n providers: [{ provide: CdkRowDef, useExisting: MatRowDef }],\n inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen'],\n }]\n }] });\n/** Header template container that contains the cell outlet. Adds the right class and role. */\nclass MatHeaderRow extends CdkHeaderRow {\n}\nMatHeaderRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatHeaderRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatHeaderRow, selector: \"mat-header-row, tr[mat-header-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-header-row\" }, providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }], exportAs: [\"matHeaderRow\"], usesInheritance: true, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatHeaderRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-header-row, tr[mat-header-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-header-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matHeaderRow',\n providers: [{ provide: CdkHeaderRow, useExisting: MatHeaderRow }],\n }]\n }] });\n/** Footer template container that contains the cell outlet. Adds the right class and role. */\nclass MatFooterRow extends CdkFooterRow {\n}\nMatFooterRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatFooterRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatFooterRow, selector: \"mat-footer-row, tr[mat-footer-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-footer-row\" }, providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }], exportAs: [\"matFooterRow\"], usesInheritance: true, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatFooterRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-footer-row, tr[mat-footer-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-footer-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matFooterRow',\n providers: [{ provide: CdkFooterRow, useExisting: MatFooterRow }],\n }]\n }] });\n/** Data row template container that contains the cell outlet. Adds the right class and role. */\nclass MatRow extends CdkRow {\n}\nMatRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRow, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatRow.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatRow, selector: \"mat-row, tr[mat-row]\", host: { attributes: { \"role\": \"row\" }, classAttribute: \"mat-row\" }, providers: [{ provide: CdkRow, useExisting: MatRow }], exportAs: [\"matRow\"], usesInheritance: true, ngImport: i0, template: \"<ng-container cdkCellOutlet></ng-container>\", isInline: true, directives: [{ type: i1.CdkCellOutlet, selector: \"[cdkCellOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatRow, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-row, tr[mat-row]',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'mat-row',\n 'role': 'row',\n },\n // See note on CdkTable for explanation on why this uses the default change detection strategy.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'matRow',\n providers: [{ provide: CdkRow, useExisting: MatRow }],\n }]\n }] });\n/** Row that can be used to display a message when no data is shown in the table. */\nclass MatNoDataRow extends CdkNoDataRow {\n constructor() {\n super(...arguments);\n this._contentClassName = 'mat-no-data-row';\n }\n}\nMatNoDataRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNoDataRow, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatNoDataRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatNoDataRow, selector: \"ng-template[matNoDataRow]\", providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNoDataRow, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matNoDataRow]',\n providers: [{ provide: CdkNoDataRow, useExisting: MatNoDataRow }],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Column that simply shows text content for the header and row cells. Assumes that the table\n * is using the native table implementation (`<table>`).\n *\n * By default, the name of this column will be the header text and data property accessor.\n * The header text can be overridden with the `headerText` input. Cell values can be overridden with\n * the `dataAccessor` input. Change the text justification to the start or end using the `justify`\n * input.\n */\nclass MatTextColumn extends CdkTextColumn {\n}\nMatTextColumn.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTextColumn, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatTextColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTextColumn, selector: \"mat-text-column\", usesInheritance: true, ngImport: i0, template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td mat-cell *matCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n `, isInline: true, directives: [{ type: MatColumnDef, selector: \"[matColumnDef]\", inputs: [\"sticky\", \"matColumnDef\"] }, { type: MatHeaderCellDef, selector: \"[matHeaderCellDef]\" }, { type: MatHeaderCell, selector: \"mat-header-cell, th[mat-header-cell]\" }, { type: MatCellDef, selector: \"[matCellDef]\" }, { type: MatCell, selector: \"mat-cell, td[mat-cell]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTextColumn, decorators: [{\n type: Component,\n args: [{\n selector: 'mat-text-column',\n template: `\n <ng-container matColumnDef>\n <th mat-header-cell *matHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td mat-cell *matCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n `,\n encapsulation: ViewEncapsulation.None,\n // Change detection is intentionally not set to OnPush. This component's template will be provided\n // to the table to be inserted into its view. This is problematic when change detection runs since\n // the bindings in this template will be evaluated _after_ the table's view is evaluated, which\n // mean's the template in the table's view will not have the updated value (and in fact will cause\n // an ExpressionChangedAfterItHasBeenCheckedError).\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn,\n];\nclass MatTableModule {\n}\nMatTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTableModule, declarations: [\n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn\n ], imports: [CdkTableModule, MatCommonModule], exports: [MatCommonModule,\n // Table\n MatTable,\n MatRecycleRows,\n // Template defs\n MatHeaderCellDef,\n MatHeaderRowDef,\n MatColumnDef,\n MatCellDef,\n MatRowDef,\n MatFooterCellDef,\n MatFooterRowDef,\n // Cell directives\n MatHeaderCell,\n MatCell,\n MatFooterCell,\n // Row directives\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatNoDataRow,\n MatTextColumn] });\nMatTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTableModule, imports: [[CdkTableModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTableModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CdkTableModule, MatCommonModule],\n exports: [MatCommonModule, EXPORTED_DECLARATIONS],\n declarations: EXPORTED_DECLARATIONS,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to\n * flaky browser support and the value not being defined in Closure's typings.\n */\nconst MAX_SAFE_INTEGER = 9007199254740991;\n/** Shared base class with MDC-based implementation. */\nclass _MatTableDataSource extends DataSource {\n constructor(initialData = []) {\n super();\n /** Stream emitting render data to the table (depends on ordered data changes). */\n this._renderData = new BehaviorSubject([]);\n /** Stream that emits when a new filter string is set on the data source. */\n this._filter = new BehaviorSubject('');\n /** Used to react to internal changes of the paginator that are made by the data source itself. */\n this._internalPageChanges = new Subject();\n /**\n * Subscription to the changes that should trigger an update to the table's rendered rows, such\n * as filtering, sorting, pagination, or base data changes.\n */\n this._renderChangesSubscription = null;\n /**\n * Data accessor function that is used for accessing data properties for sorting through\n * the default sortData function.\n * This default function assumes that the sort header IDs (which defaults to the column name)\n * matches the data's properties (e.g. column Xyz represents data['Xyz']).\n * May be set to a custom function for different behavior.\n * @param data Data object that is being accessed.\n * @param sortHeaderId The name of the column that represents the data.\n */\n this.sortingDataAccessor = (data, sortHeaderId) => {\n const value = data[sortHeaderId];\n if (_isNumberValue(value)) {\n const numberValue = Number(value);\n // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we\n // leave them as strings. For more info: https://goo.gl/y5vbSg\n return numberValue < MAX_SAFE_INTEGER ? numberValue : value;\n }\n return value;\n };\n /**\n * Gets a sorted copy of the data array based on the state of the MatSort. Called\n * after changes are made to the filtered data or when sort changes are emitted from MatSort.\n * By default, the function retrieves the active sort and its direction and compares data\n * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation\n * of data ordering.\n * @param data The array of data that should be sorted.\n * @param sort The connected MatSort that holds the current sort state.\n */\n this.sortData = (data, sort) => {\n const active = sort.active;\n const direction = sort.direction;\n if (!active || direction == '') {\n return data;\n }\n return data.sort((a, b) => {\n let valueA = this.sortingDataAccessor(a, active);\n let valueB = this.sortingDataAccessor(b, active);\n // If there are data in the column that can be converted to a number,\n // it must be ensured that the rest of the data\n // is of the same type so as not to order incorrectly.\n const valueAType = typeof valueA;\n const valueBType = typeof valueB;\n if (valueAType !== valueBType) {\n if (valueAType === 'number') {\n valueA += '';\n }\n if (valueBType === 'number') {\n valueB += '';\n }\n }\n // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if\n // one value exists while the other doesn't. In this case, existing value should come last.\n // This avoids inconsistent results when comparing values to undefined/null.\n // If neither value exists, return 0 (equal).\n let comparatorResult = 0;\n if (valueA != null && valueB != null) {\n // Check if one value is greater than the other; if equal, comparatorResult should remain 0.\n if (valueA > valueB) {\n comparatorResult = 1;\n }\n else if (valueA < valueB) {\n comparatorResult = -1;\n }\n }\n else if (valueA != null) {\n comparatorResult = 1;\n }\n else if (valueB != null) {\n comparatorResult = -1;\n }\n return comparatorResult * (direction == 'asc' ? 1 : -1);\n });\n };\n /**\n * Checks if a data object matches the data source's filter string. By default, each data object\n * is converted to a string of its properties and returns true if the filter has\n * at least one occurrence in that string. By default, the filter string has its whitespace\n * trimmed and the match is case-insensitive. May be overridden for a custom implementation of\n * filter matching.\n * @param data Data object used to check against the filter.\n * @param filter Filter string that has been set on the data source.\n * @returns Whether the filter matches against the data\n */\n this.filterPredicate = (data, filter) => {\n // Transform the data into a lowercase string of all property values.\n const dataStr = Object.keys(data)\n .reduce((currentTerm, key) => {\n // Use an obscure Unicode character to delimit the words in the concatenated string.\n // This avoids matches where the values of two columns combined will match the user's query\n // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something\n // that has a very low chance of being typed in by somebody in a text field. This one in\n // particular is \"White up-pointing triangle with dot\" from\n // https://en.wikipedia.org/wiki/List_of_Unicode_characters\n return currentTerm + data[key] + '◬';\n }, '')\n .toLowerCase();\n // Transform the filter by converting it to lowercase and removing whitespace.\n const transformedFilter = filter.trim().toLowerCase();\n return dataStr.indexOf(transformedFilter) != -1;\n };\n this._data = new BehaviorSubject(initialData);\n this._updateChangeSubscription();\n }\n /** Array of data that should be rendered by the table, where each object represents one row. */\n get data() {\n return this._data.value;\n }\n set data(data) {\n this._data.next(data);\n // Normally the `filteredData` is updated by the re-render\n // subscription, but that won't happen if it's inactive.\n if (!this._renderChangesSubscription) {\n this._filterData(data);\n }\n }\n /**\n * Filter term that should be used to filter out objects from the data array. To override how\n * data objects match to this filter string, provide a custom function for filterPredicate.\n */\n get filter() {\n return this._filter.value;\n }\n set filter(filter) {\n this._filter.next(filter);\n // Normally the `filteredData` is updated by the re-render\n // subscription, but that won't happen if it's inactive.\n if (!this._renderChangesSubscription) {\n this._filterData(this.data);\n }\n }\n /**\n * Instance of the MatSort directive used by the table to control its sorting. Sort changes\n * emitted by the MatSort will trigger an update to the table's rendered data.\n */\n get sort() {\n return this._sort;\n }\n set sort(sort) {\n this._sort = sort;\n this._updateChangeSubscription();\n }\n /**\n * Instance of the MatPaginator component used by the table to control what page of the data is\n * displayed. Page changes emitted by the MatPaginator will trigger an update to the\n * table's rendered data.\n *\n * Note that the data source uses the paginator's properties to calculate which page of data\n * should be displayed. If the paginator receives its properties as template inputs,\n * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been\n * initialized before assigning it to this data source.\n */\n get paginator() {\n return this._paginator;\n }\n set paginator(paginator) {\n this._paginator = paginator;\n this._updateChangeSubscription();\n }\n /**\n * Subscribe to changes that should trigger an update to the table's rendered rows. When the\n * changes occur, process the current state of the filter, sort, and pagination along with\n * the provided base data and send it to the table for rendering.\n */\n _updateChangeSubscription() {\n var _a;\n // Sorting and/or pagination should be watched if MatSort and/or MatPaginator are provided.\n // The events should emit whenever the component emits a change or initializes, or if no\n // component is provided, a stream with just a null event should be provided.\n // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the\n // pipeline can progress to the next step. Note that the value from these streams are not used,\n // they purely act as a signal to progress in the pipeline.\n const sortChange = this._sort\n ? merge(this._sort.sortChange, this._sort.initialized)\n : of(null);\n const pageChange = this._paginator\n ? merge(this._paginator.page, this._internalPageChanges, this._paginator.initialized)\n : of(null);\n const dataStream = this._data;\n // Watch for base data or filter changes to provide a filtered set of data.\n const filteredData = combineLatest([dataStream, this._filter]).pipe(map(([data]) => this._filterData(data)));\n // Watch for filtered data or sort changes to provide an ordered set of data.\n const orderedData = combineLatest([filteredData, sortChange]).pipe(map(([data]) => this._orderData(data)));\n // Watch for ordered data or page changes to provide a paged set of data.\n const paginatedData = combineLatest([orderedData, pageChange]).pipe(map(([data]) => this._pageData(data)));\n // Watched for paged data changes and send the result to the table to render.\n (_a = this._renderChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n this._renderChangesSubscription = paginatedData.subscribe(data => this._renderData.next(data));\n }\n /**\n * Returns a filtered data array where each filter object contains the filter string within\n * the result of the filterTermAccessor function. If no filter is set, returns the data array\n * as provided.\n */\n _filterData(data) {\n // If there is a filter string, filter out data that does not contain it.\n // Each data object is converted to a string using the function defined by filterTermAccessor.\n // May be overridden for customization.\n this.filteredData =\n this.filter == null || this.filter === ''\n ? data\n : data.filter(obj => this.filterPredicate(obj, this.filter));\n if (this.paginator) {\n this._updatePaginator(this.filteredData.length);\n }\n return this.filteredData;\n }\n /**\n * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the\n * data array as provided. Uses the default data accessor for data lookup, unless a\n * sortDataAccessor function is defined.\n */\n _orderData(data) {\n // If there is no active sort or direction, return the data without trying to sort.\n if (!this.sort) {\n return data;\n }\n return this.sortData(data.slice(), this.sort);\n }\n /**\n * Returns a paged slice of the provided data array according to the provided MatPaginator's page\n * index and length. If there is no paginator provided, returns the data array as provided.\n */\n _pageData(data) {\n if (!this.paginator) {\n return data;\n }\n const startIndex = this.paginator.pageIndex * this.paginator.pageSize;\n return data.slice(startIndex, startIndex + this.paginator.pageSize);\n }\n /**\n * Updates the paginator to reflect the length of the filtered data, and makes sure that the page\n * index does not exceed the paginator's last page. Values are changed in a resolved promise to\n * guard against making property changes within a round of change detection.\n */\n _updatePaginator(filteredDataLength) {\n Promise.resolve().then(() => {\n const paginator = this.paginator;\n if (!paginator) {\n return;\n }\n paginator.length = filteredDataLength;\n // If the page index is set beyond the page, reduce it to the last page.\n if (paginator.pageIndex > 0) {\n const lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;\n const newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);\n if (newPageIndex !== paginator.pageIndex) {\n paginator.pageIndex = newPageIndex;\n // Since the paginator only emits after user-generated changes,\n // we need our own stream so we know to should re-render the data.\n this._internalPageChanges.next();\n }\n }\n });\n }\n /**\n * Used by the MatTable. Called when it connects to the data source.\n * @docs-private\n */\n connect() {\n if (!this._renderChangesSubscription) {\n this._updateChangeSubscription();\n }\n return this._renderData;\n }\n /**\n * Used by the MatTable. Called when it disconnects from the data source.\n * @docs-private\n */\n disconnect() {\n var _a;\n (_a = this._renderChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n this._renderChangesSubscription = null;\n }\n}\n/**\n * Data source that accepts a client-side data array and includes native support of filtering,\n * sorting (using MatSort), and pagination (using MatPaginator).\n *\n * Allows for sort customization by overriding sortingDataAccessor, which defines how data\n * properties are accessed. Also allows for filter customization by overriding filterTermAccessor,\n * which defines how row data is converted to a string for filter matching.\n *\n * **Note:** This class is meant to be a simple data source to help you get started. As such\n * it isn't equipped to handle some more advanced cases like robust i18n support or server-side\n * interactions. If your app needs to support more advanced use cases, consider implementing your\n * own `DataSource`.\n */\nclass MatTableDataSource extends _MatTableDataSource {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatCell, MatCellDef, MatColumnDef, MatFooterCell, MatFooterCellDef, MatFooterRow, MatFooterRowDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatNoDataRow, MatRecycleRows, MatRow, MatRowDef, MatTable, MatTableDataSource, MatTableModule, MatTextColumn, _MatTableDataSource };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Input, EventEmitter, Optional, Inject, SkipSelf, Output, NgModule } from '@angular/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Subject, Subscription } from 'rxjs';\nimport * as i1 from '@angular/cdk/collections';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Used to generate unique ID for each accordion. */\nlet nextId$1 = 0;\n/**\n * Injection token that can be used to reference instances of `CdkAccordion`. It serves\n * as alternative token to the actual `CdkAccordion` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst CDK_ACCORDION = new InjectionToken('CdkAccordion');\n/**\n * Directive whose purpose is to manage the expanded state of CdkAccordionItem children.\n */\nclass CdkAccordion {\n constructor() {\n /** Emits when the state of the accordion changes */\n this._stateChanges = new Subject();\n /** Stream that emits true/false when openAll/closeAll is triggered. */\n this._openCloseAllActions = new Subject();\n /** A readonly id value to use for unique selection coordination. */\n this.id = `cdk-accordion-${nextId$1++}`;\n this._multi = false;\n }\n /** Whether the accordion should allow multiple expanded accordion items simultaneously. */\n get multi() {\n return this._multi;\n }\n set multi(multi) {\n this._multi = coerceBooleanProperty(multi);\n }\n /** Opens all enabled accordion items in an accordion where multi is enabled. */\n openAll() {\n if (this._multi) {\n this._openCloseAllActions.next(true);\n }\n }\n /** Closes all enabled accordion items in an accordion where multi is enabled. */\n closeAll() {\n this._openCloseAllActions.next(false);\n }\n ngOnChanges(changes) {\n this._stateChanges.next(changes);\n }\n ngOnDestroy() {\n this._stateChanges.complete();\n this._openCloseAllActions.complete();\n }\n}\nCdkAccordion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordion, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nCdkAccordion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkAccordion, selector: \"cdk-accordion, [cdkAccordion]\", inputs: { multi: \"multi\" }, providers: [{ provide: CDK_ACCORDION, useExisting: CdkAccordion }], exportAs: [\"cdkAccordion\"], usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordion, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-accordion, [cdkAccordion]',\n exportAs: 'cdkAccordion',\n providers: [{ provide: CDK_ACCORDION, useExisting: CdkAccordion }],\n }]\n }], propDecorators: { multi: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Used to generate unique ID for each accordion item. */\nlet nextId = 0;\n/**\n * An basic directive expected to be extended and decorated as a component. Sets up all\n * events and attributes needed to be managed by a CdkAccordion parent.\n */\nclass CdkAccordionItem {\n constructor(accordion, _changeDetectorRef, _expansionDispatcher) {\n this.accordion = accordion;\n this._changeDetectorRef = _changeDetectorRef;\n this._expansionDispatcher = _expansionDispatcher;\n /** Subscription to openAll/closeAll events. */\n this._openCloseAllSubscription = Subscription.EMPTY;\n /** Event emitted every time the AccordionItem is closed. */\n this.closed = new EventEmitter();\n /** Event emitted every time the AccordionItem is opened. */\n this.opened = new EventEmitter();\n /** Event emitted when the AccordionItem is destroyed. */\n this.destroyed = new EventEmitter();\n /**\n * Emits whenever the expanded state of the accordion changes.\n * Primarily used to facilitate two-way binding.\n * @docs-private\n */\n this.expandedChange = new EventEmitter();\n /** The unique AccordionItem id. */\n this.id = `cdk-accordion-child-${nextId++}`;\n this._expanded = false;\n this._disabled = false;\n /** Unregister function for _expansionDispatcher. */\n this._removeUniqueSelectionListener = () => { };\n this._removeUniqueSelectionListener = _expansionDispatcher.listen((id, accordionId) => {\n if (this.accordion &&\n !this.accordion.multi &&\n this.accordion.id === accordionId &&\n this.id !== id) {\n this.expanded = false;\n }\n });\n // When an accordion item is hosted in an accordion, subscribe to open/close events.\n if (this.accordion) {\n this._openCloseAllSubscription = this._subscribeToOpenCloseAllActions();\n }\n }\n /** Whether the AccordionItem is expanded. */\n get expanded() {\n return this._expanded;\n }\n set expanded(expanded) {\n expanded = coerceBooleanProperty(expanded);\n // Only emit events and update the internal value if the value changes.\n if (this._expanded !== expanded) {\n this._expanded = expanded;\n this.expandedChange.emit(expanded);\n if (expanded) {\n this.opened.emit();\n /**\n * In the unique selection dispatcher, the id parameter is the id of the CdkAccordionItem,\n * the name value is the id of the accordion.\n */\n const accordionId = this.accordion ? this.accordion.id : this.id;\n this._expansionDispatcher.notify(this.id, accordionId);\n }\n else {\n this.closed.emit();\n }\n // Ensures that the animation will run when the value is set outside of an `@Input`.\n // This includes cases like the open, close and toggle methods.\n this._changeDetectorRef.markForCheck();\n }\n }\n /** Whether the AccordionItem is disabled. */\n get disabled() {\n return this._disabled;\n }\n set disabled(disabled) {\n this._disabled = coerceBooleanProperty(disabled);\n }\n /** Emits an event for the accordion item being destroyed. */\n ngOnDestroy() {\n this.opened.complete();\n this.closed.complete();\n this.destroyed.emit();\n this.destroyed.complete();\n this._removeUniqueSelectionListener();\n this._openCloseAllSubscription.unsubscribe();\n }\n /** Toggles the expanded state of the accordion item. */\n toggle() {\n if (!this.disabled) {\n this.expanded = !this.expanded;\n }\n }\n /** Sets the expanded state of the accordion item to false. */\n close() {\n if (!this.disabled) {\n this.expanded = false;\n }\n }\n /** Sets the expanded state of the accordion item to true. */\n open() {\n if (!this.disabled) {\n this.expanded = true;\n }\n }\n _subscribeToOpenCloseAllActions() {\n return this.accordion._openCloseAllActions.subscribe(expanded => {\n // Only change expanded state if item is enabled\n if (!this.disabled) {\n this.expanded = expanded;\n }\n });\n }\n}\nCdkAccordionItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionItem, deps: [{ token: CDK_ACCORDION, optional: true, skipSelf: true }, { token: i0.ChangeDetectorRef }, { token: i1.UniqueSelectionDispatcher }], target: i0.ɵɵFactoryTarget.Directive });\nCdkAccordionItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkAccordionItem, selector: \"cdk-accordion-item, [cdkAccordionItem]\", inputs: { expanded: \"expanded\", disabled: \"disabled\" }, outputs: { closed: \"closed\", opened: \"opened\", destroyed: \"destroyed\", expandedChange: \"expandedChange\" }, providers: [\n // Provide `CDK_ACCORDION` as undefined to prevent nested accordion items from\n // registering to the same accordion.\n { provide: CDK_ACCORDION, useValue: undefined },\n ], exportAs: [\"cdkAccordionItem\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionItem, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-accordion-item, [cdkAccordionItem]',\n exportAs: 'cdkAccordionItem',\n providers: [\n // Provide `CDK_ACCORDION` as undefined to prevent nested accordion items from\n // registering to the same accordion.\n { provide: CDK_ACCORDION, useValue: undefined },\n ],\n }]\n }], ctorParameters: function () {\n return [{ type: CdkAccordion, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [CDK_ACCORDION]\n }, {\n type: SkipSelf\n }] }, { type: i0.ChangeDetectorRef }, { type: i1.UniqueSelectionDispatcher }];\n }, propDecorators: { closed: [{\n type: Output\n }], opened: [{\n type: Output\n }], destroyed: [{\n type: Output\n }], expandedChange: [{\n type: Output\n }], expanded: [{\n type: Input\n }], disabled: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass CdkAccordionModule {\n}\nCdkAccordionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkAccordionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionModule, declarations: [CdkAccordion, CdkAccordionItem], exports: [CdkAccordion, CdkAccordionItem] });\nCdkAccordionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkAccordionModule, decorators: [{\n type: NgModule,\n args: [{\n exports: [CdkAccordion, CdkAccordionItem],\n declarations: [CdkAccordion, CdkAccordionItem],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkAccordion, CdkAccordionItem, CdkAccordionModule };\n","import { CdkAccordionItem, CdkAccordion, CdkAccordionModule } from '@angular/cdk/accordion';\nimport * as i2 from '@angular/cdk/portal';\nimport { TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport * as i3 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, SkipSelf, Inject, Input, Output, ContentChild, ViewChild, Host, Attribute, QueryList, ContentChildren, NgModule } from '@angular/core';\nimport { mixinTabIndex, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i2$1 from '@angular/cdk/a11y';\nimport { FocusKeyManager } from '@angular/cdk/a11y';\nimport { distinctUntilChanged, startWith, filter, take } from 'rxjs/operators';\nimport { ENTER, hasModifierKey, SPACE } from '@angular/cdk/keycodes';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { Subject, Subscription, EMPTY, merge } from 'rxjs';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i1 from '@angular/cdk/collections';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Token used to provide a `MatAccordion` to `MatExpansionPanel`.\n * Used primarily to avoid circular imports between `MatAccordion` and `MatExpansionPanel`.\n */\nconst MAT_ACCORDION = new InjectionToken('MAT_ACCORDION');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Time and timing curve for expansion panel animations. */\n// Note: Keep this in sync with the Sass variable for the panel header animation.\nconst EXPANSION_PANEL_ANIMATION_TIMING = '225ms cubic-bezier(0.4,0.0,0.2,1)';\n/**\n * Animations used by the Material expansion panel.\n *\n * A bug in angular animation's `state` when ViewContainers are moved using ViewContainerRef.move()\n * causes the animation state of moved components to become `void` upon exit, and not update again\n * upon reentry into the DOM. This can lead a to situation for the expansion panel where the state\n * of the panel is `expanded` or `collapsed` but the animation state is `void`.\n *\n * To correctly handle animating to the next state, we animate between `void` and `collapsed` which\n * are defined to have the same styles. Since angular animates from the current styles to the\n * destination state's style definition, in situations where we are moving from `void`'s styles to\n * `collapsed` this acts a noop since no style values change.\n *\n * In the case where angular's animation state is out of sync with the expansion panel's state, the\n * expansion panel being `expanded` and angular animations being `void`, the animation from the\n * `expanded`'s effective styles (though in a `void` animation state) to the collapsed state will\n * occur as expected.\n *\n * Angular Bug: https://github.com/angular/angular/issues/18847\n *\n * @docs-private\n */\nconst matExpansionAnimations = {\n /** Animation that rotates the indicator arrow. */\n indicatorRotate: trigger('indicatorRotate', [\n state('collapsed, void', style({ transform: 'rotate(0deg)' })),\n state('expanded', style({ transform: 'rotate(180deg)' })),\n transition('expanded <=> collapsed, void => collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),\n ]),\n /** Animation that expands and collapses the panel content. */\n bodyExpansion: trigger('bodyExpansion', [\n state('collapsed, void', style({ height: '0px', visibility: 'hidden' })),\n state('expanded', style({ height: '*', visibility: 'visible' })),\n transition('expanded <=> collapsed, void => collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),\n ]),\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Expansion panel content that will be rendered lazily\n * after the panel is opened for the first time.\n */\nclass MatExpansionPanelContent {\n constructor(_template) {\n this._template = _template;\n }\n}\nMatExpansionPanelContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelContent, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nMatExpansionPanelContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanelContent, selector: \"ng-template[matExpansionPanelContent]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelContent, decorators: [{\n type: Directive,\n args: [{\n selector: 'ng-template[matExpansionPanelContent]',\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/** Counter for generating unique element ids. */\nlet uniqueId = 0;\n/**\n * Injection token that can be used to configure the default\n * options for the expansion panel component.\n */\nconst MAT_EXPANSION_PANEL_DEFAULT_OPTIONS = new InjectionToken('MAT_EXPANSION_PANEL_DEFAULT_OPTIONS');\n/**\n * This component can be used as a single element to show expandable content, or as one of\n * multiple children of an element with the MatAccordion directive attached.\n */\nclass MatExpansionPanel extends CdkAccordionItem {\n constructor(accordion, _changeDetectorRef, _uniqueSelectionDispatcher, _viewContainerRef, _document, _animationMode, defaultOptions) {\n super(accordion, _changeDetectorRef, _uniqueSelectionDispatcher);\n this._viewContainerRef = _viewContainerRef;\n this._animationMode = _animationMode;\n this._hideToggle = false;\n /** An event emitted after the body's expansion animation happens. */\n this.afterExpand = new EventEmitter();\n /** An event emitted after the body's collapse animation happens. */\n this.afterCollapse = new EventEmitter();\n /** Stream that emits for changes in `@Input` properties. */\n this._inputChanges = new Subject();\n /** ID for the associated header element. Used for a11y labelling. */\n this._headerId = `mat-expansion-panel-header-${uniqueId++}`;\n /** Stream of body animation done events. */\n this._bodyAnimationDone = new Subject();\n this.accordion = accordion;\n this._document = _document;\n // We need a Subject with distinctUntilChanged, because the `done` event\n // fires twice on some browsers. See https://github.com/angular/angular/issues/24084\n this._bodyAnimationDone\n .pipe(distinctUntilChanged((x, y) => {\n return x.fromState === y.fromState && x.toState === y.toState;\n }))\n .subscribe(event => {\n if (event.fromState !== 'void') {\n if (event.toState === 'expanded') {\n this.afterExpand.emit();\n }\n else if (event.toState === 'collapsed') {\n this.afterCollapse.emit();\n }\n }\n });\n if (defaultOptions) {\n this.hideToggle = defaultOptions.hideToggle;\n }\n }\n /** Whether the toggle indicator should be hidden. */\n get hideToggle() {\n return this._hideToggle || (this.accordion && this.accordion.hideToggle);\n }\n set hideToggle(value) {\n this._hideToggle = coerceBooleanProperty(value);\n }\n /** The position of the expansion indicator. */\n get togglePosition() {\n return this._togglePosition || (this.accordion && this.accordion.togglePosition);\n }\n set togglePosition(value) {\n this._togglePosition = value;\n }\n /** Determines whether the expansion panel should have spacing between it and its siblings. */\n _hasSpacing() {\n if (this.accordion) {\n return this.expanded && this.accordion.displayMode === 'default';\n }\n return false;\n }\n /** Gets the expanded state string. */\n _getExpandedState() {\n return this.expanded ? 'expanded' : 'collapsed';\n }\n /** Toggles the expanded state of the expansion panel. */\n toggle() {\n this.expanded = !this.expanded;\n }\n /** Sets the expanded state of the expansion panel to false. */\n close() {\n this.expanded = false;\n }\n /** Sets the expanded state of the expansion panel to true. */\n open() {\n this.expanded = true;\n }\n ngAfterContentInit() {\n if (this._lazyContent) {\n // Render the content as soon as the panel becomes open.\n this.opened\n .pipe(startWith(null), filter(() => this.expanded && !this._portal), take(1))\n .subscribe(() => {\n this._portal = new TemplatePortal(this._lazyContent._template, this._viewContainerRef);\n });\n }\n }\n ngOnChanges(changes) {\n this._inputChanges.next(changes);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._bodyAnimationDone.complete();\n this._inputChanges.complete();\n }\n /** Checks whether the expansion panel's content contains the currently-focused element. */\n _containsFocus() {\n if (this._body) {\n const focusedElement = this._document.activeElement;\n const bodyElement = this._body.nativeElement;\n return focusedElement === bodyElement || bodyElement.contains(focusedElement);\n }\n return false;\n }\n}\nMatExpansionPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanel, deps: [{ token: MAT_ACCORDION, optional: true, skipSelf: true }, { token: i0.ChangeDetectorRef }, { token: i1.UniqueSelectionDispatcher }, { token: i0.ViewContainerRef }, { token: DOCUMENT }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });\nMatExpansionPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanel, selector: \"mat-expansion-panel\", inputs: { disabled: \"disabled\", expanded: \"expanded\", hideToggle: \"hideToggle\", togglePosition: \"togglePosition\" }, outputs: { opened: \"opened\", closed: \"closed\", expandedChange: \"expandedChange\", afterExpand: \"afterExpand\", afterCollapse: \"afterCollapse\" }, host: { properties: { \"class.mat-expanded\": \"expanded\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\", \"class.mat-expansion-panel-spacing\": \"_hasSpacing()\" }, classAttribute: \"mat-expansion-panel\" }, providers: [\n // Provide MatAccordion as undefined to prevent nested expansion panels from registering\n // to the same accordion.\n { provide: MAT_ACCORDION, useValue: undefined },\n ], queries: [{ propertyName: \"_lazyContent\", first: true, predicate: MatExpansionPanelContent, descendants: true }], viewQueries: [{ propertyName: \"_body\", first: true, predicate: [\"body\"], descendants: true }], exportAs: [\"matExpansionPanel\"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: \"<ng-content select=\\\"mat-expansion-panel-header\\\"></ng-content>\\n<div class=\\\"mat-expansion-panel-content\\\"\\n role=\\\"region\\\"\\n [@bodyExpansion]=\\\"_getExpandedState()\\\"\\n (@bodyExpansion.done)=\\\"_bodyAnimationDone.next($event)\\\"\\n [attr.aria-labelledby]=\\\"_headerId\\\"\\n [id]=\\\"id\\\"\\n #body>\\n <div class=\\\"mat-expansion-panel-body\\\">\\n <ng-content></ng-content>\\n <ng-template [cdkPortalOutlet]=\\\"_portal\\\"></ng-template>\\n </div>\\n <ng-content select=\\\"mat-action-row\\\"></ng-content>\\n</div>\\n\", styles: [\".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\\n\"], directives: [{ type: i2.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [matExpansionAnimations.bodyExpansion], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanel, decorators: [{\n type: Component,\n args: [{ selector: 'mat-expansion-panel', exportAs: 'matExpansionPanel', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled', 'expanded'], outputs: ['opened', 'closed', 'expandedChange'], animations: [matExpansionAnimations.bodyExpansion], providers: [\n // Provide MatAccordion as undefined to prevent nested expansion panels from registering\n // to the same accordion.\n { provide: MAT_ACCORDION, useValue: undefined },\n ], host: {\n 'class': 'mat-expansion-panel',\n '[class.mat-expanded]': 'expanded',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n '[class.mat-expansion-panel-spacing]': '_hasSpacing()',\n }, template: \"<ng-content select=\\\"mat-expansion-panel-header\\\"></ng-content>\\n<div class=\\\"mat-expansion-panel-content\\\"\\n role=\\\"region\\\"\\n [@bodyExpansion]=\\\"_getExpandedState()\\\"\\n (@bodyExpansion.done)=\\\"_bodyAnimationDone.next($event)\\\"\\n [attr.aria-labelledby]=\\\"_headerId\\\"\\n [id]=\\\"id\\\"\\n #body>\\n <div class=\\\"mat-expansion-panel-body\\\">\\n <ng-content></ng-content>\\n <ng-template [cdkPortalOutlet]=\\\"_portal\\\"></ng-template>\\n </div>\\n <ng-content select=\\\"mat-action-row\\\"></ng-content>\\n</div>\\n\", styles: [\".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }, {\n type: Inject,\n args: [MAT_ACCORDION]\n }] }, { type: i0.ChangeDetectorRef }, { type: i1.UniqueSelectionDispatcher }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_EXPANSION_PANEL_DEFAULT_OPTIONS]\n }, {\n type: Optional\n }] }];\n }, propDecorators: { hideToggle: [{\n type: Input\n }], togglePosition: [{\n type: Input\n }], afterExpand: [{\n type: Output\n }], afterCollapse: [{\n type: Output\n }], _lazyContent: [{\n type: ContentChild,\n args: [MatExpansionPanelContent]\n }], _body: [{\n type: ViewChild,\n args: ['body']\n }] } });\n/**\n * Actions of a `<mat-expansion-panel>`.\n */\nclass MatExpansionPanelActionRow {\n}\nMatExpansionPanelActionRow.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelActionRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatExpansionPanelActionRow.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanelActionRow, selector: \"mat-action-row\", host: { classAttribute: \"mat-action-row\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelActionRow, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-action-row',\n host: {\n class: 'mat-action-row',\n },\n }]\n }] });\n\n// Boilerplate for applying mixins to MatExpansionPanelHeader.\n/** @docs-private */\nclass MatExpansionPanelHeaderBase {\n}\nconst _MatExpansionPanelHeaderMixinBase = mixinTabIndex(MatExpansionPanelHeaderBase);\n/**\n * Header element of a `<mat-expansion-panel>`.\n */\nclass MatExpansionPanelHeader extends _MatExpansionPanelHeaderMixinBase {\n constructor(panel, _element, _focusMonitor, _changeDetectorRef, defaultOptions, _animationMode, tabIndex) {\n super();\n this.panel = panel;\n this._element = _element;\n this._focusMonitor = _focusMonitor;\n this._changeDetectorRef = _changeDetectorRef;\n this._animationMode = _animationMode;\n this._parentChangeSubscription = Subscription.EMPTY;\n const accordionHideToggleChange = panel.accordion\n ? panel.accordion._stateChanges.pipe(filter(changes => !!(changes['hideToggle'] || changes['togglePosition'])))\n : EMPTY;\n this.tabIndex = parseInt(tabIndex || '') || 0;\n // Since the toggle state depends on an @Input on the panel, we\n // need to subscribe and trigger change detection manually.\n this._parentChangeSubscription = merge(panel.opened, panel.closed, accordionHideToggleChange, panel._inputChanges.pipe(filter(changes => {\n return !!(changes['hideToggle'] || changes['disabled'] || changes['togglePosition']);\n }))).subscribe(() => this._changeDetectorRef.markForCheck());\n // Avoids focus being lost if the panel contained the focused element and was closed.\n panel.closed\n .pipe(filter(() => panel._containsFocus()))\n .subscribe(() => _focusMonitor.focusVia(_element, 'program'));\n if (defaultOptions) {\n this.expandedHeight = defaultOptions.expandedHeight;\n this.collapsedHeight = defaultOptions.collapsedHeight;\n }\n }\n /**\n * Whether the associated panel is disabled. Implemented as a part of `FocusableOption`.\n * @docs-private\n */\n get disabled() {\n return this.panel.disabled;\n }\n /** Toggles the expanded state of the panel. */\n _toggle() {\n if (!this.disabled) {\n this.panel.toggle();\n }\n }\n /** Gets whether the panel is expanded. */\n _isExpanded() {\n return this.panel.expanded;\n }\n /** Gets the expanded state string of the panel. */\n _getExpandedState() {\n return this.panel._getExpandedState();\n }\n /** Gets the panel id. */\n _getPanelId() {\n return this.panel.id;\n }\n /** Gets the toggle position for the header. */\n _getTogglePosition() {\n return this.panel.togglePosition;\n }\n /** Gets whether the expand indicator should be shown. */\n _showToggle() {\n return !this.panel.hideToggle && !this.panel.disabled;\n }\n /**\n * Gets the current height of the header. Null if no custom height has been\n * specified, and if the default height from the stylesheet should be used.\n */\n _getHeaderHeight() {\n const isExpanded = this._isExpanded();\n if (isExpanded && this.expandedHeight) {\n return this.expandedHeight;\n }\n else if (!isExpanded && this.collapsedHeight) {\n return this.collapsedHeight;\n }\n return null;\n }\n /** Handle keydown event calling to toggle() if appropriate. */\n _keydown(event) {\n switch (event.keyCode) {\n // Toggle for space and enter keys.\n case SPACE:\n case ENTER:\n if (!hasModifierKey(event)) {\n event.preventDefault();\n this._toggle();\n }\n break;\n default:\n if (this.panel.accordion) {\n this.panel.accordion._handleHeaderKeydown(event);\n }\n return;\n }\n }\n /**\n * Focuses the panel header. Implemented as a part of `FocusableOption`.\n * @param origin Origin of the action that triggered the focus.\n * @docs-private\n */\n focus(origin, options) {\n if (origin) {\n this._focusMonitor.focusVia(this._element, origin, options);\n }\n else {\n this._element.nativeElement.focus(options);\n }\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._element).subscribe(origin => {\n if (origin && this.panel.accordion) {\n this.panel.accordion._handleHeaderFocus(this);\n }\n });\n }\n ngOnDestroy() {\n this._parentChangeSubscription.unsubscribe();\n this._focusMonitor.stopMonitoring(this._element);\n }\n}\nMatExpansionPanelHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelHeader, deps: [{ token: MatExpansionPanel, host: true }, { token: i0.ElementRef }, { token: i2$1.FocusMonitor }, { token: i0.ChangeDetectorRef }, { token: MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, optional: true }, { token: ANIMATION_MODULE_TYPE, optional: true }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component });\nMatExpansionPanelHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanelHeader, selector: \"mat-expansion-panel-header\", inputs: { tabIndex: \"tabIndex\", expandedHeight: \"expandedHeight\", collapsedHeight: \"collapsedHeight\" }, host: { attributes: { \"role\": \"button\" }, listeners: { \"click\": \"_toggle()\", \"keydown\": \"_keydown($event)\" }, properties: { \"attr.id\": \"panel._headerId\", \"attr.tabindex\": \"tabIndex\", \"attr.aria-controls\": \"_getPanelId()\", \"attr.aria-expanded\": \"_isExpanded()\", \"attr.aria-disabled\": \"panel.disabled\", \"class.mat-expanded\": \"_isExpanded()\", \"class.mat-expansion-toggle-indicator-after\": \"_getTogglePosition() === 'after'\", \"class.mat-expansion-toggle-indicator-before\": \"_getTogglePosition() === 'before'\", \"class._mat-animation-noopable\": \"_animationMode === \\\"NoopAnimations\\\"\", \"style.height\": \"_getHeaderHeight()\" }, classAttribute: \"mat-expansion-panel-header mat-focus-indicator\" }, usesInheritance: true, ngImport: i0, template: \"<span class=\\\"mat-content\\\">\\n <ng-content select=\\\"mat-panel-title\\\"></ng-content>\\n <ng-content select=\\\"mat-panel-description\\\"></ng-content>\\n <ng-content></ng-content>\\n</span>\\n<span [@indicatorRotate]=\\\"_getExpandedState()\\\" *ngIf=\\\"_showToggle()\\\"\\n class=\\\"mat-expansion-indicator\\\"></span>\\n\", styles: [\".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:\\\"\\\";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:\\\"\\\"}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\\n\"], directives: [{ type: i3.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }], animations: [matExpansionAnimations.indicatorRotate], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelHeader, decorators: [{\n type: Component,\n args: [{ selector: 'mat-expansion-panel-header', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['tabIndex'], animations: [matExpansionAnimations.indicatorRotate], host: {\n 'class': 'mat-expansion-panel-header mat-focus-indicator',\n 'role': 'button',\n '[attr.id]': 'panel._headerId',\n '[attr.tabindex]': 'tabIndex',\n '[attr.aria-controls]': '_getPanelId()',\n '[attr.aria-expanded]': '_isExpanded()',\n '[attr.aria-disabled]': 'panel.disabled',\n '[class.mat-expanded]': '_isExpanded()',\n '[class.mat-expansion-toggle-indicator-after]': `_getTogglePosition() === 'after'`,\n '[class.mat-expansion-toggle-indicator-before]': `_getTogglePosition() === 'before'`,\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n '[style.height]': '_getHeaderHeight()',\n '(click)': '_toggle()',\n '(keydown)': '_keydown($event)',\n }, template: \"<span class=\\\"mat-content\\\">\\n <ng-content select=\\\"mat-panel-title\\\"></ng-content>\\n <ng-content select=\\\"mat-panel-description\\\"></ng-content>\\n <ng-content></ng-content>\\n</span>\\n<span [@indicatorRotate]=\\\"_getExpandedState()\\\" *ngIf=\\\"_showToggle()\\\"\\n class=\\\"mat-expansion-indicator\\\"></span>\\n\", styles: [\".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:\\\"\\\";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:\\\"\\\"}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\\n\"] }]\n }], ctorParameters: function () {\n return [{ type: MatExpansionPanel, decorators: [{\n type: Host\n }] }, { type: i0.ElementRef }, { type: i2$1.FocusMonitor }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [MAT_EXPANSION_PANEL_DEFAULT_OPTIONS]\n }, {\n type: Optional\n }] }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }] }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n }, propDecorators: { expandedHeight: [{\n type: Input\n }], collapsedHeight: [{\n type: Input\n }] } });\n/**\n * Description element of a `<mat-expansion-panel-header>`.\n */\nclass MatExpansionPanelDescription {\n}\nMatExpansionPanelDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatExpansionPanelDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanelDescription, selector: \"mat-panel-description\", host: { classAttribute: \"mat-expansion-panel-header-description\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelDescription, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-panel-description',\n host: {\n class: 'mat-expansion-panel-header-description',\n },\n }]\n }] });\n/**\n * Title element of a `<mat-expansion-panel-header>`.\n */\nclass MatExpansionPanelTitle {\n}\nMatExpansionPanelTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nMatExpansionPanelTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatExpansionPanelTitle, selector: \"mat-panel-title\", host: { classAttribute: \"mat-expansion-panel-header-title\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionPanelTitle, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-panel-title',\n host: {\n class: 'mat-expansion-panel-header-title',\n },\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Directive for a Material Design Accordion.\n */\nclass MatAccordion extends CdkAccordion {\n constructor() {\n super(...arguments);\n /** Headers belonging to this accordion. */\n this._ownHeaders = new QueryList();\n this._hideToggle = false;\n /**\n * Display mode used for all expansion panels in the accordion. Currently two display\n * modes exist:\n * default - a gutter-like spacing is placed around any expanded panel, placing the expanded\n * panel at a different elevation from the rest of the accordion.\n * flat - no spacing is placed around expanded panels, showing all panels at the same\n * elevation.\n */\n this.displayMode = 'default';\n /** The position of the expansion indicator. */\n this.togglePosition = 'after';\n }\n /** Whether the expansion indicator should be hidden. */\n get hideToggle() {\n return this._hideToggle;\n }\n set hideToggle(show) {\n this._hideToggle = coerceBooleanProperty(show);\n }\n ngAfterContentInit() {\n this._headers.changes\n .pipe(startWith(this._headers))\n .subscribe((headers) => {\n this._ownHeaders.reset(headers.filter(header => header.panel.accordion === this));\n this._ownHeaders.notifyOnChanges();\n });\n this._keyManager = new FocusKeyManager(this._ownHeaders).withWrap().withHomeAndEnd();\n }\n /** Handles keyboard events coming in from the panel headers. */\n _handleHeaderKeydown(event) {\n this._keyManager.onKeydown(event);\n }\n _handleHeaderFocus(header) {\n this._keyManager.updateActiveItem(header);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._ownHeaders.destroy();\n }\n}\nMatAccordion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatAccordion, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatAccordion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatAccordion, selector: \"mat-accordion\", inputs: { multi: \"multi\", hideToggle: \"hideToggle\", displayMode: \"displayMode\", togglePosition: \"togglePosition\" }, host: { properties: { \"class.mat-accordion-multi\": \"this.multi\" }, classAttribute: \"mat-accordion\" }, providers: [\n {\n provide: MAT_ACCORDION,\n useExisting: MatAccordion,\n },\n ], queries: [{ propertyName: \"_headers\", predicate: MatExpansionPanelHeader, descendants: true }], exportAs: [\"matAccordion\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatAccordion, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-accordion',\n exportAs: 'matAccordion',\n inputs: ['multi'],\n providers: [\n {\n provide: MAT_ACCORDION,\n useExisting: MatAccordion,\n },\n ],\n host: {\n class: 'mat-accordion',\n // Class binding which is only used by the test harness as there is no other\n // way for the harness to detect if multiple panel support is enabled.\n '[class.mat-accordion-multi]': 'this.multi',\n },\n }]\n }], propDecorators: { _headers: [{\n type: ContentChildren,\n args: [MatExpansionPanelHeader, { descendants: true }]\n }], hideToggle: [{\n type: Input\n }], displayMode: [{\n type: Input\n }], togglePosition: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass MatExpansionModule {\n}\nMatExpansionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatExpansionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionModule, declarations: [MatAccordion,\n MatExpansionPanel,\n MatExpansionPanelActionRow,\n MatExpansionPanelHeader,\n MatExpansionPanelTitle,\n MatExpansionPanelDescription,\n MatExpansionPanelContent], imports: [CommonModule, MatCommonModule, CdkAccordionModule, PortalModule], exports: [MatAccordion,\n MatExpansionPanel,\n MatExpansionPanelActionRow,\n MatExpansionPanelHeader,\n MatExpansionPanelTitle,\n MatExpansionPanelDescription,\n MatExpansionPanelContent] });\nMatExpansionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionModule, imports: [[CommonModule, MatCommonModule, CdkAccordionModule, PortalModule]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatExpansionModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule, MatCommonModule, CdkAccordionModule, PortalModule],\n exports: [\n MatAccordion,\n MatExpansionPanel,\n MatExpansionPanelActionRow,\n MatExpansionPanelHeader,\n MatExpansionPanelTitle,\n MatExpansionPanelDescription,\n MatExpansionPanelContent,\n ],\n declarations: [\n MatAccordion,\n MatExpansionPanel,\n MatExpansionPanelActionRow,\n MatExpansionPanelHeader,\n MatExpansionPanelTitle,\n MatExpansionPanelDescription,\n MatExpansionPanelContent,\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { EXPANSION_PANEL_ANIMATION_TIMING, MAT_ACCORDION, MAT_EXPANSION_PANEL_DEFAULT_OPTIONS, MatAccordion, MatExpansionModule, MatExpansionPanel, MatExpansionPanelActionRow, MatExpansionPanelContent, MatExpansionPanelDescription, MatExpansionPanelHeader, MatExpansionPanelTitle, matExpansionAnimations };\n","import * as i7 from '@angular/cdk/portal';\nimport { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Injectable, Optional, Inject, ViewChild, forwardRef, TemplateRef, ContentChild, Directive, NgModule } from '@angular/core';\nimport { Subscription, Subject, merge } from 'rxjs';\nimport { ESCAPE, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW } from '@angular/cdk/keycodes';\nimport { take, startWith, takeUntil, debounceTime, filter } from 'rxjs/operators';\nimport * as i1$1 from '@angular/material/datepicker';\nimport { DateRange, matDatepickerAnimations, MAT_DATEPICKER_SCROLL_STRATEGY, MatDatepickerModule, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER } from '@angular/material/datepicker';\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport { DateAdapter, mixinColor, MAT_DATE_LOCALE } from '@angular/material/core';\nimport * as i2 from '@angular/cdk/bidi';\nimport * as i3 from '@angular/material/button';\nimport { MatButtonModule } from '@angular/material/button';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i9 from '@angular/cdk/overlay';\nimport { OverlayConfig } from '@angular/cdk/overlay';\nimport * as i2$1 from '@angular/forms';\nimport { Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport * as i4 from '@angular/material/icon';\nimport { MatIconModule } from '@angular/material/icon';\nimport * as i2$2 from '@angular/material/form-field';\nimport * as i7$1 from '@angular/material/input';\nimport { MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';\nimport * as i8 from '@angular/material/dialog';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport * as i1$2 from '@angular/cdk/platform';\nimport { PlatformModule } from '@angular/cdk/platform';\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst NGX_MAT_DATE_FORMATS = new InjectionToken('ngx-mat-date-formats');\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An internal class that represents the data corresponding to a single calendar cell.\r\n * @docs-private\r\n */\r\nclass NgxMatCalendarCell {\r\n constructor(value, displayValue, ariaLabel, enabled, cssClasses = {}, compareValue = value, rawValue) {\r\n this.value = value;\r\n this.displayValue = displayValue;\r\n this.ariaLabel = ariaLabel;\r\n this.enabled = enabled;\r\n this.cssClasses = cssClasses;\r\n this.compareValue = compareValue;\r\n this.rawValue = rawValue;\r\n }\r\n}\r\n/**\r\n * An internal component used to display calendar data in a table.\r\n * @docs-private\r\n */\r\nclass NgxMatCalendarBody {\r\n constructor(_elementRef, _ngZone) {\r\n this._elementRef = _elementRef;\r\n this._ngZone = _ngZone;\r\n /** The number of columns in the table. */\r\n this.numCols = 7;\r\n /** The cell number of the active cell in the table. */\r\n this.activeCell = 0;\r\n /** Whether a range is being selected. */\r\n this.isRange = false;\r\n /**\r\n * The aspect ratio (width / height) to use for the cells in the table. This aspect ratio will be\r\n * maintained even as the table resizes.\r\n */\r\n this.cellAspectRatio = 1;\r\n /** Start of the preview range. */\r\n this.previewStart = null;\r\n /** End of the preview range. */\r\n this.previewEnd = null;\r\n /** Emits when a new value is selected. */\r\n this.selectedValueChange = new EventEmitter();\r\n /** Emits when the preview has changed as a result of a user action. */\r\n this.previewChange = new EventEmitter();\r\n /**\r\n * Event handler for when the user enters an element\r\n * inside the calendar body (e.g. by hovering in or focus).\r\n */\r\n this._enterHandler = (event) => {\r\n if (this._skipNextFocus && event.type === 'focus') {\r\n this._skipNextFocus = false;\r\n return;\r\n }\r\n // We only need to hit the zone when we're selecting a range.\r\n if (event.target && this.isRange) {\r\n const cell = this._getCellFromElement(event.target);\r\n if (cell) {\r\n this._ngZone.run(() => this.previewChange.emit({ value: cell.enabled ? cell : null, event }));\r\n }\r\n }\r\n };\r\n /**\r\n * Event handler for when the user's pointer leaves an element\r\n * inside the calendar body (e.g. by hovering out or blurring).\r\n */\r\n this._leaveHandler = (event) => {\r\n // We only need to hit the zone when we're selecting a range.\r\n if (this.previewEnd !== null && this.isRange) {\r\n // Only reset the preview end value when leaving cells. This looks better, because\r\n // we have a gap between the cells and the rows and we don't want to remove the\r\n // range just for it to show up again when the user moves a few pixels to the side.\r\n if (event.target && isTableCell(event.target)) {\r\n this._ngZone.run(() => this.previewChange.emit({ value: null, event }));\r\n }\r\n }\r\n };\r\n _ngZone.runOutsideAngular(() => {\r\n const element = _elementRef.nativeElement;\r\n element.addEventListener('mouseenter', this._enterHandler, true);\r\n element.addEventListener('focus', this._enterHandler, true);\r\n element.addEventListener('mouseleave', this._leaveHandler, true);\r\n element.addEventListener('blur', this._leaveHandler, true);\r\n });\r\n }\r\n /** Called when a cell is clicked. */\r\n _cellClicked(cell, event) {\r\n if (cell.enabled) {\r\n this.selectedValueChange.emit({ value: cell.value, event });\r\n }\r\n }\r\n /** Returns whether a cell should be marked as selected. */\r\n _isSelected(cell) {\r\n return this.startValue === cell.compareValue || this.endValue === cell.compareValue;\r\n }\r\n ngOnChanges(changes) {\r\n const columnChanges = changes['numCols'];\r\n const { rows, numCols } = this;\r\n if (changes['rows'] || columnChanges) {\r\n this._firstRowOffset = rows && rows.length && rows[0].length ? numCols - rows[0].length : 0;\r\n }\r\n if (changes['cellAspectRatio'] || columnChanges || !this._cellPadding) {\r\n this._cellPadding = `${50 * this.cellAspectRatio / numCols}%`;\r\n }\r\n if (columnChanges || !this._cellWidth) {\r\n this._cellWidth = `${100 / numCols}%`;\r\n }\r\n }\r\n ngOnDestroy() {\r\n const element = this._elementRef.nativeElement;\r\n element.removeEventListener('mouseenter', this._enterHandler, true);\r\n element.removeEventListener('focus', this._enterHandler, true);\r\n element.removeEventListener('mouseleave', this._leaveHandler, true);\r\n element.removeEventListener('blur', this._leaveHandler, true);\r\n }\r\n /** Returns whether a cell is active. */\r\n _isActiveCell(rowIndex, colIndex) {\r\n let cellNumber = rowIndex * this.numCols + colIndex;\r\n // Account for the fact that the first row may not have as many cells.\r\n if (rowIndex) {\r\n cellNumber -= this._firstRowOffset;\r\n }\r\n return cellNumber == this.activeCell;\r\n }\r\n /** Focuses the active cell after the microtask queue is empty. */\r\n _focusActiveCell(movePreview = true) {\r\n this._ngZone.runOutsideAngular(() => {\r\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\r\n const activeCell = this._elementRef.nativeElement.querySelector('.ngx-mat-calendar-body-active');\r\n if (activeCell) {\r\n if (!movePreview) {\r\n this._skipNextFocus = true;\r\n }\r\n activeCell.focus();\r\n }\r\n });\r\n });\r\n }\r\n /** Gets whether a value is the start of the main range. */\r\n _isRangeStart(value) {\r\n return isStart(value, this.startValue, this.endValue);\r\n }\r\n /** Gets whether a value is the end of the main range. */\r\n _isRangeEnd(value) {\r\n return isEnd(value, this.startValue, this.endValue);\r\n }\r\n /** Gets whether a value is within the currently-selected range. */\r\n _isInRange(value) {\r\n return isInRange(value, this.startValue, this.endValue, this.isRange);\r\n }\r\n /** Gets whether a value is the start of the comparison range. */\r\n _isComparisonStart(value) {\r\n return isStart(value, this.comparisonStart, this.comparisonEnd);\r\n }\r\n /** Whether the cell is a start bridge cell between the main and comparison ranges. */\r\n _isComparisonBridgeStart(value, rowIndex, colIndex) {\r\n if (!this._isComparisonStart(value) || this._isRangeStart(value) || !this._isInRange(value)) {\r\n return false;\r\n }\r\n let previousCell = this.rows[rowIndex][colIndex - 1];\r\n if (!previousCell) {\r\n const previousRow = this.rows[rowIndex - 1];\r\n previousCell = previousRow && previousRow[previousRow.length - 1];\r\n }\r\n return previousCell && !this._isRangeEnd(previousCell.compareValue);\r\n }\r\n /** Whether the cell is an end bridge cell between the main and comparison ranges. */\r\n _isComparisonBridgeEnd(value, rowIndex, colIndex) {\r\n if (!this._isComparisonEnd(value) || this._isRangeEnd(value) || !this._isInRange(value)) {\r\n return false;\r\n }\r\n let nextCell = this.rows[rowIndex][colIndex + 1];\r\n if (!nextCell) {\r\n const nextRow = this.rows[rowIndex + 1];\r\n nextCell = nextRow && nextRow[0];\r\n }\r\n return nextCell && !this._isRangeStart(nextCell.compareValue);\r\n }\r\n /** Gets whether a value is the end of the comparison range. */\r\n _isComparisonEnd(value) {\r\n return isEnd(value, this.comparisonStart, this.comparisonEnd);\r\n }\r\n /** Gets whether a value is within the current comparison range. */\r\n _isInComparisonRange(value) {\r\n return isInRange(value, this.comparisonStart, this.comparisonEnd, this.isRange);\r\n }\r\n /** Gets whether a value is the start of the preview range. */\r\n _isPreviewStart(value) {\r\n return isStart(value, this.previewStart, this.previewEnd);\r\n }\r\n /** Gets whether a value is the end of the preview range. */\r\n _isPreviewEnd(value) {\r\n return isEnd(value, this.previewStart, this.previewEnd);\r\n }\r\n /** Gets whether a value is inside the preview range. */\r\n _isInPreview(value) {\r\n return isInRange(value, this.previewStart, this.previewEnd, this.isRange);\r\n }\r\n /** Finds the NgxMatCalendarCell that corresponds to a DOM node. */\r\n _getCellFromElement(element) {\r\n let cell;\r\n if (isTableCell(element)) {\r\n cell = element;\r\n }\r\n else if (isTableCell(element.parentNode)) {\r\n cell = element.parentNode;\r\n }\r\n if (cell) {\r\n const row = cell.getAttribute('data-ngx-mat-row');\r\n const col = cell.getAttribute('data-ngx-mat-col');\r\n if (row && col) {\r\n return this.rows[parseInt(row)][parseInt(col)];\r\n }\r\n }\r\n return null;\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendarBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendarBody, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendarBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatCalendarBody, selector: \"[ngx-mat-calendar-body]\", inputs: { label: \"label\", rows: \"rows\", todayValue: \"todayValue\", startValue: \"startValue\", endValue: \"endValue\", labelMinRequiredCells: \"labelMinRequiredCells\", numCols: \"numCols\", activeCell: \"activeCell\", isRange: \"isRange\", cellAspectRatio: \"cellAspectRatio\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\", previewStart: \"previewStart\", previewEnd: \"previewEnd\" }, outputs: { selectedValueChange: \"selectedValueChange\", previewChange: \"previewChange\" }, host: { attributes: { \"role\": \"grid\", \"aria-readonly\": \"true\" }, classAttribute: \"ngx-mat-calendar-body\" }, exportAs: [\"NgxMatCalendarBody\"], usesOnChanges: true, ngImport: i0, template: \"<!--\\r\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\r\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\r\\n-->\\r\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\r\\n <td class=\\\"mat-calendar-body-label\\\"\\r\\n [attr.colspan]=\\\"numCols\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n {{label}}\\r\\n </td>\\r\\n</tr>\\r\\n\\r\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\r\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\r\\n <!--\\r\\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\\r\\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\\r\\n percentage of the width (a variant of the trick described here:\\r\\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\r\\n -->\\r\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\r\\n aria-hidden=\\\"true\\\"\\r\\n class=\\\"mat-calendar-body-label\\\"\\r\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\r\\n </td>\\r\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\r\\n role=\\\"gridcell\\\"\\r\\n class=\\\"mat-calendar-body-cell\\\"\\r\\n [ngClass]=\\\"item.cssClasses\\\"\\r\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\r\\n [attr.data-mat-row]=\\\"rowIndex\\\"\\r\\n [attr.data-mat-col]=\\\"colIndex\\\"\\r\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\r\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-range-start]=\\\"_isRangeStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-range-end]=\\\"_isRangeEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-range]=\\\"_isInRange(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-comparison-bridge-start]=\\\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-comparison-bridge-end]=\\\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-comparison-start]=\\\"_isComparisonStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-comparison-end]=\\\"_isComparisonEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-comparison-range]=\\\"_isInComparisonRange(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-preview-start]=\\\"_isPreviewStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-preview-end]=\\\"_isPreviewEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-preview]=\\\"_isInPreview(item.compareValue)\\\"\\r\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\r\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\r\\n [attr.aria-selected]=\\\"_isSelected(item)\\\"\\r\\n (click)=\\\"_cellClicked(item, $event)\\\"\\r\\n [style.width]=\\\"_cellWidth\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n <div class=\\\"mat-calendar-body-cell-content mat-focus-indicator\\\"\\r\\n [class.mat-calendar-body-selected]=\\\"_isSelected(item)\\\"\\r\\n [class.mat-calendar-body-today]=\\\"todayValue === item.compareValue\\\">\\r\\n {{item.displayValue}}\\r\\n </div>\\r\\n <div class=\\\"mat-calendar-body-cell-preview\\\"></div>\\r\\n </td>\\r\\n</tr>\\r\\n\", styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell:before,.mat-calendar-body-cell:after,.mat-calendar-body-cell-preview{content:\\\"\\\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range):before,.mat-calendar-body-range-start:after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start):before,.mat-calendar-body-comparison-start:after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range):before,[dir=rtl] .mat-calendar-body-range-start:after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start):before,[dir=rtl] .mat-calendar-body-comparison-start:after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0 999px 999px 0}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range):before,.mat-calendar-body-range-end:after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end):before,.mat-calendar-body-comparison-end:after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range):before,[dir=rtl] .mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end):before,[dir=rtl] .mat-calendar-body-comparison-end:after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:999px 0 0 999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start:after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end:after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start:after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start:after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\\n\"], directives: [{ type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }, { type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendarBody, decorators: [{\r\n type: Component,\r\n args: [{ selector: '[ngx-mat-calendar-body]', host: {\r\n 'class': 'ngx-mat-calendar-body',\r\n 'role': 'grid',\r\n 'aria-readonly': 'true'\r\n }, exportAs: 'NgxMatCalendarBody', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<!--\\r\\n If there's not enough space in the first row, create a separate label row. We mark this row as\\r\\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\\r\\n-->\\r\\n<tr *ngIf=\\\"_firstRowOffset < labelMinRequiredCells\\\" aria-hidden=\\\"true\\\">\\r\\n <td class=\\\"mat-calendar-body-label\\\"\\r\\n [attr.colspan]=\\\"numCols\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n {{label}}\\r\\n </td>\\r\\n</tr>\\r\\n\\r\\n<!-- Create the first row separately so we can include a special spacer cell. -->\\r\\n<tr *ngFor=\\\"let row of rows; let rowIndex = index\\\" role=\\\"row\\\">\\r\\n <!--\\r\\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\\r\\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\\r\\n percentage of the width (a variant of the trick described here:\\r\\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\\r\\n -->\\r\\n <td *ngIf=\\\"rowIndex === 0 && _firstRowOffset\\\"\\r\\n aria-hidden=\\\"true\\\"\\r\\n class=\\\"mat-calendar-body-label\\\"\\r\\n [attr.colspan]=\\\"_firstRowOffset\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\\r\\n </td>\\r\\n <td *ngFor=\\\"let item of row; let colIndex = index\\\"\\r\\n role=\\\"gridcell\\\"\\r\\n class=\\\"mat-calendar-body-cell\\\"\\r\\n [ngClass]=\\\"item.cssClasses\\\"\\r\\n [tabindex]=\\\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\\\"\\r\\n [attr.data-mat-row]=\\\"rowIndex\\\"\\r\\n [attr.data-mat-col]=\\\"colIndex\\\"\\r\\n [class.mat-calendar-body-disabled]=\\\"!item.enabled\\\"\\r\\n [class.mat-calendar-body-active]=\\\"_isActiveCell(rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-range-start]=\\\"_isRangeStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-range-end]=\\\"_isRangeEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-range]=\\\"_isInRange(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-comparison-bridge-start]=\\\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-comparison-bridge-end]=\\\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\\\"\\r\\n [class.mat-calendar-body-comparison-start]=\\\"_isComparisonStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-comparison-end]=\\\"_isComparisonEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-comparison-range]=\\\"_isInComparisonRange(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-preview-start]=\\\"_isPreviewStart(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-preview-end]=\\\"_isPreviewEnd(item.compareValue)\\\"\\r\\n [class.mat-calendar-body-in-preview]=\\\"_isInPreview(item.compareValue)\\\"\\r\\n [attr.aria-label]=\\\"item.ariaLabel\\\"\\r\\n [attr.aria-disabled]=\\\"!item.enabled || null\\\"\\r\\n [attr.aria-selected]=\\\"_isSelected(item)\\\"\\r\\n (click)=\\\"_cellClicked(item, $event)\\\"\\r\\n [style.width]=\\\"_cellWidth\\\"\\r\\n [style.paddingTop]=\\\"_cellPadding\\\"\\r\\n [style.paddingBottom]=\\\"_cellPadding\\\">\\r\\n <div class=\\\"mat-calendar-body-cell-content mat-focus-indicator\\\"\\r\\n [class.mat-calendar-body-selected]=\\\"_isSelected(item)\\\"\\r\\n [class.mat-calendar-body-today]=\\\"todayValue === item.compareValue\\\">\\r\\n {{item.displayValue}}\\r\\n </div>\\r\\n <div class=\\\"mat-calendar-body-cell-preview\\\"></div>\\r\\n </td>\\r\\n</tr>\\r\\n\", styles: [\".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell:before,.mat-calendar-body-cell:after,.mat-calendar-body-cell-preview{content:\\\"\\\";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range):before,.mat-calendar-body-range-start:after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start):before,.mat-calendar-body-comparison-start:after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range):before,[dir=rtl] .mat-calendar-body-range-start:after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start):before,[dir=rtl] .mat-calendar-body-comparison-start:after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0 999px 999px 0}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range):before,.mat-calendar-body-range-end:after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end):before,.mat-calendar-body-comparison-end:after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range):before,[dir=rtl] .mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end):before,[dir=rtl] .mat-calendar-body-comparison-end:after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:999px 0 0 999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start:after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end:after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end:after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start:after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start:after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\\n\"] }]\r\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { label: [{\r\n type: Input\r\n }], rows: [{\r\n type: Input\r\n }], todayValue: [{\r\n type: Input\r\n }], startValue: [{\r\n type: Input\r\n }], endValue: [{\r\n type: Input\r\n }], labelMinRequiredCells: [{\r\n type: Input\r\n }], numCols: [{\r\n type: Input\r\n }], activeCell: [{\r\n type: Input\r\n }], isRange: [{\r\n type: Input\r\n }], cellAspectRatio: [{\r\n type: Input\r\n }], comparisonStart: [{\r\n type: Input\r\n }], comparisonEnd: [{\r\n type: Input\r\n }], previewStart: [{\r\n type: Input\r\n }], previewEnd: [{\r\n type: Input\r\n }], selectedValueChange: [{\r\n type: Output\r\n }], previewChange: [{\r\n type: Output\r\n }] } });\r\n/** Checks whether a node is a table cell element. */\r\nfunction isTableCell(node) {\r\n return node.nodeName === 'TD';\r\n}\r\n/** Checks whether a value is the start of a range. */\r\nfunction isStart(value, start, end) {\r\n return end !== null && start !== end && value < end && value === start;\r\n}\r\n/** Checks whether a value is the end of a range. */\r\nfunction isEnd(value, start, end) {\r\n return start !== null && start !== end && value >= start && value === end;\r\n}\r\n/** Checks whether a value is inside of a range. */\r\nfunction isInRange(value, start, end, rangeEnabled) {\r\n return rangeEnabled && start !== null && end !== null && start !== end &&\r\n value >= start && value <= end;\r\n}\n\nclass NgxMatDateAdapter extends DateAdapter {\r\n /**\r\n * Check if two date have same time\r\n * @param a Date 1\r\n * @param b Date 2\r\n */\r\n isSameTime(a, b) {\r\n if (a == null || b == null)\r\n return true;\r\n return this.getHour(a) === this.getHour(b)\r\n && this.getMinute(a) === this.getMinute(b)\r\n && this.getSecond(a) === this.getSecond(b);\r\n }\r\n /**\r\n * Copy time from a date to a another date\r\n * @param toDate\r\n * @param fromDate\r\n */\r\n copyTime(toDate, fromDate) {\r\n this.setHour(toDate, this.getHour(fromDate));\r\n this.setMinute(toDate, this.getMinute(fromDate));\r\n this.setSecond(toDate, this.getSecond(fromDate));\r\n }\r\n /**\r\n * Compares two dates.\r\n * @param first The first date to compare.\r\n * @param second The second date to compare.\r\n * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,\r\n * a number greater than 0 if the first date is later.\r\n */\r\n compareDateWithTime(first, second, showSeconds) {\r\n let res = super.compareDate(first, second) ||\r\n this.getHour(first) - this.getHour(second) ||\r\n this.getMinute(first) - this.getMinute(second);\r\n if (showSeconds) {\r\n res = res || this.getSecond(first) - this.getSecond(second);\r\n }\r\n return res;\r\n }\r\n /**\r\n * Set time by using default values\r\n * @param defaultTime List default values [hour, minute, second]\r\n */\r\n setTimeByDefaultValues(date, defaultTime) {\r\n if (!Array.isArray(defaultTime)) {\r\n throw Error('@Input DefaultTime should be an array');\r\n }\r\n this.setHour(date, defaultTime[0] || 0);\r\n this.setMinute(date, defaultTime[1] || 0);\r\n this.setSecond(date, defaultTime[2] || 0);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/** Injection token used to customize the date range selection behavior. */\r\nconst NGX_MAT_DATE_RANGE_SELECTION_STRATEGY = new InjectionToken('NGX_MAT_DATE_RANGE_SELECTION_STRATEGY');\r\n/** Provides the default date range selection behavior. */\r\nclass DefaultNgxMatCalendarRangeStrategy {\r\n constructor(_dateAdapter) {\r\n this._dateAdapter = _dateAdapter;\r\n }\r\n selectionFinished(date, currentRange) {\r\n let { start, end } = currentRange;\r\n if (start == null) {\r\n start = date;\r\n }\r\n else if (end == null && date && this._dateAdapter.compareDate(date, start) >= 0) {\r\n end = date;\r\n }\r\n else {\r\n start = date;\r\n end = null;\r\n }\r\n return new DateRange(start, end);\r\n }\r\n createPreview(activeDate, currentRange) {\r\n let start = null;\r\n let end = null;\r\n if (currentRange.start && !currentRange.end && activeDate) {\r\n start = currentRange.start;\r\n end = activeDate;\r\n }\r\n return new DateRange(start, end);\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ DefaultNgxMatCalendarRangeStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultNgxMatCalendarRangeStrategy, deps: [{ token: NgxMatDateAdapter }], target: i0.ɵɵFactoryTarget.Injectable });\r\n/** @nocollapse */ /** @nocollapse */ DefaultNgxMatCalendarRangeStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultNgxMatCalendarRangeStrategy });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: DefaultNgxMatCalendarRangeStrategy, decorators: [{\r\n type: Injectable\r\n }], ctorParameters: function () { return [{ type: NgxMatDateAdapter }]; } });\n\nconst LIMIT_TIMES = {\r\n minHour: 0,\r\n maxHour: 24,\r\n minMinute: 0,\r\n maxMinute: 60,\r\n minSecond: 0,\r\n maxSecond: 60,\r\n meridian: 12\r\n};\r\nconst MERIDIANS = {\r\n AM: 'AM',\r\n PM: 'PM'\r\n};\r\nconst DEFAULT_STEP = 1;\r\nconst NUMERIC_REGEX = /[^0-9]/g;\r\nconst PATTERN_INPUT_HOUR = /^(2[0-3]|[0-1][0-9]|[0-9])$/;\r\nconst PATTERN_INPUT_MINUTE = /^([0-5][0-9]|[0-9])$/;\r\nconst PATTERN_INPUT_SECOND = /^([0-5][0-9]|[0-9])$/;\r\nfunction formatTwoDigitTimeValue(val) {\r\n const txt = val.toString();\r\n return txt.length > 1 ? txt : `0${txt}`;\r\n}\r\nfunction createMissingDateImplError(provider) {\r\n return Error(`NgxMatDatepicker: No provider found for ${provider}. You must import one of the following ` +\r\n `modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a ` +\r\n `custom implementation.`);\r\n}\r\n/** Formats a range of years. */\r\nfunction formatYearRange(start, end) {\r\n return `${start} \\u2013 ${end}`;\r\n}\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst DAYS_PER_WEEK = 7;\r\n/**\r\n * An internal component used to display a single month in the datepicker.\r\n * @docs-private\r\n */\r\nclass NgxMatMonthView {\r\n constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir, _rangeStrategy) {\r\n this._changeDetectorRef = _changeDetectorRef;\r\n this._dateFormats = _dateFormats;\r\n this._dateAdapter = _dateAdapter;\r\n this._dir = _dir;\r\n this._rangeStrategy = _rangeStrategy;\r\n this._rerenderSubscription = Subscription.EMPTY;\r\n /** Emits when a new date is selected. */\r\n this.selectedChange = new EventEmitter();\r\n /** Emits when any date is selected. */\r\n this._userSelection = new EventEmitter();\r\n /** Emits when any date is activated. */\r\n this.activeDateChange = new EventEmitter();\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n if (!this._dateFormats) {\r\n throw createMissingDateImplError('NGX_MAT_DATE_FORMATS');\r\n }\r\n this._activeDate = this._dateAdapter.today();\r\n }\r\n /**\r\n * The date to display in this month view (everything other than the month and year is ignored).\r\n */\r\n get activeDate() { return this._activeDate; }\r\n set activeDate(value) {\r\n const oldActiveDate = this._activeDate;\r\n const validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\r\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\r\n if (!this._hasSameMonthAndYear(oldActiveDate, this._activeDate)) {\r\n this._init();\r\n }\r\n }\r\n /** The currently selected date. */\r\n get selected() { return this._selected; }\r\n set selected(value) {\r\n if (value instanceof DateRange) {\r\n this._selected = value;\r\n }\r\n else {\r\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n this._setRanges(this._selected);\r\n }\r\n /** The minimum selectable date. */\r\n get minDate() { return this._minDate; }\r\n set minDate(value) {\r\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The maximum selectable date. */\r\n get maxDate() { return this._maxDate; }\r\n set maxDate(value) {\r\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n ngAfterContentInit() {\r\n this._rerenderSubscription = this._dateAdapter.localeChanges\r\n .pipe(startWith(null))\r\n .subscribe(() => this._init());\r\n }\r\n ngOnDestroy() {\r\n this._rerenderSubscription.unsubscribe();\r\n }\r\n /** Handles when a new date is selected. */\r\n _dateSelected(event) {\r\n const date = event.value;\r\n const selectedYear = this._dateAdapter.getYear(this.activeDate);\r\n const selectedMonth = this._dateAdapter.getMonth(this.activeDate);\r\n const selectedDate = this._dateAdapter.createDate(selectedYear, selectedMonth, date);\r\n let rangeStartDate;\r\n let rangeEndDate;\r\n if (this._selected instanceof DateRange) {\r\n rangeStartDate = this._getDateInCurrentMonth(this._selected.start);\r\n rangeEndDate = this._getDateInCurrentMonth(this._selected.end);\r\n }\r\n else {\r\n rangeStartDate = rangeEndDate = this._getDateInCurrentMonth(this._selected);\r\n }\r\n if (rangeStartDate !== date || rangeEndDate !== date) {\r\n this.selectedChange.emit(selectedDate);\r\n }\r\n this._userSelection.emit({ value: selectedDate, event: event.event });\r\n }\r\n /** Handles keydown events on the calendar body when calendar is in month view. */\r\n _handleCalendarBodyKeydown(event) {\r\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\r\n // disabled ones from being selected. This may not be ideal, we should look into whether\r\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\r\n const oldActiveDate = this._activeDate;\r\n const isRtl = this._isRtl();\r\n switch (event.keyCode) {\r\n case LEFT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? 1 : -1);\r\n break;\r\n case RIGHT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, isRtl ? -1 : 1);\r\n break;\r\n case UP_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, -7);\r\n break;\r\n case DOWN_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 7);\r\n break;\r\n case HOME:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, 1 - this._dateAdapter.getDate(this._activeDate));\r\n break;\r\n case END:\r\n this.activeDate = this._dateAdapter.addCalendarDays(this._activeDate, (this._dateAdapter.getNumDaysInMonth(this._activeDate) -\r\n this._dateAdapter.getDate(this._activeDate)));\r\n break;\r\n case PAGE_UP:\r\n this.activeDate = event.altKey ?\r\n this._dateAdapter.addCalendarYears(this._activeDate, -1) :\r\n this._dateAdapter.addCalendarMonths(this._activeDate, -1);\r\n break;\r\n case PAGE_DOWN:\r\n this.activeDate = event.altKey ?\r\n this._dateAdapter.addCalendarYears(this._activeDate, 1) :\r\n this._dateAdapter.addCalendarMonths(this._activeDate, 1);\r\n break;\r\n case ENTER:\r\n case SPACE:\r\n if (!this.dateFilter || this.dateFilter(this._activeDate)) {\r\n this._dateSelected({ value: this._dateAdapter.getDate(this._activeDate), event });\r\n // Prevent unexpected default actions such as form submission.\r\n event.preventDefault();\r\n }\r\n return;\r\n case ESCAPE:\r\n // Abort the current range selection if the user presses escape mid-selection.\r\n if (this._previewEnd != null) {\r\n this._previewStart = this._previewEnd = null;\r\n this.selectedChange.emit(null);\r\n this._userSelection.emit({ value: null, event });\r\n event.preventDefault();\r\n event.stopPropagation(); // Prevents the overlay from closing.\r\n }\r\n return;\r\n default:\r\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\r\n return;\r\n }\r\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\r\n this.activeDateChange.emit(this.activeDate);\r\n }\r\n this._focusActiveCell();\r\n // Prevent unexpected default actions such as form submission.\r\n event.preventDefault();\r\n }\r\n /** Initializes this month view. */\r\n _init() {\r\n this._setRanges(this.selected);\r\n this._todayDate = this._getCellCompareValue(this._dateAdapter.today());\r\n this._monthLabel =\r\n this._dateAdapter.getMonthNames('short')[this._dateAdapter.getMonth(this.activeDate)]\r\n .toLocaleUpperCase();\r\n let firstOfMonth = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), 1);\r\n this._firstWeekOffset =\r\n (DAYS_PER_WEEK + this._dateAdapter.getDayOfWeek(firstOfMonth) -\r\n this._dateAdapter.getFirstDayOfWeek()) % DAYS_PER_WEEK;\r\n this._initWeekdays();\r\n this._createWeekCells();\r\n this._changeDetectorRef.markForCheck();\r\n }\r\n /** Focuses the active cell after the microtask queue is empty. */\r\n _focusActiveCell(movePreview) {\r\n this._matCalendarBody._focusActiveCell(movePreview);\r\n }\r\n /** Called when the user has activated a new cell and the preview needs to be updated. */\r\n _previewChanged({ event, value: cell }) {\r\n if (this._rangeStrategy) {\r\n // We can assume that this will be a range, because preview\r\n // events aren't fired for single date selections.\r\n const value = cell ? cell.rawValue : null;\r\n const previewRange = this._rangeStrategy.createPreview(value, this.selected, event);\r\n this._previewStart = this._getCellCompareValue(previewRange.start);\r\n this._previewEnd = this._getCellCompareValue(previewRange.end);\r\n // Note that here we need to use `detectChanges`, rather than `markForCheck`, because\r\n // the way `_focusActiveCell` is set up at the moment makes it fire at the wrong time\r\n // when navigating one month back using the keyboard which will cause this handler\r\n // to throw a \"changed after checked\" error when updating the preview state.\r\n this._changeDetectorRef.detectChanges();\r\n }\r\n }\r\n /** Initializes the weekdays. */\r\n _initWeekdays() {\r\n const firstDayOfWeek = this._dateAdapter.getFirstDayOfWeek();\r\n const narrowWeekdays = this._dateAdapter.getDayOfWeekNames('narrow');\r\n const longWeekdays = this._dateAdapter.getDayOfWeekNames('long');\r\n // Rotate the labels for days of the week based on the configured first day of the week.\r\n let weekdays = longWeekdays.map((long, i) => {\r\n return { long, narrow: narrowWeekdays[i] };\r\n });\r\n this._weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));\r\n }\r\n /** Creates MatCalendarCells for the dates in this month. */\r\n _createWeekCells() {\r\n const daysInMonth = this._dateAdapter.getNumDaysInMonth(this.activeDate);\r\n const dateNames = this._dateAdapter.getDateNames();\r\n this._weeks = [[]];\r\n for (let i = 0, cell = this._firstWeekOffset; i < daysInMonth; i++, cell++) {\r\n if (cell == DAYS_PER_WEEK) {\r\n this._weeks.push([]);\r\n cell = 0;\r\n }\r\n const date = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), this._dateAdapter.getMonth(this.activeDate), i + 1);\r\n const enabled = this._shouldEnableDate(date);\r\n const ariaLabel = this._dateAdapter.format(date, this._dateFormats.display.dateA11yLabel);\r\n const cellClasses = this.dateClass ? this.dateClass(date) : undefined;\r\n this._weeks[this._weeks.length - 1].push(new NgxMatCalendarCell(i + 1, dateNames[i], ariaLabel, enabled, cellClasses, this._getCellCompareValue(date), date));\r\n }\r\n }\r\n /** Date filter for the month */\r\n _shouldEnableDate(date) {\r\n return !!date &&\r\n (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&\r\n (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&\r\n (!this.dateFilter || this.dateFilter(date));\r\n }\r\n /**\r\n * Gets the date in this month that the given Date falls on.\r\n * Returns null if the given Date is in another month.\r\n */\r\n _getDateInCurrentMonth(date) {\r\n return date && this._hasSameMonthAndYear(date, this.activeDate) ?\r\n this._dateAdapter.getDate(date) : null;\r\n }\r\n /** Checks whether the 2 dates are non-null and fall within the same month of the same year. */\r\n _hasSameMonthAndYear(d1, d2) {\r\n return !!(d1 && d2 && this._dateAdapter.getMonth(d1) == this._dateAdapter.getMonth(d2) &&\r\n this._dateAdapter.getYear(d1) == this._dateAdapter.getYear(d2));\r\n }\r\n /** Gets the value that will be used to one cell to another. */\r\n _getCellCompareValue(date) {\r\n if (date) {\r\n // We use the time since the Unix epoch to compare dates in this view, rather than the\r\n // cell values, because we need to support ranges that span across multiple months/years.\r\n const year = this._dateAdapter.getYear(date);\r\n const month = this._dateAdapter.getMonth(date);\r\n const day = this._dateAdapter.getDate(date);\r\n return new Date(year, month, day).getTime();\r\n }\r\n return null;\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n /** Determines whether the user has the RTL layout direction. */\r\n _isRtl() {\r\n return this._dir && this._dir.value === 'rtl';\r\n }\r\n /** Sets the current range based on a model value. */\r\n _setRanges(selectedValue) {\r\n if (selectedValue instanceof DateRange) {\r\n this._rangeStart = this._getCellCompareValue(selectedValue.start);\r\n this._rangeEnd = this._getCellCompareValue(selectedValue.end);\r\n this._isRange = true;\r\n }\r\n else {\r\n this._rangeStart = this._rangeEnd = this._getCellCompareValue(selectedValue);\r\n this._isRange = false;\r\n }\r\n this._comparisonRangeStart = this._getCellCompareValue(this.comparisonStart);\r\n this._comparisonRangeEnd = this._getCellCompareValue(this.comparisonEnd);\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMonthView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMonthView, deps: [{ token: i0.ChangeDetectorRef }, { token: NGX_MAT_DATE_FORMATS, optional: true }, { token: NgxMatDateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: NGX_MAT_DATE_RANGE_SELECTION_STRATEGY, optional: true }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMonthView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatMonthView, selector: \"ngx-mat-month-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\", comparisonStart: \"comparisonStart\", comparisonEnd: \"comparisonEnd\" }, outputs: { selectedChange: \"selectedChange\", _userSelection: \"_userSelection\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: NgxMatCalendarBody, descendants: true }], exportAs: [\"ngxMatMonthView\"], ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr>\\r\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">{{day.narrow}}</th>\\r\\n </tr>\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\" aria-hidden=\\\"true\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [label]=\\\"_monthLabel\\\"\\r\\n [rows]=\\\"_weeks\\\"\\r\\n [todayValue]=\\\"_todayDate!\\\"\\r\\n [startValue]=\\\"_rangeStart!\\\"\\r\\n [endValue]=\\\"_rangeEnd!\\\"\\r\\n [comparisonStart]=\\\"_comparisonRangeStart\\\"\\r\\n [comparisonEnd]=\\\"_comparisonRangeEnd\\\"\\r\\n [previewStart]=\\\"_previewStart\\\"\\r\\n [previewEnd]=\\\"_previewEnd\\\"\\r\\n [isRange]=\\\"_isRange\\\"\\r\\n [labelMinRequiredCells]=\\\"3\\\"\\r\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\r\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\r\\n (previewChange)=\\\"_previewChanged($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\", components: [{ type: NgxMatCalendarBody, selector: \"[ngx-mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"NgxMatCalendarBody\"] }], directives: [{ type: i1.NgForOf, selector: \"[ngFor][ngForOf]\", inputs: [\"ngForOf\", \"ngForTrackBy\", \"ngForTemplate\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMonthView, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-month-view', exportAs: 'ngxMatMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr>\\r\\n <th scope=\\\"col\\\" *ngFor=\\\"let day of _weekdays\\\" [attr.aria-label]=\\\"day.long\\\">{{day.narrow}}</th>\\r\\n </tr>\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"7\\\" aria-hidden=\\\"true\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [label]=\\\"_monthLabel\\\"\\r\\n [rows]=\\\"_weeks\\\"\\r\\n [todayValue]=\\\"_todayDate!\\\"\\r\\n [startValue]=\\\"_rangeStart!\\\"\\r\\n [endValue]=\\\"_rangeEnd!\\\"\\r\\n [comparisonStart]=\\\"_comparisonRangeStart\\\"\\r\\n [comparisonEnd]=\\\"_comparisonRangeEnd\\\"\\r\\n [previewStart]=\\\"_previewStart\\\"\\r\\n [previewEnd]=\\\"_previewEnd\\\"\\r\\n [isRange]=\\\"_isRange\\\"\\r\\n [labelMinRequiredCells]=\\\"3\\\"\\r\\n [activeCell]=\\\"_dateAdapter.getDate(activeDate) - 1\\\"\\r\\n (selectedValueChange)=\\\"_dateSelected($event)\\\"\\r\\n (previewChange)=\\\"_previewChanged($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\" }]\r\n }], ctorParameters: function () {\r\n return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_DATE_FORMATS]\r\n }] }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: i2.Directionality, decorators: [{\r\n type: Optional\r\n }] }, { type: undefined, decorators: [{\r\n type: Inject,\r\n args: [NGX_MAT_DATE_RANGE_SELECTION_STRATEGY]\r\n }, {\r\n type: Optional\r\n }] }];\r\n }, propDecorators: { activeDate: [{\r\n type: Input\r\n }], selected: [{\r\n type: Input\r\n }], minDate: [{\r\n type: Input\r\n }], maxDate: [{\r\n type: Input\r\n }], dateFilter: [{\r\n type: Input\r\n }], dateClass: [{\r\n type: Input\r\n }], comparisonStart: [{\r\n type: Input\r\n }], comparisonEnd: [{\r\n type: Input\r\n }], selectedChange: [{\r\n type: Output\r\n }], _userSelection: [{\r\n type: Output\r\n }], activeDateChange: [{\r\n type: Output\r\n }], _matCalendarBody: [{\r\n type: ViewChild,\r\n args: [NgxMatCalendarBody]\r\n }] } });\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst yearsPerPage = 24;\r\nconst yearsPerRow = 4;\r\n/**\r\n * An internal component used to display a year selector in the datepicker.\r\n * @docs-private\r\n */\r\nclass NgxMatMultiYearView {\r\n constructor(_changeDetectorRef, _dateAdapter, _dir) {\r\n this._changeDetectorRef = _changeDetectorRef;\r\n this._dateAdapter = _dateAdapter;\r\n this._dir = _dir;\r\n this._rerenderSubscription = Subscription.EMPTY;\r\n /** Emits when a new year is selected. */\r\n this.selectedChange = new EventEmitter();\r\n /** Emits the selected year. This doesn't imply a change on the selected date */\r\n this.yearSelected = new EventEmitter();\r\n /** Emits when any date is activated. */\r\n this.activeDateChange = new EventEmitter();\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n this._activeDate = this._dateAdapter.today();\r\n }\r\n /** The date to display in this multi-year view (everything other than the year is ignored). */\r\n get activeDate() { return this._activeDate; }\r\n set activeDate(value) {\r\n let oldActiveDate = this._activeDate;\r\n const validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\r\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\r\n if (!isSameMultiYearView(this._dateAdapter, oldActiveDate, this._activeDate, this.minDate, this.maxDate)) {\r\n this._init();\r\n }\r\n }\r\n /** The currently selected date. */\r\n get selected() { return this._selected; }\r\n set selected(value) {\r\n if (value instanceof DateRange) {\r\n this._selected = value;\r\n }\r\n else {\r\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n this._setSelectedYear(value);\r\n }\r\n /** The minimum selectable date. */\r\n get minDate() { return this._minDate; }\r\n set minDate(value) {\r\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The maximum selectable date. */\r\n get maxDate() { return this._maxDate; }\r\n set maxDate(value) {\r\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n ngAfterContentInit() {\r\n this._rerenderSubscription = this._dateAdapter.localeChanges\r\n .pipe(startWith(null))\r\n .subscribe(() => this._init());\r\n }\r\n ngOnDestroy() {\r\n this._rerenderSubscription.unsubscribe();\r\n }\r\n /** Initializes this multi-year view. */\r\n _init() {\r\n this._todayYear = this._dateAdapter.getYear(this._dateAdapter.today());\r\n // We want a range years such that we maximize the number of\r\n // enabled dates visible at once. This prevents issues where the minimum year\r\n // is the last item of a page OR the maximum year is the first item of a page.\r\n // The offset from the active year to the \"slot\" for the starting year is the\r\n // *actual* first rendered year in the multi-year view.\r\n const activeYear = this._dateAdapter.getYear(this._activeDate);\r\n const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\r\n this._years = [];\r\n for (let i = 0, row = []; i < yearsPerPage; i++) {\r\n row.push(minYearOfPage + i);\r\n if (row.length == yearsPerRow) {\r\n this._years.push(row.map(year => this._createCellForYear(year)));\r\n row = [];\r\n }\r\n }\r\n this._changeDetectorRef.markForCheck();\r\n }\r\n /** Handles when a new year is selected. */\r\n _yearSelected(event) {\r\n const year = event.value;\r\n this.yearSelected.emit(this._dateAdapter.createDate(year, 0, 1));\r\n let month = this._dateAdapter.getMonth(this.activeDate);\r\n let daysInMonth = this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(year, month, 1));\r\n this.selectedChange.emit(this._dateAdapter.createDate(year, month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\r\n }\r\n /** Handles keydown events on the calendar body when calendar is in multi-year view. */\r\n _handleCalendarBodyKeydown(event) {\r\n const oldActiveDate = this._activeDate;\r\n const isRtl = this._isRtl();\r\n switch (event.keyCode) {\r\n case LEFT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? 1 : -1);\r\n break;\r\n case RIGHT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);\r\n break;\r\n case UP_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);\r\n break;\r\n case DOWN_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);\r\n break;\r\n case HOME:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate));\r\n break;\r\n case END:\r\n this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerPage - getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate) - 1);\r\n break;\r\n case PAGE_UP:\r\n this.activeDate =\r\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);\r\n break;\r\n case PAGE_DOWN:\r\n this.activeDate =\r\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);\r\n break;\r\n case ENTER:\r\n case SPACE:\r\n this._yearSelected({ value: this._dateAdapter.getYear(this._activeDate), event });\r\n break;\r\n default:\r\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\r\n return;\r\n }\r\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\r\n this.activeDateChange.emit(this.activeDate);\r\n }\r\n this._focusActiveCell();\r\n // Prevent unexpected default actions such as form submission.\r\n event.preventDefault();\r\n }\r\n _getActiveCell() {\r\n return getActiveOffset(this._dateAdapter, this.activeDate, this.minDate, this.maxDate);\r\n }\r\n /** Focuses the active cell after the microtask queue is empty. */\r\n _focusActiveCell() {\r\n this._matCalendarBody._focusActiveCell();\r\n }\r\n /** Creates an MatCalendarCell for the given year. */\r\n _createCellForYear(year) {\r\n let yearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(year, 0, 1));\r\n return new NgxMatCalendarCell(year, yearName, yearName, this._shouldEnableYear(year));\r\n }\r\n /** Whether the given year is enabled. */\r\n _shouldEnableYear(year) {\r\n // disable if the year is greater than maxDate lower than minDate\r\n if (year === undefined || year === null ||\r\n (this.maxDate && year > this._dateAdapter.getYear(this.maxDate)) ||\r\n (this.minDate && year < this._dateAdapter.getYear(this.minDate))) {\r\n return false;\r\n }\r\n // enable if it reaches here and there's no filter defined\r\n if (!this.dateFilter) {\r\n return true;\r\n }\r\n const firstOfYear = this._dateAdapter.createDate(year, 0, 1);\r\n // If any date in the year is enabled count the year as enabled.\r\n for (let date = firstOfYear; this._dateAdapter.getYear(date) == year; date = this._dateAdapter.addCalendarDays(date, 1)) {\r\n if (this.dateFilter(date)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n /** Determines whether the user has the RTL layout direction. */\r\n _isRtl() {\r\n return this._dir && this._dir.value === 'rtl';\r\n }\r\n /** Sets the currently-highlighted year based on a model value. */\r\n _setSelectedYear(value) {\r\n this._selectedYear = null;\r\n if (value instanceof DateRange) {\r\n const displayValue = value.start || value.end;\r\n if (displayValue) {\r\n this._selectedYear = this._dateAdapter.getYear(displayValue);\r\n }\r\n }\r\n else if (value) {\r\n this._selectedYear = this._dateAdapter.getYear(value);\r\n }\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMultiYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMultiYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: NgxMatDateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMultiYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatMultiYearView, selector: \"ngx-mat-multi-year-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\" }, outputs: { selectedChange: \"selectedChange\", yearSelected: \"yearSelected\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: NgxMatCalendarBody, descendants: true }], exportAs: [\"ngxMatMultiYearView\"], ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [rows]=\\\"_years\\\"\\r\\n [todayValue]=\\\"_todayYear\\\"\\r\\n [startValue]=\\\"_selectedYear!\\\"\\r\\n [endValue]=\\\"_selectedYear!\\\"\\r\\n [numCols]=\\\"4\\\"\\r\\n [cellAspectRatio]=\\\"4 / 7\\\"\\r\\n [activeCell]=\\\"_getActiveCell()\\\"\\r\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\\r\\n\", components: [{ type: NgxMatCalendarBody, selector: \"[ngx-mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"NgxMatCalendarBody\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMultiYearView, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-multi-year-view', exportAs: 'ngxMatMultiYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [rows]=\\\"_years\\\"\\r\\n [todayValue]=\\\"_todayYear\\\"\\r\\n [startValue]=\\\"_selectedYear!\\\"\\r\\n [endValue]=\\\"_selectedYear!\\\"\\r\\n [numCols]=\\\"4\\\"\\r\\n [cellAspectRatio]=\\\"4 / 7\\\"\\r\\n [activeCell]=\\\"_getActiveCell()\\\"\\r\\n (selectedValueChange)=\\\"_yearSelected($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\\r\\n\" }]\r\n }], ctorParameters: function () {\r\n return [{ type: i0.ChangeDetectorRef }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: i2.Directionality, decorators: [{\r\n type: Optional\r\n }] }];\r\n }, propDecorators: { activeDate: [{\r\n type: Input\r\n }], selected: [{\r\n type: Input\r\n }], minDate: [{\r\n type: Input\r\n }], maxDate: [{\r\n type: Input\r\n }], dateFilter: [{\r\n type: Input\r\n }], selectedChange: [{\r\n type: Output\r\n }], yearSelected: [{\r\n type: Output\r\n }], activeDateChange: [{\r\n type: Output\r\n }], _matCalendarBody: [{\r\n type: ViewChild,\r\n args: [NgxMatCalendarBody]\r\n }] } });\r\nfunction isSameMultiYearView(dateAdapter, date1, date2, minDate, maxDate) {\r\n const year1 = dateAdapter.getYear(date1);\r\n const year2 = dateAdapter.getYear(date2);\r\n const startingYear = getStartingYear(dateAdapter, minDate, maxDate);\r\n return Math.floor((year1 - startingYear) / yearsPerPage) ===\r\n Math.floor((year2 - startingYear) / yearsPerPage);\r\n}\r\n/**\r\n * When the multi-year view is first opened, the active year will be in view.\r\n * So we compute how many years are between the active year and the *slot* where our\r\n * \"startingYear\" will render when paged into view.\r\n */\r\nfunction getActiveOffset(dateAdapter, activeDate, minDate, maxDate) {\r\n const activeYear = dateAdapter.getYear(activeDate);\r\n return euclideanModulo((activeYear - getStartingYear(dateAdapter, minDate, maxDate)), yearsPerPage);\r\n}\r\n/**\r\n * We pick a \"starting\" year such that either the maximum year would be at the end\r\n * or the minimum year would be at the beginning of a page.\r\n */\r\nfunction getStartingYear(dateAdapter, minDate, maxDate) {\r\n let startingYear = 0;\r\n if (maxDate) {\r\n const maxYear = dateAdapter.getYear(maxDate);\r\n startingYear = maxYear - yearsPerPage + 1;\r\n }\r\n else if (minDate) {\r\n startingYear = dateAdapter.getYear(minDate);\r\n }\r\n return startingYear;\r\n}\r\n/** Gets remainder that is non-negative, even if first number is negative */\r\nfunction euclideanModulo(a, b) {\r\n return (a % b + b) % b;\r\n}\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/**\r\n * An internal component used to display a single year in the datepicker.\r\n * @docs-private\r\n */\r\nclass NgxMatYearView {\r\n constructor(_changeDetectorRef, _dateFormats, _dateAdapter, _dir) {\r\n this._changeDetectorRef = _changeDetectorRef;\r\n this._dateFormats = _dateFormats;\r\n this._dateAdapter = _dateAdapter;\r\n this._dir = _dir;\r\n this._rerenderSubscription = Subscription.EMPTY;\r\n /** Emits when a new month is selected. */\r\n this.selectedChange = new EventEmitter();\r\n /** Emits the selected month. This doesn't imply a change on the selected date */\r\n this.monthSelected = new EventEmitter();\r\n /** Emits when any date is activated. */\r\n this.activeDateChange = new EventEmitter();\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n if (!this._dateFormats) {\r\n throw createMissingDateImplError('NGX_MAT_DATE_FORMATS');\r\n }\r\n this._activeDate = this._dateAdapter.today();\r\n }\r\n /** The date to display in this year view (everything other than the year is ignored). */\r\n get activeDate() { return this._activeDate; }\r\n set activeDate(value) {\r\n let oldActiveDate = this._activeDate;\r\n const validDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value)) || this._dateAdapter.today();\r\n this._activeDate = this._dateAdapter.clampDate(validDate, this.minDate, this.maxDate);\r\n if (this._dateAdapter.getYear(oldActiveDate) !== this._dateAdapter.getYear(this._activeDate)) {\r\n this._init();\r\n }\r\n }\r\n /** The currently selected date. */\r\n get selected() { return this._selected; }\r\n set selected(value) {\r\n if (value instanceof DateRange) {\r\n this._selected = value;\r\n }\r\n else {\r\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n this._setSelectedMonth(value);\r\n }\r\n /** The minimum selectable date. */\r\n get minDate() { return this._minDate; }\r\n set minDate(value) {\r\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The maximum selectable date. */\r\n get maxDate() { return this._maxDate; }\r\n set maxDate(value) {\r\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n ngAfterContentInit() {\r\n this._rerenderSubscription = this._dateAdapter.localeChanges\r\n .pipe(startWith(null))\r\n .subscribe(() => this._init());\r\n }\r\n ngOnDestroy() {\r\n this._rerenderSubscription.unsubscribe();\r\n }\r\n /** Handles when a new month is selected. */\r\n _monthSelected(event) {\r\n const month = event.value;\r\n const normalizedDate = this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1);\r\n this.monthSelected.emit(normalizedDate);\r\n const daysInMonth = this._dateAdapter.getNumDaysInMonth(normalizedDate);\r\n this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, Math.min(this._dateAdapter.getDate(this.activeDate), daysInMonth)));\r\n }\r\n /** Handles keydown events on the calendar body when calendar is in year view. */\r\n _handleCalendarBodyKeydown(event) {\r\n // TODO(mmalerba): We currently allow keyboard navigation to disabled dates, but just prevent\r\n // disabled ones from being selected. This may not be ideal, we should look into whether\r\n // navigation should skip over disabled dates, and if so, how to implement that efficiently.\r\n const oldActiveDate = this._activeDate;\r\n const isRtl = this._isRtl();\r\n switch (event.keyCode) {\r\n case LEFT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? 1 : -1);\r\n break;\r\n case RIGHT_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, isRtl ? -1 : 1);\r\n break;\r\n case UP_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -4);\r\n break;\r\n case DOWN_ARROW:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 4);\r\n break;\r\n case HOME:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, -this._dateAdapter.getMonth(this._activeDate));\r\n break;\r\n case END:\r\n this.activeDate = this._dateAdapter.addCalendarMonths(this._activeDate, 11 - this._dateAdapter.getMonth(this._activeDate));\r\n break;\r\n case PAGE_UP:\r\n this.activeDate =\r\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -10 : -1);\r\n break;\r\n case PAGE_DOWN:\r\n this.activeDate =\r\n this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? 10 : 1);\r\n break;\r\n case ENTER:\r\n case SPACE:\r\n this._monthSelected({ value: this._dateAdapter.getMonth(this._activeDate), event });\r\n break;\r\n default:\r\n // Don't prevent default or focus active cell on keys that we don't explicitly handle.\r\n return;\r\n }\r\n if (this._dateAdapter.compareDate(oldActiveDate, this.activeDate)) {\r\n this.activeDateChange.emit(this.activeDate);\r\n }\r\n this._focusActiveCell();\r\n // Prevent unexpected default actions such as form submission.\r\n event.preventDefault();\r\n }\r\n /** Initializes this year view. */\r\n _init() {\r\n this._setSelectedMonth(this.selected);\r\n this._todayMonth = this._getMonthInCurrentYear(this._dateAdapter.today());\r\n this._yearLabel = this._dateAdapter.getYearName(this.activeDate);\r\n let monthNames = this._dateAdapter.getMonthNames('short');\r\n // First row of months only contains 5 elements so we can fit the year label on the same row.\r\n this._months = [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]].map(row => row.map(month => this._createCellForMonth(month, monthNames[month])));\r\n this._changeDetectorRef.markForCheck();\r\n }\r\n /** Focuses the active cell after the microtask queue is empty. */\r\n _focusActiveCell() {\r\n this._matCalendarBody._focusActiveCell();\r\n }\r\n /**\r\n * Gets the month in this year that the given Date falls on.\r\n * Returns null if the given Date is in another year.\r\n */\r\n _getMonthInCurrentYear(date) {\r\n return date && this._dateAdapter.getYear(date) == this._dateAdapter.getYear(this.activeDate) ?\r\n this._dateAdapter.getMonth(date) : null;\r\n }\r\n /** Creates an MatCalendarCell for the given month. */\r\n _createCellForMonth(month, monthName) {\r\n let ariaLabel = this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate), month, 1), this._dateFormats.display.monthYearA11yLabel);\r\n return new NgxMatCalendarCell(month, monthName.toLocaleUpperCase(), ariaLabel, this._shouldEnableMonth(month));\r\n }\r\n /** Whether the given month is enabled. */\r\n _shouldEnableMonth(month) {\r\n const activeYear = this._dateAdapter.getYear(this.activeDate);\r\n if (month === undefined || month === null ||\r\n this._isYearAndMonthAfterMaxDate(activeYear, month) ||\r\n this._isYearAndMonthBeforeMinDate(activeYear, month)) {\r\n return false;\r\n }\r\n if (!this.dateFilter) {\r\n return true;\r\n }\r\n const firstOfMonth = this._dateAdapter.createDate(activeYear, month, 1);\r\n // If any date in the month is enabled count the month as enabled.\r\n for (let date = firstOfMonth; this._dateAdapter.getMonth(date) == month; date = this._dateAdapter.addCalendarDays(date, 1)) {\r\n if (this.dateFilter(date)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n /**\r\n * Tests whether the combination month/year is after this.maxDate, considering\r\n * just the month and year of this.maxDate\r\n */\r\n _isYearAndMonthAfterMaxDate(year, month) {\r\n if (this.maxDate) {\r\n const maxYear = this._dateAdapter.getYear(this.maxDate);\r\n const maxMonth = this._dateAdapter.getMonth(this.maxDate);\r\n return year > maxYear || (year === maxYear && month > maxMonth);\r\n }\r\n return false;\r\n }\r\n /**\r\n * Tests whether the combination month/year is before this.minDate, considering\r\n * just the month and year of this.minDate\r\n */\r\n _isYearAndMonthBeforeMinDate(year, month) {\r\n if (this.minDate) {\r\n const minYear = this._dateAdapter.getYear(this.minDate);\r\n const minMonth = this._dateAdapter.getMonth(this.minDate);\r\n return year < minYear || (year === minYear && month < minMonth);\r\n }\r\n return false;\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n /** Determines whether the user has the RTL layout direction. */\r\n _isRtl() {\r\n return this._dir && this._dir.value === 'rtl';\r\n }\r\n /** Sets the currently-selected month based on a model value. */\r\n _setSelectedMonth(value) {\r\n if (value instanceof DateRange) {\r\n this._selectedMonth = this._getMonthInCurrentYear(value.start) ||\r\n this._getMonthInCurrentYear(value.end);\r\n }\r\n else {\r\n this._selectedMonth = this._getMonthInCurrentYear(value);\r\n }\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatYearView.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatYearView, deps: [{ token: i0.ChangeDetectorRef }, { token: NGX_MAT_DATE_FORMATS, optional: true }, { token: NgxMatDateAdapter, optional: true }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatYearView.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatYearView, selector: \"ngx-mat-year-view\", inputs: { activeDate: \"activeDate\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\" }, outputs: { selectedChange: \"selectedChange\", monthSelected: \"monthSelected\", activeDateChange: \"activeDateChange\" }, viewQueries: [{ propertyName: \"_matCalendarBody\", first: true, predicate: NgxMatCalendarBody, descendants: true }], exportAs: [\"ngxMatYearView\"], ngImport: i0, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [label]=\\\"_yearLabel\\\"\\r\\n [rows]=\\\"_months\\\"\\r\\n [todayValue]=\\\"_todayMonth!\\\"\\r\\n [startValue]=\\\"_selectedMonth!\\\"\\r\\n [endValue]=\\\"_selectedMonth!\\\"\\r\\n [labelMinRequiredCells]=\\\"2\\\"\\r\\n [numCols]=\\\"4\\\"\\r\\n [cellAspectRatio]=\\\"4 / 7\\\"\\r\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\r\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\", components: [{ type: NgxMatCalendarBody, selector: \"[ngx-mat-calendar-body]\", inputs: [\"label\", \"rows\", \"todayValue\", \"startValue\", \"endValue\", \"labelMinRequiredCells\", \"numCols\", \"activeCell\", \"isRange\", \"cellAspectRatio\", \"comparisonStart\", \"comparisonEnd\", \"previewStart\", \"previewEnd\"], outputs: [\"selectedValueChange\", \"previewChange\"], exportAs: [\"NgxMatCalendarBody\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatYearView, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-year-view', exportAs: 'ngxMatYearView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<table class=\\\"mat-calendar-table\\\" role=\\\"presentation\\\">\\r\\n <thead class=\\\"mat-calendar-table-header\\\">\\r\\n <tr><th class=\\\"mat-calendar-table-header-divider\\\" colspan=\\\"4\\\"></th></tr>\\r\\n </thead>\\r\\n <tbody ngx-mat-calendar-body\\r\\n [label]=\\\"_yearLabel\\\"\\r\\n [rows]=\\\"_months\\\"\\r\\n [todayValue]=\\\"_todayMonth!\\\"\\r\\n [startValue]=\\\"_selectedMonth!\\\"\\r\\n [endValue]=\\\"_selectedMonth!\\\"\\r\\n [labelMinRequiredCells]=\\\"2\\\"\\r\\n [numCols]=\\\"4\\\"\\r\\n [cellAspectRatio]=\\\"4 / 7\\\"\\r\\n [activeCell]=\\\"_dateAdapter.getMonth(activeDate)\\\"\\r\\n (selectedValueChange)=\\\"_monthSelected($event)\\\"\\r\\n (keydown)=\\\"_handleCalendarBodyKeydown($event)\\\">\\r\\n </tbody>\\r\\n</table>\\r\\n\" }]\r\n }], ctorParameters: function () {\r\n return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_DATE_FORMATS]\r\n }] }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: i2.Directionality, decorators: [{\r\n type: Optional\r\n }] }];\r\n }, propDecorators: { activeDate: [{\r\n type: Input\r\n }], selected: [{\r\n type: Input\r\n }], minDate: [{\r\n type: Input\r\n }], maxDate: [{\r\n type: Input\r\n }], dateFilter: [{\r\n type: Input\r\n }], selectedChange: [{\r\n type: Output\r\n }], monthSelected: [{\r\n type: Output\r\n }], activeDateChange: [{\r\n type: Output\r\n }], _matCalendarBody: [{\r\n type: ViewChild,\r\n args: [NgxMatCalendarBody]\r\n }] } });\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/** Default header for NgxMatCalendar */\r\nclass NgxMatCalendarHeader {\r\n constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {\r\n this._intl = _intl;\r\n this.calendar = calendar;\r\n this._dateAdapter = _dateAdapter;\r\n this._dateFormats = _dateFormats;\r\n this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());\r\n }\r\n /** The label for the current calendar view. */\r\n get periodButtonText() {\r\n if (this.calendar.currentView == 'month') {\r\n return this._dateAdapter\r\n .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)\r\n .toLocaleUpperCase();\r\n }\r\n if (this.calendar.currentView == 'year') {\r\n return this._dateAdapter.getYearName(this.calendar.activeDate);\r\n }\r\n // The offset from the active year to the \"slot\" for the starting year is the\r\n // *actual* first rendered year in the multi-year view, and the last year is\r\n // just yearsPerPage - 1 away.\r\n const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);\r\n const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);\r\n const maxYearOfPage = minYearOfPage + yearsPerPage - 1;\r\n const minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));\r\n const maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));\r\n return formatYearRange(minYearName, maxYearName);\r\n }\r\n get periodButtonLabel() {\r\n return this.calendar.currentView == 'month' ?\r\n this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;\r\n }\r\n /** The label for the previous button. */\r\n get prevButtonLabel() {\r\n return {\r\n 'month': this._intl.prevMonthLabel,\r\n 'year': this._intl.prevYearLabel,\r\n 'multi-year': this._intl.prevMultiYearLabel\r\n }[this.calendar.currentView];\r\n }\r\n /** The label for the next button. */\r\n get nextButtonLabel() {\r\n return {\r\n 'month': this._intl.nextMonthLabel,\r\n 'year': this._intl.nextYearLabel,\r\n 'multi-year': this._intl.nextMultiYearLabel\r\n }[this.calendar.currentView];\r\n }\r\n /** Handles user clicks on the period label. */\r\n currentPeriodClicked() {\r\n this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';\r\n }\r\n /** Handles user clicks on the previous button. */\r\n previousClicked() {\r\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\r\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) :\r\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);\r\n }\r\n /** Handles user clicks on the next button. */\r\n nextClicked() {\r\n this.calendar.activeDate = this.calendar.currentView == 'month' ?\r\n this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) :\r\n this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);\r\n }\r\n /** Whether the previous period button is enabled. */\r\n previousEnabled() {\r\n if (!this.calendar.minDate) {\r\n return true;\r\n }\r\n return !this.calendar.minDate ||\r\n !this._isSameView(this.calendar.activeDate, this.calendar.minDate);\r\n }\r\n /** Whether the next period button is enabled. */\r\n nextEnabled() {\r\n return !this.calendar.maxDate ||\r\n !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);\r\n }\r\n /** Whether the two dates represent the same view in the current view mode (month or year). */\r\n _isSameView(date1, date2) {\r\n if (this.calendar.currentView == 'month') {\r\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&\r\n this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);\r\n }\r\n if (this.calendar.currentView == 'year') {\r\n return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);\r\n }\r\n // Otherwise we are in 'multi-year' view.\r\n return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendarHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendarHeader, deps: [{ token: i1$1.MatDatepickerIntl }, { token: forwardRef(() => NgxMatCalendar) }, { token: NgxMatDateAdapter, optional: true }, { token: NGX_MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendarHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatCalendarHeader, selector: \"ngx-mat-calendar-header\", exportAs: [\"ngxMatCalendarHeader\"], ngImport: i0, template: \"<div class=\\\"mat-calendar-header\\\">\\r\\n <div class=\\\"mat-calendar-controls\\\">\\r\\n <button mat-button type=\\\"button\\\" class=\\\"mat-calendar-period-button\\\"\\r\\n (click)=\\\"currentPeriodClicked()\\\" [attr.aria-label]=\\\"periodButtonLabel\\\"\\r\\n cdkAriaLive=\\\"polite\\\">\\r\\n {{periodButtonText}}\\r\\n <div class=\\\"mat-calendar-arrow\\\"\\r\\n [class.mat-calendar-invert]=\\\"calendar.currentView != 'month'\\\"></div>\\r\\n </button>\\r\\n\\r\\n <div class=\\\"mat-calendar-spacer\\\"></div>\\r\\n\\r\\n <ng-content></ng-content>\\r\\n\\r\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-previous-button\\\"\\r\\n [disabled]=\\\"!previousEnabled()\\\" (click)=\\\"previousClicked()\\\"\\r\\n [attr.aria-label]=\\\"prevButtonLabel\\\">\\r\\n </button>\\r\\n\\r\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-next-button\\\"\\r\\n [disabled]=\\\"!nextEnabled()\\\" (click)=\\\"nextClicked()\\\"\\r\\n [attr.aria-label]=\\\"nextButtonLabel\\\">\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\", components: [{ type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendarHeader, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-calendar-header', exportAs: 'ngxMatCalendarHeader', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"<div class=\\\"mat-calendar-header\\\">\\r\\n <div class=\\\"mat-calendar-controls\\\">\\r\\n <button mat-button type=\\\"button\\\" class=\\\"mat-calendar-period-button\\\"\\r\\n (click)=\\\"currentPeriodClicked()\\\" [attr.aria-label]=\\\"periodButtonLabel\\\"\\r\\n cdkAriaLive=\\\"polite\\\">\\r\\n {{periodButtonText}}\\r\\n <div class=\\\"mat-calendar-arrow\\\"\\r\\n [class.mat-calendar-invert]=\\\"calendar.currentView != 'month'\\\"></div>\\r\\n </button>\\r\\n\\r\\n <div class=\\\"mat-calendar-spacer\\\"></div>\\r\\n\\r\\n <ng-content></ng-content>\\r\\n\\r\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-previous-button\\\"\\r\\n [disabled]=\\\"!previousEnabled()\\\" (click)=\\\"previousClicked()\\\"\\r\\n [attr.aria-label]=\\\"prevButtonLabel\\\">\\r\\n </button>\\r\\n\\r\\n <button mat-icon-button type=\\\"button\\\" class=\\\"mat-calendar-next-button\\\"\\r\\n [disabled]=\\\"!nextEnabled()\\\" (click)=\\\"nextClicked()\\\"\\r\\n [attr.aria-label]=\\\"nextButtonLabel\\\">\\r\\n </button>\\r\\n </div>\\r\\n</div>\\r\\n\" }]\r\n }], ctorParameters: function () {\r\n return [{ type: i1$1.MatDatepickerIntl }, { type: NgxMatCalendar, decorators: [{\r\n type: Inject,\r\n args: [forwardRef(() => NgxMatCalendar)]\r\n }] }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_DATE_FORMATS]\r\n }] }, { type: i0.ChangeDetectorRef }];\r\n } });\r\n/**\r\n * A calendar that is used as part of the datepicker.\r\n * @docs-private\r\n */\r\nclass NgxMatCalendar {\r\n constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {\r\n this._dateAdapter = _dateAdapter;\r\n this._dateFormats = _dateFormats;\r\n this._changeDetectorRef = _changeDetectorRef;\r\n /**\r\n * Used for scheduling that focus should be moved to the active cell on the next tick.\r\n * We need to schedule it, rather than do it immediately, because we have to wait\r\n * for Angular to re-evaluate the view children.\r\n */\r\n this._moveFocusOnNextTick = false;\r\n /** Whether the calendar should be started in month or year view. */\r\n this.startView = 'month';\r\n /** Emits when the currently selected date changes. */\r\n this.selectedChange = new EventEmitter();\r\n /**\r\n * Emits the year chosen in multiyear view.\r\n * This doesn't imply a change on the selected date.\r\n */\r\n this.yearSelected = new EventEmitter();\r\n /**\r\n * Emits the month chosen in year view.\r\n * This doesn't imply a change on the selected date.\r\n */\r\n this.monthSelected = new EventEmitter();\r\n /** Emits when any date is selected. */\r\n this._userSelection = new EventEmitter();\r\n /**\r\n * Emits whenever there is a state change that the header may need to respond to.\r\n */\r\n this.stateChanges = new Subject();\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxDateAdapter');\r\n }\r\n if (!this._dateFormats) {\r\n throw createMissingDateImplError('NGX_MAT_DATE_FORMATS');\r\n }\r\n this._intlChanges = _intl.changes.subscribe(() => {\r\n _changeDetectorRef.markForCheck();\r\n this.stateChanges.next();\r\n });\r\n }\r\n /** A date representing the period (month or year) to start the calendar in. */\r\n get startAt() { return this._startAt; }\r\n set startAt(value) {\r\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The currently selected date. */\r\n get selected() { return this._selected; }\r\n set selected(value) {\r\n this._selected = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The minimum selectable date. */\r\n get minDate() { return this._minDate; }\r\n set minDate(value) {\r\n this._minDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** The maximum selectable date. */\r\n get maxDate() { return this._maxDate; }\r\n set maxDate(value) {\r\n this._maxDate = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /**\r\n * The current active date. This determines which time period is shown and which date is\r\n * highlighted when using keyboard navigation.\r\n */\r\n get activeDate() { return this._clampedActiveDate; }\r\n set activeDate(value) {\r\n this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);\r\n this.stateChanges.next();\r\n this._changeDetectorRef.markForCheck();\r\n }\r\n /** Whether the calendar is in month view. */\r\n get currentView() { return this._currentView; }\r\n set currentView(value) {\r\n this._currentView = value;\r\n this._moveFocusOnNextTick = true;\r\n this._changeDetectorRef.markForCheck();\r\n }\r\n ngAfterContentInit() {\r\n this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || NgxMatCalendarHeader);\r\n this.activeDate = this.startAt || this._dateAdapter.today();\r\n // Assign to the private property since we don't want to move focus on init.\r\n this._currentView = this.startView;\r\n }\r\n ngAfterViewChecked() {\r\n if (this._moveFocusOnNextTick) {\r\n this._moveFocusOnNextTick = false;\r\n this.focusActiveCell();\r\n }\r\n }\r\n ngOnDestroy() {\r\n this._intlChanges.unsubscribe();\r\n this.stateChanges.complete();\r\n }\r\n ngOnChanges(changes) {\r\n const change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];\r\n if (change && !change.firstChange) {\r\n const view = this._getCurrentViewComponent();\r\n if (view) {\r\n // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are\r\n // passed down to the view via data bindings which won't be up-to-date when we call `_init`.\r\n this._changeDetectorRef.detectChanges();\r\n view._init();\r\n }\r\n }\r\n this.stateChanges.next();\r\n }\r\n focusActiveCell() {\r\n this._getCurrentViewComponent()._focusActiveCell();\r\n }\r\n /** Updates today's date after an update of the active date */\r\n updateTodaysDate() {\r\n let view = this.currentView == 'month' ? this.monthView :\r\n (this.currentView == 'year' ? this.yearView : this.multiYearView);\r\n view.ngAfterContentInit();\r\n }\r\n /** Handles date selection in the month view. */\r\n _dateSelected(date) {\r\n if (date && !this._dateAdapter.sameDate(date, this.selected)) {\r\n this.selectedChange.emit(date);\r\n }\r\n }\r\n /** Handles year selection in the multiyear view. */\r\n _yearSelectedInMultiYearView(normalizedYear) {\r\n this.yearSelected.emit(normalizedYear);\r\n }\r\n /** Handles month selection in the year view. */\r\n _monthSelectedInYearView(normalizedMonth) {\r\n this.monthSelected.emit(normalizedMonth);\r\n }\r\n _userSelected() {\r\n this._userSelection.emit();\r\n }\r\n /** Handles year/month selection in the multi-year/year views. */\r\n _goToDateInView(date, view) {\r\n this.activeDate = date;\r\n this.currentView = view;\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n /** Returns the component instance that corresponds to the current calendar view. */\r\n _getCurrentViewComponent() {\r\n return this.monthView || this.yearView || this.multiYearView;\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendar, deps: [{ token: i1$1.MatDatepickerIntl }, { token: NgxMatDateAdapter, optional: true }, { token: NGX_MAT_DATE_FORMATS, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatCalendar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatCalendar, selector: \"ngx-mat-calendar\", inputs: { headerComponent: \"headerComponent\", startAt: \"startAt\", startView: \"startView\", selected: \"selected\", minDate: \"minDate\", maxDate: \"maxDate\", dateFilter: \"dateFilter\", dateClass: \"dateClass\" }, outputs: { selectedChange: \"selectedChange\", yearSelected: \"yearSelected\", monthSelected: \"monthSelected\", _userSelection: \"_userSelection\" }, host: { classAttribute: \"mat-calendar\" }, viewQueries: [{ propertyName: \"monthView\", first: true, predicate: NgxMatMonthView, descendants: true }, { propertyName: \"yearView\", first: true, predicate: NgxMatYearView, descendants: true }, { propertyName: \"multiYearView\", first: true, predicate: NgxMatMultiYearView, descendants: true }], exportAs: [\"ngxMatCalendar\"], usesOnChanges: true, ngImport: i0, template: \"\\r\\n<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\r\\n\\r\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\r\\n <ngx-mat-month-view\\r\\n *ngSwitchCase=\\\"'month'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n [dateClass]=\\\"dateClass\\\"\\r\\n (selectedChange)=\\\"_dateSelected($event)\\\"\\r\\n (_userSelection)=\\\"_userSelected()\\\">\\r\\n </ngx-mat-month-view>\\r\\n\\r\\n <ngx-mat-year-view\\r\\n *ngSwitchCase=\\\"'year'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\r\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\r\\n </ngx-mat-year-view>\\r\\n\\r\\n <ngx-mat-multi-year-view\\r\\n *ngSwitchCase=\\\"'multi-year'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\r\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\r\\n </ngx-mat-multi-year-view>\\r\\n</div>\\r\\n\", styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}\\n\"], components: [{ type: NgxMatMonthView, selector: \"ngx-mat-month-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\", \"comparisonStart\", \"comparisonEnd\"], outputs: [\"selectedChange\", \"_userSelection\", \"activeDateChange\"], exportAs: [\"ngxMatMonthView\"] }, { type: NgxMatYearView, selector: \"ngx-mat-year-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\"], outputs: [\"selectedChange\", \"monthSelected\", \"activeDateChange\"], exportAs: [\"ngxMatYearView\"] }, { type: NgxMatMultiYearView, selector: \"ngx-mat-multi-year-view\", inputs: [\"activeDate\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\"], outputs: [\"selectedChange\", \"yearSelected\", \"activeDateChange\"], exportAs: [\"ngxMatMultiYearView\"] }], directives: [{ type: i7.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }, { type: i1.NgSwitch, selector: \"[ngSwitch]\", inputs: [\"ngSwitch\"] }, { type: i1.NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: [\"ngSwitchCase\"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatCalendar, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-calendar', host: {\r\n 'class': 'mat-calendar',\r\n }, exportAs: 'ngxMatCalendar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: \"\\r\\n<ng-template [cdkPortalOutlet]=\\\"_calendarHeaderPortal\\\"></ng-template>\\r\\n\\r\\n<div class=\\\"mat-calendar-content\\\" [ngSwitch]=\\\"currentView\\\" cdkMonitorSubtreeFocus tabindex=\\\"-1\\\">\\r\\n <ngx-mat-month-view\\r\\n *ngSwitchCase=\\\"'month'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n [dateClass]=\\\"dateClass\\\"\\r\\n (selectedChange)=\\\"_dateSelected($event)\\\"\\r\\n (_userSelection)=\\\"_userSelected()\\\">\\r\\n </ngx-mat-month-view>\\r\\n\\r\\n <ngx-mat-year-view\\r\\n *ngSwitchCase=\\\"'year'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n (monthSelected)=\\\"_monthSelectedInYearView($event)\\\"\\r\\n (selectedChange)=\\\"_goToDateInView($event, 'month')\\\">\\r\\n </ngx-mat-year-view>\\r\\n\\r\\n <ngx-mat-multi-year-view\\r\\n *ngSwitchCase=\\\"'multi-year'\\\"\\r\\n [(activeDate)]=\\\"activeDate\\\"\\r\\n [selected]=\\\"selected\\\"\\r\\n [dateFilter]=\\\"dateFilter\\\"\\r\\n [maxDate]=\\\"maxDate\\\"\\r\\n [minDate]=\\\"minDate\\\"\\r\\n (yearSelected)=\\\"_yearSelectedInMultiYearView($event)\\\"\\r\\n (selectedChange)=\\\"_goToDateInView($event, 'year')\\\">\\r\\n </ngx-mat-multi-year-view>\\r\\n</div>\\r\\n\", styles: [\".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.71429% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button:after,.mat-calendar-next-button:after{top:0;left:0;right:0;bottom:0;position:absolute;content:\\\"\\\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button:after{border-left-width:2px;transform:translate(2px) rotate(-45deg)}.mat-calendar-next-button:after{border-right-width:2px;transform:translate(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider:after{content:\\\"\\\";position:absolute;top:0;left:-8px;right:-8px;height:1px}\\n\"] }]\r\n }], ctorParameters: function () {\r\n return [{ type: i1$1.MatDatepickerIntl }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_DATE_FORMATS]\r\n }] }, { type: i0.ChangeDetectorRef }];\r\n }, propDecorators: { headerComponent: [{\r\n type: Input\r\n }], startAt: [{\r\n type: Input\r\n }], startView: [{\r\n type: Input\r\n }], selected: [{\r\n type: Input\r\n }], minDate: [{\r\n type: Input\r\n }], maxDate: [{\r\n type: Input\r\n }], dateFilter: [{\r\n type: Input\r\n }], dateClass: [{\r\n type: Input\r\n }], selectedChange: [{\r\n type: Output\r\n }], yearSelected: [{\r\n type: Output\r\n }], monthSelected: [{\r\n type: Output\r\n }], _userSelection: [{\r\n type: Output\r\n }], monthView: [{\r\n type: ViewChild,\r\n args: [NgxMatMonthView]\r\n }], yearView: [{\r\n type: ViewChild,\r\n args: [NgxMatYearView]\r\n }], multiYearView: [{\r\n type: ViewChild,\r\n args: [NgxMatMultiYearView]\r\n }] } });\n\nclass NgxMatTimepickerComponent {\r\n constructor(_dateAdapter, cd, formBuilder) {\r\n this._dateAdapter = _dateAdapter;\r\n this.cd = cd;\r\n this.formBuilder = formBuilder;\r\n this.disabled = false;\r\n this.showSpinners = true;\r\n this.stepHour = DEFAULT_STEP;\r\n this.stepMinute = DEFAULT_STEP;\r\n this.stepSecond = DEFAULT_STEP;\r\n this.showSeconds = false;\r\n this.disableMinute = false;\r\n this.enableMeridian = false;\r\n this.color = 'primary';\r\n this.meridian = MERIDIANS.AM;\r\n this._onChange = () => { };\r\n this._onTouched = () => { };\r\n this._destroyed = new Subject();\r\n this.pattern = PATTERN_INPUT_HOUR;\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n this.form = this.formBuilder.group({\r\n hour: [{ value: null, disabled: this.disabled }, [Validators.required, Validators.pattern(PATTERN_INPUT_HOUR)]],\r\n minute: [{ value: null, disabled: this.disabled }, [Validators.required, Validators.pattern(PATTERN_INPUT_MINUTE)]],\r\n second: [{ value: null, disabled: this.disabled }, [Validators.required, Validators.pattern(PATTERN_INPUT_SECOND)]]\r\n });\r\n }\r\n /** Hour */\r\n get hour() {\r\n let val = Number(this.form.controls['hour'].value);\r\n return isNaN(val) ? 0 : val;\r\n }\r\n ;\r\n get minute() {\r\n let val = Number(this.form.controls['minute'].value);\r\n return isNaN(val) ? 0 : val;\r\n }\r\n ;\r\n get second() {\r\n let val = Number(this.form.controls['second'].value);\r\n return isNaN(val) ? 0 : val;\r\n }\r\n ;\r\n /** Whether or not the form is valid */\r\n get valid() {\r\n return this.form.valid;\r\n }\r\n ngOnInit() {\r\n this.form.valueChanges.pipe(takeUntil(this._destroyed), debounceTime(400)).subscribe(val => {\r\n this._updateModel();\r\n });\r\n }\r\n ngOnChanges(changes) {\r\n if (changes.disabled || changes.disableMinute) {\r\n this._setDisableStates();\r\n }\r\n }\r\n ngOnDestroy() {\r\n this._destroyed.next();\r\n this._destroyed.complete();\r\n }\r\n /**\r\n * Writes a new value to the element.\r\n * @param obj\r\n */\r\n writeValue(val) {\r\n if (val != null) {\r\n this._model = val;\r\n }\r\n else {\r\n this._model = this._dateAdapter.today();\r\n if (this.defaultTime != null) {\r\n this._dateAdapter.setTimeByDefaultValues(this._model, this.defaultTime);\r\n }\r\n }\r\n this._updateHourMinuteSecond();\r\n }\r\n /** Registers a callback function that is called when the control's value changes in the UI. */\r\n registerOnChange(fn) {\r\n this._onChange = fn;\r\n }\r\n /**\r\n * Set the function to be called when the control receives a touch event.\r\n */\r\n registerOnTouched(fn) {\r\n this._onTouched = fn;\r\n }\r\n /** Enables or disables the appropriate DOM element */\r\n setDisabledState(isDisabled) {\r\n this._disabled = isDisabled;\r\n this.cd.markForCheck();\r\n }\r\n /**\r\n * Format input\r\n * @param input\r\n */\r\n formatInput(input) {\r\n input.value = input.value.replace(NUMERIC_REGEX, '');\r\n }\r\n /** Toggle meridian */\r\n toggleMeridian() {\r\n this.meridian = (this.meridian === MERIDIANS.AM) ? MERIDIANS.PM : MERIDIANS.AM;\r\n this.change('hour');\r\n }\r\n /** Change property of time */\r\n change(prop, up) {\r\n const next = this._getNextValueByProp(prop, up);\r\n this.form.controls[prop].setValue(formatTwoDigitTimeValue(next), { onlySelf: false, emitEvent: false });\r\n this._updateModel();\r\n }\r\n /** Update controls of form by model */\r\n _updateHourMinuteSecond() {\r\n let _hour = this._dateAdapter.getHour(this._model);\r\n const _minute = this._dateAdapter.getMinute(this._model);\r\n const _second = this._dateAdapter.getSecond(this._model);\r\n if (this.enableMeridian) {\r\n if (_hour >= LIMIT_TIMES.meridian) {\r\n _hour = _hour - LIMIT_TIMES.meridian;\r\n this.meridian = MERIDIANS.PM;\r\n }\r\n else {\r\n this.meridian = MERIDIANS.AM;\r\n }\r\n if (_hour === 0) {\r\n _hour = LIMIT_TIMES.meridian;\r\n }\r\n }\r\n this.form.controls['hour'].setValue(formatTwoDigitTimeValue(_hour));\r\n this.form.controls['minute'].setValue(formatTwoDigitTimeValue(_minute));\r\n this.form.controls['second'].setValue(formatTwoDigitTimeValue(_second));\r\n }\r\n /** Update model */\r\n _updateModel() {\r\n let _hour = this.hour;\r\n if (this.enableMeridian) {\r\n if (this.meridian === MERIDIANS.AM && _hour === LIMIT_TIMES.meridian) {\r\n _hour = 0;\r\n }\r\n else if (this.meridian === MERIDIANS.PM && _hour !== LIMIT_TIMES.meridian) {\r\n _hour = _hour + LIMIT_TIMES.meridian;\r\n }\r\n }\r\n this._dateAdapter.setHour(this._model, _hour);\r\n this._dateAdapter.setMinute(this._model, this.minute);\r\n this._dateAdapter.setSecond(this._model, this.second);\r\n this._onChange(this._model);\r\n }\r\n /**\r\n * Get next value by property\r\n * @param prop\r\n * @param up\r\n */\r\n _getNextValueByProp(prop, up) {\r\n const keyProp = prop[0].toUpperCase() + prop.slice(1);\r\n const min = LIMIT_TIMES[`min${keyProp}`];\r\n let max = LIMIT_TIMES[`max${keyProp}`];\r\n if (prop === 'hour' && this.enableMeridian) {\r\n max = LIMIT_TIMES.meridian;\r\n }\r\n let next;\r\n if (up == null) {\r\n next = this[prop] % (max);\r\n if (prop === 'hour' && this.enableMeridian) {\r\n if (next === 0)\r\n next = max;\r\n }\r\n }\r\n else {\r\n next = up ? this[prop] + this[`step${keyProp}`] : this[prop] - this[`step${keyProp}`];\r\n if (prop === 'hour' && this.enableMeridian) {\r\n next = next % (max + 1);\r\n if (next === 0)\r\n next = up ? 1 : max;\r\n }\r\n else {\r\n next = next % max;\r\n }\r\n if (up) {\r\n next = next > max ? (next - max + min) : next;\r\n }\r\n else {\r\n next = next < min ? (next - min + max) : next;\r\n }\r\n }\r\n return next;\r\n }\r\n /**\r\n * Set disable states\r\n */\r\n _setDisableStates() {\r\n if (this.disabled) {\r\n this.form.disable();\r\n }\r\n else {\r\n this.form.enable();\r\n if (this.disableMinute) {\r\n this.form.get('minute').disable();\r\n if (this.showSeconds) {\r\n this.form.get('second').disable();\r\n }\r\n }\r\n }\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatTimepickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerComponent, deps: [{ token: NgxMatDateAdapter, optional: true }, { token: i0.ChangeDetectorRef }, { token: i2$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatTimepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatTimepickerComponent, selector: \"ngx-mat-timepicker\", inputs: { disabled: \"disabled\", showSpinners: \"showSpinners\", stepHour: \"stepHour\", stepMinute: \"stepMinute\", stepSecond: \"stepSecond\", showSeconds: \"showSeconds\", disableMinute: \"disableMinute\", enableMeridian: \"enableMeridian\", defaultTime: \"defaultTime\", color: \"color\" }, host: { classAttribute: \"ngx-mat-timepicker\" }, providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef((() => NgxMatTimepickerComponent)),\r\n multi: true\r\n }\r\n ], exportAs: [\"ngxMatTimepicker\"], usesOnChanges: true, ngImport: i0, template: \"<form [formGroup]=\\\"form\\\">\\r\\n <table class=\\\"ngx-mat-timepicker-table\\\">\\r\\n <tbody class=\\\"ngx-mat-timepicker-tbody\\\">\\r\\n <tr *ngIf=\\\"showSpinners\\\">\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('hour', true)\\\"\\r\\n [disabled]=\\\"disabled\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td></td>\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('minute', true)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button> </td>\\r\\n <td></td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('second', true)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\"></td>\\r\\n </tr>\\r\\n\\r\\n <tr>\\r\\n <td>\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\" formControlName=\\\"hour\\\"\\r\\n (keydown.ArrowUp)=\\\"change('hour', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('hour', false); $event.preventDefault()\\\" (blur)=\\\"change('hour')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n <td class=\\\"ngx-mat-timepicker-spacer\\\">:</td>\\r\\n <td>\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\"\\r\\n formControlName=\\\"minute\\\" (keydown.ArrowUp)=\\\"change('minute', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('minute', false); $event.preventDefault()\\\" (blur)=\\\"change('minute')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n <td *ngIf=\\\"showSeconds\\\" class=\\\"ngx-mat-timepicker-spacer\\\">:</td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\"\\r\\n formControlName=\\\"second\\\" (keydown.ArrowUp)=\\\"change('second', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('second', false); $event.preventDefault()\\\" (blur)=\\\"change('second')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-meridian\\\">\\r\\n <button mat-button (click)=\\\"toggleMeridian()\\\" mat-stroked-button [color]=\\\"color\\\" [disabled]=\\\"disabled\\\">\\r\\n {{meridian}}\\r\\n </button>\\r\\n </td>\\r\\n </tr>\\r\\n\\r\\n <tr *ngIf=\\\"showSpinners\\\">\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('hour', false)\\\"\\r\\n [disabled]=\\\"disabled\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button> </td>\\r\\n <td></td>\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('minute', false)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button> </td>\\r\\n <td *ngIf=\\\"showSeconds\\\"></td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('second', false)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\"></td>\\r\\n </tr>\\r\\n </tbody>\\r\\n </table>\\r\\n</form>\", styles: [\".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\\n\"], components: [{ type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }, { type: i4.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }, { type: i2$2.MatFormField, selector: \"mat-form-field\", inputs: [\"color\", \"appearance\", \"hideRequiredMarker\", \"hintLabel\", \"floatLabel\"], exportAs: [\"matFormField\"] }], directives: [{ type: i2$1.ɵNgNoValidate, selector: \"form:not([ngNoForm]):not([ngNativeValidate])\" }, { type: i2$1.NgControlStatusGroup, selector: \"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]\" }, { type: i2$1.FormGroupDirective, selector: \"[formGroup]\", inputs: [\"formGroup\"], outputs: [\"ngSubmit\"], exportAs: [\"ngForm\"] }, { type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i7$1.MatInput, selector: \"input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]\", inputs: [\"disabled\", \"id\", \"placeholder\", \"required\", \"type\", \"errorStateMatcher\", \"aria-describedby\", \"value\", \"readonly\"], exportAs: [\"matInput\"] }, { type: i2$1.DefaultValueAccessor, selector: \"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]\" }, { type: i2$1.MaxLengthValidator, selector: \"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]\", inputs: [\"maxlength\"] }, { type: i2$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { type: i2$1.FormControlName, selector: \"[formControlName]\", inputs: [\"formControlName\", \"disabled\", \"ngModel\"], outputs: [\"ngModelChange\"] }], encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerComponent, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-timepicker', host: {\r\n 'class': 'ngx-mat-timepicker'\r\n }, providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef((() => NgxMatTimepickerComponent)),\r\n multi: true\r\n }\r\n ], exportAs: 'ngxMatTimepicker', encapsulation: ViewEncapsulation.None, template: \"<form [formGroup]=\\\"form\\\">\\r\\n <table class=\\\"ngx-mat-timepicker-table\\\">\\r\\n <tbody class=\\\"ngx-mat-timepicker-tbody\\\">\\r\\n <tr *ngIf=\\\"showSpinners\\\">\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('hour', true)\\\"\\r\\n [disabled]=\\\"disabled\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td></td>\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('minute', true)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button> </td>\\r\\n <td></td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_less icon\\\" (click)=\\\"change('second', true)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_less</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\"></td>\\r\\n </tr>\\r\\n\\r\\n <tr>\\r\\n <td>\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\" formControlName=\\\"hour\\\"\\r\\n (keydown.ArrowUp)=\\\"change('hour', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('hour', false); $event.preventDefault()\\\" (blur)=\\\"change('hour')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n <td class=\\\"ngx-mat-timepicker-spacer\\\">:</td>\\r\\n <td>\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\"\\r\\n formControlName=\\\"minute\\\" (keydown.ArrowUp)=\\\"change('minute', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('minute', false); $event.preventDefault()\\\" (blur)=\\\"change('minute')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n <td *ngIf=\\\"showSeconds\\\" class=\\\"ngx-mat-timepicker-spacer\\\">:</td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <mat-form-field appearance=\\\"legacy\\\">\\r\\n <input type=\\\"text\\\" matInput (input)=\\\"formatInput($any($event).target)\\\" maxlength=\\\"2\\\"\\r\\n formControlName=\\\"second\\\" (keydown.ArrowUp)=\\\"change('second', true); $event.preventDefault()\\\"\\r\\n (keydown.ArrowDown)=\\\"change('second', false); $event.preventDefault()\\\" (blur)=\\\"change('second')\\\">\\r\\n </mat-form-field>\\r\\n </td>\\r\\n\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-meridian\\\">\\r\\n <button mat-button (click)=\\\"toggleMeridian()\\\" mat-stroked-button [color]=\\\"color\\\" [disabled]=\\\"disabled\\\">\\r\\n {{meridian}}\\r\\n </button>\\r\\n </td>\\r\\n </tr>\\r\\n\\r\\n <tr *ngIf=\\\"showSpinners\\\">\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('hour', false)\\\"\\r\\n [disabled]=\\\"disabled\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button> </td>\\r\\n <td></td>\\r\\n <td>\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('minute', false)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button> </td>\\r\\n <td *ngIf=\\\"showSeconds\\\"></td>\\r\\n <td *ngIf=\\\"showSeconds\\\">\\r\\n <button type=\\\"button\\\" mat-icon-button aria-label=\\\"expand_more icon\\\" (click)=\\\"change('second', false)\\\"\\r\\n [disabled]=\\\"disabled || disableMinute\\\">\\r\\n <mat-icon>expand_more</mat-icon>\\r\\n </button>\\r\\n </td>\\r\\n <td *ngIf=\\\"enableMeridian\\\" class=\\\"ngx-mat-timepicker-spacer\\\"></td>\\r\\n <td *ngIf=\\\"enableMeridian\\\"></td>\\r\\n </tr>\\r\\n </tbody>\\r\\n </table>\\r\\n</form>\", styles: [\".ngx-mat-timepicker{font-size:13px}.ngx-mat-timepicker form{min-width:90px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td{text-align:center}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-spacer{font-weight:bold}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td.ngx-mat-timepicker-meridian .mat-button{min-width:64px;line-height:36px;min-width:0;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button{height:24px;width:24px;line-height:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-icon-button .mat-icon{font-size:24px}.ngx-mat-timepicker form .ngx-mat-timepicker-table .ngx-mat-timepicker-tbody tr td .mat-form-field{width:20px;max-width:20px;text-align:center}\\n\"] }]\r\n }], ctorParameters: function () {\r\n return [{ type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: i0.ChangeDetectorRef }, { type: i2$1.FormBuilder }];\r\n }, propDecorators: { disabled: [{\r\n type: Input\r\n }], showSpinners: [{\r\n type: Input\r\n }], stepHour: [{\r\n type: Input\r\n }], stepMinute: [{\r\n type: Input\r\n }], stepSecond: [{\r\n type: Input\r\n }], showSeconds: [{\r\n type: Input\r\n }], disableMinute: [{\r\n type: Input\r\n }], enableMeridian: [{\r\n type: Input\r\n }], defaultTime: [{\r\n type: Input\r\n }], color: [{\r\n type: Input\r\n }] } });\n\n/** Used to generate a unique ID for each datepicker instance. */\r\nlet datepickerUid = 0;\r\n// Boilerplate for applying mixins to MatDatepickerContent.\r\n/** @docs-private */\r\nconst _MatDatetimepickerContentBase = mixinColor(class {\r\n constructor(_elementRef) {\r\n this._elementRef = _elementRef;\r\n }\r\n});\r\n/**\r\n * Component used as the content for the datepicker dialog and popup. We use this instead of using\r\n * NgxMatCalendar directly as the content so we can control the initial focus. This also gives us a\r\n * place to put additional features of the popup that are not part of the calendar itself in the\r\n * future. (e.g. confirmation buttons).\r\n * @docs-private\r\n */\r\nclass NgxMatDatetimeContent extends _MatDatetimepickerContentBase {\r\n constructor(elementRef, cd, _viewContainerRef) {\r\n super(elementRef);\r\n this.cd = cd;\r\n this._viewContainerRef = _viewContainerRef;\r\n }\r\n /** Whether or not the selected date is valid (min,max...) */\r\n get valid() {\r\n if (this.datepicker.hideTime)\r\n return this.datepicker.valid;\r\n return this._timePicker && this._timePicker.valid && this.datepicker.valid;\r\n }\r\n get isViewMonth() {\r\n if (!this._calendar || this._calendar.currentView == null)\r\n return true;\r\n return this._calendar.currentView == 'month';\r\n }\r\n ngAfterViewInit() {\r\n this._calendar.focusActiveCell();\r\n if (this.datepicker._customIcon) {\r\n this._templateCustomIconPortal = new TemplatePortal(this.datepicker._customIcon, this._viewContainerRef);\r\n this.cd.detectChanges();\r\n }\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimeContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimeContent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimeContent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatDatetimeContent, selector: \"ngx-mat-datetime-content\", inputs: { color: \"color\" }, host: { properties: { \"@transformPanel\": \"\\\"enter\\\"\", \"class.mat-datepicker-content-touch\": \"datepicker.touchUi\" }, classAttribute: \"mat-datepicker-content\" }, viewQueries: [{ propertyName: \"_calendar\", first: true, predicate: NgxMatCalendar, descendants: true }, { propertyName: \"_timePicker\", first: true, predicate: NgxMatTimepickerComponent, descendants: true }], exportAs: [\"ngxMatDatetimeContent\"], usesInheritance: true, ngImport: i0, template: \"<ngx-mat-calendar cdkTrapFocus [id]=\\\"datepicker.id\\\" [ngClass]=\\\"datepicker.panelClass\\\" [startAt]=\\\"datepicker.startAt\\\"\\r\\n [startView]=\\\"datepicker.startView\\\" [minDate]=\\\"datepicker._minDate\\\" [maxDate]=\\\"datepicker._maxDate\\\"\\r\\n [dateFilter]=\\\"datepicker._dateFilter\\\" [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\r\\n [selected]=\\\"datepicker._selected\\\" [dateClass]=\\\"datepicker.dateClass\\\" [@fadeInCalendar]=\\\"'enter'\\\"\\r\\n (selectedChange)=\\\"datepicker.select($event)\\\" (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\r\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\">\\r\\n</ngx-mat-calendar>\\r\\n<ng-container *ngIf=\\\"isViewMonth\\\">\\r\\n <div *ngIf=\\\"!datepicker._hideTime\\\" class=\\\"time-container\\\" [class.disable-seconds]=\\\"!datepicker._showSeconds\\\">\\r\\n <ngx-mat-timepicker [showSpinners]=\\\"datepicker._showSpinners\\\" [showSeconds]=\\\"datepicker._showSeconds\\\"\\r\\n [disabled]=\\\"datepicker._disabled\\\" [stepHour]=\\\"datepicker._stepHour\\\" [stepMinute]=\\\"datepicker._stepMinute\\\"\\r\\n [stepSecond]=\\\"datepicker._stepSecond\\\" [(ngModel)]=\\\"datepicker._selected\\\" [color]=\\\"datepicker._color\\\"\\r\\n [enableMeridian]=\\\"datepicker._enableMeridian\\\" [disableMinute]=\\\"datepicker._disableMinute\\\">\\r\\n </ngx-mat-timepicker>\\r\\n </div>\\r\\n <div class=\\\"actions\\\">\\r\\n <button mat-button (click)=\\\"datepicker.ok()\\\" mat-stroked-button [color]=\\\"datepicker._color\\\" cdkFocusInitial\\r\\n [disabled]=\\\"!valid\\\">\\r\\n <mat-icon *ngIf=\\\"!datepicker._customIcon\\\">done</mat-icon>\\r\\n <ng-template [cdkPortalOutlet]=\\\"_templateCustomIconPortal\\\"></ng-template>\\r\\n </button>\\r\\n </div>\\r\\n</ng-container>\", styles: [\".mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:\\\"\\\";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\\n\"], components: [{ type: NgxMatCalendar, selector: \"ngx-mat-calendar\", inputs: [\"headerComponent\", \"startAt\", \"startView\", \"selected\", \"minDate\", \"maxDate\", \"dateFilter\", \"dateClass\"], outputs: [\"selectedChange\", \"yearSelected\", \"monthSelected\", \"_userSelection\"], exportAs: [\"ngxMatCalendar\"] }, { type: NgxMatTimepickerComponent, selector: \"ngx-mat-timepicker\", inputs: [\"disabled\", \"showSpinners\", \"stepHour\", \"stepMinute\", \"stepSecond\", \"showSeconds\", \"disableMinute\", \"enableMeridian\", \"defaultTime\", \"color\"], exportAs: [\"ngxMatTimepicker\"] }, { type: i3.MatButton, selector: \"button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]\", inputs: [\"disabled\", \"disableRipple\", \"color\"], exportAs: [\"matButton\"] }, { type: i4.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }], directives: [{ type: i1.NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { type: i1.NgIf, selector: \"[ngIf]\", inputs: [\"ngIf\", \"ngIfThen\", \"ngIfElse\"] }, { type: i2$1.NgControlStatus, selector: \"[formControlName],[ngModel],[formControl]\" }, { type: i2$1.NgModel, selector: \"[ngModel]:not([formControlName]):not([formControl])\", inputs: [\"name\", \"disabled\", \"ngModel\", \"ngModelOptions\"], outputs: [\"ngModelChange\"], exportAs: [\"ngModel\"] }, { type: i7.CdkPortalOutlet, selector: \"[cdkPortalOutlet]\", inputs: [\"cdkPortalOutlet\"], outputs: [\"attached\"], exportAs: [\"cdkPortalOutlet\"] }], animations: [\r\n matDatepickerAnimations.transformPanel,\r\n matDatepickerAnimations.fadeInCalendar,\r\n ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimeContent, decorators: [{\r\n type: Component,\r\n args: [{ selector: 'ngx-mat-datetime-content', host: {\r\n 'class': 'mat-datepicker-content',\r\n '[@transformPanel]': '\"enter\"',\r\n '[class.mat-datepicker-content-touch]': 'datepicker.touchUi',\r\n }, animations: [\r\n matDatepickerAnimations.transformPanel,\r\n matDatepickerAnimations.fadeInCalendar,\r\n ], exportAs: 'ngxMatDatetimeContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['color'], template: \"<ngx-mat-calendar cdkTrapFocus [id]=\\\"datepicker.id\\\" [ngClass]=\\\"datepicker.panelClass\\\" [startAt]=\\\"datepicker.startAt\\\"\\r\\n [startView]=\\\"datepicker.startView\\\" [minDate]=\\\"datepicker._minDate\\\" [maxDate]=\\\"datepicker._maxDate\\\"\\r\\n [dateFilter]=\\\"datepicker._dateFilter\\\" [headerComponent]=\\\"datepicker.calendarHeaderComponent\\\"\\r\\n [selected]=\\\"datepicker._selected\\\" [dateClass]=\\\"datepicker.dateClass\\\" [@fadeInCalendar]=\\\"'enter'\\\"\\r\\n (selectedChange)=\\\"datepicker.select($event)\\\" (yearSelected)=\\\"datepicker._selectYear($event)\\\"\\r\\n (monthSelected)=\\\"datepicker._selectMonth($event)\\\">\\r\\n</ngx-mat-calendar>\\r\\n<ng-container *ngIf=\\\"isViewMonth\\\">\\r\\n <div *ngIf=\\\"!datepicker._hideTime\\\" class=\\\"time-container\\\" [class.disable-seconds]=\\\"!datepicker._showSeconds\\\">\\r\\n <ngx-mat-timepicker [showSpinners]=\\\"datepicker._showSpinners\\\" [showSeconds]=\\\"datepicker._showSeconds\\\"\\r\\n [disabled]=\\\"datepicker._disabled\\\" [stepHour]=\\\"datepicker._stepHour\\\" [stepMinute]=\\\"datepicker._stepMinute\\\"\\r\\n [stepSecond]=\\\"datepicker._stepSecond\\\" [(ngModel)]=\\\"datepicker._selected\\\" [color]=\\\"datepicker._color\\\"\\r\\n [enableMeridian]=\\\"datepicker._enableMeridian\\\" [disableMinute]=\\\"datepicker._disableMinute\\\">\\r\\n </ngx-mat-timepicker>\\r\\n </div>\\r\\n <div class=\\\"actions\\\">\\r\\n <button mat-button (click)=\\\"datepicker.ok()\\\" mat-stroked-button [color]=\\\"datepicker._color\\\" cdkFocusInitial\\r\\n [disabled]=\\\"!valid\\\">\\r\\n <mat-icon *ngIf=\\\"!datepicker._customIcon\\\">done</mat-icon>\\r\\n <ng-template [cdkPortalOutlet]=\\\"_templateCustomIconPortal\\\"></ng-template>\\r\\n </button>\\r\\n </div>\\r\\n</ng-container>\", styles: [\".mat-datepicker-content{display:block;border-radius:4px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-datepicker-content .mat-calendar{width:296px}.mat-datepicker-content .time-container{display:flex;position:relative;padding-top:5px;justify-content:center}.mat-datepicker-content .time-container.disable-seconds .ngx-mat-timepicker .table{margin-left:9px}.mat-datepicker-content .time-container:before{content:\\\"\\\";position:absolute;top:0;left:0;right:0;height:1px;background-color:#0000001f}.mat-datepicker-content .actions{display:flex;padding:5px 15px 10px;justify-content:flex-end}\\n\"] }]\r\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { _calendar: [{\r\n type: ViewChild,\r\n args: [NgxMatCalendar]\r\n }], _timePicker: [{\r\n type: ViewChild,\r\n args: [NgxMatTimepickerComponent]\r\n }] } });\r\n// TODO(mmalerba): We use a component instead of a directive here so the user can use implicit\r\n// template reference variables (e.g. #d vs #d=\"matDatepicker\"). We can change this to a directive\r\n// if angular adds support for `exportAs: '$implicit'` on directives.\r\n/** Component responsible for managing the datepicker popup/dialog. */\r\nclass NgxMatDatetimePicker {\r\n constructor(_dialog, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dateAdapter, _dir, _document) {\r\n this._dialog = _dialog;\r\n this._overlay = _overlay;\r\n this._ngZone = _ngZone;\r\n this._viewContainerRef = _viewContainerRef;\r\n this._dateAdapter = _dateAdapter;\r\n this._dir = _dir;\r\n this._document = _document;\r\n /** The view that the calendar should start in. */\r\n this.startView = 'month';\r\n this._defaultColor = 'primary';\r\n this._touchUi = false;\r\n this._hideTime = false;\r\n /**\r\n * Emits selected year in multiyear view.\r\n * This doesn't imply a change on the selected date.\r\n */\r\n this.yearSelected = new EventEmitter();\r\n /**\r\n * Emits selected month in year view.\r\n * This doesn't imply a change on the selected date.\r\n */\r\n this.monthSelected = new EventEmitter();\r\n /** Emits when the datepicker has been opened. */\r\n this.openedStream = new EventEmitter();\r\n /** Emits when the datepicker has been closed. */\r\n this.closedStream = new EventEmitter();\r\n this._opened = false;\r\n this._showSpinners = true;\r\n this._showSeconds = false;\r\n this._stepHour = DEFAULT_STEP;\r\n this._stepMinute = DEFAULT_STEP;\r\n this._stepSecond = DEFAULT_STEP;\r\n this._enableMeridian = false;\r\n this._hasBackdrop = true;\r\n /** The id for the datepicker calendar. */\r\n this.id = `mat-datepicker-${datepickerUid++}`;\r\n this._validSelected = null;\r\n /** The element that was focused before the datepicker was opened. */\r\n this._focusedElementBeforeOpen = null;\r\n /** Subscription to value changes in the associated input element. */\r\n this._inputSubscription = Subscription.EMPTY;\r\n /** Emits when the datepicker is disabled. */\r\n this.stateChanges = new Subject();\r\n /** Emits new selected date when selected date changes. */\r\n this._selectedChanged = new Subject();\r\n /** The form control validator for the min date. */\r\n this._minValidator = () => {\r\n return (!this._minDate || !this._selected ||\r\n this._dateAdapter.compareDateWithTime(this._minDate, this._selected, this.showSeconds) <= 0) ?\r\n null : { 'matDatetimePickerMin': { 'min': this._minDate, 'actual': this._selected } };\r\n };\r\n /** The form control validator for the max date. */\r\n this._maxValidator = () => {\r\n return (!this._maxDate || !this._selected ||\r\n this._dateAdapter.compareDateWithTime(this._maxDate, this._selected, this.showSeconds) >= 0) ?\r\n null : { 'matDatetimePickerMax': { 'max': this._maxDate, 'actual': this._selected } };\r\n };\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n this._scrollStrategy = scrollStrategy;\r\n }\r\n /** The date to open the calendar to initially. */\r\n get startAt() {\r\n // If an explicit startAt is set we start there, otherwise we start at whatever the currently\r\n // selected value is.\r\n return this._startAt || (this.datepickerInput ? this.datepickerInput.value : null);\r\n }\r\n set startAt(value) {\r\n this._startAt = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n }\r\n /** Default Color palette to use on the datepicker's calendar. */\r\n get defaultColor() {\r\n return this._defaultColor;\r\n }\r\n set defaultColor(value) {\r\n this._defaultColor = value;\r\n }\r\n /** Color palette to use on the datepicker's calendar. */\r\n get color() {\r\n return this._color ||\r\n (this.datepickerInput ? this.datepickerInput._getThemePalette() : 'primary');\r\n }\r\n set color(value) {\r\n this._color = value;\r\n }\r\n /**\r\n * Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather\r\n * than a popup and elements have more padding to allow for bigger touch targets.\r\n */\r\n get touchUi() { return this._touchUi; }\r\n set touchUi(value) {\r\n this._touchUi = coerceBooleanProperty(value);\r\n }\r\n get hideTime() { return this._hideTime; }\r\n set hideTime(value) {\r\n this._hideTime = coerceBooleanProperty(value);\r\n }\r\n /** Whether the datepicker pop-up should be disabled. */\r\n get disabled() {\r\n return this._disabled === undefined && this.datepickerInput ?\r\n this.datepickerInput.disabled : !!this._disabled;\r\n }\r\n set disabled(value) {\r\n const newValue = coerceBooleanProperty(value);\r\n if (newValue !== this._disabled) {\r\n this._disabled = newValue;\r\n this.stateChanges.next(newValue);\r\n }\r\n }\r\n /** Whether the calendar is open. */\r\n get opened() { return this._opened; }\r\n set opened(value) { value ? this.open() : this.close(); }\r\n /** Whether the timepicker'spinners is shown. */\r\n get showSpinners() { return this._showSpinners; }\r\n set showSpinners(value) { this._showSpinners = value; }\r\n /** Whether the second part is disabled. */\r\n get showSeconds() { return this._showSeconds; }\r\n set showSeconds(value) { this._showSeconds = value; }\r\n /** Step hour */\r\n get stepHour() { return this._stepHour; }\r\n set stepHour(value) { this._stepHour = value; }\r\n /** Step minute */\r\n get stepMinute() { return this._stepMinute; }\r\n set stepMinute(value) { this._stepMinute = value; }\r\n /** Step second */\r\n get stepSecond() { return this._stepSecond; }\r\n set stepSecond(value) { this._stepSecond = value; }\r\n /** Enable meridian */\r\n get enableMeridian() { return this._enableMeridian; }\r\n set enableMeridian(value) { this._enableMeridian = value; }\r\n /** disable minute */\r\n get disableMinute() { return this._disableMinute; }\r\n set disableMinute(value) { this._disableMinute = value; }\r\n /** Step second */\r\n get defaultTime() { return this._defaultTime; }\r\n set defaultTime(value) { this._defaultTime = value; }\r\n /** The currently selected date. */\r\n get _selected() { return this._validSelected; }\r\n set _selected(value) { this._validSelected = value; }\r\n /** The minimum selectable date. */\r\n get _minDate() {\r\n return this.datepickerInput && this.datepickerInput.min;\r\n }\r\n /** The maximum selectable date. */\r\n get _maxDate() {\r\n return this.datepickerInput && this.datepickerInput.max;\r\n }\r\n get valid() {\r\n const minValidators = this._minValidator();\r\n const maxValidators = this._maxValidator();\r\n return minValidators == null && maxValidators == null;\r\n }\r\n get _dateFilter() {\r\n return this.datepickerInput && this.datepickerInput._dateFilter;\r\n }\r\n ngOnDestroy() {\r\n this.close();\r\n if (this._popupRef) {\r\n this._popupRef.dispose();\r\n this._popupComponentRef = null;\r\n }\r\n this._inputSubscription.unsubscribe();\r\n this.stateChanges.complete();\r\n }\r\n /** Selects the given date */\r\n select(date) {\r\n this._dateAdapter.copyTime(date, this._selected);\r\n this._selected = date;\r\n }\r\n /** Emits the selected year in multiyear view */\r\n _selectYear(normalizedYear) {\r\n this.yearSelected.emit(normalizedYear);\r\n }\r\n /** Emits selected month in year view */\r\n _selectMonth(normalizedMonth) {\r\n this.monthSelected.emit(normalizedMonth);\r\n }\r\n /** OK button handler and close*/\r\n ok() {\r\n const cloned = this._dateAdapter.clone(this._selected);\r\n this._selectedChanged.next(cloned);\r\n this.close();\r\n }\r\n /** Cancel and close */\r\n cancel() {\r\n this._selected = this._rawValue;\r\n this.close();\r\n }\r\n /**\r\n * Register an input with this datepicker.\r\n * @param input The datepicker input to register with this datepicker.\r\n */\r\n _registerInput(input) {\r\n if (this.datepickerInput) {\r\n throw Error('A NgxMatDatepicker can only be associated with a single input.');\r\n }\r\n this.datepickerInput = input;\r\n this._inputSubscription =\r\n this.datepickerInput._valueChange.subscribe((value) => this._selected = value);\r\n }\r\n /** Open the calendar. */\r\n open() {\r\n this._rawValue = this._selected != null\r\n ? this._dateAdapter.clone(this._selected) : null;\r\n if (this._selected == null) {\r\n this._selected = this._dateAdapter.today();\r\n if (this.defaultTime != null) {\r\n this._dateAdapter.setTimeByDefaultValues(this._selected, this.defaultTime);\r\n }\r\n }\r\n if (this._opened || this.disabled) {\r\n return;\r\n }\r\n if (!this.datepickerInput) {\r\n throw Error('Attempted to open an NgxMatDatepicker with no associated input.');\r\n }\r\n if (this._document) {\r\n this._focusedElementBeforeOpen = this._document.activeElement;\r\n }\r\n this.touchUi ? this._openAsDialog() : this._openAsPopup();\r\n this._opened = true;\r\n this.openedStream.emit();\r\n }\r\n /** Close the calendar. */\r\n close() {\r\n if (!this._opened) {\r\n return;\r\n }\r\n if (this._popupRef && this._popupRef.hasAttached()) {\r\n this._popupRef.detach();\r\n }\r\n if (this._dialogRef) {\r\n this._dialogRef.close();\r\n this._dialogRef = null;\r\n }\r\n if (this._calendarPortal && this._calendarPortal.isAttached) {\r\n this._calendarPortal.detach();\r\n }\r\n const completeClose = () => {\r\n // The `_opened` could've been reset already if\r\n // we got two events in quick succession.\r\n if (this._opened) {\r\n this._opened = false;\r\n this.closedStream.emit();\r\n this._focusedElementBeforeOpen = null;\r\n }\r\n };\r\n if (this._focusedElementBeforeOpen &&\r\n typeof this._focusedElementBeforeOpen.focus === 'function') {\r\n // Because IE moves focus asynchronously, we can't count on it being restored before we've\r\n // marked the datepicker as closed. If the event fires out of sequence and the element that\r\n // we're refocusing opens the datepicker on focus, the user could be stuck with not being\r\n // able to close the calendar at all. We work around it by making the logic, that marks\r\n // the datepicker as closed, async as well.\r\n this._focusedElementBeforeOpen.focus();\r\n setTimeout(completeClose);\r\n }\r\n else {\r\n completeClose();\r\n }\r\n }\r\n /** Open the calendar as a dialog. */\r\n _openAsDialog() {\r\n // Usually this would be handled by `open` which ensures that we can only have one overlay\r\n // open at a time, however since we reset the variables in async handlers some overlays\r\n // may slip through if the user opens and closes multiple times in quick succession (e.g.\r\n // by holding down the enter key).\r\n if (this._dialogRef) {\r\n this._dialogRef.close();\r\n }\r\n this._dialogRef = this._dialog.open(NgxMatDatetimeContent, {\r\n direction: this._dir ? this._dir.value : 'ltr',\r\n viewContainerRef: this._viewContainerRef,\r\n panelClass: 'mat-datepicker-dialog',\r\n hasBackdrop: this._hasBackdrop\r\n });\r\n this._dialogRef.afterClosed().subscribe(() => this.close());\r\n this._dialogRef.componentInstance.datepicker = this;\r\n this._setColor();\r\n }\r\n /** Open the calendar as a popup. */\r\n _openAsPopup() {\r\n if (!this._calendarPortal) {\r\n this._calendarPortal = new ComponentPortal(NgxMatDatetimeContent, this._viewContainerRef);\r\n }\r\n if (!this._popupRef) {\r\n this._createPopup();\r\n }\r\n if (!this._popupRef.hasAttached()) {\r\n this._popupComponentRef = this._popupRef.attach(this._calendarPortal);\r\n this._popupComponentRef.instance.datepicker = this;\r\n this._setColor();\r\n // Update the position once the calendar has rendered.\r\n this._ngZone.onStable.asObservable().pipe(take(1)).subscribe(() => {\r\n this._popupRef.updatePosition();\r\n });\r\n }\r\n }\r\n /** Create the popup. */\r\n _createPopup() {\r\n const overlayConfig = new OverlayConfig({\r\n positionStrategy: this._createPopupPositionStrategy(),\r\n hasBackdrop: this._hasBackdrop,\r\n backdropClass: 'mat-overlay-transparent-backdrop',\r\n direction: this._dir,\r\n scrollStrategy: this._scrollStrategy(),\r\n panelClass: 'mat-datepicker-popup',\r\n });\r\n this._popupRef = this._overlay.create(overlayConfig);\r\n this._popupRef.overlayElement.setAttribute('role', 'dialog');\r\n merge(this._popupRef.backdropClick(), this._popupRef.detachments(), this._popupRef.keydownEvents().pipe(filter(event => {\r\n // Closing on alt + up is only valid when there's an input associated with the datepicker.\r\n return event.keyCode === ESCAPE ||\r\n (this.datepickerInput && event.altKey && event.keyCode === UP_ARROW);\r\n }))).subscribe(event => {\r\n if (event) {\r\n event.preventDefault();\r\n }\r\n (this._hasBackdrop && event) ? this.cancel() : this.close();\r\n });\r\n }\r\n /** Create the popup PositionStrategy. */\r\n _createPopupPositionStrategy() {\r\n return this._overlay.position()\r\n .flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin())\r\n .withTransformOriginOn('.mat-datepicker-content')\r\n .withFlexibleDimensions(false)\r\n .withViewportMargin(8)\r\n .withLockedPosition()\r\n .withPositions([\r\n {\r\n originX: 'start',\r\n originY: 'bottom',\r\n overlayX: 'start',\r\n overlayY: 'top'\r\n },\r\n {\r\n originX: 'start',\r\n originY: 'top',\r\n overlayX: 'start',\r\n overlayY: 'bottom'\r\n },\r\n {\r\n originX: 'end',\r\n originY: 'bottom',\r\n overlayX: 'end',\r\n overlayY: 'top'\r\n },\r\n {\r\n originX: 'end',\r\n originY: 'top',\r\n overlayX: 'end',\r\n overlayY: 'bottom'\r\n }\r\n ]);\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n /** Passes the current theme color along to the calendar overlay. */\r\n _setColor() {\r\n const color = this.color;\r\n if (this._popupComponentRef) {\r\n this._popupComponentRef.instance.color = color;\r\n }\r\n if (this._dialogRef) {\r\n this._dialogRef.componentInstance.color = color;\r\n }\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimePicker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePicker, deps: [{ token: i8.MatDialog }, { token: i9.Overlay }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: MAT_DATEPICKER_SCROLL_STRATEGY }, { token: NgxMatDateAdapter, optional: true }, { token: i2.Directionality, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimePicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatDatetimePicker, selector: \"ngx-mat-datetime-picker\", inputs: { calendarHeaderComponent: \"calendarHeaderComponent\", startAt: \"startAt\", startView: \"startView\", defaultColor: \"defaultColor\", color: \"color\", touchUi: \"touchUi\", hideTime: \"hideTime\", disabled: \"disabled\", panelClass: \"panelClass\", dateClass: \"dateClass\", opened: \"opened\", showSpinners: \"showSpinners\", showSeconds: \"showSeconds\", stepHour: \"stepHour\", stepMinute: \"stepMinute\", stepSecond: \"stepSecond\", enableMeridian: \"enableMeridian\", disableMinute: \"disableMinute\", defaultTime: \"defaultTime\" }, outputs: { yearSelected: \"yearSelected\", monthSelected: \"monthSelected\", openedStream: \"opened\", closedStream: \"closed\" }, queries: [{ propertyName: \"_customIcon\", first: true, predicate: TemplateRef, descendants: true }], exportAs: [\"ngxMatDatetimePicker\"], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePicker, decorators: [{\r\n type: Component,\r\n args: [{\r\n selector: 'ngx-mat-datetime-picker',\r\n template: '',\r\n exportAs: 'ngxMatDatetimePicker',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n }]\r\n }], ctorParameters: function () {\r\n return [{ type: i8.MatDialog }, { type: i9.Overlay }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{\r\n type: Inject,\r\n args: [MAT_DATEPICKER_SCROLL_STRATEGY]\r\n }] }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: i2.Directionality, decorators: [{\r\n type: Optional\r\n }] }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [DOCUMENT]\r\n }] }];\r\n }, propDecorators: { calendarHeaderComponent: [{\r\n type: Input\r\n }], _customIcon: [{\r\n type: ContentChild,\r\n args: [TemplateRef]\r\n }], startAt: [{\r\n type: Input\r\n }], startView: [{\r\n type: Input\r\n }], defaultColor: [{\r\n type: Input\r\n }], color: [{\r\n type: Input\r\n }], touchUi: [{\r\n type: Input\r\n }], hideTime: [{\r\n type: Input\r\n }], disabled: [{\r\n type: Input\r\n }], yearSelected: [{\r\n type: Output\r\n }], monthSelected: [{\r\n type: Output\r\n }], panelClass: [{\r\n type: Input\r\n }], dateClass: [{\r\n type: Input\r\n }], openedStream: [{\r\n type: Output,\r\n args: ['opened']\r\n }], closedStream: [{\r\n type: Output,\r\n args: ['closed']\r\n }], opened: [{\r\n type: Input\r\n }], showSpinners: [{\r\n type: Input\r\n }], showSeconds: [{\r\n type: Input\r\n }], stepHour: [{\r\n type: Input\r\n }], stepMinute: [{\r\n type: Input\r\n }], stepSecond: [{\r\n type: Input\r\n }], enableMeridian: [{\r\n type: Input\r\n }], disableMinute: [{\r\n type: Input\r\n }], defaultTime: [{\r\n type: Input\r\n }] } });\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\n/** @docs-private */\r\nconst MAT_DATEPICKER_VALUE_ACCESSOR = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NgxMatDatetimeInput),\r\n multi: true\r\n};\r\n/** @docs-private */\r\nconst MAT_DATEPICKER_VALIDATORS = {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => NgxMatDatetimeInput),\r\n multi: true\r\n};\r\n/**\r\n * An event used for datepicker input and change events. We don't always have access to a native\r\n * input or change event because the event may have been triggered by the user clicking on the\r\n * calendar popup. For consistency, we always use MatDatetimePickerInputEvent instead.\r\n */\r\nclass MatDatetimePickerInputEvent {\r\n constructor(\r\n /** Reference to the datepicker input component that emitted the event. */\r\n target, \r\n /** Reference to the native input element associated with the datepicker input. */\r\n targetElement) {\r\n this.target = target;\r\n this.targetElement = targetElement;\r\n this.value = this.target.value;\r\n }\r\n}\r\n/** Directive used to connect an input to a matDatetimePicker. */\r\nclass NgxMatDatetimeInput {\r\n constructor(_elementRef, _dateAdapter, _dateFormats, _formField) {\r\n this._elementRef = _elementRef;\r\n this._dateAdapter = _dateAdapter;\r\n this._dateFormats = _dateFormats;\r\n this._formField = _formField;\r\n /** Emits when a `change` event is fired on this `<input>`. */\r\n this.dateChange = new EventEmitter();\r\n /** Emits when an `input` event is fired on this `<input>`. */\r\n this.dateInput = new EventEmitter();\r\n /** Emits when the value changes (either due to user input or programmatic change). */\r\n this._valueChange = new EventEmitter();\r\n /** Emits when the disabled state has changed */\r\n this.stateChanges = new EventEmitter();\r\n this._onTouched = () => { };\r\n this._cvaOnChange = () => { };\r\n this._validatorOnChange = () => { };\r\n this._datepickerSubscription = Subscription.EMPTY;\r\n this._localeSubscription = Subscription.EMPTY;\r\n /** The form control validator for whether the input parses. */\r\n this._parseValidator = () => {\r\n return this._lastValueValid ?\r\n null : { 'matDatetimePickerParse': { 'text': this._elementRef.nativeElement.value } };\r\n };\r\n /** The form control validator for the min date. */\r\n this._minValidator = (control) => {\r\n const controlValue = this._getValidDateOrNull(this._dateAdapter.deserialize(control.value));\r\n return (!this.min || !controlValue ||\r\n this._dateAdapter.compareDateWithTime(this.min, controlValue, this._datepicker.showSeconds) <= 0) ?\r\n null : { 'matDatetimePickerMin': { 'min': this.min, 'actual': controlValue } };\r\n };\r\n /** The form control validator for the max date. */\r\n this._maxValidator = (control) => {\r\n const controlValue = this._getValidDateOrNull(this._dateAdapter.deserialize(control.value));\r\n return (!this.max || !controlValue ||\r\n this._dateAdapter.compareDateWithTime(this.max, controlValue, this._datepicker.showSeconds) >= 0) ?\r\n null : { 'matDatetimePickerMax': { 'max': this.max, 'actual': controlValue } };\r\n };\r\n /** The form control validator for the date filter. */\r\n this._filterValidator = (control) => {\r\n const controlValue = this._getValidDateOrNull(this._dateAdapter.deserialize(control.value));\r\n return !this._dateFilter || !controlValue || this._dateFilter(controlValue) ?\r\n null : { 'matDatetimePickerFilter': true };\r\n };\r\n /** The combined form control validator for this input. */\r\n this._validator = Validators.compose([this._parseValidator, this._minValidator, this._maxValidator, this._filterValidator]);\r\n /** Whether the last value set on the input was valid. */\r\n this._lastValueValid = false;\r\n if (!this._dateAdapter) {\r\n throw createMissingDateImplError('NgxMatDateAdapter');\r\n }\r\n if (!this._dateFormats) {\r\n throw createMissingDateImplError('NGX_MAT_DATE_FORMATS');\r\n }\r\n // Update the displayed date when the locale changes.\r\n this._localeSubscription = _dateAdapter.localeChanges.subscribe(() => {\r\n this.value = this.value;\r\n });\r\n }\r\n /** The datepicker that this input is associated with. */\r\n set ngxMatDatetimePicker(value) {\r\n if (!value) {\r\n return;\r\n }\r\n this._datepicker = value;\r\n this._datepicker._registerInput(this);\r\n this._datepickerSubscription.unsubscribe();\r\n this._datepickerSubscription = this._datepicker._selectedChanged.subscribe((selected) => {\r\n this.value = selected;\r\n this._cvaOnChange(selected);\r\n this._onTouched();\r\n this.dateInput.emit(new MatDatetimePickerInputEvent(this, this._elementRef.nativeElement));\r\n this.dateChange.emit(new MatDatetimePickerInputEvent(this, this._elementRef.nativeElement));\r\n });\r\n }\r\n /** Function that can be used to filter out dates within the datepicker. */\r\n set ngxMatDatetimePickerFilter(value) {\r\n this._dateFilter = value;\r\n this._validatorOnChange();\r\n }\r\n /** The value of the input. */\r\n get value() { return this._value; }\r\n set value(value) {\r\n value = this._dateAdapter.deserialize(value);\r\n this._lastValueValid = !value || this._dateAdapter.isValid(value);\r\n value = this._getValidDateOrNull(value);\r\n const oldDate = this.value;\r\n this._value = value;\r\n this._formatValue(value);\r\n if (!this._dateAdapter.sameDate(oldDate, value)) {\r\n this._valueChange.emit(value);\r\n }\r\n }\r\n /** The minimum valid date. */\r\n get min() { return this._min; }\r\n set min(value) {\r\n this._min = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n this._validatorOnChange();\r\n }\r\n /** The maximum valid date. */\r\n get max() { return this._max; }\r\n set max(value) {\r\n this._max = this._getValidDateOrNull(this._dateAdapter.deserialize(value));\r\n this._validatorOnChange();\r\n }\r\n /** Whether the datepicker-input is disabled. */\r\n get disabled() { return !!this._disabled; }\r\n set disabled(value) {\r\n const newValue = value != null && `${value}` !== 'false';\r\n const element = this._elementRef.nativeElement;\r\n if (this._disabled !== newValue) {\r\n this._disabled = newValue;\r\n this.stateChanges.emit(undefined);\r\n }\r\n // We need to null check the `blur` method, because it's undefined during SSR.\r\n if (newValue && element.blur) {\r\n // Normally, native input elements automatically blur if they turn disabled. This behavior\r\n // is problematic, because it would mean that it triggers another change detection cycle,\r\n // which then causes a changed after checked error if the input element was focused before.\r\n element.blur();\r\n }\r\n }\r\n ngOnDestroy() {\r\n this._datepickerSubscription.unsubscribe();\r\n this._localeSubscription.unsubscribe();\r\n this._valueChange.complete();\r\n this.stateChanges.complete();\r\n }\r\n /** @docs-private */\r\n registerOnValidatorChange(fn) {\r\n this._validatorOnChange = fn;\r\n }\r\n /** @docs-private */\r\n validate(c) {\r\n return this._validator ? this._validator(c) : null;\r\n }\r\n /**\r\n * @deprecated\r\n * @breaking-change 8.0.0 Use `getConnectedOverlayOrigin` instead\r\n */\r\n getPopupConnectionElementRef() {\r\n return this.getConnectedOverlayOrigin();\r\n }\r\n /**\r\n * Gets the element that the datepicker popup should be connected to.\r\n * @return The element to connect the popup to.\r\n */\r\n getConnectedOverlayOrigin() {\r\n return this._formField ? this._formField.getConnectedOverlayOrigin() : this._elementRef;\r\n }\r\n // Implemented as part of ControlValueAccessor.\r\n writeValue(value) {\r\n this.value = value;\r\n }\r\n // Implemented as part of ControlValueAccessor.\r\n registerOnChange(fn) {\r\n this._cvaOnChange = fn;\r\n }\r\n // Implemented as part of ControlValueAccessor.\r\n registerOnTouched(fn) {\r\n this._onTouched = fn;\r\n }\r\n // Implemented as part of ControlValueAccessor.\r\n setDisabledState(isDisabled) {\r\n this.disabled = isDisabled;\r\n }\r\n _onKeydown(event) {\r\n const isAltDownArrow = event.altKey && event.keyCode === DOWN_ARROW;\r\n if (this._datepicker && isAltDownArrow && !this._elementRef.nativeElement.readOnly) {\r\n this._datepicker.open();\r\n event.preventDefault();\r\n }\r\n }\r\n _onInput(value) {\r\n const lastValueWasValid = this._lastValueValid;\r\n let date = this._dateAdapter.parse(value, this._dateFormats.parse.dateInput);\r\n this._lastValueValid = !date || this._dateAdapter.isValid(date);\r\n date = this._getValidDateOrNull(date);\r\n const isSameTime = this._dateAdapter.isSameTime(date, this._value);\r\n if ((date != null && (!isSameTime || !this._dateAdapter.sameDate(date, this._value)))\r\n || (date == null && this._value != null)) {\r\n this._value = date;\r\n this._cvaOnChange(date);\r\n this._valueChange.emit(date);\r\n this.dateInput.emit(new MatDatetimePickerInputEvent(this, this._elementRef.nativeElement));\r\n }\r\n else if (lastValueWasValid !== this._lastValueValid) {\r\n this._validatorOnChange();\r\n }\r\n }\r\n _onChange() {\r\n this.dateChange.emit(new MatDatetimePickerInputEvent(this, this._elementRef.nativeElement));\r\n }\r\n /** Returns the palette used by the input's form field, if any. */\r\n _getThemePalette() {\r\n return this._formField ? this._formField.color : undefined;\r\n }\r\n /** Handles blur events on the input. */\r\n _onBlur() {\r\n // Reformat the input only if we have a valid value.\r\n if (this.value) {\r\n this._formatValue(this.value);\r\n }\r\n this._onTouched();\r\n }\r\n /** Handles focus events on the input. */\r\n _onFocus() {\r\n // Close datetime picker if opened\r\n if (this._datepicker && this._datepicker.opened) {\r\n this._datepicker.cancel();\r\n }\r\n }\r\n /** Formats a value and sets it on the input element. */\r\n _formatValue(value) {\r\n this._elementRef.nativeElement.value =\r\n value ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';\r\n }\r\n /**\r\n * @param obj The object to check.\r\n * @returns The given object if it is both a date instance and valid, otherwise null.\r\n */\r\n _getValidDateOrNull(obj) {\r\n return (this._dateAdapter.isDateInstance(obj) && this._dateAdapter.isValid(obj)) ? obj : null;\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimeInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimeInput, deps: [{ token: i0.ElementRef }, { token: NgxMatDateAdapter, optional: true }, { token: NGX_MAT_DATE_FORMATS, optional: true }, { token: i2$2.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimeInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.0.1\", type: NgxMatDatetimeInput, selector: \"input[ngxMatDatetimePicker]\", inputs: { ngxMatDatetimePicker: \"ngxMatDatetimePicker\", ngxMatDatetimePickerFilter: \"ngxMatDatetimePickerFilter\", value: \"value\", min: \"min\", max: \"max\", disabled: \"disabled\" }, outputs: { dateChange: \"dateChange\", dateInput: \"dateInput\" }, host: { listeners: { \"input\": \"_onInput($event.target.value)\", \"change\": \"_onChange()\", \"blur\": \"_onBlur()\", \"focus\": \"_onFocus()\", \"keydown\": \"_onKeydown($event)\" }, properties: { \"attr.aria-haspopup\": \"_datepicker ? \\\"dialog\\\" : null\", \"attr.aria-owns\": \"(_datepicker?.opened && _datepicker.id) || null\", \"attr.min\": \"min ? _dateAdapter.toIso8601(min) : null\", \"attr.max\": \"max ? _dateAdapter.toIso8601(max) : null\", \"disabled\": \"disabled\" } }, providers: [\r\n MAT_DATEPICKER_VALUE_ACCESSOR,\r\n MAT_DATEPICKER_VALIDATORS,\r\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: NgxMatDatetimeInput },\r\n ], exportAs: [\"ngxMatDatetimePickerInput\"], ngImport: i0 });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimeInput, decorators: [{\r\n type: Directive,\r\n args: [{\r\n selector: 'input[ngxMatDatetimePicker]',\r\n providers: [\r\n MAT_DATEPICKER_VALUE_ACCESSOR,\r\n MAT_DATEPICKER_VALIDATORS,\r\n { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: NgxMatDatetimeInput },\r\n ],\r\n host: {\r\n '[attr.aria-haspopup]': '_datepicker ? \"dialog\" : null',\r\n '[attr.aria-owns]': '(_datepicker?.opened && _datepicker.id) || null',\r\n '[attr.min]': 'min ? _dateAdapter.toIso8601(min) : null',\r\n '[attr.max]': 'max ? _dateAdapter.toIso8601(max) : null',\r\n '[disabled]': 'disabled',\r\n '(input)': '_onInput($event.target.value)',\r\n '(change)': '_onChange()',\r\n '(blur)': '_onBlur()',\r\n '(focus)': '_onFocus()',\r\n '(keydown)': '_onKeydown($event)',\r\n },\r\n exportAs: 'ngxMatDatetimePickerInput',\r\n }]\r\n }], ctorParameters: function () {\r\n return [{ type: i0.ElementRef }, { type: NgxMatDateAdapter, decorators: [{\r\n type: Optional\r\n }] }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_DATE_FORMATS]\r\n }] }, { type: i2$2.MatFormField, decorators: [{\r\n type: Optional\r\n }] }];\r\n }, propDecorators: { ngxMatDatetimePicker: [{\r\n type: Input\r\n }], ngxMatDatetimePickerFilter: [{\r\n type: Input\r\n }], value: [{\r\n type: Input\r\n }], min: [{\r\n type: Input\r\n }], max: [{\r\n type: Input\r\n }], disabled: [{\r\n type: Input\r\n }], dateChange: [{\r\n type: Output\r\n }], dateInput: [{\r\n type: Output\r\n }] } });\n\nclass NgxMatTimepickerModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatTimepickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatTimepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerModule, declarations: [NgxMatTimepickerComponent], imports: [CommonModule,\r\n MatInputModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule], exports: [NgxMatTimepickerComponent] });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatTimepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerModule, imports: [[\r\n CommonModule,\r\n MatInputModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n ]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatTimepickerModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [\r\n CommonModule,\r\n MatInputModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n ],\r\n exports: [\r\n NgxMatTimepickerComponent\r\n ],\r\n declarations: [\r\n NgxMatTimepickerComponent\r\n ]\r\n }]\r\n }] });\n\nclass NgxMatDatetimePickerModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePickerModule, declarations: [NgxMatDatetimePicker,\r\n NgxMatDatetimeContent,\r\n NgxMatDatetimeInput,\r\n NgxMatCalendar,\r\n NgxMatMonthView,\r\n NgxMatCalendarBody,\r\n NgxMatYearView,\r\n NgxMatMultiYearView,\r\n NgxMatCalendarHeader], imports: [CommonModule,\r\n MatDatepickerModule,\r\n MatDialogModule,\r\n PortalModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatInputModule,\r\n NgxMatTimepickerModule], exports: [NgxMatDatetimePicker,\r\n NgxMatDatetimeInput,\r\n NgxMatCalendar,\r\n NgxMatMonthView,\r\n NgxMatCalendarBody,\r\n NgxMatYearView,\r\n NgxMatMultiYearView,\r\n NgxMatCalendarHeader] });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatDatetimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePickerModule, providers: [\r\n MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,\r\n {\r\n provide: NGX_MAT_DATE_RANGE_SELECTION_STRATEGY,\r\n useClass: DefaultNgxMatCalendarRangeStrategy\r\n }\r\n ], imports: [[\r\n CommonModule,\r\n MatDatepickerModule,\r\n MatDialogModule,\r\n PortalModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatInputModule,\r\n NgxMatTimepickerModule\r\n ]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatDatetimePickerModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [\r\n CommonModule,\r\n MatDatepickerModule,\r\n MatDialogModule,\r\n PortalModule,\r\n FormsModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n MatInputModule,\r\n NgxMatTimepickerModule\r\n ],\r\n exports: [\r\n NgxMatDatetimePicker,\r\n NgxMatDatetimeInput,\r\n NgxMatCalendar,\r\n NgxMatMonthView,\r\n NgxMatCalendarBody,\r\n NgxMatYearView,\r\n NgxMatMultiYearView,\r\n NgxMatCalendarHeader\r\n ],\r\n declarations: [\r\n NgxMatDatetimePicker,\r\n NgxMatDatetimeContent,\r\n NgxMatDatetimeInput,\r\n NgxMatCalendar,\r\n NgxMatMonthView,\r\n NgxMatCalendarBody,\r\n NgxMatYearView,\r\n NgxMatMultiYearView,\r\n NgxMatCalendarHeader\r\n ],\r\n entryComponents: [\r\n NgxMatDatetimeContent,\r\n NgxMatCalendarHeader\r\n ],\r\n providers: [\r\n MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,\r\n {\r\n provide: NGX_MAT_DATE_RANGE_SELECTION_STRATEGY,\r\n useClass: DefaultNgxMatCalendarRangeStrategy\r\n }\r\n ]\r\n }]\r\n }] });\n\n// TODO(mmalerba): Remove when we no longer support safari 9.\r\n/** Whether the browser supports the Intl API. */\r\nlet SUPPORTS_INTL_API;\r\n// We need a try/catch around the reference to `Intl`, because accessing it in some cases can\r\n// cause IE to throw. These cases are tied to particular versions of Windows and can happen if\r\n// the consumer is providing a polyfilled `Map`. See:\r\n// https://github.com/Microsoft/ChakraCore/issues/3189\r\n// https://github.com/angular/components/issues/15687\r\ntry {\r\n SUPPORTS_INTL_API = typeof Intl != 'undefined';\r\n}\r\ncatch (_a) {\r\n SUPPORTS_INTL_API = false;\r\n}\r\n/** The default month names to use if Intl API is not available. */\r\nconst DEFAULT_MONTH_NAMES = {\r\n 'long': [\r\n 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',\r\n 'October', 'November', 'December'\r\n ],\r\n 'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\r\n 'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']\r\n};\r\n/** The default date names to use if Intl API is not available. */\r\nconst DEFAULT_DATE_NAMES = range(31, i => String(i + 1));\r\n/** The default day of the week names to use if Intl API is not available. */\r\nconst DEFAULT_DAY_OF_WEEK_NAMES = {\r\n 'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\r\n 'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r\n 'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']\r\n};\r\n/**\r\n * Matches strings that have the form of a valid RFC 3339 string\r\n * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date\r\n * because the regex will match strings an with out of bounds month, date, etc.\r\n */\r\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\r\n/** Creates an array and fills it with values. */\r\nfunction range(length, valueFunction) {\r\n const valuesArray = Array(length);\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i);\r\n }\r\n return valuesArray;\r\n}\r\n/** Adapts the native JS Date for use with cdk-based components that work with dates. */\r\nclass NgxMatNativeDateAdapter extends NgxMatDateAdapter {\r\n constructor(matDateLocale, platform) {\r\n super();\r\n /**\r\n * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.\r\n * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off\r\n * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`\r\n * will produce `'8/13/1800'`.\r\n *\r\n * TODO(mmalerba): drop this variable. It's not being used in the code right now. We're now\r\n * getting the string representation of a Date object from its utc representation. We're keeping\r\n * it here for sometime, just for precaution, in case we decide to revert some of these changes\r\n * though.\r\n */\r\n this.useUtcForDisplay = true;\r\n super.setLocale(matDateLocale);\r\n // IE does its own time zone correction, so we disable this on IE.\r\n this.useUtcForDisplay = !platform.TRIDENT;\r\n this._clampDate = platform.TRIDENT || platform.EDGE;\r\n }\r\n getYear(date) {\r\n return date.getFullYear();\r\n }\r\n getMonth(date) {\r\n return date.getMonth();\r\n }\r\n getDate(date) {\r\n return date.getDate();\r\n }\r\n getDayOfWeek(date) {\r\n return date.getDay();\r\n }\r\n getMonthNames(style) {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });\r\n return range(12, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, i, 1))));\r\n }\r\n return DEFAULT_MONTH_NAMES[style];\r\n }\r\n getDateNames() {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' });\r\n return range(31, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, 0, i + 1))));\r\n }\r\n return DEFAULT_DATE_NAMES;\r\n }\r\n getDayOfWeekNames(style) {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' });\r\n return range(7, i => this._stripDirectionalityCharacters(this._format(dtf, new Date(2017, 0, i + 1))));\r\n }\r\n return DEFAULT_DAY_OF_WEEK_NAMES[style];\r\n }\r\n getYearName(date) {\r\n if (SUPPORTS_INTL_API) {\r\n const dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' });\r\n return this._stripDirectionalityCharacters(this._format(dtf, date));\r\n }\r\n return String(this.getYear(date));\r\n }\r\n getFirstDayOfWeek() {\r\n // We can't tell using native JS Date what the first day of the week is, we default to Sunday.\r\n return 0;\r\n }\r\n getNumDaysInMonth(date) {\r\n return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));\r\n }\r\n clone(date) {\r\n return new Date(date.getTime());\r\n }\r\n createDate(year, month, date) {\r\n // Check for invalid month and date (except upper bound on date which we have to check after\r\n // creating the Date).\r\n if (month < 0 || month > 11) {\r\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\r\n }\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\r\n }\r\n let result = this._createDateWithOverflow(year, month, date);\r\n // Check that the date wasn't above the upper bound for the month, causing the month to overflow\r\n if (result.getMonth() != month) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\r\n }\r\n return result;\r\n }\r\n today() {\r\n return new Date();\r\n }\r\n parse(value) {\r\n // We have no way using the native JS Date to set the parse format or locale, so we ignore these\r\n // parameters.\r\n if (typeof value == 'number') {\r\n return new Date(value);\r\n }\r\n return value ? new Date(Date.parse(value)) : null;\r\n }\r\n format(date, displayFormat) {\r\n if (!this.isValid(date)) {\r\n throw Error('NativeDateAdapter: Cannot format invalid date.');\r\n }\r\n if (SUPPORTS_INTL_API) {\r\n // On IE and Edge the i18n API will throw a hard error that can crash the entire app\r\n // if we attempt to format a date whose year is less than 1 or greater than 9999.\r\n if (this._clampDate && (date.getFullYear() < 1 || date.getFullYear() > 9999)) {\r\n date = this.clone(date);\r\n date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));\r\n }\r\n displayFormat = Object.assign(Object.assign({}, displayFormat), { timeZone: 'utc' });\r\n const dtf = new Intl.DateTimeFormat(this.locale, displayFormat);\r\n return this._stripDirectionalityCharacters(this._format(dtf, date));\r\n }\r\n return this._stripDirectionalityCharacters(date.toDateString());\r\n }\r\n addCalendarYears(date, years) {\r\n return this.addCalendarMonths(date, years * 12);\r\n }\r\n addCalendarMonths(date, months) {\r\n let newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));\r\n // It's possible to wind up in the wrong month if the original month has more days than the new\r\n // month. In this case we want to go to the last day of the desired month.\r\n // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't\r\n // guarantee this.\r\n if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {\r\n newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);\r\n }\r\n return newDate;\r\n }\r\n addCalendarDays(date, days) {\r\n return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);\r\n }\r\n toIso8601(date) {\r\n return [\r\n date.getUTCFullYear(),\r\n this._2digit(date.getUTCMonth() + 1),\r\n this._2digit(date.getUTCDate())\r\n ].join('-');\r\n }\r\n /**\r\n * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an\r\n * invalid date for all other values.\r\n */\r\n deserialize(value) {\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return null;\r\n }\r\n // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the\r\n // string is the right format first.\r\n if (ISO_8601_REGEX.test(value)) {\r\n let date = new Date(value);\r\n if (this.isValid(date)) {\r\n return date;\r\n }\r\n }\r\n }\r\n return super.deserialize(value);\r\n }\r\n isDateInstance(obj) {\r\n return obj instanceof Date;\r\n }\r\n isValid(date) {\r\n return !isNaN(date.getTime());\r\n }\r\n invalid() {\r\n return new Date(NaN);\r\n }\r\n getHour(date) {\r\n return date.getHours();\r\n }\r\n getMinute(date) {\r\n return date.getMinutes();\r\n }\r\n getSecond(date) {\r\n return date.getSeconds();\r\n }\r\n setHour(date, value) {\r\n date.setHours(value);\r\n }\r\n setMinute(date, value) {\r\n date.setMinutes(value);\r\n }\r\n setSecond(date, value) {\r\n date.setSeconds(value);\r\n }\r\n /** Creates a date but allows the month and date to overflow. */\r\n _createDateWithOverflow(year, month, date) {\r\n const result = new Date(year, month, date);\r\n // We need to correct for the fact that JS native Date treats years in range [0, 99] as\r\n // abbreviations for 19xx.\r\n if (year >= 0 && year < 100) {\r\n result.setFullYear(this.getYear(result) - 1900);\r\n }\r\n return result;\r\n }\r\n /**\r\n * Pads a number to make it two digits.\r\n * @param n The number to pad.\r\n * @returns The padded number.\r\n */\r\n _2digit(n) {\r\n return ('00' + n).slice(-2);\r\n }\r\n /**\r\n * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while\r\n * other browsers do not. We remove them to make output consistent and because they interfere with\r\n * date parsing.\r\n * @param str The string to strip direction characters from.\r\n * @returns The stripped string.\r\n */\r\n _stripDirectionalityCharacters(str) {\r\n return str.replace(/[\\u200e\\u200f]/g, '');\r\n }\r\n /**\r\n * When converting Date object to string, javascript built-in functions may return wrong\r\n * results because it applies its internal DST rules. The DST rules around the world change\r\n * very frequently, and the current valid rule is not always valid in previous years though.\r\n * We work around this problem building a new Date object which has its internal UTC\r\n * representation with the local date and time.\r\n * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have\r\n * timeZone set to 'utc' to work fine.\r\n * @param date Date from which we want to get the string representation according to dtf\r\n * @returns A Date object with its UTC representation based on the passed in date info\r\n */\r\n _format(dtf, date) {\r\n // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.\r\n // To work around this we use `setUTCFullYear` and `setUTCHours` instead.\r\n const d = new Date();\r\n d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\r\n d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\r\n return dtf.format(d);\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatNativeDateAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: i1$2.Platform }], target: i0.ɵɵFactoryTarget.Injectable });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatNativeDateAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateAdapter });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateAdapter, decorators: [{\r\n type: Injectable\r\n }], ctorParameters: function () {\r\n return [{ type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [MAT_DATE_LOCALE]\r\n }] }, { type: i1$2.Platform }];\r\n } });\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst DEFAULT_DATE_INPUT = {\r\n year: 'numeric', month: 'numeric', day: 'numeric',\r\n hour12: false, hour: \"2-digit\", minute: \"2-digit\", second: \"2-digit\"\r\n};\r\nconst NGX_MAT_NATIVE_DATE_FORMATS = {\r\n parse: {\r\n dateInput: DEFAULT_DATE_INPUT,\r\n },\r\n display: {\r\n dateInput: DEFAULT_DATE_INPUT,\r\n monthYearLabel: { year: 'numeric', month: 'short' },\r\n dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },\r\n monthYearA11yLabel: { year: 'numeric', month: 'long' },\r\n }\r\n};\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nclass NgxNativeDateModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxNativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxNativeDateModule, imports: [PlatformModule] });\r\n/** @nocollapse */ /** @nocollapse */ NgxNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxNativeDateModule, providers: [\r\n { provide: NgxMatDateAdapter, useClass: NgxMatNativeDateAdapter },\r\n ], imports: [[PlatformModule]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxNativeDateModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [PlatformModule],\r\n providers: [\r\n { provide: NgxMatDateAdapter, useClass: NgxMatNativeDateAdapter },\r\n ],\r\n }]\r\n }] });\r\nclass NgxMatNativeDateModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatNativeDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatNativeDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateModule, imports: [NgxNativeDateModule] });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatNativeDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateModule, providers: [{ provide: NGX_MAT_DATE_FORMATS, useValue: NGX_MAT_NATIVE_DATE_FORMATS }], imports: [[NgxNativeDateModule]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatNativeDateModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [NgxNativeDateModule],\r\n providers: [{ provide: NGX_MAT_DATE_FORMATS, useValue: NGX_MAT_NATIVE_DATE_FORMATS }],\r\n }]\r\n }] });\n\n/*\r\n * Public API Surface of ngx-mat-datetime-picker\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { DefaultNgxMatCalendarRangeStrategy, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MatDatetimePickerInputEvent, NGX_MAT_DATE_FORMATS, NGX_MAT_DATE_RANGE_SELECTION_STRATEGY, NGX_MAT_NATIVE_DATE_FORMATS, NgxMatCalendar, NgxMatCalendarBody, NgxMatCalendarCell, NgxMatCalendarHeader, NgxMatDateAdapter, NgxMatDatetimeContent, NgxMatDatetimeInput, NgxMatDatetimePicker, NgxMatDatetimePickerModule, NgxMatMonthView, NgxMatMultiYearView, NgxMatNativeDateAdapter, NgxMatNativeDateModule, NgxMatTimepickerComponent, NgxMatTimepickerModule, NgxMatYearView, NgxNativeDateModule, getActiveOffset, isSameMultiYearView, yearsPerPage, yearsPerRow };\n","import * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, Optional, Inject, NgModule } from '@angular/core';\nimport { MAT_DATE_LOCALE } from '@angular/material/core';\nimport * as _rollupMoment from 'moment';\nimport _rollupMoment__default from 'moment';\nimport { NgxMatDateAdapter, NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst moment = _rollupMoment__default || _rollupMoment;\r\n/** InjectionToken for moment date adapter to configure options. */\r\nconst NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS = new InjectionToken('NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS', {\r\n providedIn: 'root',\r\n factory: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY\r\n});\r\n/** @docs-private */\r\nfunction NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY() {\r\n return {\r\n useUtc: false\r\n };\r\n}\r\n/** Creates an array and fills it with values. */\r\nfunction range(length, valueFunction) {\r\n const valuesArray = Array(length);\r\n for (let i = 0; i < length; i++) {\r\n valuesArray[i] = valueFunction(i);\r\n }\r\n return valuesArray;\r\n}\r\n/** Adapts Moment.js Dates for use with Angular Material. */\r\nclass NgxMatMomentAdapter extends NgxMatDateAdapter {\r\n constructor(dateLocale, _options) {\r\n super();\r\n this._options = _options;\r\n this.setLocale(dateLocale || moment.locale());\r\n }\r\n setLocale(locale) {\r\n super.setLocale(locale);\r\n let momentLocaleData = moment.localeData(locale);\r\n this._localeData = {\r\n firstDayOfWeek: momentLocaleData.firstDayOfWeek(),\r\n longMonths: momentLocaleData.months(),\r\n shortMonths: momentLocaleData.monthsShort(),\r\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D')),\r\n longDaysOfWeek: momentLocaleData.weekdays(),\r\n shortDaysOfWeek: momentLocaleData.weekdaysShort(),\r\n narrowDaysOfWeek: momentLocaleData.weekdaysMin(),\r\n };\r\n }\r\n getYear(date) {\r\n return this.clone(date).year();\r\n }\r\n getMonth(date) {\r\n return this.clone(date).month();\r\n }\r\n getDate(date) {\r\n return this.clone(date).date();\r\n }\r\n getDayOfWeek(date) {\r\n return this.clone(date).day();\r\n }\r\n getMonthNames(style) {\r\n // Moment.js doesn't support narrow month names, so we just use short if narrow is requested.\r\n return style == 'long' ? this._localeData.longMonths : this._localeData.shortMonths;\r\n }\r\n getDateNames() {\r\n return this._localeData.dates;\r\n }\r\n getDayOfWeekNames(style) {\r\n if (style == 'long') {\r\n return this._localeData.longDaysOfWeek;\r\n }\r\n if (style == 'short') {\r\n return this._localeData.shortDaysOfWeek;\r\n }\r\n return this._localeData.narrowDaysOfWeek;\r\n }\r\n getYearName(date) {\r\n return this.clone(date).format('YYYY');\r\n }\r\n getFirstDayOfWeek() {\r\n return this._localeData.firstDayOfWeek;\r\n }\r\n getNumDaysInMonth(date) {\r\n return this.clone(date).daysInMonth();\r\n }\r\n clone(date) {\r\n return date.clone().locale(this.locale);\r\n }\r\n createDate(year, month, date) {\r\n // Moment.js will create an invalid date if any of the components are out of bounds, but we\r\n // explicitly check each case so we can throw more descriptive errors.\r\n if (month < 0 || month > 11) {\r\n throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\r\n }\r\n if (date < 1) {\r\n throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\r\n }\r\n const result = this._createMoment({ year, month, date }).locale(this.locale);\r\n // If the result isn't valid, the date must have been out of bounds for this month.\r\n if (!result.isValid()) {\r\n throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\r\n }\r\n return result;\r\n }\r\n today() {\r\n return this._createMoment().locale(this.locale);\r\n }\r\n parse(value, parseFormat) {\r\n if (value && typeof value == 'string') {\r\n return this._createMoment(value, parseFormat, this.locale);\r\n }\r\n return value ? this._createMoment(value).locale(this.locale) : null;\r\n }\r\n format(date, displayFormat) {\r\n date = this.clone(date);\r\n if (!this.isValid(date)) {\r\n throw Error('MomentDateAdapter: Cannot format invalid date.');\r\n }\r\n return date.format(displayFormat);\r\n }\r\n addCalendarYears(date, years) {\r\n return this.clone(date).add({ years });\r\n }\r\n addCalendarMonths(date, months) {\r\n return this.clone(date).add({ months });\r\n }\r\n addCalendarDays(date, days) {\r\n return this.clone(date).add({ days });\r\n }\r\n toIso8601(date) {\r\n return this.clone(date).format();\r\n }\r\n /**\r\n * Returns the given value if given a valid Moment or null. Deserializes valid ISO 8601 strings\r\n * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty\r\n * string into null. Returns an invalid date for all other values.\r\n */\r\n deserialize(value) {\r\n let date;\r\n if (value instanceof Date) {\r\n date = this._createMoment(value).locale(this.locale);\r\n }\r\n else if (this.isDateInstance(value)) {\r\n // Note: assumes that cloning also sets the correct locale.\r\n return this.clone(value);\r\n }\r\n if (typeof value === 'string') {\r\n if (!value) {\r\n return null;\r\n }\r\n date = this._createMoment(value, moment.ISO_8601).locale(this.locale);\r\n }\r\n if (date && this.isValid(date)) {\r\n return this._createMoment(date).locale(this.locale);\r\n }\r\n return super.deserialize(value);\r\n }\r\n isDateInstance(obj) {\r\n return moment.isMoment(obj);\r\n }\r\n isValid(date) {\r\n return this.clone(date).isValid();\r\n }\r\n invalid() {\r\n return moment.invalid();\r\n }\r\n getHour(date) {\r\n return date.hours();\r\n }\r\n getMinute(date) {\r\n return date.minutes();\r\n }\r\n getSecond(date) {\r\n return date.seconds();\r\n }\r\n setHour(date, value) {\r\n date.hours(value);\r\n }\r\n setMinute(date, value) {\r\n date.minutes(value);\r\n }\r\n setSecond(date, value) {\r\n date.seconds(value);\r\n }\r\n /** Creates a Moment instance while respecting the current UTC settings. */\r\n _createMoment(date, format, locale) {\r\n const { strict, useUtc } = this._options || {};\r\n return useUtc\r\n ? moment.utc(date, format, locale, strict)\r\n : moment(date, format, locale, strict);\r\n }\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMomentAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMomentAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentAdapter });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentAdapter, decorators: [{\r\n type: Injectable\r\n }], ctorParameters: function () {\r\n return [{ type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [MAT_DATE_LOCALE]\r\n }] }, { type: undefined, decorators: [{\r\n type: Optional\r\n }, {\r\n type: Inject,\r\n args: [NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]\r\n }] }];\r\n } });\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nconst DEFAULT_DATE_INPUT = 'l, LTS';\r\nconst NGX_MAT_MOMENT_FORMATS = {\r\n parse: {\r\n dateInput: DEFAULT_DATE_INPUT,\r\n },\r\n display: {\r\n dateInput: DEFAULT_DATE_INPUT,\r\n monthYearLabel: 'MMM YYYY',\r\n dateA11yLabel: 'LL',\r\n monthYearA11yLabel: 'MMMM YYYY',\r\n },\r\n};\n\n/**\r\n * @license\r\n * Copyright Google LLC All Rights Reserved.\r\n *\r\n * Use of this source code is governed by an MIT-style license that can be\r\n * found in the LICENSE file at https://angular.io/license\r\n */\r\nclass NgxMomentDateModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMomentDateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMomentDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMomentDateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMomentDateModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMomentDateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMomentDateModule, providers: [\r\n {\r\n provide: NgxMatDateAdapter,\r\n useClass: NgxMatMomentAdapter,\r\n deps: [MAT_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]\r\n }\r\n ] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMomentDateModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n providers: [\r\n {\r\n provide: NgxMatDateAdapter,\r\n useClass: NgxMatMomentAdapter,\r\n deps: [MAT_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]\r\n }\r\n ],\r\n }]\r\n }] });\r\nclass NgxMatMomentModule {\r\n}\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMomentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMomentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentModule, imports: [NgxMomentDateModule] });\r\n/** @nocollapse */ /** @nocollapse */ NgxMatMomentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentModule, providers: [{ provide: NGX_MAT_DATE_FORMATS, useValue: NGX_MAT_MOMENT_FORMATS }], imports: [[NgxMomentDateModule]] });\r\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.0.1\", ngImport: i0, type: NgxMatMomentModule, decorators: [{\r\n type: NgModule,\r\n args: [{\r\n imports: [NgxMomentDateModule],\r\n providers: [{ provide: NGX_MAT_DATE_FORMATS, useValue: NGX_MAT_MOMENT_FORMATS }],\r\n }]\r\n }] });\n\n/*\r\n * Public API Surface of ngx-mat-moment-adapter\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY, NGX_MAT_MOMENT_FORMATS, NgxMatMomentAdapter, NgxMatMomentModule, NgxMomentDateModule };\n","import { SelectionModel, isDataSource } from '@angular/cdk/collections';\nimport { isObservable, Subject, BehaviorSubject, of } from 'rxjs';\nimport { take, filter, takeUntil } from 'rxjs/operators';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Directive, Inject, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport * as i2 from '@angular/cdk/bidi';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */\nclass BaseTreeControl {\n constructor() {\n /** A selection model with multi-selection to track expansion status. */\n this.expansionModel = new SelectionModel(true);\n }\n /** Toggles one single data node's expanded/collapsed state. */\n toggle(dataNode) {\n this.expansionModel.toggle(this._trackByValue(dataNode));\n }\n /** Expands one single data node. */\n expand(dataNode) {\n this.expansionModel.select(this._trackByValue(dataNode));\n }\n /** Collapses one single data node. */\n collapse(dataNode) {\n this.expansionModel.deselect(this._trackByValue(dataNode));\n }\n /** Whether a given data node is expanded or not. Returns true if the data node is expanded. */\n isExpanded(dataNode) {\n return this.expansionModel.isSelected(this._trackByValue(dataNode));\n }\n /** Toggles a subtree rooted at `node` recursively. */\n toggleDescendants(dataNode) {\n this.expansionModel.isSelected(this._trackByValue(dataNode))\n ? this.collapseDescendants(dataNode)\n : this.expandDescendants(dataNode);\n }\n /** Collapse all dataNodes in the tree. */\n collapseAll() {\n this.expansionModel.clear();\n }\n /** Expands a subtree rooted at given data node recursively. */\n expandDescendants(dataNode) {\n let toBeProcessed = [dataNode];\n toBeProcessed.push(...this.getDescendants(dataNode));\n this.expansionModel.select(...toBeProcessed.map(value => this._trackByValue(value)));\n }\n /** Collapses a subtree rooted at given data node recursively. */\n collapseDescendants(dataNode) {\n let toBeProcessed = [dataNode];\n toBeProcessed.push(...this.getDescendants(dataNode));\n this.expansionModel.deselect(...toBeProcessed.map(value => this._trackByValue(value)));\n }\n _trackByValue(value) {\n return this.trackBy ? this.trackBy(value) : value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */\nclass FlatTreeControl extends BaseTreeControl {\n /** Construct with flat tree data node functions getLevel and isExpandable. */\n constructor(getLevel, isExpandable, options) {\n super();\n this.getLevel = getLevel;\n this.isExpandable = isExpandable;\n this.options = options;\n if (this.options) {\n this.trackBy = this.options.trackBy;\n }\n }\n /**\n * Gets a list of the data node's subtree of descendent data nodes.\n *\n * To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes\n * with correct levels.\n */\n getDescendants(dataNode) {\n const startIndex = this.dataNodes.indexOf(dataNode);\n const results = [];\n // Goes through flattened tree nodes in the `dataNodes` array, and get all descendants.\n // The level of descendants of a tree node must be greater than the level of the given\n // tree node.\n // If we reach a node whose level is equal to the level of the tree node, we hit a sibling.\n // If we reach a node whose level is greater than the level of the tree node, we hit a\n // sibling of an ancestor.\n for (let i = startIndex + 1; i < this.dataNodes.length && this.getLevel(dataNode) < this.getLevel(this.dataNodes[i]); i++) {\n results.push(this.dataNodes[i]);\n }\n return results;\n }\n /**\n * Expands all data nodes in the tree.\n *\n * To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened\n * data nodes of the tree.\n */\n expandAll() {\n this.expansionModel.select(...this.dataNodes.map(node => this._trackByValue(node)));\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */\nclass NestedTreeControl extends BaseTreeControl {\n /** Construct with nested tree function getChildren. */\n constructor(getChildren, options) {\n super();\n this.getChildren = getChildren;\n this.options = options;\n if (this.options) {\n this.trackBy = this.options.trackBy;\n }\n }\n /**\n * Expands all dataNodes in the tree.\n *\n * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level\n * data nodes of the tree.\n */\n expandAll() {\n this.expansionModel.clear();\n const allNodes = this.dataNodes.reduce((accumulator, dataNode) => [...accumulator, ...this.getDescendants(dataNode), dataNode], []);\n this.expansionModel.select(...allNodes.map(node => this._trackByValue(node)));\n }\n /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */\n getDescendants(dataNode) {\n const descendants = [];\n this._getDescendants(descendants, dataNode);\n // Remove the node itself\n return descendants.splice(1);\n }\n /** A helper function to get descendants recursively. */\n _getDescendants(descendants, dataNode) {\n descendants.push(dataNode);\n const childrenNodes = this.getChildren(dataNode);\n if (Array.isArray(childrenNodes)) {\n childrenNodes.forEach((child) => this._getDescendants(descendants, child));\n }\n else if (isObservable(childrenNodes)) {\n // TypeScript as of version 3.5 doesn't seem to treat `Boolean` like a function that\n // returns a `boolean` specifically in the context of `filter`, so we manually clarify that.\n childrenNodes.pipe(take(1), filter(Boolean)).subscribe(children => {\n for (const child of children) {\n this._getDescendants(descendants, child);\n }\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection token used to provide a `CdkTreeNode` to its outlet.\n * Used primarily to avoid circular imports.\n * @docs-private\n */\nconst CDK_TREE_NODE_OUTLET_NODE = new InjectionToken('CDK_TREE_NODE_OUTLET_NODE');\n/**\n * Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes\n * inside the outlet.\n */\nclass CdkTreeNodeOutlet {\n constructor(viewContainer, _node) {\n this.viewContainer = viewContainer;\n this._node = _node;\n }\n}\nCdkTreeNodeOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTreeNodeOutlet, selector: \"[cdkTreeNodeOutlet]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkTreeNodeOutlet]',\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TREE_NODE_OUTLET_NODE]\n }, {\n type: Optional\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Context provided to the tree node component. */\nclass CdkTreeNodeOutletContext {\n constructor(data) {\n this.$implicit = data;\n }\n}\n/**\n * Data node definition for the CdkTree.\n * Captures the node's template and a when predicate that describes when this node should be used.\n */\nclass CdkTreeNodeDef {\n /** @docs-private */\n constructor(template) {\n this.template = template;\n }\n}\nCdkTreeNodeDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeDef, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTreeNodeDef, selector: \"[cdkTreeNodeDef]\", inputs: { when: [\"cdkTreeNodeDefWhen\", \"when\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkTreeNodeDef]',\n inputs: ['when: cdkTreeNodeDefWhen'],\n }]\n }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an error to be thrown when there is no usable data.\n * @docs-private\n */\nfunction getTreeNoValidDataSourceError() {\n return Error(`A valid data source must be provided.`);\n}\n/**\n * Returns an error to be thrown when there are multiple nodes that are missing a when function.\n * @docs-private\n */\nfunction getTreeMultipleDefaultNodeDefsError() {\n return Error(`There can only be one default row without a when predicate function.`);\n}\n/**\n * Returns an error to be thrown when there are no matching node defs for a particular set of data.\n * @docs-private\n */\nfunction getTreeMissingMatchingNodeDefError() {\n return Error(`Could not find a matching node definition for the provided node data.`);\n}\n/**\n * Returns an error to be thrown when there are tree control.\n * @docs-private\n */\nfunction getTreeControlMissingError() {\n return Error(`Could not find a tree control for the tree.`);\n}\n/**\n * Returns an error to be thrown when tree control did not implement functions for flat/nested node.\n * @docs-private\n */\nfunction getTreeControlFunctionsMissingError() {\n return Error(`Could not find functions for nested/flat tree in tree control.`);\n}\n\n/**\n * CDK tree component that connects with a data source to retrieve data of type `T` and renders\n * dataNodes with hierarchy. Updates the dataNodes when new data is provided by the data source.\n */\nclass CdkTree {\n constructor(_differs, _changeDetectorRef) {\n this._differs = _differs;\n this._changeDetectorRef = _changeDetectorRef;\n /** Subject that emits when the component has been destroyed. */\n this._onDestroy = new Subject();\n /** Level of nodes */\n this._levels = new Map();\n // TODO(tinayuangao): Setup a listener for scrolling, emit the calculated view to viewChange.\n // Remove the MAX_VALUE in viewChange\n /**\n * Stream containing the latest information on what rows are being displayed on screen.\n * Can be used by the data source to as a heuristic of what data should be provided.\n */\n this.viewChange = new BehaviorSubject({\n start: 0,\n end: Number.MAX_VALUE,\n });\n }\n /**\n * Provides a stream containing the latest data array to render. Influenced by the tree's\n * stream of view window (what dataNodes are currently on screen).\n * Data source can be an observable of data array, or a data array to render.\n */\n get dataSource() {\n return this._dataSource;\n }\n set dataSource(dataSource) {\n if (this._dataSource !== dataSource) {\n this._switchDataSource(dataSource);\n }\n }\n ngOnInit() {\n this._dataDiffer = this._differs.find([]).create(this.trackBy);\n if (!this.treeControl && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTreeControlMissingError();\n }\n }\n ngOnDestroy() {\n this._nodeOutlet.viewContainer.clear();\n this.viewChange.complete();\n this._onDestroy.next();\n this._onDestroy.complete();\n if (this._dataSource && typeof this._dataSource.disconnect === 'function') {\n this.dataSource.disconnect(this);\n }\n if (this._dataSubscription) {\n this._dataSubscription.unsubscribe();\n this._dataSubscription = null;\n }\n }\n ngAfterContentChecked() {\n const defaultNodeDefs = this._nodeDefs.filter(def => !def.when);\n if (defaultNodeDefs.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTreeMultipleDefaultNodeDefsError();\n }\n this._defaultNodeDef = defaultNodeDefs[0];\n if (this.dataSource && this._nodeDefs && !this._dataSubscription) {\n this._observeRenderChanges();\n }\n }\n // TODO(tinayuangao): Work on keyboard traversal and actions, make sure it's working for RTL\n // and nested trees.\n /**\n * Switch to the provided data source by resetting the data and unsubscribing from the current\n * render change subscription if one exists. If the data source is null, interpret this by\n * clearing the node outlet. Otherwise start listening for new data.\n */\n _switchDataSource(dataSource) {\n if (this._dataSource && typeof this._dataSource.disconnect === 'function') {\n this.dataSource.disconnect(this);\n }\n if (this._dataSubscription) {\n this._dataSubscription.unsubscribe();\n this._dataSubscription = null;\n }\n // Remove the all dataNodes if there is now no data source\n if (!dataSource) {\n this._nodeOutlet.viewContainer.clear();\n }\n this._dataSource = dataSource;\n if (this._nodeDefs) {\n this._observeRenderChanges();\n }\n }\n /** Set up a subscription for the data provided by the data source. */\n _observeRenderChanges() {\n let dataStream;\n if (isDataSource(this._dataSource)) {\n dataStream = this._dataSource.connect(this);\n }\n else if (isObservable(this._dataSource)) {\n dataStream = this._dataSource;\n }\n else if (Array.isArray(this._dataSource)) {\n dataStream = of(this._dataSource);\n }\n if (dataStream) {\n this._dataSubscription = dataStream\n .pipe(takeUntil(this._onDestroy))\n .subscribe(data => this.renderNodeChanges(data));\n }\n else if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw getTreeNoValidDataSourceError();\n }\n }\n /** Check for changes made in the data and render each change (node added/removed/moved). */\n renderNodeChanges(data, dataDiffer = this._dataDiffer, viewContainer = this._nodeOutlet.viewContainer, parentData) {\n const changes = dataDiffer.diff(data);\n if (!changes) {\n return;\n }\n changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n if (item.previousIndex == null) {\n this.insertNode(data[currentIndex], currentIndex, viewContainer, parentData);\n }\n else if (currentIndex == null) {\n viewContainer.remove(adjustedPreviousIndex);\n this._levels.delete(item.item);\n }\n else {\n const view = viewContainer.get(adjustedPreviousIndex);\n viewContainer.move(view, currentIndex);\n }\n });\n this._changeDetectorRef.detectChanges();\n }\n /**\n * Finds the matching node definition that should be used for this node data. If there is only\n * one node definition, it is returned. Otherwise, find the node definition that has a when\n * predicate that returns true with the data. If none return true, return the default node\n * definition.\n */\n _getNodeDef(data, i) {\n if (this._nodeDefs.length === 1) {\n return this._nodeDefs.first;\n }\n const nodeDef = this._nodeDefs.find(def => def.when && def.when(i, data)) || this._defaultNodeDef;\n if (!nodeDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTreeMissingMatchingNodeDefError();\n }\n return nodeDef;\n }\n /**\n * Create the embedded view for the data node template and place it in the correct index location\n * within the data node view container.\n */\n insertNode(nodeData, index, viewContainer, parentData) {\n const node = this._getNodeDef(nodeData, index);\n // Node context that will be provided to created embedded view\n const context = new CdkTreeNodeOutletContext(nodeData);\n // If the tree is flat tree, then use the `getLevel` function in flat tree control\n // Otherwise, use the level of parent node.\n if (this.treeControl.getLevel) {\n context.level = this.treeControl.getLevel(nodeData);\n }\n else if (typeof parentData !== 'undefined' && this._levels.has(parentData)) {\n context.level = this._levels.get(parentData) + 1;\n }\n else {\n context.level = 0;\n }\n this._levels.set(nodeData, context.level);\n // Use default tree nodeOutlet, or nested node's nodeOutlet\n const container = viewContainer ? viewContainer : this._nodeOutlet.viewContainer;\n container.createEmbeddedView(node.template, context, index);\n // Set the data to just created `CdkTreeNode`.\n // The `CdkTreeNode` created from `createEmbeddedView` will be saved in static variable\n // `mostRecentTreeNode`. We get it from static variable and pass the node data to it.\n if (CdkTreeNode.mostRecentTreeNode) {\n CdkTreeNode.mostRecentTreeNode.data = nodeData;\n }\n }\n}\nCdkTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTree, deps: [{ token: i0.IterableDiffers }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });\nCdkTree.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTree, selector: \"cdk-tree\", inputs: { dataSource: \"dataSource\", treeControl: \"treeControl\", trackBy: \"trackBy\" }, host: { attributes: { \"role\": \"tree\" }, classAttribute: \"cdk-tree\" }, queries: [{ propertyName: \"_nodeDefs\", predicate: CdkTreeNodeDef, descendants: true }], viewQueries: [{ propertyName: \"_nodeOutlet\", first: true, predicate: CdkTreeNodeOutlet, descendants: true, static: true }], exportAs: [\"cdkTree\"], ngImport: i0, template: `<ng-container cdkTreeNodeOutlet></ng-container>`, isInline: true, directives: [{ type: CdkTreeNodeOutlet, selector: \"[cdkTreeNodeOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTree, decorators: [{\n type: Component,\n args: [{\n selector: 'cdk-tree',\n exportAs: 'cdkTree',\n template: `<ng-container cdkTreeNodeOutlet></ng-container>`,\n host: {\n 'class': 'cdk-tree',\n 'role': 'tree',\n },\n encapsulation: ViewEncapsulation.None,\n // The \"OnPush\" status for the `CdkTree` component is effectively a noop, so we are removing it.\n // The view for `CdkTree` consists entirely of templates declared in other views. As they are\n // declared elsewhere, they are checked when their declaration points are checked.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n }]\n }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dataSource: [{\n type: Input\n }], treeControl: [{\n type: Input\n }], trackBy: [{\n type: Input\n }], _nodeOutlet: [{\n type: ViewChild,\n args: [CdkTreeNodeOutlet, { static: true }]\n }], _nodeDefs: [{\n type: ContentChildren,\n args: [CdkTreeNodeDef, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }] } });\n/**\n * Tree node for CdkTree. It contains the data in the tree node.\n */\nclass CdkTreeNode {\n constructor(_elementRef, _tree) {\n this._elementRef = _elementRef;\n this._tree = _tree;\n /** Subject that emits when the component has been destroyed. */\n this._destroyed = new Subject();\n /** Emits when the node's data has changed. */\n this._dataChanges = new Subject();\n CdkTreeNode.mostRecentTreeNode = this;\n this.role = 'treeitem';\n }\n /**\n * The role of the tree node.\n * @deprecated The correct role is 'treeitem', 'group' should not be used. This input will be\n * removed in a future version.\n * @breaking-change 12.0.0 Remove this input\n */\n get role() {\n return 'treeitem';\n }\n set role(_role) {\n // TODO: move to host after View Engine deprecation\n this._elementRef.nativeElement.setAttribute('role', _role);\n }\n /** The tree node's data. */\n get data() {\n return this._data;\n }\n set data(value) {\n if (value !== this._data) {\n this._data = value;\n this._setRoleFromData();\n this._dataChanges.next();\n }\n }\n get isExpanded() {\n return this._tree.treeControl.isExpanded(this._data);\n }\n get level() {\n // If the treeControl has a getLevel method, use it to get the level. Otherwise read the\n // aria-level off the parent node and use it as the level for this node (note aria-level is\n // 1-indexed, while this property is 0-indexed, so we don't need to increment).\n return this._tree.treeControl.getLevel\n ? this._tree.treeControl.getLevel(this._data)\n : this._parentNodeAriaLevel;\n }\n ngOnInit() {\n this._parentNodeAriaLevel = getParentNodeAriaLevel(this._elementRef.nativeElement);\n this._elementRef.nativeElement.setAttribute('aria-level', `${this.level + 1}`);\n }\n ngOnDestroy() {\n // If this is the last tree node being destroyed,\n // clear out the reference to avoid leaking memory.\n if (CdkTreeNode.mostRecentTreeNode === this) {\n CdkTreeNode.mostRecentTreeNode = null;\n }\n this._dataChanges.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** Focuses the menu item. Implements for FocusableOption. */\n focus() {\n this._elementRef.nativeElement.focus();\n }\n // TODO: role should eventually just be set in the component host\n _setRoleFromData() {\n if (!this._tree.treeControl.isExpandable &&\n !this._tree.treeControl.getChildren &&\n (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTreeControlFunctionsMissingError();\n }\n this.role = 'treeitem';\n }\n}\n/**\n * The most recently created `CdkTreeNode`. We save it in static variable so we can retrieve it\n * in `CdkTree` and set the data to it.\n */\nCdkTreeNode.mostRecentTreeNode = null;\nCdkTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNode, deps: [{ token: i0.ElementRef }, { token: CdkTree }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTreeNode, selector: \"cdk-tree-node\", inputs: { role: \"role\" }, host: { properties: { \"attr.aria-expanded\": \"isExpanded\" }, classAttribute: \"cdk-tree-node\" }, exportAs: [\"cdkTreeNode\"], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNode, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-tree-node',\n exportAs: 'cdkTreeNode',\n host: {\n 'class': 'cdk-tree-node',\n '[attr.aria-expanded]': 'isExpanded',\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: CdkTree }]; }, propDecorators: { role: [{\n type: Input\n }] } });\nfunction getParentNodeAriaLevel(nodeElement) {\n let parent = nodeElement.parentElement;\n while (parent && !isNodeElement(parent)) {\n parent = parent.parentElement;\n }\n if (!parent) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n throw Error('Incorrect tree structure containing detached node.');\n }\n else {\n return -1;\n }\n }\n else if (parent.classList.contains('cdk-nested-tree-node')) {\n return coerceNumberProperty(parent.getAttribute('aria-level'));\n }\n else {\n // The ancestor element is the cdk-tree itself\n return 0;\n }\n}\nfunction isNodeElement(element) {\n const classList = element.classList;\n return !!((classList === null || classList === void 0 ? void 0 : classList.contains('cdk-nested-tree-node')) || (classList === null || classList === void 0 ? void 0 : classList.contains('cdk-tree')));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Nested node is a child of `<cdk-tree>`. It works with nested tree.\n * By using `cdk-nested-tree-node` component in tree node template, children of the parent node will\n * be added in the `cdkTreeNodeOutlet` in tree node template.\n * The children of node will be automatically added to `cdkTreeNodeOutlet`.\n */\nclass CdkNestedTreeNode extends CdkTreeNode {\n constructor(elementRef, tree, _differs) {\n super(elementRef, tree);\n this._differs = _differs;\n }\n ngAfterContentInit() {\n this._dataDiffer = this._differs.find([]).create(this._tree.trackBy);\n if (!this._tree.treeControl.getChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTreeControlFunctionsMissingError();\n }\n const childrenNodes = this._tree.treeControl.getChildren(this.data);\n if (Array.isArray(childrenNodes)) {\n this.updateChildrenNodes(childrenNodes);\n }\n else if (isObservable(childrenNodes)) {\n childrenNodes\n .pipe(takeUntil(this._destroyed))\n .subscribe(result => this.updateChildrenNodes(result));\n }\n this.nodeOutlet.changes\n .pipe(takeUntil(this._destroyed))\n .subscribe(() => this.updateChildrenNodes());\n }\n // This is a workaround for https://github.com/angular/angular/issues/23091\n // In aot mode, the lifecycle hooks from parent class are not called.\n ngOnInit() {\n super.ngOnInit();\n }\n ngOnDestroy() {\n this._clear();\n super.ngOnDestroy();\n }\n /** Add children dataNodes to the NodeOutlet */\n updateChildrenNodes(children) {\n const outlet = this._getNodeOutlet();\n if (children) {\n this._children = children;\n }\n if (outlet && this._children) {\n const viewContainer = outlet.viewContainer;\n this._tree.renderNodeChanges(this._children, this._dataDiffer, viewContainer, this._data);\n }\n else {\n // Reset the data differ if there's no children nodes displayed\n this._dataDiffer.diff([]);\n }\n }\n /** Clear the children dataNodes. */\n _clear() {\n const outlet = this._getNodeOutlet();\n if (outlet) {\n outlet.viewContainer.clear();\n this._dataDiffer.diff([]);\n }\n }\n /** Gets the outlet for the current node. */\n _getNodeOutlet() {\n const outlets = this.nodeOutlet;\n // Note that since we use `descendants: true` on the query, we have to ensure\n // that we don't pick up the outlet of a child node by accident.\n return outlets && outlets.find(outlet => !outlet._node || outlet._node === this);\n }\n}\nCdkNestedTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: CdkTree }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nCdkNestedTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkNestedTreeNode, selector: \"cdk-nested-tree-node\", inputs: { role: \"role\", disabled: \"disabled\", tabIndex: \"tabIndex\" }, host: { classAttribute: \"cdk-nested-tree-node\" }, providers: [\n { provide: CdkTreeNode, useExisting: CdkNestedTreeNode },\n { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: CdkNestedTreeNode },\n ], queries: [{ propertyName: \"nodeOutlet\", predicate: CdkTreeNodeOutlet, descendants: true }], exportAs: [\"cdkNestedTreeNode\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkNestedTreeNode, decorators: [{\n type: Directive,\n args: [{\n selector: 'cdk-nested-tree-node',\n exportAs: 'cdkNestedTreeNode',\n inputs: ['role', 'disabled', 'tabIndex'],\n providers: [\n { provide: CdkTreeNode, useExisting: CdkNestedTreeNode },\n { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: CdkNestedTreeNode },\n ],\n host: {\n 'class': 'cdk-nested-tree-node',\n },\n }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: CdkTree }, { type: i0.IterableDiffers }]; }, propDecorators: { nodeOutlet: [{\n type: ContentChildren,\n args: [CdkTreeNodeOutlet, {\n // We need to use `descendants: true`, because Ivy will no longer match\n // indirect descendants if it's left as false.\n descendants: true,\n }]\n }] } });\n\n/** Regex used to split a string on its CSS units. */\nconst cssUnitPattern = /([A-Za-z%]+)$/;\n/**\n * Indent for the children tree dataNodes.\n * This directive will add left-padding to the node to show hierarchy.\n */\nclass CdkTreeNodePadding {\n constructor(_treeNode, _tree, _element, _dir) {\n this._treeNode = _treeNode;\n this._tree = _tree;\n this._element = _element;\n this._dir = _dir;\n /** Subject that emits when the component has been destroyed. */\n this._destroyed = new Subject();\n /** CSS units used for the indentation value. */\n this.indentUnits = 'px';\n this._indent = 40;\n this._setPadding();\n if (_dir) {\n _dir.change.pipe(takeUntil(this._destroyed)).subscribe(() => this._setPadding(true));\n }\n // In Ivy the indentation binding might be set before the tree node's data has been added,\n // which means that we'll miss the first render. We have to subscribe to changes in the\n // data to ensure that everything is up to date.\n _treeNode._dataChanges.subscribe(() => this._setPadding());\n }\n /** The level of depth of the tree node. The padding will be `level * indent` pixels. */\n get level() {\n return this._level;\n }\n set level(value) {\n this._setLevelInput(value);\n }\n /**\n * The indent for each level. Can be a number or a CSS string.\n * Default number 40px from material design menu sub-menu spec.\n */\n get indent() {\n return this._indent;\n }\n set indent(indent) {\n this._setIndentInput(indent);\n }\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n }\n /** The padding indent value for the tree node. Returns a string with px numbers if not null. */\n _paddingIndent() {\n const nodeLevel = this._treeNode.data && this._tree.treeControl.getLevel\n ? this._tree.treeControl.getLevel(this._treeNode.data)\n : null;\n const level = this._level == null ? nodeLevel : this._level;\n return typeof level === 'number' ? `${level * this._indent}${this.indentUnits}` : null;\n }\n _setPadding(forceChange = false) {\n const padding = this._paddingIndent();\n if (padding !== this._currentPadding || forceChange) {\n const element = this._element.nativeElement;\n const paddingProp = this._dir && this._dir.value === 'rtl' ? 'paddingRight' : 'paddingLeft';\n const resetProp = paddingProp === 'paddingLeft' ? 'paddingRight' : 'paddingLeft';\n element.style[paddingProp] = padding || '';\n element.style[resetProp] = '';\n this._currentPadding = padding;\n }\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setLevelInput(value) {\n // Set to null as the fallback value so that _setPadding can fall back to the node level if the\n // consumer set the directive as `cdkTreeNodePadding=\"\"`. We still want to take this value if\n // they set 0 explicitly.\n this._level = coerceNumberProperty(value, null);\n this._setPadding();\n }\n /**\n * This has been extracted to a util because of TS 4 and VE.\n * View Engine doesn't support property rename inheritance.\n * TS 4.0 doesn't allow properties to override accessors or vice-versa.\n * @docs-private\n */\n _setIndentInput(indent) {\n let value = indent;\n let units = 'px';\n if (typeof indent === 'string') {\n const parts = indent.split(cssUnitPattern);\n value = parts[0];\n units = parts[1] || units;\n }\n this.indentUnits = units;\n this._indent = coerceNumberProperty(value);\n this._setPadding();\n }\n}\nCdkTreeNodePadding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodePadding, deps: [{ token: CdkTreeNode }, { token: CdkTree }, { token: i0.ElementRef }, { token: i2.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodePadding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTreeNodePadding, selector: \"[cdkTreeNodePadding]\", inputs: { level: [\"cdkTreeNodePadding\", \"level\"], indent: [\"cdkTreeNodePaddingIndent\", \"indent\"] }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodePadding, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkTreeNodePadding]',\n }]\n }], ctorParameters: function () {\n return [{ type: CdkTreeNode }, { type: CdkTree }, { type: i0.ElementRef }, { type: i2.Directionality, decorators: [{\n type: Optional\n }] }];\n }, propDecorators: { level: [{\n type: Input,\n args: ['cdkTreeNodePadding']\n }], indent: [{\n type: Input,\n args: ['cdkTreeNodePaddingIndent']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Node toggle to expand/collapse the node.\n */\nclass CdkTreeNodeToggle {\n constructor(_tree, _treeNode) {\n this._tree = _tree;\n this._treeNode = _treeNode;\n this._recursive = false;\n }\n /** Whether expand/collapse the node recursively. */\n get recursive() {\n return this._recursive;\n }\n set recursive(value) {\n this._recursive = coerceBooleanProperty(value);\n }\n _toggle(event) {\n this.recursive\n ? this._tree.treeControl.toggleDescendants(this._treeNode.data)\n : this._tree.treeControl.toggle(this._treeNode.data);\n event.stopPropagation();\n }\n}\nCdkTreeNodeToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeToggle, deps: [{ token: CdkTree }, { token: CdkTreeNode }], target: i0.ɵɵFactoryTarget.Directive });\nCdkTreeNodeToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: CdkTreeNodeToggle, selector: \"[cdkTreeNodeToggle]\", inputs: { recursive: [\"cdkTreeNodeToggleRecursive\", \"recursive\"] }, host: { listeners: { \"click\": \"_toggle($event)\" } }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeNodeToggle, decorators: [{\n type: Directive,\n args: [{\n selector: '[cdkTreeNodeToggle]',\n host: {\n '(click)': '_toggle($event)',\n },\n }]\n }], ctorParameters: function () { return [{ type: CdkTree }, { type: CdkTreeNode }]; }, propDecorators: { recursive: [{\n type: Input,\n args: ['cdkTreeNodeToggleRecursive']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst EXPORTED_DECLARATIONS = [\n CdkNestedTreeNode,\n CdkTreeNodeDef,\n CdkTreeNodePadding,\n CdkTreeNodeToggle,\n CdkTree,\n CdkTreeNode,\n CdkTreeNodeOutlet,\n];\nclass CdkTreeModule {\n}\nCdkTreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCdkTreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeModule, declarations: [CdkNestedTreeNode,\n CdkTreeNodeDef,\n CdkTreeNodePadding,\n CdkTreeNodeToggle,\n CdkTree,\n CdkTreeNode,\n CdkTreeNodeOutlet], exports: [CdkNestedTreeNode,\n CdkTreeNodeDef,\n CdkTreeNodePadding,\n CdkTreeNodeToggle,\n CdkTree,\n CdkTreeNode,\n CdkTreeNodeOutlet] });\nCdkTreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeModule });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: CdkTreeModule, decorators: [{\n type: NgModule,\n args: [{\n exports: EXPORTED_DECLARATIONS,\n declarations: EXPORTED_DECLARATIONS,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BaseTreeControl, CDK_TREE_NODE_OUTLET_NODE, CdkNestedTreeNode, CdkTree, CdkTreeModule, CdkTreeNode, CdkTreeNodeDef, CdkTreeNodeOutlet, CdkTreeNodeOutletContext, CdkTreeNodePadding, CdkTreeNodeToggle, FlatTreeControl, NestedTreeControl, getTreeControlFunctionsMissingError, getTreeControlMissingError, getTreeMissingMatchingNodeDefError, getTreeMultipleDefaultNodeDefsError, getTreeNoValidDataSourceError };\n","import * as i1 from '@angular/cdk/tree';\nimport { CdkTreeNode, CdkTreeNodeDef, CdkNestedTreeNode, CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodePadding, CdkTreeNodeOutlet, CdkTree, CdkTreeNodeToggle, CdkTreeModule } from '@angular/cdk/tree';\nimport * as i0 from '@angular/core';\nimport { Directive, Attribute, Input, Inject, Optional, Component, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';\nimport { mixinTabIndex, mixinDisabled, MatCommonModule } from '@angular/material/core';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DataSource } from '@angular/cdk/collections';\nimport { BehaviorSubject, merge } from 'rxjs';\nimport { take, map } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst _MatTreeNodeBase = mixinTabIndex(mixinDisabled(CdkTreeNode));\n/**\n * Wrapper for the CdkTree node with Material design styles.\n */\nclass MatTreeNode extends _MatTreeNodeBase {\n constructor(elementRef, tree, tabIndex) {\n super(elementRef, tree);\n this.tabIndex = Number(tabIndex) || 0;\n }\n // This is a workaround for https://github.com/angular/angular/issues/23091\n // In aot mode, the lifecycle hooks from parent class are not called.\n ngOnInit() {\n super.ngOnInit();\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n }\n}\nMatTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTreeNode, selector: \"mat-tree-node\", inputs: { role: \"role\", disabled: \"disabled\", tabIndex: \"tabIndex\" }, host: { classAttribute: \"mat-tree-node\" }, providers: [{ provide: CdkTreeNode, useExisting: MatTreeNode }], exportAs: [\"matTreeNode\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNode, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-tree-node',\n exportAs: 'matTreeNode',\n inputs: ['role', 'disabled', 'tabIndex'],\n providers: [{ provide: CdkTreeNode, useExisting: MatTreeNode }],\n host: {\n 'class': 'mat-tree-node',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.CdkTree }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n } });\n/**\n * Wrapper for the CdkTree node definition with Material design styles.\n * Captures the node's template and a when predicate that describes when this node should be used.\n */\nclass MatTreeNodeDef extends CdkTreeNodeDef {\n}\nMatTreeNodeDef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeDef, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatTreeNodeDef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTreeNodeDef, selector: \"[matTreeNodeDef]\", inputs: { when: [\"matTreeNodeDefWhen\", \"when\"], data: [\"matTreeNode\", \"data\"] }, providers: [{ provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeDef, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTreeNodeDef]',\n inputs: ['when: matTreeNodeDefWhen'],\n providers: [{ provide: CdkTreeNodeDef, useExisting: MatTreeNodeDef }],\n }]\n }], propDecorators: { data: [{\n type: Input,\n args: ['matTreeNode']\n }] } });\n/**\n * Wrapper for the CdkTree nested node with Material design styles.\n */\nclass MatNestedTreeNode extends CdkNestedTreeNode {\n constructor(elementRef, tree, differs, tabIndex) {\n super(elementRef, tree, differs);\n this._disabled = false;\n this.tabIndex = Number(tabIndex) || 0;\n }\n /** Whether the node is disabled. */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n }\n /** Tabindex for the node. */\n get tabIndex() {\n return this.disabled ? -1 : this._tabIndex;\n }\n set tabIndex(value) {\n // If the specified tabIndex value is null or undefined, fall back to the default value.\n this._tabIndex = value != null ? value : 0;\n }\n // This is a workaround for https://github.com/angular/angular/issues/19145\n // In aot mode, the lifecycle hooks from parent class are not called.\n // TODO(tinayuangao): Remove when the angular issue #19145 is fixed\n ngOnInit() {\n super.ngOnInit();\n }\n ngAfterContentInit() {\n super.ngAfterContentInit();\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n }\n}\nMatNestedTreeNode.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNestedTreeNode, deps: [{ token: i0.ElementRef }, { token: i1.CdkTree }, { token: i0.IterableDiffers }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatNestedTreeNode.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatNestedTreeNode, selector: \"mat-nested-tree-node\", inputs: { role: \"role\", disabled: \"disabled\", tabIndex: \"tabIndex\", node: [\"matNestedTreeNode\", \"node\"] }, host: { classAttribute: \"mat-nested-tree-node\" }, providers: [\n { provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode },\n { provide: CdkTreeNode, useExisting: MatNestedTreeNode },\n { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode },\n ], exportAs: [\"matNestedTreeNode\"], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatNestedTreeNode, decorators: [{\n type: Directive,\n args: [{\n selector: 'mat-nested-tree-node',\n exportAs: 'matNestedTreeNode',\n inputs: ['role', 'disabled', 'tabIndex'],\n providers: [\n { provide: CdkNestedTreeNode, useExisting: MatNestedTreeNode },\n { provide: CdkTreeNode, useExisting: MatNestedTreeNode },\n { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: MatNestedTreeNode },\n ],\n host: {\n 'class': 'mat-nested-tree-node',\n },\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ElementRef }, { type: i1.CdkTree }, { type: i0.IterableDiffers }, { type: undefined, decorators: [{\n type: Attribute,\n args: ['tabindex']\n }] }];\n }, propDecorators: { node: [{\n type: Input,\n args: ['matNestedTreeNode']\n }], disabled: [{\n type: Input\n }], tabIndex: [{\n type: Input\n }] } });\n\n/**\n * Wrapper for the CdkTree padding with Material design styles.\n */\nclass MatTreeNodePadding extends CdkTreeNodePadding {\n /** The level of depth of the tree node. The padding will be `level * indent` pixels. */\n get level() {\n return this._level;\n }\n set level(value) {\n this._setLevelInput(value);\n }\n /** The indent for each level. Default number 40px from material design menu sub-menu spec. */\n get indent() {\n return this._indent;\n }\n set indent(indent) {\n this._setIndentInput(indent);\n }\n}\nMatTreeNodePadding.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodePadding, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatTreeNodePadding.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTreeNodePadding, selector: \"[matTreeNodePadding]\", inputs: { level: [\"matTreeNodePadding\", \"level\"], indent: [\"matTreeNodePaddingIndent\", \"indent\"] }, providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodePadding, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTreeNodePadding]',\n providers: [{ provide: CdkTreeNodePadding, useExisting: MatTreeNodePadding }],\n }]\n }], propDecorators: { level: [{\n type: Input,\n args: ['matTreeNodePadding']\n }], indent: [{\n type: Input,\n args: ['matTreeNodePaddingIndent']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Outlet for nested CdkNode. Put `[matTreeNodeOutlet]` on a tag to place children dataNodes\n * inside the outlet.\n */\nclass MatTreeNodeOutlet {\n constructor(viewContainer, _node) {\n this.viewContainer = viewContainer;\n this._node = _node;\n }\n}\nMatTreeNodeOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeOutlet, deps: [{ token: i0.ViewContainerRef }, { token: CDK_TREE_NODE_OUTLET_NODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nMatTreeNodeOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTreeNodeOutlet, selector: \"[matTreeNodeOutlet]\", providers: [\n {\n provide: CdkTreeNodeOutlet,\n useExisting: MatTreeNodeOutlet,\n },\n ], ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeOutlet, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTreeNodeOutlet]',\n providers: [\n {\n provide: CdkTreeNodeOutlet,\n useExisting: MatTreeNodeOutlet,\n },\n ],\n }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: undefined, decorators: [{\n type: Inject,\n args: [CDK_TREE_NODE_OUTLET_NODE]\n }, {\n type: Optional\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Wrapper for the CdkTable with Material design styles.\n */\nclass MatTree extends CdkTree {\n}\nMatTree.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTree, deps: null, target: i0.ɵɵFactoryTarget.Component });\nMatTree.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTree, selector: \"mat-tree\", host: { attributes: { \"role\": \"tree\" }, classAttribute: \"mat-tree\" }, providers: [{ provide: CdkTree, useExisting: MatTree }], viewQueries: [{ propertyName: \"_nodeOutlet\", first: true, predicate: MatTreeNodeOutlet, descendants: true, static: true }], exportAs: [\"matTree\"], usesInheritance: true, ngImport: i0, template: `<ng-container matTreeNodeOutlet></ng-container>`, isInline: true, styles: [\".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\\n\"], directives: [{ type: MatTreeNodeOutlet, selector: \"[matTreeNodeOutlet]\" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTree, decorators: [{\n type: Component,\n args: [{ selector: 'mat-tree', exportAs: 'matTree', template: `<ng-container matTreeNodeOutlet></ng-container>`, host: {\n 'class': 'mat-tree',\n 'role': 'tree',\n }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, providers: [{ provide: CdkTree, useExisting: MatTree }], styles: [\".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\\n\"] }]\n }], propDecorators: { _nodeOutlet: [{\n type: ViewChild,\n args: [MatTreeNodeOutlet, { static: true }]\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Wrapper for the CdkTree's toggle with Material design styles.\n */\nclass MatTreeNodeToggle extends CdkTreeNodeToggle {\n}\nMatTreeNodeToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeToggle, deps: null, target: i0.ɵɵFactoryTarget.Directive });\nMatTreeNodeToggle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.0\", type: MatTreeNodeToggle, selector: \"[matTreeNodeToggle]\", inputs: { recursive: [\"matTreeNodeToggleRecursive\", \"recursive\"] }, providers: [{ provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle }], usesInheritance: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeNodeToggle, decorators: [{\n type: Directive,\n args: [{\n selector: '[matTreeNodeToggle]',\n providers: [{ provide: CdkTreeNodeToggle, useExisting: MatTreeNodeToggle }],\n inputs: ['recursive: matTreeNodeToggleRecursive'],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst MAT_TREE_DIRECTIVES = [\n MatNestedTreeNode,\n MatTreeNodeDef,\n MatTreeNodePadding,\n MatTreeNodeToggle,\n MatTree,\n MatTreeNode,\n MatTreeNodeOutlet,\n];\nclass MatTreeModule {\n}\nMatTreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nMatTreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeModule, declarations: [MatNestedTreeNode,\n MatTreeNodeDef,\n MatTreeNodePadding,\n MatTreeNodeToggle,\n MatTree,\n MatTreeNode,\n MatTreeNodeOutlet], imports: [CdkTreeModule, MatCommonModule], exports: [MatCommonModule, MatNestedTreeNode,\n MatTreeNodeDef,\n MatTreeNodePadding,\n MatTreeNodeToggle,\n MatTree,\n MatTreeNode,\n MatTreeNodeOutlet] });\nMatTreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeModule, imports: [[CdkTreeModule, MatCommonModule], MatCommonModule] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.0\", ngImport: i0, type: MatTreeModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CdkTreeModule, MatCommonModule],\n exports: [MatCommonModule, MAT_TREE_DIRECTIVES],\n declarations: MAT_TREE_DIRECTIVES,\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Tree flattener to convert a normal type of node to node with children & level information.\n * Transform nested nodes of type `T` to flattened nodes of type `F`.\n *\n * For example, the input data of type `T` is nested, and contains its children data:\n * SomeNode: {\n * key: 'Fruits',\n * children: [\n * NodeOne: {\n * key: 'Apple',\n * },\n * NodeTwo: {\n * key: 'Pear',\n * }\n * ]\n * }\n * After flattener flatten the tree, the structure will become\n * SomeNode: {\n * key: 'Fruits',\n * expandable: true,\n * level: 1\n * },\n * NodeOne: {\n * key: 'Apple',\n * expandable: false,\n * level: 2\n * },\n * NodeTwo: {\n * key: 'Pear',\n * expandable: false,\n * level: 2\n * }\n * and the output flattened type is `F` with additional information.\n */\nclass MatTreeFlattener {\n constructor(transformFunction, getLevel, isExpandable, getChildren) {\n this.transformFunction = transformFunction;\n this.getLevel = getLevel;\n this.isExpandable = isExpandable;\n this.getChildren = getChildren;\n }\n _flattenNode(node, level, resultNodes, parentMap) {\n const flatNode = this.transformFunction(node, level);\n resultNodes.push(flatNode);\n if (this.isExpandable(flatNode)) {\n const childrenNodes = this.getChildren(node);\n if (childrenNodes) {\n if (Array.isArray(childrenNodes)) {\n this._flattenChildren(childrenNodes, level, resultNodes, parentMap);\n }\n else {\n childrenNodes.pipe(take(1)).subscribe(children => {\n this._flattenChildren(children, level, resultNodes, parentMap);\n });\n }\n }\n }\n return resultNodes;\n }\n _flattenChildren(children, level, resultNodes, parentMap) {\n children.forEach((child, index) => {\n let childParentMap = parentMap.slice();\n childParentMap.push(index != children.length - 1);\n this._flattenNode(child, level + 1, resultNodes, childParentMap);\n });\n }\n /**\n * Flatten a list of node type T to flattened version of node F.\n * Please note that type T may be nested, and the length of `structuredData` may be different\n * from that of returned list `F[]`.\n */\n flattenNodes(structuredData) {\n let resultNodes = [];\n structuredData.forEach(node => this._flattenNode(node, 0, resultNodes, []));\n return resultNodes;\n }\n /**\n * Expand flattened node with current expansion status.\n * The returned list may have different length.\n */\n expandFlattenedNodes(nodes, treeControl) {\n let results = [];\n let currentExpand = [];\n currentExpand[0] = true;\n nodes.forEach(node => {\n let expand = true;\n for (let i = 0; i <= this.getLevel(node); i++) {\n expand = expand && currentExpand[i];\n }\n if (expand) {\n results.push(node);\n }\n if (this.isExpandable(node)) {\n currentExpand[this.getLevel(node) + 1] = treeControl.isExpanded(node);\n }\n });\n return results;\n }\n}\n/**\n * Data source for flat tree.\n * The data source need to handle expansion/collapsion of the tree node and change the data feed\n * to `MatTree`.\n * The nested tree nodes of type `T` are flattened through `MatTreeFlattener`, and converted\n * to type `F` for `MatTree` to consume.\n */\nclass MatTreeFlatDataSource extends DataSource {\n constructor(_treeControl, _treeFlattener, initialData) {\n super();\n this._treeControl = _treeControl;\n this._treeFlattener = _treeFlattener;\n this._flattenedData = new BehaviorSubject([]);\n this._expandedData = new BehaviorSubject([]);\n this._data = new BehaviorSubject([]);\n if (initialData) {\n // Assign the data through the constructor to ensure that all of the logic is executed.\n this.data = initialData;\n }\n }\n get data() {\n return this._data.value;\n }\n set data(value) {\n this._data.next(value);\n this._flattenedData.next(this._treeFlattener.flattenNodes(this.data));\n this._treeControl.dataNodes = this._flattenedData.value;\n }\n connect(collectionViewer) {\n return merge(collectionViewer.viewChange, this._treeControl.expansionModel.changed, this._flattenedData).pipe(map(() => {\n this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value, this._treeControl));\n return this._expandedData.value;\n }));\n }\n disconnect() {\n // no op\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Data source for nested tree.\n *\n * The data source for nested tree doesn't have to consider node flattener, or the way to expand\n * or collapse. The expansion/collapsion will be handled by TreeControl and each non-leaf node.\n */\nclass MatTreeNestedDataSource extends DataSource {\n constructor() {\n super(...arguments);\n this._data = new BehaviorSubject([]);\n }\n /**\n * Data for the nested tree\n */\n get data() {\n return this._data.value;\n }\n set data(value) {\n this._data.next(value);\n }\n connect(collectionViewer) {\n return merge(...[collectionViewer.viewChange, this._data]).pipe(map(() => this.data));\n }\n disconnect() {\n // no op\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MatNestedTreeNode, MatTree, MatTreeFlatDataSource, MatTreeFlattener, MatTreeModule, MatTreeNestedDataSource, MatTreeNode, MatTreeNodeDef, MatTreeNodeOutlet, MatTreeNodePadding, MatTreeNodeToggle };\n","import { MatBottomSheetModule } from '@angular/material/bottom-sheet';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatListModule } from '@angular/material/list';\nimport {\n MatPaginatorModule,\n MatPaginatorIntl\n} from '@angular/material/paginator';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { MatRadioModule } from '@angular/material/radio';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { NgModule } from '@angular/core';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatPaginatorIntlCro } from '../../../shared/modules/paginator-label-overrides';\n\nimport {\n NgxMatDatetimePickerModule,\n NgxMatNativeDateModule,\n NgxMatTimepickerModule,\n NgxMatDateFormats,\n NGX_MAT_DATE_FORMATS\n} from '@angular-material-components/datetime-picker';\nimport { NgxMatMomentModule } from '@angular-material-components/moment-adapter';\nimport { MatTreeModule } from '@angular/material/tree';\n\nconst CUSTOM_DATE_FORMATS: NgxMatDateFormats = {\n parse: {\n // dateInput: 'l, LTS'\n dateInput: 'DD/MM/YYYY HH:mm'\n },\n display: {\n dateInput: 'DD/MM/YYYY HH:mm',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY'\n }\n};\n\n@NgModule({\n imports: [\n MatTreeModule,\n MatButtonModule,\n MatCheckboxModule,\n MatCardModule,\n MatChipsModule,\n MatIconModule,\n MatDatepickerModule,\n MatDialogModule,\n MatNativeDateModule,\n MatTabsModule,\n MatSlideToggleModule,\n MatDividerModule,\n MatGridListModule,\n MatSelectModule,\n MatExpansionModule,\n MatTableModule,\n MatPaginatorModule,\n MatFormFieldModule,\n MatInputModule,\n MatStepperModule,\n MatProgressSpinnerModule,\n MatSidenavModule,\n MatSortModule,\n MatProgressBarModule,\n MatBottomSheetModule,\n MatSnackBarModule,\n MatListModule,\n MatRadioModule,\n MatMenuModule,\n NgxMatDatetimePickerModule,\n NgxMatNativeDateModule,\n NgxMatTimepickerModule\n ],\n exports: [\n MatTreeModule,\n MatButtonModule,\n MatCheckboxModule,\n MatCardModule,\n MatChipsModule,\n MatIconModule,\n MatDatepickerModule,\n MatDialogModule,\n MatNativeDateModule,\n MatTabsModule,\n MatSlideToggleModule,\n MatDividerModule,\n MatGridListModule,\n MatSelectModule,\n MatExpansionModule,\n MatTableModule,\n MatPaginatorModule,\n MatFormFieldModule,\n MatInputModule,\n MatStepperModule,\n MatProgressSpinnerModule,\n MatSidenavModule,\n MatSortModule,\n MatProgressBarModule,\n MatBottomSheetModule,\n MatSnackBarModule,\n MatListModule,\n MatRadioModule,\n MatMenuModule,\n NgxMatDatetimePickerModule,\n NgxMatNativeDateModule,\n NgxMatTimepickerModule,\n NgxMatMomentModule\n ],\n providers: [\n {\n provide: MatPaginatorIntl,\n useClass: MatPaginatorIntlCro\n },\n {\n provide: NGX_MAT_DATE_FORMATS,\n useValue: CUSTOM_DATE_FORMATS\n }\n ]\n})\nexport class MaterialModule {}\n","// tslint:disable-next-line: max-line-length\nimport { ConfirmDeleteAccreditationsComponent } from '@back-office/components/confirm-delete-accreditations/confirm-delete-accreditations.component';\nimport { ConfirmDeletePersonComponent } from '@back-office/components/confirm-delete-person/confirm-delete-person.component';\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SnackbarComponent } from './snackbar/snackbar.component';\nimport { MaterialModule } from '@back-office/material.module';\nimport { ConfirmSendReminderComponent } from '@back-office/components/confirm-send-reminder/confirm-send-reminder.component';\n\n@NgModule({\n declarations: [\n SnackbarComponent,\n ConfirmDeletePersonComponent,\n ConfirmSendReminderComponent,\n ConfirmDeleteAccreditationsComponent\n ],\n imports: [CommonModule, MaterialModule]\n})\nexport class AppMessageModule {}\n","import { Injectable } from '@angular/core';\nimport {\n HttpInterceptor,\n HttpRequest,\n HttpHandler,\n HttpEvent\n} from '@angular/common/http';\nimport { Observable } from 'rxjs';\n\n@Injectable()\nexport class NoCacheInterceptor implements HttpInterceptor {\n constructor() {}\n\n intercept(\n req: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n if (req.method === 'GET') {\n req = req.clone({\n headers: req.headers\n .set('Cache-Control', 'no-cache')\n .set('Pragma', 'no-cache')\n });\n return next.handle(req);\n }\n\n return next.handle(req);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n HttpInterceptor,\n HttpRequest,\n HttpHandler,\n HttpEvent\n} from '@angular/common/http';\nimport { Observable } from 'rxjs';\n\n@Injectable()\nexport class HttpAddCredentialsInterceptor implements HttpInterceptor {\n intercept(\n req: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n // req = req.clone({\n // withCredentials: true\n // });\n req = req.clone({\n setHeaders: {\n Authorization: `Bearer ${sessionStorage.getItem('id_token')}`\n }\n });\n return next.handle(req);\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n HttpInterceptor,\n HttpRequest,\n HttpHandler,\n HttpEvent\n} from '@angular/common/http';\nimport { Observable } from 'rxjs';\n\n@Injectable()\nexport class HttpSetLastCallInterceptor implements HttpInterceptor {\n intercept(\n req: HttpRequest<any>,\n next: HttpHandler\n ): Observable<HttpEvent<any>> {\n sessionStorage.setItem('last_call', req.url);\n return next.handle(req);\n }\n}\n","import { AzeriKeyboardComponent } from '@projects-shared/components/formly-custom-fields/azeri-keyboard/azeri-keyboard.component';\nimport { HistoryBackService } from '@projects-shared/services/history-back.service';\nimport { FoClosedComponent } from '@front-office/components/fo-closed/fo-closed.component';\nimport { PageNotFoundComponent } from '@front-office/components/page-not-found/page-not-found.component';\nimport { FormRenderComponent } from '@front-office/components/form-render/form-render.component';\nimport { BrowserModule } from '@angular/platform-browser';\nimport {\n NgModule,\n APP_INITIALIZER,\n ErrorHandler,\n CUSTOM_ELEMENTS_SCHEMA\n} from '@angular/core';\n\nimport { AppComponent } from '@front-office/app.component';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { MaterialModule } from '@front-office/material.module';\n\nimport { NgxsModule, Store } from '@ngxs/store';\nimport {\n NgxsRouterPluginModule,\n RouterStateSerializer\n} from '@ngxs/router-plugin';\nimport { NgxsFormPluginModule } from '@ngxs/form-plugin';\nimport { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';\nimport {\n PerfectScrollbarModule,\n PerfectScrollbarConfigInterface,\n PERFECT_SCROLLBAR_CONFIG\n} from 'ngx-perfect-scrollbar';\n\nimport { appStates } from '@front-office/store/app.states';\nimport { environment } from '../environments/environment';\nimport { AppRoutingModule } from '@front-office/app-routing.module';\nimport { LandingComponent } from '@front-office/components/landing/landing.component';\nimport { NgLetModule } from '@projects-shared/ng-let.directive';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyMaterialModule } from '@ngx-formly/material';\nimport { FormlyMatDatepickerModule } from '@ngx-formly/material/datepicker';\nimport {\n HttpClientModule,\n HttpClient,\n HTTP_INTERCEPTORS\n} from '@angular/common/http';\n\nimport {\n FORMLY_CONFIG,\n FIELD_TYPE_COMPONENTS\n} from '@front-office/formly/formly-core.config';\n\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\nimport { Http401Interceptor } from '@front-office/security/http401.interceptor';\nimport { HomeComponent } from '@front-office/components/home/home.component';\nimport { AppInitService } from '@front-office/app-init.service';\nimport { LayoutDefaultComponent } from '@front-office/layouts/layout-default/layout-default.component';\n\nimport {\n keyboardLayouts,\n MAT_KEYBOARD_LAYOUTS,\n MatKeyboardModule\n} from 'angular-onscreen-material-keyboard';\n\nimport { WebcamModule } from 'ngx-webcam';\n\nimport { ConfigService } from '@front-office/services/config.service';\nimport { CustomRouterStateSerializer } from '../../../shared/store/states/router-state.serializer';\n\nimport { CustomTranslateService } from '@front-office/services/translation.service';\n// eslint-disable-next-line max-len\nimport { RussianKeyboardComponent } from '@projects-shared/components/formly-custom-fields/russian-keyboard/russian-keyboard.component';\nimport { DateFutureInputComponent } from '@projects-shared/components/formly-custom-fields/date-future-input/date-future-input.component';\nimport { CameraComponent } from '@projects-shared/components/formly-custom-fields/camera/camera.component';\nimport { DateFormatterDirective } from '@projects-shared/directives/date-formatter.directive';\nimport { FileValueAccessorDirective } from '@projects-shared/directives/file-value-accessor.directive';\nimport { SnackbarComponent } from '@projects-shared/app-message/snackbar/snackbar.component';\nimport { AppMessageModule } from '@projects-shared/app-message/app-message.module';\n// eslint-disable-next-line max-len\nimport { OptionalLabelWrapperComponent } from '@projects-shared/components/formly-custom-wrappers/optional-label-wrapper/optional-label-wrapper.component';\nimport { NumberFieldDirective } from '@projects-shared/directives/number-fields.directive';\nimport { ServerErrorPageComponent } from '@front-office/components/server-error-page/server-error-page.component';\nimport { ExpiredLinkPageComponent } from '@front-office/components/expired-link-page/expired-link-page.component';\nimport { InvitationCardComponent } from '@front-office/components/invitation-card/invitation-card.component';\nimport { NoCacheInterceptor } from '@projects-shared/interceptors/no-cache.interceptor';\nimport { HttpAddCredentialsInterceptor } from '@front-office/security/http-add-credentials.interceptor';\nimport { HttpSetLastCallInterceptor } from '@front-office/security/http-set-last-call.interceptor';\nimport { ImportDataComponent } from './components/import-data/import-data.component';\nimport { ImportOptionComponent } from './components/import-option/import-option.component';\nimport { ApmErrorHandler, ApmService } from '@projects-shared/services/apm-rum';\nimport { Router } from '@angular/router';\nimport { RegulaDocReaderComponent } from '@projects-shared/components/formly-custom-fields/regula-doc-reader/regula-doc-reader.component';\nimport { QRCodeModule } from 'angularx-qrcode';\nimport { IdScanningMobileComponent } from '@projects-shared/components/id-scanning-mobile/id-scanning-mobile.component';\nimport { ConfigResolverService } from '@projects-shared/services/config-resolver.service';\nimport { DocReaderSignalRService } from '@projects-shared/services/doc-reader-signalr.service';\nimport { UrlShortenerService } from '@projects-shared/services/url-shortener.service';\nimport { LinkExpiredComponent } from '@projects-shared/components/link-expired/link-expired.component';\nimport { PreviewService } from '@projects-shared/services/preview.service';\nimport { IdScanningLogsService } from '@projects-shared/services/id-scanning-logs.service';\nimport { AngularPinturaModule } from '@pqina/angular-pintura';\n\nconst DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {\n wheelPropagation: true\n};\n@NgModule({\n declarations: [\n AppComponent,\n LayoutDefaultComponent,\n LandingComponent,\n HomeComponent,\n FormRenderComponent,\n RussianKeyboardComponent,\n FIELD_TYPE_COMPONENTS,\n CameraComponent,\n PageNotFoundComponent,\n FileValueAccessorDirective,\n DateFormatterDirective,\n NumberFieldDirective,\n DateFutureInputComponent,\n OptionalLabelWrapperComponent,\n FoClosedComponent,\n ServerErrorPageComponent,\n ExpiredLinkPageComponent,\n InvitationCardComponent,\n AzeriKeyboardComponent,\n ImportDataComponent,\n ImportOptionComponent,\n RegulaDocReaderComponent,\n IdScanningMobileComponent,\n LinkExpiredComponent\n ],\n imports: [\n BrowserModule,\n MaterialModule,\n AppRoutingModule,\n BrowserAnimationsModule,\n NgxsModule.forRoot(appStates, {\n developmentMode: !environment.production\n }),\n NgxsRouterPluginModule.forRoot(),\n NgxsFormPluginModule.forRoot(),\n NgxsReduxDevtoolsPluginModule.forRoot(),\n NgLetModule,\n FormsModule,\n ReactiveFormsModule,\n FormlyMaterialModule,\n FormlyMatDatepickerModule,\n PerfectScrollbarModule,\n FormlyModule.forRoot(FORMLY_CONFIG),\n FormlyMaterialModule,\n HttpClientModule,\n MatKeyboardModule,\n WebcamModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useClass: CustomTranslateService,\n deps: [Store, HttpClient]\n }\n }),\n AppMessageModule,\n QRCodeModule,\n AngularPinturaModule\n ],\n providers: [\n {\n provide: APP_INITIALIZER,\n useFactory: (appInitService: AppInitService) => () => {\n return appInitService.init();\n },\n deps: [AppInitService, ConfigService],\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: Http401Interceptor,\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: HttpAddCredentialsInterceptor,\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: HttpSetLastCallInterceptor,\n multi: true\n },\n {\n provide: HTTP_INTERCEPTORS,\n useClass: NoCacheInterceptor,\n multi: true\n },\n {\n provide: ApmService,\n useClass: ApmService,\n deps: [Router]\n },\n {\n provide: ErrorHandler,\n useClass: ApmErrorHandler\n },\n {\n provide: PERFECT_SCROLLBAR_CONFIG,\n useValue: DEFAULT_PERFECT_SCROLLBAR_CONFIG\n },\n { provide: MAT_KEYBOARD_LAYOUTS, useValue: keyboardLayouts },\n { provide: RouterStateSerializer, useClass: CustomRouterStateSerializer },\n HistoryBackService,\n [ConfigResolverService, { provide: 'moduleName', useValue: 'app-fo' }],\n DocReaderSignalRService,\n UrlShortenerService,\n PreviewService,\n IdScanningLogsService\n ],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nlet cookieEnabled = navigator.cookieEnabled;\n\nif (typeof navigator.cookieEnabled === 'undefined' && !cookieEnabled) {\n document.cookie = 'test-cookie';\n cookieEnabled = (document.cookie.indexOf('test-cookie') !== -1);\n}\n\nif (!cookieEnabled) {\n const protocol = window.location.protocol;\n const host = window.location.host;\n window.location.href = protocol + '//' + host + '/cookiesdisabled.html';\n} else {\n platformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => {\n console.log(err);\n });\n}\n","\nconst canPromise = require('./can-promise')\n\nconst QRCode = require('./core/qrcode')\nconst CanvasRenderer = require('./renderer/canvas')\nconst SvgRenderer = require('./renderer/svg-tag.js')\n\nfunction renderCanvas (renderFunc, canvas, text, opts, cb) {\n const args = [].slice.call(arguments, 1)\n const argsNum = args.length\n const isLastArgCb = typeof args[argsNum - 1] === 'function'\n\n if (!isLastArgCb && !canPromise()) {\n throw new Error('Callback required as last argument')\n }\n\n if (isLastArgCb) {\n if (argsNum < 2) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 2) {\n cb = text\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 3) {\n if (canvas.getContext && typeof cb === 'undefined') {\n cb = opts\n opts = undefined\n } else {\n cb = opts\n opts = text\n text = canvas\n canvas = undefined\n }\n }\n } else {\n if (argsNum < 1) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 1) {\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 2 && !canvas.getContext) {\n opts = text\n text = canvas\n canvas = undefined\n }\n\n return new Promise(function (resolve, reject) {\n try {\n const data = QRCode.create(text, opts)\n resolve(renderFunc(data, canvas, opts))\n } catch (e) {\n reject(e)\n }\n })\n }\n\n try {\n const data = QRCode.create(text, opts)\n cb(null, renderFunc(data, canvas, opts))\n } catch (e) {\n cb(e)\n }\n}\n\nexports.create = QRCode.create\nexports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)\nexports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)\n\n// only svg for now.\nexports.toString = renderCanvas.bind(null, function (data, _, opts) {\n return SvgRenderer.render(data, opts)\n})\n","// can-promise has a crash in some versions of react native that dont have\n// standard global objects\n// https://github.com/soldair/node-qrcode/issues/157\n\nmodule.exports = function () {\n return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then\n}\n","/**\n * Alignment pattern are fixed reference pattern in defined positions\n * in a matrix symbology, which enables the decode software to re-synchronise\n * the coordinate mapping of the image modules in the event of moderate amounts\n * of distortion of the image.\n *\n * Alignment patterns are present only in QR Code symbols of version 2 or larger\n * and their number depends on the symbol version.\n */\n\nconst getSymbolSize = require('./utils').getSymbolSize\n\n/**\n * Calculate the row/column coordinates of the center module of each alignment pattern\n * for the specified QR Code version.\n *\n * The alignment patterns are positioned symmetrically on either side of the diagonal\n * running from the top left corner of the symbol to the bottom right corner.\n *\n * Since positions are simmetrical only half of the coordinates are returned.\n * Each item of the array will represent in turn the x and y coordinate.\n * @see {@link getPositions}\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinate\n */\nexports.getRowColCoords = function getRowColCoords (version) {\n if (version === 1) return []\n\n const posCount = Math.floor(version / 7) + 2\n const size = getSymbolSize(version)\n const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2\n const positions = [size - 7] // Last coord is always (size - 7)\n\n for (let i = 1; i < posCount - 1; i++) {\n positions[i] = positions[i - 1] - intervals\n }\n\n positions.push(6) // First coord is always 6\n\n return positions.reverse()\n}\n\n/**\n * Returns an array containing the positions of each alignment pattern.\n * Each array's element represent the center point of the pattern as (x, y) coordinates\n *\n * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}\n * and filtering out the items that overlaps with finder pattern\n *\n * @example\n * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.\n * The alignment patterns, therefore, are to be centered on (row, column)\n * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).\n * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns\n * and are not therefore used for alignment patterns.\n *\n * let pos = getPositions(7)\n * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const coords = []\n const pos = exports.getRowColCoords(version)\n const posLength = pos.length\n\n for (let i = 0; i < posLength; i++) {\n for (let j = 0; j < posLength; j++) {\n // Skip if position is occupied by finder patterns\n if ((i === 0 && j === 0) || // top-left\n (i === 0 && j === posLength - 1) || // bottom-left\n (i === posLength - 1 && j === 0)) { // top-right\n continue\n }\n\n coords.push([pos[i], pos[j]])\n }\n }\n\n return coords\n}\n","const Mode = require('./mode')\n\n/**\n * Array of characters available in alphanumeric mode\n *\n * As per QR Code specification, to each character\n * is assigned a value from 0 to 44 which in this case coincides\n * with the array index\n *\n * @type {Array}\n */\nconst ALPHA_NUM_CHARS = [\n '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',\n 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',\n ' ', '$', '%', '*', '+', '-', '.', '/', ':'\n]\n\nfunction AlphanumericData (data) {\n this.mode = Mode.ALPHANUMERIC\n this.data = data\n}\n\nAlphanumericData.getBitsLength = function getBitsLength (length) {\n return 11 * Math.floor(length / 2) + 6 * (length % 2)\n}\n\nAlphanumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nAlphanumericData.prototype.getBitsLength = function getBitsLength () {\n return AlphanumericData.getBitsLength(this.data.length)\n}\n\nAlphanumericData.prototype.write = function write (bitBuffer) {\n let i\n\n // Input data characters are divided into groups of two characters\n // and encoded as 11-bit binary codes.\n for (i = 0; i + 2 <= this.data.length; i += 2) {\n // The character value of the first character is multiplied by 45\n let value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45\n\n // The character value of the second digit is added to the product\n value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])\n\n // The sum is then stored as 11-bit binary number\n bitBuffer.put(value, 11)\n }\n\n // If the number of input data characters is not a multiple of two,\n // the character value of the final character is encoded as a 6-bit binary number.\n if (this.data.length % 2) {\n bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)\n }\n}\n\nmodule.exports = AlphanumericData\n","function BitBuffer () {\n this.buffer = []\n this.length = 0\n}\n\nBitBuffer.prototype = {\n\n get: function (index) {\n const bufIndex = Math.floor(index / 8)\n return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1\n },\n\n put: function (num, length) {\n for (let i = 0; i < length; i++) {\n this.putBit(((num >>> (length - i - 1)) & 1) === 1)\n }\n },\n\n getLengthInBits: function () {\n return this.length\n },\n\n putBit: function (bit) {\n const bufIndex = Math.floor(this.length / 8)\n if (this.buffer.length <= bufIndex) {\n this.buffer.push(0)\n }\n\n if (bit) {\n this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))\n }\n\n this.length++\n }\n}\n\nmodule.exports = BitBuffer\n","/**\n * Helper class to handle QR Code symbol modules\n *\n * @param {Number} size Symbol size\n */\nfunction BitMatrix (size) {\n if (!size || size < 1) {\n throw new Error('BitMatrix size must be defined and greater than 0')\n }\n\n this.size = size\n this.data = new Uint8Array(size * size)\n this.reservedBit = new Uint8Array(size * size)\n}\n\n/**\n * Set bit value at specified location\n * If reserved flag is set, this bit will be ignored during masking process\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n * @param {Boolean} reserved\n */\nBitMatrix.prototype.set = function (row, col, value, reserved) {\n const index = row * this.size + col\n this.data[index] = value\n if (reserved) this.reservedBit[index] = true\n}\n\n/**\n * Returns bit value at specified location\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.get = function (row, col) {\n return this.data[row * this.size + col]\n}\n\n/**\n * Applies xor operator at specified location\n * (used during masking process)\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n */\nBitMatrix.prototype.xor = function (row, col, value) {\n this.data[row * this.size + col] ^= value\n}\n\n/**\n * Check if bit at specified location is reserved\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.isReserved = function (row, col) {\n return this.reservedBit[row * this.size + col]\n}\n\nmodule.exports = BitMatrix\n","const encodeUtf8 = require('encode-utf8')\nconst Mode = require('./mode')\n\nfunction ByteData (data) {\n this.mode = Mode.BYTE\n this.data = new Uint8Array(encodeUtf8(data))\n}\n\nByteData.getBitsLength = function getBitsLength (length) {\n return length * 8\n}\n\nByteData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nByteData.prototype.getBitsLength = function getBitsLength () {\n return ByteData.getBitsLength(this.data.length)\n}\n\nByteData.prototype.write = function (bitBuffer) {\n for (let i = 0, l = this.data.length; i < l; i++) {\n bitBuffer.put(this.data[i], 8)\n }\n}\n\nmodule.exports = ByteData\n","const ECLevel = require('./error-correction-level')\r\n\r\nconst EC_BLOCKS_TABLE = [\r\n// L M Q H\r\n 1, 1, 1, 1,\r\n 1, 1, 1, 1,\r\n 1, 1, 2, 2,\r\n 1, 2, 2, 4,\r\n 1, 2, 4, 4,\r\n 2, 4, 4, 4,\r\n 2, 4, 6, 5,\r\n 2, 4, 6, 6,\r\n 2, 5, 8, 8,\r\n 4, 5, 8, 8,\r\n 4, 5, 8, 11,\r\n 4, 8, 10, 11,\r\n 4, 9, 12, 16,\r\n 4, 9, 16, 16,\r\n 6, 10, 12, 18,\r\n 6, 10, 17, 16,\r\n 6, 11, 16, 19,\r\n 6, 13, 18, 21,\r\n 7, 14, 21, 25,\r\n 8, 16, 20, 25,\r\n 8, 17, 23, 25,\r\n 9, 17, 23, 34,\r\n 9, 18, 25, 30,\r\n 10, 20, 27, 32,\r\n 12, 21, 29, 35,\r\n 12, 23, 34, 37,\r\n 12, 25, 34, 40,\r\n 13, 26, 35, 42,\r\n 14, 28, 38, 45,\r\n 15, 29, 40, 48,\r\n 16, 31, 43, 51,\r\n 17, 33, 45, 54,\r\n 18, 35, 48, 57,\r\n 19, 37, 51, 60,\r\n 19, 38, 53, 63,\r\n 20, 40, 56, 66,\r\n 21, 43, 59, 70,\r\n 22, 45, 62, 74,\r\n 24, 47, 65, 77,\r\n 25, 49, 68, 81\r\n]\r\n\r\nconst EC_CODEWORDS_TABLE = [\r\n// L M Q H\r\n 7, 10, 13, 17,\r\n 10, 16, 22, 28,\r\n 15, 26, 36, 44,\r\n 20, 36, 52, 64,\r\n 26, 48, 72, 88,\r\n 36, 64, 96, 112,\r\n 40, 72, 108, 130,\r\n 48, 88, 132, 156,\r\n 60, 110, 160, 192,\r\n 72, 130, 192, 224,\r\n 80, 150, 224, 264,\r\n 96, 176, 260, 308,\r\n 104, 198, 288, 352,\r\n 120, 216, 320, 384,\r\n 132, 240, 360, 432,\r\n 144, 280, 408, 480,\r\n 168, 308, 448, 532,\r\n 180, 338, 504, 588,\r\n 196, 364, 546, 650,\r\n 224, 416, 600, 700,\r\n 224, 442, 644, 750,\r\n 252, 476, 690, 816,\r\n 270, 504, 750, 900,\r\n 300, 560, 810, 960,\r\n 312, 588, 870, 1050,\r\n 336, 644, 952, 1110,\r\n 360, 700, 1020, 1200,\r\n 390, 728, 1050, 1260,\r\n 420, 784, 1140, 1350,\r\n 450, 812, 1200, 1440,\r\n 480, 868, 1290, 1530,\r\n 510, 924, 1350, 1620,\r\n 540, 980, 1440, 1710,\r\n 570, 1036, 1530, 1800,\r\n 570, 1064, 1590, 1890,\r\n 600, 1120, 1680, 1980,\r\n 630, 1204, 1770, 2100,\r\n 660, 1260, 1860, 2220,\r\n 720, 1316, 1950, 2310,\r\n 750, 1372, 2040, 2430\r\n]\r\n\r\n/**\r\n * Returns the number of error correction block that the QR Code should contain\r\n * for the specified version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction blocks\r\n */\r\nexports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n\r\n/**\r\n * Returns the number of error correction codewords to use for the specified\r\n * version and error correction level.\r\n *\r\n * @param {Number} version QR Code version\r\n * @param {Number} errorCorrectionLevel Error correction level\r\n * @return {Number} Number of error correction codewords\r\n */\r\nexports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {\r\n switch (errorCorrectionLevel) {\r\n case ECLevel.L:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]\r\n case ECLevel.M:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]\r\n case ECLevel.Q:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]\r\n case ECLevel.H:\r\n return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]\r\n default:\r\n return undefined\r\n }\r\n}\r\n","exports.L = { bit: 1 }\nexports.M = { bit: 0 }\nexports.Q = { bit: 3 }\nexports.H = { bit: 2 }\n\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'l':\n case 'low':\n return exports.L\n\n case 'm':\n case 'medium':\n return exports.M\n\n case 'q':\n case 'quartile':\n return exports.Q\n\n case 'h':\n case 'high':\n return exports.H\n\n default:\n throw new Error('Unknown EC Level: ' + string)\n }\n}\n\nexports.isValid = function isValid (level) {\n return level && typeof level.bit !== 'undefined' &&\n level.bit >= 0 && level.bit < 4\n}\n\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n","const getSymbolSize = require('./utils').getSymbolSize\nconst FINDER_PATTERN_SIZE = 7\n\n/**\n * Returns an array containing the positions of each finder pattern.\n * Each array's element represent the top-left point of the pattern as (x, y) coordinates\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const size = getSymbolSize(version)\n\n return [\n // top-left\n [0, 0],\n // top-right\n [size - FINDER_PATTERN_SIZE, 0],\n // bottom-left\n [0, size - FINDER_PATTERN_SIZE]\n ]\n}\n","const Utils = require('./utils')\n\nconst G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)\nconst G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)\nconst G15_BCH = Utils.getBCHDigit(G15)\n\n/**\n * Returns format information with relative error correction bits\n *\n * The format information is a 15-bit sequence containing 5 data bits,\n * with 10 error correction bits calculated using the (15, 5) BCH code.\n *\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Number} mask Mask pattern\n * @return {Number} Encoded format information bits\n */\nexports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {\n const data = ((errorCorrectionLevel.bit << 3) | mask)\n let d = data << 10\n\n while (Utils.getBCHDigit(d) - G15_BCH >= 0) {\n d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))\n }\n\n // xor final data with mask pattern in order to ensure that\n // no combination of Error Correction Level and data mask pattern\n // will result in an all-zero data string\n return ((data << 10) | d) ^ G15_MASK\n}\n","const EXP_TABLE = new Uint8Array(512)\nconst LOG_TABLE = new Uint8Array(256)\n/**\n * Precompute the log and anti-log tables for faster computation later\n *\n * For each possible value in the galois field 2^8, we will pre-compute\n * the logarithm and anti-logarithm (exponential) of this value\n *\n * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}\n */\n;(function initTables () {\n let x = 1\n for (let i = 0; i < 255; i++) {\n EXP_TABLE[i] = x\n LOG_TABLE[x] = i\n\n x <<= 1 // multiply by 2\n\n // The QR code specification says to use byte-wise modulo 100011101 arithmetic.\n // This means that when a number is 256 or larger, it should be XORed with 0x11D.\n if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)\n x ^= 0x11D\n }\n }\n\n // Optimization: double the size of the anti-log table so that we don't need to mod 255 to\n // stay inside the bounds (because we will mainly use this table for the multiplication of\n // two GF numbers, no more).\n // @see {@link mul}\n for (let i = 255; i < 512; i++) {\n EXP_TABLE[i] = EXP_TABLE[i - 255]\n }\n}())\n\n/**\n * Returns log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.log = function log (n) {\n if (n < 1) throw new Error('log(' + n + ')')\n return LOG_TABLE[n]\n}\n\n/**\n * Returns anti-log value of n inside Galois Field\n *\n * @param {Number} n\n * @return {Number}\n */\nexports.exp = function exp (n) {\n return EXP_TABLE[n]\n}\n\n/**\n * Multiplies two number inside Galois Field\n *\n * @param {Number} x\n * @param {Number} y\n * @return {Number}\n */\nexports.mul = function mul (x, y) {\n if (x === 0 || y === 0) return 0\n\n // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized\n // @see {@link initTables}\n return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]\n}\n","const Mode = require('./mode')\nconst Utils = require('./utils')\n\nfunction KanjiData (data) {\n this.mode = Mode.KANJI\n this.data = data\n}\n\nKanjiData.getBitsLength = function getBitsLength (length) {\n return length * 13\n}\n\nKanjiData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nKanjiData.prototype.getBitsLength = function getBitsLength () {\n return KanjiData.getBitsLength(this.data.length)\n}\n\nKanjiData.prototype.write = function (bitBuffer) {\n let i\n\n // In the Shift JIS system, Kanji characters are represented by a two byte combination.\n // These byte values are shifted from the JIS X 0208 values.\n // JIS X 0208 gives details of the shift coded representation.\n for (i = 0; i < this.data.length; i++) {\n let value = Utils.toSJIS(this.data[i])\n\n // For characters with Shift JIS values from 0x8140 to 0x9FFC:\n if (value >= 0x8140 && value <= 0x9FFC) {\n // Subtract 0x8140 from Shift JIS value\n value -= 0x8140\n\n // For characters with Shift JIS values from 0xE040 to 0xEBBF\n } else if (value >= 0xE040 && value <= 0xEBBF) {\n // Subtract 0xC140 from Shift JIS value\n value -= 0xC140\n } else {\n throw new Error(\n 'Invalid SJIS character: ' + this.data[i] + '\\n' +\n 'Make sure your charset is UTF-8')\n }\n\n // Multiply most significant byte of result by 0xC0\n // and add least significant byte to product\n value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)\n\n // Convert result to a 13-bit binary string\n bitBuffer.put(value, 13)\n }\n}\n\nmodule.exports = KanjiData\n","/**\n * Data mask pattern reference\n * @type {Object}\n */\nexports.Patterns = {\n PATTERN000: 0,\n PATTERN001: 1,\n PATTERN010: 2,\n PATTERN011: 3,\n PATTERN100: 4,\n PATTERN101: 5,\n PATTERN110: 6,\n PATTERN111: 7\n}\n\n/**\n * Weighted penalty scores for the undesirable features\n * @type {Object}\n */\nconst PenaltyScores = {\n N1: 3,\n N2: 3,\n N3: 40,\n N4: 10\n}\n\n/**\n * Check if mask pattern value is valid\n *\n * @param {Number} mask Mask pattern\n * @return {Boolean} true if valid, false otherwise\n */\nexports.isValid = function isValid (mask) {\n return mask != null && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7\n}\n\n/**\n * Returns mask pattern from a value.\n * If value is not valid, returns undefined\n *\n * @param {Number|String} value Mask pattern value\n * @return {Number} Valid mask pattern or undefined\n */\nexports.from = function from (value) {\n return exports.isValid(value) ? parseInt(value, 10) : undefined\n}\n\n/**\n* Find adjacent modules in row/column with the same color\n* and assign a penalty value.\n*\n* Points: N1 + i\n* i is the amount by which the number of adjacent modules of the same color exceeds 5\n*/\nexports.getPenaltyN1 = function getPenaltyN1 (data) {\n const size = data.size\n let points = 0\n let sameCountCol = 0\n let sameCountRow = 0\n let lastCol = null\n let lastRow = null\n\n for (let row = 0; row < size; row++) {\n sameCountCol = sameCountRow = 0\n lastCol = lastRow = null\n\n for (let col = 0; col < size; col++) {\n let module = data.get(row, col)\n if (module === lastCol) {\n sameCountCol++\n } else {\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n lastCol = module\n sameCountCol = 1\n }\n\n module = data.get(col, row)\n if (module === lastRow) {\n sameCountRow++\n } else {\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n lastRow = module\n sameCountRow = 1\n }\n }\n\n if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)\n if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)\n }\n\n return points\n}\n\n/**\n * Find 2x2 blocks with the same color and assign a penalty value\n *\n * Points: N2 * (m - 1) * (n - 1)\n */\nexports.getPenaltyN2 = function getPenaltyN2 (data) {\n const size = data.size\n let points = 0\n\n for (let row = 0; row < size - 1; row++) {\n for (let col = 0; col < size - 1; col++) {\n const last = data.get(row, col) +\n data.get(row, col + 1) +\n data.get(row + 1, col) +\n data.get(row + 1, col + 1)\n\n if (last === 4 || last === 0) points++\n }\n }\n\n return points * PenaltyScores.N2\n}\n\n/**\n * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,\n * preceded or followed by light area 4 modules wide\n *\n * Points: N3 * number of pattern found\n */\nexports.getPenaltyN3 = function getPenaltyN3 (data) {\n const size = data.size\n let points = 0\n let bitsCol = 0\n let bitsRow = 0\n\n for (let row = 0; row < size; row++) {\n bitsCol = bitsRow = 0\n for (let col = 0; col < size; col++) {\n bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)\n if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++\n\n bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)\n if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++\n }\n }\n\n return points * PenaltyScores.N3\n}\n\n/**\n * Calculate proportion of dark modules in entire symbol\n *\n * Points: N4 * k\n *\n * k is the rating of the deviation of the proportion of dark modules\n * in the symbol from 50% in steps of 5%\n */\nexports.getPenaltyN4 = function getPenaltyN4 (data) {\n let darkCount = 0\n const modulesCount = data.data.length\n\n for (let i = 0; i < modulesCount; i++) darkCount += data.data[i]\n\n const k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)\n\n return k * PenaltyScores.N4\n}\n\n/**\n * Return mask value at given position\n *\n * @param {Number} maskPattern Pattern reference value\n * @param {Number} i Row\n * @param {Number} j Column\n * @return {Boolean} Mask value\n */\nfunction getMaskAt (maskPattern, i, j) {\n switch (maskPattern) {\n case exports.Patterns.PATTERN000: return (i + j) % 2 === 0\n case exports.Patterns.PATTERN001: return i % 2 === 0\n case exports.Patterns.PATTERN010: return j % 3 === 0\n case exports.Patterns.PATTERN011: return (i + j) % 3 === 0\n case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0\n case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0\n case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0\n case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0\n\n default: throw new Error('bad maskPattern:' + maskPattern)\n }\n}\n\n/**\n * Apply a mask pattern to a BitMatrix\n *\n * @param {Number} pattern Pattern reference number\n * @param {BitMatrix} data BitMatrix data\n */\nexports.applyMask = function applyMask (pattern, data) {\n const size = data.size\n\n for (let col = 0; col < size; col++) {\n for (let row = 0; row < size; row++) {\n if (data.isReserved(row, col)) continue\n data.xor(row, col, getMaskAt(pattern, row, col))\n }\n }\n}\n\n/**\n * Returns the best mask pattern for data\n *\n * @param {BitMatrix} data\n * @return {Number} Mask pattern reference number\n */\nexports.getBestMask = function getBestMask (data, setupFormatFunc) {\n const numPatterns = Object.keys(exports.Patterns).length\n let bestPattern = 0\n let lowerPenalty = Infinity\n\n for (let p = 0; p < numPatterns; p++) {\n setupFormatFunc(p)\n exports.applyMask(p, data)\n\n // Calculate penalty\n const penalty =\n exports.getPenaltyN1(data) +\n exports.getPenaltyN2(data) +\n exports.getPenaltyN3(data) +\n exports.getPenaltyN4(data)\n\n // Undo previously applied mask\n exports.applyMask(p, data)\n\n if (penalty < lowerPenalty) {\n lowerPenalty = penalty\n bestPattern = p\n }\n }\n\n return bestPattern\n}\n","const VersionCheck = require('./version-check')\nconst Regex = require('./regex')\n\n/**\n * Numeric mode encodes data from the decimal digit set (0 - 9)\n * (byte values 30HEX to 39HEX).\n * Normally, 3 data characters are represented by 10 bits.\n *\n * @type {Object}\n */\nexports.NUMERIC = {\n id: 'Numeric',\n bit: 1 << 0,\n ccBits: [10, 12, 14]\n}\n\n/**\n * Alphanumeric mode encodes data from a set of 45 characters,\n * i.e. 10 numeric digits (0 - 9),\n * 26 alphabetic characters (A - Z),\n * and 9 symbols (SP, $, %, *, +, -, ., /, :).\n * Normally, two input characters are represented by 11 bits.\n *\n * @type {Object}\n */\nexports.ALPHANUMERIC = {\n id: 'Alphanumeric',\n bit: 1 << 1,\n ccBits: [9, 11, 13]\n}\n\n/**\n * In byte mode, data is encoded at 8 bits per character.\n *\n * @type {Object}\n */\nexports.BYTE = {\n id: 'Byte',\n bit: 1 << 2,\n ccBits: [8, 16, 16]\n}\n\n/**\n * The Kanji mode efficiently encodes Kanji characters in accordance with\n * the Shift JIS system based on JIS X 0208.\n * The Shift JIS values are shifted from the JIS X 0208 values.\n * JIS X 0208 gives details of the shift coded representation.\n * Each two-byte character value is compacted to a 13-bit binary codeword.\n *\n * @type {Object}\n */\nexports.KANJI = {\n id: 'Kanji',\n bit: 1 << 3,\n ccBits: [8, 10, 12]\n}\n\n/**\n * Mixed mode will contain a sequences of data in a combination of any of\n * the modes described above\n *\n * @type {Object}\n */\nexports.MIXED = {\n bit: -1\n}\n\n/**\n * Returns the number of bits needed to store the data length\n * according to QR Code specifications.\n *\n * @param {Mode} mode Data mode\n * @param {Number} version QR Code version\n * @return {Number} Number of bits\n */\nexports.getCharCountIndicator = function getCharCountIndicator (mode, version) {\n if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)\n\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid version: ' + version)\n }\n\n if (version >= 1 && version < 10) return mode.ccBits[0]\n else if (version < 27) return mode.ccBits[1]\n return mode.ccBits[2]\n}\n\n/**\n * Returns the most efficient mode to store the specified data\n *\n * @param {String} dataStr Input data string\n * @return {Mode} Best mode\n */\nexports.getBestModeForData = function getBestModeForData (dataStr) {\n if (Regex.testNumeric(dataStr)) return exports.NUMERIC\n else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC\n else if (Regex.testKanji(dataStr)) return exports.KANJI\n else return exports.BYTE\n}\n\n/**\n * Return mode name as string\n *\n * @param {Mode} mode Mode object\n * @returns {String} Mode name\n */\nexports.toString = function toString (mode) {\n if (mode && mode.id) return mode.id\n throw new Error('Invalid mode')\n}\n\n/**\n * Check if input param is a valid mode object\n *\n * @param {Mode} mode Mode object\n * @returns {Boolean} True if valid mode, false otherwise\n */\nexports.isValid = function isValid (mode) {\n return mode && mode.bit && mode.ccBits\n}\n\n/**\n * Get mode object from its name\n *\n * @param {String} string Mode name\n * @returns {Mode} Mode object\n */\nfunction fromString (string) {\n if (typeof string !== 'string') {\n throw new Error('Param is not a string')\n }\n\n const lcStr = string.toLowerCase()\n\n switch (lcStr) {\n case 'numeric':\n return exports.NUMERIC\n case 'alphanumeric':\n return exports.ALPHANUMERIC\n case 'kanji':\n return exports.KANJI\n case 'byte':\n return exports.BYTE\n default:\n throw new Error('Unknown mode: ' + string)\n }\n}\n\n/**\n * Returns mode from a value.\n * If value is not a valid mode, returns defaultValue\n *\n * @param {Mode|String} value Encoding mode\n * @param {Mode} defaultValue Fallback value\n * @return {Mode} Encoding mode\n */\nexports.from = function from (value, defaultValue) {\n if (exports.isValid(value)) {\n return value\n }\n\n try {\n return fromString(value)\n } catch (e) {\n return defaultValue\n }\n}\n","const Mode = require('./mode')\n\nfunction NumericData (data) {\n this.mode = Mode.NUMERIC\n this.data = data.toString()\n}\n\nNumericData.getBitsLength = function getBitsLength (length) {\n return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)\n}\n\nNumericData.prototype.getLength = function getLength () {\n return this.data.length\n}\n\nNumericData.prototype.getBitsLength = function getBitsLength () {\n return NumericData.getBitsLength(this.data.length)\n}\n\nNumericData.prototype.write = function write (bitBuffer) {\n let i, group, value\n\n // The input data string is divided into groups of three digits,\n // and each group is converted to its 10-bit binary equivalent.\n for (i = 0; i + 3 <= this.data.length; i += 3) {\n group = this.data.substr(i, 3)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, 10)\n }\n\n // If the number of input digits is not an exact multiple of three,\n // the final one or two digits are converted to 4 or 7 bits respectively.\n const remainingNum = this.data.length - i\n if (remainingNum > 0) {\n group = this.data.substr(i)\n value = parseInt(group, 10)\n\n bitBuffer.put(value, remainingNum * 3 + 1)\n }\n}\n\nmodule.exports = NumericData\n","const GF = require('./galois-field')\n\n/**\n * Multiplies two polynomials inside Galois Field\n *\n * @param {Uint8Array} p1 Polynomial\n * @param {Uint8Array} p2 Polynomial\n * @return {Uint8Array} Product of p1 and p2\n */\nexports.mul = function mul (p1, p2) {\n const coeff = new Uint8Array(p1.length + p2.length - 1)\n\n for (let i = 0; i < p1.length; i++) {\n for (let j = 0; j < p2.length; j++) {\n coeff[i + j] ^= GF.mul(p1[i], p2[j])\n }\n }\n\n return coeff\n}\n\n/**\n * Calculate the remainder of polynomials division\n *\n * @param {Uint8Array} divident Polynomial\n * @param {Uint8Array} divisor Polynomial\n * @return {Uint8Array} Remainder\n */\nexports.mod = function mod (divident, divisor) {\n let result = new Uint8Array(divident)\n\n while ((result.length - divisor.length) >= 0) {\n const coeff = result[0]\n\n for (let i = 0; i < divisor.length; i++) {\n result[i] ^= GF.mul(divisor[i], coeff)\n }\n\n // remove all zeros from buffer head\n let offset = 0\n while (offset < result.length && result[offset] === 0) offset++\n result = result.slice(offset)\n }\n\n return result\n}\n\n/**\n * Generate an irreducible generator polynomial of specified degree\n * (used by Reed-Solomon encoder)\n *\n * @param {Number} degree Degree of the generator polynomial\n * @return {Uint8Array} Buffer containing polynomial coefficients\n */\nexports.generateECPolynomial = function generateECPolynomial (degree) {\n let poly = new Uint8Array([1])\n for (let i = 0; i < degree; i++) {\n poly = exports.mul(poly, new Uint8Array([1, GF.exp(i)]))\n }\n\n return poly\n}\n","const Utils = require('./utils')\nconst ECLevel = require('./error-correction-level')\nconst BitBuffer = require('./bit-buffer')\nconst BitMatrix = require('./bit-matrix')\nconst AlignmentPattern = require('./alignment-pattern')\nconst FinderPattern = require('./finder-pattern')\nconst MaskPattern = require('./mask-pattern')\nconst ECCode = require('./error-correction-code')\nconst ReedSolomonEncoder = require('./reed-solomon-encoder')\nconst Version = require('./version')\nconst FormatInfo = require('./format-info')\nconst Mode = require('./mode')\nconst Segments = require('./segments')\n\n/**\n * QRCode for JavaScript\n *\n * modified by Ryan Day for nodejs support\n * Copyright (c) 2011 Ryan Day\n *\n * Licensed under the MIT license:\n * http://www.opensource.org/licenses/mit-license.php\n *\n//---------------------------------------------------------------------\n// QRCode for JavaScript\n//\n// Copyright (c) 2009 Kazuhiko Arase\n//\n// URL: http://www.d-project.com/\n//\n// Licensed under the MIT license:\n// http://www.opensource.org/licenses/mit-license.php\n//\n// The word \"QR Code\" is registered trademark of\n// DENSO WAVE INCORPORATED\n// http://www.denso-wave.com/qrcode/faqpatent-e.html\n//\n//---------------------------------------------------------------------\n*/\n\n/**\n * Add finder patterns bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupFinderPattern (matrix, version) {\n const size = matrix.size\n const pos = FinderPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -1; r <= 7; r++) {\n if (row + r <= -1 || size <= row + r) continue\n\n for (let c = -1; c <= 7; c++) {\n if (col + c <= -1 || size <= col + c) continue\n\n if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||\n (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||\n (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add timing pattern bits to matrix\n *\n * Note: this function must be called before {@link setupAlignmentPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n */\nfunction setupTimingPattern (matrix) {\n const size = matrix.size\n\n for (let r = 8; r < size - 8; r++) {\n const value = r % 2 === 0\n matrix.set(r, 6, value, true)\n matrix.set(6, r, value, true)\n }\n}\n\n/**\n * Add alignment patterns bits to matrix\n *\n * Note: this function must be called after {@link setupTimingPattern}\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupAlignmentPattern (matrix, version) {\n const pos = AlignmentPattern.getPositions(version)\n\n for (let i = 0; i < pos.length; i++) {\n const row = pos[i][0]\n const col = pos[i][1]\n\n for (let r = -2; r <= 2; r++) {\n for (let c = -2; c <= 2; c++) {\n if (r === -2 || r === 2 || c === -2 || c === 2 ||\n (r === 0 && c === 0)) {\n matrix.set(row + r, col + c, true, true)\n } else {\n matrix.set(row + r, col + c, false, true)\n }\n }\n }\n }\n}\n\n/**\n * Add version info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Number} version QR Code version\n */\nfunction setupVersionInfo (matrix, version) {\n const size = matrix.size\n const bits = Version.getEncodedBits(version)\n let row, col, mod\n\n for (let i = 0; i < 18; i++) {\n row = Math.floor(i / 3)\n col = i % 3 + size - 8 - 3\n mod = ((bits >> i) & 1) === 1\n\n matrix.set(row, col, mod, true)\n matrix.set(col, row, mod, true)\n }\n}\n\n/**\n * Add format info bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {Number} maskPattern Mask pattern reference value\n */\nfunction setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {\n const size = matrix.size\n const bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)\n let i, mod\n\n for (i = 0; i < 15; i++) {\n mod = ((bits >> i) & 1) === 1\n\n // vertical\n if (i < 6) {\n matrix.set(i, 8, mod, true)\n } else if (i < 8) {\n matrix.set(i + 1, 8, mod, true)\n } else {\n matrix.set(size - 15 + i, 8, mod, true)\n }\n\n // horizontal\n if (i < 8) {\n matrix.set(8, size - i - 1, mod, true)\n } else if (i < 9) {\n matrix.set(8, 15 - i - 1 + 1, mod, true)\n } else {\n matrix.set(8, 15 - i - 1, mod, true)\n }\n }\n\n // fixed module\n matrix.set(size - 8, 8, 1, true)\n}\n\n/**\n * Add encoded data bits to matrix\n *\n * @param {BitMatrix} matrix Modules matrix\n * @param {Uint8Array} data Data codewords\n */\nfunction setupData (matrix, data) {\n const size = matrix.size\n let inc = -1\n let row = size - 1\n let bitIndex = 7\n let byteIndex = 0\n\n for (let col = size - 1; col > 0; col -= 2) {\n if (col === 6) col--\n\n while (true) {\n for (let c = 0; c < 2; c++) {\n if (!matrix.isReserved(row, col - c)) {\n let dark = false\n\n if (byteIndex < data.length) {\n dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)\n }\n\n matrix.set(row, col - c, dark)\n bitIndex--\n\n if (bitIndex === -1) {\n byteIndex++\n bitIndex = 7\n }\n }\n }\n\n row += inc\n\n if (row < 0 || size <= row) {\n row -= inc\n inc = -inc\n break\n }\n }\n }\n}\n\n/**\n * Create encoded codewords from data input\n *\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @param {ByteData} data Data input\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createData (version, errorCorrectionLevel, segments) {\n // Prepare data buffer\n const buffer = new BitBuffer()\n\n segments.forEach(function (data) {\n // prefix data with mode indicator (4 bits)\n buffer.put(data.mode.bit, 4)\n\n // Prefix data with character count indicator.\n // The character count indicator is a string of bits that represents the\n // number of characters that are being encoded.\n // The character count indicator must be placed after the mode indicator\n // and must be a certain number of bits long, depending on the QR version\n // and data mode\n // @see {@link Mode.getCharCountIndicator}.\n buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))\n\n // add binary data sequence to buffer\n data.write(buffer)\n })\n\n // Calculate required number of bits\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n // Add a terminator.\n // If the bit string is shorter than the total number of required bits,\n // a terminator of up to four 0s must be added to the right side of the string.\n // If the bit string is more than four bits shorter than the required number of bits,\n // add four 0s to the end.\n if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {\n buffer.put(0, 4)\n }\n\n // If the bit string is fewer than four bits shorter, add only the number of 0s that\n // are needed to reach the required number of bits.\n\n // After adding the terminator, if the number of bits in the string is not a multiple of 8,\n // pad the string on the right with 0s to make the string's length a multiple of 8.\n while (buffer.getLengthInBits() % 8 !== 0) {\n buffer.putBit(0)\n }\n\n // Add pad bytes if the string is still shorter than the total number of required bits.\n // Extend the buffer to fill the data capacity of the symbol corresponding to\n // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)\n // and 00010001 (0x11) alternately.\n const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8\n for (let i = 0; i < remainingByte; i++) {\n buffer.put(i % 2 ? 0x11 : 0xEC, 8)\n }\n\n return createCodewords(buffer, version, errorCorrectionLevel)\n}\n\n/**\n * Encode input data with Reed-Solomon and return codewords with\n * relative error correction bits\n *\n * @param {BitBuffer} bitBuffer Data to encode\n * @param {Number} version QR Code version\n * @param {ErrorCorrectionLevel} errorCorrectionLevel Error correction level\n * @return {Uint8Array} Buffer containing encoded codewords\n */\nfunction createCodewords (bitBuffer, version, errorCorrectionLevel) {\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewords = totalCodewords - ecTotalCodewords\n\n // Total number of blocks\n const ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)\n\n // Calculate how many blocks each group should contain\n const blocksInGroup2 = totalCodewords % ecTotalBlocks\n const blocksInGroup1 = ecTotalBlocks - blocksInGroup2\n\n const totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)\n\n const dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)\n const dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1\n\n // Number of EC codewords is the same for both groups\n const ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1\n\n // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount\n const rs = new ReedSolomonEncoder(ecCount)\n\n let offset = 0\n const dcData = new Array(ecTotalBlocks)\n const ecData = new Array(ecTotalBlocks)\n let maxDataSize = 0\n const buffer = new Uint8Array(bitBuffer.buffer)\n\n // Divide the buffer into the required number of blocks\n for (let b = 0; b < ecTotalBlocks; b++) {\n const dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2\n\n // extract a block of data from buffer\n dcData[b] = buffer.slice(offset, offset + dataSize)\n\n // Calculate EC codewords for this data block\n ecData[b] = rs.encode(dcData[b])\n\n offset += dataSize\n maxDataSize = Math.max(maxDataSize, dataSize)\n }\n\n // Create final data\n // Interleave the data and error correction codewords from each block\n const data = new Uint8Array(totalCodewords)\n let index = 0\n let i, r\n\n // Add data codewords\n for (i = 0; i < maxDataSize; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n if (i < dcData[r].length) {\n data[index++] = dcData[r][i]\n }\n }\n }\n\n // Apped EC codewords\n for (i = 0; i < ecCount; i++) {\n for (r = 0; r < ecTotalBlocks; r++) {\n data[index++] = ecData[r][i]\n }\n }\n\n return data\n}\n\n/**\n * Build QR Code symbol\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @param {ErrorCorretionLevel} errorCorrectionLevel Error level\n * @param {MaskPattern} maskPattern Mask pattern\n * @return {Object} Object containing symbol data\n */\nfunction createSymbol (data, version, errorCorrectionLevel, maskPattern) {\n let segments\n\n if (Array.isArray(data)) {\n segments = Segments.fromArray(data)\n } else if (typeof data === 'string') {\n let estimatedVersion = version\n\n if (!estimatedVersion) {\n const rawSegments = Segments.rawSplit(data)\n\n // Estimate best version that can contain raw splitted segments\n estimatedVersion = Version.getBestVersionForData(rawSegments, errorCorrectionLevel)\n }\n\n // Build optimized segments\n // If estimated version is undefined, try with the highest version\n segments = Segments.fromString(data, estimatedVersion || 40)\n } else {\n throw new Error('Invalid data')\n }\n\n // Get the min version that can contain data\n const bestVersion = Version.getBestVersionForData(segments, errorCorrectionLevel)\n\n // If no version is found, data cannot be stored\n if (!bestVersion) {\n throw new Error('The amount of data is too big to be stored in a QR Code')\n }\n\n // If not specified, use min version as default\n if (!version) {\n version = bestVersion\n\n // Check if the specified version can contain the data\n } else if (version < bestVersion) {\n throw new Error('\\n' +\n 'The chosen QR Code version cannot contain this amount of data.\\n' +\n 'Minimum version required to store current data is: ' + bestVersion + '.\\n'\n )\n }\n\n const dataBits = createData(version, errorCorrectionLevel, segments)\n\n // Allocate matrix buffer\n const moduleCount = Utils.getSymbolSize(version)\n const modules = new BitMatrix(moduleCount)\n\n // Add function modules\n setupFinderPattern(modules, version)\n setupTimingPattern(modules)\n setupAlignmentPattern(modules, version)\n\n // Add temporary dummy bits for format info just to set them as reserved.\n // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}\n // since the masking operation must be performed only on the encoding region.\n // These blocks will be replaced with correct values later in code.\n setupFormatInfo(modules, errorCorrectionLevel, 0)\n\n if (version >= 7) {\n setupVersionInfo(modules, version)\n }\n\n // Add data codewords\n setupData(modules, dataBits)\n\n if (isNaN(maskPattern)) {\n // Find best mask pattern\n maskPattern = MaskPattern.getBestMask(modules,\n setupFormatInfo.bind(null, modules, errorCorrectionLevel))\n }\n\n // Apply mask pattern\n MaskPattern.applyMask(maskPattern, modules)\n\n // Replace format info bits with correct values\n setupFormatInfo(modules, errorCorrectionLevel, maskPattern)\n\n return {\n modules: modules,\n version: version,\n errorCorrectionLevel: errorCorrectionLevel,\n maskPattern: maskPattern,\n segments: segments\n }\n}\n\n/**\n * QR Code\n *\n * @param {String | Array} data Input data\n * @param {Object} options Optional configurations\n * @param {Number} options.version QR Code version\n * @param {String} options.errorCorrectionLevel Error correction level\n * @param {Function} options.toSJISFunc Helper func to convert utf8 to sjis\n */\nexports.create = function create (data, options) {\n if (typeof data === 'undefined' || data === '') {\n throw new Error('No input text')\n }\n\n let errorCorrectionLevel = ECLevel.M\n let version\n let mask\n\n if (typeof options !== 'undefined') {\n // Use higher error correction level as default\n errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)\n version = Version.from(options.version)\n mask = MaskPattern.from(options.maskPattern)\n\n if (options.toSJISFunc) {\n Utils.setToSJISFunction(options.toSJISFunc)\n }\n }\n\n return createSymbol(data, version, errorCorrectionLevel, mask)\n}\n","const Polynomial = require('./polynomial')\n\nfunction ReedSolomonEncoder (degree) {\n this.genPoly = undefined\n this.degree = degree\n\n if (this.degree) this.initialize(this.degree)\n}\n\n/**\n * Initialize the encoder.\n * The input param should correspond to the number of error correction codewords.\n *\n * @param {Number} degree\n */\nReedSolomonEncoder.prototype.initialize = function initialize (degree) {\n // create an irreducible generator polynomial\n this.degree = degree\n this.genPoly = Polynomial.generateECPolynomial(this.degree)\n}\n\n/**\n * Encodes a chunk of data\n *\n * @param {Uint8Array} data Buffer containing input data\n * @return {Uint8Array} Buffer containing encoded data\n */\nReedSolomonEncoder.prototype.encode = function encode (data) {\n if (!this.genPoly) {\n throw new Error('Encoder not initialized')\n }\n\n // Calculate EC for this data block\n // extends data size to data+genPoly size\n const paddedData = new Uint8Array(data.length + this.degree)\n paddedData.set(data)\n\n // The error correction codewords are the remainder after dividing the data codewords\n // by a generator polynomial\n const remainder = Polynomial.mod(paddedData, this.genPoly)\n\n // return EC data blocks (last n byte, where n is the degree of genPoly)\n // If coefficients number in remainder are less than genPoly degree,\n // pad with 0s to the left to reach the needed number of coefficients\n const start = this.degree - remainder.length\n if (start > 0) {\n const buff = new Uint8Array(this.degree)\n buff.set(remainder, start)\n\n return buff\n }\n\n return remainder\n}\n\nmodule.exports = ReedSolomonEncoder\n","const numeric = '[0-9]+'\nconst alphanumeric = '[A-Z $%*+\\\\-./:]+'\nlet kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +\n '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +\n '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +\n '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'\nkanji = kanji.replace(/u/g, '\\\\u')\n\nconst byte = '(?:(?![A-Z0-9 $%*+\\\\-./:]|' + kanji + ')(?:.|[\\r\\n]))+'\n\nexports.KANJI = new RegExp(kanji, 'g')\nexports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\\\-./:]+', 'g')\nexports.BYTE = new RegExp(byte, 'g')\nexports.NUMERIC = new RegExp(numeric, 'g')\nexports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')\n\nconst TEST_KANJI = new RegExp('^' + kanji + '$')\nconst TEST_NUMERIC = new RegExp('^' + numeric + '$')\nconst TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\\\-./:]+$')\n\nexports.testKanji = function testKanji (str) {\n return TEST_KANJI.test(str)\n}\n\nexports.testNumeric = function testNumeric (str) {\n return TEST_NUMERIC.test(str)\n}\n\nexports.testAlphanumeric = function testAlphanumeric (str) {\n return TEST_ALPHANUMERIC.test(str)\n}\n","const Mode = require('./mode')\nconst NumericData = require('./numeric-data')\nconst AlphanumericData = require('./alphanumeric-data')\nconst ByteData = require('./byte-data')\nconst KanjiData = require('./kanji-data')\nconst Regex = require('./regex')\nconst Utils = require('./utils')\nconst dijkstra = require('dijkstrajs')\n\n/**\n * Returns UTF8 byte length\n *\n * @param {String} str Input string\n * @return {Number} Number of byte\n */\nfunction getStringByteLength (str) {\n return unescape(encodeURIComponent(str)).length\n}\n\n/**\n * Get a list of segments of the specified mode\n * from a string\n *\n * @param {Mode} mode Segment mode\n * @param {String} str String to process\n * @return {Array} Array of object with segments data\n */\nfunction getSegments (regex, mode, str) {\n const segments = []\n let result\n\n while ((result = regex.exec(str)) !== null) {\n segments.push({\n data: result[0],\n index: result.index,\n mode: mode,\n length: result[0].length\n })\n }\n\n return segments\n}\n\n/**\n * Extracts a series of segments with the appropriate\n * modes from a string\n *\n * @param {String} dataStr Input string\n * @return {Array} Array of object with segments data\n */\nfunction getSegmentsFromString (dataStr) {\n const numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)\n const alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)\n let byteSegs\n let kanjiSegs\n\n if (Utils.isKanjiModeEnabled()) {\n byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)\n kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)\n } else {\n byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)\n kanjiSegs = []\n }\n\n const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)\n\n return segs\n .sort(function (s1, s2) {\n return s1.index - s2.index\n })\n .map(function (obj) {\n return {\n data: obj.data,\n mode: obj.mode,\n length: obj.length\n }\n })\n}\n\n/**\n * Returns how many bits are needed to encode a string of\n * specified length with the specified mode\n *\n * @param {Number} length String length\n * @param {Mode} mode Segment mode\n * @return {Number} Bit length\n */\nfunction getSegmentBitsLength (length, mode) {\n switch (mode) {\n case Mode.NUMERIC:\n return NumericData.getBitsLength(length)\n case Mode.ALPHANUMERIC:\n return AlphanumericData.getBitsLength(length)\n case Mode.KANJI:\n return KanjiData.getBitsLength(length)\n case Mode.BYTE:\n return ByteData.getBitsLength(length)\n }\n}\n\n/**\n * Merges adjacent segments which have the same mode\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction mergeSegments (segs) {\n return segs.reduce(function (acc, curr) {\n const prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null\n if (prevSeg && prevSeg.mode === curr.mode) {\n acc[acc.length - 1].data += curr.data\n return acc\n }\n\n acc.push(curr)\n return acc\n }, [])\n}\n\n/**\n * Generates a list of all possible nodes combination which\n * will be used to build a segments graph.\n *\n * Nodes are divided by groups. Each group will contain a list of all the modes\n * in which is possible to encode the given text.\n *\n * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.\n * The group for '12345' will contain then 3 objects, one for each\n * possible encoding mode.\n *\n * Each node represents a possible segment.\n *\n * @param {Array} segs Array of object with segments data\n * @return {Array} Array of object with segments data\n */\nfunction buildNodes (segs) {\n const nodes = []\n for (let i = 0; i < segs.length; i++) {\n const seg = segs[i]\n\n switch (seg.mode) {\n case Mode.NUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.ALPHANUMERIC:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: seg.length }\n ])\n break\n case Mode.KANJI:\n nodes.push([seg,\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n break\n case Mode.BYTE:\n nodes.push([\n { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }\n ])\n }\n }\n\n return nodes\n}\n\n/**\n * Builds a graph from a list of nodes.\n * All segments in each node group will be connected with all the segments of\n * the next group and so on.\n *\n * At each connection will be assigned a weight depending on the\n * segment's byte length.\n *\n * @param {Array} nodes Array of object with segments data\n * @param {Number} version QR Code version\n * @return {Object} Graph of all possible segments\n */\nfunction buildGraph (nodes, version) {\n const table = {}\n const graph = { start: {} }\n let prevNodeIds = ['start']\n\n for (let i = 0; i < nodes.length; i++) {\n const nodeGroup = nodes[i]\n const currentNodeIds = []\n\n for (let j = 0; j < nodeGroup.length; j++) {\n const node = nodeGroup[j]\n const key = '' + i + j\n\n currentNodeIds.push(key)\n table[key] = { node: node, lastCount: 0 }\n graph[key] = {}\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n const prevNodeId = prevNodeIds[n]\n\n if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {\n graph[prevNodeId][key] =\n getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -\n getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)\n\n table[prevNodeId].lastCount += node.length\n } else {\n if (table[prevNodeId]) table[prevNodeId].lastCount = node.length\n\n graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +\n 4 + Mode.getCharCountIndicator(node.mode, version) // switch cost\n }\n }\n }\n\n prevNodeIds = currentNodeIds\n }\n\n for (let n = 0; n < prevNodeIds.length; n++) {\n graph[prevNodeIds[n]].end = 0\n }\n\n return { map: graph, table: table }\n}\n\n/**\n * Builds a segment from a specified data and mode.\n * If a mode is not specified, the more suitable will be used.\n *\n * @param {String} data Input data\n * @param {Mode | String} modesHint Data mode\n * @return {Segment} Segment\n */\nfunction buildSingleSegment (data, modesHint) {\n let mode\n const bestMode = Mode.getBestModeForData(data)\n\n mode = Mode.from(modesHint, bestMode)\n\n // Make sure data can be encoded\n if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {\n throw new Error('\"' + data + '\"' +\n ' cannot be encoded with mode ' + Mode.toString(mode) +\n '.\\n Suggested mode is: ' + Mode.toString(bestMode))\n }\n\n // Use Mode.BYTE if Kanji support is disabled\n if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {\n mode = Mode.BYTE\n }\n\n switch (mode) {\n case Mode.NUMERIC:\n return new NumericData(data)\n\n case Mode.ALPHANUMERIC:\n return new AlphanumericData(data)\n\n case Mode.KANJI:\n return new KanjiData(data)\n\n case Mode.BYTE:\n return new ByteData(data)\n }\n}\n\n/**\n * Builds a list of segments from an array.\n * Array can contain Strings or Objects with segment's info.\n *\n * For each item which is a string, will be generated a segment with the given\n * string and the more appropriate encoding mode.\n *\n * For each item which is an object, will be generated a segment with the given\n * data and mode.\n * Objects must contain at least the property \"data\".\n * If property \"mode\" is not present, the more suitable mode will be used.\n *\n * @param {Array} array Array of objects with segments data\n * @return {Array} Array of Segments\n */\nexports.fromArray = function fromArray (array) {\n return array.reduce(function (acc, seg) {\n if (typeof seg === 'string') {\n acc.push(buildSingleSegment(seg, null))\n } else if (seg.data) {\n acc.push(buildSingleSegment(seg.data, seg.mode))\n }\n\n return acc\n }, [])\n}\n\n/**\n * Builds an optimized sequence of segments from a string,\n * which will produce the shortest possible bitstream.\n *\n * @param {String} data Input string\n * @param {Number} version QR Code version\n * @return {Array} Array of segments\n */\nexports.fromString = function fromString (data, version) {\n const segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n\n const nodes = buildNodes(segs)\n const graph = buildGraph(nodes, version)\n const path = dijkstra.find_path(graph.map, 'start', 'end')\n\n const optimizedSegs = []\n for (let i = 1; i < path.length - 1; i++) {\n optimizedSegs.push(graph.table[path[i]].node)\n }\n\n return exports.fromArray(mergeSegments(optimizedSegs))\n}\n\n/**\n * Splits a string in various segments with the modes which\n * best represent their content.\n * The produced segments are far from being optimized.\n * The output of this function is only used to estimate a QR Code version\n * which may contain the data.\n *\n * @param {string} data Input string\n * @return {Array} Array of segments\n */\nexports.rawSplit = function rawSplit (data) {\n return exports.fromArray(\n getSegmentsFromString(data, Utils.isKanjiModeEnabled())\n )\n}\n","let toSJISFunction\nconst CODEWORDS_COUNT = [\n 0, // Not used\n 26, 44, 70, 100, 134, 172, 196, 242, 292, 346,\n 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,\n 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,\n 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706\n]\n\n/**\n * Returns the QR Code size for the specified version\n *\n * @param {Number} version QR Code version\n * @return {Number} size of QR code\n */\nexports.getSymbolSize = function getSymbolSize (version) {\n if (!version) throw new Error('\"version\" cannot be null or undefined')\n if (version < 1 || version > 40) throw new Error('\"version\" should be in range from 1 to 40')\n return version * 4 + 17\n}\n\n/**\n * Returns the total number of codewords used to store data and EC information.\n *\n * @param {Number} version QR Code version\n * @return {Number} Data length in bits\n */\nexports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {\n return CODEWORDS_COUNT[version]\n}\n\n/**\n * Encode data with Bose-Chaudhuri-Hocquenghem\n *\n * @param {Number} data Value to encode\n * @return {Number} Encoded value\n */\nexports.getBCHDigit = function (data) {\n let digit = 0\n\n while (data !== 0) {\n digit++\n data >>>= 1\n }\n\n return digit\n}\n\nexports.setToSJISFunction = function setToSJISFunction (f) {\n if (typeof f !== 'function') {\n throw new Error('\"toSJISFunc\" is not a valid function.')\n }\n\n toSJISFunction = f\n}\n\nexports.isKanjiModeEnabled = function () {\n return typeof toSJISFunction !== 'undefined'\n}\n\nexports.toSJIS = function toSJIS (kanji) {\n return toSJISFunction(kanji)\n}\n","/**\n * Check if QR Code version is valid\n *\n * @param {Number} version QR Code version\n * @return {Boolean} true if valid version, false otherwise\n */\nexports.isValid = function isValid (version) {\n return !isNaN(version) && version >= 1 && version <= 40\n}\n","const Utils = require('./utils')\nconst ECCode = require('./error-correction-code')\nconst ECLevel = require('./error-correction-level')\nconst Mode = require('./mode')\nconst VersionCheck = require('./version-check')\n\n// Generator polynomial used to encode version information\nconst G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)\nconst G18_BCH = Utils.getBCHDigit(G18)\n\nfunction getBestVersionForDataLength (mode, length, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\nfunction getReservedBitsCount (mode, version) {\n // Character count indicator + mode indicator bits\n return Mode.getCharCountIndicator(mode, version) + 4\n}\n\nfunction getTotalBitsFromDataArray (segments, version) {\n let totalBits = 0\n\n segments.forEach(function (data) {\n const reservedBits = getReservedBitsCount(data.mode, version)\n totalBits += reservedBits + data.getBitsLength()\n })\n\n return totalBits\n}\n\nfunction getBestVersionForMixedData (segments, errorCorrectionLevel) {\n for (let currentVersion = 1; currentVersion <= 40; currentVersion++) {\n const length = getTotalBitsFromDataArray(segments, currentVersion)\n if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {\n return currentVersion\n }\n }\n\n return undefined\n}\n\n/**\n * Returns version number from a value.\n * If value is not a valid version, returns defaultValue\n *\n * @param {Number|String} value QR Code version\n * @param {Number} defaultValue Fallback value\n * @return {Number} QR Code version number\n */\nexports.from = function from (value, defaultValue) {\n if (VersionCheck.isValid(value)) {\n return parseInt(value, 10)\n }\n\n return defaultValue\n}\n\n/**\n * Returns how much data can be stored with the specified QR code version\n * and error correction level\n *\n * @param {Number} version QR Code version (1-40)\n * @param {Number} errorCorrectionLevel Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} Quantity of storable data\n */\nexports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {\n if (!VersionCheck.isValid(version)) {\n throw new Error('Invalid QR Code version')\n }\n\n // Use Byte mode as default\n if (typeof mode === 'undefined') mode = Mode.BYTE\n\n // Total codewords for this QR code version (Data + Error correction)\n const totalCodewords = Utils.getSymbolTotalCodewords(version)\n\n // Total number of error correction codewords\n const ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)\n\n // Total number of data codewords\n const dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8\n\n if (mode === Mode.MIXED) return dataTotalCodewordsBits\n\n const usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)\n\n // Return max number of storable codewords\n switch (mode) {\n case Mode.NUMERIC:\n return Math.floor((usableBits / 10) * 3)\n\n case Mode.ALPHANUMERIC:\n return Math.floor((usableBits / 11) * 2)\n\n case Mode.KANJI:\n return Math.floor(usableBits / 13)\n\n case Mode.BYTE:\n default:\n return Math.floor(usableBits / 8)\n }\n}\n\n/**\n * Returns the minimum version needed to contain the amount of data\n *\n * @param {Segment} data Segment of data\n * @param {Number} [errorCorrectionLevel=H] Error correction level\n * @param {Mode} mode Data mode\n * @return {Number} QR Code version\n */\nexports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {\n let seg\n\n const ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)\n\n if (Array.isArray(data)) {\n if (data.length > 1) {\n return getBestVersionForMixedData(data, ecl)\n }\n\n if (data.length === 0) {\n return 1\n }\n\n seg = data[0]\n } else {\n seg = data\n }\n\n return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)\n}\n\n/**\n * Returns version information with relative error correction bits\n *\n * The version information is included in QR Code symbols of version 7 or larger.\n * It consists of an 18-bit sequence containing 6 data bits,\n * with 12 error correction bits calculated using the (18, 6) Golay code.\n *\n * @param {Number} version QR Code version\n * @return {Number} Encoded version info bits\n */\nexports.getEncodedBits = function getEncodedBits (version) {\n if (!VersionCheck.isValid(version) || version < 7) {\n throw new Error('Invalid QR Code version')\n }\n\n let d = version << 12\n\n while (Utils.getBCHDigit(d) - G18_BCH >= 0) {\n d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))\n }\n\n return (version << 12) | d\n}\n","const Utils = require('./utils')\n\nfunction clearCanvas (ctx, canvas, size) {\n ctx.clearRect(0, 0, canvas.width, canvas.height)\n\n if (!canvas.style) canvas.style = {}\n canvas.height = size\n canvas.width = size\n canvas.style.height = size + 'px'\n canvas.style.width = size + 'px'\n}\n\nfunction getCanvasElement () {\n try {\n return document.createElement('canvas')\n } catch (e) {\n throw new Error('You need to specify a canvas element')\n }\n}\n\nexports.render = function render (qrData, canvas, options) {\n let opts = options\n let canvasEl = canvas\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!canvas) {\n canvasEl = getCanvasElement()\n }\n\n opts = Utils.getOptions(opts)\n const size = Utils.getImageWidth(qrData.modules.size, opts)\n\n const ctx = canvasEl.getContext('2d')\n const image = ctx.createImageData(size, size)\n Utils.qrToImageData(image.data, qrData, opts)\n\n clearCanvas(ctx, canvasEl, size)\n ctx.putImageData(image, 0, 0)\n\n return canvasEl\n}\n\nexports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {\n let opts = options\n\n if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {\n opts = canvas\n canvas = undefined\n }\n\n if (!opts) opts = {}\n\n const canvasEl = exports.render(qrData, canvas, opts)\n\n const type = opts.type || 'image/png'\n const rendererOpts = opts.rendererOpts || {}\n\n return canvasEl.toDataURL(type, rendererOpts.quality)\n}\n","const Utils = require('./utils')\n\nfunction getColorAttrib (color, attrib) {\n const alpha = color.a / 255\n const str = attrib + '=\"' + color.hex + '\"'\n\n return alpha < 1\n ? str + ' ' + attrib + '-opacity=\"' + alpha.toFixed(2).slice(1) + '\"'\n : str\n}\n\nfunction svgCmd (cmd, x, y) {\n let str = cmd + x\n if (typeof y !== 'undefined') str += ' ' + y\n\n return str\n}\n\nfunction qrToPath (data, size, margin) {\n let path = ''\n let moveBy = 0\n let newRow = false\n let lineLength = 0\n\n for (let i = 0; i < data.length; i++) {\n const col = Math.floor(i % size)\n const row = Math.floor(i / size)\n\n if (!col && !newRow) newRow = true\n\n if (data[i]) {\n lineLength++\n\n if (!(i > 0 && col > 0 && data[i - 1])) {\n path += newRow\n ? svgCmd('M', col + margin, 0.5 + row + margin)\n : svgCmd('m', moveBy, 0)\n\n moveBy = 0\n newRow = false\n }\n\n if (!(col + 1 < size && data[i + 1])) {\n path += svgCmd('h', lineLength)\n lineLength = 0\n }\n } else {\n moveBy++\n }\n }\n\n return path\n}\n\nexports.render = function render (qrData, options, cb) {\n const opts = Utils.getOptions(options)\n const size = qrData.modules.size\n const data = qrData.modules.data\n const qrcodesize = size + opts.margin * 2\n\n const bg = !opts.color.light.a\n ? ''\n : '<path ' + getColorAttrib(opts.color.light, 'fill') +\n ' d=\"M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z\"/>'\n\n const path =\n '<path ' + getColorAttrib(opts.color.dark, 'stroke') +\n ' d=\"' + qrToPath(data, size, opts.margin) + '\"/>'\n\n const viewBox = 'viewBox=\"' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '\"'\n\n const width = !opts.width ? '' : 'width=\"' + opts.width + '\" height=\"' + opts.width + '\" '\n\n const svgTag = '<svg xmlns=\"http://www.w3.org/2000/svg\" ' + width + viewBox + ' shape-rendering=\"crispEdges\">' + bg + path + '</svg>\\n'\n\n if (typeof cb === 'function') {\n cb(null, svgTag)\n }\n\n return svgTag\n}\n","function hex2rgba (hex) {\n if (typeof hex === 'number') {\n hex = hex.toString()\n }\n\n if (typeof hex !== 'string') {\n throw new Error('Color should be defined as hex string')\n }\n\n let hexCode = hex.slice().replace('#', '').split('')\n if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {\n throw new Error('Invalid hex color: ' + hex)\n }\n\n // Convert from short to long form (fff -> ffffff)\n if (hexCode.length === 3 || hexCode.length === 4) {\n hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {\n return [c, c]\n }))\n }\n\n // Add default alpha value\n if (hexCode.length === 6) hexCode.push('F', 'F')\n\n const hexValue = parseInt(hexCode.join(''), 16)\n\n return {\n r: (hexValue >> 24) & 255,\n g: (hexValue >> 16) & 255,\n b: (hexValue >> 8) & 255,\n a: hexValue & 255,\n hex: '#' + hexCode.slice(0, 6).join('')\n }\n}\n\nexports.getOptions = function getOptions (options) {\n if (!options) options = {}\n if (!options.color) options.color = {}\n\n const margin = typeof options.margin === 'undefined' ||\n options.margin === null ||\n options.margin < 0\n ? 4\n : options.margin\n\n const width = options.width && options.width >= 21 ? options.width : undefined\n const scale = options.scale || 4\n\n return {\n width: width,\n scale: width ? 4 : scale,\n margin: margin,\n color: {\n dark: hex2rgba(options.color.dark || '#000000ff'),\n light: hex2rgba(options.color.light || '#ffffffff')\n },\n type: options.type,\n rendererOpts: options.rendererOpts || {}\n }\n}\n\nexports.getScale = function getScale (qrSize, opts) {\n return opts.width && opts.width >= qrSize + opts.margin * 2\n ? opts.width / (qrSize + opts.margin * 2)\n : opts.scale\n}\n\nexports.getImageWidth = function getImageWidth (qrSize, opts) {\n const scale = exports.getScale(qrSize, opts)\n return Math.floor((qrSize + opts.margin * 2) * scale)\n}\n\nexports.qrToImageData = function qrToImageData (imgData, qr, opts) {\n const size = qr.modules.size\n const data = qr.modules.data\n const scale = exports.getScale(size, opts)\n const symbolSize = Math.floor((size + opts.margin * 2) * scale)\n const scaledMargin = opts.margin * scale\n const palette = [opts.color.light, opts.color.dark]\n\n for (let i = 0; i < symbolSize; i++) {\n for (let j = 0; j < symbolSize; j++) {\n let posDst = (i * symbolSize + j) * 4\n let pxColor = opts.color.light\n\n if (i >= scaledMargin && j >= scaledMargin &&\n i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {\n const iSrc = Math.floor((i - scaledMargin) / scale)\n const jSrc = Math.floor((j - scaledMargin) / scale)\n pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]\n }\n\n imgData[posDst++] = pxColor.r\n imgData[posDst++] = pxColor.g\n imgData[posDst++] = pxColor.b\n imgData[posDst] = pxColor.a\n }\n }\n}\n","import { getPlatform, COMPILER_OPTIONS, Injectable, InjectionToken } from '@angular/core';\nimport { ReplaySubject } from 'rxjs';\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @param {?} a\r\n * @param {?} b\r\n * @return {?}\r\n */\r\nimport * as ɵngcc0 from '@angular/core';\nfunction defaultEqualityCheck(a, b) {\r\n return a === b;\r\n}\r\n/**\r\n * @param {?} equalityCheck\r\n * @param {?} prev\r\n * @param {?} next\r\n * @return {?}\r\n */\r\nfunction areArgumentsShallowlyEqual(equalityCheck, prev, next) {\r\n if (prev === null || next === null || prev.length !== next.length) {\r\n return false;\r\n }\r\n // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.\r\n /** @type {?} */\r\n const length = prev.length;\r\n for (let i = 0; i < length; i++) {\r\n if (!equalityCheck(prev[i], next[i])) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n/**\r\n * Memoize a function on its last inputs only.\r\n * Originally from: https://github.com/reduxjs/reselect/blob/master/src/index.js\r\n *\r\n * @ignore\r\n * @template T\r\n * @param {?} func\r\n * @param {?=} equalityCheck\r\n * @return {?}\r\n */\r\nfunction memoize(func, equalityCheck = defaultEqualityCheck) {\r\n /** @type {?} */\r\n let lastArgs = null;\r\n /** @type {?} */\r\n let lastResult = null;\r\n // we reference arguments instead of spreading them for performance reasons\r\n /**\r\n * @return {?}\r\n */\r\n function memoized() {\r\n if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {\r\n // apply arguments instead of spreading for performance.\r\n lastResult = ((/** @type {?} */ (func))).apply(null, arguments);\r\n }\r\n lastArgs = arguments;\r\n return lastResult;\r\n }\r\n ((/** @type {?} */ (memoized))).reset = (/**\r\n * @return {?}\r\n */\r\n function () {\r\n // The hidden (for now) ability to reset the memoization\r\n lastArgs = null;\r\n lastResult = null;\r\n });\r\n return (/** @type {?} */ (memoized));\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @return {?}\r\n */\r\nfunction _isAngularInTestMode() {\r\n /** @type {?} */\r\n const platformRef = getPlatform();\r\n if (!platformRef)\r\n return false;\r\n /** @type {?} */\r\n const compilerOptions = platformRef.injector.get(COMPILER_OPTIONS, null);\r\n if (!compilerOptions)\r\n return false;\r\n /** @type {?} */\r\n const isInTestMode = compilerOptions.some((/**\r\n * @param {?} item\r\n * @return {?}\r\n */\r\n (item) => {\r\n /** @type {?} */\r\n const providers = (item && item.providers) || [];\r\n return providers.some((/**\r\n * @param {?} provider\r\n * @return {?}\r\n */\r\n (provider) => {\r\n return ((provider && provider.provide && provider.provide.name === 'MockNgModuleResolver') ||\r\n false);\r\n }));\r\n }));\r\n return isInTestMode;\r\n}\r\n/** @type {?} */\r\nconst isAngularInTestMode = memoize(_isAngularInTestMode);\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass NgxsBootstrapper {\r\n constructor() {\r\n /**\r\n * Use `ReplaySubject`, thus we can get cached value even if the stream is completed\r\n */\r\n this.bootstrap$ = new ReplaySubject(1);\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n get appBootstrapped$() {\r\n return this.bootstrap$.asObservable();\r\n }\r\n /**\r\n * This event will be emitted after attaching `ComponentRef` of the root component\r\n * to the tree of views, that's a signal that application has been fully rendered\r\n * @return {?}\r\n */\r\n bootstrap() {\r\n this.bootstrap$.next(true);\r\n this.bootstrap$.complete();\r\n }\r\n}\nNgxsBootstrapper.ɵfac = function NgxsBootstrapper_Factory(t) { return new (t || NgxsBootstrapper)(); };\nNgxsBootstrapper.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: NgxsBootstrapper, factory: NgxsBootstrapper.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsBootstrapper, [{\n type: Injectable\n }], function () { return []; }, null); })();\r\nif (false) {\r\n /**\r\n * Use `ReplaySubject`, thus we can get cached value even if the stream is completed\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsBootstrapper.prototype.bootstrap$;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @type {?} */\r\nconst INITIAL_STATE_TOKEN = new InjectionToken('INITIAL_STATE_TOKEN');\r\nclass InitialState {\r\n /**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n static set(state) {\r\n this.value = state;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static pop() {\r\n /** @type {?} */\r\n const state = this.value;\r\n this.value = {};\r\n return state;\r\n }\r\n}\r\nInitialState.value = {};\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InitialState.value;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @see StateContextFactory as it's referenced by this token to be accessed by plugins internally\r\n * @type {?}\r\n */\r\nconst NGXS_STATE_CONTEXT_FACTORY = new InjectionToken('Internals.StateContextFactory');\r\n/**\r\n * @see StateFactory as it's referenced by this token to be accessed by plugins internally\r\n * @type {?}\r\n */\r\nconst NGXS_STATE_FACTORY = new InjectionToken('Internals.StateFactory');\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\nexport { INITIAL_STATE_TOKEN, InitialState, NGXS_STATE_CONTEXT_FACTORY, NGXS_STATE_FACTORY, NgxsBootstrapper, isAngularInTestMode, memoize };\n\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function exhaustMap(project, resultSelector) {\n if (resultSelector) {\n return (source) => source.pipe(exhaustMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return (source) => source.lift(new ExhaustMapOperator(project));\n}\nclass ExhaustMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));\n }\n}\nclass ExhaustMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.hasSubscription = false;\n this.hasCompleted = false;\n this.index = 0;\n }\n _next(value) {\n if (!this.hasSubscription) {\n this.tryNext(value);\n }\n }\n tryNext(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.hasSubscription = true;\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n const innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n _complete() {\n this.hasCompleted = true;\n if (!this.hasSubscription) {\n this.destination.complete();\n }\n this.unsubscribe();\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.hasSubscription = false;\n if (this.hasCompleted) {\n this.destination.complete();\n }\n }\n}\n","import { NgZone, Injectable, Inject, PLATFORM_ID, InjectionToken, Optional, SkipSelf, ErrorHandler, Injector, isDevMode, NgModule, APP_BOOTSTRAP_LISTENER } from '@angular/core';\nimport { memoize, INITIAL_STATE_TOKEN, NgxsBootstrapper, isAngularInTestMode, NGXS_STATE_CONTEXT_FACTORY, NGXS_STATE_FACTORY, InitialState } from '@ngxs/store/internals';\nimport { isPlatformServer } from '@angular/common';\nimport { Observable, Subject, BehaviorSubject, of, forkJoin, throwError, EMPTY, from, ReplaySubject } from 'rxjs';\nimport { filter, map, shareReplay, take, exhaustMap, mergeMap, defaultIfEmpty, catchError, takeUntil, tap, distinctUntilChanged } from 'rxjs/operators';\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @enum {string} */\r\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ngxs/store/internals';\nconst VALIDATION_CODE = {\r\n STATE_NAME: 'STATE_NAME',\r\n STATE_UNIQUE: 'STATE_UNIQUE',\r\n STATE_NAME_PROPERTY: 'STATE_NAME_PROPERTY',\r\n STATE_DECORATOR: 'STATE_DECORATOR',\r\n INCORRECT_PRODUCTION: 'INCORRECT_PRODUCTION',\r\n INCORRECT_DEVELOPMENT: 'INCORRECT_DEVELOPMENT',\r\n SELECT_FACTORY_NOT_CONNECTED: 'SELECT_FACTORY_NOT_CONNECTED',\r\n ACTION_DECORATOR: 'ACTION_DECORATOR',\r\n SELECTOR_DECORATOR: 'SELECTOR_DECORATOR',\r\n ZONE_WARNING: 'ZONE_WARNING',\r\n PATCHING_ARRAY: 'PATCHING_ARRAY',\r\n PATCHING_PRIMITIVE: 'PATCHING_PRIMITIVE',\r\n UNDECORATED_STATE_IN_IVY: 'UNDECORATED_STATE_IN_IVY',\r\n};\r\n/** @type {?} */\r\nconst CONFIG_MESSAGES = {\r\n [VALIDATION_CODE.STATE_NAME]: (/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n (name) => `${name} is not a valid state name. It needs to be a valid object property name.`),\r\n [VALIDATION_CODE.STATE_NAME_PROPERTY]: (/**\r\n * @return {?}\r\n */\r\n () => `States must register a 'name' property`),\r\n [VALIDATION_CODE.STATE_UNIQUE]: (/**\r\n * @param {?} current\r\n * @param {?} newName\r\n * @param {?} oldName\r\n * @return {?}\r\n */\r\n (current, newName, oldName) => `State name '${current}' from ${newName} already exists in ${oldName}`),\r\n [VALIDATION_CODE.STATE_DECORATOR]: (/**\r\n * @return {?}\r\n */\r\n () => 'States must be decorated with @State() decorator'),\r\n [VALIDATION_CODE.INCORRECT_PRODUCTION]: (/**\r\n * @return {?}\r\n */\r\n () => 'Angular is running in production mode but NGXS is still running in the development mode!\\n' +\r\n 'Please set developmentMode to false on the NgxsModule options when in production mode.\\n' +\r\n 'NgxsModule.forRoot(states, { developmentMode: !environment.production })'),\r\n [VALIDATION_CODE.INCORRECT_DEVELOPMENT]: (/**\r\n * @return {?}\r\n */\r\n () => 'RECOMMENDATION: Set developmentMode to true on the NgxsModule when Angular is running in development mode.\\n' +\r\n 'NgxsModule.forRoot(states, { developmentMode: !environment.production })'),\r\n [VALIDATION_CODE.SELECT_FACTORY_NOT_CONNECTED]: (/**\r\n * @return {?}\r\n */\r\n () => 'You have forgotten to import the NGXS module!'),\r\n [VALIDATION_CODE.ACTION_DECORATOR]: (/**\r\n * @return {?}\r\n */\r\n () => '@Action() decorator cannot be used with static methods'),\r\n [VALIDATION_CODE.SELECTOR_DECORATOR]: (/**\r\n * @return {?}\r\n */\r\n () => 'Selectors only work on methods'),\r\n [VALIDATION_CODE.ZONE_WARNING]: (/**\r\n * @return {?}\r\n */\r\n () => 'Your application was bootstrapped with nooped zone and your execution strategy requires an actual NgZone!\\n' +\r\n 'Please set the value of the executionStrategy property to NoopNgxsExecutionStrategy.\\n' +\r\n 'NgxsModule.forRoot(states, { executionStrategy: NoopNgxsExecutionStrategy })'),\r\n [VALIDATION_CODE.PATCHING_ARRAY]: (/**\r\n * @return {?}\r\n */\r\n () => 'Patching arrays is not supported.'),\r\n [VALIDATION_CODE.PATCHING_PRIMITIVE]: (/**\r\n * @return {?}\r\n */\r\n () => 'Patching primitives is not supported.'),\r\n [VALIDATION_CODE.UNDECORATED_STATE_IN_IVY]: (/**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n (name) => `'${name}' class should be decorated with @Injectable() right after the @State() decorator`)\r\n};\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass DispatchOutsideZoneNgxsExecutionStrategy {\r\n /**\r\n * @param {?} _ngZone\r\n * @param {?} _platformId\r\n */\r\n constructor(_ngZone, _platformId) {\r\n this._ngZone = _ngZone;\r\n this._platformId = _platformId;\r\n this.verifyZoneIsNotNooped(this._ngZone);\r\n }\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n enter(func) {\r\n if (isPlatformServer(this._platformId)) {\r\n return this.runInsideAngular(func);\r\n }\r\n return this.runOutsideAngular(func);\r\n }\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n leave(func) {\r\n return this.runInsideAngular(func);\r\n }\r\n /**\r\n * @private\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n runInsideAngular(func) {\r\n if (NgZone.isInAngularZone()) {\r\n return func();\r\n }\r\n return this._ngZone.run(func);\r\n }\r\n /**\r\n * @private\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n runOutsideAngular(func) {\r\n if (NgZone.isInAngularZone()) {\r\n return this._ngZone.runOutsideAngular(func);\r\n }\r\n return func();\r\n }\r\n /**\r\n * @private\r\n * @param {?} ngZone\r\n * @return {?}\r\n */\r\n verifyZoneIsNotNooped(ngZone) {\r\n // `NoopNgZone` is not exposed publicly as it doesn't expect\r\n // to be used outside of the core Angular code, thus we just have\r\n // to check if the zone doesn't extend or instanceof `NgZone`\r\n if (ngZone instanceof NgZone) {\r\n return;\r\n }\r\n console.warn(CONFIG_MESSAGES[VALIDATION_CODE.ZONE_WARNING]());\r\n }\r\n}\nDispatchOutsideZoneNgxsExecutionStrategy.ɵfac = function DispatchOutsideZoneNgxsExecutionStrategy_Factory(t) { return new (t || DispatchOutsideZoneNgxsExecutionStrategy)(ɵngcc0.ɵɵinject(ɵngcc0.NgZone), ɵngcc0.ɵɵinject(PLATFORM_ID)); };\nDispatchOutsideZoneNgxsExecutionStrategy.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: DispatchOutsideZoneNgxsExecutionStrategy, factory: DispatchOutsideZoneNgxsExecutionStrategy.ɵfac });\r\n/** @nocollapse */\r\nDispatchOutsideZoneNgxsExecutionStrategy.ctorParameters = () => [\r\n { type: NgZone },\r\n { type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(DispatchOutsideZoneNgxsExecutionStrategy, [{\n type: Injectable\n }], function () { return [{ type: ɵngcc0.NgZone }, { type: String, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n DispatchOutsideZoneNgxsExecutionStrategy.prototype._ngZone;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n DispatchOutsideZoneNgxsExecutionStrategy.prototype._platformId;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @type {?} */\r\nconst ROOT_STATE_TOKEN = new InjectionToken('ROOT_STATE_TOKEN');\r\n/** @type {?} */\r\nconst FEATURE_STATE_TOKEN = new InjectionToken('FEATURE_STATE_TOKEN');\r\n/** @type {?} */\r\nconst NGXS_PLUGINS = new InjectionToken('NGXS_PLUGINS');\r\n/** @type {?} */\r\nconst NG_TEST_MODE = new InjectionToken('NG_TEST_MODE');\r\n/** @type {?} */\r\nconst NG_DEV_MODE = new InjectionToken('NG_DEV_MODE');\r\n/** @type {?} */\r\nconst META_KEY = 'NGXS_META';\r\n/** @type {?} */\r\nconst META_OPTIONS_KEY = 'NGXS_OPTIONS_META';\r\n/** @type {?} */\r\nconst SELECTOR_META_KEY = 'NGXS_SELECTOR_META';\r\n/**\r\n * The NGXS config settings.\r\n */\r\nclass NgxsConfig {\r\n constructor() {\r\n /**\r\n * Defining the default state before module initialization\r\n * This is convenient if we need to create a define our own set of states.\r\n * @deprecated will be removed after v4\r\n * (default: {})\r\n */\r\n this.defaultsState = {};\r\n /**\r\n * Defining shared selector options\r\n */\r\n this.selectorOptions = {\r\n injectContainerState: true,\r\n // TODO: default is true in v3, will change in v4\r\n suppressErrors: true // TODO: default is true in v3, will change in v4\r\n };\r\n this.compatibility = {\r\n strictContentSecurityPolicy: false\r\n };\r\n this.executionStrategy = DispatchOutsideZoneNgxsExecutionStrategy;\r\n }\r\n}\nNgxsConfig.ɵfac = function NgxsConfig_Factory(t) { return new (t || NgxsConfig)(); };\nNgxsConfig.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: NgxsConfig, factory: NgxsConfig.ɵfac });\r\n/** @nocollapse */\r\nNgxsConfig.ctorParameters = () => [];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsConfig, [{\n type: Injectable\n }], function () { return []; }, null); })();\r\nif (false) {\r\n /**\r\n * Run in development mode. This will add additional debugging features:\r\n * - Object.freeze on the state and actions to guarantee immutability\r\n * (default: false)\r\n * @type {?}\r\n */\r\n NgxsConfig.prototype.developmentMode;\r\n /** @type {?} */\r\n NgxsConfig.prototype.compatibility;\r\n /**\r\n * Determines the execution context to perform async operations inside. An implementation can be\r\n * provided to override the default behaviour where the async operations are run\r\n * outside Angular's zone but all observable behaviours of NGXS are run back inside Angular's zone.\r\n * These observable behaviours are from:\r\n * `\\@Select(...)`, `store.select(...)`, `actions.subscribe(...)` or `store.dispatch(...).subscribe(...)`\r\n * Every `zone.run` causes Angular to run change detection on the whole tree (`app.tick()`) so of your\r\n * application doesn't rely on zone.js running change detection then you can switch to the\r\n * `NoopNgxsExecutionStrategy` that doesn't interact with zones.\r\n * (default: null)\r\n * @type {?}\r\n */\r\n NgxsConfig.prototype.executionStrategy;\r\n /**\r\n * Defining the default state before module initialization\r\n * This is convenient if we need to create a define our own set of states.\r\n * @deprecated will be removed after v4\r\n * (default: {})\r\n * @type {?}\r\n */\r\n NgxsConfig.prototype.defaultsState;\r\n /**\r\n * Defining shared selector options\r\n * @type {?}\r\n */\r\n NgxsConfig.prototype.selectorOptions;\r\n}\r\n/**\r\n * State context provided to the actions in the state.\r\n * @record\r\n * @template T\r\n */\r\nfunction StateContext() { }\r\nif (false) {\r\n /**\r\n * Get the current state.\r\n * @return {?}\r\n */\r\n StateContext.prototype.getState = function () { };\r\n /**\r\n * Reset the state to a new value.\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n StateContext.prototype.setState = function (val) { };\r\n /**\r\n * Patch the existing state with the provided value.\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n StateContext.prototype.patchState = function (val) { };\r\n /**\r\n * Dispatch a new action and return the dispatched observable.\r\n * @param {?} actions\r\n * @return {?}\r\n */\r\n StateContext.prototype.dispatch = function (actions) { };\r\n}\r\n/**\r\n * Plugin interface\r\n * @record\r\n */\r\nfunction NgxsPlugin() { }\r\nif (false) {\r\n /**\r\n * Handle the state/action before its submitted to the state handlers.\r\n * @param {?} state\r\n * @param {?} action\r\n * @param {?} next\r\n * @return {?}\r\n */\r\n NgxsPlugin.prototype.handle = function (state, action, next) { };\r\n}\r\n/**\r\n * Options that can be provided to the store.\r\n * @record\r\n * @template T\r\n */\r\nfunction StoreOptions() { }\r\nif (false) {\r\n /**\r\n * Name of the state. Required.\r\n * @type {?}\r\n */\r\n StoreOptions.prototype.name;\r\n /**\r\n * Default values for the state. If not provided, uses empty object.\r\n * @type {?|undefined}\r\n */\r\n StoreOptions.prototype.defaults;\r\n /**\r\n * Sub states for the given state.\r\n * @type {?|undefined}\r\n */\r\n StoreOptions.prototype.children;\r\n}\r\n/**\r\n * Represents a basic change from a previous to a new value for a single state instance.\r\n * Passed as a value in a NgxsSimpleChanges object to the ngxsOnChanges hook.\r\n * @template T\r\n */\r\nclass NgxsSimpleChange {\r\n /**\r\n * @param {?} previousValue\r\n * @param {?} currentValue\r\n * @param {?} firstChange\r\n */\r\n constructor(previousValue, currentValue, firstChange) {\r\n this.previousValue = previousValue;\r\n this.currentValue = currentValue;\r\n this.firstChange = firstChange;\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n NgxsSimpleChange.prototype.previousValue;\r\n /** @type {?} */\r\n NgxsSimpleChange.prototype.currentValue;\r\n /** @type {?} */\r\n NgxsSimpleChange.prototype.firstChange;\r\n}\r\n/**\r\n * On init interface\r\n * @record\r\n */\r\nfunction NgxsOnInit() { }\r\nif (false) {\r\n /**\r\n * @param {?=} ctx\r\n * @return {?}\r\n */\r\n NgxsOnInit.prototype.ngxsOnInit = function (ctx) { };\r\n}\r\n/**\r\n * On change interface\r\n * @record\r\n */\r\nfunction NgxsOnChanges() { }\r\nif (false) {\r\n /**\r\n * @param {?} change\r\n * @return {?}\r\n */\r\n NgxsOnChanges.prototype.ngxsOnChanges = function (change) { };\r\n}\r\n/**\r\n * After bootstrap interface\r\n * @record\r\n */\r\nfunction NgxsAfterBootstrap() { }\r\nif (false) {\r\n /**\r\n * @param {?=} ctx\r\n * @return {?}\r\n */\r\n NgxsAfterBootstrap.prototype.ngxsAfterBootstrap = function (ctx) { };\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/*\r\n * Internal execution strategy injection token\r\n */\r\n/** @type {?} */\r\nconst NGXS_EXECUTION_STRATEGY = new InjectionToken('NGXS_EXECUTION_STRATEGY');\r\n/**\r\n * @record\r\n */\r\nfunction NgxsExecutionStrategy() { }\r\nif (false) {\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n NgxsExecutionStrategy.prototype.enter = function (func) { };\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n NgxsExecutionStrategy.prototype.leave = function (func) { };\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Returns the type from an action instance/class.\r\n * @ignore\r\n * @param {?} action\r\n * @return {?}\r\n */\r\nfunction getActionTypeFromInstance(action) {\r\n if (action.constructor && action.constructor.type) {\r\n return action.constructor.type;\r\n }\r\n else {\r\n return action.type;\r\n }\r\n}\r\n/**\r\n * Matches a action\r\n * @ignore\r\n * @param {?} action1\r\n * @return {?}\r\n */\r\nfunction actionMatcher(action1) {\r\n /** @type {?} */\r\n const type1 = getActionTypeFromInstance(action1);\r\n return (/**\r\n * @param {?} action2\r\n * @return {?}\r\n */\r\n function (action2) {\r\n return type1 === getActionTypeFromInstance(action2);\r\n });\r\n}\r\n/**\r\n * Set a deeply nested value. Example:\r\n *\r\n * setValue({ foo: { bar: { eat: false } } },\r\n * 'foo.bar.eat', true) //=> { foo: { bar: { eat: true } } }\r\n *\r\n * While it traverses it also creates new objects from top down.\r\n *\r\n * @ignore\r\n * @type {?}\r\n */\r\nconst setValue = (/**\r\n * @param {?} obj\r\n * @param {?} prop\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n(obj, prop, val) => {\r\n obj = Object.assign({}, obj);\r\n /** @type {?} */\r\n const split = prop.split('.');\r\n /** @type {?} */\r\n const lastIndex = split.length - 1;\r\n split.reduce((/**\r\n * @param {?} acc\r\n * @param {?} part\r\n * @param {?} index\r\n * @return {?}\r\n */\r\n (acc, part, index) => {\r\n if (index === lastIndex) {\r\n acc[part] = val;\r\n }\r\n else {\r\n acc[part] = Array.isArray(acc[part]) ? acc[part].slice() : Object.assign({}, acc[part]);\r\n }\r\n return acc && acc[part];\r\n }), obj);\r\n return obj;\r\n});\r\n/**\r\n * Get a deeply nested value. Example:\r\n *\r\n * getValue({ foo: bar: [] }, 'foo.bar') //=> []\r\n *\r\n * @ignore\r\n * @type {?}\r\n */\r\nconst getValue = (/**\r\n * @param {?} obj\r\n * @param {?} prop\r\n * @return {?}\r\n */\r\n(obj, prop) => prop.split('.').reduce((/**\r\n * @param {?} acc\r\n * @param {?} part\r\n * @return {?}\r\n */\r\n(acc, part) => acc && acc[part]), obj));\r\n/**\r\n * Simple object check.\r\n *\r\n * isObject({a:1}) //=> true\r\n * isObject(1) //=> false\r\n *\r\n * @ignore\r\n * @type {?}\r\n */\r\nconst isObject = (/**\r\n * @param {?} item\r\n * @return {?}\r\n */\r\n(item) => {\r\n return item && typeof item === 'object' && !Array.isArray(item);\r\n});\r\n/**\r\n * Deep merge two objects.\r\n *\r\n * mergeDeep({a:1, b:{x: 1, y:2}}, {b:{x: 3}, c:4}) //=> {a:1, b:{x:3, y:2}, c:4}\r\n *\r\n * \\@param base base object onto which `sources` will be applied\r\n * @type {?}\r\n */\r\nconst mergeDeep = (/**\r\n * @param {?} base\r\n * @param {...?} sources\r\n * @return {?}\r\n */\r\n(base, ...sources) => {\r\n if (!sources.length)\r\n return base;\r\n /** @type {?} */\r\n const source = sources.shift();\r\n if (isObject(base) && isObject(source)) {\r\n for (const key in source) {\r\n if (isObject(source[key])) {\r\n if (!base[key])\r\n Object.assign(base, { [key]: {} });\r\n mergeDeep(base[key], source[key]);\r\n }\r\n else {\r\n Object.assign(base, { [key]: source[key] });\r\n }\r\n }\r\n }\r\n return mergeDeep(base, ...sources);\r\n});\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @record\r\n * @template T, U\r\n */\r\nfunction StateClassInternal() { }\r\nif (false) {\r\n /* Skipping unnamed member:\r\n [META_KEY]?: MetaDataModel;*/\r\n /* Skipping unnamed member:\r\n [META_OPTIONS_KEY]?: StoreOptions<U>;*/\r\n}\r\n/**\r\n * @record\r\n * @template T\r\n */\r\nfunction StateOperations() { }\r\nif (false) {\r\n /**\r\n * @return {?}\r\n */\r\n StateOperations.prototype.getState = function () { };\r\n /**\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n StateOperations.prototype.setState = function (val) { };\r\n /**\r\n * @param {?} actionOrActions\r\n * @return {?}\r\n */\r\n StateOperations.prototype.dispatch = function (actionOrActions) { };\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction MetaDataModel() { }\r\nif (false) {\r\n /** @type {?} */\r\n MetaDataModel.prototype.name;\r\n /** @type {?} */\r\n MetaDataModel.prototype.actions;\r\n /** @type {?} */\r\n MetaDataModel.prototype.defaults;\r\n /** @type {?} */\r\n MetaDataModel.prototype.path;\r\n /** @type {?} */\r\n MetaDataModel.prototype.makeRootSelector;\r\n /** @type {?|undefined} */\r\n MetaDataModel.prototype.children;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction RuntimeSelectorContext() { }\r\nif (false) {\r\n /**\r\n * @param {?} key\r\n * @return {?}\r\n */\r\n RuntimeSelectorContext.prototype.getStateGetter = function (key) { };\r\n /**\r\n * @param {?=} localOptions\r\n * @return {?}\r\n */\r\n RuntimeSelectorContext.prototype.getSelectorOptions = function (localOptions) { };\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction SharedSelectorOptions() { }\r\nif (false) {\r\n /** @type {?|undefined} */\r\n SharedSelectorOptions.prototype.injectContainerState;\r\n /** @type {?|undefined} */\r\n SharedSelectorOptions.prototype.suppressErrors;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction SelectorMetaDataModel() { }\r\nif (false) {\r\n /** @type {?} */\r\n SelectorMetaDataModel.prototype.makeRootSelector;\r\n /** @type {?} */\r\n SelectorMetaDataModel.prototype.originalFn;\r\n /** @type {?} */\r\n SelectorMetaDataModel.prototype.containerClass;\r\n /** @type {?} */\r\n SelectorMetaDataModel.prototype.selectorName;\r\n /** @type {?} */\r\n SelectorMetaDataModel.prototype.getSelectorOptions;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction MappedStore() { }\r\nif (false) {\r\n /** @type {?} */\r\n MappedStore.prototype.name;\r\n /** @type {?} */\r\n MappedStore.prototype.isInitialised;\r\n /** @type {?} */\r\n MappedStore.prototype.actions;\r\n /** @type {?} */\r\n MappedStore.prototype.defaults;\r\n /** @type {?} */\r\n MappedStore.prototype.instance;\r\n /** @type {?} */\r\n MappedStore.prototype.path;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction StatesAndDefaults() { }\r\nif (false) {\r\n /** @type {?} */\r\n StatesAndDefaults.prototype.defaults;\r\n /** @type {?} */\r\n StatesAndDefaults.prototype.states;\r\n}\r\n/**\r\n * @record\r\n * @template T\r\n */\r\nfunction RootStateDiff() { }\r\nif (false) {\r\n /** @type {?} */\r\n RootStateDiff.prototype.currentAppState;\r\n /** @type {?} */\r\n RootStateDiff.prototype.newAppState;\r\n}\r\n/**\r\n * Ensures metadata is attached to the class and returns it.\r\n *\r\n * @ignore\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction ensureStoreMetadata(target) {\r\n if (!target.hasOwnProperty(META_KEY)) {\r\n /** @type {?} */\r\n const defaultMetadata = {\r\n name: null,\r\n actions: {},\r\n defaults: {},\r\n path: null,\r\n /**\r\n * @param {?} context\r\n * @return {?}\r\n */\r\n makeRootSelector(context) {\r\n return context.getStateGetter(defaultMetadata.name);\r\n },\r\n children: []\r\n };\r\n Object.defineProperty(target, META_KEY, { value: defaultMetadata });\r\n }\r\n return getStoreMetadata(target);\r\n}\r\n/**\r\n * Get the metadata attached to the state class if it exists.\r\n *\r\n * @ignore\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction getStoreMetadata(target) {\r\n return (/** @type {?} */ (target[META_KEY]));\r\n}\r\n/**\r\n * Ensures metadata is attached to the selector and returns it.\r\n *\r\n * @ignore\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction ensureSelectorMetadata(target) {\r\n if (!target.hasOwnProperty(SELECTOR_META_KEY)) {\r\n /** @type {?} */\r\n const defaultMetadata = {\r\n makeRootSelector: null,\r\n originalFn: null,\r\n containerClass: null,\r\n selectorName: null,\r\n getSelectorOptions: (/**\r\n * @return {?}\r\n */\r\n () => ({}))\r\n };\r\n Object.defineProperty(target, SELECTOR_META_KEY, { value: defaultMetadata });\r\n }\r\n return getSelectorMetadata(target);\r\n}\r\n/**\r\n * Get the metadata attached to the selector if it exists.\r\n *\r\n * @ignore\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction getSelectorMetadata(target) {\r\n return target[SELECTOR_META_KEY];\r\n}\r\n/**\r\n * Get a deeply nested value. Example:\r\n *\r\n * getValue({ foo: bar: [] }, 'foo.bar') //=> []\r\n *\r\n * Note: This is not as fast as the `fastPropGetter` but is strict Content Security Policy compliant.\r\n * See perf hit: https://jsperf.com/fast-value-getter-given-path/1\r\n *\r\n * @ignore\r\n * @param {?} paths\r\n * @return {?}\r\n */\r\nfunction compliantPropGetter(paths) {\r\n /** @type {?} */\r\n const copyOfPaths = paths.slice();\r\n return (/**\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\n obj => copyOfPaths.reduce((/**\r\n * @param {?} acc\r\n * @param {?} part\r\n * @return {?}\r\n */\r\n (acc, part) => acc && acc[part]), obj));\r\n}\r\n/**\r\n * The generated function is faster than:\r\n * - pluck (Observable operator)\r\n * - memoize\r\n *\r\n * @ignore\r\n * @param {?} paths\r\n * @return {?}\r\n */\r\nfunction fastPropGetter(paths) {\r\n /** @type {?} */\r\n const segments = paths;\r\n /** @type {?} */\r\n let seg = 'store.' + segments[0];\r\n /** @type {?} */\r\n let i = 0;\r\n /** @type {?} */\r\n const l = segments.length;\r\n /** @type {?} */\r\n let expr = seg;\r\n while (++i < l) {\r\n expr = expr + ' && ' + (seg = seg + '.' + segments[i]);\r\n }\r\n /** @type {?} */\r\n const fn = new Function('store', 'return ' + expr + ';');\r\n return (/** @type {?} */ (fn));\r\n}\r\n/**\r\n * Get a deeply nested value. Example:\r\n *\r\n * getValue({ foo: bar: [] }, 'foo.bar') //=> []\r\n *\r\n * @ignore\r\n * @param {?} paths\r\n * @param {?} config\r\n * @return {?}\r\n */\r\nfunction propGetter(paths, config) {\r\n if (config && config.compatibility && config.compatibility.strictContentSecurityPolicy) {\r\n return compliantPropGetter(paths);\r\n }\r\n else {\r\n return fastPropGetter(paths);\r\n }\r\n}\r\n/**\r\n * Given an array of states, it will return a object graph. Example:\r\n * const states = [\r\n * Cart,\r\n * CartSaved,\r\n * CartSavedItems\r\n * ]\r\n *\r\n * would return:\r\n *\r\n * const graph = {\r\n * cart: ['saved'],\r\n * saved: ['items'],\r\n * items: []\r\n * };\r\n *\r\n * @ignore\r\n * @param {?} stateClasses\r\n * @return {?}\r\n */\r\nfunction buildGraph(stateClasses) {\r\n /** @type {?} */\r\n const findName = (/**\r\n * @param {?} stateClass\r\n * @return {?}\r\n */\r\n (stateClass) => {\r\n /** @type {?} */\r\n const meta = stateClasses.find((/**\r\n * @param {?} g\r\n * @return {?}\r\n */\r\n g => g === stateClass));\r\n if (!meta) {\r\n throw new Error(`Child state not found: ${stateClass}. \\r\\nYou may have forgotten to add states to module`);\r\n }\r\n return (/** @type {?} */ ((/** @type {?} */ (meta[META_KEY])).name));\r\n });\r\n return stateClasses.reduce((/**\r\n * @param {?} result\r\n * @param {?} stateClass\r\n * @return {?}\r\n */\r\n (result, stateClass) => {\r\n const { name, children } = (/** @type {?} */ (stateClass[META_KEY]));\r\n result[(/** @type {?} */ (name))] = (children || []).map(findName);\r\n return result;\r\n }), {});\r\n}\r\n/**\r\n * Given a states array, returns object graph\r\n * returning the name and state metadata. Example:\r\n *\r\n * const graph = {\r\n * cart: { metadata }\r\n * };\r\n *\r\n * @ignore\r\n * @param {?} states\r\n * @return {?}\r\n */\r\nfunction nameToState(states) {\r\n return states.reduce((/**\r\n * @param {?} result\r\n * @param {?} stateClass\r\n * @return {?}\r\n */\r\n (result, stateClass) => {\r\n /** @type {?} */\r\n const meta = (/** @type {?} */ (stateClass[META_KEY]));\r\n result[(/** @type {?} */ (meta.name))] = stateClass;\r\n return result;\r\n }), {});\r\n}\r\n/**\r\n * Given a object relationship graph will return the full path\r\n * for the child items. Example:\r\n *\r\n * const graph = {\r\n * cart: ['saved'],\r\n * saved: ['items'],\r\n * items: []\r\n * };\r\n *\r\n * would return:\r\n *\r\n * const r = {\r\n * cart: 'cart',\r\n * saved: 'cart.saved',\r\n * items: 'cart.saved.items'\r\n * };\r\n *\r\n * @ignore\r\n * @param {?} obj\r\n * @param {?=} newObj\r\n * @return {?}\r\n */\r\nfunction findFullParentPath(obj, newObj = {}) {\r\n /** @type {?} */\r\n const visit = (/**\r\n * @param {?} child\r\n * @param {?} keyToFind\r\n * @return {?}\r\n */\r\n (child, keyToFind) => {\r\n for (const key in child) {\r\n if (child.hasOwnProperty(key) && child[key].indexOf(keyToFind) >= 0) {\r\n /** @type {?} */\r\n const parent = visit(child, key);\r\n return parent !== null ? `${parent}.${key}` : key;\r\n }\r\n }\r\n return null;\r\n });\r\n for (const key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n /** @type {?} */\r\n const parent = visit(obj, key);\r\n newObj[key] = parent ? `${parent}.${key}` : key;\r\n }\r\n }\r\n return newObj;\r\n}\r\n/**\r\n * Given a object graph, it will return the items topologically sorted Example:\r\n *\r\n * const graph = {\r\n * cart: ['saved'],\r\n * saved: ['items'],\r\n * items: []\r\n * };\r\n *\r\n * would return:\r\n *\r\n * const results = [\r\n * 'items',\r\n * 'saved',\r\n * 'cart'\r\n * ];\r\n *\r\n * @ignore\r\n * @param {?} graph\r\n * @return {?}\r\n */\r\nfunction topologicalSort(graph) {\r\n /** @type {?} */\r\n const sorted = [];\r\n /** @type {?} */\r\n const visited = {};\r\n /** @type {?} */\r\n const visit = (/**\r\n * @param {?} name\r\n * @param {?=} ancestors\r\n * @return {?}\r\n */\r\n (name, ancestors = []) => {\r\n if (!Array.isArray(ancestors)) {\r\n ancestors = [];\r\n }\r\n ancestors.push(name);\r\n visited[name] = true;\r\n graph[name].forEach((/**\r\n * @param {?} dep\r\n * @return {?}\r\n */\r\n (dep) => {\r\n if (ancestors.indexOf(dep) >= 0) {\r\n throw new Error(`Circular dependency '${dep}' is required by '${name}': ${ancestors.join(' -> ')}`);\r\n }\r\n if (visited[dep]) {\r\n return;\r\n }\r\n visit(dep, ancestors.slice(0));\r\n }));\r\n if (sorted.indexOf(name) < 0) {\r\n sorted.push(name);\r\n }\r\n });\r\n Object.keys(graph).forEach((/**\r\n * @param {?} k\r\n * @return {?}\r\n */\r\n k => visit(k)));\r\n return sorted.reverse();\r\n}\r\n/**\r\n * Returns if the parameter is a object or not.\r\n *\r\n * @ignore\r\n * @param {?} obj\r\n * @return {?}\r\n */\r\nfunction isObject$1(obj) {\r\n return (typeof obj === 'object' && obj !== null) || typeof obj === 'function';\r\n}\r\n/**\r\n * @template T\r\n * @param {?} mappedStore\r\n * @param {?} diff\r\n * @return {?}\r\n */\r\nfunction getStateDiffChanges(mappedStore, diff) {\r\n /** @type {?} */\r\n const previousValue = getValue(diff.currentAppState, mappedStore.path);\r\n /** @type {?} */\r\n const currentValue = getValue(diff.newAppState, mappedStore.path);\r\n return new NgxsSimpleChange(previousValue, currentValue, !mappedStore.isInitialised);\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @record\r\n * @template T, E\r\n */\r\nfunction ActionCompletion() { }\r\nif (false) {\r\n /** @type {?} */\r\n ActionCompletion.prototype.action;\r\n /** @type {?} */\r\n ActionCompletion.prototype.result;\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will grab actions that have just been dispatched as well as actions that have completed\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofAction(...allowedTypes) {\r\n return ofActionOperator(allowedTypes);\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will ONLY grab actions that have just been dispatched\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofActionDispatched(...allowedTypes) {\r\n return ofActionOperator(allowedTypes, [\"DISPATCHED\" /* Dispatched */]);\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will ONLY grab actions that have just been successfully completed\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofActionSuccessful(...allowedTypes) {\r\n return ofActionOperator(allowedTypes, [\"SUCCESSFUL\" /* Successful */]);\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will ONLY grab actions that have just been canceled\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofActionCanceled(...allowedTypes) {\r\n return ofActionOperator(allowedTypes, [\"CANCELED\" /* Canceled */]);\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will ONLY grab actions that have just been completed\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofActionCompleted(...allowedTypes) {\r\n /** @type {?} */\r\n const allowedStatuses = [\r\n \"SUCCESSFUL\" /* Successful */,\r\n \"CANCELED\" /* Canceled */,\r\n \"ERRORED\" /* Errored */\r\n ];\r\n return ofActionOperator(allowedTypes, allowedStatuses, mapActionResult);\r\n}\r\n/**\r\n * RxJS operator for selecting out specific actions.\r\n *\r\n * This will ONLY grab actions that have just thrown an error\r\n * @param {...?} allowedTypes\r\n * @return {?}\r\n */\r\nfunction ofActionErrored(...allowedTypes) {\r\n return ofActionOperator(allowedTypes, [\"ERRORED\" /* Errored */]);\r\n}\r\n/**\r\n * @param {?} allowedTypes\r\n * @param {?=} statuses\r\n * @param {?=} mapOperator\r\n * @return {?}\r\n */\r\nfunction ofActionOperator(allowedTypes, statuses, \r\n// This actually could've been `OperatorFunction<ActionContext, ActionCompletion | any>`,\r\n// since it maps either to `ctx.action` OR to `ActionCompletion`. But `ActionCompleteion | any`\r\n// defaults to `any`, thus there is no sense from union type.\r\nmapOperator = mapAction) {\r\n /** @type {?} */\r\n const allowedMap = createAllowedActionTypesMap(allowedTypes);\r\n /** @type {?} */\r\n const allowedStatusMap = statuses && createAllowedStatusesMap(statuses);\r\n return (/**\r\n * @param {?} o\r\n * @return {?}\r\n */\r\n function (o) {\r\n return o.pipe(filterStatus(allowedMap, allowedStatusMap), mapOperator());\r\n });\r\n}\r\n/**\r\n * @param {?} allowedTypes\r\n * @param {?=} allowedStatuses\r\n * @return {?}\r\n */\r\nfunction filterStatus(allowedTypes, allowedStatuses) {\r\n return filter((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n (ctx) => {\r\n /** @type {?} */\r\n const actionType = (/** @type {?} */ (getActionTypeFromInstance(ctx.action)));\r\n /** @type {?} */\r\n const typeMatch = allowedTypes[actionType];\r\n /** @type {?} */\r\n const statusMatch = allowedStatuses ? allowedStatuses[ctx.status] : true;\r\n return typeMatch && statusMatch;\r\n }));\r\n}\r\n/**\r\n * @return {?}\r\n */\r\nfunction mapActionResult() {\r\n return map((/**\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\n ({ action, status, error }) => {\r\n return (/** @type {?} */ ({\r\n action,\r\n result: {\r\n successful: \"SUCCESSFUL\" /* Successful */ === status,\r\n canceled: \"CANCELED\" /* Canceled */ === status,\r\n error\r\n }\r\n }));\r\n }));\r\n}\r\n/**\r\n * @template T\r\n * @return {?}\r\n */\r\nfunction mapAction() {\r\n return map((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n (ctx) => (/** @type {?} */ (ctx.action))));\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction FilterMap() { }\r\n/**\r\n * @param {?} types\r\n * @return {?}\r\n */\r\nfunction createAllowedActionTypesMap(types) {\r\n return types.reduce((/**\r\n * @param {?} filterMap\r\n * @param {?} klass\r\n * @return {?}\r\n */\r\n (filterMap, klass) => {\r\n filterMap[(/** @type {?} */ (getActionTypeFromInstance(klass)))] = true;\r\n return filterMap;\r\n }), (/** @type {?} */ ({})));\r\n}\r\n/**\r\n * @param {?} statuses\r\n * @return {?}\r\n */\r\nfunction createAllowedStatusesMap(statuses) {\r\n return statuses.reduce((/**\r\n * @param {?} filterMap\r\n * @param {?} status\r\n * @return {?}\r\n */\r\n (filterMap, status) => {\r\n filterMap[status] = true;\r\n return filterMap;\r\n }), (/** @type {?} */ ({})));\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Returns operator that will run\r\n * `subscribe` outside of the ngxs execution context\r\n * @template T\r\n * @param {?} ngxsExecutionStrategy\r\n * @return {?}\r\n */\r\nfunction leaveNgxs(ngxsExecutionStrategy) {\r\n return (/**\r\n * @param {?} source\r\n * @return {?}\r\n */\r\n (source) => {\r\n return new Observable((/**\r\n * @param {?} sink\r\n * @return {?}\r\n */\r\n (sink) => {\r\n return source.subscribe({\r\n /**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\n next(value) {\r\n ngxsExecutionStrategy.leave((/**\r\n * @return {?}\r\n */\r\n () => sink.next(value)));\r\n },\r\n /**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n error(error) {\r\n ngxsExecutionStrategy.leave((/**\r\n * @return {?}\r\n */\r\n () => sink.error(error)));\r\n },\r\n /**\r\n * @return {?}\r\n */\r\n complete() {\r\n ngxsExecutionStrategy.leave((/**\r\n * @return {?}\r\n */\r\n () => sink.complete()));\r\n }\r\n });\r\n }));\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass InternalNgxsExecutionStrategy {\r\n /**\r\n * @param {?} _executionStrategy\r\n */\r\n constructor(_executionStrategy) {\r\n this._executionStrategy = _executionStrategy;\r\n }\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n enter(func) {\r\n return this._executionStrategy.enter(func);\r\n }\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n leave(func) {\r\n return this._executionStrategy.leave(func);\r\n }\r\n}\nInternalNgxsExecutionStrategy.ɵfac = function InternalNgxsExecutionStrategy_Factory(t) { return new (t || InternalNgxsExecutionStrategy)(ɵngcc0.ɵɵinject(NGXS_EXECUTION_STRATEGY)); };\nInternalNgxsExecutionStrategy.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InternalNgxsExecutionStrategy, factory: InternalNgxsExecutionStrategy.ɵfac });\r\n/** @nocollapse */\r\nInternalNgxsExecutionStrategy.ctorParameters = () => [\r\n { type: undefined, decorators: [{ type: Inject, args: [NGXS_EXECUTION_STRATEGY,] }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InternalNgxsExecutionStrategy, [{\n type: Injectable\n }], function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [NGXS_EXECUTION_STRATEGY]\n }] }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalNgxsExecutionStrategy.prototype._executionStrategy;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @enum {string} */\r\nconst ActionStatus = {\r\n Dispatched: 'DISPATCHED',\r\n Successful: 'SUCCESSFUL',\r\n Canceled: 'CANCELED',\r\n Errored: 'ERRORED',\r\n};\r\n/**\r\n * @record\r\n * @template T\r\n */\r\nfunction ActionContext() { }\r\nif (false) {\r\n /** @type {?} */\r\n ActionContext.prototype.status;\r\n /** @type {?} */\r\n ActionContext.prototype.action;\r\n /** @type {?|undefined} */\r\n ActionContext.prototype.error;\r\n}\r\n/**\r\n * Custom Subject that ensures that subscribers are notified of values in the order that they arrived.\r\n * A standard Subject does not have this guarantee.\r\n * For example, given the following code:\r\n * ```typescript\r\n * const subject = new Subject<string>();\r\n * subject.subscribe(value => {\r\n * if (value === 'start') subject.next('end');\r\n * });\r\n * subject.subscribe(value => { });\r\n * subject.next('start');\r\n * ```\r\n * When `subject` is a standard `Subject<T>` the second subscriber would recieve `end` and then `start`.\r\n * When `subject` is a `OrderedSubject<T>` the second subscriber would recieve `start` and then `end`.\r\n * @template T\r\n */\r\nclass OrderedSubject extends Subject {\r\n constructor() {\r\n super(...arguments);\r\n this._itemQueue = [];\r\n this._busyPushingNext = false;\r\n }\r\n /**\r\n * @param {?=} value\r\n * @return {?}\r\n */\r\n next(value) {\r\n if (this._busyPushingNext) {\r\n this._itemQueue.unshift((/** @type {?} */ (value)));\r\n return;\r\n }\r\n this._busyPushingNext = true;\r\n super.next(value);\r\n while (this._itemQueue.length > 0) {\r\n /** @type {?} */\r\n const nextValue = this._itemQueue.pop();\r\n super.next(nextValue);\r\n }\r\n this._busyPushingNext = false;\r\n }\r\n}\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n OrderedSubject.prototype._itemQueue;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n OrderedSubject.prototype._busyPushingNext;\r\n}\r\n/**\r\n * Internal Action stream that is emitted anytime an action is dispatched.\r\n */\r\nclass InternalActions extends OrderedSubject {\r\n}\nInternalActions.ɵfac = /*@__PURE__*/ function () { let ɵInternalActions_BaseFactory; return function InternalActions_Factory(t) { return (ɵInternalActions_BaseFactory || (ɵInternalActions_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(InternalActions)))(t || InternalActions); }; }();\nInternalActions.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InternalActions, factory: InternalActions.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InternalActions, [{\n type: Injectable\n }], null, null); })();\r\n/**\r\n * Action stream that is emitted anytime an action is dispatched.\r\n *\r\n * You can listen to this in services to react without stores.\r\n */\r\nclass Actions extends Observable {\r\n // This has to be `Observable<ActionContext>` in the v4. Because `InternalActions`\r\n // is a `Subject<ActionContext>`. Leave it as `any` to avoid breaking changes\r\n /**\r\n * @param {?} internalActions$\r\n * @param {?} internalExecutionStrategy\r\n */\r\n constructor(internalActions$, internalExecutionStrategy) {\r\n super((/**\r\n * @param {?} observer\r\n * @return {?}\r\n */\r\n observer => {\r\n /** @type {?} */\r\n const childSubscription = internalActions$\r\n .pipe(leaveNgxs(internalExecutionStrategy))\r\n .subscribe({\r\n next: (/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n ctx => observer.next(ctx)),\r\n error: (/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n error => observer.error(error)),\r\n complete: (/**\r\n * @return {?}\r\n */\r\n () => observer.complete())\r\n });\r\n observer.add(childSubscription);\r\n }));\r\n }\r\n}\nActions.ɵfac = function Actions_Factory(t) { return new (t || Actions)(ɵngcc0.ɵɵinject(InternalActions), ɵngcc0.ɵɵinject(InternalNgxsExecutionStrategy)); };\nActions.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: Actions, factory: Actions.ɵfac });\r\n/** @nocollapse */\r\nActions.ctorParameters = () => [\r\n { type: InternalActions },\r\n { type: InternalNgxsExecutionStrategy }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(Actions, [{\n type: Injectable\n }], function () { return [{ type: InternalActions }, { type: InternalNgxsExecutionStrategy }]; }, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Composes a array of functions from left to right. Example:\r\n *\r\n * compose([fn, final])(state, action);\r\n *\r\n * then the funcs have a signature like:\r\n *\r\n * function fn (state, action, next) {\r\n * console.log('here', state, action, next);\r\n * return next(state, action);\r\n * }\r\n *\r\n * function final (state, action) {\r\n * console.log('here', state, action);\r\n * return state;\r\n * }\r\n *\r\n * the last function should not call `next`.\r\n *\r\n * @ignore\r\n * @type {?}\r\n */\r\nconst compose = (/**\r\n * @param {?} funcs\r\n * @return {?}\r\n */\r\n(funcs) => (/**\r\n * @param {...?} args\r\n * @return {?}\r\n */\r\n(...args) => {\r\n /** @type {?} */\r\n const curr = (/** @type {?} */ (funcs.shift()));\r\n return curr(...args, (/**\r\n * @param {...?} nextArgs\r\n * @return {?}\r\n */\r\n (...nextArgs) => compose(funcs)(...nextArgs)));\r\n}));\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * BehaviorSubject of the entire state.\r\n * @ignore\r\n */\r\nclass StateStream extends BehaviorSubject {\r\n constructor() {\r\n super({});\r\n }\r\n}\nStateStream.ɵfac = function StateStream_Factory(t) { return new (t || StateStream)(); };\nStateStream.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: StateStream, factory: StateStream.ɵfac });\r\n/** @nocollapse */\r\nStateStream.ctorParameters = () => [];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(StateStream, [{\n type: Injectable\n }], function () { return []; }, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass PluginManager {\r\n /**\r\n * @param {?} _parentManager\r\n * @param {?} _pluginHandlers\r\n */\r\n constructor(_parentManager, _pluginHandlers) {\r\n this._parentManager = _parentManager;\r\n this._pluginHandlers = _pluginHandlers;\r\n this.plugins = [];\r\n this.registerHandlers();\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n get rootPlugins() {\r\n return (this._parentManager && this._parentManager.plugins) || this.plugins;\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n registerHandlers() {\r\n /** @type {?} */\r\n const pluginHandlers = this.getPluginHandlers();\r\n this.rootPlugins.push(...pluginHandlers);\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n getPluginHandlers() {\r\n /** @type {?} */\r\n const handlers = this._pluginHandlers || [];\r\n return handlers.map((/**\r\n * @param {?} plugin\r\n * @return {?}\r\n */\r\n (plugin) => (/** @type {?} */ ((plugin.handle ? plugin.handle.bind(plugin) : plugin)))));\r\n }\r\n}\nPluginManager.ɵfac = function PluginManager_Factory(t) { return new (t || PluginManager)(ɵngcc0.ɵɵinject(PluginManager, 12), ɵngcc0.ɵɵinject(NGXS_PLUGINS, 8)); };\nPluginManager.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: PluginManager, factory: PluginManager.ɵfac });\r\n/** @nocollapse */\r\nPluginManager.ctorParameters = () => [\r\n { type: PluginManager, decorators: [{ type: Optional }, { type: SkipSelf }] },\r\n { type: Array, decorators: [{ type: Inject, args: [NGXS_PLUGINS,] }, { type: Optional }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(PluginManager, [{\n type: Injectable\n }], function () { return [{ type: PluginManager, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }, { type: Array, decorators: [{\n type: Inject,\n args: [NGXS_PLUGINS]\n }, {\n type: Optional\n }] }]; }, null); })();\r\nif (false) {\r\n /** @type {?} */\r\n PluginManager.prototype.plugins;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n PluginManager.prototype._parentManager;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n PluginManager.prototype._pluginHandlers;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Internal Action result stream that is emitted when an action is completed.\r\n * This is used as a method of returning the action result to the dispatcher\r\n * for the observable returned by the dispatch(...) call.\r\n * The dispatcher then asynchronously pushes the result from this stream onto the main action stream as a result.\r\n */\r\nclass InternalDispatchedActionResults extends Subject {\r\n}\nInternalDispatchedActionResults.ɵfac = /*@__PURE__*/ function () { let ɵInternalDispatchedActionResults_BaseFactory; return function InternalDispatchedActionResults_Factory(t) { return (ɵInternalDispatchedActionResults_BaseFactory || (ɵInternalDispatchedActionResults_BaseFactory = ɵngcc0.ɵɵgetInheritedFactory(InternalDispatchedActionResults)))(t || InternalDispatchedActionResults); }; }();\nInternalDispatchedActionResults.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InternalDispatchedActionResults, factory: InternalDispatchedActionResults.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InternalDispatchedActionResults, [{\n type: Injectable\n }], null, null); })();\r\nclass InternalDispatcher {\r\n /**\r\n * @param {?} _injector\r\n * @param {?} _actions\r\n * @param {?} _actionResults\r\n * @param {?} _pluginManager\r\n * @param {?} _stateStream\r\n * @param {?} _ngxsExecutionStrategy\r\n */\r\n constructor(_injector, _actions, _actionResults, _pluginManager, _stateStream, _ngxsExecutionStrategy) {\r\n this._injector = _injector;\r\n this._actions = _actions;\r\n this._actionResults = _actionResults;\r\n this._pluginManager = _pluginManager;\r\n this._stateStream = _stateStream;\r\n this._ngxsExecutionStrategy = _ngxsExecutionStrategy;\r\n }\r\n /**\r\n * Dispatches event(s).\r\n * @param {?} actionOrActions\r\n * @return {?}\r\n */\r\n dispatch(actionOrActions) {\r\n /** @type {?} */\r\n const result = this._ngxsExecutionStrategy.enter((/**\r\n * @return {?}\r\n */\r\n () => this.dispatchByEvents(actionOrActions)));\r\n result.subscribe({\r\n error: (/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n error => this._ngxsExecutionStrategy.leave((/**\r\n * @return {?}\r\n */\r\n () => {\r\n try {\r\n // Retrieve lazily to avoid cyclic dependency exception\r\n this._errorHandler = this._errorHandler || this._injector.get(ErrorHandler);\r\n this._errorHandler.handleError(error);\r\n }\r\n catch (_a) { }\r\n })))\r\n });\r\n return result.pipe(leaveNgxs(this._ngxsExecutionStrategy));\r\n }\r\n /**\r\n * @private\r\n * @param {?} actionOrActions\r\n * @return {?}\r\n */\r\n dispatchByEvents(actionOrActions) {\r\n if (Array.isArray(actionOrActions)) {\r\n if (actionOrActions.length === 0)\r\n return of(this._stateStream.getValue());\r\n return forkJoin(actionOrActions.map((/**\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n action => this.dispatchSingle(action))));\r\n }\r\n else {\r\n return this.dispatchSingle(actionOrActions);\r\n }\r\n }\r\n /**\r\n * @private\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n dispatchSingle(action) {\r\n /** @type {?} */\r\n const type = getActionTypeFromInstance(action);\r\n if (!type) {\r\n /** @type {?} */\r\n const error = new Error(`This action doesn't have a type property: ${action.constructor.name}`);\r\n return throwError(error);\r\n }\r\n /** @type {?} */\r\n const prevState = this._stateStream.getValue();\r\n /** @type {?} */\r\n const plugins = this._pluginManager.plugins;\r\n return ((/** @type {?} */ (compose([\r\n ...plugins,\r\n (/**\r\n * @param {?} nextState\r\n * @param {?} nextAction\r\n * @return {?}\r\n */\r\n (nextState, nextAction) => {\r\n if (nextState !== prevState) {\r\n this._stateStream.next(nextState);\r\n }\r\n /** @type {?} */\r\n const actionResult$ = this.getActionResultStream(nextAction);\r\n actionResult$.subscribe((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n ctx => this._actions.next(ctx)));\r\n this._actions.next({ action: nextAction, status: \"DISPATCHED\" /* Dispatched */ });\r\n return this.createDispatchObservable(actionResult$);\r\n })\r\n ])(prevState, action)))).pipe(shareReplay());\r\n }\r\n /**\r\n * @private\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n getActionResultStream(action) {\r\n return this._actionResults.pipe(filter((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n (ctx) => ctx.action === action && ctx.status !== \"DISPATCHED\" /* Dispatched */)), take(1), shareReplay());\r\n }\r\n /**\r\n * @private\r\n * @param {?} actionResult$\r\n * @return {?}\r\n */\r\n createDispatchObservable(actionResult$) {\r\n return actionResult$\r\n .pipe(exhaustMap((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n (ctx) => {\r\n switch (ctx.status) {\r\n case \"SUCCESSFUL\" /* Successful */:\r\n return of(this._stateStream.getValue());\r\n case \"ERRORED\" /* Errored */:\r\n return throwError(ctx.error);\r\n default:\r\n return EMPTY;\r\n }\r\n })))\r\n .pipe(shareReplay());\r\n }\r\n}\nInternalDispatcher.ɵfac = function InternalDispatcher_Factory(t) { return new (t || InternalDispatcher)(ɵngcc0.ɵɵinject(ɵngcc0.Injector), ɵngcc0.ɵɵinject(InternalActions), ɵngcc0.ɵɵinject(InternalDispatchedActionResults), ɵngcc0.ɵɵinject(PluginManager), ɵngcc0.ɵɵinject(StateStream), ɵngcc0.ɵɵinject(InternalNgxsExecutionStrategy)); };\nInternalDispatcher.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InternalDispatcher, factory: InternalDispatcher.ɵfac });\r\n/** @nocollapse */\r\nInternalDispatcher.ctorParameters = () => [\r\n { type: Injector },\r\n { type: InternalActions },\r\n { type: InternalDispatchedActionResults },\r\n { type: PluginManager },\r\n { type: StateStream },\r\n { type: InternalNgxsExecutionStrategy }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InternalDispatcher, [{\n type: Injectable\n }], function () { return [{ type: ɵngcc0.Injector }, { type: InternalActions }, { type: InternalDispatchedActionResults }, { type: PluginManager }, { type: StateStream }, { type: InternalNgxsExecutionStrategy }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._errorHandler;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._injector;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._actions;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._actionResults;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._pluginManager;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._stateStream;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalDispatcher.prototype._ngxsExecutionStrategy;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Object freeze code\r\n * https://github.com/jsdf/deep-freeze\r\n * @type {?}\r\n */\r\nconst deepFreeze = (/**\r\n * @param {?} o\r\n * @return {?}\r\n */\r\n(o) => {\r\n Object.freeze(o);\r\n /** @type {?} */\r\n const oIsFunction = typeof o === 'function';\r\n /** @type {?} */\r\n const hasOwnProp = Object.prototype.hasOwnProperty;\r\n Object.getOwnPropertyNames(o).forEach((/**\r\n * @param {?} prop\r\n * @return {?}\r\n */\r\n function (prop) {\r\n if (hasOwnProp.call(o, prop) &&\r\n (oIsFunction ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments' : true) &&\r\n o[prop] !== null &&\r\n (typeof o[prop] === 'object' || typeof o[prop] === 'function') &&\r\n !Object.isFrozen(o[prop])) {\r\n deepFreeze(o[prop]);\r\n }\r\n }));\r\n return o;\r\n});\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass HostEnvironment {\r\n /**\r\n * @param {?} isDevMode\r\n * @param {?} isTestMode\r\n */\r\n constructor(isDevMode, isTestMode) {\r\n this.isDevMode = isDevMode;\r\n this.isTestMode = isTestMode;\r\n }\r\n}\nHostEnvironment.ɵfac = function HostEnvironment_Factory(t) { return new (t || HostEnvironment)(ɵngcc0.ɵɵinject(NG_DEV_MODE), ɵngcc0.ɵɵinject(NG_TEST_MODE)); };\nHostEnvironment.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: HostEnvironment, factory: HostEnvironment.ɵfac });\r\n/** @nocollapse */\r\nHostEnvironment.ctorParameters = () => [\r\n { type: undefined, decorators: [{ type: Inject, args: [NG_DEV_MODE,] }] },\r\n { type: undefined, decorators: [{ type: Inject, args: [NG_TEST_MODE,] }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(HostEnvironment, [{\n type: Injectable\n }], function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: [NG_DEV_MODE]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [NG_TEST_MODE]\n }] }]; }, null); })();\r\nif (false) {\r\n /** @type {?} */\r\n HostEnvironment.prototype.isDevMode;\r\n /** @type {?} */\r\n HostEnvironment.prototype.isTestMode;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass ConfigValidator {\r\n /**\r\n * @param {?} _host\r\n * @param {?} _config\r\n */\r\n constructor(_host, _config) {\r\n this._host = _host;\r\n this._config = _config;\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n get isIncorrectProduction() {\r\n return !this._host.isDevMode() && this._config.developmentMode;\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n get isIncorrectDevelopment() {\r\n return this._host.isDevMode() && !this._config.developmentMode;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n verifyDevMode() {\r\n if (this._host.isTestMode()) {\r\n return;\r\n }\r\n if (this.isIncorrectProduction) {\r\n console.warn(CONFIG_MESSAGES[VALIDATION_CODE.INCORRECT_PRODUCTION]());\r\n }\r\n else if (this.isIncorrectDevelopment) {\r\n console.warn(CONFIG_MESSAGES[VALIDATION_CODE.INCORRECT_DEVELOPMENT]());\r\n }\r\n }\r\n}\nConfigValidator.ɵfac = function ConfigValidator_Factory(t) { return new (t || ConfigValidator)(ɵngcc0.ɵɵinject(HostEnvironment), ɵngcc0.ɵɵinject(NgxsConfig)); };\nConfigValidator.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: ConfigValidator, factory: ConfigValidator.ɵfac });\r\n/** @nocollapse */\r\nConfigValidator.ctorParameters = () => [\r\n { type: HostEnvironment },\r\n { type: NgxsConfig }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(ConfigValidator, [{\n type: Injectable\n }], function () { return [{ type: HostEnvironment }, { type: NgxsConfig }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n ConfigValidator.prototype._host;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n ConfigValidator.prototype._config;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * State Context factory class\r\n * @ignore\r\n */\r\nclass InternalStateOperations {\r\n /**\r\n * @param {?} _stateStream\r\n * @param {?} _dispatcher\r\n * @param {?} _config\r\n * @param {?} configValidator\r\n */\r\n constructor(_stateStream, _dispatcher, _config, configValidator) {\r\n this._stateStream = _stateStream;\r\n this._dispatcher = _dispatcher;\r\n this._config = _config;\r\n configValidator.verifyDevMode();\r\n }\r\n /**\r\n * Returns the root state operators.\r\n * @return {?}\r\n */\r\n getRootStateOperations() {\r\n /** @type {?} */\r\n const rootStateOperations = {\r\n getState: (/**\r\n * @return {?}\r\n */\r\n () => this._stateStream.getValue()),\r\n setState: (/**\r\n * @param {?} newState\r\n * @return {?}\r\n */\r\n (newState) => this._stateStream.next(newState)),\r\n dispatch: (/**\r\n * @param {?} actionOrActions\r\n * @return {?}\r\n */\r\n (actionOrActions) => this._dispatcher.dispatch(actionOrActions))\r\n };\r\n if (this._config.developmentMode) {\r\n return this.ensureStateAndActionsAreImmutable(rootStateOperations);\r\n }\r\n return rootStateOperations;\r\n }\r\n /**\r\n * @private\r\n * @param {?} root\r\n * @return {?}\r\n */\r\n ensureStateAndActionsAreImmutable(root) {\r\n return {\r\n getState: (/**\r\n * @return {?}\r\n */\r\n () => root.getState()),\r\n setState: (/**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\n value => {\r\n /** @type {?} */\r\n const frozenValue = deepFreeze(value);\r\n return root.setState(frozenValue);\r\n }),\r\n dispatch: (/**\r\n * @param {?} actions\r\n * @return {?}\r\n */\r\n actions => {\r\n return root.dispatch(actions);\r\n })\r\n };\r\n }\r\n /**\r\n * @param {?} results\r\n * @return {?}\r\n */\r\n setStateToTheCurrentWithNew(results) {\r\n /** @type {?} */\r\n const stateOperations = this.getRootStateOperations();\r\n // Get our current stream\r\n /** @type {?} */\r\n const currentState = stateOperations.getState();\r\n // Set the state to the current + new\r\n stateOperations.setState(Object.assign({}, currentState, results.defaults));\r\n }\r\n}\nInternalStateOperations.ɵfac = function InternalStateOperations_Factory(t) { return new (t || InternalStateOperations)(ɵngcc0.ɵɵinject(StateStream), ɵngcc0.ɵɵinject(InternalDispatcher), ɵngcc0.ɵɵinject(NgxsConfig), ɵngcc0.ɵɵinject(ConfigValidator)); };\nInternalStateOperations.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: InternalStateOperations, factory: InternalStateOperations.ɵfac });\r\n/** @nocollapse */\r\nInternalStateOperations.ctorParameters = () => [\r\n { type: StateStream },\r\n { type: InternalDispatcher },\r\n { type: NgxsConfig },\r\n { type: ConfigValidator }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(InternalStateOperations, [{\n type: Injectable\n }], function () { return [{ type: StateStream }, { type: InternalDispatcher }, { type: NgxsConfig }, { type: ConfigValidator }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalStateOperations.prototype._stateStream;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalStateOperations.prototype._dispatcher;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n InternalStateOperations.prototype._config;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @template T\r\n * @param {?} val\r\n * @return {?}\r\n */\r\nfunction simplePatch(val) {\r\n return (/**\r\n * @param {?} existingState\r\n * @return {?}\r\n */\r\n (existingState) => {\r\n if (Array.isArray(val)) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.PATCHING_ARRAY]());\r\n }\r\n else if (typeof val !== 'object') {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.PATCHING_PRIMITIVE]());\r\n }\r\n /** @type {?} */\r\n const newState = Object.assign({}, ((/** @type {?} */ (existingState))));\r\n for (const key in val) {\r\n // deep clone for patch compatibility\r\n // noinspection JSUnfilteredForInLoop (IDE)\r\n newState[key] = ((/** @type {?} */ (val)))[key];\r\n }\r\n return (/** @type {?} */ (newState));\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * State Context factory class\r\n * @ignore\r\n */\r\nclass StateContextFactory {\r\n /**\r\n * @param {?} _internalStateOperations\r\n */\r\n constructor(_internalStateOperations) {\r\n this._internalStateOperations = _internalStateOperations;\r\n }\r\n /**\r\n * Create the state context\r\n * @template T\r\n * @param {?} mappedStore\r\n * @return {?}\r\n */\r\n createStateContext(mappedStore) {\r\n /** @type {?} */\r\n const root = this._internalStateOperations.getRootStateOperations();\r\n /**\r\n * @param {?} currentAppState\r\n * @return {?}\r\n */\r\n function getState(currentAppState) {\r\n return getValue(currentAppState, mappedStore.path);\r\n }\r\n /**\r\n * @param {?} currentAppState\r\n * @param {?} newValue\r\n * @return {?}\r\n */\r\n function setStateValue(currentAppState, newValue) {\r\n /** @type {?} */\r\n const newAppState = setValue(currentAppState, mappedStore.path, newValue);\r\n /** @type {?} */\r\n const instance = mappedStore.instance;\r\n if (instance.ngxsOnChanges) {\r\n /** @type {?} */\r\n const change = getStateDiffChanges(mappedStore, {\r\n currentAppState,\r\n newAppState\r\n });\r\n instance.ngxsOnChanges(change);\r\n }\r\n root.setState(newAppState);\r\n return newAppState;\r\n // In doing this refactoring I noticed that there is a 'bug' where the\r\n // application state is returned instead of this state slice.\r\n // This has worked this way since the beginning see:\r\n // https://github.com/ngxs/store/blame/324c667b4b7debd8eb979006c67ca0ae347d88cd/src/state-factory.ts\r\n // This needs to be fixed, but is a 'breaking' change.\r\n // I will do this fix in a subsequent PR and we can decide how to handle it.\r\n }\r\n /**\r\n * @param {?} currentAppState\r\n * @param {?} stateOperator\r\n * @return {?}\r\n */\r\n function setStateFromOperator(currentAppState, stateOperator) {\r\n /** @type {?} */\r\n const local = getState(currentAppState);\r\n /** @type {?} */\r\n const newValue = stateOperator(local);\r\n return setStateValue(currentAppState, newValue);\r\n }\r\n /**\r\n * @param {?} value\r\n * @return {?}\r\n */\r\n function isStateOperator(value) {\r\n return typeof value === 'function';\r\n }\r\n return {\r\n /**\r\n * @return {?}\r\n */\r\n getState() {\r\n /** @type {?} */\r\n const currentAppState = root.getState();\r\n return getState(currentAppState);\r\n },\r\n /**\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n patchState(val) {\r\n /** @type {?} */\r\n const currentAppState = root.getState();\r\n /** @type {?} */\r\n const patchOperator = simplePatch(val);\r\n return setStateFromOperator(currentAppState, patchOperator);\r\n },\r\n /**\r\n * @param {?} val\r\n * @return {?}\r\n */\r\n setState(val) {\r\n /** @type {?} */\r\n const currentAppState = root.getState();\r\n return isStateOperator(val)\r\n ? setStateFromOperator(currentAppState, val)\r\n : setStateValue(currentAppState, val);\r\n },\r\n /**\r\n * @param {?} actions\r\n * @return {?}\r\n */\r\n dispatch(actions) {\r\n return root.dispatch(actions);\r\n }\r\n };\r\n }\r\n}\nStateContextFactory.ɵfac = function StateContextFactory_Factory(t) { return new (t || StateContextFactory)(ɵngcc0.ɵɵinject(InternalStateOperations)); };\nStateContextFactory.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: StateContextFactory, factory: StateContextFactory.ɵfac });\r\n/** @nocollapse */\r\nStateContextFactory.ctorParameters = () => [\r\n { type: InternalStateOperations }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(StateContextFactory, [{\n type: Injectable\n }], function () { return [{ type: InternalStateOperations }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateContextFactory.prototype._internalStateOperations;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @abstract\r\n */\r\nclass StoreValidators {\r\n /**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n static stateNameErrorMessage(name) {\r\n return CONFIG_MESSAGES[VALIDATION_CODE.STATE_NAME](name);\r\n }\r\n /**\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n static checkCorrectStateName(name) {\r\n if (!name) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.STATE_NAME_PROPERTY]());\r\n }\r\n if (!this.stateNameRegex.test(name)) {\r\n throw new Error(this.stateNameErrorMessage(name));\r\n }\r\n }\r\n /**\r\n * @param {?} state\r\n * @param {?} statesByName\r\n * @return {?}\r\n */\r\n static checkStateNameIsUnique(state, statesByName) {\r\n /** @type {?} */\r\n const meta = this.getValidStateMeta(state);\r\n /** @type {?} */\r\n const stateName = (/** @type {?} */ ((/** @type {?} */ (meta)).name));\r\n /** @type {?} */\r\n const existingState = statesByName[stateName];\r\n if (existingState && existingState !== state) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.STATE_UNIQUE](stateName, state.name, existingState.name));\r\n }\r\n return stateName;\r\n }\r\n /**\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n static getValidStateMeta(state) {\r\n /** @type {?} */\r\n const meta = getStoreMetadata(state);\r\n if (!meta) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.STATE_DECORATOR]());\r\n }\r\n return meta;\r\n }\r\n}\r\nStoreValidators.stateNameRegex = new RegExp('^[a-zA-Z0-9_]+$');\r\nif (false) {\r\n /** @type {?} */\r\n StoreValidators.stateNameRegex;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * State factory class\r\n * @ignore\r\n */\r\nclass StateFactory {\r\n /**\r\n * @param {?} _injector\r\n * @param {?} _config\r\n * @param {?} _parentFactory\r\n * @param {?} _actions\r\n * @param {?} _actionResults\r\n * @param {?} _stateContextFactory\r\n * @param {?} _initialState\r\n */\r\n constructor(_injector, _config, _parentFactory, _actions, _actionResults, _stateContextFactory, _initialState) {\r\n this._injector = _injector;\r\n this._config = _config;\r\n this._parentFactory = _parentFactory;\r\n this._actions = _actions;\r\n this._actionResults = _actionResults;\r\n this._stateContextFactory = _stateContextFactory;\r\n this._initialState = _initialState;\r\n this._actionsSubscription = null;\r\n this._states = [];\r\n this._statesByName = {};\r\n this._statePaths = {};\r\n this.getRuntimeSelectorContext = memoize((/**\r\n * @return {?}\r\n */\r\n () => {\r\n /** @type {?} */\r\n const stateFactory = this;\r\n /**\r\n * @param {?} key\r\n * @return {?}\r\n */\r\n function resolveGetter(key) {\r\n /** @type {?} */\r\n const path = stateFactory.statePaths[key];\r\n return path ? propGetter(path.split('.'), stateFactory._config) : null;\r\n }\r\n /** @type {?} */\r\n const context = this._parentFactory\r\n ? this._parentFactory.getRuntimeSelectorContext()\r\n : {\r\n /**\r\n * @param {?} key\r\n * @return {?}\r\n */\r\n getStateGetter(key) {\r\n /** @type {?} */\r\n let getter = resolveGetter(key);\r\n if (getter) {\r\n return getter;\r\n }\r\n return (/**\r\n * @param {...?} args\r\n * @return {?}\r\n */\r\n (...args) => {\r\n // Late loaded getter\r\n if (!getter) {\r\n getter = resolveGetter(key);\r\n }\r\n return getter ? getter(...args) : undefined;\r\n });\r\n },\r\n /**\r\n * @param {?=} localOptions\r\n * @return {?}\r\n */\r\n getSelectorOptions(localOptions) {\r\n /** @type {?} */\r\n const globalSelectorOptions = stateFactory._config.selectorOptions;\r\n return Object.assign({}, globalSelectorOptions, (localOptions || {}));\r\n }\r\n };\r\n return context;\r\n }));\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n get states() {\r\n return this._parentFactory ? this._parentFactory.states : this._states;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n get statesByName() {\r\n return this._parentFactory ? this._parentFactory.statesByName : this._statesByName;\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n get statePaths() {\r\n return this._parentFactory ? this._parentFactory.statePaths : this._statePaths;\r\n }\r\n /**\r\n * @private\r\n * @param {?} defaults\r\n * @return {?}\r\n */\r\n static cloneDefaults(defaults) {\r\n /** @type {?} */\r\n let value = {};\r\n if (Array.isArray(defaults)) {\r\n value = defaults.slice();\r\n }\r\n else if (isObject$1(defaults)) {\r\n value = Object.assign({}, defaults);\r\n }\r\n else if (defaults === undefined) {\r\n value = {};\r\n }\r\n else {\r\n value = defaults;\r\n }\r\n return value;\r\n }\r\n /**\r\n * @private\r\n * @param {?} stateClasses\r\n * @return {?}\r\n */\r\n static checkStatesAreValid(stateClasses) {\r\n stateClasses.forEach(StoreValidators.getValidStateMeta);\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n ngOnDestroy() {\r\n // I'm using non-null assertion here since `_actionsSubscrition` will\r\n // be 100% defined. This is because `ngOnDestroy()` cannot be invoked\r\n // on the `StateFactory` until its initialized :) An it's initialized\r\n // for the first time along with the `NgxsRootModule`.\r\n (/** @type {?} */ (this._actionsSubscription)).unsubscribe();\r\n }\r\n /**\r\n * Add a new state to the global defs.\r\n * @param {?} stateClasses\r\n * @return {?}\r\n */\r\n add(stateClasses) {\r\n StateFactory.checkStatesAreValid(stateClasses);\r\n const { newStates } = this.addToStatesMap(stateClasses);\r\n if (!newStates.length)\r\n return [];\r\n /** @type {?} */\r\n const stateGraph = buildGraph(newStates);\r\n /** @type {?} */\r\n const sortedStates = topologicalSort(stateGraph);\r\n /** @type {?} */\r\n const paths = findFullParentPath(stateGraph);\r\n /** @type {?} */\r\n const nameGraph = nameToState(newStates);\r\n /** @type {?} */\r\n const bootstrappedStores = [];\r\n for (const name of sortedStates) {\r\n /** @type {?} */\r\n const stateClass = nameGraph[name];\r\n /** @type {?} */\r\n const path = paths[name];\r\n /** @type {?} */\r\n const meta = (/** @type {?} */ (stateClass[META_KEY]));\r\n this.addRuntimeInfoToMeta(meta, path);\r\n /** @type {?} */\r\n const stateMap = {\r\n name,\r\n path,\r\n isInitialised: false,\r\n actions: meta.actions,\r\n instance: this._injector.get(stateClass),\r\n defaults: StateFactory.cloneDefaults(meta.defaults)\r\n };\r\n // ensure our store hasn't already been added\r\n // but don't throw since it could be lazy\r\n // loaded from different paths\r\n if (!this.hasBeenMountedAndBootstrapped(name, path)) {\r\n bootstrappedStores.push(stateMap);\r\n }\r\n this.states.push(stateMap);\r\n }\r\n return bootstrappedStores;\r\n }\r\n /**\r\n * Add a set of states to the store and return the defaults\r\n * @param {?} stateClasses\r\n * @return {?}\r\n */\r\n addAndReturnDefaults(stateClasses) {\r\n /** @type {?} */\r\n const classes = stateClasses || [];\r\n /** @type {?} */\r\n const mappedStores = this.add(classes);\r\n /** @type {?} */\r\n const defaults = mappedStores.reduce((/**\r\n * @param {?} result\r\n * @param {?} mappedStore\r\n * @return {?}\r\n */\r\n (result, mappedStore) => setValue(result, mappedStore.path, mappedStore.defaults)), {});\r\n return { defaults, states: mappedStores };\r\n }\r\n /**\r\n * Bind the actions to the handlers\r\n * @return {?}\r\n */\r\n connectActionHandlers() {\r\n if (this._actionsSubscription !== null)\r\n return;\r\n this._actionsSubscription = this._actions\r\n .pipe(filter((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n (ctx) => ctx.status === \"DISPATCHED\" /* Dispatched */)), mergeMap((/**\r\n * @param {?} __0\r\n * @return {?}\r\n */\r\n ({ action }) => this.invokeActions(this._actions, (/** @type {?} */ (action))).pipe(map((/**\r\n * @return {?}\r\n */\r\n () => (/** @type {?} */ ({ action, status: \"SUCCESSFUL\" /* Successful */ })))), defaultIfEmpty((/** @type {?} */ ({ action, status: \"CANCELED\" /* Canceled */ }))), catchError((/**\r\n * @param {?} error\r\n * @return {?}\r\n */\r\n error => of((/** @type {?} */ ({ action, status: \"ERRORED\" /* Errored */, error })))))))))\r\n .subscribe((/**\r\n * @param {?} ctx\r\n * @return {?}\r\n */\r\n ctx => this._actionResults.next(ctx)));\r\n }\r\n /**\r\n * Invoke actions on the states.\r\n * @param {?} actions$\r\n * @param {?} action\r\n * @return {?}\r\n */\r\n invokeActions(actions$, action) {\r\n /** @type {?} */\r\n const type = (/** @type {?} */ (getActionTypeFromInstance(action)));\r\n /** @type {?} */\r\n const results = [];\r\n for (const metadata of this.states) {\r\n /** @type {?} */\r\n const actionMetas = metadata.actions[type];\r\n if (actionMetas) {\r\n for (const actionMeta of actionMetas) {\r\n /** @type {?} */\r\n const stateContext = this._stateContextFactory.createStateContext(metadata);\r\n try {\r\n /** @type {?} */\r\n let result = metadata.instance[actionMeta.fn](stateContext, action);\r\n if (result instanceof Promise) {\r\n result = from(result);\r\n }\r\n if (result instanceof Observable) {\r\n // If this observable has been completed w/o emitting\r\n // any value then we wouldn't want to complete the whole chain\r\n // of actions. Since if any observable completes then\r\n // action will be canceled.\r\n // For instance if any action handler would've had such statement:\r\n // `handler(ctx) { return EMPTY; }`\r\n // then the action will be canceled.\r\n // See https://github.com/ngxs/store/issues/1568\r\n result = result.pipe(defaultIfEmpty({}));\r\n if (actionMeta.options.cancelUncompleted) {\r\n // todo: ofActionDispatched should be used with action class\r\n result = result.pipe(takeUntil(actions$.pipe(ofActionDispatched((/** @type {?} */ (action))))));\r\n }\r\n }\r\n else {\r\n result = of({}).pipe(shareReplay());\r\n }\r\n results.push(result);\r\n }\r\n catch (e) {\r\n results.push(throwError(e));\r\n }\r\n }\r\n }\r\n }\r\n if (!results.length) {\r\n results.push(of({}));\r\n }\r\n return forkJoin(results);\r\n }\r\n /**\r\n * @private\r\n * @param {?} stateClasses\r\n * @return {?}\r\n */\r\n addToStatesMap(stateClasses) {\r\n /** @type {?} */\r\n const newStates = [];\r\n /** @type {?} */\r\n const statesMap = this.statesByName;\r\n for (const stateClass of stateClasses) {\r\n /** @type {?} */\r\n const stateName = StoreValidators.checkStateNameIsUnique(stateClass, statesMap);\r\n /** @type {?} */\r\n const unmountedState = !statesMap[stateName];\r\n if (unmountedState) {\r\n newStates.push(stateClass);\r\n statesMap[stateName] = stateClass;\r\n }\r\n }\r\n return { newStates };\r\n }\r\n /**\r\n * @private\r\n * @param {?} meta\r\n * @param {?} path\r\n * @return {?}\r\n */\r\n addRuntimeInfoToMeta(meta, path) {\r\n this.statePaths[(/** @type {?} */ (meta.name))] = path;\r\n // TODO: v4 - we plan to get rid of the path property because it is non-deterministic\r\n // we can do this when we get rid of the incorrectly exposed getStoreMetadata\r\n // We will need to come up with an alternative in v4 because this is used by many plugins\r\n meta.path = path;\r\n }\r\n /**\r\n * \\@description\r\n * the method checks if the state has already been added to the tree\r\n * and completed the life cycle\r\n * @private\r\n * @param {?} name\r\n * @param {?} path\r\n * @return {?}\r\n */\r\n hasBeenMountedAndBootstrapped(name, path) {\r\n /** @type {?} */\r\n const valueIsBootstrappedInInitialState = getValue(this._initialState, path) !== undefined;\r\n return this.statesByName[name] && valueIsBootstrappedInInitialState;\r\n }\r\n}\nStateFactory.ɵfac = function StateFactory_Factory(t) { return new (t || StateFactory)(ɵngcc0.ɵɵinject(ɵngcc0.Injector), ɵngcc0.ɵɵinject(NgxsConfig), ɵngcc0.ɵɵinject(StateFactory, 12), ɵngcc0.ɵɵinject(InternalActions), ɵngcc0.ɵɵinject(InternalDispatchedActionResults), ɵngcc0.ɵɵinject(StateContextFactory), ɵngcc0.ɵɵinject(INITIAL_STATE_TOKEN, 8)); };\nStateFactory.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: StateFactory, factory: StateFactory.ɵfac });\r\n/** @nocollapse */\r\nStateFactory.ctorParameters = () => [\r\n { type: Injector },\r\n { type: NgxsConfig },\r\n { type: StateFactory, decorators: [{ type: Optional }, { type: SkipSelf }] },\r\n { type: InternalActions },\r\n { type: InternalDispatchedActionResults },\r\n { type: StateContextFactory },\r\n { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [INITIAL_STATE_TOKEN,] }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(StateFactory, [{\n type: Injectable\n }], function () { return [{ type: ɵngcc0.Injector }, { type: NgxsConfig }, { type: StateFactory, decorators: [{\n type: Optional\n }, {\n type: SkipSelf\n }] }, { type: InternalActions }, { type: InternalDispatchedActionResults }, { type: StateContextFactory }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [INITIAL_STATE_TOKEN]\n }] }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._actionsSubscription;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._states;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._statesByName;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._statePaths;\r\n /** @type {?} */\r\n StateFactory.prototype.getRuntimeSelectorContext;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._injector;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._config;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._parentFactory;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._actions;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._actionResults;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._stateContextFactory;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateFactory.prototype._initialState;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass LifecycleStateManager {\r\n /**\r\n * @param {?} internalStateOperations\r\n * @param {?} stateContextFactory\r\n * @param {?} bootstrapper\r\n */\r\n constructor(internalStateOperations, stateContextFactory, bootstrapper) {\r\n this.internalStateOperations = internalStateOperations;\r\n this.stateContextFactory = stateContextFactory;\r\n this.bootstrapper = bootstrapper;\r\n }\r\n /**\r\n * @template T\r\n * @param {?} action\r\n * @param {?} results\r\n * @return {?}\r\n */\r\n ngxsBootstrap(action, results) {\r\n this.internalStateOperations\r\n .getRootStateOperations()\r\n .dispatch(action)\r\n .pipe(filter((/**\r\n * @return {?}\r\n */\r\n () => !!results)), tap((/**\r\n * @return {?}\r\n */\r\n () => this.invokeInit((/** @type {?} */ (results)).states))), mergeMap((/**\r\n * @return {?}\r\n */\r\n () => this.bootstrapper.appBootstrapped$)), filter((/**\r\n * @param {?} appBootstrapped\r\n * @return {?}\r\n */\r\n appBootstrapped => !!appBootstrapped)))\r\n .subscribe((/**\r\n * @return {?}\r\n */\r\n () => this.invokeBootstrap((/** @type {?} */ (results)).states)));\r\n }\r\n /**\r\n * Invoke the init function on the states.\r\n * @param {?} mappedStores\r\n * @return {?}\r\n */\r\n invokeInit(mappedStores) {\r\n for (const mappedStore of mappedStores) {\r\n /** @type {?} */\r\n const instance = mappedStore.instance;\r\n if (instance.ngxsOnChanges) {\r\n /** @type {?} */\r\n const currentAppState = {};\r\n /** @type {?} */\r\n const newAppState = this.internalStateOperations\r\n .getRootStateOperations()\r\n .getState();\r\n /** @type {?} */\r\n const firstDiffChange = getStateDiffChanges(mappedStore, {\r\n currentAppState,\r\n newAppState\r\n });\r\n instance.ngxsOnChanges(firstDiffChange);\r\n }\r\n if (instance.ngxsOnInit) {\r\n instance.ngxsOnInit(this.getStateContext(mappedStore));\r\n }\r\n mappedStore.isInitialised = true;\r\n }\r\n }\r\n /**\r\n * Invoke the bootstrap function on the states.\r\n * @param {?} mappedStores\r\n * @return {?}\r\n */\r\n invokeBootstrap(mappedStores) {\r\n for (const mappedStore of mappedStores) {\r\n /** @type {?} */\r\n const instance = mappedStore.instance;\r\n if (instance.ngxsAfterBootstrap) {\r\n instance.ngxsAfterBootstrap(this.getStateContext(mappedStore));\r\n }\r\n }\r\n }\r\n /**\r\n * @private\r\n * @param {?} mappedStore\r\n * @return {?}\r\n */\r\n getStateContext(mappedStore) {\r\n return this.stateContextFactory.createStateContext(mappedStore);\r\n }\r\n}\nLifecycleStateManager.ɵfac = function LifecycleStateManager_Factory(t) { return new (t || LifecycleStateManager)(ɵngcc0.ɵɵinject(InternalStateOperations), ɵngcc0.ɵɵinject(StateContextFactory), ɵngcc0.ɵɵinject(ɵngcc1.NgxsBootstrapper)); };\nLifecycleStateManager.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: LifecycleStateManager, factory: LifecycleStateManager.ɵfac });\r\n/** @nocollapse */\r\nLifecycleStateManager.ctorParameters = () => [\r\n { type: InternalStateOperations },\r\n { type: StateContextFactory },\r\n { type: NgxsBootstrapper }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(LifecycleStateManager, [{\n type: Injectable\n }], function () { return [{ type: InternalStateOperations }, { type: StateContextFactory }, { type: ɵngcc1.NgxsBootstrapper }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n LifecycleStateManager.prototype.internalStateOperations;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n LifecycleStateManager.prototype.stateContextFactory;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n LifecycleStateManager.prototype.bootstrapper;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @type {?} */\r\nconst SELECTOR_OPTIONS_META_KEY = 'NGXS_SELECTOR_OPTIONS_META';\r\n/** @type {?} */\r\nconst selectorOptionsMetaAccessor = {\r\n getOptions: (/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\n (target) => {\r\n return (target && ((/** @type {?} */ (target)))[SELECTOR_OPTIONS_META_KEY]) || {};\r\n }),\r\n defineOptions: (/**\r\n * @param {?} target\r\n * @param {?} options\r\n * @return {?}\r\n */\r\n (target, options) => {\r\n if (!target)\r\n return;\r\n ((/** @type {?} */ (target)))[SELECTOR_OPTIONS_META_KEY] = options;\r\n })\r\n};\r\n/**\r\n * @record\r\n */\r\nfunction CreationMetadata() { }\r\nif (false) {\r\n /** @type {?} */\r\n CreationMetadata.prototype.containerClass;\r\n /** @type {?} */\r\n CreationMetadata.prototype.selectorName;\r\n /** @type {?|undefined} */\r\n CreationMetadata.prototype.getSelectorOptions;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction RuntimeSelectorInfo() { }\r\nif (false) {\r\n /** @type {?} */\r\n RuntimeSelectorInfo.prototype.selectorOptions;\r\n /** @type {?} */\r\n RuntimeSelectorInfo.prototype.argumentSelectorFunctions;\r\n}\r\n/**\r\n * Function for creating a selector\r\n * @template T\r\n * @param {?} selectors The selectors to use to create the arguments of this function\r\n * @param {?} originalFn The original function being made into a selector\r\n * @param {?=} creationMetadata\r\n * @return {?}\r\n */\r\nfunction createSelector(selectors, originalFn, creationMetadata) {\r\n /** @type {?} */\r\n const containerClass = creationMetadata && creationMetadata.containerClass;\r\n /** @type {?} */\r\n const wrappedFn = (/** @type {?} */ ((/**\r\n * @param {...?} args\r\n * @return {?}\r\n */\r\n function wrappedSelectorFn(...args) {\r\n /** @type {?} */\r\n const returnValue = originalFn.apply(containerClass, args);\r\n if (returnValue instanceof Function) {\r\n /** @type {?} */\r\n const innerMemoizedFn = memoize.apply(null, [returnValue]);\r\n return innerMemoizedFn;\r\n }\r\n return returnValue;\r\n })));\r\n /** @type {?} */\r\n const memoizedFn = memoize(wrappedFn);\r\n Object.setPrototypeOf(memoizedFn, originalFn);\r\n /** @type {?} */\r\n const selectorMetaData = setupSelectorMetadata(originalFn, creationMetadata);\r\n /** @type {?} */\r\n const makeRootSelector = (/**\r\n * @param {?} context\r\n * @return {?}\r\n */\r\n (context) => {\r\n const { argumentSelectorFunctions, selectorOptions } = getRuntimeSelectorInfo(context, selectorMetaData, selectors);\r\n return (/**\r\n * @param {?} rootState\r\n * @return {?}\r\n */\r\n function selectFromRoot(rootState) {\r\n // Determine arguments from the app state using the selectors\r\n /** @type {?} */\r\n const results = argumentSelectorFunctions.map((/**\r\n * @param {?} argFn\r\n * @return {?}\r\n */\r\n argFn => argFn(rootState)));\r\n // if the lambda tries to access a something on the\r\n // state that doesn't exist, it will throw a TypeError.\r\n // since this is quite usual behaviour, we simply return undefined if so.\r\n try {\r\n return memoizedFn(...results);\r\n }\r\n catch (ex) {\r\n if (ex instanceof TypeError && selectorOptions.suppressErrors) {\r\n return undefined;\r\n }\r\n throw ex;\r\n }\r\n });\r\n });\r\n selectorMetaData.makeRootSelector = makeRootSelector;\r\n return memoizedFn;\r\n}\r\n/**\r\n * @template T\r\n * @param {?} originalFn\r\n * @param {?} creationMetadata\r\n * @return {?}\r\n */\r\nfunction setupSelectorMetadata(originalFn, creationMetadata) {\r\n /** @type {?} */\r\n const selectorMetaData = ensureSelectorMetadata(originalFn);\r\n selectorMetaData.originalFn = originalFn;\r\n /** @type {?} */\r\n let getExplicitSelectorOptions = (/**\r\n * @return {?}\r\n */\r\n () => ({}));\r\n if (creationMetadata) {\r\n selectorMetaData.containerClass = creationMetadata.containerClass;\r\n selectorMetaData.selectorName = creationMetadata.selectorName;\r\n getExplicitSelectorOptions =\r\n creationMetadata.getSelectorOptions || getExplicitSelectorOptions;\r\n }\r\n /** @type {?} */\r\n const selectorMetaDataClone = Object.assign({}, selectorMetaData);\r\n selectorMetaData.getSelectorOptions = (/**\r\n * @return {?}\r\n */\r\n () => getLocalSelectorOptions(selectorMetaDataClone, getExplicitSelectorOptions()));\r\n return selectorMetaData;\r\n}\r\n/**\r\n * @param {?} context\r\n * @param {?} selectorMetaData\r\n * @param {?=} selectors\r\n * @return {?}\r\n */\r\nfunction getRuntimeSelectorInfo(context, selectorMetaData, selectors = []) {\r\n /** @type {?} */\r\n const localSelectorOptions = selectorMetaData.getSelectorOptions();\r\n /** @type {?} */\r\n const selectorOptions = context.getSelectorOptions(localSelectorOptions);\r\n /** @type {?} */\r\n const selectorsToApply = getSelectorsToApply(selectors, selectorOptions, selectorMetaData.containerClass);\r\n /** @type {?} */\r\n const argumentSelectorFunctions = selectorsToApply.map((/**\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\n selector => {\r\n /** @type {?} */\r\n const factory = getRootSelectorFactory(selector);\r\n return factory(context);\r\n }));\r\n return {\r\n selectorOptions,\r\n argumentSelectorFunctions\r\n };\r\n}\r\n/**\r\n * @param {?} selectorMetaData\r\n * @param {?} explicitOptions\r\n * @return {?}\r\n */\r\nfunction getLocalSelectorOptions(selectorMetaData, explicitOptions) {\r\n return Object.assign({}, (selectorOptionsMetaAccessor.getOptions(selectorMetaData.containerClass) || {}), (selectorOptionsMetaAccessor.getOptions(selectorMetaData.originalFn) || {}), (selectorMetaData.getSelectorOptions() || {}), explicitOptions);\r\n}\r\n/**\r\n * @param {?=} selectors\r\n * @param {?=} selectorOptions\r\n * @param {?=} containerClass\r\n * @return {?}\r\n */\r\nfunction getSelectorsToApply(selectors = [], selectorOptions, containerClass) {\r\n /** @type {?} */\r\n const selectorsToApply = [];\r\n /** @type {?} */\r\n const canInjectContainerState = selectors.length === 0 || selectorOptions.injectContainerState;\r\n if (containerClass && canInjectContainerState) {\r\n // If we are on a state class, add it as the first selector parameter\r\n /** @type {?} */\r\n const metadata = getStoreMetadata(containerClass);\r\n if (metadata) {\r\n selectorsToApply.push(containerClass);\r\n }\r\n }\r\n if (selectors) {\r\n selectorsToApply.push(...selectors);\r\n }\r\n return selectorsToApply;\r\n}\r\n/**\r\n * This function gets the factory function to create the selector to get the selected slice from the app state\r\n * @ignore\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\nfunction getRootSelectorFactory(selector) {\r\n /** @type {?} */\r\n const metadata = getSelectorMetadata(selector) || getStoreMetadata(selector);\r\n return (metadata && metadata.makeRootSelector) || ((/**\r\n * @return {?}\r\n */\r\n () => selector));\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass Store {\r\n /**\r\n * @param {?} _stateStream\r\n * @param {?} _internalStateOperations\r\n * @param {?} _config\r\n * @param {?} _internalExecutionStrategy\r\n * @param {?} _stateFactory\r\n * @param {?} initialStateValue\r\n */\r\n constructor(_stateStream, _internalStateOperations, _config, _internalExecutionStrategy, _stateFactory, initialStateValue) {\r\n this._stateStream = _stateStream;\r\n this._internalStateOperations = _internalStateOperations;\r\n this._config = _config;\r\n this._internalExecutionStrategy = _internalExecutionStrategy;\r\n this._stateFactory = _stateFactory;\r\n this.initStateStream(initialStateValue);\r\n }\r\n /**\r\n * Dispatches event(s).\r\n * @param {?} actionOrActions\r\n * @return {?}\r\n */\r\n dispatch(actionOrActions) {\r\n return this._internalStateOperations.getRootStateOperations().dispatch(actionOrActions);\r\n }\r\n /**\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\n select(selector) {\r\n /** @type {?} */\r\n const selectorFn = this.getStoreBoundSelectorFn(selector);\r\n return this._stateStream.pipe(map(selectorFn), catchError((/**\r\n * @param {?} err\r\n * @return {?}\r\n */\r\n (err) => {\r\n // if error is TypeError we swallow it to prevent usual errors with property access\r\n const { suppressErrors } = this._config.selectorOptions;\r\n if (err instanceof TypeError && suppressErrors) {\r\n return of(undefined);\r\n }\r\n // rethrow other errors\r\n return throwError(err);\r\n })), distinctUntilChanged(), leaveNgxs(this._internalExecutionStrategy));\r\n }\r\n /**\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\n selectOnce(selector) {\r\n return this.select(selector).pipe(take(1));\r\n }\r\n /**\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\n selectSnapshot(selector) {\r\n /** @type {?} */\r\n const selectorFn = this.getStoreBoundSelectorFn(selector);\r\n return selectorFn(this._stateStream.getValue());\r\n }\r\n /**\r\n * Allow the user to subscribe to the root of the state\r\n * @param {?=} fn\r\n * @return {?}\r\n */\r\n subscribe(fn) {\r\n return this._stateStream.pipe(leaveNgxs(this._internalExecutionStrategy)).subscribe(fn);\r\n }\r\n /**\r\n * Return the raw value of the state.\r\n * @return {?}\r\n */\r\n snapshot() {\r\n return this._internalStateOperations.getRootStateOperations().getState();\r\n }\r\n /**\r\n * Reset the state to a specific point in time. This method is useful\r\n * for plugin's who need to modify the state directly or unit testing.\r\n * @param {?} state\r\n * @return {?}\r\n */\r\n reset(state) {\r\n return this._internalStateOperations.getRootStateOperations().setState(state);\r\n }\r\n /**\r\n * @private\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\n getStoreBoundSelectorFn(selector) {\r\n /** @type {?} */\r\n const makeSelectorFn = getRootSelectorFactory(selector);\r\n /** @type {?} */\r\n const runtimeContext = this._stateFactory.getRuntimeSelectorContext();\r\n return makeSelectorFn(runtimeContext);\r\n }\r\n /**\r\n * @private\r\n * @param {?} initialStateValue\r\n * @return {?}\r\n */\r\n initStateStream(initialStateValue) {\r\n /** @type {?} */\r\n const value = this._stateStream.value;\r\n /** @type {?} */\r\n const storeIsEmpty = !value || Object.keys(value).length === 0;\r\n if (storeIsEmpty) {\r\n /** @type {?} */\r\n const defaultStateNotEmpty = Object.keys(this._config.defaultsState).length > 0;\r\n /** @type {?} */\r\n const storeValues = defaultStateNotEmpty\r\n ? Object.assign({}, this._config.defaultsState, initialStateValue) : initialStateValue;\r\n this._stateStream.next(storeValues);\r\n }\r\n }\r\n}\nStore.ɵfac = function Store_Factory(t) { return new (t || Store)(ɵngcc0.ɵɵinject(StateStream), ɵngcc0.ɵɵinject(InternalStateOperations), ɵngcc0.ɵɵinject(NgxsConfig), ɵngcc0.ɵɵinject(InternalNgxsExecutionStrategy), ɵngcc0.ɵɵinject(StateFactory), ɵngcc0.ɵɵinject(INITIAL_STATE_TOKEN, 8)); };\nStore.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: Store, factory: Store.ɵfac });\r\n/** @nocollapse */\r\nStore.ctorParameters = () => [\r\n { type: StateStream },\r\n { type: InternalStateOperations },\r\n { type: NgxsConfig },\r\n { type: InternalNgxsExecutionStrategy },\r\n { type: StateFactory },\r\n { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [INITIAL_STATE_TOKEN,] }] }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(Store, [{\n type: Injectable\n }], function () { return [{ type: StateStream }, { type: InternalStateOperations }, { type: NgxsConfig }, { type: InternalNgxsExecutionStrategy }, { type: StateFactory }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [INITIAL_STATE_TOKEN]\n }] }]; }, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n Store.prototype._stateStream;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n Store.prototype._internalStateOperations;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n Store.prototype._config;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n Store.prototype._internalExecutionStrategy;\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n Store.prototype._stateFactory;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Allows the select decorator to get access to the DI store.\r\n * \\@internal only use in \\@Select decorator\r\n * @ignore\r\n */\r\nclass SelectFactory {\r\n /**\r\n * @param {?} store\r\n * @param {?} config\r\n */\r\n constructor(store, config) {\r\n SelectFactory.store = store;\r\n SelectFactory.config = config;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n ngOnDestroy() {\r\n SelectFactory.store = null;\r\n SelectFactory.config = null;\r\n }\r\n}\nSelectFactory.ɵfac = function SelectFactory_Factory(t) { return new (t || SelectFactory)(ɵngcc0.ɵɵinject(Store), ɵngcc0.ɵɵinject(NgxsConfig)); };\nSelectFactory.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: SelectFactory, factory: SelectFactory.ɵfac });\r\nSelectFactory.store = null;\r\nSelectFactory.config = null;\r\n/** @nocollapse */\r\nSelectFactory.ctorParameters = () => [\r\n { type: Store },\r\n { type: NgxsConfig }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(SelectFactory, [{\n type: Injectable\n }], function () { return [{ type: Store }, { type: NgxsConfig }]; }, null); })();\r\nif (false) {\r\n /** @type {?} */\r\n SelectFactory.store;\r\n /** @type {?} */\r\n SelectFactory.config;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Init action\r\n */\r\nclass InitState {\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '@@INIT';\r\n }\r\n}\r\n/**\r\n * Update action\r\n */\r\nclass UpdateState {\r\n /**\r\n * @param {?=} addedStates\r\n */\r\n constructor(addedStates) {\r\n this.addedStates = addedStates;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n static get type() {\r\n // NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138\r\n return '@@UPDATE_STATE';\r\n }\r\n}\r\nif (false) {\r\n /** @type {?} */\r\n UpdateState.prototype.addedStates;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @type {?} */\r\nconst ivyEnabledInDevMode$ = new ReplaySubject(1);\r\n/**\r\n * Ivy exposes helper functions to the global `window.ng` object.\r\n * Those functions are `getComponent, getContext,\r\n * getListeners, getViewComponent, getHostElement, getInjector,\r\n * getRootComponents, getDirectives, getDebugNode`\r\n * Previously, old view engine exposed `window.ng.coreTokens` and\r\n * `window.ng.probe` if an application was in development/production.\r\n * Ivy doesn't expose these functions in production. Developers will be able\r\n * to see warnings in both JIT/AOT modes, but only if an application\r\n * is in development.\r\n * @return {?}\r\n */\r\nfunction setIvyEnabledInDevMode() {\r\n try {\r\n // `try-catch` will also handle server-side rendering, as\r\n // `window is not defined` will not be thrown.\r\n /** @type {?} */\r\n const ng = ((/** @type {?} */ (window))).ng;\r\n /** @type {?} */\r\n const _viewEngineEnabled = !!ng.probe && !!ng.coreTokens;\r\n /** @type {?} */\r\n const _ivyEnabledInDevMode = !_viewEngineEnabled && isDevMode();\r\n ivyEnabledInDevMode$.next(_ivyEnabledInDevMode);\r\n }\r\n catch (_a) {\r\n ivyEnabledInDevMode$.next(false);\r\n }\r\n finally {\r\n ivyEnabledInDevMode$.complete();\r\n }\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Root module\r\n * @ignore\r\n */\r\nclass NgxsRootModule {\r\n /**\r\n * @param {?} factory\r\n * @param {?} internalStateOperations\r\n * @param {?} _store\r\n * @param {?} _select\r\n * @param {?=} states\r\n * @param {?=} lifecycleStateManager\r\n */\r\n constructor(factory, internalStateOperations, _store, _select, states = [], lifecycleStateManager) {\r\n // Validate states on having the `@Injectable()` decorator in Ivy\r\n setIvyEnabledInDevMode();\r\n // Add stores to the state graph and return their defaults\r\n /** @type {?} */\r\n const results = factory.addAndReturnDefaults(states);\r\n internalStateOperations.setStateToTheCurrentWithNew(results);\r\n // Connect our actions stream\r\n factory.connectActionHandlers();\r\n // Dispatch the init action and invoke init and bootstrap functions after\r\n lifecycleStateManager.ngxsBootstrap(new InitState(), results);\r\n }\r\n}\nNgxsRootModule.ɵfac = function NgxsRootModule_Factory(t) { return new (t || NgxsRootModule)(ɵngcc0.ɵɵinject(StateFactory), ɵngcc0.ɵɵinject(InternalStateOperations), ɵngcc0.ɵɵinject(Store), ɵngcc0.ɵɵinject(SelectFactory), ɵngcc0.ɵɵinject(ROOT_STATE_TOKEN, 8), ɵngcc0.ɵɵinject(LifecycleStateManager)); };\nNgxsRootModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsRootModule });\nNgxsRootModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\r\n/** @nocollapse */\r\nNgxsRootModule.ctorParameters = () => [\r\n { type: StateFactory },\r\n { type: InternalStateOperations },\r\n { type: Store },\r\n { type: SelectFactory },\r\n { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [ROOT_STATE_TOKEN,] }] },\r\n { type: LifecycleStateManager }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsRootModule, [{\n type: NgModule\n }], function () { return [{ type: StateFactory }, { type: InternalStateOperations }, { type: Store }, { type: SelectFactory }, { type: Array, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ROOT_STATE_TOKEN]\n }] }, { type: LifecycleStateManager }]; }, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Feature module\r\n * @ignore\r\n */\r\nclass NgxsFeatureModule {\r\n /**\r\n * @param {?} _store\r\n * @param {?} internalStateOperations\r\n * @param {?} factory\r\n * @param {?=} states\r\n * @param {?=} lifecycleStateManager\r\n */\r\n constructor(_store, internalStateOperations, factory, states = [], lifecycleStateManager) {\r\n // Since FEATURE_STATE_TOKEN is a multi token, we need to\r\n // flatten it [[Feature1State, Feature2State], [Feature3State]]\r\n /** @type {?} */\r\n const flattenedStates = NgxsFeatureModule.flattenStates(states);\r\n // add stores to the state graph and return their defaults\r\n /** @type {?} */\r\n const results = factory.addAndReturnDefaults(flattenedStates);\r\n if (results.states.length) {\r\n internalStateOperations.setStateToTheCurrentWithNew(results);\r\n // dispatch the update action and invoke init and bootstrap functions after\r\n lifecycleStateManager.ngxsBootstrap(new UpdateState(results.defaults), results);\r\n }\r\n }\r\n /**\r\n * @private\r\n * @param {?=} states\r\n * @return {?}\r\n */\r\n static flattenStates(states = []) {\r\n return states.reduce((/**\r\n * @param {?} total\r\n * @param {?} values\r\n * @return {?}\r\n */\r\n (total, values) => total.concat(values)), []);\r\n }\r\n}\nNgxsFeatureModule.ɵfac = function NgxsFeatureModule_Factory(t) { return new (t || NgxsFeatureModule)(ɵngcc0.ɵɵinject(Store), ɵngcc0.ɵɵinject(InternalStateOperations), ɵngcc0.ɵɵinject(StateFactory), ɵngcc0.ɵɵinject(FEATURE_STATE_TOKEN, 8), ɵngcc0.ɵɵinject(LifecycleStateManager)); };\nNgxsFeatureModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsFeatureModule });\nNgxsFeatureModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\r\n/** @nocollapse */\r\nNgxsFeatureModule.ctorParameters = () => [\r\n { type: Store },\r\n { type: InternalStateOperations },\r\n { type: StateFactory },\r\n { type: Array, decorators: [{ type: Optional }, { type: Inject, args: [FEATURE_STATE_TOKEN,] }] },\r\n { type: LifecycleStateManager }\r\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsFeatureModule, [{\n type: NgModule\n }], function () { return [{ type: Store }, { type: InternalStateOperations }, { type: StateFactory }, { type: Array, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [FEATURE_STATE_TOKEN]\n }] }, { type: LifecycleStateManager }]; }, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Ngxs Module\r\n */\r\nclass NgxsModule {\r\n /**\r\n * Root module factory\r\n * @param {?=} states\r\n * @param {?=} options\r\n * @return {?}\r\n */\r\n static forRoot(states = [], options = {}) {\r\n return {\r\n ngModule: NgxsRootModule,\r\n providers: [\r\n StateFactory,\r\n StateContextFactory,\r\n Actions,\r\n InternalActions,\r\n NgxsBootstrapper,\r\n ConfigValidator,\r\n HostEnvironment,\r\n LifecycleStateManager,\r\n InternalDispatcher,\r\n InternalDispatchedActionResults,\r\n InternalStateOperations,\r\n InternalNgxsExecutionStrategy,\r\n Store,\r\n StateStream,\r\n SelectFactory,\r\n PluginManager,\r\n ...states,\r\n ...NgxsModule.ngxsTokenProviders(states, options)\r\n ]\r\n };\r\n }\r\n /**\r\n * Feature module factory\r\n * @param {?=} states\r\n * @return {?}\r\n */\r\n static forFeature(states = []) {\r\n return {\r\n ngModule: NgxsFeatureModule,\r\n providers: [\r\n StateFactory,\r\n PluginManager,\r\n ...states,\r\n {\r\n provide: FEATURE_STATE_TOKEN,\r\n multi: true,\r\n useValue: states\r\n }\r\n ]\r\n };\r\n }\r\n /**\r\n * @private\r\n * @param {?} states\r\n * @param {?} options\r\n * @return {?}\r\n */\r\n static ngxsTokenProviders(states, options) {\r\n return [\r\n {\r\n provide: NG_TEST_MODE,\r\n useValue: isAngularInTestMode\r\n },\r\n {\r\n provide: NG_DEV_MODE,\r\n useValue: isDevMode\r\n },\r\n {\r\n provide: NGXS_EXECUTION_STRATEGY,\r\n useClass: options.executionStrategy || DispatchOutsideZoneNgxsExecutionStrategy\r\n },\r\n {\r\n provide: ROOT_STATE_TOKEN,\r\n useValue: states\r\n },\r\n {\r\n provide: NgxsModule.ROOT_OPTIONS,\r\n useValue: options\r\n },\r\n {\r\n provide: NgxsConfig,\r\n useFactory: NgxsModule.ngxsConfigFactory,\r\n deps: [NgxsModule.ROOT_OPTIONS]\r\n },\r\n {\r\n provide: APP_BOOTSTRAP_LISTENER,\r\n useFactory: NgxsModule.appBootstrapListenerFactory,\r\n multi: true,\r\n deps: [NgxsBootstrapper]\r\n },\r\n {\r\n provide: INITIAL_STATE_TOKEN,\r\n useFactory: NgxsModule.getInitialState\r\n },\r\n {\r\n provide: NGXS_STATE_CONTEXT_FACTORY,\r\n useExisting: StateContextFactory\r\n },\r\n {\r\n provide: NGXS_STATE_FACTORY,\r\n useExisting: StateFactory\r\n }\r\n ];\r\n }\r\n /**\r\n * @private\r\n * @param {?} options\r\n * @return {?}\r\n */\r\n static ngxsConfigFactory(options) {\r\n return mergeDeep(new NgxsConfig(), options);\r\n }\r\n /**\r\n * @private\r\n * @param {?} bootstrapper\r\n * @return {?}\r\n */\r\n static appBootstrapListenerFactory(bootstrapper) {\r\n return (/**\r\n * @return {?}\r\n */\r\n () => bootstrapper.bootstrap());\r\n }\r\n /**\r\n * @private\r\n * @return {?}\r\n */\r\n static getInitialState() {\r\n return InitialState.pop();\r\n }\r\n}\nNgxsModule.ɵfac = function NgxsModule_Factory(t) { return new (t || NgxsModule)(); };\nNgxsModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgxsModule });\nNgxsModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\r\nNgxsModule.ROOT_OPTIONS = new InjectionToken('ROOT_OPTIONS');\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgxsModule, [{\n type: NgModule\n }], null, null); })();\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n NgxsModule.ROOT_OPTIONS;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Decorates a method with a action information.\r\n * @param {?} actions\r\n * @param {?=} options\r\n * @return {?}\r\n */\r\nfunction Action(actions, options) {\r\n return (/**\r\n * @param {?} target\r\n * @param {?} name\r\n * @return {?}\r\n */\r\n (target, name) => {\r\n /** @type {?} */\r\n const isStaticMethod = target.hasOwnProperty('prototype');\r\n if (isStaticMethod) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.ACTION_DECORATOR]());\r\n }\r\n /** @type {?} */\r\n const meta = ensureStoreMetadata(target.constructor);\r\n if (!Array.isArray(actions)) {\r\n actions = [actions];\r\n }\r\n for (const action of actions) {\r\n /** @type {?} */\r\n const type = action.type;\r\n if (!meta.actions[type]) {\r\n meta.actions[type] = [];\r\n }\r\n meta.actions[type].push({\r\n fn: name,\r\n options: options || {},\r\n type\r\n });\r\n }\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * All provided or injected tokens must have `\\@Injectable` decorator\r\n * (previously, injected tokens without `\\@Injectable` were allowed\r\n * if another decorator was used, e.g. pipes).\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction ensureStateClassIsInjectable(target) {\r\n // `ɵprov` is a static property added by the NGCC compiler. It always exists in\r\n // AOT mode because this property is added before runtime. If an application is running in\r\n // JIT mode then this property can be added by the `@Injectable()` decorator. The `@Injectable()`\r\n // decorator has to go after the `@State()` decorator, thus we prevent users from unwanted DI errors.\r\n ivyEnabledInDevMode$.subscribe((/**\r\n * @param {?} _ivyEnabledInDevMode\r\n * @return {?}\r\n */\r\n _ivyEnabledInDevMode => {\r\n if (_ivyEnabledInDevMode) {\r\n /** @type {?} */\r\n /** @nocollapse */ const ngInjectableDef = target.ɵprov;\r\n if (!ngInjectableDef) {\r\n // Don't warn if Ivy is disabled or `ɵprov` exists on the class\r\n console.warn(CONFIG_MESSAGES[VALIDATION_CODE.UNDECORATED_STATE_IN_IVY](target.name));\r\n }\r\n }\r\n }));\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @record\r\n * @template T\r\n */\r\nfunction MutateMetaOptions() { }\r\nif (false) {\r\n /** @type {?} */\r\n MutateMetaOptions.prototype.meta;\r\n /** @type {?} */\r\n MutateMetaOptions.prototype.inheritedStateClass;\r\n /** @type {?} */\r\n MutateMetaOptions.prototype.optionsWithInheritance;\r\n}\r\n/**\r\n * Decorates a class with ngxs state information.\r\n * @template T\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction State(options) {\r\n /**\r\n * @param {?} inheritedStateClass\r\n * @return {?}\r\n */\r\n function getStateOptions(inheritedStateClass) {\r\n /** @type {?} */\r\n const inheritanceOptions = inheritedStateClass[META_OPTIONS_KEY] || {};\r\n return (/** @type {?} */ (Object.assign({}, inheritanceOptions, options)));\r\n }\r\n /**\r\n * @param {?} params\r\n * @return {?}\r\n */\r\n function mutateMetaData(params) {\r\n const { meta, inheritedStateClass, optionsWithInheritance } = params;\r\n const { children, defaults, name } = optionsWithInheritance;\r\n /** @type {?} */\r\n const stateName = typeof name === 'string' ? name : (name && name.getName()) || null;\r\n StoreValidators.checkCorrectStateName(stateName);\r\n if (inheritedStateClass.hasOwnProperty(META_KEY)) {\r\n /** @type {?} */\r\n const inheritedMeta = inheritedStateClass[META_KEY] || {};\r\n meta.actions = Object.assign({}, meta.actions, inheritedMeta.actions);\r\n }\r\n meta.children = children;\r\n meta.defaults = defaults;\r\n meta.name = stateName;\r\n }\r\n return (/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\n (target) => {\r\n ensureStateClassIsInjectable(target);\r\n /** @type {?} */\r\n const stateClass = target;\r\n /** @type {?} */\r\n const meta = ensureStoreMetadata(stateClass);\r\n /** @type {?} */\r\n const inheritedStateClass = Object.getPrototypeOf(stateClass);\r\n /** @type {?} */\r\n const optionsWithInheritance = getStateOptions(inheritedStateClass);\r\n mutateMetaData({ meta, inheritedStateClass, optionsWithInheritance });\r\n stateClass[META_OPTIONS_KEY] = optionsWithInheritance;\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/** @type {?} */\r\nconst DOLLAR_CHAR_CODE = 36;\r\n/**\r\n * @template T\r\n * @param {?} selector\r\n * @return {?}\r\n */\r\nfunction createSelectObservable(selector) {\r\n if (!SelectFactory.store) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.SELECT_FACTORY_NOT_CONNECTED]());\r\n }\r\n return SelectFactory.store.select(selector);\r\n}\r\n/**\r\n * @param {?} name\r\n * @param {?=} rawSelector\r\n * @param {?=} paths\r\n * @return {?}\r\n */\r\nfunction createSelectorFn(name, rawSelector, paths = []) {\r\n rawSelector = !rawSelector ? removeDollarAtTheEnd(name) : rawSelector;\r\n if (typeof rawSelector === 'string') {\r\n /** @type {?} */\r\n const propsArray = paths.length\r\n ? [rawSelector, ...paths]\r\n : rawSelector.split('.');\r\n return propGetter(propsArray, (/** @type {?} */ (SelectFactory.config)));\r\n }\r\n return rawSelector;\r\n}\r\n/**\r\n * \\@example If `foo$` => make it just `foo`\r\n * @param {?} name\r\n * @return {?}\r\n */\r\nfunction removeDollarAtTheEnd(name) {\r\n /** @type {?} */\r\n const lastCharIndex = name.length - 1;\r\n /** @type {?} */\r\n const dollarAtTheEnd = name.charCodeAt(lastCharIndex) === DOLLAR_CHAR_CODE;\r\n return dollarAtTheEnd ? name.slice(0, lastCharIndex) : name;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Decorator for selecting a slice of state from the store.\r\n * @template T\r\n * @param {?=} rawSelector\r\n * @param {...?} paths\r\n * @return {?}\r\n */\r\nfunction Select(rawSelector, ...paths) {\r\n return (/**\r\n * @param {?} target\r\n * @param {?} key\r\n * @return {?}\r\n */\r\n function (target, key) {\r\n /** @type {?} */\r\n const name = key.toString();\r\n /** @type {?} */\r\n const selectorId = `__${name}__selector`;\r\n /** @type {?} */\r\n const selector = createSelectorFn(name, rawSelector, paths);\r\n Object.defineProperties(target, {\r\n [selectorId]: {\r\n writable: true,\r\n enumerable: false,\r\n configurable: true\r\n },\r\n [name]: {\r\n enumerable: true,\r\n configurable: true,\r\n /**\r\n * @return {?}\r\n */\r\n get() {\r\n return this[selectorId] || (this[selectorId] = createSelectObservable(selector));\r\n }\r\n }\r\n });\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Decorator for setting selector options at a method or class level.\r\n * @param {?} options\r\n * @return {?}\r\n */\r\nfunction SelectorOptions(options) {\r\n return (/** @type {?} */ (((/**\r\n * @template T\r\n * @param {?} target\r\n * @param {?} methodName\r\n * @param {?} descriptor\r\n * @return {?}\r\n */\r\n function decorate(target, methodName, descriptor) {\r\n if (methodName) {\r\n // Method Decorator\r\n /** @type {?} */\r\n const originalFn = descriptor.value || ((/** @type {?} */ (descriptor))).originalFn;\r\n if (originalFn) {\r\n selectorOptionsMetaAccessor.defineOptions(originalFn, options);\r\n }\r\n }\r\n else {\r\n // Class Decorator\r\n selectorOptionsMetaAccessor.defineOptions(target, options);\r\n }\r\n }))));\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @record\r\n */\r\nfunction MetaDataModel$1() { }\r\nif (false) {\r\n /** @type {?} */\r\n MetaDataModel$1.prototype.name;\r\n /** @type {?} */\r\n MetaDataModel$1.prototype.actions;\r\n /** @type {?} */\r\n MetaDataModel$1.prototype.defaults;\r\n /** @type {?} */\r\n MetaDataModel$1.prototype.path;\r\n /** @type {?|undefined} */\r\n MetaDataModel$1.prototype.children;\r\n}\r\n/**\r\n * @record\r\n */\r\nfunction SelectorMetaDataModel$1() { }\r\nif (false) {\r\n /** @type {?} */\r\n SelectorMetaDataModel$1.prototype.originalFn;\r\n /** @type {?} */\r\n SelectorMetaDataModel$1.prototype.containerClass;\r\n /** @type {?} */\r\n SelectorMetaDataModel$1.prototype.selectorName;\r\n /** @type {?} */\r\n SelectorMetaDataModel$1.prototype.getSelectorOptions;\r\n}\r\n/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction ensureStoreMetadata$1(target) {\r\n return ensureStoreMetadata(target);\r\n}\r\n/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction getStoreMetadata$1(target) {\r\n return getStoreMetadata(target);\r\n}\r\n/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction ensureSelectorMetadata$1(target) {\r\n return ensureSelectorMetadata(target);\r\n}\r\n/**\r\n * @param {?} target\r\n * @return {?}\r\n */\r\nfunction getSelectorMetadata$1(target) {\r\n return getSelectorMetadata(target);\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * Decorator for memoizing a state selector.\r\n * @template T\r\n * @param {?=} selectors\r\n * @return {?}\r\n */\r\nfunction Selector(selectors) {\r\n return (/**\r\n * @template U\r\n * @param {?} target\r\n * @param {?} key\r\n * @param {?} descriptor\r\n * @return {?}\r\n */\r\n (target, key, descriptor) => {\r\n /** @type {?} */\r\n const isNotMethod = !(descriptor && descriptor.value !== null);\r\n if (isNotMethod) {\r\n throw new Error(CONFIG_MESSAGES[VALIDATION_CODE.SELECTOR_DECORATOR]());\r\n }\r\n /** @type {?} */\r\n const originalFn = descriptor.value;\r\n /** @type {?} */\r\n const memoizedFn = createSelector(selectors, (/** @type {?} */ (originalFn)), {\r\n containerClass: target,\r\n selectorName: key.toString(),\r\n /**\r\n * @return {?}\r\n */\r\n getSelectorOptions() {\r\n return {};\r\n }\r\n });\r\n /** @type {?} */\r\n const newDescriptor = {\r\n configurable: true,\r\n /**\r\n * @return {?}\r\n */\r\n get() {\r\n return memoizedFn;\r\n }\r\n };\r\n // Add hidden property to descriptor\r\n ((/** @type {?} */ (newDescriptor)))['originalFn'] = originalFn;\r\n return newDescriptor;\r\n });\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\nclass NoopNgxsExecutionStrategy {\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n enter(func) {\r\n return func();\r\n }\r\n /**\r\n * @template T\r\n * @param {?} func\r\n * @return {?}\r\n */\r\n leave(func) {\r\n return func();\r\n }\r\n}\nNoopNgxsExecutionStrategy.ɵfac = function NoopNgxsExecutionStrategy_Factory(t) { return new (t || NoopNgxsExecutionStrategy)(); };\nNoopNgxsExecutionStrategy.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: NoopNgxsExecutionStrategy, factory: NoopNgxsExecutionStrategy.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NoopNgxsExecutionStrategy, [{\n type: Injectable\n }], null, null); })();\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\r\n/**\r\n * @template T\r\n */\r\nclass StateToken {\r\n /**\r\n * @param {?} name\r\n */\r\n constructor(name) {\r\n this.name = name;\r\n /** @type {?} */\r\n const selectorMetadata = ensureSelectorMetadata((/** @type {?} */ (this)));\r\n selectorMetadata.makeRootSelector = (/**\r\n * @param {?} runtimeContext\r\n * @return {?}\r\n */\r\n (runtimeContext) => {\r\n return runtimeContext.getStateGetter(this.name);\r\n });\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n getName() {\r\n return this.name;\r\n }\r\n /**\r\n * @return {?}\r\n */\r\n toString() {\r\n return `StateToken[${this.name}]`;\r\n }\r\n}\r\nif (false) {\r\n /**\r\n * @type {?}\r\n * @private\r\n */\r\n StateToken.prototype.name;\r\n}\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\n/**\r\n * @fileoverview added by tsickle\r\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\r\n */\n\nexport { Action, Actions, InitState, NGXS_PLUGINS, NgxsModule, NgxsSimpleChange, NoopNgxsExecutionStrategy, Select, Selector, SelectorOptions, State, StateStream, StateToken, Store, UpdateState, actionMatcher, createSelector, ensureSelectorMetadata$1 as ensureSelectorMetadata, ensureStoreMetadata$1 as ensureStoreMetadata, getActionTypeFromInstance, getSelectorMetadata$1 as getSelectorMetadata, getStoreMetadata$1 as getStoreMetadata, getValue, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, setValue, OrderedSubject as ɵa, InternalActions as ɵb, SelectFactory as ɵba, LifecycleStateManager as ɵbb, NgxsFeatureModule as ɵbc, DispatchOutsideZoneNgxsExecutionStrategy as ɵbd, ROOT_STATE_TOKEN as ɵc, FEATURE_STATE_TOKEN as ɵd, NG_TEST_MODE as ɵe, NG_DEV_MODE as ɵf, SELECTOR_META_KEY as ɵg, NgxsConfig as ɵh, mergeDeep as ɵi, NGXS_EXECUTION_STRATEGY as ɵj, NgxsRootModule as ɵk, StateFactory as ɵl, InternalDispatchedActionResults as ɵm, InternalDispatcher as ɵn, StateContextFactory as ɵo, InternalStateOperations as ɵp, PluginManager as ɵq, InternalNgxsExecutionStrategy as ɵr, ConfigValidator as ɵs, HostEnvironment as ɵt, ensureStoreMetadata as ɵw, getStoreMetadata as ɵx, ensureSelectorMetadata as ɵy, getSelectorMetadata as ɵz };\n\n","'use strict';\n\n/******************************************************************************\n * Created 2008-08-19.\n *\n * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.\n *\n * Copyright (C) 2008\n * Wyatt Baldwin <self@wyattbaldwin.com>\n * All rights reserved\n *\n * Licensed under the MIT license.\n *\n * http://www.opensource.org/licenses/mit-license.php\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *****************************************************************************/\nvar dijkstra = {\n single_source_shortest_paths: function(graph, s, d) {\n // Predecessor map for each node that has been encountered.\n // node ID => predecessor node ID\n var predecessors = {};\n\n // Costs of shortest paths from s to all nodes encountered.\n // node ID => cost\n var costs = {};\n costs[s] = 0;\n\n // Costs of shortest paths from s to all nodes encountered; differs from\n // `costs` in that it provides easy access to the node that currently has\n // the known shortest path from s.\n // XXX: Do we actually need both `costs` and `open`?\n var open = dijkstra.PriorityQueue.make();\n open.push(s, 0);\n\n var closest,\n u, v,\n cost_of_s_to_u,\n adjacent_nodes,\n cost_of_e,\n cost_of_s_to_u_plus_cost_of_e,\n cost_of_s_to_v,\n first_visit;\n while (!open.empty()) {\n // In the nodes remaining in graph that have a known cost from s,\n // find the node, u, that currently has the shortest path from s.\n closest = open.pop();\n u = closest.value;\n cost_of_s_to_u = closest.cost;\n\n // Get nodes adjacent to u...\n adjacent_nodes = graph[u] || {};\n\n // ...and explore the edges that connect u to those nodes, updating\n // the cost of the shortest paths to any or all of those nodes as\n // necessary. v is the node across the current edge from u.\n for (v in adjacent_nodes) {\n if (adjacent_nodes.hasOwnProperty(v)) {\n // Get the cost of the edge running from u to v.\n cost_of_e = adjacent_nodes[v];\n\n // Cost of s to u plus the cost of u to v across e--this is *a*\n // cost from s to v that may or may not be less than the current\n // known cost to v.\n cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;\n\n // If we haven't visited v yet OR if the current known cost from s to\n // v is greater than the new cost we just found (cost of s to u plus\n // cost of u to v across e), update v's cost in the cost list and\n // update v's predecessor in the predecessor list (it's now u).\n cost_of_s_to_v = costs[v];\n first_visit = (typeof costs[v] === 'undefined');\n if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {\n costs[v] = cost_of_s_to_u_plus_cost_of_e;\n open.push(v, cost_of_s_to_u_plus_cost_of_e);\n predecessors[v] = u;\n }\n }\n }\n }\n\n if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {\n var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');\n throw new Error(msg);\n }\n\n return predecessors;\n },\n\n extract_shortest_path_from_predecessor_list: function(predecessors, d) {\n var nodes = [];\n var u = d;\n var predecessor;\n while (u) {\n nodes.push(u);\n predecessor = predecessors[u];\n u = predecessors[u];\n }\n nodes.reverse();\n return nodes;\n },\n\n find_path: function(graph, s, d) {\n var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);\n return dijkstra.extract_shortest_path_from_predecessor_list(\n predecessors, d);\n },\n\n /**\n * A very naive priority queue implementation.\n */\n PriorityQueue: {\n make: function (opts) {\n var T = dijkstra.PriorityQueue,\n t = {},\n key;\n opts = opts || {};\n for (key in T) {\n if (T.hasOwnProperty(key)) {\n t[key] = T[key];\n }\n }\n t.queue = [];\n t.sorter = opts.sorter || T.default_sorter;\n return t;\n },\n\n default_sorter: function (a, b) {\n return a.cost - b.cost;\n },\n\n /**\n * Add a new item to the queue and ensure the highest priority element\n * is at the front of the queue.\n */\n push: function (value, cost) {\n var item = {value: value, cost: cost};\n this.queue.push(item);\n this.queue.sort(this.sorter);\n },\n\n /**\n * Return the highest priority element in the queue.\n */\n pop: function () {\n return this.queue.shift();\n },\n\n empty: function () {\n return this.queue.length === 0;\n }\n }\n};\n\n\n// node.js module exports\nif (typeof module !== 'undefined') {\n module.exports = dijkstra;\n}\n","'use strict'\n\nmodule.exports = function encodeUtf8 (input) {\n var result = []\n var size = input.length\n\n for (var index = 0; index < size; index++) {\n var point = input.charCodeAt(index)\n\n if (point >= 0xD800 && point <= 0xDBFF && size > index + 1) {\n var second = input.charCodeAt(index + 1)\n\n if (second >= 0xDC00 && second <= 0xDFFF) {\n // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n point = (point - 0xD800) * 0x400 + second - 0xDC00 + 0x10000\n index += 1\n }\n }\n\n // US-ASCII\n if (point < 0x80) {\n result.push(point)\n continue\n }\n\n // 2-byte UTF-8\n if (point < 0x800) {\n result.push((point >> 6) | 192)\n result.push((point & 63) | 128)\n continue\n }\n\n // 3-byte UTF-8\n if (point < 0xD800 || (point >= 0xE000 && point < 0x10000)) {\n result.push((point >> 12) | 224)\n result.push(((point >> 6) & 63) | 128)\n result.push((point & 63) | 128)\n continue\n }\n\n // 4-byte UTF-8\n if (point >= 0x10000 && point <= 0x10FFFF) {\n result.push((point >> 18) | 240)\n result.push(((point >> 12) & 63) | 128)\n result.push(((point >> 6) & 63) | 128)\n result.push((point & 63) | 128)\n continue\n }\n\n // Invalid character\n result.push(0xEF, 0xBF, 0xBD)\n }\n\n return new Uint8Array(result).buffer\n}\n","(function(root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('error-stack-parser', ['stackframe'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('stackframe'));\n } else {\n root.ErrorStackParser = factory(root.StackFrame);\n }\n}(this, function ErrorStackParser(StackFrame) {\n 'use strict';\n\n var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\\S+\\:\\d+/;\n var CHROME_IE_STACK_REGEXP = /^\\s*at .*(\\S+\\:\\d+|\\(native\\))/m;\n var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\\[native code\\])?$/;\n\n function _map(array, fn, thisArg) {\n if (typeof Array.prototype.map === 'function') {\n return array.map(fn, thisArg);\n } else {\n var output = new Array(array.length);\n for (var i = 0; i < array.length; i++) {\n output[i] = fn.call(thisArg, array[i]);\n }\n return output;\n }\n }\n\n function _filter(array, fn, thisArg) {\n if (typeof Array.prototype.filter === 'function') {\n return array.filter(fn, thisArg);\n } else {\n var output = [];\n for (var i = 0; i < array.length; i++) {\n if (fn.call(thisArg, array[i])) {\n output.push(array[i]);\n }\n }\n return output;\n }\n }\n\n function _indexOf(array, target) {\n if (typeof Array.prototype.indexOf === 'function') {\n return array.indexOf(target);\n } else {\n for (var i = 0; i < array.length; i++) {\n if (array[i] === target) {\n return i;\n }\n }\n return -1;\n }\n }\n\n return {\n /**\n * Given an Error object, extract the most information from it.\n *\n * @param {Error} error object\n * @return {Array} of StackFrames\n */\n parse: function ErrorStackParser$$parse(error) {\n if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') {\n return this.parseOpera(error);\n } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {\n return this.parseV8OrIE(error);\n } else if (error.stack) {\n return this.parseFFOrSafari(error);\n } else {\n throw new Error('Cannot parse given Error object');\n }\n },\n\n // Separate line and column numbers from a string of the form: (URI:Line:Column)\n extractLocation: function ErrorStackParser$$extractLocation(urlLike) {\n // Fail-fast but return locations like \"(native)\"\n if (urlLike.indexOf(':') === -1) {\n return [urlLike];\n }\n\n var regExp = /(.+?)(?:\\:(\\d+))?(?:\\:(\\d+))?$/;\n var parts = regExp.exec(urlLike.replace(/[\\(\\)]/g, ''));\n return [parts[1], parts[2] || undefined, parts[3] || undefined];\n },\n\n parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {\n var filtered = _filter(error.stack.split('\\n'), function(line) {\n return !!line.match(CHROME_IE_STACK_REGEXP);\n }, this);\n\n return _map(filtered, function(line) {\n if (line.indexOf('(eval ') > -1) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n line = line.replace(/eval code/g, 'eval').replace(/(\\(eval at [^\\()]*)|(\\)\\,.*$)/g, '');\n }\n var tokens = line.replace(/^\\s+/, '').replace(/\\(eval code/g, '(').split(/\\s+/).slice(1);\n var locationParts = this.extractLocation(tokens.pop());\n var functionName = tokens.join(' ') || undefined;\n var fileName = _indexOf(['eval', '<anonymous>'], locationParts[0]) > -1 ? undefined : locationParts[0];\n\n return new StackFrame(functionName, undefined, fileName, locationParts[1], locationParts[2], line);\n }, this);\n },\n\n parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {\n var filtered = _filter(error.stack.split('\\n'), function(line) {\n return !line.match(SAFARI_NATIVE_CODE_REGEXP);\n }, this);\n\n return _map(filtered, function(line) {\n // Throw away eval information until we implement stacktrace.js/stackframe#8\n if (line.indexOf(' > eval') > -1) {\n line = line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval\\:\\d+\\:\\d+/g, ':$1');\n }\n\n if (line.indexOf('@') === -1 && line.indexOf(':') === -1) {\n // Safari eval frames only have function names and nothing else\n return new StackFrame(line);\n } else {\n var tokens = line.split('@');\n var locationParts = this.extractLocation(tokens.pop());\n var functionName = tokens.join('@') || undefined;\n return new StackFrame(functionName,\n undefined,\n locationParts[0],\n locationParts[1],\n locationParts[2],\n line);\n }\n }, this);\n },\n\n parseOpera: function ErrorStackParser$$parseOpera(e) {\n if (!e.stacktrace || (e.message.indexOf('\\n') > -1 &&\n e.message.split('\\n').length > e.stacktrace.split('\\n').length)) {\n return this.parseOpera9(e);\n } else if (!e.stack) {\n return this.parseOpera10(e);\n } else {\n return this.parseOpera11(e);\n }\n },\n\n parseOpera9: function ErrorStackParser$$parseOpera9(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)/i;\n var lines = e.message.split('\\n');\n var result = [];\n\n for (var i = 2, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n if (match) {\n result.push(new StackFrame(undefined, undefined, match[2], match[1], undefined, lines[i]));\n }\n }\n\n return result;\n },\n\n parseOpera10: function ErrorStackParser$$parseOpera10(e) {\n var lineRE = /Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$/i;\n var lines = e.stacktrace.split('\\n');\n var result = [];\n\n for (var i = 0, len = lines.length; i < len; i += 2) {\n var match = lineRE.exec(lines[i]);\n if (match) {\n result.push(\n new StackFrame(\n match[3] || undefined,\n undefined,\n match[2],\n match[1],\n undefined,\n lines[i]\n )\n );\n }\n }\n\n return result;\n },\n\n // Opera 10.65+ Error.stack very similar to FF/Safari\n parseOpera11: function ErrorStackParser$$parseOpera11(error) {\n var filtered = _filter(error.stack.split('\\n'), function(line) {\n return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);\n }, this);\n\n return _map(filtered, function(line) {\n var tokens = line.split('@');\n var locationParts = this.extractLocation(tokens.pop());\n var functionCall = (tokens.shift() || '');\n var functionName = functionCall\n .replace(/<anonymous function(: (\\w+))?>/, '$2')\n .replace(/\\([^\\)]*\\)/g, '') || undefined;\n var argsRaw;\n if (functionCall.match(/\\(([^\\)]*)\\)/)) {\n argsRaw = functionCall.replace(/^[^\\(]+\\(([^\\)]*)\\)$/, '$1');\n }\n var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ?\n undefined : argsRaw.split(',');\n return new StackFrame(\n functionName,\n args,\n locationParts[0],\n locationParts[1],\n locationParts[2],\n line);\n }, this);\n }\n };\n}));\n\n","(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open(\"GET\",b),e.responseType=\"blob\",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error(\"could not download file\")},e.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open(\"\",\"_blank\"),e&&(e.document.title=e.document.body.innerText=\"downloading...\"),\"string\"==typeof a)return c(a,b,d);var g=\"application/octet-stream\"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((i||g&&h)&&\"object\"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a,\"undefined\"!=typeof module&&(module.exports=a)});\n\n","/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.15';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g,\n reTrimStart = /^\\s+/,\n reTrimEnd = /\\s+$/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array == null ? 0 : array.length,\n valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '<p>' + func(text) + '</p>';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '<p>fred, barney, & pebbles</p>'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('<body>');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<b><%- value %></b>');\n * compiled({ 'value': '<script>' });\n * // => '<b><script></b>'\n *\n * // Use the \"evaluate\" delimiter to execute JavaScript and generate HTML.\n * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the internal `print` function in \"evaluate\" delimiters.\n * var compiled = _.template('<% print(\"hello \" + user); %>!');\n * compiled({ 'user': 'barney' });\n * // => 'hello barney!'\n *\n * // Use the ES template literal delimiter as an \"interpolate\" delimiter.\n * // Disable support by replacing the \"interpolate\" delimiter.\n * var compiled = _.template('hello ${ user }!');\n * compiled({ 'user': 'pebbles' });\n * // => 'hello pebbles!'\n *\n * // Use backslashes to treat delimiters as plain text.\n * var compiled = _.template('<%= \"\\\\<%- value %\\\\>\" %>');\n * compiled({ 'value': 'ignored' });\n * // => '<%- value %>'\n *\n * // Use the `imports` option to import `jQuery` as `jq`.\n * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';\n * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });\n * compiled({ 'users': ['fred', 'barney'] });\n * // => '<li>fred</li><li>barney</li>'\n *\n * // Use the `sourceURL` option to specify a custom sourceURL for the template.\n * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });\n * compiled(data);\n * // => Find the source of \"greeting.jst\" under the Sources tab or Resources panel of the web inspector.\n *\n * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.\n * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });\n * compiled.source;\n * // => function(data) {\n * // var __t, __p = '';\n * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';\n * // return __p;\n * // }\n *\n * // Use custom template delimiters.\n * _.templateSettings.interpolate = /{{([\\s\\S]+?)}}/g;\n * var compiled = _.template('hello {{ user }}!');\n * compiled({ 'user': 'mustache' });\n * // => 'hello mustache!'\n *\n * // Use the `source` property to inline compiled templates for meaningful\n * // line numbers in error messages and stack traces.\n * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\\\n * var JST = {\\\n * \"main\": ' + _.template(mainText).source + '\\\n * };\\\n * ');\n */\n function template(string, options, guard) {\n // Based on John Resig's `tmpl` implementation\n // (http://ejohn.org/blog/javascript-micro-templating/)\n // and Laura Doktorova's doT.js (https://github.com/olado/doT).\n var settings = lodash.templateSettings;\n\n if (guard && isIterateeCall(string, options, guard)) {\n options = undefined;\n }\n string = toString(string);\n options = assignInWith({}, options, settings, customDefaultsAssignIn);\n\n var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),\n importsKeys = keys(imports),\n importsValues = baseValues(imports, importsKeys);\n\n var isEscaping,\n isEvaluating,\n index = 0,\n interpolate = options.interpolate || reNoMatch,\n source = \"__p += '\";\n\n // Compile the regexp to match each delimiter.\n var reDelimiters = RegExp(\n (options.escape || reNoMatch).source + '|' +\n interpolate.source + '|' +\n (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +\n (options.evaluate || reNoMatch).source + '|$'\n , 'g');\n\n // Use a sourceURL for easier debugging.\n // The sourceURL gets injected into the source that's eval-ed, so be careful\n // with lookup (in case of e.g. prototype pollution), and strip newlines if any.\n // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.\n var sourceURL = '//# sourceURL=' +\n (hasOwnProperty.call(options, 'sourceURL')\n ? (options.sourceURL + '').replace(/[\\r\\n]/g, ' ')\n : ('lodash.templateSources[' + (++templateCounter) + ']')\n ) + '\\n';\n\n string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {\n interpolateValue || (interpolateValue = esTemplateValue);\n\n // Escape characters that can't be included in string literals.\n source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);\n\n // Replace delimiters with snippets.\n if (escapeValue) {\n isEscaping = true;\n source += \"' +\\n__e(\" + escapeValue + \") +\\n'\";\n }\n if (evaluateValue) {\n isEvaluating = true;\n source += \"';\\n\" + evaluateValue + \";\\n__p += '\";\n }\n if (interpolateValue) {\n source += \"' +\\n((__t = (\" + interpolateValue + \")) == null ? '' : __t) +\\n'\";\n }\n index = offset + match.length;\n\n // The JS engine embedded in Adobe products needs `match` returned in\n // order to produce the correct `offset` value.\n return match;\n });\n\n source += \"';\\n\";\n\n // If `variable` is not specified wrap a with-statement around the generated\n // code to add the data object to the top of the scope chain.\n // Like with sourceURL, we take care to not check the option's prototype,\n // as this configuration is a code injection vector.\n var variable = hasOwnProperty.call(options, 'variable') && options.variable;\n if (!variable) {\n source = 'with (obj) {\\n' + source + '\\n}\\n';\n }\n // Cleanup code by stripping empty strings.\n source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)\n .replace(reEmptyStringMiddle, '$1')\n .replace(reEmptyStringTrailing, '$1;');\n\n // Frame code as the function body.\n source = 'function(' + (variable || 'obj') + ') {\\n' +\n (variable\n ? ''\n : 'obj || (obj = {});\\n'\n ) +\n \"var __t, __p = ''\" +\n (isEscaping\n ? ', __e = _.escape'\n : ''\n ) +\n (isEvaluating\n ? ', __j = Array.prototype.join;\\n' +\n \"function print() { __p += __j.call(arguments, '') }\\n\"\n : ';\\n'\n ) +\n source +\n 'return __p\\n}';\n\n var result = attempt(function() {\n return Function(importsKeys, sourceURL + 'return ' + source)\n .apply(undefined, importsValues);\n });\n\n // Provide the compiled function's source by its `toString` method or\n // the `source` property as a convenience for inlining compiled templates.\n result.source = source;\n if (isError(result)) {\n throw result;\n }\n return result;\n }\n\n /**\n * Converts `string`, as a whole, to lower case just like\n * [String#toLowerCase](https://mdn.io/toLowerCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.toLower('--Foo-Bar--');\n * // => '--foo-bar--'\n *\n * _.toLower('fooBar');\n * // => 'foobar'\n *\n * _.toLower('__FOO_BAR__');\n * // => '__foo_bar__'\n */\n function toLower(value) {\n return toString(value).toLowerCase();\n }\n\n /**\n * Converts `string`, as a whole, to upper case just like\n * [String#toUpperCase](https://mdn.io/toUpperCase).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.toUpper('--foo-bar--');\n * // => '--FOO-BAR--'\n *\n * _.toUpper('fooBar');\n * // => 'FOOBAR'\n *\n * _.toUpper('__foo_bar__');\n * // => '__FOO_BAR__'\n */\n function toUpper(value) {\n return toString(value).toUpperCase();\n }\n\n /**\n * Removes leading and trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trim(' abc ');\n * // => 'abc'\n *\n * _.trim('-_-abc-_-', '_-');\n * // => 'abc'\n *\n * _.map([' foo ', ' bar '], _.trim);\n * // => ['foo', 'bar']\n */\n function trim(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrim, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n chrSymbols = stringToArray(chars),\n start = charsStartIndex(strSymbols, chrSymbols),\n end = charsEndIndex(strSymbols, chrSymbols) + 1;\n\n return castSlice(strSymbols, start, end).join('');\n }\n\n /**\n * Removes trailing whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimEnd(' abc ');\n * // => ' abc'\n *\n * _.trimEnd('-_-abc-_-', '_-');\n * // => '-_-abc'\n */\n function trimEnd(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimEnd, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;\n\n return castSlice(strSymbols, 0, end).join('');\n }\n\n /**\n * Removes leading whitespace or specified characters from `string`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to trim.\n * @param {string} [chars=whitespace] The characters to trim.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the trimmed string.\n * @example\n *\n * _.trimStart(' abc ');\n * // => 'abc '\n *\n * _.trimStart('-_-abc-_-', '_-');\n * // => 'abc-_-'\n */\n function trimStart(string, chars, guard) {\n string = toString(string);\n if (string && (guard || chars === undefined)) {\n return string.replace(reTrimStart, '');\n }\n if (!string || !(chars = baseToString(chars))) {\n return string;\n }\n var strSymbols = stringToArray(string),\n start = charsStartIndex(strSymbols, stringToArray(chars));\n\n return castSlice(strSymbols, start).join('');\n }\n\n /**\n * Truncates `string` if it's longer than the given maximum string length.\n * The last characters of the truncated string are replaced with the omission\n * string which defaults to \"...\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to truncate.\n * @param {Object} [options={}] The options object.\n * @param {number} [options.length=30] The maximum string length.\n * @param {string} [options.omission='...'] The string to indicate text is omitted.\n * @param {RegExp|string} [options.separator] The separator pattern to truncate to.\n * @returns {string} Returns the truncated string.\n * @example\n *\n * _.truncate('hi-diddly-ho there, neighborino');\n * // => 'hi-diddly-ho there, neighbo...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': ' '\n * });\n * // => 'hi-diddly-ho there,...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'length': 24,\n * 'separator': /,? +/\n * });\n * // => 'hi-diddly-ho there...'\n *\n * _.truncate('hi-diddly-ho there, neighborino', {\n * 'omission': ' [...]'\n * });\n * // => 'hi-diddly-ho there, neig [...]'\n */\n function truncate(string, options) {\n var length = DEFAULT_TRUNC_LENGTH,\n omission = DEFAULT_TRUNC_OMISSION;\n\n if (isObject(options)) {\n var separator = 'separator' in options ? options.separator : separator;\n length = 'length' in options ? toInteger(options.length) : length;\n omission = 'omission' in options ? baseToString(options.omission) : omission;\n }\n string = toString(string);\n\n var strLength = string.length;\n if (hasUnicode(string)) {\n var strSymbols = stringToArray(string);\n strLength = strSymbols.length;\n }\n if (length >= strLength) {\n return string;\n }\n var end = length - stringSize(omission);\n if (end < 1) {\n return omission;\n }\n var result = strSymbols\n ? castSlice(strSymbols, 0, end).join('')\n : string.slice(0, end);\n\n if (separator === undefined) {\n return result + omission;\n }\n if (strSymbols) {\n end += (result.length - end);\n }\n if (isRegExp(separator)) {\n if (string.slice(end).search(separator)) {\n var match,\n substring = result;\n\n if (!separator.global) {\n separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');\n }\n separator.lastIndex = 0;\n while ((match = separator.exec(substring))) {\n var newEnd = match.index;\n }\n result = result.slice(0, newEnd === undefined ? end : newEnd);\n }\n } else if (string.indexOf(baseToString(separator), end) != end) {\n var index = result.lastIndexOf(separator);\n if (index > -1) {\n result = result.slice(0, index);\n }\n }\n return result + omission;\n }\n\n /**\n * The inverse of `_.escape`; this method converts the HTML entities\n * `&`, `<`, `>`, `"`, and `'` in `string` to\n * their corresponding characters.\n *\n * **Note:** No other HTML entities are unescaped. To unescape additional\n * HTML entities use a third-party library like [_he_](https://mths.be/he).\n *\n * @static\n * @memberOf _\n * @since 0.6.0\n * @category String\n * @param {string} [string=''] The string to unescape.\n * @returns {string} Returns the unescaped string.\n * @example\n *\n * _.unescape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function unescape(string) {\n string = toString(string);\n return (string && reHasEscapedHtml.test(string))\n ? string.replace(reEscapedHtml, unescapeHtmlChar)\n : string;\n }\n\n /**\n * Converts `string`, as space separated words, to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the upper cased string.\n * @example\n *\n * _.upperCase('--foo-bar');\n * // => 'FOO BAR'\n *\n * _.upperCase('fooBar');\n * // => 'FOO BAR'\n *\n * _.upperCase('__foo_bar__');\n * // => 'FOO BAR'\n */\n var upperCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toUpperCase();\n });\n\n /**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\n var upperFirst = createCaseFirst('toUpperCase');\n\n /**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\n function words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Attempts to invoke `func`, returning either the result or the caught error\n * object. Any additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Function} func The function to attempt.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {*} Returns the `func` result or error object.\n * @example\n *\n * // Avoid throwing errors for invalid selectors.\n * var elements = _.attempt(function(selector) {\n * return document.querySelectorAll(selector);\n * }, '>_>');\n *\n * if (_.isError(elements)) {\n * elements = [];\n * }\n */\n var attempt = baseRest(function(func, args) {\n try {\n return apply(func, undefined, args);\n } catch (e) {\n return isError(e) ? e : new Error(e);\n }\n });\n\n /**\n * Binds methods of an object to the object itself, overwriting the existing\n * method.\n *\n * **Note:** This method doesn't set the \"length\" property of bound functions.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Object} object The object to bind and assign the bound methods to.\n * @param {...(string|string[])} methodNames The object method names to bind.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var view = {\n * 'label': 'docs',\n * 'click': function() {\n * console.log('clicked ' + this.label);\n * }\n * };\n *\n * _.bindAll(view, ['click']);\n * jQuery(element).on('click', view.click);\n * // => Logs 'clicked docs' when clicked.\n */\n var bindAll = flatRest(function(object, methodNames) {\n arrayEach(methodNames, function(key) {\n key = toKey(key);\n baseAssignValue(object, key, bind(object[key], object));\n });\n return object;\n });\n\n /**\n * Creates a function that iterates over `pairs` and invokes the corresponding\n * function of the first predicate to return truthy. The predicate-function\n * pairs are invoked with the `this` binding and arguments of the created\n * function.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Array} pairs The predicate-function pairs.\n * @returns {Function} Returns the new composite function.\n * @example\n *\n * var func = _.cond([\n * [_.matches({ 'a': 1 }), _.constant('matches A')],\n * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],\n * [_.stubTrue, _.constant('no match')]\n * ]);\n *\n * func({ 'a': 1, 'b': 2 });\n * // => 'matches A'\n *\n * func({ 'a': 0, 'b': 1 });\n * // => 'matches B'\n *\n * func({ 'a': '1', 'b': '2' });\n * // => 'no match'\n */\n function cond(pairs) {\n var length = pairs == null ? 0 : pairs.length,\n toIteratee = getIteratee();\n\n pairs = !length ? [] : arrayMap(pairs, function(pair) {\n if (typeof pair[1] != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return [toIteratee(pair[0]), pair[1]];\n });\n\n return baseRest(function(args) {\n var index = -1;\n while (++index < length) {\n var pair = pairs[index];\n if (apply(pair[0], this, args)) {\n return apply(pair[1], this, args);\n }\n }\n });\n }\n\n /**\n * Creates a function that invokes the predicate properties of `source` with\n * the corresponding property values of a given object, returning `true` if\n * all predicates return truthy, else `false`.\n *\n * **Note:** The created function is equivalent to `_.conformsTo` with\n * `source` partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 2, 'b': 1 },\n * { 'a': 1, 'b': 2 }\n * ];\n *\n * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));\n * // => [{ 'a': 1, 'b': 2 }]\n */\n function conforms(source) {\n return baseConforms(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\n function constant(value) {\n return function() {\n return value;\n };\n }\n\n /**\n * Checks `value` to determine whether a default value should be returned in\n * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,\n * or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Util\n * @param {*} value The value to check.\n * @param {*} defaultValue The default value.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * _.defaultTo(1, 10);\n * // => 1\n *\n * _.defaultTo(undefined, 10);\n * // => 10\n */\n function defaultTo(value, defaultValue) {\n return (value == null || value !== value) ? defaultValue : value;\n }\n\n /**\n * Creates a function that returns the result of invoking the given functions\n * with the `this` binding of the created function, where each successive\n * invocation is supplied the return value of the previous.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flowRight\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flow([_.add, square]);\n * addSquare(1, 2);\n * // => 9\n */\n var flow = createFlow();\n\n /**\n * This method is like `_.flow` except that it creates a function that\n * invokes the given functions from right to left.\n *\n * @static\n * @since 3.0.0\n * @memberOf _\n * @category Util\n * @param {...(Function|Function[])} [funcs] The functions to invoke.\n * @returns {Function} Returns the new composite function.\n * @see _.flow\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var addSquare = _.flowRight([square, _.add]);\n * addSquare(1, 2);\n * // => 9\n */\n var flowRight = createFlow(true);\n\n /**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\n function identity(value) {\n return value;\n }\n\n /**\n * Creates a function that invokes `func` with the arguments of the created\n * function. If `func` is a property name, the created function returns the\n * property value for a given element. If `func` is an array or object, the\n * created function returns `true` for elements that contain the equivalent\n * source properties, otherwise it returns `false`.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Util\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @returns {Function} Returns the callback.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));\n * // => [{ 'user': 'barney', 'age': 36, 'active': true }]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, _.iteratee(['user', 'fred']));\n * // => [{ 'user': 'fred', 'age': 40 }]\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, _.iteratee('user'));\n * // => ['barney', 'fred']\n *\n * // Create custom iteratee shorthands.\n * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {\n * return !_.isRegExp(func) ? iteratee(func) : function(string) {\n * return func.test(string);\n * };\n * });\n *\n * _.filter(['abc', 'def'], /ef/);\n * // => ['def']\n */\n function iteratee(func) {\n return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between a given\n * object and `source`, returning `true` if the given object has equivalent\n * property values, else `false`.\n *\n * **Note:** The created function is equivalent to `_.isMatch` with `source`\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));\n * // => [{ 'a': 4, 'b': 5, 'c': 6 }]\n */\n function matches(source) {\n return baseMatches(baseClone(source, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that performs a partial deep comparison between the\n * value at `path` of a given object to `srcValue`, returning `true` if the\n * object value is equivalent, else `false`.\n *\n * **Note:** Partial comparisons will match empty array and empty object\n * `srcValue` values against any array or object value, respectively. See\n * `_.isEqual` for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n * @example\n *\n * var objects = [\n * { 'a': 1, 'b': 2, 'c': 3 },\n * { 'a': 4, 'b': 5, 'c': 6 }\n * ];\n *\n * _.find(objects, _.matchesProperty('a', 4));\n * // => { 'a': 4, 'b': 5, 'c': 6 }\n */\n function matchesProperty(path, srcValue) {\n return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));\n }\n\n /**\n * Creates a function that invokes the method at `path` of a given object.\n * Any additional arguments are provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': _.constant(2) } },\n * { 'a': { 'b': _.constant(1) } }\n * ];\n *\n * _.map(objects, _.method('a.b'));\n * // => [2, 1]\n *\n * _.map(objects, _.method(['a', 'b']));\n * // => [2, 1]\n */\n var method = baseRest(function(path, args) {\n return function(object) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * The opposite of `_.method`; this method creates a function that invokes\n * the method at a given path of `object`. Any additional arguments are\n * provided to the invoked method.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Util\n * @param {Object} object The object to query.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {Function} Returns the new invoker function.\n * @example\n *\n * var array = _.times(3, _.constant),\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.methodOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.methodOf(object));\n * // => [2, 0]\n */\n var methodOf = baseRest(function(object, args) {\n return function(path) {\n return baseInvoke(object, path, args);\n };\n });\n\n /**\n * Adds all own enumerable string keyed function properties of a source\n * object to the destination object. If `object` is a function, then methods\n * are added to its prototype as well.\n *\n * **Note:** Use `_.runInContext` to create a pristine `lodash` function to\n * avoid conflicts caused by modifying the original.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {Function|Object} [object=lodash] The destination object.\n * @param {Object} source The object of functions to add.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.chain=true] Specify whether mixins are chainable.\n * @returns {Function|Object} Returns `object`.\n * @example\n *\n * function vowels(string) {\n * return _.filter(string, function(v) {\n * return /[aeiou]/i.test(v);\n * });\n * }\n *\n * _.mixin({ 'vowels': vowels });\n * _.vowels('fred');\n * // => ['e']\n *\n * _('fred').vowels().value();\n * // => ['e']\n *\n * _.mixin({ 'vowels': vowels }, { 'chain': false });\n * _('fred').vowels();\n * // => ['e']\n */\n function mixin(object, source, options) {\n var props = keys(source),\n methodNames = baseFunctions(source, props);\n\n if (options == null &&\n !(isObject(source) && (methodNames.length || !props.length))) {\n options = source;\n source = object;\n object = this;\n methodNames = baseFunctions(source, keys(source));\n }\n var chain = !(isObject(options) && 'chain' in options) || !!options.chain,\n isFunc = isFunction(object);\n\n arrayEach(methodNames, function(methodName) {\n var func = source[methodName];\n object[methodName] = func;\n if (isFunc) {\n object.prototype[methodName] = function() {\n var chainAll = this.__chain__;\n if (chain || chainAll) {\n var result = object(this.__wrapped__),\n actions = result.__actions__ = copyArray(this.__actions__);\n\n actions.push({ 'func': func, 'args': arguments, 'thisArg': object });\n result.__chain__ = chainAll;\n return result;\n }\n return func.apply(object, arrayPush([this.value()], arguments));\n };\n }\n });\n\n return object;\n }\n\n /**\n * Reverts the `_` variable to its previous value and returns a reference to\n * the `lodash` function.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @returns {Function} Returns the `lodash` function.\n * @example\n *\n * var lodash = _.noConflict();\n */\n function noConflict() {\n if (root._ === this) {\n root._ = oldDash;\n }\n return this;\n }\n\n /**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\n function noop() {\n // No operation performed.\n }\n\n /**\n * Creates a function that gets the argument at index `n`. If `n` is negative,\n * the nth argument from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [n=0] The index of the argument to return.\n * @returns {Function} Returns the new pass-thru function.\n * @example\n *\n * var func = _.nthArg(1);\n * func('a', 'b', 'c', 'd');\n * // => 'b'\n *\n * var func = _.nthArg(-2);\n * func('a', 'b', 'c', 'd');\n * // => 'c'\n */\n function nthArg(n) {\n n = toInteger(n);\n return baseRest(function(args) {\n return baseNth(args, n);\n });\n }\n\n /**\n * Creates a function that invokes `iteratees` with the arguments it receives\n * and returns their results.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to invoke.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.over([Math.max, Math.min]);\n *\n * func(1, 2, 3, 4);\n * // => [4, 1]\n */\n var over = createOver(arrayMap);\n\n /**\n * Creates a function that checks if **all** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overEvery([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => false\n *\n * func(NaN);\n * // => false\n */\n var overEvery = createOver(arrayEvery);\n\n /**\n * Creates a function that checks if **any** of the `predicates` return\n * truthy when invoked with the arguments it receives.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {...(Function|Function[])} [predicates=[_.identity]]\n * The predicates to check.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var func = _.overSome([Boolean, isFinite]);\n *\n * func('1');\n * // => true\n *\n * func(null);\n * // => true\n *\n * func(NaN);\n * // => false\n */\n var overSome = createOver(arraySome);\n\n /**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\n function property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n }\n\n /**\n * The opposite of `_.property`; this method creates a function that returns\n * the value at a given path of `object`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Util\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var array = [0, 1, 2],\n * object = { 'a': array, 'b': array, 'c': array };\n *\n * _.map(['a[2]', 'c[0]'], _.propertyOf(object));\n * // => [2, 0]\n *\n * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));\n * // => [2, 0]\n */\n function propertyOf(object) {\n return function(path) {\n return object == null ? undefined : baseGet(object, path);\n };\n }\n\n /**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\n var range = createRange();\n\n /**\n * This method is like `_.range` except that it populates values in\n * descending order.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.range\n * @example\n *\n * _.rangeRight(4);\n * // => [3, 2, 1, 0]\n *\n * _.rangeRight(-4);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 5);\n * // => [4, 3, 2, 1]\n *\n * _.rangeRight(0, 20, 5);\n * // => [15, 10, 5, 0]\n *\n * _.rangeRight(0, -4, -1);\n * // => [-3, -2, -1, 0]\n *\n * _.rangeRight(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.rangeRight(0);\n * // => []\n */\n var rangeRight = createRange(true);\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n\n /**\n * This method returns a new empty object.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Object} Returns the new empty object.\n * @example\n *\n * var objects = _.times(2, _.stubObject);\n *\n * console.log(objects);\n * // => [{}, {}]\n *\n * console.log(objects[0] === objects[1]);\n * // => false\n */\n function stubObject() {\n return {};\n }\n\n /**\n * This method returns an empty string.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {string} Returns the empty string.\n * @example\n *\n * _.times(2, _.stubString);\n * // => ['', '']\n */\n function stubString() {\n return '';\n }\n\n /**\n * This method returns `true`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `true`.\n * @example\n *\n * _.times(2, _.stubTrue);\n * // => [true, true]\n */\n function stubTrue() {\n return true;\n }\n\n /**\n * Invokes the iteratee `n` times, returning an array of the results of\n * each invocation. The iteratee is invoked with one argument; (index).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.times(3, String);\n * // => ['0', '1', '2']\n *\n * _.times(4, _.constant(0));\n * // => [0, 0, 0, 0]\n */\n function times(n, iteratee) {\n n = toInteger(n);\n if (n < 1 || n > MAX_SAFE_INTEGER) {\n return [];\n }\n var index = MAX_ARRAY_LENGTH,\n length = nativeMin(n, MAX_ARRAY_LENGTH);\n\n iteratee = getIteratee(iteratee);\n n -= MAX_ARRAY_LENGTH;\n\n var result = baseTimes(length, iteratee);\n while (++index < n) {\n iteratee(index);\n }\n return result;\n }\n\n /**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\n function toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n }\n\n /**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\n function uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Adds two numbers.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {number} augend The first number in an addition.\n * @param {number} addend The second number in an addition.\n * @returns {number} Returns the total.\n * @example\n *\n * _.add(6, 4);\n * // => 10\n */\n var add = createMathOperation(function(augend, addend) {\n return augend + addend;\n }, 0);\n\n /**\n * Computes `number` rounded up to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round up.\n * @param {number} [precision=0] The precision to round up to.\n * @returns {number} Returns the rounded up number.\n * @example\n *\n * _.ceil(4.006);\n * // => 5\n *\n * _.ceil(6.004, 2);\n * // => 6.01\n *\n * _.ceil(6040, -2);\n * // => 6100\n */\n var ceil = createRound('ceil');\n\n /**\n * Divide two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} dividend The first number in a division.\n * @param {number} divisor The second number in a division.\n * @returns {number} Returns the quotient.\n * @example\n *\n * _.divide(6, 4);\n * // => 1.5\n */\n var divide = createMathOperation(function(dividend, divisor) {\n return dividend / divisor;\n }, 1);\n\n /**\n * Computes `number` rounded down to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round down.\n * @param {number} [precision=0] The precision to round down to.\n * @returns {number} Returns the rounded down number.\n * @example\n *\n * _.floor(4.006);\n * // => 4\n *\n * _.floor(0.046, 2);\n * // => 0.04\n *\n * _.floor(4060, -2);\n * // => 4000\n */\n var floor = createRound('floor');\n\n /**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\n function max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n }\n\n /**\n * This method is like `_.max` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.maxBy(objects, function(o) { return o.n; });\n * // => { 'n': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.maxBy(objects, 'n');\n * // => { 'n': 2 }\n */\n function maxBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)\n : undefined;\n }\n\n /**\n * Computes the mean of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the mean.\n * @example\n *\n * _.mean([4, 2, 8, 6]);\n * // => 5\n */\n function mean(array) {\n return baseMean(array, identity);\n }\n\n /**\n * This method is like `_.mean` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be averaged.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the mean.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.meanBy(objects, function(o) { return o.n; });\n * // => 5\n *\n * // The `_.property` iteratee shorthand.\n * _.meanBy(objects, 'n');\n * // => 5\n */\n function meanBy(array, iteratee) {\n return baseMean(array, getIteratee(iteratee, 2));\n }\n\n /**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\n function min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n }\n\n /**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\n function minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)\n : undefined;\n }\n\n /**\n * Multiply two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Math\n * @param {number} multiplier The first number in a multiplication.\n * @param {number} multiplicand The second number in a multiplication.\n * @returns {number} Returns the product.\n * @example\n *\n * _.multiply(6, 4);\n * // => 24\n */\n var multiply = createMathOperation(function(multiplier, multiplicand) {\n return multiplier * multiplicand;\n }, 1);\n\n /**\n * Computes `number` rounded to `precision`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Math\n * @param {number} number The number to round.\n * @param {number} [precision=0] The precision to round to.\n * @returns {number} Returns the rounded number.\n * @example\n *\n * _.round(4.006);\n * // => 4\n *\n * _.round(4.006, 2);\n * // => 4.01\n *\n * _.round(4060, -2);\n * // => 4100\n */\n var round = createRound('round');\n\n /**\n * Subtract two numbers.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {number} minuend The first number in a subtraction.\n * @param {number} subtrahend The second number in a subtraction.\n * @returns {number} Returns the difference.\n * @example\n *\n * _.subtract(6, 4);\n * // => 2\n */\n var subtract = createMathOperation(function(minuend, subtrahend) {\n return minuend - subtrahend;\n }, 0);\n\n /**\n * Computes the sum of the values in `array`.\n *\n * @static\n * @memberOf _\n * @since 3.4.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {number} Returns the sum.\n * @example\n *\n * _.sum([4, 2, 8, 6]);\n * // => 20\n */\n function sum(array) {\n return (array && array.length)\n ? baseSum(array, identity)\n : 0;\n }\n\n /**\n * This method is like `_.sum` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the value to be summed.\n * The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the sum.\n * @example\n *\n * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];\n *\n * _.sumBy(objects, function(o) { return o.n; });\n * // => 20\n *\n * // The `_.property` iteratee shorthand.\n * _.sumBy(objects, 'n');\n * // => 20\n */\n function sumBy(array, iteratee) {\n return (array && array.length)\n ? baseSum(array, getIteratee(iteratee, 2))\n : 0;\n }\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return wrapped values in chain sequences.\n lodash.after = after;\n lodash.ary = ary;\n lodash.assign = assign;\n lodash.assignIn = assignIn;\n lodash.assignInWith = assignInWith;\n lodash.assignWith = assignWith;\n lodash.at = at;\n lodash.before = before;\n lodash.bind = bind;\n lodash.bindAll = bindAll;\n lodash.bindKey = bindKey;\n lodash.castArray = castArray;\n lodash.chain = chain;\n lodash.chunk = chunk;\n lodash.compact = compact;\n lodash.concat = concat;\n lodash.cond = cond;\n lodash.conforms = conforms;\n lodash.constant = constant;\n lodash.countBy = countBy;\n lodash.create = create;\n lodash.curry = curry;\n lodash.curryRight = curryRight;\n lodash.debounce = debounce;\n lodash.defaults = defaults;\n lodash.defaultsDeep = defaultsDeep;\n lodash.defer = defer;\n lodash.delay = delay;\n lodash.difference = difference;\n lodash.differenceBy = differenceBy;\n lodash.differenceWith = differenceWith;\n lodash.drop = drop;\n lodash.dropRight = dropRight;\n lodash.dropRightWhile = dropRightWhile;\n lodash.dropWhile = dropWhile;\n lodash.fill = fill;\n lodash.filter = filter;\n lodash.flatMap = flatMap;\n lodash.flatMapDeep = flatMapDeep;\n lodash.flatMapDepth = flatMapDepth;\n lodash.flatten = flatten;\n lodash.flattenDeep = flattenDeep;\n lodash.flattenDepth = flattenDepth;\n lodash.flip = flip;\n lodash.flow = flow;\n lodash.flowRight = flowRight;\n lodash.fromPairs = fromPairs;\n lodash.functions = functions;\n lodash.functionsIn = functionsIn;\n lodash.groupBy = groupBy;\n lodash.initial = initial;\n lodash.intersection = intersection;\n lodash.intersectionBy = intersectionBy;\n lodash.intersectionWith = intersectionWith;\n lodash.invert = invert;\n lodash.invertBy = invertBy;\n lodash.invokeMap = invokeMap;\n lodash.iteratee = iteratee;\n lodash.keyBy = keyBy;\n lodash.keys = keys;\n lodash.keysIn = keysIn;\n lodash.map = map;\n lodash.mapKeys = mapKeys;\n lodash.mapValues = mapValues;\n lodash.matches = matches;\n lodash.matchesProperty = matchesProperty;\n lodash.memoize = memoize;\n lodash.merge = merge;\n lodash.mergeWith = mergeWith;\n lodash.method = method;\n lodash.methodOf = methodOf;\n lodash.mixin = mixin;\n lodash.negate = negate;\n lodash.nthArg = nthArg;\n lodash.omit = omit;\n lodash.omitBy = omitBy;\n lodash.once = once;\n lodash.orderBy = orderBy;\n lodash.over = over;\n lodash.overArgs = overArgs;\n lodash.overEvery = overEvery;\n lodash.overSome = overSome;\n lodash.partial = partial;\n lodash.partialRight = partialRight;\n lodash.partition = partition;\n lodash.pick = pick;\n lodash.pickBy = pickBy;\n lodash.property = property;\n lodash.propertyOf = propertyOf;\n lodash.pull = pull;\n lodash.pullAll = pullAll;\n lodash.pullAllBy = pullAllBy;\n lodash.pullAllWith = pullAllWith;\n lodash.pullAt = pullAt;\n lodash.range = range;\n lodash.rangeRight = rangeRight;\n lodash.rearg = rearg;\n lodash.reject = reject;\n lodash.remove = remove;\n lodash.rest = rest;\n lodash.reverse = reverse;\n lodash.sampleSize = sampleSize;\n lodash.set = set;\n lodash.setWith = setWith;\n lodash.shuffle = shuffle;\n lodash.slice = slice;\n lodash.sortBy = sortBy;\n lodash.sortedUniq = sortedUniq;\n lodash.sortedUniqBy = sortedUniqBy;\n lodash.split = split;\n lodash.spread = spread;\n lodash.tail = tail;\n lodash.take = take;\n lodash.takeRight = takeRight;\n lodash.takeRightWhile = takeRightWhile;\n lodash.takeWhile = takeWhile;\n lodash.tap = tap;\n lodash.throttle = throttle;\n lodash.thru = thru;\n lodash.toArray = toArray;\n lodash.toPairs = toPairs;\n lodash.toPairsIn = toPairsIn;\n lodash.toPath = toPath;\n lodash.toPlainObject = toPlainObject;\n lodash.transform = transform;\n lodash.unary = unary;\n lodash.union = union;\n lodash.unionBy = unionBy;\n lodash.unionWith = unionWith;\n lodash.uniq = uniq;\n lodash.uniqBy = uniqBy;\n lodash.uniqWith = uniqWith;\n lodash.unset = unset;\n lodash.unzip = unzip;\n lodash.unzipWith = unzipWith;\n lodash.update = update;\n lodash.updateWith = updateWith;\n lodash.values = values;\n lodash.valuesIn = valuesIn;\n lodash.without = without;\n lodash.words = words;\n lodash.wrap = wrap;\n lodash.xor = xor;\n lodash.xorBy = xorBy;\n lodash.xorWith = xorWith;\n lodash.zip = zip;\n lodash.zipObject = zipObject;\n lodash.zipObjectDeep = zipObjectDeep;\n lodash.zipWith = zipWith;\n\n // Add aliases.\n lodash.entries = toPairs;\n lodash.entriesIn = toPairsIn;\n lodash.extend = assignIn;\n lodash.extendWith = assignInWith;\n\n // Add methods to `lodash.prototype`.\n mixin(lodash, lodash);\n\n /*------------------------------------------------------------------------*/\n\n // Add methods that return unwrapped values in chain sequences.\n lodash.add = add;\n lodash.attempt = attempt;\n lodash.camelCase = camelCase;\n lodash.capitalize = capitalize;\n lodash.ceil = ceil;\n lodash.clamp = clamp;\n lodash.clone = clone;\n lodash.cloneDeep = cloneDeep;\n lodash.cloneDeepWith = cloneDeepWith;\n lodash.cloneWith = cloneWith;\n lodash.conformsTo = conformsTo;\n lodash.deburr = deburr;\n lodash.defaultTo = defaultTo;\n lodash.divide = divide;\n lodash.endsWith = endsWith;\n lodash.eq = eq;\n lodash.escape = escape;\n lodash.escapeRegExp = escapeRegExp;\n lodash.every = every;\n lodash.find = find;\n lodash.findIndex = findIndex;\n lodash.findKey = findKey;\n lodash.findLast = findLast;\n lodash.findLastIndex = findLastIndex;\n lodash.findLastKey = findLastKey;\n lodash.floor = floor;\n lodash.forEach = forEach;\n lodash.forEachRight = forEachRight;\n lodash.forIn = forIn;\n lodash.forInRight = forInRight;\n lodash.forOwn = forOwn;\n lodash.forOwnRight = forOwnRight;\n lodash.get = get;\n lodash.gt = gt;\n lodash.gte = gte;\n lodash.has = has;\n lodash.hasIn = hasIn;\n lodash.head = head;\n lodash.identity = identity;\n lodash.includes = includes;\n lodash.indexOf = indexOf;\n lodash.inRange = inRange;\n lodash.invoke = invoke;\n lodash.isArguments = isArguments;\n lodash.isArray = isArray;\n lodash.isArrayBuffer = isArrayBuffer;\n lodash.isArrayLike = isArrayLike;\n lodash.isArrayLikeObject = isArrayLikeObject;\n lodash.isBoolean = isBoolean;\n lodash.isBuffer = isBuffer;\n lodash.isDate = isDate;\n lodash.isElement = isElement;\n lodash.isEmpty = isEmpty;\n lodash.isEqual = isEqual;\n lodash.isEqualWith = isEqualWith;\n lodash.isError = isError;\n lodash.isFinite = isFinite;\n lodash.isFunction = isFunction;\n lodash.isInteger = isInteger;\n lodash.isLength = isLength;\n lodash.isMap = isMap;\n lodash.isMatch = isMatch;\n lodash.isMatchWith = isMatchWith;\n lodash.isNaN = isNaN;\n lodash.isNative = isNative;\n lodash.isNil = isNil;\n lodash.isNull = isNull;\n lodash.isNumber = isNumber;\n lodash.isObject = isObject;\n lodash.isObjectLike = isObjectLike;\n lodash.isPlainObject = isPlainObject;\n lodash.isRegExp = isRegExp;\n lodash.isSafeInteger = isSafeInteger;\n lodash.isSet = isSet;\n lodash.isString = isString;\n lodash.isSymbol = isSymbol;\n lodash.isTypedArray = isTypedArray;\n lodash.isUndefined = isUndefined;\n lodash.isWeakMap = isWeakMap;\n lodash.isWeakSet = isWeakSet;\n lodash.join = join;\n lodash.kebabCase = kebabCase;\n lodash.last = last;\n lodash.lastIndexOf = lastIndexOf;\n lodash.lowerCase = lowerCase;\n lodash.lowerFirst = lowerFirst;\n lodash.lt = lt;\n lodash.lte = lte;\n lodash.max = max;\n lodash.maxBy = maxBy;\n lodash.mean = mean;\n lodash.meanBy = meanBy;\n lodash.min = min;\n lodash.minBy = minBy;\n lodash.stubArray = stubArray;\n lodash.stubFalse = stubFalse;\n lodash.stubObject = stubObject;\n lodash.stubString = stubString;\n lodash.stubTrue = stubTrue;\n lodash.multiply = multiply;\n lodash.nth = nth;\n lodash.noConflict = noConflict;\n lodash.noop = noop;\n lodash.now = now;\n lodash.pad = pad;\n lodash.padEnd = padEnd;\n lodash.padStart = padStart;\n lodash.parseInt = parseInt;\n lodash.random = random;\n lodash.reduce = reduce;\n lodash.reduceRight = reduceRight;\n lodash.repeat = repeat;\n lodash.replace = replace;\n lodash.result = result;\n lodash.round = round;\n lodash.runInContext = runInContext;\n lodash.sample = sample;\n lodash.size = size;\n lodash.snakeCase = snakeCase;\n lodash.some = some;\n lodash.sortedIndex = sortedIndex;\n lodash.sortedIndexBy = sortedIndexBy;\n lodash.sortedIndexOf = sortedIndexOf;\n lodash.sortedLastIndex = sortedLastIndex;\n lodash.sortedLastIndexBy = sortedLastIndexBy;\n lodash.sortedLastIndexOf = sortedLastIndexOf;\n lodash.startCase = startCase;\n lodash.startsWith = startsWith;\n lodash.subtract = subtract;\n lodash.sum = sum;\n lodash.sumBy = sumBy;\n lodash.template = template;\n lodash.times = times;\n lodash.toFinite = toFinite;\n lodash.toInteger = toInteger;\n lodash.toLength = toLength;\n lodash.toLower = toLower;\n lodash.toNumber = toNumber;\n lodash.toSafeInteger = toSafeInteger;\n lodash.toString = toString;\n lodash.toUpper = toUpper;\n lodash.trim = trim;\n lodash.trimEnd = trimEnd;\n lodash.trimStart = trimStart;\n lodash.truncate = truncate;\n lodash.unescape = unescape;\n lodash.uniqueId = uniqueId;\n lodash.upperCase = upperCase;\n lodash.upperFirst = upperFirst;\n\n // Add aliases.\n lodash.each = forEach;\n lodash.eachRight = forEachRight;\n lodash.first = head;\n\n mixin(lodash, (function() {\n var source = {};\n baseForOwn(lodash, function(func, methodName) {\n if (!hasOwnProperty.call(lodash.prototype, methodName)) {\n source[methodName] = func;\n }\n });\n return source;\n }()), { 'chain': false });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The semantic version number.\n *\n * @static\n * @memberOf _\n * @type {string}\n */\n lodash.VERSION = VERSION;\n\n // Assign default placeholders.\n arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {\n lodash[methodName].placeholder = lodash;\n });\n\n // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.\n arrayEach(['drop', 'take'], function(methodName, index) {\n LazyWrapper.prototype[methodName] = function(n) {\n n = n === undefined ? 1 : nativeMax(toInteger(n), 0);\n\n var result = (this.__filtered__ && !index)\n ? new LazyWrapper(this)\n : this.clone();\n\n if (result.__filtered__) {\n result.__takeCount__ = nativeMin(n, result.__takeCount__);\n } else {\n result.__views__.push({\n 'size': nativeMin(n, MAX_ARRAY_LENGTH),\n 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')\n });\n }\n return result;\n };\n\n LazyWrapper.prototype[methodName + 'Right'] = function(n) {\n return this.reverse()[methodName](n).reverse();\n };\n });\n\n // Add `LazyWrapper` methods that accept an `iteratee` value.\n arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {\n var type = index + 1,\n isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;\n\n LazyWrapper.prototype[methodName] = function(iteratee) {\n var result = this.clone();\n result.__iteratees__.push({\n 'iteratee': getIteratee(iteratee, 3),\n 'type': type\n });\n result.__filtered__ = result.__filtered__ || isFilter;\n return result;\n };\n });\n\n // Add `LazyWrapper` methods for `_.head` and `_.last`.\n arrayEach(['head', 'last'], function(methodName, index) {\n var takeName = 'take' + (index ? 'Right' : '');\n\n LazyWrapper.prototype[methodName] = function() {\n return this[takeName](1).value()[0];\n };\n });\n\n // Add `LazyWrapper` methods for `_.initial` and `_.tail`.\n arrayEach(['initial', 'tail'], function(methodName, index) {\n var dropName = 'drop' + (index ? '' : 'Right');\n\n LazyWrapper.prototype[methodName] = function() {\n return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);\n };\n });\n\n LazyWrapper.prototype.compact = function() {\n return this.filter(identity);\n };\n\n LazyWrapper.prototype.find = function(predicate) {\n return this.filter(predicate).head();\n };\n\n LazyWrapper.prototype.findLast = function(predicate) {\n return this.reverse().find(predicate);\n };\n\n LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {\n if (typeof path == 'function') {\n return new LazyWrapper(this);\n }\n return this.map(function(value) {\n return baseInvoke(value, path, args);\n });\n });\n\n LazyWrapper.prototype.reject = function(predicate) {\n return this.filter(negate(getIteratee(predicate)));\n };\n\n LazyWrapper.prototype.slice = function(start, end) {\n start = toInteger(start);\n\n var result = this;\n if (result.__filtered__ && (start > 0 || end < 0)) {\n return new LazyWrapper(result);\n }\n if (start < 0) {\n result = result.takeRight(-start);\n } else if (start) {\n result = result.drop(start);\n }\n if (end !== undefined) {\n end = toInteger(end);\n result = end < 0 ? result.dropRight(-end) : result.take(end - start);\n }\n return result;\n };\n\n LazyWrapper.prototype.takeRightWhile = function(predicate) {\n return this.reverse().takeWhile(predicate).reverse();\n };\n\n LazyWrapper.prototype.toArray = function() {\n return this.take(MAX_ARRAY_LENGTH);\n };\n\n // Add `LazyWrapper` methods to `lodash.prototype`.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),\n isTaker = /^(?:head|last)$/.test(methodName),\n lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],\n retUnwrapped = isTaker || /^find/.test(methodName);\n\n if (!lodashFunc) {\n return;\n }\n lodash.prototype[methodName] = function() {\n var value = this.__wrapped__,\n args = isTaker ? [1] : arguments,\n isLazy = value instanceof LazyWrapper,\n iteratee = args[0],\n useLazy = isLazy || isArray(value);\n\n var interceptor = function(value) {\n var result = lodashFunc.apply(lodash, arrayPush([value], args));\n return (isTaker && chainAll) ? result[0] : result;\n };\n\n if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {\n // Avoid lazy use if the iteratee has a \"length\" value other than `1`.\n isLazy = useLazy = false;\n }\n var chainAll = this.__chain__,\n isHybrid = !!this.__actions__.length,\n isUnwrapped = retUnwrapped && !chainAll,\n onlyLazy = isLazy && !isHybrid;\n\n if (!retUnwrapped && useLazy) {\n value = onlyLazy ? value : new LazyWrapper(this);\n var result = func.apply(value, args);\n result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });\n return new LodashWrapper(result, chainAll);\n }\n if (isUnwrapped && onlyLazy) {\n return func.apply(this, args);\n }\n result = this.thru(interceptor);\n return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;\n };\n });\n\n // Add `Array` methods to `lodash.prototype`.\n arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {\n var func = arrayProto[methodName],\n chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',\n retUnwrapped = /^(?:pop|shift)$/.test(methodName);\n\n lodash.prototype[methodName] = function() {\n var args = arguments;\n if (retUnwrapped && !this.__chain__) {\n var value = this.value();\n return func.apply(isArray(value) ? value : [], args);\n }\n return this[chainName](function(value) {\n return func.apply(isArray(value) ? value : [], args);\n });\n };\n });\n\n // Map minified method names to their real names.\n baseForOwn(LazyWrapper.prototype, function(func, methodName) {\n var lodashFunc = lodash[methodName];\n if (lodashFunc) {\n var key = lodashFunc.name + '';\n if (!hasOwnProperty.call(realNames, key)) {\n realNames[key] = [];\n }\n realNames[key].push({ 'name': methodName, 'func': lodashFunc });\n }\n });\n\n realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{\n 'name': 'wrapper',\n 'func': undefined\n }];\n\n // Add methods to `LazyWrapper`.\n LazyWrapper.prototype.clone = lazyClone;\n LazyWrapper.prototype.reverse = lazyReverse;\n LazyWrapper.prototype.value = lazyValue;\n\n // Add chain sequence methods to the `lodash` wrapper.\n lodash.prototype.at = wrapperAt;\n lodash.prototype.chain = wrapperChain;\n lodash.prototype.commit = wrapperCommit;\n lodash.prototype.next = wrapperNext;\n lodash.prototype.plant = wrapperPlant;\n lodash.prototype.reverse = wrapperReverse;\n lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;\n\n // Add lazy aliases.\n lodash.prototype.first = lodash.prototype.head;\n\n if (symIterator) {\n lodash.prototype[symIterator] = wrapperToIterator;\n }\n return lodash;\n });\n\n /*--------------------------------------------------------------------------*/\n\n // Export lodash.\n var _ = runInContext();\n\n // Some AMD build optimizers, like r.js, check for condition patterns like:\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n // Expose Lodash on the global object to prevent errors when Lodash is\n // loaded by a script tag in the presence of an AMD loader.\n // See http://requirejs.org/docs/errors.html#mismatch for more details.\n // Use `_.noConflict` to remove Lodash from the global object.\n root._ = _;\n\n // Define as an anonymous module so, through path mapping, it can be\n // referenced as the \"underscore\" module.\n define(function() {\n return _;\n });\n }\n // Check for `exports` after `define` in case a build optimizer adds it.\n else if (freeModule) {\n // Export for Node.js.\n (freeModule.exports = _)._ = _;\n // Export for CommonJS support.\n freeExports._ = _;\n }\n else {\n // Export to the global object.\n root._ = _;\n }\n}.call(this));\n","//! moment.js locale configuration\n//! locale : Afrikaans [af]\n//! author : Werner Mollentze : https://github.com/wernerm\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var af = moment.defineLocale('af', {\n months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(\n '_'\n ),\n weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),\n weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),\n meridiemParse: /vm|nm/i,\n isPM: function (input) {\n return /^nm$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'vm' : 'VM';\n } else {\n return isLower ? 'nm' : 'NM';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Vandag om] LT',\n nextDay: '[Môre om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[Gister om] LT',\n lastWeek: '[Laas] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oor %s',\n past: '%s gelede',\n s: \"'n paar sekondes\",\n ss: '%d sekondes',\n m: \"'n minuut\",\n mm: '%d minute',\n h: \"'n uur\",\n hh: '%d ure',\n d: \"'n dag\",\n dd: '%d dae',\n M: \"'n maand\",\n MM: '%d maande',\n y: \"'n jaar\",\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n ); // Thanks to Joris Röling : https://github.com/jjupiter\n },\n week: {\n dow: 1, // Maandag is die eerste dag van die week.\n doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.\n },\n });\n\n return af;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Algeria) [ar-dz]\n//! author : Amine Roukh: https://github.com/Amine27\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'جانفي',\n 'فيفري',\n 'مارس',\n 'أفريل',\n 'ماي',\n 'جوان',\n 'جويلية',\n 'أوت',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var arDz = moment.defineLocale('ar-dz', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arDz;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Kuwait) [ar-kw]\n//! author : Nusret Parlak: https://github.com/nusretparlak\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arKw = moment.defineLocale('ar-kw', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arKw;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Lybia) [ar-ly]\n//! author : Ali Hmer: https://github.com/kikoanis\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n '0': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var arLy = moment.defineLocale('ar-ly', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arLy;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Morocco) [ar-ma]\n//! author : ElFadili Yassine : https://github.com/ElFadiliY\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arMa = moment.defineLocale('ar-ma', {\n months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return arMa;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Saudi Arabia) [ar-sa]\n//! author : Suhail Alkowaileet : https://github.com/xsoh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n };\n\n var arSa = moment.defineLocale('ar-sa', {\n months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return arSa;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic (Tunisia) [ar-tn]\n//! author : Nader Toukabri : https://github.com/naderio\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var arTn = moment.defineLocale('ar-tn', {\n months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(\n '_'\n ),\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[اليوم على الساعة] LT',\n nextDay: '[غدا على الساعة] LT',\n nextWeek: 'dddd [على الساعة] LT',\n lastDay: '[أمس على الساعة] LT',\n lastWeek: 'dddd [على الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'في %s',\n past: 'منذ %s',\n s: 'ثوان',\n ss: '%d ثانية',\n m: 'دقيقة',\n mm: '%d دقائق',\n h: 'ساعة',\n hh: '%d ساعات',\n d: 'يوم',\n dd: '%d أيام',\n M: 'شهر',\n MM: '%d أشهر',\n y: 'سنة',\n yy: '%d سنوات',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return arTn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Arabic [ar]\n//! author : Abdel Said: https://github.com/abdelsaid\n//! author : Ahmed Elkhatib\n//! author : forabi https://github.com/forabi\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n pluralForm = function (n) {\n return n === 0\n ? 0\n : n === 1\n ? 1\n : n === 2\n ? 2\n : n % 100 >= 3 && n % 100 <= 10\n ? 3\n : n % 100 >= 11\n ? 4\n : 5;\n },\n plurals = {\n s: [\n 'أقل من ثانية',\n 'ثانية واحدة',\n ['ثانيتان', 'ثانيتين'],\n '%d ثوان',\n '%d ثانية',\n '%d ثانية',\n ],\n m: [\n 'أقل من دقيقة',\n 'دقيقة واحدة',\n ['دقيقتان', 'دقيقتين'],\n '%d دقائق',\n '%d دقيقة',\n '%d دقيقة',\n ],\n h: [\n 'أقل من ساعة',\n 'ساعة واحدة',\n ['ساعتان', 'ساعتين'],\n '%d ساعات',\n '%d ساعة',\n '%d ساعة',\n ],\n d: [\n 'أقل من يوم',\n 'يوم واحد',\n ['يومان', 'يومين'],\n '%d أيام',\n '%d يومًا',\n '%d يوم',\n ],\n M: [\n 'أقل من شهر',\n 'شهر واحد',\n ['شهران', 'شهرين'],\n '%d أشهر',\n '%d شهرا',\n '%d شهر',\n ],\n y: [\n 'أقل من عام',\n 'عام واحد',\n ['عامان', 'عامين'],\n '%d أعوام',\n '%d عامًا',\n '%d عام',\n ],\n },\n pluralize = function (u) {\n return function (number, withoutSuffix, string, isFuture) {\n var f = pluralForm(number),\n str = plurals[u][pluralForm(number)];\n if (f === 2) {\n str = str[withoutSuffix ? 0 : 1];\n }\n return str.replace(/%d/i, number);\n };\n },\n months = [\n 'يناير',\n 'فبراير',\n 'مارس',\n 'أبريل',\n 'مايو',\n 'يونيو',\n 'يوليو',\n 'أغسطس',\n 'سبتمبر',\n 'أكتوبر',\n 'نوفمبر',\n 'ديسمبر',\n ];\n\n var ar = moment.defineLocale('ar', {\n months: months,\n monthsShort: months,\n weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),\n weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),\n weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/\\u200FM/\\u200FYYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ص|م/,\n isPM: function (input) {\n return 'م' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ص';\n } else {\n return 'م';\n }\n },\n calendar: {\n sameDay: '[اليوم عند الساعة] LT',\n nextDay: '[غدًا عند الساعة] LT',\n nextWeek: 'dddd [عند الساعة] LT',\n lastDay: '[أمس عند الساعة] LT',\n lastWeek: 'dddd [عند الساعة] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'بعد %s',\n past: 'منذ %s',\n s: pluralize('s'),\n ss: pluralize('s'),\n m: pluralize('m'),\n mm: pluralize('m'),\n h: pluralize('h'),\n hh: pluralize('h'),\n d: pluralize('d'),\n dd: pluralize('d'),\n M: pluralize('M'),\n MM: pluralize('M'),\n y: pluralize('y'),\n yy: pluralize('y'),\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ar;\n\n})));\n","//! moment.js locale configuration\n//! locale : Azerbaijani [az]\n//! author : topchiyev : https://github.com/topchiyev\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: '-inci',\n 5: '-inci',\n 8: '-inci',\n 70: '-inci',\n 80: '-inci',\n 2: '-nci',\n 7: '-nci',\n 20: '-nci',\n 50: '-nci',\n 3: '-üncü',\n 4: '-üncü',\n 100: '-üncü',\n 6: '-ncı',\n 9: '-uncu',\n 10: '-uncu',\n 30: '-uncu',\n 60: '-ıncı',\n 90: '-ıncı',\n };\n\n var az = moment.defineLocale('az', {\n months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(\n '_'\n ),\n monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),\n weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(\n '_'\n ),\n weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),\n weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[sabah saat] LT',\n nextWeek: '[gələn həftə] dddd [saat] LT',\n lastDay: '[dünən] LT',\n lastWeek: '[keçən həftə] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s əvvəl',\n s: 'birneçə saniyə',\n ss: '%d saniyə',\n m: 'bir dəqiqə',\n mm: '%d dəqiqə',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir il',\n yy: '%d il',\n },\n meridiemParse: /gecə|səhər|gündüz|axşam/,\n isPM: function (input) {\n return /^(gündüz|axşam)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'gecə';\n } else if (hour < 12) {\n return 'səhər';\n } else if (hour < 17) {\n return 'gündüz';\n } else {\n return 'axşam';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,\n ordinal: function (number) {\n if (number === 0) {\n // special case for zero\n return number + '-ıncı';\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return az;\n\n})));\n","//! moment.js locale configuration\n//! locale : Belarusian [be]\n//! author : Dmitry Demidov : https://github.com/demidov91\n//! author: Praleska: http://praleska.pro/\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',\n hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',\n dd: 'дзень_дні_дзён',\n MM: 'месяц_месяцы_месяцаў',\n yy: 'год_гады_гадоў',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвіліна' : 'хвіліну';\n } else if (key === 'h') {\n return withoutSuffix ? 'гадзіна' : 'гадзіну';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n\n var be = moment.defineLocale('be', {\n months: {\n format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(\n '_'\n ),\n standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(\n '_'\n ),\n },\n monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(\n '_'\n ),\n weekdays: {\n format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(\n '_'\n ),\n standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(\n '_'\n ),\n isFormat: /\\[ ?[Ууў] ?(?:мінулую|наступную)? ?\\] ?dddd/,\n },\n weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., HH:mm',\n LLLL: 'dddd, D MMMM YYYY г., HH:mm',\n },\n calendar: {\n sameDay: '[Сёння ў] LT',\n nextDay: '[Заўтра ў] LT',\n lastDay: '[Учора ў] LT',\n nextWeek: function () {\n return '[У] dddd [ў] LT';\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return '[У мінулую] dddd [ў] LT';\n case 1:\n case 2:\n case 4:\n return '[У мінулы] dddd [ў] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'праз %s',\n past: '%s таму',\n s: 'некалькі секунд',\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithPlural,\n hh: relativeTimeWithPlural,\n d: 'дзень',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночы|раніцы|дня|вечара/,\n isPM: function (input) {\n return /^(дня|вечара)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночы';\n } else if (hour < 12) {\n return 'раніцы';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечара';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(і|ы|га)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return (number % 10 === 2 || number % 10 === 3) &&\n number % 100 !== 12 &&\n number % 100 !== 13\n ? number + '-і'\n : number + '-ы';\n case 'D':\n return number + '-га';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return be;\n\n})));\n","//! moment.js locale configuration\n//! locale : Bulgarian [bg]\n//! author : Krasen Borisov : https://github.com/kraz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bg = moment.defineLocale('bg', {\n months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Днес в] LT',\n nextDay: '[Утре в] LT',\n nextWeek: 'dddd [в] LT',\n lastDay: '[Вчера в] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Миналата] dddd [в] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Миналия] dddd [в] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'след %s',\n past: 'преди %s',\n s: 'няколко секунди',\n ss: '%d секунди',\n m: 'минута',\n mm: '%d минути',\n h: 'час',\n hh: '%d часа',\n d: 'ден',\n dd: '%d дена',\n M: 'месец',\n MM: '%d месеца',\n y: 'година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bg;\n\n})));\n","//! moment.js locale configuration\n//! locale : Bambara [bm]\n//! author : Estelle Comment : https://github.com/estellecomment\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var bm = moment.defineLocale('bm', {\n months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(\n '_'\n ),\n monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),\n weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),\n weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),\n weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'MMMM [tile] D [san] YYYY',\n LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',\n },\n calendar: {\n sameDay: '[Bi lɛrɛ] LT',\n nextDay: '[Sini lɛrɛ] LT',\n nextWeek: 'dddd [don lɛrɛ] LT',\n lastDay: '[Kunu lɛrɛ] LT',\n lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s kɔnɔ',\n past: 'a bɛ %s bɔ',\n s: 'sanga dama dama',\n ss: 'sekondi %d',\n m: 'miniti kelen',\n mm: 'miniti %d',\n h: 'lɛrɛ kelen',\n hh: 'lɛrɛ %d',\n d: 'tile kelen',\n dd: 'tile %d',\n M: 'kalo kelen',\n MM: 'kalo %d',\n y: 'san kelen',\n yy: 'san %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return bm;\n\n})));\n","//! moment.js locale configuration\n//! locale : Bengali [bn]\n//! author : Kaushik Gandhi : https://github.com/kaushikgandhi\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '১',\n '2': '২',\n '3': '৩',\n '4': '৪',\n '5': '৫',\n '6': '৬',\n '7': '৭',\n '8': '৮',\n '9': '৯',\n '0': '০',\n },\n numberMap = {\n '১': '1',\n '২': '2',\n '৩': '3',\n '৪': '4',\n '৫': '5',\n '৬': '6',\n '৭': '7',\n '৮': '8',\n '৯': '9',\n '০': '0',\n };\n\n var bn = moment.defineLocale('bn', {\n months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(\n '_'\n ),\n monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(\n '_'\n ),\n weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(\n '_'\n ),\n weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),\n weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),\n longDateFormat: {\n LT: 'A h:mm সময়',\n LTS: 'A h:mm:ss সময়',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm সময়',\n LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',\n },\n calendar: {\n sameDay: '[আজ] LT',\n nextDay: '[আগামীকাল] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[গতকাল] LT',\n lastWeek: '[গত] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s পরে',\n past: '%s আগে',\n s: 'কয়েক সেকেন্ড',\n ss: '%d সেকেন্ড',\n m: 'এক মিনিট',\n mm: '%d মিনিট',\n h: 'এক ঘন্টা',\n hh: '%d ঘন্টা',\n d: 'এক দিন',\n dd: '%d দিন',\n M: 'এক মাস',\n MM: '%d মাস',\n y: 'এক বছর',\n yy: '%d বছর',\n },\n preparse: function (string) {\n return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'রাত' && hour >= 4) ||\n (meridiem === 'দুপুর' && hour < 5) ||\n meridiem === 'বিকাল'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'রাত';\n } else if (hour < 10) {\n return 'সকাল';\n } else if (hour < 17) {\n return 'দুপুর';\n } else if (hour < 20) {\n return 'বিকাল';\n } else {\n return 'রাত';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Tibetan [bo]\n//! author : Thupten N. Chakrishar : https://github.com/vajradog\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '༡',\n '2': '༢',\n '3': '༣',\n '4': '༤',\n '5': '༥',\n '6': '༦',\n '7': '༧',\n '8': '༨',\n '9': '༩',\n '0': '༠',\n },\n numberMap = {\n '༡': '1',\n '༢': '2',\n '༣': '3',\n '༤': '4',\n '༥': '5',\n '༦': '6',\n '༧': '7',\n '༨': '8',\n '༩': '9',\n '༠': '0',\n };\n\n var bo = moment.defineLocale('bo', {\n months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(\n '_'\n ),\n monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(\n '_'\n ),\n monthsShortRegex: /^(ཟླ་\\d{1,2})/,\n monthsParseExact: true,\n weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(\n '_'\n ),\n weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(\n '_'\n ),\n weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[དི་རིང] LT',\n nextDay: '[སང་ཉིན] LT',\n nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',\n lastDay: '[ཁ་སང] LT',\n lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ལ་',\n past: '%s སྔན་ལ',\n s: 'ལམ་སང',\n ss: '%d སྐར་ཆ།',\n m: 'སྐར་མ་གཅིག',\n mm: '%d སྐར་མ',\n h: 'ཆུ་ཚོད་གཅིག',\n hh: '%d ཆུ་ཚོད',\n d: 'ཉིན་གཅིག',\n dd: '%d ཉིན་',\n M: 'ཟླ་བ་གཅིག',\n MM: '%d ཟླ་བ',\n y: 'ལོ་གཅིག',\n yy: '%d ལོ',\n },\n preparse: function (string) {\n return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'མཚན་མོ' && hour >= 4) ||\n (meridiem === 'ཉིན་གུང' && hour < 5) ||\n meridiem === 'དགོང་དག'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'མཚན་མོ';\n } else if (hour < 10) {\n return 'ཞོགས་ཀས';\n } else if (hour < 17) {\n return 'ཉིན་གུང';\n } else if (hour < 20) {\n return 'དགོང་དག';\n } else {\n return 'མཚན་མོ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return bo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Breton [br]\n//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithMutation(number, withoutSuffix, key) {\n var format = {\n mm: 'munutenn',\n MM: 'miz',\n dd: 'devezh',\n };\n return number + ' ' + mutation(format[key], number);\n }\n function specialMutationForYears(number) {\n switch (lastNumber(number)) {\n case 1:\n case 3:\n case 4:\n case 5:\n case 9:\n return number + ' bloaz';\n default:\n return number + ' vloaz';\n }\n }\n function lastNumber(number) {\n if (number > 9) {\n return lastNumber(number % 10);\n }\n return number;\n }\n function mutation(text, number) {\n if (number === 2) {\n return softMutation(text);\n }\n return text;\n }\n function softMutation(text) {\n var mutationTable = {\n m: 'v',\n b: 'v',\n d: 'z',\n };\n if (mutationTable[text.charAt(0)] === undefined) {\n return text;\n }\n return mutationTable[text.charAt(0)] + text.substring(1);\n }\n\n var monthsParse = [\n /^gen/i,\n /^c[ʼ\\']hwe/i,\n /^meu/i,\n /^ebr/i,\n /^mae/i,\n /^(mez|eve)/i,\n /^gou/i,\n /^eos/i,\n /^gwe/i,\n /^her/i,\n /^du/i,\n /^ker/i,\n ],\n monthsRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n monthsStrictRegex = /^(genver|c[ʼ\\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,\n monthsShortStrictRegex = /^(gen|c[ʼ\\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,\n fullWeekdaysParse = [\n /^sul/i,\n /^lun/i,\n /^meurzh/i,\n /^merc[ʼ\\']her/i,\n /^yaou/i,\n /^gwener/i,\n /^sadorn/i,\n ],\n shortWeekdaysParse = [\n /^Sul/i,\n /^Lun/i,\n /^Meu/i,\n /^Mer/i,\n /^Yao/i,\n /^Gwe/i,\n /^Sad/i,\n ],\n minWeekdaysParse = [\n /^Su/i,\n /^Lu/i,\n /^Me([^r]|$)/i,\n /^Mer/i,\n /^Ya/i,\n /^Gw/i,\n /^Sa/i,\n ];\n\n var br = moment.defineLocale('br', {\n months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(\n '_'\n ),\n monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),\n weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),\n weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),\n weekdaysParse: minWeekdaysParse,\n fullWeekdaysParse: fullWeekdaysParse,\n shortWeekdaysParse: shortWeekdaysParse,\n minWeekdaysParse: minWeekdaysParse,\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [a viz] MMMM YYYY',\n LLL: 'D [a viz] MMMM YYYY HH:mm',\n LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hiziv da] LT',\n nextDay: '[Warcʼhoazh da] LT',\n nextWeek: 'dddd [da] LT',\n lastDay: '[Decʼh da] LT',\n lastWeek: 'dddd [paset da] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'a-benn %s',\n past: '%s ʼzo',\n s: 'un nebeud segondennoù',\n ss: '%d eilenn',\n m: 'ur vunutenn',\n mm: relativeTimeWithMutation,\n h: 'un eur',\n hh: '%d eur',\n d: 'un devezh',\n dd: relativeTimeWithMutation,\n M: 'ur miz',\n MM: relativeTimeWithMutation,\n y: 'ur bloaz',\n yy: specialMutationForYears,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(añ|vet)/,\n ordinal: function (number) {\n var output = number === 1 ? 'añ' : 'vet';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn\n isPM: function (token) {\n return token === 'g.m.';\n },\n meridiem: function (hour, minute, isLower) {\n return hour < 12 ? 'a.m.' : 'g.m.';\n },\n });\n\n return br;\n\n})));\n","//! moment.js locale configuration\n//! locale : Bosnian [bs]\n//! author : Nedim Cholich : https://github.com/frontyard\n//! based on (hr) translation by Bojan Marković\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var bs = moment.defineLocale('bs', {\n months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n return '[prošlu] dddd [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return bs;\n\n})));\n","//! moment.js locale configuration\n//! locale : Catalan [ca]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ca = moment.defineLocale('ca', {\n months: {\n standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(\n '_'\n ),\n format: \"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a les] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextDay: function () {\n return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastDay: function () {\n return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [passat a ' +\n (this.hours() !== 1 ? 'les' : 'la') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'uns segons',\n ss: '%d segons',\n m: 'un minut',\n mm: '%d minuts',\n h: 'una hora',\n hh: '%d hores',\n d: 'un dia',\n dd: '%d dies',\n M: 'un mes',\n MM: '%d mesos',\n y: 'un any',\n yy: '%d anys',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ca;\n\n})));\n","//! moment.js locale configuration\n//! locale : Czech [cs]\n//! author : petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(\n '_'\n ),\n monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),\n monthsParse = [\n /^led/i,\n /^úno/i,\n /^bře/i,\n /^dub/i,\n /^kvě/i,\n /^(čvn|červen$|června)/i,\n /^(čvc|červenec|července)/i,\n /^srp/i,\n /^zář/i,\n /^říj/i,\n /^lis/i,\n /^pro/i,\n ],\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;\n\n function plural(n) {\n return n > 1 && n < 5 && ~~(n / 10) !== 1;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekund');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minuty' : 'minut');\n } else {\n return result + 'minutami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodin');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'den' : 'dnem';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dny' : 'dní');\n } else {\n return result + 'dny';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'měsíce' : 'měsíců');\n } else {\n return result + 'měsíci';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokem';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'let');\n } else {\n return result + 'lety';\n }\n }\n }\n\n var cs = moment.defineLocale('cs', {\n months: months,\n monthsShort: monthsShort,\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.\n // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.\n monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,\n monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),\n weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),\n weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n l: 'D. M. YYYY',\n },\n calendar: {\n sameDay: '[dnes v] LT',\n nextDay: '[zítra v] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v neděli v] LT';\n case 1:\n case 2:\n return '[v] dddd [v] LT';\n case 3:\n return '[ve středu v] LT';\n case 4:\n return '[ve čtvrtek v] LT';\n case 5:\n return '[v pátek v] LT';\n case 6:\n return '[v sobotu v] LT';\n }\n },\n lastDay: '[včera v] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulou neděli v] LT';\n case 1:\n case 2:\n return '[minulé] dddd [v] LT';\n case 3:\n return '[minulou středu v] LT';\n case 4:\n case 5:\n return '[minulý] dddd [v] LT';\n case 6:\n return '[minulou sobotu v] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'před %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cs;\n\n})));\n","//! moment.js locale configuration\n//! locale : Chuvash [cv]\n//! author : Anatoly Mironov : https://github.com/mirontoli\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cv = moment.defineLocale('cv', {\n months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(\n '_'\n ),\n monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),\n weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(\n '_'\n ),\n weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),\n weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',\n LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',\n },\n calendar: {\n sameDay: '[Паян] LT [сехетре]',\n nextDay: '[Ыран] LT [сехетре]',\n lastDay: '[Ӗнер] LT [сехетре]',\n nextWeek: '[Ҫитес] dddd LT [сехетре]',\n lastWeek: '[Иртнӗ] dddd LT [сехетре]',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (output) {\n var affix = /сехет$/i.exec(output)\n ? 'рен'\n : /ҫул$/i.exec(output)\n ? 'тан'\n : 'ран';\n return output + affix;\n },\n past: '%s каялла',\n s: 'пӗр-ик ҫеккунт',\n ss: '%d ҫеккунт',\n m: 'пӗр минут',\n mm: '%d минут',\n h: 'пӗр сехет',\n hh: '%d сехет',\n d: 'пӗр кун',\n dd: '%d кун',\n M: 'пӗр уйӑх',\n MM: '%d уйӑх',\n y: 'пӗр ҫул',\n yy: '%d ҫул',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-мӗш/,\n ordinal: '%d-мӗш',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return cv;\n\n})));\n","//! moment.js locale configuration\n//! locale : Welsh [cy]\n//! author : Robert Allen : https://github.com/robgallen\n//! author : https://github.com/ryangreaves\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var cy = moment.defineLocale('cy', {\n months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(\n '_'\n ),\n monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(\n '_'\n ),\n weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(\n '_'\n ),\n weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),\n weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),\n weekdaysParseExact: true,\n // time formats are the same as en-gb\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Heddiw am] LT',\n nextDay: '[Yfory am] LT',\n nextWeek: 'dddd [am] LT',\n lastDay: '[Ddoe am] LT',\n lastWeek: 'dddd [diwethaf am] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'mewn %s',\n past: '%s yn ôl',\n s: 'ychydig eiliadau',\n ss: '%d eiliad',\n m: 'munud',\n mm: '%d munud',\n h: 'awr',\n hh: '%d awr',\n d: 'diwrnod',\n dd: '%d diwrnod',\n M: 'mis',\n MM: '%d mis',\n y: 'blwyddyn',\n yy: '%d flynedd',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,\n // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh\n ordinal: function (number) {\n var b = number,\n output = '',\n lookup = [\n '',\n 'af',\n 'il',\n 'ydd',\n 'ydd',\n 'ed',\n 'ed',\n 'ed',\n 'fed',\n 'fed',\n 'fed', // 1af to 10fed\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'eg',\n 'fed',\n 'eg',\n 'fed', // 11eg to 20fed\n ];\n if (b > 20) {\n if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {\n output = 'fed'; // not 30ain, 70ain or 90ain\n } else {\n output = 'ain';\n }\n } else if (b > 0) {\n output = lookup[b];\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return cy;\n\n})));\n","//! moment.js locale configuration\n//! locale : Danish [da]\n//! author : Ulrik Nielsen : https://github.com/mrbase\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var da = moment.defineLocale('da', {\n months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'på dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[i] dddd[s kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'få sekunder',\n ss: '%d sekunder',\n m: 'et minut',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dage',\n M: 'en måned',\n MM: '%d måneder',\n y: 'et år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return da;\n\n})));\n","//! moment.js locale configuration\n//! locale : German (Austria) [de-at]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Martin Groller : https://github.com/MadMG\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deAt = moment.defineLocale('de-at', {\n months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deAt;\n\n})));\n","//! moment.js locale configuration\n//! locale : German (Switzerland) [de-ch]\n//! author : sschueller : https://github.com/sschueller\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var deCh = moment.defineLocale('de-ch', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return deCh;\n\n})));\n","//! moment.js locale configuration\n//! locale : German [de]\n//! author : lluchs : https://github.com/lluchs\n//! author: Menelion Elensúle: https://github.com/Oire\n//! author : Mikolaj Dadela : https://github.com/mik01aj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eine Minute', 'einer Minute'],\n h: ['eine Stunde', 'einer Stunde'],\n d: ['ein Tag', 'einem Tag'],\n dd: [number + ' Tage', number + ' Tagen'],\n w: ['eine Woche', 'einer Woche'],\n M: ['ein Monat', 'einem Monat'],\n MM: [number + ' Monate', number + ' Monaten'],\n y: ['ein Jahr', 'einem Jahr'],\n yy: [number + ' Jahre', number + ' Jahren'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n\n var de = moment.defineLocale('de', {\n months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(\n '_'\n ),\n weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY HH:mm',\n LLLL: 'dddd, D. MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[heute um] LT [Uhr]',\n sameElse: 'L',\n nextDay: '[morgen um] LT [Uhr]',\n nextWeek: 'dddd [um] LT [Uhr]',\n lastDay: '[gestern um] LT [Uhr]',\n lastWeek: '[letzten] dddd [um] LT [Uhr]',\n },\n relativeTime: {\n future: 'in %s',\n past: 'vor %s',\n s: 'ein paar Sekunden',\n ss: '%d Sekunden',\n m: processRelativeTime,\n mm: '%d Minuten',\n h: processRelativeTime,\n hh: '%d Stunden',\n d: processRelativeTime,\n dd: processRelativeTime,\n w: processRelativeTime,\n ww: '%d Wochen',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return de;\n\n})));\n","//! moment.js locale configuration\n//! locale : Maldivian [dv]\n//! author : Jawish Hameed : https://github.com/jawish\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'ޖެނުއަރީ',\n 'ފެބްރުއަރީ',\n 'މާރިޗު',\n 'އޭޕްރީލު',\n 'މޭ',\n 'ޖޫން',\n 'ޖުލައި',\n 'އޯގަސްޓު',\n 'ސެޕްޓެމްބަރު',\n 'އޮކްޓޯބަރު',\n 'ނޮވެމްބަރު',\n 'ޑިސެމްބަރު',\n ],\n weekdays = [\n 'އާދިއްތަ',\n 'ހޯމަ',\n 'އަންގާރަ',\n 'ބުދަ',\n 'ބުރާސްފަތި',\n 'ހުކުރު',\n 'ހޮނިހިރު',\n ];\n\n var dv = moment.defineLocale('dv', {\n months: months,\n monthsShort: months,\n weekdays: weekdays,\n weekdaysShort: weekdays,\n weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'D/M/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /މކ|މފ/,\n isPM: function (input) {\n return 'މފ' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'މކ';\n } else {\n return 'މފ';\n }\n },\n calendar: {\n sameDay: '[މިއަދު] LT',\n nextDay: '[މާދަމާ] LT',\n nextWeek: 'dddd LT',\n lastDay: '[އިއްޔެ] LT',\n lastWeek: '[ފާއިތުވި] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ތެރޭގައި %s',\n past: 'ކުރިން %s',\n s: 'ސިކުންތުކޮޅެއް',\n ss: 'd% ސިކުންތު',\n m: 'މިނިޓެއް',\n mm: 'މިނިޓު %d',\n h: 'ގަޑިއިރެއް',\n hh: 'ގަޑިއިރު %d',\n d: 'ދުވަހެއް',\n dd: 'ދުވަސް %d',\n M: 'މަހެއް',\n MM: 'މަސް %d',\n y: 'އަހަރެއް',\n yy: 'އަހަރު %d',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 7, // Sunday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return dv;\n\n})));\n","//! moment.js locale configuration\n//! locale : Greek [el]\n//! author : Aggelos Karalias : https://github.com/mehiel\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n var el = moment.defineLocale('el', {\n monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(\n '_'\n ),\n monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(\n '_'\n ),\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return this._monthsNominativeEl;\n } else if (\n typeof format === 'string' &&\n /D/.test(format.substring(0, format.indexOf('MMMM')))\n ) {\n // if there is a day number before 'MMMM'\n return this._monthsGenitiveEl[momentToFormat.month()];\n } else {\n return this._monthsNominativeEl[momentToFormat.month()];\n }\n },\n monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),\n weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(\n '_'\n ),\n weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),\n weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'μμ' : 'ΜΜ';\n } else {\n return isLower ? 'πμ' : 'ΠΜ';\n }\n },\n isPM: function (input) {\n return (input + '').toLowerCase()[0] === 'μ';\n },\n meridiemParse: /[ΠΜ]\\.?Μ?\\.?/i,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendarEl: {\n sameDay: '[Σήμερα {}] LT',\n nextDay: '[Αύριο {}] LT',\n nextWeek: 'dddd [{}] LT',\n lastDay: '[Χθες {}] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 6:\n return '[το προηγούμενο] dddd [{}] LT';\n default:\n return '[την προηγούμενη] dddd [{}] LT';\n }\n },\n sameElse: 'L',\n },\n calendar: function (key, mom) {\n var output = this._calendarEl[key],\n hours = mom && mom.hours();\n if (isFunction(output)) {\n output = output.apply(mom);\n }\n return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');\n },\n relativeTime: {\n future: 'σε %s',\n past: '%s πριν',\n s: 'λίγα δευτερόλεπτα',\n ss: '%d δευτερόλεπτα',\n m: 'ένα λεπτό',\n mm: '%d λεπτά',\n h: 'μία ώρα',\n hh: '%d ώρες',\n d: 'μία μέρα',\n dd: '%d μέρες',\n M: 'ένας μήνας',\n MM: '%d μήνες',\n y: 'ένας χρόνος',\n yy: '%d χρόνια',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}η/,\n ordinal: '%dη',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4st is the first week of the year.\n },\n });\n\n return el;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (Australia) [en-au]\n//! author : Jared Morse : https://github.com/jarcoal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enAu = moment.defineLocale('en-au', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enAu;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (Canada) [en-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enCa = moment.defineLocale('en-ca', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'YYYY-MM-DD',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enCa;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (United Kingdom) [en-gb]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enGb = moment.defineLocale('en-gb', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enGb;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (Ireland) [en-ie]\n//! author : Chris Cartlidge : https://github.com/chriscartlidge\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIe = moment.defineLocale('en-ie', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enIe;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (Israel) [en-il]\n//! author : Chris Gedrim : https://github.com/chrisgedrim\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIl = moment.defineLocale('en-il', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n return enIl;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (India) [en-in]\n//! author : Jatin Agrawal : https://github.com/jatinag22\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enIn = moment.defineLocale('en-in', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 1st is the first week of the year.\n },\n });\n\n return enIn;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (New Zealand) [en-nz]\n//! author : Luke McGregor : https://github.com/lukemcgregor\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enNz = moment.defineLocale('en-nz', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enNz;\n\n})));\n","//! moment.js locale configuration\n//! locale : English (Singapore) [en-sg]\n//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var enSg = moment.defineLocale('en-sg', {\n months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return enSg;\n\n})));\n","//! moment.js locale configuration\n//! locale : Esperanto [eo]\n//! author : Colin Dean : https://github.com/colindean\n//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia\n//! comment : miestasmia corrected the translation by colindean\n//! comment : Vivakvo corrected the translation by colindean and miestasmia\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eo = moment.defineLocale('eo', {\n months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),\n weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),\n weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),\n weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: '[la] D[-an de] MMMM, YYYY',\n LLL: '[la] D[-an de] MMMM, YYYY HH:mm',\n LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',\n llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',\n },\n meridiemParse: /[ap]\\.t\\.m/i,\n isPM: function (input) {\n return input.charAt(0).toLowerCase() === 'p';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'p.t.m.' : 'P.T.M.';\n } else {\n return isLower ? 'a.t.m.' : 'A.T.M.';\n }\n },\n calendar: {\n sameDay: '[Hodiaŭ je] LT',\n nextDay: '[Morgaŭ je] LT',\n nextWeek: 'dddd[n je] LT',\n lastDay: '[Hieraŭ je] LT',\n lastWeek: '[pasintan] dddd[n je] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'post %s',\n past: 'antaŭ %s',\n s: 'kelkaj sekundoj',\n ss: '%d sekundoj',\n m: 'unu minuto',\n mm: '%d minutoj',\n h: 'unu horo',\n hh: '%d horoj',\n d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo\n dd: '%d tagoj',\n M: 'unu monato',\n MM: '%d monatoj',\n y: 'unu jaro',\n yy: '%d jaroj',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}a/,\n ordinal: '%da',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Spanish (Dominican Republic) [es-do]\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esDo = moment.defineLocale('es-do', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return esDo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Spanish (United States) [es-us]\n//! author : bustta : https://github.com/bustta\n//! author : chrisrodz : https://github.com/chrisrodz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var esUs = moment.defineLocale('es-us', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'MM/DD/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY h:mm A',\n LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return esUs;\n\n})));\n","//! moment.js locale configuration\n//! locale : Spanish [es]\n//! author : Julio Napurí : https://github.com/julionc\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(\n '_'\n ),\n monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),\n monthsParse = [\n /^ene/i,\n /^feb/i,\n /^mar/i,\n /^abr/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^ago/i,\n /^sep/i,\n /^oct/i,\n /^nov/i,\n /^dic/i,\n ],\n monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i;\n\n var es = moment.defineLocale('es', {\n months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortDot;\n } else if (/-MMM-/.test(format)) {\n return monthsShort[m.month()];\n } else {\n return monthsShortDot[m.month()];\n }\n },\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,\n monthsShortStrictRegex: /^(ene\\.?|feb\\.?|mar\\.?|abr\\.?|may\\.?|jun\\.?|jul\\.?|ago\\.?|sep\\.?|oct\\.?|nov\\.?|dic\\.?)/i,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextDay: function () {\n return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastDay: function () {\n return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';\n },\n lastWeek: function () {\n return (\n '[el] dddd [pasado a la' +\n (this.hours() !== 1 ? 's' : '') +\n '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'en %s',\n past: 'hace %s',\n s: 'unos segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'una hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un año',\n yy: '%d años',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n invalidDate: 'Fecha invalida',\n });\n\n return es;\n\n})));\n","//! moment.js locale configuration\n//! locale : Estonian [et]\n//! author : Henry Kehlmann : https://github.com/madhenry\n//! improvements : Illimar Tambek : https://github.com/ragulka\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],\n ss: [number + 'sekundi', number + 'sekundit'],\n m: ['ühe minuti', 'üks minut'],\n mm: [number + ' minuti', number + ' minutit'],\n h: ['ühe tunni', 'tund aega', 'üks tund'],\n hh: [number + ' tunni', number + ' tundi'],\n d: ['ühe päeva', 'üks päev'],\n M: ['kuu aja', 'kuu aega', 'üks kuu'],\n MM: [number + ' kuu', number + ' kuud'],\n y: ['ühe aasta', 'aasta', 'üks aasta'],\n yy: [number + ' aasta', number + ' aastat'],\n };\n if (withoutSuffix) {\n return format[key][2] ? format[key][2] : format[key][1];\n }\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var et = moment.defineLocale('et', {\n months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(\n '_'\n ),\n monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(\n '_'\n ),\n weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(\n '_'\n ),\n weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),\n weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Täna,] LT',\n nextDay: '[Homme,] LT',\n nextWeek: '[Järgmine] dddd LT',\n lastDay: '[Eile,] LT',\n lastWeek: '[Eelmine] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s pärast',\n past: '%s tagasi',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: '%d päeva',\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return et;\n\n})));\n","//! moment.js locale configuration\n//! locale : Basque [eu]\n//! author : Eneko Illarramendi : https://github.com/eillarra\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var eu = moment.defineLocale('eu', {\n months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(\n '_'\n ),\n monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(\n '_'\n ),\n weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),\n weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY[ko] MMMM[ren] D[a]',\n LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',\n LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',\n l: 'YYYY-M-D',\n ll: 'YYYY[ko] MMM D[a]',\n lll: 'YYYY[ko] MMM D[a] HH:mm',\n llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',\n },\n calendar: {\n sameDay: '[gaur] LT[etan]',\n nextDay: '[bihar] LT[etan]',\n nextWeek: 'dddd LT[etan]',\n lastDay: '[atzo] LT[etan]',\n lastWeek: '[aurreko] dddd LT[etan]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s barru',\n past: 'duela %s',\n s: 'segundo batzuk',\n ss: '%d segundo',\n m: 'minutu bat',\n mm: '%d minutu',\n h: 'ordu bat',\n hh: '%d ordu',\n d: 'egun bat',\n dd: '%d egun',\n M: 'hilabete bat',\n MM: '%d hilabete',\n y: 'urte bat',\n yy: '%d urte',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return eu;\n\n})));\n","//! moment.js locale configuration\n//! locale : Persian [fa]\n//! author : Ebrahim Byagowi : https://github.com/ebraminio\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '۱',\n '2': '۲',\n '3': '۳',\n '4': '۴',\n '5': '۵',\n '6': '۶',\n '7': '۷',\n '8': '۸',\n '9': '۹',\n '0': '۰',\n },\n numberMap = {\n '۱': '1',\n '۲': '2',\n '۳': '3',\n '۴': '4',\n '۵': '5',\n '۶': '6',\n '۷': '7',\n '۸': '8',\n '۹': '9',\n '۰': '0',\n };\n\n var fa = moment.defineLocale('fa', {\n months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(\n '_'\n ),\n weekdays: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysShort: 'یک\\u200cشنبه_دوشنبه_سه\\u200cشنبه_چهارشنبه_پنج\\u200cشنبه_جمعه_شنبه'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /قبل از ظهر|بعد از ظهر/,\n isPM: function (input) {\n return /بعد از ظهر/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'قبل از ظهر';\n } else {\n return 'بعد از ظهر';\n }\n },\n calendar: {\n sameDay: '[امروز ساعت] LT',\n nextDay: '[فردا ساعت] LT',\n nextWeek: 'dddd [ساعت] LT',\n lastDay: '[دیروز ساعت] LT',\n lastWeek: 'dddd [پیش] [ساعت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'در %s',\n past: '%s پیش',\n s: 'چند ثانیه',\n ss: '%d ثانیه',\n m: 'یک دقیقه',\n mm: '%d دقیقه',\n h: 'یک ساعت',\n hh: '%d ساعت',\n d: 'یک روز',\n dd: '%d روز',\n M: 'یک ماه',\n MM: '%d ماه',\n y: 'یک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string\n .replace(/[۰-۹]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n dayOfMonthOrdinalParse: /\\d{1,2}م/,\n ordinal: '%dم',\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return fa;\n\n})));\n","//! moment.js locale configuration\n//! locale : Finnish [fi]\n//! author : Tarmo Aidantausta : https://github.com/bleadof\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(\n ' '\n ),\n numbersFuture = [\n 'nolla',\n 'yhden',\n 'kahden',\n 'kolmen',\n 'neljän',\n 'viiden',\n 'kuuden',\n numbersPast[7],\n numbersPast[8],\n numbersPast[9],\n ];\n function translate(number, withoutSuffix, key, isFuture) {\n var result = '';\n switch (key) {\n case 's':\n return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';\n case 'ss':\n result = isFuture ? 'sekunnin' : 'sekuntia';\n break;\n case 'm':\n return isFuture ? 'minuutin' : 'minuutti';\n case 'mm':\n result = isFuture ? 'minuutin' : 'minuuttia';\n break;\n case 'h':\n return isFuture ? 'tunnin' : 'tunti';\n case 'hh':\n result = isFuture ? 'tunnin' : 'tuntia';\n break;\n case 'd':\n return isFuture ? 'päivän' : 'päivä';\n case 'dd':\n result = isFuture ? 'päivän' : 'päivää';\n break;\n case 'M':\n return isFuture ? 'kuukauden' : 'kuukausi';\n case 'MM':\n result = isFuture ? 'kuukauden' : 'kuukautta';\n break;\n case 'y':\n return isFuture ? 'vuoden' : 'vuosi';\n case 'yy':\n result = isFuture ? 'vuoden' : 'vuotta';\n break;\n }\n result = verbalNumber(number, isFuture) + ' ' + result;\n return result;\n }\n function verbalNumber(number, isFuture) {\n return number < 10\n ? isFuture\n ? numbersFuture[number]\n : numbersPast[number]\n : number;\n }\n\n var fi = moment.defineLocale('fi', {\n months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(\n '_'\n ),\n monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(\n '_'\n ),\n weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(\n '_'\n ),\n weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),\n weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM[ta] YYYY',\n LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',\n LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',\n l: 'D.M.YYYY',\n ll: 'Do MMM YYYY',\n lll: 'Do MMM YYYY, [klo] HH.mm',\n llll: 'ddd, Do MMM YYYY, [klo] HH.mm',\n },\n calendar: {\n sameDay: '[tänään] [klo] LT',\n nextDay: '[huomenna] [klo] LT',\n nextWeek: 'dddd [klo] LT',\n lastDay: '[eilen] [klo] LT',\n lastWeek: '[viime] dddd[na] [klo] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s päästä',\n past: '%s sitten',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fi;\n\n})));\n","//! moment.js locale configuration\n//! locale : Filipino [fil]\n//! author : Dan Hagman : https://github.com/hagmandan\n//! author : Matthew Co : https://github.com/matthewdeeco\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fil = moment.defineLocale('fil', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fil;\n\n})));\n","//! moment.js locale configuration\n//! locale : Faroese [fo]\n//! author : Ragnar Johannesen : https://github.com/ragnar123\n//! author : Kristian Sakarisson : https://github.com/sakarisson\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var fo = moment.defineLocale('fo', {\n months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),\n weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),\n weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D. MMMM, YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Í dag kl.] LT',\n nextDay: '[Í morgin kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[Í gjár kl.] LT',\n lastWeek: '[síðstu] dddd [kl] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'um %s',\n past: '%s síðani',\n s: 'fá sekund',\n ss: '%d sekundir',\n m: 'ein minuttur',\n mm: '%d minuttir',\n h: 'ein tími',\n hh: '%d tímar',\n d: 'ein dagur',\n dd: '%d dagar',\n M: 'ein mánaður',\n MM: '%d mánaðir',\n y: 'eitt ár',\n yy: '%d ár',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fo;\n\n})));\n","//! moment.js locale configuration\n//! locale : French (Canada) [fr-ca]\n//! author : Jonathan Abourbih : https://github.com/jonbca\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCa = moment.defineLocale('fr-ca', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n });\n\n return frCa;\n\n})));\n","//! moment.js locale configuration\n//! locale : French (Switzerland) [fr-ch]\n//! author : Gaspard Bucher : https://github.com/gaspard\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var frCh = moment.defineLocale('fr-ch', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|e)/,\n ordinal: function (number, period) {\n switch (period) {\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'D':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return frCh;\n\n})));\n","//! moment.js locale configuration\n//! locale : French [fr]\n//! author : John Fischer : https://github.com/jfroffice\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsShortStrictRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?)/i,\n monthsRegex = /(janv\\.?|févr\\.?|mars|avr\\.?|mai|juin|juil\\.?|août|sept\\.?|oct\\.?|nov\\.?|déc\\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,\n monthsParse = [\n /^janv/i,\n /^févr/i,\n /^mars/i,\n /^avr/i,\n /^mai/i,\n /^juin/i,\n /^juil/i,\n /^août/i,\n /^sept/i,\n /^oct/i,\n /^nov/i,\n /^déc/i,\n ];\n\n var fr = moment.defineLocale('fr', {\n months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(\n '_'\n ),\n monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(\n '_'\n ),\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: monthsStrictRegex,\n monthsShortStrictRegex: monthsShortStrictRegex,\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),\n weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),\n weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Aujourd’hui à] LT',\n nextDay: '[Demain à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[Hier à] LT',\n lastWeek: 'dddd [dernier à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dans %s',\n past: 'il y a %s',\n s: 'quelques secondes',\n ss: '%d secondes',\n m: 'une minute',\n mm: '%d minutes',\n h: 'une heure',\n hh: '%d heures',\n d: 'un jour',\n dd: '%d jours',\n M: 'un mois',\n MM: '%d mois',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er|)/,\n ordinal: function (number, period) {\n switch (period) {\n // TODO: Return 'e' when day of month > 1. Move this case inside\n // block for masculine words below.\n // See https://github.com/moment/moment/issues/3375\n case 'D':\n return number + (number === 1 ? 'er' : '');\n\n // Words with masculine grammatical gender: mois, trimestre, jour\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n return number + (number === 1 ? 'er' : 'e');\n\n // Words with feminine grammatical gender: semaine\n case 'w':\n case 'W':\n return number + (number === 1 ? 're' : 'e');\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fr;\n\n})));\n","//! moment.js locale configuration\n//! locale : Frisian [fy]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(\n '_'\n );\n\n var fy = moment.defineLocale('fy', {\n months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n monthsParseExact: true,\n weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(\n '_'\n ),\n weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),\n weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[hjoed om] LT',\n nextDay: '[moarn om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[juster om] LT',\n lastWeek: '[ôfrûne] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'oer %s',\n past: '%s lyn',\n s: 'in pear sekonden',\n ss: '%d sekonden',\n m: 'ien minút',\n mm: '%d minuten',\n h: 'ien oere',\n hh: '%d oeren',\n d: 'ien dei',\n dd: '%d dagen',\n M: 'ien moanne',\n MM: '%d moannen',\n y: 'ien jier',\n yy: '%d jierren',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return fy;\n\n})));\n","//! moment.js locale configuration\n//! locale : Irish or Irish Gaelic [ga]\n//! author : André Silva : https://github.com/askpt\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Eanáir',\n 'Feabhra',\n 'Márta',\n 'Aibreán',\n 'Bealtaine',\n 'Meitheamh',\n 'Iúil',\n 'Lúnasa',\n 'Meán Fómhair',\n 'Deireadh Fómhair',\n 'Samhain',\n 'Nollaig',\n ],\n monthsShort = [\n 'Ean',\n 'Feabh',\n 'Márt',\n 'Aib',\n 'Beal',\n 'Meith',\n 'Iúil',\n 'Lún',\n 'M.F.',\n 'D.F.',\n 'Samh',\n 'Noll',\n ],\n weekdays = [\n 'Dé Domhnaigh',\n 'Dé Luain',\n 'Dé Máirt',\n 'Dé Céadaoin',\n 'Déardaoin',\n 'Dé hAoine',\n 'Dé Sathairn',\n ],\n weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],\n weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];\n\n var ga = moment.defineLocale('ga', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Inniu ag] LT',\n nextDay: '[Amárach ag] LT',\n nextWeek: 'dddd [ag] LT',\n lastDay: '[Inné ag] LT',\n lastWeek: 'dddd [seo caite] [ag] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i %s',\n past: '%s ó shin',\n s: 'cúpla soicind',\n ss: '%d soicind',\n m: 'nóiméad',\n mm: '%d nóiméad',\n h: 'uair an chloig',\n hh: '%d uair an chloig',\n d: 'lá',\n dd: '%d lá',\n M: 'mí',\n MM: '%d míonna',\n y: 'bliain',\n yy: '%d bliain',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ga;\n\n})));\n","//! moment.js locale configuration\n//! locale : Scottish Gaelic [gd]\n//! author : Jon Ashdown : https://github.com/jonashdown\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'Am Faoilleach',\n 'An Gearran',\n 'Am Màrt',\n 'An Giblean',\n 'An Cèitean',\n 'An t-Ògmhios',\n 'An t-Iuchar',\n 'An Lùnastal',\n 'An t-Sultain',\n 'An Dàmhair',\n 'An t-Samhain',\n 'An Dùbhlachd',\n ],\n monthsShort = [\n 'Faoi',\n 'Gear',\n 'Màrt',\n 'Gibl',\n 'Cèit',\n 'Ògmh',\n 'Iuch',\n 'Lùn',\n 'Sult',\n 'Dàmh',\n 'Samh',\n 'Dùbh',\n ],\n weekdays = [\n 'Didòmhnaich',\n 'Diluain',\n 'Dimàirt',\n 'Diciadain',\n 'Diardaoin',\n 'Dihaoine',\n 'Disathairne',\n ],\n weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],\n weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];\n\n var gd = moment.defineLocale('gd', {\n months: months,\n monthsShort: monthsShort,\n monthsParseExact: true,\n weekdays: weekdays,\n weekdaysShort: weekdaysShort,\n weekdaysMin: weekdaysMin,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[An-diugh aig] LT',\n nextDay: '[A-màireach aig] LT',\n nextWeek: 'dddd [aig] LT',\n lastDay: '[An-dè aig] LT',\n lastWeek: 'dddd [seo chaidh] [aig] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ann an %s',\n past: 'bho chionn %s',\n s: 'beagan diogan',\n ss: '%d diogan',\n m: 'mionaid',\n mm: '%d mionaidean',\n h: 'uair',\n hh: '%d uairean',\n d: 'latha',\n dd: '%d latha',\n M: 'mìos',\n MM: '%d mìosan',\n y: 'bliadhna',\n yy: '%d bliadhna',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(d|na|mh)/,\n ordinal: function (number) {\n var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gd;\n\n})));\n","//! moment.js locale configuration\n//! locale : Galician [gl]\n//! author : Juan G. Hurtado : https://github.com/juanghurtado\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var gl = moment.defineLocale('gl', {\n months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(\n '_'\n ),\n monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),\n weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),\n weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY H:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',\n },\n calendar: {\n sameDay: function () {\n return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextDay: function () {\n return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';\n },\n nextWeek: function () {\n return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';\n },\n lastDay: function () {\n return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';\n },\n lastWeek: function () {\n return (\n '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'\n );\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (str) {\n if (str.indexOf('un') === 0) {\n return 'n' + str;\n }\n return 'en ' + str;\n },\n past: 'hai %s',\n s: 'uns segundos',\n ss: '%d segundos',\n m: 'un minuto',\n mm: '%d minutos',\n h: 'unha hora',\n hh: '%d horas',\n d: 'un día',\n dd: '%d días',\n M: 'un mes',\n MM: '%d meses',\n y: 'un ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return gl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Konkani Devanagari script [gom-deva]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],\n ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],\n m: ['एका मिणटान', 'एक मिनूट'],\n mm: [number + ' मिणटांनी', number + ' मिणटां'],\n h: ['एका वरान', 'एक वर'],\n hh: [number + ' वरांनी', number + ' वरां'],\n d: ['एका दिसान', 'एक दीस'],\n dd: [number + ' दिसांनी', number + ' दीस'],\n M: ['एका म्हयन्यान', 'एक म्हयनो'],\n MM: [number + ' म्हयन्यानी', number + ' म्हयने'],\n y: ['एका वर्सान', 'एक वर्स'],\n yy: [number + ' वर्सांनी', number + ' वर्सां'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomDeva = moment.defineLocale('gom-deva', {\n months: {\n standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),\n weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),\n weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [वाजतां]',\n LTS: 'A h:mm:ss [वाजतां]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [वाजतां]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',\n llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',\n },\n calendar: {\n sameDay: '[आयज] LT',\n nextDay: '[फाल्यां] LT',\n nextWeek: '[फुडलो] dddd[,] LT',\n lastDay: '[काल] LT',\n lastWeek: '[फाटलो] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s आदीं',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(वेर)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'वेर' only applies to day of the month\n case 'D':\n return number + 'वेर';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राती') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सकाळीं') {\n return hour;\n } else if (meridiem === 'दनपारां') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'सांजे') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'राती';\n } else if (hour < 12) {\n return 'सकाळीं';\n } else if (hour < 16) {\n return 'दनपारां';\n } else if (hour < 20) {\n return 'सांजे';\n } else {\n return 'राती';\n }\n },\n });\n\n return gomDeva;\n\n})));\n","//! moment.js locale configuration\n//! locale : Konkani Latin script [gom-latn]\n//! author : The Discoverer : https://github.com/WikiDiscoverer\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['thoddea sekondamni', 'thodde sekond'],\n ss: [number + ' sekondamni', number + ' sekond'],\n m: ['eka mintan', 'ek minut'],\n mm: [number + ' mintamni', number + ' mintam'],\n h: ['eka voran', 'ek vor'],\n hh: [number + ' voramni', number + ' voram'],\n d: ['eka disan', 'ek dis'],\n dd: [number + ' disamni', number + ' dis'],\n M: ['eka mhoinean', 'ek mhoino'],\n MM: [number + ' mhoineamni', number + ' mhoine'],\n y: ['eka vorsan', 'ek voros'],\n yy: [number + ' vorsamni', number + ' vorsam'],\n };\n return isFuture ? format[key][0] : format[key][1];\n }\n\n var gomLatn = moment.defineLocale('gom-latn', {\n months: {\n standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(\n '_'\n ),\n format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(\n '_'\n ),\n isFormat: /MMMM(\\s)+D[oD]?/,\n },\n monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: \"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var\".split('_'),\n weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),\n weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'A h:mm [vazta]',\n LTS: 'A h:mm:ss [vazta]',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY A h:mm [vazta]',\n LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',\n llll: 'ddd, D MMM YYYY, A h:mm [vazta]',\n },\n calendar: {\n sameDay: '[Aiz] LT',\n nextDay: '[Faleam] LT',\n nextWeek: '[Fuddlo] dddd[,] LT',\n lastDay: '[Kal] LT',\n lastWeek: '[Fattlo] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s',\n past: '%s adim',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(er)/,\n ordinal: function (number, period) {\n switch (period) {\n // the ordinal 'er' only applies to day of the month\n case 'D':\n return number + 'er';\n default:\n case 'M':\n case 'Q':\n case 'DDD':\n case 'd':\n case 'w':\n case 'W':\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n meridiemParse: /rati|sokallim|donparam|sanje/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'rati') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'sokallim') {\n return hour;\n } else if (meridiem === 'donparam') {\n return hour > 12 ? hour : hour + 12;\n } else if (meridiem === 'sanje') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'rati';\n } else if (hour < 12) {\n return 'sokallim';\n } else if (hour < 16) {\n return 'donparam';\n } else if (hour < 20) {\n return 'sanje';\n } else {\n return 'rati';\n }\n },\n });\n\n return gomLatn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Gujarati [gu]\n//! author : Kaushik Thanki : https://github.com/Kaushik1987\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '૧',\n '2': '૨',\n '3': '૩',\n '4': '૪',\n '5': '૫',\n '6': '૬',\n '7': '૭',\n '8': '૮',\n '9': '૯',\n '0': '૦',\n },\n numberMap = {\n '૧': '1',\n '૨': '2',\n '૩': '3',\n '૪': '4',\n '૫': '5',\n '૬': '6',\n '૭': '7',\n '૮': '8',\n '૯': '9',\n '૦': '0',\n };\n\n var gu = moment.defineLocale('gu', {\n months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(\n '_'\n ),\n monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(\n '_'\n ),\n weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),\n weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm વાગ્યે',\n LTS: 'A h:mm:ss વાગ્યે',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm વાગ્યે',\n LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',\n },\n calendar: {\n sameDay: '[આજ] LT',\n nextDay: '[કાલે] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ગઇકાલે] LT',\n lastWeek: '[પાછલા] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s મા',\n past: '%s પહેલા',\n s: 'અમુક પળો',\n ss: '%d સેકંડ',\n m: 'એક મિનિટ',\n mm: '%d મિનિટ',\n h: 'એક કલાક',\n hh: '%d કલાક',\n d: 'એક દિવસ',\n dd: '%d દિવસ',\n M: 'એક મહિનો',\n MM: '%d મહિનો',\n y: 'એક વર્ષ',\n yy: '%d વર્ષ',\n },\n preparse: function (string) {\n return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Gujarati notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.\n meridiemParse: /રાત|બપોર|સવાર|સાંજ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'રાત') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'સવાર') {\n return hour;\n } else if (meridiem === 'બપોર') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'સાંજ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'રાત';\n } else if (hour < 10) {\n return 'સવાર';\n } else if (hour < 17) {\n return 'બપોર';\n } else if (hour < 20) {\n return 'સાંજ';\n } else {\n return 'રાત';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return gu;\n\n})));\n","//! moment.js locale configuration\n//! locale : Hebrew [he]\n//! author : Tomer Cohen : https://github.com/tomer\n//! author : Moshe Simantov : https://github.com/DevelopmentIL\n//! author : Tal Ater : https://github.com/TalAter\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var he = moment.defineLocale('he', {\n months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(\n '_'\n ),\n monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(\n '_'\n ),\n weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),\n weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),\n weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [ב]MMMM YYYY',\n LLL: 'D [ב]MMMM YYYY HH:mm',\n LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',\n l: 'D/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[היום ב־]LT',\n nextDay: '[מחר ב־]LT',\n nextWeek: 'dddd [בשעה] LT',\n lastDay: '[אתמול ב־]LT',\n lastWeek: '[ביום] dddd [האחרון בשעה] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'בעוד %s',\n past: 'לפני %s',\n s: 'מספר שניות',\n ss: '%d שניות',\n m: 'דקה',\n mm: '%d דקות',\n h: 'שעה',\n hh: function (number) {\n if (number === 2) {\n return 'שעתיים';\n }\n return number + ' שעות';\n },\n d: 'יום',\n dd: function (number) {\n if (number === 2) {\n return 'יומיים';\n }\n return number + ' ימים';\n },\n M: 'חודש',\n MM: function (number) {\n if (number === 2) {\n return 'חודשיים';\n }\n return number + ' חודשים';\n },\n y: 'שנה',\n yy: function (number) {\n if (number === 2) {\n return 'שנתיים';\n } else if (number % 10 === 0 && number !== 10) {\n return number + ' שנה';\n }\n return number + ' שנים';\n },\n },\n meridiemParse: /אחה\"צ|לפנה\"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,\n isPM: function (input) {\n return /^(אחה\"צ|אחרי הצהריים|בערב)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 5) {\n return 'לפנות בוקר';\n } else if (hour < 10) {\n return 'בבוקר';\n } else if (hour < 12) {\n return isLower ? 'לפנה\"צ' : 'לפני הצהריים';\n } else if (hour < 18) {\n return isLower ? 'אחה\"צ' : 'אחרי הצהריים';\n } else {\n return 'בערב';\n }\n },\n });\n\n return he;\n\n})));\n","//! moment.js locale configuration\n//! locale : Hindi [hi]\n//! author : Mayank Singhal : https://github.com/mayanksinghal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var hi = moment.defineLocale('hi', {\n months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm बजे',\n LTS: 'A h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[कल] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[कल] LT',\n lastWeek: '[पिछले] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s में',\n past: '%s पहले',\n s: 'कुछ ही क्षण',\n ss: '%d सेकंड',\n m: 'एक मिनट',\n mm: '%d मिनट',\n h: 'एक घंटा',\n hh: '%d घंटे',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महीने',\n MM: '%d महीने',\n y: 'एक वर्ष',\n yy: '%d वर्ष',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Hindi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.\n meridiemParse: /रात|सुबह|दोपहर|शाम/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'रात') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'सुबह') {\n return hour;\n } else if (meridiem === 'दोपहर') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'शाम') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'रात';\n } else if (hour < 10) {\n return 'सुबह';\n } else if (hour < 17) {\n return 'दोपहर';\n } else if (hour < 20) {\n return 'शाम';\n } else {\n return 'रात';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return hi;\n\n})));\n","//! moment.js locale configuration\n//! locale : Croatian [hr]\n//! author : Bojan Marković : https://github.com/bmarkovic\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n if (number === 1) {\n result += 'sekunda';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sekunde';\n } else {\n result += 'sekundi';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'jedna minuta' : 'jedne minute';\n case 'mm':\n if (number === 1) {\n result += 'minuta';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'minute';\n } else {\n result += 'minuta';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'jedan sat' : 'jednog sata';\n case 'hh':\n if (number === 1) {\n result += 'sat';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'sata';\n } else {\n result += 'sati';\n }\n return result;\n case 'dd':\n if (number === 1) {\n result += 'dan';\n } else {\n result += 'dana';\n }\n return result;\n case 'MM':\n if (number === 1) {\n result += 'mjesec';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'mjeseca';\n } else {\n result += 'mjeseci';\n }\n return result;\n case 'yy':\n if (number === 1) {\n result += 'godina';\n } else if (number === 2 || number === 3 || number === 4) {\n result += 'godine';\n } else {\n result += 'godina';\n }\n return result;\n }\n }\n\n var hr = moment.defineLocale('hr', {\n months: {\n format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(\n '_'\n ),\n standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(\n '_'\n ),\n },\n monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'Do MMMM YYYY',\n LLL: 'Do MMMM YYYY H:mm',\n LLLL: 'dddd, Do MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[jučer u] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prošlu] [nedjelju] [u] LT';\n case 3:\n return '[prošlu] [srijedu] [u] LT';\n case 6:\n return '[prošle] [subote] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prošli] dddd [u] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'par sekundi',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: 'dan',\n dd: translate,\n M: 'mjesec',\n MM: translate,\n y: 'godinu',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hr;\n\n})));\n","//! moment.js locale configuration\n//! locale : Hungarian [hu]\n//! author : Adam Brunner : https://github.com/adambrunner\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(\n ' '\n );\n function translate(number, withoutSuffix, key, isFuture) {\n var num = number;\n switch (key) {\n case 's':\n return isFuture || withoutSuffix\n ? 'néhány másodperc'\n : 'néhány másodperce';\n case 'ss':\n return num + (isFuture || withoutSuffix)\n ? ' másodperc'\n : ' másodperce';\n case 'm':\n return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'mm':\n return num + (isFuture || withoutSuffix ? ' perc' : ' perce');\n case 'h':\n return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'hh':\n return num + (isFuture || withoutSuffix ? ' óra' : ' órája');\n case 'd':\n return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'dd':\n return num + (isFuture || withoutSuffix ? ' nap' : ' napja');\n case 'M':\n return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'MM':\n return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');\n case 'y':\n return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');\n case 'yy':\n return num + (isFuture || withoutSuffix ? ' év' : ' éve');\n }\n return '';\n }\n function week(isFuture) {\n return (\n (isFuture ? '' : '[múlt] ') +\n '[' +\n weekEndings[this.day()] +\n '] LT[-kor]'\n );\n }\n\n var hu = moment.defineLocale('hu', {\n months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(\n '_'\n ),\n weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),\n weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),\n weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY. MMMM D.',\n LLL: 'YYYY. MMMM D. H:mm',\n LLLL: 'YYYY. MMMM D., dddd H:mm',\n },\n meridiemParse: /de|du/i,\n isPM: function (input) {\n return input.charAt(1).toLowerCase() === 'u';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower === true ? 'de' : 'DE';\n } else {\n return isLower === true ? 'du' : 'DU';\n }\n },\n calendar: {\n sameDay: '[ma] LT[-kor]',\n nextDay: '[holnap] LT[-kor]',\n nextWeek: function () {\n return week.call(this, true);\n },\n lastDay: '[tegnap] LT[-kor]',\n lastWeek: function () {\n return week.call(this, false);\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s múlva',\n past: '%s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return hu;\n\n})));\n","//! moment.js locale configuration\n//! locale : Armenian [hy-am]\n//! author : Armendarabyan : https://github.com/armendarabyan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var hyAm = moment.defineLocale('hy-am', {\n months: {\n format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(\n '_'\n ),\n standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(\n '_'\n ),\n },\n monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),\n weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(\n '_'\n ),\n weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY թ.',\n LLL: 'D MMMM YYYY թ., HH:mm',\n LLLL: 'dddd, D MMMM YYYY թ., HH:mm',\n },\n calendar: {\n sameDay: '[այսօր] LT',\n nextDay: '[վաղը] LT',\n lastDay: '[երեկ] LT',\n nextWeek: function () {\n return 'dddd [օրը ժամը] LT';\n },\n lastWeek: function () {\n return '[անցած] dddd [օրը ժամը] LT';\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s հետո',\n past: '%s առաջ',\n s: 'մի քանի վայրկյան',\n ss: '%d վայրկյան',\n m: 'րոպե',\n mm: '%d րոպե',\n h: 'ժամ',\n hh: '%d ժամ',\n d: 'օր',\n dd: '%d օր',\n M: 'ամիս',\n MM: '%d ամիս',\n y: 'տարի',\n yy: '%d տարի',\n },\n meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,\n isPM: function (input) {\n return /^(ցերեկվա|երեկոյան)$/.test(input);\n },\n meridiem: function (hour) {\n if (hour < 4) {\n return 'գիշերվա';\n } else if (hour < 12) {\n return 'առավոտվա';\n } else if (hour < 17) {\n return 'ցերեկվա';\n } else {\n return 'երեկոյան';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}|\\d{1,2}-(ին|րդ)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'DDD':\n case 'w':\n case 'W':\n case 'DDDo':\n if (number === 1) {\n return number + '-ին';\n }\n return number + '-րդ';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return hyAm;\n\n})));\n","//! moment.js locale configuration\n//! locale : Indonesian [id]\n//! author : Mohammad Satrio Utomo : https://github.com/tyok\n//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var id = moment.defineLocale('id', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|siang|sore|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'siang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sore' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'siang';\n } else if (hours < 19) {\n return 'sore';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Besok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kemarin pukul] LT',\n lastWeek: 'dddd [lalu pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lalu',\n s: 'beberapa detik',\n ss: '%d detik',\n m: 'semenit',\n mm: '%d menit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return id;\n\n})));\n","//! moment.js locale configuration\n//! locale : Icelandic [is]\n//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(n) {\n if (n % 100 === 11) {\n return true;\n } else if (n % 10 === 1) {\n return false;\n }\n return true;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nokkrar sekúndur'\n : 'nokkrum sekúndum';\n case 'ss':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')\n );\n }\n return result + 'sekúnda';\n case 'm':\n return withoutSuffix ? 'mínúta' : 'mínútu';\n case 'mm':\n if (plural(number)) {\n return (\n result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')\n );\n } else if (withoutSuffix) {\n return result + 'mínúta';\n }\n return result + 'mínútu';\n case 'hh':\n if (plural(number)) {\n return (\n result +\n (withoutSuffix || isFuture\n ? 'klukkustundir'\n : 'klukkustundum')\n );\n }\n return result + 'klukkustund';\n case 'd':\n if (withoutSuffix) {\n return 'dagur';\n }\n return isFuture ? 'dag' : 'degi';\n case 'dd':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'dagar';\n }\n return result + (isFuture ? 'daga' : 'dögum');\n } else if (withoutSuffix) {\n return result + 'dagur';\n }\n return result + (isFuture ? 'dag' : 'degi');\n case 'M':\n if (withoutSuffix) {\n return 'mánuður';\n }\n return isFuture ? 'mánuð' : 'mánuði';\n case 'MM':\n if (plural(number)) {\n if (withoutSuffix) {\n return result + 'mánuðir';\n }\n return result + (isFuture ? 'mánuði' : 'mánuðum');\n } else if (withoutSuffix) {\n return result + 'mánuður';\n }\n return result + (isFuture ? 'mánuð' : 'mánuði');\n case 'y':\n return withoutSuffix || isFuture ? 'ár' : 'ári';\n case 'yy':\n if (plural(number)) {\n return result + (withoutSuffix || isFuture ? 'ár' : 'árum');\n }\n return result + (withoutSuffix || isFuture ? 'ár' : 'ári');\n }\n }\n\n var is = moment.defineLocale('is', {\n months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),\n weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(\n '_'\n ),\n weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),\n weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',\n },\n calendar: {\n sameDay: '[í dag kl.] LT',\n nextDay: '[á morgun kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[í gær kl.] LT',\n lastWeek: '[síðasta] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'eftir %s',\n past: 'fyrir %s síðan',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: 'klukkustund',\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return is;\n\n})));\n","//! moment.js locale configuration\n//! locale : Italian (Switzerland) [it-ch]\n//! author : xfh : https://github.com/xfh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var itCh = moment.defineLocale('it-ch', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Oggi alle] LT',\n nextDay: '[Domani alle] LT',\n nextWeek: 'dddd [alle] LT',\n lastDay: '[Ieri alle] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[la scorsa] dddd [alle] LT';\n default:\n return '[lo scorso] dddd [alle] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;\n },\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return itCh;\n\n})));\n","//! moment.js locale configuration\n//! locale : Italian [it]\n//! author : Lorenzo : https://github.com/aliem\n//! author: Mattia Larentis: https://github.com/nostalgiaz\n//! author: Marco : https://github.com/Manfre98\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var it = moment.defineLocale('it', {\n months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(\n '_'\n ),\n monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),\n weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(\n '_'\n ),\n weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),\n weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: function () {\n return (\n '[Oggi a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextDay: function () {\n return (\n '[Domani a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n nextWeek: function () {\n return (\n 'dddd [a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastDay: function () {\n return (\n '[Ieri a' +\n (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : \"ll'\") +\n ']LT'\n );\n },\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return (\n '[La scorsa] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n default:\n return (\n '[Lo scorso] dddd [a' +\n (this.hours() > 1\n ? 'lle '\n : this.hours() === 0\n ? ' '\n : \"ll'\") +\n ']LT'\n );\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'tra %s',\n past: '%s fa',\n s: 'alcuni secondi',\n ss: '%d secondi',\n m: 'un minuto',\n mm: '%d minuti',\n h: \"un'ora\",\n hh: '%d ore',\n d: 'un giorno',\n dd: '%d giorni',\n M: 'un mese',\n MM: '%d mesi',\n y: 'un anno',\n yy: '%d anni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return it;\n\n})));\n","//! moment.js locale configuration\n//! locale : Japanese [ja]\n//! author : LI Long : https://github.com/baryon\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ja = moment.defineLocale('ja', {\n eras: [\n {\n since: '2019-05-01',\n offset: 1,\n name: '令和',\n narrow: '㋿',\n abbr: 'R',\n },\n {\n since: '1989-01-08',\n until: '2019-04-30',\n offset: 1,\n name: '平成',\n narrow: '㍻',\n abbr: 'H',\n },\n {\n since: '1926-12-25',\n until: '1989-01-07',\n offset: 1,\n name: '昭和',\n narrow: '㍼',\n abbr: 'S',\n },\n {\n since: '1912-07-30',\n until: '1926-12-24',\n offset: 1,\n name: '大正',\n narrow: '㍽',\n abbr: 'T',\n },\n {\n since: '1873-01-01',\n until: '1912-07-29',\n offset: 6,\n name: '明治',\n narrow: '㍾',\n abbr: 'M',\n },\n {\n since: '0001-01-01',\n until: '1873-12-31',\n offset: 1,\n name: '西暦',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: '紀元前',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n eraYearOrdinalRegex: /(元|\\d+)年/,\n eraYearOrdinalParse: function (input, match) {\n return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);\n },\n months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),\n weekdaysShort: '日_月_火_水_木_金_土'.split('_'),\n weekdaysMin: '日_月_火_水_木_金_土'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日 dddd HH:mm',\n l: 'YYYY/MM/DD',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日(ddd) HH:mm',\n },\n meridiemParse: /午前|午後/i,\n isPM: function (input) {\n return input === '午後';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return '午前';\n } else {\n return '午後';\n }\n },\n calendar: {\n sameDay: '[今日] LT',\n nextDay: '[明日] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[来週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n lastDay: '[昨日] LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[先週]dddd LT';\n } else {\n return 'dddd LT';\n }\n },\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}日/,\n ordinal: function (number, period) {\n switch (period) {\n case 'y':\n return number === 1 ? '元年' : number + '年';\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '数秒',\n ss: '%d秒',\n m: '1分',\n mm: '%d分',\n h: '1時間',\n hh: '%d時間',\n d: '1日',\n dd: '%d日',\n M: '1ヶ月',\n MM: '%dヶ月',\n y: '1年',\n yy: '%d年',\n },\n });\n\n return ja;\n\n})));\n","//! moment.js locale configuration\n//! locale : Javanese [jv]\n//! author : Rony Lantip : https://github.com/lantip\n//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var jv = moment.defineLocale('jv', {\n months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),\n weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),\n weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),\n weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /enjing|siyang|sonten|ndalu/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'enjing') {\n return hour;\n } else if (meridiem === 'siyang') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'sonten' || meridiem === 'ndalu') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'enjing';\n } else if (hours < 15) {\n return 'siyang';\n } else if (hours < 19) {\n return 'sonten';\n } else {\n return 'ndalu';\n }\n },\n calendar: {\n sameDay: '[Dinten puniko pukul] LT',\n nextDay: '[Mbenjang pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kala wingi pukul] LT',\n lastWeek: 'dddd [kepengker pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'wonten ing %s',\n past: '%s ingkang kepengker',\n s: 'sawetawis detik',\n ss: '%d detik',\n m: 'setunggal menit',\n mm: '%d menit',\n h: 'setunggal jam',\n hh: '%d jam',\n d: 'sedinten',\n dd: '%d dinten',\n M: 'sewulan',\n MM: '%d wulan',\n y: 'setaun',\n yy: '%d taun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return jv;\n\n})));\n","//! moment.js locale configuration\n//! locale : Georgian [ka]\n//! author : Irakli Janiashvili : https://github.com/IrakliJani\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ka = moment.defineLocale('ka', {\n months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(\n '_'\n ),\n monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),\n weekdays: {\n standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(\n '_'\n ),\n format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(\n '_'\n ),\n isFormat: /(წინა|შემდეგ)/,\n },\n weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),\n weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[დღეს] LT[-ზე]',\n nextDay: '[ხვალ] LT[-ზე]',\n lastDay: '[გუშინ] LT[-ზე]',\n nextWeek: '[შემდეგ] dddd LT[-ზე]',\n lastWeek: '[წინა] dddd LT-ზე',\n sameElse: 'L',\n },\n relativeTime: {\n future: function (s) {\n return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (\n $0,\n $1,\n $2\n ) {\n return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';\n });\n },\n past: function (s) {\n if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {\n return s.replace(/(ი|ე)$/, 'ის წინ');\n }\n if (/წელი/.test(s)) {\n return s.replace(/წელი$/, 'წლის წინ');\n }\n return s;\n },\n s: 'რამდენიმე წამი',\n ss: '%d წამი',\n m: 'წუთი',\n mm: '%d წუთი',\n h: 'საათი',\n hh: '%d საათი',\n d: 'დღე',\n dd: '%d დღე',\n M: 'თვე',\n MM: '%d თვე',\n y: 'წელი',\n yy: '%d წელი',\n },\n dayOfMonthOrdinalParse: /0|1-ლი|მე-\\d{1,2}|\\d{1,2}-ე/,\n ordinal: function (number) {\n if (number === 0) {\n return number;\n }\n if (number === 1) {\n return number + '-ლი';\n }\n if (\n number < 20 ||\n (number <= 100 && number % 20 === 0) ||\n number % 100 === 0\n ) {\n return 'მე-' + number;\n }\n return number + '-ე';\n },\n week: {\n dow: 1,\n doy: 7,\n },\n });\n\n return ka;\n\n})));\n","//! moment.js locale configuration\n//! locale : Kazakh [kk]\n//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ші',\n 1: '-ші',\n 2: '-ші',\n 3: '-ші',\n 4: '-ші',\n 5: '-ші',\n 6: '-шы',\n 7: '-ші',\n 8: '-ші',\n 9: '-шы',\n 10: '-шы',\n 20: '-шы',\n 30: '-шы',\n 40: '-шы',\n 50: '-ші',\n 60: '-шы',\n 70: '-ші',\n 80: '-ші',\n 90: '-шы',\n 100: '-ші',\n };\n\n var kk = moment.defineLocale('kk', {\n months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(\n '_'\n ),\n monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),\n weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(\n '_'\n ),\n weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),\n weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгін сағат] LT',\n nextDay: '[Ертең сағат] LT',\n nextWeek: 'dddd [сағат] LT',\n lastDay: '[Кеше сағат] LT',\n lastWeek: '[Өткен аптаның] dddd [сағат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ішінде',\n past: '%s бұрын',\n s: 'бірнеше секунд',\n ss: '%d секунд',\n m: 'бір минут',\n mm: '%d минут',\n h: 'бір сағат',\n hh: '%d сағат',\n d: 'бір күн',\n dd: '%d күн',\n M: 'бір ай',\n MM: '%d ай',\n y: 'бір жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ші|шы)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return kk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Cambodian [km]\n//! author : Kruy Vanna : https://github.com/kruyvanna\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '១',\n '2': '២',\n '3': '៣',\n '4': '៤',\n '5': '៥',\n '6': '៦',\n '7': '៧',\n '8': '៨',\n '9': '៩',\n '0': '០',\n },\n numberMap = {\n '១': '1',\n '២': '2',\n '៣': '3',\n '៤': '4',\n '៥': '5',\n '៦': '6',\n '៧': '7',\n '៨': '8',\n '៩': '9',\n '០': '0',\n };\n\n var km = moment.defineLocale('km', {\n months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(\n '_'\n ),\n weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),\n weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ព្រឹក|ល្ងាច/,\n isPM: function (input) {\n return input === 'ល្ងាច';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ព្រឹក';\n } else {\n return 'ល្ងាច';\n }\n },\n calendar: {\n sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',\n nextDay: '[ស្អែក ម៉ោង] LT',\n nextWeek: 'dddd [ម៉ោង] LT',\n lastDay: '[ម្សិលមិញ ម៉ោង] LT',\n lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sទៀត',\n past: '%sមុន',\n s: 'ប៉ុន្មានវិនាទី',\n ss: '%d វិនាទី',\n m: 'មួយនាទី',\n mm: '%d នាទី',\n h: 'មួយម៉ោង',\n hh: '%d ម៉ោង',\n d: 'មួយថ្ងៃ',\n dd: '%d ថ្ងៃ',\n M: 'មួយខែ',\n MM: '%d ខែ',\n y: 'មួយឆ្នាំ',\n yy: '%d ឆ្នាំ',\n },\n dayOfMonthOrdinalParse: /ទី\\d{1,2}/,\n ordinal: 'ទី%d',\n preparse: function (string) {\n return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return km;\n\n})));\n","//! moment.js locale configuration\n//! locale : Kannada [kn]\n//! author : Rajeev Naik : https://github.com/rajeevnaikte\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '೧',\n '2': '೨',\n '3': '೩',\n '4': '೪',\n '5': '೫',\n '6': '೬',\n '7': '೭',\n '8': '೮',\n '9': '೯',\n '0': '೦',\n },\n numberMap = {\n '೧': '1',\n '೨': '2',\n '೩': '3',\n '೪': '4',\n '೫': '5',\n '೬': '6',\n '೭': '7',\n '೮': '8',\n '೯': '9',\n '೦': '0',\n };\n\n var kn = moment.defineLocale('kn', {\n months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(\n '_'\n ),\n monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(\n '_'\n ),\n weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),\n weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[ಇಂದು] LT',\n nextDay: '[ನಾಳೆ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ನಿನ್ನೆ] LT',\n lastWeek: '[ಕೊನೆಯ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ನಂತರ',\n past: '%s ಹಿಂದೆ',\n s: 'ಕೆಲವು ಕ್ಷಣಗಳು',\n ss: '%d ಸೆಕೆಂಡುಗಳು',\n m: 'ಒಂದು ನಿಮಿಷ',\n mm: '%d ನಿಮಿಷ',\n h: 'ಒಂದು ಗಂಟೆ',\n hh: '%d ಗಂಟೆ',\n d: 'ಒಂದು ದಿನ',\n dd: '%d ದಿನ',\n M: 'ಒಂದು ತಿಂಗಳು',\n MM: '%d ತಿಂಗಳು',\n y: 'ಒಂದು ವರ್ಷ',\n yy: '%d ವರ್ಷ',\n },\n preparse: function (string) {\n return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ರಾತ್ರಿ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {\n return hour;\n } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ಸಂಜೆ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ರಾತ್ರಿ';\n } else if (hour < 10) {\n return 'ಬೆಳಿಗ್ಗೆ';\n } else if (hour < 17) {\n return 'ಮಧ್ಯಾಹ್ನ';\n } else if (hour < 20) {\n return 'ಸಂಜೆ';\n } else {\n return 'ರಾತ್ರಿ';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ನೇ)/,\n ordinal: function (number) {\n return number + 'ನೇ';\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return kn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Korean [ko]\n//! author : Kyungwook, Park : https://github.com/kyungw00k\n//! author : Jeeeyul Lee <jeeeyul@gmail.com>\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ko = moment.defineLocale('ko', {\n months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),\n monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(\n '_'\n ),\n weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),\n weekdaysShort: '일_월_화_수_목_금_토'.split('_'),\n weekdaysMin: '일_월_화_수_목_금_토'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'YYYY.MM.DD.',\n LL: 'YYYY년 MMMM D일',\n LLL: 'YYYY년 MMMM D일 A h:mm',\n LLLL: 'YYYY년 MMMM D일 dddd A h:mm',\n l: 'YYYY.MM.DD.',\n ll: 'YYYY년 MMMM D일',\n lll: 'YYYY년 MMMM D일 A h:mm',\n llll: 'YYYY년 MMMM D일 dddd A h:mm',\n },\n calendar: {\n sameDay: '오늘 LT',\n nextDay: '내일 LT',\n nextWeek: 'dddd LT',\n lastDay: '어제 LT',\n lastWeek: '지난주 dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s 후',\n past: '%s 전',\n s: '몇 초',\n ss: '%d초',\n m: '1분',\n mm: '%d분',\n h: '한 시간',\n hh: '%d시간',\n d: '하루',\n dd: '%d일',\n M: '한 달',\n MM: '%d달',\n y: '일 년',\n yy: '%d년',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(일|월|주)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '일';\n case 'M':\n return number + '월';\n case 'w':\n case 'W':\n return number + '주';\n default:\n return number;\n }\n },\n meridiemParse: /오전|오후/,\n isPM: function (token) {\n return token === '오후';\n },\n meridiem: function (hour, minute, isUpper) {\n return hour < 12 ? '오전' : '오후';\n },\n });\n\n return ko;\n\n})));\n","//! moment.js locale configuration\n//! locale : Kurdish [ku]\n//! author : Shahram Mebashar : https://github.com/ShahramMebashar\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '١',\n '2': '٢',\n '3': '٣',\n '4': '٤',\n '5': '٥',\n '6': '٦',\n '7': '٧',\n '8': '٨',\n '9': '٩',\n '0': '٠',\n },\n numberMap = {\n '١': '1',\n '٢': '2',\n '٣': '3',\n '٤': '4',\n '٥': '5',\n '٦': '6',\n '٧': '7',\n '٨': '8',\n '٩': '9',\n '٠': '0',\n },\n months = [\n 'کانونی دووەم',\n 'شوبات',\n 'ئازار',\n 'نیسان',\n 'ئایار',\n 'حوزەیران',\n 'تەمموز',\n 'ئاب',\n 'ئەیلوول',\n 'تشرینی یەكەم',\n 'تشرینی دووەم',\n 'كانونی یەکەم',\n ];\n\n var ku = moment.defineLocale('ku', {\n months: months,\n monthsShort: months,\n weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(\n '_'\n ),\n weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n meridiemParse: /ئێواره‌|به‌یانی/,\n isPM: function (input) {\n return /ئێواره‌/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'به‌یانی';\n } else {\n return 'ئێواره‌';\n }\n },\n calendar: {\n sameDay: '[ئه‌مرۆ كاتژمێر] LT',\n nextDay: '[به‌یانی كاتژمێر] LT',\n nextWeek: 'dddd [كاتژمێر] LT',\n lastDay: '[دوێنێ كاتژمێر] LT',\n lastWeek: 'dddd [كاتژمێر] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'له‌ %s',\n past: '%s',\n s: 'چه‌ند چركه‌یه‌ك',\n ss: 'چركه‌ %d',\n m: 'یه‌ك خوله‌ك',\n mm: '%d خوله‌ك',\n h: 'یه‌ك كاتژمێر',\n hh: '%d كاتژمێر',\n d: 'یه‌ك ڕۆژ',\n dd: '%d ڕۆژ',\n M: 'یه‌ك مانگ',\n MM: '%d مانگ',\n y: 'یه‌ك ساڵ',\n yy: '%d ساڵ',\n },\n preparse: function (string) {\n return string\n .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {\n return numberMap[match];\n })\n .replace(/،/g, ',');\n },\n postformat: function (string) {\n return string\n .replace(/\\d/g, function (match) {\n return symbolMap[match];\n })\n .replace(/,/g, '،');\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return ku;\n\n})));\n","//! moment.js locale configuration\n//! locale : Kyrgyz [ky]\n//! author : Chyngyz Arystan uulu : https://github.com/chyngyz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-чү',\n 1: '-чи',\n 2: '-чи',\n 3: '-чү',\n 4: '-чү',\n 5: '-чи',\n 6: '-чы',\n 7: '-чи',\n 8: '-чи',\n 9: '-чу',\n 10: '-чу',\n 20: '-чы',\n 30: '-чу',\n 40: '-чы',\n 50: '-чү',\n 60: '-чы',\n 70: '-чи',\n 80: '-чи',\n 90: '-чу',\n 100: '-чү',\n };\n\n var ky = moment.defineLocale('ky', {\n months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(\n '_'\n ),\n weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(\n '_'\n ),\n weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),\n weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Бүгүн саат] LT',\n nextDay: '[Эртең саат] LT',\n nextWeek: 'dddd [саат] LT',\n lastDay: '[Кечээ саат] LT',\n lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ичинде',\n past: '%s мурун',\n s: 'бирнече секунд',\n ss: '%d секунд',\n m: 'бир мүнөт',\n mm: '%d мүнөт',\n h: 'бир саат',\n hh: '%d саат',\n d: 'бир күн',\n dd: '%d күн',\n M: 'бир ай',\n MM: '%d ай',\n y: 'бир жыл',\n yy: '%d жыл',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(чи|чы|чү|чу)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ky;\n\n})));\n","//! moment.js locale configuration\n//! locale : Luxembourgish [lb]\n//! author : mweimerskirch : https://github.com/mweimerskirch\n//! author : David Raison : https://github.com/kwisatz\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n m: ['eng Minutt', 'enger Minutt'],\n h: ['eng Stonn', 'enger Stonn'],\n d: ['een Dag', 'engem Dag'],\n M: ['ee Mount', 'engem Mount'],\n y: ['ee Joer', 'engem Joer'],\n };\n return withoutSuffix ? format[key][0] : format[key][1];\n }\n function processFutureTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'a ' + string;\n }\n return 'an ' + string;\n }\n function processPastTime(string) {\n var number = string.substr(0, string.indexOf(' '));\n if (eifelerRegelAppliesToNumber(number)) {\n return 'viru ' + string;\n }\n return 'virun ' + string;\n }\n /**\n * Returns true if the word before the given number loses the '-n' ending.\n * e.g. 'an 10 Deeg' but 'a 5 Deeg'\n *\n * @param number {integer}\n * @returns {boolean}\n */\n function eifelerRegelAppliesToNumber(number) {\n number = parseInt(number, 10);\n if (isNaN(number)) {\n return false;\n }\n if (number < 0) {\n // Negative Number --> always true\n return true;\n } else if (number < 10) {\n // Only 1 digit\n if (4 <= number && number <= 7) {\n return true;\n }\n return false;\n } else if (number < 100) {\n // 2 digits\n var lastDigit = number % 10,\n firstDigit = number / 10;\n if (lastDigit === 0) {\n return eifelerRegelAppliesToNumber(firstDigit);\n }\n return eifelerRegelAppliesToNumber(lastDigit);\n } else if (number < 10000) {\n // 3 or 4 digits --> recursively check first digit\n while (number >= 10) {\n number = number / 10;\n }\n return eifelerRegelAppliesToNumber(number);\n } else {\n // Anything larger than 4 digits: recursively check first n-3 digits\n number = number / 1000;\n return eifelerRegelAppliesToNumber(number);\n }\n }\n\n var lb = moment.defineLocale('lb', {\n months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(\n '_'\n ),\n monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(\n '_'\n ),\n weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),\n weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm [Auer]',\n LTS: 'H:mm:ss [Auer]',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm [Auer]',\n LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',\n },\n calendar: {\n sameDay: '[Haut um] LT',\n sameElse: 'L',\n nextDay: '[Muer um] LT',\n nextWeek: 'dddd [um] LT',\n lastDay: '[Gëschter um] LT',\n lastWeek: function () {\n // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule\n switch (this.day()) {\n case 2:\n case 4:\n return '[Leschten] dddd [um] LT';\n default:\n return '[Leschte] dddd [um] LT';\n }\n },\n },\n relativeTime: {\n future: processFutureTime,\n past: processPastTime,\n s: 'e puer Sekonnen',\n ss: '%d Sekonnen',\n m: processRelativeTime,\n mm: '%d Minutten',\n h: processRelativeTime,\n hh: '%d Stonnen',\n d: processRelativeTime,\n dd: '%d Deeg',\n M: processRelativeTime,\n MM: '%d Méint',\n y: processRelativeTime,\n yy: '%d Joer',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lb;\n\n})));\n","//! moment.js locale configuration\n//! locale : Lao [lo]\n//! author : Ryan Hart : https://github.com/ryanhart2\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var lo = moment.defineLocale('lo', {\n months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(\n '_'\n ),\n weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),\n weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'ວັນdddd D MMMM YYYY HH:mm',\n },\n meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,\n isPM: function (input) {\n return input === 'ຕອນແລງ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ຕອນເຊົ້າ';\n } else {\n return 'ຕອນແລງ';\n }\n },\n calendar: {\n sameDay: '[ມື້ນີ້ເວລາ] LT',\n nextDay: '[ມື້ອື່ນເວລາ] LT',\n nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',\n lastDay: '[ມື້ວານນີ້ເວລາ] LT',\n lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ອີກ %s',\n past: '%sຜ່ານມາ',\n s: 'ບໍ່ເທົ່າໃດວິນາທີ',\n ss: '%d ວິນາທີ',\n m: '1 ນາທີ',\n mm: '%d ນາທີ',\n h: '1 ຊົ່ວໂມງ',\n hh: '%d ຊົ່ວໂມງ',\n d: '1 ມື້',\n dd: '%d ມື້',\n M: '1 ເດືອນ',\n MM: '%d ເດືອນ',\n y: '1 ປີ',\n yy: '%d ປີ',\n },\n dayOfMonthOrdinalParse: /(ທີ່)\\d{1,2}/,\n ordinal: function (number) {\n return 'ທີ່' + number;\n },\n });\n\n return lo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Lithuanian [lt]\n//! author : Mindaugas Mozūras : https://github.com/mmozuras\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundė_sekundžių_sekundes',\n m: 'minutė_minutės_minutę',\n mm: 'minutės_minučių_minutes',\n h: 'valanda_valandos_valandą',\n hh: 'valandos_valandų_valandas',\n d: 'diena_dienos_dieną',\n dd: 'dienos_dienų_dienas',\n M: 'mėnuo_mėnesio_mėnesį',\n MM: 'mėnesiai_mėnesių_mėnesius',\n y: 'metai_metų_metus',\n yy: 'metai_metų_metus',\n };\n function translateSeconds(number, withoutSuffix, key, isFuture) {\n if (withoutSuffix) {\n return 'kelios sekundės';\n } else {\n return isFuture ? 'kelių sekundžių' : 'kelias sekundes';\n }\n }\n function translateSingular(number, withoutSuffix, key, isFuture) {\n return withoutSuffix\n ? forms(key)[0]\n : isFuture\n ? forms(key)[1]\n : forms(key)[2];\n }\n function special(number) {\n return number % 10 === 0 || (number > 10 && number < 20);\n }\n function forms(key) {\n return units[key].split('_');\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n if (number === 1) {\n return (\n result + translateSingular(number, withoutSuffix, key[0], isFuture)\n );\n } else if (withoutSuffix) {\n return result + (special(number) ? forms(key)[1] : forms(key)[0]);\n } else {\n if (isFuture) {\n return result + forms(key)[1];\n } else {\n return result + (special(number) ? forms(key)[1] : forms(key)[2]);\n }\n }\n }\n var lt = moment.defineLocale('lt', {\n months: {\n format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(\n '_'\n ),\n standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(\n '_'\n ),\n isFormat: /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?|MMMM?(\\[[^\\[\\]]*\\]|\\s)+D[oD]?/,\n },\n monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),\n weekdays: {\n format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(\n '_'\n ),\n standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(\n '_'\n ),\n isFormat: /dddd HH:mm/,\n },\n weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),\n weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY [m.] MMMM D [d.]',\n LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',\n l: 'YYYY-MM-DD',\n ll: 'YYYY [m.] MMMM D [d.]',\n lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',\n llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',\n },\n calendar: {\n sameDay: '[Šiandien] LT',\n nextDay: '[Rytoj] LT',\n nextWeek: 'dddd LT',\n lastDay: '[Vakar] LT',\n lastWeek: '[Praėjusį] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'po %s',\n past: 'prieš %s',\n s: translateSeconds,\n ss: translate,\n m: translateSingular,\n mm: translate,\n h: translateSingular,\n hh: translate,\n d: translateSingular,\n dd: translate,\n M: translateSingular,\n MM: translate,\n y: translateSingular,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-oji/,\n ordinal: function (number) {\n return number + '-oji';\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lt;\n\n})));\n","//! moment.js locale configuration\n//! locale : Latvian [lv]\n//! author : Kristaps Karlsons : https://github.com/skakri\n//! author : Jānis Elmeris : https://github.com/JanisE\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var units = {\n ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),\n m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),\n h: 'stundas_stundām_stunda_stundas'.split('_'),\n hh: 'stundas_stundām_stunda_stundas'.split('_'),\n d: 'dienas_dienām_diena_dienas'.split('_'),\n dd: 'dienas_dienām_diena_dienas'.split('_'),\n M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),\n y: 'gada_gadiem_gads_gadi'.split('_'),\n yy: 'gada_gadiem_gads_gadi'.split('_'),\n };\n /**\n * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.\n */\n function format(forms, number, withoutSuffix) {\n if (withoutSuffix) {\n // E.g. \"21 minūte\", \"3 minūtes\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];\n } else {\n // E.g. \"21 minūtes\" as in \"pēc 21 minūtes\".\n // E.g. \"3 minūtēm\" as in \"pēc 3 minūtēm\".\n return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];\n }\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n return number + ' ' + format(units[key], number, withoutSuffix);\n }\n function relativeTimeWithSingular(number, withoutSuffix, key) {\n return format(units[key], number, withoutSuffix);\n }\n function relativeSeconds(number, withoutSuffix) {\n return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';\n }\n\n var lv = moment.defineLocale('lv', {\n months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(\n '_'\n ),\n weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY.',\n LL: 'YYYY. [gada] D. MMMM',\n LLL: 'YYYY. [gada] D. MMMM, HH:mm',\n LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',\n },\n calendar: {\n sameDay: '[Šodien pulksten] LT',\n nextDay: '[Rīt pulksten] LT',\n nextWeek: 'dddd [pulksten] LT',\n lastDay: '[Vakar pulksten] LT',\n lastWeek: '[Pagājušā] dddd [pulksten] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'pēc %s',\n past: 'pirms %s',\n s: relativeSeconds,\n ss: relativeTimeWithPlural,\n m: relativeTimeWithSingular,\n mm: relativeTimeWithPlural,\n h: relativeTimeWithSingular,\n hh: relativeTimeWithPlural,\n d: relativeTimeWithSingular,\n dd: relativeTimeWithPlural,\n M: relativeTimeWithSingular,\n MM: relativeTimeWithPlural,\n y: relativeTimeWithSingular,\n yy: relativeTimeWithPlural,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return lv;\n\n})));\n","//! moment.js locale configuration\n//! locale : Montenegrin [me]\n//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekund', 'sekunda', 'sekundi'],\n m: ['jedan minut', 'jednog minuta'],\n mm: ['minut', 'minuta', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mjesec', 'mjeseca', 'mjeseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var me = moment.defineLocale('me', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sjutra u] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedjelju] [u] LT';\n case 3:\n return '[u] [srijedu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedjelje] [u] LT',\n '[prošlog] [ponedjeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srijede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'prije %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mjesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return me;\n\n})));\n","//! moment.js locale configuration\n//! locale : Maori [mi]\n//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mi = moment.defineLocale('mi', {\n months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(\n '_'\n ),\n monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(\n '_'\n ),\n monthsRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,3}/i,\n monthsShortStrictRegex: /(?:['a-z\\u0101\\u014D\\u016B]+\\-?){1,2}/i,\n weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),\n weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [i] HH:mm',\n LLLL: 'dddd, D MMMM YYYY [i] HH:mm',\n },\n calendar: {\n sameDay: '[i teie mahana, i] LT',\n nextDay: '[apopo i] LT',\n nextWeek: 'dddd [i] LT',\n lastDay: '[inanahi i] LT',\n lastWeek: 'dddd [whakamutunga i] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'i roto i %s',\n past: '%s i mua',\n s: 'te hēkona ruarua',\n ss: '%d hēkona',\n m: 'he meneti',\n mm: '%d meneti',\n h: 'te haora',\n hh: '%d haora',\n d: 'he ra',\n dd: '%d ra',\n M: 'he marama',\n MM: '%d marama',\n y: 'he tau',\n yy: '%d tau',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mi;\n\n})));\n","//! moment.js locale configuration\n//! locale : Macedonian [mk]\n//! author : Borislav Mickov : https://github.com/B0k0\n//! author : Sashko Todorov : https://github.com/bkyceh\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mk = moment.defineLocale('mk', {\n months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(\n '_'\n ),\n monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),\n weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(\n '_'\n ),\n weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),\n weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'D.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[Денес во] LT',\n nextDay: '[Утре во] LT',\n nextWeek: '[Во] dddd [во] LT',\n lastDay: '[Вчера во] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 6:\n return '[Изминатата] dddd [во] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[Изминатиот] dddd [во] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пред %s',\n s: 'неколку секунди',\n ss: '%d секунди',\n m: 'една минута',\n mm: '%d минути',\n h: 'еден час',\n hh: '%d часа',\n d: 'еден ден',\n dd: '%d дена',\n M: 'еден месец',\n MM: '%d месеци',\n y: 'една година',\n yy: '%d години',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ев|ен|ти|ви|ри|ми)/,\n ordinal: function (number) {\n var lastDigit = number % 10,\n last2Digits = number % 100;\n if (number === 0) {\n return number + '-ев';\n } else if (last2Digits === 0) {\n return number + '-ен';\n } else if (last2Digits > 10 && last2Digits < 20) {\n return number + '-ти';\n } else if (lastDigit === 1) {\n return number + '-ви';\n } else if (lastDigit === 2) {\n return number + '-ри';\n } else if (lastDigit === 7 || lastDigit === 8) {\n return number + '-ми';\n } else {\n return number + '-ти';\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return mk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Malayalam [ml]\n//! author : Floyd Pink : https://github.com/floydpink\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ml = moment.defineLocale('ml', {\n months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(\n '_'\n ),\n monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(\n '_'\n ),\n weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),\n weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm -നു',\n LTS: 'A h:mm:ss -നു',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm -നു',\n LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',\n },\n calendar: {\n sameDay: '[ഇന്ന്] LT',\n nextDay: '[നാളെ] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[ഇന്നലെ] LT',\n lastWeek: '[കഴിഞ്ഞ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s കഴിഞ്ഞ്',\n past: '%s മുൻപ്',\n s: 'അൽപ നിമിഷങ്ങൾ',\n ss: '%d സെക്കൻഡ്',\n m: 'ഒരു മിനിറ്റ്',\n mm: '%d മിനിറ്റ്',\n h: 'ഒരു മണിക്കൂർ',\n hh: '%d മണിക്കൂർ',\n d: 'ഒരു ദിവസം',\n dd: '%d ദിവസം',\n M: 'ഒരു മാസം',\n MM: '%d മാസം',\n y: 'ഒരു വർഷം',\n yy: '%d വർഷം',\n },\n meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n (meridiem === 'രാത്രി' && hour >= 4) ||\n meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||\n meridiem === 'വൈകുന്നേരം'\n ) {\n return hour + 12;\n } else {\n return hour;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'രാത്രി';\n } else if (hour < 12) {\n return 'രാവിലെ';\n } else if (hour < 17) {\n return 'ഉച്ച കഴിഞ്ഞ്';\n } else if (hour < 20) {\n return 'വൈകുന്നേരം';\n } else {\n return 'രാത്രി';\n }\n },\n });\n\n return ml;\n\n})));\n","//! moment.js locale configuration\n//! locale : Mongolian [mn]\n//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function translate(number, withoutSuffix, key, isFuture) {\n switch (key) {\n case 's':\n return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';\n case 'ss':\n return number + (withoutSuffix ? ' секунд' : ' секундын');\n case 'm':\n case 'mm':\n return number + (withoutSuffix ? ' минут' : ' минутын');\n case 'h':\n case 'hh':\n return number + (withoutSuffix ? ' цаг' : ' цагийн');\n case 'd':\n case 'dd':\n return number + (withoutSuffix ? ' өдөр' : ' өдрийн');\n case 'M':\n case 'MM':\n return number + (withoutSuffix ? ' сар' : ' сарын');\n case 'y':\n case 'yy':\n return number + (withoutSuffix ? ' жил' : ' жилийн');\n default:\n return number;\n }\n }\n\n var mn = moment.defineLocale('mn', {\n months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(\n '_'\n ),\n monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),\n weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),\n weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY оны MMMMын D',\n LLL: 'YYYY оны MMMMын D HH:mm',\n LLLL: 'dddd, YYYY оны MMMMын D HH:mm',\n },\n meridiemParse: /ҮӨ|ҮХ/i,\n isPM: function (input) {\n return input === 'ҮХ';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ҮӨ';\n } else {\n return 'ҮХ';\n }\n },\n calendar: {\n sameDay: '[Өнөөдөр] LT',\n nextDay: '[Маргааш] LT',\n nextWeek: '[Ирэх] dddd LT',\n lastDay: '[Өчигдөр] LT',\n lastWeek: '[Өнгөрсөн] dddd LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s дараа',\n past: '%s өмнө',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2} өдөр/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + ' өдөр';\n default:\n return number;\n }\n },\n });\n\n return mn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Marathi [mr]\n//! author : Harshad Kale : https://github.com/kalehv\n//! author : Vivek Athalye : https://github.com/vnathalye\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n function relativeTimeMr(number, withoutSuffix, string, isFuture) {\n var output = '';\n if (withoutSuffix) {\n switch (string) {\n case 's':\n output = 'काही सेकंद';\n break;\n case 'ss':\n output = '%d सेकंद';\n break;\n case 'm':\n output = 'एक मिनिट';\n break;\n case 'mm':\n output = '%d मिनिटे';\n break;\n case 'h':\n output = 'एक तास';\n break;\n case 'hh':\n output = '%d तास';\n break;\n case 'd':\n output = 'एक दिवस';\n break;\n case 'dd':\n output = '%d दिवस';\n break;\n case 'M':\n output = 'एक महिना';\n break;\n case 'MM':\n output = '%d महिने';\n break;\n case 'y':\n output = 'एक वर्ष';\n break;\n case 'yy':\n output = '%d वर्षे';\n break;\n }\n } else {\n switch (string) {\n case 's':\n output = 'काही सेकंदां';\n break;\n case 'ss':\n output = '%d सेकंदां';\n break;\n case 'm':\n output = 'एका मिनिटा';\n break;\n case 'mm':\n output = '%d मिनिटां';\n break;\n case 'h':\n output = 'एका तासा';\n break;\n case 'hh':\n output = '%d तासां';\n break;\n case 'd':\n output = 'एका दिवसा';\n break;\n case 'dd':\n output = '%d दिवसां';\n break;\n case 'M':\n output = 'एका महिन्या';\n break;\n case 'MM':\n output = '%d महिन्यां';\n break;\n case 'y':\n output = 'एका वर्षा';\n break;\n case 'yy':\n output = '%d वर्षां';\n break;\n }\n }\n return output.replace(/%d/i, number);\n }\n\n var mr = moment.defineLocale('mr', {\n months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(\n '_'\n ),\n monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),\n weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),\n weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),\n longDateFormat: {\n LT: 'A h:mm वाजता',\n LTS: 'A h:mm:ss वाजता',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm वाजता',\n LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[उद्या] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[काल] LT',\n lastWeek: '[मागील] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमध्ये',\n past: '%sपूर्वी',\n s: relativeTimeMr,\n ss: relativeTimeMr,\n m: relativeTimeMr,\n mm: relativeTimeMr,\n h: relativeTimeMr,\n hh: relativeTimeMr,\n d: relativeTimeMr,\n dd: relativeTimeMr,\n M: relativeTimeMr,\n MM: relativeTimeMr,\n y: relativeTimeMr,\n yy: relativeTimeMr,\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {\n return hour;\n } else if (\n meridiem === 'दुपारी' ||\n meridiem === 'सायंकाळी' ||\n meridiem === 'रात्री'\n ) {\n return hour >= 12 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour >= 0 && hour < 6) {\n return 'पहाटे';\n } else if (hour < 12) {\n return 'सकाळी';\n } else if (hour < 17) {\n return 'दुपारी';\n } else if (hour < 20) {\n return 'सायंकाळी';\n } else {\n return 'रात्री';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return mr;\n\n})));\n","//! moment.js locale configuration\n//! locale : Malay [ms-my]\n//! note : DEPRECATED, the correct one is [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var msMy = moment.defineLocale('ms-my', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return msMy;\n\n})));\n","//! moment.js locale configuration\n//! locale : Malay [ms]\n//! author : Weldan Jamili : https://github.com/weldan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ms = moment.defineLocale('ms', {\n months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),\n weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),\n weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),\n weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [pukul] HH.mm',\n LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',\n },\n meridiemParse: /pagi|tengahari|petang|malam/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'pagi') {\n return hour;\n } else if (meridiem === 'tengahari') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'petang' || meridiem === 'malam') {\n return hour + 12;\n }\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'pagi';\n } else if (hours < 15) {\n return 'tengahari';\n } else if (hours < 19) {\n return 'petang';\n } else {\n return 'malam';\n }\n },\n calendar: {\n sameDay: '[Hari ini pukul] LT',\n nextDay: '[Esok pukul] LT',\n nextWeek: 'dddd [pukul] LT',\n lastDay: '[Kelmarin pukul] LT',\n lastWeek: 'dddd [lepas pukul] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dalam %s',\n past: '%s yang lepas',\n s: 'beberapa saat',\n ss: '%d saat',\n m: 'seminit',\n mm: '%d minit',\n h: 'sejam',\n hh: '%d jam',\n d: 'sehari',\n dd: '%d hari',\n M: 'sebulan',\n MM: '%d bulan',\n y: 'setahun',\n yy: '%d tahun',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ms;\n\n})));\n","//! moment.js locale configuration\n//! locale : Maltese (Malta) [mt]\n//! author : Alessandro Maruccia : https://github.com/alesma\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var mt = moment.defineLocale('mt', {\n months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),\n weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(\n '_'\n ),\n weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),\n weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Illum fil-]LT',\n nextDay: '[Għada fil-]LT',\n nextWeek: 'dddd [fil-]LT',\n lastDay: '[Il-bieraħ fil-]LT',\n lastWeek: 'dddd [li għadda] [fil-]LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'f’ %s',\n past: '%s ilu',\n s: 'ftit sekondi',\n ss: '%d sekondi',\n m: 'minuta',\n mm: '%d minuti',\n h: 'siegħa',\n hh: '%d siegħat',\n d: 'ġurnata',\n dd: '%d ġranet',\n M: 'xahar',\n MM: '%d xhur',\n y: 'sena',\n yy: '%d sni',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return mt;\n\n})));\n","//! moment.js locale configuration\n//! locale : Burmese [my]\n//! author : Squar team, mysquar.com\n//! author : David Rossellat : https://github.com/gholadr\n//! author : Tin Aung Lin : https://github.com/thanyawzinmin\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '၁',\n '2': '၂',\n '3': '၃',\n '4': '၄',\n '5': '၅',\n '6': '၆',\n '7': '၇',\n '8': '၈',\n '9': '၉',\n '0': '၀',\n },\n numberMap = {\n '၁': '1',\n '၂': '2',\n '၃': '3',\n '၄': '4',\n '၅': '5',\n '၆': '6',\n '၇': '7',\n '၈': '8',\n '၉': '9',\n '၀': '0',\n };\n\n var my = moment.defineLocale('my', {\n months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(\n '_'\n ),\n monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),\n weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(\n '_'\n ),\n weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),\n\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ယနေ.] LT [မှာ]',\n nextDay: '[မနက်ဖြန်] LT [မှာ]',\n nextWeek: 'dddd LT [မှာ]',\n lastDay: '[မနေ.က] LT [မှာ]',\n lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'လာမည့် %s မှာ',\n past: 'လွန်ခဲ့သော %s က',\n s: 'စက္ကန်.အနည်းငယ်',\n ss: '%d စက္ကန့်',\n m: 'တစ်မိနစ်',\n mm: '%d မိနစ်',\n h: 'တစ်နာရီ',\n hh: '%d နာရီ',\n d: 'တစ်ရက်',\n dd: '%d ရက်',\n M: 'တစ်လ',\n MM: '%d လ',\n y: 'တစ်နှစ်',\n yy: '%d နှစ်',\n },\n preparse: function (string) {\n return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return my;\n\n})));\n","//! moment.js locale configuration\n//! locale : Norwegian Bokmål [nb]\n//! authors : Espen Hovlandsdal : https://github.com/rexxars\n//! Sigurd Gartmann : https://github.com/sigurdga\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nb = moment.defineLocale('nb', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),\n weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),\n weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[i dag kl.] LT',\n nextDay: '[i morgen kl.] LT',\n nextWeek: 'dddd [kl.] LT',\n lastDay: '[i går kl.] LT',\n lastWeek: '[forrige] dddd [kl.] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s siden',\n s: 'noen sekunder',\n ss: '%d sekunder',\n m: 'ett minutt',\n mm: '%d minutter',\n h: 'en time',\n hh: '%d timer',\n d: 'en dag',\n dd: '%d dager',\n M: 'en måned',\n MM: '%d måneder',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nb;\n\n})));\n","//! moment.js locale configuration\n//! locale : Nepalese [ne]\n//! author : suvash : https://github.com/suvash\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '१',\n '2': '२',\n '3': '३',\n '4': '४',\n '5': '५',\n '6': '६',\n '7': '७',\n '8': '८',\n '9': '९',\n '0': '०',\n },\n numberMap = {\n '१': '1',\n '२': '2',\n '३': '3',\n '४': '4',\n '५': '5',\n '६': '6',\n '७': '7',\n '८': '8',\n '९': '9',\n '०': '0',\n };\n\n var ne = moment.defineLocale('ne', {\n months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(\n '_'\n ),\n monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(\n '_'\n ),\n weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),\n weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'Aको h:mm बजे',\n LTS: 'Aको h:mm:ss बजे',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, Aको h:mm बजे',\n LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',\n },\n preparse: function (string) {\n return string.replace(/[१२३४५६७८९०]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n meridiemParse: /राति|बिहान|दिउँसो|साँझ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'राति') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'बिहान') {\n return hour;\n } else if (meridiem === 'दिउँसो') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'साँझ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 3) {\n return 'राति';\n } else if (hour < 12) {\n return 'बिहान';\n } else if (hour < 16) {\n return 'दिउँसो';\n } else if (hour < 20) {\n return 'साँझ';\n } else {\n return 'राति';\n }\n },\n calendar: {\n sameDay: '[आज] LT',\n nextDay: '[भोलि] LT',\n nextWeek: '[आउँदो] dddd[,] LT',\n lastDay: '[हिजो] LT',\n lastWeek: '[गएको] dddd[,] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sमा',\n past: '%s अगाडि',\n s: 'केही क्षण',\n ss: '%d सेकेण्ड',\n m: 'एक मिनेट',\n mm: '%d मिनेट',\n h: 'एक घण्टा',\n hh: '%d घण्टा',\n d: 'एक दिन',\n dd: '%d दिन',\n M: 'एक महिना',\n MM: '%d महिना',\n y: 'एक बर्ष',\n yy: '%d बर्ष',\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ne;\n\n})));\n","//! moment.js locale configuration\n//! locale : Dutch (Belgium) [nl-be]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nlBe = moment.defineLocale('nl-be', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nlBe;\n\n})));\n","//! moment.js locale configuration\n//! locale : Dutch [nl]\n//! author : Joris Röling : https://github.com/jorisroling\n//! author : Jacob Middag : https://github.com/middagj\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(\n '_'\n ),\n monthsParse = [\n /^jan/i,\n /^feb/i,\n /^maart|mrt.?$/i,\n /^apr/i,\n /^mei$/i,\n /^jun[i.]?$/i,\n /^jul[i.]?$/i,\n /^aug/i,\n /^sep/i,\n /^okt/i,\n /^nov/i,\n /^dec/i,\n ],\n monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\\.?|feb\\.?|mrt\\.?|apr\\.?|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i;\n\n var nl = moment.defineLocale('nl', {\n months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: function (m, format) {\n if (!m) {\n return monthsShortWithDots;\n } else if (/-MMM-/.test(format)) {\n return monthsShortWithoutDots[m.month()];\n } else {\n return monthsShortWithDots[m.month()];\n }\n },\n\n monthsRegex: monthsRegex,\n monthsShortRegex: monthsRegex,\n monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,\n monthsShortStrictRegex: /^(jan\\.?|feb\\.?|mrt\\.?|apr\\.?|mei|ju[nl]\\.?|aug\\.?|sep\\.?|okt\\.?|nov\\.?|dec\\.?)/i,\n\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(\n '_'\n ),\n weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),\n weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD-MM-YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[vandaag om] LT',\n nextDay: '[morgen om] LT',\n nextWeek: 'dddd [om] LT',\n lastDay: '[gisteren om] LT',\n lastWeek: '[afgelopen] dddd [om] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'over %s',\n past: '%s geleden',\n s: 'een paar seconden',\n ss: '%d seconden',\n m: 'één minuut',\n mm: '%d minuten',\n h: 'één uur',\n hh: '%d uur',\n d: 'één dag',\n dd: '%d dagen',\n M: 'één maand',\n MM: '%d maanden',\n y: 'één jaar',\n yy: '%d jaar',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(ste|de)/,\n ordinal: function (number) {\n return (\n number +\n (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')\n );\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Nynorsk [nn]\n//! authors : https://github.com/mechuwind\n//! Stephen Ramthun : https://github.com/stephenramthun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var nn = moment.defineLocale('nn', {\n months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),\n weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),\n weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY [kl.] H:mm',\n LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',\n },\n calendar: {\n sameDay: '[I dag klokka] LT',\n nextDay: '[I morgon klokka] LT',\n nextWeek: 'dddd [klokka] LT',\n lastDay: '[I går klokka] LT',\n lastWeek: '[Føregåande] dddd [klokka] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: '%s sidan',\n s: 'nokre sekund',\n ss: '%d sekund',\n m: 'eit minutt',\n mm: '%d minutt',\n h: 'ein time',\n hh: '%d timar',\n d: 'ein dag',\n dd: '%d dagar',\n M: 'ein månad',\n MM: '%d månader',\n y: 'eit år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return nn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Occitan, lengadocian dialecte [oc-lnc]\n//! author : Quentin PAGÈS : https://github.com/Quenty31\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ocLnc = moment.defineLocale('oc-lnc', {\n months: {\n standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(\n '_'\n ),\n format: \"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre\".split(\n '_'\n ),\n isFormat: /D[oD]?(\\s)+MMMM/,\n },\n monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(\n '_'\n ),\n weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),\n weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [de] YYYY',\n ll: 'D MMM YYYY',\n LLL: 'D MMMM [de] YYYY [a] H:mm',\n lll: 'D MMM YYYY, H:mm',\n LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',\n llll: 'ddd D MMM YYYY, H:mm',\n },\n calendar: {\n sameDay: '[uèi a] LT',\n nextDay: '[deman a] LT',\n nextWeek: 'dddd [a] LT',\n lastDay: '[ièr a] LT',\n lastWeek: 'dddd [passat a] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: \"d'aquí %s\",\n past: 'fa %s',\n s: 'unas segondas',\n ss: '%d segondas',\n m: 'una minuta',\n mm: '%d minutas',\n h: 'una ora',\n hh: '%d oras',\n d: 'un jorn',\n dd: '%d jorns',\n M: 'un mes',\n MM: '%d meses',\n y: 'un an',\n yy: '%d ans',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(r|n|t|è|a)/,\n ordinal: function (number, period) {\n var output =\n number === 1\n ? 'r'\n : number === 2\n ? 'n'\n : number === 3\n ? 'r'\n : number === 4\n ? 't'\n : 'è';\n if (period === 'w' || period === 'W') {\n output = 'a';\n }\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4,\n },\n });\n\n return ocLnc;\n\n})));\n","//! moment.js locale configuration\n//! locale : Punjabi (India) [pa-in]\n//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '੧',\n '2': '੨',\n '3': '੩',\n '4': '੪',\n '5': '੫',\n '6': '੬',\n '7': '੭',\n '8': '੮',\n '9': '੯',\n '0': '੦',\n },\n numberMap = {\n '੧': '1',\n '੨': '2',\n '੩': '3',\n '੪': '4',\n '੫': '5',\n '੬': '6',\n '੭': '7',\n '੮': '8',\n '੯': '9',\n '੦': '0',\n };\n\n var paIn = moment.defineLocale('pa-in', {\n // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.\n months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(\n '_'\n ),\n weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(\n '_'\n ),\n weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm ਵਜੇ',\n LTS: 'A h:mm:ss ਵਜੇ',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',\n LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',\n },\n calendar: {\n sameDay: '[ਅਜ] LT',\n nextDay: '[ਕਲ] LT',\n nextWeek: '[ਅਗਲਾ] dddd, LT',\n lastDay: '[ਕਲ] LT',\n lastWeek: '[ਪਿਛਲੇ] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s ਵਿੱਚ',\n past: '%s ਪਿਛਲੇ',\n s: 'ਕੁਝ ਸਕਿੰਟ',\n ss: '%d ਸਕਿੰਟ',\n m: 'ਇਕ ਮਿੰਟ',\n mm: '%d ਮਿੰਟ',\n h: 'ਇੱਕ ਘੰਟਾ',\n hh: '%d ਘੰਟੇ',\n d: 'ਇੱਕ ਦਿਨ',\n dd: '%d ਦਿਨ',\n M: 'ਇੱਕ ਮਹੀਨਾ',\n MM: '%d ਮਹੀਨੇ',\n y: 'ਇੱਕ ਸਾਲ',\n yy: '%d ਸਾਲ',\n },\n preparse: function (string) {\n return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // Punjabi notation for meridiems are quite fuzzy in practice. While there exists\n // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.\n meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ਰਾਤ') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ਸਵੇਰ') {\n return hour;\n } else if (meridiem === 'ਦੁਪਹਿਰ') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'ਸ਼ਾਮ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ਰਾਤ';\n } else if (hour < 10) {\n return 'ਸਵੇਰ';\n } else if (hour < 17) {\n return 'ਦੁਪਹਿਰ';\n } else if (hour < 20) {\n return 'ਸ਼ਾਮ';\n } else {\n return 'ਰਾਤ';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return paIn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Polish [pl]\n//! author : Rafal Hirsz : https://github.com/evoL\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(\n '_'\n ),\n monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(\n '_'\n );\n function plural(n) {\n return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;\n }\n function translate(number, withoutSuffix, key) {\n var result = number + ' ';\n switch (key) {\n case 'ss':\n return result + (plural(number) ? 'sekundy' : 'sekund');\n case 'm':\n return withoutSuffix ? 'minuta' : 'minutę';\n case 'mm':\n return result + (plural(number) ? 'minuty' : 'minut');\n case 'h':\n return withoutSuffix ? 'godzina' : 'godzinę';\n case 'hh':\n return result + (plural(number) ? 'godziny' : 'godzin');\n case 'MM':\n return result + (plural(number) ? 'miesiące' : 'miesięcy');\n case 'yy':\n return result + (plural(number) ? 'lata' : 'lat');\n }\n }\n\n var pl = moment.defineLocale('pl', {\n months: function (momentToFormat, format) {\n if (!momentToFormat) {\n return monthsNominative;\n } else if (format === '') {\n // Hack: if format empty we know this is used to generate\n // RegExp by moment. Give then back both valid forms of months\n // in RegExp ready format.\n return (\n '(' +\n monthsSubjective[momentToFormat.month()] +\n '|' +\n monthsNominative[momentToFormat.month()] +\n ')'\n );\n } else if (/D MMMM/.test(format)) {\n return monthsSubjective[momentToFormat.month()];\n } else {\n return monthsNominative[momentToFormat.month()];\n }\n },\n monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),\n weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(\n '_'\n ),\n weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),\n weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Dziś o] LT',\n nextDay: '[Jutro o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W niedzielę o] LT';\n\n case 2:\n return '[We wtorek o] LT';\n\n case 3:\n return '[W środę o] LT';\n\n case 6:\n return '[W sobotę o] LT';\n\n default:\n return '[W] dddd [o] LT';\n }\n },\n lastDay: '[Wczoraj o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[W zeszłą niedzielę o] LT';\n case 3:\n return '[W zeszłą środę o] LT';\n case 6:\n return '[W zeszłą sobotę o] LT';\n default:\n return '[W zeszły] dddd [o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: '%s temu',\n s: 'kilka sekund',\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: '1 dzień',\n dd: '%d dni',\n M: 'miesiąc',\n MM: translate,\n y: 'rok',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Portuguese (Brazil) [pt-br]\n//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ptBr = moment.defineLocale('pt-br', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(\n '_'\n ),\n weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),\n weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'poucos segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n });\n\n return ptBr;\n\n})));\n","//! moment.js locale configuration\n//! locale : Portuguese [pt]\n//! author : Jefferson : https://github.com/jalex79\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var pt = moment.defineLocale('pt', {\n months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(\n '_'\n ),\n monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),\n weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(\n '_'\n ),\n weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),\n weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D [de] MMMM [de] YYYY',\n LLL: 'D [de] MMMM [de] YYYY HH:mm',\n LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hoje às] LT',\n nextDay: '[Amanhã às] LT',\n nextWeek: 'dddd [às] LT',\n lastDay: '[Ontem às] LT',\n lastWeek: function () {\n return this.day() === 0 || this.day() === 6\n ? '[Último] dddd [às] LT' // Saturday + Sunday\n : '[Última] dddd [às] LT'; // Monday - Friday\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'em %s',\n past: 'há %s',\n s: 'segundos',\n ss: '%d segundos',\n m: 'um minuto',\n mm: '%d minutos',\n h: 'uma hora',\n hh: '%d horas',\n d: 'um dia',\n dd: '%d dias',\n M: 'um mês',\n MM: '%d meses',\n y: 'um ano',\n yy: '%d anos',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}º/,\n ordinal: '%dº',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return pt;\n\n})));\n","//! moment.js locale configuration\n//! locale : Romanian [ro]\n//! author : Vlad Gurdiga : https://github.com/gurdiga\n//! author : Valentin Agachi : https://github.com/avaly\n//! author : Emanuel Cepoi : https://github.com/cepem\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: 'secunde',\n mm: 'minute',\n hh: 'ore',\n dd: 'zile',\n MM: 'luni',\n yy: 'ani',\n },\n separator = ' ';\n if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {\n separator = ' de ';\n }\n return number + separator + format[key];\n }\n\n var ro = moment.defineLocale('ro', {\n months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(\n '_'\n ),\n monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),\n weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),\n weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY H:mm',\n LLLL: 'dddd, D MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[azi la] LT',\n nextDay: '[mâine la] LT',\n nextWeek: 'dddd [la] LT',\n lastDay: '[ieri la] LT',\n lastWeek: '[fosta] dddd [la] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'peste %s',\n past: '%s în urmă',\n s: 'câteva secunde',\n ss: relativeTimeWithPlural,\n m: 'un minut',\n mm: relativeTimeWithPlural,\n h: 'o oră',\n hh: relativeTimeWithPlural,\n d: 'o zi',\n dd: relativeTimeWithPlural,\n M: 'o lună',\n MM: relativeTimeWithPlural,\n y: 'un an',\n yy: relativeTimeWithPlural,\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return ro;\n\n})));\n","//! moment.js locale configuration\n//! locale : Russian [ru]\n//! author : Viktorminator : https://github.com/Viktorminator\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Коренберг Марк : https://github.com/socketpair\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',\n mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',\n hh: 'час_часа_часов',\n dd: 'день_дня_дней',\n MM: 'месяц_месяца_месяцев',\n yy: 'год_года_лет',\n };\n if (key === 'm') {\n return withoutSuffix ? 'минута' : 'минуту';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n var monthsParse = [\n /^янв/i,\n /^фев/i,\n /^мар/i,\n /^апр/i,\n /^ма[йя]/i,\n /^июн/i,\n /^июл/i,\n /^авг/i,\n /^сен/i,\n /^окт/i,\n /^ноя/i,\n /^дек/i,\n ];\n\n // http://new.gramota.ru/spravka/rules/139-prop : § 103\n // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637\n // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753\n var ru = moment.defineLocale('ru', {\n months: {\n format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(\n '_'\n ),\n standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(\n '_'\n ),\n },\n monthsShort: {\n // по CLDR именно \"июл.\" и \"июн.\", но какой смысл менять букву на точку?\n format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(\n '_'\n ),\n },\n weekdays: {\n standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(\n '_'\n ),\n format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(\n '_'\n ),\n isFormat: /\\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,\n },\n weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),\n monthsParse: monthsParse,\n longMonthsParse: monthsParse,\n shortMonthsParse: monthsParse,\n\n // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки\n monthsRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // копия предыдущего\n monthsShortRegex: /^(январ[ья]|янв\\.?|феврал[ья]|февр?\\.?|марта?|мар\\.?|апрел[ья]|апр\\.?|ма[йя]|июн[ья]|июн\\.?|июл[ья]|июл\\.?|августа?|авг\\.?|сентябр[ья]|сент?\\.?|октябр[ья]|окт\\.?|ноябр[ья]|нояб?\\.?|декабр[ья]|дек\\.?)/i,\n\n // полные названия с падежами\n monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,\n\n // Выражение, которое соответствует только сокращённым формам\n monthsShortStrictRegex: /^(янв\\.|февр?\\.|мар[т.]|апр\\.|ма[яй]|июн[ья.]|июл[ья.]|авг\\.|сент?\\.|окт\\.|нояб?\\.|дек\\.)/i,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY г.',\n LLL: 'D MMMM YYYY г., H:mm',\n LLLL: 'dddd, D MMMM YYYY г., H:mm',\n },\n calendar: {\n sameDay: '[Сегодня, в] LT',\n nextDay: '[Завтра, в] LT',\n lastDay: '[Вчера, в] LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В следующее] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В следующий] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В следующую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n lastWeek: function (now) {\n if (now.week() !== this.week()) {\n switch (this.day()) {\n case 0:\n return '[В прошлое] dddd, [в] LT';\n case 1:\n case 2:\n case 4:\n return '[В прошлый] dddd, [в] LT';\n case 3:\n case 5:\n case 6:\n return '[В прошлую] dddd, [в] LT';\n }\n } else {\n if (this.day() === 2) {\n return '[Во] dddd, [в] LT';\n } else {\n return '[В] dddd, [в] LT';\n }\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'через %s',\n past: '%s назад',\n s: 'несколько секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'час',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'месяц',\n MM: relativeTimeWithPlural,\n y: 'год',\n yy: relativeTimeWithPlural,\n },\n meridiemParse: /ночи|утра|дня|вечера/i,\n isPM: function (input) {\n return /^(дня|вечера)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночи';\n } else if (hour < 12) {\n return 'утра';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечера';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го|я)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n return number + '-й';\n case 'D':\n return number + '-го';\n case 'w':\n case 'W':\n return number + '-я';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ru;\n\n})));\n","//! moment.js locale configuration\n//! locale : Sindhi [sd]\n//! author : Narain Sagar : https://github.com/narainsagar\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوري',\n 'فيبروري',\n 'مارچ',\n 'اپريل',\n 'مئي',\n 'جون',\n 'جولاءِ',\n 'آگسٽ',\n 'سيپٽمبر',\n 'آڪٽوبر',\n 'نومبر',\n 'ڊسمبر',\n ],\n days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];\n\n var sd = moment.defineLocale('sd', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[اڄ] LT',\n nextDay: '[سڀاڻي] LT',\n nextWeek: 'dddd [اڳين هفتي تي] LT',\n lastDay: '[ڪالهه] LT',\n lastWeek: '[گزريل هفتي] dddd [تي] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s پوء',\n past: '%s اڳ',\n s: 'چند سيڪنڊ',\n ss: '%d سيڪنڊ',\n m: 'هڪ منٽ',\n mm: '%d منٽ',\n h: 'هڪ ڪلاڪ',\n hh: '%d ڪلاڪ',\n d: 'هڪ ڏينهن',\n dd: '%d ڏينهن',\n M: 'هڪ مهينو',\n MM: '%d مهينا',\n y: 'هڪ سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sd;\n\n})));\n","//! moment.js locale configuration\n//! locale : Northern Sami [se]\n//! authors : Bård Rolstad Henriksen : https://github.com/karamell\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var se = moment.defineLocale('se', {\n months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(\n '_'\n ),\n monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(\n '_'\n ),\n weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(\n '_'\n ),\n weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),\n weekdaysMin: 's_v_m_g_d_b_L'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'MMMM D. [b.] YYYY',\n LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',\n LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',\n },\n calendar: {\n sameDay: '[otne ti] LT',\n nextDay: '[ihttin ti] LT',\n nextWeek: 'dddd [ti] LT',\n lastDay: '[ikte ti] LT',\n lastWeek: '[ovddit] dddd [ti] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s geažes',\n past: 'maŋit %s',\n s: 'moadde sekunddat',\n ss: '%d sekunddat',\n m: 'okta minuhta',\n mm: '%d minuhtat',\n h: 'okta diimmu',\n hh: '%d diimmut',\n d: 'okta beaivi',\n dd: '%d beaivvit',\n M: 'okta mánnu',\n MM: '%d mánut',\n y: 'okta jahki',\n yy: '%d jagit',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return se;\n\n})));\n","//! moment.js locale configuration\n//! locale : Sinhalese [si]\n//! author : Sampath Sitinamaluwa : https://github.com/sampathsris\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n /*jshint -W100*/\n var si = moment.defineLocale('si', {\n months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(\n '_'\n ),\n monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(\n '_'\n ),\n weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(\n '_'\n ),\n weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),\n weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'a h:mm',\n LTS: 'a h:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY MMMM D',\n LLL: 'YYYY MMMM D, a h:mm',\n LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',\n },\n calendar: {\n sameDay: '[අද] LT[ට]',\n nextDay: '[හෙට] LT[ට]',\n nextWeek: 'dddd LT[ට]',\n lastDay: '[ඊයේ] LT[ට]',\n lastWeek: '[පසුගිය] dddd LT[ට]',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%sකින්',\n past: '%sකට පෙර',\n s: 'තත්පර කිහිපය',\n ss: 'තත්පර %d',\n m: 'මිනිත්තුව',\n mm: 'මිනිත්තු %d',\n h: 'පැය',\n hh: 'පැය %d',\n d: 'දිනය',\n dd: 'දින %d',\n M: 'මාසය',\n MM: 'මාස %d',\n y: 'වසර',\n yy: 'වසර %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2} වැනි/,\n ordinal: function (number) {\n return number + ' වැනි';\n },\n meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,\n isPM: function (input) {\n return input === 'ප.ව.' || input === 'පස් වරු';\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'ප.ව.' : 'පස් වරු';\n } else {\n return isLower ? 'පෙ.ව.' : 'පෙර වරු';\n }\n },\n });\n\n return si;\n\n})));\n","//! moment.js locale configuration\n//! locale : Slovak [sk]\n//! author : Martin Minka : https://github.com/k2s\n//! based on work of petrbela : https://github.com/petrbela\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(\n '_'\n ),\n monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');\n function plural(n) {\n return n > 1 && n < 5;\n }\n function translate(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's': // a few seconds / in a few seconds / a few seconds ago\n return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';\n case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'sekundy' : 'sekúnd');\n } else {\n return result + 'sekundami';\n }\n case 'm': // a minute / in a minute / a minute ago\n return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';\n case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'minúty' : 'minút');\n } else {\n return result + 'minútami';\n }\n case 'h': // an hour / in an hour / an hour ago\n return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';\n case 'hh': // 9 hours / in 9 hours / 9 hours ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'hodiny' : 'hodín');\n } else {\n return result + 'hodinami';\n }\n case 'd': // a day / in a day / a day ago\n return withoutSuffix || isFuture ? 'deň' : 'dňom';\n case 'dd': // 9 days / in 9 days / 9 days ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'dni' : 'dní');\n } else {\n return result + 'dňami';\n }\n case 'M': // a month / in a month / a month ago\n return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';\n case 'MM': // 9 months / in 9 months / 9 months ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'mesiace' : 'mesiacov');\n } else {\n return result + 'mesiacmi';\n }\n case 'y': // a year / in a year / a year ago\n return withoutSuffix || isFuture ? 'rok' : 'rokom';\n case 'yy': // 9 years / in 9 years / 9 years ago\n if (withoutSuffix || isFuture) {\n return result + (plural(number) ? 'roky' : 'rokov');\n } else {\n return result + 'rokmi';\n }\n }\n }\n\n var sk = moment.defineLocale('sk', {\n months: months,\n monthsShort: monthsShort,\n weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),\n weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),\n weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[dnes o] LT',\n nextDay: '[zajtra o] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v nedeľu o] LT';\n case 1:\n case 2:\n return '[v] dddd [o] LT';\n case 3:\n return '[v stredu o] LT';\n case 4:\n return '[vo štvrtok o] LT';\n case 5:\n return '[v piatok o] LT';\n case 6:\n return '[v sobotu o] LT';\n }\n },\n lastDay: '[včera o] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[minulú nedeľu o] LT';\n case 1:\n case 2:\n return '[minulý] dddd [o] LT';\n case 3:\n return '[minulú stredu o] LT';\n case 4:\n case 5:\n return '[minulý] dddd [o] LT';\n case 6:\n return '[minulú sobotu o] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pred %s',\n s: translate,\n ss: translate,\n m: translate,\n mm: translate,\n h: translate,\n hh: translate,\n d: translate,\n dd: translate,\n M: translate,\n MM: translate,\n y: translate,\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Slovenian [sl]\n//! author : Robert Sedovšek : https://github.com/sedovsek\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var result = number + ' ';\n switch (key) {\n case 's':\n return withoutSuffix || isFuture\n ? 'nekaj sekund'\n : 'nekaj sekundami';\n case 'ss':\n if (number === 1) {\n result += withoutSuffix ? 'sekundo' : 'sekundi';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';\n } else {\n result += 'sekund';\n }\n return result;\n case 'm':\n return withoutSuffix ? 'ena minuta' : 'eno minuto';\n case 'mm':\n if (number === 1) {\n result += withoutSuffix ? 'minuta' : 'minuto';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'minuti' : 'minutama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'minute' : 'minutami';\n } else {\n result += withoutSuffix || isFuture ? 'minut' : 'minutami';\n }\n return result;\n case 'h':\n return withoutSuffix ? 'ena ura' : 'eno uro';\n case 'hh':\n if (number === 1) {\n result += withoutSuffix ? 'ura' : 'uro';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'uri' : 'urama';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'ure' : 'urami';\n } else {\n result += withoutSuffix || isFuture ? 'ur' : 'urami';\n }\n return result;\n case 'd':\n return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';\n case 'dd':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'dan' : 'dnem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';\n } else {\n result += withoutSuffix || isFuture ? 'dni' : 'dnevi';\n }\n return result;\n case 'M':\n return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';\n case 'MM':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'mesece' : 'meseci';\n } else {\n result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';\n }\n return result;\n case 'y':\n return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';\n case 'yy':\n if (number === 1) {\n result += withoutSuffix || isFuture ? 'leto' : 'letom';\n } else if (number === 2) {\n result += withoutSuffix || isFuture ? 'leti' : 'letoma';\n } else if (number < 5) {\n result += withoutSuffix || isFuture ? 'leta' : 'leti';\n } else {\n result += withoutSuffix || isFuture ? 'let' : 'leti';\n }\n return result;\n }\n }\n\n var sl = moment.defineLocale('sl', {\n months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),\n weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),\n weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD. MM. YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danes ob] LT',\n nextDay: '[jutri ob] LT',\n\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[v] [nedeljo] [ob] LT';\n case 3:\n return '[v] [sredo] [ob] LT';\n case 6:\n return '[v] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[v] dddd [ob] LT';\n }\n },\n lastDay: '[včeraj ob] LT',\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n return '[prejšnjo] [nedeljo] [ob] LT';\n case 3:\n return '[prejšnjo] [sredo] [ob] LT';\n case 6:\n return '[prejšnjo] [soboto] [ob] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[prejšnji] dddd [ob] LT';\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'čez %s',\n past: 'pred %s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Albanian [sq]\n//! author : Flakërim Ismani : https://github.com/flakerimi\n//! author : Menelion Elensúle : https://github.com/Oire\n//! author : Oerd Cukalla : https://github.com/oerd\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sq = moment.defineLocale('sq', {\n months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(\n '_'\n ),\n monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),\n weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(\n '_'\n ),\n weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),\n weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /PD|MD/,\n isPM: function (input) {\n return input.charAt(0) === 'M';\n },\n meridiem: function (hours, minutes, isLower) {\n return hours < 12 ? 'PD' : 'MD';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Sot në] LT',\n nextDay: '[Nesër në] LT',\n nextWeek: 'dddd [në] LT',\n lastDay: '[Dje në] LT',\n lastWeek: 'dddd [e kaluar në] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'në %s',\n past: '%s më parë',\n s: 'disa sekonda',\n ss: '%d sekonda',\n m: 'një minutë',\n mm: '%d minuta',\n h: 'një orë',\n hh: '%d orë',\n d: 'një ditë',\n dd: '%d ditë',\n M: 'një muaj',\n MM: '%d muaj',\n y: 'një vit',\n yy: '%d vite',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sq;\n\n})));\n","//! moment.js locale configuration\n//! locale : Serbian Cyrillic [sr-cyrl]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['секунда', 'секунде', 'секунди'],\n m: ['један минут', 'једне минуте'],\n mm: ['минут', 'минуте', 'минута'],\n h: ['један сат', 'једног сата'],\n hh: ['сат', 'сата', 'сати'],\n dd: ['дан', 'дана', 'дана'],\n MM: ['месец', 'месеца', 'месеци'],\n yy: ['година', 'године', 'година'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var srCyrl = moment.defineLocale('sr-cyrl', {\n months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(\n '_'\n ),\n monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),\n weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),\n weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[данас у] LT',\n nextDay: '[сутра у] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[у] [недељу] [у] LT';\n case 3:\n return '[у] [среду] [у] LT';\n case 6:\n return '[у] [суботу] [у] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[у] dddd [у] LT';\n }\n },\n lastDay: '[јуче у] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[прошле] [недеље] [у] LT',\n '[прошлог] [понедељка] [у] LT',\n '[прошлог] [уторка] [у] LT',\n '[прошле] [среде] [у] LT',\n '[прошлог] [четвртка] [у] LT',\n '[прошлог] [петка] [у] LT',\n '[прошле] [суботе] [у] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: 'пре %s',\n s: 'неколико секунди',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'дан',\n dd: translator.translate,\n M: 'месец',\n MM: translator.translate,\n y: 'годину',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return srCyrl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Serbian [sr]\n//! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var translator = {\n words: {\n //Different grammatical cases\n ss: ['sekunda', 'sekunde', 'sekundi'],\n m: ['jedan minut', 'jedne minute'],\n mm: ['minut', 'minute', 'minuta'],\n h: ['jedan sat', 'jednog sata'],\n hh: ['sat', 'sata', 'sati'],\n dd: ['dan', 'dana', 'dana'],\n MM: ['mesec', 'meseca', 'meseci'],\n yy: ['godina', 'godine', 'godina'],\n },\n correctGrammaticalCase: function (number, wordKey) {\n return number === 1\n ? wordKey[0]\n : number >= 2 && number <= 4\n ? wordKey[1]\n : wordKey[2];\n },\n translate: function (number, withoutSuffix, key) {\n var wordKey = translator.words[key];\n if (key.length === 1) {\n return withoutSuffix ? wordKey[0] : wordKey[1];\n } else {\n return (\n number +\n ' ' +\n translator.correctGrammaticalCase(number, wordKey)\n );\n }\n },\n };\n\n var sr = moment.defineLocale('sr', {\n months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(\n '_'\n ),\n monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(\n '_'\n ),\n weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),\n weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM YYYY',\n LLL: 'D. MMMM YYYY H:mm',\n LLLL: 'dddd, D. MMMM YYYY H:mm',\n },\n calendar: {\n sameDay: '[danas u] LT',\n nextDay: '[sutra u] LT',\n nextWeek: function () {\n switch (this.day()) {\n case 0:\n return '[u] [nedelju] [u] LT';\n case 3:\n return '[u] [sredu] [u] LT';\n case 6:\n return '[u] [subotu] [u] LT';\n case 1:\n case 2:\n case 4:\n case 5:\n return '[u] dddd [u] LT';\n }\n },\n lastDay: '[juče u] LT',\n lastWeek: function () {\n var lastWeekDays = [\n '[prošle] [nedelje] [u] LT',\n '[prošlog] [ponedeljka] [u] LT',\n '[prošlog] [utorka] [u] LT',\n '[prošle] [srede] [u] LT',\n '[prošlog] [četvrtka] [u] LT',\n '[prošlog] [petka] [u] LT',\n '[prošle] [subote] [u] LT',\n ];\n return lastWeekDays[this.day()];\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'za %s',\n past: 'pre %s',\n s: 'nekoliko sekundi',\n ss: translator.translate,\n m: translator.translate,\n mm: translator.translate,\n h: translator.translate,\n hh: translator.translate,\n d: 'dan',\n dd: translator.translate,\n M: 'mesec',\n MM: translator.translate,\n y: 'godinu',\n yy: translator.translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sr;\n\n})));\n","//! moment.js locale configuration\n//! locale : siSwati [ss]\n//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var ss = moment.defineLocale('ss', {\n months: \"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni\".split(\n '_'\n ),\n monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),\n weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(\n '_'\n ),\n weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),\n weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Namuhla nga] LT',\n nextDay: '[Kusasa nga] LT',\n nextWeek: 'dddd [nga] LT',\n lastDay: '[Itolo nga] LT',\n lastWeek: 'dddd [leliphelile] [nga] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'nga %s',\n past: 'wenteka nga %s',\n s: 'emizuzwana lomcane',\n ss: '%d mzuzwana',\n m: 'umzuzu',\n mm: '%d emizuzu',\n h: 'lihora',\n hh: '%d emahora',\n d: 'lilanga',\n dd: '%d emalanga',\n M: 'inyanga',\n MM: '%d tinyanga',\n y: 'umnyaka',\n yy: '%d iminyaka',\n },\n meridiemParse: /ekuseni|emini|entsambama|ebusuku/,\n meridiem: function (hours, minutes, isLower) {\n if (hours < 11) {\n return 'ekuseni';\n } else if (hours < 15) {\n return 'emini';\n } else if (hours < 19) {\n return 'entsambama';\n } else {\n return 'ebusuku';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'ekuseni') {\n return hour;\n } else if (meridiem === 'emini') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {\n if (hour === 0) {\n return 0;\n }\n return hour + 12;\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: '%d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ss;\n\n})));\n","//! moment.js locale configuration\n//! locale : Swedish [sv]\n//! author : Jens Alm : https://github.com/ulmus\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sv = moment.defineLocale('sv', {\n months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(\n '_'\n ),\n monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),\n weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),\n weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),\n weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY [kl.] HH:mm',\n LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Idag] LT',\n nextDay: '[Imorgon] LT',\n lastDay: '[Igår] LT',\n nextWeek: '[På] dddd LT',\n lastWeek: '[I] dddd[s] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'om %s',\n past: 'för %s sedan',\n s: 'några sekunder',\n ss: '%d sekunder',\n m: 'en minut',\n mm: '%d minuter',\n h: 'en timme',\n hh: '%d timmar',\n d: 'en dag',\n dd: '%d dagar',\n M: 'en månad',\n MM: '%d månader',\n y: 'ett år',\n yy: '%d år',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(\\:e|\\:a)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? ':e'\n : b === 1\n ? ':a'\n : b === 2\n ? ':a'\n : b === 3\n ? ':e'\n : ':e';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return sv;\n\n})));\n","//! moment.js locale configuration\n//! locale : Swahili [sw]\n//! author : Fahad Kassim : https://github.com/fadsel\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var sw = moment.defineLocale('sw', {\n months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(\n '_'\n ),\n monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),\n weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(\n '_'\n ),\n weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),\n weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'hh:mm A',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[leo saa] LT',\n nextDay: '[kesho saa] LT',\n nextWeek: '[wiki ijayo] dddd [saat] LT',\n lastDay: '[jana] LT',\n lastWeek: '[wiki iliyopita] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s baadaye',\n past: 'tokea %s',\n s: 'hivi punde',\n ss: 'sekunde %d',\n m: 'dakika moja',\n mm: 'dakika %d',\n h: 'saa limoja',\n hh: 'masaa %d',\n d: 'siku moja',\n dd: 'siku %d',\n M: 'mwezi mmoja',\n MM: 'miezi %d',\n y: 'mwaka mmoja',\n yy: 'miaka %d',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return sw;\n\n})));\n","//! moment.js locale configuration\n//! locale : Tamil [ta]\n//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var symbolMap = {\n '1': '௧',\n '2': '௨',\n '3': '௩',\n '4': '௪',\n '5': '௫',\n '6': '௬',\n '7': '௭',\n '8': '௮',\n '9': '௯',\n '0': '௦',\n },\n numberMap = {\n '௧': '1',\n '௨': '2',\n '௩': '3',\n '௪': '4',\n '௫': '5',\n '௬': '6',\n '௭': '7',\n '௮': '8',\n '௯': '9',\n '௦': '0',\n };\n\n var ta = moment.defineLocale('ta', {\n months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(\n '_'\n ),\n weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(\n '_'\n ),\n weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(\n '_'\n ),\n weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, HH:mm',\n LLLL: 'dddd, D MMMM YYYY, HH:mm',\n },\n calendar: {\n sameDay: '[இன்று] LT',\n nextDay: '[நாளை] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[நேற்று] LT',\n lastWeek: '[கடந்த வாரம்] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s இல்',\n past: '%s முன்',\n s: 'ஒரு சில விநாடிகள்',\n ss: '%d விநாடிகள்',\n m: 'ஒரு நிமிடம்',\n mm: '%d நிமிடங்கள்',\n h: 'ஒரு மணி நேரம்',\n hh: '%d மணி நேரம்',\n d: 'ஒரு நாள்',\n dd: '%d நாட்கள்',\n M: 'ஒரு மாதம்',\n MM: '%d மாதங்கள்',\n y: 'ஒரு வருடம்',\n yy: '%d ஆண்டுகள்',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}வது/,\n ordinal: function (number) {\n return number + 'வது';\n },\n preparse: function (string) {\n return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {\n return numberMap[match];\n });\n },\n postformat: function (string) {\n return string.replace(/\\d/g, function (match) {\n return symbolMap[match];\n });\n },\n // refer http://ta.wikipedia.org/s/1er1\n meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,\n meridiem: function (hour, minute, isLower) {\n if (hour < 2) {\n return ' யாமம்';\n } else if (hour < 6) {\n return ' வைகறை'; // வைகறை\n } else if (hour < 10) {\n return ' காலை'; // காலை\n } else if (hour < 14) {\n return ' நண்பகல்'; // நண்பகல்\n } else if (hour < 18) {\n return ' எற்பாடு'; // எற்பாடு\n } else if (hour < 22) {\n return ' மாலை'; // மாலை\n } else {\n return ' யாமம்';\n }\n },\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'யாமம்') {\n return hour < 2 ? hour : hour + 12;\n } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {\n return hour;\n } else if (meridiem === 'நண்பகல்') {\n return hour >= 10 ? hour : hour + 12;\n } else {\n return hour + 12;\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return ta;\n\n})));\n","//! moment.js locale configuration\n//! locale : Telugu [te]\n//! author : Krishna Chaitanya Thota : https://github.com/kcthota\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var te = moment.defineLocale('te', {\n months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(\n '_'\n ),\n monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(\n '_'\n ),\n weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),\n weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),\n longDateFormat: {\n LT: 'A h:mm',\n LTS: 'A h:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY, A h:mm',\n LLLL: 'dddd, D MMMM YYYY, A h:mm',\n },\n calendar: {\n sameDay: '[నేడు] LT',\n nextDay: '[రేపు] LT',\n nextWeek: 'dddd, LT',\n lastDay: '[నిన్న] LT',\n lastWeek: '[గత] dddd, LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s లో',\n past: '%s క్రితం',\n s: 'కొన్ని క్షణాలు',\n ss: '%d సెకన్లు',\n m: 'ఒక నిమిషం',\n mm: '%d నిమిషాలు',\n h: 'ఒక గంట',\n hh: '%d గంటలు',\n d: 'ఒక రోజు',\n dd: '%d రోజులు',\n M: 'ఒక నెల',\n MM: '%d నెలలు',\n y: 'ఒక సంవత్సరం',\n yy: '%d సంవత్సరాలు',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}వ/,\n ordinal: '%dవ',\n meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'రాత్రి') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'ఉదయం') {\n return hour;\n } else if (meridiem === 'మధ్యాహ్నం') {\n return hour >= 10 ? hour : hour + 12;\n } else if (meridiem === 'సాయంత్రం') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'రాత్రి';\n } else if (hour < 10) {\n return 'ఉదయం';\n } else if (hour < 17) {\n return 'మధ్యాహ్నం';\n } else if (hour < 20) {\n return 'సాయంత్రం';\n } else {\n return 'రాత్రి';\n }\n },\n week: {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n },\n });\n\n return te;\n\n})));\n","//! moment.js locale configuration\n//! locale : Tetun Dili (East Timor) [tet]\n//! author : Joshua Brooks : https://github.com/joshbrooks\n//! author : Onorio De J. Afonso : https://github.com/marobo\n//! author : Sonia Simoes : https://github.com/soniasimoes\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tet = moment.defineLocale('tet', {\n months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),\n weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),\n weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),\n weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Ohin iha] LT',\n nextDay: '[Aban iha] LT',\n nextWeek: 'dddd [iha] LT',\n lastDay: '[Horiseik iha] LT',\n lastWeek: 'dddd [semana kotuk] [iha] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'iha %s',\n past: '%s liuba',\n s: 'segundu balun',\n ss: 'segundu %d',\n m: 'minutu ida',\n mm: 'minutu %d',\n h: 'oras ida',\n hh: 'oras %d',\n d: 'loron ida',\n dd: 'loron %d',\n M: 'fulan ida',\n MM: 'fulan %d',\n y: 'tinan ida',\n yy: 'tinan %d',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(st|nd|rd|th)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tet;\n\n})));\n","//! moment.js locale configuration\n//! locale : Tajik [tg]\n//! author : Orif N. Jr. : https://github.com/orif-jr\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 0: '-ум',\n 1: '-ум',\n 2: '-юм',\n 3: '-юм',\n 4: '-ум',\n 5: '-ум',\n 6: '-ум',\n 7: '-ум',\n 8: '-ум',\n 9: '-ум',\n 10: '-ум',\n 12: '-ум',\n 13: '-ум',\n 20: '-ум',\n 30: '-юм',\n 40: '-ум',\n 50: '-ум',\n 60: '-ум',\n 70: '-ум',\n 80: '-ум',\n 90: '-ум',\n 100: '-ум',\n };\n\n var tg = moment.defineLocale('tg', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(\n '_'\n ),\n weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),\n weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Имрӯз соати] LT',\n nextDay: '[Пагоҳ соати] LT',\n lastDay: '[Дирӯз соати] LT',\n nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',\n lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'баъди %s',\n past: '%s пеш',\n s: 'якчанд сония',\n m: 'як дақиқа',\n mm: '%d дақиқа',\n h: 'як соат',\n hh: '%d соат',\n d: 'як рӯз',\n dd: '%d рӯз',\n M: 'як моҳ',\n MM: '%d моҳ',\n y: 'як сол',\n yy: '%d сол',\n },\n meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === 'шаб') {\n return hour < 4 ? hour : hour + 12;\n } else if (meridiem === 'субҳ') {\n return hour;\n } else if (meridiem === 'рӯз') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === 'бегоҳ') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'шаб';\n } else if (hour < 11) {\n return 'субҳ';\n } else if (hour < 16) {\n return 'рӯз';\n } else if (hour < 19) {\n return 'бегоҳ';\n } else {\n return 'шаб';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(ум|юм)/,\n ordinal: function (number) {\n var a = number % 10,\n b = number >= 100 ? 100 : null;\n return number + (suffixes[number] || suffixes[a] || suffixes[b]);\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1th is the first week of the year.\n },\n });\n\n return tg;\n\n})));\n","//! moment.js locale configuration\n//! locale : Thai [th]\n//! author : Kridsada Thanabulpong : https://github.com/sirn\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var th = moment.defineLocale('th', {\n months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(\n '_'\n ),\n monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),\n weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference\n weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'H:mm',\n LTS: 'H:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY เวลา H:mm',\n LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',\n },\n meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,\n isPM: function (input) {\n return input === 'หลังเที่ยง';\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'ก่อนเที่ยง';\n } else {\n return 'หลังเที่ยง';\n }\n },\n calendar: {\n sameDay: '[วันนี้ เวลา] LT',\n nextDay: '[พรุ่งนี้ เวลา] LT',\n nextWeek: 'dddd[หน้า เวลา] LT',\n lastDay: '[เมื่อวานนี้ เวลา] LT',\n lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'อีก %s',\n past: '%sที่แล้ว',\n s: 'ไม่กี่วินาที',\n ss: '%d วินาที',\n m: '1 นาที',\n mm: '%d นาที',\n h: '1 ชั่วโมง',\n hh: '%d ชั่วโมง',\n d: '1 วัน',\n dd: '%d วัน',\n M: '1 เดือน',\n MM: '%d เดือน',\n y: '1 ปี',\n yy: '%d ปี',\n },\n });\n\n return th;\n\n})));\n","//! moment.js locale configuration\n//! locale : Turkmen [trk]\n//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inji\",\n 5: \"'inji\",\n 8: \"'inji\",\n 70: \"'inji\",\n 80: \"'inji\",\n 2: \"'nji\",\n 7: \"'nji\",\n 20: \"'nji\",\n 50: \"'nji\",\n 3: \"'ünji\",\n 4: \"'ünji\",\n 100: \"'ünji\",\n 6: \"'njy\",\n 9: \"'unjy\",\n 10: \"'unjy\",\n 30: \"'unjy\",\n 60: \"'ynjy\",\n 90: \"'ynjy\",\n };\n\n var tk = moment.defineLocale('tk', {\n months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(\n '_'\n ),\n monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),\n weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(\n '_'\n ),\n weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),\n weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün sagat] LT',\n nextDay: '[ertir sagat] LT',\n nextWeek: '[indiki] dddd [sagat] LT',\n lastDay: '[düýn] LT',\n lastWeek: '[geçen] dddd [sagat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s soň',\n past: '%s öň',\n s: 'birnäçe sekunt',\n m: 'bir minut',\n mm: '%d minut',\n h: 'bir sagat',\n hh: '%d sagat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir aý',\n MM: '%d aý',\n y: 'bir ýyl',\n yy: '%d ýyl',\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'unjy\";\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return tk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Tagalog (Philippines) [tl-ph]\n//! author : Dan Hagman : https://github.com/hagmandan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tlPh = moment.defineLocale('tl-ph', {\n months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(\n '_'\n ),\n monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),\n weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(\n '_'\n ),\n weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),\n weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'MM/D/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY HH:mm',\n LLLL: 'dddd, MMMM DD, YYYY HH:mm',\n },\n calendar: {\n sameDay: 'LT [ngayong araw]',\n nextDay: '[Bukas ng] LT',\n nextWeek: 'LT [sa susunod na] dddd',\n lastDay: 'LT [kahapon]',\n lastWeek: 'LT [noong nakaraang] dddd',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'sa loob ng %s',\n past: '%s ang nakalipas',\n s: 'ilang segundo',\n ss: '%d segundo',\n m: 'isang minuto',\n mm: '%d minuto',\n h: 'isang oras',\n hh: '%d oras',\n d: 'isang araw',\n dd: '%d araw',\n M: 'isang buwan',\n MM: '%d buwan',\n y: 'isang taon',\n yy: '%d taon',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlPh;\n\n})));\n","//! moment.js locale configuration\n//! locale : Klingon [tlh]\n//! author : Dominika Kruk : https://github.com/amaranthrose\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');\n\n function translateFuture(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'leS'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'waQ'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'nem'\n : time + ' pIq';\n return time;\n }\n\n function translatePast(output) {\n var time = output;\n time =\n output.indexOf('jaj') !== -1\n ? time.slice(0, -3) + 'Hu’'\n : output.indexOf('jar') !== -1\n ? time.slice(0, -3) + 'wen'\n : output.indexOf('DIS') !== -1\n ? time.slice(0, -3) + 'ben'\n : time + ' ret';\n return time;\n }\n\n function translate(number, withoutSuffix, string, isFuture) {\n var numberNoun = numberAsNoun(number);\n switch (string) {\n case 'ss':\n return numberNoun + ' lup';\n case 'mm':\n return numberNoun + ' tup';\n case 'hh':\n return numberNoun + ' rep';\n case 'dd':\n return numberNoun + ' jaj';\n case 'MM':\n return numberNoun + ' jar';\n case 'yy':\n return numberNoun + ' DIS';\n }\n }\n\n function numberAsNoun(number) {\n var hundred = Math.floor((number % 1000) / 100),\n ten = Math.floor((number % 100) / 10),\n one = number % 10,\n word = '';\n if (hundred > 0) {\n word += numbersNouns[hundred] + 'vatlh';\n }\n if (ten > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';\n }\n if (one > 0) {\n word += (word !== '' ? ' ' : '') + numbersNouns[one];\n }\n return word === '' ? 'pagh' : word;\n }\n\n var tlh = moment.defineLocale('tlh', {\n months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(\n '_'\n ),\n monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(\n '_'\n ),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[DaHjaj] LT',\n nextDay: '[wa’leS] LT',\n nextWeek: 'LLL',\n lastDay: '[wa’Hu’] LT',\n lastWeek: 'LLL',\n sameElse: 'L',\n },\n relativeTime: {\n future: translateFuture,\n past: translatePast,\n s: 'puS lup',\n ss: translate,\n m: 'wa’ tup',\n mm: translate,\n h: 'wa’ rep',\n hh: translate,\n d: 'wa’ jaj',\n dd: translate,\n M: 'wa’ jar',\n MM: translate,\n y: 'wa’ DIS',\n yy: translate,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return tlh;\n\n})));\n","//! moment.js locale configuration\n//! locale : Turkish [tr]\n//! authors : Erhan Gundogan : https://github.com/erhangundogan,\n//! Burak Yiğit Kaya: https://github.com/BYK\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var suffixes = {\n 1: \"'inci\",\n 5: \"'inci\",\n 8: \"'inci\",\n 70: \"'inci\",\n 80: \"'inci\",\n 2: \"'nci\",\n 7: \"'nci\",\n 20: \"'nci\",\n 50: \"'nci\",\n 3: \"'üncü\",\n 4: \"'üncü\",\n 100: \"'üncü\",\n 6: \"'ncı\",\n 9: \"'uncu\",\n 10: \"'uncu\",\n 30: \"'uncu\",\n 60: \"'ıncı\",\n 90: \"'ıncı\",\n };\n\n var tr = moment.defineLocale('tr', {\n months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(\n '_'\n ),\n monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),\n weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(\n '_'\n ),\n weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),\n weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'öö' : 'ÖÖ';\n } else {\n return isLower ? 'ös' : 'ÖS';\n }\n },\n meridiemParse: /öö|ÖÖ|ös|ÖS/,\n isPM: function (input) {\n return input === 'ös' || input === 'ÖS';\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[bugün saat] LT',\n nextDay: '[yarın saat] LT',\n nextWeek: '[gelecek] dddd [saat] LT',\n lastDay: '[dün] LT',\n lastWeek: '[geçen] dddd [saat] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s sonra',\n past: '%s önce',\n s: 'birkaç saniye',\n ss: '%d saniye',\n m: 'bir dakika',\n mm: '%d dakika',\n h: 'bir saat',\n hh: '%d saat',\n d: 'bir gün',\n dd: '%d gün',\n M: 'bir ay',\n MM: '%d ay',\n y: 'bir yıl',\n yy: '%d yıl',\n },\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'Do':\n case 'DD':\n return number;\n default:\n if (number === 0) {\n // special case for zero\n return number + \"'ıncı\";\n }\n var a = number % 10,\n b = (number % 100) - a,\n c = number >= 100 ? 100 : null;\n return number + (suffixes[a] || suffixes[b] || suffixes[c]);\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return tr;\n\n})));\n","//! moment.js locale configuration\n//! locale : Talossan [tzl]\n//! author : Robin van der Vliet : https://github.com/robin0van0der0v\n//! author : Iustì Canun\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.\n // This is currently too difficult (maybe even impossible) to add.\n var tzl = moment.defineLocale('tzl', {\n months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(\n '_'\n ),\n monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),\n weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),\n weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),\n weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),\n longDateFormat: {\n LT: 'HH.mm',\n LTS: 'HH.mm.ss',\n L: 'DD.MM.YYYY',\n LL: 'D. MMMM [dallas] YYYY',\n LLL: 'D. MMMM [dallas] YYYY HH.mm',\n LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',\n },\n meridiemParse: /d\\'o|d\\'a/i,\n isPM: function (input) {\n return \"d'o\" === input.toLowerCase();\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? \"d'o\" : \"D'O\";\n } else {\n return isLower ? \"d'a\" : \"D'A\";\n }\n },\n calendar: {\n sameDay: '[oxhi à] LT',\n nextDay: '[demà à] LT',\n nextWeek: 'dddd [à] LT',\n lastDay: '[ieiri à] LT',\n lastWeek: '[sür el] dddd [lasteu à] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'osprei %s',\n past: 'ja%s',\n s: processRelativeTime,\n ss: processRelativeTime,\n m: processRelativeTime,\n mm: processRelativeTime,\n h: processRelativeTime,\n hh: processRelativeTime,\n d: processRelativeTime,\n dd: processRelativeTime,\n M: processRelativeTime,\n MM: processRelativeTime,\n y: processRelativeTime,\n yy: processRelativeTime,\n },\n dayOfMonthOrdinalParse: /\\d{1,2}\\./,\n ordinal: '%d.',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n function processRelativeTime(number, withoutSuffix, key, isFuture) {\n var format = {\n s: ['viensas secunds', \"'iensas secunds\"],\n ss: [number + ' secunds', '' + number + ' secunds'],\n m: [\"'n míut\", \"'iens míut\"],\n mm: [number + ' míuts', '' + number + ' míuts'],\n h: [\"'n þora\", \"'iensa þora\"],\n hh: [number + ' þoras', '' + number + ' þoras'],\n d: [\"'n ziua\", \"'iensa ziua\"],\n dd: [number + ' ziuas', '' + number + ' ziuas'],\n M: [\"'n mes\", \"'iens mes\"],\n MM: [number + ' mesen', '' + number + ' mesen'],\n y: [\"'n ar\", \"'iens ar\"],\n yy: [number + ' ars', '' + number + ' ars'],\n };\n return isFuture\n ? format[key][0]\n : withoutSuffix\n ? format[key][0]\n : format[key][1];\n }\n\n return tzl;\n\n})));\n","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight Latin [tzm-latn]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzmLatn = moment.defineLocale('tzm-latn', {\n months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(\n '_'\n ),\n weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[asdkh g] LT',\n nextDay: '[aska g] LT',\n nextWeek: 'dddd [g] LT',\n lastDay: '[assant g] LT',\n lastWeek: 'dddd [g] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'dadkh s yan %s',\n past: 'yan %s',\n s: 'imik',\n ss: '%d imik',\n m: 'minuḍ',\n mm: '%d minuḍ',\n h: 'saɛa',\n hh: '%d tassaɛin',\n d: 'ass',\n dd: '%d ossan',\n M: 'ayowr',\n MM: '%d iyyirn',\n y: 'asgas',\n yy: '%d isgasn',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzmLatn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Central Atlas Tamazight [tzm]\n//! author : Abdel Said : https://github.com/abdelsaid\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var tzm = moment.defineLocale('tzm', {\n months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(\n '_'\n ),\n weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',\n nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',\n nextWeek: 'dddd [ⴴ] LT',\n lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',\n lastWeek: 'dddd [ⴴ] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',\n past: 'ⵢⴰⵏ %s',\n s: 'ⵉⵎⵉⴽ',\n ss: '%d ⵉⵎⵉⴽ',\n m: 'ⵎⵉⵏⵓⴺ',\n mm: '%d ⵎⵉⵏⵓⴺ',\n h: 'ⵙⴰⵄⴰ',\n hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',\n d: 'ⴰⵙⵙ',\n dd: '%d oⵙⵙⴰⵏ',\n M: 'ⴰⵢoⵓⵔ',\n MM: '%d ⵉⵢⵢⵉⵔⵏ',\n y: 'ⴰⵙⴳⴰⵙ',\n yy: '%d ⵉⵙⴳⴰⵙⵏ',\n },\n week: {\n dow: 6, // Saturday is the first day of the week.\n doy: 12, // The week that contains Jan 12th is the first week of the year.\n },\n });\n\n return tzm;\n\n})));\n","//! moment.js language configuration\n//! locale : Uyghur (China) [ug-cn]\n//! author: boyaq : https://github.com/boyaq\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js language configuration\n\n var ugCn = moment.defineLocale('ug-cn', {\n months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(\n '_'\n ),\n weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(\n '_'\n ),\n weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY-MM-DD',\n LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',\n LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',\n },\n meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (\n meridiem === 'يېرىم كېچە' ||\n meridiem === 'سەھەر' ||\n meridiem === 'چۈشتىن بۇرۇن'\n ) {\n return hour;\n } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {\n return hour + 12;\n } else {\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return 'يېرىم كېچە';\n } else if (hm < 900) {\n return 'سەھەر';\n } else if (hm < 1130) {\n return 'چۈشتىن بۇرۇن';\n } else if (hm < 1230) {\n return 'چۈش';\n } else if (hm < 1800) {\n return 'چۈشتىن كېيىن';\n } else {\n return 'كەچ';\n }\n },\n calendar: {\n sameDay: '[بۈگۈن سائەت] LT',\n nextDay: '[ئەتە سائەت] LT',\n nextWeek: '[كېلەركى] dddd [سائەت] LT',\n lastDay: '[تۆنۈگۈن] LT',\n lastWeek: '[ئالدىنقى] dddd [سائەت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s كېيىن',\n past: '%s بۇرۇن',\n s: 'نەچچە سېكونت',\n ss: '%d سېكونت',\n m: 'بىر مىنۇت',\n mm: '%d مىنۇت',\n h: 'بىر سائەت',\n hh: '%d سائەت',\n d: 'بىر كۈن',\n dd: '%d كۈن',\n M: 'بىر ئاي',\n MM: '%d ئاي',\n y: 'بىر يىل',\n yy: '%d يىل',\n },\n\n dayOfMonthOrdinalParse: /\\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '-كۈنى';\n case 'w':\n case 'W':\n return number + '-ھەپتە';\n default:\n return number;\n }\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 1st is the first week of the year.\n },\n });\n\n return ugCn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Ukrainian [uk]\n//! author : zemlanin : https://github.com/zemlanin\n//! Author : Menelion Elensúle : https://github.com/Oire\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n function plural(word, num) {\n var forms = word.split('_');\n return num % 10 === 1 && num % 100 !== 11\n ? forms[0]\n : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)\n ? forms[1]\n : forms[2];\n }\n function relativeTimeWithPlural(number, withoutSuffix, key) {\n var format = {\n ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',\n mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',\n hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',\n dd: 'день_дні_днів',\n MM: 'місяць_місяці_місяців',\n yy: 'рік_роки_років',\n };\n if (key === 'm') {\n return withoutSuffix ? 'хвилина' : 'хвилину';\n } else if (key === 'h') {\n return withoutSuffix ? 'година' : 'годину';\n } else {\n return number + ' ' + plural(format[key], +number);\n }\n }\n function weekdaysCaseReplace(m, format) {\n var weekdays = {\n nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(\n '_'\n ),\n accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(\n '_'\n ),\n genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(\n '_'\n ),\n },\n nounCase;\n\n if (m === true) {\n return weekdays['nominative']\n .slice(1, 7)\n .concat(weekdays['nominative'].slice(0, 1));\n }\n if (!m) {\n return weekdays['nominative'];\n }\n\n nounCase = /(\\[[ВвУу]\\]) ?dddd/.test(format)\n ? 'accusative'\n : /\\[?(?:минулої|наступної)? ?\\] ?dddd/.test(format)\n ? 'genitive'\n : 'nominative';\n return weekdays[nounCase][m.day()];\n }\n function processHoursFunction(str) {\n return function () {\n return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';\n };\n }\n\n var uk = moment.defineLocale('uk', {\n months: {\n format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(\n '_'\n ),\n standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(\n '_'\n ),\n },\n monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(\n '_'\n ),\n weekdays: weekdaysCaseReplace,\n weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD.MM.YYYY',\n LL: 'D MMMM YYYY р.',\n LLL: 'D MMMM YYYY р., HH:mm',\n LLLL: 'dddd, D MMMM YYYY р., HH:mm',\n },\n calendar: {\n sameDay: processHoursFunction('[Сьогодні '),\n nextDay: processHoursFunction('[Завтра '),\n lastDay: processHoursFunction('[Вчора '),\n nextWeek: processHoursFunction('[У] dddd ['),\n lastWeek: function () {\n switch (this.day()) {\n case 0:\n case 3:\n case 5:\n case 6:\n return processHoursFunction('[Минулої] dddd [').call(this);\n case 1:\n case 2:\n case 4:\n return processHoursFunction('[Минулого] dddd [').call(this);\n }\n },\n sameElse: 'L',\n },\n relativeTime: {\n future: 'за %s',\n past: '%s тому',\n s: 'декілька секунд',\n ss: relativeTimeWithPlural,\n m: relativeTimeWithPlural,\n mm: relativeTimeWithPlural,\n h: 'годину',\n hh: relativeTimeWithPlural,\n d: 'день',\n dd: relativeTimeWithPlural,\n M: 'місяць',\n MM: relativeTimeWithPlural,\n y: 'рік',\n yy: relativeTimeWithPlural,\n },\n // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason\n meridiemParse: /ночі|ранку|дня|вечора/,\n isPM: function (input) {\n return /^(дня|вечора)$/.test(input);\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 4) {\n return 'ночі';\n } else if (hour < 12) {\n return 'ранку';\n } else if (hour < 17) {\n return 'дня';\n } else {\n return 'вечора';\n }\n },\n dayOfMonthOrdinalParse: /\\d{1,2}-(й|го)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'M':\n case 'd':\n case 'DDD':\n case 'w':\n case 'W':\n return number + '-й';\n case 'D':\n return number + '-го';\n default:\n return number;\n }\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Urdu [ur]\n//! author : Sawood Alam : https://github.com/ibnesayeed\n//! author : Zack : https://github.com/ZackVision\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var months = [\n 'جنوری',\n 'فروری',\n 'مارچ',\n 'اپریل',\n 'مئی',\n 'جون',\n 'جولائی',\n 'اگست',\n 'ستمبر',\n 'اکتوبر',\n 'نومبر',\n 'دسمبر',\n ],\n days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];\n\n var ur = moment.defineLocale('ur', {\n months: months,\n monthsShort: months,\n weekdays: days,\n weekdaysShort: days,\n weekdaysMin: days,\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd، D MMMM YYYY HH:mm',\n },\n meridiemParse: /صبح|شام/,\n isPM: function (input) {\n return 'شام' === input;\n },\n meridiem: function (hour, minute, isLower) {\n if (hour < 12) {\n return 'صبح';\n }\n return 'شام';\n },\n calendar: {\n sameDay: '[آج بوقت] LT',\n nextDay: '[کل بوقت] LT',\n nextWeek: 'dddd [بوقت] LT',\n lastDay: '[گذشتہ روز بوقت] LT',\n lastWeek: '[گذشتہ] dddd [بوقت] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s بعد',\n past: '%s قبل',\n s: 'چند سیکنڈ',\n ss: '%d سیکنڈ',\n m: 'ایک منٹ',\n mm: '%d منٹ',\n h: 'ایک گھنٹہ',\n hh: '%d گھنٹے',\n d: 'ایک دن',\n dd: '%d دن',\n M: 'ایک ماہ',\n MM: '%d ماہ',\n y: 'ایک سال',\n yy: '%d سال',\n },\n preparse: function (string) {\n return string.replace(/،/g, ',');\n },\n postformat: function (string) {\n return string.replace(/,/g, '،');\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return ur;\n\n})));\n","//! moment.js locale configuration\n//! locale : Uzbek Latin [uz-latn]\n//! author : Rasulbek Mirzayev : github.com/Rasulbeeek\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uzLatn = moment.defineLocale('uz-latn', {\n months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(\n '_'\n ),\n monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),\n weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(\n '_'\n ),\n weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),\n weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Bugun soat] LT [da]',\n nextDay: '[Ertaga] LT [da]',\n nextWeek: 'dddd [kuni soat] LT [da]',\n lastDay: '[Kecha soat] LT [da]',\n lastWeek: \"[O'tgan] dddd [kuni soat] LT [da]\",\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Yaqin %s ichida',\n past: 'Bir necha %s oldin',\n s: 'soniya',\n ss: '%d soniya',\n m: 'bir daqiqa',\n mm: '%d daqiqa',\n h: 'bir soat',\n hh: '%d soat',\n d: 'bir kun',\n dd: '%d kun',\n M: 'bir oy',\n MM: '%d oy',\n y: 'bir yil',\n yy: '%d yil',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 7th is the first week of the year.\n },\n });\n\n return uzLatn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Uzbek [uz]\n//! author : Sardor Muminov : https://github.com/muminoff\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var uz = moment.defineLocale('uz', {\n months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(\n '_'\n ),\n monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),\n weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),\n weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),\n weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'D MMMM YYYY, dddd HH:mm',\n },\n calendar: {\n sameDay: '[Бугун соат] LT [да]',\n nextDay: '[Эртага] LT [да]',\n nextWeek: 'dddd [куни соат] LT [да]',\n lastDay: '[Кеча соат] LT [да]',\n lastWeek: '[Утган] dddd [куни соат] LT [да]',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'Якин %s ичида',\n past: 'Бир неча %s олдин',\n s: 'фурсат',\n ss: '%d фурсат',\n m: 'бир дакика',\n mm: '%d дакика',\n h: 'бир соат',\n hh: '%d соат',\n d: 'бир кун',\n dd: '%d кун',\n M: 'бир ой',\n MM: '%d ой',\n y: 'бир йил',\n yy: '%d йил',\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 7, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return uz;\n\n})));\n","//! moment.js locale configuration\n//! locale : Vietnamese [vi]\n//! author : Bang Nguyen : https://github.com/bangnk\n//! author : Chien Kira : https://github.com/chienkira\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var vi = moment.defineLocale('vi', {\n months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(\n '_'\n ),\n monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(\n '_'\n ),\n weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),\n weekdaysParseExact: true,\n meridiemParse: /sa|ch/i,\n isPM: function (input) {\n return /^ch$/i.test(input);\n },\n meridiem: function (hours, minutes, isLower) {\n if (hours < 12) {\n return isLower ? 'sa' : 'SA';\n } else {\n return isLower ? 'ch' : 'CH';\n }\n },\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM [năm] YYYY',\n LLL: 'D MMMM [năm] YYYY HH:mm',\n LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',\n l: 'DD/M/YYYY',\n ll: 'D MMM YYYY',\n lll: 'D MMM YYYY HH:mm',\n llll: 'ddd, D MMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[Hôm nay lúc] LT',\n nextDay: '[Ngày mai lúc] LT',\n nextWeek: 'dddd [tuần tới lúc] LT',\n lastDay: '[Hôm qua lúc] LT',\n lastWeek: 'dddd [tuần trước lúc] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: '%s tới',\n past: '%s trước',\n s: 'vài giây',\n ss: '%d giây',\n m: 'một phút',\n mm: '%d phút',\n h: 'một giờ',\n hh: '%d giờ',\n d: 'một ngày',\n dd: '%d ngày',\n M: 'một tháng',\n MM: '%d tháng',\n y: 'một năm',\n yy: '%d năm',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}/,\n ordinal: function (number) {\n return number;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return vi;\n\n})));\n","//! moment.js locale configuration\n//! locale : Pseudo [x-pseudo]\n//! author : Andrew Hood : https://github.com/andrewhood125\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var xPseudo = moment.defineLocale('x-pseudo', {\n months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(\n '_'\n ),\n monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(\n '_'\n ),\n monthsParseExact: true,\n weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(\n '_'\n ),\n weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),\n weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),\n weekdaysParseExact: true,\n longDateFormat: {\n LT: 'HH:mm',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY HH:mm',\n LLLL: 'dddd, D MMMM YYYY HH:mm',\n },\n calendar: {\n sameDay: '[T~ódá~ý át] LT',\n nextDay: '[T~ómó~rró~w át] LT',\n nextWeek: 'dddd [át] LT',\n lastDay: '[Ý~ést~érdá~ý át] LT',\n lastWeek: '[L~ást] dddd [át] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'í~ñ %s',\n past: '%s á~gó',\n s: 'á ~féw ~sécó~ñds',\n ss: '%d s~écóñ~ds',\n m: 'á ~míñ~úté',\n mm: '%d m~íñú~tés',\n h: 'á~ñ hó~úr',\n hh: '%d h~óúrs',\n d: 'á ~dáý',\n dd: '%d d~áýs',\n M: 'á ~móñ~th',\n MM: '%d m~óñt~hs',\n y: 'á ~ýéár',\n yy: '%d ý~éárs',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n ~~((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return xPseudo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Yoruba Nigeria [yo]\n//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var yo = moment.defineLocale('yo', {\n months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(\n '_'\n ),\n monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),\n weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),\n weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),\n weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),\n longDateFormat: {\n LT: 'h:mm A',\n LTS: 'h:mm:ss A',\n L: 'DD/MM/YYYY',\n LL: 'D MMMM YYYY',\n LLL: 'D MMMM YYYY h:mm A',\n LLLL: 'dddd, D MMMM YYYY h:mm A',\n },\n calendar: {\n sameDay: '[Ònì ni] LT',\n nextDay: '[Ọ̀la ni] LT',\n nextWeek: \"dddd [Ọsẹ̀ tón'bọ] [ni] LT\",\n lastDay: '[Àna ni] LT',\n lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',\n sameElse: 'L',\n },\n relativeTime: {\n future: 'ní %s',\n past: '%s kọjá',\n s: 'ìsẹjú aayá die',\n ss: 'aayá %d',\n m: 'ìsẹjú kan',\n mm: 'ìsẹjú %d',\n h: 'wákati kan',\n hh: 'wákati %d',\n d: 'ọjọ́ kan',\n dd: 'ọjọ́ %d',\n M: 'osù kan',\n MM: 'osù %d',\n y: 'ọdún kan',\n yy: 'ọdún %d',\n },\n dayOfMonthOrdinalParse: /ọjọ́\\s\\d{1,2}/,\n ordinal: 'ọjọ́ %d',\n week: {\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return yo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Chinese (China) [zh-cn]\n//! author : suupic : https://github.com/suupic\n//! author : Zeno Zeng : https://github.com/zenozeng\n//! author : uu109 : https://github.com/uu109\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhCn = moment.defineLocale('zh-cn', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日Ah点mm分',\n LLLL: 'YYYY年M月D日ddddAh点mm分',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n } else {\n // '中午'\n return hour >= 11 ? hour : hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: function (now) {\n if (now.week() !== this.week()) {\n return '[下]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n lastDay: '[昨天]LT',\n lastWeek: function (now) {\n if (this.week() !== now.week()) {\n return '[上]dddLT';\n } else {\n return '[本]dddLT';\n }\n },\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|周)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '周';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s后',\n past: '%s前',\n s: '几秒',\n ss: '%d 秒',\n m: '1 分钟',\n mm: '%d 分钟',\n h: '1 小时',\n hh: '%d 小时',\n d: '1 天',\n dd: '%d 天',\n M: '1 个月',\n MM: '%d 个月',\n y: '1 年',\n yy: '%d 年',\n },\n week: {\n // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效\n dow: 1, // Monday is the first day of the week.\n doy: 4, // The week that contains Jan 4th is the first week of the year.\n },\n });\n\n return zhCn;\n\n})));\n","//! moment.js locale configuration\n//! locale : Chinese (Hong Kong) [zh-hk]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Konstantin : https://github.com/skfd\n//! author : Anthony : https://github.com/anthonylau\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhHk = moment.defineLocale('zh-hk', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1200) {\n return '上午';\n } else if (hm === 1200) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天]LT',\n nextDay: '[明天]LT',\n nextWeek: '[下]ddddLT',\n lastDay: '[昨天]LT',\n lastWeek: '[上]ddddLT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhHk;\n\n})));\n","//! moment.js locale configuration\n//! locale : Chinese (Macau) [zh-mo]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n//! author : Tan Yuanhong : https://github.com/le0tan\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhMo = moment.defineLocale('zh-mo', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'DD/MM/YYYY',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'D/M/YYYY',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s內',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhMo;\n\n})));\n","//! moment.js locale configuration\n//! locale : Chinese (Taiwan) [zh-tw]\n//! author : Ben : https://github.com/ben-lin\n//! author : Chris Lam : https://github.com/hehachris\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined'\n && typeof require === 'function' ? factory(require('../moment')) :\n typeof define === 'function' && define.amd ? define(['../moment'], factory) :\n factory(global.moment)\n}(this, (function (moment) { 'use strict';\n\n //! moment.js locale configuration\n\n var zhTw = moment.defineLocale('zh-tw', {\n months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(\n '_'\n ),\n monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(\n '_'\n ),\n weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),\n weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),\n weekdaysMin: '日_一_二_三_四_五_六'.split('_'),\n longDateFormat: {\n LT: 'HH:mm',\n LTS: 'HH:mm:ss',\n L: 'YYYY/MM/DD',\n LL: 'YYYY年M月D日',\n LLL: 'YYYY年M月D日 HH:mm',\n LLLL: 'YYYY年M月D日dddd HH:mm',\n l: 'YYYY/M/D',\n ll: 'YYYY年M月D日',\n lll: 'YYYY年M月D日 HH:mm',\n llll: 'YYYY年M月D日dddd HH:mm',\n },\n meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,\n meridiemHour: function (hour, meridiem) {\n if (hour === 12) {\n hour = 0;\n }\n if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {\n return hour;\n } else if (meridiem === '中午') {\n return hour >= 11 ? hour : hour + 12;\n } else if (meridiem === '下午' || meridiem === '晚上') {\n return hour + 12;\n }\n },\n meridiem: function (hour, minute, isLower) {\n var hm = hour * 100 + minute;\n if (hm < 600) {\n return '凌晨';\n } else if (hm < 900) {\n return '早上';\n } else if (hm < 1130) {\n return '上午';\n } else if (hm < 1230) {\n return '中午';\n } else if (hm < 1800) {\n return '下午';\n } else {\n return '晚上';\n }\n },\n calendar: {\n sameDay: '[今天] LT',\n nextDay: '[明天] LT',\n nextWeek: '[下]dddd LT',\n lastDay: '[昨天] LT',\n lastWeek: '[上]dddd LT',\n sameElse: 'L',\n },\n dayOfMonthOrdinalParse: /\\d{1,2}(日|月|週)/,\n ordinal: function (number, period) {\n switch (period) {\n case 'd':\n case 'D':\n case 'DDD':\n return number + '日';\n case 'M':\n return number + '月';\n case 'w':\n case 'W':\n return number + '週';\n default:\n return number;\n }\n },\n relativeTime: {\n future: '%s後',\n past: '%s前',\n s: '幾秒',\n ss: '%d 秒',\n m: '1 分鐘',\n mm: '%d 分鐘',\n h: '1 小時',\n hh: '%d 小時',\n d: '1 天',\n dd: '%d 天',\n M: '1 個月',\n MM: '%d 個月',\n y: '1 年',\n yy: '%d 年',\n },\n });\n\n return zhTw;\n\n})));\n","//! moment.js\n//! version : 2.27.0\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i;\n for (i = 0; i < arr.length; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m),\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n }),\n isNowValid =\n !isNaN(m._d.getTime()) &&\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n }\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i, prop, val;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentProperties.length > 0) {\n for (i = 0; i < momentProperties.length; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key;\n for (i = 0; i < arguments.length; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n function set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {};\n\n function addUnitAlias(unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n }\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {};\n\n function addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n }\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n return mom.isValid()\n ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n : NaN;\n }\n\n function set$1(mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (\n unit === 'FullYear' &&\n isLeapYear(mom.year()) &&\n mom.month() === 1 &&\n mom.date() === 29\n ) {\n value = toInt(value);\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n value,\n mom.month(),\n daysInMonth(value, mom.month())\n );\n } else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i;\n for (i = 0; i < prioritized.length; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (\n matched,\n p1,\n p2,\n p3,\n p4\n ) {\n return p1 || p2 || p3 || p4;\n })\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n for (i = 0; i < token.length; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n function mod(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // ALIASES\n\n addUnitAlias('month', 'M');\n\n // PRIORITY\n\n addUnitPriority('month', 8);\n\n // PARSING\n\n addRegexToken('M', match1to2);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(\n '_'\n ),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // ALIASES\n\n addUnitAlias('year', 'y');\n\n // PRIORITIES\n\n addUnitPriority('year', 1);\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // ALIASES\n\n addUnitAlias('week', 'w');\n addUnitAlias('isoWeek', 'W');\n\n // PRIORITIES\n\n addUnitPriority('week', 5);\n addUnitPriority('isoWeek', 5);\n\n // PARSING\n\n addRegexToken('w', match1to2);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(['w', 'ww', 'W', 'WW'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 1)] = toInt(input);\n });\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n\n // ALIASES\n\n addUnitAlias('day', 'd');\n addUnitAlias('weekday', 'e');\n addUnitAlias('isoWeekday', 'E');\n\n // PRIORITY\n addUnitPriority('day', 11);\n addUnitPriority('weekday', 11);\n addUnitPriority('isoWeekday', 11);\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(\n '_'\n ),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // ALIASES\n\n addUnitAlias('hour', 'h');\n\n // PRIORITY\n addUnitPriority('hour', 13);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2);\n addRegexToken('h', match1to2);\n addRegexToken('k', match1to2);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat;\n\n if (match) {\n getParsingFlags(config).iso = true;\n\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^)]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged and will be removed in an upcoming major release. Please refer to ' +\n 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false;\n\n if (config._f.length === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < config._f.length; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < ordering.length; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (\n input,\n array,\n config,\n token\n ) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n });\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n namePieces.push(regexEscape(eras[i].name));\n abbrPieces.push(regexEscape(eras[i].abbr));\n narrowPieces.push(regexEscape(eras[i].narrow));\n\n mixedPieces.push(regexEscape(eras[i].name));\n mixedPieces.push(regexEscape(eras[i].abbr));\n mixedPieces.push(regexEscape(eras[i].narrow));\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n addUnitAlias('weekYear', 'gg');\n addUnitAlias('isoWeekYear', 'GG');\n\n // PRIORITY\n\n addUnitPriority('weekYear', 1);\n addUnitPriority('isoWeekYear', 1);\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (\n input,\n week,\n config,\n token\n ) {\n week[token.substr(0, 2)] = toInt(input);\n });\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday(),\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // ALIASES\n\n addUnitAlias('quarter', 'Q');\n\n // PRIORITY\n\n addUnitPriority('quarter', 7);\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // ALIASES\n\n addUnitAlias('date', 'D');\n\n // PRIORITY\n addUnitPriority('date', 9);\n\n // PARSING\n\n addRegexToken('D', match1to2);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // ALIASES\n\n addUnitAlias('dayOfYear', 'DDD');\n\n // PRIORITY\n addUnitPriority('dayOfYear', 4);\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // ALIASES\n\n addUnitAlias('minute', 'm');\n\n // PRIORITY\n\n addUnitPriority('minute', 14);\n\n // PARSING\n\n addRegexToken('m', match1to2);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // ALIASES\n\n addUnitAlias('second', 's');\n\n // PRIORITY\n\n addUnitPriority('second', 15);\n\n // PARSING\n\n addRegexToken('s', match1to2);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // ALIASES\n\n addUnitAlias('millisecond', 'ms');\n\n // PRIORITY\n\n addUnitPriority('millisecond', 16);\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.eraName = getEraName;\n proto.eraNarrow = getEraNarrow;\n proto.eraAbbr = getEraAbbr;\n proto.eraYear = getEraYear;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.weeksInWeekYear = getWeeksInWeekYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n // TODO: Use this.as('ms')?\n function valueOf$1() {\n if (!this.isValid()) {\n return NaN;\n }\n return (\n this._milliseconds +\n this._days * 864e5 +\n (this._months % 12) * 2592e6 +\n toInt(this._months / 12) * 31536e6\n );\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y');\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto$2 = Duration.prototype;\n\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n\n proto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n );\n proto$2.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.27.0';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type=\"datetime-local\" />\n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type=\"datetime-local\" step=\"1\" />\n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type=\"datetime-local\" step=\"0.001\" />\n DATE: 'YYYY-MM-DD', // <input type=\"date\" />\n TIME: 'HH:mm', // <input type=\"time\" />\n TIME_SECONDS: 'HH:mm:ss', // <input type=\"time\" step=\"1\" />\n TIME_MS: 'HH:mm:ss.SSS', // <input type=\"time\" step=\"0.001\" />\n WEEK: 'GGGG-[W]WW', // <input type=\"week\" />\n MONTH: 'YYYY-MM', // <input type=\"month\" />\n };\n\n return hooks;\n\n})));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar rxjs_1 = require(\"rxjs\");\nexports.Subscription = rxjs_1.Subscription;\n","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"rxjs-compat/Subscription\"));\n","import { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nexport function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n return (source) => source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n}\nclass GroupByOperator {\n constructor(keySelector, elementSelector, durationSelector, subjectSelector) {\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n }\n}\nclass GroupBySubscriber extends Subscriber {\n constructor(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n super(destination);\n this.keySelector = keySelector;\n this.elementSelector = elementSelector;\n this.durationSelector = durationSelector;\n this.subjectSelector = subjectSelector;\n this.groups = null;\n this.attemptedToUnsubscribe = false;\n this.count = 0;\n }\n _next(value) {\n let key;\n try {\n key = this.keySelector(value);\n }\n catch (err) {\n this.error(err);\n return;\n }\n this._group(value, key);\n }\n _group(value, key) {\n let groups = this.groups;\n if (!groups) {\n groups = this.groups = new Map();\n }\n let group = groups.get(key);\n let element;\n if (this.elementSelector) {\n try {\n element = this.elementSelector(value);\n }\n catch (err) {\n this.error(err);\n }\n }\n else {\n element = value;\n }\n if (!group) {\n group = (this.subjectSelector ? this.subjectSelector() : new Subject());\n groups.set(key, group);\n const groupedObservable = new GroupedObservable(key, group, this);\n this.destination.next(groupedObservable);\n if (this.durationSelector) {\n let duration;\n try {\n duration = this.durationSelector(new GroupedObservable(key, group));\n }\n catch (err) {\n this.error(err);\n return;\n }\n this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n }\n }\n if (!group.closed) {\n group.next(element);\n }\n }\n _error(err) {\n const groups = this.groups;\n if (groups) {\n groups.forEach((group, key) => {\n group.error(err);\n });\n groups.clear();\n }\n this.destination.error(err);\n }\n _complete() {\n const groups = this.groups;\n if (groups) {\n groups.forEach((group, key) => {\n group.complete();\n });\n groups.clear();\n }\n this.destination.complete();\n }\n removeGroup(key) {\n this.groups.delete(key);\n }\n unsubscribe() {\n if (!this.closed) {\n this.attemptedToUnsubscribe = true;\n if (this.count === 0) {\n super.unsubscribe();\n }\n }\n }\n}\nclass GroupDurationSubscriber extends Subscriber {\n constructor(key, group, parent) {\n super(group);\n this.key = key;\n this.group = group;\n this.parent = parent;\n }\n _next(value) {\n this.complete();\n }\n _unsubscribe() {\n const { parent, key } = this;\n this.key = this.parent = null;\n if (parent) {\n parent.removeGroup(key);\n }\n }\n}\nexport class GroupedObservable extends Observable {\n constructor(key, groupSubject, refCountSubscription) {\n super();\n this.key = key;\n this.groupSubject = groupSubject;\n this.refCountSubscription = refCountSubscription;\n }\n _subscribe(subscriber) {\n const subscription = new Subscription();\n const { refCountSubscription, groupSubject } = this;\n if (refCountSubscription && !refCountSubscription.closed) {\n subscription.add(new InnerRefCountSubscription(refCountSubscription));\n }\n subscription.add(groupSubject.subscribe(subscriber));\n return subscription;\n }\n}\nclass InnerRefCountSubscription extends Subscription {\n constructor(parent) {\n super();\n this.parent = parent;\n parent.count++;\n }\n unsubscribe() {\n const parent = this.parent;\n if (!parent.closed && !this.closed) {\n super.unsubscribe();\n parent.count -= 1;\n if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n parent.unsubscribe();\n }\n }\n }\n}\n","import { Subject } from './Subject';\nimport { Subscription } from './Subscription';\nexport class AsyncSubject extends Subject {\n constructor() {\n super(...arguments);\n this.value = null;\n this.hasNext = false;\n this.hasCompleted = false;\n }\n _subscribe(subscriber) {\n if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.hasCompleted && this.hasNext) {\n subscriber.next(this.value);\n subscriber.complete();\n return Subscription.EMPTY;\n }\n return super._subscribe(subscriber);\n }\n next(value) {\n if (!this.hasCompleted) {\n this.value = value;\n this.hasNext = true;\n }\n }\n error(error) {\n if (!this.hasCompleted) {\n super.error(error);\n }\n }\n complete() {\n this.hasCompleted = true;\n if (this.hasNext) {\n super.next(this.value);\n }\n super.complete();\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport class VirtualTimeScheduler extends AsyncScheduler {\n constructor(SchedulerAction = VirtualAction, maxFrames = Number.POSITIVE_INFINITY) {\n super(SchedulerAction, () => this.frame);\n this.maxFrames = maxFrames;\n this.frame = 0;\n this.index = -1;\n }\n flush() {\n const { actions, maxFrames } = this;\n let error, action;\n while ((action = actions[0]) && action.delay <= maxFrames) {\n actions.shift();\n this.frame = action.delay;\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n }\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\nVirtualTimeScheduler.frameTimeFactor = 10;\nexport class VirtualAction extends AsyncAction {\n constructor(scheduler, work, index = scheduler.index += 1) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.index = index;\n this.active = true;\n this.index = scheduler.index = index;\n }\n schedule(state, delay = 0) {\n if (!this.id) {\n return super.schedule(state, delay);\n }\n this.active = false;\n const action = new VirtualAction(this.scheduler, this.work);\n this.add(action);\n return action.schedule(state, delay);\n }\n requestAsyncId(scheduler, id, delay = 0) {\n this.delay = scheduler.frame + delay;\n const { actions } = scheduler;\n actions.push(this);\n actions.sort(VirtualAction.sortActions);\n return true;\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n return undefined;\n }\n _execute(state, delay) {\n if (this.active === true) {\n return super._execute(state, delay);\n }\n }\n static sortActions(a, b) {\n if (a.delay === b.delay) {\n if (a.index === b.index) {\n return 0;\n }\n else if (a.index > b.index) {\n return 1;\n }\n else {\n return -1;\n }\n }\n else if (a.delay > b.delay) {\n return 1;\n }\n else {\n return -1;\n }\n }\n}\n","const TimeoutErrorImpl = (() => {\n function TimeoutErrorImpl() {\n Error.call(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n return this;\n }\n TimeoutErrorImpl.prototype = Object.create(Error.prototype);\n return TimeoutErrorImpl;\n})();\nexport const TimeoutError = TimeoutErrorImpl;\n","import { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isArray } from '../util/isArray';\nimport { isScheduler } from '../util/isScheduler';\nexport function bindCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return (...args) => bindCallback(callbackFunc, scheduler)(...args).pipe(map((args) => isArray(args) ? resultSelector(...args) : resultSelector(args)));\n }\n }\n return function (...args) {\n const context = this;\n let subject;\n const params = {\n context,\n subject,\n callbackFunc,\n scheduler,\n };\n return new Observable(subscriber => {\n if (!scheduler) {\n if (!subject) {\n subject = new AsyncSubject();\n const handler = (...innerArgs) => {\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, [...args, handler]);\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n const state = {\n args, subscriber, params,\n };\n return scheduler.schedule(dispatch, 0, state);\n }\n });\n };\n}\nfunction dispatch(state) {\n const self = this;\n const { args, subscriber, params } = state;\n const { callbackFunc, context, scheduler } = params;\n let { subject } = params;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n const handler = (...innerArgs) => {\n const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n this.add(scheduler.schedule(dispatchNext, 0, { value, subject }));\n };\n try {\n callbackFunc.apply(context, [...args, handler]);\n }\n catch (err) {\n subject.error(err);\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(state) {\n const { value, subject } = state;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(state) {\n const { err, subject } = state;\n subject.error(err);\n}\n","import { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { map } from '../operators/map';\nimport { canReportError } from '../util/canReportError';\nimport { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nexport function bindNodeCallback(callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return (...args) => bindNodeCallback(callbackFunc, scheduler)(...args).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args)));\n }\n }\n return function (...args) {\n const params = {\n subject: undefined,\n args,\n callbackFunc,\n scheduler,\n context: this,\n };\n return new Observable(subscriber => {\n const { context } = params;\n let { subject } = params;\n if (!scheduler) {\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n const handler = (...innerArgs) => {\n const err = innerArgs.shift();\n if (err) {\n subject.error(err);\n return;\n }\n subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);\n subject.complete();\n };\n try {\n callbackFunc.apply(context, [...args, handler]);\n }\n catch (err) {\n if (canReportError(subject)) {\n subject.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n return subject.subscribe(subscriber);\n }\n else {\n return scheduler.schedule(dispatch, 0, { params, subscriber, context });\n }\n });\n };\n}\nfunction dispatch(state) {\n const { params, subscriber, context } = state;\n const { callbackFunc, args, scheduler } = params;\n let subject = params.subject;\n if (!subject) {\n subject = params.subject = new AsyncSubject();\n const handler = (...innerArgs) => {\n const err = innerArgs.shift();\n if (err) {\n this.add(scheduler.schedule(dispatchError, 0, { err, subject }));\n }\n else {\n const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;\n this.add(scheduler.schedule(dispatchNext, 0, { value, subject }));\n }\n };\n try {\n callbackFunc.apply(context, [...args, handler]);\n }\n catch (err) {\n this.add(scheduler.schedule(dispatchError, 0, { err, subject }));\n }\n }\n this.add(subject.subscribe(subscriber));\n}\nfunction dispatchNext(arg) {\n const { value, subject } = arg;\n subject.next(value);\n subject.complete();\n}\nfunction dispatchError(arg) {\n const { err, subject } = arg;\n subject.error(err);\n}\n","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args)));\n }\n return new Observable(subscriber => {\n const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e);\n let retValue;\n try {\n retValue = addHandler(handler);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!isFunction(removeHandler)) {\n return undefined;\n }\n return () => removeHandler(handler, retValue);\n });\n}\n","import { Observable } from '../Observable';\nimport { identity } from '../util/identity';\nimport { isScheduler } from '../util/isScheduler';\nexport function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {\n let resultSelector;\n let initialState;\n if (arguments.length == 1) {\n const options = initialStateOrOptions;\n initialState = options.initialState;\n condition = options.condition;\n iterate = options.iterate;\n resultSelector = options.resultSelector || identity;\n scheduler = options.scheduler;\n }\n else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {\n initialState = initialStateOrOptions;\n resultSelector = identity;\n scheduler = resultSelectorOrObservable;\n }\n else {\n initialState = initialStateOrOptions;\n resultSelector = resultSelectorOrObservable;\n }\n return new Observable(subscriber => {\n let state = initialState;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n subscriber,\n iterate,\n condition,\n resultSelector,\n state\n });\n }\n do {\n if (condition) {\n let conditionResult;\n try {\n conditionResult = condition(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n break;\n }\n }\n let value;\n try {\n value = resultSelector(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n break;\n }\n try {\n state = iterate(state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n } while (true);\n return undefined;\n });\n}\nfunction dispatch(state) {\n const { subscriber, condition } = state;\n if (subscriber.closed) {\n return undefined;\n }\n if (state.needIterate) {\n try {\n state.state = state.iterate(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n }\n else {\n state.needIterate = true;\n }\n if (condition) {\n let conditionResult;\n try {\n conditionResult = condition(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (!conditionResult) {\n subscriber.complete();\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n }\n let value;\n try {\n value = state.resultSelector(state.state);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n if (subscriber.closed) {\n return undefined;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return undefined;\n }\n return this.schedule(state);\n}\n","import { defer } from './defer';\nimport { EMPTY } from './empty';\nexport function iif(condition, trueResult = EMPTY, falseResult = EMPTY) {\n return defer(() => condition() ? trueResult : falseResult);\n}\n","import { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period = 0, scheduler = async) {\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(subscriber => {\n subscriber.add(scheduler.schedule(dispatch, period, { subscriber, counter: 0, period }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n const { subscriber, counter, period } = state;\n subscriber.next(counter);\n this.schedule({ subscriber, counter: counter + 1, period }, period);\n}\n","import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport const NEVER = new Observable(noop);\nexport function never() {\n return NEVER;\n}\n","import { Observable } from '../Observable';\nimport { from } from './from';\nimport { isArray } from '../util/isArray';\nimport { EMPTY } from './empty';\nexport function onErrorResumeNext(...sources) {\n if (sources.length === 0) {\n return EMPTY;\n }\n const [first, ...remainder] = sources;\n if (sources.length === 1 && isArray(first)) {\n return onErrorResumeNext(...first);\n }\n return new Observable(subscriber => {\n const subNext = () => subscriber.add(onErrorResumeNext(...remainder).subscribe(subscriber));\n return from(first).subscribe({\n next(value) { subscriber.next(value); },\n error: subNext,\n complete: subNext,\n });\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function pairs(obj, scheduler) {\n if (!scheduler) {\n return new Observable(subscriber => {\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length && !subscriber.closed; i++) {\n const key = keys[i];\n if (obj.hasOwnProperty(key)) {\n subscriber.next([key, obj[key]]);\n }\n }\n subscriber.complete();\n });\n }\n else {\n return new Observable(subscriber => {\n const keys = Object.keys(obj);\n const subscription = new Subscription();\n subscription.add(scheduler.schedule(dispatch, 0, { keys, index: 0, subscriber, subscription, obj }));\n return subscription;\n });\n }\n}\nexport function dispatch(state) {\n const { keys, index, subscriber, subscription, obj } = state;\n if (!subscriber.closed) {\n if (index < keys.length) {\n const key = keys[index];\n subscriber.next([key, obj[key]]);\n subscription.add(this.schedule({ keys, index: index + 1, subscriber, subscription, obj }));\n }\n else {\n subscriber.complete();\n }\n }\n}\n","export function not(pred, thisArg) {\n function notPred() {\n return !(notPred.pred.apply(notPred.thisArg, arguments));\n }\n notPred.pred = pred;\n notPred.thisArg = thisArg;\n return notPred;\n}\n","import { not } from '../util/not';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { filter } from '../operators/filter';\nimport { Observable } from '../Observable';\nexport function partition(source, predicate, thisArg) {\n return [\n filter(predicate, thisArg)(new Observable(subscribeTo(source))),\n filter(not(predicate, thisArg))(new Observable(subscribeTo(source)))\n ];\n}\n","import { isArray } from '../util/isArray';\nimport { fromArray } from './fromArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nexport function race(...observables) {\n if (observables.length === 1) {\n if (isArray(observables[0])) {\n observables = observables[0];\n }\n else {\n return observables[0];\n }\n }\n return fromArray(observables, undefined).lift(new RaceOperator());\n}\nexport class RaceOperator {\n call(subscriber, source) {\n return source.subscribe(new RaceSubscriber(subscriber));\n }\n}\nexport class RaceSubscriber extends OuterSubscriber {\n constructor(destination) {\n super(destination);\n this.hasFirst = false;\n this.observables = [];\n this.subscriptions = [];\n }\n _next(observable) {\n this.observables.push(observable);\n }\n _complete() {\n const observables = this.observables;\n const len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n for (let i = 0; i < len && !this.hasFirst; i++) {\n const observable = observables[i];\n const subscription = subscribeToResult(this, observable, undefined, i);\n if (this.subscriptions) {\n this.subscriptions.push(subscription);\n }\n this.add(subscription);\n }\n this.observables = null;\n }\n }\n notifyNext(_outerValue, innerValue, outerIndex) {\n if (!this.hasFirst) {\n this.hasFirst = true;\n for (let i = 0; i < this.subscriptions.length; i++) {\n if (i !== outerIndex) {\n let subscription = this.subscriptions[i];\n subscription.unsubscribe();\n this.remove(subscription);\n }\n }\n this.subscriptions = null;\n }\n this.destination.next(innerValue);\n }\n}\n","import { Observable } from '../Observable';\nexport function range(start = 0, count, scheduler) {\n return new Observable(subscriber => {\n if (count === undefined) {\n count = start;\n start = 0;\n }\n let index = 0;\n let current = start;\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n index, count, start, subscriber\n });\n }\n else {\n do {\n if (index++ >= count) {\n subscriber.complete();\n break;\n }\n subscriber.next(current++);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n }\n return undefined;\n });\n}\nexport function dispatch(state) {\n const { start, index, count, subscriber } = state;\n if (index >= count) {\n subscriber.complete();\n return;\n }\n subscriber.next(start);\n if (subscriber.closed) {\n return;\n }\n state.index = index + 1;\n state.start = start + 1;\n this.schedule(state);\n}\n","import { Observable } from '../Observable';\nimport { from } from './from';\nimport { EMPTY } from './empty';\nexport function using(resourceFactory, observableFactory) {\n return new Observable(subscriber => {\n let resource;\n try {\n resource = resourceFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n let result;\n try {\n result = observableFactory(resource);\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n const source = result ? from(result) : EMPTY;\n const subscription = source.subscribe(subscriber);\n return () => {\n subscription.unsubscribe();\n if (resource) {\n resource.unsubscribe();\n }\n };\n });\n}\n","import { fromArray } from './fromArray';\nimport { isArray } from '../util/isArray';\nimport { Subscriber } from '../Subscriber';\nimport { iterator as Symbol_iterator } from '../../internal/symbol/iterator';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function zip(...observables) {\n const resultSelector = observables[observables.length - 1];\n if (typeof resultSelector === 'function') {\n observables.pop();\n }\n return fromArray(observables, undefined).lift(new ZipOperator(resultSelector));\n}\nexport class ZipOperator {\n constructor(resultSelector) {\n this.resultSelector = resultSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));\n }\n}\nexport class ZipSubscriber extends Subscriber {\n constructor(destination, resultSelector, values = Object.create(null)) {\n super(destination);\n this.resultSelector = resultSelector;\n this.iterators = [];\n this.active = 0;\n this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : undefined;\n }\n _next(value) {\n const iterators = this.iterators;\n if (isArray(value)) {\n iterators.push(new StaticArrayIterator(value));\n }\n else if (typeof value[Symbol_iterator] === 'function') {\n iterators.push(new StaticIterator(value[Symbol_iterator]()));\n }\n else {\n iterators.push(new ZipBufferIterator(this.destination, this, value));\n }\n }\n _complete() {\n const iterators = this.iterators;\n const len = iterators.length;\n this.unsubscribe();\n if (len === 0) {\n this.destination.complete();\n return;\n }\n this.active = len;\n for (let i = 0; i < len; i++) {\n let iterator = iterators[i];\n if (iterator.stillUnsubscribed) {\n const destination = this.destination;\n destination.add(iterator.subscribe());\n }\n else {\n this.active--;\n }\n }\n }\n notifyInactive() {\n this.active--;\n if (this.active === 0) {\n this.destination.complete();\n }\n }\n checkIterators() {\n const iterators = this.iterators;\n const len = iterators.length;\n const destination = this.destination;\n for (let i = 0; i < len; i++) {\n let iterator = iterators[i];\n if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n return;\n }\n }\n let shouldComplete = false;\n const args = [];\n for (let i = 0; i < len; i++) {\n let iterator = iterators[i];\n let result = iterator.next();\n if (iterator.hasCompleted()) {\n shouldComplete = true;\n }\n if (result.done) {\n destination.complete();\n return;\n }\n args.push(result.value);\n }\n if (this.resultSelector) {\n this._tryresultSelector(args);\n }\n else {\n destination.next(args);\n }\n if (shouldComplete) {\n destination.complete();\n }\n }\n _tryresultSelector(args) {\n let result;\n try {\n result = this.resultSelector.apply(this, args);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\nclass StaticIterator {\n constructor(iterator) {\n this.iterator = iterator;\n this.nextResult = iterator.next();\n }\n hasValue() {\n return true;\n }\n next() {\n const result = this.nextResult;\n this.nextResult = this.iterator.next();\n return result;\n }\n hasCompleted() {\n const nextResult = this.nextResult;\n return Boolean(nextResult && nextResult.done);\n }\n}\nclass StaticArrayIterator {\n constructor(array) {\n this.array = array;\n this.index = 0;\n this.length = 0;\n this.length = array.length;\n }\n [Symbol_iterator]() {\n return this;\n }\n next(value) {\n const i = this.index++;\n const array = this.array;\n return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n }\n hasValue() {\n return this.array.length > this.index;\n }\n hasCompleted() {\n return this.array.length === this.index;\n }\n}\nclass ZipBufferIterator extends SimpleOuterSubscriber {\n constructor(destination, parent, observable) {\n super(destination);\n this.parent = parent;\n this.observable = observable;\n this.stillUnsubscribed = true;\n this.buffer = [];\n this.isComplete = false;\n }\n [Symbol_iterator]() {\n return this;\n }\n next() {\n const buffer = this.buffer;\n if (buffer.length === 0 && this.isComplete) {\n return { value: null, done: true };\n }\n else {\n return { value: buffer.shift(), done: false };\n }\n }\n hasValue() {\n return this.buffer.length > 0;\n }\n hasCompleted() {\n return this.buffer.length === 0 && this.isComplete;\n }\n notifyComplete() {\n if (this.buffer.length > 0) {\n this.isComplete = true;\n this.parent.notifyInactive();\n }\n else {\n this.destination.complete();\n }\n }\n notifyNext(innerValue) {\n this.buffer.push(innerValue);\n this.parent.checkIterators();\n }\n subscribe() {\n return innerSubscribe(this.observable, new SimpleInnerSubscriber(this));\n }\n}\n","import { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n }\n getValue() {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n","import { empty } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nexport var NotificationKind;\n(function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nexport class Notification {\n constructor(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n observe(observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.error);\n case 'C':\n return observer.complete && observer.complete();\n }\n }\n do(next, error, complete) {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.error);\n case 'C':\n return complete && complete();\n }\n }\n accept(nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n }\n toObservable() {\n const kind = this.kind;\n switch (kind) {\n case 'N':\n return of(this.value);\n case 'E':\n return throwError(this.error);\n case 'C':\n return empty();\n }\n throw new Error('unexpected notification kind value');\n }\n static createNext(value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return Notification.undefinedValueNotification;\n }\n static createError(err) {\n return new Notification('E', undefined, err);\n }\n static createComplete() {\n return Notification.completeNotification;\n }\n}\nNotification.completeNotification = new Notification('C');\nNotification.undefinedValueNotification = new Notification('N', undefined);\n","import { canReportError } from './util/canReportError';\nimport { toSubscriber } from './util/toSubscriber';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nexport class Observable {\n constructor(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const { operator } = this;\n const sink = toSubscriber(observerOrNext, error, complete);\n if (operator) {\n sink.add(operator.call(sink, this.source));\n }\n else {\n sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?\n this._subscribe(sink) :\n this._trySubscribe(sink));\n }\n if (config.useDeprecatedSynchronousErrorHandling) {\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n }\n return sink;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n sink.syncErrorThrown = true;\n sink.syncErrorValue = err;\n }\n if (canReportError(sink)) {\n sink.error(err);\n }\n else {\n console.warn(err);\n }\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let subscription;\n subscription = this.subscribe((value) => {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n if (subscription) {\n subscription.unsubscribe();\n }\n }\n }, reject, resolve);\n });\n }\n _subscribe(subscriber) {\n const { source } = this;\n return source && source.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n if (operations.length === 0) {\n return this;\n }\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe((x) => value = x, (err) => reject(err), () => resolve(value));\n });\n }\n}\nObservable.create = (subscribe) => {\n return new Observable(subscribe);\n};\nfunction getPromiseCtor(promiseCtor) {\n if (!promiseCtor) {\n promiseCtor = config.Promise || Promise;\n }\n if (!promiseCtor) {\n throw new Error('no Promise impl found');\n }\n return promiseCtor;\n}\n","import { Subscriber } from '../Subscriber';\nimport { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';\nimport { empty as emptyObserver } from '../Observer';\nexport function toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriberSymbol]) {\n return nextOrObserver[rxSubscriberSymbol]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber(emptyObserver);\n }\n return new Subscriber(nextOrObserver, error, complete);\n}\n","import { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport const empty = {\n closed: true,\n next(value) { },\n error(err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n },\n complete() { }\n};\n","import { Subscriber } from './Subscriber';\nexport class OuterSubscriber extends Subscriber {\n notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error, innerSub) {\n this.destination.error(error);\n }\n notifyComplete(innerSub) {\n this.destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nexport function observeOn(scheduler, delay = 0) {\n return function observeOnOperatorFunction(source) {\n return source.lift(new ObserveOnOperator(scheduler, delay));\n };\n}\nexport class ObserveOnOperator {\n constructor(scheduler, delay = 0) {\n this.scheduler = scheduler;\n this.delay = delay;\n }\n call(subscriber, source) {\n return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n }\n}\nexport class ObserveOnSubscriber extends Subscriber {\n constructor(destination, scheduler, delay = 0) {\n super(destination);\n this.scheduler = scheduler;\n this.delay = delay;\n }\n static dispatch(arg) {\n const { notification, destination } = arg;\n notification.observe(destination);\n this.unsubscribe();\n }\n scheduleMessage(notification) {\n const destination = this.destination;\n destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n }\n _next(value) {\n this.scheduleMessage(Notification.createNext(value));\n }\n _error(err) {\n this.scheduleMessage(Notification.createError(err));\n this.unsubscribe();\n }\n _complete() {\n this.scheduleMessage(Notification.createComplete());\n this.unsubscribe();\n }\n}\nexport class ObserveOnMessage {\n constructor(notification, destination) {\n this.notification = notification;\n this.destination = destination;\n }\n}\n","import { Subject } from './Subject';\nimport { queue } from './scheduler/queue';\nimport { Subscription } from './Subscription';\nimport { ObserveOnSubscriber } from './operators/observeOn';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nexport class ReplaySubject extends Subject {\n constructor(bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, scheduler) {\n super();\n this.scheduler = scheduler;\n this._events = [];\n this._infiniteTimeWindow = false;\n this._bufferSize = bufferSize < 1 ? 1 : bufferSize;\n this._windowTime = windowTime < 1 ? 1 : windowTime;\n if (windowTime === Number.POSITIVE_INFINITY) {\n this._infiniteTimeWindow = true;\n this.next = this.nextInfiniteTimeWindow;\n }\n else {\n this.next = this.nextTimeWindow;\n }\n }\n nextInfiniteTimeWindow(value) {\n if (!this.isStopped) {\n const _events = this._events;\n _events.push(value);\n if (_events.length > this._bufferSize) {\n _events.shift();\n }\n }\n super.next(value);\n }\n nextTimeWindow(value) {\n if (!this.isStopped) {\n this._events.push(new ReplayEvent(this._getNow(), value));\n this._trimBufferThenGetEvents();\n }\n super.next(value);\n }\n _subscribe(subscriber) {\n const _infiniteTimeWindow = this._infiniteTimeWindow;\n const _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();\n const scheduler = this.scheduler;\n const len = _events.length;\n let subscription;\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.isStopped || this.hasError) {\n subscription = Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n subscription = new SubjectSubscription(this, subscriber);\n }\n if (scheduler) {\n subscriber.add(subscriber = new ObserveOnSubscriber(subscriber, scheduler));\n }\n if (_infiniteTimeWindow) {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i]);\n }\n }\n else {\n for (let i = 0; i < len && !subscriber.closed; i++) {\n subscriber.next(_events[i].value);\n }\n }\n if (this.hasError) {\n subscriber.error(this.thrownError);\n }\n else if (this.isStopped) {\n subscriber.complete();\n }\n return subscription;\n }\n _getNow() {\n return (this.scheduler || queue).now();\n }\n _trimBufferThenGetEvents() {\n const now = this._getNow();\n const _bufferSize = this._bufferSize;\n const _windowTime = this._windowTime;\n const _events = this._events;\n const eventsCount = _events.length;\n let spliceCount = 0;\n while (spliceCount < eventsCount) {\n if ((now - _events[spliceCount].time) < _windowTime) {\n break;\n }\n spliceCount++;\n }\n if (eventsCount > _bufferSize) {\n spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);\n }\n if (spliceCount > 0) {\n _events.splice(0, spliceCount);\n }\n return _events;\n }\n}\nclass ReplayEvent {\n constructor(time, value) {\n this.time = time;\n this.value = value;\n }\n}\n","export class Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n this.SchedulerAction = SchedulerAction;\n this.now = now;\n }\n schedule(work, delay = 0, state) {\n return new this.SchedulerAction(this, work).schedule(state, delay);\n }\n}\nScheduler.now = () => Date.now();\n","import { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { SubjectSubscription } from './SubjectSubscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nexport class SubjectSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.destination = destination;\n }\n}\nexport class Subject extends Observable {\n constructor() {\n super();\n this.observers = [];\n this.closed = false;\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n [rxSubscriberSymbol]() {\n return new SubjectSubscriber(this);\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n next(value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n }\n error(err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n }\n complete() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n this.isStopped = true;\n const { observers } = this;\n const len = observers.length;\n const copy = observers.slice();\n for (let i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n }\n unsubscribe() {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n }\n _trySubscribe(subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return super._trySubscribe(subscriber);\n }\n }\n _subscribe(subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription(this, subscriber);\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n}\nSubject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n};\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n const { destination } = this;\n if (destination && destination.next) {\n destination.next(value);\n }\n }\n error(err) {\n const { destination } = this;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n }\n complete() {\n const { destination } = this;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n }\n _subscribe(subscriber) {\n const { source } = this;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription.EMPTY;\n }\n }\n}\n","import { Subscription } from './Subscription';\nexport class SubjectSubscription extends Subscription {\n constructor(subject, subscriber) {\n super();\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.closed = true;\n const subject = this.subject;\n const observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n const subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { empty as emptyObserver } from './Observer';\nimport { Subscription } from './Subscription';\nimport { rxSubscriber as rxSubscriberSymbol } from '../internal/symbol/rxSubscriber';\nimport { config } from './config';\nimport { hostReportError } from './util/hostReportError';\nexport class Subscriber extends Subscription {\n constructor(destinationOrNext, error, complete) {\n super();\n this.syncErrorValue = null;\n this.syncErrorThrown = false;\n this.syncErrorThrowable = false;\n this.isStopped = false;\n switch (arguments.length) {\n case 0:\n this.destination = emptyObserver;\n break;\n case 1:\n if (!destinationOrNext) {\n this.destination = emptyObserver;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;\n this.destination = destinationOrNext;\n destinationOrNext.add(this);\n }\n else {\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext);\n }\n break;\n }\n default:\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);\n break;\n }\n }\n [rxSubscriberSymbol]() { return this; }\n static create(next, error, complete) {\n const subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n }\n next(value) {\n if (!this.isStopped) {\n this._next(value);\n }\n }\n error(err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n super.unsubscribe();\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n this.destination.error(err);\n this.unsubscribe();\n }\n _complete() {\n this.destination.complete();\n this.unsubscribe();\n }\n _unsubscribeAndRecycle() {\n const { _parentOrParents } = this;\n this._parentOrParents = null;\n this.unsubscribe();\n this.closed = false;\n this.isStopped = false;\n this._parentOrParents = _parentOrParents;\n return this;\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(_parentSubscriber, observerOrNext, error, complete) {\n super();\n this._parentSubscriber = _parentSubscriber;\n let next;\n let context = this;\n if (isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (observerOrNext !== emptyObserver) {\n context = Object.create(observerOrNext);\n if (isFunction(context.unsubscribe)) {\n this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = this.unsubscribe.bind(this);\n }\n }\n this._context = context;\n this._next = next;\n this._error = error;\n this._complete = complete;\n }\n next(value) {\n if (!this.isStopped && this._next) {\n const { _parentSubscriber } = this;\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {\n this.unsubscribe();\n }\n }\n }\n error(err) {\n if (!this.isStopped) {\n const { _parentSubscriber } = this;\n const { useDeprecatedSynchronousErrorHandling } = config;\n if (this._error) {\n if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parentSubscriber.syncErrorThrowable) {\n this.unsubscribe();\n if (useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n hostReportError(err);\n }\n else {\n if (useDeprecatedSynchronousErrorHandling) {\n _parentSubscriber.syncErrorValue = err;\n _parentSubscriber.syncErrorThrown = true;\n }\n else {\n hostReportError(err);\n }\n this.unsubscribe();\n }\n }\n }\n complete() {\n if (!this.isStopped) {\n const { _parentSubscriber } = this;\n if (this._complete) {\n const wrappedComplete = () => this._complete.call(this._context);\n if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {\n this.__tryOrUnsub(wrappedComplete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parentSubscriber, wrappedComplete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n }\n __tryOrUnsub(fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n if (config.useDeprecatedSynchronousErrorHandling) {\n throw err;\n }\n else {\n hostReportError(err);\n }\n }\n }\n __tryOrSetError(parent, fn, value) {\n if (!config.useDeprecatedSynchronousErrorHandling) {\n throw new Error('bad call');\n }\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n else {\n hostReportError(err);\n return true;\n }\n }\n return false;\n }\n _unsubscribe() {\n const { _parentSubscriber } = this;\n this._context = null;\n this._parentSubscriber = null;\n _parentSubscriber.unsubscribe();\n }\n}\n","import { isArray } from './util/isArray';\nimport { isObject } from './util/isObject';\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nexport class Subscription {\n constructor(unsubscribe) {\n this.closed = false;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (unsubscribe) {\n this._ctorUnsubscribe = true;\n this._unsubscribe = unsubscribe;\n }\n }\n unsubscribe() {\n let errors;\n if (this.closed) {\n return;\n }\n let { _parentOrParents, _ctorUnsubscribe, _unsubscribe, _subscriptions } = this;\n this.closed = true;\n this._parentOrParents = null;\n this._subscriptions = null;\n if (_parentOrParents instanceof Subscription) {\n _parentOrParents.remove(this);\n }\n else if (_parentOrParents !== null) {\n for (let index = 0; index < _parentOrParents.length; ++index) {\n const parent = _parentOrParents[index];\n parent.remove(this);\n }\n }\n if (isFunction(_unsubscribe)) {\n if (_ctorUnsubscribe) {\n this._unsubscribe = undefined;\n }\n try {\n _unsubscribe.call(this);\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];\n }\n }\n if (isArray(_subscriptions)) {\n let index = -1;\n let len = _subscriptions.length;\n while (++index < len) {\n const sub = _subscriptions[index];\n if (isObject(sub)) {\n try {\n sub.unsubscribe();\n }\n catch (e) {\n errors = errors || [];\n if (e instanceof UnsubscriptionError) {\n errors = errors.concat(flattenUnsubscriptionErrors(e.errors));\n }\n else {\n errors.push(e);\n }\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n add(teardown) {\n let subscription = teardown;\n if (!teardown) {\n return Subscription.EMPTY;\n }\n switch (typeof teardown) {\n case 'function':\n subscription = new Subscription(teardown);\n case 'object':\n if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {\n return subscription;\n }\n else if (this.closed) {\n subscription.unsubscribe();\n return subscription;\n }\n else if (!(subscription instanceof Subscription)) {\n const tmp = subscription;\n subscription = new Subscription();\n subscription._subscriptions = [tmp];\n }\n break;\n default: {\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n }\n let { _parentOrParents } = subscription;\n if (_parentOrParents === null) {\n subscription._parentOrParents = this;\n }\n else if (_parentOrParents instanceof Subscription) {\n if (_parentOrParents === this) {\n return subscription;\n }\n subscription._parentOrParents = [_parentOrParents, this];\n }\n else if (_parentOrParents.indexOf(this) === -1) {\n _parentOrParents.push(this);\n }\n else {\n return subscription;\n }\n const subscriptions = this._subscriptions;\n if (subscriptions === null) {\n this._subscriptions = [subscription];\n }\n else {\n subscriptions.push(subscription);\n }\n return subscription;\n }\n remove(subscription) {\n const subscriptions = this._subscriptions;\n if (subscriptions) {\n const subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n }\n}\nSubscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n}(new Subscription()));\nfunction flattenUnsubscriptionErrors(errors) {\n return errors.reduce((errs, err) => errs.concat((err instanceof UnsubscriptionError) ? err.errors : err), []);\n}\n","let _enable_super_gross_mode_that_will_cause_bad_things = false;\nexport const config = {\n Promise: undefined,\n set useDeprecatedSynchronousErrorHandling(value) {\n if (value) {\n const error = new Error();\n console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \\n' + error.stack);\n }\n else if (_enable_super_gross_mode_that_will_cause_bad_things) {\n console.log('RxJS: Back to a better error behavior. Thank you. <3');\n }\n _enable_super_gross_mode_that_will_cause_bad_things = value;\n },\n get useDeprecatedSynchronousErrorHandling() {\n return _enable_super_gross_mode_that_will_cause_bad_things;\n },\n};\n","import { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nexport class SimpleInnerSubscriber extends Subscriber {\n constructor(parent) {\n super();\n this.parent = parent;\n }\n _next(value) {\n this.parent.notifyNext(value);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete();\n this.unsubscribe();\n }\n}\nexport class ComplexInnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\nexport class SimpleOuterSubscriber extends Subscriber {\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.destination.complete();\n }\n}\nexport class ComplexOuterSubscriber extends Subscriber {\n notifyNext(_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error) {\n this.destination.error(error);\n }\n notifyComplete(_innerSub) {\n this.destination.complete();\n }\n}\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n let subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n }\n catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}\n","import { SubjectSubscriber } from '../Subject';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._refCount = 0;\n this._isComplete = false;\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n this._isComplete = false;\n connection = this._connection = new Subscription();\n connection.add(this.source\n .subscribe(new ConnectableSubscriber(this.getSubject(), this)));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\nexport const connectableObservableDescriptor = (() => {\n const connectableProto = ConnectableObservable.prototype;\n return {\n operator: { value: null },\n _refCount: { value: 0, writable: true },\n _subject: { value: null, writable: true },\n _connection: { value: null, writable: true },\n _subscribe: { value: connectableProto._subscribe },\n _isComplete: { value: connectableProto._isComplete, writable: true },\n getSubject: { value: connectableProto.getSubject },\n connect: { value: connectableProto.connect },\n refCount: { value: connectableProto.refCount }\n };\n})();\nclass ConnectableSubscriber extends SubjectSubscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _error(err) {\n this._unsubscribe();\n super._error(err);\n }\n _complete() {\n this.connectable._isComplete = true;\n this._unsubscribe();\n super._complete();\n }\n _unsubscribe() {\n const connectable = this.connectable;\n if (connectable) {\n this.connectable = null;\n const connection = connectable._connection;\n connectable._refCount = 0;\n connectable._subject = null;\n connectable._connection = null;\n if (connection) {\n connection.unsubscribe();\n }\n }\n }\n}\nclass RefCountOperator {\n constructor(connectable) {\n this.connectable = connectable;\n }\n call(subscriber, source) {\n const { connectable } = this;\n connectable._refCount++;\n const refCounter = new RefCountSubscriber(subscriber, connectable);\n const subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n }\n}\nclass RefCountSubscriber extends Subscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _unsubscribe() {\n const { connectable } = this;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n const refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n const { connection } = this;\n const sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n }\n}\n","import { isScheduler } from '../util/isScheduler';\nimport { isArray } from '../util/isArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { fromArray } from './fromArray';\nconst NONE = {};\nexport function combineLatest(...observables) {\n let resultSelector = undefined;\n let scheduler = undefined;\n if (isScheduler(observables[observables.length - 1])) {\n scheduler = observables.pop();\n }\n if (typeof observables[observables.length - 1] === 'function') {\n resultSelector = observables.pop();\n }\n if (observables.length === 1 && isArray(observables[0])) {\n observables = observables[0];\n }\n return fromArray(observables, scheduler).lift(new CombineLatestOperator(resultSelector));\n}\nexport class CombineLatestOperator {\n constructor(resultSelector) {\n this.resultSelector = resultSelector;\n }\n call(subscriber, source) {\n return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));\n }\n}\nexport class CombineLatestSubscriber extends OuterSubscriber {\n constructor(destination, resultSelector) {\n super(destination);\n this.resultSelector = resultSelector;\n this.active = 0;\n this.values = [];\n this.observables = [];\n }\n _next(observable) {\n this.values.push(NONE);\n this.observables.push(observable);\n }\n _complete() {\n const observables = this.observables;\n const len = observables.length;\n if (len === 0) {\n this.destination.complete();\n }\n else {\n this.active = len;\n this.toRespond = len;\n for (let i = 0; i < len; i++) {\n const observable = observables[i];\n this.add(subscribeToResult(this, observable, undefined, i));\n }\n }\n }\n notifyComplete(unused) {\n if ((this.active -= 1) === 0) {\n this.destination.complete();\n }\n }\n notifyNext(_outerValue, innerValue, outerIndex) {\n const values = this.values;\n const oldVal = values[outerIndex];\n const toRespond = !this.toRespond\n ? 0\n : oldVal === NONE ? --this.toRespond : this.toRespond;\n values[outerIndex] = innerValue;\n if (toRespond === 0) {\n if (this.resultSelector) {\n this._tryResultSelector(values);\n }\n else {\n this.destination.next(values.slice());\n }\n }\n }\n _tryResultSelector(values) {\n let result;\n try {\n result = this.resultSelector.apply(this, values);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n","import { of } from './of';\nimport { concatAll } from '../operators/concatAll';\nexport function concat(...observables) {\n return concatAll()(of(...observables));\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { Observable } from '../Observable';\nimport { from } from './from';\nimport { empty } from './empty';\nexport function defer(observableFactory) {\n return new Observable(subscriber => {\n let input;\n try {\n input = observableFactory();\n }\n catch (err) {\n subscriber.error(err);\n return undefined;\n }\n const source = input ? from(input) : empty();\n return source.subscribe(subscriber);\n });\n}\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { map } from '../operators/map';\nimport { isObject } from '../util/isObject';\nimport { from } from './from';\nexport function forkJoin(...sources) {\n if (sources.length === 1) {\n const first = sources[0];\n if (isArray(first)) {\n return forkJoinInternal(first, null);\n }\n if (isObject(first) && Object.getPrototypeOf(first) === Object.prototype) {\n const keys = Object.keys(first);\n return forkJoinInternal(keys.map(key => first[key]), keys);\n }\n }\n if (typeof sources[sources.length - 1] === 'function') {\n const resultSelector = sources.pop();\n sources = (sources.length === 1 && isArray(sources[0])) ? sources[0] : sources;\n return forkJoinInternal(sources, null).pipe(map((args) => resultSelector(...args)));\n }\n return forkJoinInternal(sources, null);\n}\nfunction forkJoinInternal(sources, keys) {\n return new Observable(subscriber => {\n const len = sources.length;\n if (len === 0) {\n subscriber.complete();\n return;\n }\n const values = new Array(len);\n let completed = 0;\n let emitted = 0;\n for (let i = 0; i < len; i++) {\n const source = from(sources[i]);\n let hasValue = false;\n subscriber.add(source.subscribe({\n next: value => {\n if (!hasValue) {\n hasValue = true;\n emitted++;\n }\n values[i] = value;\n },\n error: err => subscriber.error(err),\n complete: () => {\n completed++;\n if (completed === len || !hasValue) {\n if (emitted === len) {\n subscriber.next(keys ?\n keys.reduce((result, key, i) => (result[key] = values[i], result), {}) :\n values);\n }\n subscriber.complete();\n }\n }\n }));\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { subscribeTo } from '../util/subscribeTo';\nimport { scheduled } from '../scheduled/scheduled';\nexport function from(input, scheduler) {\n if (!scheduler) {\n if (input instanceof Observable) {\n return input;\n }\n return new Observable(subscribeTo(input));\n }\n else {\n return scheduled(input, scheduler);\n }\n}\n","import { Observable } from '../Observable';\nimport { subscribeToArray } from '../util/subscribeToArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function fromArray(input, scheduler) {\n if (!scheduler) {\n return new Observable(subscribeToArray(input));\n }\n else {\n return scheduleArray(input, scheduler);\n }\n}\n","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { isFunction } from '../util/isFunction';\nimport { map } from '../operators/map';\nconst toString = (() => Object.prototype.toString)();\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args)));\n }\n return new Observable(subscriber => {\n function handler(e) {\n if (arguments.length > 1) {\n subscriber.next(Array.prototype.slice.call(arguments));\n }\n else {\n subscriber.next(e);\n }\n }\n setupSubscription(target, eventName, handler, subscriber, options);\n });\n}\nfunction setupSubscription(sourceObj, eventName, handler, subscriber, options) {\n let unsubscribe;\n if (isEventTarget(sourceObj)) {\n const source = sourceObj;\n sourceObj.addEventListener(eventName, handler, options);\n unsubscribe = () => source.removeEventListener(eventName, handler, options);\n }\n else if (isJQueryStyleEventEmitter(sourceObj)) {\n const source = sourceObj;\n sourceObj.on(eventName, handler);\n unsubscribe = () => source.off(eventName, handler);\n }\n else if (isNodeStyleEventEmitter(sourceObj)) {\n const source = sourceObj;\n sourceObj.addListener(eventName, handler);\n unsubscribe = () => source.removeListener(eventName, handler);\n }\n else if (sourceObj && sourceObj.length) {\n for (let i = 0, len = sourceObj.length; i < len; i++) {\n setupSubscription(sourceObj[i], eventName, handler, subscriber, options);\n }\n }\n else {\n throw new TypeError('Invalid event target');\n }\n subscriber.add(unsubscribe);\n}\nfunction isNodeStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';\n}\nfunction isJQueryStyleEventEmitter(sourceObj) {\n return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';\n}\nfunction isEventTarget(sourceObj) {\n return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';\n}\n","import { Observable } from '../Observable';\nimport { isScheduler } from '../util/isScheduler';\nimport { mergeAll } from '../operators/mergeAll';\nimport { fromArray } from './fromArray';\nexport function merge(...observables) {\n let concurrent = Number.POSITIVE_INFINITY;\n let scheduler = null;\n let last = observables[observables.length - 1];\n if (isScheduler(last)) {\n scheduler = observables.pop();\n if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {\n concurrent = observables.pop();\n }\n }\n else if (typeof last === 'number') {\n concurrent = observables.pop();\n }\n if (scheduler === null && observables.length === 1 && observables[0] instanceof Observable) {\n return observables[0];\n }\n return mergeAll(concurrent)(fromArray(observables, scheduler));\n}\n","import { isScheduler } from '../util/isScheduler';\nimport { fromArray } from './fromArray';\nimport { scheduleArray } from '../scheduled/scheduleArray';\nexport function of(...args) {\n let scheduler = args[args.length - 1];\n if (isScheduler(scheduler)) {\n args.pop();\n return scheduleArray(args, scheduler);\n }\n else {\n return fromArray(args);\n }\n}\n","import { Observable } from '../Observable';\nexport function throwError(error, scheduler) {\n if (!scheduler) {\n return new Observable(subscriber => subscriber.error(error));\n }\n else {\n return new Observable(subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));\n }\n}\nfunction dispatch({ error, subscriber }) {\n subscriber.error(error);\n}\n","import { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nexport function timer(dueTime = 0, periodOrScheduler, scheduler) {\n let period = -1;\n if (isNumeric(periodOrScheduler)) {\n period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);\n }\n else if (isScheduler(periodOrScheduler)) {\n scheduler = periodOrScheduler;\n }\n if (!isScheduler(scheduler)) {\n scheduler = async;\n }\n return new Observable(subscriber => {\n const due = isNumeric(dueTime)\n ? dueTime\n : (+dueTime - scheduler.now());\n return scheduler.schedule(dispatch, due, {\n index: 0, period, subscriber\n });\n });\n}\nfunction dispatch(state) {\n const { index, period, subscriber } = state;\n subscriber.next(index);\n if (subscriber.closed) {\n return;\n }\n else if (period === -1) {\n return subscriber.complete();\n }\n state.index = index + 1;\n this.schedule(state, period);\n}\n","import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function catchError(selector) {\n return function catchErrorOperatorFunction(source) {\n const operator = new CatchOperator(selector);\n const caught = source.lift(operator);\n return (operator.caught = caught);\n };\n}\nclass CatchOperator {\n constructor(selector) {\n this.selector = selector;\n }\n call(subscriber, source) {\n return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n }\n}\nclass CatchSubscriber extends SimpleOuterSubscriber {\n constructor(destination, selector, caught) {\n super(destination);\n this.selector = selector;\n this.caught = caught;\n }\n error(err) {\n if (!this.isStopped) {\n let result;\n try {\n result = this.selector(err, this.caught);\n }\n catch (err2) {\n super.error(err2);\n return;\n }\n this._unsubscribeAndRecycle();\n const innerSubscriber = new SimpleInnerSubscriber(this);\n this.add(innerSubscriber);\n const innerSubscription = innerSubscribe(result, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n this.add(innerSubscription);\n }\n }\n }\n}\n","import { mergeMap } from './mergeMap';\nexport function concatMap(project, resultSelector) {\n return mergeMap(project, resultSelector, 1);\n}\n","import { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue = null) {\n return (source) => source.lift(new DefaultIfEmptyOperator(defaultValue));\n}\nclass DefaultIfEmptyOperator {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n call(subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n }\n}\nclass DefaultIfEmptySubscriber extends Subscriber {\n constructor(destination, defaultValue) {\n super(destination);\n this.defaultValue = defaultValue;\n this.isEmpty = true;\n }\n _next(value) {\n this.isEmpty = false;\n this.destination.next(value);\n }\n _complete() {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function distinctUntilChanged(compare, keySelector) {\n return (source) => source.lift(new DistinctUntilChangedOperator(compare, keySelector));\n}\nclass DistinctUntilChangedOperator {\n constructor(compare, keySelector) {\n this.compare = compare;\n this.keySelector = keySelector;\n }\n call(subscriber, source) {\n return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n }\n}\nclass DistinctUntilChangedSubscriber extends Subscriber {\n constructor(destination, compare, keySelector) {\n super(destination);\n this.keySelector = keySelector;\n this.hasKey = false;\n if (typeof compare === 'function') {\n this.compare = compare;\n }\n }\n compare(x, y) {\n return x === y;\n }\n _next(value) {\n let key;\n try {\n const { keySelector } = this;\n key = keySelector ? keySelector(value) : value;\n }\n catch (err) {\n return this.destination.error(err);\n }\n let result = false;\n if (this.hasKey) {\n try {\n const { compare } = this;\n result = compare(this.key, key);\n }\n catch (err) {\n return this.destination.error(err);\n }\n }\n else {\n this.hasKey = true;\n }\n if (!result) {\n this.key = key;\n this.destination.next(value);\n }\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function filter(predicate, thisArg) {\n return function filterOperatorFunction(source) {\n return source.lift(new FilterOperator(predicate, thisArg));\n };\n}\nclass FilterOperator {\n constructor(predicate, thisArg) {\n this.predicate = predicate;\n this.thisArg = thisArg;\n }\n call(subscriber, source) {\n return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n }\n}\nclass FilterSubscriber extends Subscriber {\n constructor(destination, predicate, thisArg) {\n super(destination);\n this.predicate = predicate;\n this.thisArg = thisArg;\n this.count = 0;\n }\n _next(value) {\n let result;\n try {\n result = this.predicate.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n if (result) {\n this.destination.next(value);\n }\n }\n}\n","import { Subscriber } from '../Subscriber';\nexport function map(project, thisArg) {\n return function mapOperation(source) {\n if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return source.lift(new MapOperator(project, thisArg));\n };\n}\nexport class MapOperator {\n constructor(project, thisArg) {\n this.project = project;\n this.thisArg = thisArg;\n }\n call(subscriber, source) {\n return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n }\n}\nclass MapSubscriber extends Subscriber {\n constructor(destination, project, thisArg) {\n super(destination);\n this.project = project;\n this.count = 0;\n this.thisArg = thisArg || this;\n }\n _next(value) {\n let result;\n try {\n result = this.project.call(this.thisArg, value, this.count++);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Number.POSITIVE_INFINITY) {\n return mergeMap(identity, concurrent);\n}\n","import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function mergeMap(project, resultSelector, concurrent = Number.POSITIVE_INFINITY) {\n if (typeof resultSelector === 'function') {\n return (source) => source.pipe(mergeMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii))), concurrent));\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return (source) => source.lift(new MergeMapOperator(project, concurrent));\n}\nexport class MergeMapOperator {\n constructor(project, concurrent = Number.POSITIVE_INFINITY) {\n this.project = project;\n this.concurrent = concurrent;\n }\n call(observer, source) {\n return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));\n }\n}\nexport class MergeMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project, concurrent = Number.POSITIVE_INFINITY) {\n super(destination);\n this.project = project;\n this.concurrent = concurrent;\n this.hasCompleted = false;\n this.buffer = [];\n this.active = 0;\n this.index = 0;\n }\n _next(value) {\n if (this.active < this.concurrent) {\n this._tryNext(value);\n }\n else {\n this.buffer.push(value);\n }\n }\n _tryNext(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.active++;\n this._innerSub(result);\n }\n _innerSub(ish) {\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n const innerSubscription = innerSubscribe(ish, innerSubscriber);\n if (innerSubscription !== innerSubscriber) {\n destination.add(innerSubscription);\n }\n }\n _complete() {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n this.unsubscribe();\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyComplete() {\n const buffer = this.buffer;\n this.active--;\n if (buffer.length > 0) {\n this._next(buffer.shift());\n }\n else if (this.active === 0 && this.hasCompleted) {\n this.destination.complete();\n }\n }\n}\nexport const flatMap = mergeMap;\n","import { Subscriber } from '../Subscriber';\nexport function refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\nclass RefCountOperator {\n constructor(connectable) {\n this.connectable = connectable;\n }\n call(subscriber, source) {\n const { connectable } = this;\n connectable._refCount++;\n const refCounter = new RefCountSubscriber(subscriber, connectable);\n const subscription = source.subscribe(refCounter);\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n return subscription;\n }\n}\nclass RefCountSubscriber extends Subscriber {\n constructor(destination, connectable) {\n super(destination);\n this.connectable = connectable;\n }\n _unsubscribe() {\n const { connectable } = this;\n if (!connectable) {\n this.connection = null;\n return;\n }\n this.connectable = null;\n const refCount = connectable._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n connectable._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n const { connection } = this;\n const sharedConnection = connectable._connection;\n this.connection = null;\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n }\n}\n","import { multicast } from './multicast';\nimport { refCount } from './refCount';\nimport { Subject } from '../Subject';\nfunction shareSubjectFactory() {\n return new Subject();\n}\nexport function share() {\n return (source) => refCount()(multicast(shareSubjectFactory)(source));\n}\n","import { connectableObservableDescriptor } from '../observable/ConnectableObservable';\nexport function multicast(subjectOrSubjectFactory, selector) {\n return function multicastOperatorFunction(source) {\n let subjectFactory;\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = subjectOrSubjectFactory;\n }\n else {\n subjectFactory = function subjectFactory() {\n return subjectOrSubjectFactory;\n };\n }\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n const connectable = Object.create(source, connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n return connectable;\n };\n}\nexport class MulticastOperator {\n constructor(subjectFactory, selector) {\n this.subjectFactory = subjectFactory;\n this.selector = selector;\n }\n call(subscriber, source) {\n const { selector } = this;\n const subject = this.subjectFactory();\n const subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n }\n}\n","import { ReplaySubject } from '../ReplaySubject';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n let config;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n config = configOrBufferSize;\n }\n else {\n config = {\n bufferSize: configOrBufferSize,\n windowTime,\n refCount: false,\n scheduler,\n };\n }\n return (source) => source.lift(shareReplayOperator(config));\n}\nfunction shareReplayOperator({ bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, refCount: useRefCount, scheduler, }) {\n let subject;\n let refCount = 0;\n let subscription;\n let hasError = false;\n let isComplete = false;\n return function shareReplayOperation(source) {\n refCount++;\n let innerSub;\n if (!subject || hasError) {\n hasError = false;\n subject = new ReplaySubject(bufferSize, windowTime, scheduler);\n innerSub = subject.subscribe(this);\n subscription = source.subscribe({\n next(value) {\n subject.next(value);\n },\n error(err) {\n hasError = true;\n subject.error(err);\n },\n complete() {\n isComplete = true;\n subscription = undefined;\n subject.complete();\n },\n });\n if (isComplete) {\n subscription = undefined;\n }\n }\n else {\n innerSub = subject.subscribe(this);\n }\n this.add(() => {\n refCount--;\n innerSub.unsubscribe();\n innerSub = undefined;\n if (subscription && !isComplete && useRefCount && refCount === 0) {\n subscription.unsubscribe();\n subscription = undefined;\n subject = undefined;\n }\n });\n };\n}\n","import { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { empty } from '../observable/empty';\nexport function take(count) {\n return (source) => {\n if (count === 0) {\n return empty();\n }\n else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\nclass TakeOperator {\n constructor(total) {\n this.total = total;\n if (this.total < 0) {\n throw new ArgumentOutOfRangeError;\n }\n }\n call(subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n }\n}\nclass TakeSubscriber extends Subscriber {\n constructor(destination, total) {\n super(destination);\n this.total = total;\n this.count = 0;\n }\n _next(value) {\n const total = this.total;\n const count = ++this.count;\n if (count <= total) {\n this.destination.next(value);\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n }\n}\n","import { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe';\nexport function takeUntil(notifier) {\n return (source) => source.lift(new TakeUntilOperator(notifier));\n}\nclass TakeUntilOperator {\n constructor(notifier) {\n this.notifier = notifier;\n }\n call(subscriber, source) {\n const takeUntilSubscriber = new TakeUntilSubscriber(subscriber);\n const notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber));\n if (notifierSubscription && !takeUntilSubscriber.seenValue) {\n takeUntilSubscriber.add(notifierSubscription);\n return source.subscribe(takeUntilSubscriber);\n }\n return takeUntilSubscriber;\n }\n}\nclass TakeUntilSubscriber extends SimpleOuterSubscriber {\n constructor(destination) {\n super(destination);\n this.seenValue = false;\n }\n notifyNext() {\n this.seenValue = true;\n this.complete();\n }\n notifyComplete() {\n }\n}\n","import { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { isFunction } from '../util/isFunction';\nexport function tap(nextOrObserver, error, complete) {\n return function tapOperatorFunction(source) {\n return source.lift(new DoOperator(nextOrObserver, error, complete));\n };\n}\nclass DoOperator {\n constructor(nextOrObserver, error, complete) {\n this.nextOrObserver = nextOrObserver;\n this.error = error;\n this.complete = complete;\n }\n call(subscriber, source) {\n return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n }\n}\nclass TapSubscriber extends Subscriber {\n constructor(destination, observerOrNext, error, complete) {\n super(destination);\n this._tapNext = noop;\n this._tapError = noop;\n this._tapComplete = noop;\n this._tapError = error || noop;\n this._tapComplete = complete || noop;\n if (isFunction(observerOrNext)) {\n this._context = this;\n this._tapNext = observerOrNext;\n }\n else if (observerOrNext) {\n this._context = observerOrNext;\n this._tapNext = observerOrNext.next || noop;\n this._tapError = observerOrNext.error || noop;\n this._tapComplete = observerOrNext.complete || noop;\n }\n }\n _next(value) {\n try {\n this._tapNext.call(this._context, value);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(value);\n }\n _error(err) {\n try {\n this._tapError.call(this._context, err);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.error(err);\n }\n _complete() {\n try {\n this._tapComplete.call(this._context);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n return this.destination.complete();\n }\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n let i = 0;\n sub.add(scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n return;\n }\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n sub.add(this.schedule());\n }\n }));\n return sub;\n });\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n else if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n else if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n else if (isIterable(input) || typeof input === 'string') {\n return scheduleIterable(input, scheduler);\n }\n }\n throw new TypeError((input !== null && typeof input || input) + ' is not observable');\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nexport function isInteropObservable(input) {\n return input && typeof input[Symbol_observable] === 'function';\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function scheduleObservable(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n sub.add(scheduler.schedule(() => {\n const observable = input[Symbol_observable]();\n sub.add(observable.subscribe({\n next(value) { sub.add(scheduler.schedule(() => subscriber.next(value))); },\n error(err) { sub.add(scheduler.schedule(() => subscriber.error(err))); },\n complete() { sub.add(scheduler.schedule(() => subscriber.complete())); },\n }));\n }));\n return sub;\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nexport function schedulePromise(input, scheduler) {\n return new Observable(subscriber => {\n const sub = new Subscription();\n sub.add(scheduler.schedule(() => input.then(value => {\n sub.add(scheduler.schedule(() => {\n subscriber.next(value);\n sub.add(scheduler.schedule(() => subscriber.complete()));\n }));\n }, err => {\n sub.add(scheduler.schedule(() => subscriber.error(err)));\n })));\n return sub;\n });\n}\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function isIterable(input) {\n return input && typeof input[Symbol_iterator] === 'function';\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nexport function scheduleIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(subscriber => {\n const sub = new Subscription();\n let iterator;\n sub.add(() => {\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(() => {\n iterator = input[Symbol_iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n let value;\n let done;\n try {\n const result = iterator.next();\n value = result.value;\n done = result.done;\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n this.schedule();\n }\n }));\n }));\n return sub;\n });\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n","import { Action } from './Action';\nexport class AsyncAction extends Action {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.pending = false;\n }\n schedule(state, delay = 0) {\n if (this.closed) {\n return this;\n }\n this.state = state;\n const id = this.id;\n const scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);\n return this;\n }\n requestAsyncId(scheduler, id, delay = 0) {\n return setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n if (delay !== null && this.delay === delay && this.pending === false) {\n return id;\n }\n clearInterval(id);\n return undefined;\n }\n execute(state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n _execute(state, delay) {\n let errored = false;\n let errorValue = undefined;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = !!e && e || new Error(e);\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n _unsubscribe() {\n const id = this.id;\n const scheduler = this.scheduler;\n const actions = scheduler.actions;\n const index = actions.indexOf(this);\n this.work = null;\n this.state = null;\n this.pending = false;\n this.scheduler = null;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n }\n}\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n super(SchedulerAction, () => {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.now();\n }\n else {\n return now();\n }\n });\n this.actions = [];\n this.active = false;\n this.scheduled = undefined;\n }\n schedule(work, delay = 0, state) {\n if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {\n return AsyncScheduler.delegate.schedule(work, delay, state);\n }\n else {\n return super.schedule(work, delay, state);\n }\n }\n flush(action) {\n const { actions } = this;\n if (this.active) {\n actions.push(action);\n return;\n }\n let error;\n this.active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this.active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\nexport const animationFrame = animationFrameScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class AnimationFrameScheduler extends AsyncScheduler {\n flush(action) {\n this.active = true;\n this.scheduled = undefined;\n const { actions } = this;\n let error;\n let index = -1;\n let count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nexport class AnimationFrameAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(() => scheduler.flush(null)));\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n cancelAnimationFrame(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n }\n}\n","let nextHandle = 1;\nconst RESOLVED = (() => Promise.resolve())();\nconst activeHandles = {};\nfunction findAndClearHandle(handle) {\n if (handle in activeHandles) {\n delete activeHandles[handle];\n return true;\n }\n return false;\n}\nexport const Immediate = {\n setImmediate(cb) {\n const handle = nextHandle++;\n activeHandles[handle] = true;\n RESOLVED.then(() => findAndClearHandle(handle) && cb());\n return handle;\n },\n clearImmediate(handle) {\n findAndClearHandle(handle);\n },\n};\nexport const TestTools = {\n pending() {\n return Object.keys(activeHandles).length;\n }\n};\n","import { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport const asapScheduler = new AsapScheduler(AsapAction);\nexport const asap = asapScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class AsapScheduler extends AsyncScheduler {\n flush(action) {\n this.active = true;\n this.scheduled = undefined;\n const { actions } = this;\n let error;\n let index = -1;\n let count = actions.length;\n action = action || actions.shift();\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n this.active = false;\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { Immediate } from '../util/Immediate';\nimport { AsyncAction } from './AsyncAction';\nexport class AsapAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));\n }\n recycleAsyncId(scheduler, id, delay = 0) {\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n if (scheduler.actions.length === 0) {\n Immediate.clearImmediate(id);\n scheduler.scheduled = undefined;\n }\n return undefined;\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport const queueScheduler = new QueueScheduler(QueueAction);\nexport const queue = queueScheduler;\n","import { AsyncScheduler } from './AsyncScheduler';\nexport class QueueScheduler extends AsyncScheduler {\n}\n","import { AsyncAction } from './AsyncAction';\nexport class QueueAction extends AsyncAction {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n schedule(state, delay = 0) {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n execute(state, delay) {\n return (delay > 0 || this.closed) ?\n super.execute(state, delay) :\n this._execute(state, delay);\n }\n requestAsyncId(scheduler, id, delay = 0) {\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n return scheduler.flush(this);\n }\n}\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\nexport const $$iterator = iterator;\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export const rxSubscriber = (() => typeof Symbol === 'function'\n ? Symbol('rxSubscriber')\n : '@@rxSubscriber_' + Math.random())();\nexport const $$rxSubscriber = rxSubscriber;\n","const ArgumentOutOfRangeErrorImpl = (() => {\n function ArgumentOutOfRangeErrorImpl() {\n Error.call(this);\n this.message = 'argument out of range';\n this.name = 'ArgumentOutOfRangeError';\n return this;\n }\n ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);\n return ArgumentOutOfRangeErrorImpl;\n})();\nexport const ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;\n","const EmptyErrorImpl = (() => {\n function EmptyErrorImpl() {\n Error.call(this);\n this.message = 'no elements in sequence';\n this.name = 'EmptyError';\n return this;\n }\n EmptyErrorImpl.prototype = Object.create(Error.prototype);\n return EmptyErrorImpl;\n})();\nexport const EmptyError = EmptyErrorImpl;\n","const ObjectUnsubscribedErrorImpl = (() => {\n function ObjectUnsubscribedErrorImpl() {\n Error.call(this);\n this.message = 'object unsubscribed';\n this.name = 'ObjectUnsubscribedError';\n return this;\n }\n ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);\n return ObjectUnsubscribedErrorImpl;\n})();\nexport const ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;\n","const UnsubscriptionErrorImpl = (() => {\n function UnsubscriptionErrorImpl(errors) {\n Error.call(this);\n this.message = errors ?\n `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}` : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n return this;\n }\n UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);\n return UnsubscriptionErrorImpl;\n})();\nexport const UnsubscriptionError = UnsubscriptionErrorImpl;\n","import { Subscriber } from '../Subscriber';\nexport function canReportError(observer) {\n while (observer) {\n const { closed, destination, isStopped } = observer;\n if (closed || isStopped) {\n return false;\n }\n else if (destination && destination instanceof Subscriber) {\n observer = destination;\n }\n else {\n observer = null;\n }\n }\n return true;\n}\n","export function hostReportError(err) {\n setTimeout(() => { throw err; }, 0);\n}\n","export function identity(x) {\n return x;\n}\n","export const isArray = (() => Array.isArray || ((x) => x && typeof x.length === 'number'))();\n","export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');\n","export function isFunction(x) {\n return typeof x === 'function';\n}\n","import { isArray } from './isArray';\nexport function isNumeric(val) {\n return !isArray(val) && (val - parseFloat(val) + 1) >= 0;\n}\n","export function isObject(x) {\n return x !== null && typeof x === 'object';\n}\n","import { Observable } from '../Observable';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));\n}\n","export function isPromise(value) {\n return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}\n","export function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\n","export function noop() { }\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { subscribeToArray } from './subscribeToArray';\nimport { subscribeToPromise } from './subscribeToPromise';\nimport { subscribeToIterable } from './subscribeToIterable';\nimport { subscribeToObservable } from './subscribeToObservable';\nimport { isArrayLike } from './isArrayLike';\nimport { isPromise } from './isPromise';\nimport { isObject } from './isObject';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeTo = (result) => {\n if (!!result && typeof result[Symbol_observable] === 'function') {\n return subscribeToObservable(result);\n }\n else if (isArrayLike(result)) {\n return subscribeToArray(result);\n }\n else if (isPromise(result)) {\n return subscribeToPromise(result);\n }\n else if (!!result && typeof result[Symbol_iterator] === 'function') {\n return subscribeToIterable(result);\n }\n else {\n const value = isObject(result) ? 'an invalid object' : `'${result}'`;\n const msg = `You provided ${value} where a stream was expected.`\n + ' You can provide an Observable, Promise, Array, or Iterable.';\n throw new TypeError(msg);\n }\n};\n","import { observable as Symbol_observable } from '../symbol/observable';\nexport const subscribeToObservable = (obj) => (subscriber) => {\n const obs = obj[Symbol_observable]();\n if (typeof obs.subscribe !== 'function') {\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n }\n else {\n return obs.subscribe(subscriber);\n }\n};\n","import { hostReportError } from './hostReportError';\nexport const subscribeToPromise = (promise) => (subscriber) => {\n promise.then((value) => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, (err) => subscriber.error(err))\n .then(null, hostReportError);\n return subscriber;\n};\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nexport const subscribeToIterable = (iterable) => (subscriber) => {\n const iterator = iterable[Symbol_iterator]();\n do {\n let item;\n try {\n item = iterator.next();\n }\n catch (err) {\n subscriber.error(err);\n return subscriber;\n }\n if (item.done) {\n subscriber.complete();\n break;\n }\n subscriber.next(item.value);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n if (typeof iterator.return === 'function') {\n subscriber.add(() => {\n if (iterator.return) {\n iterator.return();\n }\n });\n }\n return subscriber;\n};\n","export const subscribeToArray = (array) => (subscriber) => {\n for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n};\n","import { Subscriber } from './Subscriber';\nexport class InnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n this.index = 0;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n }\n _error(error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\n","import { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeTo } from './subscribeTo';\nimport { Observable } from '../Observable';\nexport function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex)) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n return subscribeTo(result)(innerSubscriber);\n}\n","(function (root, factory) {\n 'use strict';\n // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.\n\n /* istanbul ignore next */\n if (typeof define === 'function' && define.amd) {\n define('stackframe', [], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.StackFrame = factory();\n }\n}(this, function () {\n 'use strict';\n function _isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n\n function StackFrame(functionName, args, fileName, lineNumber, columnNumber, source) {\n if (functionName !== undefined) {\n this.setFunctionName(functionName);\n }\n if (args !== undefined) {\n this.setArgs(args);\n }\n if (fileName !== undefined) {\n this.setFileName(fileName);\n }\n if (lineNumber !== undefined) {\n this.setLineNumber(lineNumber);\n }\n if (columnNumber !== undefined) {\n this.setColumnNumber(columnNumber);\n }\n if (source !== undefined) {\n this.setSource(source);\n }\n }\n\n StackFrame.prototype = {\n getFunctionName: function () {\n return this.functionName;\n },\n setFunctionName: function (v) {\n this.functionName = String(v);\n },\n\n getArgs: function () {\n return this.args;\n },\n setArgs: function (v) {\n if (Object.prototype.toString.call(v) !== '[object Array]') {\n throw new TypeError('Args must be an Array');\n }\n this.args = v;\n },\n\n // NOTE: Property name may be misleading as it includes the path,\n // but it somewhat mirrors V8's JavaScriptStackTraceApi\n // https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi and Gecko's\n // http://mxr.mozilla.org/mozilla-central/source/xpcom/base/nsIException.idl#14\n getFileName: function () {\n return this.fileName;\n },\n setFileName: function (v) {\n this.fileName = String(v);\n },\n\n getLineNumber: function () {\n return this.lineNumber;\n },\n setLineNumber: function (v) {\n if (!_isNumber(v)) {\n throw new TypeError('Line Number must be a Number');\n }\n this.lineNumber = Number(v);\n },\n\n getColumnNumber: function () {\n return this.columnNumber;\n },\n setColumnNumber: function (v) {\n if (!_isNumber(v)) {\n throw new TypeError('Column Number must be a Number');\n }\n this.columnNumber = Number(v);\n },\n\n getSource: function () {\n return this.source;\n },\n setSource: function (v) {\n this.source = String(v);\n },\n\n toString: function() {\n var functionName = this.getFunctionName() || '{anonymous}';\n var args = '(' + (this.getArgs() || []).join(',') + ')';\n var fileName = this.getFileName() ? ('@' + this.getFileName()) : '';\n var lineNumber = _isNumber(this.getLineNumber()) ? (':' + this.getLineNumber()) : '';\n var columnNumber = _isNumber(this.getColumnNumber()) ? (':' + this.getColumnNumber()) : '';\n return functionName + args + fileName + lineNumber + columnNumber;\n }\n };\n\n return StackFrame;\n}));\n","var map = {\n\t\"./af\": 8685,\n\t\"./af.js\": 8685,\n\t\"./ar\": 254,\n\t\"./ar-dz\": 4312,\n\t\"./ar-dz.js\": 4312,\n\t\"./ar-kw\": 2614,\n\t\"./ar-kw.js\": 2614,\n\t\"./ar-ly\": 8630,\n\t\"./ar-ly.js\": 8630,\n\t\"./ar-ma\": 8674,\n\t\"./ar-ma.js\": 8674,\n\t\"./ar-sa\": 9032,\n\t\"./ar-sa.js\": 9032,\n\t\"./ar-tn\": 4730,\n\t\"./ar-tn.js\": 4730,\n\t\"./ar.js\": 254,\n\t\"./az\": 3052,\n\t\"./az.js\": 3052,\n\t\"./be\": 150,\n\t\"./be.js\": 150,\n\t\"./bg\": 3069,\n\t\"./bg.js\": 3069,\n\t\"./bm\": 3466,\n\t\"./bm.js\": 3466,\n\t\"./bn\": 8516,\n\t\"./bn.js\": 8516,\n\t\"./bo\": 6273,\n\t\"./bo.js\": 6273,\n\t\"./br\": 9588,\n\t\"./br.js\": 9588,\n\t\"./bs\": 9815,\n\t\"./bs.js\": 9815,\n\t\"./ca\": 3331,\n\t\"./ca.js\": 3331,\n\t\"./cs\": 1320,\n\t\"./cs.js\": 1320,\n\t\"./cv\": 2219,\n\t\"./cv.js\": 2219,\n\t\"./cy\": 8266,\n\t\"./cy.js\": 8266,\n\t\"./da\": 6427,\n\t\"./da.js\": 6427,\n\t\"./de\": 7435,\n\t\"./de-at\": 2871,\n\t\"./de-at.js\": 2871,\n\t\"./de-ch\": 2994,\n\t\"./de-ch.js\": 2994,\n\t\"./de.js\": 7435,\n\t\"./dv\": 2357,\n\t\"./dv.js\": 2357,\n\t\"./el\": 5649,\n\t\"./el.js\": 5649,\n\t\"./en-au\": 9961,\n\t\"./en-au.js\": 9961,\n\t\"./en-ca\": 9878,\n\t\"./en-ca.js\": 9878,\n\t\"./en-gb\": 3924,\n\t\"./en-gb.js\": 3924,\n\t\"./en-ie\": 864,\n\t\"./en-ie.js\": 864,\n\t\"./en-il\": 1579,\n\t\"./en-il.js\": 1579,\n\t\"./en-in\": 940,\n\t\"./en-in.js\": 940,\n\t\"./en-nz\": 6181,\n\t\"./en-nz.js\": 6181,\n\t\"./en-sg\": 4301,\n\t\"./en-sg.js\": 4301,\n\t\"./eo\": 5291,\n\t\"./eo.js\": 5291,\n\t\"./es\": 4529,\n\t\"./es-do\": 3764,\n\t\"./es-do.js\": 3764,\n\t\"./es-us\": 3425,\n\t\"./es-us.js\": 3425,\n\t\"./es.js\": 4529,\n\t\"./et\": 5203,\n\t\"./et.js\": 5203,\n\t\"./eu\": 678,\n\t\"./eu.js\": 678,\n\t\"./fa\": 3483,\n\t\"./fa.js\": 3483,\n\t\"./fi\": 6262,\n\t\"./fi.js\": 6262,\n\t\"./fil\": 2521,\n\t\"./fil.js\": 2521,\n\t\"./fo\": 9486,\n\t\"./fo.js\": 9486,\n\t\"./fr\": 3131,\n\t\"./fr-ca\": 8239,\n\t\"./fr-ca.js\": 8239,\n\t\"./fr-ch\": 1702,\n\t\"./fr-ch.js\": 1702,\n\t\"./fr.js\": 3131,\n\t\"./fy\": 267,\n\t\"./fy.js\": 267,\n\t\"./ga\": 3821,\n\t\"./ga.js\": 3821,\n\t\"./gd\": 1753,\n\t\"./gd.js\": 1753,\n\t\"./gl\": 4074,\n\t\"./gl.js\": 4074,\n\t\"./gom-deva\": 2762,\n\t\"./gom-deva.js\": 2762,\n\t\"./gom-latn\": 5969,\n\t\"./gom-latn.js\": 5969,\n\t\"./gu\": 2809,\n\t\"./gu.js\": 2809,\n\t\"./he\": 5402,\n\t\"./he.js\": 5402,\n\t\"./hi\": 315,\n\t\"./hi.js\": 315,\n\t\"./hr\": 410,\n\t\"./hr.js\": 410,\n\t\"./hu\": 8288,\n\t\"./hu.js\": 8288,\n\t\"./hy-am\": 8999,\n\t\"./hy-am.js\": 8999,\n\t\"./id\": 1334,\n\t\"./id.js\": 1334,\n\t\"./is\": 6959,\n\t\"./is.js\": 6959,\n\t\"./it\": 4864,\n\t\"./it-ch\": 1124,\n\t\"./it-ch.js\": 1124,\n\t\"./it.js\": 4864,\n\t\"./ja\": 6141,\n\t\"./ja.js\": 6141,\n\t\"./jv\": 9187,\n\t\"./jv.js\": 9187,\n\t\"./ka\": 2136,\n\t\"./ka.js\": 2136,\n\t\"./kk\": 4332,\n\t\"./kk.js\": 4332,\n\t\"./km\": 8607,\n\t\"./km.js\": 8607,\n\t\"./kn\": 4305,\n\t\"./kn.js\": 4305,\n\t\"./ko\": 234,\n\t\"./ko.js\": 234,\n\t\"./ku\": 6003,\n\t\"./ku.js\": 6003,\n\t\"./ky\": 5061,\n\t\"./ky.js\": 5061,\n\t\"./lb\": 2786,\n\t\"./lb.js\": 2786,\n\t\"./lo\": 6183,\n\t\"./lo.js\": 6183,\n\t\"./lt\": 29,\n\t\"./lt.js\": 29,\n\t\"./lv\": 4169,\n\t\"./lv.js\": 4169,\n\t\"./me\": 8577,\n\t\"./me.js\": 8577,\n\t\"./mi\": 8177,\n\t\"./mi.js\": 8177,\n\t\"./mk\": 337,\n\t\"./mk.js\": 337,\n\t\"./ml\": 5260,\n\t\"./ml.js\": 5260,\n\t\"./mn\": 2325,\n\t\"./mn.js\": 2325,\n\t\"./mr\": 4695,\n\t\"./mr.js\": 4695,\n\t\"./ms\": 5334,\n\t\"./ms-my\": 7151,\n\t\"./ms-my.js\": 7151,\n\t\"./ms.js\": 5334,\n\t\"./mt\": 3570,\n\t\"./mt.js\": 3570,\n\t\"./my\": 7963,\n\t\"./my.js\": 7963,\n\t\"./nb\": 8028,\n\t\"./nb.js\": 8028,\n\t\"./ne\": 6638,\n\t\"./ne.js\": 6638,\n\t\"./nl\": 302,\n\t\"./nl-be\": 6782,\n\t\"./nl-be.js\": 6782,\n\t\"./nl.js\": 302,\n\t\"./nn\": 3501,\n\t\"./nn.js\": 3501,\n\t\"./oc-lnc\": 563,\n\t\"./oc-lnc.js\": 563,\n\t\"./pa-in\": 869,\n\t\"./pa-in.js\": 869,\n\t\"./pl\": 5302,\n\t\"./pl.js\": 5302,\n\t\"./pt\": 9687,\n\t\"./pt-br\": 4884,\n\t\"./pt-br.js\": 4884,\n\t\"./pt.js\": 9687,\n\t\"./ro\": 9107,\n\t\"./ro.js\": 9107,\n\t\"./ru\": 3627,\n\t\"./ru.js\": 3627,\n\t\"./sd\": 355,\n\t\"./sd.js\": 355,\n\t\"./se\": 3427,\n\t\"./se.js\": 3427,\n\t\"./si\": 1848,\n\t\"./si.js\": 1848,\n\t\"./sk\": 4590,\n\t\"./sk.js\": 4590,\n\t\"./sl\": 184,\n\t\"./sl.js\": 184,\n\t\"./sq\": 6361,\n\t\"./sq.js\": 6361,\n\t\"./sr\": 8965,\n\t\"./sr-cyrl\": 1287,\n\t\"./sr-cyrl.js\": 1287,\n\t\"./sr.js\": 8965,\n\t\"./ss\": 5456,\n\t\"./ss.js\": 5456,\n\t\"./sv\": 451,\n\t\"./sv.js\": 451,\n\t\"./sw\": 7558,\n\t\"./sw.js\": 7558,\n\t\"./ta\": 2702,\n\t\"./ta.js\": 2702,\n\t\"./te\": 3693,\n\t\"./te.js\": 3693,\n\t\"./tet\": 1243,\n\t\"./tet.js\": 1243,\n\t\"./tg\": 2500,\n\t\"./tg.js\": 2500,\n\t\"./th\": 5768,\n\t\"./th.js\": 5768,\n\t\"./tk\": 7761,\n\t\"./tk.js\": 7761,\n\t\"./tl-ph\": 5780,\n\t\"./tl-ph.js\": 5780,\n\t\"./tlh\": 9590,\n\t\"./tlh.js\": 9590,\n\t\"./tr\": 3807,\n\t\"./tr.js\": 3807,\n\t\"./tzl\": 3857,\n\t\"./tzl.js\": 3857,\n\t\"./tzm\": 654,\n\t\"./tzm-latn\": 8806,\n\t\"./tzm-latn.js\": 8806,\n\t\"./tzm.js\": 654,\n\t\"./ug-cn\": 845,\n\t\"./ug-cn.js\": 845,\n\t\"./uk\": 9232,\n\t\"./uk.js\": 9232,\n\t\"./ur\": 7052,\n\t\"./ur.js\": 7052,\n\t\"./uz\": 7967,\n\t\"./uz-latn\": 2233,\n\t\"./uz-latn.js\": 2233,\n\t\"./uz.js\": 7967,\n\t\"./vi\": 8615,\n\t\"./vi.js\": 8615,\n\t\"./x-pseudo\": 2320,\n\t\"./x-pseudo.js\": 2320,\n\t\"./yo\": 1313,\n\t\"./yo.js\": 1313,\n\t\"./zh-cn\": 4490,\n\t\"./zh-cn.js\": 4490,\n\t\"./zh-hk\": 5910,\n\t\"./zh-hk.js\": 5910,\n\t\"./zh-mo\": 8262,\n\t\"./zh-mo.js\": 8262,\n\t\"./zh-tw\": 4223,\n\t\"./zh-tw.js\": 4223\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 6700;","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { InjectionToken, Injectable, ɵɵinject, Inject, Optional, EventEmitter, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵisListLikeIterable, ɵstringify, Directive, Input, NgModuleRef, ComponentFactoryResolver, Host, ɵRuntimeError, Attribute, ɵisPromise, ɵisSubscribable, Pipe, DEFAULT_CURRENCY_CODE, NgModule, Version, ɵɵdefineInjectable } from '@angular/core';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _DOM = null;\nfunction getDOM() {\n return _DOM;\n}\nfunction setDOM(adapter) {\n _DOM = adapter;\n}\nfunction setRootDomAdapter(adapter) {\n if (!_DOM) {\n _DOM = adapter;\n }\n}\n/* tslint:disable:requireParameterType */\n/**\n * Provides DOM operations in an environment-agnostic way.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\nclass DomAdapter {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A DI Token representing the main rendering context. In a browser this is the DOM Document.\n *\n * Note: Document might not be available in the Application Context when Application and Rendering\n * Contexts are not the same (e.g. when running the application in a Web Worker).\n *\n * @publicApi\n */\nconst DOCUMENT = new InjectionToken('DocumentToken');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be\n * platform-agnostic.\n * This means that we can have different implementation of `PlatformLocation` for the different\n * platforms that Angular supports. For example, `@angular/platform-browser` provides an\n * implementation specific to the browser environment, while `@angular/platform-server` provides\n * one suitable for use with server-side rendering.\n *\n * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}\n * when they need to interact with the DOM APIs like pushState, popState, etc.\n *\n * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly\n * by the {@link Router} in order to navigate between routes. Since all interactions between {@link\n * Router} /\n * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`\n * class, they are all platform-agnostic.\n *\n * @publicApi\n */\nclass PlatformLocation {\n historyGo(relativePosition) {\n throw new Error('Not implemented');\n }\n}\nPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: useBrowserPlatformLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PlatformLocation, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'platform',\n // See #23917\n useFactory: useBrowserPlatformLocation\n }]\n }] });\nfunction useBrowserPlatformLocation() {\n return ɵɵinject(BrowserPlatformLocation);\n}\n/**\n * @description\n * Indicates when a location is initialized.\n *\n * @publicApi\n */\nconst LOCATION_INITIALIZED = new InjectionToken('Location Initialized');\n/**\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n */\nclass BrowserPlatformLocation extends PlatformLocation {\n constructor(_doc) {\n super();\n this._doc = _doc;\n this._init();\n }\n // This is moved to its own method so that `MockPlatformLocationStrategy` can overwrite it\n /** @internal */\n _init() {\n this.location = window.location;\n this._history = window.history;\n }\n getBaseHrefFromDOM() {\n return getDOM().getBaseHref(this._doc);\n }\n onPopState(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('popstate', fn, false);\n return () => window.removeEventListener('popstate', fn);\n }\n onHashChange(fn) {\n const window = getDOM().getGlobalEventTarget(this._doc, 'window');\n window.addEventListener('hashchange', fn, false);\n return () => window.removeEventListener('hashchange', fn);\n }\n get href() {\n return this.location.href;\n }\n get protocol() {\n return this.location.protocol;\n }\n get hostname() {\n return this.location.hostname;\n }\n get port() {\n return this.location.port;\n }\n get pathname() {\n return this.location.pathname;\n }\n get search() {\n return this.location.search;\n }\n get hash() {\n return this.location.hash;\n }\n set pathname(newPath) {\n this.location.pathname = newPath;\n }\n pushState(state, title, url) {\n if (supportsState()) {\n this._history.pushState(state, title, url);\n }\n else {\n this.location.hash = url;\n }\n }\n replaceState(state, title, url) {\n if (supportsState()) {\n this._history.replaceState(state, title, url);\n }\n else {\n this.location.hash = url;\n }\n }\n forward() {\n this._history.forward();\n }\n back() {\n this._history.back();\n }\n historyGo(relativePosition = 0) {\n this._history.go(relativePosition);\n }\n getState() {\n return this._history.state;\n }\n}\nBrowserPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserPlatformLocation, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nBrowserPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: createBrowserPlatformLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: BrowserPlatformLocation, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'platform',\n // See #23917\n useFactory: createBrowserPlatformLocation,\n }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\nfunction supportsState() {\n return !!window.history.pushState;\n}\nfunction createBrowserPlatformLocation() {\n return new BrowserPlatformLocation(ɵɵinject(DOCUMENT));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\nfunction joinWithSlash(start, end) {\n if (start.length == 0) {\n return end;\n }\n if (end.length == 0) {\n return start;\n }\n let slashes = 0;\n if (start.endsWith('/')) {\n slashes++;\n }\n if (end.startsWith('/')) {\n slashes++;\n }\n if (slashes == 2) {\n return start + end.substring(1);\n }\n if (slashes == 1) {\n return start + end;\n }\n return start + '/' + end;\n}\n/**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\nfunction stripTrailingSlash(url) {\n const match = url.match(/#|\\?|$/);\n const pathEndIdx = match && match.index || url.length;\n const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);\n return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);\n}\n/**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\nfunction normalizeQueryParams(params) {\n return params && params[0] !== '?' ? '?' + params : params;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Enables the `Location` service to read route state from the browser's URL.\n * Angular provides two strategies:\n * `HashLocationStrategy` and `PathLocationStrategy`.\n *\n * Applications should use the `Router` or `Location` services to\n * interact with application route state.\n *\n * For instance, `HashLocationStrategy` produces URLs like\n * <code class=\"no-auto-link\">http://example.com#/foo</code>,\n * and `PathLocationStrategy` produces\n * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.\n *\n * See these two classes for more.\n *\n * @publicApi\n */\nclass LocationStrategy {\n historyGo(relativePosition) {\n throw new Error('Not implemented');\n }\n}\nLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: provideLocationStrategy });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LocationStrategy, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root', useFactory: provideLocationStrategy }]\n }] });\nfunction provideLocationStrategy(platformLocation) {\n // See #23917\n const location = ɵɵinject(DOCUMENT).location;\n return new PathLocationStrategy(ɵɵinject(PlatformLocation), location && location.origin || '');\n}\n/**\n * A predefined [DI token](guide/glossary#di-token) for the base href\n * to be used with the `PathLocationStrategy`.\n * The base href is the URL prefix that should be preserved when generating\n * and recognizing URLs.\n *\n * @usageNotes\n *\n * The following example shows how to use this token to configure the root app injector\n * with a base href value, so that the DI framework can supply the dependency anywhere in the app.\n *\n * ```typescript\n * import {Component, NgModule} from '@angular/core';\n * import {APP_BASE_HREF} from '@angular/common';\n *\n * @NgModule({\n * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\n * })\n * class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_BASE_HREF = new InjectionToken('appBaseHref');\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\n * browser's URL.\n *\n * If you're using `PathLocationStrategy`, you must provide a {@link APP_BASE_HREF}\n * or add a `<base href>` element to the document.\n *\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,\n * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.\n *\n * Similarly, if you add `<base href='/my/app/'/>` to the document and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * Note that when using `PathLocationStrategy`, neither the query nor\n * the fragment in the `<base href>` will be preserved, as outlined\n * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/path_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass PathLocationStrategy extends LocationStrategy {\n constructor(_platformLocation, href) {\n super();\n this._platformLocation = _platformLocation;\n this._removeListenerFns = [];\n if (href == null) {\n href = this._platformLocation.getBaseHrefFromDOM();\n }\n if (href == null) {\n throw new Error(`No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.`);\n }\n this._baseHref = href;\n }\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n prepareExternalUrl(internal) {\n return joinWithSlash(this._baseHref, internal);\n }\n path(includeHash = false) {\n const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);\n const hash = this._platformLocation.hash;\n return hash && includeHash ? `${pathname}${hash}` : pathname;\n }\n pushState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.pushState(state, title, externalUrl);\n }\n replaceState(state, title, url, queryParams) {\n const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));\n this._platformLocation.replaceState(state, title, externalUrl);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n historyGo(relativePosition = 0) {\n var _a, _b;\n (_b = (_a = this._platformLocation).historyGo) === null || _b === void 0 ? void 0 : _b.call(_a, relativePosition);\n }\n}\nPathLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nPathLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PathLocationStrategy });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PathLocationStrategy, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n * A {@link LocationStrategy} used to configure the {@link Location} service to\n * represent its state in the\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\n * of the browser's URL.\n *\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\n * `example.com#/foo`.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}\n *\n * @publicApi\n */\nclass HashLocationStrategy extends LocationStrategy {\n constructor(_platformLocation, _baseHref) {\n super();\n this._platformLocation = _platformLocation;\n this._baseHref = '';\n this._removeListenerFns = [];\n if (_baseHref != null) {\n this._baseHref = _baseHref;\n }\n }\n ngOnDestroy() {\n while (this._removeListenerFns.length) {\n this._removeListenerFns.pop()();\n }\n }\n onPopState(fn) {\n this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));\n }\n getBaseHref() {\n return this._baseHref;\n }\n path(includeHash = false) {\n // the hash value is always prefixed with a `#`\n // and if it is empty then it will stay empty\n let path = this._platformLocation.hash;\n if (path == null)\n path = '#';\n return path.length > 0 ? path.substring(1) : path;\n }\n prepareExternalUrl(internal) {\n const url = joinWithSlash(this._baseHref, internal);\n return url.length > 0 ? ('#' + url) : url;\n }\n pushState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.pushState(state, title, url);\n }\n replaceState(state, title, path, queryParams) {\n let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.replaceState(state, title, url);\n }\n forward() {\n this._platformLocation.forward();\n }\n back() {\n this._platformLocation.back();\n }\n historyGo(relativePosition = 0) {\n var _a, _b;\n (_b = (_a = this._platformLocation).historyGo) === null || _b === void 0 ? void 0 : _b.call(_a, relativePosition);\n }\n}\nHashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });\nHashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HashLocationStrategy });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HashLocationStrategy, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: PlatformLocation }, { type: undefined, decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [APP_BASE_HREF]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * A service that applications can use to interact with a browser's URL.\n *\n * Depending on the `LocationStrategy` used, `Location` persists\n * to the URL's path or the URL's hash segment.\n *\n * @usageNotes\n *\n * It's better to use the `Router.navigate()` service to trigger route changes. Use\n * `Location` only if you need to interact with or create normalized URLs outside of\n * routing.\n *\n * `Location` is responsible for normalizing the URL against the application's base href.\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\n * trailing slash:\n * - `/my/app/user/123` is normalized\n * - `my/app/user/123` **is not** normalized\n * - `/my/app/user/123/` **is not** normalized\n *\n * ### Example\n *\n * <code-example path='common/location/ts/path_location_component.ts'\n * region='LocationComponent'></code-example>\n *\n * @publicApi\n */\nclass Location {\n constructor(platformStrategy, platformLocation) {\n /** @internal */\n this._subject = new EventEmitter();\n /** @internal */\n this._urlChangeListeners = [];\n this._platformStrategy = platformStrategy;\n const browserBaseHref = this._platformStrategy.getBaseHref();\n this._platformLocation = platformLocation;\n this._baseHref = stripTrailingSlash(_stripIndexHtml(browserBaseHref));\n this._platformStrategy.onPopState((ev) => {\n this._subject.emit({\n 'url': this.path(true),\n 'pop': true,\n 'state': ev.state,\n 'type': ev.type,\n });\n });\n }\n /**\n * Normalizes the URL path for this location.\n *\n * @param includeHash True to include an anchor fragment in the path.\n *\n * @returns The normalized URL path.\n */\n // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is\n // removed.\n path(includeHash = false) {\n return this.normalize(this._platformStrategy.path(includeHash));\n }\n /**\n * Reports the current state of the location history.\n * @returns The current value of the `history.state` object.\n */\n getState() {\n return this._platformLocation.getState();\n }\n /**\n * Normalizes the given path and compares to the current normalized path.\n *\n * @param path The given URL path.\n * @param query Query parameters.\n *\n * @returns True if the given URL path is equal to the current normalized path, false\n * otherwise.\n */\n isCurrentPathEqualTo(path, query = '') {\n return this.path() == this.normalize(path + normalizeQueryParams(query));\n }\n /**\n * Normalizes a URL path by stripping any trailing slashes.\n *\n * @param url String representing a URL.\n *\n * @returns The normalized URL string.\n */\n normalize(url) {\n return Location.stripTrailingSlash(_stripBaseHref(this._baseHref, _stripIndexHtml(url)));\n }\n /**\n * Normalizes an external URL path.\n * If the given URL doesn't begin with a leading slash (`'/'`), adds one\n * before normalizing. Adds a hash if `HashLocationStrategy` is\n * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\n *\n * @param url String representing a URL.\n *\n * @returns A normalized platform-specific URL.\n */\n prepareExternalUrl(url) {\n if (url && url[0] !== '/') {\n url = '/' + url;\n }\n return this._platformStrategy.prepareExternalUrl(url);\n }\n // TODO: rename this method to pushState\n /**\n * Changes the browser's URL to a normalized version of a given URL, and pushes a\n * new item onto the platform's history.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n *\n */\n go(path, query = '', state = null) {\n this._platformStrategy.pushState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Changes the browser's URL to a normalized version of the given URL, and replaces\n * the top item on the platform's history stack.\n *\n * @param path URL path to normalize.\n * @param query Query parameters.\n * @param state Location history state.\n */\n replaceState(path, query = '', state = null) {\n this._platformStrategy.replaceState(state, '', path, query);\n this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);\n }\n /**\n * Navigates forward in the platform's history.\n */\n forward() {\n this._platformStrategy.forward();\n }\n /**\n * Navigates back in the platform's history.\n */\n back() {\n this._platformStrategy.back();\n }\n /**\n * Navigate to a specific page from session history, identified by its relative position to the\n * current page.\n *\n * @param relativePosition Position of the target page in the history relative to the current\n * page.\n * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`\n * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go\n * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs\n * when `relativePosition` equals 0.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history\n */\n historyGo(relativePosition = 0) {\n var _a, _b;\n (_b = (_a = this._platformStrategy).historyGo) === null || _b === void 0 ? void 0 : _b.call(_a, relativePosition);\n }\n /**\n * Registers a URL change listener. Use to catch updates performed by the Angular\n * framework that are not detectible through \"popstate\" or \"hashchange\" events.\n *\n * @param fn The change handler function, which take a URL and a location history state.\n */\n onUrlChange(fn) {\n this._urlChangeListeners.push(fn);\n if (!this._urlChangeSubscription) {\n this._urlChangeSubscription = this.subscribe(v => {\n this._notifyUrlChangeListeners(v.url, v.state);\n });\n }\n }\n /** @internal */\n _notifyUrlChangeListeners(url = '', state) {\n this._urlChangeListeners.forEach(fn => fn(url, state));\n }\n /**\n * Subscribes to the platform's `popState` events.\n *\n * Note: `Location.go()` does not trigger the `popState` event in the browser. Use\n * `Location.onUrlChange()` to subscribe to URL changes instead.\n *\n * @param value Event that is triggered when the state history changes.\n * @param exception The exception to throw.\n *\n * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)\n *\n * @returns Subscribed events.\n */\n subscribe(onNext, onThrow, onReturn) {\n return this._subject.subscribe({ next: onNext, error: onThrow, complete: onReturn });\n }\n}\n/**\n * Normalizes URL parameters by prepending with `?` if needed.\n *\n * @param params String of URL parameters.\n *\n * @returns The normalized URL parameters string.\n */\nLocation.normalizeQueryParams = normalizeQueryParams;\n/**\n * Joins two parts of a URL with a slash if needed.\n *\n * @param start URL string\n * @param end URL string\n *\n *\n * @returns The joined URL string.\n */\nLocation.joinWithSlash = joinWithSlash;\n/**\n * Removes a trailing slash from a URL string if needed.\n * Looks for the first occurrence of either `#`, `?`, or the end of the\n * line as `/` characters and removes the trailing slash if one exists.\n *\n * @param url URL string.\n *\n * @returns The URL string, modified if needed.\n */\nLocation.stripTrailingSlash = stripTrailingSlash;\nLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }, { token: PlatformLocation }], target: i0.ɵɵFactoryTarget.Injectable });\nLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: Location, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n // See #23917\n useFactory: createLocation,\n }]\n }], ctorParameters: function () { return [{ type: LocationStrategy }, { type: PlatformLocation }]; } });\nfunction createLocation() {\n return new Location(ɵɵinject(LocationStrategy), ɵɵinject(PlatformLocation));\n}\nfunction _stripBaseHref(baseHref, url) {\n return baseHref && url.startsWith(baseHref) ? url.substring(baseHref.length) : url;\n}\nfunction _stripIndexHtml(url) {\n return url.replace(/\\/index.html$/, '');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** @internal */\nconst CURRENCIES_EN = { \"ADP\": [undefined, undefined, 0], \"AFN\": [undefined, \"؋\", 0], \"ALL\": [undefined, undefined, 0], \"AMD\": [undefined, \"֏\", 2], \"AOA\": [undefined, \"Kz\"], \"ARS\": [undefined, \"$\"], \"AUD\": [\"A$\", \"$\"], \"AZN\": [undefined, \"₼\"], \"BAM\": [undefined, \"KM\"], \"BBD\": [undefined, \"$\"], \"BDT\": [undefined, \"৳\"], \"BHD\": [undefined, undefined, 3], \"BIF\": [undefined, undefined, 0], \"BMD\": [undefined, \"$\"], \"BND\": [undefined, \"$\"], \"BOB\": [undefined, \"Bs\"], \"BRL\": [\"R$\"], \"BSD\": [undefined, \"$\"], \"BWP\": [undefined, \"P\"], \"BYN\": [undefined, \"р.\", 2], \"BYR\": [undefined, undefined, 0], \"BZD\": [undefined, \"$\"], \"CAD\": [\"CA$\", \"$\", 2], \"CHF\": [undefined, undefined, 2], \"CLF\": [undefined, undefined, 4], \"CLP\": [undefined, \"$\", 0], \"CNY\": [\"CN¥\", \"¥\"], \"COP\": [undefined, \"$\", 2], \"CRC\": [undefined, \"₡\", 2], \"CUC\": [undefined, \"$\"], \"CUP\": [undefined, \"$\"], \"CZK\": [undefined, \"Kč\", 2], \"DJF\": [undefined, undefined, 0], \"DKK\": [undefined, \"kr\", 2], \"DOP\": [undefined, \"$\"], \"EGP\": [undefined, \"E£\"], \"ESP\": [undefined, \"₧\", 0], \"EUR\": [\"€\"], \"FJD\": [undefined, \"$\"], \"FKP\": [undefined, \"£\"], \"GBP\": [\"£\"], \"GEL\": [undefined, \"₾\"], \"GHS\": [undefined, \"GH₵\"], \"GIP\": [undefined, \"£\"], \"GNF\": [undefined, \"FG\", 0], \"GTQ\": [undefined, \"Q\"], \"GYD\": [undefined, \"$\", 2], \"HKD\": [\"HK$\", \"$\"], \"HNL\": [undefined, \"L\"], \"HRK\": [undefined, \"kn\"], \"HUF\": [undefined, \"Ft\", 2], \"IDR\": [undefined, \"Rp\", 2], \"ILS\": [\"₪\"], \"INR\": [\"₹\"], \"IQD\": [undefined, undefined, 0], \"IRR\": [undefined, undefined, 0], \"ISK\": [undefined, \"kr\", 0], \"ITL\": [undefined, undefined, 0], \"JMD\": [undefined, \"$\"], \"JOD\": [undefined, undefined, 3], \"JPY\": [\"¥\", undefined, 0], \"KHR\": [undefined, \"៛\"], \"KMF\": [undefined, \"CF\", 0], \"KPW\": [undefined, \"₩\", 0], \"KRW\": [\"₩\", undefined, 0], \"KWD\": [undefined, undefined, 3], \"KYD\": [undefined, \"$\"], \"KZT\": [undefined, \"₸\"], \"LAK\": [undefined, \"₭\", 0], \"LBP\": [undefined, \"L£\", 0], \"LKR\": [undefined, \"Rs\"], \"LRD\": [undefined, \"$\"], \"LTL\": [undefined, \"Lt\"], \"LUF\": [undefined, undefined, 0], \"LVL\": [undefined, \"Ls\"], \"LYD\": [undefined, undefined, 3], \"MGA\": [undefined, \"Ar\", 0], \"MGF\": [undefined, undefined, 0], \"MMK\": [undefined, \"K\", 0], \"MNT\": [undefined, \"₮\", 2], \"MRO\": [undefined, undefined, 0], \"MUR\": [undefined, \"Rs\", 2], \"MXN\": [\"MX$\", \"$\"], \"MYR\": [undefined, \"RM\"], \"NAD\": [undefined, \"$\"], \"NGN\": [undefined, \"₦\"], \"NIO\": [undefined, \"C$\"], \"NOK\": [undefined, \"kr\", 2], \"NPR\": [undefined, \"Rs\"], \"NZD\": [\"NZ$\", \"$\"], \"OMR\": [undefined, undefined, 3], \"PHP\": [\"₱\"], \"PKR\": [undefined, \"Rs\", 2], \"PLN\": [undefined, \"zł\"], \"PYG\": [undefined, \"₲\", 0], \"RON\": [undefined, \"lei\"], \"RSD\": [undefined, undefined, 0], \"RUB\": [undefined, \"₽\"], \"RUR\": [undefined, \"р.\"], \"RWF\": [undefined, \"RF\", 0], \"SBD\": [undefined, \"$\"], \"SEK\": [undefined, \"kr\", 2], \"SGD\": [undefined, \"$\"], \"SHP\": [undefined, \"£\"], \"SLL\": [undefined, undefined, 0], \"SOS\": [undefined, undefined, 0], \"SRD\": [undefined, \"$\"], \"SSP\": [undefined, \"£\"], \"STD\": [undefined, undefined, 0], \"STN\": [undefined, \"Db\"], \"SYP\": [undefined, \"£\", 0], \"THB\": [undefined, \"฿\"], \"TMM\": [undefined, undefined, 0], \"TND\": [undefined, undefined, 3], \"TOP\": [undefined, \"T$\"], \"TRL\": [undefined, undefined, 0], \"TRY\": [undefined, \"₺\"], \"TTD\": [undefined, \"$\"], \"TWD\": [\"NT$\", \"$\", 2], \"TZS\": [undefined, undefined, 2], \"UAH\": [undefined, \"₴\"], \"UGX\": [undefined, undefined, 0], \"USD\": [\"$\"], \"UYI\": [undefined, undefined, 0], \"UYU\": [undefined, \"$\"], \"UYW\": [undefined, undefined, 4], \"UZS\": [undefined, undefined, 2], \"VEF\": [undefined, \"Bs\", 2], \"VND\": [\"₫\", undefined, 0], \"VUV\": [undefined, undefined, 0], \"XAF\": [\"FCFA\", undefined, 0], \"XCD\": [\"EC$\", \"$\"], \"XOF\": [\"F CFA\", undefined, 0], \"XPF\": [\"CFPF\", undefined, 0], \"XXX\": [\"¤\"], \"YER\": [undefined, undefined, 0], \"ZAR\": [undefined, \"R\"], \"ZMK\": [undefined, undefined, 0], \"ZMW\": [undefined, \"ZK\"], \"ZWD\": [undefined, undefined, 0] };\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Format styles that can be used to represent numbers.\n * @see `getLocaleNumberFormat()`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nvar NumberFormatStyle;\n(function (NumberFormatStyle) {\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\n NumberFormatStyle[NumberFormatStyle[\"Scientific\"] = 3] = \"Scientific\";\n})(NumberFormatStyle || (NumberFormatStyle = {}));\n/**\n * Plurality cases used for translating plurals to different languages.\n *\n * @see `NgPlural`\n * @see `NgPluralCase`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nvar Plural;\n(function (Plural) {\n Plural[Plural[\"Zero\"] = 0] = \"Zero\";\n Plural[Plural[\"One\"] = 1] = \"One\";\n Plural[Plural[\"Two\"] = 2] = \"Two\";\n Plural[Plural[\"Few\"] = 3] = \"Few\";\n Plural[Plural[\"Many\"] = 4] = \"Many\";\n Plural[Plural[\"Other\"] = 5] = \"Other\";\n})(Plural || (Plural = {}));\n/**\n * Context-dependant translation forms for strings.\n * Typically the standalone version is for the nominative form of the word,\n * and the format version is used for the genitive case.\n * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nvar FormStyle;\n(function (FormStyle) {\n FormStyle[FormStyle[\"Format\"] = 0] = \"Format\";\n FormStyle[FormStyle[\"Standalone\"] = 1] = \"Standalone\";\n})(FormStyle || (FormStyle = {}));\n/**\n * String widths available for translations.\n * The specific character widths are locale-specific.\n * Examples are given for the word \"Sunday\" in English.\n *\n * @publicApi\n */\nvar TranslationWidth;\n(function (TranslationWidth) {\n /** 1 character for `en-US`. For example: 'S' */\n TranslationWidth[TranslationWidth[\"Narrow\"] = 0] = \"Narrow\";\n /** 3 characters for `en-US`. For example: 'Sun' */\n TranslationWidth[TranslationWidth[\"Abbreviated\"] = 1] = \"Abbreviated\";\n /** Full length for `en-US`. For example: \"Sunday\" */\n TranslationWidth[TranslationWidth[\"Wide\"] = 2] = \"Wide\";\n /** 2 characters for `en-US`, For example: \"Su\" */\n TranslationWidth[TranslationWidth[\"Short\"] = 3] = \"Short\";\n})(TranslationWidth || (TranslationWidth = {}));\n/**\n * String widths available for date-time formats.\n * The specific character widths are locale-specific.\n * Examples are given for `en-US`.\n *\n * @see `getLocaleDateFormat()`\n * @see `getLocaleTimeFormat()`\n * @see `getLocaleDateTimeFormat()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n * @publicApi\n */\nvar FormatWidth;\n(function (FormatWidth) {\n /**\n * For `en-US`, 'M/d/yy, h:mm a'`\n * (Example: `6/15/15, 9:03 AM`)\n */\n FormatWidth[FormatWidth[\"Short\"] = 0] = \"Short\";\n /**\n * For `en-US`, `'MMM d, y, h:mm:ss a'`\n * (Example: `Jun 15, 2015, 9:03:01 AM`)\n */\n FormatWidth[FormatWidth[\"Medium\"] = 1] = \"Medium\";\n /**\n * For `en-US`, `'MMMM d, y, h:mm:ss a z'`\n * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)\n */\n FormatWidth[FormatWidth[\"Long\"] = 2] = \"Long\";\n /**\n * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`\n * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)\n */\n FormatWidth[FormatWidth[\"Full\"] = 3] = \"Full\";\n})(FormatWidth || (FormatWidth = {}));\n/**\n * Symbols that can be used to replace placeholders in number patterns.\n * Examples are based on `en-US` values.\n *\n * @see `getLocaleNumberSymbol()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nvar NumberSymbol;\n(function (NumberSymbol) {\n /**\n * Decimal separator.\n * For `en-US`, the dot character.\n * Example: 2,345`.`67\n */\n NumberSymbol[NumberSymbol[\"Decimal\"] = 0] = \"Decimal\";\n /**\n * Grouping separator, typically for thousands.\n * For `en-US`, the comma character.\n * Example: 2`,`345.67\n */\n NumberSymbol[NumberSymbol[\"Group\"] = 1] = \"Group\";\n /**\n * List-item separator.\n * Example: \"one, two, and three\"\n */\n NumberSymbol[NumberSymbol[\"List\"] = 2] = \"List\";\n /**\n * Sign for percentage (out of 100).\n * Example: 23.4%\n */\n NumberSymbol[NumberSymbol[\"PercentSign\"] = 3] = \"PercentSign\";\n /**\n * Sign for positive numbers.\n * Example: +23\n */\n NumberSymbol[NumberSymbol[\"PlusSign\"] = 4] = \"PlusSign\";\n /**\n * Sign for negative numbers.\n * Example: -23\n */\n NumberSymbol[NumberSymbol[\"MinusSign\"] = 5] = \"MinusSign\";\n /**\n * Computer notation for exponential value (n times a power of 10).\n * Example: 1.2E3\n */\n NumberSymbol[NumberSymbol[\"Exponential\"] = 6] = \"Exponential\";\n /**\n * Human-readable format of exponential.\n * Example: 1.2x103\n */\n NumberSymbol[NumberSymbol[\"SuperscriptingExponent\"] = 7] = \"SuperscriptingExponent\";\n /**\n * Sign for permille (out of 1000).\n * Example: 23.4‰\n */\n NumberSymbol[NumberSymbol[\"PerMille\"] = 8] = \"PerMille\";\n /**\n * Infinity, can be used with plus and minus.\n * Example: ∞, +∞, -∞\n */\n NumberSymbol[NumberSymbol[\"Infinity\"] = 9] = \"Infinity\";\n /**\n * Not a number.\n * Example: NaN\n */\n NumberSymbol[NumberSymbol[\"NaN\"] = 10] = \"NaN\";\n /**\n * Symbol used between time units.\n * Example: 10:52\n */\n NumberSymbol[NumberSymbol[\"TimeSeparator\"] = 11] = \"TimeSeparator\";\n /**\n * Decimal separator for currency values (fallback to `Decimal`).\n * Example: $2,345.67\n */\n NumberSymbol[NumberSymbol[\"CurrencyDecimal\"] = 12] = \"CurrencyDecimal\";\n /**\n * Group separator for currency values (fallback to `Group`).\n * Example: $2,345.67\n */\n NumberSymbol[NumberSymbol[\"CurrencyGroup\"] = 13] = \"CurrencyGroup\";\n})(NumberSymbol || (NumberSymbol = {}));\n/**\n * The value for each day of the week, based on the `en-US` locale\n *\n * @publicApi\n */\nvar WeekDay;\n(function (WeekDay) {\n WeekDay[WeekDay[\"Sunday\"] = 0] = \"Sunday\";\n WeekDay[WeekDay[\"Monday\"] = 1] = \"Monday\";\n WeekDay[WeekDay[\"Tuesday\"] = 2] = \"Tuesday\";\n WeekDay[WeekDay[\"Wednesday\"] = 3] = \"Wednesday\";\n WeekDay[WeekDay[\"Thursday\"] = 4] = \"Thursday\";\n WeekDay[WeekDay[\"Friday\"] = 5] = \"Friday\";\n WeekDay[WeekDay[\"Saturday\"] = 6] = \"Saturday\";\n})(WeekDay || (WeekDay = {}));\n/**\n * Retrieves the locale ID from the currently loaded locale.\n * The loaded locale could be, for example, a global one rather than a regional one.\n * @param locale A locale code, such as `fr-FR`.\n * @returns The locale code. For example, `fr`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleId(locale) {\n return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId];\n}\n/**\n * Retrieves day period strings for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const amPmData = [\n data[ɵLocaleDataIndex.DayPeriodsFormat], data[ɵLocaleDataIndex.DayPeriodsStandalone]\n ];\n const amPm = getLastDefinedValue(amPmData, formStyle);\n return getLastDefinedValue(amPm, width);\n}\n/**\n * Retrieves days of the week for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDayNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const daysData = [data[ɵLocaleDataIndex.DaysFormat], data[ɵLocaleDataIndex.DaysStandalone]];\n const days = getLastDefinedValue(daysData, formStyle);\n return getLastDefinedValue(days, width);\n}\n/**\n * Retrieves months of the year for the given locale, using the Gregorian calendar.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns An array of localized name strings.\n * For example, `[January, February, ...]` for `en-US`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleMonthNames(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n const monthsData = [data[ɵLocaleDataIndex.MonthsFormat], data[ɵLocaleDataIndex.MonthsStandalone]];\n const months = getLastDefinedValue(monthsData, formStyle);\n return getLastDefinedValue(months, width);\n}\n/**\n * Retrieves Gregorian-calendar eras for the given locale.\n * @param locale A locale code for the locale format rules to use.\n * @param width The required character width.\n\n * @returns An array of localized era strings.\n * For example, `[AD, BC]` for `en-US`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleEraNames(locale, width) {\n const data = ɵfindLocaleData(locale);\n const erasData = data[ɵLocaleDataIndex.Eras];\n return getLastDefinedValue(erasData, width);\n}\n/**\n * Retrieves the first day of the week for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns A day index number, using the 0-based week-day index for `en-US`\n * (Sunday = 0, Monday = 1, ...).\n * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleFirstDayOfWeek(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.FirstDayOfWeek];\n}\n/**\n * Range of week days that are considered the week-end for the given locale.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The range of day values, `[startDay, endDay]`.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleWeekEndRange(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.WeekendRange];\n}\n/**\n * Retrieves a localized date-value formating string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formating string.\n * @see `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width);\n}\n/**\n * Retrieves a localized time-value formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n\n * @publicApi\n */\nfunction getLocaleTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width);\n}\n/**\n * Retrieves a localized date-time formatting string.\n *\n * @param locale A locale code for the locale format rules to use.\n * @param width The format type.\n * @returns The localized formatting string.\n * @see `FormatWidth`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleDateTimeFormat(locale, width) {\n const data = ɵfindLocaleData(locale);\n const dateTimeFormatData = data[ɵLocaleDataIndex.DateTimeFormat];\n return getLastDefinedValue(dateTimeFormatData, width);\n}\n/**\n * Retrieves a localized number symbol that can be used to replace placeholders in number formats.\n * @param locale The locale code.\n * @param symbol The symbol to localize.\n * @returns The character for the localized symbol.\n * @see `NumberSymbol`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberSymbol(locale, symbol) {\n const data = ɵfindLocaleData(locale);\n const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];\n if (typeof res === 'undefined') {\n if (symbol === NumberSymbol.CurrencyDecimal) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];\n }\n else if (symbol === NumberSymbol.CurrencyGroup) {\n return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];\n }\n }\n return res;\n}\n/**\n * Retrieves a number format for a given locale.\n *\n * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`\n * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the\n * grouping separator for your language is an apostrophe, and the decimal separator is a comma.\n *\n * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders\n * that stand for the decimal separator, and so on, and are NOT real characters.\n * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in\n * your language the decimal point is written with a comma. The symbols should be replaced by the\n * local equivalents, using the appropriate `NumberSymbol` for your language.\n *\n * Here are the special characters used in number patterns:\n *\n * | Symbol | Meaning |\n * |--------|---------|\n * | . | Replaced automatically by the character used for the decimal point. |\n * | , | Replaced by the \"grouping\" (thousands) separator. |\n * | 0 | Replaced by a digit (or zero if there aren't enough digits). |\n * | # | Replaced by a digit (or nothing if there aren't enough). |\n * | ¤ | Replaced by a currency symbol, such as $ or USD. |\n * | % | Marks a percent format. The % symbol may change position, but must be retained. |\n * | E | Marks a scientific format. The E symbol may change position, but must be retained. |\n * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |\n *\n * @param locale A locale code for the locale format rules to use.\n * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)\n * @returns The localized format string.\n * @see `NumberFormatStyle`\n * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleNumberFormat(locale, type) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.NumberFormats][type];\n}\n/**\n * Retrieves the symbol used to represent the currency for the main country\n * corresponding to a given locale. For example, '$' for `en-US`.\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The localized symbol character,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencySymbol(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencySymbol] || null;\n}\n/**\n * Retrieves the name of the currency for the main country corresponding\n * to a given locale. For example, 'US Dollar' for `en-US`.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency name,\n * or `null` if the main country cannot be determined.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleCurrencyName(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.CurrencyName] || null;\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n * @publicApi\n */\nfunction getLocaleCurrencyCode(locale) {\n return ɵgetLocaleCurrencyCode(locale);\n}\n/**\n * Retrieves the currency values for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The currency values.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction getLocaleCurrencies(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Currencies];\n}\n/**\n * @alias core/ɵgetLocalePluralCase\n * @publicApi\n */\nconst getLocalePluralCase = ɵgetLocalePluralCase;\nfunction checkFullData(data) {\n if (!data[ɵLocaleDataIndex.ExtraData]) {\n throw new Error(`Missing extra locale data for the locale \"${data[ɵLocaleDataIndex\n .LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);\n }\n}\n/**\n * Retrieves locale-specific rules used to determine which day period to use\n * when more than one period is defined for a locale.\n *\n * There is a rule for each defined day period. The\n * first rule is applied to the first day period and so on.\n * Fall back to AM/PM when no rules are available.\n *\n * A rule can specify a period as time range, or as a single time value.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @returns The rules for the locale, a single time value or array of *from-time, to-time*,\n * or null if no periods are available.\n *\n * @see `getLocaleExtraDayPeriods()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriodRules(locale) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const rules = data[ɵLocaleDataIndex.ExtraData][2 /* ExtraDayPeriodsRules */] || [];\n return rules.map((rule) => {\n if (typeof rule === 'string') {\n return extractTime(rule);\n }\n return [extractTime(rule[0]), extractTime(rule[1])];\n });\n}\n/**\n * Retrieves locale-specific day periods, which indicate roughly how a day is broken up\n * in different languages.\n * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.\n *\n * This functionality is only available when you have loaded the full locale data.\n * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).\n *\n * @param locale A locale code for the locale format rules to use.\n * @param formStyle The required grammatical form.\n * @param width The required character width.\n * @returns The translated day-period strings.\n * @see `getLocaleExtraDayPeriodRules()`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLocaleExtraDayPeriods(locale, formStyle, width) {\n const data = ɵfindLocaleData(locale);\n checkFullData(data);\n const dayPeriodsData = [\n data[ɵLocaleDataIndex.ExtraData][0 /* ExtraDayPeriodFormats */],\n data[ɵLocaleDataIndex.ExtraData][1 /* ExtraDayPeriodStandalone */]\n ];\n const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];\n return getLastDefinedValue(dayPeriods, width) || [];\n}\n/**\n * Retrieves the writing direction of a specified locale\n * @param locale A locale code for the locale format rules to use.\n * @publicApi\n * @returns 'rtl' or 'ltr'\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction getLocaleDirection(locale) {\n const data = ɵfindLocaleData(locale);\n return data[ɵLocaleDataIndex.Directionality];\n}\n/**\n * Retrieves the first value that is defined in an array, going backwards from an index position.\n *\n * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)\n * add the first value to the locale data arrays, and add other values only if they are different.\n *\n * @param data The data array to retrieve from.\n * @param index A 0-based index into the array to start from.\n * @returns The value immediately before the given index position.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getLastDefinedValue(data, index) {\n for (let i = index; i > -1; i--) {\n if (typeof data[i] !== 'undefined') {\n return data[i];\n }\n }\n throw new Error('Locale data API: locale data undefined');\n}\n/**\n * Extracts the hours and minutes from a string like \"15:45\"\n */\nfunction extractTime(time) {\n const [h, m] = time.split(':');\n return { hours: +h, minutes: +m };\n}\n/**\n * Retrieves the currency symbol for a given currency code.\n *\n * For example, for the default `en-US` locale, the code `USD` can\n * be represented by the narrow symbol `$` or the wide symbol `US$`.\n *\n * @param code The currency code.\n * @param format The format, `wide` or `narrow`.\n * @param locale A locale code for the locale format rules to use.\n *\n * @returns The symbol, or the currency code if no symbol is available.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getCurrencySymbol(code, format, locale = 'en') {\n const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];\n const symbolNarrow = currency[1 /* SymbolNarrow */];\n if (format === 'narrow' && typeof symbolNarrow === 'string') {\n return symbolNarrow;\n }\n return currency[0 /* Symbol */] || code;\n}\n// Most currencies have cents, that's why the default is 2\nconst DEFAULT_NB_OF_CURRENCY_DIGITS = 2;\n/**\n * Reports the number of decimal digits for a given currency.\n * The value depends upon the presence of cents in that particular currency.\n *\n * @param code The currency code.\n * @returns The number of decimal digits, typically 0 or 2.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction getNumberOfCurrencyDigits(code) {\n let digits;\n const currency = CURRENCIES_EN[code];\n if (currency) {\n digits = currency[2 /* NbOfDigits */];\n }\n return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ISO8601_DATE_REGEX = /^(\\d{4})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/;\n// 1 2 3 4 5 6 7 8 9 10 11\nconst NAMED_FORMATS = {};\nconst DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)/;\nvar ZoneWidth;\n(function (ZoneWidth) {\n ZoneWidth[ZoneWidth[\"Short\"] = 0] = \"Short\";\n ZoneWidth[ZoneWidth[\"ShortGMT\"] = 1] = \"ShortGMT\";\n ZoneWidth[ZoneWidth[\"Long\"] = 2] = \"Long\";\n ZoneWidth[ZoneWidth[\"Extended\"] = 3] = \"Extended\";\n})(ZoneWidth || (ZoneWidth = {}));\nvar DateType;\n(function (DateType) {\n DateType[DateType[\"FullYear\"] = 0] = \"FullYear\";\n DateType[DateType[\"Month\"] = 1] = \"Month\";\n DateType[DateType[\"Date\"] = 2] = \"Date\";\n DateType[DateType[\"Hours\"] = 3] = \"Hours\";\n DateType[DateType[\"Minutes\"] = 4] = \"Minutes\";\n DateType[DateType[\"Seconds\"] = 5] = \"Seconds\";\n DateType[DateType[\"FractionalSeconds\"] = 6] = \"FractionalSeconds\";\n DateType[DateType[\"Day\"] = 7] = \"Day\";\n})(DateType || (DateType = {}));\nvar TranslationType;\n(function (TranslationType) {\n TranslationType[TranslationType[\"DayPeriods\"] = 0] = \"DayPeriods\";\n TranslationType[TranslationType[\"Days\"] = 1] = \"Days\";\n TranslationType[TranslationType[\"Months\"] = 2] = \"Months\";\n TranslationType[TranslationType[\"Eras\"] = 3] = \"Eras\";\n})(TranslationType || (TranslationType = {}));\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date according to locale rules.\n *\n * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)\n * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).\n * @param format The date-time components to include. See `DatePipe` for details.\n * @param locale A locale code for the locale format rules to use.\n * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),\n * or a standard UTC/GMT or continental US time zone abbreviation.\n * If not specified, uses host system settings.\n *\n * @returns The formatted date string.\n *\n * @see `DatePipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatDate(value, format, locale, timezone) {\n let date = toDate(value);\n const namedFormat = getNamedFormat(locale, format);\n format = namedFormat || format;\n let parts = [];\n let match;\n while (format) {\n match = DATE_FORMATS_SPLIT.exec(format);\n if (match) {\n parts = parts.concat(match.slice(1));\n const part = parts.pop();\n if (!part) {\n break;\n }\n format = part;\n }\n else {\n parts.push(format);\n break;\n }\n }\n let dateTimezoneOffset = date.getTimezoneOffset();\n if (timezone) {\n dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n date = convertTimezoneToLocal(date, timezone, true);\n }\n let text = '';\n parts.forEach(value => {\n const dateFormatter = getDateFormatter(value);\n text += dateFormatter ?\n dateFormatter(date, locale, dateTimezoneOffset) :\n value === '\\'\\'' ? '\\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');\n });\n return text;\n}\n/**\n * Create a new Date object with the given date value, and the time set to midnight.\n *\n * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.\n * See: https://github.com/angular/angular/issues/40377\n *\n * Note that this function returns a Date object whose time is midnight in the current locale's\n * timezone. In the future we might want to change this to be midnight in UTC, but this would be a\n * considerable breaking change.\n */\nfunction createDate(year, month, date) {\n // The `newDate` is set to midnight (UTC) on January 1st 1970.\n // - In PST this will be December 31st 1969 at 4pm.\n // - In GMT this will be January 1st 1970 at 1am.\n // Note that they even have different years, dates and months!\n const newDate = new Date(0);\n // `setFullYear()` allows years like 0001 to be set correctly. This function does not\n // change the internal time of the date.\n // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).\n // - In PST this will now be September 20, 2019 at 4pm\n // - In GMT this will now be September 20, 2019 at 1am\n newDate.setFullYear(year, month, date);\n // We want the final date to be at local midnight, so we reset the time.\n // - In PST this will now be September 20, 2019 at 12am\n // - In GMT this will now be September 20, 2019 at 12am\n newDate.setHours(0, 0, 0);\n return newDate;\n}\nfunction getNamedFormat(locale, format) {\n const localeId = getLocaleId(locale);\n NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};\n if (NAMED_FORMATS[localeId][format]) {\n return NAMED_FORMATS[localeId][format];\n }\n let formatValue = '';\n switch (format) {\n case 'shortDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Short);\n break;\n case 'mediumDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);\n break;\n case 'longDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Long);\n break;\n case 'fullDate':\n formatValue = getLocaleDateFormat(locale, FormatWidth.Full);\n break;\n case 'shortTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);\n break;\n case 'mediumTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);\n break;\n case 'longTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);\n break;\n case 'fullTime':\n formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);\n break;\n case 'short':\n const shortTime = getNamedFormat(locale, 'shortTime');\n const shortDate = getNamedFormat(locale, 'shortDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);\n break;\n case 'medium':\n const mediumTime = getNamedFormat(locale, 'mediumTime');\n const mediumDate = getNamedFormat(locale, 'mediumDate');\n formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);\n break;\n case 'long':\n const longTime = getNamedFormat(locale, 'longTime');\n const longDate = getNamedFormat(locale, 'longDate');\n formatValue =\n formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);\n break;\n case 'full':\n const fullTime = getNamedFormat(locale, 'fullTime');\n const fullDate = getNamedFormat(locale, 'fullDate');\n formatValue =\n formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);\n break;\n }\n if (formatValue) {\n NAMED_FORMATS[localeId][format] = formatValue;\n }\n return formatValue;\n}\nfunction formatDateTime(str, opt_values) {\n if (opt_values) {\n str = str.replace(/\\{([^}]+)}/g, function (match, key) {\n return (opt_values != null && key in opt_values) ? opt_values[key] : match;\n });\n }\n return str;\n}\nfunction padNumber(num, digits, minusSign = '-', trim, negWrap) {\n let neg = '';\n if (num < 0 || (negWrap && num <= 0)) {\n if (negWrap) {\n num = -num + 1;\n }\n else {\n num = -num;\n neg = minusSign;\n }\n }\n let strNum = String(num);\n while (strNum.length < digits) {\n strNum = '0' + strNum;\n }\n if (trim) {\n strNum = strNum.substr(strNum.length - digits);\n }\n return neg + strNum;\n}\nfunction formatFractionalSeconds(milliseconds, digits) {\n const strMs = padNumber(milliseconds, 3);\n return strMs.substr(0, digits);\n}\n/**\n * Returns a date formatter that transforms a date into its locale digit representation\n */\nfunction dateGetter(name, size, offset = 0, trim = false, negWrap = false) {\n return function (date, locale) {\n let part = getDatePart(name, date);\n if (offset > 0 || part > -offset) {\n part += offset;\n }\n if (name === DateType.Hours) {\n if (part === 0 && offset === -12) {\n part = 12;\n }\n }\n else if (name === DateType.FractionalSeconds) {\n return formatFractionalSeconds(part, size);\n }\n const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n return padNumber(part, size, localeMinus, trim, negWrap);\n };\n}\nfunction getDatePart(part, date) {\n switch (part) {\n case DateType.FullYear:\n return date.getFullYear();\n case DateType.Month:\n return date.getMonth();\n case DateType.Date:\n return date.getDate();\n case DateType.Hours:\n return date.getHours();\n case DateType.Minutes:\n return date.getMinutes();\n case DateType.Seconds:\n return date.getSeconds();\n case DateType.FractionalSeconds:\n return date.getMilliseconds();\n case DateType.Day:\n return date.getDay();\n default:\n throw new Error(`Unknown DateType value \"${part}\".`);\n }\n}\n/**\n * Returns a date formatter that transforms a date into its locale string representation\n */\nfunction dateStrGetter(name, width, form = FormStyle.Format, extended = false) {\n return function (date, locale) {\n return getDateTranslation(date, locale, name, width, form, extended);\n };\n}\n/**\n * Returns the locale translation of a date for a given form, type and width\n */\nfunction getDateTranslation(date, locale, name, width, form, extended) {\n switch (name) {\n case TranslationType.Months:\n return getLocaleMonthNames(locale, form, width)[date.getMonth()];\n case TranslationType.Days:\n return getLocaleDayNames(locale, form, width)[date.getDay()];\n case TranslationType.DayPeriods:\n const currentHours = date.getHours();\n const currentMinutes = date.getMinutes();\n if (extended) {\n const rules = getLocaleExtraDayPeriodRules(locale);\n const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);\n const index = rules.findIndex(rule => {\n if (Array.isArray(rule)) {\n // morning, afternoon, evening, night\n const [from, to] = rule;\n const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;\n const beforeTo = (currentHours < to.hours ||\n (currentHours === to.hours && currentMinutes < to.minutes));\n // We must account for normal rules that span a period during the day (e.g. 6am-9am)\n // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.\n // 10pm - 5am) where `from` is greater (later!) than `to`.\n //\n // In the first case the current time must be BOTH after `from` AND before `to`\n // (e.g. 8am is after 6am AND before 10am).\n //\n // In the second case the current time must be EITHER after `from` OR before `to`\n // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is\n // after 10pm).\n if (from.hours < to.hours) {\n if (afterFrom && beforeTo) {\n return true;\n }\n }\n else if (afterFrom || beforeTo) {\n return true;\n }\n }\n else { // noon or midnight\n if (rule.hours === currentHours && rule.minutes === currentMinutes) {\n return true;\n }\n }\n return false;\n });\n if (index !== -1) {\n return dayPeriods[index];\n }\n }\n // if no rules for the day periods, we use am/pm by default\n return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];\n case TranslationType.Eras:\n return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];\n default:\n // This default case is not needed by TypeScript compiler, as the switch is exhaustive.\n // However Closure Compiler does not understand that and reports an error in typed mode.\n // The `throw new Error` below works around the problem, and the unexpected: never variable\n // makes sure tsc still checks this code is unreachable.\n const unexpected = name;\n throw new Error(`unexpected translation type ${unexpected}`);\n }\n}\n/**\n * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or\n * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,\n * extended = +04:30)\n */\nfunction timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}\nconst JANUARY = 0;\nconst THURSDAY = 4;\nfunction getFirstThursdayOfYear(year) {\n const firstDayOfYear = createDate(year, JANUARY, 1).getDay();\n return createDate(year, 0, 1 + ((firstDayOfYear <= THURSDAY) ? THURSDAY : THURSDAY + 7) - firstDayOfYear);\n}\nfunction getThursdayThisWeek(datetime) {\n return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + (THURSDAY - datetime.getDay()));\n}\nfunction weekGetter(size, monthBased = false) {\n return function (date, locale) {\n let result;\n if (monthBased) {\n const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;\n const today = date.getDate();\n result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);\n }\n else {\n const thisThurs = getThursdayThisWeek(date);\n // Some days of a year are part of next year according to ISO 8601.\n // Compute the firstThurs from the year of this week's Thursday\n const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());\n const diff = thisThurs.getTime() - firstThurs.getTime();\n result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week\n }\n return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n };\n}\n/**\n * Returns a date formatter that provides the week-numbering year for the input date.\n */\nfunction weekNumberingYearGetter(size, trim = false) {\n return function (date, locale) {\n const thisThurs = getThursdayThisWeek(date);\n const weekNumberingYear = thisThurs.getFullYear();\n return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);\n };\n}\nconst DATE_FORMATS = {};\n// Based on CLDR formats:\n// See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n// See also explanations: http://cldr.unicode.org/translation/date-time\n// TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x\nfunction getDateFormatter(format) {\n if (DATE_FORMATS[format]) {\n return DATE_FORMATS[format];\n }\n let formatter;\n switch (format) {\n // Era name (AD/BC)\n case 'G':\n case 'GG':\n case 'GGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);\n break;\n case 'GGGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);\n break;\n case 'GGGGG':\n formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);\n break;\n // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'y':\n formatter = dateGetter(DateType.FullYear, 1, 0, false, true);\n break;\n // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yy':\n formatter = dateGetter(DateType.FullYear, 2, 0, true, true);\n break;\n // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)\n case 'yyy':\n formatter = dateGetter(DateType.FullYear, 3, 0, false, true);\n break;\n // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'yyyy':\n formatter = dateGetter(DateType.FullYear, 4, 0, false, true);\n break;\n // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)\n case 'Y':\n formatter = weekNumberingYearGetter(1);\n break;\n // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD\n // 2010 => 10)\n case 'YY':\n formatter = weekNumberingYearGetter(2, true);\n break;\n // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD\n // 2010 => 2010)\n case 'YYY':\n formatter = weekNumberingYearGetter(3);\n break;\n // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)\n case 'YYYY':\n formatter = weekNumberingYearGetter(4);\n break;\n // Month of the year (1-12), numeric\n case 'M':\n case 'L':\n formatter = dateGetter(DateType.Month, 1, 1);\n break;\n case 'MM':\n case 'LL':\n formatter = dateGetter(DateType.Month, 2, 1);\n break;\n // Month of the year (January, ...), string, format\n case 'MMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);\n break;\n case 'MMMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);\n break;\n case 'MMMMM':\n formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);\n break;\n // Month of the year (January, ...), string, standalone\n case 'LLL':\n formatter =\n dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'LLLL':\n formatter =\n dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'LLLLL':\n formatter =\n dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n // Week of the year (1, ... 52)\n case 'w':\n formatter = weekGetter(1);\n break;\n case 'ww':\n formatter = weekGetter(2);\n break;\n // Week of the month (1, ...)\n case 'W':\n formatter = weekGetter(1, true);\n break;\n // Day of the month (1-31)\n case 'd':\n formatter = dateGetter(DateType.Date, 1);\n break;\n case 'dd':\n formatter = dateGetter(DateType.Date, 2);\n break;\n // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)\n case 'c':\n case 'cc':\n formatter = dateGetter(DateType.Day, 1);\n break;\n case 'ccc':\n formatter =\n dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);\n break;\n case 'cccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);\n break;\n case 'ccccc':\n formatter =\n dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);\n break;\n case 'cccccc':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);\n break;\n // Day of the Week\n case 'E':\n case 'EE':\n case 'EEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);\n break;\n case 'EEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);\n break;\n case 'EEEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);\n break;\n case 'EEEEEE':\n formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);\n break;\n // Generic period of the day (am-pm)\n case 'a':\n case 'aa':\n case 'aaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);\n break;\n case 'aaaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);\n break;\n case 'aaaaa':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);\n break;\n // Extended period of the day (midnight, at night, ...), standalone\n case 'b':\n case 'bb':\n case 'bbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);\n break;\n case 'bbbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);\n break;\n case 'bbbbb':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);\n break;\n // Extended period of the day (midnight, night, ...), standalone\n case 'B':\n case 'BB':\n case 'BBB':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);\n break;\n case 'BBBB':\n formatter =\n dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);\n break;\n case 'BBBBB':\n formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);\n break;\n // Hour in AM/PM, (1-12)\n case 'h':\n formatter = dateGetter(DateType.Hours, 1, -12);\n break;\n case 'hh':\n formatter = dateGetter(DateType.Hours, 2, -12);\n break;\n // Hour of the day (0-23)\n case 'H':\n formatter = dateGetter(DateType.Hours, 1);\n break;\n // Hour in day, padded (00-23)\n case 'HH':\n formatter = dateGetter(DateType.Hours, 2);\n break;\n // Minute of the hour (0-59)\n case 'm':\n formatter = dateGetter(DateType.Minutes, 1);\n break;\n case 'mm':\n formatter = dateGetter(DateType.Minutes, 2);\n break;\n // Second of the minute (0-59)\n case 's':\n formatter = dateGetter(DateType.Seconds, 1);\n break;\n case 'ss':\n formatter = dateGetter(DateType.Seconds, 2);\n break;\n // Fractional second\n case 'S':\n formatter = dateGetter(DateType.FractionalSeconds, 1);\n break;\n case 'SS':\n formatter = dateGetter(DateType.FractionalSeconds, 2);\n break;\n case 'SSS':\n formatter = dateGetter(DateType.FractionalSeconds, 3);\n break;\n // Timezone ISO8601 short format (-0430)\n case 'Z':\n case 'ZZ':\n case 'ZZZ':\n formatter = timeZoneGetter(ZoneWidth.Short);\n break;\n // Timezone ISO8601 extended format (-04:30)\n case 'ZZZZZ':\n formatter = timeZoneGetter(ZoneWidth.Extended);\n break;\n // Timezone GMT short format (GMT+4)\n case 'O':\n case 'OO':\n case 'OOO':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'z':\n case 'zz':\n case 'zzz':\n formatter = timeZoneGetter(ZoneWidth.ShortGMT);\n break;\n // Timezone GMT long format (GMT+0430)\n case 'OOOO':\n case 'ZZZZ':\n // Should be location, but fallback to format O instead because we don't have the data yet\n case 'zzzz':\n formatter = timeZoneGetter(ZoneWidth.Long);\n break;\n default:\n return null;\n }\n DATE_FORMATS[format] = formatter;\n return formatter;\n}\nfunction timezoneToOffset(timezone, fallback) {\n // Support: IE 11 only, Edge 13-15+\n // IE/Edge do not \"understand\" colon (`:`) in timezone\n timezone = timezone.replace(/:/g, '');\n const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;\n return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;\n}\nfunction addDateMinutes(date, minutes) {\n date = new Date(date.getTime());\n date.setMinutes(date.getMinutes() + minutes);\n return date;\n}\nfunction convertTimezoneToLocal(date, timezone, reverse) {\n const reverseValue = reverse ? -1 : 1;\n const dateTimezoneOffset = date.getTimezoneOffset();\n const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);\n return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));\n}\n/**\n * Converts a value to date.\n *\n * Supported input formats:\n * - `Date`\n * - number: timestamp\n * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by\n * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).\n * Note: ISO strings without time return a date without timeoffset.\n *\n * Throws if unable to convert to a date.\n */\nfunction toDate(value) {\n if (isDate(value)) {\n return value;\n }\n if (typeof value === 'number' && !isNaN(value)) {\n return new Date(value);\n }\n if (typeof value === 'string') {\n value = value.trim();\n if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {\n /* For ISO Strings without time the day, month and year must be extracted from the ISO String\n before Date creation to avoid time offset and errors in the new Date.\n If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new\n date, some browsers (e.g. IE 9) will throw an invalid Date error.\n If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset\n is applied.\n Note: ISO months are 0 for January, 1 for February, ... */\n const [y, m = 1, d = 1] = value.split('-').map((val) => +val);\n return createDate(y, m - 1, d);\n }\n const parsedNb = parseFloat(value);\n // any string that only contains numbers, like \"1234\" but not like \"1234hello\"\n if (!isNaN(value - parsedNb)) {\n return new Date(parsedNb);\n }\n let match;\n if (match = value.match(ISO8601_DATE_REGEX)) {\n return isoStringToDate(match);\n }\n }\n const date = new Date(value);\n if (!isDate(date)) {\n throw new Error(`Unable to convert \"${value}\" into a date`);\n }\n return date;\n}\n/**\n * Converts a date in ISO8601 to a Date.\n * Used instead of `Date.parse` because of browser discrepancies.\n */\nfunction isoStringToDate(match) {\n const date = new Date(0);\n let tzHour = 0;\n let tzMin = 0;\n // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"\n const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;\n const timeSetter = match[8] ? date.setUTCHours : date.setHours;\n // if there is a timezone defined like \"+01:00\" or \"+0100\"\n if (match[9]) {\n tzHour = Number(match[9] + match[10]);\n tzMin = Number(match[9] + match[11]);\n }\n dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));\n const h = Number(match[4] || 0) - tzHour;\n const m = Number(match[5] || 0) - tzMin;\n const s = Number(match[6] || 0);\n // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)\n // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`\n // becomes `999ms`.\n const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);\n timeSetter.call(date, h, m, s, ms);\n return date;\n}\nfunction isDate(value) {\n return value instanceof Date && !isNaN(value.valueOf());\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/;\nconst MAX_DIGITS = 22;\nconst DECIMAL_SEP = '.';\nconst ZERO_CHAR = '0';\nconst PATTERN_SEP = ';';\nconst GROUP_SEP = ',';\nconst DIGIT_CHAR = '#';\nconst CURRENCY_CHAR = '¤';\nconst PERCENT_CHAR = '%';\n/**\n * Transforms a number to a locale string based on a style and a format.\n */\nfunction formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {\n let formattedText = '';\n let isZero = false;\n if (!isFinite(value)) {\n formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);\n }\n else {\n let parsedNumber = parseNumber(value);\n if (isPercent) {\n parsedNumber = toPercent(parsedNumber);\n }\n let minInt = pattern.minInt;\n let minFraction = pattern.minFrac;\n let maxFraction = pattern.maxFrac;\n if (digitsInfo) {\n const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);\n if (parts === null) {\n throw new Error(`${digitsInfo} is not a valid digit info`);\n }\n const minIntPart = parts[1];\n const minFractionPart = parts[3];\n const maxFractionPart = parts[5];\n if (minIntPart != null) {\n minInt = parseIntAutoRadix(minIntPart);\n }\n if (minFractionPart != null) {\n minFraction = parseIntAutoRadix(minFractionPart);\n }\n if (maxFractionPart != null) {\n maxFraction = parseIntAutoRadix(maxFractionPart);\n }\n else if (minFractionPart != null && minFraction > maxFraction) {\n maxFraction = minFraction;\n }\n }\n roundNumber(parsedNumber, minFraction, maxFraction);\n let digits = parsedNumber.digits;\n let integerLen = parsedNumber.integerLen;\n const exponent = parsedNumber.exponent;\n let decimals = [];\n isZero = digits.every(d => !d);\n // pad zeros for small numbers\n for (; integerLen < minInt; integerLen++) {\n digits.unshift(0);\n }\n // pad zeros for small numbers\n for (; integerLen < 0; integerLen++) {\n digits.unshift(0);\n }\n // extract decimals digits\n if (integerLen > 0) {\n decimals = digits.splice(integerLen, digits.length);\n }\n else {\n decimals = digits;\n digits = [0];\n }\n // format the integer digits with grouping separators\n const groups = [];\n if (digits.length >= pattern.lgSize) {\n groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));\n }\n while (digits.length > pattern.gSize) {\n groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));\n }\n if (digits.length) {\n groups.unshift(digits.join(''));\n }\n formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));\n // append the decimal digits\n if (decimals.length) {\n formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');\n }\n if (exponent) {\n formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;\n }\n }\n if (value < 0 && !isZero) {\n formattedText = pattern.negPre + formattedText + pattern.negSuf;\n }\n else {\n formattedText = pattern.posPre + formattedText + pattern.posSuf;\n }\n return formattedText;\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as currency using locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param currency A string containing the currency symbol or its name,\n * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation\n * of the function.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)\n * currency code, such as `USD` for the US dollar and `EUR` for the euro.\n * Used to determine the number of digits in the decimal part.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted currency value.\n *\n * @see `formatNumber()`\n * @see `DecimalPipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatCurrency(value, locale, currency, currencyCode, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);\n pattern.maxFrac = pattern.minFrac;\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);\n return res\n .replace(CURRENCY_CHAR, currency)\n // if we have 2 time the currency character, the second one is ignored\n .replace(CURRENCY_CHAR, '')\n // If there is a spacing between currency character and the value and\n // the currency character is supressed by passing an empty string, the\n // spacing character would remain as part of the string. Then we\n // should remove it.\n .trim();\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as a percentage according to locale rules.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted percentage value.\n *\n * @see `formatNumber()`\n * @see `DecimalPipe`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n * @publicApi\n *\n */\nfunction formatPercent(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);\n return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a number as text, with group sizing, separator, and other\n * parameters based on the locale.\n *\n * @param value The number to format.\n * @param locale A locale code for the locale format rules to use.\n * @param digitsInfo Decimal representation options, specified by a string in the following format:\n * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.\n *\n * @returns The formatted text string.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n *\n * @publicApi\n */\nfunction formatNumber(value, locale, digitsInfo) {\n const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);\n const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));\n return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);\n}\nfunction parseNumberFormat(format, minusSign = '-') {\n const p = {\n minInt: 1,\n minFrac: 0,\n maxFrac: 0,\n posPre: '',\n posSuf: '',\n negPre: '',\n negSuf: '',\n gSize: 0,\n lgSize: 0\n };\n const patternParts = format.split(PATTERN_SEP);\n const positive = patternParts[0];\n const negative = patternParts[1];\n const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ?\n positive.split(DECIMAL_SEP) :\n [\n positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),\n positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)\n ], integer = positiveParts[0], fraction = positiveParts[1] || '';\n p.posPre = integer.substr(0, integer.indexOf(DIGIT_CHAR));\n for (let i = 0; i < fraction.length; i++) {\n const ch = fraction.charAt(i);\n if (ch === ZERO_CHAR) {\n p.minFrac = p.maxFrac = i + 1;\n }\n else if (ch === DIGIT_CHAR) {\n p.maxFrac = i + 1;\n }\n else {\n p.posSuf += ch;\n }\n }\n const groups = integer.split(GROUP_SEP);\n p.gSize = groups[1] ? groups[1].length : 0;\n p.lgSize = (groups[2] || groups[1]) ? (groups[2] || groups[1]).length : 0;\n if (negative) {\n const trunkLen = positive.length - p.posPre.length - p.posSuf.length, pos = negative.indexOf(DIGIT_CHAR);\n p.negPre = negative.substr(0, pos).replace(/'/g, '');\n p.negSuf = negative.substr(pos + trunkLen).replace(/'/g, '');\n }\n else {\n p.negPre = minusSign + p.posPre;\n p.negSuf = p.posSuf;\n }\n return p;\n}\n// Transforms a parsed number into a percentage by multiplying it by 100\nfunction toPercent(parsedNumber) {\n // if the number is 0, don't do anything\n if (parsedNumber.digits[0] === 0) {\n return parsedNumber;\n }\n // Getting the current number of decimals\n const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;\n if (parsedNumber.exponent) {\n parsedNumber.exponent += 2;\n }\n else {\n if (fractionLen === 0) {\n parsedNumber.digits.push(0, 0);\n }\n else if (fractionLen === 1) {\n parsedNumber.digits.push(0);\n }\n parsedNumber.integerLen += 2;\n }\n return parsedNumber;\n}\n/**\n * Parses a number.\n * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/\n */\nfunction parseNumber(num) {\n let numStr = Math.abs(num) + '';\n let exponent = 0, digits, integerLen;\n let i, j, zeros;\n // Decimal point?\n if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {\n numStr = numStr.replace(DECIMAL_SEP, '');\n }\n // Exponential form?\n if ((i = numStr.search(/e/i)) > 0) {\n // Work out the exponent.\n if (integerLen < 0)\n integerLen = i;\n integerLen += +numStr.slice(i + 1);\n numStr = numStr.substring(0, i);\n }\n else if (integerLen < 0) {\n // There was no decimal point or exponent so it is an integer.\n integerLen = numStr.length;\n }\n // Count the number of leading zeros.\n for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */\n }\n if (i === (zeros = numStr.length)) {\n // The digits are all zero.\n digits = [0];\n integerLen = 1;\n }\n else {\n // Count the number of trailing zeros\n zeros--;\n while (numStr.charAt(zeros) === ZERO_CHAR)\n zeros--;\n // Trailing zeros are insignificant so ignore them\n integerLen -= i;\n digits = [];\n // Convert string to array of digits without leading/trailing zeros.\n for (j = 0; i <= zeros; i++, j++) {\n digits[j] = Number(numStr.charAt(i));\n }\n }\n // If the number overflows the maximum allowed digits then use an exponent.\n if (integerLen > MAX_DIGITS) {\n digits = digits.splice(0, MAX_DIGITS - 1);\n exponent = integerLen - 1;\n integerLen = 1;\n }\n return { digits, exponent, integerLen };\n}\n/**\n * Round the parsed number to the specified number of decimal places\n * This function changes the parsedNumber in-place\n */\nfunction roundNumber(parsedNumber, minFrac, maxFrac) {\n if (minFrac > maxFrac) {\n throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);\n }\n let digits = parsedNumber.digits;\n let fractionLen = digits.length - parsedNumber.integerLen;\n const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);\n // The index of the digit to where rounding is to occur\n let roundAt = fractionSize + parsedNumber.integerLen;\n let digit = digits[roundAt];\n if (roundAt > 0) {\n // Drop fractional digits beyond `roundAt`\n digits.splice(Math.max(parsedNumber.integerLen, roundAt));\n // Set non-fractional digits beyond `roundAt` to 0\n for (let j = roundAt; j < digits.length; j++) {\n digits[j] = 0;\n }\n }\n else {\n // We rounded to zero so reset the parsedNumber\n fractionLen = Math.max(0, fractionLen);\n parsedNumber.integerLen = 1;\n digits.length = Math.max(1, roundAt = fractionSize + 1);\n digits[0] = 0;\n for (let i = 1; i < roundAt; i++)\n digits[i] = 0;\n }\n if (digit >= 5) {\n if (roundAt - 1 < 0) {\n for (let k = 0; k > roundAt; k--) {\n digits.unshift(0);\n parsedNumber.integerLen++;\n }\n digits.unshift(1);\n parsedNumber.integerLen++;\n }\n else {\n digits[roundAt - 1]++;\n }\n }\n // Pad out with zeros to get the required fraction length\n for (; fractionLen < Math.max(0, fractionSize); fractionLen++)\n digits.push(0);\n let dropTrailingZeros = fractionSize !== 0;\n // Minimal length = nb of decimals required + current nb of integers\n // Any number besides that is optional and can be removed if it's a trailing 0\n const minLen = minFrac + parsedNumber.integerLen;\n // Do any carrying, e.g. a digit was rounded up to 10\n const carry = digits.reduceRight(function (carry, d, i, digits) {\n d = d + carry;\n digits[i] = d < 10 ? d : d - 10; // d % 10\n if (dropTrailingZeros) {\n // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)\n if (digits[i] === 0 && i >= minLen) {\n digits.pop();\n }\n else {\n dropTrailingZeros = false;\n }\n }\n return d >= 10 ? 1 : 0; // Math.floor(d / 10);\n }, 0);\n if (carry) {\n digits.unshift(carry);\n parsedNumber.integerLen++;\n }\n}\nfunction parseIntAutoRadix(text) {\n const result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nclass NgLocalization {\n}\n/**\n * Returns the plural category for a given value.\n * - \"=value\" when the case exists,\n * - the plural category otherwise\n */\nfunction getPluralCategory(value, cases, ngLocalization, locale) {\n let key = `=${value}`;\n if (cases.indexOf(key) > -1) {\n return key;\n }\n key = ngLocalization.getPluralCategory(value, locale);\n if (cases.indexOf(key) > -1) {\n return key;\n }\n if (cases.indexOf('other') > -1) {\n return 'other';\n }\n throw new Error(`No plural message found for value \"${value}\"`);\n}\n/**\n * Returns the plural case based on the locale\n *\n * @publicApi\n */\nclass NgLocaleLocalization extends NgLocalization {\n constructor(locale) {\n super();\n this.locale = locale;\n }\n getPluralCategory(value, locale) {\n const plural = getLocalePluralCase(locale || this.locale)(value);\n switch (plural) {\n case Plural.Zero:\n return 'zero';\n case Plural.One:\n return 'one';\n case Plural.Two:\n return 'two';\n case Plural.Few:\n return 'few';\n case Plural.Many:\n return 'many';\n default:\n return 'other';\n }\n }\n}\nNgLocaleLocalization.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });\nNgLocaleLocalization.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgLocaleLocalization });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgLocaleLocalization, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Register global data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1\n *\n * @publicApi\n */\nfunction registerLocaleData(data, localeId, extraData) {\n return ɵregisterLocaleData(data, localeId, extraData);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction parseCookieValue(cookieStr, name) {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n * <some-element [ngClass]=\"'first second'\">...</some-element>\n *\n * <some-element [ngClass]=\"['first', 'second']\">...</some-element>\n *\n * <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>\n *\n * <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>\n *\n * <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>\n * ```\n *\n * @description\n *\n * Adds and removes CSS classes on an HTML element.\n *\n * The CSS classes are updated as follows, depending on the type of the expression evaluation:\n * - `string` - the CSS classes listed in the string (space delimited) are added,\n * - `Array` - the CSS classes declared as Array elements are added,\n * - `Object` - keys are CSS classes that get added when the expression given in the value\n * evaluates to a truthy value, otherwise they are removed.\n *\n * @publicApi\n */\nclass NgClass {\n constructor(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {\n this._iterableDiffers = _iterableDiffers;\n this._keyValueDiffers = _keyValueDiffers;\n this._ngEl = _ngEl;\n this._renderer = _renderer;\n this._iterableDiffer = null;\n this._keyValueDiffer = null;\n this._initialClasses = [];\n this._rawClass = null;\n }\n set klass(value) {\n this._removeClasses(this._initialClasses);\n this._initialClasses = typeof value === 'string' ? value.split(/\\s+/) : [];\n this._applyClasses(this._initialClasses);\n this._applyClasses(this._rawClass);\n }\n set ngClass(value) {\n this._removeClasses(this._rawClass);\n this._applyClasses(this._initialClasses);\n this._iterableDiffer = null;\n this._keyValueDiffer = null;\n this._rawClass = typeof value === 'string' ? value.split(/\\s+/) : value;\n if (this._rawClass) {\n if (ɵisListLikeIterable(this._rawClass)) {\n this._iterableDiffer = this._iterableDiffers.find(this._rawClass).create();\n }\n else {\n this._keyValueDiffer = this._keyValueDiffers.find(this._rawClass).create();\n }\n }\n }\n ngDoCheck() {\n if (this._iterableDiffer) {\n const iterableChanges = this._iterableDiffer.diff(this._rawClass);\n if (iterableChanges) {\n this._applyIterableChanges(iterableChanges);\n }\n }\n else if (this._keyValueDiffer) {\n const keyValueChanges = this._keyValueDiffer.diff(this._rawClass);\n if (keyValueChanges) {\n this._applyKeyValueChanges(keyValueChanges);\n }\n }\n }\n _applyKeyValueChanges(changes) {\n changes.forEachAddedItem((record) => this._toggleClass(record.key, record.currentValue));\n changes.forEachChangedItem((record) => this._toggleClass(record.key, record.currentValue));\n changes.forEachRemovedItem((record) => {\n if (record.previousValue) {\n this._toggleClass(record.key, false);\n }\n });\n }\n _applyIterableChanges(changes) {\n changes.forEachAddedItem((record) => {\n if (typeof record.item === 'string') {\n this._toggleClass(record.item, true);\n }\n else {\n throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ɵstringify(record.item)}`);\n }\n });\n changes.forEachRemovedItem((record) => this._toggleClass(record.item, false));\n }\n /**\n * Applies a collection of CSS classes to the DOM element.\n *\n * For argument of type Set and Array CSS class names contained in those collections are always\n * added.\n * For argument of type Map CSS class name in the map's key is toggled based on the value (added\n * for truthy and removed for falsy).\n */\n _applyClasses(rawClassVal) {\n if (rawClassVal) {\n if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {\n rawClassVal.forEach((klass) => this._toggleClass(klass, true));\n }\n else {\n Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, !!rawClassVal[klass]));\n }\n }\n }\n /**\n * Removes a collection of CSS classes from the DOM element. This is mostly useful for cleanup\n * purposes.\n */\n _removeClasses(rawClassVal) {\n if (rawClassVal) {\n if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {\n rawClassVal.forEach((klass) => this._toggleClass(klass, false));\n }\n else {\n Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, false));\n }\n }\n }\n _toggleClass(klass, enabled) {\n klass = klass.trim();\n if (klass) {\n klass.split(/\\s+/g).forEach(klass => {\n if (enabled) {\n this._renderer.addClass(this._ngEl.nativeElement, klass);\n }\n else {\n this._renderer.removeClass(this._ngEl.nativeElement, klass);\n }\n });\n }\n }\n}\nNgClass.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgClass, deps: [{ token: i0.IterableDiffers }, { token: i0.KeyValueDiffers }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\nNgClass.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgClass, selector: \"[ngClass]\", inputs: { klass: [\"class\", \"klass\"], ngClass: \"ngClass\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgClass, decorators: [{\n type: Directive,\n args: [{ selector: '[ngClass]' }]\n }], ctorParameters: function () { return [{ type: i0.IterableDiffers }, { type: i0.KeyValueDiffers }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { klass: [{\n type: Input,\n args: ['class']\n }], ngClass: [{\n type: Input,\n args: ['ngClass']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Instantiates a {@link Component} type and inserts its Host View into the current View.\n * `NgComponentOutlet` provides a declarative approach for dynamic component creation.\n *\n * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and\n * any existing component will be destroyed.\n *\n * @usageNotes\n *\n * ### Fine tune control\n *\n * You can control the component creation process by using the following optional attributes:\n *\n * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for\n * the Component. Defaults to the injector of the current view container.\n *\n * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content\n * section of the component, if it exists.\n *\n * * `ngComponentOutletNgModuleFactory`: Optional module factory to allow loading another\n * module dynamically, then loading a component from that module.\n *\n * ### Syntax\n *\n * Simple\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>\n * ```\n *\n * Customized injector/content\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * injector: injectorExpression;\n * content: contentNodesExpression;\">\n * </ng-container>\n * ```\n *\n * Customized ngModuleFactory\n * ```\n * <ng-container *ngComponentOutlet=\"componentTypeExpression;\n * ngModuleFactory: moduleFactory;\">\n * </ng-container>\n * ```\n *\n * ### A simple example\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}\n *\n * A more complete example with additional options:\n *\n * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}\n *\n * @publicApi\n * @ngModule CommonModule\n */\nclass NgComponentOutlet {\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n this._componentRef = null;\n this._moduleRef = null;\n }\n ngOnChanges(changes) {\n this._viewContainerRef.clear();\n this._componentRef = null;\n if (this.ngComponentOutlet) {\n const elInjector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;\n if (changes['ngComponentOutletNgModuleFactory']) {\n if (this._moduleRef)\n this._moduleRef.destroy();\n if (this.ngComponentOutletNgModuleFactory) {\n const parentModule = elInjector.get(NgModuleRef);\n this._moduleRef = this.ngComponentOutletNgModuleFactory.create(parentModule.injector);\n }\n else {\n this._moduleRef = null;\n }\n }\n const componentFactoryResolver = this._moduleRef ? this._moduleRef.componentFactoryResolver :\n elInjector.get(ComponentFactoryResolver);\n const componentFactory = componentFactoryResolver.resolveComponentFactory(this.ngComponentOutlet);\n this._componentRef = this._viewContainerRef.createComponent(componentFactory, this._viewContainerRef.length, elInjector, this.ngComponentOutletContent);\n }\n }\n ngOnDestroy() {\n if (this._moduleRef)\n this._moduleRef.destroy();\n }\n}\nNgComponentOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgComponentOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgComponentOutlet, selector: \"[ngComponentOutlet]\", inputs: { ngComponentOutlet: \"ngComponentOutlet\", ngComponentOutletInjector: \"ngComponentOutletInjector\", ngComponentOutletContent: \"ngComponentOutletContent\", ngComponentOutletNgModuleFactory: \"ngComponentOutletNgModuleFactory\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgComponentOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[ngComponentOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngComponentOutlet: [{\n type: Input\n }], ngComponentOutletInjector: [{\n type: Input\n }], ngComponentOutletContent: [{\n type: Input\n }], ngComponentOutletNgModuleFactory: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nclass NgForOfContext {\n constructor($implicit, ngForOf, index, count) {\n this.$implicit = $implicit;\n this.ngForOf = ngForOf;\n this.index = index;\n this.count = count;\n }\n get first() {\n return this.index === 0;\n }\n get last() {\n return this.index === this.count - 1;\n }\n get even() {\n return this.index % 2 === 0;\n }\n get odd() {\n return !this.even;\n }\n}\n/**\n * A [structural directive](guide/structural-directives) that renders\n * a template for each item in a collection.\n * The directive is placed on an element, which becomes the parent\n * of the cloned templates.\n *\n * The `ngForOf` directive is generally used in the\n * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.\n * In this form, the template to be rendered for each iteration is the content\n * of an anchor element containing the directive.\n *\n * The following example shows the shorthand syntax with some options,\n * contained in an `<li>` element.\n *\n * ```\n * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>\n * ```\n *\n * The shorthand form expands into a long form that uses the `ngForOf` selector\n * on an `<ng-template>` element.\n * The content of the `<ng-template>` element is the `<li>` element that held the\n * short-form directive.\n *\n * Here is the expanded version of the short-form example.\n *\n * ```\n * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\n * <li>...</li>\n * </ng-template>\n * ```\n *\n * Angular automatically expands the shorthand syntax as it compiles the template.\n * The context for each embedded view is logically merged to the current component\n * context according to its lexical position.\n *\n * When using the shorthand syntax, Angular allows only [one structural directive\n * on an element](guide/built-in-directives#one-per-element).\n * If you want to iterate conditionally, for example,\n * put the `*ngIf` on a container element that wraps the `*ngFor` element.\n * For futher discussion, see\n * [Structural Directives](guide/built-in-directives#one-per-element).\n *\n * @usageNotes\n *\n * ### Local variables\n *\n * `NgForOf` provides exported values that can be aliased to local variables.\n * For example:\n *\n * ```\n * <li *ngFor=\"let user of users; index as i; first as isFirst\">\n * {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>\n * </li>\n * ```\n *\n * The following exported values can be aliased to local variables:\n *\n * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).\n * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is\n * more complex then a property access, for example when using the async pipe (`userStreams |\n * async`).\n * - `index: number`: The index of the current item in the iterable.\n * - `count: number`: The length of the iterable.\n * - `first: boolean`: True when the item is the first item in the iterable.\n * - `last: boolean`: True when the item is the last item in the iterable.\n * - `even: boolean`: True when the item has an even index in the iterable.\n * - `odd: boolean`: True when the item has an odd index in the iterable.\n *\n * ### Change propagation\n *\n * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n *\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\n * those changes in the DOM. This has important implications for animations and any stateful\n * controls that are present, such as `<input>` elements that accept user input. Inserted rows can\n * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state\n * such as user input.\n * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).\n *\n * The identities of elements in the iterator can change while the data does not.\n * This can happen, for example, if the iterator is produced from an RPC to the server, and that\n * RPC is re-run. Even if the data hasn't changed, the second response produces objects with\n * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old\n * elements were deleted and all new elements inserted).\n *\n * To avoid this expensive operation, you can customize the default tracking algorithm.\n * by supplying the `trackBy` option to `NgForOf`.\n * `trackBy` takes a function that has two arguments: `index` and `item`.\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\n *\n * @see [Structural Directives](guide/structural-directives)\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgForOf {\n constructor(_viewContainer, _template, _differs) {\n this._viewContainer = _viewContainer;\n this._template = _template;\n this._differs = _differs;\n this._ngForOf = null;\n this._ngForOfDirty = true;\n this._differ = null;\n }\n /**\n * The value of the iterable expression, which can be used as a\n * [template input variable](guide/structural-directives#shorthand).\n */\n set ngForOf(ngForOf) {\n this._ngForOf = ngForOf;\n this._ngForOfDirty = true;\n }\n /**\n * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.\n *\n * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object\n * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)\n * as the key.\n *\n * `NgForOf` uses the computed key to associate items in an iterable with DOM elements\n * it produces for these items.\n *\n * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an\n * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a\n * primary key), and this iterable could be updated with new object instances that still\n * represent the same underlying entity (for example, when data is re-fetched from the server,\n * and the iterable is recreated and re-rendered, but most of the data is still the same).\n *\n * @see `TrackByFunction`\n */\n set ngForTrackBy(fn) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {\n // TODO(vicb): use a log service once there is a public one available\n if (console && console.warn) {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` +\n `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);\n }\n }\n this._trackByFn = fn;\n }\n get ngForTrackBy() {\n return this._trackByFn;\n }\n /**\n * A reference to the template that is stamped out for each item in the iterable.\n * @see [template reference variable](guide/template-reference-variables)\n */\n set ngForTemplate(value) {\n // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1\n // The current type is too restrictive; a template that just uses index, for example,\n // should be acceptable.\n if (value) {\n this._template = value;\n }\n }\n /**\n * Applies the changes when needed.\n */\n ngDoCheck() {\n if (this._ngForOfDirty) {\n this._ngForOfDirty = false;\n // React on ngForOf changes only once all inputs have been initialized\n const value = this._ngForOf;\n if (!this._differ && value) {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n try {\n // CAUTION: this logic is duplicated for production mode below, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n catch (_a) {\n throw new Error(`Cannot find a differ supporting object '${value}' of type '${getTypeName(value)}'. NgFor only supports binding to Iterables such as Arrays.`);\n }\n }\n else {\n // CAUTION: this logic is duplicated for development mode above, as the try-catch\n // is only present in development builds.\n this._differ = this._differs.find(value).create(this.ngForTrackBy);\n }\n }\n }\n if (this._differ) {\n const changes = this._differ.diff(this._ngForOf);\n if (changes)\n this._applyChanges(changes);\n }\n }\n _applyChanges(changes) {\n const viewContainer = this._viewContainer;\n changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n if (item.previousIndex == null) {\n // NgForOf is never \"null\" or \"undefined\" here because the differ detected\n // that a new item needs to be inserted from the iterable. This implies that\n // there is an iterable value for \"_ngForOf\".\n viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);\n }\n else if (currentIndex == null) {\n viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);\n }\n else if (adjustedPreviousIndex !== null) {\n const view = viewContainer.get(adjustedPreviousIndex);\n viewContainer.move(view, currentIndex);\n applyViewChange(view, item);\n }\n });\n for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {\n const viewRef = viewContainer.get(i);\n const context = viewRef.context;\n context.index = i;\n context.count = ilen;\n context.ngForOf = this._ngForOf;\n }\n changes.forEachIdentityChange((record) => {\n const viewRef = viewContainer.get(record.currentIndex);\n applyViewChange(viewRef, record);\n });\n }\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n}\nNgForOf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });\nNgForOf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgForOf, selector: \"[ngFor][ngForOf]\", inputs: { ngForOf: \"ngForOf\", ngForTrackBy: \"ngForTrackBy\", ngForTemplate: \"ngForTemplate\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgForOf, decorators: [{\n type: Directive,\n args: [{ selector: '[ngFor][ngForOf]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }]; }, propDecorators: { ngForOf: [{\n type: Input\n }], ngForTrackBy: [{\n type: Input\n }], ngForTemplate: [{\n type: Input\n }] } });\nfunction applyViewChange(view, record) {\n view.context.$implicit = record.item;\n}\nfunction getTypeName(type) {\n return type['name'] || typeof type;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A structural directive that conditionally includes a template based on the value of\n * an expression coerced to Boolean.\n * When the expression evaluates to true, Angular renders the template\n * provided in a `then` clause, and when false or null,\n * Angular renders the template provided in an optional `else` clause. The default\n * template for the `else` clause is blank.\n *\n * A [shorthand form](guide/structural-directives#asterisk) of the directive,\n * `*ngIf=\"condition\"`, is generally used, provided\n * as an attribute of the anchor element for the inserted template.\n * Angular expands this into a more explicit version, in which the anchor element\n * is contained in an `<ng-template>` element.\n *\n * Simple form with shorthand syntax:\n *\n * ```\n * <div *ngIf=\"condition\">Content to render when condition is true.</div>\n * ```\n *\n * Simple form with expanded syntax:\n *\n * ```\n * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is\n * true.</div></ng-template>\n * ```\n *\n * Form with an \"else\" block:\n *\n * ```\n * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Shorthand form with \"then\" and \"else\" blocks:\n *\n * ```\n * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>\n * <ng-template #thenBlock>Content to render when condition is true.</ng-template>\n * <ng-template #elseBlock>Content to render when condition is false.</ng-template>\n * ```\n *\n * Form with storing the value locally:\n *\n * ```\n * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>\n * <ng-template #elseBlock>Content to render when value is null.</ng-template>\n * ```\n *\n * @usageNotes\n *\n * The `*ngIf` directive is most commonly used to conditionally show an inline template,\n * as seen in the following example.\n * The default `else` template is blank.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfSimple'}\n *\n * ### Showing an alternative template using `else`\n *\n * To display a template when `expression` evaluates to false, use an `else` template\n * binding as shown in the following example.\n * The `else` binding points to an `<ng-template>` element labeled `#elseBlock`.\n * The template can be defined anywhere in the component view, but is typically placed right after\n * `ngIf` for readability.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfElse'}\n *\n * ### Using an external `then` template\n *\n * In the previous example, the then-clause template is specified inline, as the content of the\n * tag that contains the `ngIf` directive. You can also specify a template that is defined\n * externally, by referencing a labeled `<ng-template>` element. When you do this, you can\n * change which template to use at runtime, as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}\n *\n * ### Storing a conditional result in a variable\n *\n * You might want to show a set of properties from the same object. If you are waiting\n * for asynchronous data, the object can be undefined.\n * In this case, you can use `ngIf` and store the result of the condition in a local\n * variable as shown in the following example.\n *\n * {@example common/ngIf/ts/module.ts region='NgIfAs'}\n *\n * This code uses only one `AsyncPipe`, so only one subscription is created.\n * The conditional statement stores the result of `userStream|async` in the local variable `user`.\n * You can then bind the local `user` repeatedly.\n *\n * The conditional displays the data only if `userStream` returns a value,\n * so you don't need to use the\n * safe-navigation-operator (`?.`)\n * to guard against null values when accessing properties.\n * You can display an alternative template while waiting for the data.\n *\n * ### Shorthand syntax\n *\n * The shorthand syntax `*ngIf` expands into two separate template specifications\n * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,\n * that is meant to show a loading page while waiting for data to be loaded.\n *\n * ```\n * <div class=\"hero-list\" *ngIf=\"heroes else loading\">\n * ...\n * </div>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * You can see that the \"else\" clause references the `<ng-template>`\n * with the `#loading` label, and the template for the \"then\" clause\n * is provided as the content of the anchor element.\n *\n * However, when Angular expands the shorthand syntax, it creates\n * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.\n * The anchor element containing the template for the \"then\" clause becomes\n * the content of this unlabeled `<ng-template>` tag.\n *\n * ```\n * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">\n * <div class=\"hero-list\">\n * ...\n * </div>\n * </ng-template>\n *\n * <ng-template #loading>\n * <div>Loading...</div>\n * </ng-template>\n * ```\n *\n * The presence of the implicit template object has implications for the nesting of\n * structural directives. For more on this subject, see\n * [Structural Directives](https://angular.io/guide/built-in-directives#one-per-element).\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass NgIf {\n constructor(_viewContainer, templateRef) {\n this._viewContainer = _viewContainer;\n this._context = new NgIfContext();\n this._thenTemplateRef = null;\n this._elseTemplateRef = null;\n this._thenViewRef = null;\n this._elseViewRef = null;\n this._thenTemplateRef = templateRef;\n }\n /**\n * The Boolean expression to evaluate as the condition for showing a template.\n */\n set ngIf(condition) {\n this._context.$implicit = this._context.ngIf = condition;\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to true.\n */\n set ngIfThen(templateRef) {\n assertTemplate('ngIfThen', templateRef);\n this._thenTemplateRef = templateRef;\n this._thenViewRef = null; // clear previous view if any.\n this._updateView();\n }\n /**\n * A template to show if the condition expression evaluates to false.\n */\n set ngIfElse(templateRef) {\n assertTemplate('ngIfElse', templateRef);\n this._elseTemplateRef = templateRef;\n this._elseViewRef = null; // clear previous view if any.\n this._updateView();\n }\n _updateView() {\n if (this._context.$implicit) {\n if (!this._thenViewRef) {\n this._viewContainer.clear();\n this._elseViewRef = null;\n if (this._thenTemplateRef) {\n this._thenViewRef =\n this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);\n }\n }\n }\n else {\n if (!this._elseViewRef) {\n this._viewContainer.clear();\n this._thenViewRef = null;\n if (this._elseTemplateRef) {\n this._elseViewRef =\n this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);\n }\n }\n }\n }\n /**\n * Asserts the correct type of the context for the template that `NgIf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgIf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir, ctx) {\n return true;\n }\n}\nNgIf.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgIf.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgIf, selector: \"[ngIf]\", inputs: { ngIf: \"ngIf\", ngIfThen: \"ngIfThen\", ngIfElse: \"ngIfElse\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgIf, decorators: [{\n type: Directive,\n args: [{ selector: '[ngIf]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, propDecorators: { ngIf: [{\n type: Input\n }], ngIfThen: [{\n type: Input\n }], ngIfElse: [{\n type: Input\n }] } });\n/**\n * @publicApi\n */\nclass NgIfContext {\n constructor() {\n this.$implicit = null;\n this.ngIf = null;\n }\n}\nfunction assertTemplate(property, templateRef) {\n const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);\n if (!isTemplateRefOrNull) {\n throw new Error(`${property} must be a TemplateRef, but received '${ɵstringify(templateRef)}'.`);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass SwitchView {\n constructor(_viewContainerRef, _templateRef) {\n this._viewContainerRef = _viewContainerRef;\n this._templateRef = _templateRef;\n this._created = false;\n }\n create() {\n this._created = true;\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n }\n destroy() {\n this._created = false;\n this._viewContainerRef.clear();\n }\n enforceState(created) {\n if (created && !this._created) {\n this.create();\n }\n else if (!created && this._created) {\n this.destroy();\n }\n }\n}\n/**\n * @ngModule CommonModule\n *\n * @description\n * The `[ngSwitch]` directive on a container specifies an expression to match against.\n * The expressions to match are provided by `ngSwitchCase` directives on views within the container.\n * - Every view that matches is rendered.\n * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.\n * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`\n * or `ngSwitchDefault` directive are preserved at the location.\n *\n * @usageNotes\n * Define a container element for the directive, and specify the switch expression\n * to match against as an attribute:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * ```\n *\n * Within the container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * ### Usage Examples\n *\n * The following example shows how to use more than one case to display the same view:\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <!-- the same view can be shown in more than one case -->\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <!--default case when there are no matches -->\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * The following example shows how cases can be nested:\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>\n * <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>\n * <ng-container *ngSwitchCase=\"match_expression_3\">\n * <!-- use a ng-container to group multiple root nodes -->\n * <inner-element></inner-element>\n * <inner-other-element></inner-other-element>\n * </ng-container>\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * @publicApi\n * @see `NgSwitchCase`\n * @see `NgSwitchDefault`\n * @see [Structural Directives](guide/structural-directives)\n *\n */\nclass NgSwitch {\n constructor() {\n this._defaultUsed = false;\n this._caseCount = 0;\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n set ngSwitch(newValue) {\n this._ngSwitch = newValue;\n if (this._caseCount === 0) {\n this._updateDefaultCases(true);\n }\n }\n /** @internal */\n _addCase() {\n return this._caseCount++;\n }\n /** @internal */\n _addDefault(view) {\n if (!this._defaultViews) {\n this._defaultViews = [];\n }\n this._defaultViews.push(view);\n }\n /** @internal */\n _matchCase(value) {\n const matched = value == this._ngSwitch;\n this._lastCasesMatched = this._lastCasesMatched || matched;\n this._lastCaseCheckIndex++;\n if (this._lastCaseCheckIndex === this._caseCount) {\n this._updateDefaultCases(!this._lastCasesMatched);\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n return matched;\n }\n _updateDefaultCases(useDefault) {\n if (this._defaultViews && useDefault !== this._defaultUsed) {\n this._defaultUsed = useDefault;\n for (let i = 0; i < this._defaultViews.length; i++) {\n const defaultView = this._defaultViews[i];\n defaultView.enforceState(useDefault);\n }\n }\n }\n}\nNgSwitch.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitch.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgSwitch, selector: \"[ngSwitch]\", inputs: { ngSwitch: \"ngSwitch\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitch, decorators: [{\n type: Directive,\n args: [{ selector: '[ngSwitch]' }]\n }], propDecorators: { ngSwitch: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n * Provides a switch case expression to match against an enclosing `ngSwitch` expression.\n * When the expressions match, the given `NgSwitchCase` template is rendered.\n * If multiple match expressions match the switch expression value, all of them are displayed.\n *\n * @usageNotes\n *\n * Within a switch container, `*ngSwitchCase` statements specify the match expressions\n * as attributes. Include `*ngSwitchDefault` as the final case.\n *\n * ```\n * <container-element [ngSwitch]=\"switch_expression\">\n * <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>\n * ...\n * <some-element *ngSwitchDefault>...</some-element>\n * </container-element>\n * ```\n *\n * Each switch-case statement contains an in-line HTML template or template reference\n * that defines the subtree to be selected if the value of the match expression\n * matches the value of the switch expression.\n *\n * Unlike JavaScript, which uses strict equality, Angular uses loose equality.\n * This means that the empty string, `\"\"` matches 0.\n *\n * @publicApi\n * @see `NgSwitch`\n * @see `NgSwitchDefault`\n *\n */\nclass NgSwitchCase {\n constructor(viewContainer, templateRef, ngSwitch) {\n this.ngSwitch = ngSwitch;\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');\n }\n ngSwitch._addCase();\n this._view = new SwitchView(viewContainer, templateRef);\n }\n /**\n * Performs case matching. For internal use only.\n */\n ngDoCheck() {\n this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));\n }\n}\nNgSwitchCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitchCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgSwitchCase, selector: \"[ngSwitchCase]\", inputs: { ngSwitchCase: \"ngSwitchCase\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitchCase, decorators: [{\n type: Directive,\n args: [{ selector: '[ngSwitchCase]' }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }];\n }, propDecorators: { ngSwitchCase: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that is rendered when no `NgSwitchCase` expressions\n * match the `NgSwitch` expression.\n * This statement should be the final case in an `NgSwitch`.\n *\n * @publicApi\n * @see `NgSwitch`\n * @see `NgSwitchCase`\n *\n */\nclass NgSwitchDefault {\n constructor(viewContainer, templateRef, ngSwitch) {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {\n throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');\n }\n ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));\n }\n}\nNgSwitchDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgSwitchDefault.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgSwitchDefault, selector: \"[ngSwitchDefault]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgSwitchDefault, decorators: [{\n type: Directive,\n args: [{ selector: '[ngSwitchDefault]' }]\n }], ctorParameters: function () {\n return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{\n type: Optional\n }, {\n type: Host\n }] }];\n } });\nfunction throwNgSwitchProviderNotFoundError(attrName, directiveName) {\n throw new ɵRuntimeError(\"305\" /* TEMPLATE_STRUCTURE_ERROR */, `An element with the \"${attrName}\" attribute ` +\n `(matching the \"${directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` +\n `(matching \"NgSwitch\" directive)`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>\n * <ng-template ngPluralCase=\"=1\">there is one</ng-template>\n * <ng-template ngPluralCase=\"few\">there are a few</ng-template>\n * </some-element>\n * ```\n *\n * @description\n *\n * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.\n *\n * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees\n * that match the switch expression's pluralization category.\n *\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\n * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their\n * expression:\n * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\n * matches the switch expression exactly,\n * - otherwise, the view will be treated as a \"category match\", and will only display if exact\n * value matches aren't found and the value maps to its category for the defined locale.\n *\n * See http://cldr.unicode.org/index/cldr-spec/plural-rules\n *\n * @publicApi\n */\nclass NgPlural {\n constructor(_localization) {\n this._localization = _localization;\n this._caseViews = {};\n }\n set ngPlural(value) {\n this._switchValue = value;\n this._updateView();\n }\n addCase(value, switchView) {\n this._caseViews[value] = switchView;\n }\n _updateView() {\n this._clearViews();\n const cases = Object.keys(this._caseViews);\n const key = getPluralCategory(this._switchValue, cases, this._localization);\n this._activateView(this._caseViews[key]);\n }\n _clearViews() {\n if (this._activeView)\n this._activeView.destroy();\n }\n _activateView(view) {\n if (view) {\n this._activeView = view;\n this._activeView.create();\n }\n }\n}\nNgPlural.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });\nNgPlural.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgPlural, selector: \"[ngPlural]\", inputs: { ngPlural: \"ngPlural\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgPlural, decorators: [{\n type: Directive,\n args: [{ selector: '[ngPlural]' }]\n }], ctorParameters: function () { return [{ type: NgLocalization }]; }, propDecorators: { ngPlural: [{\n type: Input\n }] } });\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Creates a view that will be added/removed from the parent {@link NgPlural} when the\n * given expression matches the plural expression according to CLDR rules.\n *\n * @usageNotes\n * ```\n * <some-element [ngPlural]=\"value\">\n * <ng-template ngPluralCase=\"=0\">...</ng-template>\n * <ng-template ngPluralCase=\"other\">...</ng-template>\n * </some-element>\n *```\n *\n * See {@link NgPlural} for more details and example.\n *\n * @publicApi\n */\nclass NgPluralCase {\n constructor(value, template, viewContainer, ngPlural) {\n this.value = value;\n const isANumber = !isNaN(Number(value));\n ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));\n }\n}\nNgPluralCase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });\nNgPluralCase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgPluralCase, selector: \"[ngPluralCase]\", ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgPluralCase, decorators: [{\n type: Directive,\n args: [{ selector: '[ngPluralCase]' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Attribute,\n args: ['ngPluralCase']\n }] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: NgPlural, decorators: [{\n type: Host\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @usageNotes\n *\n * Set the font of the containing element to the result of an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>\n * ```\n *\n * Set the width of the containing element to a pixel value returned by an expression.\n *\n * ```\n * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>\n * ```\n *\n * Set a collection of style values using an expression that returns key-value pairs.\n *\n * ```\n * <some-element [ngStyle]=\"objExp\">...</some-element>\n * ```\n *\n * @description\n *\n * An attribute directive that updates styles for the containing HTML element.\n * Sets one or more style properties, specified as colon-separated key-value pairs.\n * The key is a style name, with an optional `.<unit>` suffix\n * (such as 'top.px', 'font-style.em').\n * The value is an expression to be evaluated.\n * The resulting non-null value, expressed in the given unit,\n * is assigned to the given style property.\n * If the result of evaluation is null, the corresponding style is removed.\n *\n * @publicApi\n */\nclass NgStyle {\n constructor(_ngEl, _differs, _renderer) {\n this._ngEl = _ngEl;\n this._differs = _differs;\n this._renderer = _renderer;\n this._ngStyle = null;\n this._differ = null;\n }\n set ngStyle(values) {\n this._ngStyle = values;\n if (!this._differ && values) {\n this._differ = this._differs.find(values).create();\n }\n }\n ngDoCheck() {\n if (this._differ) {\n const changes = this._differ.diff(this._ngStyle);\n if (changes) {\n this._applyChanges(changes);\n }\n }\n }\n _setStyle(nameAndUnit, value) {\n const [name, unit] = nameAndUnit.split('.');\n value = value != null && unit ? `${value}${unit}` : value;\n if (value != null) {\n this._renderer.setStyle(this._ngEl.nativeElement, name, value);\n }\n else {\n this._renderer.removeStyle(this._ngEl.nativeElement, name);\n }\n }\n _applyChanges(changes) {\n changes.forEachRemovedItem((record) => this._setStyle(record.key, null));\n changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));\n changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));\n }\n}\nNgStyle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });\nNgStyle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgStyle, selector: \"[ngStyle]\", inputs: { ngStyle: \"ngStyle\" }, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgStyle, decorators: [{\n type: Directive,\n args: [{ selector: '[ngStyle]' }]\n }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }]; }, propDecorators: { ngStyle: [{\n type: Input,\n args: ['ngStyle']\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n *\n * @description\n *\n * Inserts an embedded view from a prepared `TemplateRef`.\n *\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.\n * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding\n * by the local template `let` declarations.\n *\n * @usageNotes\n * ```\n * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>\n * ```\n *\n * Using the key `$implicit` in the context object will set its value as default.\n *\n * ### Example\n *\n * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}\n *\n * @publicApi\n */\nclass NgTemplateOutlet {\n constructor(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n this._viewRef = null;\n /**\n * A context object to attach to the {@link EmbeddedViewRef}. This should be an\n * object, the object's keys will be available for binding by the local template `let`\n * declarations.\n * Using the key `$implicit` in the context object will set its value as default.\n */\n this.ngTemplateOutletContext = null;\n /**\n * A string defining the template reference and optionally the context object for the template.\n */\n this.ngTemplateOutlet = null;\n }\n ngOnChanges(changes) {\n if (changes['ngTemplateOutlet']) {\n const viewContainerRef = this._viewContainerRef;\n if (this._viewRef) {\n viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));\n }\n this._viewRef = this.ngTemplateOutlet ?\n viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, this.ngTemplateOutletContext) :\n null;\n }\n else if (this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {\n this._viewRef.context = this.ngTemplateOutletContext;\n }\n }\n}\nNgTemplateOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });\nNgTemplateOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"12.0.0\", version: \"13.1.1\", type: NgTemplateOutlet, selector: \"[ngTemplateOutlet]\", inputs: { ngTemplateOutletContext: \"ngTemplateOutletContext\", ngTemplateOutlet: \"ngTemplateOutlet\" }, usesOnChanges: true, ngImport: i0 });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NgTemplateOutlet, decorators: [{\n type: Directive,\n args: [{ selector: '[ngTemplateOutlet]' }]\n }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { ngTemplateOutletContext: [{\n type: Input\n }], ngTemplateOutlet: [{\n type: Input\n }] } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A collection of Angular directives that are likely to be used in each and every Angular\n * application.\n */\nconst COMMON_DIRECTIVES = [\n NgClass,\n NgComponentOutlet,\n NgForOf,\n NgIf,\n NgTemplateOutlet,\n NgStyle,\n NgSwitch,\n NgSwitchCase,\n NgSwitchDefault,\n NgPlural,\n NgPluralCase,\n];\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction invalidPipeArgumentError(type, value) {\n return Error(`InvalidPipeArgument: '${value}' for pipe '${ɵstringify(type)}'`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass SubscribableStrategy {\n createSubscription(async, updateLatestValue) {\n return async.subscribe({\n next: updateLatestValue,\n error: (e) => {\n throw e;\n }\n });\n }\n dispose(subscription) {\n subscription.unsubscribe();\n }\n onDestroy(subscription) {\n subscription.unsubscribe();\n }\n}\nclass PromiseStrategy {\n createSubscription(async, updateLatestValue) {\n return async.then(updateLatestValue, e => {\n throw e;\n });\n }\n dispose(subscription) { }\n onDestroy(subscription) { }\n}\nconst _promiseStrategy = new PromiseStrategy();\nconst _subscribableStrategy = new SubscribableStrategy();\n/**\n * @ngModule CommonModule\n * @description\n *\n * Unwraps a value from an asynchronous primitive.\n *\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\n * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for\n * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\n * potential memory leaks. When the reference of the expression changes, the `async` pipe\n * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.\n *\n * @usageNotes\n *\n * ### Examples\n *\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\n * promise.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}\n *\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\n * to the view. The Observable continuously updates the view with the current time.\n *\n * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}\n *\n * @publicApi\n */\nclass AsyncPipe {\n constructor(_ref) {\n this._ref = _ref;\n this._latestValue = null;\n this._subscription = null;\n this._obj = null;\n this._strategy = null;\n }\n ngOnDestroy() {\n if (this._subscription) {\n this._dispose();\n }\n }\n transform(obj) {\n if (!this._obj) {\n if (obj) {\n this._subscribe(obj);\n }\n return this._latestValue;\n }\n if (obj !== this._obj) {\n this._dispose();\n return this.transform(obj);\n }\n return this._latestValue;\n }\n _subscribe(obj) {\n this._obj = obj;\n this._strategy = this._selectStrategy(obj);\n this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value));\n }\n _selectStrategy(obj) {\n if (ɵisPromise(obj)) {\n return _promiseStrategy;\n }\n if (ɵisSubscribable(obj)) {\n return _subscribableStrategy;\n }\n throw invalidPipeArgumentError(AsyncPipe, obj);\n }\n _dispose() {\n this._strategy.dispose(this._subscription);\n this._latestValue = null;\n this._subscription = null;\n this._obj = null;\n }\n _updateLatestValue(async, value) {\n if (async === this._obj) {\n this._latestValue = value;\n this._ref.markForCheck();\n }\n }\n}\nAsyncPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });\nAsyncPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AsyncPipe, name: \"async\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: AsyncPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'async', pure: false }]\n }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Transforms text to all lower case.\n *\n * @see `UpperCasePipe`\n * @see `TitleCasePipe`\n * @usageNotes\n *\n * The following example defines a view that allows the user to enter\n * text, and then uses the pipe to convert the input text to all lower case.\n *\n * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass LowerCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(LowerCasePipe, value);\n }\n return value.toLowerCase();\n }\n}\nLowerCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nLowerCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LowerCasePipe, name: \"lowercase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: LowerCasePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'lowercase' }]\n }] });\n//\n// Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result\n// can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes\n// (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no\n// transpilation of this functionality down to ES5 without external tool, the only solution is\n// to use already transpiled form. Example can be found here -\n// https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1\n//\nconst unicodeWordMatch = /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D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\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uD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* Transforms text to title case.\n * Capitalizes the first letter of each word and transforms the\n * rest of the word to lower case.\n * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.\n *\n * @see `LowerCasePipe`\n * @see `UpperCasePipe`\n *\n * @usageNotes\n * The following example shows the result of transforming various strings into title case.\n *\n * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass TitleCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(TitleCasePipe, value);\n }\n return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.substr(1).toLowerCase()));\n }\n}\nTitleCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nTitleCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TitleCasePipe, name: \"titlecase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: TitleCasePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'titlecase' }]\n }] });\n/**\n * Transforms text to all upper case.\n * @see `LowerCasePipe`\n * @see `TitleCasePipe`\n *\n * @ngModule CommonModule\n * @publicApi\n */\nclass UpperCasePipe {\n transform(value) {\n if (value == null)\n return null;\n if (typeof value !== 'string') {\n throw invalidPipeArgumentError(UpperCasePipe, value);\n }\n return value.toUpperCase();\n }\n}\nUpperCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nUpperCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: UpperCasePipe, name: \"uppercase\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: UpperCasePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'uppercase' }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).\n * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.\n */\nconst DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken('DATE_PIPE_DEFAULT_TIMEZONE');\n// clang-format off\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a date value according to locale rules.\n *\n * `DatePipe` is executed only when it detects a pure change to the input value.\n * A pure change is either a change to a primitive input value\n * (such as `String`, `Number`, `Boolean`, or `Symbol`),\n * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).\n *\n * Note that mutating a `Date` object does not cause the pipe to be rendered again.\n * To ensure that the pipe is executed, you must create a new `Date` object.\n *\n * Only the `en-US` locale data comes with Angular. To localize dates\n * in another language, you must import the corresponding locale data.\n * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.\n *\n * The time zone of the formatted value can be specified either by passing it in as the second\n * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_TIMEZONE`\n * injection token. The value that is passed in as the second parameter takes precedence over\n * the one defined using the injection token.\n *\n * @see `formatDate()`\n *\n *\n * @usageNotes\n *\n * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to\n * reformat the date on every change-detection cycle, treat the date as an immutable object\n * and change the reference when the pipe needs to run again.\n *\n * ### Pre-defined format options\n *\n * | Option | Equivalent to | Examples (given in `en-US` locale) |\n * |---------------|-------------------------------------|-------------------------------------------------|\n * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` |\n * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` |\n * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` |\n * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |\n * | `'shortDate'` | `'M/d/yy'` | `6/15/15` |\n * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` |\n * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` |\n * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` |\n * | `'shortTime'` | `'h:mm a'` | `9:03 AM` |\n * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` |\n * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` |\n * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` |\n *\n * ### Custom format options\n *\n * You can construct a format string using symbols to specify the components\n * of a date-time value, as described in the following table.\n * Format details depend on the locale.\n * Fields marked with (*) are only available in the extra data set for the given locale.\n *\n * | Field type | Format | Description | Example Value |\n * |-------------------- |-------------|---------------------------------------------------------------|------------------------------------------------------------|\n * | Era | G, GG & GGG | Abbreviated | AD |\n * | | GGGG | Wide | Anno Domini |\n * | | GGGGG | Narrow | A |\n * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |\n * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |\n * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |\n * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |\n * | Month | M | Numeric: 1 digit | 9, 12 |\n * | | MM | Numeric: 2 digits + zero padded | 09, 12 |\n * | | MMM | Abbreviated | Sep |\n * | | MMMM | Wide | September |\n * | | MMMMM | Narrow | S |\n * | Month standalone | L | Numeric: 1 digit | 9, 12 |\n * | | LL | Numeric: 2 digits + zero padded | 09, 12 |\n * | | LLL | Abbreviated | Sep |\n * | | LLLL | Wide | September |\n * | | LLLLL | Narrow | S |\n * | Week of year | w | Numeric: minimum digits | 1... 53 |\n * | | ww | Numeric: 2 digits + zero padded | 01... 53 |\n * | Week of month | W | Numeric: 1 digit | 1... 5 |\n * | Day of month | d | Numeric: minimum digits | 1 |\n * | | dd | Numeric: 2 digits + zero padded | 01 |\n * | Week day | E, EE & EEE | Abbreviated | Tue |\n * | | EEEE | Wide | Tuesday |\n * | | EEEEE | Narrow | T |\n * | | EEEEEE | Short | Tu |\n * | Week day standalone | c, cc | Numeric: 1 digit | 2 |\n * | | ccc | Abbreviated | Tue |\n * | | cccc | Wide | Tuesday |\n * | | ccccc | Narrow | T |\n * | | cccccc | Short | Tu |\n * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |\n * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |\n * | | aaaaa | Narrow | a/p |\n * | Period* | B, BB & BBB | Abbreviated | mid. |\n * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | BBBBB | Narrow | md |\n * | Period standalone* | b, bb & bbb | Abbreviated | mid. |\n * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |\n * | | bbbbb | Narrow | md |\n * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |\n * | | hh | Numeric: 2 digits + zero padded | 01, 12 |\n * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |\n * | | HH | Numeric: 2 digits + zero padded | 00, 23 |\n * | Minute | m | Numeric: minimum digits | 8, 59 |\n * | | mm | Numeric: 2 digits + zero padded | 08, 59 |\n * | Second | s | Numeric: minimum digits | 0... 59 |\n * | | ss | Numeric: 2 digits + zero padded | 00... 59 |\n * | Fractional seconds | S | Numeric: 1 digit | 0... 9 |\n * | | SS | Numeric: 2 digits + zero padded | 00... 99 |\n * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |\n * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |\n * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |\n * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |\n * | | ZZZZ | Long localized GMT format | GMT-8:00 |\n * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |\n * | | O, OO & OOO | Short localized GMT format | GMT-8 |\n * | | OOOO | Long localized GMT format | GMT-08:00 |\n *\n *\n * ### Format examples\n *\n * These examples transform a date into various formats,\n * assuming that `dateObj` is a JavaScript `Date` object for\n * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,\n * given in the local time for the `en-US` locale.\n *\n * ```\n * {{ dateObj | date }} // output is 'Jun 15, 2015'\n * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'\n * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'\n * {{ dateObj | date:'mm:ss' }} // output is '43:11'\n * ```\n *\n * ### Usage example\n *\n * The following component uses a date pipe to display the current date in different formats.\n *\n * ```\n * @Component({\n * selector: 'date-pipe',\n * template: `<div>\n * <p>Today is {{today | date}}</p>\n * <p>Or if you prefer, {{today | date:'fullDate'}}</p>\n * <p>The time is {{today | date:'h:mm a z'}}</p>\n * </div>`\n * })\n * // Get the current date and time as a date-time value.\n * export class DatePipeComponent {\n * today: number = Date.now();\n * }\n * ```\n *\n * @publicApi\n */\n// clang-format on\nclass DatePipe {\n constructor(locale, defaultTimezone) {\n this.locale = locale;\n this.defaultTimezone = defaultTimezone;\n }\n transform(value, format = 'mediumDate', timezone, locale) {\n var _a;\n if (value == null || value === '' || value !== value)\n return null;\n try {\n return formatDate(value, format, locale || this.locale, (_a = timezone !== null && timezone !== void 0 ? timezone : this.defaultTimezone) !== null && _a !== void 0 ? _a : undefined);\n }\n catch (error) {\n throw invalidPipeArgumentError(DatePipe, error.message);\n }\n }\n}\nDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });\nDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DatePipe, name: \"date\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DatePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'date', pure: true }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DATE_PIPE_DEFAULT_TIMEZONE]\n }, {\n type: Optional\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst _INTERPOLATION_REGEXP = /#/g;\n/**\n * @ngModule CommonModule\n * @description\n *\n * Maps a value to a string that pluralizes the value according to locale rules.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}\n *\n * @publicApi\n */\nclass I18nPluralPipe {\n constructor(_localization) {\n this._localization = _localization;\n }\n /**\n * @param value the number to be formatted\n * @param pluralMap an object that mimics the ICU format, see\n * http://userguide.icu-project.org/formatparse/messages.\n * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by\n * default).\n */\n transform(value, pluralMap, locale) {\n if (value == null)\n return '';\n if (typeof pluralMap !== 'object' || pluralMap === null) {\n throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);\n }\n const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);\n return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());\n }\n}\nI18nPluralPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });\nI18nPluralPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nPluralPipe, name: \"i18nPlural\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nPluralPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'i18nPlural', pure: true }]\n }], ctorParameters: function () { return [{ type: NgLocalization }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n * @description\n *\n * Generic selector that displays the string that matches the current value.\n *\n * If none of the keys of the `mapping` match the `value`, then the content\n * of the `other` key is returned when present, otherwise an empty string is returned.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}\n *\n * @publicApi\n */\nclass I18nSelectPipe {\n /**\n * @param value a string to be internationalized.\n * @param mapping an object that indicates the text that should be displayed\n * for different values of the provided `value`.\n */\n transform(value, mapping) {\n if (value == null)\n return '';\n if (typeof mapping !== 'object' || typeof value !== 'string') {\n throw invalidPipeArgumentError(I18nSelectPipe, mapping);\n }\n if (mapping.hasOwnProperty(value)) {\n return mapping[value];\n }\n if (mapping.hasOwnProperty('other')) {\n return mapping['other'];\n }\n return '';\n }\n}\nI18nSelectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nI18nSelectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nSelectPipe, name: \"i18nSelect\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: I18nSelectPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'i18nSelect', pure: true }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n * @description\n *\n * Converts a value into its JSON-format representation. Useful for debugging.\n *\n * @usageNotes\n *\n * The following component uses a JSON pipe to convert an object\n * to JSON format, and displays the string in both formats for comparison.\n *\n * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}\n *\n * @publicApi\n */\nclass JsonPipe {\n /**\n * @param value A value of any type to convert into a JSON-format string.\n */\n transform(value) {\n return JSON.stringify(value, null, 2);\n }\n}\nJsonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nJsonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonPipe, name: \"json\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'json', pure: false }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction makeKeyValuePair(key, value) {\n return { key: key, value: value };\n}\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms Object or Map into an array of key value pairs.\n *\n * The output array will be ordered by keys.\n * By default the comparator will be by Unicode point value.\n * You can optionally pass a compareFn if your keys are complex types.\n *\n * @usageNotes\n * ### Examples\n *\n * This examples show how an Object or a Map can be iterated by ngFor with the use of this\n * keyvalue pipe.\n *\n * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}\n *\n * @publicApi\n */\nclass KeyValuePipe {\n constructor(differs) {\n this.differs = differs;\n this.keyValues = [];\n this.compareFn = defaultComparator;\n }\n transform(input, compareFn = defaultComparator) {\n if (!input || (!(input instanceof Map) && typeof input !== 'object')) {\n return null;\n }\n if (!this.differ) {\n // make a differ for whatever type we've been passed in\n this.differ = this.differs.find(input).create();\n }\n const differChanges = this.differ.diff(input);\n const compareFnChanged = compareFn !== this.compareFn;\n if (differChanges) {\n this.keyValues = [];\n differChanges.forEachItem((r) => {\n this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));\n });\n }\n if (differChanges || compareFnChanged) {\n this.keyValues.sort(compareFn);\n this.compareFn = compareFn;\n }\n return this.keyValues;\n }\n}\nKeyValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });\nKeyValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyValuePipe, name: \"keyvalue\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: KeyValuePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'keyvalue', pure: false }]\n }], ctorParameters: function () { return [{ type: i0.KeyValueDiffers }]; } });\nfunction defaultComparator(keyValueA, keyValueB) {\n const a = keyValueA.key;\n const b = keyValueB.key;\n // if same exit with 0;\n if (a === b)\n return 0;\n // make sure that undefined are at the end of the sort.\n if (a === undefined)\n return 1;\n if (b === undefined)\n return -1;\n // make sure that nulls are at the end of the sort.\n if (a === null)\n return 1;\n if (b === null)\n return -1;\n if (typeof a == 'string' && typeof b == 'string') {\n return a < b ? -1 : 1;\n }\n if (typeof a == 'number' && typeof b == 'number') {\n return a - b;\n }\n if (typeof a == 'boolean' && typeof b == 'boolean') {\n return a < b ? -1 : 1;\n }\n // `a` and `b` are of different types. Compare their string values.\n const aString = String(a);\n const bString = String(b);\n return aString == bString ? 0 : aString < bString ? -1 : 1;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n * @description\n *\n * Formats a value according to digit options and locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * @see `formatNumber()`\n *\n * @usageNotes\n *\n * ### digitsInfo\n *\n * The value's decimal representation is specified by the `digitsInfo`\n * parameter, written in the following format:<br>\n *\n * ```\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\n * ```\n *\n * - `minIntegerDigits`:\n * The minimum number of integer digits before the decimal point.\n * Default is 1.\n *\n * - `minFractionDigits`:\n * The minimum number of digits after the decimal point.\n * Default is 0.\n *\n * - `maxFractionDigits`:\n * The maximum number of digits after the decimal point.\n * Default is 3.\n *\n * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:\n *\n * ```\n * {{3.6 | number: '1.0-0'}}\n * <!--will output '4'-->\n *\n * {{-3.6 | number:'1.0-0'}}\n * <!--will output '-4'-->\n * ```\n *\n * ### locale\n *\n * `locale` will format a value according to locale rules.\n * Locale determines group sizing and separator,\n * decimal point character, and other locale-specific configurations.\n *\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n *\n * See [Setting your app locale](guide/i18n-common-locale-id).\n *\n * ### Example\n *\n * The following code shows how the pipe transforms values\n * according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>\n *\n * @publicApi\n */\nclass DecimalPipe {\n constructor(_locale) {\n this._locale = _locale;\n }\n /**\n * @param value The value to be formatted.\n * @param digitsInfo Sets digit and decimal representation.\n * [See more](#digitsinfo).\n * @param locale Specifies what locale format rules to use.\n * [See more](#locale).\n */\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale = locale || this._locale;\n try {\n const num = strToNumber(value);\n return formatNumber(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(DecimalPipe, error.message);\n }\n }\n}\nDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DecimalPipe, name: \"number\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: DecimalPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'number' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }];\n } });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a percentage\n * string, formatted according to locale rules that determine group sizing and\n * separator, decimal-point character, and other locale-specific\n * configurations.\n *\n * @see `formatPercent()`\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>\n *\n * @publicApi\n */\nclass PercentPipe {\n constructor(_locale) {\n this._locale = _locale;\n }\n /**\n *\n * @param value The number to be formatted as a percentage.\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `0`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `0`.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n-common-locale-id).\n */\n transform(value, digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale = locale || this._locale;\n try {\n const num = strToNumber(value);\n return formatPercent(num, locale, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(PercentPipe, error.message);\n }\n }\n}\nPercentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });\nPercentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PercentPipe, name: \"percent\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: PercentPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'percent' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }];\n } });\n/**\n * @ngModule CommonModule\n * @description\n *\n * Transforms a number to a currency string, formatted according to locale rules\n * that determine group sizing and separator, decimal-point character,\n * and other locale-specific configurations.\n *\n * {@a currency-code-deprecation}\n * <div class=\"alert is-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v11 the default currency code will be taken from the current locale identified by\n * the `LOCALE_ID` token. See the [i18n guide](guide/i18n-common-locale-id) for\n * more information.**\n *\n * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in\n * your application `NgModule`:\n *\n * ```ts\n * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}\n * ```\n *\n * </div>\n *\n * @see `getCurrencySymbol()`\n * @see `formatCurrency()`\n *\n * @usageNotes\n * The following code shows how the pipe transforms numbers\n * into text strings, according to various format specifications,\n * where the caller's default locale is `en-US`.\n *\n * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>\n *\n * @publicApi\n */\nclass CurrencyPipe {\n constructor(_locale, _defaultCurrencyCode = 'USD') {\n this._locale = _locale;\n this._defaultCurrencyCode = _defaultCurrencyCode;\n }\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n-common-locale-id).\n */\n transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {\n if (!isValue(value))\n return null;\n locale = locale || this._locale;\n if (typeof display === 'boolean') {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {\n console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);\n }\n display = display ? 'symbol' : 'code';\n }\n let currency = currencyCode || this._defaultCurrencyCode;\n if (display !== 'code') {\n if (display === 'symbol' || display === 'symbol-narrow') {\n currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);\n }\n else {\n currency = display;\n }\n }\n try {\n const num = strToNumber(value);\n return formatCurrency(num, locale, currency, currencyCode, digitsInfo);\n }\n catch (error) {\n throw invalidPipeArgumentError(CurrencyPipe, error.message);\n }\n }\n}\nCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });\nCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CurrencyPipe, name: \"currency\" });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CurrencyPipe, decorators: [{\n type: Pipe,\n args: [{ name: 'currency' }]\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [DEFAULT_CURRENCY_CODE]\n }] }];\n } });\nfunction isValue(value) {\n return !(value == null || value === '' || value !== value);\n}\n/**\n * Transforms a string into a number (if needed).\n */\nfunction strToNumber(value) {\n // Convert strings to numbers\n if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {\n return Number(value);\n }\n if (typeof value !== 'number') {\n throw new Error(`${value} is not a number`);\n }\n return value;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @ngModule CommonModule\n * @description\n *\n * Creates a new `Array` or `String` containing a subset (slice) of the elements.\n *\n * @usageNotes\n *\n * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`\n * and `String.prototype.slice()`.\n *\n * When operating on an `Array`, the returned `Array` is always a copy even when all\n * the elements are being returned.\n *\n * When operating on a blank value, the pipe returns the blank value.\n *\n * ### List Example\n *\n * This `ngFor` example:\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}\n *\n * produces the following:\n *\n * ```html\n * <li>b</li>\n * <li>c</li>\n * ```\n *\n * ### String Examples\n *\n * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}\n *\n * @publicApi\n */\nclass SlicePipe {\n transform(value, start, end) {\n if (value == null)\n return null;\n if (!this.supports(value)) {\n throw invalidPipeArgumentError(SlicePipe, value);\n }\n return value.slice(start, end);\n }\n supports(obj) {\n return typeof obj === 'string' || Array.isArray(obj);\n }\n}\nSlicePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });\nSlicePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SlicePipe, name: \"slice\", pure: false });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: SlicePipe, decorators: [{\n type: Pipe,\n args: [{ name: 'slice', pure: false }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A collection of Angular pipes that are likely to be used in each and every application.\n */\nconst COMMON_PIPES = [\n AsyncPipe,\n UpperCasePipe,\n LowerCasePipe,\n JsonPipe,\n SlicePipe,\n DecimalPipe,\n PercentPipe,\n TitleCasePipe,\n CurrencyPipe,\n DatePipe,\n I18nPluralPipe,\n I18nSelectPipe,\n KeyValuePipe,\n];\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Note: This does not contain the location providers,\n// as they need some platform specific implementations to work.\n/**\n * Exports all the basic Angular directives and pipes,\n * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command.\n *\n * * The `providers` options configure the NgModule's injector to provide\n * localization dependencies to members.\n * * The `exports` options make the declared directives and pipes available for import\n * by other NgModules.\n *\n * @publicApi\n */\nclass CommonModule {\n}\nCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CommonModule, declarations: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] });\nCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CommonModule, providers: [\n { provide: NgLocalization, useClass: NgLocaleLocalization },\n ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: CommonModule, decorators: [{\n type: NgModule,\n args: [{\n declarations: [COMMON_DIRECTIVES, COMMON_PIPES],\n exports: [COMMON_DIRECTIVES, COMMON_PIPES],\n providers: [\n { provide: NgLocalization, useClass: NgLocaleLocalization },\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst PLATFORM_BROWSER_ID = 'browser';\nconst PLATFORM_SERVER_ID = 'server';\nconst PLATFORM_WORKER_APP_ID = 'browserWorkerApp';\nconst PLATFORM_WORKER_UI_ID = 'browserWorkerUi';\n/**\n * Returns whether a platform id represents a browser platform.\n * @publicApi\n */\nfunction isPlatformBrowser(platformId) {\n return platformId === PLATFORM_BROWSER_ID;\n}\n/**\n * Returns whether a platform id represents a server platform.\n * @publicApi\n */\nfunction isPlatformServer(platformId) {\n return platformId === PLATFORM_SERVER_ID;\n}\n/**\n * Returns whether a platform id represents a web worker app platform.\n * @publicApi\n */\nfunction isPlatformWorkerApp(platformId) {\n return platformId === PLATFORM_WORKER_APP_ID;\n}\n/**\n * Returns whether a platform id represents a web worker UI platform.\n * @publicApi\n */\nfunction isPlatformWorkerUi(platformId) {\n return platformId === PLATFORM_WORKER_UI_ID;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @publicApi\n */\nconst VERSION = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.\n *\n * @publicApi\n */\nclass ViewportScroller {\n}\n// De-sugared tree-shakable injection\n// See #23917\n/** @nocollapse */\nViewportScroller.ɵprov = ɵɵdefineInjectable({\n token: ViewportScroller,\n providedIn: 'root',\n factory: () => new BrowserViewportScroller(ɵɵinject(DOCUMENT), window)\n});\n/**\n * Manages the scroll position for a browser window.\n */\nclass BrowserViewportScroller {\n constructor(document, window) {\n this.document = document;\n this.window = window;\n this.offset = () => [0, 0];\n }\n /**\n * Configures the top offset used when scrolling to an anchor.\n * @param offset A position in screen coordinates (a tuple with x and y values)\n * or a function that returns the top offset position.\n *\n */\n setOffset(offset) {\n if (Array.isArray(offset)) {\n this.offset = () => offset;\n }\n else {\n this.offset = offset;\n }\n }\n /**\n * Retrieves the current scroll position.\n * @returns The position in screen coordinates.\n */\n getScrollPosition() {\n if (this.supportsScrolling()) {\n return [this.window.pageXOffset, this.window.pageYOffset];\n }\n else {\n return [0, 0];\n }\n }\n /**\n * Sets the scroll position.\n * @param position The new position in screen coordinates.\n */\n scrollToPosition(position) {\n if (this.supportsScrolling()) {\n this.window.scrollTo(position[0], position[1]);\n }\n }\n /**\n * Scrolls to an element and attempts to focus the element.\n *\n * Note that the function name here is misleading in that the target string may be an ID for a\n * non-anchor element.\n *\n * @param target The ID of an element or name of the anchor.\n *\n * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document\n * @see https://html.spec.whatwg.org/#scroll-to-fragid\n */\n scrollToAnchor(target) {\n if (!this.supportsScrolling()) {\n return;\n }\n const elSelected = findAnchorFromDocument(this.document, target);\n if (elSelected) {\n this.scrollToElement(elSelected);\n // After scrolling to the element, the spec dictates that we follow the focus steps for the\n // target. Rather than following the robust steps, simply attempt focus.\n this.attemptFocus(elSelected);\n }\n }\n /**\n * Disables automatic scroll restoration provided by the browser.\n */\n setHistoryScrollRestoration(scrollRestoration) {\n if (this.supportScrollRestoration()) {\n const history = this.window.history;\n if (history && history.scrollRestoration) {\n history.scrollRestoration = scrollRestoration;\n }\n }\n }\n /**\n * Scrolls to an element using the native offset and the specified offset set on this scroller.\n *\n * The offset can be used when we know that there is a floating header and scrolling naively to an\n * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.\n */\n scrollToElement(el) {\n const rect = el.getBoundingClientRect();\n const left = rect.left + this.window.pageXOffset;\n const top = rect.top + this.window.pageYOffset;\n const offset = this.offset();\n this.window.scrollTo(left - offset[0], top - offset[1]);\n }\n /**\n * Calls `focus` on the `focusTarget` and returns `true` if the element was focused successfully.\n *\n * If `false`, further steps may be necessary to determine a valid substitute to be focused\n * instead.\n *\n * @see https://html.spec.whatwg.org/#get-the-focusable-area\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus\n * @see https://html.spec.whatwg.org/#focusable-area\n */\n attemptFocus(focusTarget) {\n focusTarget.focus();\n return this.document.activeElement === focusTarget;\n }\n /**\n * We only support scroll restoration when we can get a hold of window.\n * This means that we do not support this behavior when running in a web worker.\n *\n * Lifting this restriction right now would require more changes in the dom adapter.\n * Since webworkers aren't widely used, we will lift it once RouterScroller is\n * battle-tested.\n */\n supportScrollRestoration() {\n try {\n if (!this.supportsScrolling()) {\n return false;\n }\n // The `scrollRestoration` property could be on the `history` instance or its prototype.\n const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||\n getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));\n // We can write to the `scrollRestoration` property if it is a writable data field or it has a\n // setter function.\n return !!scrollRestorationDescriptor &&\n !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);\n }\n catch (_a) {\n return false;\n }\n }\n supportsScrolling() {\n try {\n return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;\n }\n catch (_a) {\n return false;\n }\n }\n}\nfunction getScrollRestorationProperty(obj) {\n return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration');\n}\nfunction findAnchorFromDocument(document, target) {\n const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];\n if (documentResult) {\n return documentResult;\n }\n // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we\n // have to traverse the DOM manually and do the lookup through the shadow roots.\n if (typeof document.createTreeWalker === 'function' && document.body &&\n (document.body.createShadowRoot || document.body.attachShadow)) {\n const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);\n let currentNode = treeWalker.currentNode;\n while (currentNode) {\n const shadowRoot = currentNode.shadowRoot;\n if (shadowRoot) {\n // Note that `ShadowRoot` doesn't support `getElementsByName`\n // so we have to fall back to `querySelector`.\n const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);\n if (result) {\n return result;\n }\n }\n currentNode = treeWalker.nextNode();\n }\n }\n return null;\n}\n/**\n * Provides an empty implementation of the viewport scroller.\n */\nclass NullViewportScroller {\n /**\n * Empty implementation\n */\n setOffset(offset) { }\n /**\n * Empty implementation\n */\n getScrollPosition() {\n return [0, 0];\n }\n /**\n * Empty implementation\n */\n scrollToPosition(position) { }\n /**\n * Empty implementation\n */\n scrollToAnchor(anchor) { }\n /**\n * Empty implementation\n */\n setHistoryScrollRestoration(scrollRestoration) { }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_TIMEZONE, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, XhrFactory, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, registerLocaleData, BrowserPlatformLocation as ɵBrowserPlatformLocation, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, getDOM as ɵgetDOM, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i1 from '@angular/common';\nimport { DOCUMENT, ɵparseCookieValue, XhrFactory as XhrFactory$1 } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, InjectionToken, Inject, PLATFORM_ID, NgModule } from '@angular/core';\nimport { of, Observable } from 'rxjs';\nimport { concatMap, filter, map } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a\n * `HttpResponse`.\n *\n * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the\n * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the\n * `HttpBackend`.\n *\n * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.\n *\n * @publicApi\n */\nclass HttpHandler {\n}\n/**\n * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.\n *\n * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.\n *\n * When injected, `HttpBackend` dispatches requests directly to the backend, without going\n * through the interceptor chain.\n *\n * @publicApi\n */\nclass HttpBackend {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents the header configuration options for an HTTP request.\n * Instances are immutable. Modifying methods return a cloned\n * instance with the change. The original object is never changed.\n *\n * @publicApi\n */\nclass HttpHeaders {\n /** Constructs a new HTTP header object with the given values.*/\n constructor(headers) {\n /**\n * Internal map of lowercased header names to the normalized\n * form of the name (the form seen first).\n */\n this.normalizedNames = new Map();\n /**\n * Queued updates to be materialized the next initialization.\n */\n this.lazyUpdate = null;\n if (!headers) {\n this.headers = new Map();\n }\n else if (typeof headers === 'string') {\n this.lazyInit = () => {\n this.headers = new Map();\n headers.split('\\n').forEach(line => {\n const index = line.indexOf(':');\n if (index > 0) {\n const name = line.slice(0, index);\n const key = name.toLowerCase();\n const value = line.slice(index + 1).trim();\n this.maybeSetNormalizedName(name, key);\n if (this.headers.has(key)) {\n this.headers.get(key).push(value);\n }\n else {\n this.headers.set(key, [value]);\n }\n }\n });\n };\n }\n else {\n this.lazyInit = () => {\n this.headers = new Map();\n Object.keys(headers).forEach(name => {\n let values = headers[name];\n const key = name.toLowerCase();\n if (typeof values === 'string') {\n values = [values];\n }\n if (values.length > 0) {\n this.headers.set(key, values);\n this.maybeSetNormalizedName(name, key);\n }\n });\n };\n }\n }\n /**\n * Checks for existence of a given header.\n *\n * @param name The header name to check for existence.\n *\n * @returns True if the header exists, false otherwise.\n */\n has(name) {\n this.init();\n return this.headers.has(name.toLowerCase());\n }\n /**\n * Retrieves the first value of a given header.\n *\n * @param name The header name.\n *\n * @returns The value string if the header exists, null otherwise\n */\n get(name) {\n this.init();\n const values = this.headers.get(name.toLowerCase());\n return values && values.length > 0 ? values[0] : null;\n }\n /**\n * Retrieves the names of the headers.\n *\n * @returns A list of header names.\n */\n keys() {\n this.init();\n return Array.from(this.normalizedNames.values());\n }\n /**\n * Retrieves a list of values for a given header.\n *\n * @param name The header name from which to retrieve values.\n *\n * @returns A string of values if the header exists, null otherwise.\n */\n getAll(name) {\n this.init();\n return this.headers.get(name.toLowerCase()) || null;\n }\n /**\n * Appends a new value to the existing set of values for a header\n * and returns them in a clone of the original instance.\n *\n * @param name The header name for which to append the values.\n * @param value The value to append.\n *\n * @returns A clone of the HTTP headers object with the value appended to the given header.\n */\n append(name, value) {\n return this.clone({ name, value, op: 'a' });\n }\n /**\n * Sets or modifies a value for a given header in a clone of the original instance.\n * If the header already exists, its value is replaced with the given value\n * in the returned object.\n *\n * @param name The header name.\n * @param value The value or values to set or overide for the given header.\n *\n * @returns A clone of the HTTP headers object with the newly set header value.\n */\n set(name, value) {\n return this.clone({ name, value, op: 's' });\n }\n /**\n * Deletes values for a given header in a clone of the original instance.\n *\n * @param name The header name.\n * @param value The value or values to delete for the given header.\n *\n * @returns A clone of the HTTP headers object with the given value deleted.\n */\n delete(name, value) {\n return this.clone({ name, value, op: 'd' });\n }\n maybeSetNormalizedName(name, lcName) {\n if (!this.normalizedNames.has(lcName)) {\n this.normalizedNames.set(lcName, name);\n }\n }\n init() {\n if (!!this.lazyInit) {\n if (this.lazyInit instanceof HttpHeaders) {\n this.copyFrom(this.lazyInit);\n }\n else {\n this.lazyInit();\n }\n this.lazyInit = null;\n if (!!this.lazyUpdate) {\n this.lazyUpdate.forEach(update => this.applyUpdate(update));\n this.lazyUpdate = null;\n }\n }\n }\n copyFrom(other) {\n other.init();\n Array.from(other.headers.keys()).forEach(key => {\n this.headers.set(key, other.headers.get(key));\n this.normalizedNames.set(key, other.normalizedNames.get(key));\n });\n }\n clone(update) {\n const clone = new HttpHeaders();\n clone.lazyInit =\n (!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;\n clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);\n return clone;\n }\n applyUpdate(update) {\n const key = update.name.toLowerCase();\n switch (update.op) {\n case 'a':\n case 's':\n let value = update.value;\n if (typeof value === 'string') {\n value = [value];\n }\n if (value.length === 0) {\n return;\n }\n this.maybeSetNormalizedName(update.name, key);\n const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];\n base.push(...value);\n this.headers.set(key, base);\n break;\n case 'd':\n const toDelete = update.value;\n if (!toDelete) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n let existing = this.headers.get(key);\n if (!existing) {\n return;\n }\n existing = existing.filter(value => toDelete.indexOf(value) === -1);\n if (existing.length === 0) {\n this.headers.delete(key);\n this.normalizedNames.delete(key);\n }\n else {\n this.headers.set(key, existing);\n }\n }\n break;\n }\n }\n /**\n * @internal\n */\n forEach(fn) {\n this.init();\n Array.from(this.normalizedNames.keys())\n .forEach(key => fn(this.normalizedNames.get(key), this.headers.get(key)));\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Provides encoding and decoding of URL parameter and query-string values.\n *\n * Serializes and parses URL parameter keys and values to encode and decode them.\n * If you pass URL query parameters without encoding,\n * the query parameters can be misinterpreted at the receiving end.\n *\n *\n * @publicApi\n */\nclass HttpUrlEncodingCodec {\n /**\n * Encodes a key name for a URL parameter or query-string.\n * @param key The key name.\n * @returns The encoded key name.\n */\n encodeKey(key) {\n return standardEncoding(key);\n }\n /**\n * Encodes the value of a URL parameter or query-string.\n * @param value The value.\n * @returns The encoded value.\n */\n encodeValue(value) {\n return standardEncoding(value);\n }\n /**\n * Decodes an encoded URL parameter or query-string key.\n * @param key The encoded key name.\n * @returns The decoded key name.\n */\n decodeKey(key) {\n return decodeURIComponent(key);\n }\n /**\n * Decodes an encoded URL parameter or query-string value.\n * @param value The encoded value.\n * @returns The decoded value.\n */\n decodeValue(value) {\n return decodeURIComponent(value);\n }\n}\nfunction paramParser(rawParams, codec) {\n const map = new Map();\n if (rawParams.length > 0) {\n // The `window.location.search` can be used while creating an instance of the `HttpParams` class\n // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`\n // may start with the `?` char, so we strip it if it's present.\n const params = rawParams.replace(/^\\?/, '').split('&');\n params.forEach((param) => {\n const eqIdx = param.indexOf('=');\n const [key, val] = eqIdx == -1 ?\n [codec.decodeKey(param), ''] :\n [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];\n const list = map.get(key) || [];\n list.push(val);\n map.set(key, list);\n });\n }\n return map;\n}\n/**\n * Encode input string with standard encodeURIComponent and then un-encode specific characters.\n */\nconst STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi;\nconst STANDARD_ENCODING_REPLACEMENTS = {\n '40': '@',\n '3A': ':',\n '24': '$',\n '2C': ',',\n '3B': ';',\n '2B': '+',\n '3D': '=',\n '3F': '?',\n '2F': '/',\n};\nfunction standardEncoding(v) {\n return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => { var _a; return (_a = STANDARD_ENCODING_REPLACEMENTS[t]) !== null && _a !== void 0 ? _a : s; });\n}\nfunction valueToString(value) {\n return `${value}`;\n}\n/**\n * An HTTP request/response body that represents serialized parameters,\n * per the MIME type `application/x-www-form-urlencoded`.\n *\n * This class is immutable; all mutation operations return a new instance.\n *\n * @publicApi\n */\nclass HttpParams {\n constructor(options = {}) {\n this.updates = null;\n this.cloneFrom = null;\n this.encoder = options.encoder || new HttpUrlEncodingCodec();\n if (!!options.fromString) {\n if (!!options.fromObject) {\n throw new Error(`Cannot specify both fromString and fromObject.`);\n }\n this.map = paramParser(options.fromString, this.encoder);\n }\n else if (!!options.fromObject) {\n this.map = new Map();\n Object.keys(options.fromObject).forEach(key => {\n const value = options.fromObject[key];\n this.map.set(key, Array.isArray(value) ? value : [value]);\n });\n }\n else {\n this.map = null;\n }\n }\n /**\n * Reports whether the body includes one or more values for a given parameter.\n * @param param The parameter name.\n * @returns True if the parameter has one or more values,\n * false if it has no value or is not present.\n */\n has(param) {\n this.init();\n return this.map.has(param);\n }\n /**\n * Retrieves the first value for a parameter.\n * @param param The parameter name.\n * @returns The first value of the given parameter,\n * or `null` if the parameter is not present.\n */\n get(param) {\n this.init();\n const res = this.map.get(param);\n return !!res ? res[0] : null;\n }\n /**\n * Retrieves all values for a parameter.\n * @param param The parameter name.\n * @returns All values in a string array,\n * or `null` if the parameter not present.\n */\n getAll(param) {\n this.init();\n return this.map.get(param) || null;\n }\n /**\n * Retrieves all the parameters for this body.\n * @returns The parameter names in a string array.\n */\n keys() {\n this.init();\n return Array.from(this.map.keys());\n }\n /**\n * Appends a new value to existing values for a parameter.\n * @param param The parameter name.\n * @param value The new value to add.\n * @return A new body with the appended value.\n */\n append(param, value) {\n return this.clone({ param, value, op: 'a' });\n }\n /**\n * Constructs a new body with appended values for the given parameter name.\n * @param params parameters and values\n * @return A new body with the new value.\n */\n appendAll(params) {\n const updates = [];\n Object.keys(params).forEach(param => {\n const value = params[param];\n if (Array.isArray(value)) {\n value.forEach(_value => {\n updates.push({ param, value: _value, op: 'a' });\n });\n }\n else {\n updates.push({ param, value: value, op: 'a' });\n }\n });\n return this.clone(updates);\n }\n /**\n * Replaces the value for a parameter.\n * @param param The parameter name.\n * @param value The new value.\n * @return A new body with the new value.\n */\n set(param, value) {\n return this.clone({ param, value, op: 's' });\n }\n /**\n * Removes a given value or all values from a parameter.\n * @param param The parameter name.\n * @param value The value to remove, if provided.\n * @return A new body with the given value removed, or with all values\n * removed if no value is specified.\n */\n delete(param, value) {\n return this.clone({ param, value, op: 'd' });\n }\n /**\n * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are\n * separated by `&`s.\n */\n toString() {\n this.init();\n return this.keys()\n .map(key => {\n const eKey = this.encoder.encodeKey(key);\n // `a: ['1']` produces `'a=1'`\n // `b: []` produces `''`\n // `c: ['1', '2']` produces `'c=1&c=2'`\n return this.map.get(key).map(value => eKey + '=' + this.encoder.encodeValue(value))\n .join('&');\n })\n // filter out empty values because `b: []` produces `''`\n // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't\n .filter(param => param !== '')\n .join('&');\n }\n clone(update) {\n const clone = new HttpParams({ encoder: this.encoder });\n clone.cloneFrom = this.cloneFrom || this;\n clone.updates = (this.updates || []).concat(update);\n return clone;\n }\n init() {\n if (this.map === null) {\n this.map = new Map();\n }\n if (this.cloneFrom !== null) {\n this.cloneFrom.init();\n this.cloneFrom.keys().forEach(key => this.map.set(key, this.cloneFrom.map.get(key)));\n this.updates.forEach(update => {\n switch (update.op) {\n case 'a':\n case 's':\n const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];\n base.push(valueToString(update.value));\n this.map.set(update.param, base);\n break;\n case 'd':\n if (update.value !== undefined) {\n let base = this.map.get(update.param) || [];\n const idx = base.indexOf(valueToString(update.value));\n if (idx !== -1) {\n base.splice(idx, 1);\n }\n if (base.length > 0) {\n this.map.set(update.param, base);\n }\n else {\n this.map.delete(update.param);\n }\n }\n else {\n this.map.delete(update.param);\n break;\n }\n }\n });\n this.cloneFrom = this.updates = null;\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A token used to manipulate and access values stored in `HttpContext`.\n *\n * @publicApi\n */\nclass HttpContextToken {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n}\n/**\n * Http context stores arbitrary user defined values and ensures type safety without\n * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.\n *\n * This context is mutable and is shared between cloned requests unless explicitly specified.\n *\n * @usageNotes\n *\n * ### Usage Example\n *\n * ```typescript\n * // inside cache.interceptors.ts\n * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);\n *\n * export class CacheInterceptor implements HttpInterceptor {\n *\n * intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {\n * if (req.context.get(IS_CACHE_ENABLED) === true) {\n * return ...;\n * }\n * return delegate.handle(req);\n * }\n * }\n *\n * // inside a service\n *\n * this.httpClient.get('/api/weather', {\n * context: new HttpContext().set(IS_CACHE_ENABLED, true)\n * }).subscribe(...);\n * ```\n *\n * @publicApi\n */\nclass HttpContext {\n constructor() {\n this.map = new Map();\n }\n /**\n * Store a value in the context. If a value is already present it will be overwritten.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n * @param value The value to store.\n *\n * @returns A reference to itself for easy chaining.\n */\n set(token, value) {\n this.map.set(token, value);\n return this;\n }\n /**\n * Retrieve the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns The stored value or default if one is defined.\n */\n get(token) {\n if (!this.map.has(token)) {\n this.map.set(token, token.defaultValue());\n }\n return this.map.get(token);\n }\n /**\n * Delete the value associated with the given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns A reference to itself for easy chaining.\n */\n delete(token) {\n this.map.delete(token);\n return this;\n }\n /**\n * Checks for existence of a given token.\n *\n * @param token The reference to an instance of `HttpContextToken`.\n *\n * @returns True if the token exists, false otherwise.\n */\n has(token) {\n return this.map.has(token);\n }\n /**\n * @returns a list of tokens currently stored in the context.\n */\n keys() {\n return this.map.keys();\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Determine whether the given HTTP method may include a body.\n */\nfunction mightHaveBody(method) {\n switch (method) {\n case 'DELETE':\n case 'GET':\n case 'HEAD':\n case 'OPTIONS':\n case 'JSONP':\n return false;\n default:\n return true;\n }\n}\n/**\n * Safely assert whether the given value is an ArrayBuffer.\n *\n * In some execution environments ArrayBuffer is not defined.\n */\nfunction isArrayBuffer(value) {\n return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;\n}\n/**\n * Safely assert whether the given value is a Blob.\n *\n * In some execution environments Blob is not defined.\n */\nfunction isBlob(value) {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n/**\n * Safely assert whether the given value is a FormData instance.\n *\n * In some execution environments FormData is not defined.\n */\nfunction isFormData(value) {\n return typeof FormData !== 'undefined' && value instanceof FormData;\n}\n/**\n * Safely assert whether the given value is a URLSearchParams instance.\n *\n * In some execution environments URLSearchParams is not defined.\n */\nfunction isUrlSearchParams(value) {\n return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;\n}\n/**\n * An outgoing HTTP request with an optional typed body.\n *\n * `HttpRequest` represents an outgoing request, including URL, method,\n * headers, body, and other request configuration options. Instances should be\n * assumed to be immutable. To modify a `HttpRequest`, the `clone`\n * method should be used.\n *\n * @publicApi\n */\nclass HttpRequest {\n constructor(method, url, third, fourth) {\n this.url = url;\n /**\n * The request body, or `null` if one isn't set.\n *\n * Bodies are not enforced to be immutable, as they can include a reference to any\n * user-defined data type. However, interceptors should take care to preserve\n * idempotence by treating them as such.\n */\n this.body = null;\n /**\n * Whether this request should be made in a way that exposes progress events.\n *\n * Progress events are expensive (change detection runs on each event) and so\n * they should only be requested if the consumer intends to monitor them.\n */\n this.reportProgress = false;\n /**\n * Whether this request should be sent with outgoing credentials (cookies).\n */\n this.withCredentials = false;\n /**\n * The expected response type of the server.\n *\n * This is used to parse the response appropriately before returning it to\n * the requestee.\n */\n this.responseType = 'json';\n this.method = method.toUpperCase();\n // Next, need to figure out which argument holds the HttpRequestInit\n // options, if any.\n let options;\n // Check whether a body argument is expected. The only valid way to omit\n // the body argument is to use a known no-body method like GET.\n if (mightHaveBody(this.method) || !!fourth) {\n // Body is the third argument, options are the fourth.\n this.body = (third !== undefined) ? third : null;\n options = fourth;\n }\n else {\n // No body required, options are the third argument. The body stays null.\n options = third;\n }\n // If options have been passed, interpret them.\n if (options) {\n // Normalize reportProgress and withCredentials.\n this.reportProgress = !!options.reportProgress;\n this.withCredentials = !!options.withCredentials;\n // Override default response type of 'json' if one is provided.\n if (!!options.responseType) {\n this.responseType = options.responseType;\n }\n // Override headers if they're provided.\n if (!!options.headers) {\n this.headers = options.headers;\n }\n if (!!options.context) {\n this.context = options.context;\n }\n if (!!options.params) {\n this.params = options.params;\n }\n }\n // If no headers have been passed in, construct a new HttpHeaders instance.\n if (!this.headers) {\n this.headers = new HttpHeaders();\n }\n // If no context have been passed in, construct a new HttpContext instance.\n if (!this.context) {\n this.context = new HttpContext();\n }\n // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.\n if (!this.params) {\n this.params = new HttpParams();\n this.urlWithParams = url;\n }\n else {\n // Encode the parameters to a string in preparation for inclusion in the URL.\n const params = this.params.toString();\n if (params.length === 0) {\n // No parameters, the visible URL is just the URL given at creation time.\n this.urlWithParams = url;\n }\n else {\n // Does the URL already have query parameters? Look for '?'.\n const qIdx = url.indexOf('?');\n // There are 3 cases to handle:\n // 1) No existing parameters -> append '?' followed by params.\n // 2) '?' exists and is followed by existing query string ->\n // append '&' followed by params.\n // 3) '?' exists at the end of the url -> append params directly.\n // This basically amounts to determining the character, if any, with\n // which to join the URL and parameters.\n const sep = qIdx === -1 ? '?' : (qIdx < url.length - 1 ? '&' : '');\n this.urlWithParams = url + sep + params;\n }\n }\n }\n /**\n * Transform the free-form body into a serialized format suitable for\n * transmission to the server.\n */\n serializeBody() {\n // If no body is present, no need to serialize it.\n if (this.body === null) {\n return null;\n }\n // Check whether the body is already in a serialized form. If so,\n // it can just be returned directly.\n if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||\n isUrlSearchParams(this.body) || typeof this.body === 'string') {\n return this.body;\n }\n // Check whether the body is an instance of HttpUrlEncodedParams.\n if (this.body instanceof HttpParams) {\n return this.body.toString();\n }\n // Check whether the body is an object or array, and serialize with JSON if so.\n if (typeof this.body === 'object' || typeof this.body === 'boolean' ||\n Array.isArray(this.body)) {\n return JSON.stringify(this.body);\n }\n // Fall back on toString() for everything else.\n return this.body.toString();\n }\n /**\n * Examine the body and attempt to infer an appropriate MIME type\n * for it.\n *\n * If no such type can be inferred, this method will return `null`.\n */\n detectContentTypeHeader() {\n // An empty body has no content type.\n if (this.body === null) {\n return null;\n }\n // FormData bodies rely on the browser's content type assignment.\n if (isFormData(this.body)) {\n return null;\n }\n // Blobs usually have their own content type. If it doesn't, then\n // no type can be inferred.\n if (isBlob(this.body)) {\n return this.body.type || null;\n }\n // Array buffers have unknown contents and thus no type can be inferred.\n if (isArrayBuffer(this.body)) {\n return null;\n }\n // Technically, strings could be a form of JSON data, but it's safe enough\n // to assume they're plain strings.\n if (typeof this.body === 'string') {\n return 'text/plain';\n }\n // `HttpUrlEncodedParams` has its own content-type.\n if (this.body instanceof HttpParams) {\n return 'application/x-www-form-urlencoded;charset=UTF-8';\n }\n // Arrays, objects, boolean and numbers will be encoded as JSON.\n if (typeof this.body === 'object' || typeof this.body === 'number' ||\n typeof this.body === 'boolean') {\n return 'application/json';\n }\n // No type could be inferred.\n return null;\n }\n clone(update = {}) {\n var _a;\n // For method, url, and responseType, take the current value unless\n // it is overridden in the update hash.\n const method = update.method || this.method;\n const url = update.url || this.url;\n const responseType = update.responseType || this.responseType;\n // The body is somewhat special - a `null` value in update.body means\n // whatever current body is present is being overridden with an empty\n // body, whereas an `undefined` value in update.body implies no\n // override.\n const body = (update.body !== undefined) ? update.body : this.body;\n // Carefully handle the boolean options to differentiate between\n // `false` and `undefined` in the update args.\n const withCredentials = (update.withCredentials !== undefined) ? update.withCredentials : this.withCredentials;\n const reportProgress = (update.reportProgress !== undefined) ? update.reportProgress : this.reportProgress;\n // Headers and params may be appended to if `setHeaders` or\n // `setParams` are used.\n let headers = update.headers || this.headers;\n let params = update.params || this.params;\n // Pass on context if needed\n const context = (_a = update.context) !== null && _a !== void 0 ? _a : this.context;\n // Check whether the caller has asked to add headers.\n if (update.setHeaders !== undefined) {\n // Set every requested header.\n headers =\n Object.keys(update.setHeaders)\n .reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);\n }\n // Check whether the caller has asked to set params.\n if (update.setParams) {\n // Set every requested param.\n params = Object.keys(update.setParams)\n .reduce((params, param) => params.set(param, update.setParams[param]), params);\n }\n // Finally, construct the new HttpRequest using the pieces from above.\n return new HttpRequest(method, url, body, {\n params,\n headers,\n context,\n reportProgress,\n responseType,\n withCredentials,\n });\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Type enumeration for the different kinds of `HttpEvent`.\n *\n * @publicApi\n */\nvar HttpEventType;\n(function (HttpEventType) {\n /**\n * The request was sent out over the wire.\n */\n HttpEventType[HttpEventType[\"Sent\"] = 0] = \"Sent\";\n /**\n * An upload progress event was received.\n */\n HttpEventType[HttpEventType[\"UploadProgress\"] = 1] = \"UploadProgress\";\n /**\n * The response status code and headers were received.\n */\n HttpEventType[HttpEventType[\"ResponseHeader\"] = 2] = \"ResponseHeader\";\n /**\n * A download progress event was received.\n */\n HttpEventType[HttpEventType[\"DownloadProgress\"] = 3] = \"DownloadProgress\";\n /**\n * The full response including the body was received.\n */\n HttpEventType[HttpEventType[\"Response\"] = 4] = \"Response\";\n /**\n * A custom event from an interceptor or a backend.\n */\n HttpEventType[HttpEventType[\"User\"] = 5] = \"User\";\n})(HttpEventType || (HttpEventType = {}));\n/**\n * Base class for both `HttpResponse` and `HttpHeaderResponse`.\n *\n * @publicApi\n */\nclass HttpResponseBase {\n /**\n * Super-constructor for all responses.\n *\n * The single parameter accepted is an initialization hash. Any properties\n * of the response passed there will override the default values.\n */\n constructor(init, defaultStatus = 200 /* Ok */, defaultStatusText = 'OK') {\n // If the hash has values passed, use them to initialize the response.\n // Otherwise use the default values.\n this.headers = init.headers || new HttpHeaders();\n this.status = init.status !== undefined ? init.status : defaultStatus;\n this.statusText = init.statusText || defaultStatusText;\n this.url = init.url || null;\n // Cache the ok value to avoid defining a getter.\n this.ok = this.status >= 200 && this.status < 300;\n }\n}\n/**\n * A partial HTTP response which only includes the status and header data,\n * but no response body.\n *\n * `HttpHeaderResponse` is a `HttpEvent` available on the response\n * event stream, only when progress events are requested.\n *\n * @publicApi\n */\nclass HttpHeaderResponse extends HttpResponseBase {\n /**\n * Create a new `HttpHeaderResponse` with the given parameters.\n */\n constructor(init = {}) {\n super(init);\n this.type = HttpEventType.ResponseHeader;\n }\n /**\n * Copy this `HttpHeaderResponse`, overriding its contents with the\n * given parameter hash.\n */\n clone(update = {}) {\n // Perform a straightforward initialization of the new HttpHeaderResponse,\n // overriding the current parameters with new ones if given.\n return new HttpHeaderResponse({\n headers: update.headers || this.headers,\n status: update.status !== undefined ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A full HTTP response, including a typed response body (which may be `null`\n * if one was not returned).\n *\n * `HttpResponse` is a `HttpEvent` available on the response event\n * stream.\n *\n * @publicApi\n */\nclass HttpResponse extends HttpResponseBase {\n /**\n * Construct a new `HttpResponse`.\n */\n constructor(init = {}) {\n super(init);\n this.type = HttpEventType.Response;\n this.body = init.body !== undefined ? init.body : null;\n }\n clone(update = {}) {\n return new HttpResponse({\n body: (update.body !== undefined) ? update.body : this.body,\n headers: update.headers || this.headers,\n status: (update.status !== undefined) ? update.status : this.status,\n statusText: update.statusText || this.statusText,\n url: update.url || this.url || undefined,\n });\n }\n}\n/**\n * A response that represents an error or failure, either from a\n * non-successful HTTP status, an error while executing the request,\n * or some other failure which occurred during the parsing of the response.\n *\n * Any error returned on the `Observable` response stream will be\n * wrapped in an `HttpErrorResponse` to provide additional context about\n * the state of the HTTP layer when the error occurred. The error property\n * will contain either a wrapped Error object or the error response returned\n * from the server.\n *\n * @publicApi\n */\nclass HttpErrorResponse extends HttpResponseBase {\n constructor(init) {\n // Initialize with a default status of 0 / Unknown Error.\n super(init, 0, 'Unknown Error');\n this.name = 'HttpErrorResponse';\n /**\n * Errors are never okay, even when the status code is in the 2xx success range.\n */\n this.ok = false;\n // If the response was successful, then this was a parse error. Otherwise, it was\n // a protocol-level failure of some sort. Either the request failed in transit\n // or the server returned an unsuccessful status code.\n if (this.status >= 200 && this.status < 300) {\n this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;\n }\n else {\n this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;\n }\n this.error = init.error || null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and\n * the given `body`. This function clones the object and adds the body.\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n *\n */\nfunction addBody(options, body) {\n return {\n body,\n headers: options.headers,\n context: options.context,\n observe: options.observe,\n params: options.params,\n reportProgress: options.reportProgress,\n responseType: options.responseType,\n withCredentials: options.withCredentials,\n };\n}\n/**\n * Performs HTTP requests.\n * This service is available as an injectable class, with methods to perform HTTP requests.\n * Each request method has multiple signatures, and the return type varies based on\n * the signature that is called (mainly the values of `observe` and `responseType`).\n *\n * Note that the `responseType` *options* value is a String that identifies the\n * single data type of the response.\n * A single overload version of the method handles each response type.\n * The value of `responseType` cannot be a union, as the combined signature could imply.\n\n *\n * @usageNotes\n * Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.\n *\n * ### HTTP Request Example\n *\n * ```\n * // GET heroes whose name contains search term\n * searchHeroes(term: string): observable<Hero[]>{\n *\n * const params = new HttpParams({fromString: 'name=term'});\n * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});\n * }\n * ```\n *\n * Alternatively, the parameter string can be used without invoking HttpParams\n * by directly joining to the URL.\n * ```\n * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});\n * ```\n *\n *\n * ### JSONP Example\n * ```\n * requestJsonp(url, callback = 'callback') {\n * return this.httpClient.jsonp(this.heroesURL, callback);\n * }\n * ```\n *\n * ### PATCH Example\n * ```\n * // PATCH one of the heroes' name\n * patchHero (id: number, heroName: string): Observable<{}> {\n * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42\n * return this.httpClient.patch(url, {name: heroName}, httpOptions)\n * .pipe(catchError(this.handleError('patchHero')));\n * }\n * ```\n *\n * @see [HTTP Guide](guide/http)\n * @see [HTTP Request](api/common/http/HttpRequest)\n *\n * @publicApi\n */\nclass HttpClient {\n constructor(handler) {\n this.handler = handler;\n }\n /**\n * Constructs an observable for a generic HTTP request that, when subscribed,\n * fires the request through the chain of registered interceptors and on to the\n * server.\n *\n * You can pass an `HttpRequest` directly as the only parameter. In this case,\n * the call returns an observable of the raw `HttpEvent` stream.\n *\n * Alternatively you can pass an HTTP method as the first parameter,\n * a URL string as the second, and an options hash containing the request body as the third.\n * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the\n * type of returned observable.\n * * The `responseType` value determines how a successful response body is parsed.\n * * If `responseType` is the default `json`, you can pass a type interface for the resulting\n * object as a type parameter to the call.\n *\n * The `observe` value determines the return type, according to what you are interested in\n * observing.\n * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including\n * progress events by default.\n * * An `observe` value of response returns an observable of `HttpResponse<T>`,\n * where the `T` parameter depends on the `responseType` and any optionally provided type\n * parameter.\n * * An `observe` value of body returns an observable of `<T>` with the same `T` body type.\n *\n */\n request(first, url, options = {}) {\n let req;\n // First, check whether the primary argument is an instance of `HttpRequest`.\n if (first instanceof HttpRequest) {\n // It is. The other arguments must be undefined (per the signatures) and can be\n // ignored.\n req = first;\n }\n else {\n // It's a string, so it represents a URL. Construct a request based on it,\n // and incorporate the remaining arguments (assuming `GET` unless a method is\n // provided.\n // Figure out the headers.\n let headers = undefined;\n if (options.headers instanceof HttpHeaders) {\n headers = options.headers;\n }\n else {\n headers = new HttpHeaders(options.headers);\n }\n // Sort out parameters.\n let params = undefined;\n if (!!options.params) {\n if (options.params instanceof HttpParams) {\n params = options.params;\n }\n else {\n params = new HttpParams({ fromObject: options.params });\n }\n }\n // Construct the request.\n req = new HttpRequest(first, url, (options.body !== undefined ? options.body : null), {\n headers,\n context: options.context,\n params,\n reportProgress: options.reportProgress,\n // By default, JSON is assumed to be returned for all calls.\n responseType: options.responseType || 'json',\n withCredentials: options.withCredentials,\n });\n }\n // Start with an Observable.of() the initial request, and run the handler (which\n // includes all interceptors) inside a concatMap(). This way, the handler runs\n // inside an Observable chain, which causes interceptors to be re-run on every\n // subscription (this also makes retries re-run the handler, including interceptors).\n const events$ = of(req).pipe(concatMap((req) => this.handler.handle(req)));\n // If coming via the API signature which accepts a previously constructed HttpRequest,\n // the only option is to get the event stream. Otherwise, return the event stream if\n // that is what was requested.\n if (first instanceof HttpRequest || options.observe === 'events') {\n return events$;\n }\n // The requested stream contains either the full response or the body. In either\n // case, the first step is to filter the event stream to extract a stream of\n // responses(s).\n const res$ = events$.pipe(filter((event) => event instanceof HttpResponse));\n // Decide which stream to return.\n switch (options.observe || 'body') {\n case 'body':\n // The requested stream is the body. Map the response stream to the response\n // body. This could be done more simply, but a misbehaving interceptor might\n // transform the response body into a different format and ignore the requested\n // responseType. Guard against this by validating that the response is of the\n // requested type.\n switch (req.responseType) {\n case 'arraybuffer':\n return res$.pipe(map((res) => {\n // Validate that the body is an ArrayBuffer.\n if (res.body !== null && !(res.body instanceof ArrayBuffer)) {\n throw new Error('Response is not an ArrayBuffer.');\n }\n return res.body;\n }));\n case 'blob':\n return res$.pipe(map((res) => {\n // Validate that the body is a Blob.\n if (res.body !== null && !(res.body instanceof Blob)) {\n throw new Error('Response is not a Blob.');\n }\n return res.body;\n }));\n case 'text':\n return res$.pipe(map((res) => {\n // Validate that the body is a string.\n if (res.body !== null && typeof res.body !== 'string') {\n throw new Error('Response is not a string.');\n }\n return res.body;\n }));\n case 'json':\n default:\n // No validation needed for JSON responses, as they can be of any type.\n return res$.pipe(map((res) => res.body));\n }\n case 'response':\n // The response stream was requested directly, so return it.\n return res$;\n default:\n // Guard against new future observe types being added.\n throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);\n }\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `DELETE` request to execute on the server. See the individual overloads for\n * details on the return type.\n *\n * @param url The endpoint URL.\n * @param options The HTTP options to send with the request.\n *\n */\n delete(url, options = {}) {\n return this.request('DELETE', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `GET` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n get(url, options = {}) {\n return this.request('GET', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `HEAD` request to execute on the server. The `HEAD` method returns\n * meta information about the resource without transferring the\n * resource itself. See the individual overloads for\n * details on the return type.\n */\n head(url, options = {}) {\n return this.request('HEAD', url, options);\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes a request with the special method\n * `JSONP` to be dispatched via the interceptor pipeline.\n * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain\n * API endpoints that don't support newer,\n * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.\n * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the\n * requests even if the API endpoint is not located on the same domain (origin) as the client-side\n * application making the request.\n * The endpoint API must support JSONP callback for JSONP requests to work.\n * The resource API returns the JSON response wrapped in a callback function.\n * You can pass the callback function name as one of the query parameters.\n * Note that JSONP requests can only be used with `GET` requests.\n *\n * @param url The resource URL.\n * @param callbackParam The callback function name.\n *\n */\n jsonp(url, callbackParam) {\n return this.request('JSONP', url, {\n params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),\n observe: 'body',\n responseType: 'json',\n });\n }\n /**\n * Constructs an `Observable` that, when subscribed, causes the configured\n * `OPTIONS` request to execute on the server. This method allows the client\n * to determine the supported HTTP methods and other capabilities of an endpoint,\n * without implying a resource action. See the individual overloads for\n * details on the return type.\n */\n options(url, options = {}) {\n return this.request('OPTIONS', url, options);\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PATCH` request to execute on the server. See the individual overloads for\n * details on the return type.\n */\n patch(url, body, options = {}) {\n return this.request('PATCH', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `POST` request to execute on the server. The server responds with the location of\n * the replaced resource. See the individual overloads for\n * details on the return type.\n */\n post(url, body, options = {}) {\n return this.request('POST', url, addBody(options, body));\n }\n /**\n * Constructs an observable that, when subscribed, causes the configured\n * `PUT` request to execute on the server. The `PUT` method replaces an existing resource\n * with a new set of values.\n * See the individual overloads for details on the return type.\n */\n put(url, body, options = {}) {\n return this.request('PUT', url, addBody(options, body));\n }\n}\nHttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClient });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClient, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: HttpHandler }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * `HttpHandler` which applies an `HttpInterceptor` to an `HttpRequest`.\n *\n *\n */\nclass HttpInterceptorHandler {\n constructor(next, interceptor) {\n this.next = next;\n this.interceptor = interceptor;\n }\n handle(req) {\n return this.interceptor.intercept(req, this.next);\n }\n}\n/**\n * A multi-provider token that represents the array of registered\n * `HttpInterceptor` objects.\n *\n * @publicApi\n */\nconst HTTP_INTERCEPTORS = new InjectionToken('HTTP_INTERCEPTORS');\nclass NoopInterceptor {\n intercept(req, next) {\n return next.handle(req);\n }\n}\nNoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });\nNoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: NoopInterceptor, decorators: [{\n type: Injectable\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Every request made through JSONP needs a callback name that's unique across the\n// whole page. Each request is assigned an id and the callback name is constructed\n// from that. The next id to be assigned is tracked in a global variable here that\n// is shared among all applications on the page.\nlet nextRequestId = 0;\n// Error text given when a JSONP script is injected, but doesn't invoke the callback\n// passed in its URL.\nconst JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\n// Error text given when a request is passed to the JsonpClientBackend that doesn't\n// have a request method JSONP.\nconst JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';\nconst JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';\n/**\n * DI token/abstract type representing a map of JSONP callbacks.\n *\n * In the browser, this should always be the `window` object.\n *\n *\n */\nclass JsonpCallbackContext {\n}\n/**\n * Processes an `HttpRequest` with the JSONP method,\n * by performing JSONP style requests.\n * @see `HttpHandler`\n * @see `HttpXhrBackend`\n *\n * @publicApi\n */\nclass JsonpClientBackend {\n constructor(callbackMap, document) {\n this.callbackMap = callbackMap;\n this.document = document;\n /**\n * A resolved promise that can be used to schedule microtasks in the event handlers.\n */\n this.resolvedPromise = Promise.resolve();\n }\n /**\n * Get the name of the next callback method, by incrementing the global `nextRequestId`.\n */\n nextCallback() {\n return `ng_jsonp_callback_${nextRequestId++}`;\n }\n /**\n * Processes a JSONP request and returns an event stream of the results.\n * @param req The request object.\n * @returns An observable of the response events.\n *\n */\n handle(req) {\n // Firstly, check both the method and response type. If either doesn't match\n // then the request was improperly routed here and cannot be handled.\n if (req.method !== 'JSONP') {\n throw new Error(JSONP_ERR_WRONG_METHOD);\n }\n else if (req.responseType !== 'json') {\n throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);\n }\n // Everything else happens inside the Observable boundary.\n return new Observable((observer) => {\n // The first step to make a request is to generate the callback name, and replace the\n // callback placeholder in the URL with the name. Care has to be taken here to ensure\n // a trailing &, if matched, gets inserted back into the URL in the correct place.\n const callback = this.nextCallback();\n const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);\n // Construct the <script> tag and point it at the URL.\n const node = this.document.createElement('script');\n node.src = url;\n // A JSONP request requires waiting for multiple callbacks. These variables\n // are closed over and track state across those callbacks.\n // The response object, if one has been received, or null otherwise.\n let body = null;\n // Whether the response callback has been called.\n let finished = false;\n // Whether the request has been cancelled (and thus any other callbacks)\n // should be ignored.\n let cancelled = false;\n // Set the response callback in this.callbackMap (which will be the window\n // object in the browser. The script being loaded via the <script> tag will\n // eventually call this callback.\n this.callbackMap[callback] = (data) => {\n // Data has been received from the JSONP script. Firstly, delete this callback.\n delete this.callbackMap[callback];\n // Next, make sure the request wasn't cancelled in the meantime.\n if (cancelled) {\n return;\n }\n // Set state to indicate data was received.\n body = data;\n finished = true;\n };\n // cleanup() is a utility closure that removes the <script> from the page and\n // the response callback from the window. This logic is used in both the\n // success, error, and cancellation paths, so it's extracted out for convenience.\n const cleanup = () => {\n // Remove the <script> tag if it's still on the page.\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n // Remove the response callback from the callbackMap (window object in the\n // browser).\n delete this.callbackMap[callback];\n };\n // onLoad() is the success callback which runs after the response callback\n // if the JSONP script loads successfully. The event itself is unimportant.\n // If something went wrong, onLoad() may run without the response callback\n // having been invoked.\n const onLoad = (event) => {\n // Do nothing if the request has been cancelled.\n if (cancelled) {\n return;\n }\n // We wrap it in an extra Promise, to ensure the microtask\n // is scheduled after the loaded endpoint has executed any potential microtask itself,\n // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496\n this.resolvedPromise.then(() => {\n // Cleanup the page.\n cleanup();\n // Check whether the response callback has run.\n if (!finished) {\n // It hasn't, something went wrong with the request. Return an error via\n // the Observable error path. All JSONP errors have status 0.\n observer.error(new HttpErrorResponse({\n url,\n status: 0,\n statusText: 'JSONP Error',\n error: new Error(JSONP_ERR_NO_CALLBACK),\n }));\n return;\n }\n // Success. body either contains the response body or null if none was\n // returned.\n observer.next(new HttpResponse({\n body,\n status: 200 /* Ok */,\n statusText: 'OK',\n url,\n }));\n // Complete the stream, the response is over.\n observer.complete();\n });\n };\n // onError() is the error callback, which runs if the script returned generates\n // a Javascript error. It emits the error via the Observable error channel as\n // a HttpErrorResponse.\n const onError = (error) => {\n // If the request was already cancelled, no need to emit anything.\n if (cancelled) {\n return;\n }\n cleanup();\n // Wrap the error in a HttpErrorResponse.\n observer.error(new HttpErrorResponse({\n error,\n status: 0,\n statusText: 'JSONP Error',\n url,\n }));\n };\n // Subscribe to both the success (load) and error events on the <script> tag,\n // and add it to the page.\n node.addEventListener('load', onLoad);\n node.addEventListener('error', onError);\n this.document.body.appendChild(node);\n // The request has now been successfully sent.\n observer.next({ type: HttpEventType.Sent });\n // Cancellation handler.\n return () => {\n // Track the cancellation so event listeners won't do anything even if already scheduled.\n cancelled = true;\n // Remove the event listeners so they won't run if the events later fire.\n node.removeEventListener('load', onLoad);\n node.removeEventListener('error', onError);\n // And finally, clean up the page.\n cleanup();\n };\n });\n }\n}\nJsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });\nJsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpClientBackend });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpClientBackend, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }];\n } });\n/**\n * Identifies requests with the method JSONP and\n * shifts them to the `JsonpClientBackend`.\n *\n * @see `HttpInterceptor`\n *\n * @publicApi\n */\nclass JsonpInterceptor {\n constructor(jsonp) {\n this.jsonp = jsonp;\n }\n /**\n * Identifies and handles a given JSONP request.\n * @param req The outgoing request object to handle.\n * @param next The next interceptor in the chain, or the backend\n * if no interceptors remain in the chain.\n * @returns An observable of the event stream.\n */\n intercept(req, next) {\n if (req.method === 'JSONP') {\n return this.jsonp.handle(req);\n }\n // Fall through for normal HTTP requests.\n return next.handle(req);\n }\n}\nJsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpInterceptor, deps: [{ token: JsonpClientBackend }], target: i0.ɵɵFactoryTarget.Injectable });\nJsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: JsonpInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: JsonpClientBackend }]; } });\n\nconst XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\n/**\n * Determine an appropriate URL for the response, by checking either\n * XMLHttpRequest.responseURL or the X-Request-URL header.\n */\nfunction getResponseUrl(xhr) {\n if ('responseURL' in xhr && xhr.responseURL) {\n return xhr.responseURL;\n }\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL');\n }\n return null;\n}\n/**\n * Uses `XMLHttpRequest` to send requests to a backend server.\n * @see `HttpHandler`\n * @see `JsonpClientBackend`\n *\n * @publicApi\n */\nclass HttpXhrBackend {\n constructor(xhrFactory) {\n this.xhrFactory = xhrFactory;\n }\n /**\n * Processes a request and returns a stream of response events.\n * @param req The request object.\n * @returns An observable of the response events.\n */\n handle(req) {\n // Quick check to give a better error message when a user attempts to use\n // HttpClient.jsonp() without installing the HttpClientJsonpModule\n if (req.method === 'JSONP') {\n throw new Error(`Attempted to construct Jsonp request without HttpClientJsonpModule installed.`);\n }\n // Everything happens on Observable subscription.\n return new Observable((observer) => {\n // Start by setting up the XHR object with request method, URL, and withCredentials flag.\n const xhr = this.xhrFactory.build();\n xhr.open(req.method, req.urlWithParams);\n if (!!req.withCredentials) {\n xhr.withCredentials = true;\n }\n // Add all the requested headers.\n req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));\n // Add an Accept header if one isn't present already.\n if (!req.headers.has('Accept')) {\n xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');\n }\n // Auto-detect the Content-Type header if one isn't present already.\n if (!req.headers.has('Content-Type')) {\n const detectedType = req.detectContentTypeHeader();\n // Sometimes Content-Type detection fails.\n if (detectedType !== null) {\n xhr.setRequestHeader('Content-Type', detectedType);\n }\n }\n // Set the responseType if one was requested.\n if (req.responseType) {\n const responseType = req.responseType.toLowerCase();\n // JSON responses need to be processed as text. This is because if the server\n // returns an XSSI-prefixed JSON response, the browser will fail to parse it,\n // xhr.response will be null, and xhr.responseText cannot be accessed to\n // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON\n // is parsed by first requesting text and then applying JSON.parse.\n xhr.responseType = ((responseType !== 'json') ? responseType : 'text');\n }\n // Serialize the request body if one is present. If not, this will be set to null.\n const reqBody = req.serializeBody();\n // If progress events are enabled, response headers will be delivered\n // in two events - the HttpHeaderResponse event and the full HttpResponse\n // event. However, since response headers don't change in between these\n // two events, it doesn't make sense to parse them twice. So headerResponse\n // caches the data extracted from the response whenever it's first parsed,\n // to ensure parsing isn't duplicated.\n let headerResponse = null;\n // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest\n // state, and memoizes it into headerResponse.\n const partialFromXhr = () => {\n if (headerResponse !== null) {\n return headerResponse;\n }\n // Read status and normalize an IE9 bug (https://bugs.jquery.com/ticket/1450).\n const status = xhr.status === 1223 ? 204 /* NoContent */ : xhr.status;\n const statusText = xhr.statusText || 'OK';\n // Parse headers from XMLHttpRequest - this step is lazy.\n const headers = new HttpHeaders(xhr.getAllResponseHeaders());\n // Read the response URL from the XMLHttpResponse instance and fall back on the\n // request URL.\n const url = getResponseUrl(xhr) || req.url;\n // Construct the HttpHeaderResponse and memoize it.\n headerResponse = new HttpHeaderResponse({ headers, status, statusText, url });\n return headerResponse;\n };\n // Next, a few closures are defined for the various events which XMLHttpRequest can\n // emit. This allows them to be unregistered as event listeners later.\n // First up is the load event, which represents a response being fully available.\n const onLoad = () => {\n // Read response state from the memoized partial data.\n let { headers, status, statusText, url } = partialFromXhr();\n // The body will be read out if present.\n let body = null;\n if (status !== 204 /* NoContent */) {\n // Use XMLHttpRequest.response if set, responseText otherwise.\n body = (typeof xhr.response === 'undefined') ? xhr.responseText : xhr.response;\n }\n // Normalize another potential bug (this one comes from CORS).\n if (status === 0) {\n status = !!body ? 200 /* Ok */ : 0;\n }\n // ok determines whether the response will be transmitted on the event or\n // error channel. Unsuccessful status codes (not 2xx) will always be errors,\n // but a successful status code can still result in an error if the user\n // asked for JSON data and the body cannot be parsed as such.\n let ok = status >= 200 && status < 300;\n // Check whether the body needs to be parsed as JSON (in many cases the browser\n // will have done that already).\n if (req.responseType === 'json' && typeof body === 'string') {\n // Save the original body, before attempting XSSI prefix stripping.\n const originalBody = body;\n body = body.replace(XSSI_PREFIX, '');\n try {\n // Attempt the parse. If it fails, a parse error should be delivered to the user.\n body = body !== '' ? JSON.parse(body) : null;\n }\n catch (error) {\n // Since the JSON.parse failed, it's reasonable to assume this might not have been a\n // JSON response. Restore the original body (including any XSSI prefix) to deliver\n // a better error response.\n body = originalBody;\n // If this was an error request to begin with, leave it as a string, it probably\n // just isn't JSON. Otherwise, deliver the parsing error to the user.\n if (ok) {\n // Even though the response status was 2xx, this is still an error.\n ok = false;\n // The parse error contains the text of the body that failed to parse.\n body = { error, text: body };\n }\n }\n }\n if (ok) {\n // A successful response is delivered on the event stream.\n observer.next(new HttpResponse({\n body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n // The full body has been received and delivered, no further events\n // are possible. This request is complete.\n observer.complete();\n }\n else {\n // An unsuccessful request is delivered on the error channel.\n observer.error(new HttpErrorResponse({\n // The error in this case is the response body (error from the server).\n error: body,\n headers,\n status,\n statusText,\n url: url || undefined,\n }));\n }\n };\n // The onError callback is called when something goes wrong at the network level.\n // Connection timeout, DNS error, offline, etc. These are actual errors, and are\n // transmitted on the error channel.\n const onError = (error) => {\n const { url } = partialFromXhr();\n const res = new HttpErrorResponse({\n error,\n status: xhr.status || 0,\n statusText: xhr.statusText || 'Unknown Error',\n url: url || undefined,\n });\n observer.error(res);\n };\n // The sentHeaders flag tracks whether the HttpResponseHeaders event\n // has been sent on the stream. This is necessary to track if progress\n // is enabled since the event will be sent on only the first download\n // progerss event.\n let sentHeaders = false;\n // The download progress event handler, which is only registered if\n // progress events are enabled.\n const onDownProgress = (event) => {\n // Send the HttpResponseHeaders event if it hasn't been sent already.\n if (!sentHeaders) {\n observer.next(partialFromXhr());\n sentHeaders = true;\n }\n // Start building the download progress event to deliver on the response\n // event stream.\n let progressEvent = {\n type: HttpEventType.DownloadProgress,\n loaded: event.loaded,\n };\n // Set the total number of bytes in the event if it's available.\n if (event.lengthComputable) {\n progressEvent.total = event.total;\n }\n // If the request was for text content and a partial response is\n // available on XMLHttpRequest, include it in the progress event\n // to allow for streaming reads.\n if (req.responseType === 'text' && !!xhr.responseText) {\n progressEvent.partialText = xhr.responseText;\n }\n // Finally, fire the event.\n observer.next(progressEvent);\n };\n // The upload progress event handler, which is only registered if\n // progress events are enabled.\n const onUpProgress = (event) => {\n // Upload progress events are simpler. Begin building the progress\n // event.\n let progress = {\n type: HttpEventType.UploadProgress,\n loaded: event.loaded,\n };\n // If the total number of bytes being uploaded is available, include\n // it.\n if (event.lengthComputable) {\n progress.total = event.total;\n }\n // Send the event.\n observer.next(progress);\n };\n // By default, register for load and error events.\n xhr.addEventListener('load', onLoad);\n xhr.addEventListener('error', onError);\n xhr.addEventListener('timeout', onError);\n xhr.addEventListener('abort', onError);\n // Progress events are only enabled if requested.\n if (req.reportProgress) {\n // Download progress is always enabled if requested.\n xhr.addEventListener('progress', onDownProgress);\n // Upload progress depends on whether there is a body to upload.\n if (reqBody !== null && xhr.upload) {\n xhr.upload.addEventListener('progress', onUpProgress);\n }\n }\n // Fire the request, and notify the event stream that it was fired.\n xhr.send(reqBody);\n observer.next({ type: HttpEventType.Sent });\n // This is the return from the Observable function, which is the\n // request cancellation handler.\n return () => {\n // On a cancellation, remove all registered event listeners.\n xhr.removeEventListener('error', onError);\n xhr.removeEventListener('abort', onError);\n xhr.removeEventListener('load', onLoad);\n xhr.removeEventListener('timeout', onError);\n if (req.reportProgress) {\n xhr.removeEventListener('progress', onDownProgress);\n if (reqBody !== null && xhr.upload) {\n xhr.upload.removeEventListener('progress', onUpProgress);\n }\n }\n // Finally, abort the in-flight request.\n if (xhr.readyState !== xhr.DONE) {\n xhr.abort();\n }\n };\n });\n }\n}\nHttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXhrBackend });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXhrBackend, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst XSRF_COOKIE_NAME = new InjectionToken('XSRF_COOKIE_NAME');\nconst XSRF_HEADER_NAME = new InjectionToken('XSRF_HEADER_NAME');\n/**\n * Retrieves the current XSRF token to use with the next outgoing request.\n *\n * @publicApi\n */\nclass HttpXsrfTokenExtractor {\n}\n/**\n * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.\n */\nclass HttpXsrfCookieExtractor {\n constructor(doc, platform, cookieName) {\n this.doc = doc;\n this.platform = platform;\n this.cookieName = cookieName;\n this.lastCookieString = '';\n this.lastToken = null;\n /**\n * @internal for testing\n */\n this.parseCount = 0;\n }\n getToken() {\n if (this.platform === 'server') {\n return null;\n }\n const cookieString = this.doc.cookie || '';\n if (cookieString !== this.lastCookieString) {\n this.parseCount++;\n this.lastToken = ɵparseCookieValue(cookieString, this.cookieName);\n this.lastCookieString = cookieString;\n }\n return this.lastToken;\n }\n}\nHttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfCookieExtractor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [DOCUMENT]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [PLATFORM_ID]\n }] }, { type: undefined, decorators: [{\n type: Inject,\n args: [XSRF_COOKIE_NAME]\n }] }];\n } });\n/**\n * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.\n */\nclass HttpXsrfInterceptor {\n constructor(tokenService, headerName) {\n this.tokenService = tokenService;\n this.headerName = headerName;\n }\n intercept(req, next) {\n const lcUrl = req.url.toLowerCase();\n // Skip both non-mutating requests and absolute URLs.\n // Non-mutating requests don't require a token, and absolute URLs require special handling\n // anyway as the cookie set\n // on our origin is not the same as the token expected by another origin.\n if (req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') ||\n lcUrl.startsWith('https://')) {\n return next.handle(req);\n }\n const token = this.tokenService.getToken();\n // Be careful not to overwrite an existing header of the same name.\n if (token !== null && !req.headers.has(this.headerName)) {\n req = req.clone({ headers: req.headers.set(this.headerName, token) });\n }\n return next.handle(req);\n }\n}\nHttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: HttpXsrfTokenExtractor }, { token: XSRF_HEADER_NAME }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfInterceptor });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{\n type: Injectable\n }], ctorParameters: function () {\n return [{ type: HttpXsrfTokenExtractor }, { type: undefined, decorators: [{\n type: Inject,\n args: [XSRF_HEADER_NAME]\n }] }];\n } });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An injectable `HttpHandler` that applies multiple interceptors\n * to a request before passing it to the given `HttpBackend`.\n *\n * The interceptors are loaded lazily from the injector, to allow\n * interceptors to themselves inject classes depending indirectly\n * on `HttpInterceptingHandler` itself.\n * @see `HttpInterceptor`\n */\nclass HttpInterceptingHandler {\n constructor(backend, injector) {\n this.backend = backend;\n this.injector = injector;\n this.chain = null;\n }\n handle(req) {\n if (this.chain === null) {\n const interceptors = this.injector.get(HTTP_INTERCEPTORS, []);\n this.chain = interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), this.backend);\n }\n return this.chain.handle(req);\n }\n}\nHttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpInterceptingHandler, deps: [{ token: HttpBackend }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });\nHttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpInterceptingHandler });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpInterceptingHandler, decorators: [{\n type: Injectable\n }], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.Injector }]; } });\n/**\n * Constructs an `HttpHandler` that applies interceptors\n * to a request before passing it to the given `HttpBackend`.\n *\n * Use as a factory function within `HttpClientModule`.\n *\n *\n */\nfunction interceptingHandler(backend, interceptors = []) {\n if (!interceptors) {\n return backend;\n }\n return interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), backend);\n}\n/**\n * Factory function that determines where to store JSONP callbacks.\n *\n * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist\n * in test environments. In that case, callbacks are stored on an anonymous object instead.\n *\n *\n */\nfunction jsonpCallbackContext() {\n if (typeof window === 'object') {\n return window;\n }\n return {};\n}\n/**\n * Configures XSRF protection support for outgoing requests.\n *\n * For a server that supports a cookie-based XSRF protection system,\n * use directly to configure XSRF protection with the correct\n * cookie and header names.\n *\n * If no names are supplied, the default cookie name is `XSRF-TOKEN`\n * and the default header name is `X-XSRF-TOKEN`.\n *\n * @publicApi\n */\nclass HttpClientXsrfModule {\n /**\n * Disable the default XSRF protection.\n */\n static disable() {\n return {\n ngModule: HttpClientXsrfModule,\n providers: [\n { provide: HttpXsrfInterceptor, useClass: NoopInterceptor },\n ],\n };\n }\n /**\n * Configure XSRF protection.\n * @param options An object that can specify either or both\n * cookie name or header name.\n * - Cookie name default is `XSRF-TOKEN`.\n * - Header name default is `X-XSRF-TOKEN`.\n *\n */\n static withOptions(options = {}) {\n return {\n ngModule: HttpClientXsrfModule,\n providers: [\n options.cookieName ? { provide: XSRF_COOKIE_NAME, useValue: options.cookieName } : [],\n options.headerName ? { provide: XSRF_HEADER_NAME, useValue: options.headerName } : [],\n ],\n };\n }\n}\nHttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientXsrfModule });\nHttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientXsrfModule, providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },\n { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },\n ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientXsrfModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n HttpXsrfInterceptor,\n { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },\n { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },\n { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },\n { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },\n ],\n }]\n }] });\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for XSRF. Automatically imported by `HttpClientModule`.\n *\n * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nclass HttpClientModule {\n}\nHttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientModule, imports: [HttpClientXsrfModule] });\nHttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientModule, providers: [\n HttpClient,\n { provide: HttpHandler, useClass: HttpInterceptingHandler },\n HttpXhrBackend,\n { provide: HttpBackend, useExisting: HttpXhrBackend },\n ], imports: [[\n HttpClientXsrfModule.withOptions({\n cookieName: 'XSRF-TOKEN',\n headerName: 'X-XSRF-TOKEN',\n }),\n ]] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientModule, decorators: [{\n type: NgModule,\n args: [{\n /**\n * Optional configuration for XSRF protection.\n */\n imports: [\n HttpClientXsrfModule.withOptions({\n cookieName: 'XSRF-TOKEN',\n headerName: 'X-XSRF-TOKEN',\n }),\n ],\n /**\n * Configures the [dependency injector](guide/glossary#injector) where it is imported\n * with supporting services for HTTP communications.\n */\n providers: [\n HttpClient,\n { provide: HttpHandler, useClass: HttpInterceptingHandler },\n HttpXhrBackend,\n { provide: HttpBackend, useExisting: HttpXhrBackend },\n ],\n }]\n }] });\n/**\n * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`\n * with supporting services for JSONP.\n * Without this module, Jsonp requests reach the backend\n * with method JSONP, where they are rejected.\n *\n * You can add interceptors to the chain behind `HttpClient` by binding them to the\n * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.\n *\n * @publicApi\n */\nclass HttpClientJsonpModule {\n}\nHttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });\nHttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientJsonpModule });\nHttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientJsonpModule, providers: [\n JsonpClientBackend,\n { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },\n ] });\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"13.1.1\", ngImport: i0, type: HttpClientJsonpModule, decorators: [{\n type: NgModule,\n args: [{\n providers: [\n JsonpClientBackend,\n { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },\n { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },\n ],\n }]\n }] });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n * @see `XhrFactory`\n * @deprecated\n * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.\n */\nconst XhrFactory = XhrFactory$1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, XhrFactory, HttpInterceptingHandler as ɵHttpInterceptingHandler };\n","/**\n * @license Angular v13.1.1\n * (c) 2010-2021 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { Subject, Subscription, Observable, merge as merge$1 } from 'rxjs';\nimport { share } from 'rxjs/operators';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return (before == null || before === '') ?\n (after === null ? '' : after) :\n ((after == null || after === '') ? before : before + ' ' + after);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafeProperty });\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * @usageNotes\n * ### Example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see `forwardRef`\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) &&\n fn.__forward_ref__ === forwardRef;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base URL for the error details page.\n *\n * Keep the files below in full sync:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/render3/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass RuntimeError extends Error {\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n// Contains a set of error messages that have details guides at angular.io.\n// Full list of available error guides can be found at https://angular.io/errors\n/* tslint:disable:no-toplevel-property-access */\nconst RUNTIME_ERRORS_WITH_GUIDES = new Set([\n \"100\" /* EXPRESSION_CHANGED_AFTER_CHECKED */,\n \"200\" /* CYCLIC_DI_DEPENDENCY */,\n \"201\" /* PROVIDER_NOT_FOUND */,\n \"300\" /* MULTIPLE_COMPONENTS_MATCH */,\n \"301\" /* EXPORT_NOT_FOUND */,\n \"302\" /* PIPE_NOT_FOUND */,\n]);\n/* tslint:enable:no-toplevel-property-access */\n/** Called to format a runtime error */\nfunction formatRuntimeError(code, message) {\n const fullCode = code ? `NG0${code}: ` : '';\n let errorMessage = `${fullCode}${message}`;\n // Some runtime errors are still thrown without `ngDevMode` (for example\n // `throwProviderNotFoundError`), so we add `ngDevMode` check here to avoid pulling\n // `RUNTIME_ERRORS_WITH_GUIDES` symbol into prod bundles.\n // TODO: revisit all instances where `RuntimeError` is thrown and see if `ngDevMode` can be added\n // there instead to tree-shake more devmode-only code (and eventually remove `ngDevMode` check\n // from this code).\n if (ngDevMode && RUNTIME_ERRORS_WITH_GUIDES.has(code)) {\n errorMessage = `${errorMessage}. Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/NG0${code}`;\n }\n return errorMessage;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string')\n return value;\n if (value == null)\n return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function')\n return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(\"200\" /* CYCLIC_DI_DEPENDENCY */, `Circular dependency in DI detected for ${token}${depPath}`);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n let ngModuleDetail = '';\n if (ngModuleType && providers) {\n const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n ngModuleDetail =\n ` - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`;\n }\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}'` + ngModuleDetail);\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const injectorDetails = injectorName ? ` in ${injectorName}` : '';\n throw new RuntimeError(\"201\" /* PROVIDER_NOT_FOUND */, `No provider for ${stringifyForError(token)} found${injectorDetails}`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` +\n (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n // If we're in a worker, `Node` will not be defined.\n if (!(typeof Node !== 'undefined' && node instanceof Node) &&\n !(typeof node === 'object' && node != null &&\n node.constructor.name === 'WebWorkerRenderNode')) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1)\n return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call `inject` to access the `Injector` and request injection of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined,\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return { providers: options.providers || [], imports: options.imports || [] };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n const typeName = getTypeName(type);\n // TODO(FW-1307): Re-add ngDevMode when closure can handle it\n // ngDevMode &&\n console.warn(`DEPRECATED: DI is instantiating a token \"${typeName}\" that inherits its @Injectable decorator but does not provide one itself.\\n` +\n `This will become an error in a future version of Angular. Please add @Injectable() to the \"${typeName}\" class.`);\n return def;\n }\n else {\n return null;\n }\n}\n/** Gets the name of a type, accounting for some cross-browser differences. */\nfunction getTypeName(type) {\n // `Function.prototype.name` behaves differently between IE and other browsers. In most browsers\n // it'll always return the name of the function itself, no matter how many other functions it\n // inherits from. On IE the function doesn't have its own `name` property, but it takes it from\n // the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most\n // browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around\n // the issue by converting the function to a string and parsing its name out that way via a regex.\n if (type.hasOwnProperty('name')) {\n return type.name;\n }\n const match = ('' + type).match(/^function\\s*([^\\s(]+)/);\n return match === null ? '' : match[1];\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ?\n type[NG_INJ_DEF] :\n null;\n}\nconst NG_PROV_DEF = getClosureSafeProperty({ ɵprov: getClosureSafeProperty });\nconst NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty });\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = getClosureSafeProperty({ ngInjectableDef: getClosureSafeProperty });\nconst NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafeProperty });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injection flags for DI.\n *\n * @publicApi\n */\nvar InjectFlags;\n(function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n})(InjectFlags || (InjectFlags = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() :\n injectableDef.value;\n }\n if (flags & InjectFlags.Optional)\n return null;\n if (notFoundValue !== undefined)\n return notFoundValue;\n throwProviderNotFoundError(stringify(token), 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode &&\n assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return { toString: fn }.toString();\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy;\n(function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));\n/**\n * Defines the possible states of the default change detector.\n * @see `ChangeDetectorRef`\n */\nvar ChangeDetectorStatus;\n(function (ChangeDetectorStatus) {\n /**\n * A state in which, after calling `detectChanges()`, the change detector\n * state becomes `Checked`, and must be explicitly invoked or reactivated.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"CheckOnce\"] = 0] = \"CheckOnce\";\n /**\n * A state in which change detection is skipped until the change detector mode\n * becomes `CheckOnce`.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Checked\"] = 1] = \"Checked\";\n /**\n * A state in which change detection continues automatically until explicitly\n * deactivated.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"CheckAlways\"] = 2] = \"CheckAlways\";\n /**\n * A state in which a change detector sub tree is not a part of the main tree and\n * should be skipped.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Detached\"] = 3] = \"Detached\";\n /**\n * Indicates that the change detector encountered an error checking a binding\n * or calling a directive lifecycle method and is now in an inconsistent state. Change\n * detectors in this state do not detect changes.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Errored\"] = 4] = \"Errored\";\n /**\n * Indicates that the change detector has been destroyed.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Destroyed\"] = 5] = \"Destroyed\";\n})(ChangeDetectorStatus || (ChangeDetectorStatus = {}));\n/**\n * Reports whether a given strategy is currently the default for change detection.\n * @param changeDetectionStrategy The strategy to check.\n * @returns True if the given strategy is the current default, false otherwise.\n * @see `ChangeDetectorStatus`\n * @see `ChangeDetectorRef`\n */\nfunction isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\n return changeDetectionStrategy == null ||\n changeDetectionStrategy === ChangeDetectionStrategy.Default;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1;\n(function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst __globalThis = typeof globalThis !== 'undefined' && globalThis;\nconst __window = typeof window !== 'undefined' && window;\nconst __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&\n self instanceof WorkerGlobalScope && self;\nconst __global = typeof global !== 'undefined' && global;\n// Always use __globalThis if available, which is the spec-defined global variable across all\n// environments, then fallback to __global first, because in Node tests both __global and\n// __window may be defined and _global should be __global in that case.\nconst _global = __globalThis || __global || __window || __self;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n _global['ngDevMode'] = allowNgDevModeTrue && newCounters;\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object') {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst NG_COMP_DEF = getClosureSafeProperty({ ɵcmp: getClosureSafeProperty });\nconst NG_DIR_DEF = getClosureSafeProperty({ ɵdir: getClosureSafeProperty });\nconst NG_PIPE_DEF = getClosureSafeProperty({ ɵpipe: getClosureSafeProperty });\nconst NG_MOD_DEF = getClosureSafeProperty({ ɵmod: getClosureSafeProperty });\nconst NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty });\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _renderCompCount = 0;\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const type = componentDefinition.type;\n const declaredInputs = {};\n const def = {\n type: type,\n providersResolver: null,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n factory: null,\n template: componentDefinition.template || null,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n hostBindings: componentDefinition.hostBindings || null,\n hostVars: componentDefinition.hostVars || 0,\n hostAttrs: componentDefinition.hostAttrs || null,\n contentQueries: componentDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputs: null,\n outputs: null,\n exportAs: componentDefinition.exportAs || null,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null,\n pipeDefs: null,\n selectors: componentDefinition.selectors || EMPTY_ARRAY,\n viewQuery: componentDefinition.viewQuery || null,\n features: componentDefinition.features || null,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n id: 'c',\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n setInput: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n };\n const directiveTypes = componentDefinition.directives;\n const feature = componentDefinition.features;\n const pipeTypes = componentDefinition.pipes;\n def.id += _renderCompCount++;\n def.inputs = invertObject(componentDefinition.inputs, declaredInputs),\n def.outputs = invertObject(componentDefinition.outputs),\n feature && feature.forEach((fn) => fn(def));\n def.directiveDefs = directiveTypes ?\n () => (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes)\n .map(extractDirectiveDef) :\n null;\n def.pipeDefs = pipeTypes ?\n () => (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef) :\n null;\n return def;\n });\n}\n/**\n * Generated next to NgModules to monkey-patch directive and pipe references onto a component's\n * definition, when generating a direct reference in the component file would otherwise create an\n * import cycle.\n *\n * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.\n *\n * @codeGenApi\n */\nfunction ɵɵsetComponentScope(type, directives, pipes) {\n const def = type.ɵcmp;\n def.directiveDefs = () => directives.map(extractDirectiveDef);\n def.pipeDefs = () => pipes.map(extractPipeDef);\n}\nfunction extractDirectiveDef(type) {\n const def = getComponentDef(type) || getDirectiveDef(type);\n if (ngDevMode && !def) {\n throw new Error(`'${type.name}' is neither 'ComponentType' or 'DirectiveType'.`);\n }\n return def;\n}\nfunction extractPipeDef(type) {\n const def = getPipeDef$1(type);\n if (ngDevMode && !def) {\n throw new Error(`'${type.name}' is not a 'PipeType'.`);\n }\n return def;\n}\nconst autoRegisterModuleById = {};\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null,\n };\n if (def.id != null) {\n autoRegisterModuleById[def.id] = def.type;\n }\n return res;\n });\n}\n/**\n * Adds the module metadata that is necessary to compute the module's transitive scope to an\n * existing module definition.\n *\n * Scope metadata of modules is not used in production builds, so calls to this function can be\n * marked pure to tree-shake it from the bundle, allowing for all referenced declarations\n * to become eligible for tree-shaking as well.\n *\n * @codeGenApi\n */\nfunction ɵɵsetNgModuleScope(type, scope) {\n return noSideEffects(() => {\n const ngModuleDef = getNgModuleDef(type, true);\n ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;\n ngModuleDef.imports = scope.imports || EMPTY_ARRAY;\n ngModuleDef.exports = scope.exports || EMPTY_ARRAY;\n });\n}\n/**\n * Inverts an inputs or outputs lookup such that the keys, which were the\n * minified keys, are part of the values, and the values are parsed so that\n * the publicName of the property is the new key\n *\n * e.g. for\n *\n * ```\n * class Comp {\n * @Input()\n * propName1: string;\n *\n * @Input('publicName2')\n * declaredPropName2: number;\n * }\n * ```\n *\n * will be serialized as\n *\n * ```\n * {\n * propName1: 'propName1',\n * declaredPropName2: ['publicName2', 'declaredPropName2'],\n * }\n * ```\n *\n * which is than translated by the minifier as:\n *\n * ```\n * {\n * minifiedPropName1: 'propName1',\n * minifiedPropName2: ['publicName2', 'declaredPropName2'],\n * }\n * ```\n *\n * becomes: (public name => minifiedName)\n *\n * ```\n * {\n * 'propName1': 'minifiedPropName1',\n * 'publicName2': 'minifiedPropName2',\n * }\n * ```\n *\n * Optionally the function can take `secondary` which will result in: (public name => declared name)\n *\n * ```\n * {\n * 'propName1': 'propName1',\n * 'publicName2': 'declaredPropName2',\n * }\n * ```\n *\n\n */\nfunction invertObject(obj, secondary) {\n if (obj == null)\n return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n let publicName = obj[minifiedKey];\n let declaredName = publicName;\n if (Array.isArray(publicName)) {\n declaredName = publicName[1];\n publicName = publicName[0];\n }\n newLookup[publicName] = minifiedKey;\n if (secondary) {\n (secondary[publicName] = declaredName);\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nconst ɵɵdefineDirective = ɵɵdefineComponent;\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n/**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip\n * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify\n * that the `MOVED_VIEWS` are transplanted and on-push.\n */\nconst HAS_TRANSPLANTED_VIEWS = 2;\n// PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\n// T_HOST is index 6\n// We already have this constants in LView, we don't need to re-create it.\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$8 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst TRANSPLANTED_VIEWS_TO_REFRESH = 5;\nconst T_HOST = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR$1 = 9;\nconst RENDERER_FACTORY = 10;\nconst RENDERER = 11;\nconst SANITIZER = 12;\nconst CHILD_HEAD = 13;\nconst CHILD_TAIL = 14;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 15;\nconst DECLARATION_COMPONENT_VIEW = 16;\nconst DECLARATION_LCONTAINER = 17;\nconst PREORDER_HOOK_FLAGS = 18;\nconst QUERIES = 19;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 20;\n/**\n * Converts `TViewType` into human readable text.\n * Make sure this matches with `TViewType`\n */\nconst TViewTypeAsString = [\n 'Root',\n 'Component',\n 'Embedded', // 2\n];\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$7 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 8 /* hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return (tNode.flags & 2 /* isComponentHost */) === 2 /* isComponentHost */;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* isDirectiveHost */) === 1 /* isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return def.template !== null;\n}\nfunction isRootView(target) {\n return (target[FLAGS] & 512 /* IsRoot */) !== 0;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n tNode.hasOwnProperty('tView_') &&\n assertEqual(tNode.tView_, tView, 'This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \\'ɵcmp\\' property.') {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \\'ɵmod\\' property.') {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertDataNext(lView, index, arr) {\n if (arr == null)\n arr = lView;\n assertEqual(arr.length, index, `index ${index} expected to be at the end of arr (length ${arr.length})`);\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(lView, index) {\n const tView = lView[1];\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInVarsRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.bindingStartIndex, tView.expandoStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage ||\n 'Components with projection nodes (<ng-content>) must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || 'Component views should always have a parent view (component\\'s host view)');\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getFactoryDef(type, throwNotFound) {\n const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n }\n return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see `OnChanges`\n *\n * @publicApi\n */\nclass SimpleChange {\n constructor(previousValue, currentValue, firstChange) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n this.firstChange = firstChange;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange() {\n return this.firstChange;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```\n * static ɵcmp = defineComponent({\n * ...\n * inputs: {name: 'publicName'},\n * features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n if (definition.type.prototype.ngOnChanges) {\n definition.setInput = ngOnChangesSetInput;\n }\n return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n * it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n }\n else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}\nfunction ngOnChangesSetInput(instance, value, publicName, privateName) {\n const simpleChangesStore = getSimpleChangesStore(instance) ||\n setSimpleChangesStore(instance, { previous: EMPTY_OBJ, current: null });\n const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n const previous = simpleChangesStore.previous;\n const declaredName = this.declaredInputs[publicName];\n const previousChange = previous[declaredName];\n current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n instance[privateName] = value;\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n return instance[SIMPLE_CHANGES_STORE] = store;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = (profiler) => {\n profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n * execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n if (profilerCallback != null /* both `null` and `undefined` */) {\n profilerCallback(event, instance, hookOrListener);\n }\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\nconst MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Most of the use of `document` in Angular is from within the DI system so it is possible to simply\n * inject the `DOCUMENT` token and are done.\n *\n * Ivy is special because it does not rely upon the DI and must get hold of the document some other\n * way.\n *\n * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.\n * Wherever ivy needs the global document, it calls `getDocument()` instead.\n *\n * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to\n * tell ivy what the global `document` is.\n *\n * Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`)\n * by calling `setDocument()` when providing the `DOCUMENT` token.\n */\nlet DOCUMENT = undefined;\n/**\n * Tell ivy what the `document` is for this platform.\n *\n * It is only necessary to call this if the current platform is not a browser.\n *\n * @param document The object representing the global `document` in this environment.\n */\nfunction setDocument(document) {\n DOCUMENT = document;\n}\n/**\n * Access the object that represents the `document` for this platform.\n *\n * Ivy calls this whenever it needs to access the `document` object.\n * For example to create the renderer or to do sanitization.\n */\nfunction getDocument() {\n if (DOCUMENT !== undefined) {\n return DOCUMENT;\n }\n else if (typeof document !== 'undefined') {\n return document;\n }\n // No \"document\" can be found. This should only happen if we are running ivy outside Angular and\n // the current platform is not a browser. Since this is not a supported scenario at the moment\n // this should not happen in Angular apps.\n // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a\n // public API. Meanwhile we just return `undefined` and let the application fail.\n return undefined;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO: cleanup once the code is merged in angular/angular\nvar RendererStyleFlags3;\n(function (RendererStyleFlags3) {\n RendererStyleFlags3[RendererStyleFlags3[\"Important\"] = 1] = \"Important\";\n RendererStyleFlags3[RendererStyleFlags3[\"DashCase\"] = 2] = \"DashCase\";\n})(RendererStyleFlags3 || (RendererStyleFlags3 = {}));\n/** Returns whether the `renderer` is a `ProceduralRenderer3` */\nfunction isProceduralRenderer(renderer) {\n return !!(renderer.listen);\n}\nconst domRendererFactory3 = {\n createRenderer: (hostElement, rendererType) => {\n return getDocument();\n }\n};\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$6 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object')\n return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Returns `LContainer` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLContainer(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLContainer()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (value[TYPE] === true)\n return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* CreationMode */) === 4 /* CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* Attached */) === 128 /* Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined)\n return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents\n * whose\n * 1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh\n * or\n * 2. counter goes from 1 to 0, indicating there are no more descendant views to refresh\n */\nfunction updateTransplantedViewCount(lContainer, amount) {\n lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n let viewOrContainer = lContainer;\n let parent = lContainer[PARENT];\n while (parent !== null &&\n ((amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1) ||\n (amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0))) {\n parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n viewOrContainer = parent;\n parent = parent[PARENT];\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst instructionState = {\n lFrame: createLFrame(null),\n bindingsEnabled: true,\n isInCheckNoChangesMode: false,\n};\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```\n * <my-comp my-directive>\n * Should match component / directive.\n * </my-comp>\n * <div ngNonBindable>\n * <!-- ɵɵdisableBindings() -->\n * <my-comp my-directive>\n * Should not match component / directive because we are in ngNonBindable.\n * </my-comp>\n * <!-- ɵɵenableBindings() -->\n * </div>\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction setCurrentTNodeAsParent() {\n instructionState.lFrame.isParent = true;\n}\nfunction getContextLView() {\n return instructionState.lFrame.contextLView;\n}\nfunction isInCheckNoChangesMode() {\n // TODO(misko): remove this from the LView since it is ngDevMode=true mode only.\n return instructionState.isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n instructionState.isInCheckNoChangesMode = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null)\n break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* Element */ | 8 /* ElementContainer */)) {\n break;\n }\n }\n else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n }\n else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = instructionState.lFrame = allocLFrame();\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false,\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = instructionState.lFrame.contextLView =\n walkUpViews(level, instructionState.lFrame.contextLView);\n return contextLView[CONTEXT];\n}\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode &&\n assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode && index !== -1 &&\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode &&\n assertLessThan(index, instructionState.lFrame.lView.length, 'Can\\'t set index passed end of LView');\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n ngDevMode && assertFirstCreatePass(tView);\n const { ngOnChanges, ngOnInit, ngDoCheck } = directiveDef.type.prototype;\n if (ngOnChanges) {\n const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges);\n (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = []))\n .push(directiveIndex, wrappedOnChanges);\n }\n if (ngOnInit) {\n (tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit);\n }\n if (ngDoCheck) {\n (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck);\n (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, ngDoCheck);\n }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n // It's necessary to loop through the directives at elementEnd() (rather than processing in\n // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n // hooks for projected components and directives must be called *before* their hosts.\n for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n const directiveDef = tView.data[i];\n ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n const lifecycleHooks = directiveDef.type.prototype;\n const { ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy } = lifecycleHooks;\n if (ngAfterContentInit) {\n (tView.contentHooks || (tView.contentHooks = [])).push(-i, ngAfterContentInit);\n }\n if (ngAfterContentChecked) {\n (tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked);\n (tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked);\n }\n if (ngAfterViewInit) {\n (tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit);\n }\n if (ngAfterViewChecked) {\n (tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked);\n (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked);\n }\n if (ngOnDestroy != null) {\n (tView.destroyHooks || (tView.destroyHooks = [])).push(i, ngOnDestroy);\n }\n }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the array\n * They are are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n callHooks(lView, hooks, 3 /* InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n if ((lView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) {\n callHooks(lView, hooks, initPhase, nodeIndex);\n }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n ngDevMode &&\n assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n let flags = lView[FLAGS];\n if ((flags & 3 /* InitPhaseStateMask */) === initPhase) {\n flags &= 2047 /* IndexWithinInitPhaseReset */;\n flags += 1 /* InitPhaseStateIncrementer */;\n lView[FLAGS] = flags;\n }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n ngDevMode &&\n assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n const startIndex = currentNodeIndex !== undefined ?\n (currentView[PREORDER_HOOK_FLAGS] & 65535 /* IndexOfTheNextPreOrderHookMaskMask */) :\n 0;\n const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n let lastNodeIndexFound = 0;\n for (let i = startIndex; i < max; i++) {\n const hook = arr[i + 1];\n if (typeof hook === 'number') {\n lastNodeIndexFound = arr[i];\n if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n break;\n }\n }\n else {\n const isInitHook = arr[i] < 0;\n if (isInitHook)\n currentView[PREORDER_HOOK_FLAGS] += 65536 /* NumberOfInitHooksCalledIncrementer */;\n if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n callHook(currentView, initPhase, arr, i);\n currentView[PREORDER_HOOK_FLAGS] =\n (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* NumberOfInitHooksCalledMask */) + i +\n 2;\n }\n i++;\n }\n }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n const isInitHook = arr[i] < 0;\n const hook = arr[i + 1];\n const directiveIndex = isInitHook ? -arr[i] : arr[i];\n const directive = currentView[directiveIndex];\n if (isInitHook) {\n const indexWithintInitPhase = currentView[FLAGS] >> 11 /* IndexWithinInitPhaseShift */;\n // The init phase state must be always checked here as it may have been recursively updated.\n if (indexWithintInitPhase <\n (currentView[PREORDER_HOOK_FLAGS] >> 16 /* NumberOfInitHooksCalledShift */) &&\n (currentView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) {\n currentView[FLAGS] += 2048 /* IndexWithinInitPhaseIncrementer */;\n profiler(4 /* LifecycleHookStart */, directive, hook);\n try {\n hook.call(directive);\n }\n finally {\n profiler(5 /* LifecycleHookEnd */, directive, hook);\n }\n }\n }\n else {\n profiler(4 /* LifecycleHookStart */, directive, hook);\n try {\n hook.call(directive);\n }\n finally {\n profiler(5 /* LifecycleHookEnd */, directive, hook);\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array<any> {\n *\n * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Cumulative bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Cumulative bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Cumulative bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Cumulative bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Cumulative bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Cumulative bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Cumulative bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // We need to store a reference to the injector's parent so DI can keep looking up\n * // the injector tree until it finds the dependency it's looking for.\n * [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array<any> {\n *\n * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Shared node bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Shared node bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Shared node bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Shared node bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Shared node bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Shared node bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Shared node bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // Necessary to find directive indices for a particular node.\n * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n * }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n constructor(\n /**\n * Factory to invoke in order to create a new instance.\n */\n factory, \n /**\n * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n */\n isViewProvider, injectImplementation) {\n this.factory = factory;\n /**\n * Marker set to true during factory invocation to see if we get into recursive loop.\n * Recursive loop causes an error to be displayed.\n */\n this.resolving = false;\n ngDevMode && assertDefined(factory, 'Factory not specified');\n ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n this.canSeeViewProviders = isViewProvider;\n this.injectImpl = injectImplementation;\n }\n}\nfunction isFactory(obj) {\n return obj instanceof NodeInjectorFactory;\n}\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$5 = 1;\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n let text = '';\n (tNodeType & 1 /* Text */) && (text += '|Text');\n (tNodeType & 2 /* Element */) && (text += '|Element');\n (tNodeType & 4 /* Container */) && (text += '|Container');\n (tNodeType & 8 /* ElementContainer */) && (text += '|ElementContainer');\n (tNodeType & 16 /* Projection */) && (text += '|Projection');\n (tNodeType & 32 /* Icu */) && (text += '|IcuContainer');\n (tNodeType & 64 /* Placeholder */) && (text += '|Placeholder');\n return text.length > 0 ? text.substring(1) : text;\n}\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$4 = 1;\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n * <div my-dir [class]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n return (tNode.flags & 16 /* hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n * <div my-dir [style]=\"exp\"></div>\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n return (tNode.flags & 32 /* hasStyleInput */) !== 0;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction assertTNodeType(tNode, expectedTypes, message) {\n assertDefined(tNode, 'should be called with a TNode');\n if ((tNode.type & expectedTypes) === 0) {\n throwError(message ||\n `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n }\n}\nfunction assertPureTNodeType(type) {\n if (!(type === 2 /* Element */ || //\n type === 1 /* Text */ || //\n type === 4 /* Container */ || //\n type === 8 /* ElementContainer */ || //\n type === 32 /* Icu */ || //\n type === 16 /* Projection */ || //\n type === 64 /* Placeholder */)) {\n throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n const isProc = isProceduralRenderer(renderer);\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n isProc ?\n renderer.setAttribute(native, attrName, attrVal, namespaceURI) :\n native.setAttributeNS(namespaceURI, attrName, attrVal);\n }\n else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n if (isProc) {\n renderer.setProperty(native, attrName, attrVal);\n }\n }\n else {\n isProc ?\n renderer.setAttribute(native, attrName, attrVal) :\n native.setAttribute(attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return marker === 3 /* Bindings */ || marker === 4 /* Template */ ||\n marker === 6 /* I18n */;\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n }\n else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n }\n else {\n let srcMarker = -1 /* ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n }\n else {\n if (srcMarker === 0 /* NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n }\n else if (srcMarker === -1 /* ImplicitAttributes */ ||\n srcMarker === 2 /* Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n }\n else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* ImplicitAttributes */) {\n markerInsertPosition = -1;\n }\n else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n }\n else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n }\n else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n }\n else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null)\n i++;\n if (value !== null)\n i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n ngDevMode && assertNumber(parentLocation, 'Number expected');\n ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');\n const parentInjectorIndex = parentLocation & 32767 /* InjectorIndexMask */;\n ngDevMode &&\n assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n return parentLocation & 32767 /* InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n return parentLocation >> 16 /* ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n let viewOffset = getParentInjectorViewOffset(location);\n let parentView = startView;\n // For most cases, the parent injector can be found on the host node (e.g. for component\n // or container), but we must keep the loop here to support the rarer case of deeply nested\n // <ng-template> tags or inline views, where the parent injector might live many views\n // above the child injector.\n while (viewOffset > 0) {\n parentView = parentView[DECLARATION_VIEW];\n viewOffset--;\n }\n return parentView;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```\n * @Injectable()\n * class MyService {\n * constructor(public value: String) {}\n * }\n *\n * @Component({\n * providers: [\n * MyService,\n * {provide: String, value: 'providers' }\n * ]\n * viewProviders: [\n * {provide: String, value: 'viewProviders'}\n * ]\n * })\n * class MyComponent {\n * constructor(myService: MyService, value: String) {\n * // We expect that Component can see into `viewProviders`.\n * expect(value).toEqual('viewProviders');\n * // `MyService` was not declared in `viewProviders` hence it can't see it.\n * expect(myService.value).toEqual('providers');\n * }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n const oldValue = includeViewProviders;\n includeViewProviders = v;\n return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n let id;\n if (typeof type === 'string') {\n id = type.charCodeAt(0) || 0;\n }\n else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n id = type[NG_ELEMENT_ID];\n }\n // Set a unique ID on the directive type, so if something tries to inject the directive,\n // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n if (id == null) {\n id = type[NG_ELEMENT_ID] = nextNgElementId++;\n }\n // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n const bloomHash = id & BLOOM_MASK;\n // Create a mask that targets the specific bit associated with the directive.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n // should be written to.\n tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n const existingInjectorIndex = getInjectorIndex(tNode, lView);\n if (existingInjectorIndex !== -1) {\n return existingInjectorIndex;\n }\n const tView = lView[TVIEW];\n if (tView.firstCreatePass) {\n tNode.injectorIndex = lView.length;\n insertBloom(tView.data, tNode); // foundation for node bloom\n insertBloom(lView, null); // foundation for cumulative bloom\n insertBloom(tView.blueprint, null);\n }\n const parentLoc = getParentInjectorLocation(tNode, lView);\n const injectorIndex = tNode.injectorIndex;\n // If a parent injector can't be found, its location is set to -1.\n // In that case, we don't need to set up a cumulative bloom\n if (hasParentInjector(parentLoc)) {\n const parentIndex = getParentInjectorIndex(parentLoc);\n const parentLView = getParentInjectorView(parentLoc, lView);\n const parentData = parentLView[TVIEW].data;\n // Creates a cumulative bloom filter that merges the parent's bloom filter\n // and its own cumulative bloom (which contains tokens for all ancestors)\n for (let i = 0; i < 8 /* BLOOM_SIZE */; i++) {\n lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n }\n }\n lView[injectorIndex + 8 /* PARENT */] = parentLoc;\n return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n if (tNode.injectorIndex === -1 ||\n // If the injector index is the same as its parent's injector index, then the index has been\n // copied down from the parent node. No injector has been created yet on this node.\n (tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex) ||\n // After the first template pass, the injector index might exist but the parent values\n // might not have been calculated yet for this instance\n lView[tNode.injectorIndex + 8 /* PARENT */] === null) {\n return -1;\n }\n else {\n ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n return tNode.injectorIndex;\n }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n // If we have a parent `TNode` and there is an injector associated with it we are done, because\n // the parent injector is within the current `LView`.\n return tNode.parent.injectorIndex; // ViewOffset is 0\n }\n // When parent injector location is computed it may be outside of the current view. (ie it could\n // be pointing to a declared parent location). This variable stores number of declaration parents\n // we need to walk up in order to find the parent injector location.\n let declarationViewOffset = 0;\n let parentTNode = null;\n let lViewCursor = lView;\n // The parent injector is not in the current `LView`. We will have to walk the declared parent\n // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n // `NodeInjector`.\n while (lViewCursor !== null) {\n // First determine the `parentTNode` location. The parent pointer differs based on `TView.type`.\n const tView = lViewCursor[TVIEW];\n const tViewType = tView.type;\n if (tViewType === 2 /* Embedded */) {\n ngDevMode &&\n assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n parentTNode = tView.declTNode;\n }\n else if (tViewType === 1 /* Component */) {\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n parentTNode = lViewCursor[T_HOST];\n }\n else {\n ngDevMode && assertEqual(tView.type, 0 /* Root */, 'Root type expected');\n parentTNode = null;\n }\n if (parentTNode === null) {\n // If we have no parent, than we are done.\n return NO_PARENT_INJECTOR;\n }\n ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n // Every iteration of the loop requires that we go to the declared parent.\n declarationViewOffset++;\n lViewCursor = lViewCursor[DECLARATION_VIEW];\n if (parentTNode.injectorIndex !== -1) {\n // We found a NodeInjector which points to something.\n return (parentTNode.injectorIndex |\n (declarationViewOffset << 16 /* ViewOffsetShift */));\n }\n }\n return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n * at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```\n * @Component(...)\n * class MyComponent {\n * constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * <my-component title=\"Hello\"></my-component>\n * ```\n *\n * Then factory method generated is:\n * ```\n * MyComponent.ɵcmp = defineComponent({\n * factory: () => new MyComponent(injectAttribute('title'))\n * ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n ngDevMode && assertTNodeType(tNode, 12 /* AnyContainer */ | 3 /* AnyRNode */);\n ngDevMode && assertDefined(tNode, 'expecting tNode');\n if (attrNameToInject === 'class') {\n return tNode.classes;\n }\n if (attrNameToInject === 'style') {\n return tNode.styles;\n }\n const attrs = tNode.attrs;\n if (attrs) {\n const attrsLength = attrs.length;\n let i = 0;\n while (i < attrsLength) {\n const value = attrs[i];\n // If we hit a `Bindings` or `Template` marker then we are done.\n if (isNameOnlyAttributeMarker(value))\n break;\n // Skip namespaced attributes\n if (value === 0 /* NamespaceURI */) {\n // we skip the next two values\n // as namespaced attributes looks like\n // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n // 'existValue', ...]\n i = i + 2;\n }\n else if (typeof value === 'number') {\n // Skip to the first value of the marked attribute.\n i++;\n while (i < attrsLength && typeof attrs[i] === 'string') {\n i++;\n }\n }\n else if (value === attrNameToInject) {\n return attrs[i + 1];\n }\n else {\n i = i + 2;\n }\n }\n }\n return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n if (flags & InjectFlags.Optional) {\n return notFoundValue;\n }\n else {\n throwProviderNotFoundError(token, 'NodeInjector');\n }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n if (flags & InjectFlags.Optional && notFoundValue === undefined) {\n // This must be set or the NullInjector will throw for optional deps\n notFoundValue = null;\n }\n if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n const moduleInjector = lView[INJECTOR$1];\n // switch to `injectInjectorOnly` implementation for module injector, since module injector\n // should not have access to Component/Directive DI scope (that may happen through\n // `directiveInject` implementation)\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n if (moduleInjector) {\n return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n }\n else {\n return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n }\n }\n finally {\n setInjectImplementation(previousInjectImplementation);\n }\n }\n return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n if (tNode !== null) {\n const bloomHash = bloomHashBitOrFactory(token);\n // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n // so just call the factory function to create it.\n if (typeof bloomHash === 'function') {\n if (!enterDI(lView, tNode, flags)) {\n // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n // flag, the module injector is not searched for that token in Ivy.\n return (flags & InjectFlags.Host) ?\n notFoundValueOrThrow(notFoundValue, token, flags) :\n lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n }\n try {\n const value = bloomHash(flags);\n if (value == null && !(flags & InjectFlags.Optional)) {\n throwProviderNotFoundError(token);\n }\n else {\n return value;\n }\n }\n finally {\n leaveDI();\n }\n }\n else if (typeof bloomHash === 'number') {\n // A reference to the previous injector TView that was found while climbing the element\n // injector tree. This is used to know if viewProviders can be accessed on the current\n // injector.\n let previousTView = null;\n let injectorIndex = getInjectorIndex(tNode, lView);\n let parentLocation = NO_PARENT_INJECTOR;\n let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n // If we should skip this injector, or if there is no injector on this node, start by\n // searching the parent injector.\n if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) :\n lView[injectorIndex + 8 /* PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n injectorIndex = -1;\n }\n else {\n previousTView = lView[TVIEW];\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n // Traverse up the injector tree until we find a potential match or until we know there\n // *isn't* a match.\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n // Check the current injector. If it matches, see if it contains token.\n const tView = lView[TVIEW];\n ngDevMode &&\n assertTNodeForLView(tView.data[injectorIndex + 8 /* TNODE */], lView);\n if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n // At this point, we have an injector which *may* contain the token, so we step through\n // the providers and directives associated with the injector's corresponding node to get\n // the instance.\n const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n if (instance !== NOT_FOUND) {\n return instance;\n }\n }\n parentLocation = lView[injectorIndex + 8 /* PARENT */];\n if (parentLocation !== NO_PARENT_INJECTOR &&\n shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* TNODE */] === hostTElementNode) &&\n bloomHasToken(bloomHash, injectorIndex, lView)) {\n // The def wasn't found anywhere on this node, so it was a false positive.\n // Traverse up the tree and continue searching.\n previousTView = tView;\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n else {\n // If we should not search parent OR If the ancestor bloom filter value does not have the\n // bit corresponding to the directive we can give up on traversing up to find the specific\n // injector.\n injectorIndex = -1;\n }\n }\n }\n }\n return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\nconst NOT_FOUND = {};\nfunction createNodeInjector() {\n return new NodeInjector(getCurrentTNode(), getLView());\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n const currentTView = lView[TVIEW];\n const tNode = currentTView.data[injectorIndex + 8 /* TNODE */];\n // First, we need to determine if view providers can be accessed by the starting element.\n // There are two possibilities\n const canAccessViewProviders = previousTView == null ?\n // 1) This is the first invocation `previousTView == null` which means that we are at the\n // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n // to look into the ViewProviders is if:\n // - we are on a component\n // - AND the injector set `includeViewProviders` to true (implying that the token can see\n // ViewProviders because it is the Component or a Service which itself was declared in\n // ViewProviders)\n (isComponentHost(tNode) && includeViewProviders) :\n // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n // In such a case we are only allowed to look into the ViewProviders if:\n // - We just crossed from child View to Parent View `previousTView != currentTView`\n // - AND the parent TNode is an Element.\n // This means that we just came from the Component's View and therefore are allowed to see\n // into the ViewProviders.\n (previousTView != currentTView && ((tNode.type & 3 /* AnyRNode */) !== 0));\n // This special case happens when there is a @host on the inject and when we are searching\n // on the host element node.\n const isHostSpecialCase = (flags & InjectFlags.Host) && hostTElementNode === tNode;\n const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n if (injectableIdx !== null) {\n return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n }\n else {\n return NOT_FOUND;\n }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n const nodeProviderIndexes = tNode.providerIndexes;\n const tInjectables = tView.data;\n const injectablesStart = nodeProviderIndexes & 1048575 /* ProvidersStartIndexMask */;\n const directivesStart = tNode.directiveStart;\n const directiveEnd = tNode.directiveEnd;\n const cptViewProvidersCount = nodeProviderIndexes >> 20 /* CptViewProvidersCountShift */;\n const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;\n // When the host special case applies, only the viewProviders and the component are visible\n const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n for (let i = startingIndex; i < endIndex; i++) {\n const providerTokenOrDef = tInjectables[i];\n if (i < directivesStart && token === providerTokenOrDef ||\n i >= directivesStart && providerTokenOrDef.type === token) {\n return i;\n }\n }\n if (isHostSpecialCase) {\n const dirDef = tInjectables[directivesStart];\n if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n return directivesStart;\n }\n }\n return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n let value = lView[index];\n const tData = tView.data;\n if (isFactory(value)) {\n const factory = value;\n if (factory.resolving) {\n throwCyclicDependencyError(stringifyForError(tData[index]));\n }\n const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n factory.resolving = true;\n const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;\n const success = enterDI(lView, tNode, InjectFlags.Default);\n ngDevMode &&\n assertEqual(success, true, 'Because flags do not contain \\`SkipSelf\\' we expect this to always succeed.');\n try {\n value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n // This code path is hit for both directives and providers.\n // For perf reasons, we want to avoid searching for hooks on providers.\n // It does no harm to try (the hooks just won't exist), but the extra\n // checks are unnecessary and this is a hot path. So we check to see\n // if the index of the dependency is in the directive range for this\n // tNode. If it's not, we know it's a provider and skip hook registration.\n if (tView.firstCreatePass && index >= tNode.directiveStart) {\n ngDevMode && assertDirectiveDef(tData[index]);\n registerPreOrderHooks(index, tData[index], tView);\n }\n }\n finally {\n previousInjectImplementation !== null &&\n setInjectImplementation(previousInjectImplementation);\n setIncludeViewProviders(previousIncludeViewProviders);\n factory.resolving = false;\n leaveDI();\n }\n }\n return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n * When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n ngDevMode && assertDefined(token, 'token must be defined');\n if (typeof token === 'string') {\n return token.charCodeAt(0) || 0;\n }\n const tokenId = \n // First check with `hasOwnProperty` so we don't get an inherited ID.\n token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n // Negative token IDs are used for special objects such as `Injector`\n if (typeof tokenId === 'number') {\n if (tokenId >= 0) {\n return tokenId & BLOOM_MASK;\n }\n else {\n ngDevMode &&\n assertEqual(tokenId, -1 /* Injector */, 'Expecting to get Special Injector Id');\n return createNodeInjector;\n }\n }\n else {\n return tokenId;\n }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n // Create a mask that targets the specific bit associated with the directive we're looking for.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n // that should be used.\n const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n // this injector is a potential match.\n return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nclass NodeInjector {\n constructor(_tNode, _lView) {\n this._tNode = _tNode;\n this._lView = _lView;\n }\n get(token, notFoundValue, flags) {\n return getOrCreateInjectable(this._tNode, this._lView, token, flags, notFoundValue);\n }\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n return noSideEffects(() => {\n const ownConstructor = type.prototype.constructor;\n const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n const objectPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objectPrototype) {\n const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n // If we hit something that has a factory and the factory isn't the same as the type,\n // we've found the inherited factory. Note the check that the factory isn't the type's\n // own factory is redundant in most cases, but if the user has custom decorators on the\n // class, this lookup will start one level down in the prototype chain, causing us to\n // find the own factory first and potentially triggering an infinite loop downstream.\n if (factory && factory !== ownFactory) {\n return factory;\n }\n parent = Object.getPrototypeOf(parent);\n }\n // There is no factory defined. Either this was improper usage of inheritance\n // (no Angular decorator on the superclass) or there is no constructor at all\n // in the inheritance chain. Since the two cases cannot be distinguished, the\n // latter has to be assumed.\n return t => new t();\n });\n}\nfunction getFactoryOf(type) {\n if (isForwardRef(type)) {\n return () => {\n const factory = getFactoryOf(resolveForwardRef(type));\n return factory && factory();\n };\n }\n return getFactoryDef(type);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function DecoratorFactory(...args) {\n if (this instanceof DecoratorFactory) {\n metaCtor.call(this, ...args);\n return this;\n }\n const annotationInstance = new DecoratorFactory(...args);\n return function TypeDecorator(cls) {\n if (typeFn)\n typeFn(cls, ...args);\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const annotations = cls.hasOwnProperty(ANNOTATIONS) ?\n cls[ANNOTATIONS] :\n Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS];\n annotations.push(annotationInstance);\n if (additionalProcessing)\n additionalProcessing(cls);\n return cls;\n };\n }\n if (parentClass) {\n DecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n DecoratorFactory.prototype.ngMetadataName = name;\n DecoratorFactory.annotationCls = DecoratorFactory;\n return DecoratorFactory;\n });\n}\nfunction makeMetadataCtor(props) {\n return function ctor(...args) {\n if (props) {\n const values = props(...args);\n for (const propName in values) {\n this[propName] = values[propName];\n }\n }\n };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function ParamDecoratorFactory(...args) {\n if (this instanceof ParamDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const annotationInstance = new ParamDecoratorFactory(...args);\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n function ParamDecorator(cls, unusedKey, index) {\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const parameters = cls.hasOwnProperty(PARAMETERS) ?\n cls[PARAMETERS] :\n Object.defineProperty(cls, PARAMETERS, { value: [] })[PARAMETERS];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n (parameters[index] = parameters[index] || []).push(annotationInstance);\n return cls;\n }\n }\n if (parentClass) {\n ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n ParamDecoratorFactory.prototype.ngMetadataName = name;\n ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n return ParamDecoratorFactory;\n });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function PropDecoratorFactory(...args) {\n if (this instanceof PropDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const decoratorInstance = new PropDecoratorFactory(...args);\n function PropDecorator(target, name) {\n const constructor = target.constructor;\n // Use of Object.defineProperty is important because it creates a non-enumerable property\n // which prevents the property from being copied during subclassing.\n const meta = constructor.hasOwnProperty(PROP_METADATA) ?\n constructor[PROP_METADATA] :\n Object.defineProperty(constructor, PROP_METADATA, { value: {} })[PROP_METADATA];\n meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\n meta[name].unshift(decoratorInstance);\n if (additionalProcessing)\n additionalProcessing(target, name, ...args);\n }\n return PropDecorator;\n }\n if (parentClass) {\n PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n PropDecoratorFactory.prototype.ngMetadataName = name;\n PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n return PropDecoratorFactory;\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = makeParamDecorator('Attribute', (attributeName) => ({ attributeName, __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName) }));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n * ```\n * interface MyInterface {...}\n * const myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));\n * // myInterface is inferred to be MyInterface.\n * ```\n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the `inject` function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As\n * mentioned above, `'root'` is the default value for `providedIn`.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n *\n * @publicApi\n */\nclass InjectionToken {\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n /** @internal */\n this.ngMetadataName = 'InjectionToken';\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n }\n else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory,\n });\n }\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A DI token that you can use to create a virtual [provider](guide/glossary#provider)\n * that will populate the `entryComponents` field of components and NgModules\n * based on its `useValue` property value.\n * All components that are referenced in the `useValue` value (either directly\n * or in a nested array or map) are added to the `entryComponents` property.\n *\n * @usageNotes\n *\n * The following example shows how the router can populate the `entryComponents`\n * field of an NgModule based on a router configuration that refers\n * to components.\n *\n * ```typescript\n * // helper function inside the router\n * function provideRoutes(routes) {\n * return [\n * {provide: ROUTES, useValue: routes},\n * {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}\n * ];\n * }\n *\n * // user code\n * let routes = [\n * {path: '/root', component: RootComp},\n * {path: '/teams', component: TeamsComp}\n * ];\n *\n * @NgModule({\n * providers: [provideRoutes(routes)]\n * })\n * class ModuleWithRoutes {}\n * ```\n *\n * @publicApi\n * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.\n */\nconst ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents');\n// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not\n// explicitly set.\nconst emitDistinctChangesOnlyDefaultValue = true;\n/**\n * Base class for query metadata.\n *\n * @see `ContentChildren`.\n * @see `ContentChild`.\n * @see `ViewChildren`.\n * @see `ViewChild`.\n *\n * @publicApi\n */\nclass Query {\n}\n/**\n * ContentChildren decorator and metadata.\n *\n *\n * @Annotation\n * @publicApi\n */\nconst ContentChildren = makePropDecorator('ContentChildren', (selector, data = {}) => (Object.assign({ selector, first: false, isViewQuery: false, descendants: false, emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue }, data)), Query);\n/**\n * ContentChild decorator and metadata.\n *\n *\n * @Annotation\n *\n * @publicApi\n */\nconst ContentChild = makePropDecorator('ContentChild', (selector, data = {}) => (Object.assign({ selector, first: true, isViewQuery: false, descendants: true }, data)), Query);\n/**\n * ViewChildren decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChildren = makePropDecorator('ViewChildren', (selector, data = {}) => (Object.assign({ selector, first: false, isViewQuery: true, descendants: true, emitDistinctChangesOnly: emitDistinctChangesOnlyDefaultValue }, data)), Query);\n/**\n * ViewChild decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst ViewChild = makePropDecorator('ViewChild', (selector, data) => (Object.assign({ selector, first: true, isViewQuery: true, descendants: true }, data)), Query);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar FactoryTarget;\n(function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n})(FactoryTarget || (FactoryTarget = {}));\nvar ViewEncapsulation;\n(function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n})(ViewEncapsulation || (ViewEncapsulation = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getCompilerFacade(request) {\n const globalNg = _global['ng'];\n if (globalNg && globalNg.ɵcompilerFacade) {\n return globalNg.ɵcompilerFacade;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Log the type as an error so that a developer can easily navigate to the type from the\n // console.\n console.error(`JIT compilation failed for ${request.kind}`, request.type);\n let message = `The ${request.kind} '${request\n .type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n if (request.usage === 1 /* PartialDeclaration */) {\n message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n message +=\n `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n message += '\\n';\n message +=\n `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n }\n else {\n message +=\n `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n }\n message +=\n `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n message +=\n `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n throw new Error(message);\n }\n else {\n throw new Error('JIT compiler unavailable');\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n return typeof v === 'function';\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Equivalent to ES6 spread, add each item to an array.\n *\n * @param items The items to add\n * @param arr The array to which you want to add the items\n */\nfunction addAllToArray(items, arr) {\n for (let i = 0; i < items.length; i++) {\n arr.push(items[i]);\n }\n}\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length)\n return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list, dst) {\n if (dst === undefined)\n dst = list;\n for (let i = 0; i < list.length; i++) {\n let item = list[i];\n if (Array.isArray(item)) {\n // we need to inline it.\n if (dst === list) {\n // Our assumption that the list was already flat was wrong and\n // we need to clone flat since we need to write to it.\n dst = list.slice(0, i);\n }\n flatten(item, dst);\n }\n else if (dst !== list) {\n dst.push(item);\n }\n }\n return dst;\n}\nfunction deepForEach(input, fn) {\n input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n }\n else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n }\n else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n }\n else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n }\n else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Insert a `value` into an `array` so that the array remains sorted.\n *\n * NOTE:\n * - Duplicates are not allowed, and are ignored.\n * - This uses binary search algorithm for fast inserts.\n *\n * @param array A sorted array to insert into.\n * @param value The value to insert.\n * @returns index of the inserted value.\n */\nfunction arrayInsertSorted(array, value) {\n let index = arrayIndexOfSorted(array, value);\n if (index < 0) {\n // if we did not find it insert it.\n index = ~index;\n arrayInsert(array, index, value);\n }\n return index;\n}\n/**\n * Remove `value` from a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to remove from.\n * @param value The value to remove.\n * @returns index of the removed value.\n * - positive index if value found and removed.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction arrayRemoveSorted(array, value) {\n const index = arrayIndexOfSorted(array, value);\n if (index >= 0) {\n arraySplice(array, index, 1);\n }\n return index;\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n }\n else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + ((end - start) >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return (middle << shift);\n }\n else if (current > value) {\n end = middle;\n }\n else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{\\s*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n return ES5_DELEGATE_CTOR.test(typeStr) ||\n ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) ||\n (ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr));\n}\nclass ReflectionCapabilities {\n constructor(reflect) {\n this._reflect = reflect || _global['Reflect'];\n }\n isReflectionEnabled() {\n return true;\n }\n factory(t) {\n return (...args) => new t(...args);\n }\n /** @internal */\n _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n let result;\n if (typeof paramTypes === 'undefined') {\n result = newArray(paramAnnotations.length);\n }\n else {\n result = newArray(paramTypes.length);\n }\n for (let i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n }\n else if (paramTypes[i] && paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n }\n else {\n result[i] = [];\n }\n if (paramAnnotations && paramAnnotations[i] != null) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n }\n _ownParameters(type, parentCtor) {\n const typeStr = type.toString();\n // If we have no decorators, we only have function.length as metadata.\n // In that case, to detect whether a child class declared an own constructor or not,\n // we need to look inside of that constructor to check whether it is\n // just calling the parent.\n // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n // that sets 'design:paramtypes' to []\n // if a class inherits from another class but has no ctor declared itself.\n if (isDelegateCtor(typeStr)) {\n return null;\n }\n // Prefer the direct API.\n if (type.parameters && type.parameters !== parentCtor.parameters) {\n return type.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n const tsickleCtorParams = type.ctorParameters;\n if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n // Newer tsickle uses a function closure\n // Retain the non-function case for compatibility with older tsickle\n const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n const paramTypes = ctorParameters.map((ctorParam) => ctorParam && ctorParam.type);\n const paramAnnotations = ctorParameters.map((ctorParam) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // API for metadata created by invoking the decorators.\n const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n const paramTypes = this._reflect && this._reflect.getOwnMetadata &&\n this._reflect.getOwnMetadata('design:paramtypes', type);\n if (paramTypes || paramAnnotations) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // If a class has no decorators, at least create metadata\n // based on function.length.\n // Note: We know that this is a real constructor as we checked\n // the content of the constructor above.\n return newArray(type.length);\n }\n parameters(type) {\n // Note: only report metadata if we have at least one class decorator\n // to stay in sync with the static reflector.\n if (!isType(type)) {\n return [];\n }\n const parentCtor = getParentCtor(type);\n let parameters = this._ownParameters(type, parentCtor);\n if (!parameters && parentCtor !== Object) {\n parameters = this.parameters(parentCtor);\n }\n return parameters || [];\n }\n _ownAnnotations(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n let annotations = typeOrFunc.annotations;\n if (typeof annotations === 'function' && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n return typeOrFunc[ANNOTATIONS];\n }\n return null;\n }\n annotations(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return [];\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n return parentAnnotations.concat(ownAnnotations);\n }\n _ownPropMetadata(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.propMetadata &&\n typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n let propMetadata = typeOrFunc.propMetadata;\n if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.propDecorators &&\n typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n const propDecorators = typeOrFunc.propDecorators;\n const propMetadata = {};\n Object.keys(propDecorators).forEach(prop => {\n propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n });\n return propMetadata;\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n return typeOrFunc[PROP_METADATA];\n }\n return null;\n }\n propMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const propMetadata = {};\n if (parentCtor !== Object) {\n const parentPropMetadata = this.propMetadata(parentCtor);\n Object.keys(parentPropMetadata).forEach((propName) => {\n propMetadata[propName] = parentPropMetadata[propName];\n });\n }\n const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n if (ownPropMetadata) {\n Object.keys(ownPropMetadata).forEach((propName) => {\n const decorators = [];\n if (propMetadata.hasOwnProperty(propName)) {\n decorators.push(...propMetadata[propName]);\n }\n decorators.push(...ownPropMetadata[propName]);\n propMetadata[propName] = decorators;\n });\n }\n return propMetadata;\n }\n ownPropMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n }\n hasLifecycleHook(type, lcProperty) {\n return type instanceof Type && lcProperty in type.prototype;\n }\n guards(type) {\n return {};\n }\n getter(name) {\n return new Function('o', 'return o.' + name + ';');\n }\n setter(name) {\n return new Function('o', 'v', 'return o.' + name + ' = v;');\n }\n method(name) {\n const functionBody = `if (!o.${name}) throw new Error('\"${name}\" is undefined');\n return o.${name}.apply(o, args);`;\n return new Function('o', 'args', functionBody);\n }\n // There is not a concept of import uri in Js, but this is useful in developing Dart applications.\n importUri(type) {\n // StaticSymbol\n if (typeof type === 'object' && type['filePath']) {\n return type['filePath'];\n }\n // Runtime type\n return `./${stringify(type)}`;\n }\n resourceUri(type) {\n return `./${stringify(type)}`;\n }\n resolveIdentifier(name, moduleUrl, members, runtime) {\n return runtime;\n }\n resolveEnum(enumIdentifier, name) {\n return enumIdentifier[name];\n }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map(decoratorInvocation => {\n const decoratorType = decoratorInvocation.type;\n const annotationCls = decoratorType.annotationCls;\n const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n return new annotationCls(...annotationArgs);\n });\n}\nfunction getParentCtor(ctor) {\n const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n const parentCtor = parentProto ? parentProto.constructor : null;\n // Note: We always use `Object` as the null value\n // to simplify checking later on.\n return parentCtor || Object;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\nconst USE_VALUE$1 = getClosureSafeProperty({ provide: String, useValue: getClosureSafeProperty });\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new Error(`inject() must be called from an injection context`);\n }\n else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n }\n else {\n return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * This instruction allows the actual error message to be optimized away when ngDevMode is turned\n * off, saving bytes of generated code while still providing a good experience in dev mode.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n const msg = ngDevMode ?\n `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.` :\n 'invalid';\n throw new Error(msg);\n}\n/**\n * Injects a token from the currently active injector.\n *\n * Must be used in the context of a factory function such as one defined for an\n * `InjectionToken`. Throws an error if not called from such a context.\n *\n * Within such a factory function, using this function to request injection of a dependency\n * is faster and more type-safe than providing an additional array of dependencies\n * (as has been common with `useFactory` providers).\n *\n * @param token The injection token for the dependency to be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.\n * @returns the injected value if injection is successful, `null` otherwise.\n *\n * @usageNotes\n *\n * ### Example\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nconst inject = ɵɵinject;\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new Error('Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* Inject */) {\n type = meta.token;\n }\n else {\n flags |= flag;\n }\n }\n else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n }\n else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n }\n else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = attachInjectFlag(\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nmakeParamDecorator('Inject', (token) => ({ token })), -1 /* Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Optional'), 8 /* Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Self'), 2 /* Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('SkipSelf'), 4 /* SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host = \n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag(makeParamDecorator('Host'), 1 /* Host */);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _reflect = null;\nfunction getReflect() {\n return (_reflect = _reflect || new ReflectionCapabilities());\n}\nfunction reflectDependencies(type) {\n return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n return deps.map(dep => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n const meta = {\n token: null,\n attribute: null,\n host: false,\n optional: false,\n self: false,\n skipSelf: false,\n };\n if (Array.isArray(dep) && dep.length > 0) {\n for (let j = 0; j < dep.length; j++) {\n const param = dep[j];\n if (param === undefined) {\n // param may be undefined if type of dep is not set by ngtsc\n continue;\n }\n const proto = Object.getPrototypeOf(param);\n if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n meta.optional = true;\n }\n else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n meta.skipSelf = true;\n }\n else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n meta.self = true;\n }\n else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n meta.host = true;\n }\n else if (param instanceof Inject) {\n meta.token = param.token;\n }\n else if (param instanceof Attribute) {\n if (param.attributeName === undefined) {\n throw new Error(`Attribute name must be defined.`);\n }\n meta.attribute = param.attributeName;\n }\n else {\n meta.token = param;\n }\n }\n }\n else if (dep === undefined || (Array.isArray(dep) && dep.length === 0)) {\n meta.token = null;\n }\n else {\n meta.token = dep;\n }\n return meta;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Used to resolve resource URLs on `@Component` when used with JIT compilation.\n *\n * Example:\n * ```\n * @Component({\n * selector: 'my-comp',\n * templateUrl: 'my-comp.html', // This requires asynchronous resolution\n * })\n * class MyComponent{\n * }\n *\n * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process\n * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.\n *\n * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into\n * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.\n *\n * // Use browser's `fetch()` function as the default resource resolution strategy.\n * resolveComponentResources(fetch).then(() => {\n * // After resolution all URLs have been converted into `template` strings.\n * renderComponent(MyComponent);\n * });\n *\n * ```\n *\n * NOTE: In AOT the resolution happens during compilation, and so there should be no need\n * to call this method outside JIT mode.\n *\n * @param resourceResolver a function which is responsible for returning a `Promise` to the\n * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.\n */\nfunction resolveComponentResources(resourceResolver) {\n // Store all promises which are fetching the resources.\n const componentResolved = [];\n // Cache so that we don't fetch the same resource more than once.\n const urlMap = new Map();\n function cachedResourceResolve(url) {\n let promise = urlMap.get(url);\n if (!promise) {\n const resp = resourceResolver(url);\n urlMap.set(url, promise = resp.then(unwrapResponse));\n }\n return promise;\n }\n componentResourceResolutionQueue.forEach((component, type) => {\n const promises = [];\n if (component.templateUrl) {\n promises.push(cachedResourceResolve(component.templateUrl).then((template) => {\n component.template = template;\n }));\n }\n const styleUrls = component.styleUrls;\n const styles = component.styles || (component.styles = []);\n const styleOffset = component.styles.length;\n styleUrls && styleUrls.forEach((styleUrl, index) => {\n styles.push(''); // pre-allocate array.\n promises.push(cachedResourceResolve(styleUrl).then((style) => {\n styles[styleOffset + index] = style;\n styleUrls.splice(styleUrls.indexOf(styleUrl), 1);\n if (styleUrls.length == 0) {\n component.styleUrls = undefined;\n }\n }));\n });\n const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));\n componentResolved.push(fullyResolved);\n });\n clearResolutionOfComponentResourcesQueue();\n return Promise.all(componentResolved).then(() => undefined);\n}\nlet componentResourceResolutionQueue = new Map();\n// Track when existing ɵcmp for a Type is waiting on resources.\nconst componentDefPendingResolution = new Set();\nfunction maybeQueueResolutionOfComponentResources(type, metadata) {\n if (componentNeedsResolution(metadata)) {\n componentResourceResolutionQueue.set(type, metadata);\n componentDefPendingResolution.add(type);\n }\n}\nfunction isComponentDefPendingResolution(type) {\n return componentDefPendingResolution.has(type);\n}\nfunction componentNeedsResolution(component) {\n return !!((component.templateUrl && !component.hasOwnProperty('template')) ||\n component.styleUrls && component.styleUrls.length);\n}\nfunction clearResolutionOfComponentResourcesQueue() {\n const old = componentResourceResolutionQueue;\n componentResourceResolutionQueue = new Map();\n return old;\n}\nfunction restoreComponentResolutionQueue(queue) {\n componentDefPendingResolution.clear();\n queue.forEach((_, type) => componentDefPendingResolution.add(type));\n componentResourceResolutionQueue = queue;\n}\nfunction isComponentResourceResolutionQueueEmpty() {\n return componentResourceResolutionQueue.size === 0;\n}\nfunction unwrapResponse(response) {\n return typeof response == 'string' ? response : response.text();\n}\nfunction componentDefResolved(type) {\n componentDefPendingResolution.delete(type);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy$1;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy$1() {\n if (policy$1 === undefined) {\n policy$1 = null;\n if (_global.trustedTypes) {\n try {\n policy$1 = _global.trustedTypes.createPolicy('angular', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch (_a) {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy$1;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n var _a;\n return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security In particular, it must be assured that the provided string will\n * never cause an XSS vulnerability if used in a context that will be\n * interpreted and executed as a script by a browser, e.g. when calling eval.\n */\nfunction trustedScriptFromString(script) {\n var _a;\n return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will cause a browser to load and execute a resource, e.g. when\n * assigning to script.src.\n */\nfunction trustedScriptURLFromString(url) {\n var _a;\n return ((_a = getPolicy$1()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;\n}\n/**\n * Unsafely call the Function constructor with the given string arguments. It\n * is only available in development mode, and should be stripped out of\n * production code.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only called from development code, as use in production code can lead to\n * XSS vulnerabilities.\n */\nfunction newTrustedFunctionForDev(...args) {\n if (typeof ngDevMode === 'undefined') {\n throw new Error('newTrustedFunctionForDev should never be called in production');\n }\n if (!_global.trustedTypes) {\n // In environments that don't support Trusted Types, fall back to the most\n // straightforward implementation:\n return new Function(...args);\n }\n // Chrome currently does not support passing TrustedScript to the Function\n // constructor. The following implements the workaround proposed on the page\n // below, where the Chromium bug is also referenced:\n // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor\n const fnArgs = args.slice(0, -1).join(',');\n const fnBody = args[args.length - 1];\n const body = `(function anonymous(${fnArgs}\n) { ${fnBody}\n})`;\n // Using eval directly confuses the compiler and prevents this module from\n // being stripped out of JS binaries even if not used. The global['eval']\n // indirection fixes that.\n const fn = _global['eval'](trustedScriptFromString(body));\n if (fn.bind === undefined) {\n // Workaround for a browser bug that only exists in Chrome 83, where passing\n // a TrustedScript to eval just returns the TrustedScript back without\n // evaluating it. In that case, fall back to the most straightforward\n // implementation:\n return new Function(...args);\n }\n // To completely mimic the behavior of calling \"new Function\", two more\n // things need to happen:\n // 1. Stringifying the resulting function should return its source code\n fn.toString = () => body;\n // 2. When calling the resulting function, `this` should refer to `global`\n return fn.bind(_global);\n // When Trusted Types support in Function constructors is widely available,\n // the implementation of this function can be simplified to:\n // return new Function(...args.map(a => trustedScriptFromString(a)));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n policy = null;\n if (_global.trustedTypes) {\n try {\n policy = _global.trustedTypes\n .createPolicy('angular#unsafe-bypass', {\n createHTML: (s) => s,\n createScript: (s) => s,\n createScriptURL: (s) => s,\n });\n }\n catch (_a) {\n // trustedTypes.createPolicy throws if called with a name that is\n // already registered, even in report-only mode. Until the API changes,\n // catch the error not to break the applications functionally. In such\n // cases, the code will fall back to using strings.\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedHTMLFromStringBypass(html) {\n var _a;\n return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;\n}\n/**\n * Unsafely promote a string to a TrustedScript, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptFromStringBypass(script) {\n var _a;\n return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;\n}\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that it\n * is only passed strings that come directly from custom sanitizers or the\n * bypassSecurityTrust* functions.\n */\nfunction trustedScriptURLFromStringBypass(url) {\n var _a;\n return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass SafeValueImpl {\n constructor(changingThisBreaksApplicationSecurity) {\n this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n }\n toString() {\n return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` +\n ` (see https://g.co/ng/security#xss)`;\n }\n}\nclass SafeHtmlImpl extends SafeValueImpl {\n getTypeName() {\n return \"HTML\" /* Html */;\n }\n}\nclass SafeStyleImpl extends SafeValueImpl {\n getTypeName() {\n return \"Style\" /* Style */;\n }\n}\nclass SafeScriptImpl extends SafeValueImpl {\n getTypeName() {\n return \"Script\" /* Script */;\n }\n}\nclass SafeUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"URL\" /* Url */;\n }\n}\nclass SafeResourceUrlImpl extends SafeValueImpl {\n getTypeName() {\n return \"ResourceURL\" /* ResourceUrl */;\n }\n}\nfunction unwrapSafeValue(value) {\n return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity :\n value;\n}\nfunction allowSanitizationBypassAndThrow(value, type) {\n const actualType = getSanitizationBypassType(value);\n if (actualType != null && actualType !== type) {\n // Allow ResourceURLs in URL contexts, they are strictly more trusted.\n if (actualType === \"ResourceURL\" /* ResourceUrl */ && type === \"URL\" /* Url */)\n return true;\n throw new Error(`Required a safe ${type}, got a ${actualType} (see https://g.co/ng/security#xss)`);\n }\n return actualType === type;\n}\nfunction getSanitizationBypassType(value) {\n return value instanceof SafeValueImpl && value.getTypeName() || null;\n}\n/**\n * Mark `html` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link htmlSanitizer} to be trusted implicitly.\n *\n * @param trustedHtml `html` string which needs to be implicitly trusted.\n * @returns a `html` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustHtml(trustedHtml) {\n return new SafeHtmlImpl(trustedHtml);\n}\n/**\n * Mark `style` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link styleSanitizer} to be trusted implicitly.\n *\n * @param trustedStyle `style` string which needs to be implicitly trusted.\n * @returns a `style` hich has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustStyle(trustedStyle) {\n return new SafeStyleImpl(trustedStyle);\n}\n/**\n * Mark `script` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link scriptSanitizer} to be trusted implicitly.\n *\n * @param trustedScript `script` string which needs to be implicitly trusted.\n * @returns a `script` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustScript(trustedScript) {\n return new SafeScriptImpl(trustedScript);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link urlSanitizer} to be trusted implicitly.\n *\n * @param trustedUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustUrl(trustedUrl) {\n return new SafeUrlImpl(trustedUrl);\n}\n/**\n * Mark `url` string as trusted.\n *\n * This function wraps the trusted string in `String` and brands it in a way which makes it\n * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.\n *\n * @param trustedResourceUrl `url` string which needs to be implicitly trusted.\n * @returns a `url` which has been branded to be implicitly trusted.\n */\nfunction bypassSanitizationTrustResourceUrl(trustedResourceUrl) {\n return new SafeResourceUrlImpl(trustedResourceUrl);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML\n * that needs sanitizing.\n * Depending upon browser support we use one of two strategies for doing this.\n * Default: DOMParser strategy\n * Fallback: InertDocument strategy\n */\nfunction getInertBodyHelper(defaultDoc) {\n const inertDocumentHelper = new InertDocumentHelper(defaultDoc);\n return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;\n}\n/**\n * Uses DOMParser to create and fill an inert body element.\n * This is the default strategy used in browsers that support it.\n */\nclass DOMParserHelper {\n constructor(inertDocumentHelper) {\n this.inertDocumentHelper = inertDocumentHelper;\n }\n getInertBodyElement(html) {\n // We add these extra elements to ensure that the rest of the content is parsed as expected\n // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the\n // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags\n // in `html` from consuming the otherwise explicit `</body>` tag.\n html = '<body><remove></remove>' + html;\n try {\n const body = new window.DOMParser()\n .parseFromString(trustedHTMLFromString(html), 'text/html')\n .body;\n if (body === null) {\n // In some browsers (e.g. Mozilla/5.0 iPad AppleWebKit Mobile) the `body` property only\n // becomes available in the following tick of the JS engine. In that case we fall back to\n // the `inertDocumentHelper` instead.\n return this.inertDocumentHelper.getInertBodyElement(html);\n }\n body.removeChild(body.firstChild);\n return body;\n }\n catch (_a) {\n return null;\n }\n }\n}\n/**\n * Use an HTML5 `template` element, if supported, or an inert body element created via\n * `createHtmlDocument` to create and fill an inert DOM element.\n * This is the fallback strategy if the browser does not support DOMParser.\n */\nclass InertDocumentHelper {\n constructor(defaultDoc) {\n this.defaultDoc = defaultDoc;\n this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');\n if (this.inertDocument.body == null) {\n // usually there should be only one body element in the document, but IE doesn't have any, so\n // we need to create one.\n const inertHtml = this.inertDocument.createElement('html');\n this.inertDocument.appendChild(inertHtml);\n const inertBodyElement = this.inertDocument.createElement('body');\n inertHtml.appendChild(inertBodyElement);\n }\n }\n getInertBodyElement(html) {\n // Prefer using <template> element if supported.\n const templateEl = this.inertDocument.createElement('template');\n if ('content' in templateEl) {\n templateEl.innerHTML = trustedHTMLFromString(html);\n return templateEl;\n }\n // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`\n // and we returned the inert `body` node. This was changed, because IE seems to treat setting\n // `innerHTML` on an inserted element differently, compared to one that hasn't been inserted\n // yet. In particular, IE appears to split some of the text into multiple text nodes rather\n // than keeping them in a single one which ends up messing with Ivy's i18n parsing further\n // down the line. This has been worked around by creating a new inert `body` and using it as\n // the root node in which we insert the HTML.\n const inertBody = this.inertDocument.createElement('body');\n inertBody.innerHTML = trustedHTMLFromString(html);\n // Support: IE 11 only\n // strip custom-namespaced attributes on IE<=11\n if (this.defaultDoc.documentMode) {\n this.stripCustomNsAttrs(inertBody);\n }\n return inertBody;\n }\n /**\n * When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'\n * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.\n * 'ns1:xlink:foo').\n *\n * This is undesirable since we don't want to allow any of these custom attributes. This method\n * strips them all.\n */\n stripCustomNsAttrs(el) {\n const elAttrs = el.attributes;\n // loop backwards so that we can support removals.\n for (let i = elAttrs.length - 1; 0 < i; i--) {\n const attrib = elAttrs.item(i);\n const attrName = attrib.name;\n if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {\n el.removeAttribute(attrName);\n }\n }\n let childNode = el.firstChild;\n while (childNode) {\n if (childNode.nodeType === Node.ELEMENT_NODE)\n this.stripCustomNsAttrs(childNode);\n childNode = childNode.nextSibling;\n }\n }\n}\n/**\n * We need to determine whether the DOMParser exists in the global context and\n * supports parsing HTML; HTML parsing support is not as wide as other formats, see\n * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.\n *\n * @suppress {uselessCode}\n */\nfunction isDOMParserAvailable() {\n try {\n return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');\n }\n catch (_a) {\n return false;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\n *\n * This regular expression matches a subset of URLs that will not cause script\n * execution if used in URL context within a HTML document. Specifically, this\n * regular expression matches if (comment from here on and regex copied from\n * Soy's EscapingConventions):\n * (1) Either an allowed protocol (http, https, mailto or ftp).\n * (2) or no protocol. A protocol must be followed by a colon. The below\n * allows that by allowing colons only after one of the characters [/?#].\n * A colon after a hash (#) must be in the fragment.\n * Otherwise, a colon after a (?) must be in a query.\n * Otherwise, a colon after a single solidus (/) must be in a path.\n * Otherwise, a colon after a double solidus (//) must be in the authority\n * (before port).\n *\n * The pattern disallows &, used in HTML entity declarations before\n * one of the characters in [/?#]. This disallows HTML entities used in the\n * protocol name, which should never happen, e.g. \"http\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo<bar/baz\". Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript:...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\nconst SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;\n/* A pattern that matches safe srcset values */\nconst SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;\n/** A pattern that matches safe data URLs. Only matches image, video and audio types. */\nconst DATA_URL_PATTERN = /^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\\/]+=*$/i;\nfunction _sanitizeUrl(url) {\n url = String(url);\n if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN))\n return url;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n console.warn(`WARNING: sanitizing unsafe URL value ${url} (see https://g.co/ng/security#xss)`);\n }\n return 'unsafe:' + url;\n}\nfunction sanitizeSrcset(srcset) {\n srcset = String(srcset);\n return srcset.split(',').map((srcset) => _sanitizeUrl(srcset.trim())).join(', ');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction tagSet(tags) {\n const res = {};\n for (const t of tags.split(','))\n res[t] = true;\n return res;\n}\nfunction merge(...sets) {\n const res = {};\n for (const s of sets) {\n for (const v in s) {\n if (s.hasOwnProperty(v))\n res[v] = true;\n }\n }\n return res;\n}\n// Good source of info about elements and attributes\n// https://html.spec.whatwg.org/#semantics\n// https://simon.html5.org/html-elements\n// Safe Void Elements - HTML5\n// https://html.spec.whatwg.org/#void-elements\nconst VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');\n// Elements that you can, intentionally, leave open (and which close themselves)\n// https://html.spec.whatwg.org/#optional-tags\nconst OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\nconst OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');\nconst OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\n// Safe Block Elements - HTML5\nconst BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +\n 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +\n 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));\n// Inline Elements - HTML5\nconst INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +\n 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +\n 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));\nconst VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\n// Attributes that have href and hence need to be sanitized\nconst URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\n// Attributes that have special href set hence need to be sanitized\nconst SRCSET_ATTRS = tagSet('srcset');\nconst HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +\n 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +\n 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +\n 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' +\n 'valign,value,vspace,width');\n// Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)\nconst ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' +\n 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' +\n 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' +\n 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' +\n 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' +\n 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' +\n 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext');\n// NB: This currently consciously doesn't support SVG. SVG sanitization has had several security\n// issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\n// innerHTML is required, SVG attributes should be added here.\n// NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\n// can be sanitized, but they increase security surface area without a legitimate use case, so they\n// are left out here.\nconst VALID_ATTRS = merge(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS, ARIA_ATTRS);\n// Elements whose content should not be traversed/preserved, if the elements themselves are invalid.\n//\n// Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)\n// `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we\n// don't want to preserve the content, if the elements themselves are going to be removed.\nconst SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');\n/**\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\n * attributes.\n */\nclass SanitizingHtmlSerializer {\n constructor() {\n // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n // because characters were re-encoded.\n this.sanitizedSomething = false;\n this.buf = [];\n }\n sanitizeChildren(el) {\n // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\n // However this code never accesses properties off of `document` before deleting its contents\n // again, so it shouldn't be vulnerable to DOM clobbering.\n let current = el.firstChild;\n let traverseContent = true;\n while (current) {\n if (current.nodeType === Node.ELEMENT_NODE) {\n traverseContent = this.startElement(current);\n }\n else if (current.nodeType === Node.TEXT_NODE) {\n this.chars(current.nodeValue);\n }\n else {\n // Strip non-element, non-text nodes.\n this.sanitizedSomething = true;\n }\n if (traverseContent && current.firstChild) {\n current = current.firstChild;\n continue;\n }\n while (current) {\n // Leaving the element. Walk up and to the right, closing tags as we go.\n if (current.nodeType === Node.ELEMENT_NODE) {\n this.endElement(current);\n }\n let next = this.checkClobberedElement(current, current.nextSibling);\n if (next) {\n current = next;\n break;\n }\n current = this.checkClobberedElement(current, current.parentNode);\n }\n }\n return this.buf.join('');\n }\n /**\n * Sanitizes an opening element tag (if valid) and returns whether the element's contents should\n * be traversed. Element content must always be traversed (even if the element itself is not\n * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.\n *\n * @param element The element to sanitize.\n * @return True if the element's contents should be traversed.\n */\n startElement(element) {\n const tagName = element.nodeName.toLowerCase();\n if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\n this.sanitizedSomething = true;\n return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);\n }\n this.buf.push('<');\n this.buf.push(tagName);\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const elAttr = elAttrs.item(i);\n const attrName = elAttr.name;\n const lower = attrName.toLowerCase();\n if (!VALID_ATTRS.hasOwnProperty(lower)) {\n this.sanitizedSomething = true;\n continue;\n }\n let value = elAttr.value;\n // TODO(martinprobst): Special case image URIs for data:image/...\n if (URI_ATTRS[lower])\n value = _sanitizeUrl(value);\n if (SRCSET_ATTRS[lower])\n value = sanitizeSrcset(value);\n this.buf.push(' ', attrName, '=\"', encodeEntities(value), '\"');\n }\n this.buf.push('>');\n return true;\n }\n endElement(current) {\n const tagName = current.nodeName.toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\n this.buf.push('</');\n this.buf.push(tagName);\n this.buf.push('>');\n }\n }\n chars(chars) {\n this.buf.push(encodeEntities(chars));\n }\n checkClobberedElement(node, nextNode) {\n if (nextNode &&\n (node.compareDocumentPosition(nextNode) &\n Node.DOCUMENT_POSITION_CONTAINED_BY) === Node.DOCUMENT_POSITION_CONTAINED_BY) {\n throw new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);\n }\n return nextNode;\n }\n}\n// Regular Expressions for parsing tags and attributes\nconst SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n// ! to ~ is the ASCII range.\nconst NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\n/**\n * Escapes all potentially dangerous characters, so that the\n * resulting string can be safely inserted into attribute or\n * element text.\n * @param value\n */\nfunction encodeEntities(value) {\n return value.replace(/&/g, '&')\n .replace(SURROGATE_PAIR_REGEXP, function (match) {\n const hi = match.charCodeAt(0);\n const low = match.charCodeAt(1);\n return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';\n })\n .replace(NON_ALPHANUMERIC_REGEXP, function (match) {\n return '&#' + match.charCodeAt(0) + ';';\n })\n .replace(/</g, '<')\n .replace(/>/g, '>');\n}\nlet inertBodyHelper;\n/**\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\n * the DOM in a browser environment.\n */\nfunction _sanitizeHtml(defaultDoc, unsafeHtmlInput) {\n let inertBodyElement = null;\n try {\n inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);\n // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\n // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\n let mXSSAttempts = 5;\n let parsedHtml = unsafeHtml;\n do {\n if (mXSSAttempts === 0) {\n throw new Error('Failed to sanitize html because the input is unstable');\n }\n mXSSAttempts--;\n unsafeHtml = parsedHtml;\n parsedHtml = inertBodyElement.innerHTML;\n inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);\n } while (unsafeHtml !== parsedHtml);\n const sanitizer = new SanitizingHtmlSerializer();\n const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {\n console.warn('WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss');\n }\n return trustedHTMLFromString(safeHtml);\n }\n finally {\n // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\n if (inertBodyElement) {\n const parent = getTemplateContent(inertBodyElement) || inertBodyElement;\n while (parent.firstChild) {\n parent.removeChild(parent.firstChild);\n }\n }\n }\n}\nfunction getTemplateContent(el) {\n return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ?\n el.content :\n null;\n}\nfunction isTemplateElement(el) {\n return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property\n * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly\n * handled.\n *\n * See DomSanitizer for more details on security in Angular applications.\n *\n * @publicApi\n */\nvar SecurityContext;\n(function (SecurityContext) {\n SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n})(SecurityContext || (SecurityContext = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing\n * dangerous content.\n *\n * This method parses the `html` and locates potentially dangerous content (such as urls and\n * javascript) and removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.\n *\n * @param unsafeHtml untrusted `html`, typically from the user.\n * @returns `html` string which is safe to display to user, because all of the dangerous javascript\n * and urls have been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeHtml(unsafeHtml) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedHTMLFromStringBypass(sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeHtml, \"HTML\" /* Html */)) {\n return trustedHTMLFromStringBypass(unwrapSafeValue(unsafeHtml));\n }\n return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));\n}\n/**\n * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing\n * dangerous content.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.\n *\n * @param unsafeStyle untrusted `style`, typically from the user.\n * @returns `style` string which is safe to bind to the `style` properties.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeStyle(unsafeStyle) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeStyle, \"Style\" /* Style */)) {\n return unwrapSafeValue(unsafeStyle);\n }\n return renderStringify(unsafeStyle);\n}\n/**\n * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing\n * dangerous\n * content.\n *\n * This method parses the `url` and locates potentially dangerous content (such as javascript) and\n * removes it.\n *\n * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * all of the dangerous javascript has been removed.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrl(unsafeUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';\n }\n if (allowSanitizationBypassAndThrow(unsafeUrl, \"URL\" /* Url */)) {\n return unwrapSafeValue(unsafeUrl);\n }\n return _sanitizeUrl(renderStringify(unsafeUrl));\n}\n/**\n * A `url` sanitizer which only lets trusted `url`s through.\n *\n * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.\n *\n * @param unsafeResourceUrl untrusted `url`, typically from the user.\n * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because\n * only trusted `url`s have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeResourceUrl(unsafeResourceUrl) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptURLFromStringBypass(sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeResourceUrl, \"ResourceURL\" /* ResourceUrl */)) {\n return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));\n }\n throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');\n}\n/**\n * A `script` sanitizer which only lets trusted javascript through.\n *\n * This passes only `script`s marked trusted by calling {@link\n * bypassSanitizationTrustScript}.\n *\n * @param unsafeScript untrusted `script`, typically from the user.\n * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,\n * because only trusted `scripts` have been allowed to pass.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeScript(unsafeScript) {\n const sanitizer = getSanitizer();\n if (sanitizer) {\n return trustedScriptFromStringBypass(sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '');\n }\n if (allowSanitizationBypassAndThrow(unsafeScript, \"Script\" /* Script */)) {\n return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));\n }\n throw new Error('unsafe value used in a script context');\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedHTML. Interpolation is explicitly not allowed.\n *\n * @param html constant template literal containing trusted HTML.\n * @returns TrustedHTML wrapping `html`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedHTML.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantHtml(html) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantHtml`content`), without any interpolation\n // (e.g. not ɵɵtrustConstantHtml`content ${variable}`). A TemplateStringsArray\n // is an array with a `raw` property that is also an array. The associated\n // template literal has no interpolation if and only if the length of the\n // TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(html) || !Array.isArray(html.raw) || html.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted HTML constant: ${html.join('?')}`);\n }\n return trustedHTMLFromString(html[0]);\n}\n/**\n * A template tag function for promoting the associated constant literal to a\n * TrustedScriptURL. Interpolation is explicitly not allowed.\n *\n * @param url constant template literal containing a trusted script URL.\n * @returns TrustedScriptURL wrapping `url`.\n *\n * @security This is a security-sensitive function and should only be used to\n * convert constant values of attributes and properties found in\n * application-provided Angular templates to TrustedScriptURL.\n *\n * @codeGenApi\n */\nfunction ɵɵtrustConstantResourceUrl(url) {\n // The following runtime check ensures that the function was called as a\n // template tag (e.g. ɵɵtrustConstantResourceUrl`content`), without any\n // interpolation (e.g. not ɵɵtrustConstantResourceUrl`content ${variable}`). A\n // TemplateStringsArray is an array with a `raw` property that is also an\n // array. The associated template literal has no interpolation if and only if\n // the length of the TemplateStringsArray is 1.\n if (ngDevMode && (!Array.isArray(url) || !Array.isArray(url.raw) || url.length !== 1)) {\n throw new Error(`Unexpected interpolation in trusted URL constant: ${url.join('?')}`);\n }\n return trustedScriptURLFromString(url[0]);\n}\n/**\n * Detects which sanitizer to use for URL property, based on tag name and prop name.\n *\n * The rules are based on the RESOURCE_URL context config from\n * `packages/compiler/src/schema/dom_security_schema.ts`.\n * If tag and prop names don't match Resource URL schema, use URL sanitizer.\n */\nfunction getUrlSanitizer(tag, prop) {\n if ((prop === 'src' &&\n (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' ||\n tag === 'script')) ||\n (prop === 'href' && (tag === 'base' || tag === 'link'))) {\n return ɵɵsanitizeResourceUrl;\n }\n return ɵɵsanitizeUrl;\n}\n/**\n * Sanitizes URL, selecting sanitizer function based on tag and property names.\n *\n * This function is used in case we can't define security context at compile time, when only prop\n * name is available. This happens when we generate host bindings for Directives/Components. The\n * host element is unknown at compile time, so we defer calculation of specific sanitizer to\n * runtime.\n *\n * @param unsafeUrl untrusted `url`, typically from the user.\n * @param tag target element tag name.\n * @param prop name of the property that contains the value.\n * @returns `url` string which is safe to bind.\n *\n * @codeGenApi\n */\nfunction ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {\n return getUrlSanitizer(tag, prop)(unsafeUrl);\n}\nfunction validateAgainstEventProperties(name) {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event property '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...` +\n `\\nIf '${name}' is a directive input, make sure the directive is imported by the` +\n ` current module.`;\n throw new Error(msg);\n }\n}\nfunction validateAgainstEventAttributes(name) {\n if (name.toLowerCase().startsWith('on')) {\n const msg = `Binding to event attribute '${name}' is disallowed for security reasons, ` +\n `please use (${name.slice(2)})=...`;\n throw new Error(msg);\n }\n}\nfunction getSanitizer() {\n const lView = getLView();\n return lView && lView[SANITIZER];\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n let mpValue = readPatchedData(target);\n if (mpValue) {\n // only when it's an array is it considered an LView instance\n // ... otherwise it's an already constructed LContext instance\n if (Array.isArray(mpValue)) {\n const lView = mpValue;\n let nodeIndex;\n let component = undefined;\n let directives = undefined;\n if (isComponentInstance(target)) {\n nodeIndex = findViaComponent(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided component was not found in the application');\n }\n component = target;\n }\n else if (isDirectiveInstance(target)) {\n nodeIndex = findViaDirective(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided directive was not found in the application');\n }\n directives = getDirectivesAtNodeIndex(nodeIndex, lView, false);\n }\n else {\n nodeIndex = findViaNativeElement(lView, target);\n if (nodeIndex == -1) {\n return null;\n }\n }\n // the goal is not to fill the entire context full of data because the lookups\n // are expensive. Instead, only the target data (the element, component, container, ICU\n // expression or directive details) are filled into the context. If called multiple times\n // with different target values then the missing target data will be filled in.\n const native = unwrapRNode(lView[nodeIndex]);\n const existingCtx = readPatchedData(native);\n const context = (existingCtx && !Array.isArray(existingCtx)) ?\n existingCtx :\n createLContext(lView, nodeIndex, native);\n // only when the component has been discovered then update the monkey-patch\n if (component && context.component === undefined) {\n context.component = component;\n attachPatchData(context.component, context);\n }\n // only when the directives have been discovered then update the monkey-patch\n if (directives && context.directives === undefined) {\n context.directives = directives;\n for (let i = 0; i < directives.length; i++) {\n attachPatchData(directives[i], context);\n }\n }\n attachPatchData(context.native, context);\n mpValue = context;\n }\n }\n else {\n const rElement = target;\n ngDevMode && assertDomNode(rElement);\n // if the context is not found then we need to traverse upwards up the DOM\n // to find the nearest element that has already been monkey patched with data\n let parent = rElement;\n while (parent = parent.parentNode) {\n const parentContext = readPatchedData(parent);\n if (parentContext) {\n let lView;\n if (Array.isArray(parentContext)) {\n lView = parentContext;\n }\n else {\n lView = parentContext.lView;\n }\n // the edge of the app was also reached here through another means\n // (maybe because the DOM was changed manually).\n if (!lView) {\n return null;\n }\n const index = findViaNativeElement(lView, rElement);\n if (index >= 0) {\n const native = unwrapRNode(lView[index]);\n const context = createLContext(lView, index, native);\n attachPatchData(native, context);\n mpValue = context;\n break;\n }\n }\n }\n }\n return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n return {\n lView,\n nodeIndex,\n native,\n component: undefined,\n directives: undefined,\n localRefs: undefined,\n };\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n let lView = readPatchedData(componentInstance);\n let view;\n if (Array.isArray(lView)) {\n const nodeIndex = findViaComponent(lView, componentInstance);\n view = getComponentLViewByIndex(nodeIndex, lView);\n const context = createLContext(lView, nodeIndex, view[HOST]);\n context.component = componentInstance;\n attachPatchData(componentInstance, context);\n attachPatchData(context.native, context);\n }\n else {\n const context = lView;\n view = getComponentLViewByIndex(context.nodeIndex, context.lView);\n }\n return view;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n ngDevMode && assertDefined(target, 'Target expected');\n target[MONKEY_PATCH_KEY_NAME] = data;\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n ngDevMode && assertDefined(target, 'Target expected');\n return target[MONKEY_PATCH_KEY_NAME] || null;\n}\nfunction readPatchedLView(target) {\n const value = readPatchedData(target);\n if (value) {\n return Array.isArray(value) ? value : value.lView;\n }\n return null;\n}\nfunction isComponentInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (unwrapRNode(lView[i]) === target) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n if (tNode.child) {\n return tNode.child;\n }\n else if (tNode.next) {\n return tNode.next;\n }\n else {\n // Let's take the following template: <div><span>text</span></div><component/>\n // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n // in this case the parent `div`, so that we can find the component.\n while (tNode.parent && !tNode.parent.next) {\n tNode = tNode.parent;\n }\n return tNode.parent && tNode.parent.next;\n }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n const componentIndices = lView[TVIEW].components;\n if (componentIndices) {\n for (let i = 0; i < componentIndices.length; i++) {\n const elementComponentIndex = componentIndices[i];\n const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n if (componentView[CONTEXT] === componentInstance) {\n return elementComponentIndex;\n }\n }\n }\n else {\n const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n const rootComponent = rootComponentView[CONTEXT];\n if (rootComponent === componentInstance) {\n // we are dealing with the root element here therefore we know that the\n // element is the very first element after the HEADER data in the lView\n return HEADER_OFFSET;\n }\n }\n return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n // if a directive is monkey patched then it will (by default)\n // have a reference to the LView of the current view. The\n // element bound to the directive being search lives somewhere\n // in the view data. We loop through the nodes and check their\n // list of directives for the instance.\n let tNode = lView[TVIEW].firstChild;\n while (tNode) {\n const directiveIndexStart = tNode.directiveStart;\n const directiveIndexEnd = tNode.directiveEnd;\n for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n if (lView[i] === directiveInstance) {\n return tNode.index;\n }\n }\n tNode = traverseNextElement(tNode);\n }\n return -1;\n}\n/**\n * Returns a list of directives extracted from the given view based on the\n * provided list of directive index values.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n * @param includeComponents Whether or not to include components in returned directives\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView, includeComponents) {\n const tNode = lView[TVIEW].data[nodeIndex];\n let directiveStartIndex = tNode.directiveStart;\n if (directiveStartIndex == 0)\n return EMPTY_ARRAY;\n const directiveEndIndex = tNode.directiveEnd;\n if (!includeComponents && tNode.flags & 2 /* isComponentHost */)\n directiveStartIndex++;\n return lView.slice(directiveStartIndex, directiveEndIndex);\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n let directiveStartIndex = tNode.directiveStart;\n return tNode.flags & 2 /* isComponentHost */ ? lView[directiveStartIndex] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n const result = {};\n let localIndex = tNode.index + 1;\n for (let i = 0; i < tNode.localNames.length; i += 2) {\n result[tNode.localNames[i]] = lView[localIndex];\n localIndex++;\n }\n return result;\n }\n return null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst ERROR_TYPE = 'ngType';\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nconst ERROR_LOGGER = 'ngErrorLogger';\nfunction wrappedError(message, originalError) {\n const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n const error = Error(msg);\n error[ERROR_ORIGINAL_ERROR] = originalError;\n return error;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getType(error) {\n return error[ERROR_TYPE];\n}\nfunction getOriginalError(error) {\n return error[ERROR_ORIGINAL_ERROR];\n}\nfunction getErrorLogger(error) {\n return error && error[ERROR_LOGGER] || defaultErrorLogger;\n}\nfunction defaultErrorLogger(console, ...values) {\n console.error(...values);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * class MyErrorHandler implements ErrorHandler {\n * handleError(error) {\n * // do something with the exception\n * }\n * }\n *\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n constructor() {\n /**\n * @internal\n */\n this._console = console;\n }\n handleError(error) {\n const originalError = this._findOriginalError(error);\n // Note: Browser consoles show the place from where console.error was called.\n // We can use this to give users additional information about the error.\n const errorLogger = getErrorLogger(error);\n errorLogger(this._console, `ERROR`, error);\n if (originalError) {\n errorLogger(this._console, `ORIGINAL ERROR`, originalError);\n }\n }\n /** @internal */\n _findOriginalError(error) {\n let e = error && getOriginalError(error);\n while (e && getOriginalError(e)) {\n e = getOriginalError(e);\n }\n return e || null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Defines a schema that allows an NgModule to contain the following:\n * - Non-Angular elements named with dash case (`-`).\n * - Element properties named with dash case (`-`).\n * Dash case is the naming convention for custom elements.\n *\n * @publicApi\n */\nconst CUSTOM_ELEMENTS_SCHEMA = {\n name: 'custom-elements'\n};\n/**\n * Defines a schema that allows any property on any element.\n *\n * This schema allows you to ignore the errors related to any unknown elements or properties in a\n * template. The usage of this schema is generally discouraged because it prevents useful validation\n * and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.\n *\n * @publicApi\n */\nconst NO_ERRORS_SCHEMA = {\n name: 'no-errors-schema'\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Disallowed strings in the comment.\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n */\nconst COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;\n/**\n * Delimiter in the disallowed strings which needs to be wrapped with zero with character.\n */\nconst COMMENT_DELIMITER = /(<|>)/;\nconst COMMENT_DELIMITER_ESCAPED = '\\u200B$1\\u200B';\n/**\n * Escape the content of comment strings so that it can be safely inserted into a comment node.\n *\n * The issue is that HTML does not specify any way to escape comment end text inside the comment.\n * Consider: `<!-- The way you close a comment is with \">\", and \"->\" at the beginning or by \"-->\" or\n * \"--!>\" at the end. -->`. Above the `\"-->\"` is meant to be text not an end to the comment. This\n * can be created programmatically through DOM APIs. (`<!--` are also disallowed.)\n *\n * see: https://html.spec.whatwg.org/multipage/syntax.html#comments\n *\n * ```\n * div.innerHTML = div.innerHTML\n * ```\n *\n * One would expect that the above code would be safe to do, but it turns out that because comment\n * text is not escaped, the comment may contain text which will prematurely close the comment\n * opening up the application for XSS attack. (In SSR we programmatically create comment nodes which\n * may contain such text and expect them to be safe.)\n *\n * This function escapes the comment text by looking for comment delimiters (`<` and `>`) and\n * surrounding them with `_>_` where the `_` is a zero width space `\\u200B`. The result is that if a\n * comment contains any of the comment start/end delimiters (such as `<!--`, `-->` or `--!>`) the\n * text it will render normally but it will not cause the HTML parser to close/open the comment.\n *\n * @param value text to make safe for comment node by escaping the comment open/close character\n * sequence.\n */\nfunction escapeCommentText(value) {\n return value.replace(COMMENT_DISALLOWED, (text) => text.replace(COMMENT_DELIMITER, COMMENT_DELIMITER_ESCAPED));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction normalizeDebugBindingName(name) {\n // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers\n name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));\n return `ng-reflect-${name}`;\n}\nconst CAMEL_CASE_REGEXP = /([A-Z])/g;\nfunction camelCaseToDashCase(input) {\n return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());\n}\nfunction normalizeDebugBindingValue(value) {\n try {\n // Limit the size of the value as otherwise the DOM just gets polluted.\n return value != null ? value.toString().slice(0, 30) : value;\n }\n catch (e) {\n return '[ERROR] Exception while trying to serialize the value';\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst defaultScheduler = (() => (typeof requestAnimationFrame !== 'undefined' &&\n requestAnimationFrame || // browser only\n setTimeout // everything else\n)\n .bind(_global))();\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveWindow(element) {\n return element.ownerDocument.defaultView;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveDocument(element) {\n return element.ownerDocument;\n}\n/**\n *\n * @codeGenApi\n */\nfunction ɵɵresolveBody(element) {\n return element.ownerDocument.body;\n}\n/**\n * The special delimiter we use to separate property names, prefixes, and suffixes\n * in property binding metadata. See storeBindingMetadata().\n *\n * We intentionally use the Unicode \"REPLACEMENT CHARACTER\" (U+FFFD) as a delimiter\n * because it is a very uncommon character that is unlikely to be part of a user's\n * property names or interpolation strings. If it is in fact used in a property\n * binding, DebugElement.properties will not return the correct value for that\n * binding. However, there should be no runtime effect for real applications.\n *\n * This character is typically rendered as a question mark inside of a diamond.\n * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)\n *\n */\nconst INTERPOLATION_DELIMITER = `�`;\n/**\n * Unwrap a value which might be behind a closure (for forward declaration reasons).\n */\nfunction maybeUnwrapFn(value) {\n if (value instanceof Function) {\n return value();\n }\n else {\n return value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Called when there are multiple component selectors that match a given node */\nfunction throwMultipleComponentError(tNode) {\n throw new RuntimeError(\"300\" /* MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}`);\n}\n/** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */\nfunction throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName) {\n const field = propName ? ` for '${propName}'` : '';\n let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${oldValue}'. Current value: '${currValue}'.`;\n if (creationMode) {\n msg +=\n ` It seems like the view has been created after its parent and its children have been dirty checked.` +\n ` Has it been created in a change detection hook?`;\n }\n // TODO: include debug context, see `viewDebugError` function in\n // `packages/core/src/view/errors.ts` for reference.\n throw new RuntimeError(\"100\" /* EXPRESSION_CHANGED_AFTER_CHECKED */, msg);\n}\nfunction constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {\n const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);\n let oldValue = prefix, newValue = prefix;\n for (let i = 0; i < chunks.length; i++) {\n const slotIdx = rootIndex + i;\n oldValue += `${lView[slotIdx]}${chunks[i]}`;\n newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;\n }\n return { propName, oldValue, newValue };\n}\n/**\n * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:\n * - property name (for property bindings or interpolations)\n * - old and new values, enriched using information from metadata\n *\n * More information on the metadata storage format can be found in `storePropertyBindingMetadata`\n * function description.\n */\nfunction getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {\n const tData = lView[TVIEW].data;\n const metadata = tData[bindingIndex];\n if (typeof metadata === 'string') {\n // metadata for property interpolation\n if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {\n return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);\n }\n // metadata for property binding\n return { propName: metadata, oldValue, newValue };\n }\n // metadata is not available for this expression, check if this expression is a part of the\n // property interpolation by going from the current binding index left and look for a string that\n // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:\n // [..., 'id�Prefix � and � suffix', null, null, null, ...]\n if (metadata === null) {\n let idx = bindingIndex - 1;\n while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {\n idx--;\n }\n const meta = tData[idx];\n if (typeof meta === 'string') {\n const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));\n // first interpolation delimiter separates property name from interpolation parts (in case of\n // property interpolations), so we subtract one from total number of found delimiters\n if (matches && (matches.length - 1) > bindingIndex - idx) {\n return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);\n }\n }\n }\n return { propName: undefined, oldValue, newValue };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Flags for renderer-specific style modifiers.\n * @publicApi\n */\nvar RendererStyleFlags2;\n(function (RendererStyleFlags2) {\n // TODO(misko): This needs to be refactored into a separate file so that it can be imported from\n // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails\n // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.\n /**\n * Marks a style as important.\n */\n RendererStyleFlags2[RendererStyleFlags2[\"Important\"] = 1] = \"Important\";\n /**\n * Marks a style as using dash case naming (this-is-dash-case).\n */\n RendererStyleFlags2[RendererStyleFlags2[\"DashCase\"] = 2] = \"DashCase\";\n})(RendererStyleFlags2 || (RendererStyleFlags2 = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _icuContainerIterate;\n/**\n * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.\n */\nfunction icuContainerIterate(tIcuContainerNode, lView) {\n return _icuContainerIterate(tIcuContainerNode, lView);\n}\n/**\n * Ensures that `IcuContainerVisitor`'s implementation is present.\n *\n * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the\n * bundler to tree shake ICU logic and only load it if ICU instruction is executed.\n */\nfunction ensureIcuContainerVisitorLoaded(loader) {\n if (_icuContainerIterate === undefined) {\n // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it\n // can be inlined into call-site.\n _icuContainerIterate = loader();\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$3 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n ngDevMode && assertDefined(componentOrLView, 'component');\n let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n while (lView && !(lView[FLAGS] & 512 /* IsRoot */)) {\n lView = getLViewParent(lView);\n }\n ngDevMode && assertLView(lView);\n return lView;\n}\n/**\n * Returns the `RootContext` instance that is associated with\n * the application where the target is situated. It does this by walking the parent views until it\n * gets to the root view, then getting the context off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n const rootView = getRootView(viewOrComponent);\n ngDevMode &&\n assertDefined(rootView[CONTEXT], 'RootView has no context. Perhaps it is disconnected?');\n return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n viewOrContainer = viewOrContainer[NEXT];\n }\n return viewOrContainer;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst unusedValueToPlacateAjd$2 = unusedValueExportToPlacateAjd$8 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$3 + unusedValueExportToPlacateAjd$6 + unusedValueExportToPlacateAjd$7;\n/**\n * NOTE: for performance reasons, the possible actions are inlined within the function instead of\n * being passed as an argument.\n */\nfunction applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {\n // If this slot was allocated for a text node dynamically created by i18n, the text node itself\n // won't be created until i18nApply() in the update block, so this node should be skipped.\n // For more info, see \"ICU expressions should work inside an ngTemplateOutlet inside an ngFor\"\n // in `i18n_spec.ts`.\n if (lNodeToHandle != null) {\n let lContainer;\n let isComponent = false;\n // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is\n // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if\n // it has LContainer so that we can process all of those cases appropriately.\n if (isLContainer(lNodeToHandle)) {\n lContainer = lNodeToHandle;\n }\n else if (isLView(lNodeToHandle)) {\n isComponent = true;\n ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');\n lNodeToHandle = lNodeToHandle[HOST];\n }\n const rNode = unwrapRNode(lNodeToHandle);\n ngDevMode && !isProceduralRenderer(renderer) && assertDomNode(rNode);\n if (action === 0 /* Create */ && parent !== null) {\n if (beforeNode == null) {\n nativeAppendChild(renderer, parent, rNode);\n }\n else {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n }\n else if (action === 1 /* Insert */ && parent !== null) {\n nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);\n }\n else if (action === 2 /* Detach */) {\n nativeRemoveNode(renderer, rNode, isComponent);\n }\n else if (action === 3 /* Destroy */) {\n ngDevMode && ngDevMode.rendererDestroyNode++;\n renderer.destroyNode(rNode);\n }\n if (lContainer != null) {\n applyContainer(renderer, action, lContainer, parent, beforeNode);\n }\n }\n}\nfunction createTextNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && ngDevMode.rendererSetText++;\n return isProceduralRenderer(renderer) ? renderer.createText(value) :\n renderer.createTextNode(value);\n}\nfunction updateTextNode(renderer, rNode, value) {\n ngDevMode && ngDevMode.rendererSetText++;\n isProceduralRenderer(renderer) ? renderer.setValue(rNode, value) : rNode.textContent = value;\n}\nfunction createCommentNode(renderer, value) {\n ngDevMode && ngDevMode.rendererCreateComment++;\n // isProceduralRenderer check is not needed because both `Renderer2` and `Renderer3` have the same\n // method name.\n return renderer.createComment(escapeCommentText(value));\n}\n/**\n * Creates a native element from a tag name, using a renderer.\n * @param renderer A renderer to use\n * @param name the tag name\n * @param namespace Optional namespace for element.\n * @returns the element created\n */\nfunction createElementNode(renderer, name, namespace) {\n ngDevMode && ngDevMode.rendererCreateElement++;\n if (isProceduralRenderer(renderer)) {\n return renderer.createElement(name, namespace);\n }\n else {\n return namespace === null ? renderer.createElement(name) :\n renderer.createElementNS(namespace, name);\n }\n}\n/**\n * Removes all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to remove all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param lView The view from which elements should be added or removed\n */\nfunction removeViewFromContainer(tView, lView) {\n const renderer = lView[RENDERER];\n applyView(tView, lView, renderer, 2 /* Detach */, null, null);\n lView[HOST] = null;\n lView[T_HOST] = null;\n}\n/**\n * Adds all DOM elements associated with a view.\n *\n * Because some root nodes of the view may be containers, we sometimes need\n * to propagate deeply into the nested containers to add all elements in the\n * views beneath it.\n *\n * @param tView The `TView' of the `LView` from which elements should be added or removed\n * @param parentTNode The `TNode` where the `LView` should be attached to.\n * @param renderer Current renderer to use for DOM manipulations.\n * @param lView The view from which elements should be added or removed\n * @param parentNativeNode The parent `RElement` where it should be inserted into.\n * @param beforeNode The node before which elements should be added, if insert mode\n */\nfunction addViewToContainer(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {\n lView[HOST] = parentNativeNode;\n lView[T_HOST] = parentTNode;\n applyView(tView, lView, renderer, 1 /* Insert */, parentNativeNode, beforeNode);\n}\n/**\n * Detach a `LView` from the DOM by detaching its nodes.\n *\n * @param tView The `TView' of the `LView` to be detached\n * @param lView the `LView` to be detached.\n */\nfunction renderDetachView(tView, lView) {\n applyView(tView, lView, lView[RENDERER], 2 /* Detach */, null, null);\n}\n/**\n * Traverses down and up the tree of views and containers to remove listeners and\n * call onDestroy callbacks.\n *\n * Notes:\n * - Because it's used for onDestroy calls, it needs to be bottom-up.\n * - Must process containers instead of their views to avoid splicing\n * when views are destroyed and re-added.\n * - Using a while loop because it's faster than recursion\n * - Destroy only called on movement to sibling or movement to parent (laterally or up)\n *\n * @param rootView The view to destroy\n */\nfunction destroyViewTree(rootView) {\n // If the view has no children, we can clean it up and return early.\n let lViewOrLContainer = rootView[CHILD_HEAD];\n if (!lViewOrLContainer) {\n return cleanUpView(rootView[TVIEW], rootView);\n }\n while (lViewOrLContainer) {\n let next = null;\n if (isLView(lViewOrLContainer)) {\n // If LView, traverse down to child.\n next = lViewOrLContainer[CHILD_HEAD];\n }\n else {\n ngDevMode && assertLContainer(lViewOrLContainer);\n // If container, traverse down to its first LView.\n const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];\n if (firstView)\n next = firstView;\n }\n if (!next) {\n // Only clean up view when moving to the side or up, as destroy hooks\n // should be called in order from the bottom up.\n while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n lViewOrLContainer = lViewOrLContainer[PARENT];\n }\n if (lViewOrLContainer === null)\n lViewOrLContainer = rootView;\n if (isLView(lViewOrLContainer)) {\n cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);\n }\n next = lViewOrLContainer && lViewOrLContainer[NEXT];\n }\n lViewOrLContainer = next;\n }\n}\n/**\n * Inserts a view into a container.\n *\n * This adds the view to the container's array of active views in the correct\n * position. It also adds the view's elements to the DOM if the container isn't a\n * root node of another view (in that case, the view's elements will be added when\n * the container's parent view is added later).\n *\n * @param tView The `TView' of the `LView` to insert\n * @param lView The view to insert\n * @param lContainer The container into which the view should be inserted\n * @param index Which index in the container to insert the child view into\n */\nfunction insertView(tView, lView, lContainer, index) {\n ngDevMode && assertLView(lView);\n ngDevMode && assertLContainer(lContainer);\n const indexInContainer = CONTAINER_HEADER_OFFSET + index;\n const containerLength = lContainer.length;\n if (index > 0) {\n // This is a new view, we need to add it to the children.\n lContainer[indexInContainer - 1][NEXT] = lView;\n }\n if (index < containerLength - CONTAINER_HEADER_OFFSET) {\n lView[NEXT] = lContainer[indexInContainer];\n addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);\n }\n else {\n lContainer.push(lView);\n lView[NEXT] = null;\n }\n lView[PARENT] = lContainer;\n // track views where declaration and insertion points are different\n const declarationLContainer = lView[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && lContainer !== declarationLContainer) {\n trackMovedView(declarationLContainer, lView);\n }\n // notify query that a new view has been added\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.insertView(tView);\n }\n // Sets the attached flag\n lView[FLAGS] |= 128 /* Attached */;\n}\n/**\n * Track views created from the declaration container (TemplateRef) and inserted into a\n * different LContainer.\n */\nfunction trackMovedView(declarationContainer, lView) {\n ngDevMode && assertDefined(lView, 'LView required');\n ngDevMode && assertLContainer(declarationContainer);\n const movedViews = declarationContainer[MOVED_VIEWS];\n const insertedLContainer = lView[PARENT];\n ngDevMode && assertLContainer(insertedLContainer);\n const insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');\n const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];\n ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');\n if (declaredComponentLView !== insertedComponentLView) {\n // At this point the declaration-component is not same as insertion-component; this means that\n // this is a transplanted view. Mark the declared lView as having transplanted views so that\n // those views can participate in CD.\n declarationContainer[HAS_TRANSPLANTED_VIEWS] = true;\n }\n if (movedViews === null) {\n declarationContainer[MOVED_VIEWS] = [lView];\n }\n else {\n movedViews.push(lView);\n }\n}\nfunction detachMovedView(declarationContainer, lView) {\n ngDevMode && assertLContainer(declarationContainer);\n ngDevMode &&\n assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');\n const movedViews = declarationContainer[MOVED_VIEWS];\n const declarationViewIndex = movedViews.indexOf(lView);\n const insertionLContainer = lView[PARENT];\n ngDevMode && assertLContainer(insertionLContainer);\n // If the view was marked for refresh but then detached before it was checked (where the flag\n // would be cleared and the counter decremented), we need to decrement the view counter here\n // instead.\n if (lView[FLAGS] & 1024 /* RefreshTransplantedView */) {\n lView[FLAGS] &= ~1024 /* RefreshTransplantedView */;\n updateTransplantedViewCount(insertionLContainer, -1);\n }\n movedViews.splice(declarationViewIndex, 1);\n}\n/**\n * Detaches a view from a container.\n *\n * This method removes the view from the container's array of active views. It also\n * removes the view's elements from the DOM.\n *\n * @param lContainer The container from which to detach a view\n * @param removeIndex The index of the view to detach\n * @returns Detached LView instance.\n */\nfunction detachView(lContainer, removeIndex) {\n if (lContainer.length <= CONTAINER_HEADER_OFFSET)\n return;\n const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;\n const viewToDetach = lContainer[indexInContainer];\n if (viewToDetach) {\n const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];\n if (declarationLContainer !== null && declarationLContainer !== lContainer) {\n detachMovedView(declarationLContainer, viewToDetach);\n }\n if (removeIndex > 0) {\n lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];\n }\n const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);\n removeViewFromContainer(viewToDetach[TVIEW], viewToDetach);\n // notify query that a view has been removed\n const lQueries = removedLView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(removedLView[TVIEW]);\n }\n viewToDetach[PARENT] = null;\n viewToDetach[NEXT] = null;\n // Unsets the attached flag\n viewToDetach[FLAGS] &= ~128 /* Attached */;\n }\n return viewToDetach;\n}\n/**\n * A standalone function which destroys an LView,\n * conducting clean up (e.g. removing listeners, calling onDestroys).\n *\n * @param tView The `TView' of the `LView` to be destroyed\n * @param lView The view to be destroyed.\n */\nfunction destroyLView(tView, lView) {\n if (!(lView[FLAGS] & 256 /* Destroyed */)) {\n const renderer = lView[RENDERER];\n if (isProceduralRenderer(renderer) && renderer.destroyNode) {\n applyView(tView, lView, renderer, 3 /* Destroy */, null, null);\n }\n destroyViewTree(lView);\n }\n}\n/**\n * Calls onDestroys hooks for all directives and pipes in a given view and then removes all\n * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks\n * can be propagated to @Output listeners.\n *\n * @param tView `TView` for the `LView` to clean up.\n * @param lView The LView to clean up\n */\nfunction cleanUpView(tView, lView) {\n if (!(lView[FLAGS] & 256 /* Destroyed */)) {\n // Usually the Attached flag is removed when the view is detached from its parent, however\n // if it's a root view, the flag won't be unset hence why we're also removing on destroy.\n lView[FLAGS] &= ~128 /* Attached */;\n // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook\n // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If\n // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.\n // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is\n // really more of an \"afterDestroy\" hook if you think about it.\n lView[FLAGS] |= 256 /* Destroyed */;\n executeOnDestroys(tView, lView);\n processCleanups(tView, lView);\n // For component views only, the local renderer is destroyed at clean up time.\n if (lView[TVIEW].type === 1 /* Component */ && isProceduralRenderer(lView[RENDERER])) {\n ngDevMode && ngDevMode.rendererDestroy++;\n lView[RENDERER].destroy();\n }\n const declarationContainer = lView[DECLARATION_LCONTAINER];\n // we are dealing with an embedded view that is still inserted into a container\n if (declarationContainer !== null && isLContainer(lView[PARENT])) {\n // and this is a projected view\n if (declarationContainer !== lView[PARENT]) {\n detachMovedView(declarationContainer, lView);\n }\n // For embedded views still attached to a container: remove query result from this view.\n const lQueries = lView[QUERIES];\n if (lQueries !== null) {\n lQueries.detachView(tView);\n }\n }\n }\n}\n/** Removes listeners and unsubscribes from output subscriptions */\nfunction processCleanups(tView, lView) {\n const tCleanup = tView.cleanup;\n const lCleanup = lView[CLEANUP];\n // `LCleanup` contains both share information with `TCleanup` as well as instance specific\n // information appended at the end. We need to know where the end of the `TCleanup` information\n // is, and we track this with `lastLCleanupIndex`.\n let lastLCleanupIndex = -1;\n if (tCleanup !== null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n if (typeof tCleanup[i] === 'string') {\n // This is a native DOM listener\n const idxOrTargetGetter = tCleanup[i + 1];\n const target = typeof idxOrTargetGetter === 'function' ?\n idxOrTargetGetter(lView) :\n unwrapRNode(lView[idxOrTargetGetter]);\n const listener = lCleanup[lastLCleanupIndex = tCleanup[i + 2]];\n const useCaptureOrSubIdx = tCleanup[i + 3];\n if (typeof useCaptureOrSubIdx === 'boolean') {\n // native DOM listener registered with Renderer3\n target.removeEventListener(tCleanup[i], listener, useCaptureOrSubIdx);\n }\n else {\n if (useCaptureOrSubIdx >= 0) {\n // unregister\n lCleanup[lastLCleanupIndex = useCaptureOrSubIdx]();\n }\n else {\n // Subscription\n lCleanup[lastLCleanupIndex = -useCaptureOrSubIdx].unsubscribe();\n }\n }\n i += 2;\n }\n else {\n // This is a cleanup function that is grouped with the index of its context\n const context = lCleanup[lastLCleanupIndex = tCleanup[i + 1]];\n tCleanup[i].call(context);\n }\n }\n }\n if (lCleanup !== null) {\n for (let i = lastLCleanupIndex + 1; i < lCleanup.length; i++) {\n const instanceCleanupFn = lCleanup[i];\n ngDevMode && assertFunction(instanceCleanupFn, 'Expecting instance cleanup function.');\n instanceCleanupFn();\n }\n lView[CLEANUP] = null;\n }\n}\n/** Calls onDestroy hooks for this view */\nfunction executeOnDestroys(tView, lView) {\n let destroyHooks;\n if (tView != null && (destroyHooks = tView.destroyHooks) != null) {\n for (let i = 0; i < destroyHooks.length; i += 2) {\n const context = lView[destroyHooks[i]];\n // Only call the destroy hook if the context has been requested.\n if (!(context instanceof NodeInjectorFactory)) {\n const toCall = destroyHooks[i + 1];\n if (Array.isArray(toCall)) {\n for (let j = 0; j < toCall.length; j += 2) {\n const callContext = context[toCall[j]];\n const hook = toCall[j + 1];\n profiler(4 /* LifecycleHookStart */, callContext, hook);\n try {\n hook.call(callContext);\n }\n finally {\n profiler(5 /* LifecycleHookEnd */, callContext, hook);\n }\n }\n }\n else {\n profiler(4 /* LifecycleHookStart */, context, toCall);\n try {\n toCall.call(context);\n }\n finally {\n profiler(5 /* LifecycleHookEnd */, context, toCall);\n }\n }\n }\n }\n }\n}\n/**\n * Returns a native element if a node can be inserted into the given parent.\n *\n * There are two reasons why we may not be able to insert a element immediately.\n * - Projection: When creating a child content element of a component, we have to skip the\n * insertion because the content of a component will be projected.\n * `<component><content>delayed due to projection</content></component>`\n * - Parent container is disconnected: This can happen when we are inserting a view into\n * parent container, which itself is disconnected. For example the parent container is part\n * of a View which has not be inserted or is made for projection but has not been inserted\n * into destination.\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve render parent.\n * @param lView: Current `LView`.\n */\nfunction getParentRElement(tView, tNode, lView) {\n return getClosestRElement(tView, tNode.parent, lView);\n}\n/**\n * Get closest `RElement` or `null` if it can't be found.\n *\n * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.\n * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).\n * If `TNode` is `null` then return host `RElement`:\n * - return `null` if projection\n * - return `null` if parent container is disconnected (we have no parent.)\n *\n * @param tView: Current `TView`.\n * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is\n * needed).\n * @param lView: Current `LView`.\n * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)\n */\nfunction getClosestRElement(tView, tNode, lView) {\n let parentTNode = tNode;\n // Skip over element and ICU containers as those are represented by a comment node and\n // can't be used as a render parent.\n while (parentTNode !== null &&\n (parentTNode.type & (8 /* ElementContainer */ | 32 /* Icu */))) {\n tNode = parentTNode;\n parentTNode = tNode.parent;\n }\n // If the parent tNode is null, then we are inserting across views: either into an embedded view\n // or a component view.\n if (parentTNode === null) {\n // We are inserting a root element of the component view into the component host element and\n // it should always be eager.\n return lView[HOST];\n }\n else {\n ngDevMode && assertTNodeType(parentTNode, 3 /* AnyRNode */ | 4 /* Container */);\n if (parentTNode.flags & 2 /* isComponentHost */) {\n ngDevMode && assertTNodeForLView(parentTNode, lView);\n const encapsulation = tView.data[parentTNode.directiveStart].encapsulation;\n // We've got a parent which is an element in the current view. We just need to verify if the\n // parent element is not a component. Component's content nodes are not inserted immediately\n // because they will be projected, and so doing insert at this point would be wasteful.\n // Since the projection would then move it to its final destination. Note that we can't\n // make this assumption when using the Shadow DOM, because the native projection placeholders\n // (<content> or <slot>) have to be in place as elements are being inserted.\n if (encapsulation === ViewEncapsulation$1.None ||\n encapsulation === ViewEncapsulation$1.Emulated) {\n return null;\n }\n }\n return getNativeByTNode(parentTNode, lView);\n }\n}\n/**\n * Inserts a native node before another native node for a given parent using {@link Renderer3}.\n * This is a utility function that can be used when native nodes were determined - it abstracts an\n * actual renderer being used.\n */\nfunction nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {\n ngDevMode && ngDevMode.rendererInsertBefore++;\n if (isProceduralRenderer(renderer)) {\n renderer.insertBefore(parent, child, beforeNode, isMove);\n }\n else {\n parent.insertBefore(child, beforeNode, isMove);\n }\n}\nfunction nativeAppendChild(renderer, parent, child) {\n ngDevMode && ngDevMode.rendererAppendChild++;\n ngDevMode && assertDefined(parent, 'parent node must be defined');\n if (isProceduralRenderer(renderer)) {\n renderer.appendChild(parent, child);\n }\n else {\n parent.appendChild(child);\n }\n}\nfunction nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {\n if (beforeNode !== null) {\n nativeInsertBefore(renderer, parent, child, beforeNode, isMove);\n }\n else {\n nativeAppendChild(renderer, parent, child);\n }\n}\n/** Removes a node from the DOM given its native parent. */\nfunction nativeRemoveChild(renderer, parent, child, isHostElement) {\n if (isProceduralRenderer(renderer)) {\n renderer.removeChild(parent, child, isHostElement);\n }\n else {\n parent.removeChild(child);\n }\n}\n/**\n * Returns a native parent of a given native node.\n */\nfunction nativeParentNode(renderer, node) {\n return (isProceduralRenderer(renderer) ? renderer.parentNode(node) : node.parentNode);\n}\n/**\n * Returns a native sibling of a given native node.\n */\nfunction nativeNextSibling(renderer, node) {\n return isProceduralRenderer(renderer) ? renderer.nextSibling(node) : node.nextSibling;\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted.\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {\n return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);\n}\n/**\n * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into\n * account)\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * does not take `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {\n if (parentTNode.type & (8 /* ElementContainer */ | 32 /* Icu */)) {\n return getNativeByTNode(parentTNode, lView);\n }\n return null;\n}\n/**\n * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;\n/**\n * Tree shakable boundary for `processI18nInsertBefore` function.\n *\n * This function will only be set if i18n code runs.\n */\nlet _processI18nInsertBefore;\nfunction setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {\n _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;\n _processI18nInsertBefore = processI18nInsertBefore;\n}\n/**\n * Appends the `child` native node (or a collection of nodes) to the `parent`.\n *\n * @param tView The `TView' to be appended\n * @param lView The current LView\n * @param childRNode The native child (or children) that should be appended\n * @param childTNode The TNode of the child element\n */\nfunction appendChild(tView, lView, childRNode, childTNode) {\n const parentRNode = getParentRElement(tView, childTNode, lView);\n const renderer = lView[RENDERER];\n const parentTNode = childTNode.parent || lView[T_HOST];\n const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);\n if (parentRNode != null) {\n if (Array.isArray(childRNode)) {\n for (let i = 0; i < childRNode.length; i++) {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);\n }\n }\n else {\n nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);\n }\n }\n _processI18nInsertBefore !== undefined &&\n _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);\n}\n/**\n * Returns the first native node for a given LView, starting from the provided TNode.\n *\n * Native nodes are returned in the order in which those appear in the native tree (DOM).\n */\nfunction getFirstNativeNode(lView, tNode) {\n if (tNode !== null) {\n ngDevMode &&\n assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 32 /* Icu */ | 16 /* Projection */);\n const tNodeType = tNode.type;\n if (tNodeType & 3 /* AnyRNode */) {\n return getNativeByTNode(tNode, lView);\n }\n else if (tNodeType & 4 /* Container */) {\n return getBeforeNodeForView(-1, lView[tNode.index]);\n }\n else if (tNodeType & 8 /* ElementContainer */) {\n const elIcuContainerChild = tNode.child;\n if (elIcuContainerChild !== null) {\n return getFirstNativeNode(lView, elIcuContainerChild);\n }\n else {\n const rNodeOrLContainer = lView[tNode.index];\n if (isLContainer(rNodeOrLContainer)) {\n return getBeforeNodeForView(-1, rNodeOrLContainer);\n }\n else {\n return unwrapRNode(rNodeOrLContainer);\n }\n }\n }\n else if (tNodeType & 32 /* Icu */) {\n let nextRNode = icuContainerIterate(tNode, lView);\n let rNode = nextRNode();\n // If the ICU container has no nodes, than we use the ICU anchor as the node.\n return rNode || unwrapRNode(lView[tNode.index]);\n }\n else {\n const projectionNodes = getProjectionNodes(lView, tNode);\n if (projectionNodes !== null) {\n if (Array.isArray(projectionNodes)) {\n return projectionNodes[0];\n }\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n return getFirstNativeNode(parentView, projectionNodes);\n }\n else {\n return getFirstNativeNode(lView, tNode.next);\n }\n }\n }\n return null;\n}\nfunction getProjectionNodes(lView, tNode) {\n if (tNode !== null) {\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const slotIdx = tNode.projection;\n ngDevMode && assertProjectionSlots(lView);\n return componentHost.projection[slotIdx];\n }\n return null;\n}\nfunction getBeforeNodeForView(viewIndexInContainer, lContainer) {\n const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;\n if (nextViewIndex < lContainer.length) {\n const lView = lContainer[nextViewIndex];\n const firstTNodeOfView = lView[TVIEW].firstChild;\n if (firstTNodeOfView !== null) {\n return getFirstNativeNode(lView, firstTNodeOfView);\n }\n }\n return lContainer[NATIVE];\n}\n/**\n * Removes a native node itself using a given renderer. To remove the node we are looking up its\n * parent from the native tree as not all platforms / browsers support the equivalent of\n * node.remove().\n *\n * @param renderer A renderer to be used\n * @param rNode The native node that should be removed\n * @param isHostElement A flag indicating if a node to be removed is a host of a component.\n */\nfunction nativeRemoveNode(renderer, rNode, isHostElement) {\n ngDevMode && ngDevMode.rendererRemoveNode++;\n const nativeParent = nativeParentNode(renderer, rNode);\n if (nativeParent) {\n nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);\n }\n}\n/**\n * Performs the operation of `action` on the node. Typically this involves inserting or removing\n * nodes on the LView or projection boundary.\n */\nfunction applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {\n while (tNode != null) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode &&\n assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 16 /* Projection */ | 32 /* Icu */);\n const rawSlotValue = lView[tNode.index];\n const tNodeType = tNode.type;\n if (isProjection) {\n if (action === 0 /* Create */) {\n rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);\n tNode.flags |= 4 /* isProjected */;\n }\n }\n if ((tNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {\n if (tNodeType & 8 /* ElementContainer */) {\n applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 32 /* Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while (rNode = nextRNode()) {\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n else if (tNodeType & 16 /* Projection */) {\n applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);\n }\n else {\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 4 /* Container */);\n applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n}\nfunction applyView(tView, lView, renderer, action, parentRElement, beforeNode) {\n applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);\n}\n/**\n * `applyProjection` performs operation on the projection.\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed\n * @param lView The `LView` which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n */\nfunction applyProjection(tView, lView, tProjectionNode) {\n const renderer = lView[RENDERER];\n const parentRNode = getParentRElement(tView, tProjectionNode, lView);\n const parentTNode = tProjectionNode.parent || lView[T_HOST];\n let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);\n applyProjectionRecursive(renderer, 0 /* Create */, lView, tProjectionNode, parentRNode, beforeNode);\n}\n/**\n * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,\n * detach, destroy)\n *\n * Inserting a projection requires us to locate the projected nodes from the parent component. The\n * complication is that those nodes themselves could be re-projected from their parent component.\n *\n * @param renderer Render to use\n * @param action action to perform (insert, detach, destroy)\n * @param lView The LView which needs to be inserted, detached, destroyed.\n * @param tProjectionNode node to project\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {\n const componentLView = lView[DECLARATION_COMPONENT_VIEW];\n const componentNode = componentLView[T_HOST];\n ngDevMode &&\n assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');\n const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];\n if (Array.isArray(nodeToProjectOrRNodes)) {\n // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we\n // need to support passing projectable nodes, so we cheat and put them in the TNode\n // of the Host TView. (Yes we put instance info at the T Level). We can get away with it\n // because we know that that TView is not shared and therefore it will not be a problem.\n // This should be refactored and cleaned up.\n for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {\n const rNode = nodeToProjectOrRNodes[i];\n applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);\n }\n }\n else {\n let nodeToProject = nodeToProjectOrRNodes;\n const projectedComponentLView = componentLView[PARENT];\n applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);\n }\n}\n/**\n * `applyContainer` performs an operation on the container and its views as specified by\n * `action` (insert, detach, destroy)\n *\n * Inserting a Container is complicated by the fact that the container may have Views which\n * themselves have containers or projections.\n *\n * @param renderer Renderer to use\n * @param action action to perform (insert, detach, destroy)\n * @param lContainer The LContainer which needs to be inserted, detached, destroyed.\n * @param parentRElement parent DOM element for insertion/removal.\n * @param beforeNode Before which node the insertions should happen.\n */\nfunction applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {\n ngDevMode && assertLContainer(lContainer);\n const anchor = lContainer[NATIVE]; // LContainer has its own before node.\n const native = unwrapRNode(lContainer);\n // An LContainer can be created dynamically on any node by injecting ViewContainerRef.\n // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor\n // node (comment in the DOM) that will be different from the LContainer's host node. In this\n // particular case we need to execute action on 2 nodes:\n // - container's host node (this is done in the executeActionOnElementOrContainer)\n // - container's host node (this is done here)\n if (anchor !== native) {\n // This is very strange to me (Misko). I would expect that the native is same as anchor. I\n // don't see a reason why they should be different, but they are.\n //\n // If they are we need to process the second anchor as well.\n applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);\n }\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const lView = lContainer[i];\n applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);\n }\n}\n/**\n * Writes class/style to element.\n *\n * @param renderer Renderer to use.\n * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)\n * @param rNode The Node to write to.\n * @param prop Property to write to. This would be the class/style name.\n * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add\n * otherwise).\n */\nfunction applyStyling(renderer, isClassBased, rNode, prop, value) {\n const isProcedural = isProceduralRenderer(renderer);\n if (isClassBased) {\n // We actually want JS true/false here because any truthy value should add the class\n if (!value) {\n ngDevMode && ngDevMode.rendererRemoveClass++;\n if (isProcedural) {\n renderer.removeClass(rNode, prop);\n }\n else {\n rNode.classList.remove(prop);\n }\n }\n else {\n ngDevMode && ngDevMode.rendererAddClass++;\n if (isProcedural) {\n renderer.addClass(rNode, prop);\n }\n else {\n ngDevMode && assertDefined(rNode.classList, 'HTMLElement expected');\n rNode.classList.add(prop);\n }\n }\n }\n else {\n let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;\n if (value == null /** || value === undefined */) {\n ngDevMode && ngDevMode.rendererRemoveStyle++;\n if (isProcedural) {\n renderer.removeStyle(rNode, prop, flags);\n }\n else {\n rNode.style.removeProperty(prop);\n }\n }\n else {\n // A value is important if it ends with `!important`. The style\n // parser strips any semicolons at the end of the value.\n const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;\n if (isImportant) {\n // !important has to be stripped from the value for it to be valid.\n value = value.slice(0, -10);\n flags |= RendererStyleFlags2.Important;\n }\n ngDevMode && ngDevMode.rendererSetStyle++;\n if (isProcedural) {\n renderer.setStyle(rNode, prop, value, flags);\n }\n else {\n ngDevMode && assertDefined(rNode.style, 'HTMLElement expected');\n rNode.style.setProperty(prop, value, isImportant ? 'important' : '');\n }\n }\n }\n}\n/**\n * Write `cssText` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectStyle(renderer, element, newValue) {\n ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n if (isProceduralRenderer(renderer)) {\n renderer.setAttribute(element, 'style', newValue);\n }\n else {\n element.style.cssText = newValue;\n }\n ngDevMode && ngDevMode.rendererSetStyle++;\n}\n/**\n * Write `className` to `RElement`.\n *\n * This function does direct write without any reconciliation. Used for writing initial values, so\n * that static styling values do not pull in the style parser.\n *\n * @param renderer Renderer to use\n * @param element The element which needs to be updated.\n * @param newValue The new class list to write.\n */\nfunction writeDirectClass(renderer, element, newValue) {\n ngDevMode && assertString(newValue, '\\'newValue\\' should be a string');\n if (isProceduralRenderer(renderer)) {\n if (newValue === '') {\n // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.\n renderer.removeAttribute(element, 'class');\n }\n else {\n renderer.setAttribute(element, 'class', newValue);\n }\n }\n else {\n element.className = newValue;\n }\n ngDevMode && ngDevMode.rendererSetClassName++;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1)\n return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end ||\n className.charCodeAt(foundIndex + length) <= 32 /* SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$3;\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {\n // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.\n // It is strange to me that sometimes the class information comes in form of `class` attribute\n // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine\n // if that is the right behavior.\n ngDevMode &&\n assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n while (i < attrs.length) {\n let item = attrs[i++];\n if (isProjectionMode && item === 'class') {\n item = attrs[i];\n if (classIndexOf(item.toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n else if (item === 1 /* Classes */) {\n // We found the classes section. Start searching for the class.\n while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {\n // while we have strings\n if (item.toLowerCase() === cssClassToMatch)\n return true;\n }\n return false;\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param node static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* ELEMENT */;\n const nodeAttrs = tNode.attrs || [];\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = getNameOnlyMarkerIndex(nodeAttrs);\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current))\n continue;\n skipToNextSelector = false;\n mode = current | (mode & 1 /* NOT */);\n continue;\n }\n if (skipToNextSelector)\n continue;\n if (mode & 4 /* ELEMENT */) {\n mode = 2 /* ATTRIBUTE */ | mode & 1 /* NOT */;\n if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) ||\n current === '' && selector.length === 1) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n else {\n const selectorAttrValue = mode & 8 /* CLASS */ ? current : selector[++i];\n // special case for matching against classes when a tNode has been instantiated with\n // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])\n if ((mode & 8 /* CLASS */) && tNode.attrs !== null) {\n if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n continue;\n }\n const attrName = (mode & 8 /* CLASS */) ? 'class' : current;\n const attrIndexInNode = findAttrIndexInNode(attrName, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n }\n else {\n ngDevMode &&\n assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n const compareAgainstClassName = mode & 8 /* CLASS */ ? nodeAttrValue : null;\n if (compareAgainstClassName &&\n classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 ||\n mode & 2 /* ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode))\n return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g `<ng-template>`).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null)\n return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n }\n else if (maybeAttrName === 3 /* Bindings */ || maybeAttrName === 6 /* I18n */) {\n bindingsMode = true;\n }\n else if (maybeAttrName === 1 /* Classes */ || maybeAttrName === 2 /* Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n }\n else if (maybeAttrName === 4 /* Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n }\n else if (maybeAttrName === 0 /* NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n }\n else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number')\n return -1;\n if (attr === name)\n return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk +=\n '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n }\n else if (mode & 8 /* CLASS */) {\n currentChunk += '.' + valueOrMarker;\n }\n else if (mode & 4 /* ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n }\n else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n }\n else if (mode === 8 /* CLASS */) {\n classes.push(valueOrMarker);\n }\n }\n else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode))\n break;\n mode = valueOrMarker;\n }\n i++;\n }\n return { attrs, classes };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** A special value which designates that a value has not changed. */\nconst NO_CHANGE = (typeof ngDevMode === 'undefined' || ngDevMode) ? { __brand__: 'NO_CHANGE' } : {};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Advances to an element for later binding instructions.\n *\n * Used in conjunction with instructions like {@link property} to act on elements with specified\n * indices, for example those created with {@link element} or {@link elementStart}.\n *\n * ```ts\n * (rf: RenderFlags, ctx: any) => {\n * if (rf & 1) {\n * text(0, 'Hello');\n * text(1, 'Goodbye')\n * element(2, 'div');\n * }\n * if (rf & 2) {\n * advance(2); // Advance twice to the <div>.\n * property('title', 'test');\n * }\n * }\n * ```\n * @param delta Number of elements to advance forwards by.\n *\n * @codeGenApi\n */\nfunction ɵɵadvance(delta) {\n ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');\n selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, isInCheckNoChangesMode());\n}\nfunction selectIndexInternal(tView, lView, index, checkNoChangesMode) {\n ngDevMode && assertIndexInDeclRange(lView, index);\n // Flush the initial hooks for elements in the view that have been added up to this point.\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!checkNoChangesMode) {\n const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* InitPhaseStateMask */) === 3 /* InitPhaseCompleted */;\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, index);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* OnInitHooksToBeRun */, index);\n }\n }\n }\n // We must set the selected index *after* running the hooks, because hooks may have side-effects\n // that cause other template functions to run, thus updating the selected index, which is global\n // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index\n // will be altered by the time we leave the `ɵɵadvance` instruction.\n setSelectedIndex(index);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * THIS FILE CONTAINS CODE WHICH SHOULD BE TREE SHAKEN AND NEVER CALLED FROM PRODUCTION CODE!!!\n */\n/**\n * Creates an `Array` construction with a given name. This is useful when\n * looking for memory consumption to see what time of array it is.\n *\n *\n * @param name Name to give to the constructor\n * @returns A subclass of `Array` if possible. This can only be done in\n * environments which support `class` construct.\n */\nfunction createNamedArrayType(name) {\n // This should never be called in prod mode, so let's verify that is the case.\n if (ngDevMode) {\n try {\n // If this function were compromised the following could lead to arbitrary\n // script execution. We bless it with Trusted Types anyway since this\n // function is stripped out of production binaries.\n return (newTrustedFunctionForDev('Array', `return class ${name} extends Array{}`))(Array);\n }\n catch (e) {\n // If it does not work just give up and fall back to regular Array.\n return Array;\n }\n }\n else {\n throw new Error('Looks like we are in \\'prod mode\\', but we are creating a named Array type, which is wrong! Check your code');\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction toTStylingRange(prev, next) {\n ngDevMode && assertNumberInRange(prev, 0, 32767 /* UNSIGNED_MASK */);\n ngDevMode && assertNumberInRange(next, 0, 32767 /* UNSIGNED_MASK */);\n return (prev << 17 /* PREV_SHIFT */ | next << 2 /* NEXT_SHIFT */);\n}\nfunction getTStylingRangePrev(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange >> 17 /* PREV_SHIFT */) & 32767 /* UNSIGNED_MASK */;\n}\nfunction getTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 2 /* PREV_DUPLICATE */) ==\n 2 /* PREV_DUPLICATE */;\n}\nfunction setTStylingRangePrev(tStylingRange, previous) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(previous, 0, 32767 /* UNSIGNED_MASK */);\n return ((tStylingRange & ~4294836224 /* PREV_MASK */) |\n (previous << 17 /* PREV_SHIFT */));\n}\nfunction setTStylingRangePrevDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 2 /* PREV_DUPLICATE */);\n}\nfunction getTStylingRangeNext(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 131068 /* NEXT_MASK */) >> 2 /* NEXT_SHIFT */;\n}\nfunction setTStylingRangeNext(tStylingRange, next) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n ngDevMode && assertNumberInRange(next, 0, 32767 /* UNSIGNED_MASK */);\n return ((tStylingRange & ~131068 /* NEXT_MASK */) | //\n next << 2 /* NEXT_SHIFT */);\n}\nfunction getTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange & 1 /* NEXT_DUPLICATE */) ===\n 1 /* NEXT_DUPLICATE */;\n}\nfunction setTStylingRangeNextDuplicate(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n return (tStylingRange | 1 /* NEXT_DUPLICATE */);\n}\nfunction getTStylingRangeTail(tStylingRange) {\n ngDevMode && assertNumber(tStylingRange, 'expected number');\n const next = getTStylingRangeNext(tStylingRange);\n return next === 0 ? getTStylingRangePrev(tStylingRange) : next;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Patch a `debug` property on top of the existing object.\n *\n * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`\n *\n * @param obj Object to patch\n * @param debug Value to patch\n */\nfunction attachDebugObject(obj, debug) {\n if (ngDevMode) {\n Object.defineProperty(obj, 'debug', { value: debug, enumerable: false });\n }\n else {\n throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');\n }\n}\n/**\n * Patch a `debug` property getter on top of the existing object.\n *\n * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`\n *\n * @param obj Object to patch\n * @param debugGetter Getter returning a value to patch\n */\nfunction attachDebugGetter(obj, debugGetter) {\n if (ngDevMode) {\n Object.defineProperty(obj, 'debug', { get: debugGetter, enumerable: false });\n }\n else {\n throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/*\n * This file contains conditionally attached classes which provide human readable (debug) level\n * information for `LView`, `LContainer` and other internal data structures. These data structures\n * are stored internally as array which makes it very difficult during debugging to reason about the\n * current state of the system.\n *\n * Patching the array with extra property does change the array's hidden class' but it does not\n * change the cost of access, therefore this patching should not have significant if any impact in\n * `ngDevMode` mode. (see: https://jsperf.com/array-vs-monkey-patch-array)\n *\n * So instead of seeing:\n * ```\n * Array(30) [Object, 659, null, …]\n * ```\n *\n * You get to see:\n * ```\n * LViewDebug {\n * views: [...],\n * flags: {attached: true, ...}\n * nodes: [\n * {html: '<div id=\"123\">', ..., nodes: [\n * {html: '<span>', ..., nodes: null}\n * ]}\n * ]\n * }\n * ```\n */\nlet LVIEW_COMPONENT_CACHE;\nlet LVIEW_EMBEDDED_CACHE;\nlet LVIEW_ROOT;\nlet LVIEW_COMPONENT;\nlet LVIEW_EMBEDDED;\n/**\n * This function clones a blueprint and creates LView.\n *\n * Simple slice will keep the same type, and we need it to be LView\n */\nfunction cloneToLViewFromTViewBlueprint(tView) {\n const debugTView = tView;\n const lView = getLViewToClone(debugTView.type, tView.template && tView.template.name);\n return lView.concat(tView.blueprint);\n}\nclass LRootView extends Array {\n}\nclass LComponentView extends Array {\n}\nclass LEmbeddedView extends Array {\n}\nfunction getLViewToClone(type, name) {\n switch (type) {\n case 0 /* Root */:\n if (LVIEW_ROOT === undefined)\n LVIEW_ROOT = new LRootView();\n return LVIEW_ROOT;\n case 1 /* Component */:\n if (!ngDevMode || !ngDevMode.namedConstructors) {\n if (LVIEW_COMPONENT === undefined)\n LVIEW_COMPONENT = new LComponentView();\n return LVIEW_COMPONENT;\n }\n if (LVIEW_COMPONENT_CACHE === undefined)\n LVIEW_COMPONENT_CACHE = new Map();\n let componentArray = LVIEW_COMPONENT_CACHE.get(name);\n if (componentArray === undefined) {\n componentArray = new (createNamedArrayType('LComponentView' + nameSuffix(name)))();\n LVIEW_COMPONENT_CACHE.set(name, componentArray);\n }\n return componentArray;\n case 2 /* Embedded */:\n if (!ngDevMode || !ngDevMode.namedConstructors) {\n if (LVIEW_EMBEDDED === undefined)\n LVIEW_EMBEDDED = new LEmbeddedView();\n return LVIEW_EMBEDDED;\n }\n if (LVIEW_EMBEDDED_CACHE === undefined)\n LVIEW_EMBEDDED_CACHE = new Map();\n let embeddedArray = LVIEW_EMBEDDED_CACHE.get(name);\n if (embeddedArray === undefined) {\n embeddedArray = new (createNamedArrayType('LEmbeddedView' + nameSuffix(name)))();\n LVIEW_EMBEDDED_CACHE.set(name, embeddedArray);\n }\n return embeddedArray;\n }\n}\nfunction nameSuffix(text) {\n if (text == null)\n return '';\n const index = text.lastIndexOf('_Template');\n return '_' + (index === -1 ? text : text.substr(0, index));\n}\n/**\n * This class is a debug version of Object literal so that we can have constructor name show up\n * in\n * debug tools in ngDevMode.\n */\nconst TViewConstructor = class TView {\n constructor(type, blueprint, template, queries, viewQuery, declTNode, data, bindingStartIndex, expandoStartIndex, hostBindingOpCodes, firstCreatePass, firstUpdatePass, staticViewQueries, staticContentQueries, preOrderHooks, preOrderCheckHooks, contentHooks, contentCheckHooks, viewHooks, viewCheckHooks, destroyHooks, cleanup, contentQueries, components, directiveRegistry, pipeRegistry, firstChild, schemas, consts, incompleteFirstPass, _decls, _vars) {\n this.type = type;\n this.blueprint = blueprint;\n this.template = template;\n this.queries = queries;\n this.viewQuery = viewQuery;\n this.declTNode = declTNode;\n this.data = data;\n this.bindingStartIndex = bindingStartIndex;\n this.expandoStartIndex = expandoStartIndex;\n this.hostBindingOpCodes = hostBindingOpCodes;\n this.firstCreatePass = firstCreatePass;\n this.firstUpdatePass = firstUpdatePass;\n this.staticViewQueries = staticViewQueries;\n this.staticContentQueries = staticContentQueries;\n this.preOrderHooks = preOrderHooks;\n this.preOrderCheckHooks = preOrderCheckHooks;\n this.contentHooks = contentHooks;\n this.contentCheckHooks = contentCheckHooks;\n this.viewHooks = viewHooks;\n this.viewCheckHooks = viewCheckHooks;\n this.destroyHooks = destroyHooks;\n this.cleanup = cleanup;\n this.contentQueries = contentQueries;\n this.components = components;\n this.directiveRegistry = directiveRegistry;\n this.pipeRegistry = pipeRegistry;\n this.firstChild = firstChild;\n this.schemas = schemas;\n this.consts = consts;\n this.incompleteFirstPass = incompleteFirstPass;\n this._decls = _decls;\n this._vars = _vars;\n }\n get template_() {\n const buf = [];\n processTNodeChildren(this.firstChild, buf);\n return buf.join('');\n }\n get type_() {\n return TViewTypeAsString[this.type] || `TViewType.?${this.type}?`;\n }\n};\nclass TNode {\n constructor(tView_, //\n type, //\n index, //\n insertBeforeIndex, //\n injectorIndex, //\n directiveStart, //\n directiveEnd, //\n directiveStylingLast, //\n propertyBindings, //\n flags, //\n providerIndexes, //\n value, //\n attrs, //\n mergedAttrs, //\n localNames, //\n initialInputs, //\n inputs, //\n outputs, //\n tViews, //\n next, //\n projectionNext, //\n child, //\n parent, //\n projection, //\n styles, //\n stylesWithoutHost, //\n residualStyles, //\n classes, //\n classesWithoutHost, //\n residualClasses, //\n classBindings, //\n styleBindings) {\n this.tView_ = tView_;\n this.type = type;\n this.index = index;\n this.insertBeforeIndex = insertBeforeIndex;\n this.injectorIndex = injectorIndex;\n this.directiveStart = directiveStart;\n this.directiveEnd = directiveEnd;\n this.directiveStylingLast = directiveStylingLast;\n this.propertyBindings = propertyBindings;\n this.flags = flags;\n this.providerIndexes = providerIndexes;\n this.value = value;\n this.attrs = attrs;\n this.mergedAttrs = mergedAttrs;\n this.localNames = localNames;\n this.initialInputs = initialInputs;\n this.inputs = inputs;\n this.outputs = outputs;\n this.tViews = tViews;\n this.next = next;\n this.projectionNext = projectionNext;\n this.child = child;\n this.parent = parent;\n this.projection = projection;\n this.styles = styles;\n this.stylesWithoutHost = stylesWithoutHost;\n this.residualStyles = residualStyles;\n this.classes = classes;\n this.classesWithoutHost = classesWithoutHost;\n this.residualClasses = residualClasses;\n this.classBindings = classBindings;\n this.styleBindings = styleBindings;\n }\n /**\n * Return a human debug version of the set of `NodeInjector`s which will be consulted when\n * resolving tokens from this `TNode`.\n *\n * When debugging applications, it is often difficult to determine which `NodeInjector`s will be\n * consulted. This method shows a list of `DebugNode`s representing the `TNode`s which will be\n * consulted in order when resolving a token starting at this `TNode`.\n *\n * The original data is stored in `LView` and `TView` with a lot of offset indexes, and so it is\n * difficult to reason about.\n *\n * @param lView The `LView` instance for this `TNode`.\n */\n debugNodeInjectorPath(lView) {\n const path = [];\n let injectorIndex = getInjectorIndex(this, lView);\n if (injectorIndex === -1) {\n // Looks like the current `TNode` does not have `NodeInjector` associated with it => look for\n // parent NodeInjector.\n const parentLocation = getParentInjectorLocation(this, lView);\n if (parentLocation !== NO_PARENT_INJECTOR) {\n // We found a parent, so start searching from the parent location.\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n else {\n // No parents have been found, so there are no `NodeInjector`s to consult.\n }\n }\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n const tNode = lView[TVIEW].data[injectorIndex + 8 /* TNODE */];\n path.push(buildDebugNode(tNode, lView));\n const parentLocation = lView[injectorIndex + 8 /* PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR) {\n injectorIndex = -1;\n }\n else {\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n return path;\n }\n get type_() {\n return toTNodeTypeAsString(this.type) || `TNodeType.?${this.type}?`;\n }\n get flags_() {\n const flags = [];\n if (this.flags & 16 /* hasClassInput */)\n flags.push('TNodeFlags.hasClassInput');\n if (this.flags & 8 /* hasContentQuery */)\n flags.push('TNodeFlags.hasContentQuery');\n if (this.flags & 32 /* hasStyleInput */)\n flags.push('TNodeFlags.hasStyleInput');\n if (this.flags & 128 /* hasHostBindings */)\n flags.push('TNodeFlags.hasHostBindings');\n if (this.flags & 2 /* isComponentHost */)\n flags.push('TNodeFlags.isComponentHost');\n if (this.flags & 1 /* isDirectiveHost */)\n flags.push('TNodeFlags.isDirectiveHost');\n if (this.flags & 64 /* isDetached */)\n flags.push('TNodeFlags.isDetached');\n if (this.flags & 4 /* isProjected */)\n flags.push('TNodeFlags.isProjected');\n return flags.join('|');\n }\n get template_() {\n if (this.type & 1 /* Text */)\n return this.value;\n const buf = [];\n const tagName = typeof this.value === 'string' && this.value || this.type_;\n buf.push('<', tagName);\n if (this.flags) {\n buf.push(' ', this.flags_);\n }\n if (this.attrs) {\n for (let i = 0; i < this.attrs.length;) {\n const attrName = this.attrs[i++];\n if (typeof attrName == 'number') {\n break;\n }\n const attrValue = this.attrs[i++];\n buf.push(' ', attrName, '=\"', attrValue, '\"');\n }\n }\n buf.push('>');\n processTNodeChildren(this.child, buf);\n buf.push('</', tagName, '>');\n return buf.join('');\n }\n get styleBindings_() {\n return toDebugStyleBinding(this, false);\n }\n get classBindings_() {\n return toDebugStyleBinding(this, true);\n }\n get providerIndexStart_() {\n return this.providerIndexes & 1048575 /* ProvidersStartIndexMask */;\n }\n get providerIndexEnd_() {\n return this.providerIndexStart_ +\n (this.providerIndexes >>> 20 /* CptViewProvidersCountShift */);\n }\n}\nconst TNodeDebug = TNode;\nfunction toDebugStyleBinding(tNode, isClassBased) {\n const tData = tNode.tView_.data;\n const bindings = [];\n const range = isClassBased ? tNode.classBindings : tNode.styleBindings;\n const prev = getTStylingRangePrev(range);\n const next = getTStylingRangeNext(range);\n let isTemplate = next !== 0;\n let cursor = isTemplate ? next : prev;\n while (cursor !== 0) {\n const itemKey = tData[cursor];\n const itemRange = tData[cursor + 1];\n bindings.unshift({\n key: itemKey,\n index: cursor,\n isTemplate: isTemplate,\n prevDuplicate: getTStylingRangePrevDuplicate(itemRange),\n nextDuplicate: getTStylingRangeNextDuplicate(itemRange),\n nextIndex: getTStylingRangeNext(itemRange),\n prevIndex: getTStylingRangePrev(itemRange),\n });\n if (cursor === prev)\n isTemplate = false;\n cursor = getTStylingRangePrev(itemRange);\n }\n bindings.push((isClassBased ? tNode.residualClasses : tNode.residualStyles) || null);\n return bindings;\n}\nfunction processTNodeChildren(tNode, buf) {\n while (tNode) {\n buf.push(tNode.template_);\n tNode = tNode.next;\n }\n}\nclass TViewData extends Array {\n}\nlet TVIEWDATA_EMPTY; // can't initialize here or it will not be tree shaken, because\n// `LView` constructor could have side-effects.\n/**\n * This function clones a blueprint and creates TData.\n *\n * Simple slice will keep the same type, and we need it to be TData\n */\nfunction cloneToTViewData(list) {\n if (TVIEWDATA_EMPTY === undefined)\n TVIEWDATA_EMPTY = new TViewData();\n return TVIEWDATA_EMPTY.concat(list);\n}\nclass LViewBlueprint extends Array {\n}\nclass MatchesArray extends Array {\n}\nclass TViewComponents extends Array {\n}\nclass TNodeLocalNames extends Array {\n}\nclass TNodeInitialInputs extends Array {\n}\nclass LCleanup extends Array {\n}\nclass TCleanup extends Array {\n}\nfunction attachLViewDebug(lView) {\n attachDebugObject(lView, new LViewDebug(lView));\n}\nfunction attachLContainerDebug(lContainer) {\n attachDebugObject(lContainer, new LContainerDebug(lContainer));\n}\nfunction toDebug(obj) {\n if (obj) {\n const debug = obj.debug;\n assertDefined(debug, 'Object does not have a debug representation.');\n return debug;\n }\n else {\n return obj;\n }\n}\n/**\n * Use this method to unwrap a native element in `LView` and convert it into HTML for easier\n * reading.\n *\n * @param value possibly wrapped native DOM node.\n * @param includeChildren If `true` then the serialized HTML form will include child elements\n * (same\n * as `outerHTML`). If `false` then the serialized HTML form will only contain the element\n * itself\n * (will not serialize child elements).\n */\nfunction toHtml(value, includeChildren = false) {\n const node = unwrapRNode(value);\n if (node) {\n switch (node.nodeType) {\n case Node.TEXT_NODE:\n return node.textContent;\n case Node.COMMENT_NODE:\n return `<!--${node.textContent}-->`;\n case Node.ELEMENT_NODE:\n const outerHTML = node.outerHTML;\n if (includeChildren) {\n return outerHTML;\n }\n else {\n const innerHTML = '>' + node.innerHTML + '<';\n return (outerHTML.split(innerHTML)[0]) + '>';\n }\n }\n }\n return null;\n}\nclass LViewDebug {\n constructor(_raw_lView) {\n this._raw_lView = _raw_lView;\n }\n /**\n * Flags associated with the `LView` unpacked into a more readable state.\n */\n get flags() {\n const flags = this._raw_lView[FLAGS];\n return {\n __raw__flags__: flags,\n initPhaseState: flags & 3 /* InitPhaseStateMask */,\n creationMode: !!(flags & 4 /* CreationMode */),\n firstViewPass: !!(flags & 8 /* FirstLViewPass */),\n checkAlways: !!(flags & 16 /* CheckAlways */),\n dirty: !!(flags & 64 /* Dirty */),\n attached: !!(flags & 128 /* Attached */),\n destroyed: !!(flags & 256 /* Destroyed */),\n isRoot: !!(flags & 512 /* IsRoot */),\n indexWithinInitPhase: flags >> 11 /* IndexWithinInitPhaseShift */,\n };\n }\n get parent() {\n return toDebug(this._raw_lView[PARENT]);\n }\n get hostHTML() {\n return toHtml(this._raw_lView[HOST], true);\n }\n get html() {\n return (this.nodes || []).map(mapToHTML).join('');\n }\n get context() {\n return this._raw_lView[CONTEXT];\n }\n /**\n * The tree of nodes associated with the current `LView`. The nodes have been normalized into\n * a tree structure with relevant details pulled out for readability.\n */\n get nodes() {\n const lView = this._raw_lView;\n const tNode = lView[TVIEW].firstChild;\n return toDebugNodes(tNode, lView);\n }\n get template() {\n return this.tView.template_;\n }\n get tView() {\n return this._raw_lView[TVIEW];\n }\n get cleanup() {\n return this._raw_lView[CLEANUP];\n }\n get injector() {\n return this._raw_lView[INJECTOR$1];\n }\n get rendererFactory() {\n return this._raw_lView[RENDERER_FACTORY];\n }\n get renderer() {\n return this._raw_lView[RENDERER];\n }\n get sanitizer() {\n return this._raw_lView[SANITIZER];\n }\n get childHead() {\n return toDebug(this._raw_lView[CHILD_HEAD]);\n }\n get next() {\n return toDebug(this._raw_lView[NEXT]);\n }\n get childTail() {\n return toDebug(this._raw_lView[CHILD_TAIL]);\n }\n get declarationView() {\n return toDebug(this._raw_lView[DECLARATION_VIEW]);\n }\n get queries() {\n return this._raw_lView[QUERIES];\n }\n get tHost() {\n return this._raw_lView[T_HOST];\n }\n get decls() {\n return toLViewRange(this.tView, this._raw_lView, HEADER_OFFSET, this.tView.bindingStartIndex);\n }\n get vars() {\n return toLViewRange(this.tView, this._raw_lView, this.tView.bindingStartIndex, this.tView.expandoStartIndex);\n }\n get expando() {\n return toLViewRange(this.tView, this._raw_lView, this.tView.expandoStartIndex, this._raw_lView.length);\n }\n /**\n * Normalized view of child views (and containers) attached at this location.\n */\n get childViews() {\n const childViews = [];\n let child = this.childHead;\n while (child) {\n childViews.push(child);\n child = child.next;\n }\n return childViews;\n }\n}\nfunction mapToHTML(node) {\n if (node.type === 'ElementContainer') {\n return (node.children || []).map(mapToHTML).join('');\n }\n else if (node.type === 'IcuContainer') {\n throw new Error('Not implemented');\n }\n else {\n return toHtml(node.native, true) || '';\n }\n}\nfunction toLViewRange(tView, lView, start, end) {\n let content = [];\n for (let index = start; index < end; index++) {\n content.push({ index: index, t: tView.data[index], l: lView[index] });\n }\n return { start: start, end: end, length: end - start, content: content };\n}\n/**\n * Turns a flat list of nodes into a tree by walking the associated `TNode` tree.\n *\n * @param tNode\n * @param lView\n */\nfunction toDebugNodes(tNode, lView) {\n if (tNode) {\n const debugNodes = [];\n let tNodeCursor = tNode;\n while (tNodeCursor) {\n debugNodes.push(buildDebugNode(tNodeCursor, lView));\n tNodeCursor = tNodeCursor.next;\n }\n return debugNodes;\n }\n else {\n return [];\n }\n}\nfunction buildDebugNode(tNode, lView) {\n const rawValue = lView[tNode.index];\n const native = unwrapRNode(rawValue);\n const factories = [];\n const instances = [];\n const tView = lView[TVIEW];\n for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n const def = tView.data[i];\n factories.push(def.type);\n instances.push(lView[i]);\n }\n return {\n html: toHtml(native),\n type: toTNodeTypeAsString(tNode.type),\n tNode,\n native: native,\n children: toDebugNodes(tNode.child, lView),\n factories,\n instances,\n injector: buildNodeInjectorDebug(tNode, tView, lView),\n get injectorResolutionPath() {\n return tNode.debugNodeInjectorPath(lView);\n },\n };\n}\nfunction buildNodeInjectorDebug(tNode, tView, lView) {\n const viewProviders = [];\n for (let i = tNode.providerIndexStart_; i < tNode.providerIndexEnd_; i++) {\n viewProviders.push(tView.data[i]);\n }\n const providers = [];\n for (let i = tNode.providerIndexEnd_; i < tNode.directiveEnd; i++) {\n providers.push(tView.data[i]);\n }\n const nodeInjectorDebug = {\n bloom: toBloom(lView, tNode.injectorIndex),\n cumulativeBloom: toBloom(tView.data, tNode.injectorIndex),\n providers,\n viewProviders,\n parentInjectorIndex: lView[tNode.providerIndexStart_ - 1],\n };\n return nodeInjectorDebug;\n}\n/**\n * Convert a number at `idx` location in `array` into binary representation.\n *\n * @param array\n * @param idx\n */\nfunction binary(array, idx) {\n const value = array[idx];\n // If not a number we print 8 `?` to retain alignment but let user know that it was called on\n // wrong type.\n if (typeof value !== 'number')\n return '????????';\n // We prefix 0s so that we have constant length number\n const text = '00000000' + value.toString(2);\n return text.substring(text.length - 8);\n}\n/**\n * Convert a bloom filter at location `idx` in `array` into binary representation.\n *\n * @param array\n * @param idx\n */\nfunction toBloom(array, idx) {\n if (idx < 0) {\n return 'NO_NODE_INJECTOR';\n }\n return `${binary(array, idx + 7)}_${binary(array, idx + 6)}_${binary(array, idx + 5)}_${binary(array, idx + 4)}_${binary(array, idx + 3)}_${binary(array, idx + 2)}_${binary(array, idx + 1)}_${binary(array, idx + 0)}`;\n}\nclass LContainerDebug {\n constructor(_raw_lContainer) {\n this._raw_lContainer = _raw_lContainer;\n }\n get hasTransplantedViews() {\n return this._raw_lContainer[HAS_TRANSPLANTED_VIEWS];\n }\n get views() {\n return this._raw_lContainer.slice(CONTAINER_HEADER_OFFSET)\n .map(toDebug);\n }\n get parent() {\n return toDebug(this._raw_lContainer[PARENT]);\n }\n get movedViews() {\n return this._raw_lContainer[MOVED_VIEWS];\n }\n get host() {\n return this._raw_lContainer[HOST];\n }\n get native() {\n return this._raw_lContainer[NATIVE];\n }\n get next() {\n return toDebug(this._raw_lContainer[NEXT]);\n }\n}\n\n/**\n * A permanent marker promise which signifies that the current CD tree is\n * clean.\n */\nconst _CLEAN_PROMISE = (() => Promise.resolve(null))();\n/**\n * Invoke `HostBindingsFunction`s for view.\n *\n * This methods executes `TView.hostBindingOpCodes`. It is used to execute the\n * `HostBindingsFunction`s associated with the current `LView`.\n *\n * @param tView Current `TView`.\n * @param lView Current `LView`.\n */\nfunction processHostBindingOpCodes(tView, lView) {\n const hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null)\n return;\n try {\n for (let i = 0; i < hostBindingOpCodes.length; i++) {\n const opCode = hostBindingOpCodes[i];\n if (opCode < 0) {\n // Negative numbers are element indexes.\n setSelectedIndex(~opCode);\n }\n else {\n // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.\n const directiveIdx = opCode;\n const bindingRootIndx = hostBindingOpCodes[++i];\n const hostBindingFn = hostBindingOpCodes[++i];\n setBindingRootForHostBindings(bindingRootIndx, directiveIdx);\n const context = lView[directiveIdx];\n hostBindingFn(2 /* Update */, context);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n }\n}\n/** Refreshes all content queries declared by directives in a given view */\nfunction refreshContentQueries(tView, lView) {\n const contentQueries = tView.contentQueries;\n if (contentQueries !== null) {\n for (let i = 0; i < contentQueries.length; i += 2) {\n const queryStartIdx = contentQueries[i];\n const directiveDefIdx = contentQueries[i + 1];\n if (directiveDefIdx !== -1) {\n const directiveDef = tView.data[directiveDefIdx];\n ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');\n ngDevMode &&\n assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');\n setCurrentQueryIndex(queryStartIdx);\n directiveDef.contentQueries(2 /* Update */, lView[directiveDefIdx], directiveDefIdx);\n }\n }\n }\n}\n/** Refreshes child components in the current view (update mode). */\nfunction refreshChildComponents(hostLView, components) {\n for (let i = 0; i < components.length; i++) {\n refreshComponent(hostLView, components[i]);\n }\n}\n/** Renders child components in the current view (creation mode). */\nfunction renderChildComponents(hostLView, components) {\n for (let i = 0; i < components.length; i++) {\n renderComponent$1(hostLView, components[i]);\n }\n}\nfunction createLView(parentLView, tView, context, flags, host, tHostNode, rendererFactory, renderer, sanitizer, injector) {\n const lView = ngDevMode ? cloneToLViewFromTViewBlueprint(tView) : tView.blueprint.slice();\n lView[HOST] = host;\n lView[FLAGS] = flags | 4 /* CreationMode */ | 128 /* Attached */ | 8 /* FirstLViewPass */;\n resetPreOrderHookFlags(lView);\n ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);\n lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;\n lView[CONTEXT] = context;\n lView[RENDERER_FACTORY] = (rendererFactory || parentLView && parentLView[RENDERER_FACTORY]);\n ngDevMode && assertDefined(lView[RENDERER_FACTORY], 'RendererFactory is required');\n lView[RENDERER] = (renderer || parentLView && parentLView[RENDERER]);\n ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');\n lView[SANITIZER] = sanitizer || parentLView && parentLView[SANITIZER] || null;\n lView[INJECTOR$1] = injector || parentLView && parentLView[INJECTOR$1] || null;\n lView[T_HOST] = tHostNode;\n ngDevMode &&\n assertEqual(tView.type == 2 /* Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');\n lView[DECLARATION_COMPONENT_VIEW] =\n tView.type == 2 /* Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;\n ngDevMode && attachLViewDebug(lView);\n return lView;\n}\nfunction getOrCreateTNode(tView, index, type, name, attrs) {\n ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n // Keep this function short, so that the VM will inline it.\n ngDevMode && assertPureTNodeType(type);\n let tNode = tView.data[index];\n if (tNode === null) {\n tNode = createTNodeAtIndex(tView, index, type, name, attrs);\n if (isInI18nBlock()) {\n // If we are in i18n block then all elements should be pre declared through `Placeholder`\n // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n // If the `TNode` was not pre-declared than it means it was not mentioned which means it was\n // removed, so we mark it as detached.\n tNode.flags |= 64 /* isDetached */;\n }\n }\n else if (tNode.type & 64 /* Placeholder */) {\n tNode.type = type;\n tNode.value = name;\n tNode.attrs = attrs;\n const parent = getCurrentParentTNode();\n tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;\n ngDevMode && assertTNodeForTView(tNode, tView);\n ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');\n }\n setCurrentTNode(tNode, true);\n return tNode;\n}\nfunction createTNodeAtIndex(tView, index, type, name, attrs) {\n const currentTNode = getCurrentTNodePlaceholderOk();\n const isParent = isCurrentTNodeParent();\n const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;\n // Parents cannot cross component boundaries because components will be used in multiple places.\n const tNode = tView.data[index] =\n createTNode(tView, parent, type, index, name, attrs);\n // Assign a pointer to the first child node of a given view. The first node is not always the one\n // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has\n // the index 1 or more, so we can't just check node index.\n if (tView.firstChild === null) {\n tView.firstChild = tNode;\n }\n if (currentTNode !== null) {\n if (isParent) {\n // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?\n if (currentTNode.child == null && tNode.parent !== null) {\n // We are in the same view, which means we are adding content node to the parent view.\n currentTNode.child = tNode;\n }\n }\n else {\n if (currentTNode.next === null) {\n // In the case of i18n the `currentTNode` may already be linked, in which case we don't want\n // to break the links which i18n created.\n currentTNode.next = tNode;\n }\n }\n }\n return tNode;\n}\n/**\n * When elements are created dynamically after a view blueprint is created (e.g. through\n * i18nApply()), we need to adjust the blueprint for future\n * template passes.\n *\n * @param tView `TView` associated with `LView`\n * @param lView The `LView` containing the blueprint to adjust\n * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0\n * @param initialValue Initial value to store in blueprint\n */\nfunction allocExpando(tView, lView, numSlotsToAlloc, initialValue) {\n if (numSlotsToAlloc === 0)\n return -1;\n if (ngDevMode) {\n assertFirstCreatePass(tView);\n assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');\n assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');\n assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');\n assertFirstUpdatePass(tView);\n }\n const allocIdx = lView.length;\n for (let i = 0; i < numSlotsToAlloc; i++) {\n lView.push(initialValue);\n tView.blueprint.push(initialValue);\n tView.data.push(null);\n }\n return allocIdx;\n}\n//////////////////////////\n//// Render\n//////////////////////////\n/**\n * Processes a view in the creation mode. This includes a number of steps in a specific order:\n * - creating view query functions (if any);\n * - executing a template function in the creation mode;\n * - updating static queries (if any);\n * - creating child components defined in a given view.\n */\nfunction renderView(tView, lView, context) {\n ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');\n enterView(lView);\n try {\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(1 /* Create */, viewQuery, context);\n }\n // Execute a template associated with this view, if it exists. A template function might not be\n // defined for the root component views.\n const templateFn = tView.template;\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 1 /* Create */, context);\n }\n // This needs to be set before children are processed to support recursive components.\n // This must be set to false immediately after the first creation run because in an\n // ngFor loop, all the views will be created together before update mode runs and turns\n // off firstCreatePass. If we don't set it here, instances will perform directive\n // matching, etc again and again.\n if (tView.firstCreatePass) {\n tView.firstCreatePass = false;\n }\n // We resolve content queries specifically marked as `static` in creation mode. Dynamic\n // content queries are resolved during change detection (i.e. update mode), after embedded\n // views are refreshed (see block above).\n if (tView.staticContentQueries) {\n refreshContentQueries(tView, lView);\n }\n // We must materialize query results before child components are processed\n // in case a child component has projected a container. The LContainer needs\n // to exist so the embedded views are properly attached by the container.\n if (tView.staticViewQueries) {\n executeViewQueryFn(2 /* Update */, tView.viewQuery, context);\n }\n // Render child component views.\n const components = tView.components;\n if (components !== null) {\n renderChildComponents(lView, components);\n }\n }\n catch (error) {\n // If we didn't manage to get past the first template pass due to\n // an error, mark the view as corrupted so we can try to recover.\n if (tView.firstCreatePass) {\n tView.incompleteFirstPass = true;\n tView.firstCreatePass = false;\n }\n throw error;\n }\n finally {\n lView[FLAGS] &= ~4 /* CreationMode */;\n leaveView();\n }\n}\n/**\n * Processes a view in update mode. This includes a number of steps in a specific order:\n * - executing a template function in update mode;\n * - executing hooks;\n * - refreshing queries;\n * - setting host bindings;\n * - refreshing child (embedded and component) views.\n */\nfunction refreshView(tView, lView, templateFn, context) {\n ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');\n const flags = lView[FLAGS];\n if ((flags & 256 /* Destroyed */) === 256 /* Destroyed */)\n return;\n enterView(lView);\n // Check no changes mode is a dev only mode used to verify that bindings have not changed\n // since they were assigned. We do not want to execute lifecycle hooks in that mode.\n const isInCheckNoChangesPass = isInCheckNoChangesMode();\n try {\n resetPreOrderHookFlags(lView);\n setBindingIndex(tView.bindingStartIndex);\n if (templateFn !== null) {\n executeTemplate(tView, lView, templateFn, 2 /* Update */, context);\n }\n const hooksInitPhaseCompleted = (flags & 3 /* InitPhaseStateMask */) === 3 /* InitPhaseCompleted */;\n // execute pre-order hooks (OnInit, OnChanges, DoCheck)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const preOrderCheckHooks = tView.preOrderCheckHooks;\n if (preOrderCheckHooks !== null) {\n executeCheckHooks(lView, preOrderCheckHooks, null);\n }\n }\n else {\n const preOrderHooks = tView.preOrderHooks;\n if (preOrderHooks !== null) {\n executeInitAndCheckHooks(lView, preOrderHooks, 0 /* OnInitHooksToBeRun */, null);\n }\n incrementInitPhaseFlags(lView, 0 /* OnInitHooksToBeRun */);\n }\n }\n // First mark transplanted views that are declared in this lView as needing a refresh at their\n // insertion points. This is needed to avoid the situation where the template is defined in this\n // `LView` but its declaration appears after the insertion component.\n markTransplantedViewsForRefresh(lView);\n refreshEmbeddedViews(lView);\n // Content query results must be refreshed before content hooks are called.\n if (tView.contentQueries !== null) {\n refreshContentQueries(tView, lView);\n }\n // execute content hooks (AfterContentInit, AfterContentChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const contentCheckHooks = tView.contentCheckHooks;\n if (contentCheckHooks !== null) {\n executeCheckHooks(lView, contentCheckHooks);\n }\n }\n else {\n const contentHooks = tView.contentHooks;\n if (contentHooks !== null) {\n executeInitAndCheckHooks(lView, contentHooks, 1 /* AfterContentInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 1 /* AfterContentInitHooksToBeRun */);\n }\n }\n processHostBindingOpCodes(tView, lView);\n // Refresh child component views.\n const components = tView.components;\n if (components !== null) {\n refreshChildComponents(lView, components);\n }\n // View queries must execute after refreshing child components because a template in this view\n // could be inserted in a child component. If the view query executes before child component\n // refresh, the template might not yet be inserted.\n const viewQuery = tView.viewQuery;\n if (viewQuery !== null) {\n executeViewQueryFn(2 /* Update */, viewQuery, context);\n }\n // execute view hooks (AfterViewInit, AfterViewChecked)\n // PERF WARNING: do NOT extract this to a separate function without running benchmarks\n if (!isInCheckNoChangesPass) {\n if (hooksInitPhaseCompleted) {\n const viewCheckHooks = tView.viewCheckHooks;\n if (viewCheckHooks !== null) {\n executeCheckHooks(lView, viewCheckHooks);\n }\n }\n else {\n const viewHooks = tView.viewHooks;\n if (viewHooks !== null) {\n executeInitAndCheckHooks(lView, viewHooks, 2 /* AfterViewInitHooksToBeRun */);\n }\n incrementInitPhaseFlags(lView, 2 /* AfterViewInitHooksToBeRun */);\n }\n }\n if (tView.firstUpdatePass === true) {\n // We need to make sure that we only flip the flag on successful `refreshView` only\n // Don't do this in `finally` block.\n // If we did this in `finally` block then an exception could block the execution of styling\n // instructions which in turn would be unable to insert themselves into the styling linked\n // list. The result of this would be that if the exception would not be throw on subsequent CD\n // the styling would be unable to process it data and reflect to the DOM.\n tView.firstUpdatePass = false;\n }\n // Do not reset the dirty state when running in check no changes mode. We don't want components\n // to behave differently depending on whether check no changes is enabled or not. For example:\n // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to\n // refresh a `NgClass` binding should work. If we would reset the dirty state in the check\n // no changes cycle, the component would be not be dirty for the next update pass. This would\n // be different in production mode where the component dirty state is not reset.\n if (!isInCheckNoChangesPass) {\n lView[FLAGS] &= ~(64 /* Dirty */ | 8 /* FirstLViewPass */);\n }\n if (lView[FLAGS] & 1024 /* RefreshTransplantedView */) {\n lView[FLAGS] &= ~1024 /* RefreshTransplantedView */;\n updateTransplantedViewCount(lView[PARENT], -1);\n }\n }\n finally {\n leaveView();\n }\n}\nfunction renderComponentOrTemplate(tView, lView, templateFn, context) {\n const rendererFactory = lView[RENDERER_FACTORY];\n const normalExecutionPath = !isInCheckNoChangesMode();\n const creationModeIsActive = isCreationMode(lView);\n try {\n if (normalExecutionPath && !creationModeIsActive && rendererFactory.begin) {\n rendererFactory.begin();\n }\n if (creationModeIsActive) {\n renderView(tView, lView, context);\n }\n refreshView(tView, lView, templateFn, context);\n }\n finally {\n if (normalExecutionPath && !creationModeIsActive && rendererFactory.end) {\n rendererFactory.end();\n }\n }\n}\nfunction executeTemplate(tView, lView, templateFn, rf, context) {\n const prevSelectedIndex = getSelectedIndex();\n const isUpdatePhase = rf & 2 /* Update */;\n try {\n setSelectedIndex(-1);\n if (isUpdatePhase && lView.length > HEADER_OFFSET) {\n // When we're updating, inherently select 0 so we don't\n // have to generate that instruction for most update blocks.\n selectIndexInternal(tView, lView, HEADER_OFFSET, isInCheckNoChangesMode());\n }\n const preHookType = isUpdatePhase ? 2 /* TemplateUpdateStart */ : 0 /* TemplateCreateStart */;\n profiler(preHookType, context);\n templateFn(rf, context);\n }\n finally {\n setSelectedIndex(prevSelectedIndex);\n const postHookType = isUpdatePhase ? 3 /* TemplateUpdateEnd */ : 1 /* TemplateCreateEnd */;\n profiler(postHookType, context);\n }\n}\n//////////////////////////\n//// Element\n//////////////////////////\nfunction executeContentQueries(tView, tNode, lView) {\n if (isContentQueryHost(tNode)) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {\n const def = tView.data[directiveIndex];\n if (def.contentQueries) {\n def.contentQueries(1 /* Create */, lView[directiveIndex], directiveIndex);\n }\n }\n }\n}\n/**\n * Creates directive instances.\n */\nfunction createDirectivesInstances(tView, lView, tNode) {\n if (!getBindingsEnabled())\n return;\n instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));\n if ((tNode.flags & 128 /* hasHostBindings */) === 128 /* hasHostBindings */) {\n invokeDirectivesHostBindings(tView, lView, tNode);\n }\n}\n/**\n * Takes a list of local names and indices and pushes the resolved local variable values\n * to LView in the same order as they are loaded in the template with load().\n */\nfunction saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n let localIndex = tNode.index + 1;\n for (let i = 0; i < localNames.length; i += 2) {\n const index = localNames[i + 1];\n const value = index === -1 ?\n localRefExtractor(tNode, viewData) :\n viewData[index];\n viewData[localIndex++] = value;\n }\n }\n}\n/**\n * Gets TView from a template function or creates a new TView\n * if it doesn't already exist.\n *\n * @param def ComponentDef\n * @returns TView\n */\nfunction getOrCreateTComponentView(def) {\n const tView = def.tView;\n // Create a TView if there isn't one, or recreate it if the first create pass didn't\n // complete successfully since we can't know for sure whether it's in a usable shape.\n if (tView === null || tView.incompleteFirstPass) {\n // Declaration node here is null since this function is called when we dynamically create a\n // component and hence there is no declaration.\n const declTNode = null;\n return def.tView = createTView(1 /* Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts);\n }\n return tView;\n}\n/**\n * Creates a TView instance\n *\n * @param type Type of `TView`.\n * @param declTNode Declaration location of this `TView`.\n * @param templateFn Template function\n * @param decls The number of nodes, local refs, and pipes in this template\n * @param directives Registry of directives for this view\n * @param pipes Registry of pipes for this view\n * @param viewQuery View queries for this view\n * @param schemas Schemas for this view\n * @param consts Constants for this view\n */\nfunction createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory) {\n ngDevMode && ngDevMode.tView++;\n const bindingStartIndex = HEADER_OFFSET + decls;\n // This length does not yet contain host bindings from child directives because at this point,\n // we don't know which directives are active on this template. As soon as a directive is matched\n // that has a host binding, we will update the blueprint with that def's hostVars count.\n const initialViewLength = bindingStartIndex + vars;\n const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);\n const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;\n const tView = blueprint[TVIEW] = ngDevMode ?\n new TViewConstructor(type, // type: TViewType,\n blueprint, // blueprint: LView,\n templateFn, // template: ComponentTemplate<{}>|null,\n null, // queries: TQueries|null\n viewQuery, // viewQuery: ViewQueriesFunction<{}>|null,\n declTNode, // declTNode: TNode|null,\n cloneToTViewData(blueprint).fill(null, bindingStartIndex), // data: TData,\n bindingStartIndex, // bindingStartIndex: number,\n initialViewLength, // expandoStartIndex: number,\n null, // hostBindingOpCodes: HostBindingOpCodes,\n true, // firstCreatePass: boolean,\n true, // firstUpdatePass: boolean,\n false, // staticViewQueries: boolean,\n false, // staticContentQueries: boolean,\n null, // preOrderHooks: HookData|null,\n null, // preOrderCheckHooks: HookData|null,\n null, // contentHooks: HookData|null,\n null, // contentCheckHooks: HookData|null,\n null, // viewHooks: HookData|null,\n null, // viewCheckHooks: HookData|null,\n null, // destroyHooks: DestroyHookData|null,\n null, // cleanup: any[]|null,\n null, // contentQueries: number[]|null,\n null, // components: number[]|null,\n typeof directives === 'function' ? //\n directives() : //\n directives, // directiveRegistry: DirectiveDefList|null,\n typeof pipes === 'function' ? pipes() : pipes, // pipeRegistry: PipeDefList|null,\n null, // firstChild: TNode|null,\n schemas, // schemas: SchemaMetadata[]|null,\n consts, // consts: TConstants|null\n false, // incompleteFirstPass: boolean\n decls, // ngDevMode only: decls\n vars) :\n {\n type: type,\n blueprint: blueprint,\n template: templateFn,\n queries: null,\n viewQuery: viewQuery,\n declTNode: declTNode,\n data: blueprint.slice().fill(null, bindingStartIndex),\n bindingStartIndex: bindingStartIndex,\n expandoStartIndex: initialViewLength,\n hostBindingOpCodes: null,\n firstCreatePass: true,\n firstUpdatePass: true,\n staticViewQueries: false,\n staticContentQueries: false,\n preOrderHooks: null,\n preOrderCheckHooks: null,\n contentHooks: null,\n contentCheckHooks: null,\n viewHooks: null,\n viewCheckHooks: null,\n destroyHooks: null,\n cleanup: null,\n contentQueries: null,\n components: null,\n directiveRegistry: typeof directives === 'function' ? directives() : directives,\n pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,\n firstChild: null,\n schemas: schemas,\n consts: consts,\n incompleteFirstPass: false\n };\n if (ngDevMode) {\n // For performance reasons it is important that the tView retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tView);\n }\n return tView;\n}\nfunction createViewBlueprint(bindingStartIndex, initialViewLength) {\n const blueprint = ngDevMode ? new LViewBlueprint() : [];\n for (let i = 0; i < initialViewLength; i++) {\n blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);\n }\n return blueprint;\n}\nfunction createError(text, token) {\n return new Error(`Renderer: ${text} [${stringifyForError(token)}]`);\n}\nfunction assertHostNodeExists(rElement, elementOrSelector) {\n if (!rElement) {\n if (typeof elementOrSelector === 'string') {\n throw createError('Host node with selector not found:', elementOrSelector);\n }\n else {\n throw createError('Host node is required:', elementOrSelector);\n }\n }\n}\n/**\n * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.\n *\n * @param rendererFactory Factory function to create renderer instance.\n * @param elementOrSelector Render element or CSS selector to locate the element.\n * @param encapsulation View Encapsulation defined for component that requests host element.\n */\nfunction locateHostElement(renderer, elementOrSelector, encapsulation) {\n if (isProceduralRenderer(renderer)) {\n // When using native Shadow DOM, do not clear host element to allow native slot projection\n const preserveContent = encapsulation === ViewEncapsulation$1.ShadowDom;\n return renderer.selectRootElement(elementOrSelector, preserveContent);\n }\n let rElement = typeof elementOrSelector === 'string' ?\n renderer.querySelector(elementOrSelector) :\n elementOrSelector;\n ngDevMode && assertHostNodeExists(rElement, elementOrSelector);\n // Always clear host element's content when Renderer3 is in use. For procedural renderer case we\n // make it depend on whether ShadowDom encapsulation is used (in which case the content should be\n // preserved to allow native slot projection). ShadowDom encapsulation requires procedural\n // renderer, and procedural renderer case is handled above.\n rElement.textContent = '';\n return rElement;\n}\n/**\n * Saves context for this cleanup function in LView.cleanupInstances.\n *\n * On the first template pass, saves in TView:\n * - Cleanup function\n * - Index of context we just saved in LView.cleanupInstances\n *\n * This function can also be used to store instance specific cleanup fns. In that case the `context`\n * is `null` and the function is store in `LView` (rather than it `TView`).\n */\nfunction storeCleanupWithContext(tView, lView, context, cleanupFn) {\n const lCleanup = getOrCreateLViewCleanup(lView);\n if (context === null) {\n // If context is null that this is instance specific callback. These callbacks can only be\n // inserted after template shared instances. For this reason in ngDevMode we freeze the TView.\n if (ngDevMode) {\n Object.freeze(getOrCreateTViewCleanup(tView));\n }\n lCleanup.push(cleanupFn);\n }\n else {\n lCleanup.push(context);\n if (tView.firstCreatePass) {\n getOrCreateTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);\n }\n }\n}\nfunction createTNode(tView, tParent, type, index, value, attrs) {\n ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in\n // `view_engine_compatibility` for additional context.\n assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\\'t be in the LView header.');\n ngDevMode && assertNotSame(attrs, undefined, '\\'undefined\\' is not valid value for \\'attrs\\'');\n ngDevMode && ngDevMode.tNode++;\n ngDevMode && tParent && assertTNodeForTView(tParent, tView);\n let injectorIndex = tParent ? tParent.injectorIndex : -1;\n const tNode = ngDevMode ?\n new TNodeDebug(tView, // tView_: TView\n type, // type: TNodeType\n index, // index: number\n null, // insertBeforeIndex: null|-1|number|number[]\n injectorIndex, // injectorIndex: number\n -1, // directiveStart: number\n -1, // directiveEnd: number\n -1, // directiveStylingLast: number\n null, // propertyBindings: number[]|null\n 0, // flags: TNodeFlags\n 0, // providerIndexes: TNodeProviderIndexes\n value, // value: string|null\n attrs, // attrs: (string|AttributeMarker|(string|SelectorFlags)[])[]|null\n null, // mergedAttrs\n null, // localNames: (string|number)[]|null\n undefined, // initialInputs: (string[]|null)[]|null|undefined\n null, // inputs: PropertyAliases|null\n null, // outputs: PropertyAliases|null\n null, // tViews: ITView|ITView[]|null\n null, // next: ITNode|null\n null, // projectionNext: ITNode|null\n null, // child: ITNode|null\n tParent, // parent: TElementNode|TContainerNode|null\n null, // projection: number|(ITNode|RNode[])[]|null\n null, // styles: string|null\n null, // stylesWithoutHost: string|null\n undefined, // residualStyles: string|null\n null, // classes: string|null\n null, // classesWithoutHost: string|null\n undefined, // residualClasses: string|null\n 0, // classBindings: TStylingRange;\n 0) :\n {\n type,\n index,\n insertBeforeIndex: null,\n injectorIndex,\n directiveStart: -1,\n directiveEnd: -1,\n directiveStylingLast: -1,\n propertyBindings: null,\n flags: 0,\n providerIndexes: 0,\n value: value,\n attrs: attrs,\n mergedAttrs: null,\n localNames: null,\n initialInputs: undefined,\n inputs: null,\n outputs: null,\n tViews: null,\n next: null,\n projectionNext: null,\n child: null,\n parent: tParent,\n projection: null,\n styles: null,\n stylesWithoutHost: null,\n residualStyles: undefined,\n classes: null,\n classesWithoutHost: null,\n residualClasses: undefined,\n classBindings: 0,\n styleBindings: 0,\n };\n if (ngDevMode) {\n // For performance reasons it is important that the tNode retains the same shape during runtime.\n // (To make sure that all of the code is monomorphic.) For this reason we seal the object to\n // prevent class transitions.\n Object.seal(tNode);\n }\n return tNode;\n}\nfunction generatePropertyAliases(inputAliasMap, directiveDefIdx, propStore) {\n for (let publicName in inputAliasMap) {\n if (inputAliasMap.hasOwnProperty(publicName)) {\n propStore = propStore === null ? {} : propStore;\n const internalName = inputAliasMap[publicName];\n if (propStore.hasOwnProperty(publicName)) {\n propStore[publicName].push(directiveDefIdx, internalName);\n }\n else {\n (propStore[publicName] = [directiveDefIdx, internalName]);\n }\n }\n }\n return propStore;\n}\n/**\n * Initializes data structures required to work with directive inputs and outputs.\n * Initialization is done for all directives matched on a given TNode.\n */\nfunction initializeInputAndOutputAliases(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const tViewData = tView.data;\n const tNodeAttrs = tNode.attrs;\n const inputsFromAttrs = ngDevMode ? new TNodeInitialInputs() : [];\n let inputsStore = null;\n let outputsStore = null;\n for (let i = start; i < end; i++) {\n const directiveDef = tViewData[i];\n const directiveInputs = directiveDef.inputs;\n // Do not use unbound attributes as inputs to structural directives, since structural\n // directive inputs can only be set using microsyntax (e.g. `<div *dir=\"exp\">`).\n // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which\n // should be set for inline templates.\n const initialInputs = (tNodeAttrs !== null && !isInlineTemplate(tNode)) ?\n generateInitialInputs(directiveInputs, tNodeAttrs) :\n null;\n inputsFromAttrs.push(initialInputs);\n inputsStore = generatePropertyAliases(directiveInputs, i, inputsStore);\n outputsStore = generatePropertyAliases(directiveDef.outputs, i, outputsStore);\n }\n if (inputsStore !== null) {\n if (inputsStore.hasOwnProperty('class')) {\n tNode.flags |= 16 /* hasClassInput */;\n }\n if (inputsStore.hasOwnProperty('style')) {\n tNode.flags |= 32 /* hasStyleInput */;\n }\n }\n tNode.initialInputs = inputsFromAttrs;\n tNode.inputs = inputsStore;\n tNode.outputs = outputsStore;\n}\n/**\n * Mapping between attributes names that don't correspond to their element property names.\n *\n * Performance note: this function is written as a series of if checks (instead of, say, a property\n * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of\n * mapping property names. Do NOT change without benchmarking.\n *\n * Note: this mapping has to be kept in sync with the equally named mapping in the template\n * type-checking machinery of ngtsc.\n */\nfunction mapPropName(name) {\n if (name === 'class')\n return 'className';\n if (name === 'for')\n return 'htmlFor';\n if (name === 'formaction')\n return 'formAction';\n if (name === 'innerHtml')\n return 'innerHTML';\n if (name === 'readonly')\n return 'readOnly';\n if (name === 'tabindex')\n return 'tabIndex';\n return name;\n}\nfunction elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n const element = getNativeByTNode(tNode, lView);\n let inputData = tNode.inputs;\n let dataValue;\n if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {\n setInputsForProperty(tView, lView, dataValue, propName, value);\n if (isComponentHost(tNode))\n markDirtyIfOnPush(lView, tNode.index);\n if (ngDevMode) {\n setNgReflectProperties(lView, element, tNode.type, dataValue, value);\n }\n }\n else if (tNode.type & 3 /* AnyRNode */) {\n propName = mapPropName(propName);\n if (ngDevMode) {\n validateAgainstEventProperties(propName);\n if (!validateProperty(tView, element, propName, tNode)) {\n // Return here since we only log warnings for unknown properties.\n logUnknownPropertyError(propName, tNode);\n return;\n }\n ngDevMode.rendererSetProperty++;\n }\n // It is assumed that the sanitizer is only added when the compiler determines that the\n // property is risky, so sanitization can be done without further checks.\n value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;\n if (isProceduralRenderer(renderer)) {\n renderer.setProperty(element, propName, value);\n }\n else if (!isAnimationProp(propName)) {\n element.setProperty ? element.setProperty(propName, value) :\n element[propName] = value;\n }\n }\n else if (tNode.type & 12 /* AnyContainer */) {\n // If the node is a container and the property didn't\n // match any of the inputs or schemas we should throw.\n if (ngDevMode && !matchingSchemas(tView, tNode.value)) {\n logUnknownPropertyError(propName, tNode);\n }\n }\n}\n/** If node is an OnPush component, marks its LView dirty. */\nfunction markDirtyIfOnPush(lView, viewIndex) {\n ngDevMode && assertLView(lView);\n const childComponentLView = getComponentLViewByIndex(viewIndex, lView);\n if (!(childComponentLView[FLAGS] & 16 /* CheckAlways */)) {\n childComponentLView[FLAGS] |= 64 /* Dirty */;\n }\n}\nfunction setNgReflectProperty(lView, element, type, attrName, value) {\n const renderer = lView[RENDERER];\n attrName = normalizeDebugBindingName(attrName);\n const debugValue = normalizeDebugBindingValue(value);\n if (type & 3 /* AnyRNode */) {\n if (value == null) {\n isProceduralRenderer(renderer) ? renderer.removeAttribute(element, attrName) :\n element.removeAttribute(attrName);\n }\n else {\n isProceduralRenderer(renderer) ?\n renderer.setAttribute(element, attrName, debugValue) :\n element.setAttribute(attrName, debugValue);\n }\n }\n else {\n const textContent = escapeCommentText(`bindings=${JSON.stringify({ [attrName]: debugValue }, null, 2)}`);\n if (isProceduralRenderer(renderer)) {\n renderer.setValue(element, textContent);\n }\n else {\n element.textContent = textContent;\n }\n }\n}\nfunction setNgReflectProperties(lView, element, type, dataValue, value) {\n if (type & (3 /* AnyRNode */ | 4 /* Container */)) {\n /**\n * dataValue is an array containing runtime input or output names for the directives:\n * i+0: directive instance index\n * i+1: privateName\n *\n * e.g. [0, 'change', 'change-minified']\n * we want to set the reflected property with the privateName: dataValue[i+1]\n */\n for (let i = 0; i < dataValue.length; i += 2) {\n setNgReflectProperty(lView, element, type, dataValue[i + 1], value);\n }\n }\n}\nfunction validateProperty(tView, element, propName, tNode) {\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (tView.schemas === null)\n return true;\n // The property is considered valid if the element matches the schema, it exists on the element\n // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).\n if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {\n return true;\n }\n // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we\n // need to account for both here, while being careful for `typeof null` also returning 'object'.\n return typeof Node === 'undefined' || Node === null || !(element instanceof Node);\n}\nfunction matchingSchemas(tView, tagName) {\n const schemas = tView.schemas;\n if (schemas !== null) {\n for (let i = 0; i < schemas.length; i++) {\n const schema = schemas[i];\n if (schema === NO_ERRORS_SCHEMA ||\n schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {\n return true;\n }\n }\n }\n return false;\n}\n/**\n * Logs an error that a property is not supported on an element.\n * @param propName Name of the invalid property.\n * @param tNode Node on which we encountered the property.\n */\nfunction logUnknownPropertyError(propName, tNode) {\n let message = `Can't bind to '${propName}' since it isn't a known property of '${tNode.value}'.`;\n console.error(formatRuntimeError(\"303\" /* UNKNOWN_BINDING */, message));\n}\n/**\n * Instantiate a root component.\n */\nfunction instantiateRootComponent(tView, lView, def) {\n const rootTNode = getCurrentTNode();\n if (tView.firstCreatePass) {\n if (def.providersResolver)\n def.providersResolver(def);\n const directiveIndex = allocExpando(tView, lView, 1, null);\n ngDevMode &&\n assertEqual(directiveIndex, rootTNode.directiveStart, 'Because this is a root component the allocated expando should match the TNode component.');\n configureViewWithDirective(tView, rootTNode, lView, directiveIndex, def);\n }\n const directive = getNodeInjectable(lView, tView, rootTNode.directiveStart, rootTNode);\n attachPatchData(directive, lView);\n const native = getNativeByTNode(rootTNode, lView);\n if (native) {\n attachPatchData(native, lView);\n }\n return directive;\n}\n/**\n * Resolve the matched directives on a node.\n */\nfunction resolveDirectives(tView, lView, tNode, localRefs) {\n // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in\n // tsickle.\n ngDevMode && assertFirstCreatePass(tView);\n let hasDirectives = false;\n if (getBindingsEnabled()) {\n const directiveDefs = findDirectiveDefMatches(tView, lView, tNode);\n const exportsMap = localRefs === null ? null : { '': -1 };\n if (directiveDefs !== null) {\n hasDirectives = true;\n initTNodeFlags(tNode, tView.data.length, directiveDefs.length);\n // When the same token is provided by several directives on the same node, some rules apply in\n // the viewEngine:\n // - viewProviders have priority over providers\n // - the last directive in NgModule.declarations has priority over the previous one\n // So to match these rules, the order in which providers are added in the arrays is very\n // important.\n for (let i = 0; i < directiveDefs.length; i++) {\n const def = directiveDefs[i];\n if (def.providersResolver)\n def.providersResolver(def);\n }\n let preOrderHooksFound = false;\n let preOrderCheckHooksFound = false;\n let directiveIdx = allocExpando(tView, lView, directiveDefs.length, null);\n ngDevMode &&\n assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');\n for (let i = 0; i < directiveDefs.length; i++) {\n const def = directiveDefs[i];\n // Merge the attrs in the order of matches. This assumes that the first directive is the\n // component itself, so that the component has the least priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);\n configureViewWithDirective(tView, tNode, lView, directiveIdx, def);\n saveNameToExportMap(directiveIdx, def, exportsMap);\n if (def.contentQueries !== null)\n tNode.flags |= 8 /* hasContentQuery */;\n if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0)\n tNode.flags |= 128 /* hasHostBindings */;\n const lifeCycleHooks = def.type.prototype;\n // Only push a node index into the preOrderHooks array if this is the first\n // pre-order hook found on this node.\n if (!preOrderHooksFound &&\n (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {\n // We will push the actual hook function into this array later during dir instantiation.\n // We cannot do it now because we must ensure hooks are registered in the same\n // order that directives are created (i.e. injection order).\n (tView.preOrderHooks || (tView.preOrderHooks = [])).push(tNode.index);\n preOrderHooksFound = true;\n }\n if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {\n (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(tNode.index);\n preOrderCheckHooksFound = true;\n }\n directiveIdx++;\n }\n initializeInputAndOutputAliases(tView, tNode);\n }\n if (exportsMap)\n cacheMatchingLocalNames(tNode, localRefs, exportsMap);\n }\n // Merge the template attrs last so that they have the highest priority.\n tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);\n return hasDirectives;\n}\n/**\n * Add `hostBindings` to the `TView.hostBindingOpCodes`.\n *\n * @param tView `TView` to which the `hostBindings` should be added.\n * @param tNode `TNode` the element which contains the directive\n * @param lView `LView` current `LView`\n * @param directiveIdx Directive index in view.\n * @param directiveVarsIdx Where will the directive's vars be stored\n * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.\n */\nfunction registerHostBindingOpCodes(tView, tNode, lView, directiveIdx, directiveVarsIdx, def) {\n ngDevMode && assertFirstCreatePass(tView);\n const hostBindings = def.hostBindings;\n if (hostBindings) {\n let hostBindingOpCodes = tView.hostBindingOpCodes;\n if (hostBindingOpCodes === null) {\n hostBindingOpCodes = tView.hostBindingOpCodes = [];\n }\n const elementIndx = ~tNode.index;\n if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {\n // Conditionally add select element so that we are more efficient in execution.\n // NOTE: this is strictly not necessary and it trades code size for runtime perf.\n // (We could just always add it.)\n hostBindingOpCodes.push(elementIndx);\n }\n hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);\n }\n}\n/**\n * Returns the last selected element index in the `HostBindingOpCodes`\n *\n * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only\n * if it changes. This method returns the last index (or '0' if not found.)\n *\n * Selected element index are only the ones which are negative.\n */\nfunction lastSelectedElementIdx(hostBindingOpCodes) {\n let i = hostBindingOpCodes.length;\n while (i > 0) {\n const value = hostBindingOpCodes[--i];\n if (typeof value === 'number' && value < 0) {\n return value;\n }\n }\n return 0;\n}\n/**\n * Instantiate all the directives that were previously resolved on the current node.\n */\nfunction instantiateAllDirectives(tView, lView, tNode, native) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n if (!tView.firstCreatePass) {\n getOrCreateNodeInjectorForNode(tNode, lView);\n }\n attachPatchData(native, lView);\n const initialInputs = tNode.initialInputs;\n for (let i = start; i < end; i++) {\n const def = tView.data[i];\n const isComponent = isComponentDef(def);\n if (isComponent) {\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */);\n addComponentLogic(lView, tNode, def);\n }\n const directive = getNodeInjectable(lView, tView, i, tNode);\n attachPatchData(directive, lView);\n if (initialInputs !== null) {\n setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);\n }\n if (isComponent) {\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n componentView[CONTEXT] = directive;\n }\n }\n}\nfunction invokeDirectivesHostBindings(tView, lView, tNode) {\n const start = tNode.directiveStart;\n const end = tNode.directiveEnd;\n const firstCreatePass = tView.firstCreatePass;\n const elementIndex = tNode.index;\n const currentDirectiveIndex = getCurrentDirectiveIndex();\n try {\n setSelectedIndex(elementIndex);\n for (let dirIndex = start; dirIndex < end; dirIndex++) {\n const def = tView.data[dirIndex];\n const directive = lView[dirIndex];\n setCurrentDirectiveIndex(dirIndex);\n if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {\n invokeHostBindingsInCreationMode(def, directive);\n }\n }\n }\n finally {\n setSelectedIndex(-1);\n setCurrentDirectiveIndex(currentDirectiveIndex);\n }\n}\n/**\n * Invoke the host bindings in creation mode.\n *\n * @param def `DirectiveDef` which may contain the `hostBindings` function.\n * @param directive Instance of directive.\n */\nfunction invokeHostBindingsInCreationMode(def, directive) {\n if (def.hostBindings !== null) {\n def.hostBindings(1 /* Create */, directive);\n }\n}\n/**\n * Matches the current node against all available selectors.\n * If a component is matched (at most one), it is returned in first position in the array.\n */\nfunction findDirectiveDefMatches(tView, viewData, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);\n const registry = tView.directiveRegistry;\n let matches = null;\n if (registry) {\n for (let i = 0; i < registry.length; i++) {\n const def = registry[i];\n if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */ false)) {\n matches || (matches = ngDevMode ? new MatchesArray() : []);\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, viewData), tView, def.type);\n if (isComponentDef(def)) {\n if (ngDevMode) {\n assertTNodeType(tNode, 2 /* Element */, `\"${tNode.value}\" tags cannot be used as component hosts. ` +\n `Please use a different tag to activate the ${stringify(def.type)} component.`);\n if (tNode.flags & 2 /* isComponentHost */)\n throwMultipleComponentError(tNode);\n }\n markAsComponentHost(tView, tNode);\n // The component is always stored first with directives after.\n matches.unshift(def);\n }\n else {\n matches.push(def);\n }\n }\n }\n }\n return matches;\n}\n/**\n * Marks a given TNode as a component's host. This consists of:\n * - setting appropriate TNode flags;\n * - storing index of component's host element so it will be queued for view refresh during CD.\n */\nfunction markAsComponentHost(tView, hostTNode) {\n ngDevMode && assertFirstCreatePass(tView);\n hostTNode.flags |= 2 /* isComponentHost */;\n (tView.components || (tView.components = ngDevMode ? new TViewComponents() : []))\n .push(hostTNode.index);\n}\n/** Caches local names and their matching directive indices for query and template lookups. */\nfunction cacheMatchingLocalNames(tNode, localRefs, exportsMap) {\n if (localRefs) {\n const localNames = tNode.localNames = ngDevMode ? new TNodeLocalNames() : [];\n // Local names must be stored in tNode in the same order that localRefs are defined\n // in the template to ensure the data is loaded in the same slots as their refs\n // in the template (for template queries).\n for (let i = 0; i < localRefs.length; i += 2) {\n const index = exportsMap[localRefs[i + 1]];\n if (index == null)\n throw new RuntimeError(\"301\" /* EXPORT_NOT_FOUND */, `Export of name '${localRefs[i + 1]}' not found!`);\n localNames.push(localRefs[i], index);\n }\n }\n}\n/**\n * Builds up an export map as directives are created, so local refs can be quickly mapped\n * to their directive instances.\n */\nfunction saveNameToExportMap(directiveIdx, def, exportsMap) {\n if (exportsMap) {\n if (def.exportAs) {\n for (let i = 0; i < def.exportAs.length; i++) {\n exportsMap[def.exportAs[i]] = directiveIdx;\n }\n }\n if (isComponentDef(def))\n exportsMap[''] = directiveIdx;\n }\n}\n/**\n * Initializes the flags on the current node, setting all indices to the initial index,\n * the directive count to 0, and adding the isComponent flag.\n * @param index the initial index\n */\nfunction initTNodeFlags(tNode, index, numberOfDirectives) {\n ngDevMode &&\n assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');\n tNode.flags |= 1 /* isDirectiveHost */;\n // When the first directive is created on a node, save the index\n tNode.directiveStart = index;\n tNode.directiveEnd = index + numberOfDirectives;\n tNode.providerIndexes = index;\n}\n/**\n * Setup directive for instantiation.\n *\n * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well\n * as `LView`. `TView` gets the `DirectiveDef`.\n *\n * @param tView `TView`\n * @param tNode `TNode`\n * @param lView `LView`\n * @param directiveIndex Index where the directive will be stored in the Expando.\n * @param def `DirectiveDef`\n */\nfunction configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {\n ngDevMode &&\n assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');\n tView.data[directiveIndex] = def;\n const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));\n const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), null);\n tView.blueprint[directiveIndex] = nodeInjectorFactory;\n lView[directiveIndex] = nodeInjectorFactory;\n registerHostBindingOpCodes(tView, tNode, lView, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);\n}\nfunction addComponentLogic(lView, hostTNode, def) {\n const native = getNativeByTNode(hostTNode, lView);\n const tView = getOrCreateTComponentView(def);\n // Only component views should be added to the view tree directly. Embedded views are\n // accessed through their containers because they may be removed / re-added later.\n const rendererFactory = lView[RENDERER_FACTORY];\n const componentView = addToViewTree(lView, createLView(lView, tView, null, def.onPush ? 64 /* Dirty */ : 16 /* CheckAlways */, native, hostTNode, rendererFactory, rendererFactory.createRenderer(native, def), null, null));\n // Component view will always be created before any injected LContainers,\n // so this is a regular element, wrap it with the component view\n lView[hostTNode.index] = componentView;\n}\nfunction elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {\n if (ngDevMode) {\n assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n validateAgainstEventAttributes(name);\n assertTNodeType(tNode, 2 /* Element */, `Attempted to set attribute \\`${name}\\` on a container node. ` +\n `Host bindings are not valid on ng-container or ng-template.`);\n }\n const element = getNativeByTNode(tNode, lView);\n setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);\n}\nfunction setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {\n if (value == null) {\n ngDevMode && ngDevMode.rendererRemoveAttribute++;\n isProceduralRenderer(renderer) ? renderer.removeAttribute(element, name, namespace) :\n element.removeAttribute(name);\n }\n else {\n ngDevMode && ngDevMode.rendererSetAttribute++;\n const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);\n if (isProceduralRenderer(renderer)) {\n renderer.setAttribute(element, name, strValue, namespace);\n }\n else {\n namespace ? element.setAttributeNS(namespace, name, strValue) :\n element.setAttribute(name, strValue);\n }\n }\n}\n/**\n * Sets initial input properties on directive instances from attribute data\n *\n * @param lView Current LView that is being processed.\n * @param directiveIndex Index of the directive in directives array\n * @param instance Instance of the directive on which to set the initial inputs\n * @param def The directive def that contains the list of inputs\n * @param tNode The static data for this node\n */\nfunction setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {\n const initialInputs = initialInputData[directiveIndex];\n if (initialInputs !== null) {\n const setInput = def.setInput;\n for (let i = 0; i < initialInputs.length;) {\n const publicName = initialInputs[i++];\n const privateName = initialInputs[i++];\n const value = initialInputs[i++];\n if (setInput !== null) {\n def.setInput(instance, value, publicName, privateName);\n }\n else {\n instance[privateName] = value;\n }\n if (ngDevMode) {\n const nativeElement = getNativeByTNode(tNode, lView);\n setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);\n }\n }\n }\n}\n/**\n * Generates initialInputData for a node and stores it in the template's static storage\n * so subsequent template invocations don't have to recalculate it.\n *\n * initialInputData is an array containing values that need to be set as input properties\n * for directives on this node, but only once on creation. We need this array to support\n * the case where you set an @Input property of a directive using attribute-like syntax.\n * e.g. if you have a `name` @Input, you can set it once like this:\n *\n * <my-component name=\"Bess\"></my-component>\n *\n * @param inputs The list of inputs from the directive def\n * @param attrs The static attrs on this node\n */\nfunction generateInitialInputs(inputs, attrs) {\n let inputsToStore = null;\n let i = 0;\n while (i < attrs.length) {\n const attrName = attrs[i];\n if (attrName === 0 /* NamespaceURI */) {\n // We do not allow inputs on namespaced attributes.\n i += 4;\n continue;\n }\n else if (attrName === 5 /* ProjectAs */) {\n // Skip over the `ngProjectAs` value.\n i += 2;\n continue;\n }\n // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.\n if (typeof attrName === 'number')\n break;\n if (inputs.hasOwnProperty(attrName)) {\n if (inputsToStore === null)\n inputsToStore = [];\n inputsToStore.push(attrName, inputs[attrName], attrs[i + 1]);\n }\n i += 2;\n }\n return inputsToStore;\n}\n//////////////////////////\n//// ViewContainer & View\n//////////////////////////\n// Not sure why I need to do `any` here but TS complains later.\nconst LContainerArray = class LContainer extends Array {\n};\n/**\n * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.\n *\n * @param hostNative The host element for the LContainer\n * @param hostTNode The host TNode for the LContainer\n * @param currentView The parent view of the LContainer\n * @param native The native comment element\n * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case\n * @returns LContainer\n */\nfunction createLContainer(hostNative, currentView, native, tNode) {\n ngDevMode && assertLView(currentView);\n ngDevMode && !isProceduralRenderer(currentView[RENDERER]) && assertDomNode(native);\n // https://jsperf.com/array-literal-vs-new-array-really\n const lContainer = new (ngDevMode ? LContainerArray : Array)(hostNative, // host native\n true, // Boolean `true` in this position signifies that this is an `LContainer`\n false, // has transplanted views\n currentView, // parent\n null, // next\n 0, // transplanted views to refresh count\n tNode, // t_host\n native, // native,\n null, // view refs\n null);\n ngDevMode &&\n assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');\n ngDevMode && attachLContainerDebug(lContainer);\n return lContainer;\n}\n/**\n * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes\n * them by executing an associated template function.\n */\nfunction refreshEmbeddedViews(lView) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const embeddedLView = lContainer[i];\n const embeddedTView = embeddedLView[TVIEW];\n ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');\n if (viewAttachedToChangeDetector(embeddedLView)) {\n refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);\n }\n }\n }\n}\n/**\n * Mark transplanted views as needing to be refreshed at their insertion points.\n *\n * @param lView The `LView` that may have transplanted views.\n */\nfunction markTransplantedViewsForRefresh(lView) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n if (!lContainer[HAS_TRANSPLANTED_VIEWS])\n continue;\n const movedViews = lContainer[MOVED_VIEWS];\n ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');\n for (let i = 0; i < movedViews.length; i++) {\n const movedLView = movedViews[i];\n const insertionLContainer = movedLView[PARENT];\n ngDevMode && assertLContainer(insertionLContainer);\n // We don't want to increment the counter if the moved LView was already marked for\n // refresh.\n if ((movedLView[FLAGS] & 1024 /* RefreshTransplantedView */) === 0) {\n updateTransplantedViewCount(insertionLContainer, 1);\n }\n // Note, it is possible that the `movedViews` is tracking views that are transplanted *and*\n // those that aren't (declaration component === insertion component). In the latter case,\n // it's fine to add the flag, as we will clear it immediately in\n // `refreshEmbeddedViews` for the view currently being refreshed.\n movedLView[FLAGS] |= 1024 /* RefreshTransplantedView */;\n }\n }\n}\n/////////////\n/**\n * Refreshes components by entering the component view and processing its bindings, queries, etc.\n *\n * @param componentHostIdx Element index in LView[] (adjusted for HEADER_OFFSET)\n */\nfunction refreshComponent(hostLView, componentHostIdx) {\n ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n if (viewAttachedToChangeDetector(componentView)) {\n const tView = componentView[TVIEW];\n if (componentView[FLAGS] & (16 /* CheckAlways */ | 64 /* Dirty */)) {\n refreshView(tView, componentView, tView.template, componentView[CONTEXT]);\n }\n else if (componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n refreshContainsDirtyView(componentView);\n }\n }\n}\n/**\n * Refreshes all transplanted views marked with `LViewFlags.RefreshTransplantedView` that are\n * children or descendants of the given lView.\n *\n * @param lView The lView which contains descendant transplanted views that need to be refreshed.\n */\nfunction refreshContainsDirtyView(lView) {\n for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const embeddedLView = lContainer[i];\n if (embeddedLView[FLAGS] & 1024 /* RefreshTransplantedView */) {\n const embeddedTView = embeddedLView[TVIEW];\n ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');\n refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);\n }\n else if (embeddedLView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n refreshContainsDirtyView(embeddedLView);\n }\n }\n }\n const tView = lView[TVIEW];\n // Refresh child component views.\n const components = tView.components;\n if (components !== null) {\n for (let i = 0; i < components.length; i++) {\n const componentView = getComponentLViewByIndex(components[i], lView);\n // Only attached components that are CheckAlways or OnPush and dirty should be refreshed\n if (viewAttachedToChangeDetector(componentView) &&\n componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {\n refreshContainsDirtyView(componentView);\n }\n }\n }\n}\nfunction renderComponent$1(hostLView, componentHostIdx) {\n ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');\n const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);\n const componentTView = componentView[TVIEW];\n syncViewWithBlueprint(componentTView, componentView);\n renderView(componentTView, componentView, componentView[CONTEXT]);\n}\n/**\n * Syncs an LView instance with its blueprint if they have gotten out of sync.\n *\n * Typically, blueprints and their view instances should always be in sync, so the loop here\n * will be skipped. However, consider this case of two components side-by-side:\n *\n * App template:\n * ```\n * <comp></comp>\n * <comp></comp>\n * ```\n *\n * The following will happen:\n * 1. App template begins processing.\n * 2. First <comp> is matched as a component and its LView is created.\n * 3. Second <comp> is matched as a component and its LView is created.\n * 4. App template completes processing, so it's time to check child templates.\n * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.\n * 6. Second <comp> template is checked. Its blueprint has been updated by the first\n * <comp> template, but its LView was created before this update, so it is out of sync.\n *\n * Note that embedded views inside ngFor loops will never be out of sync because these views\n * are processed as soon as they are created.\n *\n * @param tView The `TView` that contains the blueprint for syncing\n * @param lView The view to sync\n */\nfunction syncViewWithBlueprint(tView, lView) {\n for (let i = lView.length; i < tView.blueprint.length; i++) {\n lView.push(tView.blueprint[i]);\n }\n}\n/**\n * Adds LView or LContainer to the end of the current view tree.\n *\n * This structure will be used to traverse through nested views to remove listeners\n * and call onDestroy callbacks.\n *\n * @param lView The view where LView or LContainer should be added\n * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header\n * @param lViewOrLContainer The LView or LContainer to add to the view tree\n * @returns The state passed in\n */\nfunction addToViewTree(lView, lViewOrLContainer) {\n // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer\n // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out\n // of order, the change detection will run out of order, as the act of retrieving the the\n // LContainer from the RNode is what adds it to the queue.\n if (lView[CHILD_HEAD]) {\n lView[CHILD_TAIL][NEXT] = lViewOrLContainer;\n }\n else {\n lView[CHILD_HEAD] = lViewOrLContainer;\n }\n lView[CHILD_TAIL] = lViewOrLContainer;\n return lViewOrLContainer;\n}\n///////////////////////////////\n//// Change detection\n///////////////////////////////\n/**\n * Marks current view and all ancestors dirty.\n *\n * Returns the root view because it is found as a byproduct of marking the view tree\n * dirty, and can be used by methods that consume markViewDirty() to easily schedule\n * change detection. Otherwise, such methods would need to traverse up the view tree\n * an additional time to get the root view and schedule a tick on it.\n *\n * @param lView The starting LView to mark dirty\n * @returns the root LView\n */\nfunction markViewDirty(lView) {\n while (lView) {\n lView[FLAGS] |= 64 /* Dirty */;\n const parent = getLViewParent(lView);\n // Stop traversing up as soon as you find a root view that wasn't attached to any container\n if (isRootView(lView) && !parent) {\n return lView;\n }\n // continue otherwise\n lView = parent;\n }\n return null;\n}\n/**\n * Used to schedule change detection on the whole application.\n *\n * Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run.\n * It is usually called indirectly by calling `markDirty` when the view needs to be\n * re-rendered.\n *\n * Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple\n * `scheduleTick` requests. The scheduling function can be overridden in\n * `renderComponent`'s `scheduler` option.\n */\nfunction scheduleTick(rootContext, flags) {\n const nothingScheduled = rootContext.flags === 0 /* Empty */;\n if (nothingScheduled && rootContext.clean == _CLEAN_PROMISE) {\n // https://github.com/angular/angular/issues/39296\n // should only attach the flags when really scheduling a tick\n rootContext.flags |= flags;\n let res;\n rootContext.clean = new Promise((r) => res = r);\n rootContext.scheduler(() => {\n if (rootContext.flags & 1 /* DetectChanges */) {\n rootContext.flags &= ~1 /* DetectChanges */;\n tickRootContext(rootContext);\n }\n if (rootContext.flags & 2 /* FlushPlayers */) {\n rootContext.flags &= ~2 /* FlushPlayers */;\n const playerHandler = rootContext.playerHandler;\n if (playerHandler) {\n playerHandler.flushPlayers();\n }\n }\n rootContext.clean = _CLEAN_PROMISE;\n res(null);\n });\n }\n}\nfunction tickRootContext(rootContext) {\n for (let i = 0; i < rootContext.components.length; i++) {\n const rootComponent = rootContext.components[i];\n const lView = readPatchedLView(rootComponent);\n const tView = lView[TVIEW];\n renderComponentOrTemplate(tView, lView, tView.template, rootComponent);\n }\n}\nfunction detectChangesInternal(tView, lView, context) {\n const rendererFactory = lView[RENDERER_FACTORY];\n if (rendererFactory.begin)\n rendererFactory.begin();\n try {\n refreshView(tView, lView, tView.template, context);\n }\n catch (error) {\n handleError(lView, error);\n throw error;\n }\n finally {\n if (rendererFactory.end)\n rendererFactory.end();\n }\n}\n/**\n * Synchronously perform change detection on a root view and its components.\n *\n * @param lView The view which the change detection should be performed on.\n */\nfunction detectChangesInRootView(lView) {\n tickRootContext(lView[CONTEXT]);\n}\nfunction checkNoChangesInternal(tView, view, context) {\n setIsInCheckNoChangesMode(true);\n try {\n detectChangesInternal(tView, view, context);\n }\n finally {\n setIsInCheckNoChangesMode(false);\n }\n}\n/**\n * Checks the change detector on a root view and its components, and throws if any changes are\n * detected.\n *\n * This is used in development mode to verify that running change detection doesn't\n * introduce other changes.\n *\n * @param lView The view which the change detection should be checked on.\n */\nfunction checkNoChangesInRootView(lView) {\n setIsInCheckNoChangesMode(true);\n try {\n detectChangesInRootView(lView);\n }\n finally {\n setIsInCheckNoChangesMode(false);\n }\n}\nfunction executeViewQueryFn(flags, viewQueryFn, component) {\n ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');\n setCurrentQueryIndex(0);\n viewQueryFn(flags, component);\n}\n///////////////////////////////\n//// Bindings & interpolations\n///////////////////////////////\n/**\n * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.\n *\n * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:\n * - a bound property name;\n * - a static parts of interpolated strings;\n *\n * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a\n * property binding metadata will be stored in `TView.data` at the same index as a bound value in\n * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the\n * following format:\n * - `propertyName` for bound properties;\n * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for\n * interpolated properties.\n *\n * @param tData `TData` where meta-data will be saved;\n * @param tNode `TNode` that is a target of the binding;\n * @param propertyName bound property name;\n * @param bindingIndex binding index in `LView`\n * @param interpolationParts static interpolation parts (for property interpolations)\n */\nfunction storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {\n // Binding meta-data are stored only the first time a given property instruction is processed.\n // Since we don't have a concept of the \"first update pass\" we need to check for presence of the\n // binding meta-data to decide if one should be stored (or if was stored already).\n if (tData[bindingIndex] === null) {\n if (tNode.inputs == null || !tNode.inputs[propertyName]) {\n const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);\n propBindingIdxs.push(bindingIndex);\n let bindingMetadata = propertyName;\n if (interpolationParts.length > 0) {\n bindingMetadata +=\n INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);\n }\n tData[bindingIndex] = bindingMetadata;\n }\n }\n}\nconst CLEAN_PROMISE = _CLEAN_PROMISE;\nfunction getOrCreateLViewCleanup(view) {\n // top level variables should not be exported for performance reasons (PERF_NOTES.md)\n return view[CLEANUP] || (view[CLEANUP] = ngDevMode ? new LCleanup() : []);\n}\nfunction getOrCreateTViewCleanup(tView) {\n return tView.cleanup || (tView.cleanup = ngDevMode ? new TCleanup() : []);\n}\n/**\n * There are cases where the sub component's renderer needs to be included\n * instead of the current renderer (see the componentSyntheticHost* instructions).\n */\nfunction loadComponentRenderer(currentDef, tNode, lView) {\n // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root\n // component (see packages/core/src/render3/component.ts). This is not consistent with the process\n // of creating inner components, when current directive index is available in the state. In order\n // to avoid relying on current def being `null` (thus special-casing root component creation), the\n // process of creating root component should be unified with the process of creating inner\n // components.\n if (currentDef === null || isComponentDef(currentDef)) {\n lView = unwrapLView(lView[tNode.index]);\n }\n return lView[RENDERER];\n}\n/** Handles an error thrown in an LView. */\nfunction handleError(lView, error) {\n const injector = lView[INJECTOR$1];\n const errorHandler = injector ? injector.get(ErrorHandler, null) : null;\n errorHandler && errorHandler.handleError(error);\n}\n/**\n * Set the inputs of directives at the current node to corresponding value.\n *\n * @param tView The current TView\n * @param lView the `LView` which contains the directives.\n * @param inputs mapping between the public \"input\" name and privately-known,\n * possibly minified, property names to write to.\n * @param value Value to set.\n */\nfunction setInputsForProperty(tView, lView, inputs, publicName, value) {\n for (let i = 0; i < inputs.length;) {\n const index = inputs[i++];\n const privateName = inputs[i++];\n const instance = lView[index];\n ngDevMode && assertIndexInRange(lView, index);\n const def = tView.data[index];\n if (def.setInput !== null) {\n def.setInput(instance, value, publicName, privateName);\n }\n else {\n instance[privateName] = value;\n }\n }\n}\n/**\n * Updates a text binding at a given index in a given LView.\n */\nfunction textBindingInternal(lView, index, value) {\n ngDevMode && assertString(value, 'Value should be a string');\n ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');\n ngDevMode && assertIndexInRange(lView, index);\n const element = getNativeByIndex(index, lView);\n ngDevMode && assertDefined(element, 'native element should exist');\n updateTextNode(lView[RENDERER], element, value);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Compute the static styling (class/style) from `TAttributes`.\n *\n * This function should be called during `firstCreatePass` only.\n *\n * @param tNode The `TNode` into which the styling information should be loaded.\n * @param attrs `TAttributes` containing the styling information.\n * @param writeToHost Where should the resulting static styles be written?\n * - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`\n * - `true` Write to `TNode.styles` / `TNode.classes`\n */\nfunction computeStaticStyling(tNode, attrs, writeToHost) {\n ngDevMode &&\n assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');\n let styles = writeToHost ? tNode.styles : null;\n let classes = writeToHost ? tNode.classes : null;\n let mode = 0;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const value = attrs[i];\n if (typeof value === 'number') {\n mode = value;\n }\n else if (mode == 1 /* Classes */) {\n classes = concatStringsWithSpace(classes, value);\n }\n else if (mode == 2 /* Styles */) {\n const style = value;\n const styleValue = attrs[++i];\n styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');\n }\n }\n }\n writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;\n writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Synchronously perform change detection on a component (and possibly its sub-components).\n *\n * This function triggers change detection in a synchronous way on a component.\n *\n * @param component The component which the change detection should be performed on.\n */\nfunction detectChanges(component) {\n const view = getComponentViewByInstance(component);\n detectChangesInternal(view[TVIEW], view, component);\n}\n/**\n * Marks the component as dirty (needing change detection). Marking a component dirty will\n * schedule a change detection on it at some point in the future.\n *\n * Marking an already dirty component as dirty won't do anything. Only one outstanding change\n * detection can be scheduled per component tree.\n *\n * @param component Component to mark as dirty.\n */\nfunction markDirty(component) {\n ngDevMode && assertDefined(component, 'component');\n const rootView = markViewDirty(getComponentViewByInstance(component));\n ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');\n scheduleTick(rootView[CONTEXT], 1 /* DetectChanges */);\n}\n/**\n * Used to perform change detection on the whole application.\n *\n * This is equivalent to `detectChanges`, but invoked on root component. Additionally, `tick`\n * executes lifecycle hooks and conditionally checks components based on their\n * `ChangeDetectionStrategy` and dirtiness.\n *\n * The preferred way to trigger change detection is to call `markDirty`. `markDirty` internally\n * schedules `tick` using a scheduler in order to coalesce multiple `markDirty` calls into a\n * single change detection run. By default, the scheduler is `requestAnimationFrame`, but can\n * be changed when calling `renderComponent` and providing the `scheduler` option.\n */\nfunction tick(component) {\n const rootView = getRootView(component);\n const rootContext = rootView[CONTEXT];\n tickRootContext(rootContext);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR = new InjectionToken('INJECTOR', \n// Dissable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* Injector */);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass NullInjector {\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n if (notFoundValue === THROW_IF_NOT_FOUND) {\n const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n error.name = 'NullInjectorError';\n throw error;\n }\n return notFoundValue;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = new InjectionToken('Set Injector scope.');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR$1 = undefined;\nfunction getNullInjector() {\n if (NULL_INJECTOR$1 === undefined) {\n NULL_INJECTOR$1 = new NullInjector();\n }\n return NULL_INJECTOR$1;\n}\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.\n *\n * @publicApi\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n injector._resolveInjectorDefTypes();\n return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name) {\n return new R3Injector(defType, additionalProviders, parent || getNullInjector(), name);\n}\nclass R3Injector {\n constructor(def, additionalProviders, parent, source = null) {\n this.parent = parent;\n /**\n * Map of tokens to records which contain the instances of those tokens.\n * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n * to prevent further searches.\n */\n this.records = new Map();\n /**\n * The transitive set of `InjectorType`s which define this injector.\n */\n this.injectorDefTypes = new Set();\n /**\n * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n */\n this.onDestroy = new Set();\n this._destroyed = false;\n const dedupStack = [];\n // Start off by creating Records for every provider declared in every InjectorType\n // included transitively in additional providers then do the same for `def`. This order is\n // important because `def` may include providers that override ones in additionalProviders.\n additionalProviders &&\n deepForEach(additionalProviders, provider => this.processProvider(provider, def, additionalProviders));\n deepForEach([def], injectorDef => this.processInjectorType(injectorDef, [], dedupStack));\n // Make sure the INJECTOR token provides this injector.\n this.records.set(INJECTOR, makeRecord(undefined, this));\n // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n // any injectable scoped to APP_ROOT_SCOPE.\n const record = this.records.get(INJECTOR_SCOPE);\n this.scope = record != null ? record.value : null;\n // Source name, used for debugging\n this.source = source || (typeof def === 'object' ? null : stringify(def));\n }\n /**\n * Flag indicating that this injector was previously destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n /**\n * Destroy the injector and release references to every instance or provider associated with it.\n *\n * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n * hook was found.\n */\n destroy() {\n this.assertNotDestroyed();\n // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n this._destroyed = true;\n try {\n // Call all the lifecycle hooks.\n this.onDestroy.forEach(service => service.ngOnDestroy());\n }\n finally {\n // Release all references.\n this.records.clear();\n this.onDestroy.clear();\n this.injectorDefTypes.clear();\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n this.assertNotDestroyed();\n // Set the injection context.\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n // Check for the SkipSelf flag.\n if (!(flags & InjectFlags.SkipSelf)) {\n // SkipSelf isn't set, check if the record belongs to this injector.\n let record = this.records.get(token);\n if (record === undefined) {\n // No record, but maybe the token is scoped to this injector. Look for an injectable\n // def with a scope matching this injector.\n const def = couldBeInjectableType(token) && getInjectableDef(token);\n if (def && this.injectableDefInScope(def)) {\n // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n // all along.\n record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n }\n else {\n record = null;\n }\n this.records.set(token, record);\n }\n // If a record was found, get the instance for it and return it.\n if (record != null /* NOT null || undefined */) {\n return this.hydrate(token, record);\n }\n }\n // Select the next injector based on the Self flag - if self is set, the next injector is\n // the NullInjector, otherwise it's the parent.\n const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n // is undefined, the value is null, otherwise it's the notFoundValue.\n notFoundValue = (flags & InjectFlags.Optional) && notFoundValue === THROW_IF_NOT_FOUND ?\n null :\n notFoundValue;\n return nextInjector.get(token, notFoundValue);\n }\n catch (e) {\n if (e.name === 'NullInjectorError') {\n const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];\n path.unshift(stringify(token));\n if (previousInjector) {\n // We still have a parent injector, keep throwing\n throw e;\n }\n else {\n // Format & throw the final error message when we don't have any previous injector\n return catchInjectorError(e, token, 'R3InjectorError', this.source);\n }\n }\n else {\n throw e;\n }\n }\n finally {\n // Lastly, restore the previous injection context.\n setInjectImplementation(previousInjectImplementation);\n setCurrentInjector(previousInjector);\n }\n }\n /** @internal */\n _resolveInjectorDefTypes() {\n this.injectorDefTypes.forEach(defType => this.get(defType));\n }\n toString() {\n const tokens = [], records = this.records;\n records.forEach((v, token) => tokens.push(stringify(token)));\n return `R3Injector[${tokens.join(', ')}]`;\n }\n assertNotDestroyed() {\n if (this._destroyed) {\n throw new Error('Injector has already been destroyed.');\n }\n }\n /**\n * Add an `InjectorType` or `InjectorTypeWithProviders` and all of its transitive providers\n * to this injector.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\n processInjectorType(defOrWrappedDef, parents, dedupStack) {\n defOrWrappedDef = resolveForwardRef(defOrWrappedDef);\n if (!defOrWrappedDef)\n return false;\n // Either the defOrWrappedDef is an InjectorType (with injector def) or an\n // InjectorDefTypeWithProviders (aka ModuleWithProviders). Detecting either is a megamorphic\n // read, so care is taken to only do the read once.\n // First attempt to read the injector def (`ɵinj`).\n let def = getInjectorDef(defOrWrappedDef);\n // If that's not present, then attempt to read ngModule from the InjectorDefTypeWithProviders.\n const ngModule = (def == null) && defOrWrappedDef.ngModule || undefined;\n // Determine the InjectorType. In the case where `defOrWrappedDef` is an `InjectorType`,\n // then this is easy. In the case of an InjectorDefTypeWithProviders, then the definition type\n // is the `ngModule`.\n const defType = (ngModule === undefined) ? defOrWrappedDef : ngModule;\n // Check for circular dependencies.\n if (ngDevMode && parents.indexOf(defType) !== -1) {\n const defName = stringify(defType);\n const path = parents.map(stringify);\n throwCyclicDependencyError(defName, path);\n }\n // Check for multiple imports of the same module\n const isDuplicate = dedupStack.indexOf(defType) !== -1;\n // Finally, if defOrWrappedType was an `InjectorDefTypeWithProviders`, then the actual\n // `InjectorDef` is on its `ngModule`.\n if (ngModule !== undefined) {\n def = getInjectorDef(ngModule);\n }\n // If no definition was found, it might be from exports. Remove it.\n if (def == null) {\n return false;\n }\n // Add providers in the same way that @NgModule resolution did:\n // First, include providers from any imports.\n if (def.imports != null && !isDuplicate) {\n // Before processing defType's imports, add it to the set of parents. This way, if it ends\n // up deeply importing itself, this can be detected.\n ngDevMode && parents.push(defType);\n // Add it to the set of dedups. This way we can detect multiple imports of the same module\n dedupStack.push(defType);\n let importTypesWithProviders;\n try {\n deepForEach(def.imports, imported => {\n if (this.processInjectorType(imported, parents, dedupStack)) {\n if (importTypesWithProviders === undefined)\n importTypesWithProviders = [];\n // If the processed import is an injector type with providers, we store it in the\n // list of import types with providers, so that we can process those afterwards.\n importTypesWithProviders.push(imported);\n }\n });\n }\n finally {\n // Remove it from the parents set when finished.\n ngDevMode && parents.pop();\n }\n // Imports which are declared with providers (TypeWithProviders) need to be processed\n // after all imported modules are processed. This is similar to how View Engine\n // processes/merges module imports in the metadata resolver. See: FW-1349.\n if (importTypesWithProviders !== undefined) {\n for (let i = 0; i < importTypesWithProviders.length; i++) {\n const { ngModule, providers } = importTypesWithProviders[i];\n deepForEach(providers, provider => this.processProvider(provider, ngModule, providers || EMPTY_ARRAY));\n }\n }\n }\n // Track the InjectorType and add a provider for it. It's important that this is done after the\n // def's imports.\n this.injectorDefTypes.add(defType);\n const factory = getFactoryDef(defType) || (() => new defType());\n this.records.set(defType, makeRecord(factory, NOT_YET));\n // Next, include providers listed on the definition itself.\n const defProviders = def.providers;\n if (defProviders != null && !isDuplicate) {\n const injectorType = defOrWrappedDef;\n deepForEach(defProviders, provider => this.processProvider(provider, injectorType, defProviders));\n }\n return (ngModule !== undefined &&\n defOrWrappedDef.providers !== undefined);\n }\n /**\n * Process a `SingleProvider` and add it.\n */\n processProvider(provider, ngModuleType, providers) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);\n // Construct a `Record` for the provider.\n const record = providerToRecord(provider, ngModuleType, providers);\n if (!isTypeProvider(provider) && provider.multi === true) {\n // If the provider indicates that it's a multi-provider, process it specially.\n // First check whether it's been defined already.\n let multiRecord = this.records.get(token);\n if (multiRecord) {\n // It has. Throw a nice error if\n if (ngDevMode && multiRecord.multi === undefined) {\n throwMixedMultiProviderError();\n }\n }\n else {\n multiRecord = makeRecord(undefined, NOT_YET, true);\n multiRecord.factory = () => injectArgs(multiRecord.multi);\n this.records.set(token, multiRecord);\n }\n token = provider;\n multiRecord.multi.push(provider);\n }\n else {\n const existing = this.records.get(token);\n if (ngDevMode && existing && existing.multi !== undefined) {\n throwMixedMultiProviderError();\n }\n }\n this.records.set(token, record);\n }\n hydrate(token, record) {\n if (ngDevMode && record.value === CIRCULAR) {\n throwCyclicDependencyError(stringify(token));\n }\n else if (record.value === NOT_YET) {\n record.value = CIRCULAR;\n record.value = record.factory();\n }\n if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n this.onDestroy.add(record.value);\n }\n return record.value;\n }\n injectableDefInScope(def) {\n if (!def.providedIn) {\n return false;\n }\n const providedIn = resolveForwardRef(def.providedIn);\n if (typeof providedIn === 'string') {\n return providedIn === 'any' || (providedIn === this.scope);\n }\n else {\n return this.injectorDefTypes.has(providedIn);\n }\n }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n const injectableDef = getInjectableDef(token);\n const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n if (factory !== null) {\n return factory;\n }\n // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n // If it's missing that, it's an error.\n if (token instanceof InjectionToken) {\n throw new Error(`Token ${stringify(token)} is missing a ɵprov definition.`);\n }\n // Undecorated types can sometimes be created if they have no constructor arguments.\n if (token instanceof Function) {\n return getUndecoratedInjectableFactory(token);\n }\n // There was no way to resolve a factory for this token.\n throw new Error('unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n const paramLength = token.length;\n if (paramLength > 0) {\n const args = newArray(paramLength, '?');\n throw new Error(`Can't resolve all parameters for ${stringify(token)}: (${args.join(', ')}).`);\n }\n // The constructor function appears to have no parameters.\n // This might be because it inherits from a super-class. In which case, use an injectable\n // def from an ancestor if there is one.\n // Otherwise this really is a simple class with no dependencies, so return a factory that\n // just instantiates the zero-arg constructor.\n const inheritedInjectableDef = getInheritedInjectableDef(token);\n if (inheritedInjectableDef !== null) {\n return () => inheritedInjectableDef.factory(token);\n }\n else {\n return () => new token();\n }\n}\nfunction providerToRecord(provider, ngModuleType, providers) {\n if (isValueProvider(provider)) {\n return makeRecord(undefined, provider.useValue);\n }\n else {\n const factory = providerToFactory(provider, ngModuleType, providers);\n return makeRecord(factory, NOT_YET);\n }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n let factory = undefined;\n if (isTypeProvider(provider)) {\n const unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n }\n else {\n if (isValueProvider(provider)) {\n factory = () => resolveForwardRef(provider.useValue);\n }\n else if (isFactoryProvider(provider)) {\n factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n }\n else if (isExistingProvider(provider)) {\n factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n }\n else {\n const classRef = resolveForwardRef(provider &&\n (provider.useClass || provider.provide));\n if (ngDevMode && !classRef) {\n throwInvalidProviderError(ngModuleType, providers, provider);\n }\n if (hasDeps(provider)) {\n factory = () => new (classRef)(...injectArgs(provider.deps));\n }\n else {\n return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n }\n }\n }\n return factory;\n}\nfunction makeRecord(factory, value, multi = false) {\n return {\n factory: factory,\n value: value,\n multi: multi ? [] : undefined,\n };\n}\nfunction isValueProvider(value) {\n return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n return !!value.useClass;\n}\nfunction hasDeps(value) {\n return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n return value !== null && typeof value === 'object' &&\n typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n return (typeof value === 'function') ||\n (typeof value === 'object' && value instanceof InjectionToken);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/glossary#provider) that associate\n * dependencies of various types with [injection tokens](guide/glossary#di-token).\n *\n * @see [\"DI Providers\"](guide/dependency-injection-providers).\n * @see `StaticProvider`\n *\n * @usageNotes\n *\n * The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nclass Injector {\n static create(options, parent) {\n var _a;\n if (Array.isArray(options)) {\n return createInjector({ name: '' }, parent, options, '');\n }\n else {\n const name = (_a = options.name) !== null && _a !== void 0 ? _a : '';\n return createInjector({ name }, options.parent, options.providers, name);\n }\n }\n}\nInjector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\nInjector.NULL = ( /* @__PURE__ */new NullInjector());\n/** @nocollapse */\nInjector.ɵprov = ɵɵdefineInjectable({\n token: Injector,\n providedIn: 'any',\n factory: () => ɵɵinject(INJECTOR),\n});\n/**\n * @internal\n * @nocollapse\n */\nInjector.__NG_ELEMENT_ID__ = -1 /* Injector */;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div>\n * <child-comp></child-comp>\n * </div>\n * </app-root>\n * ```\n *\n * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `<app-root>` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n * is no component associated with it.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getComponent$1(element) {\n assertDomElement(element);\n const context = getLContext(element);\n if (context === null)\n return null;\n if (context.component === undefined) {\n context.component = getComponentAtNodeIndex(context.nodeIndex, context.lView);\n }\n return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n * inside any component.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getContext(element) {\n assertDomElement(element);\n const context = getLContext(element);\n return context === null ? null : context.lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `<child-comp>` is used in the template of `<app-comp>`\n * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`\n * would return `<app-comp>`.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n * part of a component view.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getOwningComponent(elementOrDir) {\n const context = getLContext(elementOrDir);\n if (context === null)\n return null;\n let lView = context.lView;\n let parent;\n ngDevMode && assertLView(lView);\n while (lView[TVIEW].type === 2 /* Embedded */ && (parent = getLViewParent(lView))) {\n lView = parent;\n }\n return lView[FLAGS] & 512 /* IsRoot */ ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getRootComponents(elementOrDir) {\n return [...getRootContext(elementOrDir).components];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n * retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getInjector(elementOrDir) {\n const context = getLContext(elementOrDir);\n if (context === null)\n return Injector.NULL;\n const tNode = context.lView[TVIEW].data[context.nodeIndex];\n return new NodeInjector(tNode, context.lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n const context = getLContext(element);\n if (context === null)\n return [];\n const lView = context.lView;\n const tView = lView[TVIEW];\n const tNode = tView.data[context.nodeIndex];\n const providerTokens = [];\n const startIndex = tNode.providerIndexes & 1048575 /* ProvidersStartIndexMask */;\n const endIndex = tNode.directiveEnd;\n for (let i = startIndex; i < endIndex; i++) {\n let value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <button my-button></button>\n * <my-comp></my-comp>\n * </app-root>\n * ```\n *\n * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`\n * directive that is associated with the DOM node.\n *\n * Calling `getDirectives` on `<my-comp>` will return an empty array.\n *\n * @param node DOM node for which to get the directives.\n * @returns Array of directives associated with the node.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectives(node) {\n // Skip text nodes because we can't have directives associated with them.\n if (node instanceof Text) {\n return [];\n }\n const context = getLContext(node);\n if (context === null) {\n return [];\n }\n const lView = context.lView;\n const tView = lView[TVIEW];\n const nodeIndex = context.nodeIndex;\n if (!(tView === null || tView === void 0 ? void 0 : tView.data[nodeIndex])) {\n return [];\n }\n if (context.directives === undefined) {\n context.directives = getDirectivesAtNodeIndex(nodeIndex, lView, false);\n }\n // The `directives` in this case are a named array called `LComponentView`. Clone the\n // result so we don't expose an internal data structure in the user's console.\n return context.directives === null ? [] : [...context.directives];\n}\n/**\n * Returns the debug (partial) metadata for a particular directive or component instance.\n * The function accepts an instance of a directive or component and returns the corresponding\n * metadata.\n *\n * @param directiveOrComponentInstance Instance of a directive or component\n * @returns metadata of the passed directive or component\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getDirectiveMetadata$1(directiveOrComponentInstance) {\n const { constructor } = directiveOrComponentInstance;\n if (!constructor) {\n throw new Error('Unable to find the instance constructor');\n }\n // In case a component inherits from a directive, we may have component and directive metadata\n // To ensure we don't get the metadata of the directive, we want to call `getComponentDef` first.\n const componentDef = getComponentDef(constructor);\n if (componentDef) {\n return {\n inputs: componentDef.inputs,\n outputs: componentDef.outputs,\n encapsulation: componentDef.encapsulation,\n changeDetection: componentDef.onPush ? ChangeDetectionStrategy.OnPush :\n ChangeDetectionStrategy.Default\n };\n }\n const directiveDef = getDirectiveDef(constructor);\n if (directiveDef) {\n return { inputs: directiveDef.inputs, outputs: directiveDef.outputs };\n }\n return null;\n}\n/**\n * Retrieve map of local references.\n *\n * The references are retrieved as a map of local reference name to element or directive instance.\n *\n * @param target DOM element, component or directive instance for which to retrieve\n * the local references.\n */\nfunction getLocalRefs(target) {\n const context = getLContext(target);\n if (context === null)\n return {};\n if (context.localRefs === undefined) {\n context.localRefs = discoverLocalRefs(context.lView, context.nodeIndex);\n }\n return context.localRefs || {};\n}\n/**\n * Retrieves the host element of a component or directive instance.\n * The host element is the DOM element that matched the selector of the directive.\n *\n * @param componentOrDirective Component or directive instance for which the host\n * element should be retrieved.\n * @returns Host element of the target.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getHostElement(componentOrDirective) {\n return getLContext(componentOrDirective).native;\n}\n/**\n * Retrieves the rendered text for a given component.\n *\n * This function retrieves the host element of a component and\n * and then returns the `textContent` for that element. This implies\n * that the text returned will include re-projected content of\n * the component as well.\n *\n * @param component The component to return the content text for.\n */\nfunction getRenderedText(component) {\n const hostElement = getHostElement(component);\n return hostElement.textContent || '';\n}\n/**\n * Retrieves a list of event listeners associated with a DOM element. The list does include host\n * listeners, but it does not include event listeners defined outside of the Angular context\n * (e.g. through `addEventListener`).\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * <app-root>\n * <div (click)=\"doSomething()\"></div>\n * </app-root>\n * ```\n *\n * Calling `getListeners` on `<div>` will return an object that looks as follows:\n *\n * ```ts\n * {\n * name: 'click',\n * element: <div>,\n * callback: () => doSomething(),\n * useCapture: false\n * }\n * ```\n *\n * @param element Element for which the DOM listeners should be retrieved.\n * @returns Array of event listeners on the DOM element.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getListeners(element) {\n assertDomElement(element);\n const lContext = getLContext(element);\n if (lContext === null)\n return [];\n const lView = lContext.lView;\n const tView = lView[TVIEW];\n const lCleanup = lView[CLEANUP];\n const tCleanup = tView.cleanup;\n const listeners = [];\n if (tCleanup && lCleanup) {\n for (let i = 0; i < tCleanup.length;) {\n const firstParam = tCleanup[i++];\n const secondParam = tCleanup[i++];\n if (typeof firstParam === 'string') {\n const name = firstParam;\n const listenerElement = unwrapRNode(lView[secondParam]);\n const callback = lCleanup[tCleanup[i++]];\n const useCaptureOrIndx = tCleanup[i++];\n // if useCaptureOrIndx is boolean then report it as is.\n // if useCaptureOrIndx is positive number then it in unsubscribe method\n // if useCaptureOrIndx is negative number then it is a Subscription\n const type = (typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0) ? 'dom' : 'output';\n const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;\n if (element == listenerElement) {\n listeners.push({ element, name, callback, useCapture, type });\n }\n }\n }\n }\n listeners.sort(sortListeners);\n return listeners;\n}\nfunction sortListeners(a, b) {\n if (a.name == b.name)\n return 0;\n return a.name < b.name ? -1 : 1;\n}\n/**\n * This function should not exist because it is megamorphic and only mostly correct.\n *\n * See call site for more info.\n */\nfunction isDirectiveDefHack(obj) {\n return obj.type !== undefined && obj.template !== undefined && obj.declaredInputs !== undefined;\n}\n/**\n * Returns the attached `DebugNode` instance for an element in the DOM.\n *\n * @param element DOM element which is owned by an existing component's view.\n */\nfunction getDebugNode$1(element) {\n if (ngDevMode && !(element instanceof Node)) {\n throw new Error('Expecting instance of DOM Element');\n }\n const lContext = getLContext(element);\n if (lContext === null) {\n return null;\n }\n const lView = lContext.lView;\n const nodeIndex = lContext.nodeIndex;\n if (nodeIndex !== -1) {\n const valueInLView = lView[nodeIndex];\n // this means that value in the lView is a component with its own\n // data. In this situation the TNode is not accessed at the same spot.\n const tNode = isLView(valueInLView) ? valueInLView[T_HOST] : getTNode(lView[TVIEW], nodeIndex);\n ngDevMode &&\n assertEqual(tNode.index, nodeIndex, 'Expecting that TNode at index is same as index');\n return buildDebugNode(tNode, lView);\n }\n return null;\n}\n/**\n * Retrieve the component `LView` from component/element.\n *\n * NOTE: `LView` is a private and should not be leaked outside.\n * Don't export this method to `ng.*` on window.\n *\n * @param target DOM element or component instance for which to retrieve the LView.\n */\nfunction getComponentLView(target) {\n const lContext = getLContext(target);\n const nodeIndx = lContext.nodeIndex;\n const lView = lContext.lView;\n const componentLView = lView[nodeIndx];\n ngDevMode && assertLView(componentLView);\n return componentLView;\n}\n/** Asserts that a value is a DOM Element. */\nfunction assertDomElement(value) {\n if (typeof Element !== 'undefined' && !(value instanceof Element)) {\n throw new Error('Expecting instance of DOM Element');\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Marks a component for check (in case of OnPush components) and synchronously\n * performs change detection on the application this component belongs to.\n *\n * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction applyChanges(component) {\n markDirty(component);\n getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This file introduces series of globally accessible debug tools\n * to allow for the Angular debugging story to function.\n *\n * To see this in action run the following command:\n *\n * bazel run //packages/core/test/bundling/todo:devserver\n *\n * Then load `localhost:5432` and start using the console tools.\n */\n/**\n * This value reflects the property on the window where the dev\n * tools are patched (window.ng).\n * */\nconst GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';\nlet _published = false;\n/**\n * Publishes a collection of default debug tools onto`window.ng`.\n *\n * These functions are available globally when Angular is in development\n * mode and are automatically stripped away from prod mode is on.\n */\nfunction publishDefaultGlobalUtils$1() {\n if (!_published) {\n _published = true;\n /**\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be\n * removed completely.\n */\n publishGlobalUtil('ɵsetProfiler', setProfiler);\n publishGlobalUtil('getDirectiveMetadata', getDirectiveMetadata$1);\n publishGlobalUtil('getComponent', getComponent$1);\n publishGlobalUtil('getContext', getContext);\n publishGlobalUtil('getListeners', getListeners);\n publishGlobalUtil('getOwningComponent', getOwningComponent);\n publishGlobalUtil('getHostElement', getHostElement);\n publishGlobalUtil('getInjector', getInjector);\n publishGlobalUtil('getRootComponents', getRootComponents);\n publishGlobalUtil('getDirectives', getDirectives);\n publishGlobalUtil('applyChanges', applyChanges);\n }\n}\n/**\n * Publishes the given function to `window.ng` so that it can be\n * used from the browser console when an application is not in production.\n */\nfunction publishGlobalUtil(name, fn) {\n if (typeof COMPILED === 'undefined' || !COMPILED) {\n // Note: we can't export `ng` when using closure enhanced optimization as:\n // - closure declares globals itself for minified names, which sometimes clobber our `ng` global\n // - we can't declare a closure extern as the namespace `ng` is already used within Google\n // for typings for AngularJS (via `goog.provide('ng....')`).\n const w = _global;\n ngDevMode && assertDefined(fn, 'function not defined');\n if (w) {\n let container = w[GLOBAL_PUBLISH_EXPANDO_KEY];\n if (!container) {\n container = w[GLOBAL_PUBLISH_EXPANDO_KEY] = {};\n }\n container[name] = fn;\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO: A hack to not pull in the NullInjector from @angular/core.\nconst NULL_INJECTOR = {\n get: (token, notFoundValue) => {\n throwProviderNotFoundError(token, 'NullInjector');\n }\n};\n/**\n * Bootstraps a Component into an existing host element and returns an instance\n * of the component.\n *\n * Use this function to bootstrap a component into the DOM tree. Each invocation\n * of this function will create a separate tree of components, injectors and\n * change detection cycles and lifetimes. To dynamically insert a new component\n * into an existing tree such that it shares the same injection, change detection\n * and object lifetime, use {@link ViewContainer#createComponent}.\n *\n * @param componentType Component to bootstrap\n * @param options Optional parameters which control bootstrapping\n */\nfunction renderComponent(componentType /* Type as workaround for: Microsoft/TypeScript/issues/4881 */, opts = {}) {\n ngDevMode && publishDefaultGlobalUtils$1();\n ngDevMode && assertComponentType(componentType);\n const rendererFactory = opts.rendererFactory || domRendererFactory3;\n const sanitizer = opts.sanitizer || null;\n const componentDef = getComponentDef(componentType);\n if (componentDef.type != componentType)\n componentDef.type = componentType;\n // The first index of the first selector is the tag name.\n const componentTag = componentDef.selectors[0][0];\n const hostRenderer = rendererFactory.createRenderer(null, null);\n const hostRNode = locateHostElement(hostRenderer, opts.host || componentTag, componentDef.encapsulation);\n const rootFlags = componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :\n 16 /* CheckAlways */ | 512 /* IsRoot */;\n const rootContext = createRootContext(opts.scheduler, opts.playerHandler);\n const renderer = rendererFactory.createRenderer(hostRNode, componentDef);\n const rootTView = createTView(0 /* Root */, null, null, 1, 0, null, null, null, null, null);\n const rootView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, renderer, null, opts.injector || null);\n enterView(rootView);\n let component;\n try {\n if (rendererFactory.begin)\n rendererFactory.begin();\n const componentView = createRootComponentView(hostRNode, componentDef, rootView, rendererFactory, renderer, sanitizer);\n component = createRootComponent(componentView, componentDef, rootView, rootContext, opts.hostFeatures || null);\n // create mode pass\n renderView(rootTView, rootView, null);\n // update mode pass\n refreshView(rootTView, rootView, null, null);\n }\n finally {\n leaveView();\n if (rendererFactory.end)\n rendererFactory.end();\n }\n return component;\n}\n/**\n * Creates the root component view and the root component node.\n *\n * @param rNode Render host element.\n * @param def ComponentDef\n * @param rootView The parent view where the host node is stored\n * @param rendererFactory Factory to be used for creating child renderers.\n * @param hostRenderer The current renderer\n * @param sanitizer The sanitizer, if provided\n *\n * @returns Component view created\n */\nfunction createRootComponentView(rNode, def, rootView, rendererFactory, hostRenderer, sanitizer) {\n const tView = rootView[TVIEW];\n const index = HEADER_OFFSET;\n ngDevMode && assertIndexInRange(rootView, index);\n rootView[index] = rNode;\n // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at\n // the same time we want to communicate the debug `TNode` that this is a special `TNode`\n // representing a host element.\n const tNode = getOrCreateTNode(tView, index, 2 /* Element */, '#host', null);\n const mergedAttrs = tNode.mergedAttrs = def.hostAttrs;\n if (mergedAttrs !== null) {\n computeStaticStyling(tNode, mergedAttrs, true);\n if (rNode !== null) {\n setUpAttributes(hostRenderer, rNode, mergedAttrs);\n if (tNode.classes !== null) {\n writeDirectClass(hostRenderer, rNode, tNode.classes);\n }\n if (tNode.styles !== null) {\n writeDirectStyle(hostRenderer, rNode, tNode.styles);\n }\n }\n }\n const viewRenderer = rendererFactory.createRenderer(rNode, def);\n const componentView = createLView(rootView, getOrCreateTComponentView(def), null, def.onPush ? 64 /* Dirty */ : 16 /* CheckAlways */, rootView[index], tNode, rendererFactory, viewRenderer, sanitizer || null, null);\n if (tView.firstCreatePass) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);\n markAsComponentHost(tView, tNode);\n initTNodeFlags(tNode, rootView.length, 1);\n }\n addToViewTree(rootView, componentView);\n // Store component view at node index, with node as the HOST\n return rootView[index] = componentView;\n}\n/**\n * Creates a root component and sets it up with features and host bindings. Shared by\n * renderComponent() and ViewContainerRef.createComponent().\n */\nfunction createRootComponent(componentView, componentDef, rootLView, rootContext, hostFeatures) {\n const tView = rootLView[TVIEW];\n // Create directive instance with factory() and store at next index in viewData\n const component = instantiateRootComponent(tView, rootLView, componentDef);\n rootContext.components.push(component);\n componentView[CONTEXT] = component;\n hostFeatures && hostFeatures.forEach((feature) => feature(component, componentDef));\n // We want to generate an empty QueryList for root content queries for backwards\n // compatibility with ViewEngine.\n if (componentDef.contentQueries) {\n const tNode = getCurrentTNode();\n ngDevMode && assertDefined(tNode, 'TNode expected');\n componentDef.contentQueries(1 /* Create */, component, tNode.directiveStart);\n }\n const rootTNode = getCurrentTNode();\n ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');\n if (tView.firstCreatePass &&\n (componentDef.hostBindings !== null || componentDef.hostAttrs !== null)) {\n setSelectedIndex(rootTNode.index);\n const rootTView = rootLView[TVIEW];\n registerHostBindingOpCodes(rootTView, rootTNode, rootLView, rootTNode.directiveStart, rootTNode.directiveEnd, componentDef);\n invokeHostBindingsInCreationMode(componentDef, component);\n }\n return component;\n}\nfunction createRootContext(scheduler, playerHandler) {\n return {\n components: [],\n scheduler: scheduler || defaultScheduler,\n clean: CLEAN_PROMISE,\n playerHandler: playerHandler || null,\n flags: 0 /* Empty */\n };\n}\n/**\n * Used to enable lifecycle hooks on the root component.\n *\n * Include this feature when calling `renderComponent` if the root component\n * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't\n * be called properly.\n *\n * Example:\n *\n * ```\n * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});\n * ```\n */\nfunction LifecycleHooksFeature(component, def) {\n const lView = readPatchedLView(component);\n ngDevMode && assertDefined(lView, 'LView is required');\n const tView = lView[TVIEW];\n const tNode = getCurrentTNode();\n ngDevMode && assertDefined(tNode, 'TNode is required');\n registerPostOrderHooks(tView, tNode);\n}\n/**\n * Wait on component until it is rendered.\n *\n * This function returns a `Promise` which is resolved when the component's\n * change detection is executed. This is determined by finding the scheduler\n * associated with the `component`'s render tree and waiting until the scheduler\n * flushes. If nothing is scheduled, the function returns a resolved promise.\n *\n * Example:\n * ```\n * await whenRendered(myComponent);\n * ```\n *\n * @param component Component to wait upon\n * @returns Promise which resolves when the component is rendered.\n */\nfunction whenRendered(component) {\n return getRootContext(component).clean;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getSuperType(type) {\n return Object.getPrototypeOf(type.prototype).constructor;\n}\n/**\n * Merges the definition from a super class to a sub class.\n * @param definition The definition that is a SubClass of another directive of component\n *\n * @codeGenApi\n */\nfunction ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}\n/**\n * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.\n *\n * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing\n * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child\n * type.\n */\nfunction mergeHostAttrsAcrossInheritance(inheritanceChain) {\n let hostVars = 0;\n let hostAttrs = null;\n // We process the inheritance order from the base to the leaves here.\n for (let i = inheritanceChain.length - 1; i >= 0; i--) {\n const def = inheritanceChain[i];\n // For each `hostVars`, we need to add the superclass amount.\n def.hostVars = (hostVars += def.hostVars);\n // for each `hostAttrs` we need to merge it with superclass.\n def.hostAttrs =\n mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));\n }\n}\nfunction maybeUnwrapEmpty(value) {\n if (value === EMPTY_OBJ) {\n return {};\n }\n else if (value === EMPTY_ARRAY) {\n return [];\n }\n else {\n return value;\n }\n}\nfunction inheritViewQuery(definition, superViewQuery) {\n const prevViewQuery = definition.viewQuery;\n if (prevViewQuery) {\n definition.viewQuery = (rf, ctx) => {\n superViewQuery(rf, ctx);\n prevViewQuery(rf, ctx);\n };\n }\n else {\n definition.viewQuery = superViewQuery;\n }\n}\nfunction inheritContentQueries(definition, superContentQueries) {\n const prevContentQueries = definition.contentQueries;\n if (prevContentQueries) {\n definition.contentQueries = (rf, ctx, directiveIndex) => {\n superContentQueries(rf, ctx, directiveIndex);\n prevContentQueries(rf, ctx, directiveIndex);\n };\n }\n else {\n definition.contentQueries = superContentQueries;\n }\n}\nfunction inheritHostBindings(definition, superHostBindings) {\n const prevHostBindings = definition.hostBindings;\n if (prevHostBindings) {\n definition.hostBindings = (rf, ctx) => {\n superHostBindings(rf, ctx);\n prevHostBindings(rf, ctx);\n };\n }\n else {\n definition.hostBindings = superHostBindings;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Fields which exist on either directive or component definitions, and need to be copied from\n * parent to child classes by the `ɵɵCopyDefinitionFeature`.\n */\nconst COPY_DIRECTIVE_FIELDS = [\n // The child class should use the providers of its parent.\n 'providersResolver',\n // Not listed here are any fields which are handled by the `ɵɵInheritDefinitionFeature`, such\n // as inputs, outputs, and host binding functions.\n];\n/**\n * Fields which exist only on component definitions, and need to be copied from parent to child\n * classes by the `ɵɵCopyDefinitionFeature`.\n *\n * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,\n * since those should go in `COPY_DIRECTIVE_FIELDS` above.\n */\nconst COPY_COMPONENT_FIELDS = [\n // The child class should use the template function of its parent, including all template\n // semantics.\n 'template',\n 'decls',\n 'consts',\n 'vars',\n 'onPush',\n 'ngContentSelectors',\n // The child class should use the CSS styles of its parent, including all styling semantics.\n 'styles',\n 'encapsulation',\n // The child class should be checked by the runtime in the same way as its parent.\n 'schemas',\n];\n/**\n * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a\n * definition.\n *\n * This exists primarily to support ngcc migration of an existing View Engine pattern, where an\n * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it\n * generates a skeleton definition on the child class, and applies this feature.\n *\n * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,\n * including things like the component template function.\n *\n * @param definition The definition of a child class which inherits from a parent class with its\n * own definition.\n *\n * @codeGenApi\n */\nfunction ɵɵCopyDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp;\n }\n else {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n // Needed because `definition` fields are readonly.\n const defAny = definition;\n // Copy over any fields that apply to either directives or components.\n for (const field of COPY_DIRECTIVE_FIELDS) {\n defAny[field] = superDef[field];\n }\n if (isComponentDef(superDef)) {\n // Copy over any component-specific fields.\n for (const field of COPY_COMPONENT_FIELDS) {\n defAny[field] = superDef[field];\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _symbolIterator = null;\nfunction getSymbolIterator() {\n if (!_symbolIterator) {\n const Symbol = _global['Symbol'];\n if (Symbol && Symbol.iterator) {\n _symbolIterator = Symbol.iterator;\n }\n else {\n // es6-shim specific logic\n const keys = Object.getOwnPropertyNames(Map.prototype);\n for (let i = 0; i < keys.length; ++i) {\n const key = keys[i];\n if (key !== 'entries' && key !== 'size' &&\n Map.prototype[key] === Map.prototype['entries']) {\n _symbolIterator = key;\n }\n }\n }\n }\n return _symbolIterator;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction devModeEqual(a, b) {\n const isListLikeIterableA = isListLikeIterable(a);\n const isListLikeIterableB = isListLikeIterable(b);\n if (isListLikeIterableA && isListLikeIterableB) {\n return areIterablesEqual(a, b, devModeEqual);\n }\n else {\n const isAObject = a && (typeof a === 'object' || typeof a === 'function');\n const isBObject = b && (typeof b === 'object' || typeof b === 'function');\n if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {\n return true;\n }\n else {\n return Object.is(a, b);\n }\n }\n}\nfunction isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return Array.isArray(obj) ||\n (!(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]\n getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n}\nfunction areIterablesEqual(a, b, comparator) {\n const iterator1 = a[getSymbolIterator()]();\n const iterator2 = b[getSymbolIterator()]();\n while (true) {\n const item1 = iterator1.next();\n const item2 = iterator2.next();\n if (item1.done && item2.done)\n return true;\n if (item1.done || item2.done)\n return false;\n if (!comparator(item1.value, item2.value))\n return false;\n }\n}\nfunction iterateListLike(obj, fn) {\n if (Array.isArray(obj)) {\n for (let i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n else {\n const iterator = obj[getSymbolIterator()]();\n let item;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n}\nfunction isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(misko): consider inlining\n/** Updates binding and returns the value. */\nfunction updateBinding(lView, bindingIndex, value) {\n return lView[bindingIndex] = value;\n}\n/** Gets the current binding value. */\nfunction getBinding(lView, bindingIndex) {\n ngDevMode && assertIndexInRange(lView, bindingIndex);\n ngDevMode &&\n assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');\n return lView[bindingIndex];\n}\n/**\n * Updates binding if changed, then returns whether it was updated.\n *\n * This function also checks the `CheckNoChangesMode` and throws if changes are made.\n * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE\n * behavior.\n *\n * @param lView current `LView`\n * @param bindingIndex The binding in the `LView` to check\n * @param value New value to check against `lView[bindingIndex]`\n * @returns `true` if the bindings has changed. (Throws if binding has changed during\n * `CheckNoChangesMode`)\n */\nfunction bindingUpdated(lView, bindingIndex, value) {\n ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');\n ngDevMode &&\n assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);\n const oldValue = lView[bindingIndex];\n if (Object.is(oldValue, value)) {\n return false;\n }\n else {\n if (ngDevMode && isInCheckNoChangesMode()) {\n // View engine didn't report undefined values as changed on the first checkNoChanges pass\n // (before the change detection was run).\n const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;\n if (!devModeEqual(oldValueToCompare, value)) {\n const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);\n throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName);\n }\n // There was a change, but the `devModeEqual` decided that the change is exempt from an error.\n // For this reason we exit as if no change. The early exit is needed to prevent the changed\n // value to be written into `LView` (If we would write the new value that we would not see it\n // as change on next CD.)\n return false;\n }\n lView[bindingIndex] = value;\n return true;\n }\n}\n/** Updates 2 bindings if changed, then returns whether either was updated. */\nfunction bindingUpdated2(lView, bindingIndex, exp1, exp2) {\n const different = bindingUpdated(lView, bindingIndex, exp1);\n return bindingUpdated(lView, bindingIndex + 1, exp2) || different;\n}\n/** Updates 3 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated(lView, bindingIndex + 2, exp3) || different;\n}\n/** Updates 4 bindings if changed, then returns whether any was updated. */\nfunction bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {\n const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);\n return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Updates the value of or removes a bound attribute on an Element.\n *\n * Used in the case of `[attr.title]=\"value\"`\n *\n * @param name name The name of the attribute.\n * @param value value The attribute is removed when value is `null` or `undefined`.\n * Otherwise the attribute value is set to the stringified value.\n * @param sanitizer An optional function used to sanitize the value.\n * @param namespace Optional namespace to use when setting the attribute.\n *\n * @codeGenApi\n */\nfunction ɵɵattribute(name, value, sanitizer, namespace) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);\n }\n return ɵɵattribute;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Create interpolation bindings with a variable number of expressions.\n *\n * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.\n * Those are faster because there is no need to create an array of expressions and iterate over it.\n *\n * `values`:\n * - has static text at even indexes,\n * - has evaluated expressions at odd indexes.\n *\n * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.\n */\nfunction interpolationV(lView, values) {\n ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');\n ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');\n let isBindingUpdated = false;\n let bindingIndex = getBindingIndex();\n for (let i = 1; i < values.length; i += 2) {\n // Check if bindings (odd indexes) have changed\n isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;\n }\n setBindingIndex(bindingIndex);\n if (!isBindingUpdated) {\n return NO_CHANGE;\n }\n // Build the updated content\n let content = values[0];\n for (let i = 1; i < values.length; i += 2) {\n content += renderStringify(values[i]) + values[i + 1];\n }\n return content;\n}\n/**\n * Creates an interpolation binding with 1 expression.\n *\n * @param prefix static value used for concatenation only.\n * @param v0 value checked for change.\n * @param suffix static value used for concatenation only.\n */\nfunction interpolation1(lView, prefix, v0, suffix) {\n const different = bindingUpdated(lView, nextBindingIndex(), v0);\n return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 2 expressions.\n */\nfunction interpolation2(lView, prefix, v0, i0, v1, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated2(lView, bindingIndex, v0, v1);\n incrementBindingIndex(2);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 3 expressions.\n */\nfunction interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);\n incrementBindingIndex(3);\n return different ?\n prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix :\n NO_CHANGE;\n}\n/**\n * Create an interpolation binding with 4 expressions.\n */\nfunction interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const bindingIndex = getBindingIndex();\n const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n incrementBindingIndex(4);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 5 expressions.\n */\nfunction interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated(lView, bindingIndex + 4, v4) || different;\n incrementBindingIndex(5);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 6 expressions.\n */\nfunction interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;\n incrementBindingIndex(6);\n return different ?\n prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 +\n renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 7 expressions.\n */\nfunction interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;\n incrementBindingIndex(7);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n renderStringify(v5) + i5 + renderStringify(v6) + suffix :\n NO_CHANGE;\n}\n/**\n * Creates an interpolation binding with 8 expressions.\n */\nfunction interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const bindingIndex = getBindingIndex();\n let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);\n different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;\n incrementBindingIndex(8);\n return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +\n renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +\n renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix :\n NO_CHANGE;\n}\n\n/**\n *\n * Update an interpolated attribute on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵattributeInterpolate1;\n}\n/**\n *\n * Update an interpolated attribute on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵattributeInterpolate2;\n}\n/**\n *\n * Update an interpolated attribute on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵattributeInterpolate3;\n}\n/**\n *\n * Update an interpolated attribute on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵattributeInterpolate4;\n}\n/**\n *\n * Update an interpolated attribute on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵattributeInterpolate5;\n}\n/**\n *\n * Update an interpolated attribute on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵattributeInterpolate6;\n}\n/**\n *\n * Update an interpolated attribute on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵattributeInterpolate7;\n}\n/**\n *\n * Update an interpolated attribute on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div attr.title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param attrName The name of the attribute to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);\n ngDevMode &&\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵattributeInterpolate8;\n}\n/**\n * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵattributeInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param attrName The name of the attribute to update.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n const tNode = getSelectedTNode();\n elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵattributeInterpolateV;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n // TODO(pk): refactor getOrCreateTNode to have the \"create\" only version\n const tNode = getOrCreateTNode(tView, index, 4 /* Container */, tagName || null, getConstant(tViewConsts, attrsIndex));\n resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n registerPostOrderHooks(tView, tNode);\n const embeddedTView = tNode.tViews = createTView(2 /* Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);\n if (tView.queries !== null) {\n tView.queries.template(tView, tNode);\n embeddedTView.queries = tView.queries.embeddedTView(tNode);\n }\n return tNode;\n}\n/**\n * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.\n *\n * <ng-template #foo>\n * <div></div>\n * </ng-template>\n *\n * @param index The index of the container in the data array\n * @param templateFn Inline template\n * @param decls The number of nodes, local refs, and pipes for this template\n * @param vars The number of bindings for this template\n * @param tagName The name of the container element, if applicable\n * @param attrsIndex Index of template attributes in the `consts` array.\n * @param localRefs Index of the local references in the `consts` array.\n * @param localRefExtractor A function which extracts local-refs values from the template.\n * Defaults to the current element associated with the local-ref.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n setCurrentTNode(tNode, false);\n const comment = lView[RENDERER].createComment(ngDevMode ? 'container' : '');\n appendChild(tView, lView, comment, tNode);\n attachPatchData(comment, lView);\n addToViewTree(lView, lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode));\n if (isDirectiveHost(tNode)) {\n createDirectivesInstances(tView, lView, tNode);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(lView, tNode, localRefExtractor);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/** Store a value in the `data` at a given `index`. */\nfunction store(tView, lView, index, value) {\n // We don't store any static data for local variables, so the first time\n // we see the template, we should store as null to avoid a sparse array\n if (index >= tView.data.length) {\n tView.data[index] = null;\n tView.blueprint[index] = null;\n }\n lView[index] = value;\n}\n/**\n * Retrieves a local reference from the current contextViewData.\n *\n * If the reference to retrieve is in a parent view, this instruction is used in conjunction\n * with a nextContext() call, which walks up the tree and updates the contextViewData instance.\n *\n * @param index The index of the local ref in contextViewData.\n *\n * @codeGenApi\n */\nfunction ɵɵreference(index) {\n const contextLView = getContextLView();\n return load(contextLView, HEADER_OFFSET + index);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'resolveForwardRef': resolveForwardRef,\n};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n let ngInjectableDef = null;\n let ngFactoryDef = null;\n // if NG_PROV_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_PROV_DEF)) {\n Object.defineProperty(type, NG_PROV_DEF, {\n get: () => {\n if (ngInjectableDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'injectable', type });\n ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n }\n return ngInjectableDef;\n },\n });\n }\n // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'injectable', type });\n ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n name: type.name,\n type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Injectable\n });\n }\n return ngFactoryDef;\n },\n // Leave this configurable so that the factories from directives or pipes can take precedence.\n configurable: true\n });\n }\n}\nconst USE_VALUE = getClosureSafeProperty({ provide: String, useValue: getClosureSafeProperty });\nfunction isUseClassProvider(meta) {\n return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n const meta = srcMeta || { providedIn: null };\n const compilerMeta = {\n name: type.name,\n type: type,\n typeArgumentCount: 0,\n providedIn: meta.providedIn,\n };\n if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n compilerMeta.deps = convertDependencies(meta.deps);\n }\n // Check to see if the user explicitly provided a `useXxxx` property.\n if (isUseClassProvider(meta)) {\n compilerMeta.useClass = meta.useClass;\n }\n else if (isUseValueProvider(meta)) {\n compilerMeta.useValue = meta.useValue;\n }\n else if (isUseFactoryProvider(meta)) {\n compilerMeta.useFactory = meta.useFactory;\n }\n else if (isUseExistingProvider(meta)) {\n compilerMeta.useExisting = meta.useExisting;\n }\n return compilerMeta;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction findFirstClosedCycle(keys) {\n const res = [];\n for (let i = 0; i < keys.length; ++i) {\n if (res.indexOf(keys[i]) > -1) {\n res.push(keys[i]);\n return res;\n }\n res.push(keys[i]);\n }\n return res;\n}\nfunction constructResolvingPath(keys) {\n if (keys.length > 1) {\n const reversed = findFirstClosedCycle(keys.slice().reverse());\n const tokenStrs = reversed.map(k => stringify(k.token));\n return ' (' + tokenStrs.join(' -> ') + ')';\n }\n return '';\n}\nfunction injectionError(injector, key, constructResolvingMessage, originalError) {\n const keys = [key];\n const errMsg = constructResolvingMessage(keys);\n const error = (originalError ? wrappedError(errMsg, originalError) : Error(errMsg));\n error.addKey = addKey;\n error.keys = keys;\n error.injectors = [injector];\n error.constructResolvingMessage = constructResolvingMessage;\n error[ERROR_ORIGINAL_ERROR] = originalError;\n return error;\n}\nfunction addKey(injector, key) {\n this.injectors.push(injector);\n this.keys.push(key);\n // Note: This updated message won't be reflected in the `.stack` property\n this.message = this.constructResolvingMessage(this.keys);\n}\n/**\n * Thrown when trying to retrieve a dependency by key from {@link Injector}, but the\n * {@link Injector} does not have a {@link Provider} for the given key.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n * constructor(b:B) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n */\nfunction noProviderError(injector, key) {\n return injectionError(injector, key, function (keys) {\n const first = stringify(keys[0].token);\n return `No provider for ${first}!${constructResolvingPath(keys)}`;\n });\n}\n/**\n * Thrown when dependencies form a cycle.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * var injector = Injector.resolveAndCreate([\n * {provide: \"one\", useFactory: (two) => \"two\", deps: [[new Inject(\"two\")]]},\n * {provide: \"two\", useFactory: (one) => \"one\", deps: [[new Inject(\"one\")]]}\n * ]);\n *\n * expect(() => injector.get(\"one\")).toThrowError();\n * ```\n *\n * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.\n */\nfunction cyclicDependencyError(injector, key) {\n return injectionError(injector, key, function (keys) {\n return `Cannot instantiate cyclic dependency!${constructResolvingPath(keys)}`;\n });\n}\n/**\n * Thrown when a constructing type returns with an Error.\n *\n * The `InstantiationError` class contains the original error plus the dependency graph which caused\n * this object to be instantiated.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n * constructor() {\n * throw new Error('message');\n * }\n * }\n *\n * var injector = Injector.resolveAndCreate([A]);\n\n * try {\n * injector.get(A);\n * } catch (e) {\n * expect(e instanceof InstantiationError).toBe(true);\n * expect(e.originalException.message).toEqual(\"message\");\n * expect(e.originalStack).toBeDefined();\n * }\n * ```\n */\nfunction instantiationError(injector, originalException, originalStack, key) {\n return injectionError(injector, key, function (keys) {\n const first = stringify(keys[0].token);\n return `${originalException.message}: Error during instantiation of ${first}!${constructResolvingPath(keys)}.`;\n }, originalException);\n}\n/**\n * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}\n * creation.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\"not a type\"])).toThrowError();\n * ```\n */\nfunction invalidProviderError(provider) {\n return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${provider}`);\n}\n/**\n * Thrown when the class has no annotation information.\n *\n * Lack of annotation information prevents the {@link Injector} from determining which dependencies\n * need to be injected into the constructor.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {\n * constructor(b) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n *\n * This error is also thrown when the class not marked with {@link Injectable} has parameter types.\n *\n * ```typescript\n * class B {}\n *\n * class A {\n * constructor(b:B) {} // no information about the parameter types of A is available at runtime.\n * }\n *\n * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();\n * ```\n *\n */\nfunction noAnnotationError(typeOrFunc, params) {\n const signature = [];\n for (let i = 0, ii = params.length; i < ii; i++) {\n const parameter = params[i];\n if (!parameter || parameter.length == 0) {\n signature.push('?');\n }\n else {\n signature.push(parameter.map(stringify).join(' '));\n }\n }\n return Error('Cannot resolve all parameters for \\'' + stringify(typeOrFunc) + '\\'(' +\n signature.join(', ') + '). ' +\n 'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \\'' +\n stringify(typeOrFunc) + '\\' is decorated with Injectable.');\n}\n/**\n * Thrown when getting an object by index.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * class A {}\n *\n * var injector = Injector.resolveAndCreate([A]);\n *\n * expect(() => injector.getAt(100)).toThrowError();\n * ```\n *\n */\nfunction outOfBoundsError(index) {\n return Error(`Index ${index} is out-of-bounds.`);\n}\n// TODO: add a working example after alpha38 is released\n/**\n * Thrown when a multi provider and a regular provider are bound to the same token.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\n * { provide: \"Strings\", useValue: \"string1\", multi: true},\n * { provide: \"Strings\", useValue: \"string2\", multi: false}\n * ])).toThrowError();\n * ```\n */\nfunction mixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\n return Error(`Cannot mix multi providers and regular providers, got: ${provider1} ${provider2}`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A unique object used for retrieving items from the {@link ReflectiveInjector}.\n *\n * Keys have:\n * - a system-wide unique `id`.\n * - a `token`.\n *\n * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows\n * the\n * injector to store created objects in a more efficient way.\n *\n * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when\n * resolving\n * providers.\n *\n * @deprecated No replacement\n * @publicApi\n */\nclass ReflectiveKey {\n /**\n * Private\n */\n constructor(token, id) {\n this.token = token;\n this.id = id;\n if (!token) {\n throw new Error('Token must be defined!');\n }\n this.displayName = stringify(this.token);\n }\n /**\n * Retrieves a `Key` for a token.\n */\n static get(token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n }\n /**\n * @returns the number of keys registered in the system.\n */\n static get numberOfKeys() {\n return _globalKeyRegistry.numberOfKeys;\n }\n}\nclass KeyRegistry {\n constructor() {\n this._allKeys = new Map();\n }\n get(token) {\n if (token instanceof ReflectiveKey)\n return token;\n if (this._allKeys.has(token)) {\n return this._allKeys.get(token);\n }\n const newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);\n this._allKeys.set(token, newKey);\n return newKey;\n }\n get numberOfKeys() {\n return this._allKeys.size;\n }\n}\nconst _globalKeyRegistry = new KeyRegistry();\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Provides access to reflection data about symbols. Used internally by Angular\n * to power dependency injection and compilation.\n */\nclass Reflector {\n constructor(reflectionCapabilities) {\n this.reflectionCapabilities = reflectionCapabilities;\n }\n updateCapabilities(caps) {\n this.reflectionCapabilities = caps;\n }\n factory(type) {\n return this.reflectionCapabilities.factory(type);\n }\n parameters(typeOrFunc) {\n return this.reflectionCapabilities.parameters(typeOrFunc);\n }\n annotations(typeOrFunc) {\n return this.reflectionCapabilities.annotations(typeOrFunc);\n }\n propMetadata(typeOrFunc) {\n return this.reflectionCapabilities.propMetadata(typeOrFunc);\n }\n hasLifecycleHook(type, lcProperty) {\n return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);\n }\n getter(name) {\n return this.reflectionCapabilities.getter(name);\n }\n setter(name) {\n return this.reflectionCapabilities.setter(name);\n }\n method(name) {\n return this.reflectionCapabilities.method(name);\n }\n importUri(type) {\n return this.reflectionCapabilities.importUri(type);\n }\n resourceUri(type) {\n return this.reflectionCapabilities.resourceUri(type);\n }\n resolveIdentifier(name, moduleUrl, members, runtime) {\n return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, members, runtime);\n }\n resolveEnum(identifier, name) {\n return this.reflectionCapabilities.resolveEnum(identifier, name);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\nconst reflector = new Reflector(new ReflectionCapabilities());\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * `Dependency` is used by the framework to extend DI.\n * This is internal to Angular and should not be used directly.\n */\nclass ReflectiveDependency {\n constructor(key, optional, visibility) {\n this.key = key;\n this.optional = optional;\n this.visibility = visibility;\n }\n static fromKey(key) {\n return new ReflectiveDependency(key, false, null);\n }\n}\nconst _EMPTY_LIST = [];\nclass ResolvedReflectiveProvider_ {\n constructor(key, resolvedFactories, multiProvider) {\n this.key = key;\n this.resolvedFactories = resolvedFactories;\n this.multiProvider = multiProvider;\n this.resolvedFactory = this.resolvedFactories[0];\n }\n}\n/**\n * An internal resolved representation of a factory function created by resolving `Provider`.\n * @publicApi\n */\nclass ResolvedReflectiveFactory {\n constructor(\n /**\n * Factory function which can return an instance of an object represented by a key.\n */\n factory, \n /**\n * Arguments (dependencies) to the `factory` function.\n */\n dependencies) {\n this.factory = factory;\n this.dependencies = dependencies;\n }\n}\n/**\n * Resolve a single provider.\n */\nfunction resolveReflectiveFactory(provider) {\n let factoryFn;\n let resolvedDeps;\n if (provider.useClass) {\n const useClass = resolveForwardRef(provider.useClass);\n factoryFn = reflector.factory(useClass);\n resolvedDeps = _dependenciesFor(useClass);\n }\n else if (provider.useExisting) {\n factoryFn = (aliasInstance) => aliasInstance;\n resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];\n }\n else if (provider.useFactory) {\n factoryFn = provider.useFactory;\n resolvedDeps = constructDependencies(provider.useFactory, provider.deps);\n }\n else {\n factoryFn = () => provider.useValue;\n resolvedDeps = _EMPTY_LIST;\n }\n return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);\n}\n/**\n * Converts the `Provider` into `ResolvedProvider`.\n *\n * `Injector` internally only uses `ResolvedProvider`, `Provider` contains convenience provider\n * syntax.\n */\nfunction resolveReflectiveProvider(provider) {\n return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi || false);\n}\n/**\n * Resolve a list of Providers.\n */\nfunction resolveReflectiveProviders(providers) {\n const normalized = _normalizeProviders(providers, []);\n const resolved = normalized.map(resolveReflectiveProvider);\n const resolvedProviderMap = mergeResolvedReflectiveProviders(resolved, new Map());\n return Array.from(resolvedProviderMap.values());\n}\n/**\n * Merges a list of ResolvedProviders into a list where each key is contained exactly once and\n * multi providers have been merged.\n */\nfunction mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {\n for (let i = 0; i < providers.length; i++) {\n const provider = providers[i];\n const existing = normalizedProvidersMap.get(provider.key.id);\n if (existing) {\n if (provider.multiProvider !== existing.multiProvider) {\n throw mixingMultiProvidersWithRegularProvidersError(existing, provider);\n }\n if (provider.multiProvider) {\n for (let j = 0; j < provider.resolvedFactories.length; j++) {\n existing.resolvedFactories.push(provider.resolvedFactories[j]);\n }\n }\n else {\n normalizedProvidersMap.set(provider.key.id, provider);\n }\n }\n else {\n let resolvedProvider;\n if (provider.multiProvider) {\n resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider);\n }\n else {\n resolvedProvider = provider;\n }\n normalizedProvidersMap.set(provider.key.id, resolvedProvider);\n }\n }\n return normalizedProvidersMap;\n}\nfunction _normalizeProviders(providers, res) {\n providers.forEach(b => {\n if (b instanceof Type) {\n res.push({ provide: b, useClass: b });\n }\n else if (b && typeof b == 'object' && b.provide !== undefined) {\n res.push(b);\n }\n else if (Array.isArray(b)) {\n _normalizeProviders(b, res);\n }\n else {\n throw invalidProviderError(b);\n }\n });\n return res;\n}\nfunction constructDependencies(typeOrFunc, dependencies) {\n if (!dependencies) {\n return _dependenciesFor(typeOrFunc);\n }\n else {\n const params = dependencies.map(t => [t]);\n return dependencies.map(t => _extractToken(typeOrFunc, t, params));\n }\n}\nfunction _dependenciesFor(typeOrFunc) {\n const params = reflector.parameters(typeOrFunc);\n if (!params)\n return [];\n if (params.some(p => p == null)) {\n throw noAnnotationError(typeOrFunc, params);\n }\n return params.map(p => _extractToken(typeOrFunc, p, params));\n}\nfunction _extractToken(typeOrFunc, metadata, params) {\n let token = null;\n let optional = false;\n if (!Array.isArray(metadata)) {\n if (metadata instanceof Inject) {\n return _createDependency(metadata.token, optional, null);\n }\n else {\n return _createDependency(metadata, optional, null);\n }\n }\n let visibility = null;\n for (let i = 0; i < metadata.length; ++i) {\n const paramMetadata = metadata[i];\n if (paramMetadata instanceof Type) {\n token = paramMetadata;\n }\n else if (paramMetadata instanceof Inject) {\n token = paramMetadata.token;\n }\n else if (paramMetadata instanceof Optional) {\n optional = true;\n }\n else if (paramMetadata instanceof Self || paramMetadata instanceof SkipSelf) {\n visibility = paramMetadata;\n }\n else if (paramMetadata instanceof InjectionToken) {\n token = paramMetadata;\n }\n }\n token = resolveForwardRef(token);\n if (token != null) {\n return _createDependency(token, optional, visibility);\n }\n else {\n throw noAnnotationError(typeOrFunc, params);\n }\n}\nfunction _createDependency(token, optional, visibility) {\n return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Threshold for the dynamic version\nconst UNDEFINED = {};\n/**\n * A ReflectiveDependency injection container used for instantiating objects and resolving\n * dependencies.\n *\n * An `Injector` is a replacement for a `new` operator, which can automatically resolve the\n * constructor dependencies.\n *\n * In typical use, application code asks for the dependencies in the constructor and they are\n * resolved by the `Injector`.\n *\n * @usageNotes\n * ### Example\n *\n * The following example creates an `Injector` configured to create `Engine` and `Car`.\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n * var car = injector.get(Car);\n * expect(car instanceof Car).toBe(true);\n * expect(car.engine instanceof Engine).toBe(true);\n * ```\n *\n * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`\n * resolve all of the object's dependencies automatically.\n *\n * TODO: delete in v14.\n *\n * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.\n * @publicApi\n */\nclass ReflectiveInjector {\n /**\n * Turns an array of provider definitions into an array of resolved providers.\n *\n * A resolution is a process of flattening multiple nested arrays and converting individual\n * providers into an array of `ResolvedReflectiveProvider`s.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);\n *\n * expect(providers.length).toEqual(2);\n *\n * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);\n * expect(providers[0].key.displayName).toBe(\"Car\");\n * expect(providers[0].dependencies.length).toEqual(1);\n * expect(providers[0].factory).toBeDefined();\n *\n * expect(providers[1].key.displayName).toBe(\"Engine\");\n * });\n * ```\n *\n */\n static resolve(providers) {\n return resolveReflectiveProviders(providers);\n }\n /**\n * Resolves an array of providers and creates an injector from those providers.\n *\n * The passed-in providers can be an array of `Type`, `Provider`,\n * or a recursive array of more providers.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n * expect(injector.get(Car) instanceof Car).toBe(true);\n * ```\n */\n static resolveAndCreate(providers, parent) {\n const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);\n }\n /**\n * Creates an injector from previously resolved providers.\n *\n * This API is the recommended way to construct injectors in performance-sensitive parts.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var providers = ReflectiveInjector.resolve([Car, Engine]);\n * var injector = ReflectiveInjector.fromResolvedProviders(providers);\n * expect(injector.get(Car) instanceof Car).toBe(true);\n * ```\n */\n static fromResolvedProviders(providers, parent) {\n return new ReflectiveInjector_(providers, parent);\n }\n}\nclass ReflectiveInjector_ {\n /**\n * Private\n */\n constructor(_providers, _parent) {\n /** @internal */\n this._constructionCounter = 0;\n this._providers = _providers;\n this.parent = _parent || null;\n const len = _providers.length;\n this.keyIds = [];\n this.objs = [];\n for (let i = 0; i < len; i++) {\n this.keyIds[i] = _providers[i].key.id;\n this.objs[i] = UNDEFINED;\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);\n }\n resolveAndCreateChild(providers) {\n const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n return this.createChildFromResolved(ResolvedReflectiveProviders);\n }\n createChildFromResolved(providers) {\n const inj = new ReflectiveInjector_(providers);\n inj.parent = this;\n return inj;\n }\n resolveAndInstantiate(provider) {\n return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);\n }\n instantiateResolved(provider) {\n return this._instantiateProvider(provider);\n }\n getProviderAtIndex(index) {\n if (index < 0 || index >= this._providers.length) {\n throw outOfBoundsError(index);\n }\n return this._providers[index];\n }\n /** @internal */\n _new(provider) {\n if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {\n throw cyclicDependencyError(this, provider.key);\n }\n return this._instantiateProvider(provider);\n }\n _getMaxNumberOfObjects() {\n return this.objs.length;\n }\n _instantiateProvider(provider) {\n if (provider.multiProvider) {\n const res = [];\n for (let i = 0; i < provider.resolvedFactories.length; ++i) {\n res[i] = this._instantiate(provider, provider.resolvedFactories[i]);\n }\n return res;\n }\n else {\n return this._instantiate(provider, provider.resolvedFactories[0]);\n }\n }\n _instantiate(provider, ResolvedReflectiveFactory) {\n const factory = ResolvedReflectiveFactory.factory;\n let deps;\n try {\n deps =\n ResolvedReflectiveFactory.dependencies.map(dep => this._getByReflectiveDependency(dep));\n }\n catch (e) {\n if (e.addKey) {\n e.addKey(this, provider.key);\n }\n throw e;\n }\n let obj;\n try {\n obj = factory(...deps);\n }\n catch (e) {\n throw instantiationError(this, e, e.stack, provider.key);\n }\n return obj;\n }\n _getByReflectiveDependency(dep) {\n return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);\n }\n _getByKey(key, visibility, notFoundValue) {\n if (key === ReflectiveInjector_.INJECTOR_KEY) {\n return this;\n }\n if (visibility instanceof Self) {\n return this._getByKeySelf(key, notFoundValue);\n }\n else {\n return this._getByKeyDefault(key, notFoundValue, visibility);\n }\n }\n _getObjByKeyId(keyId) {\n for (let i = 0; i < this.keyIds.length; i++) {\n if (this.keyIds[i] === keyId) {\n if (this.objs[i] === UNDEFINED) {\n this.objs[i] = this._new(this._providers[i]);\n }\n return this.objs[i];\n }\n }\n return UNDEFINED;\n }\n /** @internal */\n _throwOrNull(key, notFoundValue) {\n if (notFoundValue !== THROW_IF_NOT_FOUND) {\n return notFoundValue;\n }\n else {\n throw noProviderError(this, key);\n }\n }\n /** @internal */\n _getByKeySelf(key, notFoundValue) {\n const obj = this._getObjByKeyId(key.id);\n return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);\n }\n /** @internal */\n _getByKeyDefault(key, notFoundValue, visibility) {\n let inj;\n if (visibility instanceof SkipSelf) {\n inj = this.parent;\n }\n else {\n inj = this;\n }\n while (inj instanceof ReflectiveInjector_) {\n const inj_ = inj;\n const obj = inj_._getObjByKeyId(key.id);\n if (obj !== UNDEFINED)\n return obj;\n inj = inj_.parent;\n }\n if (inj !== null) {\n return inj.get(key.token, notFoundValue);\n }\n else {\n return this._throwOrNull(key, notFoundValue);\n }\n }\n get displayName() {\n const providers = _mapProviders(this, (b) => ' \"' + b.key.displayName + '\" ')\n .join(', ');\n return `ReflectiveInjector(providers: [${providers}])`;\n }\n toString() {\n return this.displayName;\n }\n}\nReflectiveInjector_.INJECTOR_KEY = ( /* @__PURE__ */ReflectiveKey.get(Injector));\nfunction _mapProviders(injector, fn) {\n const res = [];\n for (let i = 0; i < injector._providers.length; ++i) {\n res[i] = fn(injector.getProviderAtIndex(i));\n }\n return res;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction ɵɵdirectiveInject(token, flags = InjectFlags.Default) {\n const lView = getLView();\n // Fall back to inject() if view hasn't been created. This situation can happen in tests\n // if inject utilities are used before bootstrapping.\n if (lView === null) {\n // Verify that we will not get into infinite loop.\n ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);\n return ɵɵinject(token, flags);\n }\n const tNode = getCurrentTNode();\n return getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * This instruction allows the actual error message to be optimized away when ngDevMode is turned\n * off, saving bytes of generated code while still providing a good experience in dev mode.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactory() {\n const msg = ngDevMode ? `This constructor was not compatible with Dependency Injection.` : 'invalid';\n throw new Error(msg);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Update a property on a selected element.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵproperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵproperty;\n}\n/**\n * Given `<div style=\"...\" my-dir>` and `MyDir` with `@Input('style')` we need to write to\n * directive input.\n */\nfunction setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {\n const inputs = tNode.inputs;\n const property = isClassBased ? 'class' : 'style';\n // We support both 'class' and `className` hence the fallback.\n setInputsForProperty(tView, lView, inputs[property], property, value);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction elementStartFirstCreatePass(index, tView, lView, native, name, attrsIndex, localRefsIndex) {\n ngDevMode && assertFirstCreatePass(tView);\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 2 /* Element */, name, attrs);\n const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));\n ngDevMode && logUnknownElementError(tView, native, tNode, hasDirectives);\n if (tNode.attrs !== null) {\n computeStaticStyling(tNode, tNode.attrs, false);\n }\n if (tNode.mergedAttrs !== null) {\n computeStaticStyling(tNode, tNode.mergedAttrs, true);\n }\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Create DOM element. The instruction must later be followed by `elementEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n *\n * Attributes and localRefs are passed as an array of strings where elements with an even index\n * hold an attribute name and elements with an odd index hold an attribute value, ex.:\n * ['id', 'warning5', 'class', 'alert']\n *\n * @codeGenApi\n */\nfunction ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const renderer = lView[RENDERER];\n const native = lView[adjustedIndex] = createElementNode(renderer, name, getNamespace$1());\n const tNode = tView.firstCreatePass ?\n elementStartFirstCreatePass(adjustedIndex, tView, lView, native, name, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n setCurrentTNode(tNode, true);\n const mergedAttrs = tNode.mergedAttrs;\n if (mergedAttrs !== null) {\n setUpAttributes(renderer, native, mergedAttrs);\n }\n const classes = tNode.classes;\n if (classes !== null) {\n writeDirectClass(renderer, native, classes);\n }\n const styles = tNode.styles;\n if (styles !== null) {\n writeDirectStyle(renderer, native, styles);\n }\n if ((tNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {\n // In the i18n case, the translation may have removed this element, so only add it if it is not\n // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.\n appendChild(tView, lView, native, tNode);\n }\n // any immediate children of a component or template container must be pre-emptively\n // monkey-patched with the component view data so that the element can be inspected\n // later on using any element discovery utility methods (see `element_discovery.ts`)\n if (getElementDepthCount() === 0) {\n attachPatchData(native, lView);\n }\n increaseElementDepthCount();\n if (isDirectiveHost(tNode)) {\n createDirectivesInstances(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex !== null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n}\n/**\n * Mark the end of the element.\n *\n * @codeGenApi\n */\nfunction ɵɵelementEnd() {\n let currentTNode = getCurrentTNode();\n ngDevMode && assertDefined(currentTNode, 'No parent node to close.');\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(getCurrentTNode());\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n const tNode = currentTNode;\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */);\n decreaseElementDepthCount();\n const tView = getTView();\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);\n }\n if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {\n setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);\n }\n}\n/**\n * Creates an empty element using {@link elementStart} and {@link elementEnd}\n *\n * @param index Index of the element in the data array\n * @param name Name of the DOM Node\n * @param attrsIndex Index of the element's attributes in the `consts` array.\n * @param localRefsIndex Index of the element's local references in the `consts` array.\n *\n * @codeGenApi\n */\nfunction ɵɵelement(index, name, attrsIndex, localRefsIndex) {\n ɵɵelementStart(index, name, attrsIndex, localRefsIndex);\n ɵɵelementEnd();\n}\nfunction logUnknownElementError(tView, element, tNode, hasDirectives) {\n const schemas = tView.schemas;\n // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT\n // mode where this check happens at compile time. In JIT mode, `schemas` is always present and\n // defined as an array (as an empty array in case `schemas` field is not defined) and we should\n // execute the check below.\n if (schemas === null)\n return;\n const tagName = tNode.value;\n // If the element matches any directive, it's considered as valid.\n if (!hasDirectives && tagName !== null) {\n // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered\n // as a custom element. Note that unknown elements with a dash in their name won't be instances\n // of HTMLUnknownElement in browsers that support web components.\n const isUnknown = \n // Note that we can't check for `typeof HTMLUnknownElement === 'function'`,\n // because while most browsers return 'function', IE returns 'object'.\n (typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement &&\n element instanceof HTMLUnknownElement) ||\n (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&\n !customElements.get(tagName));\n if (isUnknown && !matchingSchemas(tView, tagName)) {\n let message = `'${tagName}' is not a known element:\\n`;\n message += `1. If '${tagName}' is an Angular component, then verify that it is part of this module.\\n`;\n if (tagName && tagName.indexOf('-') > -1) {\n message += `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`;\n }\n else {\n message +=\n `2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.`;\n }\n console.error(formatRuntimeError(\"304\" /* UNKNOWN_ELEMENT */, message));\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {\n ngDevMode && ngDevMode.firstCreatePass++;\n const tViewConsts = tView.consts;\n const attrs = getConstant(tViewConsts, attrsIndex);\n const tNode = getOrCreateTNode(tView, index, 8 /* ElementContainer */, 'ng-container', attrs);\n // While ng-container doesn't necessarily support styling, we use the style context to identify\n // and execute directives on the ng-container.\n if (attrs !== null) {\n computeStaticStyling(tNode, attrs, true);\n }\n const localRefs = getConstant(tViewConsts, localRefsIndex);\n resolveDirectives(tView, lView, tNode, localRefs);\n if (tView.queries !== null) {\n tView.queries.elementStart(tView, tNode);\n }\n return tNode;\n}\n/**\n * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.\n * The instruction must later be followed by `elementContainerEnd()` call.\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n *\n * Even if this instruction accepts a set of attributes no actual attribute values are propagated to\n * the DOM (as a comment node can't have attributes). Attributes are here only for directive\n * matching purposes and setting initial inputs of directives.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');\n const tNode = tView.firstCreatePass ?\n elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) :\n tView.data[adjustedIndex];\n setCurrentTNode(tNode, true);\n ngDevMode && ngDevMode.rendererCreateComment++;\n const native = lView[adjustedIndex] =\n lView[RENDERER].createComment(ngDevMode ? 'ng-container' : '');\n appendChild(tView, lView, native, tNode);\n attachPatchData(native, lView);\n if (isDirectiveHost(tNode)) {\n createDirectivesInstances(tView, lView, tNode);\n executeContentQueries(tView, tNode, lView);\n }\n if (localRefsIndex != null) {\n saveResolvedLocalsInData(lView, tNode);\n }\n}\n/**\n * Mark the end of the <ng-container>.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainerEnd() {\n let currentTNode = getCurrentTNode();\n const tView = getTView();\n if (isCurrentTNodeParent()) {\n setCurrentTNodeAsNotParent();\n }\n else {\n ngDevMode && assertHasParent(currentTNode);\n currentTNode = currentTNode.parent;\n setCurrentTNode(currentTNode, false);\n }\n ngDevMode && assertTNodeType(currentTNode, 8 /* ElementContainer */);\n if (tView.firstCreatePass) {\n registerPostOrderHooks(tView, currentTNode);\n if (isContentQueryHost(currentTNode)) {\n tView.queries.elementEnd(currentTNode);\n }\n }\n}\n/**\n * Creates an empty logical container using {@link elementContainerStart}\n * and {@link elementContainerEnd}\n *\n * @param index Index of the element in the LView array\n * @param attrsIndex Index of the container attributes in the `consts` array.\n * @param localRefsIndex Index of the container's local references in the `consts` array.\n *\n * @codeGenApi\n */\nfunction ɵɵelementContainer(index, attrsIndex, localRefsIndex) {\n ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);\n ɵɵelementContainerEnd();\n}\n\n/**\n * Returns the current OpaqueViewState instance.\n *\n * Used in conjunction with the restoreView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @codeGenApi\n */\nfunction ɵɵgetCurrentView() {\n return getLView();\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Determine if the argument is shaped like a Promise\n */\nfunction isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}\n/**\n * Determine if the argument is a Subscribable\n */\nfunction isSubscribable(obj) {\n return !!obj && typeof obj.subscribe === 'function';\n}\n/**\n * Determine if the argument is an Observable\n *\n * Strictly this tests that the `obj` is `Subscribable`, since `Observable`\n * types need additional methods, such as `lift()`. But it is adequate for our\n * needs since within the Angular framework code we only ever need to use the\n * `subscribe()` method, and RxJS has mechanisms to wrap `Subscribable` objects\n * into `Observable` as needed.\n */\nconst isObservable = isSubscribable;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Adds an event listener to the current node.\n *\n * If an output exists on one of the node's directives, it also subscribes to the output\n * and saves the subscription for later cleanup.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵlistener(eventName, listenerFn, useCapture, eventTargetResolver) {\n const lView = getLView();\n const tView = getTView();\n const tNode = getCurrentTNode();\n listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, !!useCapture, eventTargetResolver);\n return ɵɵlistener;\n}\n/**\n * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered\n * in the component's renderer. Normally all host listeners are evaluated with the\n * parent component's renderer, but, in the case of animation @triggers, they need\n * to be evaluated with the sub component's renderer (because that's where the\n * animation triggers are defined).\n *\n * Do not use this instruction as a replacement for `listener`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param eventName Name of the event\n * @param listenerFn The function to be called when event emits\n * @param useCapture Whether or not to use capture in event listener\n * @param eventTargetResolver Function that returns global target information in case this listener\n * should be attached to a global object like window, document or body\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostListener(eventName, listenerFn) {\n const tNode = getCurrentTNode();\n const lView = getLView();\n const tView = getTView();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, false);\n return ɵɵsyntheticHostListener;\n}\n/**\n * A utility function that checks if a given element has already an event handler registered for an\n * event with a specified name. The TView.cleanup data structure is used to find out which events\n * are registered for a given element.\n */\nfunction findExistingListener(tView, lView, eventName, tNodeIdx) {\n const tCleanup = tView.cleanup;\n if (tCleanup != null) {\n for (let i = 0; i < tCleanup.length - 1; i += 2) {\n const cleanupEventName = tCleanup[i];\n if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {\n // We have found a matching event name on the same node but it might not have been\n // registered yet, so we must explicitly verify entries in the LView cleanup data\n // structures.\n const lCleanup = lView[CLEANUP];\n const listenerIdxInLCleanup = tCleanup[i + 2];\n return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;\n }\n // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or\n // 2-element entries (for directive and queries destroy hooks). As such we can encounter\n // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements\n // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check\n // documentation of TView.cleanup for more details of this data structure layout.\n if (typeof cleanupEventName === 'string') {\n i += 2;\n }\n }\n }\n return null;\n}\nfunction listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, useCapture, eventTargetResolver) {\n const isTNodeDirectiveHost = isDirectiveHost(tNode);\n const firstCreatePass = tView.firstCreatePass;\n const tCleanup = firstCreatePass && getOrCreateTViewCleanup(tView);\n const context = lView[CONTEXT];\n // When the ɵɵlistener instruction was generated and is executed we know that there is either a\n // native listener or a directive output on this element. As such we we know that we will have to\n // register a listener and store its cleanup function on LView.\n const lCleanup = getOrCreateLViewCleanup(lView);\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);\n let processOutputs = true;\n // Adding a native event listener is applicable when:\n // - The corresponding TNode represents a DOM element.\n // - The event target has a resolver (usually resulting in a global object,\n // such as `window` or `document`).\n if ((tNode.type & 3 /* AnyRNode */) || eventTargetResolver) {\n const native = getNativeByTNode(tNode, lView);\n const target = eventTargetResolver ? eventTargetResolver(native) : native;\n const lCleanupIndex = lCleanup.length;\n const idxOrTargetGetter = eventTargetResolver ?\n (_lView) => eventTargetResolver(unwrapRNode(_lView[tNode.index])) :\n tNode.index;\n // In order to match current behavior, native DOM event listeners must be added for all\n // events (including outputs).\n if (isProceduralRenderer(renderer)) {\n // There might be cases where multiple directives on the same element try to register an event\n // handler function for the same event. In this situation we want to avoid registration of\n // several native listeners as each registration would be intercepted by NgZone and\n // trigger change detection. This would mean that a single user action would result in several\n // change detections being invoked. To avoid this situation we want to have only one call to\n // native handler registration (for the same element and same type of event).\n //\n // In order to have just one native event handler in presence of multiple handler functions,\n // we just register a first handler function as a native event listener and then chain\n // (coalesce) other handler functions on top of the first native handler function.\n let existingListener = null;\n // Please note that the coalescing described here doesn't happen for events specifying an\n // alternative target (ex. (document:click)) - this is to keep backward compatibility with the\n // view engine.\n // Also, we don't have to search for existing listeners is there are no directives\n // matching on a given node as we can't register multiple event handlers for the same event in\n // a template (this would mean having duplicate attributes).\n if (!eventTargetResolver && isTNodeDirectiveHost) {\n existingListener = findExistingListener(tView, lView, eventName, tNode.index);\n }\n if (existingListener !== null) {\n // Attach a new listener to coalesced listeners list, maintaining the order in which\n // listeners are registered. For performance reasons, we keep a reference to the last\n // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through\n // the entire set each time we need to add a new listener.\n const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;\n lastListenerFn.__ngNextListenerFn__ = listenerFn;\n existingListener.__ngLastListenerFn__ = listenerFn;\n processOutputs = false;\n }\n else {\n listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n const cleanupFn = renderer.listen(target, eventName, listenerFn);\n ngDevMode && ngDevMode.rendererAddEventListener++;\n lCleanup.push(listenerFn, cleanupFn);\n tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);\n }\n }\n else {\n listenerFn = wrapListener(tNode, lView, context, listenerFn, true /** preventDefault */);\n target.addEventListener(eventName, listenerFn, useCapture);\n ngDevMode && ngDevMode.rendererAddEventListener++;\n lCleanup.push(listenerFn);\n tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, useCapture);\n }\n }\n else {\n // Even if there is no native listener to add, we still need to wrap the listener so that OnPush\n // ancestors are marked dirty when an event occurs.\n listenerFn = wrapListener(tNode, lView, context, listenerFn, false /** preventDefault */);\n }\n // subscribe to directive outputs\n const outputs = tNode.outputs;\n let props;\n if (processOutputs && outputs !== null && (props = outputs[eventName])) {\n const propsLength = props.length;\n if (propsLength) {\n for (let i = 0; i < propsLength; i += 2) {\n const index = props[i];\n ngDevMode && assertIndexInRange(lView, index);\n const minifiedName = props[i + 1];\n const directiveInstance = lView[index];\n const output = directiveInstance[minifiedName];\n if (ngDevMode && !isObservable(output)) {\n throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);\n }\n const subscription = output.subscribe(listenerFn);\n const idx = lCleanup.length;\n lCleanup.push(listenerFn, subscription);\n tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));\n }\n }\n }\n}\nfunction executeListenerWithErrorHandling(lView, context, listenerFn, e) {\n try {\n profiler(6 /* OutputStart */, context, listenerFn);\n // Only explicitly returning false from a listener should preventDefault\n return listenerFn(e) !== false;\n }\n catch (error) {\n handleError(lView, error);\n return false;\n }\n finally {\n profiler(7 /* OutputEnd */, context, listenerFn);\n }\n}\n/**\n * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,\n * if applicable.\n *\n * @param tNode The TNode associated with this listener\n * @param lView The LView that contains this listener\n * @param listenerFn The listener function to call\n * @param wrapWithPreventDefault Whether or not to prevent default behavior\n * (the procedural renderer does this already, so in those cases, we should skip)\n */\nfunction wrapListener(tNode, lView, context, listenerFn, wrapWithPreventDefault) {\n // Note: we are performing most of the work in the listener function itself\n // to optimize listener registration.\n return function wrapListenerIn_markDirtyAndPreventDefault(e) {\n // Ivy uses `Function` as a special token that allows us to unwrap the function\n // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.\n if (e === Function) {\n return listenerFn;\n }\n // In order to be backwards compatible with View Engine, events on component host nodes\n // must also mark the component view itself dirty (i.e. the view that it owns).\n const startView = tNode.flags & 2 /* isComponentHost */ ?\n getComponentLViewByIndex(tNode.index, lView) :\n lView;\n // See interfaces/view.ts for more on LViewFlags.ManualOnPush\n if ((lView[FLAGS] & 32 /* ManualOnPush */) === 0) {\n markViewDirty(startView);\n }\n let result = executeListenerWithErrorHandling(lView, context, listenerFn, e);\n // A just-invoked listener function might have coalesced listeners so we need to check for\n // their presence and invoke as needed.\n let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;\n while (nextListenerFn) {\n // We should prevent default if any of the listeners explicitly return false\n result = executeListenerWithErrorHandling(lView, context, nextListenerFn, e) && result;\n nextListenerFn = nextListenerFn.__ngNextListenerFn__;\n }\n if (wrapWithPreventDefault && result === false) {\n e.preventDefault();\n // Necessary for legacy browsers that don't support preventDefault (e.g. IE)\n e.returnValue = false;\n }\n return result;\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Retrieves a context at the level specified and saves it as the global, contextViewData.\n * Will get the next level up if level is not specified.\n *\n * This is used to save contexts of parent views so they can be bound in embedded views, or\n * in conjunction with reference() to bind a ref from a parent view.\n *\n * @param level The relative level of the view from which to grab context compared to contextVewData\n * @returns context\n *\n * @codeGenApi\n */\nfunction ɵɵnextContext(level = 1) {\n return nextContextImpl(level);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Checks a given node against matching projection slots and returns the\n * determined slot index. Returns \"null\" if no slot matched the given node.\n *\n * This function takes into account the parsed ngProjectAs selector from the\n * node's attributes. If present, it will check whether the ngProjectAs selector\n * matches any of the projection slot selectors.\n */\nfunction matchingProjectionSlotIndex(tNode, projectionSlots) {\n let wildcardNgContentIndex = null;\n const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);\n for (let i = 0; i < projectionSlots.length; i++) {\n const slotValue = projectionSlots[i];\n // The last wildcard projection slot should match all nodes which aren't matching\n // any selector. This is necessary to be backwards compatible with view engine.\n if (slotValue === '*') {\n wildcardNgContentIndex = i;\n continue;\n }\n // If we ran into an `ngProjectAs` attribute, we should match its parsed selector\n // to the list of selectors, otherwise we fall back to matching against the node.\n if (ngProjectAsAttrVal === null ?\n isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */ true) :\n isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {\n return i; // first matching selector \"captures\" a given node\n }\n }\n return wildcardNgContentIndex;\n}\n/**\n * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.\n * It takes all the selectors from the entire component's template and decides where\n * each projected node belongs (it re-distributes nodes among \"buckets\" where each \"bucket\" is\n * backed by a selector).\n *\n * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,\n * un-parsed form.\n *\n * The parsed form is needed for efficient matching of a node against a given CSS selector.\n * The un-parsed, textual form is needed for support of the ngProjectAs attribute.\n *\n * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more\n * drawbacks:\n * - having only a textual form would require runtime parsing of CSS selectors;\n * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a\n * template author).\n *\n * @param projectionSlots? A collection of projection slots. A projection slot can be based\n * on a parsed CSS selectors or set to the wildcard selector (\"*\") in order to match\n * all nodes which do not match any selector. If not specified, a single wildcard\n * selector projection slot will be defined.\n *\n * @codeGenApi\n */\nfunction ɵɵprojectionDef(projectionSlots) {\n const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];\n if (!componentNode.projection) {\n // If no explicit projection slots are defined, fall back to a single\n // projection slot with the wildcard selector.\n const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;\n const projectionHeads = componentNode.projection =\n newArray(numProjectionSlots, null);\n const tails = projectionHeads.slice();\n let componentChild = componentNode.child;\n while (componentChild !== null) {\n const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;\n if (slotIndex !== null) {\n if (tails[slotIndex]) {\n tails[slotIndex].projectionNext = componentChild;\n }\n else {\n projectionHeads[slotIndex] = componentChild;\n }\n tails[slotIndex] = componentChild;\n }\n componentChild = componentChild.next;\n }\n }\n}\n/**\n * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call\n * to the projectionDef instruction.\n *\n * @param nodeIndex\n * @param selectorIndex:\n * - 0 when the selector is `*` (or unspecified as this is the default value),\n * - 1 based index of the selector from the {@link projectionDef}\n *\n * @codeGenApi\n */\nfunction ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {\n const lView = getLView();\n const tView = getTView();\n const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* Projection */, null, attrs || null);\n // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.\n if (tProjectionNode.projection === null)\n tProjectionNode.projection = selectorIndex;\n // `<ng-content>` has no content\n setCurrentTNodeAsNotParent();\n if ((tProjectionNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {\n // re-distribution of projectable nodes is stored on a component's view level\n applyProjection(tView, lView, tProjectionNode);\n }\n}\n\n/**\n *\n * Update an interpolated property on an element with a lone bound value\n *\n * Used when the value passed to a property has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div title=\"{{v0}}\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate('title', v0);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate(propName, v0, sanitizer) {\n ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);\n return ɵɵpropertyInterpolate;\n}\n/**\n *\n * Update an interpolated property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);\n }\n return ɵɵpropertyInterpolate1;\n}\n/**\n *\n * Update an interpolated property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);\n }\n return ɵɵpropertyInterpolate2;\n}\n/**\n *\n * Update an interpolated property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate3(\n * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);\n }\n return ɵɵpropertyInterpolate3;\n}\n/**\n *\n * Update an interpolated property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate4(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);\n }\n return ɵɵpropertyInterpolate4;\n}\n/**\n *\n * Update an interpolated property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate5(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);\n }\n return ɵɵpropertyInterpolate5;\n}\n/**\n *\n * Update an interpolated property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate6(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);\n }\n return ɵɵpropertyInterpolate6;\n}\n/**\n *\n * Update an interpolated property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate7(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);\n }\n return ɵɵpropertyInterpolate7;\n}\n/**\n *\n * Update an interpolated property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolate8(\n * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n ngDevMode &&\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);\n }\n return ɵɵpropertyInterpolate8;\n}\n/**\n * Update an interpolated property on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * title=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is::\n *\n * ```ts\n * ɵɵpropertyInterpolateV(\n * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * If the property name also exists as an input property on one of the element's directives,\n * the component property will be set instead of the element property. This check must\n * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.\n *\n * @param propName The name of the property to update.\n * @param values The collection of values and the strings inbetween those values, beginning with a\n * string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param sanitizer An optional sanitizer function\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵpropertyInterpolateV(propName, values, sanitizer) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n if (interpolatedValue !== NO_CHANGE) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);\n if (ngDevMode) {\n const interpolationInBetween = [values[0]]; // prefix\n for (let i = 2; i < values.length; i += 2) {\n interpolationInBetween.push(values[i]);\n }\n storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);\n }\n }\n return ɵɵpropertyInterpolateV;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * NOTE: The word `styling` is used interchangeably as style or class styling.\n *\n * This file contains code to link styling instructions together so that they can be replayed in\n * priority order. The file exists because Ivy styling instruction execution order does not match\n * that of the priority order. The purpose of this code is to create a linked list so that the\n * instructions can be traversed in priority order when computing the styles.\n *\n * Assume we are dealing with the following code:\n * ```\n * @Component({\n * template: `\n * <my-cmp [style]=\" {color: '#001'} \"\n * [style.color]=\" #002 \"\n * dir-style-color-1\n * dir-style-color-2> `\n * })\n * class ExampleComponent {\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#001'});\n * ɵɵstyleProp('color', '#002');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-1]',\n * })\n * class Style1Directive {\n * @HostBinding('style') style = {color: '#005'};\n * @HostBinding('style.color') color = '#006';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#005'});\n * ɵɵstyleProp('color', '#006');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `[dir-style-color-2]',\n * })\n * class Style2Directive {\n * @HostBinding('style') style = {color: '#007'};\n * @HostBinding('style.color') color = '#008';\n *\n * static ngDir = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#007'});\n * ɵɵstyleProp('color', '#008');\n * ...\n * }\n * }\n *\n * @Directive({\n * selector: `my-cmp',\n * })\n * class MyComponent {\n * @HostBinding('style') style = {color: '#003'};\n * @HostBinding('style.color') color = '#004';\n *\n * static ngComp = ... {\n * ...\n * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`\n * ɵɵstyleMap({color: '#003'});\n * ɵɵstyleProp('color', '#004');\n * ...\n * }\n * }\n * ```\n *\n * The Order of instruction execution is:\n *\n * NOTE: the comment binding location is for illustrative purposes only.\n *\n * ```\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * ```\n *\n * The correct priority order of concatenation is:\n *\n * ```\n * // MyComponent\n * ɵɵstyleMap({color: '#003'}); // Binding index: 20\n * ɵɵstyleProp('color', '#004'); // Binding index: 22\n * // Style1Directive\n * ɵɵstyleMap({color: '#005'}); // Binding index: 24\n * ɵɵstyleProp('color', '#006'); // Binding index: 26\n * // Style2Directive\n * ɵɵstyleMap({color: '#007'}); // Binding index: 28\n * ɵɵstyleProp('color', '#008'); // Binding index: 30\n * // Template: (ExampleComponent)\n * ɵɵstyleMap({color: '#001'}); // Binding index: 10\n * ɵɵstyleProp('color', '#002'); // Binding index: 12\n * ```\n *\n * What color should be rendered?\n *\n * Once the items are correctly sorted in the list, the answer is simply the last item in the\n * concatenation list which is `#002`.\n *\n * To do so we keep a linked list of all of the bindings which pertain to this element.\n * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows\n * us to traverse them in the order of priority.\n *\n * |Idx|`TView.data`|`LView` | Notes\n * |---|------------|-----------------|--------------\n * |...| | |\n * |10 |`null` |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`\n * |11 |`30 | 12` | ... |\n * |12 |`color` |`'#002'` | `ɵɵstyleProp('color', '#002')`\n * |13 |`10 | 0` | ... |\n * |...| | |\n * |20 |`null` |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`\n * |21 |`0 | 22` | ... |\n * |22 |`color` |`'#004'` | `ɵɵstyleProp('color', '#004')`\n * |23 |`20 | 24` | ... |\n * |24 |`null` |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`\n * |25 |`22 | 26` | ... |\n * |26 |`color` |`'#006'` | `ɵɵstyleProp('color', '#006')`\n * |27 |`24 | 28` | ... |\n * |28 |`null` |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`\n * |29 |`26 | 30` | ... |\n * |30 |`color` |`'#008'` | `ɵɵstyleProp('color', '#008')`\n * |31 |`28 | 10` | ... |\n *\n * The above data structure allows us to re-concatenate the styling no matter which data binding\n * changes.\n *\n * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next\n * duplicate bit. The duplicate bit if true says there either is a binding with the same name or\n * there is a map (which may contain the name). This information is useful in knowing if other\n * styles with higher priority need to be searched for overwrites.\n *\n * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in\n * `tnode_linked_list_spec.ts` for working example.\n */\nlet __unused_const_as_closure_does_not_like_standalone_comment_blocks__;\n/**\n * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked\n * list of styles and compute the duplicate flag.\n *\n * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.\n *\n * The function works by keeping track of `tStylingRange` which contains two pointers pointing to\n * the head/tail of the template portion of the styles.\n * - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`\n * - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`\n *\n * @param tData The `TData` to insert into.\n * @param tNode `TNode` associated with the styling element.\n * @param tStylingKey See `TStylingKey`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of\n * template.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {\n ngDevMode && assertFirstUpdatePass(getTView());\n let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;\n let tmplHead = getTStylingRangePrev(tBindings);\n let tmplTail = getTStylingRangeNext(tBindings);\n tData[index] = tStylingKeyWithStatic;\n let isKeyDuplicateOfStatic = false;\n let tStylingKey;\n if (Array.isArray(tStylingKeyWithStatic)) {\n // We are case when the `TStylingKey` contains static fields as well.\n const staticKeyValueArray = tStylingKeyWithStatic;\n tStylingKey = staticKeyValueArray[1]; // unwrap.\n // We need to check if our key is present in the static so that we can mark it as duplicate.\n if (tStylingKey === null ||\n keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {\n // tStylingKey is present in the statics, need to mark it as duplicate.\n isKeyDuplicateOfStatic = true;\n }\n }\n else {\n tStylingKey = tStylingKeyWithStatic;\n }\n if (isHostBinding) {\n // We are inserting host bindings\n // If we don't have template bindings then `tail` is 0.\n const hasTemplateBindings = tmplTail !== 0;\n // This is important to know because that means that the `head` can't point to the first\n // template bindings (there are none.) Instead the head points to the tail of the template.\n if (hasTemplateBindings) {\n // template head's \"prev\" will point to last host binding or to 0 if no host bindings yet\n const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);\n tData[index + 1] = toTStylingRange(previousNode, tmplHead);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (previousNode !== 0) {\n // We need to update the template-tail value to point to us.\n tData[previousNode + 1] =\n setTStylingRangeNext(tData[previousNode + 1], index);\n }\n // The \"previous\" of the template binding head should point to this host binding\n tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);\n }\n else {\n tData[index + 1] = toTStylingRange(tmplHead, 0);\n // if a host binding has already been registered, we need to update the next of that host\n // binding to point to this one\n if (tmplHead !== 0) {\n // We need to update the template-tail value to point to us.\n tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);\n }\n // if we don't have template, the head points to template-tail, and needs to be advanced.\n tmplHead = index;\n }\n }\n else {\n // We are inserting in template section.\n // We need to set this binding's \"previous\" to the current template tail\n tData[index + 1] = toTStylingRange(tmplTail, 0);\n ngDevMode &&\n assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');\n if (tmplHead === 0) {\n tmplHead = index;\n }\n else {\n // We need to update the previous value \"next\" to point to this binding\n tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);\n }\n tmplTail = index;\n }\n // Now we need to update / compute the duplicates.\n // Starting with our location search towards head (least priority)\n if (isKeyDuplicateOfStatic) {\n tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);\n }\n markDuplicates(tData, tStylingKey, index, true, isClassBinding);\n markDuplicates(tData, tStylingKey, index, false, isClassBinding);\n markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);\n tBindings = toTStylingRange(tmplHead, tmplTail);\n if (isClassBinding) {\n tNode.classBindings = tBindings;\n }\n else {\n tNode.styleBindings = tBindings;\n }\n}\n/**\n * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.\n *\n * @param tNode `TNode` where the residual is stored.\n * @param tStylingKey `TStylingKey` to store.\n * @param tData `TData` associated with the current `LView`.\n * @param index location of where `tStyleValue` should be stored (and linked into list.)\n * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.\n * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)\n */\nfunction markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {\n const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /* or undefined */ && typeof tStylingKey == 'string' &&\n keyValueArrayIndexOf(residual, tStylingKey) >= 0) {\n // We have duplicate in the residual so mark ourselves as duplicate.\n tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);\n }\n}\n/**\n * Marks `TStyleValue`s as duplicates if another style binding in the list has the same\n * `TStyleValue`.\n *\n * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once\n * with it set to `false` to search both the previous as well as next items in the list.\n *\n * No duplicate case\n * ```\n * [style.color]\n * [style.width.px] <<- index\n * [style.height.px]\n * ```\n *\n * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no\n * duplicates because `width` is not found in any other part of the linked list.\n *\n * Duplicate case\n * ```\n * [style.color]\n * [style.width.em]\n * [style.width.px] <<- index\n * ```\n * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`\n * because `width` is found in the chain.\n *\n * Map case 1\n * ```\n * [style.width.px]\n * [style.color]\n * [style] <<- index\n * ```\n * In the above case adding `[style]` will produce a duplicate with any other bindings because\n * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.\n *\n * Map case 2\n * ```\n * [style]\n * [style.width.px]\n * [style.color] <<- index\n * ```\n * In the above case adding `[style.color]` will produce a duplicate because there is already a\n * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or\n * `width`.\n *\n * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.\n * NOTE: We use `style` as example, but same logic is applied to `class`es as well.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in\n * the linked list.\n * @param index Starting location in the linked list to search from\n * @param isPrevDir Direction.\n * - `true` for previous (lower priority);\n * - `false` for next (higher priority).\n */\nfunction markDuplicates(tData, tStylingKey, index, isPrevDir, isClassBinding) {\n const tStylingAtIndex = tData[index + 1];\n const isMap = tStylingKey === null;\n let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);\n let foundDuplicate = false;\n // We keep iterating as long as we have a cursor\n // AND either:\n // - we found what we are looking for, OR\n // - we are a map in which case we have to continue searching even after we find what we were\n // looking for since we are a wild card and everything needs to be flipped to duplicate.\n while (cursor !== 0 && (foundDuplicate === false || isMap)) {\n ngDevMode && assertIndexInRange(tData, cursor);\n const tStylingValueAtCursor = tData[cursor];\n const tStyleRangeAtCursor = tData[cursor + 1];\n if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {\n foundDuplicate = true;\n tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) :\n setTStylingRangePrevDuplicate(tStyleRangeAtCursor);\n }\n cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) :\n getTStylingRangeNext(tStyleRangeAtCursor);\n }\n if (foundDuplicate) {\n // if we found a duplicate, than mark ourselves.\n tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) :\n setTStylingRangeNextDuplicate(tStylingAtIndex);\n }\n}\n/**\n * Determines if two `TStylingKey`s are a match.\n *\n * When computing whether a binding contains a duplicate, we need to compare if the instruction\n * `TStylingKey` has a match.\n *\n * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:\n * - `color`\n * - `color` // Match another color\n * - `null` // That means that `tStylingKey` is a `classMap`/`styleMap` instruction\n * - `['', 'color', 'other', true]` // wrapped `color` so match\n * - `['', null, 'other', true]` // wrapped `null` so match\n * - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`\n * - `null` // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction\n *\n * @param tStylingKeyCursor\n * @param tStylingKey\n */\nfunction isStylingMatch(tStylingKeyCursor, tStylingKey) {\n ngDevMode &&\n assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \\'tStylingKey\\' has been unwrapped');\n if (tStylingKeyCursor === null || // If the cursor is `null` it means that we have map at that\n // location so we must assume that we have a match.\n tStylingKey == null || // If `tStylingKey` is `null` then it is a map therefor assume that it\n // contains a match.\n (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) ===\n tStylingKey // If the keys match explicitly than we are a match.\n ) {\n return true;\n }\n else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {\n // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has\n // statics and we need to check those as well.\n return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >=\n 0; // see if we are matching the key\n }\n return false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Global state of the parser. (This makes parser non-reentrant, but that is not an issue)\nconst parserState = {\n textEnd: 0,\n key: 0,\n keyEnd: 0,\n value: 0,\n valueEnd: 0,\n};\n/**\n * Retrieves the last parsed `key` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedKey(text) {\n return text.substring(parserState.key, parserState.keyEnd);\n}\n/**\n * Retrieves the last parsed `value` of style.\n * @param text the text to substring the key from.\n */\nfunction getLastParsedValue(text) {\n return text.substring(parserState.value, parserState.valueEnd);\n}\n/**\n * Initializes `className` string for parsing and parses the first token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n * @param text `className` to parse\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassName(text) {\n resetParserState(text);\n return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses next `className` token.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n * const key = getLastParsedKey();\n * ...\n * }\n * ```\n *\n * @param text `className` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseClassNameNext` should resume.\n */\nfunction parseClassNameNext(text, index) {\n const end = parserState.textEnd;\n if (end === index) {\n return -1;\n }\n index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);\n return consumeWhitespace(text, index, end);\n}\n/**\n * Initializes `cssText` string for parsing and parses the first key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n * ```\n * @param text `cssText` to parse\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyle(text) {\n resetParserState(text);\n return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));\n}\n/**\n * Parses the next `cssText` key/values.\n *\n * This function is intended to be used in this format:\n * ```\n * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {\n * const key = getLastParsedKey();\n * const value = getLastParsedValue();\n * ...\n * }\n *\n * @param text `cssText` to parse\n * @param index where the parsing should resume.\n * @returns index where the next invocation of `parseStyleNext` should resume.\n */\nfunction parseStyleNext(text, startIndex) {\n const end = parserState.textEnd;\n let index = parserState.key = consumeWhitespace(text, startIndex, end);\n if (end === index) {\n // we reached an end so just quit\n return -1;\n }\n index = parserState.keyEnd = consumeStyleKey(text, index, end);\n index = consumeSeparator(text, index, end, 58 /* COLON */);\n index = parserState.value = consumeWhitespace(text, index, end);\n index = parserState.valueEnd = consumeStyleValue(text, index, end);\n return consumeSeparator(text, index, end, 59 /* SEMI_COLON */);\n}\n/**\n * Reset the global state of the styling parser.\n * @param text The styling text to parse.\n */\nfunction resetParserState(text) {\n parserState.key = 0;\n parserState.keyEnd = 0;\n parserState.value = 0;\n parserState.valueEnd = 0;\n parserState.textEnd = text.length;\n}\n/**\n * Returns index of next non-whitespace character.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at\n * that location.)\n */\nfunction consumeWhitespace(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Returns index of last char in class token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last char in class token.\n */\nfunction consumeClassToken(text, startIndex, endIndex) {\n while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* SPACE */) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all of the characters belonging to style key and token.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style key character.\n */\nfunction consumeStyleKey(text, startIndex, endIndex) {\n let ch;\n while (startIndex < endIndex &&\n ((ch = text.charCodeAt(startIndex)) === 45 /* DASH */ || ch === 95 /* UNDERSCORE */ ||\n ((ch & -33 /* UPPER_CASE */) >= 65 /* A */ && (ch & -33 /* UPPER_CASE */) <= 90 /* Z */) ||\n (ch >= 48 /* ZERO */ && ch <= 57 /* NINE */))) {\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes all whitespace and the separator `:` after the style key.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after separator and surrounding whitespace.\n */\nfunction consumeSeparator(text, startIndex, endIndex, separator) {\n startIndex = consumeWhitespace(text, startIndex, endIndex);\n if (startIndex < endIndex) {\n if (ngDevMode && text.charCodeAt(startIndex) !== separator) {\n malformedStyleError(text, String.fromCharCode(separator), startIndex);\n }\n startIndex++;\n }\n return startIndex;\n}\n/**\n * Consumes style value honoring `url()` and `\"\"` text.\n *\n * @param text Text to scan\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after last style value character.\n */\nfunction consumeStyleValue(text, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let ch2 = -1; // 2nd previous character\n let ch3 = -1; // 3rd previous character\n let i = startIndex;\n let lastChIndex = i;\n while (i < endIndex) {\n const ch = text.charCodeAt(i++);\n if (ch === 59 /* SEMI_COLON */) {\n return lastChIndex;\n }\n else if (ch === 34 /* DOUBLE_QUOTE */ || ch === 39 /* SINGLE_QUOTE */) {\n lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);\n }\n else if (startIndex ===\n i - 4 && // We have seen only 4 characters so far \"URL(\" (Ignore \"foo_URL()\")\n ch3 === 85 /* U */ &&\n ch2 === 82 /* R */ && ch1 === 76 /* L */ && ch === 40 /* OPEN_PAREN */) {\n lastChIndex = i = consumeQuotedText(text, 41 /* CLOSE_PAREN */, i, endIndex);\n }\n else if (ch > 32 /* SPACE */) {\n // if we have a non-whitespace character then capture its location\n lastChIndex = i;\n }\n ch3 = ch2;\n ch2 = ch1;\n ch1 = ch & -33 /* UPPER_CASE */;\n }\n return lastChIndex;\n}\n/**\n * Consumes all of the quoted characters.\n *\n * @param text Text to scan\n * @param quoteCharCode CharCode of either `\"` or `'` quote or `)` for `url(...)`.\n * @param startIndex Starting index of character where the scan should start.\n * @param endIndex Ending index of character where the scan should end.\n * @returns Index after quoted characters.\n */\nfunction consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {\n let ch1 = -1; // 1st previous character\n let index = startIndex;\n while (index < endIndex) {\n const ch = text.charCodeAt(index++);\n if (ch == quoteCharCode && ch1 !== 92 /* BACK_SLASH */) {\n return index;\n }\n if (ch == 92 /* BACK_SLASH */ && ch1 === 92 /* BACK_SLASH */) {\n // two back slashes cancel each other out. For example `\"\\\\\"` should properly end the\n // quotation. (It should not assume that the last `\"` is escaped.)\n ch1 = 0;\n }\n else {\n ch1 = ch;\n }\n }\n throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) :\n new Error();\n}\nfunction malformedStyleError(text, expecting, index) {\n ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');\n throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' +\n text.substring(index, index + 1) + '<<]' + text.substr(index + 1) +\n `'. Expecting '${expecting}'.`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Update a style binding on an element with the provided value.\n *\n * If the style value is falsy then it will be removed from the element\n * (or assigned a different value depending if there are any styles placed\n * on the element with `styleMap` or any static styles that are\n * present from when the element was created with `styling`).\n *\n * Note that the styling element is updated as part of `stylingApply`.\n *\n * @param prop A valid CSS property.\n * @param value New value to write (`null` or an empty string to remove).\n * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.\n *\n * Note that this will apply the provided style value to the host element if this function is called\n * within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleProp(prop, value, suffix) {\n checkStylingProperty(prop, value, suffix, false);\n return ɵɵstyleProp;\n}\n/**\n * Update a class binding on an element with the provided value.\n *\n * This instruction is meant to handle the `[class.foo]=\"exp\"` case and,\n * therefore, the class binding itself must already be allocated using\n * `styling` within the creation block.\n *\n * @param prop A valid CSS class (only one).\n * @param value A true/false value which will turn the class on or off.\n *\n * Note that this will apply the provided class value to the host element if this function\n * is called within a host binding function.\n *\n * @codeGenApi\n */\nfunction ɵɵclassProp(className, value) {\n checkStylingProperty(className, value, null, true);\n return ɵɵclassProp;\n}\n/**\n * Update style bindings using an object literal on an element.\n *\n * This instruction is meant to apply styling via the `[style]=\"exp\"` template bindings.\n * When styles are applied to the element they will then be updated with respect to\n * any styles/classes set via `styleProp`. If any styles are set to falsy\n * then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n *\n * @param styles A key/value style map of the styles that will be applied to the given element.\n * Any missing styles (that have already been applied to the element beforehand) will be\n * removed (unset) from the element's styling.\n *\n * Note that this will apply the provided styleMap value to the host element if this function\n * is called within a host binding.\n *\n * @codeGenApi\n */\nfunction ɵɵstyleMap(styles) {\n checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);\n}\n/**\n * Parse text as style and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵstyleMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction styleStringParser(keyValueArray, text) {\n for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {\n styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));\n }\n}\n/**\n * Update class bindings using an object literal or class-string on an element.\n *\n * This instruction is meant to apply styling via the `[class]=\"exp\"` template bindings.\n * When classes are applied to the element they will then be updated with\n * respect to any styles/classes set via `classProp`. If any\n * classes are set to falsy then they will be removed from the element.\n *\n * Note that the styling instruction will not be applied until `stylingApply` is called.\n * Note that this will the provided classMap value to the host element if this function is called\n * within a host binding.\n *\n * @param classes A key/value map or string of CSS classes that will be added to the\n * given element. Any missing classes (that have already been applied to the element\n * beforehand) will be removed (unset) from the element's list of CSS classes.\n *\n * @codeGenApi\n */\nfunction ɵɵclassMap(classes) {\n checkStylingMap(keyValueArraySet, classStringParser, classes, true);\n}\n/**\n * Parse text as class and add values to KeyValueArray.\n *\n * This code is pulled out to a separate function so that it can be tree shaken away if it is not\n * needed. It is only referenced from `ɵɵclassMap`.\n *\n * @param keyValueArray KeyValueArray to add parsed values to.\n * @param text text to parse.\n */\nfunction classStringParser(keyValueArray, text) {\n for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {\n keyValueArraySet(keyValueArray, getLastParsedKey(text), true);\n }\n}\n/**\n * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.\n *\n * @param prop property name.\n * @param value binding value.\n * @param suffix suffix for the property (e.g. `em` or `px`)\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingProperty(prop, value, suffix, isClassBased) {\n const lView = getLView();\n const tView = getTView();\n // Styling instructions use 2 slots per binding.\n // 1. one for the value / TStylingKey\n // 2. one for the intermittent-value / TStylingRange\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);\n }\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n const tNode = tView.data[getSelectedIndex()];\n updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);\n }\n}\n/**\n * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done for tree shaking purposes.\n * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`\n * have different parsers.)\n * @param value bound value from application\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {\n const tView = getTView();\n const bindingIndex = incrementBindingIndex(2);\n if (tView.firstUpdatePass) {\n stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);\n }\n const lView = getLView();\n if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tView.data[getSelectedIndex()];\n if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {\n if (ngDevMode) {\n // verify that if we are shadowing then `TData` is appropriately marked so that we skip\n // processing this binding in styling resolution.\n const tStylingKey = tView.data[bindingIndex];\n assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \\'false\\'');\n }\n // VE does not concatenate the static portion like we are doing here.\n // Instead VE just ignores the static completely if dynamic binding is present.\n // Because of locality we have already set the static portion because we don't know if there\n // is a dynamic portion until later. If we would ignore the static portion it would look like\n // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong\n // thing as it would think that the static portion was removed. For this reason we\n // concatenate it so that `[ngStyle]`/`[ngClass]` can continue to work on changed.\n let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;\n ngDevMode && isClassBased === false && staticPrefix !== null &&\n assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \\';\\'');\n if (staticPrefix !== null) {\n // We want to make sure that falsy values of `value` become empty strings.\n value = concatStringsWithSpace(staticPrefix, value ? value : '');\n }\n // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.\n // This takes over the `[style]` binding. (Same for `[class]`)\n setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);\n }\n else {\n updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);\n }\n }\n}\n/**\n * Determines when the binding is in `hostBindings` section\n *\n * @param tView Current `TView`\n * @param bindingIndex index of binding which we would like if it is in `hostBindings`\n */\nfunction isInHostBindings(tView, bindingIndex) {\n // All host bindings are placed after the expando section.\n return bindingIndex >= tView.expandoStartIndex;\n}\n/**\n * Collects the necessary information to insert the binding into a linked list of style bindings\n * using `insertTStylingBinding`.\n *\n * @param tView `TView` where the binding linked list will be stored.\n * @param tStylingKey Property/key of the binding.\n * @param bindingIndex Index of binding associated with the `prop`\n * @param isClassBased `true` if `class` change (`false` if `style`)\n */\nfunction stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {\n ngDevMode && assertFirstUpdatePass(tView);\n const tData = tView.data;\n if (tData[bindingIndex + 1] === null) {\n // The above check is necessary because we don't clear first update pass until first successful\n // (no exception) template execution. This prevents the styling instruction from double adding\n // itself to the list.\n // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the\n // if so as not to read unnecessarily.\n const tNode = tData[getSelectedIndex()];\n ngDevMode && assertDefined(tNode, 'TNode expected');\n const isHostBindings = isInHostBindings(tView, bindingIndex);\n if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {\n // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.\n // If there is a directive which uses `@Input('style')` or `@Input('class')` than\n // we need to neutralize this binding since that directive is shadowing it.\n // We turn this into a noop by setting the key to `false`\n tStylingKey = false;\n }\n tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);\n insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);\n }\n}\n/**\n * Adds static styling information to the binding if applicable.\n *\n * The linked list of styles not only stores the list and keys, but also stores static styling\n * information on some of the keys. This function determines if the key should contain the styling\n * information and computes it.\n *\n * See `TStylingStatic` for more details.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {\n const hostDirectiveDef = getCurrentDirectiveDef(tData);\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (hostDirectiveDef === null) {\n // We are in template node.\n // If template node already had styling instruction then it has already collected the static\n // styling and there is no need to collect them again. We know that we are the first styling\n // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).\n const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;\n if (isFirstStylingInstructionInTemplate) {\n // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point\n // they are already merged and it would not be possible to figure which property belongs where\n // in the priority.\n stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);\n stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);\n // We know that if we have styling binding in template we can't have residual.\n residual = null;\n }\n }\n else {\n // We are in host binding node and there was no binding instruction in template node.\n // This means that we need to compute the residual.\n const directiveStylingLast = tNode.directiveStylingLast;\n const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;\n if (isFirstStylingInstructionInHostBinding) {\n stylingKey =\n collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);\n if (residual === null) {\n // - If `null` than either:\n // - Template styling instruction already ran and it has consumed the static\n // styling into its `TStylingKey` and so there is no need to update residual. Instead\n // we need to update the `TStylingKey` associated with the first template node\n // instruction. OR\n // - Some other styling instruction ran and determined that there are no residuals\n let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);\n if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {\n // Only recompute if `templateStylingKey` had static values. (If no static value found\n // then there is nothing to do since this operation can only produce less static keys, not\n // more.)\n templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);\n templateStylingKey =\n collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);\n setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);\n }\n }\n else {\n // We only need to recompute residual if it is not `null`.\n // - If existing residual (implies there was no template styling). This means that some of\n // the statics may have moved from the residual to the `stylingKey` and so we have to\n // recompute.\n // - If `undefined` this is the first time we are running.\n residual = collectResidual(tData, tNode, isClassBased);\n }\n }\n }\n if (residual !== undefined) {\n isClassBased ? (tNode.residualClasses = residual) : (tNode.residualStyles = residual);\n }\n return stylingKey;\n}\n/**\n * Retrieve the `TStylingKey` for the template styling instruction.\n *\n * This is needed since `hostBinding` styling instructions are inserted after the template\n * instruction. While the template instruction needs to update the residual in `TNode` the\n * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because\n * the template instruction is downstream from the `hostBindings` instructions.\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @return `TStylingKey` if found or `undefined` if not found.\n */\nfunction getTemplateHeadTStylingKey(tData, tNode, isClassBased) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n if (getTStylingRangeNext(bindings) === 0) {\n // There does not seem to be a styling instruction in the `template`.\n return undefined;\n }\n return tData[getTStylingRangePrev(bindings)];\n}\n/**\n * Update the `TStylingKey` of the first template instruction in `TNode`.\n *\n * Logically `hostBindings` styling instructions are of lower priority than that of the template.\n * However, they execute after the template styling instructions. This means that they get inserted\n * in front of the template styling instructions.\n *\n * If we have a template styling instruction and a new `hostBindings` styling instruction is\n * executed it means that it may need to steal static fields from the template instruction. This\n * method allows us to update the first template instruction `TStylingKey` with a new value.\n *\n * Assume:\n * ```\n * <div my-dir style=\"color: red\" [style.color]=\"tmplExp\"></div>\n *\n * @Directive({\n * host: {\n * 'style': 'width: 100px',\n * '[style.color]': 'dirExp',\n * }\n * })\n * class MyDir {}\n * ```\n *\n * when `[style.color]=\"tmplExp\"` executes it creates this data structure.\n * ```\n * ['', 'color', 'color', 'red', 'width', '100px'],\n * ```\n *\n * The reason for this is that the template instruction does not know if there are styling\n * instructions and must assume that there are none and must collect all of the static styling.\n * (both\n * `color' and 'width`)\n *\n * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.\n * ```\n * ['', 'color', 'width', '100px'], // newly inserted\n * ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong\n * ```\n *\n * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to\n * update it like so:\n * ```\n * ['', 'color', 'width', '100px'],\n * ['', 'color', 'color', 'red'], // UPDATE\n * ```\n *\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param tStylingKey New `TStylingKey` which is replacing the old one.\n */\nfunction setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {\n const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;\n ngDevMode &&\n assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');\n tData[getTStylingRangePrev(bindings)] = tStylingKey;\n}\n/**\n * Collect all static values after the current `TNode.directiveStylingLast` index.\n *\n * Collect the remaining styling information which has not yet been collected by an existing\n * styling instruction.\n *\n * @param tData `TData` where the `DirectiveDefs` are stored.\n * @param tNode `TNode` which contains the directive range.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectResidual(tData, tNode, isClassBased) {\n let residual = undefined;\n const directiveEnd = tNode.directiveEnd;\n ngDevMode &&\n assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');\n // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are\n // collecting things after the last `hostBindings` directive which had a styling instruction.)\n for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {\n const attrs = tData[i].hostAttrs;\n residual = collectStylingFromTAttrs(residual, attrs, isClassBased);\n }\n return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);\n}\n/**\n * Collect the static styling information with lower priority than `hostDirectiveDef`.\n *\n * (This is opposite of residual styling.)\n *\n * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static\n * styling. (Or `null` if template styling)\n * @param tData `TData` where the linked list is stored.\n * @param tNode `TNode` for which the styling is being computed.\n * @param stylingKey Existing `TStylingKey` to update or wrap.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {\n // We need to loop because there can be directives which have `hostAttrs` but don't have\n // `hostBindings` so this loop catches up to the current directive..\n let currentDirective = null;\n const directiveEnd = tNode.directiveEnd;\n let directiveStylingLast = tNode.directiveStylingLast;\n if (directiveStylingLast === -1) {\n directiveStylingLast = tNode.directiveStart;\n }\n else {\n directiveStylingLast++;\n }\n while (directiveStylingLast < directiveEnd) {\n currentDirective = tData[directiveStylingLast];\n ngDevMode && assertDefined(currentDirective, 'expected to be defined');\n stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);\n if (currentDirective === hostDirectiveDef)\n break;\n directiveStylingLast++;\n }\n if (hostDirectiveDef !== null) {\n // we only advance the styling cursor if we are collecting data from host bindings.\n // Template executes before host bindings and so if we would update the index,\n // host bindings would not get their statics.\n tNode.directiveStylingLast = directiveStylingLast;\n }\n return stylingKey;\n}\n/**\n * Convert `TAttrs` into `TStylingStatic`.\n *\n * @param stylingKey existing `TStylingKey` to update or wrap.\n * @param attrs `TAttributes` to process.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {\n const desiredMarker = isClassBased ? 1 /* Classes */ : 2 /* Styles */;\n let currentMarker = -1 /* ImplicitAttributes */;\n if (attrs !== null) {\n for (let i = 0; i < attrs.length; i++) {\n const item = attrs[i];\n if (typeof item === 'number') {\n currentMarker = item;\n }\n else {\n if (currentMarker === desiredMarker) {\n if (!Array.isArray(stylingKey)) {\n stylingKey = stylingKey === undefined ? [] : ['', stylingKey];\n }\n keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);\n }\n }\n }\n }\n return stylingKey === undefined ? null : stylingKey;\n}\n/**\n * Convert user input to `KeyValueArray`.\n *\n * This function takes user input which could be `string`, Object literal, or iterable and converts\n * it into a consistent representation. The output of this is `KeyValueArray` (which is an array\n * where\n * even indexes contain keys and odd indexes contain values for those keys).\n *\n * The advantage of converting to `KeyValueArray` is that we can perform diff in an input\n * independent\n * way.\n * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be\n * applied)\n *\n * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the\n * difference in linear fashion without the need to allocate any additional data.\n *\n * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine\n * which values need to be deleted, over the new `Map` to determine additions, and we would have to\n * keep additional `Map` to keep track of duplicates or items which have not yet been visited.\n *\n * @param keyValueArraySet (See `keyValueArraySet` in \"util/array_utils\") Gets passed in as a\n * function so that `style` can be processed. This is done\n * for tree shaking purposes.\n * @param stringParser The parser is passed in so that it will be tree shakable. See\n * `styleStringParser` and `classStringParser`\n * @param value The value to parse/convert to `KeyValueArray`\n */\nfunction toStylingKeyValueArray(keyValueArraySet, stringParser, value) {\n if (value == null /*|| value === undefined */ || value === '')\n return EMPTY_ARRAY;\n const styleKeyValueArray = [];\n const unwrappedValue = unwrapSafeValue(value);\n if (Array.isArray(unwrappedValue)) {\n for (let i = 0; i < unwrappedValue.length; i++) {\n keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);\n }\n }\n else if (typeof unwrappedValue === 'object') {\n for (const key in unwrappedValue) {\n if (unwrappedValue.hasOwnProperty(key)) {\n keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);\n }\n }\n }\n else if (typeof unwrappedValue === 'string') {\n stringParser(styleKeyValueArray, unwrappedValue);\n }\n else {\n ngDevMode &&\n throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);\n }\n return styleKeyValueArray;\n}\n/**\n * Set a `value` for a `key`.\n *\n * See: `keyValueArraySet` for details\n *\n * @param keyValueArray KeyValueArray to add to.\n * @param key Style key to add.\n * @param value The value to set.\n */\nfunction styleKeyValueArraySet(keyValueArray, key, value) {\n keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));\n}\n/**\n * Update map based styling.\n *\n * Map based styling could be anything which contains more than one binding. For example `string`,\n * or object literal. Dealing with all of these types would complicate the logic so\n * instead this function expects that the complex input is first converted into normalized\n * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it\n * very cheap to compute deltas between the previous and current value.\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param oldKeyValueArray Previous value represented as `KeyValueArray`\n * @param newKeyValueArray Current value represented as `KeyValueArray`\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {\n if (oldKeyValueArray === NO_CHANGE) {\n // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.\n oldKeyValueArray = EMPTY_ARRAY;\n }\n let oldIndex = 0;\n let newIndex = 0;\n let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;\n let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;\n while (oldKey !== null || newKey !== null) {\n ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');\n ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');\n const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;\n const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;\n let setKey = null;\n let setValue = undefined;\n if (oldKey === newKey) {\n // UPDATE: Keys are equal => new value is overwriting old value.\n oldIndex += 2;\n newIndex += 2;\n if (oldValue !== newValue) {\n setKey = newKey;\n setValue = newValue;\n }\n }\n else if (newKey === null || oldKey !== null && oldKey < newKey) {\n // DELETE: oldKey key is missing or we did not find the oldKey in the newValue\n // (because the keyValueArray is sorted and `newKey` is found later alphabetically).\n // `\"background\" < \"color\"` so we need to delete `\"background\"` because it is not found in the\n // new array.\n oldIndex += 2;\n setKey = oldKey;\n }\n else {\n // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.\n // `\"color\" > \"background\"` so we need to add `color` because it is in new array but not in\n // old array.\n ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');\n newIndex += 2;\n setKey = newKey;\n setValue = newValue;\n }\n if (setKey !== null) {\n updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);\n }\n oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;\n newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;\n }\n}\n/**\n * Update a simple (property name) styling.\n *\n * This function takes `prop` and updates the DOM to that value. The function takes the binding\n * value as well as binding priority into consideration to determine which value should be written\n * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks\n * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)\n *\n * @param tView Associated `TView.data` contains the linked list of binding priorities.\n * @param tNode `TNode` where the binding is located.\n * @param lView `LView` contains the values associated with other styling binding at this `TNode`.\n * @param renderer Renderer to use if any updates.\n * @param prop Either style property name or a class name.\n * @param value Either style value for `prop` or `true`/`false` if `prop` is class.\n * @param isClassBased `true` if `class` (`false` if `style`)\n * @param bindingIndex Binding index of the binding.\n */\nfunction updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {\n if (!(tNode.type & 3 /* AnyRNode */)) {\n // It is possible to have styling on non-elements (such as ng-container).\n // This is rare, but it does happen. In such a case, just ignore the binding.\n return;\n }\n const tData = tView.data;\n const tRange = tData[bindingIndex + 1];\n const higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ?\n findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) :\n undefined;\n if (!isStylingValuePresent(higherPriorityValue)) {\n // We don't have a next duplicate, or we did not find a duplicate value.\n if (!isStylingValuePresent(value)) {\n // We should delete current value or restore to lower priority value.\n if (getTStylingRangePrevDuplicate(tRange)) {\n // We have a possible prev duplicate, let's retrieve it.\n value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);\n }\n }\n const rNode = getNativeByIndex(getSelectedIndex(), lView);\n applyStyling(renderer, isClassBased, rNode, prop, value);\n }\n}\n/**\n * Search for styling value with higher priority which is overwriting current value, or a\n * value of lower priority to which we should fall back if the value is `undefined`.\n *\n * When value is being applied at a location, related values need to be consulted.\n * - If there is a higher priority binding, we should be using that one instead.\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp1`\n * requires that we check `exp2` to see if it is set to value other than `undefined`.\n * - If there is a lower priority binding and we are changing to `undefined`\n * For example `<div [style]=\"{color:exp1}\" [style.color]=\"exp2\">` change to `exp2` to\n * `undefined` requires that we check `exp1` (and static values) and use that as new value.\n *\n * NOTE: The styling stores two values.\n * 1. The raw value which came from the application is stored at `index + 0` location. (This value\n * is used for dirty checking).\n * 2. The normalized value is stored at `index + 1`.\n *\n * @param tData `TData` used for traversing the priority.\n * @param tNode `TNode` to use for resolving static styling. Also controls search direction.\n * - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n * If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n * - `null` search prev and go all the way to end. Return last value where\n * `isStylingValuePresent(value)` is true.\n * @param lView `LView` used for retrieving the actual values.\n * @param prop Property which we are interested in.\n * @param index Starting index in the linked list of styling bindings where the search should start.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction findStylingValue(tData, tNode, lView, prop, index, isClassBased) {\n // `TNode` to use for resolving static styling. Also controls search direction.\n // - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.\n // If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.\n // - `null` search prev and go all the way to end. Return last value where\n // `isStylingValuePresent(value)` is true.\n const isPrevDirection = tNode === null;\n let value = undefined;\n while (index > 0) {\n const rawKey = tData[index];\n const containsStatics = Array.isArray(rawKey);\n // Unwrap the key if we contain static values.\n const key = containsStatics ? rawKey[1] : rawKey;\n const isStylingMap = key === null;\n let valueAtLViewIndex = lView[index + 1];\n if (valueAtLViewIndex === NO_CHANGE) {\n // In firstUpdatePass the styling instructions create a linked list of styling.\n // On subsequent passes it is possible for a styling instruction to try to read a binding\n // which\n // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that\n // we have `undefined` (or empty array in case of styling-map instruction) instead. This\n // allows the resolution to apply the value (which may later be overwritten when the\n // binding actually executes.)\n valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;\n }\n let currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) :\n key === prop ? valueAtLViewIndex : undefined;\n if (containsStatics && !isStylingValuePresent(currentValue)) {\n currentValue = keyValueArrayGet(rawKey, prop);\n }\n if (isStylingValuePresent(currentValue)) {\n value = currentValue;\n if (isPrevDirection) {\n return value;\n }\n }\n const tRange = tData[index + 1];\n index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);\n }\n if (tNode !== null) {\n // in case where we are going in next direction AND we did not find anything, we need to\n // consult residual styling\n let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;\n if (residual != null /** OR residual !=== undefined */) {\n value = keyValueArrayGet(residual, prop);\n }\n }\n return value;\n}\n/**\n * Determines if the binding value should be used (or if the value is 'undefined' and hence priority\n * resolution should be used.)\n *\n * @param value Binding style value.\n */\nfunction isStylingValuePresent(value) {\n // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't\n // have an opinion as to what this binding should be and you should consult other bindings by\n // priority to determine the valid value.\n // This is extracted into a single function so that we have a single place to control this.\n return value !== undefined;\n}\n/**\n * Normalizes and/or adds a suffix to the value.\n *\n * If value is `null`/`undefined` no suffix is added\n * @param value\n * @param suffix\n */\nfunction normalizeSuffix(value, suffix) {\n if (value == null /** || value === undefined */) {\n // do nothing\n }\n else if (typeof suffix === 'string') {\n value = value + suffix;\n }\n else if (typeof value === 'object') {\n value = stringify(unwrapSafeValue(value));\n }\n return value;\n}\n/**\n * Tests if the `TNode` has input shadow.\n *\n * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or\n * `@Input('class')` as input.\n *\n * @param tNode `TNode` which we would like to see if it has shadow.\n * @param isClassBased `true` if `class` (`false` if `style`)\n */\nfunction hasStylingInputShadow(tNode, isClassBased) {\n return (tNode.flags & (isClassBased ? 16 /* hasClassInput */ : 32 /* hasStyleInput */)) !== 0;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Create static text node\n *\n * @param index Index of the node in the data array\n * @param value Static string value to write.\n *\n * @codeGenApi\n */\nfunction ɵɵtext(index, value = '') {\n const lView = getLView();\n const tView = getTView();\n const adjustedIndex = index + HEADER_OFFSET;\n ngDevMode &&\n assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');\n ngDevMode && assertIndexInRange(lView, adjustedIndex);\n const tNode = tView.firstCreatePass ?\n getOrCreateTNode(tView, adjustedIndex, 1 /* Text */, value, null) :\n tView.data[adjustedIndex];\n const textNative = lView[adjustedIndex] = createTextNode(lView[RENDERER], value);\n appendChild(tView, lView, textNative, tNode);\n // Text nodes are self closing.\n setCurrentTNode(tNode, false);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n *\n * Update text content with a lone bound value\n *\n * Used when a text node has 1 interpolated value in it, an no additional text\n * surrounds that interpolated value:\n *\n * ```html\n * <div>{{v0}}</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate(v0);\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate(v0) {\n ɵɵtextInterpolate1('', v0, '');\n return ɵɵtextInterpolate;\n}\n/**\n *\n * Update text content with single bound value surrounded by other text.\n *\n * Used when a text node has 1 interpolated value in it:\n *\n * ```html\n * <div>prefix{{v0}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate1('prefix', v0, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolated = interpolation1(lView, prefix, v0, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate1;\n}\n/**\n *\n * Update text content with 2 bound values surrounded by other text.\n *\n * Used when a text node has 2 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate2;\n}\n/**\n *\n * Update text content with 3 bound values surrounded by other text.\n *\n * Used when a text node has 3 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate3;\n}\n/**\n *\n * Update text content with 4 bound values surrounded by other text.\n *\n * Used when a text node has 4 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see ɵɵtextInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate4;\n}\n/**\n *\n * Update text content with 5 bound values surrounded by other text.\n *\n * Used when a text node has 5 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate5;\n}\n/**\n *\n * Update text content with 6 bound values surrounded by other text.\n *\n * Used when a text node has 6 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change. @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate6;\n}\n/**\n *\n * Update text content with 7 bound values surrounded by other text.\n *\n * Used when a text node has 7 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate7;\n}\n/**\n *\n * Update text content with 8 bound values surrounded by other text.\n *\n * Used when a text node has 8 interpolated values in it:\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n * @returns itself, so that it may be chained.\n * @see textInterpolateV\n * @codeGenApi\n */\nfunction ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolate8;\n}\n/**\n * Update text content with 9 or more bound values other surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵtextInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n *\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵtextInterpolateV(values) {\n const lView = getLView();\n const interpolated = interpolationV(lView, values);\n if (interpolated !== NO_CHANGE) {\n textBindingInternal(lView, getSelectedIndex(), interpolated);\n }\n return ɵɵtextInterpolateV;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n *\n * Update an interpolated class on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate3(\n * 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate4(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate5(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate6(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate7(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n *\n * Update an interpolated class on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolate8(\n * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n/**\n * Update an interpolated class on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵclassMapInterpolateV(\n * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵclassMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n *\n * Update an interpolated style on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style=\"key: {{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate1(prefix, v0, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate3(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate4(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate5(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};\n * key5: {{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate6(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate7(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n *\n * Update an interpolated style on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolate8(\n * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, 'suffix');\n * ```\n *\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n ɵɵstyleMap(interpolatedValue);\n}\n/**\n * Update an interpolated style on an element with 9 or more bound values surrounded by text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * class=\"key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};\n * key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstyleMapInterpolateV(\n * ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,\n * '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);\n * ```\n *.\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)\n * @codeGenApi\n */\nfunction ɵɵstyleMapInterpolateV(values) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n ɵɵstyleMap(interpolatedValue);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n *\n * Update an interpolated style property on an element with single bound value surrounded by text.\n *\n * Used when the value passed to a property has 1 interpolated value in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation1(lView, prefix, v0, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate1;\n}\n/**\n *\n * Update an interpolated style property on an element with 2 bound values surrounded by text.\n *\n * Used when the value passed to a property has 2 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate2;\n}\n/**\n *\n * Update an interpolated style property on an element with 3 bound values surrounded by text.\n *\n * Used when the value passed to a property has 3 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate3;\n}\n/**\n *\n * Update an interpolated style property on an element with 4 bound values surrounded by text.\n *\n * Used when the value passed to a property has 4 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate4;\n}\n/**\n *\n * Update an interpolated style property on an element with 5 bound values surrounded by text.\n *\n * Used when the value passed to a property has 5 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate5;\n}\n/**\n *\n * Update an interpolated style property on an element with 6 bound values surrounded by text.\n *\n * Used when the value passed to a property has 6 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate6;\n}\n/**\n *\n * Update an interpolated style property on an element with 7 bound values surrounded by text.\n *\n * Used when the value passed to a property has 7 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate7(\n * 0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate7;\n}\n/**\n *\n * Update an interpolated style property on an element with 8 bound values surrounded by text.\n *\n * Used when the value passed to a property has 8 interpolated values in it:\n *\n * ```html\n * <div style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix\"></div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,\n * '-', v7, 'suffix');\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`.\n * @param prefix Static value used for concatenation only.\n * @param v0 Value checked for change.\n * @param i0 Static value used for concatenation only.\n * @param v1 Value checked for change.\n * @param i1 Static value used for concatenation only.\n * @param v2 Value checked for change.\n * @param i2 Static value used for concatenation only.\n * @param v3 Value checked for change.\n * @param i3 Static value used for concatenation only.\n * @param v4 Value checked for change.\n * @param i4 Static value used for concatenation only.\n * @param v5 Value checked for change.\n * @param i5 Static value used for concatenation only.\n * @param v6 Value checked for change.\n * @param i6 Static value used for concatenation only.\n * @param v7 Value checked for change.\n * @param suffix Static value used for concatenation only.\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolate8;\n}\n/**\n * Update an interpolated style property on an element with 9 or more bound values surrounded by\n * text.\n *\n * Used when the number of interpolated values exceeds 8.\n *\n * ```html\n * <div\n * style.color=\"prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix\">\n * </div>\n * ```\n *\n * Its compiled representation is:\n *\n * ```ts\n * ɵɵstylePropInterpolateV(\n * 0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,\n * 'suffix']);\n * ```\n *\n * @param styleIndex Index of style to update. This index value refers to the\n * index of the style in the style bindings array that was passed into\n * `styling`..\n * @param values The collection of values and the strings in-between those values, beginning with\n * a string prefix and ending with a string suffix.\n * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)\n * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.\n * @returns itself, so that it may be chained.\n * @codeGenApi\n */\nfunction ɵɵstylePropInterpolateV(prop, values, valueSuffix) {\n const lView = getLView();\n const interpolatedValue = interpolationV(lView, values);\n checkStylingProperty(prop, interpolatedValue, valueSuffix, false);\n return ɵɵstylePropInterpolateV;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Update a property on a host element. Only applies to native node properties, not inputs.\n *\n * Operates on the element selected by index via the {@link select} instruction.\n *\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n * @returns This function returns itself so that it may be chained\n * (e.g. `property('name', ctx.name)('title', ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵhostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵhostProperty;\n}\n/**\n * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.\n *\n * This instruction is for compatibility purposes and is designed to ensure that a\n * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in\n * the component's renderer. Normally all host bindings are evaluated with the parent\n * component's renderer, but, in the case of animation @triggers, they need to be\n * evaluated with the sub component's renderer (because that's where the animation\n * triggers are defined).\n *\n * Do not use this instruction as a replacement for `elementProperty`. This instruction\n * only exists to ensure compatibility with the ViewEngine's host binding behavior.\n *\n * @param index The index of the element to update in the data array\n * @param propName Name of property. Because it is going to DOM, this is not subject to\n * renaming as part of minification.\n * @param value New value to write.\n * @param sanitizer An optional function used to sanitize the value.\n *\n * @codeGenApi\n */\nfunction ɵɵsyntheticHostProperty(propName, value, sanitizer) {\n const lView = getLView();\n const bindingIndex = nextBindingIndex();\n if (bindingUpdated(lView, bindingIndex, value)) {\n const tView = getTView();\n const tNode = getSelectedTNode();\n const currentDef = getCurrentDirectiveDef(tView.data);\n const renderer = loadComponentRenderer(currentDef, tNode, lView);\n elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);\n ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);\n }\n return ɵɵsyntheticHostProperty;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nif (typeof ngI18nClosureMode === 'undefined') {\n // These property accesses can be ignored because ngI18nClosureMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.\n // NOTE: we need to have it in IIFE so that the tree-shaker is happy.\n (function () {\n // tslint:disable-next-line:no-toplevel-property-access\n _global['ngI18nClosureMode'] =\n // TODO(FW-1250): validate that this actually, you know, works.\n // tslint:disable-next-line:no-toplevel-property-access\n typeof goog !== 'undefined' && typeof goog.getMsg === 'function';\n })();\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// THIS CODE IS GENERATED - DO NOT MODIFY.\nconst u = undefined;\nfunction plural(val) {\n const n = val, i = Math.floor(Math.abs(val)), v = val.toString().replace(/^[^.]*\\.?/, '').length;\n if (i === 1 && v === 0)\n return 1;\n return 5;\n}\nvar localeEn = [\"en\", [[\"a\", \"p\"], [\"AM\", \"PM\"], u], [[\"AM\", \"PM\"], u, u], [[\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"], [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"], [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"], [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"]], u, [[\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"], [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"], [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"]], u, [[\"B\", \"A\"], [\"BC\", \"AD\"], [\"Before Christ\", \"Anno Domini\"]], 0, [6, 0], [\"M/d/yy\", \"MMM d, y\", \"MMMM d, y\", \"EEEE, MMMM d, y\"], [\"h:mm a\", \"h:mm:ss a\", \"h:mm:ss a z\", \"h:mm:ss a zzzz\"], [\"{1}, {0}\", u, \"{1} 'at' {0}\", u], [\".\", \",\", \";\", \"%\", \"+\", \"-\", \"E\", \"×\", \"‰\", \"∞\", \"NaN\", \":\"], [\"#,##0.###\", \"#,##0%\", \"¤#,##0.00\", \"#E0\"], \"USD\", \"$\", \"US Dollar\", {}, \"ltr\", plural];\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This const is used to store the locale data registered with `registerLocaleData`\n */\nlet LOCALE_DATA = {};\n/**\n * Register locale data to be used internally by Angular. See the\n * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale\n * data.\n *\n * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1\n */\nfunction registerLocaleData(data, localeId, extraData) {\n if (typeof localeId !== 'string') {\n extraData = localeId;\n localeId = data[LocaleDataIndex.LocaleId];\n }\n localeId = localeId.toLowerCase().replace(/_/g, '-');\n LOCALE_DATA[localeId] = data;\n if (extraData) {\n LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;\n }\n}\n/**\n * Finds the locale data for a given locale.\n *\n * @param locale The locale code.\n * @returns The locale data.\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction findLocaleData(locale) {\n const normalizedLocale = normalizeLocale(locale);\n let match = getLocaleData(normalizedLocale);\n if (match) {\n return match;\n }\n // let's try to find a parent locale\n const parentLocale = normalizedLocale.split('-')[0];\n match = getLocaleData(parentLocale);\n if (match) {\n return match;\n }\n if (parentLocale === 'en') {\n return localeEn;\n }\n throw new Error(`Missing locale data for the locale \"${locale}\".`);\n}\n/**\n * Retrieves the default currency code for the given locale.\n *\n * The default is defined as the first currency which is still in use.\n *\n * @param locale The code of the locale whose currency code we want.\n * @returns The code of the default currency for the given locale.\n *\n */\nfunction getLocaleCurrencyCode(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.CurrencyCode] || null;\n}\n/**\n * Retrieves the plural function used by ICU expressions to determine the plural case to use\n * for a given locale.\n * @param locale A locale code for the locale format rules to use.\n * @returns The plural function for the locale.\n * @see `NgPlural`\n * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)\n */\nfunction getLocalePluralCase(locale) {\n const data = findLocaleData(locale);\n return data[LocaleDataIndex.PluralCase];\n}\n/**\n * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`\n * or from the global `ng.common.locale`.\n */\nfunction getLocaleData(normalizedLocale) {\n if (!(normalizedLocale in LOCALE_DATA)) {\n LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales &&\n _global.ng.common.locales[normalizedLocale];\n }\n return LOCALE_DATA[normalizedLocale];\n}\n/**\n * Helper function to remove all the locale data from `LOCALE_DATA`.\n */\nfunction unregisterAllLocaleData() {\n LOCALE_DATA = {};\n}\n/**\n * Index of each type of locale data from the locale data array\n */\nvar LocaleDataIndex;\n(function (LocaleDataIndex) {\n LocaleDataIndex[LocaleDataIndex[\"LocaleId\"] = 0] = \"LocaleId\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsFormat\"] = 1] = \"DayPeriodsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DayPeriodsStandalone\"] = 2] = \"DayPeriodsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"DaysFormat\"] = 3] = \"DaysFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DaysStandalone\"] = 4] = \"DaysStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsFormat\"] = 5] = \"MonthsFormat\";\n LocaleDataIndex[LocaleDataIndex[\"MonthsStandalone\"] = 6] = \"MonthsStandalone\";\n LocaleDataIndex[LocaleDataIndex[\"Eras\"] = 7] = \"Eras\";\n LocaleDataIndex[LocaleDataIndex[\"FirstDayOfWeek\"] = 8] = \"FirstDayOfWeek\";\n LocaleDataIndex[LocaleDataIndex[\"WeekendRange\"] = 9] = \"WeekendRange\";\n LocaleDataIndex[LocaleDataIndex[\"DateFormat\"] = 10] = \"DateFormat\";\n LocaleDataIndex[LocaleDataIndex[\"TimeFormat\"] = 11] = \"TimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"DateTimeFormat\"] = 12] = \"DateTimeFormat\";\n LocaleDataIndex[LocaleDataIndex[\"NumberSymbols\"] = 13] = \"NumberSymbols\";\n LocaleDataIndex[LocaleDataIndex[\"NumberFormats\"] = 14] = \"NumberFormats\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyCode\"] = 15] = \"CurrencyCode\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencySymbol\"] = 16] = \"CurrencySymbol\";\n LocaleDataIndex[LocaleDataIndex[\"CurrencyName\"] = 17] = \"CurrencyName\";\n LocaleDataIndex[LocaleDataIndex[\"Currencies\"] = 18] = \"Currencies\";\n LocaleDataIndex[LocaleDataIndex[\"Directionality\"] = 19] = \"Directionality\";\n LocaleDataIndex[LocaleDataIndex[\"PluralCase\"] = 20] = \"PluralCase\";\n LocaleDataIndex[LocaleDataIndex[\"ExtraData\"] = 21] = \"ExtraData\";\n})(LocaleDataIndex || (LocaleDataIndex = {}));\n/**\n * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.\n */\nfunction normalizeLocale(locale) {\n return locale.toLowerCase().replace(/_/g, '-');\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst pluralMapping = ['zero', 'one', 'two', 'few', 'many'];\n/**\n * Returns the plural case based on the locale\n */\nfunction getPluralCase(value, locale) {\n const plural = getLocalePluralCase(locale)(parseInt(value, 10));\n const result = pluralMapping[plural];\n return (result !== undefined) ? result : 'other';\n}\n/**\n * The locale id that the application is using by default (for translations and ICU expressions).\n */\nconst DEFAULT_LOCALE_ID = 'en-US';\n/**\n * USD currency code that the application uses by default for CurrencyPipe when no\n * DEFAULT_CURRENCY_CODE is provided.\n */\nconst USD_CURRENCY_CODE = 'USD';\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Marks that the next string is an element name.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ELEMENT_MARKER = {\n marker: 'element'\n};\n/**\n * Marks that the next string is comment text need for ICU.\n *\n * See `I18nMutateOpCodes` documentation.\n */\nconst ICU_MARKER = {\n marker: 'ICU'\n};\n/**\n * See `I18nCreateOpCodes`\n */\nvar I18nCreateOpCode;\n(function (I18nCreateOpCode) {\n /**\n * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and\n * `COMMENT`.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"SHIFT\"] = 2] = \"SHIFT\";\n /**\n * Should the node be appended to parent imedditatly after creation.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"APPEND_EAGERLY\"] = 1] = \"APPEND_EAGERLY\";\n /**\n * If set the node should be comment (rather than a text) node.\n */\n I18nCreateOpCode[I18nCreateOpCode[\"COMMENT\"] = 2] = \"COMMENT\";\n})(I18nCreateOpCode || (I18nCreateOpCode = {}));\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$2 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The locale id that the application is currently using (for translations and ICU expressions).\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nlet LOCALE_ID$1 = DEFAULT_LOCALE_ID;\n/**\n * Sets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n *\n * @param localeId\n */\nfunction setLocaleId(localeId) {\n assertDefined(localeId, `Expected localeId to be defined`);\n if (typeof localeId === 'string') {\n LOCALE_ID$1 = localeId.toLowerCase().replace(/_/g, '-');\n }\n}\n/**\n * Gets the locale id that will be used for translations and ICU expressions.\n * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine\n * but is now defined as a global value.\n */\nfunction getLocaleId() {\n return LOCALE_ID$1;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).\n *\n * This method determines the `RNode` in front of which we should insert the `currentRNode`. This\n * takes `TNode.insertBeforeIndex` into account.\n *\n * @param parentTNode parent `TNode`\n * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)\n * @param lView current `LView`\n */\nfunction getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {\n const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;\n const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;\n if (insertBeforeIndex === null) {\n return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);\n }\n else {\n ngDevMode && assertIndexInRange(lView, insertBeforeIndex);\n return unwrapRNode(lView[insertBeforeIndex]);\n }\n}\n/**\n * Process `TNode.insertBeforeIndex` by adding i18n text nodes.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {\n const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;\n if (Array.isArray(tNodeInsertBeforeIndex)) {\n // An array indicates that there are i18n nodes that need to be added as children of this\n // `childRNode`. These i18n nodes were created before this `childRNode` was available and so\n // only now can be added. The first element of the array is the normal index where we should\n // insert the `childRNode`. Additional elements are the extra nodes to be added as children of\n // `childRNode`.\n ngDevMode && assertDomNode(childRNode);\n let i18nParent = childRNode;\n let anchorRNode = null;\n if (!(childTNode.type & 3 /* AnyRNode */)) {\n anchorRNode = i18nParent;\n i18nParent = parentRElement;\n }\n if (i18nParent !== null && (childTNode.flags & 2 /* isComponentHost */) === 0) {\n for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {\n // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.\n // see `assertDomNode` below.\n const i18nChild = lView[tNodeInsertBeforeIndex[i]];\n nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);\n }\n }\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list\n * `tNode.insertBeforeIndex`.\n *\n * Things to keep in mind:\n * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the\n * `ɵɵi18nStart` instruction.\n * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by\n * `ɵɵelementStart` instruction.\n * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a\n * smaller index `TNode` is guaranteed to be created before a larger one)\n *\n * We use the above three invariants to determine `TNode.insertBeforeIndex`.\n *\n * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,\n * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that\n * the next node is not yet created and therefore we can't insert in front of it.\n *\n * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't\n * know if there will be further `TNode`s inserted after.)\n * Rule2: If `previousTNode` is created after the `tNode` being inserted, then\n * `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check\n * previous to see if we can update its `insertBeforeTNode`)\n *\n * See `TNode.insertBeforeIndex` for more context.\n *\n * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in\n * reverse order. (If `TNode` would have `previous` this would not be necessary.)\n * @param newTNode A TNode to add to the `previousTNodes` list.\n */\nfunction addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {\n // Start with Rule1\n ngDevMode &&\n assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');\n previousTNodes.push(newTNode);\n if (previousTNodes.length > 1) {\n for (let i = previousTNodes.length - 2; i >= 0; i--) {\n const existingTNode = previousTNodes[i];\n // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.\n // It is safe to ignore them.\n if (!isI18nText(existingTNode)) {\n if (isNewTNodeCreatedBefore(existingTNode, newTNode) &&\n getInsertBeforeIndex(existingTNode) === null) {\n // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)\n // then add the `insertBeforeIndex`.\n setInsertBeforeIndex(existingTNode, newTNode.index);\n }\n }\n }\n }\n}\nfunction isI18nText(tNode) {\n return !(tNode.type & 64 /* Placeholder */);\n}\nfunction isNewTNodeCreatedBefore(existingTNode, newTNode) {\n return isI18nText(newTNode) || existingTNode.index > newTNode.index;\n}\nfunction getInsertBeforeIndex(tNode) {\n const index = tNode.insertBeforeIndex;\n return Array.isArray(index) ? index[0] : index;\n}\nfunction setInsertBeforeIndex(tNode, value) {\n const index = tNode.insertBeforeIndex;\n if (Array.isArray(index)) {\n // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`\n index[0] = value;\n }\n else {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n tNode.insertBeforeIndex = value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Retrieve `TIcu` at a given `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be read from.\n */\nfunction getTIcu(tView, index) {\n const value = tView.data[index];\n if (value === null || typeof value === 'string')\n return null;\n if (ngDevMode &&\n !(value.hasOwnProperty('tViews') || value.hasOwnProperty('currentCaseLViewIndex'))) {\n throwError('We expect to get \\'null\\'|\\'TIcu\\'|\\'TIcuContainer\\', but got: ' + value);\n }\n // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be\n // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it\n // will be just two cases which fits into the browser inline cache (inline cache can take up to\n // 4)\n const tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value :\n value.value;\n ngDevMode && assertTIcu(tIcu);\n return tIcu;\n}\n/**\n * Store `TIcu` at a give `index`.\n *\n * The `TIcu` can be stored either directly (if it is nested ICU) OR\n * it is stored inside tho `TIcuContainer` if it is top level ICU.\n *\n * The reason for this is that the top level ICU need a `TNode` so that they are part of the render\n * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is\n * expressed (parent ICU may have selected a case which does not contain it.)\n *\n * @param tView Current `TView`.\n * @param index Index where the value should be stored at in `Tview.data`\n * @param tIcu The TIcu to store.\n */\nfunction setTIcu(tView, index, tIcu) {\n const tNode = tView.data[index];\n ngDevMode &&\n assertEqual(tNode === null || tNode.hasOwnProperty('tViews'), true, 'We expect to get \\'null\\'|\\'TIcuContainer\\'');\n if (tNode === null) {\n tView.data[index] = tIcu;\n }\n else {\n ngDevMode && assertTNodeType(tNode, 32 /* Icu */);\n tNode.value = tIcu;\n }\n}\n/**\n * Set `TNode.insertBeforeIndex` taking the `Array` into account.\n *\n * See `TNode.insertBeforeIndex`\n */\nfunction setTNodeInsertBeforeIndex(tNode, index) {\n ngDevMode && assertTNode(tNode);\n let insertBeforeIndex = tNode.insertBeforeIndex;\n if (insertBeforeIndex === null) {\n setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);\n insertBeforeIndex = tNode.insertBeforeIndex =\n [null /* may be updated to number later */, index];\n }\n else {\n assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');\n insertBeforeIndex.push(index);\n }\n}\n/**\n * Create `TNode.type=TNodeType.Placeholder` node.\n *\n * See `TNodeType.Placeholder` for more information.\n */\nfunction createTNodePlaceholder(tView, previousTNodes, index) {\n const tNode = createTNodeAtIndex(tView, index, 64 /* Placeholder */, null, null);\n addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);\n return tNode;\n}\n/**\n * Returns current ICU case.\n *\n * ICU cases are stored as index into the `TIcu.cases`.\n * At times it is necessary to communicate that the ICU case just switched and that next ICU update\n * should update all bindings regardless of the mask. In such a case the we store negative numbers\n * for cases which have just been switched. This function removes the negative flag.\n */\nfunction getCurrentICUCaseIndex(tIcu, lView) {\n const currentCase = lView[tIcu.currentCaseLViewIndex];\n return currentCase === null ? currentCase : (currentCase < 0 ? ~currentCase : currentCase);\n}\nfunction getParentFromIcuCreateOpCode(mergedCode) {\n return mergedCode >>> 17 /* SHIFT_PARENT */;\n}\nfunction getRefFromIcuCreateOpCode(mergedCode) {\n return (mergedCode & 131070 /* MASK_REF */) >>> 1 /* SHIFT_REF */;\n}\nfunction getInstructionFromIcuCreateOpCode(mergedCode) {\n return mergedCode & 1 /* MASK_INSTRUCTION */;\n}\nfunction icuCreateOpCode(opCode, parentIdx, refIdx) {\n ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');\n ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');\n return opCode | parentIdx << 17 /* SHIFT_PARENT */ | refIdx << 1 /* SHIFT_REF */;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * This is used to efficiently update expressions in i18n only when the corresponding input has\n * changed.\n *\n * 1) Each bit represents which of the `ɵɵi18nExp` has changed.\n * 2) There are 32 bits allowed in JS.\n * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more\n * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means\n * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare\n * so in practice it should not be an issue.)\n */\nlet changeMask = 0b0;\n/**\n * Keeps track of which bit needs to be updated in `changeMask`\n *\n * This value gets incremented on every call to `ɵɵi18nExp`\n */\nlet changeMaskCounter = 0;\n/**\n * Keep track of which input bindings in `ɵɵi18nExp` have changed.\n *\n * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.\n *\n * @param hasChange did `ɵɵi18nExp` detect a change.\n */\nfunction setMaskBit(hasChange) {\n if (hasChange) {\n changeMask = changeMask | (1 << Math.min(changeMaskCounter, 31));\n }\n changeMaskCounter++;\n}\nfunction applyI18n(tView, lView, index) {\n if (changeMaskCounter > 0) {\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const tI18n = tView.data[index];\n // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`\n const updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;\n const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;\n applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);\n }\n // Reset changeMask & maskBit to default for the next update cycle\n changeMask = 0b0;\n changeMaskCounter = 0;\n}\n/**\n * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.\n *\n * Creates text (and comment) nodes which are internationalized.\n *\n * @param lView Current lView\n * @param createOpCodes Set of op-codes to apply\n * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is\n * a root node.\n * @param insertInFrontOf DOM node that should be used as an anchor.\n */\nfunction applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {\n const renderer = lView[RENDERER];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n let rNode = lView[index];\n if (rNode === null) {\n // We only create new DOM nodes if they don't already exist: If ICU switches case back to a\n // case which was already instantiated, no need to create new DOM nodes.\n rNode = lView[index] =\n isComment ? renderer.createComment(text) : createTextNode(renderer, text);\n }\n if (appendNow && parentRNode !== null) {\n nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);\n }\n }\n}\n/**\n * Apply `I18nMutateOpCodes` OpCodes.\n *\n * @param tView Current `TView`\n * @param mutableOpCodes Mutable OpCodes to process\n * @param lView Current `LView`\n * @param anchorRNode place where the i18n node should be inserted.\n */\nfunction applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n const renderer = lView[RENDERER];\n // `rootIdx` represents the node into which all inserts happen.\n let rootIdx = null;\n // `rootRNode` represents the real node into which we insert. This can be different from\n // `lView[rootIdx]` if we have projection.\n // - null we don't have a parent (as can be the case in when we are inserting into a root of\n // LView which has no parent.)\n // - `RElement` The element representing the root after taking projection into account.\n let rootRNode;\n for (let i = 0; i < mutableOpCodes.length; i++) {\n const opCode = mutableOpCodes[i];\n if (typeof opCode == 'string') {\n const textNodeIndex = mutableOpCodes[++i];\n if (lView[textNodeIndex] === null) {\n ngDevMode && ngDevMode.rendererCreateTextNode++;\n ngDevMode && assertIndexInRange(lView, textNodeIndex);\n lView[textNodeIndex] = createTextNode(renderer, opCode);\n }\n }\n else if (typeof opCode == 'number') {\n switch (opCode & 1 /* MASK_INSTRUCTION */) {\n case 0 /* AppendChild */:\n const parentIdx = getParentFromIcuCreateOpCode(opCode);\n if (rootIdx === null) {\n // The first operation should save the `rootIdx` because the first operation\n // must insert into the root. (Only subsequent operations can insert into a dynamic\n // parent)\n rootIdx = parentIdx;\n rootRNode = nativeParentNode(renderer, anchorRNode);\n }\n let insertInFrontOf;\n let parentRNode;\n if (parentIdx === rootIdx) {\n insertInFrontOf = anchorRNode;\n parentRNode = rootRNode;\n }\n else {\n insertInFrontOf = null;\n parentRNode = unwrapRNode(lView[parentIdx]);\n }\n // FIXME(misko): Refactor with `processI18nText`\n if (parentRNode !== null) {\n // This can happen if the `LView` we are adding to is not attached to a parent `LView`.\n // In such a case there is no \"root\" we can attach to. This is fine, as we still need to\n // create the elements. When the `LView` gets later added to a parent these \"root\" nodes\n // get picked up and added.\n ngDevMode && assertDomNode(parentRNode);\n const refIdx = getRefFromIcuCreateOpCode(opCode);\n ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');\n // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n\n // which can't have components.\n const child = lView[refIdx];\n ngDevMode && assertDomNode(child);\n nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);\n const tIcu = getTIcu(tView, refIdx);\n if (tIcu !== null && typeof tIcu === 'object') {\n // If we just added a comment node which has ICU then that ICU may have already been\n // rendered and therefore we need to re-add it here.\n ngDevMode && assertTIcu(tIcu);\n const caseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (caseIndex !== null) {\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);\n }\n }\n }\n break;\n case 1 /* Attr */:\n const elementNodeIndex = opCode >>> 1 /* SHIFT_REF */;\n const attrName = mutableOpCodes[++i];\n const attrValue = mutableOpCodes[++i];\n // This code is used for ICU expressions only, since we don't support\n // directives/components in ICUs, we don't need to worry about inputs here\n setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);\n break;\n default:\n throw new Error(`Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n else {\n switch (opCode) {\n case ICU_MARKER:\n const commentValue = mutableOpCodes[++i];\n const commentNodeIndex = mutableOpCodes[++i];\n if (lView[commentNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof commentValue, 'string', `Expected \"${commentValue}\" to be a comment node value`);\n ngDevMode && ngDevMode.rendererCreateComment++;\n ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);\n const commentRNode = lView[commentNodeIndex] =\n createCommentNode(renderer, commentValue);\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(commentRNode, lView);\n }\n break;\n case ELEMENT_MARKER:\n const tagName = mutableOpCodes[++i];\n const elementNodeIndex = mutableOpCodes[++i];\n if (lView[elementNodeIndex] === null) {\n ngDevMode &&\n assertEqual(typeof tagName, 'string', `Expected \"${tagName}\" to be an element node tag name`);\n ngDevMode && ngDevMode.rendererCreateElement++;\n ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);\n const elementRNode = lView[elementNodeIndex] =\n createElementNode(renderer, tagName, null);\n // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)\n attachPatchData(elementRNode, lView);\n }\n break;\n default:\n ngDevMode &&\n throwError(`Unable to determine the type of mutate operation for \"${opCode}\"`);\n }\n }\n }\n}\n/**\n * Apply `I18nUpdateOpCodes` OpCodes\n *\n * @param tView Current `TView`\n * @param lView Current `LView`\n * @param updateOpCodes OpCodes to process\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from\n * `bindingsStartIndex`)\n */\nfunction applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {\n for (let i = 0; i < updateOpCodes.length; i++) {\n // bit code to check if we should apply the next update\n const checkBit = updateOpCodes[i];\n // Number of opCodes to skip until next set of update codes\n const skipCodes = updateOpCodes[++i];\n if (checkBit & changeMask) {\n // The value has been updated since last checked\n let value = '';\n for (let j = i + 1; j <= (i + skipCodes); j++) {\n const opCode = updateOpCodes[j];\n if (typeof opCode == 'string') {\n value += opCode;\n }\n else if (typeof opCode == 'number') {\n if (opCode < 0) {\n // Negative opCode represent `i18nExp` values offset.\n value += renderStringify(lView[bindingsStartIndex - opCode]);\n }\n else {\n const nodeIndex = (opCode >>> 2 /* SHIFT_REF */);\n switch (opCode & 3 /* MASK_OPCODE */) {\n case 1 /* Attr */:\n const propName = updateOpCodes[++j];\n const sanitizeFn = updateOpCodes[++j];\n const tNodeOrTagName = tView.data[nodeIndex];\n ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');\n if (typeof tNodeOrTagName === 'string') {\n // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does\n // not have TNode), in which case we know that there are no directives, and hence\n // we use attribute setting.\n setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);\n }\n else {\n elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);\n }\n break;\n case 0 /* Text */:\n const rText = lView[nodeIndex];\n rText !== null && updateTextNode(lView[RENDERER], rText, value);\n break;\n case 2 /* IcuSwitch */:\n applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);\n break;\n case 3 /* IcuUpdate */:\n applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);\n break;\n }\n }\n }\n }\n }\n else {\n const opCode = updateOpCodes[i + 1];\n if (opCode > 0 && (opCode & 3 /* MASK_OPCODE */) === 3 /* IcuUpdate */) {\n // Special case for the `icuUpdateCase`. It could be that the mask did not match, but\n // we still need to execute `icuUpdateCase` because the case has changed recently due to\n // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in\n // pairs.)\n const nodeIndex = (opCode >>> 2 /* SHIFT_REF */);\n const tIcu = getTIcu(tView, nodeIndex);\n const currentIndex = lView[tIcu.currentCaseLViewIndex];\n if (currentIndex < 0) {\n applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);\n }\n }\n }\n i += skipCodes;\n }\n}\n/**\n * Apply OpCodes associated with updating an existing ICU.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param bindingsStartIndex Location of the first `ɵɵi18nApply`\n * @param lView Current `LView`\n */\nfunction applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {\n ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);\n let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];\n if (activeCaseIndex !== null) {\n let mask = changeMask;\n if (activeCaseIndex < 0) {\n // Clear the flag.\n // Negative number means that the ICU was freshly created and we need to force the update.\n activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;\n // -1 is same as all bits on, which simulates creation since it marks all bits dirty\n mask = -1;\n }\n applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);\n }\n}\n/**\n * Apply OpCodes associated with switching a case on ICU.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n * @param value Value of the case to update to.\n */\nfunction applyIcuSwitchCase(tView, tIcu, lView, value) {\n // Rebuild a new case for this ICU\n const caseIndex = getCaseIndex(tIcu, value);\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== caseIndex) {\n applyIcuSwitchCaseRemove(tView, tIcu, lView);\n lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;\n if (caseIndex !== null) {\n // Add the nodes for the new case\n const anchorRNode = lView[tIcu.anchorIdx];\n if (anchorRNode) {\n ngDevMode && assertDomNode(anchorRNode);\n applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);\n }\n }\n }\n}\n/**\n * Apply OpCodes associated with tearing ICU case.\n *\n * This involves tearing down existing case and than building up a new case.\n *\n * @param tView Current `TView`\n * @param tIcu Current `TIcu`\n * @param lView Current `LView`\n */\nfunction applyIcuSwitchCaseRemove(tView, tIcu, lView) {\n let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);\n if (activeCaseIndex !== null) {\n const removeCodes = tIcu.remove[activeCaseIndex];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n const rNode = getNativeByIndex(nodeOrIcuIndex, lView);\n rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);\n }\n else {\n // Negative numbers are ICUs\n applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);\n }\n }\n }\n}\n/**\n * Returns the index of the current case of an ICU expression depending on the main binding value\n *\n * @param icuExpression\n * @param bindingValue The value of the main binding used by this ICU expression\n */\nfunction getCaseIndex(icuExpression, bindingValue) {\n let index = icuExpression.cases.indexOf(bindingValue);\n if (index === -1) {\n switch (icuExpression.type) {\n case 1 /* plural */: {\n const resolvedCase = getPluralCase(bindingValue, getLocaleId());\n index = icuExpression.cases.indexOf(resolvedCase);\n if (index === -1 && resolvedCase !== 'other') {\n index = icuExpression.cases.indexOf('other');\n }\n break;\n }\n case 0 /* select */: {\n index = icuExpression.cases.indexOf('other');\n break;\n }\n }\n }\n return index === -1 ? null : index;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction loadIcuContainerVisitor() {\n const _stack = [];\n let _index = -1;\n let _lView;\n let _removes;\n /**\n * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`\n * to determine which root belong to the ICU.\n *\n * Example of usage.\n * ```\n * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);\n * let rNode: RNode|null;\n * while(rNode = nextRNode()) {\n * console.log(rNode);\n * }\n * ```\n *\n * @param tIcuContainerNode Current `TIcuContainerNode`\n * @param lView `LView` where the `RNode`s should be looked up.\n */\n function icuContainerIteratorStart(tIcuContainerNode, lView) {\n _lView = lView;\n while (_stack.length)\n _stack.pop();\n ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);\n enterIcu(tIcuContainerNode.value, lView);\n return icuContainerIteratorNext;\n }\n function enterIcu(tIcu, lView) {\n _index = 0;\n const currentCase = getCurrentICUCaseIndex(tIcu, lView);\n if (currentCase !== null) {\n ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);\n _removes = tIcu.remove[currentCase];\n }\n else {\n _removes = EMPTY_ARRAY;\n }\n }\n function icuContainerIteratorNext() {\n if (_index < _removes.length) {\n const removeOpCode = _removes[_index++];\n ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');\n if (removeOpCode > 0) {\n const rNode = _lView[removeOpCode];\n ngDevMode && assertDomNode(rNode);\n return rNode;\n }\n else {\n _stack.push(_index, _removes);\n // ICUs are represented by negative indices\n const tIcuIndex = ~removeOpCode;\n const tIcu = _lView[TVIEW].data[tIcuIndex];\n ngDevMode && assertTIcu(tIcu);\n enterIcu(tIcu, _lView);\n return icuContainerIteratorNext();\n }\n }\n else {\n if (_stack.length === 0) {\n return null;\n }\n else {\n _removes = _stack.pop();\n _index = _stack.pop();\n return icuContainerIteratorNext();\n }\n }\n }\n return icuContainerIteratorStart;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction i18nCreateOpCodesToString(opcodes) {\n const createOpCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < createOpCodes.length; i++) {\n const opCode = createOpCodes[i++];\n const text = createOpCodes[i];\n const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;\n const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;\n const index = opCode >>> I18nCreateOpCode.SHIFT;\n lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);\n if (appendNow) {\n lines.push(`parent.appendChild(lView[${index}]);`);\n }\n }\n return lines;\n}\n/**\n * Converts `I18nUpdateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.\n * This function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nUpdateOpCodes` if attached as a method.\n * @param opcodes `I18nUpdateOpCodes` if invoked as a function.\n */\nfunction i18nUpdateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(value) {\n const ref = value >>> 2 /* SHIFT_REF */;\n const opCode = value & 3 /* MASK_OPCODE */;\n switch (opCode) {\n case 0 /* Text */:\n return `(lView[${ref}] as Text).textContent = $$$`;\n case 1 /* Attr */:\n const attrName = parser.consumeString();\n const sanitizationFn = parser.consumeFunction();\n const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';\n return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;\n case 2 /* IcuSwitch */:\n return `icuSwitchCase(${ref}, $$$)`;\n case 3 /* IcuUpdate */:\n return `icuUpdateCase(${ref})`;\n }\n throw new Error('unexpected OpCode');\n }\n while (parser.hasMore()) {\n let mask = parser.consumeNumber();\n let size = parser.consumeNumber();\n const end = parser.i + size;\n const statements = [];\n let statement = '';\n while (parser.i < end) {\n let value = parser.consumeNumberOrString();\n if (typeof value === 'string') {\n statement += value;\n }\n else if (value < 0) {\n // Negative numbers are ref indexes\n // Here `i` refers to current binding index. It is to signify that the value is relative,\n // rather than absolute.\n statement += '${lView[i' + value + ']}';\n }\n else {\n // Positive numbers are operations.\n const opCodeText = consumeOpCode(value);\n statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');\n statement = '';\n }\n }\n lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);\n }\n return lines;\n}\n/**\n * Converts `I18nCreateOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nCreateOpCodes` if attached as a method.\n * @param opcodes `I18nCreateOpCodes` if invoked as a function.\n */\nfunction icuCreateOpCodesToString(opcodes) {\n const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));\n let lines = [];\n function consumeOpCode(opCode) {\n const parent = getParentFromIcuCreateOpCode(opCode);\n const ref = getRefFromIcuCreateOpCode(opCode);\n switch (getInstructionFromIcuCreateOpCode(opCode)) {\n case 0 /* AppendChild */:\n return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;\n case 1 /* Attr */:\n return `(lView[${ref}] as Element).setAttribute(\"${parser.consumeString()}\", \"${parser.consumeString()}\")`;\n }\n throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));\n }\n let lastRef = -1;\n while (parser.hasMore()) {\n let value = parser.consumeNumberStringOrMarker();\n if (value === ICU_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createComment(\"${text}\")`);\n }\n else if (value === ELEMENT_MARKER) {\n const text = parser.consumeString();\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createElement(\"${text}\")`);\n }\n else if (typeof value === 'string') {\n lastRef = parser.consumeNumber();\n lines.push(`lView[${lastRef}] = document.createTextNode(\"${value}\")`);\n }\n else if (typeof value === 'number') {\n const line = consumeOpCode(value);\n line && lines.push(line);\n }\n else {\n throw new Error('Unexpected value');\n }\n }\n return lines;\n}\n/**\n * Converts `I18nRemoveOpCodes` array into a human readable format.\n *\n * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This\n * function provides a human readable view of the opcodes. This is useful when debugging the\n * application as well as writing more readable tests.\n *\n * @param this `I18nRemoveOpCodes` if attached as a method.\n * @param opcodes `I18nRemoveOpCodes` if invoked as a function.\n */\nfunction i18nRemoveOpCodesToString(opcodes) {\n const removeCodes = opcodes || (Array.isArray(this) ? this : []);\n let lines = [];\n for (let i = 0; i < removeCodes.length; i++) {\n const nodeOrIcuIndex = removeCodes[i];\n if (nodeOrIcuIndex > 0) {\n // Positive numbers are `RNode`s.\n lines.push(`remove(lView[${nodeOrIcuIndex}])`);\n }\n else {\n // Negative numbers are ICUs\n lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);\n }\n }\n return lines;\n}\nclass OpCodeParser {\n constructor(codes) {\n this.i = 0;\n this.codes = codes;\n }\n hasMore() {\n return this.i < this.codes.length;\n }\n consumeNumber() {\n let value = this.codes[this.i++];\n assertNumber(value, 'expecting number in OpCode');\n return value;\n }\n consumeString() {\n let value = this.codes[this.i++];\n assertString(value, 'expecting string in OpCode');\n return value;\n }\n consumeFunction() {\n let value = this.codes[this.i++];\n if (value === null || typeof value === 'function') {\n return value;\n }\n throw new Error('expecting function in OpCode');\n }\n consumeNumberOrString() {\n let value = this.codes[this.i++];\n if (typeof value === 'string') {\n return value;\n }\n assertNumber(value, 'expecting number or string in OpCode');\n return value;\n }\n consumeNumberStringOrMarker() {\n let value = this.codes[this.i++];\n if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER ||\n value == ELEMENT_MARKER) {\n return value;\n }\n assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');\n return value;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst BINDING_REGEXP = /�(\\d+):?\\d*�/gi;\nconst ICU_REGEXP = /({\\s*�\\d+:?\\d*�\\s*,\\s*\\S{6}\\s*,[\\s\\S]*})/gi;\nconst NESTED_ICU = /�(\\d+)�/;\nconst ICU_BLOCK_REGEXP = /^\\s*(�\\d+:?\\d*�)\\s*,\\s*(select|plural)\\s*,/;\nconst MARKER = `�`;\nconst SUBTEMPLATE_REGEXP = /�\\/?\\*(\\d+:\\d+)�/gi;\nconst PH_REGEXP = /�(\\/?[#*]\\d+):?\\d*�/gi;\n/**\n * Angular Dart introduced &ngsp; as a placeholder for non-removable space, see:\n * https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32\n * In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character\n * and later on replaced by a space. We are re-implementing the same idea here, since translations\n * might contain this special character.\n */\nconst NGSP_UNICODE_REGEXP = /\\uE500/g;\nfunction replaceNgsp(value) {\n return value.replace(NGSP_UNICODE_REGEXP, ' ');\n}\n/**\n * Create dynamic nodes from i18n translation block.\n *\n * - Text nodes are created synchronously\n * - TNodes are linked into tree lazily\n *\n * @param tView Current `TView`\n * @parentTNodeIndex index to the parent TNode of this i18n block\n * @param lView Current `LView`\n * @param index Index of `ɵɵi18nStart` instruction.\n * @param message Message to translate.\n * @param subTemplateIndex Index into the sub template of message translation. (ie in case of\n * `ngIf`) (-1 otherwise)\n */\nfunction i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {\n const rootTNode = getCurrentParentTNode();\n const createOpCodes = [];\n const updateOpCodes = [];\n const existingTNodeStack = [[]];\n if (ngDevMode) {\n attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n message = getTranslationForTemplate(message, subTemplateIndex);\n const msgParts = replaceNgsp(message).split(PH_REGEXP);\n for (let i = 0; i < msgParts.length; i++) {\n let value = msgParts[i];\n if ((i & 1) === 0) {\n // Even indexes are text (including bindings & ICU expressions)\n const parts = i18nParseTextIntoPartsAndICU(value);\n for (let j = 0; j < parts.length; j++) {\n let part = parts[j];\n if ((j & 1) === 0) {\n // `j` is odd therefore `part` is string\n const text = part;\n ngDevMode && assertString(text, 'Parsed ICU part should be string');\n if (text !== '') {\n i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);\n }\n }\n else {\n // `j` is Even therefor `part` is an `ICUExpression`\n const icuExpression = part;\n // Verify that ICU expression has the right shape. Translations might contain invalid\n // constructions (while original messages were correct), so ICU parsing at runtime may\n // not succeed (thus `icuExpression` remains a string).\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the value can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (typeof icuExpression !== 'object') {\n throw new Error(`Unable to parse ICU expression in \"${message}\" message.`);\n }\n const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);\n const icuNodeIndex = icuContainerTNode.index;\n ngDevMode &&\n assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');\n icuStart(tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);\n }\n }\n }\n else {\n // Odd indexes are placeholders (elements and sub-templates)\n // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')\n const isClosing = value.charCodeAt(0) === 47 /* SLASH */;\n const type = value.charCodeAt(isClosing ? 1 : 0);\n ngDevMode && assertOneOf(type, 42 /* STAR */, 35 /* HASH */);\n const index = HEADER_OFFSET + Number.parseInt(value.substring((isClosing ? 2 : 1)));\n if (isClosing) {\n existingTNodeStack.shift();\n setCurrentTNode(getCurrentParentTNode(), false);\n }\n else {\n const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);\n existingTNodeStack.unshift([]);\n setCurrentTNode(tNode, true);\n }\n }\n }\n tView.data[index] = {\n create: createOpCodes,\n update: updateOpCodes,\n };\n}\n/**\n * Allocate space in i18n Range add create OpCode instruction to crete a text or comment node.\n *\n * @param tView Current `TView` needed to allocate space in i18n range.\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be\n * added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param lView Current `LView` needed to allocate space in i18n range.\n * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.\n * @param text Text to be added when the `Text` or `Comment` node will be created.\n * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.\n */\nfunction createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {\n const i18nNodeIdx = allocExpando(tView, lView, 1, null);\n let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;\n let parentTNode = getCurrentParentTNode();\n if (rootTNode === parentTNode) {\n // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.\n // (there is no parent), but in some circumstances (because we are inconsistent about how we set\n // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.\n parentTNode = null;\n }\n if (parentTNode === null) {\n // If we don't have a parent that means that we can eagerly add nodes.\n // If we have a parent than these nodes can't be added now (as the parent has not been created\n // yet) and instead the `parentTNode` is responsible for adding it. See\n // `TNode.insertBeforeIndex`\n opCode |= I18nCreateOpCode.APPEND_EAGERLY;\n }\n if (isICU) {\n opCode |= I18nCreateOpCode.COMMENT;\n ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);\n }\n createOpCodes.push(opCode, text === null ? '' : text);\n // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the\n // bindings are.\n const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* Icu */ : 1 /* Text */, text === null ? (ngDevMode ? '{{?}}' : '') : text, null);\n addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);\n const tNodeIdx = tNode.index;\n setCurrentTNode(tNode, false /* Text nodes are self closing */);\n if (parentTNode !== null && rootTNode !== parentTNode) {\n // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)\n // We have to make sure to add ourselves to the parent.\n setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);\n }\n return tNode;\n}\n/**\n * Processes text node in i18n block.\n *\n * Text nodes can have:\n * - Create instruction in `createOpCodes` for creating the text node.\n * - Allocate spec for text node in i18n range of `LView`\n * - If contains binding:\n * - bindings => allocate space in i18n range of `LView` to store the binding value.\n * - populate `updateOpCodes` with update instructions.\n *\n * @param tView Current `TView`\n * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will\n * be added as part of the `i18nStart` instruction or as part of the\n * `TNode.insertBeforeIndex`.\n * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.\n * @param createOpCodes Location where the creation OpCodes will be stored.\n * @param lView Current `LView`\n * @param text The translated text (which may contain binding)\n */\nfunction i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {\n const hasBinding = text.match(BINDING_REGEXP);\n const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);\n if (hasBinding) {\n generateBindingUpdateOpCodes(updateOpCodes, text, tNode.index, null, 0, null);\n }\n}\n/**\n * See `i18nAttributes` above.\n */\nfunction i18nAttributesFirstPass(tView, index, values) {\n const previousElement = getCurrentTNode();\n const previousElementIndex = previousElement.index;\n const updateOpCodes = [];\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n if (tView.firstCreatePass && tView.data[index] === null) {\n for (let i = 0; i < values.length; i += 2) {\n const attrName = values[i];\n const message = values[i + 1];\n if (message !== '') {\n // Check if attribute value contains an ICU and throw an error if that's the case.\n // ICUs in element attributes are not supported.\n // Note: we intentionally retain the error here by not using `ngDevMode`, because\n // the `value` can change based on the locale and users aren't guaranteed to hit\n // an invalid string while they're developing.\n if (ICU_REGEXP.test(message)) {\n throw new Error(`ICU expressions are not supported in attributes. Message: \"${message}\".`);\n }\n // i18n attributes that hit this code path are guaranteed to have bindings, because\n // the compiler treats static i18n attributes as regular attribute bindings.\n // Since this may not be the first i18n attribute on this element we need to pass in how\n // many previous bindings there have already been.\n generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName, countBindings(updateOpCodes), null);\n }\n }\n tView.data[index] = updateOpCodes;\n }\n}\n/**\n * Generate the OpCodes to update the bindings of a string.\n *\n * @param updateOpCodes Place where the update opcodes will be stored.\n * @param str The string containing the bindings.\n * @param destinationNode Index of the destination node which will receive the binding.\n * @param attrName Name of the attribute, if the string belongs to an attribute.\n * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.\n * @param bindingStart The lView index of the next expression that can be bound via an opCode.\n * @returns The mask value for these bindings\n */\nfunction generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, bindingStart, sanitizeFn) {\n ngDevMode &&\n assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');\n const maskIndex = updateOpCodes.length; // Location of mask\n const sizeIndex = maskIndex + 1; // location of size for skipping\n updateOpCodes.push(null, null); // Alloc space for mask and size\n const startIndex = maskIndex + 2; // location of first allocation.\n if (ngDevMode) {\n attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);\n }\n const textParts = str.split(BINDING_REGEXP);\n let mask = 0;\n for (let j = 0; j < textParts.length; j++) {\n const textValue = textParts[j];\n if (j & 1) {\n // Odd indexes are bindings\n const bindingIndex = bindingStart + parseInt(textValue, 10);\n updateOpCodes.push(-1 - bindingIndex);\n mask = mask | toMaskBit(bindingIndex);\n }\n else if (textValue !== '') {\n // Even indexes are text\n updateOpCodes.push(textValue);\n }\n }\n updateOpCodes.push(destinationNode << 2 /* SHIFT_REF */ |\n (attrName ? 1 /* Attr */ : 0 /* Text */));\n if (attrName) {\n updateOpCodes.push(attrName, sanitizeFn);\n }\n updateOpCodes[maskIndex] = mask;\n updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;\n return mask;\n}\n/**\n * Count the number of bindings in the given `opCodes`.\n *\n * It could be possible to speed this up, by passing the number of bindings found back from\n * `generateBindingUpdateOpCodes()` to `i18nAttributesFirstPass()` but this would then require more\n * complexity in the code and/or transient objects to be created.\n *\n * Since this function is only called once when the template is instantiated, is trivial in the\n * first instance (since `opCodes` will be an empty array), and it is not common for elements to\n * contain multiple i18n bound attributes, it seems like this is a reasonable compromise.\n */\nfunction countBindings(opCodes) {\n let count = 0;\n for (let i = 0; i < opCodes.length; i++) {\n const opCode = opCodes[i];\n // Bindings are negative numbers.\n if (typeof opCode === 'number' && opCode < 0) {\n count++;\n }\n }\n return count;\n}\n/**\n * Convert binding index to mask bit.\n *\n * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make\n * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to\n * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner\n * case is that we will execute binding code more often than necessary. (penalty of performance)\n */\nfunction toMaskBit(bindingIndex) {\n return 1 << Math.min(bindingIndex, 31);\n}\nfunction isRootTemplateMessage(subTemplateIndex) {\n return subTemplateIndex === -1;\n}\n/**\n * Removes everything inside the sub-templates of a message.\n */\nfunction removeInnerTemplateTranslation(message) {\n let match;\n let res = '';\n let index = 0;\n let inTemplate = false;\n let tagMatched;\n while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {\n if (!inTemplate) {\n res += message.substring(index, match.index + match[0].length);\n tagMatched = match[1];\n inTemplate = true;\n }\n else {\n if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {\n index = match.index;\n inTemplate = false;\n }\n }\n }\n ngDevMode &&\n assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation \"${message}\"`);\n res += message.substr(index);\n return res;\n}\n/**\n * Extracts a part of a message and removes the rest.\n *\n * This method is used for extracting a part of the message associated with a template. A\n * translated message can span multiple templates.\n *\n * Example:\n * ```\n * <div i18n>Translate <span *ngIf>me</span>!</div>\n * ```\n *\n * @param message The message to crop\n * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the\n * external template and removes all sub-templates.\n */\nfunction getTranslationForTemplate(message, subTemplateIndex) {\n if (isRootTemplateMessage(subTemplateIndex)) {\n // We want the root template message, ignore all sub-templates\n return removeInnerTemplateTranslation(message);\n }\n else {\n // We want a specific sub-template\n const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;\n const end = message.search(new RegExp(`${MARKER}\\\\/\\\\*\\\\d+:${subTemplateIndex}${MARKER}`));\n return removeInnerTemplateTranslation(message.substring(start, end));\n }\n}\n/**\n * Generate the OpCodes for ICU expressions.\n *\n * @param icuExpression\n * @param index Index where the anchor is stored and an optional `TIcuContainerNode`\n * - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.\n * - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)\n */\nfunction icuStart(tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {\n ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');\n let bindingMask = 0;\n const tIcu = {\n type: icuExpression.type,\n currentCaseLViewIndex: allocExpando(tView, lView, 1, null),\n anchorIdx,\n cases: [],\n create: [],\n remove: [],\n update: []\n };\n addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);\n setTIcu(tView, anchorIdx, tIcu);\n const values = icuExpression.values;\n for (let i = 0; i < values.length; i++) {\n // Each value is an array of strings & other ICU expressions\n const valueArr = values[i];\n const nestedIcus = [];\n for (let j = 0; j < valueArr.length; j++) {\n const value = valueArr[j];\n if (typeof value !== 'string') {\n // It is an nested ICU expression\n const icuIndex = nestedIcus.push(value) - 1;\n // Replace nested ICU expression by a comment node\n valueArr[j] = `<!--�${icuIndex}�-->`;\n }\n }\n bindingMask = parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) |\n bindingMask;\n }\n if (bindingMask) {\n addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);\n }\n}\n/**\n * Parses text containing an ICU expression and produces a JSON object for it.\n * Original code from closure library, modified for Angular.\n *\n * @param pattern Text containing an ICU expression that needs to be parsed.\n *\n */\nfunction parseICUBlock(pattern) {\n const cases = [];\n const values = [];\n let icuType = 1 /* plural */;\n let mainBinding = 0;\n pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {\n if (type === 'select') {\n icuType = 0 /* select */;\n }\n else {\n icuType = 1 /* plural */;\n }\n mainBinding = parseInt(binding.substr(1), 10);\n return '';\n });\n const parts = i18nParseTextIntoPartsAndICU(pattern);\n // Looking for (key block)+ sequence. One of the keys has to be \"other\".\n for (let pos = 0; pos < parts.length;) {\n let key = parts[pos++].trim();\n if (icuType === 1 /* plural */) {\n // Key can be \"=x\", we just want \"x\"\n key = key.replace(/\\s*(?:=)?(\\w+)\\s*/, '$1');\n }\n if (key.length) {\n cases.push(key);\n }\n const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);\n if (cases.length > values.length) {\n values.push(blocks);\n }\n }\n // TODO(ocombe): support ICU expressions in attributes, see #21615\n return { type: icuType, mainBinding: mainBinding, cases, values };\n}\n/**\n * Breaks pattern into strings and top level {...} blocks.\n * Can be used to break a message into text and ICU expressions, or to break an ICU expression\n * into keys and cases. Original code from closure library, modified for Angular.\n *\n * @param pattern (sub)Pattern to be broken.\n * @returns An `Array<string|IcuExpression>` where:\n * - odd positions: `string` => text between ICU expressions\n * - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.\n */\nfunction i18nParseTextIntoPartsAndICU(pattern) {\n if (!pattern) {\n return [];\n }\n let prevPos = 0;\n const braceStack = [];\n const results = [];\n const braces = /[{}]/g;\n // lastIndex doesn't get set to 0 so we have to.\n braces.lastIndex = 0;\n let match;\n while (match = braces.exec(pattern)) {\n const pos = match.index;\n if (match[0] == '}') {\n braceStack.pop();\n if (braceStack.length == 0) {\n // End of the block.\n const block = pattern.substring(prevPos, pos);\n if (ICU_BLOCK_REGEXP.test(block)) {\n results.push(parseICUBlock(block));\n }\n else {\n results.push(block);\n }\n prevPos = pos + 1;\n }\n }\n else {\n if (braceStack.length == 0) {\n const substring = pattern.substring(prevPos, pos);\n results.push(substring);\n prevPos = pos + 1;\n }\n braceStack.push('{');\n }\n }\n const substring = pattern.substring(prevPos);\n results.push(substring);\n return results;\n}\n/**\n * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.\n *\n */\nfunction parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {\n const create = [];\n const remove = [];\n const update = [];\n if (ngDevMode) {\n attachDebugGetter(create, icuCreateOpCodesToString);\n attachDebugGetter(remove, i18nRemoveOpCodesToString);\n attachDebugGetter(update, i18nUpdateOpCodesToString);\n }\n tIcu.cases.push(caseName);\n tIcu.create.push(create);\n tIcu.remove.push(remove);\n tIcu.update.push(update);\n const inertBodyHelper = getInertBodyHelper(getDocument());\n const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);\n ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');\n const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;\n if (inertRootNode) {\n return walkIcuTree(tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);\n }\n else {\n return 0;\n }\n}\nfunction walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {\n let bindingMask = 0;\n let currentNode = parentNode.firstChild;\n while (currentNode) {\n const newIndex = allocExpando(tView, lView, 1, null);\n switch (currentNode.nodeType) {\n case Node.ELEMENT_NODE:\n const element = currentNode;\n const tagName = element.tagName.toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName)) {\n addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);\n tView.data[newIndex] = tagName;\n const elAttrs = element.attributes;\n for (let i = 0; i < elAttrs.length; i++) {\n const attr = elAttrs.item(i);\n const lowerAttrName = attr.name.toLowerCase();\n const hasBinding = !!attr.value.match(BINDING_REGEXP);\n // we assume the input string is safe, unless it's using a binding\n if (hasBinding) {\n if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {\n if (URI_ATTRS[lowerAttrName]) {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, _sanitizeUrl);\n }\n else if (SRCSET_ATTRS[lowerAttrName]) {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, sanitizeSrcset);\n }\n else {\n generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, 0, null);\n }\n }\n else {\n ngDevMode &&\n console.warn(`WARNING: ignoring unsafe attribute value ` +\n `${lowerAttrName} on element ${tagName} ` +\n `(see https://g.co/ng/security#xss)`);\n }\n }\n else {\n addCreateAttribute(create, newIndex, attr);\n }\n }\n // Parse the children of this node (if any)\n bindingMask = walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) |\n bindingMask;\n addRemoveNode(remove, newIndex, depth);\n }\n break;\n case Node.TEXT_NODE:\n const value = currentNode.textContent || '';\n const hasBinding = value.match(BINDING_REGEXP);\n addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);\n addRemoveNode(remove, newIndex, depth);\n if (hasBinding) {\n bindingMask =\n generateBindingUpdateOpCodes(update, value, newIndex, null, 0, null) | bindingMask;\n }\n break;\n case Node.COMMENT_NODE:\n // Check if the comment node is a placeholder for a nested ICU\n const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');\n if (isNestedIcu) {\n const nestedIcuIndex = parseInt(isNestedIcu[1], 10);\n const icuExpression = nestedIcus[nestedIcuIndex];\n // Create the comment node that will anchor the ICU expression\n addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);\n icuStart(tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);\n addRemoveNestedIcu(remove, newIndex, depth);\n }\n break;\n }\n currentNode = currentNode.nextSibling;\n }\n return bindingMask;\n}\nfunction addRemoveNode(remove, index, depth) {\n if (depth === 0) {\n remove.push(index);\n }\n}\nfunction addRemoveNestedIcu(remove, index, depth) {\n if (depth === 0) {\n remove.push(~index); // remove ICU at `index`\n remove.push(index); // remove ICU comment at `index`\n }\n}\nfunction addUpdateIcuSwitch(update, icuExpression, index) {\n update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2 /* SHIFT_REF */ | 2 /* IcuSwitch */);\n}\nfunction addUpdateIcuUpdate(update, bindingMask, index) {\n update.push(bindingMask, 1, index << 2 /* SHIFT_REF */ | 3 /* IcuUpdate */);\n}\nfunction addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {\n if (marker !== null) {\n create.push(marker);\n }\n create.push(text, createAtIdx, icuCreateOpCode(0 /* AppendChild */, appendToParentIdx, createAtIdx));\n}\nfunction addCreateAttribute(create, newIndex, attr) {\n create.push(newIndex << 1 /* SHIFT_REF */ | 1 /* Attr */, attr.name, attr.value);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// i18nPostprocess consts\nconst ROOT_TEMPLATE_ID = 0;\nconst PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]/;\nconst PP_PLACEHOLDERS_REGEXP = /\\[(�.+?�?)\\]|(�\\/?\\*\\d+:\\d+�)/g;\nconst PP_ICU_VARS_REGEXP = /({\\s*)(VAR_(PLURAL|SELECT)(_\\d+)?)(\\s*,)/g;\nconst PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;\nconst PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\\d+)?)�/g;\nconst PP_CLOSE_TEMPLATE_REGEXP = /\\/\\*/;\nconst PP_TEMPLATE_ID_REGEXP = /\\d+\\:(\\d+)/;\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction i18nPostprocess(message, replacements = {}) {\n /**\n * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]\n *\n * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically\n * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root\n * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index\n * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in\n * front of �#6�. The post processing step restores the right order by keeping track of the\n * template id stack and looks for placeholders that belong to the currently active template.\n */\n let result = message;\n if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {\n const matches = {};\n const templateIdsStack = [ROOT_TEMPLATE_ID];\n result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {\n const content = phs || tmpl;\n const placeholders = matches[content] || [];\n if (!placeholders.length) {\n content.split('|').forEach((placeholder) => {\n const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);\n const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;\n const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);\n placeholders.push([templateId, isCloseTemplateTag, placeholder]);\n });\n matches[content] = placeholders;\n }\n if (!placeholders.length) {\n throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);\n }\n const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];\n let idx = 0;\n // find placeholder index that matches current template id\n for (let i = 0; i < placeholders.length; i++) {\n if (placeholders[i][0] === currentTemplateId) {\n idx = i;\n break;\n }\n }\n // update template id stack based on the current tag extracted\n const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];\n if (isCloseTemplateTag) {\n templateIdsStack.pop();\n }\n else if (currentTemplateId !== templateId) {\n templateIdsStack.push(templateId);\n }\n // remove processed tag from the list\n placeholders.splice(idx, 1);\n return placeholder;\n });\n }\n // return current result if no replacements specified\n if (!Object.keys(replacements).length) {\n return result;\n }\n /**\n * Step 2: replace all ICU vars (like \"VAR_PLURAL\")\n */\n result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {\n return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;\n });\n /**\n * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n */\n result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {\n return replacements.hasOwnProperty(key) ? replacements[key] : match;\n });\n /**\n * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case\n * multiple ICUs have the same placeholder name\n */\n result = result.replace(PP_ICUS_REGEXP, (match, key) => {\n if (replacements.hasOwnProperty(key)) {\n const list = replacements[key];\n if (!list.length) {\n throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);\n }\n return list.shift();\n }\n return match;\n });\n return result;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Marks a block of text as translatable.\n *\n * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {\n const tView = getTView();\n const lView = getLView();\n const adjustedIndex = HEADER_OFFSET + index;\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const message = getConstant(tView.consts, messageIndex);\n const parentTNode = getCurrentParentTNode();\n if (tView.firstCreatePass) {\n i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);\n }\n const tI18n = tView.data[adjustedIndex];\n const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;\n const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);\n // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.\n // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.\n const insertInFrontOf = parentTNode && (parentTNode.type & 8 /* ElementContainer */) ?\n lView[parentTNode.index] :\n null;\n applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);\n setInI18nBlock(true);\n}\n/**\n * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes\n * into the render tree, moves the placeholder nodes and removes the deleted nodes.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nEnd() {\n setInI18nBlock(false);\n}\n/**\n *\n * Use this instruction to create a translation block that doesn't contain any placeholder.\n * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.\n *\n * The translation `message` is the value which is locale specific. The translation string may\n * contain placeholders which associate inner elements and sub-templates within the translation.\n *\n * The translation `message` placeholders are:\n * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be\n * interpolated into. The placeholder `index` points to the expression binding index. An optional\n * `block` that matches the sub-template in which it was declared.\n * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning\n * and end of DOM element that were embedded in the original translation block. The placeholder\n * `index` points to the element index in the template instructions set. An optional `block` that\n * matches the sub-template in which it was declared.\n * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be\n * split up and translated separately in each angular template function. The `index` points to the\n * `template` instruction index. A `block` that matches the sub-template in which it was declared.\n *\n * @param index A unique index of the translation in the static block.\n * @param messageIndex An index of the translation message from the `def.consts` array.\n * @param subTemplateIndex Optional sub-template index in the `message`.\n *\n * @codeGenApi\n */\nfunction ɵɵi18n(index, messageIndex, subTemplateIndex) {\n ɵɵi18nStart(index, messageIndex, subTemplateIndex);\n ɵɵi18nEnd();\n}\n/**\n * Marks a list of attributes as translatable.\n *\n * @param index A unique index in the static block\n * @param values\n *\n * @codeGenApi\n */\nfunction ɵɵi18nAttributes(index, attrsIndex) {\n const tView = getTView();\n ngDevMode && assertDefined(tView, `tView should be defined`);\n const attrs = getConstant(tView.consts, attrsIndex);\n i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);\n}\n/**\n * Stores the values of the bindings during each update cycle in order to determine if we need to\n * update the translated nodes.\n *\n * @param value The binding's value\n * @returns This function returns itself so that it may be chained\n * (e.g. `i18nExp(ctx.name)(ctx.title)`)\n *\n * @codeGenApi\n */\nfunction ɵɵi18nExp(value) {\n const lView = getLView();\n setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));\n return ɵɵi18nExp;\n}\n/**\n * Updates a translation block or an i18n attribute when the bindings have changed.\n *\n * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}\n * (i18n attribute) on which it should update the content.\n *\n * @codeGenApi\n */\nfunction ɵɵi18nApply(index) {\n applyI18n(getTView(), getLView(), index + HEADER_OFFSET);\n}\n/**\n * Handles message string post-processing for internationalization.\n *\n * Handles message string post-processing by transforming it from intermediate\n * format (that might contain some markers that we need to replace) to the final\n * form, consumable by i18nStart instruction. Post processing steps include:\n *\n * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])\n * 2. Replace all ICU vars (like \"VAR_PLURAL\")\n * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}\n * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)\n * in case multiple ICUs have the same placeholder name\n *\n * @param message Raw translation string for post processing\n * @param replacements Set of replacements that should be applied\n *\n * @returns Transformed string that can be consumed by i18nStart instruction\n *\n * @codeGenApi\n */\nfunction ɵɵi18nPostprocess(message, replacements = {}) {\n return i18nPostprocess(message, replacements);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Resolves the providers which are defined in the DirectiveDef.\n *\n * When inserting the tokens and the factories in their respective arrays, we can assume that\n * this method is called first for the component (if any), and then for other directives on the same\n * node.\n * As a consequence,the providers are always processed in that order:\n * 1) The view providers of the component\n * 2) The providers of the component\n * 3) The providers of the other directives\n * This matches the structure of the injectables arrays of a view (for each node).\n * So the tokens and the factories can be pushed at the end of the arrays, except\n * in one case for multi providers.\n *\n * @param def the directive definition\n * @param providers: Array of `providers`.\n * @param viewProviders: Array of `viewProviders`.\n */\nfunction providersResolver(def, providers, viewProviders) {\n const tView = getTView();\n if (tView.firstCreatePass) {\n const isComponent = isComponentDef(def);\n // The list of view providers is processed first, and the flags are updated\n resolveProvider(viewProviders, tView.data, tView.blueprint, isComponent, true);\n // Then, the list of providers is processed, and the flags are updated\n resolveProvider(providers, tView.data, tView.blueprint, isComponent, false);\n }\n}\n/**\n * Resolves a provider and publishes it to the DI system.\n */\nfunction resolveProvider(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {\n provider = resolveForwardRef(provider);\n if (Array.isArray(provider)) {\n // Recursively call `resolveProvider`\n // Recursion is OK in this case because this code will not be in hot-path once we implement\n // cloning of the initial state.\n for (let i = 0; i < provider.length; i++) {\n resolveProvider(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);\n }\n }\n else {\n const tView = getTView();\n const lView = getLView();\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);\n let providerFactory = providerToFactory(provider);\n const tNode = getCurrentTNode();\n const beginIndex = tNode.providerIndexes & 1048575 /* ProvidersStartIndexMask */;\n const endIndex = tNode.directiveStart;\n const cptViewProvidersCount = tNode.providerIndexes >> 20 /* CptViewProvidersCountShift */;\n if (isTypeProvider(provider) || !provider.multi) {\n // Single provider case: the factory is created and pushed immediately\n const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);\n const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);\n if (existingFactoryIndex === -1) {\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n lInjectablesBlueprint[existingFactoryIndex] = factory;\n lView[existingFactoryIndex] = factory;\n }\n }\n else {\n // Multi provider case:\n // We create a multi factory which is going to aggregate all the values.\n // Since the output of such a factory depends on content or view injection,\n // we create two of them, which are linked together.\n //\n // The first one (for view providers) is always in the first block of the injectables array,\n // and the second one (for providers) is always in the second block.\n // This is important because view providers have higher priority. When a multi token\n // is being looked up, the view providers should be found first.\n // Note that it is not possible to have a multi factory in the third block (directive block).\n //\n // The algorithm to process multi providers is as follows:\n // 1) If the multi provider comes from the `viewProviders` of the component:\n // a) If the special view providers factory doesn't exist, it is created and pushed.\n // b) Else, the multi provider is added to the existing multi factory.\n // 2) If the multi provider comes from the `providers` of the component or of another\n // directive:\n // a) If the multi factory doesn't exist, it is created and provider pushed into it.\n // It is also linked to the multi factory for view providers, if it exists.\n // b) Else, the multi provider is added to the existing multi factory.\n const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);\n const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);\n const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 &&\n lInjectablesBlueprint[existingProvidersFactoryIndex];\n const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 &&\n lInjectablesBlueprint[existingViewProvidersFactoryIndex];\n if (isViewProvider && !doesViewProvidersFactoryExist ||\n !isViewProvider && !doesProvidersFactoryExist) {\n // Cases 1.a and 2.a\n diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);\n const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);\n if (!isViewProvider && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;\n }\n registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);\n tInjectables.push(token);\n tNode.directiveStart++;\n tNode.directiveEnd++;\n if (isViewProvider) {\n tNode.providerIndexes += 1048576 /* CptViewProvidersCountShifter */;\n }\n lInjectablesBlueprint.push(factory);\n lView.push(factory);\n }\n else {\n // Cases 1.b and 2.b\n const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex :\n existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);\n registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex :\n existingViewProvidersFactoryIndex, indexInFactory);\n }\n if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {\n lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;\n }\n }\n }\n}\n/**\n * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.\n * @param tView `TView` in which to register the hook.\n * @param provider Provider whose hook should be registered.\n * @param contextIndex Index under which to find the context for the hook when it's being invoked.\n * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi\n * provider factory.\n */\nfunction registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {\n const providerIsTypeProvider = isTypeProvider(provider);\n const providerIsClassProvider = isClassProvider(provider);\n if (providerIsTypeProvider || providerIsClassProvider) {\n // Resolve forward references as `useClass` can hold a forward reference.\n const classToken = providerIsClassProvider ? resolveForwardRef(provider.useClass) : provider;\n const prototype = classToken.prototype;\n const ngOnDestroy = prototype.ngOnDestroy;\n if (ngOnDestroy) {\n const hooks = tView.destroyHooks || (tView.destroyHooks = []);\n if (!providerIsTypeProvider && provider.multi) {\n ngDevMode &&\n assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');\n const existingCallbacksIndex = hooks.indexOf(contextIndex);\n if (existingCallbacksIndex === -1) {\n hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);\n }\n else {\n hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);\n }\n }\n else {\n hooks.push(contextIndex, ngOnDestroy);\n }\n }\n }\n}\n/**\n * Add a factory in a multi factory.\n * @returns Index at which the factory was inserted.\n */\nfunction multiFactoryAdd(multiFactory, factory, isComponentProvider) {\n if (isComponentProvider) {\n multiFactory.componentProviders++;\n }\n return multiFactory.multi.push(factory) - 1;\n}\n/**\n * Returns the index of item in the array, but only in the begin to end range.\n */\nfunction indexOf(item, arr, begin, end) {\n for (let i = begin; i < end; i++) {\n if (arr[i] === item)\n return i;\n }\n return -1;\n}\n/**\n * Use this with `multi` `providers`.\n */\nfunction multiProvidersFactoryResolver(_, tData, lData, tNode) {\n return multiResolve(this.multi, []);\n}\n/**\n * Use this with `multi` `viewProviders`.\n *\n * This factory knows how to concatenate itself with the existing `multi` `providers`.\n */\nfunction multiViewProvidersFactoryResolver(_, tData, lView, tNode) {\n const factories = this.multi;\n let result;\n if (this.providerFactory) {\n const componentCount = this.providerFactory.componentProviders;\n const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);\n // Copy the section of the array which contains `multi` `providers` from the component\n result = multiProviders.slice(0, componentCount);\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n // Copy the section of the array which contains `multi` `providers` from other directives\n for (let i = componentCount; i < multiProviders.length; i++) {\n result.push(multiProviders[i]);\n }\n }\n else {\n result = [];\n // Insert the `viewProvider` instances.\n multiResolve(factories, result);\n }\n return result;\n}\n/**\n * Maps an array of factories into an array of values.\n */\nfunction multiResolve(factories, result) {\n for (let i = 0; i < factories.length; i++) {\n const factory = factories[i];\n result.push(factory());\n }\n return result;\n}\n/**\n * Creates a multi factory.\n */\nfunction multiFactory(factoryFn, index, isViewProvider, isComponent, f) {\n const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);\n factory.multi = [];\n factory.index = index;\n factory.componentProviders = 0;\n multiFactoryAdd(factory, f, isComponent && !isViewProvider);\n return factory;\n}\n\n/**\n * This feature resolves the providers of a directive (or component),\n * and publish them into the DI system, making it visible to others for injection.\n *\n * For example:\n * ```ts\n * class ComponentWithProviders {\n * constructor(private greeter: GreeterDE) {}\n *\n * static ɵcmp = defineComponent({\n * type: ComponentWithProviders,\n * selectors: [['component-with-providers']],\n * factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),\n * decls: 1,\n * vars: 1,\n * template: function(fs: RenderFlags, ctx: ComponentWithProviders) {\n * if (fs & RenderFlags.Create) {\n * ɵɵtext(0);\n * }\n * if (fs & RenderFlags.Update) {\n * ɵɵtextInterpolate(ctx.greeter.greet());\n * }\n * },\n * features: [ɵɵProvidersFeature([GreeterDE])]\n * });\n * }\n * ```\n *\n * @param definition\n *\n * @codeGenApi\n */\nfunction ɵɵProvidersFeature(providers, viewProviders = []) {\n return (definition) => {\n definition.providersResolver =\n (def, processProvidersFn) => {\n return providersResolver(def, //\n processProvidersFn ? processProvidersFn(providers) : providers, //\n viewProviders);\n };\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents a component created by a `ComponentFactory`.\n * Provides access to the component instance and related objects,\n * and provides the means of destroying the instance.\n *\n * @publicApi\n */\nclass ComponentRef$1 {\n}\n/**\n * Base class for a factory that can create a component dynamically.\n * Instantiate a factory for a given type of component with `resolveComponentFactory()`.\n * Use the resulting `ComponentFactory.create()` method to create a component of that type.\n *\n * @see [Dynamic Components](guide/dynamic-component-loader)\n *\n * @publicApi\n */\nclass ComponentFactory$1 {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction noComponentFactoryError(component) {\n const error = Error(`No component factory found for ${stringify(component)}. Did you add it to @NgModule.entryComponents?`);\n error[ERROR_COMPONENT] = component;\n return error;\n}\nconst ERROR_COMPONENT = 'ngComponent';\nfunction getComponent(error) {\n return error[ERROR_COMPONENT];\n}\nclass _NullComponentFactoryResolver {\n resolveComponentFactory(component) {\n throw noComponentFactoryError(component);\n }\n}\n/**\n * A simple registry that maps `Components` to generated `ComponentFactory` classes\n * that can be used to create instances of components.\n * Use to obtain the factory for a given component type,\n * then use the factory's `create()` method to create a component of that type.\n *\n * Note: since v13, dynamic component creation via\n * [`ViewContainerRef.createComponent`](api/core/ViewContainerRef#createComponent)\n * does **not** require resolving component factory: component class can be used directly.\n *\n * @publicApi\n */\nclass ComponentFactoryResolver$1 {\n}\nComponentFactoryResolver$1.NULL = ( /* @__PURE__ */new _NullComponentFactoryResolver());\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nclass ElementRef {\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n}\n/**\n * @internal\n * @nocollapse\n */\nElementRef.__NG_ELEMENT_ID__ = injectElementRef;\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst Renderer2Interceptor = new InjectionToken('Renderer2Interceptor');\n/**\n * Creates and initializes a custom renderer that implements the `Renderer2` base class.\n *\n * @publicApi\n */\nclass RendererFactory2 {\n}\n/**\n * Extend this base class to implement custom rendering. By default, Angular\n * renders a template into DOM. You can use custom rendering to intercept\n * rendering calls, or to render to something other than DOM.\n *\n * Create your custom renderer using `RendererFactory2`.\n *\n * Use a custom renderer to bypass Angular's templating and\n * make custom UI changes that can't be expressed declaratively.\n * For example if you need to set a property or an attribute whose name is\n * not statically known, use the `setProperty()` or\n * `setAttribute()` method.\n *\n * @publicApi\n */\nclass Renderer2 {\n}\n/**\n * @internal\n * @nocollapse\n */\nRenderer2.__NG_ELEMENT_ID__ = () => injectRenderer2();\n/** Returns a Renderer2 (or throws when application was bootstrapped with Renderer3) */\nfunction getOrCreateRenderer2(lView) {\n const renderer = lView[RENDERER];\n if (ngDevMode && !isProceduralRenderer(renderer)) {\n throw new Error('Cannot inject Renderer2 when the application uses Renderer3!');\n }\n return renderer;\n}\n/** Injects a Renderer2 for the current component. */\nfunction injectRenderer2() {\n // We need the Renderer to be based on the component that it's being injected into, however since\n // DI happens before we've entered its view, `getLView` will return the parent view instead.\n const lView = getLView();\n const tNode = getCurrentTNode();\n const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);\n return getOrCreateRenderer2(isLView(nodeAtIndex) ? nodeAtIndex : lView);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @publicApi\n */\nclass Sanitizer {\n}\n/** @nocollapse */\nSanitizer.ɵprov = ɵɵdefineInjectable({\n token: Sanitizer,\n providedIn: 'root',\n factory: () => null,\n});\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @description Represents the version of Angular\n *\n * @publicApi\n */\nclass Version {\n constructor(full) {\n this.full = full;\n this.major = full.split('.')[0];\n this.minor = full.split('.')[1];\n this.patch = full.split('.').slice(2).join('.');\n }\n}\n/**\n * @publicApi\n */\nconst VERSION = new Version('13.1.1');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This default value is when checking the hierarchy for a token.\n//\n// It means both:\n// - the token is not provided by the current injector,\n// - only the element injectors should be checked (ie do not check module injectors\n//\n// mod1\n// /\n// el1 mod2\n// \\ /\n// el2\n//\n// When requesting el2.injector.get(token), we should check in the following order and return the\n// first found value:\n// - el2.injector.get(token, default)\n// - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module\n// - mod2.injector.get(token, default)\nconst NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction collectNativeNodes(tView, lView, tNode, result, isProjection = false) {\n while (tNode !== null) {\n ngDevMode &&\n assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 16 /* Projection */ | 32 /* Icu */);\n const lNode = lView[tNode.index];\n if (lNode !== null) {\n result.push(unwrapRNode(lNode));\n }\n // A given lNode can represent either a native node or a LContainer (when it is a host of a\n // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes\n // from the views in this container.\n if (isLContainer(lNode)) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lNode.length; i++) {\n const lViewInAContainer = lNode[i];\n const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;\n if (lViewFirstChildTNode !== null) {\n collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);\n }\n }\n }\n const tNodeType = tNode.type;\n if (tNodeType & 8 /* ElementContainer */) {\n collectNativeNodes(tView, lView, tNode.child, result);\n }\n else if (tNodeType & 32 /* Icu */) {\n const nextRNode = icuContainerIterate(tNode, lView);\n let rNode;\n while (rNode = nextRNode()) {\n result.push(rNode);\n }\n }\n else if (tNodeType & 16 /* Projection */) {\n const nodesInSlot = getProjectionNodes(lView, tNode);\n if (Array.isArray(nodesInSlot)) {\n result.push(...nodesInSlot);\n }\n else {\n const parentView = getLViewParent(lView[DECLARATION_COMPONENT_VIEW]);\n ngDevMode && assertParentView(parentView);\n collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);\n }\n }\n tNode = isProjection ? tNode.projectionNext : tNode.next;\n }\n return result;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass ViewRef$1 {\n constructor(\n /**\n * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.\n *\n * When ViewRef is created for a dynamic component, this also represents the `LView` for the\n * component.\n *\n * For a \"regular\" ViewRef created for an embedded view, this is the `LView` for the embedded\n * view.\n *\n * @internal\n */\n _lView, \n /**\n * This represents the `LView` associated with the point where `ChangeDetectorRef` was\n * requested.\n *\n * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.\n */\n _cdRefInjectingView) {\n this._lView = _lView;\n this._cdRefInjectingView = _cdRefInjectingView;\n this._appRef = null;\n this._attachedToViewContainer = false;\n }\n get rootNodes() {\n const lView = this._lView;\n const tView = lView[TVIEW];\n return collectNativeNodes(tView, lView, tView.firstChild, []);\n }\n get context() {\n return this._lView[CONTEXT];\n }\n set context(value) {\n this._lView[CONTEXT] = value;\n }\n get destroyed() {\n return (this._lView[FLAGS] & 256 /* Destroyed */) === 256 /* Destroyed */;\n }\n destroy() {\n if (this._appRef) {\n this._appRef.detachView(this);\n }\n else if (this._attachedToViewContainer) {\n const parent = this._lView[PARENT];\n if (isLContainer(parent)) {\n const viewRefs = parent[VIEW_REFS];\n const index = viewRefs ? viewRefs.indexOf(this) : -1;\n if (index > -1) {\n ngDevMode &&\n assertEqual(index, parent.indexOf(this._lView) - CONTAINER_HEADER_OFFSET, 'An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array.');\n detachView(parent, index);\n removeFromArray(viewRefs, index);\n }\n }\n this._attachedToViewContainer = false;\n }\n destroyLView(this._lView[TVIEW], this._lView);\n }\n onDestroy(callback) {\n storeCleanupWithContext(this._lView[TVIEW], this._lView, null, callback);\n }\n /**\n * Marks a view and all of its ancestors dirty.\n *\n * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush OnPush} component is\n * checked when it needs to be re-rendered but the two normal triggers haven't marked it\n * dirty (i.e. inputs haven't changed and events haven't fired in the view).\n *\n * <!-- TODO: Add a link to a chapter on OnPush components -->\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * @Component({\n * selector: 'app-root',\n * template: `Number of ticks: {{numberOfTicks}}`\n * changeDetection: ChangeDetectionStrategy.OnPush,\n * })\n * class AppComponent {\n * numberOfTicks = 0;\n *\n * constructor(private ref: ChangeDetectorRef) {\n * setInterval(() => {\n * this.numberOfTicks++;\n * // the following is required, otherwise the view will not be updated\n * this.ref.markForCheck();\n * }, 1000);\n * }\n * }\n * ```\n */\n markForCheck() {\n markViewDirty(this._cdRefInjectingView || this._lView);\n }\n /**\n * Detaches the view from the change detection tree.\n *\n * Detached views will not be checked during change detection runs until they are\n * re-attached, even if they are dirty. `detach` can be used in combination with\n * {@link ChangeDetectorRef#detectChanges detectChanges} to implement local change\n * detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds. We can do that by detaching\n * the component's change detector and doing a local check every five seconds.\n *\n * ```typescript\n * class DataProvider {\n * // in a real application the returned data will be different every time\n * get data() {\n * return [1,2,3,4,5];\n * }\n * }\n *\n * @Component({\n * selector: 'giant-list',\n * template: `\n * <li *ngFor=\"let d of dataProvider.data\">Data {{d}}</li>\n * `,\n * })\n * class GiantList {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {\n * ref.detach();\n * setInterval(() => {\n * this.ref.detectChanges();\n * }, 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [DataProvider],\n * template: `\n * <giant-list><giant-list>\n * `,\n * })\n * class App {\n * }\n * ```\n */\n detach() {\n this._lView[FLAGS] &= ~128 /* Attached */;\n }\n /**\n * Re-attaches a view to the change detection tree.\n *\n * This can be used to re-attach views that were previously detached from the tree\n * using {@link ChangeDetectorRef#detach detach}. Views are attached to the tree by default.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example creates a component displaying `live` data. The component will detach\n * its change detector from the main change detector tree when the component's live property\n * is set to false.\n *\n * ```typescript\n * class DataProvider {\n * data = 1;\n *\n * constructor() {\n * setInterval(() => {\n * this.data = this.data * 2;\n * }, 500);\n * }\n * }\n *\n * @Component({\n * selector: 'live-data',\n * inputs: ['live'],\n * template: 'Data: {{dataProvider.data}}'\n * })\n * class LiveData {\n * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}\n *\n * set live(value) {\n * if (value) {\n * this.ref.reattach();\n * } else {\n * this.ref.detach();\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app-root',\n * providers: [DataProvider],\n * template: `\n * Live Update: <input type=\"checkbox\" [(ngModel)]=\"live\">\n * <live-data [live]=\"live\"><live-data>\n * `,\n * })\n * class AppComponent {\n * live = true;\n * }\n * ```\n */\n reattach() {\n this._lView[FLAGS] |= 128 /* Attached */;\n }\n /**\n * Checks the view and its children.\n *\n * This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement\n * local change detection checks.\n *\n * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->\n * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->\n *\n * @usageNotes\n * ### Example\n *\n * The following example defines a component with a large list of readonly data.\n * Imagine, the data changes constantly, many times per second. For performance reasons,\n * we want to check and update the list every five seconds.\n *\n * We can do that by detaching the component's change detector and doing a local change detection\n * check every five seconds.\n *\n * See {@link ChangeDetectorRef#detach detach} for more information.\n */\n detectChanges() {\n detectChangesInternal(this._lView[TVIEW], this._lView, this.context);\n }\n /**\n * Checks the change detector and its children, and throws if any changes are detected.\n *\n * This is used in development mode to verify that running change detection doesn't\n * introduce other changes.\n */\n checkNoChanges() {\n checkNoChangesInternal(this._lView[TVIEW], this._lView, this.context);\n }\n attachToViewContainerRef() {\n if (this._appRef) {\n throw new Error('This view is already attached directly to the ApplicationRef!');\n }\n this._attachedToViewContainer = true;\n }\n detachFromAppRef() {\n this._appRef = null;\n renderDetachView(this._lView[TVIEW], this._lView);\n }\n attachToAppRef(appRef) {\n if (this._attachedToViewContainer) {\n throw new Error('This view is already attached to a ViewContainer!');\n }\n this._appRef = appRef;\n }\n}\n/** @internal */\nclass RootViewRef extends ViewRef$1 {\n constructor(_view) {\n super(_view);\n this._view = _view;\n }\n detectChanges() {\n detectChangesInRootView(this._view);\n }\n checkNoChanges() {\n checkNoChangesInRootView(this._view);\n }\n get context() {\n return null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass ComponentFactoryResolver extends ComponentFactoryResolver$1 {\n /**\n * @param ngModule The NgModuleRef to which all resolved factories are bound.\n */\n constructor(ngModule) {\n super();\n this.ngModule = ngModule;\n }\n resolveComponentFactory(component) {\n ngDevMode && assertComponentType(component);\n const componentDef = getComponentDef(component);\n return new ComponentFactory(componentDef, this.ngModule);\n }\n}\nfunction toRefArray(map) {\n const array = [];\n for (let nonMinified in map) {\n if (map.hasOwnProperty(nonMinified)) {\n const minified = map[nonMinified];\n array.push({ propName: minified, templateName: nonMinified });\n }\n }\n return array;\n}\nfunction getNamespace(elementName) {\n const name = elementName.toLowerCase();\n return name === 'svg' ? SVG_NAMESPACE : (name === 'math' ? MATH_ML_NAMESPACE : null);\n}\n/**\n * A change detection scheduler token for {@link RootContext}. This token is the default value used\n * for the default `RootContext` found in the {@link ROOT_CONTEXT} token.\n */\nconst SCHEDULER = new InjectionToken('SCHEDULER_TOKEN', {\n providedIn: 'root',\n factory: () => defaultScheduler,\n});\nfunction createChainedInjector(rootViewInjector, moduleInjector) {\n return {\n get: (token, notFoundValue, flags) => {\n const value = rootViewInjector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);\n if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||\n notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {\n // Return the value from the root element injector when\n // - it provides it\n // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n // - the module injector should not be checked\n // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)\n return value;\n }\n return moduleInjector.get(token, notFoundValue, flags);\n }\n };\n}\n/**\n * Render3 implementation of {@link viewEngine_ComponentFactory}.\n */\nclass ComponentFactory extends ComponentFactory$1 {\n /**\n * @param componentDef The component definition.\n * @param ngModule The NgModuleRef to which the factory is bound.\n */\n constructor(componentDef, ngModule) {\n super();\n this.componentDef = componentDef;\n this.ngModule = ngModule;\n this.componentType = componentDef.type;\n this.selector = stringifyCSSSelectorList(componentDef.selectors);\n this.ngContentSelectors =\n componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];\n this.isBoundToModule = !!ngModule;\n }\n get inputs() {\n return toRefArray(this.componentDef.inputs);\n }\n get outputs() {\n return toRefArray(this.componentDef.outputs);\n }\n create(injector, projectableNodes, rootSelectorOrNode, ngModule) {\n ngModule = ngModule || this.ngModule;\n const rootViewInjector = ngModule ? createChainedInjector(injector, ngModule.injector) : injector;\n const rendererFactory = rootViewInjector.get(RendererFactory2, domRendererFactory3);\n const sanitizer = rootViewInjector.get(Sanitizer, null);\n const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);\n // Determine a tag name used for creating host elements when this component is created\n // dynamically. Default to 'div' if this component did not specify any tag name in its selector.\n const elementName = this.componentDef.selectors[0][0] || 'div';\n const hostRNode = rootSelectorOrNode ?\n locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) :\n createElementNode(rendererFactory.createRenderer(null, this.componentDef), elementName, getNamespace(elementName));\n const rootFlags = this.componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :\n 16 /* CheckAlways */ | 512 /* IsRoot */;\n const rootContext = createRootContext();\n // Create the root view. Uses empty TView and ContentTemplate.\n const rootTView = createTView(0 /* Root */, null, null, 1, 0, null, null, null, null, null);\n const rootLView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, hostRenderer, sanitizer, rootViewInjector);\n // rootView is the parent when bootstrapping\n // TODO(misko): it looks like we are entering view here but we don't really need to as\n // `renderView` does that. However as the code is written it is needed because\n // `createRootComponentView` and `createRootComponent` both read global state. Fixing those\n // issues would allow us to drop this.\n enterView(rootLView);\n let component;\n let tElementNode;\n try {\n const componentView = createRootComponentView(hostRNode, this.componentDef, rootLView, rendererFactory, hostRenderer);\n if (hostRNode) {\n if (rootSelectorOrNode) {\n setUpAttributes(hostRenderer, hostRNode, ['ng-version', VERSION.full]);\n }\n else {\n // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`\n // is not defined), also apply attributes and classes extracted from component selector.\n // Extract attributes and classes from the first selector only to match VE behavior.\n const { attrs, classes } = extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);\n if (attrs) {\n setUpAttributes(hostRenderer, hostRNode, attrs);\n }\n if (classes && classes.length > 0) {\n writeDirectClass(hostRenderer, hostRNode, classes.join(' '));\n }\n }\n }\n tElementNode = getTNode(rootTView, HEADER_OFFSET);\n if (projectableNodes !== undefined) {\n const projection = tElementNode.projection = [];\n for (let i = 0; i < this.ngContentSelectors.length; i++) {\n const nodesforSlot = projectableNodes[i];\n // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade\n // case). Here we do normalize passed data structure to be an array of arrays to avoid\n // complex checks down the line.\n // We also normalize the length of the passed in projectable nodes (to match the number of\n // <ng-container> slots defined by a component).\n projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);\n }\n }\n // TODO: should LifecycleHooksFeature and other host features be generated by the compiler and\n // executed here?\n // Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref\n component = createRootComponent(componentView, this.componentDef, rootLView, rootContext, [LifecycleHooksFeature]);\n renderView(rootTView, rootLView, null);\n }\n finally {\n leaveView();\n }\n return new ComponentRef(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);\n }\n}\nconst componentFactoryResolver = new ComponentFactoryResolver();\n/**\n * Creates a ComponentFactoryResolver and stores it on the injector. Or, if the\n * ComponentFactoryResolver\n * already exists, retrieves the existing ComponentFactoryResolver.\n *\n * @returns The ComponentFactoryResolver instance to use\n */\nfunction injectComponentFactoryResolver() {\n return componentFactoryResolver;\n}\n/**\n * Represents an instance of a Component created via a {@link ComponentFactory}.\n *\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\n * method.\n *\n */\nclass ComponentRef extends ComponentRef$1 {\n constructor(componentType, instance, location, _rootLView, _tNode) {\n super();\n this.location = location;\n this._rootLView = _rootLView;\n this._tNode = _tNode;\n this.instance = instance;\n this.hostView = this.changeDetectorRef = new RootViewRef(_rootLView);\n this.componentType = componentType;\n }\n get injector() {\n return new NodeInjector(this._tNode, this._rootLView);\n }\n destroy() {\n this.hostView.destroy();\n }\n onDestroy(callback) {\n this.hostView.onDestroy(callback);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Adds decorator, constructor, and property metadata to a given type via static metadata fields\n * on the type.\n *\n * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.\n *\n * Calls to `setClassMetadata` can be guarded by ngDevMode, resulting in the metadata assignments\n * being tree-shaken away during production builds.\n */\nfunction setClassMetadata(type, decorators, ctorParameters, propDecorators) {\n return noSideEffects(() => {\n const clazz = type;\n if (decorators !== null) {\n if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {\n clazz.decorators.push(...decorators);\n }\n else {\n clazz.decorators = decorators;\n }\n }\n if (ctorParameters !== null) {\n // Rather than merging, clobber the existing parameters. If other projects exist which\n // use tsickle-style annotations and reflect over them in the same way, this could\n // cause issues, but that is vanishingly unlikely.\n clazz.ctorParameters = ctorParameters;\n }\n if (propDecorators !== null) {\n // The property decorator objects are merged as it is possible different fields have\n // different decorator types. Decorators on individual fields are not merged, as it's\n // also incredibly unlikely that a field will be decorated both with an Angular\n // decorator and a non-Angular decorator that's also been downleveled.\n if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {\n clazz.propDecorators = Object.assign(Object.assign({}, clazz.propDecorators), propDecorators);\n }\n else {\n clazz.propDecorators = propDecorators;\n }\n }\n });\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents an instance of an `NgModule` created by an `NgModuleFactory`.\n * Provides access to the `NgModule` instance and related objects.\n *\n * @publicApi\n */\nclass NgModuleRef$1 {\n}\n/**\n * @publicApi\n *\n * @deprecated\n * This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy\n * JIT mode. See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes)\n * for additional context. Angular provides APIs that accept NgModule classes directly (such as\n * [PlatformRef.bootstrapModule](api/core/PlatformRef#bootstrapModule) and\n * [createNgModuleRef](api/core/createNgModuleRef)), consider switching to those APIs instead of\n * using factory-based ones.\n */\nclass NgModuleFactory$1 {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Map of module-id to the corresponding NgModule.\n * - In pre Ivy we track NgModuleFactory,\n * - In post Ivy we track the NgModuleType\n */\nconst modules = new Map();\n/**\n * Registers a loaded module. Should only be called from generated NgModuleFactory code.\n * @publicApi\n */\nfunction registerModuleFactory(id, factory) {\n const existing = modules.get(id);\n assertSameOrNotExisting(id, existing && existing.moduleType, factory.moduleType);\n modules.set(id, factory);\n}\nfunction assertSameOrNotExisting(id, type, incoming) {\n if (type && type !== incoming) {\n throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);\n }\n}\nfunction registerNgModuleType(ngModuleType) {\n const visited = new Set();\n recurse(ngModuleType);\n function recurse(ngModuleType) {\n // The imports array of an NgModule must refer to other NgModules,\n // so an error is thrown if no module definition is available.\n const def = getNgModuleDef(ngModuleType, /* throwNotFound */ true);\n const id = def.id;\n if (id !== null) {\n const existing = modules.get(id);\n assertSameOrNotExisting(id, existing, ngModuleType);\n modules.set(id, ngModuleType);\n }\n const imports = maybeUnwrapFn(def.imports);\n for (const i of imports) {\n if (!visited.has(i)) {\n visited.add(i);\n recurse(i);\n }\n }\n }\n}\nfunction clearModulesForTest() {\n modules.clear();\n}\nfunction getRegisteredNgModuleType(id) {\n return (modules.get(id) || autoRegisterModuleById[id]);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.\n * @param ngModule NgModule class.\n * @param parentInjector Optional injector instance to use as a parent for the module injector. If\n * not provided, `NullInjector` will be used instead.\n * @publicApi\n */\nfunction createNgModuleRef(ngModule, parentInjector) {\n return new NgModuleRef(ngModule, parentInjector !== null && parentInjector !== void 0 ? parentInjector : null);\n}\nclass NgModuleRef extends NgModuleRef$1 {\n constructor(ngModuleType, _parent) {\n super();\n this._parent = _parent;\n // tslint:disable-next-line:require-internal-with-underscore\n this._bootstrapComponents = [];\n this.injector = this;\n this.destroyCbs = [];\n // When bootstrapping a module we have a dependency graph that looks like this:\n // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the\n // module being resolved tries to inject the ComponentFactoryResolver, it'll create a\n // circular dependency which will result in a runtime error, because the injector doesn't\n // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves\n // and providing it, rather than letting the injector resolve it.\n this.componentFactoryResolver = new ComponentFactoryResolver(this);\n const ngModuleDef = getNgModuleDef(ngModuleType);\n ngDevMode &&\n assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);\n this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);\n this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [\n { provide: NgModuleRef$1, useValue: this }, {\n provide: ComponentFactoryResolver$1,\n useValue: this.componentFactoryResolver\n }\n ], stringify(ngModuleType));\n // We need to resolve the injector types separately from the injector creation, because\n // the module might be trying to use this ref in its contructor for DI which will cause a\n // circular error that will eventually error out, because the injector isn't created yet.\n this._r3Injector._resolveInjectorDefTypes();\n this.instance = this.get(ngModuleType);\n }\n get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND, injectFlags = InjectFlags.Default) {\n if (token === Injector || token === NgModuleRef$1 || token === INJECTOR) {\n return this;\n }\n return this._r3Injector.get(token, notFoundValue, injectFlags);\n }\n destroy() {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n const injector = this._r3Injector;\n !injector.destroyed && injector.destroy();\n this.destroyCbs.forEach(fn => fn());\n this.destroyCbs = null;\n }\n onDestroy(callback) {\n ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');\n this.destroyCbs.push(callback);\n }\n}\nclass NgModuleFactory extends NgModuleFactory$1 {\n constructor(moduleType) {\n super();\n this.moduleType = moduleType;\n const ngModuleDef = getNgModuleDef(moduleType);\n if (ngModuleDef !== null) {\n // Register the NgModule with Angular's module registry. The location (and hence timing) of\n // this call is critical to ensure this works correctly (modules get registered when expected)\n // without bloating bundles (modules are registered when otherwise not referenced).\n //\n // In View Engine, registration occurs in the .ngfactory.js file as a side effect. This has\n // several practical consequences:\n //\n // - If an .ngfactory file is not imported from, the module won't be registered (and can be\n // tree shaken).\n // - If an .ngfactory file is imported from, the module will be registered even if an instance\n // is not actually created (via `create` below).\n // - Since an .ngfactory file in View Engine references the .ngfactory files of the NgModule's\n // imports,\n //\n // In Ivy, things are a bit different. .ngfactory files still exist for compatibility, but are\n // not a required API to use - there are other ways to obtain an NgModuleFactory for a given\n // NgModule. Thus, relying on a side effect in the .ngfactory file is not sufficient. Instead,\n // the side effect of registration is added here, in the constructor of NgModuleFactory,\n // ensuring no matter how a factory is created, the module is registered correctly.\n //\n // An alternative would be to include the registration side effect inline following the actual\n // NgModule definition. This also has the correct timing, but breaks tree-shaking - modules\n // will be registered and retained even if they're otherwise never referenced.\n registerNgModuleType(moduleType);\n }\n }\n create(parentInjector) {\n return new NgModuleRef(this.moduleType, parentInjector);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Bindings for pure functions are stored after regular bindings.\n *\n * |-------decls------|---------vars---------| |----- hostVars (dir1) ------|\n * ------------------------------------------------------------------------------------------\n * | nodes/refs/pipes | bindings | fn slots | injector | dir1 | host bindings | host slots |\n * ------------------------------------------------------------------------------------------\n * ^ ^\n * TView.bindingStartIndex TView.expandoStartIndex\n *\n * Pure function instructions are given an offset from the binding root. Adding the offset to the\n * binding root gives the first index where the bindings are stored. In component views, the binding\n * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +\n * any directive instances + any hostVars in directives evaluated before it.\n *\n * See VIEW_DATA.md for more information about host binding resolution.\n */\n/**\n * If the value hasn't been saved, calls the pure function to store and return the\n * value. If it has been saved, returns the saved value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns a value\n * @param thisArg Optional calling context of pureFn\n * @returns value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction0(slotOffset, pureFn, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n return lView[bindingIndex] === NO_CHANGE ?\n updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) :\n getBinding(lView, bindingIndex);\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {\n return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {\n return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated(lView, bindingIndex + 4, exp5) || different ?\n updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) :\n pureFn(exp1, exp2, exp3, exp4, exp5)) :\n getBinding(lView, bindingIndex + 5);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ?\n updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) :\n getBinding(lView, bindingIndex + 6);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ?\n updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) :\n getBinding(lView, bindingIndex + 7);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param exp5\n * @param exp6\n * @param exp7\n * @param exp8\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {\n const bindingIndex = getBindingRoot() + slotOffset;\n const lView = getLView();\n const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);\n return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ?\n updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) :\n pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) :\n getBinding(lView, bindingIndex + 8);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n * @codeGenApi\n */\nfunction ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {\n return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);\n}\n/**\n * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized\n * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first\n * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE\n * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert\n * it to `undefined`.\n */\nfunction getPureFunctionReturnValue(lView, returnValueIndex) {\n ngDevMode && assertIndexInRange(lView, returnValueIndex);\n const lastReturnValue = lView[returnValueIndex];\n return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;\n}\n/**\n * If the value of the provided exp has changed, calls the pure function to return\n * an updated value. Or if the value has not changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn Function that returns an updated value\n * @param exp Updated expression value\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated(lView, bindingIndex, exp) ?\n updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) :\n getPureFunctionReturnValue(lView, bindingIndex + 1);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated2(lView, bindingIndex, exp1, exp2) ?\n updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) :\n getPureFunctionReturnValue(lView, bindingIndex + 2);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ?\n updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) :\n getPureFunctionReturnValue(lView, bindingIndex + 3);\n}\n/**\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn\n * @param exp1\n * @param exp2\n * @param exp3\n * @param exp4\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n *\n */\nfunction pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {\n const bindingIndex = bindingRoot + slotOffset;\n return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ?\n updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) :\n getPureFunctionReturnValue(lView, bindingIndex + 4);\n}\n/**\n * pureFunction instruction that can support any number of bindings.\n *\n * If the value of any provided exp has changed, calls the pure function to return\n * an updated value. Or if no values have changed, returns cached value.\n *\n * @param lView LView in which the function is being executed.\n * @param bindingRoot Binding root index.\n * @param slotOffset the offset from binding root to the reserved slot\n * @param pureFn A pure function that takes binding values and builds an object or array\n * containing those values.\n * @param exps An array of binding values\n * @param thisArg Optional calling context of pureFn\n * @returns Updated or cached value\n */\nfunction pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {\n let bindingIndex = bindingRoot + slotOffset;\n let different = false;\n for (let i = 0; i < exps.length; i++) {\n bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);\n }\n return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) :\n getPureFunctionReturnValue(lView, bindingIndex);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Create a pipe.\n *\n * @param index Pipe index where the pipe will be stored.\n * @param pipeName The name of the pipe\n * @returns T the instance of the pipe.\n *\n * @codeGenApi\n */\nfunction ɵɵpipe(index, pipeName) {\n const tView = getTView();\n let pipeDef;\n const adjustedIndex = index + HEADER_OFFSET;\n if (tView.firstCreatePass) {\n // The `getPipeDef` throws if a pipe with a given name is not found\n // (so we use non-null assertion below).\n pipeDef = getPipeDef(pipeName, tView.pipeRegistry);\n tView.data[adjustedIndex] = pipeDef;\n if (pipeDef.onDestroy) {\n (tView.destroyHooks || (tView.destroyHooks = [])).push(adjustedIndex, pipeDef.onDestroy);\n }\n }\n else {\n pipeDef = tView.data[adjustedIndex];\n }\n const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));\n const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);\n try {\n // DI for pipes is supposed to behave like directives when placed on a component\n // host node, which means that we have to disable access to `viewProviders`.\n const previousIncludeViewProviders = setIncludeViewProviders(false);\n const pipeInstance = pipeFactory();\n setIncludeViewProviders(previousIncludeViewProviders);\n store(tView, getLView(), adjustedIndex, pipeInstance);\n return pipeInstance;\n }\n finally {\n // we have to restore the injector implementation in finally, just in case the creation of the\n // pipe throws an error.\n setInjectImplementation(previousInjectImplementation);\n }\n}\n/**\n * Searches the pipe registry for a pipe with the given name. If one is found,\n * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.\n *\n * @param name Name of pipe to resolve\n * @param registry Full list of available pipes\n * @returns Matching PipeDef\n */\nfunction getPipeDef(name, registry) {\n if (registry) {\n for (let i = registry.length - 1; i >= 0; i--) {\n const pipeDef = registry[i];\n if (name === pipeDef.name) {\n return pipeDef;\n }\n }\n }\n if (ngDevMode) {\n const lView = getLView();\n const declarationLView = lView[DECLARATION_COMPONENT_VIEW];\n const context = declarationLView[CONTEXT];\n const component = context ? ` in the '${context.constructor.name}' component` : '';\n throw new RuntimeError(\"302\" /* PIPE_NOT_FOUND */, `The pipe '${name}' could not be found${component}!`);\n }\n}\n/**\n * Invokes a pipe with 1 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind1(index, slotOffset, v1) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction1Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, pipeInstance) :\n pipeInstance.transform(v1);\n}\n/**\n * Invokes a pipe with 2 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind2(index, slotOffset, v1, v2) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) :\n pipeInstance.transform(v1, v2);\n}\n/**\n * Invokes a pipe with 3 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 4rd argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) :\n pipeInstance.transform(v1, v2, v3);\n}\n/**\n * Invokes a pipe with 4 arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param v1 1st argument to {@link PipeTransform#transform}.\n * @param v2 2nd argument to {@link PipeTransform#transform}.\n * @param v3 3rd argument to {@link PipeTransform#transform}.\n * @param v4 4th argument to {@link PipeTransform#transform}.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) :\n pipeInstance.transform(v1, v2, v3, v4);\n}\n/**\n * Invokes a pipe with variable number of arguments.\n *\n * This instruction acts as a guard to {@link PipeTransform#transform} invoking\n * the pipe only when an input to the pipe changes.\n *\n * @param index Pipe index where the pipe was stored on creation.\n * @param slotOffset the offset in the reserved slot space\n * @param values Array of arguments to pass to {@link PipeTransform#transform} method.\n *\n * @codeGenApi\n */\nfunction ɵɵpipeBindV(index, slotOffset, values) {\n const adjustedIndex = index + HEADER_OFFSET;\n const lView = getLView();\n const pipeInstance = load(lView, adjustedIndex);\n return isPure(lView, adjustedIndex) ?\n pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) :\n pipeInstance.transform.apply(pipeInstance, values);\n}\nfunction isPure(lView, index) {\n return lView[TVIEW].data[index].pure;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass EventEmitter_ extends Subject {\n constructor(isAsync = false) {\n super();\n this.__isAsync = isAsync;\n }\n emit(value) {\n super.next(value);\n }\n subscribe(observerOrNext, error, complete) {\n var _a, _b, _c;\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = (_a = observer.next) === null || _a === void 0 ? void 0 : _a.bind(observer);\n errorFn = (_b = observer.error) === null || _b === void 0 ? void 0 : _b.bind(observer);\n completeFn = (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = _wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = _wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = _wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({ next: nextFn, error: errorFn, complete: completeFn });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n}\nfunction _wrapInTimeout(fn) {\n return (value) => {\n setTimeout(fn, undefined, value);\n };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction symbolIterator() {\n return this._results[getSymbolIterator()]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n this.dirty = true;\n this._results = [];\n this._changesDetected = false;\n this._changes = null;\n this.length = 0;\n this.first = undefined;\n this.last = undefined;\n // This function should be declared on the prototype, but doing so there will cause the class\n // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n // the constructor.\n // [getSymbolIterator()](): Iterator<T> { ... }\n const symbol = getSymbolIterator();\n const proto = QueryList.prototype;\n if (!proto[symbol])\n proto[symbol] = symbolIterator;\n }\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return this._changes || (this._changes = new EventEmitter());\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n /**\n * See\n * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)\n */\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n // Cast to `QueryListInternal` so that we can mutate fields which are readonly for the usage of\n // QueryList (but not for QueryList itself.)\n const self = this;\n self.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if (this._changesDetected = !arrayEquals(self._results, newResultFlat, identityAccessor)) {\n self._results = newResultFlat;\n self.length = newResultFlat.length;\n self.last = newResultFlat[this.length - 1];\n self.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes && (this._changesDetected || !this._emitDistinctChangesOnly))\n this._changes.emit(this);\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n }\n /** internal */\n destroy() {\n this.changes.complete();\n this.changes.unsubscribe();\n }\n}\nSymbol.iterator;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents an embedded template that can be used to instantiate embedded views.\n * To instantiate embedded views based on a template, use the `ViewContainerRef`\n * method `createEmbeddedView()`.\n *\n * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`\n * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view\n * is injected into the constructor of the directive,\n * using the `TemplateRef` token.\n *\n * You can also use a `Query` to find a `TemplateRef` associated with\n * a component or a directive.\n *\n * @see `ViewContainerRef`\n * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)\n *\n * @publicApi\n */\nclass TemplateRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nTemplateRef.__NG_ELEMENT_ID__ = injectTemplateRef;\nconst ViewEngineTemplateRef = TemplateRef;\n// TODO(alxhub): combine interface and implementation. Currently this is challenging since something\n// in g3 depends on them being separate.\nconst R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {\n constructor(_declarationLView, _declarationTContainer, elementRef) {\n super();\n this._declarationLView = _declarationLView;\n this._declarationTContainer = _declarationTContainer;\n this.elementRef = elementRef;\n }\n createEmbeddedView(context) {\n const embeddedTView = this._declarationTContainer.tViews;\n const embeddedLView = createLView(this._declarationLView, embeddedTView, context, 16 /* CheckAlways */, null, embeddedTView.declTNode, null, null, null, null);\n const declarationLContainer = this._declarationLView[this._declarationTContainer.index];\n ngDevMode && assertLContainer(declarationLContainer);\n embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;\n const declarationViewLQueries = this._declarationLView[QUERIES];\n if (declarationViewLQueries !== null) {\n embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);\n }\n renderView(embeddedTView, embeddedLView, context);\n return new ViewRef$1(embeddedLView);\n }\n};\n/**\n * Creates a TemplateRef given a node.\n *\n * @returns The TemplateRef instance to use\n */\nfunction injectTemplateRef() {\n return createTemplateRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates a TemplateRef and stores it on the injector.\n *\n * @param hostTNode The node on which a TemplateRef is requested\n * @param hostLView The `LView` to which the node belongs\n * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type\n */\nfunction createTemplateRef(hostTNode, hostLView) {\n if (hostTNode.type & 4 /* Container */) {\n ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');\n return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));\n }\n return null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents a container where one or more views can be attached to a component.\n *\n * Can contain *host views* (created by instantiating a\n * component with the `createComponent()` method), and *embedded views*\n * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).\n *\n * A view container instance can contain other view containers,\n * creating a [view hierarchy](guide/glossary#view-tree).\n *\n * @see `ComponentRef`\n * @see `EmbeddedViewRef`\n *\n * @publicApi\n */\nclass ViewContainerRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nViewContainerRef.__NG_ELEMENT_ID__ = injectViewContainerRef;\n/**\n * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef\n * already exists, retrieves the existing ViewContainerRef.\n *\n * @returns The ViewContainerRef instance to use\n */\nfunction injectViewContainerRef() {\n const previousTNode = getCurrentTNode();\n return createContainerRef(previousTNode, getLView());\n}\nconst VE_ViewContainerRef = ViewContainerRef;\n// TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix\n// for that lands, this can be cleaned up.\nconst R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {\n constructor(_lContainer, _hostTNode, _hostLView) {\n super();\n this._lContainer = _lContainer;\n this._hostTNode = _hostTNode;\n this._hostLView = _hostLView;\n }\n get element() {\n return createElementRef(this._hostTNode, this._hostLView);\n }\n get injector() {\n return new NodeInjector(this._hostTNode, this._hostLView);\n }\n /** @deprecated No replacement */\n get parentInjector() {\n const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);\n if (hasParentInjector(parentLocation)) {\n const parentView = getParentInjectorView(parentLocation, this._hostLView);\n const injectorIndex = getParentInjectorIndex(parentLocation);\n ngDevMode && assertNodeInjector(parentView, injectorIndex);\n const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* TNODE */];\n return new NodeInjector(parentTNode, parentView);\n }\n else {\n return new NodeInjector(null, this._hostLView);\n }\n }\n clear() {\n while (this.length > 0) {\n this.remove(this.length - 1);\n }\n }\n get(index) {\n const viewRefs = getViewRefs(this._lContainer);\n return viewRefs !== null && viewRefs[index] || null;\n }\n get length() {\n return this._lContainer.length - CONTAINER_HEADER_OFFSET;\n }\n createEmbeddedView(templateRef, context, index) {\n const viewRef = templateRef.createEmbeddedView(context || {});\n this.insert(viewRef, index);\n return viewRef;\n }\n createComponent(componentFactoryOrType, indexOrOptions, injector, projectableNodes, ngModuleRef) {\n const isComponentFactory = componentFactoryOrType && !isType(componentFactoryOrType);\n let index;\n // This function supports 2 signatures and we need to handle options correctly for both:\n // 1. When first argument is a Component type. This signature also requires extra\n // options to be provided as as object (more ergonomic option).\n // 2. First argument is a Component factory. In this case extra options are represented as\n // positional arguments. This signature is less ergonomic and will be deprecated.\n if (isComponentFactory) {\n if (ngDevMode) {\n assertEqual(typeof indexOrOptions !== 'object', true, 'It looks like Component factory was provided as the first argument ' +\n 'and an options object as the second argument. This combination of arguments ' +\n 'is incompatible. You can either change the first argument to provide Component ' +\n 'type or change the second argument to be a number (representing an index at ' +\n 'which to insert the new component\\'s host view into this container)');\n }\n index = indexOrOptions;\n }\n else {\n if (ngDevMode) {\n assertDefined(getComponentDef(componentFactoryOrType), `Provided Component class doesn't contain Component definition. ` +\n `Please check whether provided class has @Component decorator.`);\n assertEqual(typeof indexOrOptions !== 'number', true, 'It looks like Component type was provided as the first argument ' +\n 'and a number (representing an index at which to insert the new component\\'s ' +\n 'host view into this container as the second argument. This combination of arguments ' +\n 'is incompatible. Please use an object as the second argument instead.');\n }\n const options = (indexOrOptions || {});\n index = options.index;\n injector = options.injector;\n projectableNodes = options.projectableNodes;\n ngModuleRef = options.ngModuleRef;\n }\n const componentFactory = isComponentFactory ?\n componentFactoryOrType :\n new ComponentFactory(getComponentDef(componentFactoryOrType));\n const contextInjector = injector || this.parentInjector;\n if (!ngModuleRef && componentFactory.ngModule == null && contextInjector) {\n // DO NOT REFACTOR. The code here used to have a `value || undefined` expression\n // which seems to cause internal google apps to fail. This is documented in the\n // following internal bug issue: go/b/142967802\n const result = contextInjector.get(NgModuleRef$1, null);\n if (result) {\n ngModuleRef = result;\n }\n }\n const componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);\n this.insert(componentRef.hostView, index);\n return componentRef;\n }\n insert(viewRef, index) {\n const lView = viewRef._lView;\n const tView = lView[TVIEW];\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot insert a destroyed View in a ViewContainer!');\n }\n if (viewAttachedToContainer(lView)) {\n // If view is already attached, detach it first so we clean up references appropriately.\n const prevIdx = this.indexOf(viewRef);\n // A view might be attached either to this or a different container. The `prevIdx` for\n // those cases will be:\n // equal to -1 for views attached to this ViewContainerRef\n // >= 0 for views attached to a different ViewContainerRef\n if (prevIdx !== -1) {\n this.detach(prevIdx);\n }\n else {\n const prevLContainer = lView[PARENT];\n ngDevMode &&\n assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');\n // We need to re-create a R3ViewContainerRef instance since those are not stored on\n // LView (nor anywhere else).\n const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);\n prevVCRef.detach(prevVCRef.indexOf(viewRef));\n }\n }\n // Logical operation of adding `LView` to `LContainer`\n const adjustedIdx = this._adjustIndex(index);\n const lContainer = this._lContainer;\n insertView(tView, lView, lContainer, adjustedIdx);\n // Physical operation of adding the DOM nodes.\n const beforeNode = getBeforeNodeForView(adjustedIdx, lContainer);\n const renderer = lView[RENDERER];\n const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);\n if (parentRNode !== null) {\n addViewToContainer(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);\n }\n viewRef.attachToViewContainerRef();\n addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);\n return viewRef;\n }\n move(viewRef, newIndex) {\n if (ngDevMode && viewRef.destroyed) {\n throw new Error('Cannot move a destroyed View in a ViewContainer!');\n }\n return this.insert(viewRef, newIndex);\n }\n indexOf(viewRef) {\n const viewRefsArr = getViewRefs(this._lContainer);\n return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;\n }\n remove(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const detachedView = detachView(this._lContainer, adjustedIdx);\n if (detachedView) {\n // Before destroying the view, remove it from the container's array of `ViewRef`s.\n // This ensures the view container length is updated before calling\n // `destroyLView`, which could recursively call view container methods that\n // rely on an accurate container length.\n // (e.g. a method on this view container being called by a child directive's OnDestroy\n // lifecycle hook)\n removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);\n destroyLView(detachedView[TVIEW], detachedView);\n }\n }\n detach(index) {\n const adjustedIdx = this._adjustIndex(index, -1);\n const view = detachView(this._lContainer, adjustedIdx);\n const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;\n return wasDetached ? new ViewRef$1(view) : null;\n }\n _adjustIndex(index, shift = 0) {\n if (index == null) {\n return this.length + shift;\n }\n if (ngDevMode) {\n assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);\n // +1 because it's legal to insert at the end.\n assertLessThan(index, this.length + 1 + shift, 'index');\n }\n return index;\n }\n};\nfunction getViewRefs(lContainer) {\n return lContainer[VIEW_REFS];\n}\nfunction getOrCreateViewRefs(lContainer) {\n return (lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []));\n}\n/**\n * Creates a ViewContainerRef and stores it on the injector.\n *\n * @param ViewContainerRefToken The ViewContainerRef type\n * @param ElementRefToken The ElementRef type\n * @param hostTNode The node that is requesting a ViewContainerRef\n * @param hostLView The view to which the node belongs\n * @returns The ViewContainerRef instance to use\n */\nfunction createContainerRef(hostTNode, hostLView) {\n ngDevMode && assertTNodeType(hostTNode, 12 /* AnyContainer */ | 3 /* AnyRNode */);\n let lContainer;\n const slotValue = hostLView[hostTNode.index];\n if (isLContainer(slotValue)) {\n // If the host is a container, we don't need to create a new LContainer\n lContainer = slotValue;\n }\n else {\n let commentNode;\n // If the host is an element container, the native host element is guaranteed to be a\n // comment and we can reuse that comment as anchor element for the new LContainer.\n // The comment node in question is already part of the DOM structure so we don't need to append\n // it again.\n if (hostTNode.type & 8 /* ElementContainer */) {\n commentNode = unwrapRNode(slotValue);\n }\n else {\n // If the host is a regular element, we have to insert a comment node manually which will\n // be used as an anchor when inserting elements. In this specific case we use low-level DOM\n // manipulation to insert it.\n const renderer = hostLView[RENDERER];\n ngDevMode && ngDevMode.rendererCreateComment++;\n commentNode = renderer.createComment(ngDevMode ? 'container' : '');\n const hostNative = getNativeByTNode(hostTNode, hostLView);\n const parentOfHostNative = nativeParentNode(renderer, hostNative);\n nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);\n }\n hostLView[hostTNode.index] = lContainer =\n createLContainer(slotValue, hostLView, commentNode, hostTNode);\n addToViewTree(hostLView, lContainer);\n }\n return new R3ViewContainerRef(lContainer, hostTNode, hostLView);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd$1 = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// Note: This hack is necessary so we don't erroneously get a circular dependency\n// failure based on types.\nconst unusedValueExportToPlacateAjd = 1;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst unusedValueToPlacateAjd = unusedValueExportToPlacateAjd$1 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd;\nclass LQuery_ {\n constructor(queryList) {\n this.queryList = queryList;\n this.matches = null;\n }\n clone() {\n return new LQuery_(this.queryList);\n }\n setDirty() {\n this.queryList.setDirty();\n }\n}\nclass LQueries_ {\n constructor(queries = []) {\n this.queries = queries;\n }\n createEmbeddedView(tView) {\n const tQueries = tView.queries;\n if (tQueries !== null) {\n const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;\n const viewLQueries = [];\n // An embedded view has queries propagated from a declaration view at the beginning of the\n // TQueries collection and up until a first content query declared in the embedded view. Only\n // propagated LQueries are created at this point (LQuery corresponding to declared content\n // queries will be instantiated from the content query instructions for each directive).\n for (let i = 0; i < noOfInheritedQueries; i++) {\n const tQuery = tQueries.getByIndex(i);\n const parentLQuery = this.queries[tQuery.indexInDeclarationView];\n viewLQueries.push(parentLQuery.clone());\n }\n return new LQueries_(viewLQueries);\n }\n return null;\n }\n insertView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n detachView(tView) {\n this.dirtyQueriesWithMatches(tView);\n }\n dirtyQueriesWithMatches(tView) {\n for (let i = 0; i < this.queries.length; i++) {\n if (getTQuery(tView, i).matches !== null) {\n this.queries[i].setDirty();\n }\n }\n }\n}\nclass TQueryMetadata_ {\n constructor(predicate, flags, read = null) {\n this.predicate = predicate;\n this.flags = flags;\n this.read = read;\n }\n}\nclass TQueries_ {\n constructor(queries = []) {\n this.queries = queries;\n }\n elementStart(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementStart(tView, tNode);\n }\n }\n elementEnd(tNode) {\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].elementEnd(tNode);\n }\n }\n embeddedTView(tNode) {\n let queriesForTemplateRef = null;\n for (let i = 0; i < this.length; i++) {\n const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;\n const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);\n if (tqueryClone) {\n tqueryClone.indexInDeclarationView = i;\n if (queriesForTemplateRef !== null) {\n queriesForTemplateRef.push(tqueryClone);\n }\n else {\n queriesForTemplateRef = [tqueryClone];\n }\n }\n }\n return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;\n }\n template(tView, tNode) {\n ngDevMode &&\n assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');\n for (let i = 0; i < this.queries.length; i++) {\n this.queries[i].template(tView, tNode);\n }\n }\n getByIndex(index) {\n ngDevMode && assertIndexInRange(this.queries, index);\n return this.queries[index];\n }\n get length() {\n return this.queries.length;\n }\n track(tquery) {\n this.queries.push(tquery);\n }\n}\nclass TQuery_ {\n constructor(metadata, nodeIndex = -1) {\n this.metadata = metadata;\n this.matches = null;\n this.indexInDeclarationView = -1;\n this.crossesNgTemplate = false;\n /**\n * A flag indicating if a given query still applies to nodes it is crossing. We use this flag\n * (alongside with _declarationNodeIndex) to know when to stop applying content queries to\n * elements in a template.\n */\n this._appliesToNextNode = true;\n this._declarationNodeIndex = nodeIndex;\n }\n elementStart(tView, tNode) {\n if (this.isApplyingToNode(tNode)) {\n this.matchTNode(tView, tNode);\n }\n }\n elementEnd(tNode) {\n if (this._declarationNodeIndex === tNode.index) {\n this._appliesToNextNode = false;\n }\n }\n template(tView, tNode) {\n this.elementStart(tView, tNode);\n }\n embeddedTView(tNode, childQueryIndex) {\n if (this.isApplyingToNode(tNode)) {\n this.crossesNgTemplate = true;\n // A marker indicating a `<ng-template>` element (a placeholder for query results from\n // embedded views created based on this `<ng-template>`).\n this.addMatch(-tNode.index, childQueryIndex);\n return new TQuery_(this.metadata);\n }\n return null;\n }\n isApplyingToNode(tNode) {\n if (this._appliesToNextNode &&\n (this.metadata.flags & 1 /* descendants */) !== 1 /* descendants */) {\n const declarationNodeIdx = this._declarationNodeIndex;\n let parent = tNode.parent;\n // Determine if a given TNode is a \"direct\" child of a node on which a content query was\n // declared (only direct children of query's host node can match with the descendants: false\n // option). There are 3 main use-case / conditions to consider here:\n // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query\n // host node;\n // - <needs-target><ng-template [ngIf]=\"true\"><i #target></i></ng-template></needs-target>:\n // here <i #target> parent node is null;\n // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need\n // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse\n // up past the query's host node!).\n while (parent !== null && (parent.type & 8 /* ElementContainer */) &&\n parent.index !== declarationNodeIdx) {\n parent = parent.parent;\n }\n return declarationNodeIdx === (parent !== null ? parent.index : -1);\n }\n return this._appliesToNextNode;\n }\n matchTNode(tView, tNode) {\n const predicate = this.metadata.predicate;\n if (Array.isArray(predicate)) {\n for (let i = 0; i < predicate.length; i++) {\n const name = predicate[i];\n this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));\n // Also try matching the name to a provider since strings can be used as DI tokens too.\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));\n }\n }\n else {\n if (predicate === TemplateRef) {\n if (tNode.type & 4 /* Container */) {\n this.matchTNodeWithReadOption(tView, tNode, -1);\n }\n }\n else {\n this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));\n }\n }\n }\n matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {\n if (nodeMatchIdx !== null) {\n const read = this.metadata.read;\n if (read !== null) {\n if (read === ElementRef || read === ViewContainerRef ||\n read === TemplateRef && (tNode.type & 4 /* Container */)) {\n this.addMatch(tNode.index, -2);\n }\n else {\n const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);\n if (directiveOrProviderIdx !== null) {\n this.addMatch(tNode.index, directiveOrProviderIdx);\n }\n }\n }\n else {\n this.addMatch(tNode.index, nodeMatchIdx);\n }\n }\n }\n addMatch(tNodeIdx, matchIdx) {\n if (this.matches === null) {\n this.matches = [tNodeIdx, matchIdx];\n }\n else {\n this.matches.push(tNodeIdx, matchIdx);\n }\n }\n}\n/**\n * Iterates over local names for a given node and returns directive index\n * (or -1 if a local name points to an element).\n *\n * @param tNode static data of a node to check\n * @param selector selector to match\n * @returns directive index, -1 or null if a selector didn't match any of the local names\n */\nfunction getIdxOfMatchingSelector(tNode, selector) {\n const localNames = tNode.localNames;\n if (localNames !== null) {\n for (let i = 0; i < localNames.length; i += 2) {\n if (localNames[i] === selector) {\n return localNames[i + 1];\n }\n }\n }\n return null;\n}\nfunction createResultByTNodeType(tNode, currentView) {\n if (tNode.type & (3 /* AnyRNode */ | 8 /* ElementContainer */)) {\n return createElementRef(tNode, currentView);\n }\n else if (tNode.type & 4 /* Container */) {\n return createTemplateRef(tNode, currentView);\n }\n return null;\n}\nfunction createResultForNode(lView, tNode, matchingIdx, read) {\n if (matchingIdx === -1) {\n // if read token and / or strategy is not specified, detect it using appropriate tNode type\n return createResultByTNodeType(tNode, lView);\n }\n else if (matchingIdx === -2) {\n // read a special token from a node injector\n return createSpecialToken(lView, tNode, read);\n }\n else {\n // read a token\n return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);\n }\n}\nfunction createSpecialToken(lView, tNode, read) {\n if (read === ElementRef) {\n return createElementRef(tNode, lView);\n }\n else if (read === TemplateRef) {\n return createTemplateRef(tNode, lView);\n }\n else if (read === ViewContainerRef) {\n ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);\n return createContainerRef(tNode, lView);\n }\n else {\n ngDevMode &&\n throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);\n }\n}\n/**\n * A helper function that creates query results for a given view. This function is meant to do the\n * processing once and only once for a given view instance (a set of results for a given view\n * doesn't change).\n */\nfunction materializeViewResults(tView, lView, tQuery, queryIndex) {\n const lQuery = lView[QUERIES].queries[queryIndex];\n if (lQuery.matches === null) {\n const tViewData = tView.data;\n const tQueryMatches = tQuery.matches;\n const result = [];\n for (let i = 0; i < tQueryMatches.length; i += 2) {\n const matchedNodeIdx = tQueryMatches[i];\n if (matchedNodeIdx < 0) {\n // we at the <ng-template> marker which might have results in views created based on this\n // <ng-template> - those results will be in separate views though, so here we just leave\n // null as a placeholder\n result.push(null);\n }\n else {\n ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);\n const tNode = tViewData[matchedNodeIdx];\n result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));\n }\n }\n lQuery.matches = result;\n }\n return lQuery.matches;\n}\n/**\n * A helper function that collects (already materialized) query results from a tree of views,\n * starting with a provided LView.\n */\nfunction collectQueryResults(tView, lView, queryIndex, result) {\n const tQuery = tView.queries.getByIndex(queryIndex);\n const tQueryMatches = tQuery.matches;\n if (tQueryMatches !== null) {\n const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);\n for (let i = 0; i < tQueryMatches.length; i += 2) {\n const tNodeIdx = tQueryMatches[i];\n if (tNodeIdx > 0) {\n result.push(lViewResults[i / 2]);\n }\n else {\n const childQueryIndex = tQueryMatches[i + 1];\n const declarationLContainer = lView[-tNodeIdx];\n ngDevMode && assertLContainer(declarationLContainer);\n // collect matches for views inserted in this container\n for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {\n const embeddedLView = declarationLContainer[i];\n if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n // collect matches for views created from this declaration container and inserted into\n // different containers\n if (declarationLContainer[MOVED_VIEWS] !== null) {\n const embeddedLViews = declarationLContainer[MOVED_VIEWS];\n for (let i = 0; i < embeddedLViews.length; i++) {\n const embeddedLView = embeddedLViews[i];\n collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);\n }\n }\n }\n }\n }\n return result;\n}\n/**\n * Refreshes a query by combining matches from all active views and removing matches from deleted\n * views.\n *\n * @returns `true` if a query got dirty during change detection or if this is a static query\n * resolving in creation mode, `false` otherwise.\n *\n * @codeGenApi\n */\nfunction ɵɵqueryRefresh(queryList) {\n const lView = getLView();\n const tView = getTView();\n const queryIndex = getCurrentQueryIndex();\n setCurrentQueryIndex(queryIndex + 1);\n const tQuery = getTQuery(tView, queryIndex);\n if (queryList.dirty &&\n (isCreationMode(lView) ===\n ((tQuery.metadata.flags & 2 /* isStatic */) === 2 /* isStatic */))) {\n if (tQuery.matches === null) {\n queryList.reset([]);\n }\n else {\n const result = tQuery.crossesNgTemplate ?\n collectQueryResults(tView, lView, queryIndex, []) :\n materializeViewResults(tView, lView, tQuery, queryIndex);\n queryList.reset(result, unwrapElementRef);\n queryList.notifyOnChanges();\n }\n return true;\n }\n return false;\n}\n/**\n * Creates new QueryList, stores the reference in LView and returns QueryList.\n *\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n *\n * @codeGenApi\n */\nfunction ɵɵviewQuery(predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), -1);\n if ((flags & 2 /* isStatic */) === 2 /* isStatic */) {\n tView.staticViewQueries = true;\n }\n }\n createLQuery(tView, getLView(), flags);\n}\n/**\n * Registers a QueryList, associated with a content query, for later refresh (part of a view\n * refresh).\n *\n * @param directiveIndex Current directive index\n * @param predicate The type for which the query will search\n * @param flags Flags associated with the query\n * @param read What to save in the query\n * @returns QueryList<T>\n *\n * @codeGenApi\n */\nfunction ɵɵcontentQuery(directiveIndex, predicate, flags, read) {\n ngDevMode && assertNumber(flags, 'Expecting flags');\n const tView = getTView();\n if (tView.firstCreatePass) {\n const tNode = getCurrentTNode();\n createTQuery(tView, new TQueryMetadata_(predicate, flags, read), tNode.index);\n saveContentQueryAndDirectiveIndex(tView, directiveIndex);\n if ((flags & 2 /* isStatic */) === 2 /* isStatic */) {\n tView.staticContentQueries = true;\n }\n }\n createLQuery(tView, getLView(), flags);\n}\n/**\n * Loads a QueryList corresponding to the current view or content query.\n *\n * @codeGenApi\n */\nfunction ɵɵloadQuery() {\n return loadQueryInternal(getLView(), getCurrentQueryIndex());\n}\nfunction loadQueryInternal(lView, queryIndex) {\n ngDevMode &&\n assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');\n ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);\n return lView[QUERIES].queries[queryIndex].queryList;\n}\nfunction createLQuery(tView, lView, flags) {\n const queryList = new QueryList((flags & 4 /* emitDistinctChangesOnly */) === 4 /* emitDistinctChangesOnly */);\n storeCleanupWithContext(tView, lView, queryList, queryList.destroy);\n if (lView[QUERIES] === null)\n lView[QUERIES] = new LQueries_();\n lView[QUERIES].queries.push(new LQuery_(queryList));\n}\nfunction createTQuery(tView, metadata, nodeIndex) {\n if (tView.queries === null)\n tView.queries = new TQueries_();\n tView.queries.track(new TQuery_(metadata, nodeIndex));\n}\nfunction saveContentQueryAndDirectiveIndex(tView, directiveIndex) {\n const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);\n const lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;\n if (directiveIndex !== lastSavedDirectiveIndex) {\n tViewContentQueries.push(tView.queries.length - 1, directiveIndex);\n }\n}\nfunction getTQuery(tView, index) {\n ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');\n return tView.queries.getByIndex(index);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the\n * `<ng-template>` element.\n *\n * @codeGenApi\n */\nfunction ɵɵtemplateRefExtractor(tNode, lView) {\n return createTemplateRef(tNode, lView);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreEnv = (() => ({\n 'ɵɵattribute': ɵɵattribute,\n 'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,\n 'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,\n 'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,\n 'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,\n 'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,\n 'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,\n 'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,\n 'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,\n 'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,\n 'ɵɵdefineComponent': ɵɵdefineComponent,\n 'ɵɵdefineDirective': ɵɵdefineDirective,\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵdefineNgModule': ɵɵdefineNgModule,\n 'ɵɵdefinePipe': ɵɵdefinePipe,\n 'ɵɵdirectiveInject': ɵɵdirectiveInject,\n 'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinjectAttribute': ɵɵinjectAttribute,\n 'ɵɵinvalidFactory': ɵɵinvalidFactory,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,\n 'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,\n 'ɵɵProvidersFeature': ɵɵProvidersFeature,\n 'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,\n 'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,\n 'ɵɵnextContext': ɵɵnextContext,\n 'ɵɵnamespaceHTML': ɵɵnamespaceHTML,\n 'ɵɵnamespaceMathML': ɵɵnamespaceMathML,\n 'ɵɵnamespaceSVG': ɵɵnamespaceSVG,\n 'ɵɵenableBindings': ɵɵenableBindings,\n 'ɵɵdisableBindings': ɵɵdisableBindings,\n 'ɵɵelementStart': ɵɵelementStart,\n 'ɵɵelementEnd': ɵɵelementEnd,\n 'ɵɵelement': ɵɵelement,\n 'ɵɵelementContainerStart': ɵɵelementContainerStart,\n 'ɵɵelementContainerEnd': ɵɵelementContainerEnd,\n 'ɵɵelementContainer': ɵɵelementContainer,\n 'ɵɵpureFunction0': ɵɵpureFunction0,\n 'ɵɵpureFunction1': ɵɵpureFunction1,\n 'ɵɵpureFunction2': ɵɵpureFunction2,\n 'ɵɵpureFunction3': ɵɵpureFunction3,\n 'ɵɵpureFunction4': ɵɵpureFunction4,\n 'ɵɵpureFunction5': ɵɵpureFunction5,\n 'ɵɵpureFunction6': ɵɵpureFunction6,\n 'ɵɵpureFunction7': ɵɵpureFunction7,\n 'ɵɵpureFunction8': ɵɵpureFunction8,\n 'ɵɵpureFunctionV': ɵɵpureFunctionV,\n 'ɵɵgetCurrentView': ɵɵgetCurrentView,\n 'ɵɵrestoreView': ɵɵrestoreView,\n 'ɵɵlistener': ɵɵlistener,\n 'ɵɵprojection': ɵɵprojection,\n 'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,\n 'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,\n 'ɵɵpipeBind1': ɵɵpipeBind1,\n 'ɵɵpipeBind2': ɵɵpipeBind2,\n 'ɵɵpipeBind3': ɵɵpipeBind3,\n 'ɵɵpipeBind4': ɵɵpipeBind4,\n 'ɵɵpipeBindV': ɵɵpipeBindV,\n 'ɵɵprojectionDef': ɵɵprojectionDef,\n 'ɵɵhostProperty': ɵɵhostProperty,\n 'ɵɵproperty': ɵɵproperty,\n 'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,\n 'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,\n 'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,\n 'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,\n 'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,\n 'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,\n 'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,\n 'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,\n 'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,\n 'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,\n 'ɵɵpipe': ɵɵpipe,\n 'ɵɵqueryRefresh': ɵɵqueryRefresh,\n 'ɵɵviewQuery': ɵɵviewQuery,\n 'ɵɵloadQuery': ɵɵloadQuery,\n 'ɵɵcontentQuery': ɵɵcontentQuery,\n 'ɵɵreference': ɵɵreference,\n 'ɵɵclassMap': ɵɵclassMap,\n 'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,\n 'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,\n 'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,\n 'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,\n 'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,\n 'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,\n 'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,\n 'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,\n 'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,\n 'ɵɵstyleMap': ɵɵstyleMap,\n 'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,\n 'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,\n 'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,\n 'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,\n 'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,\n 'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,\n 'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,\n 'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,\n 'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,\n 'ɵɵstyleProp': ɵɵstyleProp,\n 'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,\n 'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,\n 'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,\n 'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,\n 'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,\n 'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,\n 'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,\n 'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,\n 'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,\n 'ɵɵclassProp': ɵɵclassProp,\n 'ɵɵadvance': ɵɵadvance,\n 'ɵɵtemplate': ɵɵtemplate,\n 'ɵɵtext': ɵɵtext,\n 'ɵɵtextInterpolate': ɵɵtextInterpolate,\n 'ɵɵtextInterpolate1': ɵɵtextInterpolate1,\n 'ɵɵtextInterpolate2': ɵɵtextInterpolate2,\n 'ɵɵtextInterpolate3': ɵɵtextInterpolate3,\n 'ɵɵtextInterpolate4': ɵɵtextInterpolate4,\n 'ɵɵtextInterpolate5': ɵɵtextInterpolate5,\n 'ɵɵtextInterpolate6': ɵɵtextInterpolate6,\n 'ɵɵtextInterpolate7': ɵɵtextInterpolate7,\n 'ɵɵtextInterpolate8': ɵɵtextInterpolate8,\n 'ɵɵtextInterpolateV': ɵɵtextInterpolateV,\n 'ɵɵi18n': ɵɵi18n,\n 'ɵɵi18nAttributes': ɵɵi18nAttributes,\n 'ɵɵi18nExp': ɵɵi18nExp,\n 'ɵɵi18nStart': ɵɵi18nStart,\n 'ɵɵi18nEnd': ɵɵi18nEnd,\n 'ɵɵi18nApply': ɵɵi18nApply,\n 'ɵɵi18nPostprocess': ɵɵi18nPostprocess,\n 'ɵɵresolveWindow': ɵɵresolveWindow,\n 'ɵɵresolveDocument': ɵɵresolveDocument,\n 'ɵɵresolveBody': ɵɵresolveBody,\n 'ɵɵsetComponentScope': ɵɵsetComponentScope,\n 'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,\n 'ɵɵsanitizeHtml': ɵɵsanitizeHtml,\n 'ɵɵsanitizeStyle': ɵɵsanitizeStyle,\n 'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,\n 'ɵɵsanitizeScript': ɵɵsanitizeScript,\n 'ɵɵsanitizeUrl': ɵɵsanitizeUrl,\n 'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,\n 'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,\n 'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,\n 'forwardRef': forwardRef,\n 'resolveForwardRef': resolveForwardRef,\n}))();\n\nlet jitOptions = null;\nfunction setJitOptions(options) {\n if (jitOptions !== null) {\n if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {\n ngDevMode &&\n console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');\n return;\n }\n if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {\n ngDevMode &&\n console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');\n return;\n }\n }\n jitOptions = options;\n}\nfunction getJitOptions() {\n return jitOptions;\n}\nfunction resetJitOptions() {\n jitOptions = null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst moduleQueue = [];\n/**\n * Enqueues moduleDef to be checked later to see if scope can be set on its\n * component declarations.\n */\nfunction enqueueModuleForDelayedScoping(moduleType, ngModule) {\n moduleQueue.push({ moduleType, ngModule });\n}\nlet flushingModuleQueue = false;\n/**\n * Loops over queued module definitions, if a given module definition has all of its\n * declarations resolved, it dequeues that module definition and sets the scope on\n * its declarations.\n */\nfunction flushModuleScopingQueueAsMuchAsPossible() {\n if (!flushingModuleQueue) {\n flushingModuleQueue = true;\n try {\n for (let i = moduleQueue.length - 1; i >= 0; i--) {\n const { moduleType, ngModule } = moduleQueue[i];\n if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {\n // dequeue\n moduleQueue.splice(i, 1);\n setScopeOnDeclaredComponents(moduleType, ngModule);\n }\n }\n }\n finally {\n flushingModuleQueue = false;\n }\n }\n}\n/**\n * Returns truthy if a declaration has resolved. If the declaration happens to be\n * an array of declarations, it will recurse to check each declaration in that array\n * (which may also be arrays).\n */\nfunction isResolvedDeclaration(declaration) {\n if (Array.isArray(declaration)) {\n return declaration.every(isResolvedDeclaration);\n }\n return !!resolveForwardRef(declaration);\n}\n/**\n * Compiles a module in JIT mode.\n *\n * This function automatically gets called when a class has a `@NgModule` decorator.\n */\nfunction compileNgModule(moduleType, ngModule = {}) {\n compileNgModuleDefs(moduleType, ngModule);\n // Because we don't know if all declarations have resolved yet at the moment the\n // NgModule decorator is executing, we're enqueueing the setting of module scope\n // on its declarations to be run at a later time when all declarations for the module,\n // including forward refs, have resolved.\n enqueueModuleForDelayedScoping(moduleType, ngModule);\n}\n/**\n * Compiles and adds the `ɵmod`, `ɵfac` and `ɵinj` properties to the module class.\n *\n * It's possible to compile a module via this API which will allow duplicate declarations in its\n * root.\n */\nfunction compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {\n ngDevMode && assertDefined(moduleType, 'Required value moduleType');\n ngDevMode && assertDefined(ngModule, 'Required value ngModule');\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n let ngModuleDef = null;\n Object.defineProperty(moduleType, NG_MOD_DEF, {\n configurable: true,\n get: () => {\n if (ngModuleDef === null) {\n if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {\n // We need to assert this immediately, because allowing it to continue will cause it to\n // go into an infinite loop before we've reached the point where we throw all the errors.\n throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);\n }\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'NgModule', type: moduleType });\n ngModuleDef = compiler.compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {\n type: moduleType,\n bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY).map(resolveForwardRef),\n declarations: declarations.map(resolveForwardRef),\n imports: flatten(ngModule.imports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n exports: flatten(ngModule.exports || EMPTY_ARRAY)\n .map(resolveForwardRef)\n .map(expandModuleWithProviders),\n schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,\n id: ngModule.id || null,\n });\n // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime\n // should verify that there are no unknown elements in a template. In AOT mode, that check\n // happens at compile time and `schemas` information is not present on Component and Module\n // defs after compilation (so the check doesn't happen the second time at runtime).\n if (!ngModuleDef.schemas) {\n ngModuleDef.schemas = [];\n }\n }\n return ngModuleDef;\n }\n });\n let ngFactoryDef = null;\n Object.defineProperty(moduleType, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'NgModule', type: moduleType });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${moduleType.name}/ɵfac.js`, {\n name: moduleType.name,\n type: moduleType,\n deps: reflectDependencies(moduleType),\n target: compiler.FactoryTarget.NgModule,\n typeArgumentCount: 0,\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n let ngInjectorDef = null;\n Object.defineProperty(moduleType, NG_INJ_DEF, {\n get: () => {\n if (ngInjectorDef === null) {\n ngDevMode &&\n verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);\n const meta = {\n name: moduleType.name,\n type: moduleType,\n providers: ngModule.providers || EMPTY_ARRAY,\n imports: [\n (ngModule.imports || EMPTY_ARRAY).map(resolveForwardRef),\n (ngModule.exports || EMPTY_ARRAY).map(resolveForwardRef),\n ],\n };\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'NgModule', type: moduleType });\n ngInjectorDef =\n compiler.compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);\n }\n return ngInjectorDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {\n if (verifiedNgModule.get(moduleType))\n return;\n verifiedNgModule.set(moduleType, true);\n moduleType = resolveForwardRef(moduleType);\n let ngModuleDef;\n if (importingModule) {\n ngModuleDef = getNgModuleDef(moduleType);\n if (!ngModuleDef) {\n throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n else {\n ngModuleDef = getNgModuleDef(moduleType, true);\n }\n const errors = [];\n const declarations = maybeUnwrapFn(ngModuleDef.declarations);\n const imports = maybeUnwrapFn(ngModuleDef.imports);\n flatten(imports).map(unwrapModuleWithProvidersImports).forEach(mod => {\n verifySemanticsOfNgModuleImport(mod, moduleType);\n verifySemanticsOfNgModuleDef(mod, false, moduleType);\n });\n const exports = maybeUnwrapFn(ngModuleDef.exports);\n declarations.forEach(verifyDeclarationsHaveDefinitions);\n declarations.forEach(verifyDirectivesHaveSelector);\n const combinedDeclarations = [\n ...declarations.map(resolveForwardRef),\n ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef),\n ];\n exports.forEach(verifyExportsAreDeclaredOrReExported);\n declarations.forEach(decl => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));\n declarations.forEach(verifyComponentEntryComponentsIsPartOfNgModule);\n const ngModule = getAnnotation(moduleType, 'NgModule');\n if (ngModule) {\n ngModule.imports &&\n flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(mod => {\n verifySemanticsOfNgModuleImport(mod, moduleType);\n verifySemanticsOfNgModuleDef(mod, false, moduleType);\n });\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);\n ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);\n ngModule.entryComponents &&\n deepForEach(ngModule.entryComponents, verifyComponentIsPartOfNgModule);\n }\n // Throw Error if any errors were detected.\n if (errors.length) {\n throw new Error(errors.join('\\n'));\n }\n ////////////////////////////////////////////////////////////////////////////////////////////////\n function verifyDeclarationsHaveDefinitions(type) {\n type = resolveForwardRef(type);\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n if (!def) {\n errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);\n }\n }\n function verifyDirectivesHaveSelector(type) {\n type = resolveForwardRef(type);\n const def = getDirectiveDef(type);\n if (!getComponentDef(type) && def && def.selectors.length == 0) {\n errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);\n }\n }\n function verifyExportsAreDeclaredOrReExported(type) {\n type = resolveForwardRef(type);\n const kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' ||\n getPipeDef$1(type) && 'pipe';\n if (kind) {\n // only checked if we are declared as Component, Directive, or Pipe\n // Modules don't need to be declared or imported.\n if (combinedDeclarations.lastIndexOf(type) === -1) {\n // We are exporting something which we don't explicitly declare or import.\n errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);\n }\n }\n }\n function verifyDeclarationIsUnique(type, suppressErrors) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (existingModule && existingModule !== moduleType) {\n if (!suppressErrors) {\n const modules = [existingModule, moduleType].map(stringifyForError).sort();\n errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` +\n `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` +\n `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);\n }\n }\n else {\n // Mark type as having owner.\n ownerNgModule.set(type, moduleType);\n }\n }\n function verifyComponentIsPartOfNgModule(type) {\n type = resolveForwardRef(type);\n const existingModule = ownerNgModule.get(type);\n if (!existingModule) {\n errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);\n }\n }\n function verifyCorrectBootstrapType(type) {\n type = resolveForwardRef(type);\n if (!getComponentDef(type)) {\n errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);\n }\n }\n function verifyComponentEntryComponentsIsPartOfNgModule(type) {\n type = resolveForwardRef(type);\n if (getComponentDef(type)) {\n // We know we are component\n const component = getAnnotation(type, 'Component');\n if (component && component.entryComponents) {\n deepForEach(component.entryComponents, verifyComponentIsPartOfNgModule);\n }\n }\n }\n function verifySemanticsOfNgModuleImport(type, importingModule) {\n type = resolveForwardRef(type);\n if (getComponentDef(type) || getDirectiveDef(type)) {\n throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n if (getPipeDef$1(type)) {\n throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);\n }\n }\n}\nfunction unwrapModuleWithProvidersImports(typeOrWithProviders) {\n typeOrWithProviders = resolveForwardRef(typeOrWithProviders);\n return typeOrWithProviders.ngModule || typeOrWithProviders;\n}\nfunction getAnnotation(type, name) {\n let annotation = null;\n collect(type.__annotations__);\n collect(type.decorators);\n return annotation;\n function collect(annotations) {\n if (annotations) {\n annotations.forEach(readAnnotation);\n }\n }\n function readAnnotation(decorator) {\n if (!annotation) {\n const proto = Object.getPrototypeOf(decorator);\n if (proto.ngMetadataName == name) {\n annotation = decorator;\n }\n else if (decorator.type) {\n const proto = Object.getPrototypeOf(decorator.type);\n if (proto.ngMetadataName == name) {\n annotation = decorator.args[0];\n }\n }\n }\n }\n}\n/**\n * Keep track of compiled components. This is needed because in tests we often want to compile the\n * same component with more than one NgModule. This would cause an error unless we reset which\n * NgModule the component belongs to. We keep the list of compiled components here so that the\n * TestBed can reset it later.\n */\nlet ownerNgModule = new WeakMap();\nlet verifiedNgModule = new WeakMap();\nfunction resetCompiledComponents() {\n ownerNgModule = new WeakMap();\n verifiedNgModule = new WeakMap();\n moduleQueue.length = 0;\n}\n/**\n * Computes the combined declarations of explicit declarations, as well as declarations inherited by\n * traversing the exports of imported modules.\n * @param type\n */\nfunction computeCombinedExports(type) {\n type = resolveForwardRef(type);\n const ngModuleDef = getNgModuleDef(type, true);\n return [...flatten(maybeUnwrapFn(ngModuleDef.exports).map((type) => {\n const ngModuleDef = getNgModuleDef(type);\n if (ngModuleDef) {\n verifySemanticsOfNgModuleDef(type, false);\n return computeCombinedExports(type);\n }\n else {\n return type;\n }\n }))];\n}\n/**\n * Some declared components may be compiled asynchronously, and thus may not have their\n * ɵcmp set yet. If this is the case, then a reference to the module is written into\n * the `ngSelectorScope` property of the declared type.\n */\nfunction setScopeOnDeclaredComponents(moduleType, ngModule) {\n const declarations = flatten(ngModule.declarations || EMPTY_ARRAY);\n const transitiveScopes = transitiveScopesFor(moduleType);\n declarations.forEach(declaration => {\n if (declaration.hasOwnProperty(NG_COMP_DEF)) {\n // A `ɵcmp` field exists - go ahead and patch the component directly.\n const component = declaration;\n const componentDef = getComponentDef(component);\n patchComponentDefWithScope(componentDef, transitiveScopes);\n }\n else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {\n // Set `ngSelectorScope` for future reference when the component compilation finishes.\n declaration.ngSelectorScope = moduleType;\n }\n });\n}\n/**\n * Patch the definition of a component with directives and pipes from the compilation scope of\n * a given module.\n */\nfunction patchComponentDefWithScope(componentDef, transitiveScopes) {\n componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives)\n .map(dir => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir))\n .filter(def => !!def);\n componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map(pipe => getPipeDef$1(pipe));\n componentDef.schemas = transitiveScopes.schemas;\n // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we\n // may face a problem where previously compiled defs available to a given Component/Directive\n // are cached in TView and may become stale (in case any of these defs gets recompiled). In\n // order to avoid this problem, we force fresh TView to be created.\n componentDef.tView = null;\n}\n/**\n * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.\n *\n * This operation is memoized and the result is cached on the module's definition. This function can\n * be called on modules with components that have not fully compiled yet, but the result should not\n * be used until they have.\n *\n * @param moduleType module that transitive scope should be calculated for.\n */\nfunction transitiveScopesFor(moduleType) {\n if (!isNgModule(moduleType)) {\n throw new Error(`${moduleType.name} does not have a module def (ɵmod property)`);\n }\n const def = getNgModuleDef(moduleType);\n if (def.transitiveCompileScopes !== null) {\n return def.transitiveCompileScopes;\n }\n const scopes = {\n schemas: def.schemas || null,\n compilation: {\n directives: new Set(),\n pipes: new Set(),\n },\n exported: {\n directives: new Set(),\n pipes: new Set(),\n },\n };\n maybeUnwrapFn(def.imports).forEach((imported) => {\n const importedType = imported;\n if (!isNgModule(importedType)) {\n throw new Error(`Importing ${importedType.name} which does not have a ɵmod property`);\n }\n // When this module imports another, the imported module's exported directives and pipes are\n // added to the compilation scope of this module.\n const importedScope = transitiveScopesFor(importedType);\n importedScope.exported.directives.forEach(entry => scopes.compilation.directives.add(entry));\n importedScope.exported.pipes.forEach(entry => scopes.compilation.pipes.add(entry));\n });\n maybeUnwrapFn(def.declarations).forEach(declared => {\n const declaredWithDefs = declared;\n if (getPipeDef$1(declaredWithDefs)) {\n scopes.compilation.pipes.add(declared);\n }\n else {\n // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't\n // had its template compiled yet. In either case, it gets added to the compilation's\n // directives.\n scopes.compilation.directives.add(declared);\n }\n });\n maybeUnwrapFn(def.exports).forEach((exported) => {\n const exportedType = exported;\n // Either the type is a module, a pipe, or a component/directive (which may not have a\n // ɵcmp as it might be compiled asynchronously).\n if (isNgModule(exportedType)) {\n // When this module exports another, the exported module's exported directives and pipes are\n // added to both the compilation and exported scopes of this module.\n const exportedScope = transitiveScopesFor(exportedType);\n exportedScope.exported.directives.forEach(entry => {\n scopes.compilation.directives.add(entry);\n scopes.exported.directives.add(entry);\n });\n exportedScope.exported.pipes.forEach(entry => {\n scopes.compilation.pipes.add(entry);\n scopes.exported.pipes.add(entry);\n });\n }\n else if (getPipeDef$1(exportedType)) {\n scopes.exported.pipes.add(exportedType);\n }\n else {\n scopes.exported.directives.add(exportedType);\n }\n });\n def.transitiveCompileScopes = scopes;\n return scopes;\n}\nfunction expandModuleWithProviders(value) {\n if (isModuleWithProviders(value)) {\n return value.ngModule;\n }\n return value;\n}\nfunction isModuleWithProviders(value) {\n return value.ngModule !== undefined;\n}\nfunction isNgModule(value) {\n return !!getNgModuleDef(value);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This\n * matters in the following scenario:\n *\n * Consider a component 'A' that extends component 'B', both declared in module 'M'. During\n * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,\n * potentially triggering compilation of 'B'. If this nested compilation were to trigger\n * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the\n * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of\n * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid\n * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure\n * all compilations have finished.\n */\nlet compilationDepth = 0;\n/**\n * Compile an Angular component according to its decorator metadata, and patch the resulting\n * component def (ɵcmp) onto the component type.\n *\n * Compilation may be asynchronous (due to the need to resolve URLs for the component template or\n * other resources, for example). In the event that compilation is not immediate, `compileComponent`\n * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`\n * until the global queue has been resolved with a call to `resolveComponentResources`.\n */\nfunction compileComponent(type, metadata) {\n // Initialize ngDevMode. This must be the first statement in compileComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n let ngComponentDef = null;\n // Metadata may have resources which need to be resolved.\n maybeQueueResolutionOfComponentResources(type, metadata);\n // Note that we're using the same function as `Directive`, because that's only subset of metadata\n // that we need to create the ngFactoryDef. We're avoiding using the component metadata\n // because we'd have to resolve the asynchronous templates.\n addDirectiveFactoryDef(type, metadata);\n Object.defineProperty(type, NG_COMP_DEF, {\n get: () => {\n if (ngComponentDef === null) {\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'component', type: type });\n if (componentNeedsResolution(metadata)) {\n const error = [`Component '${type.name}' is not resolved:`];\n if (metadata.templateUrl) {\n error.push(` - templateUrl: ${metadata.templateUrl}`);\n }\n if (metadata.styleUrls && metadata.styleUrls.length) {\n error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);\n }\n error.push(`Did you run and wait for 'resolveComponentResources()'?`);\n throw new Error(error.join('\\n'));\n }\n // This const was called `jitOptions` previously but had to be renamed to `options` because\n // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.\n // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.\n // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.\n const options = getJitOptions();\n let preserveWhitespaces = metadata.preserveWhitespaces;\n if (preserveWhitespaces === undefined) {\n if (options !== null && options.preserveWhitespaces !== undefined) {\n preserveWhitespaces = options.preserveWhitespaces;\n }\n else {\n preserveWhitespaces = false;\n }\n }\n let encapsulation = metadata.encapsulation;\n if (encapsulation === undefined) {\n if (options !== null && options.defaultEncapsulation !== undefined) {\n encapsulation = options.defaultEncapsulation;\n }\n else {\n encapsulation = ViewEncapsulation$1.Emulated;\n }\n }\n const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;\n const meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });\n compilationDepth++;\n try {\n if (meta.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);\n }\n finally {\n // Ensure that the compilation depth is decremented even when the compilation failed.\n compilationDepth--;\n }\n if (compilationDepth === 0) {\n // When NgModule decorator executed, we enqueued the module definition such that\n // it would only dequeue and add itself as module scope to all of its declarations,\n // but only if if all of its declarations had resolved. This call runs the check\n // to see if any modules that are in the queue can be dequeued and add scope to\n // their declarations.\n flushModuleScopingQueueAsMuchAsPossible();\n }\n // If component compilation is async, then the @NgModule annotation which declares the\n // component may execute and set an ngSelectorScope property on the component type. This\n // allows the component to patch itself with directiveDefs from the module after it\n // finishes compiling.\n if (hasSelectorScope(type)) {\n const scopes = transitiveScopesFor(type.ngSelectorScope);\n patchComponentDefWithScope(ngComponentDef, scopes);\n }\n }\n return ngComponentDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction hasSelectorScope(component) {\n return component.ngSelectorScope !== undefined;\n}\n/**\n * Compile an Angular directive according to its decorator metadata, and patch the resulting\n * directive def onto the component type.\n *\n * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which\n * will resolve when compilation completes and the directive becomes usable.\n */\nfunction compileDirective(type, directive) {\n let ngDirectiveDef = null;\n addDirectiveFactoryDef(type, directive || {});\n Object.defineProperty(type, NG_DIR_DEF, {\n get: () => {\n if (ngDirectiveDef === null) {\n // `directive` can be null in the case of abstract directives as a base class\n // that use `@Directive()` with no selector. In that case, pass empty object to the\n // `directiveMetadata` function instead of null.\n const meta = getDirectiveMetadata(type, directive || {});\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'directive', type });\n ngDirectiveDef =\n compiler.compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);\n }\n return ngDirectiveDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getDirectiveMetadata(type, metadata) {\n const name = type && type.name;\n const sourceMapUrl = `ng:///${name}/ɵdir.js`;\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'directive', type });\n const facade = directiveMetadata(type, metadata);\n facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);\n if (facade.usesInheritance) {\n addDirectiveDefToUndecoratedParents(type);\n }\n return { metadata: facade, sourceMapUrl };\n}\nfunction addDirectiveFactoryDef(type, metadata) {\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const meta = getDirectiveMetadata(type, metadata);\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'directive', type });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, {\n name: meta.metadata.name,\n type: meta.metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Directive\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction extendsDirectlyFromObject(type) {\n return Object.getPrototypeOf(type.prototype) === Object.prototype;\n}\n/**\n * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a\n * `Component`).\n */\nfunction directiveMetadata(type, metadata) {\n // Reflect inputs and outputs.\n const reflect = getReflect();\n const propMetadata = reflect.ownPropMetadata(type);\n return {\n name: type.name,\n type: type,\n selector: metadata.selector !== undefined ? metadata.selector : null,\n host: metadata.host || EMPTY_OBJ,\n propMetadata: propMetadata,\n inputs: metadata.inputs || EMPTY_ARRAY,\n outputs: metadata.outputs || EMPTY_ARRAY,\n queries: extractQueriesMetadata(type, propMetadata, isContentQuery),\n lifecycle: { usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges') },\n typeSourceSpan: null,\n usesInheritance: !extendsDirectlyFromObject(type),\n exportAs: extractExportAs(metadata.exportAs),\n providers: metadata.providers || null,\n viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery)\n };\n}\n/**\n * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.\n */\nfunction addDirectiveDefToUndecoratedParents(type) {\n const objPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objPrototype) {\n // Since inheritance works if the class was annotated already, we only need to add\n // the def if there are no annotations and the def hasn't been created already.\n if (!getDirectiveDef(parent) && !getComponentDef(parent) &&\n shouldAddAbstractDirective(parent)) {\n compileDirective(parent, null);\n }\n parent = Object.getPrototypeOf(parent);\n }\n}\nfunction convertToR3QueryPredicate(selector) {\n return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);\n}\nfunction convertToR3QueryMetadata(propertyName, ann) {\n return {\n propertyName: propertyName,\n predicate: convertToR3QueryPredicate(ann.selector),\n descendants: ann.descendants,\n first: ann.first,\n read: ann.read ? ann.read : null,\n static: !!ann.static,\n emitDistinctChangesOnly: !!ann.emitDistinctChangesOnly,\n };\n}\nfunction extractQueriesMetadata(type, propMetadata, isQueryAnn) {\n const queriesMeta = [];\n for (const field in propMetadata) {\n if (propMetadata.hasOwnProperty(field)) {\n const annotations = propMetadata[field];\n annotations.forEach(ann => {\n if (isQueryAnn(ann)) {\n if (!ann.selector) {\n throw new Error(`Can't construct a query for the property \"${field}\" of ` +\n `\"${stringifyForError(type)}\" since the query selector wasn't defined.`);\n }\n if (annotations.some(isInputAnnotation)) {\n throw new Error(`Cannot combine @Input decorators with query decorators`);\n }\n queriesMeta.push(convertToR3QueryMetadata(field, ann));\n }\n });\n }\n }\n return queriesMeta;\n}\nfunction extractExportAs(exportAs) {\n return exportAs === undefined ? null : splitByComma(exportAs);\n}\nfunction isContentQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ContentChild' || name === 'ContentChildren';\n}\nfunction isViewQuery(value) {\n const name = value.ngMetadataName;\n return name === 'ViewChild' || name === 'ViewChildren';\n}\nfunction isInputAnnotation(value) {\n return value.ngMetadataName === 'Input';\n}\nfunction splitByComma(value) {\n return value.split(',').map(piece => piece.trim());\n}\nconst LIFECYCLE_HOOKS = [\n 'ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked',\n 'ngAfterContentInit', 'ngAfterContentChecked'\n];\nfunction shouldAddAbstractDirective(type) {\n const reflect = getReflect();\n if (LIFECYCLE_HOOKS.some(hookName => reflect.hasLifecycleHook(type, hookName))) {\n return true;\n }\n const propMetadata = reflect.propMetadata(type);\n for (const field in propMetadata) {\n const annotations = propMetadata[field];\n for (let i = 0; i < annotations.length; i++) {\n const current = annotations[i];\n const metadataName = current.ngMetadataName;\n if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) ||\n metadataName === 'Output' || metadataName === 'HostBinding' ||\n metadataName === 'HostListener') {\n return true;\n }\n }\n }\n return false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction compilePipe(type, meta) {\n let ngPipeDef = null;\n let ngFactoryDef = null;\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'pipe', type: metadata.type });\n ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, {\n name: metadata.name,\n type: metadata.type,\n typeArgumentCount: 0,\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Pipe\n });\n }\n return ngFactoryDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n Object.defineProperty(type, NG_PIPE_DEF, {\n get: () => {\n if (ngPipeDef === null) {\n const metadata = getPipeMetadata(type, meta);\n const compiler = getCompilerFacade({ usage: 0 /* Decorator */, kind: 'pipe', type: metadata.type });\n ngPipeDef =\n compiler.compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);\n }\n return ngPipeDef;\n },\n // Make the property configurable in dev mode to allow overriding in tests\n configurable: !!ngDevMode,\n });\n}\nfunction getPipeMetadata(type, meta) {\n return {\n type: type,\n name: type.name,\n pipeName: meta.name,\n pure: meta.pure !== undefined ? meta.pure : true\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Type of the Directive metadata.\n *\n * @publicApi\n */\nconst Directive = makeDecorator('Directive', (dir = {}) => dir, undefined, undefined, (type, meta) => compileDirective(type, meta));\n/**\n * Component decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Component = makeDecorator('Component', (c = {}) => (Object.assign({ changeDetection: ChangeDetectionStrategy.Default }, c)), Directive, undefined, (type, meta) => compileComponent(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Pipe = makeDecorator('Pipe', (p) => (Object.assign({ pure: true }, p)), undefined, undefined, (type, meta) => compilePipe(type, meta));\n/**\n * @Annotation\n * @publicApi\n */\nconst Input = makePropDecorator('Input', (bindingPropertyName) => ({ bindingPropertyName }));\n/**\n * @Annotation\n * @publicApi\n */\nconst Output = makePropDecorator('Output', (bindingPropertyName) => ({ bindingPropertyName }));\n/**\n * @Annotation\n * @publicApi\n */\nconst HostBinding = makePropDecorator('HostBinding', (hostPropertyName) => ({ hostPropertyName }));\n/**\n * Decorator that binds a DOM event to a host listener and supplies configuration metadata.\n * Angular invokes the supplied handler method when the host element emits the specified event,\n * and updates the bound element with the result.\n *\n * If the handler method returns false, applies `preventDefault` on the bound element.\n *\n * @usageNotes\n *\n * The following example declares a directive\n * that attaches a click listener to a button and counts clicks.\n *\n * ```ts\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n * numberOfClicks = 0;\n *\n * @HostListener('click', ['$event.target'])\n * onClick(btn) {\n * console.log('button', btn, 'number of clicks:', this.numberOfClicks++);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: '<button counting>Increment</button>',\n * })\n * class App {}\n *\n * ```\n *\n * The following example registers another DOM event handler that listens for key-press events.\n * ``` ts\n * import { HostListener, Component } from \"@angular/core\";\n *\n * @Component({\n * selector: 'app',\n * template: `<h1>Hello, you have pressed keys {{counter}} number of times!</h1> Press any key to\n * increment the counter.\n * <button (click)=\"resetCounter()\">Reset Counter</button>`\n * })\n * class AppComponent {\n * counter = 0;\n * @HostListener('window:keydown', ['$event'])\n * handleKeyDown(event: KeyboardEvent) {\n * this.counter++;\n * }\n * resetCounter() {\n * this.counter = 0;\n * }\n * }\n * ```\n *\n * @Annotation\n * @publicApi\n */\nconst HostListener = makePropDecorator('HostListener', (eventName, args) => ({ eventName, args }));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * @Annotation\n * @publicApi\n */\nconst NgModule = makeDecorator('NgModule', (ngModule) => ngModule, undefined, undefined, \n/**\n * Decorator that marks the following class as an NgModule, and supplies\n * configuration metadata for it.\n *\n * * The `declarations` and `entryComponents` options configure the compiler\n * with information about what belongs to the NgModule.\n * * The `providers` options configures the NgModule's injector to provide\n * dependencies the NgModule members.\n * * The `imports` and `exports` options bring in members from other modules, and make\n * this module's members available to others.\n */\n(type, meta) => compileNgModule(type, meta));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction noop(...args) {\n // Do nothing.\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The existence of this constant (in this particular file) informs the Angular compiler that the\n * current program is actually @angular/core, which needs to be compiled specially.\n */\nconst ITS_JUST_ANGULAR = true;\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that you can use to provide\n * one or more initialization functions.\n *\n * The provided functions are injected at application startup and executed during\n * app initialization. If any of these functions returns a Promise or an Observable, initialization\n * does not complete until the Promise is resolved or the Observable is completed.\n *\n * You can, for example, create a factory function that loads language data\n * or an external configuration, and provide that function to the `APP_INITIALIZER` token.\n * The function is executed during the application bootstrap process,\n * and the needed data is available on startup.\n *\n * @see `ApplicationInitStatus`\n *\n * @usageNotes\n *\n * The following example illustrates how to configure a multi-provider using `APP_INITIALIZER` token\n * and a function returning a promise.\n *\n * ```\n * function initializeApp(): Promise<any> {\n * return new Promise((resolve, reject) => {\n * // Do some asynchronous stuff\n * resolve();\n * });\n * }\n *\n * @NgModule({\n * imports: [BrowserModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useFactory: () => initializeApp,\n * multi: true\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * It's also possible to configure a multi-provider using `APP_INITIALIZER` token and a function\n * returning an observable, see an example below. Note: the `HttpClient` in this example is used for\n * demo purposes to illustrate how the factory function can work with other providers available\n * through DI.\n *\n * ```\n * function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {\n * return () => httpClient.get(\"https://someUrl.com/api/user\")\n * .pipe(\n * tap(user => { ... })\n * );\n * }\n *\n * @NgModule({\n * imports: [BrowserModule, HttpClientModule],\n * declarations: [AppComponent],\n * bootstrap: [AppComponent],\n * providers: [{\n * provide: APP_INITIALIZER,\n * useFactory: initializeAppFactory,\n * deps: [HttpClient],\n * multi: true\n * }]\n * })\n * export class AppModule {}\n * ```\n *\n * @publicApi\n */\nconst APP_INITIALIZER = new InjectionToken('Application Initializer');\n/**\n * A class that reflects the state of running {@link APP_INITIALIZER} functions.\n *\n * @publicApi\n */\nclass ApplicationInitStatus {\n constructor(appInits) {\n this.appInits = appInits;\n this.resolve = noop;\n this.reject = noop;\n this.initialized = false;\n this.done = false;\n this.donePromise = new Promise((res, rej) => {\n this.resolve = res;\n this.reject = rej;\n });\n }\n /** @internal */\n runInitializers() {\n if (this.initialized) {\n return;\n }\n const asyncInitPromises = [];\n const complete = () => {\n this.done = true;\n this.resolve();\n };\n if (this.appInits) {\n for (let i = 0; i < this.appInits.length; i++) {\n const initResult = this.appInits[i]();\n if (isPromise(initResult)) {\n asyncInitPromises.push(initResult);\n }\n else if (isObservable(initResult)) {\n const observableAsPromise = new Promise((resolve, reject) => {\n initResult.subscribe({ complete: resolve, error: reject });\n });\n asyncInitPromises.push(observableAsPromise);\n }\n }\n }\n Promise.all(asyncInitPromises)\n .then(() => {\n complete();\n })\n .catch(e => {\n this.reject(e);\n });\n if (asyncInitPromises.length === 0) {\n complete();\n }\n this.initialized = true;\n }\n}\nApplicationInitStatus.ɵfac = function ApplicationInitStatus_Factory(t) { return new (t || ApplicationInitStatus)(ɵɵinject(APP_INITIALIZER, 8)); };\nApplicationInitStatus.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationInitStatus, factory: ApplicationInitStatus.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationInitStatus, [{\n type: Injectable\n }], function () {\n return [{ type: undefined, decorators: [{\n type: Inject,\n args: [APP_INITIALIZER]\n }, {\n type: Optional\n }] }];\n }, null);\n})();\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") representing a unique string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.\n *\n * BY default, the value is randomly generated and assigned to the application by Angular.\n * To provide a custom ID value, use a DI provider <!-- TODO: provider --> to configure\n * the root {@link Injector} that uses this token.\n *\n * @publicApi\n */\nconst APP_ID = new InjectionToken('AppId');\nfunction _appIdRandomProviderFactory() {\n return `${_randomChar()}${_randomChar()}${_randomChar()}`;\n}\n/**\n * Providers that generate a random `APP_ID_TOKEN`.\n * @publicApi\n */\nconst APP_ID_RANDOM_PROVIDER = {\n provide: APP_ID,\n useFactory: _appIdRandomProviderFactory,\n deps: [],\n};\nfunction _randomChar() {\n return String.fromCharCode(97 + Math.floor(Math.random() * 25));\n}\n/**\n * A function that is executed when a platform is initialized.\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = new InjectionToken('Platform ID');\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that provides a set of callbacks to\n * be called for every component that is bootstrapped.\n *\n * Each callback must take a `ComponentRef` instance and return nothing.\n *\n * `(componentRef: ComponentRef) => void`\n *\n * @publicApi\n */\nconst APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates the root directory of\n * the application\n * @publicApi\n */\nconst PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass Console {\n log(message) {\n // tslint:disable-next-line:no-console\n console.log(message);\n }\n // Note: for reporting errors use `DOM.logError()` as it is platform specific\n warn(message) {\n // tslint:disable-next-line:no-console\n console.warn(message);\n }\n}\nConsole.ɵfac = function Console_Factory(t) { return new (t || Console)(); };\nConsole.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Console, [{\n type: Injectable\n }], null, null);\n})();\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Provide this token to set the locale of your application.\n * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,\n * DecimalPipe and PercentPipe) and by ICU expressions.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { LOCALE_ID } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: LOCALE_ID, useValue: 'en-US' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst LOCALE_ID = new InjectionToken('LocaleId');\n/**\n * Provide this token to set the default currency code your application uses for\n * CurrencyPipe when there is no currency code passed into it. This is only used by\n * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.\n *\n * See the [i18n guide](guide/i18n-common-locale-id) for more information.\n *\n * <div class=\"alert is-helpful\">\n *\n * **Deprecation notice:**\n *\n * The default currency code is currently always `USD` but this is deprecated from v9.\n *\n * **In v10 the default currency code will be taken from the current locale.**\n *\n * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in\n * your application `NgModule`:\n *\n * ```ts\n * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}\n * ```\n *\n * </div>\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst DEFAULT_CURRENCY_CODE = new InjectionToken('DefaultCurrencyCode');\n/**\n * Use this token at bootstrap to provide the content of your translation file (`xtb`,\n * `xlf` or `xlf2`) when you want to translate your application in another language.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * // content of your translation file\n * const translations = '....';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS, useValue: translations }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS = new InjectionToken('Translations');\n/**\n * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,\n * `xlf` or `xlf2`.\n *\n * See the [i18n guide](guide/i18n-common-merge) for more information.\n *\n * @usageNotes\n * ### Example\n *\n * ```typescript\n * import { TRANSLATIONS_FORMAT } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]\n * });\n * ```\n *\n * @publicApi\n */\nconst TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');\n/**\n * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy\n * that the compiler should use in case of missing translations:\n * - Error: throw if you have missing translations.\n * - Warning (default): show a warning in the console and/or shell.\n * - Ignore: do nothing.\n *\n * See the [i18n guide](guide/i18n-common-merge#report-missing-translations) for more information.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * import { MissingTranslationStrategy } from '@angular/core';\n * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n * import { AppModule } from './app/app.module';\n *\n * platformBrowserDynamic().bootstrapModule(AppModule, {\n * missingTranslation: MissingTranslationStrategy.Error\n * });\n * ```\n *\n * @publicApi\n */\nvar MissingTranslationStrategy;\n(function (MissingTranslationStrategy) {\n MissingTranslationStrategy[MissingTranslationStrategy[\"Error\"] = 0] = \"Error\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Warning\"] = 1] = \"Warning\";\n MissingTranslationStrategy[MissingTranslationStrategy[\"Ignore\"] = 2] = \"Ignore\";\n})(MissingTranslationStrategy || (MissingTranslationStrategy = {}));\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Combination of NgModuleFactory and ComponentFactories.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass ModuleWithComponentFactories {\n constructor(ngModuleFactory, componentFactories) {\n this.ngModuleFactory = ngModuleFactory;\n this.componentFactories = componentFactories;\n }\n}\n/**\n * Low-level service for running the angular compiler during runtime\n * to create {@link ComponentFactory}s, which\n * can later be used to create and render a Component instance.\n *\n * Each `@NgModule` provides an own `Compiler` to its injector,\n * that will use the directives/pipes of the ng module for compilation\n * of components.\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass Compiler {\n /**\n * Compiles the given NgModule and all of its components. All templates of the components listed\n * in `entryComponents` have to be inlined.\n */\n compileModuleSync(moduleType) {\n return new NgModuleFactory(moduleType);\n }\n /**\n * Compiles the given NgModule and all of its components\n */\n compileModuleAsync(moduleType) {\n return Promise.resolve(this.compileModuleSync(moduleType));\n }\n /**\n * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsSync(moduleType) {\n const ngModuleFactory = this.compileModuleSync(moduleType);\n const moduleDef = getNgModuleDef(moduleType);\n const componentFactories = maybeUnwrapFn(moduleDef.declarations)\n .reduce((factories, declaration) => {\n const componentDef = getComponentDef(declaration);\n componentDef && factories.push(new ComponentFactory(componentDef));\n return factories;\n }, []);\n return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);\n }\n /**\n * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.\n */\n compileModuleAndAllComponentsAsync(moduleType) {\n return Promise.resolve(this.compileModuleAndAllComponentsSync(moduleType));\n }\n /**\n * Clears all caches.\n */\n clearCache() { }\n /**\n * Clears the cache for the given component/ngModule.\n */\n clearCacheFor(type) { }\n /**\n * Returns the id for a given NgModule, if one is defined and known to the compiler.\n */\n getModuleId(moduleType) {\n return undefined;\n }\n}\nCompiler.ɵfac = function Compiler_Factory(t) { return new (t || Compiler)(); };\nCompiler.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Compiler, factory: Compiler.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Compiler, [{\n type: Injectable\n }], null, null);\n})();\n/**\n * Token to provide CompilerOptions in the platform injector.\n *\n * @publicApi\n */\nconst COMPILER_OPTIONS = new InjectionToken('compilerOptions');\n/**\n * A factory for creating a Compiler\n *\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for\n * additional context.\n */\nclass CompilerFactory {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst promise = (() => Promise.resolve(0))();\nfunction scheduleMicroTask(fn) {\n if (typeof Zone === 'undefined') {\n // use promise to schedule microTask instead of use Zone\n promise.then(() => {\n fn && fn.apply(null, null);\n });\n }\n else {\n Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction getNativeRequestAnimationFrame() {\n let nativeRequestAnimationFrame = _global['requestAnimationFrame'];\n let nativeCancelAnimationFrame = _global['cancelAnimationFrame'];\n if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {\n // use unpatched version of requestAnimationFrame(native delegate) if possible\n // to avoid another Change detection\n const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n if (unpatchedRequestAnimationFrame) {\n nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;\n }\n const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];\n if (unpatchedCancelAnimationFrame) {\n nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;\n }\n }\n return { nativeRequestAnimationFrame, nativeCancelAnimationFrame };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * <!-- TODO: add/fix links to:\n * - docs explaining zones and the use of zones in Angular and change-detection\n * - link to runOutsideAngular/run (throughout this file!)\n * -->\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * import {Component, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n * selector: 'ng-zone-demo',\n * template: `\n * <h2>Demo: NgZone</h2>\n *\n * <p>Progress: {{progress}}%</p>\n * <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\n *\n * <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\n * <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\n * `,\n * })\n * export class NgZoneDemo {\n * progress: number = 0;\n * label: string;\n *\n * constructor(private _ngZone: NgZone) {}\n *\n * // Loop inside the Angular zone\n * // so the UI DOES refresh after each setTimeout cycle\n * processWithinAngularZone() {\n * this.label = 'inside';\n * this.progress = 0;\n * this._increaseProgress(() => console.log('Inside Done!'));\n * }\n *\n * // Loop outside of the Angular zone\n * // so the UI DOES NOT refresh after each setTimeout cycle\n * processOutsideOfAngularZone() {\n * this.label = 'outside';\n * this.progress = 0;\n * this._ngZone.runOutsideAngular(() => {\n * this._increaseProgress(() => {\n * // reenter the Angular zone and display done\n * this._ngZone.run(() => { console.log('Outside Done!'); });\n * });\n * });\n * }\n *\n * _increaseProgress(doneCallback: () => void) {\n * this.progress += 1;\n * console.log(`Current progress: ${this.progress}%`);\n *\n * if (this.progress < 100) {\n * window.setTimeout(() => this._increaseProgress(doneCallback), 10);\n * } else {\n * doneCallback();\n * }\n * }\n * }\n * ```\n *\n * @publicApi\n */\nclass NgZone {\n constructor({ enableLongStackTrace = false, shouldCoalesceEventChangeDetection = false, shouldCoalesceRunChangeDetection = false }) {\n this.hasPendingMacrotasks = false;\n this.hasPendingMicrotasks = false;\n /**\n * Whether there are no outstanding microtasks or macrotasks.\n */\n this.isStable = true;\n /**\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n */\n this.onUnstable = new EventEmitter(false);\n /**\n * Notifies when there is no more microtasks enqueued in the current VM Turn.\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n * For this reason this event can fire multiple times per VM Turn.\n */\n this.onMicrotaskEmpty = new EventEmitter(false);\n /**\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n * implies we are about to relinquish VM turn.\n * This event gets called just once.\n */\n this.onStable = new EventEmitter(false);\n /**\n * Notifies that an error has been delivered.\n */\n this.onError = new EventEmitter(false);\n if (typeof Zone == 'undefined') {\n throw new Error(`In this configuration Angular requires Zone.js`);\n }\n Zone.assertZonePatched();\n const self = this;\n self._nesting = 0;\n self._outer = self._inner = Zone.current;\n if (Zone['TaskTrackingZoneSpec']) {\n self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']);\n }\n if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {\n self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);\n }\n // if shouldCoalesceRunChangeDetection is true, all tasks including event tasks will be\n // coalesced, so shouldCoalesceEventChangeDetection option is not necessary and can be skipped.\n self.shouldCoalesceEventChangeDetection =\n !shouldCoalesceRunChangeDetection && shouldCoalesceEventChangeDetection;\n self.shouldCoalesceRunChangeDetection = shouldCoalesceRunChangeDetection;\n self.lastRequestAnimationFrameId = -1;\n self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;\n forkInnerZoneWithAngularBehavior(self);\n }\n static isInAngularZone() {\n return Zone.current.get('isAngularZone') === true;\n }\n static assertInAngularZone() {\n if (!NgZone.isInAngularZone()) {\n throw new Error('Expected to be in Angular Zone, but it is not!');\n }\n }\n static assertNotInAngularZone() {\n if (NgZone.isInAngularZone()) {\n throw new Error('Expected to not be in Angular Zone, but it is!');\n }\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n * the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n run(fn, applyThis, applyArgs) {\n return this._inner.run(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously within the Angular zone as a task and returns value\n * returned by the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n runTask(fn, applyThis, applyArgs, name) {\n const zone = this._inner;\n const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);\n try {\n return zone.runTask(task, applyThis, applyArgs);\n }\n finally {\n zone.cancelTask(task);\n }\n }\n /**\n * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not\n * rethrown.\n */\n runGuarded(fn, applyThis, applyArgs) {\n return this._inner.runGuarded(fn, applyThis, applyArgs);\n }\n /**\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n * the function.\n *\n * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do\n * work that\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * outside of the Angular zone.\n *\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n */\n runOutsideAngular(fn) {\n return this._outer.run(fn);\n }\n}\nconst EMPTY_PAYLOAD = {};\nfunction checkStable(zone) {\n // TODO: @JiaLiPassion, should check zone.isCheckStableRunning to prevent\n // re-entry. The case is:\n //\n // @Component({...})\n // export class AppComponent {\n // constructor(private ngZone: NgZone) {\n // this.ngZone.onStable.subscribe(() => {\n // this.ngZone.run(() => console.log('stable'););\n // });\n // }\n //\n // The onStable subscriber run another function inside ngZone\n // which causes `checkStable()` re-entry.\n // But this fix causes some issues in g3, so this fix will be\n // launched in another PR.\n if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {\n try {\n zone._nesting++;\n zone.onMicrotaskEmpty.emit(null);\n }\n finally {\n zone._nesting--;\n if (!zone.hasPendingMicrotasks) {\n try {\n zone.runOutsideAngular(() => zone.onStable.emit(null));\n }\n finally {\n zone.isStable = true;\n }\n }\n }\n }\n}\nfunction delayChangeDetectionForEvents(zone) {\n /**\n * We also need to check _nesting here\n * Consider the following case with shouldCoalesceRunChangeDetection = true\n *\n * ngZone.run(() => {});\n * ngZone.run(() => {});\n *\n * We want the two `ngZone.run()` only trigger one change detection\n * when shouldCoalesceRunChangeDetection is true.\n * And because in this case, change detection run in async way(requestAnimationFrame),\n * so we also need to check the _nesting here to prevent multiple\n * change detections.\n */\n if (zone.isCheckStableRunning || zone.lastRequestAnimationFrameId !== -1) {\n return;\n }\n zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {\n // This is a work around for https://github.com/angular/angular/issues/36839.\n // The core issue is that when event coalescing is enabled it is possible for microtasks\n // to get flushed too early (As is the case with `Promise.then`) between the\n // coalescing eventTasks.\n //\n // To workaround this we schedule a \"fake\" eventTask before we process the\n // coalescing eventTasks. The benefit of this is that the \"fake\" container eventTask\n // will prevent the microtasks queue from getting drained in between the coalescing\n // eventTask execution.\n if (!zone.fakeTopEventTask) {\n zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {\n zone.lastRequestAnimationFrameId = -1;\n updateMicroTaskStatus(zone);\n zone.isCheckStableRunning = true;\n checkStable(zone);\n zone.isCheckStableRunning = false;\n }, undefined, () => { }, () => { });\n }\n zone.fakeTopEventTask.invoke();\n });\n updateMicroTaskStatus(zone);\n}\nfunction forkInnerZoneWithAngularBehavior(zone) {\n const delayChangeDetectionForEventsDelegate = () => {\n delayChangeDetectionForEvents(zone);\n };\n zone._inner = zone._inner.fork({\n name: 'angular',\n properties: { 'isAngularZone': true },\n onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {\n try {\n onEnter(zone);\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n finally {\n if ((zone.shouldCoalesceEventChangeDetection && task.type === 'eventTask') ||\n zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {\n try {\n onEnter(zone);\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\n }\n finally {\n if (zone.shouldCoalesceRunChangeDetection) {\n delayChangeDetectionForEventsDelegate();\n }\n onLeave(zone);\n }\n },\n onHasTask: (delegate, current, target, hasTaskState) => {\n delegate.hasTask(target, hasTaskState);\n if (current === target) {\n // We are only interested in hasTask events which originate from our zone\n // (A child hasTask event is not interesting to us)\n if (hasTaskState.change == 'microTask') {\n zone._hasPendingMicrotasks = hasTaskState.microTask;\n updateMicroTaskStatus(zone);\n checkStable(zone);\n }\n else if (hasTaskState.change == 'macroTask') {\n zone.hasPendingMacrotasks = hasTaskState.macroTask;\n }\n }\n },\n onHandleError: (delegate, current, target, error) => {\n delegate.handleError(target, error);\n zone.runOutsideAngular(() => zone.onError.emit(error));\n return false;\n }\n });\n}\nfunction updateMicroTaskStatus(zone) {\n if (zone._hasPendingMicrotasks ||\n ((zone.shouldCoalesceEventChangeDetection || zone.shouldCoalesceRunChangeDetection) &&\n zone.lastRequestAnimationFrameId !== -1)) {\n zone.hasPendingMicrotasks = true;\n }\n else {\n zone.hasPendingMicrotasks = false;\n }\n}\nfunction onEnter(zone) {\n zone._nesting++;\n if (zone.isStable) {\n zone.isStable = false;\n zone.onUnstable.emit(null);\n }\n}\nfunction onLeave(zone) {\n zone._nesting--;\n checkStable(zone);\n}\n/**\n * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls\n * to framework to perform rendering.\n */\nclass NoopNgZone {\n constructor() {\n this.hasPendingMicrotasks = false;\n this.hasPendingMacrotasks = false;\n this.isStable = true;\n this.onUnstable = new EventEmitter();\n this.onMicrotaskEmpty = new EventEmitter();\n this.onStable = new EventEmitter();\n this.onError = new EventEmitter();\n }\n run(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runGuarded(fn, applyThis, applyArgs) {\n return fn.apply(applyThis, applyArgs);\n }\n runOutsideAngular(fn) {\n return fn();\n }\n runTask(fn, applyThis, applyArgs, name) {\n return fn.apply(applyThis, applyArgs);\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * The Testability service provides testing hooks that can be accessed from\n * the browser. Each bootstrapped Angular application on the page will have\n * an instance of Testability.\n * @publicApi\n */\nclass Testability {\n constructor(_ngZone) {\n this._ngZone = _ngZone;\n this._pendingCount = 0;\n this._isZoneStable = true;\n /**\n * Whether any work was done since the last 'whenStable' callback. This is\n * useful to detect if this could have potentially destabilized another\n * component while it is stabilizing.\n * @internal\n */\n this._didWork = false;\n this._callbacks = [];\n this.taskTrackingZone = null;\n this._watchAngularEvents();\n _ngZone.run(() => {\n this.taskTrackingZone =\n typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');\n });\n }\n _watchAngularEvents() {\n this._ngZone.onUnstable.subscribe({\n next: () => {\n this._didWork = true;\n this._isZoneStable = false;\n }\n });\n this._ngZone.runOutsideAngular(() => {\n this._ngZone.onStable.subscribe({\n next: () => {\n NgZone.assertNotInAngularZone();\n scheduleMicroTask(() => {\n this._isZoneStable = true;\n this._runCallbacksIfReady();\n });\n }\n });\n });\n }\n /**\n * Increases the number of pending request\n * @deprecated pending requests are now tracked with zones.\n */\n increasePendingRequestCount() {\n this._pendingCount += 1;\n this._didWork = true;\n return this._pendingCount;\n }\n /**\n * Decreases the number of pending request\n * @deprecated pending requests are now tracked with zones\n */\n decreasePendingRequestCount() {\n this._pendingCount -= 1;\n if (this._pendingCount < 0) {\n throw new Error('pending async requests below zero');\n }\n this._runCallbacksIfReady();\n return this._pendingCount;\n }\n /**\n * Whether an associated application is stable\n */\n isStable() {\n return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;\n }\n _runCallbacksIfReady() {\n if (this.isStable()) {\n // Schedules the call backs in a new frame so that it is always async.\n scheduleMicroTask(() => {\n while (this._callbacks.length !== 0) {\n let cb = this._callbacks.pop();\n clearTimeout(cb.timeoutId);\n cb.doneCb(this._didWork);\n }\n this._didWork = false;\n });\n }\n else {\n // Still not stable, send updates.\n let pending = this.getPendingTasks();\n this._callbacks = this._callbacks.filter((cb) => {\n if (cb.updateCb && cb.updateCb(pending)) {\n clearTimeout(cb.timeoutId);\n return false;\n }\n return true;\n });\n this._didWork = true;\n }\n }\n getPendingTasks() {\n if (!this.taskTrackingZone) {\n return [];\n }\n // Copy the tasks data so that we don't leak tasks.\n return this.taskTrackingZone.macroTasks.map((t) => {\n return {\n source: t.source,\n // From TaskTrackingZone:\n // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40\n creationLocation: t.creationLocation,\n data: t.data\n };\n });\n }\n addCallback(cb, timeout, updateCb) {\n let timeoutId = -1;\n if (timeout && timeout > 0) {\n timeoutId = setTimeout(() => {\n this._callbacks = this._callbacks.filter((cb) => cb.timeoutId !== timeoutId);\n cb(this._didWork, this.getPendingTasks());\n }, timeout);\n }\n this._callbacks.push({ doneCb: cb, timeoutId: timeoutId, updateCb: updateCb });\n }\n /**\n * Wait for the application to be stable with a timeout. If the timeout is reached before that\n * happens, the callback receives a list of the macro tasks that were pending, otherwise null.\n *\n * @param doneCb The callback to invoke when Angular is stable or the timeout expires\n * whichever comes first.\n * @param timeout Optional. The maximum time to wait for Angular to become stable. If not\n * specified, whenStable() will wait forever.\n * @param updateCb Optional. If specified, this callback will be invoked whenever the set of\n * pending macrotasks changes. If this callback returns true doneCb will not be invoked\n * and no further updates will be issued.\n */\n whenStable(doneCb, timeout, updateCb) {\n if (updateCb && !this.taskTrackingZone) {\n throw new Error('Task tracking zone is required when passing an update callback to ' +\n 'whenStable(). Is \"zone.js/plugins/task-tracking\" loaded?');\n }\n // These arguments are 'Function' above to keep the public API simple.\n this.addCallback(doneCb, timeout, updateCb);\n this._runCallbacksIfReady();\n }\n /**\n * Get the number of pending requests\n * @deprecated pending requests are now tracked with zones\n */\n getPendingRequestCount() {\n return this._pendingCount;\n }\n /**\n * Find providers by name\n * @param using The root element to search from\n * @param provider The name of binding variable\n * @param exactMatch Whether using exactMatch\n */\n findProviders(using, provider, exactMatch) {\n // TODO(juliemr): implement.\n return [];\n }\n}\nTestability.ɵfac = function Testability_Factory(t) { return new (t || Testability)(ɵɵinject(NgZone)); };\nTestability.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: Testability, factory: Testability.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(Testability, [{\n type: Injectable\n }], function () { return [{ type: NgZone }]; }, null);\n})();\n/**\n * A global registry of {@link Testability} instances for specific elements.\n * @publicApi\n */\nclass TestabilityRegistry {\n constructor() {\n /** @internal */\n this._applications = new Map();\n _testabilityGetter.addToWindow(this);\n }\n /**\n * Registers an application with a testability hook so that it can be tracked\n * @param token token of application, root element\n * @param testability Testability hook\n */\n registerApplication(token, testability) {\n this._applications.set(token, testability);\n }\n /**\n * Unregisters an application.\n * @param token token of application, root element\n */\n unregisterApplication(token) {\n this._applications.delete(token);\n }\n /**\n * Unregisters all applications\n */\n unregisterAllApplications() {\n this._applications.clear();\n }\n /**\n * Get a testability hook associated with the application\n * @param elem root element\n */\n getTestability(elem) {\n return this._applications.get(elem) || null;\n }\n /**\n * Get all registered testabilities\n */\n getAllTestabilities() {\n return Array.from(this._applications.values());\n }\n /**\n * Get all registered applications(root elements)\n */\n getAllRootElements() {\n return Array.from(this._applications.keys());\n }\n /**\n * Find testability of a node in the Tree\n * @param elem node\n * @param findInAncestors whether finding testability in ancestors if testability was not found in\n * current node\n */\n findTestabilityInTree(elem, findInAncestors = true) {\n return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);\n }\n}\nTestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); };\nTestabilityRegistry.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(TestabilityRegistry, [{\n type: Injectable\n }], function () { return []; }, null);\n})();\nclass _NoopGetTestability {\n addToWindow(registry) { }\n findTestabilityInTree(registry, elem, findInAncestors) {\n return null;\n }\n}\n/**\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\n * @publicApi\n */\nfunction setTestabilityGetter(getter) {\n _testabilityGetter = getter;\n}\nlet _testabilityGetter = new _NoopGetTestability();\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nlet _platform;\nfunction compileNgModuleFactory(injector, options, moduleType) {\n ngDevMode && assertNgModuleType(moduleType);\n const moduleFactory = new NgModuleFactory(moduleType);\n // All of the logic below is irrelevant for AOT-compiled code.\n if (typeof ngJitMode !== 'undefined' && !ngJitMode) {\n return Promise.resolve(moduleFactory);\n }\n const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);\n // Configure the compiler to use the provided options. This call may fail when multiple modules\n // are bootstrapped with incompatible options, as a component can only be compiled according to\n // a single set of options.\n setJitOptions({\n defaultEncapsulation: _lastDefined(compilerOptions.map(opts => opts.defaultEncapsulation)),\n preserveWhitespaces: _lastDefined(compilerOptions.map(opts => opts.preserveWhitespaces)),\n });\n if (isComponentResourceResolutionQueueEmpty()) {\n return Promise.resolve(moduleFactory);\n }\n const compilerProviders = _mergeArrays(compilerOptions.map(o => o.providers));\n // In case there are no compiler providers, we just return the module factory as\n // there won't be any resource loader. This can happen with Ivy, because AOT compiled\n // modules can be still passed through \"bootstrapModule\". In that case we shouldn't\n // unnecessarily require the JIT compiler.\n if (compilerProviders.length === 0) {\n return Promise.resolve(moduleFactory);\n }\n const compiler = getCompilerFacade({\n usage: 0 /* Decorator */,\n kind: 'NgModule',\n type: moduleType,\n });\n const compilerInjector = Injector.create({ providers: compilerProviders });\n const resourceLoader = compilerInjector.get(compiler.ResourceLoader);\n // The resource loader can also return a string while the \"resolveComponentResources\"\n // always expects a promise. Therefore we need to wrap the returned value in a promise.\n return resolveComponentResources(url => Promise.resolve(resourceLoader.get(url)))\n .then(() => moduleFactory);\n}\nfunction publishDefaultGlobalUtils() {\n ngDevMode && publishDefaultGlobalUtils$1();\n}\nfunction isBoundToModule(cf) {\n return cf.isBoundToModule;\n}\nconst ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');\n/**\n * A token for third-party components that can register themselves with NgProbe.\n *\n * @publicApi\n */\nclass NgProbeToken {\n constructor(name, token) {\n this.name = name;\n this.token = token;\n }\n}\n/**\n * Creates a platform.\n * Platforms must be created on launch using this function.\n *\n * @publicApi\n */\nfunction createPlatform(injector) {\n if (_platform && !_platform.destroyed &&\n !_platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'There can be only one platform. Destroy the previous one to create a new one.' :\n '';\n throw new RuntimeError(\"400\" /* MULTIPLE_PLATFORMS */, errorMessage);\n }\n publishDefaultGlobalUtils();\n _platform = injector.get(PlatformRef);\n const inits = injector.get(PLATFORM_INITIALIZER, null);\n if (inits)\n inits.forEach((init) => init());\n return _platform;\n}\n/**\n * Creates a factory for a platform. Can be used to provide or override `Providers` specific to\n * your application's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.\n * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories\n * to build up configurations that might be required by different libraries or parts of the\n * application.\n * @param name Identifies the new platform factory.\n * @param providers A set of dependency providers for platforms created with the new factory.\n *\n * @publicApi\n */\nfunction createPlatformFactory(parentPlatformFactory, name, providers = []) {\n const desc = `Platform: ${name}`;\n const marker = new InjectionToken(desc);\n return (extraProviders = []) => {\n let platform = getPlatform();\n if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {\n if (parentPlatformFactory) {\n parentPlatformFactory(providers.concat(extraProviders).concat({ provide: marker, useValue: true }));\n }\n else {\n const injectedProviders = providers.concat(extraProviders).concat({ provide: marker, useValue: true }, {\n provide: INJECTOR_SCOPE,\n useValue: 'platform'\n });\n createPlatform(Injector.create({ providers: injectedProviders, name: desc }));\n }\n }\n return assertPlatform(marker);\n };\n}\n/**\n * Checks that there is currently a platform that contains the given token as a provider.\n *\n * @publicApi\n */\nfunction assertPlatform(requiredToken) {\n const platform = getPlatform();\n if (!platform) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ? 'No platform exists!' : '';\n throw new RuntimeError(\"401\" /* PLATFORM_NOT_FOUND */, errorMessage);\n }\n if ((typeof ngDevMode === 'undefined' || ngDevMode) &&\n !platform.injector.get(requiredToken, null)) {\n throw new RuntimeError(\"400\" /* MULTIPLE_PLATFORMS */, 'A platform with a different configuration has been created. Please destroy it first.');\n }\n return platform;\n}\n/**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n *\n * @publicApi\n */\nfunction destroyPlatform() {\n if (_platform && !_platform.destroyed) {\n _platform.destroy();\n }\n}\n/**\n * Returns the current platform.\n *\n * @publicApi\n */\nfunction getPlatform() {\n return _platform && !_platform.destroyed ? _platform : null;\n}\n/**\n * The Angular platform is the entry point for Angular on a web page.\n * Each page has exactly one platform. Services (such as reflection) which are common\n * to every Angular application running on the page are bound in its scope.\n * A page's platform is initialized implicitly when a platform is created using a platform\n * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.\n *\n * @publicApi\n */\nclass PlatformRef {\n /** @internal */\n constructor(_injector) {\n this._injector = _injector;\n this._modules = [];\n this._destroyListeners = [];\n this._destroyed = false;\n }\n /**\n * Creates an instance of an `@NgModule` for the given platform for offline compilation.\n *\n * @usageNotes\n *\n * The following example creates the NgModule for a browser platform.\n *\n * ```typescript\n * my_module.ts:\n *\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * main.ts:\n * import {MyModuleNgFactory} from './my_module.ngfactory';\n * import {platformBrowser} from '@angular/platform-browser';\n *\n * let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);\n * ```\n *\n * @deprecated Passing NgModule factories as the `PlatformRef.bootstrapModuleFactory` function\n * argument is deprecated. Use the `PlatformRef.bootstrapModule` API instead.\n */\n bootstrapModuleFactory(moduleFactory, options) {\n // Note: We need to create the NgZone _before_ we instantiate the module,\n // as instantiating the module creates some providers eagerly.\n // So we create a mini parent injector that just contains the new NgZone and\n // pass that as parent to the NgModuleFactory.\n const ngZoneOption = options ? options.ngZone : undefined;\n const ngZoneEventCoalescing = (options && options.ngZoneEventCoalescing) || false;\n const ngZoneRunCoalescing = (options && options.ngZoneRunCoalescing) || false;\n const ngZone = getNgZone(ngZoneOption, { ngZoneEventCoalescing, ngZoneRunCoalescing });\n const providers = [{ provide: NgZone, useValue: ngZone }];\n // Note: Create ngZoneInjector within ngZone.run so that all of the instantiated services are\n // created within the Angular zone\n // Do not try to replace ngZone.run with ApplicationRef#run because ApplicationRef would then be\n // created outside of the Angular zone.\n return ngZone.run(() => {\n const ngZoneInjector = Injector.create({ providers: providers, parent: this.injector, name: moduleFactory.moduleType.name });\n const moduleRef = moduleFactory.create(ngZoneInjector);\n const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\n if (!exceptionHandler) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'No ErrorHandler. Is platform module (BrowserModule) included?' :\n '';\n throw new RuntimeError(\"402\" /* ERROR_HANDLER_NOT_FOUND */, errorMessage);\n }\n ngZone.runOutsideAngular(() => {\n const subscription = ngZone.onError.subscribe({\n next: (error) => {\n exceptionHandler.handleError(error);\n }\n });\n moduleRef.onDestroy(() => {\n remove(this._modules, moduleRef);\n subscription.unsubscribe();\n });\n });\n return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {\n const initStatus = moduleRef.injector.get(ApplicationInitStatus);\n initStatus.runInitializers();\n return initStatus.donePromise.then(() => {\n // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy\n const localeId = moduleRef.injector.get(LOCALE_ID, DEFAULT_LOCALE_ID);\n setLocaleId(localeId || DEFAULT_LOCALE_ID);\n this._moduleDoBootstrap(moduleRef);\n return moduleRef;\n });\n });\n });\n }\n /**\n * Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.\n *\n * @usageNotes\n * ### Simple Example\n *\n * ```typescript\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * let moduleRef = platformBrowser().bootstrapModule(MyModule);\n * ```\n *\n */\n bootstrapModule(moduleType, compilerOptions = []) {\n const options = optionsReducer({}, compilerOptions);\n return compileNgModuleFactory(this.injector, options, moduleType)\n .then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));\n }\n _moduleDoBootstrap(moduleRef) {\n const appRef = moduleRef.injector.get(ApplicationRef);\n if (moduleRef._bootstrapComponents.length > 0) {\n moduleRef._bootstrapComponents.forEach(f => appRef.bootstrap(f));\n }\n else if (moduleRef.instance.ngDoBootstrap) {\n moduleRef.instance.ngDoBootstrap(appRef);\n }\n else {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +\n `but it does not declare \"@NgModule.bootstrap\" components nor a \"ngDoBootstrap\" method. ` +\n `Please define one of these.` :\n '';\n throw new RuntimeError(\"403\" /* BOOTSTRAP_COMPONENTS_NOT_FOUND */, errorMessage);\n }\n this._modules.push(moduleRef);\n }\n /**\n * Registers a listener to be called when the platform is destroyed.\n */\n onDestroy(callback) {\n this._destroyListeners.push(callback);\n }\n /**\n * Retrieves the platform {@link Injector}, which is the parent injector for\n * every Angular application on the page and provides singleton providers.\n */\n get injector() {\n return this._injector;\n }\n /**\n * Destroys the current Angular platform and all Angular applications on the page.\n * Destroys all modules and listeners registered with the platform.\n */\n destroy() {\n if (this._destroyed) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'The platform has already been destroyed!' :\n '';\n throw new RuntimeError(\"404\" /* ALREADY_DESTROYED_PLATFORM */, errorMessage);\n }\n this._modules.slice().forEach(module => module.destroy());\n this._destroyListeners.forEach(listener => listener());\n this._destroyed = true;\n }\n get destroyed() {\n return this._destroyed;\n }\n}\nPlatformRef.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); };\nPlatformRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(PlatformRef, [{\n type: Injectable\n }], function () { return [{ type: Injector }]; }, null);\n})();\nfunction getNgZone(ngZoneOption, extra) {\n let ngZone;\n if (ngZoneOption === 'noop') {\n ngZone = new NoopNgZone();\n }\n else {\n ngZone = (ngZoneOption === 'zone.js' ? undefined : ngZoneOption) || new NgZone({\n enableLongStackTrace: typeof ngDevMode === 'undefined' ? false : !!ngDevMode,\n shouldCoalesceEventChangeDetection: !!(extra === null || extra === void 0 ? void 0 : extra.ngZoneEventCoalescing),\n shouldCoalesceRunChangeDetection: !!(extra === null || extra === void 0 ? void 0 : extra.ngZoneRunCoalescing)\n });\n }\n return ngZone;\n}\nfunction _callAndReportToErrorHandler(errorHandler, ngZone, callback) {\n try {\n const result = callback();\n if (isPromise(result)) {\n return result.catch((e) => {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n });\n }\n return result;\n }\n catch (e) {\n ngZone.runOutsideAngular(() => errorHandler.handleError(e));\n // rethrow as the exception handler might not do it\n throw e;\n }\n}\nfunction optionsReducer(dst, objs) {\n if (Array.isArray(objs)) {\n dst = objs.reduce(optionsReducer, dst);\n }\n else {\n dst = Object.assign(Object.assign({}, dst), objs);\n }\n return dst;\n}\n/**\n * A reference to an Angular application running on a page.\n *\n * @usageNotes\n *\n * {@a is-stable-examples}\n * ### isStable examples and caveats\n *\n * Note two important points about `isStable`, demonstrated in the examples below:\n * - the application will never be stable if you start any kind\n * of recurrent asynchronous task when the application starts\n * (for example for a polling process, started with a `setInterval`, a `setTimeout`\n * or using RxJS operators like `interval`);\n * - the `isStable` Observable runs outside of the Angular zone.\n *\n * Let's imagine that you start a recurrent task\n * (here incrementing a counter, using RxJS `interval`),\n * and at the same time subscribe to `isStable`.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * filter(stable => stable)\n * ).subscribe(() => console.log('App is stable now');\n * interval(1000).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, `isStable` will never emit `true`,\n * and the trace \"App is stable now\" will never get logged.\n *\n * If you want to execute something when the app is stable,\n * you have to wait for the application to be stable\n * before starting your polling process.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * tap(stable => console.log('App is stable now')),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => console.log(counter));\n * }\n * ```\n * In this example, the trace \"App is stable now\" will be logged\n * and then the counter starts incrementing every second.\n *\n * Note also that this Observable runs outside of the Angular zone,\n * which means that the code in the subscription\n * to this Observable will not trigger the change detection.\n *\n * Let's imagine that instead of logging the counter value,\n * you update a field of your component\n * and display it in its template.\n *\n * ```\n * constructor(appRef: ApplicationRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => this.value = counter);\n * }\n * ```\n * As the `isStable` Observable runs outside the zone,\n * the `value` field will be updated properly,\n * but the template will not be refreshed!\n *\n * You'll have to manually trigger the change detection to update the template.\n *\n * ```\n * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => {\n * this.value = counter;\n * cd.detectChanges();\n * });\n * }\n * ```\n *\n * Or make the subscription callback run inside the zone.\n *\n * ```\n * constructor(appRef: ApplicationRef, zone: NgZone) {\n * appRef.isStable.pipe(\n * first(stable => stable),\n * switchMap(() => interval(1000))\n * ).subscribe(counter => zone.run(() => this.value = counter));\n * }\n * ```\n *\n * @publicApi\n */\nclass ApplicationRef {\n /** @internal */\n constructor(_zone, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {\n this._zone = _zone;\n this._injector = _injector;\n this._exceptionHandler = _exceptionHandler;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._initStatus = _initStatus;\n /** @internal */\n this._bootstrapListeners = [];\n this._views = [];\n this._runningTick = false;\n this._stable = true;\n /**\n * Get a list of component types registered to this application.\n * This list is populated even before the component is created.\n */\n this.componentTypes = [];\n /**\n * Get a list of components registered to this application.\n */\n this.components = [];\n this._onMicrotaskEmptySubscription = this._zone.onMicrotaskEmpty.subscribe({\n next: () => {\n this._zone.run(() => {\n this.tick();\n });\n }\n });\n const isCurrentlyStable = new Observable((observer) => {\n this._stable = this._zone.isStable && !this._zone.hasPendingMacrotasks &&\n !this._zone.hasPendingMicrotasks;\n this._zone.runOutsideAngular(() => {\n observer.next(this._stable);\n observer.complete();\n });\n });\n const isStable = new Observable((observer) => {\n // Create the subscription to onStable outside the Angular Zone so that\n // the callback is run outside the Angular Zone.\n let stableSub;\n this._zone.runOutsideAngular(() => {\n stableSub = this._zone.onStable.subscribe(() => {\n NgZone.assertNotInAngularZone();\n // Check whether there are no pending macro/micro tasks in the next tick\n // to allow for NgZone to update the state.\n scheduleMicroTask(() => {\n if (!this._stable && !this._zone.hasPendingMacrotasks &&\n !this._zone.hasPendingMicrotasks) {\n this._stable = true;\n observer.next(true);\n }\n });\n });\n });\n const unstableSub = this._zone.onUnstable.subscribe(() => {\n NgZone.assertInAngularZone();\n if (this._stable) {\n this._stable = false;\n this._zone.runOutsideAngular(() => {\n observer.next(false);\n });\n }\n });\n return () => {\n stableSub.unsubscribe();\n unstableSub.unsubscribe();\n };\n });\n this.isStable =\n merge$1(isCurrentlyStable, isStable.pipe(share()));\n }\n /**\n * Bootstrap a component onto the element identified by its selector or, optionally, to a\n * specified element.\n *\n * @usageNotes\n * ### Bootstrap process\n *\n * When bootstrapping a component, Angular mounts it onto a target DOM element\n * and kicks off automatic change detection. The target DOM element can be\n * provided using the `rootSelectorOrNode` argument.\n *\n * If the target DOM element is not provided, Angular tries to find one on a page\n * using the `selector` of the component that is being bootstrapped\n * (first matched element is used).\n *\n * ### Example\n *\n * Generally, we define the component to bootstrap in the `bootstrap` array of `NgModule`,\n * but it requires us to know the component while writing the application code.\n *\n * Imagine a situation where we have to wait for an API call to decide about the component to\n * bootstrap. We can use the `ngDoBootstrap` hook of the `NgModule` and call this method to\n * dynamically bootstrap a component.\n *\n * {@example core/ts/platform/platform.ts region='componentSelector'}\n *\n * Optionally, a component can be mounted onto a DOM element that does not match the\n * selector of the bootstrapped component.\n *\n * In the following example, we are providing a CSS selector to match the target element.\n *\n * {@example core/ts/platform/platform.ts region='cssSelector'}\n *\n * While in this example, we are providing reference to a DOM node.\n *\n * {@example core/ts/platform/platform.ts region='domNode'}\n */\n bootstrap(componentOrFactory, rootSelectorOrNode) {\n if (!this._initStatus.done) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'Cannot bootstrap as there are still asynchronous initializers running. ' +\n 'Bootstrap components in the `ngDoBootstrap` method of the root module.' :\n '';\n throw new RuntimeError(\"405\" /* ASYNC_INITIALIZERS_STILL_RUNNING */, errorMessage);\n }\n let componentFactory;\n if (componentOrFactory instanceof ComponentFactory$1) {\n componentFactory = componentOrFactory;\n }\n else {\n componentFactory =\n this._componentFactoryResolver.resolveComponentFactory(componentOrFactory);\n }\n this.componentTypes.push(componentFactory.componentType);\n // Create a factory associated with the current module if it's not bound to some other\n const ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef$1);\n const selectorOrNode = rootSelectorOrNode || componentFactory.selector;\n const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);\n const nativeElement = compRef.location.nativeElement;\n const testability = compRef.injector.get(Testability, null);\n const testabilityRegistry = testability && compRef.injector.get(TestabilityRegistry);\n if (testability && testabilityRegistry) {\n testabilityRegistry.registerApplication(nativeElement, testability);\n }\n compRef.onDestroy(() => {\n this.detachView(compRef.hostView);\n remove(this.components, compRef);\n if (testabilityRegistry) {\n testabilityRegistry.unregisterApplication(nativeElement);\n }\n });\n this._loadComponent(compRef);\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n const _console = this._injector.get(Console);\n _console.log(`Angular is running in development mode. Call enableProdMode() to enable production mode.`);\n }\n return compRef;\n }\n /**\n * Invoke this method to explicitly process change detection and its side-effects.\n *\n * In development mode, `tick()` also performs a second change detection cycle to ensure that no\n * further changes are detected. If additional changes are picked up during this second cycle,\n * bindings in the app have side-effects that cannot be resolved in a single change detection\n * pass.\n * In this case, Angular throws an error, since an Angular application can only have one change\n * detection pass during which all change detection must complete.\n */\n tick() {\n if (this._runningTick) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'ApplicationRef.tick is called recursively' :\n '';\n throw new RuntimeError(\"101\" /* RECURSIVE_APPLICATION_REF_TICK */, errorMessage);\n }\n try {\n this._runningTick = true;\n for (let view of this._views) {\n view.detectChanges();\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n for (let view of this._views) {\n view.checkNoChanges();\n }\n }\n }\n catch (e) {\n // Attention: Don't rethrow as it could cancel subscriptions to Observables!\n this._zone.runOutsideAngular(() => this._exceptionHandler.handleError(e));\n }\n finally {\n this._runningTick = false;\n }\n }\n /**\n * Attaches a view so that it will be dirty checked.\n * The view will be automatically detached when it is destroyed.\n * This will throw if the view is already attached to a ViewContainer.\n */\n attachView(viewRef) {\n const view = viewRef;\n this._views.push(view);\n view.attachToAppRef(this);\n }\n /**\n * Detaches a view from dirty checking again.\n */\n detachView(viewRef) {\n const view = viewRef;\n remove(this._views, view);\n view.detachFromAppRef();\n }\n _loadComponent(componentRef) {\n this.attachView(componentRef.hostView);\n this.tick();\n this.components.push(componentRef);\n // Get the listeners lazily to prevent DI cycles.\n const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);\n listeners.forEach((listener) => listener(componentRef));\n }\n /** @internal */\n ngOnDestroy() {\n this._views.slice().forEach((view) => view.destroy());\n this._onMicrotaskEmptySubscription.unsubscribe();\n }\n /**\n * Returns the number of attached views.\n */\n get viewCount() {\n return this._views.length;\n }\n}\nApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ComponentFactoryResolver$1), ɵɵinject(ApplicationInitStatus)); };\nApplicationRef.ɵprov = /*@__PURE__*/ ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationRef, [{\n type: Injectable\n }], function () { return [{ type: NgZone }, { type: Injector }, { type: ErrorHandler }, { type: ComponentFactoryResolver$1 }, { type: ApplicationInitStatus }]; }, null);\n})();\nfunction remove(list, el) {\n const index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n }\n}\nfunction _lastDefined(args) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\nfunction _mergeArrays(parts) {\n const result = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`.\n *\n * For more information on how to run and debug tests with either Ivy or View Engine (legacy),\n * please see [BAZEL.md](./docs/BAZEL.md).\n */\nlet _devMode = true;\nlet _runModeLocked = false;\n/**\n * Returns whether Angular is in development mode. After called once,\n * the value is locked and won't change any more.\n *\n * By default, this is true, unless a user calls `enableProdMode` before calling this.\n *\n * @publicApi\n */\nfunction isDevMode() {\n _runModeLocked = true;\n return _devMode;\n}\n/**\n * Disable Angular's development mode, which turns off assertions and other\n * checks within the framework.\n *\n * One important assertion this disables verifies that a change detection pass\n * does not result in additional changes to any bindings (also known as\n * unidirectional data flow).\n *\n * @publicApi\n */\nfunction enableProdMode() {\n if (_runModeLocked) {\n throw new Error('Cannot enable prod mode after platform setup.');\n }\n // The below check is there so when ngDevMode is set via terser\n // `global['ngDevMode'] = false;` is also dropped.\n if (typeof ngDevMode === undefined || !!ngDevMode) {\n _global['ngDevMode'] = false;\n }\n _devMode = false;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Returns the NgModuleFactory with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Factories for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n * @deprecated Use `getNgModuleById` instead.\n */\nfunction getModuleFactory(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return new NgModuleFactory(type);\n}\n/**\n * Returns the NgModule class with the given id (specified using [@NgModule.id\n * field](api/core/NgModule#id)), if it exists and has been loaded. Classes for NgModules that do\n * not specify an `id` cannot be retrieved. Throws if an NgModule cannot be found.\n * @publicApi\n */\nfunction getNgModuleById(id) {\n const type = getRegisteredNgModuleType(id);\n if (!type)\n throw noModuleError(id);\n return type;\n}\nfunction noModuleError(id) {\n return new Error(`No module with ID ${id} loaded`);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Base class that provides change detection functionality.\n * A change-detection tree collects all views that are to be checked for changes.\n * Use the methods to add and remove views from the tree, initiate change-detection,\n * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.\n *\n * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)\n * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)\n *\n * @usageNotes\n *\n * The following examples demonstrate how to modify default change-detection behavior\n * to perform explicit detection when needed.\n *\n * ### Use `markForCheck()` with `CheckOnce` strategy\n *\n * The following example sets the `OnPush` change-detection strategy for a component\n * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check\n * after an interval. See [live demo](https://plnkr.co/edit/GC512b?p=preview).\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\"\n * region=\"mark-for-check\"></code-example>\n *\n * ### Detach change detector to limit how often check occurs\n *\n * The following example defines a component with a large list of read-only data\n * that is expected to change constantly, many times per second.\n * To improve performance, we want to check and update the list\n * less often than the changes actually occur. To do that, we detach\n * the component's change detector and perform an explicit local check every five seconds.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"detach\"></code-example>\n *\n *\n * ### Reattaching a detached component\n *\n * The following example creates a component displaying live data.\n * The component detaches its change detector from the main change detector tree\n * when the `live` property is set to false, and reattaches it when the property\n * becomes true.\n *\n * <code-example path=\"core/ts/change_detect/change-detection.ts\" region=\"reattach\"></code-example>\n *\n * @publicApi\n */\nclass ChangeDetectorRef {\n}\n/**\n * @internal\n * @nocollapse\n */\nChangeDetectorRef.__NG_ELEMENT_ID__ = injectChangeDetectorRef;\n/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */\nfunction injectChangeDetectorRef(flags) {\n return createViewRef(getCurrentTNode(), getLView(), (flags & 16 /* ForPipe */) === 16 /* ForPipe */);\n}\n/**\n * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).\n *\n * @param tNode The node that is requesting a ChangeDetectorRef\n * @param lView The view to which the node belongs\n * @param isPipe Whether the view is being injected into a pipe.\n * @returns The ChangeDetectorRef to use\n */\nfunction createViewRef(tNode, lView, isPipe) {\n if (isComponentHost(tNode) && !isPipe) {\n // The LView represents the location where the component is declared.\n // Instead we want the LView for the component View and so we need to look it up.\n const componentView = getComponentLViewByIndex(tNode.index, lView); // look down\n return new ViewRef$1(componentView, componentView);\n }\n else if (tNode.type & (3 /* AnyRNode */ | 12 /* AnyContainer */ | 32 /* Icu */)) {\n // The LView represents the location where the injection is requested from.\n // We need to locate the containing LView (in case where the `lView` is an embedded view)\n const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up\n return new ViewRef$1(hostComponentView, lView);\n }\n return null;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Represents an Angular [view](guide/glossary#view \"Definition\").\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nclass ViewRef extends ChangeDetectorRef {\n}\n/**\n * Represents an Angular [view](guide/glossary#view) in a view container.\n * An [embedded view](guide/glossary#view-tree) can be referenced from a component\n * other than the hosting component whose template defines it, or it can be defined\n * independently by a `TemplateRef`.\n *\n * Properties of elements in a view can change, but the structure (number and order) of elements in\n * a view cannot. Change the structure of elements by inserting, moving, or\n * removing nested views in a view container.\n *\n * @see `ViewContainerRef`\n *\n * @usageNotes\n *\n * The following template breaks down into two separate `TemplateRef` instances,\n * an outer one and an inner one.\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>\n * ```\n *\n * This is the outer `TemplateRef`:\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n * <ng-template ngFor let-item [ngForOf]=\"items\"></ng-template>\n * </ul>\n * ```\n *\n * This is the inner `TemplateRef`:\n *\n * ```\n * <li>{{item}}</li>\n * ```\n *\n * The outer and inner `TemplateRef` instances are assembled into views as follows:\n *\n * ```\n * <!-- ViewRef: outer-0 -->\n * Count: 2\n * <ul>\n * <ng-template view-container-ref></ng-template>\n * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\n * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\n * </ul>\n * <!-- /ViewRef: outer-0 -->\n * ```\n * @publicApi\n */\nclass EmbeddedViewRef extends ViewRef {\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file exists for easily patching NgModuleFactoryLoader in g3\nvar ng_module_factory_loader_impl = {};\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(alxhub): recombine the interfaces and implementations here and move the docs back onto the\n// original classes.\n/**\n * @publicApi\n */\nclass DebugEventListener {\n constructor(name, callback) {\n this.name = name;\n this.callback = callback;\n }\n}\n/**\n * @publicApi\n */\nfunction asNativeElements(debugEls) {\n return debugEls.map((el) => el.nativeElement);\n}\nclass DebugNode__POST_R3__ {\n constructor(nativeNode) {\n this.nativeNode = nativeNode;\n }\n get parent() {\n const parent = this.nativeNode.parentNode;\n return parent ? new DebugElement__POST_R3__(parent) : null;\n }\n get injector() {\n return getInjector(this.nativeNode);\n }\n get componentInstance() {\n const nativeElement = this.nativeNode;\n return nativeElement &&\n (getComponent$1(nativeElement) || getOwningComponent(nativeElement));\n }\n get context() {\n return getComponent$1(this.nativeNode) || getContext(this.nativeNode);\n }\n get listeners() {\n return getListeners(this.nativeNode).filter(listener => listener.type === 'dom');\n }\n get references() {\n return getLocalRefs(this.nativeNode);\n }\n get providerTokens() {\n return getInjectionTokens(this.nativeNode);\n }\n}\nclass DebugElement__POST_R3__ extends DebugNode__POST_R3__ {\n constructor(nativeNode) {\n ngDevMode && assertDomNode(nativeNode);\n super(nativeNode);\n }\n get nativeElement() {\n return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;\n }\n get name() {\n const context = getLContext(this.nativeNode);\n if (context !== null) {\n const lView = context.lView;\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n return tNode.value;\n }\n else {\n return this.nativeNode.nodeName;\n }\n }\n /**\n * Gets a map of property names to property values for an element.\n *\n * This map includes:\n * - Regular property bindings (e.g. `[id]=\"id\"`)\n * - Host property bindings (e.g. `host: { '[id]': \"id\" }`)\n * - Interpolated property bindings (e.g. `id=\"{{ value }}\")\n *\n * It does not include:\n * - input property bindings (e.g. `[myCustomInput]=\"value\"`)\n * - attribute bindings (e.g. `[attr.role]=\"menu\"`)\n */\n get properties() {\n const context = getLContext(this.nativeNode);\n if (context === null) {\n return {};\n }\n const lView = context.lView;\n const tData = lView[TVIEW].data;\n const tNode = tData[context.nodeIndex];\n const properties = {};\n // Collect properties from the DOM.\n copyDomProperties(this.nativeElement, properties);\n // Collect properties from the bindings. This is needed for animation renderer which has\n // synthetic properties which don't get reflected into the DOM.\n collectPropertyBindings(properties, tNode, lView, tData);\n return properties;\n }\n get attributes() {\n const attributes = {};\n const element = this.nativeElement;\n if (!element) {\n return attributes;\n }\n const context = getLContext(element);\n if (context === null) {\n return {};\n }\n const lView = context.lView;\n const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;\n const lowercaseTNodeAttrs = [];\n // For debug nodes we take the element's attribute directly from the DOM since it allows us\n // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones\n // that are set through `Renderer2`). The problem is that the browser will lowercase all names,\n // however since we have the attributes already on the TNode, we can preserve the case by going\n // through them once, adding them to the `attributes` map and putting their lower-cased name\n // into an array. Afterwards when we're going through the native DOM attributes, we can check\n // whether we haven't run into an attribute already through the TNode.\n if (tNodeAttrs) {\n let i = 0;\n while (i < tNodeAttrs.length) {\n const attrName = tNodeAttrs[i];\n // Stop as soon as we hit a marker. We only care about the regular attributes. Everything\n // else will be handled below when we read the final attributes off the DOM.\n if (typeof attrName !== 'string')\n break;\n const attrValue = tNodeAttrs[i + 1];\n attributes[attrName] = attrValue;\n lowercaseTNodeAttrs.push(attrName.toLowerCase());\n i += 2;\n }\n }\n const eAttrs = element.attributes;\n for (let i = 0; i < eAttrs.length; i++) {\n const attr = eAttrs[i];\n const lowercaseName = attr.name.toLowerCase();\n // Make sure that we don't assign the same attribute both in its\n // case-sensitive form and the lower-cased one from the browser.\n if (lowercaseTNodeAttrs.indexOf(lowercaseName) === -1) {\n // Save the lowercase name to align the behavior between browsers.\n // IE preserves the case, while all other browser convert it to lower case.\n attributes[lowercaseName] = attr.value;\n }\n }\n return attributes;\n }\n get styles() {\n if (this.nativeElement && this.nativeElement.style) {\n return this.nativeElement.style;\n }\n return {};\n }\n get classes() {\n const result = {};\n const element = this.nativeElement;\n // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.\n const className = element.className;\n const classes = typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');\n classes.forEach((value) => result[value] = true);\n return result;\n }\n get childNodes() {\n const childNodes = this.nativeNode.childNodes;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode__POST_R3__(element));\n }\n return children;\n }\n get children() {\n const nativeElement = this.nativeElement;\n if (!nativeElement)\n return [];\n const childNodes = nativeElement.children;\n const children = [];\n for (let i = 0; i < childNodes.length; i++) {\n const element = childNodes[i];\n children.push(getDebugNode__POST_R3__(element));\n }\n return children;\n }\n query(predicate) {\n const results = this.queryAll(predicate);\n return results[0] || null;\n }\n queryAll(predicate) {\n const matches = [];\n _queryAllR3(this, predicate, matches, true);\n return matches;\n }\n queryAllNodes(predicate) {\n const matches = [];\n _queryAllR3(this, predicate, matches, false);\n return matches;\n }\n triggerEventHandler(eventName, eventObj) {\n const node = this.nativeNode;\n const invokedListeners = [];\n this.listeners.forEach(listener => {\n if (listener.name === eventName) {\n const callback = listener.callback;\n callback.call(node, eventObj);\n invokedListeners.push(callback);\n }\n });\n // We need to check whether `eventListeners` exists, because it's something\n // that Zone.js only adds to `EventTarget` in browser environments.\n if (typeof node.eventListeners === 'function') {\n // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some\n // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event\n // listener.\n node.eventListeners(eventName).forEach((listener) => {\n // In order to ensure that we can detect the special __ngUnwrap__ token described above, we\n // use `toString` on the listener and see if it contains the token. We use this approach to\n // ensure that it still worked with compiled code since it cannot remove or rename string\n // literals. We also considered using a special function name (i.e. if(listener.name ===\n // special)) but that was more cumbersome and we were also concerned the compiled code could\n // strip the name, turning the condition in to (\"\" === \"\") and always returning true.\n if (listener.toString().indexOf('__ngUnwrap__') !== -1) {\n const unwrappedListener = listener('__ngUnwrap__');\n return invokedListeners.indexOf(unwrappedListener) === -1 &&\n unwrappedListener.call(node, eventObj);\n }\n });\n }\n }\n}\nfunction copyDomProperties(element, properties) {\n if (element) {\n // Skip own properties (as those are patched)\n let obj = Object.getPrototypeOf(element);\n const NodePrototype = Node.prototype;\n while (obj !== null && obj !== NodePrototype) {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n for (let key in descriptors) {\n if (!key.startsWith('__') && !key.startsWith('on')) {\n // don't include properties starting with `__` and `on`.\n // `__` are patched values which should not be included.\n // `on` are listeners which also should not be included.\n const value = element[key];\n if (isPrimitiveValue(value)) {\n properties[key] = value;\n }\n }\n }\n obj = Object.getPrototypeOf(obj);\n }\n }\n}\nfunction isPrimitiveValue(value) {\n return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' ||\n value === null;\n}\nfunction _queryAllR3(parentElement, predicate, matches, elementsOnly) {\n const context = getLContext(parentElement.nativeNode);\n if (context !== null) {\n const parentTNode = context.lView[TVIEW].data[context.nodeIndex];\n _queryNodeChildrenR3(parentTNode, context.lView, predicate, matches, elementsOnly, parentElement.nativeNode);\n }\n else {\n // If the context is null, then `parentElement` was either created with Renderer2 or native DOM\n // APIs.\n _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);\n }\n}\n/**\n * Recursively match the current TNode against the predicate, and goes on with the next ones.\n *\n * @param tNode the current TNode\n * @param lView the LView of this TNode\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildrenR3(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const nativeNode = getNativeByTNodeOrNull(tNode, lView);\n // For each type of TNode, specific logic is executed.\n if (tNode.type & (3 /* AnyRNode */ | 8 /* ElementContainer */)) {\n // Case 1: the TNode is an element\n // The native node has to be checked.\n _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n if (isComponentHost(tNode)) {\n // If the element is the host of a component, then all nodes in its view have to be processed.\n // Note: the component's content (tNode.child) will be processed from the insertion points.\n const componentView = getComponentLViewByIndex(tNode.index, lView);\n if (componentView && componentView[TVIEW].firstChild) {\n _queryNodeChildrenR3(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else {\n if (tNode.child) {\n // Otherwise, its children have to be processed.\n _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We also have to query the DOM directly in order to catch elements inserted through\n // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple\n // times. ViewEngine could do it more efficiently, because all the insertions go through\n // Renderer2, however that's not the case in Ivy. This approach is being used because:\n // 1. Matching the ViewEngine behavior would mean potentially introducing a depedency\n // from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.\n // 2. We would have to make `Renderer3` \"know\" about debug nodes.\n // 3. It allows us to capture nodes that were inserted directly via the DOM.\n nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);\n }\n // In all cases, if a dynamic container exists for this node, each view inside it has to be\n // processed.\n const nodeOrContainer = lView[tNode.index];\n if (isLContainer(nodeOrContainer)) {\n _queryNodeChildrenInContainerR3(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.type & 4 /* Container */) {\n // Case 2: the TNode is a container\n // The native node has to be checked.\n const lContainer = lView[tNode.index];\n _addQueryMatchR3(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);\n // Each view inside the container has to be processed.\n _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode);\n }\n else if (tNode.type & 16 /* Projection */) {\n // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).\n // The nodes projected at this location all need to be processed.\n const componentView = lView[DECLARATION_COMPONENT_VIEW];\n const componentHost = componentView[T_HOST];\n const head = componentHost.projection[tNode.projection];\n if (Array.isArray(head)) {\n for (let nativeNode of head) {\n _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (head) {\n const nextLView = componentView[PARENT];\n const nextTNode = nextLView[TVIEW].data[head.index];\n _queryNodeChildrenR3(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n else if (tNode.child) {\n // Case 4: the TNode is a view.\n _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n // We don't want to go to the next sibling of the root node.\n if (rootNativeNode !== nativeNode) {\n // To determine the next node to be processed, we need to use the next or the projectionNext\n // link, depending on whether the current node has been projected.\n const nextTNode = (tNode.flags & 4 /* isProjected */) ? tNode.projectionNext : tNode.next;\n if (nextTNode) {\n _queryNodeChildrenR3(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Process all TNodes in a given container.\n *\n * @param lContainer the container to be processed\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode) {\n for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {\n const childView = lContainer[i];\n const firstChild = childView[TVIEW].firstChild;\n if (firstChild) {\n _queryNodeChildrenR3(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);\n }\n }\n}\n/**\n * Match the current native node against the predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list of positive matches\n * @param elementsOnly whether only elements should be searched\n * @param rootNativeNode the root native node on which predicate should not be matched\n */\nfunction _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {\n if (rootNativeNode !== nativeNode) {\n const debugNode = getDebugNode(nativeNode);\n if (!debugNode) {\n return;\n }\n // Type of the \"predicate and \"matches\" array are set based on the value of\n // the \"elementsOnly\" parameter. TypeScript is not able to properly infer these\n // types with generics, so we manually cast the parameters accordingly.\n if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n }\n}\n/**\n * Match all the descendants of a DOM node against a predicate.\n *\n * @param nativeNode the current native node\n * @param predicate the predicate to match\n * @param matches the list where matches are stored\n * @param elementsOnly whether only elements should be searched\n */\nfunction _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {\n const nodes = parentNode.childNodes;\n const length = nodes.length;\n for (let i = 0; i < length; i++) {\n const node = nodes[i];\n const debugNode = getDebugNode(node);\n if (debugNode) {\n if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n else if (!elementsOnly && predicate(debugNode) &&\n matches.indexOf(debugNode) === -1) {\n matches.push(debugNode);\n }\n _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);\n }\n }\n}\n/**\n * Iterates through the property bindings for a given node and generates\n * a map of property names to values. This map only contains property bindings\n * defined in templates, not in host bindings.\n */\nfunction collectPropertyBindings(properties, tNode, lView, tData) {\n let bindingIndexes = tNode.propertyBindings;\n if (bindingIndexes !== null) {\n for (let i = 0; i < bindingIndexes.length; i++) {\n const bindingIndex = bindingIndexes[i];\n const propMetadata = tData[bindingIndex];\n const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);\n const propertyName = metadataParts[0];\n if (metadataParts.length > 1) {\n let value = metadataParts[1];\n for (let j = 1; j < metadataParts.length - 1; j++) {\n value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];\n }\n properties[propertyName] = value;\n }\n else {\n properties[propertyName] = lView[bindingIndex];\n }\n }\n }\n}\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\nconst _nativeNodeToDebugNode = new Map();\nconst NG_DEBUG_PROPERTY = '__ng_debug__';\nfunction getDebugNode__POST_R3__(nativeNode) {\n if (nativeNode instanceof Node) {\n if (!(nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY))) {\n nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ?\n new DebugElement__POST_R3__(nativeNode) :\n new DebugNode__POST_R3__(nativeNode);\n }\n return nativeNode[NG_DEBUG_PROPERTY];\n }\n return null;\n}\n/**\n * @publicApi\n */\nconst getDebugNode = getDebugNode__POST_R3__;\nfunction getDebugNodeR2__POST_R3__(_nativeNode) {\n return null;\n}\nconst getDebugNodeR2 = getDebugNodeR2__POST_R3__;\nfunction getAllDebugNodes() {\n return Array.from(_nativeNodeToDebugNode.values());\n}\nfunction indexDebugNode(node) {\n _nativeNodeToDebugNode.set(node.nativeNode, node);\n}\nfunction removeDebugNodeFromIndex(node) {\n _nativeNodeToDebugNode.delete(node.nativeNode);\n}\n/**\n * @publicApi\n */\nconst DebugNode = DebugNode__POST_R3__;\n/**\n * @publicApi\n */\nconst DebugElement = DebugElement__POST_R3__;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass DefaultIterableDifferFactory {\n constructor() { }\n supports(obj) {\n return isListLikeIterable(obj);\n }\n create(trackByFn) {\n return new DefaultIterableDiffer(trackByFn);\n }\n}\nconst trackByIdentity = (index, item) => item;\n/**\n * @deprecated v4.0.0 - Should not be part of public API.\n * @publicApi\n */\nclass DefaultIterableDiffer {\n constructor(trackByFn) {\n this.length = 0;\n // Keeps track of the used records at any point in time (during & across `_check()` calls)\n this._linkedRecords = null;\n // Keeps track of the removed records at any point in time during `_check()` calls.\n this._unlinkedRecords = null;\n this._previousItHead = null;\n this._itHead = null;\n this._itTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._movesHead = null;\n this._movesTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n // Keeps track of records where custom track by is the same, but item identity has changed\n this._identityChangesHead = null;\n this._identityChangesTail = null;\n this._trackByFn = trackByFn || trackByIdentity;\n }\n forEachItem(fn) {\n let record;\n for (record = this._itHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachOperation(fn) {\n let nextIt = this._itHead;\n let nextRemove = this._removalsHead;\n let addRemoveOffset = 0;\n let moveOffsets = null;\n while (nextIt || nextRemove) {\n // Figure out which is the next record to process\n // Order: remove, add, move\n const record = !nextRemove ||\n nextIt &&\n nextIt.currentIndex <\n getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ?\n nextIt :\n nextRemove;\n const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\n const currentIndex = record.currentIndex;\n // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\n if (record === nextRemove) {\n addRemoveOffset--;\n nextRemove = nextRemove._nextRemoved;\n }\n else {\n nextIt = nextIt._next;\n if (record.previousIndex == null) {\n addRemoveOffset++;\n }\n else {\n // INVARIANT: currentIndex < previousIndex\n if (!moveOffsets)\n moveOffsets = [];\n const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\n const localCurrentIndex = currentIndex - addRemoveOffset;\n if (localMovePreviousIndex != localCurrentIndex) {\n for (let i = 0; i < localMovePreviousIndex; i++) {\n const offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);\n const index = offset + i;\n if (localCurrentIndex <= index && index < localMovePreviousIndex) {\n moveOffsets[i] = offset + 1;\n }\n }\n const previousIndex = record.previousIndex;\n moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\n }\n }\n }\n if (adjPreviousIndex !== currentIndex) {\n fn(record, adjPreviousIndex, currentIndex);\n }\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachMovedItem(fn) {\n let record;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n forEachIdentityChange(fn) {\n let record;\n for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\n fn(record);\n }\n }\n diff(collection) {\n if (collection == null)\n collection = [];\n if (!isListLikeIterable(collection)) {\n throw new Error(`Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);\n }\n if (this.check(collection)) {\n return this;\n }\n else {\n return null;\n }\n }\n onDestroy() { }\n check(collection) {\n this._reset();\n let record = this._itHead;\n let mayBeDirty = false;\n let index;\n let item;\n let itemTrackBy;\n if (Array.isArray(collection)) {\n this.length = collection.length;\n for (let index = 0; index < this.length; index++) {\n item = collection[index];\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n }\n }\n else {\n index = 0;\n iterateListLike(collection, (item) => {\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !Object.is(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n index++;\n });\n this.length = index;\n }\n this._truncate(record);\n this.collection = collection;\n return this.isDirty;\n }\n /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\n * changes.\n */\n get isDirty() {\n return this._additionsHead !== null || this._movesHead !== null ||\n this._removalsHead !== null || this._identityChangesHead !== null;\n }\n /**\n * Reset the state of the change objects to show no changes. This means set previousKey to\n * currentKey, and clear all of the queues (additions, moves, removals).\n * Set the previousIndexes of moved and added items to their currentIndexes\n * Reset the list of additions, moves and removals\n *\n * @internal\n */\n _reset() {\n if (this.isDirty) {\n let record;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n record.previousIndex = record.currentIndex;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n // TODO(vicb): when assert gets supported\n // assert(!this.isDirty);\n }\n }\n /**\n * This is the core function which handles differences between collections.\n *\n * - `record` is the record which we saw at this position last time. If null then it is a new\n * item.\n * - `item` is the current item in the collection\n * - `index` is the position of the item in the collection\n *\n * @internal\n */\n _mismatch(record, item, itemTrackBy, index) {\n // The previous record after which we will append the current one.\n let previousRecord;\n if (record === null) {\n previousRecord = this._itTail;\n }\n else {\n previousRecord = record._prev;\n // Remove the record from the collection since we know it does not match the item.\n this._remove(record);\n }\n // See if we have evicted the item, which used to be at some anterior position of _itHead list.\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (record !== null) {\n // It is an item which we have evicted earlier: reinsert it back into the list.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._reinsertAfter(record, previousRecord, index);\n }\n else {\n // Attempt to see if the item is at some posterior position of _itHead list.\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n if (record !== null) {\n // We have the item in _itHead at/after `index` position. We need to move it forward in the\n // collection.\n // But first we need to check if identity changed, so we can update in view if necessary.\n if (!Object.is(record.item, item))\n this._addIdentityChange(record, item);\n this._moveAfter(record, previousRecord, index);\n }\n else {\n // It is a new item: add it.\n record =\n this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);\n }\n }\n return record;\n }\n /**\n * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\n *\n * Use case: `[a, a]` => `[b, a, a]`\n *\n * If we did not have this check then the insertion of `b` would:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) leave `a` at index `1` as is. <-- this is wrong!\n * 3) reinsert `a` at index 2. <-- this is wrong!\n *\n * The correct behavior is:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) reinsert `a` at index 1.\n * 3) move `a` at from `1` to `2`.\n *\n *\n * Double check that we have not evicted a duplicate item. We need to check if the item type may\n * have already been removed:\n * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\n * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\n * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\n * at the end.\n *\n * @internal\n */\n _verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }\n /**\n * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection\n *\n * - `record` The first excess {@link IterableChangeRecord_}.\n *\n * @internal\n */\n _truncate(record) {\n // Anything after that needs to be removed;\n while (record !== null) {\n const nextRecord = record._next;\n this._addToRemovals(this._unlink(record));\n record = nextRecord;\n }\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.clear();\n }\n if (this._additionsTail !== null) {\n this._additionsTail._nextAdded = null;\n }\n if (this._movesTail !== null) {\n this._movesTail._nextMoved = null;\n }\n if (this._itTail !== null) {\n this._itTail._next = null;\n }\n if (this._removalsTail !== null) {\n this._removalsTail._nextRemoved = null;\n }\n if (this._identityChangesTail !== null) {\n this._identityChangesTail._nextIdentityChange = null;\n }\n }\n /** @internal */\n _reinsertAfter(record, prevRecord, index) {\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.remove(record);\n }\n const prev = record._prevRemoved;\n const next = record._nextRemoved;\n if (prev === null) {\n this._removalsHead = next;\n }\n else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n }\n else {\n next._prevRemoved = prev;\n }\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _moveAfter(record, prevRecord, index) {\n this._unlink(record);\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n }\n /** @internal */\n _addAfter(record, prevRecord, index) {\n this._insertAfter(record, prevRecord, index);\n if (this._additionsTail === null) {\n // TODO(vicb):\n // assert(this._additionsHead === null);\n this._additionsTail = this._additionsHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_additionsTail._nextAdded === null);\n // assert(record._nextAdded === null);\n this._additionsTail = this._additionsTail._nextAdded = record;\n }\n return record;\n }\n /** @internal */\n _insertAfter(record, prevRecord, index) {\n // TODO(vicb):\n // assert(record != prevRecord);\n // assert(record._next === null);\n // assert(record._prev === null);\n const next = prevRecord === null ? this._itHead : prevRecord._next;\n // TODO(vicb):\n // assert(next != record);\n // assert(prevRecord != record);\n record._next = next;\n record._prev = prevRecord;\n if (next === null) {\n this._itTail = record;\n }\n else {\n next._prev = record;\n }\n if (prevRecord === null) {\n this._itHead = record;\n }\n else {\n prevRecord._next = record;\n }\n if (this._linkedRecords === null) {\n this._linkedRecords = new _DuplicateMap();\n }\n this._linkedRecords.put(record);\n record.currentIndex = index;\n return record;\n }\n /** @internal */\n _remove(record) {\n return this._addToRemovals(this._unlink(record));\n }\n /** @internal */\n _unlink(record) {\n if (this._linkedRecords !== null) {\n this._linkedRecords.remove(record);\n }\n const prev = record._prev;\n const next = record._next;\n // TODO(vicb):\n // assert((record._prev = null) === null);\n // assert((record._next = null) === null);\n if (prev === null) {\n this._itHead = next;\n }\n else {\n prev._next = next;\n }\n if (next === null) {\n this._itTail = prev;\n }\n else {\n next._prev = prev;\n }\n return record;\n }\n /** @internal */\n _addToMoves(record, toIndex) {\n // TODO(vicb):\n // assert(record._nextMoved === null);\n if (record.previousIndex === toIndex) {\n return record;\n }\n if (this._movesTail === null) {\n // TODO(vicb):\n // assert(_movesHead === null);\n this._movesTail = this._movesHead = record;\n }\n else {\n // TODO(vicb):\n // assert(_movesTail._nextMoved === null);\n this._movesTail = this._movesTail._nextMoved = record;\n }\n return record;\n }\n _addToRemovals(record) {\n if (this._unlinkedRecords === null) {\n this._unlinkedRecords = new _DuplicateMap();\n }\n this._unlinkedRecords.put(record);\n record.currentIndex = null;\n record._nextRemoved = null;\n if (this._removalsTail === null) {\n // TODO(vicb):\n // assert(_removalsHead === null);\n this._removalsTail = this._removalsHead = record;\n record._prevRemoved = null;\n }\n else {\n // TODO(vicb):\n // assert(_removalsTail._nextRemoved === null);\n // assert(record._nextRemoved === null);\n record._prevRemoved = this._removalsTail;\n this._removalsTail = this._removalsTail._nextRemoved = record;\n }\n return record;\n }\n /** @internal */\n _addIdentityChange(record, item) {\n record.item = item;\n if (this._identityChangesTail === null) {\n this._identityChangesTail = this._identityChangesHead = record;\n }\n else {\n this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\n }\n return record;\n }\n}\nclass IterableChangeRecord_ {\n constructor(item, trackById) {\n this.item = item;\n this.trackById = trackById;\n this.currentIndex = null;\n this.previousIndex = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._prev = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._prevDup = null;\n /** @internal */\n this._nextDup = null;\n /** @internal */\n this._prevRemoved = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextMoved = null;\n /** @internal */\n this._nextIdentityChange = null;\n }\n}\n// A linked list of IterableChangeRecords with the same IterableChangeRecord_.item\nclass _DuplicateItemRecordList {\n constructor() {\n /** @internal */\n this._head = null;\n /** @internal */\n this._tail = null;\n }\n /**\n * Append the record to the list of duplicates.\n *\n * Note: by design all records in the list of duplicates hold the same value in record.item.\n */\n add(record) {\n if (this._head === null) {\n this._head = this._tail = record;\n record._nextDup = null;\n record._prevDup = null;\n }\n else {\n // TODO(vicb):\n // assert(record.item == _head.item ||\n // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\n this._tail._nextDup = record;\n record._prevDup = this._tail;\n record._nextDup = null;\n this._tail = record;\n }\n }\n // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and\n // IterableChangeRecord_.currentIndex >= atOrAfterIndex\n get(trackById, atOrAfterIndex) {\n let record;\n for (record = this._head; record !== null; record = record._nextDup) {\n if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) &&\n Object.is(record.trackById, trackById)) {\n return record;\n }\n }\n return null;\n }\n /**\n * Remove one {@link IterableChangeRecord_} from the list of duplicates.\n *\n * Returns whether the list of duplicates is empty.\n */\n remove(record) {\n // TODO(vicb):\n // assert(() {\n // // verify that the record being removed is in the list.\n // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {\n // if (identical(cursor, record)) return true;\n // }\n // return false;\n //});\n const prev = record._prevDup;\n const next = record._nextDup;\n if (prev === null) {\n this._head = next;\n }\n else {\n prev._nextDup = next;\n }\n if (next === null) {\n this._tail = prev;\n }\n else {\n next._prevDup = prev;\n }\n return this._head === null;\n }\n}\nclass _DuplicateMap {\n constructor() {\n this.map = new Map();\n }\n put(record) {\n const key = record.trackById;\n let duplicates = this.map.get(key);\n if (!duplicates) {\n duplicates = new _DuplicateItemRecordList();\n this.map.set(key, duplicates);\n }\n duplicates.add(record);\n }\n /**\n * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we\n * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.\n *\n * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\n * have any more `a`s needs to return the second `a`.\n */\n get(trackById, atOrAfterIndex) {\n const key = trackById;\n const recordList = this.map.get(key);\n return recordList ? recordList.get(trackById, atOrAfterIndex) : null;\n }\n /**\n * Removes a {@link IterableChangeRecord_} from the list of duplicates.\n *\n * The list of duplicates also is removed from the map if it gets empty.\n */\n remove(record) {\n const key = record.trackById;\n const recordList = this.map.get(key);\n // Remove the list of duplicates when it gets empty\n if (recordList.remove(record)) {\n this.map.delete(key);\n }\n return record;\n }\n get isEmpty() {\n return this.map.size === 0;\n }\n clear() {\n this.map.clear();\n }\n}\nfunction getPreviousIndex(item, addRemoveOffset, moveOffsets) {\n const previousIndex = item.previousIndex;\n if (previousIndex === null)\n return previousIndex;\n let moveOffset = 0;\n if (moveOffsets && previousIndex < moveOffsets.length) {\n moveOffset = moveOffsets[previousIndex];\n }\n return previousIndex + addRemoveOffset + moveOffset;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nclass DefaultKeyValueDifferFactory {\n constructor() { }\n supports(obj) {\n return obj instanceof Map || isJsObject(obj);\n }\n create() {\n return new DefaultKeyValueDiffer();\n }\n}\nclass DefaultKeyValueDiffer {\n constructor() {\n this._records = new Map();\n this._mapHead = null;\n // _appendAfter is used in the check loop\n this._appendAfter = null;\n this._previousMapHead = null;\n this._changesHead = null;\n this._changesTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n }\n get isDirty() {\n return this._additionsHead !== null || this._changesHead !== null ||\n this._removalsHead !== null;\n }\n forEachItem(fn) {\n let record;\n for (record = this._mapHead; record !== null; record = record._next) {\n fn(record);\n }\n }\n forEachPreviousItem(fn) {\n let record;\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n }\n forEachChangedItem(fn) {\n let record;\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n fn(record);\n }\n }\n forEachAddedItem(fn) {\n let record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n }\n forEachRemovedItem(fn) {\n let record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n }\n diff(map) {\n if (!map) {\n map = new Map();\n }\n else if (!(map instanceof Map || isJsObject(map))) {\n throw new Error(`Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);\n }\n return this.check(map) ? this : null;\n }\n onDestroy() { }\n /**\n * Check the current state of the map vs the previous.\n * The algorithm is optimised for when the keys do no change.\n */\n check(map) {\n this._reset();\n let insertBefore = this._mapHead;\n this._appendAfter = null;\n this._forEach(map, (value, key) => {\n if (insertBefore && insertBefore.key === key) {\n this._maybeAddToChanges(insertBefore, value);\n this._appendAfter = insertBefore;\n insertBefore = insertBefore._next;\n }\n else {\n const record = this._getOrCreateRecordForKey(key, value);\n insertBefore = this._insertBeforeOrAppend(insertBefore, record);\n }\n });\n // Items remaining at the end of the list have been deleted\n if (insertBefore) {\n if (insertBefore._prev) {\n insertBefore._prev._next = null;\n }\n this._removalsHead = insertBefore;\n for (let record = insertBefore; record !== null; record = record._nextRemoved) {\n if (record === this._mapHead) {\n this._mapHead = null;\n }\n this._records.delete(record.key);\n record._nextRemoved = record._next;\n record.previousValue = record.currentValue;\n record.currentValue = null;\n record._prev = null;\n record._next = null;\n }\n }\n // Make sure tails have no next records from previous runs\n if (this._changesTail)\n this._changesTail._nextChanged = null;\n if (this._additionsTail)\n this._additionsTail._nextAdded = null;\n return this.isDirty;\n }\n /**\n * Inserts a record before `before` or append at the end of the list when `before` is null.\n *\n * Notes:\n * - This method appends at `this._appendAfter`,\n * - This method updates `this._appendAfter`,\n * - The return value is the new value for the insertion pointer.\n */\n _insertBeforeOrAppend(before, record) {\n if (before) {\n const prev = before._prev;\n record._next = before;\n record._prev = prev;\n before._prev = record;\n if (prev) {\n prev._next = record;\n }\n if (before === this._mapHead) {\n this._mapHead = record;\n }\n this._appendAfter = before;\n return before;\n }\n if (this._appendAfter) {\n this._appendAfter._next = record;\n record._prev = this._appendAfter;\n }\n else {\n this._mapHead = record;\n }\n this._appendAfter = record;\n return null;\n }\n _getOrCreateRecordForKey(key, value) {\n if (this._records.has(key)) {\n const record = this._records.get(key);\n this._maybeAddToChanges(record, value);\n const prev = record._prev;\n const next = record._next;\n if (prev) {\n prev._next = next;\n }\n if (next) {\n next._prev = prev;\n }\n record._next = null;\n record._prev = null;\n return record;\n }\n const record = new KeyValueChangeRecord_(key);\n this._records.set(key, record);\n record.currentValue = value;\n this._addToAdditions(record);\n return record;\n }\n /** @internal */\n _reset() {\n if (this.isDirty) {\n let record;\n // let `_previousMapHead` contain the state of the map before the changes\n this._previousMapHead = this._mapHead;\n for (record = this._previousMapHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n // Update `record.previousValue` with the value of the item before the changes\n // We need to update all changed items (that's those which have been added and changed)\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n record.previousValue = record.currentValue;\n }\n for (record = this._additionsHead; record != null; record = record._nextAdded) {\n record.previousValue = record.currentValue;\n }\n this._changesHead = this._changesTail = null;\n this._additionsHead = this._additionsTail = null;\n this._removalsHead = null;\n }\n }\n // Add the record or a given key to the list of changes only when the value has actually changed\n _maybeAddToChanges(record, newValue) {\n if (!Object.is(newValue, record.currentValue)) {\n record.previousValue = record.currentValue;\n record.currentValue = newValue;\n this._addToChanges(record);\n }\n }\n _addToAdditions(record) {\n if (this._additionsHead === null) {\n this._additionsHead = this._additionsTail = record;\n }\n else {\n this._additionsTail._nextAdded = record;\n this._additionsTail = record;\n }\n }\n _addToChanges(record) {\n if (this._changesHead === null) {\n this._changesHead = this._changesTail = record;\n }\n else {\n this._changesTail._nextChanged = record;\n this._changesTail = record;\n }\n }\n /** @internal */\n _forEach(obj, fn) {\n if (obj instanceof Map) {\n obj.forEach(fn);\n }\n else {\n Object.keys(obj).forEach(k => fn(obj[k], k));\n }\n }\n}\nclass KeyValueChangeRecord_ {\n constructor(key) {\n this.key = key;\n this.previousValue = null;\n this.currentValue = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._prev = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._nextChanged = null;\n }\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction defaultIterableDiffersFactory() {\n return new IterableDiffers([new DefaultIterableDifferFactory()]);\n}\n/**\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\n *\n * @publicApi\n */\nclass IterableDiffers {\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent != null) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new IterableDiffers(factories);\n }\n /**\n * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\n * inherited {@link IterableDiffers} instance with the provided factories and return a new\n * {@link IterableDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link IterableDiffer} available.\n *\n * ```\n * @Component({\n * viewProviders: [\n * IterableDiffers.extend([new ImmutableListDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: IterableDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for IterableDiffers, in such a case just assume\n // `defaultIterableDiffersFactory`.\n return IterableDiffers.create(factories, parent || defaultIterableDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[IterableDiffers, new SkipSelf(), new Optional()]]\n };\n }\n find(iterable) {\n const factory = this.factories.find(f => f.supports(iterable));\n if (factory != null) {\n return factory;\n }\n else {\n throw new Error(`Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);\n }\n }\n}\n/** @nocollapse */\nIterableDiffers.ɵprov = ɵɵdefineInjectable({ token: IterableDiffers, providedIn: 'root', factory: defaultIterableDiffersFactory });\nfunction getTypeNameForDebugging(type) {\n return type['name'] || typeof type;\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction defaultKeyValueDiffersFactory() {\n return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);\n}\n/**\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\n *\n * @publicApi\n */\nclass KeyValueDiffers {\n constructor(factories) {\n this.factories = factories;\n }\n static create(factories, parent) {\n if (parent) {\n const copied = parent.factories.slice();\n factories = factories.concat(copied);\n }\n return new KeyValueDiffers(factories);\n }\n /**\n * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\n * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\n * {@link KeyValueDiffers} instance.\n *\n * @usageNotes\n * ### Example\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link KeyValueDiffer} available.\n *\n * ```\n * @Component({\n * viewProviders: [\n * KeyValueDiffers.extend([new ImmutableMapDiffer()])\n * ]\n * })\n * ```\n */\n static extend(factories) {\n return {\n provide: KeyValueDiffers,\n useFactory: (parent) => {\n // if parent is null, it means that we are in the root injector and we have just overridden\n // the default injection mechanism for KeyValueDiffers, in such a case just assume\n // `defaultKeyValueDiffersFactory`.\n return KeyValueDiffers.create(factories, parent || defaultKeyValueDiffersFactory());\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]\n };\n }\n find(kv) {\n const factory = this.factories.find(f => f.supports(kv));\n if (factory) {\n return factory;\n }\n throw new Error(`Cannot find a differ supporting object '${kv}'`);\n }\n}\n/** @nocollapse */\nKeyValueDiffers.ɵprov = ɵɵdefineInjectable({ token: KeyValueDiffers, providedIn: 'root', factory: defaultKeyValueDiffersFactory });\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Structural diffing for `Object`s and `Map`s.\n */\nconst keyValDiff = [new DefaultKeyValueDifferFactory()];\n/**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\nconst iterableDiff = [new DefaultIterableDifferFactory()];\nconst defaultIterableDiffers = new IterableDiffers(iterableDiff);\nconst defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nconst _CORE_PLATFORM_PROVIDERS = [\n // Set a default platform name for platforms that don't set it explicitly.\n { provide: PLATFORM_ID, useValue: 'unknown' },\n { provide: PlatformRef, deps: [Injector] },\n { provide: TestabilityRegistry, deps: [] },\n { provide: Console, deps: [] },\n];\n/**\n * This platform has to be included in any other platform\n *\n * @publicApi\n */\nconst platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction _iterableDiffersFactory() {\n return defaultIterableDiffers;\n}\nfunction _keyValueDiffersFactory() {\n return defaultKeyValueDiffers;\n}\nfunction _localeFactory(locale) {\n return locale || getGlobalLocale();\n}\n/**\n * Work out the locale from the potential global properties.\n *\n * * Closure Compiler: use `goog.getLocale()`.\n * * Ivy enabled: use `$localize.locale`\n */\nfunction getGlobalLocale() {\n if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&\n typeof goog !== 'undefined' && goog.getLocale() !== 'en') {\n // * The default `goog.getLocale()` value is `en`, while Angular used `en-US`.\n // * In order to preserve backwards compatibility, we use Angular default value over\n // Closure Compiler's one.\n return goog.getLocale();\n }\n else {\n // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE\n // COMPILE-TIME INLINER.\n //\n // * During compile time inlining of translations the expression will be replaced\n // with a string literal that is the current locale. Other forms of this expression are not\n // guaranteed to be replaced.\n //\n // * During runtime translation evaluation, the developer is required to set `$localize.locale`\n // if required, or just to provide their own `LOCALE_ID` provider.\n return (typeof $localize !== 'undefined' && $localize.locale) || DEFAULT_LOCALE_ID;\n }\n}\n/**\n * A built-in [dependency injection token](guide/glossary#di-token)\n * that is used to configure the root injector for bootstrapping.\n */\nconst APPLICATION_MODULE_PROVIDERS = [\n {\n provide: ApplicationRef,\n useClass: ApplicationRef,\n deps: [NgZone, Injector, ErrorHandler, ComponentFactoryResolver$1, ApplicationInitStatus]\n },\n { provide: SCHEDULER, deps: [NgZone], useFactory: zoneSchedulerFactory },\n {\n provide: ApplicationInitStatus,\n useClass: ApplicationInitStatus,\n deps: [[new Optional(), APP_INITIALIZER]]\n },\n { provide: Compiler, useClass: Compiler, deps: [] },\n APP_ID_RANDOM_PROVIDER,\n { provide: IterableDiffers, useFactory: _iterableDiffersFactory, deps: [] },\n { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory, deps: [] },\n {\n provide: LOCALE_ID,\n useFactory: _localeFactory,\n deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]\n },\n { provide: DEFAULT_CURRENCY_CODE, useValue: USD_CURRENCY_CODE },\n];\n/**\n * Schedule work at next available slot.\n *\n * In Ivy this is just `requestAnimationFrame`. For compatibility reasons when bootstrapped\n * using `platformRef.bootstrap` we need to use `NgZone.onStable` as the scheduling mechanism.\n * This overrides the scheduling mechanism in Ivy to `NgZone.onStable`.\n *\n * @param ngZone NgZone to use for scheduling.\n */\nfunction zoneSchedulerFactory(ngZone) {\n let queue = [];\n ngZone.onStable.subscribe(() => {\n while (queue.length) {\n queue.pop()();\n }\n });\n return function (fn) {\n queue.push(fn);\n };\n}\n/**\n * Configures the root injector for an app with\n * providers of `@angular/core` dependencies that `ApplicationRef` needs\n * to bootstrap components.\n *\n * Re-exported by `BrowserModule`, which is included automatically in the root\n * `AppModule` when you create a new app with the CLI `new` command.\n *\n * @publicApi\n */\nclass ApplicationModule {\n // Inject ApplicationRef to make it eager...\n constructor(appRef) { }\n}\nApplicationModule.ɵfac = function ApplicationModule_Factory(t) { return new (t || ApplicationModule)(ɵɵinject(ApplicationRef)); };\nApplicationModule.ɵmod = /*@__PURE__*/ ɵɵdefineNgModule({ type: ApplicationModule });\nApplicationModule.ɵinj = /*@__PURE__*/ ɵɵdefineInjector({ providers: APPLICATION_MODULE_PROVIDERS });\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && setClassMetadata(ApplicationModule, [{\n type: NgModule,\n args: [{ providers: APPLICATION_MODULE_PROVIDERS }]\n }], function () { return [{ type: ApplicationRef }]; }, null);\n})();\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// TODO(alxhub): allows tests to compile, can be removed when tests have been updated.\nconst ɵivyEnabled = true;\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Compiles a partial directive declaration object into a full directive definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareDirective(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'directive', type: decl.type });\n return compiler.compileDirectiveDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\n/**\n * Evaluates the class metadata declaration.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareClassMetadata(decl) {\n var _a, _b;\n setClassMetadata(decl.type, decl.decorators, (_a = decl.ctorParameters) !== null && _a !== void 0 ? _a : null, (_b = decl.propDecorators) !== null && _b !== void 0 ? _b : null);\n}\n/**\n * Compiles a partial component declaration object into a full component definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareComponent(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'component', type: decl.type });\n return compiler.compileComponentDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵcmp.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareFactory(decl) {\n const compiler = getCompilerFacade({\n usage: 1 /* PartialDeclaration */,\n kind: getFactoryKind(decl.target),\n type: decl.type\n });\n return compiler.compileFactoryDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵfac.js`, decl);\n}\nfunction getFactoryKind(target) {\n switch (target) {\n case FactoryTarget.Directive:\n return 'directive';\n case FactoryTarget.Component:\n return 'component';\n case FactoryTarget.Injectable:\n return 'injectable';\n case FactoryTarget.Pipe:\n return 'pipe';\n case FactoryTarget.NgModule:\n return 'NgModule';\n }\n}\n/**\n * Compiles a partial injectable declaration object into a full injectable definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjectable(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'injectable', type: decl.type });\n return compiler.compileInjectableDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵprov.js`, decl);\n}\n/**\n * Compiles a partial injector declaration object into a full injector definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareInjector(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'NgModule', type: decl.type });\n return compiler.compileInjectorDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵinj.js`, decl);\n}\n/**\n * Compiles a partial NgModule declaration object into a full NgModule definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclareNgModule(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'NgModule', type: decl.type });\n return compiler.compileNgModuleDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵmod.js`, decl);\n}\n/**\n * Compiles a partial pipe declaration object into a full pipe definition object.\n *\n * @codeGenApi\n */\nfunction ɵɵngDeclarePipe(decl) {\n const compiler = getCompilerFacade({ usage: 1 /* PartialDeclaration */, kind: 'pipe', type: decl.type });\n return compiler.compilePipeDeclaration(angularCoreEnv, `ng:///${decl.type.name}/ɵpipe.js`, decl);\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// clang-format on\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nif (typeof ngDevMode !== 'undefined' && ngDevMode) {\n // This helper is to give a reasonable error message to people upgrading to v9 that have not yet\n // installed `@angular/localize` in their app.\n // tslint:disable-next-line: no-toplevel-property-access\n _global.$localize = _global.$localize || function () {\n throw new Error('It looks like your application or one of its dependencies is using i18n.\\n' +\n 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\\n' +\n 'Please run `ng add @angular/localize` from the Angular CLI.\\n' +\n '(For non-CLI projects, add `import \\'@angular/localize/init\\';` to your `polyfills.ts` file.\\n' +\n 'For server-side rendering applications add the import to your `main.server.ts` file.)');\n };\n}\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// This file only reexports content of the `src` folder. Keep it that way.\n\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isListLikeIterable as ɵisListLikeIterable, isObservable as ɵisObservable, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, markDirty as ɵmarkDirty, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, registerNgModuleType as ɵregisterNgModuleType, renderComponent as ɵrenderComponent, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, whenRendered as ɵwhenRendered, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵviewQuery };\n"],"sourceRoot":"webpack:///","file":"main.ecfa639ca8b139b6.js"}